1. Overview
1.1 Introduction
The Amazon Sidewalk Location Library lets a device request its location through Amazon Sidewalk. It provides one API for several location methods. The library can choose the method automatically, based on the device’s hardware and its active links, or the application can choose the method for each request.
The device sends a location request or a scan, and Amazon Sidewalk resolves the position in the cloud. The position is delivered to the device’s location destination in AWS IoT Core for Amazon Sidewalk. It is not returned to the device. See AWS IoT Core Device Location.
The Location Library is available in Amazon Sidewalk SDK v1.19 and later. LoRa multilateration (L5) requires SDK v2.0 or later.
1.2 Location Levels
Each location method is a location level (enum sid_location_effort_mode). The level number identifies the method. It is not a ranking of power cost.
| Level | Method | Link | Device hardware |
|---|---|---|---|
| L1 | BLE gateway location | BLE | None |
| L3 | Wi-Fi scan | BLE or LoRa | Wi-Fi scanning, for example LR1110 |
| L4 | GNSS scan | BLE or LoRa | GNSS receiver, for example LR1110 |
| L5 | LoRa multilateration | LoRa (SubG-CSS, Link Type 3) | None |
L1 and L5 send one message and perform no scan. L3 and L4 run a scan before sending. A GNSS scan takes longer and uses more power than a Wi-Fi scan.
1.2.1 L1: BLE Gateway Location
The device sends a location request over its BLE connection, and Amazon Sidewalk locates the device at the position of the Sidewalk Gateway it is connected to. Requires a BLE connection to a Sidewalk Gateway that allows location sharing.
1.2.2 L3: Wi-Fi Scan
The device scans for nearby Wi-Fi access points (APs) and sends the APs it found. Amazon Sidewalk resolves the position from them. A scan that finds no APs is not sent. Requires the Wi-Fi PAL.
1.2.3 L4: GNSS Scan
The device captures satellite signals and sends the scan. Amazon Sidewalk resolves the position from it. At least 4 satellite vehicles (SVs) must be found for the scan to be sent. Requires the GNSS PAL.
1.2.4 L5: LoRa Multilateration
The device sends one location request over LoRa. Amazon Sidewalk estimates the position from the Sidewalk Gateways that hear it. Requires the LoRa link to be synced with the network. A position is produced only if enough gateways hear the request, so a successful send does not guarantee a position.
1.3 Level Selection
With managed effort, the library tries L1, then L3, then L4, up to the configured maximum level. L5 is used only when the application requests it. See 2.1.2.4 Managed Effort Mode.
A device can also request a location with a regular uplink. See 2.7 Requesting Location with sid_put_msg().
1.4 Architecture
The application uses one API for every level. Wi-Fi (L3) and GNSS (L4) also need their Platform Abstraction Layers (PALs). See 2.5 Platform Abstraction Layers.