Firmware upgrade method, device, electronic device and storage medium
By selecting multiple devices to be upgraded in the public broadcast system and sending firmware upgrade data packets, batch upgrade of equipment is achieved, solving the problem of traditional upgrade efficiency and improving the upgrade efficiency and accuracy.
Patent Information
- Application Number
- CN202311471203.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-06
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2043-11-06
AI Technical Summary
The firmware upgrade efficiency of public broadcast system equipment is low, and traditional methods require separate upgrades, which are relatively low.
By selecting multiple devices to be upgraded in the device upgrade interface, obtaining and sending the corresponding firmware upgrade data packets, multiple devices can simultaneously upgrade firmware and sending packets using batch upgrade modules.
It improves the upgrade efficiency of public broadcast system equipment, realizes the simultaneous upgrade of multiple equipment, and improves the upgrade efficiency and accuracy.
Smart Images

Figure CN117389594B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of public broadcasting technology, and in particular to a firmware upgrading method, device, electronic equipment and storage medium. Background Art
[0002] In the field of public broadcasting technology, device firmware upgrades are a critical task to ensure that the performance and functionality of public broadcasting systems are improved.
[0003] Traditional device firmware upgrades require disassembly of the device using a downloader for individual upgrades, and the public broadcasting system has the problem of low device firmware upgrade efficiency. Summary of the invention
[0004] The present invention provides a firmware upgrade method, device, electronic device and storage medium to improve the upgrade efficiency of device firmware of a public broadcasting system.
[0005] According to one aspect of the present invention, there is provided a firmware upgrade method, comprising:
[0006] In response to a selection operation of multiple device elements of the public broadcasting system in the device upgrade interface, determining multiple devices to be upgraded in the public broadcasting system;
[0007] In response to a selection operation of firmware upgrade data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system, obtaining firmware upgrade data packets corresponding to the plurality of devices to be upgraded in the public broadcasting system;
[0008] The firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcast system are respectively sent to the devices to be upgraded in the public broadcast system, so that the firmware of the devices to be upgraded in the public broadcast system can be upgraded simultaneously.
[0009] According to another aspect of the present invention, there is provided a firmware upgrade device, comprising:
[0010] The device selection module to be upgraded is used to determine multiple devices to be upgraded of the public broadcasting system in response to the selection operation of multiple device elements of the public broadcasting system in the device upgrade interface;
[0011] An upgrade data packet acquisition module, configured to acquire firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system in response to a selection operation of firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system;
[0012] The device batch upgrade module is used to send firmware upgrade data packets corresponding to multiple 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 perform firmware upgrade at the same time.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor;
[0015] and a memory communicatively coupled to the at least one processor;
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the firmware upgrade method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the firmware upgrade method described in any embodiment of the present invention when executed.
[0018] According to the technical solution of the embodiment of the present invention, the electronic device responds to the user's selection operation on multiple device elements of the public broadcasting system in the device upgrade interface, thereby realizing the determination of multiple devices to be upgraded in the public broadcasting system, and then responds to the selection operation on the firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system, obtains the firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system, and then sends the firmware upgrade data packets corresponding to the multiple 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 perform firmware upgrade at the same time, thereby realizing batch upgrade of devices in the public broadcasting system, thereby improving the upgrade efficiency of devices in the public broadcasting system.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flowchart of a firmware upgrade method provided according to an embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of a device upgrade interface provided according to an embodiment of the present invention;
[0023] Figure 3 is a flowchart of a firmware upgrade method provided according to an embodiment of the present invention;
[0024] Figure 4 is a flowchart of a firmware upgrade method provided according to an embodiment of the present invention;
[0025] Figure 5 is a flowchart of a method for upgrading public broadcasting system firmware according to an embodiment of the present invention;
[0026] Figure 6 is a structural schematic diagram of a firmware upgrade device provided according to an embodiment of the present invention;
[0027] Figure 7 It is a structural schematic diagram of an electronic device for implementing the firmware upgrade method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Figure 1 This is a flowchart of a firmware upgrade method provided by an embodiment of the present invention. This embodiment is applicable to batch upgrades of devices in a public broadcasting system. The method can be executed by a firmware upgrade device. The firmware upgrade device can be implemented in the form of hardware and / or software. The firmware upgrade device can be configured in electronic devices such as terminals and servers. Figure 1 As shown, the method includes:
[0031] S110 . In response to a selection operation on a plurality of device elements of the public broadcasting system in the device upgrade interface, a plurality of devices to be upgraded of the public broadcasting system are determined.
[0032] In the embodiment of the present disclosure, the public broadcasting system is a sound reinforcement system, for example, the public broadcasting system can be a broadcasting system of a theater, a stadium, a station, a bank or a factory, etc. The equipment in the public broadcasting system can include but is not limited to a signal amplifier, a feedback suppressor, a loudspeaker, etc.
[0033] Exemplarily, the user may select multiple feedback suppressors or other devices in the public broadcasting system through the device upgrade interface, and display each feedback suppressor or other device as a device to be upgraded in the device upgrade interface.
[0034] Optionally, the multiple devices to be upgraded in the public broadcasting system may be feedback suppressors using the same chip or feedback suppressors using different chips.
[0035] It should be noted that in the embodiments of the present disclosure, multiple feedback suppressors using the same chip can be upgraded simultaneously, or multiple feedback suppressors using different chips can be upgraded simultaneously. The specific selection can be based on the upgrade requirements and is not limited here.
[0036] S120. In response to the operation of selecting firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system, obtain firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system.
[0037] In the embodiments of the present disclosure, the firmware upgrade data packet refers to a data packet for upgrading the equipment in the public broadcasting system, which can be used to improve the functions of the public broadcasting system, patch system vulnerabilities, etc. The firmware upgrade data packet can be a data packet used to upgrade the firmware of each device to be upgraded, and the firmware upgrade data packet can also be composed of multiple sub-data packets, each of which is used to upgrade the firmware of its corresponding device to be upgraded.
[0038] Exemplarily, a user may obtain a firmware upgrade data packet corresponding to a feedback suppressor or other device from a preset storage path through a device upgrade interface to upgrade the feedback suppressor or other device.
[0039] S130, sending firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system to the devices to be upgraded in the public broadcasting system respectively, so that the devices to be upgraded in the public broadcasting system can perform firmware upgrades simultaneously.
[0040] In an embodiment of the present disclosure, the terminal and the device to be upgraded can transmit firmware upgrade data packets through the Transmission Control Protocol (TCP). For example, the terminal can send the firmware upgrade data packets to each feedback suppressor in the public broadcasting system respectively, and then each feedback suppressor simultaneously performs firmware upgrade according to the firmware upgrade data packets.
[0041] For example, Figure 2 1 is a schematic diagram of a device upgrade interface provided by an embodiment of the present invention. In the device upgrade interface, a user can select multiple devices to be upgraded and select a firmware upgrade data package; and during the firmware upgrade process, the device upgrade interface can display the upgrade progress of each device to be upgraded, so as to realize real-time monitoring of the public broadcasting system firmware upgrade.
[0042] According to the technical solution of the embodiment of the present invention, the electronic device determines multiple devices to be upgraded in the public broadcasting system by responding to the user's selection operation on multiple device elements of the public broadcasting system in the device upgrade interface, and then obtains firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system in response to the selection operation on firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system, and then sends the firmware upgrade data packets corresponding to the multiple 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 perform firmware upgrade at the same time, thereby realizing batch upgrade of devices in the public broadcasting system, thereby improving the upgrade efficiency of devices in the public broadcasting system.
[0043] Figure 3 A flowchart of a firmware upgrade method provided in an embodiment of the present invention, the method of this embodiment can be combined with the various optional schemes in the firmware upgrade method provided in the above embodiment. The firmware upgrade method provided in this embodiment is further optimized. Optionally, after obtaining the firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system, it also includes: verifying the firmware upgrade data packets, and if the verification result is that the verification passes, establishing a connection with each of the devices to be upgraded in the public broadcasting system.
[0044] like Figure 3 As shown, the method includes:
[0045] S210: In response to a selection operation on multiple device elements of the public broadcasting system in the device upgrade interface, determine multiple devices to be upgraded in the public broadcasting system.
[0046] S220. In response to the operation of selecting firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system, obtain firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system.
[0047] S230: Verify the firmware upgrade data packet, and if the verification result is passed, establish a connection with each device to be upgraded in the public broadcasting system.
[0048] Specifically, after obtaining the firmware upgrade data packet, the firmware upgrade data packet can be parsed to obtain the binary data of the firmware upgrade data packet, and then the binary data of the firmware upgrade data packet can be verified to ensure the validity of the firmware upgrade data packet. If the verification result is passed, a connection with each device to be upgraded in the public broadcasting system can be established through concurrent connection management technology; in addition, a connection with each device to be upgraded in the public broadcasting system can be established through asynchronous task processing, thereby ensuring that the terminal can send upgrade notifications to multiple devices to be upgraded at the same time, thereby improving notification efficiency. Among them, the upgrade notification can include device type and upgrade command. The device type can be represented by numbers or other symbols. Different device types correspond to different device chips. For example, 1-5 can represent DSP (Digital Signal Processing) device type, and 6-10 can represent ESP32 device type.
[0049] Optionally, verifying the firmware upgrade data packet includes one or more of the following steps: verifying the company code in the firmware upgrade data packet; verifying the product type information in the firmware upgrade data packet; verifying the model information in the firmware upgrade data packet.
[0050] Exemplarily, 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 verification is passed; if the product type is equal to 0x00 and 0x01, the product type information verification is passed; if the model is equal to 0x00, the model information verification is passed; when the company code, product type information, and model information are all verified, the upgrade data in the firmware upgrade data packet can be stored in the DataPackage attribute of the upgrade device information entity, and the model information can be stored in the PackageType attribute of the upgrade device information entity.
[0051] Table 1
[0052]
[0053] S240, sending firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system to the devices to be upgraded in the public broadcasting system respectively, so that the devices to be upgraded in the public broadcasting system can perform firmware upgrades simultaneously.
[0054] The technical solution of the embodiment of the present invention can reduce or avoid the occurrence of firmware upgrade data packet errors by verifying the firmware upgrade data packet, thereby improving the accuracy and reliability of the public broadcasting system firmware upgrade.
[0055] Figure 4 A flowchart of a firmware upgrade method provided in an embodiment of the present invention, the method of this embodiment can be combined with the various optional schemes in the firmware upgrade method provided in the above embodiments. The firmware upgrade method provided in this embodiment is further optimized. Optionally, the firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system are respectively sent to each device to be upgraded in the public broadcasting system, and also include: obtaining the IP address of each device to be upgraded in the public broadcasting system; for any device to be upgraded in the public broadcasting system, based on the IP address of the device to be upgraded, sending the length information of the firmware upgrade data packet to the device to be upgraded to trigger the device to be upgraded to start receiving the upgrade data; and sending the upgrade data in the firmware upgrade data to each device to be upgraded in the public broadcasting system.
[0056] like Figure 4 As shown, the method includes:
[0057] S310: In response to a selection operation on multiple device elements of the public broadcasting system in the device upgrade interface, multiple devices to be upgraded in the public broadcasting system are determined.
[0058] S320: In response to the operation of selecting firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system, obtain firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system.
[0059] S330: Obtain the IP address of each device to be upgraded in the public broadcasting system.
[0060] S340: For any device to be upgraded in the public broadcasting system, based on the IP address of the device to be upgraded, send the length information of the firmware upgrade data packet to the device to be upgraded, so as to trigger the device to be upgraded to start receiving upgrade data.
[0061] S350, sending the upgrade data in the firmware upgrade data packet to each of the devices to be upgraded in the public broadcasting system respectively, so that each of the devices to be upgraded in the public broadcasting system can perform firmware upgrade simultaneously.
[0062] Among them, the length information of the firmware upgrade data packet can be used to characterize the size of the data packet. It is understandable 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 upgrade data packet characterizing the size of the data packet is sent to the device to be upgraded, which can accurately trigger the device to be upgraded to start receiving the upgrade data, thereby realizing the accurate sending of the upgrade data.
[0063] Optionally, the upgrade data in the firmware upgrade data packet is sent separately to each device to be upgraded in the public broadcasting system, including: extracting the upgrade data from the firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system; for any device 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 device to be upgraded.
[0064] The byte array corresponding to the upgrade data may include an address, an extension bit, and upgrade data, etc., which are not specifically limited here. It should be noted that sending the upgrade data in the form of a byte array can ensure that the upgrade data is transmitted in the correct order and format, thereby completing the firmware upgrade of the public broadcasting system.
[0065] Optionally, after extracting the upgrade data from the firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system, it also includes: determining the location information of the upgrade data in the firmware upgrade data; updating the firmware upgrade progress information based on the location information of the upgrade data in the firmware upgrade data, and displaying the updated firmware upgrade progress information in real time in the device upgrade interface.
[0066] The firmware upgrade progress information may represent the upgrade progress of the current device to be upgraded, which may be in the form of a score or a percentage.
[0067] Exemplarily, the offset of the upgrade data can be calculated, thereby determining the location information of the upgrade data in the firmware upgrade data based on the offset of the upgrade data, and then updating the firmware upgrade progress information in real time based on the location information of the upgrade data in the firmware upgrade data, and displaying the updated firmware upgrade progress information in real time in the device upgrade interface to achieve real-time monitoring of firmware device upgrades.
[0068] Figure 5 1 is a flowchart of a method for upgrading the firmware of a public broadcasting system provided according to an embodiment of the present invention. The method of this embodiment can be combined with each optional solution in the firmware upgrading method provided in the above embodiment. The method for upgrading the firmware of a public broadcasting system includes:
[0069] Step 1, initialize the device upgrade interface. Specifically, the device upgrade interface may include the following elements: a graphical interface element for displaying a list of no feedback suppressors, a graphical interface element for displaying a list of feedback suppressors, a button for selecting an upgrade feedback suppressor, a control for packaging an upgrade file path-related control, a text box for displaying a firmware upgrade data package path selected by a user, a button for triggering the selection of a firmware upgrade data package, a graphical interface element for displaying a start upgrade button, and a form object for displaying an upgrade interface window.
[0070] Step 2: The user can select multiple feedback suppressors in the public broadcasting system through the device upgrade interface, and display each feedback suppressor as a device to be upgraded in the device upgrade interface.
[0071] Step 3: The user can obtain the firmware upgrade data package corresponding to the feedback suppressor from the preset storage path through the device upgrade interface.
[0072] Step four, verify the firmware upgrade data packets corresponding to each feedback suppressor. If the firmware upgrade data packets corresponding to each feedback suppressor pass the verification, send an upgrade command to each feedback suppressor to notify each feedback suppressor to perform a firmware upgrade. If the firmware upgrade data packets corresponding to each feedback suppressor fail the verification, end the firmware upgrade process of the public broadcasting system.
[0073] Step 5: sending the size information of the firmware upgrade data packet corresponding to the feedback suppressor and the upgrade data in the firmware upgrade data packet to the feedback suppressor, so that the firmware of each feedback suppressor is upgraded at the same time.
[0074] Step 6, check the upgrade status. In the disclosed embodiment, the upgrade status of the feedback suppressor can be determined based on the firmware upgrade progress information and / or the firmware upgrade time. Specifically, if the firmware upgrade progress information is equal to the maximum firmware upgrade progress, the upgrade status is determined to be a successful upgrade; if the firmware upgrade time exceeds the preset time threshold, and the firmware upgrade progress information is not equal to the maximum firmware upgrade progress, the upgrade status is determined to be a failed upgrade.
[0075] Step seven, upgrade success or failure processing. In the embodiment of the present disclosure, when the upgrade status of the feedback suppressor is a successful upgrade, the upgrade device information that matches the IP address of the feedback suppressor is searched; if the upgrade device information that matches the IP address of the feedback suppressor is found, and the firmware upgrade progress has reached the maximum progress, the upgrade completion event is triggered. When the upgrade status of the feedback suppressor is an upgrade failure, if the upgrade task of the feedback suppressor is still running, the feedback suppressor upgrade operation is suspended to prevent the upgrade data from continuing to be sent to the feedback suppressor.
[0076] Step 8: Terminate the upgrade task. The user can confirm whether to terminate the upgrade task through the confirmation dialog box. If the user chooses to terminate the upgrade task, the upgrade task is canceled to ensure that the upgrade task stops safely; if the user chooses to continue the upgrade task, the feedback suppressor upgrade operation is resumed.
[0077] Step nine: after each feedback suppressor is upgraded, or when the user chooses to close the device upgrade interface, the device upgrade interface is closed and the firmware upgrade process of the public broadcasting system is terminated.
[0078] The technical solution of the embodiment of the present invention realizes batch upgrade of feedback suppressors in a public broadcasting system, thereby improving the upgrade efficiency of the feedback suppressors in the public broadcasting system.
[0079] Figure 6 A schematic diagram of the structure of a firmware upgrade device provided by an embodiment of the present invention. Figure 6 As shown, the device comprises:
[0080] The device selection module 410 is used to determine multiple devices to be upgraded in the public broadcasting system in response to the selection operation of multiple device elements of the public broadcasting system in the device upgrade interface;
[0081] The upgrade data packet acquisition module 420 is used to acquire the firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system in response to the selection operation of the firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system;
[0082] The device batch upgrade module 430 is used to send firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system to each of the devices to be upgraded in the public broadcasting system, so that each of the devices to be upgraded in the public broadcasting system can perform firmware upgrades simultaneously.
[0083] According to the technical solution of the embodiment of the present invention, the electronic device responds to the user's selection operation on multiple device elements of the public broadcasting system in the device upgrade interface, thereby realizing the determination of multiple devices to be upgraded in the public broadcasting system, and then responds to the selection operation on the firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system, obtains the firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system, and then sends the firmware upgrade data packets corresponding to the multiple 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 perform firmware upgrade at the same time, thereby realizing batch upgrade of devices in the public broadcasting system, thereby improving the upgrade efficiency of devices in the public broadcasting system.
[0084] In some optional implementations, the multiple devices to be upgraded in the public broadcasting system are feedback suppressors using the same chip or feedback suppressors using different chips.
[0085] In some optional implementations, the firmware upgrade device includes:
[0086] The upgrade data verification module is used to verify the firmware upgrade data packet, and if the verification result is passed, establish a connection with each device to be upgraded in the public broadcasting system.
[0087] In some optional implementations, the upgrade data verification module includes one or more of the following units:
[0088] A company code verification unit, used to verify the company code in the firmware upgrade data packet;
[0089] A product type verification unit, used to verify the product type information in the firmware upgrade data packet;
[0090] The model verification unit is used to verify the model information in the firmware upgrade data packet.
[0091] In some optional implementations, the device batch upgrade module 430 includes:
[0092] An IP address acquisition unit, used to acquire the IP address of each device to be upgraded in the public broadcasting system;
[0093] The upgrade start unit is used for the IP address acquisition unit, which is used to send the length information of the firmware upgrade data packet to any device to be upgraded in the public broadcasting system based on the IP address of the device to be upgraded, so as to trigger the device to be upgraded to start receiving upgrade data;
[0094] The upgrade data sending unit is used to send the upgrade data in the firmware upgrade data packet to each of the devices to be upgraded in the public broadcasting system.
[0095] In some optional implementations, the upgrade data sending unit may be specifically used to:
[0096] Extracting upgrade data from firmware upgrade data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system;
[0097] For any device to be upgraded in the public broadcasting system, a byte array corresponding to the upgrade data is created, and the byte array corresponding to the upgrade data is sent to the device to be upgraded.
[0098] In some optional implementations, the device batch upgrade module 430 further includes:
[0099] An upgrade data locating unit, used to determine the location information of the upgrade data in the firmware upgrade data;
[0100] The upgrade progress monitoring unit is used to update the firmware upgrade progress information based on the location information of the upgrade data in the firmware upgrade data, and to display the updated firmware upgrade progress information in real time in the device upgrade interface.
[0101] The firmware upgrade device provided in the embodiment of the present invention can execute the firmware upgrade method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0102] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0103] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can 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 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The I / O interface 15 is also connected to the bus 14.
[0104] A number of 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, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0105] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a firmware upgrade method, which includes:
[0106] In response to a selection operation of multiple device elements of the public broadcasting system in the device upgrade interface, determining multiple devices to be upgraded in the public broadcasting system;
[0107] In response to a selection operation of firmware upgrade data packets corresponding to a plurality of devices to be upgraded in the public broadcasting system, obtaining firmware upgrade data packets corresponding to the plurality of devices to be upgraded in the public broadcasting system;
[0108] The firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcast system are respectively sent to the devices to be upgraded in the public broadcast system, so that the firmware of the devices to be upgraded in the public broadcast system can be upgraded simultaneously.
[0109] In some embodiments, the firmware upgrade method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the firmware upgrade method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the firmware upgrade method in any other appropriate manner (e.g., by means of firmware).
[0110] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0111] Computer programs for implementing the 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, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0112] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0113] To provide interaction with a user, the systems and techniques described herein may 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 the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the 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, voice input, or tactile input).
[0114] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0115] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0116] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0117] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A firmware upgrade method, characterized in that: include: Initialize a device upgrade interface, the device upgrade interface comprising the following elements: a graphical interface element for displaying a list of no feedback suppressors, a graphical interface element for displaying a list of feedback suppressors, a button for selecting an upgrade feedback suppressor, a control for packaging an upgrade file path-related control, a text box for displaying a firmware upgrade data packet path selected by a user, a button for triggering the selection of a firmware upgrade data packet, a graphical interface element for displaying a start upgrade button, and a form object for displaying an upgrade interface window; In response to a selection operation of multiple device elements of the public broadcasting system in the device upgrade interface, multiple devices to be upgraded of the public broadcasting system are determined, wherein the multiple devices to be upgraded of the public broadcasting system are feedback suppressors using the same chip or feedback suppressors using different chips; In response to the selection operation of the firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system, the firmware upgrade data packets corresponding to the multiple devices to be upgraded of the public broadcasting system are obtained, wherein the firmware upgrade data packets refer to data packets for upgrading the devices in the public broadcasting system, and are used to improve the functions of the public broadcasting system and repair system vulnerabilities; Verifying the company code, product type information and model information in the firmware upgrade data packet, and if the verification result is passed, establishing a connection with each of the devices to be upgraded in the public broadcasting system; Obtain the IP address of each device to be upgraded in the public broadcasting system; for any device to be upgraded in the public broadcasting system, based on the IP address of the device to be upgraded, send the length information of the firmware upgrade data packet to the device to be upgraded, so as to trigger the device to be upgraded to start receiving upgrade data; extract upgrade data from the firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system; for any device to be upgraded in the public broadcasting system, create a byte array corresponding to the upgrade data, and send the byte array corresponding to the upgrade data to the device to be upgraded, so that each device to be upgraded in the public broadcasting system can simultaneously perform firmware upgrade; The length information of the firmware upgrade data packet is used to characterize the size of the data packet; and the byte array corresponding to the upgrade data includes an address, an extension bit and upgrade data.
2. The method according to claim 1, characterized in that After extracting the upgrade data from the firmware upgrade data packets corresponding to the multiple devices to be upgraded in the public broadcasting system, the method further includes: Determine the location information of the upgrade data in the firmware upgrade data; The firmware upgrade progress information is updated based on the location information of the upgrade data in the firmware upgrade data, and the updated firmware upgrade progress information is displayed in real time in the device upgrade interface.
3. A firmware upgrade device, characterized in that: include: Initialize a device upgrade interface, the device upgrade interface comprising the following elements: a graphical interface element for displaying a list of no feedback suppressors, a graphical interface element for displaying a list of feedback suppressors, a button for selecting an upgrade feedback suppressor, a control for packaging an upgrade file path-related control, a text box for displaying a firmware upgrade data packet path selected by a user, a button for triggering the selection of a firmware upgrade data packet, a graphical interface element for displaying a start upgrade button, and a form object for displaying an upgrade interface window; A device selection module for upgrading, for determining multiple devices for upgrading of the public broadcasting system in response to a selection operation of multiple device elements of the public broadcasting system in the device upgrading interface, wherein the multiple devices for upgrading of the public broadcasting system are feedback suppressors using the same chip or feedback suppressors using different chips; An upgrade data packet acquisition module, for acquiring firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system in response to a selection operation of firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system, wherein the firmware upgrade data packets refer to data packets for upgrading devices in the public broadcasting system, and are used to improve the functions of the public broadcasting system and repair system vulnerabilities; An upgrade data verification module, used to verify the company code, product type information and model information in the firmware upgrade data packet, and if the verification result is passed, establish a connection with each of the devices to be upgraded in the public broadcasting system; A device batch upgrade module is used to obtain the IP address of each device to be upgraded in the public broadcasting system; for any device to be upgraded in the public broadcasting system, based on the IP address of the device to be upgraded, send the length information of the firmware upgrade data packet to the device to be upgraded to trigger the device to be upgraded to start receiving upgrade data; extract upgrade data from the firmware upgrade data packets corresponding to multiple devices to be upgraded in the public broadcasting system; for any device to be upgraded in the public broadcasting system, create a byte array corresponding to the upgrade data, and send the byte array corresponding to the upgrade data to the device to be upgraded, so that each device to be upgraded in the public broadcasting system can simultaneously perform firmware upgrade; The length information of the firmware upgrade data packet is used to characterize the size of the data packet; and the byte array corresponding to the upgrade data includes an address, an extension bit and upgrade data.
4. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the firmware upgrade method described in any one of claims 1 to 2.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the firmware upgrade method according to any one of claims 1 to 2 when executed.
Citation Information
Patent Citations
Method for upgrading firmware in batches
CN104993947A
Terminal upgrading method and device
CN113196230A
Batch upgrading method and device for vehicle-mounted equipment software
CN115361119A
Method and apparatus for remotely updating firmware in batches, and computer-readable storage medium
WO2021253854A1
