On Tuesday 17 May 2005 13:50, Audrius Verseckas wrote:
Hi,
I would like to try Sony/Ericsson GC85 EDGE/GPRS PC Card and GPRS in linux. Any advice how to start is welcome... I launched yast but network card and modem sections in yast do not find anything...
In yast it appears only as an AT modem, and of course only after it is plugged in and recognized.
In google I find older card works in debian and redhat. So I hope that it is possible in SuSE...
Of course it is, it works fine here :)
Thank you for any help.
I am novice in linux...
My system is IBM ThinkPad X30 + SuSE 9.3 Pro.
Audrius
First you should check if the card gets recognized correctly. - do you hear the 2 beeps after plugging it in? - open a konsole, and type "dmesg" (without the quotes) and press Return. Now look for a line (near the end) similar to this one "ttyS4 at I/O 0x73f8 (irq = 185) is a 16550A" If you have that, then this is the device you need to use as modem device. On my system, it can be ttyS4 or ttyS5, but your system is different, so check it. if you do not have this, then no need to continue below, you need to fix this first! Report the last lines of your dmesg outpout here, right after you plugged in the card. Also, su to root in konsole and type "tail /var/log/messages" (without the quotes) and press Return. Check the output, and report it here. But if you have your ttySx device, then continue: In yast, set it up using the infos you found described for the other systems. Yast will set it up allowing you to connect to the internet using kinternet. BUT unfortunately yast seems to include some modem commands which cause the modem in the card to give an error. Yast will have created the new connection as modem0 or modem1 etc, depending on if you have already a modem connection defined. If you have modem1, then check the file /etc/sysconfig/network/ifcfg-modem1 , otherwise change the modem1 at the end of the filename accordingly. Here is my (working) /etc/sysconfig/network/ifcfg-modem1: --------------- BOOTPROTO='none' DIALCOMMAND='ATDT' DIALPREFIX='' DIALPREFIXREGEX='' INIT1='AT+cfun=1' INIT2='AT+cgreg=1' INIT3='AT+cgdcont=1,"IP","your APN here"' INIT4='AT&F&D2&C1E0V1S0=0' INIT5='AT+IFC=2,2' INIT6='ATS0=0' INIT7='AT' INIT8='AT&F&D2&C1E0V1S0=0' INIT9='' MODEM_DEVICE='/dev/modem' PPPD_OPTIONS='debug debug debug' PROVIDER='provider1' SPEED='230400' STARTMODE='manual' UNIQUE='' USERCONTROL='yes' NAME='Modem' --------------- You need to be root to change this file. You might have as a MODEM_DEVICE not /dev/modem but /dev/ttyS4 or similar, that is OK. init1 has to be INIT1='AT+cfun=1' otherwise the card will not understand the AT commands needed to dial the connection. You see the "your APN here" in init3? There you have to put whatever your GSM provider uses. In yast you cannot enter a value for init 7, 8 and 9. Yast seems to put there a command to control the modem's speaker volume, which will make the modem card fail. Make it empty or replace it with what you see in my sample above. Note that the first time I try to connect (with kinternet) it always gives an error from the modem. The second time it works then. No idea why though. Then check /etc/sysconfig/network/providers/provider1 (change the "provider1" part here to whatever you have configured for this modem in yast). Here is my working /etc/sysconfig/network/providers/provider1 : ----------------------- ASKPASSWORD='no' AUTODNS='yes' DEFAULTROUTE='yes' DEMAND='no' DSLSUPPORTED='no' IDLETIME='0' IPADDR='' ISDNSUPPORTED='no' MODEMSUPPORTED='yes' MODIFYDNS='yes' MODIFYIP='yes' PASSWORD='whatever' PHONE='*99***1#' PROVIDER='BLEEDING EDGE' REMOTE_IPADDR='' STUPIDMODE='no' USERNAME='whatever' ---------------------- You need to be root to read or change this file. USERNAME, PASSWORD and PROVIDER will be different for you. Usually USERNAME and PASSWORD are not used for GPRS / EDGE, but I found that it works only if I put something there. Note that I found GPRS / EDGE to be quite unstable and slow. Many timeouts. This is not a Linux problem, I had it running for many days on a windows xp system to test, and same story. Sometimes it is OK, sometimes EDGE is very fast (20kB/sec), but most of the time slow, the timeouts are annoying. If you can get CDMA instead, it is much better. I could download 4GB DVDs with CDMA, in a few days, but never with EDGE, it always timed out quickly. This all depends on your GSM / CDMA petwork providers though. YMMV. HTH, Matt