I even tried on a hyperterminal (minicom). Even there , when I send a
AT+CPIN command , Iam getting the +CME ERROR : Sim not inserted
error .

Here is the log.

[r...@sandeep classes]# /home/sandeep/Download/jdk1.5.0_17/bin/java -
Dsmslib.debug -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
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
54 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog started.
54 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
56 [Thread-1] INFO org.smslib  - GTW: modem1: Starting gateway, using
Generic AT Handler.
57 [Thread-1] INFO org.smslib  - GTW: modem1: Using polled serial port
mode.
57 [Thread-1] INFO org.smslib  - GTW: modem1: Opening: /dev/ttyUSB2
@9600
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
215 [Thread-3] DEBUG org.smslib  - GTW: modem1: ThreadReader started.
217 [Thread-1] DEBUG org.smslib  - GTW: modem1: ModemDriver: KeepAlive
thread started.
219 [Thread-1] DEBUG org.smslib  - GTW: modem1: ModemReader thread
started.
224 [Thread-1] DEBUG org.smslib  - GTW: modem1: AsyncNotifier thread
started.
226 [Thread-1] DEBUG org.smslib  - GTW: modem1: AsyncMessageProcessor
thread started.
227 [Thread-1] DEBUG org.smslib  - GTW: modem1: clearBuffer() called.
1227 [Thread-1] DEBUG org.smslib  - GTW: modem1: SEND :(27)
1429 [Thread-1] DEBUG org.smslib  - GTW: modem1: SEND :+++
1630 [Thread-1] DEBUG org.smslib  - GTW: modem1: SEND :ATZ
1833 [Thread-1] DEBUG org.smslib  - GTW: modem1: clearBuffer() called.
2833 [Thread-1] DEBUG org.smslib  - GTW: modem1: SEND :ATZ(cr)
3035 [Thread-1] DEBUG org.smslib  - GTW: modem1: SEND :ATE0(cr)
3238 [Thread-1] DEBUG org.smslib  - GTW: modem1: clearBuffer() called.
4238 [Thread-1] DEBUG org.smslib  - GTW: modem1: SEND :AT+CPIN?(cr)
15055 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
30055 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
45055 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
49420 [Thread-1] DEBUG org.smslib  - GTW: modem1: Buffer contents on
timeout: +CME ERROR:SIM not inserted
49420 [Thread-1] DEBUG org.smslib  - GTW: modem1: Trying to shutdown
keepAlive thread...
49420 [Thread-1] DEBUG org.smslib  - GTW: modem1: Trying to shutdown
asyncNotifier thread...
49420 [Thread-1] DEBUG org.smslib  - GTW: modem1: Trying to shutdown
asyncMessageProcessor thread...
49420 [Thread-1] DEBUG org.smslib  - GTW: modem1: Trying to shutdown
modemReader thread...
49420 [SMSlib-KeepAlive : modem1] DEBUG org.smslib  - GTW: modem1:
ModemDriver: KeepAlive thread ended.
49421 [SMSLib-AsyncNotifier : modem1] DEBUG org.smslib  - GTW: modem1:
AsyncNotifier thread ended.
49421 [SMSLib-AsyncMessageProcessor : modem1] DEBUG org.smslib  - GTW:
modem1: AsyncMessageProcessor thread ended.
49421 [SMSlib-ModemReader-modem1] DEBUG org.smslib  - GTW: modem1:
ModemReader thread ended.
49421 [Thread-3] DEBUG org.smslib  - GTW: modem1: ThreadReader
stopped.
49426 [Thread-1] INFO org.smslib  - GTW: modem1: Closing: /dev/ttyUSB2
@9600
>>> 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)
50069 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog stopped.
50069 [main] INFO org.smslib  - GTW: modem1: Stopping gateway...
>>> Gateway Status change for modem1, OLD: RESTART -> NEW: STOPPED
50069 [main] INFO org.smslib  - GTW: modem1: Closing: /dev/ttyUSB2
@9600
50069 [main] INFO org.smslib  - GTW: modem1: Gateway stopped.


Regards,
Sandeep.

On Feb 26, 11:44 am, Thanasis <[email protected]> wrote:
> Hi,
>
> Where did you get this CME error? I don't see it in the log.
>
> Try to soft link your /dev/ttyUSB0 to a more "serial-like" device,
> like /dev/ttyS20. Then try to use the second port in order to connect.
> Does this work any better?
>
> On Feb 26, 8:31 am, sandeep <[email protected]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to