Coder Social home page Coder Social logo

arduino_esp32s3_wifi_ftm_scan's Introduction

ESP32S3 WiFi MAC address and FTM responder scanner

Authors Emanuele Pagliari

What is FTM

This simple sketch has been developed for the last ESP32S3 SoC from Espressif, which support Fine Time Measurement (FTM) over the WiFi protocol. FTM is the measure of the time a WiFi signal takes to travel in the air from a device (“station” - STA) to a WiFi access point (AP) and it is, of course, proportional to the actual distance between them (about 3.3 nanoseconds per meter). Since the internal clocks in the two network entities are not synchronized, a one-way time measurement cannot be based on differences between timestamps at the two ends. Fortunately, the difference in timestamps when the signal travels in the reverse direction is affected in the opposite way by the clock offset. As a result, the round trip time (RTT) can be obtained without having to know the clock offsets - by simple addition and subtraction of four times: RTT = (t4-t1 + t2-t3). Therefore, knowing the round trip times to 3, 4, or more APs in known positions allows to estimate the position of the device given the positions of the APs. For more info about FTM, check this wonderful website.

Code for Arduino ESP32S3 FTM and MAC scanner

The provided sketch is suitable only for the ESP32S3 and ESP32C2, since they are the only ESP32s that support FTM. The code is based on the Arduino and ESP-IDF frameworks.

The output of the scan looks like this:

ESP32S3 Arduino ESP32S3 FTM and MAC scanner output

Enjoy the code!

arduino_esp32s3_wifi_ftm_scan's People

Contributors

palia95 avatar

Watchers

 avatar

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.