On Tue, Aug 19, 2003 at 04:06:45PM -0500, David Anders wrote:
> 
> Greg KH wrote:
> 
> > Can you load the pl2303 driver with:
> >     modprobe pl2303 debug=1
> > and then run the program for me?
> >
> > You should see a lot of information in the kernel debug log, any info on
> > ioctls that your program is using that is not supported by the driver
> > would be nice to see.
> 
> 
> sure, i'll go through and document that, will be tomorrow before i post

Thanks.

> >> tcgetattr(fd,&oldtio); /* save current serial port settings */
> >> bzero(&newtio, sizeof(newtio)); /* clear struct for new port settings */
> >
> > Why not copy the old one to the new one, and then modify just the values
> > that you want to be different?
> 
> this was intended to simulate how most standard programs operate. this 
> section was documented in the serial programming howto and i verified 
> that numberious applications ( with the expection of minicom which works 
> as you suggested) use this as their standard procedure.

Hm, honestly that serial programming HOWTO sucks :)

There's a _much_ better one out there written by Vernon Hoxie.  I have a
copy of it around here on my disk if you can't find it on the web
anywhere.  I really recommend it for anyone who has to write programs
that talk to serial ports.

> > For 2.6.0-test3 I just get the program sitting and spinning if I
> > uncomment this line.  glibc is waiting for some line change to happen
> > that isn't going to happen I'm guessing...
> >
> > Have you tried 2.6 yet?
> 
> just compiled and tested 2.6.0-test3 with the same results

Hey, at least we are consistant :)

> > Remember all of the cr vs nl logic happens in the tty core and glibc,
> > not in the individual tty drivers (from what I can tell.)
> >
> 
> ok, so why does this program work properly with /dev/ttyS0 and not 
> /dev/ttyUSB0 ?

I have no idea.  The usb-serial drivers traditionally do not support all
of the ioctls that normal serial ports do.  That might be why this is
happening.

> i'll be digging deeper into the problem all this week, usb-rs232 are 
> becoming a big issue since all the POS device manufactures are adding 
> these devices into their existing products. in order for linux to 
> support these products properly the usb-rs232 needs to perform in the 
> exact same manner as a standard rs-232 port. with this in mind, the 
> company i work for has aloted a significat amount of time to clear this up.

Nice, I want to see this happen too, and am glad to see someone helping
out.  If you can identify the missing ioctls, I would be glad to help
add them to the drivers.

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to