The present disclosure claims the priority of the Chinese patent application filed on Dec. 1, 2020 before the China National Intellectual Property Administration with the application number of 202011386994.7 and the title of “METHOD FOR ONLINE UPGRADING POWER SUPPLY, APPARATUS AND MEDIUM”, which is incorporated herein in its entirety by reference.
The present disclosure relates to the technical field of power supply control and, more particularly, to a method for online upgrading power supply, an apparatus and a medium.
In a conventional power supply, there are two sets of transformers to convert the input voltage, and the two sets of transformers are controlled by one control chip. When the power supply needs to correct the output voltage, the control chip needs to upgrade the power supply online. At this time, since the power supply must close the output during the online upgrading process, the existing equalization scheme is that two sets of power supplies are used, that is, when one set of power supply is upgraded, the other set of power supply is used for outputting. In this way, the use cost of the power supply in the use process may be greatly increased, and the power supply cannot be used flexibly, therefore the stability of the power supply is reduced.
The main technical problem to be solved in the present disclosure is to provide a method for online upgrading power supply, an apparatus and a medium, which may solve the problem that the power output cannot be simultaneously performed in the process of upgrading the power supply.
In order to solve the problem stated above, a technical solution adopted in the present disclosure is a method for online upgrading a power supply, including:
Further, in the step 1, when the master control chip receives the upgrading request, the master control chip turns off any one of the plurality of transformers in the power supply;
Further, in the step 3, when the upgrading data is completely transmitted, the power supply sends an upgrading preparation signal to the secondary control chip, and after the secondary control chip receives the upgrading preparation signal, a judgment mechanism is triggered; and
Further, the judgment mechanism is that:
Further, in the step 4, the step of the secondary control chip obtaining the confirmation waveform of the power supply includes: the secondary control chip sending a waveform obtaining signal to the power supply; and
Further, the secondary control chip obtains a synchronous period corresponding to a frequency of the confirmation waveform through the frequency of the confirmation waveform, and the secondary control chip sends the confirmation waveform with a frequency corresponding to the synchronous period to the master control chip; and the power supply are upgraded according to the synchronous period; and
In the step 5, after the synchronous period, upgrading power supply by the secondary control chip is completed, and the master control chip turns on the transformer turned off in the step S2, control contents of the secondary control chip and the master control chip alternate; and
Further, in the step 3, through a protocol address, the secondary control chip receives the upgrading data sent by the power supply through the transmission protocol.
An apparatus for online upgrading a power supply, including:
A medium for online upgrading a power supply, wherein the medium is configured for storing software instructions used in the method for online upgrading power supply, and the medium includes a program designed for the method for online upgrading power supply.
The beneficial effects of the present disclosure is as follows: in the present disclosure, without using two sets of power supplies, the power supply may simultaneously perform work output in the process of upgrading, the use cost of the power supply is reduced, the usage of the power supply may be more elastically, and the stability of the power supply is improved.
The better embodiments of the present disclosure are described below in detail in combination with the drawings, so that the advantages and characteristics of the present disclosure may be more easily understood by those skilled in the art, to make a clearer and more explicitly definition to the scope of protection of the present disclosure.
The embodiments of the present disclosure include:
In the first aspect, referring to
The step of upgrading is: an upgrading instruction sending module of the secondary control chip sends an upgrading instruction to the power supply, the power supply receives the upgrading instruction and then enters an upgrading mode. When the power supply enters the upgrading mode, the power supply transmits the upgrading data through the PMBus protocol (i.e. transmission protocol) to the secondary control chip. Both the secondary control chip and the master control chip have corresponding data identification modules. The data identification module has a protocol address corresponding to the PMBus protocol thereon, and the data identification module receives the upgrading data through the protocol address.
The performance index data and the data volume checking code of items of the power supply are included in the upgrading data. Under the upgrading mode, the transmission of the upgrading data of the power supply and the outputting and the power supplying of the power supply do not affect each other and are simultaneously performed.
When the upgrading data of the power supply is completely sent, the upgrading preparation signal sending module of the power supply sends the upgrading preparation signal to the secondary control chip. When the secondary control chip receives the upgrading preparation signal, the judgment mechanism is triggered. The judgment mechanism is:
When the correctness of the system is correct, the control general-purpose input/output GPIO interface of the secondary control chip sends a waveform obtaining signal to the power supply. The power supply may send a confirmation waveform through its own power GPIO interface. The control GPIO interface of the secondary control chip obtains the synchronous period 1/f through the frequency f of the confirmation waveform. The confirmation waveform with a frequency corresponding to the synchronous period is sent to the master control chip, and the master control chip obtains the synchronous period corresponding to the confirmation waveform by using the same method through the control GPIO interface of the master control chip.
The secondary control chip upgrades the power supply. At this time, after the synchronous period 1/f, the secondary control chip completes the upgrading of the power supply, and the control contents of the two chips are converted. The secondary control chip is responsible for controlling to turn on and turn off the transformer connected to the secondary control chip. The master control chip is responsible for receiving the upgrading data and upgrading the power supply.
In the second aspect, referring to
The interfaces that may control to send, receive and generate waveforms may be used, in the present embodiment, the interfaces used are all GPIO interfaces.
In the upgrading control module:
In the upgrading request module:
In the third aspect, on the basis of the same application concept to the method for online upgrading the power supply in the embodiments stated above, the embodiments of the specification further provide a medium for online upgrading a power supply, wherein the medium is configured for storing software instructions used in the method for online upgrading power supply according, and the medium includes a program designed for the method for online upgrading power supply.
Different from the prior art, according to a method for online upgrading the power supply, an apparatus and a medium of the present disclosure, by cooperating two control chips with each other, when the power supply is upgraded online, the outputting of the power supply may be not turned off, the use cost of the power supply may be reduced and the stability of the power supply may be improved.
The above mentioned is only the embodiments of the present disclosure, which does not limit the patent scope of the present disclosure. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present disclosure, or directly or indirectly used in other related arts, is equally included in the patent protection scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202011386994.7 | Dec 2020 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2021/121879 | 9/29/2021 | WO |