[Top][All Lists]

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

Re: --getsms unhandled frames issue

From: Pawel Kot
Subject: Re: --getsms unhandled frames issue
Date: Sun, 26 Aug 2007 21:23:22 +0200


On 8/23/07, Pawel Kot <address@hidden> wrote:
> I'm trying to fix Unhandled frames issue for reading SMS for certain
> Series40 phones (like 6233, 6300, 6131). Could anyone with such phone,
> please contact me? I would need some kind of access to that phone to
> provide a fix.

For those who would like to play on their own and prepare a patch
there are few hints.

All hacking is within common/phones/nk6510.c file (be sure to get CVS
version). The real problem is that phone doesn't respond to the frames
that retrieve folder names and id from the phone. This is done inside
ValidateSMS() function (call to NK6510_GetSMSFolders()). So for start
there are two options:
 - modify NK6510_GetSMSFolders() somehow and see when the phone
reponds to the frame (I'm not sure it it could work)
 - comment out the call and do some hardcoding Inbox/Outbox folders.
The latter could look like:
  data->sms_folder_list->folder_id[0] = GN_MT_IN;
  data->sms_folder_list->folder[0].folder_id = GN_MT_IN;
  strcpy(data->sms_folder_list->folder[0].name, "Inbox");
  data->sms_folder_list->folder_id[1] = GN_MT_OU;
  data->sms_folder_list->folder[1].folder_id = GN_MT_OU;
  strcpy(data->sms_folder_list->folder[1].name, "Outbox");

The best method to test it to compile gnokii in a static way, ie. using:
./configure --disable-shared
and run as:
./gnokii/gnokii [options]
This way you make sure you use correct code.

In case of any success please send a patch done using:
cvs diff -u common/phone/nk6510.c

The other way is to sniff communication of the Windows software. if
you are able to, please send the logs (be sure to grab as small frames
as possible).

If you have any questions regarding gnokii source or the hints above
don't hesitate to ask.

good luck,
Pawel Kot

reply via email to

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