Step 2: How to Add Bus Configuration Features for Simulation Purposes

Objective

To configure bus communication for simulation purposes, you have to add bus configuration features to elements that are assigned to the Simulated ECUs part of a bus configuration.

Depending on the bus configuration element, you can add available bus simulation features in the Bus Configurations and Bus Simulation Features tables.


Part 1: To add bus simulation features in the Bus Configurations table

  1. In the Bus Configurations table, do the following:

    • Collapse the GearboxEcu node.

    • Expand the BodyControlEcu and DoorLeftEcu nodes.

    The assigned communication controllers and PDUs of the BodyControlEcu and DoorLeftEcu are displayed.

  2. Select both ECUs, including all their displayed elements: Click the BodyControlEcu node, press and hold the Shift key, and click the last PDU of DoorLeftEcu.

  3. Right-click any of the highlighted elements and select Add Feature - Communication Controller Enable on the context menu.

    The Communication Controller Enable feature is added to all communication controllers of both ECUs. In the Bus Configurations table, a Communication Controller Enable feature node () is added to each controller, as shown in the following example.

    Tip

    • On the context menu, the LIN Schedule Table feature is grayed out because it has already been added to the LIN master communication controller.

    • By selecting the ECUs as described above, you might have also selected the GearboxEcu node. However, the communication controller of the GearboxEcu is not selected because the GearboxEcu node is collapsed. Therefore, the Communication Controller Enable feature is not added to this communication controller.

  4. Expand a Communication Controller Enable feature node.

    The Communication Controller Enable feature provides two function ports. You can configure the function ports to enable or disable the related communication controller at run time, and provide the enable state of the communication controller to a behavior model, for example.

    Tip

    You will configure function ports in step 3 of this lesson.


Interim result

You added the Communication Controller Enable feature to the communication controllers of the BodyControlEcu and DoorLeftEcu, and explored the function ports that are available for the Communication Controller Enable feature. You can now add further bus simulation features. Continue with the next part.


Part 2: To add bus simulation features in the Bus Simulation Features table

  1. Select the Bus Simulation Features table.

    The PDU Features subview is active, displaying all PDUs that are assigned to the Simulated ECUs part of bus configurations.

    Tip

    • The Bus Simulation Features table lets you add bus simulation features only to PDUs and ISignals. For this purpose, it provides two subviews, the PDU Features and Signal Features subviews.

    • If you closed the table by mistake, you can open it via Windows on the Home ribbon.

  2. In the PDU Features subview, right-click the Name column header and select Set Column Filter on the context menu.

    The Column Filter Expressions for Column: Name dialog opens.

  3. In the dialog, type DoorLeftStatusIPdu in the Filter expression edit field.

  4. Make sure that only the Regular expression checkbox is selected.

  5. Click OK.

    The dialog closes. The Name column is filtered for PDUs whose name contains DoorLeftStatusIPdu, i.e., two PDUs:

    • One RX PDU of the BodyControlEcu.

    • One TX PDU of the DoorLeftEcu.

    The column header indicates the active column filter by a blue square.

    Note

    The filter is active until you clear it explicitly. This applies even when you close ConfigurationDesk or the Bus Manager (stand-alone).

    Tip

    The filter applies to both subviews of the table.

  6. Scroll to the right until the PDU Enable and PDU RX Status columns are displayed.

    The PDU Enable feature is available only for TX PDUs, the PDU RX Status feature only for RX PDUs. Because of this, each feature can be enabled only for one of the displayed PDUs.

  7. In the PDU Enable and PDU RX Status columns, select Enabled from the list of the available cell.

    The PDU Enable feature is added to the TX DoorLeftStatusIPdu and the PDU RX Status feature is added to the RX DoorLeftStatusIPdu. However, no feature nodes are displayed in this table.

  8. Select both DoorLeftStatusIPdu rows.

  9. Right-click any of the selected cells and select Show - Show in Bus Configurations Table on the context menu.

    The Bus Configurations table is displayed, and both DoorLeftStatusIPdu nodes are highlighted in the table.

  10. Expand both PDU nodes.

    The lower-level elements of the PDUs are displayed, i.e.:

    • RX DoorLeftStatusIPdu: The PDU RX Status feature node and the ISignal nodes

    • TX DoorLeftStatusIPdu: The PDU Enable feature node and the ISignal nodes

    The DoorLeftStatusIPdu is transmitted by the DoorLeftEcu and received by the BodyControlEcu. The PDU Enable feature lets you enable and disable the transmission of the PDU. The PDU RX Status feature lets you observe the status of the received PDU, e.g., whether the PDU is received by the BodyControlEcu.

  11. Select the Bus Simulation Features table.

  12. Right-click the Name column header and select Set Column Filter on the context menu.

  13. In the Column Filter Expressions for Column: Name dialog, specify DoorRightStatusIPdu as the Filter expression and click OK.

    An RX and a TX DoorRightStatusIPdu are displayed.

  14. For the PDUs, set the available PDU Enable and PDU RX Status feature to Enabled.

  15. Right-click the Name column header and select Clear Column Filter on the context menu.

    The specified column filter is cleared and all PDUs that are assigned to the Simulated ECUs part are displayed.


Result

You added bus configuration features to elements that are assigned to the Simulated ECUs part of the bus configuration. You added the features in the Bus Configurations and Bus Simulation Features table for multiple selected elements and by using column filters.

Tip

In the Bus Configurations table, you can add available bus configuration features to any element type via the context menu.


What's next

In the next step, you will configure some function ports of the added bus simulation features.


Redaction