JPH04143387A - Electronic key device - Google Patents

Electronic key device

Info

Publication number
JPH04143387A
JPH04143387A JP2267141A JP26714190A JPH04143387A JP H04143387 A JPH04143387 A JP H04143387A JP 2267141 A JP2267141 A JP 2267141A JP 26714190 A JP26714190 A JP 26714190A JP H04143387 A JPH04143387 A JP H04143387A
Authority
JP
Japan
Prior art keywords
code
key
variable
electronic
signal
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.)
Pending
Application number
JP2267141A
Other languages
Japanese (ja)
Inventor
Satoshi Kinoshita
聡 木下
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2267141A priority Critical patent/JPH04143387A/en
Publication of JPH04143387A publication Critical patent/JPH04143387A/en
Pending legal-status Critical Current

Links

Landscapes

  • Lock And Its Accessories (AREA)
  • Calculators And Similar Devices (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To set a key code so easily by installing a command code storage means, storing a command code commanding so as to set a variable code to an electronic lock, and a command code delivery means delivering a code stored in the storage means, respectively. CONSTITUTION:A key operating signal is outputted to a control part 10 via a key input part 12. Next, in this control part 10, a ficed code of a read-only memory 11 and a variable code of a random access memory 15 are converted into an electric signal each through a conversion part 16 and outputted to a driving part 17. Then, a light emitting diode 4 is turned on or off by this driving part 17, outputting a light signal to a photodiode 21. Then, an electric signal is outputted to a lock side conversion part 23 from this diode 21 via a waveform forming part 22, thus it is converted into a digital signal and outputted to a lock side control part 24. In addition, in this control part 24, the variable code is stored in a random access memory 26, and it is compared with a command code stored in a memory area 25C of a read-only memory 25, and when they are not accorded with each other, it should be set to the random access memory 26 as the variable code.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明は、電波、光、超音波等を利用して錠に対して特
定なコードを発信して少なくとも非接触的に錠のロック
を解除する電子キー装置に関する。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention unlocks the lock at least in a non-contact manner by transmitting a specific code to the lock using radio waves, light, ultrasonic waves, etc. It relates to an electronic key device.

[従来の技術] 従来、家屋の門扉、部屋の戸、車庫のシャッタ、車のド
ア、金庫、ロッカー等の保安装置として電子錠を備え、
電子キーを用いて錠を開閉する電子キー装置が知られて
いる。例えば自動車のドアの開閉に使用される電子キー
システム(キーレス・エントリー・システム)では、送
信する電子キー側回路の回路基板上に、コード長(ビッ
ト数)に対応する配線パターンを設けて、その配線パタ
ーンを接地レベル(“L”)又は電源電圧レベル(“H
”)に接続することにより鍵コードの内容を決定し、そ
の鍵コードをrOJと「1」からなるデジタル信号とし
て送信できるようにしている。
[Prior Art] Conventionally, electronic locks have been used as security devices for house gates, room doors, garage shutters, car doors, safes, lockers, etc.
Electronic key devices that open and close locks using electronic keys are known. For example, in an electronic key system (keyless entry system) used to open and close car doors, a wiring pattern corresponding to the code length (number of bits) is provided on the circuit board of the electronic key side circuit that transmits. Connect the wiring pattern to ground level (“L”) or power supply voltage level (“H”)
”), the content of the key code is determined, and the key code can be transmitted as a digital signal consisting of rOJ and “1”.

また、上記配線パターンの代りに、マスクROMまたは
プログラマブルROMを配設し、これらのROMに鍵コ
ードを記憶させ、かつ送信するようにしたものも知られ
ている。上記どちらの方法で構成しても、鍵コードは電
子キー製造の段階で決定され電子キー回路内に設定され
る固定コードであるので、以後鍵コードの変更はできな
い。
It is also known that a mask ROM or a programmable ROM is provided in place of the above-mentioned wiring pattern, and a key code is stored and transmitted in these ROMs. No matter which method is used, the key code is a fixed code determined at the electronic key manufacturing stage and set in the electronic key circuit, so the key code cannot be changed thereafter.

近年、例えばCD(キャッシュデスペンサ)のIDコー
ドと同じように、自分の好みに応じて鍵コードの内容を
設定できるようにすることが考えられている。この場合
の電子キーシステムは、送信側(鍵側)に書き換え可能
なメモリ例えばRAMを備え、このRAMに鍵コードを
設定・記憶させ、その記憶させた鍵コードを送信するよ
うにしている。
In recent years, it has been considered to be possible to set the contents of a key code according to one's preference, similar to the ID code of a CD (cash dispenser), for example. In this case, the electronic key system includes a rewritable memory such as a RAM on the transmitting side (key side), sets and stores a key code in the RAM, and transmits the stored key code.

然して、受信側では上記鍵コードが送られてきた時のみ
錠のロックが解除される。
However, on the receiving side, the lock is unlocked only when the key code is sent.

また、暗号となる固定コードの他に、任意に設定出来る
バスコードも記憶できるようにし、そのバスコードと入
力したバスコードが一致したときのみ固定コードを送信
できるようにすることも考えられている。
In addition to the fixed code that serves as the encryption, it is also being considered to be able to store a bus code that can be set arbitrarily, and to be able to send the fixed code only when the bus code and the input bus code match. .

[従来技術の問題点] 上記各方式のうち、第1番目の方式の鍵コードを電子キ
ー制作時に設定してしまい以後鍵コードの変更が出来な
いというのは、送信器(電子キー)の盗難等が起きた場
合、その盗難による電子キーで電子錠が開錠される可能
性が想定され極めて不都合であるンまた、第2番目の方
式の任意に鍵コードを設定できるというのは、その設定
した鍵コードが例えば4桁コードであれば、他の電子キ
ーを用いて、その4桁コードと組み合わせが一致する鍵
コードを試行錯誤で探索・設定しながら送信しても開錠
が可能であるので、その危険を予防するため、試行錯誤
による探索・設定が不可能な多数桁の鍵コードを使用す
る必要がある。このため、そのような多数桁の鍵コード
を設定する操作が極めて手数を要し面倒であるという問
題があった。
[Problems with the prior art] Among the above methods, the key code for the first method is set at the time of electronic key production and cannot be changed after that because the transmitter (electronic key) is stolen. If something like this happens, there is a possibility that the electronic lock will be unlocked with the stolen electronic key, which is extremely inconvenient.In addition, the ability to set the key code arbitrarily in the second method is due to the setting. For example, if the key code you entered is a 4-digit code, you can open the lock by using another electronic key and searching and setting a key code that matches the 4-digit code through trial and error. Therefore, in order to prevent this risk, it is necessary to use a multi-digit key code that cannot be searched or set by trial and error. Therefore, there is a problem in that the operation of setting such a multi-digit key code is extremely time-consuming and troublesome.

しかも、この鍵コードの設定は送信側である電子キーと
受信側である電子錠の双方に行わねばならないため非常
に手数を要するという問題もあった。
Furthermore, setting of this key code must be performed on both the electronic key on the transmitting side and the electronic lock on the receiving side, which is a problem in that it is very time-consuming.

