If you search the group, you'll find some relevant info.

If you can, download the latest HUAWEI at handler from the repo:

http://smslib.googlecode.com/svn/smslib/trunk/src/java/org/smslib/modem/athandler/ATHandler_Huawei.java

and copy it in src/java/org/smslib/modem/athandler

Then use the "Huawei" manufacturer string in your gateway definition.
This handler may work better that the default one.

On Feb 19, 5:25 am, lunatic12 <[email protected]> wrote:
> Hi!
>
> I just started to know about SMSlib two days ago so I don't really
> know much about it. I'm using Huawei E1552 GSM Modem in developing an
> application that sends and receives sms messages. I was able to send
> messages using the sample SendMessage.java and read message from the
> SIM on my modem. The problem that I encountered when running the
> ReadMessage.java is that, the notification for incoming new messages
> does not work.
>
> Aside from the notification, i also encounter this error sometimes:
> java.lang.StringIndexOutOfBoundsException: String index out of range:
> -7
>
> here is part of the log :
>
> 7891   2010-02-19 11:23:37,359 [main] DEBUG org.smslib.helper.Logger
> - GTW: modem6: RECV :^RSSI:18(cr)+CMGL:
> 0,1,,23(cr)0791361907002084040C9136298761097000000120910182722304D4F29C0E(c r)
> +CMGL:
> 1,1,,36(cr)0791361907002084040C9136194783661000000120910173002313D4F29C0E6A 
> CFCF20B3FCDD0685D965BC0B(cr)
> +CMGL:
> 2,1,,36(cr)0791361907002084040C9136194783661000000120910173802313D4F29C0E6A 
> CFCF20B3FCDD0685D965BC0B(cr)
> +CMGL:
> 3,1,,36(cr)0791361907002084040C9136194783661000000120910175632313D4F29C0E6A 
> CFCF20B3FCDD0685D965BC0B(cr)
> +CMGL:
> 4,1,,36(cr)0791361907002084040C9136194783661000000120911191622313D4F29C0E6A 
> CFCF20B3FCDD0685D965BC0B(cr)OK(cr)
> server stop
> java.lang.StringIndexOutOfBoundsException: String index out of range:
> -7
> 7891   2010-02-19 11:23:37,359 [DelayQueueManager] DEBUG
> org.smslib.helper.Logger  - Stopped.
> 7891   2010-02-19 11:23:37,359 [WatchDog] DEBUG
> org.smslib.helper.Logger  - Stopped.
> 7891   2010-02-19 11:23:37,359 [main] INFO  org.smslib.helper.Logger
> - GTW: modem6: Stopping gateway...>>> Gateway Status change for modem6, OLD: 
> STARTED -> NEW: STOPPING
>
> 7891   2010-02-19 11:23:37,359 [QueueManager [modem6]] DEBUG
> org.smslib.helper.Logger  - Stopped.
> 7891   2010-02-19 11:23:37,359 [NotifyQueueManager] DEBUG
> org.smslib.helper.Logger  - NotifyQueueManager end...
> 7891   2010-02-19 11:23:37,359 [KeepAlive [modem6]] DEBUG
> org.smslib.helper.Logger  - Stopped.
>         at java.lang.String.substring(Unknown Source)
>         at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:
> 539)
>         at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:207)
>         at org.smslib.Service.readMessages(Service.java:481)
>         at org.smslib.Service.readMessages(Service.java:369)
>         at sms.ReadSMS.doIt(ReadSMS.java:107)
>         at sms.JavelinMain.main(JavelinMain.java:24)
> 7891   2010-02-19 11:23:37,359 [CNMIEmulatorProcessor [modem6]] DEBUG
> org.smslib.helper.Logger  - Stopped.
> 7891   2010-02-19 11:23:37,359 [SMSLib-AsyncNotifier : modem6] DEBUG
> org.smslib.helper.Logger  - GTW: modem6: AsyncNotifier thread ended.
> 7891   2010-02-19 11:23:37,359 [SMSLib-AsyncMessageProcessor : modem6]
> DEBUG org.smslib.helper.Logger  - GTW: modem6: AsyncMessageProcessor
> thread ended.
> 7891   2010-02-19 11:23:37,359 [SMSlib-ModemReader-modem6] DEBUG
> org.smslib.helper.Logger  - GTW: modem6: ModemReader thread ended.
> 7985   2010-02-19 11:23:37,453 [NotifyQueueManager] DEBUG
> org.smslib.helper.Logger  - Running...
> 7985   2010-02-19 11:23:37,453 [NotifyQueueManager] DEBUG
> org.smslib.helper.Logger  - NotifyQueueManager running...>>> Gateway Status 
> change for modem6, OLD: STOPPING -> NEW: STOPPED
>
> 7985   2010-02-19 11:23:37,453 [NotifyQueueManager] DEBUG
> org.smslib.helper.Logger  - NotifyQueueManager end...
> 8078   2010-02-19 11:23:37,546 [main] INFO  org.smslib.helper.Logger
> - GTW: modem6: Closing: COM6 @9600
> 8078   2010-02-19 11:23:37,546 [main] INFO  org.smslib.helper.Logger
> - GTW: modem6: Gateway stopped.
> 8078   2010-02-19 11:23:37,546 [NotifyQueueManager] DEBUG
> org.smslib.helper.Logger  - Stopped.
>
> Any idea from the group will be much appreciated. Thanks!

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