GNOME Bugzilla – Bug 330773
Incoming text messages not notified on screen
Last modified: 2007-07-10 15:34:39 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:
I would need to get a hold of such a phone to find out what the problem is...
*** Bug 371682 has been marked as a duplicate of this bug. ***
*** Bug 387009 has been marked as a duplicate of this bug. ***
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.
*** Bug 316988 has been marked as a duplicate of this bug. ***
+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.
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.
+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