Skip to main content

Validation

What You Will Do​

In this chapter you deliberately put three defects into the topology finished in LIN Bus and see how PAIO validation reports them. PAIO validates the open project by itself, so you only open the VALIDATION panel with the V icon in the footer and read the three error rows and the badge 3. You then click the rows to move close to the problem elements, fix the values on screen and save.

There are three places to fix. You restore the unicast address of the Ethernet connector EthernetConnector of HPC to 192.168.0.11, assign the controller LinSlaveController to the LIN connector LinConnector of SLAVE_ECU again, and restore the protocol version of the LIN slave controller LinSlaveController to LIN 2.0. The connector of HPC is shown as a full procedure from start to finish, and the other two follow the same flow.

When you finish this chapter, the VALIDATION panel shows No validation issues.. The fixed topology is the same as the design finished in LIN Bus.

Before You Begin​

  • Start after finishing LIN Bus. At that point the VALIDATION panel shows No validation issues..
  • The screens in this chapter show that design with the three defects below. No editor is open, and the VALIDATION panel is closed.
DefectLocationOriginal valueChanged value
The unicast address of the HPC connector is a multicast addressUNICAST IPV4 ADDRESS of EthernetConnector on the node HPC192.168.0.11224.0.0.1
The SLAVE_ECU connector has no controllerCONTROLLER of LinConnector on the node SLAVE_ECULinSlaveControllerEmpty (Select controller...)
The LIN slave controller has no protocol versionPROTOCOL VERSION of LinSlaveController on the node SLAVE_ECULIN 2.0Empty (no button on)

Note. All three defects can be made on screen. In the EDITOR view, click System under DESIGN to open the tab TopologyDesign:System, make the changes below and save with Ctrl+S. After saving, click the × of the tab TopologyDesign:System to close it, and if the VALIDATION panel is open, click the V icon in the footer to close it. This way you start from the same state as the screens of this chapter (Figure 6-1). For the first, click EthernetConnector of HPC, type 224.0.0.1 into UNICAST IPV4 ADDRESS and press the Tab key. The field accepts this value as is and does not mark it as an error. For the second, click LinConnector of SLAVE_ECU and click the × (Clear Controller) inside the CONTROLLER field, to the left of the down arrow. The field changes to Select controller..., and its label turns red with the hint Controller is required. The × is visible only while the field has a value. For the third, click LinSlaveController and click LIN 2.0 under PROTOCOL VERSION once more to turn it off. No button stays on.

The only value you type on the keyboard in this chapter is 192.168.0.11 in UNICAST IPV4 ADDRESS. Everything else is clicks, drop-down choices and Ctrl+S.

Running Validation and Reading the VALIDATION Panel​

Opening the VALIDATION Panel​

  1. Look at the V icon in the footer at the bottom left of the screen. PAIO validates the open project by itself, without opening an editor, so the icon already carries a red badge 3. Hovering over the icon shows the tooltip Validation: 3 error(s), 0 warning(s), 0 info(s).

  2. Click the V icon in the footer. The VALIDATION panel opens at the bottom of the screen. Next to the title is a red badge 3 (tooltip 3 error(s)), and the column headers are ELEMENT TYPE, NAME, DESCRIPTION and CONSTR. Below them are three error rows.

    The VALIDATION panel after validating the topology with three defects

    Figure 6-1. The screen after opening the panel. ① The V icon in the footer (badge 3), ② the three error rows, ③ the badge 3 next to the panel title VALIDATION. No editor is open, so the middle shows the empty editor area (Open a file to start editing). At the default column widths, NAME and DESCRIPTION are cut off with ….

Reading the Columns​

Each row of the panel is one error. The columns mean the following.

ColumnContent
ELEMENT TYPEThe kind of element that has the problem
NAMEThe name of that element. Some rows put the node name in front, as in SLAVE_ECU/LinConnector
DESCRIPTIONA sentence explaining what is wrong
CONSTRThe AUTOSAR constraint number (constr_*)
  1. If the text is cut off, drag the right edge of the NAME and DESCRIPTION headers to the right to widen them. This step is optional. Once widened, all three sentences are shown in full.

    The panel with the NAME and DESCRIPTION columns widened so that all three sentences show

    Figure 6-2. The VALIDATION panel with the NAME and DESCRIPTION columns widened. ① The constr_3288 row, ② the constr_5398 row, ③ the constr_5449 row.

The three rows, in panel order, are as follows. All of them are errors.

#ELEMENT TYPENAMEDESCRIPTIONCONSTR
1EthernetCommunicationConnectorEthernetConnectorConnector "EthernetConnector" unicast IPv4 "224.0.0.1" is not in the unicast range (first octet 224 > 223).constr_3288
2CommunicationConnectorSLAVE_ECU/LinConnectorConnector "LinConnector" on "SLAVE_ECU" has no commController reference; each CommunicationConnector shall reference exactly one communication controller.constr_5398
3LinSlaveSLAVE_ECU/LinSlaveControllerLIN slave controller "LinSlaveController" on "SLAVE_ECU" has no protocolVersion.constr_5449

