Power grid data transmission method and apparatus, electronic device, and storage medium

By adopting target encryption rules and segmentation rules in power grid data transmission and combining them with homomorphic encryption operation protocols, the privacy and security issues in power grid data transmission are solved and efficient data transmission is achieved.

WO2025185226A1PCT designated stage Publication Date: 2025-09-11HUBEI CENT CHINA TECH DEV OF ELECTRIC POWER

Patent Information

Application Number
PCT/CN2024/133685
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-04
Filing Date
2024-11-22
Publication Date
2025-09-11

AI Technical Summary

Technical Problem

Existing power grid data transmission technologies lack privacy and security, and have low transmission efficiency, which easily leads to increased communication costs and time.

Method used

The target encryption rules are used to encrypt the power grid data, the decryption rules are stored in the power grid control center, and the meter gateway is used to communicate with the smart meter. Combined with the homomorphic encryption operation protocol and the target segmentation rules, the power grid data is divided into multiple data segments and transmitted synchronously through the predetermined target channel.

Benefits of technology

It effectively ensures the privacy and security of power grid data, while improving transmission efficiency and reducing communication costs and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024133685_12092025_PF_FP_ABST
    Figure CN2024133685_12092025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a power grid data transmission method and apparatus, an electronic device, and a storage medium. The method is applied to an electricity meter gateway, and the electricity meter gateway is communicationally connected to a smart electricity meter and a power grid control center, respectively. The method comprises: acquiring power grid data collected by the smart electricity meter; using a target encryption rule to encrypt the power grid data so as to obtain target power grid encrypted data, wherein a target decryption rule corresponding to the target encryption rule is only stored in the power grid control center; according to a target segmentation rule, carrying out data segmentation on the target power grid encrypted data so as to obtain a plurality of power grid data segments; and on the basis of a predetermined target channel, synchronously transmitting the plurality of power grid data segments to the power grid control center. By using the embodiments of the present invention, the transmission efficiency of power grid data can be improved while ensuring the privacy and security of the power grid data.
Need to check novelty before this filing date? Find Prior Art

Description

Power grid data transmission method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 4, 2024, with application number 2024102398197 and application name “Power grid data transmission method, device, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present invention relates to the field of power grid information security technology, and in particular to a power grid data transmission method, device, electronic equipment and storage medium. Background Art

[0004] With the development of network technology and the development of new electricity meters, smart grids, as a new generation of power grids, are able to efficiently respond to power generation, transmission, and distribution needs and achieve flexible resource allocation. With their characteristics of maximizing asset utilization and optimizing service quality, they are gradually becoming the new power grid system to succeed traditional grids. However, with the development of complex services and the expansion of network scale, while applying technologies such as the Internet of Things and cloud computing to improve management and control capabilities and service quality, smart grids also need to address the risks posed by security vulnerabilities.

[0005] Among them, since power grid data is indirectly related to electricity bill settlement, if the data is maliciously tampered with during transmission or the identity of a legitimate user is impersonated by an illegal user, it may result in undercharging or overcharging of electricity bills, making it difficult to ensure fairness and justice in the settlement stage; secondly, power grid data involves user privacy information, and attackers may infer users' personal privacy, such as enterprise size and family size, through technologies such as data mining; more importantly, for the convenience of transmission, existing communication transmission technologies will divide communication information in order of size according to a fixed number of divisions, thereby obtaining multiple communication information blocks arranged in order from small to large, so that the communication information blocks can be transmitted to the receiving terminal in order from small to large. However, due to the characteristics of existing communication transmission technologies, if the previous communication information block has not been transmitted, the next communication information block cannot be transmitted, otherwise it is easy to cause bit errors, which greatly increases the communication cost and communication time of the smart grid.

[0006] Therefore, there is an urgent need for a method that can improve the transmission efficiency of power grid data while ensuring the privacy and security of power grid data. Summary of the Invention

[0007] The purpose of the embodiments of the present invention is to provide a power grid data transmission method, device, electronic device and storage medium to solve the technical problems of privacy, security and low transmission efficiency of power grid data in related technologies.

[0008] In a first aspect, an embodiment of the present invention provides a power grid data transmission method, which is applied to an electric meter gateway, wherein the electric meter gateway is respectively communicatively connected to a smart meter and a power grid control center, and the method includes:

[0009] Obtain grid data collected by smart meters;

[0010] Using a target encryption rule, the power grid data is encrypted to obtain target power grid encrypted data, and a target decryption rule corresponding to the target encryption rule is only stored in the power grid control center;

[0011] According to the target segmentation rule, data segmentation is performed on the target power grid encrypted data to obtain multiple power grid data segments;

[0012] Based on a predetermined target channel, a plurality of the grid data segments are synchronously transmitted to a grid control center.

[0013] In some embodiments, the target encryption rule includes a target encryption public key and a homomorphic encryption operation protocol. The step of encrypting the power grid data using the target encryption rule to obtain target power grid encrypted data includes:

[0014] Encrypting the power grid data according to the target encryption public key to obtain initial power grid encrypted data;

[0015] According to the homomorphic encryption operation protocol, the initial power grid encrypted data is homomorphically encrypted to obtain target power grid encrypted data.

[0016] In some embodiments, the target encryption public key includes a first public key, a second public key, a third public key, and a fourth public key. The step of encrypting the power grid data according to the target encryption public key to obtain initial power grid encrypted data includes:

[0017] performing encryption and identification processing on first data in the power grid data according to the first public key to obtain first power grid encrypted data and a first power grid identification; performing encryption and identification processing on second data in the power grid data according to the second public key to obtain second power grid encrypted data and a second power grid identification, wherein the first data and the second data are different types of data in the power grid data;

[0018] Encrypting the first correspondence information between the first grid identifier and the second grid identifier according to the third public key to obtain third grid encrypted data;

[0019] Encrypting the second correspondence information between the first grid identifier and the meter identifier of the smart meter according to the fourth public key to obtain fourth grid encrypted data;

[0020] The first power grid encrypted data, the second power grid encrypted data, the third power grid encrypted data and the fourth power grid encrypted data are used as initial power grid encrypted data.

[0021] In some embodiments, before the step of segmenting the target power grid encrypted data according to the target segmentation rule to obtain a plurality of power grid data segments, the method further includes:

[0022] Determining a target segmentation rule corresponding to the target power grid encrypted data according to the data volume of the target power grid encrypted data;

[0023] The step of performing data segmentation on the target power grid encrypted data according to the target segmentation rule to obtain multiple power grid data segments includes:

[0024] Determining the number of times to segment the target power grid encrypted data according to the target segmentation rule;

[0025] The target power grid encrypted data is divided into equal parts according to the number of divisions to obtain a plurality of power grid data segments with the same data length.

[0026] In some embodiments, before the step of synchronously transmitting the plurality of power grid data segments to a power grid control center based on a predetermined target channel, wherein the power grid control center stores a target decryption rule corresponding to the target encryption rule, the method further comprises:

[0027] Communication detection processing is performed on multiple communication channels between the electricity meter gateway and the power grid control center to determine a target channel from the multiple communication channels.

[0028] In some embodiments, the step of performing communication detection processing on multiple communication channels between the electricity meter gateway and the grid control center to determine a target channel from the multiple communication channels includes:

[0029] Taking each communication channel between the electricity meter gateway and the grid control center as a candidate channel, sending detection data to the grid control center through the candidate channel, and having the grid control center calculate a channel bit error rate of the candidate channel based on the detection data;

[0030] receiving a channel bit error rate fed back by the power grid control center through the candidate channel;

[0031] The candidate channel with the lowest channel bit error rate is used as the target channel.

[0032] In some embodiments, before the step of encrypting the power grid data using the target encryption rule to obtain target power grid encrypted data, the method further includes:

[0033] Performing identity authentication on the smart meter;

[0034] When the smart meter passes the identity authentication, sending an encryption rule acquisition request to the power grid control center, where the power grid control center pre-stores a plurality of public and private key pairs;

[0035] Receiving multiple encryption public keys and homomorphic encryption operation protocols returned by the power grid control center;

[0036] At least one encryption public key among the multiple encryption public keys is determined as a target encryption public key, and is used together with the homomorphic encryption operation protocol as a target encryption rule for the smart meter.

[0037] In a second aspect, an embodiment of the present invention provides a power grid data transmission device, which is applied to an electric meter gateway, wherein the electric meter gateway is respectively connected to a smart meter and a power grid control center for communication, and the device includes:

[0038] An acquisition module is used to obtain the power grid data collected by the smart meter;

[0039] An encryption module is used to encrypt the power grid data using a target encryption rule to obtain target power grid encrypted data, wherein a target decryption rule corresponding to the target encryption rule is only stored in the power grid control center;

[0040] a segmentation module, configured to segment the target power grid encrypted data according to a target segmentation rule to obtain a plurality of power grid data segments;

[0041] The transmission module is used to synchronously transmit the plurality of power grid data segments to a power grid control center based on a predetermined target channel.

[0042] In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned power grid data transmission methods when executing the computer program.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the above-mentioned power grid data transmission methods are implemented.

[0044] An embodiment of the present invention provides a power grid data transmission method, device, electronic device and storage medium. The method encrypts the power grid data collected by the smart meter by adopting a target encryption rule to obtain target power grid encrypted data. The target decryption rule corresponding to the target encryption rule is only stored in the power grid control center. Since the meter gateway only stores encryption rules but no decryption rules, even if the target power grid encrypted data in the meter gateway is leaked, the privacy and security of the power grid data can still be guaranteed; at the same time, by performing data segmentation on the target power grid encrypted data according to the target segmentation rule, multiple power grid data segments are obtained, and based on a predetermined target channel, the multiple power grid data segments can be synchronously transmitted to the power grid control center, effectively improving the transmission efficiency of the power grid data. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] FIG1 is a flow chart of a method for power grid data transmission provided by an embodiment of the present invention;

[0046] FIG2 is another flow chart of a method for transmitting power grid data according to an embodiment of the present invention;

[0047] FIG3 is a flow chart of a method for encrypting power grid data according to an embodiment of the present invention;

[0048] FIG4 is a schematic structural diagram of a power grid data transmission device provided by an embodiment of the present invention;

[0049] FIG5 is another structural diagram of a power grid data transmission device provided by an embodiment of the present invention;

[0050] FIG6 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention;

[0051] FIG7 is another schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0053] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0054] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0055] Among related technologies, with the development of network technology and the development of new electricity meters, smart grids, as a new generation of power grids, can efficiently respond to power generation, transmission, and distribution needs and achieve flexible resource allocation. With their characteristics of maximizing asset utilization and optimizing service quality, they are gradually becoming a new power grid system to succeed traditional power grids. However, with the development of complex services and the expansion of network scale, while applying various technologies such as the Internet of Things and cloud computing to improve management and control capabilities and service quality, smart grids also need to address the risks brought by security vulnerabilities.

[0056] Among them, since power grid data is indirectly related to electricity bill settlement, if the data is maliciously tampered with during transmission or the identity of a legitimate user is impersonated by an illegal user, it may result in undercharging or overcharging of electricity bills, making it difficult to ensure fairness and justice in the settlement stage; secondly, power grid data involves user privacy information, and attackers may infer users' personal privacy, such as enterprise size and family size, through technologies such as data mining; more importantly, for the convenience of transmission, existing communication transmission technologies will divide communication information in order of size according to a fixed number of divisions, thereby obtaining multiple communication information blocks arranged in order from small to large, so that the communication information blocks can be transmitted to the receiving terminal in order from small to large. However, due to the characteristics of existing communication transmission technologies, if the previous communication information block has not been transmitted, the next communication information block cannot be transmitted, otherwise it is easy to cause bit errors, which greatly increases the communication cost and communication time of the smart grid.

[0057] Therefore, there is an urgent need for a method that can improve the transmission efficiency of power grid data while ensuring the privacy and security of power grid data.

[0058] To address the technical issues in related technologies, an embodiment of the present invention provides a method for power grid data transmission, which is applied to an electric meter gateway, wherein the electric meter gateway is respectively connected to a smart meter and a power grid control center. Specifically, see FIG1 , which is a flow chart of a method for power grid data transmission according to an embodiment of the present invention, comprising steps 101 to 104;

[0059] Step 101: Obtain grid data collected by a smart meter.

[0060] In this embodiment, the smart meter provided in this embodiment is mainly used to collect user electricity usage data and generate grid data for transmission to the meter gateway. The grid data provided in this embodiment may include user electricity usage information, electricity usage time information, and other electricity-related information.

[0061] Specifically, the number of smart meters provided in this embodiment can be one or more. When there are multiple smart meters, they can be smart meters corresponding to different users. Therefore, the grid data collected by the smart meters includes electricity consumption data of different users.

[0062] Step 102: encrypt the power grid data using target encryption rules to obtain target power grid encrypted data.

[0063] Among them, the target decryption rules corresponding to the target encryption rules provided in this embodiment are only stored in the power grid control center. The target encryption rules provided in this embodiment can be any encryption key to encrypt the power grid data, thereby improving the privacy and security of the power grid data. Specifically, the target encryption rules provided in this embodiment are mainly stored in the meter gateway, and are used to encrypt the power grid data transmitted by the smart meter. By storing the target encryption rules in the meter gateway and the target decryption rules corresponding to the target encryption rules in the power grid control center, it can be ensured that when the meter gateway is illegally attacked and data is leaked, the attacker cannot obtain the power grid data because there is no corresponding target decryption rule, which effectively ensures the privacy and security of the power grid data.

[0064] Step 103 : Segment the target power grid encrypted data according to the target segmentation rule to obtain a plurality of power grid data segments.

[0065] In related technologies, before transmitting communication information, the communication information is segmented to obtain sequentially arranged communication information blocks. Existing technologies usually use a fixed number of segmentation times, and for the convenience of transmission, the communication information is segmented in order of small to large according to the fixed number of segmentation times, thereby obtaining multiple communication information blocks arranged in order from small to large. In this way, the communication information blocks can be transmitted to the receiving terminal in order from small to large. However, in actual application scenarios, the communication information to be transmitted each time can be large or small. Communication information with a small amount of data does not need to be segmented too many times, while communication information with a large amount of data often needs to be segmented more times. In addition, if the communication information is transmitted in order from small to large, the next communication information block cannot be transmitted until the previous communication information block is fully transmitted, otherwise it is easy to cause bit errors.

[0066] Therefore, an embodiment of the present invention provides a target segmentation rule: setting the number of segmentations proportional to the amount of data corresponding to the target power grid encrypted data, that is, when the amount of data of the target power grid encrypted data is large, the number of segmentations increases; when the amount of data of the target power grid encrypted data is small, the number of segmentations is reduced accordingly. By adopting the target segmentation rule provided by the embodiment of the present invention, when the amount of data of the target power grid encrypted data is small, the number of segmentations can be reduced, the workload of the electric meter gateway is reduced, and the segmentation process is accelerated, thereby effectively improving the transmission rate of subsequent power grid data; when the amount of data of the target power grid encrypted data is large, the number of segmentations can be increased accordingly, and the data packet can be divided into more power grid data segments, so as to facilitate improving the transmission rate of each power grid data segment in the channel.

[0067] Step 104 : synchronously transmitting the plurality of power grid data segments to a power grid control center based on a predetermined target channel.

[0068] In this embodiment, in order to improve the transmission efficiency of power grid data, this embodiment can pre-determine the target channel for data transmission of power grid data, for example, the channel with the highest transmission rate among multiple communication channels between the meter gateway and the power grid control center is used as the target channel, and multiple power grid data segments are transmitted to the power grid control center through the target channel, thereby further improving the transmission efficiency of power grid data.

[0069] In some embodiments, to improve the privacy and security of power grid data, the target encryption rules provided in this embodiment may include a target encryption public key and a homomorphic encryption operation protocol. Specifically, please refer to Figure 2, which is another flowchart of the power grid data transmission method provided in an embodiment of the present invention. As shown in Figure 2, the power grid data transmission method provided in an embodiment of the present invention includes steps 201 to 205;

[0070] Step 201: Obtain grid data collected by a smart meter.

[0071] Step 202: encrypt the power grid data according to the target encryption public key to obtain initial power grid encrypted data.

[0072] The target encryption public key provided in this embodiment is generated by the grid control center. Specifically, the grid control center can generate a public-private key pair and then send only the public key from this pair to the grid gateway as the target encryption public key. Because data encrypted with a public key can only be decrypted with the corresponding private key, this embodiment of the present invention effectively ensures the privacy and security of grid data within the meter gateway and during transmission.

[0073] As an optional embodiment, before the grid control center sends the target encryption public key to the meter gateway, it needs to verify the identity information of the meter gateway to avoid sending the target encryption key to an unauthenticated meter gateway, thereby ensuring the security and legitimacy of the meter gateway. Furthermore, before performing encryption processing on the smart meter, the meter gateway also needs to verify the identity information of the smart meter to confirm that the smart meter is a registered meter and prove its security and legitimacy. Therefore, before step 202, the grid data transmission method provided in this embodiment may also include: authenticating the identity of the smart meter; if the smart meter passes the authentication, sending a request to the grid control center to obtain encryption rules, the grid control center pre-stored with multiple public-private key pairs; receiving multiple encryption public keys and homomorphic encryption operation protocols returned by the grid control center; determining at least one of the multiple encryption public keys as the target encryption public key, and using it together with the homomorphic encryption operation protocol as the target encryption rule for the smart meter.

[0074] Specifically, the identity authentication method may be to verify the ID information of the smart meter based on the identity information stored in the meter gateway, such as ID information. When the ID information is consistent, it can be determined that the identity authentication is successful.

[0075] In some embodiments, the number of target encryption public keys provided in this embodiment can be one or more. At the same time, in order to further improve the privacy and security of power grid data, the target encryption public keys provided in this embodiment can include a first public key, a second public key, a third public key, and a fourth public key. Specifically, please refer to Figure 3, which is a flow chart of a power grid data encryption method provided in an embodiment of the present invention. As shown in Figure 3, the power grid data encryption method provided in an embodiment of the present invention includes steps 301 to 305;

[0076] Step 301: encrypt and identify first data in the power grid data according to the first public key to obtain first power grid encrypted data and a first power grid identification.

[0077] Step 302: encrypt and identify the second data in the power grid data according to the second public key to obtain second power grid encrypted data and a second power grid identification.

[0078] In this embodiment, the first data and the second data provided in this embodiment are different types of data in the power grid data. Specifically, the data types of the power grid data provided in this embodiment can be classified according to the user's power consumption, the user's power consumption time, or the user's power consumption frequency.

[0079] As an optional embodiment, this embodiment can classify grid data based on the user's electricity usage frequency, thereby obtaining low-frequency grid data for low-frequency electricity usage time periods and high-frequency grid data for high-frequency electricity usage time periods. The power usage frequency can be determined by pre-setting a frequency threshold based on actual application requirements. Grid data greater than the frequency threshold is considered high-frequency grid data, while grid data less than the frequency threshold is considered low-frequency grid data. Specifically, the first data provided in this embodiment can be low-frequency grid data, and the second data can be high-frequency grid data.

[0080] The first grid identifier and the second grid identifier provided in this embodiment are unique identifiers corresponding to the first data and the second data, respectively, and are used to determine the specific location of the first data / the second data in the grid data. For example, the first grid identifier / the second grid identifier can be 0001-0002, where 0001-0002 represents the location between the first data and the second data in the grid data.

[0081] In addition, this embodiment classifies the power grid data into different types of first data and second data, and then encrypts the classified data separately, so as to hide the correlation between important data in the power grid data, such as the correlation between high-frequency electricity consumption data and low-frequency electricity consumption data, thereby preventing attackers from inferring users' personal privacy, such as enterprise size, family size, etc., through data mining and other technologies after attacking the meter gateway and causing data leakage, thereby further improving the privacy and security of power grid data.

[0082] Step 303: Encrypt the first correspondence information between the first grid identifier and the second grid identifier according to the third public key to obtain third grid encrypted data.

[0083] Step 304: encrypt the second correspondence information between the first grid identifier and the meter identifier of the smart meter according to the fourth public key to obtain fourth grid encrypted data.

[0084] Step 305: Use the first power grid encrypted data, the second power grid encrypted data, the third power grid encrypted data, and the fourth power grid encrypted data as initial power grid encrypted data.

[0085] The third and fourth encrypted grid data can be used as query information to help the grid control center identify the specific grid data corresponding to each user. Because the private key corresponding to the public key is only stored in the grid control center, the grid control center can only decrypt the encrypted grid data to determine which data belongs to the same user. This effectively ensures the privacy and security of each user's grid data.

[0086] As an optional embodiment, before the step of using the first power grid encrypted data, the second power grid encrypted data, the third power grid encrypted data and the fourth power grid encrypted data as the initial power grid encrypted data, this embodiment may also include: performing homomorphic encryption processing on the first power grid encrypted data, the second power grid encrypted data, the third power grid encrypted data and the fourth power grid encrypted data to further improve the privacy and security of the power grid data.

[0087] Step 203: Perform homomorphic encryption processing on the initial power grid encrypted data according to the homomorphic encryption operation protocol to obtain target power grid encrypted data.

[0088] Among them, the target decryption private key corresponding to the target encryption public key provided in this embodiment and the homomorphic encryption operation protocol are stored in the power grid control center.

[0089] Homomorphic encryption involves homomorphically encrypting the original data, performing specific operations on the resulting encrypted data, and then homomorphically decrypting the result. The resulting plaintext is equivalent to the data obtained by directly performing the same calculation on the original plaintext data. Homomorphic encryption differs from general encryption schemes in that they focus on data storage security, while homomorphic encryption focuses on data processing security. Homomorphic encryption provides a way to process encrypted data, meaning that others can process the encrypted data without leaking any of the original content. After the data is processed, it can be decrypted to obtain the result of the same processing on the original data.

[0090] Therefore, after this embodiment uses the target encryption public key to encrypt the power grid data to obtain the initial power grid encrypted data, it continues to use the homomorphic encryption operation protocol to perform homomorphic encryption on the initial power grid encrypted data, which can further improve the privacy and security of the power grid data.

[0091] Specifically, the homomorphic encryption operation protocol provided in this embodiment may include multiple operation protocols, such as an additive homomorphic encryption operation protocol, a multiplicative homomorphic encryption operation protocol, and a fully homomorphic encryption operation protocol. As long as the homomorphic encryption operation protocol can ensure that the plaintext obtained after homomorphic decryption is equivalent to the data result obtained by directly performing the same calculation on the original plaintext data, no specific limitation is made here.

[0092] Step 204 : Segment the target power grid encrypted data according to the target segmentation rule to obtain a plurality of power grid data segments.

[0093] In this embodiment, before the step of segmenting the target power grid encrypted data according to the target segmentation rule to obtain a plurality of power grid data segments, the power grid data transmission method provided in this embodiment may further include: determining a target segmentation rule corresponding to the target power grid encrypted data based on the data volume of the target power grid encrypted data. The step of segmenting the target power grid encrypted data according to the target segmentation rule to obtain a plurality of power grid data segments provided in this embodiment may include: determining a number of segmentation times for the target power grid encrypted data according to the target segmentation rule; and segmenting the target power grid encrypted data into equal parts according to the number of segmentation times to obtain a plurality of power grid data segments of equal length.

[0094] By dividing the target power grid encrypted data into multiple equal power grid data segments, there is no need to transmit them in sequence, and there is no need to wait for the previous power grid data segment to be transmitted before the next power grid data segment can be transmitted. Therefore, indiscriminate synchronous transmission can be achieved, further improving the transmission efficiency of power grid data.

[0095] As an optional embodiment, in order to further improve the transmission efficiency of power grid data, before the step of performing data segmentation on the target power grid encrypted data according to the target segmentation rule to obtain multiple power grid data segments, the power grid data transmission method provided by this embodiment may also include: determining the target segmentation rule corresponding to the target power grid encrypted data according to the time series of the target power grid encrypted data.

[0096] Among them, the time series of the target power grid encrypted data may include a first time series segment and a second time series segment. Exemplarily, the time series of the target power grid encrypted data may be the time series of the power grid data within a preset time period, and the first time series segment may be the user's power consumption time series segment, such as the power consumption time series segment corresponding to when the power consumption is greater than the preset power consumption value; the second time series segment may be the user's non-power consumption time series segment, such as the non-power consumption time series segment corresponding to when the power consumption is not greater than the preset power consumption value. Specifically, the preset power consumption value may be 0, or it may be any power consumption value, as long as the power consumption value is the minimum power consumption value in the power grid data, and no specific limitation is made here.

[0097] In this way, multiple segmentation points in the target power grid encrypted data can be determined based on the first time series segment and the second time series segment, and the multiple segmentation points can be used as target segmentation rules. Therefore, when the target power grid encrypted data is subsequently segmented according to the target segmentation rules, the target power grid encrypted data can be segmented into the first time series segment and the second time series segment using the multiple segmentation points to obtain multiple power grid data segments. Each power grid data segment corresponds to power grid data of one first time series segment or one second time series segment.

[0098] In this embodiment, the step of performing data segmentation on the target power grid encrypted data according to the target segmentation rule to obtain multiple power grid data segments provided in this embodiment may include: performing data segmentation on the target power grid encrypted data according to the multiple segmentation points to obtain multiple initial power grid data segments; selecting any one initial power grid data segment from the multiple initial power grid data segments that are all second time series segments as the first power grid data segment, and using the specific time information corresponding to all the second time series segments as the second power grid data segment; and using each initial power grid data segment belonging to the first time series segment as the third power grid data segment.

[0099] Optionally, in this embodiment, the initial power grid data segment with the smallest data volume may be selected from a plurality of initial power grid data segments that are all second time series segments as the first power grid data segment, thereby reducing the amount of data that needs to be transmitted subsequently.

[0100] Exemplarily, the first time series segment may be the electricity usage time series segment corresponding to when the electricity usage is greater than 0, such as 8:00-12:00, 14:00-17:00, 20:00-24:00; the second time series segment may be 24:00-8:00, 12:00-14:00, 17:00-20:00. At this time, the segmentation points in the target power grid encrypted data can be determined based on these time periods, so that the target power grid encrypted data can be segmented according to the first time series segment and the second time series segment, and initial power grid data segments corresponding to the time series segments of 8:00-12:00, 14:00-17:00, 20:00-24:00, 24:00-8:00, 12:00-14:00, and 17:00-20:00 are obtained. Then, any initial power grid data segment is selected from the time series segments of 24:00-8:00, 12:00-14:00, and 17:00-20:00, for example, the initial power grid data segment with the smallest data volume (the initial power grid data segment corresponding to 12:00-14:00) is used as the first power grid data segment, the specific time information of 24:00-8:00, 12:00-14:00, and 17:00-20:00 is used as the second power grid data segment, and each initial power grid data segment belonging to the first time series segment (the initial power grid data segment corresponding to 8:00-12:00, 14:00-17:00, and 20:00-24:00) is used as the third power grid data segment.

[0101] In this way, by selecting only one initial grid data segment from multiple initial grid data segments that are all second time series segments as the first grid data segment for subsequent transmission, the number of grid data segments that need to be transmitted can be effectively reduced, thereby improving the transmission efficiency of grid data.

[0102] As an optional embodiment, the time series of the target power grid encrypted data provided in this embodiment is not limited to the two time series segments defined in the above embodiment, but may also include more time series segments, each of which may correspond to a specific power consumption value. In this way, more identical power grid data to be transmitted can be converted into a single power grid data segment for transmission, further reducing the number of power grid data segments that need to be transmitted subsequently, effectively improving the transmission efficiency of power grid data.

[0103] To ensure that multiple grid data segments can be synchronously transmitted to the grid control center, thereby improving grid data transmission efficiency, this embodiment can also limit the data length of each grid data segment obtained above so that all grid data segments maintain the same data length. For example, the longest data length among all grid data segments can be used as the target value, and then a preset value, such as 0, can be added after the other grid data segments to ensure that the data length of each grid data segment reaches the target value. In this way, all grid data segments can be synchronously transmitted to the grid control center, effectively improving grid data transmission efficiency.

[0104] Step 205: Synchronously transmit the plurality of power grid data segments to a power grid control center based on a predetermined target channel.

[0105] In some embodiments, in order to determine a target channel with a high transmission rate to improve the transmission efficiency of power grid data, before the step of synchronously transmitting multiple power grid data segments to the power grid control center based on a predetermined target channel, and the power grid control center storing a target decryption rule corresponding to the target encryption rule, the power grid data transmission method provided in this embodiment may also include: performing communication detection processing on multiple communication channels between the electric meter gateway and the power grid control center to determine the target channel from the multiple communication channels.

[0106] In existing communication information transmission technologies, transmission channel congestion often occurs, resulting in failure of communication information transmission. In an embodiment of the present invention, before the power grid data segment corresponding to the power grid data needs to be transmitted, the communication status of the channel can be detected first to avoid the situation where the power grid data segment transmission fails due to transmission channel congestion, and the increase in the number of transmissions due to transmission failure is eliminated, thereby increasing the transmission time of the power grid data. Therefore, the embodiment provided by the present invention can reduce the transmission cost and the transmission time of the power grid data, thereby improving the transmission efficiency of the power grid data.

[0107] Preferably, an embodiment of the present invention provides a channel communication detection method: by sending detection signals to the power grid control center on different channels respectively, the channel that can receive the confirmation signal returned by the power grid control center is used as the target channel; in order to further save time, the channel corresponding to the first confirmation signal received is used as the target channel.

[0108] By using the channel corresponding to the first received confirmation signal as the target channel, the failure of power grid data transmission caused by transmission channel congestion can be avoided and the transmission time of power grid data can be further shortened.

[0109] As a preferred embodiment, the step of performing communication detection processing on multiple communication channels between the electricity meter gateway and the grid control center to determine the target channel from the multiple communication channels provided in this embodiment can specifically be: taking each communication channel between the electricity meter gateway and the grid control center as a candidate channel, sending detection data to the grid control center through the candidate channel, and allowing the grid control center to calculate the channel bit error rate of the candidate channel based on the detection data; receiving the channel bit error rate fed back by the grid control center through the candidate channel; and taking the candidate channel with the lowest channel bit error rate as the target channel.

[0110] In this embodiment, the detection data is used by the power grid control center to calculate the channel bit error rate of the channel, wherein the channel bit error rate is calculated by dividing the bit error in transmission by the total number of transmitted codes and multiplying the result by 100%, thereby obtaining the channel bit error rate of each candidate channel, and the channel bit error rate of each candidate channel is fed back to the meter gateway, so that the meter gateway can select the channel with the lowest channel bit error rate as the target channel, thereby improving the transmission efficiency of communication information.

[0111] In another embodiment, the communication status of multiple channels between the electricity meter gateway and the power grid control center is detected to determine the target channel from the multiple channels, which further includes: taking each of the multiple channels as a candidate channel, sending a detection signal to the power grid control center through the candidate channel, and recording the sending time; receiving a confirmation signal fed back by the power grid control center through the candidate channel, and recording the receiving time; and taking the candidate channel with the smallest difference between the receiving time and the sending time as the target channel.

[0112] In order to further shorten the transmission time of power grid data, an embodiment of the present invention performs communication rate detection on multiple available channels before allocating the power grid data segments corresponding to the power grid data to channels for transmission, so as to determine the channel with the fastest communication rate, and uses the channel with the fastest communication rate as the target channel.

[0113] In an embodiment of the present invention, since there may be multiple target channels to choose from during the transmission of power grid data, in order to shorten the transmission time of power grid data, a target channel with the fastest transmission rate is selected from the multiple target channels to be selected, which can greatly reduce the transmission time required for power grid data.

[0114] Although sending detection signals to multiple selectable channels can identify multiple target channels that can receive the confirmation signals, and each of these multiple target channels can transmit power grid data to the power grid control center without congestion, the transmission rates of each target channel still vary. Therefore, the present invention provides a method for identifying the target channel with the highest transmission rate: the same detection data is sent to the power grid control center via each target channel, the time required to complete the transmission of the detection data on each target channel is calculated, and then the channel with the shortest transmission time is selected from the multiple target channels, and the channel with the shortest transmission time is used as the target channel for the final power grid data transmission. Using this method, the optimal target channel can be identified, and power grid data can be transmitted through the optimal target channel, which can further shorten the time required for power grid data transmission.

[0115] It should be noted that detection signals can also be sent to the power grid control center through multiple candidate channels at the same time, and the candidate channel corresponding to the confirmation signal first received from the power grid control center can be used as the target channel. The optimal target channel can be determined without calculating the receiving time and sending time, further shortening the transmission time of the power grid data.

[0116] As an optional embodiment, in order to improve the efficiency of power grid data transmission while also improving the security of power grid data transmission, this embodiment may also determine a target channel from multiple candidate channels based on the channel stability evaluation values ​​of each candidate channel. Specifically, before the step of synchronously transmitting the multiple power grid data segments to the power grid control center based on the predetermined target channel, wherein the power grid control center stores a target decryption rule corresponding to the target encryption rule, the power grid data transmission method provided by this embodiment may also include: determining the channel stability evaluation values ​​of the multiple candidate channels between the meter gateway and the power grid control center; and determining the candidate channel with the largest channel stability evaluation value as the target channel.

[0117] Among them, the steps provided in this embodiment for determining the channel stability evaluation values ​​of multiple candidate channels between the electricity meter gateway and the power grid control center can be: respectively obtaining the channel attribute information of each candidate channel between the electricity meter gateway and the power grid control center; based on the channel attribute information, the channel stability coefficient corresponding to the channel attribute information, and the preset channel stability evaluation algorithm, calculating the channel stability evaluation value of each candidate channel.

[0118] In this embodiment, the channel stability coefficient corresponding to the channel attribute information provided in this embodiment is the degree of influence on the stability (transmission efficiency and security) of the candidate channel. A stability test experiment can be conducted on the candidate channel using a control variable method to determine the degree of influence of different channel attribute information on the stability of the candidate channel.

[0119] Optionally, the channel attribute information provided in this embodiment may include channel bandwidth information S1, signal-to-noise ratio information S2, communication distance information S3, and transmission rate information S4. The channel bandwidth information S1 indicates the available bandwidth for communication between the meter gateway and the grid control center, which determines the amount of data that can be transmitted and the communication rate; the signal-to-noise ratio information S2 measures the ratio between the communication signal and noise (interference); a higher signal-to-noise ratio can improve communication quality and stability; the communication distance information S3 indicates the communication distance between the meter gateway and the grid control center; and the transmission rate information S4 indicates the data transmission speed on the communication channel.

[0120] In this embodiment, the channel stability evaluation algorithm provided by this embodiment may be:

[0121] Among them, P is the channel stability evaluation value of the candidate channel, Q1, Q2, Q3, and Q4 are the channel stability coefficients corresponding to the channel bandwidth information S1, signal-to-noise ratio information S2, communication distance information S3, and transmission rate information S4, respectively, and Q1+Q2+Q3+Q4=3.57, Q1>Q2>Q3>Q4>0, e is a constant, and K is a constant correction coefficient. The K can be customized according to actual needs, and the optional K=1.57.

[0122] The channel stability assessment algorithm provided in the above embodiment can be used to assess the channel stability of each candidate channel to obtain a channel stability assessment value for each candidate channel. This allows the candidate channel with the highest channel stability assessment value to be selected as the target channel, allowing grid data to be transmitted through the target channel. This effectively ensures the stability of grid data transmission, thereby simultaneously guaranteeing both transmission efficiency and security.

[0123] In some embodiments, there is a situation where the transmission of power grid data is interrupted, that is, the communication connection between the meter gateway and the power grid control center is interrupted. When the communication connection is interrupted and reconnected, the meter gateway will retransmit the power grid data segments that were not fully transmitted when the communication connection was interrupted to the power grid control center, thereby completing the purpose of data retransmission. However, the first data sent during data retransmission is the data in the power grid data segment that was not fully transmitted. This data may be part of the data in the original power grid data segment. That is, when the communication connection was interrupted, the meter gateway had already transmitted part of the data in a single power grid data segment. Therefore, when retransmitting data, the data length of the first data sent by the meter gateway is different from the data length of the remaining unsent power grid data segments. Therefore, it can only transmit data with a small amount of data first, and then transmit the remaining data with a larger amount of data. In this way, the purpose of synchronous transmission cannot be achieved, and the transmission efficiency of power grid data in the case of transmission interruption is reduced.

[0124] In order to solve this technical problem, in one embodiment, when the communication connection between the electric meter gateway and the power grid control center is interrupted, the target data length of the unsent data corresponding to the target power grid data segment in the current transmission process can be obtained, and the remaining power grid data segments that have not been transmitted can be segmented according to the target data length to divide the remaining power grid data segments that have not been transmitted into target data lengths. Specifically, the remaining power grid data segments that have not been transmitted can be merged in sequence, and then the merged data can be divided into equal parts according to the target data length. If the length of the remaining last data segment is less than the target data length, it can be compensated, for example, by adding 0 after the data segment so that the data length of the data segment reaches the target data length. In this way, when the communication connection is re-established between the electric meter gateway and the power grid control center, these power grid data segments with the same length can be synchronously transmitted again, thereby ensuring the efficiency of data retransmission, thereby improving the transmission efficiency of power grid data in the case of transmission interruption.

[0125] However, the reasons for the interruption of the communication connection between the meter gateway and the grid control center include equipment factors and environmental factors. The equipment factor may be a fault in the communication module of the meter gateway and / or the grid control center or other modules that affect the communication connection, resulting in a fixed-frequency interruption of the communication connection. For example, at a specific time, the meter gateway and the grid control center will be interrupted and restored for a specific length of time; the environmental factor may be external factors such as power outages and network disconnections, resulting in no fixed-frequency interruption between the meter gateway and the grid control center. Therefore, when it is detected that the cause of the communication interruption between the meter gateway and the grid control center is an environmental factor, the data retransmission method provided in the above embodiment can be referred to to improve the transmission efficiency of the grid data in the case of transmission interruption.

[0126] When it is detected that the communication interruption between the meter gateway and the grid control center is caused by equipment factors, a historical communication interruption information table can be obtained. Based on the historical communication interruption information table, the communication interruption duration, number of interruptions, and minimum communication connection duration within a future preset time period, such as the next 1 hour, 12 hours, or 24 hours, can be determined. Then, based on the total amount of grid data segments remaining untransmitted at the time of the communication interruption, the minimum communication connection duration of the communication connection process closest to the current one is determined. The target amount of data that can be transmitted in the target channel within the minimum communication connection duration is determined. Then, based on the target amount of data, the remaining untransmitted grid data segments are segmented to divide the remaining untransmitted grid data segments into equal portions with a data length corresponding to the target amount of data. In this way, after the next communication connection, all grid data segments can be synchronously transmitted to the grid control center, completing the transmission of all grid data segments, avoiding the occurrence of another communication interruption and increasing the transmission time of grid data.

[0127] In summary, an embodiment of the present invention provides a method for transmitting power grid data. The method is applied to an electric meter gateway, which is respectively connected to a smart meter and a power grid control center. The method includes obtaining power grid data collected by the smart meter, encrypting the power grid data using a target encryption rule to obtain target power grid encrypted data, wherein the target decryption rule corresponding to the target encryption rule is only stored in the power grid control center, and the target power grid encrypted data is segmented according to the target segmentation rule to obtain multiple power grid data segments. The multiple power grid data segments are synchronously transmitted to the power grid control center based on a predetermined target channel. By adopting the embodiment of the present invention, the transmission efficiency of power grid data can be improved while ensuring the privacy and security of power grid data.

[0128] According to the method described in the above embodiment, this embodiment will be further described from the perspective of a power grid data transmission device. The power grid data transmission device can be implemented as an independent entity or integrated into an electronic device, such as a terminal. The terminal can include a mobile phone, a tablet computer, etc.

[0129] To solve the same technical problem, an embodiment of the present invention further provides a power grid data transmission device, which is applied to an electric meter gateway, wherein the electric meter gateway is respectively connected to a smart meter and a power grid control center. Specifically, referring to FIG4 , FIG4 is a schematic structural diagram of a power grid data transmission device according to an embodiment of the present invention. As shown in FIG4 , the power grid data transmission device 400 according to an embodiment of the present invention includes: an acquisition module 401, an encryption module 402, a segmentation module 403, and a transmission module 404;

[0130] The acquisition module 401 is used to acquire the grid data collected by the smart meter;

[0131] An encryption module 402 is configured to encrypt the power grid data using a target encryption rule to obtain target power grid encrypted data, wherein a target decryption rule corresponding to the target encryption rule is stored only in the power grid control center;

[0132] A segmentation module 403 is configured to segment the target power grid encrypted data according to a target segmentation rule to obtain a plurality of power grid data segments;

[0133] The transmission module 404 is configured to synchronously transmit the plurality of power grid data segments to a power grid control center based on a predetermined target channel.

[0134] In some embodiments, the target encryption rules provided in this embodiment may include a target encryption public key and a homomorphic encryption operation protocol. The encryption module 402 is specifically used to: encrypt the power grid data according to the target encryption public key to obtain initial power grid encrypted data; and homomorphically encrypt the initial power grid encrypted data according to the homomorphic encryption operation protocol to obtain target power grid encrypted data.

[0135] In some embodiments, the target encryption public key provided in this embodiment may include a first public key, a second public key, a third public key and a fourth public key, and the encryption module 402 is specifically used to: encrypt and identify the first data in the power grid data according to the first public key to obtain first power grid encrypted data and a first power grid identifier; encrypt and identify the second data in the power grid data according to the second public key to obtain second power grid encrypted data and a second power grid identifier, where the first data and the second data are different types of data in the power grid data; encrypt the first correspondence information between the first power grid identifier and the second power grid identifier according to the third public key to obtain third power grid encrypted data; encrypt the second correspondence information between the first power grid identifier and the meter identifier of the smart meter according to the fourth public key to obtain fourth power grid encrypted data; and use the first power grid encrypted data, the second power grid encrypted data, the third power grid encrypted data and the fourth power grid encrypted data as initial power grid encrypted data.

[0136] In some embodiments, refer to FIG5 , which is another structural diagram of a power grid data transmission device provided in an embodiment of the present invention. As shown in FIG5 , the power grid data transmission device 400 provided in this embodiment may further include: a first determination module 405 , a second determination module 406 , and an authentication module 407 ;

[0137] The first determining module 405 is configured to determine a target segmentation rule corresponding to the target power grid encrypted data according to the data volume of the target power grid encrypted data.

[0138] Specifically, the segmentation module 403 provided in this embodiment is specifically used to: determine the number of times the target power grid encrypted data is segmented according to the target segmentation rule; and divide the target power grid encrypted data into equal parts according to the number of segmentations to obtain multiple power grid data segments with the same data length.

[0139] The second determining module 406 is configured to perform communication detection processing on a plurality of communication channels between the electricity meter gateway and the grid control center, so as to determine a target channel from the plurality of communication channels.

[0140] Specifically, the second determination module 406 is specifically used to: use each communication channel between the electric meter gateway and the power grid control center as a candidate channel, send detection data to the power grid control center through the candidate channel, and enable the power grid control center to calculate the channel bit error rate of the candidate channel based on the detection data; receive the channel bit error rate fed back by the power grid control center through the candidate channel; and use the candidate channel with the lowest channel bit error rate as the target channel.

[0141] The authentication module 407 is used to perform identity authentication on the smart meter; when the smart meter passes the identity authentication, it sends a request for obtaining encryption rules to the power grid control center, and the power grid control center pre-stores multiple public-private key pairs; receives multiple encryption public keys and homomorphic encryption operation protocols returned by the power grid control center; determines at least one encryption public key among the multiple encryption public keys as the target encryption public key, and uses it together with the homomorphic encryption operation protocol as the target encryption rule of the smart meter.

[0142] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also be found in the beneficial effects in the previous method embodiments, which will not be repeated here.

[0143] In addition, please refer to Figure 6, which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device can be a mobile terminal such as a smartphone, tablet computer, etc. As shown in Figure 6, electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.

[0144] The processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or loading applications stored in the memory 602 and calling data stored in the memory 602, it executes various functions of the electronic device 600 and processes data, thereby monitoring the electronic device 600 as a whole.

[0145] In this embodiment, the processor 601 in the electronic device 600 will load the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 will run the application stored in the memory 602, thereby implementing any step in the power grid data transmission method provided in the above embodiment.

[0146] The electronic device 600 can implement the steps in any embodiment of the power grid data transmission method provided in the embodiments of the present invention, and therefore can achieve the beneficial effects that can be achieved by any power grid data transmission method provided in the embodiments of the present invention. Please refer to the previous embodiments for details and will not be repeated here.

[0147] Please refer to Figure 7, which is another schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. As shown in Figure 7, a specific structural block diagram of an electronic device provided in an embodiment of the present invention is shown. This electronic device can be used to implement the power grid data transmission method provided in the above embodiment. The electronic device 700 can be a mobile terminal such as a smartphone or a laptop computer.

[0148] RF circuit 710 is used to receive and transmit electromagnetic waves, converting electromagnetic waves into electrical signals, thereby communicating with a communication network or other devices. RF circuit 710 may include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, memory, and the like. RF circuit 710 can communicate with various networks such as the Internet, an intranet, or a wireless network, or communicate with other devices via a wireless network. Such wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The wireless networks may utilize various communication standards, protocols, and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g, and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging, and short messaging, and any other suitable communication protocols, including those currently undeveloped.

[0149] The memory 720 can be used to store software programs and modules, such as the program instructions / modules corresponding to the power grid data transmission method in the above embodiment. The processor 780 executes various functional applications and power grid data transmission by running the software programs and modules stored in the memory 720.

[0150] The memory 720 may include a high-speed random access memory (RAM) and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 720 may further include a memory remotely located relative to the processor 780, and such remote memory may be connected to the electronic device 700 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0151] The input unit 730 can be used to receive digital or character input and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display or touchpad, can detect user touch operations on or near it (for example, operations performed by a user using a finger, stylus, or any other suitable object or accessory on or near the touch-sensitive surface 731) and drive corresponding connected devices according to a pre-set program. Optionally, the touch-sensitive surface 731 may include a touch detection device and a touch controller. The touch detection device detects the user's touch position and detects signals generated by the touch operation, transmitting the signals to the touch controller. The touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 780. It can also receive and execute commands from the processor 780. In addition, the touch-sensitive surface 731 can be implemented using various types of touch devices, including resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, and a joystick.

[0152] The display unit 740 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device 700. These graphical user interfaces can be composed of graphics, text, icons, videos, or any combination thereof. The display unit 740 may include a display panel 741. Optionally, the display panel 741 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Furthermore, the touch-sensitive surface 731 can cover the display panel 741. When the touch-sensitive surface 731 detects a touch operation on or near it, it transmits the information to the processor 780 to determine the type of touch event. The processor 780 then provides a corresponding visual output on the display panel 741 based on the type of touch event. Although the touch-sensitive surface 731 and the display panel 741 are shown in the figure as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to implement input and output functions.

[0153] The electronic device 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the electronic device 700 may also be configured with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.

