Thank you very much for the pointers. Hopefully they will help me shed
some light on things. I am also hopefully getting a USB bus analyzer to
do some snooping for me. If I have any more questions expect to see
them here. :)
Thanks again,
Mike
Greg KH wrote:
On Fri, May 19, 2006 at 12:20:25PM -0400, Mike Panetta wrote:
Please CC me on all replies since I seem to be having issues
subscribing to the list...
I am working on writing a USB Serial driver roughly based on the
Keyspan_pda driver, and I am running into real strange issues. As
this is my first serial driver (and my first serial firmware) I am not
quite sure where I am going wrong and I was wondering if someone could
look at the driver code and tell me if there are any obvious mistakes.
Basicly the issue I am having is I am dropping chars for some unknown
reason, but only sometimes. I can set up a loop like "cat
/dev/ttyUSB0 > /dev/ttyUSB0" and send an ascii file from another
machine to the device and get back an identical copy, but if I try to
do any sending from the linux side (like if I use wvdial or something)
the data gets corrupted and I seem to drop chars randomly.
Don't use 'cat' or 'echo' to test a usb-serial driver, they do not work
well, if at all, for it.
I have a test script at:
http://www.kernel.org/pub/linux/kernel/people/gregkh/misc/serial_loopback.pl
that works if you have a loopback connector on the device. I have used
it for testing in development and it has helped to find a lot of bugs.
Try using that and seeing if you can find the issues. As you are
creating the firmware too, it's going to be fun trying to figure out if
the error is in the driver or the firmware :)
good luck,
greg k-h
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel