Well take the opinion of other as well.A new page might be good.. Sriranjan
On Wed, Oct 28, 2009 at 12:08 AM, Matthias Huber < matthias.hu...@wollishausen.de> wrote: > RANJAN schrieb: > > So you posted it in the wiki? > > Sriranjan > > On Tue, Oct 27, 2009 at 11:55 PM, Matthias Huber < > matthias.hu...@wollishausen.de> wrote: > >> RANJAN schrieb: >> >> >> >> On Tue, Oct 27, 2009 at 11:02 PM, Matthias Huber < >> matthias.hu...@wollishausen.de> wrote: >> >>> RANJAN schrieb: >>> >>> Hi, >>>> >>>> Any idea about a simple script to send and read the received SMS on the >>>> FR in python? >>>> >>> i tried it at the moment: for example: >>> >>> mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device >>> org.freesmartphone.GSM.SMS.SendMessage 0049987654321 "test message" [] >>> >>> is this ok, or do you want a python script ? >>> >> >> A script would help but I guess it is about creating an object and calling >> the function using it. >> >> Sriranjan >> >> of course, what else, but because i tried it already, you must not >> reinvent the wheel again: >> >> >> r...@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) >> >> >> >> r...@om-gta02 ~/contactx # cat sms_send.py >> #!/usr/bin/python >> >> import sys >> import dbus >> from dbus.mainloop.glib import DBusGMainLoop >> DBusGMainLoop(set_as_default=True) >> >> bus = dbus.SystemBus() >> gsm_device_obj = bus.get_object( 'org.freesmartphone.ogsmd', >> '/org/freesmartphone/GSM/Device' ) >> gsm_sms_iface = dbus.Interface(gsm_device_obj, >> 'org.freesmartphone.GSM.SMS') >> gsm_sms_iface.SendMessage( sys.argv[1], sys.argv[2], [] ) >> >> > aeeeh no, not yet. > > i was in the page mdbus, but while reading, i decided, it is not the right > place. > > what do you think, is the right place or shall i open a new page ? > >
_______________________________________________ devel mailing list devel@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/devel