Analog-Devices-MSDK / MAX-BLE-HCI

Python3 BLE HCI Directed to MAX Vendor Specific Commands
Apache License 2.0
2 stars 1 forks source link

Command packets received after timeout get stuck in queue #25

Closed EricB-ADI closed 5 months ago

EricB-ADI commented 9 months ago

If a device responds to a command packet after a timeout occurs the packet gets stuck in the queue and the next command response will use the wrong response.

If there is no ongoing requests the queue should be flushed.

>>> rssi
INFO - 2024-02-06 14:24:49.290188  DUT>0106ff0100
2024-02-06 14:24:50,306 - BLE-HCI - WARNING - Timeout occured. Retrying. 0 retries remaining. (_transport.py:428)
ERROR    Unexpected exception TimeoutError
>>> INFO - 2024-02-06 14:25:15.127590  DUT<040e050106ff0064