DocumentaciónGTAC02 – Intercambio de datos entre ITS a bordo (ODEx)/ODEx-04 Operational Interfaces

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…).

An OPI is a set of inputs (called generically commands) and outputs (operational data grouped into DataGroups) of a Providerfor a specific operational function - such as ticket validation, GNSS positioning, passenger counting, or any other logical grouping of inputs and outputs of a Provider that is useful for the purposes of operational information exchange. For more explanation and context see the document ODEx-1.

ODEx-4, this document, specifies ODEx Operational Interfaces.

ODEx Documents

Table 1.- ODEx Documents

Document

ODEx-1. Concepts and Functional Architecture

Core Concepts, functional specification and topic structure

ODEx-2. Network Requirements

Onboard IP Network requirements to support ODEx onboard communication

ODEx-3. Inventory and Updates Interfaces

Inventory, status and updates interfaces data definitions

ODEx-4. Operational Interfaces (This document)

Operational interfaces data definitions and topics

ODEx-5. Usage and Examples

Practical guidelines and implementation examples

Document content

  • Section 1 - INTRODUCTION (This section)
  • Section 2 – COMMON. Specifications which are common to all OPIs
  • Structure of the MQTT topic tree used by the OPIs
  • Concept of DataGroup (DG)
  • Specific topics used for data which need to be published very frequently (/stream_info and /stream_data)
  • Publication rules (QoS)
  • Common message format (JSON)
  • OPI Commands requests and responses
  • Cardinality notation
  • Data types
  • Naming notation for OPIs, DataGroups, Commands, Topics, Variables and enums
  • Common triggers which cause messages to be published
  • OPI versioning rules
  • Section 3 - OPIs SPECIFICATION DESCRIPTION FORMAT – Format used in sections 4 to 7 (informative)
  • Sections 4 to 7 - OPIs Specifications – Main sections of the document:
  • VEHICLE TELEMETRY OPIs
  • TICKETING OPIs
  • VEHICLE SERVICE MONITORING OPIs
  • OCCUPANCY OPIs

The specification of OPIs can be grouped in the following domains:

Table 2.- Operational Data Domains

Operational Data Domains

Content

Physical Vehicle

Vehicle Telemetry

Information related to the physical vehicle and its base (non ITS) equipment: vehicle static data (ID, vehicle specifications) CAN J1939 data, GNSS data, data from sensors (e.g. odometer, accelerometer, internal thermometers…) and data from signals (e.g. ignition, doors status).

Vehicle PT Operation

Ticketing

Validation and ticket sales transactions and other information related to ticketing

Vehicle Service Monitoring

Information related to the service run by the vehicle: network location, driver, vehicle journeys and calls observed, monitored and estimated, status with respect to planned and target services vehicle service assigmnet and driver messages.

Occupancy

Passenger counting, %occupancy, passenger density, occupancy status (e.g. vehicle full)

External information relevant to be published onboard

(Future)

Ambient Conditions

External ambient conditions: temperature, relative humidity, atmospheric pressure, meteorology conditions and predictions, air quality or others that can be published onboard and used by a passenger information system to inform passengers onboard or by other systems to log data with ambient conditions metadata.

Facilities monitoring

Incidents in public transport facilities (e.g. elevator not working) published onboard for passenger information.

Incidents and events

Incidents (e.g. cancelation of services, delays ) and events affecting other services which can be relevant for passenger information onboard

Note: A summary list of OPIs can be found in #Anexo B. OPIs Catalog

COMMON

OPI Topic Structure & DataGroups

OPI Topic Structure

A Provider may have one or more OPIs. Each OPI of a Provider has its own topics under its Provider GUID and OPI name and version:

<root>/operation/<provider_GUID>/<OPI_name>/<OPI_version>

** Each DataGroup is published to a different topic with a name derived from the DataGroup name. E.g. for the OPI validator we have the DataGroup validator_transactions and the DataGroup validator_op_parameters. The topics to publish these DGs will be validator/<OPI_version>/data/transactionsand validator/<OPI_version>/data/op_parameters respectively. See Section #2.1.2.DataGroups (DG).

Figure 1.- OPI Topic structure within the global ODEx structure

The following is an example of a topic structure under <root>/operation/<provider_GUID> for the OPI “Validator”:

Descripción de la imagen

DataGroups (DG)

A DataGroup is a set of operational data published simultaneously in a single message.

DataGroups are primarily defined to ensure data consistency. For example, GNSS parameters such as latitude, longitude, dilution of precision, and satellite count are grouped together in one DataGroup because they are interrelated and must be published in the same message to provide consumers with consistent information.

In other cases, DataGroups are defined for convenience. For example, while the status of each bus door could be published separately in different topics, consumers will usually require the status of all doors and wheelchair ramps, and in most cases a single Provider supplies all this information. For these reasons, a DataGroup is defined to publish the status of all doors and ramps in a single message (DoorsStatus). Nevertheless, the fields in this DataGroup are optional, so if more than one Provider supplies this information, each will populate the DataGroup with the subset of data it is able to provide.

Each DataGroup is published to a different topic with a name derived from the DataGroup name or vicecersa. Therefore, it might not replicate the exact name of the topic. E.g. for the OPI validator we have the DataGroupValidatorTransaction and the DataGroup ValidatorOpParameters. The topics to publish these DGs will be validator/<OPI_version>/data/transaction and validator/<OPI_version>/data/op_parameters respectively.

Data Streaming

For data which can be published very frequently (“streamed”), such as some CAN messages or acceleration data, the structure under each DataGroup topic consists of two topics:

Table 3.- Topics under DataGroups pubished frequently (“streamed”)

Topics for streamed DGs

Content

/stream_info

Static or slow changing information which is common to all data published to /stream_data, including:

  • Time reference for the timestamp of the data samples published in /stream_data.
  • Path to /stream_data
  • /stream_data record structure
  • Other data (e.g. sampling period)
  • Other slow changing data related to the DG could also be included here

/stream_data

The DG “streamed” data is published to this topic using a compact, JSON structure, without header, consisting only of a list of data samples, each one consisting of a data record (an array of data elements). Fon instance, in the case of Accelerations, each sample will include the timestamp and the X, Y and Z accelerations.

Publication Rules

Data messages must be sent with QoS1 and with retain.; except for messages updated with a period of less than 1s, which may not use the retain flag. Other exceptions to this rule will be indicated for specific data, if any.

Command messages and responses must be sent with QoS2 and without retain; i.e. the command must be received only once by the Provider and the response must be received only once by the command sender. Exceptions to this rule will be indicated for specific commands, if any.

Common Message Format in /data and /cmd

ODEx uses the JSON format to publish messages.

Table 4.- ODEx data and command general JSON structure

ODEx data and command JSON Structure

<Common fields for every ODEx JSON data or command message>

<Specific ODEx DataGroup or Command fields>

Following the conventions defined in #ODEx-3, every OPI message (whether published under /data or /cmd) except for stream_data, starts with common JSON fields (grey background colour) to ensure consistency, traceability, and automated responses, followed by OPI specific DataGroup or command fields:

Table 5.- ODEX data and command detailed JSON structure (messageId is only mandatory in command topics)

Common Message Format Fields

+Structure

Description

timestamp

1:1

DateTime

Timestamp of the message (see DateTime in Data Types)

topicPath

1:1

String

Full MQTT topic path where this message is being published

messageId

(See description)

String

Message UUID. Mandatory in command topics but could also be needed in data topics.

<specific field>

<Specific ODEx DataGroup or Command fields>

<specific field>

Etc.

JSON example:

{
  "timestamp": "2025-05-27T11:28:15Z", /* Mandatory */
  "topicPath": "<exact MQTT topic path where the message is published>", /* Mandatory */
  "messageId": "message UUID" /* Mandatory in command topics but could also be needed in data topics */
  /* +Specific fields which vary depending on the DataGroup */
}

Notice that there is no version field because all data and commands are published under an OPI version topic. This allows to work with more than one version if required.

Command Requests

As described in ODEx-1, each command is published by the sender to a topic ending with their sender_GUID, placed directly below the command name.

The command sender will:

  • Publish the command in

<root>/operation/<provider_GUID>/<OPI_name>/<OPI_version>/cmd/<command_name>/<sender_GUID>

  • And receive the response of the Provider that implements such OPI on
  • <root>/operation/<provider_GUID>/<OPI_name>/<OPI_version>/cmd/<same_command_name>/<sender_GUID>/response
  • It can listen to all responses of its commands related to that Provider OPI by being subscribed to
  • <root>/operation/<provider_GUID>/<OPI_name>/<OPI_version>/cmd/+/<sender_GUID>/response

The Provider that expects to receive commands will:

  • Listen to all commands sent by others to a specific OPI
  • <root>/operation/<provider_GUID>/<OPI_name>/<OPI_version>/cmd/+/+
  • Listen to all commands sent by others to all of his OPIs
  • <root>/operation/<provider_GUID>/+/+/cmd/+/+
  • Answer to the commands received by publishing in the /response topic under that same command it received
  • <root>/operation/<provider_GUID>/<OPI_name>/<OPI_version>/cmd/<command_name>/<sender_GUID>/response

Command Responses

As specified in the section before, the Provider OPI which receives a command will publish a response to:

<root>/operation/<provider_GUID>/<OPI_name>/<OPI_version>/cmd/<command>/<sender_GUID>/response

All response payloads must include the following fields:

Table 6.- ODEx command response JSON structure

Common Response Fields

+Structure

Description

<Common fields for every JSON command message>**

commandResult

1:1

String (Enum)

Result of the request command. See the following possible enums: OK | NOK

rejectionCode

0:1

Integer

Rejection code only if result is "NOK". See next table of possible rejection codes.

rejectionDescription

0:1

String

Optional human-readable error message

details

0:1

String

Optional debug information or notes.

responseContent

  • -

anyType

In command responses where some fields are required to be returned, they will be in the responseContent field structure.

Common rejection code references are the following:

Table 7.- Rejection code references and meaning

Code

Meaning

0

OK

1

FAILED

2

BUSY

3

PARAMETER_ERROR

4

NOT_SUPPORTED

5

FORMAT_ERROR

6

OPERATION_ALREADY_EXECUTED

7

TIMEOUT

8

CANCELLED

9

QUEUE_OVERFLOW

10

DENIED

11

NOT_CONFIGURED

12

COMMAND_EXPIRED

…

(Extensions)

Cardinality Notation Used for the JSON fields

Table 8.- Cardinality notation used for the JSON fields

Cardinality

Meaning

0:1

Optional field, zero or one occurrence. If included, supply exactly one non-array value. If not included, remove both, the tag and the 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.

  • Note: The concept of mandatory and optional fields indicates whether a piece of data must always be included in the JSON or not. An optional JSON field (0:1) means that the field may or may not appear in the message structure. However, this does not necessarily mean that the information is optional for the project. For example, the field ramp_status is mandatory for buses equipped with a ramp (it must be present in those vehicles), but it will be absent from the JSON messages of vehicles that do not have a ramp

Data Types Used for the JSON fields

Table 9.- Data types used for JSON fields

Notation

Description

String

UTF-8 text

String (Enum)

UTF-8 text restricted to a predefined set of literal values

Integer

Whole number (positive or negative).

Use a wider range (e.g., 64-bit) only when the field explicitly requires it.

Float

Numbers with a decimal point (positive or negative).

Boolean

true / false

DateTime

ISO-8601 UTC E.g. 2025-05-27T11:28:15Z

Object

JSON object (unordered key-value map)

anyType

Freely defined extension field (must be valid JSON)

Naming notation

Table 10.- Naming notation for OPIs, DataGroups, Commands, Topics and Variavles

Concept

Naming notation

Examples

OPIs

OPIS are named using snake_case (lower case letters and underscore)

network_location

In tittles, OPIs are named using Title Case

OPI Network Location

DataGroups

DataGroups are named using UpperCamelCase

NetworkLocationAll

Commands

Commands are named using snake case (lower case letters and underscore)

lock_validation

Topics

Topics are named using snake_case (lower case letters and underscore)

/network_location

/lock_validation

Variables and enums

Variables and enumerations are named using lowerCamelCase

journeyPatternRef

Common messages publication Triggers

ODEx messages are published based on predefined conditions known as triggers. The most common triggers are the following:

Table 11.- Types of ODEx messages publication triggers

Trigger type

Description

startup

Triggered immediately after the MQTT client used by the Provider is connected to the broker.
This occurs at power-on of the Equipment Item hosting the Provider, after a reset of the Equipment Item, or after a broker reset or reconnection.

periodic

Triggered periodically at fixed time intervals (e.g. GNSS data published every 1s). If no value is defined in ODEx, it should be defined in the project.

discrete change

Triggered when at least one discrete variable of a Datagroup (e.g. boolean, enumerated, string, identifier) changes value. The complete DataGroup must be published reflecting the new values.

threshold change

Triggered when both of the following conditions are met:

  • The value of at least one continuous (numeric) variable within the DataGroup has changed by more than an optional, predefined change threshold with respect to the last published value. (If no change threshold is defined in ODEx, it can be established in the project if needed); and
  • At least T = 100 ms have elapsed since the previous publication of the same DataGroup, ensuring that the publication rate of any DataGroup does not exceed 10 messages per second.

When this trigger occurs, the Provider shall publish the entire DataGroup, reflecting the updated values.

Variables whose values need to be sampled more frequently (for example, hvessCurrent, every 20 ms or raw PGNs) should be included in specific DataGroups that, although published at intervals of 100 ms or longer, contain in each publication all the required values of the variable, each timestamped and recorded at the desired sampling rate. For example, if a value is required every 20 ms, the DataGroup published every 100 ms will include 5 recorded samples.

request

When explicitly requested (i.e. Publication on demand)

other

E.g. Publication triggered by movement or distance

Versioning Rules in ODEx OPIs

An OPI version should be changed in the following cases:

  • The meaning of an existing field is changed.
  • A previously defined field is removed.
  • The data type of a field is changed (e.g., Boolean → String).
  • A new field is added which is mandatory

It is possible to add new, project specific, fields to ODEx JSON structures without changing the OPI version, as long as the new field is not mandatory (et least for preexisting Providers and consumers).

Other considerations for project specific new fields:

  • The Providers and consumers installed in the project will know how to use new fields
  • All ODEx Consumers must tolerate unknown fields. If a new field is added to a JSON, pre-existing consumers which do not know the new field must ignore it.
  • This document should be updated for the project with the new fields

