NimBLE disconnects right away after connecting [reason=531]

ffrige
Posts: 22
Joined: Thu Oct 15, 2020 3:44 am

NimBLE disconnects right away after connecting [reason=531]

Postby ffrige » Thu Oct 15, 2020 3:56 am

I am testing the standard blehr example on a ESP32-WROOM-32 module and everything works fine. Then I test the same piece of code on a ESP32-CAM and the bluetooth disconnects immediately after connecting:

connection established; status=0
disconnect; reason=531
GAP procedure initiated: advertise; disc_mode=2 adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0

I pulled the latest esp-idf repository, no change.

Where can I find out what "reason 531" means?

Also, what could be the difference between the WROOM and the CAM module? What configuration settings should I change to make the code work well on the second device?

Thanks!

ffrige
Posts: 22
Joined: Thu Oct 15, 2020 3:44 am

Re: NimBLE disconnects right away after connecting [reason=531]

Postby ffrige » Tue Oct 20, 2020 1:22 am


fyterliu
Posts: 18
Joined: Tue Oct 26, 2021 3:19 am

Re: NimBLE disconnects right away after connecting [reason=531]

Postby fyterliu » Wed Dec 17, 2025 1:16 am

531 是主机端主动断开了,原因多数是协议错误,主机无法接受。比如HID描述符不合法,描述符里面的根集合太多了(windows最多支持3个)。

Who is online

Users browsing this forum: Applebot, Google [Bot] and 1 guest