Method, system and equipment for improving stability of power supply control system and medium

The main controller detects the three-phase AC power abnormality in the power vehicle control system and adjusts the baud rate of the slave equipment, and solves the production cycle and work efficiency problems caused by communication data abnormalities in the prior art, and achieves the improvement of the stability and reliability of the system.

CN120033691APending Publication Date: 2025-05-23JIANGXI QINGHUA TAIHAO SANBO ELECTRICAL MACHINE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510181035.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

When communication data abnormalities are abnormal in existing power vehicle control systems, they are usually solved by replacing slave equipment, which will affect the production cycle and work efficiency.

Method used

The master controller detects the abnormality of the three-phase alternating current, calculates the baud rate error of the slave device, and adjusts its actual baud rate to ensure the correctness of data transmission.

Benefits of technology

Without changing the hardware circuit, the communication baud rate error of slave devices is adapted and corrected through software design, the stability and reliability of the system are improved, the production cycle is extended, and the work efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120033691A_ABST
    Figure CN120033691A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power supply systems, and discloses a method, a system, equipment and a medium for improving the stability of a power supply control system. The method comprises the steps that a main controller obtains current three-phase alternating current output by a power supply control system and judges whether the current three-phase alternating current is abnormal or not; if the current three-phase alternating current is abnormal, the master controller detects whether each slave device has a baud rate error, and determines the slave device with the baud rate error as an abnormal slave device; the main controller calculates the Baud rate error of the abnormal slave device and adjusts the actual Baud rate of the abnormal slave device according to the Baud rate error; and the master controller verifies the data uploaded by the adjusted abnormal slave device, and determines the final baud rate of the adjusted abnormal slave device. Under the condition that a hardware circuit of the power van is not changed, the communication baud rate error of the slave device is adapted and corrected through software design, and correct transmission and receiving of data are ensured. The production cycle and the working efficiency of products are improved, and the stability of product operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power supply systems, and in particular to a method, system, device and medium for improving the stability of a power supply control system. Background Art

[0002] The power supply vehicle is generally composed of photovoltaic, diesel generator sets and energy storage battery groups to form a subsystem for power generation. The control system communication network is composed of the main controller and the photovoltaic control unit, diesel generator set controller, two-way DCDC, two-way ACDC and touch screen and other slave devices to achieve control of photovoltaic, diesel generator sets and energy storage battery groups, and finally output stable AC power. The main controller sends query instructions or control instructions to the slave devices, and the slave devices upload the corresponding data when receiving the query instructions, and respond to the control instructions when receiving the control instructions.

[0003] When the power supply vehicle is working, when the final output AC power is normal, the system does not alarm, and the touch screen shows that one of the slave devices (such as a three-phase AC power meter) occasionally has abnormal communication data, while the communication line is normal at this time. In the prior art, different batches of slave devices or models of slave devices are generally replaced. This method not only affects the production cycle of the product, but also affects the work efficiency of product production. Summary of the invention

[0004] In view of this, an object of the present invention is to overcome the deficiencies in the prior art and to provide a method, system, device and medium for improving the stability of a power control system.

[0005] The present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present disclosure provides a method for improving the stability of a power control system, which is applied to a power control system, wherein the power control system includes a master controller and a plurality of slave devices, and the method includes:

[0007] The main controller obtains the current three-phase alternating current output by the power control system, and determines whether the current three-phase alternating current is abnormal;

[0008] If the current three-phase alternating current is abnormal, the main controller detects whether each of the slave devices has a baud rate error, and determines the slave device with the baud rate error as an abnormal slave device;

[0009] The master controller calculates the baud rate error of the abnormal slave device, and adjusts the actual baud rate of the abnormal slave device according to the baud rate error;

[0010] The main controller verifies the adjusted data uploaded by the abnormal slave device and determines the final baud rate of the adjusted abnormal slave device.

[0011] Optionally, the main controller obtains the current three-phase alternating current output by the power control system, and determines whether the current three-phase alternating current is abnormal, including:

[0012] The main controller obtains current voltage data, current current data and current frequency data of the current three-phase alternating current through sensors;

[0013] Compare the current voltage data with a preset voltage range, compare the current current data with a preset current range, and compare the current frequency data with a preset frequency range;

[0014] If the current voltage data is outside the preset voltage range, or the current current data is outside the preset current range, or the current frequency data is outside the preset frequency range, then the current three-phase alternating current is abnormal.

[0015] Optionally, before the master controller detects whether each slave device has a baud rate error, the method further includes:

[0016] The master controller sends an initialization signal to each of the slave devices;

[0017] Each of the slave devices receives the initialization signal and returns its own communication status and baud rate setting to the master controller;

[0018] The master controller records the communication status and baud rate setting of each of the slave devices.

[0019] Optionally, the master controller detects whether each of the slave devices has a baud rate error, including:

[0020] The master controller periodically sends a first test signal to each of the slave devices;

[0021] After receiving the first test signal, each slave device returns a first response signal to the master controller according to the theoretical baud rate set by itself, and the master controller records a first actual response time from sending the first test signal to receiving the first response signal;

[0022] If the difference between the first actual response time and the preset response time is greater than the preset time threshold, the baud rate error exists.

[0023] Optionally, the master controller calculates the baud rate error of the abnormal slave device, including:

[0024] The master controller calculates the actual baud rate of the abnormal slave device and obtains the theoretical baud rate of the abnormal slave device;

[0025] The master controller calculates the ratio between the actual baud rate of the abnormal slave device and the theoretical baud rate, and subtracts a preset number from the ratio to obtain a baud rate error of the abnormal slave device.

[0026] Optionally, adjusting the actual baud rate of the abnormal slave device according to the baud rate error includes:

[0027] The master controller adjusts the actual baud rate of the abnormal slave device according to the size and direction of the baud rate error to obtain the adjusted abnormal slave device and its corresponding adjusted baud rate;

[0028] The main controller sends a second test signal to the adjusted abnormal slave device, and after receiving the second test signal, the adjusted abnormal slave device returns a second response signal to the main controller according to the adjusted baud rate;

[0029] The main controller checks the check bit level in the second response signal and the check bit state in the second test signal through an automatic baud rate adjustment algorithm, and records a second actual response time from sending the second test signal to receiving the second response signal;

[0030] If the check bit level in the second response signal is consistent with the check bit state in the second test signal, and the difference between the second actual response time and the preset response time is less than or equal to the preset time threshold, the adjusted baud rate is set correctly.

[0031] Optionally, the main controller verifies the adjusted data uploaded by the abnormal slave device and determines the adjusted final baud rate of the abnormal slave device, including:

[0032] The main controller verifies the integrity and accuracy of the adjusted data uploaded by the abnormal slave device;

[0033] If the verification fails, the master controller resends the test signal and adjusts the actual baud rate of the abnormal slave device, and re-verifies the integrity and accuracy of the data uploaded by the readjusted abnormal slave device until the verification succeeds, thereby obtaining the final baud rate of the adjusted abnormal slave device.

[0034] In a second aspect, an embodiment of the present disclosure provides a power supply control system, the system comprising a master controller and a plurality of slave devices;

[0035] The main controller is used to obtain the current three-phase alternating current output by the power control system and determine whether the current three-phase alternating current is abnormal;

[0036] The main controller is further configured to detect whether each of the slave devices has a baud rate error if the current three-phase alternating current is abnormal, and determine the slave device with the baud rate error as an abnormal slave device;

[0037] The main controller is further used to calculate the baud rate error of the abnormal slave device, and adjust the actual baud rate of the abnormal slave device according to the baud rate error;

[0038] The main controller is further used to verify the adjusted data uploaded by the abnormal slave device and determine the final baud rate of the adjusted abnormal slave device.

[0039] In a third aspect, a computer device is provided in an embodiment of the present disclosure, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the method for improving the stability of a power supply control system described in the first aspect when executing the computer program.

[0040] In a fourth aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for improving the stability of a power supply control system described in the first aspect are implemented.

[0041] Beneficial effects of this application:

[0042] The method for improving the stability of a power supply control system provided by an embodiment of the present application is applied to a power supply control system, wherein the power supply control system includes a main controller and multiple slave devices, and the method includes: the main controller obtains the current three-phase alternating current output by the power supply control system, and determines whether the current three-phase alternating current is abnormal; if the current three-phase alternating current is abnormal, the main controller detects whether there is a baud rate error in each of the slave devices, and determines the slave device with the baud rate error as an abnormal slave device; the main controller calculates the baud rate error of the abnormal slave device, and adjusts the actual baud rate of the abnormal slave device according to the baud rate error; the main controller verifies the data uploaded by the adjusted abnormal slave device, and determines the final baud rate of the adjusted abnormal slave device. The present application adapts to and corrects the communication baud rate error of the slave device through software design without changing the hardware circuit of the power supply vehicle, thereby ensuring the correct transmission and reception of data. Improve the production cycle and work efficiency of the product, and improve the stability of product operation.

[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work. In each of the drawings, similar components are numbered similarly.

[0045] Figure 1 One of the flow charts of a method for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0046] Figure 2 A second flowchart of a method for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0047] Figure 3 A third flowchart of a method for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0048] Figure 4 A fourth flowchart of a method for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0049] Figure 5 A fifth flowchart of a method for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0050] Figure 6 A sixth flowchart of a method for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0051] Figure 7 A seventh flowchart of a method for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0052] Figure 8 A schematic diagram of the structure of a system for improving the stability of a power supply control system provided by an embodiment of the present application is shown;

[0053] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0054] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0055] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0056] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0057] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0059] Example 1

[0060] like Figure 1 FIG. 1 is a flow chart of a method for improving the stability of a power control system in an embodiment of the present application. The method for improving the stability of a power control system provided in an embodiment of the present application is applied to a power control system, wherein the power control system includes a main controller and multiple slave devices. The specific method includes the following steps:

[0061] In step S110, the main controller obtains the current three-phase alternating current output by the power control system, and determines whether the current three-phase alternating current is abnormal.

[0062] In a preferred embodiment, Figure 2 As shown, step S110 includes:

[0063] Step S111, the main controller obtains current voltage data, current current data and current frequency data of the current three-phase alternating current through a sensor;

[0064] Step S112, comparing the current voltage data with a preset voltage range, comparing the current current data with a preset current range, and comparing the current frequency data with a preset frequency range;

[0065] Step S113: if the current voltage data is outside the preset voltage range, or the current current data is outside the preset current range, or the current frequency data is outside the preset frequency range, then the current three-phase alternating current is abnormal.

[0066] In this embodiment, in order to ensure that the basic output of the power control system is normal and avoid communication abnormalities caused by power problems, the main controller collects the current voltage data, current current data and current frequency data of the current three-phase AC power regularly or in real time through sensors.

[0067] The collected current voltage data is compared with the preset voltage range, the current current data is compared with the preset current range, and the current frequency data is compared with the preset frequency range. The preset voltage range, the preset current range, and the preset frequency range can be set according to the specifications of the power supply and industry standards, and the embodiments of the present application do not limit this.

[0068] If the current voltage data is outside the preset voltage range, or the current current data is outside the preset current range, or the current frequency data is outside the preset frequency range, that is, any data exceeds the corresponding preset range, then the current three-phase AC power is determined to be abnormal, and the subsequent intelligent adjustment mechanism is activated.

[0069] The above method can promptly detect whether there is any abnormality in the basic output of the power supply system, which helps to avoid communication anomalies caused by power supply problems, thereby improving the stability and reliability of the entire power supply control system. Once a three-phase AC power anomaly is detected, the system can immediately start the subsequent intelligent adjustment mechanism, reduce the system downtime caused by power supply problems, and improve the system's response speed and recovery capabilities.

[0070] Step S120: If the current three-phase alternating current is abnormal, the master controller detects whether each of the slave devices has a baud rate error, and determines the slave device with the baud rate error as an abnormal slave device.

[0071] In a preferred embodiment, Figure 3 As shown, before the step of detecting whether each slave device has a baud rate error, the master controller further includes:

[0072] Step S121, the master controller sends an initialization signal to each of the slave devices;

[0073] Step S122, each of the slave devices receives the initialization signal, and returns its own communication status and baud rate setting to the master controller;

[0074] Step S123: the master controller records the communication status and baud rate setting of each slave device.

[0075] Understandably, if it is determined that the current three-phase AC power is abnormal, it is necessary to establish communication between the master controller and all slave devices when the system is started, and determine their communication status and baud rate settings.

[0076] Specifically, the master controller sends an initialization signal to all slave devices, and each slave device receives the initialization signal and returns its own communication status and baud rate setting to the master controller. The master controller records the communication status and baud rate setting returned from each slave device to prepare for subsequent communication and baud rate adjustment.

[0077] In a preferred embodiment, Figure 4 As shown, the step of the master controller detecting whether each of the slave devices has a baud rate error comprises:

[0078] Step S124, the master controller periodically sends a first test signal to each of the slave devices;

[0079] Step S125, after receiving the first test signal, each slave device returns a first response signal to the master controller according to the theoretical baud rate set by itself, and the master controller records a first actual response time from sending the first test signal to receiving the first response signal;

[0080] Step S126: If the difference between the first actual response time and the preset response time is greater than the preset time threshold, the baud rate error exists.

[0081] It can be understood that the master controller periodically sends a first test signal to each slave device, and after each slave device receives the first test signal, it returns a first response signal to the master controller according to the theoretical baud rate set by itself.

[0082] Further, the master controller records a first actual response time from sending the first test signal to receiving the first response signal. If the difference between the first actual response time and the preset response time is greater than a preset time threshold, it is determined that there is a baud rate error, and the slave device with the baud rate error is determined as an abnormal slave device.

[0083] The above method can accurately locate the specific device that causes communication abnormality by detecting the baud rate error of each slave device, providing an accurate target for subsequent adjustment and repair. After determining the abnormal slave device, the baud rate can be adjusted in a targeted manner, avoiding blind adjustment of all slave devices and improving adjustment efficiency and accuracy. Timely detection and correction of the baud rate error of the slave device can ensure the correct transmission and reception of data and enhance the stability and reliability of the system.

[0084] Step S130: the master controller calculates the baud rate error of the abnormal slave device, and adjusts the actual baud rate of the abnormal slave device according to the baud rate error.

[0085] In a preferred embodiment, Figure 5 As shown, the step of the master controller calculating the baud rate error of the abnormal slave device includes:

[0086] Step S131, the master controller calculates the actual baud rate of the abnormal slave device, and obtains the theoretical baud rate of the abnormal slave device;

[0087] Step S132: the master controller calculates the ratio between the actual baud rate of the abnormal slave device and the theoretical baud rate, and subtracts a preset number from the ratio to obtain a baud rate error of the abnormal slave device.

[0088] After determining that there is a baud rate error, the master controller calculates the actual baud rate of the abnormal slave device and obtains the theoretical baud rate of the abnormal slave device, calculates the ratio between the actual baud rate of the abnormal slave device and the theoretical baud rate, and subtracts the ratio from a preset number. The preset number in this application is 1, and finally the baud rate error of the abnormal slave device is obtained, that is: baud rate error = (actual baud rate / theoretical baud rate-1) × 100%.

[0089] It should be noted that there are several common methods for the master controller to calculate the actual baud rate of the abnormal slave device: (1) Some microcontrollers (such as STM32) support hardware automatic baud rate detection function, which determines the rate of incoming data by detecting the first character or specific data frame (such as 0x7F or 0x55), and obtains accurate data by comparing multiple detection results; (2) Time-based detection: The baud rate is inferred by measuring the time interval between two consecutive signal pulses. If the time interval is fixed, this time interval corresponds to the inverse of the baud rate; (3) Software algorithm calculation: The received data is analyzed by a software algorithm, such as using a linear regression algorithm or a simplified calculation method to determine the baud rate.

[0090] The specific calculation method is not limited in the embodiments of the present application and can be selected according to actual conditions, all of which are within the protection scope of the present application.

[0091] In a preferred embodiment, Figure 6 As shown, adjusting the actual baud rate of the abnormal slave device according to the baud rate error includes:

[0092] Step S133, the master controller adjusts the actual baud rate of the abnormal slave device according to the size and direction of the baud rate error to obtain the adjusted abnormal slave device and its corresponding adjusted baud rate;

[0093] Step S134, the main controller sends a second test signal to the adjusted abnormal slave device, and after receiving the second test signal, the adjusted abnormal slave device returns a second response signal to the main controller according to the adjusted baud rate;

[0094] Step S135, the main controller checks the check bit level in the second response signal and the check bit state in the second test signal through an automatic baud rate adjustment algorithm, and records a second actual response time from sending the second test signal to receiving the second response signal;

[0095] Step S136, if the check bit level in the second response signal is consistent with the check bit state in the second test signal, and the difference between the second actual response time and the preset response time is less than or equal to the preset time threshold, then the adjusted baud rate is set correctly.

[0096] Once a baud rate error is detected, in order to ensure correct data transmission, the master controller will dynamically adjust the actual baud rate of the abnormal slave device according to the size and direction of the baud rate error to obtain the adjusted abnormal slave device and its corresponding adjusted baud rate.

[0097] Furthermore, the main controller sends a second test signal to the adjusted abnormal slave device, and after receiving the second test signal, the adjusted abnormal slave device returns a second response signal to the main controller according to the adjusted baud rate.

[0098] The main controller checks the check bit level in the second response signal and the check bit state in the second test signal through an automatic baud rate adjustment algorithm, and records the second actual response time from sending the second test signal to receiving the second response signal.

[0099] If the check bit level in the second response signal is consistent with the check bit state in the second test signal, and the difference between the second actual response time and the preset response time is less than or equal to the preset time threshold, it indicates that the adjusted baud rate is set correctly.

[0100] It should be noted that if the adjusted baud rate is found to be incorrect, the known baud rates are polled until a suitable value is found. The adjustment can be a fine adjustment or a larger adjustment, depending on the size of the error value, which is not limited in this application. The adjusted baud rate will be stored in the configuration of the main controller for subsequent communication use.

[0101] The above method dynamically adjusts the actual baud rate of the abnormal slave device according to the size and direction of the detected baud rate error, ensures the correct transmission of data, and improves the adaptability and flexibility of the system. By accurately adjusting the baud rate, the communication quality can be significantly improved, the errors and packet loss in data transmission can be reduced, and the stability and reliability of the system can be improved. In addition, the automatic adjustment of the baud rate reduces the need for manual intervention, reduces the complexity of operation and labor costs.

[0102] Step S140 , the main controller verifies the adjusted data uploaded by the abnormal slave device, and determines the adjusted final baud rate of the abnormal slave device.

[0103] In a preferred embodiment, Figure 7 As shown, step S140 includes:

[0104] Step S141, the main controller verifies the integrity and accuracy of the adjusted data uploaded by the abnormal slave device;

[0105] Step S142, if the verification fails, the main controller resends the test signal and adjusts the actual baud rate of the abnormal slave device, and re-verifies the integrity and accuracy of the data uploaded by the readjusted abnormal slave device until the verification succeeds, thereby obtaining the final baud rate of the adjusted abnormal slave device.

[0106] Understandably, in order to ensure the integrity and accuracy of the adjusted data uploaded by the slave device, the main controller needs to perform integrity verification and accuracy verification on the adjusted data uploaded by the abnormal slave device.

[0107] If the verification is successful, it proves that the adjusted baud rate is the final baud rate of the abnormal slave device. If the verification fails, the master controller will resend the test signal and adjust the actual baud rate of the abnormal slave device, and re-verify the integrity and accuracy of the data uploaded by the readjusted abnormal slave device until the verification is successful, and the final baud rate of the adjusted abnormal slave device is obtained.

[0108] It should be noted that if communication cannot be restored after multiple attempts, the main controller may record error information and notify relevant maintenance personnel to check and repair.

[0109] The above method can ensure the accuracy and integrity of the data and improve the reliability of the system by verifying the integrity and accuracy of the data uploaded by the abnormal slave device after adjustment. The verification process can check the effect of the baud rate adjustment to ensure that the adjusted baud rate can meet the communication requirements and improve the stability and communication quality of the system. Through verification and adjustment, potential communication problems can be discovered and solved in time, reducing the system downtime and maintenance costs caused by communication failures.

[0110] The method for improving the stability of the power supply control system provided by the embodiment of the present application is to obtain the current three-phase alternating current output by the power supply control system through the main controller, and determine whether the current three-phase alternating current is abnormal; if the current three-phase alternating current is abnormal, the main controller detects whether there is a baud rate error in each of the slave devices, and determines the slave device with the baud rate error as an abnormal slave device; the main controller calculates the baud rate error of the abnormal slave device, and adjusts the actual baud rate of the abnormal slave device according to the baud rate error; the main controller verifies the data uploaded by the adjusted abnormal slave device, and determines the final baud rate of the adjusted abnormal slave device. The present application adapts to and corrects the communication baud rate error of the slave device through software design without changing the hardware circuit of the power supply vehicle, thereby ensuring the correct transmission and reception of data. Improve the production cycle and work efficiency of the product, and improve the stability of product operation.

[0111] Example 2

[0112] like Figure 8 , which is a schematic diagram of the structure of a power control system 800 in an embodiment of the present application, wherein the system includes a main controller 810 and a plurality of slave devices 820;

[0113] The main controller 810 is used to obtain the current three-phase alternating current output by the power control system 800 and determine whether the current three-phase alternating current is abnormal;

[0114] The main controller 810 is further configured to detect whether each of the slave devices 820 has a baud rate error if the current three-phase alternating current is abnormal, and determine the slave device 820 having the baud rate error as an abnormal slave device;

[0115] The main controller 810 is further configured to calculate a baud rate error of the abnormal slave device, and adjust an actual baud rate of the abnormal slave device according to the baud rate error;

[0116] The main controller 810 is further used to verify the adjusted data uploaded by the abnormal slave device and determine the final baud rate of the adjusted abnormal slave device.

[0117] The system for improving the stability of the power control system provided by the embodiment of the present application adapts to and corrects the communication baud rate error of the slave device through software design without changing the hardware circuit of the power supply vehicle, thereby ensuring the correct transmission and reception of data, improving the production cycle and work efficiency of the product, and improving the stability of product operation.

[0118] Example 3

[0119] The present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.

[0120] The computer device 9 includes a memory 91, a processor 92, and a network interface 93 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 9 with a memory 91, a processor 92, and a network interface 93, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.

[0121] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0122] The memory 91 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D slot compatibility test memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 91 can be an internal storage unit of the computer device 9, such as a hard disk or memory of the computer device 9. In other embodiments, the memory 91 can also be an external storage device of the computer device 9, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 9. Of course, the memory 91 can also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 91 is generally used to store the operating system and various application software installed on the computer device 9, such as computer-readable instructions of the slot compatibility test method, etc. In addition, the memory 91 can also be used to temporarily store various types of data that have been output or are to be output.

[0123] The processor 92 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips that improve the stability of the power control system in some embodiments. The processor 92 is generally used to control the overall operation of the computer device 9. In this embodiment, the processor 92 is used to run computer-readable instructions or process data stored in the memory 91, such as computer-readable instructions for running the slot compatibility test method.

[0124] The network interface 93 may include a wireless network interface or a wired network interface. The network interface 93 is generally used to establish a communication connection between the computer device 9 and other electronic devices.

[0125] The computer device provided in this embodiment can execute the above method for improving the stability of the power control system. The method for improving the stability of the power control system here can be the method for improving the stability of the power control system in each of the above embodiments.

[0126] Example 4

[0127] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for improving the stability of a power supply control system in the embodiment are implemented.

[0128] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.

[0129] In several embodiments provided in the present application, it should be understood that the disclosed system and method can also be implemented in other ways. The system embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of the boxes in the structure diagram and / or the flow diagram can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0130] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0131] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or partly contributed to the prior art or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium can be a non-volatile storage medium or a volatile storage medium. For example, the storage medium can be: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes.

[0132] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for improving the stability of a power supply control system, characterized in that: Applied to a power control system, the power control system includes a master controller and a plurality of slave devices, the method includes: The main controller obtains the current three-phase alternating current output by the power control system, and determines whether the current three-phase alternating current is abnormal; If the current three-phase alternating current is abnormal, the main controller detects whether each of the slave devices has a baud rate error, and determines the slave device with the baud rate error as an abnormal slave device; The master controller calculates the baud rate error of the abnormal slave device, and adjusts the actual baud rate of the abnormal slave device according to the baud rate error; The main controller verifies the adjusted data uploaded by the abnormal slave device and determines the final baud rate of the adjusted abnormal slave device.

2. The method for improving the stability of a power supply control system according to claim 1, characterized in that: The main controller obtains the current three-phase alternating current output by the power control system, and determines whether the current three-phase alternating current is abnormal, including: The main controller obtains current voltage data, current current data and current frequency data of the current three-phase alternating current through sensors; Compare the current voltage data with a preset voltage range, compare the current current data with a preset current range, and compare the current frequency data with a preset frequency range; If the current voltage data is outside the preset voltage range, or the current current data is outside the preset current range, or the current frequency data is outside the preset frequency range, then the current three-phase alternating current is abnormal.

3. The method for improving the stability of a power supply control system according to claim 1, characterized in that: Before the master controller detects whether each slave device has a baud rate error, the method further comprises: The master controller sends an initialization signal to each of the slave devices; Each of the slave devices receives the initialization signal and returns its own communication status and baud rate setting to the master controller; The master controller records the communication status and baud rate setting of each of the slave devices.

4. The method for improving the stability of a power supply control system according to claim 3, characterized in that: The master controller detects whether each slave device has a baud rate error, including: The master controller periodically sends a first test signal to each of the slave devices; After receiving the first test signal, each slave device returns a first response signal to the master controller according to the theoretical baud rate set by itself, and the master controller records a first actual response time from sending the first test signal to receiving the first response signal; If the difference between the first actual response time and the preset response time is greater than the preset time threshold, the baud rate error exists.

5. The method for improving the stability of a power supply control system according to claim 4, characterized in that: The master controller calculates the baud rate error of the abnormal slave device, including: The master controller calculates the actual baud rate of the abnormal slave device and obtains the theoretical baud rate of the abnormal slave device; The master controller calculates the ratio between the actual baud rate of the abnormal slave device and the theoretical baud rate, and subtracts a preset number from the ratio to obtain a baud rate error of the abnormal slave device.

6. The method for improving the stability of a power supply control system according to claim 4, characterized in that: The step of adjusting the actual baud rate of the abnormal slave device according to the baud rate error comprises: The master controller adjusts the actual baud rate of the abnormal slave device according to the size and direction of the baud rate error to obtain the adjusted abnormal slave device and its corresponding adjusted baud rate; The main controller sends a second test signal to the adjusted abnormal slave device, and after receiving the second test signal, the adjusted abnormal slave device returns a second response signal to the main controller according to the adjusted baud rate; The main controller checks the check bit level in the second response signal and the check bit state in the second test signal through an automatic baud rate adjustment algorithm, and records a second actual response time from sending the second test signal to receiving the second response signal; If the check bit level in the second response signal is consistent with the check bit state in the second test signal, and the difference between the second actual response time and the preset response time is less than or equal to the preset time threshold, the adjusted baud rate is set correctly.

7. The method for improving the stability of a power supply control system according to claim 1, characterized in that: The main controller verifies the adjusted data uploaded by the abnormal slave device and determines the final baud rate of the adjusted abnormal slave device, including: The main controller verifies the integrity and accuracy of the adjusted data uploaded by the abnormal slave device; If the verification fails, the master controller resends the test signal and adjusts the actual baud rate of the abnormal slave device, and re-verifies the integrity and accuracy of the data uploaded by the readjusted abnormal slave device until the verification succeeds, thereby obtaining the final baud rate of the adjusted abnormal slave device.

8. A power supply control system, characterized in that: The system includes a master controller and a plurality of slave devices; The main controller is used to obtain the current three-phase alternating current output by the power control system and determine whether the current three-phase alternating current is abnormal; The main controller is further configured to detect whether each of the slave devices has a baud rate error if the current three-phase alternating current is abnormal, and determine the slave device with the baud rate error as an abnormal slave device; The main controller is further used to calculate the baud rate error of the abnormal slave device, and adjust the actual baud rate of the abnormal slave device according to the baud rate error; The main controller is further used to verify the adjusted data uploaded by the abnormal slave device and determine the final baud rate of the adjusted abnormal slave device.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for improving the stability of a power supply control system according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for improving the stability of a power supply control system according to any one of claims 1 to 7 are implemented.