VAR-SOM-AM33 Can-bus

From Variscite Wiki
Revision as of 12:31, 22 December 2015 by Admin (talk | contribs) (Created page with "= CAN Bus = *Connect CANL, CANH and GND pins of two VAR-SOM-AM33 boards (located on J17). *Power-up both boards. *Type the following into the shell of both boards for configu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CAN Bus

  • Connect CANL, CANH and GND pins of two VAR-SOM-AM33 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