Skip to main content

Slave Simulation

The slave simulation function allows operations such as transmitting responses to headers received from the master node.
Select **Slave Sim.** in LIN Simulation Mode of Simulation Window to use the slave simulation function.

Basic Operation of Slave Simulation

This section explains the setup flow for slave simulation.

  1. Select Slave Sim. in Simulation Window
    Select Simulation Window from the menu or toolbar, then select **Slave Sim.** from Simulation Mode.
    This enables the slave simulation function.
Slave Sim.
  1. Open the LIN Response Setting dialog
    Click the Add New Response button in Simulation Window.
    This displays the LIN Response Setting dialog.
Slave Sim.
  1. Configure response information
    Configure response information in Frame Setting of the LIN Response Setting dialog.
Response Setting

The minimum required settings and an example are shown below.

ItemDescriptionExample
IDEnter the LIN ID.15
DataEnter the response data.A1 C3
  1. Register response information
    Click the OK button in the LIN Response Setting dialog.
    The configured response information is registered and displayed in the response list of Simulation Window.
Response Setting Slave Sim.

If you turn OFF the leftmost check box in the response list of Simulation Window, the registered response information is treated as disabled, and the corresponding response is not transmitted even if a header with the configured ID is received.
The check box state can also be changed during monitoring.

  1. Start monitoring
    Click the Start button on the toolbar (you can also select Command - Start from the menu bar or press F5).
    Monitoring starts, and when a header with the ID of registered response information is received, the corresponding response is transmitted.
Monitor Window

Screen Description of Slave Simulation

Slave Sim.
Screen menuDescriptionNotes
Response List
(Area 1)
Displays the 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 buttonClick to open the LIN Response Setting dialog and register new response information.If Response ID List is set to ALL ID, you can also register new response information by double-clicking a row in Response List that does not have response information registered, excluding the check box cell.
You cannot register new response information during monitoring.
Edit Response buttonClick to open the LIN Response Setting dialog and edit the response information selected in Response List.You can also edit response information by double-clicking a row in Response List with registered response information, excluding the check box cell.
Response information can also be edited during monitoring.
Copy Response buttonClick to open the LIN Response Setting dialog and register a new response information entry based on the response information selected in Response List.This button cannot be clicked during monitoring.
Delete Response buttonClick to display the following dialog. Clicking Yes deletes the response information selected in Response List.
Delete confirmation dialog
This button cannot be clicked during monitoring.
Send Wakeup buttonClick to transmit a wakeup signal.This button can be clicked only during monitoring.
Menu buttonClick to display the following menu.
Menu List
Selecting Load All Pattern loads in bulk the pattern files configured for response information whose Ptn. check box is ON in Response List.
Selecting Import From LDF imports the response information in Response List in bulk from the loaded LDF file. At that time, all response information registered before the import is deleted.

Response List

Displays the registered response information. You can also configure whether responses are enabled and whether pattern data is repeated.

Response List
ItemDescriptionNotes
Valid
(Area 1)
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 LIN ID of the response in hexadecimal.
D1-D8Displays the per-byte data of the response in hexadecimal.
ErrorDisplays the error type of the response.
Ptn.Sets whether to use a pattern file for the per-byte data of the response. The meanings of the ON/OFF check box state are as follows.
ON: Uses Pattern Setting in the LIN Response Setting dialog.
OFF: Uses Frame Setting 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

You can configure response information.

