
This command can be used to change advanced settings of the CAN interface of the Module. CANEXT requires one or three arguments. To take effect, the module must be restarted.
CANEXT requires one or three arguments.
1. Operating mode: one of the words LISTEN or NORMAL.
In LISTEN mode, the module passively listens on the bus, that is, it can only receive but never sends and never causes any bus activity (including ACKs and error frames).
2. Optional: 0 or 1.
Defines how control lines of a special CAN transceiver chip are driven. If this is 0 and argument #3 is 0, both control lines are driven low. If this is 0 and argument #3 is 1, pin 5 (on the Avisro Module) is driven low and pin 6 is driven high. If this is 1 and argument #3 is 0, pin 5 is driven high and pin 6 is driven low. If both are 1, both pins are driven high.
3. Optional (but required if argument #2 is present): can be 0 or 1
If the last two arguments are omitted and after a restart, the control lines are not driven furthermore.
ERR_OK (0) if input contains no errors
ERR_ARGUMENT (4) If one or more arguments were rejected
CANEXT LISTEN
Swiches the Module to listen mode
CANEXT NORMAL 0 1
Normal mode (transmit and receive). Pin 6 will be high and pin 5 will be low
When using a standard CAN transceiver and for normal participation on the bus, it is not necessary to use this command. To switch back to normal mode, simply send CANEXT NORMAL and reboot the module.