TS-7400 V2 CAN

From embeddedTS Manuals
Revision as of 19:32, 14 January 2014 by Kris (talk | contribs)

The TS-7400_V2 i.MX286 CPU has two FlexCAN ports that use the linux SocketCAN implementation. Please note that the TS-7400_V2 does not have CAN transceivers, these will need to be supplied externally and connected to the CAN pins on the expansion header. The ports can be set up and used with the following commands:

#Note that the following command is only necessary on the October 2, 2013 TS-7670/TS7400_V2 image.
devmem 0x80018110 32 0x3ff5f5f
modprobe flexcan
ifconfig can0 up
ifconfig can1 up


At this point the ports can be used with standard SocketCAN libraries. In debian we provide cansend and candump to test the ports or as a simple packet send/recv tool. In order to test the two ports together, tie CAN_H of both CAN ports together, and do the same for CAN_L. Then use the following commands:

candump can0 &
cansend can1 123#DEADBEEF
#This command will return
  can0  123  [4] DE AD BE EF


See the SocketCAN webpage for more information on utilizing SocketCAN.