Skip to main content
Version: Ver.4.10

Slave Simulation

Use Responses from Catalog to create settings from LDF frames. For adding and replacing responses, see Adopting Responses from Catalog. For editing individual responses, see Editing Initial Values by Signal.

Slave Simulation supports operations such as transmitting responses to headers received from the master node. Select Slave Sim. under LIN Simulation Mode in Simulation Window to use Slave Simulation.

Basic Operation of Slave Simulation​

The following example creates a response from SensorFrame in the sample LDF. Stop monitoring and import the LDF into Catalog before proceeding. In Device Window, compare bitrate, per-ID data length, checksum, and LIN revision with the connected system's specifications.

  1. Select Slave Sim. in Simulation Window

Open Simulation Window from the menu or toolbar and select the connected target CH. Select Slave Sim. under LIN Simulation Mode.

  1. Create a response from Catalog

Click Responses from Catalog. Select signal-example.ldf as Source and check SensorFrame (Figure 1). ID (HEX) is 10 (0x10), DL is 2, and Publisher is SensorNode. Check that Data (HEX) in Responses after Apply is “0A 00”, then click Add 1 Responses. If a Device setting change confirmation appears, review the changes and their effects before adopting them. For detailed addition and replacement conditions, see Adopting Responses from Catalog.

Responses from Catalog with SensorFrame selected

Figure 1: Checking the SensorFrame candidate and initial data after application.

After adoption, check that the response list shows ID 10, D1 0A, and D2 00 (Figure 2).

Slave Sim. after adopting a response with initial data 0A 00

Figure 2: Response list after adoption: ID 10, D1 0A, D2 00.

  1. Edit signal values

Select the ID 10 row and click the edit button, or double-click a cell other than its checkbox. In Signals in LIN Response Setting, set Speed Format to Physical and Initial value to 10 (km/h); set State Format to Logical and Initial value to On. Check that D1 (HEX) is 1E and D2 (HEX) is 01 (Figure 3). For the relationship to initial data and reselecting definitions, see Editing Initial Values by Signal.

Editing Speed to 10 km/h and State to On in LIN Response Setting

Figure 3: Edited signal values and HEX data 1E 01.

  1. Finalize and enable the response

Click OK in LIN Response Setting. Also check that the ID 10 row in the response list shows D1 1E and D2 01 (Figure 4).

ID 10 and data 1E 01 in the edited response list

Figure 4: Response list after finalizing edits.

Turn ON the leftmost checkbox in the ID 10 row to transmit. In Figure 5, use the checkbox at the left end of the ID 10 row below the column header, not the header checkbox. When OFF, no response is transmitted even if a header for that ID is received. Once, immediately to its right, is turned ON for one-time transmission. Leave it OFF in this example. The leftmost enabled / disabled checkbox can also be changed during monitoring.

Enlarged response list showing the leftmost ID 10 checkbox ON and Once OFF

Figure 5: Enabling transmission for the ID 10 row. The adjacent Once checkbox is OFF.

  1. Start monitoring

Click the Start button on the toolbar (or select Command → Start from the menu bar, or press F5). When a header for ID 0x10 is received from the other master, the enabled response is transmitted. Registering or enabling a response alone does not start communication, and the response is never transmitted spontaneously without a header.

Figures 1–5 show transmission settings, not actual received logs. After starting communication, check ID, data length, and data in Monitor Window, and compare them with signal values in Signal Window as needed.

Adding a Response Manually​

To configure without Catalog, stop monitoring and open LIN Response Setting with the Add New Response button in Simulation Window. Enter ID and data directly, then click OK to register. If the Catalog selection screen opens after entering an ID, close it with Cancel to enter data directly. After registration, check the list and enabled state as in steps 4 and 5 above before starting.

ItemDescriptionExample
ID (HEX)Enter the response LIN ID in hexadecimal.10
D1 (HEX)–D8 (HEX)Enter response data in hexadecimal according to the per-ID data length in Device settings.For DL 2, D1 = 1E, D2 = 01

Slave Simulation Screen Description​

See Figure 4 for the controls and response list, and Figure 5 for the left side of the list.

