Generic Mode Network and Device Communication
29 (62)
11.2
CAN Commands
The commands are used to control the CAN controller on the device and to modify the filter
settings.
Valid order of usage:
►
Initialize the CAN controller.
►
Configure the filter.
►
Start the CAN controller.
►
Stop the CAN controller.
11.2.1
Configuring the Communication Behavior
C CAN_INFO
Shows information about:
•
current status of the CAN controller
•
software queues (Overrun flags are cleared after response is transmitted.)
•
TX queue size
•
transmitted CAN messages since the last connection was established (TX counter is a
WORD value and starts from zero when 65535+1, possible to implement TX handshake, if
difference between local TX counter and CANblue II TX counter is calculated)
C CAN_INFO
Possible Return Values
Return Value
Description
I CAN started
I Tx queue size: 256
I Tx counter: 25
I OK: CAN_INFO
State of CAN controller,
Tx queue size in number of messages,
number of transmitted messages
I CAN stopped
I Tx queue size: 256
I Tx counter: 0
I OK: CAN_INFO
State of CAN controller,
Tx queue size in number of messages,
number of transmitted messages
I CAN controller in WARNING LEVEL
I Rx CAN controller OVERRUN
I Rx SW queue OVERRUN
I Tx SW queue OVERRUN
I Tx pending
I OK: CAN_INFO
CAN controller in
warning level
state
I CAN controller in BUS OFF
I Rx CAN controller OVERRUN
I Rx SW queue OVERRUN
I Tx SW queue OVERRUN
I Tx pending
I OK: CAN_INFO
CAN controller in
bus off
state
CANblue II User Manual
4.01.0126.20000 EN 3.2