0
edits
Changes
From IGEP - ISEE Wiki
m
Several tools are provided by socketCAN: The IGEP0022 expansion board provides a CAN interface using MCP2515.<br>
On the receiver sideIf you want to receive CAN data, use:
On the sender sideIf you want to send CAN data, use:
no edit summary
= Using CAN bus =
Several tools are provided by socketCAN to use this controller: *candump: dump traffic on a CAN network . *cansend: simple command line tool to send CAN-frames via CAN_RAW sockets . *cangen: CAN frames generator for testing purpose .*canplayer: send CAN frames from a file to a CAN interface. In order to test the CAN interface you can connect IGEP0022 to a CAN device or network or to another IGEP0022 board.<br> In the last case, you have to connect the two boards like this:<br> pin number) (pin number 1) O-----X X-----O (1 IGEP0022 2) O----------------O (2 IGEP0022 Board 1 3) O----------------O (3 Board 2 4) O----------------O (4 Now you can set up the interface (on all boards when using multiple IGEP0022 <span lang="en" class="short_text" id="result_box"><span class="hps" title="Click for alternate translations">connected to a CAN network simultaneously)</span></span>:<br>
/sbin/ip link set can0 up type can bitrate 125000
candump can0
cansend can0 123#AABBCCDD