A method for fast recovery of WiFi configuration parameters
By comparing and transmitting configuration parameters between the WiFi module and the electronic control board, the problem of low efficiency during WiFi module replacement is solved, enabling rapid recovery without manual operation and improving after-sales service efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHANGHONG MEILING CO LTD
- Filing Date
- 2023-05-15
- Publication Date
- 2026-05-08
AI Technical Summary
Existing technologies are inefficient and have poor service timeliness when replacing WiFi modules, which affects the user experience.
By comparing the configuration parameters received by the WiFi module from the control board with its own parameters, the configuration parameters can be quickly restored. This includes transmitting the configuration parameters to the control board via serial communication after they are written in the factory and backing them up. The backup status is checked after the device is powered on for the first time, and parameters are unified or updated as necessary.
It enables rapid recovery of WiFi module configuration parameters without manual operation, improving after-sales service efficiency and user experience.
Smart Images

Figure CN116545839B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of wireless communication technology, and in particular relates to a method for quickly restoring WiFi configuration parameters. This method enables the rapid writing of the configuration parameters built into the original WiFi module without manual operation after replacing the WiFi module. Background Technology
[0002] With the development of smart technology and the increasing demand for intelligent home appliances, more and more home appliances are integrating WiFi modules to achieve remote control and more intelligent scenarios. However, due to the different cloud platforms (including e-commerce clouds and manufacturer-owned clouds) that WiFi modules connect to, and the different encryption requirements of different cloud platforms for communication modules, even devices of the same type but with different serial numbers may use different keys. This leads to significant differences in the firmware built into WiFi modules, resulting in an increased quantity of materials for the same module. On the one hand, this brings difficulties in material management; on the other hand, it puts pressure on the production and after-sales service of home appliances to distinguish WiFi modules, easily causing the risk of incorrect module installation. The usual solution to the above problems is:
[0003] Manufacturers develop universal WiFi module firmware for WiFi modules connected to the same cloud platform. On the production line, the WiFi modules are connected to the host computer software to establish communication and send different configuration parameters for WiFi modules connected to different cloud platforms and different devices. When a WiFi module of a sold home appliance malfunctions and needs to be replaced, the after-sales personnel usually initiate an application, the technicians assist in writing the WiFi configuration parameters, and then mail it to the after-sales personnel for replacement.
[0004] While this solution achieves standardization of WiFi module materials, it results in low efficiency, poor service timeliness, and negative impact on product user experience when replacing WiFi modules in the after-sales process. Summary of the Invention
[0005] The purpose of this invention is to provide a method for quickly restoring WiFi configuration parameters. By comparing the configuration parameters A transmitted by the WiFi module to the control board with its own WiFi configuration parameters B, the WiFi module configuration parameters can be quickly restored from the backup area. This solves the problems of low efficiency, poor service timeliness, and impact on product user experience in the existing after-sales process of replacing WiFi modules.
[0006] To solve the above-mentioned technical problems, the present invention is achieved through the following technical solution:
[0007] This invention provides a method for quickly restoring WiFi configuration parameters, comprising the following steps:
[0008] Step S1: After the WiFi module successfully writes the configuration parameters at the factory, it immediately transmits the configuration parameters to the connected electronic control board via serial communication. The electronic control board receives the configuration parameters and writes them into its built-in memory.
[0009] Step S2: After the device is powered on for the first time, the WiFi module sends a query command to the control board to check whether the current WiFi configuration parameters have been backed up and stored on the control board.
[0010] Step S3: The electronic control board reads WiFi configuration parameter A from the built-in memory and replies to the WiFi module;
[0011] Step S4: The WiFi module receives the configuration parameter A transmitted by the electronic control board, reads its own WiFi configuration parameter B, and compares the configuration parameter B with A;
[0012] If configuration parameter B is not empty, proceed to step S5;
[0013] If configuration parameter B is empty, then proceed to step S6;
[0014] Step S5: If configuration parameter B is not empty, compare whether configuration parameter B is equal to A;
[0015] If configuration parameter B is equal to A, it indicates that the configuration parameters of the current WiFi module have been successfully backed up on the control board. No processing is required, and both the WiFi module and the control board will switch to the normal serial communication program.
[0016] If configuration parameter B is not equal to A, the configuration parameter stored in the WiFi module shall be used to unify the parameters. The WiFi module sends its own WiFi configuration parameter B to the control board. The control board receives the configuration parameter B, erases the old configuration parameter A that has been stored, and writes the new configuration parameter B. After the writing is successful, both the WiFi module and the control board switch to the normal serial communication program.
[0017] Step S6: If configuration parameter B is empty, it indicates that the current WiFi module is a newly replaced WiFi module. The WiFi module writes the configuration parameter A received from the electronic control board into the specified storage area and feeds back the writing result to the electronic control board. Both the WiFi module and the electronic control board switch to the normal serial communication program.
[0018] As a preferred technical solution, in step S1, the configuration parameters include product serial number, product type key, and device key.
[0019] The present invention has the following beneficial effects:
[0020] This invention achieves rapid restoration of WiFi module configuration parameters from the backup area by comparing the configuration parameters A transmitted by the WiFi module to the control board and reading its own WiFi configuration parameters B. After replacing the WiFi module, the original WiFi module's built-in configuration parameters can be quickly written without manual operation, reducing the difficulty of WiFi module replacement and repair, and improving the efficiency of after-sales service and the user's service experience.
[0021] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a method for quickly restoring WiFi configuration parameters according to the present invention. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] Please see Figure 1 As shown, the present invention provides a method for quickly restoring WiFi configuration parameters, comprising the following steps:
[0026] Step S1: After the WiFi module successfully writes the configuration parameters at the factory, it immediately transmits the configuration parameters to the connected electronic control board via serial communication. The electronic control board receives the configuration parameters and writes them into its built-in memory. The configuration parameters typically include: product serial number, product type key, device key, etc. The electronic control board is an existing component of the home appliance that performs dedicated functions.
[0027] Step S2: After the device is powered on for the first time, the WiFi module sends a query command to the control board to check whether the current WiFi configuration parameters have been backed up and stored on the control board.
[0028] Step S3: The electronic control board reads WiFi configuration parameter A from the built-in memory and replies to the WiFi module;
[0029] Step S4: The WiFi module receives the configuration parameter A transmitted by the electronic control board, reads its own WiFi configuration parameter B, and compares the configuration parameter B with A;
[0030] If configuration parameter B is not empty, proceed to step S5;
[0031] If configuration parameter B is empty, then proceed to step S6;
[0032] Step S5: If configuration parameter B is not empty, compare whether configuration parameter B is equal to A;
[0033] If configuration parameter B is equal to A, it indicates that the configuration parameters of the current WiFi module have been successfully backed up on the control board. No processing is required, and both the WiFi module and the control board will switch to the normal serial communication program.
[0034] If configuration parameter B is not equal to A, the configuration parameter stored in the WiFi module shall be used to unify the parameters. The WiFi module sends its own WiFi configuration parameter B to the control board. The control board receives the configuration parameter B, erases the old configuration parameter A that has been stored, and writes the new configuration parameter B. After the writing is successful, both the WiFi module and the control board switch to the normal serial communication program.
[0035] Step S6: If configuration parameter B is empty, it indicates that the current WiFi module is a newly replaced WiFi module. The WiFi module writes the configuration parameter A received from the electronic control board into the specified storage area and feeds back the writing result to the electronic control board. Both the WiFi module and the electronic control board switch to the normal serial communication program.
[0036] Example 1 (Configuration parameter B is not empty)
[0037] After the WiFi module successfully writes the configuration parameters at the factory, it immediately transmits the configuration parameters to the connected electronic control board via serial communication. The electronic control board receives the configuration parameters and writes them into its built-in memory. The configuration parameters are: product serial number "HCL8000100020230102001" and device key "1a2b3c4d5e6f7hfe36f5887a5c0146923db5cZ".
[0038] After the device is powered on for the first time, the WiFi module sends a query command to the control board to check whether the current WiFi configuration parameters have been backed up and stored on the control board.
[0039] The control board reads the WiFi configuration parameters A = {HCL8000100020230102001,1a2b3c4d5e6f7hfe36f5887a5c0146923db5cZ} from the built-in memory and replies to the WiFi module.
[0040] The WiFi module receives configuration parameter A transmitted by the control board and reads its own WiFi configuration parameter B = {HCL8000100020230102001,1a2b3c4d5e6f7hfe36f5887a5c0146923d b5cZ}. It then compares configuration parameter B with A to determine if they are equal. The comparison result is as follows:
[0041] If they are equal, it indicates that the configuration parameters of the current WiFi module have been successfully backed up on the control board. No processing is required, and both the WiFi module and the control board will switch to the normal serial communication program.
[0042] If they are not equal, the configuration parameters stored on the WiFi module shall be used to unify the parameters. The WiFi module sends its own WiFi configuration parameter B to the control board. The control board receives the configuration parameter B, erases the old configuration parameter A that has been stored, and writes the new configuration parameter B. After the writing is successful, both the WiFi module and the control board switch to the normal serial communication program.
[0043] Example 2 (Configuration parameter B is empty)
[0044] After the WiFi module successfully writes the configuration parameters at the factory, it immediately transmits the configuration parameters to the connected electronic control board via serial communication. The electronic control board receives the configuration parameters and writes them into its built-in memory. The configuration parameters are: product serial number "HCL8000100020230102002" and device key "9a8b7c6d5e4f3hfe36f5887a5c0146923db5cZ".
[0045] After the device is powered on for the first time (after replacing the WiFi module), the WiFi module sends a query command to the control board to check whether the current WiFi configuration parameters have been backed up and stored on the control board.
[0046] The electronic control board reads the WiFi configuration parameters A = {HCL8000100020230102002,9a8b7c6d5e4f3hfe36f5887a5c0146923db5cZ} from the built-in memory and replies to the WiFi module.
[0047] The WiFi module receives configuration parameter A transmitted by the electronic control board and reads its own WiFi configuration parameter B = {null}, comparing configuration parameter B with A:
[0048] If configuration parameter B is empty, it indicates that the current WiFi module is a newly replaced WiFi module. The WiFi module writes the configuration parameter A = {HCL8000100020230102002,9a8b7c6d5e4f3hfe36f5887a5c0146923db5cZ} received from the electronic control board into the specified storage area, and feeds back the writing result to the electronic control board. Both the WiFi module and the electronic control board switch to the normal serial communication program.
[0049] It is worth noting that the various units included in the above system embodiments are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0050] Furthermore, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware, and the corresponding program can be stored in a computer-readable storage medium.
[0051] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for quickly restoring WiFi configuration parameters, characterized in that, Includes the following steps: Step S1: After the WiFi module successfully writes the configuration parameters at the factory, it immediately transmits the configuration parameters to the connected electronic control board via serial communication. The electronic control board receives the configuration parameters and writes them into its built-in memory. The configuration parameters include the product serial number, product type key, and device key. Step S2: After the device is powered on for the first time, the WiFi module sends a query command to the control board to check whether the current WiFi configuration parameters have been backed up and stored on the control board. Step S3: The electronic control board reads WiFi configuration parameter A from the built-in memory and replies to the WiFi module; Step S4: The WiFi module receives the configuration parameter A transmitted by the electronic control board, reads its own WiFi configuration parameter B, and compares the configuration parameter B with A; If configuration parameter B is not empty, proceed to step S5; If configuration parameter B is empty, then proceed to step S6; Step S5: If configuration parameter B is not empty, compare whether configuration parameter B is equal to A; If configuration parameter B is equal to A, it indicates that the configuration parameters of the current WiFi module have been successfully backed up on the control board. No processing is required, and both the WiFi module and the control board will switch to the normal serial communication program. If configuration parameter B is not equal to A, the configuration parameter stored in the WiFi module shall be used to unify the parameters. The WiFi module sends its own WiFi configuration parameter B to the control board. The control board receives the configuration parameter B, erases the old configuration parameter A that has been stored, and writes the new configuration parameter B. After the writing is successful, both the WiFi module and the control board switch to the normal serial communication program. Step S6: If configuration parameter B is empty, it indicates that the current WiFi module is a newly replaced WiFi module. The WiFi module writes the configuration parameter A received from the electronic control board into the specified storage area and feeds back the writing result to the electronic control board. Both the WiFi module and the electronic control board switch to the normal serial communication program.
Citation Information
Patent Citations
Backup recovery device and wireless parameter backup recovery method
CN103106123A
Portable WiFi configuration parameter programming method and system
CN113961209A