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 · 3 comments
Open
3 tasks done

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

ceerqingtingml opened this issue May 9, 2024 · 3 comments
Labels
Status: Awaiting Response awaiting a response from the author

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

@Luxin812
Copy link
Contributor

目前最新 master 分支上的 AT 固件(因为 ESP32 系列是 silence mode,所以如果您使用的是 ESP32 AT 固件,需要自行在本地编译 AT 固件,禁用 silence mode),可以在 AT 日志端口获取到 BLE 断开的原因。

@ustccw ustccw added the Status: Awaiting Response awaiting a response from the author label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting Response awaiting a response from the author
Projects
None yet
Development

No branches or pull requests

3 participants