Power equipment state consistency detection method and device, computer device, readable storage medium and program product
By registering measurement points on power equipment, obtaining real-time status data, and using a partition execution module for consistency detection, the problem of low efficiency in power equipment status consistency detection is solved, and detection efficiency and real-time performance are improved.
Patent Information
- Application Number
- CN202411123123.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-08-15
AI Technical Summary
The current technology for detecting the consistency of power equipment status is inefficient, mainly due to the slow read and write speed of relying on historical databases, which leads to reduced detection efficiency.
By pre-registering measurement points on power equipment to obtain real-time status data, and using a partition execution module to perform consistency checks under the condition of meeting preset consistency detection rules, the detection efficiency is improved.
This has improved the efficiency of power equipment status consistency detection, reduced detection time, and enhanced the real-time performance and accuracy of detection.
Smart Images

Figure CN118897702B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electric power, and in particular to a power equipment state consistency detection method and device, computer equipment, computer readable storage medium and computer program product. BACKGROUND
[0002] The state consistency of equipment in the field of electric power refers to that when the equipment is in a certain state or working condition, certain or certain switch quantities, analog quantities related to the equipment should be in a certain state, or in a certain range, or satisfy a certain mathematical relationship between multiple quantities. In order to ensure the normal operation of the power system, the state consistency of the power equipment needs to be detected in time. At present, the state consistency detection of the power equipment is usually performed by obtaining the states of each equipment at the corresponding time node from the historical database. However, the read-write speed of the historical database is slow, and the state consistency detection by obtaining the state data from the historical database will result in low detection efficiency.
[0003] Therefore, the current power equipment consistency detection method has the defect of low detection efficiency. SUMMARY
[0004] Therefore, it is necessary to provide a power equipment state consistency detection method, device, computer equipment, computer readable storage medium and computer program product capable of improving detection efficiency in view of the above technical problems.
[0005] In a first aspect, the present application provides a power equipment state consistency detection method, which comprises:
[0006] Based on a preset period, obtaining each real-time state data corresponding to each measuring point collected by a data subscription unit; each measuring point is pre-registered in each power equipment, and each measuring point is used to collect real-time state data corresponding to each power equipment;
[0007] Inputting each real-time state data into a corresponding partition execution module, and when the detection state of a preset consistency detection rule corresponding to the partition execution module is detected to be turned on, obtaining a data acquisition time corresponding to the real-time state data, and obtaining a comparison result of the detection state start time corresponding to the preset consistency detection rule and the data acquisition time;
[0008] If the comparison result meets a preset detection condition, performing consistency detection on each power equipment according to the preset consistency detection rule and each real-time state data in the partition execution module.
[0009] In one of the embodiments, the obtaining of the comparison result of the detection state start time corresponding to the preset consistency detection rule and the data acquisition time comprises:
[0010] obtaining a difference between the data acquisition time and the detection state on time;
[0011] If the difference is less than or equal to a preset time difference threshold, it is determined that the comparison result meets a preset detection condition.
[0012] In one of the embodiments, after the input of each real-time state data into the corresponding partition execution module, the method further comprises:
[0013] When the detection state of the preset consistency detection rule corresponding to the partition execution module is detected to be in an off state, a preset starting condition corresponding to the preset consistency detection rule is obtained;
[0014] If the real-time state data meets the preset starting condition, the detection state of the preset consistency detection rule corresponding to the partition execution module is changed to an on state;
[0015] According to the on-state preset consistency detection rule and each real-time state data in the partition execution module, consistency detection is performed on each power equipment.
[0016] In one of the embodiments, the consistency detection on each power equipment according to the on-state preset consistency detection rule and each real-time state data in the partition execution module comprises:
[0017] A detection duration corresponding to the preset consistency detection rule is obtained; the detection duration represents a duration corresponding to the state of each power equipment being consistent based on the preset consistency detection rule after the detection state of the preset consistency detection rule is changed to an on state;
[0018] According to the detection duration, the step of performing consistency detection on each power equipment based on the preset consistency detection rule and each real-time state data in the partition execution module is executed.
[0019] In one of the embodiments, the consistency detection on each power equipment according to the preset consistency detection rule and each real-time state data in the partition execution module comprises:
[0020] Each preset state data corresponding to each power equipment in the preset consistency detection rule is obtained; each power equipment has consistency under the corresponding preset state data;
[0021] The numerical comparison result of each preset state data corresponding to each power equipment and the corresponding real-time state data is obtained;
[0022] If the numerical comparison result meets the preset consistency detection rule, it is determined that each power equipment passes the consistency detection.
[0023] In one of the embodiments, after the consistency detection of each power equipment according to the preset consistency detection rule and each real-time state data in the partition execution module, the method further comprises:
[0024] If each power equipment does not pass the consistency detection, alarm information is generated according to the real-time state data corresponding to each power equipment;
[0025] The alarm information is input into a message queue, and the alarm information is output based on the message queue.
[0026] In one of the embodiments, the method further comprises:
[0027] When each preset consistency detection rule is detected to be input, each measurement point corresponding to each preset consistency detection rule is acquired;
[0028] Each preset power equipment information corresponding to each measurement point is acquired;
[0029] According to each preset power equipment information, the corresponding measurement point is registered in the corresponding power equipment;
[0030] Based on each registered measurement point, the real-time state data corresponding to each power equipment is collected.
[0031] In a second aspect, the application provides a power equipment state consistency detection device, which comprises:
[0032] An acquisition module is configured to acquire, based on a preset period, each real-time state data corresponding to each measurement point collected by a data subscription unit; each measurement point is pre-registered in each power equipment, and each measurement point is configured to collect real-time state data corresponding to each power equipment;
[0033] An input module is configured to input each real-time state data into a corresponding partition execution module; when the detection state of a preset consistency detection rule corresponding to the partition execution module is detected to be turned on, the data acquisition time corresponding to the real-time state data is acquired, and the comparison result of the detection state turned-on time corresponding to the preset consistency detection rule and the data acquisition time is acquired;
[0034] A detection module is configured to, if the comparison result meets a preset detection condition, perform consistency detection of each power equipment according to the preset consistency detection rule and each real-time state data in the partition execution module.
[0035] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described above when executing the computer program.
[0036] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the method described above when executed by a processor.
[0037] In a fifth aspect, the present application provides a computer program product, comprising a computer program, and the computer program implements the steps of the method described above when executed by a processor.
[0038] The power equipment state consistency detection method, device, computer device, computer readable storage medium and computer program product described above, by acquiring the fact state data corresponding to the measuring point registered in advance on the power equipment, when the detection state of the preset consistency detection rule in the partition execution module is detected to be turned on, acquiring the comparison result of the data acquisition time corresponding to the real-time state data and the detection state turning-on time, when the comparison result meets the preset detection condition, performing consistency detection on the power equipment according to the preset consistency detection rule and each fact state data in the partition execution module. Compared with the traditional judgment by acquiring data from the historical database, the present scheme acquires real-time state data through the preset measuring point, and performs consistency detection on the power equipment based on the preset consistency detection rule corresponding to the partition execution module when the detection condition is met, thereby improving the efficiency of consistency detection. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor.
[0040] Figure 1 It is a flowchart of the power equipment state consistency detection method in an embodiment;
[0041] Figure 2 It is a flowchart of the power equipment state consistency detection method in another embodiment;
[0042] Figure 3 It is a flowchart of the power equipment state consistency detection method in another embodiment;
[0043] Figure 4 It is a structural block diagram of the power equipment state consistency detection device in an embodiment;
[0044] Figure 5 Figure 1 is a schematic diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0045] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.
[0046] In one embodiment, as shown in Figure 1, a power equipment state consistency detection method is provided, and the present embodiment takes the method applied to a server as an example. It should be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is realized through the interaction of the terminal and the server, and includes the following steps S202 to S206. Among them: Figure 1
[0047] Step S202, based on a preset period, acquiring each real-time state data corresponding to each measuring point collected by a data subscription unit; each measuring point is pre-registered in each power equipment, and each measuring point is used to collect real-time state data corresponding to each power equipment.
[0048] Among them, the above-mentioned state consistency detection can be a state consistency detection for power equipment. The state consistency of the equipment in the power field refers to when the equipment is in a certain state or working condition, a certain switch value or analog value related to it should be in a certain state, or in a certain range, or a plurality of values satisfy a certain mathematical relationship. The terminal can pre-register each measuring point in each power equipment, wherein each measuring point can be used to collect real-time state data of the power equipment where the measuring point is located, so that the terminal can acquire the collected real-time state data, and determine whether to perform consistency detection based on the collected real-time state data.
[0049] The terminal can be a computer device in a power system for consistency judgment. The terminal pre-registers the measuring point in each power equipment. In one embodiment, it further includes: when each preset consistency detection rule is detected, acquiring each measuring point corresponding to each preset consistency detection rule; acquiring each preset power equipment information corresponding to each measuring point; registering the corresponding measuring point in the corresponding power equipment according to each preset power equipment information; based on each registered measuring point, collecting real-time state data corresponding to each power equipment.
[0050] In this embodiment, when the terminal detects that the preset consistency detection rule needs to be input, for example, the preset consistency detection rule input by the related technical personnel, the terminal can obtain each measurement point corresponding to each preset consistency detection rule. For example, each preset one-time detection rule has corresponding state data that needs to be collected, and the terminal determines the corresponding measurement point based on the state data that needs to be collected according to each preset one-time detection rule. The terminal can obtain each preset power equipment information corresponding to each measurement point, so that the terminal can determine the power equipment that needs to register the measurement point and the position of the measurement point in the power equipment according to each preset power equipment information. That is, the terminal registers the corresponding measurement point in the corresponding power equipment according to each preset power equipment information, so that the terminal can collect the real-time state data corresponding to the power equipment based on each registered measurement point.
[0051] The terminal can be provided with a data subscription unit, and the terminal can obtain each real-time state data corresponding to each measurement point collected by the data subscription unit based on a preset period. The data subscription unit can collect each real-time state data of each measurement point in each power equipment.
[0052] Specifically, the terminal is provided with a real-time data subscription module and a partition execution module. The data subscription module, also known as a data subscription unit, can be used to collect real-time state data of the measurement point; the partition execution module can serve as a storage location of the preset consistency detection rule, and the terminal can be provided with multiple partition execution modules, each of which can correspond to a preset consistency detection rule. The preset consistency detection rule can be related to the same or different measurement points and have different judgment rules for these measurement points. The terminal saves all measurement points related to all power equipment state consistency judgment rules through the real-time data subscription module. The terminal can register the subscription task of these measurement points in advance through the real-time data subscription module to a source system, such as a device state monitoring system, a centralized control system, and an electric energy management system in a power system. After receiving the real-time state data pushed by the real-time data subscription module, the terminal pushes the related data to the corresponding partition execution module. One measurement point in the partition execution module can be used by multiple device state consistency judgment rules.
[0053] In step S204, each real-time state data is input into the corresponding partition execution module, and when the detection state of the preset consistency detection rule corresponding to the partition execution module is detected to be started, the data acquisition time corresponding to the real-time state data is obtained, and the comparison result of the detection state start time and the data acquisition time corresponding to the preset consistency detection rule is obtained.
[0054] The terminal can be provided with a plurality of partition execution modules, and the partition execution modules correspond to the preset consistency detection rules one by one. The test points required by each preset consistency detection rule can be the same or different, and the terminal needs to input the above-mentioned real-time state data corresponding to each test point into the corresponding partition execution module. In the partition execution module, the preset consistency detection rule needs to be triggered to start, and the detection state needs to be changed to start before the consistency detection can be performed. The condition for changing the detection state of the preset consistency detection rule to start can be manually started by a person, or the data of the input test point can be judged to start, for example, the data of some target test points in each test point input into the partition execution module meets the starting condition of the preset consistency detection rule, and at this time the terminal can change the detection state of the preset consistency detection rule to start.
[0055] When the detection state of the preset consistency detection rule corresponding to the partition execution module is started, the terminal can obtain the data acquisition time corresponding to the real-time state data, that is, the time when the test point collects the above-mentioned real-time state data, and the terminal can also obtain the detection state start time corresponding to the preset consistency detection rule, that is, the time when the preset consistency detection rule is triggered to start. Therefore, the terminal can obtain the comparison result of the detection state start time and the data acquisition time corresponding to the preset consistency detection rule. The above-mentioned comparison result can be a comparison of time difference, and based on different time differences, the terminal can take different strategies.
[0056] Specifically, in the partition execution module, one partition is a device state consistency determination rule. The partition execution module has its own independent state memory, trigger condition judgment component and target condition judgment component. Each rule does not affect each other. The real-time state data of the above-mentioned test point enters the partition of the related rule to drive the logic execution.
[0057] The trigger condition determining component and the target condition determining component can be based on an Aviator expression, which is a high-performance, lightweight scripting language suitable for light programming. It is very simple and has a low learning cost. Its main use scenarios are rule judgment and rule engine, formula calculation. The execution result of the expression is a Boolean, that is, true or false. For example, there is a switch measurement point D1, whose measurement point id is “d_1111”, there is a unit working condition measurement point D2, whose measurement point is “d_2111”, and the trigger condition corresponding to the preset consistency detection rule is that the switch measurement point D1 is equal to 1 and the unit working condition measurement point D2 is equal to 5, then the expression can be written as: states[“hs_data”][‘d_1111’][“value”] == 1 AND states[“hs_data”][‘d_2111’][“value”] == 5. Wherein states is a state memory, and the structure of the real-time state data entering the partition execution module in JSON syntax is as follows:
[0058] {
[0059] “hs_data”:{
[0060] “d_1111”:{
[0061] “value”:1,
[0062] “timestamp”:”2024-02-01 00:00:00.000”
[0063] } ,
[0064] “d_2111”:{
[0065] “value”:5,
[0066] “timestamp”:”2024-02-01 00:00:01.000”
[0067] }
[0068] } ,
[0069] “current_meas_point”: “d_2111”
[0070] “trigger_state”: true,
[0071] “trigger_state_time”: “2024-02-01 00:00:01.000”
[0072] "target_condition": false
[0073] }];
[0074] wherein, the hs_data stores the latest time series data (real-time state data) of each measurement point entering the execution partition of the preset consistency detection rule of the current device state. The current_meas_point represents the id of the data of the measurement point currently driven by the preset consistency detection rule R for execution. The trigger_state is the state of the trigger condition, true indicates that it has been started, and false or no setting indicates that it is in the closed state. The trigger_state_time is the state time of the trigger condition, that is, the time when the trigger_state changes from false to true, or from true to false. The target_condition represents the target condition state, true indicates that the target condition is established, and false or no setting indicates that it is in the closed state. The target_condition is used to indicate whether the real-time state data of each measurement point in the above partition execution module meets the preset consistency detection rule.
[0075] In step S206, if the comparison result meets the preset detection condition, the consistency of each power device is detected according to the preset consistency detection rule and each real-time state data in the partition execution module.
[0076] Among them, for different comparison results, the terminal can adopt different measures. For example, if the above comparison result does not meet the preset detection condition, that is, the time difference between the detection state start time and the data acquisition time corresponding to the preset consistency detection rule is greater than the preset threshold, the terminal can determine that the time difference exceeds the determination time range, and the detection state of the preset consistency detection rule is not started in time, resulting in the decrease of the judgment efficiency. At this time, the terminal can directly end the detection step of the input each measurement point.
[0077] If the above comparison result meets the preset condition, for example, the time difference between the detection state start time and the data acquisition time corresponding to the preset consistency detection rule is less than or equal to the preset threshold, the terminal can determine that the time difference does not exceed the determination time range. At this time, the terminal can detect the consistency of each power device according to the preset consistency detection rule in the above partition execution module and each real-time state data in the partition execution module. For example, whether the real-time state data of each measurement point input into the partition execution module meets the preset consistency detection rule is judged.
[0078] In the power equipment state consistency detection method, the fact state data corresponding to the preset measurement point registered on the power equipment is acquired, when it is detected that the detection state of the preset consistency detection rule in the corresponding partition execution module is turned on, the comparison result of the data acquisition time corresponding to the real-time state data and the detection state opening time is acquired, when the comparison result meets the preset detection condition, the consistency of the power equipment is detected according to the preset consistency detection rule and each fact state data in the partition execution module. Compared with the traditional method of obtaining data from the historical database for judgment, the present application obtains real-time state data through a preset measurement point, and when the detection condition is met, the consistency of the power equipment is detected based on the preset consistency detection rule corresponding to the partition execution module, thereby improving the efficiency of the consistency detection.
[0079] In one embodiment, the comparison result of the detection state opening time and the data acquisition time corresponding to the preset consistency detection rule is obtained, including: obtaining the difference value of the data acquisition time and the detection state opening time; if the difference value is less than or equal to the preset time difference threshold, it is determined that the comparison result meets the preset detection condition.
[0080] In this embodiment, the preset consistency detection rule meets the trigger condition, and after the detection state is turned on, the terminal can detect whether the consistency determination time is exceeded in the partition execution module. For example, the terminal can acquire the difference value of the data acquisition time and the detection state opening time, if the above interpolation is greater than the preset time difference threshold, it means that the determination time range is exceeded, at this time the terminal can directly end this consistency detection. If the difference value is less than or equal to the preset time difference threshold, it means that the determination time range is not exceeded, and the terminal can determine that the comparison result meets the preset detection condition, and then the terminal can continue to execute the consistency detection process of the preset consistency detection rule.
[0081] Specifically, for the preset consistency detection rule R in the partition execution module, the terminal can write the latest real-time state data of a certain measurement point M received into the state storage in the partition execution module. The id of the current processing measurement point M is recorded. The terminal can obtain from the state storage whether the trigger condition of the rule R is started. If it is started, it continues to execute, otherwise the logic chain corresponding to the unstarted state is executed. When the trigger condition is in the started state, the terminal can obtain the id of the current measurement point M from the state storage, set as id_m, that is, id_m= states[“current_meas_point”]), and then the terminal can obtain the data timestamp t0 (data acquisition time) of the measurement point M in the state storage, which can be specifically expressed as states[“hs_data”][id_m][“timestamp”]. The terminal can also obtain the start time t of the trigger condition (detection state start time), that is, states[“trigger_state_time”]. The terminal can be preset within a time range of ts (preset time difference threshold value), and the device needs to reach a consistent state. When t0-t> ts, the terminal can consider that the judgment time range is exceeded. When the timestamp exceeds the judgment time range, the terminal can end the detection. If the judgment time range is not exceeded, the step of judging whether each measurement point meets the requirement based on the preset consistency detection rule is continued, and the result of the consistency detection can be stored in the state storage of the corresponding partition execution module.
[0082] Through the embodiment, the terminal can determine whether the preset consistency detection can be performed based on the time difference between the data acquisition time and the detection state start time, prevent the consistency detection from being performed in the case that the data loses real-time, and thus improve the efficiency of the consistency detection on the power equipment.
[0083] In one embodiment, after each real-time state data is input into the corresponding partition execution module, the method further includes: when it is detected that the detection state of the preset consistency detection rule corresponding to the partition execution module is in the closed state, obtaining a preset starting condition corresponding to the preset consistency detection rule; if the real-time state data meets the preset starting condition, changing the detection state of the preset consistency detection rule corresponding to the partition execution module to the started state; and performing consistency detection on each power equipment according to the preset consistency detection rule in the started state and each real-time state data in the partition execution module.
[0084] In the embodiment, the detection state of the preset consistency detection rule in the partition execution module can be in the closed state, at which time the terminal cannot perform the preset consistency detection. The terminal can judge whether the preset consistency detection rule meets the starting condition. For example, the terminal can obtain the preset starting condition corresponding to the preset consistency detection rule.
[0085] If the real-time state data does not satisfy the preset starting condition, the terminal can end the process of performing consistency detection on each measuring point in the partition execution module.
[0086] If the real-time state data satisfies the preset starting condition, for example, the state value of the target measuring point in each measuring point in the partition execution module is consistent with the measuring point and state value corresponding to the starting condition of the preset consistency detection rule, the terminal can change the detection state of the preset consistency detection rule corresponding to the partition execution module to an open state. Thus, the terminal can perform consistency detection on each power device according to the open state of the preset consistency detection rule and each real-time state data in the partition execution module. The terminal can trigger the process of performing consistency detection based on the preset consistency detection rule and each real-time state data by setting a timing.
[0087] In one embodiment, performing consistency detection on each power device according to the open state of the preset consistency detection rule and each real-time state data in the partition execution module includes: obtaining a detection duration corresponding to the preset consistency detection rule; the detection duration represents a duration corresponding to when the state of each power device is consistent based on the preset consistency detection rule after the detection state of the preset consistency detection rule changes to the open state; and performing the steps of performing consistency detection on each power device based on the preset consistency detection rule and each real-time state data in the partition execution module according to the detection duration.
[0088] In this embodiment, the terminal can trigger consistency detection by timing after changing the detection state of the preset consistency detection condition from off to on. For example, the terminal can obtain a detection duration corresponding to the preset consistency detection rule. The detection duration represents a duration corresponding to when the state of each power device is consistent based on the preset consistency detection rule after the detection state of the preset consistency detection rule changes to the open state, that is, how long the device state should be consistent after the triggering condition of the preset consistency detection rule is met and the detection state of the preset consistency detection rule is open. The terminal can perform the steps of performing consistency detection on each power device based on the preset consistency detection rule and each real-time state data in the partition execution module according to the detection duration, that is, the terminal needs to perform the steps of performing consistency detection on each power device based on the preset consistency detection rule and each real-time state data in the partition execution module within the detection duration, otherwise the preset timing task will be triggered.
[0089] Specifically, taking the preset consistency detection rule R as an example, when the trigger state of the preset consistency detection rule is off, the terminal can execute the trigger condition judgment of the rule R, that is, detect whether the start condition is met. If the execution result is false, that is, the preset start condition is not met, the terminal can end the consistency detection process. If it is true, that is, the preset start condition is met, the terminal can set the trigger condition state of the rule R to on in the state storage of the partition execution module, that is, the detection state is changed to on. Moreover, the terminal can also set a timer for the rule R, which is triggered after t+Δt (detection time length). Wherein t refers to how long the target condition should be met after the trigger condition is met, that is, the detection state of the preset consistency detection rule is changed to on, that is, the device state is consistent. Δt refers to the data acquisition delay of the source system, which is usually set to 1 second. Therefore, the terminal can execute the steps of consistency detection of each power device based on the preset consistency detection rule and each real-time state data in the partition execution module, and execute the corresponding timing task when the execution time length reaches the detection time length.
[0090] The timing task triggered by the timer includes setting the trigger condition of the rule R to off state. And the target condition judgment result of the rule R is obtained from the state storage of the partition execution module, that is, the result of the consistency detection. If it is true, that is, there is consistency between each power device, the process is directly ended. If it is not true, that is, there is a power device whose relationship with other power devices does not meet the preset one-time detection rule, it means that the device state is inconsistent, and an alarm message needs to be sent.
[0091] Through the above embodiment, when the detection state of the preset consistency detection rule is off, the terminal can determine whether to turn on the detection state of the preset consistency detection rule by judging whether the trigger condition is met, and perform consistency detection of the preset consistency detection rule by setting a timer, thereby improving the efficiency of consistency detection.
[0092] In one embodiment, the consistency detection of each power device according to the preset consistency detection rule and each real-time state data in the partition execution module includes: obtaining each preset state data corresponding to each power device in the preset consistency detection rule; each power device has consistency under the corresponding preset state data; obtaining the numerical comparison result of each preset state data corresponding to each power device and the corresponding real-time state data; if the numerical comparison result meets the preset consistency detection rule, it is determined that each power device passes the consistency detection.
[0093] In the embodiment, the preset consistency detection rule includes a state in which the state of a certain power device is in a certain state, and the states in which the other power devices should be in. The preset consistency detection rule includes a plurality of preset state data. The terminal can obtain each preset state data corresponding to each power device in the preset consistency detection rule. The consistency of each power device exists in the corresponding preset state data. That is, when the state of each real-time state data of the input partition execution module meets the state of each corresponding preset state data, each power device corresponding to each real-time state data meets the consistency.
[0094] The terminal can obtain the numerical comparison result of each preset state data corresponding to each power device and the corresponding real-time state data. If the numerical comparison result does not meet the preset consistency detection rule, that is, the numerical value and relationship of each real-time state data does not meet the numerical value and relationship of each preset state data, the terminal can output the alarm information. If the numerical comparison result meets the preset consistency detection rule, that is, the numerical value and relationship of each real-time state data meets the numerical value and relationship of each preset state data, the terminal can determine that each power device passes the consistency detection.
[0095] Through the embodiment, the terminal can compare each real-time state data with each preset state data in the preset consistency detection rule, and then determine whether each power device corresponding to each real-time state data meets the consistency, thereby improving the efficiency of the consistency detection of the power device.
[0096] In one embodiment, after performing the consistency detection on each power device according to the preset consistency detection rule and each real-time state data in the partition execution module, the method further includes: if each power device does not pass the consistency detection, generating alarm information according to the real-time state data corresponding to each power device; inputting the alarm information into a message queue, and outputting the alarm information based on the message queue.
[0097] In the embodiment, if the numerical comparison result does not meet the preset consistency detection rule, that is, the numerical value and relationship of each real-time state data does not meet the numerical value and relationship of each preset state data, the terminal can output the alarm information. For example, the terminal can generate alarm information according to the real-time state data corresponding to each power device, and input the alarm information into a message queue, and output the alarm information based on the message queue. The message queue can output the alarm information by traversing the circular queue.
[0098] Specifically, the above-mentioned alarm can be triggered by a timer. The timer triggers the cleaning module in the terminal, and after triggering, the terminal executes a series of actions based on the context preset by the partition execution module when submitting the task, including rule information, state storage, etc. The timer-triggered timing task includes setting the trigger condition of the above-mentioned rule R to the off state, and obtaining the target condition judgment result of rule R from the state storage of the partition execution module, that is, the result of the above-mentioned consistency detection. If it is true, that is, there is consistency between each power device, the process is directly ended. If it is not true, that is, there is a power device that does not meet the preset one-time detection rule with other power devices, which means that the device state is inconsistent, and an alarm message needs to be sent. At this time, the terminal can append the alarm message to the message queue of the alarm module, and then set the above-mentioned target_condition to false, indicating that the consistency detection fails. Among them, the alarm module in the terminal iterates through the alarm message list, thereby sending the alarm message.
[0099] In addition, the terminal can execute the above-mentioned timing task through a preset timer, such as the above-mentioned detection time length. When the detection time length arrives, the terminal can execute the above-mentioned timing task, thereby ensuring the real-time performance of the consistency judgment.
[0100] Through the embodiment, the terminal can output the alarm information in time when detecting that the consistency does not meet, thereby improving the efficiency of the consistency detection of the power device.
[0101] In one exemplary embodiment, as shown in Figure 2 , it is a flowchart of the power device state consistency detection method in another embodiment. Figure 2 In this embodiment, the terminal is provided with a real-time data subscription module, a data-driven consistency judgment rule partition execution module, a timing check and cleaning module, and an alarm module. Among them, the partition execution module includes a trigger condition judgment component, a target condition judgment component, and a state storage. The partition execution module includes a plurality of partitions corresponding to a plurality of preset consistency detection rules. The specific detection process of the above-mentioned consistency detection rule can be as shown in Figure 3 , it is a flowchart of the power device state consistency detection method in another embodiment. Figure 3
[0102] Among them, the terminal is provided with a real-time data subscription module, which can be used to collect real-time state data of the measuring point. The terminal saves all measuring points related to the consistency judgment rules of all power equipment states of the entire system through the real-time data subscription module. And the terminal can register the subscription task of these measuring points in advance through the real-time data subscription module to the source system, such as the device state monitoring system, the centralized control system, the electric energy management system and the like in the power system. After receiving the real-time state data pushed by the terminal through the real-time data subscription module, the related data is pushed to the corresponding partition execution module. Among them, a measuring point in the partition execution module may be used by multiple device state consistency judgment rules.
[0103] In the partition execution module, a partition is a device state consistency judgment rule. The partition execution module has its own independent state memory, trigger condition judgment component and target condition judgment component. Each rule does not affect each other. The real-time state data of the above measuring point drives the logic execution after entering the partition of the related rule.
[0104] The timing check and cleaning module in the terminal is triggered at a timing, and after being triggered, a series of actions are performed based on the preset context of the task submission of the partition execution module, including rule information, state memory and the like.
[0105] The alarm module in the terminal can loop through the alarm message list and send the alarm message.
[0106] In the preset consistency detection rule R, the terminal can write the latest real-time state data of a certain measurement point M received into the state storage in the partition execution module. The id of the current processing measurement point M is recorded. The terminal can obtain from the state storage whether the trigger condition of the above rule R has been started. If it is started, it continues to execute, otherwise the logic chain corresponding to the unstarted state is executed. When the trigger condition is in the started state, the terminal can obtain the id of the current measurement point M from the state storage, set as id_m, then id_m = states[“current_meas_point”]), and then the terminal can obtain the data timestamp t0 (data acquisition time) of the measurement point M in the state storage, which can be specifically expressed as states[“hs_data”][id_m][“timestamp”]. The terminal can also obtain the start time t of the trigger condition (detection state start time), that is, states[“trigger_state_time”]. The terminal can be preset within a time range of ts (preset time difference threshold value), and the device needs to reach a consistent state. When t0-t> ts, the terminal can consider that the judgment time range is exceeded. When the timestamp exceeds the judgment time range, the terminal can end the detection. If the judgment time range is not exceeded, the terminal continues to execute the step of judging whether each measurement point meets the requirement based on the preset consistency detection rule. The consistency detection result can be stored in the state storage of the corresponding partition execution module.
[0107] When the trigger state of the above preset consistency detection rule is detected to be closed, the terminal can execute the trigger condition judgment of the above rule R, that is, whether the start condition is met. If the execution result is false, that is, the preset start condition is not met, the terminal can end the consistency detection process. If it is true, that is, the preset start condition is met, the terminal can set the trigger condition state of the above rule R in the state storage in the partition execution module to be started, that is, the detection state is started. Moreover, the terminal can also set a timer for the above rule R, which is triggered after t+Δt (detection duration). Wherein t refers to the preset time period within which the target condition should be met after the trigger condition is established, that is, the device state is consistent, after the detection state of the preset consistency detection rule is started. Δt refers to the data acquisition delay of the source system, which is usually set to 1 second. Thus, the terminal can execute the step of detecting the consistency of each power device based on the preset consistency detection rule and each real-time state data in the partition execution module, and execute the corresponding timing task when the execution duration reaches the above detection duration.
[0108] The timer triggered timing task includes setting the trigger condition of the rule R to an off state. The target condition judgment result of the rule R, i.e., the result of the consistency detection, is obtained from the state storage of the partition execution module. If it is true, i.e., there is consistency among the power devices, the process is directly ended. If it is not true, i.e., there is a power device that does not meet the preset one-time detection rule with other power devices, it means that the device state is inconsistent, and an alarm message needs to be sent. At this time, the terminal can append the alarm message to the message queue of the alarm module, and set the target_condition to false, indicating that the consistency detection fails.
[0109] Through the above embodiments, the terminal can obtain real-time state data through the preset measurement points, and when the detection condition is met, the consistency of the power devices is detected based on the preset consistency detection rule corresponding to the partition execution module, thereby improving the efficiency of the consistency detection. The consistency judgment is divided into trigger condition and target condition. The trigger condition has two states of on and off. The target condition is executed only when the trigger condition is on, thereby improving the execution efficiency. The logic of the trigger condition and the target condition is expressed by the Aviator expression, and the state storage is used as a shared storage area, so that the condition logic becomes an external configuration, which can be edited and applied externally. Moreover, the analysis program becomes an interpretation execution configuration, and adding, deleting or modifying the rule configuration does not require restarting the analysis program. Through the Aviator expression, the logic is configured externally, and the related measurement point id is extracted from the configuration, so that the real-time data subscription module subscribes on demand, without full subscription, thereby saving resources and improving efficiency. In summary, the terminal divides the consistency judgment into trigger and target conditions, uses the Aviator expression to express the logic, and realizes external configuration through the state storage. The condition logic can be edited without restarting the analysis program, and the real-time data is subscribed on demand, thereby effectively saving resources and improving the efficiency of the consistency detection of the power devices.
[0110] It should be understood that, although each step in the flowchart involved in the above embodiments is displayed in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.
[0111] Based on the same inventive concept, the embodiments of the present application also provide a power equipment state consistency detection device for implementing the power equipment state consistency detection method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more power equipment state consistency detection device embodiments provided below can refer to the limitations of the power equipment state consistency detection method described above, which will not be repeated here.
[0112] In one exemplary embodiment, as shown in Figure 4 A power equipment state consistency detection device is provided, comprising: an acquisition module 500, an input module 502, and a detection module 504, wherein:
[0113] The acquisition module 500 is configured to acquire, based on a preset period, each real-time state data corresponding to each measuring point collected by a data subscription unit; each measuring point is pre-registered in each power equipment, and each measuring point is configured to collect real-time state data corresponding to each power equipment.
[0114] The input module 502 is configured to input each real-time state data into a corresponding partition execution module, and when the detection state of the preset consistency detection rule corresponding to the partition execution module is detected to be turned on, acquire the data acquisition time corresponding to the real-time state data, and acquire the comparison result of the detection state start time corresponding to the preset consistency detection rule and the data acquisition time.
[0115] The detection module 504 is configured to, if the comparison result meets a preset detection condition, perform consistency detection on each power equipment according to the preset consistency detection rule and each real-time state data in the partition execution module.
[0116] In one embodiment, the input module 502 described above is configured to acquire the difference between the data acquisition time and the detection state start time; if the difference is less than or equal to a preset time difference threshold, it is determined that the comparison result meets the preset detection condition.
[0117] In one embodiment, the device further comprises a triggering module configured to, when the detection state of the preset consistency detection rule corresponding to the partition execution module is detected to be turned off, acquire a preset start condition corresponding to the preset consistency detection rule; if the real-time state data meets the preset start condition, change the detection state of the preset consistency detection rule corresponding to the partition execution module to the on state; and perform consistency detection on each power equipment according to the on state of the preset consistency detection rule and each real-time state data in the partition execution module.
[0118] In one embodiment, the trigger module is configured to acquire a detection duration corresponding to the preset consistency detection rule; the detection duration represents a duration when the state of each power device is consistent based on the preset consistency detection rule after the detection state of the preset consistency detection rule changes to an open state; and the consistency detection of each power device based on the preset consistency detection rule and each real-time state data in the partition execution module is performed according to the detection duration.
[0119] In one embodiment, the detection module 504 is configured to acquire each preset state data corresponding to each power device in the preset consistency detection rule; the consistency of each power device exists under the corresponding preset state data; acquire a value comparison result of each preset state data corresponding to each power device and each real-time state data corresponding thereto; and if the value comparison result meets the preset consistency detection rule, determine that each power device passes the consistency detection.
[0120] In one embodiment, the apparatus further includes an alarm module configured to generate alarm information according to each real-time state data corresponding to each power device if each power device does not pass the consistency detection; input the alarm information into a message queue; and output the alarm information based on the message queue.
[0121] In one embodiment, the apparatus further includes a registration module configured to acquire each measuring point corresponding to each preset consistency detection rule when each preset consistency detection rule is detected; acquire each preset power device information corresponding to each measuring point; register the corresponding measuring point in the corresponding power device according to each preset power device information; and collect each real-time state data corresponding to each power device based on each registered measuring point.
[0122] Each module in the power device state consistency detection apparatus can be realized by software, hardware, and a combination thereof in whole or in part. Each module can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform the operation corresponding to each module.
[0123] In one exemplary embodiment, a computer device, which can be a terminal, is provided, and an internal structure diagram of the computer device can be as shown in FIG. 1. Figure 5The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected through a system bus. The communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to perform wired or wireless communication with external terminals. The wireless communication can be achieved through WIFI, mobile cellular network, Near Field Communication (NFC), or other technologies. The computer program is executed by the processor to implement the power equipment state consistency detection method. The display unit of the computer device is configured to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, a trackball, or a touchpad arranged on the shell of the computer device. The input device can also be an external keyboard, a touchpad, or a mouse, etc.
[0124] Those skilled in the art can understand that Figure 5 The skilled in the art can understand that
[0125] In one exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program. The processor executes the computer program to implement the power equipment state consistency detection method.
[0126] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the power equipment state consistency detection method.
[0127] In one embodiment, a computer program product is provided, including a computer program. The computer program is executed by a processor to implement the power equipment state consistency detection method.
[0128] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.
[0129] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments of each method. Any reference to memory, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.
[0130] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, however, any combination of these technical features is deemed to be within the scope of the present application.
[0131] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be pointed out that, for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A power equipment state consistency detection method characterized by, The method comprises: Based on the preset period, the data subscription unit acquires each real-time state data corresponding to each measuring point; each measuring point is pre-registered in each power equipment, and each measuring point is used to collect real-time state data corresponding to each power equipment; When the detection state of the preset consistency detection rule corresponding to the partition execution module is detected to be opened, the data acquisition time corresponding to the real-time state data is acquired, and the comparison result of the detection state opening time corresponding to the preset consistency detection rule, the real-time state data of each measuring point, the target condition and the data acquisition time is acquired; the state storage of the partition execution module stores the data of the current driving preset consistency detection rule execution, the detection state and the detection state opening time; one partition in the partition execution module is a device state consistency judgment rule; if the difference between the data acquisition time and the detection state opening time is less than or equal to the preset time difference threshold, it is determined that the comparison result meets the preset detection condition; If the comparison result meets the preset detection condition, the consistency of each power equipment is detected according to the preset consistency detection rule and each real-time state data in the partition execution module, including: acquiring each preset state data corresponding to each power equipment in the preset consistency detection rule; the preset consistency detection rule includes that when the state of a certain power equipment is in a certain state, the states of other power equipments should be in, and each power equipment has consistency under the corresponding preset state data; the numerical comparison result of each preset state data corresponding to each power equipment and the corresponding real-time state data is acquired; if the numerical comparison result is that the numerical value and relationship of each real-time state data meet the numerical value and relationship of each preset state data, it is determined that each power equipment passes the consistency detection; After the real-time state data is input into the corresponding partition execution module, if the detection state of the preset consistency detection rule corresponding to the partition execution module is detected to be closed, the preset starting condition corresponding to the preset consistency detection rule is acquired; if the real-time state data meets the preset starting condition, the detection state of the preset consistency detection rule corresponding to the partition execution module is changed to the opening state; according to the preset consistency detection rule in the opening state and each real-time state data in the partition execution module, the consistency of each power equipment is detected, when the execution time reaches the detection time, the detection state of the preset consistency detection rule is set to the closed state, and the target condition is acquired from the state storage of the partition execution module; when the target condition is established, the device state is consistent.
2. The method of claim 1, wherein, According to the preset consistency detection rule in the opening state and each real-time state data in the partition execution module, the consistency of each power equipment is detected, including: acquire a detection duration corresponding to the preset consistency detection rule; the detection duration represents a duration when the state of each of the power equipment is consistent based on the preset consistency detection rule after the detection state of the preset consistency detection rule becomes an open state; perform, according to the detection duration, the step of performing consistency detection on each of the power equipment based on the preset consistency detection rule and each of the real-time state data in the partition execution module.
3. The method of claim 1, wherein, After performing the consistency detection on each of the power equipment according to the preset consistency detection rule and each of the real-time state data in the partition execution module, the method further includes: if each of the power equipment does not pass the consistency detection, generating alarm information according to the real-time state data corresponding to each of the power equipment; inputting the alarm information into a message queue and outputting the alarm information based on the message queue.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: when each of the inputted preset consistency detection rules is detected, acquiring each of the measurement points corresponding to each of the preset consistency detection rules; acquiring each of the preset power equipment information corresponding to each of the measurement points; registering the corresponding measurement points in the corresponding power equipment according to each of the preset power equipment information; based on each of the registered measurement points, collecting real-time state data corresponding to each of the power equipment.
5. An electric power equipment state consistency detection device characterized by comprising: The device includes: an acquisition module configured to acquire, based on a preset period, each of the real-time state data corresponding to each of the measurement points collected by a data subscription unit; each of the measurement points is pre-registered in each of the power equipment, and each of the measurement points is configured to collect real-time state data corresponding to each of the power equipment; an input module configured to input each of the real-time state data into a corresponding partition execution module, acquire a data acquisition time corresponding to the real-time state data when the detection state of a preset consistency detection rule corresponding to the partition execution module is detected to be open, and acquire a comparison result of the detection state open time corresponding to the preset consistency detection rule, the real-time state data of each of the measurement points, a target condition, and the data acquisition time; the partition execution module includes a state storage, the state storage stores a measurement point, a detection state, and a detection state open time of data currently driven by a preset consistency detection rule; and one partition in the partition execution module is a device state consistency judgment rule. The detection module is configured to perform consistency detection on each of the power equipment according to the preset consistency detection rule and each of the real-time state data in the partition execution module if the comparison result satisfies a preset detection condition, specifically configured to acquire each preset state data corresponding to each of the power equipment in the preset consistency detection rule; the preset consistency detection rule includes a state in which each power equipment should be in when a certain power equipment is in a certain state, and each of the power equipment has consistency in the corresponding preset state data; acquire a numerical comparison result of each preset state data corresponding to each of the power equipment and each corresponding real-time state data; if the numerical comparison result is that the numerical value and relationship of each real-time state data satisfy the numerical value and relationship of each preset state data, it is determined that each of the power equipment passes the consistency detection. The triggering module is configured to acquire a preset starting condition corresponding to the preset consistency detection rule of the partition execution module when detecting that the detection state of the preset consistency detection rule corresponding to the partition execution module is a closed state; if the real-time state data satisfies the preset starting condition, change the detection state of the preset consistency detection rule corresponding to the partition execution module to an open state; perform consistency detection on each of the power equipment according to the open state of the preset consistency detection rule and each real-time state data in the partition execution module, set the detection state of the preset consistency detection rule to a closed state when the execution duration reaches a detection duration, and acquire a target condition from the state storage of the partition execution module; the device state is consistent when the target condition is established.
6. The apparatus of claim 5, wherein, The detection module is configured to: acquire a detection duration corresponding to the preset consistency detection rule; the detection duration represents a duration corresponding to a state in which each of the power equipment is consistent after the detection state of the preset consistency detection rule is changed to an open state based on the preset consistency detection rule; perform the step of consistency detection on each of the power equipment based on the preset consistency detection rule and each of the real-time state data in the partition execution module according to the detection duration.
7. The apparatus of claim 5, wherein, The device further includes an alarm module configured to: if each of the power equipment does not pass the consistency detection, generate alarm information according to the real-time state data corresponding to each of the power equipment; input the alarm information into a message queue and output the alarm information based on the message queue.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the steps of the method of any one of claims 1 to 4.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 4.
10. A computer program product, characterised in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Data consistency detection method and device
CN111563088A
Distribution network fault studying and judging method and device
CN114678859A
Power equipment abnormity early warning method and device
CN116054404A
Method and device for performing data synchronization processing and computer readable medium
CN117874108A
Oil-immersed power equipment monitoring method and system, terminal and storage medium
CN118093569A