How to build smart air conditioners without development?

MCU docking solution is currently one of the most commonly used solutions for home appliance products docking with Tuya platform. It is mainly used to realize intelligentization of air-conditioning products with MCU master control, and it can be connected directly to the serial port protocol of Tuya module to realize networking. Customers only need to pay attention to the function research and development of the product itself. The networked intelligent part uses the public version or the panel workbench. The specific communication schematic diagram of the MCU solution is as follows:
Insert picture description here

System introduction
1. Tuya networking module: realize product distribution network, use serial communication to connect App and cloud, realize product instruction upload and issuance.

IoT module provides a variety of module options, supporting different requirements such as patch type and in-line type; has achieved cross-chip platform and cross-communication platform capabilities;
IoT adapter board module, provides a variety of adapter board module options, Support 3.3V, 5V, 12V and other different voltage level requirements; Plug and Play plug-and-play USB serial port adapter board docking method has been realized;
2. Tuya Cloud: a globally deployed IoT platform that connects all devices and apps , Carry out data precipitation, realize the intercommunication of smart devices, safe, stable and fast.

3. App unit: Provide various forms of App to realize remote control of equipment.

Public version App: Free public version App, ready to use, rich in scenarios, universal, suitable for quick product docking;
OEM App: Based on the official template, through simple UI and personalized configuration one-click to generate independent App of own brand, satisfy Lightly personalized customization requirements;
Customized App: App version based on the public version architecture that fully meets the personalized needs of the brand for in-depth development;
App SDK, suitable for users’ self-developed apps;
4. Voice unit: support domestic and foreign mainstream voice platforms Into.

Foreign countries support Amazon Alexa, Google Assistant, Yandex Alice;
domestic support major mainstream speaker platforms such as Baidu Xiaodu ;
Tuya provides domestic IoT-controlled Wi-Fi online voice modules with built-in "Xiaozhi Butler" wake-up words and noise cancellation Algorithm to realize the voice portal capability of "Little Smart Manager Built-in" and the IoT control capability of Powered by Tuya;
5. Data and operation and maintenance management platform: Tuya provides all developers with a very rich data statistics platform to help manufacturers provide Better equipment experience optimization. With the help of Tuya's operating platform, when a consumer product has a problem, the product actively reports a fault code. After the platform analyzes, an alarm work order is automatically generated, and the customer service staff can deal with it in the first time, making the after-sales service easier.

Data center functions and instructions
Operation center use guide
Program details
Core functions
Fast network distribution: support EZ and AP two network distribution methods, and Bluetooth fast connection;
real-time control: switch machine, temperature setting, mode adjustment, up and down, left and right wind , Self-cleaning, screen display switch, etc.;
real-time status: PM2.5 value, air quality display, indoor temperature display, Fahrenheit degree Celsius switching, etc.;
equipment configuration: distribution network information, shortcut switches, alarm settings, etc.;
fault alarm: machine failure Push notifications, alarms, notifications, etc.;
device sharing: support family management and device sharing among members;
group control: support the same type of devices to form groups for group control;
intelligent scene automation: support intelligent scene trigger conditions and perform tasks, Set the corresponding functions in the App intelligent scene;
OTA upgrade: support device and module upgrades such as prompt/silence;
multi-language management: support configuration management in multiple languages;
extended function
Cloud timing: Tuya Cloud provides cloud timing capabilities, No need for local timekeeping; support weekly cycle setting;
power consumption statistics: support power consumption statistics and display of power values ​​in the dimensions of year, month, and day;
sleep curve: set the air conditioning temperature and wind speed settings at different time points in the sleep period;
filter Network maintenance reminder: Detect the use time of the filter, and push the message when the filter replacement time is reached;
maintenance reminder: Cumulatively count the use time after the device is activated, and push the message when the maintenance time of the whole machine is reached; the
panel introduces the
air conditioner There are currently 3 types of control panels to choose from, the detailed UI is as follows:
Insert picture description here

After the customer selects the panel that matches the theme style, he can click Edit for secondary editing. For specific editing methods, please refer to: Panel DIY Operation Guide

Module selection
Hardware module For
MCU-type motherboards, WBR3, WBR3D and other IoT modules can be provided.

The brief information of WBR3 module is as follows:
Insert picture description here

Built-in low-power KM4 MCU, which can double as an application processor clocked at 100MHz
Operating voltage: 3V-3.6V
Peripherals: 9×GPIOs, 1×UART, 1×Log_Tx
Wi-Fi/BT connectivity 802.11 B/G/N20 channels [email protected](CH1-11 for US/CA, CH1-13 for EU/CN) support WPA/WPA2 security mode support Bluetooth 4.2 Low Energy 802.11b mode +20dBm output power support SmartConfig function (including Android and iOS device) The onboard PCB Onboard antenna has passed CE, FCC certification. Working temperature: -20℃ to 85℃. For
more module requirements, please contact the platform operation, the corresponding BD or the project manager for confirmation.

Applicable single products
Support the access of wall-mounted air conditioners, cabinet air conditioners, mobile air conditioners, window machines and other product solutions.

Click to learn about the IoT development platform to help you quickly complete product intelligence:

auth.tuya.com/register?from=http%3A%2F%2Fiot.tuya.com%2F&_source=e74d60a1928993e1892f7e5efbaa5467

The following is the detailed process of product creation:

Log in to the platform
On the Tuya IoT platform, register a developer account to turn on product intelligence.

In order to use log query, permission sharing and other related functions, please activate the enterprise version permissions.

IoT platform link: Tuya IoT.

Process overview
Step1-Product creation: select the corresponding product category on the IoT platform, define the product name and model, and create the product;

Step2-Product definition: Define the specific functions of the product on the platform, the core is the content and format of data transmission;

Step3-Panel configuration: According to product characteristics, select and configure personalized UI, the core is style, color, icon, etc.;

Step4-Hardware development: According to the requirements of the main control of the product, select the suitable Wi-Fi communication module and develop the MCU program;

Step5-App construction: Build an App with vendor characteristics, the core is LOGO, welcome page, device page, etc.;

Step6-Cloud configuration: configure multi-language App interface, apply for smart speakers, device OTA upgrade and other core operations;

Creation steps
Product creation
To create a product on the Tuya IoT platform, select [Home Appliance]-[Air Conditioner], and click "Create Product" to start creating the product.

Insert picture description here

Insert picture description here

Related instructions:

Product name: the default name of the actual device, which will be displayed on the device page in the App;
communication type: the way the hardware connects to Tuya Cloud, currently supports Wi-Fi, Wi-FI&Bluetooth dual mode, NB, etc.;
product definition
How to define DP
Tuya The platform abstracts the data transmitted between the device and the cloud into different types of DP. When defining the DP, it can be classified into different DP points according to the machine function for control and display.

In order to meet different development needs, Tuya platform provides standardized and custom functions:

Standard function: refers to the commonly used functions provided under this category. Tuya has standardized the common functions of air-conditioning products, and customers can directly select them as needed;
custom function: customize the additional function items of the air-conditioner to extend the equipment functions, if Your product functions are not included in the standard functions, you can add custom functions; after
panel configuration
product definition, you can choose different styles of panels (device control pages) as interactive pages for air conditioning products. On the IoT platform, Tuya provides recommendation panels, free configuration panels, and development and debugging panels for customers to choose from.

Recommended panel: A panel with a complete UI design. Customers can choose the corresponding style according to their theme preferences. At the same time, this type of panel graffiti provides a wealth of visual components, and users can perform secondary editing based on the selected main panel, modify the layout, and color And product logic rules, etc. Free configuration panel: Support free setting of page controls and styles for custom products. Debug panel: display machine-side data in the form of switch options for debugging in the development phase.

Insert picture description here

Hardware development
Module selection
air-conditioning electric control, the main board communicates with Tuya Cloud and App through the cloud module. After the product is newly built, select the applicable cloud module, and complete the development of the hardware circuit according to the interface circuit of the motherboard and the cloud module and the product requirements.
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Steps: module selection-firmware selection-firmware information configuration

Currently, WBR3 modules are commonly used in smart air-conditioning products. For detailed module descriptions, please refer to WBR3 specifications.

MCU program development The
cloud module is connected to the MCU through serial communication, and the MCU end realizes the interaction between device data and the cloud according to the function DP defined in the [Product Definition] step. The MCU development process mainly involves protocol analysis, data reporting and reception, etc.

There are two options for MCU development:

1) Serial protocol mode

According to the serial port protocol, MCU groups and unpacks by itself to realize data reporting and execution;

2) SDK method

The SDK interface file encapsulated by the IoT platform is transplanted, and the MCU directly calls related functions to implement data reporting and execution.

For development details, please refer to: Tuya Universal Wi-Fi SDK Instructions

Machine function debugging
During the verification and debugging stage of product development, in order to verify the technical solution or the function of the App panel, the debugging assistant and debugging panel provided by the IoT platform can be used to realize the data communication between the App side and the machine side and assist the development and debugging of the development process. .

1. Simulation Assistant Tuya Cloud Simulation Assistant, the PC and cloud module are connected through a serial port to simulate the MCU to send and receive DP data of the machine function, and the interactive effect can be experienced in real time on the App side.

It is suitable for verifying the defined product functions before MCU program development, and verifying the validity of data during debugging.

Insert picture description here

For details on using the simulation assistant, please refer to: Module simulation debugging assistant instructions

2. Panel debugging

After the equipment network function debugging is completed, the water heater can be configured through the App, and the water heater can be operated on the App to verify whether the instructions are sent and received, the App display, and the machine execution are correct.

At the same time, in the early stage of development, MCU can use the debugging panel function to independently debug whether the logic of a certain DP is correct.

The debugging panel only retains data receiving and sending operations, without interactive logic, which can be selected in the [interface configuration] link, which is suitable for debugging in the development process.

3. Log query

During the commissioning process, you will encounter the need to query the DP data receiving and sending process. The IoT platform provides a log query function, which can check the data communication between the air-conditioning MCU and the App, and is suitable for troubleshooting the operation of each terminal under abnormal conditions.
Insert picture description here

[Description] The log query function requires the "Enterprise Edition" account permissions to be opened and operated on the operating platform.

App construction
When the machine function development is completed, it will involve the construction of its own brand App. Tuya platform provides the function of online OEM App.

In the [App Workbench] of IoT, you can configure information such as App name, LOG, distribution network copy, product icon, etc., to generate an OEM App with manufacturer identification information and personalized.

Insert picture description here

For detailed operation, please refer to: App Construction Guide

Cloud configuration
Multi-language configuration
When the target market of the product is an overseas region, the language of the App interface needs to be adjusted to the language of the corresponding region.

In the "multi-language configuration" of the "extended functions" of the IoT platform, multi-language editing of the set function points can be performed, and the editing is completed. When the phone adjusts the system language, the App interface language is also adjusted accordingly.

Insert picture description here

OTA upgrade
In order to meet the machine function upgrade, the platform supports MCU OTA function.

In the "Firmware Upgrade" of the "Extended Functions" of the IoT platform, you can customize the upload of MCU firmware. The firmware version, upgrade information, etc. all support custom management.

Insert picture description here

Alarm settings
Tuya provides different levels of alarm notification functions. Customers can customize product alarm conditions and notify users or companies after triggering to monitor product status in real time to ensure healthy product operation.
Insert picture description here
Insert picture description here

For more cloud configuration functions, if you have any questions, please contact the platform operation, the corresponding BD and the project manager.

Guess you like

Origin blog.csdn.net/weixin_42614971/article/details/108660845