Data acquisition method and system of photovoltaic inverter and electronic equipment
By setting up two storage spaces and communication channel switching mechanisms in the photovoltaic inverter, the multi-system acquisition and control rights pulling problem of the photovoltaic inverter is solved, and multi-protocol access and uniqueness control are realized.
Patent Information
- Application Number
- CN202510748846.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-07-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing photovoltaic inverters only have one RS485 communication interface, which cannot support multiple systems to collect simultaneously, resulting in difficulty in data acquisition of photovoltaic inverters and serious problems with pulling control rights.
By setting two storage spaces in the photovoltaic inverter, which are used to cache data from the power grid acquisition system and the original factory collector, the rapid switching and priority adjustment of the communication channel are achieved to ensure unique control.
Multiple systems simultaneously collect data from photovoltaic inverters, support access to different communication protocols, solve the problem of control pulling, and ensure the unique control of photovoltaic inverters.
Smart Images

Figure CN120277009A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fast channel switching, and more particularly, to a data acquisition method, system, and electronic device for a photovoltaic inverter. Background Art
[0002] In recent years, the photovoltaic industry in China has developed rapidly, and the power generation has increased sharply. While bringing clean energy and benefits, it has also had an impact on the power grid. The need for unified management and dispatching of photovoltaic group regulation and control is urgent and increasing day by day. The photovoltaic stock in the Chinese power industry accounts for a large proportion and urgently needs unified automated management. Most of the existing photovoltaic inverters in the industry have only one RS485 communication interface for communication with the collector of the inverter original factory, and there is no additional communication interface to support access to the power grid.
[0003] Therefore, a data acquisition method for a photovoltaic inverter is needed. Summary of the Invention
[0004] The present invention provides a data acquisition method, system, and electronic device for a photovoltaic inverter to solve the problem of how to achieve multi-channel data acquisition of a photovoltaic inverter.
[0005] To solve the above problems, according to one aspect of the present invention, a data acquisition method for a photovoltaic inverter is provided. The method includes: Step 1, determining whether a first storage space is empty and obtaining a first determination result; Step 2, when the first determination result indicates that the first storage space is not empty, parsing first cached data in the first storage space to obtain a parsing result; Step 3, when the parsing result indicates that the first cached data is a control instruction, sending the first cached data in the first storage space to the photovoltaic inverter, and when the inverter returns first response data based on the first cached data, sending the first response data to the power grid acquisition system; Step 4, determining whether a second storage space is empty and obtaining a second determination result; Step 5, when the second determination result indicates that the second storage space is not empty, sending second cached data in the second storage space to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, sending the second response data to the original factory collector; Step 6, switching the communication channel, repeatedly monitoring the storage status of the second storage space and the first storage space, and returning to Step 1.
[0006] Preferably, the method further includes: When the second determination result indicates that the second storage space is empty, entering Step 6.
[0007] Preferably, the method further includes: When the parsing result indicates that the first cached data is not a control instruction, determine whether the second storage space is empty, and obtain a third determination result; When the third determination result indicates that the second storage space is not empty, send the second cached data in the second storage space to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector; then send the first cached data in the first storage space to the photovoltaic inverter, and when the inverter returns first response data based on the first cached data, send the first response data to the power grid acquisition system, and enter step 6; When the third determination result indicates that the second storage space is empty, send the first cached data in the first storage space to the photovoltaic inverter, and when the inverter returns first response data based on the first cached data, send the first response data to the power grid acquisition system, and enter step 6.
[0008] Preferably, the method further includes: When the first determination result indicates that the first storage space is empty, determine whether the second storage space is empty, and obtain a fourth determination result; When the fourth determination result indicates that the second storage space is not empty, send the second cached data in the second storage space to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector, and enter step 6; When the fourth determination result indicates that the second storage space is empty, enter step 6.
[0009] Preferably, the method further includes: Receive the reading instruction sent by the original factory collector and cache it in the second storage space; receive the reading instruction and control instruction sent by the power grid acquisition system, and after protocol conversion, cache them in the first storage space.
[0010] Preferably, the method further includes: Identify the control instruction not sent by the power grid acquisition system, and generate a non-power grid acquisition system regulation and inversion event or directly filter out the control instruction sent by the non-power grid acquisition system.
[0011] According to another aspect of the present invention, there is provided a data acquisition system for a photovoltaic inverter, the system includes: A first determination unit, configured to determine whether the first storage space is empty, and obtain a first determination result; An analysis unit, configured to analyze the first cached data in the first storage space to obtain an analysis result when the first judgment result indicates that the first storage space is not empty; A first data acquisition unit, configured to send the first cached data in the first storage space to a photovoltaic inverter when the analysis result indicates that the first cached data is a control instruction, and send the first response data to a grid acquisition system when the inverter returns the first response data based on the first cached data; A second judgment unit, configured to judge whether the second storage space is empty and obtain a second judgment result; A second data acquisition unit, configured to send the second cached data in the second storage space to a photovoltaic inverter when the second judgment result indicates that the second storage space is not empty, and send the second response data to an original factory collector when the inverter returns the second response data based on the second cached data; A communication channel switching unit, configured to switch communication channels and repeatedly monitor the storage statuses of the second storage space and the first storage space.
[0012] Preferably, the second data acquisition unit is further configured to: Enter the communication channel switching unit when the second judgment result indicates that the second storage space is empty.
[0013] Preferably, the system further includes: A third judgment unit, configured to judge whether the second storage space is empty and obtain a third judgment result when the analysis result indicates that the first cached data is not a control instruction; A third data acquisition unit, configured to send the second cached data in the second storage space to a photovoltaic inverter when the third judgment result indicates that the second storage space is not empty, and send the second response data to an original factory collector when the inverter returns the second response data based on the second cached data; then send the first cached data in the first storage space to the photovoltaic inverter, and send the first response data to a grid acquisition system when the inverter returns the first response data based on the first cached data, and enter the communication channel switching unit; and configured to send the first cached data in the first storage space to the photovoltaic inverter when the third judgment result indicates that the second storage space is empty, and send the first response data to a grid acquisition system when the inverter returns the first response data based on the first cached data, and enter the communication channel switching unit.
[0014] Preferably, the system further includes: A fourth judgment unit, configured to, when the first judgment result indicates that the first storage space is empty, judge whether the second storage space is empty, and obtain a fourth judgment result; A fourth data acquisition unit, configured to, when the fourth judgment result indicates that the second storage space is not empty, send the second cached data in the second storage space to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector, and enter the communication channel switching unit; and configured to, when the fourth judgment result indicates that the second storage space is empty, enter the communication channel switching unit.
[0015] Preferably, the system further includes: A cache unit, configured to receive the reading instruction sent by the original factory collector and cache it in the second storage space; receive the reading instruction and control instruction sent by the power grid acquisition system, and after protocol conversion, cache them in the first storage space.
[0016] Preferably, the system further includes: An instruction processing unit, configured to identify the control instruction sent by a non-power grid acquisition system, and generate a non-power grid acquisition system regulation and inversion event or directly filter out the control instruction sent by the non-power grid acquisition system.
[0017] Based on another aspect of the present invention, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the data acquisition methods of a photovoltaic inverter are implemented.
[0018] Based on another aspect of the present invention, the present invention provides an electronic device, including: The above-mentioned computer-readable storage medium; and One or more processors, configured to execute the program in the computer-readable storage medium.
[0019] The present invention provides a data acquisition method, system and electronic device for a photovoltaic inverter, including: Step 1, determining whether the first storage space is empty and obtaining a first determination result; Step 2, when the first determination result indicates that the first storage space is not empty, parsing the first cached data in the first storage space to obtain a parsing result; Step 3, when the parsing result indicates that the first cached data is a control instruction, sending the first cached data in the first storage space to the photovoltaic inverter, and when the inverter returns first response data based on the first cached data, sending the first response data to the power grid acquisition system; Step 4, determining whether the second storage space is empty and obtaining a second determination result; Step 5, when the second determination result indicates that the second storage space is not empty, sending the second cached data in the second storage space to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, sending the second response data to the original factory collector; Step 6, switching the communication channel, repeatedly monitoring the storage status of the second storage space and the first storage space, and returning to Step 1. The present invention solves the problem that a common RS485 bus cannot collect the same photovoltaic inverter by multiple systems, and can access acquisition master stations or other platforms with multiple different communication protocols simultaneously to jointly collect the same type of photovoltaic inverter; it solves the problem that a common RS485 bus cannot collect photovoltaic inverters with multiple different protocols simultaneously, and can support the power grid acquisition system to include all photovoltaic inverters with different protocols; it solves the problem of the control right distance when multiple master stations simultaneously control one inverter. When communicating between multiple master stations and the photovoltaic inverter, the priority of control instructions can be adjusted or only the control instructions of the power grid acquisition system for the photovoltaic inverter can be executed to ensure the uniqueness of the regulation of the photovoltaic inverter. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The exemplary embodiments of the present invention can be more fully understood by referring to the following drawings: Figure 1 FIG. 8 is a flowchart of a data acquisition method 100 for a photovoltaic inverter according to an embodiment of the present invention; Figure 2 FIG. 11 is an architecture diagram of data acquisition after photovoltaic transformation according to an embodiment of the present invention; Figure 3 FIG. 14 is a schematic diagram of a data acquisition structure after photovoltaic transformation according to an embodiment of the present invention; Figure 4 FIG. 17 is a flowchart of a data acquisition method process for a photovoltaic inverter according to an embodiment of the present invention; Figure 5 FIG. 20 is a schematic diagram of the structure of a data acquisition method system 500 for a photovoltaic inverter according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0021] Reference is now made to the accompanying drawings to describe exemplary embodiments of the present invention. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely, and to fully convey the scope of the present invention to those skilled in the art. The terms in the exemplary embodiments shown in the drawings are not intended to limit the present invention. In the drawings, the same units / components are denoted by the same reference numerals.
[0022] Unless otherwise specified, the terms used herein (including scientific and technical terms) have the ordinary meaning understood by those skilled in the art. Additionally, it can be understood that terms defined in a commonly used dictionary should be construed to have a meaning consistent with the context of their relevant fields, and should not be construed as having an idealized or overly formal meaning.
[0023] Figure 1 FIG. 100 is a flowchart of a data acquisition method for a photovoltaic inverter according to an embodiment of the present invention. As Figure 1 shown, the data acquisition method for a photovoltaic inverter provided by the embodiment of the present invention solves the problem that a common RS485 bus cannot collect the same photovoltaic inverter from multiple systems, and can access a collection master station or other platforms with multiple different communication protocols simultaneously to jointly collect the same type of photovoltaic inverter; solves the problem that a common RS485 bus cannot collect photovoltaic inverters with multiple different protocols simultaneously, and can support the grid collection system to include all photovoltaic inverters with different protocols; solves the problem of the control right distance when multiple master stations simultaneously control one inverter. When communicating between multiple master stations and the photovoltaic inverter, the priority of control commands can be adjusted or only the control commands of the grid collection system for the photovoltaic inverter are executed to ensure the uniqueness of the regulation of the photovoltaic inverter. The data acquisition method 100 for a photovoltaic inverter provided by the embodiment of the present invention starts from step 101. In step 101, it is judged whether the first storage space is empty, and the first judgment result is obtained.
[0024] In step 102, when the first judgment result indicates that the first storage space is not empty, the first cached data in the first storage space is parsed to obtain a parsing result.
[0025] In step 103, when the parsing result indicates that the first cached data is a control command, the first cached data in the first storage space is sent to the photovoltaic inverter, and when the inverter returns first response data based on the first cached data, the first response data is sent to the grid collection system.
[0026] In step 104, it is judged whether the second storage space is empty, and the second judgment result is obtained.
[0027] In step 105, when the second judgment result indicates that the second storage space is not empty, the second cached data in the second storage space is sent to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, the second response data is sent to the original factory collector.
[0028] In step 106, the communication channel is switched, the storage statuses of the second storage space and the first storage space are repeatedly monitored, and step 101 is returned.
[0029] Preferably, the method further includes: When the second judgment result indicates that the second storage space is empty, step 106 is entered.
[0030] Preferably, the method further includes: When the parsing result indicates that the first cached data is not a control instruction, it is judged whether the second storage space is empty, and a third judgment result is obtained; When the third judgment result indicates that the second storage space is not empty, the second cached data in the second storage space is sent to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, the second response data is sent to the original factory collector; then the first cached data in the first storage space is sent to the photovoltaic inverter, and when the inverter returns first response data based on the first cached data, the first response data is sent to the grid acquisition system, and step 6 is entered; When the third judgment result indicates that the second storage space is empty, the first cached data in the first storage space is sent to the photovoltaic inverter, and when the inverter returns first response data based on the first cached data, the first response data is sent to the grid acquisition system, and step 6 is entered.
[0031] Preferably, the method further includes: When the first judgment result indicates that the first storage space is empty, it is judged whether the second storage space is empty, and a fourth judgment result is obtained; When the fourth judgment result indicates that the second storage space is not empty, the second cached data in the second storage space is sent to the photovoltaic inverter, and when the inverter returns second response data based on the second cached data, the second response data is sent to the original factory collector, and step 6 is entered; When the fourth judgment result indicates that the second storage space is empty, step 6 is entered.
[0032] Preferably, the method further includes: Receive the reading instruction sent by the original factory collector and cache it in the second storage space; receive the reading instruction and control instruction sent by the power grid acquisition system, and after protocol conversion, cache them in the first storage space.
[0033] The present invention provides an effective and reliable fast switching method, which can use the collector originally equipped with the photovoltaic inverter and the unified acquisition system of the power grid to simultaneously collect the photovoltaic inverter through a single RS485 port. Combining Figure 2 and Figure 3 As shown, the present invention provides a hardware basis by the controller and peripheral devices, mainly including Storage 1 (i.e., the first storage space), Storage 2 (i.e., the second storage space), three serial port peripherals, a serial transceiver circuit (RS485 circuit), and a controller, etc. Among them, the reading instruction sent by the original factory collector can be cached in the receiving buffer area of the second storage space, and analyzed together with the message, which can be used for identifying the protocol type of the photovoltaic inverter; the reading and control instructions sent by the power grid acquisition system can be cached in the receiving buffer of the first storage space after protocol conversion.
[0034] In the embodiment of the present invention, the data cached in the first storage space and the second storage space can be used to realize fast switching of the communication channel in the manner as Figure 4 shown, so as to collect photovoltaic data.
[0035] Combining Figure 4 As shown, in the embodiment of the present invention, first, it is detected whether there is a reading message in the power grid acquisition system, that is, whether there is a receiving buffer in the first storage space. If there is a reading message, that is, the first storage space is not empty, then the first cached data in the first storage space is parsed to obtain the parsing result. And when the parsing result indicates that the first cached data is a control instruction, the first cached data in the first storage space is sent to the photovoltaic inverter, and when the inverter returns the first response data based on the first cached data, the first response data is sent to the power grid acquisition system. Then continue to judge whether there is a reading message from the original factory collector of the photovoltaic inverter, that is, whether there is a receiving buffer in the second storage space. If there is a reading message, that is, the second storage space is not empty, then the second cached data in the second storage space is sent to the photovoltaic inverter, and when the inverter returns the second response data based on the second cached data, the second response data is sent to the original factory collector. At this time, a data acquisition work is completed. Then enter step 106, communication channel switching, continuously monitor the storage status of the second storage space and the first storage space, and return to step 101 to continue the judgment. If it is found that there is no reading message when continuing to judge whether there is a reading message from the original factory collector of the photovoltaic inverter, that is, the second storage space is empty, then directly enter step 106.
[0036] In the implementation mode of the present invention, when first detecting whether the power grid collection system has a reading message, that is, whether the first storage space has a receiving cache, if there is a reading message and the analysis result indicates that the first cache data is not a control instruction, it is necessary to continue to determine whether the original collector of the light inverter has a reading message. If there is no reading message, the second storage space cache is empty, and the data in the first storage space is forwarded to the photovoltaic inverter, and the inverter is waited for to reply data to the power grid collection system, so that the data reading or control of the power grid collection system is completed; if the original collector of the light inverter has a reading message at this time, the second storage space cache is not empty, and the data in the second storage space is first forwarded to the photovoltaic inverter, and after the photovoltaic inverter replies data to the original collector of the light inverter, the data in the first storage space is forwarded to the photovoltaic inverter, and the inverter is waited for to reply data to the power grid collection system, so that the data reading or control of the power grid collection system is completed. That is, step 104 is executed to determine whether the second storage space is empty and obtain the third judgment result. When the third judgment result indicates that the second storage space is not empty (that is, there is a reading message in the second storage space), the second cache data in the second storage space is sent to the photovoltaic inverter, and when the inverter returns the second response data based on the second cache data, the second response data is sent to the original collector; then the first cache data in the first storage space is sent to the photovoltaic inverter, and when the inverter returns the first response data based on the first cache data, the first response data is sent to the power grid collection system, and the process proceeds to step 106. When the third judgment result indicates that the second storage space is empty (that is, there is no reading message in the second storage space), the first cache data in the first storage space is directly sent to the photovoltaic inverter, and when the inverter returns the first response data based on the first cache data, the first response data is sent to the power grid collection system, and the process proceeds to step 106.
[0037] In an embodiment of the present invention, when first detecting whether there is a reading message in the power grid acquisition system, that is, whether there is a receive buffer in the first storage space, if there is no reading message, that is, when buffer 1 is empty, continue to determine whether there is a reading message in the original factory collector of the optical inverter. If there is no reading message, the buffer in the second storage space is empty, and the communication channel fast switching unit is in a state of repeated real-time monitoring. If there is a reading message in the original factory collector of the optical inverter at this time, the buffer in the second storage space is not empty. First, forward the data in the second storage space to the photovoltaic inverter, and the photovoltaic inverter returns data to the original factory collector of the optical inverter. That is, when the first judgment result indicates that the first storage space is empty, judge whether the second storage space is empty to obtain a fourth judgment result. And when the fourth judgment result indicates that the second storage space is not empty, send the second buffer data in the second storage space to the photovoltaic inverter, and when the inverter returns second response data based on the second buffer data, send the second response data to the original factory collector and enter step 106. If the fourth judgment result indicates that the second storage space is empty, directly enter step 106.
[0038] In an embodiment of the present invention, while completing the channel switching, it is possible to monitor and analyze the buffer content of the second storage space and the first storage space, identify the control instructions for the photovoltaic inverter, and preferentially send the control instructions of the power grid acquisition system for the inverter according to requirements.
[0039] Preferably, the method further includes: Identify the control instructions sent by non-power grid acquisition systems, and generate non-power grid acquisition system regulation and inversion events or directly filter out the control instructions sent by non-power grid acquisition systems.
[0040] In an embodiment of the present invention, according to requirements, it is also possible to identify the control instructions of non-power grid acquisition systems for the inverter, generate non-power grid acquisition system regulation and inversion events for the inverter, or filter out the control instructions of non-power grid acquisition systems for the inverter according to requirements.
[0041] Figure 5 FIG. 500 is a schematic structural diagram of a data acquisition method system for a photovoltaic inverter according to an embodiment of the present invention. As Figure 5 shown, the data acquisition system 500 for a photovoltaic inverter provided by an embodiment of the present invention includes: a first judgment unit 501, an analysis unit 502, a first data acquisition unit 503, a second judgment unit 504, a second data acquisition unit 505, and a communication channel switching unit 506.
[0042] Preferably, the first judgment unit 501 is configured to judge whether the first storage space is empty and obtain a first judgment result.
[0043] Preferably, the parsing unit 502 is configured to parse the first cached data in the first storage space to obtain a parsing result when the first judgment result indicates that the first storage space is not empty.
[0044] Preferably, the first data acquisition unit 503 is configured to send the first cached data in the first storage space to the PV inverter when the parsing result indicates that the first cached data is a control instruction, and send the first response data to the grid acquisition system when the inverter returns the first response data based on the first cached data.
[0045] Preferably, the second judgment unit 504 is configured to judge whether the second storage space is empty to obtain a second judgment result.
[0046] Preferably, the second data acquisition unit 505 is configured to send the second cached data in the second storage space to the PV inverter when the second judgment result indicates that the second storage space is not empty, and send the second response data to the original factory collector when the inverter returns the second response data based on the second cached data.
[0047] Preferably, the communication channel switching unit 506 is configured to switch the communication channel and repeatedly monitor the storage states of the second storage space and the first storage space.
[0048] Preferably, the second data acquisition unit 505 is further configured to: Enter the communication channel switching unit when the second judgment result indicates that the second storage space is empty.
[0049] Preferably, the system further includes: A third judgment unit, configured to judge whether the second storage space is empty to obtain a third judgment result when the parsing result indicates that the first cached data is not a control instruction; The third data acquisition unit is configured to, when the third judgment result indicates that the second storage space is not empty, send the second cached data in the second storage space to the PV inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector; then send the first cached data in the first storage space to the PV inverter, and when the inverter returns first response data based on the first cached data, send the first response data to the grid acquisition system, and enter the communication channel switching unit; and is configured to, when the third judgment result indicates that the second storage space is empty, send the first cached data in the first storage space to the PV inverter, and when the inverter returns first response data based on the first cached data, send the first response data to the grid acquisition system, and enter the communication channel switching unit.
[0050] Preferably, the system further includes: The fourth judgment unit is configured to, when the first judgment result indicates that the first storage space is empty, judge whether the second storage space is empty and obtain a fourth judgment result; The fourth data acquisition unit is configured to, when the fourth judgment result indicates that the second storage space is not empty, send the second cached data in the second storage space to the PV inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector, and enter the communication channel switching unit; and is configured to, when the fourth judgment result indicates that the second storage space is empty, enter the communication channel switching unit.
[0051] Preferably, the system further includes: The cache unit is configured to receive the reading instruction sent by the original factory collector and cache it in the second storage space; receive the reading instruction and control instruction sent by the grid acquisition system, and after protocol conversion, cache them in the first storage space.
[0052] Preferably, the system further includes: The instruction processing unit is configured to identify the control instruction sent by a non-grid acquisition system, and generate a non-grid acquisition system regulation and inversion event or directly filter out the control instruction sent by the non-grid acquisition system.
[0053] The data acquisition system 500 of the PV inverter in the embodiment of the present invention corresponds to the data acquisition method 100 of the PV inverter in another embodiment of the present invention, and will not be elaborated herein.
[0054] Based on another aspect of the present invention, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the steps of any one of the data acquisition methods of a PV inverter.
[0055] Based on another aspect of the present invention, the present invention provides an electronic device, comprising: The above-mentioned computer-readable storage medium; and One or more processors for executing the program in the computer-readable storage medium.
[0056] The present invention has been described by referring to a few embodiments. However, as is well known to those skilled in the art, other embodiments equivalent to those disclosed above of the present invention equally fall within the scope of the present invention.
[0057] Generally, all terms used in the present invention are interpreted according to their ordinary meanings in the technical field, unless otherwise explicitly defined therein. All references to "a / the [device, component, etc.]" are to be interpreted openly as at least one instance of the device, component, etc., unless otherwise explicitly stated. The steps of any method disclosed herein need not be run in the exact order disclosed, unless explicitly stated.
[0058] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
[0059] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices produce means for realizing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0060] These computer program instructions can also be stored in a computer-readable memory capable of guiding a computer or other programmable data processing devices to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including instruction means, the instruction means realizing the functions specified in Figure 1 one flow or multiple flows and / or blocksFigure 1 The functions specified in one or more boxes.
[0061] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide for implementing the steps of the functions specified in one or more processes and / or boxes Figure 1 One process or more processes and / or boxes Figure 1 The steps of the functions specified in one or more boxes.
[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the specific implementation manners of the present invention can still be modified or equivalently replaced, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the protection scope of the present invention.
Claims
1. A data acquisition method for a photovoltaic inverter, characterized in that, The method includes: Step 1, determine whether the first storage space is empty, and obtain a first determination result; Step 2, when the first determination result indicates that the first storage space is not empty, parse the first cached data in the first storage space to obtain a parsing result; Step 3, when the parsing result indicates that the first cached data is a control instruction, send the first cached data in the first storage space to the PV inverter, and when the inverter returns first response data based on the first cached data, send the first response data to the grid acquisition system; Step 4, determine whether the second storage space is empty, and obtain a second determination result; Step 5, when the second determination result indicates that the second storage space is not empty, send the second cached data in the second storage space to the PV inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector; Step 6, switch the communication channel, repeatedly monitor the storage status of the second storage space and the first storage space, and return to Step 1.
2. The method according to claim 1, wherein The method further includes: When the second determination result indicates that the second storage space is empty, enter Step 6.
3. The method according to claim 1, characterized in that, The method further includes: When the parsing result indicates that the first cached data is not a control instruction, determine whether the second storage space is empty, and obtain a third determination result; When the third determination result indicates that the second storage space is not empty, send the second cached data in the second storage space to the PV inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector; then send the first cached data in the first storage space to the PV inverter, and when the inverter returns first response data based on the first cached data, send the first response data to the grid acquisition system, and enter Step 6; When the third determination result indicates that the second storage space is empty, send the first cached data in the first storage space to the PV inverter, and when the inverter returns first response data based on the first cached data, send the first response data to the grid acquisition system, and enter Step 6.
4. The method according to claim 1, wherein The method further includes: When the first determination result indicates that the first storage space is empty, determine whether the second storage space is empty, and obtain a fourth determination result; When the fourth determination result indicates that the second storage space is not empty, send the second cached data in the second storage space to the PV inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector, and enter Step 6; When the fourth determination result indicates that the second storage space is empty, enter Step 6.
5. The method according to claim 1, wherein The method further includes: Receive the reading instruction sent by the original factory collector and cache it in the second storage space; receive the reading instruction and control instruction sent by the grid acquisition system, and after protocol conversion, cache them in the first storage space.
6. The method according to claim 5, characterized in that, The method further includes: Identify the control instructions sent by the non-grid acquisition system, generate non-grid acquisition system regulation and inversion events, or directly filter out the control instructions sent by the non-grid acquisition system.
7. A data acquisition system for a photovoltaic inverter, characterized in that, The system includes: A first judgment unit for judging whether the first storage space is empty and obtaining a first judgment result; An analysis unit for analyzing the first cached data in the first storage space when the first judgment result indicates that the first storage space is not empty, and obtaining an analysis result; A first data acquisition unit for sending the first cached data in the first storage space to the PV inverter when the analysis result indicates that the first cached data is a control instruction, and sending the first response data to the grid acquisition system when the inverter returns the first response data based on the first cached data; A second judgment unit for judging whether the second storage space is empty and obtaining a second judgment result; A second data acquisition unit for sending the second cached data in the second storage space to the PV inverter when the second judgment result indicates that the second storage space is not empty, and sending the second response data to the original factory collector when the inverter returns the second response data based on the second cached data; A communication channel switching unit for communication channel switching and repeatedly monitoring the storage status of the second storage space and the first storage space.
8. The system according to claim 7, characterized in that, The second data acquisition unit is further configured to: Enter the communication channel switching unit when the second judgment result indicates that the second storage space is empty.
9. The system according to claim 7, wherein The system further includes: A third judgment unit for judging whether the second storage space is empty and obtaining a third judgment result when the analysis result indicates that the first cached data is not a control instruction; A third data acquisition unit for sending the second cached data in the second storage space to the PV inverter when the third judgment result indicates that the second storage space is not empty, and sending the second response data to the original factory collector when the inverter returns the second response data based on the second cached data; then sending the first cached data in the first storage space to the PV inverter, and sending the first response data to the grid acquisition system when the inverter returns the first response data based on the first cached data, and entering the communication channel switching unit; for sending the first cached data in the first storage space to the PV inverter when the third judgment result indicates that the second storage space is empty, and sending the first response data to the grid acquisition system when the inverter returns the first response data based on the first cached data, and entering the communication channel switching unit.
10. The system according to claim 7, wherein The system further includes: A fourth judgment unit for judging whether the second storage space is empty and obtaining a fourth judgment result when the first judgment result indicates that the first storage space is empty; The fourth data acquisition unit is configured to, when the fourth judgment result indicates that the second storage space is not empty, send the second cached data in the second storage space to the PV inverter, and when the inverter returns second response data based on the second cached data, send the second response data to the original factory collector and enter the communication channel switching unit; and is configured to enter the communication channel switching unit when the fourth judgment result indicates that the second storage space is empty.
11. The system according to claim 7, wherein The system further includes: A cache unit, configured to receive the reading instruction sent by the original factory collector and cache it in the second storage space; receive the reading instruction and control instruction sent by the power grid acquisition system, and after protocol conversion, cache them in the first storage space.
12. The system according to claim 11, wherein The system further includes: An instruction processing unit, configured to identify the control instruction sent by a non-power grid acquisition system, and generate a non-power grid acquisition system regulation and inversion event or directly filter out the control instruction sent by the non-power grid acquisition system.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1-6.
14. An electronic device, characterized in that, Including: The computer-readable storage medium described in claim 13; And one or more processors for executing the program in the computer-readable storage medium.
Citation Information
Patent Citations
Power grid data acquisition control system capable of preventing data loss
CN118677101A
Electric power data acquisition system and channel switching method and data acquisition method thereof
CN118868402A
Dual CPU inverter system and method for the same
US20080201569A1