You are right, I just wanted to rule out the easy answer :)
Ok, your modem reports only one storage, "SM" which is SIM storage/
memory.
Since no other storage location is reported, we can only try to guess
what these are.
Edit ATHandler.java, locate the constructor and add this line:
setStorageLocations("SMSRMTME");
Recompile and try once more.
On Nov 29, 2:08 pm, Rahul Boss <[EMAIL PROTECTED]> wrote:
> >Does SMSLib react and read the message?
>
> No it does not react. WatchDog goes on runnig continuously. Nothing
> happens when i sent SMS.
>
> Well I want to tell 3 points :-
> 1) There are totally 2 Memory Locations to store SMS: A] GSM Modem
> Memory & B] SIM Memory
> 2) All Incoming SMS's are getting stored in GSM Modem Memory.
> 3) My ReadMessage class reads SMS from SIM Memory where not a single
> SMS is present.
>
> I feel, I have to suggest ReadMessage class to fetch SMS from Device
> memory and NOT the SIM Memory.
>
> Am I right?
>
> Please correct me. If i am wrong.
>
> On Nov 29, 3:49 pm, Thanasis <[EMAIL PROTECTED]> wrote:
>
>
>
> > It could be even worse. The application might read messages and then
> > store them somewhere else.
>
> > As a first step, forget about your modem's application. Start the
> > ReadMessages example, leave it running the send an sms to you modem.
> > Does SMSLib react and read the message?
>
> > On Nov 29, 11:23 am, Rahul Boss <[EMAIL PROTECTED]> wrote:
>
> > > Hi All,
>
> > > Thank you Thanasis. Yes i am using manufacturer's application to view
> > > messages.
>
> > > OOO I see. The messages are stored into Local Memory of the Device and
> > > not on the SIM memory.
>
> > > And i think my program is reading the SMSs from SIM memeory.
>
> > > I got it.
>
> > > But now further how can i tend to use both memeory location to search
> > > SMS and tells my READMESSAGE class to read both locations?
>
> > > Thank you very much.
>
> > > On Nov 29, 3:08 am, Thanasis <[EMAIL PROTECTED]> wrote:
>
> > > > Nope, everything runs fine. Your modem reports only one storage
> > > > location and
> > > > also reports that no messages are available.
>
> > > > When you say: <<<I can see the two sms in my Inbox>>>, what is this
> > > > "Inbox"?
> > > > Are you using the manufacturer's application to view messages?
>
> > > > 2008/11/28 Rahul Boss <[EMAIL PROTECTED]>
>
> > > > > Hi,
>
> > > > > i was successfully able to run the class of ReadMessage on my old USB
> > > > > modem device of HUAWEI.
>
> > > > > I changed the device and, right now having same manufacture device
> > > > > (HUAWEI) with same model.
> > > > > I assured the COM port i installed it. and put the baud rate 9600.
>
> > > > > I can see the two sms in my Inbox. But when i run ReadMessage i can't
> > > > > see those messages.
>
> > > > > My RUN Command::
> > > > > ------------------------------
> > > > > java -Dsmslib.debug examples.modem.ReadMessages
>
> > > > > Output::
> > > > > ------------------------------------
> > > > > C:\Users\rahul\Desktop>set path=C:\Program Files\Java\jdk1.6.0_04\bin
>
> > > > > C:\Users\rahul\Desktop>set pathc=C:\Users\rahul\Desktop\jk\
>
> > > > > C:\Users\rahul\Desktop>set mypropath=C:\Users\rahul\Desktop\mob\
>
> > > > > C:\Users\rahul\Desktop>set classpath=C:\Users\rahul\Desktop\jk
> > > > > \comm.jar;C:\Users\rahul\Desktop\jk\commons-net-1.4.1.jar;C:\User
> > > > > s\rahul\Desktop\jk\junit-3.8.1.jar;C:\Users\rahul\Desktop\jk
> > > > > \log4j-1.2.14.jar;C:\Users\rahul\Desktop\jk\mail.jar;C:\Users\rahul
> > > > > \Desktop\mob\actualmobile.jar;
>
> > > > > C:\Users\rahul\Desktop>java -Dsmslib.debug 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.
> > > > > Web Site:http://smslib.org
> > > > > This software is distributed under the terms of the Apache v2.0
> > > > > License.
> > > > > Version: 3.3.0
> > > > > 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.
> > > > > 2 [main] INFO org.smslib - Version: 3.3.0
> > > > > 2 [main] INFO org.smslib - JRE Version: 1.6.0_04
> > > > > 4 [main] INFO org.smslib - JRE Impl Version: 10.0-b19
> > > > > 7 [main] INFO org.smslib - O/S: Windows Vista / x86 / 6.0
> > > > > 32 [Thread-0] DEBUG org.smslib - WatchDog started.
> > > > > 35 [Thread-0] INFO org.smslib - WatchDog running...
> > > > > 35 [Thread-1] INFO org.smslib - GTW: modem.com7: Starting gateway,
> > > > > using Generic AT Handler.
> > > > > 39 [Thread-1] INFO org.smslib - GTW: modem.com7: Opening: COM7 @9600
> > > > > 144 [Thread-1] DEBUG org.smslib - GTW: modem.com7: ModemDriver:
> > > > > KeepAlive thread started.
> > > > > 147 [Thread-1] DEBUG org.smslib - GTW: modem.com7: ModemReader thread
> > > > > started.
> > > > > 152 [Thread-1] DEBUG org.smslib - GTW: modem.com7: AsyncNotifier
> > > > > thread started.
> > > > > 159 [Thread-1] DEBUG org.smslib - GTW: modem.com7:
> > > > > AsyncMessageProcessor thread started.
> > > > > 161 [Thread-1] DEBUG org.smslib - GTW: modem.com7: clearBuffer()
> > > > > called.
> > > > > 1164 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :(27)
> > > > > 1370 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :+++
> > > > > 1576 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :ATZ
> > > > > 1781 [Thread-1] DEBUG org.smslib - GTW: modem.com7: clearBuffer()
> > > > > called.
> > > > > 2783 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :ATZ(cr)
> > > > > 2984 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :ATE0(cr)
> > > > > 3185 [Thread-1] DEBUG org.smslib - GTW: modem.com7: clearBuffer()
> > > > > called.
> > > > > 4185 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CPIN?
> > > > > (cr)
> > > > > 4189 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: +CPIN:
> > > > > READY
> > > > > 4190 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :+CPIN:
> > > > > READY
> > > > > (cr)
> > > > > 4191 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :ATE0(cr)
> > > > > 4392 [Thread-1] DEBUG org.smslib - GTW: modem.com7: clearBuffer()
> > > > > called.
> > > > > 5392 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CLIP=1
> > > > > (cr)
> > > > > 5395 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: OK
> > > > > 5395 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :OK(cr)
> > > > > 5396 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+COPS=0
> > > > > (cr)
> > > > > 5413 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: OK
> > > > > 5415 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :OK(cr)
> > > > > 5416 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :ATE0(cr)
> > > > > 5617 [Thread-1] DEBUG org.smslib - GTW: modem.com7: clearBuffer()
> > > > > called.
> > > > > 6617 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CREG?
> > > > > (cr)
> > > > > OK25 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: +CREG:
> > > > > 0,1
> > > > > 6627 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :+CREG: 0,1
> > > > > (cr)OK(cr)
> > > > > 6628 [Thread-1] INFO org.smslib - GTW: modem.com7: GSM: Registered to
> > > > > home network.
> > > > > 6629 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CMEE=1
> > > > > (cr)
> > > > > 6632 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: OK
> > > > > 6634 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :OK(cr)
> > > > > 6634 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CPMS?
> > > > > (cr)
> > > > > OK48 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: +CPMS:
> > > > > "SM",0,40,"SM",0,40,"SM",0,40
> > > > > 6661 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :+CPMS:
> > > > > "SM",
> > > > > 0,40,"SM",0,40,"SM",0,40(cr)OK(cr)
> > > > > 6673 [Thread-1] INFO org.smslib - GTW: modem.com7: MEM: Storage
> > > > > Locations Found: SM
> > > > > 6684 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CNMI=?
> > > > > (cr)
> > > > > OK03 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: +CNMI:
> > > > > (0,1,2),(0,1,2,3),(0,2),(0,2),(0,1)
> > > > > 6709 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :+CNMI:
> > > > > (0,1,2),(0,1,2,3),(0,2),(0,2),(0,1)(cr)OK(cr)
> > > > > 6715 [Thread-1] DEBUG org.smslib - CNMI: Found best match: 2
> > > > > 6720 [Thread-1] DEBUG org.smslib - CNMI: Found best match: 1
> > > > > 6725 [Thread-1] DEBUG org.smslib - CNMI: Found best match: 0
> > > > > 6730 [Thread-1] DEBUG org.smslib - CNMI: Found best match: 2
> > > > > 6735 [Thread-1] DEBUG org.smslib - CNMI: Found best match: 0
> > > > > 6740 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT
> > > > > +CNMI=2,1,0,2,0(cr)
> > > > > 6752 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: OK
> > > > > 6757 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :OK(cr)
> > > > > 6762 [Thread-1] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CMGF=0
> > > > > (cr)
> > > > > 6770 [Thread-1] DEBUG org.smslib - GTW: modem.com7: BUFFER: OK
> > > > > 6775 [Thread-1] DEBUG org.smslib - GTW: modem.com7: RECV :OK(cr)
> > > > > >>> Gateway Status change for modem.com7, OLD: STOPPED -> NEW: RUNNING
> > > > > 6782 [Thread-6] INFO org.smslib - GTW: modem.com7: Starting Queue
> > > > > Manager.
> > > > > 6787 [Thread-1] INFO org.smslib - GTW: modem.com7: Gateway started.
>
> > > > > Modem Information:
> > > > > 7054 [main] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CGMI(cr)
> > > > > OK70 [main] DEBUG org.smslib - GTW: modem.com7: BUFFER: huawei
> > > > > 7083 [main] DEBUG org.smslib - GTW: modem.com7: RECV :huawei(cr)OK
> > > > > (cr)
> > > > > Manufacturer: huawei
> > > > > 7102 [main] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CGMM(cr)
> > > > > OK12 [main] DEBUG org.smslib - GTW: modem.com7: BUFFER: EG162G
> > > > > 7118 [main] DEBUG org.smslib - GTW: modem.com7: RECV :EG162G(cr)OK
> > > > > (cr)
> > > > > Model: EG162G
> > > > > 7128 [main] DEBUG org.smslib - GTW: modem.com7: SEND :AT+CGSN(cr)
> > > > > OK38 [main] DEBUG org.smslib - GTW: modem.com7: BUFFER:
> > > > > 353474020522298
> > > > > 7144 [main] DEBUG org.smslib - GTW: modem.com7: RECV :353474020522298
> > > > > (cr)OK(cr)
> > > > > Serial No: 353474020522298
> > > > > SIM IMSI: ** MASKED **
> > > > > 7159
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SMSLib Users 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
-~----------~----~----~----~------~----~------~--~---