LIN Response Setting
ItemDescriptionNotes
Frame SettingIDSets the LIN ID of the response in hexadecimal. The configurable range is 00H-3FH.If you set a value outside the configurable range (40H or higher), it is automatically corrected to the value shifted right by 8 bits. For example, if you set 57H, it is corrected to 05H.
DataSets the per-byte data of the response 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)
If either of the following applies, the configured error is invalid and is treated as None.
- A ShortMsg. byte count larger than the data length of the ID definition is configured, such as ShortMsg. (3Byte) for an ID whose data length is 2.
- A Framing byte position larger than the data length of the ID definition is configured, such as Framing(Data3) for an ID whose data length is 2.
Pattern SettingSource 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 configure the pattern file to load by entering the full path directly.
Select file buttonClick to display the file dialog and select the pattern file to load.The selected pattern file is not loaded until you click the Load button.
ID FilterSets whether to extract pattern data contained in the loaded pattern file. If the check box is ON, pattern data that does not satisfy any of the following is treated as invalid and is not shown in the pattern data list.
- The ID matches the value displayed in ID Filter (the value configured in ID in this dialog)
- The type is Wakeup
- The type is Sleep
Default DataSets the default data in hexadecimal to use when the ID definition configured in the ID Definition tab of Device Setting does not match the data length of pattern data contained in the loaded pattern file.
Missmatch DLSets the handling when the ID definition configured in the ID Definition tab of Device Setting does not match the data length of pattern data contained in the loaded pattern file. The radio button options and their meanings are as follows.
Use Default: If the data length of the ID definition is larger than the target pattern data, default data is used for the missing part of the pattern data.
Ignore: The target pattern data is treated as invalid and is not shown in the pattern data list.
An example when Use Default is configured is shown below.
ID definition data length: 4 bytes
Pattern data in the pattern file: 08,4C (2 bytes)
Default data: 11,22,33,44,55,66,77,88

In this case, default data is used for the third and fourth bytes of the pattern data, so the pattern data becomes 08,4C,33,44.
Load buttonClick to load the pattern file displayed in Source File and display the pattern data contained in the pattern file in Pattern Data List.
Clear buttonClick to clear all pattern data displayed in Pattern Data List.
Save buttonClick to display the file dialog and save the pattern data displayed in Pattern Data List as a pattern file with any file name.
Pattern Data List
(Area 1)
Displays the pattern data contained in the 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.

The title bar of the dialog changes depending on the operation used to display it.

OperationTitle
Click the Add New Response buttonLIN Response Setting : New
Click the Edit Response buttonLIN Response Setting : Edit
Click the Copy Response buttonLIN Response Setting : Copy

Pattern Change Trigger

You can configure the occurrence conditions of pattern change events.

Pattern Change Trigger
ItemDescription
TimerAn event occurs each time the configured time elapses.
Ext TriggerAn event occurs by external port input.
This function is currently under development and cannot be used.
Log TriggerAn event occurs when the configured log is detected.
Key TriggerAn event occurs on the configured key input.
Timer
Timer
Screen menuDescriptionNotes
Time value
(Area 1)
Together with the time unit, sets the cycle at which pattern change events occur. The configurable range depends on the selected time unit as follows.
ms (milliseconds): 50-3600000 (multiples of 50 only)
sec (seconds): 1-3600
min (minutes): 1-60
When changed with the spin button, the value increases or decreases in 50-millisecond increments only when the time unit is set to ms.
Time unit
(Area 2)
Together with the time value, sets the cycle at which pattern change events occur. The pull-down options are:
ms, sec, min
Log Trigger
Log Trigger
Screen menuDescription
Event condition
(Area 1)
Displays the log information configured as the occurrence condition for a pattern change event.
Double-clicking this area displays the Trigger Setting dialog, where you can configure the log information for the event condition.
Edit buttonClick to display the Trigger Setting dialog and configure the log information for the event condition.

For details on the Trigger Setting dialog, see Screen Description of the Trigger Setting Dialog.

Key Trigger
Key Trigger
Screen menuDescriptionNotes
Main key
(Area 1)
Sets the key used as the event condition. The pull-down options are:
None, A, B, ..., Z, 0, 1, ..., 9, F1, F2, ..., F12, SPACE
If None is set for the main key, no key-input event occurs.
Sub key
(Area 2)
Sets the sub key used together with the main key as the event condition. The pull-down options are:
None, Alt, Ctrl, Shift
Set None when a sub key is not used.
It is not possible to detect an event using only the sub key.