Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AT 固件 BLE 连接断开原因 #829

Open
3 tasks done
ceerqingtingml opened this issue May 9, 2024 · 2 comments
Open
3 tasks done

AT 固件 BLE 连接断开原因 #829

ceerqingtingml opened this issue May 9, 2024 · 2 comments

Comments

@ceerqingtingml
Copy link

Answers checklist.

  • I have read the documentation ESP-AT Programming Guide and the issue is not addressed there.
  • I have used the latest released firmware or have updated my ESP-AT branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

AT 固件如何获取 BLE 连接断开的原因?

@ustccw
Copy link
Collaborator

ustccw commented May 17, 2024

@Luxin812 PTAL

@Luxin812
Copy link
Contributor

Luxin812 commented May 28, 2024

@ceerqingtingml
目前 AT 官方固件不能获取到 BLE 连接断开的原因,你可以在 menuconfig 中将 HCI 日志打开重新编译固件,从日志口获得 BLE 断开的原因,menuconfig 更改如下:
python build.py menuconfig -> Component config -> Log output -> Default log verbosity -> Debug
python build.py menuconfig -> Component config -> Bluetooth -> Bluedroid Options -> BT DEBUG LOG LEVEL -> HCI layer -> Debug
另外在编译固件时不要将固件设置为 slience 模式
如何编译 AT 固件请参考:https://docs.espressif.com/projects/esp-at/zh_CN/latest/esp32/Compile_and_Develop/How_to_clone_project_and_compile_it.html#esp-at 或者是:https://docs.espressif.com/projects/esp-at/zh_CN/latest/esp32/Compile_and_Develop/How_to_build_project_with_web_page.html#esp-at
BLE 的错误码可以直接看 BLE 5.0 协议里面的 ERROR CODE 部分:
企业微信截图_17128928388597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants