CN114666783A - Upgrading method, device, terminal and storage medium of wireless network module - Google Patents

Upgrading method, device, terminal and storage medium of wireless network module Download PDF

Info

Publication number
CN114666783A
CN114666783A CN202011541752.0A CN202011541752A CN114666783A CN 114666783 A CN114666783 A CN 114666783A CN 202011541752 A CN202011541752 A CN 202011541752A CN 114666783 A CN114666783 A CN 114666783A
Authority
CN
China
Prior art keywords
file
wireless network
upgrading
network module
firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011541752.0A
Other languages
Chinese (zh)
Inventor
袁文健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011541752.0A priority Critical patent/CN114666783A/en
Publication of CN114666783A publication Critical patent/CN114666783A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an upgrading method, a device, a terminal and a storage medium of a wireless network module, wherein the method comprises the following steps: and acquiring a firmware upgrading file according to the target router by connecting the target router. And then, verifying the firmware upgrading file, and taking the verified firmware upgrading file as a backup partition file. And then, verifying the validity of the backup partition file, and upgrading the wireless network module according to the backup partition file passing through the validity verification. According to the invention, the wireless network module needing to be upgraded does not need to be manually distributed, so that the problem of low upgrading efficiency caused by the fact that the wireless network module needs to be manually distributed with a large time cost when being upgraded in the prior art is solved.

Description

Upgrading method and device of wireless network module, terminal and storage medium
Technical Field
The present invention relates to the field of wireless network devices, and in particular, to a method, an apparatus, a terminal and a storage medium for upgrading a wireless network module.
Background
After wireless network module firmware (wifi module firmware) of internet of things equipment is produced in a factory, once a fault which is not found before the wireless network module firmware appears is found, a production accident occurs, the wireless network module firmware needs to be replaced in batches at this time, generally, each piece of equipment is matched with a network, and then the wireless network module is upgraded on line (OTA) after an upgrade package on a cloud upgrade file server is inquired through the wireless network module firmware in a unified manner. In the prior art, a large amount of time and cost are needed to manually distribute the network when the wireless network module is upgraded, so that the upgrading efficiency is low.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an upgrading method, apparatus, terminal and storage medium for a wireless network module, aiming at solving the problem in the prior art that the upgrading efficiency is low due to the fact that a large amount of time and cost are required to perform manual network distribution when the wireless network module is upgraded.
The technical scheme adopted by the invention for solving the problems is as follows:
in a first aspect, an embodiment of the present invention provides a method for upgrading a wireless network module, where the method includes:
connecting a target router, and acquiring a firmware upgrading file according to the target router;
verifying the firmware upgrading file, and taking the verified firmware upgrading file as a backup partition file;
and verifying the effectiveness of the backup partition file, and upgrading the wireless network module according to the backup partition file passing the effectiveness verification.
In one embodiment, the connecting the target router, and acquiring the firmware upgrade file according to the target router includes:
starting a wireless network module, and scanning according to the wireless network module and a preset service set identifier;
when a target router is scanned, establishing connection with the target router through the preset service set identification and a preset connection password;
and accessing a preset file server through the target router, and acquiring a firmware upgrading file stored on the preset file server.
In one embodiment, the connecting the target router and acquiring the firmware upgrade file according to the target router further includes:
when a target router is not scanned, acquiring the scanning time of the wireless network module, and comparing the scanning time with a preset time threshold;
when the scanning time length is less than or equal to the preset time length threshold value, scanning again through the wireless network module;
and when the scanning time length is greater than the preset time length threshold value, the wireless network module is restored to the initial distribution network state.
In one embodiment, the obtaining, by the target router, the firmware upgrade file stored on the preset file server includes:
accessing a preset local area network protocol address through the target router, and sending request information to a preset file server on the preset local area network protocol address;
and acquiring response information generated based on the request information, and acquiring a firmware upgrading file stored on the preset file server according to the response information.
In one embodiment, the verifying the firmware upgrade file, and taking the verified firmware upgrade file as a backup partition file includes:
acquiring a standard check code attached to the firmware upgrading file;
calculating the data of the firmware upgrading file through a preset checking algorithm, and taking a result obtained after calculation as a check code to be detected;
and matching the standard check code with the check code to be detected, judging that the firmware upgrading file passes the check when the standard check code is the same as the check code to be detected, and taking the firmware upgrading file as a backup partition file.
In one embodiment, the verifying the firmware upgrade file, and taking the verified firmware upgrade file as a backup partition file further includes:
and when the standard check code is different from the check code to be detected, judging that the firmware upgrading file does not pass the check, and restoring the wireless network module to the initial distribution network state.
In an embodiment, the verifying the validity of the backup partition file, and upgrading the wireless network module according to the backup partition file that passes the validity verification includes:
acquiring version information and standard version information of the backup partition file;
matching the standard version information with the version information of the backup partition file to realize validity verification of the backup partition file;
when the version information of the backup partition file is the same as the standard version information, judging that the backup partition file passes the validity verification, and copying the backup partition file to a main partition of a nonvolatile memory;
and replacing the original firmware file stored in the main partition of the nonvolatile memory according to the backup partition file so as to realize the upgrading of the wireless network module.
In one embodiment, the verifying the validity of the backup partition file, and replacing the original firmware file stored in the main partition with the backup partition file that passes the validity verification to upgrade the wireless network module further includes:
and when the version information of the backup partition file is different from the standard version information, judging that the backup partition file does not pass the validity verification, and restoring the wireless network module to an initial distribution network state.
In a second aspect, the present invention further provides an upgrading apparatus for a wireless network module, wherein the apparatus includes:
the acquisition module is used for connecting a target router and acquiring a firmware upgrading file according to the target router;
the verification module is used for verifying the firmware upgrading file and taking the verified firmware upgrading file as a backup partition file;
and the upgrading module is used for verifying the effectiveness of the backup partition file and upgrading the wireless network module according to the backup partition file passing the effectiveness verification.
In a third aspect, the present invention further provides a terminal, including: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to call the instructions in the storage medium, and consistently implement the steps of the method for upgrading the wireless network module described in any one of the above.
In a fourth aspect, the present invention further provides a computer-readable storage medium having a plurality of instructions stored thereon, where the instructions are adapted to be loaded and executed by a processor to implement any of the steps of the method for upgrading a wireless network module.
The invention has the beneficial effects that: according to the embodiment of the invention, the firmware upgrading file is obtained according to the target router by connecting the target router. And then, verifying the firmware upgrading file, and taking the verified firmware upgrading file as a backup partition file. And then, verifying the validity of the backup partition file, and upgrading the wireless network module according to the backup partition file passing the validity verification. According to the invention, the wireless network module needing to be upgraded does not need to be manually distributed, so that the problem of low upgrading efficiency caused by the fact that the wireless network module needs to be manually distributed with a large time cost when being upgraded in the prior art is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an upgrading method for a wireless network module according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of acquiring a firmware upgrade file according to an embodiment of the present invention.
Fig. 3 is a schematic flowchart of acquiring a backup partition file according to an embodiment of the present invention.
Fig. 4 is a schematic flowchart illustrating a process for upgrading a wireless network module according to an embodiment of the present invention.
Fig. 5 is a schematic block diagram of a terminal according to an embodiment of the present invention.
Fig. 6 is a connection diagram of internal modules of the apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used for explaining the relative position relationship between the components, the motion situation, and the like under a certain posture (as shown in the drawing), and if the certain posture is changed, the directional indications are changed accordingly.
Along with the popularization of the internet of things equipment, more and more company teams are added into the development and production of the internet of things equipment, wireless network module firmware (wifi module firmware) of the internet of things equipment is produced in a factory, once a fault which is not found before the wireless network module firmware appears is found, a production accident occurs, the wireless network module firmware needs to be replaced in batches at this time, generally, each equipment is matched with a network, then the wireless network module firmware is used for inquiring an upgrade package on a cloud upgrade file server in a unified mode, and then the wireless network module is upgraded on line (namely, the OTA upgrade is carried out on the wireless network module). This method is not problematic for OTA upgrade of a single device, but in the case of a large number of devices, hundreds or thousands of devices, each device needs to be networked with a specific application program and then perform OTA upgrade, which is very slow, if network conditions are good, each device needs to allocate network time for 2 minutes, OTA upgrade time for 5 minutes, the successful upgrade time of the device is 7 minutes per device, if there are one thousand devices, it takes 7000 minutes, i.e. 116 hours, and if one person works for 12 hours each day, it takes 10 days to complete all the upgrade of the devices. In short, since a lot of time is consumed in the distribution process of the equipment, the time cost required for upgrading the equipment is greatly increased, and the on-time delivery of the product is seriously affected.
Based on the above defects of the prior art, the invention provides an upgrading method of a wireless network module, which is characterized in that a router specially used for equipment upgrading is preset, automatic network distribution of equipment is realized through the router, then a preset local area network protocol address is accessed, a firmware upgrading file stored on the address is obtained, and after the validity of the firmware upgrading file is determined through a series of verification processes, the upgrading file is adopted to realize automatic upgrading of the wireless network module. According to the invention, the wireless network module needing to be upgraded does not need to be manually distributed, so that a large amount of human resource cost can be effectively saved.
As shown in fig. 1, the present embodiment provides a method for upgrading a wireless network module, where the method includes the following steps:
and S100, connecting a target router, and acquiring a firmware upgrading file according to the target router.
Specifically, for various existing upgrading methods, the embodiment adopts an OTA upgrading technology to upgrade the device or the terminal to repair defects or provide better functions. OTA upgrade technology, Over-the-air technology. The current implementation manner of OTA upgrade usually uses a file server as an upgrade server, on which an upgrade configuration file or an upgrade package is placed, and the device end needs to download and analyze the upgrade configuration file for upgrade after the distribution network. In order to complete the distribution network of the equipment to be upgraded, a target router special for the distribution network of the equipment to be upgraded is preset in the embodiment, the equipment to be upgraded needs to be connected to the target router for the distribution network at first, and then the server placed with the firmware upgrade file can be accessed through the target router and the firmware upgrade file is obtained.
As shown in fig. 2, in an implementation manner, the step S100 specifically includes the following steps:
step S110, starting a wireless network module, and scanning according to the wireless network module and a preset service set identifier;
step S120, when a target router is scanned, connection is established with the target router through the preset service set identification and the preset connection password;
step S130, accessing a preset file server through the target router, and acquiring a firmware upgrade file stored on the preset file server.
Specifically, in order to implement an automatic network distribution process of a wireless network module, in this embodiment, a service set identifier and a password are stored in advance in the wireless network module of a device to be upgraded, where the service set identifier is used to search for a target router, and the password is used to establish a data connection with the target router. When the equipment is started, a wireless network module is started firstly, then the wireless network module is controlled to scan according to a preset service set identifier, and a target router for a distribution network is searched. When a target router is scanned, the equipment to be upgraded sends a connection request to the target router, wherein the connection request comprises self equipment information, a service set identifier of the target router needing to be connected and a preset connection password, and after the target router obtains the connection request, the target router generates corresponding response information based on the connection request and sends the response information to the equipment to be upgraded, so that a data connection relation between the equipment to be upgraded and the target router is established. After the connection is established, the equipment to be upgraded can realize communication in the local area network through the target router, and then establish data communication with a preset file server and acquire a firmware upgrading file stored on the preset file server.
In order to obtain a firmware upgrade file stored on a preset file server, in an implementation manner, a preset local area network protocol address may be accessed through the target router, request information is sent to a preset file server on the preset local area network protocol address, then, according to response information generated based on the request information, response information generated based on the request information is finally obtained, and a firmware upgrade file stored on the preset file server is obtained according to the response information. For example, in a specific implementation, a notebook computer may be connected to the target router, and the address of the notebook computer is set as a static lan network protocol address: 192.168.1.253, statically assigning LAN IP addresses means assigning a fixed IP address to each computer, which is convenient for management and avoids the cumbersome process of identity authentication that the user must perform each time he logs on. Then, a preset File Server (Http File Server) is opened on the computer, and the firmware upgrade File is placed on the preset File Server. And after the equipment to be upgraded is started, connecting the equipment to the target router and completing the distribution network. Then the device to be upgraded accesses the lan network protocol address 192.168.1.253 through the target router and sends request information to a preset file server at the address, and after the preset file server obtains the request information, a response packet containing a firmware upgrade file is generated based on the request information and transmitted to the device to be upgraded through a preset path and a file name according to a network protocol (HTTP protocol).
In one implementation, when a target router is not scanned, the scanning duration of the wireless network module is obtained, and the scanning duration is compared with a preset duration threshold. When the scanning time length is less than or equal to the preset time length threshold value, because the scanning time length is too short, whether the target router has a problem or not can not be determined, the wireless network module performs scanning again; when the scanning time is longer than the preset time threshold, it can be judged that the target router has a problem, and the automatic distribution of the equipment can not be realized through the target router, so that the wireless network module is restored to the initial distribution state, and then the equipment to be upgraded is upgraded after being subjected to distribution again.
As shown in fig. 1, the method further comprises the steps of:
and S200, verifying the firmware upgrading file, and taking the verified firmware upgrading file as a backup partition file.
During the network transmission process, data may be more or less erroneous, that is, the data received by the receiving end and the data actually sent by the sending end are inconsistent. In order to ensure that the complete and correct upgrade file is adopted for upgrading, the acquired firmware upgrade file needs to be verified. And only the firmware upgrading file passing the verification can be stored into the partition of the nonvolatile memory of the equipment to be upgraded to serve as a backup partition file for upgrading the firmware of the wireless network module subsequently.
As shown in fig. 3, in an implementation manner, the step S200 specifically includes the following steps:
step S210, acquiring a standard check code attached to the firmware upgrading file;
step S220, calculating the data of the firmware upgrading file through a preset checking algorithm, and taking a result obtained after calculation as a check code to be detected;
and step S230, matching the standard check code with the check code to be detected, judging that the firmware upgrading file passes the check when the standard check code is the same as the check code to be detected, and taking the firmware upgrading file as a backup partition file.
Specifically, in this embodiment, the acquired firmware upgrade file is mainly checked by using a CRC check algorithm (cyclic redundancy check algorithm) or an MD5 check algorithm (information digest algorithm check). The CRC check algorithm mainly uses CRC, i.e., cyclic redundancy check code, and is the most commonly used error-checking check code in the field of data communication, and is characterized in that the lengths of the information field and the check field can be arbitrarily selected. The CRC algorithm is mainly characterized in that polynomial calculation is carried out on data through a data sending end, a calculated CRC code is attached to the back of a data frame and then sent to a data receiving end, the data receiving end carries out polynomial calculation on the received data after acquiring the data frame, the calculated new CRC code is compared with the CRC code attached to the data frame, and if the two CRC codes are equal, the data is not in error in the transmission process; if the two CRC codes are not equal, the condition that transmission errors or loss of data occur in the transmission process is shown. The principle of the MD5 check algorithm is substantially the same as the process of the CRC check algorithm, with the main difference being that the MD5 check algorithm is different from the specific algorithm used by the CRC check algorithm. In order to more accurately check whether a transmission error occurs in a firmware upgrade file received by equipment to be upgraded in a transmission process, in one implementation mode, a CRC (cyclic redundancy check) algorithm and an MD5 (machine direction verification) algorithm can be adopted to perform double verification on the pendant upgrade file, when a CRC check code and an MD5 check code calculated by a local machine of the equipment to be upgraded are respectively the same as a CRC check code and an MD5 check code attached to the firmware upgrade file, the firmware upgrade file is judged to pass the verification, and the firmware upgrade file is stored into a backup partition of a nonvolatile memory of the equipment to be upgraded to serve as a backup partition file.
In one implementation manner, if the standard check code is different from the check code to be detected, it indicates that an error occurs in a current firmware upgrade file in a transmission process, and it is determined that the firmware upgrade file does not pass the check, the wireless network module is restored to an initial distribution network state, so that the equipment to be upgraded performs distribution network again and acquires the firmware upgrade file once again.
As shown in fig. 1, the method further comprises the steps of:
and step S300, carrying out validity verification on the backup partition file, and upgrading the wireless network module according to the backup partition file passing the validity verification.
Before upgrading the wireless network module firmware of the device to be upgraded, the validity of the backup partition file stored in the backup partition needs to be checked, and the method is mainly used for judging whether the system can normally use the backup partition file to upgrade the firmware. Only the backup partition file passing the validity verification can be used for upgrading the wireless network module. In addition, in order to avoid interfering with the execution of the task currently existing on the device to be upgraded, after the validity of the backup partition file is confirmed, the upgrading of the wireless network module firmware can be completed only by restarting the device to be upgraded once. As shown in fig. 4, in an implementation manner, the step S300 specifically includes the following steps:
step S310, acquiring version information and standard version information of the backup partition file;
step S320, matching the standard version information with the version information of the backup partition file to realize validity verification of the backup partition file;
step S330, when the version information of the backup partition file is the same as the standard version information, judging that the backup partition file passes the validity verification, and copying the backup partition file to a main partition of a nonvolatile memory;
and step S340, replacing the original firmware file stored in the main partition according to the backup partition file so as to upgrade the wireless network module.
Specifically, the validity verification in this embodiment is mainly performed by checking the version information of the backup partition file. The version information may include: version number of backup partition file, file name, header information, etc. And matching the version information of the backup partition file with preset standard version information, judging that the backup partition file passes the validity verification when the version information of the backup partition file is the same as the standard version information, and copying the backup partition file to a main partition of a nonvolatile memory. The main partition stores the firmware file currently used by the wireless network module, namely the original firmware file, the original firmware file is replaced by the backup partition file after the backup partition file is copied to the main partition to serve as a new main partition file, and the wireless network module can be automatically upgraded after the system runs the new main partition file. In an implementation mode, if the validity check fails, it indicates that the current firmware upgrade file cannot be normally identified and run by the system, and the wireless network module is restored to the initial distribution network state, and the firmware upgrade file is obtained once again and then upgraded.
The present embodiment provides a complete upgrade process for a wireless network module, which includes the following steps:
step 1, starting a wireless network module, and scanning according to the wireless network module and a preset service set identifier; when the target router is scanned, entering the step 2-4; when the target router is not scanned, step 5-7 is entered.
And 2, establishing connection with the target router through the preset service set identifier and the preset connection password.
And 3, accessing a preset local area network protocol address through the target router, and sending request information to a preset file server on the preset local area network protocol address.
And 4, acquiring response information generated based on the request information, acquiring a firmware upgrading file stored on the preset file server according to the response information, and then entering the step 8.
Step 5, acquiring the scanning time of the wireless network module, comparing the scanning time with a preset time threshold, and entering step 6-9 when the scanning time is less than or equal to the preset time threshold; and when the scanning time length is greater than the preset time length threshold value, the step 15 is entered.
And 6, scanning again through the wireless network module.
And 7, acquiring a standard check code attached to the firmware upgrading file.
And 8, calculating the data of the firmware upgrading file through a preset checking algorithm, and taking a result obtained after calculation as a check code to be detected.
Step 9, matching the standard check code with the check code to be detected, and entering step 10-12 when the standard check code is the same as the check code to be detected; and when the standard check code is different from the check code to be detected, entering step 15.
And step 10, taking the firmware upgrading file as a backup partition file.
And 11, acquiring the version information and the standard version information of the backup partition file.
Step 12, matching the standard version information with the version information of the backup partition file, and entering step 13-14 when the version information of the backup partition file is the same as the standard version information; and when the version information of the backup partition file is not the same as the standard version information, the step 15 is entered.
And step 13, when the version information of the backup partition file is the same as the standard version information, judging that the backup partition file passes the validity verification, and copying the backup partition file to a main partition of a nonvolatile memory.
And step 14, replacing the original firmware file stored in the main partition according to the backup partition file so as to upgrade the wireless network module.
And 15, restoring the wireless network module to the initial distribution network state.
Based on the foregoing embodiment, the present invention further provides an upgrading apparatus for a wireless network module, as shown in fig. 6, the apparatus includes:
the acquisition module 01 is used for connecting a target router and acquiring a firmware upgrading file according to the target router;
the verification module 02 is used for verifying the firmware upgrade file and taking the verified firmware upgrade file as a backup partition file;
and the upgrading module 03 is configured to verify the validity of the backup partition file and upgrade the wireless network module according to the backup partition file passing the validity verification.
Based on the above embodiments, the present invention further provides a terminal, and a schematic block diagram thereof may be as shown in fig. 5. The terminal comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. Wherein the processor of the terminal is configured to provide computing and control capabilities. The memory of the terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal is used for connecting and communicating with an external terminal through a network. The computer program is executed by the processor to realize an upgrading method of the wireless network module. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen.
It will be appreciated by those skilled in the art that the block diagram of fig. 5 is only a block diagram of a portion of the structure associated with the inventive arrangements and does not constitute a limitation of the terminal to which the inventive arrangements are applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one implementation, one or more programs are stored in a memory of the terminal and configured to be executed by one or more processors include instructions for performing a method of upgrading a wireless network module.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases or other media used in the embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses an upgrading method for a wireless network module, which obtains a firmware upgrade file according to a target router by connecting the target router. And then, verifying the firmware upgrading file, and taking the verified firmware upgrading file as a backup partition file. And then, verifying the validity of the backup partition file, and upgrading the wireless network module according to the backup partition file passing through the validity verification. According to the invention, the wireless network module needing to be upgraded does not need to be manually distributed, so that the problem of low upgrading efficiency caused by the fact that the wireless network module needs to be manually distributed with a large time cost when being upgraded in the prior art is solved.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (11)

