Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

LoPy stops detecting BLE advertisements #10

Open
@andersborgabiro

Description

@andersborgabiro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BLEIssues related to BLE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions