CANCONFIG(8) | System Manager's Manual | CANCONFIG(8) |
canconfig
—
configure CAN network interface parameters
canconfig |
-a |
canconfig |
canif |
canconfig |
can command [args ...] |
The canconfig
utility is used to configure
CAN network interface parameters and retrieve CAN network interface
parameters and status from the kernel.
The base time unit used to define the network bit rate is the time quanta (tq), its value is defined by the input clock frequency and the prescaler value as (1/ freq * prescaler).
The network bit time is split in 4 segments:
The receiver hardware is allowed to shorten prop_seg or phase_seg2 to resynchronize with the sender. The swj (Synchronisation Jump Width) parameter defines by how much the hardware can shorten these segments.
Some hardware can use 3 sample points instead of one, and keep the majority as the final value.
The options are as follows:
-a
All other operations require that a CAN interface be specified. If a CAN interface is specified with no sub-commands, the status of that interface is displayed.
The following sub-commands are available:
up
down
brp
valueprop_seg
valuephase_seg1
valuephase_seg2
valuesjw
value3samples
-3samples
listenonly
-listenonly
loopback
-loopback
The canconfig
utility first appeared in
NetBSD 8.0.
This version of the canconfig
utility was
written by Manuel Bouyer.
April 15, 2017 | NetBSD 10.99 |