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"