Channel state detection method of GOOSE system and GOOSE system

CN116155773BActive Publication Date: 2025-01-14SUNGROW POWER SUPPLY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310020998.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2025-01-14
Estimated Expiration
2043-01-06

AI Technical Summary

Technical Problem

相关技术中,主要通过接收通道距离上一次接收到报文的时间来上报通道状态,然而该方法在每个报文到来时都需要重置定时器,会对cpu造成较大的消耗;且线程间切换和频繁检测其他通道的时间开销较大,还会对GOOSE协议的实时性产生较大影响,会增加时间开销,从而影响GOOSE系统的实时性

Benefits of technology

[0032] Wherein, the channel status includes normal status, alarm status and disconnected status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155773B_ABST
    Figure CN116155773B_ABST
Patent Text Reader

Abstract

The present application discloses a channel status detection method and a GOOSE system of a GOOSE system, belonging to the field of GOOSE systems. The GOOSE system includes multiple channels, and the multiple channels share a target timer. The method includes: determining the timeout status of the target timer based on the timeout duration corresponding to the multiple channels; obtaining the channel status of each channel when the target timer times out; reporting the target channel status of the GOOSE system based on the status of each channel; wherein the channel status includes a normal state, an alarm state, and a disconnected state. The channel status detection method of the GOOSE system of the present application can significantly reduce CPU consumption and other additional time overheads, thereby improving the real-time performance of the GOOSE system, and solving the technical problem of low real-time performance of the GOOSE system in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of GOOSE system, and in particular to a channel status detection method of a GOOSE system and a GOOSE system. Background Art

[0002] GOOSE (Generic Object Oriented Substation Event) refers to a substation event oriented to a general object. The transmission of GOOSE messages adopts a mechanism that combines heartbeat messages and position change messages with fast retransmission. In related technologies, the channel status is mainly reported by the time from the last time the receiving channel received a message. However, this method requires resetting the timer when each message arrives, which will cause a large consumption of the CPU; and the time overhead of switching between threads and frequently detecting other channels is large, which will also have a great impact on the real-time performance of the GOOSE protocol, increase the time overhead, and thus affect the real-time performance of the GOOSE system. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a channel state detection method of a GOOSE system and a GOOSE system to effectively improve the real-time performance of the GOOSE system.

[0004] In a first aspect, the present application provides a channel status detection method of a GOOSE system, wherein the GOOSE system includes multiple channels, and the multiple channels share a target timer. The method includes:

[0005] Determining a timeout state of the target timer based on the timeout durations corresponding to the multiple channels;

[0006] When the target timer times out, obtaining the channel status of each of the channels;

[0007] Based on the status of each channel, reporting the target channel status of the GOOSE system;

[0008] The channel status includes a normal status, an alarm status and a disconnected status.

[0009] According to the channel status detection method of the GOOSE system of the present application, by setting the same target timer in multiple channels of the GOOSE system to detect the channel status of each channel, and uploading the target channel status of the GOOSE system based on the channel status of all channels, the CPU consumption and other additional time overheads can be significantly reduced, thereby improving the real-time performance of the GOOSE system and solving the technical problem of low real-time performance of the GOOSE system in the prior art.

[0010] According to an embodiment of the present application, reporting the target channel state of the GOOSE system based on each of the channel states includes:

[0011] Based on the states of the channels, obtaining a first number of channels corresponding to the normal state, a second number of channels corresponding to the alarm state, and a third number of channels corresponding to the disconnected state;

[0012] Based on the first number, the second number, and the third number, the target channel status is reported.

[0013] According to an embodiment of the present application, reporting the target channel status based on the first quantity, the second quantity, and the third quantity includes:

[0014] When the first number is not 0, determining that the target channel state is the normal state;

[0015] When the first number is 0 and the second number is not 0, determining that the target channel state is the alarm state;

[0016] When both the first number and the second number are 0, the target channel state is determined to be the disconnected state.

