Connecting to sensor using ESP32C3 and BLE5.0

AishwaryaK
Posts: 2
Joined: Fri Jun 04, 2021 3:06 am

Connecting to sensor using ESP32C3 and BLE5.0

Postby AishwaryaK » Thu Jul 14, 2022 7:37 am

Hello,

I am currently trying to connect a sensor to ESP32C3 using BLE 5.0.

Following is the sequence of packets communicated between the sensor and the controller.
ADV_IND→SCAN_REQ→SCAN_RESP→CONNECT_IND→LL_FEATURE_REQ
After the LL_FEATURE_REQ packet, the slave i.e. the sensor does not respond with LL_FEATURE_RSP, which is the expected response. Instead it starts broadcasting again the ADV_IND packets.
I have tested the same sensor with ESP32 earlier and it works fine.

The difference in the LL_FEATURE_REQ packets of ESP32 and ESP32C3 is the feature set values supported by ESP32C3 according to the BLE 5.0 specifications for e.g. the LE 2M PHY, LE Coded PHY and the Channel Selection Algorithm #2.
Also, regarding the bluetooth settings both ESP32 and ESP32C3 are used in controller only mode.

Is it possible to disable the 'Channel Selection Algorithm #2' and use only 'Channel Selection Algorithm #1'? I guess the sensor does not support 'Channel Selection Algorithm #2'.

It would be really helpful if someone could give a direction as to how to debug this failure in connection as it is delaying our production.
Also, please let me know if you need any other information.

Thanks in advance.

AishwaryaK
Posts: 2
Joined: Fri Jun 04, 2021 3:06 am

Re: Connecting to sensor using ESP32C3 and BLE5.0

Postby AishwaryaK » Fri Jul 22, 2022 12:47 am

Hello Espressif Team,

It would be really helpful if you could take a look at this issue as our production is getting delayed.

Kindly let me know if any other information is required from my side to help you understand the issue better.

Thanks in advance.

kojibuta
Posts: 1
Joined: Thu Nov 09, 2023 7:00 pm

Re: Connecting to sensor using ESP32C3 and BLE5.0

Postby kojibuta » Thu Nov 09, 2023 7:04 pm

Hi @AishwaryaK, I had a similar problem with ESP32-S3. I solved the issue setting CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n. This enables channel select algorithm #1 by default starting from esp idf v5.1. Maybe you already found a solution since your post is very old. Hope this can hel anyway.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 129 guests