On 01/28/2010 01:10 PM, Oliver Hartkopp wrote:
> Gary Thomas wrote:
>> I know I've used this before, but I'm having trouble with it
>> running 2.6.32.  When I insert the USB device, I get /dev/ttyUSB0
>> via the ftdi_sio+usbserial modules.  When I run slcan_attach,
>> I get an invalid IOCTL error (strace dump attached).
>>
>> # ~gary/slcan_attach -w -o -s8 -c /dev/ttyUSB0
>> ioctl: Invalid argument
>>
>
> open("/dev/ttyUSB0", O_WRONLY|O_NOCTTY) = 3
> write(3, "S8\r", 3)                     = 3
> write(3, "O\r", 2)                      = 2
> ioctl(3, TIOCSETD, [17])                = -1 EINVAL (Invalid argument)
>
>
>> Any ideas what I'm doing wrong?
>
> Yeah :-)
>
> I strongly assume, you did not load the slcan module.
>
> And therefore there's no chance to switch /dev/ttyUSB0 to the slcan line
> discipline.

Of course :-)  Too bad I didn't find this in any of the README or doc files.

I've built and installed the module(s) and I can now run slcan_attach

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to