Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On the module configure the can0 interface

Code Block
languagebash
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

Code Block
languagebash
candump can0

Double click on the CAN-ID Transmit message you create on the PCAN-View app

ouput on the module

Code Block
languagebash
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
languagebash
cansend can0 5A1#49.4c.4f.56.45.59.4f.55

The message should be shown into the PCAN View tool