Voltage monitoring method and device, electronic equipment and storage medium
By acquiring the voltage value of the computing board load and performing power supply protection, the problem of not being able to identify instantaneous undervoltage in time in the existing technology is solved, realizing intelligent power supply protection for ASIC chips and improving the real-time performance and flexibility of voltage monitoring.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING BITMAIN TECHNOLOGIES
- Filing Date
- 2021-10-09
- Publication Date
- 2026-07-24
AI Technical Summary
Existing voltage monitoring methods cannot identify instantaneous undervoltage or overvoltage in a timely manner, leading to ASIC chip malfunctions, and there is a lack of effective long-term monitoring solutions.
By acquiring the voltage value of the computing board load, it is determined whether the voltage value is less than the first value, and the power supply is protected according to the voltage value, including reducing the load operating frequency or stopping the power supply. The voltage value is collected by the microcontroller (MCU) and stored in a preset area, and real-time monitoring is performed in combination with the reporting time and trigger events.
It improves the real-time performance and flexibility of monitoring instantaneous voltage fluctuations, realizes intelligent power supply protection, reduces damage to ASIC chips, and improves power supply safety and flexibility.
Smart Images

Figure CN114116371B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic technology, and in particular to a voltage monitoring method and apparatus, electronic device and storage medium. Background Technology
[0002] Modern computer equipment often requires extremely high power efficiency, making the Application Specific Integrated Circuit (ASIC) chips in the computing boards highly sensitive to supply voltage. If prolonged high-power output leads to aging of circuits or components, or if occasional transient undervoltage occurs due to power grid fluctuations, the ASIC chip will malfunction. Even if the undervoltage subsequently disappears, the computing board will still be unable to function properly.
[0003] Current products monitor voltage by actively controlling the Peripheral Interface Controller (PIC) chip every 10 seconds to obtain the current voltage, but they lack continuous monitoring of instantaneous voltage. Therefore, they cannot promptly identify and locate momentary undervoltage or overvoltage. Currently, undervoltage is controlled by adjusting the number of bus capacitors, but there is no long-term monitoring solution available. Summary of the Invention
[0004] This disclosure provides a voltage monitoring method and apparatus, an electronic device, and a storage medium.
[0005] The first aspect of this disclosure provides a voltage monitoring method, including:
[0006] Obtain the voltage value of the load on the computing board;
[0007] Determine whether the voltage value is less than the first value;
[0008] When the voltage value is less than the first value, the power supply is protected according to the voltage value.
[0009] Based on the above scheme, the step of providing power supply protection according to the voltage value when the voltage value is less than the first value includes:
[0010] When the voltage value is less than a first value and greater than a second value, the operating frequency of the load is reduced to reduce the power supply required by the power source to the load; wherein the second value is less than the first value;
[0011] And / or,
[0012] When the voltage value is less than the second value, the power supply to the load is stopped.
[0013] Based on the above scheme, obtaining the voltage value of the load on the computing board includes:
[0014] It receives the load voltage value collected by the microcontroller (MCU) on the computing board.
[0015] Based on the above scheme, the MCU is connected in parallel with the power supply input terminal of the load through a voltage divider circuit; the voltage value is collected by the MCU and written into a preset storage area.
[0016] Based on the above scheme, the voltage value of the load collected by the microcontroller (MCU) on the receiving computing board includes:
[0017] When the reporting time is reached, the minimum value stored in the preset storage area is received from the MCU.
[0018] Based on the above scheme, the reporting time includes at least one of the following:
[0019] The time determined based on the reporting cycle;
[0020] The moment when the reported trigger event was determined was detected.
[0021] Based on the above scheme, the first value is:
[0022] The supply voltage value determined based on the power supply conditions of the power source;
[0023] or,
[0024] It was determined based on the obtained historical voltage values.
[0025] A second aspect of this disclosure provides a voltage monitoring device, characterized in that the device comprises:
[0026] The acquisition unit is used to acquire the voltage value of the load on the computing board;
[0027] A determining unit is used to determine whether the voltage value is less than a first value;
[0028] The protection unit is used to provide power supply protection based on the voltage value when the voltage value is less than the first value.
[0029] Based on the above scheme, the protection unit is specifically used for:
[0030] When the voltage value is less than a first value and greater than a second value, the operating frequency of the load is reduced to reduce the power supply required by the power source to the load; wherein the second value is less than the first value;
[0031] And / or,
[0032] When the voltage value is less than the second value, the power supply to the load is stopped.
[0033] Based on the above scheme, the acquisition unit is specifically used for:
[0034] It receives the load voltage value collected by the microcontroller (MCU) on the computing board.
[0035] Based on the above scheme, the MCU is connected in parallel with the power supply input terminal of the load through a voltage divider circuit; the voltage value is collected by the MCU and written into a preset storage area.
[0036] Based on the above scheme, the acquisition unit is specifically used for:
[0037] When the reporting time is reached, the minimum value stored in the preset storage area is received from the MCU.
[0038] Based on the above scheme, the first value is:
[0039] The supply voltage value determined based on the power supply conditions of the power source;
[0040] or,
[0041] It was determined based on the obtained historical voltage values.
[0042] A third aspect of this disclosure provides an electronic device, comprising:
[0043] Memory used to store processor-executable instructions;
[0044] The processor is connected to the memory;
[0045] The processor is configured to execute an electronic device control method as provided by any of the foregoing technical solutions.
[0046] A fourth aspect of this disclosure provides a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a computer processor, the computer is able to perform an electronic device control method as provided in any of the foregoing technical solutions.
[0047] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0048] The technical solution provided in this disclosure includes a voltage monitoring method comprising: acquiring the voltage value of the load on the computing board; determining whether the voltage value is less than a first value; and when the voltage value is less than the first value, providing power supply protection based on the voltage value. By acquiring the voltage value and comparing it with the first value, it is possible to determine whether there is a momentary undervoltage on the computing board load, thereby reducing the phenomenon of poor real-time monitoring of momentary voltage due to the long voltage value acquisition cycle in related technologies. Providing power supply protection based on the real-time acquired voltage value can significantly improve the flexibility and safety of power supply protection under different voltage fluctuation conditions. Attached Figure Description
[0049] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0050] Figure 1 This is a schematic flowchart illustrating a voltage monitoring method according to an exemplary embodiment;
[0051] Figure 2 This is a schematic flowchart illustrating a voltage monitoring method according to an exemplary embodiment;
[0052] Figure 3 This is a schematic diagram of the pin structure of a PIC chip according to an exemplary embodiment;
[0053] Figure 4 This is a schematic diagram of a voltage divider circuit according to an exemplary embodiment;
[0054] Figure 5 This is a schematic flowchart illustrating a voltage monitoring method according to an exemplary embodiment;
[0055] Figure 6 This is a schematic diagram of the structure of a voltage monitoring device according to an exemplary embodiment;
[0056] Figure 7 This is a schematic diagram of the structure of a voltage monitoring system according to an exemplary embodiment;
[0057] Figure 8 This is a schematic flowchart illustrating a voltage monitoring method according to an exemplary embodiment. Detailed Implementation
[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.
[0059] like Figure 1 As shown, this disclosure provides a voltage monitoring method, including:
[0060] S110: Obtain the voltage value of the load on the computing board;
[0061] S120: Determine whether the voltage value is less than the first value;
[0062] S130: When the voltage value is less than the first value, power supply protection is provided according to the voltage value.
[0063] In this embodiment, the computing board can be a computing board used to provide computing resources, or a working circuit module in a computer device used to provide processing resources. The load can be a computing module and / or ASIC chip on the computing board. The power supply can be an external power supply connected to the computing board to provide operating voltage to the computing board, such as a power supply module or an external power supply.
[0064] In one embodiment, obtaining the voltage value of the load on the computing board can be achieved by obtaining the voltage value on the bus of the load, such as an ASIC chip. This can be done via a host computer connected to the computing board to provide control commands, and / or via a monitoring module or processing module located on the computing board. Here, the monitoring module or processing module can be a microcontroller (MCU) on the computing board.
[0065] In another embodiment, the first value can be a critical value for determining whether a momentary undervoltage has occurred in the load, and can be determined based on the power supply voltage, or based on the power supply voltage and load configuration. For example, the first value can be 80% of the power supply voltage, such as 176V when the power supply voltage is 220V.
[0066] In one embodiment, power supply protection based on voltage value can involve adopting different power supply protection strategies depending on the voltage value. For example, the power supply to the computing board can be stopped, or the operating parameters of the computing board, such as the load power, can be adjusted, or a preset voltage compensation circuit can be activated.
[0067] In this way, instead of being limited to collecting the voltage value of the computing board load at a certain period, the real-time performance of the computing board voltage monitoring can be effectively improved, and the difficulty in timely locating and identifying instantaneous voltage anomalies caused by long collection cycles can be suppressed. In addition, power supply protection based on voltage values can realize intelligent power supply protection in the event of instantaneous undervoltage, without the need for manual adjustment of components such as the load-side bus capacitors, and can also flexibly provide power supply protection methods based on the specific undervoltage situation indicated by the voltage value.
[0068] In some embodiments, S130 may include:
[0069] When the voltage value is less than a first value and greater than a second value, the operating frequency of the load is reduced to reduce the power supply required by the power source to the load; wherein the second value is less than the first value;
[0070] And / or,
[0071] When the voltage value is less than the second value, the power supply to the load is stopped.
[0072] In this embodiment of the disclosure, the first value can be a critical value for determining whether an undervoltage situation has occurred, and the second value, which is lower than the first value, can be a threshold value for determining whether a severe undervoltage situation has occurred. For example, the first value can be 80% of the power supply voltage, and the second value can be 70% of the power supply voltage. For instance, if the output voltage of the power supply is 220V, then the first value is 176V and the second value is 154V.
[0073] In one embodiment, when the current voltage value is less than a first value but greater than or equal to a second value, it indicates that the current load circuit has experienced a momentary undervoltage, but not a severe undervoltage, meaning it will not cause significant momentary damage to the power supply, computing board load, or circuitry. Therefore, the momentary undervoltage can be eliminated by adjusting the load's operating parameters. For example, the load's operating frequency can be reduced, or the computing resources of the computing module can be reallocated to reduce the load's operating power, thereby reducing the power supply's output and ensuring normal power supply and the safety of the power supply and load equipment.
[0074] Here, reducing the load operating frequency can be done by downclocking the central processing unit (CPU) in the computing board's ASIC chip, or by downclocking other processors, computing modules, etc.
[0075] In another embodiment, if the current voltage value is less than the second value, it indicates that the current load circuit is in a state of severe undervoltage. In this case, the computing board load is immediately powered off to prevent serious damage to the power supply and load.
[0076] For example, a power control circuit can be set between the power supply and the load, and connected to a monitoring module on a host computer or computing board. When the voltage value is less than a second value, the power control circuit will power off the load.
[0077] In another embodiment, the computing board may further include a voltage compensation circuit connected between the load and the host computer, or connected between the load and a monitoring module on the computing board. When a voltage value is detected to be less than a first value but greater than or equal to a second value, or when a voltage value is detected to be less than the second value, the voltage compensation circuit can be activated to eliminate the momentary undervoltage situation. This eliminates the need to adjust or change the current operating state of the load, thereby suppressing any impact on the normal operation of the computing board.
[0078] Thus, based on the comparison between the voltage value and the first and second values, the specific instantaneous undervoltage situation can be determined. Furthermore, for different instantaneous undervoltage situations, intelligent adjustments to the power supply protection strategy can be implemented. For example, for minor instantaneous undervoltage situations, power can be applied without interruption; adjustments can be made to the load's undervoltage through operations such as frequency reduction, suppressing unnecessary interruptions to the load's normal operation. Based on this, the intelligence and flexibility of the computing board's load power supply protection can be further improved.
[0079] In some embodiments, such as Figure 2 As shown, S110 may include:
[0080] S111: Receives the load voltage value collected by the microcontroller (MCU) on the computing board.
[0081] In this embodiment of the invention, the voltage value collected by the microcontroller (MCU) on the computing board can be received by a host computer. The MCU can be a PIC chip on the computing board, such as a PIC16F1704 chip. The PIC chip can collect the real-time voltage value of the load through its built-in analog-to-digital converter (ADC) module. For example, ... Figure 3 As shown, the load is connected via the analog input pin AN6 of the ADC module, allowing the load voltage value to be acquired at a preset frequency. Here, the preset frequency is the sampling frequency of the ADC module, for example, 10000Hz, meaning 10000 load voltage values are acquired per second. VDD and VSS are power connection terminals, RA0-RA5 are A-defined I / O ports, RC0-RC5 are C-defined I / O ports, ICSPDAT is the serial programming data I / O port, ICSPCLK is the serial programming clock port, AN6 is the ADC analog input port, and PIC_EN is the digital pin controlling the load's power on / off state.
[0082] In one embodiment, after the MCU of the computing board collects the voltage value, it can determine the specific undervoltage situation based on the comparison between the voltage value and the first and second values, and then select different power supply protection strategies. Alternatively, it can provide the data to the host computer, which can then execute the voltage value comparison and issue power supply protection commands.
[0083] In another embodiment, the MCU can periodically provide the collected voltage values to the host computer at a certain reporting period, for example, a preset duration such as 10s or 15s. Taking a reporting period of 10s as an example, the host computer can determine whether there is a voltage value less than a first value and greater than or equal to a second value based on the MCU reporting all voltage values collected within 10s every 10s. If so, it indicates that there is a momentary undervoltage in the computing board load circuit within 10s, and the host computer can reduce the load operating frequency or activate the voltage compensation circuit on the computing board to reduce the power supply required to supply the load. Based on the real-time collected voltage values, the MCU determines whether the voltage value is less than the second value. If it is less than the second value, it indicates that there is a serious momentary undervoltage, and the host computer stops supplying power to the load.
[0084] In another embodiment, the MCU can provide the host computer with the minimum voltage value within a certain reporting period. For example, if the reporting period is 10 seconds, the MCU can determine the minimum voltage value collected within 10 seconds and send it to the host computer. The host computer determines whether the minimum value is less than a first value and greater than or equal to a second value. If so, it indicates a momentary undervoltage, and the MCU reduces the load operating frequency or activates the voltage compensation circuit on the computing board to reduce the power supply required to the load. Additionally, based on the real-time collected voltage value, the MCU determines whether the voltage value is less than a second value. If it is less than the second value, it indicates a severe momentary undervoltage, and the MCU stops supplying power to the load.
[0085] In one embodiment, the step of providing power supply protection based on the voltage value when the voltage value is less than the first value may further include:
[0086] When the voltage value is less than the first value, the backup power supply is used to power the load together with the power supply. The backup power supply includes: a capacitor on the computing board, which is charged or not charged when the power supply is normal, and the capacitor is used together with the power supply when the power supply is abnormal (e.g., undervoltage).
[0087] The backup power supply, when operating together with the main power supply, must meet certain power supply conditions, including but not limited to: the remaining power of the backup power supply is not lower than a preset value, etc.
[0088] That is, if the power supply value is less than the first value and the backup power supply meets the power supply conditions, then the power supply and the backup power supply together supply power to the load.
[0089] If the voltage value is lower than the first value and the backup power supply does not meet the power supply conditions, the power supply to the load can be stopped.
[0090] In one embodiment, the host computer can store the voltage values of the load collected by the MCU to record the voltage changes of the computing board load.
[0091] In some embodiments, the MCU is connected in parallel with the power supply input terminal of the load via a voltage divider circuit; the voltage value is acquired by the MCU and written into a preset storage area.
[0092] Here, the connections between the load and the MCU, or between the load and the host computer, can also be configured as follows: Figure 4 The voltage divider circuit shown is used to connect the MCU in parallel with the load power input via the voltage divider circuit. For example, this could be the ADC pin (AN6 pin) of a PIC chip. Connecting the MCU to the load bus via the voltage divider circuit helps prevent damage to the MCU caused by voltage fluctuations when the load voltage is directly input to the MCU. Here, R1718, R1719, R25, R28, R29, and R32 are all resistors, C21 and C22 are both capacitors, and 1nF50V represents a capacitor with a rated voltage of 50V and a capacitance of 1nF.
[0093] In one embodiment, after the MCU acquires the real-time voltage value through the digital-to-analog converter (ADC) module, it stores the voltage value in a preset storage area, for example, writing the voltage value into the random access memory (RAM) on the computing board. This effectively records the voltage value acquired by the MCU, making it convenient for the host computer to retrieve the acquired voltage value.
[0094] In some embodiments, such as Figure 5 As shown, S111 may include:
[0095] S111a: When the reporting time is reached, receive the minimum value stored in the preset storage area sent by the MCU.
[0096] In this embodiment of the invention, the reporting time can be a preset reporting rule indicating the time when the MCU reports the collected voltage value, such as a reporting time determined according to a certain reporting cycle.
[0097] Here, the MCU sends the minimum value stored in the preset storage area. This can be the minimum voltage value written to the preset storage area by the MCU during the period from the last report to the current time. For example, when the reporting time is reached, the MCU determines the minimum voltage value written to the preset storage area during the time period from the last report to the current report, and reports this minimum value to the host computer. This preset storage area can be a flash memory area, etc.
[0098] In one embodiment, after the MCU reports the collected voltage value or the minimum voltage value to the host computer at the reporting time, it clears the voltage value stored in the preset storage area so that the newly collected voltage value can be rewritten. This prevents the MCU from determining the minimum value by comparing it with the voltage value collected before the previous reporting time when the next reporting time arrives, thus avoiding errors in the power supply protection.
[0099] In another embodiment, the MCU collects voltage values at a certain sampling frequency. Each time a voltage value is collected, it is compared with historical voltage values already stored in a preset storage area. If the voltage value is greater than or equal to a historical voltage value in the preset storage area, the voltage value is not stored; if the voltage value is less than a historical voltage value in the preset storage area, the voltage value is written into the preset storage area, replacing the historical voltage value. In this way, the MCU updates the voltage values stored in the preset storage area based on the collected voltage values, ensuring that the voltage value stored in the preset storage area is the minimum value currently collected.
[0100] Thus, when the reporting time is reached, the host computer can directly receive the value stored in the preset storage area sent by the MCU, which is the minimum value among all the collected voltage values.
[0101] Understandably, the MCU can also update the voltage values stored in the preset storage area based on the collected voltage values. After each report of the minimum voltage value, the voltage values stored in the preset storage area can be reset to a preset value, such as the rated voltage of the power supply. In this way, it can be ensured that the voltage values collected in different reporting stages will not interfere with each other.
[0102] In one embodiment, after receiving the minimum value, the host computer can compare the minimum value with a first value and a second value. When the minimum value is less than the first value and greater than the second value, the operating frequency of the load is reduced; and / or, when the minimum value is less than the second value, the power supply to the load is stopped.
[0103] In another embodiment, after receiving the minimum value, the host computer can compare the minimum value with a first value and a second value. When the minimum value is less than the first value but greater than the second value, the operating frequency of the load is reduced. The MCU compares the collected voltage value and the second value in real time. If the voltage value is less than the second value, the MCU stops supplying power to the load.
[0104] In this way, the host computer only needs to obtain a minimum value to complete the power supply protection of the computing board, and prevent the MCU from sending all the collected voltage values to the host computer, which would result in excessive data transmission and processing, thus occupying more data processing resources and affecting work efficiency.
[0105] In some embodiments, the reporting time may include at least one of the following:
[0106] The time determined based on the reporting cycle;
[0107] The moment when the reported trigger event was determined was detected.
[0108] In this embodiment of the invention, the reporting time is determined based on the reporting period. This can be achieved by using the time corresponding to the end of the reporting period as the reporting time. For example, if the reporting period is 10 seconds, the minimum value stored in the preset storage area is reported every 10 seconds. This reduces the workload of the host computer and suppresses the transmission and processing burden on the host computer caused by continuously acquiring voltage values in real time.
[0109] In one embodiment, when the reporting period is 10 seconds, the MCU can determine the minimum voltage value collected within 10 seconds and send it to the host computer. The host computer determines whether the minimum value is less than a first value and greater than or equal to a second value. If so, it indicates a momentary undervoltage, and the load operating frequency is reduced, or the voltage compensation circuit on the computing board is activated, etc., to reduce the power supply required to the load. Additionally, based on the real-time collected voltage value, the MCU determines whether the voltage value is less than the second value. If it is less than the second value, it indicates a severe momentary undervoltage, and the power supply to the load is stopped. Thus, since the host computer is only used to detect relatively minor momentary undervoltage situations, it will not cause immediate serious damage to the computing board and power supply. Therefore, the host computer can periodically obtain the minimum voltage value collected by the MCU and determine whether the load operating frequency needs to be adjusted. Based on this, the waste of data processing resources caused by both the host computer and the MCU needing to collect and process voltage values in real time can be greatly reduced, thus alleviating the workload.
[0110] In another embodiment, when a reporting trigger event is detected, the corresponding time is used as the reporting time. For example, the reporting trigger event could be that the collected voltage value reaches a certain threshold, indicating a certain degree of instantaneous undervoltage, and then the data is reported to the host computer; or, the reporting trigger event could also be that the operating current, operating voltage, or other operating parameters of the load reach a certain threshold, or that the operating parameters of the load circuit fluctuate to a certain extent, such as a change of more than 30%, and then the voltage value is reported to the host computer for the host computer to determine whether a serious instantaneous undervoltage situation has occurred.
[0111] In some embodiments, the first value can be:
[0112] The supply voltage value determined based on the power supply conditions of the power source;
[0113] Alternatively, it can be determined based on historical voltage values.
[0114] In this embodiment of the invention, the first value used to determine whether a momentary undervoltage condition has occurred can be determined based on the power supply situation, for example, based on the rated voltage of the power supply, or based on the rated voltage of the power supply and the usage of the computing board load. For example, if the rated voltage of the power supply is 220V, the first value can be 80% of the rated voltage, i.e., 176V; or, based on the rated voltage of 220V and the usage of the computing board load, when the computing board load utilization rate is high, the first value can be a higher value, such as 180V, and when the computing board load utilization rate is low, the first value can be a lower value, such as 170V.
[0115] In another embodiment, the first value is determined based on the acquired historical voltage values. This can be determined by the average of all historical voltage values acquired by the computing board's MCU. For example, the average of all acquired historical voltage values can be determined, and 90% of this average can be used as the first value. Alternatively, the first value can be determined based on the average of all acquired historical voltage values that are lower than the power supply's rated voltage. This allows the first value to better reflect the actual load and power supply operation of the computing board, improving the flexibility and accuracy of voltage monitoring and power supply protection.
[0116] like Figure 6 As shown, this disclosure provides a voltage monitoring device, the device comprising:
[0117] Acquisition unit 10 is used to acquire the voltage value of the load on the computing board;
[0118] Determining unit 20 is used to determine whether the voltage value is less than a first value;
[0119] The protection unit 30 is used to provide power supply protection based on the voltage value when the voltage value is less than the first value.
[0120] In some embodiments, the protection unit 30 is specifically used for:
[0121] When the voltage value is less than a first value and greater than a second value, the operating frequency of the load is reduced to reduce the power supply required by the power source to the load; wherein the second value is less than the first value;
[0122] And / or,
[0123] When the voltage value is less than the second value, the power supply to the load is stopped.
[0124] In some embodiments, the acquisition unit 10 is specifically used for:
[0125] It receives the load voltage value collected by the microcontroller (MCU) on the computing board.
[0126] In some embodiments, the MCU is connected in parallel with the power supply input terminal of the load via a voltage divider circuit; the voltage value is acquired by the MCU and written into a preset storage area.
[0127] In some embodiments, the acquisition unit 10 is specifically used for:
[0128] When the reporting time is reached, the minimum value stored in the preset storage area is received from the MCU.
[0129] In some embodiments, the reporting time includes at least one of the following:
[0130] The time determined based on the reporting cycle;
[0131] The moment when the reported trigger event was determined was detected.
[0132] In some embodiments, the first value is:
[0133] The supply voltage value determined based on the power supply conditions of the power source;
[0134] or,
[0135] It was determined based on the obtained historical voltage values.
[0136] The following provides a specific example in conjunction with any of the above embodiments:
[0137] like Figure 7As shown, this embodiment of the disclosure uses the built-in ADC of the PIC16F1704 chip (MCU) on the computing board to monitor the voltage in real time at a frequency of 10000Hz, and records the highest and / or lowest voltage within 20 seconds on the PIC for the host computer's control software to read. By updating the firmware of the PIC chip on the computing board, real-time monitoring of the voltage on the computing board can be achieved. When the load is abnormal, the host computer can effectively locate the power supply failure through the voltage data in the PIC chip, reducing the difficulty and workload of maintenance. Simultaneously, when the load is running, the host computer can use the voltage data in the MCU to issue a warning when undervoltage is detected and take corresponding remedial measures to prevent equipment damage due to abnormal power supply.
[0138] Specifically, such as Figure 8 As shown:
[0139] 1. In terms of hardware design: The bus voltage of the computing board load is fed to the ADC pin of the PIC chip after passing through the voltage divider resistor.
[0140] 2. On the PIC chip firmware: Through the continuous acquisition interrupt function of the PIC's ADC, the PIC is ensured to perform voltage acquisition at a frequency of over 10000Hz and store the data for the host computer to retrieve.
[0141] 3. On the host computer software: Historical voltage data is obtained from the PIC chip every 10 seconds. If the voltage is found to be lower than expected by a certain value, the load power is reduced in a timely manner through operations such as frequency reduction to ensure normal power supply and the safety of the power supply and load equipment.
[0142] 4. The host computer sets a maximum and minimum allowable operating voltage value for the PIC chip; if the PIC chip detects that the voltage is not within this range, it directly powers off the load through the control circuit to ensure the real-time operation of the protection.
[0143] This disclosure provides an electronic device, including:
[0144] Memory used to store processor-executable instructions;
[0145] The processor is connected to the memory;
[0146] The processor is configured to execute the voltage monitoring method provided by any of the aforementioned technical solutions.
[0147] Processors may include various types of storage media that are non-transitory computer storage media, capable of continuing to store information after the electronic device loses power.
[0148] The processor can be connected to the memory via a bus or the like, and can read executable programs stored in the memory, for example, it can execute the methods described in one or more of the foregoing technical solutions.
[0149] This disclosure illustrates the structure of an electronic device in one embodiment. The electronic device includes a processing component, which further includes one or more processors, and memory resources represented by a memory for storing instructions executable by the processing component, such as application programs. The application programs stored in the memory may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component is configured to execute instructions to perform any of the methods described above applied to the electronic device, such as the methods described in one or more of the foregoing technical solutions.
[0150] The electronic device may also include a power supply component configured to perform power management of the electronic device, a wired or wireless network interface configured to connect the electronic device to a network, and an input / output (I / O) interface. The electronic device may operate on an operating system stored in memory, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.
[0151] This disclosure provides a non-transitory computer-readable storage medium that, when the instructions in the storage medium are executed by a computer's processor, enables the computer to perform the voltage monitoring method described in one or more of the foregoing technical solutions.
[0152] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0153] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A voltage monitoring method, characterized in that, The method includes: The voltage value of the load on the computing board is obtained; the voltage value is the minimum voltage value reported by the microcontroller (MCU) on the computing board to the host computer within a preset storage area and during the reporting period; the voltage value of the load is the voltage value on the bus of the load; the MCU collects the voltage value based on a preset sampling frequency, and compares each collected voltage value with the historical voltage value already stored in the preset storage area. If the voltage value is greater than or equal to the historical voltage value in the preset storage area, the voltage value is not stored; if the voltage value is less than the historical voltage value in the preset storage area, the voltage value is written into the preset storage area, replacing the historical voltage value. Determine whether the voltage value is less than the first value; When the voltage value is less than the first value, the power supply is protected according to the voltage value; the step of protecting the power supply according to the voltage value when the voltage value is less than the first value includes: when the voltage value is less than the first value and the backup of the power supply meets the power supply conditions, the power supply and the backup of the power supply are used to supply power to the load; When the voltage value is less than a first value and greater than a second value, the operating frequency of the load is reduced to reduce the power supply required by the power source to the load; wherein, the second value is less than the first value; the first value is used to determine the critical value for a momentary undervoltage in the load; the second value is used to determine whether a severe undervoltage situation has occurred; When the voltage value is less than the second value, the power supply to the load is stopped.
2. The method according to claim 1, characterized in that, The process of obtaining the voltage value of the load on the computing board includes: Receive the load voltage value collected by the MCU on the computing board.
3. The method according to claim 2, characterized in that, The MCU is connected in parallel with the power supply input terminal of the load through a voltage divider circuit; the voltage value is collected by the MCU and written into a preset storage area.
4. The method according to claim 3, characterized in that, The voltage value of the load collected by the microcontroller (MCU) on the receiving computing board includes: When the reporting time is reached, the minimum value stored in the preset storage area is received from the MCU.
5. The method according to claim 4, characterized in that, The reporting time includes at least one of the following: The time determined based on the reporting cycle; The moment when the reported trigger event was determined was detected.
6. The method according to claim 1, characterized in that, The first value is: The supply voltage value determined based on the power supply conditions of the power source; or, It was determined based on the obtained historical voltage values.
7. A voltage monitoring device, characterized in that, The device includes: An acquisition unit is used to acquire the voltage value of the load on the computing board; the voltage value is the minimum voltage value reported by the microcontroller (MCU) on the computing board to the host computer, located in a preset storage area and within the reporting period; the voltage value of the load is the voltage value on the bus of the load; the MCU acquires the voltage value based on a preset sampling frequency, and for each acquired voltage value, compares it with the historical voltage value already stored in the preset storage area; if the voltage value is greater than or equal to the historical voltage value in the preset storage area, the voltage value is not stored; if the voltage value is less than the historical voltage value in the preset storage area, the voltage value replaces the historical voltage value and is written into the preset storage area. A determining unit is used to determine whether the voltage value is less than a first value; The protection unit is used to provide power supply protection to the power supply according to the voltage value when the voltage value is less than the first value; the protection unit is specifically used to: use the power supply and the backup power supply to supply power to the load when the voltage value is less than the first value and the backup power supply meets the power supply conditions; When the voltage value is less than a first value and greater than a second value, the operating frequency of the load is reduced to reduce the power supply required by the power source to the load; wherein, the second value is less than the first value; the first value is used to determine the critical value for a momentary undervoltage in the load; the second value is used to determine whether a severe undervoltage situation has occurred; When the voltage value is less than the second value, the power supply to the load is stopped.
8. The apparatus according to claim 7, characterized in that, The acquisition unit is specifically used for: Receive the load voltage value collected by the MCU on the computing board.
9. The apparatus according to claim 8, characterized in that, The MCU is connected in parallel with the power supply input terminal of the load through a voltage divider circuit; the voltage value is collected by the MCU and written into a preset storage area.
10. The apparatus according to claim 9, characterized in that, The acquisition unit is specifically used for: When the reporting time is reached, the minimum value stored in the preset storage area is received from the MCU.
11. The apparatus according to claim 7, characterized in that, The first value is: The supply voltage value determined based on the power supply conditions of the power source; or, It was determined based on the obtained historical voltage values.
12. An electronic device, characterized in that, include: Memory used to store processor-executable instructions; The processor is connected to the memory; The processor is configured to perform the voltage monitoring method provided in any one of claims 1 to 6.
13. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a computer, enable the computer to perform the voltage monitoring method provided in any one of claims 1 to 6.