LIN Panes
The LIN panes provide functionality for interacting with LIN (Local Interconnect Network) buses. Four panes are available for different LIN operations: LIN Send, LIN Periodic 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)
Transmit LIN messages periodically at a configurable interval (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 Periodic Send
The LIN Periodic Send pane enables automatic periodic transmission of complete LIN messages (header + data) on a selected LIN channel. It offers the same configuration options as the CAN Periodic Send pane, adapted to the LIN protocol.
Note
Only LIN master channels can transmit, so the channel dropdown lists the LIN channels that are configured as masters in the Measurement Setup view.
Use Cases
Simulating a LIN master sending a message schedule
Emulating a missing LIN master node
Generating bus load on a LIN network
Creating reproducible, long running test scenarios
Stress testing LIN slave implementations
Configuration Sections
- Channel Selection
Select the LIN master channel on which to transmit messages periodically. LIN slave channels are not listed since they cannot initiate a transmission.
- LIN Identifier
Constant Identifier - Use the same identifier (0-63) for every message
Random Identifier - Pick a random identifier within the specified range for each message
Scan Identifier - Scan identifiers sequentially from min to max
Identifier Range - Minimum and maximum identifier used for random/scan modes
Select Message - Pick a message from a loaded LIN database (.ldf) to set the identifier automatically
- Frame Definition
Data Length - 0 to 8 bytes
Data Bytes - Individual byte values
Random Data Length - Randomize the data length of each message
Random Message Data - Generate random data bytes for each message
Signal Values - When a database message is selected, enter signal values in engineering units and they are encoded into the data bytes
- Transmission Interval
Constant Interval - Send at a fixed interval in milliseconds
Random Interval - Send at a random interval within a min/max range
- Number of Messages
Unlimited (0) - Send continuously until stopped. This is the default
Limited Count (> 0) - Stop automatically after the specified number of messages
Note
This section is collapsed by default.
- Burst Size
Constant Burst Size - Send a fixed number of messages back-to-back on each interval
Random Burst Size - Send a random number of messages within a min/max range on each interval
Note
This section is collapsed by default.
Transmission Control
- Start Transmission
Click Start to begin the periodic transmission. The button changes to Stop.
- Stop Transmission
Click Stop to end the periodic transmission. The button changes back to Start.
While the transmission is running, the configuration can still be changed and the changes take effect on subsequently transmitted messages. This includes signal values, which makes it possible to sweep a signal while the message is being sent.
Transmissions are stopped automatically when the measurement is stopped.
Typical Workflow
Select the LIN master channel
Either:
Enter the identifier and data bytes manually, OR
Select a database message and edit signal values
Set the transmission interval (e.g. 100ms)
Click Start
Monitor the Message Trace to verify transmission
Click Stop when finished
Difference from LIN Send
Feature |
LIN Send |
LIN Periodic Send |
|---|---|---|
Number of Transmissions |
One per button click |
Repeated until stopped |
Interval Configuration |
Not applicable |
Constant or random interval |
Identifier Generation |
Constant identifier only |
Constant, random or scan |
Data Generation |
Fixed data |
Optional random length and data |
Burst Transmission |
Not applicable |
Constant or random burst size |
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 Periodic Send when:
A message must be repeated at a fixed or random interval
Simulating a master running a message schedule
Generating bus load or long running test traffic
Sweeping identifiers or signal values over time
- 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 Periodic Send = Master with data, repeated at an interval
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