Embedded system and message processing method

By using FPGA filtering and multi-core processing, the problem of low efficiency in GOOSE message processing was solved, enabling efficient processing of large numbers of GOOSE messages and meeting real-time requirements.

CN117009043BActive Publication Date: 2026-11-20SCHNEIDER ELECTRIC IND SAS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210474025.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2026-11-20
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

Existing technologies for processing GOOSE messages are inefficient and time-consuming, especially when dealing with a large number of GOOSE messages, where CPU filtering and processing efficiency is insufficient.

Method used

The FPGA filters the subscribed GOOSE messages and pre-configures the tasks triggered by the GOOSE messages into multiple sub-tasks to be executed by different processing cores, including message moving, parsing and updating the database and message publishing sub-tasks. The first and second processing cores execute different sub-tasks respectively.

Benefits of technology

When faced with a large number of GOOSE messages, it significantly improves processing efficiency, reduces processing time, optimizes CPU load, and meets real-time requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117009043B_ABST
    Figure CN117009043B_ABST
Patent Text Reader

Abstract

The disclosure relates to an embedded system and a message processing method. The embedded system comprises a field programmable gate array (FPGA) configured to determine at least one first generic object oriented substation event (GOOSE) message to which the embedded system subscribes from a plurality of GOOSE messages received from outside, and each first GOOSE message triggers execution of a first task, the first task being pre-configured as a plurality of subtasks; a first processing core configured to execute at least one first subtask in the plurality of subtasks; and a second processing core configured to execute at least one second subtask in the plurality of subtasks; wherein execution of a first first subtask in the at least one first subtask is triggered by the first GOOSE message, and the at least one second subtask is executed after completion of execution of the at least one first subtask.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of this disclosure relate to an embedded system and a message processing method. Background Technology

[0002] Generic Object Oriented Substation Event (GOOSE) is a control class and message structure in the Generic Substation Event (GSE) model.

[0003] To meet GOOSE's real-time requirements, GOOSE-related tasks typically need to be processed within a real-time operating system. For example, GOOSE publish and subscribe functions are usually handled in a real-time operating system such as VxWorks. Generally, to meet GOOSE's P2-level performance requirements, not only is a power system-on-chip (SoC), a real-time operating system, and sufficient system memory resources necessary, but also appropriate optimizations for data processing are required.

[0004] Figure 1 This diagram illustrates the traditional GOOSE message processing flow.

[0005] exist Figure 1 In this system, the Central Processing Unit (CPU) 100 handles all real-time and non-real-time tasks. Real-time tasks 101 include GOOSE-related tasks and other GOOSE-independent real-time tasks. Within the CPU 100, both real-time tasks 101 and non-real-time tasks 102 are executed serially, and GOOSE-related tasks typically do not have the highest priority. In Ethernet, a large number of GOOSE messages are published by many devices, but most of these messages are not needed by the receiving device; for example, the receiving device may only need the GOOSE messages it has subscribed to. However, when faced with a large number of GOOSE messages, the receiving device must first receive and parse each message individually to determine which GOOSE messages it has subscribed to. This results in low efficiency and significant time consumption for the CPU to filter such GOOSE messages. Furthermore, the current CPU processing methods for GOOSE messages further exacerbate the time constraints when dealing with a large number of messages. Summary of the Invention

[0006] To address the issues of low efficiency and excessive time required for processing GOOSE messages in existing technologies, this disclosure provides an embedded system and message processing method. By using an FPGA to filter subscribed GOOSE messages and pre-configuring the tasks triggered by GOOSE messages into multiple subtasks executed by different processing cores, this method can save time and improve efficiency when dealing with a large number of GOOSE messages.

[0007] At least one embodiment of this disclosure provides an embedded system for message processing, comprising: a field-programmable gate array (FPGA) for determining at least one first GOOSE message subscribed to by the embedded system from a plurality of general object-oriented substation event GOOSE messages received from the outside, wherein each first GOOSE message triggers the execution of a first task, the first task being pre-configured as a plurality of subtasks; a first processing core for executing at least one of the plurality of subtasks; and a second processing core for executing at least one of the plurality of subtasks as a second subtask; wherein the execution of the first of the at least one first subtask is triggered by the first GOOSE message, and the at least one second subtask is executed after the at least one first subtask has been executed.

[0008] For example, in an embedded system provided in an embodiment of this disclosure, multiple subtasks are pre-configured to include a message moving subtask, a database parsing and updating subtask, and a message publishing subtask that are executed sequentially; wherein, the message moving subtask is used to move at least one first GOOSE message from the FPGA to a buffer, the database parsing and updating subtask is used to parse the first GOOSE message in the buffer and update the GOOSE message stored in the database, and the message publishing subtask is used to broadcast all GOOSE messages currently stored in the database.

[0009] For example, in an embedded system provided in an embodiment of this disclosure, at least one first subtask includes a message moving subtask and a parsing and updating database subtask, at least one second subtask includes a message publishing subtask, and the second processing core is further configured to receive an update instruction from the database and, in response to the update instruction, execute the message publishing subtask to broadcast all GOOSE messages currently stored in the database, wherein the update instruction is sent to the second processing core by the database after being updated.

[0010] For example, in an embedded system provided in an embodiment of this disclosure, the execution times of the second subtask of the preceding first task and the first subtask of the following first task, which are executed consecutively, at least partially overlap.

[0011] For example, in an embedded system provided in an embodiment of this disclosure, the first processing core is further used to perform a protection task; and the second processing core is further used to perform a data acquisition task and a data transformation task; wherein, the main protection task in the protection task has a higher priority than the message moving subtask, the database parsing and updating subtask, and the message publishing subtask, while the priority of the remaining protection tasks in the protection task is lower than the message moving subtask, the database parsing and updating subtask, and the message publishing subtask, and the priority of the data acquisition task and the data transformation task is higher than the message moving subtask, the database parsing and updating subtask, and the message publishing subtask.

[0012] For example, in an embedded system provided in an embodiment of this disclosure, an FPGA is configured to determine at least one first GOOSE message based on the Media Access Control MAC address and application identifier of the received GOOSE message.

[0013] For example, in an embedded system provided in an embodiment of this disclosure, the execution of at least one first subtask in a first subtask is triggered by a first GOOSE message, including: the first processing core receiving an interrupt message from the FPGA, or the first processing core determining, when polling the FPGA, that there is a subscribed GOOSE message in the FPGA.

[0014] At least one embodiment of this disclosure provides a message processing method for an embedded system, comprising: determining at least one first GOOSE message subscribed to by the embedded system from a plurality of received general object-oriented substation event GOOSE messages, wherein each first GOOSE message triggers the execution of a first task, the first task being pre-configured as a plurality of subtasks; executing at least one first subtask among the plurality of subtasks; and executing at least one second subtask among the plurality of subtasks; wherein the execution of the first first subtask among the at least one first subtask is triggered by the first GOOSE message, and at least one second subtask is executed after the execution of at least one first subtask is completed.

[0015] For example, in a method provided in one embodiment of this disclosure, multiple subtasks are pre-configured to include a message moving subtask, a parsing and updating database subtask, and a message publishing subtask to be executed sequentially; wherein, the message moving subtask moves at least one first GOOSE message from a field-programmable gate array (FPGA) to a buffer in an embedded system, the parsing and updating database subtask parses the first GOOSE message in the buffer and updates the GOOSE messages stored in the database, and the message publishing subtask broadcasts all GOOSE messages currently stored in the database.

[0016] For example, in a method provided in one embodiment of this disclosure, at least one first subtask includes a message moving subtask and a parsing and updating database subtask, and at least one second subtask includes a message publishing subtask. The method further includes: receiving an update indication from the database, and in response to the update indication, performing a message publishing subtask to broadcast all GOOSE messages currently stored in the database, wherein the update indication is sent by the database after it has been updated.

[0017] For example, in a method provided in one embodiment of this disclosure, in two consecutively executed first tasks, the execution times of the second subtask of the preceding first task and the first subtask of the following first task partially overlap.

[0018] For example, one embodiment of the method provided in this disclosure further includes: performing a protection task; and performing a data acquisition task and a data transformation task; wherein, the main protection task in the protection task has a higher priority than the message moving subtask, the database parsing and updating subtask, and the message publishing subtask, while the other protection tasks in the protection task have a lower priority than the message moving subtask, the database parsing and updating subtask, and the message publishing subtask, and the data acquisition task and the data transformation task have a higher priority than the message moving subtask, the database parsing and updating subtask, and the message publishing subtask.

[0019] For example, in a method provided in one embodiment of this disclosure, determining at least one first GOOSE message from a plurality of GOOSE messages includes: determining at least one first GOOSE message based on the Media Access Control (MAC) address and application identifier of the received GOOSE message. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings of the embodiments will be briefly described below. Obviously, the drawings described below only relate to some embodiments of this disclosure, and are not intended to limit this disclosure.

[0021] Figure 1 This is a schematic diagram of the GOOSE message processing flow in the prior art;

[0022] Figure 2 A functional structural diagram of an embedded system provided for at least one embodiment of this disclosure;

[0023] Figure 3 This is a schematic diagram of the structure of an embedded system provided in at least one embodiment of the present disclosure;

[0024] Figure 4 A schematic diagram illustrating an example flow of an embedded system processing GOOSE messages, provided for at least one embodiment of this disclosure;

[0025] Figure 5 This is a schematic diagram illustrating the process of an embedded system processing GOOSE messages, provided for at least one embodiment of this disclosure. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the described embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0027] Unless otherwise defined, the technical or scientific terms used in this disclosure shall have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” and similar terms used in this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an,” “a,” or “the,” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “including,” “comprising,” or “containing,” and similar terms mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. The terms “connected,” “linked,” or similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms “upper,” “lower,” “left,” and “right,” etc., are used only to indicate relative positional relationships, and these relative positional relationships may change accordingly when the absolute position of the described objects changes.

[0028] At least one embodiment of this disclosure provides an embedded system for message processing, comprising: a field-programmable gate array (FPGA) for determining at least one first GOOSE message subscribed to by the embedded system from a plurality of general object-oriented substation event GOOSE messages received from the outside, wherein each first GOOSE message triggers the execution of a first task, the first task being pre-configured as a plurality of subtasks; a first processing core for executing at least one of the plurality of subtasks; and a second processing core for executing at least one of the plurality of subtasks as a second subtask; wherein the execution of the first of the at least one first subtask is triggered by the first GOOSE message, and the at least one second subtask is executed after the at least one first subtask has been executed.

[0029] At least one embodiment of this disclosure provides a message processing method for an embedded system, comprising: determining at least one first GOOSE message subscribed to by the embedded system from a plurality of received general object-oriented substation event GOOSE messages, wherein each first GOOSE message triggers the execution of a first task, the first task being pre-configured as a plurality of subtasks; executing at least one first subtask among the plurality of subtasks; and executing at least one second subtask among the plurality of subtasks; wherein the execution of the first first subtask among the at least one first subtask is triggered by the first GOOSE message, and at least one second subtask is executed after the execution of at least one first subtask is completed.

[0030] This disclosure provides an embedded system and a message processing method that filters subscribed GOOSE messages through an FPGA and pre-configures the tasks triggered by GOOSE messages into multiple subtasks executed by different processing cores. This saves time and improves efficiency when dealing with a large number of GOOSE messages, thereby solving the problems of low efficiency and long processing time for GOOSE messages.

[0031] Figure 2 This is a functional structural diagram of an embedded system provided for at least one embodiment of the present disclosure.

