wvdial in GPRS, PPP daemon has died. (exit code = 10)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
wvdial in GPRS, PPP daemon has died. (exit code = 10)
Hi,
I have some problems with 'Wvdial' Would you pls help me to sort it out !
Details
Distribution : Debian Sarge
Modem : Samsung SGH C130
Port : /dev/sy0
Provider : Airtel India
Dial No : *99**1*1#
Password :
Username :
APN : airtelgprs.com But Idont know where to place this APN line ( is in resolv.conf? OR optins ? )
Username & password is not required ,Provider is not mentioned ,It is working in Windows XP. with out username & Password
My wvdial.conf is :
[Dialer Defaults]
Modem = /dev/ttyS0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99**1*1#
Username = " "
Password = " "
Wvdial.out File ( which is obtained by the command wvdial 2>&1 | tee wvdial.out )
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99**1*1#
--> Waiting for carrier.
ATDT*99**1*1# ( In one forum i found ATD ,how can i modify this ?)
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Wed Jan 30 02:18:14 2002
--> pid of pppd: 4263
--> Using interface ppp0
--> Using interface ppp0
--> Disconnecting at Wed Jan 30 02:18:44 2002
--> The PPP daemon has died: PPP negotiation failed (exit code = 10)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 10)
Please let me know if there are mistakes in my configuration .
Thanks
To use "ATD" as your dial string (rather than "ATDT") try adding the following to wvdial.conf
Dial Command = ATD
You appear to be actually connecting to something though based on the Carrier detected. Waiting for prompt.
line, so I am not sure dialing is your problem.
This article (pdf file) suggests you would identify your APN in a modem initialization string. The article may not be talking about the exact modem you are using, but see if it doesn't give you some ideas about what to try. And here is another article that seems to be saying about the same thing.
I am not sure about the bad init string (but maybe my suggestion doesn't work!). But I noticed you took out the Dial No line. The Dial Command line was to be in addition to what you had there before. I would add the Dial No string back in before I tried anything else.
I should make sure you are clear that I have used wvdial for standard dialup, but not for what you are doing. You should also know that I am unfamilar with Dial No. But I will note that on my system, wvdial logs everything it does into /var/log/messages, so I can see exactly what was done when something goes wrong. I.e., I get more detail than what you are showing. You might check your log to see if it has this info.
First, I want to appologize for an error I made in my last post; somehow I did not see your phone line and thought the file contained no phone number!
Also, I want to clarify what I was talking about wrt /var/log/messages. Here is a snippet of my file showing wvdial entries, followed by the start of pppd entries (of course, the details would differ from yours):
Code:
Jan 8 00:15:18 Vectra WvDial: Initializing modem.
Jan 8 00:15:18 Vectra WvDial: Sending: ATZ
Jan 8 00:15:18 Vectra WvDial: ATZ
Jan 8 00:15:19 Vectra WvDial: OK
Jan 8 00:15:19 Vectra WvDial: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Jan 8 00:15:19 Vectra WvDial: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Jan 8 00:15:19 Vectra WvDial: OK
Jan 8 00:15:19 Vectra WvDial: Sending: AT&D3 W1
Jan 8 00:15:20 Vectra WvDial: AT&D3 W1
Jan 8 00:15:20 Vectra WvDial: OK
Jan 8 00:15:20 Vectra WvDial: Sending: ATM1L1
Jan 8 00:15:20 Vectra WvDial: ATM1L1
Jan 8 00:15:20 Vectra WvDial: OK
Jan 8 00:15:20 Vectra WvDial: Modem initialized.
Jan 8 00:15:20 Vectra WvDial: Sending: ATDT xxxyyy-zzzzz
Jan 8 00:15:20 Vectra WvDial: Waiting for carrier.
Jan 8 00:15:20 Vectra WvDial: ATDT xxxyyy-zzzzz
Jan 8 00:15:45 Vectra WvDial: +MCR: V92
Jan 8 00:15:45 Vectra WvDial: +MRR: 31200,46667
Jan 8 00:15:46 Vectra WvDial: +ER: LAPM
Jan 8 00:15:46 Vectra WvDial: CONNECT 115200
Jan 8 00:15:46 Vectra WvDial: Carrier detected. Starting PPP immediately.
Jan 8 00:15:46 Vectra pppd[10581]: Serial connection established.
Jan 8 00:15:46 Vectra pppd[10581]: Using interface ppp0
Jan 8 00:15:46 Vectra pppd[10581]: Connect: ppp0 <--> /dev/modem
So from your last post I don't know if your log file didn't contain any wvdial entries or if everything went OK. I am not sure, but I am wondering if the "LCP: timeout sending Config-Requests" corresponds to the "PPP negotiation failed (exit code = 10)" in your first post.
You might try increasing the number of config-requests with an lcp-max-configure line in your /etc/ppp/options file. You must supply a number after it; the default is ten. I have never done this, so be sure to take a look at this in the pppdman page, and you also might want to google on it.
Last edited by blackhole54; 01-08-2007 at 02:11 AM.
Edit (mainly comment and uncomment) the /etc/ppp/peers/gprs file for serial cable.
... #/dev/ttyS0 # serial port one /dev/ttyS1 # serial port two #/dev/ircomm0 # IrDA serial port one #/dev/ttyUB0 # Bluetooth serial port one ... 115200 # fast enough #57600 # perhaps usefull with IrDA ... crtscts # serial cable and Bluetooth #nocrtscts # IrDA ...
PHP Code:
Actully I am totaly confused with all these, I think it is better to study the things step by step, In forums all are having different ideas, HOw can i approach this problem Black Hole? and what is your suggestion?
I checked a few things and ran an experiment; Apparently wvdial logs differently on my system than yours because it is called differently. Specifically, mine is called from within pppd with the --chat option used. When I manually call it from the command line, I get output like yours and nothing in /var/log/messages. This is just for your info -- I am not suggesting you change anything on your system.
Quote:
Originally Posted by kcarun
I think it is better to study the things step by step
Point well taken.
To get some background you might want to look over this howto. But that document can throw you in the deep end pretty fast. You might want to just look through it to see what general concepts you can pull out rather than worrying about the details right now.
You need to be aware that there are two different, mutually exclusive ways to go about connecting. The howto I just mentioned, and the link you provided in post #10 talk about using chat scripts. This is an alternate way of doing things than using wvdial, which is discussed in the links I provided in post #2. So the first thing you need to decide is which method you wish to try. And note that if you wish to follow the instructions (using a chat script) provided in your link (post #10), that you are need to download and modify some files.
Some things I have gathered from your link and the link I mentioned above:
The correct dial commandisATD rather than ATDT
Different telephones behave differently. So you need to pay attention to this, and if you post back, you should include the model and make of the phone you are using.
The string you are using for a phone number, I think is really a special command to the phone. From the howto linked above, certainly *98*2# is a special command that tells the phone to execute something already stored in it (that you might have to set up yourself). Now I notice this is different from the *9***1# used in the article you linked to, which is different yet from the *99**1*1# that you are using. So was this number you are using provided to you from your cell phone company, or else, where did you get it?
That number *99**1*1# , i got it from my provider and the same is using in my Wndows box, which is working fine. but i need to switch to Debian completly. Nowadays i am booting to Windows only for Browsing.
Anyway i decided to approach the issue in a clear manner . So thanks for your help Black hole , I need your helps, I am newbie in this , have to learn lot of things.
Does YOUR Linux Box have KDE installed? IF Yes, try using Kppp. It is very easy to setup, and is configurable after setup to tweek to YOUR needs. Is it possible...that YOUR modem connects in M$Windows, but has not yet ever connected in Debian? IF never connected this modem in Debian...I strongly urge YOU to get an external serial modem that uses an RS-232 serial cable to YOUR serial port on YOUR Motherboard. On the circuit board is a controller chip that does all the work that the software in the Distro used to do. Plus, the Linux Distro uses the serial connection for most software applications. Very few Distros use the PCI modem interface successfully. And it is always a headache to configure. Try http://tldp.org/HOWTO/HOWTO-INDEX/howtos.html
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.