Author Topic: How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet  (Read 67841 times)

tamarian

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://www.lowcarb.ca
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« on: January 30, 2004, 11:15:28 am »
(Updated with less steps)

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".


[span style=\'font-size:25pt;line-height:100%\']That's it, you're done! The following steps are only required for debug, if the above didn't work[/span]


Step 5B Go to the directory /etc/ppp/peers

Create 3 files as follows

a. gprs  (replace "fido" with your username)
Code: [Select]
# 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

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: [Select]


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: [Select]
exec /usr/sbin/chat -s -V -S

"" "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  To connect, go to /etc/ppp/peers and type:

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: [Select]
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 ]

Timeout 0x20084bc:0x203b440 in 3 seconds.

rcvd [LCP ConfAck id=0x1 ]

rcvd [LCP ConfReq id=0x1 ]

lcp_reqci: returning CONFACK.

sent [LCP ConfAck id=0x1 ]

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 ]

Timeout 0x20084bc:0x203b6a0 in 3 seconds.

sent [CCP ConfReq id=0x1 ]

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 ]

Timeout 0x20084bc:0x203b6a0 in 3 seconds.

rcvd [IPCP ConfReq id=0x1 ]

ipcp: returning Configure-NAK

sent [IPCP ConfNak id=0x1 ]

rcvd [IPCP ConfReq id=0x2 ]

ipcp: returning Configure-NAK

sent [IPCP ConfNak id=0x2 ]

rcvd [IPCP ConfReq id=0x3 ]

ipcp: returning Configure-NAK

sent [IPCP ConfNak id=0x3 ]

rcvd [IPCP ConfReq id=0x4 ]

ipcp: returning Configure-NAK

sent [IPCP ConfNak id=0x4 ]

rcvd [IPCP ConfReq id=0x5 ]

ipcp: returning Configure-NAK

sent [IPCP ConfNak id=0x5 ]

rcvd [IPCP ConfReq id=0x6 ]

ipcp: returning Configure-REJ

sent [IPCP ConfRej id=0x6 ]

rcvd [IPCP ConfReq id=0x7]

ipcp: returning Configure-ACK

sent [IPCP ConfAck id=0x7]

sent [IPCP ConfReq id=0x1 ]

Timeout 0x20084bc:0x203b6a0 in 3 seconds.

rcvd [IPCP ConfNak id=0x1


Untimeout 0x20084bc:0x203b6a0.

sent [IPCP ConfReq id=0x2
Timeout 0x20084bc:0x203b6a0 in 3 seconds.

rcvd [IPCP ConfAck id=0x2
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

2. List of international GPRS providers
Quote
I found this link, which lists many global GPRS providers:

http://www.taniwha.org.uk/gprs.html
« Last Edit: June 27, 2004, 08:55:12 pm by tamarian »

tamarian

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://www.lowcarb.ca
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #1 on: February 07, 2004, 03:40:34 pm »
serial_cs.o and sample 3 gprs scripts were uploaded to the ZUG download section, under Applications/Drivers.

tamarian

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://www.lowcarb.ca
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #2 on: March 13, 2004, 09:06:36 pm »
Major update

1. You no longer need the serial_cs module if you are using the Qtopia ROM 1.2

2. You no longer need to create the ppp scripts, as you can enter the data directly in the network setup wizard, using the escape /  for double quotes, as shown in the attached images.

NHT

  • Newbie
  • *
  • Posts: 2
    • View Profile
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #3 on: April 19, 2004, 02:57:20 am »
I have difficulty in making my AudioVox GPRS card works on my C860.   My configuration is as follow C860 and Cocko 1.21 with Japanese interface.    My GPRS services provider does not require user ID or password to sign on.    In a GPRS modem (in PC environment), I just need to specify phone number=*99# and AT+CGDCONT=1,\'IP\', \'sgprs\' as the additional command (where \'sgprs\' is the provider\'s network name).

After I set up in the network wizard and inserted the AudioVox card, the network icon shows up, but when I click for connection, I got a message that \'CF card type serial device is busy\' and cannot proceed any further.

Then, I copied the 3 files (connectgprs, disconnectgprs, gprs) following the instruction mentioned in forum, but still cannot get any success.

Did I miss out anything in the setup?   Appreciate your help.   Thanks.

tamarian

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://www.lowcarb.ca
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #4 on: April 19, 2004, 01:27:42 pm »
Quote
I just need to specify phone number=*99# and AT+CGDCONT=1,\'IP\', \'sgprs\' as the additional command (where \'sgprs\' is the provider\'s network name).

Did you escape those double quotes? each \" should become \"

Quote
I got a message that \'CF card type serial device is busy\' and cannot proceed any further.

You would get this error if the previous dial attempt didn\'t exit cleanly, or something else is trying to use the card. Just pop it out, then pop it in again. Or try the cardctl resume command.

Let me know how it goes.

NHT

  • Newbie
  • *
  • Posts: 2
    • View Profile
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #5 on: April 20, 2004, 10:19:29 pm »
I have used this /\" and cardctl resume, but still got the same error message like before.    Any suggestion on where I should start checking?

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #6 on: May 04, 2004, 09:09:29 am »
Quote
I have used this /\" and cardctl resume, but still got the same error message like before.    Any suggestion on where I should start checking?


Try to use serial_cs module from thepis site.

ZeeUser

  • Full Member
  • ***
  • Posts: 109
    • View Profile
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #7 on: May 07, 2004, 09:36:11 am »
Tamarian:
Thanks for the how-to! It was instrumental in getting my Z connected to T-mobile\'s Unlimited Internet. However, there were a few issues that prevented me from getting connected immediately:

1)Had to log in as root in order to do step 3
2) The text of your walkthrough uses / for the modem init string in step 5a. It uses  in the screenshots, which is what works.
3) My Z specifically had to be in suspend mode before it would connect. Otherwise I would receive a \"CF card type serial device is busy\" error.

I eventually got around those issues myself; no big deal, really. I couldn\'t have done anything without the walkthrough, though (at least, not without a lot of research).

One other issue: Is there any way to prevent the connection from being disconnected when the Zaurus is turned off, or at least to have it automatically re-connect when the Zaurus is turned back on?

Also, does anyone know of any GUI dialer utilities for the Z? I would like to add a voice package to the internet account ($10 discount!) and use the Z for the occasional call. However, I would like the calling to be as quick and easy as possible (as in, not through the console). I would also like something that supports all of the extra stuff like Caller ID, SMS, etc.



c760 with Cacko 1.21

cs_jacky

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • http://
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #8 on: May 27, 2004, 10:18:04 am »
\"My Z specifically had to be in suspend mode before it would connect.\" in ZeeUser\'s message means to suspend the gprs card.

You can use the command \"cardctrl suspend\" to suspend the card. After that, you can connect with the GUI without any problem.

Tested on C860 with Cacko 1.21a

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #9 on: May 27, 2004, 11:58:35 am »
Quote
\"My Z specifically had to be in suspend mode before it would connect.\" in ZeeUser\'s message means to suspend the gprs card.

You can use the command \"cardctrl suspend\" to suspend the card. After that, you can connect with the GUI without any problem.

Tested on C860 with Cacko 1.21a


I\'m aware а this problem - it will be fixed in Hotfix 1.21B

roguetrooper

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #10 on: June 12, 2004, 03:50:26 am »
I am trying to get the AudioVox card working (I have a clone card) however I am getting random system freezes within minutes of inserting the card

When I try the debug scripts I get a \"/etc/ppp/peers/connectgprs\" not found from executing the initial \"gprs\" script even though I have correctly named it in the directory

The card works fine in my PC (with a PC card -] CF adaptor)

Any ideas?

I now have non-functioning (but working in PC) bluetooth andf GPRS cards
--RogueTrooper

Looking for a Zaurus!

"Linux, the choice of a GNU generation"
==Micro$oft - just say NO==

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #11 on: June 15, 2004, 11:35:17 am »
Quote
I am trying to get the AudioVox card working (I have a clone card) however I am getting random system freezes within minutes of inserting the card

When I try the debug scripts I get a \"/etc/ppp/peers/connectgprs\" not found from executing the initial \"gprs\" script even though I have correctly named it in the directory  

The card works fine in my PC (with a PC card -] CF adaptor)

Any ideas?

I now have non-functioning (but working in PC) bluetooth andf GPRS cards


How about us trying to get that fixed with a couple of beers?  Seems to be a good reason to finaly get together

roguetrooper

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #12 on: June 18, 2004, 01:26:49 am »
See you early next week
--RogueTrooper

Looking for a Zaurus!

"Linux, the choice of a GNU generation"
==Micro$oft - just say NO==

Stefani

  • Newbie
  • *
  • Posts: 1
    • View Profile
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #13 on: August 26, 2004, 10:27:46 pm »
I have tried to bring up my new RTM8000 Card. Now i had erased my serial_cs.o modul for my cacko 1.21 zaurus 760, and with the modul from

http://www.iral.com:88/~albertr/zaurus/misc/serial_cs.o.gz

i had no success.

Please could anyone sent me serial_cs.o for the cacko 1.21 cXXX to my EMail Address Stefani@Seibold.net????? Please!!!!!!!!

Maybe it is also another problem. The card works well under windows xp with hyperterminal. But i will get no responce from the card under linux on my zaurus nur on my desktop linux (i tried mandrake and knoppix).

The card will be detected:

#dmesg
ttyS03 at port 0xf6000400 (irq = 39) is a 16C950/954

# cardctl status
Socket 0:
  3.3V 16-bit PC Card
  function 0: [ready], [bat dead], [bat low]
Socket 1:
  no card
# cardctl config
Socket 0:
  Vcc 3.3V  Vpp1 0.0V  Vpp2 0.0V
  interface type is "memory and I/O"
  irq 39 [exclusive] [level]
  Speaker output is enabled
  function 0:
    config base 0x00f8
      option 0x41 status 0x08 pin 0x00 copy 0x00
    io 0xf60003f8-0xf6000407 [8bit]
Socket 1:
  not configured

Typing characters in minicom increase the number of interrupts in /proc/interrupt
but i will get no responce for an AT<cr>.

Also a stty </dev/ttyS3 will hang until i kill the process.

Is there anyone with an idea, whats wrong?

Thnx a lot for help,
Stefani

ludovicus

  • Newbie
  • *
  • Posts: 27
    • View Profile
How-TO: Connet CF GPRS/GSM (AudioVox RTM8000) to internet
« Reply #14 on: November 11, 2004, 05:08:02 am »
my cf audiovox card is coming in the mail, if there's anybody in the orlando, fl area interested in collaborating on this lemme know
ludovicus[aT]linuxmail_org
peace
lu
c860
sl5500
lots of gadgets
"Logic merely enables one to be wrong with authority."  
Doctor Who