On Thu, Aug 23, 2007 at 03:06:45PM +0000, Douglas A. Tutty wrote:
> On Thu, Aug 23, 2007 at 03:37:00PM +0200, Fili Wiese wrote:
> > I'm having trouble setting up a serial connection between two servers
> > using a null modem cable.
> > ...
> > 
> > Maybe the (brand-new) null-modem cable is not wired properly but how do
> > I find that out?
> > 
> ... 
> I have yet to find a ready-made null-modem cable that is actually wired
> correctly for use by UNIX.  How it should be wired can be found in
> several places accessible as packages on Debian.

I've never had any trouble with null modem cables purchased off-the-shelf,
though that may be due to simple requirements.   Unless you're doing
something fancy, or maybe using high data rates, many applications really
only need a 3-wire connection, and the other pins shouldn't matter.
I normally disable hardware handshaking, don't need the ring or the
other wired (and swapped) signals.

Other things to check are the ownership and baud rates. stty can be used
to view and change port/terminal settings, but probably the easiest way
to check out the connection is by using minicom on both ends.

Ken

> 
> Serial-HOWTO
> Modem-HOWTO, both in the doc-linux-HOWTO package
> Hardware book, available in the hwb package.
> 
> Also, in book form:
> Unix System Administration Handbook.  Nemeth, Evi, et.al.
> 
> The actual wireing of the cable can be verified with an ohm-meter if you
> have both ends of the cable in your hand, or by putting a wrap plug on
> one end.  The functioning of the link can be verified with minicom.  If
> you put a wrap plug on one end, and the other end on one of the servers,
> you can use minicom and talk to yourself.  The signal goes down the
> wire, through the wrap plug and back you your box.
> 
> Then you can run minicom at both ends an talk.
> 
> Setting up ppp or something over the wire is a possibility but it won't
> provide any further details if you don't need ppp.  If you _do_ need
> ppp, then the PPP-HOWTO will tell you how to setup a link.  Its really
> quite easy.  Basically you set up mgetty on one box and have ppp on the
> other box access it.  Since there's no modem, there are no dialing
> strings.
> 
> Doug.

-- 
Ken Irving, [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to