A pulse remote signaling acquisition method and a pulse remote signaling acquisition terminal of an electric energy meter
By designing a pulse remote signaling acquisition method and terminal for electricity meters, the problem that existing electricity meters cannot collect multi-dimensional data in real time has been solved, thereby improving the efficiency of real-time monitoring and management of the power grid.
Patent Information
- Application Number
- CN202511417095.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2045-09-30
AI Technical Summary
Existing mechanical electricity meters and single-rate electronic electricity meters cannot achieve real-time collection of multi-dimensional data, making it difficult for power management systems to perform dynamic monitoring and precise control, thus hindering the process of intelligent transformation of the power grid.
Design a pulse remote signaling acquisition method and a pulse remote signaling acquisition terminal for electricity meters. Through the combination of processing module, storage module, pulse input port, remote signaling port and remote communication module, the real-time monitoring and uploading of electricity meter data is realized, including pulse metering, remote signaling signal processing and remote communication.
It enables real-time monitoring and data uploading of electricity meter status, supports the safe and stable operation of the power grid and rapid fault diagnosis, and improves the efficiency of power grid management.
Smart Images

Figure CN120916081B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data acquisition technology, and more specifically, to a pulse remote signaling acquisition method and a pulse remote signaling acquisition terminal for an electricity meter. Background Technology
[0002] Due to historical development and technological limitations, a large number of mechanical electricity meters and single-rate electronic electricity meters remain in the current power grid infrastructure. As typical products of early electricity metering technology, these meters are designed with basic electricity metering functions in mind, and can only achieve the cumulative statistics of core parameters such as active power consumption, which can meet the most basic metering and billing needs.
[0003] However, modern power management systems not only require accurate basic electricity metering, but also real-time collection of multi-dimensional key information during power grid operation. This data is crucial for achieving advanced demand-side management functions and is a key foundation for ensuring the safe and stable operation of the power grid and improving energy efficiency. Meanwhile, most older electricity meters lack standardized data communication interfaces, making real-time information exchange with remote master stations impossible. This hinders power management departments from dynamically monitoring and precisely controlling user electricity consumption, severely restricting the progress of intelligent power grid transformation and improving management efficiency. Summary of the Invention
[0004] This application addresses the shortcomings of the prior art by providing a pulse remote signaling acquisition method and a pulse remote signaling acquisition terminal for an electricity meter, in order to solve the problems existing in the prior art.
[0005] The technical solution adopted in the embodiments of this application is as follows:
[0006] In a first aspect, embodiments of this application provide a pulse remote signaling acquisition method for an energy meter, applied to a processing module in a pulse remote signaling acquisition terminal. The pulse remote signaling acquisition terminal further includes: a storage module, a pulse input port, a remote signaling port, and a remote communication module connected to the processing module. The pulse input port and the remote signaling port are respectively used to connect to the pulse output port and the remote signaling input port of the energy meter; both the pulse input port and the remote signaling port are connected to the storage module. The method includes:
[0007] Request corresponding target storage resources for the pulse input port in the storage module;
[0008] A status scan is performed on the pulse input port to obtain the current pulse output data of the energy meter, and the current pulse output data is stored in the target storage resource;
[0009] Based on the pulse configuration information of the preset metering point and the current pulse output data stored in the target storage resource, pulse calculation is performed to obtain the current pulse metering data, and the current pulse metering data is stored in the target storage resource;
[0010] Obtain the current remote signaling input signal of the energy meter collected by the remote signaling port;
[0011] Based on the current remote signaling input signal, determine the current operating status of each controlled switch in the energy meter;
[0012] The remote communication module is used to upload the current pulse output data, the current pulse metering data, and the current operating status stored in the target storage resource to the main station system.
[0013] In one embodiment, the step of requesting a corresponding target storage resource for the pulse input port in the storage module includes:
[0014] Based on the preset configuration information of the pulse output port on the energy meter and the configuration information of the pulse input port, determine the current required external storage resources of the pulse input port;
[0015] Based on the currently required external storage resources, apply for corresponding target storage resources for the pulse input port in the storage module.
[0016] In one embodiment, the pulse input port includes: a first pulse input port and a second pulse input port;
[0017] The step of performing a status scan on the pulse input port to obtain the current pulse output data of the energy meter, and storing the current pulse output data in the target storage resource, includes:
[0018] A status scan is performed on the first pulse input port to obtain pulse width measurement data;
[0019] Perform a pulse counting scan on the second pulse input port to obtain pulse counting data;
[0020] Based on the pulse width measurement data, the data is stored in the target storage resource using the first array structure corresponding to the first pulse input port.
[0021] Based on the pulse count data, the second array structure corresponding to the second pulse input port is used to store it in the target storage resource.
[0022] In one embodiment, the step of performing pulse calculation based on the pulse configuration information of the preset metering point and the current pulse output data stored in the target storage resource to obtain the current pulse metering data includes:
[0023] Read the pulse configuration information from the preset data dictionary and write it into a structure of various preset measurement types;
[0024] Based on the structures of the various preset measurement types, pulse measurement is performed respectively to obtain the measurement data of the various preset measurement types. The current pulse measurement data includes: the measurement data of the various preset measurement types.
[0025] The measurement data of the various preset measurement types are associated with the preset measurement points.
[0026] In one embodiment, the plurality of preset metering types include: power metering type;
[0027] The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes:
[0028] According to the structure of the power metering type, pulse metering is performed using the meter constant, the number of pulses per unit time, and the time interval of each pulse to obtain power metering data; the metering data of the various preset metering types includes: the power metering data.
[0029] In one embodiment, the multiple preset metering types include: power factor metering type;
[0030] The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes:
[0031] According to the structure of the power factor measurement type, pulse measurement is performed using the voltage and current transformer changes, the power meter constant, and the time interval of each pulse in the energy meter measurement circuit to obtain power factor measurement data; the measurement data of the various preset measurement types include the power factor measurement data.
[0032] In one embodiment, the plurality of preset metering types further includes: meter reading metering type;
[0033] The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes:
[0034] According to the structure of the meter value measurement type, the meter value within a preset historical time period is used to perform pulse measurement to obtain the meter value measurement data at the current moment; the measurement data of the various preset measurement types includes: the meter value measurement data at the current moment.
[0035] In one embodiment, the plurality of preset metering types further includes: electricity demand metering type;
[0036] The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes:
[0037] According to the structure of the power demand metering type, pulse metering is performed using the power value within a preset historical time period to obtain power demand metering data; the metering data of the various preset metering types includes: the power demand metering data.
[0038] In one embodiment, determining the current operating status of each controlled switch in the energy meter based on the current remote signaling input signal includes:
[0039] Based on the auxiliary contact type of each controlled switch and the current remote signaling input signal, determine the switch attribute configuration of each controlled switch;
[0040] Read the current remote signaling status of each controlled switch in the energy meter;
[0041] The current operating status of each controlled switch is determined based on the switch attribute configuration and the current remote signaling status of each controlled switch.
[0042] Secondly, this application also provides a pulse remote signaling acquisition terminal, including: a processing module, a storage module, a pulse input port, a remote signaling port, and a remote communication module; the processing module is used to execute the pulse remote signaling acquisition method of the energy meter described in any of the above embodiments;
[0043] The storage module, the pulse input port, the remote signaling port, and the remote communication module are all connected to the processing module; the pulse input port and the remote signaling port are respectively used to connect to the pulse output port and the remote signaling input port of the energy meter; the pulse input port and the remote signaling port are both connected to the storage module.
[0044] The beneficial effects of this application are: This application provides a pulse remote signaling acquisition method for electricity meters, which can upload various data of electricity meters to the main station system through the pulse remote signaling acquisition terminal, realize real-time monitoring of electricity meter status, and provide status data support for the safe and stable operation of the power grid and rapid fault diagnosis. Attached Figure Description
[0045] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is a schematic diagram of the structure of the pulse remote signaling acquisition terminal provided in the embodiments of this application;
[0047] Figure 2 A schematic diagram of the service platform where the pulse remote signaling acquisition terminal provided in this application is located;
[0048] Figure 3 One of the flowcharts for the pulse remote signaling acquisition method of the energy meter provided in the embodiments of this application;
[0049] Figure 4 A second schematic flowchart of the pulse remote signaling acquisition method for an electricity meter provided in this application embodiment;
[0050] Figure 5 The third schematic flowchart of the pulse remote signaling acquisition method for an electricity meter provided in the embodiments of this application;
[0051] Figure 6 A schematic diagram of pulse acquisition filtering glitch provided in this application;
[0052] Figure 7 The fourth schematic flowchart of the pulse remote signaling acquisition method for an electricity meter provided in the embodiments of this application;
[0053] Figure 8 Fifth schematic flowchart of the pulse remote signaling acquisition method for an electricity meter provided in the embodiments of this application;
[0054] Figure 9 This is a schematic diagram of the structure of the pulse remote signaling acquisition device for an electricity meter provided in the embodiments of this application;
[0055] Figure 10 This is a schematic diagram of the processing module provided in an embodiment of this application. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0057] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0058] Furthermore, the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0059] It should be noted that, where there is no conflict, the features in the embodiments of this application can be combined with each other.
[0060] Figure 1 This is a schematic diagram of the structure of the pulse remote signaling acquisition terminal provided in the embodiments of this application, as shown below. Figure 1 As shown, this application provides a pulse remote signaling acquisition terminal, including a processing module, a storage module, a pulse input port, a remote signaling port, and a remote communication module.
[0061] The processing module, as the core of the pulse remote signaling acquisition terminal, is responsible for scheduling the operation of various components, processing the acquired data, and executing calculation logic. The storage module, pulse input port, remote signaling port, and remote communication module are all connected to the processing module.
[0062] The pulse input port and remote signaling port are used to connect to the pulse output port and remote signaling input port of the energy meter, respectively. The pulse output port of the energy meter is the physical interface on the meter used to output pulse signals, while the remote signaling input port is the interface on the energy meter used to receive or provide feedback on discrete signals such as switch status. The pulse input port of the pulse remote signaling acquisition terminal is connected to the pulse output port of the energy meter to acquire the current pulse output data of the energy meter, and the remote signaling port of the pulse remote signaling acquisition terminal is connected to the remote signaling input port of the energy meter to acquire the current remote signaling input signal of the energy meter.
[0063] Both the pulse input port and the remote signaling port are connected to the storage module, which can quickly and in real time store the acquired current pulse output data and current remote signaling input signal into the storage module. This prevents data loss due to sudden power outages during transmission to the processing module, ensuring the reliability of data acquisition. The remote communication module is used to connect to the remote master station system. The master station system serves as the central node for the collection and management of electricity user information, enabling centralized control of the pulse remote signaling acquisition terminal and the underlying electricity meter data.
[0064] Figure 2 This is a schematic diagram of the service platform where the pulse remote signaling acquisition terminal is located, as shown below. Figure 2 As shown, the business platform where the pulse remote signaling acquisition terminal is located is a multi-layered architecture and a system with coordinated functions.
[0065] The operating system layer, upon which the pulse remote signaling acquisition terminal relies, is the underlying support. It provides the basic operating environment for the terminal, responsible for driving and managing hardware resources (such as pulse input ports, remote signaling ports, storage modules, and remote communication modules), ensuring the orderly execution of hardware operations such as pulse acquisition, remote signaling signal acquisition, data storage, and uploading. For example, the operating system's timer function enables timed scanning of the pulse input port, and the device driver controls the remote signaling port to acquire signals, providing stable and reliable hardware operation capabilities for upper-layer business processing. It is the "cornerstone" of terminal-hardware interaction and upper-layer business operation.
[0066] Business Platform Data Processing Layer: Above the operating system layer, this layer performs in-depth processing of raw data acquired from terminals (such as pulse output data and remote signaling input signals). This includes data visualization, presenting power data in an intuitive format; statistical analysis, uncovering electricity consumption patterns and equipment operating status trends; communication protocol processing, adapting to communication rules with external systems such as the master station; data synthesis, integrating multi-source power data; and storage management, efficiently storing the processed data. This is the core component for implementing business logic, connecting the underlying hardware operations with upper-layer applications.
[0067] Functional Application Layer: Control processing, based on the processed data provided by the business platform processing layer, to carry out various power business applications, such as load processing, used for monitoring and regulating grid load, etc.; Human-machine interface, for operation and maintenance personnel to operate and view the system; Protocol processing, using historical and real-time data to predict electricity consumption, equipment status, etc., to support grid planning, operation and maintenance decisions, etc., and is the final layer for realizing business value.
[0068] The raw data collected by the pulse telemetry acquisition terminal is first transmitted to the data processing layer of the business platform. After a series of processing steps (such as parsing, calculation, and storage) at this layer, it becomes standardized and usable data resources. Subsequently, this data is pushed to the functional application layer to drive the operation of various power business applications. At the same time, the functional application layer also transmits operation instructions and configuration information in reverse to guide the acquisition and operation of the pulse telemetry acquisition terminal, forming a closed loop of "acquisition-processing-application-feedback". This ensures the smooth operation of services such as electricity consumption information collection for power users and power grid operation monitoring. Meanwhile, the database (resource repository, data vehicle) provides support for the storage and sharing of data at each layer, ensuring the continuity and reliability of data flow between layers.
[0069] The software interface between the pulse remote signaling acquisition terminal and the operating system layer includes: the remote signaling pulse acquisition interface ReadDi, used to read the pulse count; and the timer interface setitimer, used to set the timer.
[0070] Based on this, this application also provides a pulse remote signaling acquisition method for an electricity meter. This method is applied to the processing module in the pulse remote signaling acquisition terminal. The following examples, in conjunction with the accompanying drawings, provide specific illustrations of the pulse remote signaling acquisition method for an electricity meter provided in this application.
[0071] Figure 3 This is one of the flowcharts illustrating the pulse remote signaling acquisition method for an electricity meter provided in this application embodiment, such as... Figure 3 As shown, the method includes:
[0072] S101. Request the corresponding target storage resource for the pulse input port in the storage module.
[0073] The processing module reads the preset configuration of the pulse output port of the energy meter (including pulse constant K, unit imp / kWh or imp / kvarh) and the pulse input port configuration (number of input channels, 4 rates (peak and valley) settings), determines the external storage resources required by the pulse input port, and applies for the corresponding target storage resources for the pulse input port in the storage module according to the required external storage resources.
[0074] S102. Perform a status scan on the pulse input port to obtain the current pulse output data of the energy meter, and store the current pulse output data in the target storage resource.
[0075] By using the timer function provided by the operating system layer, a 20ms timer is established. The status of the pulse input port is scanned periodically using the 20ms timer to obtain the current pulse output data of the energy meter. After obtaining the current pulse output data of the energy meter, the current pulse output data is stored in the target storage resource of the storage module.
[0076] S103. Based on the pulse configuration information of the preset metering point and the current pulse output data stored in the target storage resource, pulse calculation is performed to obtain the current pulse metering data, and the current pulse metering data is stored in the target storage resource.
[0077] The processing module performs pulse calculations based on the pulse configuration information of the preset metering points and the current pulse output data stored in the target storage resources to obtain the current pulse metering data. Taking the pulse configuration information, which includes the meter constant, the number of pulses per unit time, and the time interval of each pulse, as an example, the processing module performs pulse metering based on this information and the current pulse output data to obtain the power metering data. In other words, the current pulse metering data includes the power metering data.
[0078] S104. Obtain the current remote signaling input signal of the energy meter collected by the remote signaling port.
[0079] The processing module uses a 1-second timed scan to call the remote signaling driver to read the current remote signaling input signal acquired by the remote signaling port, with a response accuracy of 1 second, meeting the design document requirements. During acquisition, three 20ms interval level checks are performed to ensure signal validity.
[0080] S105. Determine the current operating status of each controlled switch in the energy meter based on the current remote signal input signal.
[0081] Remote signaling input signals are discrete signals used to indicate the receiving or feedback switch status of the energy meter. The current operating status of each controlled switch in the energy meter can be determined based on the current remote signaling input signal.
[0082] S106. Using a remote communication module, the current pulse output data, current pulse measurement data, and current operating status stored in the target storage resources are uploaded to the main station system.
[0083] The remote communication module follows the Q / GDW376.1—2019 protocol to package and upload the raw pulse data, metering data (electrical energy, power, etc.), and switch status data from the target storage resources to the main station, supporting the main station's comparative analysis.
[0084] In summary, this embodiment provides a pulse remote signaling acquisition method for electricity meters, which can upload various data of electricity meters to the main station system through the pulse remote signaling acquisition terminal, realize real-time monitoring of electricity meter status, and provide status data support for the safe and stable operation of the power grid and rapid fault diagnosis.
[0085] Figure 4 This is the second flowchart illustrating the pulse remote signaling acquisition method for an electricity meter provided in this application embodiment. Figure 4 As shown, step S101, requesting the corresponding target storage resource for the pulse input port in the storage module, includes:
[0086] S201. Based on the preset configuration information of the pulse output port on the energy meter and the configuration information of the pulse input port, determine the current external storage resources required by the pulse input port.
[0087] During data calculation, the processing module needs to request some external storage resources. These external storage resources are mainly used to store: the total and remaining pulse count of the rate at each branch pulse information point, and the demand slip zone (power value per minute in the last 15 minutes).
[0088] In this embodiment, the processing module reads the preset configuration information (including pulse constant K, in units of imp / kWh or imp / kvarh) of the energy meter's pulse output port and the configuration parameters of the pulse input port (including the number of input channels DI_CH_NUM, four tariff rates (peak and valley) configurations, and demand calculation parameters) to determine the type and capacity of the external storage resources currently required. The external storage resources specifically include:
[0089] The total remaining pulse count storage area for each branch pulse information point is used to accumulate the pulse balance that has not been calculated across time periods; the four separate storage areas for the remaining pulse count of the four sub-rates (peak, peak, flat, and valley) ensure that pulse data across rate periods can be continuously accumulated (e.g., when the remaining 3 pulses of the peak segment cross to the flat segment, the newly collected pulses are counted in the flat segment, and when returning to the peak segment, they are accumulated based on the remaining 3 pulses); the demand slippage area is used to store the power value of each whole minute in the most recent 15 minutes, supporting the demand calculation logic of 15-minute integral and 1-minute step.
[0090] S202. Based on the current required external storage resources, apply for the corresponding target storage resources for the pulse input port in the storage module.
[0091] The system calls the private external storage operation interface provided by the storage module to request target storage resources based on the resource requirements determined in S201. The target storage resources adopt a non-volatile storage design to ensure that critical information such as the remaining pulse count and demand slip data are not lost after a power outage, meeting the hard requirements for pulse data power loss protection.
[0092] In one embodiment, the pulse input port includes a first pulse input port and a second pulse input port. Figure 5 This is the third flowchart illustrating the pulse remote signaling acquisition method for an electricity meter provided in this application embodiment. Figure 5 As shown, step S102, which involves performing a status scan on the pulse input port to obtain the current pulse output data of the energy meter and storing the current pulse output data in the target storage resource, includes:
[0093] S301. Perform a status scan on the first pulse input port to obtain pulse width measurement data.
[0094] There are two pulse input methods: pulse width measurement and pulse counting. The pulse width measurement method is mainly used to calculate the instantaneous power based on the interval between two pulses, while the pulse counting method is generally used to calculate the average power per minute based on the number of pulses counted within one minute.
[0095] The first pulse input port can be a pulse width measurement port, used to acquire pulse width measurement data. The processing module establishes a 20ms timer interrupt through the timer function of the arm-linux operating system layer. Based on this interrupt period, the first pulse input port is scanned for status. The hardware API function is called to detect the rising and falling edge times of the pulse signal in real time, calculate the interval between two pulses, and generate pulse width measurement data, providing the original basis for subsequent power calculation using the pulse interval method.
[0096] S302. Perform pulse counting scan on the second pulse input port to obtain pulse counting data.
[0097] The first pulse input port can be a pulse counting scan port used to acquire pulse count data. Based on the same 20ms timer interrupt, the second pulse input port is scanned for pulse counting. Considering the hardware interface characteristics in the design document, the pulse width of the pulse signal received by the terminal is 60-80ms. Therefore, the recognition rule is set as "if three or more consecutive 20ms interrupts detect a high level, it is determined as one valid electrical pulse".
[0098] Simultaneously perform digital filtering anti-interference processing: such as Figure 6 As shown, filtering logic is designed for the positive pulse connection (normally low level, high level when a pulse occurs) and the passive (negative pulse) connection (normally high level, low level when a pulse occurs) supported by the interface board:
[0099] In the negative pulse connection method: Normally, the level is high; when a pulse occurs, the level is low. In this case, processing occurs every 20ms. If a low level is sampled, the low-level count is incremented by one, up to a maximum of 5. If a high level is sampled, it is checked whether there are more than two low levels. If there are more than two, it is considered a valid pulse; otherwise, the low-level count is cleared (considered a Class A glitch, such as...). Figure 6 (As shown on the left) Type A glitches at the high level will not affect the low-level counting, but Type B glitches may cause pulse overcounting.
[0100] In the positive pulse configuration: The signal is normally low, and high when a pulse occurs. In this case, processing occurs every 20ms. If a low level is sampled, the low-level count is incremented by one, up to a maximum of 5. If a high level is sampled, it is checked whether there are more than two low-level counts. If there are more than two, it is considered a valid pulse; otherwise, the low-level count is cleared (considered a Class A glitch, such as...). Figure 6(As shown on the left).
[0101] S303. Based on the pulse width measurement data, the first array structure corresponding to the first pulse input port is used to store the data in the target storage resource.
[0102] S304. Based on the pulse counting data, the second array structure corresponding to the second pulse input port is used to store the data in the target storage resource.
[0103] Define a pulse input port array DISA[DI_CH_NUM] (DI_CH_NUM is the maximum number of pulse input channels supported by the terminal), where the first pulse input port corresponds to the first array structure (containing fields such as "pulse width measurement" identifier, scan timestamp, and pulse interval value), and the second pulse input port corresponds to the second array structure (containing fields such as "pulse count" identifier, effective pulse count, and filtering result). Write the pulse width measurement data from S301 and the effective pulse count data from S302 into their respective array structures and simultaneously store them in the target storage resource to achieve real-time data storage and structured management of the acquired data.
[0104] Figure 7 This is the fourth flowchart illustrating the pulse remote signaling acquisition method for an electricity meter provided in this application embodiment. Figure 7 As shown, step S103 involves calculating the current pulse measurement data based on the pulse configuration information of the preset measurement point and the current pulse output data stored in the target storage resource, including:
[0105] S401. Read pulse configuration information from the preset data dictionary and write it into a structure of various preset measurement types.
[0106] The processing module reads the complete pulse configuration information of the preset metering points from the preset data dictionary, and splits the configuration information according to the attribute requirements of various preset metering types and writes it into the corresponding type of dedicated structure to realize the structured management of configuration information.
[0107] The preset data dictionary conforms to the definition specification of "platform data dictionary" in the design document, and the stored pulse configuration information includes at least: pulse constant K (unit imp / kWh or imp / kvarh), TV ratio Kv, TA ratio Ki, rate period division information, demand integration time (15 minutes), demand step time (1 minute), and historical metering data (including meter readings and power values for preset historical time periods).
[0108] The various preset metering types include power metering type, power factor metering type, meter reading metering type, and energy demand metering type, and the corresponding constructed structures are as follows:
[0109] The power metering structure (Power_Cfg_Struct) contains the fields "Pulse Constant K", "Power Calculation Method Identifier", "Storage Address of Pulses per Unit Time", and "Storage Address of Pulse Interval". The "Power Calculation Method Identifier" is marked as "Average Power Method" or "Pulse Interval Method" through macro definition.
[0110] The power factor metering structure (PowerFactor_Cfg_Struct) contains the fields "TV ratio Kv", "TA ratio Ki", "pulse constant K", "pulse interval data storage address", "active power data association identifier", and "reactive power data association identifier".
[0111] The meter reading structure (MeterValue_Cfg_Struct) contains the fields "pulse constant K", "remainder of last calculation", "historical meter reading array" (stores minute-level meter readings within a preset historical time period) and "rate identifier".
[0112] The electricity demand metering structure (Demand_Cfg_Struct) contains the fields "Demand integration time (15 minutes)", "Demand step time (1 minute)", "Historical power value slip zone address" (stores the power value of each whole minute in the last 15 minutes) and "Rate switching flag".
[0113] S402. Based on the structures of various preset measurement types, pulse measurement is performed respectively to obtain measurement data of various preset measurement types.
[0114] The processing module calls the calculation function matched to each metering type, reads the configuration parameters in the corresponding structure and the current pulse output data (including pulse count and pulse interval) in the target storage resource, and performs metering calculations respectively to obtain metering data for various preset metering types:
[0115] Power metering data calculation: The power calculation function PlsPow is called to perform calculations based on the power metering structure (Power_Cfg_Struct).
[0116] 1. If the "Power Calculation Method Identifier" in the structure is "Average Power Method", the calculation formula is:
[0117] (1)
[0118] Where K is the pulse constant, n is the "number of pulses per unit time" (the number of pulses that occur within 1 minute) pointed to by the structure, Δt is the time interval (1 minute, in seconds) experienced by n pulses, and P is in the unit of 0.0001 watts. When there is no pulse, P=0.
[0119] 2. If identified as "Pulse Interval Method", the calculation is performed based on the power factor metering structure (PowerFactor_Cfg_Struct) according to Formula 2:
[0120] (2)
[0121] Among them, PT ratio and CT ratio are the voltage and current transformer ratios of the metering circuit of the energy meter, K is the pulse constant, which means that each K pulse is 1 degree of energy meter; Δt is the time interval between two pulses, in hours.
[0122] When the time interval between two pulses exceeds 10 minutes, the power is considered to be zero. During these 10 minutes, the power should gradually decrease. The specific method is as follows: after the last pulse arrives, the time Δt1 experienced at each whole minute is compared with the time interval Δt2 of the previous pulse. If Δt1>Δt2, then a power calculation is performed based on Δt1. If there is still no pulse input by the 10th minute, then P=0 is set.
[0123] 3. Calculation of current meter reading: Call the meter reading calculation function PlsEn, and perform calculations based on the meter reading structure (MeterValue_Cfg_Struct): Read the latest value (last minute's meter reading) from the "historical meter reading array", the "last calculation remainder", and the "current pulse count Pls" from the target storage resource; calculate the meter reading increment for 1 minute:
[0124] The meter reading for 1 minute (delta secondary value) = (pulse count Pls + previous calculation remainder) × 1000 / meter constant K (rounded down); pulse remainder = (pulse count Pls + previous calculation remainder) × 1000 / meter constant K (remainder); meter reading = previous minute meter reading (window value) + current minute meter reading (delta secondary value); the formula for daily and monthly energy (secondary value) is the same as above. Note that the daily energy delta value refers to the cumulative energy of one day starting from 00:00 on that day, and the monthly energy delta value refers to the cumulative energy of one month starting from 00:00 on the 1st of that month; the daily energy delta value should be cleared to 0 when the day ends, and the monthly energy delta value should be cleared to 0 when the month ends.
[0125] 4. Calculation of electricity demand metering data: Call the demand calculation function CalPlsDm, based on the electricity demand metering structure (Demand_Cfg_Struct), and perform the calculation according to Formula 3:
[0126] (3)
[0127] Formula 3 indicates that the demand in the Kth minute is equal to the arithmetic mean of the power in the previous n minutes. The step time is 1 minute, and the integration time n is 15 minutes. For example, read the power data array Pi (i=1 to 15) within 15 minutes corresponding to the "historical power value slippage address" in the structure; calculate the current demand according to the formula: Dm=(P1+P2+...+P15) / 15; if the "rate switching flag" in the structure is 1 (cross-rate period), then clear the slippage area and reinitialize the power data array to avoid data confusion between different rate periods; write the calculation result to the "electricity demand metering data cache area", and synchronously record the maximum demand value and the time of occurrence (accurate to the minute).
[0128] S403. Associate measurement data of multiple preset measurement types with preset measurement points.
[0129] The processing module associates data from the "Power Metering Data Cache Area", "Power Factor Metering Data Cache Area", "Electricity Meter Value Metering Data Cache Area", and "Energy Demand Metering Data Cache Area" with the corresponding preset metering points based on the unique identifier (metering point ID) of each preset metering point. If a single preset metering point is associated with multiple pulse input ports (such as a total feeder metering point), the module performs cumulative calculations on the same type of metering data corresponding to the multiple pulses before binding them.
[0130] After the association is completed, the integrated current pulse metering data (including four types of metering data) will be written into the corresponding data item of the target storage resource (such as RT_POS_Z_AP_EV_ID corresponding to instantaneous positive active power) according to the data dictionary specification in the design document, for subsequent uploading to the main station system.
[0131] Figure 8 This is the fifth flowchart illustrating the pulse remote signaling acquisition method for an electricity meter provided in this application embodiment. Figure 8 As shown, S105, determining the current operating status of each controlled switch in the energy meter based on the current remote signaling input signal, includes:
[0132] S501. Determine the switch attribute configuration of each controlled switch based on the auxiliary contact type of each controlled switch and the current remote signaling input signal.
[0133] The processing module reads the auxiliary contact type parameters of each controlled switch from the data dictionary storage unit, and combines them with the initial level characteristics of the current remote signaling input signal to generate the switch attribute configuration of each controlled switch, establishing a mapping relationship between contact type and attribute rules: The auxiliary contact type is based on the design document definition and is divided into type A contact and type B contact: Type A contact is "a contact whose contact state is consistent with the operating state of the controlled switch", which usually corresponds to the "normally closed" contact attribute in the field; Type B contact is "a contact whose contact state is opposite to the operating state of the controlled switch", which usually corresponds to the "normally open" contact attribute in the field.
[0134] The data dictionary storage unit pre-stores a mapping table of "contact type - level characteristics - attribute configuration". After the processing module reads the contact type, it collects the initial remote signal input signal (the level when the switch action is not triggered) through the remote signaling port, and generates the switch attribute configuration by matching the mapping table: if the contact type is type A (normally closed) and the initial remote signal input signal is high level, then the switch attribute configuration is "normally closed contact - high level corresponds to closing state"; if the contact type is type B (normally open) and the initial remote signal input signal is low level, then the switch attribute configuration is "normally open contact - low level corresponds to opening state".
[0135] The generated switch attribute configuration is stored in a dedicated structure (Switch_Attr_Struct), which includes fields such as "contact type", "initial level", "state-level mapping rule" and "attribute activation flag", thus realizing the structured management of attribute configuration.
[0136] S502. Read the current remote signaling status of each controlled switch in the energy meter.
[0137] Based on the 1-second scanning cycle specified in the design document, the processing module calls the remote signaling processing device file driver provided by the operating system through the remote signaling port to read the remote signaling input signals corresponding to each controlled switch in real time and obtain the current remote signaling status. During the remote signaling status acquisition process, level debouncing processing is performed: the level signals of three consecutive scans (each with an interval of 20ms) are checked for consistency. If the three levels are consistent, it is determined to be a valid current remote signaling status, filtering out instantaneous level fluctuations caused by power grid interference. The acquired current remote signaling status is stored as a binary identifier of "high level / low level" and associated with the corresponding switch number and acquisition timestamp, and written to the remote signaling status buffer to ensure the timeliness and traceability of the status data.
[0138] S503. Determine the current operating status of each controlled switch based on the switch attribute configuration and the current remote signaling status of each controlled switch.
[0139] The status determination unit calls the switch attribute configuration structure (Switch_Attr_Struct) generated in step S501, and combines it with the current remote signaling status collected in step S502 to execute the fusion determination logic to determine the current operating status of each controlled switch:
[0140] Type A contact (normally closed) status determination: Read the "status-level mapping rule" in the structure - "high level corresponds to closing, low level corresponds to opening"; if the current remote signaling status is high level and consistent with the initial level, then the current operating status of the controlled switch is determined to be "closing"; if the current remote signaling status is low level and opposite to the initial level, then the current operating status of the controlled switch is determined to be "open".
[0141] Type B contact (normally open) status determination: Read the "status-level mapping rule" in the structure - "low level corresponds to open, high level corresponds to closed"; if the current remote signaling status is low level and consistent with the initial level, then the current operating status of the controlled switch is determined to be "open"; if the current remote signaling status is high level and opposite to the initial level, then the current operating status of the controlled switch is determined to be "closed".
[0142] Status change verification and recording: After the judgment is completed, the current operating status is compared with the status of the previous cycle. If there is a change (closing → opening or opening → closing), the "change status" is marked and the change timestamp is recorded. The data is synchronously updated to the corresponding data item in the data dictionary (such as SWITCH_XCH_STATU), which meets the requirements of remote signaling change processing in the design document.
[0143] In summary, this application provides a pulse remote signaling acquisition method for electricity meters, which has the following advantages:
[0144] 1. A standardized communication bridge was built between old electricity meters and the remote monitoring center, realizing real-time remote interaction of electricity consumption information. This provided a data transmission channel for dynamic monitoring and precise control, solving the technical problem that old electricity meters lacked standardized communication interfaces and could not achieve remote information interaction.
[0145] 2. Through the link of "directed configuration of storage resources - pulse acquisition - precise calculation", the single pulse signal output by the old electricity meter is transformed into multi-dimensional metering data, covering the core parameters required by modern power management, making up for the functional limitations of the old electricity meter, and solving the technical problem that the old electricity meter has a single function and cannot output multi-dimensional power grid operation information.
[0146] 3. The 20ms timed interrupt scanning and digital filtering anti-interference method effectively filters out power grid interference signals, ensures the accuracy of raw pulse data acquisition, lays the foundation for subsequent accurate calculation, and solves the technical problems of easy loss of pulse data, low acquisition accuracy, and inability to support accurate measurement.
[0147] 4. Real-time monitoring of the status of key power grid equipment has been achieved, providing status data support for the safe and stable operation of the power grid and rapid fault diagnosis, and solving the technical problem that the power grid lacks real-time monitoring of its operating status and cannot support safe and stable management.
[0148] The following will continue to explain the apparatus, processing device, and storage medium for implementing the pulse remote signaling acquisition method for electricity meters provided in any of the above embodiments of this application. The specific implementation process and the resulting technical effects are the same as those in the corresponding method embodiments. For the sake of brevity, the parts not mentioned in the following embodiments can be referred to the corresponding content in the method embodiments.
[0149] Figure 9This is a schematic diagram of the structure of the pulse remote signaling acquisition device for the electricity meter provided in the embodiments of this application, as shown below. Figure 9 As shown, this application also provides a pulse remote signaling acquisition device for an electricity meter, which is applied to a processing module in a pulse remote signaling acquisition terminal. The pulse remote signaling acquisition terminal further includes: a storage module, a pulse input port, a remote signaling port, and a remote communication module connected to the processing module. The pulse input port and the remote signaling port are respectively used to connect to the pulse output port and the remote signaling input port of the electricity meter; both the pulse input port and the remote signaling port are connected to the storage module.
[0150] The device includes:
[0151] The resource application module 10 is used to apply for the corresponding target storage resources for the pulse input port in the storage module.
[0152] The scanning module 20 is used to perform a status scan on the pulse input port, obtain the current pulse output data of the energy meter, and store the current pulse output data in the target storage resource.
[0153] The calculation module 30 is used to perform pulse calculation based on the pulse configuration information of the preset metering point and the current pulse output data stored in the target storage resource to obtain the current pulse metering data, and store the current pulse metering data in the target storage resource.
[0154] The acquisition module 40 is used to acquire the current remote signaling input signal of the energy meter collected by the remote signaling port.
[0155] The determination module 50 is used to determine the current operating status of each controlled switch in the energy meter based on the current remote signaling input signal.
[0156] The upload module 60 is used to upload the current pulse output data, the current pulse metering data, and the current operating status stored in the target storage resource to the main station system using the remote communication module.
[0157] Optionally, the resource application module 10 is further configured to determine the current required external storage resources of the pulse input port based on the preset configuration information of the pulse output port on the energy meter and the configuration information of the pulse input port; and to apply for corresponding target storage resources for the pulse input port in the storage module based on the current required external storage resources.
[0158] Optionally, the pulse input port includes: a first pulse input port and a second pulse input port; the scanning module 20 is further configured to perform a state scan on the first pulse input port to obtain pulse width measurement data; perform a pulse counting scan on the second pulse input port to obtain pulse counting data; store the pulse width measurement data in the target storage resource using a first array structure corresponding to the first pulse input port; and store the pulse counting data in the target storage resource using a second array structure corresponding to the second pulse input port.
[0159] Optionally, the calculation module 30 is further configured to read the pulse configuration information from a preset data dictionary and write it into a structure of multiple preset measurement types; perform pulse measurement according to the structures of the multiple preset measurement types to obtain the measurement data of the multiple preset measurement types, wherein the current pulse measurement data includes the measurement data of the multiple preset measurement types; and associate the measurement data of the multiple preset measurement types with the preset measurement point.
[0160] Optionally, the multiple preset metering types include: power metering type; the calculation module 30 is further configured to perform pulse metering based on the structure of the power metering type, using meter constant, number of pulses per unit time, and time interval of each pulse, to obtain power metering data; the metering data of the multiple preset metering types includes: the power metering data.
[0161] Optionally, the multiple preset metering types include: power factor metering type; the calculation module 30 is further configured to perform pulse metering based on the structure of the power factor metering type, using the voltage and current transformer changes of the energy meter metering circuit, the energy meter constant, and the time interval of each pulse, to obtain power factor metering data; the metering data of the multiple preset metering types includes: the power factor metering data.
[0162] Optionally, the multiple preset metering types further include: meter reading metering type; the calculation module 30 is also used to perform pulse metering based on the structure of the meter reading metering type, using the meter reading within a preset historical time period, to obtain the meter reading metering data at the current moment; the metering data of the multiple preset metering types includes: the meter reading metering data at the current moment.
[0163] Optionally, the multiple preset metering types further include: energy demand metering type; the calculation module 30 is also used to perform pulse metering using power values within a preset historical time period according to the structure of the energy demand metering type to obtain energy demand metering data; the metering data of the multiple preset metering types includes: the energy demand metering data.
[0164] Optionally, the determining module 50 is further configured to determine the switch attribute configuration of each controlled switch based on the auxiliary contact type of each controlled switch and the current remote signaling input signal; read the current remote signaling status of each controlled switch in the energy meter; and determine the current operating status of each controlled switch based on the switch attribute configuration of each controlled switch and the current remote signaling status of each controlled switch.
[0165] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.
[0166] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).
[0167] Figure 10 This is a schematic diagram of the structure of the processing module provided in the embodiments of this application, as shown below. Figure 10 As shown, this application also provides a processing module, including a processor 100, a storage medium 200 and a bus 300. The storage medium stores program instructions executable by the processor. When the processing device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to implement the pulse remote signaling acquisition method of the energy meter described in any of the above embodiments.
[0168] This application also provides a readable storage medium storing program instructions, which, when executed by a processor, implement the pulse remote signaling acquisition method for an energy meter as described in any of the above embodiments.
[0169] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0170] The units described as separate components may or may not be physically separate. 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 the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0171] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0172] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0173] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for acquiring pulse remote signaling data in an electricity meter, characterized in that, A processing module is applied in a pulse remote signaling acquisition terminal. The pulse remote signaling acquisition terminal further includes: a storage module, a pulse input port, a remote signaling port, and a remote communication module connected to the processing module. The pulse input port and the remote signaling port are respectively used to connect to the pulse output port and the remote signaling input port of the energy meter. Both the pulse input port and the remote signaling port are connected to the storage module. The method includes: Request corresponding target storage resources for the pulse input port in the storage module; A status scan is performed on the pulse input port to obtain the current pulse output data of the energy meter, and the current pulse output data is stored in the target storage resource; Based on the pulse configuration information of the preset metering point and the current pulse output data stored in the target storage resource, pulse calculation is performed to obtain the current pulse metering data, and the current pulse metering data is stored in the target storage resource; Obtain the current remote signaling input signal of the energy meter collected by the remote signaling port; Based on the current remote signaling input signal, determine the current operating status of each controlled switch in the energy meter; Using the remote communication module, the current pulse output data, the current pulse measurement data, and the current operating status stored in the target storage resource are uploaded to the main station system; The current pulse output data includes: pulse count and pulse interval; The pulse configuration information includes: meter constant, number of pulses per unit time, and time interval of each pulse; The step of calculating the current pulse measurement data based on the pulse configuration information of the preset measurement point and the current pulse output data stored in the target storage resource includes: Read the pulse configuration information from the preset data dictionary and write it into a structure of various preset measurement types; Based on the structures of the various preset measurement types, pulse measurement is performed respectively to obtain the measurement data of the various preset measurement types. The current pulse measurement data includes: the measurement data of the various preset measurement types. The measurement data of the various preset measurement types are associated with the preset measurement points.
2. The method according to claim 1, characterized in that, The step of requesting the corresponding target storage resource for the pulse input port in the storage module includes: Based on the preset configuration information of the pulse output port on the energy meter and the configuration information of the pulse input port, determine the current required external storage resources of the pulse input port; Based on the currently required external storage resources, apply for corresponding target storage resources for the pulse input port in the storage module.
3. The method according to claim 1, characterized in that, The pulse input port includes: a first pulse input port and a second pulse input port; The step of performing a status scan on the pulse input port to obtain the current pulse output data of the energy meter, and storing the current pulse output data in the target storage resource, includes: A status scan is performed on the first pulse input port to obtain pulse width measurement data; Perform a pulse counting scan on the second pulse input port to obtain pulse counting data; Based on the pulse width measurement data, the data is stored in the target storage resource using the first array structure corresponding to the first pulse input port. Based on the pulse count data, the second array structure corresponding to the second pulse input port is used to store it in the target storage resource.
4. The method according to claim 1, characterized in that, The various preset metering types include: power metering type; The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes: According to the structure of the power metering type, pulse metering is performed using the meter constant, the number of pulses per unit time, and the time interval of each pulse to obtain power metering data; the metering data of the various preset metering types includes: the power metering data.
5. The method according to claim 1, characterized in that, The various preset metering types include: power factor metering type; The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes: According to the structure of the power factor measurement type, pulse measurement is performed using the metering circuit voltage of the energy meter, the change value of the current transformer, the energy meter constant, and the time interval of each pulse to obtain power factor measurement data; the measurement data of the various preset measurement types include: the power factor measurement data.
6. The method according to claim 1, characterized in that, The various preset metering types also include: meter reading metering type; The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes: According to the structure of the meter value measurement type, the meter value within a preset historical time period is used to perform pulse measurement to obtain the meter value measurement data at the current moment; the measurement data of the various preset measurement types includes: the meter value measurement data at the current moment.
7. The method according to claim 1, characterized in that, The various preset metering types also include: electricity demand metering type; The step of performing pulse measurement on structures based on the various preset measurement types to obtain measurement data for the various preset measurement types includes: According to the structure of the power demand metering type, pulse metering is performed using the power value within a preset historical time period to obtain power demand metering data; the metering data of the various preset metering types includes: the power demand metering data.
8. The method according to claim 1, characterized in that, Determining the current operating status of each controlled switch in the energy meter based on the current remote signaling input signal includes: Based on the auxiliary contact type of each controlled switch and the current remote signaling input signal, determine the switch attribute configuration of each controlled switch; Read the current remote signaling status of each controlled switch in the energy meter; The current operating status of each controlled switch is determined based on the switch attribute configuration and the current remote signaling status of each controlled switch.
9. A pulse remote signaling acquisition terminal, characterized in that, include: Processing module, storage module, pulse input port, remote signaling port, and remote communication module; The processing module is used to execute the pulse remote signaling acquisition method for the energy meter according to any one of claims 1-8; The storage module, the pulse input port, the remote signaling port, and the remote communication module are all connected to the processing module; The pulse input port and the remote signaling port are respectively used to connect to the pulse output port and the remote signaling input port of the energy meter; both the pulse input port and the remote signaling port are connected to the storage module.
Citation Information
Patent Citations
Intelligent diagnosis system of on-site power consumption information acquisition device
CN104392603A
Pulse input meter and metering method
CN114636453A