Skip to main content

Interface Editor

What This Chapter Covers​

This chapter explains how to use the Interface editor. It defines the port interfaces that SWC ports reference, and the deployments (SOME/IP, DDS, IPC) and service instances of an AP service interface.

  • Audience: users who define AUTOSAR interfaces and service deployments
  • Prerequisites: a project is open; derivation also needs an active license

You can define data types inside this screen, so you do not need to open 10. DataType Editor first.

To open the editor, click Interface under DESIGN in the EDITOR view on the left. The tab <project>:Interface opens. Do not open design/INTERFACE.io.model or design/SERVICE.io.model from the Explorer: there they open as a read-only JSON view.

The EDITOR view with Interface selected and the PNC tab

① Interface under DESIGN. ② The tab PNC:Interface.

9.1 Screen Layout​

The Interface editor

① The eight category tabs. ② The INTERFACES panel. ③ The CONFIGURATION panel. ④ The right panel.

Drag the borders between the three panels to adjust their widths.

The INTERFACES Panel on the Left​

  • + adds an item that suits the current tab, and − deletes the selected items after a confirmation dialog.
  • ⋯ opens the sort and filter popover, and the search box filters by name.
  • Ctrl+click adds a row to the selection, and Ctrl+A selects every row.

The Sort &amp; Filter popover

① The ⋯ (Sort & Filter) button on the Service tab.

The CONFIGURATION Panel in the Middle​

Shows the fields of the selected interface. The ⚡ button in its header performs derivation (9.5).

Interfaces are stored in the Interface model, and service deployments and service instances in the Service model. One Ctrl+S writes both together with the DataType model. InterfaceMapping is the exception: it goes to the VFB model as soon as you edit it (9.3.7).

9.2 The Eight Category Tabs​

The eight category tabs

The eight category tabs, with SERVICE active.

Tab labelWhat it covers
SERVICEAP ServiceInterface + service deployment + service instances
SENDER-RECEIVERCP SenderReceiverInterface
CLIENT-SERVERCP ClientServerInterface
MODE-SWITCHCP ModeSwitchInterface
TRIGGERCP TriggerInterface
ADAPTIVEDedicated port interfaces grouped by AP functional cluster
ERROR DOMAINAP error domains
MAPPINGThe InterfaceMapping that links an AP service interface to a CP interface

9.3 What You Edit on Each Category​

Every tab has NAME and a free-text DESCRIPTION. The sections below cover what differs. Naming follows 9.8.

9.3.1 Service​

  1. On the SERVICE tab, click + and select the new interface.
  2. Set NAME, C++ NAMESPACE, MAJOR VERSION and MINOR VERSION.
  3. Open the EVENTS, METHODS or FIELDS sub-tab and click + in the header to add an element.
  4. Expand a method row to set its METHOD TYPE, ARGUMENTS and POSSIBLE AP ERRORS.

The Service tab

① The METHODS sub-tab. ② METHOD TYPE. ③ ARGUMENTS. ④ POSSIBLE AP ERRORS.

  • POSSIBLE AP ERRORS references errors from the Error Domain tab, so create the domain first.
  • Drag the # cell of an argument row to reorder the arguments.

9.3.2 Sender-Receiver​

Add data elements to the DATA ELEMENTS table and give each a NAME and a TYPE.

The Sender-Receiver tab

① The DATA ELEMENTS table.

9.3.3 Client-Server​

Add operations to OPERATIONS and expand one to set its ARGUMENTS (IN / OUT / INOUT). APPLICATION ERRORS below applies to the whole interface.

The Client-Server tab

① OPERATIONS, with each operation as a C parameter list in ARGS. ② APPLICATION ERRORS.

9.3.4 Mode-Switch​

  1. Add mode declarations with + in MODE DECLARATION.
  2. Pick the INITIAL MODE in MODE GROUP.
  3. Draw the transitions in the STATE MACHINE diagram on the right: Shift + drag one node onto another. Transitions are not created automatically.

The Mode-Switch tab

① MODE GROUP with INITIAL MODE Off. ② MODE DECLARATION. ③ The STATE MACHINE diagram.

9.3.5 Adaptive​

Creates the dedicated interfaces of the AP functional clusters.

  1. Click +. The list of ten clusters opens.
  2. Hover over a cluster and click an interface kind. ara::diag has one more level: UDS, Fault Memory, DoIP.

The Adaptive + menu

① The + button. ② ara::diag. ③ The UDS submenu.

A badge after each name shows the kind. For a StateClient, pick the FUNCTION GROUP defined in the Machine Configuration dialog; the right panel then shows its state machine.

The Adaptive tab

① The SC badge. ② FUNCTION GROUP set to HPC/MachineFG. ③ The FUNCTION GROUP STATE MACHINE viewer.

9.3.6 Error Domain​

Set the domain ID in hexadecimal (the 0x prefix is fixed) and add errors to APPLICATION ERROR, each with a NAME and an ERROR CODE.

The Error Domain tab

① ID. ② APPLICATION ERROR.

9.3.7 Mapping​

Defines the InterfaceMapping that links an AP service interface to a CP interface.

  1. Click +. In the first Add Interface Mapping dialog enter a name; in the second pick a service interface or leave it empty.
  2. Select the mapping. SERVICE INTERFACE and CP INTERFACES are read-only.
  3. In the EVENTS, METHODS and FIELDS sections, pick the CP element for each service element in the right column.

