Intelligent electric energy meter
By designing the control unit and cloud-end interaction mechanism of the smart power meter, the problems of traditional power meter in data storage, cloud-end interaction and human-computer interaction are solved, efficient data management and refined statistical analysis are achieved, and the intelligence level of power management is improved.
Patent Information
- Application Number
- CN202510352534.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-04-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional power meters have problems in data storage processing, cloud interaction and human-computer interaction, resulting in confusion in data management, difficulty in achieving refined statistical analysis, inaccurate cloud data interaction, and weak human-computer interaction functions.
Design a smart electricity meter, including an energy metering unit, a control unit and a cloud server. The control unit includes a storage unit, a main control unit and a functional display unit. It realizes data classification storage and efficient management through the electrical energy variable-constant data unit and data storage unit, and ensures data consistency through the data interaction mechanism between the main control unit and the cloud server.
It realizes efficient classification storage and management of electricity metering data, improves the accuracy and efficiency of data management, ensures the accuracy and consistency of cloud data, meets users' diverse query needs, and improves the intelligence level of power management.
Smart Images

Figure CN119865723A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric energy measurement, and more specifically, to an intelligent electric energy meter. Background Art
[0002] In the field of traditional electric energy meter technology, with the development of intelligent power systems and the increasing demand of users for electric energy metering accuracy and diversified functions, existing electric energy meters have gradually exposed some problems. On the one hand, traditional electric energy meters have limitations in data storage and processing. Their storage unit structure is simple and cannot efficiently classify and store various types of electricity data measured by the electric energy metering unit, resulting in chaotic data management and difficulty in meeting the needs of refined electricity statistics and analysis. For example, when counting electricity consumption in different time periods and different types of electricity consumption, due to the lack of a reasonable data storage architecture, the calculation process is complex and error-prone, affecting the accuracy and reliability of electric energy data.
[0003] On the other hand, the data interaction mechanism between traditional electricity meters and the cloud is imperfect. In the process of data uploading and updating, there is a lack of effective comparison and correction means. When there is a deviation between the cloud data and the locally stored data, it cannot be adjusted in a timely and accurate manner, which may lead to errors in the user's electricity data, thereby affecting the fairness of electricity bill settlement and causing disputes between users and power supply departments. At the same time, the human-computer interaction function of traditional electricity meters is weak, and the function display unit can only simply display basic electricity information, which cannot meet the user's query needs for detailed electricity consumption data, and is not conducive to the power supply department's monitoring and analysis of user electricity consumption behavior, making it difficult to achieve intelligent power management.
[0004] In view of this, it is urgent to develop a new type of smart electricity meter to solve the problems existing in traditional electricity meters in data storage and processing, cloud interaction, and human-computer interaction, so as to improve the accuracy of electricity metering, the efficiency of data management, and the intelligence level of power management. Summary of the invention
[0005] The purpose of the present invention is to provide a smart electricity meter to solve the technical problems of traditional electricity meters, such as chaotic data storage, poor accuracy of data interaction with the cloud, and weak human-computer interaction function, which lead to the inability to accurately statistically analyze data, ensure data consistency, and meet users' diverse query needs.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a smart electric energy meter, comprising an electric energy metering unit, a control unit for controlling the electric energy metering unit, and a cloud server for cloud data storage; The control unit includes a storage unit, a main control unit and a function display unit; The storage unit is used to store the data measured by the electric energy metering unit; The main control unit is used to read, record, and process the data stored in the storage unit, and to write data to the storage unit; The function display unit is used for human-computer interaction and displaying data processed by the main control unit; The main control unit reads, records, and processes the data stored in the storage unit, and performs a data write operation on the storage unit, including the following steps: A1: The main control unit obtains the total amount of electricity measured and counted by the electric energy metering unit, stores the total amount of electricity in the storage unit, and regularly uploads the total amount of electricity to the cloud server; A2: The main control unit compares the data fed back by the cloud server with the stored total power. If the deviation is too large, the main control unit clears the total power data in the total power data field storage unit, and writes the total power data field storage unit according to the new total power data sent by the cloud server.
[0007] The main control unit obtains the total power in the following manner: the total power data field storage unit stores the generated power , the electric energy metering unit obtains the current electric quantity , the main control unit calculates the total power, and the calculation formula is: ; In the formula, is a set of data stored recently. To obtain The number of instructions, is the total power; When the main control unit obtains Generate electricity again When the latest total power is calculated, the calculation formula is: .
[0008] The present invention realizes the classified storage and efficient management of the measurement data of the electric energy metering unit by designing a storage unit structure with an electric energy variable constant data unit and a data storage unit. The data summary field, the total electric quantity data field, the sub-item electric quantity data field and the summary sub-item electric quantity data field in the electric energy variable constant data unit can clearly separate, store and summarize various types of electric quantity data; at the same time, the sub-total electric quantity data field and the related voltage, current, power, and electric quantity sub-item electric quantity data fields subdivided under the total electric quantity data field facilitate statistical analysis of electric quantity data of different dimensions. This effectively solves the problem of chaotic data storage and difficulty in refined statistical analysis of traditional electric energy meters, and improves the accuracy and efficiency of data management.
[0009] Preferably, the storage unit includes an electric energy constant data unit and a data storage unit; The electric energy constant data unit is used to store the electric energy measured by the electric energy metering unit; The data storage unit is used to temporarily store the electric quantity measured by the electric energy metering unit, and the data storage unit includes a sub-item electric quantity data field for temporarily storing the electric quantity; The electric energy variable data unit includes a data summary field for summarizing the itemized electric quantity data fields temporarily stored in the data storage unit, a total electric quantity data field for counting the total electric quantity, an itemized electric quantity data field for separating the electric quantity and storing the separated electric quantity, and a summary itemized electric quantity data field for storing the electric quantity after summarizing all the itemized electric quantity data fields for separating the electric quantity; The total power data field includes several sub-total power data fields, a voltage total power data field, a current total power data field, a power total power data field, and a power total power data field corresponding to the electric energy variable constant data unit. The sub-total power data field corresponds to the electric energy variable constant data unit, and the sub-total power data field includes a voltage sub-item power data field, a current sub-item power data field, a power sub-item power data field, and a power sub-item power data field corresponding to the electric energy variable constant data unit.
[0010] Preferably, the main control unit includes a time stamp unit connected to the total power data field and used to obtain the latest total power data in the sub-total power data field, and compares the latest total power data in the sub-total power data field obtained in the time stamp unit with the latest sub-total power data in the total power data field in the time stamp unit.
[0011] Preferably, obtaining the latest sub-total power data in the sub-total power data field and comparing it with the latest sub-total power data in the total power data field comprises the following steps: B1: Obtain the sub-total power data with the minimum number of acquisition instructions in the sub-total power data field, and the sub-total power data with the minimum number of acquisition instructions is recorded as the latest sub-total power data; B2: Get the latest total power data in the total power data field; B3: Sum the latest sub-total power data and the latest total power data to obtain the total summed power data ; B4: The total summed power data Divide by the number of instructions obtained in the total power data field , get the corrected total power data , the calculation formula is ; B5: Corrected total power data after correction The total summed power data After the difference is made, the corrected power data of the total power data field is obtained. , the calculation formula is ; B6: Correct the power data according to the above Rewrite the total power data field.
[0012] Preferably, after the main control unit obtains the total electricity measured and counted by the electric energy metering unit, the main control unit obtains the sub-item electricity data stored in the storage unit in the electric energy metering unit, and the main control unit updates the sub-item electricity data stored in the data summary field of the storage unit according to the sub-item electricity data.
[0013] Preferably, after obtaining the latest total power data, the main control unit performs a write operation on the storage unit, the main control unit obtains the address contained in the instruction, the main control unit obtains the latest total power data stored in the address, and the main control unit updates the total power data stored in the address with the new total power data.
[0014] Preferably, before the main control unit reads the address and performs a write operation on the storage unit, the following steps are included: A201: The main control unit obtains the total power data stored at the address and the number of instructions corresponding to the total power data; A202: The main control unit calculates the total power and the number of total power instructions stored in the storage unit respectively: The total power calculation formula is: , where is the total power, For storage unit The total amount of electricity stored; The calculation formula for the total power instruction times is: , where is the number of instructions corresponding to the total power data obtained, For the The total power data field stores the total power instruction times; A203: If If the total power data does not correspond to the currently acquired total power data, the total power data stored in the storage unit is cleared and rewritten to the storage unit. The corresponding total power data; A smart electric energy meter communication method comprises the following steps: S1: The main control unit receives a query request for obtaining a comparison between total power data and the number of total power data instructions, and obtaining item summary data and the number of item summary data instructions; S2: The main control unit searches for the corresponding instruction number according to the query request, performs a read operation on the storage unit, and obtains the total power data and the item summary data; S3: The main control unit calculates the data; S4: The main control unit feeds back the calculation result obtained in step S3 to the function display unit.
[0015] Preferably, in step S2, searching for the corresponding instruction times according to the query request, performing a read operation on the storage unit, and obtaining the total power data and the item summary data specifically include the following steps: S201: The main control unit receives a query request; the query request includes a sub-total power data field number and a total power data field number; S202: The main control unit searches whether the sub-total power data field and the total power data field are included according to the sub-total power data field number and the total power data field number; S203: Determine whether the data field containing the sub-total power data field number and the total power data field number contains the latest sub-total power data and total power data greater than 0; if so, obtain the instruction number corresponding to the data field and , the number of instructions and Corresponding to the corresponding sub-total power data field number and the total power data field number; S204: The main control unit obtains the number of instructions and ; S205: Determine the number of instructions in step S204 and Are they equal? If they are equal, read all the data in the sub-total power data field, where: The number of instructions for summarizing data for a particular sub-item, is the instruction number of a corresponding sub-item summary data field or total power data field; if they are not equal, read Less than The data of several sub-total power data fields.
[0016] Preferably, in step S3, the main control unit calculates the data, specifically including the following steps: S301: The main control unit obtains the data of the sub-total power data field in step S2; S302: Determine whether the data field contains sub-total power data greater than 0. If so, calculate the sub-total power data greater than 0 in step S301. The calculation formula is: ; In the formula, Indicates The total power data of the sub-units is greater than 0. Indicates the number of sub-total power data greater than 0; If it does not exist, the identifier of the sub-total power data field , calculate the stored power and get the sub-total power data, the formula is: , where is the total power data of the sub- Indication and instruction times The data instruction number is greater than 0 Corresponding power data; S303: The main control unit obtains the data of the total power data field read by the main control unit in step S2; S304: Determine whether the data field contains total power data greater than 0. If so, calculate the total power data greater than 0 in step S303. The calculation formula is: , where Indicates Total power data greater than 0, Indicates the number of total power data greater than 0; If it does not exist, the main control unit will , calculate the stored power and get the total power data, the formula is: , where is the total power data, Indicates the total power data field number The power data obtained from the storage unit; S305: The main control unit calculates the sub-total power data and the total power data in step S2 and step S4.
[0017] Compared with the prior art, the present invention has the following beneficial effects: 1. The present invention realizes the classified storage and efficient management of the measurement data of the electric energy metering unit by designing a storage unit structure with an electric energy variable constant data unit and a data storage unit. The data summary field, the total power data field, the sub-item power data field and the summary sub-item power data field in the electric energy variable constant data unit can clearly separate, store and summarize various types of power data; at the same time, the sub-total power data field and the related voltage, current, power, and power sub-item power data fields subdivided under the total power data field facilitate statistical analysis of power data of different dimensions. This effectively solves the problem of chaotic data storage and difficulty in refined statistical analysis of traditional electric energy meters, and improves the accuracy and efficiency of data management.
[0018] 2. The present invention further solves the problem of deviation in data interaction by designing a data interaction mechanism between the main control unit and the cloud server. The main control unit regularly uploads the total power to the cloud server, and compares the data fed back from the cloud with the total power stored locally. If the deviation is too large, the total power data in the total power data field storage unit is cleared in time, and a write operation is performed based on the new data in the cloud to ensure the consistency of local and cloud data. This avoids problems such as electricity bill settlement errors caused by data deviation, protects the rights and interests of users and power supply departments, and improves the fairness and reliability of power data management.
[0019] 3. The present invention also further improves the user experience and the intelligent level of power management through the collaborative work of the functional display unit and the communication method. The main control unit receives the query request, obtains and calculates the total power data and the sub-item summary data, and then feeds back to the functional display unit. The user can easily query the detailed power consumption data, such as the power information of different time periods and different types of power consumption. This helps users understand their own power consumption behavior and plan their power consumption reasonably; at the same time, the power supply department can also monitor the user's power consumption more comprehensively, provide data support for power allocation and management, and realize intelligent power management. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of the system structure of the present invention; Figure 2 It is a schematic diagram of the data processing flow of the main control unit of the smart electric energy meter in the present invention; Figure 3 It is a flow chart of the communication method of the smart electric energy meter in the present invention. DETAILED DESCRIPTION
[0021] Embodiment 1: Figure 1 As shown, the present invention relates to a smart electric energy meter, comprising an electric energy metering unit, a control unit for controlling the electric energy metering unit, and a cloud server for cloud data storage; The control unit includes a storage unit, a main control unit and a function display unit. The storage unit is used to store the data measured by the electric energy metering unit; The main control unit is used to read, record, and process the data stored in the storage unit, and to write data to the storage unit; The function display unit is used for human-computer interaction and displaying data processed by the main control unit; Wherein, the storage unit includes an electric energy constant data unit and a data storage unit; The electric energy constant data unit is used to store the electric energy measured by the electric energy metering unit; The data storage unit is used to temporarily store the electric quantity measured by the electric energy metering unit, and the data storage unit includes a sub-item electric quantity data field for temporarily storing the electric quantity; The electric energy variable data unit includes a data summary field for summarizing the sub-item electric quantity data fields temporarily stored in the data storage unit, a total electric quantity data field for counting the total electric quantity, a sub-item electric quantity data field for separating the electric quantity and storing the separated electric quantity, and a summary sub-item electric quantity data field for storing the electric quantity after summarizing all the sub-item electric quantity data fields for separating the electric quantity; The total power data field includes several sub-total power data fields, a voltage total power data field corresponding to the electric energy variable constant data unit, a current total power data field, a power total power data field, and a power total power data field. The sub-total power data field corresponds to the electric energy variable constant data unit, and the sub-total power data field includes a voltage sub-item power data field, a current sub-item power data field, a power sub-item power data field, and a power sub-item power data field corresponding to the electric energy variable constant data unit.
[0022] The main control unit includes a time stamp unit connected to the total power data field for obtaining the latest total power data in the sub-total power data field, and compares the latest total power data in the sub-total power data field obtained in the time stamp unit with the latest sub-total power data in the total power data field in the time stamp unit.
[0023] The present invention realizes the classified storage and efficient management of the measurement data of the electric energy metering unit by designing a storage unit structure with an electric energy variable constant data unit and a data storage unit. The data summary field, the total electric quantity data field, the sub-item electric quantity data field and the summary sub-item electric quantity data field in the electric energy variable constant data unit can clearly separate, store and summarize various types of electric quantity data; at the same time, the sub-total electric quantity data field and the related voltage, current, power, and electric quantity sub-item electric quantity data fields subdivided under the total electric quantity data field facilitate statistical analysis of electric quantity data of different dimensions. This effectively solves the problem of chaotic data storage and difficulty in refined statistical analysis of traditional electric energy meters, and improves the accuracy and efficiency of data management.
[0024] In an embodiment of the present invention, the main control unit reads, records, and processes the data stored in the storage unit, and performs a data write operation on the storage unit, including the following steps: A1: The main control unit obtains the total amount of electricity measured and counted by the energy metering unit, stores the total amount of electricity in the storage unit, and regularly uploads the total amount of electricity to the cloud server; A2: The main control unit compares the data fed back by the cloud server with the stored total power. If the deviation is too large, the main control unit clears the total power data in the total power data field storage unit and writes the total power data field storage unit according to the new total power data sent by the cloud server.
[0025] In the embodiment of the present invention, the main control unit obtains the total power in the following manner: the total power data field storage unit stores the generated power , the energy metering unit obtains the current power , the main control unit calculates the total power, the calculation formula is: ; In the formula, is a set of data stored recently. To obtain The number of instructions, is the total power; When the main control unit obtains Generate electricity again When the latest total power is calculated, the calculation formula is: ; In an embodiment of the present invention, after the main control unit obtains the total power measured and counted by the power metering unit, the main control unit obtains the sub-item power data stored in the storage unit in the power metering unit, and the main control unit updates the sub-item power data stored in the data summary field of the storage unit according to the sub-item power data; In an embodiment of the present invention, after obtaining the latest total power data, the main control unit performs a write operation on the storage unit, the main control unit obtains the address contained in the instruction, the main control unit obtains the latest total power data stored in the address, and the main control unit updates the total power data stored in the address with the new total power data.
[0026] In an embodiment of the present invention, before the main control unit reads the address and performs a write operation on the storage unit, the following steps are included: A201: The main control unit obtains the total power data stored at the address and the number of instructions corresponding to the total power data; A202: The main control unit calculates the total power and total power instruction times stored in the storage unit respectively: The total power calculation formula is: ; In the formula, is the total power, For storage unit The total amount of electricity stored; The calculation formula for the total power instruction times is: ; In the formula, is the number of instructions corresponding to the total power data obtained, For the The total power data field stores the total power instruction times; A203: If If it does not correspond to the total power data currently obtained, the total power data stored in the storage unit is cleared and rewritten to the storage unit. The corresponding total power data; In an embodiment of the present invention, obtaining the latest sub-total power data in the sub-total power data field and comparing it with the latest sub-total power data in the total power data field includes the following steps: B1: Obtain the sub-total power data with the smallest acquisition instruction times in the sub-total power data field, and the sub-total power data with the smallest acquisition instruction times is recorded as the latest sub-total power data; B2: Get the latest total power data in the total power data field; B3: Sum the latest sub-total power data and the latest total power data to get the total sum power data ; B4: Total sum of power data Divide by the number of instructions obtained in the total power data field , get the corrected total power data , the calculation formula is: ; B5: Corrected total power data after correction Total power data After the difference is made, the corrected power data of the total power data field is obtained. , the calculation formula is: ; B6: According to the calibration data Rewrite the total power data field.
[0027] The present invention further solves the problem of deviation in data interaction by designing a data interaction mechanism between the main control unit and the cloud server. The main control unit regularly uploads the total power to the cloud server, and compares the data fed back from the cloud with the total power stored locally. If the deviation is too large, the total power data in the total power data field storage unit is cleared in time, and a write operation is performed based on the new data in the cloud to ensure the consistency of local and cloud data. This avoids problems such as errors in electricity bill settlement caused by data deviation, protects the rights and interests of users and power supply departments, and improves the fairness and reliability of power data management.
[0028] Embodiment 2: Figure 2 , Figure 3 As shown, a smart electric energy meter communication method comprises the following steps: S1: The main control unit receives a query request for obtaining a comparison between total power data and the number of total power data instructions, and obtaining item summary data and the number of item summary data instructions; S2: The main control unit searches for the corresponding instruction number according to the query request, performs a read operation on the storage unit, and obtains the total power data and the item summary data; S3: The main control unit calculates the data; S4: The main control unit feeds back the calculation result obtained in step S3 to the function display unit.
[0029] As another embodiment of the present invention, in step S2, searching for the corresponding instruction times according to the query request, performing a read operation on the storage unit, and obtaining the total power data and the item summary data specifically includes the following steps: S201: The main control unit receives a query request; the query request includes a sub-total power data field number and a total power data field number; S202: The main control unit searches whether there is a sub-item summary data and a total power data field according to the sub-total power data field number and the total power data field number; S203: Determine whether the data field with the sub-total power data field number and the total power data field number contains the latest sub-total power data and total power data greater than 0; if so, obtain the instruction count corresponding to the data field and , number of instructions and Corresponding to the corresponding sub-total power data field number and the total power data field number; S204: The main control unit obtains the number of instructions and ; S205: Determine the number of instructions in step S204 and Are they equal? If they are equal, read all the data in the sub-total power data field, where: The number of instructions for summarizing data for a particular sub-item, is the instruction number of a corresponding sub-item summary data field or total power data field; if they are not equal, read Less than The data of several sub-total power data fields.
[0030] As another embodiment of the present invention, in step S3, the main control unit calculates the data, which specifically includes the following steps: S301: The main control unit obtains the data of the sub-total power data field in step S2; S302: Determine whether the data field contains sub-total power data greater than 0. If so, calculate the sub-total power data greater than 0 in step S301. The calculation formula is: ; In the formula, Indicates The total power data of the sub-units is greater than 0. Indicates the number of sub-total power data greater than 0; If it does not exist, the identifier of the sub-total power data field , calculate the stored power and get the sub-total power data, the formula is: ; In the formula, is the total power data of the sub- Indication and instruction times The data instruction number is greater than 0 Corresponding power data; S303: The main control unit obtains the data of the total power data field read by the main control unit in step S2; S304: Determine whether the data field contains total power data greater than 0. If so, calculate the total power data greater than 0 in step S303. The calculation formula is: ; In the formula, Indicates Total power data greater than 0, Indicates the number of total power data greater than 0; If it does not exist, the main control unit will use the number of the total power data field , calculate the stored power and get the total power data, the formula is: ; In the formula, is the total power data, Indicates the total power data field number The power data obtained from the storage unit; S305: The main control unit calculates the sub-total power data in step S2 and step S4 and the total power data.
[0031] The present invention also further improves the user experience and the intelligent level of power management through the collaborative work of the functional display unit and the communication method. The main control unit receives the query request, obtains and calculates the total power data and the sub-item summary data, and then feeds back to the functional display unit. The user can easily query the detailed power consumption data, such as the power information of different time periods and different types of power consumption. This helps users understand their own power consumption behavior and plan their power consumption reasonably; at the same time, the power supply department can also monitor the user's power consumption more comprehensively, provide data support for power allocation and management, and realize intelligent power management.
[0032] The embodiments of the present invention disclose preferred embodiments, but are not limited thereto. A person skilled in the art can easily understand the spirit of the present invention based on the above embodiments and make different extensions and changes. However, as long as they do not deviate from the spirit of the present invention, they are all within the protection scope of the present invention.
Claims
1. A smart electric energy meter, characterized in that: It includes an electric energy metering unit, a control unit for controlling the electric energy metering unit, and a cloud server for cloud data storage; The control unit comprises: A storage unit, used for storing data measured by the electric energy metering unit; The main control unit is used to read, record, and process the data stored in the storage unit, and to write data to the storage unit; Functional display unit, used for human-computer interaction and displaying data processed by the main control unit; The main control unit reads, records, processes data, and performs data writing operations, including the following steps: A1: The main control unit obtains the total amount of electricity measured and counted by the energy metering unit, stores the total amount of electricity in the storage unit, and regularly uploads the total amount of electricity to the cloud server; The main control unit obtains the total power in the following way: the total power data field storage unit stores the generated power , the energy metering unit obtains the current power , the main control unit calculates the total power, the calculation formula is: ; In the formula, is a set of data stored recently. To obtain The number of instructions, is the total power; When the main control unit obtains Generate electricity again When the latest total power is calculated, the calculation formula is: ; A2: The main control unit compares the data fed back by the cloud server with the stored total power. If the deviation is too large, the main control unit clears the total power data in the total power data field storage unit, and writes the total power data field storage unit according to the new total power data sent by the cloud server.
2. The smart electric energy meter according to claim 1, characterized in that: The storage unit comprises: An electric energy constant data unit, used for storing the electric energy measured by the electric energy metering unit; A data storage unit, used for temporarily storing the electric quantity measured by the electric energy metering unit, wherein the data storage unit includes a sub-item electric quantity data field for temporarily storing the electric quantity; Wherein, the electric energy variation data unit includes: Data summary field, used to summarize the sub-item power data fields temporarily stored in the data storage unit A total power data field is used to count the total power, the total power data field includes several sub-total power data fields, a voltage total power data field, a current total power data field, a power total power data field, and a power total power data field corresponding to the electric energy variable constant data unit, the sub-total power data field corresponds to the electric energy variable constant data unit, and the sub-total power data field includes a voltage sub-item power data field, a current sub-item power data field, a power sub-item power data field, and a power sub-item power data field corresponding to the electric energy variable constant data unit; The itemized electricity data field is used to separate the electricity and store the separated electricity; The summarized sub-item electricity data field corresponds to all sub-item electricity data fields used to separate electricity, and the electricity is stored after being summarized.
3. The smart electric energy meter according to claim 2, characterized in that: The main control unit includes a time stamp unit connected to the total power data field and used to obtain the latest total power data in the sub-total power data field, and compares the latest total power data in the sub-total power data field obtained in the time stamp unit with the latest sub-total power data in the total power data field in the time stamp unit.
4. The smart electric energy meter according to claim 3, characterized in that: Obtaining the latest sub-total power data in the sub-total power data field and comparing it with the latest sub-total power data in the total power data field includes the following steps: B1: obtaining the sub-total power data with the minimum number of acquisition instructions in the sub-total power data field, and the sub-total power data with the minimum number of acquisition instructions is recorded as the latest sub-total power data; B2: Get the latest total power data in the total power data field; B3: Sum the latest sub-total power data and the latest total power data to obtain the total summed power data ; B4: The total summed power data Divide by the number of instructions obtained in the total power data field , get the corrected total power data , the calculation formula is ; B5: Corrected total power data after correction The total summed power data After the difference is made, the corrected power data of the total power data field is obtained. , the calculation formula is ; B6: Correct the power data according to the above Rewrite the total power data field.
5. The smart electric energy meter according to claim 1, characterized in that: After the main control unit obtains the total power measured and counted by the power metering unit, the main control unit obtains the sub-item power data stored in the storage unit in the power metering unit, and the main control unit updates the sub-item power data stored in the data summary field of the storage unit according to the sub-item power data.
6. The smart electric energy meter according to claim 1, characterized in that: After obtaining the latest total power data, the main control unit performs a write operation on the storage unit. The main control unit obtains the address contained in the instruction, obtains the latest total power data stored in the address, and updates the total power data stored in the address with the new total power data.
7. The smart electric energy meter according to claim 1, characterized in that: Before the main control unit reads the address and performs a write operation on the storage unit, the following steps are included: A201: The main control unit obtains the total power data stored at the address and the number of instructions corresponding to the total power data; A202: The main control unit calculates the total power and the number of total power instructions stored in the storage unit respectively: Among them: The total power calculation formula is: , where is the total power, For storage unit The total amount of electricity stored; The calculation formula for the total power instruction times is: , where is the number of instructions corresponding to the total power data obtained, For the The total power data field stores the total power instruction times; A203: If If the total power data does not correspond to the currently acquired total power data, the total power data stored in the storage unit is cleared and rewritten to the storage unit. The corresponding total power data.
8. A communication method for a smart electric energy meter, applicable to the smart electric energy meter according to any one of claims 1 to 7, characterized in that: The following steps are involved: S1: The main control unit receives a query request for obtaining a comparison between total power data and the number of total power data instructions, and obtaining item summary data and the number of item summary data instructions; S2: The main control unit searches for the corresponding instruction number according to the query request, performs a read operation on the storage unit, and obtains the total power data and the item summary data; S3: The main control unit calculates the data; S4: The main control unit feeds back the calculation result obtained in step S3 to the function display unit.
9. A smart energy meter communication method according to claim 8, characterized in that: In step S2, the corresponding instruction number is searched according to the query request, and a reading operation is performed on the storage unit to obtain the total power data and the sub-item summary data, which specifically includes the following steps: S201: The main control unit receives a query request, the query request including a sub-total power data field number and a total power data field number; S202: The main control unit searches whether there is a sub-item summary data and a total power data field according to the sub-total power data field number and the total power data field number; S203: Determine whether the data field with the sub-total power data field number and the total power data field number contains the latest sub-total power data and total power data greater than 0; If it exists, get the instruction count corresponding to the data field and , number of instructions and Corresponding to the corresponding sub-total power data field number and the total power data field number; S204: The main control unit obtains the number of instructions and ; S205: Determine the number of instructions in step S204 and whether they are equal; If they are equal, read all the data in the sub-total power data field, where: The number of instructions for summarizing data for a particular sub-item, The number of instructions for a corresponding sub-item summary data field or total power data field; If not equal, read Less than The data of several sub-total power data fields.
10. A smart electric energy meter communication method according to claim 9, characterized in that: In step S3, the main control unit calculates the data, which specifically includes the following steps: S301: The main control unit obtains the data of the sub-total power data field in step S2; S302: Determine whether the data field contains sub-total power data greater than 0. If so, calculate the sub-total power data greater than 0 in step S301. The calculation formula is: , where Indicates The total power data of the sub-units is greater than 0. Indicates the number of sub-total power data greater than 0; If it does not exist, the identifier of the sub-total power data field , calculate the stored power and get the sub-total power data, the formula is: , where is the total power data of the sub- Indication and instruction times The data instruction number is greater than 0 Corresponding power data; S303: The main control unit obtains the data of the total power data field read by the main control unit in step S2; S304: Determine whether the data field contains total power data greater than 0. If so, calculate the total power data greater than 0 in step S303. The calculation formula is: , where Indicates Total power data greater than 0, Indicates the number of total power data greater than 0; If it does not exist, the main control unit will use the number of the total power data field , calculate the stored power and get the total power data, the formula is: , where is the total power data, Indicates the total power data field number The power data obtained from the storage unit; S305: The main control unit calculates the sub-total power data in step S2 and step S4 and the total power data.