JPS5921424B2 - How to unlock using a card - Google Patents

How to unlock using a card

Info

Publication number
JPS5921424B2
JPS5921424B2 JP8841180A JP8841180A JPS5921424B2 JP S5921424 B2 JPS5921424 B2 JP S5921424B2 JP 8841180 A JP8841180 A JP 8841180A JP 8841180 A JP8841180 A JP 8841180A JP S5921424 B2 JPS5921424 B2 JP S5921424B2
Authority
JP
Japan
Prior art keywords
card
stay
register
stored
secret number
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
Application number
JP8841180A
Other languages
Japanese (ja)
Other versions
JPS5712777A (en
Inventor
加寿男 水谷
宏 江頭
茂 春日井
正治 中村
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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
Priority to JP8841180A priority Critical patent/JPS5921424B2/en
Application filed by Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to US06/277,692 priority patent/US4385231A/en
Priority to DE8181302936T priority patent/DE3162791D1/en
Priority to EP81302936A priority patent/EP0043270B1/en
Priority to GB8119935A priority patent/GB2078848B/en
Publication of JPS5712777A publication Critical patent/JPS5712777A/en
Priority to GB08406240A priority patent/GB2141850B/en
Publication of JPS5921424B2 publication Critical patent/JPS5921424B2/en
Priority to SG634/85A priority patent/SG63485G/en
Priority to HK947/85A priority patent/HK94785A/en
Priority to SG100585A priority patent/SG100585G/en
Priority to HK227/86A priority patent/HK22786A/en
Expired legal-status Critical Current

Links

Landscapes

  • Lock And Its Accessories (AREA)

Description

【発明の詳細な説明】 この発明は、カードを用いた解錠方法、とくにホテルの
ように施錠の必要な部屋が多数ありかつ解錠する人が頻
繁に変わる場合に好適に適用されるカードを用いた解錠
方法に関する。
[Detailed Description of the Invention] The present invention provides an unlocking method using a card, which is particularly suitable for hotels where there are many rooms that need to be locked and the person unlocking the locks changes frequently. Regarding the unlocking method used.

ホテルには施錠の必要な部屋が多数ある。The hotel has many rooms that need to be locked.

このような各部屋のドアには通常、タンブラi錠のよう
な鍵で開閉する機械的な錠が取付けられている。
The door of each room is usually equipped with a mechanical lock, such as a tumbler lock, which can be opened and closed with a key.

鍵で開閉する錠だと、部屋の使用にあたって鍵を手渡し
、使用後には、鍵を受取る必要があるので、鍵の管理に
多くの手間を必要とする。
With a lock that opens and closes with a key, the key must be handed over to use the room and then taken back after use, which requires a lot of effort to manage the keys.

また、鍵を紛失した場合には、拾得者に対する防犯対策
上、錠そのものを交換する必要があり、時間と背分とを
費やす。
Furthermore, if the key is lost, the lock itself needs to be replaced as a crime prevention measure against those who find it, which takes time and money.

そこで、錠を電気的な信号により解錠する自動解錠装置
とし、ドアにカードリーダと、秘密番号を記憶する記憶
装置と、演算処理装置とを設け、秘密番号が記録された
カードにより施錠を解除するものが案出されている。
Therefore, we installed an automatic unlocking device that unlocks the lock using an electrical signal, and installed a card reader, a storage device that stores a secret number, and a processing unit on the door, and locked the door using a card with the secret number recorded on it. A solution has been devised.

この装置は、カード・リーダによりカードから読取った
秘密番号と記憶装置に記憶されている秘密番号とを比較
し、両番号が一致した場合に解錠する。
This device compares the secret number read from the card by the card reader with the secret number stored in the storage device, and unlocks when the two numbers match.

そして、同一部屋の使用者が変わるたびに新たな秘密番
号が記録されたカードを使用者に手渡す。
Then, each time the user of the same room changes, a card with a new secret number recorded is handed to the user.

秘密番号の変更は多数の部屋を集中的に制御している中
央制御装置において行なわれ、変更された新たな秘密番
号が中央制御装置から該当する部屋の記憶装置にその都
度伝送される。
The secret number is changed in a central control unit that centrally controls a large number of rooms, and the new secret number that has been changed is transmitted each time from the central control unit to the storage device of the corresponding room.

したがって、この方式では中央制御装置とす(ての部屋
の施錠解除装置との間に通信用のケーブルを配設しなけ
ればならず、設備費用が嵩むとともに、適当な期間ごと
に保守点検を行なわなけえばならない。
Therefore, with this method, communication cables must be installed between the central control unit and the lock/unlock devices in each room, which increases equipment costs and requires maintenance and inspection at appropriate intervals. Must have.

そこで、中央制御装置と各部屋の施錠解除装置との間に
通信用ケーブルを配設する必要のないカードを用いた解
錠方法が望まれている。
Therefore, there is a need for an unlocking method using a card that does not require communication cables between the central control unit and the lock/unlock devices in each room.

他方上記の解錠装置では、部屋の利用者が変わるときに
秘密番号が変更されるから、部屋の次回の利用者がいな
ければ上記記憶装置に記憶されている秘密番号は前回の
利用者のカードと同一番号のままに保たれている。
On the other hand, in the above unlocking device, the secret number is changed when the user of the room changes, so if there is no next user of the room, the secret number stored in the above storage device will be replaced by the previous user's card. The number remains the same.

ホテルなどでは部屋が1〜2または数日間空室になるこ
とがしばしばあるから、このような場合には、前回の利
用者は次回の利用者が部屋を使用開始するまでその部屋
を料金を支払わずに使用することが可能となってしまう
In hotels, etc., rooms often remain vacant for a day or two or even several days, and in such cases, the previous user has to pay for the room until the next user starts using it. It becomes possible to use it without any problems.

この発明は上記実情に鑑みてなされたものであって、使
用者が変わるたびに秘密番号を変えることができ、した
がってカードの紛失または遺棄に対しても特別の防犯対
策を講する必要がなく・しかも中央制御装置との間にケ
ーブルを配設する必要がなく、安価に実現することがで
きるとともに、予定された滞在期間だけカードによる部
屋の解錠が可能であつ℃、滞在期間が経過したのちは新
たなカードが発行されない限り、同一カードを用いて同
一部屋の施錠を解除することができない解錠方法を提供
するものである。
This invention was made in view of the above circumstances, and the secret number can be changed every time the user changes, so there is no need to take special security measures against loss or abandonment of the card. Furthermore, there is no need to install a cable between the central control unit and the system can be realized at low cost.In addition, it is possible to unlock the room using a card only for the scheduled period of stay, and after the period of stay has elapsed. provides an unlocking method in which the same card cannot be used to unlock the same room unless a new card is issued.

以下、図面を参照してこの発明を、ホテルにある多数の
部屋のドアに適用した場合について説明する。
Hereinafter, a case will be described in which the present invention is applied to doors of a large number of rooms in a hotel with reference to the drawings.

第1図から第4図は、カードの発行からこのカードによ
るドアの解錠までの概要を示している。
FIGS. 1 to 4 show an overview of the process from issuing a card to unlocking a door using this card.

カード発行機1はホテルのフロントに設置されている。A card issuing machine 1 is installed at the front desk of a hotel.

磁気ストライプ3を有するカード2,4をカード発行機
1に挿入すると、後述する手順にしたがって磁気ストラ
イプ3上に所要のカード・データが磁気記録される。
When the cards 2 and 4 having the magnetic stripe 3 are inserted into the card issuing machine 1, required card data is magnetically recorded on the magnetic stripe 3 according to the procedure described later.

カードには2種類あり、そのlはホテルの利用者に手渡
されるカード2で、利用者が部屋の使用を開始するにあ
たって、たとえばホテルのチェックインのときに発行さ
れる。
There are two types of cards: card 2, which is handed to a hotel user, and is issued when the user starts using a room, for example, when checking in at the hotel.

この利用者カード2を用いると、予定滞在期間内に限っ
て使用する部屋の施錠のみを解錠することができる。
By using this user card 2, it is possible to unlock only the room to be used within the scheduled period of stay.

他の1つはホテルのメイドが使用するメイド用カード4
である。
The other one is maid card 4 used by hotel maids.
It is.

メイドはメイド用カードを用いて、1日に1回各部屋を
掃除するために各部屋の施錠を解錠する。
The maid uses the maid card to unlock each room in order to clean each room once a day.

利用者カード2にはカード・データとして、ホテル・コ
ードH,部屋番号N1秘密番号G、2種類の補助番号A
、B、補助番号を選択するための指定コードCおよび滞
在日数りが記録されている。
User card 2 contains card data such as hotel code H, room number N1, secret number G, and two types of auxiliary numbers A.
, B, a designation code C for selecting an auxiliary number, and the number of days of stay are recorded.

第2図においてはこれらの番号またはコードG、A、B
、Cに、同一の解錠装置に対するカードの発行回数を示
す添字2゜が付けられている。
In Figure 2, these numbers or codes G, A, B
, C is appended with a suffix 2° indicating the number of times the card is issued to the same unlocking device.

カード2が発行されると、このカード2は該当する部屋
を使用する使用者に手渡される。
When the card 2 is issued, this card 2 is handed over to the user who uses the corresponding room.

各部屋のドア5には解錠装置が設けられており、この解
錠装置はカード・リーダ6を含んでいる。
The door 5 of each room is provided with an unlocking device, and this unlocking device includes a card reader 6.

カード・リーダ6はドア5の外がわに取付けられている
A card reader 6 is mounted on the outside of the door 5.

ドア5の外がわにはまた固定ノブ7が設けられ、上部に
は各部屋番号Nが表示されている。
A fixed knob 7 is also provided on the outside of the door 5, and each room number N is displayed at the top.

カード・リーダ6は手動走査式のものであって、使用者
がカード2をカード・リーダ6に挿入して走査すると、
ドア5の錠が解除される。
The card reader 6 is of a manual scanning type, and when the user inserts the card 2 into the card reader 6 and scans it,
Door 5 is unlocked.

カード・リーダとしてはもちろん自動走査式のものを用
いることもできる。
Of course, an automatic scanning type card reader can also be used.

メイド用カード4には、ホテル・コードHとメイド用秘
密番号GOが記録されている。
The maid card 4 records a hotel code H and a maid secret number GO.

ホテルメイドもまたこのカード4をカード・リーダ6に
挿入して解錠することができる。
The hotel maid can also insert this card 4 into the card reader 6 to unlock the door.

第5図は、ホテルの各部屋のドアごとに設けられた錠装
置の外観を示している。
FIG. 5 shows the appearance of the locking device provided for each door of each room in the hotel.

この錠装置は自動施錠機能を有しており、ドア5を閉め
ると、トリガ・ボルト9が働いてラッチ8が固定され自
動的に施錠される。
This locking device has an automatic locking function, and when the door 5 is closed, the trigger bolt 9 is activated, the latch 8 is fixed, and the door is automatically locked.

上述のようにカード2または4をカード・リーダ6に挿
入すると、後述する解錠用ンレノイド69(第9図)に
通電し、かつ表示灯13が点灯する。
When the card 2 or 4 is inserted into the card reader 6 as described above, the unlocking nozzle 69 (FIG. 9), which will be described later, is energized and the indicator light 13 is turned on.

そして、ノブ1のブツシュ・ボタン11を押すとランチ
がはずれ解錠される。
Then, when the button 11 of the knob 1 is pressed, the lunch is released and the lock is unlocked.

この錠装置には、鍵を用いた機械的な作動により解除す
る補助機構が備えられており、鍵を鍵穴12に差込んで
回すことにより錠は解錠される。
This lock device is equipped with an auxiliary mechanism that unlocks by mechanical operation using a key, and the lock is unlocked by inserting the key into the keyhole 12 and turning it.

また、ドア5の内がわには内がわバンドル(図示略)が
設けられ、このバンドルにより自由に解錠することがで
きる。
Further, an inner bundle (not shown) is provided on the inside of the door 5, and the door can be freely unlocked using this bundle.

第6図はカード発行機1の内部構成を示している。FIG. 6 shows the internal configuration of the card issuing machine 1.

カード発行機1は、テンキー15と、その入カバン7ア
・レジスタ16と、乱数発生器11と、表示器24と、
エンコーダ25と、時計26およびその制御回路27と
、演算回路20と、演算用のレジスタ21.22(便宜
的にRa 1 * Ra 2で表わす)と、演算結果記
憶用の7ラグ23(Flで表わす)と、各種データ記憶
用のレジスタ群30と、データ記憶用のRAM40と、
RAM40のアドレス指定用のレジスタ39(ADで表
わす)とから構成されている。
The card issuing machine 1 includes a numeric keypad 15, an input bag 7a register 16, a random number generator 11, a display 24,
An encoder 25, a clock 26 and its control circuit 27, an arithmetic circuit 20, arithmetic registers 21 and 22 (expressed as Ra 1 * Ra 2 for convenience), and a 7-lag 23 (Fl) for storing arithmetic results. ), a register group 30 for storing various data, a RAM 40 for storing data,
It is composed of a register 39 (indicated by AD) for specifying the address of the RAM 40.

テンキー15には日付および部屋の等級を表わす項目の
キーも備えられている。
The numeric keypad 15 is also provided with keys for items representing the date and room class.

乱数発生器17は、発振器18とカウンタ19とからな
る。
Random number generator 17 includes an oscillator 18 and a counter 19.

レジスタ群30は、7種類のカード・データをそれぞれ
記憶する7つのレジスタ31〜31を含んでいる。
The register group 30 includes seven registers 31 to 31 that respectively store seven types of card data.

またRAM40には、各部屋の等級に関する情報の記憶
エリヤ41〜43、各部屋に関する情報の記憶エリヤ4
4〜58、ホテル・コードHの記憶エリヤ60および部
屋数Mの記憶エリヤ61が設けられている。
The RAM 40 also includes storage areas 41 to 43 for information regarding the grade of each room, and storage area 4 for information regarding each room.
4 to 58, a storage area 60 for hotel codes H, and a storage area 61 for the number of rooms M.

この例では部屋に等級が付けられており、1等、2等お
よび3等の部屋がある。
In this example, the rooms are graded, with first class, second class, and third class rooms.

1等の部屋の部屋番号を1−10,2等の部屋の部屋番
号を11〜293等の部屋番号を30以下とする。
The room numbers for 1st class rooms are 1-10, the room numbers for 2nd class rooms are 11-293, etc., and the room numbers are 30 or less.

そして、エリヤ44〜58には、各部屋ごとに部屋番号
N1秘密番号01指定コードCおよび滞在日数りが記憶
される。
In the areas 44 to 58, the room number N1 secret number 01 designation code C and the length of stay are stored for each room.

エリヤ41には1等の部屋についての情報の記憶エリヤ
の先頭アドレス、この例ではエリヤ44のアドレスが記
憶されている。
In the area 41, the first address of the storage area for information about the first class room, in this example, the address of the area 44 is stored.

同じように、エリヤ42,43には、2,3等の部屋に
つい℃の情報の記憶エリヤの先頭アドレス、この例では
エリヤ50.52のアドレスがそれぞれ記憶されている
Similarly, in areas 42 and 43, the leading addresses of storage areas for information on degrees Celsius for rooms 2, 3, etc., in this example, the addresses of areas 50 and 52 are stored, respectively.

さて、ある部屋に対して前回発行されたカードの秘密番
号G1補助番号A、Bおよび指定コードCに添字lを付
してそれぞれG1 、AI 、B1 。
Now, add the subscript l to the secret number G1 auxiliary numbers A, B and designation code C of the card previously issued for a certain room, and get G1, AI, and B1, respectively.

C1で表わし、同じ部屋に対して今回発行されたカード
の秘密番号G1補助番号A、Bおよび指定コードCに添
字2を付してそれぞれG2 、A2 。
Represented by C1, the secret number G1 of the card issued this time for the same room, the auxiliary numbers A, B, and the designation code C are appended with the suffix 2 as G2 and A2, respectively.

B2.C2で表わす。B2. It is represented by C2.

カード発行機1では、前回の秘密番号G1および指定コ
ードC1と、今回の補助番号A2またはB2のいずれか
とから今回の秘密番号G2を作成する。
The card issuing machine 1 creates the current secret number G2 from the previous secret number G1 and designation code C1, and either the current auxiliary number A2 or B2.

ここで、指定コードC1および補助番号A2.B2は乱
数であって、乱数発生器17から読出される。
Here, the designation code C1 and the auxiliary number A2. B2 is a random number and is read out from the random number generator 17.

補助番号A、Bは同格の数字であってもよいが、3,4
桁が好ましい。
Auxiliary numbers A and B may be numbers of the same rank, but 3, 4
Digits are preferred.

指定コードC1は前回の秘密番号01作成時に読出され
たものであって、今回の秘密番号02作成時には次回の
ために指定コードC2を読出L −1< 、指定コード
Cは1またはOのいずれか一方の値をとり、その値に応
じて補助番号AまたはBが選択される。
The designation code C1 was read out when creating the secret number 01 last time, and when creating the secret number 02 this time, the designation code C2 is read out for the next time L -1<, and the designation code C is either 1 or O. One value is taken, and auxiliary number A or B is selected depending on that value.

この実施例では、指定−r −ドCが1のとき補助番号
Aが、指定コードCがOのとき補助番号Bが選択される
In this embodiment, when the designation code C is 1, the auxiliary number A is selected, and when the designation code C is O, the auxiliary number B is selected.

今回の秘密番号G2の作成のための演算の方法は数多く
ある。
There are many calculation methods to create this secret number G2.

たとえば、G2=G1−+lA2またはB2)
・・・(υG2=GIX(A2またはB2)
・・・(2)G2=mXG1+nX(A2またはB 2
)−(3)G2−(C1)+(A2またはB2)
・・・(4)などを挙げることができる。
For example, G2=G1-+lA2 or B2)
...(υG2=GIX(A2 or B2)
...(2) G2=mXG1+nX(A2 or B 2
) - (3) G2 - (C1) + (A2 or B2)
... (4) etc. can be mentioned.

ここでm、nは定数であって、カード発行機1のRAM
40および後述する解錠装置10のRAM90に記憶さ
れている。
Here, m and n are constants, and the RAM of the card issuing machine 1
40 and a RAM 90 of the unlocking device 10, which will be described later.

このように、今回の秘密番号G2は、前回の秘密番号G
1との間に所要の関係が存在するように作成される。
In this way, the current secret number G2 is the previous secret number G
1 so that the required relationship exists between the two.

この実施例では第(1)式が用いられている。In this embodiment, equation (1) is used.

部屋番号Nの部屋のカードを発行する場合を例にとる。Let us take as an example the case where a card for room number N is issued.

RAM400部屋番号Nについての記憶エリヤ54.5
5.56には、部屋番号N1前回の秘密番号G1および
指定コードC1が記憶されているものとする。
RAM400 Storage area 54.5 for room number N
5.56 stores the room number N1, the previous secret number G1, and the designation code C1.

また、空となっている部屋についての滞在日数の記憶エ
リヤにはOがセントされている。
Further, an O is written in the storage area for the length of stay for the empty room.

部屋番号Nの部屋は空であって、エリヤ51にはOが記
憶されている。
The room with room number N is empty, and O is stored in area 51.

なお、各エリヤ41〜61のアドレスには連続番号が割
当てられれている。
Note that consecutive numbers are assigned to the addresses of each area 41 to 61.

第7図を参照して、テンキー15により部屋の等級を示
す数値を入力するとこれをバッファ・レジスタ16に読
込み(ステップ101)、テンキー15中の「等」を示
すキー人力があれば(ステップ102)、ステップ10
1で読込んだ等級を示す数値をレジスタRa1に入れ(
ステップ103)、基準アドレスをレジスタRa2に入
れる(ステップ104)。
Referring to FIG. 7, when a numerical value indicating the grade of the room is entered using the numeric keypad 15, this is read into the buffer register 16 (step 101), and if there is a key indicating "etc." on the numeric keypad 15 (step 102). ), step 10
Put the numerical value indicating the grade read in step 1 into register Ra1 (
Step 103), and input the reference address into register Ra2 (step 104).

基準アドレスとは、エリヤ41の1つ前のエリヤ(図示
路)のアドレスである。
The reference address is the address of the area (the path shown) immediately before the area 41.

エリヤ41のアドレスが41であるとすれば、アドレス
40がレジスタRa2にセントされる。
If the address of area 41 is 41, then address 40 is placed in register Ra2.

次に、両レジスタRa 1 、Ra 2内容を加算して
アドレ、又ル・ジスタADに入れる(ステップ105)
Next, the contents of both registers Ra1 and Ra2 are added and placed in the address or register AD (step 105).
.

この演算によって、1等の部屋が指定された場合には基
準アドレスに+1されるからエリヤ41が、2.3等の
場合にはエリヤ42.43がそれツレ指定される。
As a result of this calculation, when the 1st class room is designated, the reference address is incremented by 1, so area 41 is designated, and when the 2.3rd class room is designated, areas 42 and 43 are designated accordingly.

入力された等級に対応してアドレス・レジスタADの内
容でエリヤ41〜43のうちいずれかを指定して、その
エリヤに記憶されている各等級についての先頭アドレス
を読出してアドレス・レジスタADに入れる(ステップ
106)とともにレジスタRa2に入れておく(ステッ
プ107)。
Specify one of areas 41 to 43 with the contents of the address register AD corresponding to the input grade, read out the first address for each grade stored in that area, and store it in the address register AD. (Step 106) and is also stored in register Ra2 (Step 107).

3等の部屋が指定されたとすれば、エリヤ43からエリ
ヤ52のアドレスを読出す。
If the third class room is specified, the address of area 52 is read from area 43.

そして、このアドレスでエリヤ52を指定して、エリヤ
52に記憶されている部屋番号30を読出してレジスタ
32に記憶する(ステップ108)。
Then, the area 52 is designated with this address, and the room number 30 stored in the area 52 is read out and stored in the register 32 (step 108).

次にレジスタRa1に1を入れ(ステップ109)両レ
ジスタRa 1 t Ra 2の内容を加算してその結
果をレジスタRa2に入れ(ステップ110)、続いて
レジスタRa2の内容をアドレス・レジスタADに送っ
てエリヤ52の次のエリヤ(図示路)を指定する(ステ
ップ111)。
Next, 1 is placed in register Ra1 (step 109), the contents of both registers Ra 1 and Ra 2 are added, the result is placed in register Ra2 (step 110), and then the contents of register Ra2 are sent to address register AD. to designate the next area (path shown) after area 52 (step 111).

エリヤ52の次のエリヤには部屋番号30の前回の秘密
釜MCIが記憶されているからこれを読出してレジスタ
33に記憶する(ステップ112)。
Since the previous secret cauldron MCI of room number 30 is stored in the area next to area 52, it is read out and stored in register 33 (step 112).

レジスタRalには1が入っており(ステップ109)
、レジスタRa2にはエリヤ52の次のエリヤのアドレ
スが入っているからこれらの和をとることにより、指定
コードC1が記憶されているエリヤが指定される。
Register Ral contains 1 (step 109)
, register Ra2 contains the address of the area next to area 52, and by adding these, the area in which the designation code C1 is stored is designated.

両レジスタRa 1 t Ra 2の内容の和をレジス
タRa2に入れ(ステップ113 )、レジスタRa2
の内容をアドレス・レジスタADに送って(ステップ1
14 )、指定コードC1を読出してレジスタ34に記
憶する(ステップ115)。
The sum of the contents of both registers Ra1 and Ra2 is put into register Ra2 (step 113), and
Send the contents of to the address register AD (step 1
14), the designation code C1 is read out and stored in the register 34 (step 115).

同じように両レジスタRal、Ra2の内容を加算して
(ステップ116 )、これにより滞在日数りが記憶さ
れているエリヤを指定する(ステップ117)。
Similarly, the contents of both registers Ral and Ra2 are added (step 116), thereby specifying the area where the number of days of stay is stored (step 117).

この工″リヤの滞在日数りを読出してレジスタ37に記
憶する(ステップ118)。
The number of days the worker will stay is read out and stored in the register 37 (step 118).

そして、滞在日数りを読出してこれをレジスタRalに
入れ(ステップ119)、OをレジスタRa2に入れて
(ステップ120)、両レジスタRal。
Then, the number of days of stay is read out and placed in register Ral (step 119), O is placed in register Ra2 (step 120), and both registers Ral are read out.

Ra2の内容を減算する。Subtract the contents of Ra2.

そしてこの減算結果が0であれば(滞在日数D=0)フ
ラグF1を1にセントし、0以外であれば7ラグF1を
0にセントする(ステップ121 )。
If the result of this subtraction is 0 (the number of days of stay D=0), the flag F1 is set to 1, and if it is other than 0, the 7 lag F1 is set to 0 (step 121).

7ラグF1が1であれば滞在日数りが0であってその部
屋は空であるからステップ131に進み、フラグF1が
Oであればその部屋は空でないから、さらに他の部屋を
検索するためにステップ123に進む(ステップ122
)。
7 If the flag F1 is 1, the number of days of stay is 0 and the room is empty, so proceed to step 131. If the flag F1 is 0, the room is not empty, so another room is searched. Then proceed to step 123 (step 122
).

