6. Appendix

6.1 Advertisement examples

Manufacturer-specific data of a Location Beacon with a 6-byte payload, as shown by a BLE scanner (company identifier first):

71 01 | 21 | 4B | 01 | 5A 3C 11 9E 02 | 1A 7F | C0 D1 E2 F3 | 8B 42 0C 55 F1 7D
  |      |    |    |    TX-UUID (5)      seq (2)  tag (4)       encrypted data (6)
  |      |    |    Frame Indicator: time-based identifier, payload present
  |      |    Device State: version 2, Device Mode 0101 (Location Beacon)
  |      Application ID 33
  company identifier 0x0171

The same payload in Normal mode differs in byte 12 and in the tag. The tag changes because the header bytes 11–13 are part of the authenticated data; the encrypted bytes stay the same.

71 01 | 21 | 41 | 01 | 5A 3C 11 9E 02 | 1A 7F | 3E 90 A7 12 | 8B 42 0C 55 F1 7D
                 Device State: version 2, Device Mode 0000 (Normal)

A Location Beacon without payload carries the sequence number only:

71 01 | 21 | 4B | 00 | 5A 3C 11 9E 02 | 1A 7F

The transmit identifier, the tag and the encrypted bytes are examples. They change every 15 minutes. The sequence number changes only when the application changes the configuration or when the update period elapses. Byte 11 is 11 instead of 21 for a device that the cloud has configured to destination 17.

6.2 Troubleshooting

Symptom Likely cause Resolution
No beacon data in the advertisement; Application ID 0x03 The device is requesting network time Wait for a gateway. Check time_sync_status in the status callback.
Application ID 0x06, Device Mode 0110 Factory-registered device waiting for field activation Bring an Amazon Sidewalk gateway in range.
Application ID 0x06, Device Mode 0010 The application holds a connection request Clear the request with sid_ble_bcn_connection_request(handle, false).
Application ID 0x04 The device is not registered Register with the mobile application or with sid-mfg-tool.
sid_option returns SID_ERROR_INVALID_STATE A payload was set before time synchronization Set it when time_sync_status is SID_STATUS_TIME_SYNCED, and again after every sid_start.
sid_option returns SID_ERROR_INVALID_ARGS Period longer than 7200 s, or wrong length argument Check the fields against Section 4.2; pass sizeof(struct sid_ble_beacon_config).
sid_option returns SID_ERROR_NOSUPPORT BLE not in link_mask, or the SDK libraries were built without beacon data Add SID_LINK_TYPE_1 to link_mask, or use an SDK 2.0.0 or later package built with beacon data.
The payload changed, but no uplink arrives The new configuration is identical to the previous one; or the device has no gateway in range Check that the sequence number in the advertisement changed; check gateway coverage.
Uplinks stop although the device keeps advertising The configuration has not changed and no update period is set This is the expected behavior. Change the payload, or set seq_update_period_s (Section 4.2).
Uplinks arrive, but no location estimate The beacon is in Normal mode (byte 12 is 0x41) Set location = true if the location is needed.
Beacon data disappears from the advertisement after sid_stop/sid_start Stopping the link clears the configuration in the SDK Set the configuration again after the next time synchronization.
sid_option reports success, but the advertisement does not change The device is advertising a time request, a connection request or field activation Wait until the device advertises in Normal mode (Section 4.4). The configuration is kept.