CN114201026B - Voltage control method and device, storage medium and electronic equipment - Google Patents
Voltage control method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114201026B CN114201026B CN202111409872.XA CN202111409872A CN114201026B CN 114201026 B CN114201026 B CN 114201026B CN 202111409872 A CN202111409872 A CN 202111409872A CN 114201026 B CN114201026 B CN 114201026B
- Authority
- CN
- China
- Prior art keywords
- voltage
- power supply
- switch
- port
- supply end
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000000875 corresponding effect Effects 0.000 claims description 21
- 230000002596 correlated effect Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 18
- 239000003990 capacitor Substances 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 10
- 230000006872 improvement Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 238000005070 sampling Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05F—SYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
- G05F1/00—Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
- G05F1/10—Regulating voltage or current
- G05F1/12—Regulating voltage or current wherein the variable actually regulated by the final control device is AC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/40—Constructional details, e.g. power supply, mechanical construction or backplane
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Engineering (AREA)
- Electromagnetism (AREA)
- Signal Processing (AREA)
- Radar, Positioning & Navigation (AREA)
- Automation & Control Theory (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Direct Current Feeding And Distribution (AREA)
- Power Sources (AREA)
Abstract
The specification discloses a voltage control method, a device, a storage medium and electronic equipment, wherein the method is used for detecting a first voltage output by a power supply end, if the first voltage is not in a specified range, the hidden danger of insufficient power supply or overhigh power supply voltage of a switching chip is indicated, and then, a compensation coefficient is obtained according to port parameters of a port connected with external equipment on a switch. The parameters of the port to which the external device is connected can indicate the power consumption of the external device to some extent. And then, compensating the detected first voltage according to the compensation coefficient to obtain a target voltage. The target voltage is a calculated value of the voltage output by the power supply end of the switch to the switch chip and the external device under the condition that the switch chip works normally under the current connection state of the switch and the external device. Therefore, by the method in the specification, reasonable voltage can be provided for both the exchange chip and the external equipment, so that both the exchange chip and the external equipment can work normally.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a voltage control method, a device, a storage medium, and an electronic apparatus.
Background
At present, the switch is widely applied to a plurality of fields of production and life and has become an indispensable part of social life.
A Switch (Switch) means a "Switch" and is a network device used for forwarding electrical (optical) signals. It can provide an unshared electrical signal path for any two network nodes of the access switch. Switching is a collective term for techniques in which information to be transmitted is sent to a corresponding route that meets the requirements, by a method that is manually or automatically accomplished by equipment, according to the need of information transmission at both ends of communication.
In the related art, some switches not only provide a digital switching function but also supply power to external devices connected thereto, for example, POE (Power Over Ethernet) switches. The switch is provided with a switch chip, and the switch chip plays a management role on the switch in the process of operation of the switch, and consumes the electric energy provided by the switch to a certain extent. If the external equipment connected with the switch is newly added in the use process of the switch, the total voltage output by the switch to the switch chip and the external equipment is kept unchanged, so that the voltage shared by the switch chip is too low, and the work of the switch chip is affected.
Disclosure of Invention
Embodiments of the present disclosure provide a voltage control method, apparatus, storage medium, and electronic device, so as to partially solve the foregoing problems in the prior art.
The embodiment of the specification adopts the following technical scheme:
In a first aspect, the present application provides a voltage control method, including: acquiring a first voltage output by a power supply end of a switch; if the first voltage is not in the specified range, determining a compensation coefficient according to port parameters of a port of the switch, to which external equipment is connected; processing the first voltage by adopting the compensation coefficient to obtain a target voltage; and adjusting the resistance value of the adjustable resistor in the power supply end according to the target voltage so that the first voltage output by the power supply end after the first voltage is in the specified range.
In an alternative embodiment of the present specification, the port parameter includes a port rate; wherein determining the compensation coefficient according to the port parameter of the port of the switch, to which the external device is connected, includes: determining a corresponding rate coefficient according to the port rate of the port of the switch, which is connected with the external equipment; and determining a compensation coefficient according to the sum of rate coefficients corresponding to the ports of the switch, which are connected with the external equipment.
In an alternative embodiment of the present specification, the rate coefficient is positively correlated with its corresponding port rate.
In an alternative embodiment of the present specification, the method further comprises: determining the port number of ports provided by the power supply terminal to external equipment; and determining the compensation coefficient according to the port number and the port parameter, wherein the compensation coefficient is positively correlated with the port number.
In an alternative embodiment of the present specification, the method further comprises: and taking the product of the first voltage and the compensation coefficient as the target voltage.
In an alternative embodiment of the present specification, the method further comprises: according to the resistance value of the fixed resistor in the power supply end, determining the resistance value of the adjustable resistor in the power supply end as a target resistance value under the condition that the voltage output by the power supply end is the target voltage; wherein the target resistance value is positively correlated with the resistance value of the fixed resistor and negatively correlated with the target voltage; and adjusting the resistance value of the adjustable resistor to be the target resistance value.
In an alternative embodiment of the present specification, the method further comprises: monitoring an idle port of the switch; when the idle port is monitored to be connected with external equipment, triggering and acquiring the first voltage output by the power supply end.
In a second aspect, the present specification provides a voltage control apparatus, the apparatus comprising: a first voltage acquisition module configured to: acquiring a first voltage output by a power supply end of a switch; the compensation coefficient determining module is configured to: if the first voltage is not in the specified range, determining a compensation coefficient according to port parameters of a port of the switch, to which external equipment is connected; a target voltage determination module configured to: processing the first voltage by adopting the compensation coefficient to obtain a target voltage; an adjustment module configured to: and adjusting the resistance value of the adjustable resistor in the power supply end according to the target voltage so that the first voltage output by the power supply end after the first voltage is in the specified range.
The present specification provides a computer readable storage medium storing a computer program which when executed by a processor implements the voltage control method described above.
The electronic device provided in the present specification includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the voltage control method described above when executing the program.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect:
According to the voltage control method, the device, the storage medium and the electronic equipment, the first voltage output by the power supply end is detected, if the first voltage is not in a specified range, the hidden danger that the power supply of the exchange chip is insufficient or the power supply voltage is too high is indicated, and then the compensation coefficient is obtained according to the port parameters of the port connected with the external equipment on the exchange. The parameters of the port to which the external device is connected can indicate the power consumption of the external device to some extent. And then, compensating the detected first voltage according to the compensation coefficient to obtain a target voltage. The target voltage is a calculated value of the voltage output by the power supply end of the switch to the switch chip and the external device under the condition that the switch chip works normally under the current connection state of the switch and the external device. Therefore, by the method in the specification, reasonable voltage can be provided for both the exchange chip and the external equipment, so that both the exchange chip and the external equipment can work normally.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
fig. 1 is a schematic diagram of a voltage control circuit according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of a voltage control process according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a voltage control device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of an electronic device corresponding to fig. 2 provided in an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the disclosure, are intended to be within the scope of the disclosure herein.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of at least a portion of the circuitry of a switch provided herein. As shown in fig. 1, the switch includes a power supply terminal that outputs a power supply voltage Vout to the switching chip and the external device. The process in this specification is performed by a voltage control unit. In an alternative embodiment of the present description, the voltage control unit may be part of a switch; in another alternative embodiment of the present description, the voltage control unit may be one of external devices connected to the switch.
Further, the power supply terminal includes a DC/DC converter. The supply voltage Vout is output by a DC/DC converter.
Fig. 2 is a voltage control process provided in an embodiment of the present disclosure, and may specifically include one or more of the following steps:
S200: and acquiring a first voltage output by a power supply end of the switch.
The first voltage in this specification is a voltage output from the switch to the switching chip and each external device, and is shared by the switching chip and each external device. If the voltage shared by the external equipment is increased under the condition that the first voltage is unchanged, the voltage shared by the switching chip is reduced; conversely, if the voltage shared by the external device decreases, the voltage shared by the switch chip will increase.
In an alternative embodiment of the present description, the voltage control unit may obtain the first voltage by means of AC sampling (AC SAMPLING, alternating current sampling), in which embodiment the voltage control unit comprises an AC sampling circuit. In another alternative embodiment of the present specification, the first voltage may be obtained by AC sampling by a unit other than the voltage control unit, and then the first voltage is transmitted to the voltage control unit by the other unit so that the voltage control unit obtains the first voltage.
In addition, the timing of the voltage control unit for acquiring the first voltage may be determined according to actual requirements. In an alternative embodiment of the present disclosure, the voltage control unit detects the output of the power supply terminal in real time, so as to obtain the first voltage in real time. In another alternative embodiment of the present disclosure, the voltage control unit periodically detects the output of the power supply terminal to periodically obtain the first voltage.
In yet another alternative embodiment of the present specification, the voltage control unit monitors the free ports of the switch, wherein the free ports may not be unique. When any one of the idle ports is monitored to be connected with external equipment, the voltage control unit is triggered to acquire the first voltage output by the power supply end. And/or the voltage control unit monitors the non-idle ports of the switch, wherein the non-idle ports can be non-unique. When any external equipment connected with a non-idle port is removed, a trigger voltage control unit acquires a first voltage output by the power supply end. In this embodiment, the voltage control unit actively acquires the first voltage, and the external factor such as access of an external device is not required to trigger the voltage control unit to acquire the first voltage, so that the first voltage abnormality caused by the change of the working state of the power supply terminal can be effectively detected.
In this embodiment, when the connection relationship between the external device and the switch changes, the step of acquiring the first voltage in the present specification is triggered, so that resource waste caused by detecting the first voltage in real time can be avoided.
S202: it is determined whether the first voltage is within a specified range. If yes, after waiting for the appointed time period, executing the step again until the judging result is no. If the result of the determination is negative, step S204 is performed.
The specified ranges in this specification refer to: under the condition that the exchange chip and the external equipment can work normally, the voltage output by the power supply end.
In an alternative embodiment of the present description, the specified ranges are experimentally obtained. In the embodiment in which the acquisition of the first voltage is triggered by the foregoing change in the connection relationship between the switch and the external device, different connection relationships between the switch and the external device (hereinafter referred to as "designated connection relationships") correspond to different designated ranges. Optionally, the voltage control unit locally maintains a voltage range library, and the voltage control unit obtains a specified range matched with the current connection relationship from the voltage range library according to the connection relationship between the current switch and the external device. The voltage range library stores a plurality of specified connection relations, a plurality of specified ranges and corresponding relations between the specified connection relations and the specified ranges, and the specified connection relations and the specified ranges are in one-to-one correspondence.
S204: and determining a compensation coefficient according to the port parameters of the port of the switch, which is connected with the external equipment.
In an alternative embodiment of the present disclosure, the port parameter in this step is a preset parameter of a port of the switch, and illustratively the port parameter is a nominal interaction rate (e.g., 10 mega, 100 mega, etc.) provided by the port of the switch. In another alternative embodiment of the present specification, the port parameter in this step is a parameter actually provided to the external device by the port of the switch, which actual parameter can be obtained by detection.
The compensation coefficient obtained in the step is used for compensating the first voltage obtained in the previous step.
S206: and processing the first voltage by adopting the compensation coefficient to obtain a target voltage.
The target voltage in the specification is the voltage which the target power supply terminal should output under the condition of ensuring that the exchange chip and the external equipment work normally.
The target voltage is a theoretical value used for determining to which magnitude the resistance value of the adjustable resistor should be adjusted in a subsequent step, and is not necessarily the actual voltage that the power supply terminal can output. Since the actual use condition of the switch may be complex, the error caused by quantitative calculation is not ignored, and even if a certain value in a specified range is taken as the target voltage, the actual output voltage of the power supply end, which is possibly obtained by subsequent step adjustment, is still not in the specified range, so that the adjustment of the voltage is invalid.
The target voltage obtained by the step according to the compensation coefficient may be within or out of the specified range, but the actual output of the power supply end obtained by the target voltage adjustment obtained by the step may be more likely to fall within the specified range.
In an alternative embodiment of the present specification, the product of the first voltage and the compensation coefficient may be taken as the target voltage.
S208: and adjusting the resistance value of the adjustable resistor in the power supply end according to the target voltage so that the first voltage output by the power supply end after the first voltage is in the specified range.
The power supply end in the specification comprises an adjustable resistor, and the output of the power supply end is adjusted in the mode of adjusting the resistance value of the adjustable resistor in the process of the specification. In an alternative embodiment of the present description, the adjustable resistor is a varistor. Specifically, the target resistance value can be obtained by calculation according to the target voltage, and then the resistance value of the adjustable resistor is adjusted to the target resistance value, namely, the first voltage output by the power supply end can be in the specified range.
In the voltage control process in the embodiment of the present disclosure, the first voltage output by the power supply terminal is detected, if the first voltage is not within the specified range, it indicates that there is a hidden danger of insufficient power supply or too high power supply voltage of the switch chip, and then, according to the port parameter of the port connected with the external device on the switch, a compensation coefficient is obtained. The parameters of the port to which the external device is connected can indicate the power consumption of the external device to some extent. And then, compensating the detected first voltage according to the compensation coefficient to obtain a target voltage. The target voltage is a calculated value (which is not necessarily an actual value) of the voltage output from the power supply terminal of the switch to the switching chip and the external device in the case where the switching chip is made to operate normally in the state where the switch is connected to the external device. Therefore, by the method in the specification, reasonable voltage can be provided for both the exchange chip and the external equipment, so that both the exchange chip and the external equipment can work normally.
In the actual working process of the switch, the designated connection relationship may be more complex, and the error of the switch caused by the physical structure of the switch may be more complex, so that the first voltage may not be adjusted to be within the designated range after one adjustment of the adjustable resistor.
In view of this, in an alternative embodiment of the present specification, in the case where the judgment of step S202 is no, the specified number of times is determined. And then, starting to record the adjustment times of the resistance value of the adjustable resistor, and if the adjustment times are smaller than the appointed times, executing the steps S204 to S208 again until the adjustment times are not larger than the appointed times and not smaller than the appointed times. Then, the number of times of adjustment of the resistance value of the adjustable resistor is set to zero, and the step S202 is waited for to be executed again.
Wherein the specified number of times is an integer of 1 or more. Alternatively, the specified number of times may be a preset value; further alternatively, the specified number of times may also be positively correlated with at least one of: the number of non-idle ports is proportional to the number of total ports, the interface rate of the external device that causes the specified connection relationship to change.
In this embodiment, even if there is a case where the determined target voltage is not sufficiently accurate due to an error, the first voltage output from the power supply terminal thereafter can be effectively adjusted to be within the specified range.
From the foregoing, it can be seen that the process in this specification depends to a certain extent on the compensation of the first voltage, to which extent the first voltage is compensated, on the one hand on the determination of the Yu Buchang coefficient, and on the other hand on the design of the partial circuit (feedback resistor module) in the power supply terminal that affects the value of the first voltage. The determination of the compensation coefficient and the construction of the feedback resistor module will now be described.
1. For how the compensation coefficient is determined.
To obtain a compensation factor suitable for use when powering a switch, in an alternative embodiment of the present description, for each externally-provided port to which the switch is connected, the port rate of that port is determined. Then, a rate coefficient corresponding to the port rate is determined. And then, obtaining a compensation coefficient according to the sum of the determined rate coefficients.
Alternatively, the sum of the respective rate coefficients may be directly used as the compensation coefficient. In this embodiment, if there are currently 2 10 mega-devices, 3 hundred mega-devices, 4 giga-devices, 5 giga-devices access the switch. Then in this example the compensation coefficient (β) is β=2a1+3+b1+4×c1+5×d1
Where A1 is the rate coefficient of 10 mega-devices, B1 is the rate coefficient of hundred mega-devices, C1 is the rate coefficient of giga-devices, D1 is the rate coefficient of ten mega-devices. Optionally, the rate coefficient is positively correlated with the port rate. Optionally, the voltage control unit maintains a rate coefficient library, in which a correspondence between port rates and rate coefficients is recorded. When determining the compensation coefficient, the voltage control unit reads the port coefficient corresponding to the port rate from the rate coefficient library to determine the compensation coefficient.
In a further alternative embodiment of the present description, not only the ports to which the external device is connected but also the ports to which no external device is connected are considered in determining the compensation coefficient. When the idle port is not connected with external equipment, a certain output voltage margin (but the margin is within a range which can be born by the exchange chip under the condition that the exchange chip works normally) is determined in advance, so that the margin can also play a certain buffering role rapidly when the idle port is connected with the external equipment. Optionally, the compensation coefficient is positively correlated with the number of ports.
In succession to the foregoing embodiment, the product of the sum of the determined rate coefficients and the port coefficient may be used as the compensation coefficient. The compensation coefficient (β) is β= (2a12a13+4c1+5d1) ×α
Where α is a port number coefficient, which is positively correlated with the number of ports provided by the power supply terminal to the external device. Alpha may be a measured value during the course of the experiment.
2. The circuit design aims at the feedback resistor module.
As shown in fig. 1, the feedback resistor module in the present specification includes a fixed resistor R1 and an adjustable resistor R2. The first output end of the power supply end package DC/DC converter is electrically connected with one end of the first inductor, and the other end of the first inductor is electrically connected with the first node. The second output end of the DC/DC converter is electrically connected to one end of the fixed resistor R1 and one end of the adjustable resistor R2 (i.e., the second output end of the DC/DC converter, one end of the fixed resistor R1, and one end of the adjustable resistor R2 are all electrically connected to the second node). The other end of the fixed resistor R1 is electrically connected with the first node, and the other end of the adjustable resistor R2 is grounded. One end of the power supply end outputting the first voltage Vout is electrically connected with the first node. The feedback resistor module is electrically connected with the voltage control unit through an I2C bus.
Through the circuit design of the power supply end in the specification, the control of the feedback resistance module through the voltage control unit can be realized, and then the regulation of the voltage output by the power supply end is realized.
From the foregoing, it can be seen that the target voltage obtained through the process in the present specification is a theoretical value, when the output end of the switch is adjusted, the difficulty of directly adjusting the first voltage output by the output end is relatively high, and the adjustment of the adjustable resistor is relatively simple.
In an optional embodiment of the present disclosure, the voltage control unit determines, as the target resistance, a resistance of an adjustable resistor in the power supply terminal when the voltage output by the power supply terminal is the target voltage according to a resistance of a fixed resistor in the power supply terminal; wherein the target resistance value is positively correlated with the resistance value of the fixed resistor and negatively correlated with the target voltage; and adjusting the resistance value of the adjustable resistor to be the target resistance value.
Specifically, after determining the target voltage, the target resistance value may be calculated according to the following formula (one).
Vout’=VREF×(r1+r2)/r2
Formula 1
Where Vout' is the target voltage and VREF is the reference voltage. r1 is the resistance of the fixed resistor, and r2 is the target resistance.
In the specific implementation of the circuit, the resistance value of the feedback resistor module connected to the power supply terminal can be obtained through calculation according to the following formula (II).
Wherein D is the binary conversion of the resistor loaded by the feedback resistor adjusting module into decimal value. RAB is the maximum output resistance of the feedback resistance adjustment module. RW is the internal impedance of the feedback resistance adjustment module when each terminal is on.
In one specific application, if the feedback resistance-adjustment module RAB is 10kΩ and the output terminal is W, B, the feedback resistance-adjustment module output impedance RWB is associated with the binary representation as follows:
in a further alternative embodiment of the present disclosure, at least part of the circuitry of the switch is also designed to cooperate with the functioning of the feedback resistor module.
As shown in fig. 1, the switch further includes a first resistor and a first capacitor, wherein one end of the first resistor is electrically connected to the first node, one end of the first capacitor is electrically connected to the second node, and the other end of the first resistor is electrically connected to the other end of the first capacitor.
The switch may further include a second capacitor, a third capacitor, and a second resistor, one end of the second capacitor is electrically connected to the first node, and the other end of the second capacitor is grounded. One end of the third capacitor is electrically connected with the first input end of the DC/DC converter, and the other end of the third capacitor is grounded. The second resistor is electrically connected with the second input end of the DC/DC converter, and the other end of the second resistor is grounded.
The switch may further include a fourth capacitor, a fifth capacitor, and a third resistor. One end of the third resistor and one end of the fifth capacitor are electrically connected to the second output end of the DC/DC converter, and one end of the fourth capacitor and the other end of the fifth capacitor are electrically connected to the second node. The other end of the third resistor is electrically connected with the other end of the fourth capacitor.
Based on the same idea, the embodiment of the present specification also provides a voltage control device corresponding to the process shown in fig. 2, and the voltage control device is shown in fig. 3.
Fig. 3 is a schematic structural diagram of a voltage control apparatus according to an embodiment of the present disclosure, where the voltage control apparatus may include one or more of the following modules:
the first voltage acquisition module 300 is configured to: acquiring a first voltage output by a power supply end of a switch;
the compensation coefficient determination module 302 is configured to: if the first voltage is not in the specified range, determining a compensation coefficient according to port parameters of a port of the switch, to which external equipment is connected;
The target voltage determination module 304 is configured to: processing the first voltage by adopting the compensation coefficient to obtain a target voltage;
An adjustment module 306 configured to: and adjusting the resistance value of the adjustable resistor in the power supply end according to the target voltage so that the first voltage output by the power supply end after the first voltage is in the specified range.
In an alternative embodiment of the present specification, the port parameter includes a port rate. The compensation coefficient determining module 302 is specifically configured to: determining a corresponding rate coefficient according to the port rate of the port of the switch, which is connected with the external equipment; and determining a compensation coefficient according to the sum of rate coefficients corresponding to the ports of the switch, which are connected with the external equipment.
In an alternative embodiment of the present specification, the rate coefficient is positively correlated with its corresponding port rate.
In an alternative embodiment of the present disclosure, the compensation coefficient determining module 302 is specifically configured to: determining the port number of ports provided by the power supply terminal to external equipment; and determining the compensation coefficient according to the port number and the port parameter, wherein the compensation coefficient is positively correlated with the port number.
In an alternative embodiment of the present disclosure, the target voltage determination module 304 is specifically configured to: taking the product of the first voltage and the compensation coefficient as the target voltage
In an alternative embodiment of the present disclosure, the adjustment module 306 is specifically configured to: according to the resistance value of the fixed resistor in the power supply end, determining the resistance value of the adjustable resistor in the power supply end as a target resistance value under the condition that the voltage output by the power supply end is the target voltage; wherein the target resistance value is positively correlated with the resistance value of the fixed resistor and negatively correlated with the target voltage; and adjusting the resistance value of the adjustable resistor to be the target resistance value.
In an alternative embodiment of the present disclosure, the first voltage acquisition module 300 is specifically configured to: monitoring an idle port of the switch; when the idle port is monitored to be connected with external equipment, triggering and acquiring the first voltage output by the power supply end.
The present description embodiment also provides a computer-readable storage medium storing a computer program operable to perform the above-described voltage control process provided in fig. 2.
The embodiment of the present specification also proposes a schematic structural diagram of the electronic device shown in fig. 4. At the hardware level, as in fig. 4, the electronic device may include a processor, an internal bus, a network interface, a memory, and a non-volatile storage, although other services may also include hardware as required. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs to realize the process of any voltage control.
Of course, other implementations, such as a logic device or a combination of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing procedure is not limited to each logic unit, but may be hardware or a logic device.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable GATE ARRAY, FPGA)) is an integrated circuit whose logic functions are determined by user programming of the device. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented with "logic compiler (logic compiler)" software, which is similar to the software compiler used in program development and writing, and the original code before being compiled is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but HDL is not just one, but a plurality of kinds, such as ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language), and VHDL (Very-High-SPEED INTEGRATED Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application SPECIFIC INTEGRATED Circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.
Claims (8)
1. A voltage control method, comprising:
Acquiring a first voltage output by a power supply end of a switch, wherein the first voltage is the voltage output by the switch to a switching chip and various external devices;
If the first voltage is not in the specified range, determining a corresponding rate coefficient according to the port rate of the port of the switch, to which the external device is connected; determining a compensation coefficient according to the sum of rate coefficients corresponding to ports of the switch, which are connected with external equipment; the rate coefficient is positively correlated with the corresponding port rate;
processing the first voltage by adopting the compensation coefficient to obtain a target voltage, wherein the target voltage is a calculated value of voltage output by a power supply end of the switch to the switching chip and the external equipment under the condition that the switching chip works normally in the current connection state of the switch and the external equipment;
According to the target voltage, the resistance value of an adjustable resistor in the power supply end is adjusted so that the first voltage output by the power supply end is within the specified range, wherein the specified range is: and under the condition that the exchange chip and the external equipment can work normally, the voltage output by the power supply end.
2. The method of claim 1, wherein the method further comprises:
determining the port number of ports provided by the power supply terminal to external equipment;
And determining the compensation coefficient according to the port number and the port parameter, wherein the compensation coefficient is positively correlated with the port number.
3. The method of claim 1, wherein the method further comprises:
And taking the product of the first voltage and the compensation coefficient as the target voltage.
4. The method of claim 1, wherein the method further comprises:
According to the resistance value of the fixed resistor in the power supply end, determining the resistance value of the adjustable resistor in the power supply end as a target resistance value under the condition that the voltage output by the power supply end is the target voltage; wherein the target resistance value is positively correlated with the resistance value of the fixed resistor and negatively correlated with the target voltage;
and adjusting the resistance value of the adjustable resistor to be the target resistance value.
5. The method of claim 1, wherein the method further comprises:
monitoring an idle port of the switch;
when the idle port is monitored to be connected with external equipment, triggering and acquiring the first voltage output by the power supply end.
6. A voltage control apparatus, the apparatus comprising:
A first voltage acquisition module configured to: acquiring a first voltage output by a power supply end of a switch, wherein the first voltage is the voltage output by the switch to a switching chip and various external devices;
the compensation coefficient determining module is configured to: if the first voltage is not in the specified range, determining a corresponding rate coefficient according to the port rate of the port of the switch, to which the external device is connected; determining a compensation coefficient according to the sum of rate coefficients corresponding to ports of the switch, which are connected with external equipment; the rate coefficient is positively correlated with the corresponding port rate;
A target voltage determination module configured to: processing the first voltage by adopting the compensation coefficient to obtain a target voltage, wherein the target voltage is a calculated value of voltage output by a power supply end of the switch to the switching chip and the external equipment under the condition that the switching chip works normally in the current connection state of the switch and the external equipment;
an adjustment module configured to: according to the target voltage, the resistance value of an adjustable resistor in the power supply end is adjusted so that the first voltage output by the power supply end is within the specified range, wherein the specified range is: and under the condition that the exchange chip and the external equipment can work normally, the voltage output by the power supply end.
7. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-5.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-5 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111409872.XA CN114201026B (en) | 2021-11-19 | 2021-11-19 | Voltage control method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111409872.XA CN114201026B (en) | 2021-11-19 | 2021-11-19 | Voltage control method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114201026A CN114201026A (en) | 2022-03-18 |
CN114201026B true CN114201026B (en) | 2024-10-25 |
Family
ID=80648947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111409872.XA Active CN114201026B (en) | 2021-11-19 | 2021-11-19 | Voltage control method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114201026B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115390609B (en) * | 2022-08-08 | 2024-01-26 | 南京芯驰半导体科技有限公司 | Voltage adjustment method and device, electronic equipment and readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357017A (en) * | 2015-11-16 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | System and method for stabilizing POE (power over Ethernet) power supply voltage |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090152943A1 (en) * | 2007-12-17 | 2009-06-18 | Wael William Diab | Method and system for vehicular power distribution utilizing power over ethernet |
US8020013B2 (en) * | 2008-03-05 | 2011-09-13 | Inscape Data Corporation | Adjustable-voltage power-over-ethernet (PoE) switch |
CN103595543B (en) * | 2012-08-13 | 2018-02-13 | 中国电信股份有限公司 | Power supply end equipment, electric power system and method for supplying power to |
US10483794B2 (en) * | 2017-06-28 | 2019-11-19 | Nanning Fugui Precision Industrial Co., Ltd. | Power continuation control circuit |
CN107342871A (en) * | 2017-07-05 | 2017-11-10 | 广州市金宏骏科技工程有限公司 | A kind of POE electric supply installations and method |
CN110365495B (en) * | 2019-07-03 | 2021-07-30 | 普联技术有限公司 | PoE power receiving method, device and system |
CN112234815B (en) * | 2020-09-29 | 2022-05-13 | 浪潮电子信息产业股份有限公司 | Feedback voltage slope compensation method and related device |
-
2021
- 2021-11-19 CN CN202111409872.XA patent/CN114201026B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357017A (en) * | 2015-11-16 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | System and method for stabilizing POE (power over Ethernet) power supply voltage |
Also Published As
Publication number | Publication date |
---|---|
CN114201026A (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI680656B (en) | Data processing method and equipment based on blockchain | |
CN107707118B (en) | Electronic device including power management integrated circuit | |
US9188491B2 (en) | Semiconductor device including a temperature sensor circuit | |
CN106502359A (en) | Load-based dynamic voltage and frequency scaling method and device | |
US20080263482A1 (en) | Method and Apparatus for Small Die Low Power System-on-Chip Design with Intelligent Power Supply Chip | |
US9995791B2 (en) | Power consumption monitoring device for a power source | |
CN103312331B (en) | A kind of analog to digital converter based on memristor | |
US7880661B2 (en) | Analog-digital converter and on-die thermal sensor including the same | |
CN111740598A (en) | A low-power load current detection circuit for PWM DC-DC converters | |
CN114201026B (en) | Voltage control method and device, storage medium and electronic equipment | |
CN112597255B (en) | A method and device for determining abnormal data | |
JP2008165962A (en) | Memory device which performs stable self-refresh operation, and control signal generating method of self refresh cycle | |
CN110175084B (en) | Data change monitoring method and device | |
CN110907807B (en) | Chip circuit power consumption measuring circuit and method and chip | |
JP7559238B2 (en) | Apparatus, method and system for regulating constant voltage output of a power supply | |
CN102707755A (en) | Linear voltage regulator with built-in compensation capacitor | |
CN117767365A (en) | Independent energy storage charging and discharging method and device considering distributed photovoltaic bearing capacity | |
JP7435968B2 (en) | integrated circuit device | |
CN110362442B (en) | Data monitoring method, device and equipment | |
CN101241450A (en) | Method and system for using IR drop data for instruction thread steering | |
JP2016178773A (en) | Semiconductor device, power source unit, and electronic device | |
CN212486380U (en) | Light-load current detection device based on light-load mode of switching power supply | |
CN111769587A (en) | Power grid frequency modulation control method and device with participation of photovoltaic power generation | |
CN117131633B (en) | A robot structural component optimization method and device based on heat conduction constitutive model | |
Ouremchi et al. | A Li-ion battery charger based on LDO regulator with pre-charge mode in 180nm CMOS technology |
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 |