Note. A row moves you with a single click. Hovering over a row that can move you shows the tooltip Go to the element to fix. Of the three rows of this chapter, only the constr_5398 row opens the property panel of the defective element directly. The other two rows get you close to it, and you then click the element to fix directly on the canvas.

Fixing the Unicast Address of the HPC Connector​

Clicking the Row to Move to the System Editor​

  1. Click the first row (constr_3288) of the VALIDATION panel. The System editor tab TopologyDesign:System opens, and the Ethernet connector EthernetConnector of the node ZONE is selected. The property panel on the right has the title ETHERNET CONNECTOR, CONTROLLER is EthernetCommController, and UNICAST IPV4 ADDRESS is 192.168.0.19. The VALIDATION panel stays open.

    The Ethernet connector of ZONE selected by clicking the constr_3288 row

    Figure 6-3. The result of clicking the first row. ① The constr_3288 row, ② the newly opened tab TopologyDesign:System, ③ the selected Ethernet connector of ZONE (bottom of the canvas), ④ UNICAST IPV4 ADDRESS = 192.168.0.19. In the EDITOR view, System under DESIGN is highlighted.

Caution. This row moves you not to the defective connector of HPC but to the connector of ZONE. The Ethernet connectors of both nodes have the same name EthernetConnector, and the row picks the one on ZONE. The red validation mark on the canvas is also attached to the connector of ZONE. Do not change the values of the ZONE connector.

Selecting the HPC Connector​

  1. Click Fit to View in the toolbar below the canvas. All four nodes become visible.

  2. Click the connector (EthernetConnector) on the bottom edge of the node HPC. The panel title stays ETHERNET CONNECTOR, and CONTROLLER is EthernetController. UNICAST IPV4 ADDRESS and MULTICAST IPV4 ADDRESS are both 224.0.0.1.

    UNICAST IPV4 ADDRESS and MULTICAST IPV4 ADDRESS of the HPC connector

    Figure 6-4. The screen with the connector of HPC selected. ① The connector of HPC, ② UNICAST IPV4 ADDRESS = 224.0.0.1, ③ MULTICAST IPV4 ADDRESS = 224.0.0.1. The red validation mark still remains on the right connector of ZONE.

Note. The UNICAST IPV4 ADDRESS field does not mark 224.0.0.1 as an error. This defect shows only in the VALIDATION panel.

Entering 192.168.0.11​

  1. Delete 224.0.0.1 in UNICAST IPV4 ADDRESS, type 192.168.0.11 and press the Tab key. Leave FIXED of ADDRESS SOURCE and MULTICAST IPV4 ADDRESS as they are.

  2. A blue dot (the modified mark) appears next to the name of the tab TopologyDesign:System. Without saving, the VALIDATION panel immediately shrinks to two rows, and the badges next to the panel title and in the footer become 2. The red mark on the ZONE connector also disappears.

    The HPC connector with UNICAST IPV4 ADDRESS fixed to 192.168.0.11

    Figure 6-5. The screen after the fix. ① The connector of HPC, ② UNICAST IPV4 ADDRESS = 192.168.0.11. The VALIDATION panel keeps two rows, without constr_3288.

Assigning a Controller to the SLAVE_ECU Connector​

Selecting the Connector​

  1. Click the constr_5398 row (now the first row) of the VALIDATION panel. This time the row selects the defective element itself, the connector (LinConnector) on the top edge of the node SLAVE_ECU, so you do not need to click the canvas.

  2. Check the property panel. The panel title is LIN CONNECTOR, CONTROLLER shows the italic placeholder Select controller..., and CONNECTED CHANNEL shows LinCluster / PhysicalChannel. CONTROLLER is a required field, so its label is red with the hint Controller is required. The canvas has no orange line joining this connector and the controller.

    The LIN connector of SLAVE_ECU with an empty controller

    Figure 6-6. The result of clicking the constr_5398 row. ① The constr_5398 row, ② the selected connector of SLAVE_ECU, ③ CONTROLLER = Select controller..., red with Controller is required.

Choosing LinSlaveController​

  1. Click the CONTROLLER field. The field turns into a search box with the placeholder Type to search..., and the list shows only LinSlaveController.

    LinSlaveController in the CONTROLLER list

    Figure 6-7. The open CONTROLLER list. ① The connector of SLAVE_ECU, ② the CONTROLLER field (Type to search...), ③ the only item LinSlaveController.

  2. Click LinSlaveController. The VALIDATION panel shrinks to one row and the badge becomes 1.

On the canvas, the orange line joining the connector and the controller appears again (Figure 6-9).

Choosing the Protocol Version of the LIN Slave Controller​

Clicking the Row to Move to SLAVE_ECU​

  1. Click the constr_5449 row (now the only row). The node SLAVE_ECU is selected and the inside of the node is painted red. The panel title is ECU and NAME is SLAVE_ECU. This row picks not the controller but the node that holds the controller.

    The node SLAVE_ECU selected by clicking the constr_5449 row

    Figure 6-8. The result of clicking the constr_5449 row. ① The constr_5449 row, ② the header of the node SLAVE_ECU marked in red, ③ the panel title ECU. One row remains in the VALIDATION panel.

