Re: A general (learning) query
- From: Ajay Garg <ajaygargnsit gmail com>
- To: Mauricio Tavares <raubvogel gmail com>, Dan Williams <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: A general (learning) query
- Date: Wed, 13 Jun 2012 01:44:54 +0530
Mauricio,
Exactly, I guess there must be some algorithm, so as to identify the init string that the modem likes (brute-force would be like searching a pearl in the desert).
Any how, on some more googling (I am still awaiting a proper methodology to do this), I tried with the following /etc/wvdial.conf (I just added the "Init3" line to the self-generated file through "wvdialconf" command)::
########################################################################################################
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,"IP","gprs.ancel"
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = ""
Init1 = ATZ
Password = ""
Modem = /dev/ttyUSB0
Baud = 9600
########################################################################################################
and here is what I get ::
########################################################################################################
-bash-4.1# sudo wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","gprs.ancel"
AT+CGDCONT=1,"IP","gprs.ancel"
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","gprs.ancel"
AT+CGDCONT=1,"IP","gprs.ancel"
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","gprs.ancel"
AT+CGDCONT=1,"IP","gprs.ancel"
ERROR
--> Bad init string.
########################################################################################################
Just some more notes ::::
a)
Some days back, (by Dan's help), I had a meeting with minicom, and tried "AT&V" and "AT+CLAC" commands. That had resulted in a trivial ModemManager fix (courtesy Dan).
I have installed the "fixed" ModemManager (ModemManager-0.5.3.0-1.git20120606.fc14.i386), and the above results are based on it.
Unfortunately, that modem (Claro) did not work even then. So we abandoned it (since it was anyways a bit too sophisticated, being a dual-mode modem/storage-device).
So, we have now switched to this (vanilla single-mode) modem (only) device.
b)
This modem works on Windows. So, I guess that the "external" requirements are in place.
For brevity, I am attaching the "AT&V" and "AT+CLAC" files for the (new) Ancel-GPRS modem.
Any help regarding the links to the methodologies of a USB modem would be greatly appreciated :-) :-)
Thanks and Regards,
Ajay
On Wed, Jun 13, 2012 at 1:13 AM, Mauricio Tavares
<raubvogel gmail com> wrote:
On Tue, Jun 12, 2012 at 3:41 PM, Mauricio Tavares <
raubvogel gmail com> wrote:
> On Tue, Jun 12, 2012 at 2:49 PM, Ajay Garg <
ajaygargnsit gmail com> wrote:
>> The ISP details are ::
>>
>> Country : Uruguay
>> Provider : Ancel
>> Plan : GPRS
>>
> Do I take you do not know this modem's initialization string?
>
> If I were in your shoes, I would first identify how the modem is
> being seen by the OS. Then maybe use minicom or something and try to
> talk to it. And then see if you can come up with an initialization
> string it likes and then try to manually dial out (call your own
> phone?).
>
NVM, it took the init string. But, it might be easier to use a
terminal program here.
OK
AT&V
&C: 1; &D: 2; &F: 0; E: 1; L: 1; M: 0; Q: 0; V: 1; X: 4; Z: 0; S0: 0;
S3: 13; S4: 10; S5: 8; S6: 2; S7: 45; S8: 2; S9: 6; S10: 14; S11: 95;
+FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0; +DS: 0,0,2048,6;
+WS46: 12; +CBST: 0,0,1;
+CRLP: (61,61,48,6,0),(61,61,48,6,1),(240,240,52,6,2);
+CV120: 1,1,1,0,0,0; +CHSN: 0,0,0,0; +CSSN: 0,0; +CREG: 0; +CGREG: 0;
+CFUN:; +CSCS: "IRA"; +CSTA: 129; +CR: 0; +CRC: 0; +CMEE: 0; +CGDCONT: (1,"IP","","0.0.0.0",0,0),(2,"IP","Ceibal","0.0.0.0",0,0),(3,"IP","gprs.ancel1","0.0.0.0",0,0),()
; +CGDSCONT: ; +CGTFT: ; +CGEQREQ: (1,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(2,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(3,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(4,2,0,0,0,0,2,0,"0E0",")
; +CGEQMIN: ; +CGQREQ: ; +CGQMIN: ; ; +CGEREP: 0,0; +CGCLASS: "A";
+CGSMS: 0; +CSMS: 0; +CMGF: 0; +CSCA: "",; +CSMP: ,,0,0; +CSDH: 0;
+CSCB: 0,"",""; +FDD: 0; +FAR: 0; +FCL: 0; +FIT: 0,0; +ES: ,,;
+ESA: 0,,,,0,0,255,; +CMOD: 0; +CVHU: 1; ; +CPIN: ,; +CMEC: 0,0,0;
+CKPD: 1,1; +CGATT: 0; +CGACT: 0; +CPBS: "SM"; +CPMS: "SM","SM","SM";
+CNMI: 0,0,0,0,0; +CMMS: 2; +FTS: 0; +FRS: 0; +FTH: 3; +FRH: 3; +FTM: 96;
+FRM: 96; +CCUG: 0,0,0; +COPS: 0,2,""; +CUSD: 0; +CAOC: 1; +CCWA: 0;
+CLVL: 2; +CMUT: 0; +CPOL: 0,2,"",0,0,0; +CPLS: 0; +CTZR: 0; +CLIP: 0;
+COLP: 0; +CLIR: 0; ^PORTSEL: 0; ^CPIN: ,; ^ATRECORD: 0;
^FREQLOCK: 10226476,12482272
OK
OK
AT+CLAC
ERROR
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]