CN-116545839-B - WiFi configuration parameter quick recovery method
Abstract
The invention discloses a method for quickly recovering WiFi configuration parameters, and relates to the technical field of wireless communication. The method comprises the following steps that after equipment is electrified for the first time, an electric control board reads WiFi configuration parameters A from a built-in memory and replies to a WiFi module, the WiFi module receives the configuration parameters A and reads self WiFi configuration parameters B, the configuration parameters B and A are compared, when the configuration parameters B and A are unequal, parameters are unified based on the configuration parameters stored at the WiFi module end, the WiFi module sends the self WiFi configuration parameters B to the electric control board, the electric control board receives the configuration parameters B, the stored old configuration parameters A are erased, and new configuration parameters B are written. According to the method and the device, the WiFi module receives the configuration parameters A transmitted by the electric control board and reads the WiFi configuration parameters B of the WiFi module, so that the WiFi module configuration parameters can be quickly recovered from the backup area, the difficulty in replacing and maintaining the WiFi module is reduced, and the after-sale service efficiency of the product and the service experience of a user are improved.
Inventors
- QIAN CUNFA
Assignees
- 合肥美菱物联科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20230515
Claims (1)
- 1. The method for quickly recovering the WiFi configuration parameters is characterized by comprising the following steps of: Step S1, after configuration parameters are successfully written in a factory, the WiFi module immediately transmits the configuration parameters to an electric control board connected with the WiFi module in a serial port communication mode, the electric control board receives the configuration parameters and writes the configuration parameters into a built-in memory, wherein the configuration parameters comprise a product serial number, a product type key and a device key; Step S2, after the equipment is electrified for the first time, the WiFi module sends a query instruction to the electric control board to query whether the current WiFi configuration parameters are backed up and stored in the electric control board; step S3, the electric control board reads the WiFi configuration parameter A from the built-in memory and replies to the WiFi module; Step S4, the WiFi module receives the configuration parameters A transmitted by the electric control board, reads the WiFi configuration parameters B of the WiFi module and compares the configuration parameters B with the configuration parameters A; If the configuration parameter B is not null, executing the step S5; If the configuration parameter B is empty, executing the step S6; S5, if the configuration parameter B is not null, comparing whether the configuration parameter B is equal to the configuration parameter A; If the configuration parameters B and A are equal, the configuration parameters of the current WiFi module are successfully backed up on the electric control board, no processing is needed, and the WiFi module and the electric control board are transferred to a normal serial port communication program; If the configuration parameters B and A are unequal, the parameters are unified based on the configuration parameters stored by the WiFi module end, the WiFi module sends the WiFi configuration parameters B to the electric control board, the electric control board receives the configuration parameters B, erases the stored old configuration parameters A, writes the new configuration parameters B, and after the writing is successful, the WiFi module and the electric control board are both transferred to a normal serial port communication program; and S6, the configuration parameters B are empty, which indicates that the current WiFi module is a newly replaced WiFi module, the WiFi module writes the configuration parameters A received from the electric control board in the appointed storage area, the writing result is fed back to the electric control board, and the WiFi module and the electric control board are both transferred to a normal serial port communication program.
Description
WiFi configuration parameter quick recovery method Technical Field The invention belongs to the technical field of wireless communication, and particularly relates to a method for quickly recovering WiFi configuration parameters, which can quickly write the configuration parameters built in an original WiFi module without manual operation after replacing the WiFi module. Background Along with the development of intelligent technology and the promotion of people to intelligent demands of household appliances, more and more household appliances realize remote control and more intelligent scenes through integrating WiFi modules, but because cloud platforms (including electricity Shang Yun, cloud owned by factories and the like) connected with the WiFi modules and different cloud platforms have different encryption requirements on communication modules, even keys written by equipment with the same cloud platform, the same type and different serial numbers are different, the firmware built in the WiFi modules has larger difference, and the quantity of materials corresponding to the same module is increased. On one hand, the method brings difficulty in material management, and on the other hand, the method brings pressure on how the WiFi modules are distinguished for the production and after-sale of the household appliances, so that the risk of module misplacement is easily caused. For the above-mentioned existing problems, a general solution is: The manufacturer develops generalized WiFi module firmware aiming at WiFi modules connected with the same cloud platform, the WiFi modules are connected with upper computer software on a production line, communication is established, different configuration parameters for connecting different cloud platforms and different equipment WiFi modules are sent, when sold household appliances have faults and a new WiFi module needs to be replaced, after-sale personnel generally initiate application, technicians assist in writing the WiFi configuration parameters, and the WiFi configuration parameters are mailed to after-sale personnel for replacement. The solution, though realizing the unification of WiFi module material, has lower efficiency, poor service timeliness and influences the product use experience when changing a new WiFi module in the after-sale link. Disclosure of Invention The invention aims to provide a WiFi configuration parameter quick recovery method, which realizes quick recovery of WiFi module configuration parameters from a backup area by comparing the configuration parameters A transmitted by a WiFi module receiving electric control board with WiFi configuration parameters B read by the WiFi module, and solves the problems of low efficiency, poor service timeliness and influence on product use experience of the existing after-sale link for replacing the WiFi module. In order to solve the technical problems, the invention is realized by the following technical scheme: The invention relates to a method for quickly recovering WiFi configuration parameters, which comprises the following steps: step S1, after configuration parameters are successfully written in a factory, a WiFi module immediately transmits the configuration parameters to an electric control board connected with the WiFi module in a serial port communication mode, and the electric control board receives the configuration parameters and writes the configuration parameters into a built-in memory; Step S2, after the equipment is electrified for the first time, the WiFi module sends a query instruction to the electric control board to query whether the current WiFi configuration parameters are backed up and stored in the electric control board; step S3, the electric control board reads the WiFi configuration parameter A from the built-in memory and replies to the WiFi module; Step S4, the WiFi module receives the configuration parameters A transmitted by the electric control board, reads the WiFi configuration parameters B of the WiFi module and compares the configuration parameters B with the configuration parameters A; If the configuration parameter B is not null, executing the step S5; If the configuration parameter B is empty, executing the step S6; S5, if the configuration parameter B is not null, comparing whether the configuration parameter B is equal to the configuration parameter A; If the configuration parameters B and A are equal, the configuration parameters of the current WiFi module are successfully backed up on the electric control board, no processing is needed, and the WiFi module and the electric control board are transferred to a normal serial port communication program; If the configuration parameters B and A are unequal, the parameters are unified based on the configuration parameters stored by the WiFi module end, the WiFi module sends the WiFi configuration parameters B to the electric control board, the electric control board receives the configuration parameters B, erases th