JP3286995B2 - Locking device and writing device used therefor - Google Patents
Locking device and writing device used thereforInfo
- Publication number
- JP3286995B2 JP3286995B2 JP33145791A JP33145791A JP3286995B2 JP 3286995 B2 JP3286995 B2 JP 3286995B2 JP 33145791 A JP33145791 A JP 33145791A JP 33145791 A JP33145791 A JP 33145791A JP 3286995 B2 JP3286995 B2 JP 3286995B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- key device
- response
- output
- locking device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
- Lock And Its Accessories (AREA)
- Storage Device Security (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、施錠装置およびこの施
錠装置に用いる応答コード書込装置に関し、詳しくは扉
を物理的に閉鎖する錠本体とこれを非接触で解錠する鍵
装置とからなる施錠装置およびその関連装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a locking device and a response code writing device used for the locking device, and more particularly to a lock body for physically closing a door and a key device for unlocking the door in a non-contact manner. And related devices.
【0002】[0002]
【従来の技術】旧来の施錠装置は、錠本体の鍵穴に鍵を
挿入し、両者が接触した状態で物理的に解錠操作を行な
うものが一般的である。カード状の鍵に数ビットのコー
ドを示す穴を開けたり磁石を埋め込んだりした電子キー
と称するものも存在するが、これらは、対応する鍵穴に
カード等を差し込むことにより、開口部の位置や磁石の
位置を検出し、正規の鍵として認識できれば電磁石やモ
ータを駆動して解錠するものである。この場合、カード
の複製は容易であることから、ドアの取り付けたパネル
から多桁の数値を入力させる等の方法でセキュリティを
確保している。2. Description of the Related Art In general, a conventional locking device inserts a key into a keyhole of a lock body and physically unlocks the key in a state where both are in contact with each other. There are also electronic keys in which a hole indicating a code of several bits is drilled or a magnet is embedded in a card-like key.However, by inserting a card or the like into the corresponding keyhole, the position of the opening and the magnet Is detected, and if it can be recognized as a legitimate key, an electromagnet or a motor is driven to unlock the key. In this case, since it is easy to duplicate a card, security is ensured by, for example, inputting a multi-digit number from a panel to which a door is attached.
【0003】一方、非接触で解錠操作可能な施錠装置
は、自動車のドア用に用いられるなど用途が限定されて
いるのが現状である。これは、ノイズによる誤操作の可
能性が僅かでもあると、施錠装置としての信頼性は全く
維持できず、そもそも施錠装置としての体をなさないか
らである。非接触で解錠操作を可能とする場合には、予
め定めたコードを鍵装置から電波や超音波などで出力
し、錠本体側の受信器がこれを受け、適正なコードであ
れば解錠する構成が考えられる。On the other hand, at present, lockers that can be unlocked in a non-contact manner have limited applications, such as being used for doors of automobiles. This is because if there is only a small possibility of an erroneous operation due to noise, the reliability of the locking device cannot be maintained at all, and the locking device does not function in the first place. When unlocking operation is possible without contact, a predetermined code is output from the key device by radio waves or ultrasonic waves, and the receiver on the lock body receives this. There is a possible configuration.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、鍵装置
から解錠用のコードを発信する構成では、一つ一つの鍵
装置に固有のコードを付与する必要があり、通常こうし
たコードはPROMなどに書き込まれるから、鍵装置を
入手すればコードを解析することが容易であり、信頼性
に欠けるという問題があった。しかも、非接触で解錠操
作を可能とする構成を採ると、鍵装置から解錠に必要な
コードを外部の空間に発信することになり、解錠用のコ
ードの解析は更に容易となってしまう。このため、鍵装
置側から錠本体側に向かってコードを発信する形態の施
錠装置では、鍵装置の不法な複製(いわゆる合い鍵の製
作)を防止することが困難であった。However, in a configuration in which an unlocking code is transmitted from a key device, it is necessary to assign a unique code to each key device, and such a code is usually written in a PROM or the like. Therefore, if the key device is obtained, it is easy to analyze the code, and there is a problem that the reliability is lacking. In addition, if the unlocking operation can be performed in a non-contact manner, the code required for unlocking is transmitted from the key device to an external space, and the analysis of the unlocking code becomes easier. I will. For this reason, it is difficult to prevent an illegal duplication of the key device (a so-called duplicate key production) with a locking device that transmits a code from the key device side to the lock body side.
【0005】従って、ホテルのドアなど不特定多数によ
り扱われる施錠装置では、合い鍵の不法な複製の可能性
を考慮して、所定期間毎に錠本体と鍵装置を取り替える
のが通常であり、多大の手間と装置の無駄を生じてい
た。Therefore, in a locking device which is handled by an unspecified number of people, such as a hotel door, it is usual to replace the lock body and the key device every predetermined period in consideration of the possibility of illegal duplication of a duplicate key. Time and equipment wasted.
【0006】本発明の施錠装置は、こうした問題を解決
し、非接触で解錠可能でありながら、コードの解析や複
製が事実上不可能な施錠装置を実現することを目的とし
てなされ、次の構成を採った。The locking device of the present invention has been made to solve the above-described problems, and has an object to realize a locking device that can be unlocked in a non-contact manner, but in which code analysis and duplication are virtually impossible. The configuration was adopted.
【0007】[0007]
【課題を解決するための手段】本発明の施錠装置は、図
1のブロック図に例示するように、扉を物理的に閉鎖す
る錠本体M1と、少なくとも解錠操作を指示する指示手
段M2を有し前記錠本体M1を非接触で解錠する鍵装置
M3とを備えた施錠装置であって、前記鍵装置M3に設
けられ、指示手段M2による解錠の指示に応じて呼出コ
ードを出力するコード出力手段M4と、該呼出コードを
受け取ったとき、予めその錠本体M1と組み合わされる
鍵装置M3に固有のコードとして定義されたコードを複
数の応答コードに対してランダムな位置に含ませた信号
を順次出力する応答コード出力手段M5と、前記鍵装置
M3に設けられ、該出力された複数の応答コードを受け
取ってその鍵装置M3に固有の応答コードに対応したコ
ードを認識した直後に、予め定めたもしくは予め定めた
手続に従って生成される認識コードを出力する認識コー
ド出力手段M6と、該認識コードを、前記固有の応答コ
ードの出力後に受け取ったとき、前記錠本体M1を解錠
状態とする解錠手段M7とを備えたことを要旨とする。
ここで、鍵装置M3とやり取りされる各コードは光学的
な信号として出力される構成をとることができる。光学
的な信号によりやり取りを行なうことで、雑音に対して
強くなり、しかも指向性を付与することができるため、
施錠装置として好適である。As shown in the block diagram of FIG. 1, the lock device of the present invention comprises a lock body M1 for physically closing a door and at least an instruction means M2 for instructing an unlocking operation. And a key device M3 for unlocking the lock body M1 in a non-contact manner. The key device M3 is provided in the key device M3, and outputs a call code in response to an unlock instruction by an instruction means M2. A code output means M4 and a signal which, when receiving the call code, include a code previously defined as a code unique to the key device M3 combined with the lock body M1 in a random position with respect to a plurality of response codes. a response code output unit M5 for sequentially outputting the provided key device M3, straight which receives a plurality of response codes the output recognize code corresponding to a unique response code to the key device M3 To a recognition code output means M6 for outputting a recognition code that is generated according to a predetermined or predefined procedure, when the identification code, received after the output of the intrinsic response co <br/> over de, the The gist comprises an unlocking means M7 for unlocking the lock body M1.
Here, each code exchanged with the key device M3 can be configured to be output as an optical signal. By exchanging with optical signals, it becomes strong against noise and can give directivity,
It is suitable as a locking device.
【0008】かかる施錠装置を取り扱う物として、応答
コード書込装置の発明がなされた。その応答コード書込
装置は、施錠本体M1の対となった鍵装置M3と応答コ
ード出力手段M5とに対して、その対に固有の応答コー
ドもしくはこのコードに対応したコードを書き込む書込
手段Nを備えることを要旨とする。[0008] A response code writing device has been invented as a device that handles such a locking device. The response code writing device writes the response code unique to the key device M3 and the code corresponding to the code to the key device M3 and the response code output device M5, which are paired with the lock body M1, respectively. The gist is to provide.
【0009】[0009]
【作用】以上のように構成された本発明の施錠装置で
は、錠本体M1の解錠は、鍵装置M3と錠本体M1側と
の相互のやり取りによって実現される。以下にやり取り
を説明する。鍵装置M3に設けられた指示手段M2によ
り解錠操作を指示すると、鍵装置M3に設けられコード
出力手段M2が、呼出コードを出力する。この呼出コー
ドを受け取ったとき、応答コード出力手段M5が、予め
その錠本体M1と組み合わされる鍵装置M3に固有のコ
ードとして定義されたコードを複数の応答コードに対し
てランダムな位置に含ませた信号を順次出力する。In the locking device of the present invention configured as described above, the unlocking of the lock body M1 is realized by mutual exchange between the key device M3 and the lock body M1. The exchange will be described below. When an unlocking operation is instructed by the instructing means M2 provided in the key device M3, the code output means M2 provided in the key device M3 outputs a call code. When receiving this call code, the response code output means M5 includes a code previously defined as a code unique to the key device M3 combined with the lock body M1 at a random position with respect to the plurality of response codes. Outputs signals sequentially .
【0010】この出力された複数の応答コードは、鍵装
置M3に設けられ認識コード出力手段M6により受け取
られる。認識コード出力手段M6は、その鍵装置M3に
固有の応答コードに対応したコードを認識した直後に、
予め定めたもしくは予め定めた手続に従って生成される
認識コードを出力する。この認識コードは解錠手段M7
により受け取られる。解錠手段M7は、認識コードを、
前記固有の応答コードの出力後に受け取ると、扉を物理
的に閉鎖していた錠本体M1を解錠状態とする。The output plurality of response codes are received by the recognition code output means M6 provided in the key device M3. Immediately after recognizing the code corresponding to the response code unique to the key device M3,
A recognition code generated according to a predetermined or predetermined procedure is output. This recognition code is used for unlocking means M7.
Received by The unlocking means M7 outputs the recognition code,
When the lock is received after the output of the unique response code, the lock body M1 with the door physically closed is brought into the unlocked state.
【0011】一方、この施錠装置を取り扱う物の発明で
ある応答コード書込装置てば、書込手段Nにより、施錠
装置の対となった鍵装置M3と応答コード出力手段M5
に対して、その対に固有の応答コードもしくはこの応答
コードに対応したコードを書き込む。On the other hand, in the case of the response code writing device which is an invention of the product handling the locking device, the writing device N allows the key device M3 paired with the locking device and the response code output device M5.
, A response code unique to the pair or a code corresponding to the response code is written.
【0012】[0012]
【実施例】以上説明した本発明の構成・作用を一層明ら
かにするために、以下本発明の好適な実施例について説
明する。図2は、実施例としての施錠装置の構成例を示
す斜視図、図3は錠本体側と鍵装置の構成を示すブロッ
ク図である。DESCRIPTION OF THE PREFERRED EMBODIMENTS In order to further clarify the structure and operation of the present invention described above, preferred embodiments of the present invention will be described below. FIG. 2 is a perspective view showing a configuration example of a locking device as an embodiment, and FIG. 3 is a block diagram showing a configuration of a lock body and a key device.
【0013】本実施例では、錠本体は、ホテルのドア1
に埋め込まれており、小型モータ2により閂3を壁側の
凹部5に挿入・離脱させる閂駆動機構7、鍵装置10と
光通信により情報をやり取りすると共に閂駆動機構7を
直接駆動する錠制御装置11から構成されている。錠制
御装置11が埋め込まれた部位のドア1の表面には、開
口部が二つ設けられており、この開口部に錠制御装置1
1の筐体に取り付けられた光通信用の発光部12と受光
部13とが、臨んでいる。錠制御装置11が、応答コー
ド出力手段と、解錠手段に相当する。尚、これらの閂駆
動機構7および錠制御装置11には、図示しない電源ケ
ーブルから駆動電源が供給されている。ホテルの各ドア
1毎にこれらの錠制御装置11等が設けられており、全
ての錠制御装置11は、通信ケーブル14を介して、ホ
ストコンピュータ15と相互に通信可能に接続されてい
る。In this embodiment, the lock body is a door 1 of a hotel.
A bar drive mechanism 7 for inserting and removing the bar 3 into and from the recess 5 on the wall side by a small motor 2, a lock control for exchanging information by optical communication with the key device 10 and directly driving the bar drive mechanism 7. It is composed of a device 11. Two openings are provided on the surface of the door 1 where the lock control device 11 is embedded.
The light emitting unit 12 and the light receiving unit 13 for optical communication attached to the housing 1 face. The lock control device 11 corresponds to a response code output unit and an unlocking unit. The bar drive mechanism 7 and the lock control device 11 are supplied with drive power from a power cable (not shown). These lock control devices 11 and the like are provided for each door 1 of the hotel, and all the lock control devices 11 are communicably connected to a host computer 15 via a communication cable 14.
【0014】尚、ドア1には、ドア1を開くためのハン
ドル17も設けられており、閂3が凹部5から離脱した
状態でこのハンドル17を下方向に回転操作すれば、ラ
ッチ駆動機構19によりラッチ20が壁側の凹部から抜
けて、ドア1を開けることが可能となる。The door 1 is also provided with a handle 17 for opening the door 1. When the handle 17 is rotated downward while the bar 3 is released from the recess 5, the latch drive mechanism 19 is opened. Thereby, the latch 20 comes out of the recess on the wall side, and the door 1 can be opened.
【0015】鍵装置10は、図2に示すように、断面正
方形スティック形状の部材であり、一側面に操作ボタン
21が設けられており、その同一面に、対応するホテル
の部屋番号が記入されている。図2には図示されていな
いが、先端には、光通信を行うための発光部23と受光
部25とが設けられている(図3参照)。錠制御装置1
1の発光部12および鍵装置10の発光部23は、赤外
光を発信するLEDを用いて構成されており、その受光
部13および受光部25は、赤外光に感じるフォトダイ
オードを用いて構成されている。As shown in FIG. 2, the key device 10 is a stick-shaped member having a square cross section. An operation button 21 is provided on one side, and the room number of the corresponding hotel is written on the same surface. ing. Although not shown in FIG. 2, a light emitting unit 23 and a light receiving unit 25 for performing optical communication are provided at the tip (see FIG. 3). Lock control device 1
The light emitting unit 12 of the key device 10 and the light emitting unit 23 of the key device 10 are configured using an LED that emits infrared light. The light receiving unit 13 and the light receiving unit 25 use a photodiode that senses infrared light. It is configured.
【0016】錠制御装置11と鍵装置10の内部構成に
ついて説明する。図3に示すように、錠制御装置11
は、制御プログラムを記憶したROMおよび作業用のR
AMを内蔵し入出力ポートを備えたワンチップマイクロ
プロセッサ(以下、MPUと呼ぶ)31、この施錠装置
に固有の応答コードを記憶するEEPROM33を備え
る。一方、鍵装置10は、錠制御装置11と同様、MP
U41とEEPROM43とから構成されている。MP
U31,MPU41は、その出力ポートを介して発光部
12,発光部23を直接駆動し、位相変調のかかった信
号を出力することができる。また、入力ポートをセンス
して、互いに相手方の出力する信号を読み取ることがで
きる。The internal configuration of the lock control device 11 and the key device 10 will be described. As shown in FIG. 3, the lock control device 11
Is a ROM storing a control program and a working R
The locking device includes a one-chip microprocessor (hereinafter, referred to as an MPU) 31 having an input / output port and a built-in AM, and an EEPROM 33 for storing a response code unique to the locking device. On the other hand, like the lock control device 11, the key device 10
It comprises a U41 and an EEPROM 43. MP
The U31 and MPU41 can directly drive the light emitting unit 12 and the light emitting unit 23 through their output ports, and can output a signal with phase modulation. Further, by sensing the input port, signals output from each other can be read.
【0017】錠制御装置11と鍵装置10のEEPRO
M33,43には、ホストコンピュータ15により同時
に同一の応答コードが書き込まれるが、書き込みの手法
については、後述する。また、鍵装置10のMPU41
は、操作ボタン21の操作を割込信号源としており、操
作ボタン21が操作されると図4に示す操作ボタン割込
ルーチンを実行する。MPU41は、受光部25からの
信号を読み取り、発光部23を制御して、錠制御装置1
1との通信を実現する。EEPRO of lock control device 11 and key device 10
The same response code is written into M33 and M43 at the same time by the host computer 15. The writing method will be described later. Also, the MPU 41 of the key device 10
Uses the operation of the operation button 21 as an interrupt signal source, and executes the operation button interrupt routine shown in FIG. 4 when the operation button 21 is operated. The MPU 41 reads a signal from the light receiving unit 25, controls the light emitting unit 23, and
1 is realized.
【0018】一方、錠制御装置11のMPU31は、受
光部13からの信号を読み取り発光部12を制御して鍵
装置10との通信を実現する。MPU31は、図5に示
す応答コード処理ルーチンを定常的に実行している。M
PU31は、受光部13からの信号を割込信号として扱
うこともでき、割込マスクが解除された場合には、図6
に示す割込処理ルーチンを実行する。各図に示した処理
は、互いにやり取りするコードを参照し合って行なわれ
るので、逐次参照図面を変えて以下説明するが、理解の
便を図るため、図4のフローチャートに示した各ステッ
プを400番台の数字で、図5のフローチャートに示し
た各ステップを500番台の数字で、図6のフローチャ
ートに示した各ステップを600番台の数字で、各々示
すものとする。On the other hand, the MPU 31 of the lock control device 11 reads a signal from the light receiving unit 13 and controls the light emitting unit 12 to realize communication with the key device 10. The MPU 31 constantly executes the response code processing routine shown in FIG. M
The PU 31 can also handle the signal from the light receiving unit 13 as an interrupt signal, and when the interrupt mask is released, the PU 31
The interrupt processing routine shown in FIG. The processing shown in each figure is performed with reference to codes exchanged with each other, so that the following description will be given by sequentially changing the drawing to be referenced. However, in order to facilitate understanding, each step shown in the flowchart of FIG. Each step shown in the flowchart of FIG. 5 is represented by a numeral in the 500s, and each step shown in the flowchart of FIG. 6 is represented by a numeral in the 600s.
【0019】ホテルの客室を使用する者が鍵装置10を
持ってドア1の前に至り、発光部23,受光部25をド
ア1側に向けて操作ボタン21を押す。操作ボタン21
の操作を受けて、鍵装置10のMPU41は、図4に示
す割込処理を開始し、まず呼出コードCを出力する処理
を行なう(ステップS400)。続いて、受光部25か
ら信号を入力し(ステップS410)、所定時間の経過
内に信号の入力がないと判断されて(ステップS42
0)、「RTN」に抜けて本割込ルーチンを終了するま
で、信号を入力する処理(ステップS410)およびヘ
ッダが検出されるか否かの判断(ステップS430)を
繰り返す。A person using the guest room of the hotel reaches the door 1 with the key device 10 and pushes the operation button 21 with the light emitting unit 23 and the light receiving unit 25 facing the door 1. Operation button 21
In response to this operation, the MPU 41 of the key device 10 starts the interrupt process shown in FIG. 4, and first performs a process of outputting the call code C (step S400). Subsequently, a signal is input from the light receiving unit 25 (step S410), and it is determined that no signal is input within a predetermined time period (step S42).
0), the process of inputting a signal (step S410) and the determination of whether or not a header is detected (step S430) are repeated until the process exits to "RTN" and ends the interrupt routine.
【0020】ドア1側の錠制御装置11のMPU31
は、図5に示す応答コード処理ルーチンを常時実行して
おり、受光部13への信号の入力を絶えず監視している
(ステップS500)。従って、鍵装置10から呼出コ
ードCが出力されると、これを検出し(ステップS50
5)、1から100までの間の整数の乱数を発生させて
これを変数Xに代入する処理を行なう(ステップS51
0)。更に、変数nを初期化するために値1を代入し
(ステップS515)、フラグFに値0をセットする処
理を行なう(ステップS520)。The MPU 31 of the lock control device 11 on the door 1 side
Always executes the response code processing routine shown in FIG. 5, and constantly monitors the input of the signal to the light receiving unit 13 (step S500). Therefore, when the call code C is output from the key device 10, it is detected (step S50).
5) A process of generating an integer random number between 1 and 100 and assigning it to a variable X is performed (step S51).
0). Further, a value 1 is substituted for initializing the variable n (step S515), and a process of setting the value F to 0 is performed (step S520).
【0021】続いて、乱数を代入した変数Xが変数nの
値に等しいか否かの判断を行なう(ステップS53
0)。変数nは後述するように、初期値1から順次イン
クリメントされるので、いずれ変数Xと等しくなると考
えられる。変数Xとnとの値が等しくない場合には、ダ
ミーデータとして値0から2の20乗までの範囲の整数
の乱数を生成し、これを変数Rに代入する処理を行なう
(ステップS540)。2の20乗個の整数の内の一つ
をランダムに選択するので、その値が予めEEPROM
33に記憶されたこの施錠装置の固有のコードに等しく
なる確率は低いが、一致する可能性も存在するのでこれ
をチェックし(ステップS545)、一致していなけれ
ば、この変数RにヘッダHを付けて応答コードとし、発
光部12を駆動して出力する処理を行なう(ステップS
550)。Subsequently, it is determined whether or not the variable X to which the random number is substituted is equal to the value of the variable n (step S53).
0). Since the variable n is sequentially incremented from the initial value 1 as described later, it is considered that the variable n will eventually become equal to the variable X. If the values of the variables X and n are not equal, a process of generating an integer random number in the range from the value 0 to 2 to the 20th power as dummy data and substituting this for the variable R is performed (step S540). Since one of 2 to the 20th power integer is randomly selected, its value is previously stored in the EEPROM.
Although the probability of being equal to the unique code of the locking device stored in 33 is low, there is also a possibility that they match, so this is checked (step S545), and if they do not match, the header H is added to this variable R. Then, a process of driving the light emitting unit 12 to output the response code is performed (step S
550).
【0022】その後、変数nを値1だけインクリメント
し(ステップS555)、変数nが値100を越えたか
否かの判断を行なって(ステップS560)、値100
を越えるまでステップS530以下の処理を繰り返す。
何度かダミーデータRを応答コードとして出力している
内に、変数nの値は次第に大きくなって変数Xに等しく
なるタイミングか必ず存在する。この時、処理はステッ
プS570に移行し、ヘッダを付けて、予め錠制御装置
11のEEPROM33に記憶されたこの錠制御装置1
1と鍵装置10の組合わせに固有の応答コード(以下、
これを固有コードと呼ぶ)Dを発光部12を駆動して出
力する処理を行なう。Thereafter, the variable n is incremented by 1 (step S555), and it is determined whether the variable n has exceeded the value 100 (step S560).
Is repeated until step S530 is exceeded.
While the dummy data R is output as a response code several times, there is always a timing at which the value of the variable n gradually increases and becomes equal to the variable X. At this time, the process proceeds to step S570, in which a header is added, and the lock control device 1 stored in the EEPROM 33 of the lock control device 11 in advance is used.
1 and a response code unique to the combination of the key device 10 (hereinafter referred to as
A process of driving the light emitting unit 12 to output D is output.
【0023】固有コードDを出力した後、フラグFに値
1をセットし(ステップS575)、変数nを値1だけ
インクリメントして(ステップS555)、変数nが値
100を越えるまで、上述したステップS530からの
処理を繰り返す。従って、これらの処理が繰り返される
ことにより、固有コードDをランダムな位置に備えた1
00個の応答コードが出力されることになる。なお、フ
ラグFに値1をセットするのと同時に、MPU31は、
受光部13からの信号入力を割込信号として受付可能と
する。この状態で、鍵装置10から何らかの信号が入力
されると、図6に示す信号入力割込処理ルーチンが起動
されるが、この処理については、後述する。After outputting the unique code D, the value 1 is set to the flag F (step S575), the variable n is incremented by 1 (step S555), and the above steps are performed until the variable n exceeds the value 100. The processing from S530 is repeated. Therefore, by repeating these processes, the unique code D provided at random positions
00 response codes will be output. At the same time as setting the value 1 to the flag F, the MPU 31
A signal input from the light receiving unit 13 can be accepted as an interrupt signal. When any signal is input from the key device 10 in this state, a signal input interrupt processing routine shown in FIG. 6 is started, and this processing will be described later.
【0024】このように錠制御装置11が鍵装置10か
らの呼出コードを受けて応答コードを出力する処理を行
なっている間、鍵装置10は、受光部25をセンスして
信号を読み取っている(図4参照、ステップS41
0)。信号を読み取ってヘッダ部を検出すると(ステッ
プS430)、続いてヘッダに続く応答コードを読み取
る処理を行なう(ステップS440)。応答コードを読
み取ると、次にこのコードか自己の記憶している固有コ
ードに一致するか否かを判断する(ステップS45
0)。ヘッダが検出されないか(ステップS430)、
読み取ったコードが自己の固有コードに一致しない場合
には、信号の入力(ステップS410)から処理を繰り
返す。なお、本実施例のステップS450では、両者が
一致するか否かを直接判断しているが、両者が予め定め
た対応関係にあるか否かの判断とすることもできる。As described above, while the lock control device 11 performs a process of receiving a call code from the key device 10 and outputting a response code, the key device 10 senses the light receiving unit 25 and reads a signal. (See FIG. 4, step S41
0). When the signal is read and the header portion is detected (step S430), processing for reading the response code following the header is performed (step S440). When the response code is read, it is next determined whether or not this code matches the unique code stored therein (step S45).
0). If no header is detected (step S430),
If the read code does not match its own unique code, the processing is repeated from the input of the signal (step S410). In step S450 of this embodiment, it is directly determined whether or not the two match, but it may be determined whether or not the two have a predetermined correspondence.
【0025】錠制御装置11が100回に亘って送り出
した応答コードの内、いずれかのコードが鍵装置10の
PROM43に記憶した固有コードに一致すれば(ステ
ップS450)、鍵装置10は、次に認識コードSを生
成する処理を行なう(ステップS460)。認識コード
の生成には、様々な手法が考えられる。予め定めたコー
ドであっても良いし、錠制御装置11から受け取った応
答コードに基づいて生成されるコードでも良い。後者の
手法としては、例えば予め定義した関数を用いて受け取
った応答コードを変換し、これを認識コードとするも
の、応答コードをπ等の常数の桁数の指定に用いここか
ら所定範囲の値を認識コードとするもの、応答コードの
所定桁数目を変換用常数として用いて変換を行なうも
の、等を考えることができる。If any one of the response codes sent out by the lock control device 11 100 times matches the unique code stored in the PROM 43 of the key device 10 (step S450), the key device 10 Then, a process of generating a recognition code S is performed (step S460). Various methods can be considered for generating the recognition code. The code may be a predetermined code or a code generated based on a response code received from the lock control device 11. As the latter method, for example, a response code received by using a predefined function is converted and used as a recognition code.The response code is used to designate a constant number of digits such as π, and a value within a predetermined range from here. Can be considered as a recognition code, a conversion is performed using a predetermined number of digits of the response code as a conversion constant, and the like.
【0026】こうして生成した認識コードは、発光部2
3により外部に出力される(ステップS470)。その
後、ステップS410に戻って信号入力からの処理を繰
り返すが、錠制御装置11からの信号が所定時間に亘っ
て入力されない状態となれば、やがてステップS420
での判断は「NO」となり、「RTN」に抜けて本ルー
チンを終了する。The recognition code thus generated is transmitted to the light emitting unit 2
3 is output to the outside (step S470). Thereafter, the process returns to step S410 to repeat the processing from the signal input. If the signal from the lock control device 11 is not input for a predetermined time, the process returns to step S420.
Is "NO", the process exits to "RTN", and ends this routine.
【0027】鍵装置10から認識コードが出力される
と、通常は受光部13への信号入力による割込が許可さ
れているため(図5、ステップS575)、図6に示す
信号入力割込処理ルーチンが起動される。この処理が起
動されると、まず一連のコードを入力する処理を行ない
(ステップS600)、入力したコードが正しくコード
として認識できるか否かを判断する(ステップS61
0)。コードとしての体をなさないノイズ等も入力する
可能性があるからである。コードでなければそのまま
「RTN」に抜けて本ルーチンを一旦終了する。When the recognition code is output from the key device 10, the interrupt by the signal input to the light receiving section 13 is normally permitted (FIG. 5, step S575), so the signal input interrupt processing shown in FIG. The routine is invoked. When this process is started, first, a process of inputting a series of codes is performed (step S600), and it is determined whether or not the input code can be correctly recognized as a code (step S61).
0). This is because there is a possibility of inputting noise that does not form a body as a code. If it is not a code, the process directly goes to "RTN" and the routine ends once.
【0028】入力した信号がコードであると認識できれ
ば、次にフラグFが値1であるか否かの判断を行なう
(ステップS620)。割込入力が許可されていれば通
常フラグFは値1にセットされているはずであるが、念
のためチェックを行なうのである。フラグFが値1でな
いにもかかわらず、認識コードの受付を行なっていたの
であれば、何らかの不正が行なわれている可能性がある
として、通信ケーブル14を介してホストコンピュータ
15にこれを通知する処理を行ない(ステップS62
5)、そのまま「RTN」に抜けて本ルーチンを一旦終
了する。If the input signal can be recognized as a code, it is determined whether or not the flag F has the value 1 (step S620). If the interrupt input is permitted, the normal flag F should have been set to the value 1, but a check is made just in case. If the recognition code has been accepted even though the flag F is not the value 1, the host computer 15 is notified via the communication cable 14 of the fact that there is a possibility that something is wrong. Perform processing (step S62)
5) Go to "RTN" and end this routine once.
【0029】一方、フラグFが値1であれば、続いて入
力したコードが認識コードとして正しいか否かの判断を
行ない(ステップS630)、正しくなければホストコ
ンピュータ15に通知し(ステップS625)、正しけ
れば閂駆動機構7のモータ2を駆動して、ドア1の解錠
を行なう(ステップS640)。その後、フラグFを値
0にリセットし(ステップS650)、本ルーチンを終
了する。なお、フラグFを値0にリセットすると、割込
の起動要求はマスクされ、信号入力割込処理ルーチン
(図6)は起動できなくなる。On the other hand, if the value of the flag F is 1, it is determined whether or not the input code is correct as a recognition code (step S630). If not, the host computer 15 is notified (step S625). If it is correct, the motor 2 of the bar drive mechanism 7 is driven to unlock the door 1 (step S640). Thereafter, the flag F is reset to 0 (step S650), and this routine ends. When the flag F is reset to 0, the interrupt activation request is masked, and the signal input interrupt processing routine (FIG. 6) cannot be activated.
【0030】以上説明した信号入力割込処理ルーチン
は、図5に示した応答コード処理ルーチンのステップS
530ないしS560が繰り返し実行され、鍵装置10
と錠制御装置11とからなる施錠装置毎に定められた固
有コードを出力してフラグFに値1をセットした直後か
ら実行可能となる。従って、図5に示した応答コード処
理ルーチンが、ステップS560における条件判断(n
>100)により、繰り返しの処理を抜けたとき、それ
までに正しい認識コードが鍵装置10から出力されてい
ればフラグFは値0にリセットされていることになる
(図6、ステップS650)。他方、鍵装置10から何
らかのコードが所定時間以内に出力されていないか、誤
ったコードが出力されている場合には、フラグFは値1
のまま維持されている。従って、フラグFの値を判別し
(ステップS580)、フラグFが値1であれば、何ら
かの異常が生じたとしてこれをホストコンピュータ15
に通知する(ステップS585)。フラグFが値1でな
ければそのまま「END」に抜けて処理を終了する。The signal input interrupt processing routine described above corresponds to step S in the response code processing routine shown in FIG.
530 to S560 are repeatedly executed, and the key device 10
The lock controller 11 outputs a unique code determined for each locking device, and can be executed immediately after setting the value 1 to the flag F. Accordingly, the response code processing routine shown in FIG.
> 100), if the correct recognition code has been output from the key device 10 by the time the repetition processing is exited, the flag F is reset to the value 0 (FIG. 6, step S650). On the other hand, if any code is not output from the key device 10 within a predetermined time period or if an incorrect code is output, the flag F is set to the value 1
Has been maintained. Accordingly, the value of the flag F is determined (step S580), and if the value of the flag F is 1, it is determined that some abnormality has occurred,
(Step S585). If the value of the flag F is not 1, the processing directly ends at "END" and the processing is terminated.
【0031】以上説明した鍵装置10と錠制御装置11
とのコードのやり取りを図7に示す。図示するように、
鍵装置10の操作ボタン21を操作すると、鍵装置10
の発光部12から呼出コードが出力される。この呼出コ
ードを受け付けて、錠制御装置11は、応答コードとし
て、ランダムな99個のコードとこの組の施錠装置に固
有なただ一つの固有コードとをヘッダを付けて出力す
る。ランダムなコードに対する固有コードの位置は、乱
数によって決定され、操作ボタン21の操作毎に異な
る。従って、外部から両者のやり取りするコードをモニ
タしても、どれが固有のコードかを知ることは容易では
ない。なお、固有コード自体が毎回同一であると、その
位置を変えても検出可能であるため、2の20乗の値の
所定範囲の複数桁のみを有効とし、毎回その桁数の範囲
外の値を変更して出力する構成とすることも好適であ
る。The key device 10 and the lock control device 11 described above
FIG. 7 shows the exchange of codes with the program. As shown
When the operation button 21 of the key device 10 is operated, the key device 10
A calling code is output from the light emitting unit 12 of the. Receiving the call code, the lock control device 11 outputs, as a response code, 99 random codes and a unique code unique to this set of locking devices, with a header attached thereto. The position of the unique code with respect to the random code is determined by a random number, and differs for each operation of the operation button 21. Therefore, it is not easy to know which code is unique even if the code exchanged between them is monitored from the outside. If the unique code itself is the same every time, it can be detected even if its position is changed. Therefore, only a plurality of digits in a predetermined range of the value of 2 to the power of 20 are valid, and the value outside the range of the number of digits is always used. It is also preferable to change and output the data.
【0032】固有のコードが出力されると、鍵装置10
はこのコードを受け取り、認識コードSを生成して、こ
れを出力する。この認識コードSを受け取って、錠制御
装置11は、認識コードが正しいコードであれば、ドア
1の施錠を解錠する。なお、認識コードが誤っていた
り、応答がないような場合には、ホストコンピュータ1
5に通知を行なうが、ホテルのドア1の場合、利用者が
自己の利用する客室以外の部屋を誤って開けようとする
といった単純な過誤による場合と、不正に複製した鍵装
置の使用による不法侵入などの場合等が有り得る。そこ
で、ホストコンピュータ15は警告を出して、ホテルマ
ンや警備員のなどの派遣といった対応を指示する。When the unique code is output, the key device 10
Receives this code, generates a recognition code S, and outputs it. Receiving the recognition code S, the lock control device 11 unlocks the door 1 if the recognition code is a correct code. If the recognition code is incorrect or there is no response, the host computer 1
In the case of the door 1 of the hotel, a simple error such as a user trying to open a room other than the guest room by himself or an illegal use of an illegally copied key device There may be cases such as intrusion. Therefore, the host computer 15 issues a warning and instructs a response such as dispatch of a hotelman or a security guard.
【0033】なお、同一のドア1に対して繰り返し過誤
コードが送られるような場合に、直ちに警報出力を出し
て、例えばその階でのエレベータのドアの開閉等を禁止
し、その階からの退去を警備員がその客室に到達するま
で一時的に制限するといった対応も可能である。更に、
その客室が空室であれば、一旦施錠を解いて侵入しよう
とした者を客室に入れ、その後、ホストコンピュータ1
5から指示してドア1を逆に施錠し、侵入者を閉じこめ
るといった対応も可能である。When an error code is repeatedly sent to the same door 1, an alarm is output immediately, for example, opening and closing of an elevator door on that floor is prohibited, and departure from that floor is performed. Can be temporarily restricted until the security guard reaches the cabin. Furthermore,
If the guest room is vacant, the person who tries to break in and unlock the room is put in the guest room, and then the host computer 1
It is also possible to lock the door 1 reversely by instructing from 5 to lock in the intruder.
【0034】このように、本実施例の施錠装置によれ
ば、非接触でドア1の解錠ができるので、利用者にとっ
ては扱いが簡単である上、解錠に際しては、鍵装置10
と錠制御装置11とがコードをやり取りし、正規の組合
わせであることを確認してからドア1の施錠を解くの
で、信頼性が極めて高いという利点が得られる。特に、
本実施例の施錠装置は、やり取りするコードが2の20
乗の数値として定義しているので、単純に総ての組合わ
せを試して解錠することは時間的に不可能であり、更に
コードをやり取りして確認を取っているので、鍵装置1
0を複製することが実質的にできない。As described above, according to the locking device of this embodiment, the door 1 can be unlocked in a non-contact manner, so that it is easy for the user to handle and the key device 10 is unlocked.
And the lock control device 11 exchange codes and confirm that the combination is a proper combination, and then unlock the door 1. Therefore, there is an advantage that the reliability is extremely high. In particular,
In the locking device of the present embodiment, the exchanged code is 2
Since it is defined as a power value, it is impossible to simply try and unlock all combinations in terms of time, and since the code is exchanged and confirmed, the key device 1
It is virtually impossible to duplicate 0.
【0035】本実施例の鍵装置10と錠制御装置11と
は、施錠装置の固有のコードをEEPROM33および
EEPROM43に記憶している。従って、このコード
を書き直すことで、解錠に必要なコードを容易に変更す
ることができる。次に、EEPROM33,EEPRO
M43の内容を書き直す構成について、説明する。図8
は、ホストコンピュータ15の内部構成を簡略に示すと
共に、鍵装置10とのデータのやり取りの様子を示すブ
ロック図である。The key device 10 and the lock control device 11 of the present embodiment store the unique code of the locking device in the EEPROM 33 and the EEPROM 43. Therefore, by rewriting this code, the code required for unlocking can be easily changed. Next, the EEPROM 33, the EEPROM
A configuration for rewriting the contents of M43 will be described. FIG.
3 is a block diagram schematically showing the internal configuration of the host computer 15 and showing how data is exchanged with the key device 10. FIG.
【0036】図示するように、ホストコンピュータ15
には、周知のCPU101,ROM102,RAM10
3,入出力ポート105が備えられており、この入出力
ポート105には、光通信用の受光部113および発光
部112が接続されている。この受光部113および発
光部112は、錠制御装置11の受光部13および発光
部12と同一のものである。従って、図示するように、
鍵装置10をこの受光部113および発光部112の対
向する位置に配置すれば、鍵装置10とホストコンピュ
ータ15との間で光通信を行なうことが可能である。As shown, the host computer 15
Includes a well-known CPU 101, ROM 102, RAM 10
3, an input / output port 105 is provided, and a light receiving unit 113 and a light emitting unit 112 for optical communication are connected to the input / output port 105. The light receiving unit 113 and the light emitting unit 112 are the same as the light receiving unit 13 and the light emitting unit 12 of the lock control device 11. Therefore, as shown,
If the key device 10 is arranged at a position facing the light receiving unit 113 and the light emitting unit 112, optical communication can be performed between the key device 10 and the host computer 15.
【0037】鍵装置10からホストコンピュータ15へ
の通信は、例えば操作ボタン21を所定時間以上押し続
けたり、図3に示したように、ピンホールを介してリセ
ットボタン45を操作した場合に、開始するように構成
することができる。ここでは、操作ボタン21を所定時
間以上押し続けた場合に、鍵装置10が図9に示すコー
ド初期化処理ルーチンを開始する構成としている。The communication from the key device 10 to the host computer 15 is started, for example, when the operation button 21 is kept pressed for a predetermined time or more, or when the reset button 45 is operated through a pinhole as shown in FIG. Can be configured. Here, the key device 10 starts the code initialization processing routine shown in FIG. 9 when the operation button 21 is continuously pressed for a predetermined time or more.
【0038】このルーチンを開始すると、鍵装置10
は、ホストコンピュータ15に対してどの鍵装置10が
通信を行なうかを知られるために、それまでEEPRO
M43に記憶していた呼出コードと認識コードをホスト
コンピュータ15に出力する処理を行なう(図9、ステ
ップS700)。なお、認識コードを、所定のアルゴリ
ズムで生成しているような場合には、認識コードに代え
て固有コードに対応するコードでも差し支えない。もと
より、呼出コードだけでもよい。When this routine starts, the key device 10
EEPRO to know which key device 10 communicates with the host computer 15
A process of outputting the call code and the recognition code stored in M43 to the host computer 15 is performed (FIG. 9, step S700). When the recognition code is generated by a predetermined algorithm, a code corresponding to the unique code may be used instead of the recognition code. Of course, only the calling code may be used.
【0039】鍵装置10は、これらのコードを出力した
後、次にホストコンピュータ15からの信号を入力する
処理を行なう(ステップS710)。鍵装置10は、ホ
ストコンピュータ15から新たなコードを受信完了する
まで、信号入力の処理を繰り返す(ステップS710,
720)。その後、ホストコンピュータ15から新たな
コードを受け取れば、これをその鍵装置10を特定する
ための新たな固有コードとしてEEPROM43に書き
込む処理を行なって(ステップS730)、本ルーチン
を終了する。なお、鍵装置10が、固有コードがそのま
ま一致したとき予め記憶した認識コードを出力する構成
をとっている場合には、新たな固有コードのみならず新
たな認識コードも受け取るものとすることができる。After outputting these codes, the key device 10 performs a process of inputting a signal from the host computer 15 (step S710). The key device 10 repeats the signal input process until the reception of the new code from the host computer 15 is completed (step S710,
720). Thereafter, when a new code is received from the host computer 15, the new code is written to the EEPROM 43 as a new unique code for specifying the key device 10 (step S730), and this routine ends. In the case where the key device 10 is configured to output a recognition code stored in advance when the unique codes match, it is possible to receive not only a new unique code but also a new recognition code. .
【0040】一方、ホストコンピュータ15は、鍵装置
10からの信号を読み取って呼出コードおよび認識コー
ドを入力する(図10、ステップS750)。続いて、
ホストコンピュータ15はROM102に記憶したテー
ブルを参照して、鍵装置10と錠制御装置11との新た
な固有コードを決定する処理を行なう(ステップS76
0)。このテーブルは、ホテルの全客室の客室番号と施
錠装置の固有コードとの対応を記憶しているものであ
り、固有コードが重複しないようテーブルを参照するの
である。On the other hand, the host computer 15 reads the signal from the key device 10 and inputs a call code and a recognition code (FIG. 10, step S750). continue,
The host computer 15 performs a process of determining a new unique code for the key device 10 and the lock control device 11 with reference to the table stored in the ROM 102 (step S76).
0). This table stores the correspondence between the guest room numbers of all the guest rooms of the hotel and the unique codes of the locking devices, and refers to the table so that the unique codes do not overlap.
【0041】ホストコンピュータ15は、決定した新た
な固有コードを発光部112を制御して外部に出力する
(ステップS770)。と同時に、ホストコンピュータ
15は、通信ケーブル14を介して、ドア1の錠制御装
置11に同一のコードを送出する(ステップS78
0)。ホストコンピュータ15は、鍵装置10から呼出
コードを受け取ることで、この鍵装置10がどの客室の
錠制御装置11に対応したものかを特定することができ
るので、その客室のドア1の錠制御装置11にコードを
送ることは容易である。なお、錠制御装置11は、受け
取ったコードを、EEPROM33に書き込む。The host computer 15 controls the light emitting section 112 to output the determined new unique code to the outside (step S770). At the same time, the host computer 15 sends the same code to the lock control device 11 of the door 1 via the communication cable 14 (Step S78).
0). By receiving the call code from the key device 10, the host computer 15 can specify which room's lock control device 11 the key device 10 corresponds to. Sending the code to 11 is easy. The lock control device 11 writes the received code into the EEPROM 33.
【0042】この結果、鍵装置10をホストコンピュー
タ15の受光部113,発光部112の前において操作
ボタン21を操作するだけで、鍵装置10と錠制御装置
11との解錠用コードを新たな番号に変更することがで
きる。しかも、この時、新たなコードは一切外部に表示
されず、換言すれば、コードの更新操作をする操作者に
も知らされずに更新が行なわれるので、信頼性が極めて
高いという特徴がある。また、固有コードの更新が極め
て容易であり、従来のような施錠装置の全体の取り替え
といった手間を一切要しない。この結果、解錠用のコー
ドの変更を従来より頻繁に行なうことができ、この点で
も信頼性を高めることができる。As a result, by simply operating the operation button 21 in front of the light receiving unit 113 and the light emitting unit 112 of the host computer 15, the unlock code between the key device 10 and the lock control device 11 is changed to a new code. Can be changed to a number. Moreover, at this time, no new code is displayed outside, in other words, the code is updated without being notified to the operator who performs the update operation of the code, so that there is a feature that the reliability is extremely high. Further, the unique code can be updated very easily, and there is no need to replace the entire locking device as in the related art. As a result, the unlocking code can be changed more frequently than in the past, and in this respect also, the reliability can be improved.
【0043】以上本発明の実施例について説明したが、
本発明の施錠装置はこうした実施例に何等限定されるも
のではなく、例えば自動車のドアの施錠装置に適用した
構成、パチンコ等の遊技装置の前扉などに適用した構
成、使用者を制限したいリモコンなどの制御機器に適用
した構成、鍵装置により解錠のみならず施錠も可能とし
た構成、錠本体側が解錠のための正規の認識コードを受
け取ったときLEDを点灯する等の表示手段を備えた構
成など、本発明の要旨を逸脱しない範囲内において、種
々なる態様で実施し得ることは勿論である。The embodiment of the present invention has been described above.
The locking device of the present invention is not limited to these embodiments at all. For example, a configuration applied to a door locking device of an automobile, a configuration applied to a front door of a game device such as a pachinko machine, a remote control for restricting users. Equipped with a display device such as a configuration applied to control devices such as a key device, a configuration enabling not only unlocking but also locking with a key device, and turning on an LED when the lock body receives a proper identification code for unlocking. It goes without saying that the present invention can be implemented in various modes without departing from the gist of the present invention, such as the configuration described above.
【0044】本実施例では、固有コード等を記憶するの
に、EEPROMを用い鍵装置10,錠制御装置11か
らPROMを取り外すことなくコードを書き直す構成を
とったが、PROMを取り外して書込を行なうのであれ
ば、通常のPROMやヒューズROMなどを用いること
も可能である。この場合、PROMを持ち出して複製す
ることが考えられるが、鍵装置10において認識コード
を生成する際、認識コード生成用のアルゴリズムを読出
防止機構を備えたCPU内のマスクROMに記憶してお
けば、例えPROMを不法に持ち出して固有コードを複
製しても、解錠させることはできない。CPU側を複製
しない限り、正しい認識コードを出力することができな
いからである。In this embodiment, the unique code and the like are stored by using an EEPROM to rewrite the code without removing the PROM from the key device 10 and the lock control device 11. However, the PROM is removed and the writing is performed. If so, a normal PROM or fuse ROM can be used. In this case, it is conceivable that the PROM is taken out and duplicated. However, when the recognition code is generated in the key device 10, if the algorithm for generating the recognition code is stored in the mask ROM in the CPU having the readout prevention mechanism. Even if the PROM is illegally taken out and the unique code is duplicated, it cannot be unlocked. This is because a correct recognition code cannot be output unless the CPU is duplicated.
【0045】同様に、錠制御装置11から受け取った応
答コード中に鍵装置10に対応する固有コードが存在す
るか否かの判断をする場合、両者の単純な一致を見るの
ではなく、錠制御装置11から送られた固有コードを所
定のアルゴリズムで変換してから鍵装置10に記憶した
固有コードとの一致をチェックするものとし、この変換
のアルゴリズムを同じく読出防止機構を備えたマスクR
OM内に記憶しておけば、CPU側の複製ができない限
り、合い鍵を作ることはできず、十分な信頼性を確保す
ることができる。なお、これらの場合には、装置全体の
信頼性が向上するから、固有コードの桁数を減らし数桁
程度にすることも差し支えない。Similarly, when determining whether or not the unique code corresponding to the key device 10 is included in the response code received from the lock control device 11, the lock control is not performed by checking the simple agreement between the two. The unique code sent from the device 11 is converted by a predetermined algorithm, and then the matching with the unique code stored in the key device 10 is checked.
If it is stored in the OM, a duplicate key cannot be created unless the CPU can duplicate it, and sufficient reliability can be ensured. In these cases, since the reliability of the entire apparatus is improved, the number of digits of the unique code may be reduced to about several digits.
【0046】他方、この施錠装置の書込装置は、施錠装
置を自動車のドアに適用した場合にはディーラ等に設置
すれば良く、パチンコ装置の扉に適用した場合には、ホ
ールの監視室等に設置すれば良い。更に、本実施例で
は、施錠装置が不審な信号入力を検出した場合には、ホ
ストコンピュータ15に通知を行なうが、この通知によ
り監視用カメラを動作させたり、ビデオへの収録を開始
させるといった構成も可能である。On the other hand, the writing device of this locking device may be installed in a dealer or the like when the locking device is applied to a door of an automobile, and when the locking device is applied to a door of a pachinko device, a monitoring room of a hall or the like. It should be installed in. Further, in the present embodiment, when the locking device detects a suspicious signal input, the locking device notifies the host computer 15 of the suspicious signal input. In response, the locking device activates the monitoring camera or starts recording on the video. Is also possible.
【0047】[0047]
【発明の効果】以上説明したように本発明の施錠装置で
は、非接触で少なくとも施錠を解くことができ、しかも
鍵装置の正規でない複製を実質的に不可能とすることが
できるという優れた効果を奏する。非接触で解錠可能で
あるにもかかわらず、鍵装置が外部に出力しているコー
ドを読み取り、単にこれをまねるだけでは、鍵装置を複
製することができない。鍵装置は錠本体側とは、コード
を交換して動作しているからである。従って、本発明の
施錠装置は、信頼性が高くしかも使い勝手が良い。As described above, the locking device of the present invention has an excellent effect that it can be unlocked at least without contact, and that unauthorized duplication of the key device can be made substantially impossible. To play. Although the key device can be unlocked without contact, the key device cannot be duplicated simply by reading the code output from the key device to the outside and simply imitating the code. This is because the key device operates by exchanging codes with the lock body side. Therefore, the locking device of the present invention is highly reliable and easy to use.
【0048】また、この発明の施錠装置の構成によれ
ば、応答コード書込装置により、鍵装置と応答コード出
力手段とに対となった固有の応答コードを同時に書き込
むことで、解錠のためのコードをいつでも書き直すこと
ができ、施錠装置としての信頼性を更に高めることが容
易である。従って、ホテルのドアなど不特定多数により
扱われる施錠装置で、装置全体を取り替える必要がな
く、また取り替えの手間も不要となる。また、パチンコ
遊技装置などの扉に適用すれば、パチンコホールにおい
て解錠のためのコードを変更することができ、信頼性は
極めて高いものとなる。Further, according to the configuration of the locking device of the present invention, the response code writing device writes the paired unique response codes to the key device and the response code output means at the same time, thereby unlocking the device. Can be rewritten at any time, and it is easy to further enhance the reliability of the locking device. Therefore, there is no need to replace the entire device with a locking device that is handled by an unspecified number of people, such as a hotel door, and it is not necessary to replace the device. Further, if the present invention is applied to a door of a pachinko gaming machine or the like, a code for unlocking in a pachinko hall can be changed, and the reliability is extremely high.
【図1】本発明の基本的構成を例示するブロック図であ
る。FIG. 1 is a block diagram illustrating a basic configuration of the present invention.
【図2】本発明の一実施例である施錠装置の使用状態を
示す斜視図である。FIG. 2 is a perspective view showing a use state of the locking device according to one embodiment of the present invention.
【図3】実施例の施錠装置を構成する鍵装置10と錠制
御装置11との概略構成を示すブロック図である。FIG. 3 is a block diagram showing a schematic configuration of a key device 10 and a lock control device 11 constituting the locking device of the embodiment.
【図4】鍵装置10における操作ボタン割込ルーチンの
概要を示すフローチャートである。FIG. 4 is a flowchart showing an outline of an operation button interruption routine in the key device 10.
【図5】錠制御装置11における応答コード処理ルーチ
ンの概要を示すフローチャートである。FIG. 5 is a flowchart showing an outline of a response code processing routine in the lock control device 11;
【図6】同じく錠制御装置11における信号入力割込処
理ルーチンを示すフローチャートである。FIG. 6 is a flowchart showing a signal input interrupt processing routine in the lock control device 11;
【図7】鍵装置10と錠制御装置11とのコード情報の
やり取りの様子を示すタイミングチャートである。FIG. 7 is a timing chart showing how code information is exchanged between the key device 10 and the lock control device 11.
【図8】応答コード書込装置を構成するホストコンピュ
ータ15の要部を示すブロック図である。FIG. 8 is a block diagram showing a main part of a host computer 15 constituting the response code writing device.
【図9】応答コードの更新のための鍵装置10側の手順
を示すコード初期化処理ルーチンのフローチャートであ
る。FIG. 9 is a flowchart of a code initialization processing routine showing a procedure on the key device 10 side for updating a response code.
【図10】同じくホストコンピュータ15側の手順を示
すホスト側コード初期化処理ルーチンを示すフローチャ
ートである。FIG. 10 is a flowchart showing a host-side code initialization processing routine showing a procedure on the host computer 15 side.
1 ドア 2 小型モータ 3 閂 5 凹部 7 閂駆動機構 10 鍵装置 11 錠制御装置 12 発光部 13 受光部 14 通信ケーブル 15 ホストコンピュータ 17 ハンドル 19 ラッチ駆動機構 20 ラッチ 21 操作ボタン 23 発光部 25 受光部 31 MPU 33 EEPROM 41 MPU 43 EEPROM 45 リセットボタン 101 CPU 102 ROM 103 RAM 105 入出力ポート 112 発光部 113 受光部 Reference Signs List 1 door 2 small motor 3 bar 5 recess 7 bar drive mechanism 10 key device 11 lock control device 12 light emitting unit 13 light receiving unit 14 communication cable 15 host computer 17 handle 19 latch drive mechanism 20 latch 21 operation button 23 light emitting unit 25 light receiving unit 31 MPU 33 EEPROM 41 MPU 43 EEPROM 45 Reset button 101 CPU 102 ROM 103 RAM 105 I / O port 112 Light emitting unit 113 Light receiving unit
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) E05B 49/00 - 49/04 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) E05B 49/00-49/04
Claims (3)
とも解錠操作を指示する指示手段を備え前記錠本体を非
接触で解錠する鍵装置とからなる施錠装置であって、 前記鍵装置に設けられ、指示手段による解錠の指示に応
じて呼出コードを出力するコード出力手段と、 該呼出コードを受け取ったとき、予めその錠本体と組み
合わされる鍵装置に固有のコードとして定義されたコー
ドを複数の応答コードに対してランダムな位置に含ませ
た信号を順次出力する応答コード出力手段と、 前記鍵装置に設けられ、該出力された複数の応答コード
を受け取ってその鍵装置に固有の応答コードに対応した
コードを認識した直後に、予め定めたもしくは予め定め
た手続に従って生成される認識コードを出力する認識コ
ード出力手段と、 該認識コードを、前記固有の応答コードの出力後に受け
取ったとき、前記錠本体を解錠状態とする解錠手段とを
備えた施錠装置。1. A locking device comprising: a lock body for physically closing a door; and a key device including at least instruction means for instructing an unlocking operation and unlocking the lock body in a non-contact manner. A code output means provided in the device, for outputting a call code in response to an unlock instruction by the instruction means; and when the call code is received, the code output means is defined in advance as a code unique to the key device combined with the lock body. Response code output means for sequentially outputting a signal in which a code is included in a random position with respect to a plurality of response codes; provided in the key device, receiving the plurality of output response codes, and of immediately after recognizing the code corresponding to the response code, the recognition code output means for outputting a recognition code that is generated according to a predetermined or preset procedure, the recognition code, When it received after the output of the serial-specific response code, locking device and a unlock means for the lock body and unlocked.
される請求項1記載の施錠装置。2. The locking device according to claim 1, wherein each code is exchanged as an optical signal.
装置と応答コード出力手段とに対して、該対に固有の応
答コードもしくは該応答コードに対応したコードを書き
込む書込手段を有する応答コード書込装置。3. A writing unit for writing a response code unique to the pair or a code corresponding to the response code to the key device and the response code output unit, which are paired with the locking device according to claim 1. Response code writing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33145791A JP3286995B2 (en) | 1991-11-19 | 1991-11-19 | Locking device and writing device used therefor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33145791A JP3286995B2 (en) | 1991-11-19 | 1991-11-19 | Locking device and writing device used therefor |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001011676A Division JP3619781B2 (en) | 2001-01-19 | 2001-01-19 | Game device locking device and hall computer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05141139A JPH05141139A (en) | 1993-06-08 |
| JP3286995B2 true JP3286995B2 (en) | 2002-05-27 |
Family
ID=18243864
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP33145791A Expired - Fee Related JP3286995B2 (en) | 1991-11-19 | 1991-11-19 | Locking device and writing device used therefor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3286995B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107288433A (en) * | 2016-03-31 | 2017-10-24 | 中国石油天然气股份有限公司 | A remote control lock |
| US10584925B2 (en) | 2015-09-25 | 2020-03-10 | Zehnder Group International Ag | Stacked plate heat exchanger with form fitting connection of the plates |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5771722A (en) * | 1993-11-12 | 1998-06-30 | Kaba High Security Locks Corporation | Dual control mode lock system |
| KR100447442B1 (en) * | 2001-06-07 | 2004-09-07 | 김지영 | an electronic licking device and control method thereof |
| JP3527499B2 (en) | 2002-03-27 | 2004-05-17 | コナミスポーツライフ株式会社 | Electronic locking system, locking management device, locking device management method, and program |
| JP2005240492A (en) * | 2004-02-27 | 2005-09-08 | Oki Electric Ind Co Ltd | Key system |
-
1991
- 1991-11-19 JP JP33145791A patent/JP3286995B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10584925B2 (en) | 2015-09-25 | 2020-03-10 | Zehnder Group International Ag | Stacked plate heat exchanger with form fitting connection of the plates |
| CN107288433A (en) * | 2016-03-31 | 2017-10-24 | 中国石油天然气股份有限公司 | A remote control lock |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05141139A (en) | 1993-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7741969B2 (en) | Door entry security device with electronic lock | |
| JP2673941B2 (en) | Vehicle security device with usage rights electronically encoded | |
| US8587405B2 (en) | Electronic access control device | |
| US5923264A (en) | Multiple access electronic lock system | |
| US4972182A (en) | Electronic security lock | |
| CN110163995B (en) | Remote control electronic lock system | |
| JPS63500254A (en) | Method of operating security devices, security devices and data carriers used in the method of operation | |
| JP3286995B2 (en) | Locking device and writing device used therefor | |
| KR100585428B1 (en) | Method and system for unlocking the door lock | |
| KR100236407B1 (en) | Padlock locks and recording devices used therein | |
| JP3619781B2 (en) | Game device locking device and hall computer | |
| JP3391783B1 (en) | Digital locking device | |
| JP4494284B2 (en) | Electric lock system | |
| KR100649483B1 (en) | Door lock systems and devices with built-in remote security measures | |
| JP2011196076A (en) | Electric lock system | |
| KR200217982Y1 (en) | Door opening-shutting apparatus using fingerprints and key recognition | |
| KR100664690B1 (en) | Electronic key switch | |
| JPH11141204A (en) | Electronic lock system | |
| JP3388735B2 (en) | Locking device | |
| JP3169462B2 (en) | Data entry machine for door lock system | |
| KR200363941Y1 (en) | Door lock apparatus using secret number and fingerprint | |
| KR19980016014A (en) | Intelligent door lock system | |
| JP2009035866A (en) | Electric locking-unlocking system | |
| HK40012628A (en) | Remote control electronic lock system and encryption and decryption methods thereof | |
| JP2007205132A (en) | Card lock system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110315 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |