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 07-07-2013, 10:53 AM   #1
karolis
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Rep: Reputation: 0
wvdial fails with "NO CARRIER" on GPRS/EDGE (works fine on 3G)


Hey,

I've been googling around for 10 hours or so and getting pretty desperate.

I have a Huawei K3765 USB modem and a debian linux PC (alix board). It is working fine for a year or 2. I've been using different carriers in different countries and it has never let me down as long as there was a 3G connection.

Now I have moved to a location where 3G is not available. Only options are GPRS/EDGE. And the modem doesn't connect. It did connect fine to the same carrier in a different location, which has 3G available.

The output from wvdial is usually similar to this:

Code:
#wvdial

--> WvDial: Internet dialer version 1.61
--> 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#
--> Waiting for carrier.
ATDT*99#
NO CARRIER
--> No Carrier!  Trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
NO CARRIER      

...
It seems that the problem is that 3G isn't available and the modem can't use 2G for some reason.

my wvdial.conf is as follows:

Code:
[Dialer Defaults]
Modem = /dev/ttyUSB0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = on
Modem Type = Analog Modem
Phone = *99#
New PPPD = yes
ISDN = 0
Username = blank
Password = blank
Baud = 9600
The same modem with the same card works fine on Windows using Mobile Partner.

Any help would be appreciated.

thanks,
Karolis
 
Old 07-08-2013, 05:34 AM   #2
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 390
Blog Entries: 9

Rep: Reputation: 88
try updating your modewitch, as per:-
http://www.zoringroup.com/forum/view...php?f=6&t=4077
 
Old 07-08-2013, 05:58 AM   #3
karolis
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pierre2 View Post
try updating your modewitch, as per:-
http://www.zoringroup.com/forum/view...php?f=6&t=4077
Hi,

thank you for your answer.

The dongle is recognized properly as modem and 3 tty interfaces are created:

Code:
# ls /dev/ttyUSB*
/dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2
As I mentioned, the same usb dongle works fine on the same carrier using 3G but not 2G.

I have installed usb-modeswitch and usb-modeswitch-data as debian packages and I would like to keep it that way unless I absolutely have to install from source. Do you think installing from source would make a difference? If yes, why?

Karolis
 
Old 07-08-2013, 06:02 AM   #4
karolis
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Sometimes (seems to be random) instead of throwing "NO CARRIER" message, wvdial starts pppd which later dies:

Code:
# wvdial
--> WvDial: Internet dialer version 1.61
--> 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
--> Sending: AT+CSQ
AT+CSQ
+CSQ: 18,99
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Jul  7 17:55:01 2013
--> Pid of pppd: 2794
--> Using interface ppp0
--> pppd: œÉ[08][10]–É[08]hÉ[08]
--> pppd: œÉ[08][10]–É[08]hÉ[08]
--> pppd: œÉ[08][10]–É[08]hÉ[08]
--> pppd: œÉ[08][10]–É[08]hÉ[08]
--> pppd: œÉ[08][10]–É[08]hÉ[08]
--> pppd: œÉ[08][10]–É[08]hÉ[08]
--> Disconnecting at Sun Jul  7 17:55:03 2013
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
then in /var/log/messages:

Code:
Jul  7 17:55:01 alix pppd[2794]: pppd 2.4.5 started by root, uid 0
Jul  7 17:55:01 alix pppd[2794]: Using interface ppp0
Jul  7 17:55:01 alix pppd[2794]: Connect: ppp0 <--> /dev/ttyUSB0
Jul  7 17:55:01 alix pppd[2794]: CHAP authentication succeeded
Jul  7 17:55:01 alix pppd[2794]: CHAP authentication succeeded
Jul  7 17:55:02 alix pppd[2794]: Modem hangup
Jul  7 17:55:02 alix pppd[2794]: Connection terminated.
Jul  7 17:55:02 alix pppd[2794]: Exit.

Last edited by karolis; 07-08-2013 at 06:08 AM.
 
  


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
"host" works, "dig" fails... what? dafydd2277 Linux - Networking 1 01-06-2012 04:10 PM
(Solved) Mouse actions totally fails after "fine tuning" Debian Elive. nooby Debian 9 03-23-2010 02:48 PM
"Can't resolve host" as user, but works fine as root truthe Linux - Networking 2 10-22-2006 05:41 PM
Labtech mouse "jumps" to the edge of screen, scroll wheel partially works kybishop Linux - Hardware 0 03-25-2006 10:43 AM
WVdial gets "NO CARRIER" && network scripts maybe?? jfish Linux From Scratch 1 01-17-2004 03:13 AM

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

All times are GMT -5. The time now is 08:28 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
Open Source Consulting | Domain Registration