espressif icon indicating copy to clipboard operation
espressif copied to clipboard

BLUFI_MAIN: sheep counter not working for me anymore

Open neilyoung opened this issue 8 years ago • 6 comments

Hi,

I think your sheep counter code is not working anymore (at least it is not working for me): Although I have a bunch of RadiusNetwork iBeacons on air, the code is not scanning either one of them (see attached image from an Android scanner)

Then - even though the stack would give me an iBeacon scan, it would not pass your iBeacon detector. Please check the iBeacon advertisement of an RadBeacon. It differs from your Nordic device in the third byte.

Other than that all other beacons around are detected.

What might be wrong?

screenshot_20170204-134828

neilyoung avatar Mar 12 '17 16:03 neilyoung

Oops, sorry. Was a bit too fast (and too blind). The iBeacons are scanned. But please double check the detection routine

EDIT: No, I need to stand my judgement: At least on a Sparkfun it is literally impossible to scan iBeacons. It is a strange situation: Whereas every other BLE device around messes up the logs and the iBeacons are advertising like hell (at least the Android sniffer tells me that), the iBeacons are just seen once in a while. Maybe one scan per minute, if at all....

This is very disappointing.

Regards

neilyoung avatar Mar 12 '17 16:03 neilyoung

OK, finally: You can for sure forget about the iBeacon scan results (at least on a Sparkfun latest stack): Not only, that scans are just scattered, they are also complete nonsense.

Look at these two consecutive (hey, consecutive means: 30 secs in between) readings of one and the same stationary iBeacon:

BEACON_DEMO: BDA 0C:F3:EE:04:1A:A8 BEACON_DEMO: rssi: -27 BEACON_DEMO: BDA 0C:F3:EE:04:1A:A8 BEACON_DEMO: rssi: -79

This is simply impossible.

neilyoung avatar Mar 12 '17 17:03 neilyoung

You have also find the rumours about the RSSI value, but I don't see it in the time of my development. If this is a issue, this should go to the esp-idf github. Can you open one with you findings? https://github.com/espressif/esp-idf/issues

pcbreflux avatar Mar 12 '17 18:03 pcbreflux

Done. Same issues with this snippet BTW https://github.com/nkolban/esp32-snippets/blob/master/BLE/scanner/ble1.c

neilyoung avatar Mar 12 '17 19:03 neilyoung

Please don't forget the iBeacon detection problem mentioned above. This is your problem :)

neilyoung avatar Mar 12 '17 19:03 neilyoung

Interesting turn in this matter: Up to now I just tested with RadBeacons (Dot). Now I used my iPhone as virtual Estimote beacon. And scans come in. The RSSI values are still nonsense (e.g. -8 very close to the beacon), but at least I receive scans...

neilyoung avatar Mar 12 '17 21:03 neilyoung