1. A method for upgrading a wireless network module, the method comprising:
connecting a target router, and acquiring a firmware upgrading file according to the target router;
verifying the firmware upgrading file, and taking the firmware upgrading file passing the verification as a backup partition file;
and verifying the effectiveness of the backup partition file, and upgrading the wireless network module according to the backup partition file passing the effectiveness verification.
2. The method as claimed in claim 1, wherein the connecting the target router, and obtaining the firmware upgrade file according to the target router comprises:
starting a wireless network module, and scanning according to the wireless network module and a preset service set identifier;
when a target router is scanned, establishing connection with the target router through the preset service set identification and a preset connection password;
and accessing a preset file server through the target router, and acquiring a firmware upgrading file stored on the preset file server.
3. The method as claimed in claim 2, wherein the connecting the target router, and obtaining the firmware upgrade file according to the target router further comprises:
when a target router is not scanned, acquiring the scanning time of the wireless network module, and comparing the scanning time with a preset time threshold;
when the scanning time length is less than or equal to a preset time length threshold value, scanning again through the wireless network module;
and when the scanning time length is greater than the preset time length threshold value, the wireless network module is restored to the initial distribution network state.
4. The method according to claim 2, wherein the obtaining, by the target router, the firmware upgrade file stored on a preset file server includes:
accessing a preset local area network protocol address through the target router, and sending request information to a preset file server on the preset local area network protocol address;
and acquiring response information generated based on the request information, and acquiring a firmware upgrading file stored on the preset file server according to the response information.
5. The method according to claim 1, wherein the verifying the firmware upgrade file, and the taking the verified firmware upgrade file as the backup partition file comprises:
acquiring a standard check code attached to the firmware upgrading file;
calculating the data of the firmware upgrading file through a preset checking algorithm, and taking a result obtained after calculation as a check code to be detected;
and matching the standard check code with the check code to be detected, judging that the firmware upgrading file passes the check when the standard check code is the same as the check code to be detected, and taking the firmware upgrading file as a backup partition file.
6. The method for upgrading a wireless network module according to claim 5, wherein the verifying the firmware upgrade file, and using the verified firmware upgrade file as a backup partition file further comprises:
and when the standard check code is different from the check code to be detected, judging that the firmware upgrading file does not pass the check, and restoring the wireless network module to the initial distribution network state.
7. The method according to claim 1, wherein the verifying the validity of the backup partition file, and the upgrading the wireless network module according to the backup partition file that passes the validity verification comprises:
acquiring version information and standard version information of the backup partition file;
matching the standard version information with the version information of the backup partition file to realize validity verification of the backup partition file;
when the version information of the backup partition file is the same as the standard version information, judging that the backup partition file passes the validity verification, and copying the backup partition file to a main partition of a nonvolatile memory;
and replacing the original firmware file stored in the main partition according to the backup partition file so as to realize the upgrading of the wireless network module.
8. The method as claimed in claim 7, wherein the validating the backup partition file, and replacing the original firmware file stored in the main partition with the backup partition file that passes the validation to upgrade the wireless network module further comprises:
and when the version information of the backup partition file is different from the standard version information, judging that the backup partition file does not pass the validity verification, and restoring the wireless network module to an initial distribution network state.
9. An upgrading apparatus for a wireless network module, the apparatus comprising:
the acquisition module is used for connecting a target router and acquiring a firmware upgrading file according to the target router;
the verification module is used for verifying the firmware upgrading file and taking the verified firmware upgrading file as a backup partition file;
and the upgrading module is used for verifying the effectiveness of the backup partition file and upgrading the wireless network module according to the backup partition file passing the effectiveness verification.
10. A terminal, comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to call instructions in the storage medium to implement the steps of the method for upgrading a wireless network module according to any of the preceding claims 1 to 8 in a consistent manner.
11. A computer-readable storage medium having stored thereon instructions adapted to be loaded and executed by a processor to perform the steps of a method for upgrading a wireless network module as claimed in any of claims 1-8.
CN202011541752.0A 2020-12-23 2020-12-23 Upgrading method, device, terminal and storage medium of wireless network module Pending CN114666783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011541752.0A CN114666783A (en) 2020-12-23 2020-12-23 Upgrading method, device, terminal and storage medium of wireless network module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011541752.0A CN114666783A (en) 2020-12-23 2020-12-23 Upgrading method, device, terminal and storage medium of wireless network module

