*BSD News Article 24287


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!cs.utexas.edu!utnut!torn!mcshub!todd
From: todd@flex.eng.mcmaster.ca (Todd Pfaff)
Subject: Re: FreeBSD multiport serial troubles...
Message-ID: <1993Nov22.031429.27227@mcshub.dcss.mcmaster.ca>
Sender: usenet@mcshub.dcss.mcmaster.ca
Nntp-Posting-Host: flex.eng.mcmaster.ca
Organization: McMaster University
References: <CGorE5.23K@swi.psy.uva.nl> <2cglg6$hm@wzv.win.tue.nl> <CGsMxF.3L5@swi.psy.uva.nl>
Date: Mon, 22 Nov 1993 03:14:29 GMT
Lines: 29

In article <CGsMxF.3L5@swi.psy.uva.nl> tromp@swi.psy.uva.nl (Tromp Jolanda) writes:
>I'm not sure what I'm doing wrong. It autoanswers always when I have either
>of them connected to a Mac or a normal DOS PC. However, if I plug it into
>my Multiport serial card, it only answers on VERY few occasions and only
>seems to give garbage to the other machine (this might just be a settings
>problem but i cant get it to answer enough times to test). I'm going to
>try to look at the getty source code to see what I can find. Could this
>have something to do with the /dev directory. I didn't touch it from the
>standard distribution of FreeBSD 1.0. However, I did setup both 'gettytab'
>and 'ttys'.

I have a similar problem with dialup logins under FreeBSD-1.0R but on
a standard serial port (not multiport) using sio drivers.

The modem answers, getty responds and starts login, and login seems to
change the tty to cs7 so the remote, which is set for 8-bit data, sees 
garbage.  You may be experiencing the same problem.  During a modem login
attempt, try 'stty -f /dev/serial-device' and check for cflags: cs7.

Is it login that sets the tty to 7-bit?  If so, why?  If not, then what's
the culprit?  Is there a simple solution?

-- 
--
Todd Pfaff                       \  Internet: todd@flex.eng.mcmaster.ca
Dept. of Mechanical Engineering   \    Voice: (905) 525-9140 x22902
McMaster University                \     FAX: (905) 572-7944
Hamilton, Ontario, CANADA  L8S 4L7  \