Android Canbus: Difference between revisions
From Variscite Wiki
(Created page with "{{PageHeader|CAN bus}} {{DocImage|category1=Yocto|category2=VAR-SOM-MX6}} Connect 2 boards with the appropriate cable.<br> Board A CAN_H --- CAN_H Board B Board A CAN_L --- ...") |
No edit summary |
||
Line 3: | Line 3: | ||
Connect 2 boards with the appropriate cable.<br> | Connect 2 boards with the appropriate cable.<br> | ||
[[File:CAN_Bus_Connection.png]] | |||
Board A CAN_H --- CAN_H Board B <br> | |||
Board A CAN_L --- CAN_L Board B <br> | |||
Set up the boards by running the following on each of them:<br> | Set up the boards by running the following on each of them:<br> |
Revision as of 00:48, 27 November 2018
CAN bus
Connect 2 boards with the appropriate cable.
File:CAN Bus Connection.png
Board A CAN_H --- CAN_H Board B
Board A CAN_L --- CAN_L Board B
Set up the boards by running the following on each of them:
$ ip link set can0 up type can bitrate 125000
Then:
On board #1:
$ cansniffer can0
On board #2:
$ cansend can0 500#1E.10.10