Hi folks,
I finally managed to get my Audiovox RTM8000 GPRS/GSM CF card to connect to the internet. I do have a Wi-Fi card, but I need to connect sometime when I'm not at a hot-spot, so this is an ideal solution for my needs.
My setup:
Sharp Zaurus SL-C760
Using Sash ROM (but a default ROM should work, as the Sash ROM gave me the same errors as the Sharp ROM, the bad Vcc error)
Audiovox RTM8000 GPRS/GSM compact flash card
GPRS/GSM provider: Fido www.fido.ca in Canada
Plan: data only, no voice. CDN$50, unlimited data
Fido network settings: (Note these, so you can replace with your own provider settings
APN: internet.fido.ca
User name: fido
Password: fido
DNS: none
IP: none
Fido simply asks for your smart card number, and the MEI number (from the bottom of your modem), and sets you up (activate)
Steps:
Note: You can download a gzip file containing serial_cs.o and sample scripys from here:
http://www.zaurususergroup.com/modules.php...q=getit&lid=183
Steps 1 and 2 are not required if you are using the Cacko Qtopia 1.2 ROM, as it contains the proper serial_cs module http://www.zaurususergroup.com/index.php?n...iewtopic&t=2232
Step 1.Download serial_cs.o driver. One place that has it available for download:
http://www.iral.com:88/~albertr/zaurus/mis.../serial_cs.o.gz
Step 2 Copy the serial_cs.o to the modules directory:
/lib/modules/2.4.18-rmk7-pxa3-embedix
Type
depmod -a
modprobe serial_cs
Step 3 edit the file /etc/pcmcia/serial.opts and set:
SERIAL_OPTS="uart 16550A"
Step 4 Insert the Audiovox RTM8000 card
Step 5A. Use the network setup application to create a dial-up PPP connection . Simply launch the network setup, select Dial-up PPP from the frop down menu. Click Add, Select, and enter the following information (Images of the screen attached below):
In the Account tab, enter any name, and in the user name and password fields, enter the username and password provided by your GPRS provider. In the phone number field, enter *99#
In the Modem tab screen (image provided below), enter the following modem init string:
AT+CGDCONT=1,\"IP\",\"internet.fido.ca\"
Simply replace "internet.fido.ca" with the APN for your GPRS provider.
Click "OK", and thin click "Connect".
That's it, you're done! The following steps are only required for debug, if the above didn't work
Step 5B Go to the directory /etc/ppp/peers
Create 3 files as follows
a. gprs (replace "fido" with your username)
CODE
# the two lines below help debugging, delete when things work fine
debug debug debug
show-password
# end debug
/dev/ttyS3
115200
crtscts
connect /etc/ppp/peers/connectgprs
user fido
usepeerdns
nomagic
mru 1500
mru 1500
:10.0.0.1
noipdefault
ipcp-accept-local
defaultroute
novj
novjccomp
disconnect /etc/ppp/peers/disconnectgprs
defaultroute
debug debug debug
show-password
# end debug
/dev/ttyS3
115200
crtscts
connect /etc/ppp/peers/connectgprs
user fido
usepeerdns
nomagic
mru 1500
mru 1500
:10.0.0.1
noipdefault
ipcp-accept-local
defaultroute
novj
novjccomp
disconnect /etc/ppp/peers/disconnectgprs
defaultroute
And second file, connectgprs (replace "internet.fido.ca with your provider's APN) Note, make sure you use tabs in editing this file, if you need a template use an original file from the links at the bottom, or wget http://kotinetti.suomi.net/mcfrisk/gprs-connect-chat and make the appropriate edits from this code:
CODE
exec /usr/sbin/chat -sVS
TIMEOUT 5
ECHO ON
ABORT 'nBUSYr'
ABORT 'nERRORr'
ABORT 'nNO ANSWERr'
ABORT 'nNO CARRIERr'
ABORT 'nNO DIALTONEr'
ABORT 'nRINGINGrnrnRINGINGr'
'' rAT
TIMEOUT 12
SAY "Press CTRL-C to close the connection at any stage!"
noipdefault
SAY "ndefining PDP context...n"
OK ATH
OK ATE0V1
OK 'AT+CGDCONT=1,"IP","internet.fido.ca","",0,0'
OK ATD*99#
TIMEOUT 22
SAY "nwaiting for connect...n"
CONNECT ""
SAY "nConnected."
SAY "nIf the following ppp negotiations fail,n"
SAY "try restarting the phone.n"
And last file, disconnectgprs
CODE
exec /usr/sbin/chat -s -V -S
"" "K"
"" "+++ATH"
"" "K"
"" "+++ATH"
Step 6 go to the directory /etc/ppp
edit the file chap-secrets
Add a line to insert your username and password, in my case fido and fido:
fido [tab] * [tab] "fido"
Step 7 Make sure your card is ready, type:
cardctl status
if it shows "suspended", then (only if it is suspended, otherwise skip this step) type:
cardctl resume
Step 8 Now the good part
pppd calll gprs
That should do it!
Step 9 If you want to have the connect/disconnect through the GUI network setting application, simply create a modem connection with username/password and phone number as *99#, then click o.k. (tip: you can enter an accelerator proxy here, if your provider offers one).
Then copy the gprs script to override the generated Zaurus script.
cd /etc/ppp/peers
cp grps DIALUP*
Where DIALUP1234 (or any number) is the one created by the zaurus network app.
Note: Do not edit the connection from the Network setup menu, it will overwrite your connection script
Connection output
CODE
Removed stale lock on ttyS3 (pid 4133)
Press CTRL-C to close the connection at any stage!^M
defining PDP context...
^MAT
OK
ATH
OK
ATE0V1
OK
OK
waiting for connect...
^M
CONNECT
Connected.^M
If the following ppp negotiations fail,
^Mtry restarting the phone.
^M
Serial connection established.
using channel 5
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
Timeout 0x20084bc:0x203b440 in 3 seconds.
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth pap> <pcomp> <accomp>]
lcp_reqci: returning CONFACK.
sent [LCP ConfAck id=0x1 <auth pap> <pcomp> <accomp>]
Untimeout 0x20084bc:0x203b440.
sent [PAP AuthReq id=0x1 user="fido" password="fido"]
Timeout 0x200ebbc:0x203b6e0 in 3 seconds.
rcvd [PAP AuthAck id=0x1 ""]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
sent [CCP ConfReq id=0x1 <bsd v1 15>]
Timeout 0x20084bc:0x203b7a0 in 3 seconds.
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 07 15 03 2f]
Untimeout 0x20084bc:0x203b7a0.
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
rcvd [IPCP ConfReq id=0x1 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x1 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x2 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x2 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x3 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x3 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x4 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x4 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x5 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x5 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x6 <addr 205.151.9.1>]
ipcp: returning Configure-REJ
sent [IPCP ConfRej id=0x6 <addr 205.151.9.1>]
rcvd [IPCP ConfReq id=0x7]
ipcp: returning Configure-ACK
sent [IPCP ConfAck id=0x7]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
rcvd [IPCP ConfNak id=0x1 <addr 205.151.13.55> <ms-dns1 204.92.15.211> <ms-dns3
Untimeout 0x20084bc:0x203b6a0.
sent [IPCP ConfReq id=0x2 <addr 205.151.13.55> <ms-dns1 204.92.15.211> <ms-dns3
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
rcvd [IPCP ConfAck id=0x2 <addr 205.151.13.55> <ms-dns1 204.92.15.211> <ms-dns3
Untimeout 0x20084bc:0x203b6a0.
ipcp: up
local IP address 205.151.xxx.xxx
remote IP address 10.0.0.1
primary DNS address 204.92.15.211
secondary DNS address 204.92.15.212
Script /etc/ppp/ip-up started (pid 4181)
Script /etc/ppp/ip-up finished (pid 4181), status = 0x0
Press CTRL-C to close the connection at any stage!^M
defining PDP context...
^MAT
OK
ATH
OK
ATE0V1
OK
OK
waiting for connect...
^M
CONNECT
Connected.^M
If the following ppp negotiations fail,
^Mtry restarting the phone.
^M
Serial connection established.
using channel 5
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
Timeout 0x20084bc:0x203b440 in 3 seconds.
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth pap> <pcomp> <accomp>]
lcp_reqci: returning CONFACK.
sent [LCP ConfAck id=0x1 <auth pap> <pcomp> <accomp>]
Untimeout 0x20084bc:0x203b440.
sent [PAP AuthReq id=0x1 user="fido" password="fido"]
Timeout 0x200ebbc:0x203b6e0 in 3 seconds.
rcvd [PAP AuthAck id=0x1 ""]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
sent [CCP ConfReq id=0x1 <bsd v1 15>]
Timeout 0x20084bc:0x203b7a0 in 3 seconds.
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 07 15 03 2f]
Untimeout 0x20084bc:0x203b7a0.
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
rcvd [IPCP ConfReq id=0x1 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x1 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x2 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x2 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x3 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x3 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x4 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x4 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x5 <addr 205.151.9.1>]
ipcp: returning Configure-NAK
sent [IPCP ConfNak id=0x5 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x6 <addr 205.151.9.1>]
ipcp: returning Configure-REJ
sent [IPCP ConfRej id=0x6 <addr 205.151.9.1>]
rcvd [IPCP ConfReq id=0x7]
ipcp: returning Configure-ACK
sent [IPCP ConfAck id=0x7]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
rcvd [IPCP ConfNak id=0x1 <addr 205.151.13.55> <ms-dns1 204.92.15.211> <ms-dns3
Untimeout 0x20084bc:0x203b6a0.
sent [IPCP ConfReq id=0x2 <addr 205.151.13.55> <ms-dns1 204.92.15.211> <ms-dns3
Timeout 0x20084bc:0x203b6a0 in 3 seconds.
rcvd [IPCP ConfAck id=0x2 <addr 205.151.13.55> <ms-dns1 204.92.15.211> <ms-dns3
Untimeout 0x20084bc:0x203b6a0.
ipcp: up
local IP address 205.151.xxx.xxx
remote IP address 10.0.0.1
primary DNS address 204.92.15.211
secondary DNS address 204.92.15.212
Script /etc/ppp/ip-up started (pid 4181)
Script /etc/ppp/ip-up finished (pid 4181), status = 0x0
---
Finally, this is a really quick how-to, as I've just connected right now, and thought I'd list all the info before I forget.
Try it out, and hopefully it will work for you too. If not, post here, and we'll try to sort out the problem.
Resources: I found the following info below helpful. I had to make adjustments, and after several trials and errors (4 days) it finally worked. I will list the links, just in case they help you, if my info doesn't work in your case:
http://kotinetti.suomi.net/mcfrisk/linux_gprs.html
http://www.winlab.rutgers.edu/~zhibinwu/gprs.htm
http://www.linuxslate.org/help/Linux_and_GPRS.html
http://kotinetti.suomi.net/mcfrisk/gprs
http://www.zaurus.com/dev/board/index.php?...4&t=314&hl=gprs
Tips from members (copied from the devboard which has been shutdown)
1. Using voice GSM.
QUOTE
From: datatedy
Posted: Sep 10 2003, 01:06 AM
BTW: If you ever like to use you card as a phone try this:
ate1
OK
at+cpin="1111"
OK
atd 001 212 123 4567;
OK
ath
OK
The pin needs to be the pin of your sim card (PIN1). The semikolon after the telephone nunber is important. Otherwise you will try to make a data call.
Claus
Posted: Sep 10 2003, 01:06 AM
BTW: If you ever like to use you card as a phone try this:
ate1
OK
at+cpin="1111"
OK
atd 001 212 123 4567;
OK
ath
OK
The pin needs to be the pin of your sim card (PIN1). The semikolon after the telephone nunber is important. Otherwise you will try to make a data call.
Claus
2. List of international GPRS providers
QUOTE
