Program update device and electronic lock system

The program update device simplifies the process of updating electric lock systems by using a selector switch and button switches to transmit program information, addressing the inefficiencies of traditional ROM replacement methods.

JP7538548B2Active Publication Date: 2024-08-22KUROI ELECTRIC CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022081470
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2024-08-22
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

Existing electric lock systems require time-consuming and labor-intensive processes for updating programs, often necessitating the replacement of ROM, which poses a risk of inefficiency and inconvenience.

Method used

A program update device equipped with a selector switch, program identification unit, first and second button switches, and a program transmitter, allowing for easy program updates by operating these components to transmit program information to the electric lock device.

Benefits of technology

Enables simple and efficient program updates in electric lock systems by facilitating the transmission of program information through a series of switch operations, reducing the time and effort required for updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007538548000002
    Figure 0007538548000002
  • Figure 0007538548000007
    Figure 0007538548000007
  • Figure 0007538548000013
    Figure 0007538548000013
Patent Text Reader

Abstract

To provide a program update apparatus and an electric lock system that can easily update a program.SOLUTION: A program update apparatus 10 includes a rotary switch 14, a program specification unit 111 that specifies program identification information that identifies a program to be acquired from a USB memory based on a state of the rotary switch 14, button switches 151 and 152, a program acquisition unit 112 that acquires, from the USB memory, program information identified by the specified program identification information when the button switch 151 is pressed, and a program transmission unit 115 that transmits the acquired program information to an electric lock apparatus when the button switch 152 is pressed.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a program update device and an electronic lock system. [Background technology]

[0002] An electric lock system that includes an electric lock control device and an electric lock has been proposed (see, for example, Patent Document 1). In this electric lock system, when a user inputs an ID code into the electric lock control device using a magnetic card or the like, the electric lock control device authenticates whether the ID code matches a preregistered code, and if they match, sends a control signal to the electric lock, which is an instruction to unlock the electric lock, and the electric lock unlocks when it receives the ID code from the electric lock control device. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 10-18660 Summary of the Invention [Problem to be solved by the invention]

[0004] However, in the electric lock system described in Patent Document 1, if it becomes necessary to update the program for controlling the electric lock system, for example due to an update to the electric lock system, it may be necessary to replace the electric lock control device or the ROM (Read Only Memory) built into the electric lock, which may make the program update work time-consuming.

[0005] The present invention has been made in consideration of the above-mentioned circumstances, and has an object to provide a program update device and an electric lock system that can easily perform program updates. [Means for solving the problem]

[0006] In order to achieve the above object, a program updating device according to the present invention comprises: A changeover switch capable of taking a plurality of connection states; a program identification unit that identifies program identification information for identifying program information to be acquired from an external storage device based on a connection state of the changeover switch; A first button switch; a program acquisition unit that acquires, when the first button switch is pressed, the program information identified by the specified program identification information from the external storage device; a second button switch different from the first button switch; The device further includes a program transmission unit that transmits the acquired program information to an electric lock device when the second button switch is pressed. Effect of the Invention

[0007] According to the present invention, the program information stored in the external storage device can be transmitted to the electric lock device simply by operating the changeover switch, the first button switch, and the second button switch. Therefore, the program information used in the electric lock device can be easily updated. [Brief description of the drawings]

[0008] [Figure 1] 1 is a schematic diagram of an electric lock system according to an embodiment of the present invention. [Diagram 2] 1 is a block diagram showing a hardware configuration of an electric lock system according to an embodiment of the present invention. [Diagram 3] 2 is a block diagram showing the functional configuration of an electric lock device according to an embodiment. FIG. [Figure 4] 1 is a schematic diagram of a program updating device according to an embodiment; [Diagram 5] 1 is a block diagram showing a functional configuration of a program updating device according to an embodiment; [Figure 6] 5 is a diagram showing an example of information stored in a program identification information storage unit according to the embodiment; FIG. [Figure 7] 1 is a sequence diagram for explaining the operation of an electric lock system according to an embodiment of the present invention. [Figure 8]1 is a sequence diagram for explaining the operation of an electric lock system according to an embodiment of the present invention. [Figure 9] 4 is a flowchart showing an example of the flow of an electric lock control process executed by an electric lock device according to an embodiment. [Figure 10] 4 is a flowchart showing an example of the flow of an electric lock control process executed by an electric lock device according to an embodiment. [Figure 11] 1 is a state transition diagram showing the state transition of an electric state device when an electric lock device of an embodiment is executing an electric lock control process. FIG. [Figure 12] 5 is a flowchart showing an example of the flow of a program update process executed by the program update device according to the embodiment. [Figure 13] 5 is a flowchart showing an example of the flow of a program update process executed by the program update device according to the embodiment. [Figure 14] 4 is a state transition diagram showing state transition of the program update device when the program update device according to the embodiment is executing a program update process; FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] A program update device according to an embodiment of the present invention will be described below with reference to the drawings. The program update device according to the present embodiment includes a changeover switch that can be in a plurality of connection states, a program specification unit that specifies program identification information that identifies program information to be obtained from an external storage device based on the connection state of the changeover switch, a first button switch, a program acquisition unit that acquires program information identified by the specified program identification information from the external storage device when the first button switch is pressed, a second button switch different from the first button switch, and a program transmission unit that transmits the acquired program information to an electric lock device when the second button switch is pressed.

[0010] The electric lock system according to the present embodiment includes an electric lock device 9 and a program update device 10 capable of wireless communication with the electric lock device 9 and for updating a program used in the electric lock device 9, as shown in FIG. 1 for example. The electric lock device 9 is installed at the entrance of an accommodation facility or a house, keeps the door locked, unlocks the door when a user brings a card key close, and locks the door again when it detects that the door is closed. The electric lock device 9 includes a locking unit 92 that locks the door by restricting the turning of the door knob N1, a wireless module 93, display units 951 and 952, and a control unit 91. The electric lock device 9 also includes a battery (not shown) that supplies a driving power source for the electric lock device 9. The wireless module 93 communicates with the wireless communication unit 2 of the program update device 10 using a communication protocol based on a short-range wireless communication standard specified by ISO / ICE, for example. When the wireless module 93 receives a frame transmitted from the program update device 10, it transfers the received frame to the control unit 91. Furthermore, when the wireless module 93 receives a frame transferred from the control unit 91 , it transmits the received frame to the program update device 10 .

[0011] The wireless module 93 also functions as a so-called contactless card reader that reads out card key identification information and card key type information held by the card key when the card key is brought close to the wireless module 93, generates a frame including the read card key identification information and card key type information, and transfers the frame to the control unit 91. There are at least two types of card keys: an entry card key used by a guest of the accommodation facility when entering the room, and a program update card key used by, for example, an accommodation facility manager or a maintenance contractor for the electric lock device 9 when updating a program used in the electric lock device 9. The display unit 951 has an LED (Light Emitting Diode) that emits, for example, green light, and lights up or flashes based on a control signal input from the control unit 91. The display unit 952 has an LED that emits, for example, red light, and lights up or flashes based on a control signal input from the control unit 91.

[0012] The control unit 91 is realized by, for example, an RX231 group microcomputer (manufactured by Renesas Electronics Corporation), and as shown in FIG. 2, includes a CPU (Central Processing Unit) 901, a RAM (Random Access Memory) 902, a ROM (Read Only Memory) 903, a flash memory 904, a locking interface (hereinafter referred to as "I / F") 9051, a communication I / F 9052, a display I / F 9054, and a bus 909 connecting these. The ROM 903 stores programs for realizing various functions of the control unit 91. The RAM 902 is used as a working area for the CPU 901. The locking I / F 9051 is connected to the locking unit 92, and when locking instruction information is input from the control unit 91, the locking I / F 9051 generates a locking signal for driving the locking unit 92 so that the door is in a locked state, and outputs the locking signal to the locking unit 92. On the other hand, when unlocking instruction information is input from the control unit 91, the locking I / F 9051 generates an unlocking signal for driving the locking unit 92 so that the door is unlocked, and outputs the signal to the locking unit 92.

[0013] The communication I / F 9052 is connected to the wireless module 93, and upon receiving a frame transferred from the wireless module 93, extracts information contained in the received frame and transfers it to the CPU 901. Furthermore, upon receiving information to be transmitted from the CPU 901 to the program update device 10, the communication I / F 9052 generates a frame including the received information and transfers it to the wireless module 93. Furthermore, upon receiving a frame including card key identification information and card key type information read from the card key by the wireless module 93, the communication I / F 9052 extracts the card key identification information and card key type information contained in the received frame and transfers it to the CPU 901. Upon receiving control information for controlling the display mode of the display units 951 and 952 from the control unit 91, the display I / F 9054 generates a control signal corresponding to the received control information and outputs it to the display units 951 and 952.

[0014] The CPU 901 loads the program stored in the ROM 903 into the RAM 902 and executes it, thereby functioning as a card information acquisition unit 911, an unlocking determination unit 912, a locking unit control unit 913, a communication determination unit 914, a display control unit 915, a program acquisition unit 916, a decryption processing unit 917, an error presence / absence determination unit 918, an authentication unit 919, an update unit 920, and a start control unit 991, as shown in FIG. 3. The RAM 902 shown in FIG. 2 is further provided with a program buffer 921 for temporarily storing a program acquired from the program update device 10, as shown in FIG. 3. The flash memory 904 shown in FIG. 2 further includes a program storage unit 941 for storing a program for controlling the locking unit 92, and a flag storage unit 942, as shown in FIG. 3. The flag storage unit 942 stores flag information indicating whether or not the program information already stored in the program storage unit 941 is to be updated using the program stored in the program buffer 921. This flag information is set to "update permitted" when updating of the program information is permitted, and is set to "update not permitted" when updating of the program information is not permitted.

[0015] The card information acquisition unit 911 acquires the card key identification information and card key type information read by the wireless module 93. Then, based on the program stored in the program storage unit 941, the card information acquisition unit 911 notifies the unlocking determination unit 912 or the communication determination unit 914 of the card key identification information in accordance with the acquired card key type information. Here, when the card key type information indicates that the card key is the above-mentioned card key for entering a room, the card information acquisition unit 911 notifies the unlocking determination unit 912 of the card key identification information. On the other hand, when the card key type information indicates that the card key is the above-mentioned card key for program update, the card information acquisition unit 911 notifies the communication determination unit 914 of the card key identification information.

[0016] When the unlocking determination unit 912 is notified of the card key identification information from the card information acquisition unit 911, the unlocking determination unit 912 determines whether or not the notified card key identification information is card key identification information that can permit unlocking of the door, based on the program stored in the program storage unit 941. Here, when the unlocking determination unit 912 determines that the card key identification information is card key identification information that can permit unlocking of the door, it notifies the locking unit control unit 913 of unlocking command information that commands unlocking of the door. When the locking unit control unit 913 is notified of the above-mentioned unlocking command information from the unlocking determination unit 912, the locking unit control unit 913 controls the locking unit 92 to unlock the door, based on the program stored in the program storage unit 941.

[0017] When the card key identification information is notified from the card information acquisition unit 911, the communication determination unit 914 determines whether or not a connection with the program update device 10 is established. When the communication determination unit 914 determines that a connection with the program update device 10 is established, the display control unit 915 controls the display units 951 and 952 to have a preset display mode, for example, such that both display units 951 and 952 are turned on.

[0018] After the communication determination unit 914 determines that a connection between the program acquisition unit 916 and the program update device 10 has been established, the program acquisition unit 916 acquires encrypted program information contained in a frame transmitted from the program update device 10. Then, the program acquisition unit 916 notifies the decryption processing unit 917 of the acquired program information. Here, after the program acquisition unit 916 starts acquiring the program information transmitted from the program update device 10, the display control unit 915 controls the display units 951 and 952 so that the display units 951 and 952 blink alternately during the acquisition period in which the program information is acquired. Then, when the program acquisition unit 916 completes acquiring the program information transmitted from the program update device 10, the display control unit 915 controls the display units 951 and 952 so that both the display units 951 and 952 are turned off.

[0019] The decryption processing unit 917 executes a decryption process on the encrypted program information notified from the program acquisition unit 916, and then stores it in the program buffer 921. Here, the program information is encrypted with a common key shared by the electric lock device 9 and the program update device 10, and the decryption processing unit 917 executes a decryption process on the program information using the common key. The program information is encrypted by a common key encryption method such as AES (Advanced Encryption Standard).

[0020] The error determination unit 918 determines whether or not there is an error based on the checksum information added to the program information acquired by the program acquisition unit 916. If the error determination unit 918 determines that there is no error in the program information, it sets the flag information stored in the flag storage unit 942 to program update possible. On the other hand, if the error determination unit 918 determines that there is an error in the program information, it sets the flag information stored in the flag storage unit 942 to program update impossible.

[0021] When the flag information stored in the flag storage unit 942 is set to program updatable, the authentication unit 919 extracts security code information included in the program information stored in the program buffer 921, and determines whether the extracted security code information matches preset security code information. When the authentication unit 919 determines that the security code information extracted from the program information matches preset security code information, the update unit 920 updates the program information stored in the program storage unit 941 by using the program information stored in the program buffer 921.

[0022] The start-up control unit 991 judges whether the battery voltage of the electric lock device 9 is equal to or higher than the reference voltage required for restart. If the start-up control unit 991 judges that the battery voltage of the electric lock device 9 is equal to or higher than the reference voltage required for restart, the start-up control unit 991 sets the flag information stored in the flag storage unit 942 to "unupdatable" and then restarts the electric lock device 9.

[0023] As shown in Fig. 4, the program update device 10 according to the present embodiment includes a device body 1 and a wireless communication unit 2 connected to the device body 1 via a signal line L1. The device body 1 includes a USB (Universal Serial Bus) terminal block 12, a rotary switch 14, button switches 151 and 152, display units 161 and 162, and a control unit 11. The device body 1 includes a flat rectangular box-shaped housing 1a for collectively housing the USB terminal block 12, the rotary switch 14, the button switches 151 and 152, the display units 161 and 162, and the control unit 11, and a connecting member 1c provided on the housing 1a for connecting a strap 1b to the housing 1a. The wireless communication unit 2 includes a wireless module 13 and a flat rectangular box-shaped housing 2a for housing the wireless module 13 inside. The housings 1a and 2a are formed of, for example, resin. The rotary switch 14 has one common terminal (not shown) and multiple selection terminals (not shown), and is a changeover switch that can take multiple connection states in which the common terminal is connected to any one of the multiple selection terminals by rotating a gripping portion (not shown) connected to the common terminal.

[0024] The wireless module 13 communicates with the electric lock device 9 using a communication protocol based on the short-range wireless communication standard specified by, for example, ISO / ICE. When the wireless module 13 acquires a frame transmitted from the electric lock device 9, it transfers the acquired frame to the control unit 11. Furthermore, when the wireless module 13 acquires a frame transferred from the control unit 11, it transmits the acquired frame to the electric lock device 9. The display unit 161 has, for example, an LED that emits green light, and lights up or blinks based on a control signal input from the control unit 11. Furthermore, the display unit 162 has, for example, an LED that emits red light, and lights up or blinks based on a control signal input from the control unit 11.

[0025] The control unit 11 is realized by, for example, an RX231 group microcomputer (manufactured by Renesas Electronics Corporation), and includes, as shown in Fig. 2, a CPU 101, a RAM 102, a ROM 103, a flash memory 104, a USB I / F 1051, a communication I / F 1052, an input I / F 1053, a display I / F 1054, and a bus 109 connecting these. The ROM 103 stores programs for realizing various functions of the control unit 11. The RAM 102 is used as a working area for the CPU 101. The USB I / F 1051 is connected to a USB terminal block 12, and transfers program information stored in a USB memory to the control unit 11 when, for example, a USB memory is connected to the USB terminal block 12.

[0026] The communication I / F 1052 is connected to the wireless module 13 of the wireless communication unit 2 via a signal line L1, and when it acquires a frame transferred from the wireless module 13, it extracts information contained in the acquired frame and transfers it to the control unit 11. In addition, when the communication I / F 1052 acquires information to be transmitted from the control unit 11 to the electric lock device 9, it generates a frame including the acquired information and transfers it to the wireless module 13. The input I / F 1053 is connected to the rotary switch 14 and the button switches 151 and 152, and generates status information indicating the status of the rotary switch 14 from the output level of the rotary switch 14 and transfers it to the control unit 11. In addition, the input I / F 1053 is connected to the button switches 151 and 152, and when it detects that the button switches 151 and 152 are pressed, it generates press detection information and transfers it to the control unit 11. When control information for controlling the display mode of display units 161 and 162 is input from control unit 11 to display I / F 1054, display I / F 1054 generates a control signal corresponding to the input control information and outputs it to display units 161 and 162.

[0027] The CPU 101 loads the program stored in the ROM 103 into the RAM 102 and executes it, thereby functioning as a program identification unit 111, a program acquisition unit 112, a display control unit 113, an encryption processing unit 114, and a program transmission unit 115, as shown in FIG. 5. Also, the flash memory 904 shown in FIG. 2 has a program identification information storage unit 141 that stores program identification information for identifying a program acquired from a USB memory connected to the USB terminal block 12, and a program storage unit 142 that stores program information acquired from an external storage device, as shown in FIG. 5. The program identification information storage unit 141 stores the program identification information in association with output level information indicating the output level of the corresponding rotary switch 14, as shown in FIG. 6, for example. In the example shown in FIG. 6, the file name of a file in which a program is written is adopted as the program identification information.

[0028] The program identification unit 111 identifies program identification information for identifying a program to be acquired from the USB memory connected to the USB terminal block 12 based on the state of the rotary switch 14. Here, the USB memory stores program information used in the electric lock device 9 using, for example, a personal computer. For example, when the output level of the rotary switch 14 is set to "R[3]" shown in FIG. 6, the program identification unit 111 identifies the program identification information "File[3].mot". When the button switch 151 is pressed, the program acquisition unit 112 acquires the program information identified by the program identification information identified by the program identification unit 111 from the USB memory connected to the USB terminal block 12. Here, when the program acquisition unit 112 starts acquiring the program information from the USB memory, it notifies the display control unit 113 of acquisition start notification information. Then, the program acquisition unit 112 stores the acquired program information in the program storage unit 142. In addition, when the program acquisition unit 112 completes acquiring the program information from the USB memory, it notifies the display control unit 113 of acquisition completion notification information.

[0029] When the display control unit 113 is notified of the above-mentioned acquisition start notification information from the program acquisition unit 112, the display control unit 113 controls the display units 161 and 162 so that the display units 161 and 162 are in a first display mode set in advance during the acquisition period during which the program acquisition unit 112 is acquiring the program information from the USB memory. Here, the display control unit 113 controls the display units 161 and 162 so that, for example, the display unit 161 is turned on and the display unit 162 is turned off during the above-mentioned acquisition period. Then, the display control unit 113 controls the display units 161 and 162 so that the display units 161 and 162 are in a second display mode set in advance, which is different from the first display mode, at the end of the above-mentioned acquisition period when the above-mentioned acquisition completion notification information is notified from the program acquisition unit 112. Here, the display control unit 113 blinks the display unit 161 a predetermined number of times (for example, five times) while maintaining the off state of the display unit 162 at the end of the above-mentioned acquisition period, and then turns off the display unit 161.

[0030] When the button switch 152 is pressed, the encryption processing unit 114 encrypts the program information stored in the program storage unit 142. Here, the encryption processing unit 114 encrypts the program information using, for example, a common key encryption method. The encryption processing unit 114 notifies the program transmission unit 115 of the encrypted program information. When the program transmission unit 115 is notified of the encrypted program information from the encryption processing unit 114, it transmits the notified program information to the electric lock device 9. Here, when the program transmission unit 115 starts transmitting the program information, it notifies the display control unit 113 of transmission start notification information. Then, when the program transmission unit 115 completes transmitting the program information, it notifies the display control unit 113 of transmission completion notification information.

[0031] Here, when the display control unit 113 acquires the above-mentioned transmission start notification information, during the transmission period in which the program transmission unit 115 transmits the program information to the electric lock device 9, the display control unit 113 controls the display units 161 and 162 so that the display units 161 and 162 are in a third display mode set in advance. Here, the display control unit 113 controls the display units 161 and 162 so that, for example, the display units 161 and 162 alternately blink during the above-mentioned transmission period. In addition, the display control unit 113 controls the display units 161 and 162 so that the display units 161 and 162 are in a fourth display mode set in advance, which is different from the third display mode, at the end of the above-mentioned transmission period in which the above-mentioned transmission completion notification information is notified from the program transmission unit 115. Here, the display control unit 113 controls the display units 161 and 162 so that, for example, while maintaining a state in which the display unit 162 is turned off, the display unit 161 is turned off after blinking a preset number of times.

[0032] Next, the operation of the electric lock system according to the present embodiment will be described with reference to FIG. 7 and FIG. 8. First, as shown in FIG. 7, when the power is turned on to the program update device 10 and a start-up operation is performed, the program update device 10 turns on the display unit 162 emitting red light (hereinafter referred to as the "display unit (red)") while keeping the display unit 161 emitting green light (hereinafter referred to as the "display unit (green)") off (step S1). Next, it is assumed that an operator who performs the updating work of the program used in the electric lock device 9 connects a USB memory storing new program information to the USB terminal block 12, operates the rotary switch 14 to select a number corresponding to the program to be updated, and presses the button switch 151. In this case, the program update device 10 specifies a program identified by the program identification information corresponding to the output level of the rotary switch 14 from among the program identification information stored in the program identification information storage unit 141 (step S2). Next, the program update device 10 starts acquiring the new program information stored in the USB memory (step S3). Thereafter, program update device 10 alternately blinks display unit (green) 161 and display unit (red) 162 during the acquisition of new program information (step S4). Next, when acquisition of the program information is completed (step S5), program update device 10 turns off display unit (red) 162 and blinks display unit (green) 161 a preset number of times and then turns off (step S6). As a result, the new program information stored in the USB memory is stored in program storage unit 142 of program update device 10.

[0033] When the worker brings the card key for program update close to the wireless module 93 arranged on the door, the electric lock device 9 detects the card key for program update (step S7). When the electric lock device 9 determines that a connection with the wireless communication unit 2 is established (step S8), the electric lock device 9 turns on the display unit 951 for emitting green light (hereinafter, appropriately referred to as "display unit (green)") while keeping the display unit 952 for emitting red light (hereinafter, appropriately referred to as "display unit (red)") off (step S9). Next, when the worker presses the button switch 152 of the program update device 10, the program update device 10 determines that a connection with the electric lock device 9 is established (step S10). In this case, the program update device 10 executes an encryption process for encrypting the program information stored in the program storage unit 142 (step S11). After that, the encrypted program information is transmitted from the program update device 10 to the electric lock device 9 (step S12). 8, after starting to transmit the program information, the program update device 10 alternately blinks the display units 161, 162 during the transmission period in which the program information is being transmitted to the electric lock device 9 (step S13). On the other hand, after starting to acquire the program information transmitted from the program update device 10, the electric lock device 9 alternately blinks the display unit (green) 951 and the display unit (red) 952 during the acquisition period in which the program information is being acquired (step S14).

[0034] Next, it is assumed that the program update device 10 has determined that the transmission of the program information has been completed (step S15). In this case, the program update device 10 keeps the display unit (red) 162 turned off, and blinks only the display unit (green) 161 a preset number of times, and then turns it off (step S16). On the other hand, it is assumed that the electric lock device 9 has determined that the reception of the program information transmitted from the program update device 10 has been completed (step S17). In this case, the electric lock device 9 executes a decryption process on the acquired program information, stores it in the program buffer 921 (step S18), and then turns off both the display unit (green) 951 and the display unit (red) 952 (step S19). Next, it is assumed that the electric lock device 9 has determined that there is no error in the program information based on the checksum information added to the program information stored in the program buffer 921 (step S20). In this case, the electric lock device 9 sets the flag information stored in the flag storage unit 942 to "update possible" indicating that the program information stored in the program storage unit 941 can be updated (step S21). After that, in response to the flag information stored in the flag storage unit 942 being set to "update possible", the electric lock device 9 determines whether the security code information included in the program information matches the security code information set in advance, and determines that the security code information matches (step S22). In this case, the electric lock device 9 starts updating the program information stored in the program storage unit 941 using the program information stored in the program buffer 921 (step S23). Then, during the update period in which the program information is updated, the electric lock device 9 turns off the display unit (red) 952 and blinks the display unit (green) 951 (step S24). Next, it is determined that the electric lock device 9 has completed updating the program information stored in the program storage unit 941 (step S25). In this case, the electric lock device 9 turns off both the display units 951 and 952 (step S26) and then restarts (step S27). After the restart, the electric lock device 9 operates based on the updated program information.

[0035] Thereafter, when a user of the room in which the electric lock device 9 is installed brings the card key for entering the room close to the wireless module 93 disposed on the door, the electric lock device 9 detects the card key for entering the room (step S28). Then, the electric lock device 9 determines that the door can be unlocked based on the updated program information (step S29). In this case, the electric lock device 9 unlocks the door (step S30).

[0036] Next, the electric lock control process executed by the electric lock device 9 according to the present embodiment will be described with reference to FIG. 9 and FIG. 10. Here, it is assumed that the electric lock device 9 has already been powered on. In addition, it is assumed that, in parallel with this electric lock control process, a process of controlling the locking unit to lock the door when it is detected that the door has changed from an open state to a closed state is executed. Furthermore, it is assumed that the flag information stored in the flag storage unit 942 is set to "unupdateable" at the start of this electric lock control process. First, as shown in FIG. 9, the card information acquisition unit 911 judges whether or not a card key for program update has been detected (step S201). Here, the card information acquisition unit 911 acquires the card identification information and the card type information read by the wireless module 93, and if the acquired card type information indicates that the card key is for program update, it judges that the card key for program update has been detected. Here, if the card information acquisition unit 911 judges that the card key for program update has not been detected (step S201: No), the process of step S215 described later is executed. On the other hand, it is assumed that the card information acquisition unit 911 has determined that a card key for program update has been detected (step S201: Yes). In this case, the communication determination unit 914 determines whether or not a connection has been established with the wireless communication unit 2 of the program update device 10 (step S202). Here, if the communication determination unit 914 determines that a state in which a connection has not been established with the wireless communication unit 2 has continued for a preset waiting time after detecting the card key for program update (step S202: No), the process of step S215 described below is executed.

[0037] On the other hand, when the communication determination unit 914 determines that a connection has been established with the wireless communication unit 2 (step S202: Yes), the display control unit 915 turns on the display unit (green) 951 (step S203). Next, the program acquisition unit 916 determines whether or not reception of program information transmitted from the program update device 10 has started (step S204). Here, if the program acquisition unit 916 determines that a connection has been established and then does not receive program information during a preset waiting time (step S204: No), the display control unit 915 turns off the display unit (green) 951 (step S205), and the process of step S215 described later is executed. On the other hand, when the program acquisition unit 916 determines that reception of program information has started (step S204: Yes), the display control unit 915 alternately blinks the display unit (green) 951 and the display unit (red) 952 (step S206).

[0038] Next, the program acquisition unit 916 judges whether or not the reception of the program information is completed (step S207). Here, if the program acquisition unit 916 judges that the reception of the program information is not yet completed (step S207: No), it judges whether or not the time elapsed since the start of the acquisition of the program information has passed a preset upper limit reception time corresponding to the upper limit of the time for acquiring the program information (step S208). Here, if the program acquisition unit 916 judges that the above-mentioned elapsed time has not yet passed the upper limit reception time (step S208: No), the process of step S206 is executed again. On the other hand, it is assumed that the program acquisition unit 916 judges that the above-mentioned elapsed time has passed the upper limit reception time (step S208: Yes). In this case, the display control unit 915 turns off the display units 951 and 952, and the program acquisition unit 916 erases the information stored in the program buffer 921 (step S209). Thereafter, the process of step 215 described later is executed.

[0039] On the other hand, when the program acquisition unit 916 determines that the reception of the program information is completed (step S207: Yes), the decryption processing unit 917 executes a decryption process on the encrypted program information acquired by the program acquisition unit 916, and then stores the program information in the program buffer 921 (step S210). Next, the display control unit 915 turns off the display units 951 and 952 (step S211). Next, as shown in FIG. 10, the error presence / absence determination unit 918 determines whether the program information stored in the program buffer 921 contains an error (step S212). Here, it is assumed that the error presence / absence determination unit 918 determines that the program information contains an error (step S212: Yes). In this case, the display control unit 915 turns on the display unit (red) 952 for a certain period of time, and the error presence / absence determination unit 918 erases the program information stored in the program buffer 921 (step S213). Then, the process of step S215 described later is executed. On the other hand, if the error presence / absence determining unit 918 determines that the program information does not contain an error (step S212: No), it sets the flag information stored in the flag storage unit 942 to "update allowed" (step S214).

[0040] Next, the authentication unit 919 judges whether or not the flag information stored in the flag storage unit 942 is set to "update allowed" (step S215). If the authentication unit 919 judges that the flag information is set to "update not allowed" (step S215: No), the process of step S226 described later is executed. On the other hand, if the authentication unit 919 judges that the flag information is set to "update allowed" (step S215: Yes), the authentication unit 919 judges whether or not the security code information included in the program information stored in the program buffer 921 matches the preset security code information (step S216). Here, if the authentication unit 919 judges that the security code information included in the program information does not match the preset security code information (step S216: No), the authentication unit 919 erases the program information stored in the program buffer 921 (step S217), and the process of step S226 described later is executed. On the other hand, it is assumed that the authentication unit 919 judges that the security code information included in the program information matches the preset security code information (step S216: Yes). In this case, the update unit 920 starts updating the program information stored in the program storage unit 941 by using the program information stored in the program buffer 921 (step S218). Next, the display control unit 915 causes the display unit (green) 951 to blink (step S219).

[0041] Thereafter, the update unit 920 judges whether or not the update of the program information is completed (step S220). Here, when the update unit 920 judges that the update of the program information is not yet completed (step S220: No), it judges whether or not an update error has occurred (step S221). Here, the update error corresponds to, for example, a hang-up occurring during the writing process of the program information to the program storage unit 941. When the update unit 920 judges that an update error has not occurred (step S221: No), the process of step S220 is executed again. On the other hand, when the update unit 920 judges that an update error has occurred (step S221: Yes), the display control unit 915 turns on the display unit (red) 952 (step S222), and the electric lock control process ends. On the other hand, when the update unit 920 judges that the update of the program information is completed (step S220: Yes), the display control unit 915 turns off the display unit (green) 951 (step S223).

[0042] Next, the start-up control unit 991 judges whether the battery voltage of the electric lock device 9 is equal to or higher than the reference voltage required for restart (step S224). If the start-up control unit 991 judges that the battery voltage of the electric lock device 9 is lower than the reference voltage required for restart (step S224: No), the electric lock device 9 is not restarted and the process of step S226 described below is executed. On the other hand, if the start-up control unit 991 judges that the battery voltage of the electric lock device 9 is equal to or higher than the reference voltage required for restart (step S224: Yes), the start-up control unit 991 sets the flag information stored in the flag storage unit 942 to "update not possible" and then restarts the electric lock device 9 (step S225).

[0043] Next, the card information acquisition unit 911 judges whether or not a card key for entering the room is detected (step S226). Here, the card information acquisition unit 911 acquires the card identification information and card type information read by the wireless module 93, and judges that a card key for entering the room is detected if the acquired card type information indicates that the card key is for entering the room. Here, if the card information acquisition unit 911 judges that a card key for entering the room is not detected (step S226: No), the process of step S201 is executed again. On the other hand, if the card information acquisition unit 911 judges that a card key for entering the room is detected (step S226: Yes), the unlocking judgment unit 912 judges whether or not the door can be unlocked (step S227). Specifically, the unlocking judgment unit 912 judges whether or not the card key identification information acquired by the card information acquisition unit 911 is card key identification information that can permit unlocking of the door based on the program stored in the program storage unit 941. Here, if the unlocking determination unit 912 determines that the door cannot be unlocked (step S227: No), the process of step S201 is executed again. On the other hand, if the unlocking determination unit 912 determines that the door can be unlocked (step S227: Yes), the locking unit control unit 913 controls the locking unit 92 to unlock the door (step S228). After that, the process of step S201 is executed again.

[0044] Here, the operation of the electric lock device 9 according to this embodiment will be described based on the state transition diagram shown in FIG. 11. First, when the electric lock device 9 is powered on, it enters a state of waiting for confirmation of flag information stored in the flag storage unit 942 (ST201). Here, if the flag information is set to "update not possible", the electric lock device 9 remains in a standby state (ST202). Then, when the electric lock device 9 detects a card key for program update, it enters a state of waiting for the start of communication with the program update device 10 (ST203). Here, when the electric lock device 9 establishes a connection with the program update device 10, it enters a state of receiving program information (ST204). Then, the electric lock device 9 maintains this state until the reception of the program information is completed. Also, when the electric lock device 9 completes the reception of the program information, it enters a state of waiting for the result of the error presence / absence determination as to whether or not the program information contains an error (ST205). Here, when the electric lock device 9 determines that the program information contains an error, it turns on the display unit (red) 952 for a certain period of time to display an error (ST206), and then goes back to the standby state (ST202). On the other hand, when the electric lock device 9 determines that the program information does not contain an error, it turns on the flag information stored in the plug storage unit 942 to be set to "update possible" (ST207). Then, the electric lock device 9 goes back to the state of waiting for confirmation of the flag information stored in the flag storage unit 942 (ST201). Here, when the flag information is set to "update possible", the electric lock device 9 goes to the state of waiting for confirmation of the security code information included in the program information (ST208). Then, when the electric lock device 9 determines that the security code information included in the program information does not match the preset security code information, it goes to the standby state as it is (ST202). On the other hand, when the electric lock device 9 determines that the security code information included in the program information matches the preset security code information, it goes to the state of waiting for update of the program information stored in the program storage unit 941 (ST209). Here, when the electric lock device 9 determines that the battery voltage of the electric lock device 9 is less than the reference voltage required for restarting, the electric lock device 9 goes into a standby state (ST202).On the other hand, when the electric lock device 9 determines that the battery voltage of the electric lock device 9 is equal to or higher than the reference voltage required for restarting, the electric lock device 9 enters a state in which it is executing an update process of the program information stored in the program storage unit 941 using the program information stored in the program buffer 921 (ST210). If the above-mentioned update error occurs during the execution of the update process, the electric lock device 9 turns on the display unit (red) 952 to display an error (ST211). On the other hand, when the update of the program information is completed, the electric lock device 9 enters a standby state (ST202).

