WO2022236809A1 - Data collection system and method, electronic device, and storage medium - Google Patents

Data collection system and method, electronic device, and storage medium Download PDF

Info

Publication number
WO2022236809A1
WO2022236809A1 PCT/CN2021/093831 CN2021093831W WO2022236809A1 WO 2022236809 A1 WO2022236809 A1 WO 2022236809A1 CN 2021093831 W CN2021093831 W CN 2021093831W WO 2022236809 A1 WO2022236809 A1 WO 2022236809A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
power station
photovoltaic power
data
data information
Prior art date
Application number
PCT/CN2021/093831
Other languages
French (fr)
Chinese (zh)
Inventor
陶爽
刘鹏
武超
连家玮
姜文轩
魏代海
Original Assignee
华北电力大学扬中智能电气研究中心
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华北电力大学扬中智能电气研究中心 filed Critical 华北电力大学扬中智能电气研究中心
Priority to PCT/CN2021/093831 priority Critical patent/WO2022236809A1/en
Publication of WO2022236809A1 publication Critical patent/WO2022236809A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Definitions

  • the present invention relates to the technical field of data collection, in particular to a data collection system, method, electronic equipment and storage medium.
  • the photovoltaic data acquisition system is used to collect the operating data of photovoltaic power stations.
  • the scale and collection volume of traditional photovoltaic data acquisition systems are small, and the scale of photovoltaic power stations is getting larger and larger, especially the development of distributed photovoltaic power stations. faster, and the demand for data acquisition accuracy is getting higher and higher, resulting in an increasing amount of photovoltaic data acquisition.
  • the current photovoltaic data acquisition system is not effective in collecting and storing such a large amount of photovoltaic data.
  • the current photovoltaic data acquisition mostly uses the HTTP protocol for data transmission during the uploading and communication of collected data, resulting in high network overhead, resulting in low data collection efficiency, system instability and low scalability of the photovoltaic data collection system.
  • embodiments of the present invention provide a data collection system, method, electronic equipment, and storage medium.
  • the gateway acquisition module is used to obtain the operation data information of the connected photovoltaic power station, and send the currently acquired operation data information of the photovoltaic power station to the MQTT server;
  • the data statistics module is used to obtain the cached photovoltaic power station operation data information from the REDIS cache according to a preset time period, and perform statistics on the obtained photovoltaic power station operation data information, obtain data statistics information, and store the obtained The data statistics information is sent to the database for storage.
  • the operation data information of the photovoltaic power station includes at least operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station;
  • the front-end server is configured to receive a data query request sent by a client, obtain data satisfying query conditions from the database or REDIS cache, and return the data satisfying query conditions to the client.
  • the data query request when the query condition is to query real-time data, includes the identification information of the target photovoltaic power station and the identification information of the query object, wherein the query object includes the PV nodes and/or inverters in the target PV power plant;
  • the front-end server is specifically configured to acquire the identification information of the target photovoltaic power station and the current real-time operation data information corresponding to the identification information of the query object from the currently cached data in the REDIS cache, and obtain the acquired Current data information is returned to the client.
  • the data query request when the query condition is to query statistical data, includes the identification information of the target photovoltaic power station requested to query, the identification information of the query object, and the start and end time information of the query period, wherein,
  • the query objects include photovoltaic nodes and/or inverters in the target photovoltaic power station;
  • the data storage module is further configured to push the abnormality log information to a corresponding client when it is determined that the operation data information of the photovoltaic power station is abnormal.
  • the client includes a physical sorting interface, a wiring diagram interface and a data statistics interface, wherein:
  • the physical sorting interface is used to display the physical position sorting of each photovoltaic node in the photovoltaic power station managed by the client and the real-time operation data information of each photovoltaic node;
  • the wiring diagram interface is used to display the connection wiring diagram of photovoltaic nodes and inverters in the photovoltaic power station managed by the client;
  • the data statistics interface is used to display the respective data statistics information and operation status information of each photovoltaic node and inverter in the photovoltaic power station managed by the client.
  • the operating data information of the photovoltaic power station includes at least the operating data information of each photovoltaic node in the photovoltaic power station and the inverter operating data information; the operating data information of the photovoltaic power station is collected by the gateway
  • the module is acquired and sent to the MQTT server in the following manner: the gateway acquisition module sends data requests to the photovoltaic node and the inverter respectively in a polling manner, and receives the returned operating data of the photovoltaic node information and the inverter operation data information, data verification is performed on the operation data information of the photovoltaic node and the inverter operation data information respectively, and the operation data information and the inverter operation data information of the photovoltaic node that have passed the verification
  • the operating data information is converted into a preset data format and then sent to the MQTT server.
  • the method further includes:
  • the abnormal log information is pushed to the corresponding client, and the operation data information of the photovoltaic power station includes at least the operation data information and inverse information of each photovoltaic node in the photovoltaic power station.
  • Transformer operating data information When it is determined that there is an abnormality in the operation data of the photovoltaic power station, the abnormal log information is pushed to the corresponding client, and the operation data information of the photovoltaic power station includes at least the operation data information and inverse information of each photovoltaic node in the photovoltaic power station.
  • Transformer operating data information is provided.
  • an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the program when executing the program.
  • the data collection method described in the present invention is not limited to:
  • an embodiment of 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 in the data collection method of the present invention are implemented.
  • the data acquisition system includes at least one gateway acquisition module, MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission) server, at least one data storage module and data statistics module, and the gateway acquisition module obtains the connected photovoltaic power generation station operation data information, and send the currently obtained photovoltaic power station operation data information to the MQTT server.
  • the MQTT server receives the photovoltaic power station operation data information sent by the gateway acquisition module, and distributes the photovoltaic power station operation data information to the corresponding
  • the data storage module, the data storage module that has subscribed to the information of the MQTT server receives the operation data information of the photovoltaic power station sent by the MQTT server.
  • the data storage module When it is determined that the operation data information of the photovoltaic power station is abnormal, the data storage module records the abnormal log information, and sends The abnormal log information is sent to the database for storage. When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the data storage module sends the operation data information of the photovoltaic power station to the REDIS (Remote Dictionary Server, remote dictionary service) cache for caching.
  • the data statistics module obtains temporarily stored photovoltaic power station operating data information from the REDIS cache according to the preset time period, and performs statistics on the obtained photovoltaic power station operating data information, obtains data statistical information, and sends the data statistical information to the database for further processing.
  • Fig. 2 is a schematic flow diagram of the implementation of the data acquisition method implemented on the MQTT server side provided by the embodiment of the present invention
  • FIG. 3 is a schematic diagram of the implementation process of the data collection method implemented on the side of the gateway collection module provided by the embodiment of the present invention.
  • FIG. 4 is a schematic diagram of the implementation flow of the data collection method implemented on the side of the data storage module provided by the embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • Photovoltaic power stations include photovoltaic modules (solar battery modules), inverters, combiner boxes, power distribution cabinets, box transformers and other operating equipment.
  • Photovoltaic modules consist of a certain number of photovoltaic panels (that is, solar cells) in series and parallel.
  • the traditional photovoltaic operation and maintenance system only monitors photovoltaic modules, and does not have the function of monitoring individual photovoltaic panels. If a single photovoltaic panel operates abnormally, it may cause abnormalities in the entire photovoltaic module. It is often difficult for professional users to find the point of failure.
  • the scale and amount of collection of traditional photovoltaic data collection systems are small, and the scale of photovoltaic power stations is getting larger and larger, especially the development of distributed photovoltaic power stations is getting faster and faster, and the demand for data collection accuracy is getting higher and higher, resulting in photovoltaic
  • the amount of data collection is also increasing.
  • the current photovoltaic data collection system is not effective in collecting and storing such a large amount of photovoltaic data, and cannot concurrently process massive data, which indirectly affects the development of photovoltaic systems.
  • the current photovoltaic data acquisition system mostly uses the HTTP protocol for data transmission in the process of uploading and communicating collected data. Re-establishing an HTTP connection for each new request message will lead to high network overhead, resulting in the failure of the photovoltaic data acquisition system.
  • the data collection efficiency is low, the system is unstable and the scalability is not high.
  • embodiments of the present invention provide a data acquisition system, method, electronic equipment, and storage medium.
  • the data collection system includes at least one gateway collection module 11, MQTT server 12, at least one data storage module 13 and data statistics module 14, each The gateway acquisition module 11 can be connected to a photovoltaic power station through a network, wherein:
  • the gateway acquisition module 11 is used to acquire the operating data information of the connected photovoltaic power station, and send the currently acquired operating data information of the photovoltaic power station to the MQTT server.
  • the operation data information of the photovoltaic power station may include, but is not limited to, the operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station, where each photovoltaic node is the composition of the photovoltaic modules in the photovoltaic power station
  • the operating data information of the photovoltaic node may include, but is not limited to: information such as temperature, voltage, current, and signal strength of the photovoltaic panel
  • the operating data information of the inverter may include, but is not limited to: the input power of the inverter, Inverter efficiency, active power, insulation resistance value, cumulative power generation and other information.
  • the operating data information of the photovoltaic power station may also include the operating data information of other operating equipment in the photovoltaic power station, such as combiner boxes, power distribution cabinets, box transformers, etc. This is not limited by the embodiment of the present invention.
  • the operation data information of each photovoltaic node and the inverter operation data information are taken as examples for illustration.
  • Each gateway acquisition module 11 and each photovoltaic node in the corresponding photovoltaic power station can collect the operation data information of each photovoltaic node through the wireless module, and can collect the inverter operation data information through 485 wired transmission.
  • Each gateway acquisition module 11 is specifically used to send data requests to the photovoltaic nodes and inverters in the corresponding photovoltaic power station in a polling manner, and receive the returned operating data information of photovoltaic nodes and inverter operating data information, Perform data verification on the operating data information of the photovoltaic node and the inverter operating data information, and convert the operating data information of the photovoltaic node and the inverter operating data information that have passed the verification into a preset data format and send it to the MQTT server 12 .
  • the gateway acquisition module 11 polls and sends data requests to the photovoltaic nodes in the photovoltaic power station connected to it in a cyclic manner. After the photovoltaic node receives the data request, it returns the operating data of the current photovoltaic node to the gateway acquisition module 11. information, after the gateway acquisition module 11 receives the operating data information of the current photovoltaic node returned by the photovoltaic node, it performs data verification on the operating data information of the photovoltaic current photovoltaic node, such as CRC verification, and when the verification is passed, the current photovoltaic node The operating data information of the photovoltaic node is converted into JSON format and sent to the MQTT server 12 through the network port.
  • the gateway collection module 11 polls and sends data requests to the inverters in the photovoltaic power stations connected to it in a cyclic manner. After receiving the data requests, the inverter returns the current inverter running status Data information, after the gateway acquisition module 11 receives the current inverter operation data information returned by the inverter, it performs data verification on the current inverter operation data information, such as CRC verification, and when the verification is passed, the current inverter operation data information is verified. The inverter operation data information is converted into JSON format and sent to the MQTT server 12 through the network port. If the verification fails, the inverter operation data information is discarded.
  • the MQTT protocol is a publish/subscribe message protocol designed for remote devices with low hardware performance and poor network quality. Due to the complex operating environment of photovoltaic power stations, the MQTT protocol is suitable as a reporting protocol for collecting operating data of photovoltaic power stations, and , the system and the gateway acquisition module 11 do not need to formulate complex protocols, the transmitted data is more intuitive, and the coupling degree is lower.
  • the MQTT server 12 is used to receive the operation data information of the photovoltaic power station, and distribute the operation data information of the photovoltaic power station to corresponding data storage modules according to the subscription information.
  • each data storage module 13 subscribes to the MQTT server 12, and each data storage module 13 can subscribe to the same topic to the MQTT server 12 to obtain the photovoltaic power station operation data information.
  • the MQTT server 12 can send the operation data information of different photovoltaic nodes and the inverter operation data information to different data storage modules 13 in parallel when the MQTT server 12 sends the operation data information of the photovoltaic power station, so as to ensure sufficient Storage space, and improve the efficiency of data transmission.
  • Data storage module 13 is used for subscribing to MQTT server 12, receives the photovoltaic power station operation data information that MQTT server 12 sends; When determining that there is abnormality in photovoltaic power station operation data information, then record abnormal log information, and abnormal log information is sent to The database is stored; when it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station is sent to the REDIS cache for caching.
  • the data storage module 13 After the data storage module 13 receives the operating data information of the photovoltaic node and the inverter operating data information in the JSON format sent by the MQTT server 12, it parses the operating data information and the inverter operating data information of the photovoltaic nodes in the JSON format , respectively judge whether there is any abnormality in the operating data information of the photovoltaic node and the inverter operating data information, if there is an abnormality, record the corresponding abnormal log information, and persist the abnormal log information into the database, if there is no abnormality, save the photovoltaic node Node operating data information and inverter operating data information are sent to the REDIS cache for caching, that is, real-time photovoltaic node operating data information and real-time inverter operating data information are temporarily stored in the REDIS cache, so that when When users query the implementation and operation data information of photovoltaic nodes and inverters through the client, they can be obtained directly from the REDIS cache, which improves the efficiency of data acquisition and eases
  • the data storage module 13 is further configured to push the abnormality log information to the corresponding client when it is determined that there is an abnormality in the operation data information of the photovoltaic power station.
  • the data storage module 13 can start the abnormal push service, and the abnormal data information can be pushed to the corresponding client in the form of a short message to remind the user ( Such as operation and maintenance personnel), and record the corresponding exception log information, and persist the exception log information into the database.
  • single-board monitoring is performed on each photovoltaic panel in the photovoltaic power station to accurately locate the fault point.
  • the operation and maintenance personnel can accurately locate the fault occurrence point through the front-end web page of the client, improving Improve operation and maintenance efficiency and reduce security risks.
  • the data statistics module 14 is used to obtain the cached photovoltaic power station operation data information from the REDIS cache according to the preset time period, and perform statistics on the obtained photovoltaic power station operation data information, obtain data statistics information, and send the data statistics information to the database for storage.
  • the data statistics module 14 can create a timed task in advance, and execute regularly according to the preset time period to obtain the current buffered photovoltaic power plant operating data from the REDIS cache.
  • the preset time period can be set to 1 hour, 1 day, or 1 week. Or 1 month, which is not limited in this embodiment of the present invention.
  • the data statistics module 14 performs statistics on the obtained operating data of the photovoltaic power station in the current period (that is, within one hour), and obtains the corresponding photovoltaic node and/or inverter Data statistics information of each inverter in the current statistical period, and persist the obtained data statistics information of photovoltaic nodes and/or inverters in the current period into the database for storage, where the data statistics information of photovoltaic nodes is taken as an example , may include, but is not limited to: the highest temperature information, the lowest temperature information, the average temperature information, the highest voltage information, the lowest voltage information, the highest current information, the lowest current information, and the highest signal strength for each photovoltaic node acquired in the current period information, minimum signal strength information and
  • the data acquisition system may also include a front-end server, wherein:
  • the front-end server is configured to receive the data query request sent by the client, obtain data satisfying the query condition from the database or REDIS cache, and return the data satisfying the query condition to the client.
  • the query condition can be to query real-time data, and can also be to query statistical data.
  • the data query request includes the identification information of the target photovoltaic power station and the identification information of the query object
  • the query object includes photovoltaic nodes and/or inverters in the target photovoltaic power station
  • the identifier of the photovoltaic node may be the physical address of the photovoltaic node
  • the identifier of the inverter may be the physical address of the inverter.
  • the front-end server is specifically used to obtain the identification information of the target photovoltaic power station and the current real-time operation data information corresponding to the identification information of the query object from the currently cached data in the REDIS cache, and will obtain the current Data information is returned to the client.
  • the data query request includes the identification information of the target photovoltaic power station that requests the query, the identification information of the query object, and the start and end time information of the query period, wherein the query object includes the target photovoltaic power station.
  • PV nodes and/or inverters are examples of the target photovoltaic power station that requests the query, the identification information of the query object, and the start and end time information of the query period, wherein the query object includes the target photovoltaic power station.
  • the front-end server is specifically used to obtain the identification information of the target photovoltaic power station and the data statistical information corresponding to the identification information of the query object in the query period from the database, and return the obtained data statistical information to the client.
  • the user wants to view the current operating data information of the photovoltaic power station
  • he can send a data query request for real-time data to the front-end server through the client, and the front-end server can directly obtain the current operating data of the photovoltaic power station from the REDIS cache.
  • Operational data information improves the efficiency of data acquisition.
  • the client can send a data query request for statistical data to the front-end server, and the front-end server can directly obtain the current operating data information of the photovoltaic power station from the database.
  • the front-end server can obtain the requested data from the REDIS cache and the database in parallel, further improving the efficiency of data acquisition.
  • the front-end webpage interface in the client may include a physical sorting interface, a wiring diagram interface and a data statistics interface, wherein:
  • the physical sorting interface is used to display the physical position sorting of each photovoltaic node in the photovoltaic power station managed by the client and the real-time operation data information of each photovoltaic node.
  • the wiring diagram interface is used to display the connection wiring diagram of photovoltaic nodes and inverters in the photovoltaic power station managed by the client.
  • the wiring diagram interface can quickly locate which inverter the photovoltaic node is connected to and which photovoltaic component of the inverter the photovoltaic node is located in, so that users can view it more intuitively.
  • the data statistics interface is used to display the respective data statistics and operating status information of each photovoltaic node and inverter in the photovoltaic power station managed by the client.
  • the data acquisition system includes at least one gateway acquisition module, MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission) server, at least one data storage module and data statistics module, and the gateway acquisition module obtains the connected photovoltaic power generation station operation data information, and send the currently obtained photovoltaic power station operation data information to the MQTT server.
  • the MQTT server receives the photovoltaic power station operation data information sent by the gateway acquisition module, and distributes the photovoltaic power station operation data information to the corresponding
  • the data storage module, the data storage module that has subscribed to the information of the MQTT server receives the operation data information of the photovoltaic power station sent by the MQTT server.
  • the data storage module When it is determined that the operation data information of the photovoltaic power station is abnormal, the data storage module records the abnormal log information, and sends The abnormal log information is sent to the database for storage. When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the data storage module sends the operation data information of the photovoltaic power station to the REDIS (Remote Dictionary Server, remote dictionary service) cache for caching.
  • the data statistics module obtains temporarily stored photovoltaic power station operating data information from the REDIS cache according to the preset time period, and performs statistics on the obtained photovoltaic power station operating data information, obtains data statistical information, and sends the data statistical information to the database for further processing.
  • the data acquisition system adopts a multi-level distributed architecture.
  • the gateway module can be used to collect different photovoltaic power station operating data.
  • the data upload adopts the lightweight MQTT communication protocol to ensure The high availability of the data acquisition system improves the efficiency of data acquisition. Since the system function modules are distributed, the coupling degree of the system is reduced.
  • the distributed architecture can redundant the system to eliminate single point failures.
  • the system has high reliability and the system The availability and scalability are higher, and the operation speed is faster.
  • the normal operation data information of the photovoltaic power station is temporarily stored in the REDIS cache, so that users can obtain real-time relevant data of the photovoltaic power station and other services to facilitate the operation of the photovoltaic power station.
  • the statistics of operation data, the abnormal log information and data statistics information are persisted in the database, and the remote monitoring of the photovoltaic power station is convenient for users to grasp the key equipment of the photovoltaic power station and the overall operation status and information of the power station.
  • the embodiment of the present invention also provides a data collection method, which is applied to the above-mentioned data collection system provided by the embodiment of the present invention and implemented on the MQTT server side. Because the above-mentioned data collection method solves the problem and the data collection system Similar, therefore, the implementation of the above method can refer to the implementation of the system, and the repetition will not be repeated.
  • FIG. 2 it is a schematic diagram of the implementation process of the data collection method implemented on the MQTT server side provided by the embodiment of the present invention, and may include the following steps:
  • the MQTT server receives the photovoltaic power station operation data information sent by the gateway collection module, and the photovoltaic power station operation data information is obtained by the gateway collection module from the connected photovoltaic power station.
  • the MQTT server distributes the operating data information of the photovoltaic power station to the corresponding data storage module according to the subscription information, so that when the data storage module determines that there is an abnormality in the operating data information of the photovoltaic power station, it will record the abnormality Log information, and send the abnormal log information to the database for storage, when it is determined that there is no abnormality in the operation data information of the photovoltaic power station, then send the operation data information of the photovoltaic power station to the REDIS cache for caching, so that
  • the data statistics module obtains the cached photovoltaic power station operation data information from the REDIS cache according to the preset time period, and performs statistics on the obtained photovoltaic power station operation data information, obtains data statistics information, and sends the data statistics information to to the database for storage.
  • the operating data information of the photovoltaic power station includes at least the operating data information of each photovoltaic node in the photovoltaic power station and the inverter operating data information; the operating data information of the photovoltaic power station is collected by the gateway
  • the module is acquired and sent to the MQTT server in the following manner: the gateway acquisition module sends data requests to the photovoltaic node and the inverter respectively in a polling manner, and receives the returned operating data of the photovoltaic node information and the inverter operation data information, data verification is performed on the operation data information of the photovoltaic node and the inverter operation data information respectively, and the operation data information and the inverter operation data information of the photovoltaic node that have passed the verification
  • the operating data information is converted into a preset data format and then sent to the MQTT server.
  • the embodiment of the present invention also provides a data collection method, which is applied to the above-mentioned data collection system provided by the embodiment of the present invention and implemented in the gateway collection module. Because the above-mentioned data collection method solves the problem and the data collection system Similar, therefore, the implementation of the above method can refer to the implementation of the system, and the repetition will not be repeated.
  • FIG. 3 it is a schematic diagram of the implementation process of the data acquisition method implemented on the gateway acquisition module side provided by the embodiment of the present invention, and may include the following steps:
  • the gateway acquisition module acquires the operation data information of the connected photovoltaic power station.
  • the gateway collection module sends the currently acquired operating data information of the photovoltaic power station to the MQTT server, so that the MQTT server distributes the operating data information of the photovoltaic power station to the corresponding data storage module according to the subscription information
  • the data storage module determines that the operation data information of the photovoltaic power station is abnormal, it records the abnormal log information, and sends the abnormal log information to the database for storage, and when it determines that the operation data information of the photovoltaic power station
  • the operating data information of the photovoltaic power station is sent to the REDIS cache for caching, so that the data statistics module obtains the cached photovoltaic power station operating data information from the REDIS cache according to a preset time period, and The acquired operational data information of the photovoltaic power station is counted to obtain data statistical information, and the data statistical information is sent to the database for storage.
  • the operating data information of the photovoltaic power station includes at least the operating data information and inverter operating data information of each photovoltaic node in the photovoltaic power station;
  • Obtain the operation data information of the connected photovoltaic power station including:
  • the operation data information of the photovoltaic node and the inverter operation data information that have passed the verification are converted into a preset data format and then sent to the MQTT server.
  • the embodiment of the present invention also provides a data collection method, which is applied to the above-mentioned data collection system provided by the embodiment of the present invention and implemented in the data storage module. Similar, therefore, the implementation of the above method can refer to the implementation of the system, and the repetition will not be repeated.
  • FIG. 4 it is a schematic diagram of the implementation process of the data collection method implemented on the side of the data storage module provided by the embodiment of the present invention, and may include the following steps:
  • the data storage module receives the operation data information of the photovoltaic power station sent by the subscribed MQTT server.
  • the operation data information of the photovoltaic power station is obtained by the gateway collection module from the connected photovoltaic power station and sent to the MQTT server, and the MQTT server distributes it to the data storage module according to the subscription information.
  • step S42 Determine whether the operation data information of the photovoltaic power station is abnormal. When it is determined that the operation data information of the photovoltaic power station is abnormal, perform step S43. When it is determined that the operation data information of the photovoltaic power station is not abnormal, then Execute step S44.
  • the data storage module determines that there is no abnormality in the operation data information of the photovoltaic power station, it will send the operation data information of the photovoltaic power station to the REDIS cache for caching, so that the data statistics module will start from
  • the cached photovoltaic power station operation data information is obtained from the REDIS cache, and the obtained photovoltaic power station operation data information is counted to obtain data statistics information, and the data statistics information is sent to the database for storage.
  • the data collection method further includes:
  • the abnormal log information is pushed to the corresponding client, and the operation data information of the photovoltaic power station includes at least the operation data information and inverse information of each photovoltaic node in the photovoltaic power station.
  • Transformer operating data information When it is determined that there is an abnormality in the operation data of the photovoltaic power station, the abnormal log information is pushed to the corresponding client, and the operation data information of the photovoltaic power station includes at least the operation data information and inverse information of each photovoltaic node in the photovoltaic power station.
  • Transformer operating data information is provided.
  • an embodiment of the present invention also provides an electronic device 500.
  • the electronic device 500 is used to implement the data collection method described in the above method embodiment.
  • the electronic device 500 in this embodiment may include: A memory 501, a processor 502, and a computer program stored in the memory and operable on the processor, such as a data collection program.
  • the processor executes the computer program, the steps in the above embodiments of the data collection method are implemented, for example, step S21 shown in FIG. 2 .
  • the specific connection medium between the memory 501 and the processor 502 is not limited in this embodiment of the present invention.
  • the memory 501 and the processor 502 are connected through the bus 503.
  • the bus 503 is represented by a thick line in FIG. As far as possible.
  • the bus 503 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 5 , but it does not mean that there is only one bus or one type of bus.
  • the memory 501 can be a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 501 can also be a non-volatile memory (non-volatile memory), such as a read-only memory, flash memory A memory (flash memory), a hard disk (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD), or the memory 501 can be used to carry or store desired program codes in the form of instructions or data structures and can be controlled by Any other medium accessed by a computer, but not limited to.
  • the memory 501 may be a combination of the above-mentioned memories.
  • the processor 502 is configured to implement the data collection method shown in FIGS. 2-4 .
  • the embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions for executing the above-mentioned processor, and includes a program for executing the above-mentioned processor.
  • various aspects of the data collection method provided by the present invention can also be implemented in the form of a program product, which includes program code.
  • program product runs on an electronic device
  • the program code It is used to make the electronic device execute the steps in the data collection method according to various exemplary embodiments of the present invention described above in this specification.
  • the embodiments of the present invention may be provided as a system, method, or computer program product. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Abstract

A data collection system and method, an electronic device, and a storage medium. The system comprises gateway collection modules (11), an MQTT server (12), data storage modules (13), and a data statistics module (14). The gateway collection modules (11) are used for obtaining operation data information of photovoltaic power stations connected thereto and sending the operation data information to the MQTT server (12). The MQTT server (12) is used for receiving the operation data information of the photovoltaic power stations and distributing the operation data information to the corresponding data storage modules (13). The data storage modules (13) are used for receiving the operation data information of the photovoltaic power stations sent from the MQTT server (12), and if the operation data information is abnormal, recording anomaly log information and sending the anomaly log information to a database, or if the operation data information is normal, sending the operation data information of the photovoltaic power stations to a REDIS cache for caching. The data statistics module (14) is used for regularly obtaining from the REDIS cache the cached operation data information of the photovoltaic power stations and collecting statistics to obtain data statistics information, and sending the data statistics information to the database.

Description

一种数据采集系统、方法、电子设备及存储介质A data acquisition system, method, electronic device and storage medium 技术领域technical field
本发明涉及数据采集技术领域,尤其涉及一种数据采集系统、方法、电子设备及存储介质。The present invention relates to the technical field of data collection, in particular to a data collection system, method, electronic equipment and storage medium.
背景技术Background technique
光伏数据采集系统用于采集光伏发电站的运行数据,然而传统的光伏数据采集系统的规模和采集量较小,光伏发电站的规模越来越大,尤其是分布式光伏发电站的发展越来越快,并且数据采集精度需求越来越高,导致光伏数据采集量也越来越多,目前的光伏数据采集系统对如此海量的光伏数据采集及存储效果不佳,而且,目前的光伏数据采集系统在采集数据的上传及通信过程中大多采用HTTP协议进行数据传输,导致网络开销较高,从而导致光伏数据采集系统的数据采集效率较低、系统不稳定以及拓展性不高。The photovoltaic data acquisition system is used to collect the operating data of photovoltaic power stations. However, the scale and collection volume of traditional photovoltaic data acquisition systems are small, and the scale of photovoltaic power stations is getting larger and larger, especially the development of distributed photovoltaic power stations. faster, and the demand for data acquisition accuracy is getting higher and higher, resulting in an increasing amount of photovoltaic data acquisition. The current photovoltaic data acquisition system is not effective in collecting and storing such a large amount of photovoltaic data. Moreover, the current photovoltaic data acquisition The system mostly uses the HTTP protocol for data transmission during the uploading and communication of collected data, resulting in high network overhead, resulting in low data collection efficiency, system instability and low scalability of the photovoltaic data collection system.
发明内容Contents of the invention
为了解决现有的光伏数据采集系统的数据采集效率较低、系统不稳定以及拓展性不高的问题,本发明实施例提供了一种数据采集系统、方法、电子设备及存储介质。In order to solve the problems of low data collection efficiency, system instability and low scalability of existing photovoltaic data collection systems, embodiments of the present invention provide a data collection system, method, electronic equipment, and storage medium.
第一方面,本发明实施例提供了一种数据采集系统,包括至少一个网关采集模块、消息队列遥测传输MQTT服务器、至少一个数据存储模块和数据统计模块,其中:In the first aspect, an embodiment of the present invention provides a data collection system, including at least one gateway collection module, a message queue telemetry transmission MQTT server, at least one data storage module and a data statistics module, wherein:
所述网关采集模块,用于获取连接的光伏发电站运行数据信息,将当前获取的所述光伏发电站运行数据信息发送至所述MQTT服务器;The gateway acquisition module is used to obtain the operation data information of the connected photovoltaic power station, and send the currently acquired operation data information of the photovoltaic power station to the MQTT server;
所述MQTT服务器,用于接收所述光伏发电站运行数据信息,根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块;The MQTT server is used to receive the operation data information of the photovoltaic power station, and distribute the operation data information of the photovoltaic power station to the corresponding data storage module according to the subscription information;
所述数据存储模块,用于订阅所述MQTT服务器,接收所述MQTT服务器发送的所述光伏发电站运行数据信息;当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储;当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存;The data storage module is configured to subscribe to the MQTT server, receive the operation data information of the photovoltaic power station sent by the MQTT server; when it is determined that the operation data information of the photovoltaic power station is abnormal, record the abnormal log information, And the abnormal log information is sent to the database for storage; when it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station is sent to the remote dictionary service REDIS cache for caching;
所述数据统计模块,用于按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。The data statistics module is used to obtain the cached photovoltaic power station operation data information from the REDIS cache according to a preset time period, and perform statistics on the obtained photovoltaic power station operation data information, obtain data statistics information, and store the obtained The data statistics information is sent to the database for storage.
一种实施方式中,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息;In one embodiment, the operation data information of the photovoltaic power station includes at least operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station;
所述网关采集模块,具体用于采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求,接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息,对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验,将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。The gateway collection module is specifically configured to send data requests to the photovoltaic node and the inverter respectively in a polling manner, and receive the returned operation data information of the photovoltaic node and the inverter operation data information, Carry out data verification on the operation data information of the photovoltaic node and the operation data information of the inverter respectively, convert the operation data information of the photovoltaic node and the operation data information of the inverter that have passed the verification into a preset data format and send it to the MQTT server.
一种实施方式中,所述系统还包括前端服务器;In one embodiment, the system further includes a front-end server;
所述前端服务器,用于接收客户端发送的数据查询请求,从所述数据库或者REDIS缓存中获取满足查询条件的数据,将所述满足查询条件的数据返回至所述客户端。The front-end server is configured to receive a data query request sent by a client, obtain data satisfying query conditions from the database or REDIS cache, and return the data satisfying query conditions to the client.
一种实施方式中,当所述查询条件为查询实时数据时,所述数据查询请求中包含请求查询的目标光伏发电站的标识信息以及查询对象的标识信息,其中,所述查询对象包括所述目标光伏发电站中的光伏节点和/或逆变器;In one embodiment, when the query condition is to query real-time data, the data query request includes the identification information of the target photovoltaic power station and the identification information of the query object, wherein the query object includes the PV nodes and/or inverters in the target PV power plant;
所述前端服务器,具体用于从所述REDIS缓存当前缓存的数据中获取所述目标光伏发电站的标识信息和所述查询对象的标识信息对应的当前实时运行数据信息,并将获取的所述当前数据信息返回至所述客户端。The front-end server is specifically configured to acquire the identification information of the target photovoltaic power station and the current real-time operation data information corresponding to the identification information of the query object from the currently cached data in the REDIS cache, and obtain the acquired Current data information is returned to the client.
一种实施方式中,当所述查询条件为查询统计数据时,所述数据查询请求中包含请求查询的目标光伏发电站的标识信息、查询对象的标识信息以及查询时段的起止时间信息,其中,所述查询对象包括所述目标光伏发电站中的光伏节点和/或逆变器;In one embodiment, when the query condition is to query statistical data, the data query request includes the identification information of the target photovoltaic power station requested to query, the identification information of the query object, and the start and end time information of the query period, wherein, The query objects include photovoltaic nodes and/or inverters in the target photovoltaic power station;
所述前端服务器,具体用于从所述数据库获取所述目标光伏发电站的标识信息和所述查询对象的标识信息在所述查询时段对应的数据统计信息,并将获取的所述数据统计信息返回至所述客户端。The front-end server is specifically configured to obtain from the database the identification information of the target photovoltaic power station and the data statistical information corresponding to the identification information of the query object during the query period, and the obtained data statistical information Return to the client.
一种实施方式中,所述数据存储模块,还用于当确定所述光伏发电站运行数据信息存在异常时,将所述异常日志信息推送至对应客户端。In one embodiment, the data storage module is further configured to push the abnormality log information to a corresponding client when it is determined that the operation data information of the photovoltaic power station is abnormal.
一种实施方式中,所述客户端包括物理排序界面、接线图界面和数据统计界面,其中:In one embodiment, the client includes a physical sorting interface, a wiring diagram interface and a data statistics interface, wherein:
所述物理排序界面,用于展示所述客户端管理的光伏发电站中各个光伏节点物理位置排序以及各个光伏节点的实时运行数据信息;The physical sorting interface is used to display the physical position sorting of each photovoltaic node in the photovoltaic power station managed by the client and the real-time operation data information of each photovoltaic node;
所述接线图界面,用于展示所述客户端管理的光伏发电站中光伏节点和逆变器的连接线路图;The wiring diagram interface is used to display the connection wiring diagram of photovoltaic nodes and inverters in the photovoltaic power station managed by the client;
所述数据统计界面,用于展示所述客户端管理的光伏发电站中各个光伏节点和逆变器各自的数据统计信息及运行状态信息。The data statistics interface is used to display the respective data statistics information and operation status information of each photovoltaic node and inverter in the photovoltaic power station managed by the client.
第二方面,本发明实施例提供了一种数据采集方法,包括:In a second aspect, an embodiment of the present invention provides a data collection method, including:
消息队列遥测传输MQTT服务器接收网关采集模块发送的光伏发电站运行数据信息,所述光伏发电站运行数据信息是所述网关采集模块从连接的光伏发电站获取的;The message queue telemetry transmission MQTT server receives the photovoltaic power station operation data information sent by the gateway collection module, and the photovoltaic power station operation data information is obtained by the gateway collection module from the connected photovoltaic power station;
根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块,以使所述数据存储模块当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储,当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存,使得数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。According to the subscription information, the operation data information of the photovoltaic power station is distributed to the corresponding data storage module, so that when the data storage module determines that the operation data information of the photovoltaic power station is abnormal, it will record the abnormal log information and store the The abnormal log information is sent to the database for storage. When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station is sent to the remote dictionary service REDIS cache for caching, so that the data statistics module Obtain the cached photovoltaic power station operating data information from the REDIS cache according to the preset time period, and perform statistics on the obtained photovoltaic power station operating data information to obtain data statistics information, and send the data statistics information to the database for storage.
一种实施方式中,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息;所述光伏发电站运行数据信息是所述网关采集模块通过按照以下方式获取后发送至所述MQTT服务器的:所述网关采集模块采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求,接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息,对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验,将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。In one embodiment, the operating data information of the photovoltaic power station includes at least the operating data information of each photovoltaic node in the photovoltaic power station and the inverter operating data information; the operating data information of the photovoltaic power station is collected by the gateway The module is acquired and sent to the MQTT server in the following manner: the gateway acquisition module sends data requests to the photovoltaic node and the inverter respectively in a polling manner, and receives the returned operating data of the photovoltaic node information and the inverter operation data information, data verification is performed on the operation data information of the photovoltaic node and the inverter operation data information respectively, and the operation data information and the inverter operation data information of the photovoltaic node that have passed the verification The operating data information is converted into a preset data format and then sent to the MQTT server.
第三方面,本发明实施例提供了一种数据采集方法,包括:In a third aspect, an embodiment of the present invention provides a data collection method, including:
网关采集模块获取连接的光伏发电站运行数据信息;The gateway acquisition module obtains the operation data information of the connected photovoltaic power station;
将当前获取的所述光伏发电站运行数据信息发送至消息队列遥测传输MQTT服务器,以使所述MQTT服务器根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块,以使所述数据存储模块当确定所述光 伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储,当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存,使得数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。Send the currently obtained operating data information of the photovoltaic power station to the message queue telemetry transmission MQTT server, so that the MQTT server distributes the operating data information of the photovoltaic power station to the corresponding data storage module according to the subscription information, so that all When the data storage module determines that the operation data information of the photovoltaic power station is abnormal, it records the abnormal log information, and sends the abnormal log information to the database for storage; when it determines that the operation data information of the photovoltaic power station is not abnormal , the operating data information of the photovoltaic power station is sent to the remote dictionary service REDIS cache for caching, so that the data statistics module acquires the cached photovoltaic power station operating data information from the REDIS cache according to the preset time period, and The acquired operational data information of the photovoltaic power station is counted to obtain data statistical information, and the data statistical information is sent to the database for storage.
一种实施方式中,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息;In one embodiment, the operation data information of the photovoltaic power station includes at least operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station;
获取连接的光伏发电站运行数据信息,具体包括:Obtain the operation data information of the connected photovoltaic power station, including:
采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求;sending data requests to the photovoltaic node and the inverter respectively in a polling manner;
接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息;以及receiving the returned operating data information of the photovoltaic node and the inverter operating data information; and
将当前获取的所述光伏发电站运行数据信息发送至MQTT服务器,具体包括:Send the currently obtained operating data information of the photovoltaic power station to the MQTT server, specifically including:
对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验;Carrying out data verification on the operation data information of the photovoltaic node and the operation data information of the inverter respectively;
将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。The operation data information of the photovoltaic node and the inverter operation data information that have passed the verification are converted into a preset data format and then sent to the MQTT server.
第四方面,本发明实施例提供了一种数据采集方法,包括:In a fourth aspect, an embodiment of the present invention provides a data collection method, including:
数据存储模块接收订阅的消息队列遥测传输MQTT服务器发送的光伏发电站运行数据信息,所述光伏发电站运行数据信息是由网关采集模块从连接的光伏发电站获取后发送至所述MQTT服务器,由所述MQTT服务器根据订阅信息分发至所述数据存储模块的;The data storage module receives subscribed message queue telemetry and transmits the operating data information of the photovoltaic power station sent by the MQTT server. The operating data information of the photovoltaic power station is obtained by the gateway collection module from the connected photovoltaic power station and sent to the MQTT server. The MQTT server distributes to the data storage module according to the subscription information;
当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储;When it is determined that the operating data information of the photovoltaic power station is abnormal, record the abnormal log information, and send the abnormal log information to the database for storage;
当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存,以使数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station will be sent to the remote dictionary service REDIS cache for caching, so that the data statistics module can retrieve the information from the REDIS according to the preset time period. The cached photovoltaic power station operation data information is acquired in the cache, and the acquired photovoltaic power station operation data information is counted to obtain data statistics information, and the data statistics information is sent to the database for storage.
一种实施方式中,所述方法,还包括:In one embodiment, the method further includes:
当确定所述光伏发电站运行数据存在异常时,将所述异常日志信息推送至对应客户端,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息。When it is determined that there is an abnormality in the operation data of the photovoltaic power station, the abnormal log information is pushed to the corresponding client, and the operation data information of the photovoltaic power station includes at least the operation data information and inverse information of each photovoltaic node in the photovoltaic power station. Transformer operating data information.
第五方面,本发明实施例提供了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现本发明所述的数据采集方法。In the fifth aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the program when executing the program. The data collection method described in the present invention.
第六方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明所述的数据采集方法中的步骤。In a sixth aspect, an embodiment of 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 in the data collection method of the present invention are implemented.
本发明实施例的有益效果如下:The beneficial effects of the embodiments of the present invention are as follows:
本发明实施例提供的数据采集系统,包括至少一个网关采集模块、MQTT(Message Queuing Telemetry Transport,消息队列遥测传输)服务器、至少一个数据存储模块和数据统计模块,网关采集模块获取其连接的光伏发电站运行数据信息,将当前获取的光伏发电站运行数据信息发送至MQTT服务器,MQTT服务器接收到网关采集模块发送的光伏发电站运行数据信息,根据订阅信息将光伏发电站运行数据信息分发至相应的数据存储模块,订阅了MQTT服务器该信息的数据存储模块接收MQTT服务器发送的所述光伏发电站运行数据信息,当确定光伏发电站运行数据信息存在异常时,数据存储模块记录异常日志信息,并将异常日志信息发送至数据库进行存储,当确定光伏发电站运行数据信息不存在异常时,数据存储模块则将光伏发电站运行数据信息发送至REDIS(Remote Dictionary Server,远程字典服务)缓存中进行缓存,数据统计模块按照预设时间周期从REDIS缓存中获取暂存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将数据统计信息发送至数据库进行存储,相比于传统的单体系统架构各功能模块之间的耦合度较高,单个模块出现故障可能会导致整个系统瘫痪,本发明实施例提供的数据采集系统采用多级分布式架构,不同网关模块可以用于采集不同的光伏发电站运行数据,使用基于MQTT服务器的分布式系统架构可以并行采集、存储及处理海量光伏发电站运行数据,数据的上传采用轻量级MQTT通信协议,保证了数据采集系统的高可用性,提高了数据采集效率,由于系统功能模块是分布式的,降低了系统的耦合度,分布 式架构可以冗余系统以消除单点故障,系统的可靠性高,系统的可用性以及扩展性更高,运行速度更快,而且,将正常的光伏发电站运行数据信息暂存到REDIS缓存中,以方便用户获取实时的光伏发电站相关数据,以及方便其它服务进行光伏发电站运行数据的统计,将异常日志信息以及数据统计信息持久化到数据库中,对光伏发电站远程监测,便于用户掌握光伏发电站关键设备和电站整体运行状态及信息。The data acquisition system provided by the embodiment of the present invention includes at least one gateway acquisition module, MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission) server, at least one data storage module and data statistics module, and the gateway acquisition module obtains the connected photovoltaic power generation station operation data information, and send the currently obtained photovoltaic power station operation data information to the MQTT server. The MQTT server receives the photovoltaic power station operation data information sent by the gateway acquisition module, and distributes the photovoltaic power station operation data information to the corresponding The data storage module, the data storage module that has subscribed to the information of the MQTT server receives the operation data information of the photovoltaic power station sent by the MQTT server. When it is determined that the operation data information of the photovoltaic power station is abnormal, the data storage module records the abnormal log information, and sends The abnormal log information is sent to the database for storage. When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the data storage module sends the operation data information of the photovoltaic power station to the REDIS (Remote Dictionary Server, remote dictionary service) cache for caching. The data statistics module obtains temporarily stored photovoltaic power station operating data information from the REDIS cache according to the preset time period, and performs statistics on the obtained photovoltaic power station operating data information, obtains data statistical information, and sends the data statistical information to the database for further processing. For storage, compared with the traditional single system architecture, the coupling degree between the functional modules is higher, and the failure of a single module may cause the entire system to be paralyzed. The data acquisition system provided by the embodiment of the present invention adopts a multi-level distributed architecture. The gateway module can be used to collect the operating data of different photovoltaic power stations. The distributed system architecture based on MQTT server can collect, store and process massive photovoltaic power station operating data in parallel. The data upload adopts the lightweight MQTT communication protocol to ensure The high availability of the data acquisition system improves the efficiency of data acquisition. Since the system function modules are distributed, the coupling degree of the system is reduced. The distributed architecture can redundant the system to eliminate single point failures. The system has high reliability and the system The availability and scalability are higher, and the operation speed is faster. Moreover, the normal operation data information of the photovoltaic power station is temporarily stored in the REDIS cache, so that users can obtain real-time relevant data of the photovoltaic power station and other services to facilitate the operation of the photovoltaic power station. The statistics of operation data, the abnormal log information and data statistics information are persisted in the database, and the remote monitoring of the photovoltaic power station is convenient for users to grasp the key equipment of the photovoltaic power station and the overall operation status and information of the power station.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute improper limitations to the present invention. In the attached picture:
图1为本发明实施例提供的数据采集系统结构示意图;Fig. 1 is a schematic structural diagram of a data acquisition system provided by an embodiment of the present invention;
图2为本发明实施例提供的MQTT服务器侧实施的数据采集方法的实施流程示意图;Fig. 2 is a schematic flow diagram of the implementation of the data acquisition method implemented on the MQTT server side provided by the embodiment of the present invention;
图3为本发明实施例提供的网关采集模块侧实施的数据采集方法的实施流程示意图;3 is a schematic diagram of the implementation process of the data collection method implemented on the side of the gateway collection module provided by the embodiment of the present invention;
图4为本发明实施例提供的数据存储模块侧实施的数据采集方法的实施流程示意图;FIG. 4 is a schematic diagram of the implementation flow of the data collection method implemented on the side of the data storage module provided by the embodiment of the present invention;
图5为本发明实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
光伏发电站包括光伏组件(即太阳能电池组件)、逆变器、汇流箱、配电柜、箱变等运行设备,光伏组件由一定数量的光伏板(即太阳能电池片)采用串、并联的方式组合而成,现有技术中,传统的光伏运维系统只对光伏组件进行监控,并没有对单个光伏板监控的功能,若单个光伏板运行异常,就可能会导致整个光伏组件出现异常,非专业用户往往难以找到故障点。传统 的光伏数据采集系统的规模和采集量较小,光伏发电站的规模越来越大,尤其是分布式光伏发电站的发展越来越快,并且数据采集精度需求越来越高,导致光伏数据采集量也越来越多,目前的光伏数据采集系统对如此海量的光伏数据采集及存储效果不佳,无法并发处理海量数据,间接影响了光伏系统的发展。而且,目前的光伏数据采集系统在采集数据的上传及通信过程中大多采用HTTP协议进行数据传输,为每个新的请求消息重新建立HTTP连接会导致网络开销较高,从而导致光伏数据采集系统的数据采集效率较低、系统不稳定以及拓展性不高。Photovoltaic power stations include photovoltaic modules (solar battery modules), inverters, combiner boxes, power distribution cabinets, box transformers and other operating equipment. Photovoltaic modules consist of a certain number of photovoltaic panels (that is, solar cells) in series and parallel. In the existing technology, the traditional photovoltaic operation and maintenance system only monitors photovoltaic modules, and does not have the function of monitoring individual photovoltaic panels. If a single photovoltaic panel operates abnormally, it may cause abnormalities in the entire photovoltaic module. It is often difficult for professional users to find the point of failure. The scale and amount of collection of traditional photovoltaic data collection systems are small, and the scale of photovoltaic power stations is getting larger and larger, especially the development of distributed photovoltaic power stations is getting faster and faster, and the demand for data collection accuracy is getting higher and higher, resulting in photovoltaic The amount of data collection is also increasing. The current photovoltaic data collection system is not effective in collecting and storing such a large amount of photovoltaic data, and cannot concurrently process massive data, which indirectly affects the development of photovoltaic systems. Moreover, the current photovoltaic data acquisition system mostly uses the HTTP protocol for data transmission in the process of uploading and communicating collected data. Re-establishing an HTTP connection for each new request message will lead to high network overhead, resulting in the failure of the photovoltaic data acquisition system. The data collection efficiency is low, the system is unstable and the scalability is not high.
为了解决以上问题,本发明实施例提供了一种数据采集系统、方法、电子设备及存储介质。In order to solve the above problems, embodiments of the present invention provide a data acquisition system, method, electronic equipment, and storage medium.
以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明,并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention, and in the absence of conflict, the present invention The embodiments and the features in the embodiments can be combined with each other.
如图1所示,其为本发明实施例提供的数据采集系统的结构示意图,数据采集系统包括至少一个网关采集模块11、MQTT服务器12、至少一个数据存储模块13和数据统计模块14,每一网关采集模块11可以与一个光伏发电站进行网络连接,其中:As shown in Figure 1, it is a schematic structural diagram of the data collection system provided by the embodiment of the present invention, the data collection system includes at least one gateway collection module 11, MQTT server 12, at least one data storage module 13 and data statistics module 14, each The gateway acquisition module 11 can be connected to a photovoltaic power station through a network, wherein:
网关采集模块11,用于获取连接的光伏发电站运行数据信息,将当前获取的光伏发电站运行数据信息发送至MQTT服务器。The gateway acquisition module 11 is used to acquire the operating data information of the connected photovoltaic power station, and send the currently acquired operating data information of the photovoltaic power station to the MQTT server.
具体实施时,光伏发电站运行数据信息可以但不限于包括光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息,其中,各个光伏节点即为所述光伏发电站中组成光伏组件的各个光伏板,光伏节点的运行数据信息可以但不限于包括:光伏板的温度、电压、电流、信号强度等信息,逆变器运行数据信息可以但不限于包括:逆变器的输入功率、逆变器效率、有功功率、绝缘阻抗值、累计发电量等信息。光伏发电站运行数据信息还可以包括光伏发电站中的其它运行设备如汇流箱、配电柜、箱变等设备的运行数据信息,本发明实施例对此不作限定,本发明实施例仅以采集各个光伏节点的运行数据信息和逆变器运行数据信息为例进行说明。During specific implementation, the operation data information of the photovoltaic power station may include, but is not limited to, the operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station, where each photovoltaic node is the composition of the photovoltaic modules in the photovoltaic power station For each photovoltaic panel, the operating data information of the photovoltaic node may include, but is not limited to: information such as temperature, voltage, current, and signal strength of the photovoltaic panel, and the operating data information of the inverter may include, but is not limited to: the input power of the inverter, Inverter efficiency, active power, insulation resistance value, cumulative power generation and other information. The operating data information of the photovoltaic power station may also include the operating data information of other operating equipment in the photovoltaic power station, such as combiner boxes, power distribution cabinets, box transformers, etc. This is not limited by the embodiment of the present invention. The operation data information of each photovoltaic node and the inverter operation data information are taken as examples for illustration.
每一网关采集模块11与其对应的光伏发电站中的各个光伏节点可以通过无线模块采集各个光伏节点的运行数据信息,可以通过485有线传输采集逆变器运行数据信息。Each gateway acquisition module 11 and each photovoltaic node in the corresponding photovoltaic power station can collect the operation data information of each photovoltaic node through the wireless module, and can collect the inverter operation data information through 485 wired transmission.
每一网关采集模块11,具体用于采用轮询方式向对应的光伏发电站中的光伏节点和逆变器分别发送数据请求,接收返回的光伏节点的运行数据信息和逆变器运行数据信息,对光伏节点的运行数据信息和逆变器运行数据信息分别进行数据校验,将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至MQTT服务器12。Each gateway acquisition module 11 is specifically used to send data requests to the photovoltaic nodes and inverters in the corresponding photovoltaic power station in a polling manner, and receive the returned operating data information of photovoltaic nodes and inverter operating data information, Perform data verification on the operating data information of the photovoltaic node and the inverter operating data information, and convert the operating data information of the photovoltaic node and the inverter operating data information that have passed the verification into a preset data format and send it to the MQTT server 12 .
具体地,网关采集模块11向其连接的光伏发电站中的光伏节点以循环发送的方式轮询发送数据请求,光伏节点接收到该数据请求后,向网关采集模块11返回当前光伏节点的运行数据信息,网关采集模块11接收到光伏节点返回的当前光伏节点的运行数据信息后,对光当前伏节点的运行数据信息进行数据校验,如CRC校验,当校验通过后,将当前光伏节点的运行数据信息转换成JSON格式后通过网口发送至MQTT服务器12,如校验失败则丢弃本次光伏节点的运行数据信息。同样地,网关采集模块11向其连接的光伏发电站中的逆变器以循环发送的方式轮询发送数据请求,逆变器接收到数据请求后,向网关采集模块11返回当前逆变器运行数据信息,网关采集模块11接收到逆变器返回的当前逆变器运行数据信息后,对当前逆变器运行数据信息进行数据校验,如CRC校验,当校验通过后,将当前逆变器运行数据信息转换成JSON格式后通过网口发送至MQTT服务器12,如校验失败则丢弃本次逆变器运行数据信息。Specifically, the gateway acquisition module 11 polls and sends data requests to the photovoltaic nodes in the photovoltaic power station connected to it in a cyclic manner. After the photovoltaic node receives the data request, it returns the operating data of the current photovoltaic node to the gateway acquisition module 11. information, after the gateway acquisition module 11 receives the operating data information of the current photovoltaic node returned by the photovoltaic node, it performs data verification on the operating data information of the photovoltaic current photovoltaic node, such as CRC verification, and when the verification is passed, the current photovoltaic node The operating data information of the photovoltaic node is converted into JSON format and sent to the MQTT server 12 through the network port. If the verification fails, the operating data information of the photovoltaic node is discarded. Similarly, the gateway collection module 11 polls and sends data requests to the inverters in the photovoltaic power stations connected to it in a cyclic manner. After receiving the data requests, the inverter returns the current inverter running status Data information, after the gateway acquisition module 11 receives the current inverter operation data information returned by the inverter, it performs data verification on the current inverter operation data information, such as CRC verification, and when the verification is passed, the current inverter operation data information is verified. The inverter operation data information is converted into JSON format and sent to the MQTT server 12 through the network port. If the verification fails, the inverter operation data information is discarded.
MQTT协议是为硬件性能低下的远程设备以及网络质量较差的场景而设计的发布/订阅型消息协议,由于光伏发电站运行环境复杂,MQTT协议适合作为采集光伏发电站运行数据的上报协议,并且,系统及网关采集模块11无需制定复杂的协议,传输的数据更加直观,耦合度更低。The MQTT protocol is a publish/subscribe message protocol designed for remote devices with low hardware performance and poor network quality. Due to the complex operating environment of photovoltaic power stations, the MQTT protocol is suitable as a reporting protocol for collecting operating data of photovoltaic power stations, and , the system and the gateway acquisition module 11 do not need to formulate complex protocols, the transmitted data is more intuitive, and the coupling degree is lower.
MQTT服务器12,用于接收光伏发电站运行数据信息,根据订阅信息将光伏发电站运行数据信息分发至相应的数据存储模块。The MQTT server 12 is used to receive the operation data information of the photovoltaic power station, and distribute the operation data information of the photovoltaic power station to corresponding data storage modules according to the subscription information.
具体实施时,各个数据存储模块13订阅MQTT服务器12,各个数据存储模块13可以向MQTT服务器12订阅相同的主题以获取光伏发电站运行数据信息,当各个数据存储模块13同时向MQTT服务器12订阅光伏发电站运行数据信息时,MQTT服务器12下发光伏发电站运行数据时,可以并行向不同的数据存储模块13发送不同的光伏节点的运行数据信息以及逆变器运行数据信息,从而可保证足够的存储空间,并提高了数据传输效率。During specific implementation, each data storage module 13 subscribes to the MQTT server 12, and each data storage module 13 can subscribe to the same topic to the MQTT server 12 to obtain the photovoltaic power station operation data information. When each data storage module 13 subscribes to the MQTT server 12 at the same time. When the power station operation data information is issued, the MQTT server 12 can send the operation data information of different photovoltaic nodes and the inverter operation data information to different data storage modules 13 in parallel when the MQTT server 12 sends the operation data information of the photovoltaic power station, so as to ensure sufficient Storage space, and improve the efficiency of data transmission.
数据存储模块13,用于订阅MQTT服务器12,接收MQTT服务器12发 送的光伏发电站运行数据信息;当确定光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将异常日志信息发送至数据库进行存储;当确定光伏发电站运行数据信息不存在异常时,则将光伏发电站运行数据信息发送至REDIS缓存中进行缓存。 Data storage module 13, is used for subscribing to MQTT server 12, receives the photovoltaic power station operation data information that MQTT server 12 sends; When determining that there is abnormality in photovoltaic power station operation data information, then record abnormal log information, and abnormal log information is sent to The database is stored; when it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station is sent to the REDIS cache for caching.
具体实施时,数据存储模块13接收到MQTT服务器12发送的JSON格式的光伏节点的运行数据信息和逆变器运行数据信息后,解析JSON格式的光伏节点的运行数据信息和逆变器运行数据信息,分别判断光伏节点的运行数据信息和逆变器运行数据信息是否存在异常,如果存在异常,则记录相应的异常日志信息,将异常日志信息持久化到数据库中,如果不存在异常,则将光伏节点的运行数据信息和逆变器运行数据信息发送至REDIS缓存中进行缓存,也就是说,在REDIS缓存暂存的是实时光伏节点的运行数据信息和实时逆变器运行数据信息,这样,当用户通过客户端查询光伏节点和逆变器的实施运行数据信息时,可以直接从REDIS缓存中获取,提高了数据获取效率,缓解了数据库的数据存储压力。During specific implementation, after the data storage module 13 receives the operating data information of the photovoltaic node and the inverter operating data information in the JSON format sent by the MQTT server 12, it parses the operating data information and the inverter operating data information of the photovoltaic nodes in the JSON format , respectively judge whether there is any abnormality in the operating data information of the photovoltaic node and the inverter operating data information, if there is an abnormality, record the corresponding abnormal log information, and persist the abnormal log information into the database, if there is no abnormality, save the photovoltaic node Node operating data information and inverter operating data information are sent to the REDIS cache for caching, that is, real-time photovoltaic node operating data information and real-time inverter operating data information are temporarily stored in the REDIS cache, so that when When users query the implementation and operation data information of photovoltaic nodes and inverters through the client, they can be obtained directly from the REDIS cache, which improves the efficiency of data acquisition and eases the data storage pressure of the database.
在判断是否存在异常时,以判断光伏节点的运行数据信息中的温度信息是否存在异常为例,将温度信息与预设温度阈值进行比对,如果光伏板的温度超过该温度阈值,则确定光伏节点的温度信息存在异常,如果光伏板的温度不超过该温度阈值,则确定光伏节点的温度信息正常。When judging whether there is an abnormality, take judging whether there is an abnormality in the temperature information in the operating data information of the photovoltaic node as an example, compare the temperature information with the preset temperature threshold, and if the temperature of the photovoltaic panel exceeds the temperature threshold, determine that the photovoltaic The temperature information of the node is abnormal. If the temperature of the photovoltaic panel does not exceed the temperature threshold, it is determined that the temperature information of the photovoltaic node is normal.
在一种实施方式中,数据存储模块13,还用于当确定光伏发电站运行数据信息存在异常时,将异常日志信息推送至对应客户端。In one embodiment, the data storage module 13 is further configured to push the abnormality log information to the corresponding client when it is determined that there is an abnormality in the operation data information of the photovoltaic power station.
具体地,如果光伏节点的运行数据信息或逆变器运行数据信息存在异常,数据存储模块13则可开启异常推送服务,可将异常数据信息以短信的方式推送至对应的客户端以提醒用户(如运维人员),并记录相应的异常日志信息,将异常日志信息持久化到数据库中。Specifically, if there is abnormality in the operation data information of the photovoltaic node or the inverter operation data information, the data storage module 13 can start the abnormal push service, and the abnormal data information can be pushed to the corresponding client in the form of a short message to remind the user ( Such as operation and maintenance personnel), and record the corresponding exception log information, and persist the exception log information into the database.
本发明实施例中,对光伏发电站中每个光伏板进行单板监控,可以精确定位故障点,当光伏板发生异常时,运维人员可以通过客户端前端网页精确定位到故障发生点,提高了运维效率,降低了安全隐患。In the embodiment of the present invention, single-board monitoring is performed on each photovoltaic panel in the photovoltaic power station to accurately locate the fault point. When the photovoltaic panel is abnormal, the operation and maintenance personnel can accurately locate the fault occurrence point through the front-end web page of the client, improving Improve operation and maintenance efficiency and reduce security risks.
数据统计模块14,用于按照预设时间周期从REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将数据统计信息发送至数据库进行存储。The data statistics module 14 is used to obtain the cached photovoltaic power station operation data information from the REDIS cache according to the preset time period, and perform statistics on the obtained photovoltaic power station operation data information, obtain data statistics information, and send the data statistics information to the database for storage.
具体实施时,数据统计模块14可以预先创建定时任务,按照预设时间周 期定时执行从REDIS缓存中获取当前缓存的光伏发电站运行数据,预设时间周期可以设置为1小时、1天、1周或者1个月,本发明实施例对此不作限定,例如,创建了以1小时为时间周期的定时任务,则每1小时执行一次从REDIS缓存中获取当前缓存的所有光伏发电站运行数据,并将获取的光伏发电站运行数据从REDIS缓存中删除,进而,数据统计模块14对获取的当前时段(即一小时内)的光伏发电站运行数据进行统计,获得对应的光伏节点和/或逆变器各自在当前统计时段的数据统计信息,并将获得的光伏节点和/或逆变器各自在当前时段的数据统计信息持久化到数据库中进行存储,其中,以光伏节点的数据统计信息为例,可以但不限于包括:在当前时段获取的每一光伏节点各自对应的最高温度信息、最低温度信息、平均温度信息、最高电压信息、最低电压信息、最高电流信息、最低电流信息、最高信号强度信息、最低信号强度信息等信息,生成每一光伏节点各自对应的运行报告。具体实施时,数据统计的方式可以根据需要自行设定,本发明实施例对此不作限定。During specific implementation, the data statistics module 14 can create a timed task in advance, and execute regularly according to the preset time period to obtain the current buffered photovoltaic power plant operating data from the REDIS cache. The preset time period can be set to 1 hour, 1 day, or 1 week. Or 1 month, which is not limited in this embodiment of the present invention. For example, if a timed task with a time period of 1 hour is created, it is executed every 1 hour to obtain all the current cached photovoltaic power plant operating data from the REDIS cache, and Delete the obtained operating data of the photovoltaic power station from the REDIS cache, and then, the data statistics module 14 performs statistics on the obtained operating data of the photovoltaic power station in the current period (that is, within one hour), and obtains the corresponding photovoltaic node and/or inverter Data statistics information of each inverter in the current statistical period, and persist the obtained data statistics information of photovoltaic nodes and/or inverters in the current period into the database for storage, where the data statistics information of photovoltaic nodes is taken as an example , may include, but is not limited to: the highest temperature information, the lowest temperature information, the average temperature information, the highest voltage information, the lowest voltage information, the highest current information, the lowest current information, and the highest signal strength for each photovoltaic node acquired in the current period information, minimum signal strength information and other information, and generate corresponding operation reports for each photovoltaic node. During specific implementation, the manner of data statistics can be set as required, which is not limited in this embodiment of the present invention.
这样,在数据库中仅存储各时段的光伏发电站运行数据统计信息,提高数据的可利用性,并可节省数据库存储空间,缓解数据库存储压力。In this way, only the statistical information of the operating data of the photovoltaic power station in each period is stored in the database, which improves data availability, saves database storage space, and relieves database storage pressure.
本发明实施例提供的数据采集系统,还可以包括前端服务器,其中:The data acquisition system provided by the embodiments of the present invention may also include a front-end server, wherein:
前端服务器,用于接收客户端发送的数据查询请求,从数据库或者REDIS缓存中获取满足查询条件的数据,将所述满足查询条件的数据返回至客户端。The front-end server is configured to receive the data query request sent by the client, obtain data satisfying the query condition from the database or REDIS cache, and return the data satisfying the query condition to the client.
其中,查询条件可以为查询实时数据,还可以为查询统计数据,当查询条件为查询实时数据时,所述数据查询请求中包含请求查询的目标光伏发电站的标识信息以及查询对象的标识信息,其中,查询对象包括该目标光伏发电站中的光伏节点和/或逆变器,光伏节点的标识可以为光伏节点的物理地址,逆变器的标识可以为逆变器的物理地址。Wherein, the query condition can be to query real-time data, and can also be to query statistical data. When the query condition is to query real-time data, the data query request includes the identification information of the target photovoltaic power station and the identification information of the query object, Wherein, the query object includes photovoltaic nodes and/or inverters in the target photovoltaic power station, the identifier of the photovoltaic node may be the physical address of the photovoltaic node, and the identifier of the inverter may be the physical address of the inverter.
当查询条件为查询实时数据时,前端服务器,具体用于从REDIS缓存当前缓存的数据中获取目标光伏发电站的标识信息和查询对象的标识信息对应的当前实时运行数据信息,并将获取的当前数据信息返回至客户端。When the query condition is to query real-time data, the front-end server is specifically used to obtain the identification information of the target photovoltaic power station and the current real-time operation data information corresponding to the identification information of the query object from the currently cached data in the REDIS cache, and will obtain the current Data information is returned to the client.
当查询条件为查询统计数据时,所述数据查询请求中包含请求查询的目标光伏发电站的标识信息、查询对象的标识信息以及查询时段的起止时间信息,其中,查询对象包括目标光伏发电站中的光伏节点和/或逆变器。When the query condition is to query statistical data, the data query request includes the identification information of the target photovoltaic power station that requests the query, the identification information of the query object, and the start and end time information of the query period, wherein the query object includes the target photovoltaic power station. PV nodes and/or inverters.
当查询条件为查询统计数据时,前端服务器,具体用于从数据库获取目标光伏发电站的标识信息和查询对象的标识信息在所述查询时段对应的数据 统计信息,并将获取的数据统计信息返回至客户端。When the query condition is to query statistical data, the front-end server is specifically used to obtain the identification information of the target photovoltaic power station and the data statistical information corresponding to the identification information of the query object in the query period from the database, and return the obtained data statistical information to the client.
这样,当用户(运维人员)想要查看光伏发电站当前运行数据信息时,可通过客户端向前端服务器发送查询实时数据的数据查询请求,前端服务器可以从REDIS缓存中直接获取光伏发电站当前运行数据信息,提高了数据获取效率。当用户想要查看光伏发电站的统计数据信息时,可通过客户端向前端服务器发送查询统计数据的数据查询请求,前端服务器可以从数据库中直接获取光伏发电站当前运行数据信息,若用户同时请求查询实时数据和统计数据,前端服务器则可以并行从REDIS缓存中和数据库中获取请求的数据,进一步提高了数据获取效率。In this way, when the user (operation and maintenance personnel) wants to view the current operating data information of the photovoltaic power station, he can send a data query request for real-time data to the front-end server through the client, and the front-end server can directly obtain the current operating data of the photovoltaic power station from the REDIS cache. Operational data information improves the efficiency of data acquisition. When the user wants to view the statistical data information of the photovoltaic power station, the client can send a data query request for statistical data to the front-end server, and the front-end server can directly obtain the current operating data information of the photovoltaic power station from the database. To query real-time data and statistical data, the front-end server can obtain the requested data from the REDIS cache and the database in parallel, further improving the efficiency of data acquisition.
一种实施方式中,客户端中的前端网页界面可以包括物理排序界面、接线图界面和数据统计界面,其中:In one embodiment, the front-end webpage interface in the client may include a physical sorting interface, a wiring diagram interface and a data statistics interface, wherein:
物理排序界面,用于展示客户端管理的光伏发电站中各个光伏节点物理位置排序以及各个光伏节点的实时运行数据信息。The physical sorting interface is used to display the physical position sorting of each photovoltaic node in the photovoltaic power station managed by the client and the real-time operation data information of each photovoltaic node.
接线图界面,用于展示客户端管理的光伏发电站中光伏节点和逆变器的连接线路图。The wiring diagram interface is used to display the connection wiring diagram of photovoltaic nodes and inverters in the photovoltaic power station managed by the client.
当光伏节点有异常时,该接线图界面能够快速定位该光伏节点连接到哪个逆变器上,以及该光伏节点位于该逆变器的哪个光伏组件,以方便用户更直观的查看。When there is an abnormality in the photovoltaic node, the wiring diagram interface can quickly locate which inverter the photovoltaic node is connected to and which photovoltaic component of the inverter the photovoltaic node is located in, so that users can view it more intuitively.
数据统计界面,用于展示客户端管理的光伏发电站中各个光伏节点和逆变器各自的数据统计信息及运行状态信息。The data statistics interface is used to display the respective data statistics and operating status information of each photovoltaic node and inverter in the photovoltaic power station managed by the client.
本发明实施例提供的数据采集系统,包括至少一个网关采集模块、MQTT(Message Queuing Telemetry Transport,消息队列遥测传输)服务器、至少一个数据存储模块和数据统计模块,网关采集模块获取其连接的光伏发电站运行数据信息,将当前获取的光伏发电站运行数据信息发送至MQTT服务器,MQTT服务器接收到网关采集模块发送的光伏发电站运行数据信息,根据订阅信息将光伏发电站运行数据信息分发至相应的数据存储模块,订阅了MQTT服务器该信息的数据存储模块接收MQTT服务器发送的所述光伏发电站运行数据信息,当确定光伏发电站运行数据信息存在异常时,数据存储模块记录异常日志信息,并将异常日志信息发送至数据库进行存储,当确定光伏发电站运行数据信息不存在异常时,数据存储模块则将光伏发电站运行数据信息发送至REDIS(Remote Dictionary Server,远程字典服务)缓存中进行 缓存,数据统计模块按照预设时间周期从REDIS缓存中获取暂存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将数据统计信息发送至数据库进行存储,相比于传统的单体系统架构各功能模块之间的耦合度较高,单个模块出现故障可能会导致整个系统瘫痪,本发明实施例提供的数据采集系统采用多级分布式架构,不同网关模块可以用于采集不同的光伏发电站运行数据,使用基于MQTT服务器的分布式系统架构可以并行采集、存储及处理海量光伏发电站运行数据,数据的上传采用轻量级MQTT通信协议,保证了数据采集系统的高可用性,提高了数据采集效率,由于系统功能模块是分布式的,降低了系统的耦合度,分布式架构可以冗余系统以消除单点故障,系统的可靠性高,系统的可用性以及扩展性更高,运行速度更快,而且,将正常的光伏发电站运行数据信息暂存到REDIS缓存中,以方便用户获取实时的光伏发电站相关数据,以及方便其它服务进行光伏发电站运行数据的统计,将异常日志信息以及数据统计信息持久化到数据库中,对光伏发电站远程监测,便于用户掌握光伏发电站关键设备和电站整体运行状态及信息。The data acquisition system provided by the embodiment of the present invention includes at least one gateway acquisition module, MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission) server, at least one data storage module and data statistics module, and the gateway acquisition module obtains the connected photovoltaic power generation station operation data information, and send the currently obtained photovoltaic power station operation data information to the MQTT server. The MQTT server receives the photovoltaic power station operation data information sent by the gateway acquisition module, and distributes the photovoltaic power station operation data information to the corresponding The data storage module, the data storage module that has subscribed to the information of the MQTT server receives the operation data information of the photovoltaic power station sent by the MQTT server. When it is determined that the operation data information of the photovoltaic power station is abnormal, the data storage module records the abnormal log information, and sends The abnormal log information is sent to the database for storage. When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the data storage module sends the operation data information of the photovoltaic power station to the REDIS (Remote Dictionary Server, remote dictionary service) cache for caching. The data statistics module obtains temporarily stored photovoltaic power station operating data information from the REDIS cache according to the preset time period, and performs statistics on the obtained photovoltaic power station operating data information, obtains data statistical information, and sends the data statistical information to the database for further processing. For storage, compared with the traditional single system architecture, the coupling degree between the functional modules is higher, and the failure of a single module may cause the entire system to be paralyzed. The data acquisition system provided by the embodiment of the present invention adopts a multi-level distributed architecture. The gateway module can be used to collect different photovoltaic power station operating data. Using the distributed system architecture based on MQTT server can collect, store and process massive photovoltaic power station operating data in parallel. The data upload adopts the lightweight MQTT communication protocol to ensure The high availability of the data acquisition system improves the efficiency of data acquisition. Since the system function modules are distributed, the coupling degree of the system is reduced. The distributed architecture can redundant the system to eliminate single point failures. The system has high reliability and the system The availability and scalability are higher, and the operation speed is faster. Moreover, the normal operation data information of the photovoltaic power station is temporarily stored in the REDIS cache, so that users can obtain real-time relevant data of the photovoltaic power station and other services to facilitate the operation of the photovoltaic power station. The statistics of operation data, the abnormal log information and data statistics information are persisted in the database, and the remote monitoring of the photovoltaic power station is convenient for users to grasp the key equipment of the photovoltaic power station and the overall operation status and information of the power station.
基于同一发明构思,本发明实施例还提供了一种数据采集方法,应用于本发明实施例提供的上述数据采集系统,在MQTT服务器侧实施,由于上述数据采集方法解决问题的原理与数据采集系统相似,因此上述方法的实施可以参见系统的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present invention also provides a data collection method, which is applied to the above-mentioned data collection system provided by the embodiment of the present invention and implemented on the MQTT server side. Because the above-mentioned data collection method solves the problem and the data collection system Similar, therefore, the implementation of the above method can refer to the implementation of the system, and the repetition will not be repeated.
如图2所示,其为本发明实施例提供的MQTT服务器侧实施的数据采集方法的实施流程的示意图,可以包括以下步骤:As shown in Figure 2, it is a schematic diagram of the implementation process of the data collection method implemented on the MQTT server side provided by the embodiment of the present invention, and may include the following steps:
S21、MQTT服务器接收网关采集模块发送的光伏发电站运行数据信息,所述光伏发电站运行数据信息是所述网关采集模块从连接的光伏发电站获取的。S21. The MQTT server receives the photovoltaic power station operation data information sent by the gateway collection module, and the photovoltaic power station operation data information is obtained by the gateway collection module from the connected photovoltaic power station.
S22、根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块。S22. Distribute the operation data information of the photovoltaic power station to corresponding data storage modules according to the subscription information.
具体实施时,MQTT服务器根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块,以使所述数据存储模块当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储,当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至REDIS缓存中进行缓存,使得数据 统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。During specific implementation, the MQTT server distributes the operating data information of the photovoltaic power station to the corresponding data storage module according to the subscription information, so that when the data storage module determines that there is an abnormality in the operating data information of the photovoltaic power station, it will record the abnormality Log information, and send the abnormal log information to the database for storage, when it is determined that there is no abnormality in the operation data information of the photovoltaic power station, then send the operation data information of the photovoltaic power station to the REDIS cache for caching, so that The data statistics module obtains the cached photovoltaic power station operation data information from the REDIS cache according to the preset time period, and performs statistics on the obtained photovoltaic power station operation data information, obtains data statistics information, and sends the data statistics information to to the database for storage.
一种实施方式中,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息;所述光伏发电站运行数据信息是所述网关采集模块通过按照以下方式获取后发送至所述MQTT服务器的:所述网关采集模块采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求,接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息,对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验,将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。In one embodiment, the operating data information of the photovoltaic power station includes at least the operating data information of each photovoltaic node in the photovoltaic power station and the inverter operating data information; the operating data information of the photovoltaic power station is collected by the gateway The module is acquired and sent to the MQTT server in the following manner: the gateway acquisition module sends data requests to the photovoltaic node and the inverter respectively in a polling manner, and receives the returned operating data of the photovoltaic node information and the inverter operation data information, data verification is performed on the operation data information of the photovoltaic node and the inverter operation data information respectively, and the operation data information and the inverter operation data information of the photovoltaic node that have passed the verification The operating data information is converted into a preset data format and then sent to the MQTT server.
基于同一发明构思,本发明实施例还提供了一种数据采集方法,应用于本发明实施例提供的上述数据采集系统,在网关采集模块实施,由于上述数据采集方法解决问题的原理与数据采集系统相似,因此上述方法的实施可以参见系统的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present invention also provides a data collection method, which is applied to the above-mentioned data collection system provided by the embodiment of the present invention and implemented in the gateway collection module. Because the above-mentioned data collection method solves the problem and the data collection system Similar, therefore, the implementation of the above method can refer to the implementation of the system, and the repetition will not be repeated.
如图3所示,其为本发明实施例提供的网关采集模块侧实施的数据采集方法的实施流程的示意图,可以包括以下步骤:As shown in Figure 3, it is a schematic diagram of the implementation process of the data acquisition method implemented on the gateway acquisition module side provided by the embodiment of the present invention, and may include the following steps:
S31、网关采集模块获取连接的光伏发电站运行数据信息。S31. The gateway acquisition module acquires the operation data information of the connected photovoltaic power station.
S32、将当前获取的所述光伏发电站运行数据信息发送至MQTT服务器,以使所述MQTT服务器根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块。S32. Send the currently acquired operational data information of the photovoltaic power station to an MQTT server, so that the MQTT server distributes the operational data information of the photovoltaic power station to corresponding data storage modules according to subscription information.
具体实施时,网关采集模块将当前获取的所述光伏发电站运行数据信息发送至MQTT服务器,以使所述MQTT服务器根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块,以使所述数据存储模块当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储,当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至REDIS缓存中进行缓存,使得数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。During specific implementation, the gateway collection module sends the currently acquired operating data information of the photovoltaic power station to the MQTT server, so that the MQTT server distributes the operating data information of the photovoltaic power station to the corresponding data storage module according to the subscription information, When the data storage module determines that the operation data information of the photovoltaic power station is abnormal, it records the abnormal log information, and sends the abnormal log information to the database for storage, and when it determines that the operation data information of the photovoltaic power station When there is no abnormality, the operating data information of the photovoltaic power station is sent to the REDIS cache for caching, so that the data statistics module obtains the cached photovoltaic power station operating data information from the REDIS cache according to a preset time period, and The acquired operational data information of the photovoltaic power station is counted to obtain data statistical information, and the data statistical information is sent to the database for storage.
一种实施方式中,所述光伏发电站运行数据信息至少包括所述光伏发电 站中各个光伏节点的运行数据信息和逆变器运行数据信息;In one embodiment, the operating data information of the photovoltaic power station includes at least the operating data information and inverter operating data information of each photovoltaic node in the photovoltaic power station;
获取连接的光伏发电站运行数据信息,具体包括:Obtain the operation data information of the connected photovoltaic power station, including:
采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求;sending data requests to the photovoltaic node and the inverter respectively in a polling manner;
接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息;以及receiving the returned operating data information of the photovoltaic node and the inverter operating data information; and
将当前获取的所述光伏发电站运行数据信息发送至MQTT服务器,具体包括:Send the currently obtained operating data information of the photovoltaic power station to the MQTT server, specifically including:
对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验;Carrying out data verification on the operation data information of the photovoltaic node and the operation data information of the inverter respectively;
将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。The operation data information of the photovoltaic node and the inverter operation data information that have passed the verification are converted into a preset data format and then sent to the MQTT server.
基于同一发明构思,本发明实施例还提供了一种数据采集方法,应用于本发明实施例提供的上述数据采集系统,在数据存储模块实施,由于上述数据采集方法解决问题的原理与数据采集系统相似,因此上述方法的实施可以参见系统的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present invention also provides a data collection method, which is applied to the above-mentioned data collection system provided by the embodiment of the present invention and implemented in the data storage module. Similar, therefore, the implementation of the above method can refer to the implementation of the system, and the repetition will not be repeated.
如图4所示,其为本发明实施例提供的数据存储模块侧实施的数据采集方法的实施流程的示意图,可以包括以下步骤:As shown in Figure 4, it is a schematic diagram of the implementation process of the data collection method implemented on the side of the data storage module provided by the embodiment of the present invention, and may include the following steps:
S41、数据存储模块接收订阅的MQTT服务器发送的光伏发电站运行数据信息。S41. The data storage module receives the operation data information of the photovoltaic power station sent by the subscribed MQTT server.
所述光伏发电站运行数据信息是由网关采集模块从连接的光伏发电站获取后发送至所述MQTT服务器,由所述MQTT服务器根据订阅信息分发至所述数据存储模块的。The operation data information of the photovoltaic power station is obtained by the gateway collection module from the connected photovoltaic power station and sent to the MQTT server, and the MQTT server distributes it to the data storage module according to the subscription information.
S42、确定所述光伏发电站运行数据信息是否存在异常,当确定所述光伏发电站运行数据信息存在异常时,则执行步骤S43,当确定所述光伏发电站运行数据信息不存在异常时,则执行步骤S44。S42. Determine whether the operation data information of the photovoltaic power station is abnormal. When it is determined that the operation data information of the photovoltaic power station is abnormal, perform step S43. When it is determined that the operation data information of the photovoltaic power station is not abnormal, then Execute step S44.
S43、记录异常日志信息,并将所述异常日志信息发送至数据库进行存储。S43. Record abnormal log information, and send the abnormal log information to a database for storage.
S44、将所述光伏发电站运行数据信息发送至REDIS缓存中进行缓存。S44. Send the operation data information of the photovoltaic power station to the REDIS buffer for buffering.
具体实施时,数据存储模块当确定所述光伏发电站运行数据信息不存在异常时,将所述光伏发电站运行数据信息发送至REDIS缓存中进行缓存,以使数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据 统计信息,并将所述数据统计信息发送至所述数据库进行存储。During specific implementation, when the data storage module determines that there is no abnormality in the operation data information of the photovoltaic power station, it will send the operation data information of the photovoltaic power station to the REDIS cache for caching, so that the data statistics module will start from The cached photovoltaic power station operation data information is obtained from the REDIS cache, and the obtained photovoltaic power station operation data information is counted to obtain data statistics information, and the data statistics information is sent to the database for storage.
一种实施方式中,所述数据采集方法,还包括:In one embodiment, the data collection method further includes:
当确定所述光伏发电站运行数据存在异常时,将所述异常日志信息推送至对应客户端,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息。When it is determined that there is an abnormality in the operation data of the photovoltaic power station, the abnormal log information is pushed to the corresponding client, and the operation data information of the photovoltaic power station includes at least the operation data information and inverse information of each photovoltaic node in the photovoltaic power station. Transformer operating data information.
基于同一技术构思,本发明实施例还提供了一种电子设备500,参照图5所示,电子设备500用于实施上述方法实施例记载的数据采集方法,该实施例的电子设备500可以包括:存储器501、处理器502以及存储在所述存储器中并可在所述处理器上运行的计算机程序,例如数据采集程序。所述处理器执行所述计算机程序时实现上述各个数据采集方法实施例中的步骤,例如图2所示的步骤S21。Based on the same technical concept, an embodiment of the present invention also provides an electronic device 500. Referring to FIG. 5, the electronic device 500 is used to implement the data collection method described in the above method embodiment. The electronic device 500 in this embodiment may include: A memory 501, a processor 502, and a computer program stored in the memory and operable on the processor, such as a data collection program. When the processor executes the computer program, the steps in the above embodiments of the data collection method are implemented, for example, step S21 shown in FIG. 2 .
本发明实施例中不限定上述存储器501、处理器502之间的具体连接介质。本申请实施例在图5中以存储器501、处理器502之间通过总线503连接,总线503在图5中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线503可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the memory 501 and the processor 502 is not limited in this embodiment of the present invention. In the embodiment of the present application, in FIG. 5, the memory 501 and the processor 502 are connected through the bus 503. The bus 503 is represented by a thick line in FIG. As far as possible. The bus 503 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 5 , but it does not mean that there is only one bus or one type of bus.
存储器501可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器501也可以是非易失性存储器(non-volatile memory),例如只读存储器,快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)、或者存储器501是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器501可以是上述存储器的组合。The memory 501 can be a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 501 can also be a non-volatile memory (non-volatile memory), such as a read-only memory, flash memory A memory (flash memory), a hard disk (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD), or the memory 501 can be used to carry or store desired program codes in the form of instructions or data structures and can be controlled by Any other medium accessed by a computer, but not limited to. The memory 501 may be a combination of the above-mentioned memories.
处理器502,用于实现如图2~4所示的数据采集方法。The processor 502 is configured to implement the data collection method shown in FIGS. 2-4 .
本申请实施例还提供了一种计算机可读存储介质,存储为执行上述处理器所需执行的计算机可执行指令,其包含用于执行上述处理器所需执行的程序。The embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions for executing the above-mentioned processor, and includes a program for executing the above-mentioned processor.
在一些可能的实施方式中,本发明提供的数据采集方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在电子设备上运行时,所述程序代码用于使所述电子设备执行本说明书上述描述的根 据本发明各种示例性实施方式的数据采集方法中的步骤。In some possible implementations, various aspects of the data collection method provided by the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on an electronic device, the program code It is used to make the electronic device execute the steps in the data collection method according to various exemplary embodiments of the present invention described above in this specification.
本领域内的技术人员应明白,本发明的实施例可提供为系统、方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as a system, method, or computer program product. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow diagram procedure or procedures and/or block diagram procedures or blocks.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (15)

  1. 一种数据采集系统,其特征在于,包括至少一个网关采集模块、消息队列遥测传输MQTT服务器、至少一个数据存储模块和数据统计模块,其中:A data acquisition system, characterized in that it includes at least one gateway acquisition module, a message queue telemetry transmission MQTT server, at least one data storage module and a data statistics module, wherein:
    所述网关采集模块,用于获取连接的光伏发电站运行数据信息,将当前获取的所述光伏发电站运行数据信息发送至所述MQTT服务器;The gateway acquisition module is used to obtain the operation data information of the connected photovoltaic power station, and send the currently acquired operation data information of the photovoltaic power station to the MQTT server;
    所述MQTT服务器,用于接收所述光伏发电站运行数据信息,根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块;The MQTT server is used to receive the operation data information of the photovoltaic power station, and distribute the operation data information of the photovoltaic power station to the corresponding data storage module according to the subscription information;
    所述数据存储模块,用于订阅所述MQTT服务器,接收所述MQTT服务器发送的所述光伏发电站运行数据信息;当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储;当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存;The data storage module is configured to subscribe to the MQTT server, receive the operation data information of the photovoltaic power station sent by the MQTT server; when it is determined that the operation data information of the photovoltaic power station is abnormal, record the abnormal log information, And the abnormal log information is sent to the database for storage; when it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station is sent to the remote dictionary service REDIS cache for caching;
    所述数据统计模块,用于按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。The data statistics module is used to obtain the cached photovoltaic power station operation data information from the REDIS cache according to a preset time period, and perform statistics on the obtained photovoltaic power station operation data information, obtain data statistics information, and store the obtained The data statistics information is sent to the database for storage.
  2. 如权利要求1所述的系统,其特征在于,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息;The system according to claim 1, wherein the operation data information of the photovoltaic power station includes at least operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station;
    所述网关采集模块,具体用于采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求,接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息,对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验,将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。The gateway collection module is specifically configured to send data requests to the photovoltaic node and the inverter respectively in a polling manner, and receive the returned operation data information of the photovoltaic node and the inverter operation data information, Carry out data verification on the operation data information of the photovoltaic node and the operation data information of the inverter respectively, convert the operation data information of the photovoltaic node and the operation data information of the inverter that have passed the verification into a preset data format and send it to the MQTT server.
  3. 如权利要求1或2所述的系统,其特征在于,还包括前端服务器;The system according to claim 1 or 2, further comprising a front-end server;
    所述前端服务器,用于接收客户端发送的数据查询请求,从所述数据库或者REDIS缓存中获取满足查询条件的数据,将所述满足查询条件的数据返回至所述客户端。The front-end server is configured to receive a data query request sent by a client, obtain data satisfying query conditions from the database or REDIS cache, and return the data satisfying query conditions to the client.
  4. 如权利要求3所述的系统,其特征在于,当所述查询条件为查询实时数据时,所述数据查询请求中包含请求查询的目标光伏发电站的标识信息以及查询对象的标识信息,其中,所述查询对象包括所述目标光伏发电站中的光伏节点和/或逆变器;The system according to claim 3, wherein when the query condition is to query real-time data, the data query request includes the identification information of the target photovoltaic power station and the identification information of the query object, wherein, The query objects include photovoltaic nodes and/or inverters in the target photovoltaic power station;
    所述前端服务器,具体用于从所述REDIS缓存当前缓存的数据中获取所述目标光伏发电站的标识信息和所述查询对象的标识信息对应的当前实时运行数据信息,并将获取的所述当前数据信息返回至所述客户端。The front-end server is specifically configured to acquire the identification information of the target photovoltaic power station and the current real-time operation data information corresponding to the identification information of the query object from the currently cached data in the REDIS cache, and obtain the acquired Current data information is returned to the client.
  5. 如权利要求3所述的系统,其特征在于,当所述查询条件为查询统计数据时,所述数据查询请求中包含请求查询的目标光伏发电站的标识信息、查询对象的标识信息以及查询时段的起止时间信息,其中,所述查询对象包括所述目标光伏发电站中的光伏节点和/或逆变器;The system according to claim 3, wherein when the query condition is to query statistical data, the data query request includes the identification information of the target photovoltaic power station, the identification information of the query object, and the query period The start and end time information of , wherein the query object includes the photovoltaic nodes and/or inverters in the target photovoltaic power station;
    所述前端服务器,具体用于从所述数据库获取所述目标光伏发电站的标识信息和所述查询对象的标识信息在所述查询时段对应的数据统计信息,并将获取的所述数据统计信息返回至所述客户端。The front-end server is specifically configured to obtain from the database the identification information of the target photovoltaic power station and the data statistical information corresponding to the identification information of the query object during the query period, and the obtained data statistical information Return to the client.
  6. 如权利要求1所述的系统,其特征在于,The system of claim 1, wherein
    所述数据存储模块,还用于当确定所述光伏发电站运行数据信息存在异常时,将所述异常日志信息推送至对应客户端。The data storage module is further configured to push the abnormality log information to a corresponding client when it is determined that the operational data information of the photovoltaic power station is abnormal.
  7. 如权利要求4~6任一项所述的系统,其特征在于,所述客户端包括物理排序界面、接线图界面和数据统计界面,其中:The system according to any one of claims 4 to 6, wherein the client includes a physical sorting interface, a wiring diagram interface and a data statistics interface, wherein:
    所述物理排序界面,用于展示所述客户端管理的光伏发电站中各个光伏节点物理位置排序以及各个光伏节点的实时运行数据信息;The physical sorting interface is used to display the physical position sorting of each photovoltaic node in the photovoltaic power station managed by the client and the real-time operation data information of each photovoltaic node;
    所述接线图界面,用于展示所述客户端管理的光伏发电站中光伏节点和逆变器的连接线路图;The wiring diagram interface is used to display the connection wiring diagram of photovoltaic nodes and inverters in the photovoltaic power station managed by the client;
    所述数据统计界面,用于展示所述客户端管理的光伏发电站中各个光伏节点和逆变器各自的数据统计信息及运行状态信息。The data statistics interface is used to display the respective data statistics information and operation status information of each photovoltaic node and inverter in the photovoltaic power station managed by the client.
  8. 一种数据采集方法,其特征在于,包括:A data collection method, characterized in that, comprising:
    消息队列遥测传输MQTT服务器接收网关采集模块发送的光伏发电站运行数据信息,所述光伏发电站运行数据信息是所述网关采集模块从连接的光伏发电站获取的;The message queue telemetry transmission MQTT server receives the photovoltaic power station operation data information sent by the gateway collection module, and the photovoltaic power station operation data information is obtained by the gateway collection module from the connected photovoltaic power station;
    根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块,以使所述数据存储模块当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储,当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存,使得数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并 对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。According to the subscription information, the operation data information of the photovoltaic power station is distributed to the corresponding data storage module, so that when the data storage module determines that the operation data information of the photovoltaic power station is abnormal, it will record the abnormal log information and store the The abnormal log information is sent to the database for storage. When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station is sent to the remote dictionary service REDIS cache for caching, so that the data statistics module Obtain the cached photovoltaic power station operating data information from the REDIS cache according to the preset time period, and perform statistics on the obtained photovoltaic power station operating data information to obtain data statistics information, and send the data statistics information to the database for storage.
  9. 如权利要求8所述的方法,其特征在于,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息;所述光伏发电站运行数据信息是所述网关采集模块通过按照以下方式获取后发送至所述MQTT服务器的:所述网关采集模块采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求,接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息,对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验,将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。The method according to claim 8, wherein the operation data information of the photovoltaic power station includes at least operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station; The data information is sent to the MQTT server by the gateway acquisition module after being acquired in the following manner: the gateway acquisition module sends data requests to the photovoltaic node and the inverter respectively in a polling manner, and receives the returned The operating data information of the photovoltaic node and the inverter operating data information, respectively perform data verification on the operating data information of the photovoltaic node and the inverter operating data information, and verify the The operation data information and the inverter operation data information are converted into a preset data format and then sent to the MQTT server.
  10. 一种数据采集方法,其特征在于,包括:A data collection method, characterized in that, comprising:
    网关采集模块获取连接的光伏发电站运行数据信息;The gateway acquisition module obtains the operation data information of the connected photovoltaic power station;
    将当前获取的所述光伏发电站运行数据信息发送至消息队列遥测传输MQTT服务器,以使所述MQTT服务器根据订阅信息将所述光伏发电站运行数据信息分发至相应的数据存储模块,以使所述数据存储模块当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储,当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存,使得数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。Send the currently obtained operating data information of the photovoltaic power station to the message queue telemetry transmission MQTT server, so that the MQTT server distributes the operating data information of the photovoltaic power station to the corresponding data storage module according to the subscription information, so that all When the data storage module determines that the operation data information of the photovoltaic power station is abnormal, it records the abnormal log information, and sends the abnormal log information to the database for storage; when it determines that the operation data information of the photovoltaic power station is not abnormal , the operating data information of the photovoltaic power station is sent to the remote dictionary service REDIS cache for caching, so that the data statistics module acquires the cached photovoltaic power station operating data information from the REDIS cache according to the preset time period, and The acquired operational data information of the photovoltaic power station is counted to obtain data statistical information, and the data statistical information is sent to the database for storage.
  11. 如权利要求10所述的方法,其特征在于,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息;The method according to claim 10, wherein the operation data information of the photovoltaic power station includes at least operation data information and inverter operation data information of each photovoltaic node in the photovoltaic power station;
    获取连接的光伏发电站运行数据信息,具体包括:Obtain the operation data information of the connected photovoltaic power station, including:
    采用轮询方式向所述光伏节点和所述逆变器分别发送数据请求;sending data requests to the photovoltaic node and the inverter respectively in a polling manner;
    接收返回的所述光伏节点的运行数据信息和所述逆变器运行数据信息;以及receiving the returned operating data information of the photovoltaic node and the inverter operating data information; and
    将当前获取的所述光伏发电站运行数据信息发送至MQTT服务器,具体 包括:Send the currently obtained operating data information of the photovoltaic power station to the MQTT server, specifically including:
    对所述光伏节点的运行数据信息和所述逆变器运行数据信息分别进行数据校验;Carrying out data verification on the operation data information of the photovoltaic node and the operation data information of the inverter respectively;
    将校验通过的光伏节点的运行数据信息和逆变器运行数据信息转换成预设数据格式后发送至所述MQTT服务器。The operation data information of the photovoltaic node and the inverter operation data information that have passed the verification are converted into a preset data format and then sent to the MQTT server.
  12. 一种数据采集方法,其特征在于,包括:A data collection method, characterized in that, comprising:
    数据存储模块接收订阅的消息队列遥测传输MQTT服务器发送的光伏发电站运行数据信息,所述光伏发电站运行数据信息是由网关采集模块从连接的光伏发电站获取后发送至所述MQTT服务器,由所述MQTT服务器根据订阅信息分发至所述数据存储模块的;The data storage module receives subscribed message queue telemetry and transmits the operating data information of the photovoltaic power station sent by the MQTT server. The operating data information of the photovoltaic power station is obtained by the gateway collection module from the connected photovoltaic power station and sent to the MQTT server. The MQTT server distributes to the data storage module according to the subscription information;
    当确定所述光伏发电站运行数据信息存在异常时,则记录异常日志信息,并将所述异常日志信息发送至数据库进行存储;When it is determined that the operating data information of the photovoltaic power station is abnormal, record the abnormal log information, and send the abnormal log information to the database for storage;
    当确定所述光伏发电站运行数据信息不存在异常时,则将所述光伏发电站运行数据信息发送至远程字典服务REDIS缓存中进行缓存,以使数据统计模块按照预设时间周期从所述REDIS缓存中获取缓存的光伏发电站运行数据信息,并对获取的光伏发电站运行数据信息进行统计,获得数据统计信息,并将所述数据统计信息发送至所述数据库进行存储。When it is determined that there is no abnormality in the operation data information of the photovoltaic power station, the operation data information of the photovoltaic power station will be sent to the remote dictionary service REDIS cache for caching, so that the data statistics module can retrieve the information from the REDIS according to the preset time period. The cached photovoltaic power station operation data information is acquired in the cache, and the acquired photovoltaic power station operation data information is counted to obtain data statistics information, and the data statistics information is sent to the database for storage.
  13. 如权利要求12所述的方法,其特征在于,还包括:The method of claim 12, further comprising:
    当确定所述光伏发电站运行数据存在异常时,将所述异常日志信息推送至对应客户端,所述光伏发电站运行数据信息至少包括所述光伏发电站中各个光伏节点的运行数据信息和逆变器运行数据信息。When it is determined that there is an abnormality in the operation data of the photovoltaic power station, the abnormal log information is pushed to the corresponding client, and the operation data information of the photovoltaic power station includes at least the operation data information and inverse information of each photovoltaic node in the photovoltaic power station. Converter operating data information.
  14. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求8~13任一项所述的数据采集方法。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the program, it implements claims 8-13 The data collection method described in any one.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求8~13任一项所述的数据采集方法中的步骤。A computer-readable storage medium, on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps in the data collection method according to any one of claims 8-13 are realized.
PCT/CN2021/093831 2021-05-14 2021-05-14 Data collection system and method, electronic device, and storage medium WO2022236809A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/093831 WO2022236809A1 (en) 2021-05-14 2021-05-14 Data collection system and method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/093831 WO2022236809A1 (en) 2021-05-14 2021-05-14 Data collection system and method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022236809A1 true WO2022236809A1 (en) 2022-11-17

Family

ID=84028705

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/093831 WO2022236809A1 (en) 2021-05-14 2021-05-14 Data collection system and method, electronic device, and storage medium

Country Status (1)

Country Link
WO (1) WO2022236809A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347959A (en) * 2018-10-24 2019-02-15 九州能源有限公司 A kind of photovoltaic plant mobile monitoring system
CN110417620A (en) * 2019-07-24 2019-11-05 南京大全自动化科技有限公司 A kind of data-optimized statistical system of parallel type and method
CN110597057A (en) * 2019-08-22 2019-12-20 浙江工业大学 Data processing system in industrial application scene
CN110673549A (en) * 2019-09-05 2020-01-10 国家计算机网络与信息安全管理中心 Data center intelligent monitoring system and method based on distributed architecture
CN111163002A (en) * 2019-12-31 2020-05-15 广州智光电气股份有限公司 Container-based edge gateway system and energy data processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347959A (en) * 2018-10-24 2019-02-15 九州能源有限公司 A kind of photovoltaic plant mobile monitoring system
CN110417620A (en) * 2019-07-24 2019-11-05 南京大全自动化科技有限公司 A kind of data-optimized statistical system of parallel type and method
CN110597057A (en) * 2019-08-22 2019-12-20 浙江工业大学 Data processing system in industrial application scene
CN110673549A (en) * 2019-09-05 2020-01-10 国家计算机网络与信息安全管理中心 Data center intelligent monitoring system and method based on distributed architecture
CN111163002A (en) * 2019-12-31 2020-05-15 广州智光电气股份有限公司 Container-based edge gateway system and energy data processing method

