├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── custom.md │ └── feature_request.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── data ├── dynamic.json └── static.json ├── img ├── dynamic_azimuth_phases.jpg ├── location.jpg └── locator_settings.jpg └── src └── aoa_demo.py /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | #
Navigine Open Source Code of Conduct
2 | 3 | This code of conduct provides guidance on participation in Navigine-managed open source communities and denotes the process for reporting unacceptable behavior. We are committed to providing a welcoming and inspiring community for all. People violating this code of conduct may be banned from the community. 4 | 5 | ## Our Standards 6 | 7 | Examples of behavior that contributes to a positive environment for our community include: 8 | - Demonstrating empathy and kindness toward other people 9 | - Being respectful of differing opinions, viewpoints, and experiences 10 | - Giving and gracefully accepting constructive feedback 11 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 12 | - Focusing on what is best not just for us as individuals, but for the overall community 13 | 14 | Examples of unacceptable behavior include: 15 | - The use of sexualized language or imagery, and sexual attention or advances of any kind 16 | - Trolling, insulting or derogatory comments, and personal or political attacks 17 | - Public or private harassment 18 | - Publishing others’ private information, such as a physical or email address, without their explicit permission 19 | - Other conduct which could reasonably be considered inappropriate in a professional setting 20 | - Advocating for or encouraging any of the above behaviors 21 | 22 | ## Enforcement Responsibilities 23 | 24 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. 25 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. 26 | 27 | ## Scope 28 | 29 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. 30 | 31 | ## Enforcement 32 | 33 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at info@navigine.com. All complaints will be reviewed and investigated promptly and fairly. 34 | All community leaders are obligated to respect the privacy and security of the reporter of any incident. 35 | 36 | ## Attribution 37 | 38 | This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. 39 | For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. 40 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | #Contributing to Navigine Routing Library
2 | 3 | The easiest way to help out is to submit bug reports and feature requests on our [issues](https://github.com/Navigine/Indoor-Routing-Library/issues) page. 4 | 5 | When submitting a bug report, please include: 6 | 7 | - The device and operating system version that produced the bug 8 | - The version or commit of Routing Library that produced the bug 9 | - Steps required to recreate the issue 10 | - What happened 11 | - What you expected to happen 12 | 13 | Thanks! 14 | 15 | ## Development 16 | 17 | To develop for the library, it is usually easiest to build and test your changes using either the Mac OS X or Ubuntu desktop targets. 18 | 19 | ## Code Style 20 | 21 | In general, code changes should follow the style of the surrounding code. 22 | 23 | When in doubt, you can use the provided clang-format style file for automatic styling. 24 | 25 | Install clang-format (available through brew or apt-get): 26 | ``` 27 | brew install clang-format 28 | ``` 29 | or 30 | ``` 31 | sudo apt-get install clang-format 32 | ``` 33 | 34 | Run clang-format with specified style (use -i to modify the contents of the specified file): 35 | ``` 36 | clang-format -i -style=file [file] 37 | ``` 38 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Navigine 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This demo project shows how using raw IQ samples obtained from the Minew Aoa Locator, you can get the azimuth and elevation angles at which the beacon is located. Using these angles, we also get the position of the beacon in XY coordinates (knowing the location of the locator in the same coordinate system). This project is based on our [AoA article](https://navigine.com/blog/using-angle-of-arrival-for-direction-finding-with-bluetooth/) in which we determined the azimuth angle using 2 adjacent elements of the linear antenna array of the locator. 2 | 3 | ## Getting started 4 | 5 | To start the project, you need to submit raw IQ samples to the algorithm input: 6 | 7 | ``` 8 | cd src/ 9 | cat ../data/static.json | python3 aoa_demo.py 10 | ``` 11 | 12 | At the output, we get the calculated angles and coordinates: 13 | 14 | ``` 15 | x_beacon:9.232542418733246, y_beacon:5.490652286174913 16 | azimuth_angle:43.0, elevation_angle:-17.0 17 | x_beacon:9.25956555622026, y_beacon:5.517626370851988 18 | azimuth_angle:42.0, elevation_angle:-19.0 19 | x_beacon:9.089259754493328, y_beacon:5.665581413837454 20 | azimuth_angle:46.0, elevation_angle:-15.0 21 | x_beacon:9.533823456356725, y_beacon:5.396157120924992 22 | azimuth_angle:46.0, elevation_angle:-14.0 23 | x_beacon:9.653014740958174, y_beacon:5.272770867998707 24 | azimuth_angle:44.0, elevation_angle:-16.0 25 | x_beacon:9.374720054161077, y_beacon:5.44537787620972 26 | azimuth_angle:45.0, elevation_angle:-16.0 27 | x_beacon:9.402449692489892, y_beacon:5.47492352570238 28 | azimuth_angle:45.0, elevation_angle:-16.0 29 | x_beacon:9.402449692489892, y_beacon:5.47492352570238 30 | azimuth_angle:42.0, elevation_angle:-18.0 31 | x_beacon:9.156849906593791, y_beacon:5.5825730485361875 32 | azimuth_angle:46.0, elevation_angle:-14.0 33 | x_beacon:9.653014740958174, y_beacon:5.272770867998707 34 | azimuth_angle:44.0, elevation_angle:-15.0 35 | x_beacon:9.475271358924696, y_beacon:5.333235601052133 36 | ... 37 | ``` 38 | 39 | The beacon was located relative to the locator as follows: 40 | 41 |