Networking Forums

Networking Forums > Computer Networking > Linux Networking > GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet?

Reply
Thread Tools Display Modes

GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet?

 
 
D2army
Guest
Posts: n/a

 
      02-15-2006, 11:35 PM
Hi there,

I have managed to get the Sony Ericsson GPRS GC89 card to connect to the
T-Mobile GPRS network in Linux 2.6.15 and I got messages like these from
pppd :

<beginning of messages from pppd>


Starting GPRS connect script...

Setting the abort string

Initializing modem
AT+cfun=1
OK
AT+cfun=1
OK
AT+cgreg=1
OK
Setting APN


+CGREG: 5
AT
OK
AT+CGDCONT=1,"IP","internet3.voicestream.com"
OK
Dialing...

AT+CGDCONT=2,"IP","internet3.voicestream.com"
OK
ATD*99***1#
CONNECTSerial connection established.
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS4
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x60 <mru 1500> <asyncmap 0x0> <auth pap> <magic
0x30bfe8> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x60 <auth pap>]
rcvd [LCP ConfReq id=0x61 <mru 1500> <asyncmap 0x0> <magic 0x30bfe8> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x61 <mru 1500> <asyncmap 0x0> <magic 0x30bfe8> <pcomp>
<accomp>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3
0.0.0.0>]
rcvd [LCP ProtRej id=0x62 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
rcvd [IPCP ConfReq id=0x60 <addr 72.250.5.0> <compress VJ 0f 01>]
sent [IPCP ConfRej id=0x60 <compress VJ 0f 01>]
rcvd [IPCP ConfNak id=0x1 <addr 72.250.5.8> <ms-dns1 66.94.9.120> <ms-dns3
66.94.25.120>]
sent [IPCP ConfReq id=0x2 <addr 72.250.5.8> <ms-dns1 66.94.9.120> <ms-dns3
66.94.25.120>]
rcvd [IPCP ConfReq id=0x61 <addr 72.250.5.0>]
sent [IPCP ConfAck id=0x61 <addr 72.250.5.0>]
rcvd [IPCP ConfAck id=0x2 <addr 72.250.5.8> <ms-dns1 66.94.9.120> <ms-dns3
66.94.25.120>]
not replacing existing default route to eth0 [192.168.1.1]
local IP address 72.250.5.8
remote IP address 72.250.5.0
primary DNS address 66.94.9.120
secondary DNS address 66.94.25.120
Script /etc/ppp/ip-up started (pid 10848)
Script /etc/ppp/ip-up finished (pid 10848), status = 0x0

</end of connection messages>


My connect script for pppd looks like:

###########################################
/dev/ttyS4
57600
lock
crtscts
methods
modem
defaultroute
user ""
password ""

noipdefault
usepeerdns
novj
noauth
persist
debug
nodetach
ipcp-max-configure 20
maxfail 0
connect "/usr/sbin/chat -v -V -t3 -f /etc/ppp/peers/chat-gprs"



So I apparently I have an ip address for my "ppp0" device in ifconfig:

ppp0 Link encap:Point-to-Point Protocol
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:190 (190.0 b) TX bytes:511 (511.0 b)


But I am apparently still not on the internet. Pinging anywhere doesn't
work. However, I can successfully send SMS messages when I log onto the card
using minicom and playing around with AT commands

I was hoping to consult with everyone on what might be the problem here. Did
I miss a specific step?

Thanks in advance!
I.S.


 
Reply With Quote
 
 
 
 
Aniruddha
Guest
Posts: n/a

 
      02-16-2006, 03:46 AM
> Using interface ppp0
> Connect: ppp0 <--> /dev/ttyS4
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
> rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
> rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbdf9233d> <pcomp> <accomp>]
> rcvd [LCP ConfReq id=0x60 <mru 1500> <asyncmap 0x0> <auth pap> <magic
> 0x30bfe8> <pcomp> <accomp>]
> No auth is possible
> sent [LCP ConfRej id=0x60 <auth pap>]
> rcvd [LCP ConfReq id=0x61 <mru 1500> <asyncmap 0x0> <magic 0x30bfe8> <pcomp>
> <accomp>]
> sent [LCP ConfAck id=0x61 <mru 1500> <asyncmap 0x0> <magic 0x30bfe8> <pcomp>
> <accomp>]
> sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
> sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3
> 0.0.0.0>]
> rcvd [LCP ProtRej id=0x62 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
> rcvd [IPCP ConfReq id=0x60 <addr 72.250.5.0> <compress VJ 0f 01>]
> sent [IPCP ConfRej id=0x60 <compress VJ 0f 01>]
> rcvd [IPCP ConfNak id=0x1 <addr 72.250.5.8> <ms-dns1 66.94.9.120> <ms-dns3
> 66.94.25.120>]
> sent [IPCP ConfReq id=0x2 <addr 72.250.5.8> <ms-dns1 66.94.9.120> <ms-dns3
> 66.94.25.120>]
> rcvd [IPCP ConfReq id=0x61 <addr 72.250.5.0>]
> sent [IPCP ConfAck id=0x61 <addr 72.250.5.0>]
> rcvd [IPCP ConfAck id=0x2 <addr 72.250.5.8> <ms-dns1 66.94.9.120> <ms-dns3
> 66.94.25.120>]
> not replacing existing default route to eth0 [192.168.1.1]
> local IP address 72.250.5.8
> remote IP address 72.250.5.0
> primary DNS address 66.94.9.120
> secondary DNS address 66.94.25.120
> Script /etc/ppp/ip-up started (pid 10848)
> Script /etc/ppp/ip-up finished (pid 10848), status = 0x0
>


I think the problem is pppd is not replacing default route on your
system. Look at log "not replacing existing default route to eth0
[192.168.1.1]".

Try adding options "defaultroute" and "replacedefaultroute" to your
pppd configuration

--
Aniruddha

 
Reply With Quote
 
wild bill
Guest
Posts: n/a

 
      02-16-2006, 04:31 AM
On Wed, 15 Feb 2006 16:35:55 -0800, "D2army" <(E-Mail Removed)> wrote:

>Hi there,
>
>I have managed to get the Sony Ericsson GPRS GC89 card to connect to the
>T-Mobile GPRS network in Linux 2.6.15 and I got messages like these from
>pppd :


Have you looked through the Sony Ericsson AT Commands manual and
properly set up your card to connect with your service provider?

http://www.cepag.de/GC85_GC89/PC%20C...ds_Rev%20B.pdf

Covers: GC75 GC79 GC82 GC83 GC85 and GC89 (and probably a lot more!)

Bill

 
Reply With Quote
 
Sven Geggus
Guest
Posts: n/a

 
      02-16-2006, 08:53 AM
D2army <(E-Mail Removed)> wrote:

> But I am apparently still not on the internet. Pinging anywhere doesn't
> work. However, I can successfully send SMS messages when I log onto the
> card using minicom and playing around with AT commands


how does your routing table (route -n) look like after the ppp connection
has been established?

Sven

--
"and on the third day he rebooted into Linux-1.3.84"
(Linus Torvalds, Easter Kernel Release 1996)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web
 
Reply With Quote
 
M.Kmann
Guest
Posts: n/a

 
      02-16-2006, 11:54 AM
D2army wrote:
> ...
> So I apparently I have an ip address for my "ppp0" device in ifconfig:
>
> ppp0 Link encap:Point-to-Point Protocol
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:6 errors:0 dropped:0 overruns:0 frame:0
> TX packets:11 errors:0 dropped:2 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:190 (190.0 b) TX bytes:511 (511.0 b)
>
>
> But I am apparently still not on the internet. Pinging anywhere doesn't
> ...


where is the IP?
 
Reply With Quote
 
D2army
Guest
Posts: n/a

 
      02-16-2006, 05:49 PM
Hi Sven

yes, it is indeed a problem with the routing table, thanks. The connection
process is unable to modify the routing table for some reason when my
Ethernet is plugged in or enabled. I disabled the Ethernet, re-ran the
connection script, the routing table does gets modified and now the
connection works.

However, the connection is rather unstable for some reason. I observed that
if the network bandwidth gets too high(like around 113kbps) , the modem will
hang up and the connection will terminate. Then if the script tries to
reconnect and gets to the point of executing the AT+CGDCONT commands, I see
a CME Error 3 which means operation not allowed. I will then minicom to the
card and then try to do AT+CFUN=1 to reset the card, but after I execute
that command, everything else i execute afterwards will give a CME Error 513
which means Link Layer Error apparently

I am wondering if this has something to do with how I wrote my Connection
Script. The card connection is not this unstable when used in XP.

"Sven Geggus" <sven-im-(E-Mail Removed)> wrote in message
news:dt1i3a$cba$(E-Mail Removed)...
> D2army <(E-Mail Removed)> wrote:
>
>> But I am apparently still not on the internet. Pinging anywhere doesn't
>> work. However, I can successfully send SMS messages when I log onto the
>> card using minicom and playing around with AT commands

>
> how does your routing table (route -n) look like after the ppp connection
> has been established?
>
> Sven
>
> --
> "and on the third day he rebooted into Linux-1.3.84"
> (Linus Torvalds, Easter Kernel Release
> 1996)
>
> /me is giggls@ircnet, http://sven.gegg.us/ on the Web



 
Reply With Quote
 
John Henderson
Guest
Posts: n/a

 
      02-16-2006, 06:10 PM
D2army wrote:

> However, the connection is rather unstable for some reason. I
> observed that if the network bandwidth gets too high(like
> around 113kbps) , the modem will hang up and the connection
> will terminate. Then if the script tries to reconnect and gets
> to the point of executing the AT+CGDCONT commands, I see
> a CME Error 3 which means operation not allowed.


Unless I'm mistaken, your "AT+CGDCONT" needs to be executed once
only, when you first set your device up for your particular
carrier. That setting should then persist through sessions and
power-ups indefinitely.

John
 
Reply With Quote
 
D2army
Guest
Posts: n/a

 
      02-17-2006, 12:54 AM
Hi John

I believe you are right, but when pppd is going to do a reconnection after
getting disconnected, it will just call the same connect script. This means
those AT+CGDCONT commands will inevitably get called again.

Is it possible to just jump straight to dialing ( "ATD*99***1#" ) during a
reconnection? Is this the right thing to do anyway?

Thanks!
I.S.

"John Henderson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> D2army wrote:
>
>> However, the connection is rather unstable for some reason. I
>> observed that if the network bandwidth gets too high(like
>> around 113kbps) , the modem will hang up and the connection
>> will terminate. Then if the script tries to reconnect and gets
>> to the point of executing the AT+CGDCONT commands, I see
>> a CME Error 3 which means operation not allowed.

>
> Unless I'm mistaken, your "AT+CGDCONT" needs to be executed once
> only, when you first set your device up for your particular
> carrier. That setting should then persist through sessions and
> power-ups indefinitely.
>
> John



 
Reply With Quote
 
John Henderson
Guest
Posts: n/a

 
      02-17-2006, 02:47 AM
D2army wrote:

> Is it possible to just jump straight to dialing (
> "ATD*99***1#" ) during a reconnection? Is this the right
> thing to do anyway?


That's what I do (Linux kppp dialer). Otherwise only an "ATZ"
command gets executed in my GPRS setup (Wavecom external modem
attached to /dev/ttyS0).

John
 
Reply With Quote
 
D2army
Guest
Posts: n/a

 
      02-19-2006, 02:20 AM
Yea, ATZ attempts to restore the card to the factory settings.

But sometimes if I get disconnected, and then I try to even do ATZ, I still
get a CME Error 513

By the way, is there a GUI version of a ppp program for Gnome? I think KPPP
is for KDE

Thanks

"John Henderson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> D2army wrote:
>
>> Is it possible to just jump straight to dialing (
>> "ATD*99***1#" ) during a reconnection? Is this the right
>> thing to do anyway?

>
> That's what I do (Linux kppp dialer). Otherwise only an "ATZ"
> command gets executed in my GPRS setup (Wavecom external modem
> attached to /dev/ttyS0).
>
> John



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet? D2army Wireless Internet 8 02-19-2006 03:09 AM
Wanted: GPRS settings for o2 pay and go data card - NOT WAP Uslot Broadband 2 08-01-2005 09:22 PM
GPRS with a Cingular SIM card Graham Ashton Linux Networking 1 06-21-2005 06:58 PM
AT&T wireless and Linux with G100 gprs card B'ichela Linux Networking 1 07-30-2004 09:31 PM
GPRS Cellular phones and Linux =?UTF-8?B?RGF2aWQgVmlkYWwgUm9kcsOtZ3Vleg==?= Linux Networking 0 07-15-2003 10:44 AM



1 2 3 4 5 6 7 8 9 10 11