Hi Stuart, i am playing around with my TinyCAN-I in SLCAN mode and SocketCAN, but can not get this thing working with SocketCAN. The CAN interface works well when i use a dumb terminal to send and receive some frames.
Can you give me some quick hints how to setup the interface corectly? What i do is (and it is based on an old description of Huber Hoegl, who did some experiments with TinyCAN-I and SocketCAN in 2008): - load the kernelmodules can, can_raw, can-dev and slcan on boot (i checked this with lsmod, all modules loaded) - set up the ttyUSB0 baudrate with "stty -F /dev/ttyUSB0 57600" - Attach the interface with "slcan_attach -o -s8 -c /dev/ttyUSB0" - Start the daemon with "slcand ttyUSB0" - Setup network interface with "ifconfig slc0 up" When i try to send a frame e.g. with "cansend slc0 123#aabbccdd" i can see with "ifconfig" that there are 4 bytes sent (TX bytes:4 (4.0 B)), but not over the CAN interface. When i try to receive a frame with "candump -c slc0" i can see the RX-LED flashing, but no RX-frame appears on my screen. I built the complete sourcetree from the SVN against the latest Debian testing target kernel 2.6.32-3-686 without any errors. slcan.c from the can-utils is patched with your improvements. Any ideas what's going wrong? Thanks in advance. Regards, Thorsten _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