[0017] According to an embodiment of the present application, based on the target timer, the timeout durations corresponding to the multiple channels are respectively obtained;

[0018] The longest timeout duration is determined as the scheduled timeout duration;

[0019] Based on the timing timeout period, a timeout state of the target timer is determined.

[0020] According to an embodiment of the present application, the acquiring the channel status of each of the channels includes:

[0021] Determine a timeout duration corresponding to the target channel based on the time when the target channel among the multiple channels last received a message and the current time;

[0022] Based on the timeout duration and the heartbeat time, the channel state of the target channel is determined.

[0023] According to an embodiment of the present application, determining the channel state of the target channel based on the timeout duration and the heartbeat time includes:

[0024] When the timeout duration is not less than 0 and less than twice the heartbeat time, determining that the channel state is the normal state;

[0025] When the timeout duration is not less than twice the heartbeat time and less than four times the heartbeat time, determining that the channel state is the alarm state;

[0026] When the timeout duration is not less than four times the heartbeat time, the channel state is determined to be the disconnected state.

[0027] According to an embodiment of the present application, before determining the timeout state of the target timer based on the timeout durations corresponding to the multiple channels, the method further includes: starting the target timer based on an initial timing time.

[0028] In a second aspect, the present application provides a channel state detection device of a GOOSE system, wherein the GOOSE system includes multiple channels, and the multiple channels share a target timer, and the device includes:

[0029] A first processing module, configured to determine a timeout state of the target timer based on timeout durations corresponding to the multiple channels;

[0030] A second processing module, configured to obtain a channel status of each of the channels when the target timer times out;

[0031] A third processing module is used to report the target channel status of the GOOSE system based on the channel status;

[0032] The channel status includes a normal status, an alarm status and a disconnected status.

[0033] According to the channel status detection device of the GOOSE system of the present application, by setting the same target timer in multiple channels of the GOOSE system to detect the channel status of each channel, and uploading the target channel status of the GOOSE system based on the channel status of all channels, the CPU consumption and other additional time overheads can be significantly reduced, thereby improving the real-time performance of the GOOSE system and solving the technical problem of low real-time performance of the GOOSE system in the prior art.

[0034] In a third aspect, the present application provides a GOOSE system, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the channel status detection method of the GOOSE system as described in the first aspect above is implemented.

[0035] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the channel status detection method of the GOOSE system as described in the first aspect above is implemented.

[0036] In a fifth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the channel status detection method of the GOOSE system as described in the first aspect.

[0037] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the channel status detection method of the GOOSE system as described in the first aspect above.

[0038] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0039] By setting the same target timer in multiple channels of the GOOSE system to detect the channel status of each channel, and uploading the target channel status of the GOOSE system based on the channel status of all channels, the CPU consumption and other additional time overhead can be significantly reduced, thereby improving the real-time performance of the GOOSE system and solving the technical problem of low real-time performance of the GOOSE system in the prior art.

[0040] Furthermore, the timeout duration of each channel in the GOOSE system is determined separately by a target timer patrol method, and the longest timeout duration is determined as the target timer's timing timeout duration, so as to dynamically adjust the target timer's timing timeout duration, which can significantly reduce the reset frequency of the target timer, thereby reducing CPU consumption, so as to effectively improve the real-time performance of the GOOSE system.

[0041] Furthermore, the timeout status of each channel in the GOOSE system is determined separately through a target timer patrol method. Only a new thread needs to be opened to detect the status of multiple channels in the GOOSE system, which significantly reduces CPU consumption and eliminates the need for frequent thread switching, reducing other additional performance overhead (such as time overhead), thereby improving the real-time performance of the GOOSE protocol.

[0042] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0044] Figure 1 This is one of the flow charts of the channel status detection method of the GOOSE system provided in the embodiment of the present application;

[0045] Figure 2This is a second flow chart of the channel status detection method of the GOOSE system provided in an embodiment of the present application;

[0046] Figure 3 This is a flow chart of the channel status detection method of the GOOSE system provided in an embodiment of the present application;

[0047] Figure 4 It is a structural diagram of a channel state detection device of a GOOSE system provided in an embodiment of the present application;

[0048] Figure 5 It is a schematic diagram of the structure of the GOOSE system provided in the embodiment of the present application. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0050] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0051] In the following, in combination with the accompanying drawings, the channel state detection method of the GOOSE system, the channel state detection device of the GOOSE system, the GOOSE system and the readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0052] The channel status detection method of the GOOSE system may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.

[0053] The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).

[0054] The channel state detection method of the GOOSE system provided in the embodiment of the present application may be executed by the GOOSE system or a functional module or functional entity in the GOOSE system that can implement the channel state detection method of the GOOSE system. The GOOSE system mentioned in the embodiment of the present application includes but is not limited to mobile phones, tablet computers, computers, cameras and wearable devices, etc. The channel state detection method of the GOOSE system provided in the embodiment of the present application is described below using the GOOSE system as an execution subject as an example.

[0055] like Figure 1 As shown, the channel status detection method of the GOOSE system includes: step 110, step 120 and step 130.

[0056] Step 110: determining a timeout state of a target timer based on timeout durations corresponding to a plurality of channels;

[0057] In this step, the GOOSE system includes multiple channels, and the multiple channels share the same target timer.

[0058] The timeout status includes timeout and non-timeout. It is understandable that, when the target timer times out, the channel status of the GOOSE system needs to be reported and the target timer needs to be reset.

[0059] The reset time of the target timer can be determined based on the timeout durations corresponding to the multiple channels. It is understandable that, at the current moment, when the target timer is more than its corresponding reset time from the last reset time, it is determined that the target timer has timed out.

[0060] It should be noted that, in the present application, the timeout state of the target timer changes dynamically based on changes in the timeout durations corresponding to multiple channels.

[0061] In some embodiments, in a dual-network scenario, one channel may include two sub-channels, and the two sub-channels correspond one-to-one to the two network ports.

[0062] For example, in actual execution, the GOOSE protocol sends and receives data according to the Icd file configuration information, where the Icd configuration hierarchy is as follows:

[0063] The configuration may include one or two network port configuration information, such as eth0 and eth1;

[0064] There may be one or more subscriptions (receiving channels) and publications (sending channels) in the network configuration information;

[0065] One subscription and one publication correspond to one measurement point configuration set;

[0066] A measurement point configuration set includes one or more measurement point configurations, and the multi-channel state detection is determined by calculation and judgment based on the states of all channels.

[0067] In some embodiments, step 110 may include:

[0068] Based on the target timer, obtain the timeout durations corresponding to multiple channels respectively;

[0069] The longest timeout duration is determined as the scheduled timeout duration;

[0070] Based on the timing timeout period, a timeout state of the target timer is determined.

[0071] In this embodiment, the timeout duration is the duration from the time when the channel last receives a message to the current time.

[0072] The timing timeout time is the timeout time of the target timer, that is, the reset time of the target timer.

[0073] In the actual execution process, based on the target timer, the timeout duration corresponding to each channel can be obtained by patrolling, thereby obtaining multiple timeout durations; then, the longest timeout duration is selected from the multiple timeout durations as the timing timeout duration of the target timer.

[0074] The target timer determines whether the time exceeds the timing timeout period based on the time from the last reset time to the current time. If the time exceeds the timing timeout period, the target timer is determined to be timed out; if the time does not exceed the timing timeout period, the target timer is determined to be not timed out.

[0075] It can be understood that in the present application, the timing timeout period changes dynamically with the change of the timeout period corresponding to multiple channels, and is not a fixed value; for example, the longer the longest timeout period, the longer the timing timeout period of the target timer.

[0076] Furthermore, when the timing timeout period changes, the determination of the timeout state of the target timer also changes dynamically.

[0077] According to the channel status detection method of the GOOSE system provided in the embodiment of the present application, the timeout duration of each channel in the GOOSE system is determined respectively by a target timer patrol method, and the longest timeout duration is determined as the timing timeout time of the target timer, so as to realize dynamic adjustment of the timing timeout time of the target timer, which can significantly reduce the reset frequency of the target timer, thereby reducing CPU consumption, so as to effectively improve the real-time performance of the GOOSE system.

[0078] Step 120: When the target timer times out, obtain the channel status of each channel;

[0079] In this step, the channel status may include a normal state, an alarm state, and a disconnected state.

[0080] In the actual execution process, when the target timer times out, the timeout processing function will be called to traverse the timeout situation of each channel, and the channel status of each channel will be determined based on the timeout situation.

[0081] In some embodiments, step 120 may include:

[0082] Determine a timeout duration corresponding to the target channel based on the time when the target channel among the multiple channels last received a message and the current time;

[0083] Based on the timeout duration and the heartbeat duration, the channel status of the target channel is determined.

[0084] In this embodiment, the target channel is any channel among the multiple channels.

[0085] The heartbeat time T0 (timeAllowToLive) is the maximum allowed survival time of the message, that is, the time interval for the message sending device to send the message when the data in the GOOSE system does not change. For example, the message sending device may be a data acquisition controller.

[0086] During the actual execution process, each channel can save the time of the last message received and the heartbeat time corresponding to the channel.

[0087] like Figure 2 As shown, when the target timer times out, the timeout processing function is called to traverse the time of the last message received saved by each channel, calculate the timeout duration corresponding to each channel based on the current time, and determine the channel status of the channel based on the relationship between the timeout duration of the channel and the heartbeat time corresponding to the channel.

[0088] During the research and development process, the inventor discovered that in the related art, each channel is provided with a separate timer, and the timer of each channel sets the timeout of the channel and sets the status value of the channel based on the timeout. This method requires resetting the timer for each incoming message, which results in a certain CPU consumption; in addition, each timer implements the timing function by starting a new thread. In the related art, multiple channels involve multiple threads. In addition to detecting the status of the current channel, each thread needs to detect the status of other channels, resulting in a large time overhead for switching between threads and frequently detecting other channels, which has a significant impact on the real-time performance of the GOOSE protocol.

[0089] In the present application, the timeout status of each channel in the GOOSE system is determined separately by a target timer patrol method. Only a new thread needs to be opened to detect the status of multiple channels in the GOOSE system, which significantly reduces the CPU consumption and reduces the overhead of other additional performance, thereby improving the real-time performance of the GOOSE protocol.

[0090] In some embodiments, determining the channel state of the target channel based on the timeout duration and the heartbeat time may include:

[0091] When the timeout duration is not less than 0 and less than twice the heartbeat time, the channel status is determined to be normal;

[0092] When the timeout duration is not less than two times the heartbeat time and less than four times the heartbeat time, the channel state is determined to be an alarm state;

[0093] When the timeout period is not less than four times the heartbeat period, the channel state is determined to be disconnected.

[0094] In this embodiment, when the target channel receives a message at the current moment, it is determined that the target channel is in a normal state.

[0095] When the target channel does not receive a message at the current moment, and the time since the last message was received is less than 2*T0, it is determined that the target channel is in a normal state.

[0096] When the target channel does not receive a message at the current moment, and the time since the last message was received is not less than 2*T0 and less than 4*T0, such as when no message is received within the time period from 2*T0 to 4*T0, the target channel is determined to be in an alarm state.

[0097] When the target channel does not receive a message at the current time, and the time from the last message reception is not less than 4*T0, if no message is received after 4*T0, the target channel is determined to be in a disconnected state.

[0098] According to the channel status detection method of the GOOSE system provided in the embodiment of the present application, the timeout status of each channel in the GOOSE system is determined respectively by a target timer patrol method. Only a new thread needs to be opened to detect the status of multiple channels in the GOOSE system, which significantly reduces CPU consumption and eliminates the need for frequent thread switching, thereby reducing other additional performance overhead (such as time overhead), thereby improving the real-time performance of the GOOSE protocol.

[0099] Step 130: Based on the status of each channel, report the target channel status of the GOOSE system.

[0100] In this step, the target channel state is the overall channel state of the GOOSE system.

[0101] Continue to refer Figure 2 When the target timer times out, the timeout processing function is called to traverse the time of the last message received saved by each channel and the heartbeat time corresponding to the channel, determine the channel status of the channel, and thus obtain the channel status corresponding to each channel.

[0102] After obtaining the channel status corresponding to all channels, all channel status are sorted to determine the overall channel status of the GOOSE system.

[0103] It can be understood that the more channels in the normal state there are, the more normal the overall channel state of the GOOSE system is, and the more channels in the disconnected state there are, the worse the overall channel state of the GOOSE system is.

[0104] In some embodiments, step 130 may include:

[0105] Based on the status of each channel, obtain a first number of channels corresponding to a normal state, a second number of channels corresponding to an alarm state, and a third number of channels corresponding to a disconnected state;

[0106] Based on the first quantity, the second quantity, and the third quantity, the target channel status is reported.

[0107] In this embodiment, the change type of each channel may also be considered, and the change type is used to characterize the state change of the channel, for example, whether it changes from a normal state to an alarm state or from an alarm state to a disconnected state.

[0108] After obtaining the channel states corresponding to all channels, the number of channels in different states and the change of each channel are counted respectively, and the channel state of the target channel is determined based on the number and change type of each channel.

[0109] In some embodiments, reporting the target channel status based on the first quantity, the second quantity, and the third quantity may include:

[0110] When the first number is not 0, determining that the target channel state is a normal state;

[0111] When the first number is 0 and the second number is not 0, determining that the target channel state is an alarm state;

[0112] When the first number and the second number are both 0, it is determined that the target channel state is a disconnected state.

[0113] In this embodiment, the first number is not 0, which indicates that there are still normal channels in the GOOSE system, and the target channel state is considered to be normal.

[0114] The first number is 0 and the second number is not 0, indicating that there is no normal channel in the GOOSE system but there is still an alarm channel, and the target channel state is considered to be an alarm state.

[0115] The first number and the second number are both 0, indicating that there are no normal channels and alarm channels in the GOOSE system, and all channels are disconnected, and it is determined that the target channel state is a disconnected state.

[0116] In the actual implementation process, if the change type of each channel is taken into consideration, after all channels are initialized, if the first message arrives, the overall channel status reported to the GOOSE system is normal at this time;

[0117] If the last normal channel changes to alarm state, the overall channel state to be reported to the GOOSE system is alarm;

[0118] If the last alarm status channel changes to disconnected status, the overall channel status that needs to be reported to the GOOSE system is disconnected.

[0119] For example, for three receiving channels, initially all three are in disconnected state. When any channel receives a message, the target channel state of the receiving channel is reported as normal. When all three channels are normal, one or two channels change to alarm state. At this time, the target channel state of the receiving channel is still normal. When all three channels change from normal state to alarm state, the target channel state of the receiving channel is reported as abnormal.

[0120] Of course, in other embodiments, other quantity thresholds may be set based on actual conditions to determine the channel status of the target channel based on the quantity of each channel, and this application does not limit this.

[0121] During the research and development process, the inventor discovered that in the related technology, a timer is mainly set in each channel. The timer of each channel only manages the status information of the channel, and the timeout status of the timer corresponding to each channel is determined only based on the situation of the channel itself; this method will cause resource occupation and increase the number of thread overhead, thereby affecting the real-time performance of the GOOSE protocol.

[0122] In the present application, by setting a target timer to patrol all channels and determining the target timer's timing timeout duration based on the timeout duration corresponding to all channels, the number of times the target timer is reset can be significantly reduced, thereby reducing CPU consumption and other additional performance overheads to improve the real-time performance of the GOOSE protocol.

[0123] In addition, by setting a target timer to obtain the status of each channel respectively, and reporting the target channel status of the GOOSE system based on the status of all channels, there is no need to frequently switch threads, which effectively reduces the time overhead, thereby reducing the impact on the real-time performance of the GOOSE protocol and significantly improving the real-time performance of the GOOSE system.

[0124] According to the channel status detection method of the GOOSE system provided in the embodiment of the present application, by setting the same target timer in multiple channels of the GOOSE system to detect the channel status of each channel, and uploading the target channel status of the GOOSE system based on the channel status of all channels, the CPU consumption and other additional time overheads can be significantly reduced, thereby improving the real-time performance of the GOOSE system and solving the technical problem of low real-time performance of the GOOSE system in the prior art.

[0125] In some embodiments, before step 110, the method may further include: starting a target timer based on the initial timing time.

[0126] In this embodiment, the initial timing time is the start time of the target timer.

[0127] The initial timing time can be a user-defined time.

[0128] For example, the initial timing time may be set to 2*T0, which is not limited in this application.

[0129] It is understandable that after the target timer is started, the subsequent reset time can be determined based on the timing timeout time.

[0130] The method of the present application is described below with reference to specific embodiments.

[0131] like Figure 3 As shown, the flag of the first message arrival at the initial moment (i.e., when the system is initialized) is recorded as true, and when a message arrives, the flag of the first message arrival is set to false, and the message arrival time and the T0 value in the message are recorded, and 2*T0 is used as the timer timeout time to start the timer. At this time, it is necessary to report the target channel status as normal; and when the message is not the first message, it is only necessary to record the message arrival time and the T0 value in the message.

[0132] Start the target timer with the initial timing time.

[0133] When the target timer times out, the timeout processing function will be called. First, the current time value is obtained and all channels are traversed. According to the arrival time value of the last message in each channel, T0 and the current time value, the status of each channel is calculated.

[0134] Then, the channel states of all channels are traversed, the number of each channel state is counted, and the target channel state to be reported is determined based on the number of each channel state;

[0135] In some embodiments, when traversing all channels and calculating the status value of each channel, it is also necessary to count the types of channel status changes, such as whether it changes from a normal state to an alarm state or from an alarm state to a disconnected state.

[0136] Then, the number of each channel state is calculated according to the type of channel state to determine the target channel state, specifically:

[0137] If the number of channels whose status has changed to normal is 1, and the number of channels in normal status is 1, it is determined that the target channel status is normal;

[0138] If the number of normal channel states is 0, and the number of alarm channel states is non-0, the target channel state is determined to be alarm;

[0139] If the number of channel status disconnections is equal to the total number of channels, and the number of channel status disconnections becomes non-zero, the target channel status is determined to be disconnected.

[0140] In some embodiments, after step 130, the method may further include: resetting the target timer.

[0141] In this embodiment, after resetting the target timer, steps 110 to 130 may be repeated to perform the next round of detection and reporting of the target channel status of the GOOSE system.

[0142] For example, continue to refer to Figure 3 If 2*T0 is used as the timer timeout period to start the timer for patrol and the target timer times out, when it is determined that the number of normal channel states is 0 and the number of channel states that have changed to alarms is not 0, the target channel state is reported as an alarm state, and then the target timer's timing timeout period is reset based on the maximum timeout period.

[0143] When the target timer times out, the above patrol steps are repeated. If it is determined that the number of channel status disconnections is equal to the total number of channels, and the channel status becomes a non-zero disconnection number, the target channel status is reported as disconnected and the target timer is closed.

[0144] The channel state detection method of the GOOSE system provided in the embodiment of the present application can be executed by a channel state detection device of the GOOSE system. In the embodiment of the present application, the channel state detection device of the GOOSE system executing the channel state detection method of the GOOSE system is taken as an example to illustrate the channel state detection device of the GOOSE system provided in the embodiment of the present application.

[0145] The embodiment of the present application also provides a channel status detection device of a GOOSE system.

[0146] like Figure 4 As shown, the GOOSE system includes multiple channels, and the multiple channels share a target timer. The channel state detection device of the GOOSE system includes: a first processing module 410, a second processing module 420 and a third processing module 430.

[0147] A first processing module 410 is used to determine a timeout state of a target timer based on timeout durations corresponding to a plurality of channels;

[0148] The second processing module 420 is used to obtain the channel status of each channel when the target timer times out;

[0149] The third processing module 430 is used to report the target channel status of the GOOSE system based on the status of each channel;

[0150] The channel status includes normal status, alarm status and disconnect status.

[0151] According to the channel status detection device of the GOOSE system provided in the embodiment of the present application, by setting the same target timer in multiple channels of the GOOSE system to detect the channel status of each channel, and uploading the target channel status of the GOOSE system based on the channel status of all channels, the CPU consumption and other additional time overheads can be significantly reduced, thereby improving the real-time performance of the GOOSE system, and solving the technical problem of low real-time performance of the GOOSE system in the prior art.

[0152] In some embodiments, the third processing module 430 may also be used to:

[0153] Based on the status of each channel, obtain a first number of channels corresponding to a normal state, a second number of channels corresponding to an alarm state, and a third number of channels corresponding to a disconnected state;

[0154] Based on the first quantity, the second quantity, the third quantity, and the change type of each channel, the target channel status is reported.

[0155] In some embodiments, the third processing module 430 may also be used to:

[0156] When the first number is not 0, determining that the target channel state is a normal state;

[0157] When the first number is 0 and the second number is not 0, determining that the target channel state is an alarm state;

[0158] When the first number and the second number are both 0, it is determined that the target channel state is a disconnected state.

[0159] In some embodiments, the first processing module 410 may also be used to:

[0160] Based on the target timer, obtain the timeout durations corresponding to multiple channels respectively;

[0161] The longest timeout duration is determined as the scheduled timeout duration;

[0162] Based on the timing timeout period, a timeout state of the target timer is determined.

[0163] In some embodiments, the second processing module 420 may also be used to:

[0164] Determine a timeout duration corresponding to the target channel based on the time when the target channel among the multiple channels last received a message and the current time;

[0165] Based on the timeout duration and the heartbeat duration, the channel status of the target channel is determined.

[0166] In some embodiments, the second processing module 420 may also be used to:

[0167] When the timeout duration is not less than 0 and less than twice the heartbeat time, the channel status is determined to be normal;

[0168] When the timeout duration is not less than two times the heartbeat time and less than four times the heartbeat time, the channel state is determined to be an alarm state;

[0169] When the timeout period is not less than four times the heartbeat period, the channel state is determined to be disconnected.

[0170] In some embodiments, the apparatus may further include a fourth processing module configured to start the target timer based on an initial timing time before determining a timeout state of the target timer based on timeout durations corresponding to the plurality of channels.

[0171] The channel state detection device of the GOOSE system in the embodiment of the present application can be a GOOSE system, or a component in the GOOSE system, such as an integrated circuit or a chip. The GOOSE system can be a terminal, or other equipment except a terminal.

[0172] The channel state detection device of the GOOSE system provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0173] In some embodiments, Figure 5As shown, the embodiment of the present application also provides a GOOSE system 500, including a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the program is executed by the processor 501, each process of the channel state detection method embodiment of the above-mentioned GOOSE system is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0174] The embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, the various processes of the channel state detection method embodiment of the above-mentioned GOOSE system are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0175] The processor is the processor in the GOOSE system described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0176] An embodiment of the present application also provides a computer program product, including a computer program, which implements the channel status detection method of the above-mentioned GOOSE system when executed by a processor.

