gnokii-users
[Top][All Lists]
Advanced

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

Re: Add "SMS status" reporting for SMS reading (AT driver)


From: Bastien Nocera
Subject: Re: Add "SMS status" reporting for SMS reading (AT driver)
Date: Tue, 03 Jul 2007 14:37:11 +0100

On Tue, 2007-07-03 at 14:05 +0200, Pawel Kot wrote:
> Hi,
<snip>
> > > > I didn't manage to test it properly on my Nokia in AT mode, as it lies
> > > > about the number of SMSes in its different folders.
> > >
> > > Well, Nokia AT mode doesn't support folders. :)
> >
> > Arf. Well, it first reports 20 messages available. Then switching folders
> > reports 130 ones available.
> 
> Hm. Need to recheck.

I'm only checking in GN_MT_ME (with the AT driver). But what we do is:
- launch GN_OP_GetSMSStatus with a clean gn_data
- check for messages in GN_MT_ME
- launch GN_OP_GetSMSStatus again (this time, GN_MT_ME is set in
gn_data).

I'm not sure which "default" folder it's reading from the first time.

> > > > I'm trying to fix:
> > > > http://bugzilla.gnome.org/show_bug.cgi?id=330773
> > >
> > > But the patch is for the quite different thing...
> >
> > It's part of it. The bug is that phones using the AT driver can't find new
> > messages. One reason is that they don't see new messages reported in
> > GN_OP_GetSMSStatus. The other problem is that they don't report unread 
> > messages
> > as being unread. The provided patch fixes the second, while I worked around 
> > the
> > first one by checking for a different number of messages in the folder.
> 
> OK.

If you have a better idea...

> > > > and I noticed that only some Nokia drivers implemented GN_OP_OnSMS or
> > > > GN_OP_PollSMS. Would it be interesting to have CNMI support in the
> > > > generic AT driver?
> > >
> > > Sure!
> >
> > I have no idea how it's supposed to work though. Do you have some definite
> > documentation available on that? The only thing I have is the Mototola g20 
> > docs.
> 
> You mean gnokii internals or CNMI command?

The CNMI command, mainly. For the gnokii internals, I'm not sure what to
do for out-of-bounds answers in the AT driver though.

> > > > PS: current gnokii CVS HEAD crashes for me when using the AT driver,
> > > > straight after an ATZ. Anyone seeing that?
> > >
> > > Nope. Just tested over rfcomm. Any details?
> >
> > $ ./gnokii --identify
> 
> Is it static build or shared library? If the latter, make sure you
> have removed all older versions.

I double-checked that :)

> > Same thing happens with the AT driver. BT of the above crash:
> > (gdb) bt
> 
> That looks like total corruption. The other thing that may help is
> make clean; make

Works alright after a make clean all. Not sure what was left-over. Sorry
about the noise.

-- 
Bastien Nocera <address@hidden> 





reply via email to

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