Intelligent electric meter data transmission method and system
By using dynamically generated identifiers and communication keys in the A-IoT system for data encryption and decryption, the problem of smart meter data transmission security is solved and higher data transmission security is achieved.
Patent Information
- Application Number
- CN202510135216.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2025-03-07
AI Technical Summary
In the Environmental Internet of Things (A-IoT), how to ensure the transmission of smart meter data during the inventory of fast commands is a research question.
Send a paging message through a reader, including a mask and at least two identifiers generated randomly for paging a smart meter in an AIoT group. The smart meter determines the communication key based on its EPC and identifier, and uses the key to encrypt the metered data and sends it to the reader. The reader also uses a determined key to decrypt the ciphertext data to obtain the measurement data of the plaintext.
This method improves the security of data transmission by dynamically generating identifiers and using communication keys to encrypt and decrypt data, and prevents unauthorized data theft.
Smart Images

Figure CN119583989A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a smart meter data transmission method and system. Background Art
[0002] Ambient IoT (A-IoT) or ambient power-enabled IoT (Ambient Power-Enabled IoT, Passive IoT, P-IoT) is an emerging IoT technology architecture. Its core concept is to use the energy in the surrounding environment to drive network nodes, thereby reducing or eliminating the dependence on traditional batteries and other built-in power sources. This technology has great potential in sustainable development and green energy applications.
[0003] The devices of the environmental Internet of Things include: Passive terminals: These terminal devices can take many forms, such as tags or other terminals of any form. Their main feature is the ability to obtain energy from the environment and use this energy for data processing and communication. Reader: Readers are usually used as access network devices, which can be base stations, pole stations, micro base stations or macro stations. They are responsible for communicating with passive terminals, reading and writing data, and transmitting data to back-end servers. Servers are used to centrally process and analyze data collected from passive terminals to realize data storage, management and application.
[0004] A typical scenario is the inventory of fast commands. For example, the reader sends a read command while taking inventory, and the A-IoT device can report the data read according to the read command to the reader when reporting the Electronic Product Code (EPC). However, in this scenario, how to ensure the security of data transmission is a current research issue. Summary of the invention
[0005] The embodiment of the present invention provides a smart meter data transmission method and system to ensure data transmission security in the process of fast commands.
[0006] In order to achieve the above object, the present invention adopts the following technical scheme: In a first aspect, a smart meter data transmission method is provided, which is applied to a reader in AIoT, and the method comprises: during an inventory process, the reader sends a paging message, the paging message includes a mask and at least two identifiers randomly generated by the reader, the mask is used to page an AIoT group, and the AIoT devices in the AIoT group are smart meters; receiving a response message returned by the paged smart meter, the smart meter belongs to the AIoT group, the response message includes the EPC of the smart meter and ciphertext data of the smart meter; the reader determines a communication key according to the EPC of the smart meter and at least two identifiers; the reader decrypts the ciphertext data using the communication key to obtain plaintext metering data.
[0007] Optionally, the reader determines the communication key based on the EPC of the smart meter and at least two identifiers, including: the reader obtains a pre-configured root key of the smart meter from the reader locally based on the EPC of the smart meter, where the root key is a key shared by the reader and the smart meter; the reader derives the communication key based on the root key of the smart meter and at least two identifiers.
[0008] Optionally, the at least two identifiers include a first identifier and a second identifier, both of which are K-bit strings, where K is an integer greater than 5. The reader derives a communication key based on the root key of the smart meter and the at least two identifiers, including: the reader extracts bits a1 to a1+j1 of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0009] Optionally, the at least two identifiers include a first identifier, a second identifier and a third identifier, the first identifier, the second identifier and the third identifier are all K-bit strings, K is an integer greater than 5, and the reader derives the communication key based on the root key of the smart meter and the at least two identifiers, including: the reader determines, according to a preset rule, that the third identifier containing a specific string among the at least two identifiers is a pseudo-identifier, and the pseudo-identifier is an identifier that cannot be used for key derivation; in response to the third identifier being a pseudo-identifier, the reader extracts bits a1 to a1+j1 of the first identifier according to the preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0010] Optionally, the method also includes: the reader sends the EPC of the smart meter and plaintext metering data to a third-party server to which the smart meter belongs through the AIoTF that manages the reader.
[0011] In a second aspect, a smart meter data transmission method is provided, which is applied to an AIoT device in AIoT, where the AIoT device is a smart meter, and the method includes: during an inventory process, the smart meter receives a paging message from a reader, the paging message includes a mask and at least two identifiers randomly generated by the reader, the mask is used to page an AIoT group, and the smart meter belongs to the AIoT group; the smart meter determines a communication key based on the EPC of the smart meter and at least two identifiers; the smart meter uses the communication key to encrypt the plaintext metering data collected by the smart meter to obtain the ciphertext data of the smart meter; the smart meter sends a response message to the reader, the response message includes the EPC of the smart meter and the ciphertext data of the smart meter.
[0012] Optionally, the smart meter determines a communication key based on the EPC of the smart meter and at least two identifiers, including: the smart meter obtains a pre-configured root key of the smart meter from the smart meter locally based on the EPC of the smart meter, where the root key is a key shared by the reader and the smart meter; the smart meter derives a communication key based on the root key of the smart meter and at least two identifiers.
[0013] Optionally, the at least two identifiers include a first identifier and a second identifier, both of which are K-bit strings, where K is an integer greater than 5. The smart meter derives a communication key based on the root key of the smart meter and the at least two identifiers, including: the smart meter extracts bits a1 to a1+j1 of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0014] Optionally, the at least two identifiers include a first identifier, a second identifier and a third identifier, the first identifier, the second identifier and the third identifier are all K-bit strings, K is an integer greater than 5, and the smart meter derives a communication key based on the root key of the smart meter and the at least two identifiers, including: the smart meter determines, according to a preset rule, that the third identifier containing a specific string among the at least two identifiers is a pseudo-identifier, and the pseudo-identifier is an identifier that cannot be used for key derivation; in response to the third identifier being a pseudo-identifier, the smart meter extracts bits a1 to a1+j1 of the first identifier according to the preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0015] In a third aspect, an electronic device is provided, comprising: a processor and a memory; the memory is used to store a computer program, and when the processor executes the computer program, the electronic device executes the method described in the first aspect.
[0016] In a possible design solution, the electronic device described in the third aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the electronic device described in the third aspect to communicate with other electronic devices.
[0017] In an embodiment of the present invention, the electronic device described in the third aspect may be a terminal, or a chip (system) or other parts or components that may be arranged in the terminal, or a system including the terminal.
[0018] In a fourth aspect, a computer-readable storage medium is provided, comprising: a computer program or instructions; when the computer program or instructions are executed on a computer, the computer is caused to execute the method described in the first aspect.
[0019] In summary, during the inventory process, the paging message sent by the reader can carry a mask and at least two identifiers randomly generated by the reader; the mask is used to page the AIoT group, so that the reader can receive the response message returned by the paged smart meter (i.e., the AIoT device in the AIoT group), which includes the EPC of the smart meter and the ciphertext data of the smart meter. In this way, the reader determines the communication key based on the EPC of the smart meter and at least two identifiers, and uses the communication key to decrypt the ciphertext data to obtain the plaintext metering data. In other words, the reader generates at least two identifiers that can be used by the smart meter to encrypt the plaintext metering data for transmission, thereby ensuring the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of the architecture of an Internet of Things system provided by an embodiment of the present invention; Figure 2 A schematic diagram of a flow chart of a smart meter data transmission method provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The technical solution of the present invention will be described below in conjunction with the accompanying drawings.
[0022] In the embodiment of the present invention, "indication" may include direct indication and indirect indication, and may also include explicit indication and implicit indication. The information indicated by a certain information is called information to be indicated. In the specific implementation process, there are many ways to indicate the information to be indicated, such as but not limited to, the information to be indicated can be directly indicated, such as the information to be indicated itself or the index of the information to be indicated. The information to be indicated can also be indirectly indicated by indicating other information, wherein there is an association relationship between the other information and the information to be indicated. It is also possible to indicate only a part of the information to be indicated, while the other parts of the information to be indicated are known or agreed in advance. For example, the indication of specific information can also be achieved by means of the arrangement order of each information agreed in advance (for example, specified by the protocol), thereby reducing the indication overhead to a certain extent. At the same time, the common parts of each information can also be identified and indicated uniformly to reduce the indication overhead caused by indicating the same information separately.
[0023] In addition, the specific indication method may also be various existing indication methods, such as but not limited to the above-mentioned indication methods and various combinations thereof. The specific details of the various indication methods can refer to the prior art and will not be repeated herein. As can be seen from the above, for example, when it is necessary to indicate multiple information of the same type, different indication methods may be used for different information. In the specific implementation process, the desired indication method can be selected according to specific needs. The embodiment of the present invention does not limit the selected indication method. In this way, the indication method involved in the embodiment of the present invention should be understood to cover various methods that can enable the party to be indicated to obtain the information to be indicated.
[0024] It should be understood that the information to be indicated can be sent as a whole or divided into multiple sub-information and sent separately, and the sending period and / or sending time of these sub-information can be the same or different. The specific sending method is not limited in the embodiment of the present invention. Among them, the sending period and / or sending time of these sub-information can be pre-defined, for example, pre-defined according to a protocol, or can be configured by the sending end device by sending configuration information to the receiving end device.
[0025] "Pre-definition" or "pre-configuration" can be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in the device, and the embodiments of the present invention do not limit the specific implementation method. Among them, "saving" can mean saving in one or more memories. The one or more memories can be set separately or integrated in an encoder or decoder, a processor, or an electronic device. The one or more memories can also be partially set separately and partially integrated in a decoder, a processor, or an electronic device. The type of memory can be any form of storage medium, which is not limited by the embodiments of the present invention.
[0026] The "protocol" involved in the embodiments of the present invention may refer to a protocol family in the communication field, a standard protocol with a similar protocol family frame structure, or a related protocol applied in future systems, and the embodiments of the present invention do not specifically limit this.
[0027] In the embodiments of the present invention, descriptions such as "when...", "in the case of...", "if" and "if" all mean that the device will perform corresponding processing under certain objective circumstances, but do not limit the time, nor do they require the device to perform judgment actions when implementing, nor do they mean the existence of other limitations.
[0028] In the description of the embodiments of the present invention, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the embodiments of the present invention is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in the description of the embodiments of the present invention, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solution of the embodiments of the present invention, in the embodiments of the present invention, the words "first" and "second" are used to distinguish the same or similar items with basically the same functions and effects. Those skilled in the art will appreciate that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. At the same time, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0029] The network architecture and business scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.
[0030] To facilitate understanding of the embodiments of the present invention, first Figure 1 Taking the Internet of Things system shown in as an example, Figure 1 A schematic diagram of the architecture of an Internet of Things system applicable to a smart meter data transmission method provided in an embodiment of the present invention.
[0031] like Figure 1 As shown, the Internet of Things system may include: a reader and an AIoT device.
[0032] The reader can be a base station or a terminal. In the embodiment of the present application, the reader is a base station.
[0033] AIoT devices can be devices in the form of terminals, i.e., terminals. The terminal can be a terminal with transceiver functions, or a chip or chip system that can be set in the terminal. The terminal can also be called user equipment (UE), access terminal, subscriber unit, user station, mobile station (MS), mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device. The terminal in the embodiments of the present application can be a mobile phone, a cellular phone, a smart phone, a tablet computer, a wireless data card, a personal digital assistant (PDA), a wireless modem, a handset, a laptop computer, a machine type communication (MTC) terminal, a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a vehicle-mounted terminal, a road side unit (RSU) with terminal function, etc. The terminal of the present application may also be a vehicle-mounted module, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit built into a vehicle as one or more components or units. Alternatively, the terminal may also be customer-premises equipment (CPE).
[0034] Figure 2 A flow chart of a method provided by an embodiment of the present invention. This smart meter data transmission method is applicable to the above-mentioned Internet of Things system and involves the interaction between devices in the above-mentioned Internet of Things system. The specific process is as follows: S201, during the inventory process, the reader sends a paging message, and the smart meter receives the paging message from the reader.
[0035] The paging message includes a mask and at least two identifiers randomly generated by the reader. The mask is used to page the AIoT group, such as a specific character common to the EPC of all devices in the AIoT group, such as XX110Y15. That is, when a device in the group receives the paging message and determines that the mask contains the specific character, it needs to respond and execute the subsequent methods of this application. The AIoT devices in the AIoT group are smart meters.
[0036] At least two identifiers include a first identifier and a second identifier, and the first identifier and the second identifier are both K-bit strings, where K is an integer greater than 5. That is, each time the reader paging, i.e., executing S201, can randomly generate two strings of fixed length, length K, to ensure that the encrypted keys are different each time. Alternatively, at least two identifiers include a first identifier, a second identifier, and a third identifier, and the first identifier, the second identifier, and the third identifier are all K-bit strings. Among them, the first identifier and the second identifier can refer to the above and will not be repeated. The third identifier is a pseudo-identifier, which is an identifier that cannot be used for key derivation. For example, the third identifier contains a specific string, such as the first 5 / last 5 / middle preset positions of the third identifier are fixed values, such as XX118Y, and the third identifier contains a specific string, which means that it is a pseudo-identifier. The reader can be similar to the first identifier / second identifier, first randomly generate a string of length K, and then replace the first 5 / last 5 / middle preset positions of the continuous 5 characters with fixed values.
[0037] S202: The smart meter determines a communication key according to the EPC of the smart meter and at least two identifiers.
[0038] The smart meter in S202 belongs to the AIoT group. The smart meter determines that the mask carries specific characters and is paging a device in the AIoT group, that is, the smart meter itself is also paged, so the smart meter executes S202.
[0039] For example, the smart meter obtains a pre-configured root key of the smart meter from the local smart meter according to the EPC of the smart meter, and the root key is a key shared by the reader and the smart meter. The smart meter derives a communication key according to the root key of the smart meter and at least two identifiers. For example, in the case where the at least two identifiers include a first identifier and a second identifier, the smart meter extracts the a1th to a1+j1th bits of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts the a2th to a2+j2th bits of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K. Among them, the extracted positions, a1 to a1+j1 and a2 to a2+j2 are pre-agreed between the smart meter and the reader, such as pre-configured or pre-defined. a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key, such as using a key derivation algorithm (KDF) to derive the communication key. Alternatively, in the case where the at least two identifiers include the first identifier, the second identifier and the third identifier, the smart meter determines, according to a preset rule, that the third identifier of the at least two identifiers containing a specific string is a pseudo-identifier, and the pseudo-identifier is an identifier that cannot be used for key derivation. In response to the third identifier being a pseudo-identifier, the smart meter extracts the a1th to a1+j1th bits of the first identifier according to the preset rule to obtain the first sub-identifier, and extracts the a2th to a2+j2th bits of the second identifier to obtain the second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K. Finally, the smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0040] S203, the smart meter uses the communication key to encrypt the plaintext metering data collected by the smart meter to obtain the ciphertext data of the smart meter.
[0041] The metering data may be metering data of electric quantity.
[0042] It can be understood that since the encryption does not use the complete first identifier and the second identifier, but uses part of the first identifier and the second identifier, even if the attacker steals the first identifier and the second identifier, he will not be able to deduce the communication key because he does not know which characters therein are needed for encryption, thereby further improving security.
[0043] In addition, sending an additional third identifier can be used to confuse the user through a pseudo identifier. If the attacker steals the pseudo identifier, the communication key cannot be derived. Therefore, the transmission security can be further improved. In addition, since the reader randomly generates a new identifier each time the inventory is taken, the communication key used for encryption and decryption in each communication is different, which further improves the security.
[0044] S204, the smart meter sends a response message to the reader, and receives a response message returned by the paged smart meter.
[0045] The response message includes the EPC of the smart meter and the ciphertext data of the smart meter.
[0046] S205: The reader determines a communication key according to the EPC of the smart meter and at least two identifiers.
[0047] The reader obtains the pre-configured root key of the smart meter from the reader locally according to the EPC of the smart meter. The root key is a key shared by the reader and the smart meter. The reader derives the communication key according to the root key of the smart meter and at least two identifiers.
[0048] For example, in the case where at least two identifiers include a first identifier and a second identifier, the reader may perform the reverse process of encryption, such as the reader extracts bits a1 to a1+j1 of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; the reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key. For another example, in the case where at least two identifiers include a first identifier, a second identifier and a third identifier, the reader may determine that the third identifier of the at least two identifiers that contains a specific string is a pseudo-identifier according to a preset rule, and the pseudo-identifier is an identifier that cannot be used for key derivation. In response to the third identifier being a pseudo-identifier, the reader extracts bits a1 to a1+j1 of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier.
[0049] Finally, the reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0050] S206, the reader uses the communication key to decrypt the ciphertext data to obtain plaintext measurement data.
[0051] Optionally, the reader can also send the EPC of the smart meter and plaintext metering data to a third-party server to which the smart meter belongs by managing the ambient IoT function (AIoTF) of the reader. The transmission is also based on a secure connection / mechanism, such as the secure connection / mechanism between AIoTF and the third-party server, to ensure data security.
[0052] In summary, during the inventory process, the paging message sent by the reader can carry a mask and at least two identifiers randomly generated by the reader; the mask is used to page the AIoT group, so that the reader can receive the response message returned by the paged smart meter (i.e., the AIoT device in the AIoT group), which includes the EPC of the smart meter and the ciphertext data of the smart meter. In this way, the reader determines the communication key based on the EPC of the smart meter and at least two identifiers, and uses the communication key to decrypt the ciphertext data to obtain the plaintext metering data. In other words, the reader generates at least two identifiers that can be used by the smart meter to encrypt the plaintext metering data for transmission, thereby ensuring the security of data transmission.
[0053] Combination of the above Figure 2 The method provided by the embodiment of the present invention is described in detail. The following is a smart meter data transmission device for executing the method provided by the embodiment of the present invention in combination with a detailed description, the device is applied to the reader in the AIoT, and the device is configured as follows: during the inventory process, the reader sends a paging message, the paging message includes a mask and at least two identifiers randomly generated by the reader, the mask is used to page the AIoT group, and the AIoT devices in the AIoT group are smart meters; receive a response message returned by the paged smart meter, the smart meter belongs to the AIoT group, the response message includes the EPC of the smart meter and the ciphertext data of the smart meter; the reader determines the communication key according to the EPC of the smart meter and at least two identifiers; the reader uses the communication key to decrypt the ciphertext data to obtain the plaintext metering data.
[0054] Optionally, the reader determines the communication key based on the EPC of the smart meter and at least two identifiers, including: the reader obtains a pre-configured root key of the smart meter from the reader locally based on the EPC of the smart meter, where the root key is a key shared by the reader and the smart meter; the reader derives the communication key based on the root key of the smart meter and at least two identifiers.
[0055] Optionally, the at least two identifiers include a first identifier and a second identifier, both of which are K-bit strings, where K is an integer greater than 5. The reader derives a communication key based on the root key of the smart meter and the at least two identifiers, including: the reader extracts bits a1 to a1+j1 of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0056] Optionally, the at least two identifiers include a first identifier, a second identifier and a third identifier, the first identifier, the second identifier and the third identifier are all K-bit strings, K is an integer greater than 5, and the reader derives the communication key based on the root key of the smart meter and the at least two identifiers, including: the reader determines, according to a preset rule, that the third identifier containing a specific string among the at least two identifiers is a pseudo-identifier, and the pseudo-identifier is an identifier that cannot be used for key derivation; in response to the third identifier being a pseudo-identifier, the reader extracts bits a1 to a1+j1 of the first identifier according to the preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0057] Optionally, the method also includes: the reader sends the EPC of the smart meter and plaintext metering data to a third-party server to which the smart meter belongs through the AIoTF that manages the reader.
[0058] Another smart meter data transmission device for executing the method provided by an embodiment of the present invention, the device is applied to an AIoT device in AIoT, the AIoT device is a smart meter, and the device is configured as follows: during the inventory process, the smart meter receives a paging message from a reader, the paging message includes a mask and at least two identifiers randomly generated by the reader, the mask is used to page an AIoT group, and the smart meter belongs to the AIoT group; the smart meter determines a communication key based on the EPC of the smart meter and at least two identifiers; the smart meter uses the communication key to encrypt the plaintext metering data collected by the smart meter to obtain the ciphertext data of the smart meter; the smart meter sends a response message to the reader, the response message includes the EPC of the smart meter and the ciphertext data of the smart meter.
[0059] Optionally, the smart meter determines a communication key based on the EPC of the smart meter and at least two identifiers, including: the smart meter obtains a pre-configured root key of the smart meter from the smart meter locally based on the EPC of the smart meter, where the root key is a key shared by the reader and the smart meter; the smart meter derives a communication key based on the root key of the smart meter and at least two identifiers.
[0060] Optionally, the at least two identifiers include a first identifier and a second identifier, both of which are K-bit strings, where K is an integer greater than 5. The smart meter derives a communication key based on the root key of the smart meter and the at least two identifiers, including: the smart meter extracts bits a1 to a1+j1 of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0061] Optionally, the at least two identifiers include a first identifier, a second identifier and a third identifier, the first identifier, the second identifier and the third identifier are all K-bit strings, K is an integer greater than 5, and the smart meter derives a communication key based on the root key of the smart meter and the at least two identifiers, including: the smart meter determines, according to a preset rule, that the third identifier containing a specific string among the at least two identifiers is a pseudo-identifier, and the pseudo-identifier is an identifier that cannot be used for key derivation; in response to the third identifier being a pseudo-identifier, the smart meter extracts bits a1 to a1+j1 of the first identifier according to the preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; the smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
[0062] Figure 3 The schematic diagram of the structure of the electronic device provided by the embodiment of the present invention. For example, the electronic device may be a network device, or a chip (system) or other components or assemblies that can be set in the network device. Figure 3 As shown, the electronic device 400 may include a processor 401. Optionally, the electronic device 400 may further include a memory 402 and / or a transceiver 403. The processor 401 is coupled with the memory 402 and the transceiver 403, such as being connected via a communication bus.
[0063] Combine the following Figure 3 The components of the electronic device 400 are described in detail: The processor 401 is the control center of the electronic device 400, and may be a processor or a general term for multiple processing elements. For example, the processor 401 is one or more central processing units (CPUs), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).
[0064] Optionally, the processor 401 can execute various functions of the electronic device 400 by running or executing the software program stored in the memory 402 and calling the data stored in the memory 402, such as executing the above Figure 2 A smart meter data transmission method is shown.
[0065] In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as Figure 3 CPU0 and CPU1 are shown in FIG.
[0066] In a specific implementation, as an embodiment, the electronic device 400 may also include multiple processors. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0067] The memory 402 is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor 401. The specific implementation method can refer to the above method embodiment, which will not be repeated here.
[0068] Optionally, the memory 402 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 402 may be integrated with the processor 401, or may exist independently and access the computer through the interface circuit ( Figure 3 The processor 401 is coupled to the processor 401 (not shown), which is not specifically limited in this embodiment of the present invention.
[0069] The transceiver 403 is used for communication with other electronic devices. For example, if the electronic device 400 is a terminal, the transceiver 403 can be used to communicate with a network device, or with another terminal device. For another example, if the electronic device 400 is a network device, the transceiver 403 can be used to communicate with a terminal, or with another network device.
[0070] Optionally, the transceiver 403 may include a receiver and a transmitter ( Figure 3 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.
[0071] Optionally, the transceiver 403 may be integrated with the processor 401, or may exist independently and communicate with the electronic device 400 through an interface circuit ( Figure 3 The processor 401 is coupled to the processor 401 (not shown), which is not specifically limited in this embodiment of the present invention.
[0072] Understandably, Figure 3 The structure of the electronic device 400 shown in the figure does not constitute a limitation on the electronic device, and the actual electronic device may include more or fewer components than those shown in the figure, or combine certain components, or arrange the components differently.
[0073] In addition, the technical effects of the electronic device 400 can refer to the technical effects of the methods described in the above method embodiments, which will not be repeated here.
[0074] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0075] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0076] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0077] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0078] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0079] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0080] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0081] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0082] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0085] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0086] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A smart meter data transmission method, characterized in that: The method is applied to a reader in AIoT, and the method includes: During the inventory process, the reader sends a paging message, the paging message includes a mask and at least two identifiers randomly generated by the reader, the mask is used to page an AIoT group, and the AIoT devices in the AIoT group are smart meters; receiving a response message returned by a paged smart meter, where the smart meter belongs to the AIoT group, and the response message includes an EPC of the smart meter and ciphertext data of the smart meter; The reader determines a communication key according to the EPC of the smart meter and the at least two identifiers; The reader decrypts the ciphertext data using the communication key to obtain plaintext measurement data.
2. The method according to claim 1, characterized in that The reader determines a communication key according to the EPC of the smart meter and the at least two identifiers, including: The reader obtains a pre-configured root key of the smart meter from the reader locally according to the EPC of the smart meter, where the root key is a key shared by the reader and the smart meter; The reader derives the communication key according to the root key of the smart meter and the at least two identifiers.
3. The method according to claim 2, characterized in that The at least two identifiers include a first identifier and a second identifier, the first identifier and the second identifier are both K-bit strings, K is an integer greater than 5, and the reader derives the communication key according to the root key of the smart meter and the at least two identifiers, including: The reader extracts the a1th to a1+j1th bits of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts the a2th to a2+j2th bits of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; The reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
4. The method according to claim 2, characterized in that: The at least two identifiers include a first identifier, a second identifier, and a third identifier, wherein the first identifier, the second identifier, and the third identifier are all K-bit strings, where K is an integer greater than 5, and the reader derives the communication key according to the root key of the smart meter and the at least two identifiers, including: The reader determines, according to a preset rule, that a third identifier of the at least two identifiers that includes a specific character string is a pseudo identifier, wherein the pseudo identifier is an identifier that cannot be used for key derivation; In response to the third identifier being a pseudo identifier, the reader extracts bits a1 to a1+j1 of the first identifier according to the preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; The reader uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
5. The method according to claim 1, characterized in that The method further comprises: The reader sends the EPC of the smart meter and the plaintext metering data to a third-party server to which the smart meter belongs through the AIoTF that manages the reader.
6. A smart meter data transmission method, characterized in that: The method is applied to an AIoT device in AIoT, wherein the AIoT device is a smart meter, and the method includes: During the inventory process, the smart meter receives a paging message from a reader, the paging message including a mask and at least two identifiers randomly generated by the reader, the mask is used to page an AIoT group, and the smart meter belongs to the AIoT group; The smart meter determines a communication key according to the EPC of the smart meter and the at least two identifiers; The smart meter uses the communication key to encrypt the plaintext metering data collected by the smart meter to obtain the ciphertext data of the smart meter; The smart meter sends a response message to the reader, where the response message includes the EPC of the smart meter and the ciphertext data of the smart meter.
7. The method according to claim 6, characterized in that The smart meter determines a communication key according to the EPC of the smart meter and the at least two identifiers, including: The smart meter obtains a pre-configured root key of the smart meter from the local smart meter according to the EPC of the smart meter, where the root key is a key shared by the reader and the smart meter; The smart meter derives the communication key according to the root key of the smart meter and the at least two identifiers.
8. The method according to claim 7, characterized in that The at least two identifiers include a first identifier and a second identifier, the first identifier and the second identifier are both K-bit strings, K is an integer greater than 5, and the smart meter derives the communication key according to the root key of the smart meter and the at least two identifiers, including: The smart meter extracts bits a1 to a1+j1 of the first identifier according to a preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; The smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
9. The method according to claim 8, characterized in that The at least two identifiers include a first identifier, a second identifier, and a third identifier, wherein the first identifier, the second identifier, and the third identifier are all K-bit strings, where K is an integer greater than 5, and the smart meter derives the communication key according to the root key of the smart meter and the at least two identifiers, including: The smart meter determines, according to a preset rule, that a third identifier of the at least two identifiers that includes a specific character string is a pseudo identifier, where the pseudo identifier is an identifier that cannot be used for key derivation; In response to the third identifier being a pseudo identifier, the smart meter extracts bits a1 to a1+j1 of the first identifier according to the preset rule to obtain a first sub-identifier, and extracts bits a2 to a2+j2 of the second identifier to obtain a second sub-identifier; a1 and j1 are both greater than or equal to 1 and less than K, and a1+j1 is less than or equal to K; a2 and j2 are both greater than or equal to 1 and less than K, and a2+j2 is less than or equal to K; The smart meter uses the first sub-identifier, the second sub-identifier and the root key of the smart meter as input parameters to derive the communication key.
10. A smart meter data transmission system, the system comprising: at least one processor; And, a memory communicatively connected to at least one of the processors; characterized in that, the memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to execute any of the methods set forth in claims 1-9.
Citation Information
Patent Citations
Chemical equipment safety monitoring method and system based on Internet of Things
CN119364523A
Method of wireless security communication using physical layer shared security key in ambient internet-of-things network and related devices
WO2024119030A1
Communication method and communication apparatus
WO2025011313A1
Cited By
Communication method, device and system
CN120957230A