1847255 Members
5553 Online
110263 Solutions
New Discussion

Re: modem configuration

 
Hunan_1
Frequent Advisor

modem configuration

I've been trying to configure an external modem for a D220 server, which has a serial port on the hardware address 8/20/2 and I haven't had succeed.

The message I received after to dial in the the server is:

CONNECT 9600/ARQ/V34/LAPM

but I don't receive the prompt to log into the server.

I'm using a robotics modem.

Any help would be really appreciated.

7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: modem configuration

Did you use SAM to configure the modem. SAM should have added a getty (or uugetty) entry for the port in /etc/inittab.

If there is no inittab entry, there will be no getty, and no login. You could simply have a bad or incorrect cable as well.
If it ain't broke, I can fix that.
John Dvorchak
Honored Contributor

Re: modem configuration

The best way I have found to configure an external modem is via Sam. I usually set them up for dial in and dial out. Once that is done I make an entry in /etc/uucp/Systems and /etc/uup/Devices to match the modem (plenty of examples given in those files to help you). Then ps -ef |grep getty you should see and entry that lists "uugetty" and some other timeout params and which line you have "gened" up (/dev/ttyd0p2 for example). Then you should remember that the mux is probably wired DTE and the modem should be wired DCE. That means a straight throug cable, NOT null modem type. You would probably be best served by setting the modem at "Factory Defaults". Then you can test you connection to the modem using "kermit" (man kermit)

#kermit
Executing /usr/share/lib/kermit/ckermit.ini for UNIX...
Good Afternoon!
C-Kermit 6.0.192, 6 Sep 96, for HP-UX 10.00
Copyright (C) 1985, 1996,
Trustees of Columbia University in the City of New York.
Default file-transfer mode is TEXT
Type ? or HELP for help.
[/dev] C-Kermit>
[/dev] C-Kermit>set line /dev/tty0p2
[/dev] C-Kermit>set speed 9600
/dev/tty0p2, 9600 bps
[/dev] C-Kermit>c
Connecting to /dev/tty0p2, speed 9600.
The escape character is Ctrl-\ (ASCII 28, FS)
Type the escape character followed by C to get back,
or followed by ? to see other options.

_____________________________________________
You should then be able to communicate with the modem using the Hayes AT command set, if you modem is Hayes comapatable.

If your kermit session fails to communicate with the modem then you probably have the wrong cable or the modem is not at factory defaults.
If it has wheels or a skirt, you can't afford it.
Hunan_1
Frequent Advisor

Re: modem configuration

When I add:
set line /dev/ttyd1p0

this message is displayed:

[/] C-Kermit>set line /dev/ttyd1p0
Locked by process 27162
Sorry, device is in use: /dev/ttyd1p0

Any advice?

thanks
A. Clay Stephenson
Acclaimed Contributor

Re: modem configuration

If you are going to use kermit (which is my first step in knowing I have good cables and modem settings), you must first diable any getty's or uugetty's running on that port.

0) kill any kermits that are running
1) vi /etc/inittab and change 'respawn' on that port to 'off' and save the file.
2) init q to force a re-read of the gettydefs file.
3) cd to /var/spool/locks
4) ls and look for any LCK* files and remove them.

You should now be able to use kermit.
If it ain't broke, I can fix that.
Hunan_1
Frequent Advisor

Re: modem configuration

Thanks in advance, but I can't get to be connected trough the modem yet.

It seems that there's no answer because now I can't see anything displayed.

After to make the change

I tried to connect without success

Then I put respawn again on that port, and re-read inittab.

I can't still connect trough the modem
Uday_S_Ankolekar
Honored Contributor

Re: modem configuration

If your mode settings, modem cables are correct then try to add this in /etc/ gettydefs file

19200N # B19200 HUPCL IGNPAR ICRNL IXON OPOST ONLCR CS8 CREAD
ISIG ICANON ECHO ECHOK IXANY TAB3
# B19200 SANE CS8 IXANY TAB3 HUPCL
#login: #19200N

and then you can use this baud rate while creating device or change in /etc/inittab file and re-read inittab file

Goodluck,
-USA..
Good Luck..