Part Number: TMS320F28377S
Hello,
How do I read back my own message in the canbus in normal communication mode?
Like external loopback but the communication is still normal CANbus with other nodes.
Thanks!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMS320F28377S
Hello,
How do I read back my own message in the canbus in normal communication mode?
Like external loopback but the communication is still normal CANbus with other nodes.
Thanks!
Hi Ernst,
I think your only options monitoring in CANBUS would be to use an interface like PCAN that reads all transactions in the CANBUS, or connect a scope (to CANL and CANH lines) capable of receiving CAN frames. Also wanted to understand what you are trying to accomplish by looking at the CANBUS message - maybe there are some alternative ways to do that instead of monitoring the CANBUS itself.
Best regards,
Joseph
Hi,
1. I like to know how much time it takes to send a can message till it received. So I can compensate for that.
2. I have a tiny multi-tasking realtime OS of running on it. One process it a pcan like debug tool. Because you can't always connect an external tool.
It is a bit awkward to reroute the data from both processes in the can driver.basicly Rewriting the mailbox concept again in software.
So the only sollution I can think of is to connect both can interfaces to the same bus.
Hi Ernst,
Ok, so that basically eliminates using PCAN or a scope since you need a real time feedback. How about using the other CAN module of the F28377S as the receiving node and one of the 3 CPU Timers to initiate the timing? For example, as soon as you send data for transmission on CANA, start the CPU Timer and upon reception of that same message on CANB, read the elapsed time from the CPU Timer.
Regards,
Joseph
Hi Ernst,
Have not heard back from you regarding this topic and i am assuming that you have figured out a way to read back the message sent on the CAN bus in real time, hence i am closing this thread. If you still have issues with this topic, please send it in the forum.
Regards,
Joseph