Operating System - HP-UX
1753257 Members
5321 Online
108792 Solutions
New Discussion юеВ

Re: How to configure modem in 11.31 with SMH?

 
SOLVED
Go to solution
Steven Schweda
Honored Contributor

Re: How to configure modem in 11.31 with SMH?

> The same thing:

Ok. Apparently, you need an entry in the
"Devices" file before "cu" will do anything
useful. I added a couple of lines to mine,
and things seemed to improve:

dyi # tail -4 /etc/uucp/Devices
# NOTE: blank lines and lines that begin with a , , or # are ignored
serial0 tty0p0 - 9600 direct
serial1 tty1p0 - 9600 direct

dyi #


Before:

dyi # cu -l tty1p0
Connect failed: Requested device/system name not known


After:

dyi # cu -l tty1p0
Connected
I'm typing this on another system which
is connected to this serial port.
And things I type here appear there.
[...]


So, the "/dev/" stuff isn't needed, showing
how much I don't know. (Lower bound,
anyway.) On the bright side, you can
apparently specify the (default) line speed
there, saving some "cu" command-line work
later.


It might be wise to avoid the serial port
being used for the console terminal, if
you're using a serial port for the console.


The diagnostic technique was to use "truss":

truss cu -l

which shows that it looks at that "Devices"
file, and then dies, which suggested that
that file's contents could be more important
than one might have expected.
dictum9
Super Advisor

Re: How to configure modem in 11.31 with SMH?

I got much farther. I modified the /etc/uucp/Devices file like this.
But the cu command now fails in this way:


Direct cul1p0 - 9600 direct
Direct cul1p1 - 9600 direct



#: /usr/bin/cu -s9600 -lcul1p0
Connect failed: line problem
#:
Steven Schweda
Honored Contributor

Re: How to configure modem in 11.31 with SMH?

> Connect failed: line problem

Sounds like a line (cable) problem. I'm away
from my hardware at the moment, so I can't
check much. As I recall, my MultiTech modems
all had 25-pin D connectors (female, DCE),
and I'd guess that the computer's 9-pin
connector would be male and DTE, so I'd
expect some normal 9-to-25-pin adapter to be
all you'd need. (_Not_ a null modem cable.
(Or else two null modems.))

> [...] connected to it.

Not a very detailed description of the cable
being used.

I'd throw a voltmeter at the modem and the
cable you're connecting to it, and try to see
if outputs are going to inputs. You could
also try to loop TXD back to RXD (pins 2 and
3), which I'd expect to let you see what you
type.

Possibly informative:

stty -a < /dev/whatever

I wouldn't bet on it, but you could have
some exotic flow-control stuff set.