But you must add one 120ohm resistor between CAN_H and CAN_L on one of the
two Boards. Like figure 4-4:
NOTE: All CAN signals don’t mount on the 120Ohm Matched Resistance.
Figure 4-4 CAN connect
Here is an example with which to test CAN by using can units.
• Set the bit-rate to 50Kbits/sec with triple sampling using the following
command (use ROOT user)
# ip link set can0 type can bitrate 50000 triple-sampling on
• Bring up the device using the command
# ip link set can0 up
• Transfer packets
a. Transmit 8 bytes with standard packet id number as 0x10
# cansend can0 010#1122334455667788
b. Transmit 8 bytes with extended packet id number as 0x800
# cansend can0 800#1122334455667788
• Bring down the device
# ip link set can0 down
• Receive packets
#candump can0