メインコンテンツまでスキップ

Ethernet Bus

What You Will Do​

In this chapter you join the nodes ZONE and HPC with an Ethernet bus, in the System editor as you left it in CAN Bus. You create one Ethernet controller (EthernetCommController, EthernetController) and one Ethernet connector (EthernetConnector) on each of the two nodes and enter IPv4 addresses on the connectors. You then create the Ethernet cluster EthernetCluster from the + badge of a connector and connect both connectors to the physical channel PhysicalChannel, whose VLAN ID is 13. Network management (NM) is off for a new cluster and is turned on per cluster in the Communication Cluster Configuration window. The reference design has no NM, so you only check in that window that it is off.

When you finish this chapter, the design in which EthernetCluster joins ZONE and HPC is saved in the System editor, and the VALIDATION panel shows No validation issues..

Before You Begin​

  • Start after finishing CAN Bus. ECU and ZONE have CAN controllers and connectors and are joined by CanCluster, while SLAVE_ECU and HPC are still empty. The VALIDATION panel shows No validation issues..
  • If the tab TopologyDesign:System is not open, click System under DESIGN in the EDITOR view.
  • If the VALIDATION panel is open, close it with the V icon in the footer. The figures show the screen with the panel closed.
  • When you select an element, the property panel opens on the right and covers the right side of the canvas. If the node HPC is hidden under the panel, click Fit to View in the toolbar below the canvas and then click Zoom Out a few times until all four nodes are visible. The figures in this chapter show the canvas zoomed out this way.

The values you enter in this chapter are listed below. The channel name PhysicalChannel is a default that is filled in automatically when the cluster is created, so you do not type it.

WhereItemValue
ETHERNET CONTROLLER panel (node ZONE)NAME / MAC ADDRESSEthernetCommController / 11:22:EE:44:55:66
ETHERNET CONTROLLER panel (node HPC)NAME / MAC ADDRESSEthernetController / 00:11:22:33:44:55
ETHERNET CONNECTOR panel (node ZONE)NAME / CONTROLLEREthernetConnector / select EthernetCommController
ETHERNET CONNECTOR panel (node ZONE)UNICAST IPV4 ADDRESS / ADDRESS SOURCE192.168.0.19 / click FIXED
ETHERNET CONNECTOR panel (node HPC)NAME / CONTROLLEREthernetConnector / select EthernetController
ETHERNET CONNECTOR panel (node HPC)UNICAST IPV4 ADDRESS / ADDRESS SOURCE192.168.0.11 / click FIXED
ETHERNET CONNECTOR panel (node HPC)MULTICAST IPV4 ADDRESS224.0.0.1
ETHERNET CLUSTER panelNAME / VLAN IDEthernetCluster / 13
ETHERNET CLUSTER panelPHYSICAL CHANNELS › CHANNEL NAMEPhysicalChannel (default, leave as is)
Communication Cluster Configuration windowNM CLUSTER, TIME DOMAIN tabsDisabled (default, leave as is)

Note. A field in the property panel commits its value only when you leave the field. In this chapter you press the Tab key after entering a value in the property panel.

Creating the Ethernet Controllers​

Adding a Controller​

  1. On the canvas, right-click an empty spot inside the node ZONE. The menu shows Add Connector, Add Controller, Add Ethernet Switch, Add Gateway, SW Mapping, Extract ECU and Delete.

  2. Hover over Add Controller and click Ethernet in the submenu.

    Choosing Add Controller › Ethernet from the context menu of the node ZONE

    Figure 4-1. The context menu of the node ZONE. ① Add Controller, ② Ethernet in the submenu, ③ the right-clicked node ZONE. The submenu of Add Controller holds Ethernet, CAN, LIN Master and LIN Slave.

  3. A small square appears inside the node. This is the Ethernet controller. The new controller is not selected automatically, so click the square. The property panel on the right is titled ETHERNET CONTROLLER, and NAME holds the default name ZONE_Ethernet_Controller_0.

    The Ethernet controller with its default name

    Figure 4-2. The new Ethernet controller. ① The controller inside the node, ② the panel title ETHERNET CONTROLLER, ③ NAME = ZONE_Ethernet_Controller_0, ④ the empty MAC ADDRESS, ⑤ MAC LAYER TYPE with all three values off.

