script to send and read incoming SMS

RANJAN infibit at gmail.com
Thu Jan 7 05:13:33 CET 2010


Hi,

of course, what else, but because i tried it already, you must not reinvent
> the wheel again:
>
>
> root at om-gta02 ~/contactx # cat sms_read.py
> #!/usr/bin/python
>
> import sys
> import dbus
> from dbus.mainloop.glib import DBusGMainLoop
> DBusGMainLoop(set_as_default=True)
>
> bus = dbus.SystemBus()
> device = bus.get_object( 'org.freesmartphone.ogsmd',
> '/org/freesmartphone/GSM/Device' )
> iface = dbus.Interface(device, 'org.freesmartphone.GSM.SIM')
> for i in iface.RetrieveMessagebook("all"):
>     print repr(i)
>
>
>
How does one read an SMS from the phone memory?

Also is there an option to send an acknowledgment SMS as a reply?

Could you please throw more light on the AckMessage given here:
http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.GSM.SMS.html;hb=HEAD#SendMessage

Ranjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/devel/attachments/20100107/4779eadf/attachment.htm 


More information about the devel mailing list