JPH05141139A - Locking device and writing device used therefor - Google Patents

Locking device and writing device used therefor

Info

Publication number
JPH05141139A
JPH05141139A JP3331457A JP33145791A JPH05141139A JP H05141139 A JPH05141139 A JP H05141139A JP 3331457 A JP3331457 A JP 3331457A JP 33145791 A JP33145791 A JP 33145791A JP H05141139 A JPH05141139 A JP H05141139A
Authority
JP
Japan
Prior art keywords
code
key device
response
key
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.)
Granted
Application number
JP3331457A
Other languages
Japanese (ja)
Other versions
JP3286995B2 (en
Inventor
Tetsuya Ando
徹也 安藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
J II L KK
Original Assignee
J II L KK
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by J II L KK filed Critical J II L KK
Priority to JP33145791A priority Critical patent/JP3286995B2/en
Publication of JPH05141139A publication Critical patent/JPH05141139A/en
Application granted granted Critical
Publication of JP3286995B2 publication Critical patent/JP3286995B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Lock And Its Accessories (AREA)

Abstract

PURPOSE:To provide a locking device which can be unlocked at least out of contact so as to make it impossible substantially to reproduce a key device which is not normal. CONSTITUTION:When an operation button 21 of a key device 10 is operated, the key device 10 outputs a call code from a light emitting portion 12 thereof. On receiving the call code, a lock control device 11 outputs 99 random response codes and only one response code peculiar to a locking device of the set. The position of a specific code is determined by a random number. Accordingly, it is not easy to know which is a specific code from the outside. When a specific code is output, the key device 10 receives the code, generates a recognition code S, and outputs the same. On receiving the recognition code S, the lock control device 11 unlock a door 1 if the recognition code is a right code. If the recognition code is wrong or there is no response, the notice is given to a host computer 15.

Description

【発明の詳細な説明】Detailed Description of the Invention

【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 in the locking device. More specifically, the present invention comprises a lock body for physically closing a door and a key device for unlocking the door without contact. Locking device and its related device.

【0002】[0002]

【従来の技術】旧来の施錠装置は、錠本体の鍵穴に鍵を
挿入し、両者が接触した状態で物理的に解錠操作を行な
うものが一般的である。カード状の鍵に数ビットのコー
ドを示す穴を開けたり磁石を埋め込んだりした電子キー
と称するものも存在するが、これらは、対応する鍵穴に
カード等を差し込むことにより、開口部の位置や磁石の
位置を検出し、正規の鍵として認識できれば電磁石やモ
ータを駆動して解錠するものである。この場合、カード
の複製は容易であることから、ドアの取り付けたパネル
から多桁の数値を入力させる等の方法でセキュリティを
確保している。
2. Description of the Related Art A conventional locking device is generally one in which a key is inserted into a key hole of a lock body and a key is physically unlocked when both are in contact with each other. There are also electronic keys that have a card-shaped key with a hole showing a code of several bits or a magnet embedded in them, but these are the positions of the opening and the magnet when the card is inserted into the corresponding key hole. The position is detected, and if it can be recognized as a regular key, the electromagnet or the motor is driven to unlock. In this case, since it is easy to copy the card, security is secured by a method of inputting a multi-digit numerical value from a panel attached with a door.

【0003】一方、非接触で解錠操作可能な施錠装置
は、自動車のドア用に用いられるなど用途が限定されて
いるのが現状である。これは、ノイズによる誤操作の可
能性が僅かでもあると、施錠装置としての信頼性は全く
維持できず、そもそも施錠装置としての体をなさないか
らである。非接触で解錠操作を可能とする場合には、予
め定めたコードを鍵装置から電波や超音波などで出力
し、錠本体側の受信器がこれを受け、適正なコードであ
れば解錠する構成が考えられる。
On the other hand, under the present circumstances, the locking device which can be unlocked without contact is limited in use such as being used for a door of an automobile. This is because the reliability as a locking device cannot be maintained at all and the body does not function as a locking device in the first place if the possibility of an erroneous operation due to noise is small. When enabling unlocking without contact, a predetermined code is output from the key device by radio waves or ultrasonic waves, and the receiver on the lock body side receives it, and if it is a proper code, unlocking is performed. A configuration that does

【0004】[0004]

【発明が解決しようとする課題】しかしながら、鍵装置
から解錠用のコードを発信する構成では、一つ一つの鍵
装置に固有のコードを付与する必要があり、通常こうし
たコードはPROMなどに書き込まれるから、鍵装置を
入手すればコードを解析することが容易であり、信頼性
に欠けるという問題があった。しかも、非接触で解錠操
作を可能とする構成を採ると、鍵装置から解錠に必要な
コードを外部の空間に発信することになり、解錠用のコ
ードの解析は更に容易となってしまう。このため、鍵装
置側から錠本体側に向かってコードを発信する形態の施
錠装置では、鍵装置の不法な複製(いわゆる合い鍵の製
作)を防止することが困難であった。
However, in the configuration in which the unlocking code is transmitted from the key device, it is necessary to give a unique code to each key device, and such a code is usually written in the PROM or the like. Therefore, if the key device is obtained, it is easy to analyze the code, and there is a problem of lack of reliability. In addition, if the unlocking operation can be performed without contact, the code required for unlocking is transmitted from the key device to the external space, and the analysis of the unlocking code becomes easier. I will end up. For this reason, it is difficult to prevent illegal duplication of the key device (manufacturing of a so-called duplicate key) in the locking device in which the code is transmitted from the key device side to the lock body side.

【0005】従って、ホテルのドアなど不特定多数によ
り扱われる施錠装置では、合い鍵の不法な複製の可能性
を考慮して、所定期間毎に錠本体と鍵装置を取り替える
のが通常であり、多大の手間と装置の無駄を生じてい
た。
Therefore, in a locking device that 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 the matching key. Wasted time and equipment.

【0006】本発明の施錠装置は、こうした問題を解決
し、非接触で解錠可能でありながら、コードの解析や複
製が事実上不可能な施錠装置を実現することを目的とし
てなされ、次の構成を採った。
The locking device of the present invention has been made for the purpose of solving such problems and realizing a locking device which can be unlocked in a non-contact manner but in which code analysis and copying are practically impossible. The composition was adopted.

【0007】[0007]

【課題を解決するための手段】本発明の施錠装置は、図
1のブロック図に例示するように、扉を物理的に閉鎖す
る錠本体M1と、少なくとも解錠操作を指示する指示手
段M2を有し前記錠本体M1を非接触で解錠する鍵装置
M3とを備えた施錠装置であって、前記鍵装置M3に設
けられ、指示手段M2による解錠の指示に応じて呼出コ
ードを出力するコード出力手段M4と、該呼出コードを
受け取ったとき、予めその錠本体M1と組み合わされる
鍵装置M3に固有のコードとして定義されたコードを含
む複数の応答コードを出力する応答コード出力手段M5
と、前記鍵装置M3に設けられ、該出力された複数の応
答コードを受け取ってその鍵装置M3に固有の応答コー
ドに対応したコードを認識したとき、予め定めたもしく
は予め定めた手続に従って生成される認識コードを出力
する認識コード出力手段M6と、該認識コードを受け取
ったとき、前記錠本体M1を解錠状態とする解錠手段M
7とを備えたことを要旨とする。ここで、鍵装置M3と
やり取りされる各コードは光学的な信号として出力され
る構成をとることができる。光学的な信号によりやり取
りを行なうことで、雑音に対して強くなり、しかも指向
性を付与することができるため、施錠装置として好適で
ある。
As shown in the block diagram of FIG. 1, a locking 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. A lock device having a key device M3 for unlocking the lock body M1 in a non-contact manner, the lock device being provided in the key device M3 and outputting a call code in response to an unlock instruction by an instruction means M2. A code output means M4 and a response code output means M5 for outputting a plurality of response codes including a code defined as a code unique to the key device M3 to be combined with the lock body M1 when the call code is received.
When a plurality of response codes output from the key device M3 are received and a code corresponding to the response code peculiar to the key device M3 is recognized, it is generated according to a predetermined procedure or a predetermined procedure. Recognition code output means M6 for outputting a recognition code, and unlocking means M for unlocking the lock body M1 when the recognition code is received.
The point is to have 7 and 7. Here, each code exchanged with the key device M3 can be configured to be output as an optical signal. By exchanging with an optical signal, it becomes strong against noise and directivity can be imparted, so that it is suitable as a locking device.

【0008】かかる施錠装置を取り扱う物として、応答
コード書込装置の発明がなされた。その応答コード書込
装置は、施錠本体M1の対となった鍵装置M3と応答コ
ード出力手段M5とに対して、その対に固有の応答コー
ドもしくはこのコードに対応したコードを書き込む書込
手段Nを備えることを要旨とする。
A response code writing device was invented as a product handling such a locking device. The response code writing device writes a response code peculiar to the pair or a code corresponding to this code to the key device M3 and the response code output means M5 which form a pair with the locking body M1. The main point 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 interaction between the key device M3 and the lock body M1 side. The exchange will be described below. When the unlocking operation is instructed by the instruction means M2 provided in the key device M3, the code output means M2 provided in the key device M3 outputs the calling code. When this call code is received, the response code output means M5 outputs a plurality of response codes including a code defined as a code unique to the key device M3 to be combined with the lock body M1 in advance.

【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. The recognition code output means M6 outputs a recognition code generated in accordance with a predetermined procedure or a predetermined procedure when the code corresponding to the response code unique to the key device M3 is recognized. This identification code is received by the unlocking means M7. When the unlocking means M7 receives the identification code, the unlocking means M7 unlocks the lock body M1 that physically closes the door.

【0011】一方、この施錠装置を取り扱う物の発明で
ある応答コード書込装置てば、書込手段Nにより、施錠
装置の対となった鍵装置M3と応答コード出力手段M5
に対して、その対に固有の応答コードもしくはこの応答
コードに対応したコードを書き込む。
On the other hand, in the case of the response code writing device which is an invention of a product handling this locking device, the writing means N causes the key device M3 and the response code outputting means M5 which form a pair with the locking device.
, The response code peculiar to the pair or the code corresponding to this response code is written.

【0012】[0012]

【実施例】以上説明した本発明の構成・作用を一層明ら
かにするために、以下本発明の好適な実施例について説
明する。図2は、実施例としての施錠装置の構成例を示
す斜視図、図3は錠本体側と鍵装置の構成を示すブロッ
ク図である。
Preferred embodiments of the present invention will be described below in order to further clarify the constitution and operation of the present invention described above. 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 side 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 the present embodiment, the lock body is the door 1 of the hotel.
The lock control which is embedded in the lock driving mechanism 7 that inserts and removes the bar 3 into and from the recess 5 on the wall side by the small motor 2, and exchanges information with the key device 10 by optical communication and directly drives the bar driving 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, and the lock control device 1 is provided in this opening.
The light emitting portion 12 and the light receiving portion 13 for optical communication, which are attached to the first housing, face each other. The lock control device 11 corresponds to the response code output means and the unlocking means. A driving power is supplied to the bartack driving mechanism 7 and the lock control device 11 from a power cable (not shown). The 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. If the handle 17 is rotated downward in a state where the barb 3 is detached from the recess 5, the latch drive mechanism 19 can be operated. As a result, the latch 20 can be pulled out from 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 member having a square stick-shaped cross section, and is provided with an operation button 21 on one side, and the room number of the corresponding hotel is entered on the same face. 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 No. 1 and the light emitting unit 23 of the key device 10 are configured using LEDs that emit infrared light, and the light receiving units 13 and 25 thereof use photodiodes that are sensitive to 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 structures 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
A one-chip microprocessor (hereinafter referred to as MPU) 31 having an AM built therein and having an input / output port, and an EEPROM 33 for storing a response code unique to this locking device are provided. On the other hand, the key device 10, like the lock control device 11,
It is composed of 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 the output ports thereof, and can output a phase-modulated signal. Further, it is possible to sense the input port and read the signals output from each other.

【0017】錠制御装置11と鍵装置10のEEPRO
M33,43には、ホストコンピュータ15により同時
に同一の応答コードが書き込まれるが、書き込みの手法
については、後述する。また、鍵装置10のMPU41
は、操作ボタン21の操作を割込信号源としており、操
作ボタン21が操作されると図4に示す操作ボタン割込
ルーチンを実行する。MPU41は、受光部25からの
信号を読み取り、発光部23を制御して、錠制御装置1
1との通信を実現する。
EEPRO of the lock control device 11 and the key device 10
The same response code is simultaneously written in M33 and M43 by the host computer 15. The writing method will be described later. Further, the MPU 41 of the key device 10
Uses the operation of the operation button 21 as an interrupt signal source, and when the operation button 21 is operated, the operation button interrupt routine shown in FIG. 4 is executed. The MPU 41 reads the signal from the light receiving unit 25, controls the light emitting unit 23, and controls the lock control device 1
Realize communication with 1.

【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 part 13 and controls the light emitting part 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 if the interrupt mask is released, the PU 31 shown in FIG.
The interrupt processing routine shown in is executed. Since the processing shown in each figure is performed by referring to the codes that are exchanged with each other, the following description will be given by sequentially changing the reference drawings. However, in order to facilitate understanding, each step shown in the flowchart of FIG. It is assumed that the steps in the flowchart of FIG. 5 are indicated by the numbers in the 500s and the steps in the flowchart of FIG. 6 are indicated by the numbers 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 who uses the guest room of the hotel brings the key device 10 to the front of the door 1 and directs the light emitting portion 23 and the light receiving portion 25 toward the door 1 side to push the operation button 21. Operation button 21
In response to the operation of, the MPU 41 of the key device 10 starts the interrupt process shown in FIG. 4, and first performs a process of outputting the calling code C (step S400). Then, a signal is input from the light receiving unit 25 (step S410), and it is determined that the signal is not input within a predetermined time (step S42).
0), the process of inputting a signal (step S410) and the determination as to whether or not a header is detected (step S430) are repeated until the process goes to "RTN" to end the present interrupt routine.

【0020】ドア1側の錠制御装置11のMPU31
は、図5に示す応答コード処理ルーチンを常時実行して
おり、受光部13への信号の入力を絶えず監視している
(ステップS500)。従って、鍵装置10から呼出コ
ードCが出力されると、これを検出し(ステップS50
5)、1から100までの間の整数の乱数を発生させて
これを変数Xに代入する処理を行なう(ステップS51
0)。更に、変数nを初期化するために値1を代入し
(ステップS515)、フラグFに値0をセットする処
理を行なう(ステップS520)。
MPU 31 of the lock control device 11 on the door 1 side
Constantly executes the response code processing routine shown in FIG. 5 and constantly monitors the input of a signal to the light receiving unit 13 (step S500). Therefore, when the calling code C is output from the key device 10, this is detected (step S50).
5) A process of generating an integer random number between 1 and 100 and assigning it to the variable X (step S51)
0). Further, the value 1 is substituted for initializing the variable n (step S515), and the process of setting the value 0 in the flag F 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)。
Then, it is judged whether or not the variable X into 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, an integer random number in the range of 0 to 2 to the power of 2 is generated as dummy data, and the variable R is substituted (step S540). Since one of the integers of 2 to the 20th power is randomly selected, the value is previously stored in the EEPROM.
Although it is unlikely that the code unique to this locking device stored in 33 is the same, there is a possibility that they will match (step S545). If they do not match, the header H is set in this variable R. The response code is added to the response code, and the light emitting unit 12 is driven and output (step S).
550).