The CONFIGURATION section of the ETHERNET CONTROLLER panel holds MAC ADDRESS, MAC LAYER TYPE, MAX TX BUFFER LENGTH and MAX RX BUFFER LENGTH, and the COUPLING PORTS section below it shows No coupling ports. This chapter uses only NAME and MAC ADDRESS.

Entering the Name and MAC Address​

  1. In the NAME field, delete ZONE_Ethernet_Controller_0, type EthernetCommController and press the Tab key.

  2. Type 11:22:EE:44:55:66 into MAC ADDRESS and press the Tab key. An empty field shows the hint MAC Address (XX:XX:XX:XX:XX:XX). The value you typed is immediately shown in lowercase as 11:22:ee:44:55:66.

  3. Do not click XMII, XGMII or XXGMII of MAC LAYER TYPE.

    The Ethernet controller with its name and MAC address entered

    Figure 4-3. After entering the values. ① The controller, ② NAME = EthernetCommController, ③ MAC ADDRESS shown in lowercase as 11:22:ee:44:55:66, ④ MAC LAYER TYPE, left unclicked.

Note. MAC ADDRESS is saved in lowercase even when you type it in uppercase, and no warning appears. It differs from the reference design value 11:22:EE:44:55:66 only in letter case and is the same address.

Caution. Do not click MAC LAYER TYPE. The two Ethernet controllers of the reference design have the MAC layer type X-MII, but the values of this toggle are XMII, XGMII and XXGMII. Clicking XMII puts XMII into the exported ARXML as is. The AUTOSAR schema (XSD) allows only X-MII, XG-MII and XXG-MII, so XMII is not a schema value, and the XML editor's schema check reports it as an error when you open the exported file. If you leave the toggle alone, the export result has no MAC layer type. This difference is covered in ARXML Export.

Creating a Controller on HPC​

  1. Right-click an empty spot inside the node HPC. The menu is the same as for ZONE, except that the item just above Delete is Extract Machine instead of Extract ECU.

  2. Click Add Controller › Ethernet.

    Choosing Add Controller › Ethernet from the context menu of the node HPC

    Figure 4-4. The context menu of the node HPC. ① Add Controller, ② Ethernet in the submenu, ③ the right-clicked node HPC, ④ Extract Machine. Right-clicking selects the node HPC, so the panel now shows the HPC panel with NAME HPC.

  3. A controller square appears inside HPC. Click it; the ETHERNET CONTROLLER panel shows NAME HPC_Ethernet_Controller_0. Type EthernetController into NAME and press the Tab key.

  4. Type 00:11:22:33:44:55 into MAC ADDRESS and press the Tab key. Again, do not click MAC LAYER TYPE.

    The Ethernet controller of the node HPC

    Figure 4-5. The Ethernet controller of the node HPC. ① The controller inside HPC, ② NAME = EthernetController, ③ MAC ADDRESS = 00:11:22:33:44:55.

The values of the two controllers are collected below.

NodeDefault nameNAMEMAC ADDRESSMAC LAYER TYPE
ZONEZONE_Ethernet_Controller_0EthernetCommControllerType 11:22:EE:44:55:66 (saved as 11:22:ee:44:55:66)Do not click
HPCHPC_Ethernet_Controller_0EthernetController00:11:22:33:44:55Do not click

Creating the Ethernet Connectors​

Adding a Connector​

  1. Right-click an empty spot inside the node ZONE.

  2. Hover over Add Connector and click Ethernet in the submenu. The submenu holds Ethernet, CAN and LIN.

  3. A connector square appears on the bottom edge of the node ZONE, with a green + badge below it. The connector is not selected automatically either, so click the connector square. The panel is titled ETHERNET CONNECTOR; NAME is ZONE_Ethernet_Connector_0, CONTROLLER is Select controller... and CONNECTED CHANNEL is (None). CONTROLLER is a required field: while it is empty, its label is red with the hint Controller is required, and the V icon in the footer shows the red badge 1.

    The Ethernet connector with its default name

    Figure 4-6. The new Ethernet connector. ① The connector on the bottom edge of the node, ② the panel title ETHERNET CONNECTOR, ③ NAME = ZONE_Ethernet_Connector_0, ④ CONTROLLER = Select controller..., red with Controller is required, ⑤ the NETWORK ENDPOINT header with IPv4 on. All endpoint fields are empty, all three values of ADDRESS SOURCE are off, and the V icon in the footer shows the badge 1.

The NETWORK ENDPOINT section holds UNICAST IPV4 ADDRESS, ADDRESS SOURCE (FIXED, AUTO-IP, DHCPv4), KEEP BEHAVIOR, DEFAULT GATEWAY, NETWORK MASK, TTL, ASSIGNMENT PRIORITY, MULTICAST IPV4 ADDRESS and MULTICAST PORT under the subheading MULTICAST CONFIG, and DNS SERVER ADDRESSES. Below it follow APPLICATION ENDPOINTS, SERVICE INSTANCES, SOCKET CONNECTIONS, PARTIAL NETWORK, TX PDUS and RX PDUS. This chapter uses only NAME, CONTROLLER, UNICAST IPV4 ADDRESS, ADDRESS SOURCE and MULTICAST IPV4 ADDRESS.

Setting the Name, Controller and Address​

  1. Type EthernetConnector into NAME and press the Tab key.

  2. Click the CONTROLLER field and click EthernetCommController in the list. The list holds only one item, EthernetCommController, the Ethernet controller of the same node. An orange line joining the connector and the controller appears on the canvas. The red mark of CONTROLLER and the badge on the V icon disappear.

  3. Type 192.168.0.19 into UNICAST IPV4 ADDRESS and press the Tab key. An empty field shows the hint IPv4 Address.

  4. Click FIXED of ADDRESS SOURCE.

    The Ethernet connector of ZONE with its name, controller and address set

    Figure 4-7. After entering the values. ① The connector, ② NAME = EthernetConnector, ③ CONTROLLER = EthernetCommController, ④ UNICAST IPV4 ADDRESS = 192.168.0.19, ⑤ ADDRESS SOURCE with FIXED on.

Caution. All three values of ADDRESS SOURCE are off at first. If you do not click FIXED, the connector is saved with no address source.

Creating a Connector on HPC​

  1. Right-click an empty spot inside the node HPC and click Add Connector › Ethernet. A connector square appears on the bottom edge of HPC. Click it; the ETHERNET CONNECTOR panel shows NAME HPC_Ethernet_Connector_0.

  2. Type EthernetConnector into NAME and press the Tab key.

  3. Click EthernetController in the CONTROLLER list. It is the only item in the list.

  4. Type 192.168.0.11 into UNICAST IPV4 ADDRESS, press the Tab key, and click FIXED of ADDRESS SOURCE.

  5. Type 224.0.0.1 into MULTICAST IPV4 ADDRESS under MULTICAST CONFIG and press the Tab key. Leave MULTICAST PORT empty.

    The Ethernet connector of the node HPC

    Figure 4-8. The Ethernet connector of the node HPC. ① The connector of HPC, ② NAME = EthernetConnector, ③ CONTROLLER = EthernetController, ④ UNICAST IPV4 ADDRESS = 192.168.0.11, ⑤ ADDRESS SOURCE with FIXED on, ⑥ MULTICAST IPV4 ADDRESS = 224.0.0.1.

The values of the two connectors are collected below.

NodeDefault nameNAMECONTROLLERUNICAST IPV4 ADDRESSADDRESS SOURCEMULTICAST IPV4 ADDRESS
ZONEZONE_Ethernet_Connector_0EthernetConnectorEthernetCommController192.168.0.19FIXEDLeave empty
HPCHPC_Ethernet_Connector_0EthernetConnectorEthernetController192.168.0.11FIXED224.0.0.1

