Read or set retransmission count in BLE

mbiglari
Posts: 3
Joined: Fri Dec 15, 2023 1:38 pm

Read or set retransmission count in BLE

Postby mbiglari » Fri Dec 15, 2023 1:52 pm

Hello. I'm using esp32-S3 with IDF with Bluedroid stack for BLE. I need to calculate the packet reception ratio between two BLE devices. So I have created a central and a peripheral device to communicate with each other. Then I gave a fixed channel map to enforce BLE to use just one channel for communication. Then I changed my WiFi channel to the same frequency as BLE to create noise on BLE channels. Although Wifi and BLE had interference with each other, I received packets completely. I think BLE does retransmission on the link layer. Therefore, can I find the number of packet retransmissions or can I set this value to calculate the packet reception ratio in a noisy environment?

Thanks in advance for your help.

MicroController
Posts: 1706
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Read or set retransmission count in BLE

Postby MicroController » Sun Dec 17, 2023 2:49 pm

mbiglari wrote:
Fri Dec 15, 2023 1:52 pm
Although Wifi and BLE had interference with each other, ...
How did you determine that there was 'interference'? What kind of interference?
Are you aware of https://docs.espressif.com/projects/esp ... exist.html ?

mbiglari
Posts: 3
Joined: Fri Dec 15, 2023 1:38 pm

Re: Read or set retransmission count in BLE

Postby mbiglari » Sun Dec 17, 2023 5:14 pm

Dear MicroController

I want to calculate the packet reception ratio. So I fixed my wifi channel to channel one and my BLE channel to channel four. these two channels have the same frequency. So when I started to transmit data with BLE, Wi-Fi interfered with it, and some of my packets must be dropped but because of retransmission in the BLE link layer, I received all of my packets completely. Hence, I need to disable channel retransmission or count the number of retransmissions to calculate PRR.

MicroController
Posts: 1706
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Read or set retransmission count in BLE

Postby MicroController » Mon Dec 18, 2023 12:22 pm

when I started to transmit data with BLE, Wi-Fi interfered with it, and some of my packets must be dropped
Because of the WiFi/BLE coexistence, I doubt this assumption is correct.

Who is online

Users browsing this forum: No registered users and 71 guests