Summary of the invention
The purpose of the application is to provide a kind of intelligent electric meter, avoids the wind maliciously distorted in main controller processing
Danger, improves the safety of ammeter, preferably protects the interests of user.
In order to solve the above technical problems, this application provides a kind of intelligent electric meters, including:
For measuring the meter of electricity;
It is used for transmission the communication module of data;
The main controller being connect with the communication module, for receiving the data that main website is sent by the communication module, and
Judge whether the data are metering class sensitive data, if so, being forwarded to security module, otherwise execute phase according to the data
The operation answered;
It connect, be used for according to the metering class sensitive data to the metering with the main controller and the meter respectively
The variable of device executes the security module of corresponding safety operation.
Preferably, which further includes:
The controllable switch being connect with the security module;
Then the main controller is also used to judge whether the data are verifying class sensitive data, if so, being forwarded to safety
Otherwise module executes corresponding operation according to the data;
Then the security module is also used to verify the legitimacy of the verifying class sensitive data, and sensitive in the verifying class
After data are by verifying, the controllable switch closure is controlled to give the controllable switch pair according to the verifying class sensitive data
The customer power supply or the control controllable switch answered disconnect so that user corresponding with controllable switch power-off.
Preferably, the metering class sensitive data includes metering electricity class data;
Then the security module is specifically used for obtaining the metering of the meter according to the metering electricity class data
Value carries out safe handling to the variable, the variable after safe handling is sent to the main controller, so as to described
Main controller reports to the main website.
Preferably, the metering class sensitive data further includes charging class data;
Then the security module is specifically used for obtaining the variable of the meter according to the charging class data,
Charging is completed according to default electricity price and the variable.
Preferably, which further includes:
It is connect with the main controller, for showing the display of the variable;
Then the main controller is also used to show after the variable reduction after safe handling by the display
Show.
Preferably, the process for carrying out safe handling to the variable is specially:
The variable is encrypted and/or is calculated message authentication code and/or signature.
Preferably, the process of the legitimacy of the verifying verifying class sensitive data is specially:
By decryption and/or signature authentication and/or verifying message authentication code, the legitimacy of the verifying class data is verified.
Preferably, the controllable switch is relay.
Preferably, the display is liquid crystal display.
This application provides a kind of intelligent electric meters, including the meter for measuring electricity;It is used for transmission the communication of data
Module;Whether the main controller connecting with communication module for receiving the data that main website is sent by communication module, and judges data
To measure class sensitive data, if so, being forwarded to security module, corresponding operation otherwise is executed according to data;Respectively with master control
Device connects with meter, the safety for executing corresponding safety operation to the variable of meter according to metering class sensitive data
Module.
The application is directly handled class sensitive data is measured by security module, and security module is directly connected to meter,
Can variable directly to meter carry out safety operation, that is to say, that the processing to variable be not done by main controller, and
It is to be done by very safe security module, avoids the risk maliciously distorted in main controller processing, improve ammeter
Safety, preferably protect the interests of user.
Specific embodiment
The core of the application is to provide a kind of intelligent electric meter, avoids the wind maliciously distorted in main controller processing
Danger, improves the safety of ammeter, preferably protects the interests of user.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 2, Fig. 2 is a kind of structural schematic diagram of intelligent electric meter provided herein, including:
For measuring the meter 1 of electricity;
It is used for transmission the communication module 2 of data;
The main controller 3 connecting with communication module 2 for receiving the data that main website is sent by communication module 2, and judges number
According to whether being metering class sensitive data, if so, being forwarded to security module 4, corresponding operation otherwise is executed according to data;
It is connect respectively with main controller 3 and meter 1, for being held according to metering class sensitive data to the variable of meter 1
The security module 4 of the corresponding safety operation of row.
Specifically, in order to solve the problems, such as to propose in background technique, the application improves the structure of intelligent electric meter, by
Belong to the important and key message of user in the variable of meter 1, cannot exist and the risks such as be tampered, and main controller 3 is ratio
Be easier to the attack by hacker, if reading variable by main controller 3,3 end variable of main controller under attack just
In the presence of the risk distorted, security module 4 will not find that data are tampered with main website by " bypass ", security module 4;Therefore, originally
Meter 1 is connect by application with security module 4, and variable is obtained by security module 4, is provided with attack protection in security module 4
Software, will not maliciously be controlled, also there is no the risks that are tampered of variable obtained, therefore, by security module 4
Processing variable can guarantee the reliability and integrality of variable, and ammeter could be safer.In addition, the data sent when main website
When not being metering class sensitive data, that is, when will not relate to the important and key message of user, directly made accordingly by main controller 3
Response, can share out the work and help one another in this way with security module 4, reduce respective data processing pressure.
It should be noted that variable here can be the electricity consumption of the corresponding user of intelligent electric meter, metering here
Class sensitive data is sent by main website, is a kind of instruction for variable, such as report variable and charging.Here communication mould
Block 2 can be wireless communication module, such as Wi-Fi (Wireless-Fidelity, Wireless Fidelity) network, or wired
Communication module, the application is it is not limited here.
In addition, SPI (Serial Peripheral can be passed through when security module 4 is connect with the equal hardware of meter 1
Interface, Serial Peripheral Interface (SPI)) and UART (Universal Asynchronous Receiver/Transmitter, it is logical
With asynchronous receiving-transmitting transmitter) etc. interfaces, can also be by other interfaces, the application is it is not limited here.The application not only can be used
In intelligent electric meter, it can also be used to which other need the industrial control equipment using safety chip.
This application provides a kind of intelligent electric meters, including the meter for measuring electricity;It is used for transmission the communication of data
Module;Whether the main controller connecting with communication module for receiving the data that main website is sent by communication module, and judges data
To measure class sensitive data, if so, being forwarded to security module, corresponding operation otherwise is executed according to data;Respectively with master control
Device connects with meter, the safety for executing corresponding safety operation to the variable of meter according to metering class sensitive data
Module.
The application is directly handled class sensitive data is measured by security module, and security module is directly connected to meter,
Can variable directly to meter carry out safety operation, that is to say, that the processing to variable be not done by main controller, and
It is to be done by very safe security module, avoids the risk maliciously distorted in main controller processing, improve ammeter
Safety, preferably protect the interests of user.
On the basis of the above embodiments:
Embodiment as one preferred, the intelligent electric meter further include:
The controllable switch 5 being connect with security module 4;
Then main controller 3 is also used to judge whether data are verifying class sensitive data, if so, it is forwarded to security module 4, it is no
Then corresponding operation is executed according to data;
Then security module 4 is also used to the legitimacy of authentication class sensitive data, and in verifying class sensitive data by testing
It, can to give the corresponding customer power supply of controllable switch 5 or control according to verifying class sensitive data control controllable switch 5 closure after card
Switch 5 is controlled to disconnect so that user corresponding with controllable switch 5 powers off.
Specifically, in order to further increase the safety of ammeter, the verifying class sensitive data that the application sends main website is still
It is handled, the instruction that verifying class sensitive data here can act for control controllable switch 5, such as is closed by security module 4
It closes controllable switch 5 or disconnects controllable switch 5, for this kind of data, security module 4 needs to verify its true and false, is determining the number
After for true (legal), security module 4 sends control signal to controllable switch 5 connected to it.Referring to FIG. 3, specific next
It says, when verifying class sensitive data is closure controllable switch 5, security module 4 sends closure to controllable switch 5 connected to it
Signal is controlled, after controllable switch 5 is closed, the ammeter of user is connect with power supply grid, and power supply grid can be to customer power supply, when testing
Demonstrate,proving class sensitive data is when disconnecting controllable switch 5, and security module 4 sends the control disconnected to controllable switch 5 connected to it and believes
Number, after controllable switch 5 disconnects, the ammeter and power supply grid of user is disconnected, and powers off user.
In addition, other than above-mentioned metering class sensitive data and verifying class sensitive data, it can also be as needed to main website
Other data for being related to important information sent are performed corresponding processing by security module 4, and the application does not do special limit herein
It is fixed.
Embodiment as one preferred, metering class sensitive data include metering electricity class data;
Then security module 4 be specifically used for according to metering electricity class data, obtain meter 1 variable, to variable into
Variable after safe handling is sent to main controller 3 by row safe handling, so that main controller 3 reports to main website.
Specifically, metering electricity class data here are to report variable, i.e. master request ammeter in first embodiment
Main controller 3 return user electricity consumption (variable), the electricity consumption of user is measured by meter 1.Therefore, security module
4 after the metering electricity class data for receiving the forwarding of main controller 3, obtain variable and encrypt etc. to variable and improve data
Then the safe handling of safety is reported to main website via main controller 3.
Embodiment as one preferred, metering class sensitive data further includes charging class data;
Then security module 4 is specifically used for obtaining the variable of meter 1 according to charging class data, according to default electricity price and
Variable completes charging.
Specifically, in order to further increase the safety of ammeter, metering class sensitive data further includes charging class data, i.e., main
Station requires ammeter to complete the charging to the electricity consumption of user, and the number such as electricity price can specifically, in security module 4 be stored in advance
After obtaining variable according to, security module 4, the electricity charge of user are calculated according to variable and electricity price, in addition, if in security module 4
Further comprising user is the amount of money for paying the electricity charge, and security module 4 can also deduct the corresponding amount of money according to the electricity charge of calculating, thus
Complete billing function.
In addition, metering class sensitive data may be other, this Shen other than metering electricity class data and charging class data
Please it is not limited here.
Embodiment as one preferred, the intelligent electric meter further include:
It is connect with main controller 3, for showing the display of variable;
Then main controller is also used to show after the variable reduction after safe handling by display.
Specifically, in order to improve the intelligence of ammeter, when user wants to know electricity consumption, user can be made by main website
Ammeter display variable being obtained, such as user sends electricity display request to main website, main website controls ammeter progress electricity and shows, because
This, the intelligent electric meter of the application further includes display, and display can be attached with main controller 3, and main controller 3 receives safety
Variable after 4 safe handling of module restores the variable after safe handling, such as whether verifying MAC value is consistent, after consistent
The MAC value for removing the calculating of security module 4 restores the variable after safe handling, to facilitate display to show.
It should be noted that display here can be liquid crystal display, or LED display or other displays
Device, the application is it is not limited here.
Embodiment as one preferred, the process for carrying out safe handling to variable are specially:
Message authentication code and/or signature are encrypted and/or calculated to variable.
Specifically, to variable carry out safe handling when, can using encryption, calculate message authentication code (MAC value) and
The modes such as signature are signed as in the way of key progress authentication, the mode for carrying out safe handling to variable can be
But it is not limited to above-mentioned several ways.
The process of embodiment as one preferred, the legitimacy of authentication class sensitive data is specially:
Pass through decryption and/or signature authentication and/or verifying message authentication code, the legitimacy of authentication class data.
Specifically, it when 4 authentication class sensitive data of security module, can be decrypted by the password of setting, if can
With decryption, then illustrates that verifying class sensitive data is legal, can also be tested by the verifying of signature authentication and message authentication code to determine
The legitimacy of class sensitive data is demonstrate,proved, certainly, verification mode can also be other, and the application is it is not limited here.
Embodiment as one preferred, controllable switch 5 are relay.
Specifically, it is contemplated that the cost of ammeter, controllable switch 5 can be the common lower relay of price, certainly
It can be other controllable switches 5, as long as can be realized the application, the application is it is not limited here.
Embodiment as one preferred, display are liquid crystal display.
Specifically, display can be liquid crystal display, or LED display or other displays, the application exist
This is without limitation.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence " including one " limited
Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.