OPIs SPECIFICATION DESCRIPTION FORMAT

OPIs will be described in next sections using the following format for each OPI:

OPI <OPI Name>

Description

Table 12.- <OPI> OPI summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

<OPI_name>

<DG1Name> (DataGroup1 name)

  • General description of data in DataGroup1
  • Trigger: Conditions to publish DataGroup1 (According to Table 11.- Types of ODEx messages publication triggers, e.g. at startup, periodically every XX s, etc.)

<DG2Nname> (DataGroup2 name)

  • General description of data in DataGroup2
  • Trigger: Conditions to publish DataGroup2
  • …
  • (List of commands accepted)
  • command_1_name
  • command_2_name
  • …

OPI version

<OPI_version>

(Case of OPIs which publish more than one DataGroup)

<DG1Name> DG

Table 13.- Topic path for <DG1Name>DG

<root>/operation/<provider_guid>/<OPI_name>/<OPI_version>/data/<DG1_name>

Table 14.- <DG1_name> DG message structure

<DG1_name>

+Structure

Description

<Common fields for every JSON data message>**

<specific field>

Cardinality

Type

Description

<specific field>

Cardinality

Type

Description

Etc.

**Common fields are not shown at each OPI description as they are always the same, as described in section #2.2

<DG2Name> DG

Table 15.- Topic path for <DG2Name> DG

<root>/operation/<provider_guid>/<OPI_name>/<OPI_version>/data/<DG2_name

Table 16.- <DG2_name> DG message structure

<DG2_name>

+Structure

Description

<Common fields for every JSON data message>**

<specific field>

Cardinality

Type

Description

<specific field>

Cardinality

Type

Description

Etc.

Etc. for the rest of DataGroups published.

In the case few commands are present in an OPI, the same format specified in the section before for /data will be used, first stating the topic path for such command, and then the corresponding Fields table for that command topic:

(example with an OPI that only has 2 commands)

<command_1_name> command

Table 17.- Topic path for <command_1_name> command

<root>/operation/<provider_guid>/<OPI_name>/<OPI_version>/cmd/<command1_name>

Table 18.- <command_1_name> command message structure

<command_1_name>

+Structure

Description

<Common fields for every JSON data message>**

<specific field>

Cardinality

Type

Description

<specific field>

Cardinality

Type

Description

Etc.

<command_2_name> command

Table 19.- Topic path for <command_2_name> command

<root>/operation/<provider_guid>/<OPI_name>/<OPI_version>/cmd/<command2_name>

<CMD2_name> Structure: (if any)

Table 20.- <command_2_name> command message structure

<command_2_name>

+Structure

Description

<Common fields for every JSON data message>**

<specific field>

Cardinality

Type

Description

<specific field>

Cardinality

Type

Description

Etc.

Etc. for the rest of Commands published.

If an OPI has many commands, instead of describing each command topic and structure separately, they are described in a single table with the following format:

Table 21.- <OPI> OPI commands and fields

Topic under …/<OPI_name>/<OPI_version>/cmd

Specific Fields**

+Structure

Description

<Common fields for every JSON data message>

/<command_1_name>

<command_1_field_1_name>

Cardinality

Type

Field description

/<command_2_name>

<command_2_field_1_name>

Cardinality

Type

Field description

<command_2_field_2_name>

Cardinality

Type

Field description

<command_2_field_3_name>

Cardinality

Type

Field description

/<command_3_name>

<command_3_field_1_name>

Cardinality

Type

Field description

…

** Fields additional to the common fields as described in Section #2.2 Common Message Format in /data and /cmd

Therefore, in this case, the JSON for <command_2_name> that is not made explicit in the document would be the following:

Table 22.- Derived <command_2_name> command fields message structure

<command_2_name>

+Structure

Description

<Common fields for every JSON data message>

< command_2_field_1_name>

Cardinality

Type

Description

<command_2_field_2_name>

Cardinality

Type

Description

<command_2_field_3_name>

Cardinality

Type

Description

VEHICLE TELEMETRY OPIs

OPI Vehicle Static Information

Description

Table 23.- OPI Vehicle Static Information summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

vehicle_static_info

VehicleId

  • VIN, PTO/PTA IDs, license plate, fleet/internal IDs, vehicle type.
  • Trigger: at startup and on discrete change

VehicleSpecs

  • One single JSON with: make and model, dimensions and weight, power plant, energy sources, passenger area, HVAC info.
  • Trigger: at startup and on discrete change

CanDataAvailable

  • List of PGNs discovered. It may be published in several parts, as PGNs are read from the CAN bus
  • Trigger: at startup and on discrete change

SignalsAvailable

  • Catalog of available signals.
  • Trigger: at startup and on discrete change

Ecu_information

  • Inventory of vehicle ECUs and their firmware (WIP)
  • none

OPI version

v1.0

VehicleId DG

Table 24.- Topic path for VehicleId DG

<root>/operation/<provider_guid>/vehicle_static_info/<OPI_version>/data/vehicle_id

Table 25.- VehicleId DG message structure

VehicleId

+Structure

Description

<Common fields for every JSON data message>

vehicleRef

1:1

String

ID of the vehicle unit. VIN for bus.

licensePlate

1:1

String

Registration plate.

ptoVehicleId

1:1

String

Vehicle identifier used by the PTO.

ptaVehicleId

1:1

String

Vehicle identifier used by the PTA.

fleetNumber

1:1

String

Internal fleet number.

vehicleType

0:1

String (Enum)

bus | coach | tram | other (TBD more types as needed)

additionalInfo

0:1

String

Free text notes.

VehicleSpecs DG

Table 26.- Topic path for VehicleSpecs DG

<root>/operation/<provider_guid>/vehicle_static_info/<OPI_version>/data/vehicle_specs

Table 27.- VehicleSpecs DG message structure

VehicleSpecs

+Structure

Description

<Common fields for every JSON data message>

makeModel

0:1

Object

Make & model object

manufacturer

1:1

String

Vehicle manufacturer brand (e.g., “Iveco Bus”, “Irizar”)

model

1:1

String

Model family/commercial name (e.g., “Crossway LE”, “i4”). Do not include length here

variant

0:1

string

Commercial variant label; may include length and use-case (e.g., “LE City 12 m”, “LE Line 12 m”)

homologationStep

0:1

String

Emission stage or propulsion label (e.g., “Euro VI Step E”, “Hybrid”, “CNG”, “BEV”)

axleConfig

0:1

String

Axle/drive layout (e.g., “4×2”, “6×2”)

dimensionsWeight

0:1

Object

Dimensions and Weight information

length

1:1

Integer

Vehicle length (mm)

width

0:1

Integer

Vehicle width (mm)

height

0:1

Integer

Vehicle height (mm)

wheelbase

0:1

Integer

Wheelbase (mm)

curbWeight

0:1

Integer

Vehicle weight with all standard equipment, but no passengers or cargo (kg)

grossCombinationWeight

0:1

Integer

Gross Combination Weight (kg).

powerPlant

0:1

Object

Power-plant related information

propulsionType

1:1

String (Enum)

Primary propulsion type: diesel | cng | hybrid | batteryElectric | fuelCell | other

engineModel

0:1

String

Manufacturer/model of the prime mover (ICE engine or electric family, include variant if known).
Examples: Cummins ISB6.7 280, Volvo D13K-500

maxPower

0:1

String

Rated power of the ICE (Internal Combustion Engine) or traction motor for BEV/hybrid. Example: “265 kW (360 hp) @ 2000 rpm”

maxTorque

0:1

String

Rated torque for ICE or e-motor where given (units: Nm). Example: “1600 Nm @1200 rpm”

emissionClass

0:1

String

Regulatory emission standard of the combustion engine.
Examples: Euro VI, Euro V...

driveLayout

0:1

String

Driven-wheel configuration. Typical format AxleCount x DrivenWheels (e.g., 4x2, 6x2, 6x4)

displacement

0:1

String

