конфигурация сети (Network configuration)
[CAN] SECTION OPTIONS
The [CAN] section manages the Controller Area Network (CAN bus)
and accepts the following keys:
BitRate=
The bitrate of CAN device in bits per second. The usual SI
prefixes (K, M) with the base of 1000 can be used here. Takes
a number in the range 1...4294967295.
SamplePoint=
Optional sample point in percent with one decimal (e.g.
"75%", "87.5%") or permille (e.g. "875‰"). This will be
ignored when BitRate= is unspecified.
TimeQuantaNSec=, PropagationSegment=, PhaseBufferSegment1=,
PhaseBufferSegment2=, SyncJumpWidth=
Specifies the time quanta, propagation segment, phase buffer
segment 1 and 2, and the synchronization jump width, which
allow to define the CAN bit-timing in a hardware independent
format as proposed by the Bosch CAN 2.0 Specification.
TimeQuantaNSec= takes a timespan in nanoseconds.
PropagationSegment=, PhaseBufferSegment1=,
PhaseBufferSegment2=, and SyncJumpWidth= take number of time
quantum specified in TimeQuantaNSec= and must be an unsigned
integer in the range 0...4294967295. These settings except
for SyncJumpWidth= will be ignored when BitRate= is
specified.
DataBitRate=, DataSamplePoint=
The bitrate and sample point for the data phase, if CAN-FD is
used. These settings are analogous to the BitRate= and
SamplePoint= keys.
DataTimeQuantaNSec=, DataPropagationSegment=,
DataPhaseBufferSegment1=, DataPhaseBufferSegment2=,
DataSyncJumpWidth=
Specifies the time quanta, propagation segment, phase buffer
segment 1 and 2, and the synchronization jump width for the
data phase, if CAN-FD is used. These settings are analogous
to the TimeQuantaNSec= or related settings.
FDMode=
Takes a boolean. When "yes", CAN-FD mode is enabled for the
interface. Note, that a bitrate and optional sample point
should also be set for the CAN-FD data phase using the
DataBitRate= and DataSamplePoint= keys, or DataTimeQuanta=
and related settings.
FDNonISO=
Takes a boolean. When "yes", non-ISO CAN-FD mode is enabled
for the interface. When unset, the kernel's default will be
used.
RestartSec=
Automatic restart delay time. If set to a non-zero value, a
restart of the CAN controller will be triggered automatically
in case of a bus-off condition after the specified delay
time. Subsecond delays can be specified using decimals (e.g.
"0.1s") or a "ms" or "us" postfix. Using "infinity" or "0"
will turn the automatic restart off. By default automatic
restart is disabled.
Termination=
Takes a boolean or a termination resistor value in ohm in the
range 0–65535. When "yes", the termination resistor is set to
120 ohm. When "no" or "0" is set, the termination resistor is
disabled. When unset, the kernel's default will be used.
TripleSampling=
Takes a boolean. When "yes", three samples (instead of one)
are used to determine the value of a received bit by majority
rule. When unset, the kernel's default will be used.
BusErrorReporting=
Takes a boolean. When "yes", reporting of CAN bus errors is
activated (those include single bit, frame format, and bit
stuffing errors, unable to send dominant bit, unable to send
recessive bit, bus overload, active error announcement, error
occurred on transmission). When unset, the kernel's default
will be used. Note: in case of a CAN bus with a single CAN
device, sending a CAN frame may result in a huge number of
CAN bus errors.
ListenOnly=
Takes a boolean. When "yes", listen-only mode is enabled.
When the interface is in listen-only mode, the interface
neither transmit CAN frames nor send ACK bit. Listen-only
mode is important to debug CAN networks without interfering
with the communication or acknowledge the CAN frame. When
unset, the kernel's default will be used.
Loopback=
Takes a boolean. When "yes", loopback mode is enabled. When
the loopback mode is enabled, the interface treats messages
transmitted by itself as received messages. The loopback mode
is important to debug CAN networks. When unset, the kernel's
default will be used.
OneShot=
Takes a boolean. When "yes", one-shot mode is enabled. When
unset, the kernel's default will be used.
PresumeAck=
Takes a boolean. When "yes", the interface will ignore
missing CAN ACKs. When unset, the kernel's default will be
used.
ClassicDataLengthCode=
Takes a boolean. When "yes", the interface will handle the
4bit data length code (DLC). When unset, the kernel's default
will be used.