Search found 452 matches

by devnull
Wed Apr 08, 2020 11:40 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

Still not fixed, timestamp of 11464919 shows that it failed after about 3 hours and stopped discovering.
by devnull
Sat Apr 04, 2020 11:47 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

Oops, hold your horses, need to test it again !
by devnull
Sat Apr 04, 2020 10:54 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

Yes, bug in my code caused by bad data.

All seems good now, thanks again

:D
by devnull
Fri Apr 03, 2020 12:08 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

This appears to solve the problem, it's been running for 1 day now and is still discovering.

Thanks so much
by devnull
Thu Apr 02, 2020 12:04 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

Thanks Jimmo;

Did that and flashed the firmware last night, first test showed that it failed even earlier than previously, but it was too late last night to investigate, so will try again today.
by devnull
Tue Mar 31, 2020 10:16 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

Can this be worked-around by stopping & restarting the scan periodically ? Just trying this out, not sure if it will solve the problem: def irq(event,adv): if event == _IRQ_SCAN_RESULT: if adv[0] != 0 or len(adv[4]) != 22 or adv[4][4:7] != b'\x02 \xaa': return else: if _DEBUG: print(adv) schedule(fo...
by devnull
Tue Mar 31, 2020 9:27 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

Just tried this on a fresh clone and get the same error: git clone https://github.com/espressif/esp-idf.git esp-idf.b6 cd esp-idf.b6 git fetch origin git checkout -b scan-fix v4.0 # git cherry-pick 48bd2d74b4209bbad7c29d2d856810ee43a1a92c error: could not apply 48bd2d74b... NimBLE: Add Host based pr...
by devnull
Tue Mar 31, 2020 9:20 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

Re: BLE Scan forever stops after 7+ Hours

Thanks Jimmo; But this failed during cherry pick: # git fetch origin remote: Enumerating objects: 636, done. remote: Counting objects: 100% (636/636), done. remote: Total 884 (delta 636), reused 636 (delta 636), pack-reused 248 Receiving objects: 100% (884/884), 716.96 KiB | 449.00 KiB/s, done. Reso...
by devnull
Sun Mar 29, 2020 8:52 am
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 597

BLE Scan forever stops after 7+ Hours

Just discovered that the BLE scan forever appears to fail silently (without error) and stops discovering after about 7 hours. def irq(event,adv): if adv[0] != 0 or len(adv[4]) != 22 or adv[4][4:7] != b'\x02 \xaa': return else: print(adv) schedule(found,adv) bt.gap_scan(0,10000, 10000) {'cb:d0:c5:0c:...
by devnull
Sat Mar 28, 2020 3:56 am
Forum: General Discussion and Questions
Topic: Proximity sensor using VL53L0x
Replies: 3
Views: 1099

Re: Proximity sensor using VL53L0x

Did you do a search ??

search.php?keywords=VL53L0x

There's already quite a lot about this device in these forums :D