ステップ123では、アドレス・レジスタADの内容を
レジスタRa2に移し、最終アドレスをレジスタRa1
に入れて(ステップ124)、両レジスタRa1.Ra
2の内容を減算する(ステツ7’125)。
In step 123, the contents of address register AD are moved to register Ra2, and the final address is transferred to register Ra1.
(step 124), and both registers Ra1. Ra
Subtract the contents of 2 (Status 7'125).

最終アドレスとは、各等級ごとの各部屋に関する情報が
入っているエリヤの最終アドレスであり、たとえば1等
の場合には部屋番号9の滞在日数が記憶されてエリヤの
アドレスである。
The final address is the final address of an area that contains information regarding each room for each grade. For example, in the case of 1st grade, the number of days of stay of room number 9 is stored and is the address of the area.

ステップ118で滞在日数りを読出したエリヤのアドレ
スが最終アドレスであれば、ステップ125の減算結果
はOでありこの場合には72グF1を1にセントし、そ
うでない場合には7ラグF1を0にセントする。
If the address of the area whose length of stay was read in step 118 is the final address, the subtraction result in step 125 is O, and in this case, 72 lag F1 is set as 1, otherwise, 7 lag F1 is set as 1. Cent to 0.

フラグF1が1であれば(ステップ126)、各等級に
ついてすべての部屋の検査を終了したのであり、その結
果空の部屋がなかったのであるから表示器24に全部屋
なしな表示して処理を終える(ステップ130)。
If the flag F1 is 1 (step 126), it means that the inspection of all the rooms for each class has been completed, and as a result, there are no empty rooms, so the display 24 displays "No rooms" and processing is continued. Finish (step 130).

フラグF1がOの場合には(ステップ126八すぺでの
部屋についてまだ検索を終了していないのであるから、
レジスタRa1に1を入れて(ステップ121)両レジ
スタRa 1 s Ra 2の内容を加算することによ
り、次に検索すべき部屋番号が記憶されているエリヤの
アドレスを作成し、この加算結果をレジスタRa2に入
れるとともに(ステップ128)、アドレス・レジスタ
ADに送って検索すべきエリヤを指定する(ステップ1
29)。
If flag F1 is O (step 126, since the search for the eight rooms has not yet been completed,
By putting 1 into register Ra1 (step 121) and adding the contents of both registers Ra 1 and Ra 2, the address of the area where the room number to be searched for next is stored is created, and this addition result is stored in the register. Ra2 (step 128), and sends it to address register AD to specify the area to be searched (step 1
29).

そして、ステップ108に戻って上記同様に、部屋番号
N、秘密番号G1および指定コードC1を読出して各レ
ジスタ32.33.34に記憶するとともに、滞在日数
りを読出してOかどうかを検査する。
Then, returning to step 108, the room number N, secret number G1, and designation code C1 are read out and stored in each register 32, 33, and 34, and the number of days of stay is read out and checked to see if it is O.

このようにして各部屋の滞在日数りを検査して、たとえ
ば部屋番号Nの部屋の滞在日数が0であったならこの部
屋番号Nを表示器24に表示する(ステップ131)。
In this way, the number of days of stay in each room is checked, and if, for example, the number of days of stay in the room with room number N is 0, this room number N is displayed on the display 24 (step 131).

そして、乱数発生器17からそのときのカウンタ19の
計数値を補助番号A2として読出し、レジスタ35に記
憶する(ステップ132)。
Then, the count value of the counter 19 at that time is read out from the random number generator 17 as an auxiliary number A2, and stored in the register 35 (step 132).

次に、テンキー15による滞在日数りと「日」の入力を
待って(ステップ133゜134)、日の入力があれば
キー人力された滞在日数りをレジスタ31の記憶する(
ステップ135)。
Next, it waits for the number of days of stay and "day" to be entered using the numeric keypad 15 (steps 133 and 134), and if the day is entered, the number of days of stay entered manually is stored in the register 31 (steps 133 and 134).
Step 135).

ステップ132と同じように乱数発生器11から乱数を
読出してこれを補助番号B2としてレジスタ36に記憶
する(ステップ136)。
As in step 132, a random number is read from the random number generator 11 and stored in the register 36 as the auxiliary number B2 (step 136).

次に、レジスタ34から前回の指定コードC1を読出し
てレジスタRalに入れ(ステップ137)、0をレジ
スタRa2に入れて(ステップ138)、演算回路20
で両レジスタRa1.Ra2の内容の減算をすることに
より前回の指定コードC1が1であるか0であるかを判
定し、この結果を7ラグF1にセントする(ステップ1
39)。
Next, the previous designation code C1 is read from the register 34 and placed in the register Ral (step 137), 0 is placed in the register Ra2 (step 138), and the arithmetic circuit 2
Both registers Ra1. By subtracting the contents of Ra2, it is determined whether the previous specified code C1 is 1 or 0, and this result is sent to 7 lag F1 (step 1
39).

指定コードC1が1であれば減算結果は1でありこのと
きフラグF1にOをセットする。
If the designation code C1 is 1, the subtraction result is 1, and in this case, O is set in the flag F1.

逆に指定コードC1がOであれば減算結果はOでありこ
のとき7ラグF1に1をセントする。
Conversely, if the designated code C1 is O, the subtraction result is O, and in this case, 1 is added to the 7 lag F1.

7ラグF1の状態をみて(ステップ140)、7ラグF
1が0であればレジスタ35から補助番号A2を読出し
てレジスタRa2に入れ(ステツ7’141)、フラグ
F1が1であればレジスタ36から補助番号B2を読出
してレジスタRa2に入れ(ステップ142)、レジス
タ33から前回の秘密番号G1を読出してレジスタRa
I K入れる(ステップ143)。
Checking the state of 7-lag F1 (step 140), 7-lag F1
If 1 is 0, the auxiliary number A2 is read from the register 35 and placed in the register Ra2 (step 7'141), and if the flag F1 is 1, the auxiliary number B2 is read from the register 36 and placed in the register Ra2 (step 142). , reads the previous secret number G1 from the register 33 and stores it in the register Ra.
Enter IK (step 143).

そして、両レジスタRa1.Ra2の内容を加算してこ
の結果を今回の秘密番号G2としてレジスタ33にスト
アする(ステップ144)。
Then, both registers Ra1. The contents of Ra2 are added and the result is stored in the register 33 as the current secret number G2 (step 144).

ステップ140〜144の処理により、指定コードC1
によつ℃選択された補助番号A2またはB2と、前回の
秘密番号G1とを用いて第(1成により今回の秘密番号
G2が算出されることが理解されよう。
By the processing of steps 140 to 144, the specified code C1
It will be understood that the current secret number G2 is calculated using the auxiliary number A2 or B2 selected by the user and the previous secret number G1.

乱数発生器17のカウンタ19の計数値の下1桁は1ま
たは0であるから、これを読出して今回の指定コードC
2としレジスタ34に記憶する(ステップ145)。
Since the last digit of the count value of the counter 19 of the random number generator 17 is 1 or 0, read this and enter the current designation code C.
2 and stored in the register 34 (step 145).

ステップ118で滞在日数を読出したときのアドレスを
利用して、レジスタ31の滞在日数りを、RAM40内
の部屋番号Nの滞在日数のエリヤ(この場合には57)
に記憶することによりRAM40の滞在日数を更新する
ステップ146)。
Using the address when the number of days of stay was read in step 118, the number of days of stay in the register 31 is stored in the area of the number of days of stay of room number N in the RAM 40 (57 in this case).
Step 146) of updating the number of days of stay in the RAM 40 by storing the number of days of stay in the RAM 40.

エリヤ57を指定したアドレス・レジスタADの内容を
レジスタRalに入れ(ステップ14γ)、レジスタR
a2に1を入れて(ステップ148)、両レジスタRa
1 t Ra 2の内容を減算しこの減算結果をアド
レス・レジスタADに送って(ステップ149)、エリ
ヤ56を指定する。
The contents of address register AD specifying area 57 are put into register Ral (step 14γ), and register R
Put 1 in a2 (step 148), and set both registers Ra.
The contents of 1 t Ra 2 are subtracted and the subtraction result is sent to address register AD (step 149) to designate area 56.

そしてレジスタ34の指定コードC2をエリヤ56に記
憶すル(ステツ7”150)。
Then, the designation code C2 of the register 34 is stored in the area 56 (step 7''150).

同様にしてアドレス・レジスタADの内容をレジスタR
a1に入れ(ステップ151)、両レジスタRa 1
、Ra 2の内容を減算してこの減算結果をアドレス・
レジスタADに入れ、エリヤ55を指定して(ステラ7
”152)、レジスタ33の今回の秘密番号G2をエリ
ヤ55ニ記憶する(ステップ153)。
Similarly, the contents of address register AD are transferred to register R.
a1 (step 151), and both registers Ra 1
, Ra 2 and use this subtraction result as address.
Put it in register AD, specify area 55 (Stella 7
"152), and the current secret number G2 of the register 33 is stored in the area 55 (step 153).

以上により記憶エリヤ55,56の秘密番号G1、指定
コードC1はそれぞれG2.C2に変更される。
As described above, the secret number G1 and the designation code C1 of the storage areas 55 and 56 are changed to G2. Changed to C2.

RAM40のエリヤ60からホテル・コードHを読出し
てレジスタ31に入れ(ステップ154)、最後にレジ
スタ群30からホテル・コードH1部屋番号N1秘密番
号G2、指定コードC2、補助番号A2.B2および滞
在日数りを読出してエンコーダ25に転送し、カード2
に書込む(ステップ155)。
The hotel code H is read from the area 60 of the RAM 40 and placed in the register 31 (step 154), and finally, from the register group 30, the hotel code H1, room number N1, secret number G2, designation code C2, auxiliary number A2, . B2 and the length of stay are read and transferred to the encoder 25, and the card 2 is read out and transferred to the encoder 25.
(step 155).

上記の手順では、各部屋の検索ごとに部屋番号N1秘密
番号Gお上び指定コードC1をRAM40から読出して
各レジスタ32.33.34に記憶しているが(ステッ
プ108,112,115)、まず滞在日数りのみを順
次検索してD=Oの部屋がみつかったのちにその部屋に
関する各番号N。
In the above procedure, the room number N1, secret number G, and designation code C1 are read out from the RAM 40 and stored in each register 32, 33, and 34 for each room search (steps 108, 112, and 115). First, only the number of days of stay is searched sequentially, and after finding the room D=O, each number N related to that room is searched.

Gl 、CIを読出すようにしてもよい。It is also possible to read out Gl and CI.

上記の例では、部屋の使用が終ったときにフロントで、
RAM40に記憶されている該当する部屋の滞在日数を
Oにセントするようにしているが、時計26からの1変
わり信号によりたとえば午前10時にRAM40のすべ
てのエリヤの滞在日数(滞在日数がOの場合を除く)か
ら1を差し、引いて、1日の経過ごとに記憶している滞
在日数を更新してもよい。
In the above example, when you finish using the room, at the front desk,
The number of days of stay in the corresponding room stored in the RAM 40 is set to O, but the number of days of stay in all the areas in the RAM 40 (if the number of days of stay is O) is displayed at 10 am, for example, due to the 1 change signal from the clock 26. The stored number of days of stay may be updated every day by subtracting 1 from (excluding).

第8図を参照して、時計26から1変わり信号が出力さ
れると(ステップ160)、プログラムから総部屋数M
をR,AM40のエリヤ61に記憶しくステップ161
)、RAM40中の最初の部屋の滞在日数が記憶されて
いるエリヤ(この例ではエリヤ41)のアドレスをアド
レス・レジスタADに入れる(ステップ162)。
Referring to FIG. 8, when a 1 change signal is output from the clock 26 (step 160), the total number of rooms M
Step 161: Store in area 61 of R, AM40
), the address of the area (area 41 in this example) in which the number of days of stay in the first room is stored in the RAM 40 is entered into the address register AD (step 162).

そして、このアドレス・レジスタADによってエリヤ4
1を指定しそのエリヤの滞在日数りを読出してレジスタ
Ra 1に入れる(ステップ163)。
Then, by this address register AD, area 4 is
1 is specified and the number of days of stay in that area is read out and stored in register Ra1 (step 163).

次にレジスタRa2に0を入れて(ステップ164)、
両レジスタRa1tRa2の内容を減算してその結果が
0であれば7ラグF1を1にセントし、0以外であれば
フラグF1に0をセットする(ステップ165)。
Next, put 0 in register Ra2 (step 164),
The contents of both registers Ra1 and Ra2 are subtracted, and if the result is 0, the 7 lag F1 is set to 1, and if the result is other than 0, the flag F1 is set to 0 (step 165).

7ラグF1が1であれば(ステップ166)、読出した
滞在日数D′lJ″−Oであったのであるからステップ
170に移り、7ラグF1がOの場合には滞在日数りか
ら1を差引くためにステップ167に進む。
If the 7-lag F1 is 1 (step 166), the read length of stay is D'lJ''-O, so the process moves to step 170. If the 7-lag F1 is O, 1 is subtracted from the length of stay. Proceed to step 167 to subtract.

ステップ167ではまずレジスタRa2に1を入れ、レ
ジスタRa 1 e Ra 2の内容を減算して(ステ
ップ168)、この減!結果D−1を元のエリヤ47に
記憶する(ステップ169)。
In step 167, 1 is first put into register Ra2, and the contents of register Ra 1 e Ra 2 are subtracted (step 168), and this subtraction! The result D-1 is stored in the original area 47 (step 169).

すべての滞在日数について減算処理が終了シタかどうか
を調べるために、エリヤ61から部屋数Mを読出してレ
ジスタRa1に入れ(ステップ170)、レジスタRa
2に1を入れて(ステップ111)、両レジスタRa
1 s Ra 2の内容を減算してその結果をレジスタ
Ralに入れておく(ステップ172)。
In order to check whether the subtraction process has ended for all the days of stay, the number of rooms M is read from the area 61 and placed in the register Ra1 (step 170), and
2 is set to 1 (step 111), and both registers Ra
1 s Ra 2 is subtracted and the result is stored in register Ral (step 172).

このように、1つの滞在日数の減算処理ごとに部屋数M
から1を差し引いておく。
In this way, the number of rooms M is calculated for each subtraction process for one length of stay.
Subtract 1 from.

したがって部屋数Mはまだ減算処理をしていない滞在日
数のエリヤの数をあられしている。
Therefore, the number of rooms M is the number of days of stay that has not yet been subtracted.

この部屋数Mが0かどうかを検査するためにレジスタR
a2にOを入れ、両レジスタRal 、 Ra2の内容
を減算して、減算結果がOであれば7ラグF1を1にセ
ントし、そうでなければ7ラグF1をOにセントする(
ステップ114)。
Register R to check whether this number of rooms M is 0.
Put O in a2, subtract the contents of both registers Ral and Ra2, and if the subtraction result is O, put 7 lag F1 into 1, otherwise put 7 lag F1 into O (
Step 114).

そして、フラグF1の状態をみて(ステップ175)、
フラグF1が1であればすべての滞在日数のエリヤにつ
いて処理が終了したのであるから、処理を終える。
Then, looking at the state of flag F1 (step 175),
If the flag F1 is 1, it means that the processing has been completed for all areas of the length of stay, and the processing ends.

フラグF1がOであれば、次ノ滞在日数のエリヤに移る
ために、アドレス・レジスタADの内容をレジスタRa
1に入れ(ステップ176)、レジスタRa2に4を入
れて(ステップ111)、両レジスタRal、Ra2の
内容を減算してその結果をアドレス・レジスタADに入
れる(ステップ118)。
If flag F1 is O, the contents of address register AD are transferred to register Ra in order to move to the next area for the number of days of stay.
1 (step 176), 4 is placed in register Ra2 (step 111), the contents of both registers Ral and Ra2 are subtracted, and the result is placed in address register AD (step 118).

この後ステップ163に移り、次のエリヤの滞在日数を
読出して同様な減算処理を順次行っていく。
Thereafter, the process moves to step 163, where the number of days of stay in the next area is read out and similar subtraction processing is performed one after another.

第9図はドア5に備えられた解錠装置10を示している
FIG. 9 shows an unlocking device 10 provided on the door 5. As shown in FIG.

解錠装置10は、カード・リーダ6と、時計65と、命
令レジスタ、デユーダ、割込制御回路などを含む制御回
路66と、タイマ61と、7リンプ70ング68(FF
で表わす)と、解錠用ンL//イド69と、演算回路1
0と、演算用レジスタ71 、72 (Rbl 、Rb
2録わす)と、演算結果記憶用のフラグ73(F2で表
わす)と、各種データ記憶用のレジスタ群80と、デー
タ記憶用のRAM90とから構成されている。
The unlocking device 10 includes a card reader 6, a clock 65, a control circuit 66 including an instruction register, a duder, an interrupt control circuit, etc., a timer 61, and a limp 70 ring 68 (FF
(represented by
0 and calculation registers 71 and 72 (Rbl, Rb
2), a flag 73 (represented by F2) for storing calculation results, a register group 80 for storing various data, and a RAM 90 for storing data.

この実施例では、解錠後ニ定時間Tだけ解錠状態に維持
さ札この時間Tが経過すると再び施錠状態に戻る。
In this embodiment, the unlocked state is maintained for a predetermined time T after unlocking, and after this time T has elapsed, the locked state is returned again.

コノ一定時間Tを計時するためにタイマ67が用いられ
ている。
A timer 67 is used to measure the constant time T.

レジスタ群80は7つのレジスタ81〜87から構成さ
れている。
Register group 80 is composed of seven registers 81-87.

また、RAM90には、ホテル・コードHな記憶するエ
リヤ91、部屋番号Nを記憶するエリヤ92、秘密番号
Gを記憶するエリヤ93、指定コードCを記憶するエリ
ヤ94滞在日数りを記憶するエリヤ95、タイマ61の
設定時間Tを記憶するエリヤ96およびメイド用秘密番
号GOを記憶するエリヤ97が設けられている。
The RAM 90 also includes an area 91 for storing the hotel code H, an area 92 for storing the room number N, an area 93 for storing the secret number G, an area 94 for storing the designation code C, and an area 95 for storing the length of stay. , an area 96 for storing the set time T of the timer 61, and an area 97 for storing the maid's secret number GO.

解錠装置10では、カード2または4のデータを読取っ
て、カード・データ中の秘密番号GがRAM90の記憶
エリヤ93,97に記憶されている秘密番号G、Goと
次のいずれかの関係にあり、かつRAM90の記憶エリ
ヤ95の滞在日数りがOでない場合に施錠を解除する。
The unlocking device 10 reads the data on the card 2 or 4 and determines that the secret number G in the card data has one of the following relationships with the secret numbers G and Go stored in the storage areas 93 and 97 of the RAM 90. If the number of days of stay in the storage area 95 of the RAM 90 is not O, the lock is released.

秘密番号についての所定の関係の1は、カード・リーダ
6で読取った秘密番号Gが記憶エリヤ93内の秘密番号
Gと一致した場合である。
The predetermined relationship 1 regarding the secret number is a case where the secret number G read by the card reader 6 matches the secret number G in the storage area 93.

その2は、カード・リーダ6で読取った秘密番号Gが記
憶エリヤ93内の秘密番号Gと、カード・データ中の補
助番号A、Bおよび記憶エリヤ94内の指定コードCを
用いて第(1)式の関係にある場合である。
Part 2 is that the secret number G read by the card reader 6 is the (1st ) is the case.

すなわち、カード・データ中の秘密番号および補助番号
をそれぞれG2およびA2 、B2とし、記憶エリヤ9
3の秘密番号をG1、記憶エリヤ94の指定コードを0
1とすれば、これらの秘密番号Gl。
That is, the secret number and auxiliary number in the card data are G2, A2, and B2, respectively, and the storage area 9 is
3's secret number is G1, and the designated code of storage area 94 is 0.
1, these secret numbers Gl.

G2が、指定コードC1によって選択された補助番号A
2またはB2を用いて第(1)式の関係にあれば施錠を
解除する。
G2 is the auxiliary number A selected by the designation code C1
2 or B2 to release the lock if the relationship of equation (1) is satisfied.

この場合は、番号Nの部屋の利用者が変ったのであるか
ら、カード・データ中の秘密番号G2および指定コード
C2をGl。
In this case, since the user of room number N has changed, the secret number G2 and designation code C2 in the card data are changed to Gl.

C1に代えてRAM90の記憶エリヤ93,94にそれ
ぞれ記憶する。
They are stored in storage areas 93 and 94 of the RAM 90, respectively, instead of C1.

その3は、メイド用カード4が用いられた場合であり、
メイド用カード4のメイド用秘密番号GOがR,AM9
0のエリヤ91に記憶されている秘密番号GOと一致し
た場合である。
Part 3 is when maid card 4 is used,
Maid card 4's maid secret number GO is R, AM9
This is a case where the number matches the secret number GO stored in area 91 of 0.

いま、RAM90の記憶エリヤ91,92,96゜97
にはそれぞれホテル・コードH1部屋番号N1タイマ6
7の設定時間Tおよびメイド用秘密番号GOがそれぞれ
あらかじめ記憶されているものとする。
Now, storage areas 91, 92, 96°97 of RAM 90
are respectively hotel code H1 room number N1 timer 6
It is assumed that the set time T of 7 and the secret number GO for the maid are stored in advance.

また、ノリツブ70ツブ68はリセットされている。Further, the knob 70 and the knob 68 have been reset.

第10図は参照して、カード2または4がカード・リー
ダ6に挿入されると、カード2゜4を読取りこの読取っ
たカード・データをレジスタ群80に読込む(ステップ
181)。
Referring to FIG. 10, when card 2 or 4 is inserted into card reader 6, card 2 or 4 is read and the read card data is read into register group 80 (step 181).

そして、RAM90の記憶エリヤ91のホテル・コード
HをレジスタRblに入れ(ステップ182)、レジス
タ81内のホテル・コードHなレジスタRb2に入れて
(ステップ183)、ホテル・コードの検査を行なう。
Then, the hotel code H in the storage area 91 of the RAM 90 is placed in the register Rbl (step 182), and the hotel code H is placed in the register Rb2 in the register 81 (step 183), thereby checking the hotel code.

両レジスタRbl、Rb2の内容を減算してこの結果が
0であれば7ラグF2を1にセントし、減算結果がO以
外であればフラグF2をOにセントする(ステップ18
4)。
The contents of both registers Rbl and Rb2 are subtracted, and if the result is 0, the 7 lag F2 is set to 1, and if the subtraction result is other than O, the flag F2 is set to O (step 18
4).

そして、7ラグF2の状態をみて、7ラグF2が1であ
ればカード・データ中のホテル・コードHは正しかった
のであるから、次にステップ186の部屋番号Nの検査
に移る。
Then, looking at the state of 7-lag F2, if 7-lag F2 is 1, then the hotel code H in the card data is correct, and the next step is to check the room number N in step 186.

フラグF2がOであればホテル・コードHが正しくなく
不正なカードが用いられているのであるから、解錠せず
に処理を終える。
If the flag F2 is O, it means that the hotel code H is incorrect and an unauthorized card is being used, so the process ends without unlocking.

ステップ186ではホテル・コードHの検査の場合と同
じように、RAM90の記憶エリヤ92中の部屋番号N
をレジスタRblに入れ、次ニレジスタ820部屋番号
NをレジスタRb2に入れ(ステップ187)両レジス
タRb1.Rb2の内容の減算処理をしてこの結果がO
であればフラグF2を1にセントする(ステップ188
)。
In step 186, as in the case of checking hotel code H, room number N in memory area 92 of RAM 90 is checked.
is placed in register Rbl, and the next register 820 room number N is placed in register Rb2 (step 187). Both registers Rb1. Subtract the contents of Rb2 and the result is O
If so, set flag F2 to 1 (step 188
).

そして、フラグF2の状態をみて(ステップ189)。Then, check the state of flag F2 (step 189).

lであれば部屋番号Nが正しいとしてステップ190の
秘密番号Gの検査に移る。
If it is 1, the room number N is assumed to be correct and the process moves to step 190 to check the secret number G.

フラグF2が0であればそのまま処理を終了して解錠し
ない。
If the flag F2 is 0, the process ends and the lock is not unlocked.

レジスタ83〜87には今回の秘密番号G2、指定コー
ドC2、補助番号A2 、B2および滞在日数りがそれ
ぞれ記憶されており、RAM90の記憶エリヤ93,9
4,95には前回の秘密番号G1、指定コードC1およ
び滞在日数りが記憶されているものとする。
The current secret number G2, designation code C2, auxiliary numbers A2 and B2, and the number of days of stay are stored in the registers 83 to 87, respectively, and the memory areas 93 and 9 of the RAM 90 are stored in the registers 83 to 87.
4.95 stores the previous secret number G1, designation code C1, and number of days of stay.

ステップ190では記憶エリヤ93に記憶されている秘
密番号G、G1を読出してレジスタRb1に入れ、次に
レジスタ83の秘密番号G2またはGOをレジスタRb
2に入れ(ステップ191)、両レジスタRbl、Rb
2の内容を減算して減算結果がOであればフラグF2を
1にセントする(ステップ192)。
In step 190, the secret numbers G and G1 stored in the storage area 93 are read and stored in the register Rb1, and then the secret number G2 or GO of the register 83 is read out and stored in the register Rb1.
2 (step 191), and both registers Rbl and Rb
The contents of 2 are subtracted, and if the subtraction result is O, the flag F2 is set to 1 (step 192).

減算結果が0でない場合には7ラグF2をOにセントす
る。
If the subtraction result is not 0, 7 lags F2 are sent to O.

そして、7ラグF2の状態をみて(ステップ193)、
lであれば194に進み、0であればステップ203に
移る。
Then, looking at the state of 7 lag F2 (step 193),
If it is l, the process advances to step 194; if it is 0, the process advances to step 203.

RAM90のエリヤ93の秘密番号がG1であり、レジ
スタ83の秘密番号が02である場合には、これらの秘
密番号は一致せず、ステップ193でNOとなる。
If the secret number in area 93 of RAM 90 is G1 and the secret number in register 83 is 02, these secret numbers do not match, and the answer at step 193 is NO.

これは、部屋番号Nの利用者が変って新たなカードが発
行された場合である。
This is a case where the user of room number N changes and a new card is issued.

したがって、次に両番号G1 、G2が第(1)式によ
って関係づけられているかどうかを検査する。
Therefore, next, it is checked whether the numbers G1 and G2 are related by equation (1).

ステップ203では、RAM90のエリヤ94に記憶さ
れている指定コードC1を読出してレジスタRblに入
れ、次にOをレジスタRb2に入れて(ステップ204
)、両レジスタRbl、Rb2の内容を減算しその結果
が0であれば7ラグF2を1にセントし、減算結果が1
であればフラグF2をOにセットする(ステップ205
)。
In step 203, the designation code C1 stored in the area 94 of the RAM 90 is read out and placed in the register Rbl, and then O is placed in the register Rb2 (step 204).
), subtract the contents of both registers Rbl and Rb2, and if the result is 0, set 7 lag F2 to 1, and the subtraction result is 1.
If so, set flag F2 to O (step 205
).

そして、7ラグF2の状態をみて0であれば、補助番号
A2を選択するためにステップ207に進み、lであれ
ば補助番号B2を選択するためにステップ209に進む
(ステップ206)。
Then, if the state of the 7-lag F2 is 0, the process proceeds to step 207 to select the auxiliary number A2, and if it is 1, the process proceeds to step 209 to select the auxiliary number B2 (step 206).

いずれの場合にしてもまずエリヤ93の秘密番号G1を
レジスタRb1に入れ(ステップ207.209)、7
ラグF2が00場合にはレジスタ85の補助番号A2を
レジスタR,b2に入れ(ステップ208)、7ラグF
2が1の場合にはレジスタ86の補助番号B2をレジス
タRb2に入れる(ステップ210)。
In either case, first enter the secret number G1 of Elijah 93 into register Rb1 (steps 207 and 209), and
If lag F2 is 00, put the auxiliary number A2 of register 85 into register R, b2 (step 208), and set 7 lag F2.
If 2 is 1, the auxiliary number B2 of the register 86 is placed in the register Rb2 (step 210).

そして、レジスタRblの秘密番号G1と、レジスタR
b2の補助番号A2fたはB2とを加JEし℃、その結
果をレジスタRb1に入れる(ステップ211)。
Then, the secret number G1 of register Rbl and the register R
The auxiliary number A2f or B2 of b2 is added to the auxiliary number A2f or B2, and the result is stored in the register Rb1 (step 211).

レジスタ83から秘密番号G2を読出してレジスタRb
2に入れ(ステップ212)、両レジスタRbl、Rb
2の内容を減算してその結果が0であれば7ラグF2を
1にセントし、0であれば7ラグF2をOにセントする
(ステップ213)。
Read secret number G2 from register 83 and register Rb
2 (step 212), and both registers Rbl and Rb
If the content of 2 is subtracted and the result is 0, 7 lag F2 is placed in 1, and if the result is 0, 7 lag F2 is placed in 0 (step 213).

レジスタRblの内容は秘密番号G1と補助番号A2ま
たはB2との和であり、レジスタRb2の内容は秘密番
号G2であるから、上記の減算結果が0であるというこ
とは上記の秘密番号G1とG2が第(1)式の関係を満
足していることを意味する。
The contents of the register Rbl are the sum of the secret number G1 and the auxiliary number A2 or B2, and the contents of the register Rb2 are the secret number G2. Therefore, the above subtraction result is 0, which means that the above secret numbers G1 and G2 This means that the equation (1) is satisfied.

したがってこの場合には解錠のための処理に進む(ステ
ップ214)。
Therefore, in this case, the process proceeds to unlocking (step 214).

ステップ2130減算結果が0でなければ両秘密番号G
l 、G2が第(LXの関係にない。
Step 2130 If the subtraction result is not 0, both secret numbers G
l, G2 is not in the relationship of (LX).

したがって、フラグF2が0の場合には(ステップ21
4)、解錠することな(処理を終える。
Therefore, if the flag F2 is 0 (step 21
4) Do not unlock (finish the process).

このように、RAM90に記憶されている秘密番号とカ
ード2に記録されている秘密番号とが一定の関係(たと
えば第(0式)にない場合には施錠を解くことはできな
い。
In this way, if the secret number stored in the RAM 90 and the secret number recorded on the card 2 do not have a certain relationship (for example, equation (0)), the lock cannot be unlocked.

ステップ214で7ラグF2が1の場合には、レジスタ
83に記憶されている今回の秘密番号G2をRAM90
のエリヤ93に書込み秘密番号を更新する(ステップ2
15)。
If the 7lag F2 is 1 in step 214, the current secret number G2 stored in the register 83 is stored in the RAM 90.
Write the secret number in area 93 of (Step 2)
15).

また、レジスタ84の指定コードC2をRAM90の記
憶エリヤ94に書込んで指定コードを更新し次回に発行
されるカードに備える(ステップ216)。
Further, the designation code C2 of the register 84 is written into the storage area 94 of the RAM 90 to update the designation code and prepare for the next issued card (step 216).

さらに、レジスタ87の滞在日数りをRAM90のエリ
ヤ95に書き込んでおく(ステップ217)。
Furthermore, the number of days of stay in the register 87 is written into the area 95 of the RAM 90 (step 217).

以上の処理ののち、RAM90のエリヤ96に記憶され
ている設定時間Tを読出してタイマ67にセントすると
ともに(ステップ198)、71Jンプフロツ7”FF
をセットする(ステップ199)。
After the above processing, the set time T stored in the area 96 of the RAM 90 is read out and stored in the timer 67 (step 198), and the
is set (step 199).

フリップ70ツブFFがセントされるとンレノイド69
が働くので解錠される。
When flip 70 Tsubu FF is sent, Nrenoid 69
works, so it is unlocked.

タイマ61の内容が0になるまでタイマ67の内容から
−Iして時間を計時しくステップ200)、タイマ67
の内容が0になると(ステップ201)、7リツプフロ
ンプFFをリセットする(ステップ202)。
Step 200), the timer 67 is counted by -I from the content of the timer 67 until the content of the timer 61 becomes 0.
When the content becomes 0 (step 201), the 7-lip flop FF is reset (step 202).

このようにしてフリップ70ツブFFがセントされてい
る一定時間Tの間だけ解錠状態となる。
In this way, the door is unlocked only for a certain period of time T during which the flip 70 knob FF is inserted.

なお、ステップ200の計時処理はレジスタRb1゜f
il、B2を用いて減算処理を行なってもよい。
Note that the time measurement process in step 200 is performed using register Rb1°f.
Subtraction processing may be performed using il and B2.

ステップ215によってRAM90のエリヤ93の秘密
番号が01からG2に更新されたので、同一カードを用
いて再び解錠しようとする場合には、レジスタ83の内
容と記憶エリヤ93の内容が一致する(ステップ193
でYES)。
Since the secret number in the area 93 of the RAM 90 has been updated from 01 to G2 in step 215, if you try to unlock it again using the same card, the contents of the register 83 and the contents of the storage area 93 will match (step 215). 193
(Yes)

この場合にはステップ194に進んで滞在日数の検査を
する。
In this case, the process advances to step 194 to check the length of stay.

まず、RAM90のエリヤ95の滞在日数りをレジスタ
Rb 1に入れ、次に0をレジスタRb2に入れる(ス
テップ195)。
First, the number of days of stay of area 95 in RAM 90 is entered into register Rb1, and then 0 is entered into register Rb2 (step 195).

そして、両レジスタRb1.Rb2の内容の減算処理を
してその結果が0であれば72グF2を1にセントし、
0以外の場合には72グF2を0にセントする(ステッ
プ196)。
Both registers Rb1. Subtract the contents of Rb2 and if the result is 0, cent 72gF2 to 1,
If it is other than 0, 72gF2 is set to 0 (step 196).

7ラグF2が1ということは滞在日数1)fにQである
ということを意味するから、この場合には解錠すること
なく処理を終える。
7lag F2 being 1 means that the number of days of stay 1)f is Q, so in this case the process ends without unlocking.

滞在日数りが0以外(F2=O)の場合にはステップ1
98に進みフリップ70ツブFFをセントして一定時間
だけ解錠する。
If the length of stay is other than 0 (F2=O), step 1
Proceed to 98 and use the Flip 70 knob FF to unlock it for a certain period of time.

メイド用カード4には部屋番号Nのデータが記録されて
いない(内容がO)であるから、ステップ189の判断
はNOとなる。
Since the data of the room number N is not recorded in the maid card 4 (the content is O), the determination at step 189 is NO.

この場合にはメイド用秘密番号GOの検査をするために
ステップ218に移り、まずRAM90のエリヤ91の
メイド用秘密番号GOをレジスタR,b1に入れ、次に
レジスタ83のメイド用秘密番号GOをレジスタRb2
に入れる(ステップ219)。
In this case, the process moves to step 218 to check the maid's secret number GO, and first enters the maid's secret number GO in area 91 of the RAM 90 into registers R, b1, and then enters the maid's secret number GO in register 83. Register Rb2
(step 219).

そして、両レジスタR,bl、Rb2の内容を減算して
、その結果がOであればフラグF2を1にセットし、O
以外の場合にはフラグF2をOにセントする(ステップ
220)。
Then, the contents of both registers R, bl, and Rb2 are subtracted, and if the result is O, flag F2 is set to 1, and O
In other cases, the flag F2 is set to O (step 220).

フラグF2が00ときにはエリヤ97とレジスタ83の
秘密番号が一致しないのであるから解錠することなく処
理を終える(ステップ211)。
When the flag F2 is 00, the secret numbers in the area 97 and the register 83 do not match, so the process ends without unlocking (step 211).

フラグF2が1の場合にはRAM90のエリヤ95の滞
在日数りをレジスタRb1に入れ(ステップ222)、
0をレジスタRb2に入れて(ステップ223)、両レ
ジスタRbl、Rb2の内容の減算処理をして滞在日数
りが0であるかどうかをみる(ステップ224)。
If flag F2 is 1, the number of days of stay in area 95 of RAM 90 is entered in register Rb1 (step 222);
0 is placed in register Rb2 (step 223), and the contents of both registers Rbl and Rb2 are subtracted to see if the number of days of stay is 0 (step 224).

この減算結果がOであればフラグF2に1をセントし、
0以外の場合にはフラグF2に0をセントする。
If the result of this subtraction is O, add 1 to flag F2,
If the value is other than 0, 0 is placed in the flag F2.

フラグF2が00場合には滞在日数りが0ではないから
ステンプ226に進み、レジスタRb2に1を入れて、
レジスタRb1の内容である滞在日数りから1を引いて
その結果をレジスタRb1に入れる(ステップ227)
If flag F2 is 00, the number of days of stay is not 0, so proceed to step 226, put 1 in register Rb2,
Subtract 1 from the number of days of stay, which is the content of register Rb1, and put the result in register Rb1 (step 227).
.

そし℃、このレジスタRblの内容D−1をRAM90
のエリヤ95に入れて滞在日数を更新する(ステップ2
28)。
Then, at ℃, the contents D-1 of this register Rbl are stored in RAM90.
Enter the area 95 and update the length of stay (Step 2)
28).

ホテルのメイドは部屋の清掃をするために各部屋を1日
に1度ずつ解錠する。
Hotel maids unlock each room once a day to clean the room.

したがって、RAM90に記憶されている利用者の残り
の滞在日数は、1日が経過するごとにメイドがその部屋
の施錠を解除するときだけ1つだけ減算される。
Therefore, the remaining number of days of the user's stay stored in the RAM 90 is decremented by one each time the maid unlocks the room.

RAM90のエリヤ95の滞在日数りから1を減算した
のち(ステップ228)、および滞在日数がOの場合(
ステップ225)には、ステップ198に移って解錠処
理を実行する。
After subtracting 1 from the number of days of stay of area 95 in RAM 90 (step 228), and if the number of days of stay is O (
In step 225), the process moves to step 198 and an unlocking process is executed.

RAM90のエリヤ95に記憶されている滞在日数りの
日ごとの更新(1減算)は、時計65から出力される1
変り信号によっても行なうことができる。
The daily update (subtraction of 1) of the number of days of stay stored in the area 95 of the RAM 90 is performed using the 1 output from the clock 65.
This can also be done using a change signal.

この処理の例が第11図に示されている。時計65から
1日1回日変り信号が出力されると(ステップ231、
ステップ222〜228と同じ手順により、滞在日数り
がOでない場合のみ、滞在日数りから1を引いてその結
果をエリヤ95に入れ、滞在日数りを更新する(ステッ
プ232〜238)。
An example of this process is shown in FIG. When the clock 65 outputs a daily change signal once a day (step 231,
Using the same procedure as steps 222 to 228, only when the number of days of stay is not O, 1 is subtracted from the number of days of stay and the result is entered in the area 95, and the number of days of stay is updated (steps 232 to 238).

なお、多数の部屋に対して複数人のメイドがいる場合に
は、各メイドが掃除を担当する部屋をあらかじめ定めて
おき、各部屋の施錠は担当するメイドによってのみ解除
しうるようにしておく。
If there are multiple maids for a large number of rooms, the rooms each maid is responsible for cleaning are determined in advance, and each room can be unlocked only by the maid in charge.

また、担当するメイドが変ったり、メイド用カードを紛
失した場合などに備えて、メイド用カードの場合にも利
用者カードと同じように秘密番号更新処理を実行するよ
うにすることが好ましい。
Furthermore, in case the maid in charge changes or the maid card is lost, it is preferable to perform the secret number update process for the maid card in the same way as for the user card.

上記の例では、部屋番号Nによって利用者用カードかメ
イド用カードかを識別しているが、カードの磁気ストラ
イプに利用者かメイドかを区別するための識別コードを
記録しておいてもよい。
In the above example, the room number N identifies whether the card is for a user or a maid, but an identification code may be recorded on the magnetic stripe of the card to distinguish between a user and a maid. .

この場合にはRAM90に利用者を示すコードおよびメ
イドを示すコードをあらかじめ記憶しておく。
In this case, a code indicating the user and a code indicating the maid are stored in the RAM 90 in advance.

そして、ホテル・コードHの検査をしたのち、カードか
ら読取った識別コードまたはメイド・コードとを比較し
その結果に応じてそれぞれの処理に進むようにする。
Then, after checking the hotel code H, it is compared with the identification code or maid code read from the card, and the process is performed according to the result.

さらに、利用者の滞在期間21日を単位とじているが、
1時間を単位として計時し、所定数の単位時間、たとえ
ば6時間、12時間ごとに記憶装置の滞在期間に関する
記憶内容を減するようにすることもできる。
Furthermore, although the length of stay of the user is 21 days,
It is also possible to measure the time in units of one hour, and to reduce the stored content related to the stay period in the storage device every predetermined number of unit times, for example, 6 hours or 12 hours.

マタ、補助番号はA、B′の2つであるが、3つ以上の
補助番号を用意して、これら補助番号の1または複数を
指定コードCで指定するようにしてもよい。
Although there are two auxiliary numbers, A and B', three or more auxiliary numbers may be prepared and one or more of these auxiliary numbers may be designated by the designation code C.

したがって、この場合には指定コードCは0または1の
2値ではなく3以上の値をとる。
Therefore, in this case, the designation code C takes a value of 3 or more instead of a binary value of 0 or 1.

カード発行機1で、今回の秘密番号G2を作成する場合
も、解錠装置10で前回の秘密番号G1と今回の秘密番
号G2とが第(LXに示す関係にあるかどうかを検査す
るときにおいても、前回の指定コードC1を用いて補助
番号A2.B2のうちいずれかを選択しているが、今回
の指定コードC2を用いてもよいのはいうまでもない。
Even when the card issuing machine 1 creates the current secret number G2, when the unlocking device 10 checks whether the previous secret number G1 and the current secret number G2 are in the relationship shown in (LX). Although the previous designation code C1 is used to select one of the auxiliary numbers A2 and B2, it goes without saying that the current designation code C2 may also be used.

以上のようにこの発明による解錠方法では、カードを発
行する場合には、前回の秘密番号と、複数の補助番号の
うち指定コードによって選択された補助番号とを用いて
前回の秘密番号と一定の関係にある今回の秘密番号を作
成し、この秘密番号と、複数の補助番号と指定コードと
をカードに記録している。
As described above, in the unlocking method according to the present invention, when issuing a card, the previous secret number and the auxiliary number selected by the designated code from among the plurality of auxiliary numbers are used to keep the same number as the previous secret number. A secret number has been created, and this secret number, multiple auxiliary numbers, and a designated code are recorded on the card.

そして、各部屋で解錠するさいには、カードに記録され
ているデータを読取り、この読取った秘密番号と記憶装
置に記憶している秘密番号とが一致するかどうか、上記
の一定の関係にあるかどうかを検査し、カードの秘密番
号と記憶装置の秘密番号とが一致する場合および上記の
一定の関係にある場合に解錠し、かつカードの秘密番号
と記憶装置の秘密番号とが上記の一定の関係にある場合
にカードの秘密番号を記憶装置に記憶し秘密番号を更新
している。
When unlocking each room, the data recorded on the card is read, and it is determined whether the read secret number matches the secret number stored in the storage device based on the above certain relationship. If the secret number of the card and the secret number of the storage device match, and if there is a certain relationship as described above, the lock is unlocked. When a certain relationship exists, the secret number of the card is stored in the storage device and the secret number is updated.

したがって、利用者が変わるたびにカードの秘密番号を
変更することができ、秘密番号が一旦更新されるともは
や前回のカードを用いて解錠することはできないから、
前回以前のカードに対して特別の防犯対策を講する必要
がない。
Therefore, the secret number of the card can be changed every time the user changes, and once the secret number is updated, it can no longer be unlocked using the previous card.
There is no need to take special security measures for cards used before the last time.

また、変更後の秘密番号を中央制御装置から解錠装置に
伝送することな(カードの秘密番号が正規のものである
かどうかを判断することができるので、中央制御装置と
各解錠装置とをケーブルで接続する必要がなく、きわめ
て安価に設備L5る。
In addition, the changed secret number must not be transmitted from the central controller to the unlocking device (it can be determined whether the secret number on the card is legitimate or not, so the central controller and each unlocking device can It is not necessary to connect the equipment with a cable, and the equipment L5 can be installed at an extremely low cost.

さらに、複数の補助番号を用意し、これを指定コードで
選択しているから、上記の一定の関係が非常に分りに(
くかつ今回の秘密番号の演算に関与しない補助番号もカ
ードに記録されているので、防犯対策上きわめて有効で
ある。
Furthermore, since multiple auxiliary numbers are prepared and selected by specified codes, the above-mentioned certain relationships are very easy to understand (
Since the auxiliary number that is not involved in the calculation of the secret number is also recorded on the card, it is extremely effective in terms of crime prevention.

そして、予定された滞在期間だけカードを用いた部屋の
施錠解除が可能であって、上期滞在期間を経過した場合
には新たなカードが発行されない限り、同一カードを用
いて同一部屋の施錠を解錠することができない。
It is possible to unlock the same room using the card only during the scheduled stay period, and after the first half of the stay, the same room can be unlocked using the same card unless a new card is issued. cannot be locked.

したがって、予定の滞在期間が経過したのちにその部屋
の次の利用者がな(空室であっても、前回の利用者がそ
の部屋を料金を支払わずに使用するという事態を未然に
防止することができる。
Therefore, after the scheduled stay period has passed, the next user of the room will not be able to use the room (even if the room is vacant, this will prevent the situation where the previous user uses the room without paying). be able to.

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

第1図から第4図はカードの発行からこのカードによる
ドアの解錠までの概要を示す説明図、第5図はドアにお
ける錠装置および解錠装置め外観を示す斜視図、第6図
はカード発行機の内部構成を示すブロック図、第7図は
カード発行機の動作を示すフロー・チャート、第8図は
時計を用いて滞在日数を更新する場合の動作を示すフロ
ー・チャート、第9図は解錠装置の内部構成を示すブロ
ック図、第10図は解錠装置の動作を示す70−・チャ
ート、第11図は時計を用いて滞在日数を更新する場合
の動作を示す70−・チャートである。 6・・・・−・カード・リーグ、10・・・・・・解錠
装置、70″・・・・・演算回路、90・・・・・・R
AM。
Figures 1 to 4 are explanatory diagrams showing an overview of the process from issuing a card to unlocking the door using the card, Figure 5 is a perspective view showing the external appearance of the locking device and unlocking device on the door, and Figure 6 is FIG. 7 is a block diagram showing the internal configuration of the card issuing machine. FIG. 7 is a flow chart showing the operation of the card issuing machine. FIG. 8 is a flow chart showing the operation when updating the length of stay using a clock. The figure is a block diagram showing the internal configuration of the unlocking device, FIG. 10 is a 70- chart showing the operation of the unlocking device, and FIG. 11 is a 70- chart showing the operation when updating the length of stay using a clock. It is a chart. 6...- Card league, 10... Unlocking device, 70''... Arithmetic circuit, 90...R
A.M.

Claims (1)

【特許請求の範囲】 1 秘密番号と、複数の補助番号と、複数の補助番号の
うち少なくとも1つを選択するための指定コードと、滞
在期間とが記録されたカードを用いて施錠を解除する方
法であって、カードに記録されたデータを読取るカード
・リーダ、少なくとも秘密番号および滞在期間を記憶す
る記憶装置、ならびにカードから読取った秘密番号と上
記記憶装置に記憶されている秘密番号との対応関係を検
査する演算装置を備え、カードの秘密番号と上記記憶装
置の秘密番号とが上記複数の補助番号のうち指定コード
によって選択された補助番号を用いて関係づけられる一
定の関係にある場合に解錠するとともにカードから読取
った秘密番号および滞在期間を上記記憶装置に記憶し、
単位期間が経過するごとに上記記憶装置に記憶されてい
る滞在期間を単位期間で1だけ減じ、カードの秘密番号
と上記記憶装置の秘密番号とが一致し1かつ上記記憶装
置に記憶されている滞在期間が所定数を超えている場合
にも解錠する、カードを用いた解錠方法。 2 上記滞在期間が滞在日数であり、1日が経過するご
とに上記記憶装置に記憶されている滞在日数を1だけ減
する、特許請求の範囲第1項記載のカードを用いた解錠
方法。 3 計時装置を備え、この計時装置の出力により上記記
憶装置に記憶されている滞在期間を減じていく、特許請
求の範囲第1項記載のカードを用いた解錠方法。 4 上記滞在期間が滞在日数であり、上記カードとは別
の強制解錠用秘密番号が記録された強制解錠用カードを
用いて1日に1回定期的に解錠することを含む方法であ
って、上記記憶装置に強制解錠用秘密番号をあらかじめ
記憶しておき、カードの強制解錠用秘密番号が上記記憶
装置の強制解錠用秘密番号と一致した場合に解錠しかつ
上記記憶装置に記憶されている滞在日数を1だけ減する
、特許請求の範囲第1項記載のカードを用いた解錠方法
[Claims] 1. Unlocking using a card on which a secret number, a plurality of auxiliary numbers, a designated code for selecting at least one of the plurality of auxiliary numbers, and a period of stay are recorded. A method comprising: a card reader for reading data recorded on a card; a storage device for storing at least a secret number and a length of stay; and a correspondence between the secret number read from the card and the secret number stored in the storage device. comprising an arithmetic device that checks the relationship, and when the secret number of the card and the secret number of the storage device are in a certain relationship using an auxiliary number selected by a designated code from among the plurality of auxiliary numbers; At the same time as unlocking, the secret number read from the card and the period of stay are stored in the storage device,
Each time a unit period elapses, the stay period stored in the storage device is reduced by 1 per unit period, and the secret number of the card and the secret number of the storage device match 1 and are stored in the storage device. An unlocking method using a card that unlocks the door even if the length of stay exceeds a predetermined number. 2. The unlocking method using a card according to claim 1, wherein the period of stay is the number of days of stay, and the number of days of stay stored in the storage device is decreased by 1 every time one day passes. 3. An unlocking method using a card according to claim 1, which includes a clock device and reduces the length of stay stored in the storage device based on the output of the clock device. 4 The above period of stay is the number of days of stay, and the method includes periodically unlocking the door once a day using a forced unlocking card on which a secret number for forced unlocking that is different from the above card is recorded. A secret number for forced unlocking is stored in the storage device in advance, and when the secret number for forced unlocking of the card matches the secret number for forced unlocking of the storage device, the card is unlocked and the secret number for forced unlocking is stored in the storage device. An unlocking method using a card according to claim 1, which reduces the number of days of stay stored in the device by one.
JP8841180A 1980-06-27 1980-06-27 How to unlock using a card Expired JPS5921424B2 (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
JP8841180A JPS5921424B2 (en) 1980-06-27 1980-06-27 How to unlock using a card
US06/277,692 US4385231A (en) 1980-06-27 1981-06-26 Unlocking system for use with cards
DE8181302936T DE3162791D1 (en) 1980-06-27 1981-06-29 Unlocking system for use with cards
EP81302936A EP0043270B1 (en) 1980-06-27 1981-06-29 Unlocking system for use with cards
GB8119935A GB2078848B (en) 1980-06-27 1981-06-29 Electronic lock
GB08406240A GB2141850B (en) 1980-06-27 1984-03-09 A card issuing device for an electronic unlocking system
SG634/85A SG63485G (en) 1980-06-27 1985-08-31 Unlocking system for use with cards
HK947/85A HK94785A (en) 1980-06-27 1985-11-21 Unlocking system for use with cards
SG100585A SG100585G (en) 1980-06-27 1985-12-31 Unlocking system for use with card
HK227/86A HK22786A (en) 1980-06-27 1986-03-27 Unlocking system for use with cards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8841180A JPS5921424B2 (en) 1980-06-27 1980-06-27 How to unlock using a card

Publications (2)

Publication Number Publication Date
JPS5712777A JPS5712777A (en) 1982-01-22
JPS5921424B2 true JPS5921424B2 (en) 1984-05-19

Family

ID=13942049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8841180A Expired JPS5921424B2 (en) 1980-06-27 1980-06-27 How to unlock using a card

Country Status (1)

Country Link
JP (1) JPS5921424B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0137767B1 (en) * 1983-01-10 1990-06-13 FIGGIE INTERNATIONAL INC. (Delaware Corporation) Improved card reader for security system

Also Published As

Publication number Publication date
JPS5712777A (en) 1982-01-22

Similar Documents

Publication Publication Date Title
US4385231A (en) Unlocking system for use with cards
CA1217546A (en) Lock system
JPS63500254A (en) Method of operating security devices, security devices and data carriers used in the method of operation
US4868914A (en) Method for clearing unlocking key codes in an electronic locking device
JPS5921424B2 (en) How to unlock using a card
JPS5921423B2 (en) Unlocking equipment using a card
JPS61242287A (en) Common locker system
US4851828A (en) Electronic locking devices
JPS6210384A (en) Electronic lock apparatus
JPS5851593B2 (en) How to unlock using a card
WO1989001673A1 (en) Recording locks
JPS5921422B2 (en) Unlocking device using card
JPS58575A (en) Electronic lock
JP2001349111A (en) Coin-operated locker-system
JPH0726839A (en) Cash handling machine
JPH01256674A (en) Fingerprint collating type locker
JPS6211990A (en) Coin locker apparatus
JPS6046233B2 (en) Key and lock management device
EP0246903B1 (en) A method for clearing unlocking key codes in an electronic locking device
JPS5851592B2 (en) How to unlock a rental locker using a card
JPS6030377Y2 (en) Safe deposit box control device
JPH02171480A (en) Lock recovery system
KR20020007149A (en) A custody box device and method controlling user&#39;s fingerprint
JP2650517B2 (en) Key storage device
JPS5850264A (en) Management of room entrance