Solved

Modem initilization!

Posted on 1998-08-28
6
336 Views
Last Modified: 2013-12-05

 where is the modem initilization file in RedHat and Slackware? I have a 56k Flex modem on ttyS1 and I need to give him a initilization string before it dials the Internet ...
 
0
Comment
Question by:elvaaa
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1637898
Modem intialization is done by the dialing program.
Which one are you using?
0
 

Expert Comment

by:jokan
ID: 1637899
In Redhat try

/etc/sysconfig/network-scripts/ifcfg-ppp0
0
 
LVL 1

Expert Comment

by:pestilence
ID: 1637900
If you use minicom (just type minicom as root), in the main screen type your initialitazion strings and then fire up a connection.

0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Expert Comment

by:graham_leach
ID: 1637901
This depends upon how you are dialing the internet.

Using MINICOM:  Type AT XX XX XX

Where XX is valid at commands.  See www.modem.com for a complete list of AT command switches and syntax.

Using PPP:

This is a little more complicated.  Most people use a program called CHAT to actually get the interface (MODEM) working before pppd is invoked.  CHAT uses a dialog (prompt/response) model to control the flow of execution.  Here is a sample CHAT script that programs the modem and then dials an ISP.  Note that the CHAT script is invoked from the call to pppd on the command line or (more usually) from a file in /usr/sbin called ppp-on or ppp-up

NOTE:  The line which has AT is where you would place your own initialization strings.  Remember to place all extended characters (%,$) in a line that has quotes (') around it.

CHAT:

#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the
# connection protocol for the desired connection.
#
exec chat -v                                                                    \
        TIMEOUT          3                                                    \
        ABORT              '\nBUSY\r'                                     \
        ABORT              '\nNO ANSWER\r'                         \
        ABORT              '\nRINGING\r\n\r\nRINGING\r'    \
        ''                         \rAT                                               \
        'OK-+++\c-OK'   ATH0                                             \
        TIMEOUT          30                                                  \
        OK                      ATDT$TELEPHONE                    \
        CONNECT         ''                                                    \
        ogin:--ogin:         $ACCOUNT                                   \
        assword:            $PASSWORD

0
 

Author Comment

by:elvaaa
ID: 1637902

pestilence,

I do not have minicom installed. I want my init string to go in modem before the ppp-on* script in Slackware dials internet ...
 
 
0
 
LVL 1

Accepted Solution

by:
fmismetti earned 20 total points
ID: 1637903
Usually, the ppp-on script calls a script named
/etc/ppp-on-dialer. Slackware does this way, at least (look in the contents of your ppp-on script to be sure)

In ppp-on-dialer you will see:
exec chat -v                                            \
        TIMEOUT         3                               \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        'OK-+++\c-OK'   ATH0                            \
        TIMEOUT         30                              \
        OK              ATDT$TELEPHONE                  \
        CONNECT         ''                              \
        ogin:--ogin:    $ACCOUNT                        \
        assword:        $PASSWORD

Change the line:

        ''              \rAT                            \

To

        ''              '\rAT XX XX XX XX XX'           \

Where XX are your modem commands. Then run ppp-on. You can execute "tail -f /var/adm/messages" to see the dialing process.

Hope it helps you.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Ubuntu - Volume "boot" has only 0 bytes disk space remainig 6 85
Rate limit for DNS queries 7 84
LINUX backups with VEEAM 8 119
IP 10.0.1.2 / 255.0.0.0 61 56
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question