Tool/software:
Hi,
How CAN I know that the tx messages of MCAN and CAN have been successfully sent to the bus?
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.
Tool/software:
Hi,
How CAN I know that the tx messages of MCAN and CAN have been successfully sent to the bus?
Hi Liu,
Best way is to have a CAN analyzer (ex: Peak CAN) connected to the CAN bus that will detect any message traffic in the bus. Indirectly, you can also inspect the contents of CAN status register (e.g. CAN_ES). It gives the status of the bus, last error code, warnings, errors, RX ok or TX ok.
Regards,
Joseph
Hi Joseph,
I tried to use Txok, but there were already Tx messages on the bus, and Txok was still 0. Check the user manual, 1 indicates that the message was sent successfully.
Hi Liu,
Would you have a CAN analyzer or any scope that is capable of detecting CN frame? These are the best methods to know for sure that a frame has been transmitted.
Regards,
Joseph
Hi Joseph,
I used the CAN box to confirm that a sent message has been sent,but Txok is still 0.
Hi Liu,
When you are sending the CAN frame, is there a receiving node? TxOk will only set to '1' if there is a node that ACKnowledged that the frame was received.
Regards,
Joseph
Hi Liu,
TxOK and LEC bits in CAN_ES will reflect the status if SIE bit in CAN_CTL register. Can you check on this bit if it is set in your application?
Thanks,
Joseph