![Phytec L-1017e.A3 i.MX 8M Plus Manual Download Page 62](http://html1.mh-extra.com/html/phytec/l-1017e-a3-i-mx-8m-plus/l-1017e-a3-i-mx-8m-plus_manual_1554092062.webp)
L-1017e.A3 i.MX 8M Plus BSP Manual
Field
Description
MTU
Maximum Transfer Unit
RX packets
Number of Received Packets
TX packets
Number of Transmitted Packets
RX bytes
Number of Received Bytes
TX bytes
Number of Transmitted Bytes
errors...
Bus Error Statistics
The CAN configuration is done in the
systemd
configuration file
/lib/systemd/system/can0.service
. For a persistent
change of (as an example, the default bitrates), change the configuration in the BSP under
./meta-yogurt/recipes-
core/systemd/systemd-machine-units/can0.service
in the root filesystem and rebuild the root filesystem.
[Unit]
Description=can0
interface
setup
[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/sbin/ip link set can0 up type can bitrate
500000
ExecStop=/sbin/ip link set can0 down
[Install]
WantedBy=basic.target
The
can0.service
is started by default after boot. You can start and stop it using:
target$ systemctl stop can0.service
target$ systemctl start can0.service
The bitrate can also be changed manually, for example, to make use of the flexible bitrate:
target$ ip link set can0 down
target$ ip link set can0 txqueuelen
10
up type can bitrate
500000
sample-point
0.75
dbitrate
4000000
dsample-point
0.8
fd on
You can send messages with
cansend
or receive messages with
candump
:
target$ cansend can0
123
#
45.67