布吕兹5.28
目标-控制iOS跟踪跳过,并启动连接从蓝光编程。不想要a2dp。
如果我启动从iPhone/iPad连接(转到BT设置,点击Pi设备),一切都很好,这是我想要避免的,而不必摆弄手机。(汽车安装与Pi)。我有控制,跟踪元数据,等等。
在蓝宝石中做一个connect xx:xx:xx:xx:xx:xx会产生:
a2dp-source profile connect failed for 6C:70:9F:7E:EF:A8: Protocol not available好的。它需要脉冲音频+模块。我安装了它,现在我可以从Bluez连接了。不过,它现在添加并自动选择Bluez作为音频输出设备。不想那样,不得不再摆弄手机。只想要控制。虽然我更喜欢这一点,如果没有,因为我可以改变输出设备从任何地方的操作系统&不需要去设置。
好吧,让我一起禁用a2dp看看。
/usr/libexec/bluetooth/bluetoothd -d -C -n --noplugin=a2dp
或
/usr/libexec/bluetooth/bluetoothd -d -C -n --plugin=avrcp
对上述两个的相同结果
bluetoothd[14176]: src/device.c:connect_profiles() /org/bluez/hci0/dev_6C_70_9F_7E_EF_A8 (all), client :1.57
bluetoothd[14176]: src/device.c:connect_profiles() Resolving services for /org/bluez/hci0/dev_6C_70_9F_7E_EF_A8
bluetoothd[14176]: src/adapter.c:connected_callback() hci0 device 6C:70:9F:7E:EF:A8 connected eir_len 19
bluetoothd[14176]: src/device.c:search_cb() 6C:70:9F:7E:EF:A8: No service update
bluetoothd[14176]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_6C_70_9F_7E_EF_A8 err 0
bluetoothd[14176]: src/device.c:connect_profiles() /org/bluez/hci0/dev_6C_70_9F_7E_EF_A8 (all), client :1.57
bluetoothd[14176]: src/adapter.c:dev_disconnected() Device 6C:70:9F:7E:EF:A8 disconnected, reason 3
bluetoothd[14176]: src/adapter.c:adapter_remove_connection()
bluetoothd[14176]: plugins/policy.c:disconnect_cb() reason 3
bluetoothd[14176]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 6C:70:9F:7E:EF:A8 type 0 status 0xe
bluetoothd[14176]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
bluetoothd[14176]: src/device.c:device_bonding_failed() status 14
bluetoothd[14176]: src/adapter.c:resume_discovery() 同样,如果我进入蓝牙设置,点击iPhone上的设备,一切都会按我想要的方式工作。问题是要从布卢兹那里得到连接。
在我看来,iOS是在请求a2dp,我不知道如何让布卢兹超越这一要求,或者停止广告宣传。我知道有一些断电选项可以禁用配置文件,但是要尽量保持它的干净。
我还试验了HID设置,它可以发送击键,但随后它隐藏了屏幕上的键盘。
谢谢!
发布于 2015-03-07 11:53:27
让它做我想做的5.28从来源,但必须编辑它轻轻。
不确定有什么副作用,但我的目标很窄,所以我不在乎。
编辑profiles/audio/avrcp.c
添加
.auto_connect = true, to
static struct btd_profile avrcp_target_profile = { @热线3863
和
static struct btd_profile avrcp_controller_profile = { @第3946行
make && make install
完整块
static struct btd_profile avrcp_target_profile = {
.name = "audio-avrcp-target",
.remote_uuid = AVRCP_TARGET_UUID,
.device_probe = avrcp_target_probe,
.device_remove = avrcp_target_remove,
.auto_connect = true,
.connect = avrcp_connect,
.disconnect = avrcp_disconnect,
.adapter_probe = avrcp_target_server_probe,
.adapter_remove = avrcp_target_server_remove,
};…
static struct btd_profile avrcp_controller_profile = {
.name = "avrcp-controller",
.remote_uuid = AVRCP_REMOTE_UUID,
.device_probe = avrcp_controller_probe,
.device_remove = avrcp_controller_remove,
.auto_connect = true,
.connect = avrcp_connect,
.disconnect = avrcp_disconnect,
.adapter_probe = avrcp_controller_server_probe,
.adapter_remove = avrcp_controller_server_remove,
};https://stackoverflow.com/questions/28913396
复制相似问题