Ophion control message
This message enables mapping CAN signals to OPHION inputs. You can also combine controller GPIO inputs with CAN inputs.
info
- All messages use little-endian format
- Setting
/io/level_INPUTto0,255enables level input from CAN message - To control driver mode via CAN, set
/io/can_inputto 1
Message ID
Message ID calculation: can_offset + device address
Check the input mapping documentation for details on setting the can_offset parameter.
example
For a controller with address 0 and default can_offset, the message ID is 0x610
Message structure
| Byte | Type | Description |
|---|---|---|
| 0-1 | INT_16 (Little endian) | can_level |
| 2-3 | INT_16 (Little endian) | can_level2 |
| 4 | UINT_8 | Digital input: - Bit 1 = can_in1 - Bit 2 = can_in2 |
| 5 | UINT_8 | can_clt_mode - Used only if can_input = 1 |
| 6 | UINT_8 | can_ctl_mode_reverse - Used only if can_input = 1 |
| 7 | - | ignored |
- Message DLC must be 7 or 8 bytes (otherwise ignored)
- 200ms message timeout - all values reset to zero if exceeded
Received values
All received values appear as variables in the /can_input_signals folder, regardless of CAN input mapping.
tip
Always check these if the controller is correctly receiving CAN inputs.
| CAN signals |
|---|