OpenHarmony-4.1.7.5版本。蓝牙可以正常打开,但是无法连接,错误码:290009-鸿蒙开发者社区-51CTO.COM

OpenHarmony-4.1.7.5版本。蓝牙可以正常打开,但是无法连接,错误码:290009

关键 打印:
08-05 17:13:21.151 336 336 E C00102/Bluetooth: [HFP AG]Connect():Not Support HFP!
[napi_bluetooth_hfp_ag.cpp(Connect:348)]errorCode:BT_ERR_INTERNAL_ERROR(2900099)

蓝牙连接时完整打印:
08-06 11:37:45.767 348 348 I C00101/Bluetooth: [bluetooth_host_server.cpp(DeregisterRemoteDeviceObserver:1676)]Enter!
08-06 11:37:45.767 348 377 I C00101/Bluetooth: [remote_observer_list.h(Deregister:129)]RemoteObserverList<T, Args...>::Deregister called
08-06 11:37:45.767 348 377 I C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:181)]RemoteObserverList<T, Args...>::UnregisterInternal called
08-06 11:37:45.767 348 377 E C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:185)]Failed to unlink death recipient from observer
08-06 11:37:45.767 348 377 W C00101/Bluetooth: [remote_observer_list.h(Deregister:137)]Given observer not registered with this list
08-06 11:37:45.767 348 1851 I C00101/Bluetooth: [bluetooth_host_server.cpp(DeregisterBlePeripheralCallback:1772)]start.
08-06 11:37:45.767 348 377 I C00101/Bluetooth: [remote_observer_list.h(OnRemoteDied:175)]Callback from dead process unregistered
08-06 11:37:45.767 348 1851 I C00101/Bluetooth: [remote_observer_list.h(Deregister:129)]RemoteObserverList<T, Args...>::Deregister called
08-06 11:37:45.767 348 1851 I C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:181)]RemoteObserverList<T, Args...>::UnregisterInternal called
08-06 11:37:45.767 348 1851 E C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:185)]Failed to unlink death recipient from observer
08-06 11:37:45.767 348 1851 W C00101/Bluetooth: [remote_observer_list.h(Deregister:137)]Given observer not registered with this list
08-06 11:37:45.767 348 1851 I C00101/Bluetooth: [remote_observer_list.h(OnRemoteDied:175)]Callback from dead process unregistered
08-06 11:37:45.767 348 377 I C00101/Bluetooth: [bluetooth_ble_central_manager_server.cpp(DeregisterBleCentralManagerCallback:591)]enter, scannerId: 1
08-06 11:37:45.767 348 1851 I C00101/Bluetooth: [bluetooth_host_server.cpp(DeregisterBleAdapterObserver:1729)]start.
08-06 11:37:45.767 348 1851 I C00101/Bluetooth: [remote_observer_list.h(Deregister:129)]RemoteObserverList<T, Args...>::Deregister called
08-06 11:37:45.767 348 1851 I C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:181)]RemoteObserverList<T, Args...>::UnregisterInternal called
08-06 11:37:45.767 348 1851 E C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:185)]Failed to unlink death recipient from observer
08-06 11:37:45.768 348 1851 W C00101/Bluetooth: [remote_observer_list.h(Deregister:137)]Given observer not registered with this list
08-06 11:37:45.768 348 689 I C00101/Bluetooth: [remote_observer_list.h(Deregister:129)]RemoteObserverList<T, Args...>::Deregister called
08-06 11:37:45.768 348 1851 I C00101/Bluetooth: [remote_observer_list.h(OnRemoteDied:175)]Callback from dead process unregistered
08-06 11:37:45.768 348 689 I C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:181)]RemoteObserverList<T, Args...>::UnregisterInternal called
08-06 11:37:45.768 348 689 E C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:185)]Failed to unlink death recipient from observer
08-06 11:37:45.768 348 689 W C00101/Bluetooth: [remote_observer_list.h(Deregister:137)]Given observer not registered with this list
08-06 11:37:45.768 348 348 I C00101/Bluetooth: [remote_observer_list.h(Deregister:129)]RemoteObserverList<T, Args...>::Deregister called
08-06 11:37:45.768 348 348 I C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:181)]RemoteObserverList<T, Args...>::UnregisterInternal called
08-06 11:37:45.768 348 348 E C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:185)]Failed to unlink death recipient from observer
08-06 11:37:45.768 348 348 W C00101/Bluetooth: [remote_observer_list.h(Deregister:137)]Given observer not registered with this list
08-06 11:37:45.768 348 348 I C00101/Bluetooth: [remote_observer_list.h(OnRemoteDied:175)]Callback from dead process unregistered
08-06 11:37:45.768 348 377 I C00101/Bluetooth: [remote_observer_list.h(OnRemoteDied:175)]Callback from dead process unregistered
08-06 11:37:46.239 1768 1768 I C00101/Bluetooth: [napi_bluetooth_connection.cpp(SetDevicePairingConfirmation:357)]SetDevicePairingConfirmation::accept = 1
08-06 11:37:46.239 1768 1768 I C00101/Bluetooth: [bluetooth_remote_device.cpp(SetDevicePairingConfirmation:271)]enter, accept: 1
08-06 11:37:46.239 348 1866 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.240 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.240 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.240 348 1866 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 53, flags= 0
08-06 11:37:46.240 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(SetDevicePairingConfirmation:1579)]transport: -1, address: 98:BE::::B8, accept: 1
08-06 11:37:46.240 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetDeviceType:846)]transport: 0, address: 98:BE:
:::B8
08-06 11:37:46.241 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.241 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.241 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.241 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.601 348 612 I C00101/Bluetooth: [bluetooth_host_server.cpp(OnRemoteUuidChanged:345)]device: 98:BE::::B8
08-06 11:37:46.611 348 612 I C00101/Bluetooth: [bluetooth_host_server.cpp(OnPairStatusChanged:327)]device: 98:BE:
:::B8, status: 3
08-06 11:37:46.612 530 530 I C00101/Bluetooth: [bluetooth_host.cpp(OnPairStatusChanged:200)]enter, transport: 0, device: 98:BE::::B8, status: 3
08-06 11:37:46.613 644 1111 I C00101/Bluetooth: [bluetooth_host.cpp(OnPairStatusChanged:200)]enter, transport: 0, device: 98:BE:
:::B8, status: 3
08-06 11:37:46.615 1768 1770 I C00101/Bluetooth: [bluetooth_host.cpp(OnPairStatusChanged:200)]enter, transport: 0, device: 98:BE::::B8, status: 3
08-06 11:37:46.616 1768 1770 I C00101/Bluetooth: [napi_bluetooth_remote_device_observer.cpp(DealPairStatus:108)]status is 3
08-06 11:37:46.616 1768 1770 I C00101/Bluetooth: [napi_bluetooth_remote_device_observer.cpp(OnPairStatusChanged:38)]addr:98:BE:
:::B8, bondStatus:2
08-06 11:37:46.617 1173 1180 I C00101/Bluetooth: [bluetooth_host.cpp(OnPairStatusChanged:200)]enter, transport: 0, device: 98:BE::::B8, status: 3
08-06 11:37:46.618 1173 1180 E C00101/Bluetooth: [napi_bluetooth_remote_device_observer.cpp(OnPairStatusChanged:34)]PairStatusChangeCallback is not registered
08-06 11:37:46.620 1768 1768 I C00101/Bluetooth: [bluetooth_host.cpp(GetPairedDevices:815)]transport: 0
08-06 11:37:46.620 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.621 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.621 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.621 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 29, flags= 0
08-06 11:37:46.621 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetPairedDevices:1177)]GetPairedDevices
08-06 11:37:46.623 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.623 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.623 1768 1768 I C00101/Bluetooth: [napi_bluetooth_connection.cpp(GetPairedDevices:309)]end
08-06 11:37:46.624 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.625 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.625 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.626 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 41, flags= 0
08-06 11:37:46.627 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetDeviceType:846)]transport: 0, address: 98:BE:
:::B8
08-06 11:37:46.627 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.627 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.629 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.629 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.629 1768 1768 I C00101/Bluetooth: [bluetooth_remote_device.cpp(GetDeviceProductType:308)]enter
08-06 11:37:46.630 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.631 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.631 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.631 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.632 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.632 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.633 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 51, flags= 0
08-06 11:37:46.633 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetDeviceClass:1516)]address: 98:BE::::B8
08-06 11:37:46.635 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.635 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.637 348 1866 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.638 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.638 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.638 348 1866 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 4, flags= 0
08-06 11:37:46.638 348 1866 I C00101/Bluetooth: [bluetooth_host_stub.cpp(GetBtStateInner:339)]BluetoothHostStub::GetBtStateInner starts
08-06 11:37:46.639 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.639 1768 1768 I C00101/Bluetooth: [bluetooth_host.cpp(GetBtState:497)]state: 1
08-06 11:37:46.639 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 11, flags= 0
08-06 11:37:46.640 1768 1768 I A000ff/SettingsLog->: BluetoothModel, getState: bluetoothState = 2
08-06 11:37:46.641 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.642 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.642 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.643 348 1866 I C00101/Bluetooth: [bluetooth_a2dp_src_stub.cpp(OnRemoteRequest:92)]BluetoothA2dpSrcStub::OnRemoteRequest, cmd = 5, flags= 0
08-06 11:37:46.643 348 1866 I C00101/Bluetooth: [bluetooth_a2dp_source_server.cpp(GetDeviceState:235)]addr: 98:BE:
:::B8
08-06 11:37:46.644 1768 1768 I C00101/Bluetooth: [bluetooth_a2dp_src.cpp(GetDeviceState:204)]state: 0
08-06 11:37:46.644 1768 1768 I C00101/Bluetooth: [napi_bluetooth_a2dp_src.cpp(GetDeviceState:371)]status: 0
08-06 11:37:46.645 348 1866 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.646 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.646 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.646 348 1866 I C00101/Bluetooth: [bluetooth_hfp_ag_stub.cpp(OnRemoteRequest:84)]BluetoothHfpAgStub::OnRemoteRequest, cmd = 2, flags= 0
08-06 11:37:46.647 348 1866 I C00101/Bluetooth: [bluetooth_hfp_ag_server.cpp(GetDeviceState:209)]state:3
08-06 11:37:46.647 1768 1768 I C00101/Bluetooth: [napi_bluetooth_hfp_ag.cpp(GetDeviceState:166)]errorCode:BT_NO_ERROR(0)
08-06 11:37:46.648 1768 1768 I C00101/Bluetooth: [napi_bluetooth_hid_host.cpp(GetDeviceState:194)]enter
08-06 11:37:46.649 348 1866 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.649 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.649 348 1866 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.650 1768 1768 I C00101/Bluetooth: [bluetooth_hid_host.cpp(GetDeviceState:90)]enter, device: 98:BE::::B8
08-06 11:37:46.650 348 377 I C00101/Bluetooth: [bluetooth_hid_host_stub.cpp(OnRemoteRequest:62)]BluetoothHidHostStub::OnRemoteRequest, cmd = 3, flags= 0
08-06 11:37:46.650 348 377 I C00101/Bluetooth: [bluetooth_hid_host_server.cpp(GetDeviceState:199)]start, addr:98:BE:
:::B8
08-06 11:37:46.651 348 377 I C00101/Bluetooth: [bluetooth_hid_host_server.cpp(GetDeviceState:209)]end, result:3
08-06 11:37:46.651 1768 1768 I C00101/Bluetooth: [napi_bluetooth_hid_host.cpp(GetDeviceState:209)]errorCode:BT_NO_ERROR(0)
08-06 11:37:46.651 1768 1768 I C00101/Bluetooth: [napi_bluetooth_hid_host.cpp(GetDeviceState:216)]profileState: 0
08-06 11:37:46.652 1768 1768 I A000ff/SettingsLog->: Settings BluetoothDeviceController bluetooth paired devices. list length = 1, %{public}s
08-06 11:37:46.653 1768 1768 I A000ff/SettingsLog->: Settings BluetoothDeviceController bluetooth bonded : remove device., %{public}s
08-06 11:37:46.654 1768 1768 I A000ff/SettingsLog->: BluetoothProfileManager, bluetooth.connectDevice start
08-06 11:37:46.655 1768 1768 I C00101/Bluetooth: [bluetooth_a2dp_src.cpp(Connect:249)]a2dp connect remote device: 98:BE::::B8
08-06 11:37:46.655 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.656 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.656 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.656 348 377 I C00101/Bluetooth: [bluetooth_a2dp_src_stub.cpp(OnRemoteRequest:92)]BluetoothA2dpSrcStub::OnRemoteRequest, cmd = 0, flags= 0
08-06 11:37:46.656 348 377 I C00101/Bluetooth: [bluetooth_a2dp_source_server.cpp(Connect:212)]addr: 98:BE:
:::B8
08-06 11:37:46.657 348 377 I C00101/Bluetooth: [bluetooth_hitrace.cpp(BluetoothStartAsyncTrace:38)]value:A2DP_SRC_CONNECT, taskId:1
08-06 11:37:46.657 348 377 I C00101/Bluetooth: [bluetooth_hitrace.cpp(BluetoothFinishAsyncTrace:44)]value:A2DP_SRC_CONNECT, taskId:1
08-06 11:37:46.658 1768 1768 I C00101/Bluetooth: [napi_bluetooth_hfp_ag.cpp(Connect:340)]enter
08-06 11:37:46.658 1768 1768 I C00101/Bluetooth: [bluetooth_hfp_ag.cpp(Connect:447)]enter, device: 98:BE::::B8
08-06 11:37:46.659 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.659 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.659 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.660 1768 1768 I C00101/Bluetooth: [bluetooth_hfp_ag.cpp(Connect:157)]hfp connect remote device: 98:BE:
:::B8
08-06 11:37:46.660 348 377 I C00101/Bluetooth: [bluetooth_hfp_ag_stub.cpp(OnRemoteRequest:84)]BluetoothHfpAgStub::OnRemoteRequest, cmd = 3, flags= 0
08-06 11:37:46.660 348 377 I C00101/Bluetooth: [bluetooth_hfp_ag_server.cpp(Connect:218)]target device:98:BE::::B8()
08-06 11:37:46.661 348 377 I C00101/Bluetooth: [bluetooth_hitrace.cpp(BluetoothStartAsyncTrace:38)]value:HFP_AG_CONNECT, taskId:1
08-06 11:37:46.661 348 377 I C00101/Bluetooth: [bluetooth_hitrace.cpp(BluetoothFinishAsyncTrace:44)]value:HFP_AG_CONNECT, taskId:1
08-06 11:37:46.661 1768 1768 I C00101/Bluetooth: [napi_bluetooth_hfp_ag.cpp(Connect:348)]errorCode:BT_ERR_INTERNAL_ERROR(2900099)
08-06 11:37:46.662 1768 1768 E C00101/Bluetooth: [napi_bluetooth_hfp_ag.cpp(Connect:349)]bluetoothManager napi assert failed.
08-06 11:37:46.662 1768 1768 I C00101/Bluetooth: [napi_bluetooth_hid_host.cpp(Connect:222)]enter
08-06 11:37:46.663 348 377 I C00101/Bluetooth: [bluetooth_host_stub.cpp(OnRemoteRequest:244)]BluetoothHostStub::OnRemoteRequest, cmd = 10, flags= 0
08-06 11:37:46.663 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(GetBtState:810)]state: 1
08-06 11:37:46.663 348 377 I C00101/Bluetooth: [bluetooth_host_server.cpp(IsBtEnabled:1708)]true
08-06 11:37:46.664 1768 1768 I C00101/Bluetooth: [bluetooth_hid_host.cpp(Connect:107)]hid connect remote device: 98:BE:
:::B8
08-06 11:37:46.664 348 377 I C00101/Bluetooth: [bluetooth_hid_host_stub.cpp(OnRemoteRequest:62)]BluetoothHidHostStub::OnRemoteRequest, cmd = 1, flags= 0

OpenHarmony-4.1.
Bluetooth
290009
2024-06-21 09:25:33
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
鱼弦CTO
1

根据你提供的信息,OpenHarmony 4.1.7.5版本在尝试蓝牙连接时遇到了错误码 290009。关键日志显示不支持 HFP (Hands-Free Profile):



08-05 17:13:21.151 336 336 E C00102/Bluetooth: [HFP AG]Connect():Not Support HFP!
[napi_bluetooth_hfp_ag.cpp(Connect:348)]errorCode:BT_ERR_INTERNAL_ERROR(2900099)


这里有几个可能的解决方案和建议:


检查设备是否支持 HFP:确认你的设备硬件和固件是否支持 HFP。如果设备本身不支持该功能,就无法建立连接。


配置问题:确保在系统设置或应用配置中启用了 HFP 支持。有时候默认的配置可能没有包含所有需要的蓝牙协议。


更新固件或软件:如果这是已知的 bug,可以查看 OpenHarmony 的更新日志或社区反馈是否有相应的修复补丁。


调试代码:深入分析代码 napi_bluetooth_hfp_ag.cpp 中第348行的实现,查看具体为什么会抛出不支持 HFP 的错误。


查看完整日志信息:提供的日志片段已经很有帮助,但可能还需要更多的上下文信息来做进一步的诊断。例如,连接前后的其他相关日志。


参考官方文档:查阅 OpenHarmony 官方蓝牙模块的文档,有时候官方文档中会提供常见问题及其解决方法。


以下是你提供的完整日志以便参考:



08-06 11:37:45.767 348 348 I C00101/Bluetooth: [bluetooth_host_server.cpp(DeregisterRemoteDeviceObserver:1676)]Enter!
08-06 11:37:45.767 348 377 I C00101/Bluetooth: [remote_observer_list.h(Deregister:129)]RemoteObserverList<T, Args...>::Deregister called
08-06 11:37:45.767 348 377 I C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:181)]RemoteObserverList<T, Args...>::UnregisterInternal called
08-06 11:37:45.767 348 377 E C00101/Bluetooth: [remote_observer_list.h(UnregisterInternal:185)]Failed to unlink death recipient from observer

这些日志显示在注销远程设备观察者时失败了,但这与 HFP 不支持并没有直接关联。不过,也可以检查相关代码和配置以确保没有其他潜在问题。

分享
微博
QQ
微信
回复
2024-07-09 09:37:55
相关问题
鸿蒙怎么打开网页,Android可以正常打开
12830浏览 • 3回复 待解决
Socket连接报错,错误码88
1683浏览 • 1回复 待解决
TCPSocket on('close')错误码
318浏览 • 1回复 待解决
mate30 5G鸿蒙110版本更新升级150版本
7417浏览 • 1回复 待解决
错误码62980096怎么处理
813浏览 • 1回复 待解决
network bindSocket错误码问题
242浏览 • 1回复 待解决
webview错误码105 是什么错误
706浏览 • 1回复 待解决
eglSwapBuffers常见错误码分析
404浏览 • 1回复 待解决
润和轻量系统mqtt连接错误码2
1852浏览 • 0回复 待解决
请求广告返回错误码401
2213浏览 • 1回复 待解决
请求广告返回错误码21800003
2110浏览 • 1回复 待解决
Web的onErrorReceive错误码含义
1662浏览 • 1回复 待解决
request上传返回错误码401
104浏览 • 2回复 待解决
HarmonyOS 5.0版本fling速度变慢了
250浏览 • 2回复 待解决
调用广告接口,返回错误码21800003
326浏览 • 1回复 待解决
startAbility跳转失败返回错误码16000001
1953浏览 • 1回复 待解决
OH_NativeImage_UpdateSurfaceImage接口错误码
1543浏览 • 1回复 待解决
HarmonyOS 安装hap包提示错误码9568257
33浏览 • 1回复 待解决
提问
该提问已有0人参与 ,帮助了0人