Power grid data acquisition control system capable of preventing data loss

By combining hardware dual-channel and software dual-channel methods, using double-pole double-throw relays and double ring buffers, the problem of data conflict and loss in the power grid data acquisition system is solved, the stability and integrity of data acquisition are achieved, and the System efficiency and stability.

CN118677101AInactive Publication Date: 2024-09-20SHENZHEN HUICHENGYU ELECTRONIC TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410720915.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing power grid data collection system is prone to data conflicts and data loss in the case of dual-channel collection. The software dual-channel method relies on the normal operation of the equipment, and the hardware dual-channel method cannot handle data loss in the case of simultaneous collection.

Method used

The method of integrating hardware dual-channel and software dual-channel is used to realize data channel switching and multi-channel data caching through double-pole double-throw relays and double ring buffers to ensure the stability and integrity of data collection.

Benefits of technology

Realizes data collection switching and caching between the grid inverter and the manufacturer's inverter, avoiding data loss, ensuring data continuity, consistency and integrity, and improving data fluency and the efficiency and stability of the collection system. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677101A
    Figure CN118677101A
Patent Text Reader

Abstract

The invention discloses a power grid data acquisition control system capable of preventing data loss, and relates to the technical field of power grid data. The system comprises a power grid inverter collector, a manufacturer inverter collector, a photovoltaic inverter and a relay. The power grid inverter collector is provided with a first RS485 interface and a second RS485 interface; the photovoltaic inverter is provided with a third RS485 interface; the relay comprises a normally closed end, a normally open end and a common end; the first RS485 interface is connected in parallel with the manufacturer inverter collector, and the parallel end is connected to the normally closed end of the relay to form a first data collection channel; the second RS485 interface is connected with the normally open end of the relay to form a second data acquisition channel; and the third RS485 interface is connected with the common end of the relay. The advantages of a hardware dual-channel method and a software dual-channel method are integrated, hardware channels can be switched, and multi-channel data acquisition and caching can also be performed, so that data collision and data loss are prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of power grid data acquisition, and in particular relates to a power grid data acquisition control system capable of preventing data loss. Background Art

[0002] Photovoltaic new energy is a new type of energy that the country is vigorously developing. With the continuous development of the photovoltaic industry, the installed capacity of grid-connected photovoltaics is also increasing. Therefore, the grid side needs to collect data from photovoltaic inverters to understand the detailed information of photovoltaic power generation in order to better dispatch electricity. Generally speaking, photovoltaic inverter manufacturers have a collection system to upload data to the inverter manufacturer platform; and the grid side will also build a collection system to upload data to the grid platform. Therefore, when there is a probability that two collection devices collect data from one device at the same time, data conflicts will occur.

[0003] At present, there are two ways to solve the above dual-channel data acquisition problem:

[0004] The first is the software dual-channel method: place two RS485 interfaces on the grid inverter acquisition device, connect the acquisition interface of the photovoltaic inverter manufacturer to one of the RS485 interfaces, and connect the other RS485 interface to the inverter interface. The grid inverter collector directly collects photovoltaic inverter data and forwards the collected data of the photovoltaic inverter manufacturer. Dual-channel data processing and forwarding are achieved through software.

[0005] However, the software dual-channel method has the following defects: the data collected by the two acquisition systems are highly dependent on the normal operation of the dual channels of the grid inverter acquisition equipment. If the software dual channels are abnormal, the photovoltaic inverter manufacturer's acquisition system will also be unable to collect data normally. For example, if the grid photovoltaic inverter fails due to various reasons and cannot forward data normally, at this time, even if the photovoltaic inverter equipment is normal, the photovoltaic inverter manufacturer's acquisition system will not be able to collect data.

[0006] The second is the hardware dual-channel method: place an RS485 interface and a double-pole double-throw relay on the grid inverter acquisition device. When the grid inverter acquisition device does not collect data, the relay connects the RS485 on the inverter device end with the RS485 of the inverter manufacturer's collector; when the grid inverter acquisition device needs to collect data, the relay connects the RS485 on the inverter device end with the grid inverter acquisition device, physically realizing dual-channel switching.

[0007] However, the hardware-software dual-channel method also has the following defects: the hardware-software dual-channel method cannot handle the situation where one channel is collecting data while another channel is collecting data at the same time, and the data of the party that does not obtain the collection channel will be lost. Summary of the invention

