Siemens C62 Gprs Connection Linux How-To





Intro

This is a simply how-to made to contribuite at the tuxmobile project , you can see more detailed information about c62 gprs connection at http://siemensc62.da.ru.  My  english is not very well but I'll try however to explane you how to use you c62 for a gprs connection with linux.

Siemens C62

If you look at every web site that spoke about c62 technical info you usually we'll se at the voice "Modem" "NO" , it isn't very correct. C62 hasn't data fax modem like most phones but gprs modem, but this isn't a good reason to write NO at Modem voice! If you understand a little bit of economy and merchandising you'll understand why thay says no,anyway..go on!
Firstable I must remember that my experience is based on a usb data cable and on the 11 version of the firmware version ; this one is a very important point for trying to connect c62 cauze I know about a software limitation on the version next to the 16. At the moment, but I couldn't be in right, I know that in firmware version like 20 and so on ,there's a modem block or software bug like others say...however if you try to connect, you will get an error.
So the best way to start your c62 connection is :
software version <=16
usb data cable (you could use also serial cable but this how-to is for usb cauze i haven't serial cable :-) )

Configuration :

For your siemens c62 gprs connection you can use kernel 2.4.x and kernel 2.6.x and you will have an easy way if you have hotplug installed on your machine , in fact when you connect usb cable to pc phone it's already ready !
So do this :
plug cable to pc
do an
#dmesg
to see if youb device has been founded, if you see something like this (kernel 2.6.x) :


usb 1-1: new full speed USB device using address 3
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for PL-2303
pl2303 1-1:1.0: PL-2303 converter detected
usb 1-1: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.10

From here you could see that you need some modules like : pl2303,usbserial,usblp,ohci_hcd,uhci_hcd for kernel 2.6 and usbcore, usbserial
pl2303 and generally other with kernel 2.4.x. Most linux distro has this modules already in kernel but if you can't found your device..then use this modules with the command(be root!) :
#modprobe whatyouwant


Ok now you device is ready and let's try to configure yout connection :

I use the pppd fe Kppp for my gprs connections and i can say that it works great! However if you want a non X connection you can use some script, I link you this one : Easy Gprs Connect http://easyconnect.linuxuser.hu , this is a simply gui tool that provide you your gprs connection with less click but you can make aldo some scripts for you console connection, see documentation for more details.
Using Kppp it's very simply but we can configurate it first. Like you have seen above you device is (usually) "
now attached to ttyUSB0 ", so your device is /dev/ttyUSB0. Now let's simplify it with a simbolic link to /dev/modem :

#ln -s /dev/ttyUSB0 /dev/modem


Now open Kppp (usually from root cauze pppd it's not suided) and let's configurate it :
Click on "Configurate"
kppp
First window, sorry images in "italian" :)

Select the dialog configuration, not the wizard
Then select at the tab "Account" the voice "New" to configurate your connection


kppp 1
account configuration


Now put "Connection Name" and the "Telephone number"
Connect name it's the name of your connection and the number for siemens phones is *99***<cid># where cid is the number of at+cgdcont command that you've setted, however usually and in this case is 1 so the number is *99***1#.
In the last bottom "personalize pppd arguments" usually there will be "noauth" paramether, if not just put it for connection that doesn't want autentication.

After this you will put the DNS of you provider cauze DNS is usually static for theese connections.


dns




Just click on ok and let's go on. Now you must configurate modem so go to "Device" tab
dev




and at "Modem device" put /dev/modem(the simbolic link to ttyUSB0), Go to "Modem" tab

modem

Unsign "wait for signal line ..etc" and click on "Modem Commands"

modemc

Now just see at the image and put
Str   1 : the simply modem command AT
Str    2 : your apn with the command AT+CGDCONT=1,"IP","yourapn" (and IF there are others option)
Substituite ATX3 with AT and take M0L0 M1L1 M3L3 at the end of window, at "Volume" voice
then click on ok and return to the start window


Select your connection , put you username and password if there are and sign "window log" for debugging and...good connection :-)

If you have problems like disconnecting after 60 sec try to comment lcp echo request in /etc/ppp/option, if you are line problem try to control DNS and gprs signal on phone, if you are MA8720P cable there's a "software block" maybe, let's unblock it in windows with the mobile action "charger" tool.
There's many way to connect, this is one. The "tricks" is change c62 modem commands that it doesn't support like
ATZ
ATV1
ATS0=0
ATA(sometimes)
with
AT
in your script configuration and you will connect. I hope that I'll help you, for more info visit
http://siemensc62.da.ru
or mail me
Blues-Man
ebballon@interfree.it
JID : Blues-Man@jabber.linux.it


Link :

http://siemensc62.da.ru
http://tuxmobil.org
http://www.mobileaction.com
http://www.club-siemens.net/forum
http://cslug.linux.it
http//www.google.com

Bye ;)