It's not working againg. Not reading sms from the modem.

I debugged the classes of SMSLIB, and I found in the class
ModemGateway in the method readMessagesPDU in the line 517 where it's

for (int ml = 0; ml < (getATHandler().getStorageLocations().length() /
2); ml++)
                {


the applications is not running in the for loop, because
getATHandler().getStorageLocations().length() is equal to zero.
Anybody knows why it is equal to zero?

On 5 oct, 17:37, Ramiro <[email protected]> wrote:
> Sorry for posting again, but I found that if I first send a text
> message then I can see messages in the mailbox.
> When sets the SMMTME StorageLocations puts me in some messages, but
> not all (and many repeted). I will continue to investigate why I do
> this, and why it is necessary to send a message to read messages from
> the mailbox
>
> On 5 oct, 15:31, Ramiro <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi!
>
> > I have problems with the library. When trying to send messages goes
> > perfect, but when I try to read the stored messages always returns no
> > messages in the box.
>
> > I tried with the storageLocator SM ME MT and many others, but the
> > result was the same: no messages inbox, but I'm seeing there is 5
> > messages inbox
>
> > I'm using a Modem 3G from ZTE model MF100. Please, can anyone help me?
> > Thank you!
>
> > this is my log file:
>
> > 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.5.1
> > BW 2011-10-05 15:27:58,661 [main] INFO  smslib:113 - 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
> > BW 2011-10-05 15:27:58,663 [main] INFO  smslib:114 - Version: 3.5.1
> > BW 2011-10-05 15:27:58,664 [main] INFO  smslib:115 - JRE Version:
> > 1.6.0_18
> > BW 2011-10-05 15:27:58,665 [main] INFO  smslib:116 - JRE Impl Version:
> > 16.0-b13
> > BW 2011-10-05 15:27:58,666 [main] INFO  smslib:117 - O/S: Windows 7 /
> > x86 / 6.1
> > BW 2011-10-05 15:27:58,680 [main] DEBUG smslib:39 - Initialized.
> > BW 2011-10-05 15:27:58,681 [NotifyQueueManager] DEBUG smslib:104 -
> > Running...
> > BW 2011-10-05 15:27:58,684 [NotifyQueueManager] DEBUG smslib:96 -
> > NotifyQueueManager running...
> > BW 2011-10-05 15:27:58,683 [main] INFO  smslib:92 - Queue directory
> > not defined. Queued messages will not be saved to filesystem.
> > BW 2011-10-05 15:27:58,686 [main] DEBUG smslib:39 - Initialized.
> > BW 2011-10-05 15:27:58,687 [DelayQueueManager] DEBUG smslib:104 -
> > Running...
> > BW 2011-10-05 15:27:58,687 [DelayQueueManager] DEBUG smslib:151 -
> > DelayQueueManager running...
> > BW 2011-10-05 15:27:58,689 [main] DEBUG smslib:39 - Initialized.
> > BW 2011-10-05 15:27:58,689 [WatchDog] DEBUG smslib:104 - Running...
> > BW 2011-10-05 15:27:58,691 [Thread-4] INFO  smslib:188 - GTW:
> > modem.com6: Starting gateway, using Generic AT Handler.
> > BW 2011-10-05 15:27:58,692 [Thread-4] INFO  smslib:68 - GTW:
> > modem.com6: Opening: COM6 @115200
> > BW 2011-10-05 15:27:58,783 [Thread-4] DEBUG smslib:39 - Initialized.
> > BW 2011-10-05 15:27:58,784 [KeepAlive [modem.com6]] DEBUG smslib:104 -
> > Running...
> > BW 2011-10-05 15:27:58,786 [Thread-4] DEBUG smslib:39 - Initialized.
> > BW 2011-10-05 15:27:58,787 [CNMIEmulatorProcessor [modem.com6]] DEBUG
> > smslib:104 - ** disabled **
> > BW 2011-10-05 15:27:58,789 [Thread-4] DEBUG smslib:613 - GTW:
> > modem.com6: ModemReader thread started.
> > BW 2011-10-05 15:27:58,793 [Thread-4] DEBUG smslib:732 - GTW:
> > modem.com6: AsyncNotifier thread started.
> > BW 2011-10-05 15:27:58,795 [Thread-4] DEBUG smslib:849 - GTW:
> > modem.com6: AsyncMessageProcessor thread started.
> > BW 2011-10-05 15:27:58,795 [Thread-4] DEBUG smslib:409 - GTW:
> > modem.com6: clearBuffer() called.
> > BW 2011-10-05 15:27:59,796 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :(27)
> > BW 2011-10-05 15:27:59,997 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :+++
> > BW 2011-10-05 15:28:00,197 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :ATZ(cr)
> > BW 2011-10-05 15:28:00,398 [Thread-4] DEBUG smslib:409 - GTW:
> > modem.com6: clearBuffer() called.
> > BW 2011-10-05 15:28:01,398 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :ATZ(cr)
> > BW 2011-10-05 15:28:01,599 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :ATE0(cr)
> > BW 2011-10-05 15:28:01,800 [Thread-4] DEBUG smslib:409 - GTW:
> > modem.com6: clearBuffer() called.
> > BW 2011-10-05 15:28:02,800 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CPIN?(cr)
> > BW 2011-10-05 15:28:02,813 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: +CPIN: READY
>
> > BW 2011-10-05 15:28:02,815 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :+CPIN: READY(cr)
> > BW 2011-10-05 15:28:02,815 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :ATE0(cr)
> > BW 2011-10-05 15:28:03,015 [Thread-4] DEBUG smslib:409 - GTW:
> > modem.com6: clearBuffer() called.
> > BW 2011-10-05 15:28:04,015 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CLIP=1(cr)
> > BW 2011-10-05 15:28:04,018 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: OK
>
> > BW 2011-10-05 15:28:04,018 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :OK(cr)
> > BW 2011-10-05 15:28:04,019 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+COPS=0(cr)
> > BW 2011-10-05 15:28:04,038 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: OK
>
> > BW 2011-10-05 15:28:04,039 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :OK(cr)
> > BW 2011-10-05 15:28:04,039 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :ATE0(cr)
> > BW 2011-10-05 15:28:04,240 [Thread-4] DEBUG smslib:409 - GTW:
> > modem.com6: clearBuffer() called.
> > BW 2011-10-05 15:28:05,240 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CREG=1(cr)
> > BW 2011-10-05 15:28:05,243 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: OK
>
> > BW 2011-10-05 15:28:05,243 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :OK(cr)
> > BW 2011-10-05 15:28:05,244 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CREG?(cr)
> > BW 2011-10-05 15:28:05,253 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: +CREG: 1,1
> > OK
>
> > BW 2011-10-05 15:28:05,255 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :+CREG: 1,1(cr)OK(cr)
> > BW 2011-10-05 15:28:05,255 [Thread-4] INFO  smslib:446 - GTW:
> > modem.com6: GSM: Registered to home network.
> > BW 2011-10-05 15:28:05,256 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CMEE=1(cr)
> > BW 2011-10-05 15:28:05,259 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: OK
>
> > BW 2011-10-05 15:28:05,260 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :OK(cr)
> > BW 2011-10-05 15:28:05,260 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CNMI=?(cr)
> > BW 2011-10-05 15:28:05,273 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: +CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1)
> > OK
>
> > BW 2011-10-05 15:28:05,275 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :+CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1)
> > (cr)OK(cr)
> > BW 2011-10-05 15:28:05,276 [Thread-4] DEBUG smslib:136 - CNMI: Found
> > best match: 3
> > BW 2011-10-05 15:28:05,277 [Thread-4] DEBUG smslib:136 - CNMI: Found
> > best match: 1
> > BW 2011-10-05 15:28:05,278 [Thread-4] DEBUG smslib:136 - CNMI: Found
> > best match: 0
> > BW 2011-10-05 15:28:05,279 [Thread-4] DEBUG smslib:136 - CNMI: Found
> > best match: 2
> > BW 2011-10-05 15:28:05,279 [Thread-4] DEBUG smslib:136 - CNMI: Found
> > best match: 0
> > BW 2011-10-05 15:28:05,279 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CNMI=3,1,0,2,0(cr)
> > BW 2011-10-05 15:28:05,289 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: OK
>
> > BW 2011-10-05 15:28:05,289 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :OK(cr)
> > BW 2011-10-05 15:28:05,290 [Thread-4] DEBUG smslib:301 - GTW:
> > modem.com6: SEND :AT+CMGF=0(cr)
> > BW 2011-10-05 15:28:05,292 [Thread-4] DEBUG smslib:350 - GTW:
> > modem.com6: BUFFER: OK
>
> > BW 2011-10-05 15:28:05,293 [Thread-4] DEBUG smslib:390 - GTW:
> > modem.com6: RECV :OK(cr)>>> Gateway Status change for modem.com6, OLD: 
> > STOPPED -> NEW: STARTING
>
> > BW 2011-10-05 15:28:05,297 [NotifyQueueManager] DEBUG smslib:130 -
> > NotifyQueueManager end...
> > BW 2011-10-05 15:28:05,299 [Thread-4] DEBUG smslib:39 - Initialized.
> > BW 2011-10-05 15:28:05,299 [Thread-4] INFO  smslib:191 - GTW:
> > modem.com6: Gateway started.
> > BW 2011-10-05 15:28:05,299 [QueueManager [modem.com6]] DEBUG smslib:
> > 104 - Running...
> > BW 2011-10-05 15:28:05,398 [NotifyQueueManager] DEBUG smslib:104 -
> > Running...
> > BW 2011-10-05 15:28:05,398 [NotifyQueueManager] DEBUG smslib:96 -
> > NotifyQueueManager running...>>> Gateway Status change for modem.com6, OLD: 
> > STARTING -> NEW: STARTED
>
> > BW 2011-10-05 15:28:05,399 [NotifyQueueManager] DEBUG smslib:130 -
> > NotifyQueueManager end...
> > BW 2011-10-05 15:28:05,500 [NotifyQueueManager] DEBUG smslib:104 -
> > Running...
> > BW 2011-10-05 15:28:05,500 [NotifyQueueManager] DEBUG smslib:96 -
> > NotifyQueueManager running...
>
> > Modem Information:
> > BW 2011-10-05 15:28:05,691 [main] DEBUG smslib:301 - GTW: modem.com6:
> > SEND :AT+CGMI(cr)
> > BW 2011-10-05 15:28:05,703 [main] DEBUG smslib:350 - GTW: modem.com6:
> > BUFFER: ZTE CORPORATION
> > OK
>
> > BW 2011-10-05 15:28:05,703 [main] DEBUG smslib:390 - GTW: modem.com6:
> > RECV :ZTE CORPORATION(cr)OK(cr)
> >   Manufacturer: ZTE CORPORATION
> > BW 2011-10-05 15:28:05,704 [main] DEBUG smslib:301 - GTW: modem.com6:
> > SEND :AT+CGMM(cr)
> > BW 2011-10-05 15:28:05,710 [main] DEBUG smslib:350 - GTW: modem.com6:
> > BUFFER: MF100
> > OK
>
> > BW 2011-10-05 15:28:05,712 [main] DEBUG smslib:390 - GTW: modem.com6:
> > RECV :MF100(cr)OK(cr)
> >   Model: MF100
> > BW 2011-10-05 15:28:05,713 [main] DEBUG smslib:301 - GTW: modem.com6:
> > SEND :AT+CGSN(cr)
> > BW 2011-10-05 15:28:05,720 [main] DEBUG smslib:350 - GTW: modem.com6:
> > BUFFER: 358517037770808
> > OK
>
> > BW 2011-10-05 15:28:05,721 [main] DEBUG smslib:390 - GTW: modem.com6:
> > RECV :358517037770808(cr)OK(cr)
> >   Serial No: 358517037770808
> >   SIM IMSI: ** MASKED **
> > BW 2011-10-05 15:28:05,722 [main] DEBUG smslib:301 - GTW: modem.com6:
> > SEND :AT+CSQ(cr)
> > BW 2011-10-05 15:28:05,727 [main] DEBUG
>
> ...
>
> leer más »

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion 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