Linux - HOWTO (With Stats)

Status
Not open for further replies.
iwan said:
Hi,

mmm, I don't know what wvdial does by default - I just use your wvdial.conf as is and dial with "wvdial novatel internet 3gonly 384k".

But, I've also set up ppp using the normal stuff (/etc/ppp/peers/xxx, and /etc/chatscripts/xxx). In the chat-script I've used the init strings from your wvdial.conf as they would be for the above invocation of wvdial. In here I just use the connect string "CONNECT \d\c".

Mmm, sorry, I'm dizzy. That's not what you wanted to know...

In your wvdial.conf you have:
Phone = *99***1#
and
Dial Command = ATDT
- from which I guess it uses ATDT*99***1#

In my chat script I use ATDT*99***#.

Still - I get the same results either way.

tx!
-i
 
vodacom3g said:
Once you're attached, do a speed test to the Telkom test site to check actual throughput.

I did that, it says:
Code:
Your line speed is approximately 10.1 Kbps or 1.2 kBytes/sec[CODE]

-i
 
Specifying gprs multislot class?

Hi,

Anyone know what the modem control codes are to specify the gprs multislot class?

I don't have 3G unfortunately :( (it's not available in my area anyway)

But I'd like to get the best out of my gprs connection though, :D

My Motorola V550 has class 10 gprs, which is supposed to be configurable between
1 slot up, 4 down or 2 slots up 3 down... this equates to 8-12 Kbps up 32-48 Kbps down
or 16-24 Kbps up 24-36 Kbps down..


Most of the time 1 up 4 down (which is most likely default) is ok..
but at times when I want to upload something like 1MB it takes awfully long..
Switching to 2 up 3 down would improve things .. ever so slightly :D

Any ideas?
 
Option Card -- Modem Hangup on Connect

Hi all,

I use gentoo linux and after ensuring the correct modules were compiled (espcially the option driver under usb serial devices) I have got my laptop to recognise the option vodafone card.

I am using the wcdial.conf file provided in the how to. I only changed the pin entry. When I go wvdial pin option 3gonly internet 64K it seems the card connects and then immediately hangs up. Any ideas?

When I plugin the card and dial up I get

Jan 7 16:05:56 tweety ohci_hcd 0000:03:00.0: OHCI Host Controller
Jan 7 16:05:56 tweety ohci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 5
Jan 7 16:05:56 tweety ohci_hcd 0000:03:00.0: irq 11, io mem 0x54000000
Jan 7 16:05:57 tweety hub 5-0:1.0: USB hub found
Jan 7 16:05:57 tweety hub 5-0:1.0: 1 port detected
Jan 7 16:05:57 tweety PCI: Enabling device 0000:03:00.1 (0000 -> 0002)
Jan 7 16:05:57 tweety ACPI: PCI Interrupt 0000:03:00.1 -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
Jan 7 16:05:57 tweety PCI: Setting latency timer of device 0000:03:00.1 to 64
Jan 7 16:05:57 tweety ohci_hcd 0000:03:00.1: OHCI Host Controller
Jan 7 16:05:57 tweety ohci_hcd 0000:03:00.1: new USB bus registered, assigned bus number 6
Jan 7 16:05:57 tweety ohci_hcd 0000:03:00.1: irq 11, io mem 0x54001000
Jan 7 16:05:57 tweety hub 6-0:1.0: USB hub found
Jan 7 16:05:57 tweety hub 6-0:1.0: 1 port detected
Jan 7 16:05:59 tweety usb 6-1: new full speed USB device using ohci_hcd and address 2
Jan 7 16:05:59 tweety option 6-1:1.0: Option 3G data card converter detected
Jan 7 16:05:59 tweety usb 6-1: Option 3G data card converter now attached to ttyUSB0
Jan 7 16:05:59 tweety option 6-1:1.1: Option 3G data card converter detected
Jan 7 16:05:59 tweety usb 6-1: Option 3G data card converter now attached to ttyUSB1
Jan 7 16:05:59 tweety option 6-1:1.2: Option 3G data card converter detected
Jan 7 16:05:59 tweety usb 6-1: Option 3G data card converter now attached to ttyUSB2
Jan 7 16:08:04 tweety pppd[10504]: pppd 2.4.2 started by root, uid 0
Jan 7 16:08:04 tweety pppd[10504]: Using interface ppp1
Jan 7 16:08:04 tweety pppd[10504]: Connect: ppp1 <--> /dev/tts/USB0
Jan 7 16:08:04 tweety pppd[10504]: CHAP authentication succeeded
Jan 7 16:08:04 tweety pppd[10504]: Modem hangup
Jan 7 16:08:04 tweety pppd[10504]: Connection terminated.
Jan 7 16:08:04 tweety pppd[10504]: Exit.
 
