NordicSemiconductor / IOS-nRF-Connect-Device-Manager

A mobile management library for devices supporting nRF Connect Device Manager.
https://www.nordicsemi.com/Software-and-tools/Software/nRF-Connect-SDK
Apache License 2.0
88 stars 40 forks source link

Fix for invalid lock timeout on Connection when sending a Packet #111

Closed dinesharjani closed 1 year ago

dinesharjani commented 1 year ago

McuMgrBleTransport sets a connection lock with a timeout of 20 seconds, but then when it's time to wait for said lock, it waits for just a second, which might not be enough, causing a timeout, but then, the next time a packet is attempted (due to the min number of retries being larger than 1), the connection might be set because a bit more time was needed. This might mean the Mcu Mgr Parameters Request might fail just because the target firmware device was not super fast or BLE traffic was high.