LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   problems with ppp and chat.... (https://www.linuxquestions.org/questions/linux-networking-3/problems-with-ppp-and-chat-185602/)

slack---line 05-25-2004 07:38 AM

problems with ppp and chat....
 
Dear all,

I posted this yesterday in the slackware forum, but the only responses I've recieved so far were to a) try some different software that does all the config for you and b) get a different modem.

I like learning how Linux 'works' and would like to resolve the problem that I have rather than finding a workaround or alternative method. Any help with the following problem would be most appreciated.....

I've been trying to get my modem working under Slackware and have had very little success. I have the following information about what I've tried....

Output from lspci -vv
===============

00:06.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
Subsystem: Zoom Telephonics Inc: Unknown device 8d88
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32
Interrupt: pin A routed to IRQ 17
Region 0: Memory at dfff0000 (32-bit, non-prefetchable) [size=64K]
Region 1: I/O ports at ec00 [size=8]
Capabilities: <available only to root>

Contents of /proc/pci
===============

Bus 0, device 6, function 0:
Communication controller: Conexant HSF 56k HSFi Modem (rev 1).
IRQ 17.
Master Capable. Latency=32.
Non-prefetchable 32 bit memory at 0xdfff0000 [0xdfffffff].
I/O at 0xec00 [0xec07].


Contents of /sr/sbin/ppp-go (The key-part (I think))
====================================

if [ "$1" = "" ]; then
killall -INT pppd 2>/dev/null
rm -f /var/lock/LCK* /var/run/ppp*.pid
(/usr/sbin/pppd -detach connect "/usr/sbin/chat -v -f /etc/ppp/pppscript" & )|| exit 1
#read
#ifconnect
exit 0
fi

Contents of /etc/ppp/pppscript (Modified with comments for working out where its failing)
================================================

ECHO ON
SAY "Attempting to connect to MC Computing...\n"
TIMEOUT 120
SAY "Timeout set to 2 minutes...\n"
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
SAY "Resetting Modem...\n"
'' "ATZ"
SAY "Dialing 08450585000"
OK "ATDP08450585000"
SAY "Number dialed, attempting to connect...\n"
CONNECT ''\c
SAY "Connected, now logging in...\n"
ogin: *Removed on purpose
SAY "Sending Password...\n"
assword: * Removed on purpose
SAY "You are now logged in."
TIMEOUT 75
CONNECT

After running ppp-go output from /var/log/messages
=====================================

May 23 12:18:25 fisher pppd[772]: pppd 2.4.1 started by root, uid 0
May 23 12:18:26 fisher chat[774]: timeout set to 120 seconds
May 23 12:18:26 fisher chat[774]: abort on (ERROR)
May 23 12:18:26 fisher chat[774]: abort on (BUSY)
May 23 12:18:26 fisher chat[774]: abort on (NO CARRIER)
May 23 12:18:26 fisher chat[774]: abort on (NO DIALTONE)
May 23 12:18:26 fisher chat[774]: send (ATZ^M)
May 23 12:18:26 fisher chat[774]: expect (OK)
May 23 12:20:26 fisher chat[774]: alarm
May 23 12:20:26 fisher chat[774]: Failed
May 23 12:20:27 fisher pppd[772]: Exit.

I'm pretty sure the ^M isn't helping here, but I've tried with and without double quotes and have used sed to remove the character from the file, but to no avail (i.e ^M still appears no matter what I do).

I've tried it with Pulse and Tone dilaing (by altering OK "ATDT.." to OK "ATDP.."), but this didn't change the errors that occured

I'm using slacwakre9.1 with kernel 2.4.24 (custom compile, would be 2.6.* but I can't figure out how to get ALSA working....yet :) )

Thanks in advance for any help

slack---line

LuggerHouse 05-25-2004 08:00 AM

Hello there...

Well first, let me congrats you for saying no to those instant solutions... You might be better to install Windoze at some point :-)

Ok, dont realy have a test bench for this one unfortunately so cannot give you step by step or even somewhere where to start from since I cannot reproduce this setup and use ppp0 and a modem... It as been such time where I could have guided you but now it is time of high speed connections so medems are not used anymore....

BUT! That beeing said, I remember that before doing the CHAT/CHAP scripts for my ppp connection, I was always tryiing my connection "by hand" useing minicom and connecting to my ISP so I can see what were the required string to connect...

Try this, at least it will tell ya if your modem works!!

Dont give up!

slack---line 05-25-2004 08:16 AM

LuggerHouse,

Thanks I'll check that out. Getting the modem working is just an interim step on the way to getting the computer sorted in preperation for broadband. I'm going to establish a wireless network before getting broadband. Besides when you have a T100MB at work (100Mb/s) even broadband seems slow ;)

Thanks for the tip I shall look into trying out minicom to connect by hand.

Any more tips/help welcome,

slack---line

slack---line 05-27-2004 10:10 AM

Cheeky I know, but its got a bit far down the pinboard to be noticed ;)

Any further offers are much appreciated.

Cheers

slack---line


All times are GMT -5. The time now is 12:08 AM.