Date: Tue, 18 Mar 1997 14:34:18 -0800 (PST) From: Chris Coleman <chris@bb.cc.wa.us> To: Lee Crites <adonai@jump.net> Cc: John Prince <johnp@lodgenet.com>, hackers@FreeBSD.ORG Subject: Re: still more digiboard and modem questions/problems... Message-ID: <Pine.NEB.3.94.970318142031.4357A-100000@aries.bb.cc.wa.us> In-Reply-To: <Pine.SOL.3.91.970318131005.24419A-100000@serv1.jump.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I have a BOCA 16 port modem board running on my FreeBSD 2.1-STABLE system. I have had it running for about 6 months. I had a few problems when I had different brands of modems running on the same box, but I removed them and I have had no problems since. I can give you the specifics of how I set it up if you want. But it should be almost the same as the digiboard. (I think i remember patterning the stuff after the digiboard setup.) I don't believe I had to put anyone in any special groups. I just had to modify /etc/ttys and /etc/rc.serial Both files Follow: Here is my /etc/ttys: # name getty type status comments console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" cons25 on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 off secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/X11R6/bin/xdm -nodaemon" cons25 on secure # BocaBoard ttyd1 "/usr/libexec/getty std.115200" dialup on insecure ttyd2 "/usr/libexec/getty std.115200" dialup on insecure ttyd3 "/usr/libexec/getty std.115200" dialup on insecure ttyd4 "/usr/libexec/getty std.115200" dialup on insecure ttyd5 "/usr/libexec/getty std.115200" dialup on insecure #.... ttydf "/usr/libexec/getty std.115200" dialup on insecure ttydg "/usr/libexec/getty std.115200" dialup on insecure # Pseudo terminals ttyp0 none network {SNIP} Here is /etc/rc.serial: majorly snipped: #!/bin/sh # $Id: rc.serial,v 1.4.4.3 1996/07/02 14:39:34 bde Exp $ default() { # Reset everything changed by the other functions to initial defaults. ci=$1; shift # call in device identifier co=$1; shift # call out device identifier for i in $* do comcontrol /dev/tty$ci$i dtrwait 300 drainwait 0 stty </dev/ttyi$ci$i -clocal crtscts hupcl 9600 reprint ^R stty </dev/ttyl$ci$i -clocal -crtscts -hupcl 0 stty </dev/cuai$co$i -clocal crtscts hupcl 9600 reprint ^R stty </dev/cual$co$i -clocal -crtscts -hupcl 0 done } #This is the function that initializes all of your modems. I #Snipped all the other non informative information. modem() { # Modem that supports CTS and perhaps RTS handshaking. ci=$1; shift co=$1; shift for i in $* do # may depend on modem comcontrol /dev/tty$ci$i dtrwait 100 drainwait 180 # Lock crtscts on. # Speed reasonable for V42bis. stty </dev/ttyi$ci$i crtscts 115200 stty </dev/ttyl$ci$i crtscts stty </dev/cuai$co$i crtscts 115200 stty </dev/cual$co$i crtscts done } # Edit the functions and the examples to suit your system. # $1 is the call in device identifier, $2 is the call out device identifier # and the remainder of the line lists the device numbers. # Initialize all ports on a Cyclades-8yo. # modem c c 0 1 2 3 4 5 6 7 # Initialize all ports on a Cyclades-16ye. # modem c c 0 1 2 3 4 5 6 7 8 9 a b c d e f # Initialize all ports on a Digiboard 8. # modem D D 0 1 2 3 4 5 6 7 # Initialize specific ports on a BocaBoard 16 modem d a 1 2 3 4 5 f g ^^^^^^^^^^^^^^^^^^^^^^^^^ This is the part that actually initializes the modems. The "d" is for ttyd* and the "a" is for cuaa* The digiboard uses an uppercase "d". uncomment the method that does the what you want. I only put in the numbers that I am actually using. I guess you could put all of them in there. I hope this helps. Christopher J. Coleman (chris@aries.bb.cc.wa.us) Computer Support Technician I (509)-766-8873 Big Bend Community College Internet Instructor FreeBSD Book Project: http://vinyl.quickweb.com/~chrisc/book.html 90% of the work takes 90% of the time. The remaining 10% of the work takes the other 90% of the time.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.94.970318142031.4357A-100000>