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