CN113992739B - Local area network OTA firmware upgrading device, method and system - Google Patents

Local area network OTA firmware upgrading device, method and system Download PDF

Info

Publication number
CN113992739B
CN113992739B CN202111249369.2A CN202111249369A CN113992739B CN 113992739 B CN113992739 B CN 113992739B CN 202111249369 A CN202111249369 A CN 202111249369A CN 113992739 B CN113992739 B CN 113992739B
Authority
CN
China
Prior art keywords
firmware
upgrading
area network
local area
unit
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.)
Active
Application number
CN202111249369.2A
Other languages
Chinese (zh)
Other versions
CN113992739A (en
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.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing 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 Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202111249369.2A priority Critical patent/CN113992739B/en
Publication of CN113992739A publication Critical patent/CN113992739A/en
Application granted granted Critical
Publication of CN113992739B publication Critical patent/CN113992739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention discloses a device, a method and a system for upgrading local area network OTA firmware, relates to the technical field of the Internet of things, and aims to avoid damage to equipment caused by repeated plate disassembling and sealing processes, so that the firmware upgrading operation is simple and the efficiency is higher. The main technical scheme of the invention is as follows: receiving a broadcast message sent by a client by monitoring a protocol message in a local area network, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address; judging whether the current firmware of the equipment needs to execute firmware upgrading operation or not according to the firmware identification to be upgraded and the source version number corresponding to the firmware identification to be upgraded in the broadcast message; if the current firmware is determined to be required to execute the firmware upgrading operation, downloading a firmware upgrading packet corresponding to the target version number according to the firmware upgrading file downloading address; and carrying out firmware upgrading operation on the current firmware according to the firmware upgrading packet.

Description

Local area network OTA firmware upgrading device, method and system
Technical Field
The invention relates to the technical field of the internet of things, in particular to a local area network OTA firmware upgrading device, method and system.
Background
With the rise and development of the internet of things, a large number of sensors and devices capable of accessing the internet are integrated into the life of people. Today there are billions of internet of things devices and the ever changing demands of people are met by continuously firmware upgrades and software updates to the devices.
At present, for an initial firmware version burning method of an internet of things device, the method mainly comprises the following steps: the computer (Personal Computer, PC) is connected through the universal serial bus (Universal Serial Bus, USB) and is burnt by a burning tool on the PC. The subsequent firmware upgrading method is realized by issuing a firmware upgrading packet by The remote server, when The equipment receives The firmware upgrading packet, corresponding firmware upgrading operation can be carried out, and The firmware upgrading method is also understood as an upgrading method realized by depending on Over The Air (OTA).
However, if the firmware version burning error is detected or the firmware version updating needs to be performed on the device under the condition that the device is produced and sealed and the remote OTA upgrading service authorization is not performed, the device can only be disassembled, and the remote OTA upgrading service authorization is completed by connecting a PC through a USB data line. However, the repeated plate removing and sealing processes not only damage equipment, but also make firmware upgrading operation cumbersome and have low efficiency.
Disclosure of Invention
In view of this, the present invention provides a device, method and system for upgrading local area network OTA firmware, which mainly aims to realize the upgrading of the firmware by using an in-local area network over-the-air downloading method without disassembling the board of the device under the condition that the production of the device is completed and the board is sealed and the remote OTA upgrading service authorization is not performed yet, thereby avoiding the damage to the device caused by repeated board and sealing processes, and enabling the firmware upgrading operation to be simple and the efficiency to be higher.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
the first aspect of the present application provides a local area network OTA firmware upgrading device, applied to a device side, the device includes:
the first monitoring unit is used for monitoring protocol messages in the local area network;
the first receiving unit is used for receiving a broadcast message sent by a client, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address;
the first judging unit is used for judging whether the current firmware of the equipment needs to execute firmware upgrading operation according to the firmware identification to be upgraded and the source version number corresponding to the firmware identification to be upgraded in the broadcast message received by the first receiving unit;
The downloading unit is used for downloading a firmware upgrade package corresponding to the target version number according to the firmware upgrade file downloading address when the first judging unit determines that the current firmware is required to execute firmware upgrade operation;
and the upgrading unit is used for carrying out firmware upgrading operation on the current firmware according to the firmware upgrading packet downloaded by the downloading unit.
In some modification embodiments of the first aspect of the present application, the first determining unit includes:
the comparison module is used for comparing whether the firmware identification to be upgraded is the same as the firmware identification of the current firmware;
the determining module is used for determining that the current firmware is not required to be updated when the comparison module obtains that the firmware identification to be updated is different from the firmware identification of the current firmware;
the comparison module is further configured to compare whether a source version number corresponding to the firmware identifier to be upgraded is the same as a version number of the current firmware when the firmware identifier to be upgraded is the same as the firmware identifier of the current firmware;
the determining module is further configured to determine that the current firmware needs to perform a firmware upgrade operation when the comparing module obtains that a source version number corresponding to the firmware identifier to be upgraded is the same as a version number of the current firmware;
And the determining module is further configured to determine that the current firmware is not required to be upgraded when the comparing module obtains that the source version number corresponding to the firmware identifier to be upgraded is different from the version number of the current firmware.
In some variation embodiments of the first aspect of the present application, the apparatus further includes:
the first adding unit is used for adding an upgrade completion identification to equipment where the current firmware is located after carrying out firmware upgrade operation on the current firmware according to the firmware upgrade package;
the first storage unit is used for storing the upgrading completion identification added by the first adding unit into the nonvolatile memory;
the searching unit is used for searching whether the equipment is added with the upgrading completion identification or not when other broadcast messages are received in a preset time period;
and the neglecting unit is used for neglecting the other broadcast messages when the searching unit searches that the equipment is added with the upgrading completion identification.
In some variation embodiments of the first aspect of the present application, the apparatus further includes:
the searching unit is used for searching a specific service set identifier before receiving a broadcast message sent by the client by monitoring an intra-local area network protocol message, wherein the specific service set identifier is a local area network OTA firmware upgrading service special for supporting equipment;
And the access unit is used for accessing the local area network corresponding to the specific service set identifier according to the specific service set identifier searched by the search unit.
In some modification embodiments of the first aspect of the present application, the upgrade unit includes:
the storage module is used for storing the firmware upgrade package into a preset firmware storage area;
the triggering module is used for triggering and restarting the operation of the equipment;
and the loading module is used for loading the firmware file in the firmware upgrade package into the random access memory of the equipment to run after the equipment is restarted and electrified.
In some variation embodiments of the first aspect of the present application, the apparatus further includes:
the generating unit is used for generating a first reply message after the firmware upgrading operation is completed on the current firmware when the current firmware is determined to be the firmware upgrading operation to be executed;
the generating unit is further configured to generate a second reply message when it is determined that the current firmware is to perform the firmware upgrade operation, but the firmware upgrade operation fails on the current firmware;
the generating unit is further configured to generate a third reply packet when it is determined that the current firmware is not required to perform a firmware upgrade operation;
And the feedback unit is used for feeding back the first reply message, the second reply message or the third reply message obtained by the generating unit to the client.
A second aspect of the present application provides a local area network OTA firmware upgrade apparatus, applied to a client, the apparatus comprising:
the configuration unit is used for configuring a specific service set identifier of the router, wherein the specific service set identifier is a local area network OTA firmware upgrading service special for supporting equipment;
a sending unit, configured to send a broadcast message to different devices in the local area network, where the broadcast message includes at least a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded, and a firmware upgrade file download address, where the firmware identifier to be upgraded and the source version number are used for the device to determine whether firmware upgrade is required, and the target version number and the firmware upgrade file download address are used for supporting the device to execute firmware upgrade operation when the device determines that firmware upgrade is required;
the second monitoring unit is used for monitoring the protocol message in the local area network;
and the second receiving unit is used for monitoring the protocol message in the local area network through the second monitoring unit and receiving the reply message fed back by the different equipment.
In some variation embodiments of the second aspect of the present application, the apparatus further includes:
the second storage unit is used for storing the reply message into a message queue after receiving the reply message fed back by the different equipment by monitoring the protocol message in the local area network;
the extraction unit is used for extracting the reply messages from the message queue one by one when the number of the reply messages in the message queue reaches a preset threshold value;
the analyzing unit is configured to analyze target data information from the extracted reply message, where the target data information at least includes a physical address and an IP address of a device, a current version number of firmware of the device, and firmware upgrade status information, where the upgrade status information is used to indicate whether the firmware of the device performs a firmware upgrade operation.
In some variation embodiments of the second aspect of the present application, the apparatus further includes:
the second adding unit is used for responding to an additional information operation instruction added to the target data information, adding a firmware target version number corresponding to the equipment and a timestamp corresponding to the received reply message to the target data information;
The determining unit is used for taking the target data information added with the additional information as upgrade entry record information corresponding to the reply message;
the second storage unit is further configured to store the upgrade entry record information into a specified database.
In some variation embodiments of the second aspect of the present application, a mapping relationship between the device identifier and the upgrade entry record information is stored in the specified database, and the apparatus further includes:
the reading unit is used for reading upgrade entry record information corresponding to a target equipment identifier from the appointed database according to a first preset time period, wherein the target equipment identifier is an equipment identifier selected by a firmware upgrade task;
and the updating unit is used for updating the firmware state information corresponding to the target equipment, which is displayed in the window interface provided by the client, according to the upgrade entry record information corresponding to the target equipment identifier.
In some variation embodiments of the second aspect of the present application, the apparatus further includes:
the inquiring unit is used for inquiring whether the upgrade entry record information corresponding to the target equipment identifier exists in the appointed database according to the second preset time period;
The acquisition unit is used for acquiring the current system time when the inquiry unit determines that the upgrade entry record information corresponding to the target equipment identifier does not exist in the appointed database;
the second judging unit is used for judging whether the time difference between the current system time and the starting time of the firmware upgrading task reaches a preset threshold value or not;
and the second judging unit is further used for judging that the device firmware upgrading operation corresponding to the target device identifier is overtime when the time difference between the current system time and the starting time of the firmware upgrading task is judged to reach the preset threshold value.
The third aspect of the present application further provides a local area network OTA firmware upgrade system, which includes: the local area network OTA firmware upgrading device applied to the equipment end and the local area network OTA firmware upgrading device applied to the client end.
The fourth aspect of the present application further provides a local area network OTA firmware upgrading method, applied to a device side, where the method includes:
receiving a broadcast message sent by a client by monitoring a protocol message in a local area network, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address;
Judging whether the current firmware of the equipment needs to execute firmware upgrading operation or not according to the firmware identification to be upgraded and the source version number corresponding to the firmware identification to be upgraded in the broadcast message;
if the current firmware is determined to be required to execute the firmware upgrading operation, downloading a firmware upgrading packet corresponding to the target version number according to the firmware upgrading file downloading address;
and carrying out firmware upgrading operation on the current firmware according to the firmware upgrading packet.
The fifth aspect of the present application further provides a local area network OTA firmware upgrading method, applied to a client, the method comprising:
configuring a specific service set identifier of a router, wherein the specific service set identifier is a local area network OTA firmware upgrading service special for supporting equipment;
transmitting broadcast messages to different devices in the local area network, wherein the broadcast messages at least comprise a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, the firmware identifier to be upgraded and the source version number are used for judging whether firmware upgrading is needed by the devices, and the target version number and the firmware upgrading file downloading address are used for supporting the devices to execute firmware upgrading operation when the devices judge that the firmware upgrading is needed;
And receiving the reply message fed back by the different equipment by monitoring the protocol message in the local area network.
A sixth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a local area network OTA firmware upgrade method as above, device-side and client-side.
A seventh aspect of the present application provides an electronic device, including: the device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the local area network OTA firmware upgrading method of the device side and the client side when executing the computer program.
By means of the technical scheme, the technical scheme provided by the invention has at least the following advantages:
the invention provides a local area network OTA firmware upgrading device, method and system, which are characterized in that a client and a plurality of devices are connected into a local area network, a broadcast message is sent out by the client in the local area network, and different devices can acquire corresponding firmware upgrading packages according to the target version number and the firmware upgrading file downloading address on the premise of judging that the firmware upgrading operation is required by monitoring the protocol message in the local area network, because the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, after one device receives the broadcast message, the current firmware of the device can be judged to be required to execute the firmware upgrading operation according to the firmware identifier to be upgraded and the source version number corresponding to the firmware identifier to be upgraded, and the corresponding firmware upgrading package can be acquired on the premise of judging that the firmware upgrading operation is required. Compared with the prior art, the method solves the problems of damage to equipment and low efficiency caused by the fact that repeated plate disassembly and plate sealing are needed to finish the firmware upgrading of the equipment, and the firmware upgrading method does not need to disassemble the plate again for the equipment with the sealed plate, but realizes the equipment firmware upgrading by using an in-local area network air downloading method, so that the equipment is prevented from being damaged by the repeated plate disassembly and plate sealing process, and the firmware upgrading operation is simple and has higher efficiency.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a block diagram of a local area network OTA firmware upgrading device (applied to a device side) according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for upgrading firmware of local area network OTA (applied to a device side) according to an embodiment of the present invention;
fig. 3 is a block diagram of another local area network OTA firmware upgrading device (applied to a device side) according to an embodiment of the present invention;
fig. 4 is a block diagram of a local area network OTA firmware upgrading device (applied to a client) according to an embodiment of the present invention;
Fig. 5 is a flowchart of a local area network OTA firmware upgrading method (applied to a client) provided in an embodiment of the present invention;
fig. 6 is a block diagram of another local area network OTA firmware upgrading device (applied to a client) according to an embodiment of the present invention;
fig. 7 is a flowchart of a method for upgrading local area network OTA firmware by data interaction between a device side and a client side according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a local area network OTA firmware upgrading device, which is applied to a device end, as shown in fig. 1, and comprises: a first monitoring unit 101, configured to monitor a protocol packet in a local area network; the first receiving unit 102 is configured to receive a broadcast message sent by a client, where the broadcast message at least includes a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded, and a firmware upgrade file download address; a first judging unit 103, configured to judge whether the current firmware of the device needs to perform a firmware upgrade operation according to the to-be-upgraded firmware identifier and the source version number corresponding to the to-be-upgraded firmware identifier in the broadcast message received by the first receiving unit 102; a downloading unit 104, configured to, when the first judging unit 103 determines that the current firmware is to perform the firmware upgrade operation, download, according to the firmware upgrade file download address, a firmware upgrade package corresponding to the target version number; and the upgrading unit 105 is used for performing firmware upgrading operation on the current firmware according to the firmware upgrading packet downloaded by the downloading unit 104.
In order to distinguish between identical functional units present at the device side and at the client side, the identical functional units may be identified differently at the device side by means of the identification "first" and at the client side by means of the identification "second", for example: the "first listening unit" at the device side and the "second listening unit" at the client side, the functional units identified by the "first" and the "second" appearing subsequently are also operations based on the same reason, and are not explained repeatedly.
The following describes in detail the workflow for implementing firmware upgrade with reference to the local area network OTA firmware upgrade apparatus shown in fig. 1:
in the embodiment of the invention, a local area network is built in advance, and a client and at least one device are connected into the local area network, wherein the client is a pre-written application program and is equivalent to a firmware upgrading service management client and used for managing firmware state information of a plurality of different devices. In the local area network, the client sends broadcast messages according to user datagram protocol (User Datagram Protocol, UDP), the number of the broadcast messages is determined by the firmware upgrading task of the device at the current round, namely, each broadcast message corresponds to one firmware upgrading requirement, and the broadcast messages are continuously and periodically repeatedly sent by the client in the period of the current round of task, so that the situation that a certain broadcast message is not received by a certain device and the firmware upgrading operation of the certain device is missed is avoided.
Correspondingly, at the device end, for any one device, the first monitoring unit 101 of the device end can be utilized to monitor the UDP protocol message in the local area network, and the first receiving unit 102 is utilized to receive the broadcast message sent by the client end, and can continuously receive each broadcast message. Because the broadcast message at least contains the firmware identifier to be upgraded, the source version number and the target version number corresponding to the firmware identifier to be upgraded, and the firmware upgrade file download address, the device uses the first judging unit 103 to judge whether the current firmware of the device needs to execute the firmware upgrade operation according to the firmware identifier to be upgraded and the source version number corresponding to the firmware identifier to be upgraded, and uses the downloading unit 104 to download the firmware upgrade package corresponding to the target version number according to the firmware upgrade file download address on the premise that the first judging unit 103 determines that the firmware upgrade operation is required, so that the upgrading unit 105 of the device performs the firmware upgrade operation on the current firmware according to the downloaded firmware upgrade package.
It should be noted that, the source version number corresponding to the firmware to be upgraded identifier included in the broadcast message refers to a version number that is being used in the current normal running process of the device, and the target version number refers to an latest version number to which the device firmware needs to be upgraded. In the embodiment of the invention, the first judging unit 103 of the device is utilized to compare the source version number corresponding to the firmware identifier to be upgraded in the broadcast message with the current firmware version number of the device so as to further judge whether the firmware upgrading operation is needed.
And the download address of the firmware upgrade file contained in the broadcast message is a download address in which the position of the firmware upgrade package corresponding to the target version number is stored in advance, and the purpose of storing such download address in the broadcast message is to ensure that the firmware upgrade package can be obtained only through the download address, so that the storage position of the firmware upgrade package can not be limited, and the firmware upgrade package can be flexibly and effectively managed and stored.
Further, in combination with the local area network OTA firmware upgrading device shown in fig. 1, the application performs a local area network OTA firmware upgrading method at the device side, as shown in fig. 2, and the specific implementation steps of the method include the following steps:
s101, receiving a broadcast message sent by a client by monitoring a protocol message in a local area network, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address.
S102, judging whether the current firmware of the equipment needs to execute firmware upgrading operation or not according to the firmware identification to be upgraded and the source version number corresponding to the firmware identification to be upgraded in the broadcast message.
S103, if the current firmware is determined to be required to execute the firmware upgrading operation, downloading a firmware upgrading packet corresponding to the target version number according to the firmware upgrading file downloading address.
S104, carrying out firmware upgrading operation on the current firmware according to the firmware upgrading packet.
In order to more specifically describe the workflow of local area network OTA firmware upgrade implemented at the device side, the embodiment of the present invention further provides another local area network OTA firmware upgrade apparatus, which is applied to the device side, as shown in fig. 3, and is explained below in conjunction with fig. 3:
further, as shown in fig. 3, in the embodiment of the present invention, the first determining unit 103 includes: the comparing module 1031 and the determining module 1032 perform functions including:
the comparing module 1031 is configured to compare whether the firmware identifier to be upgraded included in the broadcast packet is the same as the firmware identifier of the current firmware; a determining module 1032, configured to determine that the current firmware is not to be updated when the comparison module 1031 obtains that the firmware identification to be updated is different from the firmware identification of the current firmware.
However, if the comparison module 1031 obtains that the firmware identifier to be upgraded is the same as the firmware identifier of the current firmware, then it indicates that the broadcast message received by the device has a corresponding relationship with the device, and then further judgment and comparison are needed, that is, whether the source version number corresponding to the firmware identifier to be upgraded is the same as the version number of the current firmware. The determining module 1032 is further configured to determine that the current firmware needs to perform the firmware upgrade operation when the comparing module 1031 obtains that the source version number corresponding to the firmware identifier to be upgraded is the same as the version number of the current firmware.
However, if the comparison module 1031 obtains that the source version number corresponding to the firmware identifier to be upgraded is not the same as the version number of the current firmware, the determination module 1032 determines that the current firmware is not to be upgraded.
Further, as shown in fig. 3, the local area network OTA firmware upgrading device provided by the embodiment of the invention further includes: a first adding unit 106, a first storing unit 107, a searching unit 108, and an ignoring unit 109. For the embodiment of the invention, the number of the broadcast messages sent by the client is determined by the firmware upgrading task of the current round of equipment, namely, each broadcast message corresponds to a firmware upgrading requirement, and one broadcast message is continuously and periodically repeatedly sent by the client in the current round of task time period, so that the problem that a certain broadcast message is not received by a certain equipment and the firmware upgrading operation of the certain equipment is missed is avoided. However, during the current round of firmware upgrade task, no matter whether one device firmware is upgraded, a broadcast message is still received, so that similar comparison to avoid redundancy needs to be performed repeatedly to determine whether the device firmware needs to be upgraded, so as to avoid wasting processing resources at the device side, specifically, the following implementation steps may be performed by using the first adding unit 106, the first storing unit 107, the searching unit 108, and the ignoring unit 109:
The first adding unit 106 is configured to add an upgrade completion identifier to a device where the current firmware is located after performing a firmware upgrade operation on the current firmware according to the firmware upgrade package.
A first storage unit 107 for storing the upgrade completion identification added by the first adding unit 106 to the nonvolatile memory. And storing the upgrade completion identification into a nonvolatile memory (NV), wherein once the NV is written in the data, the data is not lost even if power is lost, and the original setting is still reserved for the next restart, so that the upgrade completion identification is ensured to exist all the time.
And the searching unit 108 is configured to search whether the device itself has added an upgrade completion identifier when receiving other broadcast messages within a preset time period.
And the ignoring unit 109 is configured to ignore other broadcast messages when the searching unit 108 finds that the device itself is added with the upgrade completion identifier.
Further, as shown in fig. 3, the local area network OTA firmware upgrading device provided by the embodiment of the invention further includes: a search unit 110 and an access unit 111. For the embodiment of the invention, a local area network is built in advance, and a client and at least one device are required to be connected into the local area network, preferably, in order to facilitate efficient identification of the client and different devices participating in the firmware upgrading method, a specific service set identifier can be set as a local area network OTA firmware upgrading service special for supporting devices, and the specific statement is as follows:
The searching unit 110 is configured to search for a specific service set identifier, which is a local area network OTA firmware upgrade service dedicated to the supporting device, before receiving the broadcast message sent by the client by listening to the intra-local area network protocol message.
An access unit 111, configured to access the local area network corresponding to the specific service set identifier according to the specific service set identifier searched by the search unit 110.
Further, as shown in fig. 3, the upgrading unit 105 in the local area network OTA firmware upgrading device provided in the embodiment of the present invention includes: the storage module 1051, the trigger module 1052 and the loading module 1053 specifically have the following implementation functions: :
a storage module 1051, configured to store the firmware upgrade package in a preset firmware storage area; a triggering module 1052 for triggering the operation of restarting the device; the loading module 1053 is configured to load the firmware file in the firmware upgrade package into the random access memory of the device for running after the device is restarted and powered on.
It should be noted that, the preset firmware storage area is a storage area selected in advance in the hard disk of the device, and since the device is already running, the firmware upgrade package cannot be loaded and run directly at present, the firmware upgrade package is temporarily stored first.
Since the current firmware of the device is already operated in the RAM of the random access memory (random access memory, RAM), the device needs to be restarted, the firmware upgrade package in the preset firmware storage area can be reloaded into the RAM of the device to operate after the device is powered on again, so that the firmware upgrade package can be loaded to be effective, the firmware upgrade file carried in the firmware upgrade is operated in the RAM, and the upgrade operation of the current firmware version of the device is completed.
Further, as shown in fig. 3, the local area network OTA firmware upgrading device provided by the embodiment of the invention further includes: the generating unit 112 and the feedback unit 113, combined with the two units, are used for generating and feeding back a reply message, and specifically stated as follows:
a generating unit 112, configured to generate a first reply message after the firmware upgrade operation is completed on the current firmware when it is determined that the current firmware is to perform the firmware upgrade operation;
the generating unit 112 is further configured to generate a second reply message when it is determined that the current firmware is to perform the firmware upgrade operation, but the firmware upgrade operation fails to be performed on the current firmware;
the generating unit 112 is further configured to generate a third reply packet when it is determined that the current firmware is not required to perform the firmware upgrade operation;
The feedback unit 113 is configured to feedback the first reply message, the second reply message, or the third reply message obtained by the generating unit 112 to the client.
It should be noted that, for the three different reply messages generated by the generating unit 112, the addition identifiers "first", "second" and "third" may be used to distinguish, so as to clearly indicate that different reply messages are correspondingly obtained in different application scenarios. In order to ensure that the client side timely knows the feedback result sent to the device side by each broadcast message, the device is required to reply to each received broadcast message, which is illustrated as follows:
after the equipment is started, the specific SSID is searched to enter an upgrade mode, and the UDP protocol message in the local area network is monitored. The device replies to each received broadcast message, specifically, the following situations exist:
in example 1, if the device receives the broadcast message and determines that the device needs to be upgraded, the device enters an upgrade downloading flow, and at this time, the UDP interaction process at the device end ends and does not reply to the broadcast message any more, and after the upgrade operation is completed, a reply message, such as a first reply message, is fed back to the client.
Example 2, if the device receives the broadcast message and determines that the device needs to be upgraded, the device enters an upgrade downloading flow, and after the device is powered on again, the device fails to upgrade, and replies a UDP protocol message with the upgrade failure to the client, for example, a second reply message is identified.
Example 3, if the device receives the broadcast message, but after checking the current version number of its firmware and the source version number carried in the broadcast message, it finds that the update is not suitable, then replies an "illegally upgraded UDP protocol message" to the client, that is, the device determines that the firmware update is not required, and replies a message, for example, a third reply message is identified.
In addition to replying to the above 3 messages, the embodiment of the present invention also considers that the device may also determine whether to correctly operate the received broadcast message, for example: after the device receives the broadcast message, it can use cyclic redundancy check (Cyclic Redundancy Check, CRC) method to verify whether the broadcast message is correct, CRC is a message checking means, and the communication parties coordinate well, and the same algorithm is performed on the character strings in the file to obtain a result value, so that the receiving party can check whether the received message is correct, if the device judges that the received broadcast message is correct, it further judges whether the current firmware version of the device needs to be upgraded, otherwise, it can directly reply the UDP protocol message containing upgrade failure to the client.
In summary, as shown in the foregoing, an embodiment of the present invention provides a local area network OTA firmware upgrading device and method, which are applied to a device, and the present invention accesses a client and a plurality of devices to a local area network, where the client sends a broadcast message, and different devices can obtain a corresponding firmware upgrade packet by monitoring a protocol message in the local area network to receive the broadcast message, because the broadcast message at least includes a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded, and a firmware upgrade file download address, after a device receives such a broadcast message, it can determine whether the current firmware of the device needs to execute firmware upgrade operation according to the firmware identifier to be upgraded and the source version number corresponding to the firmware identifier to be upgraded, and can obtain a corresponding firmware upgrade packet according to the target version number and the firmware upgrade file download address on the premise of determining that the firmware upgrade operation is required. Compared with the prior art, the method solves the problems of damage to equipment and low efficiency caused by the fact that repeated plate disassembly and plate sealing are needed to finish the firmware upgrading of the equipment, and the firmware upgrading method does not need to disassemble the plate again for the equipment with the sealed plate, but realizes the equipment firmware upgrading by using an in-local area network air downloading method, so that the equipment is prevented from being damaged by the repeated plate disassembly and plate sealing process, and the firmware upgrading operation is simple and has higher efficiency.
The embodiment of the invention further provides a local area network OTA firmware upgrading device and method applied to a client as data interaction with a device side, wherein the method is specifically stated as follows:
the embodiment of the invention provides a local area network OTA firmware upgrading device which is applied to a client, as shown in fig. 4, and comprises the following components: a configuration unit 201, configured to configure a specific service set identifier of the router, where the specific service set identifier is a local area network OTA firmware upgrade service dedicated to the supporting device; a sending unit 202, configured to send a broadcast message to different devices in a local area network, where the broadcast message includes at least a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded, and a firmware upgrade file download address, where the firmware identifier to be upgraded and the source version number are used for the device to determine whether firmware upgrade is required, and the target version number and the firmware upgrade file download address are used for supporting the device to execute firmware upgrade operation when the device determines that firmware upgrade is required; a second monitoring unit 203, configured to monitor a protocol packet in the local area network; the second receiving unit 204 is configured to monitor, by using the second monitoring unit 203, a protocol packet in the local area network, and receive reply packets fed back by different devices.
It should be noted that, for the built lan, the client side sets a specific service set identifier (Service Set Identifier, SSID) for the router, and the SSID is only used for the lan OTA upgrade requirement of the device.
And for the PC where the client is located, the network card for providing local area network OTA upgrade service can be appointed and selected in the configuration of the client in advance. This is because there may be multiple network cards in some PCs, and only one network card may be connected to a router having a specific SSID, and if it is not specified which network card is a network card providing local area network OTA upgrade service, this will happen: when broadcasting a message to a local area network, a client of the PC may not send the broadcast message through a network card connected with a specific SSID. It is therefore necessary here to pre-select the designated serving network card in order to avoid such problems.
In addition, it should be noted that, in the embodiment of the present invention, the client provided by the present invention is an application program installed on the PC, and then the client may implement relevant application functions of the client by starting different threads.
In the above way, in the implementation of the present invention, after the specific requirement configuration is completed for the local area network and the PC network card, the client and the different devices access to the local area network through the specific service set identifier.
In the embodiment of the present invention, in combination with the apparatus shown in fig. 4, the apparatus is applied to a client, and has the main effects of sending a broadcast message to a device side and receiving status information about whether firmware upgrade is executed or not, which is fed back by the device side, specifically, so that the application also executes a local area network OTA firmware upgrade method in the client, as shown in fig. 5, and the specific implementation steps of the method include the following steps:
s201, a specific service set identifier of the router is configured, wherein the specific service set identifier is a local area network OTA firmware upgrading service special for supporting equipment.
S202, sending broadcast messages to different devices in a local area network, wherein the broadcast messages at least comprise a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, the firmware identifier to be upgraded and the source version number are used for judging whether the firmware is required to be upgraded by the devices, and the target version number and the firmware upgrading file downloading address are used for supporting the devices to execute firmware upgrading operation when the devices judge that the firmware is required to be upgraded.
S203, receiving reply messages fed back by different devices by monitoring protocol messages in the local area network.
In order to more specifically describe the workflow of local area network OTA firmware upgrade implemented by the client side, the embodiment of the present invention further provides another local area network OTA firmware upgrade apparatus, which is applied to the client, as shown in fig. 6, and is explained below in conjunction with fig. 6:
Further, as shown in fig. 6, the local area network OTA firmware upgrading device provided by the embodiment of the invention further includes: a second storage unit 205, an extraction unit 206, and an analysis unit 207. For the embodiment of the invention, instead of analyzing the reply message immediately after the client receives the reply message, the client waits for accumulating a certain number of reply messages and then executes analysis operation so as to reasonably plan processing resources and avoid repeatedly executing operations of receiving and analyzing the message, and the implementation functions of the three units comprise the following steps:
a second storage unit 205, configured to store the reply message into a message queue after receiving the reply message fed back by different devices by monitoring the protocol message in the local area network;
an extracting unit 206, configured to extract reply messages from the message queue one by one when the number of reply messages in the message queue reaches a preset threshold;
the parsing unit 207 is configured to parse target data information from the extracted reply message, where the target data information at least includes a physical address and an IP address of the device, a current version number of firmware of the device, and firmware upgrade status information, where the upgrade status information is used to indicate whether the firmware of the device performs a firmware upgrade operation.
In the embodiment of the invention, a method for preferentially receiving reply messages fed back by different devices in a preset time period without real-time analysis can be adopted, so that similar situations are avoided: if both the receiving and parsing operations are performed, the reply message arriving at the client during the parsing of the data is missed because the parsing message is stored in the database for too long. And then accumulating the quantity of certain reply messages by utilizing the message queue, and executing batch execution of the operation of analyzing the reply messages.
Further, as shown in fig. 6, the local area network OTA firmware upgrading device provided by the embodiment of the invention further includes: a second adding unit 208, a determining unit 209, and a second storing unit 205.
A second adding unit 208, configured to add, in response to an additional information operation instruction to the target data information, a firmware target version number corresponding to the device and a timestamp corresponding to the received reply message to the target data information;
a determining unit 209, configured to use the target data information added with the additional information as upgrade entry record information corresponding to the reply message;
the second storage unit 205 is further configured to store the upgrade entry record information in a specified database.
In the embodiment of the invention, some additional information can be added into the target data information obtained by analyzing the reply message to form the upgrade entry record information corresponding to the reply message, so that the purpose of the operation is to be convenient for a client side to know which equipment firmware is upgraded, whether the upgrade is successful, the time point when the upgrade is completed, and the like efficiently by checking the upgrade entry record information, and specifically, the additional data information of which dimensionality is added into the target data information can be set according to the purpose of enabling the client side to conveniently know more comprehensive equipment firmware state information.
After the upgrade entry record information is obtained, they may be stored in a database that acts as a client-side background database.
Further, as shown in fig. 6, the local area network OTA firmware upgrading device provided by the embodiment of the invention further includes: a reading unit 210 and an updating unit 211.
A reading unit 210, configured to read, from a specified database, upgrade entry record information corresponding to a target device identifier, where the target device identifier is a device identifier selected by a firmware upgrade task according to a first preset time period;
The updating unit 211 is configured to update firmware state information corresponding to the target device displayed in the window interface provided by the client according to the upgrade entry record information corresponding to the target device identifier.
In the embodiment of the invention, after the upgrade entry record information corresponding to the reply message is stored in the database, the mapping relation between the equipment identifier and the upgrade entry record information is stored in the database. It has been mentioned that the database is equivalent to a background database at the client side, and then a user interface for man-machine interaction can be set for the client to effectively display the related data information read from the background database.
The client side provides a user interface for man-machine interaction, an operator imports firmware upgrade packages corresponding to different devices into a special storage position of the PC in advance, and relevant information such as the firmware identifications to be upgraded and the corresponding device identifications thereof are displayed in the user interface, specifically, the information can be displayed in a table form, and data dimensions (namely attribute fields) in the table can be preset according to actual requirements. It should be noted that, for the table information displayed by the user interface, the table information corresponds to a round of firmware upgrade task set by the operator, and if the round of firmware upgrade task is completed, a batch of table information including the to-be-upgraded firmware identifier may be replaced in the user interface.
Furthermore, because the upgrade entry record information corresponding to the device-side feedback reply message is stored in the database, the relevant upgrade entry record information conforming to the firmware identification to be upgraded or the device identification in the foreground table information can be displayed in the user interface through the data interaction between the database and the user interface, namely the data interaction between the client-side background and the foreground, thereby realizing that the relevant information displayed in the user interface is updated by reading the upgrade entry record information in the background database, and being greatly convenient for operators to check which devices in the current round of firmware upgrade task are upgraded, whether the firmware upgrade is successful, the firmware state information and the like.
And, in order to avoid too frequent reading of the upgrade entry record information in the database, which results in wasted processing resources, such as reading frequency much greater than updating frequency of the upgrade entry record information in the database, such frequent operations are undoubted. Therefore, the timing function of the client can be used to set a period time for reading the database, namely a data updating period in the user interface, so that the processing resource of the client side can be reasonably planned.
Further, as shown in fig. 6, the local area network OTA firmware upgrading device provided by the embodiment of the invention further includes: a query unit 212, an acquisition unit 213, and a second judgment unit 214.
A query unit 212, configured to query, in the specified database, whether upgrade entry record information corresponding to the target device identifier exists according to a second preset time period;
an obtaining unit 213, configured to obtain a current system time when the querying unit 212 determines that no upgrade entry record information corresponding to the target device identifier exists in the specified database;
a second determining unit 214, configured to determine whether a time difference between the current system time and a start time of the firmware upgrade task reaches a preset threshold;
the second determining unit 214 is further configured to determine that the device firmware upgrade operation corresponding to the target device identifier is timeout when it is determined that the time difference between the current system time and the start time of the firmware upgrade task is up to a preset threshold.
In an embodiment of the present invention, the data information stored in the database may include: the database is actually used for storing all devices meeting the actual requirement of a user, and particularly blank information in some data dimensions according to the data dimensions in the database, especially for future firmware upgrading tasks. For the current round of firmware upgrading task, whether a reply message fed back by the device end is received or not can be indirectly judged by monitoring whether upgrading entry record information corresponding to each device in the database is empty, and then the firmware upgrading operation time corresponding to the next device needing firmware upgrading can be indirectly monitored.
For example, it is monitored and determined whether the time difference between the current system time and the start time of the firmware upgrade task reaches a preset threshold, and if so, it is determined that the firmware upgrade task corresponding to the device has timed out.
In summary, in combination with the local area network OTA firmware upgrading method applied to the device side and the client side provided by the embodiment of the present invention, a local area network OTA firmware upgrading system is implemented, and in this system, data interaction exists between the device side and the client side, as shown in fig. 7, the specific implementation steps may include:
s301, configuring a specific service set identifier of a router, wherein the specific service set identifier is a local area network OTA firmware upgrading service special for supporting equipment.
S302, a broadcast message is sent to different devices in a local area network, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, the firmware identifier to be upgraded and the source version number are used for judging whether firmware upgrading is needed by the devices, and the target version number and the firmware upgrading file downloading address are used for supporting the devices to execute firmware upgrading operation when the devices judge that the firmware upgrading is needed.
S303, receiving a broadcast message sent by a client by monitoring a protocol message in a local area network, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address.
S304, judging whether the current firmware of the equipment needs to execute firmware upgrading operation or not according to the firmware identification to be upgraded and the source version number corresponding to the firmware identification to be upgraded in the broadcast message.
S305, if the current firmware is determined to be required to execute the firmware upgrading operation, downloading a firmware upgrading packet corresponding to the target version number according to the firmware upgrading file downloading address.
S306, carrying out firmware upgrading operation on the current firmware according to the firmware upgrading packet.
S307, receiving reply messages fed back by different devices by monitoring protocol messages in the local area network.
In summary, the embodiment of the invention provides a local area network OTA firmware upgrading device, method and system, which is to access a client and a plurality of devices into a local area network, wherein the client sends a broadcast message in the local area network, and different devices can obtain corresponding firmware upgrading packets by monitoring a protocol message in the local area network to receive the broadcast message, because the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, after receiving such broadcast message, one device can judge whether the current firmware of the device needs to execute firmware upgrading operation according to the source version number corresponding to the firmware identifier to be upgraded and can obtain the corresponding firmware upgrading packet according to the target version number and the firmware upgrading file downloading address on the premise of judging that the firmware upgrading operation is needed, so that the upgrading operation of the current firmware is completed. Compared with the prior art, the method solves the problems that the equipment is damaged and the efficiency is low due to the fact that repeated plate disassembly and plate sealing are needed to finish the firmware upgrading of the equipment, and the firmware upgrading method adopted by the embodiment of the invention does not need to disassemble the plate again for the equipment with the sealed plate, but realizes the equipment firmware upgrading by using an in-local-area-network air downloading method, so that the equipment is prevented from being damaged by repeated plate disassembly and plate sealing processes, and the firmware upgrading operation is simple and the efficiency is higher.
The embodiment of the invention provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program realizes the local area network OTA firmware upgrading method on the equipment side and the client side when being executed by a processor.
The embodiment of the invention provides electronic equipment, which comprises: the local area network OTA firmware upgrading method comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the local area network OTA firmware upgrading method on the equipment side and the client side when executing the computer program.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (14)

1. An apparatus for upgrading firmware of an OTA in a local area network, which is applied to a device side, the apparatus comprising:
the searching unit is used for searching a specific service set identifier which is a local area network OTA firmware upgrading service special for supporting equipment;
the access unit is used for accessing the local area network corresponding to the specific service set identifier according to the specific service set identifier searched by the search unit;
the first monitoring unit is used for monitoring protocol messages in the local area network;
the first receiving unit is used for receiving a broadcast message sent by a client, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, and the client is a firmware upgrading service management client and is used for managing firmware state information of a plurality of different devices;
the first judging unit is used for judging whether the current firmware of the equipment needs to execute firmware upgrading operation according to the firmware identification to be upgraded and the source version number corresponding to the firmware identification to be upgraded in the broadcast message received by the first receiving unit;
The downloading unit is used for downloading a firmware upgrade package corresponding to the target version number according to the firmware upgrade file downloading address when the first judging unit determines that the current firmware is required to execute firmware upgrade operation;
and the upgrading unit is used for carrying out firmware upgrading operation on the current firmware according to the firmware upgrading packet downloaded by the downloading unit.
2. The apparatus according to claim 1, wherein the first judging unit includes:
the comparison module is used for comparing whether the firmware identification to be upgraded is the same as the firmware identification of the current firmware;
the determining module is used for determining that the current firmware is not required to be updated when the comparison module obtains that the firmware identification to be updated is different from the firmware identification of the current firmware;
the comparison module is further configured to compare whether a source version number corresponding to the firmware identifier to be upgraded is the same as a version number of the current firmware when the firmware identifier to be upgraded is the same as the firmware identifier of the current firmware;
the determining module is further configured to determine that the current firmware needs to perform a firmware upgrade operation when the comparing module obtains that a source version number corresponding to the firmware identifier to be upgraded is the same as a version number of the current firmware;
And the determining module is further configured to determine that the current firmware is not required to be upgraded when the comparing module obtains that the source version number corresponding to the firmware identifier to be upgraded is different from the version number of the current firmware.
3. The apparatus of claim 1, wherein the apparatus further comprises:
the first adding unit is used for adding an upgrade completion identification to equipment where the current firmware is located after carrying out firmware upgrade operation on the current firmware according to the firmware upgrade package;
the first storage unit is used for storing the upgrading completion identification added by the first adding unit into the nonvolatile memory;
the searching unit is used for searching whether the equipment is added with the upgrading completion identification or not when other broadcast messages are received in a preset time period;
and the neglecting unit is used for neglecting the other broadcast messages when the searching unit searches that the equipment is added with the upgrading completion identification.
4. A device according to any one of claims 1 to 3, wherein the upgrade unit comprises:
the storage module is used for storing the firmware upgrade package into a preset firmware storage area;
The triggering module is used for triggering and restarting the operation of the equipment;
and the loading module is used for loading the firmware file in the firmware upgrade package into the random access memory of the equipment to run after the equipment is restarted and electrified.
5. A device according to any one of claims 1 to 3, further comprising:
the generating unit is used for generating a first reply message after the firmware upgrading operation is completed on the current firmware when the current firmware is determined to be the firmware upgrading operation to be executed;
the generating unit is further configured to generate a second reply message when it is determined that the current firmware is to perform the firmware upgrade operation, but the firmware upgrade operation fails on the current firmware;
the generating unit is further configured to generate a third reply packet when it is determined that the current firmware is not required to perform a firmware upgrade operation;
and the feedback unit is used for feeding back the first reply message, the second reply message or the third reply message obtained by the generating unit to the client.
6. An apparatus for upgrading firmware of an OTA in a local area network, which is applied to a client, wherein the client is a firmware upgrade service management client and is used for managing firmware state information of a plurality of different devices, and the apparatus comprises:
A configuration unit, configured to configure a specific service set identifier of the router, where the specific service set identifier is a local area network OTA firmware upgrade service dedicated to a supporting device, and is configured to search the specific service set identifier based on different devices to access a local area network corresponding to the specific service set identifier;
a sending unit, configured to send a broadcast message to different devices in the local area network, where the broadcast message includes at least a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded, and a firmware upgrade file download address, where the firmware identifier to be upgraded and the source version number are used for the device to determine whether firmware upgrade is required, and the target version number and the firmware upgrade file download address are used for supporting the device to execute firmware upgrade operation when the device determines that firmware upgrade is required;
the second monitoring unit is used for monitoring the protocol message in the local area network;
and the second receiving unit is used for monitoring the protocol message in the local area network through the second monitoring unit and receiving the reply message fed back by the different equipment.
7. The apparatus of claim 6, wherein the apparatus further comprises:
The second storage unit is used for storing the reply message into a message queue after receiving the reply message fed back by the different equipment by monitoring the protocol message in the local area network;
the extraction unit is used for extracting the reply messages from the message queue one by one when the number of the reply messages in the message queue reaches a preset threshold value;
the analyzing unit is configured to analyze target data information from the extracted reply message, where the target data information at least includes a physical address and an IP address of a device, a current version number of firmware of the device, and firmware upgrade status information, where the upgrade status information is used to indicate whether the firmware of the device performs a firmware upgrade operation.
8. The apparatus according to claim 6 or 7, characterized in that the apparatus further comprises:
the second adding unit is used for responding to an additional information operation instruction added to the target data information, adding a firmware target version number corresponding to the equipment and a timestamp corresponding to the received reply message to the target data information;
the determining unit is used for taking the target data information added with the additional information as upgrade entry record information corresponding to the reply message;
The second storage unit is further configured to store the upgrade entry record information into a specified database.
9. The apparatus of claim 8, wherein a mapping relationship between device identification and upgrade entry record information is maintained in the specified database, the apparatus further comprising:
the reading unit is used for reading upgrade entry record information corresponding to a target equipment identifier from the appointed database according to a first preset time period, wherein the target equipment identifier is an equipment identifier selected by a firmware upgrade task;
and the updating unit is used for updating the firmware state information corresponding to the target equipment, which is displayed in the window interface provided by the client, according to the upgrade entry record information corresponding to the target equipment identifier.
10. A local area network, OTA, firmware upgrade system, the system comprising: local area network OTA firmware upgrading device applied to equipment side according to any one of claims 1-5 and local area network OTA firmware upgrading device applied to client side according to any one of claims 6-9.
11. A method for upgrading firmware of an OTA (over the air) on a local area network, which is applied to a device side, the method comprising:
Searching a specific service set identifier, wherein the specific service set identifier is a local area network OTA firmware upgrading service special for supporting equipment;
accessing a local area network corresponding to the specific service set identifier according to the searched specific service set identifier;
receiving a broadcast message sent by a client by monitoring a protocol message in a local area network, wherein the broadcast message at least comprises a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, and the client is a firmware upgrading service management client and is used for managing firmware state information of a plurality of different devices;
judging whether the current firmware of the equipment needs to execute firmware upgrading operation or not according to the firmware identification to be upgraded and the source version number corresponding to the firmware identification to be upgraded in the broadcast message;
if the current firmware is determined to be required to execute the firmware upgrading operation, downloading a firmware upgrading packet corresponding to the target version number according to the firmware upgrading file downloading address;
and carrying out firmware upgrading operation on the current firmware according to the firmware upgrading packet.
12. The local area network OTA firmware upgrading method is characterized by being applied to a client, wherein the client is a firmware upgrading service management client and is used for managing firmware state information of a plurality of different devices, and the method comprises the following steps:
Configuring a specific service set identifier of a router, wherein the specific service set identifier is a local area network OTA firmware upgrading service special for supporting equipment and is used for searching the specific service set identifier based on different equipment to access a local area network corresponding to the specific service set identifier;
transmitting broadcast messages to different devices in the local area network, wherein the broadcast messages at least comprise a firmware identifier to be upgraded, a source version number and a target version number corresponding to the firmware identifier to be upgraded and a firmware upgrading file downloading address, the firmware identifier to be upgraded and the source version number are used for judging whether firmware upgrading is needed by the devices, and the target version number and the firmware upgrading file downloading address are used for supporting the devices to execute firmware upgrading operation when the devices judge that the firmware upgrading is needed;
and receiving the reply message fed back by the different equipment by monitoring the protocol message in the local area network.
13. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the local area network OTA firmware upgrade method of claim 11;
Alternatively, the computer program when executed by a processor implements the local area network OTA firmware upgrade method of claim 12.
14. An electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the local area network OTA firmware upgrade method of claim 11 when executing the computer program;
alternatively, the processor, when executing the computer program, implements the local area network OTA firmware upgrade method of claim 12.
CN202111249369.2A 2021-10-26 2021-10-26 Local area network OTA firmware upgrading device, method and system Active CN113992739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111249369.2A CN113992739B (en) 2021-10-26 2021-10-26 Local area network OTA firmware upgrading device, method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111249369.2A CN113992739B (en) 2021-10-26 2021-10-26 Local area network OTA firmware upgrading device, method and system

Publications (2)

Publication Number Publication Date
CN113992739A CN113992739A (en) 2022-01-28
CN113992739B true CN113992739B (en) 2024-03-22

Family

ID=79741759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111249369.2A Active CN113992739B (en) 2021-10-26 2021-10-26 Local area network OTA firmware upgrading device, method and system

Country Status (1)

Country Link
CN (1) CN113992739B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117908938A (en) * 2024-03-20 2024-04-19 Tcl通讯科技(成都)有限公司 Batch equipment upgrading method, device, medium and equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199706A (en) * 2014-09-11 2014-12-10 福州瑞芯微电子有限公司 Firmware upgrade method and device for eMMC
CN105335190A (en) * 2015-10-12 2016-02-17 广州视睿电子科技有限公司 LAN application software automatic upgrade method and device
CN105721204A (en) * 2016-01-27 2016-06-29 厦门科灿信息技术有限公司 Firmware upgrading method and system for network adapters
CN106878391A (en) * 2017-01-10 2017-06-20 厦门中控生物识别信息技术有限公司 The system and method for internet-of-things terminal firmware upgrade in LAN
CN107579863A (en) * 2017-10-17 2018-01-12 锐捷网络股份有限公司 Terminal OTA upgrade methods, apparatus and system
CN109922145A (en) * 2019-02-28 2019-06-21 深圳市盛弘电气股份有限公司 Charging pile method for upgrading software, charging pile and control equipment
CN110324193A (en) * 2019-07-31 2019-10-11 青岛海信医疗设备股份有限公司 A kind of terminal upgrade management method and device
CN110362331A (en) * 2019-07-17 2019-10-22 四川爱联科技有限公司 Smart machine carries out the method for automatically updating firmware under factory mode
CN110688133A (en) * 2019-08-28 2020-01-14 深圳绿米联创科技有限公司 Method, system and device for upgrading distributed firmware and electronic equipment
CN111367544A (en) * 2018-12-26 2020-07-03 美的集团股份有限公司 Multi-peripheral firmware upgrade control method, intelligent device, firmware and electronic device
CN111796849A (en) * 2020-07-14 2020-10-20 深圳市智莱科技股份有限公司 Firmware remote upgrading method and device
CN112486521A (en) * 2020-12-14 2021-03-12 深圳市国科亿道科技有限公司 Firmware upgrading method and system based on local area network
CN112804071A (en) * 2019-11-13 2021-05-14 中兴通讯股份有限公司 On-line upgrading method, upgrading file providing method, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110852A (en) * 2020-01-10 2021-07-13 北京小米移动软件有限公司 Firmware upgrading method and device and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199706A (en) * 2014-09-11 2014-12-10 福州瑞芯微电子有限公司 Firmware upgrade method and device for eMMC
CN105335190A (en) * 2015-10-12 2016-02-17 广州视睿电子科技有限公司 LAN application software automatic upgrade method and device
CN105721204A (en) * 2016-01-27 2016-06-29 厦门科灿信息技术有限公司 Firmware upgrading method and system for network adapters
CN106878391A (en) * 2017-01-10 2017-06-20 厦门中控生物识别信息技术有限公司 The system and method for internet-of-things terminal firmware upgrade in LAN
CN107579863A (en) * 2017-10-17 2018-01-12 锐捷网络股份有限公司 Terminal OTA upgrade methods, apparatus and system
CN111367544A (en) * 2018-12-26 2020-07-03 美的集团股份有限公司 Multi-peripheral firmware upgrade control method, intelligent device, firmware and electronic device
CN109922145A (en) * 2019-02-28 2019-06-21 深圳市盛弘电气股份有限公司 Charging pile method for upgrading software, charging pile and control equipment
CN110362331A (en) * 2019-07-17 2019-10-22 四川爱联科技有限公司 Smart machine carries out the method for automatically updating firmware under factory mode
CN110324193A (en) * 2019-07-31 2019-10-11 青岛海信医疗设备股份有限公司 A kind of terminal upgrade management method and device
CN110688133A (en) * 2019-08-28 2020-01-14 深圳绿米联创科技有限公司 Method, system and device for upgrading distributed firmware and electronic equipment
CN112804071A (en) * 2019-11-13 2021-05-14 中兴通讯股份有限公司 On-line upgrading method, upgrading file providing method, equipment and storage medium
CN111796849A (en) * 2020-07-14 2020-10-20 深圳市智莱科技股份有限公司 Firmware remote upgrading method and device
CN112486521A (en) * 2020-12-14 2021-03-12 深圳市国科亿道科技有限公司 Firmware upgrading method and system based on local area network

Also Published As

Publication number Publication date
CN113992739A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN103530199B (en) A kind of method, Apparatus and system repairing running software mistake
WO2021072861A1 (en) Application service processing method and apparatus, and terminal and storage medium
CN106549789B (en) Method and system for realizing server installation
WO2020224238A1 (en) Blockchain node depolyment method, device and equipment, and storage medium
WO2020248375A1 (en) Method and system for synchronizing data between databases, computer device and storage medium
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN110543324B (en) Plug-in increment updating method and device for application program
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
CN111045893B (en) Method, device and system for executing monitoring task, storage medium and electronic device
CN109254765B (en) Timing task management method, device, computer equipment and storage medium
CN113992739B (en) Local area network OTA firmware upgrading device, method and system
CN105871568B (en) Software upgrading method and system
CN109408376B (en) Configuration data generation method, device, equipment and storage medium
CN113535262A (en) Method, device, equipment and storage medium for controlling starting of proxy node
CN114138296A (en) Multi-system gateway upgrading method, equipment and storage medium
CN104104701A (en) Online service configuration updating method and system
JP6042243B2 (en) Monitoring system, monitoring server, and monitoring method
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN102413488B (en) Information interacting method in automatic drive test system and equipment
CN111324374B (en) Application program registration method and device based on application performance management system
US10623492B2 (en) Service processing method, related device, and system
CN104753708A (en) Client-side startup configuration system and method
CN112653776B (en) Intelligent device searching method, computer apparatus, computer-readable storage medium
CN112306416B (en) Method and terminal for automatically reading and writing NV (network video) parameters
CN116132076B (en) Terminal binding method and device

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
CB02 Change of applicant information

Address after: Room 101, floor 1, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176

Applicant after: Beijing yisiwei Computing Technology Co.,Ltd.

Address before: Room 101, floor 1, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176

Applicant before: Beijing yisiwei Computing Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant