LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   configure lucent win modem at command line (https://www.linuxquestions.org/questions/linux-hardware-18/configure-lucent-win-modem-at-command-line-34101/)

rioguia 10-29-2002 06:11 AM

configure lucent win modem at command line
 
i am trying to install lucent win modem from the command line in redhat 7.3. after installing the modem, kudzu recognized it and asked to configure it (which I did).

1. check to make sure modules hav loaded


[root@work root]# lsmod
Module Size Used by Not tainted
sd_mod 12864 0 (autoclean)
nls_iso8859-1 3488 1 (autoclean)
nls_cp437 5120 1 (autoclean)
vfat 11804 1 (autoclean)
fat 36152 0 (autoclean) [vfat]
ppp_generic 23660 1 (autoclean)
slhc 6220 0 (autoclean) [ppp_generic]
sr_mod 16056 0 (autoclean)
i810_audio 23136 0 (autoclean)
ac97_codec 12224 0 (autoclean) [i810_audio]
soundcore 6212 2 (autoclean) [i810_audio]
i810 73464 1
agpgart 40256 7 (autoclean)
parport_pc 17476 1 (autoclean)
lp 8576 0 (autoclean)
parport 33536 1 (autoclean) [parport_pc lp]
natsemi 17480 1
ide-scsi 9376 0
ide-cd 30144 0
cdrom 31936 0 [sr_mod ide-cd]
usb-storage 54956 0
scsi_mod 104848 4 [sd_mod sr_mod ide-scsi usb-storage]
usb-uhci 24324 0 (unused)
usbcore 71072 1 [usb-storage usb-uhci]
ext3 64800 2
jbd 47892 2 [ext3]



2. copy scripts from the /usr/share/doc/ppp-2.04/scripts/ppp-o* /etc/ppp

3. edit the ppp-on script with
*************************************************
#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=703-994-4005 # The telephone number for the connection
ACCOUNT=myname@speakeasy.net # The account name for logon
PASSWORD=mypassword # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS0 57600 \

**************************************************

4. make the scripts executable
chmod +x /etc/ppp/ppp-o*

5. monitor modem for error messages:
*************************************************
tail -f /var/log/messages
Oct 28 23:27:16 localhost kernel: i810_audio: AC'97 codec 0 supports AMAP, total channels = 2
Oct 28 23:27:16 localhost modprobe: modprobe: Can't locate module sound-service-0-0
Oct 28 23:27:20 localhost gnome-name-server[978]: starting
Oct 28 23:27:20 localhost gnome-name-server[978]: name server starting
Oct 28 23:27:20 localhost gnome-name-server[979]: starting
Oct 28 23:27:20 localhost gnome-name-server[979]: name server was running on display, exiting
Oct 28 23:27:20 localhost kernel: Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
Oct 28 23:27:20 localhost kernel: sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Oct 28 23:27:25 localhost gconfd (root-995): starting (version 1.0.9), pid 995 user 'root'
Oct 28 23:27:31 localhost kernel: cdrom: This disc doesn't have any tracks I recognize!
Oct 28 23:29:55 localhost kernel: CSLIP: code copyright 1989 Regents of the University of California
Oct 28 23:29:55 localhost kernel: PPP generic driver version 2.4.2
Oct 28 23:29:55 localhost pppd[1089]: pppd 2.4.1 started by root, uid 0
Oct 28 23:29:56 localhost chat[1090]: timeout set to 3 seconds
Oct 28 23:29:56 localhost chat[1090]: abort on (\nBUSY\r)
Oct 28 23:29:56 localhost chat[1090]: abort on (\nNO ANSWER\r)
Oct 28 23:29:56 localhost chat[1090]: abort on (\nRINGING\r\n\r\nRINGING\r)
Oct 28 23:29:56 localhost chat[1090]: send (rAT^M)
Oct 28 23:29:56 localhost chat[1090]: expect (OK)
Oct 28 23:29:59 localhost chat[1090]: alarm
Oct 28 23:29:59 localhost chat[1090]: send (+++)
Oct 28 23:29:59 localhost chat[1090]: expect (OK)
Oct 28 23:30:02 localhost chat[1090]: alarm
Oct 28 23:30:02 localhost chat[1090]: Failed
Oct 28 23:30:02 localhost pppd[1089]: Connect script failed
Oct 28 23:31:49 localhost kernel: floppy0: data CRC error: track 2, head 0, sector 7, size 2
Oct 28 23:31:50 localhost kernel: floppy0: data CRC error: track 2, head 0, sector 7, size 2
Oct 28 23:31:50 localhost kernel: end_request: I/O error, dev 02:00 (floppy), sector 78
Oct 28 23:31:51 localhost kernel: floppy0: data CRC error: track 3, head 0, sector 16, size 2
Oct 28 23:31:51 localhost kernel: floppy0: data CRC error: track 3, head 0, sector 16, size 2
Oct 28 23:31:51 localhost kernel: end_request: I/O error, dev 02:00 (floppy), sector 123
Oct 28 23:31:52 localhost kernel: floppy0: data CRC error: track 4, head 0, sector 7, size 2
Oct 28 23:31:52 localhost kernel: floppy0: data CRC error: track 4, head 0, sector 7, size 2
Oct 28 23:31:52 localhost kernel: end_request: I/O error, dev 02:00 (floppy), sector 150
Oct 28 23:31:55 localhost kernel: floppy0: data CRC error: track 2, head 0, sector 7, size 2
Oct 28 23:31:55 localhost kernel: floppy0: data CRC error: track 2, head 0, sector 7, size 2
Oct 28 23:31:55 localhost kernel: end_request: I/O error, dev 02:00 (floppy), sector 78
**************************************************

6. initiate the dialup script

/etc/ppp/ppp-on

(see the above tail error messages. please note that i initially followed the script's suggestion to rename /dev/ttyS0 as dev/modem if kudzu recognized the modem and got an error message that /dev/modem "was not found." Therefore, I switched it back to ttySo. Now I get the error message:
ttyS0 is locked by pid 1053."

sidboyce 01-26-2003 07:39 AM

Check http://www.linmodems.org, if you have a Lucent AMR modem though, you are out of luck. There is support for Apollo and MARS chipsets only.
Regards
Sid.


All times are GMT -5. The time now is 10:01 AM.