Page 1 of 1

Installation problem with SMS Modem Huawei E176

Posted: Fri Mar 29, 2013 11:34 pm
by justinchen101
Hi, I am able to install Huawei E261 successfully and run cyclos with minor PDU error, however when I try E176 I got "String index out of range" error, anyone had idea what would be the problem. Thanks.

****Error: java.lang.StringIndexOutOfBoundsException: String index out of range: -12

======= here is the log
...
2013-03-30 10:22:54 INFO smslib - SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
2013-03-30 10:22:54 INFO smslib - Version: 3.5.1
2013-03-30 10:22:54 INFO smslib - JRE Version: 1.6.0_30
2013-03-30 10:22:54 INFO smslib - JRE Impl Version: 20.5-b03
2013-03-30 10:22:54 INFO smslib - O/S: Windows XP / x86 / 5.1
2013-03-30 10:22:54 INFO smslib - Queue directory not defined. Queued messages will not be saved to filesystem.
2013-03-30 10:22:54 INFO smslib - GTW: aioDriver: Starting gateway, using Huawei (Generic) AT Handler.
2013-03-30 10:22:54 INFO smslib - GTW: aioDriver: Using polled serial port mode.
2013-03-30 10:22:54 INFO smslib - GTW: aioDriver: Opening: COM5 @19200
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
2013-03-30 10:23:12 INFO smslib - GTW: aioDriver: GSM: Registered to home network.
2013-03-30 10:23:13 INFO smslib - GTW: aioDriver: MEM: Storage Locations Found: MESMSR
2013-03-30 10:23:13 WARN smslib - GTW: aioDriver: Callback indications were *not* set succesfully!
2013-03-30 10:23:13 INFO smslib - GTW: aioDriver: Gateway started.
2013-03-30 10:23:14 ERROR ModemDriverEngine - Error starting up the sms service
java.lang.StringIndexOutOfBoundsException: String index out of range: -12
at java.lang.String.substring(String.java:1937)
at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:544)
at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:210)
at org.smslib.Service.readMessages(Service.java:500)
at org.smslib.Service.readMessages(Service.java:388)
at org.smslib.Service.readMessages(Service.java:411)
at nl.strohalm.cyclos.driver.modem.engine.ModemDriverEngine.cleanModemMemory(ModemDriverEngine.java:122)
at nl.strohalm.cyclos.driver.modem.engine.ModemDriverEngine.doStartUp(ModemDriverEngine.java:110)
at nl.strohalm.cyclos.driver.engine.DriverEngine.startUp(DriverEngine.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)