After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 330773 - Incoming text messages not notified on screen
Incoming text messages not notified on screen
Status: RESOLVED FIXED
Product: gnome-phone-manager
Classification: Other
Component: general
0.6
Other All
: Normal major
: ---
Assigned To: Edd Dumbill
Edd Dumbill
: 316988 371682 387009 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-11 10:41 UTC by Steven
Modified: 2007-07-10 15:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steven 2006-02-11 10:41:28 UTC
Please describe the problem:
Sending a SMS is no problem, but incoming messages on my phone are not notified
by gnome-phone-manager.

I connect to a Siemens S55 mobile phone via bluetooth.  The contents of the
~/.gnokiirc file are:
[global]
port = 00:01:E3:32:4D:D6
model = AT
connection = bluetooth

I tried "gnokii --getsms IN 1 end", this didn't work.  with 'ME and SM' it works.

I patched the file libgsm/phonemgr-listener.c ('message->memory_type =
GN_MT_SM;' in stead of 'message->memory_type = GN_MT_IN;') as suggested in the
mailing list, but this didn't do the trick.

Steps to reproduce:
Send SMS to yourself, wait, keep waiting, wait longer, give up and conclude
nothing will happen

Actual results:
The SMS is sent, after a short while the phone beeps and a new message arrives,
no interaction from gnome-phone-manager

Expected results:
gnome-phone-manager should popup a window and/or play a sound that a new message
has arrived

Does this happen every time?
yes

Other information:
Comment 1 Bastien Nocera 2006-03-27 22:35:41 UTC
I would need to get a hold of such a phone to find out what the problem is...
Comment 2 Bastien Nocera 2007-07-02 15:21:06 UTC
*** Bug 371682 has been marked as a duplicate of this bug. ***
Comment 3 Bastien Nocera 2007-07-02 15:21:20 UTC
*** Bug 387009 has been marked as a duplicate of this bug. ***
Comment 4 Bastien Nocera 2007-07-02 23:35:19 UTC
The generic AT driver is a bitch:

static gn_error ReplyGetSMSStatus(int messagetype, unsigned char *buffer, int length, gn_data *data, struct gn_statemachine *state)
{
<snip>
        data->sms_status->unread = 0;
<snip>
        return GN_ERR_NONE;
}

We can work around that by looking for changes in the number of messages in the folder (which works, more or less).

Reading some messages will make gnokii crash or loop, so our current approach is sub-par. We should be using the AT+CNMI command instead, to wait for new messages.
Comment 5 Bastien Nocera 2007-07-03 14:51:57 UTC
*** Bug 316988 has been marked as a duplicate of this bug. ***
Comment 6 Bastien Nocera 2007-07-08 11:59:57 UTC
+CNMI notifications work is ongoing in:
http://thread.gmane.org/gmane.linux.drivers.gnokii/8991

If you want to test this, download the latest gnokii CVS, apply the latest patch in the thread, and use "gnokii --smsreader".

Your ~/.gnokiirc would look like:
[global]
port = <bluetooth address>
model = AT
connection = bluetooth

[logging]
debug = on

It would be especially interesting if you could give output with non-Nokia phones.
Comment 7 Bastien Nocera 2007-07-09 14:38:41 UTC
I've tested this patch, with the current CVS version of gnokii, and trunk gnome-phone-manager, and it seems to work fine.
http://thread.gmane.org/gmane.linux.drivers.gnokii/8991/focus=9005

I believe that this should fix it, although the work-around for Nokia's crummy folder handling might have side-effects on other phones.

Testing appreciated, please use "gnokii --smsreader" if you don't want to have to install gnokii, or don't have a trunk install of gnome-phone-manager.
Comment 8 Bastien Nocera 2007-07-10 15:34:39 UTC
+CNMI support is now in gnokii CVS.

2007-07-10  Bastien Nocera  <hadess@hadess.net>

        * configure.in: Require the latest gnokii CVS (newer than
        0.6.17)

        * libgsm/phonemgr-listener.c: (phonemgr_listener_init),
        (phonemgr_listener_connect), (phonemgr_listener_new_call_cb),
        (phonemgr_listener_call_notification_poll),
        (phonemgr_listener_set_sms_notification),
        (phonemgr_listener_thread), (phonemgr_listener_disconnect),
        (phonemgr_listener_cancel_call), (phonemgr_listener_answer_call):
        * libgsm/phonemgr-listener.h:
        Remove actual polling for new SMSes, and rely on the driver
        notifications, it removes gross hacks, and notifications is
        supported by our biggest user, the AT driver (Closes: #330773)

        Add stubs for answer/cancel call

        * libgsm/phonemgr-utils.c: (phonemgr_utils_connect),
        (phonemgr_utils_disconnect), (phonemgr_utils_free):
        * libgsm/phonemgr-utils.h: some prototypes cleanups