Re: A general (learning) query



On Wed, 2012-06-13 at 01:44 +0530, Ajay Garg wrote:
> 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"

This just says the modem doesn't like it when you try to send this APN.
What does "AT+CGDCONT=?" say?  That tells you the format the modem
expects this command to be sent in.  I don't think this actually has
anything to do with init strings, since CGDCONT isn't an init string,
it's just that wvdial is very simple and that's the only place you can
put it when using wvdial.

Dan

> 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.
>         
>           
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]