Primary and secondary meter statistical method and device for electricity quantity of electricity meter

The master meter receives the reply frame from the slave meter to obtain the pulse increment data and calculate the pulse accumulation data, which solves the problems of high hardware cost and low communication efficiency in the existing electricity meter electricity statistics and realizes efficient and low-cost electricity statistics.

CN120761680APending Publication Date: 2025-10-10NINGBO HENGLIDA TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510929100.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-07
Publication Date
2025-10-10

AI Technical Summary

Technical Problem

Existing electricity meter electricity statistics solutions have problems such as high hardware cost, long function development cycle and low communication efficiency, especially when covering multi-quadrant pulse data, which requires additional terminals or function modifications.

Method used

The master meter receives the reply frame sent by the slave meter, obtains the current pulse data of the slave meter and calculates the pulse increment data. The pulse accumulation data is calculated in combination with the current pulse data of the master meter to realize the statistics of the total power of the master meter and the slave meter, reducing the dependence on the communication module and hardware cost.

Benefits of technology

It improves billing efficiency, reduces hardware and network traffic costs, simplifies the development process, avoids pulse leakage caused by frame loss, and achieves efficient power statistics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120761680A_ABST
    Figure CN120761680A_ABST
Patent Text Reader

Abstract

The invention provides a child-mother meter statistics method and device for electricity meter electric quantity, and belongs to the technical field of electricity meter electric quantity statistics. The child-mother meter statistical method for the electric quantity of the electric meter comprises the following steps that S1, when a mother meter and a child meter are powered on, the mother meter receives a reply frame sent by the child meter, and the reply frame comprises child meter current pulse data corresponding to the child meter; s2, acquiring sub-table pulse incremental data based on the current pulse data of the sub-table; s3, acquiring current pulse data of the primary meter, and calculating and acquiring pulse accumulation data based on the current pulse data of the primary meter and the pulse incremental data of the secondary meter; and S4, calculating and obtaining the total electric quantity of the primary meter and the secondary meter based on the pulse accumulation data. During monthly electricity charge metering, the total electric quantity of the primary meter and the secondary meter can be known only by acquiring pulse accumulation data, the charging efficiency is improved, the utilization rate of a communication module is reduced, the hardware cost and the network flow cost are reduced, only electricity meter codes need to be changed in the whole set of environment, additional modification of the module and the main station is not involved, and the development efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electricity meter power statistics, and in particular to a method and device for counting electricity meter power. Background Art

[0002] In existing electricity meter electricity statistics, two solutions are generally adopted to count electricity. The first solution is that the main meter receives external electrical pulses for measurement. First, the electrical pulse port of the sub-meter is connected to the receiving port of the main meter. After the sub-meter is powered on, the electrical pulse port outputs high and low levels. The main meter determines the increase in the sub-meter's pulses based on the levels. The main meter has an internal counter that accumulates and counts each pulse increase. The main meter converts the number of pulses into electrical energy values ​​based on the preset pulse constant and updates it in real time. The second solution is that the main station communicates with the sub-meter through the main meter. The main station sends a communication frame to the main meter for communication with the sub-meter. After the main meter recognizes the communication frame, it sends the reading data to the sub-meter. After receiving the instruction frame, the sub-meter parses and verifies it. According to the reading requirements of the main station, the sub-meter reads the required data from the internal memory, such as electrical energy value, voltage and current, and packages this data according to the specified frame format and replies to the main meter. The main meter integrates the sub-meter data and forwards it back to the main station. However, the first solution has the following problems: it requires a relatively high number of hardware interfaces. Both the sub-meter and the main meter require specific output and input interfaces. Moreover, a single terminal of the sub-meter and the main meter can only output and input one type of electrical pulse data. To cover the pulse data of six points, namely active positive, active negative, reactive power in quadrant 1, reactive power in quadrant 2, reactive power in quadrant 3, and reactive power in quadrant 4, additional terminals are required, resulting in relatively high hardware costs. The second solution has the following problems: the master station sends a communication frame to the main meter for communicating with the sub-meter. The communication process involves the master station, module, main meter, sub-meter and other equipment. In order for the master station to read data items smoothly, when the sub-meter function is modified, the main meter, module, master station, etc. also need to add corresponding functions to distinguish the sub-meter number, sub-meter data and other information. The function development cycle is long and the return is slow. Summary of the Invention

[0003] In order to solve the above problems, the embodiments of the present application provide a method and device for counting the power consumption of an electric meter.

[0004] In a first aspect, the present application provides a method for calculating the total amount of electricity in a meter, including the following steps: S1: When both the master meter and the sub-meter are powered on, the master meter receives a reply frame sent by the sub-meter, wherein the reply frame includes the current pulse data of the sub-meter corresponding to the sub-meter; S2: Obtain sub-table pulse increment data based on the sub-table current pulse data; S3: Obtain the current pulse data of the master meter, and calculate the pulse accumulation data based on the current pulse data of the master meter and the pulse increment data of the sub-meter; S4: calculating the total electric quantity of the master meter and the slave meter based on the pulse accumulation data.

[0005] Preferably, the slave meter current pulse data includes one or more of the following six point pulse data: active positive, active negative, reactive quadrant 1, reactive quadrant 2, reactive quadrant 3, and reactive quadrant 4.

[0006] Preferably, step S2 specifically includes: S21: obtaining the reading state of the slave meter; S22: if the reading state of the slave meter is first reading, taking the slave meter current pulse data as the slave meter pulse increment data and storing the slave meter current pulse data in the first storage module as the history pulse data of the slave meter; S23: if the reading state of the slave meter is non-first reading, calling the history pulse data corresponding to the slave meter from the first storage module, calculating the slave meter pulse increment data based on the history pulse data and the slave meter current pulse data, and updating the history pulse data in the first storage module as the slave meter current pulse data as the new history pulse data of the slave meter.

[0007] Preferably, step S1 further includes setting the slave meter power-on flag bit to off when the slave meter is powered on for the first time, the reply frame further includes the state of the slave meter power-on flag bit corresponding to the slave meter, and step S23 and S3 further include closing the slave meter power-on flag bit; step S21 includes: determining that the reading state of the slave meter is first reading when the slave meter power-on flag bit is included in the reply frame, and determining that the reading state of the slave meter is non-first reading when the slave meter power-on flag bit is not included in the reply frame.

[0008] Preferably, the reply frame in step S1 further includes the slave meter CTPT ratio corresponding to the slave meter, and step S3 specifically includes the following steps based on the master meter current pulse data and the slave meter pulse increment data to calculate the total pulse accumulation data of the master meter and the slave meter: S31: obtaining the master meter CTPT ratio corresponding to the master meter; S32: comparing the slave meter CTPT ratio with the master meter CTPT ratio, and if the slave meter CTPT ratio is different from the master meter CTPT ratio, obtaining the slave meter conversion pulse data matched with the master meter based on the slave meter pulse increment data, the slave meter CTPT ratio, and the master meter CTPT ratio; S33: calculating the total pulse accumulation data of the master meter and the slave meter based on the slave meter conversion pulse data and the master meter current pulse data.

[0009] Preferably, step S1 also includes: the reply frame also includes the sub-table number corresponding to the sub-table, and the sub-table number sent by the sub-table is matched with multiple sub-table numbers stored in the parent table. If the sub-table number sent by the sub-table does not match any sub-table number stored in the parent table, execution is stopped; if the sub-table number sent by the sub-table matches a sub-table number stored in the parent table, execution continues.

[0010] Preferably, step S32 specifically includes: if the CTPT ratio of the sub-table is different from the CTPT ratio of the main table and the reading status of the sub-table is the first reading, multiplying the sub-table pulse increment data by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a first calculation result, and rounding the decimal part of the first calculation result to obtain the sub-table converted pulse data.

[0011] Preferably, step S32 specifically also includes: if the sub-table CTPT ratio is different from the main table CTPT ratio and the reading status of the sub-table is not the first reading, obtaining all previous sub-table pulse increment data of the sub-table, accumulating the current sub-table pulse increment data of the sub-table and all previous pulse increment data to obtain the sub-table pulse cumulative total data corresponding to the sub-table; if the second calculation result of multiplying the sub-table pulse cumulative total data by the sub-table CTPT ratio is divisible by the main table CTPT ratio, multiplying the current sub-table pulse increment data of the sub-table by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a third calculation result, and using the third calculation result as the sub-table converted pulse data; if the second calculation result of multiplying the sub-table pulse cumulative total data by the sub-table CTPT ratio is not divisible by the main table CTPT ratio, multiplying the current sub-table pulse increment data of the sub-table by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a fourth calculation result, and rounding the decimal part of the fourth calculation result to obtain the sub-table converted pulse data.

[0012] In a second aspect, an embodiment of the present application provides a parent-child meter statistics device for electric meter electricity consumption, comprising a parent meter, a child meter, a child meter increment acquisition module, a first calculation module, and a second calculation module; The master table receives a reply frame sent by the sub-table when both the master table and the sub-table are powered on, the reply frame including the sub-table current pulse data corresponding to the sub-table; The sub-table increment acquisition module is used to acquire the sub-table pulse increment data based on the sub-table current pulse data; The first calculation module is used to obtain the current pulse data of the master meter and calculate the pulse accumulation data based on the current pulse data of the master meter and the pulse increment data of the sub-meter; The second calculation module is used to calculate and obtain the total power of the main meter and the sub-meter based on the pulse accumulation data.

[0013] Preferably, it further includes a first storage module; the sub-table increment module includes a reading status acquisition unit and an increment calculation unit; the reading status acquisition unit is used to obtain the reading status of the sub-table; The incremental calculation unit is configured to use the current pulse data of the sub-table as the sub-table pulse incremental data if the reading status of the sub-table is the first reading; if the reading status of the sub-table is not the first reading, retrieve the historical pulse data corresponding to the sub-table from the first storage module, and calculate the sub-table pulse incremental data based on the historical pulse data and the current pulse data of the sub-table; The first storage module is used to store the current pulse data of the sub-table internally as the historical pulse data of the sub-table if the reading status of the sub-table is the first reading; if the reading status of the sub-table is not the first reading, update the internally stored historical pulse data to the current pulse data of the sub-table as the new historical pulse data of the sub-table.

[0014] The beneficial effects of the present invention are as follows: the main meter receives the reply frame sent by the sub-meter, the reply frame includes the current pulse data of the sub-meter generated after the sub-meter is powered on, the current pulse data of the sub-meter is not the increment of the pulse increment during the two reply frames, which avoids the situation where the pulse is missed due to frame loss, and the pulse accumulation data is calculated based on the current pulse data of the main meter and the pulse increment data of the sub-meter, and the total power of the main meter and the sub-meter is calculated based on the pulse accumulation data. When measuring the monthly electricity bill, it is only necessary to obtain the pulse accumulation data to know the total power of the main meter and its sub-meter, thereby improving billing efficiency, reducing the utilization rate of the communication module, and reducing hardware costs and network traffic costs. The entire environment only needs to change the meter code, and does not involve additional changes to the module and the main station, and the development efficiency is relatively high. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] 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.

[0016] Figure 1 A schematic diagram of a flow chart of a method for calculating the amount of electricity in a parent-child meter provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a parent-child meter statistical device for the electricity consumption of an electric meter provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] 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.

[0018] In the following description, the terms "first", "second", etc. are used only for the purpose of description, and should not be interpreted in a relative way, unless otherwise indicated. The following description provides a number of examples of the present application, which can be replaced or combined with each other, and thus the present application should be considered as including all possible combinations of the same and / or different examples described. Thus, if one example includes features A, B, C, and another example includes features B, D, the present application should be considered as including an example comprising one or more of all possible combinations of A, B, C, D, even if this example is not explicitly described in the following.

[0019] The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Alterations and modifications to the described elements can be made with respect to function and arrangement without departing from the scope of the present application. Various examples can omit, substitute, or add various procedures or components as appropriate. For instance, the methods described can be performed in an order different than that described, and various steps can be added, omitted, or combined. Also, features described with respect to some examples can be combined in other examples.

[0020] See Figure 1 . Figure 1 is a flowchart of a method for metering the electric quantity of a child meter by a parent meter according to an embodiment of the present application. In the embodiment of the present application, the method comprises the following steps: S1: receiving a reply frame sent by the child meter when the parent meter and the child meter are powered on, the reply frame comprising current pulse data of the child meter corresponding to the child meter; S2: obtaining pulse increment data of the child meter based on the current pulse data of the child meter; S3: obtaining current pulse data of the parent meter, and calculating pulse accumulation data based on the current pulse data of the parent meter and the pulse increment data of the child meter; S4: calculating total electric quantity of the parent meter and the child meter based on the pulse accumulation data.

[0021] In an embodiment of the present application, both the master table and the sub-table are powered on. The sub-table can send a reply frame to the master table when receiving the copy-read frame sent by the master table or when not receiving the copy-read frame sent by the master table. The reply frame of the sub-table is processed. In order to avoid the situation of losing the number of pulses, the current pulse data of the sub-table is not the increment of the pulse number increment during the two reply frames, but the total amount of pulse data generated by the sub-table since it was powered on. The master table processes the sub-table data frame, obtains the sub-table pulse increment data based on the current pulse data of the sub-table, and obtains the sub-table pulse increment data by subtracting the pulse data of the last copy-read data from the data of the master table this time. If there is no pulse data of the last copy-read, the current pulse data of the sub-table is used as the sub-table pulse increment data. The current pulse data of the master table is the pulse data of the master table itself. The pulse increment data is added to the pulse data of the master table itself to obtain the pulse accumulation data. The total electricity consumption of the main meter and sub-meters is obtained by calculating the pulse constant and pulse accumulation data. Under the premise of low cost investment and less development, the electricity consumption of the sub-meters can be effectively counted and directly accumulated into the main meter. The main station only needs to read the main meter data to obtain the total electricity consumption of the main meter and sub-meters.

[0022] In the embodiment of the present application, the pulse constant, that is, the number of pulses emitted by the electric meter for every kilowatt-hour of electricity consumed, is an important technical indicator of the electric meter. Common electric meter pulse constants are 1600imp / kWh, 3200imp / kWh, etc., which means that when the electric meter consumes 1 kilowatt-hour of electricity, it will emit 1600 or 3200 pulses respectively. The relationship between electric energy and the number of pulses can be expressed by the following formula: Electric energy = Electricity coefficient × Number of pulses. Among them, the electricity coefficient is a value related to the pulse constant of the electric meter. Taking the electric meter of 1600imp / kWh as an example, its electricity coefficient is 1 / 1600. When the electric meter emits 1600 pulses, it means that 1 kilowatt-hour of electricity is consumed. Therefore, by recording the number of pulses emitted by the electric meter over a period of time and multiplying it by the electricity coefficient, the electric energy consumed during that period can be obtained.

[0023] In one embodiment, the sub-table current pulse data includes one or more of six point pulse data: active positive, active negative, reactive quadrant one, reactive quadrant two, reactive quadrant three, and reactive quadrant four.

[0024] In an embodiment of the present application, the current pulse data of the sub-table in the present application may include one or more of the six point pulse data of active positive, active negative, reactive quadrant one, reactive quadrant two, reactive quadrant three, and reactive quadrant four. Compared with the existing technology, the single connection terminal of the sub-table and the main table can only output and input one type of electrical pulse data. If the pulse data of the six points of active positive, active negative, reactive quadrant one, reactive quadrant two, reactive quadrant three, and reactive quadrant four are to be covered, additional terminals are required. The present application does not require additional terminals and the cost is lower.

[0025] In the embodiment of the present application, for the master meter, the 485 port is used to connect the slave meter, and the slave meter can support up to 4 slave meters. The master meter can store four slave meter numbers. The master meter and the slave meter can read and send information by wired mode.

[0026] In an implementation manner, step S2 specifically includes: S21: obtaining the reading state of the slave meter; S22: if the reading state of the slave meter is first reading, taking the current pulse data of the slave meter as the pulse increment data of the slave meter, and storing the current pulse data of the slave meter in the first storage module as the historical pulse data of the slave meter; S23: if the reading state of the slave meter is non-first reading, calling the historical pulse data corresponding to the slave meter from the first storage module, calculating the pulse increment data of the slave meter based on the historical pulse data and the current pulse data of the slave meter, and updating the historical pulse data in the first storage module as the new historical pulse data of the slave meter.

[0027] In the embodiment of the present application, when the reading state of the slave meter is first reading, the current pulse data of the slave meter is taken as the pulse increment data of the slave meter, and the pulse increment data of the slave meter and the current pulse data of the master meter are accumulated to realize the direct accumulation calculation of the current pulse data of the slave meter and the current pulse data of the master meter. When the reading state of the slave meter is non-first reading, the historical pulse data corresponding to the slave meter is called from the first storage module, the pulse increment data of the slave meter is calculated based on the historical pulse data and the current pulse data of the slave meter, the first storage module is arranged in the master meter, so that the historical pulse data is obtained in the master meter, the pulse increment data of the slave meter is calculated by subtracting the historical pulse data from the current pulse data of the slave meter, then the pulse increment data of the slave meter is accumulated with the current pulse data of the master meter, then the current pulse data of the slave meter becomes the historical pulse data, and when the master meter is powered off, the historical pulse data is saved to the EEPROM.

[0028] In the embodiment of the present application, every 1s, the master meter sends a reading frame to the slave meter, and the slave meter sends a reply frame to the master meter. The data in the reply frame of the slave meter includes pulse data of six points, i.e., positive active, negative active, quadrant 1 of reactive, quadrant 2 of reactive, quadrant 3 of reactive, and quadrant 4 of reactive. The master meter receives the additional electric pulse data corresponding to the slave meter and accumulates the electric pulse number generated by the master meter itself. The subsequent electric quantity calculation is performed by converting the pulse number. The calculated pulse constant and rate are consistent with the current master meter. Because the original channel is converted from the electric quantity of the master meter itself to the total electric quantity of the master meter and the slave meter, the master meter opens an additional EEPROM for adding the electric quantity generated by the master meter itself, which is convenient for subsequent problem troubleshooting. The first storage module can include RAM and / or EEPROM arranged in the master meter.

[0029] In one possible implementation, step S1 further includes turning on the sub-table power-on flag when the sub-table is powered on for the first time, the reply frame further includes the sub-table power-on flag status corresponding to the sub-table, and between steps S23 and S3, the sub-table power-on flag is further turned off; step S21 includes: when the sub-table power-on flag is included in the reply frame, determining that the reading status of the sub-table is the first reading, and when the sub-table power-on flag is not included in the reply frame, determining that the reading status of the sub-table is not the first reading.

[0030] In the embodiment of the present application, for the sub-table: 1. After power-on, the number of pulses that were not read by the main table when the power was off can be read from the EEPROM of the sub-table; 2. The number of pulses that were not read is added to the number of pulses generated since power-on to obtain the total amount of pulse data generated by the sub-table since power-on; 3. When power is first applied, the reply frame that is read for the first time is accompanied by a flag bit that is set at power-on, and then the power-on flag bit is turned off.

[0031] For the master meter, the logic is as follows: 1. When the master meter is powered on for the first time, it will read the historical pulse data of the connected sub-meter from its own EEPROM; 2. When the sub-meter is powered on for the first time, it will send the current pulse data of the sub-meter accumulated since power-on, and starting from the power-on flag position, the reply frame will include the power-on flag status. When the master meter has read the data once, the power-on flag position is 0, and the reply frame will not include the power-on flag status; 3. The master meter receives the sub-meter data frame. If the power-on flag position of the sub-meter is set, the current accumulated data is directly accumulated and calculated; if the power-on flag is not set, in the master meter, the current pulse data - historical pulse data, the increment is obtained and accumulated, and then the current pulse data becomes the historical pulse data; 4. When the master meter loses power, the historical pulse data is saved to the EEPROM of the master meter.

[0032] In one embodiment, the reply frame in step S1 also includes the sub-table CTPT ratio corresponding to the sub-table, and the step S3 of calculating and obtaining the total pulse accumulation data of the main table and the sub-table based on the current pulse data of the main table and the pulse increment data of the sub-table specifically includes: S31: Obtain the master table CTPT ratio corresponding to the master table; S32: Compare the CTPT ratio of the sub-table with the CTPT ratio of the main table. If the CTPT ratio of the sub-table is different from the CTPT ratio of the main table, obtain the sub-table converted pulse data that matches the main table based on the sub-table pulse increment data, the CTPT ratio of the sub-table, and the CTPT ratio of the main table. S33: Calculate and obtain the total pulse accumulation data of the main table and the sub-table based on the sub-table converted pulse data and the main table current pulse data.

[0033] In an embodiment of the present application, if both the main meter and the sub-meter use mutual inductance meters, and there is an inconsistency in the CTPT ratio on site, additional processing of the data is required. The CTPT ratio is the voltage ratio and the current ratio. The logic of additional processing of the data is as follows: 1. The sub-meter sends a reply frame with its own CTPT ratio; 2. The main meter receives the data frame, converts the sub-meter pulse increment data, sub-meter pulse increment data * sub-meter CTPT / main table CTPT, obtains the primary side data to be added to the main table, rounds off the undivided decimal part, and writes it to the main table. The accumulated primary side data is additionally counted to obtain the number of pulses accumulated to the main table; 3. If the total sub-meter pulse amount * sub-meter CTPT / main table CTPT is divisible by the main table, the accumulated number of pulses is converted to sub-meter pulse increment data * sub-table CTPT / main table CTPT.

[0034] In one embodiment, step S1 also includes: the reply frame also includes the sub-table number corresponding to the sub-table, and the sub-table number sent by the sub-table is matched with multiple sub-table numbers stored in the parent table. If the sub-table number sent by the sub-table does not match any sub-table number stored in the parent table, execution is stopped; if the sub-table number sent by the sub-table matches a sub-table number stored in the parent table, execution continues.

[0035] In an embodiment of the present application, a plurality of sub-table numbers may be stored in the parent table, which are used to confirm which sub-table to communicate with when sending a reading frame, and to confirm whether the sub-table number of the sub-table is a sub-table number stored in the parent table when receiving a reply frame.

[0036] In one embodiment, step S32 specifically includes: if the CTPT ratio of the sub-table is different from the CTPT ratio of the main table and the reading status of the sub-table is the first reading, multiplying the sub-table pulse increment data by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a first calculation result, and rounding the decimal part of the first calculation result to obtain the sub-table converted pulse data.

[0037] In one embodiment, step S32 specifically also includes: if the CTPT ratio of the sub-table is different from the CTPT ratio of the main table and the reading status of the sub-table is not the first reading, obtaining all previous sub-table pulse increment data of the sub-table, accumulating the current sub-table pulse increment data of the sub-table and all previous pulse increment data to obtain the sub-table pulse cumulative total data corresponding to the sub-table; if the second calculation result of multiplying the sub-table pulse cumulative total data by the sub-table CTPT ratio is divisible by the main table CTPT ratio, multiplying the current sub-table pulse increment data of the sub-table by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a third calculation result, and using the third calculation result as the sub-table converted pulse data; if the second calculation result of multiplying the sub-table pulse cumulative total data by the sub-table CTPT ratio is not divisible by the main table CTPT ratio, multiplying the current sub-table pulse increment data of the sub-table by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a fourth calculation result, and rounding the decimal part of the fourth calculation result to obtain the sub-table converted pulse data.

[0038] In an embodiment of the present application, the mother table receives the recovery frame sent by the child table, and the mother table determines whether it is the table number stored internally by it. If the sub-table number is not the sub-table number stored internally by the mother table, the execution is stopped, and if it is, the execution continues downward; confirm whether the sub-table is read for the first time, if it is the first time, multiply the sub-table pulse increment data by the sub-table CTPT ratio and divide it by the mother table CTPT ratio to obtain a first calculation result, round off the decimal part of the first calculation result to obtain the sub-table converted pulse data; if it is not the first time, subtract the historical pulse data from the sub-table current pulse data to obtain the sub-table pulse increment data, and accumulate the sub-table pulse increment data and all the sub-table pulse increment data before the sub-table to obtain the sub-table converted pulse data. The total pulse data of the sub-table is converted into pulse data; if the second calculation result of the total pulse data of the sub-table is multiplied by the CTPT ratio of the sub-table is divisible by the CTPT ratio of the main table, then the current sub-table pulse increment data of the sub-table is multiplied by the CTPT ratio of the sub-table and divided by the CTPT ratio of the main table to obtain a third calculation result, and the third calculation result is used as the sub-table converted pulse data; if the second calculation result of the total pulse data of the sub-table is multiplied by the CTPT ratio of the sub-table is not divisible by the CTPT ratio of the main table, then the current sub-table pulse increment data of the sub-table is multiplied by the CTPT ratio of the sub-table and divided by the CTPT ratio of the main table to obtain a fourth calculation result, and the decimal part of the fourth calculation result is rounded off to obtain the sub-table converted pulse data.

[0039] In the embodiment of the present application, the processing of the sub-table reply frame: to avoid the situation where the pulse is missed due to frame loss, the sub-table sends a frame that is the total number of pulses of the sub-table since it is powered on; the processing of the sub-table data frame by the main meter: the current pulse data is subtracted from the reply data of the sub-table in the previous round to obtain an increment and use it to accumulate the total power; based on the special processing of the mutual inductance meter: the sub-table sends a data frame with a CTPT ratio, and the main meter converts the sub-table's pulse number and CTPT ratio based on its own CTPT ratio before performing subsequent total power accumulation. The present application has the following effects: 1. High reading efficiency. When measuring monthly electricity bills, it is only necessary to read the main meter data to know the total power of the main meter and its sub-meters, thereby improving billing efficiency; 2. Low cost. Through appropriate reading methods, the utilization rate of the communication module is reduced, and the hardware cost and network traffic cost are reduced; 3. High development efficiency. The entire environment only needs to modify the meter code, and no additional changes to the module or the master station are involved.

[0040] The following will be combined with the Figure 2 , a detailed introduction to the parent-child meter statistics device for electric meter electricity provided in the embodiment of the present application is given. Figure 2 The device for counting the amount of electricity in a meter is used to execute 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.

[0041] See Figure 2 , Figure 2 This is a schematic diagram of the structure of a parent-child meter statistical device for electric meter electricity provided by an embodiment of the present application. Figure 2 As shown, the system includes a parent table 201, a child table 202, a child table increment acquisition module 203, a first calculation module 204, and a second calculation module 205; The master table 201 receives a reply frame sent by the sub-table 202 when both the master table 201 and the sub-table 202 are powered on. The reply frame includes the sub-table current pulse data corresponding to the sub-table 202. The sub-table increment acquisition module 203 is used to acquire sub-table pulse increment data based on the sub-table current pulse data; The first calculation module 204 is used to obtain the current pulse data of the main meter and calculate the pulse accumulation data based on the current pulse data of the main meter and the pulse increment data of the sub-meter; The second calculation module 205 is used to calculate and obtain the total power of the main meter 201 and the sub-meter 202 based on the pulse accumulation data.

[0042] In the embodiment of the present application, the second calculation module 205 is used to calculate the total power of the main meter and the sub-meter through the pulse constant and the pulse accumulation data.

[0043] In one embodiment, the system further includes a first storage module 206; the sub-table increment acquisition module 203 includes a reading status acquisition unit and an increment calculation unit; the reading status acquisition unit is used to obtain the reading status of the sub-table 202; The incremental calculation unit is configured to use the current pulse data of the sub-table as the sub-table pulse incremental data if the reading status of the sub-table 202 is the first reading; if the reading status of the sub-table 202 is not the first reading, retrieve the historical pulse data corresponding to the sub-table 202 from the first storage module 206, and calculate the sub-table pulse incremental data based on the historical pulse data and the current pulse data of the sub-table; The first storage module 206 is used to store the current pulse data of the sub-table internally as the historical pulse data of the sub-table 202 if the reading status of the sub-table 202 is the first reading; if the reading status of the sub-table 202 is not the first reading, update the internally stored historical pulse data to the current pulse data of the sub-table as the new historical pulse data of the sub-table 202.

[0044] In the embodiment of the present application, the sub-meter current pulse data includes one or more of the six pulse data points: active positive, active negative, reactive quadrant 1, reactive quadrant 2, reactive quadrant 3, and reactive quadrant 4. The first storage module 206 may include a RAM and / or EEPROM provided in the main meter.

[0045] In the embodiment of the present application, when sub-table 202 is first powered on, sub-table 202 sets the sub-table power-on flag. The reply frame also includes the sub-table power-on flag status corresponding to sub-table 202. After the first storage module 206 stores the sub-table current pulse data internally or updates the internally stored historical pulse data to the sub-table current pulse data, sub-table 202 turns off the sub-table power-on flag. The status acquisition unit is configured to determine that the reading status of sub-table 202 is the first reading when the sub-table power-on flag is included in the reply frame, and to determine that the reading status of sub-table 202 is not the first reading when the sub-table power-on flag is not included in the reply frame.

[0046] In an embodiment of the present application, the reply frame also includes the sub-table CTPT ratio corresponding to the sub-table 202; the calculation and acquisition of pulse accumulation data based on the current pulse data of the main table and the sub-table pulse increment data in the first calculation module 204 specifically includes: obtaining the main table CTPT ratio corresponding to the main table 201; comparing the sub-table CTPT ratio and the main table CTPT ratio; if the sub-table CTPT ratio and the main table CTPT ratio are different, obtaining the sub-table 202 converted pulse data that matches the main table 201 based on the sub-table pulse increment data, the sub-table CTPT ratio and the main table CTPT ratio; and obtaining the total pulse accumulation data of the main table 201 and the sub-table 202 based on the sub-table 202 converted pulse data and the main table current pulse data.

