Device Pairing

Last Updated on : 2024-01-19 09:27:32download

To pair a Matter device, scan its QR code with a compatible mobile app or manually enter the pairing code. After the mobile app connects to the device over Bluetooth Low Energy (LE), it retrieves the device’s certificate to verify the Matter certification. Once the device is verified, the mobile app will configure it with Thread and Matter information.

After the device is connected to the OpenThread Border Router (OTBR) on the gateway through the Thread network, the mobile app requests the basic information from the device over a secure channel. This information is then used to register the device with the cloud, which provides a response.

Pairing process

AppDeviceGatewayCloudStart pairing.Bluetoothadvertising.Scan the QR code or enter the pairing code.Establish a secure channel over Bluetooth.Get the device certificate.Verify if the device is Matter-certified.Configure the network information.Establish a secure channel over Thread.Get the device information.Register the device.Pairing succeeds.AppDeviceGatewayCloud

API description

For more information, see Matter functions.

Support and help

If you have any problems with TuyaOS development, you can post your questions in the Tuya Developer Forum.