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

Diagnostic Editor

What This Chapter Covers​

This chapter explains the Diagnostic editor, where you edit the diagnostic extract (DEXT) of the project. The editor has two levels:

  • SYSTEM COMMON holds the catalogues every node shares: sessions, security levels, access permissions, authentication roles, data identifiers (DIDs), routines, events, DTCs and their records.
  • DIAGNOSTIC ECUs lists the ECU and HPC nodes of the System editor. For each node you choose which catalogue entries it supports, which UDS services it offers, and with which access permission.

The nodes themselves are created in 06. System Editor. A node's diagnostic addressing (physical and functional addresses, connections, DoIP) is edited in its DIAGNOSTIC tab there (6.7.6), not in this editor.

22.1 Opening the Editor and Save Location​

  1. In the EDITOR view on the left, click Diagnostic under DESIGN. The tab <project>:Diagnostic opens.
  2. Edit, then press Ctrl+S to save.

The editor reads and writes design/DIAGNOSTIC.io.model, which is created on the first save. If the file cannot be read, editing is disabled until you fix or delete it and reopen the editor.

22.2 Screen Layout​

The editor has a tree on the left and the editing area on the right.

  • SYSTEM COMMON has two rows: SERVICE (tabs ACCESS, DATA IDENTIFIER, ROUTINE) and EVENT.
  • DIAGNOSTIC ECUs has one row per ECU and HPC, with an ECU or HPC badge. The badge is highlighted when the node has a diagnostic specification.

A specification whose node was deleted or renamed in the System editor stays in the list as <name> (missing).

22.3 Enabling Diagnostics for a Node​

A node has no diagnostic specification until you enable it. Until then its tabs are read-only.

  1. Select the node under DIAGNOSTIC ECUs. The banner Diagnostics are not enabled for <node>. appears.
  2. Click ENABLE DIAGNOSTICS. The banner disappears and the node's badge is highlighted.

A newly enabled node supports every session and security level of the catalogue and no service, DID, routine or event.

22.4 Working with Tables​

Most lists of the editor are row tables that work the same way.

  • + in the section header adds a row or opens a menu of choices. Click a row to expand its fields.
  • × at the end of a row deletes it. An entry that other entries still reference opens Delete with References, which deletes the entry and removes those references in one step.
  • A name is checked when the field loses focus. An empty name or one that breaks the AUTOSAR naming rule is refused. A rename is carried into every reference.

22.5 SYSTEM COMMON ▸ SERVICE​

The three tabs of SERVICE are the only place where the shared service catalogues are created and edited. The node tabs of the same names (22.7) only choose from them.

22.5.1 ACCESS​

ACCESS has four sections: SESSIONS, SECURITY LEVELS, ACCESS PERMISSIONS and AUTHENTICATION (0x29).

  1. Click + on SESSIONS and pick an ISO 14229-1 session, or Custom session.
  2. Add security levels with + on SECURITY LEVELS.
  3. Add an access permission and choose the sessions and security levels it allows, and whether AUTHENTICATION is required.

22.5.2 DATA IDENTIFIER​

The table lists the DIDs of the project.

  1. Click + and choose Custom DID or a DID of ISO 14229-1 Table C.1.
  2. Expand the DID and set NAME, ID and the other fields.
  3. In the PARAMETERS table, click + to add parameters. Insert DID appends the parameters of another DID. Drag the # cell to reorder rows.

COMPU METHOD offers the CompuMethods of the DataType editor.

22.5.3 ROUTINE​

  1. Click +. A routine named Routine1 with the START sub-function is added.
  2. Expand it and switch START, STOP and RESULT under SUB-FUNCTIONS on or off.
  3. Fill in the request and response parameter tables of each sub-function that is on. They work like the DID PARAMETERS table.

22.6 SYSTEM COMMON ▸ EVENT​

EVENT edits the diagnostic events, the DTCs, and the definitions they use. A sub-tab bar at the top holds the EVENT sub-tab and the definition sub-tabs.

22.6.1 The EVENT Sub-Tab​

The sub-tab has three panels: EVENTS on the left, the selected EVENT in the center, and its DTC on the right.

  1. Click + in EVENTS. Event1 is added.
  2. Set the event fields in the center. For OPERATION CYCLE and DEBOUNCE, pick a definition from the chevron list, or click + to create and bind a new one.
  3. In the right panel, click + in the DTC header. A DTC with the next free 3-byte value from 0x500000 is created and bound to the event.

Deleting an event also deletes its DTC.

22.6.2 The Definition Sub-Tabs​

The other sub-tabs (OPERATION CYCLE, DEBOUNCE, AGING, FREEZE FRAME, EXTENDED DATA, MEMORY, DTC GROUP) list the definitions the events and DTCs use. Each is a row table, and + adds a row.

22.7 Node Tabs​

Select a node under DIAGNOSTIC ECUs to edit what that node supports. The node tabs never create catalogue entries; they choose from SYSTEM COMMON.

22.7.1 OVERVIEW​

Sets the protocol, timing, response, DTC status and security values of the node, such as DEFAULT ENDIANNESS and S3 SERVER TIMEOUT (S) (unset means 5 s).

22.7.2 ACCESS​

Owns the session control (0x10), security access (0x27) and authentication (0x29) services of the node.

  1. Check SUPPORTED on a session or security level. It is added to the node with its service instance.
  2. Expand the row and pick its ACCESS PERMISSION (Unrestricted or an access permission of the catalogue).
  3. Check FUNC if the instance is reachable by functional addressing.

FUNC is disabled unless one of the node's diagnostic connections has a functional receive PDU (System editor, DIAGNOSTIC tab, 6.7.6).

22.7.3 SERVICES​

Lists the ISO 14229-1 services of the node, grouped by SID, with one row per sub-function.

  1. Check SUPPORTED on each row the node offers.
  2. Pick its PERMISSION and, if needed, check FUNC.

Type in the filter field (Filter SID / name) to narrow the list.

22.7.4 DATA IDENTIFIER​

Check USED to assign a DID to the node with unrestricted read access. Expand the row to set the read, write and IO control access to Unsupported, Unrestricted or an access permission.

22.7.5 ROUTINE​

Check USED to give every present sub-function of a routine unrestricted access. Expand the row to pick a permission per sub-function.

22.7.6 EVENT​

Check USED to apply an event to the node; when the event has a DTC, the DTC and its records follow. The event and DTC are read-only here; edit them under SYSTEM COMMON ▸ EVENT.

22.8 Saving, Undo, and External Changes​

Ctrl+S saves, and Ctrl+Z / Ctrl+Y undo and redo. When the file changes on disk, the editor reloads it, but keeps your unsaved edits if you have any.

22.9 Validation and Limits​

14. Validation also checks the diagnostic model. Clicking a diagnostic entry opens this editor on the node, tab and row concerned. A reference that names nothing is shown in the warning colour.

22.10 Integration with Other Editors​

  • The node list comes from the System editor.
  • The ECU Configuration dialog of the VFB editor has a DIAGNOSTIC tab (8.12.3) with the switch Derive Dcm/Dem ECUC from DEXT on Apply, which writes the Dcm and Dem configuration from this model.
  • CompuMethods of DID and routine parameters come from the DataType editor.

22.11 Common Situations​

The most common one: a node's tabs are read-only because the node has no diagnostic specification. Click ENABLE DIAGNOSTICS (22.3).