Skip to main content

How to Use the Sample Scripts

The 02_sample folder contains the following script samples. Copy them to your Linux PC, grant execution permissions, and then run them.

Script nameDescription
simple_cansend.shSends a CAN message 10,000 times on can0
simple_canfdsend.shSends a CAN FD message 10,000 times on can0
simple_cansend_can1.shSends a CAN message 10,000 times on can1
simple_canfdsend_can1.shSends a CAN FD message 10,000 times on can1

Installing can-utils is required before using the scripts.

  • Install can-utils
sudo apt install can-utils
  • Grant execute permission before running
chmod +x simple_cansend.sh

Grant execute permission to the other scripts as well before running them.

For receive samples, please use publicly available software.

  • Wireshark (receive only)

Wireshark Official Site

  • SavvyCAN (send/receive)

SavvyCAN Official Site