This page is for readers who want the details: measured voltages, oscilloscope traces, part numbers and the exact faults. It is our field note from making both Iveco CAN buses readable and reliable. It is not a theoretical guide. It is what failed, why, and what finally worked.
Many builders treat CAN as "just CAN". On the Iveco Daily 4x4 there are two distinct physical layers, and almost every difficulty in this project came from that difference.
| C-CAN · engine / chassis | B-CAN · body | |
|---|---|---|
| Purpose | Engine computer and other powertrain units | Instrument cluster, lights, doors, climate control, switches |
| Standard | ISO 11898-2 high-speed CAN, J1939 messages | ISO 11898-3 low-speed fault-tolerant CAN, Iveco-specific messages |
| Speed | 250 kbit/s | 50 kbit/s |
| Transceiver | TJA1051 class (high-speed) | TJA1054 / TJA1055 class (fault-tolerant) |
| Recessive (idle) | CAN-H ≈ CAN-L ≈ 2.5 V, difference ≈ 0 V | CAN-H near 0 V, CAN-L near 5 V |
| Dominant | CAN-H ≈ 3.5 V, CAN-L ≈ 1.5 V | CAN-H ≈ 3.6 V, CAN-L ≈ 1.4 V |
| Termination | 120 Ω at each end of the bus | Distributed: RTH and RTL resistors at every node |
| When it fails | A short or open line stops the bus | Keeps working on one wire, but a wrong interface can pull the whole bus down |
Key lesson: you cannot use a high-speed transceiver on B-CAN. A ready-made monitor with a TJA1051 works on C-CAN, but on B-CAN it reads nothing useful, and if it ever drives a dominant bit it disturbs the body bus. For B-CAN you must use a fault-tolerant transceiver from the TJA1054 / TJA1055 family. Ours is a TJA1055T/3, the 3.3 V-compatible version, so no level shifter is needed between the transceiver and the ESP32.
We did not know the speed of either bus, or the message format, at the start. We went through many combinations of bit rate and frame format on both buses. With the wrong bit rate a CAN controller sees nothing or only error frames, which is indistinguishable from a wiring fault. Each wrong combination cost time looking for hardware faults that were not there.
The answer, in the end: C-CAN runs at 250 kbit/s with J1939 messages, and B-CAN runs at 50 kbit/s. On B-CAN we use a sample point of 80 %, which gives the most reliable reading on the slow fault-tolerant edges. Our early notes had both speeds wrong.
The bit time is easy to check on a scope once you know to look: at 50 kbit/s one bit is 20 µs wide. Trace 6 below shows a single bit.
Symptom. With the monitor connected to the live C-CAN, we measured the healthy recessive state as 2.6 V on CAN-H and 2.4 V on CAN-L, a difference of 0.2 V. Powering the ESP32 by USB while it was connected caused an instant jump to 2.9 V / 2.1 V, a difference of 0.8 V. The transceiver was driving dominant. The engine computers logged fault codes and the instrument cluster went blank.
Cause. The transceiver on the monitor board had its mode pin tied permanently to "normal". During the first moments after power-up, before our firmware had configured the CAN transmit pin, that pin was low. A low on the transceiver's TXD input means "send dominant", so the transceiver drove the bus for that short time, right in the middle of other traffic. The software was already set to listen-only, but the software was not running yet.
Fixes, in the order we applied them:
Framework change. Moving from ESP-IDF v5 to v6 changed the CAN (TWAI) programming interface. Listen-only became a flag in the node configuration, and acceptance filters use a new configuration structure. Our final firmware is built on ESP-IDF v6.0.2.
B-CAN was by far the more difficult bus, and it took weeks. The symptom was always the same. On the scope, the transceiver's RXD output toggled cleanly with every frame. In the log, the CAN controller reported no messages and no bus errors. It never saw a start of frame.
Fault 1: the inversion. On our first transceiver arrangement, the RXD signal arrived at the ESP32 inverted: low when the bus was idle, instead of high. With an inverted input, the CAN controller sees recessive as dominant and can never synchronise. We fixed this in firmware by inverting the RX input inside the ESP32's GPIO matrix before it reaches the CAN controller. That was the first time the bus showed message IDs. Trace 2 shows the inverted idle level.
Fault 2: the logic level. On our later custom transceiver board, the inversion was no longer the problem. Removing it made no difference: still no messages. The cause this time was the voltage. The RXD high level reached only about 1.8 to 2.0 V. The ESP32-S3 needs about 2.5 V (0.75 × 3.3 V) before it reads a logic one. So the controller saw a permanent low, even though the scope showed clean pulses. Trace 1 shows it. Changing the RXD pull-up from 1 kΩ to 3.3 kΩ brought the high level to about 3.1 V with a clean low, and the CAN controller synchronised immediately.
Why a different pull-up value raised the high level depends on that board's transceiver variant and protection network. The general lesson is simpler: measure the voltage at the processor pin, not only at the transceiver, and compare it with the processor's input thresholds.
The final B-CAN firmware is version 0.0.0.12: fault-tolerant CAN working, 3.3 kΩ RXD pull-up, listen-only, 50 kbit/s with an 80 % sample point, ESP-IDF v6.0.2.
All six traces are from the B-CAN. They were taken while we were finding the faults. The unit is now built into its enclosure and installed, so these are the only records we have. Tap a trace to see it larger.






Not every problem was in the silicon or the analogue world. The biggest single source of lost time was the pins. Development boards bring out only some of the chip's pins, and many of those are already used by the SD card, the Ethernet interface, the USB port or an LED. We repeatedly assigned the CAN transmit and receive signals to pins that did not exist on the board, or that belonged to the SD card or the Ethernet port.
On the Guition ESP32-P4 board, the signal from the GPIO pins did not reach the CAN (TWAI) controller. At the time we blamed the chip. In fact we were not routing the pins to the controller correctly. One Waveshare ESP32-P4 board was destroyed during this period, when an open 5 V wire touched it on the workbench. In the end both buses moved to dedicated Waveshare ESP32-S3-ETH boards.
B-CAN is now working reliably after a long and frustrating debug. The start-up fault on the C-CAN, and the inversion and logic-level faults on the B-CAN, all made the problem look like software when it was actually analogue. If you are building for the Iveco Daily 4x4, plan plenty of time for the physical layer. Decoding the messages is the easy part, once you can reliably see the bits.