Last Updated on : 2024-06-19 02:36:24download
This topic describes how to debug the pairing functionality of the Wi-Fi HomeKit module by using the Module debugging assistant.
Three module models, namely TYWE3SE, CR3L, and CR3L-IPEX, can be used to develop Wi-Fi HomeKit products using the MCU SDK. The HomeKit
in the firmware name indicates it is intended for HomeKit modules.
Log in to the Tuya Developer Platform.
Choose the target product and click Develop.
In the third step of Hardware Development, view firmware information.
Prepare a USB to TTL converter, a HomeKit module that has been authorized and flashed with the correct firmware, and some jumper wires.
Wire connection:
Log in to the Tuya Developer Platform.
Choose the target product and click Develop.
In the third step of Hardware Development, find Download Documents, and download the Module Debugging Assistant.
.NET Framework must be 4.6.1
. Operating system requirements:
Double-click the installer and complete the installation.
On the Initial Configuration page, select a HomeKit product. Make sure to choose the product category that the current firmware supports. Otherwise, initialization will be stuck in responding to product information.
If you choose Module Self Processing for Working Mode, you need to set the pin number for the Tuya indicator, HomeKit indicator, and reset button respectively.
On the Init Service Configuration page, configure services and features.
0
and increment by 1
.On the Init Feature Value Configuration page, select a service, enter a service number, select a characteristic, enter the initial value, and click Add.
This step is optional. If you do not set an initial value, the device does not report the initial value of a feature.
Based on the service and feature, configure the feature value type and feature value. For more information about the valid values, see the Serial Communication Protocol. In the debugging stage, you can skip this step.
In the Operation section, click the Basic Functions tab. Click Reset to enable the device to enter the pairing mode for both Tuya’s module and HomeKit.
Connect to Tuya Cloud: Use the Smart Life app or OEM App to pair the device over Bluetooth.
On the Add Device page, search for devices or manually add the device.
If the device has been connected to HomeKit, you can tap Me > HomeKit Information to bind the device with the Tuya Cloud.
Connect to HomeKit: Use the Smart Life app or Apple’s Home App to pair the device in AP mode.
Use the Smart Life app to add a HomeKit device:
Use the Home app to add a HomeKit device:
Connection to Tuya Cloud and to HomeKit is separate. If a device is removed from the Smart Life app, it will not be removed from the Home app, and vice versa.
Control panel on the Smart Life app:
Control panel on the Home app:
Verify reporting DP status and sending DP commands.
Report DPs and characteristics: The device reports Tuya’s DP status and HomeKit’s characteristic values separately. Tuya’s DP status and HomeKit’s characteristic values are separated from each other.
Report Tuya’s DP:
Report HomeKit’s characteristics:
Send DPs and characteristics: Send a command to the device using the control panel on the Smart Life app or the Home app.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback