CAN
This page documents the [can]
configuration section.
This section contains the parameters needed for the device to be able communicate on the CAN-bus.
Default
[can]
bitrate = 0 ; CAN-bus bit rate (DEC), 0 = auto-detect
silent = false ; Listen-only mode
Fields explained
bitrate
Configures the CAN-bus bit-rate to use. If set to zero (0
), the device attempts to auto-detect (see CAN-bus for a list of detectable bit-rates) CAN-bus the bit-rate. Otherwise, the field specifies the bit-rate to use in bit/s.
Type |
Minimum |
Maximum |
Example |
---|---|---|---|
Integer |
5000[1] |
1000000 |
250000 |
Note
Bit-rate auto-detect requires that at least two nodes communicate on the CAN-bus. Auto-detect cannot be used if only the device and a single node are connected to the CAN-bus.
silent
When silent-mode is enabled, the device logs CAN-bus traffic without interfering with the bus, i.e. the device does not acknowledge (ACK) messages placed on the CAN-bus by other devices.
Type |
Options |
---|---|
Boolean |
true, false |
true
: Silent-mode enabledfalse
: Silent-mode disabled
Note
Enabling silent-mode requires that another node on the network acknowledges messages
Warning
It is recommended to enable (true
) silent-mode when possible