Requirements#

Classic Diagnostic Adapter Requirements
status: draft
security: YES
safety: QM
tags: requirements, classic_diagnostic_adapter
version: 1

Functional Requirements#

CDA HTTP Server Port
status: valid
security: YES
safety: QM
reqtype: Interface
version: 1

The classic diagnostic adapter shall serve its SOVD API on the HTTP or HTTPS port set in its configuration.

Refines req~sovd-api-http-server-port.

CDA Faults Endpoint
status: valid
security: YES
safety: QM

The classic diagnostic adapter shall, for each ECU:

  • list the ECU’s faults (DTCs) with their codes and status at GET /components/{ecu}/faults,

  • return a fault with its status bits, snapshot records and extended data records at GET /components/{ecu}/faults/{code},

  • clear the ECU’s fault memory at DELETE /components/{ecu}/faults.

Refines req~sovd-api-faults-endpoint.

CDA Asynchronous Operations
status: valid
security: YES
safety: QM

For an ECU routine that defines the RequestResults and Stop subfunctions, the classic diagnostic adapter shall:

  • start the routine at POST /components/{ecu}/operations/{op}/executions and answer with an execution ID and the status running,

  • request and return the routine’s results at GET /components/{ecu}/operations/{op}/executions/{id},

  • stop the routine at DELETE /components/{ecu}/operations/{op}/executions/{id}, answer with HTTP 200, the status stopped and the Stop result when the ECU returns output data, or with HTTP 204 when it returns none, and answer later requests for that execution with HTTP 404.

Refines req~sovd-api-operations-handling.

CDA ECU Lock
status: valid
security: YES
safety: QM

The classic diagnostic adapter shall let a client acquire a lock on an ECU at POST /components/{ecu}/locks with a lock expiration, answer with the lock’s ID, report the lock as owned by that client at GET /components/{ecu}/locks/{id}, and release it at DELETE /components/{ecu}/locks/{id}.

Refines req~sovd-api-lock-api.

CDA ECU Lock Enforcement
status: valid
security: YES
safety: QM

The classic diagnostic adapter shall reject a write request to an ECU, such as clearing its faults, with HTTP 409 and leave the ECU unchanged when no lock is held on the ECU, and shall execute the request when the client holds a lock on the ECU.

Refines req~sovd-api-lock-ecu-enforcement.

CDA UDS Service Mapping
status: valid
security: YES
safety: QM

The classic diagnostic adapter shall translate the following SOVD resources of an ECU into the UDS services of that ECU:

  • /data/{data-identifier} reads to ReadDataByIdentifier (SID 2216),

  • /faults reads to ReadDTCInformation (SID 1916) and clearing to ClearDiagnosticInformation (SID 1416),

  • /modes/session updates to DiagnosticSessionControl (SID 1016),

  • /operations/reset executions to ECUReset (SID 1116),

  • other /operations/{op} executions to RoutineControl (SID 3116).

Refines req~sovd-api-standardized-resource-collection-mapping.