本帖最后由 天草 于 2016-5-15 16:52 编辑
敢问这位高手自己执行配对成功过吗,你发的这个和我找的那个链接http://legendmohe.net/2014/06/20 ... %E9%9F%B3%E7%AE%B1/
很相像,但是我执行到 bluez-simple-agent hci0 <hadware_id> 这项就有错误了,我自己已经记下蓝牙音箱的id,但是执行这块时会显示失败,,显示为
"Creating device failed: org.bluez.Error.AlreadyExists: Already Exists"
然后我忽略 这个 ,直接执行下面的bluez-test-audio connect ,可以听到蓝牙音箱已经链接上的提示音,但到下一步- bluez-test-device trusted <hardware_id> yes
貌似也会有错误提示,提示如下
“Traceback (most recent call last): File "/usr/bin/bluez-test-audio", line 42, in <module>
audio.Connect()
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.AlreadyConnected: Already Connected
”
然后后面都照着做了,最后用VLC放,还是没从蓝牙音箱里出声音啊.......
|