gnokii-users
[Top][All Lists]
Advanced

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

Problems with gnokii and 8310e


From: The Ribena Kid
Subject: Problems with gnokii and 8310e
Date: Fri, 20 Feb 2004 23:11:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040126

I have an 8310e which I'm using with gnokii, I've found (and fixed) a few problems. However I still can't do anything with messages (ie view inbox, outbox, templates, etc).

The problems I've fixed are:
operator logo size is wrong in nk6510.c (should be 72x14)
start up logo size is wrong in nk6510.c (should be 84x48)
Battery level indicator is about half way when battery is full (max should be 4?)

Attached is a patch to 0.5.8 to fix these for nokia 8310e.

I haven't had chance to look into why the SMS messages stuff isn't working.

diff -ur gnokii-0.5.8-old/common/phones/nk6510.c 
gnokii-0.5.8/common/phones/nk6510.c
--- gnokii-0.5.8-old/common/phones/nk6510.c     2004-01-02 15:49:54.000000000 
+0000
+++ gnokii-0.5.8/common/phones/nk6510.c 2004-02-11 20:51:24.000000000 +0000
@@ -500,6 +500,19 @@
 
                        snprintf(data->model, GNOKII_MIN(string_length + 1, 
GN_MODEL_MAX_LENGTH), "%s", message + pos);
                        dprintf("Received model %s\n", data->model);
+                       if (strstr(data->model,"NHM-7")) { /* 8310 */
+                               state->driver.phone.operator_logo_width=72;
+                               state->driver.phone.operator_logo_height=14;
+                               state->driver.phone.startup_logo_width=84;
+                               state->driver.phone.startup_logo_height=48;
+                               state->driver.phone.max_battery_level=4;
+                       } else {
+                               state->driver.phone.operator_logo_width=78;
+                               state->driver.phone.operator_logo_height=21;
+                               state->driver.phone.startup_logo_width=96;
+                               state->driver.phone.startup_logo_height=65;
+                               state->driver.phone.max_battery_level=7;
+                       }
                }
                break;
        default:

reply via email to

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