Project

General

Profile

CAN interfaces

Setup and testing the CAN interfaces with Linux

The TI wiki site has some good information on getting the linux CAN utilities built for the 335X
see http://processors.wiki.ti.com/index.php/DCAN_Driver_Guide

Once you have the CAN utilities built and installed on the target, can use the following commands
from http://support.criticallink.com/redmine//projects/indio/wiki/CAN_support to test the interface.


root@mityarm335x-dev:~# ip link set can0 type can bitrate <your-desired-bitrate-in-hz> triple-sampling on
root@mityarm335x-dev:~# ifconfig can0 up
root@mityarm335x-dev:~# cansend can0 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88

Common bit-rates

10 kBaud = 10000
20 kBaud = 20000
50 kBaud = 50000
100 kBaud = 100000
125 kBaud = 125000
250 kBaud = 250000
500 kBaud = 500000
800 kBaud = 800000
1 MBaud = 1000000

Add picture from clipboard (Maximum size: 600 MB)