Hi,
I'm trying to setup an application that uses ESP-C6 with ESP-AT 4.0 for sending/receiving some data over BLE SPP.
I'm doing the following steps:
ATE0
AT+SYSLOG=1
AT+SYSMSG=5
AT+BLEINIT=2
AT+BLEADVPARAM=32,32,0,0,7,0
AT+BLEADVDATAEX=adv_params
AT+BLEADVSTART
Once connection is received from ESP via
+BLECONN:0, remote_addr
I'm setting up the SPP connection
AT+BLECONNPARAM=0,6,6,0,30
AT+BLESPPCFG=config
AT+BLESPP
After ">" response is received data is sent via SPP.
After a period of time I want shutdown the SPP and disconnect from the client and do:
+++ - for exiting the passtrough mode. I do receive the confirmation message from ESP: +QUITT
AT+BLEDISCONN=0
After sending the disconnection request AT command ESP seems to not responding anymore until I reset the ESP.
I suspected that it might be something on my end, hence I tried sending another command and seems to be working
AT+BLECFGMTU?
+BLECFGMTU:0,23
I also tried to message that sets data:
AT+BLESETPHY=0,2
+BLESETPHY:remote,2,2
What worked and triggered a disconnection, by receiving an asynchronous message, of the ESP server from the client was deinitializing the BLE
AT+BLEINIT=0
I tried to check whether sending AT+BLEDISCONN=0 might provide any response after the BLE has been deinitialized. I experienced the same issue.
Any thoughts on what I might be doing wrong here?
Is it possible that AT+BLEDISCONN=0 is intended only for client role and not for server role? The only instance I found in the manual for this commands was for client role, hence the questions.
Any advice or information is highly appreciated.
AT+BLEDISCONN blocking issue
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 6 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.