Link to home
Start Free TrialLog in
Avatar of akaltz
akaltz

asked on

setting up serial modem

I have an external modem that I am setting up on a Sun box with Solaris 2.6 install on it.  I went into admintool to make the serial port a modem.  My question is, I am not sure how to test the connection to make sure the box communicates to the modem and if it does not work, what I can check to see if it works.  Any help would be appreciated.
Avatar of tfewster
tfewster
Flag of United Kingdom of Great Britain and Northern Ireland image

echo "ATH1" > /dev/term/a (or b) should make the modem go off-hook if the (straight through) cable and tty settings in ttydefs and admintool are correct.

Here are the basic steps:
1-  Delete or disable port monitor services for the port to be used.
2-  tip to port and get an OK back from modem. Set modem registers.
3-  Verify the /etc/ttydefs entry for the answering side, and verify the /etc/uucp/Dialers /etc/uucp/Devices entries for the calling side.
If the modem is bidirectional, then all 3 files need editing.
4-  Enable the port monitor (login services)and specify a new ttydefs entry (aka Baud Rate in admintool) if the modem is for dial-in.
5-  Test dialing out with the 'cu' command.

If you have any problems, let us know which model Sun & which modem you have.

 
Avatar of akaltz
akaltz

ASKER

I have a Sun Ulta Enterprise 2 running Solaris 2.6 with Maintenance Pack 2 and a few other patches on it.  My modem is a U.S. Robotics Sportster 28,800 Faxmodem.  The modem is connected to the top or first serial port so I should be using /dev/term/a.  Can you by any chance tell me about what to look for to verify in the three files. As far as I know, everything is set up correctly.  On HP-UX, when you create a modem it gives you three files that you can use to edit your config stuff.  It does not appear to do that on the Solaris OS. Here is the configuration for my serial port:

Template:  Modem - Bidirectional
Port: a - Service Enable
Baud Rate: 9600
Terminal Type: tvi925
Options: Bidirectional
Login Prompt: login:
Comment: Modem - Bidirectional
Service Tag: ttya
Port Monitor Tag: zsmon
Expert Options: Create utmp Entry
Service: /usr/bin/login
Streams Modules: ldterm, ttcompat
Timeout: Never

ASKER CERTIFIED SOLUTION
Avatar of tfewster
tfewster
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akaltz

ASKER

yes, I will be using the modem to dial out
OK, 2b) Using 'cu' command:
You need 2 lines in /etc/uucp/Devices, for example:
Direct cua/a - 9600 direct
ACU cua/a - 38400 hayes

"hayes" refers to an entry in /etc/uucp/Dialers. The generic hayes
entry was written for old 2400 baud modems. Change the generic entry to:
hayes      =,-,      "" \dAT\r\c OK\r \EATDT\T\r\c CONNECT STTY=crtscts
for hardware flow control)
or
hayes      =,-,      "" P_ZERO "" \dAT\r\c OK\r \EATDT\T\r\c CONNECT
(to insure 8 data bit transfers)

Test dialling out with
cu -d -b8 -l /dev/cua/a <phone number>

Hi akaltz - Are you OK with what I've said so far plus the stuff I e-mailed you?
Avatar of akaltz

ASKER

Yes, I got my modem working while using some of the information that you sent me.  Thanks for your help...
Avatar of akaltz

ASKER

Adjusted points from 200 to 300
Avatar of akaltz

ASKER

Comment accepted as answer
Avatar of akaltz

ASKER

Thanks a lot for your help!