in reply to Win32::SerialPort Query Current Values
The module can't do it because the machine can't do it. The host can not know the connection characteristics of the client device without 'sucking it to see'. If you know that you are getting a stream of characters from the client device (a serial connection to a GPS for example), then you can configure the host for different parameters until you get sensible data from the client. That is not a general solution to the problem however.
Note that the number of stop bits can be set to 2 without affecting receiving characters from the client. Probably hand shake can be safely set to none, at least to get going. Parity can generally be set to none, at least for determining baud rate if data bits is set to 8 and the high bit is ignored. That really just leaves the baud rate to be determined.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::SerialPort Query Current Values
by spickles (Scribe) on Sep 21, 2009 at 21:03 UTC | |
by GrandFather (Saint) on Sep 21, 2009 at 21:44 UTC | |
by spickles (Scribe) on Sep 23, 2009 at 15:11 UTC | |
by GrandFather (Saint) on Sep 23, 2009 at 20:16 UTC |