Attachment 'toyota.py'

Download

   1 import dbus
   2 
   3 def main():
   4     bus = dbus.bus.BusConnection("tcp:host=192.168.2.4,port=6667")
   5     #p = bus.get_object("com.aicas.xlet.manager.AMS", "/com/aicas/xlet/manager/AMS")
   6     #p = bus.get_object("com.harman.service.ToyotaMGR", "/com/harman/service/ToyotaMGR")
   7     p = bus.get_object("org.freedesktop.DBus", "/org/freedekstop/DBus")
   8     #p = bus.get_object("com.harman.service.ToyotaMGR", "/com/harman/service/ToyotaMGR")
   9     #i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus.Introspectable")
  10     ##i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus.Peer")
  11     i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus")
  12     #i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus.Introspectable")
  13     #i = dbus.Interface(p, dbus_interface="com.harman.ServiceIpc")
  14     #i = dbus.Interface(p, dbus_interface="com.harman.service.ToyotaMGR")
  15     #i = dbus.Interface(p, dbus_interface="com.aicas.xlet.manager.AMS")
  16     #print i.Introspect()
  17     #print i.Invoke("getVersion", "")
  18     #print i.getVersion()
  19     #print i.GetMachineId()
  20     #print p.Introspect()
  21     #for s in i.ListNames():
  22     #    print s
  23     print i.GetId()
  24 
  25 if __name__ == "__main__":
  26     main()

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view | diff] (2012-11-06 16:54:29, 1.2 KB) [[attachment:scan.py]]
  • [get | view | diff] (2012-11-06 16:58:26, 0.4 KB) [[attachment:toyota-cmd.py]]
  • [get | view | diff] (2012-11-06 12:56:14, 26.7 KB) [[attachment:toyota-dbus.txt]]
  • [get | view | diff] (2012-11-06 17:08:29, 8.3 KB) [[attachment:toyota.log]]
  • [get | view | diff] (2012-11-06 12:55:59, 1.2 KB) [[attachment:toyota.py]]
 All files | Selected Files: delete move to page
Normal Sort Sort + uniq Sort + uniq + count

You are not allowed to attach a file to this page.