2. Device Profiles
2.1 Introduction
Amazon Sidewalk creates a low-bandwidth wireless network with the help of Amazon Sidewalk Gateway devices including select Echo and Ring devices. Amazon Sidewalk has three main components: Endpoints, Gateways, and the Amazon Sidewalk Cloud. Gateway devices act as bridges and connect to Endpoints on one side and to the Amazon Sidewalk Cloud on the other, thus providing an end-to-end path. Endpoints, such as mailbox sensors, trackers, smoke detectors, and motion detectors, connect to the Gateways over wireless links. The Amazon Sidewalk Sub-GHz protocol is a proprietary protocol developed by Amazon that enables message exchange between Gateways and Endpoints over the Sub-GHz channel. The protocol offers two different modes of communication - SubG-CSS (asynchronous) and SubG-FSK (synchronous).
IoT applications are sensitive to the following parameters: range, data rate, reliability, power consumption, mobility, latency and reachability. The Amazon Sidewalk protocol offers IoT application developers the flexibility to configure an Amazon Sidewalk profile through power, mobility, latency, and reachability parameters according to their application needs. Sidewalk groups these settings into device profiles. A profile in the Amazon Sidewalk protocol context is a configuration in the protocol that lets developers choose the best fit power, mobility, latency, and reachability settings for their application. Profiles are applicable only to Endpoints.
The following examples show how power, mobility, reachability, and latency trade off:
- Mailbox Sensor: A mailbox sensor is a device that will notify the owner when mail arrives in their mailbox. The sensor sends the notification as an uplink message over Amazon Sidewalk to the application residing on the cloud. The mailbox sensor may send its health metric once every 24 hours. Almost all of the data exchanged for this use case originates from the sensor device and terminates at the application logic on the cloud. The use case does not have strict downlink (DL) constraints, as data from the application on the cloud to the application on the device is extremely rare. These devices are typically powered by AAA batteries and hence need to be extremely power-efficient.
- Car Tracker: A car tracker is a device that keeps the owner updated about the status of their car. Users are alerted if their car is bumped or a door is opened. Users will have the option to turn on live tracking through their application to get real-time updates about the vehicle’s location. Upon an alert of possible intrusion, a user may be able to activate the camera (if available) on the tracker to capture a picture or turn on video recording. While the device should be able to immediately send the uplink data upon an event, it should also be able to receive a downlink command in real time and perform any necessary action. These devices also need to be power-efficient.
- Delivery Truck Tracker: A delivery truck tracker is a device that keeps the owner updated about the whereabouts of the truck and the delivery points the truck has visited. Unlike a car tracker, it must report each delivery stop along the truck’s journey. The owner is alerted every time the truck stops at a delivery point. If necessary, the owner can turn on live tracking through their application to get real-time updates about the truck’s location. Like the car tracker, it needs immediate uplink and real-time downlink.
See more examples in the Appendix.
The following section describes in detail the profiles offered in the Amazon Sidewalk protocol for both synchronous (SubG-FSK) and asynchronous (SubG-CSS) modes of operation.
2.2 Device profile definitions
2.2.1 Asynchronous mode (SubG-CSS)
Asynchronous connection mode allows devices to connect to the network using the ALOHA channel access protocol. An Endpoint can transmit a frame at any time without synchronizing with a Gateway.
-
Device Profile A: An Endpoint operating in Profile A is characterized by limited reachability from the Amazon Sidewalk Cloud since it opens RX (receive) windows only after it has sent an uplink. This profile is best suited to devices that have strict power budget and sporadic uplink data requirements. Uplink is triggered when the application on the Endpoint wants to send data to the application hosted on the cloud. Following the uplink transmission, the Endpoint opens a configured number of RX windows separated by 5 s. These windows are receive opportunities for downlink data from the application logic on the cloud in response to the uplink. Attributes: limited downlink reachability, very low power consumption. Examples: mailbox sensor, water leak detector, smoke detector.

Figure 1: Device Profile A timing
-
Device Profile B: Unlike Profile A, this profile suits Endpoints that must be reachable for downlink at any time. These Endpoints are less constrained by power. The device opens an RX window every 5 s for possible downlink data from the application logic residing on the cloud. Endpoints operating in this profile perform a network sync procedure every 5 min to advertise their presence to the Amazon Sidewalk Cloud. Attributes: downlink reachable every 5 s, higher power consumption due to periodic RX wake-ups. Examples: car tracker, motion detector.

Figure 2: Device Profile B timing
2.2.2 Synchronous mode (SubG-FSK)
Endpoints working in synchronous connection mode must be synchronized with a Gateway before an uplink or downlink transmission is performed. Synchronization is achieved through the process of discovering Beacon frames sent by the Gateways.
-
Device Profile 1: This profile is best suited to moving Endpoints such as a delivery truck tracker or an elderly person tracker that keeps switching Gateways. This is the default profile of operation for a device operating in synchronous mode (SubG-FSK). The device automatically establishes an ad hoc mode of communication after discovering a Beacon from a nearby Gateway. In this Profile, there are a limited number of CS-UL (common slot uplink) and CS-DL (common slot downlink) slots defined in one Beacon interval (10.08 s), for uplink and downlink transmissions respectively. The Gateway assigns the CS-UL and CS-DL slots, and the Endpoint follows them. The device decodes every Beacon from the Gateway to keep track of the common slots for that Beacon interval. Because the Endpoint only wakes for its assigned slots, it can sleep for most of each Beacon interval. Attributes: high downlink latency, high uplink latency, low power consumption. Example: delivery truck tracker.

Figure 3: Device Profile 1 timing
-
Device Profile 2: This profile is suitable for Endpoints that have strict uplink and downlink latency requirements. Static Endpoints, which stay associated with one Gateway for long periods, should use this profile. In this profile, the Endpoint negotiates for DL and UL allocation from the Gateway based on the application needs, thus ensuring that latency requirements are met. Based on the negotiation with the Gateway, the Endpoint can operate at a higher power consumption with lower latency or lower power consumption with higher latency. The timing diagram below shows the RX latency configured to 5 slots (5 × 63 ms = 315 ms). The RX latency can be 1 slot (63 ms) or any multiple of 5 slots (315 ms) up to 80 slots (5040 ms). Attributes: suited to static Endpoints; Endpoint negotiation with the Gateway can ensure low power consumption. Examples: mailbox sensor, smoke detector, water leak sensor.

Figure 4: Device Profile 2 timing
2.2.3 Dynamic profile switching
- For asynchronous (SubG-CSS) profiles, the Amazon Sidewalk protocol allows dynamic profile switching between Profile A and Profile B.
- For synchronous (SubG-FSK) profiles, the Amazon Sidewalk protocol allows dynamic switching between Profile 1 and Profile 2.
Dynamic profile switching applies only after the Endpoint has joined the network (JOIN response received), and the change of profile will be persistent, that is, the switched profile remains after device reboot.
2.3 SID API
Call sid_option() with SID_OPTION_900MHZ_SET_DEVICE_PROFILE to change the device profile.
sid_error_t sid_option(struct sid_handle *handle, enum sid_option option,
void *data, size_t len);
The parameters are:
handleis the Sidewalk handle returned bysid_init().optionisSID_OPTION_900MHZ_SET_DEVICE_PROFILE.datais a pointer to astruct sid_device_profile.lenissizeof(struct sid_device_profile).
The fields of data->unicast_params are:
device_profile_idis the profile ID, of typesid_device_profile_id.rx_window_countis of typesid_rx_window_count.- For
SID_LINK3_PROFILE_A, set it to the number of RX windows to open after each uplink (1 to 60), or toSID_RX_WINDOW_CNT_ZERO(0) for no RX windows (uplink only). - For
SID_LINK3_PROFILE_B, it must beSID_RX_WINDOW_CNT_INFINITE(0). - For
SID_LINK2_PROFILE_1, it has no effect and can be 0.
- For
unicast_window_interval.async_rx_interval_ms(Asynchronous Mode, SubG-CSS) is the separation between RX windows. At the default data rate, the only accepted value is 5000 ms.unicast_window_interval.sync_rx_interval_ms(Synchronous Mode, SubG-FSK) is of typesid_link2_rx_window_separation_ms. Valid values are 63 ms, or any multiple of 315 ms up to 5040 ms. It does not apply toSID_LINK2_PROFILE_1.beacon_interval_unitspecifies the beacon interval unit for FSK communication. Valid values areSID_LINK2_BEACON_INTERVAL_UNIT_1,SID_LINK2_BEACON_INTERVAL_UNIT_2, andSID_LINK2_BEACON_INTERVAL_UNIT_3(Synchronous Mode, SubG-FSK only).l2_rx_duration_secis the receive duration ofSID_LINK2_PROFILE_2, in seconds (0 to 65535). 0 means infinite. The stack ignores it forSID_LINK2_PROFILE_1, which always uses an infinite duration.wakeup_typemust be set toSID_TX_AND_RX_WAKEUP.
2.3.1 Examples
Each example fills a struct sid_device_profile and passes it to sid_option() as described in Section 2.3.
-
Setting the Asynchronous (SubG-CSS) profile
PROFILE_Awithrx_window_countset to 5. Suitable for the mailbox sensor described above.struct sid_device_profile profile = { .unicast_params = { .device_profile_id = SID_LINK3_PROFILE_A, .rx_window_count = 5, .unicast_window_interval.async_rx_interval_ms = 5000, .wakeup_type = SID_TX_AND_RX_WAKEUP, }, }; sid_error_t ret = sid_option(handle, SID_OPTION_900MHZ_SET_DEVICE_PROFILE, &profile, sizeof(profile)); -
Setting the Asynchronous (SubG-CSS) profile
PROFILE_B, withrx_window_countset toSID_RX_WINDOW_CNT_INFINITE. Suitable for the car tracker and the delivery truck tracker described above.struct sid_device_profile profile = { .unicast_params = { .device_profile_id = SID_LINK3_PROFILE_B, .rx_window_count = SID_RX_WINDOW_CNT_INFINITE, /* always for Profile B */ .unicast_window_interval.async_rx_interval_ms = 5000, .wakeup_type = SID_TX_AND_RX_WAKEUP, }, }; sid_error_t ret = sid_option(handle, SID_OPTION_900MHZ_SET_DEVICE_PROFILE, &profile, sizeof(profile)); -
Setting the Synchronous (SubG-FSK) profile
PROFILE_1.sync_rx_interval_msandl2_rx_duration_secdo not apply to this profile. Suitable for the delivery truck tracker described above.struct sid_device_profile profile = { .unicast_params = { .device_profile_id = SID_LINK2_PROFILE_1, .rx_window_count = 0, .beacon_interval_unit = SID_LINK2_BEACON_INTERVAL_UNIT_1, /* default */ .l2_rx_duration_sec = 0, /* ignored for Profile 1 */ .wakeup_type = SID_TX_AND_RX_WAKEUP, }, }; sid_error_t ret = sid_option(handle, SID_OPTION_900MHZ_SET_DEVICE_PROFILE, &profile, sizeof(profile)); -
Setting the Synchronous (SubG-FSK) profile
PROFILE_2withsync_rx_interval_msset to 315 ms (5 slots × 63 ms). Suitable for the mailbox sensor described above.struct sid_device_profile profile = { .unicast_params = { .device_profile_id = SID_LINK2_PROFILE_2, .rx_window_count = 0, .unicast_window_interval.sync_rx_interval_ms = 315, .beacon_interval_unit = SID_LINK2_BEACON_INTERVAL_UNIT_1, /* configurable */ .l2_rx_duration_sec = 3600, /* example: 1 hour */ .wakeup_type = SID_TX_AND_RX_WAKEUP, }, }; sid_error_t ret = sid_option(handle, SID_OPTION_900MHZ_SET_DEVICE_PROFILE, &profile, sizeof(profile));
References
Appendix
- Connected Smoke Detector: A smoke detector is a device that will signal an alarm upon detecting smoke. These devices are expected to have extremely low uplink (UL) latency - i.e. latency from the sensor to the cloud application upon detection of smoke. Under normal circumstances, the sensor may send its health metric once every 24 hours. The use case does not demand strict downlink (DL) constraints, as data from the application on the cloud to the application on the smoke detector is extremely rare. Like the mailbox sensor, these devices are battery-powered and must be very power-efficient.
- Pet Tracker: A pet tracker is a device that keeps an owner updated about the location of their pet. The owner may define a geo-fence around their home where they do not expect real-time data about the whereabouts of their pet. If the pet wanders away from the geo-fence, then the owner is notified. Upon receiving the notification the owner has the option to request real-time tracking, which will be a downlink command to the Endpoint and needs to be serviced immediately. In this example, both uplink latency and downlink latency are the driving factors. Reducing latency increases power consumption.