esp-find3-client icon indicating copy to clipboard operation
esp-find3-client copied to clipboard

Add support for passive scanning

Open DatanoiseTV opened this issue 7 years ago • 12 comments

This is WiP. Partial passive scanning is done, but not committed here yet.

DatanoiseTV avatar Mar 26 '18 20:03 DatanoiseTV

I would love to see passive scanning added.

maddog986 avatar Sep 18 '18 14:09 maddog986

Agreed. I'd be happy to help with the effort if you're willing to share the WIP.

david81 avatar Nov 01 '18 20:11 david81

Available for help if needed. This is a really useful feature for me

imtoori avatar Nov 11 '18 12:11 imtoori

Yeap. I really love to have this passive scanning feature, too. Pi is quite heavy stack to be deploy in bigger scale like shopping malls...

If needed, I can join the testing or fixing force :D

IoTThinks avatar Nov 14 '18 05:11 IoTThinks

Any update on this? What needs to be done to implement this?

ItsEcholot avatar Nov 24 '18 19:11 ItsEcholot

Jut a matter of getting a hold of any probe requests, their mac address and rssi signal strength mean over a time interval. Then this result should be posted to the find server over http. I had some basic example done some time ago for this

jekkos avatar Nov 26 '18 21:11 jekkos

@jekkos

Jut a matter of getting a hold of any probe requests, their mac address and rssi signal strength mean over a time interval. Then this result should be posted to the find server over http. I had some basic example done some time ago for this

Could you send me your example or post it somewhere? It doesn't seem overly complicated but I sure would like to see your implementation. Reading through the esp-find3-client code it seems like there is an issue implementing both a wlan connetion and scanning for BLE devices because of partition space?

ItsEcholot avatar Nov 27 '18 09:11 ItsEcholot

@ItsEcholot this looks like what he's talking about. The only thing is It's only going to get things actively scanning. The http post would also need to be modified for find3 and it will only get things actively scanning, clients already associated are going to be sending out fewer probe requests so it'll be less accurate and it will only be scanning one channel

jacobalberty avatar Jan 21 '19 00:01 jacobalberty

I'm working on something based on https://github.com/rw950431/ESP8266mini-sniff , the problem is it won't allow you to sniff while connected as a station. I'm thinking set a configurable interval and run for a few seconds and submit what it sees.

jacobalberty avatar Jan 21 '19 01:01 jacobalberty

I'm working on something based on https://github.com/rw950431/ESP8266mini-sniff , the problem is it won't allow you to sniff while connected as a station. I'm thinking set a configurable interval and run for a few seconds and submit what it sees.

Of course, you need to change wifi mode. I'm also trying do one for ESP32.

IoTThinks avatar Jan 21 '19 12:01 IoTThinks

@IoTThinks if you want to see what I have going on heres my repo https://github.com/jacobalberty/esp8266-find-passive

I'm just sniffing for 10 seconds (and changing cycling through the channels every 1/14th of that) then connecting to wifi. I need to add the code to change it to json and posting the data. I may also switch to using WifiManager for new setups to handle configuration. but so far the sniff and switch to wifi seems fairly stable. It's mostly esp8266mini-sniff i just trimmed down the unneeded stuff from functions.h and instead of sniffing each channel till nothing new I do it on a set timer.

jacobalberty avatar Jan 21 '19 19:01 jacobalberty

Was this ever implemented ?

gomme600 avatar Mar 14 '22 13:03 gomme600