Christian-Marty.ch´s Electric Things

CANbeSerial

February 11, 2024

The CANbeSerial protocol was designed to allow the transportation of CAN-Bus frames on any serial stream interface. Possible interfaces include, but are not limited to, Serial Port (RS-232), TCP, and UDP.

CANbeSerial implements its own framing (COBS) and error-checking (CRC16) mechanism and is therefore independent of any mechanisms of an underlying protocol. This allows for fully transparent conversion between different types of interfaces. For example, it would be possible to convert a CANbeSerial datastream from TCP to RS232 and subsequently CAN-Bus without any repackaging or logic in the TCP to RS232 conversion step.

Prior Art

The concept of converting CAN-messages to a serial data format is nothing new. Here are some prior attempts at doing so:

Commercial and proprietary solutions

There are many commercial something-to-CAN converters. Some of them are bad but some are really good. If you are looking for a good USB-to-CAN converter I can highly recommend the PCAN adapters from Peak-Systems.

I will not attempt a comparison between any commercial product and CANbeSerial.

candleLight

candleLight is another protocol that I have seen implemented in multiple devices.

Unfortunately, I was not able to find a document of the protocol, but it seems to be USB only.

SLCAN

SLCAN is an ASCII-based serial protocol developed by LAWICEL. It seems to be very well-supported in a multitude of open-source software but is also very limited.

Benefits of CANbeSerial over SLCAN