CN113434179B - Online upgrade method, device and equipment of programmable power supply and storage medium - Google Patents

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

Info

Publication number
CN113434179B
CN113434179B CN202110771430.3A CN202110771430A CN113434179B CN 113434179 B CN113434179 B CN 113434179B CN 202110771430 A CN202110771430 A CN 202110771430A CN 113434179 B CN113434179 B CN 113434179B
Authority
CN
China
Prior art keywords
power supply
programmable power
target
firmware information
programming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110771430.3A
Other languages
Chinese (zh)
Other versions
CN113434179A (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

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

Abstract

The embodiment of the invention discloses an online upgrading method, device and equipment of a programmable power supply and a storage medium. The method comprises the following steps: erasing a programming area of the target programmable power supply; the data size of the target programmable power firmware information is fixed and 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. According to the technical scheme provided by the embodiment of the invention, the on-line upgrade of the programmable power supply can be realized, the additional programming tool is not required to be used for programming after disassembly, the assembly is completed, the production efficiency of equipment is improved, and the labor cost is reduced.

Description

Online upgrade method, device and equipment of programmable power supply and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an online upgrading method, device and equipment of a programmable power supply and a storage medium.
Background
A programmable power supply is usually used in the system module of the independent CPU (Central Processing Unit ), and this 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, the chip is required to be pre-programmed in the production process of the product and then the chip is attached. 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 into the base after the chip is programmed by using the special programming tool wastes a lot of time and effort, and especially in the case of programming failure, the chip needs to be removed to be programmed by using the special programming tool and then mounted, so that the production time of the device is additionally increased.
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 a programming area of the target programmable power supply; the data size of the target programmable power firmware information is fixed and 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 firmware information is fixed and 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, including:
one or more programmable power supplies for powering one or more devices in the electronic apparatus;
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 as described in any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to any of the embodiments of the present invention.
According to the technical scheme, 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 updated on line, the programming is completed by using an additional programming tool after disassembly, the equipment production efficiency is improved, and the labor cost is reduced.
Drawings
FIG. 1 is a flow chart of a method for online upgrade of a programmable power supply in accordance with a first embodiment of the present invention;
FIG. 2 is a flow chart of an online upgrade method of a programmable power supply in a second embodiment of the present invention;
FIG. 3 is a flow chart of a method for online upgrade of a programmable power supply in accordance with a third embodiment of the present invention;
FIG. 4 is a flow chart of a method for online upgrade of a programmable power supply in accordance with a fourth embodiment of the present invention;
FIG. 5 is a flow chart of an online upgrade method of a programmable power supply in a fifth embodiment of the present invention;
FIG. 6 is a schematic 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 invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of an online upgrade method for a programmable power supply according to a first embodiment of the present invention, where the embodiment is applicable to online upgrade of the programmable power supply, and particularly provides an effective and convenient online upgrade method for a programmable power supply of a burn-before-paste type.
S110, erasing the programming area of the target programmable power supply.
The data size of the target programmable power firmware information is fixed and smaller than a preset value.
Firmware information refers to programs written into EROM (Eraseable Read Only Memory, erasable read-Only Memory) or EEPROM (Electrically Erasable Programmable Read-Only Memory), 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.
The programming area refers to a flash area in the target programmable power supply, which is specially used for storing firmware information.
The preset value may refer to a preset value for evaluating the data size of the firmware information, and is typically a relatively small value, such as several hundred. 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 a preset value of 500 bytes as an example, if the data size of the firmware information of the target programmable power supply is less than 500 bytes, such as the firmware information size of the programmable digital pwm buck power supply XRP7724 is fixed 448 bytes and less than 500 bytes, the method of the embodiment may be used to upgrade the target programmable power supply (such as the digital pwm buck power supply XRP 7724) online.
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, the target configuration file 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 the target configuration file of the target programmable power supply is obtained, the target configuration file is analyzed, and after firmware information corresponding to the target programmable power supply is obtained, the firmware information is directly written into a programming area preset by the target programmable power supply, so that the online upgrading of the target programmable power supply is realized.
Furthermore, on the basis of the above technical solution, the online upgrade method of the programmable power supply provided in this embodiment further includes: and carrying out data verification on the written firmware information.
When the data verification is performed on the written firmware information, the data verification can be realized by performing one comparison between the data written in the firmware information of the programmable power supply and the corresponding data in the configuration file, if the comparison results are consistent, the data verification is successful, if the comparison results are inconsistent, the data verification is failed, and at the moment, the re-programming operation can be performed on line.
In an alternative embodiment, after the firmware information corresponding to the target configuration file is written into the writing area, the written firmware information may be subjected to data verification. 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, re-writing 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 writing 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 for the firmware information data corresponding to each programming operation. For example, taking two bytes of firmware information to be written each time as an example, the two bytes of firmware information are checked for data immediately after each writing.
The failure of the burn-in is unavoidable, and the prior art cannot determine whether the burn-in fails until the test is performed after the welding of the device is completed, and also consumes unnecessary time and effort of the tester. Once the burning fails, the chip needs to be removed to be burned by a special burner and then mounted back, so that the time for producing the equipment is additionally increased, and a great deal of time and energy are wasted.
According to the technical scheme, the written firmware information is subjected to online data verification, so that the data accuracy of the firmware information written into the programmable power supply is ensured, and the labor cost and energy are greatly reduced.
As an optional implementation manner, the data verification of the written firmware information may be specifically:
determining a first data accumulation sum of the written firmware information;
determining a second data accumulation sum corresponding to the written firmware information in the target configuration file;
and carrying out 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; the second data accumulation sum refers to the data accumulation sum of the firmware information in the target configuration file.
After writing the firmware information corresponding to the target configuration file into the programming area, and then performing data verification on the written firmware information, wherein the first data accumulation sum refers to the data accumulation sum of all the firmware information written into the programming area of the target programmable power supply; the second data accumulation sum refers to the data accumulation 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 the written firmware information is subjected to data verification, the first data accumulation sum refers to the data accumulation sum of the firmware information written into the programming area of the target programmable power supply at the time; the second data accumulation sum refers to the data accumulation sum of the firmware information corresponding to the current write operation in the target configuration file.
If the first data accumulation sum is consistent with the second data accumulation sum, the data check is successful; if the first data accumulation sum is inconsistent with the second data accumulation sum, the data check fails.
The mode based on data accumulation and data verification ensures the data accuracy of firmware information written into a programmable power supply, and reduces the time complexity and the space complexity of data verification.
Further, if the data verification fails, the operation of erasing the programming area of the target programmable power supply, obtaining the target configuration file of the target programmable power supply, and writing the firmware information corresponding to the target configuration file into the programming area is returned, that is, the operation as described in S110-S120 is executed.
In particular, if it is I 2 When the problem of the C (Inter-Integrated Circuit, built-in integrated circuit) bus leads to transmission errors, during the firmware information programming operation, the continuous writing operation can be interrupted in the address interval of the programming error, and the programming address of the programming error and the area behind the programming address can be reselected.
In an alternative embodiment, if the data verification fails, the firmware information re-programming times are counted. If the firmware information re-programming frequency is greater than a preset frequency threshold, prompting that the online upgrade of the target programmable power supply fails; and if the re-programming times of the firmware information are smaller than or equal to a preset times threshold, returning to execute the operation of erasing the programming area of the target programmable power supply, obtaining the 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 frequency threshold value is a value which is preset according to actual working requirements and used for evaluating the re-programming frequency of the firmware information.
According to the technical scheme, the number of times of re-programming of the firmware information is judged, so that the condition that the re-programming is continued under the condition that the long-time verification is unsuccessful is avoided.
According to the technical scheme, 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 updated on line, the programming is completed by using an additional programming tool after disassembly, the equipment production efficiency is improved, and the labor cost is reduced. If there are multiple programmable power supplies to be programmed at the same time, the power-down restarting operation of the device may be performed after all the firmware information corresponding to the multiple programmable power supplies is programmed.
Example two
Fig. 2 is a flowchart of an online upgrade method of a programmable power supply according to a second embodiment of the present invention. The embodiment is refined based on the above embodiment, where erasing the programming area of the target programmable power supply may specifically be: determining a first device address for performing a programming region erase operation in the target programmable power supply; and if the first device address meets the security operation detection condition, executing the erasing operation of the programming area 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 the erasing operation of the programming area in the target programmable power supply.
The first device address refers to an on-chip flash area address corresponding to performing a programming area erase operation.
S220, judging whether the first device address meets a security operation detection condition. If yes, executing S230; if not, S250 is performed.
The security operation detection condition may refer to that the flash area address belongs to a certain address range supporting operation.
Correspondingly, the first device address meeting the security operation detection condition means that the first device address for executing the erasing operation of the programming area belongs to a corresponding address range, otherwise, the first device address does not meet the security operation detection condition.
S230, performing erasure operation of the programming area 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.
S250, ending.
The present embodiment is not explained in detail herein, and reference is made to the foregoing embodiments.
According to the technical scheme provided by the embodiment of the invention, the area range detection is carried out on the first device address for executing the programming area erasing operation in the target programmable power supply, the corresponding erasing operation is executed only when the security operation detection condition is met, and the irreversible damage to the target programmable power supply can be avoided.
Example III
Fig. 3 is a flowchart of an online upgrade method of a programmable power supply according to a third embodiment of the present invention. The embodiment is refined based on the foregoing embodiment, wherein writing the firmware information corresponding to the target configuration file into the writing area may specifically be: determining a second device address in the target programmable power supply at which a firmware information write operation is performed; and if the second device address meets the security operation detection condition, executing a 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:
s310, erasing the programming area of the target programmable power supply.
When a programming region of a target programmable power supply is erased, a first device address for executing the programming region erasing operation in the target programmable power supply can be determined; and if the first device address meets the security operation detection condition, executing the erasing operation of the programming area according to the first device address.
S320, determining a second device address for executing firmware information writing operation in the target programmable power supply.
The second device address refers to an on-chip flash area address corresponding to executing a firmware information writing operation.
S330, judging whether the second device address meets a security operation detection condition. If yes, executing S340; if not, S350 is performed.
The security operation detection condition may refer to that the flash area address belongs to a certain address range supporting operation.
Correspondingly, the second device address meeting the security operation detection condition means that the second device address for executing the writing operation of the writing area belongs to the corresponding address range, otherwise, the second device address does not meet the security operation detection condition.
It should be noted that the first device address and the second device address refer to an on-chip flash area address, and the description using "first" and "second" is only for distinguishing between device addresses for security operation detection when an erase operation is performed and when a write operation is performed.
S340, executing the firmware information writing operation corresponding to the target configuration file according to the second device address.
S350, ending.
The present embodiment is not explained in detail herein, and reference is made to the foregoing embodiments.
According to the technical scheme provided by the embodiment of the invention, the area range detection is carried out on the second device address for executing the writing area writing operation in the target programmable power supply, the corresponding writing operation is executed only when the safety operation detection condition is met, and the irreversible damage to the target programmable power supply can be avoided.
Example IV
Fig. 4 is a flowchart of an online upgrade method of a programmable power supply according to a fourth embodiment of the present invention. The embodiment is refined based on the above embodiment, where erasing the programming area 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 comprises the following specific steps:
s410, starting the electronic equipment.
S420, judging whether a target configuration file which is matched with the target programmable power supply and is to be programmed exists. If yes, executing S430; if not, S450 is performed.
Wherein, matching with the target programmable power supply means matching with the target programmable power supply model.
S430, erasing the programming area of the target programmable power supply.
When a programming region of a target programmable power supply is erased, a first device address for executing the programming region erasing operation in the target programmable power supply can be determined; and if the first device address meets the security operation detection condition, executing the erasing operation of the programming area 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 security operation detection condition, executing a firmware information writing operation corresponding to the target configuration file according to the second device address.
S450, ending.
The present embodiment is not explained in detail herein, and reference is made to the foregoing embodiments.
According to the technical scheme, 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 burnt is judged, if so, the online upgrading operation of the target programmable power supply is automatically executed, the problem of inconvenience in burning of the programmable power supply is solved, and an effective and convenient mode is provided for the programmable power supply of the type of burning before pasting.
Example five
Fig. 5 is a flowchart of an online upgrade method of a programmable power supply according to a fifth embodiment of the present invention. The embodiment is refined based on the above embodiment, where erasing the programming area of the target programmable power supply may specifically be: and if an automatic upgrade control instruction for the target programmable power supply is received, erasing a programming area of the target programmable power supply.
As shown in fig. 5, the method comprises the following specific steps:
s510, starting the electronic equipment.
S520, judging whether an automatic upgrade control instruction for the target programmable power supply is received. If yes, executing S530; if not, S5100 is executed.
The automatic upgrade control instruction refers to an instruction for indicating the programmable power supply to perform online upgrade, and may be received remotely through a communication interface, for example, may be received through a serial port. This embodiment is not limited thereto.
Optionally, the firmware information of the target programmable power supply can be upgraded online by using a remote upgrading mode. Specifically, as long as a communication interface exists between the management device and the MCU (Microcontroller Unit, micro control unit) directly connected with the target programmable power supply, an automatic upgrade control instruction is sent to the MCU through the communication interface so as to trigger the MCU to execute the online upgrade operation of the firmware information of the target programmable power supply. According to the technical scheme, the programmable power supply does not need to be subjected to additional disassembly operation, and remote online upgrading of firmware information can be realized.
And if the automatic upgrading control instruction for the target programmable power supply is received, the automatic upgrading 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.
S530, erasing the programming area of the target programmable power supply.
When a programming region of a target programmable power supply is erased, a first device address for executing the programming region erasing operation in the target programmable power supply can be determined; and if the first device address meets the security operation detection condition, executing the erasing operation of the programming area according to the first device address.
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 security operation detection condition, executing a firmware information writing operation corresponding to the target configuration file according to the second device address.
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.
S560, judging whether the verification is successful. If not, executing S570; if yes, S5100 is executed.
S570, counting the number of times of re-programming the firmware information.
S580, judging whether the re-programming frequency of the firmware information is larger than a preset frequency threshold. If yes, executing S590; if not, return to execution S530.
S590, prompting that the online upgrade of the target programmable power supply fails.
If the target programmable power supply fails to be updated online for multiple times, human intervention can be performed, the cause of the failure is determined, the corresponding problem is solved, and then the target programmable power supply is re-burned, so that unnecessary burning caused by other factors is avoided.
S5100, ending.
The present embodiment is not explained in detail herein, and reference is made to the foregoing embodiments.
According to the technical scheme provided by the embodiment of the invention, whether the automatic upgrading control instruction for the target programmable power supply is received is judged, if yes, the online upgrading operation for the target programmable power supply is automatically executed, the problem of inconvenient burning of the programmable power supply is solved, and an effective and convenient mode is provided for the programmable power supply of the 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, where the apparatus may perform the online upgrade method for a programmable power supply according to the foregoing embodiments. The device can be implemented in a software and/or hardware manner, as shown in fig. 6, and the online upgrade device of the programmable power supply specifically includes: a programming region erase module 610 and a firmware information write 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 firmware information is fixed and smaller than a preset value;
and the firmware information writing module 620 is 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 writing area.
According to the technical scheme, 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 updated on line, the programming is completed by using an additional programming tool after disassembly, the equipment production efficiency is improved, and the labor cost is reduced.
Optionally, the writing area erasing module 610 may be specifically configured to determine a first device address for performing a writing area erasing operation in the target programmable power supply; and if the first device address meets the security operation detection condition, executing the erasing operation of the programming area according to the first device address.
Optionally, the firmware information writing module 620 may be specifically configured to determine a second device address for performing a firmware information writing operation in the target programmable power supply; and if the second device address meets the security operation detection condition, executing a firmware information writing operation corresponding to the target configuration file according to the second device address.
Optionally, the online upgrade device of the programmable power supply further includes a firmware information verification module, specifically configured to perform data verification on the written firmware information after writing the firmware information corresponding to the target configuration file into the writing area.
Optionally, the firmware information verification module is specifically configured to perform data verification on the written firmware information when writing the firmware information corresponding to the target configuration file into the writing 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 and 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 online upgrade device of the programmable power supply further includes a repeated programming module, specifically configured to return to execute the operation of erasing the programming area of the target programmable power supply if the data verification fails, obtain the target configuration file of the target programmable power supply, and write the firmware information corresponding to the target configuration file into the programming area.
Optionally, the online upgrade device of the programmable power supply further comprises a programmable power supply upgrade failure prompt module, which is specifically used for counting the number of times of re-programming firmware information; and if the firmware information re-programming times are greater than a preset times threshold, prompting that the online upgrade of the target programmable power supply fails.
Optionally, the programming region erasing module 610 may be specifically configured to erase the programming region of the target programmable power supply if there is a target configuration file that matches the target programmable power supply and is to be programmed;
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 command for the target programmable power supply is received.
The on-line upgrading device for the programmable power supply provided by the embodiment of the invention can execute the on-line upgrading method for the programmable power supply provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example seven
Fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention, as shown in fig. 7, the electronic device includes a processor 710, a memory 720, an input device 730, an output device 740, and a programmable power supply 750; the number of processors 710 in the electronic device may be one or more, one processor 710 being taken as an example in fig. 7; the number of programmable power supplies 750 in the electronic device may be one or more, and the programmable power supplies 750 are used to power one or more devices in the electronic device, and fig. 7 illustrates one programmable power supply 750 as an example; the processor 710, memory 720, input device 730, and output device 740 in the electronic device may be connected by a bus or other means, for example in fig. 7.
The memory 720 is a computer readable storage medium, and may be used to store 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 area erasing module 610 and the firmware information writing module 620 in the online upgrade device of the programmable power supply). The processor 710 executes various functional applications of the electronic device and data processing by running software programs, instructions and modules stored in the memory 720, i.e., implements the online upgrade method of the programmable power supply described above.
Memory 720 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, 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, memory 720 may further include memory remotely located relative to processor 710, which may be connected to the electronic device via 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 to generate key signal inputs related to user settings and function control of the electronic device. The output device 740 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing an online upgrade method of a programmable power supply, the method comprising:
erasing a programming area of the target programmable power supply; the data size of the target programmable power firmware information is fixed and 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 in the embodiments of the present invention is not limited to the above-described method operations, and may also perform the related operations in the online upgrade method of the programmable power supply provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the online upgrade apparatus of a programmable power supply, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. An online upgrade method for a programmable power supply, comprising:
erasing a programming area of the target programmable power supply; the data size of the target programmable power firmware information is fixed and smaller than a preset value; the programming area is a Flash area for storing firmware information in a target programming power supply; the firmware information is a program written into an erasable read-only memory or an electrified erasable programmable read-only memory;
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 erasing the programming area of the target programmable power supply includes:
if a target configuration file which is matched with the target programmable power supply and is to be programmed exists, a programming area of the target programmable power supply is erased; or,
if an automatic upgrade control instruction for the target programmable power supply is received, erasing a programming area of the target programmable power supply;
wherein the target configuration file refers to a file containing a plurality of parameter configuration information;
after the target configuration file of the target programmable power supply is obtained, the method further comprises the following steps: analyzing the target configuration file to obtain firmware information corresponding to the target programmable power supply, and directly writing the firmware information into a programming area preset by the target programmable power supply, so that the online upgrading of the target programmable power supply is realized.
2. The method of claim 1, wherein erasing the programmed region of the target programmable power supply comprises:
determining a first device address for performing a programming region erase operation in the target programmable power supply;
if the first device address meets the security operation detection condition, performing a programming region erasing operation according to the first device address;
and/or the number of the groups of groups,
writing the firmware information corresponding to the target configuration file into the programming area, wherein the writing comprises the following steps:
determining a second device address in the target programmable power supply at which a firmware information write operation is performed;
and if the second device address meets the security operation detection condition, executing a 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 firmware information corresponding to the target profile to the programming region:
performing 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:
and carrying out data verification on the written firmware information.
4. A method according to claim 3, wherein performing data verification on the written firmware information comprises:
determining a first data accumulation sum of the written firmware information;
determining a second data accumulation sum corresponding to the written firmware information in the target configuration file;
and carrying out data verification on the written firmware information according to the first data accumulation sum and the second data accumulation sum.
5. A method according to 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, obtaining 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 as recited in claim 5, further comprising:
counting the number of times of re-programming firmware information;
and if the firmware information re-programming times are greater than a preset times threshold, prompting that the online upgrade of the target programmable power supply fails.
7. An online upgrade apparatus for 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 firmware information is fixed and smaller than a preset value; the programming area is a Flash area for storing firmware information in a target programming power supply; the firmware information is a program written into an erasable read-only memory or an electrified erasable programmable read-only memory;
the firmware information writing module is used for 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 programming region erasing module is specifically configured to erase a programming region of the target programmable power supply if there is a target configuration file that is matched with the target programmable power supply and is to be programmed; or,
if an automatic upgrade control instruction for the target programmable power supply is received, erasing a programming area of the target programmable power supply;
wherein the target configuration file refers to a file containing a plurality of parameter configuration information;
after the target configuration file of the target programmable power supply is obtained, the method further comprises the following steps: analyzing the target configuration file to obtain firmware information corresponding to the target programmable power supply, and directly writing the firmware information into a programming area preset by the target programmable power supply, so that the online upgrading of the target programmable power supply is realized.
8. An electronic device, the electronic device comprising:
one or more programmable power supplies for powering one or more devices in the electronic apparatus;
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
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 CN113434179A (en) 2021-09-24
CN113434179B true 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)

Families Citing this family (1)

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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI263940B (en) * 2004-11-23 2006-10-11 Ene Technology Inc Memory device firmware patch method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
A radiation tolerant readout link and control board for the Phase-II upgrade of the ATLAS Hadronic Tile Calorimeter;Tigran Mkrtchyan;《2018 IEEE Nuclear Science Symposium and Medical Imaging Conference Proceedings (NSS/MIC)》;第1-3页 *
基于中间件对嵌入式设备远程升级的设计与实现;张治安;《cnki优秀硕士学位论文全文库 工程科技Ⅱ辑》(第08期);第C035-419页 *

Also Published As

Publication number Publication date
CN113434179A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN105718281B (en) A kind of touch screen firmware upgrade method and device
CN101937351B (en) Method and system for automatically installing application software
CN107122321A (en) Hardware restorative procedure, hardware repair system and embodied on computer readable storage device
CN104199706A (en) Firmware upgrade method and device for eMMC
CN104424044A (en) Server system
EP3572933B1 (en) Updating firmware via a remote device
CN113434179B (en) Online upgrade method, device and equipment of programmable power supply and storage medium
CN112083972B (en) BMC system configuration method, device, equipment and readable storage medium
CN107450953B (en) Method and device for updating BIOS
CN109614118B (en) SPI Flash firmware burning method and device
CN113918197A (en) Firmware upgrading method, system, storage medium and equipment
CN103809988A (en) Information processing method and electronic device
CN107491316A (en) Extended method, device and the electronic equipment of baseboard management controller
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN112445670B (en) eMMC test method and device
CN103761203A (en) General connection method for different types of hardware equipment
CN113409863A (en) Method and device for reducing erasing time, electronic equipment and storage medium
CN113434178B (en) Programmable multiphase power supply online upgrading method, device, equipment and storage medium
CN111726604A (en) Setting method and device of working mode data, terminal and readable storage medium
CN110910939B (en) Threshold value adjusting method and device of storage unit, storage equipment and storage medium
CN114924811B (en) Firmware deployment and execution method of multi-core chip
CN111752774B (en) Sleep pressure test method, system, computer device and storage medium
CN109710319B (en) Method and system for identifying in-place hard disk of computer
CN106095445A (en) Driver installation method and device and terminal
CN116126607A (en) Diagnostic test method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant