Hope this link will help
http://smslib.org/doc/smslib/troubleshooting/

try smslib polling mode

On Friday, May 9, 2014 11:00:44 PM UTC+7, Gregory Zanelato wrote:
>
> Hi there!
>
> I'm trying to receive messages, using an LG Optimus Smartphone at Ubuntu.
>
> Running CommTest:
>
>  Trying at 460800...  Getting Info... Found: LGE470f
>
>
>
> My Code:
>
> SerialModemGateway gateway = new SerialModemGateway("myModem", 
> "/dev/ttyUSB1", 460800, "LG","LGE470f");
> gateway.setProtocol(Protocols.PDU);
> gateway.setInbound(true);
> gateway.setOutbound(true);
>
>
>
>
> Log and Exception:
>
> Stable Library
> =========================================
> Native lib Version = RXTX-2.1-7
> Java lib Version   = RXTX-2.1-7
> 77     2014-05-09 12:53:40,374 [Thread-3] DEBUG 
> org.smslib.threading.AServiceThread  - Initialized.
> 77     2014-05-09 12:53:40,374 [KeepAlive [myModem]] DEBUG 
> org.smslib.threading.AServiceThread  - Running...
> 78     2014-05-09 12:53:40,375 [Thread-3] DEBUG 
> org.smslib.threading.AServiceThread  - Initialized.
> 78     2014-05-09 12:53:40,375 [CNMIEmulatorProcessor [myModem]] DEBUG 
> org.smslib.threading.AServiceThread  - ** disabled **
> 79     2014-05-09 12:53:40,376 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver$ModemReader  - GTW: myModem: ModemReader 
> thread started.
> 81     2014-05-09 12:53:40,378 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver$AsyncNotifier  - GTW: myModem: AsyncNotifier 
> thread started.
> 82     2014-05-09 12:53:40,379 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver$AsyncMessageProcessor  - GTW: myModem: 
> AsyncMessageProcessor thread started.
> 82     2014-05-09 12:53:40,379 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: clearBuffer() called.
> 1083   2014-05-09 12:53:41,380 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: SEND :(27)
> 1286   2014-05-09 12:53:41,583 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: SEND :+++
> 1487   2014-05-09 12:53:41,784 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: SEND :ATZ(cr)
> 1688   2014-05-09 12:53:41,985 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: clearBuffer() called.
> 2689   2014-05-09 12:53:42,986 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: SEND :ATZ(cr)
> 2889   2014-05-09 12:53:43,186 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: SEND :ATE0(cr)
> 3090   2014-05-09 12:53:43,387 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: clearBuffer() called.
> 4091   2014-05-09 12:53:44,388 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: SEND :AT+CPIN?(cr)
> 15015  2014-05-09 12:53:55,312 [WatchDog] DEBUG 
> org.smslib.threading.AServiceThread  - Running...
> 30015  2014-05-09 12:54:10,312 [WatchDog] DEBUG 
> org.smslib.threading.AServiceThread  - Running...
> 30078  2014-05-09 12:54:10,375 [CNMIEmulatorProcessor [myModem]] DEBUG 
> org.smslib.threading.AServiceThread  - ** disabled **
> 45016  2014-05-09 12:54:25,313 [WatchDog] DEBUG 
> org.smslib.threading.AServiceThread  - Running...
> 49093  2014-05-09 12:54:29,390 [Thread-3] DEBUG 
> org.smslib.modem.AModemDriver  - GTW: myModem: Buffer contents on timeout: 
> 49093  2014-05-09 12:54:29,390 [KeepAlive [myModem]] DEBUG 
> org.smslib.threading.AServiceThread  - Stopped.
> 49093  2014-05-09 12:54:29,390 [CNMIEmulatorProcessor [myModem]] DEBUG 
> org.smslib.threading.AServiceThread  - Stopped.
> 49094  2014-05-09 12:54:29,391 [SMSLib-AsyncNotifier : myModem] DEBUG 
> org.smslib.modem.AModemDriver$AsyncNotifier  - GTW: myModem: AsyncNotifier 
> thread ended.
> 49094  2014-05-09 12:54:29,391 [SMSLib-AsyncMessageProcessor : myModem] 
> DEBUG org.smslib.modem.AModemDriver$AsyncMessageProcessor  - GTW: myModem: 
> AsyncMessageProcessor thread ended.
> 49094  2014-05-09 12:54:29,391 [SMSlib-ModemReader-myModem] DEBUG 
> org.smslib.modem.AModemDriver$ModemReader  - GTW: myModem: ModemReader 
> thread ended.
> 49097  2014-05-09 12:54:29,394 [Thread-3] INFO 
>  org.smslib.modem.SerialModemDriver  - GTW: myModem: Closing: /dev/ttyUSB1 
> @460800
> >>> Gateway Status change for myModem, OLD: STOPPED -> NEW: RESTART
> 50023  2014-05-09 12:54:30,320 [DelayQueueManager] DEBUG 
> org.smslib.queues.AbstractQueueManager$DelayQueueManager  - 
> DelayQueueManager end...
> 50023  2014-05-09 12:54:30,320 [NotifyQueueManager] DEBUG 
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  - 
> NotifyQueueManager end...
> 50124  2014-05-09 12:54:30,421 [NotifyQueueManager] DEBUG 
> org.smslib.threading.AServiceThread  - Running...
> 50124  2014-05-09 12:54:30,421 [NotifyQueueManager] DEBUG 
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  - 
> NotifyQueueManager running...
> 50224  2014-05-09 12:54:30,521 [WatchDog] DEBUG 
> org.smslib.threading.AServiceThread  - Stopped.
> 50224  2014-05-09 12:54:30,521 [main] INFO  org.smslib.modem.ModemGateway 
>  - GTW: myModem: Stopping gateway...
> >>> Gateway Status change for myModem, OLD: RESTART -> NEW: STOPPING
> 50225  2014-05-09 12:54:30,522 [NotifyQueueManager] DEBUG 
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  - 
> NotifyQueueManager end...
> 50225  2014-05-09 12:54:30,522 [main] INFO 
>  org.smslib.modem.SerialModemDriver  - GTW: myModem: Closing: /dev/ttyUSB1 
> @460800
> 50225  2014-05-09 12:54:30,522 [main] INFO  org.smslib.modem.ModemGateway 
>  - GTW: myModem: Gateway stopped.
> 50325  2014-05-09 12:54:30,622 [NotifyQueueManager] DEBUG 
> org.smslib.threading.AServiceThread  - Running...
> 50325  2014-05-09 12:54:30,622 [NotifyQueueManager] DEBUG 
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  - 
> NotifyQueueManager running...
> >>> Gateway Status change for myModem, OLD: STOPPING -> NEW: STOPPED
> 50326  2014-05-09 12:54:30,623 [NotifyQueueManager] DEBUG 
> org.smslib.notify.NotifyQueueManager$NotificationQueueManager  - 
> NotifyQueueManager end...
> 50426  2014-05-09 12:54:30,723 [NotifyQueueManager] DEBUG 
> org.smslib.threading.AServiceThread  - Stopped.
> *org.smslib.TimeoutException: No response from device.*
> 50429  2014-05-09 12:54:30,726 [main] INFO  org.smslib.modem.ModemGateway 
>  - GTW: myModem: Stopping gateway...
> 50430  2014-05-09 12:54:30,727 [main] INFO 
>  org.smslib.modem.SerialModemDriver  - GTW: myModem: Closing: /dev/ttyUSB1 
> @460800
> at org.smslib.modem.AModemDriver$CharQueue.get(AModemDriver.java:535)
> at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:338)
> at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:313)
> at org.smslib.modem.athandler.ATHandler.getSimStatus(ATHandler.java:145)
> at org.smslib.modem.AModemDriver.connect(AModemDriver.java:132)
> at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
> at org.smslib.Service$1Starter.run(Service.java:277)
> 50430  2014-05-09 12:54:30,727 [main] INFO  org.smslib.modem.ModemGateway 
>  - GTW: myModem: Gateway stopped.
> Experimental:  JNI_OnLoad called.
>
>
> Can you guys help me to solve this ?
>
> Thanks alot!
>
> Cheers,
>
> Gregory.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/smslib/196fff9b-9bf5-4b07-a389-f2697a4f1ad8%40googlegroups.com.

Reply via email to