Publications (1)

Publication Number Publication Date
CN114666783A true CN114666783A (en) 2022-06-24

Family

ID=82024363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011541752.0A Pending CN114666783A (en) 2020-12-23 2020-12-23 Upgrading method, device, terminal and storage medium of wireless network module

Country Status (1)

Country Link
CN (1) CN114666783A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090076712A (en) * 2008-01-09 2009-07-13 주식회사 대우일렉트로닉스 Firmware upgrade system
US20130111455A1 (en) * 2010-08-27 2013-05-02 Huawei Device Co., Ltd. Method for processing firmware based on firmware over the air technology, apparatus, and system
CN105721204A (en) * 2016-01-27 2016-06-29 厦门科灿信息技术有限公司 Firmware upgrading method and system for network adapters
CN106775892A (en) * 2016-12-29 2017-05-31 无锡小天鹅股份有限公司 Online upgrading method, the system of intelligent electric appliance and its wireless communication module
CN106991326A (en) * 2017-03-02 2017-07-28 深圳怡化电脑股份有限公司 The upgrade method and its equipment of a kind of equipment firmware
CN107247603A (en) * 2017-04-18 2017-10-13 深圳市广和通无线股份有限公司 Support the remote upgrade method and system of firmware auto restore facility
CN107589956A (en) * 2017-10-24 2018-01-16 杨鲲 A kind of distributed priority mirror image page OTA firmware upgrade methods and system
CN107943499A (en) * 2017-11-27 2018-04-20 深圳创维数字技术有限公司 A kind of method for upgrading system, device, terminal and storage medium
CN110932891A (en) * 2019-11-21 2020-03-27 广州邦讯信息系统有限公司 Error-proof OTA (over the air) upgrading method and device, computer equipment and storage medium
CN111770169A (en) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for upgrading equipment firmware

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090076712A (en) * 2008-01-09 2009-07-13 주식회사 대우일렉트로닉스 Firmware upgrade system
US20130111455A1 (en) * 2010-08-27 2013-05-02 Huawei Device Co., Ltd. Method for processing firmware based on firmware over the air technology, apparatus, and system
CN105721204A (en) * 2016-01-27 2016-06-29 厦门科灿信息技术有限公司 Firmware upgrading method and system for network adapters
CN106775892A (en) * 2016-12-29 2017-05-31 无锡小天鹅股份有限公司 Online upgrading method, the system of intelligent electric appliance and its wireless communication module
CN106991326A (en) * 2017-03-02 2017-07-28 深圳怡化电脑股份有限公司 The upgrade method and its equipment of a kind of equipment firmware
CN107247603A (en) * 2017-04-18 2017-10-13 深圳市广和通无线股份有限公司 Support the remote upgrade method and system of firmware auto restore facility
CN107589956A (en) * 2017-10-24 2018-01-16 杨鲲 A kind of distributed priority mirror image page OTA firmware upgrade methods and system
CN107943499A (en) * 2017-11-27 2018-04-20 深圳创维数字技术有限公司 A kind of method for upgrading system, device, terminal and storage medium
CN110932891A (en) * 2019-11-21 2020-03-27 广州邦讯信息系统有限公司 Error-proof OTA (over the air) upgrading method and device, computer equipment and storage medium
CN111770169A (en) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for upgrading equipment firmware

