JP6546648B2 - Gaming machine - Google Patents

Gaming machine Download PDF

Info

Publication number
JP6546648B2
JP6546648B2 JP2017239404A JP2017239404A JP6546648B2 JP 6546648 B2 JP6546648 B2 JP 6546648B2 JP 2017239404 A JP2017239404 A JP 2017239404A JP 2017239404 A JP2017239404 A JP 2017239404A JP 6546648 B2 JP6546648 B2 JP 6546648B2
Authority
JP
Japan
Prior art keywords
command
open
door
door monitoring
storage area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2017239404A
Other languages
Japanese (ja)
Other versions
JP2018038900A (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.)
Universal Entertainment Corp
Original Assignee
Universal Entertainment Corp
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 Universal Entertainment Corp filed Critical Universal Entertainment Corp
Priority to JP2017239404A priority Critical patent/JP6546648B2/en
Publication of JP2018038900A publication Critical patent/JP2018038900A/en
Application granted granted Critical
Publication of JP6546648B2 publication Critical patent/JP6546648B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、遊技機に関する。   The present invention relates to a gaming machine.

一般的な遊技機は、本体と、この本体に対して開閉可能に取り付けられる扉とを備えている。   A typical gaming machine includes a main body and a door attached to the main body so as to be openable and closable.

このような遊技機に取り付けられ、不正に扉の開閉が行われたことを把握できるように、扉が開放されたこと及び開放された時刻並びに閉止されたこと及び閉止された時刻の情報(以下、「開閉履歴情報」と称する場合がある。)を記憶する扉監視装置(例えば、特許文献1に記載されている遊技関連機器鍵ユニット)が提案されている。   Information on when the door was opened and when it was opened as well as when it was closed and when it was closed (below) so that it was attached to such a game machine and it was possible to know that the door was opened and closed illegally , And a door monitoring device (for example, a game related device key unit described in Patent Document 1) that stores "open / close history information" may be proposed.

特開2003−159465号公報JP 2003-159465 A

しかしながら、特許文献1に記載されているような扉監視装置を備える遊技機において、扉監視装置に記憶されている開閉履歴情報を取得し、取得した開閉履歴情報を、遊技機に設けられた液晶表示装置に表示させる場合、表示させる開閉履歴情報の数が多いと、開閉履歴情報を視る者が注目している開閉履歴情報を見落としてしまう虞がある。   However, in the gaming machine provided with the door monitoring device as described in Patent Document 1, the opening / closing history information stored in the door monitoring device is acquired, and the acquired opening / closing history information is provided in the liquid crystal provided in the gaming machine. In the case of displaying on the display device, if the number of open / close history information to be displayed is large, there is a possibility that the person looking at the open / close history information may miss open / close history information focused on.

例えば、遊技店の閉店後から開店前までに不正な扉の開閉があったか否かを把握するために、遊技店の管理者が、当該期間における扉の開閉に係る開閉履歴情報に注目していても、遊技機に設けられた液晶表示装置に多数の開閉履歴情報が表示されると、注目している開閉履歴情報を見落としてしまう虞がある。   For example, in order to grasp whether or not there has been an incorrect opening and closing of a door after the closing of the gaming store and before the opening, the manager of the gaming store is paying attention to the opening and closing history information pertaining to the opening and closing of the door during that period. Also, when a large number of open / close history information is displayed on the liquid crystal display device provided in the gaming machine, there is a possibility that the open / close history information being focused may be overlooked.

本発明の目的は、開閉履歴情報の見落としを防止できる遊技機を提供することにある。   An object of the present invention is to provide a gaming machine capable of preventing oversight of opening / closing history information.

上記課題を解決するために、本発明では、以下のような構成の遊技機を提供する。   In order to solve the above problems, the present invention provides a gaming machine having the following configuration.

本体(例えば、後述のキャビネット2a)と、
前記本体に取り付けられた扉(例えば、後述のフロントドア2b)と、
前記扉の開放及び閉止状態を監視する扉監視装置(例えば、後述の24hドア監視ユニット63)と、
前記扉監視装置に接続された制御装置(例えば、後述の副制御回路101)と、
前記制御装置の指示に応じて情報の表示を行う表示手段(例えば、後述の液晶表示装置11)と、を備える遊技機であって、
前記扉監視装置は、
前記遊技機の電源が切られた状態であっても常に、前記扉が開放されたこと及び開放された時刻並びに閉止されたこと及び閉止された時刻の情報からなる開閉履歴情報を記憶する開閉履歴情報記憶手段(例えば、後述のEEPROM205)を有し、
前記制御装置は、
前記開閉履歴情報記憶手段が記憶した開閉履歴情報を取得する開閉履歴取得手段(例えば、後述のサブCPU102)と、
第1の期間を設定する第1期間設定手段(例えば、後述のサブCPU102)と、
第2の期間を設定する第2期間設定手段(例えば、後述のサブCPU102)と、
前記開閉履歴取得手段が前記扉監視装置から取得した前記開閉履歴情報内で前記期間設定手段が設定した前記第1の期間内の前記扉の開放又は閉止状態に係る前記開閉履歴情報を抽出する開閉履歴抽出手段(例えば、後述のサブCPU102)と、を有し、
前記遊技機の起動時に、前記開閉履歴抽出手段が抽出した前記開閉履歴情報を前記表示手段に前記第2の期間表示させ、
前記第1の期間として、前記遊技機の電源が切られている時間を設定可能であり、
前記第2の期間として、前記遊技機の起動時から前記開閉履歴情報を前記表示手段に表示させる期間が設定可能である
ことを特徴とする遊技機。
A main body (for example, a cabinet 2a described later),
A door (for example, a front door 2b described later) attached to the body;
A door monitoring device (for example, a 24h door monitoring unit 63 described later) that monitors the open and closed states of the door;
A control device (for example, a sub control circuit 101 described later) connected to the door monitoring device;
And a display unit (for example, a liquid crystal display device 11 described later) for displaying information in accordance with an instruction from the control device.
The door monitoring device is
An open / close history for storing open / close history information including information on when the door is open and when the door is open and when the power is off, and when the door is open and closed. Has information storage means (for example, an EEPROM 205 described later);
The controller is
Opening and closing history acquisition means (for example, a sub CPU 102 described later) for acquiring the opening and closing history information stored in the opening and closing history information storage means;
A first period setting unit (for example, a sub CPU 102 described later) for setting a first period;
A second period setting unit (for example, a sub CPU 102 described later) which sets a second period;
Opening and closing of the opening and closing history information according to the open or closed state of the door within the first period set by the period setting unit in the opening and closing history information acquired by the opening and closing history acquiring unit from the door monitoring device History extraction means (for example, a sub CPU 102 described later);
At start-up of the gaming machine, the display means displays the open / close history information extracted by the open / close history extraction means on the display means for the second period,
As the first period, a time during which the gaming machine is turned off can be set,
A game machine characterized in that a period for displaying the open / close history information on the display means can be set from the activation of the game machine as the second period.

本発明によれば、開閉履歴情報の見落としを防止することができる。   According to the present invention, it is possible to prevent oversight of opening / closing history information.

本発明の一実施形態の遊技機における機能フローを説明する説明図である。It is an explanatory view explaining a functional flow in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における外観構成例を示す斜視図である。It is a perspective view showing an example of appearance composition in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを閉じた状態の斜視図である。It is an internal structure in the game machine of one Embodiment of this invention, and is a perspective view of the state which closed the middle door. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを開けた状態の斜視図である。It is an internal structure in the game machine of one Embodiment of this invention, and is a perspective view of the state which opened the middle door. 本発明の一実施形態の遊技機におけるキャビネットの内部を示す説明図である。It is an explanatory view showing the inside of the cabinet in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるフロントドアの裏面側を示す説明図である。It is an explanatory view showing the back side of the front door in the game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御系を示すブロック図である。It is a block diagram showing a control system in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における主制御回路の構成例を示すブロック図である。It is a block diagram showing an example of composition of a main control circuit in a game machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における副制御回路の構成例を示すブロック図である。It is a block diagram showing an example of composition of a sub control circuit in a game machine of one embodiment of the present invention. 本発明の一実施形態における24hドア監視ユニットの構成例を示すブロック図である。It is a block diagram showing an example of composition of 24h door surveillance unit in one embodiment of the present invention. 本発明の一実施形態におけるEEPROMのメモリーマップである。It is a memory map of EEPROM in one embodiment of the present invention. 本発明の一実施形態におけるRAMのメモリーマップである。It is a memory map of RAM in one embodiment of the present invention. 本発明の一実施形態における特権コマンドを説明するための図である。It is a figure for demonstrating the privilege command in one Embodiment of this invention. 本発明の一実施形態における一般コマンドを説明するための図である。It is a figure for demonstrating the general command in one Embodiment of this invention. 本発明の一実施形態における通信フォーマットを説明するための図であり、Aは通信フォーマットの概要を示し、Bは24hドア監視ユニットからホスト機器へ乱数を送信する際の通信データの態様の一例を示す。It is a figure for demonstrating the communication format in one Embodiment of this invention, A shows the outline | summary of a communication format, B shows an example of the aspect of communication data at the time of transmitting a random number to a host apparatus from a 24h door monitoring unit. Show. 本発明の一実施形態におけるシーケンステーブルの一例を示す図である。It is a figure which shows an example of the sequence table in one Embodiment of this invention. 本発明の一実施形態における秘密鍵設定時の処理について説明するための図である。It is a figure for demonstrating the process at the time of the secret key setting in one Embodiment of this invention. 本発明の一実施形態における起動時〜監視中の処理について説明するための図である。It is a figure for demonstrating the process at the time of starting-monitoring in one Embodiment of this invention. 本発明の一実施形態における第1警告表示処理で表示される警告画面の例を示す図である。It is a figure which shows the example of the warning screen displayed by the 1st warning display process in one Embodiment of this invention. 本発明の一実施形態における第3警告表示処理で表示される警告画面の例を示す図である。It is a figure which shows the example of the warning screen displayed by the 3rd warning display process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットメイン処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring unit main process in one Embodiment of this invention. 本発明の一実施形態におけるポート入力処理の例を示すフローチャートである。It is a flowchart which shows the example of the port input process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視状態検知処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring state detection process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視記録判定処理の例を示すフローチャートである。It is a flow chart which shows the example of the door surveillance record judging processing in one embodiment of the present invention. 本発明の一実施形態における第1検知結果格納領域及び第2検知結果格納領域に開閉履歴情報を記憶するタイミングを示すタイミングチャートである。It is a timing chart which shows the timing which memorizes opening and closing history information in the 1st detection result storage area and the 2nd detection result storage area in one embodiment of the present invention. 本発明の一実施形態における受信割込み処理の例を示すフローチャートである。It is a flowchart which shows the example of the reception interruption process in one Embodiment of this invention. 本発明の一実施形態における受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the reception process in one Embodiment of this invention. 本発明の一実施形態における特権コマンド受信時処理の例を示すフローチャートである。It is a flowchart which shows the example of processing at the time of the privilege command reception in one Embodiment of this invention. 本発明の一実施形態における一般コマンド受信時処理の例を示すフローチャートである。It is a flowchart which shows the example of the process at the time of the general command reception in one Embodiment of this invention. 本発明の一実施形態における乱数コマンド受信時処理の例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of random number command reception in one embodiment of the present invention. 本発明の一実施形態におけるログインコマンド受信時処理の例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of login command reception in one embodiment of the present invention. 本発明の一実施形態における送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the transmission process in one Embodiment of this invention. 本発明の一実施形態における特権アンサ送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the privilege answer transmission process in one Embodiment of this invention. 本発明の一実施形態における一般アンサ送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the general answer transmission process in one Embodiment of this invention. 本発明の一実施形態におけるホールメニュータスクの例を示すフローチャートである。It is a flowchart which shows the example of the hall | hole menu task in one Embodiment of this invention. 本発明の一実施形態におけるホールメニュー処理の例を示すフローチャートである。It is a flowchart which shows the example of the hall | hole menu process in one Embodiment of this invention. 本発明の一実施形態における監視履歴画面の例を示す図である。It is a figure which shows the example of the monitoring log | history screen in one Embodiment of this invention. 本発明の一実施形態における警告表示設定画面の例を示す図である。It is a figure which shows the example of the warning display setting screen in one Embodiment of this invention. 本発明の一実施形態における警告表示画面の例を示す図である。It is a figure which shows the example of the warning display screen in one Embodiment of this invention. 本発明の一実施形態におけるドア監視タスクの例を示すフローチャートである。5 is a flowchart illustrating an example of a door monitoring task in an embodiment of the present invention. 本発明の一実施形態におけるドア監視送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring transmission process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視特権コマンド送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring privilege command transmission process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視一般コマンド送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring general command transmission process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視受信割込み処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring reception interruption process in one Embodiment of this invention. 本発明の一実施形態におけるドア監視受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring reception process in one Embodiment of this invention. 本発明の一実施形態における特権アンサ受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the privilege answer reception process in one Embodiment of this invention. 本発明の一実施形態における一般アンサ受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the general answer reception process in one Embodiment of this invention. 本発明の一実施形態における乱数受信時処理の例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of random number reception in one embodiment of the present invention. 本発明の一実施形態におけるログイン受信時処理の例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of login reception in one embodiment of the present invention. 本発明の一実施形態における時計読出受信時処理の例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of watch reading reception in one embodiment of the present invention.

以下、本発明の一実施形態を示す遊技機であるパチスロについて、図1〜図51を参照しながら説明する。   Hereinafter, a pachislot machine which is a gaming machine showing an embodiment of the present invention will be described with reference to FIGS.

<機能フロー>
まず、図1を参照して、パチスロの機能フローについて説明する。
本実施の形態のパチスロでは、遊技を行うための遊技媒体としてメダルを用いる。なお、遊技媒体としては、メダル以外にも、コイン、遊技球、遊技用のポイントデータ又はトークン等を適用することもできる。
<Function flow>
First, referring to FIG. 1, the functional flow of the pachislot machine will be described.
In the pachislot machine of the present embodiment, medals are used as game media for playing a game. In addition to the medals, coins, gaming balls, point data or tokens for gaming may be applied as gaming media.

遊技者によりメダルが投入され、スタートレバーが操作されると、予め定められた数値の範囲(例えば、0〜65535)の乱数から1つの値(以下、乱数値)が抽出される。   When medals are inserted by the player and the start lever is operated, one value (hereinafter, random number value) is extracted from random numbers in a predetermined numerical value range (for example, 0 to 65535).

内部抽籤手段は、抽出された乱数値に基づいて抽籤を行い、内部当籤役を決定する。この内部抽籤手段は、後述する主制御回路が担う。内部当籤役の決定により、後述の入賞判定ラインに沿って表示を行うことを許可する図柄の組合せが決定される。なお、図柄の組合せの種別としては、メダルの払い出し、再遊技の作動、ボーナスの作動等といった特典が遊技者に与えられる「入賞」に係るものと、それ以外のいわゆる「ハズレ」に係るものとが設けられている。   The internal lottery means performs lottery based on the extracted random number value to determine an internal winning combination. The internal lottery means is carried by a main control circuit described later. By the determination of the internal winning combination, a combination of symbols permitting display along the later-described winning determination line is determined. In addition, as a classification of combination of the symbol, it is something which relates to the “prize” to which the player is given a privilege such as payout of medals, operation of replay, activation of bonus, etc. Is provided.

また、スタートレバーが操作されると、複数のリールの回転が行われる。その後、遊技者により所定のリールに対応するストップボタンが押されると、リール停止制御手段は、内部当籤役とストップボタンが押されたタイミングとに基づいて、該当するリールの回転を停止する制御を行う。このリール停止制御手段は、後述する主制御回路が担う。   In addition, when the start lever is operated, rotation of the plurality of reels is performed. Thereafter, when the player presses the stop button corresponding to the predetermined reel, the reel stop control means performs control to stop the rotation of the corresponding reel based on the internal winning combination and the timing when the stop button is pressed. Do. The reel stop control means is carried by a main control circuit described later.

パチスロでは、基本的に、ストップボタンが押されたときから規定時間(190msec又は75msec)内に、該当するリールの回転を停止する制御が行われる。本実施形態では、この規定時間内にリールの回転に伴って移動する図柄の数を「滑り駒数」と呼ぶ。規定期間が190msecである場合には、滑り駒数の最大数を図柄4個分に定め、規定期間が75msecである場合には、滑り駒数の最大数を図柄1個分に定める。   In the pachi slot, basically, control is performed to stop the rotation of the corresponding reel within a prescribed time (190 msec or 75 msec) from when the stop button is pressed. In the present embodiment, the number of symbols moving with the rotation of the reel within this prescribed time is referred to as the “number of sliding symbols”. If the prescribed period is 190 msec, the maximum number of sliding symbols is determined to be four symbols, and if the prescribed period is 75 msec, the maximum number of sliding symbols is determined to be one symbol.

リール停止制御手段は、入賞に係る図柄の組合せ表示を許可する内部当籤役が決定されているときは、通常、190msec(図柄4コマ分)の規定時間内に、その図柄の組合せが入賞判定ラインに沿って極力表示されるようにリールの回転を停止させる。また、リール停止制御手段は、例えば、第2種特別役物であるチャレンジボーナス(CB)及びCBを連続して作動させるミドルボーナス(MB)の動作時には、1つ以上のリールに対して、規定時間75msec(図柄1コマ分)内に、その図柄の組合せが入賞判定ラインに沿って極力表示されるようにリールの回転を停止させる。さらに、リール停止制御手段は、遊技状態に対応する各種規定時間を利用して、内部当籤役によってその表示が許可されていない図柄の組合せが入賞判定ラインに沿って表示されないようにリールの回転を停止させる。   When an internal winning combination that permits combination display of symbols relating to winning is determined, the reel stop control means normally determines that a combination of symbols has a winning determination line within a prescribed time of 190 msec (for four symbols of symbols). Stop the rotation of the reel so that it is displayed as much as possible. In addition, the reel stop control means specifies, for example, for one or more reels, at the time of operation of a bonus bonus (CB) which is a second kind special character and a middle bonus (MB) for operating CB continuously. The rotation of the reel is stopped so that the combination of the symbols is displayed as much as possible along the winning determination line within a time of 75 msec (for one symbol). Furthermore, the reel stop control means uses various prescribed times corresponding to the game state to rotate the reel so that the combination of symbols whose display is not permitted by the internal winning combination is not displayed along the winning determination line. Stop it.

こうして、複数のリールの回転がすべて停止されると、入賞判定手段は、入賞判定ラインに沿って表示された図柄の組合せが、入賞に係るものであるか否かの判定を行う。この入賞判定手段は、後述する主制御回路が担う。入賞判定手段により入賞に係るものであるとの判定が行われると、メダルの払い出し等の特典が遊技者に与えられる。パチスロでは、以上のような一連の流れが1回の遊技として行われる。   Thus, when the rotations of the plurality of reels are all stopped, the prize determination means determines whether or not the combination of the symbols displayed along the prize determination line relates to a prize. The winning determination means is carried by a main control circuit described later. When it is determined by the winning determination means that the winning is determined, a bonus such as medal payout is given to the player. In pachislot, the above series of flows are performed as one game.

また、パチスロでは、前述した一連の流れの中で、液晶表示装置などの表示装置により行う映像の表示、各種ランプにより行う光の出力、スピーカにより行う音の出力、或いはこれらの組合せを利用して様々な演出が行われる。   Moreover, in the pachislot, in the above-described series of flows, display of an image performed by a display device such as a liquid crystal display device, output of light performed by various lamps, output of sound performed by a speaker, or a combination thereof is used. Various effects are performed.

スタートレバーが操作されると、上述した内部当籤役の決定に用いられた乱数値とは別に、演出用の乱数値(以下、演出用乱数値)が抽出される。演出用乱数値が抽出されると、演出内容決定手段は、内部当籤役に対応づけられた複数種類の演出内容の中から今回実行するものを抽籤により決定する。この演出内容決定手段は、後述する副制御回路が担う。   When the start lever is operated, a random number for presentation (hereinafter, random number for presentation) is extracted separately from the random number used to determine the internal winning combination described above. When the effect random number value is extracted, the effect content determination means determines by lottery the one to be executed this time out of a plurality of types of effect content associated with the internal winning combination. The effect content determination means is carried by a sub control circuit described later.

演出内容が決定されると、演出実行手段は、リールの回転開始時、各リールの回転停止時、入賞の有無の判定時等の各契機に連動させて対応する演出を実行する。このように、パチスロでは、内部当籤役に対応づけられた演出内容を実行することによって、決定された内部当籤役(言い換えると、狙うべき図柄の組合せ)を知る機会又は予想する機会が遊技者に提供され、遊技者の興味の向上を図ることができる。   When the contents of the effect are determined, the effect executing means interlocks with respective triggers such as the start of the rotation of the reels, the stop of the rotations of the respective reels, the determination of the presence or absence of a prize, etc. Thus, in Pachislot, the player has an opportunity or opportunity to know the determined internal winning combination (in other words, the combination of the symbols to be aimed) by executing the presentation content associated with the internal winning combination. Thus, the player's interest can be improved.

<パチスロの構造>
次に、図2〜図6を参照して、一実施形態におけるパチスロ1の構造について説明する。
<Structure of Pachislot>
Next, the structure of the pachi slot 1 according to one embodiment will be described with reference to FIGS.

[外観構造]
図2は、パチスロ1の外部構造を示す斜視図である。
[Appearance structure]
FIG. 2 is a perspective view showing the external structure of the pachi slot 1.

図2に示すように、パチスロ1は、外装体2を備えている。外装体2は、後述するホッパー装置51やメダル補助収納庫52等(図5参照)を収容するキャビネット(本体)2aと、キャビネット2aに対して開閉可能に取り付けられるフロントドア(扉)2bとを有している。
キャビネット2aの両側面には、把手7が設けられている(図2では一側面の把手7のみを示す)。この把手7は、パチスロ1を運搬するときに手をかける凹部である。
As shown in FIG. 2, the pachi slot 1 includes an exterior body 2. The exterior body 2 includes a cabinet (main body) 2a for accommodating a hopper device 51 described later, a medal auxiliary storage 52 and the like (see FIG. 5), and a front door (door) 2b attached to the cabinet 2a. Have.
Handles 7 are provided on both side surfaces of the cabinet 2a (only the handle 7 on one side is shown in FIG. 2). The handle 7 is a concave portion which is used when carrying the pachislot 1.

外装体2の内部には、3つのリール3L,3C,3Rが横並びに設けられている。以下、各リール3L,3C,3Rを、それぞれ左リール3L、中リール3C、右リール3Rという。各リール3L,3C,3Rは、円筒状に形成されたリール本体と、リール本体の周面に装着された透光性のシート材を有している。シート材の表面には、複数(例えば20個)の図柄が周方向に沿って所定の間隔をあけて描かれている。   Inside the exterior body 2, three reels 3L, 3C, 3R are provided side by side. Hereinafter, the reels 3L, 3C, and 3R are referred to as a left reel 3L, a middle reel 3C, and a right reel 3R, respectively. Each of the reels 3L, 3C, 3R has a cylindrical reel body and a translucent sheet material mounted on the peripheral surface of the reel body. On the surface of the sheet material, a plurality of (for example, 20) designs are drawn at predetermined intervals along the circumferential direction.

フロントドア2bは、ドア本体9と、フロントパネル10と、表示装置の一具体例を示す液晶表示装置11(表示手段,報知手段)とを備えている。   The front door 2b includes a door body 9, a front panel 10, and a liquid crystal display device 11 (display means, notification means) showing one specific example of the display device.

ドア本体9は、ヒンジ(図示省略)を用いてキャビネット2aに取り付けられており、キャビネット2aの開口部を開閉する。ヒンジは、パチスロ1の前方からドア本体9を見た場合に、ドア本体9における左側の端部に設けられている。液晶表示装置11は、ドア本体9の上部に取り付けられている。この液晶表示装置11は、表示部11aを備えており、液晶表示装置11を用いて映像の表示による演出が実行される。   The door body 9 is attached to the cabinet 2a using a hinge (not shown), and opens and closes the opening of the cabinet 2a. The hinge is provided at the left end of the door body 9 when the door body 9 is viewed from the front of the pachi slot 1. The liquid crystal display device 11 is attached to the top of the door body 9. The liquid crystal display device 11 includes a display unit 11 a, and the liquid crystal display device 11 is used to execute effects by displaying an image.

フロントパネル10は、液晶表示装置11の表示部11a側に重畳して配置され、液晶表示装置11の表示部11aを露出させるパネル開口10aを有する枠状に形成されている。フロントパネル10には、ランプ群18と、装飾部材10L,10Rが設けられている(装飾部材10Rは図示省略)。ランプ群18は、LED(Light Emitting Diode)等で構成され、演出内容に対応するパターンで、光を点灯及び消灯する。   The front panel 10 is disposed so as to overlap the display unit 11 a side of the liquid crystal display device 11, and is formed in a frame shape having a panel opening 10 a that exposes the display unit 11 a of the liquid crystal display device 11. The front panel 10 is provided with a lamp group 18 and decorative members 10L and 10R (the decorative member 10R is not shown). The lamp group 18 is configured of an LED (Light Emitting Diode) or the like, and lights and extinguishes light in a pattern corresponding to the contents of effects.

フロントドア2bの中央には、台座部12が形成されている。この台座部12には、図柄表示領域4と、遊技者による操作の対象となる各種装置が設けられている。   A pedestal 12 is formed at the center of the front door 2b. The pedestal portion 12 is provided with a symbol display area 4 and various devices to be operated by the player.

図柄表示領域4は、正面から見て3つのリール3L,3C,3Rに重畳する手前側に配置されており、3つのリール3L,3C,3Rに対応して設けられている。この図柄表示領域4は、表示窓としての機能を果たすものであり、その背後に設けられた各リール3L,3C,3Rを透過することが可能な構成になっている。以下、図柄表示領域4を、リール表示窓4という。   The symbol display area 4 is disposed on the front side overlapping the three reels 3L, 3C, 3R when viewed from the front, and is provided corresponding to the three reels 3L, 3C, 3R. The symbol display area 4 serves as a display window, and is configured to be able to transmit the respective reels 3L, 3C, 3R provided behind it. Hereinafter, the symbol display area 4 is referred to as a reel display window 4.

リール表示窓4は、その背後に設けられたリール3L,3C,3Rの回転が停止されたとき、各リール3L,3C,3Rの複数種類の図柄のうち、その枠内における上段、中段及び下段の各領域にそれぞれ1個の図柄(合計で3個)を表示する。本実施の形態では、リール表示窓4の上段、中段及び下段からなる3つの領域のうち予め定められたいずれかを組み合わせて構成される擬似的なラインを、入賞か否かの判定を行う対象となるライン(入賞判定ライン)として定義する。   When rotation of the reels 3L, 3C and 3R provided behind the reel display window 4 is stopped, the upper, middle and lower stages in the frame of the plural types of symbols of the respective reels 3L, 3C and 3R One symbol (3 in total) is displayed in each area of. In the present embodiment, it is determined whether or not a pseudo line constituted by combining any one of three predetermined areas among the upper, middle and lower regions of the reel display window 4 is to be won or not. It defines as a line (winning determination line) which becomes.

リール表示窓4は、台座部12に設けられた枠部材13により形成されている。この枠部材13は、リール表示窓4と、情報表示窓14と、ストップボタン取付部15を有している。   The reel display window 4 is formed by a frame member 13 provided on the pedestal 12. The frame member 13 has a reel display window 4, an information display window 14, and a stop button mounting portion 15.

情報表示窓14は、リール表示窓4の下部に連続して設けられており、上方に向かって開口している。すなわち、リール表示窓4と情報表示窓14は、連続する1つの開口部として形成されている。この情報表示窓14及びリール表示窓4は、透明の窓カバー16によって覆われている。   The information display window 14 is provided continuously to the lower part of the reel display window 4 and opens upward. That is, the reel display window 4 and the information display window 14 are formed as one continuous opening. The information display window 14 and the reel display window 4 are covered by a transparent window cover 16.

窓カバー16は、枠部材13の内面側に配置されており、フロントドア2bの前面側から取り外し不可能になっている。また、枠部材13は、窓カバー16を挟んで情報表示窓14の開口に対向するシート載置部17を有している。そして、シート載置部17と窓カバー16との間には、遊技に関する情報が記載されたシート部材(情報シート)が配置されている。したがって、情報シートは、凹凸や隙間の無い滑らかな表面を有する窓カバー16により覆われている。   The window cover 16 is disposed on the inner surface side of the frame member 13 and can not be removed from the front surface side of the front door 2b. Further, the frame member 13 has a sheet placement portion 17 facing the opening of the information display window 14 with the window cover 16 interposed therebetween. Then, between the sheet placement unit 17 and the window cover 16, a sheet member (information sheet) in which information about the game is described is disposed. Therefore, the information sheet is covered by the window cover 16 having a smooth surface without unevenness and gaps.

情報シートの取付部を構成する窓カバー16は、フロントドア2bの前面側から取り外し不可能であり、凹凸や隙間の無い滑らかな表面であるため、情報シートの取付部を利用して、パチスロ1の内部にアクセスする不正行為を防ぐことができる。   The window cover 16 constituting the mounting portion of the information sheet can not be removed from the front side of the front door 2b, and is a smooth surface without unevenness or gaps. Access to the inside of can be prevented.

ストップボタン取付部15は、情報表示窓14の下方に設けられており、正面を向いた平面に形成されている。このストップボタン取付部15には、ストップボタン19L,19C,19Rが貫通する貫通孔が設けられている。ストップボタン19L,19C,19Rは、3つのリール3L,3C,3Rのそれぞれに対応づけられ、対応するリールの回転を停止するために設けられる。以下、ストップボタン19L,19C,19Rを、それぞれ左ストップボタン19L、中ストップボタン19C、右ストップボタン19Rという。   The stop button attachment portion 15 is provided below the information display window 14 and is formed in a plane facing the front. The stop button mounting portion 15 is provided with a through hole through which the stop buttons 19L, 19C, 19R pass. The stop buttons 19L, 19C, 19R are associated with the three reels 3L, 3C, 3R, respectively, and are provided to stop the rotation of the corresponding reels. Hereinafter, the stop buttons 19L, 19C, and 19R are referred to as a left stop button 19L, a middle stop button 19C, and a right stop button 19R, respectively.

ストップボタン19L,19C,19Rは、遊技者による操作の対象となる各種装置の一例を示す。また、台座部12には、遊技者による操作の対象となる各種装置として、メダル投入口21、BETボタン22、スタートレバー23が設けられている。   The stop buttons 19L, 19C, 19R show examples of various devices to be operated by the player. Further, the pedestal portion 12 is provided with a medal insertion slot 21, a BET button 22, and a start lever 23 as various devices to be operated by the player.

メダル投入口21は、遊技者によって外部から投下されるメダルを受け入れるために設けられる。メダル投入口21に受け入れられたメダルは、予め定められた規定数を上限として1回の遊技に投入されることとなり、規定数を超えた分はパチスロ1の内部に預けることが可能となる(いわゆるクレジット機能)。   The medal insertion slot 21 is provided to receive medals dropped from the outside by the player. The medals accepted in the medal insertion slot 21 will be inserted into one game with the predetermined number as a upper limit, and it will be possible to deposit the number exceeding the predetermined number inside the pachislot 1 ( So-called credit function).

BETボタン22は、パチスロ1の内部に預けられているメダルから1回の遊技に投入する枚数を決定するために設けられる。スタートレバー23は、全てのリール(3L,3C,3R)の回転を開始するために設けられる。   The BET button 22 is provided to determine the number of medals to be inserted into one game from the medals deposited inside the pachislot 1. The start lever 23 is provided to start the rotation of all the reels (3L, 3C, 3R).

また、フロントドア2bを正面から見てリール表示窓4の左側方には、7セグメントLED(Light Emitting Diode)からなる7セグ表示器24が設けられている。この7セグ表示器24は、特典として遊技者に対して払い出すメダルの枚数(以下、払出枚数)、パチスロ内部に預けられているメダルの枚数(以下、クレジット枚数)等の情報をデジタル表示する。   Further, on the left side of the reel display window 4 when the front door 2b is viewed from the front, a 7-segment display 24 formed of a 7-segment LED (Light Emitting Diode) is provided. The 7-segment display 24 digitally displays information such as the number of medals to be paid out to the player as a bonus (hereinafter, the number of payouts) and the number of medals deposited inside the pachislot (hereinafter, the number of credits). .

また、フロントドア2bを正面から見てリール表示窓4の左側方の7セグ表示器24の上部には、エンターボタン25と、セレクトボタン26が設けられている。エンターボタン25及びセレクトボタン26は、液晶表示装置11に表示された各種画面における選択可能な複数の項目の内、任意の項目を選択するために設けられる。セレクトボタン26の押下に応じて、表示されている複数の項目の内、一つの項目を指定するためのカーソルの位置や、ハイライト表示される項目が変更される。また、エンターボタン25の押下に応じて、指定された項目が選択される。   Further, an enter button 25 and a select button 26 are provided on the upper side of the 7-segment display 24 on the left side of the reel display window 4 when the front door 2b is viewed from the front. The enter button 25 and the select button 26 are provided to select any of a plurality of selectable items on various screens displayed on the liquid crystal display device 11. In response to the depression of the select button 26, the position of the cursor for designating one of the plurality of displayed items, and the item to be highlighted are changed. Also, in response to the depression of the enter button 25, the designated item is selected.

フロントドア2bを正面から見て台座部12の左側には、精算ボタン27が設けられている。この精算ボタン27は、パチスロ1の内部に預けられている外部に引き出す(排出する)ために設けられる。台座部12の下方には、腰部パネルユニット31が設けられている。腰部パネルユニット31は、任意の画像が描かれた装飾パネルと、この装飾パネルを背面側から照明するための光を出射する光源を有している。   A settlement button 27 is provided on the left side of the pedestal 12 when the front door 2 b is viewed from the front. The settlement button 27 is provided for pulling out (discharging) to the outside deposited inside the pachislot 1. A waist panel unit 31 is provided below the pedestal 12. The waist panel unit 31 has a decorative panel on which an arbitrary image is drawn and a light source for emitting light for illuminating the decorative panel from the back side.

腰部パネルユニット31の下方には、メダル払出口32と、スピーカ用孔33L,33Rと、メダルトレイユニット34が設けられている。メダル払出口32は、後述のホッパー装置51の駆動により排出されるメダルを外部に導く。メダル払出口32から排出されたメダルは、メダルトレイユニット34に貯められる。スピーカ用孔33L,33Rは、演出内容に応じた効果音や楽曲等の音を出力するために設けられている。   Below the lumbar panel unit 31, a medal payout port 32, speaker holes 33L and 33R, and a medal tray unit 34 are provided. The medal payout opening 32 guides a medal discharged by the driving of a hopper device 51 described later to the outside. The medals discharged from the medal payout opening 32 are stored in the medal tray unit 34. The speaker holes 33L and 33R are provided to output sounds such as sound effects and music according to the contents of the effect.

[内部構造]
図3及び図4は、パチスロ1の内部構造を示す斜視図である。この図3では、フロントドア2bが開放され、フロントドア2bの裏面側に設けられたミドルドア41がフロントドア2bに対して閉じた状態を示している。また、図4では、フロントドア2bが開放され、ミドルドア41がフロントドア2bに対して開いた状態を示している。
また、図5は、キャビネット2aの内部を示す説明図である。図6は、フロントドア2bの裏面側を示す説明図である。
[Internal structure]
3 and 4 are perspective views showing the internal structure of the pachi slot 1. In FIG. 3, the front door 2b is opened, and the middle door 41 provided on the back side of the front door 2b is closed with respect to the front door 2b. Moreover, in FIG. 4, the front door 2b is open | released and the state which the middle door 41 opened with respect to the front door 2b is shown.
FIG. 5 is an explanatory view showing the inside of the cabinet 2a. FIG. 6 is an explanatory view showing the back side of the front door 2b.

キャビネット2aは、上面板20aと、底面板20bと、左右の側面板20c,20dと、背面板20eを有している(図5参照)。キャビネット2a内部の上側には、キャビネット側スピーカ42が配設されている。このキャビネット側スピーカ42は、取付ブラケット43L,43Rを介してキャビネット2aの背面板20eに取り付けられている。キャビネット側スピーカ42は、例えば、効果音を出力するためのスピーカである。   The cabinet 2a has a top plate 20a, a bottom plate 20b, left and right side plates 20c and 20d, and a back plate 20e (see FIG. 5). The cabinet side speaker 42 is arrange | positioned by the upper side inside cabinet 2a. The cabinet-side speaker 42 is attached to the back plate 20e of the cabinet 2a via the mounting brackets 43L and 43R. The cabinet side speaker 42 is, for example, a speaker for outputting sound effects.

キャビネット2a内部を正面から見て、キャビネット側スピーカ42の左側方には、キャビネット側中継基板44が配設されている。このキャビネット側中継基板44は、キャビネット2aの左側面板20cに取り付けられている。キャビネット側中継基板44は、ミドルドア41(図3及び図4参照)に取り付けられた後述する主制御基板71(図7参照)と、ホッパー装置51、メダル補助収納庫スイッチ(図示省略)、メダル払出カウントスイッチ(図示省略)とを接続する配線の中継を行う。   The cabinet side relay board 44 is disposed on the left side of the cabinet side speaker 42 when the inside of the cabinet 2a is viewed from the front. The cabinet side relay board 44 is attached to the left side plate 20c of the cabinet 2a. The cabinet side relay board 44 includes a main control board 71 (see FIG. 7) described later attached to the middle door 41 (see FIGS. 3 and 4), a hopper device 51, a medal auxiliary storage switch (not shown), and medal payout The relay of the wiring connecting the count switch (not shown) is performed.

キャビネット2a内部の中央部には、キャビネット側スピーカ42による音の出力を制御するアンプ基板45が配設されている。このアンプ基板45は、左右の側面板20c,20dに固定された取付棚46に取り付けられている。   At a central portion inside the cabinet 2a, an amplifier substrate 45 for controlling the output of sound from the cabinet side speaker 42 is disposed. The amplifier substrate 45 is attached to a mounting shelf 46 fixed to the left and right side plates 20c, 20d.

また、キャビネット2a内部を正面から見て、アンプ基板45の右側には、外部集中端子板47が配設されている(図5参照)。この外部集中端子板47は、キャビネット2aの右側面板20dに取り付けられている。外部集中端子板47は、メダル投入信号、メダル払出信号及びセキュリティー信号などの信号をパチスロ1の外部へ出力するために設けられている。   Further, when the inside of the cabinet 2a is viewed from the front, an external concentrated terminal plate 47 is disposed on the right side of the amplifier substrate 45 (see FIG. 5). The external concentrated terminal plate 47 is attached to the right side plate 20d of the cabinet 2a. The external concentrated terminal plate 47 is provided to output signals such as a medal insertion signal, a medal payout signal, and a security signal to the outside of the pachi-slot 1.

キャビネット2a内部を正面から見て、アンプ基板45の左側には、サブ電源装置48が配設されている。このサブ電源装置48は、キャビネット2aの左側面板20cに取り付けられている。サブ電源装置48は、交流電圧100Vの電力を後述する電源装置53に供給する。また、交流電圧100Vの電力を直流電圧の電力に変換して、アンプ基板45に供給する。   The sub power supply 48 is disposed on the left side of the amplifier substrate 45 when the inside of the cabinet 2a is viewed from the front. The sub power supply device 48 is attached to the left side plate 20c of the cabinet 2a. The sub power supply device 48 supplies the power of the AC voltage 100 V to the power supply device 53 described later. Further, the power of AC voltage 100 V is converted to the power of DC voltage and supplied to the amplifier substrate 45.

キャビネット2aの内部の下側には、メダル払出装置(以下、ホッパー装置)51と、メダル補助収納庫52と、電源装置53が配設されている。   On the lower side inside the cabinet 2a, a medal payout device (hereinafter, a hopper device) 51, a medal auxiliary storage 52, and a power supply 53 are disposed.

ホッパー装置51は、キャビネット2aにおける底面板20bの中央部に取り付けられている。このホッパー装置51は、多量のメダルを収容可能であり、それらを1枚ずつ排出可能な構造を有する。ホッパー装置51は、貯留されたメダルが例えば50枚を超えたとき、又は精算ボタン27(図2参照)が押圧されてメダルの精算を行うときに、メダルを払い出す。ホッパー装置51によって払い出されたメダルは、メダル払出口32(図2参照)から排出される。   The hopper device 51 is attached to the central portion of the bottom plate 20b in the cabinet 2a. This hopper device 51 can accommodate a large amount of medals, and has a structure capable of discharging them one by one. The hopper device 51 pays out the medals, for example, when the stored medals exceed 50, or when the settlement button 27 (see FIG. 2) is pressed and the medals are settled. The medals paid out by the hopper device 51 are discharged from the medal payout opening 32 (see FIG. 2).

メダル補助収納庫52は、ホッパー装置51から溢れ出たメダルを収納する。このメダル補助収納庫52は、キャビネット2a内部を正面から見て、ホッパー装置51の右側に配置されている。メダル補助収納庫52は、キャビネット2aの底面板20bに係合されており、底面板20bに対して着脱可能に構成されている。   The medal auxiliary storage 52 stores the medals overflowing from the hopper device 51. The medal auxiliary storage 52 is disposed on the right side of the hopper device 51 when the inside of the cabinet 2a is viewed from the front. The medal auxiliary storage 52 is engaged with the bottom plate 20b of the cabinet 2a, and is configured to be removable from the bottom plate 20b.

電源装置53は、キャビネット2a内部を正面から見て、ホッパー装置51の左側に配置されており、左側面板20cに取り付けられている。この電源装置53は、電源スイッチ53aと、電源基板53bを有している(図7参照)。電源装置53は、サブ電源装置48から供給された交流電圧100Vの電力を各部で必要な直流電圧の電力に変換して、変換した電力を各部へ供給する。   The power supply device 53 is disposed on the left side of the hopper device 51 when the inside of the cabinet 2a is viewed from the front, and is attached to the left side plate 20c. The power supply device 53 includes a power switch 53a and a power substrate 53b (see FIG. 7). The power supply device 53 converts the power of the AC voltage 100 V supplied from the sub power supply device 48 into the power of the required DC voltage at each part, and supplies the converted power to each part.

図3,図4及び図6に示すように、ミドルドア41は、フロントドア2bの裏面における中央部に配置され、リール表示窓4(図4参照)を裏側から開閉可能に構成されている。ミドルドア41の上部と下部には、ドアストッパ41a,41b,41cが設けられている。このドアストッパ41a,41b,41cは、リール表示窓4を裏側から閉じた状態のミドルドア41の開動作を固定(禁止)する。すなわち、ミドルドア41を開くには、ドアストッパ41a,41b,41cを回転させてミドルドア41の固定を解除する必要がある。   As shown in FIGS. 3, 4 and 6, the middle door 41 is disposed at the center of the back of the front door 2b, and is configured to be able to open and close the reel display window 4 (see FIG. 4) from the back. Door stoppers 41a, 41b and 41c are provided at the upper and lower portions of the middle door 41, respectively. The door stoppers 41a, 41b and 41c fix (prohibit) the opening operation of the middle door 41 in a state in which the reel display window 4 is closed from the back side. That is, in order to open the middle door 41, it is necessary to rotate the door stoppers 41a, 41b and 41c to release the fixation of the middle door 41.

ミドルドア41には、主制御基板71(図7参照)を収納した主制御基板ケース55と、3つのリール3L,3C,3Rが取り付けられている。3つのリール3L,3C,3Rには、所定の減速比をもったギアを介してステッピングモータが接続されている。   On the middle door 41, a main control board case 55 housing a main control board 71 (see FIG. 7) and three reels 3L, 3C, 3R are attached. A stepping motor is connected to the three reels 3L, 3C, 3R via gears having a predetermined speed reduction ratio.

図6に示すように、主制御基板ケース55には、設定用鍵型スイッチ56が設けられている。この設定用鍵型スイッチ56は、パチスロ1の設定を変更もしくはパチスロ1の設定の確認を行うときに使用する。
本実施の形態では、主制御基板ケース55と、この主制御基板ケース55に収納された主制御基板71により、主制御基板ユニットが構成されている。
As shown in FIG. 6, the main control board case 55 is provided with a setting key type switch 56. The setting key type switch 56 is used when changing the setting of the pachi slot 1 or confirming the setting of the pachi slot 1.
In the present embodiment, a main control board unit is configured by the main control board case 55 and the main control board 71 housed in the main control board case 55.

主制御基板ケース55に収納された主制御基板71は、後述する主制御回路91(図8参照)を構成する。主制御回路91は、内部当籤役の決定、リール3L,3C,3Rの回転及び停止、入賞の有無の判定といった、パチスロ1における遊技の主な流れを制御する回路である。主制御回路91の具体的な構成は後述する。   The main control board 71 housed in the main control board case 55 constitutes a main control circuit 91 (see FIG. 8) described later. The main control circuit 91 is a circuit that controls the main flow of the game in the pachislot 1 such as determination of internal winning combinations, rotation and stop of the reels 3L, 3C, 3R, and determination of the presence or absence of a prize. The specific configuration of the main control circuit 91 will be described later.

ミドルドア41の上方には、副制御基板72(図7参照)を収容する副制御基板ケース57が配設されおり、副制御基板ケース57の上方には、センタースピーカ58が配設されている。副制御基板ケース57に収納された副制御基板72は、副制御回路101(図9参照)を構成する。この副制御回路101は、映像の表示等による演出の実行を制御する回路である。副制御回路101の具体的な構成は後述する。   Above the middle door 41, a sub control board case 57 accommodating the sub control board 72 (see FIG. 7) is disposed, and above the sub control board case 57, a center speaker 58 is disposed. The sub control board 72 housed in the sub control board case 57 constitutes a sub control circuit 101 (see FIG. 9). The sub control circuit 101 is a circuit that controls execution of effects by displaying a video or the like. The specific configuration of the sub control circuit 101 will be described later.

フロントドア2bを裏面側から見て、副制御基板ケース57の右側方には、副中継基板61が配設されている。この副中継基板61は、副制御基板72と主制御基板71とを接続する配線を中継する。また、副制御基板72と副制御基板72の周辺に配設された基板とを接続する配線を中継する基板である。なお、副制御基板72の周辺に配設される基板としては、後述するLED基板62A,62B,62Cが挙げられる。   When the front door 2b is viewed from the back side, a sub relay board 61 is disposed on the right side of the sub control board case 57. The sub relay board 61 relays a wire connecting the sub control board 72 and the main control board 71. In addition, it is a board which relays the wiring connecting the sub control board 72 and the board disposed around the sub control board 72. In addition, as a board | substrate arrange | positioned around the sub control board 72, LED board 62A, 62B, 62C mentioned later is mentioned.

LED基板62A,62B,62Cは、フロントドア2bの裏面側から見て、副制御基板ケース57の両側に配設されている。これらLED基板62A,62B,62Cは、副制御回路101(図8参照)の制御により実行される演出に応じて、光源の一具体例を示す複数のLED(Light Emitting Diode)85(図7参照)を発光させて、点滅パターンを表示する。なお、本実施の形態のパチスロ1には、LED基板62A,62B,62C以外に複数のLED基板を備えている。   The LED substrates 62A, 62B, and 62C are disposed on both sides of the sub control substrate case 57 as viewed from the back surface side of the front door 2b. These LED boards 62A, 62B, 62C are a plurality of LEDs (Light Emitting Diodes) 85 (see FIG. 7) showing one specific example of the light source according to the effects executed by the control of the sub control circuit 101 (see FIG. 8). ) To light and display a blinking pattern. The pachi slot 1 of the present embodiment is provided with a plurality of LED substrates in addition to the LED substrates 62A, 62B and 62C.

副中継基板61の下方には、24hドア監視ユニット63が配設されている。この24hドア監視ユニット63は、フロントドア2bの開閉の履歴を保存する。また、フロントドア2bを開放したときに、液晶表示装置11にエラー表示を行うための信号を副制御基板72(副制御回路101)に出力する。   Below the sub relay board 61, a 24 h door monitoring unit 63 is disposed. The 24h door monitoring unit 63 stores the open / close history of the front door 2b. Further, when the front door 2b is opened, a signal for performing an error display on the liquid crystal display device 11 is output to the sub control board 72 (sub control circuit 101).

ミドルドア41の下方には、ボードスピーカ64と、下部スピーカ65L,65Rが配設されている。ボードスピーカ64は、腰部パネルユニット31(図2参照)に対向しており、下部スピーカ65L,65Rは、それぞれスピーカ用孔33L,33R(図2参照)に対向している。   Below the middle door 41, a board speaker 64 and lower speakers 65L and 65R are disposed. The board speaker 64 faces the waist panel unit 31 (see FIG. 2), and the lower speakers 65L and 65R face the speaker holes 33L and 33R (see FIG. 2).

下部スピーカ65Lの上方には、セレクタ66と、ドア開閉監視スイッチ67が配設されている。セレクタ66は、メダルの材質や形状等が適正であるか否かを選別する装置であり、メダル投入口21に投入された適正なメダルをホッパー装置51へ案内する。セレクタ66内においてメダルが通過する経路上には、適正なメダルが通過したことを検出するメダルセンサ(図示省略)が設けられている。   A selector 66 and a door open / close monitoring switch 67 are disposed above the lower speaker 65L. The selector 66 is a device for selecting whether or not the material, shape, and the like of the medals are appropriate, and guides the appropriate medals inserted into the medal insertion slot 21 to the hopper device 51. A medal sensor (not shown) for detecting that the appropriate medal has passed is provided on the path through which the medal passes in the selector 66.

ドア開閉監視スイッチ67は、フロントドア2bを裏面側から見て、セレクタ66の左側方に配置されている。このドア開閉監視スイッチ67は、パチスロ1の外部及び24hドア監視ユニット63へ、フロントドア2bの開閉を報知するためのセキュリティ信号を生成するための信号を主制御回路91に出力するとともに、24hドア監視ユニット63にフロントドアの2bの開閉状態を示す信号を出力する。本実施形態において、ドア開閉監視スイッチ67は、開閉状態検知手段を構成する。
信号を出力する。
The door open / close monitoring switch 67 is disposed on the left side of the selector 66 when the front door 2b is viewed from the back side. The door opening and closing monitoring switch 67 outputs a signal for generating a security signal for notifying the opening and closing of the front door 2b to the outside of the pachi slot 1 and the 24 h door monitoring unit 63 to the main control circuit 91 and the 24 h door. The monitoring unit 63 outputs a signal indicating the open / close state of the front door 2b. In the present embodiment, the door open / close monitoring switch 67 constitutes an open / close state detection means.
Output a signal.

また、リール表示窓4の下方であってミドルドア41により開閉される領域には、ドア中継端子板68が配設されている(図4参照)。このドア中継端子板68は、主制御基板ケース55内の主制御基板71(図7参照)と、各種のボタンやスイッチ、副制御基板72(図7参照)、セレクタ66及び遊技動作表示基板81(図7参照)との配線を中継する基板である。なお、各種のボタン及びスイッチとしては、例えば、BETボタン22、精算ボタン27、ドア開閉監視スイッチ67、後述するBETスイッチ77、スタートスイッチ79等を挙げることができる。   A door relay terminal plate 68 is disposed below the reel display window 4 and in an area opened and closed by the middle door 41 (see FIG. 4). The door relay terminal board 68 includes a main control board 71 (see FIG. 7) in the main control board case 55, various buttons and switches, a sub control board 72 (see FIG. 7), a selector 66 and a game operation display board 81. It is a board which relays wiring with (see FIG. 7). Examples of the various buttons and switches include a BET button 22, a settlement button 27, a door open / close monitoring switch 67, a BET switch 77 described later, and a start switch 79.

<パチスロが備える回路の構成>
次に、パチスロ1が備える回路の構成について、図7〜図9を参照して説明する。
図7は、パチスロ1が備える回路全体のブロック構成図である。図8は、主制御回路の内部構成を示すブロック構成図である。図9は、副制御回路の内部構成を示すブロック構成図である。
<Circuit configuration of pachislot>
Next, the configuration of the circuit included in the pachi slot 1 will be described with reference to FIGS. 7 to 9.
FIG. 7 is a block diagram of the entire circuit provided in the pachi slot 1. FIG. 8 is a block diagram showing an internal configuration of the main control circuit. FIG. 9 is a block diagram showing an internal configuration of the sub control circuit.

パチスロ1は、ミドルドア41に配設された主制御基板71と、フロントドア2bに配設された副制御基板72を有している。
主制御基板71には、リール中継端子板74と、設定用鍵型スイッチ56と、外部集中端子板47と、ホッパー装置51と、メダル補助収納庫スイッチ75と、電源装置53の電源基板53bが接続されている。設定用鍵型スイッチ56、外部集中端子板47、ホッパー装置51及びメダル補助収納庫スイッチ75は、キャビネット側中継基板44を介して主制御基板71に接続されている。外部集中端子板47及びホッパー装置51については、上述したため、説明を省略する。
The pachi slot 1 has a main control board 71 disposed in the middle door 41 and a sub control board 72 disposed in the front door 2b.
The main control board 71 includes a reel relay terminal board 74, a setting key type switch 56, an external concentrated terminal board 47, a hopper device 51, a medal auxiliary storage switch 75, and a power supply board 53b of the power supply device 53. It is connected. The setting key type switch 56, the external concentrated terminal plate 47, the hopper device 51 and the medal auxiliary storage switch 75 are connected to the main control board 71 via the cabinet side relay board 44. The external concentrated terminal plate 47 and the hopper device 51 have been described above, and thus the description thereof is omitted.

リール中継端子板74は、各リール3L,3C,3Rのリール本体の内側に配設されている。このリール中継端子板74は、各リール3L,3C,3Rのステッピングモータ(図示省略)に電気的に接続されており、主制御基板71からステッピングモータに出力される信号を中継する。   The reel relay terminal board 74 is disposed inside the reel body of each of the reels 3L, 3C, 3R. The reel relay terminal board 74 is electrically connected to stepping motors (not shown) of the respective reels 3L, 3C, 3R, and relays signals outputted from the main control board 71 to the stepping motors.

メダル補助収納庫スイッチ75は、メダル補助収納庫52のスイッチ貫通孔(非表示)を貫通している。このメダル補助収納庫スイッチ75は、メダル補助収納庫52がメダルで満杯になっているか否かを検出する。   The medal auxiliary storage switch 75 penetrates a switch through hole (not shown) of the medal auxiliary storage 52. The medal auxiliary storage switch 75 detects whether the medal auxiliary storage 52 is full of medals.

電源装置53の電源基板53bには、電源スイッチ53aが接続されている。この電源スイッチ53aは、パチスロ1に必要な電源を供給するときにONにする。   A power switch 53 a is connected to the power supply substrate 53 b of the power supply device 53. The power switch 53a is turned on when the necessary power is supplied to the pachi slot 1.

また、主制御基板71には、ドア中継端子板68を介して、セレクタ66、ドア開閉監視スイッチ67、BETスイッチ77、精算スイッチ78、スタートスイッチ79、ストップスイッチ基板80、遊技動作表示基板81及び副中継基板61が接続されている。セレクタ66、ドア開閉監視スイッチ67及び副中継基板61については、上述したため、説明を省略する。   The main control board 71 also includes a selector 66, a door open / close monitor switch 67, a BET switch 77, a settlement switch 78, a start switch 79, a stop switch board 80, a game operation display board 81, and the like via a door relay terminal board 68. The sub relay board 61 is connected. The selector 66, the door open / close monitoring switch 67, and the sub relay board 61 have been described above, and thus the description thereof is omitted.

BETスイッチ77は、BETボタン22が遊技者により押されたことを検出する。精算スイッチ78は、精算ボタン27が遊技者により押されたことを検出する。スタートスイッチ79は、スタートレバー23が遊技者により操作されたこと(開始操作)を検出する。   The BET switch 77 detects that the BET button 22 has been pressed by the player. The settlement switch 78 detects that the settlement button 27 has been pressed by the player. The start switch 79 detects that the player has operated the start lever 23 (start operation).

ストップスイッチ基板80は、回転しているリールを停止させるための回路と、停止可能なリールをLEDなどにより表示するための回路を構成する基板である。このストップスイッチ基板80には、ストップスイッチが設けられている。ストップスイッチは、各ストップボタン19L,19C,19Rが遊技者により押されたこと(停止操作)を検出する。   The stop switch board 80 is a board that constitutes a circuit for stopping a rotating reel and a circuit for displaying a stoppable reel by an LED or the like. The stop switch substrate 80 is provided with a stop switch. The stop switch detects that each stop button 19L, 19C, 19R has been pressed by the player (stop operation).

遊技動作表示基板81は、メダルの投入を受け付けるとき、3つのリール3L,3C,3Rが回動可能なとき及び再遊技を行うときに、投入されたメダルの枚数を7セグ表示器24に表示させるための基板である。この遊技動作表示基板81には、7セグ表示器24とLED82が接続されている。LED82は、例えば、遊技の開始を表示するマークや再遊技を行うマークなどを点灯させる。   The game operation display board 81 displays the number of inserted medals on the 7-segment display 24 when the three reels 3L, 3C, 3R can be turned and replay is performed when accepting the insertion of medals. It is a substrate for A 7-segment display 24 and an LED 82 are connected to the game operation display board 81. The LED 82 lights, for example, a mark indicating the start of a game, a mark to be played again, and the like.

副制御基板72は、ドア中継端子板68と副中継基板61を介して主制御基板71に接続されている。この副制御基板72には、副中継基板61を介して、サウンドI/O基板84、LED基板62A,62B,62C、24hドア監視ユニット63、エンタースイッチ110、セレクトスイッチ111が接続されている。LED基板62A,62B,62C及び24hドア監視ユニット63については、上述したため、説明を省略する。   The sub control board 72 is connected to the main control board 71 via the door relay terminal plate 68 and the sub relay board 61. A sound I / O substrate 84, LED substrates 62A, 62B, 62C, 24h door monitoring unit 63, an enter switch 110, and a select switch 111 are connected to the sub control substrate 72 via the sub relay substrate 61. The LED boards 62A, 62B, 62C and the 24h door monitoring unit 63 have been described above, and thus the description thereof is omitted.

エンタースイッチ110は、エンターボタン25が押されたことを検出して、その検出結果を、副中継基板61を介して副制御基板72に出力する。また、セレクトスイッチ111は、セレクトボタン26が押されたことを検出して、その検出結果を、副中継基板61を介して副制御基板72に出力する。   The enter switch 110 detects that the enter button 25 has been pressed, and outputs the detection result to the sub control board 72 via the sub relay board 61. Further, the select switch 111 detects that the select button 26 has been pressed, and outputs the detection result to the sub control board 72 via the sub relay board 61.

サウンドI/O基板84は、センタースピーカ58、ボードスピーカ64、下部スピーカ65L,65R及びフロントドア2bに設けられたスピーカ(図示省略)への音声の出力を行う。   The sound I / O substrate 84 outputs sound to the center speaker 58, the board speaker 64, the lower speakers 65L and 65R, and the speakers (not shown) provided on the front door 2b.

また、副制御基板72には、ロムカートリッジ基板86と、液晶中継基板87が接続されている。これらロムカートリッジ基板86及び液晶中継基板87は、副制御基板72と共に副制御基板ケース57に収納されている。
ロムカートリッジ基板86は、演出用の画像(映像)、音声、LED基板62A,62B及びその他のLED基板(図示省略)、通信のデータを管理するための基板である。液晶中継基板87は、副制御基板72と液晶表示装置11とを接続する配線を中継する基板である。
Further, a ROM cartridge substrate 86 and a liquid crystal relay substrate 87 are connected to the sub control substrate 72. The ROM cartridge substrate 86 and the liquid crystal relay substrate 87 are accommodated in the sub control substrate case 57 together with the sub control substrate 72.
The ROM cartridge substrate 86 is a substrate for managing an image (video) for effect, sound, the LED substrates 62A and 62B and other LED substrates (not shown), and communication data. The liquid crystal relay substrate 87 is a substrate for relaying a wire connecting the sub control substrate 72 and the liquid crystal display device 11.

<主制御回路>
次に、主制御基板71により構成される主制御回路91について、図8を参照して説明する。
図8は、パチスロ1の主制御回路91の構成例を示すブロック図である。
<Main control circuit>
Next, the main control circuit 91 configured by the main control board 71 will be described with reference to FIG.
FIG. 8 is a block diagram showing a configuration example of the main control circuit 91 of the pachislot 1.

主制御回路91は、主制御基板71上に設置されたマイクロコンピュータ92を主たる構成要素としている。マイクロコンピュータ92は、メインCPU93、メインROM94及びメインRAM95により構成される。メインCPU93と前述のホッパー装置51は、本発明の遊技媒体払出装置を構成している。   The main control circuit 91 mainly includes a microcomputer 92 installed on the main control board 71. The microcomputer 92 includes a main CPU 93, a main ROM 94 and a main RAM 95. The main CPU 93 and the above-described hopper device 51 constitute a gaming medium payout device of the present invention.

メインROM94には、メインCPU93により実行される制御プログラム、データテーブル、副制御回路101に対して各種制御指令(コマンド)を送信するためのデータ等が記憶されている。メインRAM95には、制御プログラムの実行により決定された内部当籤役等の各種データを格納する格納領域が設けられる。   The main ROM 94 stores a control program executed by the main CPU 93, a data table, data for transmitting various control commands (commands) to the sub control circuit 101, and the like. The main RAM 95 is provided with a storage area for storing various data such as an internal winning combination determined by the execution of the control program.

メインCPU93には、クロックパルス発生回路96、分周器97、乱数発生器98及びサンプリング回路99が接続されている。クロックパルス発生回路96及び分周器97は、クロックパルスを発生する。メインCPU93は、発生されたクロックパルスに基づいて、制御プログラムを実行する。乱数発生器98は、予め定められた範囲の乱数(例えば、0〜65535)を発生する。サンプリング回路99は、発生された乱数の中から1つの値を抽出する。   To the main CPU 93, a clock pulse generation circuit 96, a frequency divider 97, a random number generator 98 and a sampling circuit 99 are connected. Clock pulse generation circuit 96 and frequency divider 97 generate clock pulses. The main CPU 93 executes the control program based on the generated clock pulse. The random number generator 98 generates a predetermined range of random numbers (e.g., 0 to 65535). The sampling circuit 99 extracts one value from the generated random numbers.

メインCPU93は、リールインデックスを検出してから各リール3L,3C,3Rのステッピングモータに対してパルスを出力した回数をカウントする。これにより、メインCPU93は、各リール3L,3C,3Rの回転角度(主に、リールが図柄何個分だけ回転したか)を管理する。
なお、リールインデックスとは、リールが一回転したことを示す情報である。このリールインデックスは、例えば、発光部及び受光部を有する光センサと、各リール3L,3C,3Rの所定の位置に設けられ、各リール3L,3C,3Rの回転により発光部と受光部との間に介在される検知片を備えたリール位置検出部(図示省略)により検出する。
The main CPU 93 counts the number of times of pulse output to the stepping motor of each of the reels 3L, 3C, 3R after detecting the reel index. Thus, the main CPU 93 manages the rotation angles of the respective reels 3L, 3C, 3R (mainly, how many reels have been rotated).
The reel index is information indicating that the reel has made one rotation. The reel index is provided, for example, at a predetermined position of each of the reels 3L, 3C, 3R and an optical sensor having a light emitting unit and a light receiving unit, and rotation of each of the reels 3L, 3C, 3R It detects by the reel position detection part (illustration omitted) provided with the detection piece interposed between.

ここで、各リール3L,3C,3Rの回転角度の管理について、具体的に説明する。ステッピングモータに対して出力されたパルスの数は、メインRAM95に設けられたパルスカウンタによって計数される。そして、図柄1つ分の回転に必要な所定回数(例えば16回)のパルスの出力がパルスカウンタで計数される毎に、メインRAM95に設けられた図柄カウンタが1ずつ加算される。図柄カウンタは、各リール3L,3C,3Rに応じて設けられている。図柄カウンタの値は、リール位置検出部(図示省略)によってリールインデックスが検出されるとクリアされる。   Here, management of the rotation angles of the respective reels 3L, 3C, 3R will be specifically described. The number of pulses output to the stepping motor is counted by a pulse counter provided in the main RAM 95. Then, each time the pulse counter counts the output of a predetermined number of times (for example, 16 times) necessary for the rotation of one symbol, the symbol counter provided in the main RAM 95 is incremented by one. The symbol counter is provided according to each reel 3L, 3C, 3R. The value of the symbol counter is cleared when the reel index is detected by the reel position detection unit (not shown).

つまり、本実施の形態では、図柄カウンタを管理することにより、リールインデックスが検出されてから図柄何個分の回転が行われたのかを管理するようになっている。したがって、各リール3L,3C,3Rの各図柄の位置は、リールインデックスが検出される位置を基準として検出される。   That is, in the present embodiment, by managing the symbol counter, it is managed to manage how many symbols have been rotated since the reel index was detected. Therefore, the position of each symbol of each reel 3L, 3C, 3R is detected with reference to the position where the reel index is detected.

上述したように、滑り駒数の最大数を図柄4個分に定めた場合は、左ストップボタン19Lが押されたときにリール表示窓4の中段にある左リール3Lの図柄と、その4個先の図柄までの範囲内にある各図柄が、リール表示窓4の中段に停止可能な図柄となる。   As described above, when the maximum number of sliding symbols is determined to be four symbols, the symbols of the left reel 3L in the middle of the reel display window 4 and its four when the left stop button 19L is pressed Each symbol within the range to the previous symbol is a symbol that can be stopped at the middle of the reel display window 4.

<副制御回路>
次に、副制御基板72により構成される副制御回路101について、図9を参照して説明する。
図9は、パチスロ1の副制御回路101の構成例を示すブロック図である。
<Sub control circuit>
Next, the sub control circuit 101 configured by the sub control board 72 will be described with reference to FIG.
FIG. 9 is a block diagram showing a configuration example of the sub control circuit 101 of the pachislot 1.

副制御回路101は、主制御回路91と電気的に接続されており、主制御回路91から送信されるコマンドに基づいて演出内容の決定や実行等の処理を行う。副制御回路101は、基本的に、サブCPU102、サブRAM103、レンダリングプロセッサ104、描画用RAM105、ドライバ106、サブRTC108を含んで構成されている。本実施形態において、サブRTC108は、設定側計時手段を構成する。   The sub control circuit 101 is electrically connected to the main control circuit 91, and performs processing such as determination and execution of effects based on commands transmitted from the main control circuit 91. The sub control circuit 101 basically includes a sub CPU 102, a sub RAM 103, a rendering processor 104, a drawing RAM 105, a driver 106, and a sub RTC 108. In the present embodiment, the sub RTC 108 constitutes a setting side clocking means.

サブCPU102は、主制御回路91から送信されたコマンドに応じて、ロムカートリッジ基板86に記憶されている制御プログラムに従い、映像、音、光の出力の制御を行う。ロムカートリッジ基板86は、基本的に、プログラム記憶領域とデータ記憶領域によって構成される。   The sub CPU 102 controls the output of video, sound and light according to the control program stored in the ROM cartridge substrate 86 in response to the command transmitted from the main control circuit 91. The ROM cartridge substrate 86 basically includes a program storage area and a data storage area.

プログラム記憶領域には、サブCPU102が実行する制御プログラムが記憶されている。例えば、制御プログラムには、主制御回路91との通信を制御するための主基板通信タスクや、演出用乱数値を抽出し、演出内容(演出データ)の決定及び登録を行うための演出登録タスクが含まれる。また、決定した演出内容に基づいて液晶表示装置11(図6参照)による映像の表示を制御する描画制御タスク、LED85等の光源による光の出力を制御するランプ制御タスク、スピーカ58,64,65L,65R等のスピーカによる音の出力を制御する音声制御タスク等が含まれる。   The program storage area stores a control program to be executed by the sub CPU 102. For example, in the control program, a main board communication task for controlling communication with the main control circuit 91, and a random number value for effect extraction, and an effect registration task for determining and registering effect contents (effect data) Is included. In addition, a drawing control task for controlling display of an image by the liquid crystal display device 11 (see FIG. 6) based on the determined effect contents, a lamp control task for controlling light output by a light source such as an LED 85, speakers 58, 64, 65L , An audio control task for controlling the output of sound from the speaker such as 65R, and the like.

データ記憶領域は、各種データテーブルを記憶する記憶領域、各演出内容を構成する演出データを記憶する記憶領域、映像の作成に関するアニメーションデータを記憶する記憶領域が含まれている。また、BGMや効果音に関するサウンドデータを記憶する記憶領域、光の点消灯のパターンに関するランプデータを記憶する記憶領域等が含まれている。   The data storage area includes a storage area for storing various data tables, a storage area for storing effect data constituting each effect content, and a storage area for storing animation data relating to creation of a video. Also, a storage area for storing sound data relating to BGM and sound effects, a storage area for storing lamp data relating to a light on / off pattern, and the like are included.

サブRAM103は、サブDRAM(Dynamic Random Access Memory)103aと、サブSRAM(Static Random Access Memory)103bから構成される。サブDRAM103aには、例えば、決定された演出内容や演出データを登録する格納領域や、主制御回路91から送信される内部当籤役等の各種データを格納する格納領域が設けられている。サブSRAM103bには、例えば、24hドア監視ユニット63から受信する各種情報が記憶される。   The sub RAM 103 includes a sub dynamic random access memory (DRAM) 103 a and a static random access memory (SRAM) 103 b. The sub DRAM 103a is provided with, for example, a storage area for registering determined effect contents and effect data, and a storage area for storing various data such as an internal winning combination transmitted from the main control circuit 91. For example, various information received from the 24 h door monitoring unit 63 is stored in the sub SRAM 103 b.

サブCPU102、レンダリングプロセッサ104、描画用RAM(フレームバッファを含む)105及びドライバ106は、演出内容により指定されたアニメーションデータに従って映像を作成し、作成した映像を液晶表示装置11に表示させる。   The sub CPU 102, the rendering processor 104, the drawing RAM (including the frame buffer) 105, and the driver 106 create an image according to the animation data specified by the effect content, and cause the liquid crystal display device 11 to display the created image.

また、サブCPU102は、演出内容により指定されたサウンドデータに従ってBGMなどの音をスピーカ58,64,65L,65R等のスピーカにより出力させる。また、サブCPU102は、演出内容により指定されたランプデータに従ってLED85等の光源の点灯及び消灯を制御する。   Further, the sub CPU 102 causes the speakers such as the speakers 58, 64, 65L, 65R to output the sound such as BGM according to the sound data designated by the contents of the effect. Further, the sub CPU 102 controls lighting and extinguishing of the light source such as the LED 85 in accordance with the lamp data designated by the contents of the effect.

また、サブRTC(Real Time Clock)108は計時回路であり、サブCPU102のリクエストに応じて現在時刻を示す情報、すなわち年、月、日、時、分、秒そして曜日を示す情報を出力する。   A sub RTC (Real Time Clock) 108 is a clock circuit, and outputs information indicating the current time, that is, information indicating the year, month, day, hour, minute, second, and day of the week in response to a request from the sub CPU 102.

<24hドア監視ユニットの構成>
次に、24hドア監視ユニット63について、図10を参照して説明する。
図10は、24hドア監視ユニット63の構成例を示すブロック図である。
<Configuration of 24 h door monitoring unit>
Next, the 24h door monitoring unit 63 will be described with reference to FIG.
FIG. 10 is a block diagram showing a configuration example of the 24h door monitoring unit 63. As shown in FIG.

図10に示すように、24hドア監視ユニット63は、制御LSI200と、RTC(Real Time Clock)201と、バッテリー202と、ROM203と、RAM204と、EEPROM(Electrically Erasable Programmable Read-Only Memory)205と、を有している。また、24hドア監視ユニット63は、副制御基板72と、ドア開閉監視スイッチ67と、電源基板53bと、に電気的に接続されている。   As shown in FIG. 10, the 24h door monitoring unit 63 includes a control LSI 200, an RTC (Real Time Clock) 201, a battery 202, a ROM 203, a RAM 204, and an EEPROM (Electrically Erasable Programmable Read-Only Memory) 205. have. In addition, the 24h door monitoring unit 63 is electrically connected to the sub control board 72, the door open / close monitoring switch 67, and the power supply board 53b.

制御LSI200は、24hドア監視ユニット63の動作を制御する。制御LSI200は、制御コントローラ回路206と、シリアル通信回路207と、乱数発生回路208と、I/Oポート回路209と、を有している。   The control LSI 200 controls the operation of the 24 h door monitoring unit 63. The control LSI 200 includes a controller circuit 206, a serial communication circuit 207, a random number generation circuit 208, and an I / O port circuit 209.

制御コントローラ回路206は、ROM203に格納されているプログラムに従って後述する各種処理を実行する。乱数発生回路208は、フリーランカウンタ(以下、「FRC」と称する場合がある)で構成され、FRCから取得したカウント値を用いて規定の演算を行うことで乱数を発生させる。I/Oポート回路209は、ドア開閉監視スイッチ67に接続されており、ドア開閉監視スイッチ67からのフロントドア2bの開閉を示す信号を受信する。   The controller circuit 206 executes various processes described later according to a program stored in the ROM 203. The random number generation circuit 208 is configured by a free run counter (hereinafter sometimes referred to as "FRC"), and generates a random number by performing a prescribed operation using the count value obtained from the FRC. The I / O port circuit 209 is connected to the door open / close monitoring switch 67, and receives a signal from the door open / close monitoring switch 67 indicating the opening / closing of the front door 2b.

シリアル通信回路207は、24hドア監視ユニット63に接続されているホスト機器との間でコマンドやデータを送受信する際に用いられる。シリアル通信回路207がホスト機器からコマンドやデータを1バイト受信する毎に、制御LSI200は、後述の受信割込み処理(図27参照)を実行する。   The serial communication circuit 207 is used when transmitting and receiving commands and data with the host device connected to the 24 h door monitoring unit 63. Every time the serial communication circuit 207 receives one byte of command or data from the host device, the control LSI 200 executes a reception interrupt process (see FIG. 27) described later.

なお、図10では、ホスト機器としての副制御基板72が24hドア監視ユニット63に接続されている例を示している。しかし、24hドア監視ユニットに接続されるホスト機器は、これに限らない。例えば、パチスロ1の製造時やメンテナンス時に24hドア監視ユニット63の各種設定を行う場合は、ホスト機器として設定機(図示省略)が24hドア監視ユニット63に接続される。この設定機は、不揮発性の記憶装置(ハードディスクなど)と揮発性の記憶装置(RAMなど)を備えている。   FIG. 10 shows an example in which the sub control board 72 as a host device is connected to the 24 h door monitoring unit 63. However, the host device connected to the 24 h door monitoring unit is not limited to this. For example, when various settings of the door monitoring unit 63 are performed at the time of manufacture or maintenance of the pachi slot 1, a setting machine (not shown) is connected to the door monitoring unit 63 as a host device. The setting device includes a non-volatile storage device (such as a hard disk) and a volatile storage device (such as a RAM).

バッテリー202は、例えばリチウムイオン二次電池で構成されている。バッテリー202は、パチスロ1の電源が切られているときに24hドア監視ユニット63の電源として機能する。このため、24hドア監視ユニット63は、パチスロ1の電源が切られているときも後述の各種処理を行うことが可能となっている。なお、このバッテリー202は、パチスロ1に電源がONになっているときに電源基板53bから供給される電力を蓄電する。なお、パチスロ1の電源が切られている間の電源として、充電が可能な二次電池を例示したが、これに限らず、一次電池(例えば、リチウム電池,アルカリマンガン乾電池)を用いてもよい。   The battery 202 is configured of, for example, a lithium ion secondary battery. The battery 202 functions as a power supply of the door surveillance unit 63 when the pachi slot 1 is powered off. For this reason, the 24 h door monitoring unit 63 can perform various processes described later even when the pachi slot 1 is powered off. The battery 202 stores the power supplied from the power supply substrate 53b when the pachi slot 1 is powered on. In addition, although the secondary battery which can be charged was illustrated as a power supply during the power supply of pachislot 1 turning off, not only this but a primary battery (for example, lithium battery, alkaline manganese dry battery) may be used .

RTC201は計時回路であり、制御LSI200のリクエストに応じて現在時刻を示す情報、すなわち年、月、日、時、分、秒そして曜日を示す情報を出力する。RTC201は、監視側計時手段を構成する。   The RTC 201 is a clock circuit, and outputs information indicating the current time, that is, information indicating the year, month, day, hour, minute, second, and day of the week in response to a request from the control LSI 200. The RTC 201 constitutes a monitoring side clocking means.

EEPROM205は、不揮発性メモリであり、フロントドア2bの開閉履歴を示す情報(以下、「開閉履歴情報」と称する。)などを記憶する。EEPROM205に記憶する情報及びEEPROM205における情報の格納場所については、後で図11を参照して説明する。   The EEPROM 205 is a non-volatile memory, and stores information indicating the open / close history of the front door 2 b (hereinafter referred to as “open / close history information”) and the like. The information stored in the EEPROM 205 and the storage location of the information in the EEPROM 205 will be described later with reference to FIG.

RAM204は、DRAM(Dynamic Random Access memory)で構成され、制御LSI200の作業領域や制御LSI200とホスト機器との通信のバッファ領域として用いられる。RAM204に記憶する情報及びRAM204における情報の格納場所については、後で図12を参照して説明する。   The RAM 204 is configured by a dynamic random access memory (DRAM), and is used as a work area of the control LSI 200 or as a buffer area for communication between the control LSI 200 and the host device. The information stored in the RAM 204 and the storage location of the information in the RAM 204 will be described later with reference to FIG.

<EEPROMのメモリーマップ>
次に、EEPROM205に記憶する情報及びEEPROM205における情報の格納場所について、図11を参照して説明する。
図11は、EEPROM205のメモリーマップであり、EEPROM205における情報の格納場所を概念的に示す図である。図11では、EEPROM205の記憶領域を1バイトずつ区切って示している。このため、図11における1マスは、1バイトの記憶領域を示している。
<Memory map of EEPROM>
Next, the information stored in the EEPROM 205 and the storage location of the information in the EEPROM 205 will be described with reference to FIG.
FIG. 11 is a memory map of the EEPROM 205, and conceptually shows the storage location of information in the EEPROM 205. As shown in FIG. In FIG. 11, the storage area of the EEPROM 205 is shown divided into one byte. Therefore, one square in FIG. 11 indicates a storage area of one byte.

図11に示すように、先頭から連続する16バイトの領域は、シリアルID格納領域を形成する。シリアルID格納領域には、24hドア監視ユニット63のシリアルIDが記憶される。シリアルIDは、16桁の英数字からなる(例えば、「0123456789ABCDEF」)。すなわち、各バイトには、1文字分の16進数の値が記憶される。   As shown in FIG. 11, the 16-byte area continuous from the top forms a serial ID storage area. The serial ID of the 24 h door monitoring unit 63 is stored in the serial ID storage area. The serial ID consists of 16 alphanumeric characters (for example, "0123456789ABCDEF"). That is, each byte stores a hexadecimal value for one character.

次の連続する16バイトの領域は、秘密鍵格納領域を形成する。秘密鍵格納領域には、秘密鍵が記憶される。秘密鍵は、16桁の英数字からなる(例えば、「SECRETKEY0000000」)。すなわち、各バイトには、1文字分の16進数の値(例えば、文字「S」の場合はASCIIコードの53Hが、文字「0」の場合はASCIIコードの30H)が記憶される。秘密鍵は、制御LSI200が実行する後述の乱数コマンド受信時処理(図31参照)においてパスワードを生成する際に用いられる。すなわち、本実施形態では、EEPROM205は、秘密鍵が格納される秘密鍵格納領域を備える監視側基準データ記憶手段を構成する。   The next consecutive 16-byte area forms a secret key storage area. A secret key is stored in the secret key storage area. The secret key consists of 16 alphanumeric characters (for example, "SECRETKEY 0000000"). That is, each byte stores a hexadecimal value for one character (for example, in the case of the character “S”, 53H of the ASCII code and in the case of the character “0”, 30H of the ASCII code). The secret key is used when generating a password in random number command reception processing described later (see FIG. 31) executed by the control LSI 200. That is, in the present embodiment, the EEPROM 205 constitutes monitoring side reference data storage means provided with a secret key storage area in which a secret key is stored.

次の連続する5バイトの領域は、予備の領域であり、情報は記憶されない。
次の1バイトの領域は、記録モード格納領域を形成する。記録モード格納領域には、記録モードの種別を示す情報が記憶される。記録モードの種別には、EEPROM205にフロントドア2bの後述の開閉履歴情報を常時記録させる「常時記録モード」と、記録しない「無記録モード」がある。
The next continuous 5 byte area is a spare area and no information is stored.
The next 1-byte area forms a recording mode storage area. Information indicating the type of recording mode is stored in the recording mode storage area. There are two types of recording modes: "always recording mode" in which the open / close history information of the front door 2b described later is always recorded in the EEPROM 205, and "non-recording mode" in which the recording is not performed.

次の1バイトの領域は、履歴カウンタ格納領域を形成する。履歴カウンタ格納領域には、履歴カウンタの値が記憶される。履歴カウンタの値は、EEPROM205に記憶されている後述の開閉履歴情報の数を示す値である。本実施形態では、最大128個の開閉履歴情報が記憶可能なので、履歴カウンタの値として、0〜128が記憶される。なお、記憶可能な開閉履歴情報の数は、24hドア監視ユニット63に搭載される不揮発性メモリの種類及び記憶容量により、適宜増減する。   The next 1-byte area forms a history counter storage area. The history counter storage area stores the value of the history counter. The value of the history counter is a value indicating the number of open / close history information described later stored in the EEPROM 205. In the present embodiment, since up to 128 pieces of open / close history information can be stored, 0 to 128 are stored as values of the history counter. The number of open / close history information that can be stored is appropriately increased or decreased depending on the type and storage capacity of the non-volatile memory mounted on the 24 h door monitoring unit 63.

次の1バイトの領域は、最新番号格納領域を形成する。最新番号格納領域には、最新の開閉履歴情報が記憶されている後述の開閉履歴格納領域の番号である最新番号が記憶される。   The next 1-byte area forms the latest number storage area. The latest number storage area stores the latest number which is the number of the open / close history storage area described later in which the latest open / close history information is stored.

次の連続する1024バイトの領域には、開閉履歴情報が記憶される。開閉履歴情報は、フロントドア2bが閉止又は開放された年月日及び時間を示す情報である。また、開閉履歴情報は、連続する8バイトの情報からなる。したがって、この連続する1024バイトの領域には、128個の開閉履歴情報が記憶可能となっている。   In the next continuous 1024-byte area, switching history information is stored. The opening and closing history information is information indicating the date and time when the front door 2b is closed or opened. Also, the open / close history information is composed of continuous eight bytes of information. Therefore, 128 pieces of open / close history information can be stored in the continuous 1024-byte area.

開閉履歴情報は、監視対象を示す1バイトの監視対象情報(本実施形態では、フロントドア2b)と、開放(OPEN)か閉止(CLOSE)かを示す1バイトの状態情報と、年、月、日、時、分、そして秒を各バイトで示す連続する6バイトの時間情報からなる。時間情報の各バイトは、年、月、日、時、分、そして秒の下2桁を、16進数の値で示す。   The open / close history information includes 1 byte of monitoring target information (the front door 2b in the present embodiment) indicating a monitoring target, 1 byte of status information indicating open (OPEN) or closed (CLOSE), year, month, It consists of six consecutive bytes of time information with day, hour, minute and second in each byte. Each byte of time information indicates the year, month, day, hour, minute, and the lower two digits of a second as a hexadecimal value.

また、この連続する1024バイトとの領域は、1個の開閉履歴情報を記憶する領域毎に、すなわち8バイトずつに区切られている。これら区切られたそれぞれの領域は、開閉履歴情報格納領域を形成し、1〜128の番号が付けられている。なお、番号「128」の開閉履歴情報格納領域に開閉履歴情報が記憶された後に記憶される開閉履歴情報は、番号「1」の開閉履歴情報格納領域に上書きされて記憶される。以降、開閉履歴情報は、同様に、番号「2」以降の開閉履歴情報格納領域に上書きされて記憶される。すなわち、本実施形態では、開閉履歴情報を記憶する開閉履歴情報格納領域を備えるEEPROM205は、開閉履歴情報記憶手段を構成する。   Further, the area with the continuous 1024 bytes is divided into eight bytes for each area storing one piece of open / close history information. Each of these divided areas forms an open / close history information storage area and is numbered 1 to 128. The opening and closing history information stored after the opening and closing history information is stored in the opening and closing history information storage area of the number "128" is overwritten and stored in the opening and closing history information storage area of the number "1". Thereafter, the opening and closing history information is similarly overwritten and stored in the opening and closing history information storage area of the number "2" and thereafter. That is, in the present embodiment, the EEPROM 205 including the open / close history information storage area for storing the open / close history information constitutes an open / close history information storage unit.

次の連続する4バイトの領域は、監視間隔時間格納領域を形成する。監視間隔時間格納領域には、監視間隔時間に対応するカウント数が記憶される。監視間隔時間とは、開閉履歴情報をEEPROM205に記憶させる間隔である。本実施形態では、分刻みで1分〜100分の監視間隔時間が設定可能である。後述するように制御LSI200は、20msec(ミリ秒)ごとに監視間隔カウントを加算し、監視間隔カウントが設定した監視間隔時間に対応するカウント数に達した後に、開閉履歴情報をEEPROM205に記憶させる。したがって、監視間隔時間に対応するカウント数として、監視間隔時間格納領域には、3000(監視間隔時間1分に対応するカウント数)〜300000(監視間隔時間100分に対応するカウント数)が記憶される。なお、この監視間隔時間格納領域には、監視間隔時間に対応するカウント数の16進数の値が記憶される。   The next consecutive 4-byte area forms a monitoring interval time storage area. A count number corresponding to the monitoring interval time is stored in the monitoring interval time storage area. The monitoring interval time is an interval at which the open / close history information is stored in the EEPROM 205. In this embodiment, a monitoring interval time of 1 minute to 100 minutes can be set in minutes. As described later, the control LSI 200 adds the monitoring interval count every 20 msec (milliseconds), and stores the open / close history information in the EEPROM 205 after the monitoring interval count reaches the count number corresponding to the set monitoring interval time. Therefore, 3000 (count number corresponding to 1 minute of monitoring interval time) to 300,000 (count number corresponding to 100 minutes of monitoring interval time) is stored in the monitoring interval time storage area as a count number corresponding to monitoring interval time. Ru. In this monitoring interval time storage area, a hexadecimal value of the count number corresponding to the monitoring interval time is stored.

次の連続する4バイトの領域は、記録開始時間格納領域を形成する。記録開始時間格納領域には、記録開始時間に対応するカウント数が記憶される。記録開始時間とは、後述の記録開始時間設定処理(図29に示す特権コマンド受信時処理のS88参照)が行われてから開閉履歴情報の記憶を開始させるまでの時間である。本実施形態では、分刻みで1分〜100分の記録開始時間が設定可能である。後述するように制御LSI200は、20msec(ミリ秒)ごとに記録開始時間カウントを加算し、記録開始時間カウントが設定した記録開始時間に対応するカウント数に達した後に、開閉履歴情報をEEPROM205に記憶させる。したがって、記録開始時間に対応するカウント数として、記録開始時間格納領域には、3000(記録開始時間1分に対応するカウント数)〜300000(記録開始時間100分に対応するカウント数)の値が記憶される。なお、記録開始時間格納領域には、記録開始時間に対応するカウント数の16進数の値が記憶される。   The next consecutive 4-byte area forms a recording start time storage area. A count number corresponding to the recording start time is stored in the recording start time storage area. The recording start time is a time from when the recording start time setting process (see S88 of the privileged command reception process shown in FIG. 29) described later is performed to when the storage of the open / close history information is started. In the present embodiment, the recording start time can be set from 1 minute to 100 minutes in minutes. As described later, the control LSI 200 adds the recording start time count every 20 msec (milliseconds), stores the open / close history information in the EEPROM 205 after the recording start time count reaches the count number corresponding to the set recording start time. Let Therefore, a value of 3000 (count number corresponding to 1 minute of recording start time) to 300,000 (count number corresponding to 100 minutes of recording start time) is provided in the recording start time storage area as a count number corresponding to recording start time. It is memorized. In the recording start time storage area, a hexadecimal value of the count number corresponding to the recording start time is stored.

なお、図示は省略するが、EEPROM205には、上記の他、各種情報を記憶する格納領域が形成されている。
例えば、EEPROM205には、プログラムバージョンが記憶されるプログラムバージョン格納領域が形成されている。プログラムバージョンとは、24hドア監視ユニット63で実行されるプログラムのバージョンである。
Although not shown, in the EEPROM 205, in addition to the above, a storage area for storing various information is formed.
For example, a program version storage area in which a program version is stored is formed in the EEPROM 205. The program version is a version of a program executed by the 24 h door monitoring unit 63.

<RAMのメモリーマップ>
次に、RAM204に記憶する情報及びRAM204における情報の格納場所については、図12を参照して説明する。
図12は、RAM204のメモリーマップであり、RAM204における情報の格納場所を概念的に示す図である。図12では、RAM204の記憶領域を1バイトずつ区切って示している。このため、図12における1マスは、1バイトの記憶領域を示している。
<Memory map of RAM>
Next, the information stored in the RAM 204 and the storage location of the information in the RAM 204 will be described with reference to FIG.
FIG. 12 is a memory map of the RAM 204 and conceptually shows the storage location of information in the RAM 204. As shown in FIG. In FIG. 12, the storage area of the RAM 204 is shown divided into one byte. Therefore, one square in FIG. 12 indicates a storage area of one byte.

図12に示すように、先頭の1バイトの領域は、出力ポート情報格納領域を形成する。出力ポート情報格納領域には、I/Oポート回路209の出力ポートを介して送信される情報が記憶される。   As shown in FIG. 12, the first 1-byte area forms an output port information storage area. In the output port information storage area, information transmitted via the output port of the I / O port circuit 209 is stored.

次の1バイトの領域は、入力ポート情報格納領域を形成する。入力ポート情報格納領域には、後述するポート入力処理(図22参照)において、I/Oポート回路209の入力ポートを介してドア開閉監視スイッチ67から受信した信号に基いたフロントドア2bが開放状態か閉止状態かを示す状態情報が記憶される。   The next 1-byte area forms an input port information storage area. In the input port information storage area, the front door 2b is opened based on the signal received from the door open / close monitoring switch 67 via the input port of the I / O port circuit 209 in port input processing (see FIG. 22) described later. State information indicating whether the state is closed is stored.

次の1バイトの領域には、状態変化フラグ格納領域を形成する。状態変化フラグ格納領域には、状態変化フラグが記憶される。状態変化フラグとは、EEPROM205に開閉履歴情報を格納中か否かを示すフラグである。状態変化フラグは、入力ポート情報格納領域に格納された情報が示すフロントドア2bの開閉状態とEEPROM205に格納されている最新の開閉履歴情報が示すフロントドア2bの開閉状態とが一致せず、入力ポート情報格納領域に格納された情報に基づく開閉履歴情報をEEPROM205に格納する場合にONに設定される(後述の図24に示すドア監視状態検知処理のS46参照)。また、状態変化フラグは、開閉履歴情報をEEPROM205に格納した後にOFFに設定される(後述の図23に示すドア監視処理のS34参照)。   A state change flag storage area is formed in the next 1-byte area. A state change flag is stored in the state change flag storage area. The state change flag is a flag indicating whether the open / close history information is being stored in the EEPROM 205. The state change flag does not match the open / close state of the front door 2b indicated by the information stored in the input port information storage area and the open / close state of the front door 2b indicated by the latest open / close history information stored in the EEPROM 205. When the open / close history information based on the information stored in the port information storage area is stored in the EEPROM 205, it is set to ON (see S46 of the door monitoring state detection process shown in FIG. 24 described later). The state change flag is set to OFF after storing the open / close history information in the EEPROM 205 (see S34 of the door monitoring process shown in FIG. 23 described later).

次の1バイトの領域は、受信完了フラグ格納領域を形成する。受信完了フラグ格納領域には、受信完了フラグが記憶される。受信完了フラグは、ホスト機器から送信されたコマンド及びそれに付随する情報の受信が完了したか否かを示すフラグである。受信完了フラグは、受信が完了した場合にONに設定され(「1」がセットされ)、受信したコマンドに応じた送信処理(後述の図33の送信処理参照)を行う際にOFFに設定される(クリアされる)。   The next 1-byte area forms a reception completion flag storage area. A reception completion flag is stored in the reception completion flag storage area. The reception completion flag is a flag indicating whether or not the reception of the command transmitted from the host device and the information attached thereto has been completed. The reception completion flag is set to ON when reception is completed (“1” is set), and is set to OFF when transmission processing (see transmission processing in FIG. 33 described later) according to the received command is performed. Yes (cleared).

次の1バイトの領域は、サムカウンタ格納領域を形成する。サムカウンタ格納領域には、サムカウンタが記憶される。サムカウンタは、ホスト機器から送信されたサム値の数を示す。本実施形態では、ホスト機器から送信されるコマンド及びそれに付随する情報に2桁のサム値が含まれている。サム値は、1桁1バイトずつの情報としてホスト機器から送信され、制御LSI200は、各桁のサム値を受信するたびにサムカウンタに1を加算する(後述の図27に示す受信割込み処理のS68参照)。   The next 1-byte area forms a sum counter storage area. A thumb counter is stored in the thumb counter storage area. The sum counter indicates the number of sum values transmitted from the host device. In the present embodiment, the command transmitted from the host device and the accompanying information include a two-digit sum value. The sum value is transmitted from the host device as information of 1 digit and 1 byte, and the control LSI 200 adds 1 to the sum counter each time the sum value of each digit is received (the reception interrupt process shown in FIG. 27 described later). See S68).

次の1バイトの領域は、ETX受信フラグ格納領域を形成する。ETX受信フラグ格納領域には、ETX受信フラグが記憶される。ETX受信フラグは、ホスト機器からETXコマンドを受信したか否かを示すフラグである。ETXコマンドを受信した場合は、ETX受信フラグは、ONに設定される(「1」がセットされる)。   The next 1-byte area forms an ETX reception flag storage area. The ETX reception flag is stored in the ETX reception flag storage area. The ETX reception flag is a flag indicating whether an ETX command has been received from the host device. When an ETX command is received, the ETX reception flag is set to ON ("1" is set).

次の1バイトの領域には、ログインフラグ格納領域を形成する。ログインフラグ格納領域には、ログインフラグが記憶される。ログインフラグは、ホスト機器から受信したパスワードと、後述するRAM204のパスワード格納領域に記憶されたパスワードと、が一致するか否かを示すフラグである。ログインフラグは、パスワードが一致する場合に、ONに設定される、すなわち「1」がセットされる(後述の図32に示すログインコマンド受信時処理を参照)。   In the next 1-byte area, a login flag storage area is formed. A login flag is stored in the login flag storage area. The login flag is a flag indicating whether or not the password received from the host device matches the password stored in the password storage area of the RAM 204 described later. The login flag is set to ON when the passwords match, that is, “1” is set (see processing upon reception of a login command shown in FIG. 32 described later).

次の1バイトの領域は、記録許可フラグ格納領域を形成する。記録許可フラグ格納領域には、記録許可フラグが記憶される。記憶許可フラグは、開閉履歴情報をEEPROM205に記憶可能否かを示すフラグである。記憶許可フラグは、記録モードが常時記録モードに設定され、且つ、記録開始時間カウンタの値が記録開始時間に対応するカウント数以上のとき、すなわちEEPROM205に開閉履歴情報を記録可能な場合にONに設定される。   The next 1-byte area forms a recording permission flag storage area. A recording permission flag is stored in the recording permission flag storage area. The storage permission flag is a flag indicating whether the open / close history information can be stored in the EEPROM 205. The storage permission flag is turned on when the recording mode is always set to the recording mode and the value of the recording start time counter is equal to or more than the count number corresponding to the recording start time, that is, when the open / close history information can be recorded in the EEPROM 205. It is set.

次の連続する8バイトの領域は、第1検知結果格納領域を形成する。第1検知結果格納領域には、開閉履歴情報が記憶される。開閉履歴情報が第1検知結果格納領域に記憶される態様については、後で図24を参照して説明する。本実施形態において、RAM205に配された第1検知結果格納領域を備え、後述のドア監視状態検知処理(後述の図24参照)を行う24hドア監視ユニット63の制御LSI200は、開閉状態取得手段を構成する。   The next consecutive 8-byte area forms a first detection result storage area. Open / close history information is stored in the first detection result storage area. The manner in which the open / close history information is stored in the first detection result storage area will be described later with reference to FIG. In the present embodiment, the control LSI 200 of the 24h door monitoring unit 63 that includes the first detection result storage area arranged in the RAM 205 and performs the door monitoring state detection process described later (see FIG. 24 described later) Configure.

次の連続する8バイトの領域は、第2検知結果格納領域を形成する。第2検知結果格納領域には、開閉履歴情報が記憶される。開閉履歴情報が第2検知結果格納領域に記憶される態様については、後で図24を参照して説明する。   The next consecutive 8-byte area forms a second detection result storage area. Open / close history information is stored in the second detection result storage area. An aspect in which the open / close history information is stored in the second detection result storage area will be described later with reference to FIG.

次の連続する16バイトの領域は、パスワード格納領域を形成する。パスワード格納領域には、パスワードが記憶される。パスワードは、後述する特権コマンドに係る処理をホスト機器が24hドア監視ユニット63に要求する際に必要となる情報である。また、パスワードは、16桁の英数字からなる。すなわち、各バイトには、1文字分の16進数の値が記憶される。パスワードがパスワード格納領域に記憶される態様については、後で図31を参照して説明する。すなわち、本実施形態では、パスワードが格納されるパスワード格納領域を備えるRAM204は、監視側認証情報記憶手段を構成する。   The next consecutive 16-byte area forms a password storage area. A password is stored in the password storage area. The password is information that is required when the host device requests the door monitoring unit 63 for a process related to a privilege command, which will be described later. Also, the password consists of 16 alphanumeric characters. That is, each byte stores a hexadecimal value for one character. The manner in which the password is stored in the password storage area will be described later with reference to FIG. That is, in the present embodiment, the RAM 204 including the password storage area in which the password is stored constitutes the monitoring side authentication information storage means.

次の連続する24バイトの領域(S1〜S24)には、24hドア監視ユニット63からホスト機器に情報を送信する際に、送信に係る情報が一時的に記憶される。すなわち、これら連続する24バイトの領域は、コマンド等を送信するときにバッファとして機能する送信バッファを形成する。   When the information is transmitted from the 24 h door monitoring unit 63 to the host device, the information related to the transmission is temporarily stored in the next continuous 24-byte area (S1 to S24). That is, these continuous 24 byte areas form a transmission buffer that functions as a buffer when transmitting a command or the like.

次の連続する24バイトの領域(R1〜R24)には、24hドア監視ユニット63がホスト機器から受信したコマンド及びそれに付随する情報が一時的に記憶される。すなわち、これら連続する24バイトの領域は、コマンド等を受信するときにバッファとして機能する受信バッファを形成する。   In the next continuous 24-byte area (R1 to R24), the command received by the 24 h door monitoring unit 63 from the host device and the information accompanying it are temporarily stored. That is, these continuous 24 byte areas form a reception buffer that functions as a buffer when receiving a command or the like.

次の連続する4バイトの領域は、記録開始時間カウンタ格納領域を形成する。記録開始時間カウンタ領域には、後で図21を参照して説明するドア監視ユニットメイン処理のS8で加算される記録開始時間カウンタの値が記憶される。   The next consecutive 4-byte area forms a recording start time counter storage area. In the recording start time counter area, the value of the recording start time counter to be added in S8 of the door monitoring unit main processing described later with reference to FIG. 21 is stored.

次の連続する4バイトの領域は、監視間隔カウンタ格納領域を形成する。監視間隔カウンタ格納領域には、後で図23を参照して説明するドア監視処理のS24で加算される監視間隔カウンタの値が記憶される。   The next consecutive 4-byte area forms a monitoring interval counter storage area. In the monitoring interval counter storage area, the value of the monitoring interval counter to be added in S24 of the door monitoring process described later with reference to FIG. 23 is stored.

次の連続する8バイトの領域は、乱数格納領域を形成する。乱数格納領域は、後で図31を参照して説明する乱数コマンド受信時処理のS121で生成される8桁(16進数)の乱数値が記憶される。すなわち、各バイトには、1桁分の値が記憶される。   The next consecutive 8-byte area forms a random number storage area. The random number storage area stores an 8-digit (hexadecimal number) random value generated in S121 of the random number command reception process described later with reference to FIG. That is, in each byte, a value for one digit is stored.

なお、図示は省略するが、RAM204には、上記の他、各種情報を記憶する格納領域が形成されている。
例えば、RAM204には、受信カウンタ格納領域が形成されている。受信カウンタ格納領域の値は、受信データを記憶させる受信バッファの領域(R1〜R24に対応)を示す。
Although illustration is omitted, in addition to the above, a storage area for storing various information is formed in the RAM 204.
For example, in the RAM 204, a reception counter storage area is formed. The value of the reception counter storage area indicates the area (corresponding to R1 to R24) of the reception buffer in which the reception data is stored.

<コマンド>
次に、24hドア監視ユニット63とホスト機器と間の通信で用いられるコマンドについて説明する。本実施形態では、24hドア監視ユニット63とホスト機器と間の通信で用いられるコマンドの種別として、「特権コマンド」と「一般コマンド」がある。特権コマンドは、ホスト機器が24hドア監視ユニットに各種設定を要求する際などに用いられる。一般コマンドは、ホスト機器が24hドア監視ユニットに情報の送信を要求する際などに用いられる。なお、後述する「特権コマンド」及び「一般コマンド」の24hドア監視ユニット63がホスト機器に送信するアンサでは、各コマンドのIDが、アンサ用のIDとして用いられる、すなわち、コマンドとアンサは、そのIDで一対一の関係が成立する。
<Command>
Next, commands used for communication between the 24 h door monitoring unit 63 and the host device will be described. In the present embodiment, there are “privileged command” and “general command” as types of command used in communication between the 24 h door monitoring unit 63 and the host device. The privileged command is used, for example, when the host device requests various settings from the 24 h door monitoring unit. The general command is used, for example, when the host device requests the 24 h door monitoring unit to transmit information. Note that in the answer that the door monitoring unit 63 of the “privileged command” and “general command” to be described later transmits to the host device, the ID of each command is used as the ID for the answer, that is, the command and the answer are The ID establishes a one-to-one relationship.

<特権コマンド>
まず、図13を参照して特権コマンドについて説明する。図13は、24hドア監視ユニット63とホスト機器と間の通信で用いられる特権コマンドを説明するための図である。
<Privileged command>
First, privileged commands will be described with reference to FIG. FIG. 13 is a diagram for describing a privileged command used in communication between the 24h door monitoring unit 63 and the host device.

図13に示すように、特権コマンドには、初期化コマンド、時計セットコマンド、監視間隔時間設定コマンド、記録開始時間設定コマンド、モード記録設定コマンド、秘密鍵設定コマンドがある。   As shown in FIG. 13, the privileged commands include an initialization command, a clock set command, a monitoring interval time setting command, a recording start time setting command, a mode recording setting command, and a secret key setting command.

(1)初期化コマンド
初期化コマンドは、ホスト機器が24hドア監視ユニット63に初期化を要求する際にホスト機器から24hドア監視ユニット63に送信されるコマンドである。初期化コマンドのIDは、「SI」である。
(1) Initialization Command The initialization command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to initialize. The ID of the initialization command is "SI".

初期化コマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す初期化アンサをホスト機器に送信する。また、24hドア監視ユニット63は、監視間隔時間設定及び記録開始時間設定を初期化する。具体的には、24hドア監視ユニット63は、EEPROM205に記憶されている監視間隔時間に対応するカウント数及び記録開始時間に対応するカウント数をクリアする。また、RAM204に記憶されている監視間隔カウンタの値及び記録開始時間カウンタの値をクリアする。   Having received the initialization command, the 24h door monitoring unit 63 transmits an initialization answer indicating that the command has been received to the host device. Also, the 24 h door monitoring unit 63 initializes the monitoring interval time setting and the recording start time setting. Specifically, the 24h door monitoring unit 63 clears the count number corresponding to the monitoring interval time stored in the EEPROM 205 and the count number corresponding to the recording start time. Further, the value of the monitoring interval counter and the value of the recording start time counter stored in the RAM 204 are cleared.

(2)時計セットコマンド
時計セットコマンドは、ホスト機器が24hドア監視ユニット63に年、月、日、時、分、秒そして曜日の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。時計セットコマンドのIDは、「ST」である。時計セットコマンドには、ホスト機器が備えるRTCから取得した年、月、日、時、分、秒そして曜日を示す情報が付随する。
(2) Clock Set Command The clock set command is sent from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to set the year, month, day, hours, minutes, seconds and days of the week. Is the command to be The ID of the clock set command is "ST". The clock set command is accompanied by information indicating the year, month, day, hour, minute, second and day of the week obtained from the RTC provided in the host device.

時計セットコマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す日時設定アンサをホスト機器に送信する。また、24hドア監視ユニット63は、時計セットコマンドに付随する年、月、日、時、分、秒そして曜日を示す情報に基いて、RTC201の年、月、日、時、分、秒そして曜日を設定する(後述の図29のS84参照)。このように、24hドア監視ユニット63の制御LSI200は、監視側計時設定手段を構成する。   Having received the clock set command, the 24h door monitoring unit 63 transmits a date and time setting answer indicating that the command has been received to the host device. Also, the 24h door monitoring unit 63 is based on the information indicating the year, month, day, hour, minute, second and day of the week attached to the clock set command, the RTC 201 year, month, day, hour, minute, second and day of the week. Are set (see S84 in FIG. 29 described later). As described above, the control LSI 200 of the 24 h door monitoring unit 63 constitutes the monitoring side time setting means.

(3)監視間隔時間設定コマンド
監視間隔時間設定コマンドは、ホスト機器が24hドア監視ユニット63に監視間隔時間の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。監視間隔時間設定コマンドのIDは、「SA」である。監視間隔時間設定コマンドには、監視間隔時間を示す情報(カウント数)が付随する。
(3) Monitoring interval time setting command The monitoring interval time setting command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to set the monitoring interval time. The ID of the monitoring interval time setting command is "SA". The monitoring interval time setting command is accompanied by information (count number) indicating the monitoring interval time.

監視間隔時間設定コマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す監視間隔時間設定アンサをホスト機器に送信する。また、24hドア監視ユニット63は、監視間隔時間設定コマンドに付随する監視間隔時間を示す情報(カウント数)に基いて、監視間隔時間を設定する。具体的には、24hドア監視ユニット63は、受信したカウント数を、EEPROM205における監視間隔時間格納領域に記憶させる。なお、当該領域に既に監視間隔時間に対応するカウント数が記憶されている場合は、今回記憶させる監視間隔時間に対応するカウント数を上書きする。 Having received the monitoring interval time setting command, the 24h door monitoring unit 63 transmits a monitoring interval time setting answer indicating that the command has been received to the host device. Also, the 24 h door monitoring unit 63 sets the monitoring interval time based on the information (count number) indicating the monitoring interval time attached to the monitoring interval time setting command. Specifically, the 24h door monitoring unit 63 stores the received count number in the monitoring interval time storage area in the EEPROM 205. When the count number corresponding to the monitoring interval time is already stored in the area, the count number corresponding to the monitoring interval time to be stored this time is overwritten.

(4)記録開始時間設定コマンド
記録開始時間設定コマンドは、ホスト機器が24hドア監視ユニット63に記録開始時間の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。記録開始時間設定コマンドのIDは、「SB」である。記録開始時間設定コマンドには、記録開始時間を示す情報(カウント数)が付随する。
(4) Recording Start Time Setting Command The recording start time setting command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to set the recording start time. The ID of the recording start time setting command is “SB”. The recording start time setting command is accompanied by information (count number) indicating the recording start time.

記録開始時間設定コマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す記録開始時間設定アンサをホスト機器に送信する。また、24hドア監視ユニット63は、記録開始時間設定コマンドに付随する記録開始時間を示す情報(カウント数)に基いて、記録開始時間を設定する。具体的には、24hドア監視ユニット63は、受信したカウント数を、EEPROM205における記録開始時間格納領域に記憶させる。なお、当該領域に既に記録開始時間に対応するカウント数が記憶されている場合は、今回記憶させる記録開始時間に対応するカウント数を上書きする。   Upon receiving the recording start time setting command, the 24h door monitoring unit 63 transmits a recording start time setting answer indicating that the command has been received to the host device. Also, the 24 h door monitoring unit 63 sets the recording start time based on the information (count number) indicating the recording start time attached to the recording start time setting command. Specifically, the 24h door monitoring unit 63 stores the received count number in the recording start time storage area in the EEPROM 205. When the count number corresponding to the recording start time is already stored in the area, the count number corresponding to the recording start time to be stored this time is overwritten.

(5)記録モード設定コマンド
記録モード設定コマンドは、ホスト機器が24hドア監視ユニット63に記録モード(「常時記録モード」又は「無記録モード」)の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。記録モード設定コマンドのIDは、「SC」である。記録モード設定コマンドには、記録モードを示す情報が付随する。
(5) Recording mode setting command When the host device requests the 24 h door monitoring unit 63 to set the recording mode ("always recording mode" or "no recording mode"), the recording mode setting command monitors the door 24 h from the host device. It is a command sent to the unit 63. The ID of the recording mode setting command is "SC". The recording mode setting command is accompanied by information indicating the recording mode.

記録モード設定コマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す記録モード設定アンサをホスト機器に送信する。また、24hドア監視ユニット63は、記録モード設定コマンドに付随する記録モードを示す情報に基いて、記録モードを設定する。具体的には、24hドア監視ユニット63は、EEPROM205の記録モード格納領域に、開閉履歴情報を常時記録させる「常時記録モード」又は、記録しない「無記録モード」を示す情報を記憶させる。   The 24h door monitoring unit 63 that has received the recording mode setting command transmits a recording mode setting answer indicating that the command has been received to the host device. Also, the 24 h door monitoring unit 63 sets the recording mode based on the information indicating the recording mode accompanying the recording mode setting command. Specifically, the 24h door monitoring unit 63 stores, in the recording mode storage area of the EEPROM 205, information indicating “always recording mode” for constantly recording the open / close history information or “non-recording mode” for not recording.

(6)秘密鍵設定コマンド
秘密鍵設定コマンドは、ホスト機器が24hドア監視ユニット63に秘密鍵の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。秘密鍵設定コマンドのIDは、「SW」である。秘密鍵設定コマンドには、16桁の英数字からなる秘密鍵が付随する。
(6) Secret Key Setting Command The secret key setting command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to set the secret key. The ID of the secret key setting command is "SW". The secret key setting command is accompanied by a 16-digit alphanumeric secret key.

秘密鍵設定コマンドを受信した24hドア監視ユニット63は、秘密鍵設定コマンドに付随する秘密鍵を、EEPROM205の秘密鍵格納領域に記憶させる(上書きする)。そして、秘密鍵設定コマンドに付随する秘密鍵データとEEPROM205に記憶されていうる秘密鍵とが一致するか否かの判定に基づいて、設定結果OKかNGか、を示すアンサをホスト機器に送信する。例えば、EEPROM205に障害が発生していて、秘密鍵設定コマンドに付随する秘密鍵を、EEPROM205に正常に記憶させることができなかった場合は、秘密鍵設定コマンドに付随する秘密鍵とEEPROM205に記憶されていうる秘密鍵とが一致しない。この場合は、設定結果NGの旨のアンサを送信する。   Having received the secret key setting command, the 24h door monitoring unit 63 stores (overwrites) the secret key attached to the secret key setting command in the secret key storage area of the EEPROM 205. Then, an answer indicating whether the setting result is OK or NG is transmitted to the host device based on the determination as to whether or not the secret key data attached to the secret key setting command matches the secret key stored in the EEPROM 205. . For example, when a failure occurs in the EEPROM 205 and the secret key attached to the secret key setting command can not be stored normally in the EEPROM 205, the secret key attached to the secret key setting command and the EEPROM 205 are stored. Does not match the possible secret key. In this case, an answer indicating that the setting result is NG is sent.

<一般コマンド>
次に、図14を参照して一般コマンドについて説明する。図14は、24hドア監視ユニット63とホスト機器と間の通信で用いられる一般コマンドを説明するための図である。
<General command>
Next, general commands will be described with reference to FIG. FIG. 14 is a diagram for explaining general commands used in communication between the 24h door monitoring unit 63 and the host device.

図14に示すように、一般コマンドには、シリアルIDコマンド、バージョン要求コマンド、乱数コマンド、ログインコマンド、ログアウトコマンド、時計読出コマンド、最新番号コマンド、開閉履歴情報読出コマンド、開閉履歴情報数コマンド、そしてステータス読出コマンドがある。   As shown in FIG. 14, the general command includes a serial ID command, a version request command, a random number command, a login command, a logout command, a clock read command, a latest number command, an open / close history information read command, an open / close history information count command, There is a status read command.

(1)シリアルIDコマンド
シリアルIDコマンドは、ホスト機器が24hドア監視ユニット63に24hドア監視ユニット63のシリアルIDの送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。シリアルIDコマンドのIDは、「CR」である。
(1) Serial ID Command The serial ID command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to transmit the serial ID of the 24 h door monitoring unit 63. . The ID of the serial ID command is "CR".

シリアルIDコマンドを受信した24hドア監視ユニット63は、EEPROM205に記憶されているシリアルIDをホスト機器に送信(返信)する。ホスト機器は、シリアルIDを受信すると、受信したシリアルIDと、ホスト機器が有する不揮発性の記憶装置に記憶されたシリアルIDとを比較する。   The 24h door monitoring unit 63 that has received the serial ID command transmits (returns) the serial ID stored in the EEPROM 205 to the host device. When the host device receives the serial ID, the host device compares the received serial ID with the serial ID stored in the nonvolatile storage device of the host device.

(2)バージョン要求コマンド
バージョン要求コマンドは、ホスト機器が24hドア監視ユニット63に24hドア監視ユニット63のプログラムバージョンの送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。バージョン要求コマンドのIDは、「CV」である。
(2) Version request command The version request command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to transmit the program version of the 24 h door monitoring unit 63. . The ID of the version request command is "CV".

バージョン要求コマンドを受信した24hドア監視ユニット63は、EEPROM205に記憶されているプログラムバージョンをホスト機器に送信(返信)する。ホスト機器は、プログラムバージョンを受信すると、受信したプログラムバージョンと、ホスト機器が有する不揮発性の記憶装置に記憶されたプログラムバージョンとを比較する。   Having received the version request command, the 24h door monitoring unit 63 transmits (returns) the program version stored in the EEPROM 205 to the host device. When the host device receives the program version, the host device compares the received program version with the program version stored in the non-volatile storage device of the host device.

(3)乱数コマンド
乱数コマンドは、ホスト機器が24hドア監視ユニット63に乱数値の送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。乱数コマンドのIDは、「CK」である。
(3) Random Number Command The random number command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests the 24 h door monitoring unit 63 to transmit a random value. The ID of the random number command is “CK”.

乱数コマンドを受信した24hドア監視ユニット63は、乱数発生回路208から取得した値を用いて規定の演算を行い8桁の乱数を発生させ、発生させた乱数値をホスト機器に送信(返信)する。また、24hドア監視ユニット63は、発生させた乱数値を、RAM204の乱数格納領域に記憶させる。
ホスト機器は、乱数値を受信すると、受信した乱数値をホスト機器に設けられた揮発性の記憶装置に記憶させる。
Having received the random number command, the 24h door monitoring unit 63 performs a prescribed operation using the value acquired from the random number generation circuit 208 to generate an 8-digit random number, and transmits (returns) the generated random value to the host device . Also, the 24h door monitoring unit 63 stores the generated random number value in the random number storage area of the RAM 204.
When the host device receives the random number value, the host device stores the received random number value in the volatile storage device provided in the host device.

(4)ログインコマンド
ログインコマンドは、ホスト機器が24hドア監視ユニット63に、特権コマンドに基く各種設定を要求できる状態に設定すること、すなわちログインを、要求するときに、ホスト機器から24hドア監視ユニット63に送信されるコマンドである。ログインコマンドのIDは、「CI」である。
(4) Login command The login command is set in a state where the host device can request various settings based on the privilege command to the 24h door monitoring unit 63, that is, when the login is requested, the 24h door monitoring unit from the host device This is a command sent to 63. The ID of the login command is "CI".

ログインコマンドを受信した24hドア監視ユニット63は、ログインコマンドに付随する16桁のパスワードと、RAM204のパスワード格納領域に記憶されているパスワードが一致するか否かを判別し、一致する場合はログイン許可(OK)の旨のアンサを送信(返信)する。一方、一致しない場合はログイン不許可(NG)の旨のアンサを送信(返信)する。   Having received the login command, the 24h door monitoring unit 63 determines whether the 16-digit password attached to the login command matches the password stored in the password storage area of the RAM 204. If the passwords match, login permission is permitted. Send (reply) an answer indicating (OK). On the other hand, if they do not match, an answer indicating that login is not permitted (NG) is sent (reply).

(5)ログアウトコマンド
ログアウトコマンドは、ホスト機器が24hドア監視ユニット63に、特権コマンドに基く各種設定を要求できない状態に設定すること、すなわちログアウト、を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。ログアウトコマンドのIDは、「CO」である。
(5) Logout Command When the host device can not request various settings based on the privileged command to the 24h door monitoring unit 63, that is, a logout command is requested from the host device when 24h door monitoring unit 63 is requested. Command sent to The ID of the logout command is "CO".

ログアウトコマンドを受信した24hドア監視ユニット63は、ログアウトを行う。具体的には、RAM204のログインフラグをOFFに設定(クリア)する。なお、後述するように、24hドア監視ユニット63は、ログイン状態のときに一般コマンドを受信すると、ログインフラグをOFFに設定(クリア)する(図28のS77参照)。
そして、ログアウトした旨を示すアンサ(ログアウトアンサ)をホスト機器に送信する。
Having received the logout command, the 24h door monitoring unit 63 logs out. Specifically, the login flag of the RAM 204 is set to OFF (cleared). As described later, when receiving the general command in the login state, the 24h door monitoring unit 63 sets (clears) the login flag to OFF (see S77 in FIG. 28).
Then, an answer (logout answer) indicating that the user has logged out is transmitted to the host device.

(6)時計読出コマンド
時計読出コマンドは、ホスト機器が24hドア監視ユニット63のRTC201が計時する現在時刻の読出を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。時計読出コマンドのIDは、「CT」である。
時計読出コマンドを受信した24hドア監視ユニット63は、RTC201が計時する現在時刻(監視側時刻)をホスト機器に送信(返信)する(後述の図35のS172参照)。このように、24hドア監視ユニット63の制御LSI200は、監視側時刻送信手段を構成する。また、24hドア監視ユニット63から送信されたRTC201が計時する時刻情報を受信する(後述の図48のS352参照)ホスト機器、例えば副制御基板72のサブCPU102は、設定側時刻受信手段を構成する。
(6) Clock Read Command The clock read command is a command transmitted from the host device to the 24 h door monitoring unit 63 when the host device requests reading of the current time clocked by the RTC 201 of the 24 h door monitoring unit 63. The ID of the clock read command is "CT".
The 24h door monitoring unit 63 having received the clock read command transmits (returns) the current time (monitoring time) clocked by the RTC 201 to the host device (see S172 in FIG. 35 described later). As described above, the control LSI 200 of the 24 h door monitoring unit 63 constitutes a monitoring time transmitting means. Also, the host device that receives the time information clocked by the RTC 201 transmitted from the 24 h door monitoring unit 63 (see S352 in FIG. 48 described later), for example, the sub CPU 102 of the sub control board 72 constitutes setting side time receiving means .

(7)最新番号コマンド
最新番号コマンドは、ホスト機器が、24hドア監視ユニット63に、最新の開閉履歴情報が記憶されている開閉履歴格納領域の番号である最新番号の送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。最新番号コマンドのIDは、「CN」である。
(7) Latest Number Command The latest number command is a host when the host device requests the 24h door monitoring unit 63 to transmit the latest number which is the number of the open / close history storage area in which the latest open / close history information is stored. It is a command transmitted from the device to the 24 h door monitoring unit 63. The ID of the latest number command is "CN".

最新番号コマンドを受信した24hドア監視ユニット63は、EEPROM205の最新番号格納領域を参照し、最新番号をホスト機器に送信(返信)する。
最新番号を受信したホスト機器は、ホスト機器が有する不揮発性の記憶装置に既に記憶されている最新番号と、受信した最新番号とを比較し、これらが一致しない場合、受信した最新番号を不揮発性の記憶装置に記憶させる(上書きする)。
Having received the latest number command, the 24h door monitoring unit 63 refers to the latest number storage area of the EEPROM 205 and transmits (replies) the latest number to the host device.
The host device having received the latest number compares the latest number already stored in the non-volatile storage device of the host device with the received latest number, and if these do not match, the received latest number is nonvolatile. Store (overwrite) in the storage device of.

(8)開閉履歴情報読出コマンド
開閉履歴情報読出コマンドは、ホスト機器が24hドア監視ユニット63に記憶されている開閉履歴情報の送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。開閉履歴情報読出コマンドのIDは、「CB」である。
(8) Opening / closing history information read command The opening / closing history information read command is transmitted from the host device to the 24h door monitoring unit 63 when the host device requests transmission of the opening / closing history information stored in the 24h door monitoring unit 63. It is a command. The ID of the open / close history information read command is "CB".

開閉履歴情報読出コマンドを受信した24hドア監視ユニット63は、開閉履歴情報読出コマンドに付随する番号に対応するEEPROM205の開閉履歴格納領域に記憶されている開閉履歴情報をホスト機器に送信(返信)する。
開閉履歴情報を受信したホスト機器は、受信した開閉履歴を不揮発性の記憶装置に記憶させる。
Having received the open / close history information read command, the 24h door monitoring unit 63 transmits (returns), to the host device, the open / close history information stored in the open / close history storage area of the EEPROM 205 corresponding to the number attached to the open / close history information read command. .
The host device having received the open / close history information stores the received open / close history in the non-volatile storage device.

(9)開閉履歴情報数コマンド
開閉履歴情報数コマンドは、ホスト機器が24hドア監視ユニット63に、24hドア監視ユニット63に記憶されている開閉履歴情報の数の送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。開閉履歴情報数コマンドのIDは、「CC」である。
(9) Opening / closing history information number command The opening / closing history information number command is sent from the host device when the host device requests the 24 h door monitoring unit 63 to transmit the number of opening / closing history information stored in the 24 h door monitoring unit 63. This command is sent to the door monitoring unit 63. The ID of the open / close history information number command is “CC”.

開閉履歴情報数コマンドを受信した24hドア監視ユニット63は、EEPROM205の履歴カウンタ格納領域を参照し、履歴カウンタの値をホスト機器に送信(返信)する。
履歴カウンタの値を受信したホスト機器は、ホスト機器が有する不揮発性の記憶装置に既に記憶されている履歴カウンタの値と、受信した履歴カウンタの値とを比較し、これらが一致しない場合、受信した履歴カウンタの値を不揮発性の記憶装置に記憶させる(上書きする)。
The 24h door monitoring unit 63 having received the open / close history information number command refers to the history counter storage area of the EEPROM 205, and transmits (returns) the value of the history counter to the host device.
The host device having received the value of the history counter compares the value of the history counter already stored in the non-volatile storage device of the host device with the value of the received history counter, and if these do not match, reception is performed The stored value of the history counter is stored (overwritten) in the non-volatile storage device.

(10)ステータス読出コマンド
ステータス読出コマンドは、ホスト機器が24hドア監視ユニット63に、フロントドア2bの開閉状態、すなわちステータスの送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。ステータス読出コマンドのIDは、「CS」である。
(10) Status Read Command The status read command is sent from the host device to the door monitoring unit 63 when the host device requests the door monitoring unit 63 to open or close the front door 2b. It is. The ID of the status read command is "CS".

ステータス読出コマンドを受信した24hドア監視ユニット63は、RAM204の第1検知結果格納領域に記憶されている開閉履歴情報をホスト機器に送信(返信)する。   The 24h door monitoring unit 63 having received the status read command transmits (returns) the open / close history information stored in the first detection result storage area of the RAM 204 to the host device.

なお、一般コマンドの送信に対応して24hドア監視ユニット63から受信した各種情報(シリアルID、プログラムバージョン、乱数値、開閉履歴情報番号、開閉履歴情報、開閉履歴情報数)は、例えば、ホスト機器が副制御基板72の場合は、サブDRAM103aやサブSRAM103bに記憶される。また、ホスト機器が設定機(図示省略)の場合は、設定機が備えるハードディスクやRAMに記憶される。また、受信した各種情報が記憶される記憶装置は、これに限らず、周知の書き換え可能な記憶装置を適宜選択可能である。   The various information (serial ID, program version, random number, open / close history information number, open / close history information, open / close history information number) received from the door monitoring unit 63 in response to the transmission of the general command is, for example, the host device Is the sub control substrate 72, it is stored in the sub DRAM 103a or the sub SRAM 103b. When the host device is a setting device (not shown), the setting information is stored in a hard disk or RAM included in the setting device. Further, the storage device in which the received various information is stored is not limited to this, and a well-known rewritable storage device can be appropriately selected.

<通信フォーマット>
次に、24hドア監視ユニット63とホスト機器と間の通信フォーマットについて、図15を参照して説明する。
図15は、24hドア監視ユニット63とホスト機器と間の通信フォーマットを説明するための図であり、Aは通信フォーマットの概要を説明するための図であり、Bは24hドア監視ユニット63からホスト機器へ乱数を送信する際の通信データの態様の一例を示す図である。
<Communication format>
Next, a communication format between the 24h door monitoring unit 63 and the host device will be described with reference to FIG.
FIG. 15 is a diagram for explaining the communication format between the 24h door monitoring unit 63 and the host device, where A is a diagram for explaining the outline of the communication format, and B is a diagram from the 24h door monitoring unit 63 to the host. It is a figure which shows an example of the aspect of communication data at the time of transmitting a random number to an apparatus.

図15Aに示すように、本実施形態において、通信データは、ASCIIコードの形式で送信される。通信データの先頭には通信伝文中のテキスト部分の開始を表す制御文字であるSTX(Start of TeXt)が配置される。STXの後方には、通信によって送受信される情報(TEXT)が配置される。TEXTの後方には、通信伝文中のテキスト部分の終了を表す制御文字であるETX(End of TeXt)が配置される。そして、ETXの後方には、TEXTの値の合計値に基く2桁のサム値が配置される。したがって、本実実施形態における通信データは、1バイトのSTX,0〜20バイト(送受信される情報によって異なる)のTEXT、1バイトのETX、2バイトのサム値からなる。   As shown in FIG. 15A, in the present embodiment, communication data is transmitted in the form of ASCII code. At the beginning of the communication data, STX (Start of TeXt), which is a control character representing the start of the text portion in the communication message, is disposed. Behind the STX, information (TEXT) transmitted and received by communication is arranged. At the back of TEXT, ETX (End of TeXt), which is a control character representing the end of the text portion in the communication message, is placed. Then, behind the ETX, a two digit sum value is placed based on the total value of the TEXT values. Therefore, the communication data in the present embodiment is made up of STX of 1 byte, TEXT of 0 to 20 bytes (depending on information to be transmitted / received), ETX of 1 byte, and a sum value of 2 bytes.

なお、図15Aに示す通信フォーマットは、ホスト機器から24hドア監視ユニット63へコマンドを送信する際だけでなく、ホスト機器から送信されたコマンドに応じて24hドア監視ユニット63がホスト機器へ返信するアンサにおいても用いられる。例えば、ホスト機器から送信された乱数コマンド(CK)に応じて24hドア監視ユニット63がホスト機器へ返信するアンサの例を図15B(24hドア監視ユニット63が「12345678」の乱数を生成した場合の例)に示す。図15Bに示すように、このアンサは、先頭にSTX(02H)に対応するASCIIコードが配置され、STXの後方には、乱数コマンドのアンサであることを示す乱数コマンドのID「CK」に対応するASCIIコードが配置される。また、その後方には、乱数の値である「12345678」に対応する8桁のASCIIコードが配置され、その後方には、ETX(03H)に対応するASCIIコード、そしてサム値に対応するASCIIコードが配置される。   The communication format shown in FIG. 15A is not only when the host device transmits a command to the 24 h door monitoring unit 63, but also the 24 h door monitoring unit 63 sends an answer to the host device in response to the command transmitted from the host device. Also used in For example, FIG. 15B shows an example of an answer in which the door monitoring unit 63 sends a response to the host device in response to a random number command (CK) sent from the host device as shown in FIG. 15B (24h door monitoring unit 63 generates a random number of “12345678” Example). As shown in FIG. 15B, in this answer, an ASCII code corresponding to STX (02H) is placed at the beginning, and after STX, it corresponds to ID "CK" of a random number command indicating that it is an answer to a random number command. ASCII code is placed. In addition, an 8-digit ASCII code corresponding to the value "12345678" which is a value of a random number is arranged behind it, and an ASCII code corresponding to ETX (03H) and an ASCII code corresponding to a sum value are arranged behind it. Is placed.

<シーケンス>
次に、シーケンスについて、図16を参照して、説明する。
図16は、ホスト機器が有しているシーケンステーブルの一例を示す図である。
<Sequence>
Next, the sequence will be described with reference to FIG.
FIG. 16 is a diagram showing an example of a sequence table held by the host device.

シーケンステーブルは、ホスト機器の不揮発性の記憶装置、例えばホスト機器が副制御基板72の場合はロムカートリッジ基板86に、また、ホスト機器が設定機(図示省略)の場合は、ハードディスクに記憶されている。   The sequence table is stored in a nonvolatile storage device of the host device, for example, in the ROM cartridge substrate 86 when the host device is the secondary control board 72, and in a hard disk when the host device is a setting machine (not shown). There is.

シーケンステーブルは、複数のシーケンスを規定している。シーケンスは、少なくとも一つの一般コマンド又は特権コマンドからなる。ホスト機器が行う所定の処理において、シーケンスが実行されると、シーケンスを構成するコマンドがホスト機器から24hドア監視ユニット63に送信される。シーケンステーブルは、シーケンスを構成するコマンドが複数ある場合は、コマンドの送信順も規定する。なお、いずれのシーケンスにおいても、ホスト機器は、シーケンスにおける後順のコマンドを、前順のコマンドに対応するアンサや情報を24hドア監視ユニット63から受信した後に、送信する。   The sequence table defines a plurality of sequences. The sequence consists of at least one general command or privileged command. In a predetermined process performed by the host device, when the sequence is executed, commands constituting the sequence are transmitted from the host device to the door monitoring unit 63 for 24 h. The sequence table also defines the transmission order of commands when there are a plurality of commands constituting a sequence. In any of the sequences, the host device transmits a post-order command in the sequence after receiving an answer or information corresponding to the pre-order command from the 24 h door monitoring unit 63.

図16に示すように、シーケンステーブルには、シーケンスとして、起動シーケンス、第1状態検知シーケンス、履歴取得シーケンス、全履歴取得シーケンス、初期化シーケンス、時計セットシーケンス、監視間隔時間設定シーケンス、記録開始時間設定シーケンスが規定されている。また、記録モード設定シーケンス、秘密鍵設定シーケンス、一括設定シーケンス、第2状態検知シーケンスが規定されている。   As shown in FIG. 16, in the sequence table, a start sequence, a first state detection sequence, a history acquisition sequence, an entire history acquisition sequence, an initialization sequence, a clock set sequence, a monitoring interval time setting sequence, a recording start time as a sequence A setup sequence is defined. In addition, a recording mode setting sequence, a secret key setting sequence, a batch setting sequence, and a second state detection sequence are defined.

シーケンステーブルの「Step」列には、シーケンスを構成するコマンドの送信順序が規定されている。また、「check」列がONになっているコマンドは、当該コマンドの送信後に、「条件」列に規定されている内容に応じた処理が行われることを示している。   In the “Step” column of the sequence table, the transmission order of the commands constituting the sequence is defined. Further, a command whose “check” column is ON indicates that processing according to the contents defined in the “condition” column is performed after transmission of the command.

(1)起動シーケンス
まず、起動シーケンスについて説明する。起動シーケンスは、バージョン要求コマンド(CV)、シリアルIDコマンド(CR)、ステータス読出コマンド(CS)からなる。ホスト機器は、起動シーケンスの実行時に、バージョン要求コマンド(CV)、シリアルIDコマンド(CR)、ステータス読出コマンド(CS)の順で、コマンドを24hドア監視ユニット63に送信する。
(1) Startup Sequence First, the startup sequence will be described. The start-up sequence includes a version request command (CV), a serial ID command (CR), and a status read command (CS). The host device transmits a command to the 24 h door monitoring unit 63 in the order of the version request command (CV), the serial ID command (CR), and the status read command (CS) when executing the boot sequence.

(2)第1状態検知シーケンス
第1状態検知シーケンスは、ステータス読出コマンド(CS)、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)からなる。ホスト機器は、第1状態検知シーケンスの実行時に、ステータス読出コマンド(CS)、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)の順で、コマンドを24hドア監視ユニット63に送信する。
(2) First State Detection Sequence The first state detection sequence includes a status read command (CS), an open / close history information number command (CC), and a latest number command (CN). When executing the first state detection sequence, the host device transmits a command to the 24 h door monitoring unit 63 in the order of the status read command (CS), the open / close history information number command (CC), and the latest number command (CN).

また、ホスト機器は、最新番号コマンド(CN)の送信後、受信した最新番号と、ホスト機器が有する不揮発性の記憶装置が記憶する最新番号が一致しない場合、すなわち最新番号に変化があれば、後述の履歴取得シーケンスを実行する。   Also, if the host device does not match the latest number received by the latest number command (CN) and the latest number stored in the non-volatile storage device possessed by the host device, that is, if there is a change in the latest number, Execute a history acquisition sequence described later.

(3)履歴取得シーケンス
履歴取得シーケンスは、開閉履歴情報読出コマンド(CB)からなり、履歴取得シーケンスの実行時に、ホスト機器は、開閉履歴情報読出コマンド(CB)を24hドア監視ユニット63に送信する。なお、この開閉履歴情報読出コマンドには、ホスト機器が有する不揮発性の記憶装置に記憶されている最新番号が付随する。
(3) History Acquisition Sequence The history acquisition sequence includes the open / close history information read command (CB), and the host device transmits the open / close history information read command (CB) to the door monitoring unit 63 for 24h when the history acquisition sequence is executed. . The open / close history information read command is accompanied by the latest number stored in the nonvolatile storage device of the host device.

(4)全履歴取得シーケンス
全履歴取得シーケンスは、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、開閉履歴情報読出コマンド(CB)からなる。ホスト機器は、第1状態検知シーケンスの実行時に、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、開閉履歴情報読出コマンド(CB)の順で、コマンドを24hドア監視ユニット63に送信する。
(4) All History Acquisition Sequence The all history acquisition sequence includes the open / close history information number command (CC), the latest number command (CN), and the open / close history information read command (CB). The host device transmits the command to the door monitoring unit 63 for 24h in the order of the open / close history information number command (CC), the latest number command (CN), and the open / close history information read command (CB) when executing the first state detection sequence Do.

ホスト機器は、最新番号コマンドを送信した後、受信した最新番号及び履歴カウンタの値と、ホスト機器が有する不揮発性の記憶装置が記憶する最新番号及び履歴カウンタの値が一致しない場合、受信した最新番号と履歴カウンタの値に基いて、開閉履歴情報を取得する先の開閉履歴情報格納領域の番号を特定する。このとき、履歴カウンタの値が「60」で、最新番号が「60」の場合は、開閉履歴情報を取得する先の開閉履歴情報格納領域の番号として、「1〜60」を特定する。また、履歴カウンタの値が「128」のときは、最新番号の値に関わらず、開閉履歴情報を取得する先の開閉履歴情報格納領域の番号として、「1〜128」を特定する。   The host device transmits the latest number command, and if the received latest number and the value of the history counter do not match the latest number stored in the non-volatile storage device of the host device and the value of the history counter, the received latest Based on the number and the value of the history counter, the number of the open / close history information storage area to which the open / close history information is acquired is specified. At this time, when the value of the history counter is “60” and the latest number is “60”, “1 to 60” is specified as the number of the open / close history information storage area to which the open / close history information is acquired. When the value of the history counter is “128”, “1 to 128” is specified as the number of the open / close history information storage area to which the open / close history information is acquired regardless of the value of the latest number.

そして、ホスト機器は、特定した開閉履歴情報格納領域の番号が付された開閉履歴情報格納領域の全てから開閉履歴情報を取得するまで、開閉履歴情報読出コマンド(CB)の送信を繰り返す(ループする)。   Then, the host device repeats (loops) transmission of the open / close history information read command (CB) until the open / close history information is acquired from all of the open / close history information storage areas to which the identified open / close history information storage area numbers are added. ).

なお、受信した最新番号と履歴カウンタの値と、ホスト機器が有する不揮発性の記憶装置が記憶する最新番号と履歴カウンタの値の比較の結果、これらが一致する場合は、開閉履歴情報を取得する開閉履歴情報格納領域の番号の特定及び開閉履歴情報読出コマンド(CB)の送信を行うことなく、全履歴取得シーケンスに係るコマンドの送信処理を終了する。   If the received latest number and the value of the history counter are compared with each other as a result of comparison between the received latest number and the value of the history counter and the latest number stored in the nonvolatile storage device of the host device and the value of the history counter, the open / close history information is acquired. The transmission process of the command related to the whole history acquisition sequence is ended without specifying the number of the open / close history information storage area and transmitting the open / close history information read command (CB).

(5)初期化シーケンス
初期化シーケンスは、乱数コマンド(CK)、ログインコマンド(CI)、初期化コマンド(SI)、ログアウトコマンド(CO)からなる。ホスト機器は、初期化シーケンスの実行時に、乱数コマンド(CK)、ログインコマンド(CI)、初期化コマンド(SI)、ログアウトコマンド(CO)の順でコマンドを送信する。
(5) Initialization Sequence The initialization sequence includes a random number command (CK), a login command (CI), an initialization command (SI), and a logout command (CO). When executing the initialization sequence, the host device transmits commands in the order of random number command (CK), login command (CI), initialization command (SI), and logout command (CO).

ホスト機器がログインコマンド(CI)を送信後、24hドア監視ユニット63からログイン不許可(NG)の旨のアンサを受信した場合、ホスト機器は、後順の初期化コマンド(SI)、ログアウトコマンド(CO)の送信を行わず、初期化シーケンスを構成するコマンドの送信処理を終了する。   If the host device receives an answer to the effect that login is not permitted (NG) from the door monitoring unit 63 after the host device transmits a login command (CI), the host device performs an initialization command (SI) in a later order, a logout command ( CO) transmission is not performed, and the transmission processing of the command constituting the initialization sequence is ended.

(6)時計セットシーケンス
時計セットシーケンスは、乱数コマンド(CK)、ログインコマンド(CI)、時計セットコマンド(ST)、ログアウトコマンド(CO)からなる。ホスト機器は、時計セットシーケンスの実行時に、乱数コマンド(CK)、ログインコマンド(CI)、時計セットコマンド(ST)、ログアウトコマンド(CO)の順でコマンドを送信する。
(6) Clock Set Sequence The clock set sequence includes a random number command (CK), a login command (CI), a clock set command (ST), and a logout command (CO). When executing the clock set sequence, the host device transmits commands in the order of random number command (CK), login command (CI), clock set command (ST), and logout command (CO).

ホスト機器がログインコマンド(CI)を送信後、24hドア監視ユニット63からログイン不許可(NG)の旨のアンサを受信した場合、ホスト機器は、後順の時計セットコマンド(ST)、ログアウトコマンド(CO)の送信を行わず、時計セットシーケンスを構成するコマンドの送信処理を終了する。   If the host device receives an answer to the effect of login non-permission (NG) from the door monitoring unit 63 after sending the login command (CI), the host device receives a clock set command (ST) in a back order, a logout command ( CO) transmission is not performed, and the transmission processing of the command that configures the clock set sequence is ended.

(7)監視間隔時間設定シーケンス
監視間隔時間設定シーケンスは、乱数コマンド(CK)、ログインコマンド(CI)、監視間隔時間設定コマンド(SA)、ログアウトコマンド(CO)からなる。ホスト機器は、監視間隔時間設定シーケンスの実行時に、乱数コマンド(CK)、ログインコマンド(CI)、監視間隔時間設定コマンド(SA)、ログアウトコマンド(CO)の順でコマンドを送信する。
(7) Monitoring Interval Time Setting Sequence The monitoring interval time setting sequence includes a random number command (CK), a login command (CI), a monitoring interval time setting command (SA), and a logout command (CO). When executing the monitoring interval time setting sequence, the host device transmits commands in the order of random number command (CK), login command (CI), monitoring interval time setting command (SA), and logout command (CO).

ホスト機器がログインコマンド(CI)を送信後、24hドア監視ユニット63からログイン不許可(NG)の旨のアンサを受信した場合、ホスト機器は、後順の監視間隔時間設定コマンド(SA)、ログアウトコマンド(CO)の送信を行わず、監視間隔時間設定シーケンスを構成するコマンドの送信処理を終了する。   If the host device receives an answer to the effect that login is not permitted (NG) from the door monitoring unit 63 after sending a login command (CI), the host device sends a monitoring interval time setting command (SA) in a later order, and logs out The command (CO) is not transmitted, and the transmission processing of the command constituting the monitoring interval time setting sequence is ended.

(8)記録開始時間設定シーケンス
記録開始時間設定シーケンスは、乱数コマンド(CK)、ログインコマンド(CI)、記録開始時間設定コマンド(SB)、ログアウトコマンド(CO)からなる。ホスト機器は、記録開始時間設定シーケンスの実行時に、乱数コマンド(CK)、ログインコマンド(CI)、記録開始時間設定コマンド(SB)、ログアウトコマンド(CO)の順でコマンドを送信する。
(8) Recording Start Time Setting Sequence The recording start time setting sequence includes a random number command (CK), a login command (CI), a recording start time setting command (SB), and a logout command (CO). When executing the recording start time setting sequence, the host device transmits commands in the order of random number command (CK), login command (CI), recording start time setting command (SB), and logout command (CO).

ホスト機器がログインコマンド(CI)を送信後、24hドア監視ユニット63からログイン不許可(NG)の旨のアンサを受信した場合、ホスト機器は、後順の記録開始時間設定コマンド(SB)、ログアウトコマンド(CO)の送信を行わず、記録開始時間設定シーケンスを構成するコマンドの送信処理を終了する。   If the host device receives an answer to the effect that login is not permitted (NG) from the door monitoring unit 63 after sending the login command (CI), the host device sends a recording start time setting command (SB) in a later order, logout The transmission of the command (CO) is not performed, and the transmission processing of the command constituting the recording start time setting sequence is ended.

(9)記録モード設定シーケンス
記録モード設定シーケンスは、乱数コマンド(CK)、ログインコマンド(CI)、記録モード設定コマンド(SC)、ログアウトコマンド(CO)からなる。ホスト機器は、記録モード設定シーケンスの実行時に、乱数コマンド(CK)、ログインコマンド(CI)、記録モード設定コマンド(SC)、ログアウトコマンド(CO)の順でコマンドを送信する。
(9) Recording Mode Setting Sequence The recording mode setting sequence includes a random number command (CK), a login command (CI), a recording mode setting command (SC), and a logout command (CO). When executing the recording mode setting sequence, the host device transmits commands in the order of a random number command (CK), a login command (CI), a recording mode setting command (SC), and a logout command (CO).

ホスト機器がログインコマンド(CI)を送信後、24hドア監視ユニット63からログイン不許可(NG)の旨のアンサを受信した場合、ホスト機器は、後順の記録モード設定コマンド(SC)、ログアウトコマンド(CO)の送信を行わず、記録モード設定シーケンスを構成するコマンドの送信処理を終了する。   If the host device receives an answer to the effect that login is not permitted (NG) from the door monitoring unit 63 after sending the login command (CI), the host device receives a recording mode setting command (SC) in a later order, a logout command The transmission of (CO) is not performed, and the transmission processing of the command constituting the recording mode setting sequence is ended.

(10)秘密鍵設定シーケンス
秘密鍵設定シーケンスは、乱数コマンド(CK)、ログインコマンド(CI)、秘密鍵設定コマンド(SW)、ログアウトコマンド(CO)からなる。ホスト機器は、秘密鍵設定シーケンスの実行時に、乱数コマンド(CK)、ログインコマンド(CI)、秘密鍵コマンド(SW)、ログアウトコマンド(CO)の順でコマンドを送信する。
(10) Secret Key Setting Sequence The secret key setting sequence includes a random number command (CK), a login command (CI), a secret key setting command (SW), and a logout command (CO). When executing the secret key setting sequence, the host device transmits commands in the order of random number command (CK), login command (CI), secret key command (SW), and logout command (CO).

ホスト機器がログインコマンド(CI)を送信後、24hドア監視ユニット63からログイン不許可(NG)の旨のアンサを受信した場合、ホスト機器は、後順の秘密鍵設定コマンド(SW)、ログアウトコマンド(CO)の送信を行わず、秘密鍵設定シーケンスを構成するコマンドの送信処理を終了する。   If the host device receives an answer to the effect that login is not permitted (NG) from the door monitoring unit 63 after sending the login command (CI), the host device sends a secret key setting command (SW) in a later order, a logout command (CO) transmission is not performed, and the transmission processing of the command constituting the secret key setting sequence is ended.

(11)一括設定シーケンス
一括設定シーケンスは、乱数コマンド(CK)、ログインコマンド(CI)、監視間隔時間設定コマンド(SA)、記録開始時間設定コマンド(SB)、記録モード設定コマンド(SC)、ログアウトコマンド(CO)からなる。ホスト機器は、一括設定シーケンスの実行時に、乱数コマンド(CK)、ログインコマンド(CI)、監視間隔時間設定コマンド(SA)、記録開始時間設定コマンド(SB)、記録モード設定コマンド(SC)、ログアウトコマンド(CO)の順でコマンドを送信する。
(11) Batch setting sequence Batch setting sequence includes random number command (CK), login command (CI), monitoring interval time setting command (SA), recording start time setting command (SB), recording mode setting command (SC), logout It consists of a command (CO). When executing the batch setting sequence, the host device performs a random number command (CK), a login command (CI), a monitoring interval time setting command (SA), a recording start time setting command (SB), a recording mode setting command (SC), and a logout Send commands in the order of command (CO).

ホスト機器がログインコマンド(CI)を送信後、24hドア監視ユニット63からログイン不許可(NG)の旨のアンサを受信した場合、ホスト機器は、後順の監視間隔時間設定コマンド(SA)、記録開始時間設定コマンド(SB)、記録モード設定コマンド(SC)、ログアウトコマンド(CO)の送信を行わず、一括設定シーケンスを構成するコマンドの送信処理を終了する。   If the host device receives an answer to the effect that login is not permitted (NG) from the door monitoring unit 63 after the host device transmits a login command (CI), the host device generates a monitoring interval time setting command (SA) in a later order, recording The transmission process of the commands constituting the batch setting sequence is ended without transmitting the start time setting command (SB), the recording mode setting command (SC), and the logout command (CO).

(12)第2状態検知シーケンス
第2状態検知シーケンスは、ステータス読出コマンド(CS)、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、時計読出コマンド(CT)からなる。ホスト機器は、第2状態検知シーケンスの実行時に、ステータス読出コマンド(CS)、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、時計読出コマンド(CT)の順で、コマンドを24hドア監視ユニット63に送信する。
(12) Second State Detection Sequence The second state detection sequence includes a status read command (CS), an open / close history information number command (CC), a latest number command (CN), and a clock read command (CT). When executing the second state detection sequence, the host device executes the status read command (CS), the open / close history information number command (CC), the latest number command (CN), and the clock read command (CT) in the order of 24h door command. Transmit to monitoring unit 63.

<秘密鍵設定時の処理>
次に、ホスト機器と24hドア監視ユニット63が行う処理の一例として、秘密鍵設定時の処理を、図17を参照して説明する。なお、以下の説明では、初期値の秘密鍵を変更する場合の秘密鍵設定時の処理について説明する。
図17は、秘密鍵設定時の処理について説明するための図である。
<Process when setting secret key>
Next, as an example of processing performed by the host device and the 24h door monitoring unit 63, processing at the time of setting the secret key will be described with reference to FIG. In the following description, processing when setting a secret key when changing the secret key of the initial value will be described.
FIG. 17 is a diagram for explaining the process when setting the secret key.

この処理において、ホスト機器は、シーケンステーブルを参照し、秘密鍵シーケンスを実行し、乱数コマンド(CK)、ログインコマンド(CI)、秘密鍵設定コマンド(SW)、ログアウトコマンド(CO)の順でコマンドを24hドア監視ユニット63に送信する。   In this process, the host device refers to the sequence table, executes the secret key sequence, and performs commands in the order of random number command (CK), login command (CI), secret key setting command (SW), and logout command (CO). To the door monitoring unit 63 for 24 h.

まず、ホスト機器は、乱数コマンド(CK)を24hドア監視ユニット63に送信する(C11)。乱数コマンドを受信した24hドア監視ユニット63は、乱数を発生させ、発生させた乱数値をホスト機器に送信(返信)する(C12:乱数アンサ)。   First, the host device transmits a random number command (CK) to the door monitoring unit 63 for 24 h (C11). The 24h door monitoring unit 63 having received the random number command generates a random number, and transmits (replies) the generated random number to the host device (C12: random number answer).

また、24hドア監視ユニット63は、発生させた乱数値を、RAM204の乱数格納領域に記憶させる。また、24hドア監視ユニット63は、EEPROM205の秘密鍵格納領域から初期値の秘密鍵を読み出し、読み出した秘密鍵とRAM204の乱数格納領域に記憶させた乱数値とを用いて、所定の演算を行ってパスワードを生成する。そして、生成したパスワードをRAM204のパスワード格納領域に記憶させる。   Also, the 24h door monitoring unit 63 stores the generated random number value in the random number storage area of the RAM 204. Also, the 24h door monitoring unit 63 reads the secret key of the initial value from the secret key storage area of the EEPROM 205, and performs a predetermined operation using the read secret key and the random number value stored in the random number storage area of the RAM 204. Generate a password. Then, the generated password is stored in the password storage area of the RAM 204.

一方、ホスト機器は、24hドア監視ユニット63から乱数値を受信すると、受信した乱数値を揮発性の記憶装置に記憶させる。また、ホスト機器は、不揮発性の記憶装置から初期値の秘密鍵を読み出す。なお、ホスト機器の不揮発性の記憶装置には、EEPROM205に記憶されていた初期値の秘密鍵と同じ秘密鍵が予め記憶されている。ホスト機器は、読み出した秘密鍵と揮発性の記憶装置に記憶させた乱数値とを用いて、所定の演算を行ってパスワードを生成する。そして、生成したパスワードを揮発性の記憶装置に記憶させる。   On the other hand, when the host device receives the random number value from the door monitoring unit 63, the host device stores the received random number value in the volatile storage device. Also, the host device reads the secret key of the initial value from the non-volatile storage device. In the non-volatile storage device of the host device, the same secret key as the secret key of the initial value stored in the EEPROM 205 is stored in advance. The host device performs a predetermined operation using the read secret key and the random number value stored in the volatile storage device to generate a password. Then, the generated password is stored in the volatile storage device.

次に、ホスト機器は、ログインコマンド(CI)を24hドア監視ユニット63に送信する(C13)。ログインコマンドには、ホスト機器が生成し、揮発性の記憶装置に記憶させたパスワードが付随している。   Next, the host device transmits a login command (CI) to the door monitoring unit 63 for 24 h (C13). The login command is accompanied by a password generated by the host device and stored in the volatile storage device.

ログインコマンドを受信した24hドア監視ユニット63は、ログインコマンドに付随するパスワードと、RAM204のパスワード格納領域に記憶されているパスワードが一致するか否かを判別し、一致する場合はログイン許可(OK)の旨、一致しない場合はログイン不許可(NG)の旨のアンサを送信(返信)する(C14)。   Upon receiving the login command, the 24h door monitoring unit 63 determines whether the password attached to the login command matches the password stored in the password storage area of the RAM 204, and if they match, login permission (OK) If there is no match, an answer indicating the login non-permission (NG) is sent (reply) (C14).

24hドア監視ユニット63からログイン不許可の旨のアンサを受信した場合、ホスト機器は、第1警告表示処理を行う。ホスト機器は、第1警告表示処理において、ホスト機器が有する表示装置にログイン不許可の旨を示す画面を表示させる。例えば、ホスト機器が副制御基板72の場合は、液晶表示装置11(図2参照)に図19に示すように、画面の中央に「監視ユニットにログインできません。」というメッセージが配置された警告画面を表示する。また、この警告画面の下部には、「監視ユニットの状態を確認してください。尚、監視ユニットの設定は1時間行えません。」というメッセージが配置されている。   When receiving an answer from the door monitoring unit 63 indicating that login is not permitted, the host device performs a first warning display process. The host device causes the display device of the host device to display a screen indicating that login is not permitted in the first warning display process. For example, when the host device is the sub control board 72, as shown in FIG. 19 on the liquid crystal display device 11 (see FIG. 2), a warning screen in which a message “can not log in to monitoring unit” is arranged at the center of the screen. Display Further, a message “Please check the status of the monitoring unit. The setting of the monitoring unit can not be performed for one hour.” Is arranged at the bottom of this warning screen.

24hドア監視ユニット63からログイン許可の旨のアンサを受信した場合、ホスト機器は、秘密鍵設定コマンド(SW)を24hドア監視ユニット63に送信する。秘密鍵設定コマンドには、変更に係る秘密鍵が付随する。なお、変更に係る秘密鍵は、ホスト機器が自動的に生成してもよいし、ホスト機器の入力操作部(図示省略)を操作者に操作させて入力させてもよく、また、予めホスト機器の不揮発性の記憶装置に記憶しておいてもよい。   When receiving an answer to the effect of login permission from the 24 h door monitoring unit 63, the host device transmits a secret key setting command (SW) to the 24 h door monitoring unit 63. The secret key setting command is accompanied by a secret key related to the change. Note that the host device may automatically generate the secret key related to the change, or the operator may operate the input operation unit (not shown) of the host device to input it. May be stored in a non-volatile storage device.

秘密鍵設定コマンドを受信した24hドア監視ユニット63は、秘密鍵設定コマンドに付随する秘密鍵を、EEPROM205の秘密鍵格納領域に記憶させる(上書きする)。そして、上述の設定結果OKかNGか、を示すアンサをホスト機器に送信する(C16)。   Having received the secret key setting command, the 24h door monitoring unit 63 stores (overwrites) the secret key attached to the secret key setting command in the secret key storage area of the EEPROM 205. Then, an answer indicating whether the setting result is OK or NG is transmitted to the host device (C16).

次に、ホスト機器は、ログアウトコマンド(CO)を24hドア監視ユニット63に送信する(C17)。ログアウトコマンドを受信した24hドア監視ユニット63は、ログアウトを行う。そして、ログアウトした旨を示すログアウトアンサをホスト機器に送信する(C18)。   Next, the host device transmits a logout command (CO) to the door monitoring unit 63 for 24 h (C17). Having received the logout command, the 24h door monitoring unit 63 logs out. Then, a logout answer indicating that the user has logged out is transmitted to the host device (C18).

なお、本実施形態において、乱数コマンド(CK)、ログインコマンド(CI)の順で送信する他のシーケンス(具体的には、初期化シーケンス、時計セットシーケンス、監視間隔時間設定シーケンス、記録開始時間設定シーケンス、記録モード設定シーケンス、一括設定シーケンス)の実行時における、乱数コマンド(CK)、ログインコマンド(CI)に係る処理の内容は共通である。
また、上記では、初期値の秘密鍵を変更する場合の秘密鍵設定時の処理について説明したが、既に初期値から変更された秘密鍵を変更する場合の秘密鍵設定時の処理も、パスワードの作成に用いられる秘密鍵が初期値から変更された秘密鍵を用いる以外は、上記と同様である。
In this embodiment, other sequences transmitted in the order of random number command (CK) and login command (CI) (specifically, initialization sequence, clock set sequence, monitoring interval time setting sequence, recording start time setting) The contents of processing relating to the random number command (CK) and the login command (CI) at the time of execution of the sequence, recording mode setting sequence, batch setting sequence) are common.
Also, although the process at the time of setting the secret key when changing the secret key of the initial value has been described above, the process at the time of setting the secret key when changing the secret key already changed from the initial value The same as the above except that the secret key used for creation uses the secret key changed from the initial value.

<起動時〜監視中の処理>
次に、ホスト機器と24hドア監視ユニット63が行う処理の他の例として、ホスト機器の起動時からホスト機器がフロントドア2bの開閉状態を監視しているときの処理を、図18を参照して説明する。
図18は、起動時〜監視中の処理について説明するための図である。
<Start-up processing during monitoring>
Next, as another example of the processing performed by the host device and the 24 h door monitoring unit 63, processing when the host device monitors the open / close state of the front door 2b from the start of the host device is referred to FIG. Explain.
FIG. 18 is a diagram for describing processing from startup to monitoring.

この処理の冒頭において、ホスト機器は、シーケンステーブルを参照し、起動シーケンスを実行し、バージョン要求コマンド(CV)、シリアルIDコマンド(CR)、ステータス読出コマンド(CS)の順で、コマンドを24hドア監視ユニット63に送信する。   At the beginning of this process, the host device refers to the sequence table, executes the start-up sequence, executes the version request command (CV), the serial ID command (CR), and the status read command (CS) in this order, and executes the 24h door command. Transmit to monitoring unit 63.

まず、ホスト機器は、バージョン要求コマンド(CV)を24hドア監視ユニット63に送信する(C21)。バージョン要求コマンドを受信した24hドア監視ユニット63は、EEPROM205に記憶されているプログラムバージョンをホスト機器に送信(返信)する(C22:バージョンアンサ)。   First, the host device transmits a version request command (CV) to the door monitoring unit 63 for 24 h (C21). The 24h door monitoring unit 63 having received the version request command transmits (returns) the program version stored in the EEPROM 205 to the host device (C22: version answer).

ホスト機器は、プログラムバージョンを受信すると、受信したプログラムバージョンと、ホスト機器が有する不揮発性の記憶装置に記憶されたプログラムバージョンとを比較する。そして、一致しない場合は、第2警告表示処理を行う。ホスト機器は、第2警告表示処理において、ホスト機器が有する表示装置にログイン不許可の旨を示す画面を表示させる。例えば、ホスト機器が副制御基板72の場合は、液晶表示装置11に、画面の中央に「プログラムバージョンが異なります」というメッセージが配置された警告画面(図示省略)を表示する。   When the host device receives the program version, the host device compares the received program version with the program version stored in the non-volatile storage device of the host device. Then, if they do not match, a second warning display process is performed. The host device displays a screen indicating that login is not permitted on the display device of the host device in the second warning display process. For example, when the host device is the sub control board 72, the liquid crystal display device 11 displays a warning screen (not shown) in which a message "program version is different" is arranged at the center of the screen.

また、ホスト機器は、プログラムバージョンを受信すると、シリアルIDコマンド(CR)を24hドア監視ユニット63に送信する(C23)。シリアルIDコマンドを受信した24hドア監視ユニット63は、EEPROM205に記憶されているシリアルIDをホスト機器に送信(返信)する(C24:シリアルIDアンサ)。   Also, when receiving the program version, the host device transmits a serial ID command (CR) to the door monitoring unit 63 for 24 h (C23). The 24h door monitoring unit 63 having received the serial ID command transmits (replies) the serial ID stored in the EEPROM 205 to the host device (C24: serial ID answer).

ホスト機器は、シリアルIDを受信すると、受信したシリアルIDと、ホスト機器が有する不揮発性の記憶装置に記憶されたシリアルIDとを比較する。そして、一致しない場合は、第3警告表示処理を行う。ホスト機器は、第3警告表示処理において、24h監視ドア監視ユニットが交換された旨を示す画面を表示させる。例えば、ホスト機器が副制御基板72の場合は、液晶表示装置11(図2参照)に、図20に示すように画面の中央に「監視ユニットが交換されました。」というメッセージが配置された警告画面を表示する。また、この警告画面の下部には、ホスト機器の記憶装置に記憶されているシリアルIDが「OLD UNIT SERIAL ID」として表示され、受信したシリアルIDが「NEW UNIT SERIAL ID」として表示される。   When the host device receives the serial ID, the host device compares the received serial ID with the serial ID stored in the nonvolatile storage device of the host device. Then, if they do not match, a third warning display process is performed. The host device displays a screen indicating that the monitoring door monitoring unit 24h has been replaced in the third warning display process. For example, when the host device is the sub control board 72, the liquid crystal display device 11 (see FIG. 2) has the message "monitoring unit has been replaced" in the center of the screen as shown in FIG. Display a warning screen. In the lower part of this warning screen, the serial ID stored in the storage device of the host device is displayed as "OLD UNIT SERIAL ID", and the received serial ID is displayed as "NEW UNIT SERIAL ID".

また、ホスト機器は、シリアルIDを受信すると、ステータス読出コマンド(CS)を24hドア監視ユニット63に送信する(C25)。ステータス読出コマンドを受信した24hドア監視ユニット63は、RAM204の第1検知結果格納領域に記憶されている開閉履歴情報をホスト機器に送信(返信)する(C26:ステータスアンサ)。   When the host device receives the serial ID, it transmits a status read command (CS) to the door monitoring unit 63 for 24 h (C25). The 24h door monitoring unit 63 having received the status read command transmits (returns) the open / close history information stored in the first detection result storage area of the RAM 204 to the host device (C26: status answer).

起動シーケンスに係るコマンドの送信が終了すると、ホスト機器は、シーケンステーブルを参照し、全履歴取得シーケンスを実行し、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、開閉履歴情報読出コマンド(CB)の順で、コマンドを24hドア監視ユニット63に送信する。   When the transmission of the command related to the activation sequence is completed, the host device refers to the sequence table and executes the all history acquisition sequence, and the open / close history information number command (CC), the latest number command (CN), the open / close history information read command A command is sent to the door surveillance unit 63 in the order of (CB) 24 h.

まず、ホスト機器は、開閉履歴情報数コマンド(CC)を送信する(C27)。開閉履歴情報数コマンドを受信した24hドア監視ユニット63は、履歴カウンタの値をホスト機器に送信する(C28:開閉履歴情報数アンサ)。   First, the host device transmits an open / close history information number command (CC) (C27). The 24h door monitoring unit 63 having received the open / close history information count command transmits the value of the history counter to the host device (C28: open / close history information count answer).

次いで、ホスト機器は、最新番号コマンド(CN)を送信する(C29)。最新番号コマンドを受信した24hドア監視ユニット63は、最新番号をホスト機器に送信する(C28:最新番号アンサ)。   Next, the host device transmits a latest number command (CN) (C29). The 24h door monitoring unit 63 having received the latest number command transmits the latest number to the host device (C28: latest number answer).

ホスト機器は、受信した最新番号と履歴カウンタの値を、ホスト機器が有する不揮発性の記憶装置が記憶する最新番号と履歴カウンタの値と比較する。比較の結果、差異がある場合は、最新番号と履歴カウンタの値に基いて、開閉履歴情報を取得する先の開閉履歴情報格納領域の番号を特定する。そして、ホスト機器は、特定した開閉履歴情報格納領域の番号が付された開閉履歴情報格納領域を指定した開閉履歴情報読出コマンド(CB)を送信する(C31)。   The host device compares the received latest number and the value of the history counter with the latest number stored in the nonvolatile storage device of the host device and the value of the history counter. If there is a difference as a result of the comparison, the number of the open / close history information storage area to which the open / close history information is acquired is specified based on the latest number and the value of the history counter. Then, the host device transmits an open / close history information read command (CB) specifying the open / close history information storage area to which the identified open / close history information storage area number is attached (C31).

開閉履歴情報読出コマンドを受信した24hドア監視ユニット63は、読出コマンドに付随する番号に対応する開閉履歴格納領域に記憶されている開閉履歴情報をホスト機器に送信(返信)する(C32:開閉履歴情報読出アンサ)。   The 24h door monitoring unit 63 having received the open / close history information read command transmits (returns) the open / close history information stored in the open / close history storage area corresponding to the number attached to the read command to the host device (C32: open / close history) Information reading answer).

なお、C31及びC32は、特定した開閉履歴情報格納領域の番号が付された開閉履歴情報格納領域の全てから開閉履歴情報を取得するまで繰り返される。   C31 and C32 are repeated until the open / close history information is acquired from all of the open / close history information storage areas to which the identified open / close history information storage area numbers have been assigned.

全履歴取得シーケンスに係るコマンドの送信が終了すると、ホスト機器は、シーケンステーブルを参照し、第1状態検知シーケンスを実行し、ステータス読出コマンド(CS)、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)の順で、コマンドを24hドア監視ユニット63に送信する。なお、以降、第1状態検知シーケンスは、所定の間隔、本実施形態では500msec毎に実行される。   When the transmission of the command related to the all history acquisition sequence is completed, the host device refers to the sequence table and executes the first state detection sequence, and the status read command (CS), open / close history information count command (CC), latest number The command is transmitted to the door monitoring unit 63 in the order of the command (CN) 24 h. Note that, thereafter, the first state detection sequence is executed at predetermined intervals, for example, every 500 msec in the present embodiment.

まず、ホスト機器は、ステータス読出コマンド(CS)を、24hドア監視ユニット63に送信する(C33)。ステータス読出コマンドを受信した24hドア監視ユニット63は、RAM204の第1検知結果格納領域に記憶されている開閉履歴情報をホスト機器に送信(返信)する(C34:ステータスアンサ)。   First, the host device transmits a status read command (CS) to the door monitoring unit 63 for 24 h (C33). The 24h door monitoring unit 63 having received the status read command transmits (returns) the open / close history information stored in the first detection result storage area of the RAM 204 to the host device (C34: status answer).

受信した開閉履歴情報が、フロントドア2bの開放状態を示している場合、ホスト機器は、ホスト機器に接続された表示装置(ホスト機器が副制御基板72の場合は液晶表示装置11)にフロントドア2bが開放状態である旨を示す画面(図示省略)を表示させる(ドアオープン表示)。   When the received opening and closing history information indicates the open state of the front door 2b, the host device is connected to the display device connected to the host device (the liquid crystal display device 11 when the host device is the sub control board 72) A screen (not shown) indicating that 2b is in the open state is displayed (door open display).

次いで、ホスト機器は、開閉履歴情報数コマンド(CC)を、24hドア監視ユニット63に送信する(C35)。開閉履歴情報数コマンドを受信した24hドア監視ユニット63は、EEPROM205の履歴カウンタ格納領域を参照し、履歴カウンタの値をホスト機器に送信(返信)する(C35:開閉履歴情報数アンサ)。履歴カウンタの値を受信したホスト機器は、ホスト機器が有する不揮発性の記憶装置に既に記憶されている履歴カウンタの値と、受信した履歴カウンタの値とを比較し、これらが一致しない場合、受信した履歴カウンタの値を不揮発性の記憶装置に記憶させる(上書きする)。   Next, the host device transmits an open / close history information number command (CC) to the door monitoring unit 63 for 24 h (C35). The 24h door monitoring unit 63 having received the open / close history information number command refers to the history counter storage area of the EEPROM 205 and transmits (replies) the value of the history counter to the host device (C35: open / close history information number answerer). The host device having received the value of the history counter compares the value of the history counter already stored in the non-volatile storage device of the host device with the value of the received history counter, and if these do not match, reception is performed The stored value of the history counter is stored (overwritten) in the non-volatile storage device.

次いで、ホスト機器は、最新番号コマンド(CN)を、24hドア監視ユニット63に送信する(C37)。最新番号コマンドを受信した24hドア監視ユニット63は、EEPROM205の最新番号格納領域を参照し、最新番号をホスト機器に送信(返信)する(C38:最新番号アンサ)。最新番号を受信したホスト機器は、ホスト機器が有する不揮発性の記憶装置に既に記憶されている最新番号と、受信した最新番号とを比較し、これらが一致しない場合、受信した最新番号を不揮発性の記憶装置に記憶させる(上書きする)。   Next, the host device transmits the latest number command (CN) to the 24 h door monitoring unit 63 (C37). The 24h door monitoring unit 63 having received the latest number command refers to the latest number storage area of the EEPROM 205, and transmits (replies) the latest number to the host device (C38: latest number answer). The host device having received the latest number compares the latest number already stored in the non-volatile storage device of the host device with the received latest number, and if these do not match, the received latest number is nonvolatile. Store (overwrite) in the storage device of.

また、ホスト機器は、受信した最新番号と、不揮発性の記憶装置が記憶する最新番号が一致しない場合、履歴取得シーケンスを実行する。   The host device executes the history acquisition sequence when the received latest number does not match the latest number stored in the non-volatile storage device.

ホスト機器は、履歴取得シーケンスを実行し、開閉履歴情報読出コマンド(CB)を24hドア監視ユニット63に送信する。なお、この開閉履歴情報読出コマンドには、ホスト機器が有する不揮発性の記憶装置に記憶されている最新番号が付随する。   The host device executes a history acquisition sequence, and transmits an open / close history information read command (CB) to the door monitoring unit 63 for 24 h. The open / close history information read command is accompanied by the latest number stored in the nonvolatile storage device of the host device.

開閉履歴情報読出コマンドを受信した24hドア監視ユニット63は、開閉履歴情報読出コマンドに付随する番号に対応する開閉履歴格納領域に記憶されている開閉履歴情報をホスト機器に送信(返信)する(C40:開閉履歴情報読出アンサ)。そして、開閉履歴情報を受信したホスト機器は、受信した開閉履歴を不揮発性の記憶装置に記憶させる。   Having received the open / close history information read command, the 24h door monitoring unit 63 transmits (returns), to the host device, the open / close history information stored in the open / close history storage area corresponding to the number attached to the open / close history information read command (C40) : Opening and closing history information reading answer). Then, the host device having received the opening and closing history information stores the received opening and closing history in the non-volatile storage device.

<24hドア監視ユニットの制御LSI200が行う処理>
次に、24hドア監視ユニット63の制御LSI200が行う各種処理について、図21〜図35を参照して説明する。
<Process Performed by Control LSI 200 of Door Monitoring Unit for 24 h>
Next, various processes performed by the control LSI 200 of the 24 h door monitoring unit 63 will be described with reference to FIGS.

(1)ドア監視ユニットメイン処理
まず、制御LSI200が行うドア監視ユニットメイン処理について、図21を参照して説明する。
図21は、本実施形態におけるドア監視ユニットメイン処理の例を示すフローチャートである。
(1) Door Monitoring Unit Main Process First, the door monitoring unit main process performed by the control LSI 200 will be described with reference to FIG.
FIG. 21 is a flowchart showing an example of a door monitoring unit main process in the present embodiment.

ドア監視ユニットメイン処理において、制御LSI200は、まず、初期化処理を行う(S1)。初期化処理において、制御LSI200は、EEPROM205に記憶されている監視間隔時間に対応するカウント数及び記録開始時間に対応するカウント数をクリアする。また、RAM204に記憶されている監視間隔カウンタの値及び記録開始時間カウンタの値をクリアする。   In the door monitoring unit main process, the control LSI 200 first performs an initialization process (S1). In the initialization process, the control LSI 200 clears the count number corresponding to the monitoring interval time stored in the EEPROM 205 and the count number corresponding to the recording start time. Further, the value of the monitoring interval counter and the value of the recording start time counter stored in the RAM 204 are cleared.

次いで、制御LSI200は、ポート入力処理を行う(S2)。ポート入力処理において、制御LSI200は、フロントドア2bが開放状態か閉止状態かを示す情報をI/Oポート回路209の入力ポートから取得し、取得した情報をRAM204に記憶する。ポート入力処理の具体的な内容は、後で図22を参照して説明する。   Next, the control LSI 200 performs port input processing (S2). In the port input process, the control LSI 200 acquires, from the input port of the I / O port circuit 209, information indicating whether the front door 2b is in the open state or the closed state, and stores the acquired information in the RAM 204. The specific contents of the port input process will be described later with reference to FIG.

次いで、制御LSI200は、ドア監視処理を行う(S3)。ドア監視処理では、制御LSI200は、開閉履歴情報をEEPROM205に記憶させる。ドア監視処理の具体的な内容は、後で図23を参照して説明する。   Next, the control LSI 200 performs door monitoring processing (S3). In the door monitoring process, the control LSI 200 stores the open / close history information in the EEPROM 205. The specific content of the door monitoring process will be described later with reference to FIG.

次いで、制御LSI200は、受信処理を行う(S4)。受信処理では、制御LSI200は、後述する受信割込み処理(図27参照)でホスト機器から受信したコマンドに応じた各種処理を行う。受信処理の具体的な内容は、後で図28を参照して説明する。   Next, the control LSI 200 performs reception processing (S4). In the reception process, the control LSI 200 performs various processes according to the command received from the host device in the reception interrupt process (see FIG. 27) described later. The specific content of the reception process will be described later with reference to FIG.

次いで、制御LSI200は、送信処理を行う(S5)。送信処理では、制御LSI200は、ホスト機器に各種アンサを送信する。送信処理の具体的な内容は、後で図33を参照して説明する。   Next, the control LSI 200 performs transmission processing (S5). In the transmission process, the control LSI 200 transmits various answers to the host device. The specific content of the transmission process will be described later with reference to FIG.

次いで、制御LSI200は、周期ウェイト処理を行う(S6)。周期ウェイト処理では、制御LSI200は、前回の周期ウェイト処理から20msec経過したか否かを判別し、経過していない場合は経過するまで、次の処理(S7)への移行を保留し、経過してから処理をS7に移行させる。このため、制御LSI200が実行する各種処理における各種カウンタに1を加算する処理は、20msec毎に1回実行されることになる。なお、制御LSI200が実行する各種処理における各種カウンタに1を加算する処理には、ドア監視ユニットメイン処理の後述するS8、後述するドア監視処理(図23参照)のS24がある。   Next, the control LSI 200 performs periodic weight processing (S6). In the cycle weight process, the control LSI 200 determines whether 20 msec has elapsed from the previous cycle weight process, and if not, suspends the transition to the next process (S7) until it elapses. Then, the process shifts to S7. Therefore, the process of adding 1 to the various counters in the various processes executed by the control LSI 200 is performed once every 20 msec. The process of adding 1 to various counters in various processes executed by the control LSI 200 includes S8 described later of the door monitoring unit main process and S24 described later of the door monitoring process (see FIG. 23).

次いで、制御LSI200は、RAM204の記録開始時間カウンタ格納領域及びEEPROM205の記録開始時間格納領域を参照し、記録開始時間カウンタの値が記録開始時間に対応するカウント数未満か否かを判別する(S7)。S7において、記録開始時間カウンタの値が記録開始時間に対応するカウント数未満でないと判別したとき(S7がNO判定の場合)、制御LSI200は、処理をS2に移行し、S2以降の処理を繰り返す。   Next, the control LSI 200 refers to the recording start time counter storage area of the RAM 204 and the recording start time storage area of the EEPROM 205, and determines whether the value of the recording start time counter is less than the count number corresponding to the recording start time (S7) ). When it is determined in S7 that the value of the recording start time counter is not less than the count number corresponding to the recording start time (when S7 is NO), the control LSI 200 shifts the processing to S2 and repeats the processing from S2 onwards. .

一方、S7において、記録開始時間カウンタの値が記録開始時間に対応するカウント数未満と判別したとき(S7がYES判定の場合)、制御LSI200は、記録開始時間カウンタの値に1を加算する(S8)。その後、制御LSI200は、処理をS2に移行し、S2以降の処理を繰り返す。   On the other hand, when it is determined in S7 that the value of the recording start time counter is less than the count number corresponding to the recording start time (if S7 is YES), the control LSI 200 adds 1 to the value of the recording start time counter ( S8). After that, the control LSI 200 shifts the processing to S2, and repeats the processing after S2.

(2)ポート入力処理
次に、ドア監視ユニットメイン処理(図21参照)のS2におけるポート入力処理について、図22を参照して説明する。
図22は、本実施形態におけるポート入力処理の例を示すフローチャートである。
(2) Port Input Process Next, the port input process in S2 of the door monitoring unit main process (see FIG. 21) will be described with reference to FIG.
FIG. 22 is a flowchart showing an example of port input processing in the present embodiment.

ポート入力処理において、制御LSI200は、まず、フロントドア2bが開放状態か閉止状態かを示す状態情報をI/Oポート回路209の入力ポートから取得する(S11)。   In the port input process, the control LSI 200 first acquires state information indicating whether the front door 2b is open or closed from the input port of the I / O port circuit 209 (S11).

次いで、制御LSI200は、取得した状態情報をRAM204の入力ポート情報格納領域に保存する(S12)。そして、制御LSI200は、ポート入力処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS3に戻す。   Next, the control LSI 200 stores the acquired state information in the input port information storage area of the RAM 204 (S12). Then, the control LSI 200 ends the port input processing, and returns the processing to S3 of the door monitoring unit main processing (see FIG. 21).

(3)ドア監視処理
次に、ドア監視ユニットメイン処理(図21参照)のS3におけるドア監視処理について、図23を参照して説明する。
図23は、本実施形態におけるドア監視処理の例を示すフローチャートである。
(3) Door Monitoring Process Next, the door monitoring process in S3 of the door monitoring unit main process (see FIG. 21) will be described with reference to FIG.
FIG. 23 is a flowchart showing an example of the door monitoring process in the present embodiment.

ドア監視処理において、制御LSI200は、まず、ドア監視状態検知処理を行う(S21)。ドア監視状態検知処理において、制御LSI200は、RAM204の入力ポート情報格納領域に記憶されている状態情報を第1検知結果格納領域や第2検知結果格納領域に記憶させる。ドア監視状態検知処理の具体的な内容は、後で図24を参照して説明する。   In the door monitoring process, the control LSI 200 first performs a door monitoring state detection process (S21). In the door monitoring state detection process, the control LSI 200 stores the state information stored in the input port information storage area of the RAM 204 in the first detection result storage area or the second detection result storage area. Specific contents of the door monitoring state detection process will be described later with reference to FIG.

次いで、制御LSI200は、ドア監視記録判定処理を行う(S22)。ドア監視記録判定処理において、制御LSI200は、開閉履歴情報をEEPROM205に記憶可能か否かを判定し、記録可能と判定する場合は、記録許可フラグをONに設定する(「1」をセットする)。一方、記録可能でないと判定する場合は、記録許可フラグをOFFに設定する(クリアする)。ドア監視記録判定処理の具体的な内容は、後で図25を参照して説明する。   Next, the control LSI 200 performs door monitoring record determination processing (S22). In the door monitoring record determination process, the control LSI 200 determines whether the open / close history information can be stored in the EEPROM 205, and sets the recording permission flag to ON (determins “1”) when determining that recording is possible. . On the other hand, when it is determined that recording is not possible, the recording permission flag is set to OFF (cleared). Specific contents of the door monitoring record determination process will be described later with reference to FIG.

次いで、制御LSI200は、記録許可フラグがONに設定されてているか(「1」がセットされているか)否か、を判別する(S23)。S23において、記録許可フラグがOFFに設定されていると判別したとき(S23がNO判定の場合)、制御LSI200は、ドア監視処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS4に戻す。   Next, the control LSI 200 determines whether the recording permission flag is set to ON (whether “1” is set) (S23). When it is determined in S23 that the recording permission flag is set to OFF (when S23 is NO), the control LSI 200 ends the door monitoring process, and the process is performed in the door monitoring unit main process (see FIG. 21). Return to S4.

一方、S23において、記録許可フラグがONに設定されていると判別したとき(S23がYES判定の場合)、制御LSI200は、RAM204の監視間隔カウンタ格納領域に記憶されている監視間隔カウンタの値に1を加算する(S24)。   On the other hand, when it is determined in S23 that the recording permission flag is set to ON (when S23 is YES), the control LSI 200 sets the value of the monitoring interval counter stored in the monitoring interval counter storage area of the RAM 204. 1 is added (S24).

次いで、制御LSI200は、RAM204の監視間隔カウンタの値が、EEPROM205の監視間隔時間格納領域に記憶されている監視間隔時間に対応するカウント数以上か否かを判別する(S25)。S25において、監視間隔カウンタの値が監視間隔時間に対応するカウント数未満と判別したとき(S25がNO判定の場合)、制御LSI200は、ドア監視処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS4に戻す。   Next, the control LSI 200 determines whether the value of the monitoring interval counter of the RAM 204 is equal to or more than the count number corresponding to the monitoring interval time stored in the monitoring interval time storage area of the EEPROM 205 (S25). When it is determined in S25 that the value of the monitoring interval counter is less than the count number corresponding to the monitoring interval time (S25 is NO determination), the control LSI 200 ends the door monitoring process, and the process proceeds to the door monitoring unit main process ( Return to S4 of FIG.

一方、S25において、監視間隔カウンタの値が監視間隔時間に対応するカウント数以上と判別したとき(S25がYES判定の場合)、制御LSI200は、監視間隔カウンタに0をセット(クリア)する(S26)。   On the other hand, when it is determined in S25 that the value of the monitoring interval counter is equal to or larger than the count number corresponding to the monitoring interval time (when S25 is YES), the control LSI 200 sets (clears) 0 in the monitoring interval counter (S26). ).

次いで、制御LSI200は、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがONに設定されているか否かを判別する(S27)。状態変化フラグは、後述のドア監視状態検知処理(図24参照)のS46でONに設定される。S27において、状態変化フラグがOFFに設定されていると判別したとき(S27がNO判定の場合)、制御LSI200は、ドア監視処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS4に戻す。   Next, the control LSI 200 determines whether the state change flag stored in the state change flag storage area of the RAM 204 is set to ON (S27). The state change flag is set to ON in S46 of the door monitoring state detection process (see FIG. 24) described later. When it is determined in S27 that the state change flag is set to OFF (when S27 is NO), the control LSI 200 ends the door monitoring process, and the process is performed in the door monitoring unit main process (see FIG. 21). Return to S4.

一方、S27において、状態変化フラグがONに設定されていると判別したとき(S27がYES判定の場合)、制御LSI200は、EEPROM205の最新番号格納領域に記憶されている最新番号が128以上か否かを判別する(S28)。   On the other hand, when it is determined in S27 that the state change flag is set to ON (if S27 is YES), the control LSI 200 determines whether the latest number stored in the latest number storage area of the EEPROM 205 is 128 or more. It is determined (S28).

S27において、EEPROM205の最新番号格納領域に記憶されている最新番号が128以上であると判別したとき(S28がYES判定の場合)、制御LSI200は、EEPROM205の最新番号格納領域に最新番号として「1」をセットする(S29)。そして、制御LSI200は、処理をS31に移行する。   When it is determined in S27 that the latest number stored in the latest number storage area of the EEPROM 205 is 128 or more (when the determination in S28 is YES), the control LSI 200 sets “1” as the latest number in the latest number storage area of the EEPROM 205. Is set (S29). Then, the control LSI 200 shifts the processing to S31.

S27において、EEPROM205の最新番号格納領域に記憶されている最新番号が128未満であると判別したとき(S28がNO判定の場合)、制御LSI200は、EEPROM205の最新番号格納領域の値に「1」を加算する(S30)。そして、制御LSI200は、処理をS31に移行する。   When it is determined in S27 that the latest number stored in the latest number storage area of the EEPROM 205 is less than 128 (when the determination in S28 is NO), the control LSI 200 sets the value of the latest number storage area in the EEPROM 205 to "1". Is added (S30). Then, the control LSI 200 shifts the processing to S31.

S31の処理において、制御LSI200は、EEPROM205の履歴カウンタ格納領域に記憶されている履歴カウンタが128未満か否かを判別する(S31)。S31の処理において、履歴カウンタが128未満と判別したとき(S31がYES判定の場合)、制御LSI200は、履歴カウンタに1を加算する(S32)。そして、制御LSI200は、処理をS33に移行する。   In the process of S31, the control LSI 200 determines whether the history counter stored in the history counter storage area of the EEPROM 205 is less than 128 (S31). When it is determined in the process of S31 that the history counter is less than 128 (when the determination in S31 is YES), the control LSI 200 adds 1 to the history counter (S32). Then, the control LSI 200 shifts the processing to S33.

一方、S31の処理において、履歴カウンタが128未満でない判別したとき(S31がNO判定の場合)、制御LSI200は、処理をS33に移行する。   On the other hand, when it is determined in the process of S31 that the history counter is not less than 128 (when the determination of S31 is NO), the control LSI 200 shifts the process to S33.

S33の処理において、制御LSI200は、EEPROM205の最新番号格納領域に記憶されている最新番号が付された開閉履歴情報格納領域に、RAM204の第2検知結果格納領域に記憶されている開閉履歴情報を記憶させる。   In the process of S33, the control LSI 200 stores the open / close history information stored in the second detection result storage area of the RAM 204 in the open / close history information storage area with the latest number stored in the latest number storage area of the EEPROM 205. Remember.

次いで、制御LSI200は、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグをOFFに設定する(S34)。そして、制御LSI200は、ドア監視処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS4に戻す。   Next, the control LSI 200 sets the state change flag stored in the state change flag storage area of the RAM 204 to OFF (S34). Then, the control LSI 200 ends the door monitoring process, and returns the process to S4 of the door monitoring unit main process (see FIG. 21).

(4)ドア監視状態検知処理
次に、ドア監視処理(図23参照)のS21におけるドア監視状態検知処理について、図24を参照して説明する。
図24は、本実施形態におけるドア監視状態検知処理の例を示すフローチャートである。
(4) Door Monitoring State Detection Process Next, the door monitoring state detection process in S21 of the door monitoring process (see FIG. 23) will be described with reference to FIG.
FIG. 24 is a flowchart showing an example of door monitoring state detection processing in the present embodiment.

ドア監視状態検知処理において、制御LSI200は、まず、RAM204の第1検知結果格納領域に記憶されている開閉履歴情報における状態情報(開放か閉止かを示す情報)と、RAM204の入力ポート情報格納領域に記憶されている状態情報と、が異なるか否かを判別する(S41)。   In the door monitoring state detection process, the control LSI 200 first performs state information (information indicating open or close) in open / close history information stored in the first detection result storage area of the RAM 204 and an input port information storage area of the RAM 204 It is determined whether or not the state information stored in is different (S41).

S41において、第1検知結果格納領域の状態情報と、入力ポート情報格納領域の状態情報と、が異ならない(一致する)と判別したとき(S41がNO判定の場合)、制御LSI200は、ドア監視状態検知処理を終了し、処理をドア監視処理(図23参照)のS22に戻す。   When it is determined in S41 that the state information of the first detection result storage area and the state information of the input port information storage area do not differ (match) (when S41 is NO), the control LSI 200 monitors the door. The state detection process is ended, and the process returns to step S22 of the door monitoring process (see FIG. 23).

S41において、第1検知結果格納領域の状態情報と、入力ポート情報格納領域の状態情報と、が異なると判別したとき(S41がYES判定の場合)、制御LSI200は、RTC201から現在時刻の日時情報を取得し、取得した日時情報と入力ポート情報格納領域の状態情報からなる開閉履歴情報を第1検知結果格納領域に記憶させる(S42)。   When it is determined in S41 that the state information of the first detection result storage area and the state information of the input port information storage area are different (when the determination in S41 is YES), the control LSI 200 determines the date and time information of the current time from the RTC 201 The open / close history information including the acquired date and time information and the state information of the input port information storage area is stored in the first detection result storage area (S42).

次いで、制御LSI200は、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがOFFに設定されているか否かを判別する(S43)。S43において、状態変化フラグがOFFに設定されていないと判別したとき(S43がNO判定の場合)、制御LSI200は、ドア監視状態検知処理を終了し、処理をドア監視処理(図23参照)のS22に戻す。   Next, the control LSI 200 determines whether the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF (S43). When it is determined in S43 that the state change flag is not set to OFF (when S43 is NO), the control LSI 200 ends the door monitoring state detection processing, and the processing is the door monitoring processing (see FIG. 23). Return to S22.

一方、S43において、状態変化フラグがOFFに設定されていると判別したとき(S43がYES判定の場合)、制御LSI200は、EEPROM205の最新番号格納領域に記憶されている最新番号が付された開閉履歴情報格納領域に記憶されている開閉履歴情報の状態情報と、入力ポート情報格納領域の状態情報と、が異なるか否かを判別する(S44)。   On the other hand, when it is determined in S43 that the state change flag is set to OFF (when S43 is YES), the control LSI 200 opens and closes the latest number stored in the latest number storage area of the EEPROM 205. It is determined whether the state information of the open / close history information stored in the history information storage area and the state information of the input port information storage area are different (S44).

S44の処理に置いて、最新番号が付された開閉履歴情報格納領域に記憶されている開閉履歴情報の状態情報と、入力ポート情報格納領域の状態情報と、が異ならない(一致する)と判別したとき(S44がNO判定の場合)、制御LSI200は、ドア監視状態検知処理を終了し、処理をドア監視処理(図23参照)のS22に戻す。   In the process of S44, it is determined that the state information of the open / close history information stored in the open / close history information storage area with the latest number is not different from (does not match) the state information of the input port information storage area When it is determined (S44 is NO), the control LSI 200 ends the door monitoring state detection process, and returns the process to S22 of the door monitoring process (see FIG. 23).

一方、S44の処理に置いて、最新番号が付された開閉履歴情報格納領域に記憶されている開閉履歴情報の状態情報と、入力ポート情報格納領域の状態情報と、が異なると判別したとき(S44がYES判定の場合)、制御LSI200は、RTC201から現在時刻の日時情報を取得し、取得した日時情報と入力ポート情報格納領域の状態情報からなる開閉履歴情報を第2検知結果格納領域に記憶させる(S45)。   On the other hand, when it is determined in the process of S44 that the state information of the open / close history information stored in the open / close history information storage area with the latest number is different from the state information of the input port information storage area If S44 is YES, the control LSI 200 acquires the date and time information of the current time from the RTC 201, and stores the open / close history information including the acquired date and time information and the state information of the input port information storage area in the second detection result storage area (S45).

次いで、制御LSI200は、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグをONに設定する(S46)。そして、制御LSI200は、ドア監視状態検知処理を終了し、処理をドア監視処理(図23参照)のS22に戻す。   Next, the control LSI 200 sets the state change flag stored in the state change flag storage area of the RAM 204 to ON (S46). Then, the control LSI 200 ends the door monitoring state detection process, and returns the process to S22 of the door monitoring process (see FIG. 23).

(5)ドア監視記録判定処理
次に、ドア監視処理(図23参照)のS22におけるドア監視記録判定処理について、図25を参照して説明する。
図25は、本実施形態におけるドア監視記録判定処理の例を示すフローチャートである。
(5) Door Monitoring Record Determination Process Next, the door monitoring record determination process in S22 of the door monitoring process (see FIG. 23) will be described with reference to FIG.
FIG. 25 is a flowchart showing an example of the door monitoring record determination process in the present embodiment.

ドア監視記録判定処理において、制御LSI200は、まず、EEPROM205の記録モード格納領域を参照し、記録モードが常時記録モードに設定されているか否かを判別する(S51)。S51の処理において、記録モードが常時記録モードに設定されていないと判別したとき(S51がNO判定の場合)、制御LSI200は、処理を後述のS54に移行する。   In the door monitoring recording determination process, the control LSI 200 first refers to the recording mode storage area of the EEPROM 205 to determine whether the recording mode is always set to the recording mode (S51). When it is determined in the process of S51 that the recording mode is not set to the constant recording mode (when the determination in S51 is NO), the control LSI 200 shifts the process to S54 described later.

S51の処理において、記録モードが常時記録モードに設定されていると判別したとき(S51がYES判定の場合)、制御LSI200は、RAM204の記録開始時間カウンタ格納領域及びEEPROM205の記録開始時間格納領域を参照し、記録開始時間カウンタの値が記録開始時間に対応するカウント数以上か否かを判別する(S52)。S52において、記録開始時間カウンタの値が記録開始時間に対応するカウント数以上でないと判別したとき(S52がNO判定の場合)、制御LSI200は、処理を後述のS54に移行する。   When it is determined in the process of S51 that the recording mode is set to the constant recording mode (when the determination in S51 is YES), the control LSI 200 stores the recording start time counter storage area of the RAM 204 and the recording start time storage area of the EEPROM 205. Referring to it, it is determined whether the value of the recording start time counter is equal to or more than the count number corresponding to the recording start time (S52). When it is determined in S52 that the value of the recording start time counter is not greater than or equal to the count number corresponding to the recording start time (when S52 is NO), the control LSI 200 shifts the processing to S54 described later.

S52において、記録開始時間カウンタの値が記録開始時間に対応するカウント数以上であると判別したとき(S52がYES判定の場合)、制御LSI200は、RAM204の記録許可フラグ格納領域に記憶されている記録許可フラグをONに設定する(S53)。そして、制御LSI200は、ドア監視記録判定処理を終了し、処理をドア監視処理(図23参照)のS23に戻す。   When it is determined in S52 that the value of the recording start time counter is equal to or more than the count number corresponding to the recording start time (when S52 is YES), the control LSI 200 is stored in the recording permission flag storage area of the RAM 204. The recording permission flag is set to ON (S53). Then, the control LSI 200 ends the door monitoring record determination process, and returns the process to S23 of the door monitoring process (see FIG. 23).

S54において、制御LSI200は、RAM204の記録許可フラグ格納領域に記憶されている記録許可フラグをOFFに設定する(S54)。そして、制御LSI200は、ドア監視記録判定処理を終了し、処理をドア監視処理(図23参照)のS23に戻す。   In S54, the control LSI 200 sets the recording permission flag stored in the recording permission flag storage area of the RAM 204 to OFF (S54). Then, the control LSI 200 ends the door monitoring record determination process, and returns the process to S23 of the door monitoring process (see FIG. 23).

ここで、図21〜図25の処理の結果、ドア開閉監視スイッチ67からの信号の出力タイミングと、第1検知結果格納領域に開閉履歴情報を記憶させるタイミングと、第2検知結果格納領域に開閉履歴情報を記憶させるタイミングと、について図26を参照して説明する。
図26は、第1検知結果格納領域及び第2検知結果格納領域に開閉履歴情報を記憶するタイミングを示すタイミングチャートである。
Here, as a result of the processing in FIG. 21 to FIG. 25, the output timing of the signal from the door open / close monitoring switch 67, the timing of storing the open / close history information in the first detection result storage area, and the opening / closing in the second detection result storage area The timing of storing the history information will be described with reference to FIG.
FIG. 26 is a timing chart showing timings of storing the open / close history information in the first detection result storage area and the second detection result storage area.

図26では、予め設定されている記録開始時間が経過した後の状態を示している。また図26における縦実線は、RAM204の第2検知結果格納領域に記憶されている開閉履歴情報がEEPROM205の開閉履歴情報格納領域に記憶されるタイミング(図23に示すドア監視処理のS33の実行タイミング)を示している。したがって、縦実線の間隔は、監視間隔時間を示している。   FIG. 26 shows the state after the preset recording start time has elapsed. The vertical solid line in FIG. 26 indicates the timing at which the open / close history information stored in the second detection result storage area of the RAM 204 is stored in the open / close history information storage area of the EEPROM 205 (execution timing of S33 of the door monitoring process shown in FIG. ) Is shown. Therefore, the interval of the vertical solid line indicates the monitoring interval time.

図26におけるt0の時点は、フロントドア2bが閉止されている状態がしばらく続き、第2検知結果格納領域に格納されている閉止状態を示す開閉履歴情報がEEPROM205の開閉履歴格納領域に記憶された時点を示している。   At time t0 in FIG. 26, the state in which the front door 2b is closed continues for a while, and the open / close history information indicating the closed state stored in the second detection result storage area is stored in the open / close history storage area of the EEPROM 205. It shows the time point.

t1の時点において、ドア開閉監視スイッチ67からフロントドア2bが開放状態である旨を示す状態情報が出力されると、t2の時点で、第1検知結果格納領域に、開放状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS42参照)。また、同様に、t2の時点で、第2検知結果格納領域に、開放状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS45参照)。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがONに設定される(図24に示すドア監視状態検知処理のS46参照)。   When state information indicating that the front door 2b is open is output from the door open / close monitoring switch 67 at time t1, open / close history information indicating the open state in the first detection result storage area at time t2. Are stored (see S42 of the door monitoring state detection process shown in FIG. 24). Similarly, at time t2, open / close history information indicating an open state is stored in the second detection result storage area (see S45 of the door monitoring state detection process shown in FIG. 24). Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to ON (see S46 of the door monitoring state detection process shown in FIG. 24).

なお、t1とt2との間隔は、ドア監視状態検知処理のS42及びS45の処理が20msec毎に実行されることに起因するタイムラグである。すなわち、このタイムラグの最大値は、最大で20msecとなる。なお、後述するt3とt4との間隔、t6とt7との間隔、t8とt9との間隔、t11とt12との間隔、t14とt15との間隔も同様のタイムラグを示している。   The interval between t1 and t2 is a time lag due to the processing of S42 and S45 of the door monitoring state detection processing being executed every 20 msec. That is, the maximum value of this time lag is 20 msec at the maximum. The same time lag is also shown between the interval between t3 and t4, the interval between t6 and t7, the interval between t8 and t9, the interval between t11 and t12, and the interval between t14 and t15 described later.

t3の時点で、ドア開閉監視スイッチ67からフロントドア2bが閉止状態である旨を示す状態情報が出力されると、t4の時点で、第1検知結果格納領域に、閉止状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS42参照)。   When state information indicating that the front door 2b is closed is output from the door open / close monitoring switch 67 at time t3, open / close history information indicating the closed state in the first detection result storage area at time t4. Are stored (see S42 of the door monitoring state detection process shown in FIG. 24).

一方、t4の時点では、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがONに設定されている(図24に示すドア監視状態検知処理のS46参照)。このため、t3の時点で出力された状態情報に基く開閉履歴情報は、第2検知結果格納領域には、記憶されない(図24に示すドア監視状態検知処理のS43)。すなわち、第2検知結果格納領域に開放状態を示す開閉履歴情報が記憶されている状態が維持される。   On the other hand, at time t4, the state change flag stored in the state change flag storage area of the RAM 204 is set to ON (see S46 of the door monitoring state detection process shown in FIG. 24). Therefore, the open / close history information based on the state information output at time t3 is not stored in the second detection result storage area (S43 of the door monitoring state detection process shown in FIG. 24). That is, the state where the open / close history information indicating the open state is stored in the second detection result storage area is maintained.

t0の時点から開始間隔時間が経過したt5の時点で、第2検知結果格納領域に記憶されている開放状態を示す開閉履歴情報がEEPROM205の最新番号が付された開閉履歴情報格納領域に記憶される(図23に示すドア監視処理のS33参照)。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがOFFに設定される(図23に示すドア監視処理のS34参照)。   At time t5 when the start interval time has elapsed from time t0, the open / close history information indicating the open state stored in the second detection result storage area is stored in the open / close history information storage area of the EEPROM 205 with the latest number. (See S33 of the door monitoring process shown in FIG. 23). Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF (see S34 of the door monitoring process shown in FIG. 23).

t6の時点で、ドア開閉監視スイッチ67からフロントドア2bが開放状態である旨を示す状態情報が出力されると、t7の時点で、第1検知結果格納領域に、開放状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS42参照)。   When state information indicating that the front door 2b is open is output from the door open / close monitoring switch 67 at time t6, open / close history information indicating the open state in the first detection result storage area at time t7. Are stored (see S42 of the door monitoring state detection process shown in FIG. 24).

一方、t7の時点において、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグはOFFに設定されているが、EEPROM205の最新番号が付された開閉履歴情報格納領域には、開放状態を示す開閉履歴情報が記憶されている。このため、t6の時点で出力された状態情報に基く開閉履歴情報は、第2検知結果格納領域には、記憶されない(図24に示すドア監視状態検知処理のS44)。すなわち、第2検知結果格納領域に開放状態を示す開閉履歴情報が記憶されている状態が維持される。   On the other hand, at time t7, the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF, but the open / closed history information storage area to which the latest number of the EEPROM 205 is attached is open. The open / close history information shown is stored. Therefore, the open / close history information based on the state information output at time t6 is not stored in the second detection result storage area (S44 in the door monitoring state detection process shown in FIG. 24). That is, the state where the open / close history information indicating the open state is stored in the second detection result storage area is maintained.

t8の時点で、ドア開閉監視スイッチ67からフロントドア2bが閉止状態である旨を示す状態情報が出力されると、t9の時点で、第1検知結果格納領域に、閉止状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS42参照)。   When state information indicating that the front door 2b is closed is output from the door open / close monitoring switch 67 at time t8, open / close history information indicating the closed state in the first detection result storage area at time t9. Are stored (see S42 of the door monitoring state detection process shown in FIG. 24).

また、t9の時点では、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグはOFFに設定され、且つ、EEPROM205の最新番号が付された開閉履歴情報格納領域には、開放状態を示す開閉履歴情報が記憶されている。このため、t8の時点で出力された状態情報に基く開閉履歴情報が、第2検知結果格納領域に、記憶される(図24に示すドア監視状態検知処理のS45)。すなわち、第2検知結果格納領域に閉止状態を示す開閉履歴情報が記憶される。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがONに設定される(図24に示すドア監視状態検知処理のS46参照)。   At time t9, the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF, and the open / close history information storage area to which the latest number of the EEPROM 205 is attached indicates the open state. Opening and closing history information is stored. Therefore, the open / close history information based on the state information output at time t8 is stored in the second detection result storage area (S45 of the door monitoring state detection process shown in FIG. 24). That is, open / close history information indicating the closed state is stored in the second detection result storage area. Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to ON (see S46 of the door monitoring state detection process shown in FIG. 24).

t5の時点から開始間隔時間が経過したt10の時点で、第2検知結果格納領域に記憶されている閉止状態を示す開閉履歴情報がEEPROM205の最新番号が付された開閉履歴情報格納領域に記憶される(図23に示すドア監視処理のS33参照)。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがOFFに設定される(図23に示すドア監視処理のS34参照)。   At time t10 when the start interval time has elapsed from time t5, the open / close history information indicating the closed state stored in the second detection result storage area is stored in the open / close history information storage area of the EEPROM 205 with the latest number. (See S33 of the door monitoring process shown in FIG. 23). Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF (see S34 of the door monitoring process shown in FIG. 23).

t11の時点において、ドア開閉監視スイッチ67からフロントドア2bが開放状態である旨を示す状態情報が出力されると、t12の時点で、第1検知結果格納領域に、開放状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS42参照)。また、同様に、t12の時点で、第2検知結果格納領域に、開放状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS45参照)。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがONに設定される(図24に示すドア監視状態検知処理のS46参照)。   When state information indicating that the front door 2b is open is output from the door open / close monitoring switch 67 at time t11, open / close history information indicating the open state in the first detection result storage area at time t12. Are stored (see S42 of the door monitoring state detection process shown in FIG. 24). Similarly, at time t12, open / close history information indicating an open state is stored in the second detection result storage area (see S45 of the door monitoring state detection process shown in FIG. 24). Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to ON (see S46 of the door monitoring state detection process shown in FIG. 24).

t11の時点から開始間隔時間が経過したt13の時点で、第2検知結果格納領域に記憶されている開放状態を示す開閉履歴情報がEEPROM205の最新番号が付された開閉履歴情報格納領域に記憶される(図23に示すドア監視処理のS33参照)。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがOFFに設定される(図23に示すドア監視処理のS34参照)。   At time t13 when the start interval time has elapsed from time t11, the open / close history information indicating the open state stored in the second detection result storage area is stored in the open / close history information storage area to which the latest number of the EEPROM 205 is attached. (See S33 of the door monitoring process shown in FIG. 23). Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF (see S34 of the door monitoring process shown in FIG. 23).

t14の時点で、ドア開閉監視スイッチ67からフロントドア2bが閉止状態である旨を示す状態情報が出力されると、t15の時点で、第1検知結果格納領域に、閉止状態を示す開閉履歴情報が記憶される(図24に示すドア監視状態検知処理のS42参照)。   When state information indicating that the front door 2b is closed is output from the door open / close monitoring switch 67 at time t14, open / close history information indicating the closed state in the first detection result storage area at time t15. Are stored (see S42 of the door monitoring state detection process shown in FIG. 24).

また、t14の時点では、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグはOFFに設定され、且つ、EEPROM205の最新番号が付された開閉履歴情報格納領域には、開放状態を示す開閉履歴情報が記憶されている。このため、t14の時点で出力された状態情報に基く開閉履歴情報が、第2検知結果格納領域に、記憶される(図24に示すドア監視状態検知処理のS45)。すなわち、第2検知結果格納領域に閉止状態を示す開閉履歴情報が記憶される。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがONに設定される(図24に示すドア監視状態検知処理のS46参照)。   Further, at time t14, the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF, and the open / close history information storage area to which the latest number of the EEPROM 205 is attached indicates the open state. Opening and closing history information is stored. Therefore, the open / close history information based on the state information output at time t14 is stored in the second detection result storage area (S45 of the door monitoring state detection process shown in FIG. 24). That is, open / close history information indicating the closed state is stored in the second detection result storage area. Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to ON (see S46 of the door monitoring state detection process shown in FIG. 24).

t13の時点から開始間隔時間が経過したt16の時点で、第2検知結果格納領域に記憶されている閉止状態を示す開閉履歴情報がEEPROM205の最新番号が付された開閉履歴情報格納領域に記憶される(図23に示すドア監視処理のS33参照)。また、RAM204の状態変化フラグ格納領域に記憶されている状態変化フラグがOFFに設定される(図23に示すドア監視処理のS34参照)。   At time t16 when the start interval time has elapsed from time t13, the open / close history information indicating the closed state stored in the second detection result storage area is stored in the open / close history information storage area of the EEPROM 205 with the latest number (See S33 of the door monitoring process shown in FIG. 23). Further, the state change flag stored in the state change flag storage area of the RAM 204 is set to OFF (see S34 of the door monitoring process shown in FIG. 23).

(6)受信割込み処理
次に、制御LSI200のシリアル通信回路207がホスト機器からコマンドやデータを1バイト受信する毎に、制御LSI200が実行する受信割込み処理について、図27を参照して説明する。
図27は、本実施形態における受信割込み処理の例を示すフローチャートである。
(6) Reception Interrupt Processing Next, reception interrupt processing executed by the control LSI 200 each time the serial communication circuit 207 of the control LSI 200 receives one byte of a command or data from the host device will be described with reference to FIG.
FIG. 27 is a flowchart showing an example of reception interrupt processing in the present embodiment.

受信割込み処理において、制御LSI200は、まず、受信したデータが「STX」であるか否かを判別する(S61)。S61において、受信したデータが「STX」であると判別したとき(S61がYES判定の場合)、制御LSI200は、RAM204の受信バッファ及び受信カウンタ格納領域に記憶されている受信カウンタの値に「1」を設定し、且つ、RAM204のETX受信フラグ格納領域に記憶しているETX受信フラグをOFFに設定する(S62)。そして、制御LSI200は、受信割込み処理を終了する。   In the reception interrupt process, the control LSI 200 first determines whether the received data is "STX" (S61). When it is determined in S61 that the received data is "STX" (in the case of YES determination in S61), the control LSI 200 determines that the value of the reception counter stored in the reception buffer and reception counter storage area of the RAM 204 is "1". Is set, and the ETX reception flag stored in the ETX reception flag storage area of the RAM 204 is set to OFF (S62). Then, the control LSI 200 ends the reception interrupt process.

一方、S61において、受信したデータが「STX」でないと判別したとき(S61がNO判定の場合)、制御LSI200は、受信カウンタ格納領域に記憶されている受信カウンタの値に対応する受信バッファに受信したデータを記憶させる(S63)。   On the other hand, when it is determined in S61 that the received data is not "STX" (when S61 is NO), the control LSI 200 receives in the reception buffer corresponding to the value of the reception counter stored in the reception counter storage area. The stored data is stored (S63).

次いで、制御LSI200は、受信カウンタの値に1を加算する(S64)。
次いで、制御LSI200は、受信データが「ETX」であるか否かを判別する(S65)。S65において、受信データが「ETX」であると判別したとき(S65がYES判定の場合)、制御LSI200は、RAM204のETX受信フラグ格納領域に記憶されているETX受信フラグをONに設定する。また、RAM204のサムカウンタの値をクリアする(S66)。そして、制御LSI200は、受信割込み処理を終了する。
Next, the control LSI 200 adds 1 to the value of the reception counter (S64).
Next, the control LSI 200 determines whether the received data is "ETX" (S65). If it is determined in S65 that the received data is "ETX" (if S65 is a YES determination), the control LSI 200 sets the ETX reception flag stored in the ETX reception flag storage area of the RAM 204 to ON. Also, the value of the sum counter in the RAM 204 is cleared (S66). Then, the control LSI 200 ends the reception interrupt process.

一方、S65において、受信データが「ETX」でないと判別したとき(S65がNO判定の場合)、制御LSI200は、RAM204のETX受信フラグ格納領域に記憶されているETX受信フラグがONに設定されているか否かを判別する(S67)。S67において、ETX受信フラグがONに設定されていないと判別したとき(S67がNO判定の場合)、制御LSI200は、受信割込み処理を終了する。   On the other hand, when it is determined in S65 that the received data is not "ETX" (when S65 is NO), the control LSI 200 sets the ETX reception flag stored in the ETX reception flag storage area of the RAM 204 to ON. It is determined whether or not there is (S67). When it is determined in S67 that the ETX reception flag is not set to ON (when the determination in S67 is NO), the control LSI 200 ends the reception interrupt process.

S67において、ETX受信フラグがONに設定されていると判別したとき(S67がYES判定の場合)、サムカウンタの値に1を加算する(S68)。   When it is determined in S67 that the ETX reception flag is set to ON (when the determination in S67 is YES), 1 is added to the value of the sum counter (S68).

次いで、制御LSI200は、サムカウンタの値が2であるか否かを判別する(S69)。S69において、サムカウンタの値が2でないと判別したとき(S69がNO判定の場合)、制御LSI200は、受信割込み処理を終了する。一方、S69において、サムカウンタの値が2であると判別したとき(S69がYES判定の場合)、制御LSI200は、RAM204の受信完了フラグ格納領域に記憶されている受信完了フラグをONに設定し(S70)、受信割込み処理を終了する。   Next, the control LSI 200 determines whether the value of the sum counter is 2 or not (S69). When it is determined in S69 that the value of the sum counter is not 2 (when S69 is NO), the control LSI 200 ends the reception interrupt process. On the other hand, when it is determined in S69 that the value of the sum counter is 2 (YES in S69), the control LSI 200 sets the reception completion flag stored in the reception completion flag storage area of the RAM 204 to ON. (S70) The reception interrupt process is ended.

(7)受信処理
次に、ドア監視ユニットメイン処理(図21参照)のS4における受信処理について、図28を参照して説明する。
図28は、本実施形態における受信処理の例を示すフローチャートである。
(7) Reception Process Next, the reception process in S4 of the door monitoring unit main process (see FIG. 21) will be described with reference to FIG.
FIG. 28 is a flowchart showing an example of reception processing in the present embodiment.

受信処理において、制御LSI200は、まず、RAM204の受信完了フラグ格納領域に記憶されている受信完了フラグがONに設定されているか否かを判別する(S71)。S71において、受信完了フラグがONに設定されていないと判別したとき(S71がNO判定の場合)、制御LSI200は、受信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS5に戻す。   In the reception process, the control LSI 200 first determines whether the reception completion flag stored in the reception completion flag storage area of the RAM 204 is set to ON (S71). When it is determined in S71 that the reception completion flag is not set to ON (S71 is NO), the control LSI 200 ends the reception process, and the process proceeds to S5 of the door monitoring unit main process (see FIG. 21). Back to.

一方、S71において、受信完了フラグがONに設定されていると判別したとき(S71がYES判定の場合)、制御LSI200は、RAM204の受信バッファを参照し、受信したサム値と受信したデータとが整合しているか否かを判定する整合性判定処理を行う(S72)。具体的には、整合性判定処理では、RAM204の受信バッファに保存されている受信データ(図15A参照)の「STX」を除く「ETX」までの1バイト単位で受信データを順次加算して1バイトのサム値を算出し、算出結果をASCIIコードに変換することで、2バイトのサム値を生成し、生成したサム値と、受信バッファに保存されているサム値(図15AのSAM(ASCII)2Byte)とを照合することで、受信したデータが整合しているか否かを判定する。なお、整合性判定処理の具体例として、加算によりサム値を算出する例を説明したが、これに限らず、例えば、減算又は排他的論理和によりサム値を算出してもよい。また、サム値を算出することに代えて、受信バッファに保存されているサム値をASCIIコードからバイナリコードに変換することで、サム値の判定を行ってもよい。   On the other hand, when it is determined in S71 that the reception completion flag is set to ON (when S71 is YES), the control LSI 200 refers to the reception buffer of the RAM 204 and receives the received sum value and the received data. A consistency determination process is performed to determine whether there is a match (S72). Specifically, in the consistency determination process, the reception data is sequentially added in 1-byte units up to “ETX” excluding “STX” of the reception data (see FIG. 15A) stored in the reception buffer of the RAM 204 The sum value of bytes is calculated, and the calculation result is converted into ASCII code to generate a sum value of 2 bytes, and the generated sum value and the sum value stored in the reception buffer (SAM (ASCII (A) in FIG. It is determined whether or not the received data is consistent by collating with 2 bytes). In addition, although the example which calculates a sum value by addition was demonstrated as a specific example of a consistency determination process, you may calculate a sum value not only by this but subtraction or exclusive OR, for example. Also, instead of calculating the sum value, the sum value may be determined by converting the sum value stored in the reception buffer from ASCII code to binary code.

次いで、制御LSI200は、S72の整合性判定処理の結果、受信したサム値と受信したデータとが整合していると判定したか、すなわち、整合性判定処理の結果がOKであるか否かを判別する(S73)。S73において、整合性判定処理の結果がOKでないと判別したとき(S73がNO判定の場合)、制御LSI200は、受信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS5に戻す。   Next, as a result of the consistency determination process in S72, the control LSI 200 determines that the received sum value and the received data are consistent, that is, whether the result of the consistency determination process is OK or not. It discriminates (S73). When it is determined in S73 that the result of the consistency determination process is not OK (S73 is NO), the control LSI 200 ends the reception process, and the process proceeds to S5 of the door monitoring unit main process (see FIG. 21). return.

一方、S73において、整合性判定処理の結果がOKであると判別したとき(S73がYES判定の場合)、制御LSI200は、受信コマンドは特権コマンドかであるか否かを判別する(S74)。具体的には、制御LSI200は、受信バッファを参照し、受信したデータに特権コマンドのID(図13に示すSI,ST,SA,SB,SC,SWのいずれか)が含まれている場合は、受信コマンドは特権コマンドであると判別し、含まれていない場合は、特権コマンドでないと判別する。   On the other hand, when it is determined in S73 that the result of the consistency determination processing is OK (when the determination in S73 is YES), the control LSI 200 determines whether the received command is a privileged command or not (S74). Specifically, the control LSI 200 refers to the reception buffer, and if the received data includes the ID of a privileged command (SI, ST, SA, SB, SC, or SW shown in FIG. 13), , And determines that the received command is not a privileged command if it is not included.

S74において、受信コマンドは特権コマンドでないと判別したとき(S74がNO判定の場合)、制御LSI200は、処理を後述のS77に以降する。一方、S74において、受信コマンドは特権コマンドであると判別したとき(S74がYES判定の場合)、制御LSI200は、RAM204のログインフラグ格納領域に記憶されているログインフラグがONに設定されているか否かを判別する(S75)。   If it is determined in S74 that the received command is not a privileged command (if S74 is NO), the control LSI 200 proceeds to S77 described later. On the other hand, when it is determined in S74 that the received command is a privileged command (when S74 is YES), the control LSI 200 determines whether the login flag stored in the login flag storage area of the RAM 204 is set to ON. It is determined (S75).

S75において、ログインフラグがONに設定されていないと判別したとき(S75がNO判定の場合)、制御LSI200は、受信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS5に戻す。   When it is determined in S75 that the login flag is not set to ON (S75 is NO), the control LSI 200 ends the reception process and proceeds to S5 of the door monitoring unit main process (see FIG. 21). return.

一方、S75において、ログインフラグがONに設定されていると判別したとき(S75がYES判定の場合)、制御LSI200は、特権コマンド受信時処理を行う(S76)。特権コマンド受信時処理において、制御LSI200は、受信した特権コマンドに応じた各種処理を行う。特権コマンド受信時処理の具体的な内容は、後で図29を参照して説明する。特権コマンド受信時処理の後、制御LSI200は、受信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS5に戻す。   On the other hand, when it is determined in S75 that the login flag is set to ON (when the determination in S75 is YES), the control LSI 200 performs a privileged command reception process (S76). In the privileged command reception process, the control LSI 200 performs various processes according to the received privileged command. The specific contents of the privileged command reception process will be described later with reference to FIG. After the privileged command reception process, the control LSI 200 ends the reception process, and returns the process to S5 of the door monitoring unit main process (see FIG. 21).

ここで、S74の処理の説明に戻って、受信コマンドは特権コマンドでないと判別したとき(S74がNO判定の場合)、制御LSI200は、ログインフラグをOFFに設定する(S77)。   Here, returning to the description of the process of S74, when it is determined that the received command is not a privileged command (when S74 is NO), the control LSI 200 sets the login flag to OFF (S77).

次いで、制御LSI200は、一般コマンド受信時処理を行う(S78)。一般コマンド受信時処理において、制御LSI200は、受信した一般コマンドに応じた各種処理を行う。一般コマンド受信時処理の具体的な内容は、後で図31を参照して説明する。一般コマンド受信時処理の後、制御LSI200は、受信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS5に戻す。   Next, the control LSI 200 performs general command reception processing (S78). In the general command reception process, the control LSI 200 performs various processes according to the received general command. The specific contents of the general command reception process will be described later with reference to FIG. After the general command reception process, the control LSI 200 ends the reception process, and returns the process to S5 of the door monitoring unit main process (see FIG. 21).

(8)特権コマンド受信時処理
次に、受信処理(図28参照)のS76における特権コマンド受信時処理について、図29を参照して説明する。
図29は、本実施形態における特権コマンド受信時処理の例を示すフローチャートである。
(8) Privileged Command Reception Process Next, the privileged command reception process in S76 of the reception process (see FIG. 28) will be described with reference to FIG.
FIG. 29 is a flowchart showing an example of privileged command reception processing in the present embodiment.

特権コマンド受信時処理において、制御LSI200は、まず、受信した特権コマンドが初期化コマンドであるか否かを判別する(S81)。制御LSI200は、受信バッファを参照し、受信したデータに初期化コマンドのIDである「SI」が含まれている場合は、特権コマンドが初期化コマンドであると判別し、「SI」が含まれていない場合は、初期化コマンドでないと判別する。   In the privileged command reception process, the control LSI 200 first determines whether the received privileged command is an initialization command (S81). The control LSI 200 refers to the reception buffer, and when the received data includes “SI” which is the ID of the initialization command, it determines that the privileged command is the initialization command and includes “SI”. If not, it is determined that it is not an initialization command.

S81において、受信した特権コマンドが初期化コマンドであると判別したとき(S81がYES判定の場合)、制御LSI200は、初期化処理を行う(S82)。その後、制御LSI200は、特権コマンド受信時処理を終了する。   When it is determined in S81 that the received privileged command is the initialization command (when the determination in S81 is YES), the control LSI 200 performs the initialization process (S82). Thereafter, the control LSI 200 ends the privileged command reception process.

一方、S81において、受信した特権コマンドが初期化コマンドでないと判別したとき(S81がNO判定の場合)、制御LSI200は、受信コマンドが時計セットコマンドであるか否かを判別する(S83)。制御LSI200は、受信バッファを参照し、受信したデータに初期化コマンドのIDである「ST」が含まれている場合は、特権コマンドが時計セットコマンドであると判別し、「ST」が含まれていない場合は、時計セットコマンドでないと判別する。   On the other hand, when it is determined in S81 that the received privileged command is not the initialization command (S81 is NO), the control LSI 200 determines whether the received command is a clock set command (S83). The control LSI 200 refers to the reception buffer, and when the received data includes “ST” that is the ID of the initialization command, it determines that the privileged command is the clock set command, and “ST” is included. If not, it is determined that it is not a clock set command.

S83において、受信した特権コマンドが時計セットコマンドであると判別したとき(S81がYES判定の場合)、制御LSI200は、RTC設定処理を行う(S84)。すなわち、RAM204の受信バッファから時計セットコマンドに付随する、年、月、日、時、分、秒そして曜日を示す情報を取得し、取得した情報に基づいてRTC201を設定する。その後、制御LSI200は、特権コマンド受信時処理を終了する。   When it is determined in S83 that the received privileged command is a clock set command (when S81 is YES), the control LSI 200 performs an RTC setting process (S84). That is, information indicating the year, month, day, hour, minute, second and day of the week accompanying the clock set command is acquired from the reception buffer of the RAM 204, and the RTC 201 is set based on the acquired information. Thereafter, the control LSI 200 ends the privileged command reception process.

一方、S83において、受信した特権コマンドが時計セットコマンドでないと判別したとき(S83がNO判定の場合)、制御LSI200は、受信コマンドが監視間隔時間設定コマンドであるか否かを判別する(S85)。制御LSI200は、受信バッファを参照し、受信したデータに監視間隔時間設定コマンドのIDである「SA」が含まれている場合は、特権コマンドが監視間隔時間設定コマンドであると判別し、「SA」が含まれていない場合は、監視間隔時間設定コマンドでないと判別する。   On the other hand, when it is determined in S83 that the received privileged command is not a clock set command (when S83 is NO), the control LSI 200 determines whether the received command is a monitoring interval time setting command (S85) . The control LSI 200 refers to the reception buffer, and when the received data includes “SA” which is the ID of the monitoring interval time setting command, the control LSI 200 determines that the privileged command is the monitoring interval time setting command, “SA If “” is not included, it is determined that it is not a monitoring interval time setting command.

S85において、受信した特権コマンドが監視間隔時間設定コマンドであると判別したとき(S85がYES判定の場合)、制御LSI200は、監視間隔時間設定処理を行う(S86)。すなわち、RAM204の受信バッファから監視間隔時間設定コマンドに付随する監視間隔時間を示す情報(カウント数)を取得し、EEPROM205の監視間隔時間格納領域に記憶させる。その後、制御LSI200は、特権コマンド受信時処理を終了する。   When it is determined in S85 that the received privileged command is the monitoring interval setting command (when the determination in S85 is YES), the control LSI 200 performs monitoring interval setting processing (S86). That is, information (count number) indicating the monitoring interval time attached to the monitoring interval time setting command is acquired from the reception buffer of the RAM 204 and stored in the monitoring interval time storage area of the EEPROM 205. Thereafter, the control LSI 200 ends the privileged command reception process.

一方、S85において、受信した特権コマンドが監視間隔時間設定コマンドでないと判別したとき(S85がNO判定の場合)、制御LSI200は、受信コマンドが記録開始時間設定コマンドであるか否かを判別する(S87)。制御LSI200は、受信バッファを参照し、受信したデータに記録開始時間設定コマンドのIDである「SB」が含まれている場合は、特権コマンドが記録開始時間設定コマンドであると判別し、「SB」が含まれていない場合は、記録開始時間設定コマンドでないと判別する。   On the other hand, when it is determined in S85 that the received privileged command is not the monitoring interval time setting command (S85 is NO), the control LSI 200 determines whether the receiving command is the recording start time setting command ( S87). The control LSI 200 refers to the reception buffer and determines that the privileged command is the recording start time setting command when the received data includes “SB” which is the ID of the recording start time setting command, “SB If “” is not included, it is determined that the command is not a recording start time setting command.

S87において、受信した特権コマンドが記録開始時間設定コマンドであると判別したとき(S87がYES判定の場合)、制御LSI200は、記録開始時間設定処理を行う(S88)。すなわち、RAM204の受信バッファから記録開始時間設定コマンドに付随する記録開始時間を示す情報(カウント数)を取得し、EEPROM205の記録開始時間格納領域に記憶させる。その後、制御LSI200は、特権コマンド受信時処理を終了する。   When it is determined in S87 that the received privileged command is the recording start time setting command (when the determination in S87 is YES), the control LSI 200 performs the recording start time setting process (S88). That is, information (count number) indicating the recording start time accompanying the recording start time setting command is acquired from the reception buffer of the RAM 204 and stored in the recording start time storage area of the EEPROM 205. Thereafter, the control LSI 200 ends the privileged command reception process.

一方、S87において、受信した特権コマンドが記録開始時間設定コマンドでないと判別したとき(S87がNO判定の場合)、制御LSI200は、記録モード設定コマンドであるか否かを判別する(S89)。制御LSI200は、受信バッファを参照し、受信したデータに記録モード設定コマンドのIDである「SC」が含まれている場合は、特権コマンドが記録モード設定コマンドであると判別し、「SC」が含まれていない場合は、記録モード設定コマンドでないと判別する。   On the other hand, when it is determined in S87 that the received privileged command is not the recording start time setting command (when S87 is NO), the control LSI 200 determines whether it is the recording mode setting command (S89). The control LSI 200 refers to the reception buffer, and when the received data includes “SC” which is the ID of the recording mode setting command, it determines that the privileged command is the recording mode setting command and “SC” If not included, it is determined that the command is not a recording mode setting command.

S89において、受信した特権コマンドが記録モード設定コマンドであると判別したとき(S89がYES判定の場合)、制御LSI200は、記録モード設定処理を行う(S90)。すなわち、RAM204の受信バッファから記録モード設定コマンドに付随する記録モードを示す情報を取得し、EEPROM205の記録モード格納領域に記憶させる。その後、制御LSI200は、特権コマンド受信時処理を終了する。   When it is determined in S89 that the received privileged command is a recording mode setting command (when the determination in S89 is YES), the control LSI 200 performs a recording mode setting process (S90). That is, information indicating the recording mode accompanying the recording mode setting command is acquired from the reception buffer of the RAM 204 and stored in the recording mode storage area of the EEPROM 205. Thereafter, the control LSI 200 ends the privileged command reception process.

一方、S89において、受信した特権コマンドが記録モード設定コマンドでないと判別したとき(S89がNO判定の場合)、制御LSI200は、秘密鍵設定コマンドであるか否かを判別する(S91)。制御LSI200は、受信バッファを参照し、受信したデータに秘密鍵設定コマンドのIDである「SW」が含まれている場合は、特権コマンドが秘密鍵設定コマンドであると判別し、「SW」が含まれていない場合は、秘密鍵設定コマンドでないと判別する。   On the other hand, when it is determined in S89 that the received privileged command is not the recording mode setting command (when S89 is NO), the control LSI 200 determines whether it is a secret key setting command (S91). The control LSI 200 refers to the reception buffer, and when the received data contains “SW” which is the ID of the secret key setting command, it determines that the privileged command is the secret key setting command, and “SW” If not included, it is determined that the command is not a secret key setting command.

S91において、受信した特権コマンドが秘密鍵設定コマンドであると判別したとき(S89がYES判定の場合)、制御LSI200は、秘密鍵設定処理を行う(S92)。すなわち、RAM204の受信バッファから秘密鍵設定コマンドに付随する秘密鍵を取得し、EEPROM205の秘密鍵格納領域に記憶させる。その後、制御LSI200は、特権コマンド受信時処理を終了する。   When it is determined in S91 that the received privilege command is a secret key setting command (when the determination in S89 is YES), the control LSI 200 performs a secret key setting process (S92). That is, the secret key attached to the secret key setting command is acquired from the reception buffer of the RAM 204 and stored in the secret key storage area of the EEPROM 205. Thereafter, the control LSI 200 ends the privileged command reception process.

一方、S91において、受信した特権コマンドが秘密鍵設定コマンドでないと判別したとき(S91がNO判定の場合)、制御LSI200は、特権コマンド受信時処理を終了する。   On the other hand, when it is determined in S91 that the received privileged command is not the secret key setting command (when S91 is NO), the control LSI 200 ends the privileged command reception process.

(9)一般コマンド受信時処理
次に、受信処理(図28参照)のS78における一般コマンド受信時処理について、図30を参照して説明する。
図30は、本実施形態における一般コマンド受信時処理の例を示すフローチャートである。
(9) General Command Reception Process Next, the general command reception process in S78 of the reception process (see FIG. 28) will be described with reference to FIG.
FIG. 30 is a flowchart showing an example of general command reception processing in this embodiment.

一般コマンド受信時処理において、制御LSI200は、まず、受信した一般コマンドがシリアルIDコマンドであるか否かを判別する(S101)。制御LSI200は、受信バッファを参照し、受信したデータにシリアルIDコマンドのIDである「CR」が含まれている場合は、一般コマンドがシリアルIDコマンドであると判別し、「CR」が含まれていない場合は、シリアルIDコマンドでないと判別する。   In the general command reception process, the control LSI 200 first determines whether the received general command is a serial ID command (S101). The control LSI 200 refers to the reception buffer, and when the received data includes “CR” that is the ID of the serial ID command, it determines that the general command is the serial ID command and includes “CR”. If not, it is determined that it is not a serial ID command.

S101において、受信した一般コマンドがシリアルIDコマンドであると判別したとき(S101がYES判定の場合)、制御LSI200は、シリアルIDコマンド受信時処理を行う(S102)。この処理で、制御LSI200は、EEPROM205のシリアルID格納領域に記憶されているシリアルIDを取得する。その後、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S101 that the received general command is a serial ID command (when S101 is YES), the control LSI 200 performs processing when receiving a serial ID command (S102). In this process, the control LSI 200 acquires the serial ID stored in the serial ID storage area of the EEPROM 205. After that, the control LSI 200 ends the general command reception process.

一方、S101において、受信した一般コマンドがシリアルIDコマンドでないと判別したとき(S101がNO判定の場合)、制御LSI200は、受信コマンドがバージョン要求コマンドであるか否かを判別する(S103)。制御LSI200は、受信バッファを参照し、受信したデータにバージョン要求コマンドのIDである「CV」が含まれている場合は、一般コマンドがバージョン要求コマンドであると判別し、「CV」が含まれていない場合は、バージョン要求コマンドでないと判別する。   On the other hand, when it is determined in S101 that the received general command is not a serial ID command (S101 is NO), the control LSI 200 determines whether the received command is a version request command (S103). The control LSI 200 refers to the reception buffer, and when the received data includes “CV” which is the ID of the version request command, it determines that the general command is the version request command, and includes “CV”. If not, it is determined that it is not a version request command.

S103において、受信した一般コマンドがバージョン要求コマンドであると判別したとき(S103がYES判定の場合)、制御LSI200は、バージョン要求コマンド受信時処理を行う(S104)。この処理で、制御LSI200は、EEPROM205のバージョン格納領域に記憶されているプログラムバージョンを取得する。その後、制御LSI200は、一般コマンド受信時処理を終了する。   If it is determined in S103 that the received general command is a version request command (if S103 is YES), the control LSI 200 performs a version request command reception process (S104). In this process, the control LSI 200 acquires the program version stored in the version storage area of the EEPROM 205. After that, the control LSI 200 ends the general command reception process.

一方、S103において、受信した一般コマンドがバージョン要求コマンドでないと判別したとき(S103がNO判定の場合)、制御LSI200は、受信コマンドが乱数コマンドであるか否かを判別する(S105)。制御LSI200は、受信バッファを参照し、受信したデータに乱数コマンドのIDである「CK」が含まれている場合は、一般コマンドが乱数コマンドであると判別し、「CK」が含まれていない場合は、乱数コマンドでないと判別する。   On the other hand, when it is determined in S103 that the received general command is not a version request command (S103 is NO determination), the control LSI 200 determines whether the received command is a random number command (S105). The control LSI 200 refers to the reception buffer, and when the received data includes “CK” which is the ID of the random number command, it determines that the general command is the random number command and does not include “CK”. In this case, it is determined that it is not a random number command.

S105において、受信した一般コマンドが乱数コマンドであると判別したとき(S105がYES判定の場合)、制御LSI200は、乱数コマンド受信時処理を行う(S106)。この処理で、制御LSI200は、乱数を発生させ、また、パスワードを生成する。乱数コマンド受信時処理の具体的な内容は、後で図31を参照して説明する。乱数コマンド受信時処理の後、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S105 that the received general command is a random number command (when S105 is YES), the control LSI 200 performs processing at the time of random number command reception (S106). In this process, the control LSI 200 generates a random number and generates a password. The specific contents of the random number command reception process will be described later with reference to FIG. After the random number command reception process, the control LSI 200 ends the general command reception process.

一方、S105において、受信した一般コマンドが乱数コマンドでないと判別したとき(S105がNO判定の場合)、制御LSI200は、受信コマンドがログインコマンドであるか否かを判別する(S107)。制御LSI200は、受信バッファを参照し、受信したデータにログインコマンドのIDである「CI」が含まれている場合は、一般コマンドがログインコマンドであると判別し、「CI」が含まれていない場合は、ログインコマンドでないと判別する。   On the other hand, when it is determined in S105 that the received general command is not a random number command (when S105 is NO), the control LSI 200 determines whether the received command is a login command (S107). The control LSI 200 refers to the reception buffer, and when the received data includes “CI” which is the ID of the login command, it determines that the general command is the login command and does not include “CI”. In this case, it is determined that it is not a login command.

S107において、受信した一般コマンドがログインコマンドであると判別したとき(S107がYES判定の場合)、制御LSI200は、ログインコマンド受信時処理を行う(S108)。この処理で、制御LSI200は、ログインコマンドに付随するパスワードとRAM204のパスワード記憶領域に記憶されているパスワードが一致するかを判定し、一致するときは特権コマンドに基く各種設定を要求できる状態に設定する(ログインフラグをONに設定する)。ログインコマンド受信時処理の具体的な内容は、後で図32を参照して説明する。その後、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S107 that the received general command is a login command (when S107 is YES), the control LSI 200 performs a login command reception process (S108). In this process, the control LSI 200 determines whether the password attached to the login command matches the password stored in the password storage area of the RAM 204. When the passwords match, the control LSI 200 is set to be able to request various settings based on the privileged command. Set the login flag to ON. The specific content of the login command reception process will be described later with reference to FIG. After that, the control LSI 200 ends the general command reception process.

一方、S107において、受信した一般コマンドがログインコマンドでないと判別したとき(S107がNO判定の場合)、制御LSI200は、受信コマンドがログアウトコマンドであるか否かを判別する(S109)。制御LSI200は、受信バッファを参照し、受信したデータにログアウトコマンドのIDである「CO」が含まれている場合は、一般コマンドがログアウトコマンドであると判別し、「CO」が含まれていない場合は、ログアウトコマンドでないと判別する。   On the other hand, when it is determined in S107 that the received general command is not a login command (when S107 is NO), the control LSI 200 determines whether the reception command is a logout command (S109). The control LSI 200 refers to the reception buffer, and when the received data includes “CO” which is the ID of the logout command, it determines that the general command is the logout command and does not include “CO”. In this case, it is determined that the command is not a logout command.

S109において、受信した一般コマンドがログアウトコマンドであると判別したとき(S109がYES判定の場合)、制御LSI200は、RAM204のログインフラグ格納領域に記憶されているログインフラグをOFFに設定するログアウトコマンド受信時処理を行う(S110)。その後、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S109 that the received general command is the logout command (when S109 is YES), the control LSI 200 receives the logout command for setting the login flag stored in the login flag storage area of the RAM 204 to OFF. The hour process is performed (S110). After that, the control LSI 200 ends the general command reception process.

一方、S109において、受信した一般コマンドがログアウトコマンドでないと判別したとき(S109がNO判定の場合)、制御LSI200は、受信コマンドが時計読出コマンドであるか否かを判別する(S111)。制御LSI200は、受信バッファを参照し、受信したデータに時計読出コマンドのIDである「CT」が含まれている場合は、一般コマンドが時計読出コマンドであると判別し、「CT」が含まれていない場合は、時計読出コマンドでないと判別する。   On the other hand, when it is determined in S109 that the received general command is not a logout command (when S109 is NO), the control LSI 200 determines whether the received command is a clock read command (S111). The control LSI 200 refers to the reception buffer, and when the received data includes “CT” that is the ID of the clock read command, the control LSI 200 determines that the general command is the clock read command and includes “CT”. If not, it is determined that it is not a clock read command.

S111において、受信した一般コマンドが時計読出コマンドであると判別したとき(S111がYES判定の場合)、制御LSI200は、時計読出コマンド受信時処理を行う(S112)。この処理で、制御LSI200は、RTC201が計時する現在時刻を取得する。そして、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S111 that the received general command is a clock read command (when S111 is YES), the control LSI 200 performs processing when a clock read command is received (S112). In this process, the control LSI 200 acquires the current time clocked by the RTC 201. Then, the control LSI 200 ends the general command reception process.

一方、S111において、受信した一般コマンドが時計読出コマンドでないと判別したとき(S111がNO判定の場合)、制御LSI200は、受信コマンドが最新番号コマンドであるか否かを判別する(S113)。制御LSI200は、受信バッファを参照し、受信したデータに最新番号コマンドのIDである「CN」が含まれている場合は、一般コマンドが最新番号コマンドであると判別し、「CN」が含まれていない場合は、最新番号コマンドでないと判別する。   On the other hand, when it is determined in S111 that the received general command is not the clock read command (when S111 is NO), the control LSI 200 determines whether the received command is the latest number command (S113). The control LSI 200 refers to the reception buffer, and when the received data includes “CN” which is the ID of the latest number command, it determines that the general command is the latest number command and includes “CN”. If not, it is determined that it is not the latest number command.

S113において、受信した一般コマンドが最新番号コマンドであると判別したとき(S113がYES判定の場合)、制御LSI200は、最新番号コマンド受信時処理を行う(S114)。この処理で、制御LSI200は、RAM204の最新番号格納領域を参照し、最新番号格納領域に記憶されている最新番号を取得する。そして、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S113 that the received general command is the latest number command (when the determination in S113 is YES), the control LSI 200 performs processing when the latest number command is received (S114). In this process, the control LSI 200 refers to the latest number storage area of the RAM 204 and acquires the latest number stored in the latest number storage area. Then, the control LSI 200 ends the general command reception process.

一方、S113において、受信した一般コマンドが最新番号コマンドでないと判別したとき(S113がNO判定の場合)、制御LSI200は、受信コマンドが開閉履歴情報読出コマンドであるか否かを判別する(S115)。制御LSI200は、受信バッファを参照し、受信したデータに開閉履歴情報読出コマンドのIDである「CB」が含まれている場合は、一般コマンドが開閉履歴情報読出コマンドであると判別し、「CB」が含まれていない場合は、開閉履歴情報読出コマンドでないと判別する。   On the other hand, when it is determined in S113 that the received general command is not the latest number command (when S113 is NO), the control LSI 200 determines whether the received command is the open / close history information read command (S115). . The control LSI 200 refers to the reception buffer, and when the received data includes “CB” which is the ID of the open / close history information read command, the control LSI 200 determines that the general command is the open / close history information read command. If “is not included, it is determined that the command is not the open / close history information read command.

S115において、受信した一般コマンドが開閉履歴情報読出コマンドであると判別したとき(S115がYES判定の場合)、制御LSI200は、開閉履歴情報読出コマンド受信時処理を行う(S116)。この処理で、制御LSI200は、開閉履歴情報読出コマンドに付随する番号に対応するEEPROM205の開閉履歴格納領域に記憶されている開閉履歴情報を取得する。そして、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S115 that the received general command is the open / close history information read command (when the determination in S115 is YES), the control LSI 200 performs open / close history information read command reception processing (S116). In this process, the control LSI 200 acquires the open / close history information stored in the open / close history storage area of the EEPROM 205 corresponding to the number associated with the open / close history information read command. Then, the control LSI 200 ends the general command reception process.

一方、S115において、受信した一般コマンドが開閉履歴情報読出コマンドでないと判別したとき(S115がNO判定の場合)、制御LSI200は、受信コマンドが開閉履歴情報数コマンドであるか否かを判別する(S117)。制御LSI200は、受信バッファを参照し、受信したデータに開閉履歴情報数コマンドのIDである「CC」が含まれている場合は、一般コマンドが開閉履歴情報数コマンドであると判別し、「CC」が含まれていない場合は、開閉履歴情報数コマンドでないと判別する。   On the other hand, when it is determined in S115 that the received general command is not the open / close history information read command (when S115 is NO), the control LSI 200 determines whether the received command is the open / close history information number command ( S117). The control LSI 200 refers to the reception buffer and determines that the general command is the open / close history information count command when the received data includes “CC” which is the ID of the open / close history information count command. If “is not included, it is determined that the command is not the open / close history information number command.

S117において、受信した一般コマンドが開閉履歴情報数コマンドであると判別したとき(S117がYES判定の場合)、制御LSI200は、開閉履歴情報数コマンド受信時処理を行う(S118)。この処理で、制御LSI200は、EEPROM205の履歴カウンタ記憶領域に記憶されている履歴カウンタの値を取得する。そして、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S117 that the received general command is the open / close history information count command (when the determination in S117 is YES), the control LSI 200 performs open / close history information count command reception processing (S118). In this process, the control LSI 200 acquires the value of the history counter stored in the history counter storage area of the EEPROM 205. Then, the control LSI 200 ends the general command reception process.

一方、S117において、受信した一般コマンドが開閉履歴情報数コマンドでないと判別したとき(S117がNO判定の場合)、制御LSI200は、受信コマンドがステータス読出コマンドであるか否かを判別する(S119)。制御LSI200は、受信バッファを参照し、受信したデータにステータス読出コマンドのIDである「CS」が含まれている場合は、一般コマンドがステータス読出コマンドであると判別し、「CS」が含まれていない場合は、ステータス読出コマンドでないと判別する。   On the other hand, when it is determined in S117 that the received general command is not the open / close history information number command (S117 is NO), the control LSI 200 determines whether the received command is a status read command (S119). . The control LSI 200 refers to the reception buffer, and when the received data includes "CS" which is the ID of the status read command, the control LSI 200 determines that the general command is the status read command, and includes "CS". If not, it is determined that the command is not a status read command.

S119において、受信した一般コマンドがステータス読出コマンドであると判別したとき(S119がYES判定の場合)、制御LSI200は、ステータス読出コマンド受信時処理を行う(S120)。この処理で、制御LSI200は、RAM204の第1検知結果格納領域に記憶されている開閉履歴情報を取得する。そして、制御LSI200は、一般コマンド受信時処理を終了する。   When it is determined in S119 that the received general command is a status read command (when S119 is YES), the control LSI 200 performs a status read command reception process (S120). In this process, the control LSI 200 acquires the open / close history information stored in the first detection result storage area of the RAM 204. Then, the control LSI 200 ends the general command reception process.

一方、受信した一般コマンドがステータス読出コマンドでないと判別したとき(S119がNO判定の場合)、制御LSI200は、一般コマンド受信時処理を終了する。
(10)乱数コマンド受信時処理
次に、一般コマンド受信時処理(図30参照)のS106における乱数コマンド受信時処理について、図31を参照して説明する。
図31は、本実施形態における乱数コマンド受信時処理の例を示すフローチャートである。
On the other hand, when it is determined that the received general command is not a status read command (when S119 is NO), the control LSI 200 ends the general command reception process.
(10) Random Number Command Reception Process Next, the random number command reception process in S106 of the general command reception process (see FIG. 30) will be described with reference to FIG.
FIG. 31 is a flowchart showing an example of random number command reception processing in the present embodiment.

乱数コマンド受信時処理において、制御LSI200は、まず、乱数発生回路208に乱数を発生させ、発生させた乱数をRAM204の乱数格納領域に記憶させる(S121)。具体的には、乱数発生回路208であるFRCのカウント値を取得し、式1の演算を行って乱数を発生させる。
乱数=カウント値×カウント値+カウント値・・・式1
式1の演算により算出された乱数は、ASCIIコードに変換され、RAM204の乱数格納領域に記憶される。S121の処理を行う制御LSI200は、特定情報発生手段を構成する。
In the random number command reception process, the control LSI 200 first causes the random number generation circuit 208 to generate a random number, and stores the generated random number in the random number storage area of the RAM 204 (S121). Specifically, the count value of the FRC which is the random number generation circuit 208 is acquired, and the operation of Equation 1 is performed to generate a random number.
Random number = count value × count value + count value Formula 1
The random number calculated by the operation of Equation 1 is converted to an ASCII code and stored in the random number storage area of the RAM 204. The control LSI 200 that performs the process of S121 constitutes a specific information generation unit.

次いで、制御LSI200は、EEPROM205の秘密鍵格納領域に記憶されている秘密鍵を取得する(S122)。
次いで、制御LSI200は、RAM204の乱数格納領域の乱数と、S122で取得した秘密鍵を用いて、パスワードを生成するパスワード生成処理を行う(S123)。具体的には、制御LSI200は、16バイトの秘密鍵と8バイトの乱数を基にパスワードとしてのハッシュ値を算出する(例えば、MD5,SHA−0,SHA−1,SHA−2,SHA−3等)。S123の処理を行う制御LSI200は、監視側認証情報生成手段を構成する。
Next, the control LSI 200 acquires the secret key stored in the secret key storage area of the EEPROM 205 (S122).
Next, the control LSI 200 performs password generation processing for generating a password using the random number in the random number storage area of the RAM 204 and the secret key acquired in S122 (S123). Specifically, the control LSI 200 calculates a hash value as a password based on a 16-byte secret key and an 8-byte random number (for example, MD5, SHA-0, SHA-1, SHA-2, SHA-3). etc). The control LSI 200 that performs the process of S123 constitutes monitoring side authentication information generation means.

次いで、制御LSI200は、生成したパスワードをEEPROM205のパスワード格納領域に記憶させる(S124)。そして、制御LSI200は、乱数コマンド受信時処理を終了する。   Next, the control LSI 200 stores the generated password in the password storage area of the EEPROM 205 (S124). Then, the control LSI 200 ends the random number command reception process.

(11)ログインコマンド受信時処理
次に、一般コマンド受信時処理(図30参照)のS108におけるログインコマンド受信時処理について、図32を参照して説明する。
図32は、本実施形態におけるログインコマンド受信時処理の例を示すフローチャートである。
(11) Login Command Reception Process Next, the login command reception process in S108 of the general command reception process (see FIG. 30) will be described with reference to FIG.
FIG. 32 is a flowchart showing an example of login command reception processing in this embodiment.

ログインコマンド受信時処理において、制御LSI200は、ログイン不許可タイマは計測中か否かを判別する(S131)。ここで、ログイン不許可タイマとは、ログインを許可しない状態が維持する時間を計測するタイマである。ログイン不許可タイマの計測は、不正ログインを防止するために、後述のS134の処理でパスワードが一致しないと判別した場合に、開始される。なお、本実施形態において、ログイン不許可タイマの計測は、RTC201を用いて行われ、長さは1時間に設定されている。具体的には、制御LSI200は、計測を開始した時刻をRAM204に記憶させ、S131の処理において、RTC201から取得した現在時刻と、計測を開始した時刻との差が、1時間未満の場合に、ログイン不許可タイマは計測中であると判別する。一方、制御LSI200は、RTC201から取得した現在時刻と、計測を開始した時刻との差が、1時間以上の場合に、ログイン不許可タイマは計測中でないと判別する。   In the process at the time of login command reception, the control LSI 200 determines whether the login non-permission timer is measuring (S131). Here, the login non-permission timer is a timer that measures a time during which a state in which login is not permitted is maintained. The measurement of the login non-permission timer is started when it is determined in the process of S 134 described later that the passwords do not match in order to prevent unauthorized login. In the present embodiment, the measurement of the login non-permission timer is performed using the RTC 201, and the length is set to one hour. Specifically, the control LSI 200 stores the time when the measurement was started in the RAM 204, and in the process of S131, when the difference between the current time acquired from the RTC 201 and the time when the measurement is started is less than one hour, The login non-permission timer determines that measurement is in progress. On the other hand, when the difference between the current time acquired from the RTC 201 and the time when the measurement is started is one hour or more, the control LSI 200 determines that the login non-permission timer is not measuring.

S131において、ログイン不許可タイマは計測中であると判別したとき(S131がYES判定の場合)、制御LSI200は、ログインコマンド受信時処理を終了する。一方、S131において、ログイン不許可タイマは計測中でないと判別したとき(S131がNO判定の場合)、制御LSI200は、RAM204の受信バッファからホスト機器から受信したパスワードを取得する(S132)。   When it is determined in S131 that the login non-permission timer is measuring (when S131 is YES), the control LSI 200 ends the login command reception process. On the other hand, when it is determined in S131 that the login non-permission timer is not measuring (S131 is NO), the control LSI 200 acquires the password received from the host device from the reception buffer of the RAM 204 (S132).

次いで、制御LSI200は、S132で取得したパスワードとEEPROM205のパスワード格納領域に記憶されているパスワードとを比較する(S133)。
次いで、制御LSI200は、S133の比較の結果、これらのパスワードが一致するか否かを判別する(S134)。S134の処理を行う制御LSI200は、認証情報判定手段を構成する。
Next, the control LSI 200 compares the password acquired in S132 with the password stored in the password storage area of the EEPROM 205 (S133).
Next, as a result of the comparison in S133, the control LSI 200 determines whether these passwords match (S134). The control LSI 200 that performs the process of S134 constitutes an authentication information determination unit.

S134において、これらのパスワードが一致すると判別するとき(S134がYES判定の場合)、制御LSI200は、RAM204のログインフラグ格納領域に記憶されているログインフラグをONに設定する(S135)。その後、制御LSI200は、ログインコマンド受信時処理を終了する。   When it is determined in S134 that the passwords match (in the case of YES determination in S134), the control LSI 200 sets the login flag stored in the login flag storage area of the RAM 204 to ON (S135). Thereafter, the control LSI 200 ends the login command reception process.

S134において、これらのパスワードが一致しないと判別するとき(S134がNO判定の場合)、制御LSI200は、ログイン不許可タイマの計測を開始する(S136)。その後、制御LSI200は、ログインコマンド受信時処理を終了する。   When it is determined in S134 that the passwords do not match (S134 is NO), the control LSI 200 starts measurement of the login non-permission timer (S136). Thereafter, the control LSI 200 ends the login command reception process.

(12)送信処理
次に、ドア監視ユニットメイン処理(図21参照)のS5における送信処理について、図33を参照して説明する。
図33は本実施形態における送信処理の例を示すフローチャートである。
(12) Transmission Process Next, the transmission process in S5 of the door monitoring unit main process (see FIG. 21) will be described with reference to FIG.
FIG. 33 is a flowchart showing an example of transmission processing in this embodiment.

送信処理において、制御LSI200は、まず、RAM204の受信完了フラグ格納領域に記憶されている受信完了フラグがONに設定されているか否かを判別する(S141)。S141において、受信完了フラグがONでないと判別したとき(S141がNO判定の場合)、制御LSI200は、送信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS6に戻す。   In the transmission process, the control LSI 200 first determines whether the reception completion flag stored in the reception completion flag storage area of the RAM 204 is set to ON (S141). When it is determined in S141 that the reception completion flag is not ON (S141 is NO), the control LSI 200 ends the transmission process and returns the process to S6 of the door monitoring unit main process (see FIG. 21).

一方、S141において、受信完了フラグがONに設定されていると判別したとき(S141がYES判定の場合)。制御LSI200は、受信完了フラグをOFFに設定する(S142)。   On the other hand, when it is determined in S141 that the reception completion flag is set to ON (in the case where the determination in S141 is YES). The control LSI 200 sets the reception completion flag to OFF (S142).

次いで、制御LSI200は、受信コマンドは特権コマンドかであるか否かを判別する(S143)。具体的には、制御LSI200は、受信バッファを参照し、受信したデータに特権コマンドのID(図13に示すSI,ST,SA,SB,SC,SWのいずれか)が含まれている場合は、受信コマンドは特権コマンドであると判別し、含まれていない場合は、特権コマンドでないと判別する。   Next, the control LSI 200 determines whether the received command is a privileged command or not (S143). Specifically, the control LSI 200 refers to the reception buffer, and if the received data includes the ID of a privileged command (SI, ST, SA, SB, SC, or SW shown in FIG. 13), , And determines that the received command is not a privileged command if it is not included.

S143において、受信コマンドは特権コマンドであると判別したとき(S143がYES判定の場合)、制御LSI200は、特権アンサ送信処理を行う(S144)。特権アンサ送信処理において、制御LSI200は、受信した特権コマンドに応じた各種送信処理を行う。特権アンサ送信処理の具体的な内容は、後で図34を参照して説明する。その後、制御LSI200は、送信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS6に戻す。   When it is determined in S143 that the received command is a privileged command (when S143 is YES), the control LSI 200 performs privileged answer transmission processing (S144). In the privileged answer transmission process, the control LSI 200 performs various transmission processes according to the received privileged command. The specific content of the privilege answer transmission process will be described later with reference to FIG. Thereafter, the control LSI 200 ends the transmission process, and returns the process to S6 of the door monitoring unit main process (see FIG. 21).

S143において、受信コマンドは特権コマンドでないと判別したとき(S143がNO判定の場合)、制御LSI200は、一般アンサ送信処理を行う(S145)。一般アンサ送信処理において、制御LSI200は、受信した一般コマンドに応じた各種送信処理を行う。一般アンサ送信処理の具体的な内容は、後で図35を参照して説明する。その後、制御LSI200は、送信処理を終了し、処理をドア監視ユニットメイン処理(図21参照)のS6に戻す。   If it is determined in S143 that the received command is not a privileged command (if S143 is NO), the control LSI 200 performs general answer transmission processing (S145). In the general answer transmission process, the control LSI 200 performs various transmission processes according to the received general command. The specific content of the general answer transmission process will be described later with reference to FIG. Thereafter, the control LSI 200 ends the transmission process, and returns the process to S6 of the door monitoring unit main process (see FIG. 21).

(13)特権アンサ送信処理
次に、送信処理(図32参照)のS144における特権アンサ送信処理について、図34を参照して説明する。
図34は本実施形態における特権アンサ送信処理の例を示すフローチャートである。
(13) Privilege Answer Transmission Process Next, the privilege answer transmission process in S144 of the transmission process (see FIG. 32) will be described with reference to FIG.
FIG. 34 is a flowchart showing an example of privileged answer transmission processing in the present embodiment.

特権アンサ送信処理において、制御LSI200は、まず、受信したコマンドが秘密鍵設定コマンドであるか否かを判別する(S151)。制御LSI200は、RAM204の受信バッファを参照し、受信したデータに秘密鍵設定コマンドのIDである「SW」が含まれている場合は、特権コマンドが秘密鍵設定コマンドであると判別し、「SW」が含まれていない場合は、秘密鍵設定コマンドでないと判別する。   In the privileged answer transmission process, the control LSI 200 first determines whether the received command is a secret key setting command (S151). The control LSI 200 refers to the reception buffer of the RAM 204 and determines that the privileged command is the secret key setting command when the received data includes “SW” which is the ID of the secret key setting command, and “SW If “is not included, it is determined that the command is not a secret key setting command.

S151において、受信したコマンドが秘密鍵設定コマンドでないと判別したとき(S151がNO判定の場合)、制御LSI200は、後述のS155の処理を行う。
一方、S151において、受信したコマンドが秘密鍵設定コマンドであると判別したとき(S151がYES判定の場合)、制御LSI200は、受信バッファに記憶されている秘密鍵、すなわち受信した秘密鍵設定コマンドに付随する秘密鍵と、EEPROM205の秘密鍵格納領域に記憶されている秘密鍵とが一致するか否かを判別する(S152)。
When it is determined in S151 that the received command is not a secret key setting command (when S151 is NO), the control LSI 200 performs the process of S155 described later.
On the other hand, when it is determined in S151 that the received command is the secret key setting command (when S151 is YES determination), the control LSI 200 sets the secret key stored in the reception buffer, ie, the received secret key setting command. It is determined whether the accompanying secret key matches the secret key stored in the secret key storage area of the EEPROM 205 (S152).

S152の処理において両者が一致すると判別したとき(S152がYES判定の場合)、設定結果OKの旨のアンサをホスト機器に送信する送信処理を行う(S153)。そして、制御LSI200は、特権アンサ送信処理を終了する。   When it is determined in the process of S152 that both match (in the case of YES determination in S152), a transmission process of transmitting an answer indicating that the setting result is OK to the host device is performed (S153). Then, the control LSI 200 ends the privileged answer transmission process.

S152の処理において両者が一致しないと判別したとき(S152がNO判定の場合)、設定結果NGの旨のアンサをホスト機器に送信する送信処理を行う(S154)。そして、制御LSI200は、特権アンサ送信処理を終了する。   When it is determined in the process of S152 that the two do not match (in the case of NO determination in S152), a transmission process of transmitting an answer indicating the setting result NG to the host device is performed (S154). Then, the control LSI 200 ends the privileged answer transmission process.

ここで、S151の説明に戻って、受信したコマンドが秘密鍵設定コマンドでないと判別したとき(S151がNO判定の場合)、制御LSI200は、RAM204の受信バッファを参照し、受信した特権コマンドを特定する(S155)。   Here, returning to the description of S151, when it is determined that the received command is not the secret key setting command (when S151 is NO), the control LSI 200 refers to the reception buffer of the RAM 204 and identifies the received privileged command. (S155).

次いで、制御LSI200は、S155で特定したコマンドに対応するアンサをホスト機器に送信する送信処理(S156)を行う。そして、制御LSI200は、特権アンサ送信処理を終了する。なお、S153,S154においては、受信した特権コマンドのIDに対応するアンサ用のIDに「設定結果OK」か「設定結果NG」の情報が付随したアンサがホスト機器に送信される。しかし、S156では、アンサ用のIDに付随させる情報がないため、受信した特権コマンドのIDに対応するアンサ用のIDのみがアンサとしてホスト機器に送信される。   Next, the control LSI 200 performs transmission processing (S156) for transmitting an answer corresponding to the command identified in S155 to the host device. Then, the control LSI 200 ends the privileged answer transmission process. In S153 and S154, an answer with the information of “setting result OK” or “setting result NG” attached to the answer ID corresponding to the ID of the received privileged command is transmitted to the host device. However, in S156, since there is no information to be added to the answer ID, only the answer ID corresponding to the received privileged command ID is transmitted to the host device as an answer.

(14)一般アンサ送信処理
次に、送信処理(図33参照)のS145における一般アンサ送信処理について、図35を参照して説明する。
図35は本実施形態における一般アンサ送信処理の例を示すフローチャートである。
(14) General Answer Transmission Process Next, the general answer transmission process in S145 of the transmission process (see FIG. 33) will be described with reference to FIG.
FIG. 35 is a flowchart showing an example of general answer transmission processing in the present embodiment.

一般コマンド受信時処理において、制御LSI200は、まず、受信した一般コマンドがシリアルIDコマンドであるか否かを判別する(S161)。S161において、受信した一般コマンドがシリアルIDコマンドであると判別したとき(S161がYES判定の場合)、制御LSI200は、シリアルIDコマンド受信時処理(図30のS102)で取得したシリアルIDをホスト機器に送信するアンサ送信処理(シリアルID)を行う(S162)。その後、制御LSI200は、一般アンサ送信処理を終了する。   In the general command reception process, the control LSI 200 first determines whether the received general command is a serial ID command (S161). When it is determined in S161 that the received general command is a serial ID command (when S161 is YES), the control LSI 200 uses the host device for the serial ID acquired in the serial ID command reception process (S102 in FIG. 30). The answer transmission process (serial ID) to be sent to is performed (S162). After that, the control LSI 200 ends the general answer transmission process.

一方、S161において、受信した一般コマンドがシリアルIDコマンドでないと判別したとき(S161がNO判定の場合)、制御LSI200は、受信コマンドがバージョン要求コマンドであるか否かを判別する(S163)。S163において、受信した一般コマンドがバージョン要求コマンドであると判別したとき(S163がYES判定の場合)、制御LSI200は、バージョン要求コマンド受信時処理(図30のS104参照)で取得したプログラムバージョンをホスト機器に送信するアンサ送信処理(バージョン)を行う(S164)。その後、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S161 that the received general command is not a serial ID command (S161 is NO), the control LSI 200 determines whether the received command is a version request command (S163). When it is determined in S163 that the received general command is a version request command (when S163 is YES determination), the control LSI 200 uses the program version acquired in the version request command reception process (see S104 in FIG. 30) as a host. Answer transmission processing (version) to be transmitted to the device is performed (S 164). After that, the control LSI 200 ends the general answer transmission process.

一方、S163において、受信した一般コマンドがバージョン要求コマンドでないと判別したとき(S163がNO判定の場合)、制御LSI200は、受信コマンドが乱数コマンドであるか否かを判別する(S165)。制御LSI200は、S165において、受信した一般コマンドが乱数コマンドであると判別したとき(S165がYES判定の場合)、制御LSI200は、乱数コマンド受信時処理(図31参照)で発生させ、RAM204の乱数格納領域に記憶させた乱数をホスト機器に送信するアンサ送信処理(乱数)を行う(S166)。S166の処理を行う制御LSI200は、特定情報送信手段を構成する。その後、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S163 that the received general command is not a version request command (S163 is NO), the control LSI 200 determines whether the received command is a random number command (S165). When the control LSI 200 determines in S165 that the received general command is a random number command (when the determination in S165 is YES), the control LSI 200 generates the random number command upon reception processing (see FIG. 31). An answer transmission process (random number) for transmitting the random number stored in the storage area to the host device is performed (S166). The control LSI 200 that performs the process of S166 constitutes a specific information transmission unit. After that, the control LSI 200 ends the general answer transmission process.

一方、S165において、受信した一般コマンドが乱数コマンドでないと判別したとき(S165がNO判定の場合)、制御LSI200は、受信コマンドがログインコマンドであるか否かを判別する(S167)。S167において、受信した一般コマンドがログインコマンドであると判別したとき(S167がYES判定の場合)、制御LSI200は、RAM204のログインフラグ格納領域を参照し、ログインコマンド受信時処理(図32参照)で設定されたログインフラグの状態(ON又はOFF)を示す情報をホスト機器に送信するアンサ送信処理(ログインフラグの状態)を行う(S168)。その後、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, if it is determined in S165 that the received general command is not a random number command (if S165 is NO), the control LSI 200 determines whether the received command is a login command (S167). When it is determined in S167 that the received general command is a login command (when S167 is YES), the control LSI 200 refers to the login flag storage area of the RAM 204 and performs processing at the time of login command reception (see FIG. 32). An answer transmission process (state of login flag) for transmitting information indicating the set state (ON or OFF) of the login flag to the host device is performed (S168). After that, the control LSI 200 ends the general answer transmission process.

一方、S167において、受信した一般コマンドがログインコマンドでないと判別したとき(S167がNO判定の場合)、制御LSI200は、受信コマンドがログアウトコマンドであるか否かを判別する(S169)。S169において、受信した一般コマンドがログアウトコマンドであると判別したとき、制御LSI200は、RAM204のログインフラグ格納領域を参照し、ログアウトコマンド受信時処理(図30のS110参照)で設定されたログインフラグの状態(OFF)を示す情報をホスト機器に送信するアンサ送信処理(ログインフラグの状態)を行う(S170)。その後、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S167 that the received general command is not a login command (when S167 is NO), the control LSI 200 determines whether the received command is a logout command (S169). When it is determined in S169 that the received general command is a logout command, the control LSI 200 refers to the login flag storage area of the RAM 204, and the login flag is set in the logout command reception process (see S110 in FIG. 30). An answer transmission process (state of login flag) for transmitting information indicating the state (OFF) to the host device is performed (S170). After that, the control LSI 200 ends the general answer transmission process.

一方、S169において、受信した一般コマンドがログアウトコマンドでないと判別したとき(S169がNO判定の場合)、制御LSI200は、受信コマンドが時計読出コマンドであるか否かを判別する(S171)。S171において、受信した一般コマンドが時計読出コマンドであると判別したとき(S171がYES判定の場合)、制御LSI200は、時計読出コマンド受信時処理(図30のS112)で取得した現在時刻をホスト機器に送信するアンサ送信処理(RTC)を行う(S172)。その後、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S169 that the received general command is not a logout command (S169 is NO), the control LSI 200 determines whether the received command is a clock read command (S171). When it is determined in S171 that the received general command is the clock read command (when S171 is YES), the control LSI 200 determines the current time acquired in the clock read command reception process (S112 in FIG. 30) as the host device. The answer transmission process (RTC) to be sent to the server is performed (S172). After that, the control LSI 200 ends the general answer transmission process.

一方、S171において、受信した一般コマンドが時計読出コマンドでないと判別したとき(S171がNO判定の場合)、制御LSI200は、受信コマンドが最新番号コマンドであるか否かを判別する(S173)。S173において、受信した一般コマンドが最新番号コマンドであると判別したとき(S173がYES判定の場合)、制御LSI200は、最新番号コマンド受信時処理(図30のS114)で取得した最新番号をホスト機器に送信するアンサ送信処理(最新番号)を行う(S174)。そして、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S171 that the received general command is not a clock read command (when S171 is NO), the control LSI 200 determines whether the received command is the latest number command (S173). When it is determined in S173 that the received general command is the latest number command (when S173 is YES), the control LSI 200 uses the latest number acquired in the latest number command reception process (S114 in FIG. 30) as the host device. The answer transmission process (latest number) to be sent to is performed (S174). Then, the control LSI 200 ends the general answer transmission process.

一方、S173において、受信した一般コマンドが最新番号コマンドでないと判別したとき(S172がNO判定の場合)、制御LSI200は、受信コマンドが開閉履歴情報読出コマンドであるか否かを判別する(S175)。S175において、受信した一般コマンドが開閉履歴情報読出コマンドであると判別したとき(S175がYES判定の場合)、制御LSI200は、開閉履歴情報読出コマンド受信時処理(図30のS116参照)で取得した、開閉履歴情報読出コマンドに付随する番号に対応するEEPROM205の開閉履歴格納領域に記憶されている開閉履歴情報を、ホスト機器に送信するアンサ送信処理(開閉履歴情報)を行う(S176)。そして、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S173 that the received general command is not the latest number command (when S172 is NO), the control LSI 200 determines whether the received command is the open / close history information read command (S175) . When it is determined in S175 that the received general command is the open / close history information read command (when S175 is YES determination), the control LSI 200 acquires the open / close history information read command at the time of processing (see S116 in FIG. 30). An answer transmission process (opening / closing history information) for transmitting the opening / closing history information stored in the opening / closing history storage area of the EEPROM 205 corresponding to the number associated with the opening / closing history information read command to the host device is performed (S176). Then, the control LSI 200 ends the general answer transmission process.

一方、S175において、受信した一般コマンドが開閉履歴情報読出コマンドでないと判別したとき(S175がNO判定の場合)、制御LSI200は、受信コマンドが開閉履歴情報数コマンドであるか否かを判別する(S177)。S177において、受信した一般コマンドが開閉履歴情報数コマンドであると判別したとき(S177がYES判定の場合)、制御LSI200は、開閉履歴情報数コマンド受信時処理(図30のS118)で取得した履歴カウンタの値をホスト機器に送信するアンサ送信処理(開閉履歴情報数)を行う(S178)。そして、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S175 that the received general command is not the open / close history information read command (S175 is NO determination), the control LSI 200 determines whether the received command is the open / close history information number command ( S177). When it is determined in S177 that the received general command is the open / close history information count command (when S177 is YES), the control LSI 200 acquires the history acquired in the open / close history information count command reception process (S118 in FIG. 30). An answer transmission process (number of open / close history information) for transmitting the value of the counter to the host device is performed (S178). Then, the control LSI 200 ends the general answer transmission process.

一方、S177において、受信した一般コマンドが開閉履歴情報数コマンドでないと判別したとき(S177がNO判定の場合)、制御LSI200は、受信コマンドがステータス読出コマンドであるか否かを判別する(S179)。S179において、受信した一般コマンドがステータス読出コマンドであると判別したとき(S179がYES判定の場合)、制御LSI200は、ステータス読出コマンド受信時処理(図30のS120)で取得したRAM204の第1検知結果格納領域に記憶されている開閉履歴情報を、ホスト機器に送信するアンサ送信処理(ステータス)を行う(S180)。そして、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined in S177 that the received general command is not the open / close history information number command (S177 is NO), the control LSI 200 determines whether the received command is a status read command (S179). . When it is determined in S179 that the received general command is a status read command (when S179 is YES), the control LSI 200 performs the first detection of the RAM 204 acquired in the status read command reception process (S120 in FIG. 30). An answer transmission process (status) for transmitting the open / close history information stored in the result storage area to the host device is performed (S180). Then, the control LSI 200 ends the general answer transmission process.

一方、受信した一般コマンドがステータス読出コマンドでないと判別したとき(S179がNO判定の場合)、制御LSI200は、一般アンサ送信処理を終了する。   On the other hand, when it is determined that the received general command is not a status read command (when S179 is NO), the control LSI 200 ends the general answer transmission process.

なお、一般アンサ送信処理における受信したコマンドの種別を判別する処理(S161,S163,S165,S167,S169,S171,S173,S175,S177,S179)において、制御LSI200は、受信バッファを参照し、受信したデータに含まれているコマンドのIDに基づいてコマンドの種別を判別する。
なお、一般アンサ送信処理におけるアンサ送信処理(S162,S164,S166,S168,S170,S172,S174,S176,S178,S180)では、受信した一般コマンドのIDに対応するアンサ用のIDに、各種情報(図35のS162,S164,S166,S168,S170,S172,S174,S176,S178,S180にかっこ書きで示した情報)が付随したアンサがホスト機器に送信される。
In the process of determining the type of the received command in the general answer transmission process (S161, S163, S165, S167, S169, S171, S173, S175, S177, S179), the control LSI 200 refers to the reception buffer and performs reception. The type of command is determined based on the ID of the command included in the data.
In the answer transmission process (S162, S164, S166, S168, S170, S172, S174, S176, S178, S180) in the general answer transmission process, various types of information are used as the answer ID corresponding to the ID of the received general command. An answer accompanied by (information shown in parentheses at S162, S164, S166, S168, S170, S172, S176, S178, and S180 in FIG. 35) is transmitted to the host device.

<ホスト機器が行う処理>
次に、ホスト機器が行う各種処理について、ホスト機器の一例である副制御基板72が備えるサブCPU102が行う処理を例に、図36〜図51を参照して、説明する。
<Processing performed by host device>
Next, various types of processing performed by the host device will be described with reference to FIGS. 36 to 51 by taking as an example the processing performed by the sub CPU 102 included in the sub control board 72 which is an example of the host device.

ここで、サブSRAM103bには、EEPROM205と同様の、シリアルID格納領域、秘密鍵格納領域、履歴カウンタ格納領域、最新番号格納領域、128個の開閉履歴情報格納領域、プログラムバージョン格納領域が形成されている。サブSRAM103bのシリアルID格納領域には、予め24hドア監視ユニット63のシリアルIDが記憶されている。サブSRAM103bの秘密鍵格納領域には、24hドア監視ユニット63のEEPROM205が記憶している秘密鍵と同じ秘密鍵が記憶されている。また、プログラムバージョン格納領域には、予め24hドア監視ユニット63で実行されるプログラムのバージョンが記憶されている。また、履歴カウンタ格納領域、最新番号格納領域、128個の開閉履歴情報格納領域には、24hドア監視ユニット63から受信した履歴カウンタの値、最新番号、開閉履歴情報が記憶される。サブSRAM103bは、設定側記憶手段を構成する。   Here, in the sub SRAM 103b, a serial ID storage area, a secret key storage area, a history counter storage area, a latest number storage area, 128 open / close history information storage areas, and a program version storage area are formed similar to the EEPROM 205. There is. The serial ID of the 24 h door monitoring unit 63 is stored in advance in the serial ID storage area of the sub SRAM 103 b. In the secret key storage area of the sub SRAM 103b, the same secret key as the secret key stored in the EEPROM 205 of the 24 h door monitoring unit 63 is stored. The program version storage area stores the version of the program to be executed by the 24 h door monitoring unit 63 in advance. The history counter storage area, the latest number storage area, and the 128 open / close history information storage areas store the value of the history counter received from the 24 h door monitoring unit 63, the latest number, and the open / close history information. The sub SRAM 103b constitutes setting side storage means.

また、サブDRAM103aには、RAM204の受信完了フラグ格納領域、サムカウンタ格納領域、ETX受信フラグ格納領域、受信カウンタ格納領域と同様のサブ受信完了フラグ格納領域、サブサムカウンタ格納領域、サブETX受信フラグ格納領域、サブ受信カウンタ格納領域が形成されている。また、サブDRAM103aには、RAM204と同様の、パスワード格納領域、送信バッファ、受信バッファが形成されている。また、サブDRAM103aには、24hドア監視ユニット63から送信されたステータスコマンドのアンサに付随する開閉履歴情報を格納するステータス格納領域が形成されている。また、サブDRAM103aには、後述のドア監視タスク(図41参照)のS232で1が加算される第1ドア監視カウンタの値が記憶される第1ドア監視カウンタ格納領域と、同タスクのS235で1が加算される第2ドア監視カウンタの値が記憶される第2ドア監視カウンタ格納領域が形成されている。また、サブDRAM103aには、後述する特権フラグ格納領域が形成されている。なお、サブDRAM103aは、設定側認証情報記憶手段を構成する。   The sub DRAM 103a includes a reception completion flag storage area, a sum counter storage area, an ETX reception flag storage area, a sub reception completion flag storage area similar to the reception counter storage area, a sub sum counter storage area, and a sub ETX reception flag. A storage area and a sub reception counter storage area are formed. Further, in the sub DRAM 103a, a password storage area, a transmission buffer, and a reception buffer are formed similar to the RAM 204. Further, in the sub DRAM 103a, there is formed a status storage area for storing open / close history information associated with the answer of the status command transmitted from the 24h door monitoring unit 63. In addition, the sub-DRAM 103a stores a first door monitoring counter storage area in which the value of the first door monitoring counter to which 1 is added in S232 of the door monitoring task (see FIG. 41) described later is stored. A second door monitoring counter storage area is formed in which the value of the second door monitoring counter to which 1 is added is stored. Further, in the sub DRAM 103a, a privilege flag storage area to be described later is formed. The sub DRAM 103a constitutes setting side authentication information storage means.

(1)ホールメニュータスク
まず、サブCPU102が行うホールメニュータスクについて、図36を参照して説明する。
図36は、本実施形態におけるホールメニュータスクの例を示すフローチャートである。
(1) Hall Menu Task First, the hall menu task performed by the sub CPU 102 will be described with reference to FIG.
FIG. 36 is a flowchart showing an example of the hall menu task in the present embodiment.

ホールメニュータスクは、パチスロ1の設定を変更する際又はパチスロ1の設定を確認する際に使用するホールメニューを制御するタスクである。ホールメニュータスクは、サブCPU102によって、所定の周期、本実施形態では所定時間、例えば33msec毎に行われる。   The hall menu task is a task for controlling the hall menu used when changing the setting of the pachi slot 1 or confirming the setting of the pachi slot 1. The hall menu task is performed by the sub CPU 102 at a predetermined cycle, for example, every 33 msec, in the present embodiment, for a predetermined time.

まず、サブCPU102は、設定キーはオフからオンになったか否かを判別する(S201)。この処理では、設定用鍵型スイッチ56が操作されたことによってメインCPU93から送信される設定変更開始コマンドをサブCPU102が受信すると、サブCPU102は、設定キーはオフからオンになったと判別する。   First, the sub CPU 102 determines whether the setting key is turned on from off (S201). In this process, when the sub CPU 102 receives a setting change start command transmitted from the main CPU 93 by operating the setting key type switch 56, the sub CPU 102 determines that the setting key is turned on from off.

S102において、設定キーはオフからオンになっていないと判別したとき(S102がNO判定の場合)、サブCPU102は、S101の処理を再度行う。すなわち、サブCPU102は、設定キーはオフからオンになったと判別するまでS201の処理を繰り返す。   In S102, when it is determined that the setting key is not turned on from off (when the determination in S102 is NO), the sub CPU 102 performs the process of S101 again. That is, the sub CPU 102 repeats the process of S201 until determining that the setting key is turned on from off.

S201において、設定キーはオフからオンになったと判別したとき(S201がYES判定の場合)、サブCPU102は、液晶表示装置11にホールメニュー画面(図示省略)を表示するホールメニュー表示処理を行う(S202)。   When it is determined in S201 that the setting key has been turned on from off (when S201 is a YES determination), the sub CPU 102 performs hall menu display processing for displaying a hall menu screen (not shown) on the liquid crystal display device 11 ( S202).

各種情報・設定の確認や各種設定の変更を行うために、操作者は、ホールメニュー画面が液晶表示装置11に表示されているときに、エンターボタン25とセレクトボタン26(図2参照)を操作して、ホールメニュー画面に表示されているホールメニューの内、一つのホールメニューを選択する。   In order to confirm various information and settings and change various settings, the operator operates the enter button 25 and the select button 26 (see FIG. 2) when the hall menu screen is displayed on the liquid crystal display device 11. Then, among the hall menus displayed on the hall menu screen, one hall menu is selected.

なお、サブCPU102は、ホールメニュー画面に、選択可能なホールメニューである[時刻設定]、[トータルメダル情報]、[設定変更・確認履歴]、[エラー情報履歴]、[監視履歴]、[警告表示設定]、[報知設定]、「メンテナンス」をそれぞれ矩形のボタン状に表示する。   Note that the sub CPU 102 can select from the hall menu, [Time setting], [Total medal information], [Setting change / confirmation history], [Error information history], [Monitoring history], [Warning], on the hall menu screen. Display setting], [notification setting], and "maintenance" are displayed in the form of rectangular buttons, respectively.

S202のホールメニュー表示処理後、サブCPU102は、ホールメニュー処理を行う(S203)。この処理では、サブCPU102は、選択されたホールメニューに応じた処理を行う。ホールメニュー処理の具体的な内容については、後で図37を参照して説明する。   After the hall menu display process of S202, the sub CPU 102 performs a hall menu process (S203). In this process, the sub CPU 102 performs a process according to the selected hall menu. The specific contents of the hall menu process will be described later with reference to FIG.

次に、サブCPU102は、設定キーはオフになったか否かを判別する(S204)。この処理では、設定用鍵型スイッチ56が操作されたことによってメインCPU93から送信されり設定変更終了コマンドをサブCPU102が受信すると、サブCPU102は、設定キーはオンからオフになったと判別する。   Next, the sub CPU 102 determines whether the setting key is turned off (S204). In this process, when the sub CPU 102 receives a setting change end command transmitted from the main CPU 93 by operating the setting key type switch 56, the sub CPU 102 determines that the setting key is turned off.

S204において、設定キーはオンからオフになっていないと判別したとき(S204がNO判定の場合)、サブCPU102は、処理をS203に戻す。   When it is determined in S204 that the setting key is not turned off from on (when the determination in S204 is NO), the sub CPU 102 returns the process to S203.

S204において、設定キーはオンからオフになったと判別したとき(S204がYES判定の場合)、サブCPU102は、ホールメニュー処理(S203)において、設定変更が行われたか否かを判別する(S205)。   In S204, when it is determined that the setting key is turned off from on (when S204 is a YES determination), the sub CPU 102 determines whether or not the setting change has been performed in the hall menu process (S203) (S205) .

S205において、設定変更が行われたと判別したとき(S205がYES判定の場合)、サブCPU102は、設定変更に伴う各種初期化を行う設定変更初期化処理を行い(S206)、処理をS207に移す。一方、S205において、設定変更が行われていないと判別したとき(S205がNO判定の場合)、サブCPU102は、処理をS207に移す。   In S205, when it is determined that the setting change is performed (S205 is YES determination), the sub CPU 102 performs a setting change initialization process that performs various initializations accompanying the setting change (S206), and moves the process to S207. . On the other hand, when it is determined in S205 that the setting change has not been performed (S205 is NO), the sub CPU 102 shifts the processing to S207.

S207において、サブCPU102は、遊技画面復帰表示処理を行う(S207)。この処理では、サブCPU102は、液晶表示装置11に、遊技を行う際に表示する演出用の映像や、パチスロ1が所定期間操作されなかった場合に表示する初期映像を表示する。そして、サブCPU102は、S207の処理後、処理をS201に移す。   In S207, the sub CPU 102 performs game screen return display processing (S207). In this process, the sub CPU 102 causes the liquid crystal display device 11 to display an image for effect displayed when playing a game, and an initial image displayed when the pachislot 1 is not operated for a predetermined period. Then, the sub CPU 102 shifts the process to S201 after the process of S207.

(2)ホールメニュー処理
次に、図37を参照して、ホールメニュータスク(図36参照)におけるホールメニュー処理(S203)について説明する。
図37は、本実施形態におけるホールメニュー処理の例を示すフローチャートである。
(2) Hall Menu Processing Next, hall menu processing (S203) in the hall menu task (see FIG. 36) will be described with reference to FIG.
FIG. 37 is a flowchart showing an example of hall menu processing in the present embodiment.

ホールメニュー処理において、サブCPU102は、まず、操作者によるエンターボタン25及びセレクトボタン26の操作に基づいて各種情報・設定の確認や各種設定の変更を行う対象であるホールメニューを選択するホールメニュー選択処理を行う(S211)。   In the hall menu process, first, the sub CPU 102 selects a hall menu to be used to confirm various information and settings and change various settings based on the operation of the enter button 25 and the select button 26 by the operator. A process is performed (S211).

次に、サブCPU102は、S211で選択したホールメニューは[時刻設定]か否かを判別する(S212)。S212において、選択したホールメニューが[時刻設定]であると判別した場合(S212がYES判定の場合)、サブCPU102は、時刻設定処理を行う(S213)。この処理では、サブCPU102は、液晶表示装置11に時刻設定画面(図示省略)を表示し、操作者に設定されている時刻の確認及び変更を可能とする。   Next, the sub CPU 102 determines whether or not the hall menu selected in S211 is [time setting] (S212). If it is determined in S212 that the selected hall menu is [time setting] (if S212 is YES), the sub CPU 102 performs time setting processing (S213). In this process, the sub CPU 102 displays a time setting screen (not shown) on the liquid crystal display device 11, and enables confirmation and change of the time set by the operator.

S211で選択したホールメニューが[時刻設定]でないと判別した場合(S212がNO判定の場合)、サブCPU102は、S211で選択したホールメニューは[トータルメダル情報]か否かを判別する(S214)。選択したホールメニューが[トータルメダル情報]であると判別した場合(S214がYES判定の場合)、サブCPU102は、トータルメダル情報処理を行う(S215)。この処理では、サブCPU102は、液晶表示装置11にトータルメダル情報画面(図示省略)を表示し、操作者にトータルメダル情報の確認を可能とする。   If it is determined that the hall menu selected in S211 is not [Time setting] (if S212 is NO), the sub CPU 102 determines whether the hall menu selected in S211 is [total medal information] (S214) . If it is determined that the selected hall menu is [total medal information] (if S214 is YES), the sub CPU 102 performs total medal information processing (S215). In this process, the sub CPU 102 displays a total medal information screen (not shown) on the liquid crystal display device 11, and enables the operator to confirm the total medal information.

S211で選択したホールメニューが[トータルメダル情報]でないと判別した場合(S214がNO判定の場合)、サブCPU102は、S211で選択したホールメニューは[設定変更・確認]か否かを判別する(S216)。選択したホールメニューが[設定変更・確認]であると判別した場合(S216がYES判定の場合)、サブCPU102は、設定変更・確認処理を行う(S217)。この処理では、サブCPU102は、液晶表示装置11に設定変更・確認画面(図示省略)を表示し、操作者に設定の確認及び変更を可能とする。   If it is determined that the hall menu selected in S211 is not [total medal information] (if S214 is NO), the sub CPU 102 determines whether the hall menu selected in S211 is [setting change / confirmation] ( S216). If it is determined that the selected hall menu is [setting change / confirmation] (if S216 is YES), the sub CPU 102 performs a setting change / confirmation process (S217). In this process, the sub CPU 102 displays a setting change / confirmation screen (not shown) on the liquid crystal display device 11, and enables the operator to confirm and change the setting.

S211で選択したホールメニューが[設定変更・確認]でないと判別した場合(S216がNO判定の場合)、サブCPU102は、S211で選択したホールメニューは[エラー情報履歴]か否かを判別する(S218)。選択したホールメニューが[エラー情報履歴]であると判別した場合(S218がYES判定の場合)、サブCPU102は、エラー情報履歴処理を行う(S219)。この処理では、サブCPU102は、液晶表示装置11にエラー情報履歴画面(図示省略)を表示し、操作者にエラー情報履歴の確認や変更を可能とする。   If it is determined that the hall menu selected in S211 is not [setting change / confirmation] (if S216 is NO), the sub CPU 102 determines whether the hall menu selected in S211 is [error information history] ( S 218). If it is determined that the selected hole menu is [error information history] (if S218 is YES), the sub CPU 102 performs error information history processing (S219). In this process, the sub CPU 102 displays an error information history screen (not shown) on the liquid crystal display device 11, and enables the operator to confirm or change the error information history.

S211で選択したホールメニューが[エラー情報履歴]でないと判別した場合(S218がNO判定の場合)、サブCPU102は、S211で選択したホールメニューは[監視履歴]か否かを判別する(S220)。選択したホールメニューが[監視履歴]であると判別した場合(S220がYES判定の場合)、サブCPU102は、監視履歴処理を行う(S221)。この処理では、サブCPU102は、液晶表示装置11に、フロントドア2bの開閉履歴情報を示す監視履歴画面を表示し、操作者に監視履歴の確認を可能とする。監視履歴画面の具体的な内容は、後で図38を参照して説明する。   If it is determined that the hall menu selected in S211 is not [error information history] (if S218 is NO), the sub CPU 102 determines whether the hall menu selected in S211 is [monitoring history] (S220) . If it is determined that the selected hall menu is [monitoring history] (if S220 is YES), the sub CPU 102 performs a monitoring history process (S221). In this process, the sub CPU 102 causes the liquid crystal display device 11 to display a monitoring history screen indicating opening and closing history information of the front door 2b, and enables the operator to confirm the monitoring history. The specific contents of the monitoring history screen will be described later with reference to FIG.

S221で選択したホールメニューが[監視履歴]でないと判別した場合(S220がNO判定の場合)、サブCPU102は、S211で選択したホールメニューは[警告表示設定]か否かを判別する(S222)。選択したホールメニューが[警告表示設定]であると判別した場合(S222がYES判定の場合)、サブCPU102は、警告表示設定処理を行う(S223)。この処理では、サブCPU102は、液晶表示装置11に警告表示設定画面を表示し、操作者に警告表示設定の確認及び変更を可能とする。警告表示設定の具体的な内容は、後で図39を参照して説明する。S223の処理を行うサブCPU102は、期間設定手段を構成する。   If it is determined that the hall menu selected in S221 is not [monitoring history] (if S220 is NO), the sub CPU 102 determines whether the hall menu selected in S211 is [warning display setting] (S222) . If it is determined that the selected hall menu is [Warning display setting] (if S222 is YES), the sub CPU 102 performs a warning display setting process (S223). In this process, the sub CPU 102 displays a warning display setting screen on the liquid crystal display device 11, and enables the operator to confirm and change the warning display setting. The specific contents of the warning display setting will be described later with reference to FIG. The sub CPU 102 that performs the process of S223 constitutes a period setting unit.

S211で選択したホールメニューが[警告表示設定]でないと判別した場合(S222がNO判定の場合)、サブCPU102は、S211で選択したホールメニューは[報知設定]か否かを判別する(S224)。選択したホールメニューが[報知設定]であると判別した場合(S224がYES判定の場合)、サブCPU102は、報知設定処理を行う(S225)。この処理では、サブCPU102は、液晶表示装置11に報知設定画面(図示省略)を表示し、操作者に報知設定の確認及び変更を可能とする。   If it is determined that the hall menu selected in S211 is not [warning display setting] (if S222 is NO), the sub CPU 102 determines whether the hall menu selected in S211 is [notification setting] (S224) . If it is determined that the selected hall menu is [notification setting] (if S224 is YES), the sub CPU 102 performs a notification setting process (S225). In this process, the sub CPU 102 displays a notification setting screen (not shown) on the liquid crystal display device 11, and enables the operator to confirm and change the notification setting.

S211で選択したホールメニューが[報知設定]でないと判別した場合(S224がNO判定の場合)、サブCPU102は、S211で選択したホールメニューは[メンテナンス]か否かを判別する(S226)。選択したホールメニューが[メンテナンス]であると判別した場合(S226がYES判定の場合)、サブCPU102は、メンテナンス処理を行う(S227)。   If it is determined that the hall menu selected in S211 is not [notification setting] (if S224 is NO), the sub CPU 102 determines whether the hall menu selected in S211 is [maintenance] (S226). If it is determined that the selected hall menu is [maintenance] (if S226 is YES), the sub CPU 102 performs maintenance processing (S227).

S211で選択したホールメニューが[メンテナンス]でないと判別した場合(S226がNO判定の場合)、サブCPU102は、ホールメニュー処理を終了し、処理をホールメニュータスク(図36参照)のS204に戻す。   If it is determined that the hall menu selected in S211 is not [maintenance] (if S226 is NO), the sub CPU 102 ends the hall menu process, and returns the process to S204 of the hall menu task (see FIG. 36).

また、S215、S217、S219、S221、S223、S225、S227の処理後、サブCPU102は、ホールメニュー処理を終了し、処理をホールメニュータスク(図36参照)のS204に戻す。   After the processing of S215, S217, S219, S221, S223, S225, and S227, the sub CPU 102 ends the hall menu process, and returns the process to S204 of the hall menu task (see FIG. 36).

次に、サブCPU102がホールメニュー処理の監視履歴処理(図37のS221)で液晶表示装置11に表示する監視履歴画面について、図38を参照して説明する。
図38は、本実施形態における監視履歴画面の例を示す図である。
Next, the monitoring history screen which the sub CPU 102 displays on the liquid crystal display device 11 in the monitoring history process (S221 in FIG. 37) of the hall menu process will be described with reference to FIG.
FIG. 38 is a diagram showing an example of a monitoring history screen in the present embodiment.

図38に示すように、監視履歴画面の略中央には、監視履歴表が配置されている。監視履歴表は、サブSRAM103bに記憶されている開閉履歴情報の一覧表である。監視履歴表では、10個の開閉履歴情報が表示可能である。   As shown in FIG. 38, a monitoring history table is disposed substantially at the center of the monitoring history screen. The monitoring history table is a list of open / close history information stored in the sub SRAM 103b. In the monitoring history table, ten pieces of open / close history information can be displayed.

また、監視履歴画面の左下部には、該画面における操作方法が表示されている。表示される操作方法として、監視履歴表の任意の行を指定するカーソル(図示省略)がセレクトボタン26の押下によって移動する(「カーソル移動」)旨、また、エンターボタン25を押下することで監視履歴画面の表示を終了する(「戻る」)旨が表示されている。   In the lower left part of the monitoring history screen, the operation method on the screen is displayed. As an operation method to be displayed, a cursor (not shown) for designating an arbitrary row of the monitoring history table is moved by pressing the select button 26 ("Cursor movement"), and monitoring is performed by pressing the enter button 25. It is displayed that the display of the history screen is ended ("return").

監視履歴画面における監視履歴表の任意の行を指定するカーソルは、セレクトボタン26の上部が押下されることによって上方へ移動し、セレクトボタン26の下部が押下されることによって下方へ移動する。   The cursor specifying an arbitrary row of the monitoring history table on the monitoring history screen moves upward by pressing the upper part of the select button 26 and moves downward by pressing the lower part of the select button 26.

図38に示す監視履歴画面には、サブSRAM103bが記憶する最新10個の開閉履歴情報が表示されているが、セレクトボタン26の操作、具体的には、監視履歴表の最下行にカーソルが位置している状態で、セレクトボタン26の下部を押下することによって、サブSRAM103bが記憶する最新10個の開閉履歴情報よりも前の開閉履歴情報を表示させることができる。
なお、監視履歴画面に表示する開閉履歴情報の数は適宜設定可能である。
The latest ten open / close history information stored in the sub SRAM 103b is displayed on the monitoring history screen shown in FIG. 38. However, the cursor is positioned at the bottom of the monitoring history table by the operation of the select button 26. By pressing the lower part of the select button 26 in the state where the open / close history information prior to the latest 10 pieces of open / close history information stored in the sub SRAM 103b can be displayed.
The number of open / close history information displayed on the monitoring history screen can be set as appropriate.

また、監視履歴画面の上方には、24hドア監視ユニット63のステータス情報(「UNIT STATUS」)、シリアルID(「UNIT SERIAL」)、プログラムバージョン(「UNIT VERSION」)が表示されている。これらの情報は、サブCPU102が、後述のドア監視タスク(図41参照)で起動シーケンスを実行し、24hドア監視ユニット63から取得するステータス情報、シリアルID、プログラムバージョンが表示される。   In the upper part of the monitoring history screen, the status information ("UNIT STATUS") of the 24 h door monitoring unit 63, the serial ID ("UNIT SERIAL"), and the program version ("UNIT VERSION") are displayed. The sub CPU 102 executes an activation sequence in a door monitoring task (see FIG. 41) described later, and the status information, the serial ID, and the program version acquired from the door monitoring unit 63 are displayed.

次に、サブCPU102がホールメニュー処理の警告表示設定処理(図37のS223)の具体的な内容を、図39を参照して説明する。
図39は、本実施形態における警告表示設定画面の例を示す図である。
Next, the specific contents of the warning display setting process (S223 in FIG. 37) of the hall menu process by the sub CPU 102 will be described with reference to FIG.
FIG. 39 is a view showing an example of a warning display setting screen in the present embodiment.

ここで、本実施形態のパチスロ1では、指定時間、例えばパチスロ1の電源がOFFになっている間に発生したフロントドア2bの開閉を示す開閉履歴情報を、パチスロ1の起動時に表示する警告表示を行う。警告表示設定では、この指定時間と、警告表示を行う時間(表示時間)を設定する。なお、警告表示時に液晶表示装置11に表示される警告表示画面の具体的な内容は、後で図40を参照して説明する。   Here, in the pachislot 1 of the present embodiment, a warning display for displaying, at the start of the pachislot 1, opening / closing history information indicating opening / closing of the front door 2b generated for a designated time, for example, while the pachislot 1 is turned off. I do. In the warning display setting, the designated time and the time (display time) for displaying a warning are set. The specific contents of the warning display screen displayed on the liquid crystal display device 11 at the time of warning display will be described later with reference to FIG.

上述のように、ホールメニュー処理の警告表示設定処理(図37のS223)において、サブCPU102は、図39に示す警告表示設定画面を表示する。警告表示設定画面の上方には、「ここで設定した指定時間の監視履歴が起動時に警告表示されます。」という文字列が表示される。また、警告表示設定画面の略中央には、初期値又は前回設定した表示時間と指定時間が表示されている。   As described above, in the warning display setting process of the hall menu process (S223 in FIG. 37), the sub CPU 102 displays the warning display setting screen shown in FIG. In the upper part of the warning display setting screen, a character string “Warning is displayed at start-up of the monitoring history of the designated time set here” is displayed. In the approximate center of the warning display setting screen, an initial value or a previously set display time and a designated time are displayed.

図39に示すように、表示時間は、1秒〜99分59秒の範囲で、設定可能となっている。表示時間は、4桁(分2桁、秒2桁)で表示されている。操作者は、セレクトボタン26(図2参照)の左部又は右部を押して、変更したい桁にカーソル(点線で表示)を合わせ、セレクトボタン26の上部を押して表示されている数字を増加させ、又は、下部を押して表示されている数字を減少させて、表示時間を変更させる。   As shown in FIG. 39, the display time can be set in the range of 1 second to 99 minutes and 59 seconds. The display time is displayed in 4 digits (minute 2 digits, second 2 digits). The operator presses the left part or the right part of the select button 26 (see FIG. 2) to move the cursor (indicated by dotted line) to the digit to be changed and presses the upper part of the select button 26 to increase the displayed number. Alternatively, press the lower part to decrease the displayed number and change the display time.

また、図39に示すように、指定時間の開始時間及び終了時間が、それぞれ4桁(時2桁、分2桁で表示)で表示されている。操作者は、セレクトボタン26(図2参照)の左部又は右部を押して、変更したい桁にカーソル(点線で表示)を合わせ、セレクトボタン26の上部を押して表示されている数字を増加させ、又は、下部を押して表示されている数字を減少させて、指定時間の開始時間及び終了時間を変更させる。なお、操作者は、表示時間の最も右に位置する桁にカーソルが位置している状態で、セレクトボタン26の右部を押すことで、カーソルを、指定時間における開始時間の最も左の桁に移動させることができる。また、指定時間の開始時間における最も右に位置する桁にカーソルが位置している状態で、セレクトボタン26の右部を押すことで、カーソルを、指定時間における終了時間の最も左の桁に移動させることができる。   In addition, as shown in FIG. 39, the start time and the end time of the designated time are displayed in four digits (displayed in two-hour hour and two-minute minute), respectively. The operator presses the left part or the right part of the select button 26 (see FIG. 2) to move the cursor (indicated by dotted line) to the digit to be changed and presses the upper part of the select button 26 to increase the displayed number. Alternatively, press the lower part to decrease the displayed number, and change the start time and end time of the designated time. The operator presses the right portion of the select button 26 while the cursor is positioned at the rightmost digit of the display time, thereby setting the cursor to the leftmost digit of the start time at the designated time. It can be moved. Also, with the cursor positioned at the rightmost digit at the start time of the designated time, pressing the right part of the select button 26 moves the cursor to the leftmost digit of the end time at the designated time It can be done.

警告表示画面の表示中に、エンターボタン25が押されると、サブCPU102は、エンターボタン25が押されたときに警告表示画面に表示されている表示時間並びに指定時間の開始時間及び終了時間をサブSRAM103bに記憶させる。また、サブCPU102は、警告表示画面の表示を終了させる。また、サブCPU102は、警告表示画面を表示させた後、定期的にサブRTC108から現在時刻を取得し、警告表示画面を表示させてからの経過時間がサブSRAM103bに記憶されている表示時間に達した時、警告表示画面の表示を終了させる。   If the enter button 25 is pressed while the warning display screen is displayed, the sub CPU 102 displays the start time and the end time of the display time and the designated time displayed on the warning display screen when the enter button 25 is pressed. It is stored in the SRAM 103b. Further, the sub CPU 102 ends the display of the warning display screen. Further, after displaying the warning display screen, sub CPU 102 periodically acquires the current time from sub RTC 108, and the elapsed time after displaying the warning display screen reaches the display time stored in sub SRAM 103 b. When it does, the display of the warning display screen is ended.

なお、図39に示すように、警告表示画面の左下部には、該画面における操作方法が表示されている。   As shown in FIG. 39, at the lower left portion of the warning display screen, an operation method on the screen is displayed.

次に、警告表示時に液晶表示装置11に表示される警告表示画面について、図40を参照して説明する。
図40は、本実施形態における警告表示画面の例を示す図である。
Next, a warning display screen displayed on the liquid crystal display device 11 at the time of warning display will be described with reference to FIG.
FIG. 40 is a view showing an example of a warning display screen in the present embodiment.

図40に示すように、警告表示画面には、警告表示設定処理で設定した指定時間内に発生したフロントドア2bの開閉を示す開閉履歴情報が表示される。また、警告表示画面の左下部には、該画面における操作方法が表示されている。   As shown in FIG. 40, on the warning display screen, opening and closing history information indicating the opening and closing of the front door 2b generated within the designated time set in the warning display setting process is displayed. In the lower left portion of the warning display screen, an operation method on the screen is displayed.

サブCPU102は、パチスロ1の起動時に実行が開始される後述のドア監視タスク(図41参照)において、全履歴取得シーケンスが実行された後に、サブSRAM103bを参照し、記憶されている開閉履歴情報から、時間情報が指定時間内の開閉履歴情報を取得(抽出)し、液晶表示装置11に取得した開閉履歴情報を示す警告表示画面を表示させる。なお、起動時に全履歴取得シーケンスを実行し、開閉履歴情報を取得するサブCPU102は、開閉履歴取得手段を構成する。また、サブSRAM103bに記憶されている開閉履歴情報から、時間情報が指定時間内の開閉履歴情報を取得(抽出)するサブCPU102は、開閉履歴抽出手段を構成する。
なお、サブSRAM103bに時間情報が指定時間内の開閉履歴情報がない場合は、開閉履歴情報がない警告表示画面が液晶表示装置11に表示される。この場合は、当該警告表示画面を視た者は、指定時間内にフロントドア2bの開閉がなかったことを把握できる。
The sub CPU 102 refers to the sub SRAM 103 b after the entire history acquisition sequence is executed in a door monitoring task (see FIG. 41) which will be started when the pachislot 1 starts up, from the stored open / close history information The time information acquires (extracts) open / close history information within a designated time, and causes the liquid crystal display device 11 to display a warning display screen indicating the acquired open / close history information. The sub CPU 102 that executes the entire history acquisition sequence at startup and acquires the open / close history information constitutes an open / close history acquisition unit. Further, the sub CPU 102 which acquires (extracts) opening / closing history information whose time information is within a designated time from the opening / closing history information stored in the sub SRAM 103 b constitutes an opening / closing history extracting unit.
If there is no opening / closing history information within the designated time in the sub SRAM 103b, a warning display screen without the opening / closing history information is displayed on the liquid crystal display device 11. In this case, a person who looks at the warning display screen can grasp that the front door 2b has not been opened or closed within the designated time.

(3)ドア監視タスク
次に、図41を参照して、ドア監視タスクについて説明する。
図41は、本実施形態におけるドア監視タスクの例を示すフローチャートである。
(3) Door Monitoring Task Next, the door monitoring task will be described with reference to FIG.
FIG. 41 is a flowchart showing an example of a door monitoring task in the present embodiment.

ドア監視タスクは、パチスロ1の起動時に実行が開始される。
ドア監視タスクにおいて、サブCPU102は、まず、上述の起動シーケンスと、全履歴取得シーケンスを実行対象のシーケンスとしてセットする(S231)。
The door monitoring task is started when the pachislot 1 starts up.
In the door monitoring task, the sub CPU 102 first sets the above-described activation sequence and the entire history acquisition sequence as a sequence to be executed (S231).

次いで、サブCPU102は、第1ドア監視カウンタを1加算する(S232)。第1ドア監視カウンタの値は、サブDRAM103aの第1ドア監視カウンタ格納領域に記憶される。   Next, the sub CPU 102 increments the first door monitoring counter by 1 (S232). The value of the first door monitoring counter is stored in the first door monitoring counter storage area of the sub DRAM 103a.

次いで、サブCPU102、第1ドア監視カウンタの値が25以上か否かを判別する(S233)。S233において、サブCPU102が、第1ドア監視カウンタの値が25以上でないと判別したとき(S233がNO判定の場合)、サブCPU102は、後述のS240の処理を行う。一方、S233において、第1ドア監視カウンタの値が25以上であると判別したとき(S233がYES判定の場合)、サブCPU102は、第1ドア監視カウンタをクリアする(S234)。   Next, the sub CPU 102 determines whether the value of the first door monitoring counter is 25 or more (S233). When the sub CPU 102 determines in S233 that the value of the first door monitoring counter is not 25 or more (when the determination in S233 is NO), the sub CPU 102 performs the processing of S240 described later. On the other hand, if it is determined in S233 that the value of the first door monitoring counter is 25 or more (if S233 is YES), the sub CPU 102 clears the first door monitoring counter (S234).

次いで、サブCPU102は、第2ドア監視カウンタを1加算する(S235)。第2ドア監視カウンタの値は、サブDRAM103aの第2ドア監視カウンタ格納領域に記憶される。   Next, the sub CPU 102 increments the second door monitoring counter by 1 (S235). The value of the second door monitoring counter is stored in the second door monitoring counter storage area of the sub DRAM 103a.

次いで、サブCPU102、第2ドア監視カウンタの値が7200以上か否かを判別する(S236)。S236において、サブCPU102が、第2ドア監視カウンタの値が7200以上であると判別したとき(S236がYES判定の場合)、サブCPU102は、実行対象のシーケンスとして、第2状態検知シーケンスをセットする(S237)。すなわち、S231の処理で起動シーケンスと全履歴取得シーケンスにセットした実行対象のシーケンスを、第2状態検知シーケンスに変更する。   Next, the sub CPU 102 determines whether the value of the second door monitoring counter is 7200 or more (S236). In S236, when the sub CPU 102 determines that the value of the second door monitoring counter is 7200 or more (when S 236 is YES), the sub CPU 102 sets the second state detection sequence as the execution target sequence. (S237). That is, the execution target sequence set in the activation sequence and the entire history acquisition sequence in the process of S231 is changed to the second state detection sequence.

次いで、サブCPU102は、第2ドア監視カウンタの値をクリアする(S238)。そして、サブCPU102は、後述のS240の処理を行う。   Next, the sub CPU 102 clears the value of the second door monitoring counter (S238). Then, the sub CPU 102 performs the process of S240 described later.

一方、S236において、第2ドア監視カウンタの値が7200以上でないと判別したとき(S236がNO判定の場合)、サブCPU102は、実行対象のシーケンスとして、第1状態検知シーケンスをセットする(S239)。すなわち、S231の処理で起動シーケンスと全履歴取得シーケンスにセットした実行対象のシーケンスを、第1状態検知シーケンスに変更する。そして、サブCPU102は、後述のS240の処理を行う。   On the other hand, when it is determined in S236 that the value of the second door monitoring counter is not 7200 or more (when S236 is NO), the sub CPU 102 sets the first state detection sequence as the execution target sequence (S239) . That is, the execution target sequence set in the activation sequence and the entire history acquisition sequence in the process of S231 is changed to the first state detection sequence. Then, the sub CPU 102 performs the process of S240 described later.

S240において、サブCPU102は、シーケンス制御処理を行う(S280)。この処理において、サブCPU102は、S231(図16のNo1とNo4)、S237(図16のNo2、条件によりNo3まで)又はS239(図16のNo12)において実行対象としてセットしたシーケンスを実行する。   In S240, the sub CPU 102 performs sequence control processing (S280). In this process, the sub CPU 102 executes the sequence set as the execution target in S231 (No. 1 and No. 4 in FIG. 16), S237 (No. 2 in FIG. 16, up to No. 3 depending on conditions) or S239 (No. 12 in FIG. 16).

次に、サブCPU102は、リクエストがあるか否かを判別する(S241)。リクエストとは、サブCPU102が24hドア監視ユニット63に所定の動作を要求することであり、所定の契機(所定期間の経過など)や操作者からの入力に基づいて発生する。サブCPU102は、リクエストが発生すると、発生したリクエストに応じた特権コマンド又は一般コマンドを24hドア監視ユニット63に送信する。S241において、リクエストがないと判別したとき(S241がNO判定の場合)、サブCPU102は、後述のS243の処理を行う。   Next, the sub CPU 102 determines whether there is a request (S241). The request is that the sub CPU 102 requests the door monitoring unit 63 for a predetermined operation for the 24 h, and is generated based on a predetermined timing (e.g., a lapse of a predetermined period) or an input from the operator. When the sub CPU 102 generates a request, the sub CPU 102 transmits a privileged command or a general command to the door monitoring unit 63 according to the generated request. In S241, when it is determined that there is no request (when S241 is NO), the sub CPU 102 performs the process of S243 described later.

一方、S241において、リクエストがあると判別したとき(S241がYES判定の場合)、サブCPU102は、ドア監視送信処理を行う(S242)。ドア監視送信処理の具体的な内容については、後で図42を参照して説明する。そして、サブCPU102は、後述のS243の処理を行う。   On the other hand, when it is determined in S241 that there is a request (when the determination in S241 is YES), the sub CPU 102 performs door monitoring transmission processing (S242). The specific contents of the door monitoring and transmitting process will be described later with reference to FIG. Then, the sub CPU 102 performs the processing of S243 described later.

S243において、サブCPU102は、ドア監視受信処理を行う(S243)。ドア監視受信処理において、サブCPU102は、24hドア監視ユニット63からアンサを受信する。ドア監視受信処理の具体的な内容については、後で図46を参照して説明する。   In S243, the sub CPU 102 performs door monitoring reception processing (S243). In the door monitoring reception process, the sub CPU 102 receives an answer from the 24 h door monitoring unit 63. The specific content of the door monitoring reception process will be described later with reference to FIG.

S243の後、サブCPU102は、処理をS232に戻す。以降、サブCPU102は、S232〜S243の処理を20msec毎に繰り返す。したがって、本実施形態において、第1ドア監視カウンタが25以上になるのは、500msecである。このため、サブCPU102は、500msec毎に第1状態検知シーケンスを実行する。ただし、500msecの周期のタイミングであっても、第2状態検知シーケンスを実行するときは、第1状態検知シーケンスは行わない。   After S243, the sub CPU 102 returns the process to S232. Thereafter, the sub CPU 102 repeats the processing of S232 to S243 every 20 msec. Therefore, in the present embodiment, it is 500 msec that the first door monitoring counter is 25 or more. Therefore, the sub CPU 102 executes the first state detection sequence every 500 msec. However, even when the timing is a cycle of 500 msec, when the second state detection sequence is performed, the first state detection sequence is not performed.

また、本実施形態において、500msec毎に1加算される第2ドア監視カウンタが7200以上になるのは、3600000msec(1時間)である。このため、サブCPU102は、1時間毎に第2状態検知シーケンスを実行する。なお、S233で第1ドア監視カウンタと比較する値及びS237で第2ドア監視カウンタと比較する値は、適宜設定可能である。すなわち、第1状態検知シーケンス及び第2状態検知シーケンスの実行する周期は適宜設定可能である。   Further, in the present embodiment, the second door monitoring counter which is incremented by one every 500 msec is 7,200 or more in 3,600,000 msec (one hour). Therefore, the sub CPU 102 executes the second state detection sequence every hour. A value to be compared with the first door monitoring counter in S233 and a value to be compared with the second door monitoring counter in S237 can be set as appropriate. That is, the cycle of executing the first state detection sequence and the second state detection sequence can be set as appropriate.

次に、ドア監視タスクのドア監視送信処理(図41のS242)の具体的な内容を、図42を参照して説明する。
図42は、本実施形態におけるドア監視送信処理の例を示すフローチャートである。
Next, specific contents of the door monitoring transmission process (S242 in FIG. 41) of the door monitoring task will be described with reference to FIG.
FIG. 42 is a flowchart showing an example of the door monitoring and transmitting process in the present embodiment.

ドア監視送信処理において、サブCPU102は、リクエストは特権コマンドであるか否かを判別する(S251)。すなわち所定の契機(所定期間の経過など)や操作者からの入力に基づいて発生したリクエストが特権コマンドに係るリクエストであるか否かを判別する。   In the door monitoring transmission process, the sub CPU 102 determines whether the request is a privileged command (S251). That is, it is determined whether the generated request is a request related to a privileged command based on a predetermined trigger (e.g., a predetermined period has elapsed) or an input from the operator.

S251において、リクエストは特権コマンドでないと判別したとき(S251がNO判定の場合)、サブCPU102は、後述のS254の処理を行う。一方、S251において、リクエストは特権コマンドであると判別したとき(S251がYES判定の場合)、サブCPU102は、サブDRAM103aの特権フラグ格納領域に記憶されている特権フラグがONに設定されているか否かを判別する(S252)。特権フラグは、サブCPU102が24hドア監視ユニット63からログイン許可(OK)の旨のアンサを受信した場合に、後述のログイン受信時処理(図50参照)において、ONに設定される。   When it is determined in S251 that the request is not a privileged command (when S251 is NO), the sub CPU 102 performs the process of S254 described later. On the other hand, when it is determined in S251 that the request is a privileged command (when S251 is determined as YES), sub CPU 102 determines whether the privilege flag stored in the privilege flag storage area of sub DRAM 103a is set to ON. It is determined (S252). The privilege flag is set to ON in a login reception process (see FIG. 50) which will be described later, when the sub CPU 102 receives an answer indicating login permission (OK) from the door monitoring unit 63 for 24 h.

S252において、特権フラグがONに設定されていないと判別したとき(S252がNO判定の場合)、サブCPU102は、ドア監視送信処理を終了する。一方、S252において、特権フラグがONに設定されていると判別したとき(S252がYES判定の場合)、サブCPU102は、ドア監視特権コマンド送信処理を行う(S253)。この処理で、サブCPU102は、各種特権コマンドを24hドア監視ユニット63に送信する。ドア監視特権コマンド送信処理の具体的内容については、後で図43を参照して説明する。   In S252, when it is determined that the privilege flag is not set to ON (when S252 is NO), the sub CPU 102 ends the door monitoring transmission process. On the other hand, when it is determined in S252 that the privilege flag is set to ON (when the determination in S252 is YES), the sub CPU 102 performs door monitoring privilege command transmission processing (S253). In this process, the sub CPU 102 transmits various privilege commands to the door monitoring unit 63 for 24 h. The specific content of the door monitoring privilege command transmission process will be described later with reference to FIG.

ここで、S251の処理の説明に戻って、リクエストは特権コマンドでないと判別したとき(S251がNO判定の場合)、サブCPU102は、ドア監視一般コマンド送信処理を行う(S254)。この処理で、サブCPU102は、各種一般コマンドを24hドア監視ユニット63に送信する。ドア監視一般コマンド送信処理の具体的内容については、後で図44を参照して説明する。   Here, returning to the description of the process of S251, when it is determined that the request is not a privileged command (when S251 is NO), the sub CPU 102 performs a door monitoring general command transmission process (S254). In this process, the sub CPU 102 transmits various general commands to the door monitoring unit 63 for 24 h. The specific content of the door monitoring general command transmission process will be described later with reference to FIG.

(4)ドア監視特権コマンド送信処理
次に、サブCPU102がドア監視送信処理のドア監視特権コマンド送信処理(図42のS253)の具体的な内容を、図43を参照して説明する。
図43は、本実施形態におけるドア監視特権コマンド送信処理の例を示すフローチャートである。
(4) Door Monitoring Privilege Command Transmission Processing Next, the specific contents of the door monitoring privilege command transmission processing (S253 in FIG. 42) of the door monitoring transmission processing by the sub CPU 102 will be described with reference to FIG.
FIG. 43 is a flowchart showing an example of a door monitoring privilege command transmission process according to the present embodiment.

ドア監視特権コマンド送信処理において、サブCPU102は、リクエストに係る特権コマンドが初期化コマンドであるか否かを判別する(S261)。S261において、リクエストに係る特権コマンドが初期化コマンドであると判別したとき(S261がYES判定の場合)、サブCPU102は、初期化コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(初期化)を行う(S262)。   In the door monitoring privilege command transmission process, the sub CPU 102 determines whether the privilege command related to the request is an initialization command (S261). In S261, when it is determined that the privileged command related to the request is the initialization command (when S261 is YES determination), the sub CPU 102 transmits the initialization command to the door monitoring unit 63 for 24 h (door monitoring command transmission processing (initial (S262).

一方、S261において、リクエストに係る特権コマンドが初期化コマンドでないと判別したとき(S261がNO判定の場合)、サブCPU102は、リクエストに係る特権コマンドが時計セットコマンドであるか否かを判別する(S263)。S263において、リクエストに係る特権コマンドが時計セットコマンドであると判別したとき(S263がYES判定の場合)、サブCPU102は、時計セットコマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(RTC)を行う(S264)。なお、この時計セットコマンドには、サブRTC108が計時する時刻(設定側時刻)を示す時刻情報である年、月、日、時、分、秒そして曜日を示す情報(設定側時刻情報)が付随する。なお、サブRTC108が計時する時刻は、例えば、操作者からの入力に基づいて(例えば、ホスト機器が副制御回路101であれば、ホールメニュー処理の時刻設定処理(図37のS213))で変更可能である。   On the other hand, when it is determined in S261 that the privileged command related to the request is not an initialization command (S261 is NO determination), the sub CPU 102 determines whether or not the privileged command related to the request is a clock set command ( S263). In S263, when it is determined that the privileged command related to the request is a clock set command (when S263 is YES determination), the sub CPU 102 transmits a clock set command to the door monitoring unit 63 for 24 h (door monitor command transmission process (RTC) ) (S264). The clock set command is accompanied by information (setting side time information) indicating the year, month, day, hour, minute, second and day of the week, which is time information indicating the time (set side time) counted by the sub RTC 108. Do. The time measured by the sub RTC 108 is changed, for example, based on an input from the operator (for example, if the host device is the sub control circuit 101, the time setting process for hall menu processing (S213 in FIG. 37)) It is possible.

一方、S263において、リクエストに係る特権コマンドが時計セットコマンドでないと判別したとき(S263がNO判定の場合)、サブCPU102は、リクエストに係る特権コマンドが監視間隔時間設定コマンドであるか否かを判別する(S265)。S265において、リクエストに係る特権コマンドが監視間隔時間設定コマンドであると判別したとき(S265がYES判定の場合)、サブCPU102は、監視間隔時間設定コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(間隔時間)を行う(S266)。なお、この監視間隔時間設定コマンドには、例えば、操作者からの入力に基づくカウント数が付随する。   On the other hand, when it is determined in S263 that the privileged command related to the request is not a clock set command (when S263 is NO), the sub CPU 102 determines whether the privileged command related to the request is a monitoring interval time setting command. To do (S265). When it is determined in S265 that the privileged command related to the request is the monitoring interval time setting command (when S265 is a YES determination), the sub CPU 102 transmits a monitoring interval time setting command to the door monitoring unit 63 for 24 h. Transmission processing (interval time) is performed (S266). The monitoring interval time setting command is accompanied by, for example, a count number based on an input from the operator.

一方、S265において、リクエストに係る特権コマンドが監視間隔時間設定コマンドでないと判別したとき(S265がNO判定の場合)、サブCPU102は、リクエストに係る特権コマンドが記録開始時間設定コマンドであるか否かを判別する(S267)。S267において、リクエストに係る特権コマンドが記録開始時間設定コマンドであると判別したとき(S267がYES判定の場合)、サブCPU102は、記録開始時間設定コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(開始時間)を行う(S268)。なお、この記録開始時間設定コマンドには、例えば、操作者からの入力に基づくカウント数が付随する。   On the other hand, when it is determined in S265 that the privileged command related to the request is not the monitoring interval time setting command (S265 is NO determination), the sub CPU 102 determines whether the privileged command related to the request is the recording start time setting command. (S267). When it is determined in S 267 that the privileged command related to the request is the recording start time setting command (when S 267 is YES determination), the sub CPU 102 transmits a recording start time setting command to the door monitoring unit 63 for 24 h. Transmission processing (start time) is performed (S268). The recording start time setting command is accompanied by, for example, a count number based on an input from the operator.

一方、S267において、リクエストに係る特権コマンドが記録開始時間設定コマンドでないと判別したとき(S267がNO判定の場合)、サブCPU102は、リクエストに係る特権コマンドが記録モード設定コマンドであるか否かを判別する(S269)。S269において、リクエストに係る特権コマンドが記録モード設定コマンドであると判別したとき(S269がYES判定の場合)、サブCPU102は、記録モード設定コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(記録設定)を行う(S270)。なお、この記録モード設定コマンドには、例えば、操作者からの入力に基づく記録モードの種別(「常時記録モード」、「無記録モード」)を示す情報が付随する。   On the other hand, when it is determined in S267 that the privileged command related to the request is not the recording start time setting command (S267 is NO determination), the sub CPU 102 determines whether the privileged command related to the request is the recording mode setting command. It discriminates (S269). When it is determined in S 269 that the privileged command related to the request is the recording mode setting command (when S 269 is YES determination), the sub CPU 102 transmits the recording mode setting command to the door monitoring unit 63 for 24 h. (Recording setting) is performed (S270). Note that this recording mode setting command is accompanied by, for example, information indicating the type of recording mode ("always recording mode", "non-recording mode") based on an input from the operator.

一方、S269において、リクエストに係る特権コマンドが記録モード設定コマンドでないと判別したとき(S269がNO判定の場合)、サブCPU102は、リクエストに係る特権コマンドが秘密鍵設定コマンドであるか否かを判別する(S271)。S271において、リクエストに係る特権コマンドが秘密鍵設定コマンドであると判別したとき(S271がYES判定の場合)、サブCPU102は、秘密鍵設定コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(秘密鍵)を行う(S272)。なお、この秘密鍵設定コマンドには、設定に係る秘密鍵が付随する。そして、サブCPU102は、ドア監視特権コマンドを終了し、処理をドア監視タスク(図41参照)のS243に戻す。   On the other hand, when it is determined in S269 that the privileged command related to the request is not the recording mode setting command (when S269 is NO), the sub CPU 102 determines whether the privileged command related to the request is a secret key setting command. (S271). When it is determined in S271 that the privileged command related to the request is the secret key setting command (when S271 is YES determination), the sub CPU 102 transmits a secret key setting command to the door monitoring unit 63 for 24 h. (Secret key) is performed (S272). The secret key setting command is accompanied by a secret key related to the setting. Then, the sub CPU 102 ends the door monitoring privilege command, and returns the process to S243 of the door monitoring task (see FIG. 41).

また、S262、S264、S266、S268、S270、S272、S227の処理後、サブCPU102は、ドア監視特権コマンドを終了し、処理をドア監視タスク(図41参照)のS243に戻す。   After the processing of S262, S264, S266, S268, S272, and S227, the sub CPU 102 ends the door monitoring privilege command, and returns the processing to S243 of the door monitoring task (see FIG. 41).

(5)ドア監視一般コマンド送信処理
次に、サブCPU102がドア監視送信処理のドア監視一般コマンド送信処理(図42のS254)の具体的な内容を、図44を参照して説明する。
図44は、本実施形態におけるドア監視一般コマンド送信処理の例を示すフローチャートである。
(5) Door Monitoring General Command Transmission Processing Next, specific contents of the door monitoring general command transmission processing (S254 in FIG. 42) of the door monitoring transmission processing by the sub CPU 102 will be described with reference to FIG.
FIG. 44 is a flowchart showing an example of a door monitoring general command transmission process according to the present embodiment.

ドア監視一般コマンド送信処理において、サブCPU102は、リクエストに係る一般コマンドがシリアルIDコマンドであるか否かを判別する(S281)。S281において、リクエストに係る一般コマンドがシリアルIDコマンドであると判別したとき(S281がYES判定の場合)、サブCPU102は、シリアルIDコマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(シリアルID)を行う(S282)。   In the door monitoring general command transmission process, the sub CPU 102 determines whether the general command related to the request is a serial ID command (S281). In S281, when it is determined that the general command related to the request is a serial ID command (when S281 is YES determination), the sub CPU 102 transmits a serial ID command to the door monitoring unit 63 for 24 h (door monitoring command transmission processing (serial) ID) (S282).

一方、S281において、リクエストに係る一般コマンドがシリアルIDコマンドでないと判別したとき(S281がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドがバージョン要求コマンドであるか否かを判別する(S283)。S283において、リクエストに係る一般コマンドがバージョン要求コマンドであると判別したとき(S283がYES判定の場合)、サブCPU102は、バージョン要求コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(バージョン要求)を行う(S284)。   On the other hand, when it is determined in S281 that the general command related to the request is not a serial ID command (S281 is NO), the sub CPU 102 determines whether the general command related to the request is a version request command ( S283). In S283, when it is determined that the general command related to the request is a version request command (when S283 is YES determination), the sub CPU 102 transmits a version request command to the 24 h door monitoring unit 63 (door monitoring command transmission process (version Request) (S284).

一方、S283において、リクエストに係る一般コマンドがバージョン要求コマンドでないと判別したとき(S283がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドが乱数コマンドであるか否かを判別する(S285)。S285において、リクエストに係る一般コマンドが乱数コマンドであると判別したとき(S285がYES判定の場合)、サブCPU102は、乱数コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(乱数)を行う(S286)。   On the other hand, when it is determined in S283 that the general command related to the request is not a version request command (S283: NO), the sub CPU 102 determines whether the general command related to the request is a random number command (S285) ). In S285, when it is determined that the general command related to the request is a random number command (when S285 is YES determination), the sub CPU 102 transmits a random number command to the door monitoring unit 63 for 24 h. Perform (S286).

一方、S285において、リクエストに係る一般コマンドが乱数コマンドでないと判別したとき(S285がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドがログインコマンドであるか否かを判別する(S287)。S287において、リクエストに係る一般コマンドがログインコマンドであると判別したとき(S287がYES判定の場合)、サブCPU102は、ログインコマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(ログイン)を行う(S288)。なお、このログインコマンドには、例えば、後述の乱数受信時処理(図49)において生成され、パスワード格納領域に保存されたパスワードが付随する。S288の処理を行うサブCPU102は、認証情報送信手段を構成する。   On the other hand, when it is determined in S285 that the general command related to the request is not a random number command (when S285 is NO), the sub CPU 102 determines whether the general command related to the request is a login command (S287) . In S287, when it is determined that the general command related to the request is a login command (when S287 is YES determination), the sub CPU 102 transmits a login command to the door monitoring unit 63 for 24 h. Perform (S288). The login command is accompanied by, for example, the password generated in the random number reception process described later (FIG. 49) and stored in the password storage area. The sub CPU 102 that performs the process of S288 constitutes an authentication information transmission unit.

一方、S287において、リクエストに係る一般コマンドがログインコマンドでないと判別したとき(S287がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドがログアウトコマンドであるか否かを判別する(S289)。S289において、リクエストに係る一般コマンドがログアウトコマンドであると判別したとき(S289がYES判定の場合)、サブCPU102は、ログアウトコマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(ログアウト)を行う(S290)。   On the other hand, when it is determined in S287 that the general command related to the request is not a login command (when S287 is NO), the sub CPU 102 determines whether the general command related to the request is a logout command (S289) . In S289, when it is determined that the general command related to the request is a logout command (when S289 is YES determination), the sub CPU 102 transmits a logout command to the door monitoring unit 63 for 24h (door logout transmission process) (logout). Perform (S290).

一方、S289において、リクエストに係る一般コマンドがログアウトコマンドでないと判別したとき(S289がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドが時計読出コマンドであるか否かを判別する(S291)。S291において、リクエストに係る一般コマンドが時計読出コマンドであると判別したとき(S291がYES判定の場合)、サブCPU102は、時計読出コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(時計読出)を行う(S292)。   On the other hand, if it is determined in S289 that the general command related to the request is not a logout command (if S289 is NO), the sub CPU 102 determines whether the general command related to the request is a clock read command (S291) ). In S291, when it is determined that the general command related to the request is a clock readout command (when S291 is YES determination), the sub CPU 102 transmits a clock readout command to the door monitoring unit 63 for 24 h (door monitoring command transmission processing (clock Read) (S292).

一方、S291において、リクエストに係る一般コマンドが時計読出コマンドでないと判別したとき(S291がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドが最新番号コマンドであるか否かを判別する(S293)。S293において、リクエストに係る一般コマンドが最新番号コマンドであると判別したとき(S293がYES判定の場合)、サブCPU102は、最新番号コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(最新番号)を行う(S294)。   On the other hand, when it is determined in S291 that the general command related to the request is not a clock read command (when S291 is NO), the sub CPU 102 determines whether the general command related to the request is the latest number command ( S293). In S293, when it is determined that the general command related to the request is the latest number command (when S293 is YES determination), the sub CPU 102 transmits the latest number command to the door monitoring unit 63 for 24 h (door monitoring command transmission process (latest) Number) (S294).

一方、S293において、リクエストに係る一般コマンドが最新番号コマンドでないと判別したとき(S293がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドが開閉履歴情報読出コマンドであるか否かを判別する(S295)。S295において、リクエストに係る一般コマンドが開閉履歴情報読出コマンドであると判別したとき(S295がYES判定の場合)、サブCPU102は、開閉履歴情報読出コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(履歴情報読出)を行う(S296)。なお、この開閉履歴情報読出コマンドには、開閉履歴情報を読出す先の開閉履歴情報格納領域の番号を示す情報が付随する。   On the other hand, when it is determined in S293 that the general command related to the request is not the latest number command (when S293 is NO), the sub CPU 102 determines whether the general command related to the request is the open / close history information read command (S295). When it is determined in S295 that the general command related to the request is the open / close history information read command (when S295 is YES determination), the sub CPU 102 transmits a open / close history information read command to the door monitoring unit 63 for 24h. Transmission processing (history information reading) is performed (S296). The open / close history information read command is accompanied by information indicating the number of the open / close history information storage area to which the open / close history information is read.

一方、S295において、リクエストに係る一般コマンドが開閉履歴情報読出コマンドでないと判別したとき(S295がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドが開閉履歴情報数コマンドであるか否かを判別する(S297)。S297において、リクエストに係る一般コマンドが開閉履歴情報数コマンドであると判別したとき(S297がYES判定の場合)、サブCPU102は、開閉履歴情報数コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(開閉履歴情報数)を行う(S298)。   On the other hand, when it is determined in S295 that the general command related to the request is not the open / close history information read command (S295 is NO determination), the sub CPU 102 determines whether the general command related to the request is the open / close history information number command (S297). In S297, when it is determined that the general command related to the request is the open / close history information number command (when S297 is YES determination), the sub CPU 102 transmits the open / close history information number command to the door monitoring unit 63 for 24h. Transmission processing (number of open / close history information) is performed (S298).

一方、S297において、リクエストに係る一般コマンドが開閉履歴情報数コマンドでないと判別したとき(S297がNO判定の場合)、サブCPU102は、リクエストに係る一般コマンドがステータス読出コマンドであるか否かを判別する(S299)。S299において、リクエストに係る一般コマンドがステータス読出コマンドであると判別したとき(S299がYES判定の場合)、サブCPU102は、ステータス読出コマンドを24hドア監視ユニット63に送信するドア監視コマンド送信処理(ステータス読出)を行う(S300)。そして、サブCPU102は、ドア監視一般コマンドを終了し、処理をドア監視タスク(図41参照)のS243に戻す。   On the other hand, when it is determined in S297 that the general command related to the request is not the open / close history information number command (S297 is NO), the sub CPU 102 determines whether the general command related to the request is a status read command. (S299). In S299, when it is determined that the general command related to the request is a status read command (when S299 is YES determination), the sub CPU 102 transmits a status read command to the door monitoring unit 63 for 24 h (door monitor command transmission process (status) Reading) is performed (S300). Then, the sub CPU 102 ends the door monitoring general command, and returns the process to S243 of the door monitoring task (see FIG. 41).

また、S282、S284、S286、S288、S290、S292、S294、S296、S298、S300の処理後、サブCPU102は、ドア監視一般コマンドを終了し、処理をドア監視タスク(図41参照)のS243に戻す。   Further, after the processing of S282, S284, S286, S288, S290, S292, S294, S296, S298, S300, the sub CPU 102 ends the door monitoring general command, and the processing proceeds to S243 of the door monitoring task (see FIG. 41). return.

(6)ドア監視受信割込み処理
次に、サブCPU102が、24hドア監視ユニット63からコマンドやデータを1バイト受信する毎に、実行するドア監視受信割込み処理について、図45を参照して説明する。
図45は、本実施形態におけるドア監視受信割込み処理の例を示すフローチャートである。
(6) Door Monitoring Reception Interrupt Processing Next, door monitoring reception interrupt processing to be executed by the sub CPU 102 every time it receives a command or data from the 24 h door monitoring unit 63 will be described with reference to FIG.
FIG. 45 is a flow chart showing an example of door monitoring reception interrupt processing in the present embodiment.

ドア監視受信割込み処理において、サブCPU102は、まず、受信したデータが「STX」であるか否かを判別する(S301)。S301において、受信したデータが「STX」であると判別したとき(S301がYES判定の場合)、サブCPU102は、サブDRAM103aのサブ受信バッファ及びサブ受信カウンタ格納領域に記憶されている受信カウンタの値に「1」を設定し、且つ、サブDRAM103aのサブETX受信フラグ格納領域に記憶しているサブETX受信フラグをOFFに設定する(S302)。そして、サブCPU102は、ドア監視受信割込み処理を終了する。   In the door monitoring reception interrupt process, the sub CPU 102 first determines whether the received data is "STX" (S301). In S301, when it is determined that the received data is "STX" (when S301 is YES), sub CPU 102 is the value of the reception counter stored in the sub reception buffer of sub DRAM 103a and the sub reception counter storage area. Is set to "1", and the sub ETX reception flag stored in the sub ETX reception flag storage area of the sub DRAM 103a is set to OFF (S302). Then, the sub CPU 102 ends the door monitoring reception interrupt process.

一方、S301において、受信したデータが「STX」でないと判別したとき(S301がNO判定の場合)、サブCPU102は、サブ受信カウンタ格納領域に記憶されているサブ受信カウンタの値に対応するサブ受信バッファに受信したデータを記憶させる(S303)。   On the other hand, when it is determined in S301 that the received data is not "STX" (when S301 is NO), sub CPU 102 receives sub reception corresponding to the value of the sub reception counter stored in the sub reception counter storage area. The received data is stored in the buffer (S303).

次いで、サブCPU102は、サブ受信カウンタの値に1を加算する(S304)。 次いで、サブCPU102は、受信データが「ETX」であるか否かを判別する(S305)。S305において、受信データが「ETX」であると判別したとき(S305がYES判定の場合)、サブCPU102は、サブDRAM103aのサブETX受信フラグ格納領域に記憶されているサブETX受信フラグをONに設定する。また、サブDRAM103aのサブサムカウンタの値をクリアする(S306)。そして、サブCPU102は、ドア監視受信割込み処理を終了する。   Next, the sub CPU 102 adds 1 to the value of the sub reception counter (S304). Next, the sub CPU 102 determines whether the received data is "ETX" (S305). In S305, when it is determined that the received data is "ETX" (when S305 is YES), sub CPU 102 sets the sub ETX reception flag stored in the sub ETX reception flag storage area of sub DRAM 103a to ON. Do. In addition, the value of the sub sum counter of the sub DRAM 103a is cleared (S306). Then, the sub CPU 102 ends the door monitoring reception interrupt process.

一方、S305において、受信データが「ETX」でないと判別したとき(S305がNO判定の場合)、サブCPU102は、サブDRAM103aのサブETX受信フラグ格納領域に記憶されているサブETX受信フラグがONに設定されているか否かを判別する(S307)。S307において、サブETX受信フラグがONに設定されていると判別したとき(S307がYES判定の場合)、サブCPU102は、ドア監視受信割込み処理を終了する。   On the other hand, when it is determined in S305 that the received data is not "ETX" (S305 is NO), the sub CPU 102 turns on the sub ETX reception flag stored in the sub ETX reception flag storage area of the sub DRAM 103a. It is determined whether it is set (S307). When it is determined in S307 that the sub ETX reception flag is set to ON (when the determination in S307 is YES), the sub CPU 102 ends the door monitoring reception interrupt process.

S307において、サブETX受信フラグがONに設定されていないと判別したとき(S307がNO判定の場合)、サブサムカウンタの値に1を加算する(S308)。   In S307, when it is determined that the sub ETX reception flag is not set to ON (when the determination in S307 is NO), 1 is added to the value of the sub sum counter (S308).

次いで、サブCPU102は、サブサムカウンタの値が2であるか否かを判別する(S309)。S309において、サブサムカウンタの値が2でないと判別したとき(S309がNO判定の場合)、サブCPU102は、ドア監視受信割込み処理を終了する。一方、S309において、サブサムカウンタの値が2であると判別したとき(S309がYES判定の場合)、サブCPU102は、サブDRAM103aのサブ受信完了フラグ格納領域に記憶されているサブ受信完了フラグをONに設定し(S301)、ドア監視受信割込み処理を終了する。   Next, the sub CPU 102 determines whether the value of the sub sum counter is 2 (S309). In S309, when it is determined that the value of the sub sum counter is not 2 (when S309 is NO), the sub CPU 102 ends the door monitoring reception interrupt process. On the other hand, when it is determined in S309 that the value of the sub sum counter is 2 (when S309 is YES), sub CPU 102 determines the sub reception completion flag stored in the sub reception completion flag storage area of sub DRAM 103a. It sets to ON (S301), and ends door surveillance reception interruption processing.

(7)ドア監視受信処理
次に、ドア監視タスク(図41参照)のS243におけるドア監視受信処理について、図46を参照して説明する。
図46は、本実施形態におけるドア監視受信処理の例を示すフローチャートである。
(7) Door Monitoring Reception Processing Next, the door monitoring reception processing in S243 of the door monitoring task (see FIG. 41) will be described with reference to FIG.
FIG. 46 is a flowchart showing an example of door monitoring reception processing in the present embodiment.

ドア監視受信処理において、サブCPU102は、まず、サブDRAM103aのサブ受信完了フラグ格納領域に記憶されているサブ受信完了フラグがONに設定されているか否かを判別する(S311)。S3111において、サブ受信完了フラグがONに設定されていないと判別したとき(S311がNO判定の場合)、サブCPU102は、ドア監視受信処理を終了し、処理をドア監視タスク(図41参照)のS232に戻す。   In the door monitoring reception process, the sub CPU 102 first determines whether the sub reception completion flag stored in the sub reception completion flag storage area of the sub DRAM 103 a is set to ON (S 311). When it is determined in S3111 that the sub reception completion flag is not set to ON (when S311 is NO), the sub CPU 102 ends the door monitoring reception processing, and the processing for the door monitoring task (see FIG. 41). Return to S232.

一方、S311において、サブ受信完了フラグがONに設定されていると判別したとき(S311がYES判定の場合)、サブCPU102は、サブ受信完了フラグをOFFに設定する(S312)。   On the other hand, when it is determined in S311 that the sub reception completion flag is set to ON (when the determination in S311 is YES), the sub CPU 102 sets the sub reception completion flag to OFF (S312).

次いで、サブCPU102は、特権アンサ受信処理を行う(S313)。特権アンサ受信処理では、サブCPU102は、送信した特権コマンドへの返信として24hドア監視ユニット63から受信したアンサに対応した各種処理を行う。特権アンサ受信処理の具体的な内容は、後で図47を参照して説明する。   Next, the sub CPU 102 performs privileged answer reception processing (S313). In the privileged answer reception process, the sub CPU 102 performs various processes corresponding to the answer received from the door monitoring unit 63 as a reply to the transmitted privileged command. The specific contents of the privileged answer reception process will be described later with reference to FIG.

次いで、サブCPU102は、一般アンサ受信処理を行う(S314)。一般アンサ受信処理では、サブCPU102は、送信した一般コマンドへの返信として24hドア監視ユニット63から受信したアンサに対応した各種処理を行う。一般アンサ受信処理の具体的な内容は、後で図48を参照して説明する。
そして、サブCPU102は、ドア監視受信処理を終了する。
Next, the sub CPU 102 performs a general answer reception process (S314). In the general answer reception process, the sub CPU 102 performs various processes corresponding to the answer received from the door monitoring unit 63 as a reply to the transmitted general command. The specific content of the general answer reception process will be described later with reference to FIG.
Then, the sub CPU 102 ends the door monitoring reception process.

(8)特権アンサ受信処理
次に、ドア監視受信処理(図46参照)のS313における特権アンサ受信処理について、図47を参照して説明する。
図47は、本実施形態における特権アンサ受信処理の例を示すフローチャートである。
(8) Privilege Answer Reception Process Next, the privilege answer reception process in S313 of the door monitoring reception process (see FIG. 46) will be described with reference to FIG.
FIG. 47 is a flowchart showing an example of the privilege answer reception process in the present embodiment.

特権アンサ受信処理において、サブCPU102は、まず、受信したアンサが初期化コマンドに対するアンサであるか否かを判別する(S321)。S321において、受信したアンサが初期化コマンドに対するアンサであると判別したとき(S321がYES判定の場合)、サブCPU102は、アンサ内容を確認する初期化受信時処理を行う(S322)。その後、サブCPU102は、特権アンサ受信処理を終了する。   In the privileged answer reception process, the sub CPU 102 first determines whether the received answer is an answer to the initialization command (S321). If it is determined in S321 that the received answer is an answer to the initialization command (if S321 is YES), the sub CPU 102 performs initialization reception processing for confirming answer content (S322). Thereafter, the sub CPU 102 ends the privileged answer reception process.

一方、S321において、受信したアンサが初期化コマンドに対するアンサでないと判別したとき(S321がNO判定の場合)、サブCPU102は、受信したアンサが時計セットコマンドに対するアンサであるか否かを判別する(S323)。S323において、受信したアンサが時計セットコマンドに対するアンサであると判別したとき(S323がYES判定の場合)、サブCPU102は、アンサ内容を確認する時計セット受信時処理を行う(S324)。その後、サブCPU102は、特権アンサ受信処理を終了する。   On the other hand, when it is determined in S321 that the received answer is not an answer to the initialization command (S321 is NO), the sub CPU 102 determines whether the received answer is an answer to a clock set command ( S323). When it is determined in S323 that the received answer is an answer to the clock set command (when the determination in S323 is YES), the sub CPU 102 performs a clock set reception process to confirm the answer content (S324). Thereafter, the sub CPU 102 ends the privileged answer reception process.

一方、S323において、受信したアンサが時計セットコマンドに対するアンサでないと判別したとき(S323がNO判定の場合)、サブCPU102は、受信したアンサが監視間隔時間設定コマンドに対するアンサであるか否かを判別する(S325)。S325において、受信したアンサが監視間隔時間設定コマンドに対するアンサであると判別したとき(S325がYES判定の場合)、サブCPU102は、アンサ内容を確認する監視間隔時間設定受信時処理を行う(S326)。その後、サブCPU102は、特権アンサ受信処理を終了する。   On the other hand, when it is determined in S323 that the received answer is not an answer to the clock set command (when S323 is NO), the sub CPU 102 determines whether the received answer is an answer to the monitoring interval time setting command. (S325). If it is determined in S325 that the received answer is an answer to the monitoring interval time setting command (if S325 is YES), the sub CPU 102 performs monitoring interval time setting reception processing for confirming answer content (S326). . Thereafter, the sub CPU 102 ends the privileged answer reception process.

一方、S325において、受信したアンサが監視間隔時間設定コマンドに対するアンサでないと判別したとき(S325がNO判定の場合)、サブCPU102は、受信したアンサが記録開始時間設定コマンドに対するアンサであるか否かを判別する(S327)。S327において、受信したアンサが記録開始時間設定コマンドに対するアンサであると判別したとき(S327がYES判定の場合)、サブCPU102は、アンサ内容を確認する記録開始時間設定受信時処理を行う(S328)。その後、サブCPU102は、特権アンサ受信処理を終了する。   On the other hand, if it is determined in S325 that the received answer is not an answer to the monitoring interval time setting command (if S325 is NO), the sub CPU 102 determines whether the received answer is an answer to the recording start time setting command. (S327). If it is determined in S327 that the received answer is an answer to the recording start time setting command (if S327 is YES), the sub CPU 102 performs recording start time setting reception processing for confirming the answer content (S328). . Thereafter, the sub CPU 102 ends the privileged answer reception process.

一方、S327において、受信した記録開始時間設定コマンドに対するアンサでないと判別したとき(S327がNO判定の場合)、サブCPU102は、受信したアンサが記録モード設定コマンドに対するアンサであるか否かを判別する(S329)。S329において、受信したアンサが記録モード設定コマンドに対するアンサであると判別したとき(S329がYES判定の場合)、サブCPU102は、アンサ内容を確認する記録モード設定受信時処理を行う(S330)。その後、サブCPU102は、特権アンサ受信処理を終了する。   On the other hand, when it is determined in S327 that the answer to the received recording start time setting command is not an answer (when S327 is NO), the sub CPU 102 determines whether the received answer is an answer to the recording mode setting command. (S329). If it is determined in S329 that the received answer is an answer to the recording mode setting command (if S329 is YES), the sub CPU 102 performs a recording mode setting reception process for confirming the answer content (S330). Thereafter, the sub CPU 102 ends the privileged answer reception process.

一方、S329において、受信した記録モード設定コマンドに対するアンサでないと判別したとき(S329がNO判定の場合)、サブCPU102は、受信したアンサが秘密鍵設定コマンドに対するアンサであるか否かを判別する(S331)。S331において、受信したアンサが秘密鍵設定コマンドに対するアンサでないと判別したとき(S331がNO判定の場合)、サブCPU102は、特権アンサ受信処理を終了する。   On the other hand, when it is determined in S329 that it is not an answer to the received recording mode setting command (S329 is NO determination), the sub CPU 102 determines whether the received answer is an answer to a secret key setting command ( S331). If it is determined in S331 that the received answer is not an answer to the secret key setting command (if S331 is NO), the sub CPU 102 ends the privileged answer reception process.

一方、S331において、受信したアンサが秘密鍵設定コマンドに対するアンサであると判別したとき(S331がYES判定の場合)、サブCPU102は、アンサ内容を確認し、設定結果がNGであるか否かを判別する(S332)。S332において、設定結果がNGでないと判別したとき(S332がNO判定の場合)、サブCPU102は、特権アンサ受信処理を終了する。   On the other hand, when it is determined in S331 that the received answer is an answer to the secret key setting command (if S331 is YES), the sub CPU 102 checks the answer content and determines whether the setting result is NG or not. It discriminates (S332). When it is determined in S332 that the setting result is not NG (S332 is NO determination), the sub CPU 102 ends the privileged answer reception process.

一方、S332において、設定結果がNGであると判別したとき(S332がYES判定の場合)、サブCPU102は、液晶表示装置11に秘密鍵を設定できなかった旨を示す画面である設定NG画面の表示を要求し(S333)、液晶表示装置11に該設定NG画面を表示させる。そして、サブCPU102は、特権アンサ受信処理を終了する。   On the other hand, when it is determined in S332 that the setting result is NG (when S332 is YES determination), the sub CPU 102 is a screen indicating that the liquid crystal display device 11 can not set the secret key. The display is requested (S333), and the setting NG screen is displayed on the liquid crystal display device 11. Then, the sub CPU 102 ends the privileged answer reception process.

なお、特権アンサ受信処理における受信したアンサの種別を判別する処理(S321,S323,S325,S327,S329,S331)において、サブCPU102は、サブDRAM103aの受信バッファを参照し、受信したデータ(アンサ)に含まれているコマンドのID(図13参照)に基づいてアンサの種別を判別する。   In the process of determining the type of the received answer in the privileged answer reception process (S321, S323, S325, S327, S329, S331), the sub CPU 102 refers to the reception buffer of the sub DRAM 103a and receives the received data (answer) The type of answer is determined based on the ID of the command included in (see FIG. 13).

(9)一般アンサ受信処理
次に、ドア監視受信処理(図46参照)のS314における一般アンサ受信処理について、図48を参照して説明する。
図48は、本実施形態における一般アンサ受信処理の例を示すフローチャートである。
(9) General Answer Reception Process Next, the general answer reception process in S314 of the door monitoring reception process (see FIG. 46) will be described with reference to FIG.
FIG. 48 is a flowchart showing an example of general answer reception processing in the present embodiment.

一般アンサ受信処理において、サブCPU102は、まず、受信したアンサがシリアルIDコマンドに対するアンサであるか否かを判別する(S341)。S341において、受信したアンサがシリアルIDコマンドに対するアンサであると判別したとき(S341がYES判定の場合)、サブCPU102は、シリアルID受信時処理を行う(S342)。この処理で、サブCPU102は、サブSRAM103bのシリアルID格納領域に記憶されているシリアルIDと、受信したアンサに付随するシリアルIDとを比較し、一致しない場合は、図20に示す警告画面を液晶表示装置に表示する第3警告表示処理を行う。そして、サブCPU102は、一般アンサ受信処理を終了する。   In the general answer reception process, the sub CPU 102 first determines whether the received answer is an answer to the serial ID command (S341). When it is determined in S341 that the received answer is an answer to the serial ID command (when the determination in S341 is YES), the sub CPU 102 performs serial ID reception processing (S342). In this process, the sub CPU 102 compares the serial ID stored in the serial ID storage area of the sub SRAM 103 b with the serial ID attached to the received answer, and if it does not match, the warning screen shown in FIG. A third warning display process to be displayed on the display device is performed. Then, the sub CPU 102 ends the general answer reception process.

一方、S341において、受信したアンサがシリアルIDコマンドに対するアンサでないと判別したとき(S341がNO判定の場合)、制御LSI200は、受信したアンサがバージョン要求コマンドに対するアンサであるか否かを判別する(S343)。S343において、受信したアンサがバージョン要求コマンドに対するアンサであると判別したとき(S343がYES判定の場合)、制御LSI200は、バージョン受信時処理を行う(S344)。この処理で、サブCPU102は、サブSRAM103bのバージョン格納領域に記憶されているプログラムバージョンと、受信したアンサに付随するプログラムバージョンとを比較し、一致しない場合は、上述の第2警告表示処理を行う。そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, when it is determined in S341 that the received answer is not an answer to the serial ID command (S341 is NO), the control LSI 200 determines whether the received answer is an answer to a version request command ( S343). When it is determined in S343 that the received answer is an answer to the version request command (when S343 is YES), the control LSI 200 performs a version reception process (S344). In this process, the sub CPU 102 compares the program version stored in the version storage area of the sub SRAM 103 b with the program version associated with the received answer, and performs the second warning display process described above if the two do not match. . Then, the sub CPU 102 ends the general answer reception process.

一方、S343において、受信したアンサがバージョン要求コマンドに対するアンサでないと判別したとき(S343がNO判定の場合)、サブCPU102は、受信アンサが乱数コマンドに対するアンサであるか否かを判別する(S345)。S345において、受信したアンサが乱数コマンドに対するアンサであると判別したとき(S345がYES判定の場合)、サブCPU102は、乱数受信時処理を行う(S346)。乱数受信時処理の具体的内容については、後で図49を参照して説明する。そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, when it is determined in S343 that the received answer is not an answer to the version request command (S343 is NO), the sub CPU 102 determines whether the received answer is an answer to a random number command (S345). . If it is determined in S345 that the received answer is an answer to the random number command (if S345 is YES), the sub CPU 102 performs a random number reception process (S346). The specific contents of the random number reception process will be described later with reference to FIG. Then, the sub CPU 102 ends the general answer reception process.

一方、S345において、受信したアンサが乱数コマンドに対するアンサでないと判別したとき(S345がNO判定の場合)、サブCPU102は、受信したアンサがログインコマンドに対するアンサであるか否かを判別する(S347)。S347において、受信したアンサがログインコマンドに対するアンサであると判別したとき(S347がYES判定の場合)、サブCPU102は、ログイン受信時処理を行う(S348)。ログイン受信時処理の具体的内容については、後で図50を参照して説明する。そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, if it is determined in S345 that the received answer is not an answer to the random number command (if S345 is NO), the sub CPU 102 determines whether the received answer is an answer to the login command (S347) . If it is determined in S347 that the received answer is an answer to the login command (if S347 is YES), the sub CPU 102 performs a login reception process (S348). The specific contents of the process upon login reception will be described later with reference to FIG. Then, the sub CPU 102 ends the general answer reception process.

一方、S347において、受信したアンサがログインコマンドに対するアンサでないと判別したとき(S347がNO判定の場合)、サブCPU102は、受信したアンサがログアウトコマンドに対するアンサであるか否かを判別する(S349)。S349において、受信したアンサがログアウトコマンドに対するアンサであると判別したとき(S349がYES判定の場合)、サブCPU102は、サブDRAM103aの特権フラグ格納領域に記憶されている特権フラグをOFFに設定する(S350)そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, when it is determined in S347 that the received answer is not an answer to the login command (S347 is NO), the sub CPU 102 determines whether the received answer is an answer to the logout command (S349). . When it is determined in S 349 that the received answer is an answer to the logout command (when S 349 is YES determination), the sub CPU 102 sets the privilege flag stored in the privilege flag storage area of the sub DRAM 103 a to OFF ( S 350) Then, the sub CPU 102 ends the general answer reception process.

一方、S349において、受信したアンサがログアウトコマンドに対するアンサでないと判別したとき(S349がNO判定の場合)、サブCPU102は、受信したアンサが時計読出コマンドに対するアンサであるか否かを判別する(S351)。S351において、受信したアンサが時計読出コマンドに対するアンサであると判別したとき(S351がYES判定の場合)、サブCPU102は、時計読出受信時処理を行う(S352)。時計読出受信時処理の具体的内容については、後で図51を参照して説明する。そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, when it is determined in S 349 that the received answer is not an answer to the logout command (S 349 is NO), the sub CPU 102 determines whether the received answer is an answer to the clock read command (S 351). ). When it is determined in S351 that the received answer is an answer to the clock read command (when the determination in S351 is YES), the sub CPU 102 performs a clock read reception process (S352). The specific contents of the clock reading and receiving process will be described later with reference to FIG. Then, the sub CPU 102 ends the general answer reception process.

一方、S351において、受信したアンサが時計読出コマンドに対するアンサでないと判別したとき(S351がNO判定の場合)、サブCPU102は、受信したアンサが最新番号コマンドに対するアンサであるか否かを判別する(S353)。S353において、受信したアンサが最新番号コマンドに対するアンサであると判別したとき(S353がYES判定の場合)、サブCPU102は、最新番号受信時処理を行う(S354)。この処理で、サブCPU102は、サブSRAM103bの最新番号格納領域に、アンサに付随する最新番号を記憶(上書き)する。そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, when it is determined in S351 that the received answer is not an answer to the clock read command (when S351 is NO), the sub CPU 102 determines whether the received answer is an answer to the latest number command ( S 353). If it is determined in S353 that the received answer is an answer to the latest number command (if S353 is YES), the sub CPU 102 performs the latest number reception process (S354). In this process, the sub CPU 102 stores (overwrites) the latest number associated with the answer in the latest number storage area of the sub SRAM 103b. Then, the sub CPU 102 ends the general answer reception process.

一方、S353において、受信したアンサが最新番号コマンドに対するアンサでないと判別したとき(S353がNO判定の場合)、サブCPU102は、受信したアンサが開閉履歴情報読出コマンドに対するであるか否かを判別する(S355)。サブCPU102は、S355において、受信したアンサが開閉履歴情報読出コマンドに対するアンサであると判別したとき(S355がYES判定の場合)、サブCPU102は、開閉履歴情報受信時処理を行う(S356)。この処理で、サブCPU102は、アンサに付随する開閉履歴情報を、サブSRAM103bの開閉履歴格納領域に記憶させる。そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, when it is determined in S353 that the received answer is not an answer to the latest number command (when S353 is NO), the sub CPU 102 determines whether the received answer is for an open / close history information read command. (S355). When the sub CPU 102 determines in S355 that the received answer is an answer to the opening / closing history information read command (when the determination in S355 is YES), the sub CPU 102 performs opening / closing history information reception processing (S356). In this process, the sub CPU 102 stores the open / close history information attached to the answer in the open / close history storage area of the sub SRAM 103 b. Then, the sub CPU 102 ends the general answer reception process.

一方、S355において、受信したアンサが開閉履歴情報読出コマンドに対するアンサでないと判別したとき(S355がNO判定の場合)、サブCPU102は、受信したアンサが開閉履歴情報数コマンドに対するアンサであるか否かを判別する(S357)。S357において、受信したアンサが開閉履歴情報数コマンドに対するアンサであると判別したとき(S357がYES判定の場合)、サブCPU102は、開閉履歴情報数受信時処理を行う(S358)。この処理で、サブCPU102は、アンサに付随する開閉履歴情報数を記憶させる。そして、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, if it is determined in S355 that the received answer is not an answer to the open / close history information read command (if S355 is NO), the sub CPU 102 determines whether the received answer is an answer to the open / close history information number command. (S357). If it is determined in S357 that the received answer is an answer to the open / close history information number command (if YES in S357), the sub CPU 102 performs an open / close history information number reception process (S358). In this process, the sub CPU 102 stores the number of pieces of opening and closing history information attached to the answer. Then, the sub CPU 102 ends the general answer reception process.

一方、S357において、受信したアンサが開閉履歴情報数コマンドに対するアンサでないと判別したとき(S357がNO判定の場合)、サブCPU102は、受信したアンサがステータス読出コマンドに対するアンサであるか否かを判別する(S359)。S359において、受信したアンサがステータス読出コマンドに対するアンサであると判別したとき(S359がYES判定の場合)、ステータス受信時処理を行う(S360)。この処理で、サブCPU102は、アンサに付随する開閉履歴情報をサブDRAM103aのステータス格納領域に記憶させ、開閉履歴情報のドア開閉状態がOPENの場合、ドア開放状態の報知が行われていないときには、ドア開放状態である旨の報知(例えば、液晶表示装置11の表示部11aに「ドアが開いています」の表示、及び、スピーカ42,58,64,65L,65Rの全て又はいずれかのスピーカから警告音を出音)を行う。開閉履歴情報のドア開閉状態がCLOSEの場合、ドア開放状態の報知が行われている場合には、ドア開放状態の報知を終了する。ステータス読出コマンド受信時処理を行うサブCPU102は、ステータス取得手段を構成する。そして、制御LSI200は、一般コマンド受信時処理を終了する。   On the other hand, when it is determined in S357 that the received answer is not an answer to the opening / closing history information number command (S357 is NO), sub CPU 102 determines whether the received answer is an answer to a status read command. (S359). If it is determined in S359 that the received answer is an answer to the status read command (if S359 is a YES determination), status reception processing is performed (S360). In this processing, the sub CPU 102 stores the open / close history information attached to the answer in the status storage area of the sub DRAM 103a, and when the door open / close state of the open / close history information is OPEN, when notification of the door open state is not performed, Notification that the door is open (for example, display of "door is open" on the display unit 11a of the liquid crystal display device 11, and all or any of the speakers 42, 58, 64, 65L, and 65R) Sound a warning sound). When the door open / close state of the open / close history information is CLOSE, when the notification of the door open state is performed, the notification of the door open state is ended. The sub CPU 102 that performs processing when receiving a status read command constitutes status acquisition means. Then, the control LSI 200 ends the general command reception process.

一方、S359において、受信したアンサがステータス読出コマンドに対するアンサでないと判別したとき(S359がNO判定の場合)、サブCPU102は、一般アンサ受信処理を終了する。   On the other hand, if it is determined in S359 that the received answer is not an answer to the status read command (if S359 is NO), the sub CPU 102 ends the general answer reception process.

(10)乱数受信時処理
次に、一般アンサ受信処理(図48参照)のS346における乱数受信時処理について、図49を参照して説明する。
図49は、本実施形態における乱数受信時処理の例を示すフローチャートである。
(10) Random Number Reception Process Next, the random number reception process in S346 of the general answer reception process (see FIG. 48) will be described with reference to FIG.
FIG. 49 is a flowchart showing an example of random number reception processing in the present embodiment.

乱数受信時処理において、サブCPU102は、サブSRAM103bの秘密鍵格納領域に記憶されている秘密鍵を取得する(S361)。   In the random number reception process, the sub CPU 102 acquires the secret key stored in the secret key storage area of the sub SRAM 103 b (S 361).

次いで、サブCPU102は、サブDRAM103aの受信バッファから24hドア監視ユニット63から受信した乱数を取得する(S362)。   Next, the sub CPU 102 acquires the random number received from the 24 h door monitoring unit 63 from the reception buffer of the sub DRAM 103 a (S 362).

次いで、サブCPU102は、サブDRAM103aの受信バッファから24hドア監視ユニット63から受信した乱数を取得する(S362)。   Next, the sub CPU 102 acquires the random number received from the 24 h door monitoring unit 63 from the reception buffer of the sub DRAM 103 a (S 362).

次いで、サブCPU102は、取得した乱数と秘密鍵を用いて、パスワードを生成するパスワード生成処理を行う(S363)。なお、この処理において、サブCPU102は、上述の制御LSI200が実行する乱数コマンド受信時処理(図31参照)のS123と同様の方法(計算)でパスワードを生成する。S363の処理を行うサブCPU102は、設定側認証情報生成手段を構成する。   Next, the sub CPU 102 performs password generation processing for generating a password using the acquired random number and the secret key (S363). In this process, the sub CPU 102 generates a password by the same method (calculation) as S123 in the random number command reception process (see FIG. 31) executed by the control LSI 200 described above. The sub CPU 102 that performs the process of S363 constitutes setting side authentication information generation means.

次いで、サブCPU102は、生成したパスワードをサブSRAM103bのパスワード格納領域に記憶させる(S364)。そして、サブCPU102は、乱数受信時処理を終了する。   Next, the sub CPU 102 stores the generated password in the password storage area of the sub SRAM 103 b (S 364). Then, the sub CPU 102 ends the random number reception process.

(11)ログイン受信時処理
次に、一般アンサ受信処理(図48参照)のS348におけるログイン受信時処理について、図50を参照して説明する。
図50は、本実施形態におけるログイン受信時処理の例を示すフローチャートである。
(11) Login Reception Processing Next, login reception processing in S348 of the general answer reception processing (see FIG. 48) will be described with reference to FIG.
FIG. 50 is a flowchart illustrating an example of login reception processing according to the present embodiment.

ログイン時処理において、サブCPU102は、サブDRAM103aの受信バッファからログインコマンドに対するアンサを取得する(S371)。   In the login process, the sub CPU 102 acquires an answer to the login command from the reception buffer of the sub DRAM 103a (S371).

次いで、サブCPU102は、取得したアンサの内容がログイン許可(OK)であるか否かを判別する(S372)。S372の処理において、取得したアンサの内容がログイン許可(OK)であると判別したとき(S372がYES判定の場合)、サブCPU102は、サブDRAM103aの特権フラグ格納領域に記憶されている特権フラグをONに設定する(S373)。そして、サブCPU102は、ログイン受信時処理を終了する。   Next, the sub CPU 102 determines whether the content of the acquired answer is login permission (OK) (S372). When it is determined in the process of S372 that the content of the acquired answer is login permission (OK) (when S372 is YES), the sub CPU 102 stores the privilege flag stored in the privilege flag storage area of the sub DRAM 103a. It sets to ON (S373). Then, the sub CPU 102 ends the login reception processing.

一方、S372において、取得したアンサの内容がログイン許可(OK)でないと判別したとき(S372がNO判定の場合)、サブCPU102は、特権フラグをOFFに設定する(S374)。そして、サブCPU102は、ログイン受信時処理を終了する。なお、この場合、サブCPU102は、液晶表示装置11に図19に示す警告画面を表示させる。   On the other hand, when it is determined in S372 that the content of the acquired answer is not login permission (OK) (when S372 is NO), the sub CPU 102 sets the privilege flag to OFF (S374). Then, the sub CPU 102 ends the login reception processing. In this case, the sub CPU 102 causes the liquid crystal display device 11 to display a warning screen shown in FIG.

(12)時計読出受信時処理
次に、一般アンサ受信処理(図48参照)のS352における時計読出受信時処理について、図51を参照して説明する。
図51は、本実施形態における時計読出受信時処理の例を示すフローチャートである。
(12) Clock Reading Reception Processing Next, the clock reading reception processing at S352 in the general answer reception processing (see FIG. 48) will be described with reference to FIG.
FIG. 51 is a flow chart showing an example of clock reading and receiving processing in this embodiment.

時計読出時処理において、サブCPU102は、サブDRAM103aの受信バッファを参照し、時計読出コマンドのアンサに付随する時刻情報(日時データ)と、副制御基板72のサブRTC108から取得した時刻情報とを比較し、差分が所定時間(本実施形態では3分)以上あるか否かを判別する(S381)。なお、本実施形態では、上記所定時間を3分と設定した態様を説明したが、この所定時間は任意に設定可能である。   In the clock reading process, the sub CPU 102 refers to the reception buffer of the sub DRAM 103 a and compares the time information (date and time data) accompanying the answer of the clock reading command with the time information acquired from the sub RTC 108 of the sub control board 72. Then, it is determined whether or not the difference is equal to or more than a predetermined time (three minutes in the present embodiment) (S381). In the present embodiment, the aspect in which the predetermined time is set to 3 minutes has been described, but the predetermined time can be set arbitrarily.

S381において、差分が3分以上あると判別したとき(S381がYES判定の場合)サブCPU102は、時計セットシーケンスを実行する(S382)。そして、サブCPU102は、時計読出受信時処理を終了する。なお、S381の判別の結果、S382で時計セットシーケンスを実行し、当該シーケンス内でサブRTC108が計時する時刻を示す時刻情報を24hドア監視ユニット63へ送信するサブCPU102は、設定側時刻送信手段を構成する。   In S381, when it is determined that the difference is 3 minutes or more (when S381 is YES), the sub CPU 102 executes a clock set sequence (S382). Then, the sub CPU 102 ends the clock reading reception processing. As a result of the determination in S381, the sub CPU 102 executes the clock set sequence in S382 and transmits the time information indicating the time counted by the sub RTC 108 in the sequence to the door monitoring unit 63 for 24 h. Configure.

S381において、差分が3分以上でないと判別したとき(S381がNO判定の場合)サブCPU102は、時計読出受信時処理を終了する。   When it is determined in S 381 that the difference is not 3 minutes or more (when S 381 is NO), the sub CPU 102 ends the clock readout reception process.

<作用>
(1)第1の作用
本実施形態のパチスロ1では、図16及び図17に示すように、24hドア監視ユニット63の各種設定を行うための各種シーケンス(図16のNo5〜11のシーケンス)が実行されると、ホスト機器である副制御基板72は、24hドア監視ユニット63に乱数コマンド(CK)を送信する。なお、各種設定を行うための各種シーケンス(図16のNo5〜11のシーケンス)を実行する際の副制御基板72(副制御回路101)のサブCPU102は、設定手段を構成する。
<Function>
(1) First Operation In the pachislot 1 of the present embodiment, as shown in FIGS. 16 and 17, various sequences (sequences of No. 5 to 11 in FIG. 16) for performing various settings of the door monitoring unit 63 for 24 h are When executed, the secondary control board 72, which is the host device, transmits a random number command (CK) to the 24 h door monitoring unit 63. The sub CPU 102 of the sub control board 72 (sub control circuit 101) at the time of executing various sequences (sequences of Nos. 5 to 11 in FIG. 16) for performing various settings constitute setting means.

乱数コマンドを受信した24hドア監視ユニット63は、乱数を発生させ(図31のS121参照)、発生させた乱数値を副制御基板72に送信する(図35のS166参照)。また、24hドア監視ユニット63は、EEPROM205から秘密鍵を読み出し、読み出した秘密鍵と副制御基板72に送信した乱数値とを用いて、所定の演算を行ってパスワードを生成する。   The 24h door monitoring unit 63 having received the random number command generates a random number (see S121 in FIG. 31), and transmits the generated random value to the sub control board 72 (see S166 in FIG. 35). In addition, the 24h door monitoring unit 63 reads the secret key from the EEPROM 205, and uses the read secret key and the random number value transmitted to the sub control board 72, to perform a predetermined operation to generate a password.

また、24hドア監視ユニット63から乱数値を受信した副制御基板72は、サブSRAM103bに記憶されている秘密鍵と受信した乱数値とを用いて、所定の演算を行ってパスワードを生成する(図49のS363参照)。   Also, the sub control board 72 that has received the random number value from the 24 h door monitoring unit 63 generates a password by performing a predetermined operation using the secret key stored in the sub SRAM 103 b and the received random number value (see FIG. 49 of S363).

次に、副制御基板72は、24hドア監視ユニット63に生成したパスワードが付随するログインコマンド(CI)を送信する(図44のS288参照)。ログインコマンドを受信した24hドア監視ユニット63は、副制御基板72から受信したパスワードと、自身が生成したパスワードとが一致するか否かを判別する(図32のS133.S134参照)。一致すると判別したとき、24hドア監視ユニット63は、特権コマンドに基く各種設定を要求できる状態(以下、「ログイン状態」と称する場合がある)に設定される(図32のS135参照)。   Next, the secondary control board 72 transmits a login command (CI) accompanied by the generated password to the 24 h door monitoring unit 63 (see S288 in FIG. 44). Having received the login command, the 24h door monitoring unit 63 determines whether the password received from the sub control board 72 matches the password generated by itself (see S133 and S134 in FIG. 32). When it is determined that they coincide with each other, the 24h door monitoring unit 63 is set to a state capable of requesting various settings based on the privileged command (hereinafter, may be referred to as “login state”) (see S135 in FIG. 32).

一方、副制御基板72から受信したパスワードと、自身が生成したパスワードとが一致しないと判別したとき(図32のS134がNO判定の場合)、24hドア監視ユニット63はログイン状態に設定されない。また、サブCPU102は、各種シーケンスにおいてログインコマンドに続くコマンドを送信することなく各種シーケンスを終了する(図41のS240のシーケンス制御処理において、各種シーケンスを終了することで、リクエストが発生しないためS241がNO判定となる)。なお、このようにパスワードの一致/不一致に基づいて、ログイン状態に設定する24hドア監視ユニット63の制御LSI200は、認証情報状態設定手段を構成する。   On the other hand, when it is determined that the password received from the sub control board 72 does not match the password generated by itself (when S134 in FIG. 32 is NO), the 24h door monitoring unit 63 is not set in the login state. In addition, the sub CPU 102 ends various sequences without transmitting a command following the login command in various sequences (in the sequence control process of S240 of FIG. It becomes NO judgment). The control LSI 200 of the 24 h door monitoring unit 63 which sets the login state based on the match / mismatch of the password in this way constitutes an authentication information state setting means.

以上のように、24hドア監視ユニット63の各種設定を行うための各種シーケンスが実行される度に、24hドア監視ユニット63をログイン状態にするためのパスワードが副制御基板72と24hドア監視ユニット63において秘密鍵と乱数を用いて生成される。したがって、生成されるパスワードは、毎回異なるパスワードとなる。したがって、副制御基板72と24hドア監視ユニット63間の通信内容を解析することにより、そのときのパスワードが判明しても、以後、そのパスワードを用いて、24hドア監視ユニット63をログイン状態に設定することはできない。このように、24hドア監視ユニット63への不正なアクセスを防止することができる。このため、24hドア監視ユニット63の設定の不正な変更や記憶している情報の不正な改ざんや消去を防止することができる。   As described above, each time the various sequences for performing various settings of the 24h door monitoring unit 63 are executed, the password for setting the 24h door monitoring unit 63 in the login state is the sub control board 72 and the 24h door monitoring unit 63. Generated using a secret key and a random number. Therefore, the generated password is different every time. Therefore, even if the password at that time is found by analyzing the contents of communication between the sub control board 72 and the 24 h door monitoring unit 63, the 24 h door monitoring unit 63 is set in the login state using that password thereafter. You can not do it. In this manner, unauthorized access to the 24 h door monitoring unit 63 can be prevented. For this reason, it is possible to prevent the unauthorized change of the setting of the 24 h door monitoring unit 63 and the unauthorized falsification or deletion of the stored information.

また、24hドア監視ユニット63が他の24hドア監視ユニットに付け替えられた場合で、当該他の24hドア監視ユニットが記憶する秘密鍵と24hドア監視ユニット63が記憶する秘密鍵が異なる場合は、副制御基板72と付け替えられた24hドア監視ユニットのそれぞれで生成されるパスワードは、同じ乱数を用いても異なるものとなる。本実施形態では、副制御基板72は、24hドア監視ユニットからログイン不許可の旨のアンサを受信した場合、液晶表示装置11に図19に示すような警告画面を表示する。このため、24hドア監視ユニット63の付け替えが発生したことを容易に把握することができる。   Also, when the 24h door monitoring unit 63 is replaced with another 24h door monitoring unit, if the secret key stored by the other 24h door monitoring unit and the secret key stored by the 24h door monitoring unit 63 are different, The password generated by each of the 24h door monitoring units replaced with the control board 72 is different even if the same random number is used. In the present embodiment, the sub control board 72 displays a warning screen as shown in FIG. 19 on the liquid crystal display device 11 when receiving an answer to the effect that login is not permitted from the 24 h door monitoring unit. For this reason, it can be easily grasped that the replacement of the 24 h door monitoring unit 63 has occurred.

(2)第2の作用
本実施形態のパチスロ1では、パチスロ1の起動時に、警告表示画面(図40参照)を液晶表示装置11に表示することで、指定時間内に発生したフロントドア2bの開閉に係る開閉履歴情報を表示する警告表示を行う。また、指定時間は、警告表示設定画面(図39参照)を介して任意に設定可能である。したがって、開閉履歴情報を視る者が注目している開閉履歴情報を見落としてしまうことを防止することができる。
(2) Second Operation In the pachi slot 1 of the present embodiment, the warning display screen (see FIG. 40) is displayed on the liquid crystal display device 11 when the pachi slot 1 is activated, whereby the front door 2b generated within the designated time is displayed. A warning display is performed to display open / close history information related to opening / closing. Further, the designated time can be arbitrarily set via the warning display setting screen (see FIG. 39). Therefore, it is possible to prevent the person who is looking at the opening and closing history information from overlooking the opening and closing history information in focus.

(3)第3の作用
本実施形態のパチスロ1では、上述のように、制御LSI200は、ドア監視ユニットメイン処理(図21)を20msec周期で実行する。したがって、制御LSI200は、ドア監視ユニットメイン処理のS2のポート入力処理(図22参照)における各処理及びS3のドア監視処理(図23参照)における各処理を20msec周期で実行する。したがって、ドア開閉監視スイッチ67がフロントドア2bの開閉を検知してから、ドア開閉監視スイッチ67からの信号に基くフロントドア2bの開閉状態を示す状態情報が、24hドア監視ユニット63のRAM204における入力ポート情報格納領域に記憶され(図22のS11参照)、また、その状態情報に基づく開閉履歴情報が第1検知結果格納領域に記憶されるまでのタイムラグは、最大で20msecに過ぎない。
(3) Third Operation In the pachislot 1 of the present embodiment, as described above, the control LSI 200 executes the door monitoring unit main process (FIG. 21) in a cycle of 20 msec. Therefore, the control LSI 200 executes each process in the port input process (see FIG. 22) in S2 of the door monitoring unit main process and each process in the door monitoring process (see FIG. 23) in S3 in a cycle of 20 msec. Therefore, after the door open / close monitoring switch 67 detects the open / close of the front door 2b, state information indicating the open / close state of the front door 2b based on the signal from the door open / close monitor switch 67 is input to the RAM 204 of the 24h door monitoring unit 63. The time lag until it is stored in the port information storage area (see S11 in FIG. 22) and the open / close history information based on the state information is stored in the first detection result storage area is only 20 msec at maximum.

また、サブCPU102は、500msec毎に第1状態検知シーケンスを実行してステータス読出コマンドを送信し(図16のNo2及び図41のS239参照)、24hドア監視ユニット63からステータス読出コマンドのアンサとして、RAM204の第1検知結果格納領域に記憶されている開閉履歴情報を取得する。そして、取得した開閉履歴情報が、フロントドア2bの開放状態を示している場合、サブCPU102は、液晶表示装置11にフロントドア2bが開放状態である旨を示す画面(図示は省略するが、例えば液晶表示装置11の略中央に「ドアが開いています」というメッセージ)を表示させる。したがって、フロントドア2bの開閉状態を適切に把握することができる。   Further, the sub CPU 102 executes the first state detection sequence every 500 msec and transmits a status read command (see No. 2 in FIG. 16 and S239 in FIG. 41), and as an answer for the status read command from the 24h door monitoring unit 63, The open / close history information stored in the first detection result storage area of the RAM 204 is acquired. Then, when the acquired open / close history information indicates the open state of the front door 2b, the sub CPU 102 displays on the liquid crystal display device 11 a screen indicating that the front door 2b is open (for example, although not shown) The message “the door is open” is displayed in the approximate center of the liquid crystal display device 11). Therefore, the open / close state of the front door 2b can be appropriately grasped.

また、開閉履歴情報をEEPROM205に記憶させる間隔である監視間隔時間を分刻みで1分〜100分の間で設定可能である。したがって、例えば、チャタリングによる誤検出に基く開閉履歴情報などをEEPROM205に記録することがない。このため、EEPROM205に記憶される開閉履歴情報がすぐに記憶可能な上限数に達してしまうことを防止することができる。したがって、開閉履歴情報を適切に記憶させることができる。   Also, the monitoring interval time, which is the interval at which the open / close history information is stored in the EEPROM 205, can be set between 1 minute and 100 minutes every minute. Therefore, for example, the open / close history information or the like based on the erroneous detection due to chattering is not recorded in the EEPROM 205. Therefore, it is possible to prevent the open / close history information stored in the EEPROM 205 from reaching the upper limit number that can be stored immediately. Therefore, the open / close history information can be stored appropriately.

(4)第4の作用
本実施形態のパチスロ1では、サブCPU102は、所定時間(本実施形態では1時間)毎に第2状態検知シーケンスを実行し、時計読出コマンド(CT)を24hドア監視ユニット63に送信する(図16参照)。そして、サブCPU102は、時計読出コマンドのアンサを24hドア監視ユニット63から受信すると、図51に示す時計読出受信時処理を行う(図48のS352参照)。
(4) Fourth Operation In the pachislot 1 of the present embodiment, the sub CPU 102 executes the second state detection sequence every predetermined time (1 hour in the present embodiment) and monitors the clock read command (CT) for 24 h. Send to unit 63 (see FIG. 16). Then, when the sub CPU 102 receives an answer of the clock read command from the 24 h door monitoring unit 63, the sub CPU 102 performs a clock read reception process shown in FIG. 51 (see S352 in FIG. 48).

時計読出受信時処理において、サブCPU102は、時計読出コマンドのアンサに付随する時刻情報(日時データ)と、副制御基板72のサブRTC108から取得した時刻情報とを比較し、差分が所定時間(本実施形態では3分)以上あるか否かを判別する(図51のS381)。そして、差分が3分以上あると判別したとき(図51のS381がYES判定の場合)サブCPU102は、時計セットシーケンス(図16のNo6参照)を実行する(図51のS382)。   In the clock reading reception process, the sub CPU 102 compares the time information (date and time data) attached to the answer of the clock reading command with the time information acquired from the sub RTC 108 of the sub control board 72, and the difference is In the embodiment, it is determined whether or not there is three minutes or more (S381 in FIG. 51). Then, when it is determined that there is a difference of 3 minutes or more (when S381 in FIG. 51 is YES), the sub CPU 102 executes a clock set sequence (see No. 6 in FIG. 16) (S382 in FIG. 51).

時計セットシーケンスを実行すると、サブCPU102は、乱数コマンド(CK)、ログインコマンド(CI)、時計セットコマンド(ST)、ログアウトコマンド(CO)の順でコマンドを送信する(図16参照)。ログインコマンドを受信した24hドア監視ユニット63は、ログインコマンドに付随するパスワードと、RAM204のパスワード格納領域に記憶されているパスワードが一致するか否かを判別し、一致する場合はログイン許可(OK)の旨、一致しない場合はログイン不許可(NG)の旨のアンサを送信(返信)する。なお、時計セットシーケンスの実行時においてサブSRAM103bに記憶されているパスワードが付随するログインコマンド(CI)を送信するサブCPU102は、設定側認証情報送信手段を構成する。また、ログインコマンドに付随するパスワードと、RAM204のパスワード格納領域に記憶されているパスワードが一致するか否かを判別する24hドア監視ユニット63の制御LSI200は、認証情報判別手段を構成する。また、上記判別の結果が一致する場合は特権コマンドに基く各種設定を要求できるログイン状態に設定し、一致しない場合はログイン状態に設定しない24hドア監視ユニット63の制御LSI200は、認証状態許容手段を構成する。また、上記判別結果をホスト機器に送信する24hドア監視ユニット63の制御LSI200は、認証結果通知手段を構成する。   When the clock set sequence is executed, the sub CPU 102 transmits commands in the order of the random number command (CK), the login command (CI), the clock set command (ST), and the logout command (CO) (see FIG. 16). Upon receiving the login command, the 24h door monitoring unit 63 determines whether the password attached to the login command matches the password stored in the password storage area of the RAM 204, and if they match, login permission (OK) If there is no match, an answer to the effect that login is not permitted (NG) is sent (reply). The sub CPU 102, which transmits a login command (CI) accompanied by the password stored in the sub SRAM 103b at the time of execution of the clock set sequence, constitutes setting side authentication information transmission means. Further, the control LSI 200 of the 24 h door monitoring unit 63 that determines whether the password attached to the login command matches the password stored in the password storage area of the RAM 204 constitutes an authentication information determination means. Further, when the determination result is identical, the login state where various settings based on the privilege command can be requested is set, and when not, the control LSI 200 of the door monitoring unit 63 does not set the login state. Configure. Further, the control LSI 200 of the 24 h door monitoring unit 63 that transmits the determination result to the host device constitutes an authentication result notification means.

そして、サブCPU102は、24hドア監視ユニット63からログイン不許可の旨のアンサを受信した場合、液晶表示装置11に図19に示すように、画面の中央に「監視ユニットにログインできません。」というメッセージが配置された警告画面を表示させる。また、サブCPU102は、ログインコマンドの後順のコマンドを送信することなく時計セットシーケンスを終了する。なお、上記警告画面を液晶表示装置11に表示させるサブCPU102は、報知要求手段を構成する。   Then, when the sub CPU 102 receives an answer indicating that login is not permitted from the door monitoring unit 63 for 24 h, as shown in FIG. 19 on the liquid crystal display device 11, a message “Can not login to the monitoring unit.” Display the warning screen where is placed. In addition, the sub CPU 102 ends the clock set sequence without transmitting a command following the login command. The sub CPU 102 that causes the liquid crystal display device 11 to display the warning screen constitutes notification request means.

一方、サブCPU102は、24hドア監視ユニット63からログイン許可の旨のアンサを受信した場合、サブRTC108から取得した年、月、日、時、分、秒そして曜日を示す情報が付随する時計セットコマンド(ST)を24hドア監視ユニット63に送信する。時計セットコマンドを受信した24hドア監視ユニット63は、時計セットコマンドに付随する年、月、日、時、分、秒そして曜日を示す情報に基いて、RTC201の年、月、日、時、分、秒そして曜日を設定する。   On the other hand, when the sub CPU 102 receives an answer indicating login permission from the 24 h door monitoring unit 63, a clock set command accompanied by information indicating the year, month, day, hour, minute, second and day of week acquired from the sub RTC 108 Send (ST) to the door monitoring unit 63 for 24 h. The 24h door monitoring unit 63 having received the clock set command receives the year, month, day, hour, minute of the RTC 201 based on the information indicating the year, month, day, hour, minute, second and day of the week attached to the clock set command. Set the second and the day of the week.

ここで、24hドア監視ユニット63が他の24hドア監視ユニットと付け替えられ、当該他の24hドア監視ユニットが記憶する秘密鍵と24hドア監視ユニット63が記憶する秘密鍵が異なる場合は、時計セットシーケンスにおけるログインコマンドに対するアンサとして、ログイン不許可(NG)の旨のアンサが送信される(図35のS168参照)。そして、液晶表示装置11に図19に示すような警告画面が表示される。したがって、定期的に行われる第2状態検知シーケンスに起因して、24hドア監視ユニット63の付け替えを定期的に検査でき、且つ、また、24hドア監視ユニット63が付け替えられたことを容易に把握することができる。   Here, when the 24h door monitoring unit 63 is replaced with another 24h door monitoring unit and the secret key stored by the other 24h door monitoring unit is different from the secret key stored by the 24h door monitoring unit 63, the clock set sequence is performed. An answer to the effect that login is not permitted (NG) is transmitted as an answer to the login command in (1) (see S168 in FIG. 35). Then, a warning screen as shown in FIG. 19 is displayed on the liquid crystal display device 11. Therefore, due to the second state detection sequence performed periodically, replacement of the 24 h door monitoring unit 63 can be inspected regularly, and also it is easily grasped that the 24 h door monitoring unit 63 has been replaced. be able to.

また、両RTC108,201が計時する現在時刻に誤差が生じることを抑制することができる。   Moreover, it can suppress that an error arises in the present time which both RTC108, 201 time-measures.

<変形例>
上記実施形態では、本発明を適用した遊技機としてパチスロ1を例に挙げて説明した。しかし、本発明を適用可能な遊技機はパチスロに限らず、例えば、「パチンコ」と呼ばれる遊技機やスロットマシンがある。
<Modification>
In the above embodiment, the pachi slot 1 has been described as an example of the gaming machine to which the present invention is applied. However, the gaming machine to which the present invention can be applied is not limited to the pachislot machine, and there are, for example, gaming machines and slot machines called "pachinko".

また、本実施形態では、ホスト機器が行う各種処理について、ホスト機器の一例である副制御基板72のサブCPU102が行う処理を例に説明した。しかし、ホスト機器としてパチスロ1の製造時やメンテナンス時に24hドア監視ユニット63の各種設定を行う設定機(図示省略)を接続させた場合は、この設定機の処理装置に、上記のサブCPU102が行う処理を行わせてもよい。   Further, in the present embodiment, the various processes performed by the host device have been described using the process performed by the sub CPU 102 of the sub control board 72, which is an example of the host device, as an example. However, when a setting machine (not shown) for performing various settings of the door monitoring unit 63 at the time of manufacture or maintenance of the pachislot 1 is connected as a host device, the sub CPU 102 performs the above-mentioned processing unit of the setting machine. Processing may be performed.

1…パチスロ、 2…外装体、 2a…キャビネット、 2b…フロントドア、 11…液晶表示装置、 63…24hドア監視ユニット、 67…ドア開閉監視スイッチ、 72…副制御基板、 101…副制御回路、 102…サブCPU、 103…サブRAM、 103a…サブDRAM、 103b…サブSRAM、 108…サブRTC、 200…制御LSI、 201…RTC、 202…バッテリー、 203…ROM、 204…RAM、 205…EEPROM、 206…制御コントローラ回路、 207…シリアル通信回路、 208…乱数発生回路、 209…I/Oポート回路
DESCRIPTION OF SYMBOLS 1 ... Pachi slot, 2 ... exterior body, 2a ... cabinet, 2b ... front door, 11 ... liquid crystal display device, 63 ... 24h door monitoring unit, 67 ... door open / close monitoring switch, 72 ... sub control board, 101 ... sub control circuit, 102 ... sub CPU, 103 ... sub RAM, 103 a ... sub DRAM, 103 b ... sub SRAM, 108 ... sub RTC, 200 ... control LSI, 201 ... RTC, 202 ... battery, 203 ... ROM, 204 ... RAM, 205 ... EEPROM, 206 Controller control circuit 207 Serial communication circuit 208 Random number generation circuit 209 I / O port circuit

Claims (2)

本体と、
前記本体に取り付けられた扉と、
前記扉の開放及び閉止状態を監視する扉監視装置と、
前記扉監視装置に接続された制御装置と、
前記制御装置の指示に応じて情報の表示を行う表示手段と、を備える遊技機であって、
前記扉監視装置は、
前記遊技機の電源が切られた状態であっても常に、前記扉が開放されたこと及び開放された時刻並びに閉止されたこと及び閉止された時刻の情報からなる開閉履歴情報を記憶する開閉履歴情報記憶手段を有し、
前記制御装置は、
前記開閉履歴情報記憶手段が記憶した開閉履歴情報を取得する開閉履歴取得手段と、
第1の期間を設定する第1期間設定手段と、
第2の期間を設定する第2期間設定手段と、
前記開閉履歴取得手段が前記扉監視装置から取得した前記開閉履歴情報内で前記第1期間設定手段が設定した前記第1の期間内の前記扉の開放又は閉止状態に係る前記開閉履歴情報を抽出する開閉履歴抽出手段と、を有し、
前記遊技機の起動時に、前記開閉履歴抽出手段が抽出した前記開閉履歴情報を前記表示手段に前記第2の期間表示させ、
前記第1の期間として、前記遊技機の電源が切られている時間を設定可能であり、
前記第2の期間として、前記遊技機の起動時から前記開閉履歴情報を前記表示手段に表示させる期間が設定可能である
ことを特徴とする遊技機。
Body and
A door attached to the body,
A door monitoring device that monitors the open and closed states of the door;
A control device connected to the door monitoring device;
A display means for displaying information in accordance with an instruction from the control device;
The door monitoring device is
An open / close history for storing open / close history information including information on when the door is open and when the door is open and when the power is off, and when the door is open and closed. Has information storage means,
The controller is
Opening and closing history acquisition means for acquiring the opening and closing history information stored in the opening and closing history information storage means;
First period setting means for setting a first period;
Second period setting means for setting a second period;
In the opening and closing history information acquired from the door monitoring device, the opening and closing history acquiring unit extracts the opening and closing history information relating to the open or closed state of the door in the first period set by the first period setting unit. Opening and closing history extraction means,
At start-up of the gaming machine, the display means displays the open / close history information extracted by the open / close history extraction means on the display means for the second period,
As the first period, a time during which the gaming machine is turned off can be set,
A game machine characterized in that a period for displaying the open / close history information on the display means can be set from the activation of the game machine as the second period.
前記表示手段は、前記第1の期間と前記第2の期間を設定する際に設定画面を表示し、The display means displays a setting screen when setting the first period and the second period,
前記設定画面では、設定された前記第1の期間と、設定された前記第2の期間が並べて表示されるIn the setting screen, the set first period and the set second period are displayed side by side
ことを特徴とする請求項1に記載の遊技機。The gaming machine according to claim 1, characterized in that.
JP2017239404A 2017-12-14 2017-12-14 Gaming machine Expired - Fee Related JP6546648B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017239404A JP6546648B2 (en) 2017-12-14 2017-12-14 Gaming machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017239404A JP6546648B2 (en) 2017-12-14 2017-12-14 Gaming machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015012492A Division JP6457824B2 (en) 2015-01-26 2015-01-26 Game machine

Publications (2)

Publication Number Publication Date
JP2018038900A JP2018038900A (en) 2018-03-15
JP6546648B2 true JP6546648B2 (en) 2019-07-17

Family

ID=61624575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017239404A Expired - Fee Related JP6546648B2 (en) 2017-12-14 2017-12-14 Gaming machine

Country Status (1)

Country Link
JP (1) JP6546648B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019124582A (en) * 2018-01-16 2019-07-25 株式会社Preferred Networks Tactile information estimation device, method for estimating tactile information, and program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10846302B1 (en) * 2018-03-02 2020-11-24 Amazon Technologies, Inc. Replication event ordering using an external data store

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006015087A (en) * 2004-05-31 2006-01-19 Aruze Corp Game machine
JP5077638B2 (en) * 2006-12-06 2012-11-21 株式会社大一商会 Game machine
JP2008206689A (en) * 2007-02-26 2008-09-11 Heiwa Corp Game machine
JP5343418B2 (en) * 2008-06-27 2013-11-13 株式会社三洋物産 Game machine
JP6457824B2 (en) * 2015-01-26 2019-01-23 株式会社ユニバーサルエンターテインメント Game machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019124582A (en) * 2018-01-16 2019-07-25 株式会社Preferred Networks Tactile information estimation device, method for estimating tactile information, and program

Also Published As

Publication number Publication date
JP2018038900A (en) 2018-03-15

Similar Documents

Publication Publication Date Title
JP6457824B2 (en) Game machine
JP6599511B2 (en) Game machine
JP2016137001A (en) Game machine
JP6546648B2 (en) Gaming machine
JP2007167562A (en) Game machine
JP6446523B2 (en) Game machine
JP6469201B2 (en) Game machine
JP6343568B2 (en) Game machine
JP2006255389A (en) Game machine
JP5953324B2 (en) Game machine
JP7136640B2 (en) game machine
JP7166605B2 (en) game machine
JP7136639B2 (en) game machine
JP7049224B2 (en) Pachinko machine
JP7049223B2 (en) Pachinko machine
JP7049225B2 (en) Pachinko machine
JP7049226B2 (en) Pachinko machine
JP2016137003A (en) Game machine
JP2006255388A (en) Game machine
JP2007167559A (en) Game machine
JP5090880B2 (en) Game machine
JP6734252B2 (en) Amusement machine
JP5090878B2 (en) Game machine
JP6734311B2 (en) Amusement machine
JP6530016B2 (en) Gaming machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181026

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181120

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190115

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190618

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190621

R150 Certificate of patent or registration of utility model

Ref document number: 6546648

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees