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 name | Description |
|---|---|
| simple_cansend.sh | Sends a CAN message 10,000 times on can0 |
| simple_canfdsend.sh | Sends a CAN FD message 10,000 times on can0 |
| simple_cansend_can1.sh | Sends a CAN message 10,000 times on can1 |
| simple_canfdsend_can1.sh | Sends 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.
Recommended Receive Software
For receive samples, please use publicly available software.
- Wireshark (receive only)
Wireshark Official Site
- SavvyCAN (send/receive)
SavvyCAN Official Site