Note. In the reference design, the connector EthernetConnector of HPC has no controller assigned, and its unicast address points to the endpoint of ZONE (192.168.0.19). This tutorial corrects that and builds the connector with the own controller of HPC, EthernetController, and the address 192.168.0.11. The difference is covered in detail in ARXML Export.

Endpoints and Connector Addresses​

The reference design places three network endpoints under the Ethernet channel, and the connectors point to these endpoints. The System editor has no field for creating an endpoint separately and no field for an endpoint name; you enter an endpoint through the address fields of a connector. The addresses you entered above correspond as follows.

Endpoint of the reference designAddressWhere you entered it in this chapter
ZONE_Endpoint192.168.0.19 (FIXED)UNICAST IPV4 ADDRESS and ADDRESS SOURCE of the ZONE connector
HPC_Endpoint192.168.0.11 (FIXED)UNICAST IPV4 ADDRESS and ADDRESS SOURCE of the HPC connector
SOMEIP_SD_Multicast224.0.0.1MULTICAST IPV4 ADDRESS of the HPC connector

SOMEIP_SD_Multicast is the multicast address used for SOME/IP service discovery (SD), and you enter it only on the HPC connector. On export, PAIO names the endpoints after the node and connector names (for example HPC_EthernetConnector_Endpoint), so the names differ from those of the reference design.

Creating the Ethernet Cluster​

Creating the Cluster from the ZONE Connector​

The connector from which you create the cluster becomes the first connector of the channel. To match the order of the reference design (ZONE, HPC), you create the cluster from the connector of ZONE.

  1. Click the green + badge below EthernetConnector of the node ZONE.

  2. Click Create CommunicationCluster [Ethernet] in the menu that opens. It is the only item in the menu.

    Create CommunicationCluster [Ethernet] in the + badge menu

    Figure 4-9. The + badge menu of the ZONE connector. ① The + badge, ② Create CommunicationCluster [Ethernet]. The panel still shows the connector of HPC edited before.

  3. A cluster square appears below ZONE, with its name EthernetCluster_0 written under it. If you cannot see it, click Fit to View, and if HPC is hidden under the panel, click Zoom Out.

  4. Click the cluster square. The panel is titled ETHERNET CLUSTER, and NAME is EthernetCluster_0.

    The Ethernet cluster with its default name

    Figure 4-10. The new Ethernet cluster. ① The cluster square, ② NAME = EthernetCluster_0, ③ CHANNEL NAME holding the default PhysicalChannel, ④ the empty VLAN ID showing the hint UNTAGGED or 1-4094. ZONE/EthernetConnector is listed under Connected Connectors (1).

  5. Type EthernetCluster into NAME and press the Tab key. The name under the square changes to EthernetCluster.

  6. Type 13 into VLAN ID and press the Tab key. Leave CHANNEL NAME as it is.

    The Ethernet cluster with its name and VLAN ID entered

    Figure 4-11. After entering the values. ① The cluster square, ② NAME = EthernetCluster, ③ VLAN ID = 13.

Note. Unlike the CAN CLUSTER panel, the ETHERNET CLUSTER panel has no PROTOCOL section. There are no fields for a baud rate or a protocol name, and the VLAN is set only through the VLAN ID of the channel.

Connecting the HPC Connector to the Channel​

  1. Click the green + badge below EthernetConnector of the node HPC. This time the menu holds Create CommunicationCluster [Ethernet] and Connect to Channel....

  2. Hover over Connect to Channel..., hover over EthernetCluster in its submenu, and click PhysicalChannel (VLAN: 13) in the next submenu. The VLAN ID is shown next to the channel name.

    Choosing Connect to Channel... › EthernetCluster › PhysicalChannel (VLAN: 13)

    Figure 4-12. The + badge menu of the HPC connector. ① The + badge, ② Connect to Channel..., ③ EthernetCluster, ④ PhysicalChannel (VLAN: 13).

