Rogowski coil event detection recording method and system based on finite-state machine

By applying a finite state machine in Roche coil event detection and recording, the problems of complex program logic and poor scalability in the prior art are solved, and clear, readable, easy to maintain and efficient event detection and recording are achieved.

CN120103237AActive Publication Date: 2025-06-06HANGZHOU SUNRISE TECH +1
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202510600077.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-06-06
Estimated Expiration
2045-05-12

AI Technical Summary

Technical Problem

In the detection and recording of Roche coil event, the program logic is complex, the readability is low, the calculation overhead is large, and the expansion is poor, making it difficult to effectively deal with various events and time limits.

Method used

Using a method based on a finite state machine, by obtaining the global state machine and the state transition table, polling the state transition in real time, performing corresponding actions, such as communicating with the Roche coil to store events, and judging the model type by querying the interface voltage to perform counter operations.

Benefits of technology

It realizes clarity and readability of program logic, simplifies maintenance and expansion, and improves computing efficiency and event detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120103237A_ABST
    Figure CN120103237A_ABST
Patent Text Reader

Abstract

The invention discloses a Rogowski coil event detection recording method and a Rogowski coil event detection recording system based on a finite-state machine. The method comprises the following steps: acquiring a set global state machine and a state transition table; real-time polling the state transition table based on a global state machine sub-machine, where the global state machine sub-machine compares with each state transition sub-machine in the state transition table to perform a target action, the target action including communicating with a Rogowski coil to store an event; the interface voltage of the Rogowski coil is inquired to judge the model type, counter operation is executed based on comparison between the model type and the previous state, and the counter operation comprises counter zero clearing or counter detection. A solution is provided for Rogowski coil event detection records, the existing defects and problems in the program design process are specifically solved, and the method has the advantages of being clear in program logic, high in readability, easy to maintain and high in expansibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and more specifically, to a Rogowski coil event detection and recording method and system based on a finite state machine. Background Art

[0002] Existing event detection and recording methods generally use global variables to judge the state of switching detection. For multiple events, the program execution logic is bloated, difficult to debug, has high computational overhead, low program readability, and low scalability.

[0003] Among them, Rogowski coil events include initial power-on events, power-off events, insertion events, and removal events. In addition, fault events need to be recorded in the event of abnormal communication, and time limits are required for different events. Therefore, when using conventional design modes, program logic and functional design have obvious defects when facing the above problems. Summary of the invention

[0004] The purpose of the present invention is to provide a Rogowski coil event detection and recording method and system based on a finite state machine, which provides a solution for Rogowski coil event detection and recording, specifically solves the existing defect problems faced in the program design process, and can make the program logic clear, highly readable, simple to maintain, and highly extensible.

[0005] A first aspect of the present invention provides a Rogowski coil event detection and recording method based on a finite state machine, comprising the following steps: Get the set global state machine and state transition table; polling the state transition table in real time based on a global state machine sub-machine, wherein the global state machine sub-machine compares with each state transition sub-machine in the state transition table to perform a target action, wherein the target action includes communicating with a Rogowski coil to store an event; The interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the model type compared with a previous state. The counter operation includes clearing the counter or detecting the counter.

[0006] In this solution, the element members of the global state machine include: Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

[0007] In this solution, the state transition table specifically includes a plurality of state transition sub-machines, wherein the state transition sub-machine corresponds to a state transition state sub-machine corresponding to all possible events.

[0008] In this solution, the global state machine-based sub-machine performs real-time polling on the state transition table, specifically including: The global state machine sub-machine compares the real-time event with the possible events in each state transition sub-machine in the state transition table; If they are different, continue to search for the next state transition submachine; If they are the same, the state comparison is entered, wherein if the current state is different from the state in the state transition table, the search is exited; if they are the same, the state is switched and the execution action of the corresponding turntable conversion sub-machine is executed.

[0009] In this solution, the executing action includes storing an event and / or communicating with a Rogowski coil.

[0010] In this solution, the interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the comparison of the model type with the previous state. The counter operation includes clearing the counter or detecting the counter, specifically including: When communicating with the Rogowski coil, the interface voltage of the Rogowski coil is queried in real time to determine the model type; Compare the model type with the previous state, wherein if they are the same, clear the counter, and if they are different, enter the counter detection process; When entering the counter detection process, when the duration of the detected insertion event or removal event exceeds a preset time threshold, the event of the global state machine is set.

[0011] The second aspect of the present invention further provides a Rogowski coil event detection and recording system based on a finite state machine, comprising a memory and a processor, wherein the memory comprises a Rogowski coil event detection and recording method program based on a finite state machine, and when the Rogowski coil event detection and recording method program based on a finite state machine is executed by the processor, the following steps are implemented: Get the set global state machine and state transition table; polling the state transition table in real time based on a global state machine sub-machine, wherein the global state machine sub-machine compares with each state transition sub-machine in the state transition table to perform a target action, wherein the target action includes communicating with a Rogowski coil to store an event; The interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the model type compared with a previous state. The counter operation includes clearing the counter or detecting the counter.

[0012] In this solution, the element members of the global state machine include: Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

[0013] In this solution, the state transition table specifically includes a plurality of state transition sub-machines, wherein the state transition sub-machine corresponds to a state transition state sub-machine corresponding to all possible events.

[0014] In this solution, the global state machine-based sub-machine performs real-time polling on the state transition table, specifically including: The global state machine sub-machine compares the real-time event with the possible events in each state transition sub-machine in the state transition table; If they are different, continue to search for the next state transition submachine; If they are the same, the state comparison is entered, wherein if the current state is different from the state in the state transition table, the search is exited; if they are the same, the state is switched and the execution action of the corresponding turntable conversion sub-machine is executed.

[0015] In this solution, the executing action includes storing an event and / or communicating with a Rogowski coil.

[0016] In this solution, the interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the comparison of the model type with the previous state. The counter operation includes clearing the counter or detecting the counter, specifically including: When communicating with the Rogowski coil, the interface voltage of the Rogowski coil is queried in real time to determine the model type; Compare the model type with the previous state, wherein if they are the same, clear the counter, and if they are different, enter the counter detection process; When entering the counter detection process, when the duration of the detected insertion event or removal event exceeds a preset time threshold, the event of the global state machine is set.

[0017] A third aspect of the present invention provides a computer-readable storage medium, which includes a Rogowski coil event detection and recording method program based on a finite state machine. When the Rogowski coil event detection and recording method program based on a finite state machine is executed by a processor, the steps of a Rogowski coil event detection and recording method based on a finite state machine as described in any one of the above items are implemented.

[0018] The present invention discloses a Rogowski coil event detection and recording method and system based on a finite state machine, which provides a solution for Rogowski coil event detection and recording, specifically solves the existing defect problems faced in the program design process, and can make the program logic clear, highly readable, simple to maintain, and highly expansible. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flow chart of a Rogowski coil event detection and recording method based on a finite state machine of the present invention is shown; Figure 2 A schematic diagram showing the state transition of a Rogowski coil event detection and recording method based on a finite state machine according to the present invention is shown; Figure 3 A flow chart showing the state switching of a Rogowski coil event detection and recording method based on a finite state machine of the present invention is shown; Figure 4 A detection flow chart of a Rogowski coil event detection and recording method based on a finite state machine of the present invention is shown; Figure 5 A block diagram of a Rogowski coil event detection and recording system based on a finite state machine of the present invention is shown. DETAILED DESCRIPTION

[0020] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0021] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0022] Figure 1 A flow chart of a Rogowski coil event detection and recording method based on a finite state machine is shown in the present application.

[0023] like Figure 1 As shown, the present application discloses a Rogowski coil event detection and recording method based on a finite state machine, comprising the following steps: S102, obtaining the set global state machine and state transition table; S104, polling the state transition table in real time based on the global state machine sub-machine; S106, the global state machine sub-machine is compared with each state transition sub-machine in the state transition table to perform a target action, wherein the target action includes communicating with a Rogowski coil to store an event; S108, querying the interface voltage of the Rogowski coil to determine the model type, and performing a counter operation based on the model type compared with a previous state, wherein the counter operation includes clearing the counter or detecting the counter.

[0024] It should be noted that, in this embodiment, in order to solve the existing defects faced in the program design process, a Rogowski coil event detection and recording method based on a finite state machine is provided in this embodiment. By obtaining the set global state machine and state transition table for real-time polling, the event is compared and stored in real time, and the state is converted in real time, so that the program logic is clear and the readability is high. In addition, when executing the target action of communicating with the Rogowski coil to store the event, the model type is determined by querying the interface voltage of the Rogowski coil, so that the counter operation can be performed based on the comparison with the previous state. Accordingly, the counter operation performed specifically includes clearing the counter or detecting the counter. The specific execution steps will be described in detail in the subsequent instructions, so as to achieve the characteristics of simple maintenance and strong expansibility in the Rogowski coil detection and recording process.

[0025] According to an embodiment of the present invention, the element members of the global state machine include: Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

[0026] It should be noted that, in this embodiment, the element members of the global state machine are specifically described, including Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

[0027] Specifically, the Rogowski coil information corresponds to the sensor information currently measuring the alternating current, which is specifically composed of a flexible coil that can be wrapped around a conductor and generates a voltage signal by sensing current changes in the conductor; the state transition table pointer is used to indicate the current state of the system or device, and points to the next state when a specific event occurs, where the state transition table usually includes: current state - the current state of the device; trigger event - the event or condition that causes the state transition; next state - the state that the device will enter after the trigger event occurs; execution action - the operation or action performed when the state transition occurs.

[0028] Furthermore, in actual application, the current state of the Rogowski coil may include the following: idle state: the Rogowski coil is not performing any measurement and is in standby mode; measuring state: the Rogowski coil is measuring current and outputting a corresponding voltage signal; fault state: the Rogowski coil fails, such as coil damage or signal abnormality; calibration state: the Rogowski coil is being calibrated to ensure measurement accuracy.

[0029] Furthermore, the next Rogowski coil state depends on the current state and the trigger event, for example: if the current state is the idle state and the trigger event is the start of measurement, the next state is the measurement state; if the current state is the measurement state and the trigger event is the completion of measurement, the next state is the idle state; if the current state is the measurement state and the trigger event is the detection of a fault, the next state is the fault state.

[0030] Furthermore, a trigger event is a condition or action that causes a change in the state of the Rogowski coil. The trigger events in this embodiment specifically include starting measurement: the user issues an instruction to start current measurement; measurement completion: the current measurement is completed and the Rogowski coil stops outputting signals; fault detection: the Rogowski coil detects an abnormal situation, such as signal loss or coil damage; calibration request: a request to calibrate the Rogowski coil.

[0031] Furthermore, after a trigger event occurs, corresponding actions are executed to ensure that the state transition of the Rogowski coil proceeds smoothly. The execution actions in this embodiment include starting measurement: after the measurement start event, the Rogowski coil starts to output a current signal; stopping measurement: after the measurement completion event, the Rogowski coil stops outputting signals and enters an idle state; fault handling: after a fault event is detected, fault information is recorded, and an alarm is issued or a protection mode is entered; calibration operation: after a calibration request event, a calibration procedure is executed to adjust the parameters of the Rogowski coil to ensure measurement accuracy.

[0032] According to an embodiment of the present invention, the state transition table specifically includes a plurality of state transition sub-machines, wherein the state transition sub-machines correspond to state transition state sub-machines corresponding to all possible events.

[0033] It should be noted that, in this embodiment, the state transition table specifically includes a plurality of state transition sub-machines, as shown in Table 1, which is an embodiment of the state transition table. Accordingly, the state transition sub-machine corresponds to the state migration state sub-machine corresponding to all possible events. The state transition table in Table 1 can clearly describe the behavior of the Rogowski coil under different events, thereby ensuring the stable recording of the Rogowski coil event detection. Table 1. State transition table .

[0034] According to an embodiment of the present invention, the real-time polling of the state transition table based on the global state machine sub-machine specifically includes: The global state machine sub-machine compares the real-time event with the possible events in each state transition sub-machine in the state transition table; If they are different, continue to search for the next state transition submachine; If they are the same, the state comparison is entered, wherein if the current state is different from the state in the state transition table, the search is exited; if they are the same, the state is switched and the execution action of the corresponding turntable conversion sub-machine is executed.

[0035] It should be noted that, in this embodiment, Figure 2 As shown, it is a state transition diagram, wherein the Rogowski coil events include an initial power-on event, a power-off event, an insertion event, and an unplugging event, and correspondingly, the states specifically include an initial state, a power-on state, an unplugging state, and an insertion state.

[0036] Furthermore, if Figure 3 As shown, it is a flow chart of state switching, wherein the global state machine is first initialized, and then the global state machine sub-machine compares the possible events (corresponding to different trigger events) in each state transition sub-machine in the state transition table based on real-time events, wherein, if they are different, the next state transition sub-machine is searched; if they are the same, the state comparison is entered, specifically, if the current state is different from the state in the state transition table, the search is exited; if they are the same, the state is switched, and the execution action of the corresponding turntable conversion sub-machine is executed, and finally the real-time polling is continued, and the global state machine sub-machine is the sub-machine of the global state machine.

[0037] According to an embodiment of the present invention, the executing action includes storing an event and / or communicating with a Rogowski coil.

[0038] It should be noted that in this embodiment, the above description is combined with the attached Figure 3 It can be seen that an action needs to be executed after the state is switched, wherein the execution action includes storing events and / or communicating with the Rogowski coil. Accordingly, referring to Table 1, the execution action also includes starting measurement action, stopping measurement action, recording fault and alarming action, restoring measurement function action, executing calibration operation action and returning to idle state action.

[0039] According to an embodiment of the present invention, the interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the comparison of the model type with the previous state. The counter operation includes clearing the counter or detecting the counter, specifically including: When communicating with the Rogowski coil, the interface voltage of the Rogowski coil is queried in real time to determine the model type; Compare the model type with the previous state, wherein if they are the same, clear the counter, and if they are different, enter the counter detection process; When entering the counter detection process, when the duration of the detected insertion event or removal event exceeds a preset time threshold, the event of the global state machine is set.

[0040] It should be noted that, in this embodiment, Figure 4 As shown, it is a detection flow chart. When communicating with the Rogowski coil, its model type can be determined by querying the interface voltage of the Rogowski coil in real time. Different models of Rogowski coils may have different electrical characteristics (such as output voltage range, sensitivity, etc.), so the models can be distinguished by measuring the interface voltage.

[0041] Specifically, the interface voltage is read, specifically, the output voltage of the Rogowski coil is read through an analog or digital interface, and then the model type of the Rogowski coil is determined according to the voltage value (for example, the voltage range of model A is 0-5V, and the voltage range of model B is 5-10V); then the model type is determined, specifically, the read voltage value is compared with the predefined model voltage range to determine the model of the current Rogowski coil.

[0042] Furthermore, based on the comparison between the model type and the previous state, after determining the model of the current Rogowski coil, it is necessary to compare it with the previous state to determine whether a model change has occurred. The process includes comparing the model type, wherein if the current model is the same as the model recorded in the previous state, the counter is cleared; if the current model is different from the model recorded in the previous state, the detection counter flow is entered; further, if the model has not changed, it means that the state of the Rogowski coil is stable and no further processing is required, and the counter is cleared.

[0043] Further, when a model change is detected, a detection counter process is entered to confirm whether the model change is valid (i.e., whether it is a short-term interference or a real insertion / unplugging event), wherein, in the detection of insertion / unplugging events, the insertion event corresponds to the detection of a change in the Rogowski coil model (for example, from no model to model A); the unplugging event corresponds to the detection of the disappearance of the Rogowski coil model (for example, from model A to no model); the timer mechanism corresponds to starting a timer to record the maintenance time of the insertion or unplugging event, wherein, if the maintenance time exceeds a preset time threshold (for example, "1" second), the event is considered valid. Further, if the event is valid, the event of the global state machine is set to trigger the corresponding state transition. For example, after the insertion event is set, the global state machine may switch from the "idle state" to the "measurement state"; after the unplugging event is set, the global state machine may switch from the "measurement state" to the "idle state".

[0044] Figure 5 A block diagram of a Rogowski coil event detection and recording system based on a finite state machine of the present invention is shown.

[0045] like Figure 5As shown, the present invention discloses a Rogowski coil event detection and recording system based on a finite state machine, comprising a memory and a processor, wherein the memory comprises a Rogowski coil event detection and recording method program based on a finite state machine, and when the Rogowski coil event detection and recording method program based on a finite state machine is executed by the processor, the following steps are implemented: Get the set global state machine and state transition table; polling the state transition table in real time based on a global state machine sub-machine, wherein the global state machine sub-machine compares with each state transition sub-machine in the state transition table to perform a target action, wherein the target action includes communicating with a Rogowski coil to store an event; The interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the model type compared with a previous state. The counter operation includes clearing the counter or detecting the counter.

[0046] It should be noted that, in this embodiment, in order to solve the existing defects faced in the program design process, a Rogowski coil event detection and recording method based on a finite state machine is provided in this embodiment. By obtaining the set global state machine and state transition table for real-time polling, the event is compared and stored in real time, and the state is converted in real time, so that the program logic is clear and the readability is high. In addition, when executing the target action of communicating with the Rogowski coil to store the event, the model type is determined by querying the interface voltage of the Rogowski coil, so that the counter operation can be performed based on the comparison with the previous state. Accordingly, the counter operation performed specifically includes clearing the counter or detecting the counter. The specific execution steps will be described in detail in the subsequent instructions, so as to achieve the characteristics of simple maintenance and strong expansibility in the Rogowski coil detection and recording process.

[0047] According to an embodiment of the present invention, the element members of the global state machine include: Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

[0048] It should be noted that, in this embodiment, the element members of the global state machine are specifically described, including Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

[0049] Specifically, the Rogowski coil information corresponds to the sensor information currently measuring the alternating current, which is specifically composed of a flexible coil that can be wrapped around a conductor and generates a voltage signal by sensing current changes in the conductor; the state transition table pointer is used to indicate the current state of the system or device, and points to the next state when a specific event occurs, where the state transition table usually includes: current state - the current state of the device; trigger event - the event or condition that causes the state transition; next state - the state that the device will enter after the trigger event occurs; execution action - the operation or action performed when the state transition occurs.

[0050] Furthermore, in actual application, the current state of the Rogowski coil may include the following: idle state: the Rogowski coil is not performing any measurement and is in standby mode; measuring state: the Rogowski coil is measuring current and outputting a corresponding voltage signal; fault state: the Rogowski coil fails, such as coil damage or signal abnormality; calibration state: the Rogowski coil is being calibrated to ensure measurement accuracy.

[0051] Furthermore, the next Rogowski coil state depends on the current state and the trigger event, for example: if the current state is the idle state and the trigger event is the start of measurement, the next state is the measurement state; if the current state is the measurement state and the trigger event is the completion of measurement, the next state is the idle state; if the current state is the measurement state and the trigger event is the detection of a fault, the next state is the fault state.

[0052] Furthermore, a trigger event is a condition or action that causes a change in the state of the Rogowski coil. The trigger events in this embodiment specifically include starting measurement: the user issues an instruction to start current measurement; measurement completion: the current measurement is completed and the Rogowski coil stops outputting signals; fault detection: the Rogowski coil detects an abnormal situation, such as signal loss or coil damage; calibration request: a request to calibrate the Rogowski coil.

[0053] Furthermore, after a trigger event occurs, corresponding actions are executed to ensure that the state transition of the Rogowski coil proceeds smoothly. The execution actions in this embodiment include starting measurement: after the measurement start event, the Rogowski coil starts to output a current signal; stopping measurement: after the measurement completion event, the Rogowski coil stops outputting signals and enters an idle state; fault handling: after a fault event is detected, fault information is recorded, and an alarm is issued or a protection mode is entered; calibration operation: after a calibration request event, a calibration procedure is executed to adjust the parameters of the Rogowski coil to ensure measurement accuracy.

[0054] According to an embodiment of the present invention, the state transition table specifically includes a plurality of state transition sub-machines, wherein the state transition sub-machines correspond to state transition state sub-machines corresponding to all possible events.

[0055] It should be noted that, in this embodiment, the state transition table specifically includes multiple state transition sub-machines, as shown in Table 1, which is an embodiment of the state transition table. Accordingly, the state transition sub-machine corresponds to the state migration state sub-machine corresponding to all possible events. The state transition table in Table 1 can clearly describe the behavior of the Rogowski coil under different events, ensuring the stable progress of the Rogowski coil event detection record.

[0056] According to an embodiment of the present invention, the real-time polling of the state transition table based on the global state machine sub-machine specifically includes: The global state machine sub-machine compares the real-time event with the possible events in each state transition sub-machine in the state transition table; If they are different, continue to search for the next state transition submachine; If they are the same, the state comparison is entered, wherein if the current state is different from the state in the state transition table, the search is exited; if they are the same, the state is switched and the execution action of the corresponding turntable conversion sub-machine is executed.

[0057] It should be noted that, in this embodiment, Figure 2 As shown, it is a state transition diagram, wherein the Rogowski coil events include an initial power-on event, a power-off event, an insertion event, and an unplugging event, and correspondingly, the states specifically include an initial state, a power-on state, an unplugging state, and an insertion state.

[0058] Furthermore, if Figure 3 As shown, it is a flowchart of state switching, wherein the global state machine is first initialized, and then the global state machine sub-machine compares the possible events (corresponding to different trigger events) in each state transition sub-machine in the state transition table based on the real-time event, wherein, if they are different, the next state transition sub-machine is searched; if they are the same, the state comparison is entered, specifically, if the current state is different from the state in the state transition table, the search is exited; if they are the same, the state is switched, and the execution action of the corresponding turntable conversion sub-machine is executed, and finally the real-time polling is continued.

[0059] According to an embodiment of the present invention, the executing action includes storing an event and / or communicating with a Rogowski coil.

[0060] It should be noted that in this embodiment, the above description is combined with the attached Figure 3 It can be seen that an action needs to be executed after the state is switched, wherein the execution action includes storing events and / or communicating with the Rogowski coil. Accordingly, referring to Table 1, the execution action also includes starting measurement action, stopping measurement action, recording fault and alarming action, restoring measurement function action, executing calibration operation action and returning to idle state action.

[0061] According to an embodiment of the present invention, the interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the comparison of the model type with the previous state. The counter operation includes clearing the counter or detecting the counter, specifically including: When communicating with the Rogowski coil, the interface voltage of the Rogowski coil is queried in real time to determine the model type; Compare the model type with the previous state, wherein if they are the same, clear the counter, and if they are different, enter the counter detection process; When entering the counter detection process, when the duration of the detected insertion event or removal event exceeds a preset time threshold, the event of the global state machine is set.

[0062] It should be noted that, in this embodiment, Figure 4 As shown, it is a detection flow chart. When communicating with the Rogowski coil, its model type can be determined by querying the interface voltage of the Rogowski coil in real time. Different models of Rogowski coils may have different electrical characteristics (such as output voltage range, sensitivity, etc.), so the models can be distinguished by measuring the interface voltage.

[0063] Specifically, the interface voltage is read, specifically, the output voltage of the Rogowski coil is read through an analog or digital interface, and then the model type of the Rogowski coil is determined according to the voltage value (for example, the voltage range of model A is 0-5V, and the voltage range of model B is 5-10V); then the model type is determined, specifically, the read voltage value is compared with the predefined model voltage range to determine the model of the current Rogowski coil.

[0064] Furthermore, based on the comparison between the model type and the previous state, after determining the model of the current Rogowski coil, it is necessary to compare it with the previous state to determine whether a model change has occurred. The process includes comparing the model type, wherein if the current model is the same as the model recorded in the previous state, the counter is cleared; if the current model is different from the model recorded in the previous state, the detection counter flow is entered; further, if the model has not changed, it means that the state of the Rogowski coil is stable and no further processing is required, and the counter is cleared.

[0065] Further, when a model change is detected, a detection counter process is entered to confirm whether the model change is valid (i.e., whether it is a short-term interference or a real insertion / unplugging event), wherein, in the detection of insertion / unplugging events, the insertion event corresponds to the detection of a change in the Rogowski coil model (for example, from no model to model A); the unplugging event corresponds to the detection of the disappearance of the Rogowski coil model (for example, from model A to no model); the timer mechanism corresponds to starting a timer to record the maintenance time of the insertion or unplugging event, wherein, if the maintenance time exceeds a preset time threshold (for example, "1" second), the event is considered valid. Further, if the event is valid, the event of the global state machine is set to trigger the corresponding state transition. For example, after the insertion event is set, the global state machine may switch from the "idle state" to the "measurement state"; after the unplugging event is set, the global state machine may switch from the "measurement state" to the "idle state".

[0066] A third aspect of the present invention provides a computer-readable storage medium, which includes a Rogowski coil event detection and recording method program based on a finite state machine. When the Rogowski coil event detection and recording method program based on a finite state machine is executed by a processor, the steps of a Rogowski coil event detection and recording method based on a finite state machine as described in any one of the above items are implemented.

