Method and apparatus for providing secure and reliable communications via a low energy wireless communication protocol
By encrypting data frames of low-power communication protocols, using random numbers and message integrity codes to generate rotation identifiers, the network threat caused by the unencryptedness of Bluetooth low-energy communication protocols is solved, and the anonymity and data security of beacon packets are achieved .
Patent Information
- Application Number
- CN202180020427.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-06
- Filing Date
- 2021-02-03
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-02-03
AI Technical Summary
The existing Bluetooth low-energy communication protocols are vulnerable to cyber threats due to unencryptedness, such as unauthorized tracking, forgery and eavesdropping, which cannot effectively protect the privacy and data security of beacons.
By encrypting data frames of low-power communication protocols, using random numbers, unique identifiers and message integrity codes, generate rotation identifiers, and generate output frames based on rotation identifiers, message integrity codes and encrypted payload data to ensure data transmission anonymity and integrity.
Secure, anonymous and encrypted beacon packet transmission is achieved to prevent attackers from tracing or forging beacon packets, ensuring user privacy and data security.
Smart Images

Figure CN115280807B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of U.S. Non-Provisional Application No. 16 / 783,539, filed on February 6, 2020, the contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure generally relates to systems and methods for providing secure and reliable communications over a non-secure, low energy wireless communication protocol. Background Art
[0004] Bluetooth advertising is a mobile marketing method that uses Bluetooth Low Energy (BLE) technology to deliver content to wireless devices. Typically, content can be transmitted by a beacon from one location over an unsecured channel and received by a wireless device equipped with a BLE scanner. Such a BLE beacon can also be described as a non-connectable advertising packet.
[0005] At the same time, beacon transmissions performed by the BLE protocol are subject to various cyber threats because the communications are not encrypted. An example of such a threat is unauthorized tracking, where any nearby receiver can read the beacon broadcast identity (ID). In this case, an attacker or hacker can listen to and analyze non-secure beacons. Another example of this cyber threat is forgery, where an attacker or hacker can forge the advertising data packets of any beacon that broadcasts a consistent ID. Also known as spoofing, or the act of disguising communications from unknown sources as coming from a known, trusted source, spoofing can be used to access a target's personal information, spread malware through infected links or attachments, bypass network access controls, or redistribute traffic for denial of service attacks.
[0006] Another cyber threat includes showrooming, where BLE beacons are often used to identify micro-locations. With this information, an attacker or hacker can use the owner's beacon information to offer competing services to others at that location. Another cyber threat is piggyback tracking, where an eavesdropper could use widely deployed mobile applications to collect identifiers and their locations and use the collected information to infer the historical location of the beacon after learning the beacon ID.
[0007] One security mechanism for protecting BLE beacons involves random generation of Media Access Control (MAC) addresses. This mechanism randomly generates a MAC address assigned to a wireless device when the device connects to a new BLE network. Each connection attempt uses a different random MAC address. The security mechanism could potentially prevent people from using MAC addresses to build a history of device activity, thereby increasing user privacy. However, such security mechanisms provide anonymity to users, rather than security against unauthorized access to user information. In many cases, broadcast-only applications require additional application-level security for data payloads.
[0008] Another security solution for protecting BLE beacons includes advertising. Rotating identifiers are generated using a cryptographic method and can only be connected by authorized users back to the beacon or information related to the beacon. Therefore, the owner of the beacon can identify the rotating identifier, while to other devices, the rotating identifier will look like a random ID. Here, the owner of the beacon can register the beacon with a cloud-based global resolver, which enables authorized non-owners to identify the beacon. However, with this approach, the payload data is not secure, but only the identifier is secure.
[0009] In view of the above discussion, a security solution is needed that will overcome the above-mentioned deficiencies. Summary of the invention
[0010] The following is an overview of several example embodiments of the present disclosure. This overview is provided to provide a basic understanding of such embodiments for the convenience of the reader, and the overview does not completely limit the scope of the present disclosure. This overview is not a broad overview of all contemplated embodiments, and is neither intended to identify key or critical elements of all embodiments, nor to delineate the scope of any or all aspects. The sole purpose of this overview is to present some concepts of one or more embodiments in a simplified form as a prelude to a more detailed description presented later. For convenience, the terms "some embodiments" or "certain embodiments" may be used herein to refer to a single embodiment or multiple embodiments of the present disclosure.
[0011] Certain embodiments disclosed herein include a method for encrypting a data frame of a low power communication protocol. The method includes: providing an input data frame, the input data frame including a random number, a unique identifier, and payload data; encrypting the payload data; generating a message integrity code (MIC); generating a rotating identifier by encrypting the unique identifier; and generating an output frame based on the generated rotating identifier, the generated MIC, and the encrypted payload data.
[0012] Certain embodiments disclosed herein also include a battery-free Internet of things (IoT) device for encrypting a data frame of a low-power communication protocol. The battery-free IoT device includes a microcontroller and a memory, the memory containing instructions that, when executed by the microcontroller, configure the IoT device to: provide an input data frame, the input data frame including a random number, a unique identifier, and payload data; encrypt the payload data; generate a message integrity code (MIC); generate a rotating identifier by encrypting the unique identifier; and generate an output frame based on the generated rotating identifier, the generated MIC, and the encrypted payload data.
[0013] Certain embodiments disclosed herein also include a wireless device for encrypting a data frame of a low-power communication protocol. The wireless device includes a processor and a memory, the memory containing instructions, and the instructions, when executed by a microcontroller, configure the processor to: provide an input data frame, the input data frame including a random number, a unique identifier, and payload data; encrypt the payload data; generate a message integrity code (MIC); generate a rotating identifier by encrypting the unique identifier; and generate an output frame based on the generated rotating identifier, the generated MIC, and the encrypted payload data. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The subject matter disclosed herein is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The above and other objects, features and advantages of the disclosed embodiments will become apparent from the following detailed description taken in conjunction with the accompanying drawings.
[0015] Figure 1 is a schematic diagram of a secure low energy communication system according to an embodiment.
[0016] Figure 2 is a schematic diagram of a beacon packet format according to an embodiment.
[0017] Figure 3 is a functional diagram of a security protocol data encryption process according to an embodiment.
[0018] Figure 4 is a flow chart of a method of encrypting a low energy beacon according to an embodiment.
[0019] Figure 5 is a schematic diagram of decrypting an encrypted low energy beacon according to an embodiment.
[0020] Figure 6 is a block diagram of an exemplary receiver according to an embodiment.
[0021] Figure 7 A schematic diagram of an exemplary BLE device embodied as an IoT tag designed according to an embodiment is shown. DETAILED DESCRIPTION
[0022] It is important to note that the embodiments disclosed herein are merely examples of the many advantageous uses of the innovative teachings herein. In general, statements made in the specification of the present application do not necessarily limit any of the various claimed embodiments. In addition, certain statements may apply to certain inventive features but not to other features. In general, unless otherwise stated, singular elements may be in plural form and vice versa without loss of generality. In the accompanying drawings, the same reference numerals refer to the same parts in multiple views.
[0023] Various disclosed embodiments include methods and systems for implementing a secure broadcast authentication scheme and providing a secure beacon packet that allows user anonymity and data security. In an example embodiment, the system is configured to provide anonymization and privacy. That is, the transmitted data is anonymous and encrypted to protect the privacy of the owner. In particular, the unique identity of the beacon is anonymous. To this end, authentication and integrity protection fields are added to the beacon data packet. This enables the receiver to apply authentication and integrity protection methods to the frame. In an embodiment, replay protection data is also inserted into the beacon packet to enable the receiver to apply replay detection methods to the beacon packet.
[0024] Figure 1 1 is an example schematic diagram of a secure low-energy communication system 100 for describing various embodiments. The system 100 includes a wireless device 110, a receiver 120, and a cloud computing platform 130. The communication between the wireless device 110 and the receiver 120 can be performed using a low-power communication protocol. The communication between the cloud computing platform 130 and the receiver 120 is performed via, for example, the Internet.
[0025] In an example embodiment, the low energy communication protocol includes a Bluetooth Low Energy (BLE) protocol, which is a short wavelength radio wave operating in the range of approximately 2.40 to 2.485 MHz and is commonly used in portable wireless devices. The cloud computing platform 130 may include a public cloud, a private cloud, a hybrid cloud, or a combination thereof.
[0026] The receiver 120 may be, but is not limited to, a gateway, which may be embodied as, for example, a personal computer, a laptop, a tablet computer, a smart phone, a wearable computing device, or any other device capable of receiving and displaying notifications. The receiver 120 may also communicate with a network (in addition to a BLE network), such a network including a local area network (e.g., Wi-Fi), the Internet, etc.
[0027] The receiver 120 also includes a local parser 125. The local parser 125 is configured to process to parse beacon packets received from the wireless device 110. As will be described below, this includes at least parsing the unique ID and group ID of the wireless device 111 and decrypting the payload data. In an embodiment, the local parser 125 may also be configured to detect a reply attack based on the unique ID contained in each received packet. In one embodiment, the local parser 125 may be implemented as a software agent installed in the receiver 120. Figure 6 An example block diagram of receiver 120 is provided in .
[0028] The global resolver 135 included in the cloud computing platform 130 may perform the same functions as the local resolver 125. When the global resolver 135 resolves the packet, the encrypted packet is sent over the Internet (via the receiver 120) to the cloud computing platform 130. Therefore, in this configuration, the local resolver 125 does not resolve the encrypted packet.
[0029] In an embodiment, local resolver 125 and global resolver 135 may store the identity (encryption) key of the packet locally at receiver 120, or on the cloud on cloud computing platform 130. The encryption key may be any type of cryptographic key and is typically generated during the manufacturing process. In an embodiment, local resolver 125 stores the encryption key of the packet.
[0030] In an embodiment, the wireless device 110 is a transmit-only energy harvesting device. Within the wireless device 110, which may be stateless, the encryption keys may be stored in a non-volatile memory (not shown) in the device 110. Thus, each packet sent by the wireless device 110 may be encrypted, authenticated, and integrity protected independently of all other packets. That is, the authentication and integrity protection fields may be used, as described in reference to Figure 2 Further discussion.
[0031] In operation, the wireless device 110 is configured to encrypt and broadcast beacon packets encrypted using the disclosed embodiments. In BLE, beacon packets are broadcast as standard advertising packets (hereinafter referred to as "beacon packets" or simply "packets") over advertising channels 37, 38, and 39 defined as part of the BLE protocol. In an embodiment, the beacon packets have the following: Figure 2 The wireless device 110 may encrypt the beacon packets in the specific format shown, and a portion of each beacon packet is encrypted by the wireless device 110. In another embodiment, the data sent in the beacon packet may be a manufacturer data type, which is a valid advertising data type. It should be noted that the wireless device 110 only encrypts the beacon packets. It should also be noted that the format of the beacon packets complies with the BLE standard.
[0032] Figure 2An example diagram of a beacon packet 200 is shown, which includes a header 210 and an advertising channel payload (also known as a protocol data unit (PDU) 220). The header 210 includes the following fields: a preamble 211 for internal protocol management; an access address 212 that provides access to the beacon packet; and a PDU header 213 containing the PDU type and length. The beacon packet 200 also includes a cyclic redundancy check (CRC) field 240 having a cyclic redundancy check (CRC) code calculated on the contents of the PDU 220.
[0033] The PDU 220 is constructed according to the disclosed embodiment and will be referred to as a data frame 230. The data frame 230 is the portion of the beacon packet 200 that is encrypted or otherwise manipulated. The data frame 230 includes the following fields: an advertisement (ADV) address 231 containing a random number generated for each frame; a vendor header, which includes an advertisement (ADV) length containing the length of the data frame 230 and manufacturer data 233 calculated by the BLE protocol, and the vendor header is an advertisement data (AD) type; a manufacturing ID 234 containing a number defined by the manufacture of the wireless device 110; a unique identifier (ID) 235 containing a unique ID value; a group ID 236; a non-repeating random number (number used once, nonce) 237 containing a randomly generated number; and payload data 239.
[0034] According to the disclosed embodiment, the unique ID 235 is randomized or otherwise encrypted, while the group ID 236 is sent as unencrypted raw data. The unique ID 235 may be six bytes long and identifies a specific wireless device 110 and is unique to each wireless device 110. Additionally, the group ID 236 represents the group ID of the wireless device 110 and is used for local filtering and ID resolution. By encrypting the unique ID 235, an attacker cannot track the activity of the wireless device 110 or forge an advertising beacon packet 200.
[0035] Nonce 237 is a random number or non-repeating number that is included in a data frame 230 exchanged by the protocol and is used only once in a cryptographic communication. Nonce 237 is used to provide replay protection by ensuring that real-time data is transmitted rather than replayed data. That is, in an embodiment, nonce 237 prevents reuse of old communications and further allows detection and prevention of replay attacks. For example, nonce 237 can be four bytes long.
[0036] In addition, the contents of the payload data 239 field are encrypted. By encrypting the payload data 239, anonymization and privacy are achieved. It should be noted that the structure of the data frame 230, and thus the beacon packet 200, remains unchanged after encrypting the relevant fields, while the contents of the data frame 230 are changed. The encryption process is discussed in more detail below.
[0037] In another embodiment, a replay attack is detected based on a nonce 237. To this end, the local resolver 125 (or the global resolver 135) compares the nonce numbers specified in consecutively received beacon packets 200. If one or more such nonce numbers 237 match, a replay attack is detected. Since all nonce numbers 237 are standardized, it is expected that no two nonce numbers 237 are similar. Data frames 230 with duplicate nonce numbers 237 are discarded. Detection of a replay attack can be performed by the local resolver 125 or the global resolver 135.
[0038] Figure 3 FIG. 3 is an example functional diagram 300 of a security protocol data encryption process according to an embodiment. An input data frame 310 is being encrypted. Figure 2 As shown, the input data frame 310 is formatted. The input data frame 310 includes at least the following fields: an advertisement (ADV) address 231 containing a random number generated for each frame; an advertisement (ADV) length 232; manufacturer data 233; a manufacturing ID 234; a unique identifier (ID) 235; a group ID 236; a nonce 237; and payload data 239.
[0039] Compared to the input frame 310, the output frame 330 is generated by encryption and includes at least: ADV address 231; advertisement (ADV) length 232; manufacturer data 233; manufacturer ID 234; rotation ID 235'; group ID 236; randomly generated nonce 237; message integrity code (MIC) 238, which is a code calculated on all fields in the data frame 230 (excluding the MIC); and encrypted payload data 239'.
[0040] like Figure 3As shown, the output frame 330 has a general structure similar to the input data frame 310 and includes: the same consecutively arranged ADV address 231, advertisement (ADV) length 232, manufacturer data 233, manufacturer ID 234, group ID 236 and nonce 237. However, an encrypted rotated unique ID 235' and encrypted payload data 239' are generated in the location where the unique ID 235 and payload data 239 were originally located. In addition, a MIC is generated and inserted between the nonce 237 and the encrypted payload data 239'.
[0041] In an embodiment, a non-volatile memory (eg, memory) is used that is typically stored in a wireless device (eg, device 110). Figure 3 The encryption is performed using encryption keys in (not shown). These keys may include identity (group) key 322 and data encryption key 324. These keys may be further used to derive identity encryption key 326 (also referred to as a first symmetric block encryption algorithm (ENC1)) and integrity key 328 (also referred to as a second symmetric block encryption algorithm (ENC2)).
[0042] The identity key 322 is shared by all wireless devices 110 with the same group ID 236 and is used for encryption of the unique ID 235. The identity key 322 ensures encrypted packet integrity and protection by authenticating the wireless device 110. By default, the identity key 322 may include a 128-bit Advanced Encryption Standard (AES) key.
[0043] Compared to the identity key 322, the data encryption key 324 is unique to each wireless device 110 and is used to encrypt the payload data 239. As an example, a 128-bit Advanced Encryption Standard (AES) key may be used for data encryption. A copy of the identity key 322 and the data encryption key 324 may be stored by the local parser 125 or the global parser 135 to parse received encrypted packets.
[0044] In addition, the security protocol uses cryptographic primitives, including a key derivation function (KDF) 323, a counter with a Cipher Block Chaining-Message Authentication Code mode (CCM) 325, and a Cipher Block Chaining-Message Authentication Code (CBCMAC) 327.
[0045] The encryption of the data frame 230 will now be described.
[0046] Data encryption
[0047] To encrypt payload data 239, data encryption key 324 and nonce 237 are used to derive integrity key 328. Payload data 239 is then combined with integrity key 328 and encrypted into encrypted payload data 239' or ciphertext.
[0048] Integrity protection
[0049] In addition, to protect the integrity of the data frame 230, the MIC 340 is generated over all fields of the packet (excluding the MIC 340 itself) using the CCM mode 325. That is, the MIC 320 is a message authentication code (MAC) over the unique ID 235, the nonce 237, the group ID 236, the encrypted payload data 239', and the integrity key 328.
[0050] First, nonce 237, vendor header including ADV length 232, manufacturer data 233 and manufacturing ID 234, unique ID 235, group ID 236 and encrypted payload data 239' are formatted. In addition, a counter block (not shown) including nonce 237 is also formatted.
[0051] In addition, a key derivation function (KDF) 323 is obtained from the identity (group) key 322 and the nonce 237, which derives one or more secret keys from a secret value (such as a master key). The obtained KDF 323 can then be applied in two ways. First, the KDF 323 is used with another nonce 237 provided by a counter (not shown) to derive an identity encryption key 326 within the CCM 325. Second, the KDF 323 is also used with the formatted nonce 237, the vendor header 233, the unique id 235, and the encrypted payload data 239' to derive a CBCMAC 327. The derived CBCMAC 327 is then combined with the identity encryption key 326 to derive a MIC 340.
[0052] Identity encryption
[0053] In addition to the encryption of the payload data 239 and the derivation of the MIC 340, the unique ID 235 of the data frame 230 is also encrypted. This can be performed by applying the KDF 323 obtained from the nonce 237 and the identity (group) key 322, then deriving the identity encryption key 326 from the obtained KDF 323 and deriving the formatted nonce 237 obtained from the counter block. Next, the unique ID 235 is then combined with the identity encryption key 326 to derive the encrypted rotating ID 235'.
[0054] Using the encrypted payload data 239', the derived MIC 340 and the encrypted rotation ID 235', an output frame 330 is constructed, the output frame 330 comprising at least: a sequentially arranged ADV address 231, a vendor header including an ADV length 232, manufacturer data 233 and a manufacturing ID 234, a rotation ID 235', a group ID 236, a randomly generated nonce 237, a message integrity check (MIC) 238 and the encrypted payload data 239'.
[0055] As described above, the identity encryption key (ENC1) 326 and the integrity key (ENC2) 328 are authenticated encryption keys used to encrypt the unique ID 235 and payload data 239 of the wireless device 110, respectively, and protect the integrity and authenticity of the entire beacon packet 200.
[0056] In operation, data frame 230 is input as input frame 310 and encrypted based on the above described protocol. Output frame 330 is generated. Data frame 230 is now encrypted and ready to be transmitted by wireless device 110.
[0057] In the receiver (for example, Figure 1 On the receiver 120 side, when the local resolver 125 receives the encrypted beacon packet 200 from the wireless device 110, additional multiple nonces 237 are generated as needed. If the group ID 236 is recognized by the local resolver 125, the identity key 322 is retrieved. Alternatively, the cloud computing platform 130 can be queried for the identity key 322. The MIC 340' is then calculated using the CCM 225 integrity protection. If the calculated MIC 340' matches the MIC 340 received from the wireless device 110, the rotating ID 235' is decrypted.
[0058] During the decryption of the rotating ID 235', the data frame 230 is constructed based on the unique ID 235 encryption technique described above. The rotating ID 235' is then decrypted with the identity key 322 to recover the unique ID 215. Here, the description is independent of the MIC 340' calculation, and the process does not output the decrypted block before verifying the MIC 340 to prevent the disclosure of confidential information to an attacker. Afterwards, the decrypted beacon packet 200 is sent to the cloud computing platform 130 with the unique ID 235.
[0059] Alternatively, if the global resolver 135 is used to decrypt the beacon packet 200, the beacon packet 200 and the unique ID 215 are received on the global resolver 135 side. As an option, the MIC 340 may be re-verified, and if the MIC 340 is not verified, the beacon packet 200 may be discarded. Thereafter, the unique ID 235 is used to retrieve the data encryption key 324. If the unique ID 215 is not found, the beacon packet 200 is discarded.
[0060] Thereafter, the output data frame 330 is constructed according to the encryption techniques disclosed herein. The output frame 330 is then decrypted using the data encryption key 324 and XORed with the encrypted payload data 239' to recover the original payload data 239.
[0061] It should be noted that the disclosed embodiments result in secure, broadcast, encrypted BLE communications. In one example, assuming that two beacons from the same group use the same identity key and the same nonce, an attacker who intercepts the two packets will recognize that the packets were sent by different beacons. In general, if the attacker knows that the two packets are encrypted by the same key, the attacker may be able to detect a bit difference (the result of a bitwise exclusive OR "XOR" operation) between the unique IDs of the beacons. However, when using the disclosed encryption techniques, the unique ID is random and does not provide the attacker with any information about the unique ID or the encryption key being used.
[0062] Figure 4 is an example flow chart of a method 400 for encrypting a BLE beacon packet according to an embodiment. Figure 3 The various elements are discussed to describe the method.
[0063] At S410, an input frame 310 is provided. For encryption purposes, a plurality of encryption keys are used. These encryption keys include at least: an identity key (322) and a data encryption key (324).
[0064] Then, at S420, an integrity key (328) is generated based on the random number (or nonce) (237) and the data encryption key (324).
[0065] At S430, the payload data (239) is encrypted as the generated integrity key is used to encrypt the payload data (239).
[0066] Then, at S440, a MIC (340) is generated. Here, the random number (237) of the input frame, the vendor header including the ADV length (232), the manufacturer data (233), the manufacturing ID (234), the group ID (236), the unique ID (235), and the encrypted payload data (239') are formatted. In addition, a counter block (not shown) including the random number 237 is also formatted.
[0067] Next, a KDF (323) is obtained based on the identity (group) key (322) and the random number (237). Thereafter, a CBCMAC (327) is derived based on the obtained KDF (323) and a formatted counter block (not shown). An identity encryption key (326) is then generated based on a formatted counter block (not shown) including the random number (237), and the generated identity encryption key (326) and CBCMAC (327) are combined to derive a MIC (340).
[0068] At S450, a rotation ID (235') is generated by applying the generated identity encryption key (326) to the unique ID (235). Then, at S460, an output frame (330) is constructed based on the generated rotation identifier (235'), the generated MIC (340), and the encrypted payload data (239'), and the output frame (330) is sent to the receiver 120.
[0069] The method disclosed above provides a method for a wireless device to securely transmit a beacon packet via a low-energy communication protocol.
[0070] Figure 5 is an example flow chart 500 of a method for decrypting an encrypted beacon packet 200 according to an embodiment. Figure 3 The various elements are discussed to describe the method.
[0071] At S510, an encrypted beacon packet is received. The packet is received at a resolver (e.g., a local or global resolver as discussed above). At S520, the integrity of the encrypted beacon packet is verified by calculating a MIC (340') and comparing it to the MIC (340) received from the wireless device. In addition, the group ID (236) is resolved by identification by the local resolver (125), and the identity key (322) is retrieved.
[0072] If the encrypted packet beacon is verified, then at S530 , the rotation ID ( 235 ′) and the encrypted payload data ( 239 ′) are decrypted using various keys including the identity key ( 322 ) and the data encryption key 324 .
[0073] At S540 , the decrypted beacon packet is transmitted for further processing. Such processing includes data calibration and virtual device services including storage, analysis and notification, and control of the receiver 120 .
[0074] Figure 6 FIG. 1 is an example detailed block diagram of an exemplary receiver 120 according to an embodiment. Figure 6 As shown, receiver 120 includes a BLE communication card 650 and a network interface card (NIC) 620. BLE card 650 communicates with wireless device 110 via a BLE network (not shown), while NIC 620 allows communication with a server via the Internet (not shown) or other types of networks.
[0075] In an embodiment, receiver 120 may be installed with an application (not shown) that, when executed by hardware (such as processor 670), may allow processor 670 to control communications with wireless devices (e.g., device 110) and cloud-based platform 130 and perform operations such as Figure 5 The decryption method described in . The application program that may include the local parser 125 may be stored in the memory 680. That is, as described above with respect to Figure 5 As discussed, the local resolver 125 receives, decrypts, and processes data packets from the wireless device 110 , and may also store identity keys for the packets in the memory 680 .
[0076] It should be noted that the processor 670 can be implemented as one or more hardware logic components and circuits. For example, but not limited to, exemplary hardware logic component types that can be used include field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip systems (SOCs), general-purpose microprocessors, microcontrollers, digital signal processors (DSPs), etc., or any other hardware logic components that can perform calculations or other information operations.
[0077] The memory 680 may be volatile (e.g., random access memory (RAM), etc.), non-volatile (e.g., read-only memory (ROM), flash memory, etc.), or a combination thereof. The memory 680 may store encryption keys. The application program of the local parser 125 may be implemented in software. Software should be broadly interpreted as any type of instruction, whether it refers to software, firmware, middleware, microcode, hardware description language, or other. The instructions may include code (e.g., source code format, binary code format, executable code format, or any other suitable code format). When executed by the processor 670, the instructions cause the execution of the local parser 125 on the receiver 120 to perform the above-mentioned Figure 5 The method described.
[0078] Figure 7 An example schematic diagram of a wireless Internet of Things (IoT) tag 700 that may be used as the wireless device 110 according to one embodiment is shown. In such a configuration, the form factor of the wireless device, and thus the IoT tag 700, is package-free on-chip.
[0079] like Figure 7 As schematically shown in FIG. 1 , the IoT tag 700 includes: an energy harvester 701 coupled to an on-chip capacitor 702 and an external passive capacitor 702', a power management unit (PMU) 703, a microcontroller 704, a system on chip (SoC) 705, and a retention memory 706. The IoT tag 700 may also include at least one antenna 710, for example, glued to a substrate 720. In another embodiment, the antenna 710 may be printed on or etched into the substrate. In another embodiment, a passive external capacitor 730 may replace the antenna 710.
[0080] In an embodiment, the substrate 720 is made of low-cost materials such as, but not limited to, polyethylene (PET), polyimide (PI), and polystyrene (PS). In another embodiment, the pattern (layout) of the substrate 720 can be any one of aluminum, copper, or silver. The glue used to glue to the sheet and / or antenna 710 can include materials such as anisotropic conductive film (ACP), any type of conductive glue, solder paste, etc.
[0081] exist Figure 7In the illustrated embodiment, antenna 710 is coupled to harvester 701 and can be used for energy harvesting as well as wireless communication. In some embodiments, multiple antennas can be used to harvest energy in multiple frequency bands. Other embodiments may include one or more antennas for energy harvesting and an antenna for receiving / sending wireless signals in the BLE frequency band.
[0082] SoC 705 includes multiple execution functions implemented as analog circuits, digital circuits, or both. Examples of such execution functions are provided below. SoC 705 is also configured to execute processes independently or under the control of microcontroller 704. Each process executed by SoC 705 also has a state, and a process can communicate with other processes through an inter-process communication (IPC) protocol. Figure 7 In the configuration shown, the SoC 705 and / or microcontroller 704 loads the context of the process and reads data from the persistent memory 706 .
[0083] In an embodiment, SoC 705 is divided into multiple power domains. Each power domain is a collection of gates powered by the same power supply and ground power. In order to reduce power consumption, only one power domain is turned on during execution.
[0084] In a preferred embodiment, SoC 705 includes an oscillator calibration circuit (Oscillator Calibration Circuit, OCC) 705-A. OCC 705-A includes at least one frequency locking circuit (Frequency Locking Circuit, FLC), each FLC is coupled to an oscillator (both are not shown). The FLC uses an over-the-air reference signal to calibrate the frequency of the oscillator. In an embodiment, the calibration of each oscillator is performed immediately before a data transmission session, and the calibration of each oscillator remains free running during the data transmission session. The FLC can be implemented using a frequency locked loop (Frequency Locked Loop, FLL), a phase locked loop (Phased Locked Loop, PLL) and a delay locked loop (Delay Locked Loop, DLL).
[0085] According to the disclosed embodiment, energy harvester 701, capacitor 702, PMU 703, microcontroller 704, SoC 705, and retention memory 707 are integrated in sheet 730. Sheet 730 is bonded to substrate 720. Wireless device 110 does not include any external direct current (DC) power source (eg, battery).
[0086] In an embodiment, the microcontroller 704 implements electronic circuits (e.g., memory, logic, radio frequency (RF), etc.) that perform various functions that allow communication using a low-energy communication protocol. In a preferred embodiment, the microcontroller 704 operates using the Bluetooth Low Energy (BLE) communication protocol. In some embodiments, the microcontroller 704 is integrated with a wireless sensor (not shown) to complete the IoT device function.
[0087] The harvester 701 is configured to provide multiple voltage levels to the microcontroller 704 while maintaining a low load DC dissipation value. In an example implementation, the energy harvester 701 may include a voltage multiplier coupled to an antenna 710. The voltage multiplier may be a Dickson multiplier, and the antenna is a 710 receive / transmit antenna of the microcontroller 704. That is, in such a configuration, the antenna is primarily designed to receive and / or transmit wireless signals (e.g., 2.400-2.4835 GHz signals for BLE communication) according to the corresponding communication protocol of the low energy wireless device 110.
[0088] It should be noted that the antenna 710 may also be designed for energy harvesting and may operate at a frequency band, orientation, or both different from that defined in the standard of the corresponding communication protocol. Regardless of the configuration, energy may be harvested from any wireless signal received over the air. Alternatively, energy may be harvested from any other source (e.g., solar energy, piezoelectric signals, etc.).
[0089] The harvested energy is stored in the on-chip capacitor 702 and / or the external capacitor 702'.
[0090] The PMU 703 is coupled to the capacitor 702 and is configured to regulate the power of the microcontroller 704 and the SoC 705. Specifically, since the capacitance of the capacitor 702 is very limited, the power consumption should be carefully maintained. This maintenance is performed to avoid the depletion of the capacitor 702, thereby resetting the microcontroller 704. The PMU 703 can be implemented using a Schmitt trigger operating on a predetermined threshold (Vref) (e.g., Vref=0.85V).
[0091] In another embodiment, the PMU 703 may be further configured to provide a multi-level voltage level indication to the microcontroller 704. Such an indication allows the microcontroller 704 to determine the state of the voltage source at any given moment when the capacitor 702 is charging or discharging. According to this embodiment, the PMU 703 may include a detection circuit controlled by the controller. The detection circuit includes different voltage reference threshold detectors, where only a subset of these detectors are enabled at a given time to perform detection.
[0092] The wireless device 110 does not include any crystal oscillator that provides a reference clock signal. According to an embodiment, the reference clock signal is generated using an over-the-air signal received from the antenna 710. As described above, in a typical deployment, the free-running oscillator is locked to a clock derived from a crystal oscillator via a phase-locked loop (PLL). According to a disclosed embodiment, the OCC 705-A calibrates the frequency of the oscillator using the over-the-air reference signal. The oscillator implemented in the IoT tag 700 is an on-chip oscillator and can be implemented as a digitally controlled oscillator (DCO).
[0093] Retention memory 706 is a centralized area of communication system 100 that is continuously powered. Data to be retained during low power states is located in retention memory 740. In an embodiment, the retention area is optimized for subthreshold or near threshold voltages, such as 0.3 V-0.4 V. This allows for reduced leakage of the retention cell.
[0094] The various embodiments disclosed herein may be implemented as hardware, firmware, software, or any combination thereof. In addition, the software is preferably implemented as a program storage unit or a computer-readable medium tangibly embodied in a combination of some or some devices and / or devices. The application program may be uploaded to and executed by a machine comprising any suitable architecture. Preferably, the machine is implemented on a computer platform having hardware such as one or more central processing units ("central processing unit, CPU"), memory, and input / output interfaces. The computer platform may also include an operating system and microinstruction codes. The various processes and functions described herein may be a part of the microinstruction code or a part of the application program, or any combination thereof, and they may be executed by the CPU, regardless of whether such a computer or processor is explicitly shown. In addition, various other peripheral units may be connected to the computer platform, such as an additional data storage unit and a printing unit. In addition, a non-transient computer-readable medium is any computer-readable medium other than a transient propagation signal.
[0095] All examples and conditional language cited herein are intended for teaching purposes to help the reader understand the principles of the disclosed embodiments and the concepts that the inventors have contributed to promoting this area, and will be interpreted as not being limited to such specifically enumerated examples and conditions. In addition, all statements of the principles, aspects and embodiments of the disclosed embodiments and their specific examples cited herein are intended to cover their structural and functional equivalents. In addition, such equivalents are intended to include currently known equivalents and equivalents developed in the future (i.e., any element that performs the same function, regardless of the structure).
[0096] It should be understood that any reference to an element using names such as "first", "second" etc. herein does not generally limit the quantity or order of those elements. On the contrary, these names are generally used as a convenient method to distinguish between two or more elements or an example of an element in this article. Therefore, the reference to the first and second elements does not mean that only two elements can be used there or that the first element must be before the second element in some way. In addition, unless otherwise stated, an element set includes one or more elements.
[0097] As used herein, the phrase "at least one" followed by a list of items means that any of the listed items may be used alone or in any combination of two or more of the listed items may be used. For example, if a system is described as including "at least one of A, B, and C," the system may include A alone; B alone; C alone; 2A; 2B; 2C; 3A; a combination of A and B; a combination of B and C; a combination of A and C; a combination of A, B, and C; a combination of 2A and C; a combination of A, 3B, and 2C, etc.
Claims
1. A method for encrypting a data frame of a low power communication protocol, comprising: providing an input data frame, the input data frame comprising a random number, a unique identifier, and payload data; encrypting the payload data; Generate a message integrity code MIC, generating a rotating identifier by encrypting the unique identifier; as well as An output frame is generated based on the generated rotated identifier, the generated MIC, and the encrypted payload data.
2. The method according to claim 1, wherein: The input data frame also includes a vendor header and a group identifier.
3. The method according to claim 1, further comprising: generating an integrity key based on the random number and the data encryption key, The payload data is encrypted based on the generated integrity key and the payload data.
4. The method according to claim 3, wherein: Generating the MIC further comprises: formatting a random number, a vendor header, a group identifier, a unique identifier, and encrypted payload data of the input data frame, wherein the vendor header and the group identifier are part of the input data frame; formatting a counter block, the counter block including the random number; Obtain a key derivation function KDF based on the identity key and the random number; Based on the obtained KDF and the formatted counter block, deriving a counter with a Cipher Block Chaining Message Authentication Code CBCMAC; generating an identity encryption key based on the formatted counter block including the random number; and The generated identity encryption key is combined with the CBCMAC.
5. The method according to claim 4, wherein: Generating a rotation identifier further comprises: The generated identity encryption key is applied to the unique identifier.
6. The method according to claim 1, wherein: The low power communication protocol is the BLE protocol.
7. The method according to claim 1, wherein: The method is performed by a wireless device, wherein the wireless device is at least a battery-less IoT tag.
8. A battery-free IoT device for encrypting data frames of a low-power communication protocol, comprising: Microcontroller; as well as A memory comprising instructions that, when executed by the microcontroller, configure the IoT device to: providing an input data frame, the input data frame comprising a random number, a unique identifier, and payload data; encrypting the payload data; Generate a message integrity code MIC, generating a rotating identifier by encrypting the unique identifier; as well as An output frame is generated based on the generated rotated identifier, the generated MIC, and the encrypted payload data.
9. The battery-free IoT device according to claim 8, wherein: The input data frame also includes a vendor header and a group identifier.
10. The battery-free IoT device according to claim 8, wherein: The IoT device is also configured to: generating an integrity key based on the random number and the data encryption key, The payload data is encrypted based on the generated integrity key and the payload data.
11. The battery-free IoT device according to claim 10, wherein: Generating the MIC further comprises: formatting a random number, a vendor header, a group identifier, a unique identifier, and encrypted payload data of the input data frame, wherein the vendor header and the group identifier are part of the input data frame; formatting a counter block, the counter block including the random number; Obtain a key derivation function KDF based on the identity key and the random number; Based on the obtained KDF and the formatted counter block, deriving a counter with a Cipher Block Chaining Message Authentication Code CBCMAC; generating an identity encryption key based on the formatted counter block including the random number; and The generated identity encryption key is combined with the CBCMAC.
12. The battery-free IoT device according to claim 11, wherein: Generating a rotation identifier further comprises: The generated identity encryption key is applied to the unique identifier.
13. The battery-free IoT device according to claim 8, wherein: The low power communication protocol is the BLE protocol.
14. The battery-free IoT device according to claim 10, further comprising: an energy harvester coupled to the capacitor and the antenna; as well as A power management unit PMU is coupled to the energy harvester, the microcontroller and the system on chip SoC, wherein The SoC includes an oscillator calibration circuit OCC, and The memory is coupled to the microcontroller and the SoC.
15. A wireless device for encrypting a data frame of a low power communication protocol, comprising: processor; as well as a memory comprising instructions which, when executed by the microcontroller, configure the processor to: providing an input data frame, the input data frame comprising a random number, a unique identifier, and payload data; encrypting the payload data; Generate Message Integrity Code MIC generating a rotating identifier by encrypting the unique identifier; as well as An output frame is generated based on the generated rotated identifier, the generated MIC, and the encrypted payload data.