[0047] In an embodiment of the present application, the reply frame also includes the sub-table 202 table number corresponding to the sub-table 202. The mother table 201 matches the sub-table 202 table number sent by the sub-table 202 with the multiple sub-table 202 table numbers stored in the mother table 201. If the sub-table 202 table number sent by the sub-table 202 does not match any sub-table 202 table number stored in the mother table 201, execution is stopped. If the sub-table 202 table number sent by the sub-table 202 matches a sub-table 202 table number stored in the mother table 201, the sub-table incremental acquisition module 203 obtains the sub-table pulse incremental data based on the current pulse data of the sub-table.

[0048] In an embodiment of the present application, the first calculation module 204 compares the sub-table CTPT ratio with the main table CTPT ratio. If the sub-table CTPT ratio is different from the main table CTPT ratio, obtaining the sub-table 202 converted pulse data that matches the main table 201 based on the sub-table pulse increment data, the sub-table CTPT ratio and the main table CTPT ratio specifically includes: if the sub-table CTPT ratio is different from the main table CTPT ratio and the reading status of the sub-table 202 is the first reading, multiplying the sub-table pulse increment data by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a first calculation result, and rounding the decimal part of the first calculation result to obtain the sub-table 202 converted pulse data.

[0049] In the embodiment of the present application, the first calculation module 204 compares the sub-table CTPT ratio with the master table CTPT ratio. If the sub-table CTPT ratio is different from the master table CTPT ratio, the sub-table CTPT ratio and the master table CTPT ratio are used to obtain the sub-table 202 converted pulse data that matches the master table 201 based on the sub-table pulse increment data, the sub-table CTPT ratio and the master table CTPT ratio. The method further includes: if the sub-table CTPT ratio is different from the master table CTPT ratio and the reading status of the sub-table 202 is not the first reading, obtaining all previous sub-table pulse increment data of the sub-table 202, accumulating the current sub-table pulse increment data of the sub-table 202 and all previous pulse increment data to obtain the sub-table 202 pulse accumulation data corresponding to the sub-table 202. Total amount data, if the second calculation result of multiplying the total amount data of the pulse accumulation of sub-table 202 by the CTPT ratio of the sub-table is divisible by the CTPT ratio of the main table, then multiplying the current sub-table pulse increment data of sub-table 202 by the CTPT ratio of the sub-table and dividing it by the CTPT ratio of the main table to obtain a third calculation result, and use the third calculation result as the converted pulse data of sub-table 202; if the second calculation result of multiplying the total amount data of the pulse accumulation of sub-table 202 by the CTPT ratio of the sub-table is not divisible by the CTPT ratio of the main table, then multiplying the current sub-table pulse increment data of sub-table 202 by the CTPT ratio of the sub-table and dividing it by the CTPT ratio of the main table to obtain a fourth calculation result, and rounding off the decimal part of the fourth calculation result to obtain the converted pulse data of sub-table 202.

[0050] 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," "module," and "section" 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).

[0051] 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.

[0052] 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.

[0053] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely schematic. 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 device or unit can be electrical or other forms.

[0054] 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.

[0055] 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.

[0056] 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.

[0057] 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.

[0058] 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 calculating the amount of electricity in a main and sub-meter of an electric meter, characterized in that: The steps include: S1: When both the master meter and the sub-meter are powered on, the master meter receives a reply frame sent by the sub-meter, wherein the reply frame includes the current pulse data of the sub-meter corresponding to the sub-meter; S2: Obtain sub-table pulse increment data based on the sub-table current pulse data; S3: Obtain the current pulse data of the master meter, and calculate the pulse accumulation data based on the current pulse data of the master meter and the pulse increment data of the sub-meter; S4: Calculate and obtain the total power of the main meter and sub-meter based on the pulse accumulation data.

2. The method for calculating the amount of electricity in a parent-child meter according to claim 1, wherein: The current pulse data of the sub-table includes one or more of six point pulse data: active positive, active negative, reactive quadrant one, reactive quadrant two, reactive quadrant three, and reactive quadrant four.

3. A method for calculating the amount of electricity in a parent-child meter according to claim 1 or 2, characterized in that: Step S2 specifically includes: S21: Get the reading status of the sub-table; S22: If the reading status of the sub-meter is the first reading, the current pulse data of the sub-meter is used as the sub-meter pulse increment data and the current pulse data of the sub-meter is stored in the first storage module as the historical pulse data of the sub-meter; S23: If the reading status of the sub-table is not the first reading, the historical pulse data corresponding to the sub-table is retrieved from the first storage module, the sub-table pulse increment data is calculated based on the historical pulse data and the current pulse data of the sub-table, and the historical pulse data in the first storage module is updated to the current pulse data of the sub-table as the new historical pulse data of the sub-table.

4. The method for calculating the amount of electricity in a parent-child meter according to claim 3, wherein: Step S1 also includes turning on the sub-table power-on flag when the sub-table is powered on for the first time, and the reply frame also includes the sub-table power-on flag status corresponding to the sub-table. Between steps S23 and S3, the sub-table power-on flag is also turned off. Step S21 includes: determining that the reading state of the sub-meter is the first reading when the reply frame includes the sub-meter power-on flag, and determining that the reading state of the sub-meter is not the first reading when the reply frame does not include the sub-meter power-on flag.

5. The method for calculating the amount of electricity in a parent-child meter according to claim 3, wherein: The reply frame in step S1 also includes the sub-table CTPT ratio corresponding to the sub-table. In step S3, the total pulse accumulation data of the main table and the sub-table is calculated based on the current pulse data of the main table and the pulse increment data of the sub-table, specifically including: S31: Obtain the master table CTPT ratio corresponding to the master table; S32: Compare the CTPT ratio of the sub-table with the CTPT ratio of the main table. If the CTPT ratio of the sub-table is different from the CTPT ratio of the main table, obtain the sub-table converted pulse data that matches the main table based on the sub-table pulse increment data, the CTPT ratio of the sub-table, and the CTPT ratio of the main table. S33: Calculate and obtain the total pulse accumulation data of the main table and the sub-table based on the sub-table converted pulse data and the main table current pulse data.

6. A method for calculating the amount of electricity in a parent-child meter according to claim 1 or 2, characterized in that: Step S1 also includes: the reply frame also includes the sub-table number corresponding to the sub-table, and the sub-table number sent by the sub-table is matched with multiple sub-table numbers stored in the parent table. If the sub-table number sent by the sub-table does not match any sub-table number stored in the parent table, execution is stopped; if the sub-table number sent by the sub-table matches a sub-table number stored in the parent table, execution continues.

7. The method for calculating the amount of electricity in a parent-child meter according to claim 5, wherein: Step S32 specifically includes: if the CTPT ratio of the sub-meter is different from the CTPT ratio of the main meter and the reading status of the sub-meter is the first reading, multiplying the sub-meter pulse increment data by the sub-meter CTPT ratio and dividing it by the main meter CTPT ratio to obtain a first calculation result, and rounding the decimal part of the first calculation result to obtain the sub-meter converted pulse data.

8. The method for calculating the amount of electricity in a parent-child meter according to claim 5, wherein: Step S32 specifically also includes: if the CTPT ratio of the sub-table is different from the CTPT ratio of the main table and the reading status of the sub-table is not the first reading, obtaining all previous sub-table pulse increment data of the sub-table, accumulating the current sub-table pulse increment data of the sub-table and all previous pulse increment data to obtain the sub-table pulse cumulative total data corresponding to the sub-table; if the second calculation result of multiplying the sub-table pulse cumulative total data by the sub-table CTPT ratio is divisible by the main table CTPT ratio, multiplying the current sub-table pulse increment data of the sub-table by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a third calculation result, and using the third calculation result as the sub-table converted pulse data; if the second calculation result of multiplying the sub-table pulse cumulative total data by the sub-table CTPT ratio is not divisible by the main table CTPT ratio, multiplying the current sub-table pulse increment data of the sub-table by the sub-table CTPT ratio and dividing it by the main table CTPT ratio to obtain a fourth calculation result, and rounding the decimal part of the fourth calculation result to obtain the sub-table converted pulse data.

9. A device for counting the amount of electricity in a meter, characterized by: It includes a parent table, a child table, a child table increment acquisition module, a first calculation module, and a second calculation module; The master table receives a reply frame sent by the sub-table when both the master table and the sub-table are powered on, wherein the reply frame includes current pulse data of the sub-table corresponding to the sub-table; The sub-table increment acquisition module is used to acquire the sub-table pulse increment data based on the sub-table current pulse data; The first calculation module is used to obtain the current pulse data of the master meter and calculate the pulse accumulation data based on the current pulse data of the master meter and the pulse increment data of the sub-meter; The second calculation module is used to calculate and obtain the total power of the main meter and the sub-meter based on the pulse accumulation data.

10. The apparatus for calculating the amount of electricity in a parent-child meter according to claim 9, characterized in that: It also includes a first storage module; the sub-table increment module includes a reading status acquisition unit and an increment calculation unit; the reading status acquisition unit is used to obtain the reading status of the sub-table; The incremental calculation unit is configured to use the current pulse data of the sub-table as the sub-table pulse incremental data if the reading status of the sub-table is the first reading; if the reading status of the sub-table is not the first reading, retrieve the historical pulse data corresponding to the sub-table from the first storage module, and calculate the sub-table pulse incremental data based on the historical pulse data and the current pulse data of the sub-table; The first storage module is used to store the current pulse data of the sub-table internally as the historical pulse data of the sub-table if the reading status of the sub-table is the first reading; if the reading status of the sub-table is not the first reading, update the internally stored historical pulse data to the current pulse data of the sub-table as the new historical pulse data of the sub-table.