VAR-SOM-AM43 Can-bus: Difference between revisions

From Variscite Wiki
(Created page with "= CAN Bus = *Connect CANL, CANH and GND pins of two VAR-SOM-AM43 boards (located on J17). *Power-up both boards. *Type the following into the shell of both boards for configu...")
 
Line 1: Line 1:
= CAN Bus =
{{PageHeader|VAR-SOM-AM43 - CAN Bus}} {{DocImage|category1=VAR-SOM-AM43|category2=Yocto}} __toc__


*Connect CANL, CANH and GND pins of two VAR-SOM-AM43 boards (located on J17).
*Connect CANL, CANH and GND pins of two VAR-SOM-AM43 boards (located on J17).

Revision as of 13:16, 24 December 2015

VAR-SOM-AM43 - CAN Bus
  • Connect CANL, CANH and GND pins of two VAR-SOM-AM43 boards (located on J17).
  • Power-up both boards.
  • Type the following into the shell of both boards for configuration the CAN bus device:
$ ip link set can0 type can bitrate 50000 triple-sampling on
$ ip link set can0 up
  • Type the following to the shell of board 1 (which is used for testing receiving over can0 device):
$ candump can0
  • Type the following to the shell of board 2 (which is used for testing sending data packets over can0 device):
$ cansend can0 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
  • At this point, board 1 will receive the data packet sent from board 2:
<0x001> [8] 11 22 33 44 55 66 77 88