Data security protection method and system for smart electric meter
By adopting encrypted bit-beat encryption technology and a back-check mechanism on smart meters, the problem of data security protection of smart meters is solved, high security and integrity of data transmission is achieved, and the stability of the power system and user trust is ensured.
Patent Information
- Application Number
- CN202411126769.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2044-08-16
AI Technical Summary
The data security protection of smart meters has problems such as privacy leakage, data tampering, economic losses and reduced trust, and it is necessary to design an effective data security protection method and system.
Encrypted bit heartbeat encryption technology is used to encrypt and transmit the running data packets of smart meters, and data integrity is judged through the back-check mechanism. Encrypted bit Heartbeat encryption has a heartbeat encryption bit in the key. The position of the heartbeat encryption bit is based on the numbered data of the smart meter and the decryption time data, which makes sure that there are two points that are not fixed before decryption.
It greatly improves the security of smart meter data transmission, reduces the possibility of key cracking, prevents data tampering and privacy leakage, and ensures the stability of the power system and user trust.
Smart Images

Figure CN118764306B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data security protection for smart meters, and in particular to a data security protection method and system for smart meters. Background Art
[0002] The data security protection of smart meters is extremely important, which is reflected in the following aspects:
[0003] 1. Protect user privacy rights: Smart meters can collect user electricity usage data, which directly reflects the user's daily living habits and electricity usage behavior. If this data is illegally obtained, the user's privacy will be violated. Data security protection can effectively prevent personal privacy leaks.
[0004] 2. Maintain the stability of the power system: Smart meters are an important part of the smart grid, and their data is directly involved in the operation, dispatch and management of the power system. Data security protection can prevent malicious tampering of electricity consumption data and ensure the accuracy and stability of the power system operation.
[0005] 3. Support energy strategic decision-making: The data from smart meters plays an important role in the national energy management department's energy consumption analysis, energy policy formulation and strategic decision-making. Data security protection ensures the authenticity and reliability of this data.
[0006] 4. Promote the healthy development of the power market: The data from smart meters is an important basis for power market transactions. Data security protection can ensure the fairness of market transaction data, prevent market manipulation, and promote the healthy development of the power market.
[0007] 5. Prevent economic losses: If the data of smart meters is tampered with, it may cause errors in electricity fee calculation, causing economic losses to power companies. Data security protection helps to avoid this from happening.
[0008] 6. Enhance social trust: The safe and reliable operation of smart meters can enhance the public's trust in smart grids and smart meters, which is conducive to the promotion and application of smart grids.
[0009] Therefore, designing a data security protection method and system for smart meters to protect the data of smart meters is a technical problem that needs to be solved urgently. Summary of the invention
[0010] In order to solve the above-mentioned technical problem of computer collision simulation analysis of foundation pit support structure, the present invention provides a data security protection method and system for smart electric meters. The following technical solutions are adopted:
[0011] The data security protection method of the smart meter includes the following steps:
[0012] Step 1: The operation data packet of the smart meter is encrypted at set intervals using encryption bit heartbeat encryption to generate an encrypted data packet. The encryption bit heartbeat encryption has a heartbeat encryption bit in the key, and the position of the heartbeat encryption bit randomly jumps based on the serial number data and decryption time data of the smart meter.
[0013] Step 2, numbering the running data packets and storing them in the buffer of the smart meter;
[0014] Step 3, sending the interactive data packet to the central server;
[0015] Step 4, the central server parses the interactive data packet to obtain the numbering data, collects the current time data to obtain the decryption time data, first generates the position data of the heartbeat encryption bit based on the numbering data and the decryption time data, then generates the key data based on the numbering data and the decryption time data, and obtains the heartbeat encryption bit, places the heartbeat encryption bit in the correct position in the key data based on the position data to generate the decryption key data, inputs the decryption key data into the interactive data packet to complete the decryption, and obtains the running data packet;
[0016] Step 5: At set intervals, the central server generates a check number data based on a random number algorithm. The smart meter corresponding to the check number data is the smart meter to be checked. The last decrypted running data packet of the smart meter to be checked is collected as the data packet to be checked. The data packet to be checked is encrypted for check and then transmitted to the smart meter to be checked.
[0017] Step 6: The smart meter to be checked parses and decrypts the data packet to be checked, and performs consistency analysis with the running data packet with the corresponding number stored in the buffer. If it is judged to be completely consistent, the central server is fed back that the check is qualified, otherwise the check is fed back that it is unqualified.
[0018] By adopting the above technical solution, the data security protection of smart meters includes two parts: one is the encrypted transmission of data, and the other is the integrity judgment using a backcheck mechanism;
[0019] The encrypted transmission of data adopts encryption bit heartbeat encryption to generate encrypted data packets. The encryption bit heartbeat encryption is provided with a heartbeat encryption bit in the key, and the number of heartbeat encryption bits is generally more than one. The position of the heartbeat encryption bit is randomly jumped based on the serial number data and decryption time data of the smart meter.
[0020] There are two things about the ciphertext that are not fixed before decryption: the ciphertext itself and the position of the heartbeat encryption bit;
[0021] Both parts are generated using numbering data and decryption time data, thus greatly reducing the possibility of the key being cracked, ensuring the security of smart meter data and reducing the possibility of tampering or tampering after network hijacking.
[0022] The second key part of the data security protection of smart meters is the back-check mechanism. Specifically, at set intervals, the central server uses a random number algorithm to generate back-check number data. The central server uses the last decrypted running data packet as the data packet to be back-checked, and encrypts it again based on the previous encryption mechanism and sends it back to the smart meter with the corresponding number data. After the buffer of the smart meter to be back-checked receives the data packet to be back-checked, it decrypts it and calls the original running data packet with the corresponding number stored before for consistency analysis. The consistency analysis can identify whether the data has been tampered with or whether packet loss has occurred. If a difference is identified, it is considered that the data of the smart meter is unsafe and staff are required to conduct on-site inspection to determine the cause.
[0023] Greatly improve the security of smart meter data transmission.
[0024] Optionally, in step 1, the encryption bit heartbeat encryption includes the following steps:
[0025] The ciphertext includes numbered data bits, decryption time bits and heartbeat encryption bits. Suppose the numbered data bits are WXYZ, the decryption time bits are AB, and the heartbeat encryption bits are CD. The combination of the ciphertext is WXYZAB. There is a heartbeat encryption bit between any two adjacent bits of WXYZAB. C and D are located at any two of the five heartbeat encryption bits. The position data of C and D is the position data of the heartbeat encryption bit.
[0026] Optionally, AB of the decrypted time part is associated with the last digit of the hour and minute of the central server system time.
[0027] By adopting the above technical solution, in the encryption and decryption process, the specific ciphertext of the decryption time part AB and the heartbeat encryption bit is actually not fixed. It is necessary to associate the central server system time during decryption to obtain the last digit of the hours and minutes to form AB.
[0028] Optional, wherein W is the last digit of the sum of the first two digits of the ten-digit number of the smart meter, X is the last digit of the sum of the third and fourth digits of the ten-digit number of the smart meter, Y is the last digit of the sum of the fifth and sixth digits of the ten-digit number of the smart meter, Z is the last digit of the sum of the last four digits of the ten-digit number of the smart meter, C is the first digit of the ten-digit number of the smart meter, and D is the last digit of the ten-digit number of the smart meter.
[0029] By adopting the above technical solution, the common serial number of the smart meter is generally ten digits. Of course, if it is a serial number of other digits, multi-digit serial number data can be set according to the specific situation. The value of WXYZ, the value of AB and the value of CD can be generated based on the set rules.
[0030] Optionally, in step 4, the method for generating the position data of the heartbeat encryption bit is: number the five encryption bits as 1-5 respectively, first add W and A to get the mantissa, if the mantissa is 1-5, the position of the first heartbeat encryption bit is the encryption bit number corresponding to the mantissa; if the mantissa is 6-9, the encryption bits are numbered according to 1-4 respectively, and if the mantissa is 0, the encryption bit number is 5;
[0031] Z and B are added to get the mantissa, and the position of the second heartbeat encryption bit is calculated using the same method as the position of the first heartbeat encryption bit.
[0032] By adopting the above technical solution, in actual application, other operation rules can be used. For example, simple addition, subtraction, multiplication and division operations can all be used to calculate the encryption bit number. After the encryption bit number is obtained, the value of C is inserted between WXYZAB according to the position of the first heartbeat encryption bit, and the value of D is inserted between WXYZAB according to the position of the second heartbeat encryption bit to form the final key text, which greatly increases the difficulty of deciphering the key.
[0033] Optionally, in step 5, the method by which the central server generates look-up number data based on a random number algorithm is: the numbers of all smart meters form a random pool, and multiple numbers in the random pool are renumbered according to Arabic data as 1, 2, ..., N, where N is the total number of smart meters, and 0.05N random numbers are generated every hour based on a random number algorithm, and the numbers of the smart meters corresponding to the 0.05N random numbers are the look-up number data.
[0034] By adopting the above technical solution, a conventional random number algorithm can be used to generate random numbers according to the set target ratio. Of course, a chaotic factor can be added to the random number algorithm to avoid excessive concentration of random numbers and reduce repeatability.
[0035] Optionally, in step 6, the consistency analysis method of the data packet to be checked is to first analyze the structure of the data packet, and the structure of the data packet includes the following information:
[0036] Data packet unique ID information, timestamp information, meter reading information and hash value information;
[0037] First, analyze and ensure whether the data packet to be checked and the running data packet have the same data structure. If it is judged to be, compare the timestamp information. If the comparison is successful, compare the hash value. If the comparison is successful, judge the consistency of the meter reading. If the items and values of the meter reading information are consistent, output a completely consistent judgment result, otherwise output a judgment result that the consistency is unqualified.
[0038] By adopting the above technical solution, first, define the structure of the data packet to ensure that each data packet contains the following information:
[0039] Data packet ID: A number that uniquely identifies each data packet.
[0040] Timestamp information: the time when the data packet is generated.
[0041] Data content information: meter readings or other relevant information.
[0042] Hash value information: The hash value of the data content, used to verify data integrity.
[0043] Consistency analysis steps: First, perform data preprocessing to ensure that the data packet to be reviewed and the original data packet have the same data structure. Check the timestamp of each data packet to ensure that they are within a reasonable error range. Hash value comparison: calculate the hash value of the data packet to be reviewed and compare it with the hash value carried in the data packet. If the hash values are inconsistent, it means that the data packet may have been tampered with during transmission or storage; finally, compare the data content to ensure that each item of the data content is the same before judging it to be completely consistent.
[0044] Optionally, the method for the smart meter to be checked to decrypt the data packet to be checked is consistent with the method in step 4.
[0045] By adopting the above technical solution, other encryption and decryption methods can also be used during the execution of the lookback mechanism.
[0046] The data security protection system of the smart meter is used to implement the data security protection method of the smart meter. The data security protection system includes multiple smart meters, meter-side encryption and decryption modules, data analysis chips, meter communication modules, central servers and server-side encryption and decryption modules.
[0047] The meter-side encryption and decryption module and the data analysis chip are respectively connected to the cache of the smart meter in communication, the cache is connected to the central server in communication through the meter communication module, and the server-side encryption and decryption module is connected to the central server in communication.
[0048] Optionally, it also includes an audible and visual alarm, and the central server controls the switch of the audible and visual alarm.
[0049] By adopting the above technical solution, when the smart meter to be reviewed feeds back a signal of unqualified review to the central server, the central server controls the sound and light alarm to emit an sound and light alarm, and displays the corresponding smart meter number on the screen. The staff should promptly conduct on-site inspection to avoid security risks in the smart meter data.
[0050] In summary, the present invention includes at least one of the following beneficial technical effects: data security protection of smart meters includes encrypted transmission of data and a checkback mechanism for data integrity judgment; the encrypted transmission of data adopts encryption bit heartbeat encryption to generate an encrypted data packet, the encryption bit heartbeat encryption has a heartbeat encryption bit in the key, and the number of heartbeat encryption bits is generally more than one, and the position of the heartbeat encryption bit randomly jumps based on the numbering data and decryption time data of the smart meter; there are two points in the ciphertext that are not fixed before decryption, one is the ciphertext itself, and the other is the position of the heartbeat encryption bit; these two parts are generated using numbering data and decryption time data, thereby greatly reducing the possibility of the key being cracked, ensuring the security of the smart meter data, and reducing the possibility of tampering or tampering after network hijacking.
[0051] In the data review mechanism of the smart meter, the central server uses a random number algorithm to generate review number data. The central server uses the last decrypted running data packet as the data packet to be reviewed, and encrypts it again based on the previous encryption mechanism and sends it back to the smart meter with the corresponding number data. The smart meter to be reviewed decrypts it and calls the original running data packet with the corresponding number stored before for consistency analysis. If a difference is identified, it is considered that the data of the smart meter is unsafe, and staff are required to conduct on-site inspection to determine the cause; the security of smart meter data transmission is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a flow chart of the data security protection method of the smart meter of the present invention;
[0053] Figure 2 It is a schematic diagram of the component connection principle of the data security protection system of the smart meter of the present invention.
[0054] Explanation of the accompanying drawings: 1. Encryption and decryption module on the meter side; 2. Data analysis chip; 3. Meter communication module; 4. Encryption and decryption module on the server side; 5. Sound and light alarm; 100. Smart meter; 1001. Cache; 101. Central server. DETAILED DESCRIPTION
[0055] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0056] The embodiments of the present invention disclose a data security protection method and system for a smart electric meter.
[0057] Reference Figure 1 and Figure 2 , Embodiment 1, a data security protection method for a smart meter, comprising the following steps:
[0058] Step 1: The operation data packet of the smart meter 100 generates an encrypted data packet by using encryption bit heartbeat encryption at set intervals. The encryption bit heartbeat encryption has a heartbeat encryption bit in the key, and the position of the heartbeat encryption bit randomly jumps based on the serial number data and decryption time data of the smart meter 100.
[0059] Step 2, numbering the running data packets and storing them in the buffer 1001 of the smart meter 100;
[0060] Step 3, sending the interactive data packet to the central server 101;
[0061] Step 4, the central server 101 parses the interactive data packet to obtain the numbering data, collects the current time data to obtain the decryption time data, first generates the position data of the heartbeat encryption bit based on the numbering data and the decryption time data, then generates the key data based on the numbering data and the decryption time data, and obtains the heartbeat encryption bit, places the heartbeat encryption bit in the correct position in the key data based on the position data to generate the decryption key data, inputs the decryption key data into the interactive data packet to complete the decryption, and obtains the running data packet;
[0062] Step 5: At set intervals, the central server 101 generates a check number data based on a random number algorithm. The smart meter 100 corresponding to the check number data is the smart meter to be checked. The last decrypted running data packet of the smart meter to be checked is collected as the data packet to be checked. The data packet to be checked is encrypted for check and then transmitted to the smart meter to be checked.
[0063] Step 6, the smart meter to be checked parses and decrypts the data packet to be checked, and performs consistency analysis with the running data packet with the corresponding number stored in the buffer 1001. If it is judged to be completely consistent, the central server 101 is fed back that the check is qualified, otherwise the check is fed back that it is unqualified.
[0064] The data security protection of smart meters consists of two parts: one is the encrypted transmission of data, and the other is the integrity judgment using a backcheck mechanism;
[0065] The encrypted transmission of data adopts encryption bit heartbeat encryption to generate encrypted data packets. The encryption bit heartbeat encryption has a heartbeat encryption bit in the key, and the number of heartbeat encryption bits is generally more than one. The position of the heartbeat encryption bit is randomly jumped based on the serial number data and decryption time data of the smart meter 100.
[0066] There are two things about the ciphertext that are not fixed before decryption: the ciphertext itself and the position of the heartbeat encryption bit;
[0067] Both parts are generated using numbering data and decryption time data, thus greatly reducing the possibility of the key being cracked, ensuring the security of smart meter data and reducing the possibility of tampering or tampering after network hijacking.
[0068] The second key part of the data security protection of the smart meter is the back-check mechanism. Specifically, at set intervals, the central server 101 uses a random number algorithm to generate back-check number data. The central server 101 uses the last decrypted running data packet as the data packet to be back-checked, and encrypts it again based on the previous encryption mechanism and sends it back to the smart meter 100 with the corresponding number data. After receiving the data packet to be back-checked, the buffer 1001 of the smart meter to be back-checked decrypts it and calls the original running data packet with the corresponding number stored before for consistency analysis. The consistency analysis can identify whether the data has been tampered with or whether packet loss has occurred. If a difference is identified, it is considered that the data of the smart meter 100 has unsafe factors, and the staff needs to conduct on-site inspection to determine the cause.
[0069] Greatly improve the security of data transmission of smart meters 100.
[0070] In Example 2, in step 1, the encryption bit heartbeat encryption includes the following steps:
[0071] The ciphertext includes numbered data bits, decryption time bits and heartbeat encryption bits. Suppose the numbered data bits are WXYZ, the decryption time bits are AB, and the heartbeat encryption bits are CD. The combination of the ciphertext is WXYZAB. There is a heartbeat encryption bit between any two adjacent bits of WXYZAB. C and D are located at any two of the five heartbeat encryption bits. The position data of C and D is the position data of the heartbeat encryption bit.
[0072] In the third embodiment, AB in the decrypted time part is associated with the last digit of the hour and minute of the system time of the center server 101 .
[0073] In the encryption and decryption process, the specific ciphertext of the decryption time part AB and the heartbeat encryption bit is actually not fixed. It is necessary to associate the central server 101 system time during decryption to obtain the last digit of the hour and minute to form AB.
[0074] Embodiment 4, wherein W is the last digit of the sum of the first two digits of the tens digit number of the smart meter 100, X is the last digit of the sum of the third and fourth digits of the tens digit number of the smart meter 100, Y is the last digit of the sum of the fifth and sixth digits of the tens digit number of the smart meter 100, Z is the last digit of the sum of the last four digits of the tens digit number of the smart meter 100, C is the first digit of the tens digit number of the smart meter 100, and D is the last digit of the tens digit number of the smart meter 100.
[0075] The common serial number of the smart meter 100 is generally ten digits, and of course, if it is a serial number of other digits, multi-digit serial number data can be set according to specific circumstances. The value of WXYZ, the value of AB, and the value of CD can be generated based on the set rules.
[0076] Embodiment 5, in step 4, the method for generating the position data of the heartbeat encryption bit is: number the five encryption bits 1-5 respectively, first add W and A to get the mantissa, if the mantissa is 1-5, the position of the first heartbeat encryption bit is the encryption bit number corresponding to the mantissa; if the mantissa is 6-9, the encryption bits are numbered according to 1-4 respectively, and if the mantissa is 0, the encryption bit number is 5;
[0077] Z and B are added to get the mantissa, and the position of the second heartbeat encryption bit is calculated using the same method as the position of the first heartbeat encryption bit.
[0078] In actual application, it can be based on other operation rules. For example, simple addition, subtraction, multiplication and division operations can all realize the calculation of the encryption bit number. After the encryption bit number is obtained, the value of C is inserted between WXYZAB according to the position of the first heartbeat encryption bit, and the value of D is inserted between WXYZAB according to the position of the second heartbeat encryption bit to form the final key text, which greatly increases the difficulty of deciphering the key.
[0079] In Example 6, in step 5, the method by which the central server 101 generates the look-up number data based on the random number algorithm is: the numbers of all the smart meters 100 form a random pool, and the multiple numbers in the random pool are renumbered according to Arabic data as 1, 2, ..., N, where N is the total number of smart meters 100, and 0.05N random numbers are generated every hour based on the random number algorithm, and the numbers of the smart meters 100 corresponding to the 0.05N random numbers are the look-up number data.
[0080] By using a conventional random number algorithm, random numbers can be generated according to the set target ratio. Of course, a chaotic factor can also be added to the random number algorithm to avoid excessive concentration of random numbers and reduce repeatability.
[0081] In Example 7, in step 6, the consistency analysis method of the data packet to be checked is to first analyze the structure of the data packet, and the structure of the data packet includes the following information:
[0082] Data packet unique ID information, timestamp information, meter reading information and hash value information;
[0083] First, analyze and ensure whether the data packet to be checked and the running data packet have the same data structure. If it is judged to be, compare the timestamp information. If the comparison is successful, compare the hash value. If the comparison is successful, judge the consistency of the meter reading. If the items and values of the meter reading information are consistent, output a completely consistent judgment result, otherwise output a judgment result that the consistency is unqualified.
[0084] First, define the structure of the data packet and ensure that each data packet contains the following information:
[0085] Data packet ID: A number that uniquely identifies each data packet.
[0086] Timestamp information: the time when the data packet is generated.
[0087] Data content information: meter readings or other relevant information.
[0088] Hash value information: The hash value of the data content, used to verify data integrity.
[0089] Consistency analysis steps: First, perform data preprocessing to ensure that the data packet to be reviewed and the original data packet have the same data structure. Check the timestamp of each data packet to ensure that they are within a reasonable error range. Hash value comparison: calculate the hash value of the data packet to be reviewed and compare it with the hash value carried in the data packet. If the hash values are inconsistent, it means that the data packet may have been tampered with during transmission or storage; finally, compare the data content to ensure that each item of the data content is the same before judging it to be completely consistent.
[0090] In Example 8, the method for the smart meter to be checked to decrypt the data packet to be checked is consistent with the method in step 4.
[0091] During the execution of the lookback mechanism, other encryption and decryption methods may also be used.
[0092] Embodiment 9, a data security protection system for a smart meter, is used to implement a data security protection method for a smart meter. The data security protection system includes a plurality of smart meters 100, a meter-side encryption and decryption module 1, a data analysis chip 2, a meter communication module 3, a central server 101, and a server-side encryption and decryption module 4.
[0093] The meter-side encryption and decryption module 1 and the data analysis chip 2 are respectively connected to the cache 1001 of the smart meter 100 , the cache 1001 is connected to the central server 101 through the meter communication module 3 , and the server-side encryption and decryption module 4 is connected to the central server 101 .
[0094] Embodiment 10 further includes an audible and visual alarm 5 , and the central server 101 controls the switch of the audible and visual alarm 5 .
[0095] When the smart meter to be reviewed feeds back a signal of unqualified review to the central server 101, the central server 101 controls the sound and light alarm 5 to emit a sound and light alarm, and displays the corresponding smart meter 100 number on the screen. The staff should conduct on-site inspection in time to avoid security risks of the smart meter data.
[0096] The following specific embodiments are used to illustrate the implementation principle of the data security protection method and system of the smart meter:
[0097] At a certain time point, the operation data packet of the smart meter 100 numbered 0123456789 is encrypted using encryption bit heartbeat encryption to generate an encrypted data packet. The encryption bit heartbeat encryption has a heartbeat encryption bit in the key, and the position of the heartbeat encryption bit randomly jumps based on the number data of the smart meter 100 and the decryption time data.
[0098] The operation data packet is numbered after being timestamped and stored in the buffer 1001 of the smart meter 100 for subsequent review;
[0099] Sending the interactive data packet to the central server 101;
[0100] The central server 101 parses the interactive data packet and obtains the number data 0123456789. The current time data is 12:10, AB is 20, and WXYZ is 1590. Then the preliminary format of the ciphertext is 1-5-9-0-2-0, where - represents five heartbeat encryption bits, the values of the two heartbeat encryption bits C are 0, D is 9, W and A add up to 3, then the position of the first heartbeat encryption bit is the third bit, Z and B add up to 0, then the position of the second heartbeat encryption bit is the fifth bit, so the final key text is: 15900290. The decryption key data is input into the interactive data packet to complete the decryption and obtain the running data packet.
[0101] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data security protection method for a smart meter, characterized in that: The following steps are involved: Step 1, the operation data packet of the smart meter (100) is encrypted at set intervals using encryption bit heartbeat encryption to generate an encrypted data packet, wherein the encryption bit heartbeat encryption is provided with a heartbeat encryption bit in the key, and the position of the heartbeat encryption bit is calculated based on the serial number data and the decryption time data of the smart meter (100); Step 2, numbering the running data packets and storing them in the buffer (1001) of the smart meter (100); Step 3, sending the interactive data packet to the central server (101); Step 4, the central server (101) parses the interactive data packet to obtain numbering data, collects time data generated by the interactive data packet to obtain decryption time data, first generates position data of the heartbeat encryption bit based on the numbering data and the decryption time data, then generates key data based on the numbering data and the decryption time data, and obtains the heartbeat encryption bit, places the heartbeat encryption bit in the correct position in the key data based on the position data to generate decryption key data, inputs the decryption key data into the interactive data packet to complete decryption, and obtains the running data packet; Step 5, at set intervals, the central server (101) generates a check number data based on a random number algorithm, the smart meter (100) corresponding to the check number data is the smart meter to be checked, the last decrypted running data packet of the smart meter to be checked is collected as the data packet to be checked, the data packet to be checked is encrypted for check and then transmitted to the smart meter to be checked; Step 6, the smart meter to be checked analyzes and decrypts the data packet to be checked, and performs consistency analysis with the running data packet with the corresponding number stored in the buffer (1001). If it is judged to be completely consistent, it will feedback to the central server (101) that the check is qualified, otherwise it will feedback that the check is unqualified; In step 1, the encryption bit heartbeat encryption includes the following steps: The ciphertext includes numbered data bits, decryption time bits and heartbeat encryption bits. Suppose the numbered data bits are WXYZ, the decryption time bits are AB, and the heartbeat encryption bits are CD. The combination of the ciphertext is WXYZAB. There is a heartbeat encryption bit between any two adjacent bits of WXYZAB. C and D are located at any two of the five heartbeat encryption bits. The position data of C and D is the position data of the heartbeat encryption bit.
2. The data security protection method for a smart meter according to claim 1 is characterized in that: The AB in the decrypted time part is associated with the last digit of the hour and minute of the system time of the central server (101).
3. The data security protection method for a smart meter according to claim 2 is characterized in that: Wherein W is the last digit of the sum of the first two digits of the tens-digit number of the smart meter (100), X is the last digit of the sum of the third and fourth digits of the tens-digit number of the smart meter (100), Y is the last digit of the sum of the fifth and sixth digits of the tens-digit number of the smart meter (100), Z is the last digit of the sum of the last four digits of the tens-digit number of the smart meter (100), C is the first digit of the tens-digit number of the smart meter (100), and D is the last digit of the tens-digit number of the smart meter (100).
4. The data security protection method for a smart meter according to claim 3 is characterized in that: In step 4, the method for generating the position data of the heartbeat encryption bit is: number the five encryption bits 1-5 respectively, first add W and A to get the mantissa, if the mantissa is 1-5, the position of the first heartbeat encryption bit is the encryption bit number corresponding to the mantissa; if the mantissa is 6-9, then the corresponding encryption bit numbers are 1-4 respectively, and if the mantissa is 0, the corresponding encryption bit number is 5; Z and B are added to get the mantissa, and the position of the second heartbeat encryption bit is calculated using the same method as the position of the first heartbeat encryption bit.
5. The data security protection method for a smart meter according to claim 4 is characterized in that: In step 5, the central server (101) generates the look-back number data based on the random number algorithm in the following way: the numbers of all the smart meters (100) form a random pool, and the multiple numbers in the random pool are renumbered according to Arabic numbers and recorded as , where N is the total number of smart meters (100), 0.05N random numbers are generated every hour based on a random number algorithm, and the numbers of the smart meters (100) corresponding to the 0.05N random numbers are the back-check number data.
6. The data security protection method for a smart meter according to claim 5, characterized in that: In step 6, the consistency analysis method of the data packet to be checked is to first analyze the structure of the data packet, which includes the following information: Data packet unique ID information, timestamp information, meter reading information and hash value information; First, analyze and ensure whether the data packet to be checked and the running data packet have the same data structure. If it is judged to be, compare the timestamp information. If the comparison is successful, compare the hash value. If the comparison is successful, judge the consistency of the meter reading. If the items and values of the meter reading information are consistent, output a completely consistent judgment result, otherwise output a judgment result that the consistency is unqualified.
7. The data security protection method for a smart meter according to claim 6 is characterized in that: In step 6, the method for the smart meter to be checked to decrypt the data packet to be checked is the same as the method in step 4.
8. The data security protection system of the smart meter is characterized by: A data security protection method for a smart meter according to claim 7, wherein the data security protection system comprises a plurality of smart meters (100), a meter-side encryption and decryption module (1), a data analysis chip (2), a meter communication module (3), a central server (101) and a server-side encryption and decryption module (4). The meter-side encryption and decryption module (1) and the data analysis chip (2) are respectively connected to a cache (1001) of the smart meter (100), the cache (1001) is connected to a central server (101) via the meter communication module (3), and the server-side encryption and decryption module (4) is connected to the central server (101).
9. The data security protection system for smart electric meters according to claim 8, characterized in that: It also includes an audible and visual alarm (5), and the central server (101) controls the switching of the audible and visual alarm (5).
Citation Information
Patent Citations
Encryption processing for streaming media
EP1195968A2
Encryption key management system and encryption key management method
US20220069983A1