*BSD News Article 37633


Return to BSD News archive

Xref: sserve comp.os.386bsd.misc:4011 comp.os.386bsd.questions:14310
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!caen!zip.eecs.umich.edu!panix!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!uunet!psinntp!uprc.com!cygnus!z056716
From: z056716@uprc.com (LaCoursiere J. D. (Jeff))
Newsgroups: comp.os.386bsd.misc,comp.os.386bsd.questions
Subject: BOCA woes
Date: 7 Nov 1994 17:40:31 GMT
Organization: Union Pacific Resources Corp.
Lines: 90
Distribution: world
Message-ID: <39loqg$90m@clavin.uprc.com>
Reply-To: z056716@uprc.com
NNTP-Posting-Host: cygnus.uprc.com
Keywords: BOCA 8 port sio serial dialin

I went through a hell of a struggle to get this card
up and running with modems on it, only to find that it
will not work for my purposes.  There seems to be a lack
of decent info in the archives for this card, so I add
my experiences:

The card comes with possible INT values of 2(9),3,4,5,7,10,11,12,
and 15.  I had no luck (i.e. the kernel would not probe it) at
12 or 15, but worked great at 5.  Have NO idea why this is so.
At the time I ended up ripping out EVERYTHING but vga, adaptec 1542B
(IRQ11,IRQ6 - floppy).  Haven't tried any of the other lower values.
It now lives happily with vga, adaptec, multi I/O with 2ser,1par,1game,
Mitsumi CD,and wd8003 ethernet card.

READ THE SIO MAN PAGE!  This man page has exact info on configuring
the kernel.  Keep in mind that each port takes up 8 consecutive I/O
ports, sp you need to find a fairly large chunk of unused I/O ports
to base the card.  The default 0x100 worked for me.

/etc/rc will run /etc/rc.serial if it exists.  This is the perfect place
to put stuff that initializes your ports and lock in values for communication.
Mine looks like: (actually based on stuff from a netter - can't remember name)

for i in 1 2 3 4 5 6 7 8 9
do
        comcontrol /dev/ttyd$i dtrwait 50      # may depend on modem
        # Lock crtscts on.
        # Speed reasonable for V42bis.
        stty </dev/ttyid$i crtscts brkint ignpar -clocal 38400
        stty </dev/ttyld$i crtscts -clocal 38400
        stty </dev/cuai0$i crtscts brkint ignpar -clocal 38400
        stty </dev/cual0$i crtscts -clocal
done

Here I have also configured sio1, which is actually COM2 on the standard
I/O card still in the machine (gives me 10 serial ports total).  I didn't
bother with sio0, as my mouse is connected and works fine as is.

The dtrwait is included for use specifically with Telebit T3000 14.4 modems.
At the moment I still don't have those particular modems working; the above
works fine with USR Sportsters, however.

Now the ugly part.  The card comes bundled with 8 RJ12 cables and 8 RJ12->DB25(M)
ends.  The ends happen to be cabled for use with direct attached terminals.  The
manual explains how to construct a conversion cable for use with modems, but it
is incorrect.  I spent several hours with a break-out box and a pin tool (ugh)
getting the ends wired correctly.  What it comes down to:

Modem		BOCA card
-------------------------

1 -------------	1
2 -------------	3
3 ------------- 2
4 ------------- 20
5 --|
7 ------------- 7
20 ------------ 8

ACK!  Just did this last part from memory and not sure I got it completely
right.  If you try this and it doesn't work, email for the correct pinout.
What is so ugly about this?  NO CD OR DTR is passed from the card.  I imagine
this was a space related issue - there is just barely enough room for 8
RJ12 ports on the back of a PC card.  RJ12's are 6 conducter cables, so you
have enough for the two grounds, TX,RX,RTS,and CTS.  All very necessary for
high speed serial communication.  Unfortunately dial-in modems rely heavily
on CD and DTR to correctly answer calls and reset the line at the end of a
session.  With this card, CD and DTR must be tied HIGH (which would be the
correct thing for direct attached terminals), as getty immediately spawns
login when it starts up.  At any rate, I have never seen one, but I would
bet a lot of money that the BOCA 6 port card has six RJ45 ports instead
(10 conductor), because that's as many RJ45's that will fit on the side
of a card.  The manual for the 8 port card has info on the 16 port card;
it is evident that the 16 port is based on RJ45 and carries the CD and DTR
signals.

Soooo.... the 8 port card is useless for dial-in, but works great for direct
attached terminals or dial-out modems.  If you need multi-serial support
for the purpose of dial-in, get the six or sixteen port models.

(miffed),

Jeff LaCoursiere
Network Admin
UPRC
Ft. Worth, TX