ESB protocol - Disable Retries

Firmware/software/electronics/mechanics
Post Reply
aseggebaeing
Beginner
Posts: 5
Joined: Sat Feb 29, 2020 3:10 pm

ESB protocol - Disable Retries

Post by aseggebaeing »

Hello,

I'm trying to disable automatic retries within the esb protocol so that lost packages are dropped. However I can't seem to figure out what to change in the crazyflie 2 nrf firmware to achieve that. Any tips? Thanks!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: ESB protocol - Disable Retries

Post by arnaud »

Hi,

The Crazyflie 2 NRF firmware does not implement any retries, it only answer received packets. Assuming you are using Crazyradio (PA) to communicate with your Crazyflie, the retry is implemented by the Crazyradio.

If you are using the Crazyflie python lib, you can set the retry count as a global settings: https://github.com/bitcraze/crazyflie-l ... er.py#L657. You should call "cflib.crtp.radiodriver.set_retries(0)" before connecting any Crazyflies.

If you are not using the python lib, the setting in the Crazyradio is called ARC (ack retry count) and needs to be set to 0 to set it to no retry.
Post Reply