[0008] The purpose of the present invention is to provide a power grid data acquisition and control system that prevents data loss, combines the advantages of both hardware dual-channel and software dual-channel methods, and provides a dual-channel communication method in combination with the operating process, so that it can realize hardware channel switching and multi-channel data caching.

[0009] The purpose of the present invention can be achieved through the following technical solutions:

[0010] The embodiment of the present application provides a data loss-preventing power grid data acquisition and control system, including a power grid inverter collector, a manufacturer inverter collector, a photovoltaic inverter, and a relay;

[0011] The grid inverter collector is connected in parallel with the manufacturer inverter collector;

[0012] The parallel end of the grid inverter collector and the manufacturer inverter collector is connected to the relay;

[0013] The relay is connected to the photovoltaic inverter;

[0014] The grid inverter collector is provided with a first RS485 interface and a second RS485 interface;

[0015] The photovoltaic inverter is provided with a third RS485 interface;

[0016] The relay comprises a normally closed terminal, a normally open terminal and a common terminal;

[0017] The first RS485 interface is connected in parallel with the manufacturer's inverter collector, and the parallel end is connected to the normally closed end of the relay to form a first data acquisition channel;

[0018] The second RS485 interface is connected to the normally open end of the relay to form a second data acquisition channel;

[0019] The third RS485 interface is connected to the common terminal of the relay;

[0020] It also includes a data acquisition module, a data cache module, a collector monitoring module and a relay control module connected in communication;

[0021] The data acquisition module includes a grid inverter acquisition unit and a manufacturer inverter acquisition unit which are communicatively connected to each other;

[0022] The grid inverter acquisition unit is used to collect data from the inverter through the grid inverter collector to obtain grid data on the grid side;

[0023] The manufacturer inverter acquisition unit is used to collect data from the inverter through the manufacturer inverter collector to obtain the manufacturer side power grid data;

[0024] The data cache module is used to cache the grid data on the grid side and the grid data on the manufacturer side;

[0025] The collector monitoring module is used to monitor the working status of the grid inverter collector and the manufacturer inverter collector in real time and obtain monitoring results;

[0026] The relay control module is used to control the relay to be closed or disconnected according to the monitoring result, and to switch the data acquisition channel.

[0027] Preferably, the relay is a double-pole double-throw normally closed relay.

[0028] Preferably, when the relay is not powered, the normally closed end is connected to the common end, and the relay is in a closed state.

[0029] Preferably, the data cache module uses a dual ring buffer for data caching, and the dual ring buffer includes a first ring buffer and a second ring buffer;

[0030] The first ring buffer is used for writing data;

[0031] The second ring buffer is used for reading data.

[0032] Preferably, if the monitoring result is that only the manufacturer's inverter collector is in the waiting state, the manufacturer's side power grid data is collected through the first data acquisition channel, and the power grid inverter collector is monitored during the data collection process; if it is monitored that the power grid inverter collector is also in the waiting state, the power grid collection command is cached through the first ring buffer, and the power grid collection command is forwarded through the second ring buffer after the current collection process ends.

[0033] Preferably, if the monitoring result is that only the grid inverter collector is in the waiting state, the second data acquisition channel is switched to collect the grid data on the grid side, and the manufacturer inverter collector is monitored during the data acquisition process; if the manufacturer inverter collector is in the data waiting to be sent state, the manufacturer acquisition command is cached through the first ring buffer, and the manufacturer acquisition command is forwarded through the second ring buffer after the current acquisition process is completed.

[0034] Preferably, the power grid data acquisition and control system further comprises a power grid data acquisition method, comprising the following stages:

[0035] In the first stage, the working status of the inverter collector of the manufacturer is monitored and determined;

[0036] In the second stage, the working state of the grid inverter collector is monitored and determined;

[0037] In the third stage, the command cache state of the first ring buffer is monitored and determined, and the switching of the relay is controlled according to the cache state.

[0038] Preferably, if the manufacturer's inverter collector is collecting data, the following steps are included:

[0039] S11, the manufacturer inverter collector sends a manufacturer collection command and waits for a response, while monitoring the working status of the grid inverter collector. If the grid inverter collector is collecting data, the grid collection command of the grid inverter collector is cached;

[0040] S12, the manufacturer inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a collection instruction, execute step S13; if there is no collection instruction, execute the first stage;

[0041] S13, switching to the second data acquisition channel by controlling the relay to be attracted, and connecting the grid inverter collector and the photovoltaic inverter;

[0042] S14, the grid inverter collector sends the grid data on the grid side and monitors the working status of the manufacturer inverter collector. If the manufacturer inverter collector is collecting data, the manufacturer collection command of the manufacturer inverter collector is cached;

[0043] S15, the grid inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a collection instruction, forwarding is performed through the second ring buffer; if there is no collection instruction, executing step S16;

[0044] S16, switching to the first data acquisition channel by controlling the relay to disconnect, connecting the manufacturer inverter collector and the photovoltaic inverter, and executing the first stage.

[0045] Preferably, if the manufacturer's inverter collector does not collect data, the following steps are included:

[0046] S21, monitoring the working status of the grid inverter collector, if the grid inverter collector is collecting data, executing step S22; otherwise, executing the first stage;

[0047] S22, switching to the second data acquisition channel by controlling the relay to be attracted, and connecting the grid inverter collector and the photovoltaic inverter;

[0048] S23, the grid inverter collector sends a grid collection command and monitors the working status of the manufacturer inverter collector. If the manufacturer inverter collector is collecting data, the manufacturer collection command of the manufacturer inverter collector is cached;

[0049] S24, the grid inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a collection instruction, forwarding is performed through the second ring buffer; if there is no collection instruction, executing step S25;

[0050] S25, switching to the first data acquisition channel by controlling the relay to disconnect, connecting the manufacturer inverter collector and the photovoltaic inverter, and executing the first stage.

[0051] The beneficial effects of the present invention are:

[0052] (1) The present invention combines the advantages of both hardware dual-channel and software dual-channel methods, and sets two RS485 interfaces on the power grid inverter collector. One RS485 interface connects the power grid inverter collector and the manufacturer's inverter collector in parallel, and connects the parallel end to the normally closed end of the relay; the other RS485 interface is directly connected to the normally open end of the relay. Through the above operations, the present invention can not only switch the hardware channels, but also perform multi-channel data collection and caching.

[0053] (2) The present invention uses a double-pole double-throw relay as an intermediate component connecting the grid inverter collector, the manufacturer inverter collector and the photovoltaic inverter. The connection of the relay can be switched as needed, and different data acquisition channels can be selected for data acquisition. In addition, the double-pole double-throw relay also has the advantages of fault tolerance, electrical isolation and scalability in data acquisition, and can provide stable and reliable data acquisition.

[0054] (3) The present invention connects one RS485 interface of the power grid inverter collector in parallel with the manufacturer's inverter collector, and connects the parallel RS485 interfaces to the normally closed end of a double-pole double-throw relay; connects another RS485 interface to the normally open end of the relay to ensure that when the relay is not powered on, the parallel ends of the manufacturer's inverter collector and the power grid inverter collector are directly connected to the inverter.

[0055] (4) The present invention maintains the state of the photovoltaic inverter manufacturer collector being connected to the photovoltaic inverter when the relay is not powered on. In this way, even if the grid inverter collection equipment fails, it will not affect the collection of the photovoltaic inverter manufacturer collector, thereby ensuring the compatibility of data collection.

[0056] (5) When only the manufacturer's inverter collector needs to collect data, the present invention can directly obtain data without switching the relay channel. In addition, during the collection process, when the grid inverter needs to collect data, the data needs to be cached first, and the data collection of the grid-side inverter is performed only after the current collection process is completed, thereby preventing data conflict and data loss.

[0057] (6) When only the grid-side inverter needs to collect data, the present invention switches the relay channel to connect the grid inverter collector to the inverter and collect data; and monitors in real time whether the manufacturer's inverter collector has data to send. If there is data, the data is cached and forwarded after the current operation process ends, thereby ensuring data integrity and preventing data loss.

[0058] (7) The present invention adopts a dual circular buffer for data caching, one circular buffer writes data and the other circular buffer reads data; this can avoid data loss or duplication and ensure the continuity, consistency and integrity of the data; and because the dual circular buffer has two buffers, data can be collected and processed simultaneously, thereby improving data fluency, as well as improving the efficiency and stability of the data acquisition system. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings.

[0060] Figure 1 A schematic diagram of the structure of a power grid data acquisition and control system for preventing data loss provided in an embodiment of the present application;

[0061] Figure 2 A schematic diagram of a module of a power grid data acquisition and control system for preventing data loss provided in an embodiment of the present application;

[0062] Figure 3 A flowchart of the working principle of a power grid data acquisition and control system for preventing data loss provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of methods and systems consistent with some aspects of the present application as detailed in the attached claims.

[0064] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to any or all possible combinations of one or more associated listed items.

[0065] The specific implementation methods, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0066] See also Figure 1-Figure 3 , the embodiment of the present application provides a data loss-preventing power grid data acquisition and control system, including a power grid inverter collector, a manufacturer inverter collector, a photovoltaic inverter and a relay;

[0067] The grid inverter collector is connected in parallel with the manufacturer inverter collector;

[0068] The parallel end of the grid inverter collector and the manufacturer inverter collector is connected to the relay;

[0069] The relay is connected to the photovoltaic inverter;

[0070] The grid inverter collector is provided with a first RS485 interface and a second RS485 interface;

[0071] The photovoltaic inverter is provided with a third RS485 interface;

[0072] The relay comprises a normally closed terminal, a normally open terminal and a common terminal;

[0073] The first RS485 interface is connected in parallel with the manufacturer's inverter collector, and the parallel end is connected to the normally closed end of the relay to form a first data acquisition channel;

[0074] The second RS485 interface is connected to the normally open end of the relay to form a second data acquisition channel;

[0075] The third RS485 interface is connected to the common end of the relay.

[0076] In one embodiment provided in the present application, the relay is a double-pole double-throw normally closed relay. When the relay is not powered, the normally closed end is connected to the common end, and the relay is in a closed state.

[0077] Specifically, the present application connects one RS485 interface of the power grid inverter collector in parallel with the manufacturer's inverter collector, and connects the parallel RS485 interface to the normally closed end of the double-pole double-throw relay; connects the other RS485 interface to the normally open end of the relay to ensure that when the relay is not powered on, the parallel end of the manufacturer's inverter collector and the power grid inverter collector is directly connected to the inverter.

[0078] This application uses a double-pole double-throw relay as an intermediate component to connect the grid inverter collector, the manufacturer inverter collector and the photovoltaic inverter. The connection of the relay can be switched as needed, and different data acquisition channels can be selected for data acquisition. In addition, the double-pole double-throw relay also has the advantages of fault tolerance, electrical isolation and scalability in data acquisition, and can provide stable and reliable data acquisition.

[0079] This application keeps the relay in the unpowered state so that the photovoltaic inverter manufacturer collector is connected to the photovoltaic inverter. In this way, even if the grid inverter collection equipment fails, it will not affect the collection of the photovoltaic inverter manufacturer collector, thereby ensuring the compatibility of data collection.

[0080] The present application combines the advantages of both hardware dual-channel and software dual-channel methods, and sets two RS485 interfaces on the power grid inverter collector. One RS485 interface connects the power grid inverter collector in parallel with the manufacturer's inverter collector, and connects the parallel end to the normally closed end of the relay; the other RS485 interface is directly connected to the normally open end of the relay; through the above operations, the present invention can not only switch the hardware channels, but also perform multi-channel data collection and caching.

[0081] In one embodiment provided in the present application, the system further comprises a data acquisition module, a data cache module, a collector monitoring module and a relay control module which are communicatively connected;

[0082] The data acquisition module includes a grid inverter acquisition unit and a manufacturer inverter acquisition unit which are communicatively connected to each other;

[0083] The grid inverter acquisition unit is used to collect data from the inverter through the grid inverter collector to obtain grid data on the grid side;

[0084] The manufacturer inverter acquisition unit is used to collect data from the inverter through the manufacturer inverter collector to obtain the manufacturer side power grid data;

[0085] The data cache module is used to cache the grid data on the grid side and the grid data on the manufacturer side;

[0086] The collector monitoring module is used to monitor the working status of the grid inverter collector and the manufacturer inverter collector in real time and obtain monitoring results;

[0087] The relay control module is used to control the relay to be closed or disconnected according to the monitoring result, and to switch the data acquisition channel.

[0088] Furthermore, the data cache module uses a dual ring buffer for data caching, and the dual ring buffer includes a first ring buffer and a second ring buffer;

[0089] The first ring buffer is used for writing data;

[0090] The second ring buffer is used for reading data.

[0091] Furthermore, if the monitoring result shows that only the manufacturer's inverter collector is in the waiting state, the manufacturer's side power grid data is collected through the first data acquisition channel, and the power grid inverter collector is monitored during the data collection process; if it is monitored that the power grid inverter collector is also in the waiting state, the power grid collection command is cached through the first ring buffer and the data collection of the power grid inverter collector is performed after the current collection process is completed.

[0092] Furthermore, if the monitoring result shows that only the grid inverter collector is in the waiting state for collection, the second data collection channel is switched to collect the grid data on the grid side, and the manufacturer inverter collector is monitored during the data collection process; if the manufacturer inverter collector is in the data waiting to be sent state, the manufacturer collection command is cached through the first ring buffer, and the data is forwarded through the second ring buffer after the current collection process is completed.

[0093] Specifically, the present application adopts a dual ring buffer for data caching of collection commands and collection data, that is, it can cache the collection commands of the manufacturer and / or the power grid, and can also cache the power grid side data and / or manufacturer side data collected by the two. One ring buffer writes data and the other ring buffer reads data. This can avoid data loss or duplication and ensure the continuity, consistency and integrity of the data. And because the dual ring buffer has two buffers, it can collect and process data at the same time, thereby improving data fluency and improving the efficiency and stability of the data acquisition system.

[0094] In an embodiment provided in the present application, the above system also includes a power grid data collection method, including the following stages:

[0095] In the first stage, the working status of the inverter collector of the manufacturer is monitored and determined;

[0096] In the second stage, the working state of the grid inverter collector is monitored and determined;

[0097] In the third stage, the command cache state of the first ring buffer is monitored and determined, and the switching of the relay is controlled according to the command cache state.

[0098] Specifically, if the manufacturer's inverter collector is collecting data, the following steps are included:

[0099] S11, the manufacturer inverter collector sends a manufacturer collection command and waits for a response, while monitoring the working status of the grid inverter collector. If the grid inverter collector is collecting data, the grid collection command of the grid inverter collector is cached;

[0100] S12, the manufacturer inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a cached collection command, execute the step S13; if there is no cached collection command, execute the first stage;

[0101] S13, switching to the second data acquisition channel by controlling the relay to be attracted, and connecting the grid inverter collector and the photovoltaic inverter;

[0102] S14, the grid inverter collector sends a grid collection command and waits for a response, while monitoring the working status of the manufacturer inverter collector. If the manufacturer inverter collector is collecting data, the manufacturer collection command of the manufacturer inverter collector is cached;

[0103] S15, the grid inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a cached collection command, it is forwarded through the second ring buffer; if there is no cached collection command, the step S16 is executed;

[0104] S16, switching to the first data acquisition channel by controlling the relay to disconnect, connecting the manufacturer inverter collector and the photovoltaic inverter, and executing the first stage.

[0105] Furthermore, if the manufacturer's inverter collector does not collect data, the following steps are included:

[0106] S21, monitoring the working status of the grid inverter collector, if the grid inverter collector is collecting data, executing step S22; otherwise, executing the first stage;

[0107] S22, switching to the second data acquisition channel by controlling the relay to be attracted, and connecting the grid inverter collector and the photovoltaic inverter;

[0108] S23, the grid inverter collector sends a grid collection command and waits for a response, while monitoring the working status of the manufacturer inverter collector. If the manufacturer inverter collector is collecting data, the manufacturer collection command of the manufacturer inverter collector is cached;

[0109] S24, the grid inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a cached collection command, it is forwarded through the second ring buffer; if there is no cached collection command, the step S25 is executed;

[0110] S25, switching to the first data acquisition channel by controlling the relay to disconnect, connecting the manufacturer inverter collector and the photovoltaic inverter, and executing the first stage.

[0111] Next, this application will explain in detail the working principle and process of the above-mentioned power grid data acquisition and control system:

[0112] By the attached Figure 1 From the structure of the above system, it can be seen that the grid inverter collector and the manufacturer inverter collector are in parallel, and the parallel end is connected to the relay. Therefore, when only the manufacturer inverter collector needs to collect data, it is also necessary to determine whether the grid inverter collector also needs or is collecting data. Therefore, this application divides the data collection situation into the following two parts.

[0113] Part 1: First, determine whether the manufacturer's inverter collector has started collecting data. If it has started collecting data, send the manufacturer's collection command and wait for a response; at the same time, determine whether the power grid inverter collector is collecting data. If it has also started collecting data, cache the data of the power grid inverter collector to avoid data conflicts with the manufacturer's inverter collector; if not, complete the data collection work of the manufacturer's inverter collector and end the collection process; then determine whether there is a cached collection command. If there is a collection command, close the relay to turn on the power grid inverter collector and the inverter; if there is no collection command, re-determine whether the manufacturer's inverter collector has started collecting data, that is, start the next round of judgment cycle.

[0114] Part 2: First, determine whether the manufacturer's inverter collector has started collecting data. If it has not started collecting data, determine whether the grid inverter collector is collecting data. If it has not collected data, re-determine whether the manufacturer's inverter collector has started collecting data. If the grid inverter collector has started collecting data, close the relay to connect the grid inverter collector and the inverter, and send a grid collection command and wait for a response. Then, during the process of the grid inverter collector collecting data, monitor again whether the manufacturer's inverter collector has started collecting data. If the manufacturer's inverter collector has also started collecting data, Its data is cached to avoid data conflicts with the data of the power grid inverter collector; if the manufacturer's inverter collector does not collect data, the data collection work of the power grid inverter collector is completed and the collection process is ended; finally, it is determined whether there is a cached collection instruction. If there is a collection command, the collection command is sent and a response is waited for, so as to ensure the integrity of the data and prevent data loss; if there is no collection command, the relay is disconnected, the manufacturer's inverter collector and the inverter are turned on, and it returns to the initial state, and it is re-determined whether the manufacturer's inverter collector starts to collect data, that is: a new round of judgment process begins.

[0115] Specifically, when only the manufacturer's inverter collector needs to collect data, the present application can directly obtain data without switching the relay channel, and during the collection process, when the grid inverter needs to collect data, the data needs to be cached first, and the data collection of the grid-side inverter is performed after the current collection process is completed, thereby preventing data conflicts and data loss. On the other hand, when only the grid-side inverter needs to collect data, the present application connects the grid inverter collector to the inverter and performs data collection by switching the relay channel; and monitors in real time whether the manufacturer's inverter collector has data to send. If there is data, the data is cached, and the data is forwarded after the current operation process is completed, thereby ensuring the integrity of the data and preventing data loss.

[0116] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0117] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0118] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A power grid data acquisition and control system for preventing data loss, characterized in that: Including grid inverter collector, manufacturer inverter collector, photovoltaic inverter and relay; The grid inverter collector is connected in parallel with the manufacturer inverter collector; The parallel end of the grid inverter collector and the manufacturer inverter collector is connected to the relay; The relay is connected to the photovoltaic inverter; The grid inverter collector is provided with a first RS485 interface and a second RS485 interface; The photovoltaic inverter is provided with a third RS485 interface; The relay comprises a normally closed terminal, a normally open terminal and a common terminal; The first RS485 interface is connected in parallel with the manufacturer's inverter collector, and the parallel end is connected to the normally closed end of the relay to form a first data acquisition channel; The second RS485 interface is connected to the normally open end of the relay to form a second data acquisition channel; The third RS485 interface is connected to the common terminal of the relay; It also includes a data acquisition module, a data cache module, a collector monitoring module and a relay control module connected in communication; The data acquisition module includes a grid inverter acquisition unit and a manufacturer inverter acquisition unit which are communicatively connected to each other; The grid inverter acquisition unit is used to collect data from the inverter through the grid inverter collector to obtain grid data on the grid side; The manufacturer inverter acquisition unit is used to collect data from the inverter through the manufacturer inverter collector to obtain the manufacturer side power grid data; The data cache module is used to cache the grid data on the grid side and the grid data on the manufacturer side; The collector monitoring module is used to monitor the working status of the grid inverter collector and the manufacturer inverter collector in real time and obtain monitoring results; The relay control module is used to control the relay to be closed or disconnected according to the monitoring result, and to switch the data acquisition channel.

2. The data loss-preventing power grid data acquisition and control system according to claim 1, characterized in that: The relay is a double-pole double-throw normally closed relay.

3. The data loss-preventing power grid data acquisition and control system according to claim 2, characterized in that: When the relay is not powered, the normally closed end is connected to the common end, and the relay is in a closed state.

4. The data loss-preventing power grid data acquisition and control system according to claim 1, characterized in that: The data cache module uses a dual ring buffer for data caching, and the dual ring buffer includes a first ring buffer and a second ring buffer; The first ring buffer is used for writing data; The second ring buffer is used for reading data.

5. The data loss-preventing power grid data acquisition and control system according to claim 4, characterized in that: If the monitoring result shows that only the manufacturer inverter collector is in a waiting state, collecting the manufacturer-side power grid data through the first data collection channel, and monitoring the power grid inverter collector during the data collection process; If it is monitored in the current collection process that the power grid inverter collector is also in the waiting state, the power grid collection command is cached through the first ring buffer, and the power grid collection command is forwarded through the second ring buffer after the current collection process ends.

6. The data collection and control system for power grid that prevents data loss according to claim 5, characterized in that: If the monitoring result shows that only the grid inverter collector is in the waiting state, the second data acquisition channel is switched to collect the grid data on the grid side, and the manufacturer inverter collector is monitored during the data acquisition process; if the manufacturer inverter collector is in the data waiting to be sent state, the manufacturer acquisition command is cached through the first ring buffer, and the manufacturer acquisition command is forwarded through the second ring buffer after the current acquisition process is completed.

7. The data loss-preventing power grid data acquisition and control system according to claim 4, characterized in that: A power grid data collection method is also provided, comprising the following stages: In the first stage, the working status of the inverter collector of the manufacturer is monitored and determined; In the second stage, the working state of the grid inverter collector is monitored and determined; In the third stage, the cache state of the first ring buffer is monitored and determined, and the switching of the relay is controlled according to the cache state.

8. The data loss-preventing power grid data acquisition and control system according to claim 7, characterized in that: If the manufacturer's inverter collector is collecting data, the following steps are included: S11, the manufacturer inverter collector sends a manufacturer collection command and waits for a response, while monitoring the working status of the power grid inverter collector. If the power grid inverter collector is collecting data, the power grid collection command is cached; S12, the manufacturer inverter collector ends the collection process and determines the cache status of the first ring buffer; If there is a collection instruction, execute step S13; if there is no collection instruction, execute the first stage; S13, switching to the second data acquisition channel by controlling the relay to be attracted, and connecting the grid inverter collector and the photovoltaic inverter; S14, the grid inverter collector sends the grid-side grid data and monitors the working status of the manufacturer inverter collector. If the manufacturer inverter collector is collecting data, the manufacturer collection command is cached; S15, the grid inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a collection instruction, data is forwarded through the second ring buffer; If there is no acquisition instruction, execute step S16; S16, disconnecting and switching to the first data acquisition channel by controlling the relay, connecting the manufacturer inverter collector and the photovoltaic inverter, and executing the first stage.

9. The data loss-preventing power grid data acquisition and control system according to claim 8, characterized in that: If the manufacturer's inverter collector does not collect data, the following steps are included: S21, monitoring the working status of the grid inverter collector, if the grid inverter collector is collecting data, executing step S22; otherwise, executing the first stage; S22, switching to the second data acquisition channel by controlling the relay to be attracted, and connecting the grid inverter collector and the photovoltaic inverter; S23, the grid inverter collector sends a grid collection command and monitors the working status of the manufacturer inverter collector. If the manufacturer inverter collector is collecting data, the manufacturer collection command is cached; S24, the grid inverter collector ends the collection process and determines the cache status of the first ring buffer; if there is a collection instruction, data is forwarded through the second ring buffer; If there is no acquisition instruction, execute step S25; S25, switching to the first data acquisition channel by controlling the relay to disconnect, connecting the manufacturer inverter collector and the photovoltaic inverter, and executing the first stage.

Citation Information

Cited By

  • Data acquisition method and system of photovoltaic inverter and electronic equipment

    CN120277009A