rk3588 蓝牙
使用rk3588j核心板,我们自己做的底板将wifi/蓝牙模块替换为8274B-PR,目前wifi已经成功驱动起来,蓝牙存在问题,有几个问题想问一下.问题1: 如何确定蓝牙有没有驱动起来, 在后台有没有什么指令可以调试蓝牙?
问题2: 能提供了一个蓝牙移植文档?sdk里面描述的太粗略了.
问题3: 请问是否有过高通方案的wifi/蓝牙调试?
1.这个主要是自己看内核和上层的log 打印什么出错
2.先确保tty 配置是否匹配
3.默认只调试AP6398SV 模块 jpchen 发表于 2022-12-12 17:47
1.这个主要是自己看内核和上层的log 打印什么出错
2.先确保tty 配置是否匹配
3.默认只调试AP6398SV 模块
logcat 对比demo板上测信息,发现自己自己底板上从下面这个位置开始不一样,这个可能是什么问题?更换了蓝牙模块还要添加别的么?
12-08 16:44:06.23519001924 E bt_btif_config: system/bt/btif/src/btif_config.cc:352 btif_config_open: Config is missing adapter section
12-08 16:44:06.23519001924 W bt_btif_config: system/bt/btif/src/btif_config.cc:272 init: init unable to load config file: /data/misc/bluedroid/bt_config.conf; using backup.
12-08 16:44:06.23519001924 E bt_btif_config: system/bt/btif/src/btif_config.cc:352 btif_config_open: Config is missing adapter section
12-08 16:44:06.23519001924 W bt_btif_config: system/bt/btif/src/btif_config.cc:281 init: init unable to load backup; attempting to transcode legacy file.
12-08 16:44:06.23519001924 E bt_btif_config_transcode: system/bt/btif/src/btif_config_transcode.cc:33 btif_config_transcode: btif_config_transcode unable to load XML file '/data/misc/bluedroid/bt3 zz123456 发表于 2022-12-14 09:55
logcat 对比demo板上测信息,发现自己自己底板上从下面这个位置开始不一样,这个可能是什么问题?更换了蓝牙 ...
这个要联系对应的供应商提供支持 jpchen 发表于 2022-12-14 11:14
这个要联系对应的供应商提供支持
你能告诉我这个log是什么问题导致的么?
供应商那边一问三不知,您这边告诉我什么问题导致的,需要哪些东西,我再区找供应商问问 zz123456 发表于 2022-12-14 13:34
你能告诉我这个log是什么问题导致的么?
供应商那边一问三不知,您这边告诉我什么问题导致的,需要哪些东西 ...
只能在代码加打印,区别两个模块这个地方打印是什么 jpchen 发表于 2022-12-14 14:49
只能在代码加打印,区别两个模块这个地方打印是什么
demo板上原始设置蓝牙可以工作的/data/misc/bluedroid/bt_config.conf
这个文件里面:
FileSource = Empty
TimeCreated = 2022-12-14 00:50:42
Salt256Bit = 5fc52f8176655eec777985ef6c5ae97975443c6bca8ddd8e8bcc76286040e495
Address = 22:22:e0:9c:01:00
LE_LOCAL_KEY_IRK = 386b0d59b8986f6e6e4336f7ecc36f9d
LE_LOCAL_KEY_IR = 2167b6456bf31090ece6cd5f1b0f0011
LE_LOCAL_KEY_DHK = 5ef386ade730fc58967e7466c3701ae8
LE_LOCAL_KEY_ER = bc5bceeff0200ac4a8933cd55d18d484
ScanMode = 0
DiscoveryTimeout = 120
自己的做的底板上的文件少了很多内容:
FileSource = Empty
TimeCreated = 2022-12-13 13:23:29
Salt256Bit = 296f3cf916c00c635375fb2e3f321d00ec67e8b368dddfc77395d4c93f69d1f5
应该是能工作的蓝牙模块在里面填充了一些内容
zz123456 发表于 2022-12-14 15:35
demo板上原始设置蓝牙可以工作的/data/misc/bluedroid/bt_config.conf
这个文件里面:
能打开的蓝牙才会打印这些,这个模块没调过,只能自己研究了
Address = 22:22:e0:9c:01:00
LE_LOCAL_KEY_IRK = 386b0d59b8986f6e6e4336f7ecc36f9d
LE_LOCAL_KEY_IR = 2167b6456bf31090ece6cd5f1b0f0011
LE_LOCAL_KEY_DHK = 5ef386ade730fc58967e7466c3701ae8
LE_LOCAL_KEY_ER = bc5bceeff0200ac4a8933cd55d18d484
ScanMode = 0
DiscoveryTimeout = 120 请问这个hardware/qcom/bt/msm8909要要怎么编译到系统里面去? 查看日志发现在如下出现了超时,这个应该怎么处理?
12-23 02:47:15.22319531997 I bt_stack: Run: message loop starting for thread bt_main_thread
12-23 02:47:15.22319531975 I bt_core_module: system/bt/btcore/src/module.cc:85 module_start_up: module_start_up Starting module "controller_module"
12-23 02:47:17.22319531978 E bt_hci: system/bt/hci/src/hci_layer.cc:528 command_timed_out: command_timed_out
12-23 02:47:17.22419531978 I BtStopWatchLegacy: system/bt/common/stop_watch_legacy.cc:58 DumpStopWatchLog: =====================================
12-23 02:47:17.22419531978 I BtStopWatchLegacy: system/bt/common/stop_watch_legacy.cc:59 DumpStopWatchLog: bluetooth stopwatch log history:
12-23 02:47:17.22419531978 I BtStopWatchLegacy: system/bt/common/stop_watch_legacy.cc:83 DumpStopWatchLog: 2022-12-23 02:47:15.219: initializationComplete: took 0 us
12-23 02:47:17.22419531978 I BtStopWatchLegacy: system/bt/common/stop_watch_legacy.cc:86 DumpStopWatchLog: =====================================
12-23 02:47:17.22419531978 E bt_hci: system/bt/hci/src/hci_layer.cc:495 command_timed_out_log_info: command_timed_out_log_info: 1 commands pending response
12-23 02:47:17.22419531978 E bt_hci: system/bt/hci/src/hci_layer.cc:508 command_timed_out_log_info: command_timed_out_log_info: Waited 2000 ms for a response to opcode: 0xc03 *matches ti*
12-23 02:47:17.22419531978 E bt_hci: system/bt/hci/src/hci_layer.cc:518 command_timed_out_log_info: command_timed_out_log_info: Size 3 Hex 03 0c 00
12-23 02:47:17.22419531978 E bt_hci: system/bt/hci/src/hci_layer.cc:547 command_timed_out: command_timed_out: requesting a firmware dump.
12-23 02:47:17.22719531978 E bt_hci: system/bt/hci/src/hci_layer.cc:567 command_timed_out: command_timed_out: Setting a timer to restart.
12-23 02:47:17.493 424 528 D AudioHardwareTiny: do_out_standby,out = 0xef983100,device = 0x400
12-23 02:47:17.494 424 528 D alsa_route: route_set_controls() set route 24
12-23 02:47:17.494 424 528 D AudioHardwareTiny: close device
12-23 02:47:18.61319531971 E AdapterState: BLE_TURNING_ON : BLE_START_TIMEOUT
12-23 02:47:18.61419531971 I AdapterState: BLE_TURNING_OFF : entered
12-23 02:47:18.61419531971 D AdapterProperties: Setting state to BLE_TURNING_OFF
12-23 02:47:18.61519531971 D BluetoothAdapterService: updateAdapterState() - Broadcasting state BLE_TURNING_OFF to 1 receivers.
12-23 02:47:18.616 605 625 D BluetoothManagerService: MESSAGE_BLUETOOTH_STATE_CHANGE: BLE_TURNING_ON > BLE_TURNING_OFF
12-23 02:47:18.616 605 625 D BluetoothManagerService: Sending BLE State Change: BLE_TURNING_ON > BLE_TURNING_OFF
12-23 02:47:18.61619531971 D BluetoothAdapterService: enableBluetoothInCallService() - Enable = false
12-23 02:47:18.617 605 605 D CompanionDeviceManagerService: Received BT state transition broadcast: BLE_TURNING_ON -> BLE_TURNING_OFF
页:
[1]