gnokii-users
[Top][All Lists]
Advanced

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

Re: smsd monitoring for new incoming messages not working with latest CV


From: Hartmut Benz
Subject: Re: smsd monitoring for new incoming messages not working with latest CVS version/Nokia 6300
Date: Fri, 12 Jun 2009 09:41:00 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

Hallo,
I am having trouble with smsd as well, but with a Nokia 3109c.
With an old version (0.6.25 on ubuntu 8.10) it apparently was reading IN
0 (which is illegal and results in garbage), then fails to insert into
the db because of an illegal date (resulting from the garbage read
before), and then does not go on to read 1, 2,...
Then I upgraded to tarball 0.6.27/ubuntu 9.04, which apparently fixed
that behavior, but then ran into a segmentation fault when deleting an
sms (apparently a known bug).
Then I tried the cvs version, which fixed the seg fault, but after
reading the initial batch of available sms's, it seems to stop.

I battled my way through the code, yesterday, without too much success
(a tid bit of comments and documentation here and there would GREATLY
help newcomers to find there way around, by the way). Here is what I've
learned
In smsd/lowlevel.c: RealConnect
- (phoneMonitor.supported & PM_FOLDERS)
    is FALSE for reasons I could not determine.
    I would have expected this to be true (gnokii --showsmsfolderstatus
gives perfect results)
smsd starts up with xdebug like this:
-----------------
smsd - version 1.4.3 from gnokii 0.6.28cvs
LOG: xdebug mask is 0x1
fbusinit: error 0
Version: RM-274
Model: unknown
Revision: V 07.21
Phone connected. Starting monitoring...
GN_OP_GetSMSStatus returned (number, unread) 0, 0
phoneMonitor 0
GN_OP_GetSMSStatus returned (number, unread) 0, 0
...
--------while--gnokii --identify-----returns-----
GNOKII Version 0.6.28cvs
LOG: debug mask is 0x1
LOG: xdebug mask is 0x1
Config read from file /home/h2o/.gnokiirc.
phone instance config:
model = 3110
port = 1
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Can't set configuration: -16
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x003a
01 35 00 08 00 01 58 34 00 30 56 20 30 37 2e 32 |  5    X4 0V 07.2
31 0a 30 35 2d 31 31 2d 30 38 0a 52 4d 2d 32 37 | 1 05-11-08 RM-27
34 0a 28 63 29 20 4e 6f 6b 69 61 2e 20 20 20 20 | 4 (c) Nokia.
20 20 20 20 20 20 20 0a 43 00                   |         C
Received message type 1b
model length: 6
Received model RM-274
Identifying...
Message sent: 0x1b / 0x0005
00 01 00 00 41                                  |     A
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x001a
01 35 00 01 00 01 41 14 00 10 33 35 39 35 36 31 |  5    A   359561
30 31 39 32 33 30 30 30 30 00                   | 019230000
Received message type 1b
Received imei 359561019230000
Message received: 0x1b / 0x003a
01 35 00 08 00 01 58 34 00 30 56 20 30 37 2e 32 |  5    X4 0V 07.2
31 0a 30 35 2d 31 31 2d 30 38 0a 52 4d 2d 32 37 | 1 05-11-08 RM-27
34 0a 28 63 29 20 4e 6f 6b 69 61 2e 20 20 20 20 | 4 (c) Nokia.
20 20 20 20 20 20 20 0a 43 00                   |         C
Received message type 1b
Received revision V 07.21
model length: 6
Received model RM-274
IMEI         : 359561019230000
Manufacturer : Nokia
Model        : RM-274
Product name : RM-274
Revision     : V 07.21
-----------

**
- In GN_OP_GetSMSStatus, the 'number'-value continuously increases over
time, while unread==0 all the time.
  From what I understand reading the code I concluded that number should
be the number of mails in the folder.
  If that is so, the 3109c with 0.6.28cvs reports bad values (gnokii
--showsmsfolderstatus always shows good values)
- This 'number' value drops down to '0' after I restart the phone (off, on)
- After smsd has read/deleted sms from the phone, I can no longer open
the Inbox on the phone
  (reporting: Operation failed, try again :-). This error remains until
restarting the phone.
  Furthermore, the phone keeps claiming 'n unread mails'
  This happens as well when I delete with "gnokii --deletesms IN "

I have very limited time to debug much further on my own, but I will be
happy to do tests/report results under the guidance of someone that
isn't hampered by first having to understand all the code :-)

For the time being, I will try to convince 0.6.26 or earlier not to read
SMS location 0 and hope that this works...

Thanks in advance for any help

Regards
    Hartmut






reply via email to

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