|
2010-05-18
, 14:12
|
Posts: 53 |
Thanked: 20 times |
Joined on Jan 2010
|
#92
|
|
2010-05-18
, 14:17
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#93
|
I can't get the SMS script (http://www.paraiso.dk/pymaemosms.txt) working. I'm in the UK in case that matters and am feeding a number like
07123456789
and a message like
testing testing
It says "Message sent" but the phone I sent it to gets nothing. Any ideas what could be wrong?
There's also nothing new in the el.db file but perhaps I shouldn't be expecting anything there anyway when sending an SMS like this? (That's actually a major problem for me -- I will want my sent messages to appear in history.)
Thanks
|
2010-05-18
, 14:22
|
Posts: 53 |
Thanked: 20 times |
Joined on Jan 2010
|
#94
|
|
2010-05-18
, 14:41
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#95
|
Any idea how I can fix it?
And just so we're clear, the code you're pointing to is to add the SMS to the database, right?
Would the conversations app then have to be prodded to reload the database before the sent messages appear?
Thanks.
|
2010-05-18
, 14:54
|
Posts: 53 |
Thanked: 20 times |
Joined on Jan 2010
|
#96
|
The Following User Says Thank You to tremby For This Useful Post: | ||
|
2010-05-19
, 06:02
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#97
|
|
2010-06-26
, 17:27
|
Posts: 267 |
Thanked: 183 times |
Joined on Jan 2010
@ Campinas, SP, Brazil
|
#98
|
Hi there,
I added some code and now you are able to send sms and receive a reply. Code is available for download here http://ztbsauer.com/sender.py
For now it replies only for one command but feel free to expand it for own needs.
|
2010-06-26
, 21:31
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#99
|
pende,
thanks for your script. It works wonderfully... For non-accented messages. It seems your deoctify() function fails for accented messages, any plans to fix this?
|
2010-11-30
, 16:41
|
Posts: 4 |
Thanked: 0 times |
Joined on Nov 2010
|
#100
|
I used dbus_glib to do the job. To send your SMS, I can do something like this.
Code:#include <dbus/dbus.h> #include <dbus/dbus-glib.h> #define MYTYPE (dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_UCHAR_ARRAY)) DBusGConnection* dbus_conn; DBusGProxy* dbus_proxy; dbus_conn = dbus_g_bus_get(DBUS_BUS_SYSTEM, NULL); dbus_proxy = dbus_g_proxy_new_for_name(dbus_conn, "com.nokia.phone.SMS", "/com/nokia/phone/SMS/ba212ae1","com.nokia.csd.SMS.Outgoing"); GPtrArray* ptrarray; GArray* array; guchar values[] = {33,5,11,145,33,67,101,135,9,241,0,0,10,225,112,56,28,14,135,195,225,48}; ptrarray = g_ptr_array_new(); array = g_array_new(FALSE, FALSE, sizeof(guchar)); g_array_append_vals(array, values, sizeof(values)/sizeof(guchar)); g_ptr_array_add(ptrarray, (gpointer)array); dbus_g_proxy_call_no_reply(dbus_proxy, "Send", MY_TYPE, ptrarray, G_TYPE_STRING,"",G_TYPE_INVALID); g_ptr_array_free(ptrarray,TRUE); g_object_unref(dbus_proxy); dbus_g_connection_unref(dbus_conn);
http://tpsession.garage.maemo.org/
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )
“I hear and I forget. I see and I remember. I do and I understand.”