Screen itemDescriptionNotes
Responses from Catalog buttonSelects Catalog candidates to add or replace responses.See Adopting Responses for the procedure and effects on Error, Pattern, and Device settings.
Response ListDisplays configured response information.See Response List for details.
Response ID ListSets the display format of Response List. The pull-down options and their meanings are as follows.
Available ID: Displays only IDs for which response information is registered.
ALL ID: Displays all IDs. Rows for IDs with no registered response information are shown with gray hatching.
Add New Response buttonOpens LIN Response Setting to register new response information.When Response ID List is ALL ID, double-clicking an unregistered Response List row (excluding checkbox cells) also registers a new response.
New response information cannot be registered during monitoring.
Edit Response buttonOpens LIN Response Setting to modify the response selected in Response List.Double-clicking a registered Response List row (excluding checkbox cells) also edits the response.
Response information can be edited during monitoring.
Copy Response buttonOpens LIN Response Setting to register a new response based on the selected Response List response.This button is unavailable during monitoring.
Delete Response buttonDisplays the following dialog. Click Yes to delete the selected Response List response.
Delete confirmation dialog
This button is unavailable during monitoring.
Send Wakeup buttonTransmits a wakeup signal.This button is available only during monitoring.
Menu buttonLoad All Pattern loads in bulk the pattern files configured for responses with Ptn. ON in Response List.

Response List​

Displays registered response information. You can also enable / disable responses, configure repeated transmission, and set other options.

In Figure 4, the ID 10 response has D1 = 1E and D2 = 01. There is no DL column displaying data length; check per-ID data lengths in Device settings. Figure 5 enlarges the leftmost checkbox and Once state for this row.

ItemDescriptionAdditional information
Enabled / disabled (leftmost row checkbox)Sets whether the response is transmitted. If the check box is OFF, that response is not transmitted.
OnceSets whether the response is transmitted repeatedly.
If the check box is ON, that response is transmitted only once during monitoring and is not transmitted again until monitoring is stopped.
IDDisplays the response LIN ID in hexadecimal.
D1~D8Displays each response data byte in hexadecimal.
ErrorDisplays the error type of the response.
Ptn.Sets whether to use a pattern file for response data bytes. Checkbox states mean:
【ON】 Uses data configured in Pattern File in the LIN Response Setting dialog.
【OFF】 Uses data configured in Frame settings in the LIN Response Setting dialog.
If the pattern file to load is not configured, the check box is disabled.
Rep.Sets whether to apply the pattern data list repeatedly. The meanings of the ON/OFF check box state are as follows.
ON: When a pattern change event occurs after reaching the bottom of the pattern data list, processing returns to the top.
OFF: Once the bottom of the pattern data list is reached, pattern change events remain disabled until monitoring stops.
If the pattern file to load is not configured, the check box is disabled.
TriggerDisplays the occurrence condition of the pattern change event.
Pattern Log FileDisplays the file name of the pattern file to load.

LIN Response Setting Dialog​

Configures response information.

See Figure 3 for an example screen. Edit signal values in Signals; pattern details appear in LIN Pattern File, opened with the Pattern File button.

