JPH086519B2 - Infrared lock device - Google Patents
Infrared lock deviceInfo
- Publication number
- JPH086519B2 JPH086519B2 JP63017339A JP1733988A JPH086519B2 JP H086519 B2 JPH086519 B2 JP H086519B2 JP 63017339 A JP63017339 A JP 63017339A JP 1733988 A JP1733988 A JP 1733988A JP H086519 B2 JPH086519 B2 JP H086519B2
- Authority
- JP
- Japan
- Prior art keywords
- infrared
- key
- code number
- signal
- controlled object
- 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
- Lock And Its Accessories (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は自動販売機等の錠を赤外線を利用したキーに
よって解錠するようにした赤外線錠装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention relates to an infrared lock device for unlocking a lock of a vending machine or the like by a key using infrared rays.
従来における自動販売機、例えば、コーラ、タバコ等
の自動販売機において、料金の収集や製品の補充を行う
場合、前面の扉を機械的なキーを利用して開放し、料金
箱から料金を取り出し、あるいは、製品の補充を行うの
が一般的であった。When collecting charges or replenishing products with conventional vending machines such as cola and cigarettes, open the front door using a mechanical key and take out the charges from the price box. Or, it was common to replenish the product.
ところで、前記した従来における自動販売機にあって
は、機械的なキーであることから不正によって容易に扉
を開放されて料金および製品を持ち出されたりするとい
う問題点があった。By the way, in the above-mentioned conventional vending machine, since it is a mechanical key, there is a problem that the door can be easily opened by fraud to take out the charge and the product.
また、料金の収集や製品の補充は、作業員が機械的キ
ーを持って予め決められた地域の自動販売機を作業時間
内に巡回して行うものであるが、この販売機の巡回地域
および時間の管理が面倒であり、コンピュータ管理が難
しいという問題もあった。In addition, the collection of charges and the replenishment of products are carried out by a worker who patrolles a vending machine in a predetermined area with a mechanical key within the working time. There was also the problem that time management was troublesome and computer management was difficult.
本発明は、従来の技術の有するこのような問題点に鑑
みてなされたものであり、その目的とするところは、赤
外線キーと被制御体の受信部との間で双方向通信を行う
ことで不正操作による錠の解錠を防止すると共に、予め
赤外線キーに設定した作業時間および操作回数だけ被制
御体の解錠が行えるようにした赤外線錠装置を提供しよ
うとするものである。The present invention has been made in view of such problems of the conventional technique, and an object of the present invention is to perform bidirectional communication between an infrared key and a receiver of a controlled object. It is an object of the present invention to provide an infrared lock device capable of preventing unlocking of a lock by an unauthorized operation and unlocking a controlled object for a working time and an operation count set in advance on an infrared key.
前記目的を達成するために、本発明における赤外線錠
装置は、第1のコード番号を送出し、後述する被制御体
からの乱数信号と第2のコード番号とをある定められた
関数によって演算してその結果を送出する赤外線キー
と、該赤外線キーよりの前記第1のコード番号を受信し
自ら記憶した第1のコード番号と一致した時に乱数信号
を送出し、前記赤外線キーよりの前記演算結果を受信し
自ら発生させた乱数と記憶している第2のコードとをあ
る定められた関数によって演算し、演算結果がと一致し
た時にアクチュエータを動作してシリンダー錠を解錠す
る自動販売機等の被制御体とによってなされる。In order to achieve the above object, the infrared lock device according to the present invention sends out a first code number and calculates a random number signal from a controlled object and a second code number, which will be described later, by a predetermined function. And an infrared key for transmitting the result, and a random number signal is transmitted when the first code number from the infrared key is received and coincides with the first code number stored by itself, and the calculation result from the infrared key Vending machine that receives a random number and receives the generated random number and calculates the stored second code by a predetermined function, and operates the actuator to unlock the cylinder lock when the calculation result matches. And the controlled object.
また、本発明の赤外線錠装置は、解錠のためのコード
番号と、後述する被制御体を操作し得る回数とが入力さ
れ、前記コード番号を送出すると共に被制御体を開錠す
る毎に前記回数が1つ減算され、かつ被制御体からのリ
セット信号で回数が0リセットされる赤外線キーと、該
赤外線キーよりの前記コード番号と自ら記憶しているコ
ード番号とが一致した時にアクチュエータを動作してシ
リンダー錠を解錠すると共に前記回数を1つ減算する信
号を送出し、また前記赤外線キーよりのコード番号が不
一致の時に前記回数を0リセットする信号を送出する自
動販売機等の被制御体とによってなされる。In addition, the infrared lock device of the present invention, the code number for unlocking, and the number of times the controlled body described later can be operated are input, and each time the controlled body is unlocked while sending the code number. When the number of times is subtracted by 1 and the number of times is reset to 0 by the reset signal from the controlled object, the actuator is operated when the code number from the infrared key and the code number stored by itself match. A vending machine or the like that operates to unlock the cylinder lock and send a signal to decrement the number by 1 and to send a signal to reset the number to 0 when the code numbers from the infrared keys do not match. Made with the control body.
さらに、本発明の赤外線錠装置は、解錠のためのコー
ド番号と、後述する被制御体を操作し得る時間とが入力
され、被制御体からのリセット信号で前記時間が0リセ
ットされる赤外線キーと、該赤外線キーよりの前記コー
ド番号と自ら記憶しているコード番号とが一致した時に
アクチュエータを動作してシリンダー錠を解錠し、ま
た、前記赤外線キーよりのコード番号が不一致の時に前
記時間を0リセットする信号を送出する自動販売機等の
被制御体とによってなされる。Further, the infrared lock device of the present invention is an infrared lock device in which a code number for unlocking and a time for which a controlled body to be described later can be operated are input, and the time is reset to 0 by a reset signal from the controlled body. When the key and the code number from the infrared key and the code number stored by itself match, the actuator is operated to unlock the cylinder lock, and when the code number from the infrared key does not match, And a controlled object such as a vending machine which sends a signal for resetting the time to zero.
本発明の赤外線錠装置は、赤外線キーより送出される
第1のコード番号を被制御体で受信し、自らのコード番
号と一致した時に乱数信号を送出する。この乱数信号を
受信した赤外線キーは、該乱数信号と第2のコード番号
とをある定められた関数によって演算してその結果を送
出し、この演算結果を受信した被制御体は自ら発生させ
た乱数と記憶している第2のコードとをある定められた
関数によって演算し、演算結果が一致するか否かを判断
し、一致している時にアクチュエータを駆動してロック
手段を解除して扉等を開放する。また、ロック手段が解
除されると前記赤外線キーに入力されている操作回数を
1つ減算する。さらに、前記赤外線キーには操作できる
時間が入力されており、該赤外線キーよりのコード番号
と被制御体のコード番号とが一致しない場合には、リセ
ット信号を送出して赤外線キーの前記回数と時間とを0
リセットして、それ以降の解錠操作を不可能とするもの
である。The infrared lock device of the present invention receives the first code number sent from the infrared key by the controlled object, and sends a random number signal when it matches with its own code number. The infrared key receiving this random number signal calculates the random number signal and the second code number by a predetermined function and sends the result, and the controlled object receiving this calculation result generated it by itself. The random number and the stored second code are calculated by a predetermined function, it is determined whether or not the calculation results match, and when they match, the actuator is driven to release the locking means and the door is opened. Etc. are released. When the lock means is released, the number of operations input to the infrared key is decremented by one. Further, the operable time is input to the infrared key, and if the code number from the infrared key and the code number of the controlled object do not match, a reset signal is sent to set the number of times of the infrared key. Time and 0
It is reset to make the unlocking operation thereafter impossible.
以下、本発明の一実施例を図面と共に説明するに、第
1図において1は後述する赤外線キー2に必要な情報で
ある解錠のためのコード番号、該コード番号を発信でき
る時間および解錠することができる回数を入力するため
の設定機、2は該設定機1と入出力端子を介して前記し
た情報が入力されると共に、操作スイッチを操作するこ
とにより赤外線信号として前記情報を送出する赤外線キ
ー、3は該赤外線キー2よりの赤外線信号を受光し内部
の情報とで相互交信して一致した時に錠を解錠すると共
に、赤外線キーにおける前記情報の内の回数を1つ減算
する信号を送出する自動販売機等の被制御体である。An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, reference numeral 1 is a code number for unlocking, which is information necessary for an infrared key 2 described later, a time when the code number can be transmitted, and an unlocking time. The setting machine for inputting the number of times the information can be input is input with the setting machine 1 via the setting machine 1 and the input / output terminal, and the operation switch is operated to send the information as an infrared signal. The infrared key 3 receives the infrared signal from the infrared key 2 and mutually communicates with the internal information to unlock the lock when the two coincide with each other and to subtract one from the number of times of the information in the infrared key. It is a controlled object such as a vending machine that sends out.
次ぎに、前記した設定機1の構成について第1図、第
2図と共に説明する。この設定機1には、赤外線キー2
が挿入される挿入口1aと、赤外線キー2に情報を入力す
る時に操作するテンキー等のキーボード1bと、該キーボ
ード1bを操作した時にその表示を行う表示装置1c、前記
挿入口1a内に赤外線キー2が挿入されると、該赤外線キ
ー2の入力端子と電気的に接続される出力端子1dおよび
ROM1e、RAM1f、CPU1gからなるマイクロコンピュータと
が収納されている。そして、このマイクロコンピュータ
は後に詳述する第5図に示す如き動作を行うものであ
る。Next, the configuration of the setting machine 1 will be described with reference to FIGS. 1 and 2. This setting machine 1 has an infrared key 2
An insertion slot 1a into which is inserted, a keyboard 1b such as a ten-key pad which is operated when inputting information to the infrared key 2, a display device 1c which displays when the keyboard 1b is operated, and an infrared key in the insertion slot 1a 2 is inserted, the output terminal 1d electrically connected to the input terminal of the infrared key 2 and
It contains a microcomputer consisting of ROM1e, RAM1f, and CPU1g. The microcomputer operates as shown in FIG. 5, which will be described in detail later.
また、前記した赤外線キー2の構成について第1図、
第3図と共に説明する。この赤外線キー2には、押し釦
式の操作スイッチ2aと、前記設定機1の挿入口1a内に挿
入した時に、該設定機1の出力端子1dと電気的に接続さ
れる入力端子2bと、設定機1より入力されたコード番号
を赤外線信号として発信する赤外線発光器2cと、被制御
体3より発信されるコード化された赤外線信号を受光す
る赤外線受光器2dおよびROM2e、RAM2f、CPU2gからなる
マイクロコンピュータとが収納されている。そして、こ
のマイクロコンピュータは後に詳述する第6図に示す如
き動作を行うものである。The configuration of the infrared key 2 described above is shown in FIG.
It will be described together with FIG. The infrared key 2 includes a push button type operation switch 2a, an input terminal 2b electrically connected to an output terminal 1d of the setting machine 1 when inserted into the insertion slot 1a of the setting machine 1, It consists of an infrared light emitter 2c that transmits the code number input from the setting machine 1 as an infrared signal, an infrared light receiver 2d that receives the coded infrared signal transmitted from the controlled object 3, and ROM 2e, RAM 2f, and CPU 2g. It contains a microcomputer. The microcomputer operates as shown in FIG. 6 which will be described in detail later.
さらに、前記した被制御体3の構成について第1図、
第4図と共に説明する。この被制御体3には、制御回路
3aよりの信号で動作するアクチュエータ3bと、メカキー
3cによって回転するシリンダー3dと、前記アクチュエー
タ3bあるいはシリンダー3dが動作することによってロッ
ク手段を解除する解錠部材3eと、不正に被制御体3の扉
をこじ開けたことを検出する複数のこじ開けセンサ3f
と、該こじ開けセンサ3fが不正こじ開けを検出した時に
警報を発するブザー3gと、前記制御回路3aの動作状態を
印字するプリンター3hと、前記赤外線キー2の赤外線発
光器2cよりのコード化された赤外線信号を受光する赤外
線受光器3i、制御回路3aよりのコード化された赤外線信
号を前記赤外線キー2の赤外線受光器2dに発信する赤外
線発光器3j、前記各装置に電源を供給するバッテリー等
の電源3kおよび制御回路3aを構成するROM3l、RAM3m、CP
U3nからなるマイクロコンピュータとが収納されてい
る。そして、このマイクロコンピュータは後に詳述する
第7図に示す如き動作を行うものである。Further, with respect to the configuration of the controlled body 3 described above, FIG.
It will be described together with FIG. The controlled circuit 3 includes a control circuit.
Actuator 3b that operates with the signal from 3a and mechanical key
A cylinder 3d that rotates by 3c, an unlocking member 3e that unlocks the lock means by operating the actuator 3b or the cylinder 3d, and a plurality of prying sensors 3f that detect that the door of the controlled object 3 has been fraudulently opened.
A buzzer 3g that gives an alarm when the prying sensor 3f detects an illegal prying, a printer 3h that prints the operating state of the control circuit 3a, and an infrared coded from the infrared emitter 2c of the infrared key 2. Infrared light receiver 3i for receiving signals, infrared light emitter 3j for transmitting the coded infrared signal from the control circuit 3a to the infrared light receiver 2d of the infrared key 2, and a power source such as a battery for supplying power to each device. ROM3l, RAM3m, CP that make up 3k and control circuit 3a
It contains a U3n microcomputer. The microcomputer operates as shown in FIG. 7, which will be described in detail later.
なお、3oは前記マイクロコンピュータのRAM3mに前記
コード信号を前記赤外線キー2より入力する時に操作す
る登録スイッチである。3o is a registration switch operated when the code signal is input to the RAM 3m of the microcomputer from the infrared key 2.
次ぎに、前記した各装置の動作を第5図〜第7図のフ
ローチャート図と共に説明する。Next, the operation of each of the above-mentioned devices will be described with reference to the flow charts of FIGS.
先ず、設定機1から赤外線キー2に情報を入力する動
作を第5図、第6図と共に説明する。First, the operation of inputting information from the setting device 1 to the infrared key 2 will be described with reference to FIGS. 5 and 6.
ここで、設定機1から赤外線キー2に入力するデータ
としては、被制御体3の扉を解錠するためのコード番号
A,Bと、赤外線キー2を操作し得る時間T、すなわち作
業時間Tおよび被制御体3より料金を徴収し製品の補充
を行う回数に相当する回数Nである。また、前記解錠す
るためのコード番号としてA,Bとしたのは、赤外線キー
2によって解錠できる被制御体3を限定するためであ
る。すなわち、赤外線キー2より送出されたコード番号
Aを被制御体3で受信すると、該受信したコード番号A
と被制御体3に記憶されているコード番号Aとを比較
し、一致している時に被制御体3から乱数を発信すると
共に、この乱数とコード番号Bとを乗算し、一方、この
乱数を受信した赤外線キー2においてこの乱数とコード
番号Bとを乗算して再び発信し、この演算した結果を受
信した被制御体3は自ら演算した結果と比較して一致し
ている時に扉を解錠して開放を可能とする。このような
相互交信することにより、特定の赤外線キー2によって
のみ特定の被制御体3の解錠が行われるので、不正によ
る解錠を防止できる。また、前記コード番号Aを赤外線
キー2より送信した時に、被制御体3に記憶されている
コード番号とが相違していた場合には、該被制御体3よ
りキャンセル信号が送出され、赤外線キー2に記憶され
ている作業時間と回数とをリセットするので、それ以降
の赤外線キー2の操作による解錠が不可能となり、これ
によっても不正使用を防止できることとなる。Here, the data to be input from the setting device 1 to the infrared key 2 is a code number for unlocking the door of the controlled body 3.
A and B are the time T during which the infrared key 2 can be operated, that is, the working time T and the number N corresponding to the number of times a charge is collected from the controlled object 3 and the product is replenished. Moreover, the reason why the code numbers for unlocking are A and B is to limit the controlled object 3 that can be unlocked by the infrared key 2. That is, when the controlled object 3 receives the code number A sent from the infrared key 2, the received code number A
And the code number A stored in the controlled object 3 are compared, and when they match, a random number is transmitted from the controlled object 3 and this random number is multiplied by the code number B, while this random number is The received infrared key 2 multiplies the random number by the code number B and transmits again, and the controlled object 3 receiving the calculated result compares it with the calculated result by itself and unlocks the door when they match. And open the door. By performing such mutual communication, the specific controlled object 3 is unlocked only by the specific infrared key 2, and thus unlocking due to fraud can be prevented. When the code number A is transmitted from the infrared key 2 and the code number stored in the controlled object 3 is different, a cancel signal is sent from the controlled object 3 and the infrared key 2 is transmitted. Since the working time and the number of times stored in No. 2 are reset, unlocking by subsequent operation of the infrared key 2 becomes impossible, which also prevents unauthorized use.
以上のような機能を得るために、設定機1から赤外線
キー2にデータを入力する必要がある。そこで、先ず、
設定機1を操作する人の暗証番号をキーボード1bを操作
して入力する(ステップS01)。そして、この暗証番号
が予め設定されている番号と一致しているか否かを監視
し(ステップS02)、一致した場合にはコード番号Aを
入力するためのAキーが押されたか否かを監視し(ステ
ップS03)、該コード番号Aの数値を入力する(ステッ
プS04)。その後、リターンキーが押されたか否かを監
視し(ステップS05)、該キーが押されるとRAM1fにコー
ド番号Aを記憶させる(ステップS06)。In order to obtain the above functions, it is necessary to input data from the setting device 1 to the infrared key 2. So, first,
The personal identification number of the person who operates the setting machine 1 is input by operating the keyboard 1b (step S01). Then, it is monitored whether or not this personal identification number matches a preset number (step S02), and if it matches, it is monitored whether or not the A key for inputting the code number A is pressed. Then (step S03), the numerical value of the code number A is input (step S04). Thereafter, it is monitored whether or not the return key is pressed (step S05), and when the key is pressed, the code number A is stored in the RAM 1f (step S06).
次いで、設定機1内に記憶された情報を赤外線キー2
に入力するための設定キー(赤外線キー2に何も登録さ
れていない場合には、コード番号A,Bと作業時間と回数
とを設定機1で設定した時に操作し、また、既にコード
番号A,Bが登録されている場合には、作業時間と回数の
みを入力する時に操作する。)が押されたか否かを監視
し(ステップS07)、該キーが押されなかった場合には
ステップS03に戻る。ここで、Aキーが既に操作されて
いるので、ステップS08に進んでコード番号Bを入力す
るためのBキーが押されたか否かを監視し、該コード番
号Bの数値を入力する(ステップS09)。その後、リタ
ーンキーが押されたか否かを監視し(ステップS10)、
該キーが押されるとRAM5にコード番号Bを記憶させる
(ステップS11)。Then, the information stored in the setting machine 1 is changed to the infrared key 2
Setting key to input to (when nothing is registered in the infrared key 2, it is operated when the code number A, B and the working time and the number of times are set on the setting machine 1, and the code number A has already been entered. , B is registered, it is operated to input only the working time and the number of times) is monitored (step S07), and if the key is not pressed, step S03 is performed. Return to. Here, since the A key has already been operated, it proceeds to step S08 to monitor whether or not the B key for inputting the code number B is pressed, and the numerical value of the code number B is input (step S09). ). After that, it is monitored whether the return key is pressed (step S10),
When the key is pressed, the code number B is stored in the RAM 5 (step S11).
次いで、ステップS07に戻って設定キーが押されたか
否かを監視し、該キーが押されなかった場合には、ステ
ップS03、ステップS08を通過してステップS12〜S15に進
みRAM1fに何回操作するかの回数Nを記憶する。以下、
前記したと同様なステップにより操作し得る時間Tを、
ステップS16〜S19によってRAM1fに記憶する。Next, returning to step S07, it is monitored whether or not the setting key is pressed, and if the key is not pressed, the operation proceeds to steps S12 to S15 through steps S03 and S08, and the RAM 1f is operated many times. The number N of times of execution is stored. Less than,
The time T that can be operated by the same steps as described above,
The data is stored in the RAM 1f by steps S16 to S19.
このように、コード番号A,Bの2種類と、該コード番
号を発信し得る回数NおよびTの設定が終了したら、赤
外線キー2を設定機1の挿入口1aにセットする。する
と、設定機1は設定キーが押されたか否かを監視し(ス
テップS07)、該設定キーが押されると赤外線キー2が
セットされているか否かを監視する(ステップS20)。
ここで、赤外線キー2がセットされていないと、アラー
ムによって警報を発し赤外線キー2をセットする旨を報
知する(ステップS21)。また、赤外線キー2がセット
されている場合には、設定機1のRAM1fに記憶されてい
る前記データであるコード番号A,Bの2種類と、該コー
ド番号を発信し得る回数Nおよび時間Tの送出が開始さ
れ(ステップS22)、該データA,B,N,Tが出力される(ス
テップS23)。In this way, after the two types of code numbers A and B and the number of times N and T at which the code numbers can be transmitted are set, the infrared key 2 is set in the insertion slot 1a of the setting machine 1. Then, the setting machine 1 monitors whether the setting key is pressed (step S07), and when the setting key is pressed, monitors whether the infrared key 2 is set (step S20).
Here, if the infrared key 2 is not set, an alarm is issued by an alarm to notify that the infrared key 2 is set (step S21). When the infrared key 2 is set, two types of code numbers A and B, which are the data stored in the RAM 1f of the setting machine 1, the number N of times and the time T at which the code number can be transmitted. Is started (step S22), and the data A, B, N, T are output (step S23).
一方、赤外線キー2は設定機1にセットされると、操
作スイッチ2aが操作されたか否かを監視し(ステップS3
1)、赤外線キー2へのデータ入力であることから操作
スイッチ2aは操作されないので、ステップS32に進み、
ここで設定開始か否かを監視し、設定開始であることか
ら、前記設定機1よりのデータA,B,N,Tが赤外線キーB
のRAM2fに入力され(ステップS33)、かつ、該データA,
B,N,Tは確認のために出力される(ステップS34)。そし
て、このデータA,B,N,Tは設定機1に入力され(ステッ
プS24)、赤外線キー2に記憶されたデータが設定機1
から出力されたデータと一致するか否かを監視し(ステ
ップS25)、一致している場合には確認信号を出力し
(ステップS26)、設定終了アラームを動作させる(ス
テップS27)。そして、前記ステップS26よりの確認信号
が出力されると、赤外線キー2はこれを確認して(ステ
ップS35)、コード番号A,Bおよび操作回数Nと時間Tと
を記憶する(ステップS36)と共に、該時間Tに基づく
タイマー時間をスタートされる(ステップS37)。On the other hand, when the infrared key 2 is set on the setting machine 1, it monitors whether the operation switch 2a has been operated (step S3).
1) Since the operation switch 2a is not operated because the data is input to the infrared key 2, the process proceeds to step S32.
Whether or not the setting is started is monitored here. Since the setting is started, the data A, B, N, T from the setting machine 1 is the infrared key B.
Is input to the RAM 2f (step S33), and the data A,
B, N, T are output for confirmation (step S34). Then, the data A, B, N, T are input to the setting machine 1 (step S24), and the data stored in the infrared key 2 is set in the setting machine 1.
It is monitored whether or not it matches the data output from (step S25), and if they match, a confirmation signal is output (step S26) and the setting end alarm is activated (step S27). When the confirmation signal is output from step S26, the infrared key 2 confirms this (step S35) and stores the code numbers A and B, the number of operations N and the time T (step S36). , A timer time based on the time T is started (step S37).
このアラームを確認した操作者は終了キーを操作する
と、ステップS28において終了キーが操作されたか否か
を監視しているので、初段のステップに戻って赤外線キ
ー2への設定は終了する。また、終了キーが押されなか
った場合には、同じデータが入力された赤外線キー2を
複数個製作する時に操作する設定キーが操作されたか否
かを監視し(ステップS29)、設定キーが押された場合
にはステップS20の前に戻り、挿入孔1aに挿入された新
たな赤外線キー2に前記したと同じデータが記憶され
る。また、設定キーが押されなかった場合にはステップ
S28に戻り終了キーが操作されるのを待つ。When the operator who confirms this alarm operates the end key, since it is monitored in step S28 whether or not the end key has been operated, the process returns to the first step and the setting to the infrared key 2 ends. If the end key is not pressed, it is monitored whether or not the setting key operated when manufacturing a plurality of infrared keys 2 in which the same data is input is operated (step S29), and the setting key is pressed. If so, the process returns to step S20 and the same data as described above is stored in the new infrared key 2 inserted in the insertion hole 1a. If the setting key is not pressed, step
Return to S28 and wait for the end key to be operated.
以上が赤外線キー2への設定機1からの入力について
の説明であるが、次ぎに被制御体3の初期設定動作につ
いて第6図、第7図と共に説明する。The above is the description of the input from the setting device 1 to the infrared key 2. Next, the initial setting operation of the controlled object 3 will be described with reference to FIGS. 6 and 7.
先ず、メカキー3cを利用してシリンダー3dを解錠し扉
を開放すると共に、登録スイッチ3oをオン状態にする。
この状態において赤外線キー2の赤外線発光器、受光器
2c,2dを被制御体3の赤外線受光器、発光器3i,3jに対面
させ操作スイッチ2aを操作する。すると、被制御体3内
において、スイッチ2aがオンされたか否かを監視(ステ
ップS31)しているので、該スイッチ2aが操作されたこ
とにより、赤外線発光器2cよりRAM2fに記憶されたコー
ド番号Aが赤外線として出力される(ステップS41)。
また、コード番号Aを送出した後、時間Tおよび回数N
が0になっているか否かを監視し(ステップS42,43)、
0でない場合に被制御体3よりの赤外線信号の受信待機
状態となる(ステップS44)。First, the mechanical key 3c is used to unlock the cylinder 3d to open the door and turn on the registration switch 3o.
In this state, the infrared light emitter and the light receiver of the infrared key 2
2c and 2d are faced to the infrared receivers and light emitters 3i and 3j of the controlled body 3 and the operation switch 2a is operated. Then, in the controlled object 3, since it is monitored whether or not the switch 2a is turned on (step S31), the code number stored in the RAM 2f from the infrared light emitter 2c is operated by operating the switch 2a. A is output as infrared rays (step S41).
Also, after transmitting the code number A, the time T and the number of times N
Monitor whether or not is 0 (steps S42, 43),
If it is not 0, a standby state for receiving an infrared signal from the controlled object 3 is set (step S44).
一方、被制御体3は赤外線受光器3iがコード番号Aを
受信したか否かを監視し(ステップS61)、このデータ
信号が入力されたことを検出すると、シリンダー3dがア
ンロックか否かを監視し(ステップS62)、アンロック
状態であると扉が開放されているか否かを監視する(ス
テップS63)。扉が開放されている場合には、前記登録
スイッチ3oが登録モードに切換えられているか否かを監
視し(ステップS64)、先ず、赤外線キー2よりのコー
ド番号Aを読み取りRAM2fにコード番号A1として記憶す
る(ステップS65)。そして、このコード番号Aを記憶
した後、乱数信号を赤外線発光器3jより赤外線信号とし
て送信し(ステップS66)、受信待機状態となる(ステ
ップS67)。On the other hand, the controlled object 3 monitors whether or not the infrared receiver 3i has received the code number A (step S61), and when detecting that this data signal has been input, determines whether or not the cylinder 3d is unlocked. It is monitored (step S62), and if unlocked, it is monitored whether the door is open (step S63). When the door is open, it is monitored whether or not the registration switch 3o is switched to the registration mode (step S64). First, the code number A read from the infrared key 2 is read into the RAM 2f and the code number A 1 is read. (Step S65). Then, after storing this code number A, a random number signal is transmitted as an infrared signal from the infrared light emitter 3j (step S66), and a reception standby state is set (step S67).
一方、赤外線キー2は受信待機状態であり信号の入力
が有るか否かを監視しているので(ステップS45)、被
制御体3より送信された乱数信号を赤外線受光器2dにて
受信されると、該信号が前記した作業回数と時間をリセ
ットするためのリセット信号であるか否かを判断し(ス
テップS46)、乱数信号である場合にはステップS47に進
み乱数とコード番号Bとの乗算を行い(ステップS4
8)、その結果を赤外線発光器2cを介して送信する(ス
テップS49)と共に、再び受信待機状態となり(ステッ
プS50)、次ぎの信号入力を監視する(ステップS51)。On the other hand, since the infrared key 2 is in the reception standby state and monitors whether or not a signal is input (step S45), the random number signal transmitted from the controlled object 3 is received by the infrared receiver 2d. Then, it is determined whether or not the signal is a reset signal for resetting the number of times of work and the time described above (step S46). (Step S4
8) The result is transmitted via the infrared light emitter 2c (step S49), and the reception standby state is again established (step S50), and the next signal input is monitored (step S51).
そして、この乱数とコード番号Bとの乗算結果を受信
した(ステップS68)被制御体3は受信した乗算結果を
発生した乱数で除算を行い(ステップS69)、赤外線キ
ー2よりのコード番号Bを算出しRAM3mにコード番号B1
として記憶する(ステップS70)。その後、前記記憶し
たA1,B1を確認するために、リピート信号の送信を行い
(ステップS71)、受信待機状態となる(ステップS7
2)。このリピート信号を受信した赤外線キー2は、回
数Nを減算する信号か否かを監視するステップS52から
リピート信号で有るか否かを監視するステップS53を介
してステップS41に戻り、再び前記したコード番号Aを
送信するので、被制御体3はこのコード番号Aを受信し
(ステップS73)、前回記憶したコード番号A1と一致し
ているか否かを判断し(ステップS74)、一致している
場合にはこれを記憶し(ステップS75)、その後、前記
したステップS66〜S69と同様なステップS76〜S78′の動
作を行った結果、算出されたコード信号が前回記憶した
コード番号B1と一致しているか否かを判断し(ステップ
S79)、一致している場合にはこれを記憶し(ステップS
80)。また、ステップS75およびS80において一致してい
ない場合には、エラー表示を行い(ステップS81)前記
した動作を最初から行うように指示する。そして、ステ
ップS80においてコード番号Bを記憶すると、登録終了
表示が行われ(ステップS82)、登録スイッチ3oを元に
戻したか否かを監視し(ステップS83)、元に戻される
と最初の状態に戻る。Then, the controlled object 3, which has received the multiplication result of the random number and the code number B (step S68), divides the received multiplication result by the generated random number (step S69), and obtains the code number B from the infrared key 2. Calculate and RAM3m code number B 1
(Step S70). Then, in order to confirm the stored A 1 and B 1 , a repeat signal is transmitted (step S71), and a reception standby state is set (step S7).
2). The infrared key 2 which has received this repeat signal returns from step S52, which monitors whether it is a signal for subtracting the number N, to step S41, which monitors whether it is a repeat signal, and returns to step S41, and again the code described above. Since the number A is transmitted, the controlled object 3 receives this code number A (step S73), determines whether or not it matches the previously stored code number A 1 (step S74), and it matches. If the stores this (step S75), then the above-mentioned steps S66~S69 result of the operation of the same steps S76~S78 'and a code number B 1 of the calculated code signal has been previously stored one Judge whether or not (step
S79), and if they match, memorize this (step S
80). If they do not match in steps S75 and S80, an error message is displayed (step S81) and an instruction is given to perform the above-mentioned operation from the beginning. When the code number B is stored in step S80, a registration completion display is displayed (step S82), and it is monitored whether or not the registration switch 3o is returned to its original state (step S83). Return.
以上が被制御体3への最初のコード番号登録動作につ
いての説明であるが、次ぎに赤外線キー2によって被制
御体3の扉を開放し、料金を徴収しあるいはコーラ等の
製品を補充する動作について第6図、第7図と共に説明
する。The above is the description of the first code number registration operation to the controlled object 3, and then the operation of opening the door of the controlled object 3 by the infrared key 2 to collect the charge or supplement the product such as cola. This will be described with reference to FIGS. 6 and 7.
先ず、設定機1にテンキー1bより操作者の暗証番号を
入力して、該設定機1を可動状態にする。次いで、該赤
外線キー2を使う回数Nおよび時間Tを入力した後、赤
外線キー2を設定機1の挿入口1a内に挿入し、登録スイ
ッチを操作して前記回数Nと時間TのデータをRAM2fに
記憶する。なお、コード番号A,Bは前記した動作によっ
て予め記憶されているので、ここでの登録を行う必要は
ない。First, the operator's personal identification number is input to the setting machine 1 using the ten-key 1b to make the setting machine 1 in a movable state. Next, after inputting the number of times N and the time T to use the infrared key 2, insert the infrared key 2 into the insertion slot 1a of the setting machine 1 and operate the registration switch to store the data of the number N and the time T in the RAM 2f. Remember. Since the code numbers A and B are stored in advance by the above operation, it is not necessary to register them here.
このように、コード番号A,B、回数Nおよび時間Tが
記憶された赤外線キー2を所持し、被制御体3の近くに
行き、該赤外線キー2の赤外線発光器、受光器2c,2dを
被制御体3の赤外線受光器、発光器3i,3jに接近させ、
操作スイッチ2aを操作する。これにより、前記した第6
図のステップS31,41の動作が行われ、コード番号Aが出
力される。In this way, the infrared key 2 in which the code numbers A and B, the number of times N and the time T are stored is carried, and the infrared key 2 of the infrared key 2 and the light receivers 2c and 2d are held near the controlled object 3. Bring the infrared receiver of the controlled object 3 and the light emitters 3i, 3j close to
Operate the operation switch 2a. As a result, the sixth
The operations of steps S31 and S41 in the figure are performed, and the code number A is output.
一方、被制御体3においてコード番号Aを受信するの
で、前記した第7図のステップS62まで進む。このステ
ップS62において、シリンダー3dはロック状態にあるの
で、ステップS84に進み、コード番号Aであるか否かを
判断する。ここで、赤外線キー2よりコード番号Aが送
信されているので、乱数信号を送信する(ステップS8
5)。この乱数信号を受信した赤外線キー2はコード番
号Aを送信した後、ステップS47まで進んでいるので、
受信した乱数とコード番号Bとの乗算を行い(ステップ
S48)、次いでその結果を送信する(ステップS49)。前
記乱数信号を送信した後、被制御体3は前記乱数と記録
しているコード番号Bとの乗算を行ってRAM3mに記憶
(ステップS87)すると共に受信待機状態となる(ステ
ップS88)。On the other hand, since the controlled object 3 receives the code number A, the process proceeds to step S62 in FIG. In step S62, since the cylinder 3d is in the locked state, the process proceeds to step S84, and it is determined whether the code number is A or not. Since the code number A is transmitted from the infrared key 2, a random number signal is transmitted (step S8).
Five). Since the infrared key 2 which has received this random number signal has transmitted the code number A and has proceeded to step S47,
The received random number is multiplied by the code number B (step
Then, the result is transmitted (step S49). After transmitting the random number signal, the controlled object 3 multiplies the random number by the recorded code number B, stores the result in the RAM 3m (step S87), and enters the reception waiting state (step S88).
そして、赤外線キー2よりの乱数とコード番号Bとの
乗算結果を受信すると、この演算結果と前記RAM3mに記
憶した結果とが一致しているか否かを監視し(ステップ
S89)、一致した場合にはアクチュエータ3bを駆動し
て、シリンダー3dを解錠する(ステップS90)。これと
同時に回数Nを1つ減算する信号を送出するので(ステ
ップS91)、これを受信した赤外線キー2はステップS52
からステップS54に進み、回線Nを記憶したカウンタか
ら1つを減算する。When the multiplication result of the random number from the infrared key 2 and the code number B is received, it is monitored whether or not the calculation result and the result stored in the RAM 3m match (step
S89), if they match, the actuator 3b is driven to unlock the cylinder 3d (step S90). At the same time, a signal for subtracting one from the number of times N is sent (step S91).
From step S54, one is subtracted from the counter storing the line N.
一方、前記した被制御体3の動作におけるステップS8
4での判別がコード番号Aでないと判断すると、赤外線
キー2のRAM2fに記憶されている作業回数Nと時間Tを
不正な動作による解錠動作であるとしてリセットするた
めのリセット信号が送出される(ステップS92)。この
リセット信号を赤外線キー2の動作におけるステップS4
6でリセット信号であると判断すると、該赤外線キー2
に前記動作において記憶した回数N、時間Tを0リセッ
トし、それ以降のデータ送信が行えないようにする(ス
テップS55)。On the other hand, step S8 in the operation of the controlled body 3 described above.
When it is determined that the determination at 4 is not the code number A, a reset signal for resetting the number of work times N and the time T stored in the RAM 2f of the infrared key 2 as an unlocking operation due to an illegal operation is transmitted. (Step S92). This reset signal is sent to the infrared key 2 in step S4.
When it is judged that the signal is a reset signal at 6, the infrared key 2
The number of times N and the time T stored in the above operation are reset to 0 so that the data cannot be transmitted thereafter (step S55).
前記したような動作においてシリンダー3dが解錠され
たなら、作業者は被制御体3内のコインの徴集を行い、
かつ製品の補充を行う。そして、作業が終了し、作業者
は扉を閉じた後に赤外線キー2の操作スイッチ2aを操作
する。これにより、被制御体3は前記したステップS61
〜S63に進み、扉が閉じられていることからステップS93
においてコード番号待ち状態となる。この時、前記操作
スイッチ2aの操作によりコード番号Aが送出されるの
で、ステップS93より施錠信号が送出され、アクチュエ
ータ3bを動作してシリンダー3dを施錠状態とする(ステ
ップS94)。If the cylinder 3d is unlocked in the above-mentioned operation, the worker collects coins in the controlled body 3,
And to replenish the product. Then, the work is completed, and the operator operates the operation switch 2a of the infrared key 2 after closing the door. As a result, the controlled object 3 is controlled by the step S61.
Go to step S63, and step S93 is performed because the door is closed.
At the code number waiting state. At this time, since the code number A is transmitted by operating the operation switch 2a, a lock signal is transmitted from step S93, and the actuator 3b is operated to bring the cylinder 3d into the locked state (step S94).
また、ステップS93の信号待ちにおいて、コード番号
Aが所定のコード番号と違う場合、すなわち、キー間違
いの場合には、前記リセット信号が送出される(ステッ
プS95)。従って、前記ステップS92よりのリセット信号
送出時と同時に赤外線キー2の回数Nと時間Tは0リセ
ットされる。Further, when the code number A is different from the predetermined code number in the signal waiting in step S93, that is, when the key is wrong, the reset signal is sent (step S95). Accordingly, the number of times N and the time T of the infrared key 2 are reset to 0 at the same time when the reset signal is sent from step S92.
そして、このような動作は、赤外線キー2に記憶され
た回数Nまたは時間Tの間行うことができるものであ
る。Then, such an operation can be performed for the number of times N or the time T stored in the infrared key 2.
なお実施例では、乱数とコード番号Bとの乗算を行な
うようにしていたが、この演算は加算、減算等、赤外線
キーと被制御体との間で定められた関数によって演算さ
せるようにしてもよい。In the embodiment, the random number is multiplied by the code number B, but this calculation may be performed by a function defined between the infrared key and the controlled object, such as addition and subtraction. Good.
本発明は前記したように、コード番号を2つに分け
て、1つのコード番号は赤外線キーのみでは発信せず、
また、該1つのコード番号は乱数によって毎回異なる形
で自動販売機等の被制御体から送信されるので、赤外線
キーのコピーが非常に困難となって第三者の不正使用に
よる解錠が防止でき、また、赤外線キーには使用可能な
回数と時間とが入力され、1つの被制御体を解錠する毎
に回数が減算され、かつ、前記コード番号が相違する被
制御体を解錠しようとした場合には、前記回数と時間を
0リセットして、それ以降の解錠を不可能とするので、
第三者が赤外線キーを拾得してもこれを使用することが
できず、従って、赤外線キーの紛失にも安全である等の
効果を有するものである。As described above, the present invention divides the code number into two, and one code number cannot be transmitted only by the infrared key,
Further, since the one code number is transmitted from the controlled object such as a vending machine in a different form each time by a random number, it is very difficult to copy the infrared key and the unlocking by unauthorized use by a third party is prevented. The number of times and time that can be used is input to the infrared key, the number of times is subtracted each time one controlled object is unlocked, and the controlled object having a different code number is unlocked. In such a case, the number of times and the time are reset to 0, and unlocking thereafter becomes impossible.
Even if a third party picks up the infrared key, it cannot be used. Therefore, the infrared key is safe even if it is lost.
第1図は全体の構成を示す説明図、 第2図は設定機のブロック図、 第3図は赤外線キーのブロック図、 第4図は被制御体のブロック図、 第5図は設定機の動作を示すフローチャート図、 第6図は赤外線キーの動作を示すフローチャート図、 第7図は被制御体の動作を示すフローチャート図であ
る。 1……設定機、2……赤外線キー、3……被制御体、3b
……アクチュエータ、3d……シリンダー。FIG. 1 is an explanatory diagram showing the overall configuration, FIG. 2 is a block diagram of a setting machine, FIG. 3 is a block diagram of an infrared key, FIG. 4 is a block diagram of a controlled object, and FIG. FIG. 6 is a flowchart showing the operation, FIG. 6 is a flowchart showing the operation of the infrared key, and FIG. 7 is a flowchart showing the operation of the controlled object. 1 ... Setting machine, 2 ... Infrared key, 3 ... Controlled object, 3b
...... Actuator, 3d …… Cylinder.
Claims (3)
し、後述する被制御体からの乱数信号と記憶されている
第2のコード番号とをある定められた関数によって演算
してその結果を送出する赤外線キーと、該赤外線キーよ
りの前記第1のコード番号を受信し記憶されている第1
のコード番号と一致した時に乱数信号を送出すると共
に、この乱数と記憶されている第2のコード番号とをあ
る定められた関数によって演算し、前記赤外線キーより
の前記演算結果と前記自ら演算した結果とを比較し、一
致した時にアクチュエータを動作して扉等を開放する自
動販売機等の被制御体とから構成したことを特徴とする
赤外線錠装置。1. A stored first code number is transmitted, and a random number signal from a controlled body, which will be described later, and a stored second code number are calculated by a predetermined function, and the result is obtained. And an infrared key for transmitting the first code number received from the infrared key and stored in the first code number.
When a random number signal is sent when it coincides with the code number of, the random number and the stored second code number are calculated by a predetermined function, and the calculation result from the infrared key and the self calculation are performed. An infrared lock device comprising: a control object such as a vending machine that operates an actuator to open a door when the results are compared with each other.
御体を操作し得る回数とが入力され、前記コード番号を
送出すると共に被制御体を解錠する毎に前記回数が1つ
減算され、かつ被制御体からのリセット信号で回数が0
リセットされる赤外線キーと、該赤外線キーよりの前記
コード番号と自ら記憶しているコード番号とが一致した
時にアクチュエータを動作してシリンダー錠を解錠する
と共に前記回数を1つ減算する信号を送出し、また前記
赤外線キーよりのコード番号が不一致の時に前記回数を
0リセットする信号を送出する自動販売機等の被制御体
とから構成したことを特徴とする赤外線錠装置。2. A code number for unlocking and a number of times a controlled object to be described later can be operated are input, and the number is 1 each time the code number is transmitted and the controlled object is unlocked. It is subtracted and the number of times is 0 by the reset signal from the controlled object.
When the infrared key to be reset matches the code number from the infrared key and the code number stored by itself, the actuator is operated to unlock the cylinder lock, and a signal for subtracting the number of times is sent out. In addition, the infrared lock device comprises a controlled object such as a vending machine which sends a signal for resetting the number of times to 0 when the code numbers from the infrared key do not match.
御体を操作し得る時間とが入力され、被制御体からのリ
セット信号で前記時間が0リセットされる赤外線キー
と、該赤外線キーよりの前記コード番号と自ら記憶して
いるコード番号とが一致した時にアクチュエータを動作
してシリンダー錠を解錠し、また、前記赤外線キーより
のコード番号が不一致の時に前記時間を0リセットする
信号を送出する自動販売機等の被制御体とから構成した
ことを特徴とする赤外線錠装置。3. An infrared key for inputting a code number for unlocking and a time during which a controlled object, which will be described later, can be operated, is reset to 0 by a reset signal from the controlled object, and the infrared key. When the code number from the key matches the code number stored by itself, the actuator is operated to unlock the cylinder lock, and when the code number from the infrared key does not match, the time is reset to 0. An infrared lock device comprising a controlled object such as a vending machine which sends out a signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63017339A JPH086519B2 (en) | 1988-01-29 | 1988-01-29 | Infrared lock device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63017339A JPH086519B2 (en) | 1988-01-29 | 1988-01-29 | Infrared lock device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01192970A JPH01192970A (en) | 1989-08-03 |
| JPH086519B2 true JPH086519B2 (en) | 1996-01-24 |
Family
ID=11941295
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63017339A Expired - Fee Related JPH086519B2 (en) | 1988-01-29 | 1988-01-29 | Infrared lock device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH086519B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110254661A1 (en) | 2005-12-23 | 2011-10-20 | Invue Security Products Inc. | Programmable security system and method for protecting merchandise |
| JP4391546B2 (en) | 2007-04-06 | 2009-12-24 | 三菱電機株式会社 | Vehicle communication system |
| CN107209977A (en) | 2014-11-18 | 2017-09-26 | Invue安全产品公司 | Key and safety device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5832586U (en) * | 1981-08-25 | 1983-03-03 | ワイケイケイ株式会社 | crime prevention alarm device |
| JPS60123680A (en) * | 1983-12-06 | 1985-07-02 | シャープ株式会社 | Electric lock apparatus |
| JPS6456247A (en) * | 1987-08-25 | 1989-03-03 | Honda Motor Co Ltd | Burglar-proof device |
-
1988
- 1988-01-29 JP JP63017339A patent/JPH086519B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01192970A (en) | 1989-08-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4155412B2 (en) | Locking device and method of using the same | |
| US7821395B2 (en) | Vending machines with field-programmable locks | |
| US7576633B2 (en) | Method and apparatus for controlling a safe having an electronic lock | |
| WO2003034359A1 (en) | Method and apparatus for monitoring a safe | |
| JP2006262942A (en) | Coin laundry use system | |
| JP4213278B2 (en) | Goods storage locker | |
| JPH086519B2 (en) | Infrared lock device | |
| US7337469B2 (en) | Method and system for unlocking doorway | |
| JPH05321531A (en) | Locker device | |
| JP4017062B2 (en) | Key management device | |
| JP2006127237A (en) | Automatic vending machine | |
| JP2020045751A (en) | Unlocking system for electronic lock unit of electrical device | |
| JPH11141208A (en) | Delivery locker device and delivery locker system | |
| JP2001241235A (en) | Operation-information acquisition system | |
| JP3391783B1 (en) | Digital locking device | |
| JP3242184B2 (en) | Password locker system | |
| JP2575841B2 (en) | Delivery locker | |
| JP2001349111A (en) | Coin-operated locker-system | |
| JP2802153B2 (en) | Electric unlocking method | |
| KR200207646Y1 (en) | Selling management system of vending machine | |
| JP2520165B2 (en) | Rocker door locking / unlocking device | |
| JPH09327600A (en) | Controller for machine | |
| JPH01226991A (en) | Locker | |
| JP2025084616A (en) | Vending Machine System | |
| JP2023178644A (en) | Key management system, key management device, and key management method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |