logo elektroda
logo elektroda
X
logo elektroda

Superior detector with ESP8266 and OLED SSD1306

szdom 6417 47
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #31 20949413
    szdom
    Level 12  
    sq3evp wrote:
    Interesting idea, can any ESP or other controller be used?

    The libraries used in this particular case are for ESP8266, I think that after replacing the libraries you can also use ESP32.

    krzbor wrote:
    I`m thinking about using this device for monitoring. In the case of a separated and fenced building, you can detect that someone is hanging around (of course, if they have a phone :) . I noticed that information about the signal strength is transmitted - so you can determine approximately how far someone is.

    Provided that Wi-Fi is turned on on the phone ;) For example, I always have it turned off and turn it on when I need it.
    When it comes to determining the distance, unfortunately it will not be so rosy - reflections and distortions of the signal can significantly change its strength. As a result, the relationship between RSSI and distance can vary between samples - even if the transmitter and receiver remain stationary. (...) the RSSI value can increase or decrease without changing the physical distance between the transmitter and receiver, depending on how the user holds the smartphone, how their body is positioned in relation to the device, or how surrounding structures reflect, block or absorb radio signals.
    Here`s a quote about BT, because I can`t find an article about wifi Link
    But the principle will be the same, these are radio waves.
    From my observations lasting several days, I see that this is how it works - sometimes I see a person being monitored through the window, and sometimes I have several alarms within an hour, even though I know that the person is in the other building, i.e. about 100 m away, behind a few walls - just a few packages will arrive and you are already notified.
    The basic design assumption for which I did this is absolutely fine, the system is supposed to send a signal to turn on the air conditioning, even before the user drives up to the gate, opens it, drives in, closes the gate, opens the door - the air conditioning will already be raging nicely. ;-)
  • ADVERTISEMENT
  • #32 20949707
    krzbor
    Level 27  
    szdom wrote:
    From my observations lasting several days, I see that this is how it works - sometimes I see a person being monitored through the window, and sometimes I have several alarms within an hour, even though I know that the person is in the other building, i.e. about 100 m away, behind a few walls - just a few packages will arrive and you are already notified.

    How often do phones send information (locate the network)?
  • #33 20949726
    Sam Sung
    Level 33  
    krzbor wrote:
    How often do phones send information (locate the network)?

    https://source.android.com/docs/core/connect/wifi-network-selection?hl=pl
    Quote:
    In the low mobility state (device is stationary), the interval is 60 seconds for the first three scans (...) and 180 seconds (fixed 3x overlay multiplier) for subsequent scans. In the high mobility state, the interval is 20 seconds for the first three scans (...) and 60 seconds (fixed 3x overlay multiplier) for subsequent scans.
  • #34 20949730
    jarekgol
    Level 39  
    @szdom and the time it takes for the client to reach the office, does this air conditioning have a noticeable effect, or is it more about psychology, "that she worked"?
  • #35 20949770
    szdom
    Level 12  
    In this case, the point is for it to start as quickly as possible. I am perfectly aware that she needs time to flex and get going.
  • ADVERTISEMENT
  • #36 20952896
    Mlody_Zdolny
    Level 30  
    Who goes outside with Wi-Fi or Bluetooth on? :D

    Moderated By gulson:

    Report: malice, quarrel, mockery

  • #37 20953088
    sq3evp
    Level 37  
    The average user has WiFi and BT turned on all the time, and then wonders why there are so many advertisements from the stores he visits.
  • #38 20953140
    krzbor
    Level 27  
    Mlody_Zdolny wrote:
    Who goes outside with Wi-Fi or Bluetooth on? :D

    99.9% of people do not turn off WiFi and BT. The question is who is normal :)
    Otherwise, he leaves the house - turns off BT, gets to the car - turns on BT, leaves the car, turns off BT, puts BT headphones in his ears, but first turns on BT. When entering the gallery, he takes out his headphones, because they don`t work without BT, and to avoid being spied on, he turns off BT on his phone.
    A bit too much paranoia. For me, the real threat are WiFi devices installed in homes. Such a device is able to do everything while in the internal network. It can also be a serious security hole.
  • #39 20957387
    sq3evp
    Level 37  
    krzbor wrote:

    A bit too much paranoia. For me, the real threat are WiFi devices installed in homes. Such a device is able to do everything while in the internal network. It can also be a serious security hole.


    And it is - I recommend reading security bulletins regarding IoT vulnerabilities :)

    There`s a lot you can do, but it`s not always worth it.
  • ADVERTISEMENT
  • #40 20959085
    szdom
    Level 12  
    Today I noticed interesting behavior of Android - I have Wi-Fi turned off on my phone, and yet in the morning the phone sent frames several times and the detector registered them.
    I suspect this is related to the location enabled on the phone. I always thought that it works passively, it only scans nearby networks, but it turns out that this is not necessarily the case.
  • #41 20959153
    sq3evp
    Level 37  
    A location needs a network - find out what Google knows about you,
  • #42 20959191
    szdom
    Level 12  
    I know more or less what Google knows about me.
    But WiFi-based localization works by scanning nearby networks and comparing signal strength and several other parameters.
    Here I was surprised that the location is not completely passive, but the phone actively participates in it and forces traffic in the air, despite the WiFI slider being set to OFF. What is he for then?
  • #43 20959423
    sq3evp
    Level 37  
    Hmmm... I also noticed this once, that even though the phone was offline, the router saw that it was connected and was transmitting something.
    Apparently Google (or another Apple) likes to know what and how - then software like Pegasus or another Predator appears.
  • ADVERTISEMENT
  • #44 20959587
    jarekgol
    Level 39  
    You can check if you have "Google location accuracy" turned on and if so, change it to GPS only and see if it stops spamming over Wi-Fi.
    I still have it in the "location" section: Wi-Fi and Bluetooth scanning are turned off.
    Maybe it`s related to connections without AP:
    https://stackoverflow.com/questions/21501909/...cast-communication-without-network-connection
    https://developer.android.com/develop/connectivity/wifi/wifi-aware
  • #45 20965761
    Mocny Amper
    Level 10  
    I made a similar device myself, but the detection method was simply ping. A successful ping meant that I received the MAC address of the device, and from there it was a simple way to turn on the appropriate structure of the RGB LED. Also quite effective, but... time-consuming, because I encountered problems with pseudo-parallel sending of ping packets. For example, I ping 50 addresses at once and listen to 50 responses at once. Despite a hard fight, I failed, I had to do it serially, IP address by IP address, and it took some time to scan 254 addresses. But since I only wanted two people/devices, once I found them, I "shortened" the pool of addresses, omitting the rest, and the next cycle was faster. I also predicted a situation where the MAC you are looking for may get a different IP than the last one, etc. surprises in the network.
    I haven`t heard about the scanning method used by the author, maybe one day I will improve my detector.
  • #46 20976572
    Erbit
    Level 38  
    Great idea! I really like this project and I promise to use it for myself ;)

    szdom wrote:
    I noticed in my network that phones with randomization turned on always get the same IP address and are visible in the logs at the same MAC address.

    Unfortunately, I cannot confirm this. In my case, the MAC is always different even though IOS remembers the SSID it connects to.

    [edit]
    Let me give my friend some electrode points, maybe they will be useful.

    [edit 2]
    I looked through the code. It`s a cliché (!) and I guess that`s why I like it so much! Way to go !
  • #47 20976652
    Mocny Amper
    Level 10  
    Everyone probably didn`t notice the simple fact that it is a presence detector.
    Meanwhile, it is impossible to check it based on its operation NO presence. Contrary to appearances, it is not the same :)
  • #48 20986796
    szdom
    Level 12  
    jarekgol wrote:
    You can check if you have "Google location accuracy" turned on and if so, change it to GPS only and see if it stops spamming over Wi-Fi.

    After turning off the location accuracy, the phone stopped appearing in the detector.
    @MocnyAmper In your solution, you had information about the user only when he connected to the network, in my case the phone may not even be in range to get the IP, and you already have information that it is nearby. Recently I noticed the phone being detected from a distance of over 100m.
    @Erbit Thanks!

    Currently, I have expanded the code to display information about the signal strength that caused the call, in the form of 10 dashes on the OLED. Only now I see how the packets (reflections, etc.) must follow a different path, because the phone is in a known location, and one moment I have 4 lines and the next moment I have 9. It is certainly impossible to determine on this basis how far the monitored object is.

Topic summary

The discussion revolves around a device called the Supervisor detector, which utilizes the ESP8266 chip and an SSD1306 OLED display to monitor the presence of smartphones by detecting their MAC addresses. Users express interest in the device's functionality, noting that smartphones often do not turn off Wi-Fi, leading to active scanning for known networks. Concerns about privacy and MAC address randomization are raised, as modern smartphones may generate random MAC addresses, complicating identification. Suggestions for enhancements include adding Bluetooth capabilities and a buzzer for notifications. The conversation also touches on the implications of using such technology in marketing and the legal considerations surrounding user consent for tracking. Additionally, technical discussions about the operation of the device, signal strength measurement, and the potential for using ESP32 are included.
Summary generated by the language model.
ADVERTISEMENT