Power supply system and synchronous control method thereof
By acquiring and adjusting the time points and delay times of the control signal in multiple inverters, the problems of signal synchronization and accuracy in the inverter system are solved, and efficient control signal synchronization and adjustment are achieved, ensuring the stability of the system run.
Patent Information
- Application Number
- CN202411204044.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In multiple inverter power supply systems, the synchronization and accuracy of control signals are difficult to ensure, resulting in system performance being affected.
By acquiring multiple time points and delay times of the control signal, establishing and adjusting the waveform of the control signal, and using technical means such as interrupt service programs, timers and filters, precise reconstruction and synchronous adjustment of the control signal are achieved.
It ensures the accuracy and consistency of time-point recording of the control signal, realizes synchronous control between inverters, and improves the simultaneity and accuracy of the system.
Smart Images

Figure CN118739417B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of inverter control, and in particular, relates to a power supply system and a synchronous control method thereof. Background Art
[0002] It is very common to have multiple inverters supplying power simultaneously in many applications. For example, in microgrids, multiple inverters are used to integrate different energy sources such as solar panels, wind turbines, and energy storage systems to provide stable power output. In the power supply of critical loads, multiple inverters can provide redundancy and parallel operation to ensure that power can be maintained when any one inverter fails. In large industrial equipment and data centers, multiple inverters work simultaneously to meet high power requirements and improve system reliability. In systems where multiple inverters supply power simultaneously, the synchronization of control signals is a key factor to ensure stable and efficient operation of the system. In distributed systems, communication delays between inverters may cause control signals to be out of sync, thus affecting system performance. Therefore, there is an urgent need for an accurate control signal synchronization technology that can overcome the above limitations and ensure the simultaneity and accuracy of multiple inverters supplying power. Summary of the invention
[0003] The embodiment of the present invention provides a power supply system and a synchronous control method thereof to solve the above technical problems.
[0004] A first aspect of an embodiment of the present invention provides a synchronous control method for a power supply system, wherein the power supply system includes a plurality of inverters, and the synchronous control method includes:
[0005] Acquire multiple time points of the received control signal and a delay time of the control signal;
[0006] Establishing a first waveform of the control signal according to a plurality of time points of the control signal;
[0007] A second waveform of the control signal is established according to the delay time and the first waveform.
[0008] Optionally, the acquiring of multiple time points of the received control signal includes:
[0009] Set up an interrupt service routine to use the current count value of the timer to mark the time when the signal arrives.
[0010] Optionally, obtaining a delay time of receiving the control signal includes:
[0011] Obtaining the sending time and receiving time of the control signal;
[0012] A delay time is calculated according to the sending time and the receiving time.
[0013] Optionally, establishing the first waveform of the control signal according to multiple time points of the control signal includes:
[0014] Compare the signal state changes at adjacent time points and extract the time points of the rising edge and the falling edge;
[0015] A first waveform of the control signal is established according to a time point of the rising edge and a time point of the falling edge.
[0016] Optionally, the establishing the first waveform of the control signal according to the time point of the rising edge and the time point of the falling edge further includes:
[0017] Acquire the pulse width and frequency according to the time point of the rising edge and the time point of the falling edge;
[0018] A first waveform of the control signal is established according to the time point of the rising edge, the time point of the falling edge, the pulse width, and the frequency.
[0019] Optionally, establishing the second waveform of the control signal according to the delay time and the first waveform includes:
[0020] Obtaining a time point of a rising edge and a time point of a falling edge in the first waveform;
[0021] Acquire the time point of the rising edge of the second waveform according to the delay time and the time point of the rising edge of the first waveform, and acquire the time point of the falling edge of the second waveform according to the delay time and the time point of the falling edge of the first waveform;
[0022] The second waveform of the control signal is established according to a time point of a rising edge of the second waveform and a time point of a falling edge of the second waveform.
[0023] Optionally, the establishing the second waveform of the control signal according to the time point of the rising edge of the second waveform and the time point of the falling edge of the second waveform further includes:
[0024] Acquire the pulse width and frequency according to the time point of the rising edge and the time point of the falling edge of the second waveform;
[0025] The second waveform of the control signal is established according to the time point of the rising edge, the time point of the falling edge, the pulse width and the frequency of the second waveform.
[0026] Optionally, obtaining the delay time of receiving the control signal further includes:
[0027] Get multiple delay times and initialize filter parameters;
[0028] Obtaining an input signal and an expected output, and calculating a predicted delay based on the input signal and the expected output;
[0029] A delay error between the predicted delay and the delay time is calculated, and parameters of the filter are updated according to the delay error and an input signal.
[0030] Optionally, the filter is a normalization filter or a least squares filter.
[0031] A second aspect of an embodiment of the present invention provides a power supply system, the power supply system comprising a plurality of inverters, each inverter simultaneously executing the synchronous control method described in the first aspect.
[0032] The technical effects of the embodiments of the present invention are: through time synchronization technology, the accuracy and consistency of the time point of recording the control signal are ensured, through presetting and actual measurement, the delay time of the control signal is accurately calculated, and through data processing and delay correction technology, the precise reconstruction and synchronous adjustment of the control signal are realized, so that the inverter can accurately obtain and process the time point and delay time of the control signal, ensuring the simultaneity and accuracy of power supply of multiple inverters. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0034] Figure 1 is a flow chart of a synchronous control method for a power supply system provided in Embodiment 1 of the present invention;
[0035] Figure 2 is a specific flow chart of step S101 in a synchronous control method for a power supply system provided in Embodiment 1 of the present invention;
[0036] Figure 3 is a specific flow chart of step S102 in a synchronous control method for a power supply system provided in Embodiment 1 of the present invention;
[0037] Figure 4 is a specific flow chart of step S103 in a synchronous control method for a power supply system provided in Embodiment 1 of the present invention;
[0038] Figure 5 is another specific flow chart of step S102 in a synchronous control method for a power supply system provided in the first embodiment of the present invention;
[0039] Figure 6is a specific flow chart of step S133 in a synchronous control method for a power supply system provided in the first embodiment of the present invention;
[0040] Figure 7 It is another specific flow chart of step S101 in a synchronous control method of a power supply system provided in the first embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] It should be understood that the present invention can be implemented in different forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, providing these embodiments will make the disclosure thorough and complete and fully convey the scope of the present invention to those skilled in the art. In the accompanying drawings, the sizes and relative sizes of layers and regions may be exaggerated for clarity. The same reference numerals throughout represent the same elements.
[0043] It should be understood that when an element or layer is referred to as being "on, adjacent to, connected to or coupled to other elements or layers, it may be directly on, adjacent to, connected to or coupled to other elements or layers, or there may be intervening elements or layers. In contrast, when an element is referred to as being "directly on, directly adjacent to, directly connected to or directly coupled to other elements or layers, there may be no intervening elements or layers. It should be understood that, although the terms first, second, third, etc. may be used to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the teachings of the present invention, the first element, component, region, layer or part discussed below may be represented as a second element, component, region, layer or part.
[0044] Spatially relative terms such as "under," "beneath," "below," "under," "above," "above," and the like may be used herein for ease of description to describe the relationship of an element or feature shown in the figures to other elements or features. It should be understood that the spatially relative terms are intended to include different orientations of the device in use and operation in addition to the orientations shown in the figures. For example, if the device in the accompanying drawings is flipped, then the elements or features described as "under other elements" or "under" or "under" will be oriented as "on" the other elements or features. Thus, the exemplary terms "under" and "under" may include both upper and lower orientations. The device may be otherwise oriented (rotated 90 degrees or other orientations) and the spatial descriptors used herein are interpreted accordingly.
[0045] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be limiting of the present invention. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.
[0046] In order to fully understand the present invention, detailed structures and steps will be presented in the following description to illustrate the technical solutions proposed by the present invention. The preferred embodiments of the present invention are described in detail below, but in addition to these detailed descriptions, the present invention may also have other implementations.
[0047] Embodiment 1
[0048] Embodiment 1 of the present invention provides a synchronous control method for a power supply system, such as Figure 1 As shown, the power supply system includes multiple inverters, and the synchronous control method includes:
[0049] Step S101. Acquire multiple time points of a received control signal and a delay time of the control signal.
[0050] Step S102: Establishing a first waveform of the control signal according to a plurality of time points of the control signal.
[0051] Step S103. Establish a second waveform of the control signal according to the delay time and the first waveform.
[0052] Among them, in a power supply system with multiple inverters, each inverter can receive control signals in multiple ways to achieve synchronization and coordinated control of control signals, including but not limited to the following ways of receiving control signals: 1. Centralized control system:
[0053] The centralized control system sends control signals to each inverter through a central control unit. The specific steps are as follows: The central control unit generates a unified control signal according to system requirements and distributes the control signal to each inverter through a communication network (such as CAN bus, Modbus, Ethernet, etc.). Each inverter receives and decodes the signal from the central control unit through a receiving module, performs synchronous processing according to the received control signal, and performs corresponding control operations.
[0054] 2. Distributed Control System:
[0055] In a distributed control system, each inverter has an independent control unit that receives signals from the main control system for processing. The main control system generates control instructions and broadcasts them to each inverter. The control unit of each inverter receives the instructions, and independently processes the signals and executes control operations. It performs local synchronization based on the received instructions to ensure coordination with the actions of other inverters.
[0056] 3. Master-slave control system:
[0057] In the master-slave control system, a master inverter is responsible for generating control signals and passing the signals to other slave inverters. The master inverter generates a unified control signal. The master inverter passes the control signal to the slave inverter through a communication interface (such as a serial interface, a parallel interface, etc.). The slave inverter receives and decodes the signal from the master inverter, and performs control operations synchronously according to the received signal to ensure the coordinated operation of the entire system.
[0058] 4. Wireless control system:
[0059] In a wireless control system, the control signal is transmitted to each inverter through wireless communication. The central control unit or the main inverter sends the control signal through the wireless transmission module. Each inverter is equipped with a wireless receiving module to receive and decode the wireless control signal for synchronous processing and control operations.
[0060] In step S101, in order to ensure time synchronization, a high-precision clock (such as a GPS clock or a synchronous clock source) can be used to synchronize the internal clocks of all inverters to ensure that the records of all time points have a consistent time reference. When the control signal is received, each inverter uses a synchronous clock to record the arrival time point of the control signal. Common techniques include timestamp recording technology. After receiving the control signal, each inverter samples the control signal at multiple time points through a high-frequency sampler (such as an ADC analog-to-digital converter), records the changes in the signal, and stores the sampled data in a cache or memory for subsequent processing and analysis. Among them, the precise recording of the control signal time point includes but is not limited to the following methods:
[0061] 1. Use interrupt service routines and timers to mark the time points when control signals arrive.
[0062] 2. Polling method: Initialize a high-frequency timer to provide an accurate time reference. In the main loop of the main program, continuously check the status of the control signal. When a change in the control signal is detected, immediately read the current count value of the timer and record it.
[0063] 3. FPGA implementation: Design a logic circuit in the FPGA to detect changes in the control signal and read the current value of the high-frequency timer. Store the read time point data in the internal memory of the FPGA or transfer it to the external memory through the bus, and transfer the time point data to the microcontroller or PC through the FPGA interface or bus for processing and analysis.
[0064] 4. Use high-speed ADC and time stamp: Connect a high-speed ADC to the control signal input to sample the control signal at a high frequency. Each time the ADC samples, it synchronously reads the current value of the high-precision timer as a time stamp, and stores the sampled data and time stamp in the memory for subsequent processing and analysis.
[0065] As an implementation method, an interrupt service routine and a timer are used to mark the time point at which the control signal arrives. This implementation method is only an example and does not limit this step. In step S101, multiple time points of the received control signal are obtained, including:
[0066] Set up an interrupt service routine to use the current count value of the timer to mark the time when the signal arrives.
[0067] Among them, a high-precision hardware timer can be configured to provide the current count value as a time reference. When the system starts, initialize the timer and set its counting frequency to ensure that the timer can provide sufficient time resolution. For example, select a high frequency (such as 1MHz or higher) to ensure the accuracy of time recording. Start the timer so that it starts counting from zero and continues counting while the system is running. Configure an interrupt on the control signal input pin, trigger the interrupt service program when the control signal arrives, and configure the control signal input pin as an interrupt pin (for example, use a GPIO pin and configure it as an external interrupt). According to the characteristics of the control signal, set the interrupt trigger type (such as rising edge, falling edge or double edge trigger), and the change of the control signal (such as voltage change) will trigger the interrupt. Set the interrupt priority to ensure that the interrupt service program can respond to the arrival of the control signal in time. In the interrupt service program, obtain the current count value of the timer and mark the time point when the control signal arrives. When the control signal arrives, the interrupt pin triggers the interrupt, the CPU suspends the current task, and enters the interrupt service program. In the interrupt service routine, the current count value of the timer is immediately read, and the count value represents the time point when the control signal arrives. The read count value is saved in a pre-allocated storage space (such as an array or a queue) for subsequent processing and analysis.
[0068] The technical effect of this implementation is that the arrival time of the control signal is recorded instantly through the interrupt service program, thereby ensuring high precision and real-time performance of the time point recording.
[0069] The method for obtaining the control signal delay time in step S101 includes but is not limited to the following methods:
[0070] 1. Calculate the delay time by obtaining the sending time and receiving time of the control signal.
[0071] 2. Timestamp transmission method: When sending a control signal, the sender appends the current timestamp to the signal data packet. After receiving the control signal, the receiver extracts the appended timestamp. The receiver subtracts the extracted sending timestamp from the current time to obtain the delay time.
[0072] 3. Ping-Pong method: The sender sends a Ping signal and records the sending time. After receiving the Ping signal, the receiver immediately sends a Pong signal and records the receiving time. After receiving the Pong signal, the sender records the receiving time. The round-trip delay time is the Pong receiving time minus the Ping sending time. Assuming that the round-trip delay time of the signal is equal, the one-way delay time is half of the round-trip delay time.
[0073] 4. Synchronous sampling method: The transmitter and receiver start the high-frequency sampling timer synchronously and start sampling at the same time. The time point when the control signal changes is recorded at the transmitter and receiver respectively. The delay time is calculated by comparing the signal change time points recorded at the transmitter and receiver.
[0074] As an implementation method, Figure 2 As shown, the delay time of the control signal is obtained in step S101, including:
[0075] Step S111, obtaining the sending time and receiving time of the control signal.
[0076] Step S112, calculating the delay time according to the sending time and the receiving time.
[0077] Among them, in this implementation, the sending time of the control signal is recorded at the sending end to ensure that the clocks of the sending end and the receiving end are synchronized (such as using a GPS clock or NTP). At the moment the control signal is sent, the current time is recorded as the sending time. A high-precision timer or clock is used to record the timestamp. The sending end uses the GPS clock for synchronization and records the GPS time when sending the control signal. The system clock of the sending end is synchronized through the NTP protocol and the system time is recorded. The receiving time of the control signal is recorded at the receiving end to ensure that the clocks of the receiving end and the sending end are synchronized. When the control signal arrives at the receiving end, the current time is recorded as the receiving time through an interrupt or polling method, a data processing program is written, the sending time and the receiving time are read, and the difference between the two is calculated. The two timestamps are read in the program, the time difference is calculated and the delay time is output.
[0078] The technical effect of this embodiment is that through the above steps and technical means, the sending time and receiving time of the control signal can be accurately obtained, and the delay time of the control signal can be accurately calculated, thereby realizing effective monitoring and management of system communication delays.
[0079] The first waveform of the control signal is established according to multiple time points of the control signal in step S102, including but not limited to the following methods:
[0080] 1. By comparing the signal state changes at adjacent time points, the time points of the rising edge and the falling edge are extracted, and the first waveform of the control signal is established based on these time points.
[0081] 2. Use a high-frequency sampler (such as ADC) to collect the voltage value of the control signal and record the timestamp of each sampling point. Store the collected time points and signal states in an array or linked list, and set a voltage threshold to distinguish between high and low levels. Traverse the recorded time point data and compare whether the voltage values at adjacent time points cross the threshold. When the voltage value changes from below the threshold to above the threshold, it is recorded as the rising edge time point. When the voltage value changes from above the threshold to below the threshold, it is recorded as the falling edge time point.
[0082] 3. Use a high-frequency sampler to collect the voltage value of the control signal and record the timestamp of each sampling point. Store the collected time points and signal states in an array or linked list, traverse the recorded time point data, detect the time point when the voltage value crosses the zero level, and record the rising edge time point when the voltage value changes from negative to positive, and record the falling edge time point when the voltage value changes from positive to negative.
[0083] As an implementation method, Figure 3 As shown, in step S102, establishing a first waveform of the control signal according to multiple time points of the control signal includes:
[0084] Step S121: Compare the signal state changes at adjacent time points, and extract the time point of the rising edge and the time point of the falling edge.
[0085] Step S122: Establish a first waveform of the control signal according to the time point of the rising edge and the time point of the falling edge.
[0086] Among them, when receiving the control signal, the signal state at each time point is recorded. A high-frequency sampler (such as ADC) can be used to collect the voltage value or digital signal state of the control signal, and the timestamp of each sampling point is recorded. The collected time points and signal states are stored in a data structure such as an array or a linked list, and the recorded time point data is traversed to compare the signal states of adjacent time points to detect the rising and falling edges of the signal. Starting from the first time point, the signal states of two adjacent time points are compared in turn. If the signal state at the current time point is low (0) and the signal state at the next time point is high (1), the time point of the rising edge is recorded; if the signal state at the current time point is high (1) and the signal state at the next time point is low (0), the time point of the falling edge is recorded. Create an empty waveform array to store the time points and states of the waveform. Starting from the first rising edge time point, the rising and falling edge time points are added to the waveform array in turn, adding a high level state at each rising edge time point and a low level state at each falling edge time point.
[0087] The technical effect of this implementation is: through high-frequency sampling and state comparison, the rising and falling edge time points of the control signal are accurately extracted to ensure the accuracy of signal change detection. At the same time, according to the extracted time points and signal states, the first waveform of the control signal is reconstructed to achieve comprehensive analysis and processing of the control signal.
[0088] As an implementation method, Figure 4 As shown, in step S103, establishing a second waveform of the control signal according to the delay time and the first waveform includes:
[0089] Step S131: Obtain the time point of the rising edge and the time point of the falling edge in the first waveform.
[0090] Step S132. Obtain the time point of the rising edge of the second waveform according to the delay time and the time point of the rising edge of the first waveform, and obtain the time point of the falling edge of the second waveform according to the delay time and the time point of the falling edge of the first waveform.
[0091] Step S133: Establish a second waveform of the control signal according to the time point of the rising edge of the second waveform and the time point of the falling edge of the second waveform.
[0092] Among them, all recorded time points and corresponding signal states are read from the data structure of the first waveform, and the time points of the rising edge (low to high conversion) and the falling edge (high to low conversion) are extracted respectively according to the signal state. According to the delay time, the rising edge and falling edge time points of the first waveform are adjusted to obtain the rising edge and falling edge time points of the second waveform. Determine the delay time in the system, subtract the delay time from each rising edge time point of the first waveform to obtain the rising edge time point of the second waveform; subtract the delay time from each falling edge time point of the first waveform to obtain the falling edge time point of the second waveform. Create an empty waveform array to store the time points and states of the second waveform, starting from the first rising edge time point, add the rising edge and falling edge time points to the waveform array in sequence, add a high level state at each rising edge time point, and add a low level state at each falling edge time point, and construct the second waveform through the adjusted time points and states.
[0093] The technical effect of this embodiment is that: through the above steps, the time point of the control signal can be effectively acquired and adjusted, the second waveform can be accurately constructed, and synchronization with other inverter signals can be achieved by adjusting the timing of the second waveform.
[0094] The technical effect of the first embodiment of the present invention is as follows: through time synchronization technology, the accuracy and consistency of the control signal time point recording are ensured, through preset and actual measurement, the delay time of the control signal is accurately calculated, and through data processing and delay correction technology, the precise reconstruction and synchronous adjustment of the control signal are achieved. The inverter can accurately obtain and process the time point and delay time of the control signal, ensuring the synchronous control and efficient operation of multiple inverters.
[0095] Furthermore, in order to obtain a more accurate first waveform, such as Figure 5 As shown, step S102 also includes:
[0096] Step S123. Obtain the pulse width and frequency according to the time point of the rising edge and the time point of the falling edge.
[0097] Step S124. Establish a first waveform of the control signal according to the time point of the rising edge, the time point of the falling edge, the pulse width and the frequency.
[0098] Among them, all time points and corresponding signal states are read from the recorded time point and signal state data, the signal states of adjacent time points are compared, and the time points of the rising edge (low to high transition) and the falling edge (high to low transition) are identified. Using the extracted time points, the pulse width and frequency of the signal are calculated. The pulse width refers to the time difference from the rising edge to the corresponding falling edge. All rising edge time points are traversed to find the corresponding falling edge time point and calculate the time difference; the frequency refers to the reciprocal of the time interval between two consecutive rising edges. All rising edge time points are traversed to calculate the time interval between two consecutive rising edges and take the reciprocal. Create a waveform array to store the time points and states of the waveform. Starting from the first rising edge time point, the rising and falling edge time points and the corresponding states (high level or low level) are added to the waveform array in sequence; using the pulse width and frequency information, the time point and state of each pulse are verified and adjusted to ensure the accuracy of the waveform. Through precise time points and signal states, the complete first waveform is constructed.
[0099] The technical effect of this embodiment is: using the extracted time points to accurately calculate the pulse width and frequency of each pulse, obtaining the time characteristic information of the signal, using the rising and falling edge time points, as well as the calculated pulse width and frequency, to reconstruct the complete first waveform, and achieve detailed timing analysis of the signal.
[0100] Furthermore, in order to obtain a more accurate second waveform, such as Figure 6 As shown, in step S133, the second waveform of the control signal is established according to the time point of the rising edge of the second waveform and the time point of the falling edge of the second waveform, and further includes:
[0101] Step S134: Obtain the pulse width and frequency according to the time point of the rising edge and the time point of the falling edge of the second waveform.
[0102] Step S135. Establish a second waveform of the control signal according to the time point of the rising edge, the time point of the falling edge, the pulse width and the frequency of the second waveform.
[0103] Among them, all time points and corresponding signal states are read from the recorded second waveform data, the signal states of adjacent time points are compared, and the time points of the rising edge (low to high transition) and the falling edge (high to low transition) are identified. Using the extracted time points, the pulse width and frequency of the signal are calculated. The pulse width refers to the time difference from the rising edge to the corresponding falling edge. All rising edge time points are traversed to find the corresponding falling edge time point and calculate the time difference; the frequency refers to the reciprocal of the time interval between two consecutive rising edges. All rising edge time points are traversed to calculate the time interval between two consecutive rising edges and take the reciprocal. Create a waveform array to store the time points and states of the second waveform. Starting from the first rising edge time point, the rising edge and falling edge time points and the corresponding states (high level or low level) are added to the waveform array in sequence. Using the pulse width and frequency information, the time point and state of each pulse are verified and adjusted to ensure the accuracy of the waveform.
[0104] The technical effect of this embodiment is: using the extracted time points to accurately calculate the pulse width and frequency of each pulse, obtaining the time characteristic information of the signal, using the rising and falling edge time points, as well as the calculated pulse width and frequency, to reconstruct a complete second waveform, thereby achieving detailed timing analysis of the signal.
[0105] Further, such as Figure 7 As shown, the delay time of receiving the control signal in step S101 also includes:
[0106] Step S113: Obtain multiple delay times and initialize filter parameters.
[0107] Step S114: Obtain an input signal and an expected output, and calculate a predicted delay based on the input signal and the expected output.
[0108] Step S115: Calculate the delay error between the predicted delay and the delay time, and update the filter parameters according to the delay error and the input signal.
[0109] Among them, by obtaining multiple delay times, the filter parameters are initialized, and the input signal and the expected output are used to predict the delay, and finally the filter parameters are updated to minimize the delay error. Specifically, the sending time and receiving time of multiple control signals are continuously collected within a period of time, the delay time of each time is calculated and recorded, the appropriate filter type (such as adaptive filter, Kalman filter, etc.) is selected, the weight parameters and state variables of the filter are initialized, and sufficient data points are provided to accurately model the delay characteristics. When each delay time is measured, the corresponding input signal is recorded at the same time, and the expected delay time output value is set according to the system requirements and actual conditions. The input signal is substituted into the filter model to obtain the predicted delay corresponding to each input signal. The delay time is predicted by the filter model, and data for error calculation is provided. The error between each predicted delay and the delay time is calculated. For each measurement, the difference between the predicted delay and the delay time is calculated to obtain the delay error. The calculated error is stored for use in the filter parameter update, and the filter parameters are updated according to the calculated delay error and the input signal to minimize the error. The filter parameters are adjusted according to the error and the input signal, and the adjustment algorithm is applied to update the weight and state of the filter.
[0110] Through the above steps, the system can accurately predict the delay time of the control signal, and continuously optimize the accuracy of delay prediction by iteratively updating the filter parameters, thereby improving the overall performance and stability of the system.
[0111] Furthermore, the filter is a normalized or least squares filter.
[0112] More complex adaptive filters, such as normalized LMS (NLMS) filters or recursive least squares (RLS) filters, are used to improve convergence speed and steady-state performance, making delay prediction more accurate.
[0113] Furthermore, the synchronous control method of the power supply system also includes:
[0114] The electrical parameters of each inverter are obtained, and whether the working status of each inverter is consistent is determined according to the electrical parameters.
[0115] Among them, by monitoring the voltage, current, frequency and other key parameters of each inverter, detecting its working status, using the data acquisition system to collect data from each inverter in real time, and performing synchronization analysis. For example, installing sensors and data acquisition equipment, monitoring the key parameters of each inverter, transmitting the collected data to the central control system, analyzing the data, and detecting whether the working status of each inverter is consistent.
[0116] Furthermore, the synchronous control method of the power supply system also includes:
[0117] The output phase of each inverter is obtained, and whether the working status of each inverter is consistent is determined according to the output phase.
[0118] Among them, a locked loop (PLL) circuit is used to detect and lock the output phase of each inverter to ensure phase consistency. A PLL circuit is installed in each inverter to detect the output phase in real time, compare the phases of each inverter, calculate the phase deviation, and make corrections based on the phase deviation to ensure phase synchronization.
[0119] Furthermore, the inverter will reach high temperatures during operation. However, temperature changes will cause signal delays and distortion, thus affecting the accuracy and stability of the system. Therefore, a calibration process needs to be designed to ensure accurate signal synchronization under different temperature conditions.
[0120] The inverter is equipped with a temperature sensor. The temperature change of the inverter can be obtained according to the temperature sensor. According to the laboratory or historical data, the established temperature influence model is loaded to predict the impact of temperature change on signal delay. Select the pre-trained temperature influence model in the software, which can be a linear regression model, a neural network model or other algorithm model. Load the model parameters into the controller so that the system can calculate the expected signal delay or distortion in real time according to the current temperature data. After loading, verify whether the model accurately reflects the impact of temperature change on the signal through simulation signal testing. During the operation of the system, the ambient temperature or the internal temperature of the equipment is monitored in real time, and the key features of the initial signal and the control signal (such as rising edge, falling edge, pulse width, etc.) are collected. The value of the temperature sensor is read at a fixed time interval (for example, 100 milliseconds) and the temperature data is saved in the buffer. The characteristic data of the initial signal and the control signal are collected synchronously, and the key points of the signal (such as rising edge time, falling edge time, pulse width, frequency, etc.) are recorded. Ensure that the timestamps of the temperature data and the signal data are consistent so that accurate calibration calculations can be performed in subsequent steps. Based on the temperature influence model, the signal delay compensation parameters under the current temperature conditions are calculated, and the control signal is adjusted to achieve synchronization with the initial signal. Use the temperature impact model to input the current temperature data and predict the specific impact of temperature on signal delay (for example, the delay increases by 20 nanoseconds). According to the predicted delay value, dynamically adjust the phase or trigger time of the control signal to advance or delay it by a certain time to compensate for the delay caused by temperature. A linear temperature impact model or a nonlinear temperature impact model can be used. For example, a nonlinear temperature impact model can be:
[0121] D(T)=D0+a×(T-T0) 2 +b×(T-T0)
[0122] Where D(T) is the signal delay at the current temperature, D0 is the signal delay at the reference temperature T0, T is the current temperature, T0 is the reference temperature, a and b are nonlinear coefficients, which are generally obtained by fitting experimental data.
[0123] In an actual system, when the temperature sensor detects a temperature change, the system uses the above model to calculate the signal delay at the current temperature, and then automatically adjusts the trigger time or phase of the control signal to compensate for the delay. For example, if the temperature increase causes the signal delay to increase by 1.75 nanoseconds, the controller can send the control signal 1.75 nanoseconds in advance to maintain synchronization with the initial signal. As the system runs longer, collect more temperature and delay data to optimize the model parameters. Use the new data to refit the model to ensure that the model can always accurately reflect the impact of temperature on the system. If the control signal has multiple parameters (such as frequency, pulse width, etc.), adjust these parameters at the same time to maintain synchronization with the initial signal. After the calibration is implemented, monitor the adjusted control signal in real time, compare it with the initial signal, and further optimize the calibration parameters based on the feedback. Continuously monitor the calibrated control signal, especially the alignment of the rising and falling edges with the initial signal. Calculate the error between the current control signal and the initial signal. If the error exceeds the set threshold (for example, more than 5 nanoseconds), trigger further compensation adjustments. Fine-tune the parameters of the control signal according to the direction and size of the error to further optimize the signal synchronization effect. During long-term operation, the system accumulates more temperature and signal data, and continuously optimizes the calibration model and parameters through adaptive algorithms or machine learning technology. Continuously record the temperature and signal feature data during system operation to form a historical database. Regularly use the accumulated data to retrain or update the temperature impact model to better adapt it to long-term changes in the system. Adaptive filters or online learning algorithms are used to adjust calibration parameters in real time to adapt to dynamic changes in the environment. Under different temperature conditions, the effect of the calibration system is fully tested to verify the calibration accuracy and system stability. In the laboratory, simulate an environment where the temperature gradually increases or decreases, and test the performance of the calibration algorithm at different temperatures. Use an oscilloscope or logic analyzer to accurately measure the synchronization of the calibrated control signal with the initial signal to verify the delay compensation effect. Comprehensively evaluate the stability and accuracy of the calibration system under various environments, and optimize the system configuration and algorithm based on the test results.
[0124] Furthermore, after each calibration adjustment, the system calculates the error between the actual signal and the expected signal. If the error continues to exceed the set threshold, the system will determine that the calibration has failed. For example, the temperature change of the inverter causes the signal delay to change. After each calibration of the system, the time difference between the actual motor response and the expected response is compared. If the time difference (error) continues to exceed the set allowable range (such as 2 milliseconds) in multiple consecutive calibration cycles, the system triggers an alarm to indicate that the calibration model is inaccurate. When the system detects that the calibration parameters suddenly jump or deviate from the normal trend for a long time at a certain temperature, an abnormal alarm is triggered. The system is designed with an independently operated backup inverter. If an abnormal alarm occurs in the main inverter, it will automatically switch to the backup inverter. After the backup inverter is started, it will continue to monitor the system parameters and calibrate to ensure stable operation of the system. At the same time, the main inverter stops running and enters the fault diagnosis and recovery mode.
[0125] Embodiment 2
[0126] The second embodiment provides a power supply system, which includes a plurality of inverters, and each inverter simultaneously executes the synchronous control method described in the first embodiment.
[0127] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A synchronous control method for a power supply system, characterized in that: The power supply system includes a plurality of inverters, and the synchronous control method includes: Acquire multiple time points of the received control signal and a delay time of the control signal; Establishing a first waveform of the control signal according to a plurality of time points of the control signal; Establishing a second waveform of the control signal according to the delay time and the first waveform; Wherein, obtaining the delay time of the control signal includes: Obtaining the sending time and receiving time of the control signal; Calculate the delay time according to the sending time and the receiving time; Wherein, establishing the first waveform of the control signal according to multiple time points of the control signal includes: Compare the signal state changes at adjacent time points and extract the time points of the rising edge and the falling edge; Establishing a first waveform of the control signal according to a time point of the rising edge and a time point of the falling edge; Wherein, establishing the second waveform of the control signal according to the delay time and the first waveform comprises: Obtaining a time point of a rising edge and a time point of a falling edge in the first waveform; Acquire the time point of the rising edge of the second waveform according to the delay time and the time point of the rising edge of the first waveform, and acquire the time point of the falling edge of the second waveform according to the delay time and the time point of the falling edge of the first waveform; The second waveform of the control signal is established according to a time point of a rising edge of the second waveform and a time point of a falling edge of the second waveform.
2. The synchronous control method according to claim 1, characterized in that: Acquire multiple time points of the received control signal, including: Set up an interrupt service routine to use the current count value of the timer to mark the time when the signal arrives.
3. The synchronous control method according to claim 1, characterized in that: The step of establishing the first waveform of the control signal according to the time point of the rising edge and the time point of the falling edge further includes: Acquire the pulse width and frequency according to the time point of the rising edge and the time point of the falling edge; A first waveform of the control signal is established according to the time point of the rising edge, the time point of the falling edge, the pulse width, and the frequency.
4. The synchronous control method according to claim 1, characterized in that: The method of establishing the second waveform of the control signal according to the time point of the rising edge of the second waveform and the time point of the falling edge of the second waveform further includes: Acquire the pulse width and frequency according to the time point of the rising edge and the time point of the falling edge of the second waveform; The second waveform of the control signal is established according to the time point of the rising edge, the time point of the falling edge, the pulse width and the frequency of the second waveform.
5. The synchronous control method according to claim 1, characterized in that: Obtaining the delay time of the control signal also includes: Get multiple delay times and initialize filter parameters; Obtaining an input signal and an expected output, and calculating a predicted delay based on the input signal and the expected output; A delay error between the predicted delay and the delay time is calculated, and parameters of the filter are updated according to the delay error and an input signal.
6. The synchronous control method according to claim 5, characterized in that: The filter is a normalization filter or a least squares filter.
7. A power supply system, characterized in that: The power supply system includes a plurality of inverters, and each inverter simultaneously executes the synchronous control method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Enhanced grid synchronization scheme
CN107221963A
New energy power generation and stored energy complementary inverter synchronization control device and system
CN108695861A