CAN
Copy the app “can_send” and “can_receive” to Development board from ”
Connect the CON2-1 and CON2-2 to another board CON2-1 and CON2-2.
Set can0 baudrate as 50KBps, and enable can0.
# canconfig can0 bitrate 50000 ctrlmode triple-sampling on
# canconfig can0 start
- Two board, one as the sender and the other as a receiving end, send the data to execute the following command in a development board:
# ./can_send -d can0 -i 0x01 0x11 0x22 0x33 0x44 0x55 0x66
Receiving end will use command as:
# ./can_receive -d can0
can0 0x1 [6] 0x11 0x22 0x33 0x44 0x55 0x66
can0 0x1 [6] 0x11 0x22 0x33 0x44 0x55 0x66
8 can0 0x1 [6] 0x11 0x22 0x33 0x44 0x55 0x66