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.

① Interface under DESIGN. ② The tab PNC:Interface.
9.1 Screen Layout

① 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, andCtrl+Aselects every row.

① 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, with SERVICE active.
| Tab label | What it covers |
|---|---|
| SERVICE | AP ServiceInterface + service deployment + service instances |
| SENDER-RECEIVER | CP SenderReceiverInterface |
| CLIENT-SERVER | CP ClientServerInterface |
| MODE-SWITCH | CP ModeSwitchInterface |
| TRIGGER | CP TriggerInterface |
| ADAPTIVE | Dedicated port interfaces grouped by AP functional cluster |
| ERROR DOMAIN | AP error domains |
| MAPPING | The 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
- On the SERVICE tab, click
+and select the new interface. - Set NAME, C++ NAMESPACE, MAJOR VERSION and MINOR VERSION.
- Open the EVENTS, METHODS or FIELDS sub-tab and click
+in the header to add an element. - Expand a method row to set its METHOD TYPE, ARGUMENTS and POSSIBLE AP ERRORS.

① 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 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.

① OPERATIONS, with each operation as a C parameter list in ARGS. ② APPLICATION ERRORS.
9.3.4 Mode-Switch
- Add mode declarations with
+in MODE DECLARATION. - Pick the INITIAL MODE in MODE GROUP.
- Draw the transitions in the STATE MACHINE diagram on the right:
Shift+ drag one node onto another. Transitions are not created automatically.

① 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.
- Click
+. The list of ten clusters opens. - Hover over a cluster and click an interface kind. ara::diag has one more level: UDS, Fault Memory, DoIP.

① 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 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.

① ID. ② APPLICATION ERROR.
9.3.7 Mapping
Defines the InterfaceMapping that links an AP service interface to a CP interface.
- Click
+. In the first Add Interface Mapping dialog enter a name; in the second pick a service interface or leave it empty. - Select the mapping. SERVICE INTERFACE and CP INTERFACES are read-only.
- In the EVENTS, METHODS and FIELDS sections, pick the CP element for each service element in the right column.

① 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.
- On the TRIGGER tab, click
+and select the new interface. - In TRIGGERS, click
+(Add Trigger) to add a trigger. - Give the trigger a Name and, if needed, a Sw Impl Policy (
STANDARDorQUEUED).

① 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.
| Situation | Right panel |
|---|---|
| The SERVICE / SENDER-RECEIVER / CLIENT-SERVER tabs | SERVICE DEPLOYMENT / SERVICE INSTANCE / DATA TYPE sub-tabs |
| The MODE-SWITCH tab | The STATE MACHINE diagram |
| The ADAPTIVE tab with a StateClient selected | The FUNCTION GROUP STATE MACHINE viewer (read-only) |
| Every other case | The 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
- Select a service interface and open SERVICE DEPLOYMENT.
- Click
+(Add Deployment) and pick SOME/IP, DDS or IPC. A deployment card appears. - Fill in the card, such as SERVICE ID and the versions.

① + (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.

① 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 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_05and 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.

① 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.

① 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}_SRand{name}_CSat 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.

① ⚡ 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+Ssaves 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.