Data communication management method, electronic equipment and storage medium

By using the action model ensemble table in the photovoltaic energy storage inverter to manage the communication between the ARM processor and the digital signal processor, the complexity and overhead problems brought about by the multi-task processing mechanism are solved, and the real-time and efficiency of data communication are improved. .

CN119155353APending Publication Date: 2024-12-17HUIZHOU HUINENG JINGDIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411175662.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In existing photovoltaic energy storage inverters, the communication cooperation between ARM processor and digital signal processor increases communication complexity and task scheduling overhead through a multi-task processing mechanism, affecting the real-time and efficiency of data communication.

Method used

By setting up an action model collection table in the photovoltaic energy storage inverter, high abstraction and classification are performed for the data operation tasks generated by the ARM processor and the host computer, and corresponding data operation instructions are found and executed to realize real-time data reading and downs The balance between dispatch operations reduces task scheduling resource overhead.

Benefits of technology

It improves the real-time and efficiency of data communication, reduces the resource overhead generated by task scheduling, simplifies the communication process, and improves the real-time and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155353A_ABST
    Figure CN119155353A_ABST
Patent Text Reader

Abstract

The invention provides a data communication management method, electronic equipment and a storage medium, and the communication management method comprises the steps: generating a first data operation task in response to a received first data processing operation, and searching a first data operation instruction corresponding to the first data operation task in a preset first action model set table; and / or, in response to the received second data processing operation, generating a second data operation task, and searching a second data operation instruction corresponding to the second data operation task in a preset second action model set table; and in response to the found first data operation instruction and / or the second data operation instruction, performing data communication based on the first data operation instruction and / or the second data operation instruction. By means of the method, real-time balance between real-time data reading and operation instruction issuing is achieved, resource overhead generated by task scheduling is reduced, and the real-time performance and efficiency of data communication are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of photovoltaic energy storage inverters, and in particular to a data communication management method, electronic equipment, and storage medium. Background Art

[0002] When the photovoltaic energy storage inverter is running, it generally realizes functions such as data communication through the communication collaboration between the ARM processor (Advanced RISC Machine, ARM) and the digital signal processor (Digital Signal Processor, DSP).

[0003] Currently, the communication and collaboration between ARM and DSP is usually completed through real-time data communication. It uses a multi-tasking mechanism to switch and schedule between multiple tasks, thereby completing the real-time synchronization of data between ARM and DSP. However, the multi-tasking mechanism increases the complexity of the communication process and also increases the overhead of task scheduling. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a data communication management method, an electronic device and a storage medium. During the real-time communication between an ARM processor and a digital signal processor arranged in a photovoltaic energy storage inverter, for the first data operation task and / or the second data operation task generated in response to the ARM processor and / or the host computer, based on a preset action model set table for highly abstracting and classifying the interactive data content in the photovoltaic energy storage inverter, communication management is performed on at least one first data operation instruction and / or the second data operation instruction, thereby achieving a real-time balance between real-time data reading and issuing operation instructions, reducing the resource overhead generated by task scheduling, and improving the real-time and efficiency of data communication.

[0005] The present application provides a data communication management method, the communication management method comprising:

[0006] In response to receiving the first data processing operation, a first data operation task is generated, and a first data operation instruction corresponding to the first data operation task is searched in a preset first action model set table;

[0007] and / or, in response to receiving a second data processing operation, generating a second data operation task, and searching a preset second action model set table for a second data operation instruction corresponding to the second data operation task;

[0008] In response to finding the first data operation instruction and / or the second data operation instruction, data communication is performed based on the first data operation instruction and / or the second data operation instruction.

[0009] Further, the preset first action model set table and the preset second action model set table are obtained through the following steps:

[0010] For a plurality of data writing operations among the preset plurality of data processing operations, respectively analyzing the operation modes and operation objects of the plurality of data writing operations, and generating a plurality of writing action models;

[0011] Based on the multiple write action models and in combination with the operation scenarios corresponding to the multiple write data operations, obtain the first action model set table;

[0012] The second action model set table is obtained based on the first action model set table and the register address ranges corresponding to the multiple write data operations.

[0013] Further, in response to receiving the first data processing operation, generating a first data operation task, and searching a preset first action model set table for a first data operation instruction corresponding to the first data operation task, includes:

[0014] In response to receiving a first data processing operation by a display disposed in a photovoltaic energy storage inverter, a first data operation task is generated, and it is determined whether a task type of the first data operation task is a write operation task;

[0015] If yes, determining the write action model corresponding to the first data operation task based on a plurality of preset write action models;

[0016] Based on the write action model, a first data operation instruction corresponding to the first data operation task is searched in a preset first action model set table.

[0017] Further, searching a preset first action model set table for a first data operation instruction corresponding to the first data operation task based on the write action model includes:

[0018] Based on the write action model, determining a first instruction set corresponding to the write action model in a preset first action model set table;

[0019] Check whether the trigger enable flag corresponding to each data operation instruction in the first instruction set is a first preset value, and obtain a first check result;

[0020] Based on the first inspection result, at least one data operation instruction whose trigger enable flag is a first preset value is found in the first instruction set, and the at least one data operation instruction is determined as the first data operation instruction corresponding to the first data operation task.

[0021] Further, in response to finding the first data operation instruction, data communication is performed based on the first data operation instruction through the following steps:

[0022] In response to finding the at least one first data operation instruction, determining an execution order corresponding to the at least one first data operation instruction;

[0023] Based on the execution order, controlling the ARM processor disposed in the photovoltaic energy storage inverter to send each first data operation instruction of the at least one first data operation instruction to the digital signal processor disposed in the photovoltaic energy storage inverter;

[0024] In response to the first data operation instruction being sent to the digital signal processor, the digital signal processor is controlled to adjust the trigger enable flag corresponding to the first data operation instruction from the first preset value to the second preset value to perform data communication between the ARM processor and the digital signal processor.

[0025] Further, in response to receiving the second data processing operation, generating a second data operation task, and searching a preset second action model set table for a second data operation instruction corresponding to the second data operation task, comprises:

[0026] In response to receiving a second data processing operation by a host computer disposed in the photovoltaic energy storage inverter, a second data operation task is generated, and it is determined whether the task type of the second data operation task is a write operation task;

[0027] If yes, determining the register address range corresponding to the second data operation task, and determining the write action model corresponding to the second data operation task based on a plurality of preset write action models;

[0028] Based on the write action model and the register address range, a second data operation instruction corresponding to the second data operation task is searched in a preset second action model set table.

[0029] Further, searching a preset second action model set table for a second data operation instruction corresponding to the second data operation task based on the write action model and the register address range includes:

[0030] Based on the write action model and the register address range, determining a second instruction set corresponding to the write action model in a preset second action model set table;

[0031] Check whether the trigger enable flag corresponding to each data operation instruction in the second instruction set is a first preset value, to obtain a second check result;

[0032] Based on the second inspection result, at least one data operation instruction whose trigger enable flag is a first preset value is screened out from the second instruction set, and the at least one data operation instruction is determined as the second data operation instruction corresponding to the second data operation task.

[0033] Further, in response to finding the second data operation instruction, data communication is performed based on the second data operation instruction through the following steps:

[0034] In response to finding the at least one second data operation instruction, controlling the ARM processor disposed in the photovoltaic energy storage inverter to obtain the at least one second data operation instruction, and determining the execution order corresponding to the at least one second data operation instruction;

[0035] Based on the execution order, control the ARM processor to send each second data operation instruction of the at least one second data operation instruction to a digital signal processor disposed in the photovoltaic energy storage inverter;

[0036] In response to the second data operation instruction being sent to the digital signal processor, the digital signal processor is controlled to adjust the trigger enable flag corresponding to the second data operation instruction from the first preset value to the second preset value to perform data communication between the ARM processor and the digital signal processor.

[0037] Further, in response to finding the second data operation instruction, the step of performing data communication based on the second data operation instruction also includes:

[0038] In response to the at least one second data operation instruction being completely issued to the digital signal processor, adjusting the issuance completion flag bit corresponding to the flag register set in the ARM processor, and sending the issuance completion flag bit to the host computer;

[0039] In response to the host computer acquiring the sending completion flag, the host computer is controlled to generate an execution result of the second data operation task, and the execution result is visualized.

[0040] The present application also provides a data communication management device, the communication management device comprising:

[0041] A first instruction search module, configured to generate a first data operation task in response to receiving a first data processing operation, and search a preset first action model set table for a first data operation instruction corresponding to the first data operation task;

[0042] A second instruction search module, configured to generate a second data operation task in response to receiving a second data processing operation, and search a preset second action model set table for a second data operation instruction corresponding to the second data operation task;

[0043] A data communication module is used for performing data communication based on the first data operation instruction and / or the second data operation instruction in response to finding the first data operation instruction and / or the second data operation instruction.

[0044] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the data communication management method as described above are performed.

[0045] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data communication management method as described above are executed.

[0046] The data communication management method, electronic device and storage medium provided in the embodiments of the present application, the communication management method includes: in response to receiving a first data processing operation, generating a first data operation task, and searching for a first data operation instruction corresponding to the first data operation task in a preset first action model set table; and / or, in response to receiving a second data processing operation, generating a second data operation task, and searching for a second data operation instruction corresponding to the second data operation task in a preset second action model set table; in response to finding the first data operation instruction and / or the second data operation instruction, performing data communication based on the first data operation instruction and / or the second data operation instruction.

[0047] Compared with the prior art that uses a multi-task processing mechanism to switch and schedule between multiple tasks, thereby completing the real-time synchronization of data between ARM and DSP, during the real-time communication between the ARM processor and the digital signal processor set in the photovoltaic energy storage inverter, for the first data operation task and / or the second data operation task generated by the ARM processor and / or the host computer response, based on the preset action model set table that highly abstracts and classifies the interactive data content in the photovoltaic energy storage inverter, communication management is performed on at least one first data operation instruction and / or the second data operation instruction, thereby achieving a real-time balance between real-time data reading and issuing operation instructions, reducing the resource overhead generated by task scheduling, and improving the real-time and efficiency of data communication.

[0048] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A communication structure diagram of a photovoltaic energy storage inverter provided in an embodiment of the present application;

[0051] Figure 2 A flow chart of a data communication management method provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of the structure of a data communication management device provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0055] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.

[0056] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" is merely a way to describe the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "Including A, B and / or C" means including any one, any two, or any three of A, B, and C.

[0057] It should be understood that in the embodiments of the present application, "B corresponding to A", "B corresponding to A", "A corresponds to B", or "B corresponds to A" means that B is associated with A, and B can be determined according to A. Determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0058] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0059] According to research, the communication and collaboration between ARM and DSP is usually completed through real-time data communication. It uses a multi-tasking mechanism to switch and schedule multiple tasks, thereby completing the real-time synchronization of data between ARM and DSP. However, the multi-tasking mechanism increases the complexity of the communication process and also increases the overhead of task scheduling.

[0060] In response to at least one of the above-mentioned problems, an embodiment of the present application provides a data communication management method, which is generally used in a photovoltaic energy storage inverter. During real-time communication between an ARM processor and a digital signal processor arranged in the photovoltaic energy storage inverter, for a first data operation task and / or a second data operation task generated in response to the ARM processor and / or the host computer, based on a preset action model set table for highly abstracting and classifying the interactive data content in the photovoltaic energy storage inverter, communication management is performed on at least one first data operation instruction and / or a second data operation instruction, thereby achieving a real-time balance between real-time data reading and issuing operation instructions, reducing the resource overhead generated by task scheduling, and improving the real-time and efficiency of data communication.

[0061] Figure 1A communication structure diagram of a photovoltaic energy storage inverter provided in an embodiment of the present application.

[0062] like Figure 1 As shown in , in a communication example of a photovoltaic energy storage inverter, the photovoltaic energy storage inverter 10 may include an ARM processor 110, a host computer 120, a display 130 and a digital signal processor 140, wherein the host computer 120, the display 130 and the digital signal processor 140 are respectively connected to the ARM processor 110 through a communication interface. In addition, the photovoltaic energy storage inverter 10 may also include a battery management module 150, and the battery management module 150 is connected to the ARM processor 110 through a communication interface.

[0063] Here, the photovoltaic energy storage inverter 10 is a device that integrates photovoltaic inversion and energy storage functions. It can not only convert the DC power generated by the solar photovoltaic array into AC power, but also store the excess power.

[0064] Among them, the ARM processor 110 may include but is not limited to a microcontroller or microprocessor based on the ARM architecture. The ARM processor 110 is used to control and manage the overall operation of the photovoltaic energy storage inverter 10; the host computer 120 has important functions such as user operation interaction, data acquisition and monitoring, data processing and analysis, communication and coordination; the display 130 may include a display module and a cloud server interconnected with the ARM processor 110; the digital signal processor 140 is used to receive instructions issued by the ARM processor 110, perform high-speed real-time signal processing, and execute complex control algorithms and other tasks; the battery management module 150 is used to manage the battery power status of the ARM processor 110 and to provide safety protection for the battery of the ARM processor 110.

[0065] Here, before the photovoltaic energy storage inverter 10 receives the data processing operation, the ARM processor 110 and the digital signal processor 140 are in the process of real-time communication; specifically, the ARM processor 110 sends a real-time read instruction to the digital signal processor 140 requiring real-time reading of the target data; in response to receiving the real-time read instruction, the digital signal processor 140 determines whether the target data in the digital signal processor 140 is normal; if normal, the ARM processor 110 reads the target data from the digital signal processor 140 in real time.

[0066] The target data may include but are not limited to PV voltage, current, temperature and other parameters of the photovoltaic energy storage inverter; the user can view the target data through the display 130 or the host computer 120.

[0067] See also Figure 2 , Figure 2A flowchart of a data communication management method provided in an embodiment of the present application.

[0068] like Figure 2 As shown in, the data communication management method provided in the embodiment of the present application, for the first data processing operation and / or the second data processing operation received by the photovoltaic energy storage inverter, may specifically include but is not limited to receiving the first data processing operation issued by the user through the display and / or the second data processing operation input by the host computer in response to the user.

[0069] In the embodiment of the present application, the first data processing operation refers to a data processing operation received and responded to by a display set in the photovoltaic energy storage inverter; the second data processing operation refers to a data processing operation received and responded to by a host computer set in the photovoltaic energy storage inverter.

[0070] Based on this, there are two response entities that receive the first data processing operation and / or the second data processing operation, that is, when determining the data operation instruction corresponding to the generated data operation task, there are two ways to search for the first data operation instruction and / or the second data operation instruction corresponding to the first data operation task and / or the second data operation task in the preset first action model set table and / or the preset second action model set table.

[0071] In the embodiment of the present application, the first data operation task refers to the task generated after the display responds to the first data processing operation; the second data operation task refers to the task generated after the host computer responds to the second data processing operation.

[0072] Furthermore, the first data operation instruction refers to an instruction found by the display in a preset first action model set table based on the first data operation task; the second data operation instruction refers to an instruction found by the host computer in a preset second action model set table based on the second data operation task. In one embodiment, when the receiving subject of the first data processing operation is a display set in a photovoltaic energy storage inverter, the step of finding the first data operation instruction corresponding to the first data operation task specifically includes:

[0073] Step S100: In response to receiving a first data processing operation, a first data operation task is generated, and a first data operation instruction corresponding to the first data operation task is searched in a preset first action model set table.

[0074] In one implementation of the present application, during specific implementation, step S100 may include:

[0075] Step S110: In response to a display disposed in the photovoltaic energy storage inverter receiving a first data processing operation, a first data operation task is generated, and it is determined whether the task type of the first data operation task is a write operation task.

[0076] In this step, since the ARM processor and the digital signal processor are in the process of real-time communication, when the ARM processor responds to the display receiving the first data processing operation, it is necessary to determine through the ARM processor whether the task type of the first data operation task is a write operation task, so as to perform instruction search for the write operation task.

[0077] Step S120: If yes, determine the write action model corresponding to the first data operation task based on a plurality of preset write action models.

[0078] In the embodiment of the present application, for multiple write data operations among the preset multiple data processing operations, the operation modes and operation objects of the multiple write data operations are analyzed respectively to generate multiple write action models.

[0079] The preset multiple writing action models may include but are not limited to a first writing action model, a second writing action model, a third writing action model and a fourth writing action model, specifically including:

[0080] The first writing action model may include: writing and updating the data sent by the host computer separately into the parameters corresponding to the ARM processor, and the ARM processor and the digital signal processor do not perform associated internal parameter writing and communication.

[0081] The second write action model may include: sending data from the battery management module or the ARM processor's own calculation results to the register inside the digital signal processor in real time, so as to perform parameter control through the digital signal processor side; for example, the write data of the second write action model may include real-time control parameters such as battery charging current limit value and discharge current limit value.

[0082] The third write action model may include: in response to a write trigger from the display or a write trigger from the cloud, the ARM processor detects the trigger signal and executes a write action of sending parameters, where the parameter sending action is not performed when there is no trigger condition; for example, the write data of the third write action model may include a single-machine setting parameter or a selected one or a group of parameters.

[0083] The fourth write action model may include: when the set write parameter is associated with other parameters, sending the write parameter and the other parameters associated with the write parameter together to the digital signal processor for corresponding processing.

[0084] As an example of the fourth write action model, for example, for the battery type parameters in the communication mechanism of the photovoltaic energy storage inverter, assuming that when the user modifies the battery type parameters, the battery control parameters, charging limit voltage, discharge cut-off voltage and other parameters associated with the currently selected battery type parameters need to be sent to the digital signal processor for processing.

[0085] Here, there may be one or more write action models corresponding to the data operation task. For example, due to the different regulatory parameters in different regions, when modifying the regional regulatory number, the relevant parameters need to be continuously sent to the digital signal processor. The regulatory type data may include separately written power-on parameters, voltage protection parameters, frequency protection parameters, DCI protection parameters, overvoltage load reduction parameters, over-frequency load reduction parameters, reactive power parameters, voltage ride-through parameters, island and ISO related parameters, etc. At this time, when the regulatory type data is written, it can correspond to the first write action model to the fourth write action model.

[0086] Step S130: Based on the write action model, search for a first data operation instruction corresponding to the first data operation task in a preset first action model set table.

[0087] In the embodiment of the present application, the step of obtaining a preset first action model set table specifically includes:

[0088] Step A: for a plurality of data writing operations among the preset plurality of data processing operations, respectively analyze the operation modes and operation objects of the plurality of data writing operations to generate a plurality of writing action models.

[0089] Here, the multiple writing action models are the multiple preset writing action models described in step S120.

[0090] Step B: Based on the multiple write action models and in combination with the operation scenarios corresponding to the multiple write data operations, obtain the first action model set table.

[0091] In an embodiment of the present application, the first action model set table includes multiple data operation instructions, and each data operation instruction may include: action model serial number ID, write instruction content, number of instructions, receiving processing, trigger enable (ENX) and other instruction contents.

[0092] As an example of a first action model set table, the first action model set table includes multiple data operation instructions, for example, the multiple data operation instructions may include: "0, voltage protection parameter write instruction, 1, voltage protection parameter reception and processing, EN0; 1, frequency protection parameter write instruction, 2, frequency protection parameter reception and processing, EN1; 2, DCI protection parameter write instruction 1, DCI protection parameter write instruction 2, DCI protection parameter write instruction 3, 3, DCI protection parameter reception and processing, EN2; 3, overvoltage load reduction parameter write instruction, 1, overvoltage load reduction parameter reception and processing, EN3; 4, battery control parameter write instruction, 1, battery control parameter write, 1, EN4".

[0093] Among them, "2, DCI protection parameter write instruction 1, DCI protection parameter write instruction 2, DCI protection parameter write instruction 3, 3, DCI protection parameter receiving and processing, EN2;" means that when the sending conditions are met, three corresponding data operation instructions are continuously sent within the current communication cycle. After completing the sending of 3 data operation instructions, enter another write instruction check.

[0094] In one implementation of the present application, during specific implementation, step S130 may include:

[0095] Step S131: Based on the write action model, determine a first instruction set corresponding to the write action model in a preset first action model set table.

[0096] In this step, with reference to at least one write action model corresponding to the first data operation task, a first instruction set corresponding to the at least one write action model is searched and determined in a preset first action model set table.

[0097] Step S132: Check whether the trigger enable flag corresponding to each data operation instruction in the first instruction set is a first preset value to obtain a first check result.

[0098] In an embodiment of the present application, the variable value of the trigger enable flag corresponding to each data operation instruction is used to indicate whether the data operation instruction has been issued and completed in the data operation task; the first preset value can be set to 1.

[0099] Exemplarily, when ENX is 1, a write operation is performed in the current communication cycle; when ENX is 0, it indicates that the write operation has been performed in the current communication cycle; for example, the battery control parameter writing belongs to the real-time writing of the second write action model, and "EN4=1" indicates that the write action of the data operation instruction needs to be executed in each communication cycle, thereby achieving the effect of real-time writing.

[0100] Step S133: Based on the first inspection result, search for at least one data operation instruction whose trigger enable flag is a first preset value in the first instruction set, and determine the at least one data operation instruction as the first data operation instruction corresponding to the first data operation task.

[0101] In this step, at least one data operation instruction whose trigger enable flag is a first preset value is searched in the first instruction set to determine the first data operation instruction corresponding to the first data operation task.

[0102] In another way, when the receiving response subject of the second data processing operation is a host computer set in the photovoltaic energy storage inverter, the step of searching for the second data operation instruction corresponding to the second data operation task specifically includes:

[0103] Step S200: In response to receiving a second data processing operation, a second data operation task is generated, and a second data operation instruction corresponding to the second data operation task is searched in a preset second action model set table.

[0104] In one embodiment of the present application, in a specific implementation, the step of the host computer searching for the data operation instruction corresponding to the data operation task in the preset second action model set table in step S200 may include:

[0105] Step S210: In response to receiving a second data processing operation by a host computer disposed in the photovoltaic energy storage inverter, a second data operation task is generated, and it is determined whether the task type of the second data operation task is a write operation task.

[0106] Step S220: If yes, determine the register address range corresponding to the second data operation task, and determine the write action model corresponding to the second data operation task based on a plurality of preset write action models.

[0107] In an embodiment of the present application, the host computer needs to determine the register address range corresponding to the second data operation task, compare the data operation instructions in the second action model set table with the received host computer data, and search for the second data operation instruction corresponding to the second data operation task in the preset second action model set table based on the register address range corresponding to the received second data operation task.

[0108] Step S230: based on the write action model and the register address range, searching for a second data operation instruction corresponding to the second data operation task in a preset second action model set table.

[0109] In an embodiment of the present application, the second action model set table includes multiple data operation instructions, each data operation instruction may include: action model serial number ID, write instruction content, number of instructions, receive processing, trigger enable (ENX), host computer register starting address and host computer register ending address and other instruction contents.

[0110] Based on this, on the basis of the step of obtaining the preset first action model set table, the step of obtaining the preset second action model set table further includes:

[0111] Step C: obtaining the second action model set table based on the first action model set table and the register address ranges corresponding to the multiple write data operations.

[0112] It can be seen that compared with the first action model set table, the preset second action model set table adds the instruction content of the host computer register start address and the host computer register end address for each data operation instruction; wherein, the host computer register start address and the host computer register end address are used to search the preset second action model set table for the second data operation instruction corresponding to the second data operation task according to the register address range corresponding to the received second data operation task.

[0113] In one implementation of the present application, during specific implementation, step S230 may include:

[0114] Step S231: Based on the write action model and the register address range, determine a second instruction set corresponding to the write action model in a preset second action model set table.

[0115] Step S232: Check whether the trigger enable flag corresponding to each data operation instruction in the second instruction set is a first preset value to obtain a second check result.

[0116] Step S233: Based on the second inspection result, filter out at least one data operation instruction whose trigger enable flag is a first preset value in the second instruction set, and determine the at least one data operation instruction as the second data operation instruction corresponding to the second data operation task.

[0117] Among them, the description of S231 to S233 can refer to the description of S131 to S133, and can achieve the same technical effect, which is not repeated here.

[0118] Step S300: In response to finding the first data operation instruction and / or the second data operation instruction, perform data communication based on the first data operation instruction and / or the second data operation instruction.

[0119] In an embodiment of the present application, for the first data operation instruction and / or the second data operation instruction corresponding to the first data operation task and / or the second data operation task found by the ARM processor and / or the host computer, there are also two ways when the ARM processor and the digital signal processor communicate data, that is, in response to finding the first data operation instruction and / or the second data operation instruction, the first data operation instruction and / or the second data operation instruction are communicated data.

[0120] In one embodiment, in response to the ARM processor finding the first data operation instruction, the step of sending the first data operation instruction to the digital signal processor to perform data communication between the ARM processor and the digital signal processor specifically includes:

[0121] Step S310: In response to finding the at least one first data operation instruction, determining an execution order corresponding to the at least one first data operation instruction.

[0122] In this step, since the number of the first data operation instructions found is one or more, it is necessary to determine the execution order corresponding to the one or more first data operation instructions so as to issue the first data operation instructions according to the execution order.

[0123] For example, assuming that when the display receives the first data operation, the generated first data operation task needs to write parameters in real time, and find the first data operation instruction corresponding to the trigger enable flag "EN0=1, EN1=1, EN2=1, EN3=1". In this way, in the next communication cycle, the first data operation instruction of ENX=1 (X=0,1,2,3) will complete the corresponding issuance operations in the execution order.

[0124] Step S320: Based on the execution order, control the ARM processor disposed in the photovoltaic energy storage inverter to send each first data operation instruction of the at least one first data operation instruction to the digital signal processor disposed in the photovoltaic energy storage inverter.

[0125] In this step, at least one first data operation instruction is sent to the digital signal processor through the ARM processor, which is the core control component in the photovoltaic energy storage inverter, according to the execution order corresponding to the at least one first data operation instruction determined, wherein each first data operation instruction is sent separately by the ARM processor, and the digital signal processor will perform corresponding data processing according to the received first data operation instruction.

[0126] Step S330, in response to the first data operation instruction being sent to the digital signal processor, controlling the digital signal processor to adjust the trigger enable flag corresponding to the first data operation instruction from the first preset value to the second preset value to perform data communication between the ARM processor and the digital signal processor.

[0127] In this step, since it is necessary to check whether the trigger enable flag is the first preset value or the second preset value (ENX=1 / 0) within the communication cycle when searching for the first data operation instruction, it is necessary to adjust the trigger enable flag corresponding to the first data operation instruction from the first preset value to the second preset value after the first data operation instruction is issued.

[0128] Furthermore, the digital signal processor performs a control or protection operation according to the received first data operation instruction; in addition, when the first data operation instruction indicates that it has been processed by the ARM processor and a data operation event has been triggered in the background, the parameters corresponding to the first data operation instruction are written into the digital signal processor, and the digital signal processor then performs a control or protection operation according to the received parameters.

[0129] In this way, real-time sending and sending in response to external data processing operation triggers, as well as the processing effect of the associated parameter sending model are achieved, so as to simply and efficiently avoid conventional complex scheduling through semaphores or other system-level task communication mechanisms.

[0130] In another way, in response to the host computer finding the second data operation instruction, the ARM processor obtains the second data operation instruction from the host computer and sends the second data operation instruction to the digital signal processor to perform data communication between the ARM processor and the digital signal processor. Specifically, the steps include:

[0131] Step S340: In response to finding the at least one second data operation instruction, control the ARM processor provided in the photovoltaic energy storage inverter to obtain the at least one second data operation instruction, and determine the execution order corresponding to the at least one second data operation instruction.

[0132] In this step, when the ARM processor responds to at least one second data operation instruction being found by the host computer, the ARM processor is controlled to obtain at least one second data operation instruction from the host computer based on the register address range in the second data operation instruction; then, based on the second data operation instruction, the execution order corresponding to the at least one second data operation instruction is determined for subsequent downward processing.

[0133] Step S350: Based on the execution order, control the ARM processor to send each second data operation instruction in the at least one second data operation instruction to a digital signal processor disposed in the photovoltaic energy storage inverter.

[0134] Step S360, in response to the second data operation instruction being sent to the digital signal processor, controlling the digital signal processor to adjust the trigger enable flag corresponding to the second data operation instruction from the first preset value to the second preset value, so as to perform data communication between the ARM processor and the digital signal processor.

[0135] Exemplarily, when the second data operation task generated by the second data operation received by the upper computer is to modify the regulation number, the second data operation instruction corresponding to the trigger enable flag "EN0=1, EN1=1, EN2=1, EN3=1" is found. In this way, in the next communication cycle, the second data operation instruction with ENX=1 (X=0,1,2,3) is used to complete the corresponding issuance operation in the execution order; after completing the issuance action, EN0=0, EN1=0, EN2=0, EN3=0 are set, thereby realizing the processing of the associated data issuance action.

[0136] As an example of a sending operation, when the second data operation task to be executed is the batch sending of regulatory parameters, the upper computer performs a single batch sending process based on the determined second data operation instruction. Assuming that the batch sending is completed in 9 times, after the single sending is completed, the upper computer performs a response communication check for the second data operation, thereby ensuring the real-time communication of the upper computer.

[0137] Optionally, in addition to the step of performing data communication based on the second data operation instruction in response to finding the second data operation instruction as described in the above steps, steps S370 to S380 are also included. Specifically, steps S370 to S380 are used to illustrate the method of feeding back the execution result to the upper computer after the ARM processor sends the second data operation instruction to the digital signal processor, so as to achieve the effect of accurately notifying the user of the final sent execution result while being compatible with the user response experience.

[0138] Step S370, in response to the at least one second data operation instruction being completely sent to the digital signal processor, adjusting the sending completion flag corresponding to the flag register set in the ARM processor, and sending the sending completion flag to the host computer.

[0139] In this step, after the ARM processor sends all at least one second data operation instruction to the digital signal processor, the variable value of the sending completion flag corresponding to the flag register set in the ARM processor is adjusted to 1, and the variable value of the sending completion flag corresponding to the flag register is sent to the host computer to complete the communication response processing.

[0140] Exemplarily, after the second data operation instruction is completely issued, the issuance completion flag bit corresponding to the flag register is set, that is, the variable value of the issuance completion flag bit corresponding to the flag register is adjusted to 1 ("BAT_FINISH_REG=1").

[0141] Step S380: In response to the host computer acquiring the sending completion flag, the host computer is controlled to generate an execution result of the second data operation task, and the execution result is visualized.

[0142] In this step, after obtaining the sending completion flag corresponding to the flag register sent by the ARM processor, the host computer generates the execution result of the second data operation task based on the variable value of the sending completion flag, and displays the execution result to the user through visualization processing.

[0143] In this way, a data communication management method provided in an embodiment of the present application realizes real-time communication between an ARM processor and a digital signal processor in a photovoltaic energy storage relay through periodic timing scheduling. By means of serial scheduling execution and cyclic detection of trigger enable flags, host computer communication and ARM processor communication are executed in a generated first data operation task and / or second data operation task, thereby achieving real-time data reading, real-time write check, trigger parameter type write check, and host computer write trigger check in one data operation task, thereby avoiding the problem of increasing software complexity by communicating through multiple communication tasks.

[0144] In addition, the above method can minimize the associated adaptability of data communication between ARM processors and digital signal processors between different real-time operating systems, achieve flexible applicability and compatibility with different real-time operating systems, reduce the coupling between software functional modules, and meet the data communication needs of cross-platform application scenarios.

[0145] The data communication management method provided in the embodiment of the present application achieves a real-time balance between real-time data reading and issuing operation instructions, reduces the resource overhead generated by task scheduling, and improves the real-time and efficiency of data communication by communicating with at least one first data operation instruction and / or second data operation instruction based on a preset action model set table that highly abstracts and classifies the interactive data content in the photovoltaic energy storage inverter, during the real-time communication between the ARM processor and the digital signal processor arranged in the photovoltaic energy storage inverter.

[0146] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a data communication management device provided in an embodiment of the present application. Figure 3 As shown in , the communication management device 300 includes:

[0147] A first instruction search module 310 is used to generate a first data operation task in response to receiving a first data processing operation, and search for a first data operation instruction corresponding to the first data operation task in a preset first action model set table;

[0148] A second instruction search module 320, configured to generate a second data operation task in response to receiving a second data processing operation, and search a preset second action model set table for a second data operation instruction corresponding to the second data operation task;

[0149] The data communication module 330 is configured to, in response to finding the first data operation instruction and / or the second data operation instruction, perform data communication based on the first data operation instruction and / or the second data operation instruction.

[0150] Further, when the first instruction search module 310 is used to generate a first data operation task in response to receiving a first data processing operation, and search for a first data operation instruction corresponding to the first data operation task in a preset first action model set table, the first instruction search module 310 is used to:

[0151] In response to receiving a first data processing operation by a display disposed in a photovoltaic energy storage inverter, a first data operation task is generated, and it is determined whether a task type of the first data operation task is a write operation task;

[0152] If yes, determining the write action model corresponding to the first data operation task based on a plurality of preset write action models;

[0153] Based on the write action model, a first data operation instruction corresponding to the first data operation task is searched in a preset first action model set table.

[0154] Further, when the first instruction search module 310 is used to search for the first data operation instruction corresponding to the first data operation task in a preset first action model set table based on the write action model, the first instruction search module 310 is used to:

[0155] Based on the write action model, determining a first instruction set corresponding to the write action model in a preset first action model set table;

[0156] Check whether the trigger enable flag corresponding to each data operation instruction in the first instruction set is a first preset value, and obtain a first check result;

[0157] Based on the first inspection result, at least one data operation instruction whose trigger enable flag is a first preset value is found in the first instruction set, and the at least one data operation instruction is determined as the first data operation instruction corresponding to the first data operation task.

[0158] Further, when the data communication module 330 is used to perform data communication based on the first data operation instruction in response to finding the first data operation instruction, the data communication module 330 is used to:

[0159] In response to finding the at least one first data operation instruction, determining an execution order corresponding to the at least one first data operation instruction;

[0160] Based on the execution order, controlling the ARM processor disposed in the photovoltaic energy storage inverter to send each first data operation instruction of the at least one first data operation instruction to the digital signal processor disposed in the photovoltaic energy storage inverter;

[0161] In response to the first data operation instruction being sent to the digital signal processor, the digital signal processor is controlled to adjust the trigger enable flag corresponding to the first data operation instruction from the first preset value to the second preset value to perform data communication between the ARM processor and the digital signal processor.

[0162] Further, when the second instruction search module 320 is used to generate a second data operation task in response to receiving a second data processing operation, and search for a second data operation instruction corresponding to the second data operation task in a preset second action model set table, the second instruction search module 320 is used to:

[0163] In response to receiving a second data processing operation by a host computer disposed in the photovoltaic energy storage inverter, a second data operation task is generated, and it is determined whether the task type of the second data operation task is a write operation task;

[0164] If yes, determining the register address range corresponding to the second data operation task, and determining the write action model corresponding to the second data operation task based on a plurality of preset write action models;

[0165] Based on the write action model and the register address range, a second data operation instruction corresponding to the second data operation task is searched in a preset second action model set table.

[0166] Further, when the second instruction search module 320 is used to search for the second data operation instruction corresponding to the second data operation task in a preset second action model set table based on the write action model and the register address range, the second instruction search module 320 is used to:

[0167] Based on the write action model and the register address range, determining a second instruction set corresponding to the write action model in a preset second action model set table;

[0168] Check whether the trigger enable flag corresponding to each data operation instruction in the second instruction set is a first preset value, to obtain a second check result;

[0169] Based on the second inspection result, at least one data operation instruction whose trigger enable flag is a first preset value is screened out from the second instruction set, and the at least one data operation instruction is determined as the second data operation instruction corresponding to the second data operation task.

[0170] Further, when the data communication module 330 is used to perform data communication based on the second data operation instruction in response to finding the second data operation instruction, the data communication module 330 is used to:

[0171] In response to finding the at least one second data operation instruction, controlling the ARM processor disposed in the photovoltaic energy storage inverter to obtain the at least one second data operation instruction, and determining the execution order corresponding to the at least one second data operation instruction;

[0172] Based on the execution order, control the ARM processor to send each second data operation instruction of the at least one second data operation instruction to a digital signal processor disposed in the photovoltaic energy storage inverter;

[0173] In response to the second data operation instruction being sent to the digital signal processor, the digital signal processor is controlled to adjust the trigger enable flag corresponding to the second data operation instruction from the first preset value to the second preset value to perform data communication between the ARM processor and the digital signal processor.

[0174] Furthermore, the data communication module 330 is also used for:

[0175] In response to the at least one second data operation instruction being completely sent to the digital signal processor, adjusting a sending completion flag bit corresponding to a flag register set in the ARM processor, and sending the sending completion flag bit to the host computer;

[0176] In response to the host computer acquiring the sending completion flag, the host computer is controlled to generate an execution result of the second data operation task, and the execution result is visualized.

[0177] The data communication management device provided in the embodiment of the present application achieves a real-time balance between real-time data reading and issuing operation instructions, reduces the resource overhead generated by task scheduling, and improves the real-time and efficiency of data communication by communicating with the first data operation task and / or the second data operation task generated by the response of the ARM processor and / or the host computer based on a preset action model set table that highly abstracts and classifies the interactive data content in the photovoltaic energy storage inverter.

[0178] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0179] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 2 The steps of the data communication management method in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0180] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 2The steps of the data communication management method in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0181] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0182] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0183] 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.

[0184] 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.

[0185] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0186] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A data communication management method, characterized in that: The communication management method comprises: In response to receiving the first data processing operation, a first data operation task is generated, and a first data operation instruction corresponding to the first data operation task is searched in a preset first action model set table; and / or, in response to receiving a second data processing operation, generating a second data operation task, and searching a preset second action model set table for a second data operation instruction corresponding to the second data operation task; In response to finding the first data operation instruction and / or the second data operation instruction, data communication is performed based on the first data operation instruction and / or the second data operation instruction.

2. The method according to claim 1, characterized in that: The preset first action model set table and the preset second action model set table are obtained by the following steps: For a plurality of data writing operations among the preset plurality of data processing operations, respectively analyzing the operation modes and operation objects of the plurality of data writing operations to generate a plurality of writing action models; Based on the multiple write action models and in combination with the operation scenarios corresponding to the multiple write data operations, obtain the first action model set table; The second action model set table is obtained based on the first action model set table and the register address ranges corresponding to the multiple write data operations.

3. The method according to claim 1, characterized in that The step of generating a first data operation task in response to receiving the first data processing operation and searching a preset first action model set table for a first data operation instruction corresponding to the first data operation task comprises: In response to receiving a first data processing operation by a display disposed in a photovoltaic energy storage inverter, a first data operation task is generated, and it is determined whether a task type of the first data operation task is a write operation task; If yes, determining the write action model corresponding to the first data operation task based on a plurality of preset write action models; Based on the write action model, a first data operation instruction corresponding to the first data operation task is searched in a preset first action model set table.

4. The method according to claim 3, characterized in that The step of searching a preset first action model set table for a first data operation instruction corresponding to the first data operation task based on the write action model includes: Based on the write action model, determining a first instruction set corresponding to the write action model in a preset first action model set table; Check whether the trigger enable flag corresponding to each data operation instruction in the first instruction set is a first preset value, and obtain a first check result; Based on the first inspection result, at least one data operation instruction whose trigger enable flag is a first preset value is found in the first instruction set, and the at least one data operation instruction is determined as the first data operation instruction corresponding to the first data operation task.

5. The method according to claim 4, characterized in that In response to finding the first data operation instruction, data communication is performed based on the first data operation instruction by the following steps: In response to finding the at least one first data operation instruction, determining an execution order corresponding to the at least one first data operation instruction; Based on the execution order, controlling the ARM processor disposed in the photovoltaic energy storage inverter to send each first data operation instruction of the at least one first data operation instruction to the digital signal processor disposed in the photovoltaic energy storage inverter; In response to the first data operation instruction being sent to the digital signal processor, the digital signal processor is controlled to adjust the trigger enable flag corresponding to the first data operation instruction from the first preset value to the second preset value to perform data communication between the ARM processor and the digital signal processor.

6. The method according to claim 1, characterized in that The step of generating a second data operation task in response to receiving the second data processing operation, and searching a preset second action model set table for a second data operation instruction corresponding to the second data operation task comprises: In response to receiving a second data processing operation by a host computer disposed in the photovoltaic energy storage inverter, a second data operation task is generated, and it is determined whether the task type of the second data operation task is a write operation task; If yes, determining the register address range corresponding to the second data operation task, and determining the write action model corresponding to the second data operation task based on a plurality of preset write action models; Based on the write action model and the register address range, a second data operation instruction corresponding to the second data operation task is searched in a preset second action model set table.

7. The method according to claim 6, characterized in that The searching, based on the write action model and the register address range, for a second data operation instruction corresponding to the second data operation task in a preset second action model set table includes: Based on the write action model and the register address range, determining a second instruction set corresponding to the write action model in a preset second action model set table; Check whether the trigger enable flag corresponding to each data operation instruction in the second instruction set is a first preset value, to obtain a second check result; Based on the second inspection result, at least one data operation instruction whose trigger enable flag is a first preset value is screened out from the second instruction set, and the at least one data operation instruction is determined as the second data operation instruction corresponding to the second data operation task.

8. The method according to claim 7, characterized in that In response to finding the second data operation instruction, data communication is performed based on the second data operation instruction by the following steps: In response to finding the at least one second data operation instruction, controlling the ARM processor disposed in the photovoltaic energy storage inverter to obtain the at least one second data operation instruction, and determining the execution order corresponding to the at least one second data operation instruction; Based on the execution order, control the ARM processor to send each second data operation instruction of the at least one second data operation instruction to a digital signal processor disposed in the photovoltaic energy storage inverter; In response to the second data operation instruction being sent to the digital signal processor, the digital signal processor is controlled to adjust the trigger enable flag corresponding to the second data operation instruction from the first preset value to the second preset value to perform data communication between the ARM processor and the digital signal processor.

9. The method according to claim 8, characterized in that In response to finding the second data operation instruction, the step of performing data communication based on the second data operation instruction further includes: In response to the at least one second data operation instruction being completely issued to the digital signal processor, adjusting the issuance completion flag bit corresponding to the flag register set in the ARM processor, and sending the issuance completion flag bit to the host computer; In response to the host computer acquiring the sending completion flag, the host computer is controlled to generate an execution result of the second data operation task, and the execution result is visualized.

10. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and the machine-readable instructions are executed by the processor to execute the steps of the data communication management method as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data communication management method according to any one of claims 1 to 9 are executed.