【0022】その後、変数nを値1だけインクリメント
し(ステップS555)、変数nが値100を越えたか
否かの判断を行なって(ステップS560)、値100
を越えるまでステップS530以下の処理を繰り返す。
何度かダミーデータRを応答コードとして出力している
内に、変数nの値は次第に大きくなって変数Xに等しく
なるタイミングか必ず存在する。この時、処理はステッ
プS570に移行し、ヘッダを付けて、予め錠制御装置
11のEEPROM33に記憶されたこの錠制御装置1
1と鍵装置10の組合わせに固有の応答コード(以下、
これを固有コードと呼ぶ)Dを発光部12を駆動して出
力する処理を行なう。
After that, the variable n is incremented by 1 (step S555), and it is judged whether or not the variable n exceeds 100 (step S560).
The processing from step S530 onward is repeated until the value exceeds.
While the dummy data R is output as the response code several times, there is always a timing when the value of the variable n gradually increases and becomes equal to the variable X. At this time, the process proceeds to step S570, and the lock control device 1 stored in advance in the EEPROM 33 of the lock control device 11 with a header is attached.
1 and the response code unique to the combination of the key device 10 (hereinafter,
This is called a unique code) D is driven to drive the light emitting unit 12 and output.

【0023】固有コードDを出力した後、フラグFに値
1をセットし(ステップS575)、変数nを値1だけ
インクリメントして(ステップS555)、変数nが値
100を越えるまで、上述したステップS530からの
処理を繰り返す。従って、これらの処理が繰り返される
ことにより、固有コードDをランダムな位置に備えた1
00個の応答コードが出力されることになる。なお、フ
ラグFに値1をセットするのと同時に、MPU31は、
受光部13からの信号入力を割込信号として受付可能と
する。この状態で、鍵装置10から何らかの信号が入力
されると、図6に示す信号入力割込処理ルーチンが起動
されるが、この処理については、後述する。
After the unique code D is output, the flag F is set to the value 1 (step S575), the variable n is incremented by the value 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 is provided at a random position 1
00 response codes will be output. At the same time that the flag F is set to the value 1, the MPU 31
The 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, the signal input interrupt processing routine shown in FIG. 6 is started. This processing will be described later.

【0024】このように錠制御装置11が鍵装置10か
らの呼出コードを受けて応答コードを出力する処理を行
なっている間、鍵装置10は、受光部25をセンスして
信号を読み取っている(図4参照、ステップS41
0)。信号を読み取ってヘッダ部を検出すると(ステッ
プS430)、続いてヘッダに続く応答コードを読み取
る処理を行なう(ステップS440)。応答コードを読
み取ると、次にこのコードか自己の記憶している固有コ
ードに一致するか否かを判断する(ステップS45
0)。ヘッダが検出されないか(ステップS430)、
読み取ったコードが自己の固有コードに一致しない場合
には、信号の入力(ステップS410)から処理を繰り
返す。なお、本実施例のステップS450では、両者が
一致するか否かを直接判断しているが、両者が予め定め
た対応関係にあるか否かの判断とすることもできる。
While the lock control device 11 receives the call code from the key device 10 and outputs the response code as described above, the key device 10 senses the light receiving portion 25 to read the signal. (See FIG. 4, step S41
0). When the signal is read and the header portion is detected (step S430), the process of reading the response code following the header is subsequently performed (step S440). When the response code is read, it is then determined whether or not this code matches the unique code stored in itself (step S45).
0). Whether the header is not detected (step S430),
When the read code does not match its own unique code, the process is repeated from the signal input (step S410). In addition, in step S450 of the present 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 relationship.

【0025】錠制御装置11が100回に亘って送り出
した応答コードの内、いずれかのコードが鍵装置10の
PROM43に記憶した固有コードに一致すれば(ステ
ップS450)、鍵装置10は、次に認識コードSを生
成する処理を行なう(ステップS460)。認識コード
の生成には、様々な手法が考えられる。予め定めたコー
ドであっても良いし、錠制御装置11から受け取った応
答コードに基づいて生成されるコードでも良い。後者の
手法としては、例えば予め定義した関数を用いて受け取
った応答コードを変換し、これを認識コードとするも
の、応答コードをπ等の常数の桁数の指定に用いここか
ら所定範囲の値を認識コードとするもの、応答コードの
所定桁数目を変換用常数として用いて変換を行なうも
の、等を考えることができる。
If any one of the response codes sent 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 determines the next. The process of generating the recognition code S is performed (step S460). Various methods are conceivable for generating the recognition code. It may be a predetermined code or a code generated based on the response code received from the lock control device 11. As the latter method, for example, a response code received using a predefined function is converted and used as a recognition code, and the response code is used to specify the number of digits of a constant number such as π. Can be considered as a recognition code, a conversion code using a predetermined digit number of the response code as a conversion constant, and the like.

【0026】こうして生成した認識コードは、発光部2
3により外部に出力される(ステップS470)。その
後、ステップS410に戻って信号入力からの処理を繰
り返すが、錠制御装置11からの信号が所定時間に亘っ
て入力されない状態となれば、やがてステップS420
での判断は「NO」となり、「RTN」に抜けて本ルー
チンを終了する。
The recognition code generated in this way is used by the light emitting unit 2
3 is output to the outside (step S470). After that, the process returns to step S410 and the process from the signal input is repeated. However, if the signal from the lock control device 11 is not input for a predetermined time, then in step S420.
The result of the determination is "NO", and the process ends in "RTN" and the present routine ends.

【0027】鍵装置10から認識コードが出力される
と、通常は受光部13への信号入力による割込が許可さ
れているため(図5、ステップS575)、図6に示す
信号入力割込処理ルーチンが起動される。この処理が起
動されると、まず一連のコードを入力する処理を行ない
(ステップS600)、入力したコードが正しくコード
として認識できるか否かを判断する(ステップS61
0)。コードとしての体をなさないノイズ等も入力する
可能性があるからである。コードでなければそのまま
「RTN」に抜けて本ルーチンを一旦終了する。
When the identification code is output from the key device 10, since the interruption by the signal input to the light receiving unit 13 is normally permitted (FIG. 5, step S575), the signal input interruption process shown in FIG. The routine is started. When this process is activated, first, a process of inputting a series of codes is performed (step S600), and it is determined whether the input code can be correctly recognized as a code (step S61).
0). This is because there is a possibility of inputting noise or the like that does not make the body of the code. If it is not a code, the process directly exits to "RTN" and this routine is terminated.

【0028】入力した信号がコードであると認識できれ
ば、次にフラグFが値1であるか否かの判断を行なう
(ステップS620)。割込入力が許可されていれば通
常フラグFは値1にセットされているはずであるが、念
のためチェックを行なうのである。フラグFが値1でな
いにもかかわらず、認識コードの受付を行なっていたの
であれば、何らかの不正が行なわれている可能性がある
として、通信ケーブル14を介してホストコンピュータ
15にこれを通知する処理を行ない(ステップS62
5)、そのまま「RTN」に抜けて本ルーチンを一旦終
了する。
If the input signal can be recognized as a code, then it is determined whether the flag F has a value of 1 (step S620). If the interrupt input is permitted, the normal flag F should have been set to the value 1, but the check is performed just in case. If the recognition code is accepted even though the flag F is not 1, the host computer 15 is notified via the communication cable 14 that there is a possibility that something wrong has been done. Perform processing (step S62)
5) Then, the process directly exits to "RTN" and the present routine is terminated.

【0029】一方、フラグFが値1であれば、続いて入
力したコードが認識コードとして正しいか否かの判断を
行ない(ステップS630)、正しくなければホストコ
ンピュータ15に通知し(ステップS625)、正しけ
れば閂駆動機構7のモータ2を駆動して、ドア1の解錠
を行なう(ステップS640)。その後、フラグFを値
0にリセットし(ステップS650)、本ルーチンを終
了する。なお、フラグFを値0にリセットすると、割込
の起動要求はマスクされ、信号入力割込処理ルーチン
(図6)は起動できなくなる。
On the other hand, if the flag F has a value of 1, it is judged whether or not the subsequently input code is correct as the recognition code (step S630), and if not, the host computer 15 is notified (step S625). If it is correct, the motor 2 of the bartack driving mechanism 7 is driven to unlock the door 1 (step S640). After that, the flag F is reset to the value 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 is the step S of the response code processing routine shown in FIG.
530 to S560 are repeatedly executed, and the key device 10
It is possible to execute immediately after setting the value 1 in the flag F by outputting the unique code determined for each locking device including the lock control device 11 and the lock control device 11. Therefore, the response code processing routine shown in FIG.
> 100), the flag F is reset to the value 0 if the correct recognition code has been output from the key device 10 by the time the process is repeated (FIG. 6, step S650). On the other hand, if some code is not output from the key device 10 within a predetermined time or an incorrect code is output, the flag F has a value of 1
It is maintained as it is. Therefore, the value of the flag F is discriminated (step S580), and if the flag F has the value 1, it is determined that some abnormality has occurred, and the host computer 15
(Step S585). If the flag F is not the value 1, the process directly ends in "END" and the process 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
The exchange of codes with and is shown in FIG. As shown,
When the operation button 21 of the key device 10 is operated, the key device 10
The calling code is output from the light emitting unit 12 of. Upon receipt of this calling code, the lock control device 11 outputs, as a response code, 99 random codes and a unique code unique to the locking device of this set, with a header attached. The position of the unique code with respect to the random code is determined by a random number and differs with each operation of the operation button 21. Therefore, it is not easy to know which is a unique code by monitoring the code exchanged between the two parties from the outside. If the unique code itself is the same every time, it can be detected even if the position is changed. Therefore, only a plurality of digits within a predetermined range of the value of 2 to the 20th power are valid, and a value outside the range of the number of digits is used every time. It is also suitable to adopt a configuration in which is changed and output.

【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 this. Upon receiving this identification code S, the lock control device 11 unlocks the door 1 if the identification code is correct. If the recognition code is incorrect or there is no response, the host computer 1
5 is notified, but in the case of the door 1 of the hotel, it is illegal due to a simple error that the user accidentally tries to open a room other than the guest's own room, and illegal use due to the use of an illegally duplicated 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 hotel man or a guard.

【0033】なお、同一のドア1に対して繰り返し過誤
コードが送られるような場合に、直ちに警報出力を出し
て、例えばその階でのエレベータのドアの開閉等を禁止
し、その階からの退去を警備員がその客室に到達するま
で一時的に制限するといった対応も可能である。更に、
その客室が空室であれば、一旦施錠を解いて侵入しよう
とした者を客室に入れ、その後、ホストコンピュータ1
5から指示してドア1を逆に施錠し、侵入者を閉じこめ
るといった対応も可能である。
When an error code is repeatedly sent to the same door 1, an alarm output is immediately issued, for example, opening and closing of the elevator door on the floor is prohibited, and the floor is left. It is also possible to temporarily limit the time until the guard reaches the guest room. Furthermore,
If the guest room is vacant, the person who tries to enter the room by unlocking the lock is put in the guest room, and then the host computer 1
It is also possible to instruct from 5 to lock the door 1 in the opposite direction and lock in the intruder.

【0034】このように、本実施例の施錠装置によれ
ば、非接触でドア1の解錠ができるので、利用者にとっ
ては扱いが簡単である上、解錠に際しては、鍵装置10
と錠制御装置11とがコードをやり取りし、正規の組合
わせであることを確認してからドア1の施錠を解くの
で、信頼性が極めて高いという利点が得られる。特に、
本実施例の施錠装置は、やり取りするコードが2の20
乗の数値として定義しているので、単純に総ての組合わ
せを試して解錠することは時間的に不可能であり、更に
コードをやり取りして確認を取っているので、鍵装置1
0を複製することが実質的にできない。
As described above, according to the locking device of the present embodiment, the door 1 can be unlocked without contact, which is easy for the user to handle and the key device 10 for unlocking.
The lock control device 11 exchanges codes with each other, and the lock of the door 1 is unlocked after confirming the proper combination. Therefore, the advantage of extremely high reliability can be obtained. In particular,
In the locking device of this embodiment, the code to be exchanged is 2 to 20.
Since it is defined as a power value, it is impossible to simply try and unlock all the combinations in terms of time, and since the codes are exchanged for confirmation, the key device 1
It is practically impossible to duplicate 0.

【0035】本実施例の鍵装置10と錠制御装置11と
は、施錠装置の固有のコードをEEPROM33および
EEPROM43に記憶している。従って、このコード
を書き直すことで、解錠に必要なコードを容易に変更す
ることができる。次に、EEPROM33,EEPRO
M43の内容を書き直す構成について、説明する。図8
は、ホストコンピュータ15の内部構成を簡略に示すと
共に、鍵装置10とのデータのやり取りの様子を示すブ
ロック図である。
In the key device 10 and the lock control device 11 of this embodiment, the codes unique to the lock device are stored 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 and the EEPROM
A configuration for rewriting the contents of M43 will be described. Figure 8
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.

【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 known CPU 101, ROM 102, RAM 10
3, an input / output port 105 is provided, and a light receiving portion 113 and a light emitting portion 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,
By disposing the key device 10 at the position where the light receiving unit 113 and the light emitting unit 112 face each other, optical communication can be performed between the key device 10 and the host computer 15.

【0037】鍵装置10からホストコンピュータ15へ
の通信は、例えば操作ボタン21を所定時間以上押し続
けたり、図3に示したように、ピンホールを介してリセ
ットボタン45を操作した場合に、開始するように構成
することができる。ここでは、操作ボタン21を所定時
間以上押し続けた場合に、鍵装置10が図9に示すコー
ド初期化処理ルーチンを開始する構成としている。
Communication from the key device 10 to the host computer 15 is started, for example, when the operation button 21 is continuously pressed for a predetermined time or when the reset button 45 is operated through a pinhole as shown in FIG. Can be configured to. Here, the key device 10 is configured to start the code initialization processing routine shown in FIG. 9 when the operation button 21 is pressed for a predetermined time or longer.

【0038】このルーチンを開始すると、鍵装置10
は、ホストコンピュータ15に対してどの鍵装置10が
通信を行なうかを知られるために、それまでEEPRO
M43に記憶していた呼出コードと認識コードをホスト
コンピュータ15に出力する処理を行なう(図9、ステ
ップS700)。なお、認識コードを、所定のアルゴリ
ズムで生成しているような場合には、認識コードに代え
て固有コードに対応するコードでも差し支えない。もと
より、呼出コードだけでもよい。
When this routine is started, the key device 10
To know which key device 10 communicates with the host computer 15, so far EEPRO
A process of outputting the calling 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, the 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 next 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 a new code from the host computer 15 (step S710,
720). After that, when a new code is received from the host computer 15, a process of writing this into the EEPROM 43 as a new unique code for specifying the key device 10 is performed (step S730), and this routine is finished. If the key device 10 is configured to output a previously stored recognition code 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 the calling code and the recognition code (FIG. 10, step S750). continue,
The host computer 15 refers to the table stored in the ROM 102 and performs a process of determining new unique codes for the key device 10 and the lock control device 11 (step S76).
0). This table stores the correspondence between the guest room numbers of all guest rooms of the hotel and the unique codes of the locking devices, and the table is referenced 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 calling code from the key device 10, the host computer 15 can identify which guest room the lock control device 11 corresponds to, so that the lock control device of the door 1 of the guest room. Sending the code to 11 is easy. The lock control device 11 writes the received code in the EEPROM 33.

【0042】この結果、鍵装置10をホストコンピュー
タ15の受光部113,発光部112の前において操作
ボタン21を操作するだけで、鍵装置10と錠制御装置
11との解錠用コードを新たな番号に変更することがで
きる。しかも、この時、新たなコードは一切外部に表示
されず、換言すれば、コードの更新操作をする操作者に
も知らされずに更新が行なわれるので、信頼性が極めて
高いという特徴がある。また、固有コードの更新が極め
て容易であり、従来のような施錠装置の全体の取り替え
といった手間を一切要しない。この結果、解錠用のコー
ドの変更を従来より頻繁に行なうことができ、この点で
も信頼性を高めることができる。
As a result, by simply operating the operation button 21 of the key device 10 in front of the light receiving portion 113 and the light emitting portion 112 of the host computer 15, a new unlock code for the key device 10 and the lock control device 11 can be obtained. It can be changed to a number. Moreover, at this time, the new code is not displayed at all outside, in other words, the update is performed without being informed to the operator who performs the update operation of the code. In addition, updating the unique code is extremely easy, and no labor is required to replace the entire locking device as in the related art. As a result, the unlocking code can be changed more frequently than before, and in this respect also, the reliability can be improved.

【0043】以上本発明の実施例について説明したが、
本発明の施錠装置はこうした実施例に何等限定されるも
のではなく、例えば自動車のドアの施錠装置に適用した
構成、パチンコ等の遊技装置の前扉などに適用した構
成、使用者を制限したいリモコンなどの制御機器に適用
した構成、鍵装置により解錠のみならず施錠も可能とし
た構成、錠本体側が解錠のための正規の認識コードを受
け取ったときLEDを点灯する等の表示手段を備えた構
成など、本発明の要旨を逸脱しない範囲内において、種
々なる態様で実施し得ることは勿論である。
The embodiments of the present invention have been described above.
The locking device of the present invention is not limited to these embodiments, for example, a configuration applied to a vehicle door locking device, a configuration applied to a front door of a gaming device such as a pachinko machine, a remote controller for which the user is desired to be restricted. It is equipped with a configuration applied to control equipment such as, a configuration that enables not only unlocking but also locking with a key device, and display means such as turning on the LED when the lock body side receives a regular identification code for unlocking Needless to say, the present invention can be implemented in various modes without departing from the scope of the present invention, such as the above configuration.

【0044】本実施例では、固有コード等を記憶するの
に、EEPROMを用い鍵装置10,錠制御装置11か
らPROMを取り外すことなくコードを書き直す構成を
とったが、PROMを取り外して書込を行なうのであれ
ば、通常のPROMやヒューズROMなどを用いること
も可能である。この場合、PROMを持ち出して複製す
ることが考えられるが、鍵装置10において認識コード
を生成する際、認識コード生成用のアルゴリズムを読出
防止機構を備えたCPU内のマスクROMに記憶してお
けば、例えPROMを不法に持ち出して固有コードを複
製しても、解錠させることはできない。CPU側を複製
しない限り、正しい認識コードを出力することができな
いからである。
In this embodiment, the EEPROM is used to store the unique code and the like, and the code is rewritten without removing the PROM from the key device 10 and the lock control device 11. However, the PROM is removed and written. If so, a normal PROM, fuse ROM, or the like can be used. In this case, it is possible to take out the PROM and copy it. However, when generating the recognition code in the key device 10, if the algorithm for generating the recognition code is stored in the mask ROM in the CPU having the read prevention mechanism. Even if the PROM is illegally taken out and the unique code is copied, it cannot be unlocked. This is because the correct recognition code cannot be output unless the CPU side 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 present in the response code received from the lock control device 11, the lock control is performed not by simply comparing the two. It is assumed that the unique code sent from the device 11 is converted by a predetermined algorithm, and then the match with the unique code stored in the key device 10 is checked.
If stored in the OM, a duplicate key cannot be created unless duplication on the CPU side is possible, and sufficient reliability can be secured. In these cases, since the reliability of the entire apparatus is improved, it is possible to reduce the number of digits of the unique code to 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 the door of an automobile, and when it is applied to the door of a pachinko device, it may be used in a hall monitoring room or the like. It can be installed at. Further, in the present embodiment, when the locking device detects a suspicious signal input, the host computer 15 is notified, and the notification causes the surveillance camera to operate or video recording to be started. Is also possible.

【0047】[0047]

【発明の効果】以上説明したように本発明の施錠装置で
は、非接触で少なくとも施錠を解くことができ、しかも
鍵装置の正規でない複製を実質的に不可能とすることが
できるという優れた効果を奏する。非接触で解錠可能で
あるにもかかわらず、鍵装置が外部に出力しているコー
ドを読み取り、単にこれをまねるだけでは、鍵装置を複
製することができない。鍵装置は錠本体側とは、コード
を交換して動作しているからである。従って、本発明の
施錠装置は、信頼性が高くしかも使い勝手が良い。
As described above, in the locking device of the present invention, at least the locking can be unlocked in a non-contact manner, and the unauthorized duplication of the key device can be substantially prevented. Play. Although the key device can be unlocked without contact, the key device cannot be duplicated by reading the code output to the outside by the key device 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 unique response code paired with the key device and the response code output means at the same time for unlocking. The code can be rewritten at any time, and it is easy to further improve the reliability of the locking device. Therefore, it is not necessary to replace the entire device with a locking device that is handled by an unspecified number of people such as hotel doors, and the time and effort for replacement are also unnecessary. Further, if applied to a door of a pachinko gaming device or the like, the code for unlocking in the pachinko hall can be changed, and the reliability becomes extremely high.

【図面の簡単な説明】[Brief description of drawings]

【図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 the 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 that constitute the locking device of the embodiment.

【図4】鍵装置10における操作ボタン割込ルーチンの
概要を示すフローチャートである。
FIG. 4 is a flowchart showing an outline of an operation button interrupt 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 in the same manner.

【図7】鍵装置10と錠制御装置11とのコード情報の
やり取りの様子を示すタイミングチャートである。
7 is a timing chart showing how code information is exchanged between the key device 10 and the lock control device 11. FIG.

【図8】応答コード書込装置を構成するホストコンピュ
ータ15の要部を示すブロック図である。
FIG. 8 is a block diagram showing a main part of a host computer 15 which constitutes a 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 which similarly shows the procedure on the host computer 15 side.

【符号の説明】[Explanation of symbols]

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 受光部 1 door 2 small motor 3 bar 5 recess 7 bar driving mechanism 10 key device 11 lock control device 12 light emitting part 13 light receiving part 14 communication cable 15 host computer 17 handle 19 latch drive mechanism 20 latch 21 operation button 23 light emitting part 25 light receiving part 31 MPU 33 EEPROM 41 MPU 43 EEPROM 45 Reset button 101 CPU 102 ROM 103 RAM 105 Input / output port 112 Light emitting part 113 Light receiving part

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 扉を物理的に閉鎖する錠本体と、少なく
とも解錠操作を指示する指示手段を備え前記錠本体を非
接触で解錠する鍵装置とからなる施錠装置であって、 前記鍵装置に設けられ、指示手段による解錠の指示に応
じて呼出コードを出力するコード出力手段と、 該呼出コードを受け取ったとき、予めその錠本体と組み
合わされる鍵装置に固有のコードとして定義されたコー
ドを含む複数の応答コードを出力する応答コード出力手
段と、 前記鍵装置に設けられ、該出力された複数の応答コード
を受け取ってその鍵装置に固有の応答コードに対応した
コードを認識したとき、予め定めたもしくは予め定めた
手続に従って生成される認識コードを出力する認識コー
ド出力手段と、 該認識コードを受け取ったとき、前記錠本体を解錠状態
とする解錠手段とを備えた施錠装置。
1. A locking device comprising: a lock main body for physically closing a door; and a key device for unlocking the lock main body in a non-contact manner, the lock device having at least an instruction means for instructing an unlocking operation. Code output means provided in the device for outputting a call code in response to an unlocking instruction by the instruction means, and a code unique to the key device to be combined with the lock body in advance when the call code is received are defined. Response code output means for outputting a plurality of response codes including a code, and when the plurality of response codes output from the key device are received and a code corresponding to the response code unique to the key device is recognized A recognition code output means for outputting a recognition code generated according to a predetermined procedure or a predetermined procedure; and when the recognition code is received, the lock body is unlocked. Locking device and a unlock means.
【請求項2】 各コードは光学的な信号としてやり取り
される請求項1記載の施錠装置。
2. The locking device according to claim 1, wherein each code is exchanged as an optical signal.
【請求項3】 請求項1記載の施錠装置の対となった鍵
装置と応答コード出力手段とに対して、該対に固有の応
答コードもしくは該応答コードに対応したコードを書き
込む書込手段を有する応答コード書込装置。
3. A writing means for writing a response code peculiar to the pair or a code corresponding to the response code to the key device and the response code output means forming a pair of the locking device according to claim 1. A response code writing device having.
JP33145791A 1991-11-19 1991-11-19 Locking device and writing device used therefor Expired - Fee Related JP3286995B2 (en)

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 true JPH05141139A (en) 1993-06-08
JP3286995B2 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 (4)

* Cited by examiner, † Cited by third party
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
WO2003080970A1 (en) * 2002-03-27 2003-10-02 Konami Sports Life Corporation Electronic locking system, locking management device, locking device management method, and program
KR100447442B1 (en) * 2001-06-07 2004-09-07 김지영 an electronic licking device and control method thereof
JP2005240492A (en) * 2004-02-27 2005-09-08 Oki Electric Ind Co Ltd Key system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105241296B (en) 2015-09-25 2018-09-14 森德(中国)暖通设备有限公司 Heat exchanger
CN107288433B (en) * 2016-03-31 2020-06-09 中国石油天然气股份有限公司 Remote control lock

Cited By (6)

* Cited by examiner, † Cited by third party
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
WO2003080970A1 (en) * 2002-03-27 2003-10-02 Konami Sports Life Corporation Electronic locking system, locking management device, locking device management method, and program
JP2003278420A (en) * 2002-03-27 2003-10-02 Konami Sports Life Corp Electronic locking system, locking controller, method for controlling locking device and program
US7176782B2 (en) 2002-03-27 2007-02-13 Konami Sports Life Corporation Electronic locking system, locking management device, method of managing a locking device, and program
JP2005240492A (en) * 2004-02-27 2005-09-08 Oki Electric Ind Co Ltd Key system

Also Published As

Publication number Publication date
JP3286995B2 (en) 2002-05-27

Similar Documents

Publication Publication Date Title
JP2673941B2 (en) Vehicle security device with usage rights electronically encoded
US4283710A (en) Security system
US8587405B2 (en) Electronic access control device
US20080238669A1 (en) Door entry security device with electronic lock
CN110163995B (en) Remote control electronic lock system
JP3286995B2 (en) Locking device and writing device used therefor
JPS59476A (en) Apparatus for controlling electric lock
KR100585428B1 (en) Method and system for unlocking doorway
KR100236407B1 (en) Locker and recording apparatus therewith
JP3619781B2 (en) Game device locking device and hall computer
JP2006316565A (en) Electric lock system
KR20060035951A (en) Registration and deletion method of wireless transmitter-receiver to digital door-lock
JP2001098587A (en) Antitheft device for construction machine
JPH09720A (en) Locking device for pachinko board
JP2916716B2 (en) Card reader type security security system and operation setting device used for the system
KR200217982Y1 (en) Door opening-shutting apparatus using fingerprints and key recognition
KR100649483B1 (en) A Doorlock System Apparatus having a Remote Security means.
JP3391783B1 (en) Digital locking device
JP3110246B2 (en) Code registration processor for keyless entry system
JP3169462B2 (en) Data entry machine for door lock system
JPH0893288A (en) Key control device
JP2009035866A (en) Electric locking-unlocking system
KR100664690B1 (en) Apparatus For Electronic Key Switch
KR200289401Y1 (en) Electronic key system using interactive authentication
JP3112288B2 (en) Wireless electric lock

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