Burning method for single-category wifi universal firmware butted with Internet of Things platform
By using the burning method of a single category of WiFi universal firmware in IoT devices and using UDP messages to save configuration information, it solves the development cost and maintenance problems of multiple products in IoT devices, and achieves efficient adaptation of multiple products and simplified production. process.
Patent Information
- Application Number
- CN202410899597.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
AI Technical Summary
In IoT devices, each product needs to develop a separate wifi firmware, which leads to increased development costs and release cycles. Moreover, multiple wifi firmwares are difficult to manage and maintain, and it is easy for device models and firmware to mismatch.
Use the burning method of a single category of WiFi universal firmware, develop universal firmware by obtaining the SDK of the Internet of Things platform, and use UDP messages to receive and save configuration information in production test mode. After restarting, load the configuration information in user mode and support connection IoT platform, OTA upgrade and cloud control.
It realizes batch adaptation of multi-product development, reduces development costs and launch cycles, simplifies the production and maintenance process, and improves development efficiency.
Smart Images

Figure CN118869740A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method for burning single-category WiFi universal firmware connected to an Internet of Things platform. Background Art
[0002] In recent years, as the demand for IoT devices increases, more and more companies have established their own IoT platforms. Connecting their products to the corresponding platforms can not only broaden the sales channels of products, but also increase the popularity of products. However, if each product develops a corresponding wifi firmware separately, the development cost and product launch cycle will increase significantly. At the same time, if there are too many wifi firmwares, it will be detrimental to product production and maintenance, and it is easy for the wifi firmware used to not match the device model produced. Summary of the invention
[0003] The purpose of the present invention is to provide a method for burning a single category wifi universal firmware for connecting to an Internet of Things platform in order to solve the above problems. After the wifi module of the present invention burns the wifi universal firmware, the product information, key, object model and other data required by the Internet of Things platform are saved to a storage medium that does not disappear when the power is off by receiving UDP messages in the production test mode, and then enter the user mode after restarting. After entering the user mode, by loading the configuration information in the medium that does not disappear when the power is off, the wifi device not only supports connecting to the Internet of Things platform for network configuration, reset, and OTA upgrade, but also supports device reporting and cloud control and query command processing.
[0004] The present invention achieves the above-mentioned purpose through the following technical solutions:
[0005] A method for burning a single category wifi universal firmware connected to an Internet of Things platform comprises the following steps:
[0006] Step 1: Determine the IoT platform to be connected and the categories and functions of the products to be developed, create the products to be developed on the confirmed IoT platform, obtain product configuration information, and generate configuration files;
[0007] Step 2: Get the Wi-Fi SDK from the determined IoT platform and develop Wi-Fi universal firmware based on this SDK.
[0008] Step 3, the wifi module burns the wifi universal firmware, powers on, runs the test mode, and then connects to the specified wireless network, waiting to receive the UDP packet containing the configuration information;
[0009] Step 4, enter the configuration file in the UDP packet sending tool on the PC, and connect the PC and the wifi module to the same router;
[0010] Step 5, the UDP packet sending tool sends the configuration information required by the wifi module in the production test mode to the wifi module through a UDP message;
[0011] Step 6: The wifi module parses the UDP message, obtains the configuration information and saves it to a medium that does not disappear when the power is off;
[0012] Step 7: Restart the Wi-Fi module, exit the production test mode and run in user mode. Load the configuration information from the medium that does not disappear after power failure. This configuration information is used in network configuration, OTA upgrade, device control and reporting.
[0013] A further solution is that in step 1, the IoT platform refers to a platform that provides capabilities such as device access, device management, data security communication, message subscription, message forwarding and data services (storage, analysis, filtering, parsing, integration, etc.), supports massive device connection and data collection on the cloud, and provides a cloud API to achieve remote control.
[0014] A further solution is that in step 1, the categories of products to be developed include air conditioner category, lamp category, tea bar machine category, and refrigerator category.
[0015] A further solution is that in step 2, the WiFi universal firmware includes processing interfaces for all functions of the communication protocol used by the current category.
[0016] A further solution is that in step 1, the configuration information used to distinguish the product includes product name, model, software version number, product function model, product key, and other information used for product network configuration, product verification, product control, product reporting, and product upgrade.
[0017] A further solution is that in step 2, the wifi universal firmware includes processing interfaces for all functions of this category, and can match all functions supported in the communication protocol of this category under the same communication protocol; the wifi universal firmware is adapted to the communication protocol of the MCU at the beginning of production, and uses MCU products of the same category with the same communication protocol.
[0018] A further solution is that in step 3, the method of writing the configuration information includes using UDP message transmission.
[0019] A further solution is that in step 5, after receiving the UDP message, the wifi module first parses and matches the configuration information, and after the match is correct, saves the configuration information and restarts.
[0020] A further solution is that in step 5, matching the configuration information includes using the feature bits in the SN to match the product, and then reading the specific configuration information. The feature bits in the SN of each product are different. By distinguishing the SN feature bits, the configuration information can be distinguished and thus the products can be distinguished.
[0021] The beneficial effects of the present invention are:
[0022] The present invention discloses a method for burning a single category of wifi universal firmware for connecting to an Internet of Things platform. After obtaining a device development SDK on the Internet of Things platform, only one wifi universal firmware needs to be developed for a single category of device, and then the burning method can be used to complete the development of multiple products.
[0023] The present invention is aimed at a single Internet of Things platform. Products in a single category that use the same communication protocol only need to develop a corresponding universal WiFi firmware without developing an MCU. This allows products to be adapted in batches, greatly reducing product company development costs and product launch cycles. It is also more convenient for production and maintenance of production lines, and has great practical value. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A flowchart of the multi-product development method for existing IoT platforms.
[0026] Figure 2 This is a flow chart of a multi-product development method for connecting the burning method of the present invention to an Internet of Things platform.
[0027] Figure 3 A schematic flow chart of the invention for developing a universal WiFi firmware for use with multiple products. DETAILED DESCRIPTION
[0028] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0029] Figure 1This paper describes the existing development methods of multiple products connected to the Internet of Things platform. When a customer issues a request to develop multiple products of the same category (such as air conditioners) on a certain Internet of Things platform, the developers need to carry out multiple developments and develop a wifi firmware for each product, which increases a lot of development costs and time. At the same time, customers need to archive and save these firmwares separately. This archiving process usually involves multiple departments and requires different personnel to review and approve. When the equipment is produced on the production line, the staff needs to burn the corresponding wifi firmware for the equipment according to the product. The above development and production process is cumbersome and repetitive. If it is carefully designed and streamlined, it will greatly improve the efficiency of product development.
[0030] In any embodiment, a method for burning a single category wifi universal firmware for connecting to an Internet of Things platform of the present invention comprises the following steps:
[0031] Step 1: Determine the categories and functions of the IoT platform to be connected and the products to be developed, create the products to be developed on the confirmed IoT platform, obtain product configuration information, and generate configuration files; the IoT platform refers to a platform that provides device access, device management, data security communication, message subscription, message forwarding and data services (storage, analysis, filtering, parsing, integration, etc.), supports massive device connection and data collection on the cloud, and provides a cloud API to achieve remote control.
[0032] The categories of products to be developed include air conditioners, lighting, tea bar machines, and refrigerators.
[0033] The configuration information used to distinguish products includes product name, model, software version number, product function model, product key, and other information used for product network configuration, product verification, product control, product reporting, and product upgrades.
[0034] Step 2: Obtain the wifi SDK from the determined IoT platform and develop wifi general firmware based on this SDK; the wifi general firmware includes processing interfaces for all functions of the communication protocol used by the current category.
[0035] The wifi universal firmware contains the processing interfaces for all functions of this category, and can match all functions supported by the communication protocol of this category under the same communication protocol; the wifi universal firmware is adapted to the communication protocol of the MCU at the beginning of production, and uses the same category MCU products with the same communication protocol.
[0036] Step 3, the wifi module burns the wifi universal firmware, powers on, runs the test mode, and then connects to the specified wireless network, waiting to receive a UDP packet containing configuration information; the method of writing the configuration information includes using UDP message transmission.
[0037] Step 4, enter the configuration file in the UDP packet sending tool on the PC, and connect the PC and the wifi module to the same router;
[0038] Step 5: The UDP packet sending tool sends the configuration information required by the wifi module in the production test mode to the wifi module through a UDP message; after receiving the UDP message, the wifi module first parses and matches the configuration information, and saves the configuration information and restarts after the match is correct.
[0039] Matching configuration information includes using the feature bits in the SN to match the product, and then reading specific configuration information. The feature bits in the SN of each product are different. By distinguishing the SN feature bits, the configuration information can be distinguished and thus the products can be distinguished.
[0040] Step 6: The wifi module parses the UDP message, obtains the configuration information and saves it to a medium that does not disappear when the power is off;
[0041] Step 7: Restart the Wi-Fi module, exit the production test mode and run in user mode. Load the configuration information from the medium that does not disappear after power failure. This configuration information is used in network configuration, OTA upgrade, device control and reporting.
[0042] Figure 2 The multi-product development method for connecting to the Internet of Things platform after combining the burning method of the present invention is depicted. It can be seen from the figure that after using this burning method, multiple products no longer need to be repeatedly developed. Only one wifi universal firmware is needed, and then different configuration information is burned into the wifi module through the burning method of the present invention to obtain different products such as A, B, C...
[0043] like Figure 3 As shown, the present invention describes a method for burning a single category WiFi universal firmware for connecting to an Internet of Things platform. When a customer proposes to connect n products of the same category to a certain Internet of Things platform, the developer only needs to develop one WiFi universal firmware. By configuring the configuration information sent by the UDP message in this burning method, different products can be distinguished.
[0044] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further explain various possible combinations. In addition, the various different embodiments of the present invention can also be combined arbitrarily, as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.
Claims
1. A method for burning a single category wifi universal firmware for an Internet of Things platform, characterized in that: The following steps are involved: Step 1: Determine the IoT platform to be connected and the categories and functions of the products to be developed, create the products to be developed on the confirmed IoT platform, obtain product configuration information, and generate configuration files; Step 2: Get the Wi-Fi SDK from the determined IoT platform and develop Wi-Fi universal firmware based on this SDK. Step 3, the wifi module burns the wifi universal firmware, powers on, runs the test mode, and then connects to the specified wireless network, waiting to receive the UDP packet containing the configuration information; Step 4, enter the configuration file in the UDP packet sending tool on the PC, and connect the PC and the wifi module to the same router; Step 5, the UDP packet sending tool sends the configuration information required by the wifi module in the production test mode to the wifi module through a UDP message; Step 6: The wifi module parses the UDP message, obtains the configuration information and saves it to a medium that does not disappear when the power is off; Step 7: Restart the Wi-Fi module, exit the production test mode and run in user mode. Load the configuration information from the medium that does not disappear after power failure. This configuration information is used in network configuration, OTA upgrade, device control and reporting.
2. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 1, characterized in that: In step 1, the IoT platform refers to a platform that provides device access, device management, data security communication, message subscription, message forwarding and data service capabilities, supports device connection and data collection on the cloud, and provides a cloud API to achieve remote control.
3. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 1, characterized in that: In step 1, the categories of products to be developed include air conditioner category, lamp category, tea bar machine category, and refrigerator category.
4. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 1, characterized in that: In step 2, the WiFi universal firmware includes processing interfaces for all functions of the communication protocol used by the current category.
5. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 1, characterized in that: In step 1, the configuration information used to distinguish products includes product name, model, software version number, product function model, product key, and other information used for product network configuration, product verification, product control, product reporting, and product upgrade.
6. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 1, characterized in that: In step 2, the wifi universal firmware includes processing interfaces for all functions of this category, and can match all functions supported in the communication protocol of this category under the same communication protocol; the wifi universal firmware is adapted to the communication protocol of the MCU at the beginning of production, and uses MCU products of the same category with the same communication protocol.
7. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 1, characterized in that: In step 3, the configuration information is written in a manner including using UDP message transmission.
8. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 1, characterized in that: In step 5, after receiving the UDP message, the wifi module first parses and matches the configuration information, and saves the configuration information and restarts after the match is correct.
9. A method for burning a single category wifi universal firmware for docking an Internet of Things platform as claimed in claim 8, characterized in that: In step 5, matching the configuration information includes using the feature bits in the SN to match the product, and then reading the specific configuration information. The feature bits in the SN of each product are different. By distinguishing the SN feature bits, the configuration information can be distinguished, thereby distinguishing the products.
