On Aug 13 2008, 11:01 am, kito <[email protected]> wrote:
> thnks again
>
> On Aug 13, 1:55 pm, Thanasis <[email protected]> wrote:
>
> > Yes, this is an incompatibility.
> > Please use another phone.
>
> > 2008/8/13 kito <[email protected]>
>
> > > Here it is:
>
> > > 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.
> > > Web Site:http://smslib.org
> > > This software is distributed under the terms of the Apache v2.0
> > > License.
> > > Version: 3.3.0-B3
> > > 0 [main] INFO org.smslib  - SMSLib: A Java API library for sending and
> > > receiving SMS via a GSM modem
> > > or other supported gateways.
> > > Web Site:http://smslib.org
> > > This software is distributed under the terms of the Apache v2.0
> > > License.
> > > 0 [main] INFO org.smslib  - Version: 3.3.0-B3
> > > 0 [main] INFO org.smslib  - JRE Version: 1.6.0_03
> > > 0 [main] INFO org.smslib  - JRE Impl Version: 1.6.0_03-b05
> > > 0 [main] INFO org.smslib  - O/S: Windows XP / x86 / 5.1
> > > 15 [Thread-0] DEBUG org.smslib  - WatchDog started.
> > > 15 [Thread-0] INFO org.smslib  - WatchDog running...
> > > 15 [Thread-1] INFO org.smslib  - Starting gateway, using Generic AT
> > > Handler.
> > > 15 [Thread-1] INFO org.smslib  - Opening: COM8 @57600
> > > 234 [Thread-1] DEBUG org.smslib  - ModemDriver: KeepAlive thread
> > > started.
> > > 250 [Thread-1] DEBUG org.smslib  - ModemReader thread started.
> > > 250 [Thread-1] DEBUG org.smslib  - AsyncNotifier thread started.
> > > 265 [Thread-1] DEBUG org.smslib  - AsyncMessageProcessor thread
> > > started.
> > > 265 [Thread-1] DEBUG org.smslib  - clearBuffer() called.
> > > 1265 [Thread-1] DEBUG org.smslib  - SEND :(27)
> > > 1484 [Thread-1] DEBUG org.smslib  - SEND :+++
> > > 1687 [Thread-1] DEBUG org.smslib  - SEND :ATZ
> > > 1890 [Thread-1] DEBUG org.smslib  - clearBuffer() called.
> > > 2890 [Thread-1] DEBUG org.smslib  - SEND :ATZ(cr)
> > > 3094 [Thread-1] DEBUG org.smslib  - SEND :ATE0(cr)
> > > 3297 [Thread-1] DEBUG org.smslib  - clearBuffer() called.
> > > 4297 [Thread-1] DEBUG org.smslib  - SEND :AT+CPIN?(cr)
> > > 4312 [Thread-1] DEBUG org.smslib  - BUFFER: +CPIN: READY
>
> > > 4328 [Thread-1] DEBUG org.smslib  - RECV :+CPIN: READY(cr)
> > > 4328 [Thread-1] DEBUG org.smslib  - SEND :ATE0(cr)
> > > 4531 [Thread-1] DEBUG org.smslib  - clearBuffer() called.
> > > 5531 [Thread-1] DEBUG org.smslib  - SEND :AT+CLIP=1(cr)
> > > 5531 [Thread-1] DEBUG org.smslib  - BUFFER: OK
>
> > > 5531 [Thread-1] DEBUG org.smslib  - RECV :OK(cr)
> > > 5531 [Thread-1] DEBUG org.smslib  - SEND :AT+COPS=0(cr)
> > > 5547 [Thread-1] DEBUG org.smslib  - BUFFER: OK
>
> > > 5547 [Thread-1] DEBUG org.smslib  - RECV :OK(cr)
> > > 5547 [Thread-1] DEBUG org.smslib  - SEND :ATE0(cr)
> > > 5734 [Thread-1] DEBUG org.smslib  - clearBuffer() called.
> > > 6734 [Thread-1] DEBUG org.smslib  - SEND :AT+CREG?(cr)
> > > 6750 [Thread-1] DEBUG org.smslib  - BUFFER: +CREG: 0,1
> > > OK
>
> > > 6750 [Thread-1] DEBUG org.smslib  - RECV :+CREG: 0,1(cr)OK(cr)
> > > 6750 [Thread-1] INFO org.smslib  - GSM: Registered to home network.
> > > 6750 [Thread-1] DEBUG org.smslib  - SEND :AT+CMEE=1(cr)
> > > 6750 [Thread-1] DEBUG org.smslib  - BUFFER: OK
>
> > > 6750 [Thread-1] DEBUG org.smslib  - RECV :OK(cr)
> > > 6750 [Thread-1] DEBUG org.smslib  - SEND :AT+CPMS?(cr)
> > > 6750 [Thread-1] DEBUG org.smslib  - BUFFER: +CPMS: ,,,,,,,,
> > > OK
>
> > > 6750 [Thread-1] DEBUG org.smslib  - RECV :+CPMS: ,,,,,,,,(cr)OK(cr)
> > > 6781 [Thread-1] WARN org.smslib  - Storage locations could *not* be
> > > retrieved, will proceed with defaults.
> > > java.util.NoSuchElementException
> > >        at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
> > >        at
> > > org.smslib.modem.athandler.ATHandler.readStorageLocations(ATHandler.java:
> > > 445)
> > >        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:155)
> > >        at 
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:110)
> > >        at org.smslib.Service$1Starter.run(Service.java:189)
> > > 6781 [Thread-1] DEBUG org.smslib  - SEND :AT+CNMI=?(cr)
> > > 6797 [Thread-1] DEBUG org.smslib  - BUFFER: ERROR
>
> > > 6797 [Thread-1] DEBUG org.smslib  - RECV :ERROR(cr)
> > > 6797 [Thread-1] WARN org.smslib  - Retrying the detection of CNMI,
> > > modem busy?
> > > java.lang.IllegalArgumentException: Missing parameters
> > >        at org.smslib.modem.CNMIDetector.detect(CNMIDetector.java:159)
> > >        at org.smslib.modem.CNMIDetector.<init>(CNMIDetector.java:74)
> > >        at
> > > org.smslib.modem.athandler.ATHandler.setIndications(ATHandler.java:
> > > 182)
> > >        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:164)
> > >        at 
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:110)
> > >        at org.smslib.Service$1Starter.run(Service.java:189)
> > > 9797 [Thread-1] DEBUG org.smslib  - SEND :AT+CNMI=?(cr)
> > > 9797 [Thread-1] DEBUG org.smslib  - BUFFER: ERROR
>
> > > 9797 [Thread-1] DEBUG org.smslib  - RECV :ERROR(cr)
> > > 9797 [Thread-1] WARN org.smslib  - Retrying the detection of CNMI,
> > > modem busy?
> > > java.lang.IllegalArgumentException: Missing parameters
> > >        at org.smslib.modem.CNMIDetector.detect(CNMIDetector.java:159)
> > >        at org.smslib.modem.CNMIDetector.<init>(CNMIDetector.java:74)
> > >        at
> > > org.smslib.modem.athandler.ATHandler.setIndications(ATHandler.java:
> > > 182)
> > >        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:164)
> > >        at 
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:110)
> > >        at org.smslib.Service$1Starter.run(Service.java:189)
>
> > > the last part goes on loop :(
>
> > > On Aug 13, 12:57 am, Thanasis <[email protected]> wrote:
> > > > Can you run the ReadMessages example like this:
>
> > > > java -Dsmslib.debug examples.modem.ReadMessages
>
> > > > and post the output?
>
> > > > 2008/8/12 kito <[email protected]>
>
> > > > > I have tried the ReadMessages program and only change the comPort and
> > > > > the model number in SerialModemGateway constructor.
>
> > > > > It did recognize my phone (and the phone also responded popping-out:
> > > > > "connected to PC_name") but the program failed to start the service
> > > > > properly (this.srv.startService(); part). The first error/warning said
> > > > > "Storage locations could *not* be retrieved, will proceed with
> > > > > defaults". Then it gone a "looping forever" error and said: "Retrying
> > > > > the detection of CNMI, modem busy?".
>
> > > > > Is this a sign of incompatibility of my phone, or do I have to change
> > > > > the settings/parameters of the program a little bit more?
>
> > > > > (hoping for your salutary response, ty)
>
> > > > > On Aug 12, 2:36 pm, Thanasis <[email protected]> wrote:
> > > > > > On Aug 12, 9:23 am, kito <[email protected]> wrote:
>
> > > > > > > Thank you for the quick response.
>
> > > > > > > There's no problem about the other type of messages. I'm only
> > > > > > > utilizing simple/plain text SMS.
> > > > > > > My problem/question is, can a program (using this API)  detect new
> > > > > > > incoming messages from a connected phone
> > > > > > > in real-time (like what Nokia PC Suite do). I believe the example
> > > > > > > program "ReadMessages" read the messages that are already 
> > > > > > > available
> > > in
> > > > > > > the inbox beforehand. (Can I extend these capabilities to support
> > > real-
> > > > > > > time reading, maybe using threads?) Nevertheless, I'll try to look
> > > > > > > into the distro examples!!
>
> > > > > > Yes you can do this, assuming that your phone supports this feature.
> > > > > > If it does not, you will have to dopolling, i.e. call methods and
> > > > > > check for messages every <n> seconds.
>
> > > > > > > About the phone compatibility, Nokia 6500 classic (Series 40
> > > phones)
> > > > > > > is not listed in the "reported compatible phones" in the manual 
> > > > > > > but
> > > it
> > > > > > > is not also listed in the incompatible ones.
>
> > > > > > Well, this list is compiled from user reports, so its just an
> > > > > > indication. I, for sure, haven't tested all these models!
> > > > > > I think that Nokia 6131 is also considered a Series 40 phone, but it
> > > > > > does not work... Anyway, better check to be sure.
>
> > > > > > > Again thanks for the reply.
>
> > > > > > > On Aug 12, 1:57 pm, Thanasis <[email protected]> wrote:
>
> > > > > > > > Hi,
>
> > > > > > > > The answer is yes and no:
>
> > > > > > > > This library can read messages and pass them to you (for further
> > > > > processing)
> > > > > > > > but it should not be considered as an "phone message backup"
> > > > > solution,
> > > > > > > > simply because it does not handle all types of messages. For
> > > example,
> > > > > it
> > > > > > > > cannot handle vcards, mms ,etc.
>
> > > > > > > > There is an example file "ReadMessages" in the distro which you
> > > can
> > > > > use and
> > > > > > > > see for yourself.
>
> > > > > > > > As far as the compatibility question, I don't really know if 
> > > > > > > > your
> > > > > phone is
> > > > > > > > compatible. Maybe some other friend can answer this.
>
> > > > > > > > 2008/8/12 kito <[email protected]>
>
> > > > > > > > > Good Day!
>
> > > > > > > > > I'm really new to the mobile development (but not in Java), so
> > > I
> > > > > will
> > > > > > > > > be really grateful for your advices:
>
> > > > > > > > > I'm planning to make a very simple program that connects
> > > (transfers
> > > > > > > > > automatically) my mobile phone's messages to my pc (a
> > > Java-based
> > > > > > > > > program that dump these messages into a database).
> > > > > > > > > Can this API help in achieving my task? (can you please give
> > > any
> > > > > > > > > suggestions if not)
>
> > > > > > > > > Thank you in advance.
>
> > > > > > > > > My PC's OS : Windows XP
> > > > > > > > > My mobile phone : Nokia 6500 classic (is this compatible to 
> > > > > > > > > the
> > > > > API?)
>
> ...
>
> read more »

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