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
Normal Sort Sort + uniq Sort + uniq + countYou are not allowed to attach a file to this page.