また、第3番目の従来例では、バスコードを入力する方
法は、そのバスコードが不明であれば使用できないので
、紛失・盗難に際しても上記の不都合は解消される。ま
た、固定コードの異なる他の電子キーの使用も不能とな
るが、操作の都度バスコードを入力するのでは手数が掛
って面倒であり、さらに、バスコードを失念したときは
電子キー装置が使用不能となってしまうという大きな問
題があった。
Furthermore, in the third conventional example, the method of inputting the bus code cannot be used if the bus code is unknown, so the above-mentioned inconvenience is resolved even in the event of loss or theft. In addition, you will not be able to use other electronic keys with different fixed codes, but entering the bus code every time you operate it is time-consuming and troublesome, and furthermore, if you forget the bus code, the electronic key device will be used. There was a big problem that it became impossible.

[発明の目的コ 本発明は、上記従来の問題点に鑑みてなされたもので、
容易に鍵コードを設定・変更でき、かつ安全性の極めて
高い電子キー装置を提供することにある。
[Object of the invention] The present invention has been made in view of the above-mentioned conventional problems, and
To provide an electronic key device that allows easy setting and changing of a key code and has extremely high safety.

[発明の要点] 本発明は、上記目的を達成するために、変更可能な暗証
コードを予め入力・設定するだけで自動的に解読不能な
多数桁の鍵コードを構成・設定でき、同時に銃側にも自
動的に暗証コードを設定出来るようにしたことを要点と
する。
[Summary of the Invention] In order to achieve the above object, the present invention is capable of automatically configuring and setting an undecipherable multi-digit key code by simply inputting and setting a changeable password code in advance, and at the same time, it is possible to automatically configure and set an undecipherable multi-digit key code. The key point is to be able to automatically set a PIN code.

[実  施  例] 以下、本発明の実施例について、図面を参照しながら説
明する。
[Examples] Examples of the present invention will be described below with reference to the drawings.

第1図は、本発明の一実施例に係わる腕時計の外観斜視
図である。同図において、腕時計本体1は、液晶表示装
置等から成る表示部2と、各種キー群3aを備えるキー
操作部3とから構成されている。表示部2の側端面には
、スイッチS1、S2、及びS3が設けられており、こ
れらのスイソチS1、S2、及びS3は詳しくは後述す
るが、表示部2の表示モードを切り換える機能を持って
いる。また、上記スイッチS1と並んでLED(発光ダ
イオード)4が配設されている。
FIG. 1 is an external perspective view of a wristwatch according to an embodiment of the present invention. In the figure, a wristwatch main body 1 is composed of a display section 2 comprising a liquid crystal display device or the like, and a key operation section 3 having various key groups 3a. Switches S1, S2, and S3 are provided on the side end surface of the display section 2, and these switches S1, S2, and S3 have a function of switching the display mode of the display section 2, as will be described in detail later. There is. Further, an LED (light emitting diode) 4 is arranged alongside the switch S1.

次に、第2図Aに、第1図に示した腕時計本体1の内部
回路のブロック図を示し、同図Bに、対応する受信装置
(電子錠)の内部回路のブロック図を示す。
Next, FIG. 2A shows a block diagram of the internal circuit of the wristwatch body 1 shown in FIG. 1, and FIG. 2B shows a block diagram of the internal circuit of the corresponding receiving device (electronic lock).

まず、腕時計本体1の回路構成について説明する。RO
MI 1は、システムをコントロールするためのマイク
ロプログラムや各種表示用のデータを格納した記憶部1
1a、後述する鍵コード用の4バイトの固定コードを格
納した記憶部11b、後述する命令コードを格納した記
憶部11C等の記憶領域を有する固定メモリである。キ
ー人力部12は、第1図に示した各種キー群3aの各種
キーと3個のスイッチ81〜S3を備えており、各キー
の操作信号を制御部10に出力する。制御部10は、マ
イクロプロセッサ等のCPUから成っており、ROMI
Iに記憶されているマイクロプログラムに従って、シス
テム全体をコントロールする。また、制御部10は、後
述する分周・タイミング部14から入力する計時信号a
に基づいて計時処理を行ない、さらに、タイミング信号
すに基づいてシステム各部を時系列にコントロールする
First, the circuit configuration of the wristwatch main body 1 will be explained. R.O.
MI 1 is a storage unit 1 that stores microprograms for controlling the system and data for various displays.
1a, a storage section 11b that stores a 4-byte fixed code for a key code, which will be described later, and a storage section 11C, which stores an instruction code that will be described later. The key power unit 12 includes various keys of the various key group 3a shown in FIG. 1 and three switches 81 to S3, and outputs operation signals of each key to the control unit 10. The control unit 10 is composed of a CPU such as a microprocessor, and has a ROMI
The entire system is controlled according to the microprogram stored in I. The control unit 10 also receives a clock signal a input from a frequency division/timing unit 14, which will be described later.
It performs timekeeping processing based on the timing signal, and also controls each part of the system in chronological order based on the timing signal.

発振器13は一定周期のクロック信号を生成し、その生
成したクロック信号を、分周・タイミング部14に出力
する。分周・タイミング部14は、分周器、タイミング
ジェネレータ等から成り、発振器13から一定周期で入
力するクロック信号を所定周波数まで分周して、現在時
刻を計数する計時信号aと各部を時系列にコントロール
するタイミング信号すとを生成して、その計時信号aと
タイミング信号すとを制御部10に出力する。
The oscillator 13 generates a clock signal with a constant period, and outputs the generated clock signal to the frequency division/timing section 14. The frequency division/timing section 14 consists of a frequency divider, a timing generator, etc., and divides the clock signal input at a constant period from the oscillator 13 to a predetermined frequency, and divides the clock signal a for counting the current time and each section in a time series. The timing signal A and the timing signal S are outputted to the control section 10.

RAM15は、ランダム・アクセス・メモリであり、後
述する第3回に示すように、所定のデータを記憶する各
レジスタにより構成されている。
The RAM 15 is a random access memory, and is composed of registers that store predetermined data, as shown in Part 3 below.

変換部16はROMIIに格納されている命令コードを
表す信号や、ROMIIの記憶部11bに格納されてい
る固定コードとRAM15に書き込まれている可変コー
ドとにより構成される鍵コードを表すパラレル信号を、
シリアルの“H”及び“L”の電気信号に変換し駆動部
17に出力する。駆動部17はスイッチングFETから
成っており、変換部16から上記出力される電気信号に
従って上記スイッチングFETがオン・オフする。
The conversion unit 16 converts a signal representing an instruction code stored in the ROMII and a parallel signal representing a key code composed of a fixed code stored in the storage unit 11b of the ROMII and a variable code written in the RAM 15. ,
It is converted into serial "H" and "L" electrical signals and output to the drive section 17. The drive section 17 is made up of a switching FET, and the switching FET is turned on and off according to the electrical signal output from the conversion section 16.

そのオン・オフに伴いLED4がオン・オフすることに
より、所定のデータを含んだ光信号が出力される。上記
LED4は第1図に示したものと同一のものである。
As the LED 4 turns on and off, an optical signal containing predetermined data is output. The LED 4 is the same as that shown in FIG.

表示駆動部1Bは、制御部10から入力する信号に基づ
いて表示駆動用印加電圧信号を表示部19に出力する。
The display drive unit 1B outputs a display drive applied voltage signal to the display unit 19 based on the signal input from the control unit 10.

表示部19は、第1図に示した液晶表装置2を備えてお
り、表示駆動部18から入力する表示駆動用印加電圧信
号に基づいて、表示装置2に所定の表示を行なう。
The display section 19 is equipped with the liquid crystal display device 2 shown in FIG.

次に、受信装置(電子錠)側の回路構成を説明する。第
2図Bにおいて、フォトダイオード21は、上記LED
4から光信号を受けてオン・オフすることにより、光信
号を電気信号に変換する。
Next, the circuit configuration on the receiving device (electronic lock) side will be explained. In FIG. 2B, the photodiode 21 is connected to the LED
By receiving an optical signal from 4 and turning it on and off, the optical signal is converted into an electrical signal.

このフォトダイオード21は、例えば電子錠の疑イ以鍵
穴の奥部に取り付ける等して、外部から入る光を検知で
きるようになっている。また、フォトダイオードの代り
にフォトトランジスタであってもよい。波形整形部22
は増幅器、ローパスフィルタ等から成り、フォトダイオ
ード21により得られた電気信号を増幅し、その出力の
中からLED4の光信号の周波数成分のみを取り出し、
この信号を錠側変換部23に出力する。錠側変換部23
は波形整形部22からの上記出力信号をシリアルの信号
からパラレルのデジタル信号に変換し、その変換した信
号を錠側制御部24に出力する。
This photodiode 21 is attached, for example, to the back of the keyhole of an electronic lock, so that it can detect light entering from the outside. Further, a phototransistor may be used instead of a photodiode. Waveform shaping section 22
consists of an amplifier, a low-pass filter, etc., which amplifies the electrical signal obtained by the photodiode 21, extracts only the frequency component of the optical signal of the LED 4 from the output, and
This signal is output to the lock-side conversion section 23. Lock side conversion part 23
converts the output signal from the waveform shaping section 22 from a serial signal to a parallel digital signal, and outputs the converted signal to the lock side control section 24.

また、同時に「受信有り」を示す信号Cを出力して錠側
制御部24に受信を通知する。
At the same time, it outputs a signal C indicating "reception" to notify the lock side control section 24 of reception.

錠側制御部24はマイクロプロセッサ等のCPUから成
っており、銃側ROM25に内蔵されているマイクロプ
ログラムに従って、電子錠システム全体をコントロール
する。また、錠側制御部24は、後述するタイミング出
力部27から入力するタイミング信号に基づいてシステ
ム各部を時系列にコントロールする。
The lock-side control unit 24 is made up of a CPU such as a microprocessor, and controls the entire electronic lock system according to a microprogram stored in the gun-side ROM 25. Further, the lock-side control section 24 controls each section of the system in chronological order based on a timing signal input from a timing output section 27, which will be described later.

また、針側制御部24には、上記針側ROM25、及び
タイミング出力部27の他、針側RAM26、機構制御
部28、その機構制御部28を介してロック機構部29
、針側表示駆動部30、及びその針側表示駆動部30を
介して針側表示部31に接続されている。
In addition to the needle side ROM 25 and the timing output section 27, the needle side control section 24 also includes a needle side RAM 26, a mechanism control section 28, and a lock mechanism section 29 via the mechanism control section 28.
, a needle-side display drive section 30 , and a needle-side display section 31 via the needle-side display drive section 30 .

タイミング出力部27は発振器、分周器、及びタイミン
グジェネレータを備えており、発振器の発する一定周期
のクロック信号を所定周波数まで分周してタイミング信
号を生成し、そのタイミング信号を針側制御部24に出
力する。
The timing output section 27 includes an oscillator, a frequency divider, and a timing generator, and generates a timing signal by dividing a clock signal of a constant period generated by the oscillator to a predetermined frequency, and transmits the timing signal to the needle side control section 24. Output to.

機構制御部28は、針側制御部24からの指令信号によ
りロック機構部29の錠の開閉を制御する。
The mechanism control section 28 controls opening and closing of the lock mechanism section 29 based on command signals from the needle side control section 24 .

ロック機構部29は電磁石からなる錠機構を有し、機構
制御部28からの制御により錠を開閉する。
The locking mechanism section 29 has a locking mechanism made of an electromagnet, and opens and closes the lock under control from the mechanism control section 28.

針側ROM25は上述したプログラムを格納した記憶部
25aと前記腕時計本体側の記憶部11b、Ilcに記
憶された固定コード、命令コードと同一コードを格納し
た記憶部25b、25cとを備えている。針側RAM2
6、及び針側表示駆動部30はそれぞれ電子キー側のR
OMII、RAM15及び表示駆動部18と構成・機能
は同様である。
The hand-side ROM 25 includes a storage section 25a that stores the above-mentioned program, and storage sections 25b and 25c that store the same codes as the fixed codes and instruction codes stored in the wristwatch body side storage section 11b and Ilc. Needle side RAM2
6, and the hand side display drive section 30 are respectively R on the electronic key side.
The configuration and functions are the same as those of the OMII, RAM 15, and display drive section 18.

第3図(a)は、上記RAM15の内部構成図、同図(
b)は、上記針側RAM26の内部構成図である。
FIG. 3(a) is an internal configuration diagram of the RAM 15, and FIG.
b) is an internal configuration diagram of the needle-side RAM 26.

同図fa)において、時刻計数レジスタ15aは、前記
分周・タイミングジェネレータ回路14から出力される
計時信号aに基づいて生成された現在時刻を記憶する。
In the figure fa), the time counting register 15a stores the current time generated based on the clock signal a output from the frequency division/timing generator circuit 14.

レジスタMは、表示部2で表示する後述する2種の表示
モード(時刻表示モード、電子キーモード)に対応して
「0」又は「1」の値を記憶する表示モードフラグであ
る。レジスタFは、電子キーモードにおいて、可変コー
ドの設定又は変更を行なうモードの時は「1」を、鍵コ
ードを発信するモードの時は「0」の値を取るキーモー
ドフラグである。レジスタ15bは1文字(桁)1バイ
トから成る文字または数字4文字で構成された可変コー
ドを記憶する可変コードレジスタである。
The register M is a display mode flag that stores a value of "0" or "1" corresponding to two types of display modes (time display mode, electronic key mode) to be described later that are displayed on the display unit 2. Register F is a key mode flag that takes a value of "1" in the electronic key mode when the variable code is set or changed, and takes a value of "0" when the key code is transmitted. The register 15b is a variable code register that stores a variable code consisting of four characters or numbers, each character (digit) consisting of one byte.

次に、第3図(blにおいて、−時記憶しジス タ26
aは入力した信号データを一時的に記憶する。
Next, in Fig. 3 (bl) - time memorization register 26
a temporarily stores input signal data.

レジスタ26bは、レジスタ15bと同じデータを記憶
する。レジスタGは上記入力した信号データに命令コー
ドがあるときは「1」を1.ないときは「0」の値をと
るフラグである。
Register 26b stores the same data as register 15b. Register G sets "1" to 1 when there is an instruction code in the input signal data. This flag takes a value of "0" when there is no such flag.

第4図は、前記LED4から信号が発信される際の信号
データの内容を模式的に示したものである。信号データ
の先頭には1及びOがくり返される同期信号があり、次
にROMIIの記憶部11bから読み出された4バイト
から成る固定コードが続き、最後がROMIIの記憶部
11cから読み出された4バイトから成る命令コード、
又はRAM15から読み出された4バイトから成る設定
コード(可変コード)から成っている。
FIG. 4 schematically shows the contents of signal data when a signal is transmitted from the LED 4. At the beginning of the signal data, there is a synchronization signal in which 1 and O are repeated, followed by a fixed code consisting of 4 bytes read from the storage section 11b of the ROMII, and finally a fixed code read from the storage section 11c of the ROMII. instruction code consisting of 4 bytes,
Alternatively, it consists of a setting code (variable code) consisting of 4 bytes read from the RAM 15.

次に、第5図を用いて、前記スイッチS1.82等によ
り設定される各モードについて説明する。
Next, each mode set by the switch S1.82 etc. will be explained using FIG.

同図に示す如く、スイッチS1 による入力の都度、レ
ジスタMの値は「0」→「1」→「0」と切り替わり、
そのレジスタMの値に対応する表示モードに基づいて、
同図の51で示す時刻表示モードの表示、52で示す電
子キーモードの表示、再び時刻表示モードの表示と表示
が切り替わる。
As shown in the figure, each time the switch S1 is input, the value of the register M changes from "0" to "1" to "0".
Based on the display mode corresponding to the value of that register M,
The time display mode display shown at 51 in the figure, the electronic key mode display shown at 52, and the time display mode display and display are switched again.

そして、同図の52でM=1が示す電子キーモードが設
定されているときに、スイッチS2によるキー人力が行
なわれると、入力の都度、レジスタFの値はrOJ −
rlJ −rOJと切り替わり、そのレジスタFの値に
対応する表示モードに基づいて、同図52−1で示す送
出表示モードの表示、同図52−2で示す設定表示モー
ドの表示と表示が切り替わる。そして、後述するスイッ
チS3によるキー人力が行なわれると、送出表示モード
のときは可変コードが、設定表示モードのときは命令コ
ードが、夫々固定コードと共に送出される。
Then, when the electronic key mode indicated by M=1 is set at 52 in the same figure, when a key is pressed manually by the switch S2, the value of the register F is changed to rOJ -
rlJ - rOJ, and based on the display mode corresponding to the value of the register F, the display is switched between the display in the sending display mode shown in FIG. 52-1 and the display in the setting display mode shown in FIG. 52-2. Then, when a key is pressed manually using switch S3, which will be described later, a variable code is sent out in the sending display mode, and an instruction code is sent out in the setting display mode, together with the fixed code.

以上の構成において、先ず、電子キー側の制御部10に
より行なわれる動作を説明する。
In the above configuration, first, the operation performed by the control section 10 on the electronic key side will be explained.

第6図は、プログラム全体の流れを示すフローチャート
である。ステップSAIのHALT状態において、計時
信号aが出力された現在時刻の計時タイミングになると
ステップSA2に進み、時刻計数処理を行なって、得ら
れた現在時刻データをRAM15の時刻計数レジスタ1
5aに記憶する。そして、ステップSA8に進んで表示
部2に上記記憶した現在時刻の表示処理を行なったのち
、ステップSAIに回帰する。
FIG. 6 is a flowchart showing the flow of the entire program. In the HALT state of step SAI, when the clock timing of the current time when the clock signal a is output is reached, the process proceeds to step SA2, where time counting processing is performed and the obtained current time data is stored in the time counting register 1 of the RAM 15.
5a. Then, the process proceeds to step SA8 to display the stored current time on the display section 2, and then returns to step SAI.

前記ステップSAIにおいて、キー人力部12からの入
力があるときは、ステップSA3に進み、上記キー人力
がスイッチS1によるキー人力であるか否かを判別する
。スイッチS1のキー人力であるときは、前記2種の表
示モードの交互切り換えを指定された場合である。然し
てこの場合は、ステップSA4に進み、レジスタMの値
を判別する。レジスタMの値が「0」 (以下M=Oと
記載)であれば時刻表示モードであり、この場合はステ
ップSA5に進みM=1として電子キーモードに切り換
え更にF=0とし電子キーモードの送出表示モードに設
定する。然るのち、ステップSA8に進み送出表示モー
ドの表示処理を行なって、ステップSAIに回帰する。
In step SAI, if there is an input from the key force section 12, the process proceeds to step SA3, where it is determined whether or not the key force is the key force generated by the switch S1. When the key of the switch S1 is pressed manually, this is a case where alternating switching between the two types of display modes is designated. However, in this case, the process proceeds to step SA4, and the value of register M is determined. If the value of register M is "0" (hereinafter referred to as M=O), it is the time display mode. In this case, proceed to step SA5, set M = 1, switch to electronic key mode, and then set F = 0, switch to electronic key mode. Set to send display mode. Thereafter, the process advances to step SA8, where display processing in the sending display mode is performed, and the process returns to step SAI.

前記ステップSA4で、M=1であれば電子キーモード
であり、この場合は、ステップSA6に進み、レジスタ
Fの値を判別する。F=0であれば電子キーモードの送
出表示モードであり時刻表示モードに切り換え可能の状
態である。然してこの場合はステップSATに進みM=
Oとして時刻表示モードに切り換えて、前記ステップS
A8に進み時刻の表示処理を行ない、ステップSAIに
回帰する。前記ステップSA6で、F=1であれば電子
キーモードの設定表示モードであり時刻表示モードに切
り換えは不可である。従って、この場合はスイッチS1
のキー人力は無効とし直ちに前記ステップSA8の表示
処理に進む。
If M=1 in step SA4, it is the electronic key mode, and in this case, the process proceeds to step SA6, where the value of register F is determined. If F=0, the electronic key mode is the transmission display mode, and it is possible to switch to the time display mode. However, in this case, proceed to step SAT and M=
0 to switch to the time display mode and perform the step S.
Proceeding to A8, time display processing is performed, and the process returns to step SAI. In step SA6, if F=1, it is the setting display mode of the electronic key mode, and switching to the time display mode is not possible. Therefore, in this case, switch S1
The manual input of the key is invalidated and the process immediately proceeds to the display process of step SA8.

上記動作により、第5図で説明した時刻表示モードと電
子キーモードがスイッチS1の入力に基づいて交互に切
り替わる。
By the above operation, the time display mode and the electronic key mode explained in FIG. 5 are alternately switched based on the input of the switch S1.

前記ステップSA3の判別で、スイッチSlのキー人力
でないと判別した場合は、ステップSA9に移行し、ス
イッチS2によるキー人力であるか否かを判別する。ス
イッチs2のキー人力であり、且つ、このキー人力が電
子キーモードにおいてなされた場合には、送出表示モー
ドと設定表示モードの交互切り換えを指示された場合で
ある。
If it is determined in step SA3 that the key is not manually operated by the switch S1, the process proceeds to step SA9, and it is determined whether or not the key is manually operated by the switch S2. If the key of the switch s2 is manually operated, and this key is operated in the electronic key mode, this is a case where an instruction is given to alternately switch between the sending display mode and the setting display mode.

即ちスイッチS2が操作された場合は、ステップ5AI
Oに進み、レジスタMの値を判別する。M=1となって
いれば、電子キーモードが設定されている場合であり、
この場合は、ステップ5A11に進み、レジスタFの値
を判別し、F=1となっていれば、設定表示モードであ
るので、ステップ5A12に進んで、F=Oとして送出
表示モードに切り換えて、前記ステップSA8に進む。
That is, if switch S2 is operated, step 5AI
Proceed to step O and determine the value of register M. If M=1, it means that the electronic key mode is set,
In this case, proceed to step 5A11, determine the value of register F, and if F=1, it is the setting display mode, so proceed to step 5A12, set F=O, and switch to the sending display mode. Proceed to step SA8.

また、前記ステップ5AIIで、F=Oであれば、送出
表示モードであるので、この場合はステップ5A13に
進み、F=1として設定表示モードに切り換えて、前記
ステップSA8に進む。前記ステップ5AGOでM=1
でなければ電子キーモードが設定されておらず、従って
スイッチs2のキー人力は無効であり、然してこの場合
は直ちに前記ステップSA8に進む。
Further, if F=O in step 5AII, it is the sending display mode, so in this case, the process proceeds to step 5A13, where F=1 and the mode is switched to the setting display mode, and the process proceeds to step SA8. M=1 in step 5AGO
Otherwise, the electronic key mode is not set, and therefore, the manual keying of switch s2 is invalid, and in this case, the process immediately proceeds to step SA8.

上記動作により、第5図で説明した電子キーモート′の
ときに限り、スイッチs2のキー人力が有効となり、そ
のキー人力に伴って、送出表示モードと設定表示モード
が交互切り替わる。
As a result of the above-mentioned operation, the key force of the switch s2 becomes effective only in the case of the electronic key mote ' explained in FIG. 5, and the sending display mode and the setting display mode are alternately switched in accordance with the key force.

前記ステップSA9で、キー人力がスイッチS2による
ものでない場合は、ステップ5A14に移行し、スイッ
チs3によるキー人力であるが否かを判別する。スイッ
チS3のキー人力であり、且つ、このキー人力が電子キ
ーモードにおいてなされた場合には、鍵コード送出の指
示、又は固定コードと命令コードから成る指令コードの
送出を指示された場合である。即ちスイッチs3が操作
された場合は、ステップ5A15に進み、レジスタMの
値を判別する。M=1となっていれば、電子キーモード
が設定されている場合であり、この場合は、ステップ5
A16に進み、更にレジスタFI7)値を判別する。F
=0となっていれば、送出表示モードであるので、鍵コ
ードの送出が指示されている。然してこの場合は、ステ
ップSA17に進んで同期信号を出力し、続いてステッ
プ5A18でROMIIから読み出した固定コードを出
力し、更にステップ5A19でRAM15から読み出し
た設定コード(可変コード)を出力してスイッチS3の
キー人力により指示された鍵コードの送出を実行する。
In step SA9, if the key force is not caused by the switch S2, the process moves to step 5A14, and it is determined whether the key force is caused by the switch s3. If the key of the switch S3 is manually operated, and this key is operated in electronic key mode, the instruction is to send a key code or a command code consisting of a fixed code and a command code. That is, if the switch s3 is operated, the process advances to step 5A15 and the value of the register M is determined. If M=1, it means that the electronic key mode is set, and in this case, step 5
Proceeding to A16, the register FI7) value is further determined. F
If =0, it is the transmission display mode, and therefore transmission of the key code is instructed. However, in this case, the process proceeds to step SA17 to output a synchronization signal, followed by step 5A18 to output the fixed code read from ROMII, and step 5A19 to output the setting code (variable code) read from RAM 15, and then switch. The sending of the key code as instructed by the key operator in S3 is executed.

前記ステップ5A16で、F=1であれば、指令コード
の送出が指示されている。従ってこの場合は、ステップ
5A20に進み同期信号を出力し、続いてステップ5A
21で固定コードを出力した後は、続くステップ5A2
2でROMIIの命令コードを出力してスイッチS3の
キー人力により指示された指令コードの送出を実行する
。前記ステップ5A15で、M=0であれば、時刻表示
モードであるため、スイッチS3のキー人力は無効であ
り、この場合は直ちにステップSA8の表示処理に進む
If F=1 in step 5A16, sending of the command code is instructed. Therefore, in this case, the process proceeds to step 5A20, outputs the synchronization signal, and then proceeds to step 5A20.
After outputting the fixed code in step 21, proceed to step 5A2.
At step 2, the command code of the ROM II is outputted, and the command code designated by the key of the switch S3 is transmitted. If M=0 in the step 5A15, the time display mode is in effect, so the manual keystroke of the switch S3 is invalid, and in this case, the process immediately proceeds to the display process of step SA8.

上記動作により、第5図で説明した電子キーモードのと
きに限り、スイッチS3のキー人力が有効となり、その
キー人力に伴って、送出表示モードのときは、固定コー
ドと可変コードから成る鍵コードが発信され、設定表示
モードのときは、固定コードと命令コードから成る指令
コードが発信される。
As a result of the above operation, the key power of the switch S3 becomes effective only in the electronic key mode explained in FIG. is transmitted, and when in the setting display mode, a command code consisting of a fixed code and a command code is transmitted.