[0177] The processor is the processor in the GOOSE system described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0178] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement each process of the channel status detection method embodiment of the above-mentioned GOOSE system, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0179] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0180] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0182] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0183] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0184] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.

Claims

1. A channel status detection method for a GOOSE system, characterized in that: The GOOSE system includes a plurality of channels, the plurality of channels share a target timer, and the method includes: Determining a timeout state of the target timer based on the timeout durations corresponding to the multiple channels; When the target timer times out, obtaining the channel status of each of the channels; Based on the status of each channel, reporting the target channel status of the GOOSE system; Wherein, the channel status includes normal status, alarm status and disconnected status; The determining the timeout state of the target timer based on the timeout durations corresponding to the multiple channels includes: Based on the target timer, respectively obtain the timeout durations corresponding to the multiple channels; The longest timeout duration is determined as the scheduled timeout duration; Based on the timing timeout period, a timeout state of the target timer is determined.

2. The channel state detection method of the GOOSE system according to claim 1, characterized in that: The reporting of the target channel status of the GOOSE system based on the channel status includes: Based on the states of the channels, obtaining a first number of channels corresponding to the normal state, a second number of channels corresponding to the alarm state, and a third number of channels corresponding to the disconnected state; Based on the first number, the second number, and the third number, the target channel status is reported.

3. The channel state detection method of the GOOSE system according to claim 2, characterized in that: The reporting the target channel status based on the first number, the second number, and the third number includes: When the first number is not 0, determining that the target channel state is the normal state; When the first number is 0 and the second number is not 0, determining that the target channel state is the alarm state; When both the first number and the second number are 0, the target channel state is determined to be the disconnected state.

4. The channel state detection method of the GOOSE system according to any one of claims 1 to 3, characterized in that: The obtaining of the channel status of each channel includes: Determine a timeout duration corresponding to the target channel based on the time when the target channel among the multiple channels last received a message and the current time; Based on the timeout duration and the heartbeat time, the channel state of the target channel is determined.

5. The channel state detection method of the GOOSE system according to claim 4, characterized in that: The determining the channel state of the target channel based on the timeout duration and the heartbeat time includes: When the timeout duration is not less than 0 and less than twice the heartbeat time, determining that the channel state is the normal state; When the timeout duration is not less than twice the heartbeat time and less than four times the heartbeat time, determining that the channel state is the alarm state; When the timeout duration is not less than four times the heartbeat time, the channel state is determined to be the disconnected state.

6. The channel state detection method of the GOOSE system according to any one of claims 1 to 3, characterized in that: Before determining the timeout state of the target timer based on the timeout durations corresponding to the multiple channels, the method further includes: starting the target timer based on an initial timing time.

7. A channel status detection device for a GOOSE system, characterized in that: The GOOSE system includes a plurality of channels, the plurality of channels share a target timer, and the device includes: A first processing module, configured to determine a timeout state of the target timer based on timeout durations corresponding to the multiple channels; A second processing module, configured to obtain a channel status of each of the channels when the target timer times out; A third processing module is used to report the target channel status of the GOOSE system based on the channel status; Wherein, the channel status includes normal status, alarm status and disconnected status; The first processing module is used to: Based on the target timer, respectively obtain the timeout durations corresponding to the multiple channels; The longest timeout duration is determined as the scheduled timeout duration; Based on the timing timeout period, a timeout state of the target timer is determined.

8. A GOOSE system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the channel status detection method of the GOOSE system according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the channel status detection method of the GOOSE system as claimed in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the channel status detection method of the GOOSE system according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • GOOSE communication method and device

    CN104734884A

  • Device test method, device and system, storage medium and processor

    CN108169584A