Wire protocols

CAN Tools

Classical CAN and ISO CAN FD reference

Bit timing calculator

Run the calculator with the nominal bounds, then use the controller’s data phase bounds for an FD data bitrate. SocketCAN reports the controller clock and timing limits in ip -details link show can0. Prescalers progress in increments from the minimum. Set the controller’s maximum SJW. The calculator checks the requested SJW against that maximum and both timing segments. TSEG1 combines propagation and phase segment 1, so verify that phase segment 1 can accommodate SJW after allocating propagation quanta.

Bitrate = clock ÷ (prescaler × (1 + TSEG1 + TSEG2)). Sample point = (1 + TSEG1) ÷ (1 + TSEG1 + TSEG2). For each feasible total quanta per bit, the calculator tries the nearest prescalers and segment splits. It orders the resulting candidates by absolute bitrate error, then absolute sample-point error, then more quanta per bit. It shows candidates even when the requested bitrate is unattainable. Check timing errors, clock tolerance, propagation, transceiver and driver constraints before applying a candidate. Linux SocketCAN, CiA 601 guidelines.

Controller limits

Arbitration simulator

Compare two contenders starting at the same SOF. The display uses logical bits and omits common stuff bits. Recessive is 1 and dominant is 0. A tie means there is no winner during arbitration. Differences later in the frame can cause errors instead of resolving priority.

Contender A
Contender B

Frame field visualizer

Inspect the logical field order. The display shows lengths for the data and CRC regions and lists fixed CRC stuff bits as a group. It leaves dynamic stuffing, payload values, CRC calculation and actual ACK observation to a wire trace.

Data length code mapping
Data frame payload bytes by DLC value
DLCClassical CANCAN FD
000
111
222
333
444
555
666
777
888
9812
10816
11820
12824
13832
14848
15864

Identifier explorer

Use decimal, 0x hexadecimal or 0b binary. The identifier width determines format even when a 29-bit value fits in 11 bits. An identifier’s meaning is defined by the application protocol or a supplied message database.