import dbus

def main():
    bus = dbus.bus.BusConnection("tcp:host=192.168.2.4,port=6667")
    #p = bus.get_object("com.aicas.xlet.manager.AMS", "/com/aicas/xlet/manager/AMS")
    #p = bus.get_object("com.harman.service.ToyotaMGR", "/com/harman/service/ToyotaMGR")
    p = bus.get_object("org.freedesktop.DBus", "/org/freedekstop/DBus")
    #p = bus.get_object("com.harman.service.ToyotaMGR", "/com/harman/service/ToyotaMGR")
    #i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus.Introspectable")
    ##i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus.Peer")
    i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus")
    #i = dbus.Interface(p, dbus_interface="org.freedesktop.DBus.Introspectable")
    #i = dbus.Interface(p, dbus_interface="com.harman.ServiceIpc")
    #i = dbus.Interface(p, dbus_interface="com.harman.service.ToyotaMGR")
    #i = dbus.Interface(p, dbus_interface="com.aicas.xlet.manager.AMS")
    #print i.Introspect()
    #print i.Invoke("getVersion", "")
    #print i.getVersion()
    #print i.GetMachineId()
    #print p.Introspect()
    #for s in i.ListNames():
    #    print s
    print i.GetId()

if __name__ == "__main__":
    main()