[0032] exist Figure 2 In the embedded system 200, there are three functional components: a field-programmable gate array (FPGA) 210, a driver 220, and an application program 230. Figure 2 The diagram also shows a database 240 that stores GOOSE messages subscribed to by the embedded system 200. Database 240 may be internal to the embedded system 200, for example, it may be part of the memory or storage medium within the embedded system 200. Database 240 may also be an external database to the embedded system 200, and may be any type of database. Optionally, database 240 may maintain a fixed number of GOOSE messages, for example, 100. When the database has not stored 100 GOOSE messages, it may add new GOOSE messages. After storing 100 GOOSE messages, database 240 updates its stored GOOSE messages using a first-in, first-out (FIFO) approach, ensuring that database 240 always stores the 100 most recently received GOOSE messages. Optionally, the number of GOOSE messages maintained by database 240 can be set according to actual needs, for example, less than 100.

[0033] FPGA 210 receives GOOSE messages published by other devices or systems. FPGA 210 filters the received GOOSE messages to identify those subscribed to by embedded system 200. For example, FPGA 210 is pre-configured with the Media Access Control (MAC) address and application identifier of the GOOSE messages subscribed to by embedded system 200. FPGA 210 determines from the received GOOSE messages that have the same MAC address and application identifier as those subscribed to by embedded system 200.

[0034] In this implementation, both driver 220 and application program 230 can be software or programs running on the processor or processing core. Driver 220 is responsible for calling application program 230 when it learns that there is a GOOSE message subscribed to by embedded system 200 in the FPGA, and for receiving the result fed back by application program 230 and feeding the result back to FPGA 210.

[0035] Application 230 is responsible for processing GOOSE messages, including but not limited to moving GOOSE messages from FPGA 210 to the memory or buffer of embedded system 200, then parsing the GOOSE messages one by one, and storing the parsed GOOSE messages in database 240.

[0036] Application 230 can also publish all GOOSE messages currently stored in database 240. Publishing GOOSE messages in embodiments of this disclosure refers to broadcasting the messages over a communication network, such as Ethernet, so that other devices, other embedded systems, or other systems within the Ethernet network can receive these GOOSE messages. It is understood that embedded system 200 may also be in other types of communication networks, and this is not a limitation.

[0037] Optionally, the application 230 can publish GOOSE messages via the FPGA 210. For example, the application 230 can send an instruction to the FPGA 210 to publish a GOOSE message. Thus, communication between the embedded system 200 and the outside world is achieved through the FPGA 210, without the need for additional interfaces.

[0038] In the embodiments of this disclosure, by using FPGA 210 as the "interface" between embedded system 200 and the outside world, GOOSE messages that embedded system 200 has not subscribed to can be quickly filtered out, thereby saving a lot of time for subsequent GOOSE message processing.

[0039] Figure 3This is a schematic diagram of the structure of an embedded system provided for at least one embodiment of the present disclosure.

[0040] exist Figure 3 In the embedded system 300, there are FPGA 310, first processing core 320 and second processing core 330. Figure 3 The diagram also shows a database 340, which is an external database to the embedded system 300 and is connected to the first processing core 320 and the second processing core 330. Understandably, the database 340 can also be located internally within the embedded system 300.

[0041] FPGA 310 is used to determine at least one first GOOSE message subscribed to by embedded system 300 from multiple GOOSE messages received from the outside. The functions of FPGA 310 are related to... Figure 2 Similar to the FPGA 210 in the above text, see the description of FPGA 210 above.

[0042] In this embodiment, the first task is used to process the first GOOSE message, for example, the first task is the function implemented by the application 230 described above.

[0043] For example, multiple subtasks are pre-configured to include a message moving subtask, a database parsing and updating subtask, and a message publishing subtask, executed sequentially. The message moving subtask is used to move at least one first GOOSE message from the FPGA to a buffer. The database parsing and updating subtask is used to parse the first GOOSE message in the buffer and update the GOOSE messages stored in database 340. The message publishing subtask is used to broadcast all GOOSE messages currently stored in database 340. In this embodiment, the buffer is a buffer in the embedded system 300, such as the memory or cache of the embedded system 300.

[0044] In this embodiment, each first GOOSE message triggers the execution of a first task, which is pre-configured into multiple subtasks. A first processing core 320 executes at least one of the multiple subtasks as a first subtask. A second processing core 330 executes at least one of the multiple subtasks as a second subtask. The execution of the first of the at least one first subtasks is triggered by the first GOOSE message, and at least one second subtask is executed after the execution of at least one first subtask is completed.

[0045] In this embodiment, the execution of the first subtask in at least one first subtask is triggered by a first GOOSE message. This can be caused by the first processing core 320 receiving an interrupt message from the FPGA 310, for example, the FPGA 310 hardware interrupting the first processing core 320. Alternatively, the first processing core 320 can poll the FPGA 310 and trigger the execution of the first subtask when it finds a subscribed GOOSE message in the polling data. The first subtask may be, for example, a message shifting subtask.

[0046] Optionally, multiple subtasks are pre-configured based on the processing flow of the first task and the processing capabilities of the first and second processing cores. For example, if the first task includes steps such as message migration, message parsing, database update, and message publishing, then the first task can be configured as a message migration subtask executed by the first processing core, a message parsing subtask executed by the second processing core, a database update subtask, and a message publishing subtask. Alternatively, the first task can be configured as a message migration subtask executed by the first processing core, a message parsing and database update subtask, and a message publishing subtask executed by the second processing core. Subtasks can be distributed approximately evenly among the first and second processing cores based on their load or processing time, or more subtasks can be allocated to processing cores with greater processing capacity based on the remaining processing capabilities of the first and second processing cores.

[0047] Optionally, the first processing core 320 and the second processing core 330 in this embodiment are one or more cores of a CPU, a processor, or a multi-core processor.

[0048] In some embodiments, at least one first subtask includes a message migration subtask and a database parsing and updating subtask, and at least one second subtask includes a message publishing subtask. The message publishing subtask is triggered by the database 340. For example, after being updated, the database 340 sends an update instruction to the second processing core 330. The second processing core 330 receives the update instruction from the database and, in response to the update instruction, executes the message publishing subtask to broadcast all GOOSE messages currently stored in the database 340.

[0049] Optionally, the second processing core 330 broadcasts all currently stored GOOSE messages, or the second processing core 330 moves all currently stored GOOSE messages from the database 340 to the FPGA 310, and the FPGA 310 broadcasts these GOOSE messages.

[0050] In this embodiment, the execution times of the second subtask of the preceding first task and the first subtask of the following first task overlap at least partially in two consecutively executed first tasks. For example, for two consecutively received GOOSE messages, two first tasks will be executed consecutively, wherein the message moving subtask in the second first task, or the message moving subtask and the parsing and updating database subtask, may be executed concurrently with the publishing subtask in the first first task.

[0051] In this embodiment, when faced with a large number of GOOSE messages received simultaneously or continuously, the embedded system can not only use the FPGA to quickly filter out GOOSE messages that have not been subscribed to, but also use the first processing core and the second processing core to execute different subtasks, thereby further improving the processing efficiency of GOOSE messages and shortening the required processing time.

[0052] For example, if the time required for the first processing core 320 and the second processing core 330 to execute the message transfer subtask is T1, the time required to execute the parsing and updating database subtask is T2, and the time required to execute the message publishing subtask is T3, then the total time required to execute N consecutive first tasks is less than N*(T1+T2+T3), where N is an integer greater than or equal to 2.

[0053] Optionally, the first processing core 320 is also used to execute protection tasks. The second processing core 330 is also used to execute data acquisition tasks and data transformation tasks. The protection tasks have a lower priority than the message transfer subtask, the database parsing and updating subtask, and the message publishing subtask; the data acquisition tasks and data transformation tasks have a higher priority than these subtasks. Protection tasks, data acquisition tasks, and data transformation tasks are all real-time tasks required by embedded systems (also known as embedded protection systems) in power systems. Data acquisition tasks typically have the highest priority, and they need to be executed consecutively. Protection tasks have a wide priority range, divided into primary protection tasks and secondary protection tasks (also known as remaining protection tasks). Primary protection tasks have a higher priority, for example, higher than the message transfer subtask, the database parsing and updating subtask, and the message publishing subtask. Remaining protection tasks have a lower priority than these subtasks, allowing them to be executed last among all real-time tasks. For example, when the second processing core 330 is executing data acquisition and data transformation tasks, it receives an update instruction from the database. It waits for the higher-priority data acquisition and data transformation tasks to complete before executing the message publishing subtask. Understandably, in this embodiment, the first and second processing cores can also execute other real-time and non-real-time tasks. Real-time tasks take precedence over all non-real-time tasks, and real-time tasks are executed in descending order of priority. Understandably, the priorities of data acquisition, data transformation, and protection tasks can be set. Similarly, the priorities of message migration subtasks, database parsing and updating subtasks, and message publishing subtasks can also be set. The specific priority settings can be adjusted arbitrarily according to actual needs. The first and second processing cores execute various real-time tasks and real-time subtasks in descending order of priority.

[0054] Optionally, FPGA 310 may also determine at least one first GOOSE message based on the Media Access Control (MAC) address and application identifier of the received GOOSE message. It is important to note that both the MAC address and the application identifier must match for the received GOOSE message to be confirmed as a first GOOSE message. Understandably, FPGA 310 may also use other identifying information that uniquely identifies the source of the GOOSE message to determine the first GOOSE message.

[0055] In some implementations, different priorities can be set for different GOOSE messages. For example, GOOSE messages from certain MAC addresses may have higher priority, and / or GOOSE messages from a specific application (i.e., those with a specific application identifier) ​​may have higher priority. Accordingly, after identifying the first GOOSE message, the message moving subtask can sort the GOOSE messages according to their priority or assign priority to them. The first GOOSE message processed by the parsing and updating database subtask may be a sorted GOOSE message, or the parsing and updating database subtask may process the first GOOSE message according to its priority.

[0056] Figure 4 A schematic diagram of an example flow of an embedded system processing GOOSE messages according to at least one embodiment of the present disclosure is shown.

[0057] Figure 4 Taking embedded system 300 as an example, FPGA 310 receives external GOOSE messages and identifies the first GOOSE message.

[0058] FPGA 310 sends an interrupt message to the first processing core 320, causing the first processing core 320 to execute a message shifting subtask. After the message shifting subtask is completed, the first processing core 320 executes a parsing and updating database subtask, during which the first processing core 320 updates the database 340. After completing the parsing and updating database subtask, the first processing core 320 continues to execute a protection task. The first processing core 320 remains idle for the remaining time before its next interruption.

[0059] After the database 340 is updated, it sends an update instruction to the second processing core 330 to trigger the second processing core 330 to execute the message publishing subtask.

[0060] Before executing the message publishing subtask, the second processing core 330 sequentially executes the data acquisition task and the data transformation task. After the message publishing subtask is completed, the second processing core 330 continues to execute non-real-time tasks. Alternatively, after the message publishing subtask is completed, the second processing core 330 is in an idle state.

[0061] Figure 5 This is a schematic diagram of an embedded system processing GOOSE messages, provided for at least one embodiment of this disclosure.

[0062] This embodiment provides a GOOSE message processing method for embedded systems, including the following steps:

[0063] S501, determine at least one first GOOSE message subscribed to by the embedded system from multiple received general object-oriented substation event GOOSE messages. Each first GOOSE message triggers the execution of a first task, which is pre-configured into multiple subtasks.

[0064] S502, execute at least one of the first subtasks among a plurality of subtasks.

[0065] S503, Execute at least one second subtask among multiple subtasks. The execution of the first subtask in the at least one first subtask is triggered by a first GOOSE message, and the at least one second subtask is executed after the at least one first subtask has been completed.

[0066] Execute step S501. For example, multiple GOOSE messages are received by the FPGA in the embedded system, and a first GOOSE message is determined. Alternatively, multiple GOOSE messages are received by the interface of the embedded system, and the first GOOSE message is determined from the multiple GOOSE messages by dedicated hardware, software, or a combination of hardware and software. Optionally, at least one first GOOSE message is determined based on the Media Access Control (MAC) address and application identifier of the received GOOSE messages. The method for determining the first GOOSE message can be found in the relevant description above and will not be repeated here.

[0067] Optionally, multiple subtasks are pre-configured to include a message moving subtask, a database parsing and updating subtask, and a message publishing subtask, executed sequentially. Specifically, the message moving subtask moves at least one received first GOOSE message to a buffer in the embedded system; the database parsing and updating subtask parses the first GOOSE messages in the buffer and updates the GOOSE messages stored in the database; and the message publishing subtask broadcasts all currently stored GOOSE messages in the database. For example, the message moving subtask moves at least one first GOOSE message from the FPGA to the buffer in the embedded system, or moves at least one first GOOSE message from the interface of the embedded system to the buffer.

[0068] Execute steps S502 and S503. In some embodiments, at least one first subtask includes a message migration subtask and a database parsing and updating subtask, and at least one second subtask includes a message publishing subtask. In still other embodiments, at least one first subtask includes a message migration subtask, and at least one second subtask includes a database parsing and updating subtask and a message publishing subtask.

[0069] In this embodiment, when performing step S503, an update instruction is also received from the database, and in response to the update instruction, a message publishing subtask is performed to broadcast all GOOSE messages currently stored in the database. The update instruction is sent by the database after it has been updated.

[0070] Optionally, in two consecutively executed first tasks, the execution times of the second subtask of the preceding first task and the first subtask of the following first task partially overlap. For example, the message publishing subtask of the preceding first task and the message moving subtask of the following first task are executed in parallel, so that at least part of their execution times overlap.

[0071] Optionally, the method in this embodiment can also perform protection tasks, data acquisition tasks, and data transformation tasks. The protection task has a lower priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask; the data acquisition task and the data transformation task have a higher priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask.

[0072] In this embodiment, the first subtask and the second subtask are executed by different processing cores or processors, which can effectively reduce the problems of low efficiency and long processing time of GOOSE messages caused by serial operation.

[0073] In general, the various exemplary embodiments of this disclosure can be implemented in hardware or dedicated circuitry, software, firmware, logic, or any combination thereof. Some aspects can be implemented in hardware, while others can be implemented in firmware or software that can be executed by a controller, microprocessor, or other computing device. When aspects of embodiments of this disclosure are illustrated or described as block diagrams, flowcharts, or using some other graphical representation, it will be understood that the blocks, apparatuses, systems, techniques, or methods described herein can be implemented as non-limiting examples in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0074] The memory in the embodiments of this disclosure may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM) used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous interconnected dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0075] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing at least one executable instruction for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0076] In general, the various exemplary embodiments of this disclosure can be implemented in hardware or dedicated circuitry, software, firmware, logic, or any combination thereof. Some aspects can be implemented in hardware, while others can be implemented in firmware or software that can be executed by a controller, microprocessor, or other computing device. When aspects of embodiments of this disclosure are illustrated or described as block diagrams, flowcharts, or using some other graphical representation, it will be understood that the blocks, apparatuses, systems, techniques, or methods described herein can be implemented as non-limiting examples in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0077] The exemplary embodiments of this disclosure described in detail above are merely illustrative and not restrictive. Those skilled in the art will understand that various modifications and combinations can be made to these embodiments or their features without departing from the principles and spirit of this disclosure, and such modifications should fall within the scope of this disclosure.

Claims

1. An embedded system for message processing, comprising: A field-programmable gate array (FPGA) is used to determine at least one first GOOSE message subscribed to by the embedded system from multiple general object-oriented substation event GOOSE messages received from the outside, and each first GOOSE message triggers the execution of a first task, which is pre-configured into multiple subtasks. A first processing core is configured to execute at least one of the plurality of subtasks; as well as A second processing core is used to execute at least one of the plurality of subtasks; The execution of the first subtask in the at least one first subtask is triggered by the first GOOSE message, and the at least one second subtask is executed after the at least one first subtask has been executed.

