Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!news.uoregon.edu!news.u.washington.edu!raindrop!unger From: unger@raindrop.seaslug.org (Thomas Unger) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Modem Help...Please? Date: Fri, 8 Mar 1996 22:15:52 GMT Organization: Wet Weather Consulting Lines: 52 Message-ID: <Dnyz6G.H2z.0.raindrop.seaslug.org@raindrop.seaslug.org> References: <4hl2bt$9s@news.visi.com> NNTP-Posting-Host: cs120-10.u.washington.edu In article <4hl2bt$9s@news.visi.com>, Doug Bailey <dougb@sihope.com> wrote: >I'm a suffering Unix newbie, and though I've managed to get FreeBSD >2.1 installed on my machine, I've been utterly unable to divine how to >get the damn thing to communicate with a modem. > >I have a U.S. Robotics 28800 external connected to COM2 (which in the >FreeBSD world appears to be /dev/ttyd1) I got it working on my system. Perhaps the one trick that you are missing is that there are two /dev entries for each serial device (actually about 6 but I'm a little fuzzy on what the lock and config device names do). /dev/ttyd1 is intended for use by programs that are listening for incomming connections. /dev/cuaa1 is intended for programs that are calling out. Do a ls -l on these and you will find they have the same major device number but different minor device numbmers. The relationship of the device nubmers and their use is doecumented somewhere... You need to configure your modem. The handbook has some info about this. Main considerations are flow control (use hardware if you can) and interface speed. Most modems have the option of setting the computer-modem interace to a fixed speed, regardless of the phone speed. I choose 57600. Is also good to save the config in the modems memory and arrange to have the modem do a soft reset when DTR drops. As I remember, to set up dial in you simply need to start a getty on that port. In /etc/ttys add (or edit) the entry for ttyd1: ttyd1 "/usr/libexec/getty std.57600" dialup on Then send a HUP signal to init, which will read this file and start a getty which should look like: 21818 ?? IW 0:00.02 /usr/libexec/getty std.57600 ttyd0 Maybe check /var/log/messages to see if init is complaining about anything. OK? As for dialing out, /etc/remote defines dial out destionations for the "tip" command. Years ago I set this up on some other system, but have not used it sense. Do a "man tip" and follow the directions, remembering to use cuaa1 as the device name. Myself, I set up uucp and ppp and things work pretty well. For my occasional dial out I use 'cu' (or my windows machine). Generally, I use ppp and telnet to remote hosts. On another system I used seyon with success. Tom.