gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gn_sms_get returned error 18: The given location is empty


From: Rafael Visser
Subject: gn_sms_get returned error 18: The given location is empty
Date: Mon, 30 Jul 2012 09:40:36 -0400

Hi Gurus!!..
I am very new in gnokii and its my fisrt installation..

I am running smsd with mysql and i found something strange about reading sms.

"smsd -u root -d bdsms  -m mysql  -f /var/log/smsdaemon.log"


read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",1,30,"SM",1,30,"SM",1,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0037
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d |  AT+CPMS?   +CPM
53 3a 20 22 53 4d 22 2c 31 2c 33 30 2c 22 53 4d | S: "SM",1,30,"SM
22 2c 31 2c 33 30 2c 22 53 4d 22 2c 31 2c 33 30 | ",1,30,"SM",1,30
0d 0a 0d 0a 4f 4b 0d                            |     OK         
Received message type 12
GN_OP_GetSMSStatus returned (number, unread) 1, 0
phoneMonitor.sms.number 0
RefreshSMS is running...
Number of messages: 1
Reading SMS 1 of 1
PDU mode set
Message sent: 0x18 / 0x000a
41 54 2b 43 4d 47 52 3d 31 0d                   | AT+CMGR=1      
write: [AT+CMGR=1<cr>]
read : [AT+CMGR=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x18 / 0x0010
02 41 54 2b 43 4d 47 52 3d 31 0d 0d 0a 4f 4b 0d |  AT+CMGR=1   OK
Received message type 18
gn_sms_get returned error 18: The given location is empty.

Reading SMS 2 of 1
PDU mode set
Message sent: 0x18 / 0x000a
41 54 2b 43 4d 47 52 3d 32 0d                   | AT+CMGR=2      
write: [AT+CMGR=2<cr>]
read : [AT+CMGR=2<cr><cr><lf>OK<cr><lf>]
Message received: 0x18 / 0x0010
02 41 54 2b 43 4d 47 52 3d 32 0d 0d 0a 4f 4b 0d |  AT+CMGR=2   OK
Received message type 18
gn_sms_get returned error 18: The given location is empty.
Reading SMS 3 of 1



The thing is that smsd it's trying to read messages that not exists "gn_sms_get returned error 18: The given location is empty"
AT+CMGR=2
Reading SMS 2 of 1
AT+CMGR=3
Reading SMS 3 of 1
.
.
AT+CMGR=30
Reading SMS 30 of 1



The problem is that smsd spends to much reading these "not existing messages", so it could spend like 50 seconds to find a real new messages.

Questions:
Is there any thing to void reading empty storages?.
what am i doing wrong?

Thanks in advance..
rv

reply via email to

[Prev in Thread] Current Thread [Next in Thread]