Try one more thing, pls:

Switch back to the previous baud rate (the one that made those "FFF"
appear) and run the example like this:

java -Dsmslib.nocmti examples.modem.ReadMessages

Now?

On Mar 26, 10:33 am, Rajan Dev <[email protected]> wrote:
> hello
>
> I am using JavaCommv2 and i changed the baud rates and i got the error
> something like this
>
> thanks
> 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
>
> >>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: RUNNING
>
> Modem Information:
>   Manufacturer: SIEMENS
>   Model: MC39i
>   Serial No: 357249013569175
>   SIM IMSI: ** MASKED **
>   Signal Level: 100%
>   Battery Level: 0%
>
> 0 [main] WARN org.smslib  - readMessages(): Gateway modem.com1 does not
> respond, marking for restart.>>> Gateway Status change for modem.com1, OLD: 
> RUNNING -> NEW: RESTART
>
> Now Sleeping - Hit <enter> to terminate.
> 6547 [SMSLib-WatchDog] WARN org.smslib  - WatchDog: Gateway: modem.com1
> restarting.>>> Gateway Status change for modem.com1, OLD: RESTART -> NEW: 
> STOPPED
>
> 6547 [SMSLib-CNMIEmulator : modem.com1] WARN org.smslib  - GTW: modem.com1:
> Re-throwing InterruptedException in Queue.peek() - should be during
> shutdown...
> java.lang.InterruptedException
>         at java.lang.Object.wait(Native Method)
>         at
> org.smslib.modem.AModemDriver$CharQueue.peek(AModemDriver.java:544)
>         at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:313)
>         at
> org.smslib.modem.athandler.ATHandler.listMessages(ATHandler.java:385)
>         at
> org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:381)
>         at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147)
>         at
> org.smslib.modem.AModemDriver$CNMIEmulatorProcessor.run(AModemDriver.java:9 
> 76)
> 6547 [SMSLib-CNMIEmulator : modem.com1] WARN org.smslib  - GTW: modem.com1:
> GetResponse() Interrupted.
> java.lang.InterruptedException
>         at
> org.smslib.modem.AModemDriver$CharQueue.peek(AModemDriver.java:554)
>         at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:313)
> Exception in thread "SMSLib-CNMIEmulator : modem.com1"
> java.lang.NullPointerException
>         at
> org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:386)
>         at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147)
>         at
> org.smslib.modem.AModemDriver$CNMIEmulatorProcessor.run(AModemDriver.java:9 
> 76)
>         at
> org.smslib.modem.athandler.ATHandler.listMessages(ATHandler.java:385)
>         at
> org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:381)
>         at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147)
>         at
> org.smslib.modem.AModemDriver$CNMIEmulatorProcessor.run(AModemDriver.java:9 
> 76)
>
> >>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: RESTART
> >>> Gateway Status change for modem.com1, OLD: RESTART -> NEW: RUNNING
> On Thu, Mar 26, 2009 at 2:06 PM, Thanasis <[email protected]> wrote:
>
> > I assume you are also using JavaComm v2, right? If not, do so!
> > Try with different baud rates and see if these "FFFF..." get removed
> > from your logs.
>
> > On Mar 26, 10:09 am, Rajan Dev <[email protected]> wrote:
> > > Hello
>
> > > My  Operating system is windows Xp.
> > > I am using GSM/GPRS modem (seimens MC 39i).
> > > and the serial  port  is Com1
>
> > > are these information enough or you need more information . please do let
> > me
> > > know
>
> > > Thanks
>
> > > On Thu, Mar 26, 2009 at 1:48 PM, Thanasis <[email protected]> wrote:
>
> > > > Hi Rajan,
>
> > > > Those "FFFFF..." should not be in the log.
> > > > You have a serious comm link problem. What is your setup? (operating
> > > > system, phone, serial/USB link, etc).
>
> > > > On Mar 26, 9:54 am, Rajan Dev <[email protected]> wrote:
> > > > > hello all
>
> > > > > i tried to run Sms Send and sms Read from the examples. model
>
> > > > > i could send sms but while reading sms i got the following error
> > still
> > > > could
> > > > > read the message after the error .. could u please help me out
>
> > > > > i have emptied my inbox and checked but still it dint work
--~--~---------~--~----~------------~-------~--~----~
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