ODEx
Onboard ITS Data Exchange specifications
ODEx-3. INVENTORY AND UPDATES INTERFACES
V0.32EN
Cambios con respecto a 32EN
- Nueva introduccion
- Poner Títulos más explícitos en 3.1.1 etc y no sólo el topic
- Actualizado 3.1.4 /dhhetails (Equipment Item HW details)
- No es el cliente MQTT quien publica en /details o genera un ID de un HW sub-component sino la aplicación que implementa la función de inventario del Equipment Item (Equipment Item inventory application). En ODEx-1 v0.34ENcc aclaro que “The Equipment Item applications that implement the ODEx functions for inventory and updates (e.g. the application that declares the Equipment Item) do not need to be declared as hosted applications.”
- El Topic >/details/hw_components/<componentId> se hace obligatorio para declarar componentes de HW
- La información al comienzo del apartado 4, Information about updates (SW & Data), era de carácter funcional por lo que la he movido a ODEx-1
- Añadido apartado informativo: Managing Updates (informative)
- Añadida nota para poner la información general en topics diferentes, cada uno con su JSON
- Se añade esta página de control de cambios para controlar actualizaciones a partir de que cerremos la versión 0.33EN (estos no se incluyen y deberán borrarse)
REVISION HISTORY
Nº | Ver. | Date | Comments |
1 | 0.33EN | 31-may-25 | First draft |
2 | |||
3 |
CONTENTS
2 DATA TYPES AND CARDINALITY NOTATION 3
2.1 Cardinality notation used for the JSON fields 3
2.2 Data Types used for JSON fields 3
3.1.1 /info (Equipment Item general information) 4
3.1.2 /hardware (Equipment Item HW description) 5
3.1.3 /software (Equipment Item base SW/FW and hosted Applications) 6
3.1.4 /details (Equipment Item HW details) 7
3.2.1 /info (Provider general information) 8
3.2.2 /topics_declared (Operational Interfaces implemented by the Provider) 9
3.2.3 /details (Additional information about the Provider) 9
4 INFORMATION ON SW AND DATA AND THEIR UPDATES 10
4.1 /info (Basic information about SW and Data of ITS-PT components and their Updates) 10
4.2 /details (detailed information about SW and Data of ITS-PT components and their Updates) 11
5.3 /status/reports (Detailed Status Report) 15
5.4 /status/definitions (Status Definitions, OPTIONAL) 16
List of Tables
Table 1.- Cardinality notation used for the JSON fields 2
Table 2.- Data types used for JSON fields 3
Table 4.- Status & Heartbeat MQTT topics 13
INTRODUCTION
The ODEx (Onboard Data Exchange) protocol is a set of specifications for the exchange of real time vehicle data, which can be categorized either as 1) Inventory and Status Data, 2) Information about the Software and Configuration or other Data of Equipment Items and Applications and their Updates, and 3) Operational Data, which includes data concerning the physical vehicle (obtained from the vehicle CAN buses and vehicle signals and sensors) and data related to the PT services run by the vehicle (Network Location, Driver Log on, passenger counting, ticketing data…).
The object of this document, ODEx-3. Inventory & Updates Interfaces, is the data of the fisrt two categories: Inventory and Updates, defining the MQTT topics and JSON payloads used by an onboard ITS-PT component to:
- Declare itself in the inventory
- Publish information about its firmware and firmware updates
- Publish information about its configuration data and data updates
- Publish liveness and diagnostic status (heartbeat, simple status plus detailed status reports)
Additionally, ODEx-3 also defines MQTT topics and JSON payloads used to advertise system context (environment, broker, router) and other general information
The corresponding functions are described in equivalent sections (INVENTORY, INFORMATION ON SW AND DATA AND THEIR UPDATES and GENERAL INFORMATION) in ODEx-1. Concepts and Functional Architecture, needed to understand the purpose and working of the payloads described here.
ODEx Documents
Document | Contents |
ODEx-1. Concepts and Functional Architecture |
|
ODEx-2. Network Requirements |
|
ODEx-3. Inventory and Updates Interfaces (This document) |
|
ODEx-4. Operational Interfaces |
|
ODEx-5. Usage and Examples |
|
DATA TYPES AND CARDINALITY NOTATION
Cardinality notation used for the JSON fields
Cardinality | Meaning |
0:1 | Optional field, zero or one occurrence. You may omit it; if you include it, supply exactly one non-array value. |
1:1 | Mandatory field, exactly one occurrence. It must appear once and carry a single non-array value. The 1:1 cardinatility of a field inside a structure only applies if the structure is published, as the structure may have 0:1 cardinality. |
0:* | Optional array, zero or more elements. The array itself may be absent; if present it may be empty [] or have any length. |
1:* | Mandatory array, at least one element. The field must be present and the array must contain ≥ 1 items. |
Table 1.- Cardinality notation used for the JSON fields
Data Types used for JSON fields
All JSON samples in this document
- use lower camel-case field names in a single-level structure (no header / payload nesting)
- include optional elements only when they add value
Notation | Description |
String | UTF-8 text |
Integer | Whole number (positive or negative). Use a wider range (e.g., 64-bit) only when the field explicitly requires it. |
Boolean | true / false |
DateTime | ISO-8601 UTC |
Object | JSON object (unordered key-value map) |
Array<String> | JSON array of strings |
Array<Object> | JSON array of objects |
anyType | Freely defined extension field (must be valid JSON) |
Table 2.- Data types used for JSON fields
INVENTORY DECLARATION
Equipment Items
/info (Equipment Item general information)
Topic (s) | QoS | Retain | Published by |
<root>/inventory/equipment_items/<equip_GUID>/info | 1 | 1 | Equipment item |
Payload structure:
JSON fields | +Structure | Description | |
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) |
topicPath | 1:1 | String | Exact MQTT topic path for this message, corresponding to the Equipment Item declared |
itemType | 1:1 | String | Item Type as defined in Section #2.9 Item Type from ODEx-1 Specification: “Equipment Item” |
equipmentType | 1:1 | String | Equipment type (see Section #4.3 ANNEX 3 – CATALOG OF EQUIPMENT ITEM TYPES from ODEx-1 Specification) |
description | 1:1 | String | Short human-readable description of the equipment |
configTopics (inventory topics) | 0:* | Array<String> | Equipment Item inventory topics under the declared /<Equipment Item GUID>/ (e.g. /info, /hardware, /software, /details/aa, /details/bb) |
currentUpdates | 0:* | Array<String> | MQTT topic paths to the information about current software/data installed |
heartbeatAvailable | 1:1 | Integer | Indicates whether this Equipment Item publishes a /heartbeat topic (true/false) |
usageHints | 0:1 | Array<Object> | Used for additional information related to the publisher or item. E.g. MQTT ClientId |
JSON example for a HOST equipment item:
{
"timestamp": "2025-05-27T10:20:30Z",
"topicPath": "<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/info",
"itemType": "Equipment Item",
"equipmentType": "HOST",
"description": "Main onboard computer",
"heartbeatAvailable": true,
"configTopics": [
"<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/info",
"<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/hardware",
"<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/software"
],
"usageHints": [
{
"clientId": "cli-189a1ab0-bff0-46d7"
}
]
}
JSON example for an SP-OBC equipment item with 3 HW components:
{
"timestamp": "2025-05-27T10:20:30Z",
"topicPath": "<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/info",
"itemType": "Equipment Item",
"equipmentType": "SP-OBC",
"description": "Telemetry OBC",
"heartbeatAvailable": true,
"configTopics": [
"<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/info",
"<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/hardware",
"<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/software",
"…/equipment_items/550e84.../details/hw_components/internal_gnss",
"…/equipment_items/550e84.../details/hw_components/internal_accelerometer",
"…/equipment_items/550e84.../details/hw_components/external_thermometer,
],
"usageHints": [
{
"clientId": "cli-189a1ab0-bff0-46d7"
}
]
}
/hardware (Equipment Item HW description)
Topic | QoS | Retain | Published by |
<root>/inventory/equipment_items/<equip_GUID>/hardware | 1 | 1 | Equipment item |
Payload structure:
JSON fields | +Structure | Description | |||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | ||
topicPath | 1:1 | String | Exact MQTT topic path for this message | ||
manufacturer | 1:1 | String | Company or entity that designed, produced, and assembled the equipment | ||
itsEquipmentModel | 1:1 | String | Model name of the equipment | ||
serialNumber | 0:1 | String | Serial number of the equipment | ||
bridgeGuid | 0:1 | String | GUID of bridge device if the equipment item is not directly connected to the ITS network and it is declared through a bridge device | ||
hardwareVersion | 1:1 | String | Manufacturer’s hardware-revision identifier for the unit. E.g. Rev-B, V3.1… | ||
dateOfManufacture | 1:1 | Datetime (ISO-8601) | Build date. | ||
ethernetPhys | 0:* | Array<Object> | List of on-board Ethernet interfaces. Each object contains the attributes below. | ||
name | 1:1 | String | |||
macAddress | 1:1 | String | |||
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client. | ||
JSON example:
{
"timestamp": "2025-05-27T10:20:30Z",
"topicPath": "<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/hardware",
"manufacturer": "Tekia Systems",
"itsEquipmentModel": "PC-X5",
"serialNumber": "HOST-2025-00042",
"hardwareVersion": "Rev-B",
"dateOfManufacture": "2025-01-15T00:00:00Z",
"ethernetPhys": [
{"name": "eth0", "macAddress": "00:1A:2B:3C:4D:5E"}
]
}
/software (Equipment Item base SW/FW and hosted Applications)
Topic (s) | QoS | Retain | Published by |
<root>/inventory/equipment_items/<equip_GUID>/software | 1 | 1 | Equipment item |
Payload structure:
JSON fields | +Structure | Description | |||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | ||
topicPath | 1:1 | String | Exact MQTT topic path for this message | ||
baseVersion | 1:1 | String | Version of the main software or firmware running on the device | ||
OSVersion | 1:1 | String | Version of the operating system used. | ||
hostedApps | 1:* | Array<Object> | List of applications hosted on the equipment item | ||
appName | 1:1 | String | Human-readable name of the application | ||
appGuid | 1:1 | String | Globally unique identifier (UUID) of the application | ||
appVersion | 1:1 | String | Version of the application | ||
description | 0:1 | String | Short description of the application | ||
provider | 1:1 | Boolean | Indicates whether the application is Provider | ||
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | ||
JSON example:
{
"timestamp": "2025-05-27T10:20:30Z",
"topicPath": "<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/software",
"baseVersion": "3.0.2",
"osVersion": "Ubuntu 24.04.2 LTS",
"hostedApps": [
{
"appName": "insulation",
"appGuid": "c2a1d3f4-8e7b-4d90-b312-a34fe7e2f5b1",
"appVersion": "2.1.0",
"description": "GNSS position provider",
"provider": true
},
{
"appName": "main_hub",
"appGuid": "a58f9b0e-9c4a-43c0-b748-97305b17aa32",
"appVersion": "2.43.0",
"description": "Data aggregation service",
"provider": false
}
]
}
/details (Equipment Item HW details)
The topic <root>/inventory/equipment_items/<equip_GUID>/details is an optional topic reserved for any extra information about the Equipment Item that does not fit under /info, /hardware or /software.
A common use case is to declare hardware sub-components, such as an internal GNSS or an external Air Quality sensor connected to the Equipment Item, etc.. This does not replace the declaration of a full ODEx Equipment Item when applicable, but rather offers a lightweight alternative for internal or secondary HW components.
To accommodate these cases, information about hardware sub-components must be published under:
<root>/inventory/equipment_items/<equip_GUID>/details/hw_components/<componentId>
Where <componentId> is a locally unique descriptive identifier created by the Equipment Item inventory application (the application responsible for declaring the Equipment Item).
Use of a component GUID is not required, but recommended if global traceability is desired.
The payload at each of these sub-paths is intentionally flexible and can be as minimal as:
{
"topicPath": "…/equipment_items/<SP-OBC_GUID>/details/hw_components/internal_gnss",
"componentId": "internal_gnss",
"model": "u-blox NEO-M9N",
"description": "Multi constellation DR GNSS receiver"
}
Directly published under each <componentId> topic… or it may partially mirror /info, /hardware, /software sub-topics previously defined in Sections #2.1.1 /info, #2.1.2 /hardware, #2.1.2 /software.
NOTE: As seen in Section 2.1.1 /info, any of these additional /details topics must be declared in the configTopics field from the belonging equipment item declaration. This way, a subscriber can correctly discover all published topics under that equipment item GUID path.
Topic path example for an SP-OBC with different HW components:
…/equipment_items/<SP-OBC_GUID>/details/hw_components/internal_gnss
…/equipment_items/<SP-OBC_GUID>/details/hw_components/internal_accelerometer
…/equipment_items/<SP-OBC_GUID>/details/hw_components/external_thermometer
Providers
/info (Provider general information)
Topic (s) | QoS | Retain | Published by |
<root>/inventory/providers/<provider_GUID>/info | 1 | 1 | Provider |
Payload structure:
JSON fields | +Structure | Description | ||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | |
topicPath | 1:1 | String | Exact MQTT topic path for this message | |
itemType | 1:1 | String | Equipment Item, Provider, SW Update or Data Update as defined in Section #2.9 Item Type from ODEx-1 Specification: “Provider”: | |
OpInterfaces | 1:* | Array<String> | List of implemented Operation Interfaces (see Section #4.3 ANNEX 2 – CATALOG OF OPERATIONAL INTERFACES from ODEx-1 Specification) | |
description | 0:1 | String | Short human-readable description of the provider (e.g. External Validator NFC, EMV, QR) | |
configTopics | 0:* | Array<String> | Provider inventory topics under the declared /<Provider GUID>/ (e.g. /info, /topics_declared, /details/aa, /details/bb) | |
heartbeatAvailable | 0:1 | Integer | Indicates whether this Provider publishes a /heartbeat topic (true/false) | |
usageHints | 0:* | Array<String> | Used for additional information related to the publisher or item. E.g. ConnID (Connection ID/User), ClientID, etc. | |
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | |
JSON example:
{
"timestamp": "2025-05-27T11:05:00Z",
"topicPath": "<root>/inventory/providers/c2a1d3f4-8e7b-4d90-b312-a34fe7e2f5b1/info",
"itemType": "Provider",
"opInterfaces": ["GNSS"],
"description": "GNSS provider application",
"configTopics": [
"<root>/inventory/providers/c2a1d3f4-8e7b-4d90-b312-a34fe7e2f5b1/info",
"<root>/inventory/providers/c2a1d3f4-8e7b-4d90-b312-a34fe7e2f5b1/topics_declared"
],
"heartbeatAvailable": true
}
/topics_declared (Operational Interfaces implemented by the Provider)
Topic (s) | QoS | Retain | Published by |
<root>/inventory/providers/<provider_GUID>/topics_declared | 1 | 1 | Provider |
Payload structure:
JSON fields | +Structure | Description | ||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | |
topicPath | 1:1 | String | Exact MQTT topic path for this message | |
topicsProvided | 0:* | Array<String> | Topic paths where the provider publishes data. The lower level topic will be predefined in a Catalog and will correspond to a Datagroup. This Catalog is defined by ODEx and can be extended in specific projects | |
controlOffered | 0:* | Array<String> | Topic paths where the provider is subscribed and accepts commands. | |
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client. | |
JSON example:
{
"timestamp": "2025-05-27T11:05:01Z",
"topicPath":"<root>/inventory/providers/c2a1d3f4-8e7b-4d90-b312-34fe7e2f5b1/topics_declared",
"topicsProvided": [
"<root>/operation/c2a1d3f4-8e7b-4d90-b312-a34fe7e2f5b1/GNSS/data/gnss_data",
],
"controlsOffered": [
"<root>/operation/c2a1d3f4-8e7b-4d90-b312-a34fe7e2f5b1/GNSS/cmd/reset_distance"
]
}
/details (Additional information about the Provider)
The topic <root>/inventory/providers/<provider_GUID>/details is an optional topic reserved for any extra information about the Provider that does not fit under /info or /topics_declared.
INFORMATION ON SW AND DATA AND THEIR UPDATES
(See section # 3.4 INFORMATION ON SW AND DATA AND THEIR UPDATES in ODEx-1 specifications)
/info (Basic information about SW and Data of ITS-PT components and their Updates)
Topic (s) | QoS | Retain | Published by |
<root>/sw_update_info/<update_GUID>/<GUID of equip, app, provider>/info <root>/data_update_info/<update_GUID>/<GUID of equip, app, provider>/info | 1 | 1 | Provider |
Payload structure:
JSON fields | +Structure | Description | ||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | |
topicPath | 1:1 | String | Exact MQTT topic path for this message | |
itemType | 1:1 | String | Item Type as defined in Section #2.9 Item Type from ODEx 01 Specification: “Data Update” or “SW Update” | |
updateStatus | 1:1 | String | "current", "scheduled", "pending", "downloading", "installing", "installed", "failed", "rolled_back" (see states of an update enum in Section #3.4 INFORMATION ON UPDATES from ODEx 01 Specification) | |
description | 0:1 | String | Short human-readable description of what the update contains, e.g. “Configuration parameters”, “White list”, “CAN template”, “AI model” | |
configTopics | 0:* | Array<String> | All self-published topics (/info, /details, /details/logs, etc) | |
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | |
JSON example (SW Update):
{
"timestamp": "2025-06-01T19:45:00Z",
"topicPath": "<root>/sw_update_info/f48a7d.../550e84.../info",
"itemType": "SW Update",
"updateStatus": "downloading",
"description": "Firmware 3.1.0 for validator devices",
"configTopics": [
"<root>/sw_update_info/f48a7d.../550e84.../info",
"<root>/sw_update_info/f48a7d.../550e84.../details",
"<root>/sw_update_info/f48a7d.../550e84.../details/logs"
]
}
/details (Detailed information about SW and Data of ITS-PT components and their Updates)
Topic (s) | QoS | Retain | Published by |
<root>/sw_update_info/<update_GUID>/<GUID of equip, app, provider>/details <root>/data_update_info/<update_GUID>/<GUID of equip, app, provider>/details | 1 | 1 | Provider |
Payload structure:
JSON fields | +Structure | Description | |||||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | ||||
topicPath | 1:1 | String | Exact MQTT topic path for this message | ||||
packageMetadata | 1:1 | Object | Static metadata about the update | ||||
guidValue | 1:1 | String (UUIDv4) | Update GUID of new version | ||||
version | 1:1 | String | Package version | ||||
releaseDate | 1:1 | Datetime (ISO-8601) | Date of official release | ||||
fileSignature | 0:1 | Array<String> | Digital signature of the update file | ||||
fileSource | 0:1 | String | Source of the package | ||||
snapshotID | 1:1 | Integer | Snapshot identifier/counter (since every new snapshot retained message is overwritten) | ||||
stateSnapshot | 1:1 | Object | Live status of the update process | ||||
updateStatus | 1:1 | String | Current update state. Allowed values: "current", "scheduled", "pending", "downloading", "installing", "installed", "failed", "rolled_back", “old” | ||||
scheduledApplyDate | 0:1 | Datetime (ISO-8601) | Planned time to apply/install the update | ||||
lastDownload | 0:1 | Object | Information about the last download attempt | ||||
version | 1:1 | String | Version downloaded | ||||
date | 1:1 | String | When the download occurred | ||||
result | 1:1 | String | Result of the download ("OK", "NOK", "rollback") | ||||
description | 0:1 | String | Additional explanation or debug notes | ||||
lastInstall | 0:1 | Object | Information about the last installation attempt | ||||
date | 1:1 | String | When the installation occurred | ||||
result | 1:1 | String | Installation result ("OK", "NOK") | ||||
description | 0:1 | String | Additional explanation or debug notes | ||||
previousVersion | 0:1 | Object | Version information before update | ||||
version | 1:1 | String | Previous package version | ||||
date | 1:1 | Datetime (ISO-8601) | Date of previous version deployment | ||||
newVersion | 0:1 | Object | Version information after update | ||||
version | 1:1 | String | Newly installed version | ||||
date | 1:1 | Datetime (ISO-8601) | Date of new version activation | ||||
extraLogs | 0:1 | Array<String> | Extra topic paths under /details with more information about the snapshot state. Can be structured as desired, such as having a path for each snapshot id. E.g. .../details/logs/snapshot_id/<1…N>/… | ||||
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client. | ||||
Example A: Package scheduled for tonight (no download yet)
{
"timestamp": "2025-06-30T20:00:00Z",
"topicPath": "<root>/data_update_info/f48a7d.../550e84.../details",
"packageMetadata": {
"guidValue": "f48a7d18-cf3f-4c6e-91a3-daa1705fa987",
"version": "cfg-1.3",
"releaseDate": "2025-06-01"
},
"snapshotId": 1,
"stateSnapshot": {
"updateStatus": "scheduled",
"scheduledApplyDate": "2025-07-01T03:00:00Z"
}
}
Example B: Download OK, waiting for install (pending)
{
"timestamp": "2025-06-30T23:16:00Z",
"topicPath": "<root>/data_update_info/f48a7d.../550e84.../details",
"packageMetadata": {
"guidValue": "f48a7d18-cf3f-4c6e-91a3-daa1705fa987",
"version": "cfg-1.3",
"releaseDate": "2025-06-01"
},
"snapshotId": 2,
"stateSnapshot": {
"updateStatus": "pending",
"scheduledApplyDate": "2025-07-01T03:00:00Z",
"lastDownload": {
"version": "cfg-1.3",
"date": "2025-06-30T23:15:00Z",
"result": "OK",
"description": "Download successful"
}
}
}
Example C: Install succeeded, package current
{
"timestamp": "2025-07-01T03:07:30Z",
"topicPath": "<root>/data_update_info/f48a7d.../550e84.../details",
"packageMetadata": {
"guidValue": "f48a7d18-cf3f-4c6e-91a3-daa1705fa987",
"version": "cfg-1.3",
"releaseDate": "2025-06-01"
},
"snapshotId": 3,
"stateSnapshot": {
"updateStatus": "current",
"lastDownload": {
"version": "cfg-1.3",
"date": "2025-06-30T23:15:00Z",
"result": "OK"
},
"lastInstall": {
"date": "2025-07-01T03:07:00Z",
"result": "OK",
"description": "Installed successfully during scheduled window",
"previousVersion": {
"version": "cfg-1.2",
"date": "2025-05-01"
},
"newVersion": {
"version": "cfg-1.3",
"date": "2025-06-01"
}
}
},
"extraLogs": [
"<root>/data_update_info/f48a7d.../550e84.../details/logs/snapshot_id/3"
]
}
Managing Updates (informative)
ODEx requires Equipment Items and applications to inform about their software and data and their updates status as specified in the previous sections but does not provide a solution to manage such updates, which can be specific for each product. A possible solution is to add a /cmd topic under the corresponding Equipment Item, Application or Provider topic for these components to accept commands to download new software or data:
- /sw_update_info
/<update_GUID>
/<GUID of component>
/info
/details
/cmd
The commands could be coded as an ODEx JSON including the following information:
- Element to download: Software, Data, (Specific data such as white lists)
- Type of command: Download, Cancel
- Download site: e.g and sFTP server IP
- Download token: the Update_GUID can be used for the server to provide the correct file to download
- Download start conditions: Immediately, at next vehicle contact ON or contact OFF or at a specified date and time
- Update conditions: Immediately, at next vehicle contact ON or contact OFF or at a specified date and time
The component to be updated will only accept commands from the specific application in the BackOffice authorised to update the component, which will be in the access control list, ACL, of the onboard MQTT broker. Additionally, all update files will be signed with a key known only by the component and the authorised Application. Commands could be also signed. For additional security all signature keys will be diversified with the Update GUID.
STATUS & HEARTBEAT
Every ODEx equipment item and provider shall publish:
Purpose | Topic pattern |
Heartbeat (liveness) | <root>/inventory/<equipment_items>/<GUID>/heartbeat <root>/inventory/<providers>/<GUID>/heartbeat |
Simple Status (global OK / NOK flag) | <root>/inventory/<equipment_items>/<GUID>/status <root>/inventory/<providers>/<GUID>/status |
Detailed Status Report (active problems) | <root>/inventory/<equipment_items>/<GUID>/status/report <root>/inventory/<providers>/<GUID>/report |
Status Definitions (dictionary of codes) (OPTIONAL) | <root>/inventory/<equipment_items>/<GUID>/status/definitions <root>/inventory/<providers>/<GUID>/status/definitions |
Table 4.- Status & Heartbeat MQTT topics
/heartbeat
Topic (s) | QoS | Retain | Published by |
<root>/inventory/equipment_items/<equip_GUID>/heartbeat <root>/inventory/providers/<provider_GUID>/heartbeat | 1 | 1 | Equipment item Provider |
Payload structure:
JSON fields | +Structure | Description | ||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | |
topicPath | 1:1 | String | Exact MQTT topic path for this message | |
heartbeatIntervalSecs | 1:1 | Integer | Integer indicating the expected heartbeat interval in seconds (10–300). If exceeded, IMS and other subscribers may count missed heartbeats. After 3 consecutive misses, IMS marks the application as inactive. | |
seq | 0:1 | Integer | Optional, for MQTT 3.1/3.1.1 users. See Note below | |
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | |
Note: To facilitate missed‐beat detection, publishers should include an incrementing integer in the MQTT User Property named seq, as defined in MQTT 5 3.3.2.3.7 User Property (MQTT 5.0 exclusive). Subscribers can detect gaps in the sequence to identify lost heartbeats. If using an older version, this field can be included in the payload.
JSON example:
{
"timestamp": "2025-06-06T10:15:00Z",
"topicPath": "<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/heartbeat",
"heartbeatIntervalSecs": 20,
"seq": 185
}
/status (Basic Status)
Topic (s) | QoS | Retain | Published by |
<root>/inventory/equipment_items/<equip_GUID>/status <root>/inventory/providers/<provider_GUID>/status | 1 | 1 | Equipment item Provider |
Payload structure:
JSON fields | +Structure | Description | ||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | |
topicPath | 1:1 | String | Exact MQTT topic path for this message | |
statusCode | 1:1 | Integer | 0 = OK, non-zero = condition present | |
description | 0:1 | String | Optional human-readable text | |
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | |
JSON example:
{
"timestamp": "2025-06-06T10:15:05Z",
"topicPath": "<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/status",
"statusCode": 0
}
/status/reports (Detailed Status Report)
Topic (s) | QoS | Retain | Published by |
<root>/inventory/equipment_items/<equip_GUID>/status/reports <root>/inventory/providers/<provider_GUID>/status/reports | 1 | 1 | Equipment item Provider |
Payload structure:
JSON fields | +Structure | Description | |||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | ||
topicpath | 1:1 | String | Exact MQTT topic path for this message | ||
statusItems | 1:1 | Object | One entry per active condition | ||
conditionId | 1:1 | Integer | Numeric code (1-99 reserved ODEx, 100+ custom). | ||
severity | 1:1 | String | See Severity Enum below | ||
description | 0:1 | String | Human-readable text | ||
detectedAt | 1:1 | DateTime (ISO8601) | When the condition was (last) detected | ||
componentId | 0:1 | String | ID of the affected item: Equipment Item or HW components of the Eq. Item, Provider or SW component of the Provider:
| ||
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | ||
The different severity fields to use defined in ODEX are the following:
Severity Enum | When to use it |
"NO_ERROR" | Publish this value when a condition that was previously reported has disappeared or returned to normal. |
"INFORMATION" | Informational events that do not represent any malfunction. |
"WARNING" | An abnormal situation that might degrade service if it persists. |
"MALFUNCTION" | A fault that already degrades functionality (reduced performance, fallback mode). |
"NOT_RUNNING" | Component or application is unable to run or has crashed irrecoverably. |
any | Optional additional Severity fields freely defined by the MQTT client. |
JSON example:
{
"timestamp": "2025-06-06T10:16:50Z",
"topicPath": "<root>/inventory/equipment_items/550e8400-e29b-41d4-a716-446655440000/status/reports",
"statusItems": [
{
"conditionId": 21,
"severity": "WARNING",
"description": "Ethernet link unstable",
"detectedAt": "2025-06-06T10:16:45Z"
},
{
"conditionId": 42,
"severity": "MALFUNCTION",
"description": "LIDAR sensor not responding",
"detectedAt": "2025-06-06T10:16:20Z",
"componentId": "lidar0"
}
]
}
/status/definitions (Status Definitions, OPTIONAL)
Topic (s) | QoS | Retain | Published by |
<root>/inventory/equipment_items/<equip_GUID>/status/definitions <root>/inventory/providers/<provider_GUID>/status/definitions | 1 | 1 | Equipment item Provider |
The objective of this optional topic is for the equipment or provider to publish all “conditionId” defined for that specific equipment item or provider.
Payload structure:
JSON fields | +Structure | Description | |||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | ||
topicPath | 1:1 | String | Exact MQTT topic path for this message | ||
statusItems | 1:1 | Object | One entry per each defined condition | ||
conditionId | 1:1 | Integer | Numeric code (1-99 reserved ODEx, 100+ custom) | ||
severity | 1:1 | String | See Severity Enum in previous section | ||
description | 0:1 | String | Human-readable text | ||
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | ||
JSON example:
{
"timestamp": "2025-06-06T09:00:00Z",
"topicPath": "<root>/inventory/equipment_items/550e84.../status/definitions",
"statusItems": [
{
"conditionId": 100,
"severity": "WARNING",
"description": "Ethernet link unstable"
},
{
"conditionId": 101,
"severity": "MALFUNCTION",
"description": "Sensor not responding"
}
]
}
GENERAL INFO
/general_info
Mejor separar en topics y definir un JSON para cada topic
- <root>
/general_info
/odex_info
/router_info
/broker_info
/backoffice_info
/operating_mode
/environment
/vehicle_id
/date_time
/pto
/pta
Topic (s) | QoS | Retain | Published by |
<root>/general_info | 1 | 1 | IMS (Inventory Management Service) |
Payload structure:
JSON fields | +Structure | Description | |||
timestamp | 0:1 | DateTime (ISO8601) | UTC timestamp of the message, ISO 8601 (UTC) | ||
topicPath | 1:1 | String | Exact MQTT topic path for this message | ||
environment | 1:1 | Object | General environment/mode under which the system is operating | ||
appliedAt | 1:1 | DateTime (ISO8601) | The date and time at which the setting was registered | ||
validUntil | 0:1 | DateTime (ISO8601) | The date and time at which the setting is expected to become invalid | ||
operatingState | 1:1 | String | Active operating mode: "DEVELOPMENT", "INTEGRATION", "TESTING", "PRE-PRODUCTION", "PRODUCTION", "TECH-SUPPORT" | ||
brokerInfo | 1:1 | Object | Information to the MQTT broker configuration | ||
hostname | 0:1 | String | hostname of module hosting the broker | ||
ip | String | IP address of module hosting the broker | |||
ports | 1:* | Array<String> | Ports used to connect to the broker (1883, 8883, 443…) | ||
tls | 1:* | Array<String> | In the same order as ports, whether they use TLS (true or false) | ||
mqttVersion | 1:1 | String | MQTT protocol version used (e.g., "3.1.1" or "5.0") | ||
aclVersion | 1:1 | String | Version identifier of the Access Control List, if applicable | ||
maxQosSupported | 1:1 | String | Maximum Quality of Service level supported (0, 1 or 2) | ||
persistentSessions | 0:1 | String | Whether persistent sessions are supported | ||
lastRestartDatetime | 0:1 | String | Timestamp of the last broker restart | ||
routerInfo | 1:1 | Object | Information related to the onboard router | ||
ip | 0:* | Array <String> | List of IP addresses assigned to the router | ||
hostname | 0:1 | String | Router hostname, if known | ||
macAddress | 0:1 | String | MAC address of the primary interface | ||
interfaceName | 0:1 | String | Interface name used by the router | ||
lastBoot | 0:1 | Datetime (ISO-8601) | Timestamp of the last system boot | ||
odexInfo | 1:1 | Object | Information related to the ODEx protocol and system configuration | ||
protocolVersion | 1:1 | String | Version of the ODEx protocol | ||
dataDictVersion | 1:1 | String | Version of the data dictionary in use | ||
vehicleId | 1:1 | String | Identifier of the vehicle where the system is installed | ||
BOPath | 1:1 | String | MQTT topic path used to communicate with the BackOffice | ||
startupState | 0:1 | String | Startup status (e.g., "normal", "starting_components") | ||
supportedOpInterfaces | 0:1 | Array<String> | Informative list of supported Operational Interfaces (e.g., "GNSS", "Validator") | ||
any | 0:1 | anyType | Optional additional fields freely defined by the MQTT client | ||
JSON example:
{
"timestamp": "2025-06-22T14:38:00Z",
"topicPath": "<root>/general_info",
"environment": {
"appliedAt": "2025-06-22T14:37:00Z",
"operatingState": "PRODUCTION"
},
"brokerInfo": {
"hosts": [ "broker1.odex.io", "broker2.odex.io" ],
"ports": [ "1883", "8883" ],
"tls": [ "false", "true" ],
"mqttVersion": "5.0",
"aclVersion": "1.2.0",
"maxQosSupported": "1",
"persistentSessions": "true",
"lastRestartDatetime": "2025-06-22T14:37:00Z"
},
"routerInfo": {
"ip": [ "192.168.1.101", "10.0.0.5" ],
"hostname": "router-onboard-23",
"macAddress": "00:1A:2B:3C:4D:5E",
"interfaceName": "eth0",
"lastBoot": "2025-06-21T08:00:00Z"
},
"odexInfo": {
"protocolVersion": "1.0",
"dataDictVersion": "1.0",
"vehicleId": "JH4DA3441JS029234",
"BOPath": "odex/bo/BUS-9823-XYZ",
"startupState": "normal",
"supportedOpInterfaces": [ "GNSS", "Validator", "PassengerCounter" ]
}
}
- INTRODUCTION
- ODEx Documents
- DATA TYPES AND CARDINALITY NOTATION
- Cardinality notation used for the JSON fields
- Data Types used for JSON fields
- INVENTORY DECLARATION
- Equipment Items
- Providers
- INFORMATION ON SW AND DATA AND THEIR UPDATES
- /info (Basic information about SW and Data of ITS-PT components and their Updates)
- /details (Detailed information about SW and Data of ITS-PT components and their Updates)
- Managing Updates (informative)
- STATUS & HEARTBEAT
- /heartbeat
- /status (Basic Status)
- /status/reports (Detailed Status Report)
- /status/definitions (Status Definitions, OPTIONAL)
- GENERAL INFO
- /general_info