[0045] Next, the program update process executed by the program update device 10 according to the present embodiment will be described with reference to Figs. 12 and 13. Here, it is assumed that the power supply of the program update device 10 has already been turned on, and the display control unit 113 has turned off the display unit (green) 161 and turned on the display unit (red) 162. First, as shown in Fig. 12, the program identification unit 111 judges whether or not a USB memory is connected to the USB terminal block 12 (step S101). Here, if the program identification unit 111 judges that a USB memory is not connected to the USB terminal block 12 (step S101: No), the process of step S110 described later is executed. On the other hand, it is assumed that the program identification unit 111 judges that a USB memory is connected to the USB terminal block 12 (step S101: Yes). In this case, the program identification unit 111 judges whether or not the button switch 151 corresponding to the "READ" display has been pressed (step S102). Here, if the program identification unit 111 determines that the button switch 151 has not been pressed during a preset waiting time after the USB memory is connected to the USB terminal block 12 (step S102: No), the process of step S110 described below is executed.

[0046] On the other hand, when the program identification unit 111 determines that the button switch 151 has been pressed (step S102: Yes), the program identification unit 111 refers to the program identification information stored in the program identification information storage unit 141 and identifies the program identification information for identifying the program to be acquired from the USB memory connected to the USB terminal block 12 based on the state of the rotary switch 14 (step S103). Next, the program acquisition unit 112 starts acquiring the program information identified by the program identification information identified by the program identification unit 111 from the USB memory connected to the USB terminal block 12 (step S104). Here, the program acquisition unit 112 stores the acquired program information in the program storage unit 142. In addition, the display control unit 113 turns on the display unit (green) 161 and turns off the display unit (red) 162 during the acquisition period in which the program information is acquired from the USB memory (step S105).

[0047] Next, the program acquisition unit 112 judges whether or not the acquisition of the program information from the USB memory is completed (step S106). Here, when the program acquisition unit 112 judges that the acquisition of the program information is completed (step S106: Yes), the display control unit 113 blinks the display unit (green) 161 a preset number of times while keeping the display unit (red) 162 in an off state, and then turns it off (step S107). On the other hand, when the program acquisition unit 112 judges that the acquisition of the program information from the USB memory is not yet completed (step S106: No), it judges whether or not the elapsed time from the start of the acquisition of the program information has passed a preset upper limit acquisition time corresponding to the upper limit of the time for acquiring the program information (step S108). Here, when the program acquisition unit 112 judges that the elapsed time has not yet passed the upper limit acquisition time (step S108: No), the process of step S106 is executed again. On the other hand, it is assumed that the program acquisition unit 112 determines that the elapsed time has exceeded the upper acquisition time limit (step S108: Yes). In this case, the display control unit 113 turns off both the display units 161 and 162, and erases the information stored in the program storage unit 142 by the program acquisition unit 112 (step S109).

[0048] Thereafter, the encryption processing unit 114 judges whether or not the button switch 152 corresponding to the "WRITE" display has been pressed (step S110). If the encryption processing unit 114 judges that the button switch 152 has not been pressed (step S110: No), the process of step S101 is executed again. On the other hand, if the encryption processing unit 114 judges that the button switch 152 has been pressed (step S110: Yes), the program transmission unit 115 judges whether or not a connection has been established with the electric lock device 9 (step S111). If the program transmission unit 115 judges that a connection has not been established with the electric lock device 9 for a preset waiting time after the button switch 152 has been pressed (step S111: No), the process of step S101 is executed again.

[0049] On the other hand, when the program transmission unit 115 determines that a connection has been established with the electric lock device 9 (step S111: Yes), as shown in FIG. 13, the encryption processing unit 114 executes an encryption process to encrypt the program information stored in the program storage unit 142 (step S112). Next, the program transmission unit 115 starts transmitting the encrypted program information to the electric lock device 9 (step S113). Here, the display control unit 113 alternately blinks the display unit (green) 161 and the display unit (red) 162 during the transmission period in which the program transmission unit 115 transmits the program information to the electric lock device 9 (step S114). Next, the program transmission unit 115 determines whether the transmission of the program information to the electric lock device 9 has been completed (step S115). Here, when the program transmission unit 115 determines that the transmission of the program information is completed (step S115: Yes), the display control unit 113 turns off the display unit (red) 162, blinks the display unit (green) 161 a preset number of times, and then turns it off (step S116). On the other hand, when the program transmission unit 115 determines that the transmission of the program information to the electric lock device 9 is not yet completed (step S115: No), it determines whether or not the elapsed time from the start of the transmission of the program information has passed a preset upper limit transmission time corresponding to the upper limit of the time for transmitting the program information (step S117). Here, when the program transmission unit 115 determines that the elapsed time has not yet passed the upper limit transmission time (step S117: No), the process of step S115 is executed again. On the other hand, it is assumed that the program transmission unit 115 determines that the elapsed time has passed the upper limit transmission time (step S117: Yes). In this case, the display control unit 113 turns off the displays 161 and 162 (step S118). After that, the process of step S101 is executed again.

