Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEP0022

799 bytes added, 11:59, 7 July 2011
m
no edit summary
= Using CAN bus =
Several tools are provided by socketCAN: The IGEP0022 expansion board provides a CAN&nbsp;interface using MCP2515.<br>
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&nbsp;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&nbsp;network simultaneously)</span></span>:<br>
/sbin/ip link set can0 up type can bitrate 125000
On the receiver sideIf you want to receive CAN&nbsp;data, use:
candump can0
On the sender sideIf you want to send CAN data, use:
cansend can0 123#AABBCCDD
0
edits