pcbreflux / espressif

all espressif stuff will committed here
GNU General Public License v3.0
595 stars 441 forks source link

BLUFI_MAIN: sheep counter not working for me anymore #5

Open neilyoung opened 7 years ago

neilyoung commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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.

pcbreflux commented 7 years ago

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

neilyoung commented 7 years ago

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

neilyoung commented 7 years ago

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

neilyoung commented 7 years ago

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...