LoPy stops detecting BLE advertisements #10
Description
LoPy
Firmware release 1.6.13.b1
My analysis is also described here: https://forum.pycom.io/topic/1255/lopy-stops-detecting-ble-advertisements
What I wanted to test out was how well LoPy receives BLE advertisements as a preparation for a real use case with iBeacons on vehicles. As the LoPy would be USB-powered I use start_scan(-1). I might be able to check only occasionally later on, but for now I assume the LoPy needs to be always scanning.
I noticed that get_adv sees only some of the advertisements, and it comes and goes. For a few seconds it can detect all, then for several seconds it hardly detects any. I've secured that the advertisement buffer never gets full. The beacons used for testing were very close by (like 10 cm away).
Another related problem is that after a varying time it stops detecting advertisements altogether, and I need to reboot for it to start again. In that state get_adv simply returns nothing.
This seems related: espressif/esp-idf#421
Cheers,
Anders