Embest Technology
Copyright © 2014-2015 Embest Technology SBC9000 User Manual
62
Figure 6-4
J25 pin definitions
1
)
Please execute the following instructions to set baudrate to 125KBPS and enable
CAN devices;
root@sbc9000:~#
ip link set can0 type can bitrate 125000 triple-sampling on
root@sbc9000:~#
ip link set can1 type can bitrate 125000 triple-sampling on
root@sbc9000:~#
ip link set can0 up
root@sbc9000:~#
ip link set can1 up
2
)
Execute the following instruction to set can0 as receiver;
root@sbc9000:~#
candump can0 &
3
)
Execute the following instructions to send data from can1;
root@sbc9000:~#
cansend can1 123#1122334455667788
The terminal window will print information as shown below;
Table 6-16
Data received by can0
can0 123 [8] 11 22 33 44 55 66 77 88
4
)
Execute the following instructions to disable links between CAN devices;
root@sbc9000:~#
ip link set can0 down
root@sbc9000:~#
ip link set can1 down