We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm writting code for the above chip. I can receive messages into my application using the CAN simulator no problem. However, when I launch a message from my application, it is continuously re-transmitted (as seen on the can bus simulator). The TXOK flag is set OK and I get into my interrupt but, the only way I have been able to stop re-transmissions is by setting the CANCONCH register for the page to 0 and disabling the page. What am I doing wrong, should the simulator mimic a reply ACK to prevent multiple re-transmissions or is it my responsibility to disable further transmissions? Any clues? Regards Rob McKinley
Hi there Robert, The CAN protocol usually requires that your receiving node acknowledges receipt of a message. On receiving that recipt the sendind node will stop trying to transmit the message. If the sending node doesn't get any receipt, it will keep trying to transmit that message (or the message with the highest priority that the transmitting node has to transmit if a new more important message has come along in the mean time - dependant on your CAN chip manufacturers interpretation of the protocols). If you have set up a message object on your receiving node with the correct CAN message ID, then the acknowledgement should be automatic though. Does this help? Yours, Rich.