2. Overview
A connected Amazon Sidewalk BLE endpoint sends data only after a gateway has opened a BLE connection to it. Connectionless BLE removes that step for small payloads. The endpoint encrypts a 6-byte application payload and advertises it continuously. Every Amazon Sidewalk gateway that receives the advertisement forwards it to the Amazon Sidewalk cloud. The cloud decrypts the payload, identifies the device and delivers the data to your application in AWS IoT Core for Amazon Sidewalk. If the device asks for it, the cloud also delivers a location estimate.
The endpoint remains registered, time-synchronized and reachable exactly as before. The SDK handles encryption, identifier rotation and time synchronization. The application configures the beacon with one sid_option call and changes the configuration whenever its data changes.
2.1 Why connectionless BLE
Connectionless BLE is for devices that have a few bytes to report and want to report them with the least effort on the device. It offers the following.
- No connection to wait for. The data is in the advertisement itself. Any Amazon Sidewalk gateway that receives the advertisement forwards it. The device does not request a connection and does not wait for a gateway to connect.
- Lower power. The device only advertises. There are no connection events and no data exchange. The radio activity is the advertising, plus an occasional time synchronization.
- Every gateway in range helps. A connected device talks to one gateway at a time. A beacon is received by every gateway in range. This gives more chances of delivery for a device that moves or that is at the edge of coverage.
- Location without positioning hardware. In Location Beacon mode, the Amazon Sidewalk cloud estimates the device location from the gateways that received the beacon. The device needs no GPS receiver for this estimate.
- One API call. The application sets the payload once and changes it when the data changes. The SDK encrypts the payload, rotates the identifiers and keeps the beacon on air.
Typical uses are asset and parcel trackers (position and status), small sensors (temperature, humidity, door or lid state), and status reports (battery level, alarm, counter) from devices that do not need a reply.
Connectionless BLE does not replace the connected path. The payload is a fixed 6 bytes, and delivery depends on a gateway receiving the advertisement. A device that needs larger uplinks, commands or firmware updates uses the connected BLE path for those, and can use the beacon for its routine reports (see Section 2.2).
2.2 Connected and connectionless data
| Connected BLE | Connectionless BLE | |
|---|---|---|
| Transport | BLE connection opened by a gateway | BLE advertisement, no connection |
| Payload size | Up to the Sidewalk message size for the link | 6 bytes, fixed (see Section 4.2) |
| Latency | Depends on when a gateway connects | Each advertisement that a gateway receives is a candidate for delivery |
| Gateways involved | One gateway at a time | Every gateway in range, which allows a location estimate |
| Downlink | Yes, the device is always connected to receive downlink | No downlink over the beacon. For a downlink, the device requests a connection with sid_ble_bcn_connection_request (see Section 4.5) |
| Power | Connection events and data exchange | Advertising only, plus occasional time synchronization |
| API | sid_put_msg | sid_option(SID_OPTION_SET_BLE_BEACON_CONFIG) |
A device can use both paths. For example, it can beacon its status continuously and still accept a connection for a firmware update or reception of the beacon.
2.3 How a beacon reaches your application
- The application sets the beacon configuration: the payload, the beacon mode and, optionally, an update period. The SDK encrypts the payload and places it, together with a sequence number and an authentication tag, into the advertisement.
- Each Amazon Sidewalk gateway in range receives the advertisement and forwards it to the Amazon Sidewalk cloud.
- The Amazon Sidewalk cloud identifies the device from its transmit identifier, verifies the authentication tag and decrypts the payload.
- The payload is delivered to your application as an uplink from the device through AWS IoT Core for Amazon Sidewalk. For a Location Beacon, the location estimate computed from the receiving gateways is delivered through the device location feature of AWS IoT Core for Amazon Sidewalk.
2.4 Beacon modes
The application chooses the beacon mode with the location field of the configuration (see Section 4.2).
| Mode | location | What the cloud delivers | Use it for |
|---|---|---|---|
| Normal | false (default) | The payload | Status or sensor data from a device whose position is known or not needed |
| Location Beacon | true | The payload and a location estimate | Devices that move, or devices whose position must be checked |
A Location Beacon may also be sent without a payload. The cloud then delivers only the location estimate. Each mode and payload combination has its own advertisement header (see Section 3.1).
2.5 Device lifecycle
A payload is advertised only by a device that is registered and has network time. The lifecycle is the same as for a connected device, with one more step at the end.
- Registration. Over the air with a mobile application, or on the factory line with Registration over Wire (ROW). A factory-registered device completes its field activation automatically the first time a gateway is in range.
- Time synchronization. The device requests network time from a gateway. The SDK does this by itself and repeats it when needed.
- Beaconing. The application sets the beacon configuration. The SDK advertises it until the application switches the beacon off or the stack is stopped.