Giter VIP home page Giter VIP logo

wifi-rtt-trilateration's Introduction

WiFi-RTT-Trilateration

Combining Android WiFi-RTT (802.11mc) with multilateration to determine position

NOT FOR PRODUCTION USE - PROOF OF CONCEPT ONLY

Requirements:

  • Access Points supporting 802.11mc standard
  • Android device running Pie (9.0) or higher
  • Android device with network hardware stack that supports WiFi RTT

Testing:

This project has been tested with the following:

  • Pixel 2 XL running Android Pie and Android 10
  • Google WiFi access points

Prerequisites

You need to define a configuration associating the access point mac addresses with the physical location of those access points according to some cartesian coordinate system which you have previously defined. Personally, I used millimeters from the bottom left corner of my house (0,0,0) with x+ going right and y+ going up along the ground floor. This app does NOT have the ability to place APs on a map as it is just used for testing purposes.

(Optional) You then also need to provide a map of the area being ranged and then determine the scaling factor between that map, as displayed in the app and the physical locations of the APs on that map, according to your coordinate system. If you do not provide a map, you can still see your estimated position as text in the MainActivity.

Overview

This application will scan for nearby access points that support 802.11mc and determine the distances to any AP which has had its location defined in the app's configuration, according to a user-defined coordinate system. The estimated location of a user will be determined with a 3rd party trilateration algorithm and the resulting estimate.

Several of these estimated positions are averaged together with a weighted mean to determine a more accurate position, avoiding some jitter in the measurements.

The estimated position is then broadcast to interested parties: The MainActivity will display the positions in textual form and the MapActivity will update a pin on a map.

Map

Limitations

A lot of the calculations to scale my coordinate system to display the pin on my map are hand-coded and would benefit from better commenting (MapActivity.java)

Configuration

See the Configuration.java file for example AP layouts I used in my testing. You can also adjust the frequency between ranging requests as well as the number of historical points to included in the moving average.

Further work

Links:

wifi-rtt-trilateration's People

Contributors

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