[Dclug] USB Serial Port Problem

Klosowski, Przemek przemek.klosowski at nist.gov
Sat Jun 19 16:13:08 EDT 2010


It is possible that the Problem is that the port is too fast eg shooting characters back to back instead one char at a time perhaps in the old driver. I have seen simple serial ports getting confused by such fast incoming data--i think they couldn't synch to start bit immediately following a stop bit w/o mark space delay. To check this try outputing one char at a time maybe even with few ms delay

----- Original Message -----
From: dclug-bounces at calypso.tux.org <dclug-bounces at calypso.tux.org>
To: dclug at tux.org <dclug at tux.org>
Sent: Sat Jun 19 13:41:14 2010
Subject: [Dclug] USB Serial Port Problem


I have been using a shell script to talk to an old Protek meter via a USB
to serial port for some years.  It has been getting more and more
persnickety and now I'm getting nothing useful to happen, this is under
Fedora 12 with latest updates.

I can talk to the meter fine with gtkterm, and I can normally do stty <
/dev/ttyUSB0, and I can echo to the device.  But if I try to read from the
device I never get anything out, and while I am trying to read any stty or
write commands hang forever.  Any ideas?

I also tend to get "Protocol error" from the original script, which is
presumably suffering from the same inability to read from the device.

+-----------------------------------------------------------+
| David C Niemi  (Reston, VA, USA)  niemi at tuxers dot net |
+-----------------------------------------------------------+
_______________________________________________
Dclug mailing list
Dclug at calypso.tux.org
http://calypso.tux.org/mailman/listinfo/dclug


More information about the Dclug mailing list