Hi,
You could experiment a bit with the COPS command. Its located in src/
java/org/smslib/modem/athandler/ATHandler.java. Try to add a delay and
see what happens.
You can also add the following 2 lines in the same method where COPS
is:
getModemDriver().write("AT+CREG=1\r");
getModemDriver().getResponse();
You should recompile after every change. You can do this with ANT, or
with the IDE you are working with.
On Feb 9, 4:45 am, KJ <[email protected]> wrote:
> Unfortunately not. This modem seems to be really poorly supported, the
> manufacturer website doesn't even provide its driver anymore (I had
> the CD that came with the modem, so no issue there).
>
> If it helps, though, experimenting with HyperTerminal showed me two
> things:
>
> 1) AT+COPS? only shows a connected operator after the terminal itself
> has been connected for 20 secs or so (i.e., it takes 20 secs to find
> the network). Is it necessary to introduce a delay into the gateway
> start (e.g. using Thread.sleep()) to allow for this?
>
> 2) AT+CREG? returns 0,1 normally, i.e.disable network registration
> result code. I saw on another thread that this should be forced to AT
> +CREG=1 in AModemDriver.java (I think this was the file). Is this
> necessary in my case, and if so, does that mean I have to recompile
> and build the library after making said change? (relatively new to
> java, so have not compiled own libraries before, please excuse
> ignorance).
>
> Thanks!
>
> On Feb 9, 5:24 am, Thanasis <[email protected]> wrote:
>
>
>
> > Hi,
>
> > This behaviour reminds me of the HUAWEI models. There must be some
> > command that switches on the modem (or something similar). Do you have
> > any technical docs about that modem?
--
You received this message because you are subscribed to the Google Groups
"SMSLib User Support 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.