Intelligent interface connection method, system, medium and device
Through the intelligent interface connection method, the power generation data protocols of photovoltaic panel manufacturers are identified and converted, which solves the problem of increasing the number of interfaces caused by the differences in communication protocols of different manufacturers, and realizes simplified data collection and fault analysis of a large number of manufacturers.
Patent Information
- Application Number
- CN202311296002.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-10-09
AI Technical Summary
Existing Technology During the maintenance process of photovoltaic power generation equipment, the communication protocols and data formats of each photovoltaic panel manufacturer are different, which causes the maintenance software to create matching interfaces for each manufacturer, which increases the complexity and inconvenience of docking photovoltaic panel manufacturers, especially in When a large number of manufacturers connect, the number of protocol interfaces increases sharply, making it difficult to manage.
The intelligent interface connection method is used to identify the protocol type of power generation data, call the corresponding protocol interface to receive the data, and convert it into a unified format, reducing the number of protocol interfaces and realizing data collection from a large number of photovoltaic panel manufacturers.
It simplifies the docking process of photovoltaic panel manufacturers, reduces the complexity of maintenance software, improves docking efficiency, avoids the problem of the number of protocol interfaces increasing with the number of manufacturers, and enables rapid collection and analysis of power generation data to troubleshoot faults.
Smart Images

Figure CN117354384B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of photovoltaic technology, and in particular to an intelligent interface connection method, system, medium and device. Background Art
[0002] With the continuous development of solar photovoltaic technology, and the advantages of photovoltaic power generation such as pollution-free and sustainable, photovoltaic power generation has gradually become one of the main power generation methods. Nowadays, the main process of repairing photovoltaic power generation equipment is as follows: the maintenance software of the photovoltaic power station operator remotely collects the power generation data of photovoltaic power generation equipment from the photovoltaic panel manufacturer, and analyzes the power generation data to troubleshoot the faults of photovoltaic power generation equipment, so that maintenance personnel can repair the faulty photovoltaic power generation equipment.
[0003] During the data collection process, photovoltaic power station operators need to collect corresponding power generation data from photovoltaic panel manufacturers. However, different photovoltaic panel manufacturers use different communication protocols when sending power generation data, and the formats of the sent power generation data are also different. Therefore, in traditional technology, photovoltaic power station operators will create a corresponding matching interface for each photovoltaic panel manufacturer in the maintenance software, so that the maintenance software can receive the power generation data sent by the photovoltaic panel manufacturers.
[0004] However, if traditional technology is used to collect power generation data, every time a photovoltaic panel manufacturer is added, personnel will need to create a new matching interface in the maintenance software, which is not convenient for connecting a large number of photovoltaic panel manufacturers to collect power generation data. Summary of the invention
[0005] In order to facilitate the connection with a large number of photovoltaic panel manufacturers to collect power generation data, the present application provides an intelligent interface connection method, system, medium and device.
[0006] The present application provides an intelligent interface connection method using the following technical solution:
[0007] A smart interface connection method comprises the following steps: acquiring power generation data sent by a photovoltaic panel manufacturer; identifying the protocol type of the power generation data, and calling a protocol interface corresponding to the protocol type according to the protocol type of the power generation data; receiving the power generation data through the corresponding protocol interface so that maintenance software acquires the power generation data; converting the format of the power generation data into a preset format to obtain the converted power generation data.
[0008] By adopting the above technical scheme, when different photovoltaic panel manufacturers all use one protocol to transmit power generation data, the power generation data is obtained, and the maintenance software calls the protocol interface corresponding to the protocol to receive the power generation data, and converts the format of the power generation data received by all matching interfaces into a unified preset format. The number of protocol interfaces in this scheme is only related to the number of protocol types. When the number of connected photovoltaic panel manufacturers increases, as long as the protocol types for transmitting power generation data do not increase, the number of protocol interfaces for receiving power generation data will not increase. Therefore, this application is more convenient for connecting to a large number of photovoltaic panel manufacturers to collect power generation data.
[0009] Preferably, after the step of identifying the protocol type of the power generation data, it also includes: detecting the state of the corresponding protocol interface, the state including the use state and the idle state; judging whether the state of the corresponding protocol interface is the use state, and if the state of the corresponding protocol interface is the use state, adding a queue identifier to the power generation data; regularly detecting the state of the corresponding protocol interface at preset intervals, and when the state of the protocol interface changes from the use state to the idle state, receiving the corresponding power generation data in sequence according to the order of the queue identifiers through the corresponding protocol interface.
[0010] By adopting the above technical solution, the state of the corresponding protocol interface is detected. If the state is in use, a queue identifier is added to the power generation data. After the state of the protocol interface changes from the use state to the idle state, the protocol interfaces are called in sequence according to the order of the queue identifiers. When it is necessary to receive power generation data of the same protocol sent by multiple photovoltaic panel manufacturers at the same time, the power generation data can be received in sequence in a certain order through a corresponding protocol interface.
[0011] Preferably, after the step of obtaining the converted power generation data, the step further includes: querying the manufacturer identification of the converted power generation data, and storing the converted power generation data in a storage space corresponding to the manufacturer identification according to the manufacturer identification.
[0012] By adopting the above technical solution, the manufacturer identification of the converted power generation data is queried, and the data received from different photovoltaic panel manufacturers by the same matching interface is distinguished by the manufacturer identification, and the power generation data with different manufacturer identifications are stored in different storage spaces, thereby reducing the possibility of data confusion.
[0013] Preferably, before the step of receiving the power generation data sent by the photovoltaic panel manufacturer through the protocol interface, it also includes: obtaining protocol information, the protocol information is information of the commonly used protocol type when performing data communication; creating a protocol interface corresponding to each protocol in the protocol information, so as to receive the power generation data sent by the photovoltaic panel manufacturer through the protocol interface.
[0014] By adopting the above technical solution, the commonly used protocol types for data transmission in the market are obtained, and corresponding protocol interfaces are designed for the commonly used protocols. When it is necessary to connect to a new photovoltaic panel manufacturer, if the transmission protocol used by the photovoltaic panel manufacturer is one of the commonly used protocols, there is no need to design a new protocol interface, thereby simplifying the operation process.
[0015] Preferably, the step of converting the format of the power generation data into a preset format to obtain the converted power generation data specifically includes: identifying the data format of the power generation data; calling a conversion script corresponding to the data format to perform format conversion on the power generation data to obtain the converted power generation data.
[0016] By adopting the above technical solution, the data format of the power generation data is identified, and the conversion script corresponding to the data format is called to convert the format of the power generation data to obtain the converted power generation data. Since the data format of the power generation data received by the same protocol interface may be different, the format of all the power generation data is converted into one data format to facilitate subsequent data processing.
[0017] Preferably, after the step of storing the converted power generation data in a database storage space corresponding to the manufacturer identifier according to the manufacturer identifier, it also includes: performing structured processing on the converted power generation data through a data warehouse algorithm to obtain standard power generation data; obtaining a fault analysis result according to preset fault analysis rules, a preset reference data range and the standard power generation data, and displaying the fault analysis result.
[0018] By adopting the above technical solution, the power generation data is structured, standard power generation data related to faults are extracted from a large amount of power generation data, the converted power generation data is structured through the data warehouse algorithm, the data related to fault troubleshooting is retained, and the efficiency of subsequent data analysis is improved. The fault analysis results are obtained according to preset fault analysis rules, preset reference data ranges and standard power generation data, thereby realizing remote collection of power generation data and troubleshooting of photovoltaic power generation equipment.
[0019] Preferably, the step of obtaining the fault analysis result according to the preset fault analysis rules, the preset reference data range and the standard power generation data specifically includes: judging in turn whether several data in the standard power generation data are within the preset corresponding reference data range; if not, filtering out the data in the standard power generation data that are not within the preset corresponding reference data range to obtain fault data; and obtaining the fault analysis result corresponding to the fault data according to the preset fault correspondence table and the fault data.
[0020] By adopting the above technical solution, various data in the power generation data are compared with the reference data range in turn. If it exceeds the reference data range, the fault analysis result corresponding to the fault data is searched in the fault correspondence table. If a photovoltaic power generation equipment fails, this solution can quickly discover the fault by intelligently analyzing the power generation data, and the obtained fault analysis result can provide a certain reference for maintenance personnel.
[0021] The second aspect of the present application provides an intelligent interface connection system, which adopts the following technical solution:
[0022] A data acquisition module is used to obtain power generation data sent by photovoltaic panel manufacturers;
[0023] A protocol identification module, used to identify the protocol type of the power generation data, and call a protocol interface corresponding to the protocol type according to the protocol type of the power generation data;
[0024] A data receiving module, used to receive power generation data sent by the photovoltaic panel manufacturer through the corresponding protocol interface, so that the maintenance software can obtain the power generation data;
[0025] The format conversion module is used to convert the format of the power generation data into a preset format to obtain the converted power generation data.
[0026] The medium for a smart interface connection method provided in the third aspect of the present application adopts the following technical solution:
[0027] The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing any one of the method steps of a smart interface connection method.
[0028] The fourth aspect of the present application provides an intelligent interface connection device that adopts the following technical solution:
[0029] An intelligent interface connection device comprises: a timer and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of an intelligent interface connection method.
[0030] In summary, the present application includes at least one of the following beneficial technical effects:
[0031] 1. With this application, the number of protocol interfaces in this solution is only related to the number of protocol types. When the number of connected photovoltaic panel manufacturers increases, as long as the protocol types for transmitting power generation data do not increase, the number of protocol interfaces for receiving power generation data will not increase. Therefore, this application is more convenient for connecting a large number of photovoltaic panel manufacturers to collect power generation data;
[0032] 2. With this application, if a photovoltaic power generation equipment fails, this solution can quickly discover the failure through intelligent analysis of power generation data, and the obtained failure analysis results can provide a certain reference for maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flowchart of a smart interface connection method provided in an embodiment of the present application;
[0034] Figure 2 It is a flowchart of the queuing method provided in the embodiment of the present application;
[0035] Figure 3 It is a structural diagram of a traditional interface design provided in an embodiment of the present application;
[0036] Figure 4 It is a schematic diagram of the structure of the protocol interface design provided in the embodiment of the present application;
[0037] Figure 5 This is a schematic diagram of the interface of the alarm information provided by the embodiment of the present application;
[0038] Figure 6 It is a module schematic diagram of an intelligent interface connection system provided in an embodiment of the present application;
[0039] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0040] Explanation of the accompanying drawings: 1. Data acquisition module; 2. Protocol identification module; 3. Data receiving module; 4. Format conversion module; 1000. Electronic device; 1001. Processor; 1002. Communication bus; 1003. User interface; 1004. Network interface; 1005. Memory. DETAILED DESCRIPTION
[0041] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.
[0042] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0043] The technical solution provided by this application can be applied to the scenario of power generation data collection. The computer of the photovoltaic power station operator is the execution subject. The computer is installed with maintenance software. The power generation data sent by the photovoltaic panel manufacturer is received through the maintenance software, and the power generation data is analyzed. The photovoltaic panel manufacturer is a manufacturer that monitors the photovoltaic panels without or with few people and determines when the photovoltaic panels have problems. When the power generation data obtained by the photovoltaic panel manufacturer contains data that deviates from the normal range, the photovoltaic panel manufacturer will send the power generation data to the photovoltaic power station operator, and let the maintenance personnel of the photovoltaic power station operator go to the location of the faulty photovoltaic power generation equipment for maintenance.
[0044] The present application embodiment discloses a smart interface connection method, referring to Figure 1 , Figure 1 : is a flow chart of a smart interface connection method provided by an embodiment of the present application, including steps S10 to S70, wherein the steps include:
[0045] S10: Acquire power generation data sent by the photovoltaic panel manufacturer, identify the protocol type of the power generation data, and call a protocol interface corresponding to the protocol type according to the protocol type of the power generation data.
[0046] In this embodiment, the protocol type of power generation data specifically refers to the type of application layer protocol of power generation data. Power generation data is the power data of photovoltaic inverters sent by photovoltaic panel manufacturers after photovoltaic power generation equipment fails, which may specifically include voltage, current, frequency, etc. The inverter is a converter that converts the direct current generated by the photovoltaic panel into three-phase alternating current.
[0047] The protocol interface is an interface that only receives data that uses a corresponding protocol for communication. For example, the power generation data received by the HTTP interface uses the HTTP protocol for communication. The HTTP interface cannot receive power generation data that uses other types of protocols for communication.
[0048] The steps of creating a protocol interface include: obtaining protocol information, and creating a protocol interface corresponding to each protocol in the protocol information. The protocol information is information about commonly used protocols for data communication by technical personnel in this field, and the protocol information may specifically include HTTP protocol, FTP protocol, and MQTT protocol. Specifically, after obtaining the protocol information, a corresponding protocol interface is created according to the protocol information, and the protocol interface is created before receiving power generation data. Under normal circumstances, the protocol used by the newly added photovoltaic panel manufacturer is one of the commonly used protocols in the protocol information. At this time, all interfaces can be created in the initial interface creation process, and there is no need to create additional interfaces in the later stage. If the protocol used by the newly added photovoltaic panel manufacturer is not one of the commonly used protocols in the protocol information, it is necessary to create a corresponding protocol interface.
[0049] In another embodiment, the protocol interface can also be created when connecting with a photovoltaic panel manufacturer. Each time a photovoltaic panel manufacturer is connected, it is determined whether the protocol type used by the manufacturer has appeared in the previous connection. If it has appeared, there is no need to create an additional protocol interface. If it has not appeared, it is necessary to create a protocol interface. At this time, it can be guaranteed that each protocol interface can receive power generation data.
[0050] Specifically, the computer receives the power generation data sent by the photovoltaic panel manufacturer, and temporarily stores the power generation data in a cache, identifies the protocol type of the power generation data by means of deep message detection, and calls a protocol interface corresponding to the protocol type.
[0051] Deep packet inspection is an existing technology that can identify the application layer protocol type corresponding to a message by matching specific fields, which will not be described in detail here.
[0052] Reference Figure 2 , Figure 2 It is a flowchart of a queuing method provided in an embodiment of the present application, and the method includes steps S11 to S13.
[0053] S11: Detect the state of the corresponding protocol interface and determine whether the state of the corresponding protocol interface is in use.
[0054] Specifically, the status of the protocol interface is detected. The status of the protocol interface includes an idle state and a used state. The idle state is a state in which the program of the protocol interface is not occupied, and the used state is a state in which the program of the protocol interface is occupied. It is determined whether the status of the corresponding protocol interface is a used state.
[0055] S12: If the state of the corresponding protocol interface is in use, a queue identifier is added to the power generation data.
[0056] Specifically, if the status of the corresponding protocol interface is in use, that is, the protocol interface has been called to receive power generation data sent by other manufacturers, the queue identifier of other power generation data is queried, the queue identifier of the current power generation data is generated in sequence through a hash algorithm, and the queue identifier is added to the current power generation data.
[0057] If the state of the corresponding protocol interface is an idle state, the power generation data can be directly received through the protocol interface.
[0058] S13: regularly detecting the state of the corresponding protocol interface at a preset interval, and when the state of the protocol interface changes from a use state to an idle state, receiving the corresponding power generation data in sequence according to the order of the queue identifiers through the corresponding protocol interface.
[0059] After adding the queue identifier, the status of the corresponding protocol interface is periodically detected at a preset interval. The preset interval can be specifically 1s. When it is detected that the status of the protocol interface changes from the use state to the idle state, the corresponding power generation data is received in the order of the queue identifier through the corresponding protocol interface, and the added queue identifier is deleted before receiving the power generation data.
[0060] S20: receiving power generation data sent by the photovoltaic panel manufacturer through the corresponding protocol interface.
[0061] After calling the protocol interface corresponding to the protocol type, the power generation data sent by the photovoltaic panel manufacturer is received through the corresponding protocol interface. Since the caller of the protocol interface is the maintenance software, the maintenance software receives the power generation data of the corresponding protocol sent by the photovoltaic panel manufacturer.
[0062] Reference Figure 3 , Figure 3 It is a structural schematic diagram of the traditional interface design provided in an embodiment of the present application, wherein the communication protocol called by the A photovoltaic panel manufacturer to send power generation data is the HTTP protocol, the format of the power generation data is the CSV format, and the A interface is called to receive the power generation data sent by the A photovoltaic panel manufacturer; the communication protocol called by the B photovoltaic panel manufacturer to send power generation data is the HTTP protocol, the format of the power generation data is the XML format, and the B interface is called to receive the power generation data sent by the B photovoltaic panel manufacturer; the communication protocol called by the C photovoltaic panel manufacturer to send power generation data is the MQTT protocol, the format of the power generation data is the CSV format, and the C interface is called to receive the power generation data sent by the C photovoltaic panel manufacturer.
[0063] In this embodiment, refer to Figure 4 , Figure 4It is a structural schematic diagram of the protocol interface design provided in an embodiment of the present application, wherein the communication protocol called by photovoltaic panel manufacturer A to send power generation data is the HTTP protocol, and the format of the power generation data is the CSV format; the communication protocol called by photovoltaic panel manufacturer B to send power generation data is the HTTP protocol, and the format of the power generation data is the XML format, and the HTTP interface is called to receive the power generation data sent by photovoltaic panel manufacturer A and photovoltaic panel manufacturer B; the communication protocol called by photovoltaic panel manufacturer C to send power generation data is the MQTT protocol, and the format of the power generation data is the CSV format, and the MQTT interface is called to receive the power generation data sent by photovoltaic panel manufacturer C.
[0064] S30: Convert the format of the power generation data into a preset format to obtain converted power generation data.
[0065] Specifically, after receiving the power generation data through the protocol interface, the data format of the power generation data is identified, a conversion script corresponding to the data format is called, and the script program is executed to convert the data format of the received power generation data into a preset format. After obtaining the power generation data in the preset format, the power generation data in the preset format is used as the converted power generation data. The preset format can specifically be a CSV format.
[0066] Among them, the process of identifying the data format of power generation data is: parsing the data structure of the power generation data to obtain the data structure of the power generation data, comparing the data structure of the power generation data with the data structure of preset template data of different formats in turn for similarity, obtaining several similarity comparison results, and confirming the data format corresponding to the template data with a similarity greater than a preset similarity and the highest similarity in the similarity comparison results as the data format of the power generation data.
[0067] The conversion script corresponding to the data format is an executable file that converts the data format of the power generation data into a preset data format.
[0068] S40: querying the manufacturer identification of the converted power generation data, and storing the converted power generation data in a storage space corresponding to the manufacturer identification according to the manufacturer identification.
[0069] When the power generation data is received by the protocol interface, the power generation data sent by different photovoltaic panel manufacturers may be received by the same protocol interface and stored in the same storage space of the database, resulting in data confusion. Therefore, in an embodiment of the present application, the power generation data also includes a manufacturer identification. After the power generation data is received by the protocol interface, the power generation data is parsed, and the manufacturer identification of the converted power generation data is queried. Each manufacturer identification has its corresponding storage space, and the converted power generation data is stored in the storage space of the database corresponding to the manufacturer identification according to the manufacturer identification. The database can specifically use a MySQL database or an HBase database. The storage method is to transmit the power generation data to the database through a data bus, and the data bus can specifically be a Kafka data bus.
[0070] S50: Structural processing is performed on the converted power generation data through a data warehouse algorithm to obtain standard power generation data.
[0071] Data warehouse algorithms refer to several algorithms used in a data warehouse. In this embodiment, the data warehouse algorithms include data extraction, data conversion, and data loading.
[0072] The specific process of structured processing includes: extracting the power generation data related to the fault data stored in the database through data extraction; cleaning and merging the extracted data through data conversion, which can be interpreted as filtering the data that does not meet the requirements in the extracted data, and merging the filtered data, where the data that does not meet the requirements includes duplicate data and erroneous data; loading the data after data conversion through data loading, which can be interpreted as storing the data after data conversion in the data warehouse.
[0073] The data stored in the data warehouse is standard power generation data, which can be interpreted as data related to the fault analysis topic.
[0074] S60: Obtaining fault analysis results according to preset fault analysis rules, preset reference data ranges and standard power generation data, and displaying the fault analysis results.
[0075] The preset fault analysis rule is a preset rule for analyzing the standard power generation data to obtain the fault analysis result. The preset fault analysis rule is: after obtaining the standard power generation data, several items of data in the standard power generation data are compared with the corresponding data range in the preset reference data range in turn, and the data in the several items of data that are not within the preset corresponding reference data range are screened out, and the screened out data are used as fault data. After obtaining the fault data, the fault analysis result corresponding to the fault data is searched in the preset fault corresponding table. After obtaining the fault analysis result, the fault analysis result is displayed on the display.
[0076] For example, the grid voltage in the standard power generation data is 260V, and the preset reference data range is a grid voltage of 198V~235V. The grid voltage in the standard power generation data is higher than the highest threshold grid voltage in the preset reference data range. The grid voltage in the standard power generation data is used as fault data, and the preset fault correspondence table is searched. The fault result corresponding to the grid voltage in the standard power generation data being higher than the highest threshold grid voltage in the preset reference data range is grid overvoltage, and the grid overvoltage is displayed on the display.
[0077] In another embodiment, the power generation data may also include the address information of the photovoltaic power generation equipment, and the converted power generation data is parsed to obtain the address information of the photovoltaic power generation equipment corresponding to the fault analysis result. The maintenance table records the names of the maintenance personnel responsible for each area, and the names of the maintenance personnel corresponding to the address information in the preset maintenance table are searched according to the address information, that is, the maintenance personnel responsible for the area where the location in the address information is located are searched, and a work order is automatically generated according to the name of the maintenance personnel, address information, fault analysis results and preset work order template, and the work order is sent to the terminal of the corresponding maintenance personnel. When the confirmation information returned by the maintenance personnel terminal is received, the work order generation process is completed. This allows the maintenance personnel to go to the area corresponding to the address information in the work order to repair the photovoltaic power generation equipment.
[0078] In another embodiment, the fault codes sent by different photovoltaic panel manufacturers can also be received through the protocol interface, that is, the fault data is analyzed to obtain the fault analysis results, which is completed by the photovoltaic panel manufacturer, thereby reducing the amount of data transmission. Since different photovoltaic panel manufacturers use different fault codes, after obtaining the fault codes sent by different photovoltaic panel manufacturers, the fault codes sent by different photovoltaic panel manufacturers are converted according to the preset unified standard to obtain the fault code that is unified with the fault analysis results in this solution. Figure 5 , Figure 5 This is a schematic diagram of the interface of the alarm information provided in the embodiment of the present application. Figure 5 The warning information is the result of the fault analysis, and each fault analysis result corresponds to a fault code. For example, the unified standard can be: the fault code corresponding to the power failure of the power grid and the fault code corresponding to the power failure of the power grid are uniformly converted into the fault code of the photovoltaic power station operator without the power grid.
[0079] The implementation principle of an intelligent interface connection method in an embodiment of the present application is: obtaining power generation data sent by a photovoltaic panel manufacturer, identifying the protocol type of the power generation data, calling a protocol interface corresponding to the protocol type according to the protocol type of the power generation data, receiving the power generation data through the corresponding protocol interface, converting the format of the power generation data into a preset format, and obtaining the converted power generation data. The number of protocol interfaces in this solution is only related to the number of protocol types. When the number of connected photovoltaic panel manufacturers increases, as long as the protocol type for transmitting power generation data does not increase, the number of protocol interfaces for receiving power generation data will not increase. Therefore, the present application is more convenient for connecting to a large number of photovoltaic panel manufacturers to collect power generation data.
[0080] The present application also discloses an intelligent interface connection system. Figure 6 , an intelligent interface connection system includes: a data acquisition module 1, a protocol identification module 2, a data receiving module 3, and a format conversion module 4.
[0081] A data acquisition module is used to obtain power generation data sent by photovoltaic panel manufacturers;
[0082] A protocol identification module, used to identify the protocol type of the power generation data, and call a protocol interface corresponding to the protocol type according to the protocol type of the power generation data;
[0083] A data receiving module, used for receiving power generation data sent by photovoltaic panel manufacturers through a corresponding protocol interface;
[0084] The format conversion module is used to convert the format of the power generation data into a preset format to obtain the converted power generation data.
[0085] It should be noted that: when the system provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the smart interface connection system and the smart interface connection method embodiment provided in the above embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0086] The present application also provides a computer storage medium that can store multiple instructions, which are suitable for being loaded and executed by a processor as described above. Figure 1 The embodiment of the smart interface connection method shown in FIG. Figure 1 The specific description of the illustrated embodiment will not be repeated here.
[0087] An embodiment of the present application also provides an electronic device.
[0088] Please refer to Figure 7 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0089] The communication bus 1002 is used to realize the connection and communication between these components.
[0090] The user interface 1003 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.
[0091] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0092] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts within the entire server 1000, and executes various functions and processes data of the server 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, but may be implemented separately through a chip.
[0093] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 1005 may optionally be at least one storage system located away from the aforementioned processor 1001. As Figure 7 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of an intelligent interface connection method.
[0094] exist Figure 7 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call an application program storing an intelligent interface connection method in the memory 1005. When executed by one or more processors, the electronic device executes a method such as any one of the above embodiments.
[0095] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute any one of the methods in the above embodiments.
[0096] Those skilled in the art can clearly understand that the technical solution of the present application can be implemented with the help of software and / or hardware. The "module" in this specification refers to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0097] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0098] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0099] In the several embodiments provided in the present application, it should be understood that the disclosed system can be implemented in other ways. For example, the system embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of the system or unit can be electrical or other forms.
[0100] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0101] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0103] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0104] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
[0105] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A smart interface connection method, characterized in that: The following steps are involved: Obtain power generation data sent by photovoltaic panel manufacturers; Identify the protocol type of the power generation data, and detect the state of the corresponding protocol interface, wherein the state includes a use state and an idle state; Determine whether the state of the corresponding protocol interface is in use, and if the state of the corresponding protocol interface is in use, add a queue identifier to the power generation data; The state of the corresponding protocol interface is detected regularly at a preset interval, and when the state of the protocol interface changes from a use state to an idle state, the protocol interface corresponding to the protocol type is called in sequence according to the order of the queue identifier and according to the protocol type of the power generation data through the corresponding protocol interface; Receiving the power generation data sent by the photovoltaic panel manufacturer through the corresponding protocol interface, so that the maintenance software can obtain the power generation data, and deleting the added queue identifier before receiving the power generation data; Parsing the data structure of the power generation data to obtain the data structure of the power generation data, comparing the data structure of the power generation data with the data structures of preset template data of different formats in turn for similarity, obtaining a number of similarity comparison results, and confirming the data format corresponding to the template data having a similarity greater than a preset similarity and the highest similarity in the similarity comparison results as the data format of the power generation data; A conversion script corresponding to the data format is called to convert the format of the power generation data to obtain converted power generation data.
2. The intelligent interface connection method according to claim 1, characterized in that: After the step of obtaining the converted power generation data, the method further includes: The manufacturer identification of the converted power generation data is queried, and the converted power generation data is stored in a storage space corresponding to the manufacturer identification according to the manufacturer identification.
3. The intelligent interface connection method according to claim 1, characterized in that: Before the step of receiving the power generation data sent by the photovoltaic panel manufacturer through the corresponding protocol interface, the step further includes: Acquire protocol information, where the protocol information is information about commonly used protocol types when performing data communication; A protocol interface corresponding to each protocol in the protocol information is created to receive power generation data of the corresponding protocol sent by the photovoltaic panel manufacturer through the protocol interface.
4. The intelligent interface connection method according to claim 2, characterized in that: After the step of storing the converted power generation data in the database storage space corresponding to the manufacturer identifier according to the manufacturer identifier, the method further includes: Performing structured processing on the converted power generation data by using a data warehouse algorithm to obtain standard power generation data; A fault analysis result is obtained according to a preset fault analysis rule, a preset reference data range and the standard power generation data, and the fault analysis result is displayed.
5. The intelligent interface connection method according to claim 4, characterized in that: The step of obtaining the fault analysis result according to the preset fault analysis rules, the preset reference data range and the standard power generation data specifically includes: determining in sequence whether several data in the standard power generation data are within a preset corresponding reference data range; If not, then the data in the standard power generation data that is not within the preset corresponding reference data range is screened out to obtain fault data; A fault analysis result corresponding to the fault data is obtained according to the preset fault correspondence table and the fault data.
6. The intelligent interface connection system according to claim 1, characterized in that: The system comprises: A data acquisition module (1) is used to acquire power generation data sent by a photovoltaic panel manufacturer; A protocol identification module (2) is used to identify the protocol type of the power generation data, detect the state of the corresponding protocol interface, the state including the use state and the idle state; determine whether the state of the corresponding protocol interface is the use state, and if the state of the corresponding protocol interface is the use state, add a queue mark to the power generation data; regularly detect the state of the corresponding protocol interface at a preset interval, and when the state of the protocol interface changes from the use state to the idle state, call the protocol interface corresponding to the protocol type in the order of the queue mark through the corresponding protocol interface and according to the protocol type of the power generation data; A data receiving module (3) is used to receive power generation data sent by the photovoltaic panel manufacturer through the corresponding protocol interface, so that the maintenance software can obtain the power generation data, and delete the added queue identifier before receiving the power generation data; The format conversion module (4) is used to parse the data structure of the power generation data to obtain the data structure of the power generation data, compare the data structure of the power generation data with the data structures of preset template data of different formats in turn for similarity, obtain a plurality of similarity comparison results, confirm the data format corresponding to the template data with a similarity greater than a preset similarity and the highest similarity in the similarity comparison results as the data format of the power generation data; and call a conversion script corresponding to the data format to perform format conversion on the power generation data to obtain converted power generation data.
7. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as claimed in any one of claims 1 to 5.
8. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 5.
