Method for re-registering a smart electricity meter
11477174 · 2022-10-18
Assignee
Inventors
- Henri TEBOULLE (RUEIL MALMAISON, FR)
- Ziv Roter (Rueil Malmaison, FR)
- Jérémie Sergi (Rueil Malmaison, FR)
Cpc classification
H04L63/0428
ELECTRICITY
H04L2463/041
ELECTRICITY
H04Q2209/60
ELECTRICITY
H04Q9/00
ELECTRICITY
Y04S20/30
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
Y02B90/20
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
H04L9/32
ELECTRICITY
Abstract
A modem of a smart electricity meter obtains, following a registration in the powerline communication network of the ad hoc type, routing information and encryption information, by exchanges of messages in the powerline communication network. The smart electricity meter saves in non-volatile memory the routing information and the encryption information, the routing information being saved in association with information representing an instant at which the backup is made. At the time of a subsequent re-registration of the smart electricity meter following a disconnection of the powerline communication network, the smart electricity meter retrieves the routing and encryption information previously saved in the non-volatile memory, updates it by deleting any route information that is no longer valid, and uses it to communicate in the powerline communication network.
Claims
1. A method for re-registering a smart electricity meter in an ad hoc powerline communication network, wherein, following a registration in the powerline communication network during which a modem of the smart electricity meter has obtained routing information as well as encryption information by exchanges of messages in the powerline communication network, the method comprises: saving, by said smart electricity meter, in non-volatile memory routing information and encryption information, the routing information being saved in association with information representing an instant at which the saving is performed; and, in a subsequent re-registration of the smart electricity meter following a disconnection from the powerline communication network, the method comprises: retrieval, by said smart electricity meter, of the routing and encryption information previously saved in the non-volatile memory; updating, by said smart electricity meter, of the routing information by deleting therefrom any route information that has lapsed between the instant at which the saving is performed and an instant of retrieval, by the modem, of the saved routing information; use, by the modem for communicating in the powerline communication network, of the encryption information retrieved and the routing information updated, wherein the routing information comprises an address allocated to said smart electricity meter for identifying said smart electricity meter in the powerline communication network and a routing table describing routes in said powerline communication network, each route being associated with time validity information, and the updating of the routing information relates to the deletion of each route the associated time validity information of which after updating shows lapsing of said route.
2. The method according to claim 1, wherein said smart electricity meter saves in non-volatile memory the routing table on deletion of one or more routes from the routing table used by the modem for communicating in the powerline communication network, and on addition of one or more routes in said routing table used by the modem for communicating in the powerline communication network.
3. The method according to claim 1, wherein said smart electricity meter saves the routing table in non-volatile memory at regular intervals.
4. The method according to claim 1, wherein the encryption information comprises an encryption key used by the modem for communicating in an encrypted manner in the powerline communication network.
5. The method according to claim 4, wherein the encryption key is saved in non-volatile memory in an encrypted manner.
6. The method according to claim 4, wherein said smart electricity meter saves the encryption key in non-volatile memory on reception of a message renewing said encryption key.
7. The method according to claim 1, wherein, when the updating of the routing information shows that said routing information has all lapsed, the modem performs the re-registration by exchanges of messages in the powerline communication network in order to re-obtain the routing information and the encryption information.
8. The method according to claim 1, wherein, the smart electricity meter implementing a mechanism for checking the presence of a communication link governing the status of the state of the powerline communication network, the modem performs the re-registration by exchanges of messages in the powerline communication network in order to re-obtain the routing information and the encryption information when the status of the state of the powerline communication network has lapsed.
9. The method according to claim 1, wherein the smart electricity meter comprises an application, as well as: a unit controlling the application; a unit controlling the modem; a non-volatile memory accessible to the unit controlling the application but not to the unit controlling the modem; and a volatile memory accessible to the unit controlling the modem but not to the unit controlling the application; and wherein the routing information and the encryption information are saved in non-volatile memory by the unit controlling the application on behalf of the unit controlling the modem and in that the unit controlling the modem uses the volatile memory for storing and updating the routing information and the encryption information used by the modem for communicating in the powerline communication network.
10. A non-transitory storage medium storing a computer program comprising instructions causing execution, by a smart electricity meter, of the a method according to claim 1, when said instructions are read and executed by a processor of said smart electricity meter, wherein the method is for re-registering a smart electricity meter in an ad hoc powerline communication network, wherein, following a registration in the powerline communication network during which a modem of the smart electricity meter has obtained routing information as well as encryption information by exchanges of messages in the powerline communication network, the method comprises: saving, by said smart electricity meter, in non-volatile memory routing information and encryption information, the routing information being saved in association with information representing an instant at which the saving is performed; and, in a subsequent re-registration of the smart electricity meter following a disconnection from the powerline communication network, the method comprises: retrieval, by said smart electricity meter, of the routing and encryption information previously saved in the non-volatile memory; updating, by said smart electricity meter, of the routing information by deleting therefrom any route information that has lapsed between the instant at which the saving is performed and an instant of retrieval, by the modem, of the saved routing information; use, by the modem for communicating in the powerline communication network, of the encryption information retrieved and the routing information updated, wherein the routing information comprises an address allocated to said smart electricity meter for identifying said smart electricity meter in the powerline communication network and a routing table describing routes in said powerline communication network, each route being associated with time validity information, and the updating of the routing information relates to the deletion of each route the associated time validity information of which after updating shows lapsing of said route.
11. A smart electricity meter to be used in an ad hoc powerline communication network, wherein, following a registration in the powerline communication network during which a modem of the smart electricity meter has obtained routing information and encryption information by exchanges of messages in the powerline communication network, said smart electricity meter electronics circuitry configured for: saving in non-volatile memory routing information and encryption information, the routing information being saved in association with information representing an instant at which the saving is performed; and, at the time of a subsequent re-registration of the smart electricity meter following a disconnection of the powerline communication network: retrieving routing and encryption information previously saved in the non-volatile memory; updating the routing information by deleting therein any route information that has lapsed between the instant at which the saving is performed and an instant of retrieval, by the modem, of the routing information saved; using, by the modem, for communicating in the powerline communication network, the encryption information retrieved and the routing information updated, wherein the routing information comprises an address allocated to said smart electricity meter for identifying said smart electricity meter in the powerline communication network and a routing table describing routes in said powerline communication network, each route being associated with time validity information, and the updating of the routing information relates to the deletion of each route the associated time validity information of which after updating shows lapsing of said route.
12. The smart electricity meter according to claim 11, wherein the smart electricity meter comprises an application, as well as: a unit controlling the application; a unit controlling the modem; a non-volatile memory accessible to the unit controlling the application but not to the unit controlling the modem; and a volatile memory accessible to the unit controlling the modem but not to the unit controlling the application; and wherein the routing information and the encryption information are saved in non-volatile memory by the unit controlling the application on behalf of the unit controlling the modem, and wherein the unit controlling the modem uses the volatile memory for storing and updating the routing information and the encryption information used by the modem for communicating in the powerline communication network.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The features of the invention mentioned above, as well as others, will emerge more clearly from the reading of the following description of an example embodiment, said description being made in relation to the accompanying drawings, among which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DETAILED DESCRIPTION
(10) The invention detailed below is implemented in a powerline communication network that is an ad hoc routing network, e.g. in accordance with the G3-PLC standard, such as the powerline communication network 101. According to a preferred embodiment, the powerline communication network is in accordance with the G3-PLC standard.
(11)
(12) The control unit AMCU 320 is associated with a non-volatile memory ANVM 310, such as a flash memory. The non-volatile memory ANVM 310 comprises memory areas intended to store a keychain KSTORE 311 wherein an encrypted version C_GMK of the encryption key GMK is included. The encrypted version C_GMK of the encryption key GMK is determined by the modem MDM 251 and is saved in the non-volatile memory ANVM 310 by the application APP 252 on behalf of the modem MDM 251. This aspect is described below.
(13) The non-volatile memory ANVM 310 also comprises memory areas intended to save routing information used by the modem MDM 251 to communicate in the powerline communication network 101. These backups preferentially include a saved copy 315 of the routing table RT, as well as a saved copy of the address S_ADDR 314 allocated to said smart electricity meter C 120 for identifying said smart electricity meter C 120 in the powerline communication network 101. These backups preferentially also include a saved copy 313 of the identifier PAN_ID of the powerline communication network 101. This routing information is thus saved in the non-volatile memory ANVM 310 by the application APP 252 on behalf of the modem MDM 251. This aspect is also described below.
(14) The backups made in the non-volatile memory ANVM 310 by the application APP 252 on behalf of the modem MDM 251 aim to enable the smart electricity meter C 120 to re-register quickly in the powerline communication network 101, as detailed below.
(15) The control unit MMCU 330 is associated with a volatile memory MVM 340, such as a random access memory RAM. The volatile memory MVM 340 is, by structure of the smart electricity meter C 120, inaccessible for the control unit AMCU 320. The volatile memory MVM 340 comprises memory areas intended to store the encryption key GMK, preferably in encrypted form PGMK 341 in order to avoid being legible in clear by dumping of the volatile memory MVM 340. The encrypted version of the encryption key GMK stored in the volatile memory MEM 340 is obtained by the modem MDM 251 by encryption by means of an encryption key, referred to as the secret key, preconfigured (like the encryption key OTP_PSK) in the control unit MMCU 330 and therefore not accessible to the control unit AMCU 320.
(16) The volatile memory MVM 340 also comprises memory areas intended to store the routing information used by the modem MDM 251 to communicate in the powerline communication network 101. Thus the volatile memory MVM 340 preferentially comprises memory areas for: storing the routing table RT 345 that the modem MDM 251 uses for selecting routes in the powerline communication network 101; and storing the address S_ADDR 343 that the modem MDM 251 uses as an identifier for communicating in the powerline communication network 101.
(17) Preferentially, the volatile memory MVM 340 preferentially comprises a memory area for in addition: storing the identifier PAN_ID 342 in the powerline communication network 101.
(18) The data stored in the volatile memory MVM 340 are continually used by the modem MDM 251 for communicating in the powerline communication network 101 until the smart electricity meter C 120 in question is disconnected therefrom.
(19) It should be noted that the control unit MMCU 330 is provided with a real-time clock RTC enabling the modem MDM 251 to have available an absolute time reference, that is to say a time reference that remains consistent after disconnection and subsequent re-registration of the electricity meter C 120 in question in the powerline communication network 101. This means that, on re-registration in the powerline communication network 101, the smart electricity meter C 120 in question is directly synchronised in time with the other devices, namely the concentrator device DC 110 and the other smart electricity meters C 120, which makes it possible to avoid any desynchronisation of a mechanism checking the presence of a communication link of the “keep alive” type governing the status of the state of the powerline communication network 101.
(20)
(21) The smart electricity meter C 120 in question then comprises, connected by a communication bus 410: a processor or CPU (central processing unit) 401, a random access memory RAM 402, for example the memory MVM 340; a read only memory ROM 403; a storage unit 404, such as a hard disk HDD (hard disk drive), or a storage medium reader, such as an SD (Secure Digital) card reader; a set of inputs/outputs 405 enabling the control unit to communicate with other units and/or memories and/or components of the smart electricity meter C 120.
(22) The processor CPU 401 is capable of executing instructions loaded in the RAM memory 402 from the ROM memory 403, from an external memory (not shown), from a storage medium (such as an SD card), or from a communication network other than the powerline communication network 101. When the smart electricity meter C 120 in question is powered up, the processor 201 is capable of reading instructions from the RAM memory 202 and executing them. These instructions form a computer program causing an implementation, by the processor 201, of all or some of the algorithms and steps described below in relation to the control unit concerned.
(23) All or some of the algorithms and steps described below can be implemented in software form by the execution of a set of instructions by a programmable machine, for example a DSP (digital signal processor) or a microcontroller, or be implemented in hardware form by a machine or a dedicated component, for example an FPGA (field-programmable gate array) or an ASIC (application-specific integrated circuit).
(24) In general terms, each control unit of the smart electricity meter C 120 thus comprises electronic circuitry configured to implement all or some of the algorithms and steps described below in relation to the control unit concerned.
(25)
(26) In a step 501, the smart electricity meter C 120 is brought into service and detects the presence of the powerline communication network 101. The smart electricity meter C 120 then seeks to integrate or reintegrate, following a disconnection, the powerline communication network 101.
(27) In a step 502, the modem MDM 251 seeks to retrieve from the application APP 252 any identifier PAN_ID that had previously been saved by the application APP 252 on behalf of the modem MDM 251. If such an identifier PAN_ID was previously saved by the application APP 252, this means that the smart electricity meter C 120 was previously connected to the powerline communication network 101 and was disconnected therefrom. Otherwise this means that it is the very first commissioning of the smart electricity meter C 120.
(28) In a step 503, the modem MDM 251 checks whether the application APP 252 has supplied the identifier PAN_ID sought. If such is the case, a step 508 is performed; otherwise a step 504 is performed.
(29) In the step 504, the modem MDM 251 performs a registration in the powerline communication network 101, as could have been dealt with in relation to
(30) In a step 505, the modem MDM 251 effects a discovery of routes in the powerline communication network 101. Thus, in a step 506, by virtue of the discovery of routes, the modem MDM 251 fills in its routing table RT.
(31) The routing information and the encryption information thus obtained by the modem MDM 251 in the steps 504 and 506 are stored by the modem MDM 251, as already described in relation to
(32) In a step 507, the application APP 252 saves, in the non-volatile memory ANVM 310, the routing information and the encryption information on behalf of the modem MDM 251, as already described in relation to
(33) In the step 508 and in a step 509, the modem MDM 251 retrieves, by means of the application APP 252, the routing information and the encryption information previously saved by the application APP 252 in the non-volatile memory ANVM 310 on behalf of the modem MDM 251. More particularly, in the step 508, the modem MDM 251 obtains the address S_ADDR previously allocated by the concentrator device DC 110 to said smart electricity meter C 120, as well as the encrypted version C_GMK of the encryption key GMK. The modem MDM 251 deciphers, by means of its secret key, the encrypted version C_GMK of the encryption key GMK so as to obtain the encryption key GMK. With a view to storage in the volatile memory MVM 340, the modem MDM 251 can regenerate a new encrypted version of the encryption key GMK, as already mentioned. In addition, in the step 509, the modem MDM 251 obtains its routing table RT, as saved by the application APP 252.
(34) Then, in a step 510, the modem MDM 251 performs a temporal updating of the routing table RT retrieved by means of the backup made by the application APP 252 on behalf of the modem MDM 251. In other words, the modem MDM 251 deletes from this routing table RT the routes that are no longer valid. For example, the routing table RT includes information on the remaining time of validity of each route described in said routing table RT. This information on the remaining validity time is continuously updated by the modem MDM 251 over time, and at re-registration the modem MDM 251 takes account of a time D between the instant at which the backup was made by the application APP 252 (represented by the aforementioned time information T) and the instant at which the routing information (and more particularly the routing table) saved is retrieved by the modem MDM 251. The modem MDM 251 then deducts the time D from the information on remaining validity time of each route entered in the routing table RT retrieved. If this gives a zero or negative result, the modem MDM 251 deletes the corresponding route from the routing table RT; otherwise the modem MDM 251 updates the information on remaining validity time with the result obtained.
(35) At the end of the step 510, the routing information and the encryption information thus obtained by the modem MDM 251 are stored by the modem MDM 251, as already described in relation to
(36) When performance of the step 510 leads to an updated routing table RT that is empty of any route, a new routing table must be constructed. This can be done by exchanges of the route discovery messages ROUTE_RQ and ROUTE_RSP of the steps 206 and 207. In a particular embodiment, a complete re-registration of the smart electricity meter C 120 in question is performed, as if it were the very first registration of said smart electricity meter C 120 in the powerline communication network 101.
(37) In addition, in a particular embodiment, when the mechanism for checking the presence of a communication link of the “keep alive” type shows, when said smart electricity meter C 120 is recommissioned, that the status of the state of the powerline communication network 101 is no longer valid, then a complete re-registration of the smart electricity meter C 120 in question is performed, as if it were the very first registration of said smart electricity meter C 120 in the powerline communication network 101.
(38)
(39) In a step 601, the modem MDM 251 detects a need to update the routing table RT currently being used, by adding or deleting one or more routes. One or more routes are thus added or removed from the routing table RT used by the modem MDM 251.
(40) In a step 602, the modem MDM 251 accordingly updates the routing table RT stored in the volatile memory MVM 340.
(41) In a step 603, the modem MDM 251 requests the application APP 252 to perform a backup, in the non-volatile memory ANVM 310, of the routing table RT thus updated, as well as time information T representing the instant at which the backup is made.
(42) Thus the routing information is saved whenever there is a change of route in the routing table RT used by the modem MDM 251.
(43) In a variant or in addition, the saving of the routing table RT in non-volatile memory is done periodically. The time information T representing the instant at which the saving is done is also saved on this occasion. This periodic saving can be initiated by the modem MDM 251 or by the application APP 252.
(44)
(45) In a step 701, the modem MDM 251 receives a message coming from the concentrator device DC 110 indicating a renewal of the encryption key GMK. A new encryption key GMK is then supplied by the concentrator device DC 110, this new encryption key being encrypted by means of the secret key of the modem MDM 251. The modem MDM 251 updates the relevant memory area of the volatile memory MVM 340 accordingly.
(46) In a step 702, the modem MDM 251 requests the application APP 252 to make a backup, in the non-volatile memory ANVM 310, of the encrypted version C_GMK of the encryption key GMK.
(47)
(48) When the modem MDM 251 obtains the identifier PAN_ID, the address S_ADDR that is allocated to it for communicating in the powerline communication network 101, and the encryption key GMK, a saving in the non-volatile memory ANVM 310 is performed in a step 801. A message SAV1_RQ from the modem MDM 251 to the application APP 252 including the information to be saved is used to do this. This message SAV1_RQ may in a variant be merged with the message OK of the step 205.
(49) When the modem MDM 251 updates the routing table RT following the exchanges of route discovery messages ROUTE_RQ and ROUTE_RSP in the steps 206 and 207, a saving in the non-volatile memory ANVM 310 is performed in a step 802. A message SAV2_RQ from the modem MDM 251 to the application APP 252 including the information to be saved is used to do this.
(50) When a renewal of the encryption key GMK is performed, a saving in the non-volatile memory ANVM 310 is made thereof in encrypted form in a step 803. A message SAV3_RQ from the modem MDM 251 to the application APP 252 including the information to be saved is used to do this.
(51) Thus, at the time of any subsequent re-registration of the smart electricity meter C 120 in the powerline communication network 101, the modem MDM 251 has routing and encryption information that can allow a rapid return to the operational state of the smart electricity meter C 120 in the powerline communication network 101.
(52)
(53) The above description takes account of a certain current hardware architecture of the smart electricity meters. More particularly, the above description takes account of the fact that the current smart electricity meters have available a non-volatile memory allocated to the control unit responsible for application questions and a volatile memory allocated to the questions of management of the MAC (medium access control) layer. A variant consists however of allocating a non-volatile memory to the modem MDM 251 to enable said modem MDM 251 to make the aforementioned backups without having recourse to the application APP 252.
(54) In a particular embodiment, when the smart electricity meter C 120 is disconnected from the powerline communication network 101 but said smart electricity meter C 120 remains electrically supplied (e.g. by a backup supply source), the routing information is saved in non-volatile memory so as to save the most recent information held.