Search found 473 matches
- Wed Aug 05, 2020 10:02 am
- Forum: ESP32 boards
- Topic: BT Scanning is Broken
- Replies: 2
- Views: 2436
BT Scanning is Broken
I have just updated to latest commit of micropython, after 3 months away: 200804-9883d8e.hex I now seem unable to get bluetooth scanning to detect anything, this is code that previously worked, but now it appears that bluetooth scanning is not doing anything at all ! import time, bluetooth bt = blue...
- Wed Apr 08, 2020 11:40 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
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.
- Sat Apr 04, 2020 11:47 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
Re: BLE Scan forever stops after 7+ Hours
Oops, hold your horses, need to test it again !
- Sat Apr 04, 2020 10:54 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
Re: BLE Scan forever stops after 7+ Hours
Yes, bug in my code caused by bad data.
All seems good now, thanks again
All seems good now, thanks again
- Fri Apr 03, 2020 12:08 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
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
Thanks so much
- Thu Apr 02, 2020 12:04 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
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.
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.
- Tue Mar 31, 2020 10:16 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
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...
- Tue Mar 31, 2020 9:27 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
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...
- Tue Mar 31, 2020 9:20 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
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...
- Sun Mar 29, 2020 8:52 am
- Forum: ESP32 boards
- Topic: BLE Scan forever stops after 7+ Hours
- Replies: 17
- Views: 10562
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:...