Networking Forums

Networking Forums > Computer Networking > Linux Networking > GPRS connection problems

Reply
Thread Tools Display Modes

GPRS connection problems

 
 
Eduardo
Guest
Posts: n/a

 
      07-14-2004, 01:36 AM
Hello all,

I've got an arm intel PXA processor running linux, debian based.
I have attached a serial GSM/GPRS modem to it, this is a Comtech
OEM-GPRS-2E, which uses an Ericsson GM47/48 engine.
My telecom provider is telecom newzealand.
The ppp package is installed.

I have used the following script:
http://www.cl.cam.ac.uk/Research/SRG...pp-scripts.tgz
(source reproduced at the end of the mail),
In which i've only modified the APN, so that it is now: www.vodafone.net.nz

This is the output:
> pppd call gprs-eric &

GPRS modem init: press <ctrl>-C to disconnect
+ defining PDP context
+ defining QoS requirements
+ attaching to GPRS
Connect script failednnection

Thanks for your help !

Eduardo

__________________________________________________ _____
SCRIPT FILES:
---------------------------------
gprs-eric
---------------------------------
#
# pppd options for Ericsson r520 / T39
# Replace the obvious lines with your username and modem device
#
# $Id: gprs-eric,v 1.2 2001/12/11 10:50:55 tjd21 Exp $

name tjd21
/dev/ttyS3

# Serial port line speed
57600

# Hack to get around T39 firmware bug that prevents repeat
# connections w/o power cycle
receive-all

# Generic GPRS options
file /etc/ppp/gprs-options

# Chat scripts
connect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-eric-connect-chat"
disconnect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-disconnect-chat"


---------------------------------
gprs-eric-connect-chat
---------------------------------

#
# chat script to open Sonera GPRS service with Ericsson R520m.
#
# If ppp negotiation stalls, try restarting the phone.
# For more details of what the commands do, see ETSI TS 127 007
# (AT command set for User Equipment), at http://www.etsi.org/,
# and your phone's documentation.
#
# $Id: gprs-eric-connect-chat,v 1.4 2001/12/18 15:58:37 tjd21 Exp $

# Boilerplate
#
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT '\nRINGING\r\n\r\nRINGING\r'
SAY "GPRS modem init: press <ctrl>-C to disconnect"

# Wake up the modem
#
TIMEOUT 5
'' '+++AT'
OK-ATQ0V1&C1-OK 'ATE1'
ABORT 'ERROR'
TIMEOUT 12


# Factory defaults on the Ericsson are pretty sane; let's go with them.
# (RTS/CTS, 50sec call timeout, 8n1/auto-rate, verbose responses)
# Also, use '+CME ERROR' codes for ME errors, 'ERROR' for syntax errors
#
OK 'AT&F'
OK 'AT+CMEE=2'

# The Ericsson has multiple contexts; set ourselves up in context 2:
# cid = 2 (which context)
# PDP_type = IP (packet type)
# APN = mob.cl.cam.ac.uk (GGSN)
# PDP_addr = "0.0.0.0" (our address, null means they choose)
# data_comp = 0 (data compression)
# head_comp = 0 (header compression)
#
OK 'AT+CGDCONT=2,"IP","www.vodafone.net.nz","0.0.0.0" ,0,0'
SAY "\n + defining PDP context"

# QoS requested, and minimum accptable, for our context
# (<cid>,<precedence>,<delay>,<reliability>,<peak>,< mean>)
# "0" means let the network pick.
#
OK 'AT+CGQREQ=2,0,0,0,0,0'
SAY "\n + defining QoS requirements"
OK 'AT+CGQMIN=2,0,0,0,0,0'

# Attach to the GPRS service. Strictly, we don't need this step,
# as AT+CGDATA will do it for us, but doing it explicitly makes it
# a little easier to debug.
#
TIMEOUT 45
OK 'AT+CGATT=1'
SAY "\n + attaching to GPRS"

# Enter data state
#
OK 'AT+CGDATA="PPP",2'
SAY "\n + requesting data connection"
CONNECT ''
SAY "\n + connected"








 
Reply With Quote
 
 
 
 
Eduardo
Guest
Posts: n/a

 
      07-14-2004, 01:49 AM
In case its' not clear the problem is that i can't get connected to the GPRS
network
I'd be very grateful for any help, cheers
Eduardo

"Eduardo" <(E-Mail Removed)> wrote in message
news:cd22ms$be9$(E-Mail Removed)...
> Hello all,
>
> I've got an arm intel PXA processor running linux, debian based.
> I have attached a serial GSM/GPRS modem to it, this is a Comtech
> OEM-GPRS-2E, which uses an Ericsson GM47/48 engine.
> My telecom provider is telecom newzealand.
> The ppp package is installed.
>
> I have used the following script:
> http://www.cl.cam.ac.uk/Research/SRG...pp-scripts.tgz
> (source reproduced at the end of the mail),
> In which i've only modified the APN, so that it is now:

www.vodafone.net.nz
>
> This is the output:
> > pppd call gprs-eric &

> GPRS modem init: press <ctrl>-C to disconnect
> + defining PDP context
> + defining QoS requirements
> + attaching to GPRS
> Connect script failednnection
>
> Thanks for your help !
>
> Eduardo
>
> __________________________________________________ _____
> SCRIPT FILES:
> ---------------------------------
> gprs-eric
> ---------------------------------
> #
> # pppd options for Ericsson r520 / T39
> # Replace the obvious lines with your username and modem device
> #
> # $Id: gprs-eric,v 1.2 2001/12/11 10:50:55 tjd21 Exp $
>
> name tjd21
> /dev/ttyS3
>
> # Serial port line speed
> 57600
>
> # Hack to get around T39 firmware bug that prevents repeat
> # connections w/o power cycle
> receive-all
>
> # Generic GPRS options
> file /etc/ppp/gprs-options
>
> # Chat scripts
> connect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-eric-connect-chat"
> disconnect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-disconnect-chat"
>
>
> ---------------------------------
> gprs-eric-connect-chat
> ---------------------------------
>
> #
> # chat script to open Sonera GPRS service with Ericsson R520m.
> #
> # If ppp negotiation stalls, try restarting the phone.
> # For more details of what the commands do, see ETSI TS 127 007
> # (AT command set for User Equipment), at http://www.etsi.org/,
> # and your phone's documentation.
> #
> # $Id: gprs-eric-connect-chat,v 1.4 2001/12/18 15:58:37 tjd21 Exp $
>
> # Boilerplate
> #
> ABORT 'BUSY'
> ABORT 'NO ANSWER'
> ABORT 'NO CARRIER'
> ABORT 'NO DIALTONE'
> ABORT '\nRINGING\r\n\r\nRINGING\r'
> SAY "GPRS modem init: press <ctrl>-C to disconnect"
>
> # Wake up the modem
> #
> TIMEOUT 5
> '' '+++AT'
> OK-ATQ0V1&C1-OK 'ATE1'
> ABORT 'ERROR'
> TIMEOUT 12
>
>
> # Factory defaults on the Ericsson are pretty sane; let's go with them.
> # (RTS/CTS, 50sec call timeout, 8n1/auto-rate, verbose responses)
> # Also, use '+CME ERROR' codes for ME errors, 'ERROR' for syntax errors
> #
> OK 'AT&F'
> OK 'AT+CMEE=2'
>
> # The Ericsson has multiple contexts; set ourselves up in context 2:
> # cid = 2 (which context)
> # PDP_type = IP (packet type)
> # APN = mob.cl.cam.ac.uk (GGSN)
> # PDP_addr = "0.0.0.0" (our address, null means they choose)
> # data_comp = 0 (data compression)
> # head_comp = 0 (header compression)
> #
> OK 'AT+CGDCONT=2,"IP","www.vodafone.net.nz","0.0.0.0" ,0,0'
> SAY "\n + defining PDP context"
>
> # QoS requested, and minimum accptable, for our context
> # (<cid>,<precedence>,<delay>,<reliability>,<peak>,< mean>)
> # "0" means let the network pick.
> #
> OK 'AT+CGQREQ=2,0,0,0,0,0'
> SAY "\n + defining QoS requirements"
> OK 'AT+CGQMIN=2,0,0,0,0,0'
>
> # Attach to the GPRS service. Strictly, we don't need this step,
> # as AT+CGDATA will do it for us, but doing it explicitly makes it
> # a little easier to debug.
> #
> TIMEOUT 45
> OK 'AT+CGATT=1'
> SAY "\n + attaching to GPRS"
>
> # Enter data state
> #
> OK 'AT+CGDATA="PPP",2'
> SAY "\n + requesting data connection"
> CONNECT ''
> SAY "\n + connected"
>
>
>
>
>
>
>
>



 
Reply With Quote
 
Timothy Murphy
Guest
Posts: n/a

 
      07-14-2004, 10:12 AM
Eduardo wrote:

> In case its' not clear the problem is that i can't get connected to the
> GPRS network
> I'd be very grateful for any help, cheers


(1) There is a program called GPRS_Easy_Connect
(google for "GPRS Easy Connect")
which has settings for networks round the world.

(2) I set a user and password (both "gprs" in my case)
before starting the chat.
Here is my /etc/ppp/peers/gprs:
==================================
rfcomm0 115200 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/O2.chat'
debug
modem
lock
receive-all
nodetach
noipdefault
defaultroute
user gprs
password gprs
usepeerdns
nobsdcomp
nodeflate
logfile "/home/tim/ppp.log"
noauth
==================================

Ps I'm no expert!

(3) I say (as root) "pppd debug call gprs".
This gives lots of debug messages in /var/log/messages ,
and you can probably see exactly where the script fails,


--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      07-14-2004, 01:54 PM
Eduardo <(E-Mail Removed)> wrote:

> I've got an arm intel PXA processor running linux, debian based.
> I have attached a serial GSM/GPRS modem to it, this is a Comtech
> OEM-GPRS-2E, which uses an Ericsson GM47/48 engine.
> My telecom provider is telecom newzealand.
> The ppp package is installed.


> I have used the following script:
> http://www.cl.cam.ac.uk/Research/SRG...pp-scripts.tgz
> (source reproduced at the end of the mail),
> In which i've only modified the APN, so that it is now: www.vodafone.net.nz


> This is the output:
>> pppd call gprs-eric &

> GPRS modem init: press <ctrl>-C to disconnect
> + defining PDP context
> + defining QoS requirements
> + attaching to GPRS
> Connect script failednnection

....

> ---------------------------------
> gprs-eric-connect-chat
> ---------------------------------

....

> # Attach to the GPRS service. Strictly, we don't need this step,
> # as AT+CGDATA will do it for us, but doing it explicitly makes it
> # a little easier to debug.
> #
> TIMEOUT 45
> OK 'AT+CGATT=1'
> SAY "\n + attaching to GPRS"


> # Enter data state
> #
> OK 'AT+CGDATA="PPP",2'
> SAY "\n + requesting data connection"


This is where it failed, with the message "Connect script failed"
overwriting " + requesting data connection" . I'd *guess* the AT
command 'AT+CGDATA="PPP",2' isn't appropriate, or is malformed.

Just so you will know, I don't even have cell phone.

> CONNECT ''
> SAY "\n + connected"


--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* Microsoft is a great marketing organization.
* It _has_ to be */
 
Reply With Quote
 
Bernhard Gätzschmann
Guest
Posts: n/a

 
      07-14-2004, 02:42 PM
Hi all,
I want to boot linux from the Montavista PowerPC Development tree on
the Marvell Evaluation board DB64360. I want to boot it with nfs.
I've got a readme for this case and I have done all the necessary
preparations for this kind of boot (e.g preparing nfs server on the
host pc...)
But when I boot linux I got this messages:
################################################## ########
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 131072 bind 65536)
mv64360_eth_open : Assigned IRQ 32 to MV64360_eth0
eth0: Ethernet port changed link status to DOWN
Finished opening device
eth0: Ethernet port changed link status to DOWN
eth0: Device exited promiscuous mode
eth0: Device exited promiscuous mode
IP-Config: Guessing netmask 255.255.255.0
eth0: Device exited promiscuous mode
IP-Config: Complete:
device=eth0, addr=192.168.1.5, mask=255.255.255.0,
gw=255.255.255.255,
host=192.168.1.5, domain=, nis-domain=(none),
bootserver=192.168.1.1, rootserver=192.168.1.1, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 192.168.1.1
eth0: Ethernet status : Link up, Full Duplex, Speed 1 Gbps
portmap: server 192.168.1.1 not responding, timed out
################################################## ########
and if I execute 'tcpdump' on my host pc I only see activities of my
bootloader but no activity from the linux. Is there anybody who can
help me or give me a hint how to solve the problem.
Or is there anybody who has a similar problem.
Thank you very much in advance
Bernhard
 
