CAN to 4G DTU to ThingsBoardThingsBoard is simple on purpose: one device, one access token, one telemetry topic. The work is in the key names and in what the unit does while offline.
ThingsBoard is an open-source IoT platform that most teams reach for when they want a dashboard this month without a cloud contract. Its device model is flat: a device has credentials, publishes telemetry to a topic, and the platform stores whatever keys arrive. That flatness is the whole attraction and also the place where projects drift, because nobody enforces a schema.
What ThingsBoard expects
| Item | Expectation |
|---|---|
| Device and credentials | One device entity per unit, authenticated with an access token (or X.509 in newer deployments). The token is provisioned per unit and can be rotated. |
| Telemetry topic | v1/devices/me/telemetry for the MQTT transport, with
the token as the username. Publish body is JSON. |
| Payload shape | Either a flat object of keys, or
{"ts": <epoch-ms>, "values": { ... }} when you need to control the
timestamp. |
| Attributes | A separate topic carries slowly changing metadata - firmware version, machine model, site. Useful for filtering a fleet view. |
| Downlink | RPC can ask the unit to change a parameter or return a value. It is optional and it changes what the unit must be able to do remotely. |
The key names are the project
ThingsBoard stores what arrives. If one unit sends oil_pressure and another sends
oilPressure, you get two series and one empty chart. Before a fleet order, fix a small
dictionary: key, unit, type (number or string), and the interval. Ten keys that never change are
worth more than sixty that drift. Because the mapping lives in the unit's configuration rather than
in its firmware, adding a key later is a parameter change, not a new hardware order.
Offline behaviour is the differentiator
A machine in a pit or a tunnel disappears from the platform for hours. ThingsBoard will show the last value it received; it will not invent the missing ones. The unit has to buffer, and the buffer has to survive a power cycle. When the link returns, the records should arrive in order and carry their original timestamps, so a chart shows the gap rather than a false flat line.
A starter payload of five keys
For a first machine, five keys are enough to prove the whole chain: one boolean (engine on), one integer (a counter or hour meter), one float with a unit (temperature), one position pair, and one diagnostic string (the unit's own state). If those render correctly in a dashboard and survive a coverage gap, the platform side is done and the rest is a mapping exercise. Starting with sixty keys usually means shipping a dashboard nobody has validated.
Dashboard-first thinking
It is worth writing the widgets before the payload. A widget that shows pressure over time needs a numeric key at a sensible interval; a widget that shows "machine offline" needs a heartbeat, not a last-value. Letting the dashboard define the payload is how a telemetry project stays small enough to finish.
One device per machine, not per model
It is tempting to give every unit of a model the same credentials to simplify provisioning. It also means one compromised unit exposes the fleet and one bad actor can write to every machine's series. One device entity per unit costs a provisioning step and buys revocation, per-machine history and a clean replacement flow when a unit is swapped.
What we do not claim
We publish a documented JSON payload; we do not ship a ThingsBoard plugin, and no page here claims an official integration. The pilot is the proof: one machine, one token, one diagram that stays correct for a week.
Next
DTU hardware · AWS IoT Core · Azure IoT Hub · payload contract · remote parameter adjustment.
Data sheet, interface list and a payload example on request — contact us (ralph@gz-can.com · +86 130 7692 2278).