a problem about A2DP of bluetooth

qin zhifeng qinzhifeng1 at hotmail.com
Thu Sep 20 09:49:42 CEST 2007


I want to use bluetooth headset in FIC, so I follow A2DP steps in wiki
http://wiki.openmoko.org/wiki/Manually_using_Bluetooth.
but when i run the Python script:
#!/usr/bin/python
import dbus
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 
'org.bluez.Manager')
conn = manager.ActivateService('audio')
audio = dbus.Interface(bus.get_object(conn, '/org/bluez/audio'), 
'org.bluez.audio.Manager')
path = audio.CreateDevice('00:0D:3C:44:33:22')
audio.ChangeDefaultDevice(path)
sink = dbus.Interface(bus.get_object(conn, path), 'org.bluez.audio.Sink')
sink.Connect()

there comes some errors:
root at fic-gta01:/media/card$ ./play.py
Traceback (most recent call last):
File "./play.py", line 11, in <module>
sink.Connect()
File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 63, in
__call__ return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 135, in 
__call__
**keywords)
File "/usr/lib/python2.5/site-packages/dbus/connection.py",
line 598, in call_blocking message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: 
Method
"Connect" with signature "" on interface "org.bluez.audio.Sink" doesn't 
exist.

Any suggestion?

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn  




More information about the openmoko-devel mailing list