Choosing LIN 2.0​

  1. Click the controller square (LinSlaveController) inside the node SLAVE_ECU. The panel title is LIN SLAVE, and PROTOCOL VERSION under LIN SETTINGS is a set of buttons, LIN 1.3, LIN 2.0, LIN 2.1, LIN 2.2 and ISO 17987, with no button on. Unlike CONTROLLER, this field is not marked in red.

  2. Under PROTOCOL VERSION, click LIN 2.0. The button turns on, the last row disappears from the VALIDATION panel, and the panel shows No validation issues.. The badges next to the panel title and on the V icon in the footer disappear.

    LinSlaveController with PROTOCOL VERSION set to LIN 2.0

    Figure 6-9. The screen after the fix. ① The controller square inside SLAVE_ECU, ② PROTOCOL VERSION = LIN 2.0. The orange line between the connector and the controller shows again, and the VALIDATION panel shows No validation issues..

What each of the three rows selects when clicked, and the element you actually fix, are summarized below.

RowSelected when clickedElement to fix
constr_3288The tab TopologyDesign:System opens with EthernetConnector of ZONEClick EthernetConnector of HPC directly
constr_5398LinConnector of SLAVE_ECU (panel LIN CONNECTOR)The selected connector itself; no canvas click is needed
constr_5449The node SLAVE_ECU (panel ECU)Click LinSlaveController inside the node once more

Saving and Validating Again​

  1. Click an empty spot of the canvas with no node. The property panel closes.

  2. Press Ctrl+S to save. The blue dot on the tab TopologyDesign:System disappears.

  3. Look at the VALIDATION panel, which stays open. It still shows No validation issues., and there is no badge next to the panel title or on the V icon in the footer.

    The screen validated again after fixing the three defects

    Figure 6-10. The screen after saving. ① The V icon in the footer with no badge, ② the row No validation issues.. The property panel is closed.

Note. When you close the property panel by clicking an empty spot of the canvas, the canvas zoom returns to the zoom from before you clicked Fit to View (Figure 6-3). That is why SLAVE_ECU and ZONE at the bottom appear cut off above the VALIDATION panel in Figure 6-10. Only the screen zoom has changed, and the design is unchanged. Ctrl+S does not change the zoom.

Note. The badge on the V icon disappears when the count drops to zero, but the tooltip of the V icon keeps the last count, Validation: 1 error(s), 0 warning(s), 0 info(s). The VALIDATION panel shows the current result.

The panel is recalculated each time you fix a value, even without saving, so this step confirms that the result stays the same after saving. With each fix the badges drop as follows.

After the fixRows left in the panelPanel badgeFooter badge
Start333
HPC connector UNICAST IPV4 ADDRESS → 192.168.0.112 (constr_5398, constr_5449)22
SLAVE_ECU connector CONTROLLER → LinSlaveController1 (constr_5449)11
LinSlaveController PROTOCOL VERSION → LIN 2.00 (No validation issues.)NoneNone
Save with Ctrl+S0 (No validation issues.)NoneNone

With the three defects fixed, no rows remain. The three fixed values are the same as in the design finished in LIN Bus.

Why Is It Designed This Way?​

  • A unicast address is the address of a single node. 224.0.0.1 is the multicast address used for SOME/IP service discovery (SD), which you entered into MULTICAST IPV4 ADDRESS in Ethernet Bus. A unicast address must have a first octet of 223 or less, so validation rejects this value with first octet 224 > 223. The own address of HPC is 192.168.0.11, the HPC_Endpoint of the reference design.
  • A connector must refer to exactly one controller. In the words of the message, each CommunicationConnector shall reference exactly one communication controller.. A connector attaches to the bus through its controller, so without a controller the orange line joining the two also disappears from the canvas.
  • A LIN controller needs a protocol version. The LinSlaveController of the reference design has the protocol version LIN20, and LIN 2.0 of PROTOCOL VERSION corresponds to this value. "Values Not Entered in This Chapter" in LIN Bus explains this correspondence.

Checklist​

  • The VALIDATION panel shows No validation issues..
  • There is no badge next to the VALIDATION panel title or on the V icon in the footer.
  • Selecting EthernetConnector of HPC shows UNICAST IPV4 ADDRESS 192.168.0.11 and MULTICAST IPV4 ADDRESS 224.0.0.1.
  • UNICAST IPV4 ADDRESS of EthernetConnector of ZONE is still 192.168.0.19.
  • Selecting LinConnector of SLAVE_ECU shows CONTROLLER LinSlaveController, and the canvas has the orange line joining the connector and the controller.
  • Selecting LinSlaveController shows PROTOCOL VERSION LIN 2.0.
  • The tab TopologyDesign:System carries no modified mark.

Next Step​

In ARXML Export you export the fixed topology to ARXML files and compare them with the reference design.