MQTT Topic Design for Automotive Use Cases

Saumil Kapadia
Apr 24, 2021

How to design MQTT topics to handle verities of data coming to and from connected vehicles.

Topic Design for Automotive Use Cases

Publish datasets mentioned above can follow this topic pattern.

<TenantID>/<AppId>/vehicles/<VIN>/tx/data/<dataType>
<TenantID>/<AppId>/vehicles/<VIN>/
tx/geohash/<geohash>
<TenantID>/<AppId>/vehicles/<VIN>/
tx/event/<eventType>
<TenantID>/<AppId>/vehicles/<VIN>/
tx/command/<commandType>
Eg.
(BMW/telemetry/vehicles/ABCDEF/tx/data/json)
(BMW/v2x/vehicles/ABCDEF/tx/geohash/pqrs/t/u/v/BSM/binary)

Subscribe datasets mentioned above can follow this topic pattern.

<TenantID>/<ApplicationId>/vehicles/<VIN>/rx/data/<dataType>
<TenantID>/<ApplicationId>/vehicles/<VIN>/
rx/geohash/<geohash>
<TenantID>/<ApplicationId>/vehicles/<VIN>/
rx/event/<eventType>
Eg.
(BMW/telemetry/vehicles/ABCDEF/rx/data/geohash/pqrs/t/#)(BMW/telemetry/vehicles/ABCDEF/rx/command/door/open)

--

--

Saumil Kapadia
0 Followers

Seasoned software engineer with an entrepreneurial spirit; Working on architecting and developing massively scalable, edge optimized automotive solutions.