An expert system-based self-regulating power supply method and system
Patent Information
- Application Number
- CN202610515582.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-18
- Publication Date
- 2026-08-18
AI Technical Summary
[0003]上述中的现有技术方案存在以下缺陷:自调节电源在调节输出电压和电流时,因为调节过程需要先获取需求,再经过计算和指令发出,电源才开始调节,所以调节过程较慢,难以做到在短时间内对电源进行快速调节
1.通过专家系统对电源进行预调节,等接收调节指令时就能够有效减少需要调节电源的电压电流范围,使得接受指令后调节电源的速度变快。
Smart Images

Figure CN122593545A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power supply regulation, and in particular to a self-regulating power supply method and system based on an expert system. Background Technology
[0002] Self-regulating power supplies, also known as automatic regulating power supplies or automatic voltage regulators, are power supply devices capable of automatically adjusting their output voltage or current. The basic principle of a self-regulating power supply is to utilize power electronics technology and control theory, through internal circuit structure and control algorithms, to achieve automatic adjustment of the output voltage or current. Its core components typically include an input filter, a PWM controller, an output filter, and a feedback circuit. An expert system contains a wealth of knowledge and experience at the level of an expert in a specific field. It can utilize the knowledge and problem-solving methods of human experts to handle problems in that field. Self-regulating power supply systems belong to a field requiring highly specialized knowledge, and through expert systems, the power supply can be accurately regulated.
[0003] The existing technical solutions mentioned above have the following drawbacks: When a self-regulating power supply adjusts its output voltage and current, the adjustment process is slow because the demand needs to be obtained first, and then the calculation and command are issued before the power supply can start adjusting. It is difficult to quickly adjust the power supply in a short time. Summary of the Invention
[0004] In order to enable rapid power supply adjustment within a short period of time after receiving adjustment instructions, this application provides a self-regulating power supply method and system based on an expert system.
[0005] On the one hand, the self-regulating power supply method based on an expert system provided in this application adopts the following technical solution: A self-regulating power supply method based on an expert system includes the following steps: Real-time detection and recording of power supply voltage and current values; preset power supply voltage and current ranges. Plot the power data curve based on the recorded power supply voltage and current values; Set an allowable error and divide the power data curve into repeating curve segments within the allowable error. If there are no repeating curve segments, increase the allowable error. Calculate the average value of points at the same time on all curve segments to obtain the cyclic curve; The start and end times of the cycle curve are calculated as the cycle time, and the power supply voltage and current values are pre-adjusted based on the cycle time and cycle curve. When an adjustment command is received, the expert system adjusts the power supply voltage and current values according to the command, determines the time point of the current cycle curve, adjusts the cycle curve, and records the adjustment command and the adjustment process. When a recorded adjustment instruction is received that is identical to the recorded adjustment instruction, the corresponding recorded adjustment process is executed; When the cycle curve is adjusted, monitor the cycle curve. If the cycle curve exceeds the power supply voltage range or power supply current range at any point, cancel the adjustment.
[0006] By adopting the above scheme, a cyclic curve is first obtained by calculating the power grid regulation records of the power system. During daily power consumption, the power supply is pre-regulated by an expert system. When a regulation command is received, the range of voltage and current that needs to be adjusted can be effectively reduced, thus speeding up the adjustment of the power supply after receiving the command. Simultaneously, each type of command is recorded, and some commands are reused. The system adjusts the cyclic curve based on these commands, and when the same command is received, the previous adjustment process is used, skipping the calculation process and further improving the speed of power supply regulation.
[0007] Preferably, the step of "plotting power data curves based on recorded power supply voltage and current values" further includes: The recorded power supply voltage and current values are sorted according to time. A voltage curve is plotted based on the power supply voltage value and time, and a current curve is plotted based on the power supply current value and time. The voltage and current curves are placed in the same graph to obtain the power supply data curve. The step of "dividing the power data curve into repeating curve segments within the allowable error range, and increasing the allowable error range if there are no repeating curve segments" further includes: Set the cut length; Fix the relative positions of the voltage and current curves in the power supply data curve graph. Select a curve equal to the intercepted length from the beginning of the power supply data curve graph as a reference curve. Find a curve segment in the power supply data curve graph that is close to the reference curve within the allowable error. If there is no repeated curve segment, increase the allowable error. All the found curve segments are used as starting curves. The reference curve and each starting curve are continuously expanded backward. At the same time, the similarity between each starting curve and the reference curve is compared in real time. Reference curves with similarity within the allowable error range are retained, and the rest of the reference curves are removed, until the starting curve and reference curve can cover the entire power data curve. If there are no starting curves to be retained, the allowable error is increased.
[0008] By adopting the above scheme, the power data curve is composed of voltage value curve and current value curve. By selecting multiple times when extracting the cycle curve, the cycle curve can be accurately selected.
[0009] Preferably, the following steps are also included: When a mismatch is detected between the power supply voltage and / or power supply current values and the control results of the adjustment command or cycle curve, the cause of the fault is detected through the expert system. If the cause of the malfunction is an error in the adjustment process, then the adjustment process should be repaired. If the cause of the fault is a hardware structure failure, an alarm will be issued and a fault report will be generated and sent.
[0010] By adopting the above solution, the expert system can automatically detect faults and attempt to repair them, and users can also quickly handle faulty hardware through fault reports.
[0011] Preferably, the following steps are also included: If the fault is caused by a hardware structure failure, the path of that hardware structure is shut down, and the expert system controls other hardware structures to match the power supply voltage and current values with the control results of the adjustment command or cyclic curve. If the expert system cannot control the power supply voltage and current values to match the control results of the adjustment command or cycle curve, it will reduce the power supply voltage and call on an external power source to control the final output voltage and current values to match the control results of the adjustment command or cycle curve.
[0012] By adopting the above solution, when a hardware failure occurs, the expert system will try to bypass the faulty part and supply power. If the power supply still cannot be adjusted, the power output ratio will be reduced and an external power supply will be introduced to avoid delaying production or research and development.
[0013] Preferably, the following steps are also included: A maximum error value is set; When the allowable error increases to equal the maximum error value, abandon the acquisition of the cyclic curve; Upon receiving the adjustment command, mark the time point on the power data curve after the expert system has completed adjusting the power supply voltage and current values. When the same adjustment command is received again, the time point after the completion of this adjustment process is marked, the marked points of the previous same adjustment command are called, and the process is continuously expanded from each marked point. At the same time, the similarity of the curves corresponding to each marked point is compared in real time. Curves with similarity within the allowable error range are retained, and the rest are removed to obtain the command cycle curve. When the same adjustment command is received again, the power supply voltage and current values are controlled according to the command cycle curve.
[0014] By adopting the above scheme, the allowable error cannot be expanded indefinitely when capturing the cyclic curve. If the allowable error exceeds a certain value, the system will abandon capturing the cyclic curve and instead obtain the instruction cyclic curve, and pre-adjust the power supply within a certain period of time through an instruction.
[0015] On the other hand, the self-regulating power supply system based on an expert system provided in this application adopts the following technical solution: A self-regulating power supply system based on an expert system includes an expert system module, a data acquisition module, a data storage module, an image rendering module, a loop calculation module, an automatic adjustment module, and an error protection module. The data acquisition module detects the power supply voltage and current values in real time and transmits them to the data storage module. The data storage module receives and saves data, and has preset power supply voltage range and power supply current range; The image drawing module calls the power supply voltage and power supply current values stored in the data storage module, and draws a power data curve based on the power supply voltage and power supply current values, and transmits the power data curve to the data storage module. The loop calculation module calls the latest power data curve stored in the data storage module. The loop calculation module sets an allowable error and divides the power data curve into repeating curve segments within the allowable error. If there are no repeating curve segments, the allowable error is increased. The average value of points at the same time on all curve segments is calculated to obtain the loop curve. The start time and end time of the loop curve are calculated as the loop time. The power data curve with the loop curve and loop time is sent to the expert system module. The expert system module stores an expert system in the power supply field. The expert system module pre-adjusts the power supply voltage and current values based on the cycle time and cycle curve. When an adjustment command is received, the expert system module adjusts the power supply voltage and current values according to the adjustment command, determines the time point of the cycle curve corresponding to the current time, adjusts the cycle curve, and transmits the adjustment command and adjustment process to the data storage module. The automatic adjustment module calls the adjustment instructions and adjustment processes stored in the data storage module. When the received adjustment instruction is the same as the recorded adjustment instruction, the corresponding recorded adjustment process is executed. The error protection module calls the power supply voltage range and power supply current range stored in the data storage module. When the expert system module adjusts the cycle curve, the error protection module monitors the cycle curve. If the cycle curve exceeds the power supply voltage range or power supply current range at any point, the adjustment is canceled.
[0016] By adopting the above scheme, the system first calculates the power grid regulation records of the power system to obtain a cycle curve. During daily power consumption, the expert system pre-regulates the power supply. When receiving regulation commands, it can effectively reduce the range of voltage and current that need to be adjusted, thus speeding up the adjustment of the power supply after receiving the command. Simultaneously, each type of command is recorded, and some commands are reused. The system adjusts the cycle curve based on these commands, and when the same command is received, it uses the previous adjustment process, skipping the calculation process and further improving the power supply regulation speed.
[0017] Preferably, the image drawing module sorts the recorded power supply voltage and current values according to time, draws a voltage curve based on the power supply voltage and time, draws a current curve based on the power supply current and time, and places the voltage curve and current curve in the same graph to obtain a power data curve graph. The loop calculation module includes a line segment calculation unit and a curve calculation unit; The line segment calculation unit is set with a cut length. The line segment calculation unit fixes the relative positions of the voltage value curve and the current value curve in the power data curve graph. It selects a curve equal to the cut length from the beginning of the power data curve graph as a reference curve. It searches for a curve segment in the power data curve graph that is close to the reference curve within the allowable error. If there is no duplicate curve segment, the allowable error is increased. The final allowable error and the searched power data curve graph are sent to the curve calculation unit. The curve calculation unit uses all the found curve segments as starting curves, and continuously expands the comparison curve and each starting curve backwards. At the same time, the similarity between each starting curve and the comparison curve is compared in real time. The comparison curves with similarity within the allowable error range are retained, and the remaining comparison curves are removed until the starting curve and the comparison curve can cover the entire power data curve. If there are no retained starting curves, the allowable error is increased.
[0018] By adopting the above scheme, the power data curve of the system consists of voltage value curve and current value curve. The loop calculation module selects multiple times when extracting the loop curve, which can accurately select the loop curve.
[0019] Preferably, the system also includes a fault detection module connected to the data acquisition module. When a mismatch is detected between the power supply voltage and / or power supply current values and the control results of the adjustment command or cyclic curve, the fault detection module transmits a fault code to the expert system module. The expert system module detects the cause of the fault. If the cause of the fault is an error in the adjustment process, the expert system module repairs the adjustment process. If the cause of the fault is a hardware structure fault, the expert system module generates a fault report and sends the fault report to the fault detection module. After receiving the fault report, the fault detection module issues an alarm and displays the fault report.
[0020] By adopting the above solution, the system can automatically detect faults, the expert system module will attempt to repair them, and users can also quickly handle faulty hardware through fault reports.
[0021] Preferably, when the expert system module detects the cause of the fault, if the cause of the fault is a hardware structure fault, the expert system module shuts down the path of the hardware structure and controls other hardware structures to match the power supply voltage and current values with the control results of the adjustment command or cycle curve. If the power supply voltage and current values cannot be controlled to match the control results of the adjustment command or cycle curve, the power supply voltage is reduced and an external power supply is called to control the final output voltage and current values to match the control results of the adjustment command or cycle curve.
[0022] By adopting the above solution, when a hardware failure occurs, the expert system will try to bypass the faulty part and supply power. If the power supply still cannot be adjusted, the power output ratio will be reduced and an external power supply will be introduced to avoid delaying production or research and development.
[0023] Preferably, the loop calculation module is set with a maximum error value. When the allowable error increases to equal the maximum error value, the loop curve is abandoned. Then, when an adjustment command is received, the time point after the expert system module has adjusted the power supply voltage and current values is marked on the power data curve. When the same adjustment command is received again, the time point after the completion of this adjustment process is marked. The marked points of the previous same adjustment command are called up, and the process is continuously expanded from each marked point. At the same time, the similarity of the curves corresponding to each marked point is compared in real time. Curves with similarity within the allowable error range are retained, and the remaining curves are removed to obtain the instruction loop curve. The instruction loop curve is then sent to the data storage module. When the expert system module receives the same adjustment command, it controls the power supply voltage and current values according to the command cycle curve.
[0024] By adopting the above scheme, the system can not allow the error to expand indefinitely when capturing the cyclic curve. If the allowable error exceeds a certain value, the system will give up capturing the cyclic curve and instead obtain the instruction cyclic curve, and use an instruction to pre-adjust the power supply within a certain period of time.
[0025] In summary, the present invention has the following beneficial effects: 1. By pre-adjusting the power supply through an expert system, the range of voltage and current that need to be adjusted can be effectively reduced when adjustment commands are received, thus making the adjustment of the power supply faster after receiving the command.
[0026] 2. It will also record each type of instruction. Some instructions will be reused. The system will adjust the cycle curve according to these instructions, and when the same instruction is received, it will use the previous adjustment process, which can skip the calculation process and further improve the power supply regulation speed. Attached Figure Description
[0027] Figure 1 This is an overall system block diagram of Embodiment 2 of this application.
[0028] Figure 2 This is a block diagram of the loop calculation module in Embodiment 2 of this application.
[0029] Explanation of reference numerals in the attached figures: 1. Expert System Module; 2. Data Acquisition Module; 3. Data Storage Module; 4. Image Drawing Module; 5. Loop Calculation Module; 51. Line Segment Calculation Unit; 52. Curve Calculation Unit; 6. Automatic Adjustment Module; 7. Error Protection Module; 8. Fault Detection Module. Detailed Implementation
[0030] Example 1: This application discloses a self-regulating power supply method based on an expert system. The specific steps are as follows: S100: Real-time detection and recording of power supply voltage and current values; preset power supply voltage range, power supply current range, allowable error, truncation length, and maximum error value.
[0031] S200. Draw a power data curve based on the recorded power supply voltage and current values.
[0032] S201. Sort the recorded power supply voltage and current values according to time, plot the voltage curve based on the power supply voltage and time, plot the current curve based on the power supply current and time, and place the voltage curve and current curve in the same graph to obtain the power supply data curve graph.
[0033] S202. Fix the relative positions of the voltage and current curves in the power supply data curve graph. Select a curve equal to the intercepted length from the beginning of the power supply data curve graph as a reference curve. Find a curve segment in the power supply data curve graph that is close to the reference curve within the allowable error. If there is no repeated curve segment, increase the allowable error.
[0034] S203. Take all the found curve segments as the starting curves, and continuously expand the reference curve and each starting curve. At the same time, compare the similarity between each starting curve and the reference curve in real time. Keep the reference curves whose similarity is within the allowable error range, and remove the rest of the reference curves until the starting curves and reference curves can cover the entire power data curve graph. If there are no starting curves to be retained, increase the allowable error.
[0035] S204. Calculate the average value of points at the same time on all curve segments to obtain the cyclic curve.
[0036] S210. When the allowable error increases to equal the maximum error value, abandon the acquisition of the cyclic curve.
[0037] S211. Upon receiving the adjustment command, mark the time point on the power data curve after the expert system has completed adjusting the power supply voltage and current values.
[0038] S212. When the same adjustment command is received again, mark the time point after the completion of this adjustment process, call the marked point of the previous same adjustment command, and continuously expand from each marked point backward. At the same time, compare the similarity of the curves corresponding to each marked point in real time, retain the curves with similarity within the allowable error range, remove the rest of the curves, and obtain the command cycle curve.
[0039] S213. When the same adjustment command is received again, the power supply voltage and power supply current values are controlled according to the command cycle curve.
[0040] S300: Calculate the start and end times of the cycle curve as the cycle time, and pre-adjust the power supply voltage and current values based on the cycle time and cycle curve.
[0041] S400. When receiving an adjustment command, the expert system adjusts the power supply voltage and current values according to the adjustment command, determines the time point of the current cycle curve, adjusts the cycle curve, and records the adjustment command and adjustment process.
[0042] S401. When the received adjustment instruction is the same as the recorded adjustment instruction, execute the corresponding recorded adjustment process.
[0043] S500: When the cycle curve is adjusted, monitor the cycle curve. If the cycle curve exceeds the power supply voltage range or power supply current range at any point, cancel the adjustment.
[0044] S600: When the power supply voltage and / or power supply current values are detected to be mismatched with the control results of the adjustment command or cycle curve, the cause of the fault is detected through the expert system.
[0045] S601. If the cause of the fault is an error in the adjustment process, then the adjustment process shall be repaired.
[0046] S602. If the cause of the fault is a hardware structure failure, an alarm will be issued, a fault report will be generated and sent, the path of the hardware structure will be closed, and the expert system will control other hardware structures to match the power supply voltage and power supply current values with the control results of the adjustment command or cycle curve.
[0047] S603. If the expert system cannot control the power supply voltage and current values to match the control results of the adjustment command or cycle curve, then reduce the power supply voltage and call an external power supply to control the final output voltage and current values to match the control results of the adjustment command or cycle curve.
[0048] The implementation principle of a self-regulating power supply system based on an expert system in this application embodiment is as follows: First, the system calculates the power grid regulation records of the power system to obtain a cycle curve. During daily power consumption, the expert system pre-regulates the power supply. When a regulation command is received, the system can effectively reduce the voltage and current range that needs to be adjusted, thus speeding up the adjustment of the power supply after receiving the command. Simultaneously, each type of command is recorded. Some commands are reused. The system adjusts the cycle curve according to these commands, and when the same command is received, the previous adjustment process is used, skipping the calculation process and further improving the power supply regulation speed.
[0049] Example 2: This application discloses a self-regulating power supply system based on an expert system, such as... Figure 1 As shown, it includes expert system module 1, data acquisition module 2, data storage module 3, image drawing module 4, loop calculation module 5, automatic adjustment module 6, error protection module 7, and fault detection module 8.
[0050] like Figure 1 As shown, the data acquisition module 2 includes a voltage transformer and a current transformer located at the power supply, which detect the power supply voltage and current values in real time and transmit them to the data storage module 3. The data storage module 3 receives and saves the data. The data storage module 3 has preset power supply voltage and current ranges, and the preset values are obtained through experience.
[0051] like Figure 1 As shown, the image drawing module 4 calls the power supply voltage and power supply current values stored in the data storage module 3. The image drawing module 4 sorts the recorded power supply voltage and power supply current values according to time, draws a voltage value curve based on the power supply voltage value and time, draws a current value curve based on the power supply current value and time, places the voltage value curve and current value curve in the same curve to obtain a power supply data curve, and transmits the power supply data curve to the data storage module 3.
[0052] like Figure 1 and Figure 2As shown, the loop calculation module 5 includes a line segment calculation unit 51 and a curve calculation unit 52. The line segment calculation unit 51 calls the latest power data curve stored in the data storage module 3. The line segment calculation unit 51 has set allowable error, intercept length, and maximum error value. The line segment calculation unit 51 fixes the relative positions of the voltage and current curves in the power data curve, selects a curve equal to the intercept length from the beginning of the power data curve as a reference curve, and searches for a curve segment within the allowable error that is close to the reference curve. If no duplicate curve segment is found, the allowable error is increased, and the final allowable error and the searched power data curve are sent to the curve calculation unit 52. When the allowable error increases to equal the maximum error value, the loop curve acquisition is abandoned, and an abandonment signal is transmitted to the curve calculation unit 52.
[0053] like Figure 1 and Figure 2 As shown, the curve calculation unit 52 uses all found curve segments as starting curves, and continuously expands the comparison curve and each starting curve backwards. Simultaneously, the similarity between each starting curve and the comparison curve is compared in real time. Comparison curves with similarity within the allowable error range are retained, while other comparison curves are removed, until the starting curve and comparison curves can cover the entire power data curve graph. If no starting curve is retained, the allowable error is increased. The curve calculation unit 52 calculates the start and end times of the loop curve as the loop time, and sends the power data curve graph with the loop curve and loop time to the expert system module 1. When the allowable error increases to equal the maximum error value, obtaining the loop curve is abandoned. After abandoning the acquisition of the cyclic curve or receiving an abandonment signal, when an adjustment command is received, the curve calculation unit 52 marks the time point after the expert system module 1 has completed the adjustment of the power supply voltage and power supply current values on the power data curve. When the same adjustment command is received again, the time point after the completion of this adjustment process is marked, and the marked points of the previous same adjustment command are called up. Starting from each marked point, the process is continuously expanded backward. At the same time, the curves corresponding to each marked point are compared in real time to determine their similarity. Curves with similarity within the allowable error range are retained, and the remaining curves are removed to obtain the instruction cyclic curve. The instruction cyclic curve is then sent to the data storage module 3.
[0054] like Figure 1As shown, expert system module 1 stores an expert system for the power supply field. Expert system module 1 pre-adjusts the power supply voltage and current values based on the cycle time and cycle curve. When an adjustment command is received, expert system module 1 adjusts the power supply voltage and current values according to the command, determines the time point of the cycle curve corresponding to the current time, adjusts the cycle curve, and transmits the adjustment command and process to data storage module 3. After receiving the instruction cycle curve, expert system module 1 controls the power supply voltage and current values according to the instruction cycle curve when receiving the same adjustment command. When the system captures the cycle curve, the allowable error cannot expand indefinitely. If the allowable error exceeds a certain value, the system will abandon capturing the cycle curve and instead acquire the instruction cycle curve, using a single command to pre-adjust the power supply for a certain period of time.
[0055] like Figure 1 As shown, the automatic adjustment module 6 calls the adjustment instructions and adjustment processes stored in the data storage module 3. When the received recorded adjustment instruction is the same as the recorded adjustment instruction, the corresponding recorded adjustment process is executed.
[0056] like Figure 1 As shown, the error protection module 7 calls the power supply voltage range and power supply current range stored in the data storage module 3. When the expert system module 1 adjusts the cycle curve, the error protection module 7 monitors the cycle curve. If the cycle curve exceeds the power supply voltage range or power supply current range at any point, the adjustment is canceled.
[0057] like Figure 1As shown, the fault detection module 8 is connected to the data acquisition module 2. When a mismatch is detected between the power supply voltage and / or power supply current values and the control results of the adjustment command or cycle curve, the fault detection module 8 transmits a fault code to the expert system module 1. The expert system module 1 detects the cause of the fault. If the cause is an error in the adjustment process, the expert system module 1 repairs the adjustment process. If the cause is a hardware structure fault, the expert system module 1 generates a fault report and sends it to the fault detection module 8. Upon receiving the fault report, the fault detection module 8 issues an alarm and displays the fault report. When the expert system module 1 detects the cause of the fault, if the cause is a hardware structure fault, the expert system module 1 shuts down the path of that hardware structure and controls other hardware structures to match the power supply voltage and current values with the control results of the adjustment command or cycle curve. If the power supply voltage and current values cannot be controlled to match the control results of the adjustment command or cycle curve, the power supply voltage is reduced and an external power supply is called to control the final output voltage and current values to match the control results of the adjustment command or cycle curve. The system can automatically detect faults, and expert system module 1 will attempt to repair them. Users can also quickly handle faulty hardware through fault reports.
[0058] The embodiments described herein are preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Therefore, all equivalent changes made in accordance with the structure, shape, and principle of the present invention should be covered within the scope of protection of the present invention.
Claims
1. A self-regulating power supply method based on an expert system, characterized in that, Includes the following steps: Real-time detection and recording of power supply voltage and current values; preset power supply voltage and current ranges. Plot the power data curve based on the recorded power supply voltage and current values; Set an allowable error and divide the power data curve into repeating curve segments within the allowable error. If there are no repeating curve segments, increase the allowable error. Calculate the average value of points at the same time on all curve segments to obtain the cyclic curve; The start and end times of the cycle curve are calculated as the cycle time, and the power supply voltage and current values are pre-adjusted based on the cycle time and cycle curve. When an adjustment command is received, the expert system adjusts the power supply voltage and current values according to the command, determines the time point of the current cycle curve, adjusts the cycle curve, and records the adjustment command and the adjustment process. When a recorded adjustment instruction is received that is identical to the recorded adjustment instruction, the corresponding recorded adjustment process is executed; When the cycle curve is adjusted, monitor the cycle curve. If the cycle curve exceeds the power supply voltage range or power supply current range at any point, cancel the adjustment.
2. The self-regulating power supply method based on an expert system according to claim 1, characterized in that, The step of "plotting power data curves based on the recorded power supply voltage and current values" further includes: The recorded power supply voltage and current values are sorted according to time. A voltage curve is plotted based on the power supply voltage value and time, and a current curve is plotted based on the power supply current value and time. The voltage and current curves are placed in the same graph to obtain the power supply data curve. The step of "dividing the power data curve into repeating curve segments within the allowable error range, and increasing the allowable error range if there are no repeating curve segments" further includes: Set the cut length; Fix the relative positions of the voltage and current curves in the power supply data curve graph. Select a curve equal to the intercepted length from the beginning of the power supply data curve graph as a reference curve. Find a curve segment in the power supply data curve graph that is close to the reference curve within the allowable error. If there is no repeated curve segment, increase the allowable error. All the found curve segments are used as starting curves. The reference curve and each starting curve are continuously expanded backward. At the same time, the similarity between each starting curve and the reference curve is compared in real time. Reference curves with similarity within the allowable error range are retained, and the rest of the reference curves are removed, until the starting curve and reference curve can cover the entire power data curve. If there are no starting curves to be retained, the allowable error is increased.
3. The self-regulating power supply method based on an expert system according to claim 1, characterized in that, It also includes the following steps: When a mismatch is detected between the power supply voltage and / or power supply current values and the control results of the adjustment command or cycle curve, the cause of the fault is detected through the expert system. If the cause of the malfunction is an error in the adjustment process, then the adjustment process should be repaired. If the cause of the fault is a hardware structure failure, an alarm will be issued and a fault report will be generated and sent.
4. The self-regulating power supply method based on an expert system according to claim 3, characterized in that, It also includes the following steps: If the fault is caused by a hardware structure failure, the path of that hardware structure is shut down, and the expert system controls other hardware structures to match the power supply voltage and current values with the control results of the adjustment command or cyclic curve. If the expert system cannot control the power supply voltage and current values to match the control results of the adjustment command or cycle curve, it will reduce the power supply voltage and call on an external power source to control the final output voltage and current values to match the control results of the adjustment command or cycle curve.
5. The self-regulating power supply method based on an expert system according to claim 1, characterized in that, It also includes the following steps: A maximum error value is set; When the allowable error increases to equal the maximum error value, abandon the acquisition of the cyclic curve; Upon receiving the adjustment command, mark the time point on the power data curve after the expert system has completed adjusting the power supply voltage and current values. When the same adjustment command is received again, the time point after the completion of this adjustment process is marked, the marked points of the previous same adjustment command are called, and the process is continuously expanded from each marked point. At the same time, the similarity of the curves corresponding to each marked point is compared in real time. Curves with similarity within the allowable error range are retained, and the rest are removed to obtain the command cycle curve. When the same adjustment command is received again, the power supply voltage and current values are controlled according to the command cycle curve.
6. A self-regulating power supply system based on an expert system, characterized in that: It includes an expert system module (1), a data acquisition module (2), a data storage module (3), an image drawing module (4), a loop calculation module (5), an automatic adjustment module (6), and an error protection module (7); The data acquisition module (2) detects the power supply voltage and current values in real time and transmits them to the data storage module (3); The data storage module (3) receives and saves data, and has preset power supply voltage range and power supply current range; The image drawing module (4) calls the power supply voltage and power supply current values stored in the data storage module (3), and draws a power supply data curve based on the power supply voltage and power supply current values, and transmits the power supply data curve to the data storage module (3). The loop calculation module (5) calls the latest power data curve stored in the data storage module (3). The loop calculation module (5) sets an allowable error and divides the power data curve into repeating curve segments within the allowable error. If there are no repeating curve segments, the allowable error is increased. The average value of the points at the same time on all curve segments is calculated to obtain the loop curve. The start time and end time of the loop curve are calculated as the loop time. The power data curve with the loop curve and loop time is sent to the expert system module (1). The expert system module (1) stores an expert system in the field of power supply. The expert system module (1) pre-adjusts the power supply voltage and current values according to the cycle time and cycle curve. When it receives the adjustment command, the expert system module (1) adjusts the power supply voltage and current values according to the adjustment command, determines the time point of the cycle curve corresponding to the current time, adjusts the cycle curve, and transmits the adjustment command and adjustment process to the data storage module (3). The automatic adjustment module (6) calls the adjustment instructions and adjustment process stored in the data storage module (3). When the received recorded adjustment instruction is the same as the recorded adjustment instruction, the corresponding recorded adjustment process is executed. The error protection module (7) calls the power supply voltage range and power supply current range stored in the data storage module (3). When the expert system module (1) adjusts the cycle curve, the error protection module (7) monitors the cycle curve. If the cycle curve exceeds the power supply voltage range or power supply current range at any point, the adjustment is canceled.
7. A self-regulating power supply system based on an expert system according to claim 6, characterized in that: The image drawing module (4) sorts the recorded power supply voltage and power supply current values according to time, draws a voltage value curve according to the power supply voltage and time, draws a current value curve according to the power supply current and time, and places the voltage value curve and current value curve in the same curve to obtain a power data curve. The loop calculation module (5) includes a line segment calculation unit (51) and a curve calculation unit (52); The line segment calculation unit (51) is set with a cutting length. The line segment calculation unit (51) fixes the relative positions of the voltage value curve and the current value curve in the power data curve diagram. It selects a curve equal to the cutting length from the beginning of the power data curve diagram as a reference curve. It searches for a curve segment in the power data curve diagram that is close to the reference curve within the allowable error. If there is no repeated curve segment, it increases the allowable error and sends the final allowable error and the searched power data curve diagram to the curve calculation unit (52). The curve calculation unit (52) takes all the found curve segments as the starting curves, and continuously expands the comparison curve and each starting curve backwards. At the same time, the similarity between each starting curve and the comparison curve is compared in real time. The comparison curves with similarity within the allowable error range are retained, and the remaining comparison curves are removed until the starting curves and comparison curves can cover the entire power data curve. If there are no retained starting curves, the allowable error is increased.
8. A self-regulating power supply system based on an expert system according to claim 6, characterized in that: It also includes a fault detection module (8), which is connected to the data acquisition module (2). When the power supply voltage value and / or power supply current value are detected to be mismatched with the control result of the adjustment command or the cycle curve, the fault detection module (8) transmits a fault code to the expert system module (1). The expert system module (1) detects the cause of the fault. If the cause of the fault is an error in the adjustment process, the expert system module (1) repairs the adjustment process. If the cause of the fault is a hardware structure fault, the expert system module (1) generates a fault report and sends the fault report to the fault detection module (8). After receiving the fault report, the fault detection module (8) issues an alarm and displays the fault report.
9. A self-regulating power supply system based on an expert system according to claim 8, characterized in that: When the expert system module (1) detects the cause of the fault, if the cause of the fault is a hardware structure fault, the expert system module (1) closes the path of the hardware structure and controls other hardware structures to make the power supply voltage and power supply current values match the control results of the adjustment command or the cycle curve. If the power supply voltage and power supply current values cannot be controlled to match the control results of the adjustment command or the cycle curve, the power supply voltage is reduced and an external power supply is called to control the final output voltage and current values to match the control results of the adjustment command or the cycle curve.
10. A self-regulating power supply system based on an expert system according to claim 6, characterized in that: The loop calculation module (5) is set with a maximum error value. When the allowable error increases to the maximum error value, the loop curve is abandoned. Then, when the adjustment command is received, the time point after the expert system module (1) has adjusted the power supply voltage value and power supply current value is marked on the power data curve. When the same adjustment command is received again, the time point after the adjustment process is completed is marked. The marked points of the same adjustment command are called. The process is extended from each marked point to the back. At the same time, the curves corresponding to each marked point are compared in real time to determine the similarity. Curves with similarity within the allowable error range are retained, and the remaining curves are removed to obtain the instruction loop curve. The instruction loop curve is sent to the data storage module (3). When the expert system module (1) receives the same adjustment command, it controls the power supply voltage and power supply current values according to the command cycle curve.