前記ステップ5A13で、キー人力がスイッチS3によ
るものでない場合は、即ちキー操作部3に設けられた各
種キー群3aのデータキーによるキー人力である場合は
、且つ、このキー人力が電子キーモードの設定表示モー
ドにおいてなされた場合には、可変コードの入力が行わ
れる場合である。然してこの場合は、ステップ5A23
に進み、レジスタMの値を判別する。M=1となってい
れば電子キーモードが設定されている。従ってこの場合
はステップ5A24に進み、更にレジスタFの値を判別
する。F=1となっていれば設定モードが設定されてい
る。然してこの場合は、ステップ5A25に進み、上記
データキーによりキー人力されたデータをRAM15の
レジスタ15bに先頭から順次記憶する。然るのち、ス
テップSA8の表示処理に進む。前記ステップ5A24
で、F=Oであれば、送出表示モードであるため、デー
タキーによるキー人力は無効である。従って直ちにステ
ップSA8に進む。また、前記ステップ5A23で、M
=Oであれば時刻表示モードであるため、この場合もデ
ータキーによるキー人力は無効である。従って直ちにス
テップSA8に進む。
In step 5A13, if the key force is not due to the switch S3, that is, if the key force is due to the data keys of the various key groups 3a provided in the key operation section 3, and this key force is in the electronic key mode. If it is done in the setting display mode, it is a case where a variable code is input. However, in this case, step 5A23
Then, the value of register M is determined. If M=1, the electronic key mode is set. Therefore, in this case, the process proceeds to step 5A24, and the value of register F is further determined. If F=1, the setting mode is set. However, in this case, the process proceeds to step 5A25, and the data entered manually using the data keys are sequentially stored in the register 15b of the RAM 15 from the beginning. Thereafter, the process proceeds to display processing in step SA8. Said step 5A24
If F=O, it is the sending display mode, so manual input using the data keys is invalid. Therefore, the process immediately proceeds to step SA8. Furthermore, in step 5A23, M
If =O, it is the time display mode, so manual keystrokes using the data keys are invalid in this case as well. Therefore, the process immediately proceeds to step SA8.

