Added CAN interface driver for low-cost CAN-Interfaces with ASCII protocol
authorOliver Hartkopp <socketcan@hartkopp.net>
Thu, 22 Feb 2007 12:47:37 +0000 (12:47 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Thu, 22 Feb 2007 12:47:37 +0000 (12:47 +0000)
commit79cc51a867d27bfc6f22ebf5c38a9624194ee6a5
treee6a77f33b097a6719fa3e0b6e5ea7eed10a546d7
parentaca93c6867d186b741304fe5a088306fcd4bd04b
Added CAN interface driver for low-cost CAN-Interfaces with ASCII protocol
via serial (or quasi serial via USB) lines.

This driver is partly derived from linux/net/driver/slip.c and uses a new
tty line discipline (N_SLCAN) analogue to N_SLIP to encapsulate can_frames
sent to a slc* netdevice for the serial line and vice versa.

As only the sending and receiving of can_frames is implemented, this driver
should work with the (serial/USB) CAN hardware from:
> www.canusb.com / www.can232.com / www.mictronic.com / www.canhack.de <

The sending and receiving frames format is pretty common. The other settings
and the 'open' command 'O' of the specific adapters may be set with a
terminal programm (like minicom) before switching the CAN data stream to
the slc* netdevice using the slcan_attach userspace tool.

Feel free to send patches / extensions to slcan.c / slcan_attach.c :)

ps. There had been no performances measurements until now. As long as the
data fit's through the 'serial' line it works obviously well. The slcan-driver
nor the Linux network layer will definitely have no problems to process
the received data. Remember the 'low-cost' hardware approach. We'll see ...
Makefile
slcan_attach.c [new file with mode: 0644]