METHOD FOR PAIRING A COUNTER WITH A COMMUNICATION MODULE
Patent Information
- Application Number
- DE502020009315
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-08
- Filing Date
- 2020-10-01
- Publication Date
- 2024-10-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for pairing a counter with a communication module to establish a secure communication connection are inadequate in ensuring the security and integrity of identity keys, particularly in preventing unauthorized access and maintaining anonymity in Bluetooth low-energy connections.
A method involving the generation and storage of identity resolving keys (IRKs) within a protective environment, followed by secure pairing using Bluetooth Low Energy (BLE) connections, where keys are stored in a protected data object and managed by a secure element to ensure secure communication and authentication, with the option to generate secondary keys for enhanced security.
This approach provides a secure, authenticated, and low-power communication connection between the meter and the communication module, protecting against unauthorized access and ensuring uninterrupted security from key generation to storage and usage, while maintaining predictably low power consumption.
Description
[0001] The invention relates to a method for pairing a meter with a communication module to establish a communication connection between the two.
[0002] In practice, it is common practice to connect a communication module to a meter, either mechanically or by wire, for communicating meter data. This connection uses mechanisms to secure data, such as identification, authentication, and encryption.
[0003] DE 10 2018 202 176 A1 discloses a master-slave system for communication via a Bluetooth Low Energy connection. During a request process, the encryption of identity information ensures the anonymity of the slave device from other slave devices or other devices communicating via the same advertising channels. The keys used are, in particular, Identity Resolving Keys (IRKs). These are transmitted in advance to the master devices in the master-slave system.
[0004] US 2014 / 0359724 A1 discloses a communication system with a first communication device. For transmitting temporary authentication information, the communication system includes a second communication device with a second communication area. When a mobile computing device is located in the second communication area, it can request authentication information from the second communication device to access the first communication device. To transmit this temporary authentication information exclusively to a mobile computing device actually involved in maintenance, the second communication area is arranged in a secure area accessible only to authorized persons, in particular maintenance personnel. In an aircraft, a suitable area would be the cockpit.
[0005] The object of the invention is to improve the communication connection between the meter and the communication module.
[0006] The object of the invention is achieved by a method according to claim 1 for pairing a meter with a communication module. Preferred or advantageous embodiments of the invention, as well as other categories of the invention, emerge from the further claims, the following description, and the accompanying figures.
[0007] Pairing is used to establish a communication connection between the two, i.e. between the meter and the communication module.
[0008] The meter and communication module together form a metering arrangement. The meter is used to record a consumption quantity (e.g., a cubic meter) of a consumption medium (e.g., natural gas or water). The communication module is physically separated from the meter. This means that metering arrangements or meters with a shared outer housing are conceivable, yet are nevertheless physically / mechanically separated internally (prepaired, pre-paired, see below).
[0009] In addition to the meter array, a meter network also contains a remote station, e.g., a head-end system, for the meter array or the meter. The remote station is located in a wide area network (WAN, e.g., the Internet) and is accessible via an access point to the WAN.
[0010] The meter and the communication module can be paired for short-range communication, particularly wireless communication. The communication module and the remote station can be connected for long-range communication, particularly wireless communication.
[0011] "Near range" (NB) means, in particular, less than 10 cm, 50 cm, 1 m, 5 m, 10 m, or 100 m. "Long range" (WB) means, in particular, more than 10 cm, 50 cm, 1 m, 5 m, 10 m, or 100 m, or 1 km. The remote station (also called endpoint) is, in particular, a head-end system, e.g., a portal of an energy supplier. The consumption quantity or its value is, in particular, a measured value, e.g., a current value or a snapshot, such as a meter reading, instantaneous electrical power, etc. Alternatively, the consumption quantity is a value for a period of time, such as a total daily, monthly, or annual consumption, etc.
[0012] During operation, data must be communicated between the meter and the remote device within the meter network via the communication module. Communication takes place via short-range communication, the communication module, and long-range communication, or in the opposite direction. Data to be communicated includes, for example, consumption values with the associated timestamp from the meter to the remote device, or configuration data from the remote device to the meter.
[0013] In this process, a first identity key is assigned to the communication module for pairing. A second identity key is assigned to the meter for pairing. Both keys are stored within a secure environment in the communication module. This means that the communication module is located in the secure environment. The communication module is then removed from the secure environment.
[0014] The secure environment ensures that key misuse (e.g., eavesdropping, reading, theft, etc.) is prevented compared to a regular environment, such as the field. The secure environment is, for example, an isolated area within a production environment secured by barriers, access controls, electromagnetic shielding, etc.
[0015] Both keys are stored in the meter via a protected path. The meter and the communication module are then paired outside the protected environment using the two keys. Protected paths extend, in particular, from key generation to storage in the meter and / or the communication module, or to the key storage location.
[0016] The keys are generated in advance before being assigned to the meter and the communication module. The "protected path" corresponds in terms of security to the protected area. The path can be located within the protected environment or represent a "protected extension" or "protected enclave" of the protected environment outside of it. In particular, the protected environment is part of a manufacturing facility for the communication module.
[0017] Both keys together form a key pair, which is used for pairing or, in this context, for authentication, identification, encryption, etc.
[0018] In particular, at least one, i.e. optionally several key pairs are generated and / or stored in the meter and / or in the communication module.
[0019] Since the keys are stored and / or transported only within the protected environment and / or only on protected routes, they remain protected from unauthorized access at all times. This ensures uninterrupted protection during transport and / or storage.
[0020] Both keys are stored in a protected data object. Specifically, the keys are incorporated into the data object after they are generated. The data object can also be located within the protection environment or represent a "protected extension" or "protected enclave" of the protection environment outside of it. The keys are transferred into the data object within the protection environment and removed from the protection environment within the data object—protected by encapsulation, so to speak. This ensures complete protection at all times. The data object forms a protected "container" for the storage and / or transport of the keys.
[0021] Both keys are stored in the meter from the protected data object via a secure path. This allows the keys to be securely inserted into the meter.
[0022] The keys are stored in the meter when it is outside the protected environment. This makes it possible to insert the keys even into a meter that is already installed in the field, for example.
[0023] In a preferred embodiment, a short-range (NB) connection is established as the communication connection. In particular, the connection is a Bluetooth Low Energy (BLE) connection. In particular, the connection is a Low Energy (LE) Secure Connection, especially in the "Just Works" version. Pairing or pairing of the meter and communication module then takes place within the respective communication connection, for example, as Bluetooth (BT) pairing.
[0024] In a preferred variant of this embodiment, identity resolving keys (IRKs) within Bluetooth technology are used as keys. The invention offers particular security advantages for these special keys or technologies, e.g., against hacking attacks, etc., since the keys are better protected against unauthorized access than with a standard pairing procedure.
[0025] The keys are generated within the protection environment. This further increases security because the keys are protected within the protection environment from the moment they are generated.
[0026] The keys are generated using the communication module. Therefore, no additional key generation device is required.
[0027] The keys are generated by pre-pairing the communication module within the protected environment with a pairing partner located within the protected environment. The pairing partner is typically one that is different from the counter. In other words, a "dummy" partner or counter is used in the protected environment to simulate the later counter for key generation and to perform the key generation within the protected environment. Key generation can thus be carried out particularly securely and independently of the actual counter.
[0028] In a preferred embodiment, second or optionally even several additional keys are generated based on both keys as the first keys. The second keys are only generated when the communication module and the meter are outside the protected environment, and the second keys are used instead of the first keys for further pairing or communication. This allows for an additional level of security to be created if security concerns exist regarding the first keys.
[0029] In a preferred variant of this embodiment, the second keys are stored in a protected data object. This can be the same data object mentioned above or a different data object. The keys can thus be transferred to the same or a different protection environment and stored there.
[0030] In an alternative embodiment to the above (i.e., for generating second keys), the option for generating and / or importing second and further keys is permanently disabled or not provided at all in the communication module. The malicious generation / introduction of further keys to circumvent the unknown first keys is thus impossible. The deactivation can occur, in particular, after keys have been generated using the communication module and / or after the first keys have been fed into the communication module, particularly while still within the protection environment. This ensures that, after a certain point in time and / or outside the protection environment, no further key pairs can be imported.
[0031] In a preferred embodiment, the communication module and / or the meter contains communication hardware for operating the communication connection. In addition to the communication hardware, a secure element is then provided in the communication module and / or the meter to manage the keys. "Management" in this context refers, for example, to the highly secure generation, storage, and further processing of keys, the generation of highly secure random numbers, the encryption and decryption of messages, the calculation of hash sums, etc. – using the keys. Thus, the security level of a communication module can be increased compared to conventional communication hardware (e.g., commercially available Bluetooth components).
[0032] In a preferred embodiment, the keys are stored in the meter using a mobile device located outside the protected environment. In particular, this mobile device can, for example, contain the protected data object and / or provide a protected path / data channel for transporting keys. This makes it possible to securely supply keys to a meter already installed in the field, for example.
[0033] In a preferred embodiment, the meter and / or the communication module is assigned a unique identifier, and a mapping between the identifier and the keys is stored within the security environment and / or the protected data object. This allows for the recording, determination, and verification of which keys are to be inserted into which meters and / or communication modules, etc.
[0034] The invention is based on the following findings, observations, and considerations and also includes the following embodiments. These embodiments are sometimes referred to as "the invention" for simplicity. These embodiments may also contain or correspond to parts or combinations of the aforementioned embodiments and / or may also include previously unmentioned embodiments.
[0035] The invention is based on the idea that there are (at least) two devices that exchange data with each other. One of these is the meter, the other is (are) one or more Radio Network Access (RNA) modules (here, communication modules are used as an example). For the sake of simplicity, the application always assumes only a single communication module to represent the general public.
[0036] The meter and RNA module are equipped with BLE (here representing general short-range communication technologies) so that a connection can be established between the meter and the RNA module.
[0037] The RNA module is used to receive meter data via the BLE connection and send it to a server (e.g., a remote station in the meter network) using a radio network technology (e.g., WAN). In bidirectional communication, data is received from the radio network and sent to the meter via the BLE connection.
[0038] The aim of the invention is to ensure that in NB communication (e.g. BLE) the power consumption during identification, authentication and encryption is predictably low in every application case, at no time influences the power consumption and / or limits the functionality.
[0039] According to the invention, a permanent, authenticated and secure connection between a meter and an external module is created using BLE, which has the above-mentioned properties.
[0040] Both communication partners possess each other's Identity Resolving Key (IRK) and can thus verify their identity. Communication only continues if the other partner is clearly identified as the pairing partner. Identity is secured because the IRK pair is generated in the protected area, especially in production, and periodically renewed in the field if necessary.
[0041] The pairing secrets are generated and stored in a secure production environment (generally referred to as a protected area). The module is pre-paired with a pairing master (generally referred to as a partner) to generate one or more pairing secrets. One element, specifically the pairing master, stores the pairing secrets in protected files / data objects.
[0042] The "LE Secure Connections" security protocol, version "Just Works," is used. The secrets for final pairing are applied to the communication module in the secure production environment. This eliminates the need for a secondary interface on the module, which would be required for authentication. The pairing secrets generated in production are the initial IRK pair and, optionally, the service IRK pair. The initial IRK pairs are used, for example, for initial pairing in the field, while the service IRK pairs are used for repair and service purposes.
[0043] The accepted pairing partner for the module is determined by identifying the module (its identifier). The unique identifier can be a QR code, barcode, a unique number combination, or a BLE beacon. The information is provided centrally (i.e., by the remote station) via a secure tertiary WAN interface or a secure data container (generally: protected data object).
[0044] The counter's complementary secret is secured to the counter (in particular, stored in it) using a secured secondary interface.
[0045] With the help of a secure element on both sides, both devices generate their own IRK(s). The secure element refers to a chip equipped with additional hardware and software functions that is capable of, among other things, generating random numbers, encrypting and decrypting messages, calculating hash sums, and storing secrets more securely than conventional microcontrollers.
[0046] The protected file / data object describes a device-specific document generated in production, which contains information necessary for identification and pairing of the produced device.
[0047] The RNA module (commonly known as the communication module) stores both IRK pairs in its secure element. The RNA module then assumes that the two received IRKs describe their fixed communication partner, i.e., a real counter in the field (initial and service IRK).
[0048] The counter does not contain any pairing configuration in production.
[0049] For initial pairing in the field, the meter, the RNA module, and, for example, a mobile device are required. This mobile device is part of the equipment of the installer responsible for commissioning the devices in the field. The mobile device is equipped with a pre-installed application from the responsible party, e.g., the manufacturer of the communication module.
[0050] The unique identification of the RNA module in the field allows the selection of device-specific information for initial pairing. The unique identifier can be a QR code, barcode, a unique number combination, or a BLE beacon.
[0051] The meter is configured in the field using the mobile device. The secondary interface on the meter is used for this purpose. In the process, the mobile device also transfers the IRKs to the meter.
[0052] In particular, each Active IRK pair has a fixed, limited lifetime. Before this lifetime expires, both communication partners agree on a new Active IRK pair.
[0053] According to the invention, a performance-optimized identification procedure for metering applications is therefore obtained.
[0054] The invention describes the configuration of a communication module (RNA) separate from the meter during production, during initial commissioning in the field, and during field use of both devices. It describes how to establish permanent, performance-optimized, and secure communication between the two devices.
[0055] According to the invention, one or more RNA modules are coupled to a meter via BLE, which serves to communicate the meter data. Depending on the network technology implemented in the RNA module, the meter data is transmitted or data is received using different network technologies. Pairing with BLE security is performed to connect the meter and module. For battery operation of the meter and module, it is ensured that with BLE communication, the power consumption for identification, authentication, and encryption is predictably low in every application, never affecting power consumption and / or limiting functionality.
[0056] Further features, effects, and advantages of the invention will become apparent from the following description of a preferred embodiment of the invention and the accompanying figures. Each of these figures shows a schematic diagram: Figure 1a meter arrangement with a protection and an operating state.
[0057] Figure 1shows a meter arrangement 2 containing a meter 4 and a communication module 6. In operating state B, both are paired, i.e., connected to each other for mutual NB communication via a dedicated, secured, identified, and authenticated short-range (NB) communication connection 8 (indicated here by a double arrow). The connection is created by pairing meter 4 and communication module 6. In the example, the NB communication connection 8 is a Bluetooth Low Energy (BLE) connection, with pairing being performed using BLE Security or the "LE Secure Connections" security protocol in the "Just Works" version.
[0058] A method for pairing the meter 4 with the communication module 6 to establish the communication connection 8 between the two is carried out as follows: First, the communication module 6 is brought into a protective environment 10. In the example, the protective environment 10 is an area of a production facility for the communication module 6. A first identity key K1 is assigned or assigned to the communication module 6 for subsequent pairing. The key K1 here is an IRK (Identity Resolving Key). This is generated using the communication module 6 itself. For this purpose, a pairing partner 12 is assigned to the communication module 6 within the protective environment 10. The communication module 6 and the pairing partner 12 perform a pre-pairing process. This essentially corresponds to the usual pairing according to the processes or technologies: BLE / BLE Security / LE Secure Connections / Just Works.However, the pairing takes place within the protection environment 10 and with the pairing partner 12 instead of the intended counter 4 and is therefore referred to as "pre-pairing." In addition to the key K1, a key K2 is also generated in the pairing partner 12 during this pre-pairing, which is assigned or allocated to the counter 4 as a second identity key K2. Both keys K1 and K2 are thus generated and exchanged within the protection environment 10, so that both the communication module 6 and the pairing partner 12 have both keys K1 and K2 at the end of the pre-pairing.
[0059] To ensure the corresponding assignments are unique, an identifier I1 is assigned to communication module 6 and key K1, and an identifier I2 is assigned to counter 4 and key K2. In the example, the identifiers I1 and I2 are QR codes or their inherent information.
[0060] Both keys K1 and K2 are stored within the protection environment 10 in the communication module 6. They are also stored in the pairing partner 12.
[0061] Thanks to the protective environment 10, it is ensured that there is no opportunity for a third party to obtain the pairing secret (keys K1, K2), e.g. by eavesdropping on the pre-pairing process or by a MITM (man-in-the-middle) attack, etc.
[0062] The communication module 6 can now be removed from the protective environment 10 and moved to its location in the field (in Fig. 1 (indicated by an arrow). The installation location is within range of the communication connection 8 to the meter 4. Thus, the communication module 6 is in operating state B.
[0063] For pairing, both keys K1 and K2 must now be transferred to the counter via a protected path, i.e., "securely," and stored there. Here, too, no third parties should be given any opportunity to obtain keys K1 and K2.
[0064] The keys K1, K2 are therefore transferred from the pairing partner 12 to a protected data object 14 within the protection environment 10 and stored there, where they are protected against unauthorized access by suitable security mechanisms (access protection, encryption, authentication, etc.). The specific or "correct" assignment of the communication module 6 and the meter 4 and the keys K1, K2 is also stored in the data object 14 in the form of the identifiers I1, I2.
[0065] The protected data object 14 is now removed from the protective environment 10 and transported to meter 4 (again indicated by an arrow). In the example, this occurs by transporting it in an installer's mobile device 20. From the data object 14, the keys K1, K2 are then introduced into the meter 4 or stored there along the protected path 11 (indicated by a dashed border). In the example, this is an encrypted, authenticated, and identified infrared connection to the mobile device 20. The meter 4 is therefore located outside the protective environment 10. The protected path 11 also includes the introduction into the data object 14 and its transport to meter 4. This is indicated by the respective dashed lines.
[0066] The "transport" can also consist of a protected data transmission, e.g., via a WAN connection. Data object 14 then does not need to be carried with or in the mobile device. The WAN connection then extends, for example, from a central unit (not shown), in which keys K1, K2 are stored, via mobile device 20 near meter 4 to meter 4. The WAN connection is only established when needed, i.e., when the installer is on-site at meter 4 and wants to insert keys K1, K2 into it.
[0067] To ensure that the keys are stored in the "correct" meter 4, which is actually assigned to the communication module 6, or the correct meter arrangement 2, the two identifiers I1, I2 are checked against the identifiers I1, I2 stored in the data object 14.
[0068] Finally, the meter 4 and the communication module 6 are paired outside the protective environment 10, i.e. in the field, i.e. in operating state B, using the two keys K1, K2.
[0069] To operate the communication connection 8, both the communication module 6 and the counter 4 each have a standard communication hardware 16. In this case, this is a commercially available BLE chip. To further increase the security of the keys K1, K2, the counter 4 and the communication module 6 each contain a secure element 18. This element has a higher security standard than the hardware 16. For example, the keys K1, K2 are stored more securely in element 18. The secure element 18 is also responsible for generating higher-quality random numbers (better random number generator), message encryption and decryption, calculating hash numbers, etc.
[0070] Furthermore, in the communication module 6, within the protection environment 10, after the identity keys K1, K2 were generated, the possibility of importing further such keys was permanently deactivated.
[0071] In an alternative variant, the keys K1, K2 are henceforth considered the "first" keys. Further "second" identity keys K3 are then generated for the communication module 6 and K4 for the meter 4 in operating state B. Thus, the communication module 6 and the meter 4 are located outside the protected environment 10. This is intended to safeguard against, for example, doubts about the security of the first keys K1, K2. However, the corresponding generation of the keys K3, K4 is tap-proof, since the exchange of the generated keys (transmission of key K3 to the meter 4 and of key K4 to the communication module 6) takes place via the secure communication connection 8 in a protected manner (indicated by dashed arrows). From then on, the second keys K3, K4 are used instead of the first keys K1, K2 for pairing the meter 4 and the communication module 6, or for the communication connection 8.
[0072] In order to be able to use the second keys K3, K4 for other purposes, these are also transferred to the data object 14 via a protected path (indicated by a dashed border) and stored there. List of reference symbols
[0073] 2Meter arrangement 4Meter 6Communication module 8Communication connection 10Protective environment 11Path (protected) 12Pairing partner 14Data object 16Communication hardware 18Secure element 20Mobile device BOperating state SProtection state K1,3Identity key (first) K2,4Identity key (second) 11,2Identification
Claims
1. Method for pairing a meter (4) with a communication module (6) for establishing a communication connection (8) between the two, in which method: - the communication module (6) is allocated a first identity key (K1) for the pairing, and - the meter (4) is allocated a second identity key (K2) for the pairing, the method comprising: - generating the first identity key (K1) and the second identity key (K2) within a protective environment (10) with the aid of the communication module (6) by way of pre-pairing the communication module (6) within the protective environment (10) with a paring partner (12) situated within the protective environment (10), - storing the first identity key (K1) and the second identity key (K2) within the protective environment (10) in the communication module (6) and in the pairing partner (12), the communication module (6) and the pairing partner (12) being situated within the protective environment (10), and - subsequently removing the communication module (6) from the protective environment (10), - taking and keeping available the first identity key (K1) and the second identity key (K2) within the protective environment (10) from the pairing partner (12) into a protected data object (14) and keeping available the first identity key (K1) and the second identity key (K2) in the protected data object (14), - removing the protected data object (14) from the protective environment (10) and taking the protected data object (14) to the meter (4) and in so doing removing the first identity key (K1) and the second identity key (K2) within the data object (14) from the protective environment, - storing the first identity key (K1) and the second identity key (K2) out of the protected data object (14) on a protected path (11) in the meter (4), the meter (4) being situated outside the protective environment (10), - pairing the meter (4) and the communication module (6) outside the protective environment (10) using the first identity key (K1) and the second identity key (K2).
2. Method according to Claim 1, characterized in that a short-range connection is established as communication connection (8).
3. Method according to Claim 2, characterized in that IRKs are used as identity keys (K1, K2).
4. Method according to any of Claims 1 to 3, characterized in that proceeding from both identity keys (K1, K2) as first identity keys, second identity keys (K3, K4) are generated if communication module (6) and meter (4) are situated outside the protective environment (10), and the second identity keys (K3, K4) are used instead of the first identity keys (K1, K2) for the further pairing.
5. Method according to Claim 4, characterized in that the second identity keys (K3, K4) are kept available in a protected data object (14).
6. Method according to any of Claims 1 to 3, characterized in that in the communication module (6) and / or in the meter (4) a possibility for generating and / or importing further identity keys (K3, K4) is permanently switched off or is not provided at all.
7. Method according to any of the preceding claims, characterized in that the communication module (6) and / or the meter (4) contain(s) communication hardware (16) for operating the communication connection (8), and, besides the communication hardware (16), a secure element (18) that manages the identity keys (K1-K4) is provided in the communication module (6) and / or in the meter (4).
8. Method according to any of the preceding claims, characterized in that the identity keys (K1, K2) are stored in the meter (4) with the aid of a mobile device (20) situated outside the protective environment (10).
9. Method according to any of the preceding claims, characterized in that a unique identifier (11, 12) is conferred on the meter (4) and / or the communication module (6) and an assignment between the identifier (11, 12) and the identity keys (K1-K4) is kept available within the protective environment (10) and / or in the protected data object (14) .
