CN116418791A - Firmware upgrading method, firmware upgrading system, server and storage medium - Google Patents

Firmware upgrading method, firmware upgrading system, server and storage medium Download PDF

Info

Publication number
CN116418791A
CN116418791A CN202310116379.1A CN202310116379A CN116418791A CN 116418791 A CN116418791 A CN 116418791A CN 202310116379 A CN202310116379 A CN 202310116379A CN 116418791 A CN116418791 A CN 116418791A
Authority
CN
China
Prior art keywords
upgrading
upgrade
target
firmware
equipment
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
CN202310116379.1A
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 Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development 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 Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202310116379.1A priority Critical patent/CN116418791A/en
Publication of CN116418791A publication Critical patent/CN116418791A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses a firmware upgrading method, a firmware upgrading system, a server and a storage medium, wherein the provided firmware upgrading method is applied to the server and comprises the following steps: the scanning controller is in communication connection with the controller, and the controller is in communication connection with a plurality of devices; acquiring identification information and firmware information of equipment connected with a controller, acquiring a corresponding target upgrade package according to the identification information, and establishing an upgrade task; determining whether the equipment meets upgrading conditions according to version information of the equipment in the target upgrading packet and firmware information of the equipment; if the equipment meets the upgrading conditions, setting the equipment as target upgrading equipment, and adding the target upgrading equipment and a corresponding target upgrading packet into an upgrading task; and executing the upgrade task to complete the firmware upgrade of the target upgrade device. The method can rapidly acquire the upgrade packages of a plurality of devices in severe environments such as tunnels and the like, complete the firmware upgrade of the devices, and simplify the management flow of the tunnel Internet of things.

Description

Firmware upgrading method, firmware upgrading system, server and storage medium
Technical Field
The present disclosure relates to the field of mobile communications technologies, and in particular, to a firmware upgrade method, a firmware upgrade system, a server, and a storage medium.
Background
Firmware upgrade functions are the basic services that network devices must support. The online upgrade function is particularly important when the firmware of the device needs to be updated, such as security holes, software bug maintenance, self function optimization, device performance improvement and the like. The existing firmware online upgrading method only upgrades the equipment one by one in the environment of low bandwidth such as subway tunnel and unreliable network environment, and a method capable of simultaneously upgrading a plurality of firmware online is needed.
Disclosure of Invention
The firmware upgrading method, the firmware upgrading system, the server and the storage medium solve the problem that the existing firmware online upgrading method only can upgrade equipment one by one in the environments with low bandwidths such as subway tunnels and unreliable network environments.
In a first aspect, the present application provides a firmware upgrade method, which is applied to a server, and the method includes:
the scanning controller is in communication connection with the controller, and the controller is in communication connection with a plurality of devices;
acquiring identification information and firmware information of the equipment connected with the controller, acquiring a corresponding target upgrade package according to the identification information, and establishing an upgrade task;
determining whether the equipment meets upgrading conditions according to version information of the equipment and firmware information of the equipment in the target upgrading packet;
if the equipment meets the upgrading conditions, setting the equipment as target upgrading equipment, and adding the target upgrading equipment and a corresponding target upgrading packet into the upgrading task;
and executing the upgrading task to finish firmware upgrading of the target upgrading device.
In a second aspect, the present application provides a firmware upgrade system, including a server and a controller, where the server is communicatively connected to the controller, and the controller is communicatively connected to a plurality of devices;
the server acquires the identification information and the firmware information of the equipment connected with the controller, acquires a corresponding target upgrade package according to the identification information, and establishes an upgrade task; the server compares the version information of the corresponding equipment in the upgrade package with the firmware information of the equipment to judge whether the upgrade condition is met or not; if the upgrading conditions are met, the server sets the equipment as target upgrading equipment, and adds the target upgrading equipment and a corresponding target upgrading packet into the upgrading task; and the server executes the upgrading task to complete firmware upgrading of the target upgrading equipment.
In a third aspect, embodiments of the present application provide a server, including a memory and a processor;
the memory is used for storing a computer program; the processor is configured to execute the computer program and implement the steps of the firmware upgrading method provided in the embodiment of the present application when the computer program is executed.
In a fourth aspect, the present application provides a storage medium, where a computer program is stored on the provided computer readable storage medium, where the computer program when executed by a processor causes the processor to implement the steps of the firmware upgrade method provided in the embodiments of the present application.
The application provides a firmware upgrading method, a firmware upgrading system, a server and a storage medium, wherein the firmware upgrading method, the firmware upgrading system, the server and the storage medium are in communication connection with a controller through the server, identification information and firmware information of connected equipment of the controller are obtained, a corresponding target upgrading packet is obtained according to the identification information, an upgrading task is established, when upgrading conditions are met, the equipment is set as target upgrading equipment, and the upgrading task is executed to complete firmware upgrading of the target upgrading equipment. By adopting the firmware upgrading method provided by the application, the upgrading packages of a plurality of devices can be rapidly obtained in severe environments such as tunnels, the firmware upgrading of the devices is completed, and the management flow of the tunnel Internet of things is simplified.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of steps of a firmware upgrade method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a firmware upgrade method provided in an embodiment of the present application;
fig. 3a is a schematic diagram of a tunnel internet of things platform interface according to an embodiment of the present application;
fig. 3b is a schematic diagram of another tunnel internet of things platform interface according to an embodiment of the present application;
fig. 4 is a schematic diagram of another tunnel internet of things platform interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a firmware upgrade system provided by an embodiment of the present application;
fig. 6 is a schematic block diagram of a server according to an embodiment of the present application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In order to facilitate understanding of the embodiments of the present application, some of the words referred to in the embodiments of the present application are briefly described below.
OTA: OTA technology has been used in computers and mobile phones for many years, and is mature. In recent years, with the concept of everything interconnection becoming more and more interesting, the advantages and effects of OTA technology are more and more prominent in industries such as intelligent home appliances and intelligent internet-connected automobiles. With the vigorous development of the internet of things, the safety, stability and functional diversity of the internet of things equipment and products are widely concerned. The wireless download technology can safely and conveniently upgrade the firmware or software of the device. Meanwhile, the remote upgrade can also greatly reduce the cost and save the resources, and becomes one of key technologies of the Internet of things equipment and product manufacturers. In response to the national call for domestic software, OTA technology is also applied to purely domestic products.
Mqtt protocol: message queue telemetry transport (Message Queuing Telemetry Transport, MQTT) is an instant messaging protocol developed by international business machines corporation (International Business Machine, IBM) that supports all platforms, connects almost all networking items to the outside, and is used as a communication protocol for sensors and actuators (e.g., networking houses via Twitter).
3. Distributed soft bus: a distributed soft bus is a virtual, "intangible" bus. All system equipment developed based on Kaihong OS system in one local area network can be connected, and the system equipment has the characteristics of self discovery, self networking, high bandwidth, low time delay and the like. In addition to connecting hardware devices in the same network protocol, the soft bus technology also supports networking heterogeneous networks of different protocols.
Under traditional scene, two devices that need bluetooth transmission must both have bluetooth, and the device that needs WIFI transmission must both have WIFI. And data communication between Bluetooth and WIFI is impossible. The soft bus provides a Bluetooth and WIFI fusion network networking technology, and the problem that data communication is carried out by equipment with different protocols is solved. Multiple devices can automatically construct a logic full-connection network, and users or service developers do not need to care about networking modes and physical protocols.
The transmission rate of the traditional protocol has large difference, and the interactive time delay and reliability of multiple devices are difficult to ensure. Soft bus transmission proposes three goals, high bandwidth, low latency, and high reliability. Compared with a 7-layer model of a traditional network, the soft bus provides a 4-layer 'very simple protocol', the middle 4-layer protocol is simplified into one layer to promote effective load, and effective bandwidth is promoted by 20%. The equipment performs data transmission based on UDP protocol, abandons the traditional sliding window mechanism, realizes the quick recovery of packet loss, has intelligent network change sensing function, and can adapt to flow control and congestion control.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Existing firmware upgrade functions are the basic services that network devices must support. The online upgrade function is particularly important when the firmware of the device needs to be updated, such as security holes, software bug maintenance, self function optimization, device performance improvement and the like. The existing firmware online upgrading method only upgrades the equipment one by one in the environment of low bandwidth such as subway tunnel and unreliable network environment, and a method capable of simultaneously upgrading a plurality of firmware online is needed.
In order to solve the above problems, the present application provides a firmware upgrade method, a firmware upgrade system, a server and a storage medium, which are communicatively connected with a controller through the server, and acquire identification information and firmware information of a device connected with the controller, acquire a corresponding target upgrade package according to the identification information, establish an upgrade task, set the device as a target upgrade device when meeting upgrade conditions, and execute the upgrade task to complete firmware upgrade of the target upgrade device. By adopting the firmware upgrading method provided by the application, the upgrading packages of a plurality of devices can be rapidly obtained in severe environments such as tunnels, the firmware upgrading of the devices is completed, and the management flow of the tunnel Internet of things is simplified.
In some embodiments, the application environment of the firmware upgrading method may be a tunnel, may be deep sea or may be forest, and the firmware upgrading method provided in the present application aims to provide a method capable of simultaneously upgrading a plurality of firmware online in a severe environment, where the application environment is not limited by the embodiments and the drawings of the present application, and the tunnel is now described as an example.
It should be noted that, the server, the controller and the device of the firmware upgrading method provided by the present application need to carry the same operating system, so that the firmware upgrading method provided by the embodiment of the present application can be implemented in a severe environment such as a tunnel.
Specifically, the operating system needs to be an OS system supporting OpenHarmony, and the specific category is not limited by the present embodiment and the drawings, and is described below by taking the kaihong OS as an example.
In some embodiments, the controller is a KH controller carrying a KaihongOS, and is connected with a plurality of devices in a tunnel at the same time, so that device information acquisition under a severe environment can be realized, and the firmware upgrading method described in the embodiments of the present application is completed.
It should be noted that in some embodiments, the KH controller is connected to the server and the KH controller is connected to the device by adopting the MQTT protocol, and because the MQTT protocol is mainly applied to remote sensors and control devices that have limited computing power and operate in a low-bandwidth and unreliable network, the device can be upgraded online in a severe environment, and further, the firmware device is simulated through the MQTT.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating steps of a firmware upgrade method according to an embodiment of the present application.
As shown in fig. 1, the control method of the experimental box specifically includes steps S101 to S105.
S101, a scanning controller is in communication connection with the controller, and the controller is in communication connection with a plurality of devices.
Specifically, related personnel establish communication connection between the controller and the server, so as to provide a communication foundation for the firmware upgrading method provided by the embodiment of the application.
In some embodiments, related personnel can establish communication connection between the server and the controller through the inspection equipment, the inspection equipment can be a mobile phone, a tablet computer or a notebook computer, the inspection equipment can be replaced according to personal conditions of the inspection personnel, and the inspection equipment only needs to support a connection protocol of the Kaihong OS and has a scanning function to realize connection between the controller and the server.
S102, acquiring identification information and firmware information of the equipment connected with the controller, acquiring a corresponding target upgrade package according to the identification information, and establishing an upgrade task.
Specifically, the server can acquire the upgrade package corresponding to the equipment through the identification information by acquiring the identification information and the firmware information of the equipment connected with the controller, and establish a corresponding upgrade task.
In some embodiments, the identification information may be a number of the device, may be a name of the device, and may quickly search for a corresponding upgrade package through the identification information server, so as to implement online firmware upgrade of the device.
S103, determining whether the equipment meets upgrading conditions according to the version information of the equipment and the firmware information of the equipment in the target upgrading packet.
Specifically, the server can judge whether the device meets the upgrade conditions by matching the obtained version information of the target upgrade package with the device firmware information, so as to quickly confirm whether the device needs to be upgraded.
Illustratively, in some embodiments, when the version number in the version information of the target upgrade package is greater than the version number of the device firmware information, then the device is deemed to be eligible for an upgrade.
S104, if the equipment meets the upgrading conditions, setting the equipment as target upgrading equipment, and adding the target upgrading equipment and a corresponding target upgrading packet into the upgrading task.
Specifically, if the device meets the upgrade condition, the server sets the device as the target upgrade device, and adds the corresponding upgrade package into the upgrade task. The target upgrading equipment which is connected with the controller and needs to be upgraded can be quickly obtained, and the upgrading package is added into the upgrading task one by one.
S105, executing the upgrading task to complete firmware upgrading of the target upgrading device.
Specifically, by executing the upgrade task, firmware upgrade of all target upgrade devices can be completed, and then online upgrade of the devices under severe environments is realized.
In some embodiments, as shown in fig. 2, fig. 2 is a schematic diagram of a firmware upgrade method provided in an embodiment of the present application. In fig. 2, a tunnel internet of things platform is installed on the server; before the corresponding target upgrade package is obtained according to the identification information, the method comprises the following steps: when a user logs in the tunnel internet of things platform, acquiring authority information of the user through the tunnel internet of things platform; and if the authority information comprises equipment upgrading authority, acquiring a corresponding target upgrading packet according to the identification information.
Exemplary, as shown in fig. 2, a cube500 OTA server submits an OT a upgrade package through VPN login deployment, then a device IP list is obtained from a tunnel internet of things platform, and after the login account is approved by the tunnel internet of things platform, the corresponding device can be subjected to MQTT OTA upgrade according to the corresponding device IP.
Illustratively, in some embodiments, as shown in fig. 2, after the adding the target upgrade device and the corresponding target upgrade package to the upgrade task, the method further includes: after the user passes the examination and verification of the upgrading task through the tunnel Internet of things platform, the upgrading task is executed through the tunnel Internet of things platform, and the upgrading of the target upgrading device is completed.
As shown in fig. 3a and fig. 3b, fig. 3a is a schematic view of a tunnel internet of things platform interface provided in an embodiment of the present application, and fig. 3b is a schematic view of another tunnel internet of things platform interface provided in an embodiment of the present application. In fig. 3a, since an error may occur in the operation of the whole environment under the tunnel environment if no manual audit is performed, the tunnel firmware upgrade is audited on the tunnel internet of things platform by adding a manual operation, and after the audit is completed, the tunnel internet of things platform displays the interface shown in fig. 3b, so that the security of the firmware upgrade method provided by the embodiment of the present application can be ensured.
In some embodiments, the server is provided with an upgrade package library, and the upgrade package library includes a plurality of upgrade packages and preset identification information of the upgrade packages; the step of obtaining the corresponding target upgrade package according to the identification information comprises the following steps: matching the identification information with the preset identification information in the upgrade package library; determining an upgrade package corresponding to the preset identification information which is successfully matched as the target upgrade package; and acquiring the target upgrade package from the upgrade package library.
Exemplary, in some embodiments, as shown in fig. 4, fig. 4 is a schematic view of yet another tunnel internet of things platform interface provided in an embodiment of the present application. In fig. 4, after the setting the device as the target upgrade device, the method further includes: uploading a firmware upgrade package corresponding to the target upgrade device, and acquiring version information of the firmware upgrade package and the target upgrade package; determining whether version information of the firmware upgrade package and the target upgrade package accords with an updating condition; and if the version information of the firmware upgrading package and the version information of the target upgrading package meet the updating conditions, adding the target upgrading device and the corresponding firmware upgrading package into the upgrading task. When the version of the upgrade package on the server is behind or the corresponding upgrade package cannot be searched, the corresponding upgrade package can be uploaded through the tunnel Internet of things platform, and the firmware upgrade method provided by the embodiment of the application is completed.
In some embodiments, the performing the upgrade task completes a firmware upgrade to the target upgrade device, comprising: and sending the address information of the target upgrade package to the controller, and downloading the target upgrade package by the controller according to the address information so as to finish firmware upgrade of the target upgrade equipment.
The controller can rapidly download the upgrade package of the equipment according to the address information, so that the firmware upgrade method provided by the embodiment of the application is very conveniently completed.
In some embodiments, after the controller downloads the target upgrade package according to the address information, the method further includes: acquiring a downloading result of the target upgrade package, and controlling the controller to download the target upgrade package again when the downloading fails; and when the downloading times of the target upgrade package exceeds the preset times, generating abnormal information to warn a user to check the downloading condition of the target upgrade package.
After the firmware is upgraded, the firmware upgrading party provided by the application can verify the upgrading result, and the downloading is carried out again if the downloading fails, when the number of times exceeds the preset number of times, as shown in fig. 2, the server can generate abnormal information to warn the user to check the downloading condition of the target upgrading packet when the number of times exceeds 3. The safety of the firmware upgrading method provided by the embodiment of the application is further improved.
In some embodiments, the performing the upgrade task completes a firmware upgrade to the target upgrade device, further comprising: in the firmware upgrading process of the target upgrading device, if the communication connection with the controller is disconnected, recording the downloading position when the communication connection is disconnected; and after the communication connection with the controller is restored, executing the upgrading task from the downloading position to complete the firmware upgrading of the target upgrading device.
Because the communication condition of the tunnel environment is bad, the phenomenon of communication interruption possibly occurs in the upgrading process, and breakpoint continuous transmission or breakpoint upgrading in the bad environment can be realized by recording the breakpoint position. And resource waste caused by repeated downloading is avoided.
The application provides a firmware upgrading method, a firmware upgrading system, a server and a storage medium, wherein the firmware upgrading method, the firmware upgrading system, the server and the storage medium are in communication connection with a controller through the server, identification information and firmware information of connected equipment of the controller are obtained, a corresponding target upgrading packet is obtained according to the identification information, an upgrading task is established, when upgrading conditions are met, the equipment is set as target upgrading equipment, and the upgrading task is executed to complete firmware upgrading of the target upgrading equipment. By adopting the firmware upgrading method provided by the application, the upgrading packages of a plurality of devices can be rapidly obtained in severe environments such as tunnels, the firmware upgrading of the devices is completed, and the management flow of the tunnel Internet of things is simplified.
The application provides a firmware upgrading method, which is characterized in that a server is in communication connection with a controller, identification information and firmware information of connected equipment of the controller are obtained, a corresponding target upgrading packet is obtained according to the identification information, an upgrading task is established, when upgrading conditions are met, the equipment is set as target upgrading equipment, and the upgrading task is executed to complete firmware upgrading of the target upgrading equipment. By adopting the firmware upgrading method provided by the application, the upgrading packages of a plurality of devices can be rapidly obtained in severe environments such as tunnels, the firmware upgrading of the devices is completed, and the management flow of the tunnel Internet of things is simplified.
As shown in fig. 5, fig. 5 is a schematic diagram of a firmware upgrade system 10 provided in an embodiment of the present application, in fig. 5, the firmware upgrade system 10 includes a server 11 and a controller 12, where the server 11 is communicatively connected to the controller 12, and the controller 12 is communicatively connected to a plurality of devices 13;
the server 11 obtains the identification information and firmware information of the device 13 connected with the controller 12, obtains a corresponding target upgrade package according to the identification information, and establishes an upgrade task; the server 11 compares the version information of the corresponding equipment 13 in the upgrade package with the firmware information of the equipment 13 to judge whether the upgrade condition is met; if the upgrade condition is met, the server 11 sets the equipment 13 as a target upgrade equipment, and adds the target upgrade equipment and a corresponding target upgrade package into the upgrade task; the server 11 performs the upgrade task to complete the firmware upgrade to the target upgrade apparatus.
By establishing communication connection between the server 11 and the controller 12, version information and firmware information of a plurality of devices 13 connected with the controller 12 can be obtained, and further online upgrading of firmware of the plurality of devices 13 can be completed under severe environments.
The application provides a firmware upgrading system, which is in communication connection with a controller through a server, acquires identification information and firmware information of connected equipment of the controller, acquires a corresponding target upgrading packet according to the identification information, establishes an upgrading task, sets the equipment as target upgrading equipment when the upgrading condition is met, and executes the upgrading task to complete firmware upgrading of the target upgrading equipment. By adopting the firmware upgrading system provided by the application, the upgrading packages of a plurality of devices can be rapidly obtained in severe environments such as a tunnel and the like, the firmware upgrading of the devices is completed, and the management flow of the tunnel Internet of things is simplified.
The application provides a server. As shown in fig. 6, fig. 6 is a schematic block diagram of a server according to an embodiment of the present application.
The server may include a processor, memory, and a network interface, among others. The processor, memory and network interface are connected by a system bus, such as an I2C (Inter-integrated Circuit) bus.
Specifically, the processor may be a Micro-controller Unit (MCU), a central processing Unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
Specifically, the Memory may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the diagnostic module to which the present application is applied, and that a particular diagnostic module may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The processor is configured to run a computer program stored in the memory, and implement corresponding steps in any one of the firmware upgrading methods provided in the embodiments of the present application when the computer program is executed.
An exemplary provided server is for the steps of:
the scanning controller is in communication connection with the controller, and the controller is in communication connection with a plurality of devices;
acquiring identification information and firmware information of the equipment connected with the controller, acquiring a corresponding target upgrade package according to the identification information, and establishing an upgrade task;
determining whether the equipment meets upgrading conditions according to version information of the equipment and firmware information of the equipment in the target upgrading packet;
if the equipment meets the upgrading conditions, setting the equipment as target upgrading equipment, and adding the target upgrading equipment and a corresponding target upgrading packet into the upgrading task;
and executing the upgrading task to finish firmware upgrading of the target upgrading device.
In some embodiments, the server is provided with a tunnel internet of things platform; before the corresponding target upgrade package is obtained according to the identification information, the method comprises the following steps: when a user logs in the tunnel internet of things platform, acquiring authority information of the user through the tunnel internet of things platform; and if the authority information comprises equipment upgrading authority, acquiring a corresponding target upgrading packet according to the identification information.
In some embodiments, after the adding the target upgrade apparatus and the corresponding target upgrade package to the upgrade task, the method further comprises: after the user passes the examination and verification of the upgrading task through the tunnel Internet of things platform, the upgrading task is executed through the tunnel Internet of things platform, and the upgrading of the target upgrading device is completed.
In some embodiments, the server is provided with an upgrade package library, and the upgrade package library includes a plurality of upgrade packages and preset identification information of the upgrade packages; the step of obtaining the corresponding target upgrade package according to the identification information comprises the following steps: matching the identification information with the preset identification information in the upgrade package library; determining an upgrade package corresponding to the preset identification information which is successfully matched as the target upgrade package; and acquiring the target upgrade package from the upgrade package library.
In some embodiments, after the setting the device as the target upgrade device, the method further comprises: uploading a firmware upgrade package corresponding to the target upgrade device, and acquiring version information of the firmware upgrade package and the target upgrade package; determining whether version information of the firmware upgrade package and the target upgrade package accords with an updating condition; and if the version information of the firmware upgrading package and the version information of the target upgrading package meet the updating conditions, adding the target upgrading device and the corresponding firmware upgrading package into the upgrading task.
In some embodiments, the performing the upgrade task completes a firmware upgrade to the target upgrade device, comprising: and sending the address information of the target upgrade package to the controller, and downloading the target upgrade package by the controller according to the address information so as to finish firmware upgrade of the target upgrade equipment.
In some embodiments, after the controller downloads the target upgrade package according to the address information, the method further includes: acquiring a downloading result of the target upgrade package, and controlling the controller to download the target upgrade package again when the downloading fails; and when the downloading times of the target upgrade package exceeds the preset times, generating abnormal information to warn a user to check the downloading condition of the target upgrade package.
In some embodiments, the performing the upgrade task completes a firmware upgrade to the target upgrade device, further comprising: in the firmware upgrading process of the target upgrading device, if the communication connection with the controller is disconnected, recording the downloading position when the communication connection is disconnected; and after the communication connection with the controller is restored, executing the upgrading task from the downloading position to complete the firmware upgrading of the target upgrading device.
It should be noted that, for convenience and brevity of description, specific working processes of the above-described computer device may refer to corresponding processes in the foregoing firmware upgrade method embodiment, which are not described herein.
An embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program includes program instructions, and the processor executes the program instructions to implement the steps of the firmware upgrading method provided in the foregoing embodiment. For example, the computer program is loaded by a processor, the following steps may be performed:
the scanning controller is in communication connection with the controller, and the controller is in communication connection with a plurality of devices;
acquiring identification information and firmware information of the equipment connected with the controller, acquiring a corresponding target upgrade package according to the identification information, and establishing an upgrade task;
determining whether the equipment meets upgrading conditions according to version information of the equipment and firmware information of the equipment in the target upgrading packet;
if the equipment meets the upgrading conditions, setting the equipment as target upgrading equipment, and adding the target upgrading equipment and a corresponding target upgrading packet into the upgrading task;
and executing the upgrading task to finish firmware upgrading of the target upgrading device.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The computer readable storage medium may be an internal storage unit of the computer device of the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device.
Because the computer program stored in the computer readable storage medium can execute any firmware upgrading method provided in the embodiments of the present application, the beneficial effects that any firmware upgrading method provided in the embodiments of the present application can achieve can be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A firmware upgrade method, applied to a server, the method comprising:
the scanning controller is in communication connection with the controller, and the controller is in communication connection with a plurality of devices;
acquiring identification information and firmware information of the equipment connected with the controller, acquiring a corresponding target upgrade package according to the identification information, and establishing an upgrade task;
determining whether the equipment meets upgrading conditions according to version information of the equipment and firmware information of the equipment in the target upgrading packet;
if the equipment meets the upgrading conditions, setting the equipment as target upgrading equipment, and adding the target upgrading equipment and a corresponding target upgrading packet into the upgrading task;
and executing the upgrading task to finish firmware upgrading of the target upgrading device.
2. The firmware upgrade method of claim 1, wherein a tunnel internet of things platform is installed on the server; before the corresponding target upgrade package is obtained according to the identification information, the method comprises the following steps:
when a user logs in the tunnel internet of things platform, acquiring authority information of the user through the tunnel internet of things platform;
and if the authority information comprises equipment upgrading authority, acquiring a corresponding target upgrading packet according to the identification information.
3. The firmware upgrade method of claim 2, wherein after said adding the target upgrade apparatus and the corresponding target upgrade package to the upgrade task, the method further comprises:
after the user passes the examination and verification of the upgrading task through the tunnel Internet of things platform, the upgrading task is executed through the tunnel Internet of things platform, and the upgrading of the target upgrading device is completed.
4. The firmware upgrade method according to claim 1, wherein an upgrade package library is mounted on the server, the upgrade package library including a plurality of the upgrade packages and preset identification information of the upgrade packages; the step of obtaining the corresponding target upgrade package according to the identification information comprises the following steps:
matching the identification information with the preset identification information in the upgrade package library;
determining an upgrade package corresponding to the preset identification information which is successfully matched as the target upgrade package;
and acquiring the target upgrade package from the upgrade package library.
5. The firmware upgrade method of claim 4, wherein after said setting the device as a target upgrade device, the method further comprises:
uploading a firmware upgrade package corresponding to the target upgrade device, and acquiring version information of the firmware upgrade package and the target upgrade package;
determining whether version information of the firmware upgrade package and the target upgrade package accords with an updating condition;
and if the version information of the firmware upgrading package and the version information of the target upgrading package meet the updating conditions, adding the target upgrading device and the corresponding firmware upgrading package into the upgrading task.
6. The firmware upgrade method of claim 1, wherein said performing the upgrade task completes a firmware upgrade to the target upgrade device, comprising:
and sending the address information of the target upgrade package to the controller, and downloading the target upgrade package by the controller according to the address information so as to finish firmware upgrade of the target upgrade equipment.
7. The firmware upgrade method of claim 6, further comprising, after the controller downloads the target upgrade package according to the address information:
acquiring a downloading result of the target upgrade package, and controlling the controller to download the target upgrade package again when the downloading fails;
and when the downloading times of the target upgrade package exceeds the preset times, generating abnormal information to warn a user to check the downloading condition of the target upgrade package.
8. The firmware upgrade method of claim 1, wherein the performing the upgrade task completes the firmware upgrade to the target upgrade device, further comprising:
in the firmware upgrading process of the target upgrading device, if the communication connection with the controller is disconnected, recording the downloading position when the communication connection is disconnected;
and after the communication connection with the controller is restored, executing the upgrading task from the downloading position to complete the firmware upgrading of the target upgrading device.
9. A firmware upgrade system, comprising a server and a controller, wherein the server is in communication connection with the controller, and the controller is in communication connection with a plurality of devices;
the server acquires the identification information and the firmware information of the equipment connected with the controller, acquires a corresponding target upgrade package according to the identification information, and establishes an upgrade task; the server compares the version information of the corresponding equipment in the upgrade package with the firmware information of the equipment to judge whether the upgrade condition is met or not; if the upgrading conditions are met, the server sets the equipment as target upgrading equipment, and adds the target upgrading equipment and a corresponding target upgrading packet into the upgrading task; and the server executes the upgrading task to complete firmware upgrading of the target upgrading equipment.
10. A server comprising a memory and a processor;
the memory is used for storing a computer program;
the processor being configured to execute the computer program and to implement the steps of the firmware upgrade method according to any one of claims 1 to 8 when the computer program is executed.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, causes the processor to implement the steps of the firmware upgrade method according to any of claims 1 to 8.
CN202310116379.1A 2023-01-31 2023-01-31 Firmware upgrading method, firmware upgrading system, server and storage medium Pending CN116418791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310116379.1A CN116418791A (en) 2023-01-31 2023-01-31 Firmware upgrading method, firmware upgrading system, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310116379.1A CN116418791A (en) 2023-01-31 2023-01-31 Firmware upgrading method, firmware upgrading system, server and storage medium

Publications (1)

Publication Number Publication Date
CN116418791A true CN116418791A (en) 2023-07-11

Family

ID=87048745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310116379.1A Pending CN116418791A (en) 2023-01-31 2023-01-31 Firmware upgrading method, firmware upgrading system, server and storage medium

Country Status (1)

Country Link
CN (1) CN116418791A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880789A (en) * 2024-03-13 2024-04-12 四川九通智路科技有限公司 Bluetooth-based remote information upgrading method for Internet of things on-vehicle dimming system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880789A (en) * 2024-03-13 2024-04-12 四川九通智路科技有限公司 Bluetooth-based remote information upgrading method for Internet of things on-vehicle dimming system
CN117880789B (en) * 2024-03-13 2024-05-03 四川九通智路科技有限公司 Bluetooth-based remote information upgrading method for Internet of things on-vehicle dimming system

Similar Documents

Publication Publication Date Title
JP5241440B2 (en) System and method for creating and communicating with component-based wireless applications
US9872205B2 (en) Method and system for sideband communication architecture for supporting manageability over wireless LAN (WLAN)
CN111061491B (en) LXC container technology-based edge computing gateway management system and method
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
US11461206B2 (en) Cloud simulation and validation system
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US20220075609A1 (en) System and method for application release orchestration and deployment
CN112272118A (en) Network repairing method, device, storage medium and electronic equipment
CN1973282A (en) System and method for managing a change to a cluster configuration
CN116418791A (en) Firmware upgrading method, firmware upgrading system, server and storage medium
JP2018092565A (en) Cloud relay device, cloud connection processing method, and program
CN114926163A (en) Resource cross-chain transfer method and device
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN114296953A (en) Multi-cloud heterogeneous system and task processing method
KR100818962B1 (en) Method for managing remote mobile device
CN116389323A (en) Throughput test method, device and storage medium
CN103491557A (en) Processing method and device for base station upgrading data
CN110275701A (en) Data processing method, device, medium and calculating equipment
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN104348646A (en) Configuration data processing method, device and system
US10601635B1 (en) Apparatus, system, and method for wireless management of a distributed computer system
CN101399784A (en) Communication system, communication method, communication control program and program recording medium
WO2020051124A1 (en) Flashing firmware via over-the-air enabled devices

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