TC39x - MCMCAN - Autobaud rate detection

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User15955
Level 1
Level 1
Hi,

Is there any Application Note/sample code for Aurix TC39x available for CAN auto Baud rate detection?
In AURIXTC3XX_um_part2_V1.2.0.pdf, there is mentioned about "Restricted Operation Mode", which can be used to detect Baud rate.


Thank you.
Naveen
0 Likes
3 Replies
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Hi Naveen. You should update your User Manual - 1.5 is the latest 🙂

40.3.2.1.5 Restricted Operation Mode
The Restricted Operation Mode can be used in applications that adapt themselves to different CAN bit rates. In this case the application tests different bit rates and leaves the Restricted Operation Mode after it has received a valid frame.

I'm not exactly sure what Bosch meant here, but I don't think it's as fancy as auto baud rate detection. There are simply too many knobs in CAN timing for an auto baud rate to complete in a reasonable time frame.

If you could fix a number of the parameters, then it wouldn't be so hard - for example, if you knew the sampling point, and the SJW, you could use Restricted Operation Mode to try out 125K, 500K, and 1Mbit for a few milliseconds, and see which one worked.

In any case, there is no sample code available.
0 Likes
User15955
Level 1
Level 1
UC_wrangler wrote:
Hi Naveen. You should update your User Manual - 1.5 is the latest 🙂


I'm not exactly sure what Bosch meant here, but I don't think it's as fancy as auto baud rate detection. There are simply too many knobs in CAN timing for an auto baud rate to complete in a reasonable time frame.

If you could fix a number of the parameters, then it wouldn't be so hard - for example, if you knew the sampling point, and the SJW, you could use Restricted Operation Mode to try out 125K, 500K, and 1Mbit for a few milliseconds, and see which one worked.

In any case, there is no sample code available.
ok. The approach you mentioned is also J1939-16 spec. Thank you.
0 Likes
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Thanks for the pointer - I'll check that out.
0 Likes