Requirements#

UDS Data Bridge Requirements
status: draft
security: YES
safety: QM
tags: requirements, uds_data_bridge
version: 1

Functional Requirements#

Data from UDS Handlers
status: invalid
security: YES
safety: QM

The UDS data bridge shall provide read-only data resources whose values are read from C++ ReadDataByIdentifier handlers of score::mw::diag.

Text Data Values
status: invalid
security: NO
safety: QM

For data resources declared as text, the UDS data bridge shall return the UDS payload as a JSON string and shall return an error instead of a value when the payload is not valid UTF-8.

Binary Data Values
status: invalid
security: NO
safety: QM
reqtype: Functional
version: 1

For data resources, the UDS data bridge shall return the UDS payload as application/octet-stream when the HTTP Accept header of the request asks for it.

Negative Response Codes
status: invalid
security: NO
safety: QM

The UDS data bridge shall answer a read whose UDS handler returns NRC 0x31 (requestOutOfRange) as not found, and shall include the NRC in the error of every other negative response.

Read Timeout
status: invalid
security: NO
safety: QM

The UDS data bridge shall answer a read with an error when its UDS handler does not complete within the timeout configured for the data resource, and shall request the handler to stop.

Read Admission
status: invalid
security: YES
safety: QM

The UDS data bridge shall answer a read with an error, without calling the UDS handler, while eight reads of that handler are outstanding.

Non-Functional Requirements#

Non-Blocking Reads
status: invalid
security: YES
safety: QM

Pending reads of UDS handlers shall not delay the handling of other requests by the SOVD gateway.

Assumptions of Use (AoU)#

Cooperative UDS Handlers
status: valid
security: NO
safety: QM
reqtype: Functional
version: 1

The user shall provide ReadDataByIdentifier handlers that return their future without blocking and stop their work when the stop token is requested.