Engine displacement (ICE only) (E.g.:“8.7 litres”

energySources

0:1

Object

Energy sources information

energySourceType

1:1

String

One source: dsl | lpg | cng | prop | elec | h2 |

Hybrid: dslElec | lpgElec | cngElec | propElec |

Bi-fuel: dslLpg | dslCng |

fuelCapacity

0:1

Integer

Diesel fuel tank capacity (L)

cngTank

0:*

Integer

Mandatory in CNG vehicles

cngTankCapacity

1:1

Integer

CNG tank capacity as mass (kg)

cngTankLocation

1:1

String

Location of CNG Tank

h2Tank

0:*

Object

Mandatory in H2 vehicles

h2TankCapacity

1:1

Integer

H2 tank capacity as mass (kg)

h2TankLocation

1:1

String

Location of H2 Tank

hvess

0:*

Object

Mandatory in electric vehicles

batteryCapacity

1:1

Integer

Battery nominal capacity (units: kWh)

batteryChemistry

1:1

String

Battery chemistry if disclosed (e.g., LFP, NMC)

batteryLocation

1:1

String

Location of battery and access method

passengerArea

0:1

Object

Passenger area section

seatedCapacity

1:1

Integer

Number of passenger seats for the reference layout of the chosen variant (count)

standingCapacity

1:1

Integer

Standing places (count).

wheelchairPositions

1:1

Integer

Wheelchair (PMR) spaces (count).

hasRamp

1:1

Integer

Number of doors equipped with wheelchair ramp

doorCount

1:1

Integer

Number of service doors (count).

doorDescription

0:1

String

Free-text door description field If the sheet provides per-door widths/heights (e.g., “Front & middle doors 1,200 mm” for LE City; “Front 800 mm, middle 1,200 mm” for LE Line)

hvac

0:1

Object

HVAC information.

acPresent

0:1

Boolean

Air conditioning present (true/false).

heatingType

0:1

String (Enum)

Passenger-area heating technology. Recommended enum: dieselHeater | heatPump | electricResistance | other

Otherwise map from the OEM wording (e.g., “Four heaters for the passenger compartment”

CanDataAvailable DG

Table 28.- Topic path for CanDataAvailable DG

<root>/operation/<provider_guid>/vehicle_static_info/<OPI_version>/data/can_data_available

Table 29.- CanDataAvailable DG message structure

CanDataAvailable

+Structure

Description

<Common fields for every JSON data message>

pgnsDiscovered

0:*

Object

List of PGNs discovered

rawPgnHexString

1:*

String

Hex string with uppercase characters, without spaces, representing the29bits CAN Identifier+1 byte Data Length Code+8 bytes of Data. Example “18FEEE17085A4B1027FFFFFFFF”

(For most PGNs (8 data bytes PGNs) a single string will be published but for larger PGNs more strings are needed: the first BAM string plus one or more sequence strings)

pgnPeriod

1:1

Integer

PGN occurrence period on the CAN bus, in ms

SignalsAvailable DG

Table 30.- Topic path for SignalsAvailable DG

<root>/operation/<provider_guid>/vehicle_static_info/<OPI_version>/data/signals_available

Table 31.- SignalsAvailable DG message structure

SignalsAvailable

+Structure

Description

<Common fields for every JSON data message>

signalList

0:*

Object

List of available signal descriptors. Each item has the following fields.

signalName

1:1

String

Signal name according to the catalog of signals (See OPI Raw Vehicle Signals).

signalInformation

0:1

String

Required if signal is not in the catalog (Other).

OPI CAN Raw PGN (streamed)

Description

Table 32.- OPI CAN Raw PGN summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

raw_pgn

Each PGN data is published to a different topic named as the hex string PGN <Hex PGN> (e.g. /feee) each with twoDataGroups:

  • RawPGNStreamInfo
  • PGN hex string
  • PGN source (ECU)
  • Time reference for stream data samples timestamp
  • Topic path to raw PGN data
  • Structure of each sample of raw PGN data
  • Trigger: : at startup and on discrete change
  • RawPGNStreamData. This data is published with a compact JSON including:
  • TimeStamp in tenths of a millisecond (x0,1ms)
  • Raw Hex String of the PGN data
  • Trigger: For PGNs published in the CAN bus with a period greater than 100ms the corresponding RawPGNMessage will be published in ODEx each time a new PGN is read from the CAN bus (even if it has the same value as the last published). For other, more frequent, PGNs, the corresponding RawPGNMessage will be published in ODEx periodically every 100ms including all PGNs read in the period form the CAN bus, timestamped.
  • Notes:
  • Requested RawPGNMessages will be published in ODEx until a stop_pgn command is received and after a timeout of 60s. If required, it should be requested again before the timeout.
  • request_pgn
  • stop_pgn

OPI version

v1.0

RawPGNStreamInfo DG

Table 33.- Topic path for RawPGNMessage DG Information

<root>/operation/<provider_guid>/raw_pgn/<OPI_version>/data/<PGN hex string>/stream_info

RawPGNStreamInfo

+Structure

Description

<Common fields for every JSON data message>

pgnStatus

1:1

String (Enum)

Found | NotFound

pgn

1:1

String

Hex string with uppercase characters, without spaces, representing the 2 bytes PGN, e.g. FEEE if thecomplete data were“18FEEE17085A4B1027FFFFFFFF”

pgnSource

0:1

String

Hex string with uppercase characters, without spaces, representing Source byte, e.g. 17

pgnStreamTimeRef

1:1

DateTime

Reference time for the Timestamps of the data. It is the date of the start of the vehicle session.

Adding the timestamp of a data element in the stream to this time will result in the absolute DateTime for this data element

pgnStreamPath

0:1

String

Topic path to RawPGNStreamData for this PGN

pgnStreamRecordStructure

0:1

String

RawPGNStreamData array (samples) structure

RawPGNStreamData DG

Table 34.- Topic path for a RawPGNMessage DG data Stream

<root>/operation/<provider_guid>/raw_pgn/<OPI_version>/data/<PGN hex string>/stream_data/

RawPGNStreamData

+Structure

Description

Samples

1:*

Array

[0] pgnStreamTimeStamp

1:1

Integer

Timestamp in tenths of a millisecond (x0,1ms) relative to pgnStreamTimeRef

[1] pgnData

1:1

String

Hex string with uppercase characters, without spaces, representing the 8 bytes PGN data, e.g. 5A4B1027FFFFFFFF

For most PGNs (8 data bytes PGNs) a single string will be published but for larger PGNs more strings are needed, the first BAM string plus one or more sequence strings.

[2…N]

0:*

String

Additional data represented as Hex string with uppercase characters, without spaces.

Only used in multi-packet PGNs.

Request_pgn command

Table 35.- Topic path for request_pgn command

<root>/operation/<provider_guid>/raw_pgn/<OPI_version>/cmd/request_pgn/<sender_GUID>

Table 36.- request_pgn command message structure

request_pgn

+Structure

Description

<Common fields for every JSON cmd message>

pgn

1:1

String

Parameter Group Number (hex. Example FEEE)

Stop_pgn command

Table 37.- Topic path for stop_pgn command

<root>/operation/<provider_guid>/raw_pgn/<OPI_version>/cmd/stop_pgn/<sender_GUID>

Table 38.- stop_pgn command message structure

stop_pgn

+Structure

Description

<Common fields for every JSON data message>

pgn

1:1

Integer

Parameter Group Number (hex. Example FEEE).

OPI Raw Vehicle Signals (digital)

Description

Table 39.- OPI Raw Vehicle Signals (digital) summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

raw_vehicle_signals

<VehicleSignalName> (There is one DG per signal)

  • Status of the vehicle digital signal acquired by the Provider
  • Trigger: at startup and on discrete change
  • VehicleSignalsAll (single DG with the status of all signals acquired)
  • Status of all vehicle digital signals acquired by the Provider
  • Trigger: at startup and on discrete change
  • none

OPI version

v1.0

<VehicleSignalName> DG

Each signal is published in a topic with its Leaf Topic Name from the Vehicle Signals Catalog (Table 42):

Table 40.- Topic path for each Vehicle Signal

<root>/operation/<provider_guid>/raw_vehicle_signals /<OPI_version>/data/<vehicle_signal_leaf_topic_name>

Each DataGroup consists of a single field with the signal name as in the Vehicle Signals Catalog (Table 42):

Table 41.- VehicleSignalName DG message structure

<VehicleSignalName> (DataGroupName)

+Structure

Description

<Common fields for every JSON data message>

<vehicleSignalName>

1:1

String (Enum)

high | low | unavailable | unknown

Table 42.- Vehicle Signals (digital) Catalog: DataGroups and and Leaf Topic Names

Vehicle Signals Catalog

/<vehicle_signal_leaf_topic_name>

DataGroupName

signalName

/<vehicle_signal_leaf_topic_name>

DataGroupName

signalName

/<vehicle_signal_leaf_topic_name>

DataGroupName

signalName

/<vehicle_signal_leaf_topic_name>

DataGroupName

signalName

/manual_switch_signal
ManualSwitchSignal
manualSwitchSignal

/ramps_signal
RampsSignal
rampsSignal

/ramp3_signal
Ramp3Signal
ramp3Signal

/motor_running_signal
MotorRunningSignal
motorRunningSignal

/main_switch_signal
MainSwitchSignal
mainSwitchSignal

/door1_signal
Door1Signal
door1Signal

/door4_signal
Door4Signal
door4Signal

/presence_hv_signal
PresenceHVSignal
presenceHVSignal

/ignition_switch_signal
IgnitionSwitchSignal
ignitionSwitchSignal

/ramp1_signal
Ramp1Signal
ramp1Signal

/door5_signal
Door5Signal
door5Signal

/reverse_signal
ReverseSignal
reverseSignal

/full_power_available_signal
FullPowerAvailableSignal
fullPowerAvailableSignal

/door2_signal
Door2Signal
door2Signal

/door6_signal
Door6Signal
door6Signal

/silent_alarm_request_signal
SilentAlarmRequestSignal
silentAlarmRequestSignal

/low_battery_signal
LowBatterySignal
lowBatterySignal

/ramp2_signal
Ramp2Signal
ramp2Signal

/stop_request_signal
StopRequestSignal
stopRequestSignal

/luggage_compartment_door_signal
LuggageCompartmentDoorSignal
luggageCompartmentDoorSignal

/doors_signal
DoorsSignal
doorsSignal

/door3_signal
Door3Signal
door3Signal

/ramp_request_signal
RampRequestSignal
rampRequestSignal

Example 1 for ignitionSwitchSignal vehicle signal, published in:

Table 43.- Topic path for ignitionSwitchSignal

<root>/operation/<provider_guid>/raw_vehicle_signals /<OPI_version>/data/ignition_switch_signal

Table 44.- ignitionSwitchSignal message structure

IgnitionSwitchSignal

+Structure

Description

<Common fields for every JSON data message>

ignitionSwitchSignal

1:1

String (Enum)

high | low | unavailable | unknown

Example 2 for ramp1Signal vehicle signal, published in:

Table 45.- Topic path for ramp1Signal

<root>/operation/<provider_guid>/raw_vehicle_signals /<OPI_version>/data/ramp1_signal

Table 46.- ramp1Status message structure

Ramp1Signal

+Structure

Description

<Common fields for every JSON data message>

ramp1Signal

1:1

String (Enum)

high | low | unavailable | unknown

VehicleSignalsAll

Table 47.- Topic path for Vehicle Signals All

<root>/operation/<provider_guid>/raw_vehicle_signals /<OPI_version>/data/vehicle_signal_all

Table 48.- VehicleSignalsAll message structure

VehicleSignalsAll

+Structure

Description

<Common fields for every JSON data message>

manualSwitchSignal

0:1

String (Enum)

high | low | unavailable | unknown

mainSwitchSignal

0:1

String (Enum)

high | low | unavailable | unknown

ignitionSwitchSignal

0:1

String (Enum)

high | low | unavailable | unknown

fullPowerAvailableSignal

0:1

String (Enum)

high | low | unavailable | unknown

lowBatterySignal

0:1

String (Enum)

high | low | unavailable | unknown

doorsSignal

0:1

String (Enum)

high | low | unavailable | unknown

rampsSignal

0:1

String (Enum)

high | low | unavailable | unknown

door1Signal

0:1

String (Enum)

high | low | unavailable | unknown

ramp1Signal

0:1

String (Enum)

high | low | unavailable | unknown

door2Signal

0:1

String (Enum)

high | low | unavailable | unknown

ramp2Signal

0:1

String (Enum)

high | low | unavailable | unknown

door3Signal

0:1

String (Enum)

high | low | unavailable | unknown

ramp3Signal

0:1

String (Enum)

high | low | unavailable | unknown

door4Signal

0:1

String (Enum)

high | low | unavailable | unknown

door5Signal

0:1

String (Enum)

high | low | unavailable | unknown

door6Signal

0:1

String (Enum)

high | low | unavailable | unknown

stopRequestSignal

0:1

String (Enum)

high | low | unavailable | unknown

rampRequestSignal

0:1

String (Enum)

high | low | unavailable | unknown

motorRunningSignal

0:1

String (Enum)

high | low | unavailable | unknown

presenceHVSignal

0:1

String (Enum)

high | low | unavailable | unknown

reverseSignal

0:1

String (Enum)

high | low | unavailable | unknown

silentAlarmRequestSignal

0:1

String (Enum)

high | low | unavailable | unknown

luggageCompartmentDoorSignal

0:1

String (Enum)

high | low | unavailable | unknown

OPI Gnss

Description

Table 49.- OPI Gnss summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

gnss

GnssLocationAll

  • GNSS metrics in a single message: Raw data, coordinates, altitude, speed, heading, date_time and information about the quality of these data.
  • Trigger: periodically, once per second.
  • none

OPI version

v1.0

GnssLocationAll DG

Table 50.- Topic path for GnssLocationAll DG

<root>/operation/<provider_guid>/gnss/<OPI_version>/data/gnss_location_all

Table 51.- GnssLocation DG message structure

GnssLocation

+Structure

Description

<Common fields for every JSON data message>

gnssRawData

0:1

String

Raw data as defined in the relevant GNSS, for example GPS NMEA 0183 or 2000 frames. At most one occurrence of each frame type shall be provided.

rawDataType

0:1

String

Type of data specification used for raw data

latitude

1:1

Object

Latitude value

degree

1:1

Float

Coordinate in decimal degrees (DDDDD), WGS-84 [-90.00000, +90.00000]

Positive = Northern Hemisphere, negative = Southern Hemisphere.

heading

0:1

String (Enum)

Geographical direction (N or S)

longitude

0:1

Object

Longitude value

degree

1:1

Float

Coordinate in decimal degrees (DDDDD), WGS-84 [-180.00000, +180.000000]

Positive = Eastern Hemisphere, negative = Western Hemisphere.

heading

0:1

String (Enum)

Geographical direction (W or E)

altitude

1:1

Float

Altitude value (m)

time

1:1

String

UTC time value with following format hh:mm:ss

date

0:1

String

Date value with following format yyyy-mm-dd

speedOverGround

0:1

Float

GNSS based speed over ground (m/s)

signalQuality

0:1

String (Enum)

Signal quality value. Quality reference from GNSS coordinates based on system specification. See the following possible enums: aGPS | dGPS | estimated | gps | notValid | unknown

fix

0:1

String (Enum)

Status of GNSS fix. See the following possible enums: noFix | 2D | 3D | DR | 3D+DR

numberOfSatellites

0:1

Integer

Number of satellites which are used for the GNSS

horizontalDilutionOfPrecision

0:1

Float

Value of precision in horizontal dilution

verticalDilutionOfPrecision

0:1

Float

Value of precision in vertical dilution

trackDegreeTrue

0:1

Float

Value of the Track based at the real north pole

trackDegreeMagnetic

0:1

Float

Value of the Track based at the magnetic north pole

gnssType

1:1

String (Enum)

Information about the used GNSS System. Type of satellites receiver. MixedGNSSTypes is used for receivers using multiple satellite constellations. See the following possible enums: gps | glonass | galileo | beidou | irnss | deadReckoning | mixedGnssTypes | other

gnssCoordinateSystem

0:1

String (Enum)

Information about the coordinate system. data reference used by satellites coordinates. the default coordinate system is wgs84 (widely used), in case of empty field. see the following possible enums: ch1903 | etsr89 | itrs/itrf nad83 | wgs84 | pz90

deadReckoning

1:1

Boolean

DR assistance active (Y/N).

doubleFrequency

0:1

Boolean

Dual-frequency receiver (Y/N).

gnssDistance

0:1

Float

Distance travelled computed from GNSS (metres).

simulationMode

0:1

Boolean

true when GNSS is in simulation mode.

horizontalAccuracy

0:1

Float

1-σ horizontal accuracy (metres)

verticalAccuracy

0:1

Float

1-σ vertical accuracy (metres)

speedAccuracy

0:1

Float

1-σ speed accuracy (m s-¹).

headingAccuracy

0:1

Float

1-σ heading accuracy (degrees).

gnssFixOk

0:1

Boolean

true if solution meets DOP & accuracy masks.

Vehicle Motion Sensors

OPI Acceleration_sensor(streamed)

Description

Table 52.- OPI Accelerations summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

acceleration_sensor

RawAccelerationsStreamInfo

  • SamplingPeriod
  • Time reference for stream data samples timestamp
  • Topic path to raw accelerations data
  • Structure of each sample of raw accelerations data
  • Trigger: : at startup and on discrete change

RawAccelerationsStreamData. This data is published with a compat JSON including:

  • TimeStamp in tenths of a millisecond (x0,1ms)
  • X, Y, Z accelerations read from an accelerometer three axis sensor
  • Trigger: at startup and then periodically with a period of 30ms

VehicleAccelerationsStreamInfo

  • SamplingPeriod
  • Time reference for stream data samples timestamp
  • Topic path to vehicle accelerations data
  • Structure of each sample of vehicle accelerations data
  • Trigger: : at startup and on discrete change
  • VehicleAccelerationsStreamData
  • TimeStamp in tenths of a millisecond (x0,1ms)
  • Vehicle Longitudinal, Lateral and Vertical accelerations (vehicle axis aligned accelerations)
  • Trigger: at startup and then periodically with a period of 30ms
  • calibrate_accel (align the accelerator axis with the vehicle axis and remove offsets)

OPI version

v1.0

RawAccelerationsStreamInfo DG

Table 53.- Topic path for RawAccelerationsStreamInfo

<root>/operation/<provider_guid>/accelerations/<OPI_version>/data/raw_accelerations/stream_info

Table 53.- RawAccelerationsStreamInfo DG message structure

RawAccelerationsStreamInfo

+Structure

Description

<Common fields for every JSON data message>

rawAccelSamplingPeriod

1:1

Integer

Current sampling period (ms).

rawAccelStreamTimeRef

1:1

DateTime

Reference time for the Timestamps of the data. It is the date of the start of the vehicle session.

Adding the timestamp of a data element in the stream to this time will result in the absolute DateTime for this data element

rawAccelStreamPath

0:1

String

Topic path to RawAccelerationsStreamData

rawAccelStreamRecord

0:1

String

RawAccelerationsStreamData array (samples) structure

RawAccelerationsStreamData DG

Table 55.- Topic path for RawAccelerationsStreamData

<root>/operation/<provider_guid>/accelerations/<OPI_version>/data/raw_accelerations/stream_data

Table 56.- RawAccelerationsStreamData DG message structure

RawAccelerationsStreamData

+Structure

Description

Samples

1:*

Array

[0] rawAccelStreamTimeStamp

1:1

Integer

Timestamp in tenths of a millisecond (x0,1ms) relative to rawAcelStreamTimeRef

[1] rawAccelX

1:1

Integer

Raw X acceleration from the sensor axes (mG). (1 mG = 0.0098 m/s²)

[2] rawAccelY

0:1

Integer

Raw Y acceleration from the sensor axes (mG). (1 mG = 0.0098 m/s²)

[3] rawAccelZ

0:1

Integer

Raw Z acceleration from the sensor axes (mG). (1 mG = 0.0098 m/s²)

VehicleAccelerationsStreamInfo DG

Table 57.- Topic path for VehicleAccelerationsStreamInfo DG

<root>/operation/<provider_guid>/accelerations/<OPI_version>/data/vehicle_accelerations/stream_info

Table 58.- VehicleAccelerationsStreamInfo DG message structure

VehicleAccelerationsStreamInfo

+Structure

Description

<Common fields for every JSON data message>

vehAccelSamplingPeriod

1:1

Integer

Current sampling period (ms).

vehAccelSlope

0:1

Integer

Longitudinal acceleration measured last time the vehicle was stationary (mG).

vehAccelStreamTimeRef

1:1

DateTime

Reference time for the Timestamps of the data. It is the date of the start of the vehicle session.

Adding the timestamp of a data element in the stream to this time will result in the absolute DateTime for this data element

vehAccelStreamPath

0:1

String

Topic path to VehicleAccelerationsStreamData

vehAccelStreamRecord

0:1

String

VehicleAccelerationsStreamData array (samples) structure

Table 59.- Topic path for VehicleAccelerationsStreamData DG

<root>/operation/<provider_guid>/accelerations/<OPI_version>/data/vehicle_accelerations/stream_data

VehicleAccelerationsStreamData DG

Table 60.- VehicleAccelerationsStreamData DG message structure

VehicleAccelerationsStreamData

+Structure

Description

Samples

1:*

Array

[0] vehAccelStreamTimeStamp

1:1

Integer

Timestamp in tenths of a millisecond (x0,1ms) relative to vehAccelStreamTimeRef

[1] vehAccelX

1:1

Integer

Longitudinal, vehicle-aligned X acceleration (mG). (1 mG = 0.0098 m/s²)

[2] vehAccelY

0:1

Integer

Lateral, vehicle-aligned Y acceleration (mG). (1 mG = 0.0098 m/s²)

[3] vehAccelZ

0:1

Integer

Vertical, vehicle-aligned Z acceleration (mG). (1 mG = 0.0098 m/s²)

calibrate_accel command

Table 61.- Topic path for calibrate_accel command

<root>/operation/<provider_guid>/accelerations/<OPI_version>/cmd/calibrate_acel/<sender_GUID>

Table 62.- calibrate_accel command message structure

calibrate_accel

+Structure

Description

<Common fields for every JSON command message>**

calibrateAccel

1:1

Boolean

true

OPI Odometer (streamed)

Description

Table 63.- OPI Odometer summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

odometer

OdometerStreamInfo

  • Time reference for stream data samples timestamp
  • Topic path to odometer data
  • Structure of each sample of odometer data
  • Trigger: : at startup and on discrete change

OdometerStreamData

  • Time reference for stream data samples timestamp
  • Distance, speed and pulses from the wheel odometer, reference time.
  • Trigger: At each new pulse while pulses are spaced more than 100ms, or periodically every 100ms when pulses are more frequent.
  • none

OPI version

v1.0

OdometerStreamInfo DG

Table 64.- Topic path for OdometerStreamInfo DG

<root>/operation/<provider_guid>/odometer/<OPI_version>/data/odo_stream_info

Table 65.- OdometerStreamInfo DG message structure

OdometerStreamInfo

+Structure

Description

<Common fields for every JSON data message>

OdoStreamTimeRef

1:1

DateTime

Reference time for the Timestamps of the data. It is the date of the start of the vehicle session.

Adding the timestamp of a sample in the stream to this time will result in the absolute DateTime for this sample

OdoStreamPath

0:1

String

Topic path to OdometerStreamData

OdoStreamRecord

0:1

String

OdometerStreamData array (samples) structure

OdometerStreamData DG

Table 64.- Topic path for OdometerStreamData DG

<root>/operation/<provider_guid>/odometer/<OPI_version>/data/odo_stream_data

Table 65.- OdometerStreamData DG message structure

OdometerStreamData

+Structure

Description

Samples

1:*

Array

[0] odoStreamTimeStamp

1:1

Integer

Timestamp in tenths of a millisecond (x0,1ms) relative to OdoStreamTimeRef

[1] odoSpeed

1:1

Integer

Vehicle speed computed from odometer (Hm/h).

[2] odoDistance

1:1

Integer

Distance travelled since last vehicle start (last contact on) (meters).

[3] odoPulses

1:1

Integer

Accumulated odometer pulse count since last vehicle start (last contact on).

[4] odoAcceleration

0:1

Integer

Vehicle instantaneous acceleration (mG) (1mG=(9,8m/s2)/1000)

OPI Beacon Location (REV)

Description

Table 49.- OPI Beacon Location summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

beacon_location

BeaconLocationAll

  • Information received from one or more external location beacons: beacon ID, beacon point ID, beacon point type (e.g. stop point**), distance from the start of the Journey Pattern, message sequence, timestamp, beacon battery level, beacon transmission power, augmentation URL to obtain additional information, beacon location coordinates, beacon configuration version, beacon type.
  • **If the location beacon provides network location data (such as a bus stop, an activation point, or an area)this may be publised as beacon received data using this OPI and should also be published using the network location OPI under the GUID of the beacon information Provider.
  • Information provided by the onboard beacon receiver: beacon RSSI, beacon signal angle of arrival, reception timestamp, estimated distance to beacon, signal quality indicator, CRC NOK, receiving antenna ID
  • Trigger: each time a location beacon message is received
  • none

OPI version

v0

BeaconLocationAll DG

Table 50.- Topic path for BeaconLocationAll DG

<root>/operation/<provider_guid>/beacon_location/<OPI_version>/data/beacon_location_all

Table 51.- BeaconLocation DG message structure

BeaconLocation

+Structure

Description

<Common fields for every JSON data message>

beaconId

1:1

String

Unique beacon identifier

beaconType

1:1

Sting (Enum)

| BLE | UWB | IR |

beaconPointRef

0:1

String

Network location point where the beacon is located.

(Mandatory unless areaRef and subAreaRef are included)

beaconPointType

1:1

Sting (Enum)

Type of network location point: | stop_point | activation_point |

areaRef

0:1

String

E.g. to identify an interchange station (beacon Major)

subAreaRef

0:1

String

E.g. part of the interchange station where the bus is (beacon Minor)

subAreaRelativePosition

0:1

String (Enum)

entering | leaving | inside

distanceFromStart

0:1

Integer

Distance from the start of the Journey Pattern to this point, measured in metres along the route path.

beaconTimestamp

1:1

DateTime

UTC timestamp broadcast by the beacon for onboard clock synchronisation. Format: YYYY-MM-DDThh:mm:ss.sssZ

beaconBattLevel

0:1

Integer

Battery charge level (%). Range: [0, 100]. Not applicable for mains-powered or inductive loop beacons.

beaconTxPower

0:1

Integer

Nominal transmission power in dBm. Required by the receiver for RSSI-based distance estimation. Not applicable for IR beacons.

beaconUrl

0:1

String

URL for obtaining augmented information about the beacon point (e.g., stop facilities, timetable data).

beaconLatitude

1:1

Object

Latitude value

degree

1:1

Float

Coordinate in decimal degrees (DDDDD), WGS-84 [-90.00000, +90.00000]

Positive = Northern Hemisphere, negative = Southern Hemisphere.

heading

0:1

String (Enum)

Geographical direction (N or S)

beaconLongitude

1:1

Object

Longitude value

degree

1:1

Float

Coordinate in decimal degrees (DDDDD), WGS-84 [-180.00000, +180.000000]

Positive = Eastern Hemisphere, negative = Western Hemisphere.

heading

0:1

String (Enum)

Geographical direction (W or E)

beaconAltitude

0:1

Float

Altitude value (m)

beaconMessageSequence

0:1

Integer

Sequence number of the beacon message. Used to detect message loss or duplicate reception.

beaconConfigVersion

0:1

String

Version identifier of the beacon configuration. Allows the onboard unit to detect configuration changes since last reception.

<Beacon receiver data>

receptionTimestamp

1:1

DateTime

Precise timestamp at which the beacon message was received by the onboard unit (UTC). Format: YYYY-MM-DDThh:mm:ss.sssZ

beaconRSSI

0:1

Integer

Received Signal Strength Indicator in dBm. Not applicable for UWB and IR beacons.

beaconAoA

0:1

Float

Angle of Arrival of the beacon signal in degrees. Available for BLE 5.1+ and UWB beacons. Not applicable for IR and inductive loop beacons.

distanceToBeacon

0:1

Float

Distance to beacon

beaconSignalQuality

0:1

Integer

Signal quality score [0-100] based on the number of valid frames received and the CRC pass rate within the detection window.

beaconCrcNok

0:1

Boolean

True if the received beacon message failed CRC validation. Indicates a corrupted frame; downstream systems should handle accordingly.

beaconAntennaId

0:1

String

Identifier of the vehicle antenna that received the beacon signal. Used for direction inference in multi-antenna onboard installations.

Vehicle status

OPI Tell Tale Status

Description

Table 66.- OPI Tell Tale Status summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

tell_tale_status

ActiveTellTales

  • List of active tell tales with status information on distance and time while active.
  • Trigger: at startup, on discrete change and periodically every 10s while there are active tell tales.
  • none

OPI version

v1.0

ActiveTellTales DG

Table 67.- Topic path for ActiveTellTales DG

<root>/operation/<provider_guid>/tell_tale_status/<OPI_version>/data/active_tell_tales

Table 68.- ActiveTellTales DG message structure

ActiveTellTales

+Structure

Description

<Common fields for every JSON data message>

activeTellTales

1:*

Object

Tell Tales with Status= Info, Yellow or Red

tellTaleId

1:1

Integer

According to FMS (1~120)

tellTaleStatus

1:1

Integer

Info, Yellow or Red

ttsRedTime

0:1

Integer

Time in seconds with TTS Red

ttsRedDistance

0:1

Integer

Distance travelled in meters with TTS Red

ttsYellowTime

0:1

Integer

Time in seconds with TTS Yellow

ttsYellowDistance

0:1

Integer

Distance travelled in meters with TTS Yellow

OPI Diagnostic Messages

Description

Table 69.- OPI Diagnostic Messages summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

diagnostic_messages

DiagnosticMessagesAll

  • Publication of diagnostic messages according to j1939DM1.
  • Trigger: at startup, on discrete change and periodically every 10s while there are active diagnostic messages.
  • none

OPI version

v1.0

DiagnosticMessagesAll DG

Table 70.- Topic path for DiagnosticMessagesAll DG

<root>/operation/<provider_guid>/diagnostic_messages/<OPI_version>/data/diagnostic_messages_all

Table 71.- DiagnosticMessagesAll DG message structure

DiagnosticMessagesAll

+Structure

Description

<Common fields for every JSON data message>

diagnosticMessages

1:*

Object

DM according to J1939 DM1

lampStatus

1:1

Integer

According to DM1. MIL(Malfunction Indicator), RSL(Red Stop), AWL(Amber Warning), PL(Protect Lamp)

dtc

1:*

Object

Diagnostic Trouble Codes

spn

1:1

Integer

J1939 parameter

failureModeId

1:1

Integer

Failure Mode Identifier

occurrenceCount

1:1

Integer

Occurrence Count

dtcTime

0:1

Integer

Time in seconds with DTC active

dtcDistance

0:1

Integer

Distance travelled in meters with DTC active

OPI Vehicle Modes

Description

Table 72.- OPI Vehicle Modes summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

vehicle_modes

Contact

  • Ignition status information (Contact ON or OFF, No contact, Unavailable, Error).
  • Trigger: at startup and on discrete change.

EngineStatus

  • Engine status information (ON, OFF, No Engine, Unavailable, Error).
  • Trigger: at startup and on discrete change.

ParkingBrakeStatus

  • Parking brake status information.
  • Trigger: at startup and on discrete change.

ChargingStatus

  • Charging status information.
  • Trigger: At connection/disconnection from the charger and periodically every 10s while charging.

DrivingMode

  • Driving mode information (Driving, StandBy, Charging).
  • Trigger: at startup and on discrete change.

ReverseStatus

  • ReverseSignal Status
  • Trigger: at startup and on discrete change.

PowerMode

  • 24V auxiliaries power mode: ECO0, ECO1, ECO2 or SLEEP
  • Time to switch ITS power off
  • Trigger: at startup and on discrete change.

ManualSwitchStatus

  • Manual switch signal Status
  • Trigger: at startup and on discrete change.

MainSwitchStatus

  • Main switch signal status
  • Trigger: at startup and on discrete change.

LowBatteryStatus

  • Low battery signal status
  • Trigger: at startup and on discrete change.
  • none

OPI version

v1.0

Contact DG

Table 73.- Topic path for Contact DG

<root>/operation/<provider_guid>/vehicle_modes/<OPI_version>/data/contact

Table 74.- Contact DG message structure

Contact

+Structure

Description

<Common fields for every JSON data message>

ignitionStatus

1:1

String (Enum)

on | off | noContact | unavailable | error

EngineStatus DG

Table 75.- Topic path for EngineStatus DG

<root>/operation/<provider_guid>/vehicle_modes/<OPI_version>/data/engine_status

Table 76.- EngineStatus DG message structure

EngineStatus

+Structure

Description

<Common fields for every JSON data message>

engineStatus

1:1

String (Enum)

on | off | noContact | unavailable | error

ParkingBrakeStatus DG

Table 77.- Topic path for ParkingBrakeStatus DG

<root>/operation/<provider_guid>/vehicle_modes/<OPI_version>/data/parking_brake_status

Table 78.- ParkingBrakeStatus DG message structure

ParkingBrakeStatus

+Structure

Description

<Common fields for every JSON data message>

parkingBrakeStatus

1:1

String (Enum)

on | off | unavailable | error

ChargingStatus DG

Table 79.- Topic path for ChargingStatus DG

<root>/operation/<provider_guid>/vehicle_modes/<OPI_version>/data/charging_status

Table 80.- ChargingStatus DG message structure

ChargingStatus

+Structure

Description

<Common fields for every JSON data message>

chargingStatus

1:1

String (Enum)

Idle (No EVSE connected)

Charging

Standby

Initialising

Pre-charge

Terminating

Battery failure. An error condition due to the battery state (high temperature, etc.)

EVSE fault. An error condition due to the EVSE.

Not available

chargingStartTime

1:1

DateTime

Timestamp when a charging session started (chargingStatus from OFF to ON)

energyCharged

0:1

Integer

Cumulated Energy charged (Wh)

hvessSoc

0:1

Integer

0% means no charge remaining, 100% means the system is fully charged in terms of physical limits of the energy storage system (%)

chargingEndTime

0:1

DateTime

Timestamp when a charging session ended (chargingStatus from ON to OFF, error)

DrivingMode DG

Table 81.- Topic path for DrivingMode DG

<root>/operation/<provider_guid>/vehicle_modes/<OPI_version>/data/driving_mode

Table 82.- DrivingMode DG message structure

DrivingMode

+Structure

Description

<Common fields for every JSON data message>

drivingMode

1:1

String

driving | standBy | charging

PowerMode DG

Table 83.- Topic path for PowerMode DG

<root>/operation/<provider_guid>/vehicle_modes/<OPI_version>/data/power_mode

Table 84.- PowerMode DG message structure

PowerMode

+Structure

Description

<Common fields for every JSON data message>

powerMode

1:1

String

24V auxiliaries power mode: ECO0, ECO1, ECO2 or SLEEP

timeToPowerOff

0:1

Integer

Time in seconds left until 24V power is set to Off (Contact Off)

OPI Passengers Area Information

Description

Table 85.- OPI Passengers Area Information summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

passengers_area_info

DoorsStatus

  • Status of all and individual doors and their ramps
  • Trigger: at startup and on discrete change.

PassengersAreaAmbientConditions

  • Temperature for each sensor (1:1)
  • Relative Humidity (%RH) for each sensor (0:1)
  • CO2 concentration for each sensor (0:1)
  • Air Quality Index for each sensor (0:1)
  • Trigger: periodically every 30s.

LuggageCompartmentStatus

  • Status of each luggage compartment (open or closed)
  • Trigger: at startup and on discrete change.

StopRequestStatus

  • Status of stop request sign
  • Status of each onboard stop and ramp request pushbutton
  • Stop request source (pushbutton1, pushbutton2, PRM pushbutton, app)
  • Trigger: on discrete change

PassengersSeatbeltsStatus

  • Status of each passenger seatbelt
  • Status of seatbelts for wheelchairs
  • Trigger: at startup and on discrete change.
  • none

OPI version

v1.0

DoorsStatus DG

Table 86.- Topic path for DoorsStatus DG

<root>/operation/<provider_guid>/passengers_area_info/<OPI_version>/data/doors_status

Table 87.- DoorsStatus DG message structure

DoorsStatus

+Structure

Description

<Common fields for every JSON data message>

anyDoorStatus

1:1

String (Enum)

open = if any door is open

closed = if all doors are closed

unknown = if status is “unknown”

malfunction = in case of malfunction

anyRampStatus

1:1

String (Enum)

noRamp = no ramp available in this bus

open = if any ramp has been deployed

closed = if no ramp has been deployed

unknown = if status is “unknown”

malfunction = in case of malfunction of any ramp

eachDoorStatus

0:*

Object

List of all doors and their status

doorLocationId

1:1

Integer

Door ID associated with its position in the bus (e.g. 1 = front door)

doorInfo

1:1

String

Free description of the door e.g. “low floor, rear door with ramp)

doorStatus

1:1

String (Enum)

open = if any door is open

closed = if all doors are closed

unknown = if status is “unknown”

malfunction = in case of malfunction

doorCondition

0:1

String (enum)

normal | locked | emergencyRelease

rampLiftPosition

1:1

String (Enum)

noRamp = no ramp available in this door

open = if ramp has been deployed

closed = if ramp has not been deployed

unknown = if status is “unknown”

malfunction = in case of malfunction

ramp7DaysWithoutUseStatus

0:1

String (Enum)

usedWithin7Days | notUsed7Days | unknown | malfunction

rampErrorStatus

0:1

Boolean

true | false

rampIsDirtyStatus

0:1

Boolean

true | false

totalCyclesRamp

0:1

Integer

Cumulative number of ramp cycles for this door since installation or last maintenance reset (rampCounterSince)

totalCyclesDoor

0:1

Integer

Cumulative number of door cycles (open/close) since installation or last maintenance reset

doorCounterSince

0:1

DateTime

Timestamp when the door cycle counter was last reset

rampCounterSince

0:1

DateTime

Timestamp when the ramp cycle counter was last reset

AmbientConditions DG

Table 88.- Topic path for AmbientConditions DG

<root>/operation/<provider_guid>/passengers_area_info/<OPI_version>/data/ambient_conditions

Table 89.- AmbientConditions DG message structure

AmbientConditions

+Structure

Description

<Common fields for every JSON data message>

temperatureSensor

1:*

Object

Temperature sensors

temperatureSensorLocationId

1:1

Integer

ID associated with the position of the sensor within in the bus

temperatureSensorInfo

1:1

String

Free description of sensor features and , location

temperatureSensorValue

1:1

Integer

Value expressed in 0.1 °C units, unknownor malfunction

humiditySensor

0:*

Object

Humidity sensors

humiditySensorLocationId

1:1

Integer

ID associated with the position of the sensor within in the bus

humiditySensorInfo

1:1

String

Free description of sensor features and location

humiditySensorValue

1:1

Integer

Value expressed in % units, unknownor malfunction

co2Sensor

0:*

Object

CO2 sensors

co2SensorLocationId

1:1

Integer

ID associated with the position of the sensor within in the bus

co2SensorInfo

1:1

String

Free description of sensor features and location

co2SensorValue

1:1

Integer

Value expressed in ppm units, unknownor malfunction

euaqi

0:*

Object

European air quality index

euaqiSensorLocationId

0:1

Integer

ID associated with the position of the sensor within in the bus

euaqiSensorInfo

0:1

String

Free description of sensor features and location

euaqiSensorValue

0:1

Integer

EUAQI 1 to 5 air quality index value, unknownor malfunction

euaqiPassengersAreaValue

0:1

Integer

EUAQI 1 to 5 air quality index value in passengers Area

LuggageCompartmentStatus DG

Table 90.- Topic path for LuggageCompartmentStatus DG

<root>/operation/<provider_guid>/passengers_area_info/<OPI_version>/data/luggage_compartment_status

Table 91.- LuggageCompartmentStatus DG message structure

LuggageCompartmentStatus

+Structure

Description

<Common fields for every JSON data message>

luggageCompartment1Status

1:1

Boolean

Status of any luggage compartment: true = ANY OPEN, false = ALL CLOSED

luggageCompartment1Status

0:1

Boolean

Status of any luggage compartment1:true = OPEN, false = CLOSED

luggageCompartment2Status

0:1

Boolean

Status of any luggage compartment2:true = OPEN, false = CLOSED

luggageCompartment3Status

0:1

Boolean

Status of any luggage compartment3:true = OPEN, false = CLOSED

luggageCompartment4Status

0:1

Boolean

Status of any luggage compartment4:true = OPEN, false = CLOSED

StopRequestStatus DG

Table 92.- Topic path for StopRequestStatus DG

<root>/operation/<provider_guid>/passengers_area_info/<OPI_version>/data/stop_request_status

Table 93.- StopRequestStatusDG message structure

StopRequestStatus

+Structure

Description

<Common fields for every JSON data message>

stopRequestStatus

1:1

Boolean

Status of the bus stop request signs.

true (if active/requested) | false (not requested)

They turn on whenever a stop request button is pushed by a passenger and turn off after the bus arrives at a stop.

stopRequestSource

0:1

String

Pushbutton, PMR_pushbutton or user_App

stopRequestButton1Status

0:1

Boolean

Status of stop request button 1 (front)

stopRequestButton2Status

0:1

Boolean

Status of stop request button 2 (middle)

stopRequestButton3Status

0:1

Boolean

Status of stop request button 3 (rear)

PassengersSeatbeltsStatus DG

Table 94.- Topic path for PassengersSeatbeltsStatus DG

<root>/operation/<provider_guid>/passengers_area_info/<OPI_version>/data/passengers_seatbelts_status

Table 95.- PassengersSeatbeltsStatus DG message structure

PassengersSeatbeltsStatus

+Structure

Description

<Common fields for every JSON data message>

passengersSeatbelts

1:N

Object

Status of passenger seatbelts

seatbeltLocationId

1:1

Integer

ID associated with the position of the sensor within in the bus

seatbeltInfo

1:1

String (Enum)

Seat or Wheelchair seatbelt. See the following possible enums: seat | wheelchair

seatbeltStatus

1:1

Integer

See the following possible enums: locked | unlocked | unknown | malfunction

TICKETING OPIs

OPI Validator

Description

Table 115.- OPI Validator summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

validator

ValidatorTransaction

  • Validation transaction data (fare product, user profile, relevant network location…)
  • Trigger: after each transaction.

A different DataGroup published at a specific topic should be used to publish each different type of validation transaction, such as conventional card based transactions, ABT, EMV, QR or others

ValidatorOpParameters

  • Operating parameters for validation (relevant network location, tariff zone…)
  • Trigger: at startup and on discrete change
  • shutdown
  • reset
  • set_validation_mode
  • lock_validation
  • set_maintenance
  • set_demo
  • request_config
  • set_config

OPI version

v1.0

ValidatorTransaction DG

Table 116.- Topic path for ValidatorTransaction DG

<root>/operation/<provider_guid>/validator/<OPI_version>/data/transactions

Table 117.- ValidatorTransaction DG message structure

ValidatorTransaction

+Structure

Description

<Common fields for every JSON data message>

validationDate

1:1

DateTime

Timestamp of the validation date

fareMediumSerialNumber

1:1

String

Unique serial of the physical/virtual medium presented

accessEventCounter

1:1

Integer

Value of event counter in the medium.

fareProductCode

1:1

String

Code of the Fare Product consumed/checked

farePurchasingDate

1:1

DateTime

Timestamp when the product was sold/loaded

fareFirstValidationDate

1:1

DateTime

Timestamp of the first use/first validation of the product

fareOwner

1:1

String

Identifier of the fare contract owner

fareMediumType

1:1

String (Enum)

Medium type used: contactlessCard | nfcPhone | bankcard | paperBarcode | phoneBarcode

fareSystemType

1:1

String (Enum)

ptaSystem | ptoSystem | emv | abt | tesc

customerProfile

1:1

String

Passenger profile applied (adult, student, senior…)

driverRef

1:1

String

Driver identifier linked to the operating session

ptoRef

1:1

String

Public Transport Operator identifier reference.

validationLocation

1:1

Object

Context of where the validation took place

equipmentGuid

1:1

String

ODEx equipment item GUID where the validation took place.

vehicleRef

1:1

String

ID of the vehicle unit. VIN for bus.

stopPointRef

0:1

String

Stop Point reference attributed to the event

lineRef

1:1

String

Identifier of the operational Line that the vehicle follows

directionRef

0:1

String (Enum)

Relative direction the vehicle is running along the line:

in = inbound | out = outbound | cw = clockwise | ccw = counterclockwise | other

servicePatternRef

0:1

String

Identifier of the Service Pattern

fareZoneId

0:1

String

Tariff/Fare Zone

blockRef

0:1

String

Reference (ID) of Block assigned

courseOfJourneyRef

0:1

String

Reference (ID) of Course of Journey assigned

serviceJourneyRef

0:1

String

Reference (ID) of Service Journey assigned

validationCount

1:1

Integer

Validator transaction counter

hotListsVersion

1:*

Object

List type and version of hot lists applied

type

1:1

String

Type of hot list applied (simple, ranged…)

version

1:1

String

Version of defined hot list.

validationResultCode

1:1

Integer

Project-specific validation result code. Consumers must interpret it using the project validation result code list.

E.g.: 1 = ok | 2 = cardRejected | 3 = cardBlocked | 4 = customerProfileChange…

Extensions

0:1

any

Placeholder for user extensions (e.g. Raw transaction generated by the validator)

ValidatorOpParameters DG

Table 118.- Topic path for ValidatorOpParameters DG

<root>/operation/<provider_guid>/validator/<OPI_version>/data/op_parameters

Table 119.- ValidatorOpParameters DG message structure

ValidatorOpParameters

+Structure

Description

<Common fields for every JSON data message>

validatorOpStatus

Object

Current operational state of the validator application

opStatus

1:1

String (Enum)

Operating mode. See the following list of possible enums: ready | busy | locked | outOfOrder | maintenance | other

additionalInfo

0:1

String

Optional free-text

nlInfo

1:1

Object

Network-location context shared by the validator

servicePatternRef

0:1

String

Identifier of the Service Pattern

journeyPatternRef

0:1

String

Journey Pattern reference

vehicleJourneyRef

0:1

String

Reference to the specific service journey or dead run.

routeRef

0:1

String

Route identifier

lineRef

1:1

String

Identifier of the operational Line that the vehicle follows, as defined by the PTA.

directionRef

0:1

String (Enum)

Relative direction the vehicle is running along the line:

in = inbound | out = outbound | cw = clockwise | ccw = counterclockwise | other

externalLineRef

0:1

String

Alternative Line identifier assigned by a different organization, in any.

lastStopPointRef

0:1

String

Reference of the last passed stop

nextStopPointRef

0:1

String

Reference of the next scheduled stop

driver

1:1

Object

Current driver and duty context

driverRef

1:1

String

Driver identifier reference

driverName

0:1

String

Driver Name

driverDuty

0:1

String

Duty identifier reference (work to be performed by a driver on a particular day type)

locationInVehicle

1:1

Object

Validator shared info about its location in the vehicle

equipmentGuid

1:1

String

ODEx equipment item GUID

valPosition

1:1

Integer

(1-8) 1= front door

validationMode

1:1

String

Indicates whether the validator is configured for validations on boarding (entry) or on alighting (exit): boarding | alighting | both | onlyConsult

pmr

1:1

Boolean

true if configured as PMR entry point; otherwise, false

fareZoneInfo

0:*

Object

List of accepted tarrif and fare zones. Each entry ties a Fare Authority/Organisation to a Tariff/Fare Zone.

fareAuthorityId

1:1

String

Identifier of the fare authority/organisation that defines the zone.

fareZoneId

1:1

String

Identifier of the Tariff/Fare Zone.

farezoneTypeId

1:1

String

Index at the fare zone type

hotListsVersion

1:*

Object

List type and version of hot lists applied

type

1:1

String

Type of hot list applied (simple, ranged…)

version

1:1

String

Version of defined hot list.

ptaRef

1:1

String

Identifier of the Public Transport Authority responsible for the services run by the vehicle.

ptoRef

1:1

String

Identifier of the Public Transport Operator.

vehicleId

1:1

String

ID of the vehicle unit. VIN for bus.

samSerialNumber

1:1

String

SAM serial number installed

Validator OPI commands

Table 120.- Validator OPI commands and fields

MQTT topic under …/validator/<OPI_version>/cmd

Fields

+Structure

Description

<Common fields for every JSON command message>

/shutdown

reason

0:1

String

Switch off the validator app. Optional free-text reason

/reset

reason

0:1

String

Reset the validator app. With optional free-text reason.

/set_validation_mode

validationMode

1:1

String

Validation Mode (only entrance validation, consult…)

reason

0:1

String

Free-reason text

/lock_validation

durationSec

0:1

Integer

Lock duration time in seconds

reason

0:1

String

inspecction |driverOut …

/set_maintenance

active

1:1

Boolean

Enter/exit maintenance mode (true / false)

/set_demo

active

1:1

Boolean

Enter/exit demo mode (true / false) used for training

/request_config

  • -
  • -
  • -

Provider will return all config parameters in the details field structure (see Command Responses). Configuration parameters for the validator OPI and their data type must be specified (volumeLevel, screenBrightLevel, language…)

Structure of details field in response will be:

responseContent 0:*ObjectConfig parameters

<configId1>-anyType1Each parameter value

<configId2>-anyType2

…

/set_config

volumeLevel

0:1

anyType1

Integer

screenBrightLevel

0:1

anyType2

Integer

…

OPI Ticket Vending

Description

Table 121.- OPI Ticket Vending summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

ticket_vending

TicketVendingTransaction

  • Sale transaction data
  • Trigger: after each transaction

TicketVendingOpParameters

  • Operating parameters for tvm.
  • Trigger: at startup and on discrete change

DriverCashSettlement

  • Sale transaction data
  • Trigger: after end of shift or handover. Check employe_log OPI
  • shutdown
  • reset
  • lock_session
  • unlock_session
  • set_maintenance
  • set_demo
  • request_config
  • set_config

OPI version

v1.0

TicketVendingTransaction DG

Table 122.- Topic path for TicketVendingTransaction DG

<root>/operation/<provider_guid>/ticket_vending/<OPI_version>/data/transactions

Table 123.- TicketVendingTransaction DG message structure

TicketVendingTransaction

+Structure

Description

<Common fields for every JSON data message>

saleDate

1:1

DateTime

Timestamp of the sale date.

ticketSerialNumber

1:1

String

Unique serial of the physical/virtual medium presented

fareProductCode

1:1

Integer

Code of the Fare Product consumed/checked

fareOwner

1:1

String

Identifier of the fare contract owner

customerProfile

1:1

String

Passenger profile applied (adult, student, senior…)

paymentType

1:1

String

cash | bankcard |

tariffAmount

1:1

Integer

Indicates the fare paid by the customer for the transaction (cents)

saleLocation

1:1

Object

Context of where the sale took place

equipmentGuid

1:1

String

ODEx equipment item GUID where the sale took place.

vehicleRef

1:1

String

ID of the vehicle unit. VIN for bus.

stopPointRef

0:1

String

Stop Point reference attributed to the event

lineRef

1:1

String

Identifier of the operational Line that the vehicle follows, as defined by the PTA.

directionRef

0:1

String (Enum)

Relative direction the vehicle is running along the line:

in = inbound | out = outbound | cw = clockwise | ccw = counterclockwise | other

servicePatternRef

0:1

String

Identifier of the Service Pattern

fareZoneId

0:1

String

Tariff/Fare Zone resolved

blockRef

0:1

String

Reference (ID) of Block assigned

courseOfJourneyRef

0:1

String

Reference (ID) of Course of Journey assigned

serviceJourneyRef

0:1

String

Reference (ID) of Service Journey assigned

driverRef

1:1

String

Driver identifier linked to the operating session

ptoRef

1:1

String

Public Transport Operator identifier reference.

samSerialNumber

1:1

String

SAM serial number installed

saleCount

1:1

Integer

Operation counter.

saleResultCode

1:1

Integer

Project-specific sale result code. Consumers must interpret it using the project sale result code list.

TicketVendingOpParameters DG

Table 124.- Topic path for TicketVendingOpParameters DG

<root>/operation/<provider_guid>/ticket_vending/<OPI_version>/data/op_parameters

Table 125.- TicketVendingOpParameters DG message structure

TicketVendingOpParameters

+Structure

Description

<Common fields for every JSON data message>

tvmOpMode

1:1

Object

Report of the operating mode and if manual or automatic

manualMode

1:1

Boolean

true if manual, false if automatic (farebox)

operatingMode

1:1

String (Enum)

ready | busy | locked | outOfOrder | maintenance | other

additionalInfo

0:1

String

Optional free-text

nlInfo

1:1

Object

Network location specific information shared.

servicePatternRef

0:1

String

Identifier of the Service Pattern

journeyPatternRef

0:1

String

Journey Pattern reference

vehicleJourneyRef

0:1

String

Reference to the specific service journey or dead run.

routeRef

0:1

String

Route identifier

lineRef

1:1

String

Identifier of the operational Line that the vehicle follows, as defined by the PTA.

directionRef

0:1

String

Relative direction the vehicle is running along the line (e.g. inbound, outbound, clockwise)

externalLineRef

0:1

String

Alternative Line identifier assigned by a different organization, in any.

lastStopPointRef

0:1

String

Reference of the last passed stop

nextStopPointRef

0:1

String

Reference of the next scheduled stop

driver

1:1

Object

Current driver

driverRef

1:1

String

Driver identifier reference

driverName

0:1

String

Driver Name

fareZoneInfo

0:*

Object

List of accepted tarrif and fare zones. Each entry ties a Fare Authority/Organisation to a Tariff/Fare Zone.

fareAuthorityId

1:1

String

Identifier of the fare authority/organisation that defines the zone.

fareZoneId

1:1

String

Identifier of the Tariff/Fare Zone.

farezoneTypeId

1:1

String

Index at the fare zone type

fareMatrixVersion

0:1

String

Version of Fare Matrix.

ptaRef

1:1

String

Identifier of the Public Transport Authority responsible for the services run by the vehicle

ptoRef

1:1

String

Identifier of the Public Transport Operator.

equipmentGuid

1:1

String

ODEx equipment item GUID.

vehicleRef

1:1

String

ID of the vehicle unit. VIN for bus.

DriverCashSettlement DG

Table 126.- Topic path for DriverCashSettlement DG

<root>/operation/<provider_guid>/ticket_vending/<OPI_version>/data/driver_cash_settlement

Table 127.- DriverCashSettlement DG message structure

DriverCashSettlement

+Structure

Description

<Common fields for every JSON data message>

sessionId

1:1

String

Sequential cash settlement identifier. New session id on new driver session.

sessionStartTime

1:1

DateTime

Start of session Timestamp.

sessionEndTime

1:1

DateTime

End of session Timestamp.

saleLocation

1:1

Object

Location context of the service during the settlement period.

vehicleRef

0:1

String

ID of the vehicle unit. VIN for bus.

equipmentGuid

0:1

String

ODEx equipment item GUID where the validation took place.

lineRef

1:*

String

Identifier of the operational Line that the vehicle followed

directionRef

0:1

String (Enum)

Relative direction the vehicle is running along the line:

in = inbound | out = outbound | cw = clockwise | ccw = counterclockwise | other

servicePatternRef

0:1

String

Identifier of the Service Pattern

fareOwner

0:1

String

Identifier of the fare contract owner

blockRef

0:1

String

Reference (ID) of Block assigned

courseOfJourneyRef

0:1

String

Reference (ID) of Course of Journey assigned

serviceJourneyRef

0:1

String

Reference (ID) of Service Journey assigned

salesByLine

1:*

Object

lineRef

1:1

String

Identifier of the operational Line that the vehicle followed

salesByFareProduct

0:*

Object

Sales by Fare Product

fareOwner

0:1

String

Identifier of the fare contract owner

fareProductCode

1:1

Integer

Fare Product Reference

quantity

1:1

Integer

Count of sales for the corresponding Fare Product

unitPrice

1:1

Integer

Tariff amount per sale for the corresponding Fare Product. By default, in cents.

totalAmountByFareProduct

1:1

Integer

Total amount liquidated for the corresponding Fare Product

validationsByLine

1:*

Object

lineRef

1:*

String

Identifier of the operational Line that the vehicle follows

validationsByFareProduct

0:*

Object

Count of validations for the corresponding Fare Product

fareOwner

0:1

String

Identifier of the fare contract owner

fareProductCode

1:1

Integer

Fare Product Reference

validationCount

1:1

Integer

Count of validations for the corresponding Fare Product

settlementTotalAmount

1:1

Integer

Total amount liquidated in cents

Ticket Vending OPI commands

Table 128.- Ticket Vending OPI commands and fields

MQTT topic under …/ticket_vending/<OPI_version>/cmd

Fields

+Structure

Description

<Common fields for every JSON command message>

/shutdown

reason

0:1

String

Switch off the ticket vending application and Optional free-text indicating the reason,

/reset

reason

0:1

String

Reset the ticket vending application and optional free-text indicating the reason.

/lock_session

reason

0:1

String

Disable ticket vending and optional free-text indicating the reason.

/unlock_session

  • -

0:1

String

Unlock session. Enable ticket vending

/set_maintenance

active

1:1

Boolean

Enter/exit maintenance mode (true / false)

/set_demo

active

1:1

Boolean

Enter/exit demo mode (true / false)

/request_config

  • -
  • -
  • -

Provider will return all config parameters in the details field structure (see Command Responses). Configuration parameters for the ticket_vending OPI and their data type must be specified (volumeLevel, screenBrightLevel, language, driverScreenContrast, passengerScreenContrast…)

Structure of details field in response will be:

responseContent 0:*ObjectConfig parameters

<configId1>-anyType1Each parameter value

<configId2>-anyType2

…

/set_config

volumeLevel

0:1

anyType1

Public configuration key, with its value to set.

screenBrightLevel

0:1

anyType2

Public configuration key, with its value to se.

…

VEHICLE SERVICE MONITORING OPIs

OPI Network Location

Description

Table 129.- OPI Network Location summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

network_location

NetworkLocationAll

  • A vehicle can be at any of the following types of network locations (See #Anexo A. Understanding Network location):
  • On service
  • On a DeadRun (to start service, to Depot after finishing service, to change Line or making a manouver)
  • At Depot (at specific predefined areas within a depot: parking, washing, fueling, charging, workshop)
  • Depending on the type of network location (field runState), three different objects can be published in the JSON message.
  • Triggers:
  • at startup and on discrete change
  • While On Service:
  • X m before arrival to a stop
  • At arrival to a stop
  • At departure from a stop
  • While moving between stops, NL should be updated every 10m or 3s
  • At the start of a deviation
  • At the end of a deviation
  • When out of journeyPattern is detected
  • When return to journeyPattern is detected
  • none

OPI version

v1.0

NetworkLocationAll DG

Table 130.- Topic path for NetworkLocationAll DG

<root>/operation/<provider_guid>/network_location/<OPI_version>/data/network_location_all

Table 131.- NetworkLocationAll DG message structure

NetworkLocationAll

+Structure

Description

<Common fields for every JSON data message>

runState

1:1

String (Enum)

Defines the type of network location the vehicle is in: nlOnService | nlOnDeadRun | nlAtDepot

nlOnService

0:1

Object

Mandatory only when runState = "nlOnService"

lineRef

1:1

String

Identifier of the operational Line that the vehicle follows

servicePatternRef

0:1

String

Identifier of the Service Pattern

directionRef

0:1

String (Enum)

Relative direction the vehicle is running along the line:

in = inbound| out = outbound |cw = clockwise | ccw = counterclockwise | other

distanceFromStart

0:1

Integer

Distance from the start of the Journey Pattern to this point, measured in metres along the route path.

networkLocationStatus

1:1

String (Enum)

onRoute | onDeviation | outOfRoute | unknown

positionReferencedToStops

1:1

Object

Information about position referenced to Stop Points

stopRelativePosition

1:1

String

AfterPreviousStop | BetweenStops | BeforeNextStop | AtNextStop (if vehicle is AtNextStop => NextStop=CurrentStop)

previousStop

1:1

Object

Last stop the vehicle has passed through (whether it stopped or not)

stopPointRef

1:1

String

Identifier of StopPoint.

stopPointName

0:1

String

Name of StopPoint.

stopPointIndex

1:1

Integer

Order of the StopPoint in the ServicePattern (1= first stop of the Service Pattern)

isLastStop

1:1

Boolean

true (if the StopPoint is the last stop of the ServicePattern) | false otherwise

nextStop

1:1

Object

Information about next stop

stopPointRef

1:1

String

Identifier of StopPoint.

stopPointName

0:1

String

Name of StopPoint.

stopPointIndex

0:1

Integer

Order of the StopPoint in the ServicePattern (1 = first stop of the Service Pattern)

isLastStop

1:1

Boolean

true (if the StopPoint is the last stop of the ServicePattern) | false otherwise

linkDistance

1:1

Integer

The total distance in metres between the current stop and the next stop according to the planned pattern.

percentageTraveled

1:1

Integer

Percentage along links that vehicle has travelled.

serviceInfo

0:1

Object

blockRef

0:1

String

Reference (identifier) of the Block assigned

courseOfJourneyRef

0:1

String

Course of Journey assigned

serviceJourneyRef

0:1

String

Current Service Journey (In case it is at terminus, this will be the next Service Journey)

activationPoint

0:1

Object

A POINT where a control process is activated when a vehicle passes.

nextActivationPointRef

0:1

String

Reference (identifier) to the next activation point, in any

nextActivationPointType

01

String

E.g. Traffic signal priority request, location beacon point

nextActivationPointDistance

01

Integer

Distance in meters to the next activation point

previousActivationPointRef

0:1

String

Reference (ID) to the previous activation point, if any

previousActivationPointType

01

String

E.g. Traffic signal priority request

previousActivationPointDistance

01

Integer

Distance in meters to the previous activation point, in any

area

0:1

areaRef

1:1

String

E.g. to identify an interchange station

areaName

0:1

String

E.g. name of interchange station

areaRelativePosition

1:1

String (Enum)

entering | leaving | inside

subAreaRef

0:1

String

E.g. part of the interchange station where the bus is

subAreaName

0:1

String

E.g. entrance ramp, park area, level 1 quay…

subAreaRelativePosition

0:1

String (Enum)

entering | leaving | inside

quayRef

0:1

String

In case the bus is arriving, leaving or in a quay

quayName

0:1

String

In case the bus is arriving, leaving or in a quay

quayRelativePosition

0:1

String (Enum)

entering | leaving | inside

nlOnDeadRun

0:1

Object

Present only when runState = "nlOnDeadRun"

deadRunPatternRef

1:1

String

Dead Run reference (identifier)

deadRunType

1:1

String (Enum)

depotToLine | lineToDepot | lineToLine | maneuver | unknown

targetLineRef

1:1

String

Line the vehicle is heading to

targetDepotRef

1:1

String

Depot the vehicle is heading to

positionReferencedToPoints

1:1

Object

DeadRunPattern points, at least initial and end points

previousPointRef

1:1

String

Reference of the previous point in the DeadRun Pattern

nextPointRef

1:1

String

Reference of the next point to be reached within the DeadRun Pattern

subAreaRef

0:1

String

Reference to a sub-area related to the DeadRun segment

segmentDistance

1:1

Integer

Planned distance in meters between previousPointRef and nextPointRef

segmentTraveled

1:1

Integer

Percentage of the segment already travelled by the vehicle (%)

additionalInfo

0:1

String

Optional free-text information about the dead run.

nlAtDepot

0:1

Object

Present only when runState = "nlAtDepot"

vehicleServiceStatus

1:1

String (Enum)

startingService | finishingService | noService

depotRef

1:1

String

Reference identifier of the depot where the vehicle is currently located

depotName

0:1

String

Human-readable name of the depot

area

0:1

Object

areaRef

1:1

String

areaName

0:1

String

subAreaRef

0:1

String

functionalType

0:1

String (Enum)

parking | workshop | washing | fueling | charging | other

areaRelativePosition

0:1

String (Enum)

entering | leaving | inside

parkingBayRef

0:1

String

OPI Employee Log

Description

Table 132.- OPI Employee Log summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

employee_log

EmployeeLogAll

  • Informative data: driver session start or re-login if TVM was blocked, driver session end.
  • Trigger: publish when the login succeeds or the logout completes on the HMI.
  • none

OPI version

v1.0

EmployeeLogAll DG

Table 133.- Topic path for EmployeeLogAll DG

<root>/operation/<provider_guid>/employee_log/<OPI_version>/data/ employee_log_all

Table 134.- EmployeeLogAll DG message structure

EmployeeLogAll

+Structure

Description

<Common fields for every JSON data message>

logType

1:1

String (Enum)

Defines the type of event related to the employee log.

driverLogin | driverLogout | employeeLogin | employeeLogout | other

driverLogin

0:1

Object

Present only when logType = "driverLogin"

driverRef

1:1

String

Driver identifier reference.

driverName

0:1

String

Display name (if available).

authMethod

1:1

String (Enum)

Authentification method used such as pin (numeric passcode typed on HMI), rfid (driver card), barcode (QR/1D code), remote (backoffice). See the following possible enums: pin | rfid | barcode | remote

sessionId

0:1

String

Created at login. Identifier of the open session. If there was a previous lock and the employee just re-entered the pin, this session will already be active.

dutyRef

String

Duty identifier reference (work to be performed by a driver on a particular day type)

loginType

1:1

String (Enum)

See the following possible enums: startOfShift | unlock | handover | other (e.g. provider/app reset)

driverLogout

0:1

Object

Present only when logType = "driverLogin"

driverRef

1:1

String

Driver identifier reference.

sessionId

1:1

String

Session being closed.

source

1:1

String (Enum)

Origin of the logout action. See the following possible enums: local | remote

reason

0:1

String (Enum)

Reason of logout. See the following possible enums: endOfShift | handover | lock

printCashSettlement

0:1

Boolean

When it applies, set as “true” (e.g. reason = endOfShift or handover). Otherwise, “false”.

employeeLogin

0:1

Object

Present only when logType = "employeeLogin"

employeeRef

1:1

String

Employee identifier reference.

employeeName

0:1

String

Display name (if available)

authMethod

1:1

String (Enum)

Authentification method used such as pin (numeric passcode typed on HMI), rfid (driver card), barcode (QR/1D code), remote (backoffice). See the following possible enums: pin | rfid | barcode | remote

sessionId

0:1

String

Created at login. Identifier of the open session. If there was a previous lock and the employee just re-entered the pin, this session will already be active.

employeeLogout

0:1

Object

Present only when logType = "employeeLogin"

employeeRef

1:1

String

Employee identifier reference.

sessionId

1:1

String

Session being closed.

OPI Journey Monitoring

Description

Table 135.- OPI Journey Monitoring summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

journey_monitoring

The JourneyMonitoring DataGroup can contain one or many Vehicle Journeys, including Service Journeys and Dead Runs. The same DataGroup is published in all 3 topics with different vehicleJourneyReportType:

CurrentVehicleJourneyAll

  • All vehicle journeys in this DataGroup will have VehicleJourneyReportType = Current except for the Next.
  • Trigger: at startup and on discrete change.

EstimatedVehicleJourneysAll

  • All vehicle journeys in this DataGroup will have VehicleJourneyReportType = Next or EstimatedAfterNext.
  • Trigger: at startup and on discrete change.

ObservedVehicleJourneysAll

  • All vehicle journeys in this DataGroup will have VehicleJourneyReportType = Observed
  • Trigger: at startup and on discrete change.
  • none

OPI version

v1.0

CurrentVehicleJourneyAll, EstimatedVehicleJourneysAll, ObservedVehicleJourneysAll DGs

Table 136.- Topic path for CurrentVehicleJourney, EstimatedVehicleJourneys and ObservedVehicleJourneys DGs

<root>/operation/<provider_guid>/journey_monitoring/<OPI_version>/data/current_vehicle_journey_all

<root>/operation/<provider_guid>/journey_monitoring/<OPI_version>/data/estimated_vehicle_journeys_all

<root>/operation/<provider_guid>/journey_monitoring/<OPI_version>/data/observed_vehicle_journeys_all

The CurrentVehicleJourneyAll, EstimatedVehicleJourneysAll and ObservedVehicleJourneysAll DGs use a common VehicleJourneyAll DataGroup with different vehicleJourneyReportType value, as follows:

Table 137 .- Common VehicleJourney structure for CurrentVehicleJourneyAll, EstimatedVehicleJourneysAll and ObservedVehicleJourneysAll DGs

VehicleJourneyAll

+Structure

Description

<Common fields for every JSON data message>

vehicleJourneys

2:*

Object

List of vehicle journeys

vehicleJourneyReportType

1:1

String (Enum)

current | next | estimatedAfterNext | observed

blockRef

1:1

String

Identifier of the Block

vehicleJourneyOrderInBlock

0:1

Integer

Order number of this journey within the assigned block.

vehicleJourneyPositionInBlock

1:1

String (Enum)

first | intermediate | last

vehicleJourneyType

1:1

String

serviceJourney | deadRun

vehicleJourneyDelay

0:1

Integer

Delay to a precision in seconds. Early times are shown as negative values.

vehicleJourneyProgressStatus

0:1

String (Enum)

onTime | early | late

occupancyStatus

0:1

String (Enum)

empty | low | noSeats | high | full (no passengers allowed)

vehicleEquipment

0:1

String

Information about relevant onboard equipment state during the journey (e.g. ramp…)

silentAlarmRequestStatus

0:1

String (Enum)

noAlarm | active

serviceJourney

1:1

Object

1:1 if vehicleJourneyType = serviceJourney, 0:0 Otherwise

serviceJourneyRef

1:1

String

Identifier of the Service Journey

courseOfJourneyRef

0:1

String

Identifier of the Course of Journey

serviceJourneyOrderInCourseOfJourney

0:1

Integer

Order of this Service Journey within its CourseOfJourney

serviceJourneyPositionInCourseOfJourney

0:1

Integer

first | intermediate | last

lineRef

1:1

String

Identifier of the operational Line that the vehicle follows

routeRef

0:1

String

Route identifier

servicePatternRef

1:1

String

Identifier of the Service Pattern

directionRef

1:1

String (Enum)

Relative direction the vehicle is running along the line:

in = inbound | out = outbound | cw = clockwise | ccw = counterclockwise | other

serviceJourneyStartTime

1:1

DateTime

It will be Observed if vehicleJourneyReportType = current or observed

It will be Estimated if vehicleJourneyReportType = next or estimatedAfterNext

serviceJourneyTargetStartTime

0:1

DateTime

It will be Target valid when observed if vehicleJourneyReportType = current or observed

It will be current Target if vehicleJourneyReportType = next or estimatedAfterNext

serviceJourneyEndTime

0:1

Datetime

It will be Observed if vehicleJourneyReportType = observed

It will be Estimated if vehicleJourneyReportType = current, next or estimatedAfterNext

serviceJourneyTargetEndTime

0:1

DateTime

It will be Target valid when observed if vehicleJourneyReportType = observed

It will be current Target if vehicleJourneyReportType = current, next or estimatedAfterNext

serviceJourneyCharacteristics

1:1

Object

serviceJourneyBase

0:1

String (Enum)

Indicates if this journey is:base | variant

expressServiceJourney

0:1

Boolean

true | false

serviceJourneyControlActions

1:1

Boolean

true (if it is affected by any control action) | false (if none)

serviceJourneyTimetableControl

0:1

String (Enum)

timeBased | frequencyBased

onDemandServiceJourney

1:1

Boolean

true | false

serviceFeatureRef

0:1

String

Reference to a Service Feature classification (see SIRI: Airport line, School Service …)

vehicleFeatureRef

0:1

String

Reference to a Vehicle Feature (see SIRI: Accessible..)

controlActions

0:*

Object

Control actions affecting the Service Journey.

1:* if serviceJourneyControlActions = true, 0:* Otherwise

isExtraJourney

0:1

Boolean

true | false

cancelled

0:1

Boolean

If cancelled

partialCancellation

0:1

Boolean

If there will be estimated calls cancelled

changeOfTiming

0:1

Boolean

If calls will have times differing from the planned times

changeOfJourneyPattern

0:1

Boolean

If calls will happen at stops differing from the planned ones

plannedJourneyPatternRef

0:1

String

Planned Journey Pattern Reference

targetJourneyPatternRef

0:1

String

New Journey Pattern Ref affected by the control action

respacing

0:1

Boolean

If vehicle affected by a respacing control action

resorption

0:1

Boolean

If vehicle affected by a resorption control action

calls

2:*

Object

At least current and next calls

callReportType

1:1

String (Enum)

current (if vehicle is at stop)| next | estimatedAfterNext | observedPrevious | observedBeforePrevious

stopPointRef

1:1

String

Identifier of StopPoint

stopIndexInServiceJourney

0:1

String

StopPoint order in the ServicePattern (1 = first stop of the Service Pattern

stopPositionInServiceJourney

1:1

String (Enum)

first | intermediate | last

callArrivalTime

1:1

DateTime

It will be Observed if callReportType = current,observedPrevious or observedBeforePrevious
It will be Estimated if callReportType = next or estimatedAfterNext

callTargetArrivalTime

0:1

DateTime

It will be the Target valid when Observed if callReportType = current,observedPrevious or observedBeforePrevious

It will be the current Target if callReportType = next or estimatedAfterNext

callDatedArrivalTime

0:1

DateTime

callDepartureTime

1:1

DateTime

It will be Observed if callReportType = observedPrevious or observedBeforePrevious

It will be Estimated if callReportType = current, next or estimatedAfterNext

callTargetDepartureTime

0:1

DateTime

It will be the Target valid when Observed if callReportType = observedPrevious or observedBeforePrevious

It will be the current Target if CallReportType = current, next or estimatedAfterNext

callDatedDepartureTime

0:1

DateTime

callCharacteristics

1:1

Object

isTimingPoint

1:1

Boolean

true | false

onDemandCall

1:1

Boolean

true | false

boardingAlightingRestrictions

0:1

String

noRestrictions | onlyBoarding |

callControlActions

1:1

String (Enum)

extraCall | canceledCall | waitAtCall (departure lag)

noCall

1:1

Boolean

Only for Observed Calls, indicates whether the bus stopped at the stop or not

wheelChairPositionFree

0:1

Boolean

true | false

stopRequest

0:1

Boolean

true | false

activationPasses

0:*

Object

Pasos por puntos de activación, actual, realizados y previstos

activationPassReportType

1:1

String (Enum)

current (vehicle arrival at activation point) | estimated | observed

activationPointRef

1:1

String

Reference to activation point

activationPointType

1:1

String

Activation point type (e.g.)

activationInformation

0:1

String

activationPassTime

0:1

DateTime

activationCharacteristics

0:1

Object

isStartOfActivationLink

1:1

Boolean

true | false

isEndOfActivationLink

1:1

Boolean

true | false

activationIsActive

1:1

Boolean

true | false

deadRun

0:1

Object

1:1 if vehicleJourneyType = deadRun, 0:0 Otherwise

deadRunRef

0:1

String

deadRunPatternRef

0:1

String

deadRunStartTime

0:1

DateTime

It will be Observed if vehicleJourneyReportType = current or Observed

It will be Estimated if vehicleJourneyReportType = next or estimatedAfterNext

deadRunTargetStartTime

0:1

DateTime

It will be the Target valid when observed if vehicleJourneyReportType = current or observed

It will be current Target if vehicleJourneyReportType = next or estimatedAfterNext

deadRunEndTime

0:1

DateTime

It will be Observed if vehicleJourneyReportType = observed

It will be Estimated if vehicleJourneyReportType = current, next or estimatedAfterNext

deadRunTargetEndTime

1:1

DateTime

It will be Target valid when observed if vehicleJourneyReportType = observed

It will be current Target if vehicleJourneyReportType = current, next or estimatedAfterNext

deadRunTypeRef

1:1

String (Enum)

fromDepotToLine | fromLineToDepot | fromLineToLine | other

passingTimes

2:*

Object

At least current and next

passingTimeReportType

1:1

String (Enum)

current (vehicle is at point) | next | estimatedAfterNext | observedPrevious | observedBeforePrevious

pointRef

1:1

String

pointType

1:1

String

pointOrderInDeadRun

0:1

Integer

pointPositionInDeadRun

1:1

String (Enum)

first | intermediate | last

pointPassingTime

0:1

DateTime

pointTargetPassingTime

0:1

DateTime

OPI Vehicle Assignment

Description

Table 138.- OPI Vehicle Assignment summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

vehicle_assignment

VehicleAssignmentAll

  • Vehicle assignment and unassignment to a Block, Course of Journey or Service Journey
  • Trigger: at startup and on discrete change
  • none

OPI version

v1.0

VehicleAssignmentAll DG

Table 139.- Topic path for VehicleAssignmentAll DG

<root>/operation/<provider_guid>/vehicle_assignment/<OPI_version>/data/vehicle_assignment_all

Table 140.- VehicleAssignmentAll DG message structure

VehicleAssignmentAll

+Structure

Description

<Common fields for every JSON data message>

vehicleAssignmentType

1:1

String (Enum)

vehicleServiceLogOn | vehicleServiceLogOff

blockRef

0:1

String

Reference (ID) of Block assigned

courseOfJourneyRef

0:1

String

Reference (ID) of Course of Journey assigned

serviceJourneyRef

0:1

String

Reference (ID) of Service Journey assigned

LineRef

1:1

String

Identifier of the operational Line that the vehicle follows

servicePatternRef

0:1

String

Service Pattern reference. At least one of servicePatternRef, routeRef or directionRef must be published.

routeRef

0:1

String

Route identifier. At least one of servicePatternRef, routeRef or directionRef must be published.

directionRef

0:1

String (Enum)

Relative direction the vehicle is running along the line:

in = inbound | out = outbound | cw = clockwise | ccw = counterclockwise | other

At least one of servicePatternRef, routeRef or directionRef must be published.

vehicleAssignmentReason

0:1

String (Enum)

  • service = start or end of a planned service
  • reinforcement = start or end of an unplanned reinforcement
  • changeOfVehicle = start a service substituting a vehicle
  • vehicleBreakDown = end service due to vehicle breakdown
  • cancelation = end of service due to Block or Course of Journey cancellation

OPI Driver Messages

Description

Table 141.- OPI Driver Messages summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

driver_messages

DriverMessagesAll

  • Message generated by the driver
  • Trigger: each time a driver sends a message.
  • message_to_driver

OPI version

v1.0

DriverMessagesAll DG

Table 142.- Topic path for DriverMessagesAll DG

<root>/operation/<provider_guid>/driver_messages/<OPI_version>/data/driver_messages_all

Table 143.- DriverMessagesAll DG message structure

DriverMessagesAll

+Structure

Description

<Common fields for every JSON data message>

driverRef

0:1

String

Driver identifier reference.

driverMessageRef

1:1

Integer

Message identifier

driverMessageText

1:1

String

Text of message

driverMessageType

0:1

String (Enum)

operational | safety | information | alert | incident | instruction

severity

1:1

String (Enum)

info | warning | critical | other

message_to_driver command

Table 144.- Topic path for message_to_driver command

<root>/operation/<provider_guid>/driver_messages/<OPI_version>/cmd/message_to_driver/<sender_GUID>

Table 145.- message_to_driver command message structure

message_to_driver

+Structure

Description

<Common fields for every JSON cmd message>

messageToDriverRef

1:1

Integer

Message identifier

messageToDriverText

1:1

String

Text of message

messageToDriverType

0:1

String (Enum)

operational | safety | information | alert | incident | instruction

severity

1:1

String (Enum)

info | warning | critical | other

OPI Pre-Service Check

Description

Table 141.- OPI Pre-Service Check summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

pre_service_check

PreServiceCheekAll

  • Results of the driver’s pre-service vehicle check
  • Trigger: each time a driver sends a message.

OPI version

v1.0

PreServiceChcek DG

Table 142.- Topic path for PreServiceCheckAll DG

<root>/operation/<provider_guid>/pre_service_check/<OPI_version>/data/pre_service_check_all

Table 143.- PreServiceCheckAll DG message structure

PreServiceChcekAll

+Structure

Description

<Common fields for every JSON data message>

passengersArea

0:1

Object

passengerAreaCleanliness

0:1

String (Enum)

ok | nok | notChecked

Passenger area reasonably clean (floor, no garbage, no spills).

doorsOperational

0:1

String (Enum)

ok | nok | notChecked

ok = All doors OK

nok = Any door not OK

Passenger doors open and close correctly. Aspects to check: correct opening/closing, no obstruction, door leaves not damaged.

rampOperational

0:1

String (Enum)

ok | nok | notChecked

ok = All ramps OK

nok = Any ramp not OK

PRM ramp operational (if applicable). Aspects to check: ramp deploys correctly, no visible damage, manual operation possible if required.

passengerAreaCondition

0:1

String (Enum)

ok | nok | notChecked

Seats, handrails and interior elements without visible damage.

passengerAreaVandalism

0:1

String (Enum)

ok | nok | notChecked

No graffiti or vandalism visible in passenger area.

itsStatus

0:1

Object

ticketVendingOperational

0:1

String (Enum)

ok | nok | notChecked

Ticketing vending machine operating correctly.

ticketValidatorOperational

0:1

String (Enum)

ok | nok | notChecked

Validator operating correctly.

avmsOperational

0:1

String (Enum)

ok | nok | notChecked

Driver console / SAE system operating correctly.

connectivityOperational

0:1

String (Enum)

ok | nok | notChecked

Vehicle router or network connectivity operational.

passengerInfoDisplaysOperational

0:1

String (Enum)

ok | nok | notChecked

Passenger information displays and audio announcements working.

cctvOperational

0:1

String (Enum)

ok | nok | notChecked

Onboard CCTV system powered and recording.

vehicleSafety

0:1

Object

lightsOperational

0:1

String (Enum)

ok | nok | notChecked

Exterior lights functioning (headlights, brake lights, indicators).

mirrorsCondition

0:1

String (Enum)

ok | nok | notChecked

Exterior mirrors present, correctly positioned and not damaged.

tyresCondition

0:1

String (Enum)

ok | nok | notChecked

No visible tyre damage or severe wear.

safetyEquipment

0:1

Object

fireExtinguisherPresent

0:1

String (Enum)

ok | nok | notChecked

Fire extinguisher present and correctly secured.

firstAidKitPresent

0:1

String (Enum)

ok | nok | notChecked

First aid kit present.

emergencyHammersPresent

0:1

String (Enum)

ok | nok | notChecked

Emergency window hammers available.

emergencySignagePresent

0:1

String (Enum)

ok | nok | notChecked

Emergency signage and instructions present and visible.

vehicleExternal

0:1

Object

vehicleBodyClean

0:1

String (Enum)

ok | nok | notChecked

Bodywork reasonably clean.

vehicleBodyDamage

0:1

String (Enum)

ok | nok | notChecked

No significant body damage visible.

exteriorWindowsCondition

0:1

String (Enum)

ok | nok | notChecked

Exterior windows and windshield clean and without major damage.

dashboardWarnings

0:1

String (Enum)

ok | nok | notChecked

No critical warning indicators active on the dashboard.

leaksDetected

0:1

String (Enum)

ok | nok | notChecked

No visible leaks of oil, coolant or other fluids.

exteriorLightsCondition

0:1

String (Enum)

ok | nok | notChecked

Exterior lights not broken or missing (headlights, tail lights, indicators).

mirrorsExternalCondition

0:1

String (Enum)

ok | nok | notChecked

Exterior mirrors intact and correctly mounted.

vehicleMarkingsVisible

0:1

String (Enum)

ok | nok | notChecked

Fleet number, identification markings and required labels clearly visible.

leaksUnderVehicle

0:1

String (Enum)

ok | nok | notChecked

No visible fluid leaks under the parked vehicle.

generalExteriorAppearance

0:1

String (Enum)

ok | nok | notChecked

No graffiti, vandalism or loose exterior parts.

driverObservations

0:1

String

Free text field for driver comments or reported issues.

OCCUPANCY OPIs

OPI APC Sensor

Description

Table 146.- OPI APC Sensor summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

apc_sensor

ApcSensorAll

  • Accumulated number of passengers boarding and alighting at one or more doors since startup
  • Trigger: after each door closing if the Provider has this information and periodically, every T=2s if the information changes (if there have been new boardings of alightings in the last T seconds)
  • enable_counting
  • reset_counters

OPI version

v1.0

ApcSensorAll DG

Table 147.- Topic path for ApcSensorAll DG

<root>/operation/<provider_guid>/apc_sensor/<OPI_version>/data/apc_sensor_all

Table 148.- ApcSensorAll DG message structure

ApcSensorAll

+Structure

Description

<Common fields for every JSON data message>

doorSensor

1:*

Object

Usually * will be 1 (each sensor at each door publishes data)

doorId

1:1

Integer

Identifer of the door associated (e.g., 1 = front, 2 = middle, 3 = rear). Must match the door indexing used in the vehicle

doorCountingQuality

0:1

String

Normal | Defect

typeOfElementCounted

1:*

Object

Repeated for each counted element reported

elementType

0:1

String (Enum)

Information about the type of counted element.

adult | bike | child | pram | wheelchair | unidentified | other

boardingCounts

1:1

Integer

Number of accumulated boardings detected for this elementType.

alightningCounts

1:1

Integer

Number of accumulated alightings detected for this elementType.

enable_counting command

Table 149.- Topic path for enable_counting command

<root>/operation/<provider_guid>/apc_sensor /<OPI_version>/cmd/enable_counting/<sender_GUID>

Table 150.- enable_counting command message structure

enable_counting

+Structure

Description

<Common fields for every JSON cmd message>

enableCounting

1:1

Boolean

true (enable) | false (disable counting)

reset_counters command

Table 151.- Topic path for reset_counters command

<root>/operation/<provider_guid>/apc_sensor /<OPI_version>/cmdreset_counters/<sender_GUID>

Table 152.- reset_counters command message structure

reset_counters

+Structure

Description

<Common fields for every JSON cmd message>

resetCounters

1:1

Boolean

true

OPI Occupancy

Description

Table 153.- OPI Occupancy summary

OPI name

Operational Data Provided (DataGroups)

Inputs accepted

occupancy

OccupancyAll

  • Number of passengers onboard, %Occupancy, passengers per m2, occupancy level and accumulated boardings and alightings (all doors).
  • Trigger: after each door closing if the Provider has this information and periodically, every T=2s if the occupancy has changed in the last T seconds
  • reset_occupancy (Set occupancy to cero)

OPI version

v1.0

As with any OPI, the Occupancy OPI can be implemented by more than one Provider, such as a dedicated application subscribed to the data needed to calculate Occupancy (APC sensors counts at each door (/apc_sensor_all for each door), Validation and Ticket vending transactions, Vehicle specs (capacity seated and stand still), an application based on image processing which will typically be able to provide the number of passengers onboard, or a driver interface where the driver can manually indicate an approximate level of occupancy (occupancyStatus).

Each Provider will publish just the information it provides. In order to know the source of the information the Consumer can look for the Provider GUID in the inventory and retrieve the Provider information.

OccupancyAll DG

Table 154.- Topic path for OccupancyAll DG

<root>/operation/<provider_guid>/occupancy /<OPI_version>/data/occupancy_all

Table 155.- OccupancyAll DG message structure

OccupancyAll

+Structure

Description

<Common fields for every JSON data message>

numberOfPassengers

1:1

Integer

Number of passengers onboard

percentageOfOccupancy

0:1

Integer

Percentage of Occupancy onboard (%)

passengersPerSquareMeter

0:1

Integer

  • Number of passengers per square meter

occupancyStatus

0:1

Integer

  • 0 = Empty
  • 1 = Many seats available
  • 2 = Few seats available
  • 3 = Standing room only
  • 4 = Crushed standing room only
  • 5 = Full
  • 6 = Not accepting passengers

totalBoardings

0:1

Integer

At vehicle level (all doors)

totalAlightings

0:1

Integer

At vehicle level (all doors)

occupancyPerTypeOfElement

0:*

Object

Repeated for each counted element reported

elementType

1:1

String (Enum)

Information about the type of counted element.

adult | bike | child | pram | wheelchair | unidentified | other

elementTypeCount

1:1

Integer

Number of elements onboard

reset_occupancy command

Table 156.- Topic path for reset_occupancy command

<root>/operation/<provider_guid>/occupancy/<OPI_version>/cmd/reset_occupancy/<sender_GUID>

Table 157.- reset_occupancy command message structure

reset_occupancy

+Structure

Description

<Common fields for every JSON cmd message>

resetOccupancy

1:1

Boolean

true

ANNEX A - Understanding Network location

A vehicle can be at any of the following types of network locations:

  • On service
  • On a DeadRun (to start service,to Depot after finishing service, to change Line or making a manouver)
  • At Depot (at specific predefined areas within a depot: parking, washing, fueling, charging, workshop)
Figure 2.- Location of a bus relative to the Network. This information is published in three possible Network Location Data Groups: NL_DeadRun, NL_Depot and NL_Service depending on the bus Location

A VEHICLE On service may have the following location in relation to the stops:

  • Arriving a stop
  • At a stop (arrive to stop)
  • Leaving a stop
  • Between stops
  • On a deviation
  • Out of route
Figure 3.- Location of a bus in service relative to the bus Stops

Additionally, a vehicle On service may be at an interchange station area, where the following locations are relevant:

  • Arriving at interchange station
  • Entering entrance ramp, at entrance ramp, exit entrance ramp
  • When entering or leaving predefined areas (At bay area, At rest area…)

Activation Points can be defined On Service network or on Dead Runs. ODEx allows to report the vehicle distance to the next Activation Pointand its distance to the last Activation Point once it has passed it.

ANNEX B - OPIs Catalog

  • Domains
  • Content
  • OPIs
  • Physical Vehicle
  • Vehicle Telemetry
  • Information related to the physical vehicle and its base (non ITS) equipment: vehicle static data (ID, vehicle specifications) CAN J1939 data, GNSS data, data from sensors(e.g. odometer, accelerometer, internal thermometers…) and data from signals (e.g. ignition, doors status).
  • Vehicle static information
  • Vehicle IDs
  • Vehicle Specifications
  • CAN Data available
  • Signals available
  • Ecus information
  • CAN Raw PGN
  • Raw Vehicle Signals
  • Gnss
  • Vehicle motion sensors data:
  • Accelerationsensor
  • Odometer
  • Beacon Locationr
  • Other: angular_rate_gyro, can_motion_data, alti_baro, compass
  • Vehicle status
  • Tell Tale Status
  • Diagnostic Messages
  • Vehicle Modes
  • Passengers area information
  • Vehicle PT Operation
  • Ticketing
  • Validation and ticket sales transactions and other information related to ticketing
  • Validator
  • Ticket Vending
  • Host SAM module (HSM)
  • Validator Front End:
  • Vehicle Service Monitoring
  • Information related to the service run by the vehicle
  • Network Location
  • Employee Log
  • Journey Monitoring
  • Vehicle Assignment
  • Driver Messages
  • PreServiceCheck
  • Occupancy
  • Passenger counting and vehicle occupancy %occupancy, passenger density, occupancy status (e.g. vehicle full)
  • Apc sensor
  • Occupancy (metrics and status)

Note:In the OPIs column, items in bold are specified in the document. The remaining OPIs are planned for future releases.