Not applicable
Jun 21, 2017
08:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 21, 2017
08:05 AM
Hello all,
Issue: I want to be able to forward every message from one CAN BUS to another. I do not know the identifier of the messages coming in so I cannot simply add a bunch of identifiers to a CAN node.
Progress: So far I have two CAN nodes(CAN_0 , CAN_1) and both CAN nodes can receive data as well as transmit. However when I transmit data the identifier changes to the identifiers in CAN_0 and CAN_1.
My program operates like the following:
Any help is appreciated, Thank you
Issue: I want to be able to forward every message from one CAN BUS to another. I do not know the identifier of the messages coming in so I cannot simply add a bunch of identifiers to a CAN node.
Progress: So far I have two CAN nodes(CAN_0 , CAN_1) and both CAN nodes can receive data as well as transmit. However when I transmit data the identifier changes to the identifiers in CAN_0 and CAN_1.
My program operates like the following:
- CAN node setup
- Dave setup
- Event handler for interrupt flags
- interrupts occur if there is a message on CAN_0 or on CAN_1
- After interrupt occurs, the approriate event is flagged; Read CAN_0 or CAN_1 message
- Send CAN_0 message on CAN_1 or send CAN_1 on CAN_0
Any help is appreciated, Thank you
- Tags:
- IFX
- xmc4500 can
3 Replies
Jun 26, 2017
03:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 26, 2017
03:30 AM
HI ccox04,
I would suggest to use "Gateway" functionality of the CAN controller. Unfortunately, it won´t work right of the bat while you need to handle setting the ID and data values from the unknown source, but I believe it should be feasible. What is gateway and how you can use it you can see in "MULTICAN_CONFIG_EXAMPLE_XMC47" and of course in the accompanying chapter describing gateway functionality in Reference Manual.
Best regards,
Deni
I would suggest to use "Gateway" functionality of the CAN controller. Unfortunately, it won´t work right of the bat while you need to handle setting the ID and data values from the unknown source, but I believe it should be feasible. What is gateway and how you can use it you can see in "MULTICAN_CONFIG_EXAMPLE_XMC47" and of course in the accompanying chapter describing gateway functionality in Reference Manual.
Best regards,
Deni
Not applicable
Jun 26, 2017
05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 26, 2017
05:54 AM
Thank you, I was able to make it work. Thanks!
Jun 26, 2017
06:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 26, 2017
06:29 AM
Cool,
always nice to hear that 🙂
Best regards,
Deni
always nice to hear that 🙂
Best regards,
Deni