Smart home devices make day-to-day tasks easier, whether we have a smart light, thermostat, security surveillance camera, or door lock.
At first, users must connect and configure their smart home devices with a mobile application. This initial setup is known as device onboarding.
Device onboarding has a few steps to activate the device, such as,
- Device identification
- Bluetooth Low Energy (BLE) pairing
- Wi-Fi provisioning
- Account registration
- Some initial configuration.
Also, smart home devices must be commissioned via Matter when they are connected to ecosystems like Apple Home, Google Home, or Alexa.
Is connecting a device to Wi-Fi enough to complete onboarding successfully?
Not necessarily. Device onboarding also includes device firmware, a mobile app, connectivity protocols, and cloud services to make them work together and make the product ready for daily use.
So, what makes smart home device onboarding so challenging?
Let us understand the key technical challenges of what kind of issues that manufacturers facing during smart home device onboarding and how they address them.
What Are the Key Challenges in Smart Home Device Onboarding?
Device onboarding is not simply connecting devices to the network.
Let’s understand some common device onboarding challenges faced by manufacturers and even from end users and how manufacturers approach solutions for each:
1. Device Discovery and Pairing Failures
Problem: Device initiation failure (device discovery) with the relevant connected mobile application.
How manufacturers can address it:
Right discovery technique selection: Devices need to be connected via BLE at first until network setup completes. Also, use DNS-SD records through mDNS when the device is connected to the network. When Matter networks are enabled, use advertisements like: _matterc._udp for commissionable devices, _matter._tcp for commissioned devices, and _meshcop._udp for Thread border routers.
Correct device information addition: At the time of device discovery, the correct information must be entered. What type of information do you mean? Examples of such information would be the product ID, vendor ID, type of device, the discriminator, and the commissioning mode alerts in the BLE advertisement. One can easily search for the correct device using such an app, as it would fetch and filter the device accordingly.
Advertising and scanning management: Manufacturers need to use short advertisement intervals at initiation and then increase them to save battery. Based on Android and iOS versions, this can eliminate irregular delays to prevent ad overlap and manage mobile scanning cycles.
Appropriate identification of each device: At the time of manufacturing, assign some unique discriminators and names to every product. Users can easily access the devices via the use of QR codes or unique pairing codes among various connected devices nearby.
Account for router limitations: Device discovery is a mandatory step to access such connected appliances. Certain options, such as guest network, access point isolation, and mDNS snooping, must not prevent devices in order for the router to function correctly. If the user is experiencing the same issue, they should use BLE or Wi-Fi with a strong connection and retry queries with backoff.
Real devices validation: Once device discovery is done, validation is required for Android and iOS versions with different BLE chipsets and routers with various multicast settings.
2. Wi-Fi Provisioning and Connectivity Management
Problem: Users may face challenge while connectivity with home network after discovery of device. Users sometimes face challenges when switching between Wi-Fi bands, such as switching from 2.4 GHz to 5 GHz.
How manufacturers can address it:
Secure credential sharing: Share only the SSID and password through an encrypted, authenticated means. Devices are of two types of protocol-based devices: if a device supports Matter, they manage this process by using the Network Commissioning cluster. For other devices, manage this process by using trusted BLE GATT or SoftAP.
Account for router configurations: Sometimes, many smart home devices only support 2.4 GHz Wi-Fi. So, users find difficulties if they switch to a 5.0 GHz network, which creates difficulties in user behaviors, such as unawareness of the correct SSID, inability to use congested channels (channels 1, 6, or 11), etc.
Support different security modes: Devices must be compatible with standards like WPA2-PSK, WPA3-SAE, mixed transition mode, and protected management frames (PMF) to avoid authentication issues.
Track each connection stage: Use a defined state machine (SCAN → AUTH → ASSOC → EAPOL/SAE → DHCP → DNS/CLOUD_REACHABLE) to determine if a failure occurred during authentication, IP assignment, or cloud connectivity.
Test across different networks: Validate the functionality of device provisioning via consumer routers, mesh network systems, various types of firmware, and a variety of Wi-Fi security methods.
3. Device Authentication and Secure Commissioning
Problem: The device fails during authentication and creates a problem during secure commissioning means trust establishment problem within the smart home ecosystem.
How manufacturers can address it:
Give every device a unique identity: Each device needs its own key pair and certification during the time of manufacturing. As we see, Matter devices use a Device Attestation Certificate (DAC), which is actually linked to the Product Attestation Intermediate (PAI) and to a Product Attestation Authority (PAA). Whereas other ecosystems utilize their own ecosystems (X.509 certificates, keys, etc.)
Establish secure commissioning: Utilization of a setup passcode to provide essential security with encrypted sessions by Matter’s PASE (SPAKE2+). Once this is established, the controller can verify the DAC chain, check certifications, and revocation status of the device against the Distributed Compliance Ledger (DCL). For the cloud connections, TLS 1.3 with certificate validation is utilized.
Protect operational keys: For the protection of each private key, there are some essential operational key pairs on the device, and certificate signing requests must be done. Once the device is commissioned, the CASE establishes the encrypted sessions between controllers and devices.
Secure keys at the hardware level: To secure the private key, it must be stored in a Secure Element, TPM, or TrustZone/TEE. This can be combined with secure boot, flash encryption, and locked production debug interfaces.
Prevent unauthorised access: The manufacturer can reject replayed packets by using nonces and messages. Here, rate-limiting is implemented when needed to limit the attempts; enable open commissioning only when required. The main thing is user must protect their device with explicit reset by threaten or unwanted control from unknown user to registered cloud devices.
4. Firmware and Protocol Stack Interoperability
Problem: If the firmware is not updated, communication between devices or the mobile app may get hampered.
How manufacturers can address it:
Integrate the right communication stack: Matter is currently being implemented across all smart home device integrations using Wi-Fi or Thread as an over-the-air protocol with optional use of Zigbee or Ethernet, depending on user product requirements. We should separate the protocol stack from the application firmware to ensure application logic is protected and that the protocol can remain stable.
Define the device model correctly: Regarding the device model, it should specify if the users are using Matter endpoints and provide the proper definition of the clusters, attributes, commands, and events for every single device type. A similar rule applies when using ZCL clusters for Zigbee devices.
Declare supported capabilities: Devices can quickly detect the controllers upon the proper setting of the FeatureMap, ClusterRevision, and attribute lists. Also, both the optional and mandatory clusters are easy to implement in popular controllers such as Apple Home, Google Home, Alexa, and SmartThings.
Test with target ecosystems: The commissioning validation, attribute reporting, and the control flow, on all platforms, will involve conformance testing (e.g., with CSA Test Harness), if required, in cases where the SDK changes.
Manage firmware states and recovery: Other states such as UNPROVISIONED, COMMISSIONING, OPERATIONAL, and FAULT/RECOVERY can be introduced. Also, such development will take care of multiple task handling, which involves BLE, Wi-Fi, and Thread with the help of event/situation loops and message queues, without the involvement of a reboot of the MCU (due to a watchdog reset).
5. Mobile Application and Device Integration
Problem: Setup completion issue in the application or incorrect device status displayed in the application.
How manufacturers can address it:
Use the right platform APIs: Users have two operating systems for connected devices: iOS and Android. For iOS, users can use CoreBluetooth and NetworkExtension. For Android the implementation of BLE scan filters, GATT callbacks and WifiNetworkSpecifier from the ConnectivityManager is being used. The platform used for handling MTU negotiation, message splitting and BLE timeouts.
Manage OS permissions: It is important to note that to run the application, users need to grant the appropriate Bluetooth and Wi-Fi permissions on Android, as well as the local network permission on iOS. These instructions can be referred to when user gets a prompt saying that certain permissions have been blocked or removed. In order to track if the steps have been completed or not, it is important to check each main setup step.
Keep the app and device in sync: When appropriate, use acknowledgements, notifications, indications, and status readbacks to verify the completion of important onboarding steps.
Make setup resumable: Store your onboarding checkpoint information, device identifier, and timeout data locally.
Simplify error messages: Users should not get BLE, GATT, Wi-Fi or Matter related error numbers, but these numbers need to be left in the developer logs for reproduction of the problems later.
Explore how an Android-based Matter controller brings Edge AI-powered voice processing and local device control together to enable responsive, cloud-independent smart home experiences.
Edge AI-Driven Matter Controller for Next-Generation Smart Homes
The smart home world is changing quickly. The...Read the Blog: Edge AI-Driven Matter Controller for Next-Generation Smart Homes - MosChip®
6. Firmware Updates and Configuration Management
Problem: Device commissioning can be affected by outdated firmware. Some functions might also be affected after setup.
How manufacturers can address it:
Verify every firmware image: Verify the firmware using ECDSA or RSA signature and also check its SHA-256 hash before booting.
Check device readiness: Before you start the process of updating, verify the firmware version, hardware revision, and the battery or power levels (minimum battery or power level).
Use automatic rollback: Deploy new firmware to an unused A/B partition using a bootloader, for example, MCUboot.
Maintain version compatibility: Ensure that firmware, apps and cloud services are backwards compatible.
Bringing the Challenges Together
Till now, we have seen various challenges requires its own engineering efforts to build and validate all pieces from device discovery and Wi-Fi provisioning to secure device commissioning for every product which requires much time to develop.
This is where manufacturers can deploy reusable common connectivity, device management, and security capabilities across products without doing them from scratch every time.
To enable this integrated approach, MosChip’s Integrated IoT and Connectivity suite from the DigitalSky GenAIoT accelerator suite comes into the picture.
How MosChip's Integrated IoT & Connectivity Suite Support Smart Home Device Onboarding?
To provide a seamless experience of connected devices, MosChip’s Integrated IoT and Connectivity Suite, which is a component of the DigitalSky GenAIoT accelerator, offers the same functionality using reusable engineering modules and APIs.
Let’s see how manufacturers benefit from this accelerator suite:
Secure device onboarding: Role-based access, device attestation, audit logs, and device identification are all automated by this accelerator suite.
Multiple protocol connectivity: BLE, Zigbee, Thread, Matter, and Modbus are just a few of the communication protocols that are supported to facilitate connectivity and integration.
Intelligent edge gateways: Provide robust connectivity during internet outages, local processing, and protocol bridging.
Device and firmware management: Provide rollback, staged firmware upgrades, remote configuration, and centralized device monitoring.
Telemetry and diagnostics: Helps teams find and fix problems remotely by providing device logs and health indicators.
Scalable cloud integration: Enables mass OTA administration, multi-site installations, and an open API interface with pre-existing cloud systems.
The suite follows a Plug → Customize → Deploy approach, so manufacturers can reuse and adapt these capabilities to their industry needs.
Wrap Up
Ultimately, a seamless smart home onboarding experience means not just connecting a device to a robust network. It requires assessing and examining each step carefully, from initial setup to device management to make it desired work.
By exploring MosChip’s DigitalSky GenAIoT accelerator suite’s Integrated IoT & Connectivity Suite, manufacturers can work on bringing these capabilities together to reduce repetitive tasks and build proper connected products that can be easily designed, deployed, managed, and scaled.
Read More:
To know more about MosChip’s capabilities, drop us a line, and our team will get back to you.