CAN bus: Difference between revisions

Line 118: Line 118:
* SOCK_DGRAM/CAN_BCM: Broadcast Manager mode, used for cyclic transmissions typical of sensor ECUs
* SOCK_DGRAM/CAN_BCM: Broadcast Manager mode, used for cyclic transmissions typical of sensor ECUs
** Also simple timer-based interface for cyclic RX with failure notification
** Also simple timer-based interface for cyclic RX with failure notification
===can-utils===
The [https://github.com/linux-can/can-utils can-utils] suite implements basic programs atop SocketCAN:
* candump: log frames to file
* canplayer: replay logged frames to CAN interface
* cansniffer: show IDs and changing data in real time (limited to 11-bit IDs)
* cansend: transmit a CAN frame
The tools above all have ISO-TP variants in the [https://github.com/hartkopp/can-isotp can-isotp] project, replacing "can" with "isotp".


===iproute===
===iproute===
Line 142: Line 135:
* <tt>triple-sampling</tt>: whether to sample between each of the 4 bit quanta
* <tt>triple-sampling</tt>: whether to sample between each of the 4 bit quanta
* <tt>berr-reporting</tt>: control delivery of error state event interrupts (default: disabled)
* <tt>berr-reporting</tt>: control delivery of error state event interrupts (default: disabled)
===can-utils===
The [https://github.com/linux-can/can-utils can-utils] suite implements basic programs atop SocketCAN:
* candump: log frames to file
* canplayer: replay logged frames to CAN interface
* cansniffer: show IDs and changing data in real time (limited to 11-bit IDs)
* cansend: transmit a CAN frame
The tools above all have ISO-TP variants in the [https://github.com/hartkopp/can-isotp can-isotp] project, replacing "can" with "isotp".