Hello,
I am using the TCAN4550 to communicate on a CAN BUS with other CAN devices.
I have already developed a driver, which is working very well. But now, I want to implement an autobaud detection.
This autobaud detection should detect the baudrate of the CAN bus automatically to use the hardware on CAN Bus-systems with different Baudrates (50kB/s, 100kB/s, 250kB/s, 500kB/s).
My Approach is, to configure the TCAN to a specific baudrate and then "listen" to can messages. If i receive valid can messages in a specific amount of time, then i have found the correct Baudrate of the bus.
For this Approach, I need a passive mode of the TCAN, where the TCAN does not acknowledge or set the error bits of messages, if my baudrate configuration at the first try does not match the baudrate of the bus.
I Assume, I Have to set the MON-Bit in the CCR Register to 1 and the MODE_SEL to Normal. I Have tried this already, but the TCAN does still set the error bits, if there is a message with the wrong baudrate on the can bus.
I would need a configuration for the TCAN, where I can listen to messages, without writing anything (errors or NAK) to the tcan (Read_Only-Mode).
Could anybody help me to solve this problem?
Many Thanks in advance,
Flo