This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for WiFi site surveys (#619)
Fixes #605 Co-authored-by: Markus Tacker <[email protected]>
- Loading branch information
1 parent
3071cb3
commit 886e235
Showing
6 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ The web application offers the following features: | |
:caption: Subpages: | ||
|
||
CellGeolocation.rst | ||
WiFiGeolocation.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. _app-wifigeolocation: | ||
|
||
Wi-Fi geolocation | ||
################# | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 2 | ||
|
||
If Wi-Fi site survey geolocation (Ground Fix service) is implemented, the devices can be shown on the map based on the location of the Wi-Fi access points nearby them. | ||
|
||
Third-party location APIs | ||
************************* | ||
|
||
nRF Asset Tracker implements the following third-party location APIs: | ||
|
||
* nRF Cloud Location Services | ||
|
||
These APIs enable calculation of the rough location of a device as soon as it sends the information for the nearest Wi-Fi access points to the cloud. | ||
|
||
Follow the configuration guide in the respective implementation to enable nRF Cloud's Ground Fix API: | ||
|
||
* :ref:`AWS <aws-nrf-cloud-location-services>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"v": [ | ||
{ | ||
"mac": "40:01:7a:c9:10:22", | ||
"ssid": "TnGroup", | ||
"rssi": -65, | ||
"chan": 1 | ||
}, | ||
{ | ||
"mac": "96:15:44:ac:6c:87", | ||
"ssid": "Geotek", | ||
"rssi": -71, | ||
"chan": 1 | ||
}, | ||
{ | ||
"mac": "80:e0:1d:2a:92:f2", | ||
"ssid": "TnGroup", | ||
"rssi": -70 | ||
}, | ||
{ | ||
"mac": "40:01:7a:c9:10:21", | ||
"ssid": "Telenor_Guest", | ||
"chan": 1 | ||
}, | ||
{ | ||
"mac": "40:01:7a:c9:10:27", | ||
"rssi": -65, | ||
"chan": 1 | ||
}, | ||
{ | ||
"mac": "80:e0:1d:2a:92:f1", | ||
"chan": 1 | ||
}, | ||
{ | ||
"mac": "80:e0:1d:2a:92:f5" | ||
} | ||
], | ||
"ts": 1670591331896 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://github.com/NordicSemiconductor/asset-tracker-cloud-docs/blob/saga/docs/cloud-protocol/wifi-site-survey.schema.json", | ||
"title": "Asset Tracker v2 Wi-Fi site survey request", | ||
"description": "Describes the format used by the device to publish Wi-Fi site surveys.", | ||
"type": "object", | ||
"properties": { | ||
"v": { | ||
"type": "array", | ||
"description": "The nearby Wi-Fi access points.", | ||
"minItems": 2, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"mac": { | ||
"type": "string", | ||
"description": "Access point MAC address. String comprised of 6 hexadecimal pairs, separated by colons or dashes", | ||
"pattern": "^([A-Fa-f0-9]{2}[:-]){5}[A-Fa-f0-9]{2}$", | ||
"examples": ["80:e0:1d:2a:92:f1"] | ||
}, | ||
"ssid": { | ||
"type": "string", | ||
"description": "Access point SSID.", | ||
"examples": ["Telenor_Guest"] | ||
}, | ||
"rssi": { | ||
"type": "integer", | ||
"description": "Received signal strength indicator is a measurement of how well your device can hear a signal from an access point measured in dBm", | ||
"minimum": -128, | ||
"maximum": 0, | ||
"examples": [-65] | ||
}, | ||
"chan": { | ||
"type": "integer", | ||
"description": "A Wi-Fi channel is to send and receive data.", | ||
"examples": [1] | ||
} | ||
}, | ||
"required": ["mac"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"ts": { | ||
"description": "Timestamp as Unix epoch with millisecond precision (UTC) when the neighboring cell measurement report was received", | ||
"type": "integer", | ||
"minimum": 1234567890123, | ||
"examples": [1584533788029] | ||
} | ||
}, | ||
"required": ["v", "ts"], | ||
"additionalProperties": false | ||
} |