ItemDescriptionAdditional information
Frame settingsID (HEX)Sets the response LIN ID in hexadecimal. Available range: 00H–3FH.The Catalog selection screen may open after entering an ID. Close it with Cancel to enter data directly.
D1 (HEX)〜D8 (HEX)Sets each response data byte in hexadecimal.The configurable byte count is adjusted automatically based on the LIN ID set in ID and the ID definition configured in the ID Definition tab of Device Setting.
ErrorSets whether the response has an error and the error type. The pull-down options are:
None, CheckSum, ShortMsg. (1Byte), ShortMsg. (2Byte), ..., ShortMsg. (8Byte), Framing(Data1), Framing(Data2), ..., Framing(Data8), Framing(CS)
The configured error is disabled and treated as None in either case:
- ShortMsg. specifies more bytes than the ID definition's data length (for example, ShortMsg. (3Byte) for an ID with data length 2).
- Framing specifies a byte position beyond the ID definition's data length (for example, Framing(Data3) for an ID with data length 2).
SignalsFrom CatalogSelects a LIN frame definition from Signal Catalog.If an existing response has a fixed ID, select a definition with the same ID.
Signal/Initial value/Format/UnitDisplays signals and units in the definition. Select an available Format (Physical / Logical / Raw signed / Raw unsigned), then edit Initial value to update the corresponding HEX data.See Editing Initial Values by Signal for details.
Pattern FileOpens LIN Pattern File. The parent screen displays a summary of the pattern enabled state, file name, and data count.OK in the child screen applies changes to the parent; OK in the parent finalizes them. Configure the following LIN Pattern File items in the child screen.
LIN Pattern FileSource FileDisplays the full path of the pattern file selected as the load target in the file dialog from the Select file button.You can also set pattern file by direct full-path input.
Select file buttonOpens file dialog and selects pattern file to load.The selected pattern file is not loaded until you click the Load button.
ID FilterWhen ON, extracts data matching the specified ID.
For PTN files, Wakeup is loaded regardless of the ID condition. Sleep is not loaded. For CSV files, the ID condition is applied to the corresponding records.
Default DataSets hexadecimal default data used when the data length in the ID definition on the Device Setting ID Definition tab differs from the pattern data length in the loaded pattern file.
Missmatch DLSets behavior when data length in loaded pattern data does not match ID definition in ID Definition tab of Device Setting. Options:
Use Default: if ID-definition length is larger than pattern data length, default data fills missing bytes.
Ignore: that pattern data is treated as invalid and not shown in pattern data list.
Example for Use Default:
ID definition length: 4 bytes
Pattern data: 08,4C (2 bytes)
Default data: 11,22,33,44,55,66,77,88
In this case, bytes 3 and 4 use default data, so pattern data becomes 08,4C,33,44.
Load buttonLoads pattern file shown in Source File and displays its pattern data in pattern data list.
Clear buttonClears all pattern data shown in pattern data list.
Save buttonOpens file dialog and saves pattern data shown in pattern data list as a pattern file with any file name.
Pattern data listDisplays pattern data contained in loaded pattern file.
Pattern Change TriggerSets the occurrence conditions of pattern change events. For the radio button options and their meanings, see Pattern Change Trigger.
OK buttonClick to save the configured response information and close the dialog.
Cancel buttonClick to discard the configured response information and close the dialog.

Pattern Change Trigger​

Sets the conditions for a pattern change event.

Pattern Change Trigger
ItemDescription
TimerEvent occurs each time configured interval elapses.
Ext TriggerAn event occurs by external port input.
This function is currently under development and cannot be used.
Log TriggerEvent occurs when configured log is detected.
Key TriggerEvent occurs on configured key input.
Timer​
Timer
Screen itemDescriptionNotes
Time value
(area ①)
Together with the time unit, sets the interval for pattern change events. Available ranges depend on the time unit:
【ms (milliseconds)】 50–3600000 (multiples of 50 only)
【sec (seconds)】 1–3600
【min (minutes)】 1–60
Spin buttons increment or decrement by 50 milliseconds only when the time unit is ms.
Time unit
(area ②)
Together with the time value, sets the interval for pattern change events. Options:
ms, sec, min
Log Trigger​
Log Trigger
Screen itemDescription
Event condition
(area ①)
Displays log information configured as the condition for a pattern change event.
Double-click this area to open Trigger Setting and configure log information for the event condition.
Edit buttonOpens Trigger Setting to configure log information for the event condition.

For details on Trigger Setting, see Trigger Setting Dialog Screen Description.

Key Trigger​
Key Trigger
Screen itemDescriptionNotes
Main key
(area ①)
Sets the key used as the event condition. Options:
None, A, B, ..., Z, 0, 1, ..., 9, F1, F2, ..., F12, SPACE
If Main key is None, key input does not cause an event.
Modifier key
(area ②)
Sets the modifier to combine with the main key for the event condition. Options:
None, Alt, Ctrl, Shift
Select None if no modifier is used.
A modifier alone cannot trigger an event.