pppd =2.4.2
kernel= 2.6.14
WVdial = 1.54

I dont know if it has anything to do with the pin. When I run the command for vwdial the first time it doesnt complain about the pin. But we get the pppd hangup. If I run the command again I get a badly formated string error for the AT+CPIN=

If I leave out the pin otpion i.e wvdial otpion internet 3gonly 384k I get same error as before -- ie. modem hangup

Maybe I need to enter a puk or something because I might have run the script with the incorrect pin earlier?

I tried
AT+CPIN=(PUK)

But that just gives a format error.

Tazz_Tux said:
Hey mxc,

What version of pppd,wvdial and kernel are you using.

Laterz !!!
 
OK -- Did that. The card was locked. I unlocked it and disabled the pin request. I still cant connect :(

Jan 8 13:22:22 tweety pppd[1110]: pppd 2.4.2 started by root, uid 0
Jan 8 13:22:22 tweety pppd[1110]: using channel 14
Jan 8 13:22:22 tweety pppd[1110]: Using interface ppp0
Jan 8 13:22:22 tweety pppd[1110]: Connect: ppp0 <--> /dev/tts/USB0
Jan 8 13:22:22 tweety pppd[1110]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x8208e1ee> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP ConfReq id=0x1b <asyncmap 0x0> <auth chap MD5> <magic 0x8058f7b> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: sent [LCP ConfAck id=0x1b <asyncmap 0x0> <auth chap MD5> <magic 0x8058f7b> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x8208e1ee> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP DiscReq id=0x1c magic=0x8058f7b]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [CHAP Challenge id=0x1 <5425e0baa40db3d18af54442025954bd>, name = "UMTS_CHAP_SRVR"]
Jan 8 13:22:22 tweety pppd[1110]: sent [CHAP Response id=0x1 <ea53fc02aa82882e388bd33699bc4630>, name = "internet"]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [CHAP Success id=0x1 ""]
Jan 8 13:22:22 tweety pppd[1110]: CHAP authentication succeeded
Jan 8 13:22:22 tweety pppd[1110]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
Jan 8 13:22:22 tweety pppd[1110]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP ProtRej id=0x1d 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
Jan 8 13:22:22 tweety pppd[1110]: Modem hangup
Jan 8 13:22:22 tweety pppd[1110]: Connection terminated.
Jan 8 13:22:22 tweety pppd[1110]: Exit.
 
It would seem like you are blocked from GPRS ?!?!?

mxc said:
OK -- Did that. The card was locked. I unlocked it and disabled the pin request. I still cant connect :(

Jan 8 13:22:22 tweety pppd[1110]: pppd 2.4.2 started by root, uid 0
Jan 8 13:22:22 tweety pppd[1110]: using channel 14
Jan 8 13:22:22 tweety pppd[1110]: Using interface ppp0
Jan 8 13:22:22 tweety pppd[1110]: Connect: ppp0 <--> /dev/tts/USB0
Jan 8 13:22:22 tweety pppd[1110]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x8208e1ee> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP ConfReq id=0x1b <asyncmap 0x0> <auth chap MD5> <magic 0x8058f7b> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: sent [LCP ConfAck id=0x1b <asyncmap 0x0> <auth chap MD5> <magic 0x8058f7b> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x8208e1ee> <pcomp> <accomp>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP DiscReq id=0x1c magic=0x8058f7b]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [CHAP Challenge id=0x1 <5425e0baa40db3d18af54442025954bd>, name = "UMTS_CHAP_SRVR"]
Jan 8 13:22:22 tweety pppd[1110]: sent [CHAP Response id=0x1 <ea53fc02aa82882e388bd33699bc4630>, name = "internet"]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [CHAP Success id=0x1 ""]
Jan 8 13:22:22 tweety pppd[1110]: CHAP authentication succeeded
Jan 8 13:22:22 tweety pppd[1110]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
Jan 8 13:22:22 tweety pppd[1110]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 8 13:22:22 tweety pppd[1110]: rcvd [LCP ProtRej id=0x1d 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
Jan 8 13:22:22 tweety pppd[1110]: Modem hangup
Jan 8 13:22:22 tweety pppd[1110]: Connection terminated.
Jan 8 13:22:22 tweety pppd[1110]: Exit.
 
Mmmmm --- When I put the card in the phone it all seems to work and get registered on vodacom network. I will need to find a windows machine to test it on :(
 
!!DV!! said:
Hi, I did go thru most of this thread, I got my 3G Novatel U630 working in Suse 9.3 with Kinternet with out to much hassel... Didn't even look at wvdial.
The same here, I got the Option card to work on SuSE 10 on a Sony Vaio FS35GP, also using KInternet. I started of with wvdial as per Tazz_Tux, but could not get it going.

Getting KInternet to work was not too difficult, the only problem is that I have to re-insert my datacard after each drop of the 3G connection. Reason being that I've included the PIN in the config, and it fails to init properly the 2nd time round.

But all in all, a rather pleasant experience ;)

Thanks to Tazz_Tux and !!DV!! for your input on this forum!
 
That's interesting - I switched from GNOME to KDE in Ubuntu, I should try KInternet, not that there's anything wrong with TT's wvdial.conf - just that I haven't automated the modprobe [I don't always have the 3G Option card in my notebook at startup] :).

@nextstep, from day 1 I disabled asking for the PIN on an ordinary cellery phone - IMO less complication when using data sim card in a data card :).
 
ic said:
That's interesting - I switched from GNOME to KDE in Ubuntu, I should try KInternet, not that there's anything wrong with TT's wvdial.conf - just that I haven't automated the modprobe [I don't always have the 3G Option card in my notebook at startup] :).

@nextstep, from day 1 I disabled asking for the PIN on an ordinary cellery phone - IMO less complication when using data sim card in a data card :).
Seems as if modprobe is enabled by default in SuSE. As far as the PIN goes, I'm going to diasble that as well.
 
Problems with wvdial - any ideas?

Since Saturday 27 Jan I've been getting strange things with wvdial - it used to work fine, there has been no change to wvdial.conf; but this is what I'm seeing:

(uname says: Linux earth 2.6.12-10-386 #1 Mon Jan 16 17:18:08 UTC 2006 i686 GNU/Linux)
(wvdial says: WvDial 1.54.0: Copyright (c) 1997-2002 Net Integration Technologies, Inc.)
(pppd says: pppd version 2.4.3)

APN internetVPN:

--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+COPS=0,0,"Vodacom-SA",2
OK
--> Sending: AT+CGDCONT=1,"IP","internetvpn";
OK
--> Sending: AT+CGEQMIN=1,4,64,384,64,384
OK
--> Sending: AT+CGEQREQ=1,4,64,384,64,384
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Jan 31 21:14:19 2006
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> pid of pppd: 9514
--> Using interface ppp0
--> pppd: and
--> pppd: and
--> pppd: and
--> pppd: and
--> pppd: and
--> local IP address 196.207.36.242
--> pppd: and
--> remote IP address 10.64.64.64
--> pppd: and
--> primary DNS address 10.11.12.13
--> pppd: and
--> secondary DNS address 10.11.12.14
--> pppd: and

Note the bogus DNS addresses ... when these come through, name resolution does not work at all, and I can't connect to anything.

APN internet:

--> Sending: ATZ
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+COPS=0,0,"Vodacom-SA",2
OK
--> Sending: AT+CGDCONT=1,"IP","internet";
OK
--> Sending: AT+CGEQMIN=1,4,64,384,64,384
OK
--> Sending: AT+CGEQREQ=1,4,64,384,64,384
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT 57600
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Jan 31 21:14:57 2006
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> pid of pppd: 9618
--> Using interface ppp0
--> pppd: and
--> pppd: and
--> pppd: and
--> pppd: and
--> pppd: and
--> local IP address 10.54.38.170
--> pppd: and
--> remote IP address 10.64.64.64
--> pppd: and
--> primary DNS address 10.11.12.13
--> pppd: and
--> secondary DNS address 10.11.12.14
--> pppd: and

Again, note the strange DNS addresses. I'm sure that previously *two* sets of addresses used to come through.

Every now and then, the addresses come through as expected:

--> pppd: and
--> local IP address 10.54.88.93
--> pppd: and
--> remote IP address 10.64.64.64
--> pppd: and
--> primary DNS address 196.25.255.34
--> pppd: and
--> secondary DNS address 196.25.255.3
--> pppd: and

Here the DNS addresses are correct, ... and then everything works fine.

Can anyone see problems in my wvdial.conf? Using the same datacard with Dashboard version 5 works fine on the 'internet' APN. The 'internetVPN' APN gave me trouble yesterday with accessing vodacom sites, but I don't think that's related.
 
I've seen the same DNS being issued on a stock standard Windows XP / VMC system, so I believe you're being issued with these from the network.

I have forwarded your situation to the networking guys.

Tazz, can you help here?

ic, maybe this can be part of the Linux thread?
 
v3gout, anything applicably juicy in /var/log/messages at the time?
vodacom3g said:
...
ic, maybe this can be part of the Linux thread?
Was considering merging the threads, but let's see if there's anything in logfiles...:)
 
Last edited:
When it works:

Jan 31 21:18:10 earth pppd[9964]: pppd 2.4.3 started by peter, uid 500
Jan 31 21:18:10 earth pppd[9964]: Using interface ppp0
Jan 31 21:18:10 earth pppd[9964]: Connect: ppp0 <--> /dev/ttyS1
Jan 31 21:18:10 earth pppd[9964]: CHAP authentication succeeded
Jan 31 21:18:15 earth pppd[9964]: Could not determine remote IP address: defaulting to 10.64.64.64
Jan 31 21:18:15 earth pppd[9964]: local IP address 10.54.88.93
Jan 31 21:18:15 earth pppd[9964]: remote IP address 10.64.64.64
Jan 31 21:18:15 earth pppd[9964]: primary DNS address 196.25.255.34
Jan 31 21:18:15 earth pppd[9964]: secondary DNS address 196.25.255.3

When it doesn't work:

Jan 31 21:17:54 earth pppd[9869]: pppd 2.4.3 started by peter, uid 500
Jan 31 21:17:54 earth pppd[9869]: Using interface ppp0
Jan 31 21:17:54 earth pppd[9869]: Connect: ppp0 <--> /dev/ttyS1
Jan 31 21:17:54 earth pppd[9869]: CHAP authentication succeeded
Jan 31 21:18:01 earth pppd[9869]: Could not determine remote IP address: defaulting to 10.64.64.64
Jan 31 21:18:01 earth pppd[9869]: local IP address 10.52.147.112
Jan 31 21:18:01 earth pppd[9869]: remote IP address 10.64.64.64
Jan 31 21:18:01 earth pppd[9869]: primary DNS address 10.11.12.13
Jan 31 21:18:01 earth pppd[9869]: secondary DNS address 10.11.12.14

Can't see much difference ... but the fact that it uses a default remote address looks odd.
 
What is the output of
cat /etc/resolv.conf
before and after the connection ?

And what is the output of
cat /etc/sysconfig/network

What command do you use to connect?
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X