上記動作により、電子キーモードの設定表示モードとな
っているときは、データキーによる可変コードの入力が
可能となり4文字(4桁)の可変コードが1文字毎順次
RAM15のレジスタ15bに記憶される。
As a result of the above operation, when the electronic key mode is in the setting display mode, it is possible to input a variable code using the data key, and the 4-character (4-digit) variable code is sequentially stored in the register 15b of the RAM 15 character by character. .

然して例えば、スイッチS1のキー人力により電子キー
モードが設定され(ステップ5A5)、続くスイッチS
2のキー人力により設定表示モードが設定された(ステ
ップ5A13)後、続いてスイッチS3のキー人力が行
われると、指令コードが発信され(ステップ5A20〜
5A22)、この指令信号に基づいて後述する針側を可
変コード設定受入れ状態に設定する。この後、データキ
ーの入力により可変コードがRAM15に設定され(ス
テップ5A25)、再びスイッチS2の入力で送出表示
モードに切り換え(ステップ5AI2)、更に再びスイ
ッチS3のキー人力が行われると、上記設定された可変
コードに基づく鍵コードが発信され(ステップ5A17
〜5A19)、その鍵コードに基づいて上記可変コード
が後述する針側に自動的に設定される。
For example, the electronic key mode is set manually using the key of switch S1 (step 5A5), and then the key of switch S1 is pressed manually.
After the setting display mode is set by pressing the key No. 2 (step 5A13), when the switch S3 is pressed manually, a command code is transmitted (steps 5A20 to 5A20).
5A22) Based on this command signal, the needle side, which will be described later, is set to a variable code setting acceptance state. Thereafter, the variable code is set in the RAM 15 by inputting the data key (step 5A25), and the switch S2 is input again to switch to the transmission display mode (step 5AI2), and when the key of switch S3 is pressed again, the above settings are set. A key code based on the variable code is transmitted (step 5A17).
~5A19), the variable code described above is automatically set on the needle side based on the key code.

これにより、電池交換の場合や設定済みの可変コードを
変更する場合などにおいても容易に可変コードを新たに
設定し、かつ針側にもその可変コードを自動的に設定で
きる。
This makes it easy to set a new variable code even when replacing the battery or changing a variable code that has already been set, and the variable code can also be automatically set on the hand side.

そして、以後、送出表示モードにおいて、スイッチS3
のキー人力により鍵コードを発信すれば電子錠の解錠を
行なえる。
Thereafter, in the transmission display mode, switch S3
The electronic lock can be unlocked by manually transmitting the key code.

次に、その電子錠において、針側制御部24により行な
われる動作を、第7図に示すフローチャートを用いて説
明する。
Next, the operations performed by the needle-side control section 24 in the electronic lock will be explained using the flowchart shown in FIG.

この動作は、針側制御部24が針側変換部23から受信
を通知する割り込み信号Cを受は取ったときスタートす
る。まず、ステップSBIで、針側変換部23から入力
する鍵コードの信号データの先頭を示す同期信号の検出
を行う。続いて、ステップSB2に進み、上記ネ★出し
た同期信号に続く2個の信号データを針側RAM26の
一時記憶レジスタ26bに記憶する。次に、ステップS
B3に進み、上記−時記憶した2個の信号データの初め
の1個即ち固定コードを読み出し、針側ROM25に格
納されている固定コードと一致するか否か判別する。こ
の判別で一致した場合は、上記鍵コードを発信した電子
キーは当該電子錠と一対となっている専用の電子キーで
ある。然してこのば場合は、ステップSB4に進み、上
記固定コードの次のデータを読み出し、そのデータの示
すコードが針側ROM25の記憶領域25cに記憶され
ている命令コードと一致するか否か判別する。
This operation starts when the needle-side control section 24 receives an interrupt signal C from the needle-side conversion section 23 that notifies reception. First, in step SBI, a synchronization signal indicating the beginning of the signal data of the key code input from the needle-side conversion section 23 is detected. Subsequently, the process proceeds to step SB2, and the two signal data following the above-described synchronization signal are stored in the temporary storage register 26b of the needle-side RAM 26. Next, step S
Proceeding to B3, the first one of the two signal data stored above, that is, the fixed code, is read out, and it is determined whether or not it matches the fixed code stored in the hand side ROM 25. If there is a match in this determination, the electronic key that transmitted the key code is a dedicated electronic key that is paired with the electronic lock. However, if this is the case, the process proceeds to step SB4, where the data next to the fixed code is read out, and it is determined whether the code indicated by the data matches the instruction code stored in the storage area 25c of the needle side ROM 25.

そして、一致すれば、可変コードを針側RAM26のレ
ジスタ26bに設定(記憶)するよう指示されている。
If they match, an instruction is given to set (store) the variable code in the register 26b of the needle-side RAM 26.

然してこの場合は、ステップSB5に進み、G=1とし
て可変コード受信待機となる設定モードを設定し、ステ
ップSB6に進み設定モードとなったことを表示する。
In this case, however, the process proceeds to step SB5, where G=1 is set to set a setting mode in which variable code reception is waited, and the process proceeds to step SB6, where it is displayed that the setting mode has been entered.

前記ステップSB4で、判別したコードが命令コードと
一致せず、且つこの信号の受信が設定モードにおいてな
された場合は、新たに設定すべき可変コードである。
In step SB4, if the determined code does not match the instruction code and this signal is received in the setting mode, it is a variable code that should be newly set.

然してこの場合は、ステップSB7に進み、針側RAM
26のレジスタ26bに上記判別したコードを可変コー
ドとして設定した後、続くステップSB9でG=0とし
て設定モードを解除する。そして、ステップSB6で、
可変コードが設定されたことを表示する。前記ステップ
SB7で、G=0であれば、設定モードではないので、
即ち開錠モードであり、この場合はステップ5BIOに
進み、針側RAM26のレジスタ26bに設定されてい
る可変コードと一致するか否か判別する。−致すれば、
ステップ5BIIに進み、機構制御部28を起動し、ロ
ック機構部29を駆動させて開錠する。そして、ステッ
プSB6に進み、針側表示部31に開錠した旨の表示を
行う。前記ステップ5BIOで、可変コードが一致しな
い場合は、直ちにステップ5B12に進み、特に図示し
ていないが表示バッファにエラーを示す表示データを書
き込み、ステップSB6で、上記表示バンファのエラー
表示データを表示する。また、上記ステップSB3で、
固定コードが一致しない場合も、同様に直ちに前記ステ
ップ5B12に進む。
However, in this case, the process advances to step SB7 and the needle side RAM is
After setting the determined code as a variable code in the register 26b of No. 26, the setting mode is canceled by setting G=0 in the following step SB9. Then, in step SB6,
Displays that variable code has been set. If G=0 in step SB7, it is not the setting mode, so
That is, it is the unlock mode, and in this case, the process advances to step 5BIO, and it is determined whether the code matches the variable code set in the register 26b of the needle-side RAM 26. -If you do,
Proceeding to step 5BII, the mechanism control section 28 is activated, and the locking mechanism section 29 is driven to unlock. Then, the process proceeds to step SB6, where a display indicating that the lock has been unlocked is displayed on the needle side display section 31. If the variable codes do not match in step 5BIO, the process immediately proceeds to step 5B12, and although not particularly shown, display data indicating an error is written in the display buffer, and in step SB6, the error display data in the display buffer is displayed. . Also, in step SB3 above,
If the fixed codes do not match, the process similarly immediately proceeds to step 5B12.

上記動作により、可変コードを新たに設定または変更す
る時は、電子キーから固定コードと命令コードから成る
指令コードが発信され、その固定コードが電子錠側の固
定コードと一致し、電子錠と一対になっている専用の電
子キーからの発信であることが1認された時のみ命令コ
ードが解読されて設定モードとなり、その設定モードに
基づいて、続く鍵コードの受信によりその鍵コードに含
まれている可変コードが針側RAM26のレジスタ26
bに設定される。これにより、以後電子キーから鍵コー
ドを発信された時、固定コードと可変コードの双方が共
に電子錠側と一致した時のみ開錠が行われ、上記いずれ
の一方でも一致しない時は、開錠は行われず、針側表示
部31にエラー表示がなされる。
Through the above operation, when a variable code is newly set or changed, a command code consisting of a fixed code and a command code is sent from the electronic key, and the fixed code matches the fixed code on the electronic lock side, and it is paired with the electronic lock. Only when it is recognized that the call is coming from a dedicated electronic key that is set to , the command code is decoded and the setting mode is entered. Based on the setting mode, when the subsequent key code is received, The variable code is stored in the register 26 of the needle side RAM 26.
b. As a result, when a key code is sent from the electronic key from now on, the lock will be unlocked only when both the fixed code and the variable code match the electronic lock, and if neither of the above codes match, the lock will be unlocked. is not performed, and an error message is displayed on the needle side display section 31.

尚、上記実施例では、固定コード、及び可変コードの桁
数を4桁としているが、4桁に限ることなく何桁でもよ
い。また、命令コードの桁数も自由に設定できる。また
、腕時計に適用した例について述べたが、電子キー専用
の機器であってもよく、電子手帳やスケジューラ等小型
機器に組み込むことが出来、種々応用が考えられる。ま
た、発信装置にLEDを用い信号媒体を光としているが
、電波や磁気でもよく、信号媒体は種々考えられる。
In the above embodiment, the number of digits of the fixed code and variable code is four digits, but it is not limited to four digits and may be any number of digits. Furthermore, the number of digits of the instruction code can be freely set. Further, although an example in which the present invention is applied to a wristwatch has been described, it may be a device exclusively for electronic keys, and it can be incorporated into small devices such as electronic notebooks and schedulers, and various applications can be considered. Further, although an LED is used as the transmitter and light is used as the signal medium, various signal mediums may be used, such as radio waves or magnetism.

更にまた、自動車、家屋、金庫等だけでなく他の建造物
、物、機器等の施錠を必要とするものであれば何に適用
してもよい。
Furthermore, the present invention may be applied not only to automobiles, houses, safes, etc., but also to other buildings, objects, equipment, etc., which require locking.

[発明の効果コ 本発明によれば、固定コード、可変コードともに一致し
なければ開錠しないので、電子キーを紛失または盗難の
場合でも、予備の電子キーの可変コードを変更・設定し
て使用するようにすれば、紛失した電子キーまたは盗難
に会った電子キーを使用して開錠される恐れはなく安全
性が極めて高い。また、電子錠と一対となる固定コード
を鍵コードの中に持っているので、固定コードの異なる
他の電子キーを用いたのでは、可変コードを故意又は偶
然に一致させた場合でも開錠される恐れはなく安全性は
極めて高い。また、可変コードは予め入力して設定し、
以後は単に鍵コードの送信操作をするのみで開錠でき、
操作の都度バスコードを入力する等の手数が掛らず面倒
もないばかりでなく、バスコードと異なり設定した可変
コードは覚えておく必要がないため、バスコードを忘れ
た場合のような不都合は生じない。また、電子キー側に
可変コードを設定するだけで自動的に設備にもその可変
コードを設定できるので、手数が掛からず、何桁の可変
コードでも容易に設定できる。
[Effects of the Invention] According to the present invention, the lock will not be unlocked unless both the fixed code and the variable code match, so even if the electronic key is lost or stolen, the spare electronic key can be used by changing and setting the variable code. If this is done, there is no risk of the lock being unlocked using a lost or stolen electronic key, resulting in extremely high safety. In addition, the key code has a fixed code that pairs with the electronic lock, so if you use another electronic key with a different fixed code, the lock will not open even if you match the variable code intentionally or accidentally. There is no risk of this happening, and safety is extremely high. In addition, the variable code can be entered and set in advance,
From then on, you can unlock the door by simply sending the key code.
Not only does it not take time and trouble to enter the bus code each time you operate it, but unlike the bus code, you do not need to remember the set variable code, so there are no inconveniences like if you forget the bus code. Does not occur. In addition, by simply setting a variable code on the electronic key side, the variable code can be automatically set on the equipment, so any number of digits of variable code can be easily set without any hassle.

このように、容易に鍵コードを設定・変更でき、かつ安
全性の極めて高い電子キー装置を提供できる。
In this way, it is possible to provide an electronic key device in which the key code can be easily set and changed, and which is highly secure.

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

第1図は本発明の一実施例に係わる電子腕時計の外観斜
視図、 第2図は上記電子腕時計及び上記電子腕時計に対応する
電子錠の内部回路を示すブロック図、第3図(B)はR
AMl5の内部構成図、第3図(b)は設備RAM26
の内部構成図、第4図は鍵コードの信号内容を模式的に
示す図、第5図は各表示モードを説明する図、 第6図は電子キーの制御部10が行う動作を説明するの
フローチャート、 第7図は電子錠の設備制御部24が行う動作を説明する
のフローチャートである。 1・・・腕時計本体、 2・・・表示部2. 3・・・キー操作部3. 3a・・・各種キー群、 4・・・LED (発光ダイオード)、10・・・制御
部、 11・・・ROM。 12・・・キー人力部、 13・・・発振器、 14・・・分周・タイミング部、 15・・・RAM。 16・・・変換部、 I 7 ・ 18 ・ 21 ・ 22 ・ 23 ・ 24 ・ 25 ・ 26 ・ 27 ・ 28 ・ 29 ・ 30 ・ 31 ・ Sl  、 ・・駆動部、 ・・表示駆動部、 ・・フォトダイオード、 ・・波形整形部、 ・・設備変換部、 ・・設備制御部、 ・・設備ROM、 ・・設備RAM。 ・・タイミング出力部、 ・・機構制御部、 ・・ロック機構部、 ・・設備表示駆動部、 ・・設備表示部、 S2、S3 ・・・スイッチ。
FIG. 1 is an external perspective view of an electronic wristwatch according to an embodiment of the present invention, FIG. 2 is a block diagram showing the internal circuit of the electronic wristwatch and an electronic lock corresponding to the electronic wristwatch, and FIG. 3(B) is a R
The internal configuration diagram of AMl5, Figure 3 (b) is the equipment RAM26.
4 is a diagram schematically showing the signal contents of the key code, FIG. 5 is a diagram explaining each display mode, and FIG. 6 is a diagram explaining the operation performed by the electronic key control section 10. Flowchart FIG. 7 is a flowchart illustrating the operations performed by the equipment control unit 24 of the electronic lock. 1...Watch body, 2...Display section 2. 3...Key operation section 3. 3a... Various key groups, 4... LED (light emitting diode), 10... Control unit, 11... ROM. 12... Key power section, 13... Oscillator, 14... Frequency division/timing section, 15... RAM. 16...conversion section, I7, 18, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, Sl, ... drive section, ... display drive section, ... photo Diode, ...Waveform shaping section, ...Equipment conversion section, ...Equipment control section, ...Equipment ROM, ...Equipment RAM. ...Timing output section, ...Mechanism control section, ...Lock mechanism section, ...Equipment display drive section, ...Equipment display section, S2, S3...Switch.

Claims (1)

【特許請求の範囲】 1)電子錠のロックを解除するための鍵コードを送出す
る電子キー装置において、 予め定められた固定コードを記憶する固定コード記憶手
段と、 任意に設定可能な可変コードを記憶する可変コード記憶
手段と、 前記電子錠に可変コードを設定するよう指令する命令コ
ードを記憶する命令コード記憶手段と、該命令コード記
憶手段に記憶されている命令コードを送出する命令コー
ド送出手段と、 前記固定コード記憶手段が記憶する固定コードと前記可
変コード記憶手段が記憶する可変コードとから成る鍵コ
ードを送出する鍵コード送出手段と、 を有することを特徴とする電子キー装置。 2)前記命令コード送出手段はLEDを備え、該LED
から前記命令コードを光信号として送出することを特徴
とする請求項1記載の電子キー装置。 3)前記鍵コード送出手段はLEDを備え、該LEDか
ら前記固定コードを光信号として送出することを特徴と
する請求項1記載の電子キー装置。 4)前記固定コード記憶手段は不揮発性メモリからなる
ことを特徴とする請求項1記載の電子キー装置。 5)前記命令コード記憶手段は不揮発性メモリからなる
ことを特徴とする請求項1記載の電子キー装置。
[Claims] 1) An electronic key device that sends out a key code for unlocking an electronic lock, comprising a fixed code storage means for storing a predetermined fixed code, and a variable code that can be set arbitrarily. variable code storage means for storing a variable code; command code storage means for storing a command code for instructing the electronic lock to set a variable code; and command code sending means for transmitting the command code stored in the command code storage means. An electronic key device comprising: a key code sending unit configured to send out a key code consisting of a fixed code stored in the fixed code storage unit and a variable code stored in the variable code storage unit. 2) The instruction code sending means includes an LED, and the LED
2. The electronic key device according to claim 1, wherein the instruction code is sent out as an optical signal. 3) The electronic key device according to claim 1, wherein the key code sending means includes an LED, and the fixed code is sent as an optical signal from the LED. 4) The electronic key device according to claim 1, wherein the fixed code storage means comprises a nonvolatile memory. 5) The electronic key device according to claim 1, wherein the instruction code storage means comprises a nonvolatile memory.
JP2267141A 1990-10-04 1990-10-04 Electronic key device Pending JPH04143387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2267141A JPH04143387A (en) 1990-10-04 1990-10-04 Electronic key device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2267141A JPH04143387A (en) 1990-10-04 1990-10-04 Electronic key device

Publications (1)

Publication Number Publication Date
JPH04143387A true JPH04143387A (en) 1992-05-18

Family

ID=17440653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2267141A Pending JPH04143387A (en) 1990-10-04 1990-10-04 Electronic key device

Country Status (1)

Country Link
JP (1) JPH04143387A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102400604A (en) * 2010-09-15 2012-04-04 张仙驰 Lock photoelectric key digital coder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102400604A (en) * 2010-09-15 2012-04-04 张仙驰 Lock photoelectric key digital coder

Similar Documents

Publication Publication Date Title
JP2784309B2 (en) Remote control security system
JP2767816B2 (en) Remote control transmitter / receiver
US4786900A (en) Electronic key apparatus
US5389919A (en) Electronic interlock for storage assemblies with communication
EP1335328B1 (en) Electronic key system
SK97797A3 (en) Programmable electronic locking device and a lock, insert and key
JPS60119873A (en) Locking controller for vehicle
JPH04143387A (en) Electronic key device
KR970005637B1 (en) Remote control self response type electronic opening system
JPH04143386A (en) Electronic key device
JPH04216786A (en) Electronic key device
JP4369625B2 (en) Locking / unlocking system and locking / unlocking method
KR19990026477A (en) Fingerprint Electronic Door Lock
JPH08120992A (en) Keyless entry system
JP2001355359A (en) Wireless type electronic lock device
JPH053648Y2 (en)
KR101311444B1 (en) Digital door lock to lock and release device and method using two ratio frequency
KR20030011477A (en) Device for locking and unlocking of door lock using mobile phone and method of controlling thereof
KR100497842B1 (en) Automatic Door/Window Opening/Closing System Using Optic Sensor
JP2002227480A (en) System and method for locking/unlocking
JP3037960B2 (en) Remote control master key device
JPS5961665A (en) Electronic lock system
KR200279320Y1 (en) Door Lock System Having Output Voice Function
JP3147403B2 (en) Remote control device
JPS6294670A (en) Electronic key apparatus