LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2004, 07:38 AM   #1
slack---line
Member
 
Registered: Jul 2003
Location: Sheffield, UK
Distribution: Gentoo/Slackware10.0@AthlonXP2600, 1Gb RAM; Slackware9.1@Dell Latitude X300; Gentoo@Ultra10
Posts: 48

Rep: Reputation: 15
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
 
Old 05-25-2004, 08:00 AM   #2
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
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!
 
Old 05-25-2004, 08:16 AM   #3
slack---line
Member
 
Registered: Jul 2003
Location: Sheffield, UK
Distribution: Gentoo/Slackware10.0@AthlonXP2600, 1Gb RAM; Slackware9.1@Dell Latitude X300; Gentoo@Ultra10
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 05-27-2004, 10:10 AM   #4
slack---line
Member
 
Registered: Jul 2003
Location: Sheffield, UK
Distribution: Gentoo/Slackware10.0@AthlonXP2600, 1Gb RAM; Slackware9.1@Dell Latitude X300; Gentoo@Ultra10
Posts: 48

Original Poster
Rep: Reputation: 15
Cheeky I know, but its got a bit far down the pinboard to be noticed

Any further offers are much appreciated.

Cheers

slack---line
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPP library & pppd, chat return codes ruchika Linux - Networking 1 03-08-2011 02:50 AM
is there a prog like gaim that has voice chat, chat to groups, and webcam support? kublador Linux - Software 3 07-08-2008 07:53 AM
unautomate PPP chat script dosnlinux Linux - Newbie 3 08-03-2005 01:24 PM
Problems with X-chat and Mozilla cferris Fedora 7 02-15-2004 05:55 PM
chat ppp jimjim Linux - Networking 5 09-26-2002 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration