Giter Club home page Giter Club logo

esp8266-wifi-scanner's Introduction

A very small project inspired by ESP8266 Mini Sniff to periodically dump MAC address and signal strength (RSSI) from the specified WiFi network over the serial port.

It is intended to work with something like [Find-LF])https://github.com/schollz/find-lf) to take the results from multiple of these deployments and turn them into an internal location.

It should work in conjunction with any device that has a serial port (Raspberry Pi, C.H.I.P etc). I wrote a guide on automatically reprogramming the ESP8266 via a C.H.I.P which again should work on other mini-computers.

Compiling

The project uses PlatformIO. Simply clone the repository, edit the configuration file with your own wireless network SSID to track, and build like:

platformio run

You can then flash the firmware like:

esptool.py -p /dev/ttyS2 write_flash --flash_mode dio 0 .pioenvs/esp01_1m/firmware.bin

Dump Format

The output is printed over the serial port at 115200bps. Every second a summary of each MAC seen over that time period is displayed preceeded by '----'. The output format is like:

----
abcdef123456 -72 1
123456abcdef -35 4
----
abcdef123456 -70 5

Where the first entry is the MAC address, the second the average (mean) RSSI, and the third entry the number of packets that RSSI has been calculated from.

It will take a few seconds when the ESP8266 first boots to scan all wireless networks and find the channel that your SSID is on. Once it has been found it prints a line saying which channel it is on, and from then on every second it produces a dump, even if no devices have been observed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.