Electric meter and electric meter chip thereof
By designing the first and second processing devices in the electricity meter chip, the security of electricity consumption data is ensured, personalized electricity consumption indicator calculation is realized, the problem of existing electricity meters being unable to carry out personalized calculations is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202110137644.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-01
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-02-01
AI Technical Summary
Existing electricity meters cannot calculate personalized electricity consumption indicators, which limits the development and user experience of electricity meters.
Design an electric meter chip, which includes a first processing device and a second processing device. It receives the original waveform of electricity consumption through a waveform receiver, and reads basic electricity consumption data from the memory through a data reading interface to ensure data security and prohibit tampering. , to realize the calculation of electricity consumption indicators of preset types.
On the basis of ensuring the security of electricity consumption data, personalized calculation of electricity consumption indicators is realized, which improves the function and user experience of the electricity meter.
Smart Images

Figure CN112798859B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric meters, in particular to an electric meter chip. The present invention also relates to an electric meter. Background Art
[0002] An electric meter is a device that measures the electric energy of an electricity user and is widely used. Existing electric meters can only collect the original waveform of the user's electricity consumption and measure some basic electricity consumption data based on the original waveform. The functions are relatively basic and cannot calculate some personalized electricity consumption indicators (such as the user's electricity consumption structure, etc.), which limits the development of electric meters and affects the user experience.
[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0004] An object of the present invention is to provide an electric meter chip, which can realize some personalized calculation of electricity consumption indicators on the basis of ensuring the security of electricity consumption data, thereby promoting the development of electric meters and improving user experience; another object of the present invention is to provide an electric meter including the above-mentioned electric meter chip, which can realize some personalized calculation of electricity consumption indicators on the basis of ensuring the security of electricity consumption data, thereby promoting the development of electric meters and improving user experience.
[0005] In order to solve the above technical problems, the present invention provides an electric meter chip, comprising:
[0006] A first processing device, configured to calculate basic power consumption data according to the acquired original power consumption waveform, and store the basic power consumption data in a memory;
[0007] The memory connected to the second processing device only through its own data reading interface;
[0008] A waveform receiver, configured to receive the original power consumption waveform sent by the first processing device;
[0009] The second processing device is used to calculate a preset type of electricity consumption index based on the original electricity consumption waveform received by the waveform receiver and the basic electricity consumption data obtained from the memory.
[0010] Preferably, the first processing device comprises:
[0011] A first processor is used to calculate basic power consumption data according to the original power consumption waveform, and store the basic power consumption data in a memory through a first data transmission module;
[0012] the first data transmission module;
[0013] The waveform acquisition device is used to send the acquired original power consumption waveform to the second processing device, and send the acquired original power consumption waveform to the first processor through the first data transmission module.
[0014] Preferably, the second processing device comprises:
[0015] A second processor is used to calculate a preset type of power consumption index based on the running program called from the program storage module and according to the original power consumption waveform and the basic power consumption data obtained from the memory through the second data transmission module;
[0016] The program storage module is used to store the running program;
[0017] The second data transmission module is used to transmit the original power consumption waveform received by the waveform receiving device to the second processor.
[0018] Preferably, the program storage module includes:
[0019] Toggle switch;
[0020] A first program storage submodule, used for storing the running program;
[0021] A second program storage submodule, used for storing the running program;
[0022] Then the second processor is specifically used for:
[0023] Acquire the running program from the program storage submodule corresponding to the first communication address;
[0024] Based on the running program, according to the original power consumption waveform and the basic power consumption data obtained from the memory through the second data transmission module, a preset type of power consumption index is calculated;
[0025] When receiving the program upgrade package, upgrading the running program in the program storage submodule corresponding to the second communication address according to the program upgrade package;
[0026] Controlling the communication address corresponding to the first program storage submodule and the communication address corresponding to the second program storage submodule to be exchanged by the switching switch;
[0027] The step of upgrading the running program in the program storage submodule corresponding to the second communication address according to the program upgrade package is executed.
[0028] Preferably, the first data transmission module and the second data transmission module are both Advanced High Performance Bus (AHB) buses.
[0029] Preferably, the first program storage submodule and the second program storage submodule are both flash memory.
[0030] Preferably, the first processor and the second processor are further configured to:
[0031] When an abnormal situation occurs during the running of its own program, the control itself is reset.
[0032] Preferably, the memory is a static random access memory SRAM.
[0033] Preferably, the first processor and the second processor each have an independent clock module;
[0034] The second processor is further configured to:
[0035] In response to a preset trigger instruction, the system controls itself to enter a low power consumption mode.
[0036] In order to solve the above technical problem, the present invention further provides an electric meter, comprising the electric meter chip as described above.
[0037] The present invention provides an electric meter chip. Considering the security requirements of basic electricity consumption data and original electricity consumption waveform in the electric meter chip, the second processing device in the present application can only receive the original electricity consumption waveform through a waveform receiver, and can only read the basic electricity consumption data from the memory through a data reading interface but cannot write data, thereby preventing the second processing device from tampering with the original electricity consumption waveform and basic electricity consumption data at the first processing device. On the premise of ensuring that the data is not tampered with, the second processing device in the electric meter chip can also calculate preset types of electricity consumption indicators to realize some personalized electricity consumption indicator calculations, thereby promoting the development of electric meters and improving user experience.
[0038] The present invention also provides an electric meter having the same beneficial effects as the above electric meter chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A schematic diagram of the structure of an electric meter chip provided by the present invention;
[0041] Figure 2 A schematic structural diagram of another electric meter chip provided by the present invention. DETAILED DESCRIPTION
[0042] The core of the present invention is to provide an electric meter chip, which can realize some personalized electricity consumption index calculations on the basis of ensuring the security of electricity consumption data, promote the development of electric meters and improve user experience; another core of the present invention is to provide an electric meter including the above-mentioned electric meter chip, which can realize some personalized electricity consumption index calculations on the basis of ensuring the security of electricity consumption data, promote the development of electric meters and improve user experience.
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] Please refer to Figure 1 , Figure 1 A schematic diagram of the structure of an electric meter chip provided by the present invention, the electric meter chip comprises:
[0045] The first processing device 1 is used to calculate basic power consumption data according to the acquired original power consumption waveform, and store the basic power consumption data in the memory 2;
[0046] The memory 2 is connected to the second processing device 4 only through its own data reading interface;
[0047] A waveform receiver, used to receive the original power consumption waveform sent by the first processing device 1;
[0048] The second processing device 4 is used to calculate a preset type of power consumption index according to the original power consumption waveform received by the waveform receiver and the basic power consumption data obtained from the memory 2.
[0049] Specifically, taking into account the technical problems in the above background technology, and taking into account the security requirements of the basic electricity consumption data and the original electricity consumption waveform in the meter chip, the applicant envisions setting up an additional second processing device 4 to calculate the preset type of electricity consumption indicators, and trying to achieve a safe isolation between the second processing device 4 and the first processing device 1 for obtaining the original electricity consumption waveform and the basic electricity consumption data, that is, the second processing device 4 cannot tamper with the original electricity consumption waveform and the basic electricity consumption data in the first processing device 1, so as to accurately measure the electricity bill through them.
[0050] Specifically, in the present application, the first processing device 1 and the memory 2 can be regarded as what are originally provided in the electric meter chip. The second processing device 4 in the present application can only obtain the original waveform of electricity consumption and basic electricity consumption data, and does not have the authority to modify the original waveform of electricity consumption and basic electricity consumption data stored in the first processing device 1.
[0051] Among them, the basic electricity consumption data generated by the first processing device 1 is stored in the memory 2, and it can also store the received original electricity consumption waveform in the memory 2, or in other locations. The first processing device 1 can report the original electricity consumption waveform and the basic electricity consumption data to the power department for accurate electricity fee calculation; the second processing device 4 in this application cannot modify the original electricity consumption waveform stored in the first processing device 1 because the waveform receiver is only equivalent to a container. The second processing device 4 can only obtain the original electricity consumption waveform through the waveform receiver, but cannot modify the original electricity consumption waveform stored in the first processing device 1 through the waveform receiver. The original waveform is tampered with, and because the memory 2 is connected to the second processing device 4 through its own data reading interface, the second processing device 4 can only read the basic power consumption data from the memory 2 through the data reading interface but cannot write data, thereby preventing the basic power consumption data stored in the memory 2 by the first processing device 1 from being tampered with by the second processing device 4. Under this premise, the second processing device 4 in the meter chip can calculate the preset type of power consumption index according to the acquired original power consumption waveform and the basic power consumption data, so as to realize some personalized power consumption index calculation, promote the development of the electric meter, and improve the user experience.
[0052] Among them, the preset type of electricity consumption indicators can be of various types, for example, may include the electricity consumption structure of the user corresponding to the meter chip, and the user's real-time electricity consumption power, or electricity consumption prompts to the user based on the electricity consumption power, etc. These can be easily obtained based on the original electricity consumption waveform and basic electricity consumption data, and the embodiments of the present invention are not limited here.
[0053] It is worth mentioning that, for the first processing device 1 in the electric meter chip, the original power consumption waveform is obtained by integrating the fragmented data corresponding to the received original power consumption waveform to obtain the original power consumption waveform, rather than directly obtaining the original power consumption waveform from the user's power line.
[0054] The present invention provides an electric meter chip. Considering the security requirements of basic electricity consumption data and original electricity consumption waveform in the electric meter chip, the second processing device in the present application can only receive the original electricity consumption waveform through a waveform receiver, and can only read the basic electricity consumption data from the memory through a data reading interface but cannot write data, thereby preventing the second processing device from tampering with the original electricity consumption waveform and basic electricity consumption data at the first processing device. On the premise of ensuring that the data is not tampered with, the second processing device in the electric meter chip can also calculate preset types of electricity consumption indicators to realize some personalized electricity consumption indicator calculations, thereby promoting the development of electric meters and improving user experience.
[0055] To better illustrate the embodiments of the present invention, please refer to Figure 2 , Figure 2 A schematic diagram of the structure of another electric meter chip provided by the present invention, based on the above embodiment:
[0056] As a preferred embodiment, the first processing device 1 includes:
[0057] The first processor 11 is used to calculate basic power consumption data according to the original power consumption waveform, and store the basic power consumption data in the memory 2 through the first data transmission module 12;
[0058] A first data transmission module 12;
[0059] The waveform acquisition device 13 is used to send the acquired original power consumption waveform to the second processing device 4 , and send the acquired original power consumption waveform to the first processor 11 through the first data transmission module 12 .
[0060] Specifically, the first processing device 1 in the embodiment of the present invention has the advantage of simple structure.
[0061] The waveform acquisition device 13 can integrate and obtain the original waveform of electricity consumption, and can send it to the first processor 11 and the second processing device 4 respectively.
[0062] Of course, in addition to the specific structure in the embodiment of the present invention, the first processing device 1 can also be other specific structures, which is not limited in the embodiment of the present invention.
[0063] As a preferred embodiment, the second processing device 4 includes:
[0064] The second processor 41 is used to calculate a preset type of power consumption index based on the running program called from the program storage module 42 and according to the original power consumption waveform and the basic power consumption data obtained from the memory 2 through the second data transmission module 43;
[0065] A program storage module 42, used for storing running programs;
[0066] The second data transmission module 43 is used to transmit the original power consumption waveform received by the waveform receiving device 3 to the second processor 41 .
[0067] Specifically, the program storage module 42 stores the operating program of the second processing device 4. Since there is a need for regular updates and upgrades of the algorithms involved in the calculation of preset types of electricity consumption indicators, the embodiment of the present invention needs to independently set up the second processing device 4 to perform the calculation of preset types of electricity consumption indicators, rather than completing it in the first processing device 1. Because once the calculation of the electricity consumption indicator is completed by the first processing device 1, the first processing device 1 is required to open a program upgrade interface to the outside world. Criminals may tamper with the original electricity waveform and basic electricity consumption data through the program upgrade interface, thereby affecting the electricity metering of the power department.
[0068] Of course, in the embodiment of the present invention, the second processor 41 opens a program upgrade interface, and the running program stored in the program storage module 42 can be upgraded through the program upgrade interface. Even if criminals tamper with the data stored in the second processing device 4 through the program upgrade interface, it will not affect the electricity metering through the relevant data in the first processing device 1, thereby ensuring the normal and accurate electricity charges.
[0069] The first processor 11 and the second processor 41 may be of various types, for example, both are single chip microcomputers, etc., which is not limited in the embodiment of the present invention.
[0070] As a preferred embodiment, the program storage module 42 includes:
[0071] Switch 421;
[0072] The first program storage submodule 422 is used to store the running program;
[0073] The second program storage submodule 423 is used to store the running program;
[0074] The second processor 41 is specifically used for:
[0075] Obtaining the running program from the program storage submodule corresponding to the first communication address;
[0076] Based on the running program, according to the original power consumption waveform and the basic power consumption data obtained from the memory 2 through the second data transmission module 43, a preset type of power consumption index is calculated;
[0077] When the program upgrade package is received, upgrading the running program in the program storage submodule corresponding to the second communication address according to the program upgrade package;
[0078] The communication address corresponding to the first program storage submodule 422 and the communication address corresponding to the second program storage submodule 423 are exchanged by controlling the switching switch 421;
[0079] The step of upgrading the running program in the program storage submodule corresponding to the second communication address according to the program upgrade package is executed.
[0080] Specifically, in order to realize the online upgrade function, that is, to complete the upgrade of the running program without interrupting the program running of the second processor 41, in the present application, a running program is stored in the first program storage submodule 422 and the second program storage submodule 423 respectively. Then, when it is necessary to upgrade the running program, the communication address can be exchanged through the switching switch 421, so that each running program can be upgraded in turn. During the upgrade of one of the running programs, the other running program can be run normally. Moreover, since the communication address is exchanged through the switching switch 421, the second processor 41 does not need to change the communication address of the running program read by itself, and can switch from reading one of the running programs to reading another running program, which is more efficient.
[0081] Of course, it is also possible to set up only one running program, interrupt the service in the second processor 41 when upgrading the running program, or to implement online upgrading of the running program through other specific methods, which are not limited in the embodiment of the present invention.
[0082] As a preferred embodiment, the first data transmission module 12 and the second data transmission module 43 are both AHB (Advanced High-performance Bus) buses.
[0083] Specifically, the AHB bus has the advantages of fast transmission speed and strong stability.
[0084] Of course, in addition to the AHB bus, the first data transmission module 12 and the second data transmission module 43 may also be of other types, which is not limited in the embodiment of the present invention.
[0085] As a preferred embodiment, the first program storage submodule 422 and the second program storage submodule 423 are both flash memory.
[0086] Specifically, Flash has the advantages of small size, low cost and strong stability.
[0087] Of course, in addition to Flash, the first program storage submodule 422 and the second program storage submodule 423 may also be of other types, which is not limited in the embodiment of the present invention.
[0088] As a preferred embodiment, the first processor 11 and the second processor 41 are further configured to:
[0089] When an abnormal situation occurs during the running of its own program, the control itself is reset.
[0090] Specifically, both processors can control themselves to reset when an abnormal situation occurs during the running of their own programs so as to resume work. The two processors can reset independently without interfering with each other.
[0091] As a preferred embodiment, the memory 2 is a SRAM (Static RAM, static random access memory 2).
[0092] Specifically, SRAM has the advantages of small size, fast reading and writing speed, and strong stability.
[0093] Of course, in addition to SRAM, the memory 2 may also be of other types, which is not limited in the embodiment of the present invention.
[0094] As a preferred embodiment, the first processor 11 and the second processor 41 both have independent clock modules;
[0095] The second processor 41 is further configured to:
[0096] In response to a preset trigger instruction, the system controls itself to enter a low power consumption mode.
[0097] Specifically, by setting up independent clock modules for the two processors, when the second processor 41 is not tasked and in low power consumption mode, the first processor 11 can still operate normally based on its own clock module to perform electricity metering, thereby further improving the reliability of electricity metering.
[0098] Among them, in response to the preset trigger instruction, controlling itself to enter the low power consumption mode may specifically be that the second processor 41 may control itself to enter the low power consumption mode when detecting that there is no running task, which is not limited in the embodiment of the present invention.
[0099] The present invention further provides an electric meter, comprising the electric meter chip as described in the above-mentioned embodiment.
[0100] For an introduction to the electric meter provided in the embodiment of the present invention, please refer to the aforementioned embodiment of the electric meter chip, and the embodiment of the present invention will not be described in detail here.
[0101] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. It should also be noted that in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the element.
[0102] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An electric meter chip, characterized in that: include: A first processing device, configured to integrate the fragmented data corresponding to the received original power waveform to obtain the original power waveform, calculate basic power data according to the obtained original power waveform, and store the basic power data in a memory; wherein the first processing device does not open a program upgrade interface; The memory connected to the second processing device only through its own data reading interface; A waveform receiver, configured to receive the original power consumption waveform sent by the first processing device; The second processing device is used to calculate a preset type of power consumption index based on the original power consumption waveform received by the waveform receiver and the basic power consumption data obtained from the memory; The first processing device comprises: A first processor is used to calculate basic power consumption data according to the original power consumption waveform, and store the basic power consumption data in a memory through a first data transmission module; the first data transmission module; A waveform acquisition device, used for sending the acquired original power consumption waveform to the second processing device, and sending the acquired original power consumption waveform to the first processor through the first data transmission module; The second processing device comprises: A second processor is used to calculate a preset type of power consumption index based on the running program called from the program storage module and according to the original power consumption waveform and the basic power consumption data obtained from the memory through the second data transmission module; wherein the second processor opens a program upgrade interface; The program storage module is used to store the running program; The second data transmission module is used to transmit the original power consumption waveform received by the waveform receiving device to the second processor; The program storage module includes: Toggle switch; A first program storage submodule, used for storing the running program; A second program storage submodule, used for storing the running program; Then the second processor is specifically used for: Acquire the running program from the program storage submodule corresponding to the first communication address; Based on the running program, according to the original power consumption waveform and the basic power consumption data obtained from the memory through the second data transmission module, a preset type of power consumption index is calculated; When receiving the program upgrade package, upgrading the running program in the program storage submodule corresponding to the second communication address according to the program upgrade package; Controlling the communication address corresponding to the first program storage submodule and the communication address corresponding to the second program storage submodule to be exchanged by the switching switch; Executing the step of upgrading the running program in the program storage submodule corresponding to the second communication address according to the program upgrade package; The first processor and the second processor both have independent clock modules; The second processor is further configured to: In response to a preset trigger instruction, the system controls itself to enter a low power consumption mode.
2. The electric meter chip according to claim 1, characterized in that: The first data transmission module and the second data transmission module are both advanced high performance buses (AHB buses).
3. The electric meter chip according to claim 1, characterized in that: The first program storage submodule and the second program storage submodule are both flash memories.
4. The electric meter chip according to claim 1, characterized in that: The first processor and the second processor are further configured to: When an abnormal situation occurs during the running of its own program, the control itself is reset.
5. The electric meter chip according to claim 1, characterized in that: The memory is a static random access memory SRAM.
6. An electric meter, characterized in that: The invention comprises an electric meter chip as claimed in any one of claims 1 to 5.
