Subject: chat problems with tty
To: None <port-i386@netbsd.org>
From: Peter <plp@actcom.co.il>
List: port-i386
Date: 05/23/2005 16:24:46
chat(8) has the same problem. I cannot read anything from input from the 
serial port device.

The modem is ok, it is internal so no baud rate etc problems, tested as 
is with minicom.

stty <whatever> </dev/dty01 runs and refuses to set anything. Exit code 
is 0.

Where should I look ? Is there a command besides stty to set up a serial 
line (or internal modem) for use with expect/chat ? Is there a problem 
with stty used on certain serial lines ? Maybe I am doing something not 
ok ?

Settings are:

/root# stty -g </dev/dty01
gfmt1:cflag=4b00:iflag=2b02:lflag=5cb:oflag=7:discard=f:\
dsusp=19:eof=4:eol=ff:eol2=ff:erase=7f:intr=3:kill=15:\
lnext=16:min=1:quit=1c:reprint=12:start=11:status=14:stop=13:\
susp=1a:time=0:werase=17:ispeed=0:ospeed=9600

(stty </dev/tty01 hangs)

I have set some more relaxed permissions, for testing, which are:

/root# ls -l /dev/tty01
crw-rw-rw-  1 uucp  wheel  8, 1 May 21 03:50 /dev/tty01
/root# ls -l /dev/dty01
crw-rw-rw-  1 uucp  wheel  8, 524289 May 21 03:49 /dev/dty01
                               ^^^^^^is this not supposed to be 1?
tia,
Peter