BUSOFF error automatic protection?
Posted: Thu 26. Sep 2024, 22:01
Hello,
I am testing a CAN device and am considering implementing automatic baud detection. I am doing some preliminary testing and have found that if two or more devices are communicating on the bus, and a third (non-PCAN) device connects to the bus actively with a mismatched bitrate, the PCAN will show a BUS-OFF error as the mis-configured device has flooded the bus with error messages, and communication between the previously transceiving devices ceases (I believe this is expected with CAN). However, when the PCAN acts as this mismatched bitrate device joining the active bus, the PCAN shows a BUS-OFF error, but the other two devices continue to communicate without issue. How is this achieved? Does the PCAN have an error threshold and puts itself into listen-only mode to preserve the bus?
Any help would be great, thanks!
I am testing a CAN device and am considering implementing automatic baud detection. I am doing some preliminary testing and have found that if two or more devices are communicating on the bus, and a third (non-PCAN) device connects to the bus actively with a mismatched bitrate, the PCAN will show a BUS-OFF error as the mis-configured device has flooded the bus with error messages, and communication between the previously transceiving devices ceases (I believe this is expected with CAN). However, when the PCAN acts as this mismatched bitrate device joining the active bus, the PCAN shows a BUS-OFF error, but the other two devices continue to communicate without issue. How is this achieved? Does the PCAN have an error threshold and puts itself into listen-only mode to preserve the bus?
Any help would be great, thanks!