Ammeter relay state detection method and system

Through apparent power analysis and power increment monitoring, the hardware dependence and real-time deficiency problems in relay status detection are solved, automatic remedial measures are implemented, and the reliability and safety of relay status detection are improved.

CN120703677APending Publication Date: 2025-09-26NINGBO HENGLIDA TECH +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511024141.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-24
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

In the existing power metering and control field, relay status detection technology has problems such as strong hardware dependence, insufficient real-time performance and weak fault handling capabilities, which lead to equipment safety hazards.

Method used

Through apparent power analysis and power increment monitoring, relay status judgment can be realized, and automatic switching and fault judgment can be supported, reducing hardware dependence and improving independent processing capabilities.

Benefits of technology

It reduces hardware costs, improves the real-time detection and autonomous processing capabilities, and reduces misjudgments and equipment safety risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120703677A_ABST
    Figure CN120703677A_ABST
Patent Text Reader

Abstract

The invention discloses an ammeter relay state detection method and system, and the method comprises the steps: obtaining sampling data, calculating the current apparent power based on the sampling data, and enabling the sampling data to comprise a current signal and a voltage signal; determining the actual state of the relay according to the current apparent power and a preset starting threshold value; the actual state of the relay comprises closing and opening; when the actual state of the relay is closed in response, calculating an electric quantity increment in a preset time period, and when the electric quantity increment exceeds a preset threshold value, executing a switching-on and switching-off operation; accumulating the remedy times of the brake supplementing and pulling operation, and entering a fault mode when responding to the fact that the remedy times exceed a preset remedy threshold value; and in the fault mode, periodically executing the brake supplementing and pulling operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power electronics technology, and in particular to a method and system for detecting the state of an electric meter relay. Background Art

[0002] The demand for relay status detection technology is growing in the power metering and control fields, primarily in smart meters, grid monitoring, industrial automation, and other fields. With the development of intelligent and digital energy management, relay status detection technology is evolving towards low cost, high reliability, and low power consumption. However, existing technologies generally have the following pain points:

[0003] Strong hardware dependence: Traditional relay status detection relies on mechanical contact feedback or dedicated sensors (such as Hall elements and photoelectric sensors). The hardware cost is high and is easily affected by environmental interference (such as vibration and temperature changes).

[0004] Insufficient real-time performance: Some software algorithms judge the relay status based on only a single electrical parameter (such as current or voltage), which is easily affected by harmonic interference or sudden load changes, leading to misjudgment.

[0005] Weak fault handling capabilities: Existing technologies generally lack a continuous monitoring mechanism for relay faults and are unable to automatically trigger remedial measures (such as re-energizing the circuit breaker) when a fault occurs, resulting in equipment safety hazards.

[0006] Therefore, it is very necessary to develop a response strategy for relay status detection technology that has low hardware dependence and strong autonomous processing capabilities. Summary of the Invention

[0007] In order to solve the above problems, the embodiments of the present application provide a method and system for detecting the status of an electric meter relay, which realizes relay status judgment through apparent power analysis and power increment monitoring, and supports automatic power-on and power-off and fault judgment, reduces dependence on hardware, and improves autonomous processing capabilities; it can be applied to smart meters, electricity management, etc.

[0008] In a first aspect, an embodiment of the present application provides a method for detecting a state of an electric meter relay, the method comprising:

[0009] Acquire sampling data, and calculate current apparent power based on the sampling data, wherein the sampling data includes a current signal and a voltage signal; determine an actual state of the relay according to the current apparent power and a preset starting threshold value; the actual state of the relay includes closed and open;

[0010] In response to the actual state of the relay being closed, calculating the power increment within a preset time period, and performing a supplementary power-on / off operation when the power increment exceeds a preset threshold value;

[0011] The number of remedial operations of the auxiliary power-on / off switch is accumulated, and in response to the number of remedial operations exceeding a preset remedial threshold, a fault mode is entered; in the fault mode, the auxiliary power-on / off switch operation is periodically performed.

[0012] Preferably, the initial state of the relay is a disconnected logic state, and the initial state is formed based on a disconnection instruction issued by a host computer; when the initial state of the relay is consistent with the actual state, the operating state of the relay is normal.

[0013] Preferably, determining the actual state of the relay according to the current apparent power and a preset starting threshold value specifically includes:

[0014] Preset start threshold;

[0015] Determine whether the current apparent power exceeds the start threshold:

[0016] If not, determining that the actual state of the relay is disconnected;

[0017] If so, it is determined that the actual state of the relay is closed.

[0018] Preferably, the method further comprises: in response to the actual state of the relay being disconnected, clearing the accumulated number of remedial operations.

[0019] Preferably, in response to the actual state of the relay being closed, the method specifically includes:

[0020] Preset the minimum unit time required for electricity measurement according to the type of meter;

[0021] When the actual state of the relay is closed, obtaining a preset threshold value and a minimum unit time based on the type of the electric meter;

[0022] Calculating the power increment within a preset time period, where the preset time period is the minimum unit time of one unit;

[0023] Determine whether the power increment exceeds a preset threshold:

[0024] If not, no response;

[0025] If so, a supplementary switching operation is performed; the supplementary switching operation is used to switch off the relay, so that the relay is in a logically disconnected state.

[0026] Preferably, obtaining a preset threshold value and minimum unit time based on the type of the electric meter specifically includes:

[0027] Preset corresponding threshold value and minimum unit time according to the type of each meter;

[0028] Associating the type information of the electric meter with the corresponding threshold value and minimum unit time to generate a mapping table;

[0029] When the actual state of the relay is closed, obtaining type information of the electric meter;

[0030] The corresponding threshold value and the minimum unit time are obtained based on the type information in the mapping table.

[0031] Preferably, the failure modes specifically include:

[0032] Preset periodic execution frequency;

[0033] Periodically executing the power-on / off operation according to the execution frequency until the fault is restored;

[0034] In response to the fault recovery, the accumulated number of times is reset to zero;

[0035] The determination condition for fault recovery includes: the actual state of the relay is disconnected.

[0036] In a second aspect, an embodiment of the present application provides a system for detecting the state of an electric meter relay, the system comprising:

[0037] Data acquisition module: acquires sampled data and calculates the current apparent power based on the sampled data; the sampled data includes current signals and voltage signals;

[0038] State determination module: determines the actual state of the relay based on the current apparent power and the preset starting threshold; the actual state of the relay includes closed and open;

[0039] Verification and remediation module: In response to the relay being in a closed state, the module calculates the power increment within a preset time period and performs a re-closing operation when the power increment exceeds a preset threshold value;

[0040] Fault execution module: accumulates the number of remedial power-off operations, and enters fault mode in response to the number of remedial operations exceeding a preset remedial threshold; in fault mode, periodically executes remedial power-off operations.

[0041] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the computer program, the steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect or any possible implementation of the first aspect.

[0043] The beneficial effects of the present invention are:

[0044] The present invention provides a method and system for detecting the status of an electric meter relay. This method effectively detects the relay status based on apparent power analysis and power increment monitoring, reducing reliance on hardware detection and thus reducing costs. It also monitors abnormal relay status and triggers remedial measures (e.g., re-energizing the circuit breaker), thereby enhancing autonomous processing capabilities.

[0045] The technical solution of the present invention has many technical advantages. In terms of hardware, it only requires the voltage and current sampling circuits built into the meter, without the need for additional hardware modules. In terms of detection methods, the power value is calculated in real time based on the sampled data, and noise interference is eliminated through power increment verification to avoid false triggering. Remedial operations are automatically performed and faults are recorded, reducing the need for manual maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 A flow chart of a method for detecting the state of an electric meter relay provided in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of the structure of a system for detecting the state of an electric meter relay provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0050] Figure 4 This is a flow chart of relay status detection based on apparent power. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0052] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application. Different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments described. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, even though the embodiment may not be clearly described in the following text.

[0053] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the elements described without departing from the scope of the present application. Various examples may appropriately omit, replace, or add various processes or components. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted, or combined. In addition, features described in some examples may be combined in other examples.

[0054] See also Figure 1 , Figure 1 : is a flow chart of a method for detecting the state of an electric meter relay provided in an embodiment of the present application. In the embodiment of the present application, the method includes:

[0055] S101, acquiring sampling data, calculating current apparent power based on the sampling data, and determining the actual state of the relay according to the current apparent power and a preset starting threshold;

[0056] The sampled data includes current signals and voltage signals; the actual state of the relay includes closed and open.

[0057] The executor of this application can be a smart meter, or a management system of a smart meter, etc., which periodically samples the current and voltage signals through the ADC, calculates the current apparent power, makes a preliminary judgment on the state of the relay, verifies the state through the increment of power, and implements remedial measures. It has autonomous processing capabilities and reduces dependence on hardware.

[0058] In this application, the initial state of the relay is a disconnected logic state, and the initial state is formed based on a disconnection instruction issued by a host computer; the host computer can be a master station, or other upper-level terminal or system.

[0059] In actual situations, the initial state of the relay may be inconsistent with the actual state. Based on relatively simple influencing factors, when the relay fails, the relay cannot make effective actions according to the instructions issued by the superior. The manifestation is that the initial state (theoretical) of the relay is inconsistent with the actual state;

[0060] Taking the initial state of the relay as the disconnected logical state as an example, when the initial state and the actual state are consistent, both are disconnected states, then the operating state of the relay is normal; otherwise, the operating state of the relay should be identified as a fault.

[0061] It should be clear that in this application, the theoretical state of the relay after it performs effective action according to the control instruction issued by the superior is called the initial state. The initial state can be an open logical state or a closed logical state. The technical solution of this application is described and implemented based on the initial state being an open logical state. For the initial state being a closed logical state, when performing relay detection, ordinary technicians in this field can adjust the corresponding detection strategy based on the technical solution of this application. The corresponding adjustment objects may include judgment parameters, comparison strategies, remedial methods, etc.

[0062] In one embodiment, the actual state of the relay includes open and closed, and the actual state of the relay is determined according to the current apparent power and a preset starting threshold, specifically including:

[0063] Preset start threshold;

[0064] Determine whether the current apparent power exceeds the start threshold:

[0065] If not, determining that the actual state of the relay is disconnected;

[0066] If so, it is determined that the actual state of the relay is closed.

[0067] In this application, the current apparent power is calculated by current and voltage sampling. Apparent power is a key concept in the power system to describe the total power of the alternating current (AC) circuit. It includes active power and reactive power, which can be understood based on conventional technical terms in this field. For example, active power is the power that is actually converted into useful work, such as thermal energy and mechanical energy; reactive power is used to establish an electromagnetic field and exchange back and forth between the power supply and the load, such as motors and transformers.

[0068] After determining the actual state of the relay based on the apparent power and the starting threshold, appropriate measures can be taken according to the different states, as follows:

[0069] In response to the actual state of the relay being disconnected, the accumulated number of remedial actions is cleared to zero;

[0070] In response to the actual state of the relay being closed, the power increment within a preset time period is calculated, and when the power increment exceeds a preset threshold value, a complementary circuit breaker operation is performed.

[0071] Among them, the auxiliary disconnection operation is used to disconnect the relay and put the relay into a logical disconnection state.

[0072] S102 : In response to the actual state of the relay being closed, calculating the power increment within a preset time period, and performing a supplementary power-off operation when the power increment exceeds a preset threshold value.

[0073] In an embodiment of the present application, the basis for determining the actual state of the relay based on the apparent power and the starting threshold is the sampling data. In order to avoid possible erroneous data in the sampling data, the actual state of the relay is verified based on the electricity measurement of the electric meter, and remedial measures are implemented based on the verification.

[0074] In one embodiment, step S102 specifically includes:

[0075] When the actual state of the relay is closed, obtaining a preset threshold value and a minimum unit time based on the type of the electric meter;

[0076] Calculating the power increment within a preset time period, where the preset time period is the minimum unit time of one unit;

[0077] Determine whether the power increment exceeds a preset threshold:

[0078] If not, no response;

[0079] If so, a supplementary switching operation is performed; the supplementary switching operation is used to switch off the relay, so that the relay is in a logically disconnected state.

[0080] In this application, the change in the amount of electricity in the meter is measured by a threshold value. In actual situations, if the actual state of the relay is closed, the amount of electricity increment will change significantly; if the actual state of the relay is disconnected, the amount of electricity increment will not change significantly. Based on this, the actual state of the relay can be verified.

[0081] The minimum unit time required for measuring electricity can be preset according to the type of electricity meter, so as to calculate the change in electricity quantity of the electricity meter; similarly, the corresponding threshold value can be preset according to the type of electricity meter. Different threshold values ​​can be set according to the type of electricity meter. For example, the threshold value of the direct meter can be defaulted to 1kWh, and the threshold value of the mutual inductance meter can be defaulted to 0.01kWh.

[0082] In order to unify the adaptive management of properties, a mapping form of threshold values ​​and minimum unit time can be constructed based on the meter type. In specific applications, the corresponding preset parameters can be retrieved from the mapping form based on the meter type information.

[0083] In a specific embodiment, obtaining a preset threshold value and minimum unit time based on the type of the electricity meter specifically includes:

[0084] Preset corresponding threshold value and minimum unit time according to the type of each meter;

[0085] Associating the type information of the electric meter with the corresponding threshold value and minimum unit time to generate a mapping table;

[0086] When the actual state of the relay is closed, obtaining type information of the electric meter;

[0087] The corresponding threshold value and the minimum unit time are obtained based on the type information in the mapping table.

[0088] In this application, on the basis of the fixedness of the electricity meter, the corresponding preset parameters, i.e., the threshold value and the minimum unit time, can be directly obtained according to the mapping form. The preset parameters can be used as fixed parameters. On this basis, if the electricity meter is not replaced, no update or verification is performed; when the electricity meter is replaced, it is updated and verified; thus, the mapping form can be stored in the cloud or the upper terminal instead of locally; when updating or verification is required, the corresponding preset parameters are obtained from the cloud or the upper terminal for the relay status detection of the corresponding electricity meter.

[0089] Correspondingly, the startup threshold should also be configurable to adapt to different application environments. Factors affecting the application environment may include the electric meter, load, etc.; for example, the configuration range may be 1W to 100W.

[0090] Of course, if the amount of data in the mapping form is small, or the electricity meter has sufficient storage space, the mapping form can also be stored locally to facilitate real-time query and call of relevant data; in a relatively closed environment (such as network disconnection, poor signal, etc.), the normal implementation of the function can also be guaranteed.

[0091] In this application, the object of the supplementary power-on / off operation is a relay. The relay can be an electromagnetic relay in the real sense or a logic relay based on a circuit in the virtual sense. In the specific implementation, it can be implemented based on the control circuit of the relay. For example, if it is applicable to an electromagnetic relay, the control circuit of the relay can be disconnected to make the relay disconnected; if it is applicable to a logic relay, the logic state of the control circuit can be changed to make the relay in a logically disconnected state.

[0092] S103: accumulating the number of remedial power-off operations, and in response to the number of remedial operations exceeding a preset remedial threshold, entering a fault mode; in the fault mode, performing remedial power-off operations periodically.

[0093] In the embodiments of the present application, the trigger condition for the relay closing operation is that the relay is actually closed. The actual state is determined based on real-time sampling data and is continuously monitored. If a single relay closing operation fails to achieve the desired effect, a second, third, or other relay closing operation can be performed to achieve the desired effect.

[0094] During this process, if multiple switching operations fail to change the actual state of the relay, it indicates that the relay is in a fault state. Fault information can be fed back and the relay can be marked as in a fault state. For relays in a fault state, a degradation strategy can be implemented to extend system availability.

[0095] In one embodiment, step S103 specifically includes:

[0096] Preset remediation thresholds and continuity thresholds for continuity determination;

[0097] Calculate the interval time between the current supplementary power-on / off operation and the previous supplementary power-on / off operation;

[0098] If the interval time exceeds the continuous threshold, the number of remediation attempts will not be accumulated;

[0099] If the interval time does not exceed the continuous threshold, the number of remediation times is accumulated;

[0100] In response to the number of remediation attempts exceeding a preset remediation threshold, a failure mode is entered.

[0101] Relays that enter fault mode can be marked as faulted for easy online identification.

[0102] In the embodiments of the present application, the failure modes specifically include:

[0103] Preset periodic execution frequency;

[0104] Periodically executing the power-on / off operation according to the execution frequency until the fault is restored;

[0105] In response to the fault recovery, the accumulated number of times is reset to zero;

[0106] The determination condition for fault recovery includes: the actual state of the relay is disconnected.

[0107] In this application, the execution frequency can be adjusted according to actual needs to ensure safety, but it should be clear that when performing complementary power-on and power-off operations based on the execution frequency, the interval time between two adjacent complementary power-on and power-off operations should be greater than the continuous threshold to avoid repeated marking.

[0108] Based on the actual situation, after receiving the fault information, the staff can respond based on the actual situation, such as replacing the meter, relay, etc. Whether the staff performs maintenance or the relay recovers autonomously, it can be judged based on the actual state of the relay. That is, when the actual state is disconnected, it can be considered that the fault has been recovered. At this time, the accumulated number of times can be cleared to avoid marking the relay in normal operating state as a fault state.

[0109] In an embodiment of the present application, the relay status (including the initial status and the actual status), the switching trigger record, and the fault information can be stored in a non-volatile memory; they can also be recorded in the form of a log, and remote information reporting is supported, such as remotely reporting fault information to the upper terminal or monitoring center through the communication module of the electric meter.

[0110] The above method based on this application can be implemented through code. The code examples of the main functions are as follows:

[0111] / / C code example: circuit breaker logic and fault determination

[0112] void CheckRelayFault(void) {

[0113] uint32_t current_power;

[0114] float delta_energy;

[0115] if (relay_logical_state == OPEN) {

[0116] current_power = CalculateApparentPower(); / / Calculate apparent power

[0117] if (current_power > STARTUP_POWER_THRESHOLD) { / / Trigger closure determination

[0118] delta_energy = GetEnergyIncrement(); / / Get the energy increment

[0119] if (delta_energy > ENERGY_THRESHOLD) {

[0120] if (++retry_count >= MAX_RETRY_TIMES) {

[0121] SetFaultStatus(FAULT); / / Mark fault

[0122] SetFaultMode(); / / Enter fault mode

[0123] } else {

[0124] ExecuteTrip(); / / Execute trip

[0125] }

[0126] }

[0127] } else {

[0128] retry_count = 0; / / reset the counter

[0129] }

[0130] }

[0131] }

[0132] For ease of demonstration, the above sample code does not introduce a mapping form for threshold values ​​and minimum unit time. During implementation, the threshold values ​​and minimum unit time can be adjusted based on actual needs and the type of meter. This can be intuitively reflected in the implementation code or called based on the mapping form.

[0133] To understand the above sample code, please refer to Figure 4 , Figure 4 For the relay status detection flow chart based on apparent power, it should be clear that: Figure 4 The diagram shows a detection process diagram of a feasible embodiment, which can be understood or interpreted for a specific type of electric meter and does not represent all embodiments of the present application.

[0134] The following will be combined with the Figure 2 , the detection system of the electric meter relay state provided by the embodiment of the present application is introduced in detail. Figure 2 The detection system of the electric meter relay state shown is used to implement the present application Figure 1 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.

[0135] See Figure 2 , Figure 2 Schematic diagram of a system for detecting the status of an electric meter relay provided in an embodiment of the present application. Figure 2 As shown, the system includes:

[0136] Data acquisition module 201: acquires sampled data and calculates the current apparent power based on the sampled data; the sampled data includes current signals and voltage signals;

[0137] State determination module 202: determines the actual state of the relay based on the current apparent power and the preset starting threshold; the actual state of the relay includes closed and open;

[0138] Verification and remediation module 203: in response to the actual state of the relay being closed, calculates the power increment within a preset time period, and performs a re-closing operation when the power increment exceeds a preset threshold value;

[0139] The fault execution module 204 accumulates the number of remedial power-off operations and enters a fault mode in response to the number of remedial operations exceeding a preset remedial threshold; in the fault mode, the remedial power-off operations are periodically executed.

[0140] Those skilled in the art will clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. "Unit" and "module" in this specification refer to software and / or hardware that can independently perform or cooperate with other components to perform specific functions, where the hardware can be, for example, a field-programmable gate array (FPGA) or an integrated circuit (IC).

[0141] Each processing unit and / or module in the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0142] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0143] The communication bus 302 is used to implement the connection and communication between these components.

[0144] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0145] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0146] The central processing unit 301 may include one or more processing cores. The central processing unit 301 utilizes various interfaces and circuits to connect various components within the electronic device 300. It executes instructions, programs, code sets, or instruction sets stored in the memory 305, and accesses data stored in the memory 305 to perform various terminal functions and process data. Optionally, the central processing unit 301 may be implemented in hardware using at least one of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The central processing unit 301 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing content displayed on the display; and the modem handles wireless communications. It is understood that the modem may also be implemented as a separate chip, rather than integrated into the central processing unit 301.

[0147] Among them, the memory 305 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also be optionally at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0148] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the central processing unit 301 can be used to call the meter relay status detection application stored in the memory 305 and specifically perform the following operations:

[0149] Acquire sampling data and calculate the current apparent power based on the sampling data, the sampling data including current signals and voltage signals; determine the actual state of the relay based on the current apparent power and a preset starting threshold; the actual state of the relay includes closed and open;

[0150] In response to the relay being in a closed state, the power increment within a preset time period is calculated, and when the power increment exceeds a preset threshold value, a supplementary power-off operation is performed;

[0151] The system enters a fault mode when the cumulative number of remedial power-off operations exceeds a preset remedial threshold. In the fault mode, the system periodically performs remedial power-off operations.

[0152] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above method. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a microdrive, a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0153] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0154] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0155] In the several embodiments provided in this application, it should be understood that the disclosed system can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interface, and the indirect coupling or communication connection of the system or unit can be electrical or other forms.

[0156] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0157] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk, or optical disk, etc., various media that can store program code.

[0159] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program. The program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0160] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure herein, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not recorded in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for detecting the state of an electric meter relay, characterized in that: The method comprises: Acquire sampling data, and calculate current apparent power based on the sampling data, wherein the sampling data includes a current signal and a voltage signal; determine an actual state of the relay according to the current apparent power and a preset starting threshold value; the actual state of the relay includes closed and open; In response to the actual state of the relay being closed, calculating the power increment within a preset time period, and performing a supplementary power-on / off operation when the power increment exceeds a preset threshold value; The number of remedial operations of the auxiliary power-on / off switch is accumulated, and in response to the number of remedial operations exceeding a preset remedial threshold, a fault mode is entered; in the fault mode, the auxiliary power-on / off switch operation is periodically performed.

2. The method according to claim 1, characterized in that The initial state of the relay is a disconnection logic state, and the initial state is formed based on a disconnection instruction issued by a host computer; when the initial state of the relay is consistent with the actual state, the operating state of the relay is normal.

3. The method according to claim 1, characterized in that Determining the actual state of the relay according to the current apparent power and a preset starting threshold value specifically includes: Preset start threshold; Determine whether the current apparent power exceeds the start threshold: If not, determining that the actual state of the relay is disconnected; If so, it is determined that the actual state of the relay is closed.

4. The method according to claim 3, characterized in that Also includes: In response to the actual state of the relay being open, the accumulated number of remedial operations is cleared to zero.

5. The method according to claim 3, characterized in that In response to the actual state of the relay being closed, the method specifically includes: When the actual state of the relay is closed, obtaining a preset threshold value and a minimum unit time based on the type of the electric meter; Calculating the power increment within a preset time period, where the preset time period is the minimum unit time of one unit; Determine whether the power increment exceeds a preset threshold: If not, no response; If so, a supplementary switching operation is performed; the supplementary switching operation is used to switch off the relay, so that the relay is in a logically disconnected state.

6. The method according to claim 5, characterized in that Get the preset threshold value and minimum unit time based on the meter type, including: Preset corresponding threshold value and minimum unit time according to the type of each meter; Associating the type information of the electric meter with the corresponding threshold value and minimum unit time to generate a mapping table; When the actual state of the relay is closed, obtaining type information of the electric meter; The corresponding threshold value and the minimum unit time are obtained based on the type information in the mapping table.

7. The method according to claim 1, characterized in that The failure modes specifically include: Preset periodic execution frequency; Periodically executing the power-on / off operation according to the execution frequency until the fault is restored; In response to the fault recovery, the accumulated number of times is reset to zero; The determination condition for fault recovery includes: the actual state of the relay is disconnected.

8. A system for detecting the status of an electric meter relay, characterized in that: include: Data acquisition module: obtains sampled data and calculates the current apparent power based on the sampled data; The sampling data includes current signal and voltage signal; State determination module: determines the actual state of the relay based on the current apparent power and the preset starting threshold; The actual states of the relay include closed and open; Verification and remediation module: In response to the relay being in a closed state, the module calculates the power increment within a preset time period and performs a re-closing operation when the power increment exceeds a preset threshold value; Fault execution module: accumulates the number of remedial power-off operations, and enters fault mode in response to the number of remedial operations exceeding a preset remedial threshold; in fault mode, periodically executes remedial power-off operations.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Multi-functional auxiliary testing device of collection terminal

    CN101872003A

  • Electric energy meter stability automatic test method and automatic test platform thereof

    CN111965587A

  • Electric quantity metering correction method and device and micro-grid system

    CN114089260A

  • Control method and device of magnetic latching relay, electronic equipment and storage medium

    CN115963758A

  • Switch-out control method and device, computer equipment and storage medium

    CN117878824A