CAN reference
Preliminary. These docs are for the prototype: details may change, anything not decided or not built yet is marked "To be confirmed", and anything marked "proposed" is in the design, and often in the prototype's firmware, but not yet approved. When a product is released, its new docs become the current version and these stay online in its archive.
Every CAN message and setting of the tire temperature sensor, with the signal layout your logger needs and how to load the DBC file.
This reference follows the Loop Legends CAN specification, draft v0.6, and matches the default DBC file.
Bus
| Item | Value | Default |
|---|---|---|
| Protocol | Classic CAN 2.0 (no CAN FD) | Classic |
| Bit rate | 1000, 500, 250 or 125 kbit/s | 1000 kbit/s |
| Sample point | 87.5% | 87.5% |
| Data ID length | 11-bit or 29-bit | 11-bit |
| Byte order | Big-endian or little-endian | Big-endian |
| Data length | 8 bytes in every data message | |
| Termination | None in the sensor. Terminate the bus in the harness. |
To be confirmed: the 87.5% sample point is still to be checked against the buses the sensor will join.
Message IDs
Each sensor sends four messages, at its base address plus 0 to 3. The default base is 0x6A0 + 4 × corner, counting FL as 0, FR 1, RL 2 and RR 3. The recommended range for sensors is 0x6A0 to 0x6AF. The DBC lists IDs in decimal, shown in parentheses.
| Corner | ZONES_A (base + 0) | ZONES_B (base + 1) | STATUS (base + 2) | SUMMARY (base + 3) |
|---|---|---|---|---|
| FL | 0x6A0 (1696) | 0x6A1 (1697) | 0x6A2 (1698) | 0x6A3 (1699) |
| FR | 0x6A4 (1700) | 0x6A5 (1701) | 0x6A6 (1702) | 0x6A7 (1703) |
| RL | 0x6A8 (1704) | 0x6A9 (1705) | 0x6AA (1706) | 0x6AB (1707) |
| RR | 0x6AC (1708) | 0x6AD (1709) | 0x6AE (1710) | 0x6AF (1711) |
In the DBC, each sensor is a node (LL_Head_FL, LL_Head_FR, LL_Head_RL, LL_Head_RR) and its messages are named after its corner, for example LL_FL_ZonesA, LL_FL_ZonesB, LL_FL_Status and LL_FL_Summary.
Rates
- Default: all four messages on each new reading, about 4 Hz. The DBC gives each one a cycle time of 250 ms.
- Fixed rate: 1, 2, 5, 10, 20 or 50 Hz. The sensor repeats the latest reading between new ones; the counter in STATUS only advances on new data.
- Order: each reading goes out as ZONES_A, ZONES_B, STATUS, then SUMMARY.
- Infrared element not answering (proposed): the sensor keeps sending, with no-data temperatures: every 500 ms when it sends on each new reading, or at its fixed rate.
- No data messages: while the sensor is updating its firmware, while it's paused by a duplicate ID, and while it's listening for the bus's bit rate.
- Bus load: four sensors at default settings send 64 frames a second. That's about 0.9% of a 1000 kbit/s bus and about 7% at 125 kbit/s.
Signals
All temperatures are signed 16-bit values: scale 0.1, offset 0, unit °C. The start bits below are as the DBC writes them for the default big-endian layout (byte-order flag @0): the position of the value's most significant bit, numbering byte 0's bits 0 to 7, byte 1's bits 8 to 15, and so on. Signal names are shown for the FL sensor; the other sensors use FR, RL and RR in their place.
ZONES_A and ZONES_B
| Bytes | ZONES_A | ZONES_B | Start bit | Length | Type | Scale, unit |
|---|---|---|---|---|---|---|
| 0 and 1 | Zone 1, FL_Zone1 | Zone 5, FL_Zone5 | 7 | 16 | Signed | 0.1 °C |
| 2 and 3 | Zone 2, FL_Zone2 | Zone 6, FL_Zone6 | 23 | 16 | Signed | 0.1 °C |
| 4 and 5 | Zone 3, FL_Zone3 | Zone 7, FL_Zone7 | 39 | 16 | Signed | 0.1 °C |
| 6 and 7 | Zone 4, FL_Zone4 | Zone 8, FL_Zone8 | 55 | 16 | Signed | 0.1 °C |
Zone 1 is the inside edge, unless the sensor's zone order is set to outside edge. Inside means the edge nearest the car's centerline.
STATUS
| Byte | Signal | DBC name | Start bit | Length | Type and meaning |
|---|---|---|---|---|---|
| 0 and 1 | Sensor temperature: the infrared element's internal reference | FL_SensorTemp | 7 | 16 | Signed, 0.1 °C |
| 2, bit 0 | Data valid | FL_DataValid | 16 | 1 | 1 = the infrared element is answering and its data passed its checks |
| 2, bit 1 | Checksum error on the last read of the infrared element | FL_PecError | 17 | 1 | 1 = error |
| 2, bit 2 | Sensor not responding | FL_SensorTimeout | 18 | 1 | 1 = ten bad reads in a row |
| 2, bit 3 | Outside rated range | FL_OutOfRange | 19 | 1 | 1 = a zone in the pixel window outside 5 to 200 °C, or the sensor temperature outside 5 to 45 °C |
| 2, bit 4 | Warming up | FL_WarmingUp | 20 | 1 | 1 = under 15 minutes since the infrared element was powered |
| 2, bit 5 | Identify active | FL_Identify | 21 | 1 | 1 = identifying |
| 2, bit 6 | Duplicate ID detected | FL_DuplicateId | 22 | 1 | A paused sensor sends no STATUS, so read this with setting 0x0007 (proposed) |
| 2, bit 7 | Settings changed but not saved | FL_Unsaved | 23 | 1 | 1 = unsaved |
| 3 | Rolling counter | FL_Counter | 31 | 8 | Unsigned; +1 per new reading |
| 4 | Corner | FL_Corner | 39 | 8 | Unsigned; 0 FL, 1 FR, 2 RL, 3 RR |
| 5 | Error count | FL_ErrorCount | 47 | 8 | Unsigned; checksum errors plus timeouts since power-up, stops at 255 |
| 6 | Firmware major | FL_FwMajor | 55 | 8 | Unsigned |
| 7 | Firmware minor | FL_FwMinor | 63 | 8 | Unsigned |
The manual explains each flag and what to do about it.
SUMMARY
| Bytes | Signal | DBC name | Start bit | Length | Type, scale, unit |
|---|---|---|---|---|---|
| 0 and 1 | Inside average (zones 1 to 3 by default) | FL_InsideAvg | 7 | 16 | Signed, 0.1 °C |
| 2 and 3 | Middle average (zones 4 and 5 by default) | FL_MiddleAvg | 23 | 16 | Signed, 0.1 °C |
| 4 and 5 | Outside average (zones 6 to 8 by default) | FL_OutsideAvg | 39 | 16 | Signed, 0.1 °C |
| 6 and 7 | Hottest zone | FL_Hottest | 55 | 16 | Signed, 0.1 °C |
The averages and the hottest zone cover only the zones inside the pixel window, grouped by the summary grouping setting. Zones with no data are left out.
No data
Any temperature can carry the no-data value: raw 0x8000, which the DBC decodes as -3276.8 °C. Set your logger to treat it as missing, not as a temperature.
Little-endian and 29-bit IDs
Set to little-endian, the sensor sends each multi-byte value low byte first, in the same bytes. A matching DBC uses byte-order flag @1, and each value's start bit becomes its first byte × 8: zone values at 0, 16, 32 and 48 (the same for the sensor temperature and the SUMMARY values), counter 24, corner 32, error count 40, firmware major 48 and minor 56. The flags keep bits 16 to 23.
A DBC marks a 29-bit ID by setting bit 31, so it lists the ID plus 0x80000000.
Settings
Settings live in the sensor's memory. A configurator, such as the app's CAN tab, reads and writes them by ID over the management protocol below. Every change is lost at power-off unless it's saved.
| ID | Setting | Values | Default | Takes effect |
|---|---|---|---|---|
| 0x0001 | Bit rate | 1000, 500, 250, 125 (kbit/s) | 1000 | On APPLY_BUS_SETTINGS |
| 0x0002 | Bit-rate auto-detect at power-up | 0 off, 1 on | 0 | Next power-up |
| 0x0003 | Data ID length | 11 or 29 | 11 | On APPLY_BUS_SETTINGS |
| 0x0004 | Base address | The ID of ZONES_A. All four IDs must fit: up to 0x7FF with 11-bit IDs, up to 0x1FEFFFFF with 29-bit IDs. | 0x6A0 + 4 × corner | On APPLY_BUS_SETTINGS |
| 0x0005 | Byte order | 0 big-endian, 1 little-endian | 0 | Immediately |
| 0x0006 | Instance | 0 to 3: on a sensor, the same as the corner | The corner | As for the corner |
| 0x0007 | Status flags (proposed) | Read-only: the STATUS flags byte, readable even while data is paused | ||
| 0x0010 to 0x0013 | Message enabled: ZONES_A, ZONES_B, STATUS, SUMMARY | 0 off, 1 on | 1 | Immediately |
| 0x0101 | Corner | 0 FL, 1 FR, 2 RL, 3 RR. Also sets the instance. | Set at the factory and labeled | Immediately. If the base address was still the old corner's default, it moves to the new corner's default on APPLY_BUS_SETTINGS (proposed). |
| 0x0102 | Zone order | 0 inside edge, 1 outside edge. 1 reverses the order of the eight zones (proposed meaning). | 0 | Immediately |
| 0x0103 | Temperature offset | -200 to 200 (-20.0 to +20.0 °C) in 0.1 °C, as a signed 32-bit value | 0 | Immediately |
| 0x0104 | Transmit mode | 0 on each new reading, 1 fixed rate | 0 | Immediately |
| 0x0105 | Fixed rate | 1, 2, 5, 10, 20, 50 (Hz) | 10 | Immediately |
| 0x0106 | Summary grouping | Zones per group: inside × 256 + middle × 16 + outside. Each at least 1, at most 8 in total. | 0x323 (3 / 2 / 3) | Immediately |
| 0x0107 | Cover type | 0 none, 1 HDPE 0.3 mm, 2 DLC germanium, 3 zinc sulfide, 4 custom | Set at the factory to match the cover fitted (1) | Immediately |
| 0x0108 | Custom cover transmission | 500 to 1000 (0.500 to 1.000), used with cover type 4 | 1000 | Immediately |
| 0x0109 | Pixel window (proposed) | First zone × 256 + last zone, each 1 to 8, first no greater than last | 0x0108 (zones 1 to 8) | Immediately |
- Summary grouping and the pixel window: the groups must add up to the number of zones in the window. If they don't, the sensor uses its own split for that window: about three-eighths of the zones at each edge, the rest in the middle.
- The pixel window counts zones as sent, after the zone order is applied. Zones outside it are left out of SUMMARY and of the range flag, but ZONES_A and ZONES_B still carry all eight. A window narrower than three zones is widened to three.
- Not on the sensor: the specification also lists 0x0020 + n (message rate) and 0x0030 (settings lock) for every device. The sensor answers them as unknown settings: set its rate with 0x0104 and 0x0105. The settings lock is planned for later.
Management
Configurators talk to the sensor with 29-bit management frames at the lowest priority, so they never delay data. Management frames aren't in the DBC. Multi-byte fields in their payloads are big-endian, whatever the sensor's byte order.
ID = 0x1FF00000 | dir << 19 | type << 13 | instance << 8 | command
For example, a DISCOVER broadcast to every device is 0x1FF7FF01, and the FL sensor's reply is 0x1FF82081.
Commands
| Code | Command | Request | The sensor's reply |
|---|---|---|---|
| 0x01 | DISCOVER | Broadcast, no payload | After a 0 to 100 ms delay set by its serial number: type, corner, serial (4 bytes), firmware major, firmware minor |
| 0x02 | IDENTIFY | Seconds (0 stops) | Status. Sets the identify flag and blinks the sensor's LED for that long. |
| 0x03 | ASSIGN_INSTANCE | Serial (4 bytes), new instance | From the sensor with that serial: status, serial |
| 0x10 | PARAM_READ | Setting ID (2 bytes) | Setting ID, value (4 bytes), status |
| 0x11 | PARAM_WRITE | Setting ID (2 bytes), value (4 bytes) | Setting ID, status |
| 0x12 | SAVE | No payload | Status, once the settings are stored |
| 0x13 | APPLY_BUS_SETTINGS | Broadcast: delay in ms (2 bytes) | None. Every device switches at the same moment. |
| 0x14 | FACTORY_RESET | Serial (4 bytes) | Status. The sensor returns to its defaults and its labeled corner, saves, and restarts. |
| 0x15 | REBOOT | No payload | None. The sensor restarts. |
| 0x20 | BOOTLOADER_ENTER | Serial (4 bytes) | Status. The sensor enters firmware-update mode and stops sending data. The update commands, 0x21 to 0x25, are proposed. |
The sensor ignores commands that don't apply to it.
Status codes
These reply payloads and status codes are proposed.
| Code | Meaning |
|---|---|
| 0x00 | OK, in effect now |
| 0x01 | OK, stored; takes effect on APPLY_BUS_SETTINGS. A read of a staged value returns it too. |
| 0x02 | OK, stored; takes effect at the next power-up |
| 0x80 | Unknown setting for this device |
| 0x81 | Value not allowed. For example, switching to 11-bit IDs while the base address needs 29 bits: write the base first. |
| 0x82 | Read-only |
| 0x83 | Storage failed |
| 0x84 | Refused: a valid request the sensor can't carry out now |
| 0x85 to 0x89 | Firmware-update errors |
Bit rate
- Finding a sensor at an unknown rate: send DISCOVER at each of the four bit rates in turn. The sensor answers only at its own rate. The app's CAN tab also shows it.
- Changing the rate: write the new rate to every sensor, save each one, then broadcast APPLY_BUS_SETTINGS with a delay, such as 500 ms. Every sensor switches at the same moment; switch your own adapter with them.
- Fail-silent: after three bus-off errors within a minute, the sensor stops transmitting and listens for the bus's bit rate. It listens 250 ms at each rate, for up to three rounds (proposed), then joins at the rate where it heard a valid frame, or at its stored rate.
The CAN integration guide covers the whole bus.
To be confirmed: on a bus that already carries 29-bit traffic, check the range 0x1FF00000 to 0x1FFFFFFF for clashes. This is to be checked for each install.
Loading the DBC
The default DBC file will come with each sensor. It describes all four sensors at default settings: 1000 kbit/s, 11-bit IDs, big-endian and the default base addresses.
- Set your logger's CAN input to the sensor's bit rate: 1000 kbit/s unless you changed it.
- Import the DBC file in your logger's software.
- Pick the messages for the sensors you have. Each sensor is its own node, from
LL_Head_FLtoLL_Head_RR. - Check that temperatures decode in °C with one decimal place, and that -3276.8 is treated as no data.
If you change a sensor's IDs, byte order, enabled messages or rate, the default DBC no longer matches it. The app's CAN tab can also export a DBC for the settings it shows (Export DBC).
To be confirmed: the DBC has not yet been tried in logger software from other makers.
Something unclear or wrong? Email hello@loop-legends.com.