This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

stty on serial ports


Having trouble with stty.

On w2k appears to correctly change speed, but complains. Unable to read
settings. ixon & inpck have no effect.

$ stty -F /dev/ttyS0 speed 4800 ixon inpck
0
stty: /dev/ttyS0: unable to perform all requested operations

$ stty -F /dev/ttyS0
speed 0 baud; line = 0;
intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof =
<undef>;
susp = <undef>; rprnt = <undef>; werase = <undef>; lnext = <undef>;
flush = <undef>; min = 0; time = 0;
-cread
-brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

$ cmd /c mode com1

Status for device COM1:
-----------------------
    Baud:            4800
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         OFF
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     ON
    RTS circuit:     ON

On w95, the results are similar, except that it seems to remember the
previous stty speed setting.
$ stty -F /dev/ttyS0 speed 4800 ixon inpck
1200 <---previously set with stty. Not the same as speed set using MODE.
stty: /dev/ttyS0: unable to perform all requested operations

Does this mean that the functionality relied upon by stty is not yet
implemented in cygwin1.dll ?

Campbell.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]