Hi All,

I'm able to use the below command line method to get current RTC time.

r...@om-gta02 ~/Desktop/progs/test_dir $ dbus-send --system
--type=method_call --print-reply --reply-timeout=1000
--dest=org.freesmartphone.odeviced /org/freesmartphone/Device/RTC/0
org.freesmartphone.Device.RealtimeClock.GetCurrentTime
method return sender=:1.3 -> dest=:1.79 reply_serial=2
   int32 946689501

I would like write python script for the same, but failed to get it work.
Gone through the below documentation but failed to make it.

http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#proxy-object

below is my python script to get RTC current time.

import dbus
bus=dbus.SystemBus()
manager=dbus.Interface(bus.get_object('org.freesmartphone.Device.RealtimeClock',
'/org/freemartphone/Device/RTC/0'),
'org.freesmartphone.Device.RealtimeClock
result=manager.GetCurrentTime()
print result


Can some one help me in getting it work / correct it.

Thanks in advance.

Best regards,
Satish.
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to