Last Updated on : 2024-06-20 03:13:11download
To develop a product on the Tuya Developer Platform, you need to define product functions, select and customize device panels, develop embedded firmware, and perform a production test.
You can set functions for a product, including standard functions, custom functions, and advanced functions.
A product function is the abstraction of a feature that is provided by a smart device. You can use product functions to describe the features and parameters of smart devices. Based on the product functions, the Tuya Developer Platform generates things data models in the cloud to connect to and control the smart devices. This makes product functions and data interactions easy to understand.
Tuya Developer Platform allows you to define functions with six data types, including Boolean, value, enum, fault, string, and raw. For more information, see Data type.
DP ID | Data point (DP) | Identifier | Data transfer type | Data type | Property | Remarks |
---|---|---|---|---|---|---|
1 | Temperature | temp_current | Report only | Value |
|
The default unit is °C and the value is rounded to one decimal place. |
2 | Humidity | humidity_value | Report only | Value |
|
The default unit is % and the value is rounded to one decimal place. |
4 | Battery level | battery_percentage | Report only | Value |
|
To set low battery alerts, we recommend that you define the values from 0 to 19 as the low battery status and the values from 20 to 100 as the normal battery level. |
temp_current
-200
to 850
. Recommended values range from -100
to 600
. Therefore, the actual temperature from -10.0 to 60.0°C can be reported.humidity_value
0
to 1000
. Recommended values range from 0
to 1000
. Therefore, the actual humidity from RH0 to RH100.0% can be reported.battery_percentage
You can add custom functions that are not supported by standard functions. For more information, see Custom Functions.
Advanced functions support cloud timing and jumping page. For more information, see Advanced Function.
After the function definition step, you can configure a favorite app control panel for the product. A panel is a GUI-based program that runs on top of a mobile app to control smart products. For more information about panel configurations and development tutorials, see Design App UI and Panel Development.
Hardware development involves hardware design and embedded development. For certain sensor products, the no-code development solution is available. Therefore, you only need to set parameters in a configuration file before firmware can be generated without coding. In addition, you can implement custom development based on the MCU SDK or TuyaOS as needed.
No. | Design type |
---|---|
1 | Radio frequency (RF) design |
No. | Protocol type | Feature | Power supply type | Collect and report data | Supported module |
---|---|---|---|---|---|
1 | Wi-Fi and Bluetooth combo | Temperature, humidity, upper temperature limit, lower temperature limit, upper humidity limit, lower humidity limit, temperature alert, humidity alert, battery level, and tamper alarm | Dry or rechargeable batteries |
|
CBU module |
2 | Bluetooth Low Energy (LE) | Temperature, humidity, battery level, temperature and humidity cyclic reporting, temperature sensitivity, and humidity sensitivity | Dry or button batteries |
|
BTU module and BT5S module |
3 | Zigbee | Temperature, humidity, battery level, and tamper alarm | Dry or button batteries |
|
TYZS5 module, ZTU module, and ZT5 module |
4 | Bluetooth mesh | Temperature, humidity, battery level, and tamper alarm | Dry or button batteries |
|
BTU module and BT5S module |
5 | Narrowband Internet of Things (NB-IoT) | Temperature, humidity, temperature and humidity collection frequency, temperature and humidity reporting frequency, temperature sensitivity, humidity sensitivity, battery level, and tamper alarm | Dry or rechargeable batteries |
|
NE1 module |
No. | Protocol type | Feature | Power supply type | Collect and report data | Module | Hardware design reference | Datasheet |
---|---|---|---|---|---|---|---|
1 | Wi-Fi and Bluetooth combo | Temperature, humidity, and battery level | Dry or rechargeable batteries |
|
CBU module | ||
2 | Bluetooth LE | Temperature, humidity, and battery level | Dry or button batteries |
|
BTU module and BT5S module | ||
3 | Zigbee | Temperature, humidity, battery level, and tamper alarm | Dry or button batteries |
|
TYZS5 module, ZTU module, and ZT5 module | ||
4 | Bluetooth mesh | Temperature, humidity, and battery level | Dry or button batteries |
|
BTU module and BT5S module | ||
5 | NB-IoT | Temperature, humidity, and battery level | Dry or rechargeable batteries |
|
NE1 module |
Embedded programming is classified into MCU low-code development and TuyaOS development. In this step, you must implement device integration and business programming.
In this solution, you can set parameters in a configuration file to generate firmware without coding. For more information, see the instructions on the Tuya Developer Platform.
MCU low-code development enables products with built-in microcontrollers to connect to the cloud and become connected. Tuya provides one-stop IoT development services including the three essentials for typical IoT products, namely network modules, mobile apps, and cloud services. With Tuya’s MCU SDK, all-in-one mobile apps, and control panels, you can focus on application development simply, connect your product to the Tuya Developer Platform easily, and benefit from the cloud services quickly.
For more information, see MCU Low-Code Development.
Smart temperature and humidity sensors can be developed based on multiple protocols, including Zigbee, Wi-Fi and Bluetooth combo, and Bluetooth mesh. For more information, see:
Built on top of the RTOS, Linux, and Non-OS, TuyaOS is a distributed and platform-agnostic IoT operating system.
With a standard kernel at the core, TuyaOS is designed to tackle the heterogeneity of platforms, systems, and protocols in order to enable quick and reliable integration, interconnection, and interoperability.
The tiered and plug-and-play architecture design allows you to quickly tailor a solution based on your hardware resources hence reducing the cost of development with high cost performance. The efficient remote procedure call (RPC) mechanism and proprietary data point (DP) protocols make communication across protocols possible and easy.
Specifically, the following types of devices can be connected based on this solution:
In this step, the following settings are involved: firmware updates, voice capabilities, multilingual settings, device notifications, device pairing, smart scenes, quick toggle settings, product knowledge, and product manuals. Based on these settings, global cloud services are employed to promote the personalized user experience. You can update these settings and make them effective immediately without the need to deliver the devices again.
Particularly, multilingual settings, device pairing, voice capabilities, and smart scenes require precision and localized management based on the target user locations and the specific pairing methods and device features.
For more information, see:
Flash the device with the firmware and Tuya’s license to connect the device to the cloud. Tuya provides multiple firmware flashing and authorization methods for you to connect the following types of devices:
Before your product can be released on the Tuya Developer Platform, you must submit a product test report. To test the product, you can download and run use cases, use Tuya’s Cloud Test app, or subscribe to Tuya Test Service.
For certain product categories, you can download use cases from the Tuya Test Service page, run the use cases, and then submit test reports.
Tuya’s Cloud Test app is provided with multiple test modes for you to accelerate troubleshooting based on functional modules. This enables all-in-one tests for the device status and interaction link.
For more information, see Cloud Test App.
For more information, see Tuya Test Service.
In this step, you can release your project.
A product must pass certain certifications before it is permitted to be sold. By virtue of rich experience in smart product development, Tuya provides a set of product certification solutions. You can choose among these solutions to meet your product category and certification requirements. For more information, see Product Certificate.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback