Instructions
How to Handle Incoming Messages 22 (26)
5 How to Handle Incoming Messages
The communication from and to the device is handled asynchronous.
Example
A CAN status command/response sequence can be interrupted by incoming CAN messages.
tx: CAN 1 STATUS
rx: M 1 CSD 123 02 22 33
rx: M 2 CSD 345 02 55 AA
rx: R CAN 1 ----- 100
This is especially the case when working with more than one CAN controller. The ASCII message
parser on the host side has to take care on that and handle receiving ASCII messages on an event
basis.
The host message parser has to distinguish the following types of messages:
• CAN message, like M 2 CSD 01 C4 97 00 00 00 00 00 00
• Positive response (R ok)
• Negative response (R ERR <error-number> <error-description>)
• Device response, like R CAN CAN
• Events like E 1 BUSOFF
• CAN status response, like R CAN 1 ----- 100
CAN Message
Receiving CAN messages follows the definition of transmitting messages in Message, p. 7.
Example
M 1 CSD 100 55 AA 55 AA
M 2 CED 18FE0201 01 02 03 04 05 06 07 08
CAN@net NT 200/420 Software Design Guide
4.02.0332.20000 1.5 en-US