Skip to main content
Firmware Stable

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_INPUT to 0,255 enables level input from CAN message
  • To control driver mode via CAN, set /io/can_input to 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

ByteTypeDescription
0-1INT_16 (Little endian)can_level
2-3INT_16 (Little endian)can_level2
4UINT_8Digital input:
- Bit 1 = can_in1
- Bit 2 = can_in2
5UINT_8can_clt_mode
- Used only if can_input = 1
6UINT_8can_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