Step 2: How to Prepare a Layout for Simulating LIN Communication

Objective

To handle bus communication in a ControlDesk experiment, you can use common and bus-specific instruments, which are arranged on one or more layouts.


Part 1: To generate a layout providing a Bus Instrument (TX status type)

  1. Select the Bus Navigator.

    The Bus Navigator displays a hardware‑related view on the bus communication that is accessed via the Lesson_ExpCD_Start.sdf file, starting with the platforms to which the bus communication of the CentralGatewayECU and Restbus_Model bus simulation containers is loaded.

    Tip

    The illustration above is an example of the Bus Navigator tree for a VEOS simulation platform. Depending on the used simulation platform, the following elements differ:

    • The extension of the platform name, i.e., the value in the brackets.

    • The names of the communication controllers.

  2. Navigate to the LinDoorCluster [BusManager_Base_V1_0] node of Restbus_Platform [<xxx>].

  3. Right-click the LinDoorCluster [BusManager_Base_V1_0] node and select Generate TX Status Layout on the context menu.

    A new layout is generated that provides a Bus Instrument (TX status type). The instrument looks as follows:

    • The Communication Controllers region groups the bus configuration features you added to the communication controllers of the BodyControlEcu and DoorLeftEcu, i.e., the Communication Controller Enable feature (both ECUs) and the LIN Schedule Table feature (BodyControlEcu).

    • The PDUs region groups the bus configuration features you added to the TX PDUs of the DoorLeftEcu and DoorRightEcu, i.e., the PDU Enable feature of the TX DoorLeftStatusIPdu and TX DoorRightStatusIPdu, respectively.

    • The regions display all function ports of the related bus simulation features for which you enabled test automation support.

    • For function inports, the instrument provides elements that let you access and change the function port values. The values of function outports are read-only.


Interim result

You generated a layout that provides a Bus Instrument (TX status type). You can now add further instruments to the layout. Continue with the next part.


Part 2: To add further instruments to the layout

  1. In the Bus Navigator, select the following PDU: LinDoorCluster [BusManager_Base_V1_0] - BodyControlEcu - RX DoorLeftStatusLinFrame - RX DoorLeftStatusIPdu.

  2. Drag the RX DoorLeftStatusIPdu to an empty area of the layout.

    A list opens.

  3. In the list, select Bus Navigator RX Instrument.

    A Bus Instrument (RX type) is added to the layout.

    The regions of the instrument are derived from the bus simulation features you added to the RX DoorLeftStatusIPdu and its ISignals.

  4. In the Bus Navigator, select the RX DoorRightStatusIPdu that is available for the RX DoorRightStatusLinFrame of the BodyControlEcu.

  5. Add a Bus Instrument (RX type) for the RX DoorRightStatusIPdu to the layout.

  6. In the Bus Navigator, select the following PDU: LinDoorCluster [BusManager_Base_V1_0] - DoorRightEcu - TX DoorRightStatusLinFrame - TX DoorRightStatusIPdu.

  7. Drag the TX DoorRightStatusIPdu to an empty area of the layout and select Bus Navigator TX Instrument from the list.

    A Bus Instrument (TX type) is added to the layout.

  8. Arrange the instruments as follows:


Result

You prepared a ControlDesk layout for simulating LIN communication.


What's next

In the next step, you will simulate LIN communication.


Redaction