[0050] Here, the operation of the program update device 10 according to the present embodiment will be described based on the state transition diagram shown in FIG. 14. First, when the power is turned on, the program update device 10 goes into a standby state (ST101). Here, when the button switch 151 corresponding to the "WRITE" display is pressed, the program update device 10 goes into a state of waiting for the start of communication with the electric lock device 9 (ST102). Here, when the program update device 10 establishes a connection with the electric lock device 9, it goes into a state of transmitting program information (ST103). Here, when the program update device 10 determines that the above-mentioned upper limit transmission time has elapsed, it goes into a standby state (ST101). On the other hand, when the program update device 10 completes the transmission of the program information to the electric lock device 9, it blinks the display unit (green) 161 a preset number of times (ST104) and goes into a standby state (ST101). Here, when the USB memory is connected to the USB terminal block 12 and the button switch 152 corresponding to the "READ" display is pressed, the program update device 10 enters a state in which it is acquiring program information from the USB memory (ST105). Here, when the program update device 10 determines that the above-mentioned upper limit acquisition time has elapsed, it enters a standby state (ST101). On the other hand, when the program update device 10 completes acquiring the program information from the USB memory, it blinks the display unit (green) 161 a preset number of times (ST104) and enters a standby state (ST101).

[0051] As described above, according to the program update device 10 of the present embodiment, the program information stored in the USB memory can be transmitted to the electric lock device 9 simply by operating the rotary switch 14 and the button switches 151 and 152. Therefore, the program used in the electric lock device 9 can be easily updated.

[0052] Although the embodiment of the present invention has been described above, the present invention is not limited to the configuration of the above-mentioned embodiment. For example, the changeover switch may be realized by a toggle switch, or may be realized by combining a mechanical relay, a semiconductor relay, etc.

[0053] In the embodiment, the program update device 10 may have a battery that serves as a power source for the device itself, and a voltage monitoring unit that detects the output voltage of the battery. When the voltage monitoring unit determines that the detected output voltage of the battery is less than a preset reference voltage, the display control unit 113 may blink the display unit (red) 162. The voltage monitoring unit may also detect the output voltage of the battery immediately after the button switches 151 and 152 are pressed. When the detected output voltage is less than the reference voltage, the display control unit 113 may light up or blink the display units 161 and 162 in different display modes depending on the type of the pressed button switches 151 and 152.

[0054] In the embodiment, an example has been described in which the program update device 10 is used to update the program information used in the electric lock device 9. However, the present invention is not limited to this, and the program update device 10 may be used to update program information used in other devices having a short-range wireless communication function.

[0055] Although the embodiments and modifications of the present invention have been described above, the present invention is not limited to these. The present invention includes appropriate combinations of the embodiments and modifications, and appropriate modifications thereto. [Industrial Applicability]

[0056] The present invention is suitable as a program update device used for updating program information used in a device having a short-range wireless communication function. [Explanation of symbols]

[0057] 1: device body, 1a, 2a: housing, 1b: strap, 1c: connecting member, 2: wireless communication unit, 9: electric lock device, 10: program update device, 11, 91: control unit, 12: USB terminal block, 13, 93: wireless module, 14: rotary switch, 92: locking unit, 101, 901: CPU, 102, 902: RAM, 103, 903: ROM, 104, 904: flash memory, 109, 909: bus, 111: program identification unit, 112: program acquisition unit, 113, 915: display control unit, 114: encryption processing unit, 115: program transmission unit, 141: program identification Information storage unit, 142, 941: program storage unit, 151, 152: button switch, 161, 162, 951, 952: display unit, 911: card information acquisition unit, 912: unlocking determination unit, 913: locking unit control unit, 914: communication determination unit, 916: program acquisition unit, 917: decryption processing unit, 918: error presence / absence determination unit, 919: authentication unit, 920: update unit, 991: start control unit, 921: program buffer, 942: flag storage unit, 1051: USB I / F, 1052, 9052: communication I / F, 1053: input I / F, 1054, 9054: display I / F, 9051: locking I / F, N1: knob

Claims

1. A selector switch that can assume a plurality of connection states; a program identification unit that identifies program identification information for identifying program information to be acquired from the external storage device based on a connection state of the changeover switch; a first button switch; a program acquisition unit that acquires, when the first button switch is pressed, the program information identified by the specified program identification information from the external storage device; a second button switch different from the first button switch; and a program transmission unit that transmits the acquired program information to the electric lock device when the second button switch is pressed. Program update device.

2. at least one display; and a display control unit that controls the at least one display unit so that during an acquisition period in which the program acquisition unit is acquiring the program information from the external storage device, the at least one display unit is in a preset first display mode, and at the end of the acquisition period, the at least one display unit is in a preset second display mode different from the first display mode, and during a transmission period in which the program transmission unit is transmitting the program information to the electric lock device, the at least one display unit is in a preset third display mode, and at the end of the transmission period, the at least one display unit is in a preset fourth display mode different from the third display mode.

2. The program update device according to claim 1.

3. The device further includes an encryption processing unit that encrypts the acquired program information when the second button switch is pressed, The program transmission unit transmits the encrypted program information to the electric lock device.

3. The program updating device according to claim 1.

4. an electric lock device; and a program update device that transmits new program information to the electric lock device in order to update program information used in the electric lock device; The program update device A changeover switch that can take multiple connection states; a program identification unit that identifies program identification information for identifying program information to be acquired from the external storage device based on a connection state of the changeover switch; a first button switch; a program acquisition unit that acquires, when the first button switch is pressed, the program information identified by the specified program identification information from the external storage device; a second button switch different from the first button switch; and a program transmission unit that transmits the acquired program information to the electric lock device when the second button switch is pressed. Electric locking system.

Citation Information

Patent Citations

  • Program transfer device

    JP1984158458A

  • ROM writer

    JP1990049298A

  • Controller for electric lock

    JP1998018660A

  • Keyless entry system

    JP2001032587A

  • Information processing apparatus

    JP2013191154A