[0067] The present invention discloses a Rogowski coil event detection and recording method and system based on a finite state machine, which provides a solution for Rogowski coil event detection and recording, specifically solves the existing defect problems faced in the program design process, and can make the program logic clear, highly readable, simple to maintain, and highly expansible.

[0068] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0069] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0070] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0071] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0072] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A Rogowski coil event detection and recording method based on a finite state machine, characterized in that: The following steps are involved: Get the set global state machine and state transition table; polling the state transition table in real time based on a global state machine sub-machine, wherein the global state machine sub-machine compares with each state transition sub-machine in the state transition table to perform a target action, wherein the target action includes communicating with a Rogowski coil to store an event; The interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the model type compared with a previous state. The counter operation includes clearing the counter or detecting the counter.

2. A Rogowski coil event detection and recording method based on a finite state machine according to claim 1, characterized in that: The element members of the global state machine include: Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

3. A Rogowski coil event detection and recording method based on a finite state machine according to claim 2, characterized in that: The state transition table specifically includes a plurality of state transition sub-machines, wherein the state transition sub-machines correspond to state transition state sub-machines corresponding to all possible events.

4. A Rogowski coil event detection and recording method based on a finite state machine according to claim 3, characterized in that: The real-time polling of the state transition table based on the global state machine sub-machine specifically includes: The global state machine sub-machine compares the real-time event with the possible events in each state transition sub-machine in the state transition table; If they are different, continue to search for the next state transition submachine; If they are the same, the state comparison is entered, wherein if the current state is different from the state in the state transition table, the search is exited; if they are the same, the state is switched and the execution action of the corresponding turntable conversion sub-machine is executed.

5. A Rogowski coil event detection and recording method based on a finite state machine according to claim 4, characterized in that: The performing actions include storing an event and / or communicating with a Rogowski coil.

6. A Rogowski coil event detection and recording method based on a finite state machine according to claim 5, characterized in that: The querying of the interface voltage of the Rogowski coil determines the model type, and based on the comparison of the model type with the previous state, performs a counter operation, wherein the counter operation includes clearing the counter or detecting the counter, specifically including: When communicating with the Rogowski coil, the interface voltage of the Rogowski coil is queried in real time to determine the model type; Compare the model type with the previous state, wherein if they are the same, clear the counter, and if they are different, enter the counter detection process; When entering the counter detection process, when the duration of the detected insertion event or removal event exceeds a preset time threshold, the event of the global state machine is set.

7. A Rogowski coil event detection and recording system based on a finite state machine, characterized in that: The invention comprises a memory and a processor, wherein the memory comprises a Rogowski coil event detection and recording method program based on a finite state machine, and the Rogowski coil event detection and recording method program based on a finite state machine is executed by the processor to implement the following steps: Get the set global state machine and state transition table; polling the state transition table in real time based on a global state machine sub-machine, wherein the global state machine sub-machine compares with each state transition sub-machine in the state transition table to perform a target action, wherein the target action includes communicating with a Rogowski coil to store an event; The interface voltage of the Rogowski coil is queried to determine the model type, and a counter operation is performed based on the model type compared with a previous state. The counter operation includes clearing the counter or detecting the counter.

8. A Rogowski coil event detection and recording system based on a finite state machine according to claim 7, characterized in that: The element members of the global state machine include: Rogowski coil information, state transition table pointer, current Rogowski coil state, next Rogowski coil state, trigger event and execution action after the event occurs.

9. A Rogowski coil event detection and recording system based on a finite state machine according to claim 8, characterized in that: The state transition table specifically includes a plurality of state transition sub-machines, wherein the state transition sub-machines correspond to state transition state sub-machines corresponding to all possible events.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a Rogowski coil event detection and recording method program based on a finite state machine. When the Rogowski coil event detection and recording method program based on a finite state machine is executed by a processor, the steps of the Rogowski coil event detection and recording method based on a finite state machine as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Electrical anomaly detection method and system

    CN102066956A

  • A method to utilize multiple configuration software for DF / CAFI breakers

    CN108092228A

  • System monitor

    CN109643348A

  • Power distribution network information physical element modeling method and system based on finite-state machine

    CN112966375A

  • Circuit breaker with notification and reporting capabilities

    CN115136434A