Hi Thanasis, Its a +CME ERROR : Sim not inserted error.
Because of this I am getting a no response from device exception and is a device error. What does this signify?. I am using a Reliance Datacard(manufacturer: Huawei, Model: EC121). as a USB modem. What should I do to rectify it?. Regards, Sandeep. On Feb 26, 10:01 am, sandeep <[email protected]> wrote: > Thanks a lot. I changed it. Now the modem is not responding. I used > the usb_modeswitch program to detach the storage on it and is > responding to the wvdial on linux. But with the ReadMessage program , > its giving a org.smslib.TimeoutException : No response from device. > > Output is as below, > > /home/sandeep/Download/jdk1.5.0_17/bin/java -Dsmslib.debug - > Dsmsserver.configdir=/home/sandeep/Download/SMSlib/src/java/org/smslib/ > smsserver/ examples.modem.ReadMessages > Example: Read messages from a serial gsm modem. > 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 > Version: 3.3.3 > 0 [main] INFO org.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 > 2 [main] INFO org.smslib - Version: 3.3.3 > 3 [main] INFO org.smslib - JRE Version: 1.5.0_17 > 3 [main] INFO org.smslib - JRE Impl Version: 1.5.0_17-b04 > 3 [main] INFO org.smslib - O/S: Linux / i386 / 2.6.25-14.fc9.i686 > 64 [SMSLib-WatchDog] DEBUG org.smslib - WatchDog started. > 65 [SMSLib-WatchDog] INFO org.smslib - WatchDog running... > 65 [Thread-1] INFO org.smslib - GTW: modem1: Starting gateway, using > Generic AT Handler. > 65 [Thread-1] INFO org.smslib - GTW: modem1: Opening: /dev/ttyUSB2 > @19200 > Experimental: JNI_OnLoad called. > Stable Library > ========================================= > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > 233 [Thread-1] DEBUG org.smslib - GTW: modem1: ModemDriver: KeepAlive > thread started. > 235 [Thread-1] DEBUG org.smslib - GTW: modem1: ModemReader thread > started. > 240 [Thread-1] DEBUG org.smslib - GTW: modem1: AsyncNotifier thread > started. > 242 [Thread-1] DEBUG org.smslib - GTW: modem1: AsyncMessageProcessor > thread started. > 242 [Thread-1] DEBUG org.smslib - GTW: modem1: clearBuffer() called. > 1243 [Thread-1] DEBUG org.smslib - GTW: modem1: SEND :(27) > 1447 [Thread-1] DEBUG org.smslib - GTW: modem1: SEND :+++ > 1649 [Thread-1] DEBUG org.smslib - GTW: modem1: SEND :ATZ > 1850 [Thread-1] DEBUG org.smslib - GTW: modem1: clearBuffer() called. > 2850 [Thread-1] DEBUG org.smslib - GTW: modem1: SEND :ATZ(cr) > 3051 [Thread-1] DEBUG org.smslib - GTW: modem1: SEND :ATE0(cr) > 3252 [Thread-1] DEBUG org.smslib - GTW: modem1: clearBuffer() called. > 4253 [Thread-1] DEBUG org.smslib - GTW: modem1: SEND :AT+CPIN?(cr) > 15065 [SMSLib-WatchDog] INFO org.smslib - WatchDog running... > 30065 [SMSLib-WatchDog] INFO org.smslib - WatchDog running... > 45065 [SMSLib-WatchDog] INFO org.smslib - WatchDog running... > 49254 [Thread-1] DEBUG org.smslib - GTW: modem1: Buffer contents on > timeout: > 49254 [Thread-1] DEBUG org.smslib - GTW: modem1: Trying to shutdown > keepAlive thread... > 49254 [Thread-1] DEBUG org.smslib - GTW: modem1: Trying to shutdown > asyncNotifier thread... > 49254 [Thread-1] DEBUG org.smslib - GTW: modem1: Trying to shutdown > asyncMessageProcessor thread... > 49255 [Thread-1] DEBUG org.smslib - GTW: modem1: Trying to shutdown > modemReader thread... > 49255 [SMSlib-KeepAlive : modem1] DEBUG org.smslib - GTW: modem1: > ModemDriver: KeepAlive thread ended. > 49255 [SMSLib-AsyncNotifier : modem1] DEBUG org.smslib - GTW: modem1: > AsyncNotifier thread ended. > 49255 [SMSLib-AsyncMessageProcessor : modem1] DEBUG org.smslib - GTW: > modem1: AsyncMessageProcessor thread ended. > 49256 [SMSlib-ModemReader-modem1] DEBUG org.smslib - GTW: modem1: > ModemReader thread ended. > 49260 [Thread-1] INFO org.smslib - GTW: modem1: Closing: /dev/ttyUSB2 > @19200>>> Gateway Status change for modem1, OLD: STOPPED -> NEW: RESTART > > org.smslib.TimeoutException: No response from device. > at org.smslib.modem.AModemDriver$CharQueue.get > (AModemDriver.java:519) > at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java: > 317) > at org.smslib.modem.athandler.ATHandler.getSimStatus > (ATHandler.java:130) > at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > 127) > at org.smslib.modem.ModemGateway.startGateway > (ModemGateway.java:126) > at org.smslib.Service$1Starter.run(Service.java:222) > 50072 [SMSLib-WatchDog] DEBUG org.smslib - WatchDog stopped. > 50072 [main] INFO org.smslib - GTW: modem1: Stopping gateway...>>> Gateway > Status change for modem1, OLD: RESTART -> NEW: STOPPED > > 50072 [main] INFO org.smslib - GTW: modem1: Closing: /dev/ttyUSB2 > @19200 > 50072 [main] INFO org.smslib - GTW: modem1: Gateway stopped. > > What has to be done now?. > > Regards, > Sandeep. > > On Feb 25, 6:06 pm, Thanasis <[email protected]> wrote: > > > COM1 in Unix/Linux??? > > > On Feb 25, 12:50 pm, sandeep <[email protected]> wrote: > > > > Hi Thanasis, > > > > Thanks for the reply. I ran the ReadMessages example but got a NoSuch > > > port exception as below, > > > > /home/sandeep/Download/jdk1.5.0_17/bin/java -Dsmslib.debug - > > > Dsmslib.debug_queue -Dsmslib.serial.polling -Dsmsserver.configdir=/ > > > home/sandeep/Download/SMSlib/src/java/org/smslib/smsserver/ > > > examples.modem.ReadMessages > > > Example: Read messages from a serial gsm modem. > > > 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 > > > Version: 3.3.3 > > > 1 [main] INFO org.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 > > > 3 [main] INFO org.smslib - Version: 3.3.3 > > > 3 [main] INFO org.smslib - JRE Version: 1.5.0_17 > > > 3 [main] INFO org.smslib - JRE Impl Version: 1.5.0_17-b04 > > > 3 [main] INFO org.smslib - O/S: Linux / i386 / 2.6.25-14.fc9.i686 > > > 68 [SMSLib-WatchDog] DEBUG org.smslib - WatchDog started. > > > 69 [SMSLib-WatchDog] INFO org.smslib - WatchDog running... > > > 71 [Thread-1] INFO org.smslib - GTW: modem.com1: Starting gateway, > > > using Generic AT Handler. > > > 71 [Thread-1] INFO org.smslib - GTW: modem.com1: Using polled serial > > > port mode. > > > 72 [Thread-1] INFO org.smslib - GTW: modem.com1: Opening: COM1 @57600>>> > > > Gateway Status change for modem.com1, OLD: STOPPED -> NEW: RESTART > > > > org.smslib.GatewayException: Comm library exception: > > > java.lang.RuntimeException: javax.comm.NoSuchPortException > > > at org.smslib.modem.SerialModemDriver.connectPort > > > (SerialModemDriver.java:92) > > > at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > > > 110) > > > at org.smslib.modem.ModemGateway.startGateway > > > (ModemGateway.java:126) > > > at org.smslib.Service$1Starter.run(Service.java:222) > > > 1083 [SMSLib-WatchDog] DEBUG org.smslib - WatchDog stopped. > > > 1083 [main] INFO org.smslib - GTW: modem.com1: Stopping gateway...>>> > > > Gateway Status change for modem.com1, OLD: RESTART -> NEW: STOPPED > > > > 1084 [main] INFO org.smslib - GTW: modem.com1: Closing: COM1 @57600 > > > 1084 [main] INFO org.smslib - GTW: modem.com1: Gateway stopped. > > > > What has to be done now?. > > > > Regards, > > > Sandeep. > > > > On Feb 25, 3:03 pm, Thanasis <[email protected]> wrote: > > > > > Have you tried to run the ReadMessages example with /dev/ttyUSB0? > > > > I think that the problem is with the port and not with the XML > > > > interface... Maybe this would > > > > help:http://smslib.org/doc/kb/#Linux_and_undetectable_ports > > > > > On Feb 25, 11:27 am,sandeep<[email protected]> wrote: > > > > > > Hi, > > > > > > Any suggestions on this issue. I am really in a mess. Someone do help > > > > > me in this. > > > > > > Regards, > > > > >Sandeep. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
