Well, the Feb 10 post pretty much covers the whole example. I've
concatenated it for clarity below (the error block keeps repeating
constantly - scrolls so fast that I can't halt it in time, so I had to
take two different runs to capture all the info (i.e. the time stamp
on the error block is not accurate, since everything before the
sleeping line is from one run and the error block from another): No
new info, unless you also want the exact time between when it starts
sleeping till it starts throwing the error - my estimate is around 5
seconds.

Example: Read messages from a serial gsm modem.
SMSLib: A Java API library for sending and receiving SMS via a GSM
modem or othe
r supported gateways.
This software is distributed under the terms of the Apache v2.0
License.
Web Site: http://smslib.org
Version: 3.4.4
10-Feb-2010 21:16:25 org.smslib.helper.Logger logInfo
INFO: SMSLib: A Java API library for sending and receiving SMS via a
GSM modem o
r other supported gateways.
This software is distributed under the terms of the Apache v2.0
License.
Web Site: http://smslib.org
10-Feb-2010 21:16:25 org.smslib.helper.Logger logInfo
INFO: Version: 3.4.4
10-Feb-2010 21:16:25 org.smslib.helper.Logger logInfo
INFO: JRE Version: 1.6.0_18
10-Feb-2010 21:16:25 org.smslib.helper.Logger logInfo
INFO: JRE Impl Version: 16.0-b13
10-Feb-2010 21:16:25 org.smslib.helper.Logger logInfo
INFO: O/S: Windows XP / x86 / 5.1
10-Feb-2010 21:16:25 org.smslib.helper.Logger logInfo
INFO: GTW: modem: Starting gateway, using Generic AT Handler.
10-Feb-2010 21:16:25 org.smslib.helper.Logger logInfo
INFO: GTW: modem: Opening: COM4 @115200
10-Feb-2010 21:16:45 org.smslib.helper.Logger logWarn
WARNING: GTW: modem: GSM: Not registered, searching for network...
10-Feb-2010 21:16:50 org.smslib.helper.Logger logInfo
INFO: GTW: modem: GSM: Registered to home network.
10-Feb-2010 21:16:50 org.smslib.helper.Logger logInfo
INFO: GTW: modem: MEM: Storage Locations Found: MESM
10-Feb-2010 21:16:50 org.smslib.helper.Logger logWarn
WARNING: GTW: modem: Callback indications were *not* set succesfully!
10-Feb-2010 21:16:50 org.smslib.helper.Logger logInfo
INFO: GTW: modem: Gateway started.

>>> Gateway Status change for modem, OLD: STOPPED -> NEW: STARTING
>>> Gateway Status change for modem, OLD: STARTING -> NEW: STARTED

Modem Information:
  Manufacturer: BenQ
  Model: M32
IMEISV: 35243000715495-0800715495-1
  SIM IMSI: ** MASKED **
  Signal Level: 64%
  Battery Level: 100%

Now Sleeping - Hit <enter> to stop service.
10-Feb-2010 21:18:38 org.smslib.helper.Logger logError
SEVERE: Error!
java.lang.StringIndexOutOfBoundsException: String index out of range:
-12
        at java.lang.String.substring(Unknown Source)
        at
org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:527)
        at
org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:206)
        at org.smslib.modem.AModemDriver
$CNMIEmulatorProcessor.process(AModemDri
ver.java:946)
        at
org.smslib.threading.AServiceThread.run(AServiceThread.java:
117)

On Feb 11, 3:10 pm, Thanasis <[email protected]> wrote:
> Well, I don't know. But I will remove this modem from the
> compatibility list, until we figure things out.
>
> Can you post (or send me) a full log of the ReadMessages example? Not
> just the OOR exception, the full thing.

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

Reply via email to