CN117389594A - Firmware upgrading method and device, electronic equipment and storage medium - Google Patents

Firmware upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117389594A
CN117389594A CN202311471203.4A CN202311471203A CN117389594A CN 117389594 A CN117389594 A CN 117389594A CN 202311471203 A CN202311471203 A CN 202311471203A CN 117389594 A CN117389594 A CN 117389594A
Authority
CN
China
Prior art keywords
upgraded
broadcasting system
equipment
firmware
public broadcasting
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
CN202311471203.4A
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.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangdong Baolun Electronics 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 Guangdong Baolun Electronics Co ltd filed Critical Guangdong Baolun Electronics Co ltd
Priority to CN202311471203.4A priority Critical patent/CN117389594A/en
Publication of CN117389594A publication Critical patent/CN117389594A/en
Pending legal-status Critical Current

Links

Classifications

    • 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 Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a firmware upgrading method, a firmware upgrading device, electronic equipment and a storage medium. The method comprises the following steps: responding to the selection operation of a plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, and determining a plurality of equipment to be upgraded of the public broadcasting system; responding to the selection operation of the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system, and acquiring the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system; and respectively transmitting firmware upgrading data packets corresponding to the plurality of devices to be upgraded in the public broadcasting system to each device to be upgraded in the public broadcasting system so that each device to be upgraded in the public broadcasting system can simultaneously carry out firmware upgrading, and the firmware upgrading efficiency of the devices in the public broadcasting system is improved.

Description

Firmware upgrading method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of public address technologies, and in particular, to a firmware upgrade method, apparatus, electronic device, and storage medium.
Background
In the field of public address technology, device firmware upgrades are a critical task to ensure that public address system performance and functionality is improved.
The traditional equipment firmware is upgraded independently in a mode of disassembling the downloading device, and the problem of low equipment firmware upgrading efficiency exists in a public broadcasting system.
Disclosure of Invention
The invention provides a firmware upgrading method, a firmware upgrading device, electronic equipment and a storage medium, so as to improve equipment firmware upgrading efficiency of a public broadcasting system.
According to an aspect of the present invention, there is provided a firmware upgrade method, including:
responding to the selection operation of a plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, and determining a plurality of equipment to be upgraded of the public broadcasting system;
responding to the selection operation of the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system, and acquiring the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system;
and respectively transmitting firmware upgrading data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system to each device to be upgraded in the public broadcasting system so as to enable each device to be upgraded in the public broadcasting system to simultaneously carry out firmware upgrading.
According to another aspect of the present invention, there is provided a firmware upgrade apparatus, comprising:
the equipment to be upgraded selecting module is used for responding to the selecting operation of a plurality of equipment elements of the public broadcasting system in the equipment upgrading interface and determining a plurality of equipment to be upgraded of the public broadcasting system;
the upgrade data packet acquisition module is used for responding to the selection operation of the firmware upgrade data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system and acquiring the firmware upgrade data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system;
and the equipment batch upgrading module is used for respectively sending firmware upgrading data packets corresponding to a plurality of equipment to be upgraded in the public broadcasting system to each equipment to be upgraded in the public broadcasting system so as to enable each equipment to be upgraded in the public broadcasting system to simultaneously carry out firmware upgrading.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the firmware upgrade method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a firmware upgrade method according to any one of the embodiments of the present invention.
According to the technical scheme, the electronic equipment responds to the selection operation of the user on the plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, the determination of the plurality of equipment to be upgraded of the public broadcasting system is realized, the selection operation of the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system is further responded, the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system is obtained, the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system is further respectively sent to all the equipment to be upgraded in the public broadcasting system, so that all the equipment to be upgraded in the public broadcasting system can be simultaneously subjected to firmware upgrading, batch upgrading of the equipment in the public broadcasting system is realized, and therefore the upgrading efficiency of the equipment in the public broadcasting system is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a firmware upgrade method provided according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a device upgrade interface provided in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a firmware upgrade method provided according to an embodiment of the present invention;
FIG. 4 is a flow chart of a firmware upgrade method provided according to an embodiment of the present invention;
FIG. 5 is a flow chart of a method for upgrading firmware of a public address system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a firmware upgrade apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device implementing a firmware upgrade method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flowchart of a firmware upgrading method provided in an embodiment of the present invention, where the embodiment is applicable to a case of batch upgrading of devices in a public broadcasting system, the method may be performed by a firmware upgrading device, the firmware upgrading device may be implemented in a form of hardware and/or software, and the firmware upgrading device may be configured in electronic devices such as a terminal, a server, and the like. As shown in fig. 1, the method includes:
s110, responding to the selection operation of a plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, and determining a plurality of equipment to be upgraded of the public broadcasting system.
In the embodiment of the present disclosure, the public address system is a sound amplifying system, for example, the public address system may be a broadcast system in a theatre, a stadium, a station, a bank, a factory, or the like. Devices in the public address system may include, but are not limited to, signal amplifiers, feedback suppressors, speakers, and the like.
For example, a user may select a plurality of feedback suppressors or other devices in a public broadcasting system through a device upgrade interface, and each feedback suppressor or other device is displayed in the device upgrade interface as a device to be upgraded.
Alternatively, the multiple devices to be upgraded of the common broadcast system may be feedback suppressors using the same chip or feedback suppressors using different chips.
It should be noted that, in the embodiment of the present disclosure, multiple feedback suppressors using the same chip may be updated at the same time, or multiple feedback suppressors using different chips may be updated at the same time, and specifically may be selected according to the update requirement, which is not limited in any way.
S120, responding to the selection operation of the firmware upgrading data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system, and obtaining the firmware upgrading data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system.
In the embodiment of the disclosure, the firmware upgrade data packet refers to a data packet for upgrading equipment in a public broadcasting system, and can be used for perfecting functions of the public broadcasting system, repairing system holes and the like. The firmware upgrading data packet can be a data packet for carrying out firmware upgrading on each device to be upgraded, and can also be composed of a plurality of sub-data packets, wherein each sub-data packet is used for carrying out firmware upgrading on the corresponding device to be upgraded.
For example, a user may obtain, through the device upgrade interface, a firmware upgrade data packet corresponding to the feedback inhibitor or other devices from a preset storage path, for upgrading the feedback inhibitor or other devices.
S130, respectively sending firmware upgrading data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system to each device to be upgraded in the public broadcasting system, so that each device to be upgraded in the public broadcasting system can simultaneously carry out firmware upgrading.
In the embodiment of the disclosure, the terminal and the device to be upgraded may transmit the firmware upgrade data packet through a transmission control protocol (Transmission Control Protocol, TCP), and the terminal may send the firmware upgrade data packet to each feedback inhibitor in the public broadcasting system, respectively, so that each feedback inhibitor performs firmware upgrade simultaneously according to the firmware upgrade data packet.
Fig. 2 is a schematic diagram of an apparatus upgrade interface according to an embodiment of the present invention. In the equipment upgrading interface, a user can select a plurality of equipment to be upgraded and select a firmware upgrading data packet; in the firmware upgrading process, the equipment upgrading interface can display the upgrading progress of each equipment to be upgraded so as to realize real-time monitoring of the firmware upgrading of the public broadcasting system.
According to the technical scheme, the electronic equipment is used for determining a plurality of equipment to be upgraded of the public broadcasting system by responding to the selection operation of the user on the plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, further obtaining the firmware upgrading data packets corresponding to the plurality of equipment to be upgraded of the public broadcasting system by responding to the selection operation of the firmware upgrading data packets corresponding to the plurality of equipment to be upgraded of the public broadcasting system, and further respectively sending the firmware upgrading data packets corresponding to the plurality of equipment to be upgraded of the public broadcasting system to each equipment to be upgraded in the public broadcasting system so that the equipment to be upgraded in the public broadcasting system can be simultaneously subjected to firmware upgrading, and batch upgrading of the equipment in the public broadcasting system is realized, so that the upgrading efficiency of the equipment in the public broadcasting system is improved.
Fig. 3 is a flowchart of a firmware upgrading method according to an embodiment of the present invention, where the method according to the present embodiment may be combined with each of the alternatives in the firmware upgrading method provided in the foregoing embodiment. The firmware upgrading method provided by the embodiment is further optimized. Optionally, after obtaining firmware upgrade data packets corresponding to a plurality of devices to be upgraded in the public broadcast system, the method further includes: and checking the firmware upgrading data packet, and if the checking result is that the checking result is passed, establishing connection with each device to be upgraded in the public broadcasting system.
As shown in fig. 3, the method includes:
s210, responding to the selection operation of a plurality of device elements of the public broadcasting system in the device upgrading interface, and determining a plurality of devices to be upgraded of the public broadcasting system.
S220, responding to the selection operation of the firmware upgrading data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system, and obtaining the firmware upgrading data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system.
And S230, checking the firmware upgrading data packet, and if the checking result is that the checking result is passed, establishing connection with each device to be upgraded in the public broadcasting system.
Specifically, after the firmware upgrading data packet is obtained, the firmware upgrading data packet can be analyzed to obtain binary data of the firmware upgrading data packet, and further the binary data of the firmware upgrading data packet is checked to ensure the effectiveness of the firmware upgrading data packet. If the verification result is that the verification is passed, the connection with each device to be upgraded in the public broadcasting system can be established through the concurrent connection management technology; in addition, connection with each device to be upgraded in the public broadcasting system can be established in an asynchronous task processing mode, so that the terminal can send upgrading notification to a plurality of devices to be upgraded at the same time, and notification efficiency is improved. The upgrade notification may include a device type and an upgrade command, where the device type may be represented by a number or other symbol, and different device types correspond to different device chips, e.g., 1-5 may represent DSP (Digital Signal Processing) device types, and 6-10 may represent ESP32 device types.
Optionally, the firmware upgrade data packet is checked, including one or more of the following steps: checking the company code in the firmware upgrading data packet; verifying the product type information in the firmware upgrading data packet; and checking the model information in the firmware upgrading data packet.
Illustratively, the data composition of the firmware upgrade data is shown in Table 1, if the company code is equal to 0x42 and 0x4c, the company code checks; if the product type is equal to 0x00 and 0x01, checking the product type information; if the model is equal to 0x00, the model information is checked to pass; in the case that the company code, the product type information and the model information pass verification, upgrade data in the firmware upgrade data packet may be stored in a DataPackage attribute of the upgrade device information entity, and model information may be stored in a PackageType attribute of the upgrade device information entity.
TABLE 1
S240, respectively transmitting firmware upgrading data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system to each device to be upgraded in the public broadcasting system, so that each device to be upgraded in the public broadcasting system can simultaneously carry out firmware upgrading.
According to the technical scheme provided by the embodiment of the invention, the occurrence of the error condition of the firmware upgrading data packet can be reduced or avoided by verifying the firmware upgrading data packet, so that the accuracy and the reliability of the firmware upgrading of the public broadcasting system are improved.
Fig. 4 is a flowchart of a firmware upgrading method according to an embodiment of the present invention, where the method according to the present embodiment may be combined with each of the alternatives in the firmware upgrading method provided in the foregoing embodiment. The firmware upgrading method provided by the embodiment is further optimized. Optionally, firmware upgrade data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system are respectively sent to each device to be upgraded in the public broadcasting system, and the method further includes: acquiring IP addresses of equipment to be upgraded in a public broadcasting system; for any equipment to be upgraded in the public broadcasting system, based on the IP address of the equipment to be upgraded, the length information of the firmware upgrading data packet is sent to the equipment to be upgraded, so that the equipment to be upgraded is triggered to start receiving upgrading data; and respectively transmitting the upgrade data in the firmware upgrade data to each device to be upgraded in the public broadcasting system.
As shown in fig. 4, the method includes:
s310, responding to the selection operation of a plurality of device elements of the public broadcasting system in the device upgrading interface, and determining a plurality of devices to be upgraded of the public broadcasting system.
S320, responding to the selection operation of the firmware upgrading data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system, and obtaining the firmware upgrading data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system.
S330, the IP address of each device to be upgraded in the public broadcasting system is obtained.
S340, for any equipment to be upgraded in the public broadcasting system, based on the IP address of the equipment to be upgraded, the length information of the firmware upgrading data packet is sent to the equipment to be upgraded, so that the equipment to be upgraded is triggered to start receiving upgrading data.
S350, respectively sending the upgrade data in the firmware upgrade data packet to each device to be upgraded in the public broadcasting system so as to enable each device to be upgraded in the public broadcasting system to upgrade the firmware at the same time.
The length information of the firmware upgrade data packet may be used to characterize the data packet size. It can be understood that the device to be upgraded can be accurately found through the IP address of the device to be upgraded, and the length information of the firmware upgrading data packet representing the size of the data packet is sent to the device to be upgraded, so that the device to be upgraded can be accurately triggered to start to receive the upgrading data, and the accurate sending of the upgrading data is realized.
Optionally, the sending the upgrade data in the firmware upgrade data packet to each device to be upgraded in the public broadcasting system includes: extracting upgrade data from firmware upgrade data packets corresponding to a plurality of devices to be upgraded of a public broadcasting system; for any equipment to be upgraded in the public broadcasting system, creating a byte array corresponding to the upgrade data, and sending the byte array corresponding to the upgrade data to the equipment to be upgraded.
The byte array corresponding to the upgrade data may include an address, an extension bit, upgrade data, and the like, which are not particularly limited herein. It should be noted that, by sending the upgrade data in the form of byte arrays, it can be ensured that the upgrade data is transferred in the correct order and format, thereby completing the firmware upgrade of the public broadcasting system.
Optionally, after extracting the upgrade data from the firmware upgrade data packets corresponding to the plurality of devices to be upgraded in the public broadcasting system, the method further includes: determining position information of upgrade data in firmware upgrade data; updating firmware upgrading progress information based on the position information of the upgrading data in the firmware upgrading data, and displaying the updated firmware upgrading progress information in the equipment upgrading interface in real time.
The firmware upgrade progress information may represent an upgrade progress of the current device to be upgraded, and may be in the form of a score or a percentage.
The method comprises the steps of calculating the offset of the upgrade data, determining the position information of the upgrade data in the firmware upgrade data according to the offset of the upgrade data, updating the firmware upgrade progress information in real time according to the position information of the upgrade data in the firmware upgrade data, and displaying the updated firmware upgrade progress information in real time in an equipment upgrade interface so as to realize real-time monitoring of firmware equipment upgrade.
Fig. 5 is a flowchart of a method for upgrading firmware of a public address system according to an embodiment of the present invention. The method of the present embodiment may be combined with each of the alternatives in the firmware upgrade method provided in the above embodiment. The method for upgrading the firmware of the public broadcasting system comprises the following steps:
step one, initializing an equipment upgrading interface. Specifically, the device upgrade interface may include the following elements: the system comprises a graphical interface element for displaying a list without a feedback inhibitor, a graphical interface element for displaying a list with a feedback inhibitor, a button for selecting an upgrade feedback inhibitor, a control for packaging a control related to an upgrade file path, a text box for displaying a firmware upgrade data packet path selected by a user, a button for triggering selection of a firmware upgrade data packet, a graphical interface element for displaying a start upgrade button, and a window object for displaying an upgrade interface window.
And step two, a user can select a plurality of feedback suppressors in the public broadcasting system through the equipment upgrading interface, and each feedback suppressor is used as equipment to be upgraded and displayed in the equipment upgrading interface.
Step three, a user can obtain a firmware upgrading data packet corresponding to the feedback inhibitor from a preset storage path through the equipment upgrading interface.
And step four, verifying the firmware upgrading data packet corresponding to each feedback inhibitor, if the firmware upgrading data packet corresponding to each feedback inhibitor passes the verification, sending an upgrading command to each feedback inhibitor to inform each feedback inhibitor to upgrade the firmware, and if the firmware upgrading data packet corresponding to each feedback inhibitor does not pass the verification, ending the firmware upgrading flow of the public broadcasting system.
And fifthly, sending the size information of the firmware upgrading data packet corresponding to the feedback suppressors and sending the upgrading data in the firmware upgrading data packet to the feedback suppressors so that the feedback suppressors can simultaneously upgrade the firmware.
And step six, detecting an upgrade state. In the embodiment of the disclosure, the upgrade state of the feedback inhibitor can be judged according to the firmware upgrade progress information and/or the firmware upgrade time. Specifically, if the firmware upgrading progress information is equal to the maximum firmware upgrading progress, determining that the upgrading state is successful; if the firmware upgrading time exceeds the preset time threshold and the firmware upgrading progress information is not equal to the maximum firmware upgrading progress, determining that the upgrading state is failed.
And step seven, upgrading success or failure processing. In the embodiment of the disclosure, under the condition that the upgrading state of the feedback inhibitor is successful in upgrading, searching upgrading equipment information matched with the IP address of the feedback inhibitor; and if the upgrading equipment information matched with the IP address of the feedback inhibitor is found and the firmware upgrading progress reaches the maximum progress, triggering an upgrading completion event. And under the condition that the upgrading state of the feedback inhibitor is failed to upgrade, if the upgrading task of the feedback inhibitor is still running, suspending the upgrading operation of the feedback inhibitor so as to prevent the upgrading data from being continuously sent to the feedback inhibitor.
And step eight, terminating the upgrading task. The user may determine whether to terminate the upgrade task via a confirmation dialog. If the user selects to terminate the upgrading task, the upgrading task is canceled to ensure that the upgrading task is safely stopped; if the user chooses to continue to execute the upgrade task, the feedback suppressor upgrade operation is resumed.
And step nine, closing the equipment upgrading interface and ending the firmware upgrading flow of the public broadcasting system after the completion of the upgrading of each feedback inhibitor or under the condition that the user selects to close the equipment upgrading interface.
According to the technical scheme, batch upgrading of the feedback suppressors in the public broadcasting system is achieved, and therefore upgrading efficiency of the feedback suppressors in the public broadcasting system is improved.
Fig. 6 is a schematic structural diagram of a firmware upgrading apparatus according to an embodiment of the present invention. As shown in fig. 6, the apparatus includes:
a device to be upgraded selecting module 410, configured to determine a plurality of devices to be upgraded of the public broadcasting system in response to a selecting operation of a plurality of device elements of the public broadcasting system in the device upgrade interface;
an upgrade data packet obtaining module 420, configured to obtain firmware upgrade data packets corresponding to a plurality of devices to be upgraded of the public broadcast system in response to a selection operation of the firmware upgrade data packets corresponding to the plurality of devices to be upgraded of the public broadcast system;
and the device batch upgrade module 430 is configured to send firmware upgrade data packets corresponding to a plurality of devices to be upgraded in the public broadcast system to each device to be upgraded in the public broadcast system, so that each device to be upgraded in the public broadcast system can upgrade the firmware at the same time.
According to the technical scheme, the electronic equipment responds to the selection operation of the user on the plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, the determination of the plurality of equipment to be upgraded of the public broadcasting system is realized, the selection operation of the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system is further responded, the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system is obtained, the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system is further respectively sent to all the equipment to be upgraded in the public broadcasting system, so that all the equipment to be upgraded in the public broadcasting system can be simultaneously subjected to firmware upgrading, batch upgrading of the equipment in the public broadcasting system is realized, and therefore the upgrading efficiency of the equipment in the public broadcasting system is improved.
In some alternative embodiments, the plurality of devices to be upgraded of the common broadcast system are feedback suppressors using the same chip or feedback suppressors using different chips.
In some alternative embodiments, a firmware upgrade apparatus includes:
and the upgrade data verification module is used for verifying the firmware upgrade data packet, and if the verification result is that the verification is passed, the upgrade data verification module establishes connection with each device to be upgraded in the public broadcasting system.
In some alternative embodiments, the upgrade data verification module includes one or more of the following:
the company code verification unit is used for verifying the company code in the firmware upgrading data packet;
the product type verification unit is used for verifying the product type information in the firmware upgrading data packet;
and the model checking unit is used for checking the model information in the firmware upgrading data packet.
In some alternative embodiments, the device batch upgrade module 430 includes:
an IP address obtaining unit, configured to obtain an IP address of each device to be upgraded in the public broadcast system;
the upgrade starting unit is used for acquiring an IP address of any equipment to be upgraded in the public broadcasting system, and transmitting the length information of the firmware upgrade data packet to the equipment to be upgraded based on the IP address of the equipment to be upgraded so as to trigger the equipment to be upgraded to start receiving upgrade data;
and the upgrade data sending unit is used for respectively sending the upgrade data in the firmware upgrade data packet to each device to be upgraded in the public broadcasting system.
In some alternative embodiments, the upgrade data transmission unit may be specifically configured to:
extracting upgrade data from firmware upgrade data packets corresponding to a plurality of devices to be upgraded of the public broadcasting system;
and for any equipment to be upgraded in the public broadcasting system, creating a byte array corresponding to the upgrade data, and sending the byte array corresponding to the upgrade data to the equipment to be upgraded.
In some alternative embodiments, the device batch upgrade module 430 further comprises:
an upgrade data positioning unit for determining position information of the upgrade data in the firmware upgrade data;
the upgrade progress monitoring unit is used for updating the firmware upgrade progress information based on the position information of the upgrade data in the firmware upgrade data and displaying the updated firmware upgrade progress information in the equipment upgrade interface in real time.
The firmware upgrading device provided by the embodiment of the invention can execute the firmware upgrading method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Fig. 7 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices (e.g., helmets, eyeglasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An I/O interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a firmware upgrade method, which includes:
responding to the selection operation of a plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, and determining a plurality of equipment to be upgraded of the public broadcasting system;
responding to the selection operation of the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system, and acquiring the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system;
and respectively transmitting firmware upgrading data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system to each device to be upgraded in the public broadcasting system so as to enable each device to be upgraded in the public broadcasting system to simultaneously carry out firmware upgrading.
In some embodiments, the firmware upgrade method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the firmware upgrade method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the firmware upgrade method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A firmware upgrade method, comprising:
responding to the selection operation of a plurality of equipment elements of the public broadcasting system in the equipment upgrading interface, and determining a plurality of equipment to be upgraded of the public broadcasting system;
responding to the selection operation of the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system, and acquiring the firmware upgrading data packet corresponding to the plurality of equipment to be upgraded of the public broadcasting system;
and respectively transmitting firmware upgrading data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system to each device to be upgraded in the public broadcasting system so as to enable each device to be upgraded in the public broadcasting system to simultaneously carry out firmware upgrading.
2. The method of claim 1, wherein the plurality of devices to be upgraded of the common broadcast system are feedback suppressors using the same chip or feedback suppressors using different chips.
3. The method of claim 1, further comprising, after obtaining firmware upgrade data packets corresponding to a plurality of devices to be upgraded of the public address system:
and checking the firmware upgrading data packet, and if the checking result is that the checking result is passed, establishing connection with each device to be upgraded in the public broadcasting system.
4. A method according to claim 3, wherein said verifying said firmware upgrade data packet comprises one or more of the following steps:
checking the company code in the firmware upgrading data packet;
verifying the product type information in the firmware upgrading data packet;
and checking the model information in the firmware upgrading data packet.
5. The method of claim 1, wherein the sending firmware upgrade data packets corresponding to the plurality of devices to be upgraded in the public broadcasting system to each of the devices to be upgraded in the public broadcasting system includes:
acquiring the IP address of each device to be upgraded in the public broadcasting system;
for any equipment to be upgraded in the public broadcasting system, based on the IP address of the equipment to be upgraded, the length information of a firmware upgrading data packet is sent to the equipment to be upgraded, so that the equipment to be upgraded is triggered to start receiving upgrading data;
and respectively sending the upgrade data in the firmware upgrade data packet to each device to be upgraded in a public broadcasting system.
6. The method of claim 5, wherein the sending the upgrade data in the firmware upgrade data packet to each device to be upgraded in a common broadcast system includes:
extracting upgrade data from firmware upgrade data packets corresponding to a plurality of devices to be upgraded of the public broadcasting system;
and for any equipment to be upgraded in the public broadcasting system, creating a byte array corresponding to the upgrade data, and sending the byte array corresponding to the upgrade data to the equipment to be upgraded.
7. The method of claim 5, further comprising, after extracting upgrade data from firmware upgrade data packets corresponding to a plurality of devices to be upgraded of the common broadcast system:
determining position information of the upgrade data in the firmware upgrade data;
updating firmware upgrading progress information based on the position information of the upgrading data in the firmware upgrading data, and displaying the updated firmware upgrading progress information in the equipment upgrading interface in real time.
8. A firmware upgrade apparatus, comprising:
the equipment to be upgraded selecting module is used for responding to the selecting operation of a plurality of equipment elements of the public broadcasting system in the equipment upgrading interface and determining a plurality of equipment to be upgraded of the public broadcasting system;
the upgrade data packet acquisition module is used for responding to the selection operation of the firmware upgrade data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system and acquiring the firmware upgrade data packet corresponding to the plurality of devices to be upgraded of the public broadcasting system;
and the equipment batch upgrading module is used for respectively sending firmware upgrading data packets corresponding to a plurality of equipment to be upgraded in the public broadcasting system to each equipment to be upgraded in the public broadcasting system so as to enable each equipment to be upgraded in the public broadcasting system to simultaneously carry out firmware upgrading.
9. An electronic device, the electronic device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the firmware upgrade method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the firmware upgrade method of any one of claims 1-7 when executed.
CN202311471203.4A 2023-11-06 2023-11-06 Firmware upgrading method and device, electronic equipment and storage medium Pending CN117389594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311471203.4A CN117389594A (en) 2023-11-06 2023-11-06 Firmware upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311471203.4A CN117389594A (en) 2023-11-06 2023-11-06 Firmware upgrading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117389594A true CN117389594A (en) 2024-01-12

Family

ID=89466494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311471203.4A Pending CN117389594A (en) 2023-11-06 2023-11-06 Firmware upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117389594A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113196230A (en) * 2021-03-24 2021-07-30 华为技术有限公司 Terminal upgrading method and device
WO2021253854A1 (en) * 2020-06-19 2021-12-23 浪潮电子信息产业股份有限公司 Method and apparatus for remotely updating firmware in batches, and computer-readable storage medium
CN115361119A (en) * 2022-08-15 2022-11-18 中国铁道科学研究院集团有限公司 Batch upgrading method and device for vehicle-mounted equipment software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021253854A1 (en) * 2020-06-19 2021-12-23 浪潮电子信息产业股份有限公司 Method and apparatus for remotely updating firmware in batches, and computer-readable storage medium
CN113196230A (en) * 2021-03-24 2021-07-30 华为技术有限公司 Terminal upgrading method and device
CN115361119A (en) * 2022-08-15 2022-11-18 中国铁道科学研究院集团有限公司 Batch upgrading method and device for vehicle-mounted equipment software

Similar Documents

Publication Publication Date Title
CN113612659B (en) Device networking test method and device, electronic device and storage medium
CN115794257B (en) System starting method, device, electronic equipment and storage medium
CN114025037B (en) Cloud mobile phone overhaul method and device, electronic equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN109150587B (en) Maintenance method and device
CN113067769B (en) Router restarting method, device, equipment and storage medium
CN113609027A (en) ARM cloud server testing method and device, electronic equipment and storage medium
CN117389594A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN115794525A (en) BMC (baseboard management controller) pressure testing method, device, equipment and storage medium
CN116027226A (en) Component testing method and device, electronic equipment and storage medium
CN115061921A (en) Automatic test method, device, electronic equipment and readable storage medium
CN113596129B (en) Restarting method, restarting device, restarting equipment and restarting storage medium of cloud mobile phone
CN114610511B (en) Input verification method and device, electronic equipment and storage medium
CN116781572A (en) Service availability detection method, device, equipment and storage medium
CN118075290A (en) Data synchronization method, device, equipment, medium and product
CN116708362A (en) Communication address processing method, device, equipment and storage medium
CN116320092A (en) Protocol transmission method, device, electronic equipment and storage medium
CN117519753A (en) Remote upgrading method, device and equipment of terminal equipment and storage medium
CN117729005A (en) Network asset mapping method
CN116208554A (en) FPGA-based flow table processing method, device, equipment and storage medium
CN118175193A (en) Connection switching method, device, server and storage medium
CN117370209A (en) Application program performance test method, device, medium and electronic equipment
CN117439975A (en) Address determination method and device for equipment mainboard, electronic equipment and storage medium
CN116319454A (en) Method, device, equipment and storage medium for detecting time consumption of application program network
CN116401163A (en) Service system fault processing method, device, equipment and storage medium

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