Similar Documents

Publication Publication Date Title
CN110022226B (en) Object-oriented data acquisition system and acquisition method
CN110047014B (en) User electric quantity data restoration method based on load curve and historical electric quantity
JP2022547748A (en) Methods and apparatus for transmitting data in IoT systems, gateway devices and their storage media
CN106603958B (en) Distributed storage remote centralized monitoring system and method for transformer substation inspection robot
CN106709003A (en) Hadoop-based mass log data processing method
CN109739919B (en) Front-end processor and acquisition system for power system
US20120166430A1 (en) Scalable Performance Management System
CN112865311B (en) Method and device for monitoring message bus of power system
US9716638B1 (en) Push pull data collection
CN113438129A (en) Data acquisition method and device
CN113190583B (en) Data acquisition system, method, electronic equipment and storage medium
WO2022236809A1 (en) Data collection system and method, electronic device, and storage medium
CN114281524A (en) Intelligent cable service processing system management method and device
WO2011097850A1 (en) Data managing method and system
CN111935310A (en) Data reporting system and data reporting method applied to terminal of Internet of things
CN110633191A (en) Method and system for monitoring service health degree of software system in real time
US20220113888A1 (en) Visualization of outliers in a highly-skewed distribution of telemetry data
CN114328093A (en) Hadoop-based monitoring method, system, storage medium and equipment
CN114547190A (en) Data processing method and device, storage medium and electronic equipment
CN111294231B (en) Resource management method and system
Lee et al. Monitoring of IoT data for reducing network traffic
CN113515425A (en) Method and device for dynamically reporting data
CN107172032B (en) Communication method based on southbound interface protocol and related equipment
CN116389584B (en) Cloud edge data transmission method for electrochemical energy storage station
CN216901363U (en) System equipment access module

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21941379

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE