Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 1997 21:02:03 -0500
From:      Mark Plummer <markus@nrgnet.com>
To:        questions@freebsd.org
Subject:   garbage on serial line connection w' escape sequences 
Message-ID:  <199701260202.VAA00394@zaphod.nrgnet.com>

next in thread | raw e-mail | index | archive | help
hello,

    i'm currently setting up modem on a freebsd 2.1 box, and i'm running
into a problem where when escape sequences are sent through the modem
connection (eg. when vi displays a screen or when man displays a screen) i
get some garbage characters (ie. unexpected characters, sometimes not as
many as expected, sometimes more, sometimes high order bit set, sometimes
not).  the behaviour is inconsistent: sometimes it's fine, sometimes
it takes 5 or 6 redisplays to be legible (different characters are garbled
on each refresh).  large amounts of text can be dumped (continuous ls -l's)
through the serial line w' no ill effect as long as there are no escape
sequences (or at least screen repositioning commands which for the vt100
are mostly escape sequences).  i've used 2 separate terminal emulators
(hyperterminal and netterm) and gotten similar results.  i've used both
modems in other situations (although never in an autoanwer situation),
and i have no problem across network connections.  the uart is a 16550,
one modem is a us robotics sportser 33.6 (the one atached to the freebsd
box), the other is a zoom 28.8 modem.  below is the stty -a for the line
i'm connecting on (/dev/ttyd0):

speed 115200 baud; 24 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
	-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
	-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel ignbrk
	brkint -inpck -ignpar -parmrk
oflags: opost onlcr oxtabs
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb crtscts -dsrflow
	-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
	eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
	min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
	stop = ^S; susp = ^Z; time = 0; werase = ^W;

any help will be appreciated. thanks in advance...

markus

-- Mark Plummer, markus@nrgnet.com, +1 410 905 0136



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701260202.VAA00394>