All commands that are sent/processed during the initialization of the
gateways are more or less setup for retries. Sometimes, a reset
command is in the AT handlers, so the initialization commands run
immediately after a reset. After a reset, a modem may be in a "weird"
state, at least until it registers itself with the gsm network. That's
why most commends there are setup with retries (CPIN, CREG, etc).

The CNMI (theoretically) should NOT fail. It has nothing to do with
the network - its a pure ability (which the modem either has it or
not) that describes how the modem responds to inbound messages.

The increased retries that you've implemented is a good way to deal
with this. A better way would be to try with another modem...

On May 29, 1:28 pm, christian <[email protected]> wrote:
> well,
>
> when i say cnmi fails, i mean that i get an ERROR response. Just the
> word ERROR. that will happen about 3 - 10 times on that modem. then it
> will send the correct answer without any change!
> So my simple solution was to set the retry count to 20. so now my
> modem gets initialized always. but i would like to know the reason why
> you implemented that retry count... is it knwon that cnmi fails? if so
> what are the reason? my modem does the same thing when i want to have
> CPMS information ...
>
> greetings
>
> Christian
>
> On May 28, 9:24 pm, Thanasis <[email protected]> wrote:
>
>
>
> > Hi,
>
> > What do you mean by saying that the CNMI fails? Does this return an
> > error or a value that smslib is not happy with? Can you give an
> > example?
>
> > Yes, its easy to bypass the code, but lets first see the response you
> > get :)
>
> > On May 28, 5:20 pm, christian <[email protected]> wrote:
>
> > > Hi all,
>
> > > first of all im impressed with smslib! great piece of software.
> > > but i am having an issue with it...
>
> > > but propably this is an issue with my modem ;)
>
> > > ok, in class athandler you have a function called setindications...
> > > it will try to read the response to AT+CNMI? 3 times in default (could
> > > you tell me the reason why you retry that)?.
> > > this function fails on my modem! at least in 50 % of all cases. when i
> > > put the retrycound to 10 there is a bigger chance my modem gets
> > > initiated.
>
> > > is there any way to ignore the cnmi response and  take a default value
> > > to instanciate the cnmidetector?
> > > i did not check all that code, so i thought it would be easier to ask
> > > the programmers ;)
>
> > > is there any solution for such a scenario ?
>
> > > thanks in advance
>
> > > christian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to