Reply With Quote
 
Ondrej Kubecka
Guest
Posts: n/a

 
      07-14-2004, 04:24 PM
I use Siemens phone(s) so this is rather just a guess since SE might be
totally different, but to give some hints:

> OK 'AT+CGDCONT=2,"IP","www.vodafone.net.nz","0.0.0.0" ,0,0'


Actually those comments in your chat file explain this as well, but just
make sure you have these right. I thing you can stay with only first 3
parameters:

first of them (the number) stands for number the GPRS profile in your
phone.

third one is APN of your operator for internet access. Yours might be
right, I was just a little surprised to see this address since cell phone
companies seem to use totally different addresses for this.

My chat script doesn't contain anything else after this point except for
dialing itself which is done by:

ATD*99***1#

number 1 (I believe) here stands for the profile number again.

The whole script looks like this:

TIMEOUT 10
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
'' '\rATZ'
OK 'AT+CGDCONT=1,"IP","INTERNET"'
OK ATD*99***1#
CONNECT

It was that simple and it works, but with my operator and Siemens C/S55
phones.
 
Reply With Quote
 
Eduardo
Guest
Posts: n/a

 
      07-16-2004, 01:33 PM
Hi Ondrej, thanks for the info.
Once your script connected how did you test that connection? just pinging an
IP number?
The reason i ask is that i have tried other scripts since that tell me i've
connected succesfully, and even give me IP numbers, DNS address, i've even
checked with ifconfig that i've got a ppp network device, and still, when i
ping, nothing at all happens !!

Any ideas?

Eduardo

"Ondrej Kubecka" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> I use Siemens phone(s) so this is rather just a guess since SE might be
> totally different, but to give some hints:
>
> > OK 'AT+CGDCONT=2,"IP","www.vodafone.net.nz","0.0.0.0" ,0,0'

>
> Actually those comments in your chat file explain this as well, but just
> make sure you have these right. I thing you can stay with only first 3
> parameters:
>
> first of them (the number) stands for number the GPRS profile in your
> phone.
>
> third one is APN of your operator for internet access. Yours might be
> right, I was just a little surprised to see this address since cell phone
> companies seem to use totally different addresses for this.
>
> My chat script doesn't contain anything else after this point except for
> dialing itself which is done by:
>
> ATD*99***1#
>
> number 1 (I believe) here stands for the profile number again.
>
> The whole script looks like this:
>
> TIMEOUT 10
> ABORT "NO CARRIER"
> ABORT "NO DIALTONE"
> ABORT "ERROR"
> ABORT "NO ANSWER"
> ABORT "BUSY"
> '' '\rATZ'
> OK 'AT+CGDCONT=1,"IP","INTERNET"'
> OK ATD*99***1#
> CONNECT
>
> It was that simple and it works, but with my operator and Siemens C/S55
> phones.



 
Reply With Quote
 
Timothy Murphy
Guest
Posts: n/a

 
      07-16-2004, 02:01 PM
Eduardo wrote:

> Once your script connected how did you test that connection? just pinging
> an IP number?
> The reason i ask is that i have tried other scripts since that tell me
> i've connected succesfully, and even give me IP numbers, DNS address, i've
> even checked with ifconfig that i've got a ppp network device, and still,
> when i ping, nothing at all happens !!
>
> Any ideas?


Note: some sites do not allow you to ping.

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
 
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
Netmotion VPN having loss of connection over GPRS Network Dododawa Wireless Internet 1 04-19-2006 02:33 PM
GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet? D2army Linux Networking 10 02-19-2006 03:09 AM
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
GPRS connection established, but no ping possible Ekkard Gerlach Linux Networking 2 10-23-2004 09:02 PM
GPRS connection Matteo Linux Networking 1 03-01-2004 10:15 PM



1 2 3 4 5 6 7 8 9 10 11