[0154] Audio circuit 760, speaker 761, and microphone 762 provide an audio interface between the user and electronic device 700. Audio circuit 760 can convert received audio data into electrical signals and transmit them to speaker 761, which then converts them into sound signals for output. Microphone 762, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 760 and converted into audio data. The audio data is then processed by processor 780 and transmitted via RF circuit 710 to, for example, another terminal. Alternatively, the audio data can be output to memory 720 for further processing. Audio circuit 760 may also include an earphone jack to allow communication between external headphones and electronic device 700.

[0155] Electronic device 700 can help users receive requests, send information, etc. through a transmission module 770 (e.g., a Wi-Fi module), providing users with wireless broadband Internet access. Although transmission module 770 is shown in the figure, it is understandable that it is not a required component of electronic device 700 and can be omitted as needed without changing the essence of the invention.

[0156] Processor 780 is the control center of electronic device 700. It connects all components of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 720 and accessing data stored in memory 720, it executes various functions of electronic device 700 and processes data, thereby providing overall monitoring of the electronic device. Optionally, processor 780 may include one or more processing cores. In some embodiments, processor 780 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 780.

[0157] The electronic device 700 also includes a power supply 790 (e.g., a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 780 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 790 can also include any components such as one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0158] Although not shown, the electronic device 700 also includes a camera (such as a front camera and a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured so that one or more processors execute the one or more programs to implement any step of the power grid data transmission method provided in the above embodiment.

[0159] During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments and will not be repeated here.

[0160] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be accomplished through instructions, or by controlling related hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium storing a plurality of instructions that, when executed by a processor, can implement any step in the power grid data transmission method provided in the above embodiments.

[0161] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0162] Since the instructions stored in the storage medium can execute the steps in any embodiment of the power grid data transmission method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any power grid data transmission method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0163] The above is a detailed introduction to a power grid data transmission method, device, electronic device and storage medium provided by the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application. Moreover, for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A power grid data transmission method, characterized in that: Applied to an electric meter gateway, the electric meter gateway is communicatively connected to a smart electric meter and a power grid control center, and the method includes: Obtain grid data collected by smart meters; Using a target encryption rule, the power grid data is encrypted to obtain target power grid encrypted data, and a target decryption rule corresponding to the target encryption rule is only stored in the power grid control center; According to the target segmentation rule, data segmentation is performed on the target power grid encrypted data to obtain multiple power grid data segments; Based on a predetermined target channel, a plurality of the grid data segments are synchronously transmitted to a grid control center.

2. The method according to claim 1, wherein The target encryption rule includes a target encryption public key and a homomorphic encryption operation protocol. The step of using the target encryption rule to encrypt the power grid data to obtain target power grid encrypted data includes: Encrypting the power grid data according to the target encryption public key to obtain initial power grid encrypted data; According to the homomorphic encryption operation protocol, the initial power grid encrypted data is homomorphically encrypted to obtain target power grid encrypted data.

3. The method according to claim 2, wherein The target encryption public key includes a first public key, a second public key, a third public key, and a fourth public key. The step of encrypting the power grid data according to the target encryption public key to obtain initial power grid encrypted data includes: Performing encryption and identification processing on first data in the power grid data according to the first public key to obtain first power grid encrypted data and a first power grid identification; Performing encryption and identification processing on second data in the power grid data according to the second public key to obtain second power grid encrypted data and a second power grid identification, wherein the first data and the second data are different types of data in the power grid data; Encrypting the first correspondence information between the first grid identifier and the second grid identifier according to the third public key to obtain third grid encrypted data; Encrypting the second correspondence information between the first grid identifier and the meter identifier of the smart meter according to the fourth public key to obtain fourth grid encrypted data; The first power grid encrypted data, the second power grid encrypted data, the third power grid encrypted data and the fourth power grid encrypted data are used as initial power grid encrypted data.

4. The method according to claim 1, wherein Before the step of segmenting the target power grid encrypted data according to the target segmentation rule to obtain a plurality of power grid data segments, the method further includes: Determining a target segmentation rule corresponding to the target power grid encrypted data according to the data volume of the target power grid encrypted data; The step of performing data segmentation on the target power grid encrypted data according to the target segmentation rule to obtain multiple power grid data segments includes: Determining the number of times to segment the target power grid encrypted data according to the target segmentation rule; The target power grid encrypted data is divided into equal parts according to the number of divisions to obtain a plurality of power grid data segments with the same data length.

5. The method according to claim 1, wherein Before the step of synchronously transmitting the plurality of power grid data segments to a power grid control center based on a predetermined target channel, wherein the power grid control center stores a target decryption rule corresponding to the target encryption rule, the method further includes: Communication detection processing is performed on multiple communication channels between the electricity meter gateway and the power grid control center to determine a target channel from the multiple communication channels.

6. The method according to claim 5, wherein The step of performing communication detection processing on multiple communication channels between the electricity meter gateway and the grid control center to determine a target channel from the multiple communication channels includes: Taking each communication channel between the electricity meter gateway and the grid control center as a candidate channel, sending detection data to the grid control center through the candidate channel, and having the grid control center calculate a channel bit error rate of the candidate channel based on the detection data; receiving a channel bit error rate fed back by the power grid control center through the candidate channel; The candidate channel with the lowest channel bit error rate is used as the target channel.

7. The method according to claim 2, wherein Before the step of encrypting the power grid data using the target encryption rule to obtain target power grid encrypted data, the method further includes: Performing identity authentication on the smart meter; When the smart meter passes the identity authentication, sending an encryption rule acquisition request to the power grid control center, where the power grid control center pre-stores a plurality of public and private key pairs; Receiving multiple encryption public keys and homomorphic encryption operation protocols returned by the power grid control center; At least one encryption public key among the multiple encryption public keys is determined as a target encryption public key, and is used together with the homomorphic encryption operation protocol as a target encryption rule for the smart meter.

8. A power grid data transmission device, characterized in that: Applied to an electric meter gateway, the electric meter gateway is respectively connected to a smart meter and a power grid control center, and the device includes: An acquisition module is used to obtain the power grid data collected by the smart meter; An encryption module is used to encrypt the power grid data using a target encryption rule to obtain target power grid encrypted data, wherein a target decryption rule corresponding to the target encryption rule is only stored in the power grid control center; a segmentation module, configured to segment the target power grid encrypted data according to a target segmentation rule to obtain a plurality of power grid data segments; The transmission module is used to synchronously transmit the plurality of power grid data segments to a power grid control center based on a predetermined target channel.

9. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Communication information transmission method, device and equipment and storage medium

    CN112235082A

  • Homomorphic encryption-based security aggregation method and system for power utilization plans of smart power grid

    CN114139170A

  • Power grid data encryption transmission method, system and device and readable storage medium

    CN114422115A

  • Data processing method and device, electronic equipment and storage medium

    CN117390645A

  • Smart power grid multi-dimensional data self-adaptive efficient aggregation method, system and device supporting privacy protection and medium

    CN117560143A

Cited By

  • Power transmission data control method and system of smart power grid

    CN121192944A