1、配置CAN波特率

ip link set can0 type can bitrate 50000

2、启动CAN设备

ip link set can0 up
或者
ifconfig can0 up

3、显示CAN设备信息

ip -d -s link show can0
ip -d -s link show can0
2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0
    can state ERROR-ACTIVE restart-ms 0
          bitrate 10000
05-08 06:44