Operating System - HP-UX
1833758 Members
2864 Online
110063 Solutions
New Discussion

Re: stty settings and xmodem

 
Tim Downs
Advisor

stty settings and xmodem

I have two server with the exact same modem on each server. xmodem transfers work fine on one but not the other. I believe it has to do with an stty setting. Small files work fine (under 1024) but files larger than 1024 fail. The last thing that gets sent is 9B 1E which I believe is a greater than (>) and record separator (RS). After the 9B 1E I get a 15 (NAK) and the transmission tries to send the same last block of data and then the transmission fails.
I believe it has to do with an stty setting but I'm not sure which one. The following stty settings are different between the two servers

working server not working
eof = ^A eof = ^D
parenb -parenb
cs7 cs8
hupcl -hupcl
-clocal clocal
-ignbrk ignbrk
ignpar -ignpar
istrip -istrip
icrnl -icrnl
ixon -ixon
ixany -ixany
isig -isig
icanon -icanon
echo -echo
echok -echok
opost -opost
onlcr -onlcr
tab3

Which one(s) would I change? Would just issuing the stty -isig < /dev/tty2a1 make the change permanent?
3 REPLIES 3
Bill Thorsteinson
Honored Contributor

Re: stty settings and xmodem

You need to set cs8 (8bit characters).
You also need to disable parity.

stty -parity should do it.

xmodem should switch to raw mode, but if it doesn't you may also need to set it.
Bill Thorsteinson
Honored Contributor

Re: stty settings and xmodem

You need to set cs8 (8bit characters).
You also need to disable parity.

stty -parity should do it.

xmodem should switch to raw mode, but if it doesn't you may also need to set it.

If the modem has parity enabled, then it will
interfer. Consider using ckermit if so.

Tim Downs
Advisor

Re: stty settings and xmodem

Bill, the server that has the cs7 is the one that works everytime. The server with cs8 fails at the same point every time. The modem init string that I'm using in both cases is AT&F1E0Q0V1