spirilis 1,265 Posted December 26, 2013 Author Share Posted December 26, 2013 Those examples cause the red LED on the MSP430G2 LaunchPad to flash twice if a successful call & response occurs (master sends 2 bytes to 0x00000080, receiver acknowledges by replying same data at 0x00000040), and either side will go into an infinite loop flashing their red LED if an error occurs. If the receiver is disconnected, the CAN controller recognizes the lack of ACK as an error and throws an error. So if the receiver side's RJ45 is disconnected, the master goes into an infinite loop flashing its LED and needs to be reset. (obviously this can be handled in software and retried) So that's something an application will have to watch for... a TX error will occur if nobody's around to listen. Even if nobody's acting on the message, just having another node present on the bus to provide the ACK is important. The node could be filtering out the message entirely and an ACK would still get sent indicating successful transmission of the message. Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.