蓝牙自动切换到mode 2问题求助

pengyanxin
Posts: 2
Joined: Mon Nov 13, 2023 8:00 am

蓝牙自动切换到mode 2问题求助

Postby pengyanxin » Mon Apr 01, 2024 10:46 am

log.jpg
log.jpg (463.57 KiB) Viewed 1772 times
我用手机通过SPP给ESP32发送数据,每次发送完间隔50ms左右。如下log,我在发送过程会打印“BT_HCI: hcif mode change: hdl 0x80, mode 2, intv 798, status 0x0”,经过查阅得知mode 2是空闲或者停止数据发送。

请问为什正在发送数据过程会突然切换到mode 2 ?
有没有什么设置可以让ESP32一直处于mode 0 状态 ?

W (76212) BT_HCI: hcif mode change: hdl 0x80, mode 0, intv 0, status 0x0
I (76212) AWA_REALITYTAP_HAPTICS: ESP_BT_GAP_MODE_CHG_EVT mode:0 bda:[64:dd:e9:c7:16:7f]
I (76212) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 193
I (76232) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 193
I (76242) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 193
I (76252) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 192
I (76262) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 192
I (76272) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 192
I (76362) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 987
I (76472) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 192
I (76792) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 193
I (78982) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 382
I (80062) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 382

W (84982) BT_HCI: hcif mode change: hdl 0x80, mode 2, intv 798, status 0x0
I (84992) AWA_REALITYTAP_HAPTICS: ESP_BT_GAP_MODE_CHG_EVT mode:2 bda:[64:dd:e9:c7:16:7f]
ASSERT_WARN(110 36), in lc_task.c at line 2054
W (85192) BT_HCI: hci cmd send: unsniff: hdl 0x80

I (85192) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 357
I (85692) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 357
I (86182) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 357

W (86192) BT_HCI: hcif ssr evt: st 0x0, hdl 0x80, tx_lat 798 rx_lat 798
W (86192) BT_HCI: hcif mode change: hdl 0x80, mode 0, intv 0, status 0x0
W (86192) BT_HCI: hcif mode change: hdl 0x80, mode 0, intv 0, status 0xc

E (86202) BT_APPL: bta_dm_pm_btm_status hci_status=12
I (86212) AWA_REALITYTAP_HAPTICS: ESP_BT_GAP_MODE_CHG_EVT mode:0 bda:[64:dd:e9:c7:16:7f]
I (86222) AWA_REALITYTAP_HAPTICS: ESP_BT_GAP_MODE_CHG_EVT mode:0 bda:[64:dd:e9:c7:16:7f]
I (86242) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 357
I (86532) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 356
I (86892) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 357
I (87192) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 357
I (87542) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 357
I (87872) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 356
I (88432) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 382
I (89492) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 382
I (90922) AWA_REALITYTAP_HAPTICS: vibrator: 1, len: 431

Who is online

Users browsing this forum: No registered users and 68 guests