CN114201026A - Voltage control method, voltage control device, storage medium and electronic equipment - Google Patents
Voltage control method, voltage control device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114201026A CN114201026A CN202111409872.XA CN202111409872A CN114201026A CN 114201026 A CN114201026 A CN 114201026A CN 202111409872 A CN202111409872 A CN 202111409872A CN 114201026 A CN114201026 A CN 114201026A
- Authority
- CN
- China
- Prior art keywords
- voltage
- port
- power supply
- switch
- resistance value
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000002596 correlated effect Effects 0.000 claims description 18
- 230000000875 corresponding effect Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 19
- 239000003990 capacitor Substances 0.000 description 15
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 12
- 230000006872 improvement Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000005070 sampling Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method 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
- 238000011897 real-time detection Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
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)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Electromagnetism (AREA)
- Radar, Positioning & Navigation (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Sources (AREA)
Abstract
The specification discloses a voltage control method, a voltage control device, a storage medium and electronic equipment, wherein a first voltage output by a power supply end is detected, if the first voltage is not in a specified range, the hidden danger that a switching chip is insufficient in power supply or the power supply voltage is too high 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 the target voltage. The target voltage is a calculated value of the voltage output by the power supply end of the switch to the exchange chip and the external equipment under the condition that the exchange chip normally works under the current connection state of the switch and the external equipment. 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 disclosure relates to the field of data processing technologies, and in particular, to a voltage control method and apparatus, a storage medium, and an electronic device.
Background
At present, the switch is widely applied to a plurality of fields of production and life, and becomes an indispensable part in social life.
A Switch (Switch) means a "Switch", which is a network device used for electrical (optical) signal forwarding. It may provide an exclusive electrical signal path for any two network nodes accessing the switch. The exchange is a general name of the technology of sending the information to be transmitted to the corresponding route meeting the requirements by a method of manual or automatic completion by equipment according to the requirements of transmitting the information at two communication ends.
In the related art, some switches not only provide digital switching functions but also supply power to external devices connected thereto, for example, poe (power Over ethernet) switches. The switch has the exchange chip itself, and the exchange chip plays the managerial action to the switch in the in-process of switch operation on the one hand, and on the other hand also can the consumption electric energy that the switch provided to a certain extent. If the external device connected with the switch is newly added in the using process of the switch, and the total voltage output to the switching chip and the external device by the switch is kept unchanged, the voltage shared by the switching chip is too low, and the work of the switching chip is influenced.
Disclosure of Invention
Embodiments of the present disclosure provide a method, an apparatus, a storage medium, and an electronic device for voltage control, so as to partially solve the above 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 designated range, determining a compensation coefficient according to the port parameter of the port of the switch, which is connected with the external equipment; processing the first voltage by adopting the compensation coefficient to obtain a target voltage; and adjusting the resistance value of an adjustable resistor in the power supply terminal according to the target voltage, so that the first voltage output by the power supply terminal is in the specified range.
In an alternative embodiment of the present description, the port parameter includes a port rate; wherein, according to the port parameter of the port of the switch connected with the external device, determining the compensation coefficient comprises: determining a corresponding rate coefficient according to the port rate of a port of the switch, which is connected with external equipment; and determining a compensation coefficient according to the sum of the rate coefficients corresponding to the ports of the switch connected with the external equipment.
In an alternative embodiment of the present description, the rate coefficient is positively correlated to its corresponding port rate.
In an alternative embodiment of the present description, the method further comprises: determining the port number of the ports provided by the power supply end to the external equipment; 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 description, 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 description, the method further comprises: determining the resistance value of an 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 according to the resistance value of a fixed resistor in the power supply end; 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 the target resistance value.
In an alternative embodiment of the present description, the method further comprises: monitoring an idle port of the switch; and triggering to acquire the first voltage output by the power supply end when the condition that the external equipment is accessed to the idle port is monitored.
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; a compensation factor determination module configured to: if the first voltage is not in the designated range, determining a compensation coefficient according to the port parameter of the port of the switch, which is connected with the external equipment; 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 an adjustable resistor in the power supply terminal according to the target voltage, so that the first voltage output by the power supply terminal 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 by the present specification includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the voltage control method when executing the program.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
in the voltage control method, the voltage control device, the storage medium and the electronic device in the embodiments of the present description, a first voltage output by a power supply terminal is detected, and if the first voltage is not within a specified range, it indicates that a hidden danger of insufficient power supply or too high power supply voltage of a switch chip exists, and then, a compensation coefficient is obtained according to a port parameter of a port of an external device connected to 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 the target voltage. The target voltage is a calculated value of the voltage output by the power supply end of the switch to the exchange chip and the external equipment under the condition that the exchange chip normally works under the current connection state of the switch and the external equipment. 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 and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
fig. 1 is a schematic diagram of a voltage control circuit provided in an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a voltage control process provided in an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a voltage control apparatus provided in 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
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the specification without making any creative effort belong to the protection scope of the specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of at least a portion of 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 switch chip and an 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 the external devices connected to the switch.
Further, the power supply terminal includes a DC/DC converter. The supply voltage Vout is output by the DC/DC converter.
Fig. 2 is a voltage control process provided in an embodiment of the present specification, which may specifically include one or more of the following steps:
s200: the first voltage output by the power supply end of the switch is obtained.
The first voltage in this specification is a voltage output by the switch to the switch chip and each external device, and the first voltage is shared by the switch chip and each external device. Under the condition that the first voltage is not changed, if the voltage shared by the external equipment is increased, the voltage shared by the exchange chip is reduced; on the contrary, if the voltage shared by the external device is reduced, the voltage shared by the switching chip is increased.
In an alternative embodiment of the present disclosure, the voltage control unit may obtain the first voltage by means of AC sampling (AC sampling), and in this embodiment, the voltage control unit includes an AC sampling circuit. In another alternative embodiment of the present disclosure, the first voltage may be obtained by other units except the voltage control unit through AC sampling, and then the other units send the first voltage to the voltage control unit, so that the voltage control unit obtains the first voltage.
In addition, the timing at which the voltage control unit acquires the first voltage may be determined according to actual demand. In an optional embodiment of the present specification, the voltage control unit detects an output of the power supply terminal in real time to obtain the first voltage in real time. In another alternative embodiment of the present specification, the voltage control unit periodically detects the output of the power supply terminal to periodically acquire the first voltage.
In yet another alternative embodiment of the present description, the voltage control unit monitors the idle ports of the switch, wherein the idle ports may not be unique. When it is monitored that any one idle port is connected with external equipment, the voltage control unit is triggered to acquire a first voltage output by the power supply end. And/or the voltage control unit monitors non-idle ports of the switch, wherein the non-idle ports may not be unique. When it is monitored that any external device accessed by the non-idle port is removed, the voltage control unit is triggered to acquire the first voltage output by the power supply end. In this embodiment, the voltage control unit actively acquires the first voltage, and an 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 this specification is triggered, so that resource waste caused by real-time detection of the first voltage can be avoided.
S202: and judging whether the first voltage is in a specified range. If yes, after waiting for a specified time period, executing the step again until the judgment result is no. If the determination result is negative, step S204 is executed.
The specified ranges in this specification mean: and 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 obtained experimentally. Following the aforementioned embodiment in which the acquisition for the first voltage is triggered by the change in the connection relationship of the switch and the external device, the connection relationship of the switch and the external device (hereinafter referred to as "designated connection relationship") different corresponds to different designated ranges. Optionally, the voltage control unit locally maintains a voltage range library, and the voltage control unit obtains the 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 designated connection relations, a plurality of designated ranges and corresponding relations between the designated connection relations and the designated ranges, wherein the designated connection relations and the designated ranges are in one-to-one correspondence.
S204: and determining a compensation coefficient according to the port parameter of the port of the switch, which is connected with the external equipment.
In an alternative embodiment of the present specification, the port parameter in this step is a preset parameter of a port of the switch, and illustratively, the port parameter is a rated interaction rate (e.g., 10 megabits, 100 megabits, 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 by the port of the switch to the external device, and the actual parameter can be obtained through detection.
The compensation coefficient obtained in this 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 this specification is a voltage that the target power supply terminal should output when both the switching chip and the external device are guaranteed to operate normally.
The target voltage is a theoretical value for determining a magnitude to which the resistance value of the adjustable resistor should be adjusted in a subsequent step, and the target voltage is not necessarily an actual voltage that can be output by the power supply terminal. Since the actual use condition of the switch may be complicated, and errors caused by quantitative calculation cannot be ignored, even if a certain value in a specified range is taken as a target voltage, the actual output voltage of the power supply terminal, which may be obtained through subsequent step adjustment, is still out of the specified range, and the adjustment of the voltage is invalid.
The target voltage obtained by the compensation coefficient in the step may be within a specified range or outside the specified range, but the actual output of the power supply terminal adjusted by the target voltage obtained in the step can be largely within the specified range.
In an alternative embodiment of the present disclosure, the product of the first voltage and the compensation coefficient may be used as the target voltage.
S208: and adjusting the resistance value of an adjustable resistor in the power supply terminal according to the target voltage, so that the first voltage output by the power supply terminal is in the specified range.
The power supply terminal in this specification includes an adjustable resistor, and the process in this specification adjusts the output of the power supply terminal by adjusting the resistance value of the adjustable resistor. In an alternative embodiment of the present description, the adjustable resistance is a varistor tank. Specifically, the target resistance value can be calculated according to the target voltage, and then the resistance value of the adjustable resistor is adjusted to the target resistance value, that is, the first voltage output by the power supply terminal can be in the specified range.
In the voltage control process in the embodiment of the present description, a first voltage output by a power supply terminal is detected, and if the first voltage is not within a specified range, it indicates that a hidden danger of insufficient power supply or too high power supply voltage of a switch chip exists, and then, a compensation coefficient is obtained according to a port parameter of a port of an external device connected to 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 the target voltage. The target voltage is a calculated value (the calculated value is not necessarily an actual value) of a voltage output from the power supply terminal of the switch to the switch chip and the external device in a case where the switch chip is normally operated in a state where the switch chip is currently 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 complex, and an error of the switch caused by the physical structure of the switch may also be complex, which may result in that the first voltage cannot be adjusted to the designated range through one adjustment of the adjustable resistor.
In view of this, in an alternative embodiment of the present specification, in the case where the judgment in step S202 is no, the specified number of times is determined. Then, the adjustment times of the resistance value of the adjustable resistor are recorded, and if the adjustment times are smaller than the designated times, the steps S204 to S208 are executed again until the adjustment times are not greater than the designated times and not smaller than the designated times. Then, the number of times of adjusting the resistance value of the adjustable resistor is set to zero, and step S202 is waited to be executed again.
Wherein the specified number of times is an integer of 1 or more. Optionally, the specified number of times may be a preset value; further optionally, the specified number of times may also be positively correlated with at least one of: the proportion of the number of non-idle ports to the total number of ports, and the interface rate of the external device causing the change of the designated connection relationship.
In this embodiment, even if there is a case where the determined target voltage is not accurate enough due to an error, the first voltage which the power supply terminal outputs thereafter can be effectively adjusted to be within the specified range.
As can be seen from the foregoing, the process in this specification depends on the compensation of the first voltage to a certain extent, and the extent to which the first voltage is compensated depends on the determination of the compensation coefficient, on the one hand, and the design of the partial circuit (feedback resistance module) that affects the value of the first voltage in the power supply terminal, on the other hand. The determination of the compensation factor and the construction of the feedback resistance module will now be explained.
One, for how to determine the compensation coefficients.
In order to obtain a compensation factor suitable for use when powering the switch, in an alternative embodiment of the present description, for each externally provided port connected to the switch, 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 individual rate coefficients can be used directly as the compensation coefficient. Then in this embodiment, if there are currently 2 10 million devices, 3 hundred million devices, 4 gigabit devices, and 5 ten million devices accessing the switch. Then in this example the compensation factor (β) is β 2 a1+ 3B 1+ 4C 1+ 5D 1
Where a1 is the rate coefficient for a 10 megabyte device, B1 is the rate coefficient for a hundred megabyte device, C1 is the rate coefficient for a giga device, and D1 is the rate coefficient for a ten thousand megabyte device. Optionally, the rate coefficient is positively correlated to the port rate. Optionally, the voltage control unit maintains a rate coefficient database, and the rate coefficient database records a corresponding relationship between the port rate and the rate coefficient. When determining the compensation coefficient, the voltage control unit reads a 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 devices are connected but also the ports to which no external devices are connected are taken into account when determining the compensation coefficients. When the idle port is not connected with the external device, a certain output voltage margin is determined in advance (but the margin is within the range which can be borne by the exchange chip under the condition that the exchange chip works normally), so that when the idle port is connected with the external device, the margin can also play a certain buffering role quickly. Optionally, the compensation factor is positively correlated with the number of ports.
Following the previous embodiment, the sum of the determined rate coefficients and the product of the port coefficients may be used as the compensation coefficient. The compensation coefficient (β) is β ═ (2 × a1+3 × B1+4 × C1+5 × D1) × α
Where α is a port number coefficient, and is positively correlated with the port number of the port to which the power supply terminal supplies to the external device. α may be a measured value during the experiment.
And secondly, aiming at the circuit design of the feedback resistance module.
As shown in fig. 1, the feedback resistance module in this 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 a first inductor, and the other end of the first inductor is electrically connected with a first node. The second output terminal of the DC/DC converter is electrically connected to one terminal of the fixed resistor R1 and one terminal of the adjustable resistor R2 (i.e., the second output terminal of the DC/DC converter, one terminal of the fixed resistor R1 and one terminal of the adjustable resistor R2 are 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 resistance module is electrically connected with the voltage control unit through an I2C bus.
Through the circuit design of this description to the power supply end, can realize promptly through the control of voltage control unit to feedback resistance module, and then realize the regulation to the voltage of power supply end output.
As can be seen from the foregoing, the target voltage obtained through the process in this specification is a theoretical value, and when the output terminal of the switch is adjusted, the difficulty in directly adjusting the first voltage output by the output terminal is high, and the adjustment of the adjustable resistor is relatively simple.
In an optional embodiment of the present specification, the voltage control unit determines, according to a resistance value of a fixed resistor in the power supply terminal, a resistance value of an adjustable resistor in the power supply terminal as a target resistance value when the voltage output by the power supply terminal 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 the target resistance value.
Specifically, after the target voltage is determined, the target resistance value may be calculated according to the following equation (one).
Vout’=VREF×(r1+r2)/r2
Formula (I)
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 resistance module connected to the power supply terminal can be obtained by the following formula (two).
And D is a decimal value converted from the binary system of the resistor loaded by the feedback resistor adjusting module. 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 turned on.
In one embodiment, if the feedback resistance adjustment module RAB is 10k Ω and the output terminal is W, B terminals, the output impedance RWB of the feedback resistance adjustment module is associated with the binary representation as follows:
in a further optional embodiment of this specification, at least a part of the circuit of the switch is further designed to cooperate with the function of the feedback resistance module.
As shown in fig. 1, the switch further includes a first resistor and a first capacitor, 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 being electrically connected to the first node, and the other end of the second capacitor being 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.
In addition, 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 further 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 device provided in an embodiment of the present specification, where the voltage control device may include one or more of the following modules:
a first voltage acquisition module 300 configured to: acquiring a first voltage output by a power supply end of a switch;
a compensation factor determination module 302 configured to: if the first voltage is not in the designated range, determining a compensation coefficient according to the port parameter of the port of the switch, which is connected with the external equipment;
a target voltage determination module 304 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 an adjustable resistor in the power supply terminal according to the target voltage, so that the first voltage output by the power supply terminal is in the specified range.
In an alternative embodiment of the present description, the port parameter comprises a port rate. The compensation factor determining module 302 is specifically configured to: determining a corresponding rate coefficient according to the port rate of a port of the switch, which is connected with external equipment; and determining a compensation coefficient according to the sum of the rate coefficients corresponding to the ports of the switch connected with the external equipment.
In an alternative embodiment of the present description, the rate coefficient is positively correlated to its corresponding port rate.
In an alternative embodiment of the present disclosure, the compensation factor determining module 302 is specifically configured to: determining the port number of the ports provided by the power supply end to the external equipment; 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 determining module 304 is specifically configured to: taking the product of the first voltage and the compensation coefficient as the target voltage
In an optional embodiment of the present disclosure, the adjusting module 306 is specifically configured to: determining the resistance value of an 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 according to the resistance value of a fixed resistor in the power supply end; 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 the target resistance value.
In an optional embodiment of the present disclosure, the first voltage obtaining module 300 is specifically configured to: monitoring an idle port of the switch; and triggering to acquire the first voltage output by the power supply end when the condition that the external equipment is accessed to the idle port is monitored.
Embodiments of the present description also provide a computer-readable storage medium, which stores a computer program, and the computer program can be used to execute the voltage control process provided in fig. 2.
The embodiment of the present specification also provides a schematic structural diagram of the electronic device shown in fig. 4. As shown in fig. 4, at the hardware level, the electronic device may include a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs the computer program to realize any one of the above voltage control processes.
Of course, besides the software implementation, the present specification does not exclude other implementations, such as a combination of logic devices or software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using 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, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, 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 divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description 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.
This 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.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.
Claims (10)
1. A voltage control method, comprising:
acquiring a first voltage output by a power supply end of a switch;
if the first voltage is not in the designated range, determining a compensation coefficient according to the port parameter of the port of the switch, which is connected with the external equipment;
processing the first voltage by adopting the compensation coefficient to obtain a target voltage;
and adjusting the resistance value of an adjustable resistor in the power supply terminal according to the target voltage, so that the first voltage output by the power supply terminal is in the specified range.
2. The method of claim 1, wherein the port parameter comprises a port rate; wherein, according to the port parameter of the port of the switch connected with the external device, determining the compensation coefficient comprises:
determining a corresponding rate coefficient according to the port rate of a port of the switch, which is connected with external equipment;
and determining a compensation coefficient according to the sum of the rate coefficients corresponding to the ports of the switch connected with the external equipment.
3. The method of claim 2, wherein the rate coefficient is positively correlated with its corresponding port rate.
4. The method of claim 1, wherein the method further comprises:
determining the port number of the ports provided by the power supply end to the external equipment;
determining the compensation coefficient according to the port number and the port parameter, wherein the compensation coefficient is positively correlated with the port number.
5. 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.
6. The method of claim 1, wherein the method further comprises:
determining the resistance value of an 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 according to the resistance value of a fixed resistor in the power supply end; 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 the target resistance value.
7. The method of claim 1, wherein the method further comprises:
monitoring an idle port of the switch;
and triggering to acquire the first voltage output by the power supply end when the condition that the external equipment is accessed to the idle port is monitored.
8. A voltage control apparatus, characterized in that the apparatus comprises:
a first voltage acquisition module configured to: acquiring a first voltage output by a power supply end of a switch;
a compensation factor determination module configured to: if the first voltage is not in the designated range, determining a compensation coefficient according to the port parameter of the port of the switch, which is connected with the external equipment;
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 an adjustable resistor in the power supply terminal according to the target voltage, so that the first voltage output by the power supply terminal is in the specified range.
9. 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-7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111409872.XA CN114201026A (en) | 2021-11-19 | 2021-11-19 | Voltage control method, voltage control device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111409872.XA CN114201026A (en) | 2021-11-19 | 2021-11-19 | Voltage control method, voltage control device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114201026A true CN114201026A (en) | 2022-03-18 |
Family
ID=80648947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111409872.XA Pending CN114201026A (en) | 2021-11-19 | 2021-11-19 | Voltage control method, voltage control device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114201026A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115390609A (en) * | 2022-08-08 | 2022-11-25 | 南京芯驰半导体科技有限公司 | Voltage adjusting method and device, electronic equipment and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101462495A (en) * | 2007-12-17 | 2009-06-24 | 美国博通公司 | Method and system for vehicular power distribution utilizing power over Ethernet |
US20090228722A1 (en) * | 2008-03-05 | 2009-09-10 | Inscape Data Corporation | Adjustable-voltage power-over-ethernet (PoE) switch |
CN103595543A (en) * | 2012-08-13 | 2014-02-19 | 中国电信股份有限公司 | A power supply terminal device, a power supply system and a power supply method |
CN105357017A (en) * | 2015-11-16 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | System and method for stabilizing POE (power over Ethernet) power supply voltage |
CN107342871A (en) * | 2017-07-05 | 2017-11-10 | 广州市金宏骏科技工程有限公司 | A kind of POE electric supply installations and method |
CN109149751A (en) * | 2017-06-28 | 2019-01-04 | 南宁富桂精密工业有限公司 | Power supply continues control circuit |
CN110365495A (en) * | 2019-07-03 | 2019-10-22 | 普联技术有限公司 | A kind of PoE is by method for electrically, device and system |
CN112234815A (en) * | 2020-09-29 | 2021-01-15 | 浪潮电子信息产业股份有限公司 | Feedback voltage slope compensation method and related device |
-
2021
- 2021-11-19 CN CN202111409872.XA patent/CN114201026A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101462495A (en) * | 2007-12-17 | 2009-06-24 | 美国博通公司 | Method and system for vehicular power distribution utilizing power over Ethernet |
US20090228722A1 (en) * | 2008-03-05 | 2009-09-10 | Inscape Data Corporation | Adjustable-voltage power-over-ethernet (PoE) switch |
CN103595543A (en) * | 2012-08-13 | 2014-02-19 | 中国电信股份有限公司 | A power supply terminal device, a power supply system and a power supply method |
CN105357017A (en) * | 2015-11-16 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | System and method for stabilizing POE (power over Ethernet) power supply voltage |
CN109149751A (en) * | 2017-06-28 | 2019-01-04 | 南宁富桂精密工业有限公司 | Power supply continues control circuit |
CN107342871A (en) * | 2017-07-05 | 2017-11-10 | 广州市金宏骏科技工程有限公司 | A kind of POE electric supply installations and method |
CN110365495A (en) * | 2019-07-03 | 2019-10-22 | 普联技术有限公司 | A kind of PoE is by method for electrically, device and system |
CN112234815A (en) * | 2020-09-29 | 2021-01-15 | 浪潮电子信息产业股份有限公司 | Feedback voltage slope compensation method and related device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115390609A (en) * | 2022-08-08 | 2022-11-25 | 南京芯驰半导体科技有限公司 | Voltage adjusting method and device, electronic equipment and readable storage medium |
CN115390609B (en) * | 2022-08-08 | 2024-01-26 | 南京芯驰半导体科技有限公司 | Voltage adjustment method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107577694B (en) | Data processing method and device based on block chain | |
KR102231058B1 (en) | Database state determination method and device, and consistency verification method and device | |
CN107770088B (en) | Flow control method and device | |
CN100444073C (en) | Automatic correcting current circuit and method | |
KR101408201B1 (en) | Digital low-dropout regulator using fast current tracking scheme | |
JP2009232596A (en) | Charging control circuit and semiconductor integrated circuit for charging control | |
US20140159699A1 (en) | Bandgap reference circuit | |
CN114201026A (en) | Voltage control method, voltage control device, storage medium and electronic equipment | |
US20230229185A1 (en) | Semiconductor device for generating a reference current or voltage in various temperatures | |
CN110221674A (en) | Server, power supply application method and control device | |
CN112003922A (en) | Data transmission method and device | |
US7928885B2 (en) | A/D converter | |
TWI678606B (en) | Circuits and methods for strengthen load transient response compensation | |
EP4395466A1 (en) | Constant-current control circuit and method | |
JP6673640B2 (en) | Semiconductor device, power supply unit and electronic device | |
CN116302616A (en) | Data processing method and device, storage medium and electronic equipment | |
CN110362442B (en) | Data monitoring method, device and equipment | |
CN109643953A (en) | Digital assistant control ring for electric pressure converter | |
CN110633321B (en) | Data synchronization method, device and equipment | |
JP2008102094A (en) | Voltage monitoring method and its device | |
CN117743472B (en) | Storage task breakpoint synchronization method, device, medium and equipment | |
CN111769587A (en) | Power grid frequency modulation control method and device with participation of photovoltaic power generation | |
JP2013191165A (en) | Power supply management device, microprocessor including the same, and power supply management system | |
US20230403012A1 (en) | Apparatus for controlling in-rush current and an operation method thereof | |
CN115826481B (en) | State detection equipment and state detection method |
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 |