How to Use Sample Scripts
The 02_sample folder contains the following script samples.
Copy them to your Linux PC, grant execution permission, and then run them.
| Script Name | Description |
|---|---|
| simple_cansend.sh | Sends CAN messages 10,000 times on can0 |
| simple_canfdsend.sh | Sends CAN FD messages 10,000 times on can0 |
| simple_cansend_can1.sh | Sends CAN messages 10,000 times on can1 |
| simple_canfdsend_can1.sh | Sends CAN FD messages 10,000 times on can1 |
To use these scripts, install can-utils in advance.
- Install
can-utils
sudo apt install can-utils
- Grant permission before execution
chmod +x simple_cansend.sh
Grant execution permission to the other scripts in the same way before running them.
Receiver Software
For receive-side samples, use publicly available software.
- Wireshark (receive only)
Wireshark Official Site
- SavvyCAN (send/receive)
SavvyCAN Official Site