The Mapping tab

① SERVICE INTERFACE. ② CP INTERFACES. ③ The METHODS section.

InterfaceMapping is saved to the VFB model, not the Interface model, and each edit takes effect at once.

9.3.8 Trigger​

Defines a trigger interface, which a Classic SW-C port can use to fire or receive triggers.

  1. On the TRIGGER tab, click + and select the new interface.
  2. In TRIGGERS, click + (Add Trigger) to add a trigger.
  3. Give the trigger a Name and, if needed, a Sw Impl Policy (STANDARD or QUEUED).

The Trigger tab

① The TRIGGER tab. ② TRIGGERS. ③ + (Add Trigger). ④ Sw Impl Policy.

Trigger names must be unique within the interface. In the VFB editor a port typed by a trigger interface shows a trigger icon (see 8.8).

9.4 The Right Panel​

The right panel changes with the tab and the selection.

SituationRight panel
The SERVICE / SENDER-RECEIVER / CLIENT-SERVER tabsSERVICE DEPLOYMENT / SERVICE INSTANCE / DATA TYPE sub-tabs
The MODE-SWITCH tabThe STATE MACHINE diagram
The ADAPTIVE tab with a StateClient selectedThe FUNCTION GROUP STATE MACHINE viewer (read-only)
Every other caseThe embedded DataType editing panel

On the Sender-Receiver and Client-Server tabs, the sub-tabs work on the ServiceInterface mapped to the selected CP interface.

9.4.1 SERVICE DEPLOYMENT​

  1. Select a service interface and open SERVICE DEPLOYMENT.
  2. Click + (Add Deployment) and pick SOME/IP, DDS or IPC. A deployment card appears.
  3. Fill in the card, such as SERVICE ID and the versions.

The SERVICE DEPLOYMENT panel

① + (Add Deployment). ② ⟳ (Derive Signal). ③ ④ The card header's + (Add service instance) and − (Remove deployment).

  • ⟳ runs CP-SOA derivation again by hand. It normally runs automatically.
  • Removing a deployment also removes the service instances that use it.

An IPC deployment added

① The new IPC card.

9.4.2 SERVICE INSTANCE​

Click + and pick a provider or consumer of a deployment, for example SOME/IP Provider. A provider carries [P] and a consumer [C].

The SERVICE INSTANCE panel

① The SERVICE INSTANCE sub-tab. ② The + that adds an instance.

A SOME/IP provider or consumer card also has an E2E PROTECTION section for end-to-end protection:

  • PROFILE CONFIGURATIONS: + adds a profile configuration. Expand its row to set its Name, Profile (PROFILE_04, PROFILE_05 and so on), Data ID Mode, Max Delta Counter and the other values. The configurations belong to the project, so every instance card shows the same list.
  • PROTECTED EVENTS and PROTECTED METHODS: + lists the events or methods of the service that can be protected; pick one. Expand the new row to pick its Profile Configuration and set Data IDs and the other values.

The E2E PROTECTION section

① E2E PROTECTION. ② PROTECTED EVENTS, with the event DistanceUpdate protected. ③ PROTECTED METHODS. ④ PROFILE CONFIGURATIONS.

9.4.3 DATA TYPE​

Click the TYPE of an interface element and the right panel switches to DATA TYPE and shows that type. Edits go to the same DataType model as 10. DataType Editor.

The DATA TYPE panel

① Click the type uint8 of an event. ② The right panel shows uint8.

9.5 Interface Derivation (Derive)​

The ⚡ button in the CONFIGURATION header creates matching interfaces from the selected one. It is hidden when the conditions are not met.

  • On the SERVICE or MAPPING tab it creates SR/CS interfaces named {name}_SR and {name}_CS at once.
  • On the SENDER-RECEIVER or CLIENT-SERVER tab, Derive Service Interface asks for a service interface name. An existing name adds the elements to that interface.
  • On the SENDER-RECEIVER tab, Derive Signal creates signals and PDUs in the Signal editor.

The derivation menu on the Sender-Receiver tab

① ⚡ in the CONFIGURATION header.

Derivation also fills the InterfaceMapping in the VFB model, and one Ctrl+Z reverts all of it.

9.6 Shortcuts​

The shortcuts are the common ones (see 18.4). One Ctrl+S writes INTERFACE, SERVICE and the embedded DataType together. Delete deletes the rows selected in the list after confirmation.

9.7 Saving, Undo, and External Changes​

  • One Ctrl+S saves the Interface, Service and DataType models.
  • The unit of undo is one edit. An edit that spans two files reverts in one Ctrl+Z.
  • When a file changes on disk while you have unsaved edits, PAIO keeps your edits and shows a warning.

9.8 Naming Rules​

Names start with a letter, then letters, digits, and underscores. A name that breaks the rule shows an orange warning. Some places reject it and others accept it with the warning, so check that no warned name remains before you export.

9.9 Working with the Other Editors​

  • The VFB editor offers the interfaces defined here when you assign one to a port (see 08. VFB Editor).
  • Renaming an interface also updates the SWC ports and ECUC references that use it.
  • ARXML import and export are covered in 13. Import and Export.