gnokii-users
[Top][All Lists]
Advanced

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

Re: N3330 - Unhandled frame received


From: Pawel Kot
Subject: Re: N3330 - Unhandled frame received
Date: Mon, 13 Jan 2003 01:58:30 +0100 (CET)

On Sun, 12 Jan 2003, Ender wrote:

> If I run gnokii --sendsms twice (consecutively), it'll write "SMS send
> succeeded", but nothing actually happens (except for that logo and
> information about signal strength vanishes from phone's display) I've
> tried it on win32 (cygwin) and on linux (but only using VMware
> emulation) - the same result.
>
> --getsms and --getlogo works fine.
>
> I've tried connecting friends N3310 on the same computer using the
> same cable. --sendsms worked, but --sendlogo didn't, nevertheless it
> might've been caused by the phone (it's in very bad condition -
> sometimes sms/phonebook entry vanishes, or it beeps like sms have been
> received when it actually haven't or so...)
>
> I tried to compile version from 0.4.0 up, but none of them worked,
> only the old 0.3.3 did.

Please try the following patch. It solved --getsmsc problem for me and it
should fix also the other problem. Apply with patch -l.
Index: common/phones/nk6100.c
===================================================================
RCS file: /cvsroot/gnokii/gnokii/common/phones/nk6100.c,v
retrieving revision 1.128
diff -u -r1.128 nk6100.c
--- common/phones/nk6100.c      6 Jan 2003 08:18:36 -0000       1.128
+++ common/phones/nk6100.c      13 Jan 2003 00:55:27 -0000
@@ -1103,12 +1103,16 @@

 static gn_error GetSMSCenter(gn_data *data, struct gn_statemachine *state)
 {
+       gn_error error;
        unsigned char req[] = {FBUS_FRAME_HEADER, 0x33, 0x64, 0x00};

        req[5] = data->message_center->id;

        if (sm_message_send(6, 0x02, req, state)) return GN_ERR_NOTREADY;
-       return sm_block(0x02, data, state);
+       do {
+               error = sm_block(0x02, data, state);
+       } while (error == GN_ERR_BUSY);
+       return error;
 }

 static gn_error SetSMSCenter(gn_data *data, struct gn_statemachine *state)
@@ -1446,6 +1450,10 @@
                        return GN_ERR_UNHANDLEDFRAME;
                }
                break;
+
+       case 0xc9:
+               dprintf("Still waiting....\n");
+               return GN_ERR_BUSY;

        default:
                return GN_ERR_UNHANDLEDFRAME;


pkot
-- 
mailto:address@hidden :: mailto:address@hidden
http://kt.linuxnews.pl/ :: Kernel Traffic po polsku






reply via email to

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