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 google I find older card works in debian and redhat. So I hope that it is possible in SuSE... Thank you for any help. I am novice in linux... My system is IBM ThinkPad X30 + SuSE 9.3 Pro. Audrius
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
On 5/17/05, Matt T. <Matt@boons.net> wrote:
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...
First you should check if the card gets recognized correctly. - do you hear the 2 beeps after plugging it in?
Yes.
- 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"
My is ttyS2 at I/O 0x3e8 (irq = 3) 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.
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' ---------------
I put all my settings but get folowing error SuSE Meta pppd (smpppd-ifcfg), Version 1.58 on linux. Status is: disconnected trying to connect to smpppd connect to smpppd Status is: disconnected Status is: connecting pppd[0]: Plugin passwordfd.so loaded. pppd[0]: --> WvDial: Internet dialer version 1.54.0 pppd[0]: --> Initializing modem. pppd[0]: --> Sending: AT+cfun=1 pppd[0]: AT+cfun=1 pppd[0]: OK pppd[0]: --> Sending: AT+cgreg=1 pppd[0]: AT+cgreg=1 pppd[0]: OK pppd[0]: +CGREG: 3 pppd[0]: --> Sending: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: +CME ERROR: 11 pppd[0]: --> Bad init string. pppd[0]: --> stdin not read/write and $MODEM not set pppd[0]: Connect script failed Status is: disconnected pppd[0] died: Connect script failed (exit code 8) Please, what could be wrong? My ifcfg-modem0 BOOTPROTO='none' DIALCOMMAND='ATDT' DIALPREFIX='' DIALPREFIXREGEX='' INIT1='AT+cfun=1' INIT2='AT+cgreg=1' INIT3='AT+cgdcont=1,"IP","gprs.omnitel.net"' 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/ttyS2' NAME='Modemas' PPPD_OPTIONS='debug debug debug' PROVIDER='provider0' SPEED='230400' STARTMODE='manual' UNIQUE='' USERCONTROL='yes' Thank you for very clear answer. Audrius
The Wednesday 2005-05-18 at 21:03 +0300, Audrius wrote:
I put all my settings but get folowing error ...
pppd[0]: --> Sending: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: +CME ERROR: 11 pppd[0]: --> Bad init string. ...
Please, what could be wrong?
Read above.
INIT3='AT+cgdcont=1,"IP","gprs.omnitel.net"'
Bad. Don't ask me for the correct string, I dunno. -- Cheers, Carlos Robinson
On Thursday 19 May 2005 01:03, Audrius wrote:
On 5/17/05, Matt T. <Matt@boons.net> wrote:
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...
First you should check if the card gets recognized correctly. - do you hear the 2 beeps after plugging it in?
Yes.
- 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"
My is
ttyS2 at I/O 0x3e8 (irq = 3) is a 16550A
good.
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.
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' ---------------
I put all my settings but get folowing error
SuSE Meta pppd (smpppd-ifcfg), Version 1.58 on linux. Status is: disconnected trying to connect to smpppd connect to smpppd Status is: disconnected Status is: connecting pppd[0]: Plugin passwordfd.so loaded. pppd[0]: --> WvDial: Internet dialer version 1.54.0 pppd[0]: --> Initializing modem. pppd[0]: --> Sending: AT+cfun=1 pppd[0]: AT+cfun=1 pppd[0]: OK pppd[0]: --> Sending: AT+cgreg=1 pppd[0]: AT+cgreg=1 pppd[0]: OK pppd[0]: +CGREG: 3 pppd[0]: --> Sending: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: +CME ERROR: 11 pppd[0]: --> Bad init string. pppd[0]: --> stdin not read/write and $MODEM not set pppd[0]: Connect script failed Status is: disconnected pppd[0] died: Connect script failed (exit code 8)
Please, what could be wrong?
I get the same error, always the first time i start the connection (by clicking on kinternet). But then, when I click again, it goes through and connects. I assume it takes some time for the card to be ready to accept the init string "AT+cgdcont=1,"IP","gprs.omnitel.net"". When kinternet / pppd throws the init strings to the card one after the other, it might be too fast. Again, I get this error *everytime* at the first connect attempt, and then the second one *always* connects without this error. This seems to be card specific for the sony ericsson cards, I haven't seen it with other cards, such as the sierra wireless cards.
My ifcfg-modem0
BOOTPROTO='none' DIALCOMMAND='ATDT' DIALPREFIX='' DIALPREFIXREGEX='' INIT1='AT+cfun=1' INIT2='AT+cgreg=1' INIT3='AT+cgdcont=1,"IP","gprs.omnitel.net"' 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/ttyS2' NAME='Modemas' PPPD_OPTIONS='debug debug debug' PROVIDER='provider0' SPEED='230400' STARTMODE='manual' UNIQUE='' USERCONTROL='yes'
Thank you for very clear answer.
Audrius
HTH, Matt
I put all my settings but get folowing error
SuSE Meta pppd (smpppd-ifcfg), Version 1.58 on linux. Status is: disconnected trying to connect to smpppd connect to smpppd Status is: disconnected Status is: connecting pppd[0]: Plugin passwordfd.so loaded. pppd[0]: --> WvDial: Internet dialer version 1.54.0 pppd[0]: --> Initializing modem. pppd[0]: --> Sending: AT+cfun=1 pppd[0]: AT+cfun=1 pppd[0]: OK pppd[0]: --> Sending: AT+cgreg=1 pppd[0]: AT+cgreg=1 pppd[0]: OK pppd[0]: +CGREG: 3 pppd[0]: --> Sending: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: +CME ERROR: 11 pppd[0]: --> Bad init string. pppd[0]: --> stdin not read/write and $MODEM not set pppd[0]: Connect script failed Status is: disconnected pppd[0] died: Connect script failed (exit code 8)
Please, what could be wrong?
I get the same error, always the first time i start the connection (by clicking on kinternet).
But then, when I click again, it goes through and connects.
I assume it takes some time for the card to be ready to accept the init string "AT+cgdcont=1,"IP","gprs.omnitel.net"". When kinternet / pppd throws the init strings to the card one after the other, it might be too fast.
Again, I get this error *everytime* at the first connect attempt, and then the second one *always* connects without this error.
This seems to be card specific for the sony ericsson cards, I haven't seen it with other cards, such as the sierra wireless cards.
Well, I try several times, and nothing. I get the same error. And first and second and third time. Could it be that card first wants to get PIN? I do not remember exactly, but it seems my coleague in Windows was inserting PIN (four digit number). I do not have Windows. All my PC (at work and at home is with SuSE, so I cannot try seting up card in windows). If it could be PIN how can I insert it? Audrius
On Thursday 19 May 2005 15:43, Audrius wrote:
I put all my settings but get folowing error
SuSE Meta pppd (smpppd-ifcfg), Version 1.58 on linux. Status is: disconnected trying to connect to smpppd connect to smpppd Status is: disconnected Status is: connecting pppd[0]: Plugin passwordfd.so loaded. pppd[0]: --> WvDial: Internet dialer version 1.54.0 pppd[0]: --> Initializing modem. pppd[0]: --> Sending: AT+cfun=1 pppd[0]: AT+cfun=1 pppd[0]: OK pppd[0]: --> Sending: AT+cgreg=1 pppd[0]: AT+cgreg=1 pppd[0]: OK pppd[0]: +CGREG: 3 pppd[0]: --> Sending: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: AT+cgdcont=1,"IP","gprs.omnitel.net" pppd[0]: +CME ERROR: 11 pppd[0]: --> Bad init string. pppd[0]: --> stdin not read/write and $MODEM not set pppd[0]: Connect script failed Status is: disconnected pppd[0] died: Connect script failed (exit code 8)
Please, what could be wrong?
I get the same error, always the first time i start the connection (by clicking on kinternet).
But then, when I click again, it goes through and connects.
I assume it takes some time for the card to be ready to accept the init string "AT+cgdcont=1,"IP","gprs.omnitel.net"". When kinternet / pppd throws the init strings to the card one after the other, it might be too fast.
Again, I get this error *everytime* at the first connect attempt, and then the second one *always* connects without this error.
This seems to be card specific for the sony ericsson cards, I haven't seen it with other cards, such as the sierra wireless cards.
Well, I try several times, and nothing. I get the same error. And first and second and third time. Could it be that card first wants to get PIN? I do not remember exactly, but it seems my coleague in Windows was inserting PIN (four digit number).
If the sim is configured to want a PIN then you need to give it. So yes, that could be the reason. AFAIR there is also an AT command to send the PIN. you would have to put that in one of the first init strings, but not the very first, which must always be 'AT+cfun=1'. I remember having seen it mentioned somewhere, but i do not use a PIN, so I did not keep it. May be you google a little to find it.
I do not have Windows. All my PC (at work and at home is with SuSE, so I cannot try seting up card in windows). If it could be PIN how can I insert it?
Why don't you take out the sim from the pcmcia card, put it in a normal phone, disable that stupid PIN, put the sim back in the PCMCIA card, and try again? The PIN should not be a requirement to use GPRS etc, it is as usual something you can activate - or deactivate. Testing the sim in a normal phone will also quickly confirm if it is really the PIN which is causing the error here. HTH, Matt
On 5/19/05, Matt T. <Matt@boons.net> wrote:
Why don't you take out the sim from the pcmcia card, put it in a normal phone, disable that stupid PIN, put the sim back in the PCMCIA card, and try again?
The PIN should not be a requirement to use GPRS etc, it is as usual something you can activate - or deactivate.
Testing the sim in a normal phone will also quickly confirm if it is really
the PIN which is causing the error here.
That was PIN. I get connection, and even now I am responding by GPRS. Thank you very much for excellent help! Audrius
On Friday 20 May 2005 00:39, Audrius wrote:
On 5/19/05, Matt T. <Matt@boons.net> wrote:
Why don't you take out the sim from the pcmcia card, put it in a normal phone, disable that stupid PIN, put the sim back in the PCMCIA card, and try again?
The PIN should not be a requirement to use GPRS etc, it is as usual something you can activate - or deactivate.
Testing the sim in a normal phone will also quickly confirm if it is really
the PIN which is causing the error here.
That was PIN. I get connection, and even now I am responding by GPRS.
Thank you very much for excellent help!
Audrius
Glad I could help :)
participants (4)
-
Audrius
-
Audrius Verseckas
-
Carlos E. R.
-
Matt T.