CN113434179A - Online upgrade method, device, equipment and storage medium for programmable power supply - Google Patents

Online upgrade method, device, equipment and storage medium for programmable power supply Download PDF

Info

Publication number
CN113434179A
CN113434179A CN202110771430.3A CN202110771430A CN113434179A CN 113434179 A CN113434179 A CN 113434179A CN 202110771430 A CN202110771430 A CN 202110771430A CN 113434179 A CN113434179 A CN 113434179A
Authority
CN
China
Prior art keywords
power supply
programmable power
target
firmware information
configuration file
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.)
Granted
Application number
CN202110771430.3A
Other languages
Chinese (zh)
Other versions
CN113434179B (en
Inventor
李叔苍
贾李健
李�瑞
王征归
王杰
杨满智
蔡琳
梁彧
田野
金红
陈晓光
傅强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Eversec Beijing Technology Co Ltd
Original Assignee
Eversec Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Eversec Beijing Technology Co Ltd filed Critical Eversec Beijing Technology Co Ltd
Priority to CN202110771430.3A priority Critical patent/CN113434179B/en
Publication of CN113434179A publication Critical patent/CN113434179A/en
Application granted granted Critical
Publication of CN113434179B publication Critical patent/CN113434179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for on-line upgrading of a programmable power supply. The method comprises the following steps: erasing the programming area of the target programmable power supply; the data size of the target programmable power supply firmware information is fixed and is smaller than a preset value; and acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area. By the technical scheme of the embodiment of the invention, the programmable power supply can be upgraded on line, and the assembly after programming is finished without using an additional programming tool after disassembly, so that the production efficiency of equipment is improved, and the labor cost is also reduced.

Description

Online upgrade method, device, equipment and storage medium for programmable power supply
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for on-line upgrading of a programmable power supply.
Background
A programmable power supply is usually used in a system module of a Central Processing Unit (CPU), and the power supply needs specific firmware information to work normally, and the firmware information needs to be stored in a fixed internal flash memory space. This space needs to be programmed before each use.
In the prior art, a chip needs to be pre-programmed and then attached in the production process of a product. In addition, the existing programming mode needs a base matched with the chip, the chip is placed on the base, and a special flash programming tool is used for programming.
However, the method of mounting the chip on the base after the chip is programmed by using the special programming tool wastes a lot of time and energy, and particularly, in the case of programming failure, the chip needs to be taken down and mounted after the chip is programmed by using the special programming tool, which additionally increases the time for producing the device.
Disclosure of Invention
The embodiment of the invention provides an online upgrading method, device and equipment of a programmable power supply and a storage medium, so as to realize automatic online upgrading of the programmable power supply.
In a first aspect, an embodiment of the present invention provides an online upgrade method for a programmable power supply, including:
erasing the programming area of the target programmable power supply; the data size of the target programmable power supply firmware information is fixed and is smaller than a preset value;
and acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area.
In a second aspect, an embodiment of the present invention further provides an online upgrade apparatus for a programmable power supply, where the apparatus includes:
the programming area erasing module is used for erasing the programming area of the target programmable power supply; the data size of the target programmable power supply firmware information is fixed and is smaller than a preset value;
and the firmware information writing module is used for acquiring a target configuration file of the target programmable power supply and writing the firmware information corresponding to the target configuration file into the programming area.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more programmable power supplies for powering one or more devices in the electronic device;
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method according to any one of the embodiments of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the programming area of the programmable power supply is erased, and the firmware information is written into the programming area, so that the programmable power supply can be upgraded on line, and the programming tool does not need to be used for programming and then assembling after disassembly, the production efficiency of equipment is improved, and the labor cost is also reduced.
Drawings
FIG. 1 is a flowchart of a method for upgrading a programmable power supply online according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for upgrading a programmable power supply online according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a method for upgrading a programmable power supply online according to a third embodiment of the present invention;
FIG. 4 is a flowchart of a method for upgrading a programmable power supply online according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart of a method for upgrading a programmable power supply online according to a fifth embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an online upgrade apparatus for a programmable power supply according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device in a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an online upgrade method for a programmable power supply according to an embodiment of the present invention, where this embodiment is applicable to online upgrade of a programmable power supply, and particularly provides an effective and convenient online upgrade method for a first-burning and then-pasting type programmable power supply, where this method may be executed by an online upgrade apparatus for a programmable power supply, and this apparatus may be implemented in a hardware and/or software manner, and may be generally integrated in an electronic device, and specifically includes the following steps:
and S110, erasing the programming area of the target programmable power supply.
The data size of the target programmable power supply firmware information is fixed and is smaller than a preset value.
The firmware information refers to a program written in an EROM (Erasable Read Only Memory) or an EEPROM (Electrically Erasable Programmable Read Only Memory). In this embodiment, the firmware information refers to a program written in a programming area of the programmable power supply to realize online upgrade of the programmable power supply.
And the programming area refers to a flash area which is specially used for storing firmware information in the target programmable power supply.
The preset value may refer to a preset value for evaluating the data size of the firmware information, and is usually a relatively small value, such as several hundreds. The method of the present embodiment can be used for online upgrade as long as the flash area for storing firmware information is relatively small. For example, taking the preset value as 500 bytes as an example, if the data size of the firmware information of the target programmable power supply is less than 500, for example, the firmware information size of the programmable digital pwm buck power supply XRP7724 is 448 bytes fixed and less than 500 bytes, the target programmable power supply (e.g., the digital pwm buck power supply XRP7724) may be upgraded online by using the method of the present embodiment.
And S120, acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area.
The target configuration file refers to a file containing a plurality of parameter configuration information, and in this embodiment, may specifically refer to a file including firmware information of the target programmable power supply, which is used as a basis for configuring the target programmable power supply.
After a target configuration file of the target programmable power supply is acquired, the target configuration file is analyzed to obtain firmware information corresponding to the target programmable power supply, and the firmware information is directly written into a programming area preset by the target programmable power supply, so that online upgrade of the target programmable power supply is realized.
Further, on the basis of the above technical solution, the online upgrade method for a programmable power supply provided in this embodiment further includes: and carrying out data verification on the written firmware information.
Illustratively, when data verification is performed on the written firmware information, the data can be realized by comparing the data written in the firmware information of the programmable power supply with the corresponding data in the configuration file one by one, if the comparison result is consistent, the data verification is successful, and if the comparison result is inconsistent, the data verification is failed, and at this time, the operation of rewriting can be performed online.
In an alternative embodiment, after writing the firmware information corresponding to the target configuration file into the programming area, data verification may be performed on the written firmware information. That is, after all the firmware information corresponding to the target configuration file is programmed into the programming area of the target programmable power supply, data verification is performed on all the firmware information in a unified manner. And if the verification fails, rewriting all firmware information corresponding to the target configuration file.
In another alternative embodiment, when the firmware information corresponding to the target configuration file is written into the programming area, data verification may be performed on the written firmware information. That is, when the programming operation of the firmware information is executed, the data verification is performed on the firmware information data corresponding to each programming operation. For example, two bytes of firmware information are written each time, that is, data verification is performed on the two bytes of firmware information immediately after each writing.
The situation of burning failure is inevitable, and in the prior art, whether burning failure occurs cannot be determined until testing is performed after welding of equipment is completed, and unnecessary time and energy of testers are consumed. Once the burning fails, the chip needs to be taken down to be burned by a special burner and then attached back, and the time for producing the equipment is additionally increased no matter the burning fails or the firmware is upgraded, so that a great deal of time and energy is wasted.
According to the technical scheme, online data verification is carried out on the written firmware information, the data accuracy of the firmware information written in the programmable power supply is guaranteed, and labor cost and energy are greatly reduced.
As an optional implementation manner, performing data verification on the written firmware information may specifically be:
determining a first data accumulation sum of the written firmware information;
determining a second data accumulated sum corresponding to the written firmware information in the target configuration file;
and performing data verification on the written firmware information according to the first data accumulation sum and the second data accumulation sum.
The first data accumulation refers to the data accumulation sum of firmware information written into the target programmable power supply; and the second data accumulation sum refers to the data accumulation sum of the firmware information in the target configuration file.
Under the condition that the written firmware information is subjected to data verification after the firmware information corresponding to the target configuration file is written into the programming area, the first data accumulation sum refers to the data accumulation sum of all the firmware information written into the target programmable power supply programming area; the second data-accumulated-sum refers to a data-accumulated-sum of all firmware information in the target configuration file.
When the firmware information corresponding to the target configuration file is written into the programming area, under the condition that data verification is carried out on the written firmware information, the first data accumulation sum refers to the data accumulation sum of the firmware information written into the target programmable power supply programming area at the time; the second data accumulated sum refers to a data accumulated sum of firmware information in the target configuration file corresponding to the current write operation.
If the first data accumulation sum is consistent with the second data accumulation sum, the data verification is successful; and if the first data accumulation sum is inconsistent with the second data accumulation sum, determining that the data verification fails.
The data accumulation and data verification-based mode not only ensures the data accuracy of the firmware information written in the programmable power supply, but also reduces the time complexity and the space complexity of data verification.
Further, if the data verification fails, the program area for erasing the target programmable power supply is returned to be executed, the target configuration file of the target programmable power supply is obtained, and the firmware information corresponding to the target configuration file is written into the program area, that is, the operations in S110-S120 are executed.
In particular, if is I2If the transmission error is caused by the problem of the C (Inter-Integrated Circuit) bus, when the firmware information programming operation is performed again, the continuous writing operation may be interrupted in the address interval where the programming error occurs, and the address and the subsequent area where the programming error occurs may be reselected.
In an alternative embodiment, the number of times the firmware information is re-programmed is counted if the data check fails. If the re-programming times of the firmware information are larger than a preset time threshold, prompting that the target programmable power supply fails to be upgraded on line; and if the re-programming times of the firmware information are less than or equal to a preset time threshold, returning to execute the operation of erasing the programming area of the target programmable power supply, acquiring a target configuration file of the target programmable power supply, and writing the firmware information corresponding to the target configuration file into the programming area.
The preset time threshold refers to a numerical value which is preset according to actual work needs and used for evaluating the number of times of rewriting the firmware information.
According to the technical scheme, the re-programming frequency of the firmware information is judged, so that the situation that the firmware information is continuously re-programmed under the condition of long-time verification failure is avoided.
According to the technical scheme of the embodiment of the invention, the programming area of the programmable power supply is erased, and the firmware information is written into the programming area, so that the programmable power supply can be upgraded on line, and the programming tool does not need to be used for programming and then assembling after disassembly, the production efficiency of equipment is improved, and the labor cost is also reduced. If a plurality of programmable power supplies need to be programmed simultaneously, the power-down restart operation of the equipment can be executed after all firmware information corresponding to the plurality of programmable power supplies is programmed.
Example two
Fig. 2 is a flowchart of an online upgrade method for a programmable power supply according to a second embodiment of the present invention. The present embodiment is refined based on the above embodiment, wherein erasing the programming region of the target programmable power supply may specifically be: determining a first device address of the target programmable power supply for executing programming area erasing operation; and if the first device address meets the safety operation detection condition, executing the programming area erasing operation according to the first device address.
As shown in fig. 2, the method comprises the following specific steps:
s210, determining a first device address for executing a programming region erasing operation in the target programmable power supply.
The first device address refers to an on-chip flash area address corresponding to the programming area erasing operation.
S220, judging whether the first device address meets the safety operation detection condition. If yes, go to S230; if not, go to S250.
The security operation detection condition may refer to that the flash area address belongs to an address range supporting an operation.
Correspondingly, the fact that the first device address meets the safety operation detection condition means that the first device address for executing the programming region erasing operation belongs to the corresponding address range, and otherwise, the first device address does not meet the safety operation detection condition.
And S230, executing a programming area erasing operation according to the first device address.
S240, acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area.
And S250, ending.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
The technical scheme of the embodiment of the invention carries out area range detection on the address of the first device which carries out programming area erasing operation in the target programmable power supply, and carries out corresponding erasing operation only when the safety operation detection condition is met, thereby being capable of avoiding irreversible damage to the target programmable power supply.
EXAMPLE III
Fig. 3 is a flowchart of an online upgrade method for a programmable power supply according to a third embodiment of the present invention. The present embodiment is refined based on the above embodiment, wherein the writing of the firmware information corresponding to the target configuration file into the programming area may specifically be: determining a second device address in the target programmable power supply for executing firmware information writing operation; and if the second device address meets the safety operation detection condition, executing firmware information writing operation corresponding to the target configuration file according to the second device address.
As shown in fig. 3, the method comprises the following specific steps:
and S310, erasing the programming area of the target programmable power supply.
When a programming area of a target programmable power supply is erased, a first device address of the target programmable power supply for executing programming area erasing operation can be determined; and if the first device address meets the safety operation detection condition, executing the programming area erasing operation according to the first device address.
And S320, determining the address of a second device for executing the firmware information writing operation in the target programmable power supply.
The second device address refers to an address of an on-chip flash area corresponding to the firmware information writing operation.
S330, judging whether the address of the second device meets the safety operation detection condition. If yes, go to S340; if not, go to S350.
The security operation detection condition may refer to that the flash area address belongs to an address range supporting an operation.
Correspondingly, the second device address meeting the safety operation detection condition means that the second device address performing the write operation in the programming region belongs to the corresponding address range, otherwise, the second device address does not meet the safety operation detection condition.
It should be noted that the first device address and the second device address both refer to an on-chip flash area address, and the description using "first" and "second" is only for distinguishing the device address for performing security operation detection when performing an erase operation and when performing a write operation.
And S340, executing firmware information writing operation corresponding to the target configuration file according to the second device address.
And S350, ending.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
The technical scheme of the embodiment of the invention carries out area range detection on the address of the second device which carries out the writing operation of the programming area in the target programmable power supply, and carries out corresponding writing operation only when the safety operation detection condition is met, thereby being capable of avoiding irreversible damage to the target programmable power supply.
Example four
Fig. 4 is a flowchart of an online upgrade method for a programmable power supply according to a fourth embodiment of the present invention. The present embodiment is refined based on the above embodiment, wherein erasing the programming region of the target programmable power supply may specifically be: and if the target configuration file which is matched with the target programmable power supply and is to be programmed exists, erasing the programming area of the target programmable power supply.
As shown in fig. 4, the method includes the following specific steps:
and S410, starting the electronic equipment.
And S420, judging whether a target configuration file which is matched with the target programmable power supply and is to be programmed exists or not. If yes, go to S430; if not, go to S450.
Wherein, matching with the target programmable power supply means matching with the model of the target programmable power supply.
And S430, erasing the programming area of the target programmable power supply.
When a programming area of a target programmable power supply is erased, a first device address of the target programmable power supply for executing programming area erasing operation can be determined; and if the first device address meets the safety operation detection condition, executing the programming area erasing operation according to the first device address.
S440, acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area.
When the firmware information corresponding to the target configuration file is written into the programming area, a second device address for executing firmware information writing operation in the target programmable power supply can be determined; and if the second device address meets the safety operation detection condition, executing firmware information writing operation corresponding to the target configuration file according to the second device address.
And S450, ending.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
According to the technical scheme of the embodiment of the invention, in the starting process of the electronic equipment, whether the target configuration file which is matched with the target programmable power supply and is to be programmed exists or not is judged, if yes, the online upgrade operation of the target programmable power supply is automatically executed, the problem of inconvenience in programming the programmable power supply is solved, and an effective and convenient mode is particularly provided for the programmable power supply which is firstly programmed and then pasted.
EXAMPLE five
Fig. 5 is a flowchart of an online upgrade method for a programmable power supply according to a fifth embodiment of the present invention. The present embodiment is refined based on the above embodiment, wherein erasing the programming region of the target programmable power supply may specifically be: and if an automatic upgrading control instruction aiming at the target programmable power supply is received, erasing the programming area of the target programmable power supply.
As shown in fig. 5, the method includes the following specific steps:
and S510, starting the electronic equipment.
S520, judging whether an automatic upgrading control instruction aiming at the target programmable power supply is received or not. If yes, go to S530; if not, S5100 is executed.
The automatic upgrade control instruction refers to an instruction for instructing the programmable power supply to perform online upgrade, and may be received remotely through a communication interface, for example, the automatic upgrade control instruction may be received through a serial port. The present embodiment does not limit this.
Optionally, the firmware information of the target programmable power supply may be upgraded online by using a remote upgrade method. Specifically, as long as a communication interface exists between the management device and an MCU (Microcontroller Unit) directly connected to the target programmable power supply, an automatic upgrade control instruction is sent to the MCU through the communication interface to trigger the MCU to perform an online upgrade operation on firmware information of the target programmable power supply. According to the technical scheme, the programmable power supply does not need to be additionally disassembled, and the firmware information can be remotely upgraded on line.
If an automatic upgrade control instruction for the target programmable power supply is received, the automatic upgrade process of the target programmable power supply can be executed no matter whether a target configuration file which is matched with the target programmable power supply and is to be programmed exists or not.
And S530, erasing the programming area of the target programmable power supply.
When a programming area of a target programmable power supply is erased, a first device address of the target programmable power supply for executing programming area erasing operation can be determined; and if the first device address meets the safety operation detection condition, executing the programming area erasing operation according to the first device address.
And S540, acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area.
When the firmware information corresponding to the target configuration file is written into the programming area, a second device address for executing firmware information writing operation in the target programmable power supply can be determined; and if the second device address meets the safety operation detection condition, executing firmware information writing operation corresponding to the target configuration file according to the second device address.
And S550, performing data verification on the written firmware information.
In this embodiment, after all the firmware information corresponding to the target configuration file is programmed into the programming area of the target programmable power supply, data verification may be performed on all the firmware information in a unified manner.
And S560, judging whether the verification is successful. If not, executing S570; if yes, S5100 is executed.
And S570, counting the rewriting times of the firmware information.
And S580, judging whether the firmware information re-programming frequency is greater than a preset frequency threshold value. If yes, go to S590; if not, the process returns to the step S530.
And S590, prompting that the target programmable power supply fails to be upgraded on line.
If the target programmable power supply fails to be upgraded on line for multiple times, human intervention can be performed, the reason causing the failure is determined, the corresponding problem is solved, and then burning is performed again, so that unnecessary burning caused by other factors is avoided.
And S5100, ending.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
According to the technical scheme of the embodiment of the invention, whether the automatic upgrading control instruction aiming at the target programmable power supply is received or not is judged, if yes, the online upgrading operation of the target programmable power supply is automatically executed, the problem of inconvenience in burning the programmable power supply is solved, and an effective and convenient mode is particularly provided for the programmable power supply of a type of burning before pasting.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an online upgrade apparatus for a programmable power supply according to a sixth embodiment of the present invention, which can execute the online upgrade method for a programmable power supply according to the foregoing embodiments. The device can be implemented in software and/or hardware, and as shown in fig. 6, the online upgrade device for a programmable power supply specifically includes: a programming area erasing module 610 and a firmware information writing module 620.
The programming region erasing module 610 is configured to erase a programming region of the target programmable power supply; the data size of the target programmable power supply firmware information is fixed and is smaller than a preset value;
a firmware information writing module 620, configured to obtain a target configuration file of the target programmable power supply, and write firmware information corresponding to the target configuration file into the programming area.
According to the technical scheme of the embodiment of the invention, the programming area of the programmable power supply is erased, and the firmware information is written into the programming area, so that the programmable power supply can be upgraded on line, and the programming tool does not need to be used for programming and then assembling after disassembly, the production efficiency of equipment is improved, and the labor cost is also reduced.
Optionally, the program area erase module 610 may be specifically configured to determine a first device address of the target programmable power supply for performing a program area erase operation; and if the first device address meets the safety operation detection condition, executing the programming area erasing operation according to the first device address.
Optionally, the firmware information writing module 620 may be specifically configured to determine an address of a second device in the target programmable power supply, where the address is used to perform firmware information writing operation; and if the second device address meets the safety operation detection condition, executing firmware information writing operation corresponding to the target configuration file according to the second device address.
Optionally, the online upgrade apparatus for a programmable power supply further includes a firmware information verification module, which is specifically configured to perform data verification on the written firmware information after writing the firmware information corresponding to the target configuration file into the programming area.
Optionally, the firmware information verification module is specifically configured to perform data verification on the written firmware information when the firmware information corresponding to the target configuration file is written into the programming area.
Optionally, the firmware information verification module includes a first data accumulation and determination unit, a second data accumulation and determination unit, and a data verification unit.
Wherein the first data accumulation sum determination unit is operable to determine a first data accumulation sum of the written firmware information;
the second data accumulation and determination unit may be configured to determine a second data accumulation and corresponding to the written firmware information in the target configuration file.
The data verification unit may be configured to perform data verification on the written firmware information according to the first data accumulation sum and the second data accumulation sum.
Optionally, the device for upgrading a programmable power supply online further includes a repeated programming module, which is specifically configured to return to execute an operation of erasing a programming region of a target programmable power supply, obtaining a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming region if data verification fails.
Optionally, the online upgrade device for a programmable power supply further includes a programmable power supply upgrade failure prompt module, which is specifically configured to count the number of times of rewriting the firmware information; and if the re-programming times of the firmware information are larger than a preset time threshold, prompting that the target programmable power supply fails to be upgraded on line.
Optionally, the programming region erasing module 610 is specifically configured to erase the programming region of the target programmable power supply if a target configuration file matching the target programmable power supply and to be programmed exists;
optionally, the programming region erasing module 610 may be specifically configured to erase the programming region of the target programmable power supply if an automatic upgrade control instruction for the target programmable power supply is received.
The online upgrading device of the programmable power supply provided by the embodiment of the invention can execute the online upgrading method of the programmable power supply provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an electronic apparatus according to a seventh embodiment of the present invention, as shown in fig. 7, the electronic apparatus includes a processor 710, a memory 720, an input device 730, an output device 740, and a programmable power supply 750; the number of the processors 710 in the electronic device may be one or more, and one processor 710 is taken as an example in fig. 7; the number of the programmable power supplies 750 in the electronic device may be one or more, the programmable power supplies 750 are used for supplying power to one or more devices in the electronic device, and one programmable power supply 750 is taken as an example in fig. 7; the processor 710, the memory 720, the input device 730, and the output device 740 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 7.
The memory 720, which is a computer-readable storage medium, can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the online upgrade method of the programmable power supply in the embodiment of the present invention (for example, the programming region erasing module 610 and the firmware information writing module 620 in the online upgrade apparatus of the programmable power supply). The processor 710 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 720, that is, implements the above-described online upgrade method of the programmable power supply.
The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 720 may further include memory located remotely from the processor 710, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 740 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for online upgrade of a programmable power supply, the method including:
erasing the programming area of the target programmable power supply; the data size of the target programmable power supply firmware information is fixed and is smaller than a preset value;
and acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the online upgrade method for the programmable power supply provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the online upgrade apparatus for a programmable power supply, each unit and each module included in the online upgrade apparatus are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An online upgrade method for a programmable power supply, comprising:
erasing the programming area of the target programmable power supply; the data size of the target programmable power supply firmware information is fixed and is smaller than a preset value;
and acquiring a target configuration file of the target programmable power supply, and writing firmware information corresponding to the target configuration file into the programming area.
2. The method of claim 1, wherein erasing the programmed region of the target programmable power supply comprises:
determining a first device address of the target programmable power supply for executing programming area erasing operation;
if the first device address meets the safety operation detection condition, executing a programming region erasing operation according to the first device address;
and/or the presence of a gas in the gas,
writing the firmware information corresponding to the target configuration file into the programming area, including:
determining a second device address in the target programmable power supply for executing firmware information writing operation;
and if the second device address meets the safety operation detection condition, executing firmware information writing operation corresponding to the target configuration file according to the second device address.
3. The method of claim 1, further comprising, after writing the firmware information corresponding to the target configuration file to the programming area:
carrying out data verification on the written firmware information;
and/or when the firmware information corresponding to the target configuration file is written into the programming area, the method further comprises the following steps:
and carrying out data verification on the written firmware information.
4. The method of claim 3, wherein performing a data check on the written firmware information comprises:
determining a first data accumulation sum of the written firmware information;
determining a second data accumulated sum corresponding to the written firmware information in the target configuration file;
and performing data verification on the written firmware information according to the first data accumulation sum and the second data accumulation sum.
5. The method of claim 3, further comprising:
and if the data verification fails, returning to execute the operation of erasing the programming area of the target programmable power supply, acquiring a target configuration file of the target programmable power supply, and writing the firmware information corresponding to the target configuration file into the programming area.
6. The method of claim 5, further comprising:
counting the rewriting times of the firmware information;
and if the re-programming times of the firmware information are larger than a preset time threshold, prompting that the target programmable power supply fails to be upgraded on line.
7. The method of claim 1, wherein erasing the programmed region of the target programmable power supply comprises:
if a target configuration file which is matched with the target programmable power supply and is to be programmed exists, erasing a programming area of the target programmable power supply; alternatively, the first and second electrodes may be,
and if an automatic upgrading control instruction aiming at the target programmable power supply is received, erasing the programming area of the target programmable power supply.
8. An apparatus for online upgrade of a programmable power supply, comprising:
the programming area erasing module is used for erasing the programming area of the target programmable power supply; the data size of the target programmable power supply firmware information is fixed and is smaller than a preset value;
and the firmware information writing module is used for acquiring a target configuration file of the target programmable power supply and writing the firmware information corresponding to the target configuration file into the programming area.
9. An electronic device, characterized in that the electronic device comprises:
one or more programmable power supplies for powering one or more devices in the electronic device;
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110771430.3A 2021-07-08 2021-07-08 Online upgrade method, device and equipment of programmable power supply and storage medium Active CN113434179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110771430.3A CN113434179B (en) 2021-07-08 2021-07-08 Online upgrade method, device and equipment of programmable power supply and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110771430.3A CN113434179B (en) 2021-07-08 2021-07-08 Online upgrade method, device and equipment of programmable power supply and storage medium

Publications (2)

Publication Number Publication Date
CN113434179A true CN113434179A (en) 2021-09-24
CN113434179B CN113434179B (en) 2023-12-19

Family

ID=77759615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110771430.3A Active CN113434179B (en) 2021-07-08 2021-07-08 Online upgrade method, device and equipment of programmable power supply and storage medium

Country Status (1)

Country Link
CN (1) CN113434179B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360809A (en) * 2023-05-31 2023-06-30 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117313A1 (en) * 2004-11-23 2006-06-01 You-Ying Yeh Method for patching firmware in memory device
CN109189430A (en) * 2018-09-14 2019-01-11 郑州云海信息技术有限公司 A kind of power supply firmware upgrade method, device, equipment and storage medium
CN109582325A (en) * 2017-09-28 2019-04-05 深圳市优必选科技有限公司 Method for upgrading software, robot and the computer readable storage medium of robot
CN109669714A (en) * 2018-12-19 2019-04-23 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium
CN110187899A (en) * 2019-06-04 2019-08-30 深圳云里物里科技股份有限公司 A kind of firmware programming method, apparatus and its relevant device
CN111104139A (en) * 2019-12-20 2020-05-05 苏州浪潮智能科技有限公司 Firmware upgrading method, device, equipment and storage medium
CN112199109A (en) * 2020-10-16 2021-01-08 杭州觅睿科技有限公司 Firmware upgrading method, device, equipment and medium
CN112783818A (en) * 2020-12-30 2021-05-11 加弘科技咨询(上海)有限公司 Online upgrading method and system for multi-core embedded system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117313A1 (en) * 2004-11-23 2006-06-01 You-Ying Yeh Method for patching firmware in memory device
CN109582325A (en) * 2017-09-28 2019-04-05 深圳市优必选科技有限公司 Method for upgrading software, robot and the computer readable storage medium of robot
CN109189430A (en) * 2018-09-14 2019-01-11 郑州云海信息技术有限公司 A kind of power supply firmware upgrade method, device, equipment and storage medium
CN109669714A (en) * 2018-12-19 2019-04-23 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium
CN110187899A (en) * 2019-06-04 2019-08-30 深圳云里物里科技股份有限公司 A kind of firmware programming method, apparatus and its relevant device
CN111104139A (en) * 2019-12-20 2020-05-05 苏州浪潮智能科技有限公司 Firmware upgrading method, device, equipment and storage medium
CN112199109A (en) * 2020-10-16 2021-01-08 杭州觅睿科技有限公司 Firmware upgrading method, device, equipment and medium
CN112783818A (en) * 2020-12-30 2021-05-11 加弘科技咨询(上海)有限公司 Online upgrading method and system for multi-core embedded system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TIGRAN MKRTCHYAN: "A radiation tolerant readout link and control board for the Phase-II upgrade of the ATLAS Hadronic Tile Calorimeter", 《2018 IEEE NUCLEAR SCIENCE SYMPOSIUM AND MEDICAL IMAGING CONFERENCE PROCEEDINGS (NSS/MIC)》, pages 1 - 3 *
张治安: "基于中间件对嵌入式设备远程升级的设计与实现", 《CNKI优秀硕士学位论文全文库 工程科技Ⅱ辑》, no. 08, pages 035 - 419 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360809A (en) * 2023-05-31 2023-06-30 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal
CN116360809B (en) * 2023-05-31 2023-08-22 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal

Also Published As

Publication number Publication date
CN113434179B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
CN110765026B (en) Automatic test method, device, storage medium and equipment
CN102135927B (en) Method and device for system booting based on NAND FLASH
CN104199706A (en) Firmware upgrade method and device for eMMC
CN105718281B (en) A kind of touch screen firmware upgrade method and device
CN112000351B (en) Updating method, updating device, updating equipment and storage medium of BMC (baseboard management controller) firmware
CN106201563A (en) The method and apparatus that the collocation method of start-up parameter and device, mainboard start
TWI743395B (en) The method for updating firmware via remote utility、computer system and non-transitory computer-readable medium
CN101937351A (en) Method and system for automatically installing application software
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN104731678A (en) RAID storage mode test system and method and electronic device
CN112083972B (en) BMC system configuration method, device, equipment and readable storage medium
CN112231228A (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN105117265A (en) File upgrading method and device and terminal
CN113434179B (en) Online upgrade method, device and equipment of programmable power supply and storage medium
CN107450953B (en) Method and device for updating BIOS
CN113010190A (en) MAC address burning method, device, equipment and storage medium
CN106649137B (en) Nand Flash bad block management method and device and memory
CN113918197A (en) Firmware upgrading method, system, storage medium and equipment
CN112445670B (en) eMMC test method and device
CN103809988A (en) Information processing method and electronic device
CN106095643A (en) The establishing method of systematic parameter access and server thereof
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN111966199B (en) CPLD online upgrade slow start method, device, equipment and storage medium
CN115080325A (en) PSU (power system unit) testing method, system, device and medium based on PDU (protocol data Unit)
CN107943575A (en) Multitask monitoring and managing method and device in SPI NAND

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
GR01 Patent grant
GR01 Patent grant