LIN Panes
The LIN panes provide functionality for interacting with LIN (Local Interconnect Network) buses. Three panes are available for different LIN operations: LIN Send, LIN Message Request, and LIN Message Update.
Overview
LIN is a low-cost serial communication protocol used primarily in automotive applications for non-critical functions. Unlike CAN, LIN uses a master-slave architecture where:
The master sends message headers (requests)
Slaves respond with data based on the message ID
Messages are scheduled and deterministic
The LIN panes in CanKing allow you to:
Send complete LIN messages with headers and data (master behavior)
Request messages by sending headers (master requests slave response)
Update message data tables (slave behavior)
Note
A LIN Channel source node must be configured in the Measurement Setup view and the measurement must be online to use LIN panes.
LIN Send
The LIN Send pane allows manual transmission of complete LIN messages (header + data) on a selected LIN channel. This simulates a LIN master sending both the header and providing the response data.
Use Cases
Testing LIN slave responses
Simulating a LIN master
Injecting test messages into a LIN network
Validating LIN slave implementations
Configuration
- Channel Selection
Select the LIN channel on which to transmit. The dropdown shows all LIN Channel source nodes from the Measurement Setup.
- LIN Identifier
Enter the LIN message identifier (0-63 for LIN 2.x)
6-bit identifier space
No extended identifiers like CAN
- Message Data
Enter up to 8 bytes of data (LIN messages are limited to 8 bytes)
Data bytes are entered in hexadecimal (00-FF)
Unused bytes can be left as 00
- Database Message Selection (when available)
Click Select Message to browse loaded LIN databases (.ldf files)
Select a message from the database
Identifier and data length are set automatically
Signal value editors appear for signal-based data entry
- Send Button
Click Send to transmit the complete message immediately.
Signal-Based Editing
When a LIN database is loaded via the Databases data processor or LIN Channel configuration:
Select database-defined messages
Edit signal values in engineering units
Automatic encoding into message bytes
Value range validation
Unit display for reference
Typical Workflow
Select the LIN channel
Either:
Enter identifier and data bytes manually, OR
Select a database message and edit signal values
Click Send
Monitor the Message Trace to verify transmission
LIN Message Request
The LIN Message Request pane sends a LIN message header without providing data. This simulates a LIN master requesting a message, where a slave is expected to provide the response data.
Use Cases
Testing LIN slave responses in their actual role
Requesting diagnostic messages
Triggering slave-provided data
Simulating normal LIN master behavior
Configuration
- Channel Selection
Select the LIN channel for the request.
- LIN Identifier
Enter the LIN message identifier to request (0-63)
This is the message ID for which a slave should provide data
- Database Message Selection (when available)
Select from database-defined messages to automatically set the identifier.
- Send Button
Click Send to transmit the message request (header only).
How It Works
CanKing sends the LIN message header with the specified ID
A LIN slave node on the bus provides the data response
The complete message (header + response) appears in Message Trace
The response data comes from the slave, not from CanKing
Difference from LIN Send
Feature |
LIN Send |
LIN Message Request |
|---|---|---|
Master/Slave Simulation |
Master providing data |
Master requesting data |
Data Source |
Provided by CanKing |
Provided by slaves on the bus |
Configuration Required |
Full message (ID + data) |
Header only (ID) |
Typical Use |
Simulating master responses |
Requesting slave responses |
Typical Workflow
Ensure LIN slaves are present on the bus
Select the LIN channel
Enter the message identifier to request
Click Send
Monitor Message Trace to see the slave’s response data
LIN Message Update
The LIN Message Update pane configures the message data table for messages where the CanKing acts as a LIN slave. When the master requests these message IDs, CanKing provides the configured data.
Use Cases
Simulating LIN slaves
Providing responses to LIN master requests
Testing LIN master implementations
Emulating missing slave nodes
Configuration
- Channel Selection
Select the LIN channel on which to act as a slave.
- LIN Identifier
Enter the LIN message identifier (0-63)
This is the ID that CanKing will respond to as a slave
- Message Data
Configure the data bytes that will be provided when the master requests this ID
Enter up to 8 bytes in hexadecimal
- Database Message Selection (when available)
Select database-defined messages
Edit signal values to configure response data
Changes are reflected in the message data table
- Start Button
Click Start to apply the configuration to the LIN message data table.
How It Works
Configure the message ID and data
Click Start, the button changes to Stop
The LIN interface stores this configuration
When a LIN master sends a header for this ID, the configured data is automatically transmitted
This happens for every header request
Changes to the configured data are applied immediately
The configuration remains active until the measurement is stopped or the Stop button is clicked
Persistent Behavior
Unlike LIN Send (single transmission) or LIN Message Request (single request):
LIN Message Update sets up persistent slave behavior
The configured response is used for ALL subsequent requests for that ID
Remains active until:
The measurement is stopped
The configuration is cleared by clicking Stop
Typical Workflow
Select the LIN channel
Configure message ID and response data:
Manual byte entry, OR
Database message with signal values
Click Start to activate slave response
The LIN interface now responds to master requests for this ID
Update as needed to change response data
Choosing the Right LIN Pane
- Use LIN Send when:
You need complete control over the entire message
Simulating a master that provides data
Single message transmission is sufficient
Testing with no other LIN nodes present
- Use LIN Message Request when:
You want to test actual LIN slave behavior
Slaves are present on the bus
You need to trigger slave responses
Simulating normal LIN master operation
- Use LIN Message Update when:
Configuring CanKing as a LIN slave
Providing persistent responses to master requests
Simulating a slave node
Testing LIN master implementations
Working with LIN Databases
LIN databases (.ldf files) provide message and signal definitions. To use databases with LIN panes:
- Option 1: Databases Data Processor
In Measurement Setup, add a Databases data processor
Connect it to the LIN channel
Load the .ldf file
Databases are available in all panes
- Option 2: LIN Channel Configuration
In Measurement Setup, configure the LIN Channel node
Load the .ldf file directly in channel settings
Database is available for that channel
- Benefits of using databases:
Message names for easier identification
Signal-based value editing
Automatic encoding/decoding
Value range validation
Unit display
Tips and Best Practices
LIN Master/Slave Roles
Understand the master-slave architecture before using LIN panes
LIN Send = Master with data
LIN Message Request = Master without data (expecting slave response)
LIN Message Update = Slave configuration
Only one master should be active at a time on a LIN bus
Message Identifiers
LIN uses 6-bit identifiers (0-63)
Some IDs are reserved for diagnostic purposes (60-63)
Consult your LIN database or specification for correct IDs
Invalid IDs may be rejected or cause errors
Data Length
LIN messages support up to 8 bytes
Data length is typically fixed for each message ID
Check your database or specification for correct lengths
Padding with zeros is common for shorter messages
Verification
Always use Message Trace to verify LIN transmissions
Filter by LIN protocol for clearer viewing
Check both Tx (sent) and Rx (received) messages
Verify checksums are correct
Integration with Other Features
Use Message Trace to monitor all LIN traffic
LIN messages appear alongside CAN messages when both protocols are active
Filters can separate LIN from CAN messages
Signal Plot can display LIN signals when databases are loaded
Troubleshooting
Messages Not Appearing
Check Message Trace filters (protocol, channel, direction)
Verify LIN bus wiring and termination
Check that LIN bus speed matches all nodes
Ensure LIN master is present and active
Slave Responses Not Working
For LIN Message Request: Verify slaves are present and configured
For LIN Message Update: Ensure Start button was clicked to apply configuration
Check that message ID matches what master is requesting
Verify LIN interface is in correct mode (master or slave)
Database Messages Not Available
Add Databases data processor or configure database in LIN Channel settings
Ensure .ldf file is loaded correctly
Restart measurement after adding database
Check that database contains the required message definitions