Required Parameters
To add a device using the CANbus communication protocol, the following parameters are required.string
required
A unique identifier for the device.Example:
battery1string
required
Indicates the type of device.Options:
converter, battery, otherstring
required
The communication protocol between the controller and the device. For this type of device, it will always be
CANbus.Example: CANbusstring
required
The name of the device’s address map on the controller.Example:
canbus_device_address_mapbool
required
Indicates whether the device is enabled or disabled. A value of true means the device is disabled, while false means the device is enabled.
Optional Parameters
The parameters listed below are optional and are not required for a device with the CANbus protocol to work properly. However, sometimes it is desirable to add these optional parameters for specific device requirements.string
The name of the device’s control map on the controller.Example:
canbus_device_controlstring
Specifies the CAN frame format to use for communication. Defaults to
29-bit if not specified.Options: 11-bit | 29-bitnumber
Physical CAN module number. Defaults to
1 if not specified. If you only have one physical CAN module, this parameter is not needed. If you have more than one, each CAN device needs this parameter set, otherwise it will default to CAN module 1.Options: 1 | 2Example
The snippet below demonstrates a device with idbattery1 and protocol CANbus, including all the required parameters along with the optional parameters.