Note. The + badge of the HPC connector is smaller than the one on the ZONE side. If it is hard to click, zoom in before clicking it. Also, when the connector is close to the right edge of the screen, the third menu may open to the left and cover the earlier menus. In that case, close the menu, click Zoom Out once more, and open it again.

Caution. Create CommunicationCluster [Ethernet] in this menu creates a new cluster. Connect the connector of HPC to the channel created earlier with Connect to Channel....

Tidying the Layout and Saving​

  1. Click Auto Layout in the toolbar below the canvas, then click Fit to View. If HPC is hidden under the panel, click Zoom Out.

  2. Click the Ethernet cluster square and confirm that VLAN ID is 13 and that ZONE/EthernetConnector and HPC/EthernetConnector are listed under Connected Connectors (2).

    The Ethernet cluster with two connectors connected

    Figure 4-13. The canvas after Auto Layout. ① Auto Layout, ② Fit to View, ③ the Ethernet cluster square, ④ CHANNEL NAME PhysicalChannel, VLAN ID 13 and ZONE/EthernetConnector, HPC/EthernetConnector under Connected Connectors (2). The Ethernet cluster sits between HPC and ZONE, with CanCluster to its left.

  3. Click the empty canvas where there is no node, then press Ctrl+S to save. The blue dot on the tab TopologyDesign:System disappears.

Once connected, the CONNECTED CHANNEL of both connectors shows EthernetCluster / PhysicalChannel (VLAN: 13). The layout after Auto Layout may differ slightly from the figure.

Viewing the Validation Result​

  1. Click the V icon in the footer to open the VALIDATION panel.

    The Validation panel without findings

    Figure 4-14. The VALIDATION panel after saving. ① The V icon in the footer, ② the row No validation issues..

The validation result is zero findings, the same as at the end of CAN Bus. Creating EthernetCluster adds no UDP NM (network management) cluster to the design, because NM is off for a new cluster. The next section shows the tab where NM is turned on.

Note. While CONTROLLER of a connector was empty, the V icon showed the red badge 1. The badge disappears when the count drops back 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.

Checking the Network Management Tab​

Opening the Cluster Configuration Window​

  1. Click the V icon in the footer again to close the VALIDATION panel.

  2. Double-click the EthernetCluster square on the canvas. The window Communication Cluster Configuration [EthernetCluster] opens. Its tabs are CLUSTER, NM CLUSTER and TIME DOMAIN, and it first shows the CLUSTER tab: the table PDU TRIGGERINGS [PHYSICALCHANNEL VLAN 13] reads No PDU triggering. [+] adds a PDU of the Signal model., and SIGNAL LAYOUT reads Select a frame or PDU triggering to see where it is sent and its signal layout..

  3. Click the NM CLUSTER tab.

    The disabled NM CLUSTER tab of the Communication Cluster Configuration window

    Figure 4-15. The NM CLUSTER tab. ① The tab NM CLUSTER with a hollow dot in front of its name, ② the dimmed editing area, which takes no input.

A hollow dot in front of a tab name means that the feature is off for this cluster. NM CLUSTER and TIME DOMAIN both carry it, and their names appear dimmed. Hovering over such a tab shows the tooltip Disabled. Right-click to enable., and right-clicking it opens a menu with one item, Enable.

While NM is off, the tab shows the NM editor only as a dimmed preview, and nothing in the preview is stored in the design. CHANNEL in NM CONFIGURATION on the left shows NAME NmCluster_EthernetCluster, and NM TIMING CONFIGURATION shows NM MSG CYCLE TIME 0.5, NM REPEAT MESSAGE TIME 1, NM NETWORK TIMEOUT 2, NM WAIT BUS SLEEP TIME 1.5, NM REMOTE SLEEP INDICATION TIME 1 and NM MESSAGE TIMEOUT TIME 2 (all in s). NM STATE MACHINE on the right is the NM state diagram.

Caution. Do not choose Enable. The reference design has no NM settings, so this tutorial leaves NM off for EthernetCluster.

Closing the Window​

  1. Click Close at the bottom right of the window. The window closes without a save prompt.

Note. Unlike the window of CanCluster in CAN Bus, this window has no TRANSPORT PROTOCOL tab. PAIO offers that tab only for CAN and LIN clusters.

Validating Again​

  1. Click the V icon in the footer to open the VALIDATION panel. It still shows No validation issues., and the tab TopologyDesign:System carries no modified mark.

Closing the window without choosing Enable leaves the design as it was, and this result is expected.

Values Without an Input Field​

The Ethernet part of the reference design has values for which the System editor has no input field. You do not create these values in this chapter. The difference in the export result is covered in ARXML Export.

Value in the reference designLocationSystem editor
Protocol name PROTOCOL-NAME = IEEE 802.3EthernetClusterThe ETHERNET CLUSTER panel has no PROTOCOL section
Category CATEGORY = WIREDThe channel, both controllers, both connectorsNo field in the cluster, controller or connector panels
WAKE-UP-BY-CONTROLLER-SUPPORTED = falseEthernetController of HPCNo field in the ETHERNET CONTROLLER panel
VLAN name Vlan_13The channelOnly a VLAN ID field, no name field
Endpoint names ZONE_Endpoint, HPC_Endpoint, SOMEIP_SD_MulticastThe channelEndpoints are entered through the address fields of the connectors, with no name field

Why Is It Designed This Way?​

  • The Ethernet bus joins ZONE and HPC. In the reference design, the channel PhysicalChannel of EthernetCluster holds the connectors EthernetConnector of ZONE and HPC, in that order. You create the cluster from the ZONE side to match this order.
  • The controller names differ per node, while the connector names are the same. The reference design calls the controller of ZONE EthernetCommController and the controller of HPC EthernetController, and calls both connectors EthernetConnector. Since the nodes differ, the names may be the same.
  • Addresses go on the connectors. The three endpoints of the reference design become the unicast address of the ZONE connector, the unicast address of the HPC connector and the multicast address of the HPC connector.
  • The HPC connector is built with the reference design corrected. In the reference design this connector has no controller and points to the address of ZONE. Following it as is would give both connectors the same address and leave the HPC address 192.168.0.11 unused, so this tutorial builds it with the own controller and address of HPC.
  • The VLAN ID is 13. The channel of the reference design has a VLAN whose VLAN ID is 13.
  • MAC LAYER TYPE is left empty. The toggle value XMII differs from the AUTOSAR schema value X-MII, so clicking it exports a value that is not in the schema.
  • NM stays off. The reference design has no NM settings. NM is turned on per cluster with Enable on the NM CLUSTER tab, and a new cluster has it off, so you leave it off and EthernetCluster gets no UDP NM cluster.

Checklist​

  • The node ZONE has the Ethernet controller EthernetCommController (MAC ADDRESS 11:22:ee:44:55:66) and the Ethernet connector EthernetConnector (CONTROLLER = EthernetCommController, UNICAST IPV4 ADDRESS 192.168.0.19, FIXED).
  • The node HPC has the Ethernet controller EthernetController (MAC ADDRESS 00:11:22:33:44:55) and the Ethernet connector EthernetConnector (CONTROLLER = EthernetController, UNICAST IPV4 ADDRESS 192.168.0.11, FIXED, MULTICAST IPV4 ADDRESS 224.0.0.1).
  • MAC LAYER TYPE of both Ethernet controllers has all three values off.
  • Selecting the cluster EthernetCluster shows CHANNEL NAME PhysicalChannel and VLAN ID 13, and lists ZONE/EthernetConnector and HPC/EthernetConnector, in that order, under Connected Connectors (2).
  • In Communication Cluster Configuration [EthernetCluster], the tabs NM CLUSTER and TIME DOMAIN have a hollow dot in front of their names.
  • The tab TopologyDesign:System carries no modified mark.
  • The VALIDATION panel shows No validation issues..

Next Step​

In LIN Bus you create LIN controllers and connectors on the nodes ECU and SLAVE_ECU and join them with the LIN cluster LinCluster.