DART-6UL CAN bus: Difference between revisions
From Variscite Wiki
(Created page with "{{PageHeader|CAN bus}} {{DocImage|category1=Yocto|category2=DART-6UL}} Starting Release 4 of Yocto, CAN bus is integrated into the system. No patch required. Connect 2 board...") |
No edit summary |
||
Line 2: | Line 2: | ||
{{DocImage|category1=Yocto|category2=DART-6UL}} | {{DocImage|category1=Yocto|category2=DART-6UL}} | ||
Connect 2 boards: | |||
* Pin J12.9 (CAN-H) of the first board to J12.9 (CAN-H) of the second board | |||
* Pin J12.10 (CAN-L) of the first board to J12.10 (CAN-L) of the second board | |||
Set up the 2 boards by running on each of them: | Set up the 2 boards by running the following on each of them: | ||
# ip link set can0 up type can bitrate 125000 | |||
On board #1: | On board #1, sniff: | ||
# cansniffer can0 | |||
On board #2: | On board #2, send data: | ||
# cansend can0 500#1E.10.10 | |||
# cansend can0 500#1A.11.12 | |||
… |
Revision as of 14:23, 13 March 2019
CAN bus
Connect 2 boards:
- Pin J12.9 (CAN-H) of the first board to J12.9 (CAN-H) of the second board
- Pin J12.10 (CAN-L) of the first board to J12.10 (CAN-L) of the second board
Set up the 2 boards by running the following on each of them:
# ip link set can0 up type can bitrate 125000
On board #1, sniff:
# cansniffer can0
On board #2, send data:
# cansend can0 500#1E.10.10 # cansend can0 500#1A.11.12 …