Patent ID: 9663066
Date: 2017-05-30
CPC Classifications: B60R

Claim:
1. A registration device for registering ID codes, the registration device comprising: three or more storages, each storage set to allow for registration of a maximum of an n number of ID codes, where n is a natural number of two or greater; and a registration controller that registers ID codes to the storage; wherein each of the three or more storages includes an n+1 number of ID code storage regions configured to store n+1 ID codes, respectively, and a management data storage region that stores management data indicating whether the ID code of each ID code storage region of the corresponding storage is valid or invalid; and wherein the registration controller includes instructions configured to: write an input ID code to the three or more storages in a sequential manner, wherein the input ID code is written to an invalid ID code storage region among the n+1 number of ID code storage regions of each of the storages in accordance with the management data of the corresponding storage without deleting the ID code of each ID code storage region to maintain the ID code of each ID code storage region, update the management data of the three or more storages in a sequential manner after the input ID code is written to the three or more storages to validate the invalid ID code storage region of each of the storages, update the management data, when an ID code is stored in each of the n+1 number of ID code storage regions after the input ID code is written, to invalidate at least one ID code storage region excluding the invalid ID code storage region to which the input ID code has been written, and compare the management data of the three or more storages to determine whether the management data of the three or more storages include two or more management data that are identical to one another and, when the management data of the three or more storages include two or more management data that are identical to one another, determine that said two or more management data that are identical to one another are correct and the remainder of the management data are incorrect, and use the ID codes in accordance with said two or more management data that are identical to one another among the management data of the three or more storages, wherein the management data has n+1 bits corresponding to the n+1 ID code storage regions, respectively, and the management data indicates a maximum of an n number of valid ID codes, and wherein, before completing the updating the management data in the management data storage region, the registration controller is configured not to perform operations to the ID code storage regions storing ID codes other than the last input ID code.