On the module configure the can0 interface
Code Block |
---|
|
ip link set can0 up type can bitrate 500000 sample-point 0.75 dbitrate 2000000 dsample-point 0.8 fd on
ifconfig can0 up |
Listen to messages
Double click on the CAN-ID Transmit message you create on the PCAN-View app
ouput on the module
Code Block |
---|
|
root@imx8qxpmek:~# candump can0
can0 000 [08] 46 55 43 4B 20 59 4F 55
can0 000 [08] 46 55 43 4B 20 59 4F 55
can0 000 [08] 46 55 43 4B 20 59 4F 55
can0 000 [08] 46 55 43 4B 20 59 4F 55
can0 000 [08] 46 55 43 4B 20 59 4F 55
can0 000 [08] 46 55 43 4B 20 59 4F 55 |
Stop the candump
Send to messages
Code Block |
---|
|
cansend can0 5A1#49.4c.4f.56.45.59.4f.55 |
The message should be shown into the PCAN View tool