Sep 10, 2020
07:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 10, 2020
07:20 PM
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
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
3 Replies
Sep 11, 2020
05:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 11, 2020
05:05 AM
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.
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.
Sep 16, 2020
07:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2020
07:15 PM
UC_wrangler wrote:ok. The approach you mentioned is also J1939-16 spec. Thank you.
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.
Sep 16, 2020
08:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2020
08:05 PM
Thanks for the pointer - I'll check that out.
This widget could not be displayed.