On Mon, Jan 25, 2010 at 14:25, satish nagineni <[email protected]> wrote: > 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 >
Maybe would you also add what's the problem with that python app to your mail? Some error message? Or maybe it's saying that your script has incorrect syntax? (check if you pasted it correctly, "> 'org.freesmartphone.Device.RealtimeClock" line looks like unfinished) -- Sebastian Krzyszkowiak dos _______________________________________________ Shr-devel mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-devel