2. The embedded system according to claim 1, wherein, The multiple subtasks are pre-configured to include a message moving subtask to be executed sequentially, a database parsing and updating subtask, and a message publishing subtask. The message moving subtask is used to move at least one first GOOSE message from the FPGA to the buffer; the parsing and updating database subtask is used to parse the first GOOSE message in the buffer and update the GOOSE message stored in the database; and the message publishing subtask is used to broadcast all GOOSE messages currently stored in the database.

3. The embedded system according to claim 2, wherein, The at least one first subtask includes the message migration subtask and the database parsing and updating subtask, and the at least one second subtask includes the message publishing subtask. The second processing core is also configured to receive an update indication from the database and, in response to the update indication, execute the message publishing subtask to broadcast all GOOSE messages currently stored in the database, wherein the update indication is sent to the second processing core by the database after being updated.

4. The embedded system as described in claim 1, wherein, In two consecutive first tasks, the execution times of the second subtask of the first task and the first subtask of the second task overlap at least partially.

5. The embedded system according to claim 2, wherein, The first processing core is also used to perform protection tasks; and The second processing core is also used to perform data acquisition tasks and data transformation tasks; Among these, the primary protection task has a higher priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask, while the remaining protection tasks have a lower priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask. The data acquisition task and the data transformation task have a higher priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask.

6. The embedded system according to claim 1, wherein, The FPGA is configured to determine the at least one first GOOSE message based on the Media Access Control MAC address and application identifier of the received GOOSE message.

7. The embedded system according to claim 1, wherein, The execution of the first subtask in the at least one first subtask is triggered by the first GOOSE message, including: The first processing core receives an interrupt message from the FPGA, or When the first processing core polls the FPGA, it determines that there are subscribed GOOSE messages in the FPGA.

8. A message processing method for an embedded system, comprising: The embedded system determines at least one first GOOSE message subscribed to from multiple received general object-oriented substation event GOOSE messages, wherein each first GOOSE message triggers the execution of a first task, which is pre-configured as multiple subtasks. Execute at least one first subtask of the plurality of subtasks; and Execute at least one second subtask among the plurality of subtasks; The execution of the first subtask in the at least one first subtask is triggered by the first GOOSE message, and the at least one second subtask is executed after the at least one first subtask has been executed.

9. The message processing method according to claim 8, wherein, The multiple subtasks are pre-configured to include a message moving subtask to be executed sequentially, a database parsing and updating subtask, and a message publishing subtask. Specifically, the message moving subtask is executed to move at least one first GOOSE message from the FPGA to a buffer in the embedded system; the parsing and updating database subtask is executed to parse the first GOOSE message in the buffer and update the GOOSE message stored in the database; and the message publishing subtask is executed to broadcast all GOOSE messages currently stored in the database.

10. The message processing method according to claim 9, wherein, The at least one first subtask includes the message migration subtask and the parsing and updating database subtask; the at least one second subtask includes the message publishing subtask; the method further includes: The system receives an update instruction from the database and, in response to the update instruction, executes the message publishing subtask to broadcast all GOOSE messages currently stored in the database, the update instruction being sent by the database after it has been updated.

11. The message processing method according to claim 10, wherein, In two consecutive first tasks, the execution times of the second subtask of the preceding first task and the first subtask of the following first task partially overlap.

12. The message processing method according to claim 9, wherein, The method further includes: Perform protection tasks; and Perform data acquisition and data transformation tasks; Among these, the primary protection task has a higher priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask, while the remaining protection tasks have a lower priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask. The data acquisition task and the data transformation task have a higher priority than the message migration subtask, the database parsing and updating subtask, and the message publishing subtask.

13. The message processing method according to claim 8, wherein, Determining the at least one first GOOSE message from the plurality of GOOSE messages includes: The at least one first GOOSE message is determined based on the Media Access Control MAC address and application identifier of the received GOOSE message.

Citation Information

Patent Citations

  • Data transmission method based on protection and control system of intelligent substation

    CN106411790A

  • Hierarchical protection system based on virtual container and establishment method thereof

    CN113270854A