Similar Documents

Publication Publication Date Title
CN106843957B (en) System firmware upgrading method and device
CN112650520B (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN106027644B (en) Service verification method and system
CN113342371A (en) Internet of things equipment upgrading system
CN107347048B (en) Data verification method, device and system
CN107102908B (en) Data verification method, data fault tolerance method and device
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
CN113900682A (en) System software upgrading method, device, equipment and computer storage medium
CN110647439B (en) Method and device for confirming block chain system deployment, computer equipment and storage medium
CN114489732A (en) Method and device for updating FPGA (field programmable Gate array) firmware of equipment and electronic equipment
CN111984520A (en) Buried point testing method, computer device and computer-readable storage medium
CN114546837A (en) Interface test method, device, equipment and storage medium
CN112667272A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN113612814A (en) Method, device, terminal and storage medium for screening session information
CN117687695A (en) Information processing method, information processing device, electronic equipment and storage medium
CN112822248A (en) OTA upgrading method, OTA upgrading device, readable medium and electronic equipment
CN106028326B (en) WiFi configuration method and device of smart watch
CN114666783A (en) Upgrading method, device, terminal and storage medium of wireless network module
CN110990046A (en) Upgrading method based on dynamic file
CN115729477A (en) Distributed storage IO path data writing and reading method, device and equipment
CN112181785B (en) Method, terminal and storage medium for automatically adding monitoring equipment
CN113852846A (en) Route + IPTV fusion terminal and upgrading method thereof
CN113315795A (en) Synchronization method and device of cloud host mirror image and storage medium
CN107179917A (en) System architecture and dispositions method for the operating system of installing multiple test systems
CN114268624B (en) Version file transmission method and device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination