JP2020005963A - Game system, game machine, and game medium identification device - Google Patents

Game system, game machine, and game medium identification device Download PDF

Info

Publication number
JP2020005963A
JP2020005963A JP2018130492A JP2018130492A JP2020005963A JP 2020005963 A JP2020005963 A JP 2020005963A JP 2018130492 A JP2018130492 A JP 2018130492A JP 2018130492 A JP2018130492 A JP 2018130492A JP 2020005963 A JP2020005963 A JP 2020005963A
Authority
JP
Japan
Prior art keywords
command
encryption key
medal selector
medal
initialization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018130492A
Other languages
Japanese (ja)
Other versions
JP7092580B2 (en
Inventor
純磨 前川
Jumma Maekawa
純磨 前川
篤 西田
Atsushi Nishida
篤 西田
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 JP2018130492A priority Critical patent/JP7092580B2/en
Publication of JP2020005963A publication Critical patent/JP2020005963A/en
Application granted granted Critical
Publication of JP7092580B2 publication Critical patent/JP7092580B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Abstract

To provide a game system capable of safely and easily generating and setting an encryption key to peripheral equipment, and to provide a game medium identification device.SOLUTION: A token selector encryption key creation tool executed by a computer creates an encryption key file by encrypting data including an inputted encryption key, and a token selector initialization tool acquires the encryption key from the encryption key file, and transmits it to a token selector. The token selector stores the received encryption key in a flash memory and performs encryption communication using the encryption key with a sub-control circuit.SELECTED DRAWING: Figure 17

Description

パチスロ等の遊技機における安全性を向上させるための遊技システムに関する。   The present invention relates to a gaming system for improving safety in a gaming machine such as a pachislot.

従来より、複数の図柄がそれぞれの表面に設けられた複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルやコインなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a so-called pachi-slot including a plurality of reels provided with a plurality of symbols on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit is provided. Gaming machines are known. The start switch detects that a start lever has been operated by a player (hereinafter, also referred to as a “start operation”) after a game medium such as a medal or a coin has been inserted into the gaming machine, and detects the rotation of all reels. Outputs a signal requesting start. The stop switch detects that a stop button provided for each reel is pressed by a player (hereinafter, also referred to as a "stop operation") and outputs a signal requesting that the rotation of the corresponding reel be stopped. I do. The stepping motor transmits the driving force to a corresponding reel. The control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and the stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せ(表示役)が表示されると、その図柄の組合せに対応する特典が遊技者に付与される。なお、遊技者に付与される特典の例としては、遊技媒体(メダル等)の払い出し、遊技媒体を消費することなく再度、内部抽籤処理を行う再遊技(以下、「リプレイ」ともいう)の作動、遊技媒体の払い出し機会が増加するボーナスゲームの作動等を挙げることができる。   In such a gaming machine, when a start operation is detected, a lottery process using a random number (hereinafter, referred to as “internal lottery process”) is performed on a program, and the result of the lottery (hereinafter, “internal winning combination”) is performed. ) And the timing of the stop operation, the reel rotation is stopped. Then, when the rotation of all reels is stopped and a symbol combination (display combination) related to winning is displayed, a privilege corresponding to the symbol combination is given to the player. In addition, as an example of the privilege given to the player, the payout of the game medium (medal or the like) and the operation of the re-game (hereinafter, also referred to as “replay”) in which the internal lottery process is performed again without consuming the game medium. And the operation of a bonus game in which the chance of paying out game media increases.

また、当該遊技機では、内部当籤役等に基づいて、画像や音声を用いた演出が行われる。   Further, in the gaming machine, effects using images and sounds are performed based on the internal winning combination and the like.

このような遊技機においては、例えば、遊技を制御する主制御部と、演出を制御する副制御部との間で送受信されるデータを暗号化して、遊技機のセキュリティを向上させる技術が知られている。   In such a gaming machine, for example, there is known a technology for improving security of the gaming machine by encrypting data transmitted and received between a main control unit for controlling a game and a sub-control unit for controlling an effect. ing.

例えば、主制御部から副制御部に遊技コマンドを送信する場合に、主制御部が、暗号化キーを用いて遊技コマンドを暗号化したうえで副制御部に送信し、副制御部は、受信した暗号化遊技コマンドを、同じ暗号化キーを用いて復号化し、遊技コマンドを取得するといった構造の遊技機が開示されている(特許文献1参照)。   For example, when transmitting a game command from the main control unit to the sub-control unit, the main control unit encrypts the game command using an encryption key, transmits the encrypted command to the sub-control unit, and transmits There is disclosed a gaming machine having a structure in which an encrypted game command is decrypted using the same encryption key and a game command is obtained (see Patent Document 1).

特開2008−279133号公報JP 2008-279133 A

上述のような遊技機では、主制御部と副制御部の間での通信のみが暗号化されているが、このような遊技機においては、様々な周辺機器が接続されることが多く、セキュリティの観点からは、遊技機とこれらの周辺機器との間で送受信されるデータについても暗号化されていることが望ましい。   In the above-described gaming machine, only communication between the main control unit and the sub-control unit is encrypted, but in such a gaming machine, various peripheral devices are often connected, and security is increased. From the viewpoint of, it is desirable that data transmitted and received between the gaming machine and these peripheral devices is also encrypted.

しかしながら、遊技機と周辺機器との間で上記のような暗号化を行おうとする場合、周辺機器のそれぞれに対して暗号化キーを生成し、設定する必要がある。現在は、多くの遊技機が製造されており、それぞれの遊技機に多くの周辺機器が接続されている場合は、暗号キーを生成し設定すべき周辺機器は膨大な数であり、その生成・設定作業には極めて多くの労力を要する。   However, when attempting to perform the above-described encryption between the gaming machine and the peripheral device, it is necessary to generate and set an encryption key for each of the peripheral devices. At present, many gaming machines are manufactured, and when many peripherals are connected to each gaming machine, there are a huge number of peripherals to generate and set an encryption key. The setting work requires a great deal of labor.

また、周辺機器のそれぞれに暗号化キーを設定した場合、各暗号化キーを安全かつ簡単に生成・設定する方法が必要であり、さらに、各暗号化キーを安全かつ効率的に管理する管理方法も必要とされる。   In addition, when an encryption key is set for each of the peripheral devices, a method for generating and setting each encryption key safely and easily is required. In addition, a management method for securely and efficiently managing each encryption key is required. Is also required.

従って、本発明の目的は、周辺機器に対して、暗号化キーを安全かつ簡単に生成することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Therefore, an object of the present invention is to provide a game system, a game machine, and a game medium identification device that can safely and easily generate an encryption key for a peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを、当該周辺機器に効率的に組み込むことができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can efficiently incorporate an encryption key set in a peripheral device into the peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを、安全かつ効率的に管理することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can safely and efficiently manage an encryption key set in a peripheral device.

さらに、本発明の目的は、周辺機器と双方向通信を行う他の装置との間で、安全な通信経路を確保することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Still another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can secure a secure communication path between another device that performs two-way communication with a peripheral device. is there.

本発明は、以下のような遊技システム、遊技機、及び遊技媒体識別装置を提供する。   The present invention provides a game system, a game machine, and a game medium identification device as described below.

本発明の第1の実施態様に係る発明は、下記の構成を有する。
遊技媒体を識別可能な遊技媒体識別装置(例えば、メダルセレクタ201)と、
前記遊技媒体識別装置と通信により接続された制御部(例えば、パチスロ1の副制御回路101)と、
暗号化キーを生成することが可能な暗号化装置(例えば、メダルセレクタ暗号化キー作成ツールが実行されるコンピュータ400)と、を備えた遊技システムであって、
前記通信は、暗号化された通信データによる双方向通信であり、
前記遊技媒体識別装置は、通信データを暗号化し、暗号化された通信データを復号化するための前記暗号化キーを記憶可能であり(例えば、暗号化キーをフラッシュメモリ244に記憶する)、
前記暗号化装置は、
前記暗号化キーを入力可能なGUI(例えば、図20に示す、メダルセレクタ暗号化キー作成ツールの暗号化キー作成画面501)を備え、
前記GUIを介して入力された前記暗号化キーを所定の記憶形式で記憶媒体に出力する(例えば、XML形式のファイルをコンピュータ400のハードディスク(外部記憶装置413)に出力する)。
The invention according to the first embodiment of the present invention has the following configuration.
A game medium identification device capable of identifying a game medium (for example, a medal selector 201);
A control unit (for example, the sub-control circuit 101 of the pachi-slot 1) connected to the game medium identification device by communication;
An encryption device capable of generating an encryption key (e.g., a computer 400 on which a medal selector encryption key creation tool is executed).
The communication is a two-way communication using encrypted communication data,
The gaming medium identification device is capable of encrypting communication data and storing the encryption key for decrypting the encrypted communication data (for example, storing the encryption key in the flash memory 244);
The encryption device,
A GUI (for example, an encryption key creation screen 501 of a medal selector encryption key creation tool shown in FIG. 20) capable of inputting the encryption key,
The encryption key input via the GUI is output to a storage medium in a predetermined storage format (for example, an XML file is output to a hard disk (external storage device 413) of the computer 400).

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、安全な通信経路を確保することができる。   According to such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the game medium identification device. In addition, the game medium identification device can secure a secure communication path by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.

本発明の第2の実施態様に係る発明は、第1の実施態様において下記の構成を有する。
前記暗号化装置は、
前記所定の記憶形式で前記記憶媒体に出力する前記暗号化キーを、前記暗号化キーとは異なる暗号化キーにより暗号化する(例えば、暗号化された暗号化キーを含む暗号化キーファイルを生成する)ように構成される。
The invention according to the second embodiment of the present invention has the following configuration in the first embodiment.
The encryption device,
Encrypting the encryption key to be output to the storage medium in the predetermined storage format using an encryption key different from the encryption key (for example, generating an encryption key file including the encrypted encryption key); To).

本発明のこのような構成により、遊技媒体識別装置に設定した暗号化キーを、安全かつ効率的に管理することができる。   With such a configuration of the present invention, the encryption key set in the game medium identification device can be managed safely and efficiently.

本発明の第3の実施態様に係る発明は、下記の構成を有する。
遊技媒体を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された前記遊技媒体を識別可能な遊技媒体識別装置(例えば、メダルセレクタ201)と、
暗号化された通信データによる双方向通信により前記遊技媒体識別装置と接続された制御部(例えば、副制御回路101)と、を備える遊技機(例えば、パチスロ1)であって、
前記遊技媒体識別装置は、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記暗号化キーは、
前記暗号化キーを入力可能なGUIを備えた暗号化装置に入力され、
前記暗号化装置によって、所定の記憶形式で記憶媒体に出力される。
The invention according to the third embodiment of the present invention has the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium,
A game medium identification device (for example, a medal selector 201) capable of identifying the game medium inserted from the insertion slot,
A control unit (for example, a sub-control circuit 101) connected to the game medium identification device by bidirectional communication using encrypted communication data,
The game medium identification device,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
The encryption key is
The encryption key is input to an encryption device having a GUI capable of inputting the encryption key,
The data is output to the storage medium in a predetermined storage format by the encryption device.

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、遊技機において安全な通信経路を確保することができる。   According to such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the game medium identification device. In addition, the game medium identification device can secure a secure communication path in the game machine by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.

本発明の第4の実施態様に係る発明は、下記の構成を有する。
遊技媒体を識別可能な遊技媒体識別装置であって、
前記遊技媒体識別装置は、
暗号化された通信データによる双方向通信により、他の装置(例えば、パチスロ1の副制御回路101)と接続され、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記暗号化キーは、
前記暗号化キーを入力可能なGUIを備えた暗号化装置に入力され、
前記暗号化装置によって、所定の記憶形式で記憶媒体に出力される。
The invention according to a fourth embodiment of the present invention has the following configuration.
A game medium identification device capable of identifying a game medium,
The game medium identification device,
The other device (for example, the sub-control circuit 101 of the pachi-slot 1) is connected by two-way communication using the encrypted communication data,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
The encryption key is
The encryption key is input to an encryption device having a GUI capable of inputting the encryption key,
The data is output to the storage medium in a predetermined storage format by the encryption device.

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、安全な通信経路を確保することができる。   According to such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the game medium identification device. In addition, the game medium identification device can secure a secure communication path by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.

本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)に対して、暗号化キーを安全かつ簡単に生成し、当該周辺機器に効率的に組み込むことができる。   A gaming system, a gaming machine, and a game medium identification device according to the present invention can safely and easily generate an encryption key for a peripheral device (game medium identification device) and efficiently incorporate the encryption key into the peripheral device. it can.

また、本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)に設定した暗号化キーを、安全かつ効率的に管理することができる。   Further, the gaming system, the gaming machine, and the game medium identification device according to the present invention can securely and efficiently manage the encryption key set in the peripheral device (game medium identification device).

またさらに、本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)と双方向通信を行う他の装置(制御部)との間で、暗号化キーによって暗号化された安全な通信経路を確保することができる。   Still further, the game system, the game machine, and the game medium identification device according to the present invention use an encryption key between the peripheral device (game medium identification device) and another device (control unit) that performs two-way communication. An encrypted secure communication path can be secured.

本発明の一実施形態の遊技機における機能フローを説明する説明図である。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. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを閉じた状態の斜視図である。1 is a perspective view showing an internal structure of a gaming machine according to an embodiment of the present invention, with a middle door closed. 本発明の一実施形態の遊技機における内部構造を示すものであり、ミドルドアを開けた状態の斜視図である。1 is a perspective view showing an internal structure of a gaming machine according to an embodiment of the present invention, with a middle door opened. 本発明の一実施形態の遊技機におけるキャビネットの内部を示す説明図である。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 gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタを遊技機の斜め後方から見た斜視図である。FIG. 2 is a perspective view of a medal selector in the gaming machine according to one embodiment of the present invention as viewed obliquely from behind the gaming machine. 本発明の一実施形態の遊技機におけるメダルセレクタの分解図である。FIG. 2 is an exploded view of a medal selector in the gaming machine according to one embodiment of the present invention. 本発明の一実施形態の遊技機におけるメダルセレクタを遊技機の斜め前方から見た斜視図である。FIG. 2 is a perspective view of a medal selector in the gaming machine according to one embodiment of the present invention as viewed obliquely from the front of the gaming machine. 本発明の一実施形態の遊技機における制御系を示すブロック図である。It is a block diagram showing a control system in the 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. 本発明の一実施形態の遊技機におけるメダルセレクタの回路構成例を示すブロック図である。It is a block diagram showing an example of a circuit configuration of a medal selector in the gaming machine of one embodiment of the present invention. 本発明の一実施形態の遊技機における制御LSIの回路構成例を示すブロック図である。It is a block diagram showing an example of a circuit configuration of a control LSI in the gaming machine of one embodiment of the present invention. 本発明の一実施形態における24hドア監視ユニットの構成例を示すブロック図である。It is a block diagram showing the example of composition of the 24h door monitoring unit in one embodiment of the present invention. 本発明の一実施形態における暗号化キー作成、初期化、及び設定読出の各機能の概要を説明するための図である。FIG. 4 is a diagram for describing an outline of each function of creating an encryption key, initializing, and reading settings in an embodiment of the present invention. 本発明の一実施形態における暗号化キー作成、及び初期化の各機能の概要を説明するための図である。FIG. 3 is a diagram for explaining an outline of each function of creating and initializing an encryption key according to an embodiment of the present invention. 本発明の一実施形態における設定読出の機能の概要を説明するための図である。FIG. 3 is a diagram for explaining an outline of a setting reading function according to an embodiment of the present invention. 本発明の一実施形態における外部コンピュータのハードウェア構成を例示するブロック図である。FIG. 2 is a block diagram illustrating a hardware configuration of an external computer according to an embodiment of the present invention. 本発明の一実施形態におけるメダルセレクタ暗号化キー作成ツールにより表示される暗号化キー作成画面の例を示す図である。It is a figure showing the example of the encryption key creation screen displayed by the medal selector encryption key creation tool in one embodiment of the present invention. 本発明の一実施形態におけるメダルセレクタ暗号化キー作成ツールにより表示される暗号化キー作成画面の例を示す図である。It is a figure showing the example of the encryption key creation screen displayed by the medal selector encryption key creation tool in one embodiment of the present invention. 本発明の一実施形態におけるメダルセレクタ初期化ツールにより表示される初期化指示画面の例を示す図である。It is a figure showing the example of the initialization instruction screen displayed by the medal selector initialization tool in one embodiment of the present invention. 本発明の一実施形態におけるメダルセレクタに係るコマンドの例を示す図である。It is a figure showing an example of a command concerning a medal selector in one embodiment of the present invention. 本発明の一実施形態におけるメダルセレクタと外部コンピュータの間のコマンド送受信シーケンスの例を示す図である。It is a figure showing an example of a command transmission / reception sequence between a medal selector and an external computer in one embodiment of the present invention. 本発明の一実施形態における外部コンピュータで実行されるメダルセレクタ暗号化キー作成ツールの暗号化処理の例を示すフローチャートである。It is a flow chart which shows an example of encryption processing of a medal selector encryption key creation tool performed by an external computer in one embodiment of the present invention. 本発明の一実施形態における外部コンピュータで実行されるメダルセレクタ初期化ツールの初期化処理の例を示すフローチャートである。It is a flow chart which shows an example of initialization processing of a medal selector initialization tool performed by an external computer in one embodiment of the present invention. 本発明の一実施形態におけるメダルセレクタにおいて実行される処理の例を示すフローチャートである。It is a flowchart which shows the example of the process performed in the medal selector in one Embodiment of this invention. 本発明の一実施形態におけるメダルセレクタと副制御回路の間のコマンド送受信シーケンスの例を示す図である。It is a figure showing an example of a command transmission and reception sequence between a medal selector and a sub control circuit in one embodiment of the present invention. 本発明の一実施形態における副制御回路の電源投入処理の例を示すフローチャートである。6 is a flowchart illustrating an example of power-on processing of a sub-control circuit according to an embodiment of the present invention. 本発明の一実施形態における副制御回路のメダルセレクタ通信タスクの例を示すフローチャートである。It is a flow chart which shows an example of a medal selector communication task of a sub control circuit in one embodiment of the present invention. 本発明の一実施形態における副制御回路のメダルセレクタコマンド受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the medal selector command reception processing of the sub control circuit in one Embodiment of this invention. 本発明の一実施形態における副制御回路のメダルセレクタエラーコマンド受信時処理の例を示すフローチャートである。It is a flow chart which shows an example of processing at the time of a medal selector error command reception of a sub control circuit in one embodiment of the present invention. 本発明の一実施形態における副制御回路のメダルセレクタコマンド送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the medal selector command transmission processing of the sub control circuit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニット暗号化キー作成ツールにより表示される暗号化キー作成画面の例を示す図である。It is a figure showing the example of the encryption key creation screen displayed by the door monitoring unit encryption key creation tool in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニット暗号化キー作成ツールにより表示される暗号化キー作成画面の例を示す図である。It is a figure showing the example of the encryption key creation screen displayed by the door monitoring unit encryption key creation tool in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニット初期化ツールにより表示される初期化指示画面の例を示す図である。It is a figure showing the example of the initialization instruction screen displayed by the door monitoring unit initialization tool in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニット設定読出ツールにより表示される設定表示画面の例を示す図である。It is a figure showing the example of the setting display screen displayed by the door monitoring unit setting reading tool in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニット設定読出ツールにより表示される設定表示画面の例を示す図である。It is a figure showing the example of the setting display screen displayed by the door monitoring unit setting reading tool in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットのEEPROMのメモリーマップの例を示す図である。It is a figure showing an example of a memory map of EEPROM of a door monitoring unit in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットのRAMのメモリーマップの例を示す図である。It is a figure showing the example of the memory map of RAM of the door monitoring unit in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットとホスト機器との間の通信で用いられる特権コマンド説明するための図である。FIG. 5 is a diagram for describing a privilege command used in communication between the door monitoring unit and a host device according to the embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットとホスト機器との間の通信で用いられる一般コマンド説明するための図である。FIG. 4 is a diagram for describing general commands used in communication between a door monitoring unit and a host device according to an embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットとホスト機器との間の通信フォーマットの例を示す図である。FIG. 4 is a diagram illustrating an example of a communication format between a door monitoring unit and a host device according to an embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットと外部コンピュータの間のコマンド送受信シーケンスの例を示す図である。FIG. 6 is a diagram illustrating an example of a command transmission / reception sequence between a door monitoring unit and an external computer according to an embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットと外部コンピュータの間のコマンド送受信シーケンスの例を示す図である。FIG. 6 is a diagram illustrating an example of a command transmission / reception sequence between a door monitoring unit and an external computer according to an embodiment of the present invention. 本発明の一実施形態における外部コンピュータで実行されるドア監視ユニット暗号化キー作成ツールの暗号化処理の例を示すフローチャートである。It is a flow chart which shows an example of encryption processing of a door monitoring unit encryption key creation tool performed by an external computer in one embodiment of the present invention. 本発明の一実施形態における外部コンピュータで実行されるドア監視ユニット初期化ツールの初期化処理の例を示すフローチャートである。It is a flow chart which shows an example of initialization processing of a door monitoring unit initialization tool performed by an external computer in one embodiment of the present invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行されるメイン処理の例を示すフローチャートである。It is a flowchart which shows the example of the main process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行されるドア監視処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行されるドア監視状態検知処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring state detection process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行されるドア監視記録判定処理の例を示すフローチャートである。It is a flowchart which shows the example of the door monitoring record determination process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行される受信割込み処理の例を示すフローチャートである。It is a flowchart which shows the example of the reception interruption process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行される受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the reception process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行される特権コマンド受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the privilege command reception process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行される一般コマンド受信処理の例を示すフローチャートである。It is a flowchart which shows the example of the general command receiving process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行される送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the transmission process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行される特権アンサ送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the privilege answer transmission process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットにおいて実行される一般アンサ送信処理の例を示すフローチャートである。It is a flowchart which shows the example of the general answer transmission process performed in the door monitoring unit in one Embodiment of this invention. 本発明の一実施形態におけるドア監視ユニットと副制御回路の間のコマンド送受信シーケンスの例を示す図である。FIG. 4 is a diagram illustrating an example of a command transmission / reception sequence between a door monitoring unit and a sub control circuit according to an embodiment of the present invention. 本発明の一実施形態における外部コンピュータで実行されるドア監視ユニット設定読出ツールの設定読出処理の例を示すフローチャートである。It is a flowchart which shows the example of the setting reading process of the door monitoring unit setting reading tool performed by the external computer in one Embodiment of this invention.

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

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

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

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

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

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

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

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

また、パチスロでは、前述した一連の流れの中で、液晶表示装置などの表示装置により行う映像の表示、各種ランプにより行う光の出力、スピーカにより行う音の出力、或いはこれらの組合せを利用して様々な演出が行われる。   Further, 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, an effect random number value (hereinafter, effect random number value) is extracted separately from the random number value used for determining the internal winning combination described above. When the effect random number value is extracted, the effect content determination means randomly determines the effect to be executed this time from among a plurality of types of effect contents associated with the internal winning combination. This effect content determination means is carried by a sub-control circuit described later.

演出内容が決定されると、演出実行手段は、リールの回転開始時、各リールの回転停止時、入賞の有無の判定時等の各契機に連動させて対応する演出を実行する。このように、パチスロでは、内部当籤役に対応づけられた演出内容を実行することによって、決定された内部当籤役(言い換えると、狙うべき図柄の組合せ)を知る機会又は予想する機会が遊技者に提供され、遊技者の興味の向上を図ることができる。   When the content of the effect is determined, the effect executing means executes the effect corresponding to each opportunity such as when the rotation of the reels is started, when the rotation of each reel is stopped, and when the winning is determined. In this way, in the pachislot, by executing the effect contents associated with the internal winning combination, the player has an opportunity to know or predict the determined internal winning combination (in other words, a combination of symbols to be aimed). Provided to improve the interest of the player.

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

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

図2に示すように、パチスロ1は、外装体2を備えている。外装体2は、後述するホッパー装置51やメダル補助収納庫52等(図5参照)を収容するキャビネット2aと、キャビネット2aに対して開閉可能に取り付けられるフロントドア2bとを有している。キャビネット2aの両側面には、把手7が設けられている(図2では一側面の把手7のみを示す)。この把手7は、パチスロ1を運搬するときに手をかける凹部である。   As shown in FIG. 2, the pachislot 1 includes an exterior body 2. The exterior body 2 has a cabinet 2a for accommodating a hopper device 51, a medal auxiliary storage 52, and the like (see FIG. 5), which will be described later, and a front door 2b that is openably and closably attached to the cabinet 2a. Handles 7 are provided on both side surfaces of the cabinet 2a (only one side handle 7 is shown in FIG. 2). The handle 7 is a concave portion to which a hand is put 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 respective reels 3L, 3C, 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 light-transmitting sheet material mounted on the peripheral surface of the reel body. On the surface of the sheet material, a plurality (for example, 20) of symbols 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 as a specific example of a 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 an 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 pachislot 1. The liquid crystal display device 11 is mounted on an upper part of the door body 9. The liquid crystal display device 11 includes a display unit (display screen) 11a, and an effect by displaying an image is performed using the liquid crystal display device 11.

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

フロントドア2bの中央には、台座部12が形成されている。この台座部12には、図柄表示領域4と、遊技者による操作の対象となる各種装置が設けられている。   A pedestal portion 12 is formed at the center of the front door 2b. The pedestal section 12 is provided with the 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 near 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 functions as a display window, and is configured to be able to transmit through the reels 3L, 3C, 3R provided behind the symbol display area. 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 the rotation of the reels 3L, 3C, 3R provided behind the reel display window 4 is stopped, the upper, middle, and lower rows of the plurality of types of symbols on the reels 3L, 3C, 3R are within the frame. One symbol (a total of three symbols) is displayed in each area. In the present embodiment, a pseudo line formed by combining any one of predetermined three of the upper, middle, and lower regions of the reel display window 4 is a target for determining whether or not a winning is achieved. (A prize determination line).

リール表示窓4は、台座部12に設けられた枠部材13により形成されている。この枠部材13は、リール表示窓4と、情報表示窓14と、ストップボタン取付部15を有している。   The reel display window 4 is formed by a frame member 13 provided on the base 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 below 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 side of the frame member 13 and cannot be removed from the front side of the front door 2b. Further, the frame member 13 has a sheet placing portion 17 facing the opening of the information display window 14 with the window cover 16 interposed therebetween. A sheet member (information sheet) on which information about a game is described is arranged between the sheet placing portion 17 and the window cover 16. Therefore, the information sheet is covered with the window cover 16 having a smooth surface without irregularities or gaps.

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

ストップボタン取付部15は、情報表示窓14の下方に設けられており、正面を向いた平面に形成されている。このストップボタン取付部15には、ストップボタン19L,19C,19Rが貫通する貫通孔が設けられている。ストップボタン19L,19C,19Rは、3つのリール3L,3C,3Rのそれぞれに対応づけられ、対応するリールの回転を停止するために設けられる。以下、ストップボタン19L,19C,19Rを、それぞれ左ストップボタン19L、中ストップボタン19C、右ストップボタン19Rという。   The stop button mounting 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、セレクトボタン28、エンターボタン29が設けられている。   The stop buttons 19L, 19C, and 19R show examples of various devices to be operated by the player. The pedestal unit 12 is provided with a medal slot 21, a BET button 22, a start lever 23, a select button 28, and an enter button 29 as various devices to be operated by the player.

メダル投入口21は、遊技者によって外部から投下されるメダルを受け入れるために設けられる。メダル投入口21に受け入れられたメダルは、予め定められた規定数(例えば、3枚)を上限として1回の遊技に投入されることとなり、規定数を超えた分はパチスロ1の内部に預けることが可能となる(いわゆるクレジット機能)。   The medal insertion slot 21 is provided for receiving a medal dropped from outside by a player. The medals accepted by the medal insertion slot 21 are inserted into one game with a predetermined maximum number (for example, 3) as an upper limit, and the excess of the predetermined number is deposited in 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 deposited in the pachislot 1 to be inserted into one game. The start lever 23 is provided for starting rotation of all reels (3L, 3C, 3R).

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

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

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

[内部構造]
図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 pachislot 1. FIG. FIG. 3 shows a state in which 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. FIG. 4 shows a state where the front door 2b is opened and the middle door 41 is opened with respect to the front door 2b. FIG. 5 is an explanatory diagram showing the inside of the cabinet 2a. FIG. 6 is an explanatory diagram 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). A cabinet-side speaker 42 is provided above the inside of the cabinet 2a. The cabinet-side speaker 42 is mounted on the back plate 20e of the cabinet 2a via mounting brackets 43L and 43R. The cabinet-side speaker 42 is, for example, a speaker for outputting a sound effect.

キャビネット2a内部を正面から見て、キャビネット側スピーカ42の左側方には、キャビネット側中継基板44が配設されている。このキャビネット側中継基板44は、キャビネット2aの左側面板20cに取り付けられている。キャビネット側中継基板44は、ミドルドア41(図3及び図4参照)に取り付けられた後述する主制御基板71(図10参照)と、ホッパー装置51、メダル補助収納庫スイッチ(不図示)、メダル払出カウントスイッチ(不図示)とを接続する配線の中継を行う。   A cabinet-side relay board 44 is provided 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. 10) 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 a medal payout. It relays wiring for connecting to a count switch (not shown).

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

また、キャビネット2a内部を正面から見て、アンプ基板45の右側には、外部集中端子板47が配設されている(図5参照)。この外部集中端子板47は、キャビネット2aの右側面板20dに取り付けられている。外部集中端子板47は、メダル投入信号、メダル払出信号及びセキュリティー信号などの信号をパチスロ1の外部へ出力するために設けられている。   When the inside of the cabinet 2a is viewed from the front, an external centralized terminal board 47 is provided on the right side of the amplifier board 45 (see FIG. 5). This external concentrated terminal plate 47 is attached to the right side plate 20d of the cabinet 2a. The external concentrated terminal board 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 pachislot 1.

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

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

ホッパー装置51(貯留手段)は、キャビネット2aにおける底面板20bの中央部に取り付けられている。このホッパー装置51は、多量のメダルを収容可能であり、それらを1枚ずつ排出可能な構造を有する。ホッパー装置51は、例えば、精算ボタン27(図2参照)が押圧されてパチスロ内部に預けられているメダルの精算を行うときに、収容したメダルをクレジット枚数分排出する。ホッパー装置51によって払い出されたメダルは、メダル払出口32(図2参照)から排出される。   The hopper device 51 (storage means) is attached to the center of the bottom plate 20b in the cabinet 2a. The hopper device 51 is capable of storing a large amount of medals, and has a structure capable of discharging the medals one by one. The hopper device 51 discharges the stored medals by the number of credits, for example, when the payment button 27 (see FIG. 2) is pressed to perform the payment of the medals deposited inside the pachislot. The medals paid out by the hopper device 51 are discharged from a medal payout opening 32 (see FIG. 2).

メダル補助収納庫52は、ホッパー装置51から溢れ出たメダルを収納する。このメダル補助収納庫52は、キャビネット2a内部を正面から見て、ホッパー装置51の右側に配置されている。メダル補助収納庫52は、キャビネット2aの底面板20bに係合されており、底面板20bに対して着脱可能に構成されている。   The medal auxiliary storage 52 stores 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 detachable from the bottom plate 20b.

電源装置53は、キャビネット2a内部を正面から見て、ホッパー装置51の左側に配置されており、左側面板20cに取り付けられている。この電源装置53は、電源スイッチ53aと、電源基板53bを有している(図14参照)。電源装置53は、サブ電源装置48から供給された交流電圧100Vの電力を各部で必要な直流電圧の電力に変換して、変換した電力を各部へ供給する。   The power supply device 53 is arranged 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 has a power switch 53a and a power supply board 53b (see FIG. 14). The power supply device 53 converts the power of the AC voltage 100V supplied from the sub power supply device 48 into the power of the DC voltage required in each unit, and supplies the converted power to each unit.

図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 arranged at the center on the back surface 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 side. Door stoppers 41a, 41b, 41c are provided on the upper and lower portions of the middle door 41. The door stoppers 41a, 41b, 41c fix (prohibit) the opening operation of the middle door 41 with the reel display window 4 closed from the back side. That is, in order to open the middle door 41, it is necessary to release the fixing of the middle door 41 by rotating the door stoppers 41a, 41b, 41c.

ミドルドア41には、主制御基板71(図10参照)を収納した主制御基板ケース55と、3つのリール3L,3C,3Rが取り付けられている。3つのリール3L,3C,3Rには、所定の減速比をもったギアを介してステッピングモータが接続されている。   A main control board case 55 containing a main control board 71 (see FIG. 10) and three reels 3L, 3C, 3R are attached to the middle door 41. A stepping motor is connected to the three reels 3L, 3C, 3R via gears having a predetermined 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 key switch 56 for setting. The setting key type switch 56 is used when changing the setting of the pachislot 1 or confirming the setting of the pachislot 1. In the present embodiment, a main control board unit is constituted by the main control board case 55 and the main control board 71 housed in the main control board case 55.

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

ミドルドア41の上方には、副制御基板72(図10参照)を収容する副制御基板ケース57が配設されおり、副制御基板ケース57の上方には、センタースピーカ58が配設されている。副制御基板ケース57に収納された副制御基板72は、副制御回路101(図12参照)を構成する。この副制御回路101(第2制御部)は、映像の表示等による演出の実行を制御する回路である。副制御回路101の具体的な構成は後述する。   Above the middle door 41, a sub-control board case 57 that accommodates the sub-control board 72 (see FIG. 10) is provided. Above the sub-control board case 57, a center speaker 58 is provided. The sub-control board 72 accommodated in the sub-control board case 57 constitutes the sub-control circuit 101 (see FIG. 12). The sub control circuit 101 (second control unit) is a circuit that controls execution of effects such as display of images. 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が挙げられる。   A sub relay board 61 is disposed on the right side of the sub control board case 57 when the front door 2b is viewed from the back side. The sub-relay board 61 relays wiring connecting the sub-control board 72 and the main control board 71. Further, it is a board that relays wiring for connecting the sub-control board 72 and a board disposed around the sub-control board 72. In addition, examples of the board disposed around the sub-control board 72 include LED boards 62A, 62B, and 62C described later.

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

副中継基板61の下方には、24hドア監視ユニット63が配設されている。この24hドア監視ユニット63は、フロントドア2bの開閉の履歴を保存する。また、フロントドア2bを開放したときに、液晶表示装置11にエラー表示を行うための信号を副制御基板72(副制御回路101)に出力する。   Below the sub relay board 61, a 24h door monitoring unit 63 is provided. The 24h door monitoring unit 63 stores a history of opening and closing of the front door 2b. Further, when the front door 2b is opened, a signal for displaying an error 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 provided. 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), respectively.

下部スピーカ65Lの上方には、メダルセレクタ201と、メダルシュート202と、ドア開閉監視スイッチ67と、が配設されている。メダルセレクタ201は、メダルの材質や形状等が適正であるか否かを判別する装置であり、メダル投入口21に投入されたメダルを、スロープ203を介してホッパー装置51へ案内し、又はメダルシュート202へ案内する。メダルセレクタ201の具体的な構成については後述する。   Above the lower speaker 65L, a medal selector 201, a medal chute 202, and a door open / close monitoring switch 67 are provided. The medal selector 201 is a device that determines whether or not the material and shape of the medal are appropriate, and guides the medal inserted into the medal insertion slot 21 to the hopper device 51 via the slope 203, or Guide to shoot 202. The specific configuration of the medal selector 201 will be described later.

メダルシュート202は、略Y字状の筒状の部材であり、メダルセレクタ201によって案内されたメダルやホッパー装置51から排出されたメダルをメダル払出口32(図2参照)に案内する。   The medal shoot 202 is a substantially Y-shaped tubular member, and guides the medal guided by the medal selector 201 and the medal discharged from the hopper device 51 to the medal payout opening 32 (see FIG. 2).

ドア開閉監視スイッチ67は、フロントドア2bを裏面側から見て、メダルセレクタ201の左側方に配置されている。このドア開閉監視スイッチ67は、フロントドア2bの開閉を検知して24hドア監視ユニット63に開閉に関する情報を送信する。   The door opening / closing monitoring switch 67 is disposed on the left side of the medal selector 201 when the front door 2b is viewed from the back side. The door opening / closing monitoring switch 67 detects opening / closing of the front door 2b and transmits information on opening / closing to the 24h door monitoring unit 63.

また、図6には示さないが、ドア開閉スイッチ69が設けられ、このドア開閉スイッチ69は、パチスロ1の外部へ、フロントドア2bの開閉を報知するためのセキュリティー信号を出力する。   Although not shown in FIG. 6, a door opening / closing switch 69 is provided, and this door opening / closing switch 69 outputs a security signal for notifying the opening / closing of the front door 2b to the outside of the pachislot 1.

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

<メダルセレクタの構成>
次に、図7〜図9、図13を参照して、メダルセレクタ201の具体的な構成について説明する。図7は、メダルセレクタ201をパチスロ1の斜め後方から見た斜視図であり、メダルセレクタ201に固定されるカバー部材240を外した態様を示している。図8は、メダルセレクタ201の分解図である。図9は、メダルセレクタ201をパチスロ1の斜め前方から見た斜視図である。
<Configuration of medal selector>
Next, a specific configuration of the medal selector 201 will be described with reference to FIGS. 7 to 9 and FIG. FIG. 7 is a perspective view of the medal selector 201 as viewed obliquely from the back of the pachislot 1 and shows a state in which a cover member 240 fixed to the medal selector 201 is removed. FIG. 8 is an exploded view of the medal selector 201. FIG. 9 is a perspective view of the medal selector 201 as viewed obliquely from the front of the pachislot 1. FIG.

図7〜図9に示すように、メダルセレクタ201は、ベース板部204と、サブプレート205と、キャンセルシュータ206と、セレクトプレート207(ガイド手段)と、メダルソレノイド208(駆動手段、図9参照)、カメラユニット209(撮像手段、又は、通過物体検出手段)と、を備えている。また、図7に示すように、メダルセレクタ201には、メダルセレクタ201のパチスロ1の前後方向の後側を覆うカバー部材240が固定されている。図7では、メダルセレクタ201から取り外したカバー部材240を破線で示している。カバー部材240は、メダルセレクタ201におけるパチスロ1の前後方向の後側を覆う閉鎖状態と、同後側を露出する開放状態に設定可能である。   As shown in FIGS. 7 to 9, the medal selector 201 includes a base plate 204, a sub plate 205, a cancel shooter 206, a select plate 207 (guide means), and a medal solenoid 208 (drive means, see FIG. 9). ), And a camera unit 209 (imaging means or passing object detecting means). As shown in FIG. 7, a cover member 240 that covers the rear side of the medal selector 201 in the front-rear direction of the pachislot 1 is fixed to the medal selector 201. In FIG. 7, the cover member 240 removed from the medal selector 201 is indicated by a broken line. The cover member 240 can be set to a closed state that covers the rear side of the pachislot 1 in the front-rear direction of the medal selector 201, and an open state that exposes the rear side.

ベース板部204は、メダルセレクタ201の外枠筐体を構成する略板状の部材であり、パチスロ1の左右方向の両端部がパチスロ1の後方に折曲するように成型されている。ベース板部204は、パチスロ1の前後方向に直交する一方の平面である後面204bと他方の平面である前面204a(図9参照)を有している。後面204bには、メダルレール210(通路形成部)が、パチスロ1の前方へ凹むように、且つ、略L字状に形成されている。メダルレール210の表面には、複数の突条部210aが形成されている。   The base plate portion 204 is a substantially plate-shaped member that forms the outer frame housing of the medal selector 201, and is formed so that both left and right ends of the pachislot 1 are bent rearward of the pachislot 1. The base plate portion 204 has a rear surface 204b, which is one plane orthogonal to the front-rear direction of the pachislot 1, and a front surface 204a, which is the other plane (see FIG. 9). A medal rail 210 (passage forming portion) is formed on the rear surface 204b so as to be recessed in front of the pachislot 1 and in a substantially L-shape. A plurality of ridges 210a are formed on the surface of the medal rail 210.

ベース板部204の上端部には、メダル投入口21(図2参照)から投入されるメダルを受け入れるメダル入口部211が設けられている。メダル入口部211からメダルセレクタ201内に投入されたメダルは、メダルレール210に沿って上方から下方へ移動する。ベース板部204の下部には、メダル出口部204c(図8参照)が設けられている。メダルセレクタ201内を移動したメダルは、メダル出口部204cから排出され、スロープ203(図4参照)を介してホッパー装置51に収容される。   At the upper end of the base plate 204, a medal entrance 211 for receiving medals inserted from the medal insertion slot 21 (see FIG. 2) is provided. The medals inserted into the medal selector 201 from the medal entrance section 211 move from above to below along the medal rail 210. A medal exit portion 204c (see FIG. 8) is provided below the base plate portion 204. The medals that have moved inside the medal selector 201 are discharged from the medal exit section 204c, and are stored in the hopper device 51 via the slope 203 (see FIG. 4).

メダルレール210の略中間位置には前後方向に貫通する中央孔212が形成されており、この中央孔212からはメダルプレッシャ213(図8参照)の端部が露出している。図9に示すように、メダルプレッシャ213は、ベース板部204の前面204aに設けられた軸部214に回動可能に支持されている。この軸部214には、コイルばね215が取り付けられており、メダルプレッシャ213は、コイルばね215により、メダルプレッシャ213が中央孔212から突出するように付勢されている。   A central hole 212 penetrating in the front-rear direction is formed at a substantially intermediate position of the medal rail 210, and an end of the medal pressure 213 (see FIG. 8) is exposed from the central hole 212. As shown in FIG. 9, the medal pressure 213 is rotatably supported by a shaft 214 provided on the front surface 204a of the base plate portion 204. A coil spring 215 is attached to the shaft 214, and the medal pressure 213 is urged by the coil spring 215 so that the medal pressure 213 protrudes from the central hole 212.

図9に示すように、ベース板部204の前面204aには、磁石217が設けられている。磁石217は、メダルレール210上を移動するメダルの内、適正な材質でない不正メダルを吸着(着磁)する。   As shown in FIG. 9, a magnet 217 is provided on the front surface 204a of the base plate portion 204. The magnet 217 attracts (magnetizes) an improper medal which is not a proper material among medals moving on the medal rail 210.

また、図8に示すように、メダルレール210の下流領域の略中央部には、前後方向に貫通し、後述するアフタメダルプレッシャ218の後端部が露出する上露出孔219が形成されている。また、メダルレール210の下流領域の下部には、前後方向に貫通し、セレクトプレート207の後述するメダルストッパ部227が露出する下露出孔220が形成されている。   As shown in FIG. 8, an upper exposure hole 219 that penetrates in the front-rear direction and that exposes a rear end portion of an after-medal pressure 218 described later is formed at a substantially central portion of a downstream region of the medal rail 210. . A lower exposure hole 220 that penetrates in the front-rear direction and that exposes a medal stopper 227 of the select plate 207, which will be described later, is formed below the downstream area of the medal rail 210.

また、メダルレール210には、ここでは図示しないが、6つの基準マーカー260が形成されている。基準マーカー260は、カメラユニット209が撮像するメダルレール210上の領域である撮像領域A1内に配置されている。   Although not shown here, six reference markers 260 are formed on the medal rail 210. The reference marker 260 is arranged in an imaging area A1 that is an area on the medal rail 210 where the camera unit 209 images.

基準マーカー260は、上部基準マーカー261と、下部基準マーカー262とからなり、上部基準マーカー261は、メダルレール210の上部で、傾斜しながら、左右方向に3つ並ぶように配置されている。また、下部基準マーカー262は、メダルレール210の下部で、傾斜しながら左右方向に3つ並ぶように配置されている。   The reference marker 260 is composed of an upper reference marker 261 and a lower reference marker 262. The upper reference marker 261 is arranged above the medal rail 210 so as to be arranged side by side in the left and right direction while being inclined. Further, three lower reference markers 262 are arranged below the medal rail 210 so as to be aligned in the left-right direction while being inclined.

基準マーカー260は、カメラユニット209が撮像した撮像領域の画像データにおいて、基準マーカー260が形成されている箇所の画素に係る輝度と、基準マーカー260が形成されていない箇所の画素に係る輝度と、が所定値以上異なるように、形成されている。本実施形態では、各基準マーカー260は、メダルレール210に三角形の孔を空けることで形成されている。なお、基準マーカー260の形成態様はこれに限らず、孔の形状は適宜選択可能である。また、例えば、基準マーカー260を、メダルレール210上に、メダルレール210の地の色とは、異なる色の図形を印刷することで、形成してもよい。   The reference marker 260 includes, in the image data of the imaging region captured by the camera unit 209, the luminance of the pixel at the position where the reference marker 260 is formed, and the luminance of the pixel at the position where the reference marker 260 is not formed. Are different from each other by a predetermined value or more. In the present embodiment, each reference marker 260 is formed by making a triangular hole in the medal rail 210. The form of the reference marker 260 is not limited to this, and the shape of the hole can be appropriately selected. Further, for example, the reference marker 260 may be formed on the medal rail 210 by printing a figure having a color different from the ground color of the medal rail 210.

図9に示すように、メダルソレノイド208は、ソレノイド本体部208aと、板状に形成され、一端部及び他端部が前後方向に移動可能にソレノイド本体部208aに支持されている可動板部208bを備えている。アフタメダルプレッシャ218は、ベース板部204の前面204aに回動可能に軸支されている。アフタメダルプレッシャ218の前端部がメダルソレノイド208の可動板部208bによってパチスロ1の後方へ押圧されると、アフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219(図8参照)から露出する。   As shown in FIG. 9, the medal solenoid 208 is formed in a plate shape with a solenoid body 208a, and a movable plate 208b having one end and the other end supported by the solenoid body 208a so as to be movable in the front-rear direction. It has. The after-medal pressure 218 is rotatably supported on the front surface 204 a of the base plate portion 204. When the front end of the after-medal pressure 218 is pressed to the rear of the pachislot 1 by the movable plate portion 208b of the medal solenoid 208, the after-medal pressure 218 rotates, and the rear end of the after-medal pressure 218 is exposed at the upper exposure hole 219 ( (See FIG. 8).

図7及び図8に示すように、キャンセルシュータ206は、略板状の部材であり、パチスロ1の左右方向の両端部がパチスロ1の前方に折曲するように成型されている。キャンセルシュータ206は、ベース板部204に着脱可能に固定され、ベース板部204の下部を後方から覆っている。キャンセルシュータ206は、メダル出口部204cを介することなく排出されるメダルをメダルシュート202(図4参照)に案内する。キャンセルシュータ206の左右方向の略中央部の上部には、下方に略矩形状に切り欠いた切欠き部206aが形成されている。   As shown in FIGS. 7 and 8, the cancel shooter 206 is a substantially plate-shaped member, and is formed so that both left and right ends of the pachislot 1 are bent forward of the pachislot 1. The cancel shooter 206 is detachably fixed to the base plate portion 204 and covers a lower portion of the base plate portion 204 from behind. The cancel shooter 206 guides medals discharged without passing through the medal exit section 204c to the medal shoot 202 (see FIG. 4). A cutout portion 206a, which is cut out in a substantially rectangular shape below, is formed at an upper portion of a substantially central portion of the cancel shooter 206 in the left-right direction.

また、キャンセルシュータ206には、報知用LED206cが設けられている。報知用LED206cは、AE補正処理においてエラーが発生した旨を点灯して報知する報知手段を構成する。また、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fが設けられている。初期化スイッチ206dは、各種テンプレートの削除を含む各種設定をリセットする際に操作される。色スイッチ206eは、色判定の有効、無効を切り換える際に操作される。刻印スイッチ206fは、刻印判定の有効、無効を切り換える際に操作される。   The cancel shooter 206 is provided with a notification LED 206c. The notification LED 206c constitutes notification means for lighting and reporting that an error has occurred in the AE correction process. Further, an initialization switch 206d, a color switch 206e, and an engraving switch 206f are provided. The initialization switch 206d is operated when resetting various settings including deletion of various templates. The color switch 206e is operated to switch between valid and invalid color determination. The marking switch 206f is operated when switching between valid and invalid of the marking determination.

図7及び図8に示すように、サブプレート205は、メダルレール210を後方から覆う板状の部材である。サブプレート205は、平板状の本体部221と、この本体部221の上部に設けた軸部222と、を有している。本体部221の略中央部には、前後方向に貫通する貫通孔221aが設けられており、貫通孔221aからはメダルレール210の略中央部から下流領域が露出している。   As shown in FIGS. 7 and 8, the sub plate 205 is a plate-shaped member that covers the medal rail 210 from behind. The sub-plate 205 has a flat plate-shaped main body 221 and a shaft 222 provided above the main body 221. At a substantially central portion of the main body 221, a through hole 221 a penetrating in the front-rear direction is provided, and a downstream region is exposed from the substantially central portion of the medal rail 210 from the through hole 221 a.

軸部222は、ベース板部204に支持されており、サブプレート205は、軸部222を中心に回動可能にベース板部204に取り付けられている。軸部222には、にはコイルばね223が取り付けられている。通常時、サブプレート205は、コイルばね223の付勢力により、ベース板部204側に押し付けられている。このとき、サブプレート205と、サブプレート205に覆われたメダルレール210の上部との間には、メダルが通過可能な空間が形成されている。すなわち、サブプレート205は、メダルを通過させるガイド板として機能する。   The shaft portion 222 is supported by the base plate portion 204, and the sub-plate 205 is attached to the base plate portion 204 so as to be rotatable about the shaft portion 222. A coil spring 223 is attached to the shaft 222. Normally, the sub-plate 205 is pressed against the base plate 204 by the urging force of the coil spring 223. At this time, a space through which medals can pass is formed between the sub-plate 205 and the upper part of the medal rail 210 covered by the sub-plate 205. That is, the sub plate 205 functions as a guide plate through which medals pass.

ここで、例えば、メダルセレクタ201内にメダル詰まりが生じた場合、サブプレート205をコイルばね223の付勢力に抗して回動させて、メダル詰まりを解消することができる。   Here, for example, when a medal jam occurs in the medal selector 201, the medal jam can be resolved by rotating the sub-plate 205 against the urging force of the coil spring 223.

図7に示すように、セレクトプレート207は、サブプレート205に覆われていないメダルレール210の略中央部を移動するメダルをガイドする部材である。図13に示すように、セレクトプレート207は、略台形板状のプレート本体224と、プレート本体224の左右方向の両端部がパチスロ1の前方へ折曲することで形成されている一対の軸受部225と、を有している。また、プレート本体224の上部には、パチスロ1の前方へ折曲し、後端部が上方へ折曲することで形成されているフランジ部226が形成されている。また、一方の軸受部225には、下方へ延びるメダルストッパ部227が形成されている。   As shown in FIG. 7, the select plate 207 is a member that guides medals that move in a substantially central portion of the medal rail 210 that is not covered by the sub plate 205. As shown in FIG. 13, the select plate 207 includes a plate body 224 having a substantially trapezoidal plate shape, and a pair of bearing portions formed by bending both left and right ends of the plate body 224 forward of the pachislot 1. 225. In addition, a flange 226 formed by bending the pachislot 1 forward and bending the rear end upward is formed at an upper portion of the plate main body 224. Further, a medal stopper 227 extending downward is formed on one of the bearings 225.

図7に示すように、プレート本体224は、サブプレート205に覆われていないメダルレール210の略中央部とパチスロ1の前後方向に対向している。   As shown in FIG. 7, the plate main body 224 faces substantially the center of the medal rail 210 not covered by the sub plate 205 in the front-rear direction of the pachislot 1.

図9に示すように、セレクトプレート207は、ベース板部204の前面204aに設けられた軸部228に回動可能に支持されている。軸部228にはコイルばね229が設けられており、フランジ部226をパチスロ1の前方へ付勢する。フランジ部226は、メダルソレノイド208の可動板部208bの一端部と接触している。メダルソレノイド208がON状態にあるとき、フランジ部226はメダルソレノイド208の可動板部208bの一端部に押圧され、コイルばね229の付勢力に抗してパチスロ1の後方へ移動する。このときの、セレクトプレート207の回動位置を「ガイド位置」と称する。ガイド位置にあるセレクトプレート207のプレート本体224とメダルレール210との距離は、メダルをキャンセルシュータ206側に排出することなくホッパー装置51へガイド可能な所定の距離に設定されている。また、このときメダルストッパ部227は、下露出孔220(図8参照)から突出しない。   As shown in FIG. 9, the select plate 207 is rotatably supported by a shaft 228 provided on the front surface 204 a of the base plate 204. A coil spring 229 is provided on the shaft 228, and urges the flange 226 forward of the pachislot 1. The flange 226 is in contact with one end of the movable plate 208b of the medal solenoid 208. When the medal solenoid 208 is in the ON state, the flange 226 is pressed by one end of the movable plate 208b of the medal solenoid 208 and moves rearward of the pachislot 1 against the urging force of the coil spring 229. The rotation position of the select plate 207 at this time is referred to as a “guide position”. The distance between the plate main body 224 of the select plate 207 at the guide position and the medal rail 210 is set to a predetermined distance at which the medal can be guided to the hopper device 51 without discharging the medal to the cancel shooter 206 side. At this time, the medal stopper 227 does not protrude from the lower exposure hole 220 (see FIG. 8).

また、メダルソレノイド208がOFF状態にあるとき、フランジ部226はメダルソレノイド208の押圧から解放され、コイルばね229の付勢力によってパチスロ1の前方へ移動する。このときの、セレクトプレート207の回動位置を「排出位置」と称する。排出位置にあるセレクトプレート207のプレート本体224とメダルレール210との距離は、所定の距離よりも長い距離に設定されている。このとき、パチスロ1の前方へ移動するフランジ部226に押圧され、メダルソレノイド208の可動板部208bの一端部はパチスロ1の前方へ移動する。これに伴ってメダルソレノイド208の可動板部208bの他端部がパチスロ1の後方へ移動し、アフタメダルプレッシャ218の前端部を押圧する。これによってアフタメダルプレッシャ218は回動し、アフタメダルプレッシャ218の後端部が上露出孔219(図8参照)から露出する。   When the medal solenoid 208 is in the OFF state, the flange portion 226 is released from the pressing of the medal solenoid 208 and moves forward of the pachislot 1 by the urging force of the coil spring 229. The rotation position of the select plate 207 at this time is referred to as a “discharge position”. The distance between the plate body 224 of the select plate 207 at the discharge position and the medal rail 210 is set to be longer than a predetermined distance. At this time, one end of the movable plate portion 208b of the medal solenoid 208 moves forward of the pachislot 1 by being pressed by the flange portion 226 moving forward of the pachislot 1. Along with this, the other end of the movable plate 208b of the medal solenoid 208 moves rearward of the pachislot 1 and presses the front end of the after-medal pressure 218. As a result, the after-medal pressure 218 rotates, and the rear end of the after-medal pressure 218 is exposed from the upper exposure hole 219 (see FIG. 8).

メダルストッパ部227は、セレクトプレート207がガイド位置にあるときは下露出孔220(図8参照)から突出せず、排出位置にあるときは下露出孔220から突出する。   The medal stopper 227 does not protrude from the lower exposure hole 220 (see FIG. 8) when the select plate 207 is at the guide position, but protrudes from the lower exposure hole 220 when it is at the discharge position.

ガイド位置にあるセレクトプレート207は、メダルレール210上を移動するメダルが規格寸法を満たす場合、移動するメダルの上部と接触し、メダルをメダル出口部204c(図8参照)へ案内する。メダルは、セレクトプレート207に案内されているとき、メダルプレッシャ213をパチスロ1の前方へ押圧する。
示を省略している。
When the medal moving on the medal rail 210 satisfies the standard size, the select plate 207 at the guide position contacts the upper part of the medal moving and guides the medal to the medal exit 204c (see FIG. 8). When the medal is guided by the select plate 207, the medal pressure 213 is pressed forward of the pachislot 1.
Are omitted.

一方、排出位置にあるセレクトプレート207は、メダルレール210上を移動するメダルが規格寸法を満たす場合であっても、プレート本体224とメダルレール210との距離が離れているため、メダルをメダル出口部204c(図8参照)へ案内することができない。また、メダルは、メダルプレッシャ213、上露出孔219から突出するアフタメダルプレッシャ218、又は、下露出孔220から突出するメダルストッパ部227に押し出され、キャンセルシュータ206に向けて排出される。   On the other hand, even if the medals moving on the medal rail 210 satisfy the standard size, the select plate 207 at the discharge position sends the medal to the medal exit because the distance between the plate body 224 and the medal rail 210 is large. The user cannot be guided to the section 204c (see FIG. 8). The medals are pushed out by a medal pressure 213, an after-medal pressure 218 protruding from the upper exposure hole 219, or a medal stopper 227 protruding from the lower exposure hole 220, and are discharged toward the cancel shooter 206.

また、本実施形態においてセレクトプレート207は、通常、ガイド位置に位置付けされているが、所定の条件下(例えば、規定枚数のメダル投入時、エラー発生時、遊技開始時など)では、排出位置に位置付けされている。   In the present embodiment, the select plate 207 is normally positioned at the guide position. However, under a predetermined condition (for example, when inserting a predetermined number of medals, when an error occurs, at the start of a game, etc.), the select plate 207 is positioned at the discharge position. It is positioned.

また、メダルレール210上を移動するメダルが規格寸法よりも小径の場合、セレクトプレート207がガイド位置にあっても、メダルはセレクトプレート207に案内されず、メダルプレッシャ213に押し出され、キャンセルシュータ206に向けて排出される。   When the medal moving on the medal rail 210 has a smaller diameter than the standard size, even if the select plate 207 is at the guide position, the medal is not guided by the select plate 207 but is pushed out by the medal pressure 213 and the cancel shooter 206 It is discharged toward.

図7及び図8に示すように、カメラユニット209は、第1の基板230、第2の基板231及び図示しないレンズで構成されており、メダルレール210上を移動する物体が正規メダルか否かを判定し、判定結果を主制御回路91に出力するユニットである。第1の基板230には、CMOSイメージセンサ232(図13参照)及びLED233(図13参照)が設けられている。第2の基板231には、CMOSイメージセンサ232及びLED233と通信可能、及び、制御可能に接続されている制御LSI234(図13参照)が設けられている。   As shown in FIGS. 7 and 8, the camera unit 209 includes a first substrate 230, a second substrate 231, and a lens (not shown), and determines whether an object moving on the medal rail 210 is a regular medal. And outputs the result of the determination to the main control circuit 91. On the first substrate 230, a CMOS image sensor 232 (see FIG. 13) and an LED 233 (see FIG. 13) are provided. The second substrate 231 is provided with a control LSI 234 (see FIG. 13) which is communicably connected to the CMOS image sensor 232 and the LED 233 and is controllably connected thereto.

第1の基板230と第2の基板231は、BtoB(Board-to-Board)形式のコネクタ(不図示)で接続され、また、各基板230,231の角部に設けられた脚部235によって固定されている。また、本実施形態では、カメラユニット209を2つの基板230,231とレンズで構成する態様を説明したが、これに代えて、CMOSイメージセンサ232、LED233及び制御LSI234を設けた一つの基板で、カメラユニットを構成してもよい。また、絞り機構を追加してもよい。   The first substrate 230 and the second substrate 231 are connected by a BtoB (Board-to-Board) type connector (not shown), and legs 235 provided at corners of the respective substrates 230 and 231. Fixed. Further, in the present embodiment, the mode in which the camera unit 209 is configured by the two substrates 230 and 231 and the lens has been described. However, instead of this, one substrate provided with the CMOS image sensor 232, the LED 233, and the control LSI 234 may be used. A camera unit may be configured. Further, an aperture mechanism may be added.

カメラユニット209は、キャンセルシュータ206の上部の切欠き部206aの周囲に設けられたビス穴206bに、第1の基板230がビス止めされることで、固定されている。   The camera unit 209 is fixed by screwing a first substrate 230 into a screw hole 206b provided around a notch 206a at the top of the cancel shooter 206.

CMOSイメージセンサ232(図13参照)は、第1の基板230の略中央部分に設けられている。CMOSイメージセンサ232は、キャンセルシュータ206の切欠き部206a(図8参照)を介して、メダルレール210上の撮像領域A1を撮像し、撮像した画像データを制御LSI234(図13参照)に出力する。   The CMOS image sensor 232 (see FIG. 13) is provided at a substantially central portion of the first substrate 230. The CMOS image sensor 232 captures an image of the imaging area A1 on the medal rail 210 via the notch 206a (see FIG. 8) of the cancel shooter 206, and outputs the captured image data to the control LSI 234 (see FIG. 13). .

LED233(図13参照)は、CMOSイメージセンサ232の周囲で面発光し、メダルレール210上を移動する物体に光を照射する。制御LSI234(図13参照)は、CMOSイメージセンサ232から出力された画像データに基づいて、メダルレール210上を移動する物体が正規メダルか否かを判定し、判定結果を主制御回路91に出力する。なお、本実施形態では、切欠き部206aの周囲に形成したビス穴206bにビス止めすることでカメラユニット209をキャンセルシュータ206に固定する態様を説明したが、カメラユニットの固定態様はこれに限定されない。例えば、第1の基板230と第2の基板231の間に取り付けレールを設け、また、キャンセルシュータ206の上部に凹部を設け、この凹部に取り付けレールを嵌めた上で、取り付けレールとキャンセルシュータ206をビス止め又は接着剤で固定するようにしてもよい。   The LED 233 (see FIG. 13) emits surface light around the CMOS image sensor 232 and irradiates an object moving on the medal rail 210 with light. The control LSI 234 (see FIG. 13) determines whether or not the object moving on the medal rail 210 is a regular medal based on the image data output from the CMOS image sensor 232, and outputs the determination result to the main control circuit 91. I do. In the present embodiment, the mode in which the camera unit 209 is fixed to the cancel shooter 206 by screwing into the screw hole 206b formed around the notch 206a has been described, but the mode of fixing the camera unit is not limited to this. Not done. For example, a mounting rail is provided between the first substrate 230 and the second substrate 231, a concave portion is provided in an upper portion of the cancel shooter 206, and the mounting rail is fitted into the concave portion, and then the mounting rail and the cancel shooter 206 are mounted. May be fixed with screws or an adhesive.

<パチスロが備える回路の構成>
次に、パチスロ1が備える回路の構成について、図10〜図12を参照して説明する。まず、図10を参照してパチスロ1が備える回路全体の概要について説明する。図10は、パチスロ1が備える回路全体のブロック構成図である。
<Configuration of circuit included in pachislot>
Next, a configuration of a circuit included in the pachislo 1 will be described with reference to FIGS. First, the outline of the entire circuit provided in the pachislo 1 will be described with reference to FIG. FIG. 10 is a block diagram of the entire circuit included in the pachislo 1.

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

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

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

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

また、主制御基板71には、ドア中継端子板68を介して、メダルセレクタ201、ドア開閉スイッチ69、BETスイッチ77、精算スイッチ78、スタートスイッチ79、ストップスイッチ基板80、遊技動作表示基板81及び副中継基板61が接続されている。ドア開閉スイッチ69及び副中継基板61については、上述したため、説明を省略する。メダルセレクタ201の回路構成については後述する。   In addition, the main control board 71 has a medal selector 201, a door open / close switch 69, a BET switch 77, a settlement switch 78, a start switch 79, a stop switch board 80, a game operation display board 81, The sub-relay board 61 is connected. The door opening / closing switch 69 and the sub-relay board 61 have been described above, and a description thereof will be omitted. The circuit configuration of the medal selector 201 will be described later.

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 start lever 23 has been operated by the player (start operation).

ストップスイッチ基板80は、回転しているリールを停止させるための回路と、停止可能なリールをLEDなどにより表示するための回路を構成する基板である。このストップスイッチ基板80には、ストップスイッチが設けられている。ストップスイッチは、各ストップボタン19L,19C,19Rが遊技者により押されたこと(停止操作)を検出する。   The stop switch board 80 is a board that constitutes a circuit for stopping the spinning reels and a circuit for displaying the reels that can be stopped by LEDs or the like. The stop switch board 80 is provided with a stop switch. The stop switch detects that each of the stop buttons 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 accepting insertion of medals, when the three reels 3L, 3C, 3R are rotatable, and when performing a replay. This is the substrate to be used. The 7-segment display 24 and the LED 82 are connected to the game operation display board 81. The LED 82 illuminates, for example, a mark indicating the start of a game, a mark indicating a replay, and the like.

副制御基板72は、ドア中継端子板68と副中継基板61を介して主制御基板71に接続されている。この副制御基板72には、副中継基板61を介して、サウンドI/O基板84、LED基板62A,62B,62C、24hドア監視ユニット63、メダルセレクタ201、エンタースイッチ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 board 84, LED boards 62A, 62B, 62C, 24h door monitoring unit 63, medal selector 201, enter switch 110, and select switch 111 are connected to the sub control board 72 via a sub relay board 61. Have been. Since the LED boards 62A, 62B, 62C and the 24h door monitoring unit 63 have been described above, the description will be omitted.

エンタースイッチ110は、エンターボタン29が押されたことを検出して、その検出結果を、副中継基板61を介して副制御基板72に出力する。また、セレクトスイッチ111は、セレクトボタン28が押されたことを検出して、その検出結果を、副中継基板61を介して副制御基板72に出力する。   The enter switch 110 detects that the enter button 29 has been pressed, and outputs the detection result to the sub control board 72 via the sub relay board 61. The select switch 111 detects that the select button 28 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 board 84 outputs sound to a center speaker 58, a board speaker 64, lower speakers 65L and 65R, and 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, the ROM cartridge substrate 86 and the liquid crystal relay substrate 87 are connected to the sub control substrate 72. The ROM cartridge board 86 and the liquid crystal relay board 87 are housed in the sub control board case 57 together with the sub control board 72. The ROM cartridge board 86 is a board for managing images (videos) and sound for effects, LED boards 62A and 62B and other LED boards (not shown), and communication data. The liquid crystal relay board 87 is a board that relays wiring connecting the sub control board 72 and the liquid crystal display device 11.

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

主制御回路91は、主制御基板71上に設置されたマイクロコンピュータ92を主たる構成要素としている。マイクロコンピュータ92は、メインCPU93、メインROM94及びメインRAM95により構成される。メインCPU93と前述のホッパー装置51は、本発明の遊技媒体払出装置を構成している。   The main control circuit 91 includes a microcomputer 92 installed on the main control board 71 as a main component. 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 game medium payout device of the present invention.

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

メインCPU93には、クロックパルス発生回路96、分周器97、乱数発生器98及びサンプリング回路99が接続されている。クロックパルス発生回路96及び分周器97は、クロックパルスを発生する。メインCPU93は、発生されたクロックパルスに基づいて、制御プログラムを実行する。乱数発生器98は、予め定められた範囲の乱数(例えば、0〜65535)を発生する。サンプリング回路99は、発生された乱数の中から1つの値を抽出する。   The main CPU 93 is connected to a clock pulse generation circuit 96, a frequency divider 97, a random number generator 98, and a sampling circuit 99. Clock pulse generation circuit 96 and frequency divider 97 generate clock pulses. The main CPU 93 executes a control program based on the generated clock pulse. The random number generator 98 generates random numbers in a predetermined range (for example, 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の回転により発光部と受光部との間に介在される検知片を備えたリール位置検出部(不図示)により検出する。   After detecting the reel index, the main CPU 93 counts the number of times a pulse has been output to the stepping motor of each of the reels 3L, 3C, 3R. Thereby, the main CPU 93 manages the rotation angles of the reels 3L, 3C, 3R (mainly how many symbols the reel has 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 on each of the reels 3L, 3C, 3R and an optical sensor having a light emitting unit and a light receiving unit. It is detected by a reel position detecting unit (not shown) having a detecting piece interposed therebetween.

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

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

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

<副制御回路>
次に、副制御基板72により構成される副制御回路101について、図12を参照して説明する。図12は、パチスロ1の副制御回路101の構成例を示すブロック図である。
<Sub-control circuit>
Next, the sub control circuit 101 including the sub control board 72 will be described with reference to FIG. FIG. 12 is a block diagram illustrating a configuration example of the sub-control circuit 101 of the pachi-slot 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 effect contents based on a command 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 clock unit.

サブCPU102は、主制御回路91から送信されたコマンドに応じて、ロムカートリッジ基板86に記憶されている制御プログラムに従い、映像、音、光の出力の制御を行う。ロムカートリッジ基板86は、基本的に、プログラム記憶領域とデータ記憶領域によって構成される。   The sub CPU 102 controls output of video, sound, and light in accordance with a control program stored in the ROM cartridge substrate 86 in response to a 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(図2参照)による映像の表示を制御する描画制御タスク、LED85等の光源による光の出力を制御するランプ制御タスク、スピーカ58,64,65L,65R等のスピーカによる音の出力を制御する音声制御タスク等が含まれる。   A control program executed by the sub CPU 102 is stored in the program storage area. For example, the control program includes a main board communication task for controlling communication with the main control circuit 91 and an effect registration task for extracting effect random number values and determining and registering effect contents (effect data). Is included. Further, a drawing control task for controlling display of an image by the liquid crystal display device 11 (see FIG. 2) based on the determined effect contents, a lamp control task for controlling light output by a light source such as an LED 85, and speakers 58, 64, and 65L. , 65R, etc., and a voice control task for controlling the output of sound from a speaker.

データ記憶領域は、各種データテーブルを記憶する記憶領域、各演出内容を構成する演出データを記憶する記憶領域、映像の作成に関するアニメーションデータを記憶する記憶領域が含まれている。また、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 related to video creation. In addition, 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は、揮発性記憶手段としてのワークRAMである。サブSRAM103bは、バックアップ電源によってバックアップされる不揮発性記憶手段としてのバックアップRAMである。   The sub RAM 103 includes a sub DRAM (Dynamic Random Access Memory) 103a and a sub SRAM (Static Random Access Memory) 103b. The sub DRAM 103a is a work RAM as a volatile storage unit. The sub SRAM 103b is a backup RAM as a non-volatile storage unit that is backed up by a backup power supply.

サブDRAM103aには、決定された演出内容や演出データを登録する格納領域や、主制御回路91から送信される内部当籤役等の各種データを格納する格納領域や、その他バックアップ領域に割り当てられていないデータ(電源オフ状態で消えても問題ないデータ)を格納する格納領域が設けられている。   The sub DRAM 103a is not allocated to a storage area for registering the determined effect contents and effect data, a storage area for storing various data such as an internal winning combination transmitted from the main control circuit 91, and other backup areas. A storage area for storing data (data that can be erased when the power is off) is provided.

サブSRAM103bで構成されるバックアップ領域は、電源断が生じた場合、当該電源断時に保持していたデータを記憶可能となっており、電源投入時(電源断復帰時)及び投入後に、当該バックアップ領域のデータを利用可能となっている。また、例えば、メダルセレクタ201や24hドア監視ユニット63から受信する各種情報が記憶される。   The backup area configured by the sub SRAM 103b is capable of storing data held at the time of power failure when the power failure occurs. Data is available. Further, for example, various information received from the medal selector 201 or the 24h door monitoring unit 63 is stored.

サブ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 a video according to the animation data specified by the effect contents, and display the created video on the liquid crystal display device 11.

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

また、サブ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.

<メダルセレクタの構成>
次に、メダルセレクタ201の構成について、図13、図14を参照して説明する。図13は、メダルセレクタ201の回路構成例を示すブロック図である。図14は、制御LSI234の回路構成例を示すブロック図である。
<Configuration of medal selector>
Next, the configuration of the medal selector 201 will be described with reference to FIGS. FIG. 13 is a block diagram illustrating a circuit configuration example of the medal selector 201. FIG. 14 is a block diagram illustrating a circuit configuration example of the control LSI 234.

図13に示すように、メダルセレクタ201は、カメラユニット209と、メダルソレノイド208と、ダブルフォトセンサ272を備えている。また、メダルセレクタ201は、ドア中継端子板68を介して、主制御基板71に接続されている。また、メダルセレクタ201は、ケーブル280によって副中継基板61に接続され、その副中継基板61を介して、副制御基板72に接続されている。すなわちメダルセレクタ201は、主制御回路91及び副制御回路101と電気的に接続されている。   As shown in FIG. 13, the medal selector 201 includes a camera unit 209, a medal solenoid 208, and a double photo sensor 272. The medal selector 201 is connected to the main control board 71 via a door relay terminal plate 68. The medal selector 201 is connected to the sub relay board 61 by a cable 280, and is connected to the sub control board 72 via the sub relay board 61. That is, the medal selector 201 is electrically connected to the main control circuit 91 and the sub control circuit 101.

主制御回路91は、メダルセレクタ201のメダルソレノイド208をON状態又はOFF状態に設定することができる。すなわち主制御回路91は、セレクトプレート207をガイド位置又は排出位置に移動させることができる。   The main control circuit 91 can set the medal solenoid 208 of the medal selector 201 to an ON state or an OFF state. That is, the main control circuit 91 can move the select plate 207 to the guide position or the discharge position.

具体的には、主制御回路91は、パチスロ1がメダルを投入可能な状態であるときは投入可の内容のメダル投入信号を出力する。また、主制御回路91は、パチスロ1がメダルを投入可能な状態でないときは投入不可の内容のメダル投入信号を出力する。ここで、「投入可の内容のメダル投入信号を出力する」とは、主制御回路91と接続されている機器(本実施形態ではメダルソレノイド208)間の信号線をON状態に設定することである。また、「投入不可の内容のメダル投入信号を出力する」とは、主制御回路91と接続されている機器(本実施形態ではメダルソレノイド208)間の信号線をOFF状態に設定することである。メダルソレノイド208は、主制御回路91とメダルソレノイド208間の信号線がON状態になったことを検知すると、自身をON状態に設定する。また、メダルソレノイド208は、主制御回路91とメダルソレノイド208間の信号線がOFF状態になったことを検知すると、自身をOFF状態に設定する。   Specifically, when the pachislo 1 is in a state where medals can be inserted, the main control circuit 91 outputs a medal insertion signal indicating that insertion is possible. When the pachislot 1 is not in a state where medals can be inserted, the main control circuit 91 outputs a medal insertion signal indicating that insertion is not possible. Here, "to output a medal insertion signal indicating that insertion is possible" means that a signal line between devices (medal solenoid 208 in the present embodiment) connected to the main control circuit 91 is set to an ON state. is there. “To output a medal insertion signal indicating that the insertion is impossible” means to set the signal line between the devices (the medal solenoid 208 in the present embodiment) connected to the main control circuit 91 to the OFF state. . When detecting that the signal line between the main control circuit 91 and the medal solenoid 208 has been turned ON, the medal solenoid 208 sets itself to the ON state. When detecting that the signal line between the main control circuit 91 and the medal solenoid 208 has been turned off, the medal solenoid 208 sets itself to the off state.

メダルセレクタ201のダブルフォトセンサ272は、ドア中継端子板68を介して、主制御基板71に接続されている。ダブルフォトセンサ272は、第1フォトセンサ273と第2フォトセンサ274とからなる。   The double photo sensor 272 of the medal selector 201 is connected to the main control board 71 via the door relay terminal plate 68. The double photo sensor 272 includes a first photo sensor 273 and a second photo sensor 274.

図8に示すように、第1フォトセンサ273は、メダルセレクタ201のベース板部204におけるメダル出口部204cの付近に設けられている。第1フォトセンサ273は、ベース板部204のメダルレール210上に埋め込まれたフォトダイオード(図7参照)と、このフォトダイオードに光(赤外線光)を照射する発光体(図7参照)と、を有する。フォトダイオードと発光体は、メダルの厚み以上離れて対向しており、セレクトプレート207がガイド位置にあるときに、メダルレール210上を移動するメダルは、フォトダイオードと発光体との間を通過可能となっている。   As shown in FIG. 8, the first photo sensor 273 is provided near the medal exit portion 204c in the base plate portion 204 of the medal selector 201. The first photo sensor 273 includes a photodiode (see FIG. 7) embedded on the medal rail 210 of the base plate portion 204, a light emitter (see FIG. 7) that irradiates the photodiode with light (infrared light), Having. The photodiode and the light emitter face each other with a distance equal to or greater than the thickness of the medal, and when the select plate 207 is at the guide position, the medal moving on the medal rail 210 can pass between the photodiode and the light emitter. It has become.

発光体は所定光量の光を常に発光する。フォトダイオードが発光体から所定光量以上の光を受光すると、第1フォトセンサ273は、ハイレベルの信号を出力する。一方、フォトダイオードが受光する光の量が所定光量に満たなくなると、第1フォトセンサ273は、ローレベルの信号(メダル検知信号)を出力する。従って、メダルがフォトダイオードと発光体との間を通過する際に発光体の光を遮ると、第1フォトセンサ273は、メダル検知信号を出力する。   The luminous body always emits a predetermined amount of light. When the photodiode receives a predetermined amount of light or more from the light emitter, the first photosensor 273 outputs a high-level signal. On the other hand, when the amount of light received by the photodiode is less than the predetermined amount, the first photosensor 273 outputs a low-level signal (medal detection signal). Therefore, when the light of the light emitter is blocked when the medal passes between the photodiode and the light emitter, the first photosensor 273 outputs a medal detection signal.

第2フォトセンサ274は、メダルセレクタ201のベース板部204におけるメダル出口部204cの付近で、且つ、第1フォトセンサ273の近傍に、第1フォトセンサ273よりも、メダルレール210上を移動するメダルの移動方向の下流側に、設けられている。なお、その他の点については、第1フォトセンサ273と同様のため、説明を省略する。   The second photo sensor 274 moves on the medal rail 210 closer to the medal exit portion 204c of the base plate portion 204 of the medal selector 201 and closer to the first photo sensor 273 than the first photo sensor 273. It is provided on the downstream side in the moving direction of the medals. Note that the other points are the same as those of the first photosensor 273, and a description thereof will be omitted.

なお、本実施形態では、ダブルフォトセンサ272を構成する第1フォトセンサ273及び第2フォトセンサ274が、フォトダイオードと発光体との間をメダルが通過して発光体の光を遮蔽することで、通過する物体を検知する遮蔽型のセンサ方式(すなわち、フォトダイオードの状態がオン状態からオフ状態に変化することで検知する検知方式)を採用する態様を説明した。しかしながら、フォトダイオードで、メダルを検知する態様はこれに限定されない。例えば、フォトダイオードと発光体を左右又は上下に配置して発光体の光を通過するメダルが反射した光をフォトダイオードが受光することでメダルの通過を検知する、いわゆる反射型のセンサ方式を採用してもよい。また、第1フォトセンサ273を遮蔽型、第2フォトセンサ274を反射型、又は、逆の組合せで、フォトダイオードを配置する位置に応じて、これらのセンサ方式を適宜選択して採用してもよい。   In the present embodiment, the first photosensor 273 and the second photosensor 274 constituting the double photosensor 272 are configured such that a medal passes between the photodiode and the light emitter to block light of the light emitter. In the above, the mode in which the shielded sensor system for detecting the passing object (that is, the detection system for detecting when the state of the photodiode changes from the on state to the off state) is described. However, the mode of detecting medals with a photodiode is not limited to this. For example, a so-called reflection-type sensor system is used in which a photodiode and a light emitter are arranged on the left and right or up and down, and the passage of the medal is detected by the photodiode receiving light reflected by the medal passing through the light of the light emitter. May be. In addition, the first photosensor 273 may be a shield type, the second photosensor 274 may be a reflection type, or a combination of the two types may be appropriately selected and employed depending on the position where the photodiode is arranged. Good.

上述したように第1フォトセンサ273はメダル出口部204cの付近に設けられ、第2フォトセンサ274は第1フォトセンサ273よりもメダルレール210上の下流に設けられている。このため、第1フォトセンサ273及び第2フォトセンサ274は、セレクトプレート207がガイド位置にあり、メダル出口部204c(図8参照)側へ移動するメダルは検知するが、セレクトプレート207が排出位置にあり、メダルシュート202(図6参照)に案内されるメダルは検知しない。   As described above, the first photo sensor 273 is provided near the medal exit portion 204c, and the second photo sensor 274 is provided downstream of the first photo sensor 273 on the medal rail 210. For this reason, the first photosensor 273 and the second photosensor 274 detect the medal that moves to the medal exit 204c (see FIG. 8) when the select plate 207 is in the guide position, but the select plate 207 is in the discharge position. No medals guided to the medal shoot 202 (see FIG. 6) are detected.

第1フォトセンサ273及び第2フォトセンサ274から出力されたメダル検知信号は、ドア中継端子板68を介して、主制御基板71(主制御回路91)に入力される。主制御基板71のメインCPU93(図11参照)が、第1フォトセンサ273から入力されたメダル検知信号を検出してから、所定時間内に、第2フォトセンサ274から入力されたメダル検知信号を検出すると、投入されたメダルの枚数をメインCPU93が計数するために設けられたカウンタである投入枚数カウンタの値に1加算する。なお、投入枚数カウンタの値が最大値(例えば、3)の場合は、クレジットされているメダルの枚数をメインCPU93が計数するために設けられたカウンタであるクレジットカウンタの値に1加算する。   The medal detection signals output from the first photo sensor 273 and the second photo sensor 274 are input to the main control board 71 (main control circuit 91) via the door relay terminal plate 68. After the main CPU 93 (see FIG. 11) of the main control board 71 detects the medal detection signal input from the first photo sensor 273, the main CPU 93 outputs the medal detection signal input from the second photo sensor 274 within a predetermined time. Upon detection, the number of inserted medals is incremented by one to the value of a inserted number counter, which is a counter provided for the main CPU 93 to count. If the value of the inserted number counter is the maximum value (for example, 3), the number of credited medals is incremented by 1 to the value of the credit counter, which is a counter provided for the main CPU 93 to count.

クレジットカウンタが最大値(例えば、50)の場合は、主制御回路91は、メダルセレクタ201のメダルソレノイド208をOFF状態に設定する。これによって、セレクトプレート207(図8参照)が「排出位置」に位置付けされ、メダルが投入不可となり、クレジットカウンタが最大値となった後で投入されたメダルをメダルシュート202(図6参照)に案内してメダル払出口32(図2参照)からメダルトレイユニット34に排出する。   When the credit counter has the maximum value (for example, 50), the main control circuit 91 sets the medal solenoid 208 of the medal selector 201 to the OFF state. As a result, the select plate 207 (see FIG. 8) is positioned at the “discharge position”, medals cannot be inserted, and medals inserted after the credit counter reaches the maximum value are stored in the medal shoot 202 (see FIG. 6). It is guided and discharged to the medal tray unit 34 from the medal payout exit 32 (see FIG. 2).

なお、主制御回路91は、単位遊技においてスタートレバー23が遊技者により操作された後においても、メダルセレクタ201のメダルソレノイド208をOFF状態に設定する。   The main control circuit 91 sets the medal solenoid 208 of the medal selector 201 to the OFF state even after the start lever 23 is operated by the player in the unit game.

また、メインCPU93が、第2フォトセンサ274から入力されたメダル検知信号、第1フォトセンサ273から入力されたメダル検知信号の順で、メダル検知信号を受信した場合、メダルがメダルレール210上を適正な移動方向とは異なる(逆の)移動方向で移動する、いわゆる逆行エラーが発生したことを検知する。   When the main CPU 93 receives a medal detection signal in the order of the medal detection signal input from the second photo sensor 274 and the medal detection signal input from the first photo sensor 273, the medal moves on the medal rail 210. It is detected that a so-called backward error has occurred, which moves in a moving direction different from (reverse to) the proper moving direction.

また、メインCPU93が、メダル検知信号を検出してから一定時間を経過しても、第1フォトセンサ273、第2フォトセンサ274のいずれか、若しくは両方から、メダル検知信号が出力され続けている場合や、第1フォトセンサ273からのメダル検知信号を検出してから一定時間経過しても、第2フォトセンサ274からのメダル検知信号を検出できない場合、メダルがメダルレール210上で留まる、いわゆるメダル詰まりエラーが発生したことを検知する。   Further, even if a certain period of time has elapsed since the main CPU 93 detected the medal detection signal, the medal detection signal continues to be output from one or both of the first photosensor 273 and the second photosensor 274. In a case or when a medal detection signal from the second photo sensor 274 cannot be detected even after a certain period of time has elapsed since the detection of the medal detection signal from the first photo sensor 273, the medal stays on the medal rail 210, so-called It detects that a medal jam error has occurred.

主制御回路91(メインCPU93)は、逆行エラーやメダル詰まりエラーを検知すると、遊技を強制的に中断させ、7セグ表示器24(図2参照)に、検知したエラーの内容に応じたエラーコードを表示するとともに、副制御回路101に検知したエラーの内容に応じたエラーコマンドを送信して、副制御回路101を介して、エラーを報知する。例えば、液晶表示装置11にエラーの内容を示すエラー画面を表示したり、副制御回路101が表示を制御する副7セグ表示器(不図示)を設ける場合は、この副7セグ表示器に所定の表示をしたりする。   When the main control circuit 91 (main CPU 93) detects a backward error or a medal jam error, the game is forcibly interrupted, and the 7-segment display 24 (see FIG. 2) displays an error code corresponding to the detected error. Is displayed, and an error command corresponding to the content of the detected error is transmitted to the sub-control circuit 101 to notify the error via the sub-control circuit 101. For example, when an error screen indicating the content of an error is displayed on the liquid crystal display device 11 or when a sub 7-segment display (not shown) for controlling the display by the sub-control circuit 101 is provided, a predetermined Or display.

副制御回路101は、メダルセレクタ201の制御LSI234から、色判定の判定結果、刻印判定の判定結果、各種信号やコマンドを受信する。   The sub-control circuit 101 receives, from the control LSI 234 of the medal selector 201, the result of the color determination, the result of the engraving determination, and various signals and commands.

カメラユニット209は、制御LSI234、CMOSイメージセンサ232及びLED233で構成されている。カメラユニット209の制御LSI234は、ASIC(Application Specific Integrated Circuit)で構成され、CMOSイメージセンサ232及びLED233と電気的に接続されている。制御LSI234は、LED233の発光を制御する。また、制御LSI234は、CMOSイメージセンサ232から出力された画像データに基づいて、メダルレール210上を移動する物体が正規メダルか否かを判定し、判定結果を、後述するUART252から、副中継基板61を介して副制御基板72(副制御回路101)に送信する。   The camera unit 209 includes a control LSI 234, a CMOS image sensor 232, and an LED 233. The control LSI 234 of the camera unit 209 includes an ASIC (Application Specific Integrated Circuit), and is electrically connected to the CMOS image sensor 232 and the LED 233. The control LSI 234 controls the light emission of the LED 233. Further, the control LSI 234 determines whether or not the object moving on the medal rail 210 is a regular medal based on the image data output from the CMOS image sensor 232, and sends the determination result from the UART 252 (described later) to the sub relay board. The signal is transmitted to the sub control board 72 (sub control circuit 101) via 61.

CMOSイメージセンサ232は、露光時間(シャッタースピード)を1〜25段階で設定する露光時間設定機構を備えている。1段階上がる毎に、露光時間は、7μ秒延びるように設定される。本実施形態では、露光時間の初期値(パチスロ1の電源投入時の値)は、段階10、すなわち70μ秒に設定されている。従って、本実施形態では、露光時間を、70μ秒から最大175μ秒(段階25に対応する露光時間)の範囲で設定可能となっている。なお、本実施形態において、採用されているCMOSイメージセンサ232は、解像度が648×488ピクセルであり、フレームレートが240fps(Frames Per Second)のCMOSイメージセンサである。   The CMOS image sensor 232 has an exposure time setting mechanism for setting the exposure time (shutter speed) in 1 to 25 steps. The exposure time is set so as to extend by 7 μs for each step up. In the present embodiment, the initial value of the exposure time (the value when the power of the pachislot 1 is turned on) is set to the stage 10, that is, 70 μs. Therefore, in the present embodiment, the exposure time can be set in a range from 70 μs to a maximum of 175 μs (exposure time corresponding to step 25). In the present embodiment, the CMOS image sensor 232 employed is a CMOS image sensor having a resolution of 648 × 488 pixels and a frame rate of 240 fps (Frames Per Second).

また、制御LSI234は、報知用LED206cとGPIO250を介して電気的に接続されている。報知用LED206cは、制御LSI234からの指示に応じて点灯及び消灯する。また、制御LSI234は、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fとGPIO250を介して電気的に接続されている。   The control LSI 234 is electrically connected to the notification LED 206c via the GPIO 250. The notification LED 206c is turned on and off according to an instruction from the control LSI 234. The control LSI 234 is electrically connected to the initialization switch 206d, the color switch 206e, the engraving switch 206f, and the GPIO 250.

通電中に初期化スイッチ206dが操作される(ON状態になる)と、制御LSI234は、スイッチ応答初期化処理を行う(なお、本実施形態では、メダルセレクタ201に対して暗号化キーを送信する処理を含む処理を「初期化処理」と称しており、初期化スイッチ206dの操作に応じて行われる初期化処理は「スイッチ応答初期化処理」として、これと区別するものとする)。スイッチ応答初期化処理において、制御LSI234は、後述するSRAM243及びフラッシュメモリ244に記憶されている各種パラメータやテンプレートを削除し、これらに初期値を設定する(リセットする)。   When the initialization switch 206d is operated (turned on) during energization, the control LSI 234 performs a switch response initialization process (in this embodiment, transmits an encryption key to the medal selector 201). The processing including the processing is referred to as “initialization processing”, and the initialization processing performed in response to the operation of the initialization switch 206d is referred to as “switch response initialization processing” to be distinguished therefrom.) In the switch response initialization process, the control LSI 234 deletes various parameters and templates stored in the SRAM 243 and the flash memory 244 described later, and sets (resets) these to initial values.

色スイッチ206eは、ON/OFF状態に設定可能である。色スイッチ206eがON状態に設定されると、制御LSI234は、色判定を有効とし、判定完了コマンドに含まれる色判定結果の値を実際の判定結果に応じて「1」(判定OK)又は「0」(判定NG)に設定する。一方、色スイッチ206eがOFF状態に設定されると、制御LSI234は、色判定を無効とし、判定完了コマンドに含まれる色判定結果の値を実際の判定結果に係わらず「1」(判定OK)に設定する。すなわち、色スイッチ206eは、色判定を有効にする場合は、ON状態に設定され、無効にする場合はOFF状態に設定される。   The color switch 206e can be set to an ON / OFF state. When the color switch 206e is set to the ON state, the control LSI 234 validates the color determination, and changes the value of the color determination result included in the determination completion command to “1” (determination OK) or “OK” according to the actual determination result. 0 "(determination NG). On the other hand, when the color switch 206e is set to the OFF state, the control LSI 234 invalidates the color determination and sets the value of the color determination result included in the determination completion command to “1” (determination OK) regardless of the actual determination result. Set to. That is, the color switch 206e is set to an ON state when enabling color determination, and is set to an OFF state when invalidating the color determination.

刻印スイッチ206fは、ON/OFF状態に設定可能である。刻印スイッチ206fがON状態に設定されると、制御LSI234は、刻印判定を有効とし、判定完了コマンドに含まれる刻印判定結果の値を実際の判定結果に応じて「1」(判定OK)又は「0」(判定NG)に設定する。一方、刻印スイッチ206fがOFF状態に設定されると、制御LSI234は、刻印判定を無効とし、判定完了コマンドに含まれる刻印判定結果の値を実際の判定結果に係わらず「1」(判定OK)に設定する。すなわち、刻印スイッチ206fは、刻印判定を有効にする場合は、ON状態に設定され、無効にする場合はOFF状態に設定される。   The engraving switch 206f can be set to an ON / OFF state. When the engraving switch 206f is set to the ON state, the control LSI 234 validates the engraving determination and sets the value of the engraving determination result included in the determination completion command to “1” (determination OK) or “OK” according to the actual determination result. 0 "(determination NG). On the other hand, when the engraving switch 206f is set to the OFF state, the control LSI 234 invalidates the engraving determination and sets the value of the engraving determination result included in the determination completion command to “1” (determination OK) regardless of the actual determination result. Set to. That is, the marking switch 206f is set to the ON state when making the marking determination valid, and is set to the OFF state when making the marking determination invalid.

本実施形態において、制御LSI234は、電源投入時における色スイッチeのON/OFF状態に応じて色判定の有効/無効を設定し、また、電源投入時における刻印スイッチfのON/OFF状態に応じて刻印判定の有効/無効を設定する。電源投入後にこれらスイッチが操作されても、電源投入時のスイッチの状態に応じて設定された色判定及び刻印判定の有効/無効は、変更しない。制御LSI234は、初期化スイッチ206d、色スイッチ206e、刻印スイッチ206fのON/OFF状態を予め規定された周期(例えば、10msec周期)で取得する。なお、この周期は、メダルセレクタ無操作コマンドを送信する周期よりも短く設定されている。   In the present embodiment, the control LSI 234 sets the validity / invalidity of the color determination according to the ON / OFF state of the color switch e when the power is turned on, and also controls the ON / OFF state of the engraving switch f when the power is turned on. To enable / disable stamping judgment. Even if these switches are operated after the power is turned on, the validity / invalidity of the color judgment and the marking judgment set in accordance with the state of the switch at the time of the power on is not changed. The control LSI 234 acquires the ON / OFF state of the initialization switch 206d, the color switch 206e, and the engraving switch 206f at a predetermined cycle (for example, a cycle of 10 msec). This cycle is set shorter than the cycle for transmitting the medal selector no-operation command.

<制御LSIの構成>
次に、制御LSI234の回路構成について、図14を参照して説明する。
<Configuration of control LSI>
Next, a circuit configuration of the control LSI 234 will be described with reference to FIG.

制御LSI234は、ホストコントローラ241、画像認識DSP(digital signal processor)回路242、バックアップ電源(不図示)が接続されたSRAM(Static Random Access Memory)243、フラッシュメモリ244、ISP(Image Signal Processing)回路245及びメダルカウント回路246を備えている。また、制御LSI234は、カラー認識回路247、魚眼補正スケーラ回路248、画像認識アクセラレータ回路249、GPIO(General Purpose Input/Output)250及びUART(Universal Asynchronous Receiver Transmitter)252を備えている。これら制御LSI234を構成するデバイスは、バスを介して相互に接続されおり、本実施形態の制御LSI234では、バスのプロトコルとしてAXI(Advanced eXtensible Interface)が採用されている。   The control LSI 234 includes a host controller 241, an image recognition DSP (digital signal processor) circuit 242, an SRAM (Static Random Access Memory) 243 to which a backup power supply (not shown) is connected, a flash memory 244, and an ISP (Image Signal Processing) circuit 245. And a medal counting circuit 246. The control LSI 234 includes a color recognition circuit 247, a fish-eye correction scaler circuit 248, an image recognition accelerator circuit 249, a GPIO (General Purpose Input / Output) 250, and a UART (Universal Asynchronous Receiver Transmitter) 252. The devices making up the control LSI 234 are mutually connected via a bus, and the control LSI 234 of this embodiment employs AXI (Advanced eXtensible Interface) as a bus protocol.

また、制御LSI234は、ISI(Image Sensor Interface)回路251を備えている。ISI回路251は、CMOSイメージセンサ232とISP回路に電気的に接続されている。ISI回路251は、CMOSイメージセンサ232からLVDS(Low voltage differential signaling)方式で送信された画像データをRGBベイヤ画像に変換して出力する。このとき、ISI回路251から出力されるRGB画像には固有の画像IDが付される。この画像IDは、各種画像変換を施された後のデータに引き継がれる。このため、各種判定に係るデータに引き継がれている画像IDに基づいて、それぞれの判定結果を紐付けることができる。すなわち、RGB画像内にメダルが写っていた場合、このメダルに対するこれらの判定結果を関連付けることができる。   The control LSI 234 includes an ISI (Image Sensor Interface) circuit 251. The ISI circuit 251 is electrically connected to the CMOS image sensor 232 and the ISP circuit. The ISI circuit 251 converts the image data transmitted from the CMOS image sensor 232 by the LVDS (Low voltage differential signaling) method into an RGB Bayer image and outputs the RGB data. At this time, a unique image ID is assigned to the RGB image output from the ISI circuit 251. This image ID is carried over to data after various types of image conversion. For this reason, based on the image ID carried over by the data relating to the various determinations, the respective determination results can be linked. That is, when a medal is shown in the RGB image, these determination results for this medal can be associated.

ISP回路245は、ISI回路251からRGBベイヤ画像が出力されると(RGBベイヤ画像が入力される)と、VSYNC(Vertical Synchronization)割込信号を、ホストコントローラ241に出力する。また、ISP回路245は、ISI回路251から出力されたRGBベイヤ画像にレンズ歪み補正処理と射影変換(ホモグラフィ)処理を施す画像補正処理を行う。   When the RGB Bayer image is output from the ISI circuit 251 (the RGB Bayer image is input), the ISP circuit 245 outputs a VSYNC (Vertical Synchronization) interrupt signal to the host controller 241. Further, the ISP circuit 245 performs an image correction process of performing a lens distortion correction process and a projective transformation (homography) process on the RGB Bayer image output from the ISI circuit 251.

カラー認識回路247は、ISP回路245から出力されたHSV画像データの内の色相と彩度に基づいて色判定処理を行う。色判定処理には、メダル検出処理、閾値判定処理、彩度・色相乗算処理、色テンプレート生成処理、及び、色テンプレート比較処理が含まれる。   The color recognition circuit 247 performs a color determination process based on the hue and saturation in the HSV image data output from the ISP circuit 245. The color determination process includes a medal detection process, a threshold value determination process, a saturation / hue multiplication process, a color template generation process, and a color template comparison process.

メダルカウント回路246は、ISP回路245から出力されたグレースケール画像データに基づいてカウント処理を行う。カウント処理には、メダル画像判別処理、メダル位置検出処理及び順序判定処理が含まれる。   The medal counting circuit 246 performs a counting process based on the grayscale image data output from the ISP circuit 245. The counting process includes a medal image determination process, a medal position detection process, and an order determination process.

魚眼補正スケーラ回路248は、SRAM243からグレースケール画像データを取得し、取得したグレースケール画像データを魚眼補正する魚眼補正処理を行う。   The fisheye correction scaler circuit 248 obtains grayscale image data from the SRAM 243 and performs a fisheye correction process for correcting the obtained grayscale image data with fisheye.

画像認識DSP回路242は、前処理において、SRAM243から縮小画像データ(本実施形態では、1/4に縮小した縮小画像データ)を取得し、取得した縮小画像データから円領域を検出する円領域検出処理と、非線形拡散フィルタ処理を行いエッジ画像を作成してSRAM243に記憶させるフィルタ処理を行う。また、画像認識DSP回路242は、各種判定処理を行う。なお、本実施形態では、1/4に縮小した画像データを使用しているが、これに限らず、フラッシュメモリ244に使用する縮小画像データを選択するための設定を記憶させ、その設定に応じて、1/2に縮小した画像データ、又は、1/8に縮小した画像データを選択できるようにしてもよい。   In the preprocessing, the image recognition DSP circuit 242 acquires reduced image data (reduced image data reduced to 1/4 in this embodiment) from the SRAM 243, and detects a circular region from the acquired reduced image data. The processing and the non-linear diffusion filter processing are performed to create an edge image and perform a filter processing for storing the image in the SRAM 243. Further, the image recognition DSP circuit 242 performs various determination processes. In the present embodiment, the image data reduced to 1/4 is used. However, the present invention is not limited to this, and a setting for selecting the reduced image data to be used is stored in the flash memory 244. Thus, the image data reduced to 1/2 or the image data reduced to 1/8 may be selected.

画像認識アクセラレータ回路249は、勾配平均画像データに係る処理、エッジ勾配画像に係る処理及び高速フーリエ変換(Fast Fourier Transform,以下「FFT変換」と称する場合がある)処理を行う。また、画像認識アクセラレータ回路249は、刻印判定処理に用いられる各種テンプレートを作成するテンプレート生成処理を行う。   The image recognition accelerator circuit 249 performs processing related to the gradient average image data, processing related to the edge gradient image, and fast Fourier transform (hereinafter sometimes referred to as “FFT transformation”). Further, the image recognition accelerator circuit 249 performs a template generation process for creating various templates used for the marking determination process.

GPIO250は、メダルセレクタ201に接続されている各機器と、制御LSI234と、の入出力のためのデバイスである。また、制御LSI234と、メダルセレクタ201を構成する各種デバイスと、の入出力のためのデバイスである。   The GPIO 250 is a device for input / output between each device connected to the medal selector 201 and the control LSI 234. Further, it is a device for input and output of the control LSI 234 and various devices constituting the medal selector 201.

UART252は、メダルセレクタ201と副制御基板72からなる副制御回路101との間で各種コマンドを送受信するためのシリアル通信用デバイスである。なお、図14では副中継基板61の図示を省略している。   The UART 252 is a serial communication device for transmitting and receiving various commands between the medal selector 201 and the sub control circuit 101 including the sub control board 72. In FIG. 14, the illustration of the sub-relay board 61 is omitted.

ホストコントローラ241は、制御LSI234を構成する各デバイス、例えばメダルカウント回路246、カラー認識回路247、魚眼補正スケーラ回路248、画像認識DSP回路242、画像認識アクセラレータ回路249、GPIO250、UART252の制御を行う。   The host controller 241 controls each device constituting the control LSI 234, for example, the medal count circuit 246, the color recognition circuit 247, the fisheye correction scaler circuit 248, the image recognition DSP circuit 242, the image recognition accelerator circuit 249, the GPIO 250, and the UART 252. .

フラッシュメモリ244には、制御LSI234を構成する各種デバイス、例えば、ホストコントローラ241、画像認識DSP回路242、魚眼補正スケーラ回路248、画像認識アクセラレータ回路249が各種処理に用いるパラメータや各種処理に必要なデータが記憶されている。また、フラッシュメモリ244には、上述の露光時間の段階の値を記憶している領域が設けられている。   The flash memory 244 includes various devices constituting the control LSI 234, such as a host controller 241, an image recognition DSP circuit 242, a fisheye correction scaler circuit 248, and an image recognition accelerator circuit 249. Data is stored. Further, the flash memory 244 is provided with an area for storing the value of the above-described exposure time step.

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

図15に示すように、24hドア監視ユニット63は、制御LSI300、RTC(Real Time Clock)301、バッテリー302、ROM303、RAM304、及びEEPROM(登録商標:Electrically Erasable Programmable Read-Only Memory)305を有している。また、24hドア監視ユニット63は、副制御基板72と、ドア開閉監視スイッチ67と、電源基板53bと、に電気的に接続されている。   As shown in FIG. 15, the 24h door monitoring unit 63 includes a control LSI 300, an RTC (Real Time Clock) 301, a battery 302, a ROM 303, a RAM 304, and an EEPROM (registered trademark: Electronically Erasable Programmable Read-Only Memory) 305. ing. 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.

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

制御コントローラ回路306は、ROM303に格納されているプログラムに従って、各種処理を実行する。乱数発生回路308は、フリーランカウンタ(以下、「FRC」と称する場合がある)で構成され、FRCから取得したカウント値を用いて規定の演算を行うことで乱数を発生させる。I/Oポート回路309は、ドア開閉監視スイッチ67に接続されており、ドア開閉監視スイッチ67からフロントドア2bの開閉を示す信号を受信する。また、I/Oポート回路309は、図15では省略したが、ミドルドア41の開閉を検知するドア開閉監視スイッチから、ミドルドア41の開閉を示す信号を受信する。また、以降において、ミドルドア41に関する開閉履歴監視の処理についての説明を省略する。   The control controller circuit 306 executes various processes according to a program stored in the ROM 303. The random number generation circuit 308 is configured by a free-run counter (hereinafter, sometimes referred to as “FRC”), and generates a random number by performing a prescribed calculation using a count value acquired from the FRC. The I / O port circuit 309 is connected to the door opening / closing monitoring switch 67, and receives a signal indicating opening / closing of the front door 2b from the door opening / closing monitoring switch 67. Although not shown in FIG. 15, the I / O port circuit 309 receives a signal indicating the opening / closing of the middle door 41 from a door opening / closing monitoring switch that detects the opening / closing of the middle door 41. In the following, description of the process of monitoring the opening / closing history of the middle door 41 will be omitted.

シリアル通信回路307は、24hドア監視ユニット63に接続されているホスト機器との間でコマンドやデータを送受信する際に用いられる。シリアル通信回路307がホスト機器からコマンドやデータを1バイト受信する毎に、制御LSI300は、例えば、受信割込み処理を実行する。なお、本実施形態では、ホスト機器として、副制御回路101(副制御基板72)に加え、外部コンピュータであるコンピュータ400が含まれる。   The serial communication circuit 307 is used when transmitting and receiving commands and data to and from a host device connected to the 24h door monitoring unit 63. Each time the serial communication circuit 307 receives one byte of a command or data from the host device, the control LSI 300 executes, for example, a reception interrupt process. In the present embodiment, the host device includes a computer 400 as an external computer in addition to the sub-control circuit 101 (sub-control board 72).

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

バッテリー302は、例えばリチウムイオン二次電池で構成されている。バッテリー302は、パチスロ1の電源が切られているときに24hドア監視ユニット63の電源として機能する。このため、24hドア監視ユニット63は、パチスロ1の電源が切られているときも各種処理を行うことが可能となっている。なお、このバッテリー302は、パチスロ1に電源がONになっているときに電源基板53bから供給される電力を蓄電する。なお、パチスロ1の電源が切られている間の電源として、充電が可能な二次電池を例示したが、これに限らず、一次電池(例えば、リチウム電池,アルカリマンガン乾電池)を用いてもよい。   The battery 302 is composed of, for example, a lithium ion secondary battery. The battery 302 functions as a power source for the 24h door monitoring unit 63 when the pachislot 1 is turned off. For this reason, the 24h door monitoring unit 63 can perform various processes even when the power of the pachislot 1 is turned off. The battery 302 stores power supplied from the power supply board 53b when the power is turned on in the pachislot 1. Although the rechargeable secondary battery is exemplified as the power supply while the pachislot 1 is turned off, the present invention is not limited to this, and a primary battery (for example, a lithium battery or an alkaline manganese dry battery) may be used. .

RTC301は計時回路であり、制御LSI300のリクエストに応じて現在時刻を示す情報、すなわち年、月、日、時、分、秒そして曜日を示す情報を出力する。RTC301は、監視側計時手段を構成する。   The RTC 301 is a clock circuit that 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 300. The RTC 301 constitutes monitoring-side clocking means.

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

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

<本発明の機能の概要>
次に、本発明の一実施形態に係る暗号化キー作成、初期化、及び設定読出の各機能の概要について、図16〜図18を参照して説明する。
<Overview of Functions of the Present Invention>
Next, an outline of each function of the encryption key creation, initialization, and setting reading according to the embodiment of the present invention will be described with reference to FIGS.

本実施形態では、図16に示した外部コンピュータ(コンピュータ400)によって、メダルセレクタ201や24hドア監視ユニット63に送信される暗号化キーを含む暗号化キーファイルが作成される。   In the present embodiment, the external computer (computer 400) shown in FIG. 16 creates an encryption key file including an encryption key transmitted to the medal selector 201 and the 24h door monitoring unit 63.

こうした、コンピュータ400による暗号化キーファイルの作成は、コンピュータ400で実行される暗号化キー作成ツール(暗号化キー作成プログラム)によって行われる。また、メダルセレクタ201の暗号化キーファイルや24hドア監視ユニット63の暗号化キーファイルを作成する場合は、図16に示すような、パチスロ1とコンピュータ400が接続された状態である必要はない。   Such creation of the encryption key file by the computer 400 is performed by an encryption key creation tool (encryption key creation program) executed on the computer 400. When creating an encryption key file for the medal selector 201 or an encryption key file for the 24h door monitoring unit 63, the pachislot 1 and the computer 400 do not need to be connected as shown in FIG.

なお、本実施形態では、メダルセレクタ201に送信される暗号化キーは、メダルセレクタ201に記憶され、メダルセレクタ201と副制御回路101との間のデータ通信を暗号化するのに用いられるが、24hドア監視ユニット63に送信される暗号化キーは、24hドア監視ユニット63に記憶される点は、メダルセレクタ201と同様であるが、24hドア監視ユニット63に関して規定される特権コマンドを実行するためのログインパスワードを生成するために用いられる点で、メダルセレクタ201に送信される暗号化キーとは異なる。そのため、24hドア監視ユニット63に送信される暗号化キーは、「扉監視キーコード」とも表記されうる。   In the present embodiment, the encryption key transmitted to the medal selector 201 is stored in the medal selector 201, and is used to encrypt data communication between the medal selector 201 and the sub-control circuit 101. The encryption key transmitted to the 24h door monitoring unit 63 is the same as that of the medal selector 201 in that the encryption key is stored in the 24h door monitoring unit 63, but is for executing a privilege command defined for the 24h door monitoring unit 63. This is different from the encryption key transmitted to the medal selector 201 in that the encryption key is used to generate the login password of the token. Therefore, the encryption key transmitted to the 24h door monitoring unit 63 may be described as a “door monitoring key code”.

また本実施形態では、図16に示すように、パチスロ1のような遊技機に組み込まれるメダルセレクタ201や24hドア監視ユニット63に対してそれぞれ、外部コンピュータであるコンピュータ400が接続され、このコンピュータ400を操作することにより、メダルセレクタ201や24hドア監視ユニット63に対して、上述した暗号化キーを送信するなどの初期化処理を行うことができる。   In the present embodiment, as shown in FIG. 16, a computer 400 as an external computer is connected to a medal selector 201 and a 24h door monitoring unit 63 incorporated in a gaming machine such as the pachislot 1, respectively. By operating, the initialization process such as transmitting the above-mentioned encryption key to the medal selector 201 and the 24h door monitoring unit 63 can be performed.

メダルセレクタ201に関する初期化では、メダルセレクタ201と副制御回路101との間でやりとりされるデータの暗号化を行うための暗号化キーが、メダルセレクタ201に送信され、記憶される。また、24hドア監視ユニット63に関する初期化では、24hドア監視ユニット63に対して(特権コマンド等の実行に必要な)ログインを行うための暗号化キー(ログインパスワードの生成に必要な暗号鍵)や他の各種設定値が、24hドア監視ユニット63に送信され、記憶される。   In initialization related to the medal selector 201, an encryption key for encrypting data exchanged between the medal selector 201 and the sub-control circuit 101 is transmitted to the medal selector 201 and stored. In the initialization relating to the 24h door monitoring unit 63, an encryption key (encryption key required for generating a login password) for logging in to the 24h door monitoring unit 63 (necessary for executing a privileged command or the like) or the like is provided. Other various set values are transmitted to the 24h door monitoring unit 63 and stored.

こうした、コンピュータ400による初期化は、コンピュータ400で実行される初期化ツール(初期化プログラム)によって行われる。   Such initialization by the computer 400 is performed by an initialization tool (initialization program) executed by the computer 400.

またさらに、本実施形態では、コンピュータ400と24hドア監視ユニット63を接続し、24hドア監視ユニット63に記憶されている各種設定情報、及び開閉履歴情報を読み出して診断、表示、保存等を行うドア監視ユニット設定読出ツール(ドア監視ユニット設定読出プログラム)が提供される。   Furthermore, in the present embodiment, the computer 400 is connected to the 24h door monitoring unit 63, and various setting information and opening / closing history information stored in the 24h door monitoring unit 63 are read to perform diagnosis, display, storage, and the like. A monitoring unit setting reading tool (door monitoring unit setting reading program) is provided.

なお、本実施形態では、コンピュータ400は、一般的なパーソナルコンピュータが利用されるが、他の様々なタイプのコンピュータ装置を用いることができる。   In the present embodiment, a general personal computer is used as the computer 400, but various other types of computer devices can be used.

また、図16に示すように、コンピュータ400にオペレーションマシン500を接続するように構成することもでき、そのオペレーションマシン500から、上述したメダルセレクタ201や24hドア監視ユニット63の暗号化キー作成、初期化処理、及び24hドア監視ユニット63の設定読出等を指示することができる。オペレーションマシン500は、キーボード・マウスといった入力装置やディスプレイ装置を備え、遊技機の製造工場等において、遊技機の製造・検査に使用されているコンピュータ装置であり、コンピュータ400に接続することで、コンピュータ400で実行されている各プログラムに対する指示をより効率的に行うことができ、また、当該各プログラムによる表示内容を、(例えば、大画面により)見やすく表示することができる。   Also, as shown in FIG. 16, an operation machine 500 can be connected to the computer 400. From the operation machine 500, the above-described medal selector 201 and the encryption key generation of the 24h door monitoring unit 63 can be performed. It is possible to instruct to perform the conversion process, read the setting of the 24h door monitoring unit 63, and the like. The operation machine 500 includes an input device such as a keyboard and a mouse, and a display device. The operation machine 500 is a computer device used for manufacturing and inspecting a game machine at a game machine manufacturing factory or the like. Instructions for each program executed in 400 can be given more efficiently, and the display contents of each program can be displayed in a legible manner (for example, on a large screen).

メダルセレクタ201を初期化する場合、コンピュータ400とメダルセレクタ201がケーブルを介して接続される。例えば、パチスロ1の組み立てが完了し、メダルセレクタ201がパチスロ1に組み込まれている場合、メダルセレクタ201と副中継基板61(副制御基板72、副制御回路101)を接続するケーブル280(図13参照)を、副中継基板61から一旦外してコンピュータ400に接続し、メダルセレクタ201とコンピュータ400との間でシリアル通信を可能とする。すなわち、メダルセレクタ201とコンピュータ400が接続されている間は、メダルセレクタ201と副中継基板61(副制御基板72、副制御回路101)は接続されていない状態となる。   When initializing the medal selector 201, the computer 400 and the medal selector 201 are connected via a cable. For example, when the assembly of the pachislot 1 is completed and the medal selector 201 is incorporated in the pachislot 1, the cable 280 (FIG. 13) for connecting the medal selector 201 and the sub relay board 61 (the sub control board 72 and the sub control circuit 101) is provided. Is temporarily removed from the sub-relay board 61 and connected to the computer 400 to enable serial communication between the medal selector 201 and the computer 400. That is, while the medal selector 201 and the computer 400 are connected, the medal selector 201 and the sub relay board 61 (the sub control board 72 and the sub control circuit 101) are not connected.

なお、メダルセレクタ201がパチスロ1に取り付けられる前であれば、ケーブル280をそのままコンピュータ400に接続することができる。ケーブル280の端部(副中継基板61に接続されていたコネクタ部)には、例えば、USB−TTLシリアルコンバータケーブルが接続され、それを、コンピュータ400のUSB端子に挿入することで、コンピュータ400とメダルセレクタ201が接続される。   Note that the cable 280 can be directly connected to the computer 400 before the medal selector 201 is attached to the pachislot 1. For example, a USB-TTL serial converter cable is connected to an end portion of the cable 280 (the connector portion connected to the sub-relay board 61), and the cable is inserted into a USB terminal of the computer 400 to connect the computer 400 to the computer 400. The medal selector 201 is connected.

一方、24hドア監視ユニット63の初期化や設定読出をする場合、コンピュータ400と24hドア監視ユニット63がケーブルを介して接続される。例えば、パチスロ1の組み立てが完了し、24hドア監視ユニット63がパチスロ1に組み込まれている場合、24hドア監視ユニット63と副制御基板72を接続するケーブル320(図15参照)を、副制御基板72(副制御回路101)から一旦外してコンピュータ400に接続し、24hドア監視ユニット63とコンピュータ400との間でシリアル通信を可能とする。すなわち、24hドア監視ユニット63とコンピュータ400が接続されている間は、24hドア監視ユニット63と副制御基板72(副制御回路101)は接続されていない状態となる。   On the other hand, when initializing the 24h door monitoring unit 63 and reading the settings, the computer 400 and the 24h door monitoring unit 63 are connected via a cable. For example, when the assembly of the pachislot 1 is completed and the 24h door monitoring unit 63 is incorporated in the pachislot 1, the cable 320 (see FIG. 15) connecting the 24h door monitoring unit 63 and the sub control board 72 is connected to the sub control board. 72 (the sub-control circuit 101) and temporarily connected to the computer 400 to enable serial communication between the 24h door monitoring unit 63 and the computer 400. That is, while the 24h door monitoring unit 63 and the computer 400 are connected, the 24h door monitoring unit 63 and the sub-control board 72 (sub-control circuit 101) are not connected.

なお、24hドア監視ユニット63がパチスロ1に取り付けられる前であれば、ケーブル320をそのままコンピュータ400に接続することができる。   Note that the cable 320 can be directly connected to the computer 400 before the 24h door monitoring unit 63 is attached to the pachislot 1.

なお、パチスロ1のメダルセレクタ201とコンピュータ400を少なくとも含むシステム、又はパチスロ1の24hドア監視ユニット63とコンピュータ400を少なくとも含むシステムは、本発明に係る遊技システムである。   A system including at least the medal selector 201 of the pachislot 1 and the computer 400 or a system including at least the 24h door monitoring unit 63 of the pachislot 1 and the computer 400 is a game system according to the present invention.

図17は、本発明の機能の概要を時系列に示した図である。左側の列は、メダルセレクタ201に関する処理のフローを表しており、右側の列は、24hドア監視ユニット63に関する処理のフローを表している。   FIG. 17 is a diagram showing the outline of the function of the present invention in chronological order. The left column shows the flow of processing related to the medal selector 201, and the right column shows the flow of processing related to the 24h door monitoring unit 63.

最初に、本実施形態に係るパチスロ1が組み立てられる前のタイミングで、メダルセレクタ暗号化キー作成ツール(プログラム)により、メダルセレクタ201に関する暗号化キーファイルを作成する。また、ドア監視ユニット暗号化キー作成ツール(プログラム)により、24hドア監視ユニット63に関する暗号化キーファイルを作成する。これらの暗号化キーファイルは、ログインパスワードを生成するための暗号化キー(ログインパスワードそのものであってもよい)を含むものであるが、それ自体、所定の暗号鍵で暗号化されているファイルである。   First, an encryption key file relating to the medal selector 201 is created by a medal selector encryption key creation tool (program) at a timing before the pachislot 1 according to the present embodiment is assembled. Also, an encryption key file for the 24h door monitoring unit 63 is created by a door monitoring unit encryption key creation tool (program). These encryption key files include an encryption key (may be the login password itself) for generating a login password, but are themselves files encrypted with a predetermined encryption key.

パチスロ1の組み立てが完了すると、左側の列に示す通り、メダルセレクタ201に関し、まず、メダルセレクタ初期化ツールで、上述の暗号化キーファイルが読み込まれる。次に、メダルセレクタ初期化ツールが、メダルセレクタ201との接続を確立する。なお、ここでは、暗号化キーファイルの読み込みと、メダルセレクタ初期化ツールとメダルセレクタ201との間の接続の確立は、どちらが先でもよい。   When the assembling of the pachislot 1 is completed, the above-mentioned encryption key file is first read by the medal selector initialization tool for the medal selector 201 as shown in the left column. Next, the medal selector initialization tool establishes a connection with the medal selector 201. In this case, either of the reading of the encryption key file and the establishment of the connection between the medal selector initialization tool and the medal selector 201 may be performed first.

次に、メダルセレクタ初期化ツールで、メダルセレクタ201の初期化を行う。より詳細には、メダルセレクタ初期化ツールは、読み取った暗号化キーファイルを復号化して元の暗号化キーを取得し、これをメダルセレクタ201に送信する。メダルセレクタ201は、コンピュータ400から暗号化キーを受信すると、これを新たな秘密鍵として、例えば、フラッシュメモリ244に記憶する。この秘密鍵は、メダルセレクタ201と副制御回路101との間のデータ通信において、送受信データの暗号化に用いられる。   Next, the medal selector 201 is initialized by a medal selector initialization tool. More specifically, the medal selector initialization tool decrypts the read encryption key file to obtain the original encryption key, and transmits this to the medal selector 201. Upon receiving the encryption key from the computer 400, the medal selector 201 stores the encryption key as a new secret key in, for example, the flash memory 244. This secret key is used for encrypting transmitted / received data in data communication between the medal selector 201 and the sub control circuit 101.

また、メダルセレクタ初期化ツールで元の暗号化キーをメダルセレクタ201に送信する場合に、当該暗号化キーを所定の別の暗号鍵で暗号化して送信することができる。   Further, when the original encryption key is transmitted to the medal selector 201 by the medal selector initialization tool, the encryption key can be transmitted after being encrypted with another predetermined encryption key.

他方、パチスロ1の組み立てが完了すると、右側の列に示す通り、24hドア監視ユニット63に関し、まず、ドア監視ユニット初期化ツールで、上述の暗号化キーファイルが読み込まれる。次に、ドア監視ユニット初期化ツールが、24hドア監視ユニット63との接続を確立する。なお、ここでは、暗号化キーファイルの読み込みと、ドア監視ユニット初期化ツールと24hドア監視ユニット63との間の接続の確立は、どちらが先でもよい。   On the other hand, when the assembly of the pachislot 1 is completed, as shown in the right column, regarding the 24h door monitoring unit 63, first, the above-mentioned encryption key file is read by the door monitoring unit initialization tool. Next, the door monitoring unit initialization tool establishes a connection with the door monitoring unit 63 for 24h. In this case, either of the reading of the encryption key file and the establishment of the connection between the door monitoring unit initialization tool and the 24h door monitoring unit 63 may be performed first.

次に、ドア監視ユニット初期化ツールで、24hドア監視ユニット63の初期化と各種設定値の設定を行う。より詳細には、ドア監視ユニット初期化ツールは、読み取った暗号化キーファイルを復号化して元の暗号化キーを取得し、これを24hドア監視ユニット63に送信する。24hドア監視ユニット63は、コンピュータ400から暗号化キーを受信すると、これを新たな秘密鍵(ログインパスワード)として、例えば、EEPROM305に記憶する。この秘密鍵は、24hドア監視ユニット63において、特権コマンド等の実行に必要なログインを行うためのパスワードとして用いられる。この他、各種設定値が、24hドア監視ユニット63に送信され、24hドア監視ユニット63は、受信した設定値で、対応する設定を更新する。   Next, the door monitoring unit initialization tool initializes the 24h door monitoring unit 63 and sets various setting values. More specifically, the door monitoring unit initialization tool decrypts the read encryption key file to obtain the original encryption key, and transmits it to the door monitoring unit 63 for 24h. When receiving the encryption key from the computer 400, the 24h door monitoring unit 63 stores the encryption key as a new secret key (login password) in, for example, the EEPROM 305. This secret key is used in the 24h door monitoring unit 63 as a password for performing login necessary for executing a privileged command or the like. In addition, various setting values are transmitted to the 24h door monitoring unit 63, and the 24h door monitoring unit 63 updates the corresponding settings with the received setting values.

また、ドア監視ユニット初期化ツールで元の暗号化キーと設定値を24hドア監視ユニット63に送信する場合に、当該暗号化キーと設定値を所定の別の暗号鍵で暗号化して送信することができる。   When the original encryption key and the set value are transmitted to the door monitoring unit 63 for 24h by the door monitoring unit initialization tool, the encryption key and the set value are encrypted with another predetermined encryption key and transmitted. Can be.

なお、この例では、パチスロ1の組み立てが完了し、メダルセレクタ201と24hドア監視ユニット63がパチスロ1に組み込まれた後で初期化を行うものであるが、メダルセレクタ201と24hドア監視ユニット63は、それぞれアセンブリ部品として組立工場に配送されるので、これらをパチスロに組み込む前に、上述した初期化を行うようにすることもできる。   In this example, initialization is performed after the assembly of the pachislot 1 is completed and the medal selector 201 and the 24h door monitoring unit 63 are assembled into the pachislot 1. However, the medal selector 201 and the 24h door monitoring unit 63 are initialized. Are delivered to the assembly plant as assembly parts, so that the above-mentioned initialization can be performed before assembling them into the pachislot.

図18は、本発明の機能の概要を時系列に示した図であり、24hドア監視ユニット63の設定読出を行うドア監視ユニット設定読出ツールの処理と、これに関連する事象をフローとして表している。   FIG. 18 is a diagram showing the outline of the function of the present invention in chronological order. The process of the door monitoring unit setting reading tool for reading the setting of the 24h door monitoring unit 63 and the events related thereto are represented as a flow. I have.

ドア監視ユニット設定読出ツールを利用する代表的な例として、リユースのためにパチスロを回収した場合と、ホール又は営業所からパチスロに関して不具合発生の報告があった場合とに大きく分けられる。   A typical example of using the door monitoring unit setting reading tool is roughly divided into a case where a pachislot is collected for reuse and a case where a defect has been reported regarding a pachislot from a hall or a business office.

リユースのためにパチスロを回収した場合、リユースするための動作確認を行って、不具合があるかどうかをチェックする。   When a pachislot is collected for reuse, confirm the operation for reuse and check if there is any problem.

次に、ドア監視ユニット設定読出ツールを実行するコンピュータ400と、24hドア監視ユニット63の接続を、上述したようなケーブル320を用いて行う。この場合、例えば、工場や検査場において、パチスロ1に取り付けられた状態の24hドア監視ユニット63に対してコンピュータ400を接続するが、パチスロ1から取り外された状態の24hドア監視ユニット63とコンピュータ400を接続してもよい。   Next, the connection between the computer 400 that executes the door monitoring unit setting reading tool and the 24h door monitoring unit 63 is performed using the cable 320 as described above. In this case, for example, in a factory or an inspection site, the computer 400 is connected to the 24h door monitoring unit 63 attached to the pachislot 1, but the 24h door monitoring unit 63 removed from the pachislot 1 and the computer 400 are connected. May be connected.

次に、コンピュータ400実行されるドア監視ユニット設定読出ツールで、24hドア監視ユニット63に記憶されているデータを読み出す。ここで読み出すデータには、例えば、各種設定情報、及び開閉履歴情報が含まれる。   Next, the data stored in the 24h door monitoring unit 63 is read by the door monitoring unit setting reading tool executed by the computer 400. The data read here includes, for example, various setting information and opening / closing history information.

ここで、ドア監視ユニット設定読出ツールは、読み出したデータを表示するとともに、これらのデータに基づいて不具合を自動的に解析し、所定の条件を満たさない項目は、その表示領域を目立つ色で表示するなど、正常な他の項目に係る表示領域とは異なる表示態様で表示する。   Here, the door monitoring unit setting reading tool displays the read data and automatically analyzes a defect based on the data. Items that do not satisfy a predetermined condition are displayed in a conspicuous color in the display area. For example, the display area is displayed in a display mode different from the display area related to other normal items.

このような、ドア監視ユニット設定読出ツールによるパチスロの診断は、動作確認において実際に不具合が発見された場合だけでなく、不具合が発見されていない(潜在的な不具合の可能性を有する)場合にも行うことができる。   Such a pachislot diagnosis by the door monitoring unit setting reading tool is performed not only when a malfunction is actually found in the operation check but also when a malfunction is not found (it has a potential malfunction). Can also be done.

一方、ホール等から不具合発生の報告があった場合、問題のパチスロを回収し、上記と同様の、不具合発見のためのフローを実行することができる。ただし、不具合が発生していることが分かっているので、動作確認による不具合発見のプロセスは省略することができる。   On the other hand, when a failure is reported from a hall or the like, the pachislot in question can be collected, and the same flow for finding a failure as described above can be executed. However, since it is known that a problem has occurred, the process of finding the problem by checking the operation can be omitted.

また、ホール等から不具合発生の報告があった場合において、エンジニア、営業マン等が現地に赴き、問題のパチスロの調査を行うというルートも考えられる。この場合、ホール等に設置されているパチスロに取り付けられた状態の24hドア監視ユニット63に対してコンピュータ400を接続し、ドア監視ユニット設定読出ツールによる診断を行う。なお、この場合、コンピュータ400は、例えば、携帯型のノートパソコンといったタイプのコンピュータである。   In addition, when a failure is reported from a hall or the like, a route may be considered in which an engineer, a salesperson, or the like goes to the site and investigates a pachislot in question. In this case, the computer 400 is connected to the 24h door monitoring unit 63 attached to a pachislot installed in a hall or the like, and diagnosis is performed by a door monitoring unit setting reading tool. In this case, the computer 400 is, for example, a type of computer such as a portable notebook personal computer.

<暗号化キー作成ツール、初期化ツール等を実行するコンピュータの構成>
次に、図19を参照して、コンピュータ400のハードウェア構成の例について説明する。ただし、図19のコンピュータ400は、一般的なパーソナルコンピュータについての代表的な構成を例示したにすぎない。携帯端末や専用装置などを含む、他の様々なコンピュータ装置をコンピュータ400として利用することができる。
<Configuration of computer that executes encryption key creation tool, initialization tool, etc.>
Next, an example of a hardware configuration of the computer 400 will be described with reference to FIG. However, the computer 400 in FIG. 19 merely illustrates a typical configuration of a general personal computer. Various other computer devices including a mobile terminal and a dedicated device can be used as the computer 400.

コンピュータ400は、CPU401、RAM402、ROM(Read Only Memory)403、ネットワークインタフェース404、オーディオ制御部405、マイクロフォン406、スピーカ407、ディスプレイコントローラ408、ディスプレイ409、入力機器インタフェース410、キーボード411、マウス412、外部記憶装置413、外部記録媒体インタフェース414、シリアルインタフェース415、外部I/Oインタフェース416、及びこれらの構成要素を互いに接続するバス417を含んでいる。   The computer 400 includes a CPU 401, a RAM 402, a ROM (Read Only Memory) 403, a network interface 404, an audio control unit 405, a microphone 406, a speaker 407, a display controller 408, a display 409, an input device interface 410, a keyboard 411, a mouse 412, and an external device. It includes a storage device 413, an external recording medium interface 414, a serial interface 415, an external I / O interface 416, and a bus 417 connecting these components to each other.

CPU401は、コンピュータ400の各構成要素の動作を制御し、OSの制御下で、本発明に係る各種ツール(例えば、暗号化キー作成ツール、初期化ツール、設定読出ツール等)の実行を制御する。   The CPU 401 controls the operation of each component of the computer 400, and controls the execution of various tools (for example, an encryption key creation tool, an initialization tool, a setting reading tool, and the like) under the control of the OS. .

RAM402には、CPU401で実行される各処理を実行するためのプログラムや、それらのプログラムが実行中に使用するデータが一時的に格納される。ROM403には、コンピュータ400の起動時に実行されるプログラム等が格納される。   The RAM 402 temporarily stores programs for executing the processes executed by the CPU 401 and data used during the execution of the programs. The ROM 403 stores programs executed when the computer 400 is activated.

ネットワークインタフェース404は、ネットワーク420に接続するためのインタフェースである。ネットワーク420は、例えば、インターネット等を含むネットワークである。   The network interface 404 is an interface for connecting to the network 420. The network 420 is a network including the Internet, for example.

オーディオ制御部405は、マイクロフォン406とスピーカ407を制御して音声の入出力を制御する。ディスプレイコントローラ408は、CPU401が発行する描画命令を実際に処理するための専用コントローラである。ディスプレイ409は、例えば、LCDで構成される表示装置である。   The audio control unit 405 controls the microphone 406 and the speaker 407 to control the input and output of sound. The display controller 408 is a dedicated controller for actually processing a drawing command issued by the CPU 401. The display 409 is a display device including, for example, an LCD.

入力機器インタフェース410は、キーボード411やマウス412から入力された信号を受信して、その信号パターンに応じて所定の指令をCPU401に送信する。   The input device interface 410 receives a signal input from the keyboard 411 or the mouse 412 and transmits a predetermined command to the CPU 401 according to the signal pattern.

外部記憶装置413は、例えば、ハードディスクや半導体メモリのような記憶装置であり、この装置内には上述したプログラムや、これらのプログラムに関連するデータが記録される。   The external storage device 413 is, for example, a storage device such as a hard disk or a semiconductor memory, in which the programs described above and data related to these programs are recorded.

外部記録媒体インタフェース414は、外部記録媒体430にアクセスして、そこに記録されているデータを読み取る。外部記録媒体430は、例えば、可搬型のフラッシュメモリなどである。CPU401で実行され、本発明の各機能を実現するためのプログラムは、この外部記録媒体インタフェース414を介して外部記録媒体430から提供されうる。また、本発明の各機能を実現するためのプログラムの他の流通形態としては、ネットワーク上の所定のサーバから、ネットワーク420及びネットワークインタフェース404を介して外部記憶装置413やRAM402に格納されるというルート等も考えられる。   The external recording medium interface 414 accesses the external recording medium 430 and reads data recorded therein. The external recording medium 430 is, for example, a portable flash memory. A program that is executed by the CPU 401 and realizes each function of the present invention can be provided from the external recording medium 430 via the external recording medium interface 414. As another distribution form of the program for realizing each function of the present invention, a route that is stored in the external storage device 413 or the RAM 402 from a predetermined server on the network via the network 420 and the network interface 404 is used. Etc. are also conceivable.

また、外部記憶装置413や外部記録媒体430といった記憶媒体に、本発明の暗号化キーファイルを出力し、記憶することも可能である。   Further, the encryption key file of the present invention can be output and stored in a storage medium such as the external storage device 413 or the external recording medium 430.

シリアルインタフェース415は、メダルセレクタ201とケーブル280を介して接続し、初期化のためのデータ送受信を制御する。また、シリアルインタフェース415は、24hドア監視ユニット63とケーブル320を介して接続し、初期化や設定読出のためのデータ送受信を制御する。   The serial interface 415 is connected to the medal selector 201 via the cable 280, and controls data transmission / reception for initialization. The serial interface 415 is connected to the 24h door monitoring unit 63 via the cable 320, and controls data transmission and reception for initialization and setting reading.

外部I/Oインタフェース416は、上述したオペレーションマシン500と接続し、コンピュータ400で実行される各種ツールに対する入力をオペレーションマシン500の入力装置から受信し、当該各種ツールの表示データをオペレーションマシン500のディスプレイ装置に出力する等、各種データ送受信の制御を行う。   The external I / O interface 416 is connected to the operation machine 500 described above, receives inputs for various tools executed by the computer 400 from an input device of the operation machine 500, and displays display data of the various tools on the display of the operation machine 500. It controls the transmission and reception of various data such as output to the device.

<メダルセレクタ暗号化キー作成ツールのGUI>
次に、メダルセレクタ201に送信する暗号化キーを作成するメダルセレクタ暗号化キー作成ツール(プログラム)のGUI(Graphical User Interface)について、図20、及び図21を参照して説明する。
<GUI of the medal selector encryption key creation tool>
Next, a GUI (Graphical User Interface) of a medal selector encryption key creation tool (program) for creating an encryption key to be transmitted to the medal selector 201 will be described with reference to FIG. 20 and FIG.

メダルセレクタ暗号化キー作成ツールは、上述のようにコンピュータ400において実行され、そのツールの画面は、コンピュータ400のディスプレイ409に表示され、入力・指示等は、キーボード411やマウス412等を用いて行われる。   The medal selector encryption key creation tool is executed in the computer 400 as described above, and the screen of the tool is displayed on the display 409 of the computer 400, and inputs and instructions are performed using the keyboard 411, the mouse 412, and the like. Will be

図20Aには、メダルセレクタ暗号化キー作成ツールの暗号化キー作成画面501が示されている。暗号化キー作成画面501には、作成タブの選択で前面に表示されるよう制御された作成表示部502が含まれ、作成表示部502には、暗号化キー入力部503、初期化ベクトル表示部504、チェックサム表示部505、作成日時表示部506、及び作成指示ボタン507が示されている。図20Aは、暗号化キーが入力される前の暗号化キー作成画面501を示している。   FIG. 20A shows an encryption key creation screen 501 of the medal selector encryption key creation tool. The encryption key creation screen 501 includes a creation display unit 502 controlled to be displayed on the front by selecting a creation tab. The creation display unit 502 includes an encryption key input unit 503 and an initialization vector display unit. 504, a checksum display unit 505, a creation date and time display unit 506, and a creation instruction button 507 are shown. FIG. 20A shows an encryption key creation screen 501 before an encryption key is input.

図20Bには、図20Aと同様の暗号化キー作成画面501が示されているが、ここでは、ユーザによって暗号化キー入力部503に暗号化キーが入力された後で、暗号化キー入力部503と初期化ベクトル表示部504にそれぞれ、値が表示されている状態である。ここで、ユーザが、作成指示ボタン507をマウス412で押下等し(矢印508)、暗号化キーファイルの作成を指示する。   FIG. 20B shows an encryption key creation screen 501 similar to that shown in FIG. 20A. Here, after the user inputs the encryption key to encryption key input section 503, the encryption key input section This is a state where values are displayed on the 503 and the initialization vector display unit 504, respectively. Here, the user presses the creation instruction button 507 with the mouse 412 (arrow 508) to instruct creation of an encryption key file.

暗号化キー入力部503に暗号化キーを入力する場合、ユーザは、暗号化キー入力部503に、例えば、16進表記文字で、32桁(16バイト、128bit)の値を入力する。キー管理者は、それぞれ、又は一群のメダルセレクタ201に対して1つの暗号化キーを設定し、その暗号化キーを、例えば、別途、テキストファイル等の形式で記憶しておくようにする。また、暗号化キー入力部503に対して、暗号化キーを記憶したテキストファイルをドラッグ&ドロップ(又はテキストをコピー&ペースト)して、32桁の入力を行うようにすることもできる。   When inputting the encryption key to the encryption key input unit 503, the user inputs a value of 32 digits (16 bytes, 128 bits) in, for example, hexadecimal characters to the encryption key input unit 503. The key manager sets one encryption key for each or a group of the medal selectors 201, and stores the encryption key separately, for example, in the form of a text file or the like. Alternatively, a text file storing the encryption key can be dragged and dropped (or text copied and pasted) into the encryption key input unit 503 to input a 32-digit number.

暗号化キー入力部503に暗号化キーが入力されるのに応じて、初期化ベクトル表示部504には、ランダムに生成された値が、例えば、16進表記文字で、32桁(16バイト、128bit)表示される。図20Bでは、便宜上、16進表記文字「F」が、暗号化キー入力部503と初期化ベクトル表示部504に表示されているが、暗号化キー入力部503と初期化ベクトル表示部504に、入力された16進表記文字をそのまま表示させてもよいし、入力とともに、「*」等の文字で隠蔽するようにしてもよい。   In response to the input of the encryption key to the encryption key input unit 503, the initialization vector display unit 504 displays a randomly generated value in, for example, 32 hexadecimal characters (16 bytes, 128 bits). In FIG. 20B, for convenience, the hexadecimal notation character “F” is displayed on the encryption key input unit 503 and the initialization vector display unit 504, but the encryption key input unit 503 and the initialization vector display unit 504 display The input hexadecimal notation character may be displayed as it is, or may be hidden by a character such as "*" together with the input.

ここで、ユーザにより、作成指示ボタン507が押下されると、チェックサム表示部505に、暗号化キーと初期化ベクトルに基づいて計算された誤り検出用のチェックサムを計算して表示し、暗号化キーファイルを作成する。暗号化キーファイルの作成が完了した場合に、暗号化キー作成画面501の所定のエリアに、暗号化キーファイルの作成が完了した旨のメッセージを表示するようにしてもよい。図20Bでは、作成日時表示部506に作成日時が表示されていないが、暗号化キーファイルが作成された時点で、その作成日時を作成日時表示部506に表示するようにしてもよい。   Here, when the user presses the creation instruction button 507, a checksum for error detection calculated based on the encryption key and the initialization vector is calculated and displayed on the checksum display unit 505, and the encryption is performed. Create a key file. When the creation of the encryption key file is completed, a message to the effect that the creation of the encryption key file has been completed may be displayed in a predetermined area of the encryption key creation screen 501. In FIG. 20B, the creation date and time are not displayed on the creation date and time display unit 506, but the creation date and time may be displayed on the creation date and time display unit 506 when the encryption key file is created.

作成された暗号化キーファイルは、メダルセレクタ暗号化キー作成ツールが内部に保持する(又は、所定の記憶手段に記憶する)暗号化キーファイル作成用暗号鍵で、暗号化キーと初期化ベクトルを暗号化したデータを含むものである。暗号化キーファイルは、コンピュータ400の記憶手段(外部記憶装置413)等に記憶される。ここで、例えば、暗号化キーファイルの暗号化方式はAESであり、フロックサイズは128bit、暗号鍵長は128bit、ブロック暗号モードはCBCモードである。初期化ベクトルは、例えば、暗号化キーファイル作成時にランダムに作成され、暗号化キーの先頭に配置された位置関係で、暗号化キーとともに暗号化される。暗号化キーファイルは、所定の記憶形式(例えば、XMLファイル形式)で作成され、また、暗号化キーファイルには、上述したチェックサムの値と作成日時が含まれる。   The created encryption key file is an encryption key for creating an encryption key file internally held by the medal selector encryption key creation tool (or stored in a predetermined storage means). It contains encrypted data. The encryption key file is stored in a storage unit (external storage device 413) of the computer 400 or the like. Here, for example, the encryption method of the encryption key file is AES, the block size is 128 bits, the encryption key length is 128 bits, and the block encryption mode is CBC mode. For example, the initialization vector is randomly created when the encryption key file is created, and is encrypted together with the encryption key in a positional relationship arranged at the head of the encryption key. The encryption key file is created in a predetermined storage format (for example, an XML file format), and the encryption key file includes the above-described checksum value and creation date and time.

図21には、メダルセレクタ暗号化キー作成ツールの暗号化キー読込画面511が示されている。暗号化キー読込画面511には、作成タブの選択で前面に表示されるよう制御された読込表示部512が含まれ、読込表示部512には、暗号化キー表示部513、初期化ベクトル表示部514、チェックサム表示部515、作成日時表示部516、及び読込指示ボタン517が示されている。図21は、読込指示ボタン517がマウス412で押下等され(矢印518)、読み込みたい暗号化キーファイルの名前を指定すると、その指定された暗号化キーファイルを読み込み、上述した暗号化キーファイル作成用暗号鍵で復号化され、暗号化キー表示部513と初期化ベクトル表示部514に、それぞれ対応する値が表示される。   FIG. 21 shows an encryption key reading screen 511 of the medal selector encryption key creation tool. The encryption key reading screen 511 includes a reading display unit 512 controlled to be displayed on the foreground by selecting a creation tab. The reading display unit 512 includes an encryption key display unit 513, an initialization vector display unit. 514, a checksum display section 515, a creation date and time display section 516, and a read instruction button 517 are shown. FIG. 21 shows that when the read instruction button 517 is pressed with the mouse 412 (arrow 518) and the name of the encryption key file to be read is specified, the specified encryption key file is read and the above-described encryption key file creation is performed. Then, the corresponding value is displayed on the encryption key display unit 513 and the initialization vector display unit 514.

なお、図21の例では、暗号化キー等の漏洩防止のために、復号化された元の暗号化キーと初期化ベクトルは一律、文字「X」で表示される。チェックサムは、復号化された元の暗号化キーと初期化ベクトルに基づいて計算され、チェックサム表示部515に表示される。チェックサム表示部515に表示された値と、暗号化キーファイルに記憶されている暗号化時点のチェックサムの値を比較し、比較結果を暗号化キー読込画面511の所定のエリアに表示するようにしてもよい。作成日時表示部516には、暗号化キーファイルに含まれている作成日時を表示する。   In the example of FIG. 21, the decrypted original encryption key and the initialization vector are uniformly represented by the letter "X" in order to prevent the leakage of the encryption key and the like. The checksum is calculated based on the decrypted original encryption key and the initialization vector, and displayed on the checksum display unit 515. The value displayed on the checksum display unit 515 is compared with the checksum value at the time of encryption stored in the encryption key file, and the comparison result is displayed in a predetermined area of the encryption key reading screen 511. It may be. The creation date and time display section 516 displays the creation date and time included in the encryption key file.

このようなチェックサムの値と作成日時とで、暗号化キーファイルの正当性を確認することができるが、暗号化キー表示部513に、復号化された暗号化キーの一部又は全部をそのまま表示して、元の暗号化キーと一致するか否かをチェックできるようにすることもできる。   The validity of the encryption key file can be confirmed by such a checksum value and the creation date and time. However, the encryption key display unit 513 displays part or all of the decrypted encryption key as it is. It can also be displayed so that it can be checked whether it matches the original encryption key.

<メダルセレクタ初期化ツールのGUI>
次に、メダルセレクタ201の初期化処理を行うメダルセレクタ初期化ツール(プログラム)のGUIについて、図22を参照して説明する。
<GAL of the medal selector initialization tool>
Next, a GUI of a medal selector initialization tool (program) for initializing the medal selector 201 will be described with reference to FIG.

メダルセレクタ初期化ツールは、上述のようにコンピュータ400において実行され、そのツールの画面は、コンピュータ400のディスプレイ409に表示され、入力・指示等は、キーボード411やマウス412等を用いて行われる。   The medal selector initialization tool is executed in the computer 400 as described above, and the screen of the tool is displayed on the display 409 of the computer 400, and inputs and instructions are performed using the keyboard 411, the mouse 412, and the like.

図22Aには、メダルセレクタ初期化ツールの初期化指示画面521が示されている。初期化指示画面521には、暗号化キーIVチェックサム表示部522、外部I/O通信状態表示部523、初期化ボタン524、ステータス表示部525が示されている。図22Aは、メダルセレクタ201の初期化処理を行う前の初期化指示画面521を示している。   FIG. 22A shows an initialization instruction screen 521 of the medal selector initialization tool. The initialization instruction screen 521 shows an encryption key IV checksum display section 522, an external I / O communication state display section 523, an initialization button 524, and a status display section 525. FIG. 22A shows an initialization instruction screen 521 before the initialization processing of the medal selector 201 is performed.

この場合、メダルセレクタ初期化ツールが保存された外部記憶装置413のフォルダに記憶されている、暗号化キーファイル(XMLファイル)が読み込まれ、当該XMLファイルに含まれるチェックサムが、暗号化キーIVチェックサム表示部522に表示される。ここで、暗号化キーファイルに含まれる暗号化キーと初期化ベクトルを復号化した後、チェックサムを計算して、暗号化キーIVチェックサム表示部522に表示してもよい。また、暗号化キーファイルに含まれる作成日時を表示するようにしてもよい。   In this case, the encryption key file (XML file) stored in the folder of the external storage device 413 in which the medal selector initialization tool is stored is read, and the checksum included in the XML file is used as the encryption key IV. It is displayed on the checksum display section 522. Here, after decrypting the encryption key and the initialization vector included in the encryption key file, a checksum may be calculated and displayed on the encryption key IV checksum display unit 522. Further, the creation date and time included in the encryption key file may be displayed.

また、このコンピュータ400は、オペレーションマシン500に接続されておらず、外部I/O通信状態表示部523には、「接続なし」の表示がされている。オペレーションマシン500に接続されている場合、外部I/O通信状態表示部523には、例えば「COM1接続」といった表示がされる。   Further, the computer 400 is not connected to the operation machine 500, and the external I / O communication status display section 523 displays "No connection". When connected to the operation machine 500, the external I / O communication status display section 523 displays, for example, "COM1 connection".

また、ステータス表示部525には、初期化がまだされていない場合、「未初期化」と表示され、初期化が完了すると「初期化OK」と表示され、初期化においてエラー等が発生すると「初期化NG」の表示がされる。   Further, the status display unit 525 displays “uninitialized” when the initialization has not been performed yet, displays “initialization OK” when the initialization is completed, and displays “error initialization” when an error occurs in the initialization. "Initialization NG" is displayed.

ここで、メダルセレクタ初期化ツールのユーザが、初期化ボタン524をマウス412で押下等すると(矢印526)、メダルセレクタ初期化ツールは、当該ツールが内部に保持する(又は、所定の記憶手段に記憶する)暗号化キーファイル作成用暗号鍵で、指定された暗号化キーファイルを復号化し、復号化された暗号化キーと初期化ベクトルをメダルセレクタ201に送信する。   Here, when the user of the medal selector initialization tool presses the initialization button 524 with the mouse 412 (arrow 526), the medal selector initialization tool holds the medal selector initialization tool internally (or stores it in a predetermined storage unit). The designated encryption key file is decrypted with the encryption key for creating the encryption key file (to be stored), and the decrypted encryption key and the initialization vector are transmitted to the medal selector 201.

その後、メダルセレクタ初期化ツールは、復号化された暗号化キーと初期化ベクトルが、メダルセレクタ201によって正常に受信されたことを、メダルセレクタ201から受信した所定の暗号化データを復号化して解析することにより判断し、メダルセレクタ201による正常な受信が確認できた場合に、図22Bの初期化指示画面521に示すように、ステータス表示部525に、「初期化OK」と表示する。   Thereafter, the medal selector initialization tool analyzes that the decrypted encryption key and the initialization vector have been normally received by the medal selector 201 by decrypting predetermined encrypted data received from the medal selector 201. When normal reception by the medal selector 201 is confirmed, "initialization OK" is displayed on the status display section 525 as shown on an initialization instruction screen 521 in FIG. 22B.

また、メダルセレクタ初期化ツールは、復号化された暗号化キーと初期化ベクトルをメダルセレクタ201に送信する場合に、メダルセレクタ201との間で共有する暗号鍵を用いて暗号化したうえで送信するようにしてもよい。   When transmitting the decrypted encryption key and the initialization vector to the medal selector 201, the medal selector initialization tool encrypts the decrypted key and the initialization vector using the encryption key shared with the medal selector 201 and then transmits the encrypted key. You may make it.

こうした初期化処理には、時間がかかる場合があるため、初期化の進行状況をプログレッシブバー(ステータスバー)で表示するようにしてもよい。   Since such initialization processing may take time, the progress of initialization may be displayed on a progressive bar (status bar).

このような、メダルセレクタ暗号化キー作成化ツールとメダルセレクタ初期化ツールの利用により、暗号化キーを簡単に作成することができ、かつ安全性が高い状態で暗号化キーを作成、保持できる(例えば、キー管理者は、各メダルセレクタの暗号化キーを、暗号化された状態の暗号化キーファイルとして保持することができる)。また、これによって、メダルセレクタ201のような周辺機器を遊技機に組み込む際の作業の効率化を図ることもできる。   By using such a medal selector encryption key creation tool and a medal selector initialization tool, an encryption key can be easily created, and an encryption key can be created and held in a highly secure state ( For example, the key manager can hold the encryption key of each medal selector as an encrypted encryption key file.) This also makes it possible to increase the efficiency of work when a peripheral device such as the medal selector 201 is incorporated into a gaming machine.

さらに、遊技機において、主制御回路91と副制御回路101との間の通信データを暗号化するだけでなく、(メダルセレクタ暗号化キー作成化ツールとメダルセレクタ初期化ツールによってメダルセレクタ201に提供された暗号化キーを用いて)メダルセレクタ201と副制御回路101との間の通信データを暗号化するため、メダルセレクタ201と副制御回路101との間で送受信されるデータのセキュリティを、高いレベルで維持することができる。   Further, in the gaming machine, the communication data between the main control circuit 91 and the sub-control circuit 101 is not only encrypted but also provided to the medal selector 201 by a medal selector encryption key creation tool and a medal selector initialization tool. Since the communication data between the medal selector 201 and the sub-control circuit 101 is encrypted using the encrypted encryption key), the security of data transmitted and received between the medal selector 201 and the sub-control circuit 101 is increased. Can be maintained at the level.

<メダルセレクタと副制御回路・外部コンピュータ間で送受信されるコマンド>
次に、図23を参照し、メダルセレクタ201と副制御回路101の間で送受信されるコマンド、及びメダルセレクタ201と外部コンピュータ(コンピュータ400)の間で送受信されるコマンドについて説明する。図23は、メダルセレクタ201と副制御回路101の間、及びメダルセレクタ201とコンピュータ400の間で送受信されるコマンドの一覧表である。
<Commands transmitted / received between medal selector and sub-control circuit / external computer>
Next, commands transmitted and received between the medal selector 201 and the sub-control circuit 101 and commands transmitted and received between the medal selector 201 and an external computer (computer 400) will be described with reference to FIG. FIG. 23 is a list of commands transmitted and received between the medal selector 201 and the sub-control circuit 101 and between the medal selector 201 and the computer 400.

なお、副制御回路101やコンピュータ400がメダルセレクタ201へ送信するコマンドは全て、副制御回路101、又は、コンピュータ400とメダルセレクタ201が共有する暗号鍵で暗号化されている。   Note that all commands transmitted from the sub-control circuit 101 and the computer 400 to the medal selector 201 are encrypted with an encryption key shared by the sub-control circuit 101 or the computer 400 and the medal selector 201.

[メダルセレクタが送信するコマンド]
まず、メダルセレクタ201が送信するコマンドについて説明する。図23に示すように、当該コマンドには、起動完了コマンド、判定完了コマンド、メダルセレクタエラーコマンド、メダルセレクタ無操作コマンド、ACKコマンド、NAKコマンドがある。いずれのコマンドも、2バイトの送信カウンタ(CNT)と、DAT0〜DAT6からなるパラメータを含んで構成されている。なお、本実施形態において、DAT0〜DAT6は、それぞれ1バイト(ビット0〜ビット7)のデータである。また、各種コマンドのデータ長は、送信カウンタを加えた9バイトに設定されているが、このデータ長は適宜設定可能である。
[Command sent by the medal selector]
First, a command transmitted by the medal selector 201 will be described. As shown in FIG. 23, the commands include a start completion command, a determination completion command, a medal selector error command, a medal selector non-operation command, an ACK command, and a NAK command. Each command is configured to include a 2-byte transmission counter (CNT) and parameters including DAT0 to DAT6. In the present embodiment, DAT0 to DAT6 are each 1-byte (bit 0 to bit 7) data. The data length of each command is set to 9 bytes including the transmission counter, but this data length can be set as appropriate.

メダルセレクタ201が送信するコマンドにおける送信カウンタ(CNT)の初期値には、メダルセレクタ201の起動回数が設定されている。この送信カウンタの値は、メダルセレクタ201がコマンドを送信する度に1が加算される。   The activation count of the medal selector 201 is set in the initial value of the transmission counter (CNT) in the command transmitted by the medal selector 201. The value of the transmission counter is incremented by one each time the medal selector 201 transmits a command.

なお、メダルセレクタ201から副制御回路101に対しては、起動完了コマンド、判定完了コマンド、メダルセレクタエラーコマンド、メダルセレクタ無操作コマンド、ACKコマンド、及びNAKコマンドが送信される。また、これらのコマンドは、本発明においては、メダルセレクタ201がコンピュータ400から受信した暗号化キーで暗号化され、副制御回路101に送信される。   Note that a start completion command, a determination completion command, a medal selector error command, a medal selector non-operation command, an ACK command, and a NAK command are transmitted from the medal selector 201 to the sub control circuit 101. In the present invention, these commands are encrypted by the medal selector 201 using the encryption key received from the computer 400 and transmitted to the sub control circuit 101.

一方、メダルセレクタ201からコンピュータ400に対しては、基本的に、起動完了コマンド、メダルセレクタ無操作コマンド、ACKコマンド、NAKコマンドが送信される。なお、メダルセレクタ201は、メダルセレクタ201の製造時に初期設定用の初期暗号化キーと初期初期化ベクトルがフラッシュメモリ244に記憶されている。   On the other hand, a start completion command, a medal selector non-operation command, an ACK command, and a NAK command are basically transmitted from the medal selector 201 to the computer 400. In the medal selector 201, an initial encryption key for initial setting and an initial initialization vector are stored in the flash memory 244 when the medal selector 201 is manufactured.

[起動完了コマンド]
起動完了コマンドは、メダルセレクタ201に電源が投入され、起動処理が終了した後に送信される。起動完了コマンドのDAT0のビット0の値は、スイッチ応答初期化処理が行われた否かを示す。「0」は、「初期化なし」を示し、「1」は「初期化あり」を示す。ここで、メダルセレクタ201の制御LSI234は、通電中にスイッチ応答初期化処理が行われると、フラッシュメモリ244の起動用初期化フラグ格納領域の値に「1」を設定する。そして、制御LSI234は、電源が投入され、起動完了コマンドを送信する際に、フラッシュメモリ244の起動用初期化フラグ格納領域を参照し、格納されている値に応じて、起動完了コマンドのDAT0のビット0の値を設定する。起動完了コマンドのDAT0のビット0の値が「1」の場合、すなわち起動時の起動用初期化フラグ格納領域の値に「1」が設定されている場合、メダルセレクタ201が副制御回路101やコンピュータ400から起動完了コマンドに対するACKコマンドを受信すると、制御LSI234は、起動用初期化フラグ格納領域の値に「0」を設定する。
[Start complete command]
The activation completion command is transmitted after the power is turned on to the medal selector 201 and the activation processing is completed. The value of bit 0 of DAT0 of the activation completion command indicates whether the switch response initialization processing has been performed. “0” indicates “no initialization”, and “1” indicates “initialization”. Here, when the switch response initialization process is performed during energization, the control LSI 234 of the medal selector 201 sets “1” to the value of the startup initialization flag storage area of the flash memory 244. When the power is turned on and the start completion command is transmitted, the control LSI 234 refers to the start-up initialization flag storage area of the flash memory 244, and according to the stored value, sets the start completion command DAT0. Set the value of bit 0. If the value of bit 0 of DAT0 of the start-up completion command is “1”, that is, if the value of the start-up initialization flag storage area at start-up is set to “1”, the medal selector 201 When receiving the ACK command for the startup completion command from the computer 400, the control LSI 234 sets “0” to the value of the startup initialization flag storage area.

また、起動完了コマンドのDAT0のビット1の値は、コマンド送信時に色判定が有効か無効かを示す。値「0」は、「色判定無効」を示し、値「1」は「色判定有効」を示す。「色判定有効」となる場合は、コマンド送信時に色テンプレートが作成済みであり、起動時の色スイッチがON状態の場合である。それ以外の場合は「色判定無効」となる。また、起動完了コマンドのDAT0のビット2の値は、コマンド送信時に刻印判定が有効か無効かを示す。値「0」は、「刻印判定無効」を示し、値「1」は「刻印判定有効」を示す。「刻印判定有効」となる場合は、コマンド送信時に刻印テンプレートが作成済みであり、起動時の刻印スイッチがON状態の場合である。それ以外の場合は「刻印判定無効」となる。   The value of bit 1 of DAT0 of the activation completion command indicates whether color determination is valid or invalid at the time of command transmission. The value “0” indicates “color judgment invalid”, and the value “1” indicates “color judgment valid”. The case where “color judgment is valid” is a case where a color template has been created at the time of command transmission and the color switch at the time of startup is in an ON state. In other cases, “color judgment is invalid”. The value of bit 2 of DAT0 of the activation completion command indicates whether the engraving determination is valid or invalid at the time of command transmission. A value “0” indicates “marking judgment invalid”, and a value “1” indicates “marking judgment valid”. The case where “engraving judgment is valid” is a case where the engraving template has been created at the time of command transmission and the engraving switch at the time of startup is in the ON state. In other cases, "marking judgment is invalid".

起動完了コマンドのDAT1は、コマンド送信時の各種スイッチのON/OFF状態を示す。ビット0の値は初期化スイッチのON/OFF状態を示し、ビット1の値は色スイッチのON/OFF状態を示し、ビット2の値は刻印スイッチのON/OFF状態を示す。いずれのビットにおいても、「0」は、「OFF状態」を示し、「1」は「ON状態」を示す。   DAT1 of the startup completion command indicates the ON / OFF state of various switches at the time of command transmission. The value of bit 0 indicates the ON / OFF state of the initialization switch, the value of bit 1 indicates the ON / OFF state of the color switch, and the value of bit 2 indicates the ON / OFF state of the engraving switch. In any of the bits, “0” indicates the “OFF state” and “1” indicates the “ON state”.

[判定完了コマンド]
判定完了コマンドは、送信カウンタ(CNT)と、円形検出の判定結果、色判定の判定結果及び刻印判定の判定結果と、を示すパラメータを含んで構成される。判定完了コマンドのDAT0の値は円形検出の判定結果を示し、DAT1の値は色判定の判定結果を示し、DAT2の値は刻印判定の判定結果を示す。いずれのビットにおいても、「0」は、「NG」(すなわち「判定NG」)を示し、「1」は「OK」(すなわち「判定OK」)を示す。
[Judgment completion command]
The determination completion command includes a transmission counter (CNT) and parameters indicating a circular detection determination result, a color determination determination result, and a marking determination determination result. The value of DAT0 of the determination completion command indicates the determination result of circular detection, the value of DAT1 indicates the determination result of color determination, and the value of DAT2 indicates the determination result of engraving determination. In any of the bits, “0” indicates “NG” (ie, “judgment NG”), and “1” indicates “OK” (ie, “judgment OK”).

[メダルセレクタエラーコマンド]
メダルセレクタエラーコマンドは、メダルセレクタ201が各種エラーを検知したときに送信される。このコマンドは、送信カウンタ(CNT)と、コマンド送信時に発生中のエラーの種類を示すパラメータと、を含んで構成される。メダルセレクタエラーコマンドのDAT0の値は0〜6に設定される。「0」は「エラーなし」を示し、「1」は「異物検出エラー」を示し、「2」は「カバー開放エラー」を示す。また、「3」は「掃除エラー」を示し、「4」は「色テンプレート生成エラー」を示し、「5」は「刻印テンプレート生成エラー」を示し、そして、「6」は、「CMOSハードエラー」を示す。なお、メダルセレクタ201の制御LSI234は、各種エラーを検知したとき、SRAM243に設けられたエラー記憶領域(初期値「0」)にエラーの内容(1〜6)を記憶する。SRAM243に記憶されたエラーの内容は、メダルセレクタ201が副制御回路101から後述するエラー解除コマンドを受信したとき削除される(初期値「0」が記憶される)。
[Medal selector error command]
The medal selector error command is transmitted when the medal selector 201 detects various errors. This command includes a transmission counter (CNT) and a parameter indicating the type of error occurring at the time of command transmission. The value of DAT0 of the medal selector error command is set to 0-6. “0” indicates “no error”, “1” indicates “foreign matter detection error”, and “2” indicates “cover open error”. “3” indicates “cleaning error”, “4” indicates “color template generation error”, “5” indicates “engraved template generation error”, and “6” indicates “CMOS hard error”. Is shown. When detecting various errors, the control LSI 234 of the medal selector 201 stores the contents (1 to 6) of the error in an error storage area (initial value “0”) provided in the SRAM 243. The content of the error stored in the SRAM 243 is deleted when the medal selector 201 receives an error release command described later from the sub-control circuit 101 (the initial value “0” is stored).

[メダルセレクタ無操作コマンド]
メダルセレクタ無操作コマンドは、メダルセレクタ201から周期的に副制御回路101やコンピュータ400に送信される。メダルセレクタ無操作コマンドには、送信カウンタ(CNT)が含まれる。
[Medal selector no-operation command]
The medal selector no-operation command is periodically transmitted from the medal selector 201 to the sub-control circuit 101 or the computer 400. The medal selector no-operation command includes a transmission counter (CNT).

また、メダルセレクタ無操作コマンドのDAT0のビット0の値は、スイッチ応答初期化処理が行われた否かを示す。「0」は、「初期化なし」を示し、「1」は「初期化あり」を示す。ここで、メダルセレクタ201の制御LSI234は、通電中にスイッチ応答初期化処理が行われると、SRAM243の無操作用初期化フラグ格納領域の値に「1」を設定する。そして、制御LSI234は、メダルセレクタ無操作コマンドを送信する際に、SRAM243の無操作用初期化フラグ格納領域を参照し、格納されている値に応じて、メダルセレクタ無操作コマンドのDAT0のビット0の値を設定する。メダルセレクタ無操作コマンドのDAT0のビット0の値が「1」の場合、すなわち無操作用初期化フラグ格納領域の値に「1」が設定されている場合、メダルセレクタ201が副制御回路101やコンピュータ400から当該メダルセレクタ無操作コマンドに対するACKコマンドを受信すると、制御LSI234は、無操作用初期化フラグ格納領域の値に「0」を設定する。   The value of bit 0 of DAT0 of the medal selector no-operation command indicates whether or not the switch response initialization processing has been performed. “0” indicates “no initialization”, and “1” indicates “initialization”. Here, when the switch response initialization processing is performed during energization, the control LSI 234 of the medal selector 201 sets the value of the no-operation initialization flag storage area of the SRAM 243 to “1”. When transmitting the medal selector no-operation command, the control LSI 234 refers to the no-operation initialization flag storage area of the SRAM 243, and according to the stored value, sets the bit 0 of the DAT0 of the medal selector no-operation command. Set the value of. If the value of bit 0 of DAT0 of the medal selector no-operation command is “1”, that is, if the value of the no-operation initialization flag storage area is set to “1”, the medal selector 201 When receiving the ACK command for the medal selector no-operation command from the computer 400, the control LSI 234 sets “0” to the value of the no-operation initialization flag storage area.

その他のメダルセレクタ無操作コマンドのDAT0及びDAT1については、起動完了コマンドのDAT0及びDAT1と同様であるため、ここでの説明は省略する。また、メダルセレクタ無操作コマンドのDAT3には、上述したSRAM243のエラー記憶領域の内容(0〜6のいずれかの値)がセットされる。内容は、メダルセレクタエラーコマンドのDAT0と同様である。   The other medal selector non-operation commands DAT0 and DAT1 are the same as the start complete commands DAT0 and DAT1, and therefore description thereof is omitted here. The content (any value from 0 to 6) of the error storage area of the SRAM 243 is set in the DAT3 of the medal selector non-operation command. The contents are the same as the medal selector error command DAT0.

メダルセレクタ無操作コマンドのDAT3、DAT4の値は、メダルセレクタ201の起動回数を示す。この起動回数は、フラッシュメモリ244に記憶されており、メダルセレクタ201が起動する毎に、起動回数に1が加算される。具体的には、メダルセレクタ201は、図示しない制御電源管理部を有し、制御電源管理部は、メダルセレクタ201への電源電圧の供給(電源の投入)が開始され、予め設定された電圧値を上回った場合に、制御LSI234にリセット信号を出力する。制御LSI234は、リセット信号が入力されたことに基づいて、起動回数を1加算する。メダルセレクタ201(の制御LSI234)は、メダルセレクタ無操作コマンド送信時に、フラッシュメモリ244の起動回数を参照し、DAT3、DAT4の値を設定する。なお、起動回数は、上述した初期化スイッチ206dの操作により、制御LSI234が行う、スイッチ応答初期化処理で初期値「0」に設定される。   The values of DAT3 and DAT4 of the medal selector no-operation command indicate the number of times the medal selector 201 has been activated. This activation count is stored in the flash memory 244, and every time the medal selector 201 is activated, 1 is added to the activation count. More specifically, the medal selector 201 has a control power management unit (not shown). The control power management unit starts supplying power (turning on the power) to the medal selector 201 and sets a predetermined voltage value. , A reset signal is output to the control LSI 234. The control LSI 234 adds 1 to the number of startups based on the input of the reset signal. The medal selector 201 (the control LSI 234 thereof) sets the values of DAT3 and DAT4 by referring to the number of times of activation of the flash memory 244 when transmitting the medal selector non-operation command. Note that the number of times of activation is set to an initial value “0” in a switch response initialization process performed by the control LSI 234 by operating the above-described initialization switch 206d.

[ACKコマンド、NAKコマンド]
ACKコマンドは、メダルセレクタ201が副制御回路101やコンピュータ400から送信されたコマンドを正常に受信できたときに送信される。NAKコマンドは、メダルセレクタ201が副制御回路101やコンピュータ400から送信されたコマンドを正常に受信できなかったときに送信される。ACKコマンド及びNAKコマンドには、送信カウンタ(CNT)が含まれている。また、ACKコマンド及びNAKコマンドのDAT0、DAT1の値は、副制御回路101やコンピュータ400から送信されたコマンドに含まれている送信カウンタの値を示す。
[ACK command, NAK command]
The ACK command is transmitted when the medal selector 201 has successfully received the command transmitted from the sub control circuit 101 or the computer 400. The NAK command is transmitted when the medal selector 201 cannot normally receive a command transmitted from the sub control circuit 101 or the computer 400. The ACK command and the NAK command include a transmission counter (CNT). The values of DAT0 and DAT1 of the ACK command and NAK command indicate the values of the transmission counter included in the commands transmitted from the sub-control circuit 101 and the computer 400.

[副制御回路・コンピュータ400が送信するコマンド]
次に、副制御回路101やコンピュータ400がメダルセレクタ201へ送信するコマンドについて説明する。図23に示すように、当該コマンドには、初期化コマンド、暗号化キー1〜暗号化キー3コマンド、IV1〜IV3コマンド、エラー解除コマンド、投入状態コマンド、ACKコマンド、NAKコマンドがある。いずれのコマンドも、2バイトの送信カウンタ(CNT)と、DAT0〜DAT6からなるパラメータを含んで構成されている。本実施形態において、DAT0〜DAT6は、それぞれ1バイト(ビット0〜ビット7)のデータである。また、各種コマンドのデータ部のデータ長は、送信カウンタを加えた9バイトに設定されているが、このデータ長は適宜設定可能である。
[Command sent by sub-control circuit / computer 400]
Next, commands transmitted from the sub-control circuit 101 and the computer 400 to the medal selector 201 will be described. As shown in FIG. 23, the commands include an initialization command, an encryption key 1 to an encryption key 3 command, an IV1 to IV3 command, an error release command, an input state command, an ACK command, and a NAK command. Each command is configured to include a 2-byte transmission counter (CNT) and parameters including DAT0 to DAT6. In the present embodiment, DAT0 to DAT6 are 1-byte (bit 0 to bit 7) data, respectively. The data length of the data part of each command is set to 9 bytes including the transmission counter, but this data length can be set as appropriate.

なお、副制御回路101は、副制御回路101の製造時に初期設定用の初期暗号化キーと初期初期化ベクトルがロムカートリッジ基板86に記憶されており、コンピュータ400の外部記憶装置413に初期設定用の初期暗号化キーと初期初期化ベクトルが記憶されている。   Note that the sub control circuit 101 stores an initial encryption key for initialization and an initialization vector in the ROM cartridge substrate 86 when the sub control circuit 101 is manufactured, and stores the initial encryption key in the external storage device 413 of the computer 400. Are stored.

副制御回路101が送信するコマンドにおける送信カウンタ(CNT)の初期値は、副制御回路101の起動後、最初にコマンドを送信する際に取得する乱数が設定される。なお、この乱数を発生させるために、この乱数を発生させる専用の乱数発生処理(ソフト乱数)、又は、デバイスを設けてもよいし、演出の態様を決定する際に用いる乱数を発生させる乱数発生処理、又は、デバイスを利用してもよい。   The initial value of the transmission counter (CNT) in the command transmitted by the sub-control circuit 101 is set to a random number acquired when the command is transmitted for the first time after the activation of the sub-control circuit 101. In order to generate the random number, a dedicated random number generation process (soft random number) for generating the random number, or a device may be provided, or a random number generation for generating a random number used in determining an effect mode may be provided. Processing or a device may be used.

また、コンピュータ400が送信するコマンドにおける送信カウンタ(CNT)の初期値は、コンピュータ400においてメダルセレクタ初期化ツールが起動された後、最初にコマンドを送信する際に取得する乱数が設定される。この乱数は、例えば、メダルセレクタ初期化ツールが内部プログラムにより発生させる。   The initial value of the transmission counter (CNT) in the command transmitted by the computer 400 is set to a random number acquired when the command is transmitted for the first time after the medal selector initialization tool is activated in the computer 400. This random number is generated by, for example, an internal program by the medal selector initialization tool.

なお、副制御回路101からメダルセレクタ201に対しては、エラー解除コマンド、投入状態コマンド、ACKコマンド、NAKコマンドが送信される。また、これらのコマンドは、本発明においては、副制御回路101が保持する暗号化キーで暗号化され、メダルセレクタ201に送信される。副制御回路101が保持する暗号化キーは、コンピュータ400からメダルセレクタ201に送信された暗号化キーと同一のものである。   Note that the sub control circuit 101 transmits an error release command, an insertion state command, an ACK command, and a NAK command to the medal selector 201. In the present invention, these commands are encrypted with the encryption key held by the sub control circuit 101 and transmitted to the medal selector 201. The encryption key held by the sub control circuit 101 is the same as the encryption key transmitted from the computer 400 to the medal selector 201.

一方、コンピュータ400からメダルセレクタ201に対しては、基本的に、初期化コマンド、暗号化キー1〜暗号化キー3コマンド、IV1〜IV3コマンド、ACKコマンド、NAKコマンドが送信される。   On the other hand, an initialization command, an encryption key 1 to an encryption key 3 command, an IV 1 to IV 3 command, an ACK command, and a NAK command are basically transmitted from the computer 400 to the medal selector 201.

[初期化コマンド]
初期化コマンドは、コンピュータ400からメダルセレクタ201に対して初期化処理を行い、その後、暗号化キーと初期化ベクトルを送信する処理を開始することを知らせるためのコマンドである。初期化処理は、例えば、メダルセレクタ201のフラッシュメモリ244に記憶されている所定のデータをクリア等する処理である。
[Initialization command]
The initialization command is a command for notifying that the computer 400 performs an initialization process on the medal selector 201 and thereafter starts a process of transmitting an encryption key and an initialization vector. The initialization process is a process of clearing predetermined data stored in the flash memory 244 of the medal selector 201, for example.

[暗号化キー1〜暗号化キー3コマンド]
暗号化キー1〜暗号化キー3コマンドは、上述の初期化コマンドに続けて順に送信され、それぞれ、コンピュータ400で作成された暗号化キーをメダルセレクタ201に送信する。暗号化キー1コマンドのDAT0〜DAT6には、暗号化キーの先頭7バイト分のデータが格納される。暗号化キー2コマンドのDAT0〜DAT6には、暗号化キーの8バイト目から7バイト分のデータが格納される。暗号化キー3コマンドのDAT0〜DAT1には、暗号化キーの15バイト目から2バイト分のデータが格納される。
[Encryption Key 1 to Encryption Key 3 Command]
The encryption key 1 to encryption key 3 commands are transmitted in order following the above-mentioned initialization command, and transmit the encryption keys created by the computer 400 to the medal selector 201, respectively. The first seven bytes of data of the encryption key are stored in DAT0 to DAT6 of the encryption key 1 command. DAT0 to DAT6 of the encryption key 2 command store seven bytes of data from the eighth byte of the encryption key. Two bytes of data from the 15th byte of the encryption key are stored in DAT0 to DAT1 of the encryption key 3 command.

[IV1〜IV3コマンド]
IV1〜IV3コマンドは、上述の暗号化キー1〜暗号化キー3コマンドに続けて順に送信され、それぞれ、コンピュータ400で作成された初期化ベクトル(IV)をメダルセレクタ201に送信する。IV1コマンドのDAT0〜DAT6には、初期化ベクトルの先頭7バイト分のデータが格納される。IV2コマンドのDAT0〜DAT6には、初期化ベクトルの8バイト目から7バイト分のデータが格納される。IV3コマンドのDAT0〜DAT1には、初期化ベクトルの15バイト目から2バイト分のデータが格納される。
[IV1-IV3 commands]
The IV1 to IV3 commands are sequentially transmitted following the above-described encryption key 1 to encryption key 3 commands, and transmit the initialization vector (IV) created by the computer 400 to the medal selector 201, respectively. The first seven bytes of data of the initialization vector are stored in DAT0 to DAT6 of the IV1 command. In the DAT0 to DAT6 of the IV2 command, data of 7 bytes from the 8th byte of the initialization vector is stored. Two bytes of data from the 15th byte of the initialization vector are stored in DAT0 to DAT1 of the IV3 command.

[エラー解除コマンド]
エラー解除コマンドは、後述するメダルセレクタコマンド送信処理(図33参照)において、メダルセレクタ201に発生したエラーの解除条件が成立したときに送信される。ただし、エラーの解除条件の成立とは、メダルセレクタ201に発生したエラーが実際に解除されたか否かではなく、エラー解除コマンドを送信するための条件が成立したか否かである。
[Error clear command]
The error canceling command is transmitted when a condition for canceling an error that has occurred in the medal selector 201 is satisfied in a medal selector command transmitting process (see FIG. 33) described later. However, the satisfaction of the error cancellation condition does not mean whether the error occurred in the medal selector 201 has actually been canceled, but whether the condition for transmitting the error cancellation command has been met.

[投入状態コマンド]
投入状態コマンドは、所定の周期又は後述するメダルセレクタコマンド送信処理(図33参照)において送信される。投入状態コマンドのDAT0の値は、メダル受付可か否かを示す。「1」は、「受付可」を示し、「0」は「受付不可」を示す。
[Input status command]
The insertion state command is transmitted in a predetermined cycle or in a medal selector command transmission process described later (see FIG. 33). The value of DAT0 of the insertion state command indicates whether or not medals can be accepted. “1” indicates “acceptable”, and “0” indicates “acceptable”.

[ACKコマンド、NAKコマンド]
ACKコマンドは、副制御回路101やコンピュータ400が、メダルセレクタ201から送信されたコマンドを正常に受信できたときに送信される。NAKコマンドは、副制御回路101やコンピュータ400がメダルセレクタ201から送信されたコマンドを正常に受信できなかったときに送信される。ACKコマンド及びNAKコマンドには、送信カウンタが含まれている。また、ACKコマンド及びNAKコマンドのDAT0、DAT1の値は、メダルセレクタ201から送信されたコマンドに含まれている送信カウンタの値を示す。
[ACK command, NAK command]
The ACK command is transmitted when the sub-control circuit 101 or the computer 400 has successfully received the command transmitted from the medal selector 201. The NAK command is transmitted when the sub control circuit 101 or the computer 400 cannot normally receive the command transmitted from the medal selector 201. The ACK command and the NAK command include a transmission counter. The values of DAT0 and DAT1 of the ACK command and the NAK command indicate the values of the transmission counter included in the command transmitted from the medal selector 201.

<メダルセレクタと外部コンピュータの間のコマンド送受信シーケンス>
次に、図24を参照し、メダルセレクタ201と外部コンピュータ(コンピュータ400)の間のコマンド送受信シーケンスの一例について説明する。図24は、メダルセレクタ201とコンピュータ400のコマンド送受信シーケンスの一例を説明するための図である。
<Command transmission / reception sequence between medal selector and external computer>
Next, an example of a command transmission / reception sequence between the medal selector 201 and the external computer (computer 400) will be described with reference to FIG. FIG. 24 is a diagram illustrating an example of a command transmission / reception sequence between the medal selector 201 and the computer 400.

コンピュータ400とメダルセレクタ201が接続され、メダルセレクタ201が起動すると、メダルセレクタ201は、コンピュータ400に起動完了コマンドを送信する。このとき、フラッシュメモリ244に記憶されている起動回数が「10」のとき、起動完了コマンドに含まれる送信カウンタ(CNT)の値は「10」となる。   When the computer 400 and the medal selector 201 are connected and the medal selector 201 is activated, the medal selector 201 transmits a startup completion command to the computer 400. At this time, when the number of activations stored in the flash memory 244 is “10”, the value of the transmission counter (CNT) included in the activation completion command is “10”.

続いて、起動完了コマンドを正常に受信したコンピュータ400は、メダルセレクタ201にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、送信時に取得した乱数の値、例えば「256」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信した起動完了コマンドに含まれていた送信カウンタの値である「10」となる。   Subsequently, the computer 400 that has normally received the activation completion command transmits an ACK command to the medal selector 201. The value of the transmission counter included in this ACK command is the value of the random number acquired at the time of transmission, for example, “256”. Further, the values of DAT0 and DAT1 of the ACK command are “10” which is the value of the transmission counter included in the received activation completion command.

続いて、図24に示す例では、メダルセレクタ201は、コンピュータ400にメダルセレクタ無操作コマンドを送信する。このメダルセレクタ無操作コマンドに含まれる送信カウンタの値は、初期値「10」に1を加算した「11」となる。   Subsequently, in the example illustrated in FIG. 24, the medal selector 201 transmits a medal selector non-operation command to the computer 400. The value of the transmission counter included in the medal selector no-operation command is “11” which is obtained by adding 1 to the initial value “10”.

続いて、メダルセレクタ無操作コマンドを正常に受信したコンピュータ400は、メダルセレクタ201にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、初期値「256」に1を加算した「257」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信したメダルセレクタ無操作コマンドに含まれていた送信カウンタの値である「11」となる。   Subsequently, the computer 400 that has normally received the medal selector non-operation command transmits an ACK command to the medal selector 201. The value of the transmission counter included in this ACK command is “257” obtained by adding 1 to the initial value “256”. The values of DAT0 and DAT1 of the ACK command are “11” which is the value of the transmission counter included in the received medal selector non-operation command.

ここで、コンピュータ400で実行されるメダルセレクタ初期化ツールにおいて、メダルセレクタの初期化が指示されると、この操作に応じて、コンピュータ400は、初期化コマンドをメダルセレクタ201に送信する。この初期化コマンドに含まれる送信カウンタの値は「257」に1を加算した「258」となる。   Here, when initialization of the medal selector is instructed in the medal selector initialization tool executed by the computer 400, the computer 400 transmits an initialization command to the medal selector 201 in response to this operation. The value of the transmission counter included in this initialization command is “258” obtained by adding 1 to “257”.

続いて、初期化コマンドを正常に受信したメダルセレクタ201は、コンピュータ400にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、直近の送信カウンタの値に1を加算した「12」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信した初期化コマンドに含まれていた送信カウンタの値である「258」となる。   Subsequently, the medal selector 201 that has normally received the initialization command transmits an ACK command to the computer 400. The value of the transmission counter included in this ACK command is “12” which is obtained by adding 1 to the value of the latest transmission counter. The values of DAT0 and DAT1 of this ACK command are “258” which is the value of the transmission counter included in the received initialization command.

次に、コンピュータ400で実行されるメダルセレクタ初期化ツールは、暗号化キー1コマンドをメダルセレクタ201に送信する。この暗号化キー1コマンドに含まれる送信カウンタの値は「259」となる。   Next, the medal selector initialization tool executed on the computer 400 transmits the encryption key 1 command to the medal selector 201. The value of the transmission counter included in this encryption key 1 command is “259”.

続いて、暗号化キー1コマンドを正常に受信したメダルセレクタ201は、コンピュータ400にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、直近の送信カウンタの値に1を加算した「13」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信した暗号化キー1コマンドに含まれていた送信カウンタの値である「259」となる。   Subsequently, the medal selector 201 that has normally received the encryption key 1 command transmits an ACK command to the computer 400. The value of the transmission counter included in this ACK command is “13” obtained by adding 1 to the value of the latest transmission counter. The values of DAT0 and DAT1 of the ACK command are “259” which is the value of the transmission counter included in the received encryption key 1 command.

次に、コンピュータ400で実行されるメダルセレクタ初期化ツールは、暗号化キー2コマンドをメダルセレクタ201に送信する。この暗号化キー2コマンドに含まれる送信カウンタの値は「260」となる。   Next, the medal selector initialization tool executed on the computer 400 transmits the encryption key 2 command to the medal selector 201. The value of the transmission counter included in this encryption key 2 command is “260”.

続いて、暗号化キー2コマンドを正常に受信したメダルセレクタ201は、コンピュータ400にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、直近の送信カウンタの値に1を加算した「14」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信した暗号化キー2コマンドに含まれていた送信カウンタの値である「260」となる。   Subsequently, the medal selector 201 that has normally received the encryption key 2 command transmits an ACK command to the computer 400. The value of the transmission counter included in this ACK command is “14” obtained by adding 1 to the value of the latest transmission counter. The values of DAT0 and DAT1 of the ACK command are “260” which is the value of the transmission counter included in the received encryption key 2 command.

次に、コンピュータ400で実行されるメダルセレクタ初期化ツールは、暗号化キー3コマンドをメダルセレクタ201に送信する。この暗号化キー3コマンドに含まれる送信カウンタの値は「261」となる。   Next, the medal selector initialization tool executed on the computer 400 transmits the encryption key 3 command to the medal selector 201. The value of the transmission counter included in this encryption key 3 command is “261”.

続いて、暗号化キー3コマンドを正常に受信したメダルセレクタ201は、コンピュータ400にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、直近の送信カウンタの値に1を加算した「15」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信した暗号化キー3コマンドに含まれていた送信カウンタの値である「261」となる。   Subsequently, the medal selector 201 that has normally received the encryption key 3 command transmits an ACK command to the computer 400. The value of the transmission counter included in this ACK command is “15” obtained by adding 1 to the value of the latest transmission counter. The values of DAT0 and DAT1 of the ACK command are “261”, which is the value of the transmission counter included in the received encryption key 3 command.

次に、コンピュータ400で実行されるメダルセレクタ初期化ツールは、IV1コマンドをメダルセレクタ201に送信する。このIV1コマンドに含まれる送信カウンタの値は「262」となる。   Next, the medal selector initialization tool executed on the computer 400 transmits an IV1 command to the medal selector 201. The value of the transmission counter included in this IV1 command is “262”.

続いて、IV1コマンドを正常に受信したメダルセレクタ201は、コンピュータ400にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、直近の送信カウンタの値に1を加算した「16」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信したIV1コマンドに含まれていた送信カウンタの値である「262」となる。   Subsequently, the medal selector 201 that has normally received the IV1 command transmits an ACK command to the computer 400. The value of the transmission counter included in this ACK command is “16” obtained by adding 1 to the value of the latest transmission counter. The values of DAT0 and DAT1 of the ACK command are “262” which is the value of the transmission counter included in the received IV1 command.

次に、コンピュータ400で実行されるメダルセレクタ初期化ツールは、IV2コマンドをメダルセレクタ201に送信する。このIV2コマンドに含まれる送信カウンタの値は「263」となる。   Next, the medal selector initialization tool executed on the computer 400 transmits an IV2 command to the medal selector 201. The value of the transmission counter included in this IV2 command is “263”.

続いて、IV2コマンドを正常に受信したメダルセレクタ201は、コンピュータ400にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、直近の送信カウンタの値に1を加算した「17」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信したIV2コマンドに含まれていた送信カウンタの値である「263」となる。   Subsequently, the medal selector 201 that has normally received the IV2 command transmits an ACK command to the computer 400. The value of the transmission counter included in this ACK command is “17” obtained by adding 1 to the value of the latest transmission counter. The values of DAT0 and DAT1 of the ACK command are “263” which is the value of the transmission counter included in the received IV2 command.

次に、コンピュータ400で実行されるメダルセレクタ初期化ツールは、IV3コマンドをメダルセレクタ201に送信する。このIV3コマンドに含まれる送信カウンタの値は「264」となる。   Next, the medal selector initialization tool executed on the computer 400 transmits an IV3 command to the medal selector 201. The value of the transmission counter included in this IV3 command is “264”.

続いて、IV3コマンドを正常に受信したメダルセレクタ201は、コンピュータ400にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、直近の送信カウンタの値に1を加算した「18」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信したIV3コマンドに含まれていた送信カウンタの値である「264」となる。   Subsequently, the medal selector 201 that has normally received the IV3 command transmits an ACK command to the computer 400. The value of the transmission counter included in this ACK command is “18” obtained by adding 1 to the value of the latest transmission counter. The values of DAT0 and DAT1 of the ACK command are “264” which is the value of the transmission counter included in the received IV3 command.

ここで、コンピュータ400はさらに、メダルセレクタ初期化ツールにおいて、GUIを更新し、ステータス表示部525に「初期化OK」を表示する(図22B参照)。   Here, the computer 400 further updates the GUI in the medal selector initialization tool and displays “initialization OK” on the status display unit 525 (see FIG. 22B).

なお、「初期化OK」は、初期化コマンドの送信からIV3コマンドを送信した時に、全てメダルセレクタ201がACKコマンドを送信し、その全てのACKコマンドを正常に復号した場合にのみ表示され、復号化の失敗、又は、NAKコマンドが送信された場合には、「初期化NG」がステータス表示部525に表示される。   Note that “Initialization OK” is displayed only when the medal selector 201 transmits an ACK command when the IV3 command is transmitted after the transmission of the initialization command, and all of the ACK commands are normally decoded. If the initialization fails or the NAK command is transmitted, “initialization NG” is displayed on the status display unit 525.

また、メダルセレクタ201、及びコンピュータ400が送信する全てのコマンドは、全て暗号化キー1〜3コマンド、IV1〜IV3コマンドで設定される前の暗号化キーと初期化ベクトルで暗号化されている。そのため、メダルセレクタ201、及びコンピュータ400は、初期値としての暗号化キーと初期化ベクトルが記憶されていることが前提となり、メダルセレクタ201は、受信したコマンドの復号化が失敗した場合にも、コンピュータ400にNAKコマンドを送信する。   All commands transmitted by the medal selector 201 and the computer 400 are all encrypted with the encryption key and the initialization vector before being set by the encryption keys 1 to 3 and the IV1 to IV3 commands. Therefore, the medal selector 201 and the computer 400 assume that the encryption key and the initialization vector are stored as the initial values. A NAK command is transmitted to the computer 400.

この他、メダルセレクタ201は、500msecの周期でコンピュータ400にコマンドを送信する。例えば、図24に示す例では、起動完了コマンドをコンピュータ400に送信した500msec後にメダルセレクタ無操作コマンドがコンピュータ400に送信される。なお、メダルセレクタ201からコンピュータ400にコマンドを送信する周期は適宜設定可能である。   In addition, the medal selector 201 transmits a command to the computer 400 at a cycle of 500 msec. For example, in the example illustrated in FIG. 24, the medal selector non-operation command is transmitted to the computer 400 500 msec after the activation completion command is transmitted to the computer 400. The cycle at which the command is transmitted from the medal selector 201 to the computer 400 can be set as appropriate.

<メダルセレクタ暗号化キー作成ツールの処理>
次に、図25のフローチャートを参照して、外部コンピュータ(コンピュータ400)において実行されるメダルセレクタ暗号化キー作成ツールの暗号化処理の例を概略説明する。
<Process of the medal selector encryption key creation tool>
Next, an example of the encryption processing of the medal selector encryption key creation tool executed in the external computer (computer 400) will be schematically described with reference to the flowchart in FIG.

最初に、ステップS1において、例えば、図20Aに示す暗号化キー作成画面501の暗号化キー入力部503に、ユーザによって暗号化キーが入力されたか否かを判定する。暗号化キーが入力されていない場合(ステップS1のNO)、ステップS1に戻り、この処理を繰り返す。なお、入力された暗号化キーは、入力されたそのままの値を暗号化キー入力部503に表示させるようにしてもよいし、入力された際に、表示上は、他の文字に変換されるようにしてもよい。   First, in step S1, for example, it is determined whether or not the user has input an encryption key to the encryption key input unit 503 of the encryption key creation screen 501 shown in FIG. 20A. If the encryption key has not been input (NO in step S1), the process returns to step S1 and repeats this process. The input encryption key may be displayed as it is on the encryption key input unit 503, or may be converted to another character when input. You may do so.

暗号化キーが入力された場合(ステップS1のYES)、ステップS2においてメダルセレクタ暗号化キー作成ツールの乱数生成プログラムを用いて初期化ベクトルを生成し、例えば、図20Bに示す暗号化キー作成画面501の初期化ベクトル表示部504に、その値を表示する。次に、ステップS3において、入力された暗号化キーと、生成された初期化ベクトルに基づいてチェックサムが計算され、図20Bに示す暗号化キー作成画面501のチェックサム表示部505に、計算したチェックサムの値を表示する。   If an encryption key is input (YES in step S1), an initialization vector is generated using a random number generation program of a medal selector encryption key generation tool in step S2, for example, an encryption key generation screen shown in FIG. 20B. The value is displayed on an initialization vector display unit 504 of the reference numeral 501. Next, in step S3, a checksum is calculated based on the input encryption key and the generated initialization vector, and the calculated checksum is displayed on the checksum display unit 505 of the encryption key creation screen 501 shown in FIG. 20B. Displays the checksum value.

次に、ステップS4において、暗号化キーファイルの作成を指示する作成ボタン(図20Bに示す暗号化キー作成画面501の作成指示ボタン507)が押下されたか否かを判定する。作成ボタンが押下されていない場合(ステップS4のNO)、ステップS4に戻り、この処理を繰り返す。   Next, in step S4, it is determined whether or not a creation button for instructing creation of an encryption key file (the creation instruction button 507 of the encryption key creation screen 501 shown in FIG. 20B) has been pressed. If the create button has not been pressed (NO in step S4), the process returns to step S4 and repeats this process.

作成ボタンが押下されている場合(ステップS4のYES)、ステップS5において、暗号化キーと初期化ベクトルを暗号化し、暗号化キーファイルを作成する。この暗号化キーファイルは、例えば、XML形式のファイルであり、暗号化された暗号化キーと初期化ベクトルを含むほか、上述したチェックサムの値や、作成日時を含むようにすることができる。   If the creation button has been pressed (YES in step S4), in step S5, the encryption key and the initialization vector are encrypted to create an encryption key file. This encryption key file is, for example, a file in an XML format, and can include an encrypted key and an initialization vector, as well as the above-described checksum value and the creation date and time.

次に、ステップS6において、作成した暗号化キーファイルを、所定の記憶媒体(例えば、ハードディスクや半導体メモリ等で構成される外部記憶装置413、可搬型のフラッシュメモリ等の外部記録媒体430)に記憶し、ステップS7において、暗号化キーファイルの作成が完了した旨のメッセージを図20Bに示す暗号化キー作成画面501の所定のエリアに表示する。   Next, in step S6, the created encryption key file is stored in a predetermined storage medium (for example, an external storage device 413 including a hard disk or a semiconductor memory, or an external storage medium 430 such as a portable flash memory). Then, in step S7, a message indicating that the creation of the encryption key file has been completed is displayed in a predetermined area of the encryption key creation screen 501 shown in FIG. 20B.

<メダルセレクタ初期化ツールの処理>
次に、図26のフローチャートを参照して、外部コンピュータ(コンピュータ400)において実行されるメダルセレクタ初期化ツールの初期化処理の例を概略説明する。
<Process of the medal selector initialization tool>
Next, an example of the initialization processing of the medal selector initialization tool executed in the external computer (computer 400) will be schematically described with reference to the flowchart in FIG.

最初に、ステップS11において、初期設定ファイル(不図示)を外部記憶装置413から読み込む。この初期設定ファイルは、メダルセレクタ201を初めて初期化する際に、メダルセレクタ201と通信を行うための暗号化キー及び初期化ベクトルが記憶されたファイルであり、メダルセレクタ201の初期化後に、後述するステップS29で復号化された暗号化キー及び初期化ベクトルで、当該初期設定ファイルが上書き保存される(保存のタイミングは、例えば、後述するステップS25のタイミング)。   First, in step S11, an initialization file (not shown) is read from the external storage device 413. This initialization file is a file in which an encryption key and an initialization vector for communicating with the medal selector 201 when the medal selector 201 is initialized for the first time are stored. The initialization file is overwritten and saved with the encryption key and the initialization vector decrypted in step S29 (the timing of saving is, for example, the timing of step S25 described later).

次に、ステップS12において、メダルセレクタ201からコマンドを受信したか否かを判定する。コマンドを受信した場合(ステップS12のYES)、ステップS13において、受信コマンドを復号化する。   Next, in step S12, it is determined whether or not a command has been received from the medal selector 201. If a command has been received (YES in step S12), the received command is decoded in step S13.

ステップS13で受信コマンドを復号化した後、ステップS14において、当該受信コマンドの復号化が正常にできたか否かを判定する。受信コマンドの復号化が正常にできた場合(ステップS14のYES)、ステップS15において、受信コマンドが「起動完了コマンド」であるか否かを判定する。受信コマンドが「起動完了コマンド」である場合(ステップS15のYES)、ステップS16において、起動フラグをONにする。また、この場合に、例えば、図22に示すメダルセレクタ初期化ツールのGUIにおいて、メダルセレクタ201と正常に接続できている旨の表示を行うようにしてもよい。ステップS16の処理の後、ステップS12の判定に戻る。   After decrypting the received command in step S13, it is determined in step S14 whether the received command has been successfully decrypted. If the received command has been successfully decoded (YES in step S14), it is determined in step S15 whether the received command is a “startup completed command”. If the received command is a “start completion command” (YES in step S15), in step S16, the start flag is turned ON. In this case, for example, the GUI of the medal selector initialization tool shown in FIG. After the process in step S16, the process returns to the determination in step S12.

受信コマンドが「起動完了コマンド」でない場合(ステップS15のNO)、ステップS17において、受信コマンドが「メダルセレクタ無操作」であるか否かを判定する。受信コマンドが「メダルセレクタ無操作」である場合(ステップS17のYES)、ステップS18において、所定のメダルセレクタ無操作コマンド受信処理が行われる。ここでは、メダルセレクタ無操作コマンド受信処理をスキップするようにしてもよい。ステップS18の後、ステップS12の判定に戻る。   If the received command is not the “start completion command” (NO in step S15), it is determined in step S17 whether the received command is “medal selector non-operation”. If the received command is “medal selector non-operation” (YES in step S17), a predetermined medal selector non-operation command reception process is performed in step S18. Here, the medal selector non-operation command reception processing may be skipped. After step S18, the process returns to step S12.

受信コマンドが「メダルセレクタ無操作」でない場合(ステップS17のNO)、ステップS19において、受信コマンドが「NAK」であるか否かを判定する。受信コマンドが「NAK」である場合(ステップS19のYES)、ステップS20において、メダルセレクタ201に、コマンドを再送信する。ステップS20の後、ステップS12の判定に戻る。   If the received command is not “medal selector no operation” (NO in step S17), it is determined in step S19 whether the received command is “NAK”. If the received command is “NAK” (YES in step S19), the command is retransmitted to the medal selector 201 in step S20. After step S20, the process returns to step S12.

受信コマンドが「NAK」でない場合(ステップS19のNO)、ステップS21において、受信コマンドが「ACK」であるか否かを判定する。受信コマンドが「ACK」でない場合(ステップS21のNO)、ステップS12の判定に戻る。受信コマンドが「ACK」である場合(ステップS21のYES)、ステップS22において、送信コマンドがあるか否かを判定する。   If the received command is not “NAK” (NO in step S19), it is determined in step S21 whether the received command is “ACK”. If the received command is not “ACK” (NO in step S21), the process returns to the determination in step S12. If the received command is “ACK” (YES in step S21), it is determined in step S22 whether or not there is a transmission command.

送信コマンドがある場合(ステップS22のYES)、ステップS23において、当該送信コマンド(例えば、初期化コマンド、暗号化キー1〜暗号化キー3コマンド、IV1コマンド、IV2コマンドといった、暗号化キー等のコマンド)をメダルセレクタ201に送信する。この場合、当該コマンドに対応する復号化データが、DAT0〜DAT6に格納される。そして、ステップS23の後、ステップS12の判定に戻る。   If there is a transmission command (YES in step S22), in step S23, a command such as an encryption key such as an initialization command, an encryption key 1 to an encryption key 3 command, an IV1 command, and an IV2 command. ) Is transmitted to the medal selector 201. In this case, the decoded data corresponding to the command is stored in DAT0 to DAT6. Then, after step S23, the process returns to step S12.

送信コマンドがない場合(ステップS22のNO)、ステップS24において、暗号化キー等のコマンドを全て送信したか否かを判定する。暗号化キー等のコマンドを全て送信した場合(ステップS24のYES)、ステップS25において、例えば、図22Bに示すように、メダルセレクタ初期化ツールにおいて、GUIを更新し、ステータス表示部525に「初期化OK」を表示する(ステップS25)。ステップS25の後、ステップS12の判定に戻る。   If there is no transmission command (NO in step S22), it is determined in step S24 whether all commands such as an encryption key have been transmitted. If all the commands such as the encryption key have been transmitted (YES in step S24), in step S25, for example, as shown in FIG. 22B, the GUI is updated by the medal selector initialization tool, and the status display unit 525 displays Is displayed (step S25). After step S25, the process returns to the determination in step S12.

暗号化キー等のコマンドを全て送信していない場合(ステップS24のNO)、又は、受信コマンドの復号化が正常にできなかった場合(ステップS14のNO)、メダルセレクタ初期化ツールにおいて、GUIを更新し、ステータス表示部525に「初期化NG」を表示する(ステップS26)。その後、ステップS12の判定に戻る。   If all commands such as an encryption key have not been transmitted (NO in step S24), or if the received command has not been successfully decrypted (NO in step S14), the GUI is reset by the medal selector initialization tool. Update is performed, and “initialization NG” is displayed on the status display section 525 (step S26). Thereafter, the process returns to the determination in step S12.

メダルセレクタ201からコマンドを受信していない場合(ステップS12のNO)、ステップS27に進み、そこで、メダルセレクタ初期化ツールにおいて、暗号化キーファイルに関するファイル読込指示がされたか否かを判定する。ファイル読込指示は、例えば、図22Aに示すメダルセレクタ初期化ツールの初期化指示画面521が表示される前の、初期化メニュー画面(不図示)において、ファイル読込指示画面を表示するよう指示し、表示されたファイル読込指示画面において、初期化に用いる暗号化キーファイルを指定することによって行われる。   If a command has not been received from the medal selector 201 (NO in step S12), the process proceeds to step S27, where it is determined whether or not a file reading instruction regarding an encryption key file has been issued in the medal selector initialization tool. The file reading instruction is, for example, an instruction to display a file reading instruction screen on an initialization menu screen (not shown) before the initialization instruction screen 521 of the medal selector initialization tool shown in FIG. 22A is displayed, This is performed by specifying an encryption key file to be used for initialization on the displayed file reading instruction screen.

暗号化キーファイルに関するファイル読込指示がされた場合(ステップS27のYES)、ステップS28において、指定された暗号化キーファイルを読み込み、次に、ステップS29において、読み込んだ暗号化キーファイルを復号化する。ステップS29の後、ステップS12の判定に戻る。   If a file reading instruction regarding the encryption key file is issued (YES in step S27), the specified encryption key file is read in step S28, and then the read encryption key file is decrypted in step S29. . After step S29, the process returns to the determination in step S12.

暗号化キーファイルに関するファイル読込指示がされていない場合(ステップS27のNO)、ステップS30において、メダルセレクタ初期化ツールで、初期化指示がされたか否か、すなわち、初期化ボタン524(図22A参照)が押下されたか否かを判定する。初期化指示がされている場合(ステップS30のYES)、ステップS31において、起動フラグがONか否かを判定する。   If the file reading instruction regarding the encryption key file has not been issued (NO in step S27), in step S30, it is determined whether or not an initialization instruction has been issued by the medal selector initialization tool, that is, an initialization button 524 (see FIG. 22A). ) Is determined. If the initialization instruction has been given (YES in step S30), it is determined in step S31 whether the activation flag is ON.

起動フラグがONであると判定された場合(ステップS31のYES)、すなわち、メダルセレクタ201から起動完了コマンドを受け取っていて、メダルセレクタ201との接続が正常に行われている場合、ステップS32において、暗号化キー等のコマンドを生成する(すなわち、ステップS29で復号化された暗号化キーファイル(暗号化キーと初期化ベクトル)を、各コマンドのDAT0〜DAT6に割り当てる)。次に、ステップS33において、初期化コマンドをメダルセレクタ201に送信する。初期化指示がされていない場合(ステップS30のNO)、又はステップS33の後、ステップS12の判定に戻る。   If it is determined that the activation flag is ON (YES in step S31), that is, if the activation completion command has been received from the medal selector 201 and the connection with the medal selector 201 has been normally performed, in step S32 Then, a command such as an encryption key is generated (that is, the encryption key file (encryption key and initialization vector) decrypted in step S29 is allocated to DAT0 to DAT6 of each command). Next, in step S33, an initialization command is transmitted to the medal selector 201. When the initialization instruction has not been issued (NO in step S30), or after step S33, the process returns to the determination in step S12.

起動フラグがONであると判定されなかった場合(ステップS31のNO)、メダルセレクタ201との接続が正常に確立されていないとして、メダルセレクタ初期化ツールで、その旨のエラーメッセージを表示する(ステップS34)。ステップS34の後、ステップS12の判定に戻る。   If it is not determined that the activation flag is ON (NO in step S31), it is determined that the connection with the medal selector 201 has not been normally established, and an error message to that effect is displayed by the medal selector initialization tool ( Step S34). After step S34, the process returns to step S12.

なお、図26に示す例では、メダルセレクタ暗号化キー作成ツールで作成された暗号化キーファイルが一旦復号化されて元の暗号化キーと初期化ベクトルが取得された後、これらの暗号化キーと初期化ベクトルが分割され、複数のコマンドによってメダルセレクタ201に送信されるが、この場合に、それぞれのコマンドのDAT0〜DAT6に割り当てられたデータが、上述した別の暗号鍵で個別に暗号化されるように構成される。   In the example shown in FIG. 26, after the encryption key file created by the medal selector encryption key creation tool is temporarily decrypted to obtain the original encryption key and the initialization vector, these encryption keys are used. And the initialization vector are divided and transmitted to the medal selector 201 by a plurality of commands. In this case, the data assigned to DAT0 to DAT6 of each command is individually encrypted with the above-described different encryption key. It is configured to be.

また、メダルセレクタ201から受信するコマンドのデータについても、上述した別の暗号鍵による暗号化がされているものとするが、図26のフローチャートでは、当該コマンドのデータに関する(別の暗号鍵を用いた)復号化処理については省略した。   It is also assumed that the data of the command received from the medal selector 201 has been encrypted with the above-mentioned another encryption key, but in the flowchart of FIG. The decoding process has been omitted.

<メダルセレクタが行う各種処理>
次に、図27のフローチャートを参照して、メダルセレクタ201において実行される処理の例を概略説明する。なお、メダルセレクタ201は、副制御回路101に接続されている場合、副制御回路101に対して、判定完了コマンドやメダルセレクタエラーコマンド等を送信したり、メダルの判定処理を行うが、ここでは、外部コンピュータ(コンピュータ400)に接続された場合に、コンピュータ400との間で行われる処理を中心に説明し、その他の処理については適宜説明を省略する。
<Various processes performed by the medal selector>
Next, an example of a process executed in the medal selector 201 will be schematically described with reference to a flowchart of FIG. When the medal selector 201 is connected to the sub control circuit 101, the medal selector 201 transmits a determination completion command, a medal selector error command, and the like to the sub control circuit 101, and performs a medal determination process. The following description focuses on processing performed with the computer 400 when connected to an external computer (computer 400), and description of other processing is omitted as appropriate.

最初に、メダルセレクタ201は、コンピュータ400との接続によって電源が投入され、起動処理が終了すると、ステップS41において、起動完了コマンドをコンピュータ400に送信する。起動完了コマンドについては、上述したとおりである。   First, the power of the medal selector 201 is turned on by connection with the computer 400, and when the startup process ends, in step S41, a startup completion command is transmitted to the computer 400. The activation completion command is as described above.

次に、メダルセレクタ201は、所定のタイミングが到来したか否かを判定し(ステップS42)、到来したと判定した場合(ステップS42のYES)、ステップS43において、メダルセレクタ無操作コマンドをコンピュータ400に送信する。これによって、メダルセレクタ無操作コマンドは、周期的に(例えば、500msecの周期で)メダルセレクタ201からコンピュータ400に送信される。なお、メダルセレクタ無操作コマンドについては、上述の通りである。ステップS43の後、ステップS42に戻り、所定タイミングの判定を繰り返す。   Next, the medal selector 201 determines whether or not a predetermined timing has arrived (step S42), and when it has been determined (YES in step S42), in step S43, the medal selector non-operation command is transmitted to the computer 400. Send to Thereby, the medal selector no-operation command is transmitted from the medal selector 201 to the computer 400 periodically (for example, at a cycle of 500 msec). The medal selector no-operation command is as described above. After step S43, the process returns to step S42, and the determination of the predetermined timing is repeated.

所定のタイミングが到来していない場合(ステップS42のNO)、ステップS44において、コンピュータ400からコマンドを受信したか否かを判定する(ステップS44)。コマンドを受信していない場合(ステップS44のNO)、ステップS42に戻り、所定タイミングの判定を繰り返す。   If the predetermined timing has not come (NO in step S42), it is determined in step S44 whether a command has been received from the computer 400 (step S44). If the command has not been received (NO in step S44), the process returns to step S42 and the determination of the predetermined timing is repeated.

コマンドを受信した場合(ステップS44のYES)、ステップS45において、受信したコマンドを復号化する。その後、ステップS46において、受信したコマンドが正常に復号化できたか否かを判定する。受信したコマンドが正常に復号化できた場合(ステップS46のYES)、ステップS47において、受信したコマンドが暗号化キーの送信に関するものか否かを判定する。暗号化キーの送信に関するコマンドとは、例えば、初期化コマンド、暗号化キー1〜暗号化キー3コマンド、IV1〜IV3コマンドである。   If a command has been received (YES in step S44), the received command is decoded in step S45. Thereafter, in step S46, it is determined whether or not the received command has been successfully decoded. If the received command has been successfully decrypted (YES in step S46), it is determined in step S47 whether the received command is related to transmission of an encryption key. The command related to the transmission of the encryption key is, for example, an initialization command, an encryption key 1 to an encryption key 3 command, and an IV 1 to IV 3 command.

受信したコマンドが暗号化キーの送信に関するコマンドである場合(ステップS47のYES)、ステップS48において、受信したコマンドに対してACKを(コンピュータ400に)送信する。その後、復号化された暗号化キーと初期化ベクトルをSRAM243に記憶する(ステップS49)。また、初期化コマンドを受信した場合、メダルセレクタ201は、フラッシュメモリ244に記憶されている所定のデータをクリアするといった、所定の初期化処理を行う。   If the received command is a command related to transmission of the encryption key (YES in step S47), an ACK is transmitted (to the computer 400) for the received command in step S48. After that, the decrypted encryption key and the initialization vector are stored in the SRAM 243 (step S49). When receiving the initialization command, the medal selector 201 performs a predetermined initialization process such as clearing predetermined data stored in the flash memory 244.

次に、ステップS50において、暗号化キーの送信に関する最後のコマンド(すなわち、この例では、IV3コマンド)であるか否かを判定する。最後のコマンドである場合(ステップS50のYES)、ステップS51において、SRAM243に記憶された暗号化キーや初期化ベクトルをフラッシュメモリ244に記憶する。その後、ステップS42に戻り、所定タイミングの判定を繰り返す。また、最後のコマンドでない場合(ステップS50のNO)、ステップS42に戻り、所定タイミングの判定を繰り返す。   Next, in step S50, it is determined whether or not this is the last command related to the transmission of the encryption key (that is, the IV3 command in this example). If it is the last command (YES in step S50), the encryption key and the initialization vector stored in the SRAM 243 are stored in the flash memory 244 in step S51. Thereafter, the process returns to step S42, and the determination of the predetermined timing is repeated. If it is not the last command (NO in step S50), the process returns to step S42 and the determination of the predetermined timing is repeated.

受信したコマンドが暗号化キーの送信に関するコマンドでない場合(ステップS47のNO)、ステップS52において、受信したコマンドがACKコマンド、又はNAKコマンドであるか否かを判定する。受信したコマンドがACKコマンド、又はNAKコマンドである場合(ステップS52のYES)、ステップS53において、所定のACK/NAKコマンド受信時処理を行う。受信したコマンドがACKコマンド、又はNAKコマンドでない場合(ステップS52のNO)、又はステップS53の後、ステップS42に戻り、所定タイミングの判定を繰り返す。   If the received command is not a command related to the transmission of the encryption key (NO in step S47), it is determined in step S52 whether the received command is an ACK command or a NAK command. If the received command is an ACK command or a NAK command (YES in step S52), in step S53, a predetermined ACK / NAK command reception process is performed. When the received command is not the ACK command or the NAK command (NO in step S52), or after step S53, the process returns to step S42 to repeat the determination of the predetermined timing.

受信したコマンドが正常に復号化できない場合(ステップS46のNO)、ステップS54において、異常時処理を行う。この異常処理は、メダルセレクタ201が副制御回路101に接続されていない状況での異常の発生に対応するものであり、また、コンピュータ400との接続がされているものの、その接続に異常が発生している可能性もあるため、例えば、報知用LED206c等を点灯させるなど、メダルセレクタ201によって当該異常の発生を知らせるようにすることができる。   If the received command cannot be decoded normally (NO in step S46), an abnormal process is performed in step S54. This abnormality processing corresponds to the occurrence of an abnormality when the medal selector 201 is not connected to the sub-control circuit 101. Further, although the connection with the computer 400 is established, the abnormality occurs in the connection. Therefore, for example, the occurrence of the abnormality can be notified by the medal selector 201, for example, by turning on the notification LED 206c or the like.

また、このとき、メダルセレクタ201がリブート(再起動)を行い、最初のステップS41の処理からやり直すように制御することができる。具体的には、制御LSI234に内蔵されたWDT(Watch Dog Timer:不図示)の更新(リフレッシュ)を停止し、WDTがリセット信号をホストコントローラ241(図14参照)に出力させるまで待機処理を行う。異常処理においてリブートを行わない場合、ステップS42に戻り、所定タイミングの判定を繰り返すように制御することができる。   At this time, the medal selector 201 can perform a reboot (restart), and control can be performed so as to start over from the first step S41. Specifically, updating (refreshing) of a WDT (Watch Dog Timer: not shown) built in the control LSI 234 is stopped, and a standby process is performed until the WDT outputs a reset signal to the host controller 241 (see FIG. 14). . When the reboot is not performed in the abnormal process, the process returns to step S42, and control can be performed so that the determination of the predetermined timing is repeated.

<メダルセレクタと副制御回路間のコマンド送受信シーケンス>
次に、図28を参照し、メダルセレクタと副制御回路間のコマンド送受信シーケンスの一例について説明する。図28は、メダルセレクタと副制御回路間のコマンド送受信シーケンスの一例を説明するための図である。
<Command transmission / reception sequence between medal selector and sub-control circuit>
Next, an example of a command transmission / reception sequence between the medal selector and the sub control circuit will be described with reference to FIG. FIG. 28 is a diagram for explaining an example of a command transmission / reception sequence between the medal selector and the sub control circuit.

パチスロ1に電源が投入され、メダルセレクタ201及び副制御回路101が起動すると、メダルセレクタ201は、副制御回路101に起動完了コマンドを送信する。このとき、フラッシュメモリ244に記憶されている起動回数が「10」のとき、起動完了コマンドに含まれる送信カウンタ(CNT)の値は「10」となる。   When the power is turned on to the pachislot 1 and the medal selector 201 and the sub-control circuit 101 are activated, the medal selector 201 transmits an activation completion command to the sub-control circuit 101. At this time, when the number of activations stored in the flash memory 244 is “10”, the value of the transmission counter (CNT) included in the activation completion command is “10”.

続いて、起動完了コマンドを正常に受信した副制御回路101は、メダルセレクタ201にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、送信時に取得した乱数の値、例えば「256」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信した起動完了コマンドに含まれていた送信カウンタの値である「10」となる。   Subsequently, the sub-control circuit 101 that has normally received the activation completion command transmits an ACK command to the medal selector 201. The value of the transmission counter included in this ACK command is the value of the random number acquired at the time of transmission, for example, “256”. Further, the values of DAT0 and DAT1 of the ACK command are “10” which is the value of the transmission counter included in the received activation completion command.

続いて、図28に示す例では、メダルセレクタ201は、副制御回路101にメダルセレクタ無操作コマンドを送信する。このメダルセレクタ無操作コマンドに含まれる送信カウンタの値は、初期値「10」に1を加算した「11」となる。   Subsequently, in the example illustrated in FIG. 28, the medal selector 201 transmits a medal selector non-operation command to the sub control circuit 101. The value of the transmission counter included in the medal selector no-operation command is “11” which is obtained by adding 1 to the initial value “10”.

続いて、メダルセレクタ無操作コマンドを正常に受信した副制御回路101は、メダルセレクタ201にACKコマンドを送信する。このACKコマンドに含まれる送信カウンタの値は、初期値「256」に1を加算した「257」となる。また、このACKコマンドのDAT0及びDAT1の値は、受信したメダルセレクタ無操作コマンドに含まれていた送信カウンタの値である「11」となる。   Subsequently, the sub-control circuit 101 that has normally received the medal selector non-operation command transmits an ACK command to the medal selector 201. The value of the transmission counter included in this ACK command is “257” obtained by adding 1 to the initial value “256”. The values of DAT0 and DAT1 of the ACK command are “11” which is the value of the transmission counter included in the received medal selector non-operation command.

続いて、図28に示す例では、副制御回路101は、投入状態コマンドをメダルセレクタ201に送信する。この投入状態コマンドに含まれる送信カウンタの値は「257」に1を加算した「258」となる。ここで、何らかの原因でメダルセレクタがリブート(再起動)し、再起動後、投入状態コマンドに対するACKコマンドを送信する場合、このACKコマンドに含まれる送信カウンタは、再び初期値となる。この場合、起動回数は「11」となるので、ACKコマンドに含まれる送信カウンタは「11」となる。   Subsequently, in the example illustrated in FIG. 28, the sub-control circuit 101 transmits an insertion state command to the medal selector 201. The value of the transmission counter included in the input state command is “258” obtained by adding 1 to “257”. Here, when the medal selector reboots (restarts) for some reason and transmits an ACK command corresponding to the insertion state command after the restart, the transmission counter included in this ACK command becomes the initial value again. In this case, since the number of times of activation is “11”, the transmission counter included in the ACK command is “11”.

本実施形態において、副制御回路101は、メダルセレクタ201からACKコマンドを受信すると、受信したACKコマンドに含まれている送信カウンタの値が、前回、メダルセレクタ201から受信したコマンドに含まれていた送信カウンタの値に「1」を加算した値と等しいか否かを判定する。そして、等しくないと判定する場合は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「CMOS CNT」(以下、「ACKカウントエラー」と称する場合がある)、発生日時として現在の日付と時刻を記憶させる。   In the present embodiment, when the sub control circuit 101 receives the ACK command from the medal selector 201, the value of the transmission counter included in the received ACK command is included in the command previously received from the medal selector 201. It is determined whether the value of the transmission counter is equal to a value obtained by adding “1”. If it is determined that they are not equal to each other, the error information history area provided in the sub RAM 103 stores "CMOS CNT" (hereinafter sometimes referred to as "ACK count error") as the error content and the current date as the date and time of occurrence. And the time.

図28に示す例では、受信したACKコマンドに含まれている送信カウンタの値は「11」である。また、前回、メダルセレクタ201から受信したコマンドであるメダルセレクタ無操作コマンドに含まれていた送信カウンタの値「11」に「1」を加算した値は「12」である。従って、サブCPU102は、これらの値が等しくないと判定する。このため、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、エラー内容として「CMOS CNT」(ACKカウントエラー)、発生日時として現在の日付と時刻を記憶させる。   In the example shown in FIG. 28, the value of the transmission counter included in the received ACK command is “11”. The value obtained by adding “1” to the transmission counter value “11” included in the medal selector non-operation command, which is the command received from the medal selector 201 last time, is “12”. Therefore, the sub CPU 102 determines that these values are not equal. Therefore, the sub CPU 102 stores “CMOS CNT” (ACK count error) as the error content and the current date and time as the occurrence date and time in the error information history area provided in the sub RAM 103.

また、メダルセレクタ201は、500msecの周期で副制御回路101にコマンドを送信する。例えば、図28に示す例では、起動完了コマンドを副制御回路101に送信した500msec後にメダルセレクタ無操作コマンドが副制御回路101に送信される。なお、メダルセレクタ201から副制御回路101にコマンドを送信する周期は適宜設定可能である。   Further, the medal selector 201 transmits a command to the sub-control circuit 101 at a cycle of 500 msec. For example, in the example shown in FIG. 28, a medal selector non-operation command is transmitted to the sub-control circuit 101 500 msec after the start completion command is transmitted to the sub-control circuit 101. Note that the cycle at which the command is transmitted from the medal selector 201 to the sub-control circuit 101 can be set as appropriate.

<副制御回路が行う各種処理>
次に副制御回路101(のサブCPU102)が行う各種処理について、図29〜図33を参照して概略説明する。
<Various processes performed by the sub control circuit>
Next, various processes performed by (sub CPU 102 of) sub-control circuit 101 will be schematically described with reference to FIGS. 29 to 33.

[電源投入処理]
電源投入処理について、図29を参照して、説明する。図29は、電源投入処理の一例を示すフローチャートである。サブCPU102は、パチスロ1の電源投入時に、電源投入処理を行う。電源投入処理において、まず、サブCPU102は、電源投入時初期化処理を行う(ステップS101)。具体的には、サブCPU102は、各ドライバの初期化やカーネル(kernel、又はOperating System)の起動を実行する。(なお、本実施形態では、メダルセレクタ201に対して暗号化キーを送信する処理を「初期化処理」と称しており、初期化スイッチ206dの操作に応じて行われる初期化処理は「スイッチ応答初期化処理」とし、上述の副制御回路101の電源投入時の初期化処理は「電源投入時初期化処理」として、これと区別するものとする)。
[Power on process]
The power-on process will be described with reference to FIG. FIG. 29 is a flowchart illustrating an example of the power-on process. The sub CPU 102 performs power-on processing when the power of the pachislot 1 is turned on. In the power-on process, first, the sub CPU 102 performs a power-on initialization process (step S101). Specifically, the sub CPU 102 executes initialization of each driver and activation of a kernel (kernel or Operating System). (In the present embodiment, the process of transmitting the encryption key to the medal selector 201 is referred to as “initialization process”, and the initialization process performed in response to the operation of the initialization switch 206d is “switch response”. Initialization processing at the time of power-on of the sub-control circuit 101 is referred to as "power-on initialization processing" to be distinguished therefrom.)

次に、サブCPU102は、サブRAM103に設けられているサブ電源投入カウンタ(の値)に1を加算する(ステップS102)。具体的には、副制御回路101は、図示しない副制御電源管理部を有し、副制御電源管理部は、副制御回路101への電源電圧の供給(電源の投入)が開始され、予め設定された電圧値を上回った場合に、サブCPU102の図示しないリセット端子にリセット信号を出力する。サブCPU102は、リセット信号が入力されたことに基づいて、サブ電源投入カウンタ(の値)に1を加算する。なお、サブ電源投入カウンタは、メダルセレクタ201が初期化され、副制御回路101がメダルセレクタ201から初期化がセットされた(DAT0のビット0に1がセットされた)起動完了コマンドを受信したときに、クリアされる(0がセットされる)。そして、サブCPU102は、電源投入処理を終了する。   Next, the sub CPU 102 adds 1 to (the value of) the sub power-on counter provided in the sub RAM 103 (step S102). Specifically, the sub-control circuit 101 includes a sub-control power management unit (not shown). The sub-control power management unit starts supplying power (turning on the power) to the sub-control circuit 101 and sets the sub-control power in advance. When the voltage value exceeds the set voltage value, a reset signal is output to a reset terminal (not shown) of the sub CPU 102. The sub CPU 102 adds 1 to (the value of) the sub power-on counter based on the input of the reset signal. Note that the sub power-on counter is initialized when the medal selector 201 is initialized, and the sub control circuit 101 receives a start completion command from the medal selector 201 from which initialization is set (bit 0 of DAT0 is set to 1). Is cleared (0 is set). Then, the sub CPU 102 ends the power-on process.

[メダルセレクタ通信タスク]
次に、メダルセレクタ通信タスクについて、図30を参照して、説明する。図30は、メダルセレクタ通信タスクの一例を示すフローチャートである。サブCPU102は、電源投入処理後に、メダルセレクタ通信タスクを実行する。
[Medal Selector Communication Task]
Next, the medal selector communication task will be described with reference to FIG. FIG. 30 is a flowchart illustrating an example of the medal selector communication task. The sub CPU 102 executes the medal selector communication task after the power-on process.

メダルセレクタ通信タスクにおいて、まず、サブCPU102は、10msec周期待ち処理を行う(ステップS121)。具体的には、サブCPU102は、処理がステップS121に移行してから10msec経過するまでの間、処理をステップS122へ移行させず、10msec経過後に処理をステップS122に移行させる。すなわちメダルセレクタ通信タスクのステップS122以降の処理は、10msec毎に行われる。   In the medal selector communication task, first, the sub CPU 102 performs a waiting process for a period of 10 msec (step S121). Specifically, the sub CPU 102 does not shift the processing to step S122 until 10 msec elapses after the processing shifts to step S121, and shifts the processing to step S122 after elapse of 10 msec. In other words, the processing after step S122 of the medal selector communication task is performed every 10 msec.

次に、サブCPU102は、メダルセレクタ受信バッファに受信データがあるか否かを判定する(ステップS122)。メダルセレクタ受信バッファは、サブRAM103に設けられており、メダルセレクタ201から副制御回路101に送信された各種コマンドやデータを一時的に記憶する。   Next, the sub CPU 102 determines whether or not there is received data in the medal selector receiving buffer (step S122). The medal selector reception buffer is provided in the sub RAM 103, and temporarily stores various commands and data transmitted from the medal selector 201 to the sub control circuit 101.

ステップS122で、メダルセレクタ受信バッファに受信データがないと判定した場合(ステップS122がNO判定の場合)、サブCPU102は、処理をステップS121に移行させる。一方、ステップS122で、メダルセレクタ受信バッファに受信データがあると判定した場合(ステップS122がYES判定の場合)、サブCPU102は、メダルセレクタコマンド受信処理を行う(ステップS123)。メダルセレクタコマンド受信処理では、サブCPU102は、メダルセレクタ201から受信したコマンドに応じて各種処理を実行する。また、メダルセレクタ201から受信したコマンドは、メダルセレクタ201がコンピュータ400から受信した暗号化キーによって暗号化されているため、当該暗号化キーによって復号化を行う。メダルセレクタコマンド受信処理の詳細については、後述する。   When it is determined in step S122 that there is no reception data in the medal selector reception buffer (when step S122 is NO), the sub CPU 102 shifts the processing to step S121. On the other hand, if it is determined in step S122 that there is received data in the medal selector reception buffer (YES in step S122), sub CPU 102 performs a medal selector command reception process (step S123). In the medal selector command receiving process, the sub CPU 102 executes various processes according to the command received from the medal selector 201. Further, since the command received from the medal selector 201 is encrypted by the medal selector 201 using the encryption key received from the computer 400, the command is decrypted using the encryption key. Details of the medal selector command receiving process will be described later.

次に、サブCPU102は、メダルセレクタコマンド送信処理(ステップS124)を行う。メダルセレクタコマンド送信処理では、サブCPU102は、メダルセレクタ201に各種コマンドを送信する。また、メダルセレクタ201に送信するコマンドは、メダルセレクタ201がコンピュータ400から受信した暗号化キーと同じキーによって暗号化される。メダルセレクタコマンド送信処理の詳細については、後述する。ステップS124の後、サブCPU102は、処理をステップS121に移行させる。   Next, the sub CPU 102 performs a medal selector command transmission process (step S124). In the medal selector command transmission process, the sub CPU 102 transmits various commands to the medal selector 201. The command transmitted to the medal selector 201 is encrypted with the same key as the encryption key received by the medal selector 201 from the computer 400. Details of the medal selector command transmission processing will be described later. After step S124, sub CPU 102 shifts the processing to step S121.

[メダルセレクタコマンド受信処理]
メダルセレクタコマンド受信処理について、図31を参照して、説明する。図31は、メダルセレクタコマンド受信処理の一例を示すフローチャートである。メダルセレクタコマンド受信処理において、まず、サブCPU102は、メダルセレクタ201から受信したコマンドが起動完了コマンドか否かを判定する(ステップS131)。
[Medal selector command reception processing]
The medal selector command receiving process will be described with reference to FIG. FIG. 31 is a flowchart illustrating an example of the medal selector command receiving process. In the medal selector command receiving process, first, the sub CPU 102 determines whether or not the command received from the medal selector 201 is a start completion command (step S131).

なお、メダルセレクタ201から受信するコマンドは全て暗号化されており、サブCPU102は、受信した全てのコマンドを暗号化キーで復号化した後、以降の処理を実行する。   Note that all the commands received from the medal selector 201 are encrypted, and the sub CPU 102 executes the subsequent processing after decrypting all the received commands with the encryption key.

ステップS131で、受信したコマンドが起動完了コマンドであると判定する場合(ステップS131がYES判定の場合)、サブCPU102は、起動完了コマンド受信時処理を行う(ステップS132)。起動完了コマンド受信時処理は、例えば、起動完了コマンドを暗号化キーで復号化した後、復号結果から、メダルセレクタ201に関する初期化情報やスイッチ情報を取得して、これらを記憶するとともに、初期化情報やスイッチ情報の内容に応じて、パチスロ1の液晶表示装置11に所定のエラー画面を表示するよう制御する。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   If it is determined in step S131 that the received command is a startup completion command (step S131 is YES), the sub CPU 102 performs a startup completion command reception process (step S132). The processing at the time of receiving the start-up completion command is, for example, after decrypting the start-up completion command with an encryption key, obtains initialization information and switch information relating to the medal selector 201 from the decryption result, stores them, and initializes them. According to the contents of the information and the switch information, control is performed so that a predetermined error screen is displayed on the liquid crystal display device 11 of the pachislot 1. After that, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 30).

一方、ステップS131で、受信したコマンドが起動完了コマンドでないと判定する場合(ステップS131がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドが判定完了コマンドか否かを判定する(ステップS133)。   On the other hand, if it is determined in step S131 that the received command is not the activation completion command (if step S131 is NO), the sub CPU 102 determines whether the command received from the medal selector 201 is a determination completion command ( Step S133).

ステップS133で、受信したコマンドが判定完了コマンドであると判定する場合(ステップS133がYES判定の場合)、サブCPU102は、判定完了コマンド受信時処理を行う(ステップS134)。判定完了コマンド受信時処理は、例えば、判定完了コマンドを暗号化キーで復号化した後、復号結果から取得した判定結果をキューに登録し、NG判定がしきい値以上あったり、サブメダルカウンタが所定値以上であった場合に、パチスロ1の液晶表示装置11に所定のエラー画面を表示するよう制御する。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   If it is determined in step S133 that the received command is a determination completion command (YES in step S133), sub CPU 102 performs a determination completion command reception process (step S134). The process at the time of receiving the determination completion command is, for example, after decrypting the determination completion command with an encryption key, registering the determination result obtained from the decryption result in a queue, and when the NG determination is equal to or greater than a threshold value, If the value is equal to or more than the predetermined value, control is performed such that a predetermined error screen is displayed on the liquid crystal display device 11 of the pachislot 1. After that, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 30).

一方、ステップS133で、受信したコマンドが判定完了コマンドでないと判定する場合(ステップS133がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドがメダルセレクタエラーコマンドか否かを判定する(ステップS135)。   On the other hand, if it is determined in step S133 that the received command is not the determination completion command (if step S133 is NO), the sub CPU 102 determines whether the command received from the medal selector 201 is a medal selector error command. (Step S135).

ステップS135で、受信したコマンドがメダルセレクタエラーコマンドであると判定する場合(ステップS135がYES判定の場合)、サブCPU102は、メダルセレクタエラーコマンド受信時処理を行う(ステップS136)。メダルセレクタエラーコマンド受信時処理の詳細については、後述する。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   If it is determined in step S135 that the received command is a medal selector error command (if step S135 is YES), the sub CPU 102 performs a medal selector error command receiving process (step S136). Details of the medal selector error command receiving process will be described later. After that, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 30).

一方、ステップS135で、受信したコマンドがメダルセレクタエラーコマンドでないと判定する場合(ステップS135がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドがACK又はNAKコマンドか否かを判定する(ステップS137)。   On the other hand, if it is determined in step S135 that the received command is not a medal selector error command (if step S135 is NO), the sub CPU 102 determines whether the command received from the medal selector 201 is an ACK or a NAK command. (Step S137).

ステップS137で、受信したコマンドがACK又はNAKコマンドであると判定する場合(ステップS137がYES判定の場合)、サブCPU102は、ACK/NAKコマンド受信時処理を行う(ステップS138)。ACK/NAKコマンド受信時処理では、受信したACK/NAKコマンドに応じて各種処理を行う。なお、各種処理の例としては、後述するエラー解除コマンドに対するACKコマンドを、メダルセレクタ201から受信したときに、液晶表示装置11にC1エラー画面(不図示)の表示の終了を指示することや上述のACKカウントエラーをエラー情報履歴に登録することがある。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   If it is determined in step S137 that the received command is an ACK or NAK command (YES in step S137), the sub CPU 102 performs an ACK / NAK command reception process (step S138). In the ACK / NAK command receiving process, various processes are performed according to the received ACK / NAK command. Note that examples of various processes include instructing the liquid crystal display device 11 to end display of a C1 error screen (not shown) when an ACK command for an error release command described later is received from the medal selector 201, or May be registered in the error information history. After that, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 30).

一方、ステップS137で、受信したコマンドがACKコマンド、又はNAKコマンドでないと判定する場合(ステップS137がNO判定の場合)、サブCPU102は、メダルセレクタ201から受信したコマンドがメダルセレクタ無操作コマンドか否かを判定する(ステップS139)。   On the other hand, if it is determined in step S137 that the received command is not an ACK command or a NAK command (if step S137 is NO), the sub CPU 102 determines whether the command received from the medal selector 201 is a medal selector non-operation command. Is determined (step S139).

ステップS139で、受信したコマンドがメダルセレクタ無操作コマンドであると判定する場合(ステップS139がYES判定の場合)、サブCPU102は、メダルセレクタ無操作コマンド受信時処理を行う(ステップS140)。メダルセレクタ無操作コマンド受信時処理は、例えば、メダルセレクタ無操作コマンドを暗号化キーで復号化した後、復号結果から取得したDAT0の値に基づいて、「初期化あり」と判定されると、パチスロ1の液晶表示装置11に初期化エラー画面を表示するよう制御する。また、復号結果から取得したDAT3、DAT4の値に基づいて、起動回数を判定し、この起動回数が所定の条件を満たす場合に、パチスロ1の液晶表示装置11に所定のエラー画面を表示するよう制御する。さらに、復号結果から取得したDAT1の値に基づいて、メダルセレクタ201の各種スイッチの状態を確認し、変化がある場合はエラー情報履歴に登録する。またさらに、上述したメダルセレクターエラーコマンド受信時処理を行う。これによって、何らかの障害が生じて、副制御回路101がメダルセレクタ201からのエラーコマンドを受信できなかった場合にも、メダルセレクタ無操作コマンドを受信することで、副制御回路101は、メダルセレクタ201の生じているエラー状態を適切に検知し、報知することができる。その後、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   If it is determined in step S139 that the received command is a medal selector non-operation command (YES in step S139), the sub CPU 102 performs a medal selector non-operation command reception process (step S140). The process at the time of receiving the medal selector non-operation command, for example, after the medal selector non-operation command is decrypted with the encryption key, when it is determined that “initialization is performed” based on the value of DAT0 obtained from the decryption result, Control is performed to display an initialization error screen on the liquid crystal display device 11 of the pachislot 1. Also, the number of activations is determined based on the values of DAT3 and DAT4 obtained from the decoding result, and when the number of activations satisfies a predetermined condition, a predetermined error screen is displayed on the liquid crystal display device 11 of the pachislot 1. Control. Further, based on the value of DAT1 obtained from the decryption result, the state of various switches of the medal selector 201 is confirmed, and if there is a change, it is registered in the error information history. Further, the above-described processing at the time of receiving the medal selector error command is performed. As a result, even if a failure occurs and the sub-control circuit 101 cannot receive the error command from the medal selector 201, the sub-control circuit 101 receives the medal selector non-operation command, and The error state where the error has occurred can be appropriately detected and notified. After that, the sub CPU 102 ends the medal selector command receiving process, and returns the process to the step S124 of the medal selector communication task (see FIG. 30).

一方、ステップS139で、受信したコマンドがメダルセレクタ無操作コマンドでないと判定する場合(ステップS139がNO判定の場合)、サブCPU102は、メダルセレクタコマンド受信処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   On the other hand, if it is determined in step S139 that the received command is not the medal selector non-operation command (NO in step S139), the sub CPU 102 ends the medal selector command receiving process, and proceeds to the medal selector communication task ( The process returns to step S124 of FIG. 30).

[メダルセレクタエラーコマンド受信時処理]
メダルセレクタエラーコマンド受信時処理について、図32を参照して、説明する。図32は、メダルセレクタエラーコマンド受信時処理の一例を示すフローチャートである。
[Process when receiving a medal selector error command]
The process at the time of receiving the medal selector error command will be described with reference to FIG. FIG. 32 is a flowchart illustrating an example of a process when a medal selector error command is received.

メダルセレクタエラーコマンド受信時処理において、まず、サブCPU102は、C1エラー発生中か否かを判定する(ステップS171)。具体的には、サブCPU102は、液晶表示装置11にC1エラー画面が表示されているか否かを確認し、C1エラー画面が表示中の場合は、エラー発生中と判定し、表示中でない場合は、エラー発生中でないと判定する。   In the process when receiving a medal selector error command, first, the sub CPU 102 determines whether or not a C1 error is occurring (step S171). Specifically, the sub CPU 102 checks whether or not a C1 error screen is displayed on the liquid crystal display device 11, determines that an error has occurred if the C1 error screen is being displayed, and determines that an error has occurred. It is determined that no error has occurred.

本実施形態では、メダルセレクタに係るエラーの種類として、C1エラーとC2エラーの2種類がある。C2エラーは、副制御回路101(のサブCPU102)によって、発生したと判断されるエラーであり、C2エラー発生時には、C2エラー画面が表示される。   In the present embodiment, there are two types of errors related to the medal selector, a C1 error and a C2 error. The C2 error is an error determined to have occurred by (the sub CPU 102 of) the sub control circuit 101. When a C2 error occurs, a C2 error screen is displayed.

一方、C1エラーは、メダルセレクタ201(の制御LSI234)によって、発生したと判断されるエラーである。本実施形態において、C1エラーには、異物検出エラー、カバー開放エラー、掃除エラー、色テンプレート生成エラー、刻印テンプレート生成エラー、ハードエラーの6種類がある。   On the other hand, the C1 error is an error determined to have occurred by (the control LSI 234 of) the medal selector 201. In the present embodiment, there are six types of C1 errors: a foreign object detection error, a cover opening error, a cleaning error, a color template generation error, an engraved template generation error, and a hard error.

ステップS171の処理で、C1エラー発生中であると判定する場合(ステップS171がYES判定の場合)、サブCPU102は、メダルセレクタエラーコマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   If it is determined in step S171 that a C1 error is occurring (if step S171 is determined to be YES), the sub CPU 102 terminates the medal selector error command receiving process, and proceeds to the medal selector communication task (FIG. 30). Return to step S124).

一方、ステップS171の処理で、C1エラー発生中でないと判定する場合(ステップS171がNO判定の場合)、サブCPU102は、受信したメダルセレクタエラーコマンドを、暗号化キーで復号化し、復号結果から受信バッファのエラー状態が0か否かを判定する(ステップS172)。具体的には、サブCPU102は、復号結果を記憶する受信バッファのメダルセレクタエラーコマンドのDAT0、又はメダルセレクタ無操作コマンドのDAT2を参照し、そこに記憶されているエラー状態を示すデータを参照する。そして、値が「エラーなし」を示す「0」か否かを判定する。   On the other hand, when it is determined in step S171 that the C1 error is not occurring (when step S171 is NO), the sub CPU 102 decrypts the received medal selector error command with the encryption key and receives the medal selector error command from the decryption result. It is determined whether the error status of the buffer is 0 (step S172). Specifically, the sub CPU 102 refers to DAT0 of the medal selector error command of the reception buffer storing the decoding result or DAT2 of the medal selector non-operation command, and refers to the data indicating the error state stored therein. . Then, it is determined whether or not the value is “0” indicating “no error”.

ステップS172で、エラー状態を示すデータの値が「0」であると判定する場合(ステップS172がYES判定の場合)、サブCPU102は、メダルセレクタエラーコマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   If it is determined in step S172 that the value of the data indicating the error state is “0” (if step S172 is YES), the sub CPU 102 ends the medal selector error command receiving process, and sets the process to the medal selector. The process returns to step S124 of the communication task (see FIG. 30).

一方、ステップS172で、エラー状態を示すデータの値が「0」でないと判定する場合(ステップS172がNO判定の場合)、サブCPU102は、C1エラー画面表示要求を行う(ステップS173)。具体的には、サブCPU102は、C1エラー画面の表示を、液晶表示装置11に指示する。   On the other hand, if it is determined in step S172 that the value of the data indicating the error state is not “0” (NO in step S172), sub CPU 102 issues a C1 error screen display request (step S173). Specifically, the sub CPU 102 instructs the liquid crystal display device 11 to display a C1 error screen.

次に、サブCPU102は、「C1_*」エラーをエラー情報履歴に登録する(ステップS174)。具体的には、サブCPU102は、サブRAM103に設けられたエラー情報履歴領域に、受信バッファに記憶されているコマンドにおけるエラー状態に応じたエラー内容(「1」〜「6」のいずれか)と発生日時として現在の日付と時刻を登録する。例えば、受信バッファに記憶されているコマンドにおけるエラー状態が「刻印テンプレート生成エラー」を示す「5」の場合、エラー内容として「C1_5」が登録される。そして、サブCPU102は、メダルセレクタエラーコマンド受信時処理を終了し、処理をメダルセレクタ通信タスク(図30参照)のステップS124に戻す。   Next, the sub CPU 102 registers a “C1_ *” error in the error information history (step S174). Specifically, the sub CPU 102 stores, in an error information history area provided in the sub RAM 103, an error content (one of “1” to “6”) corresponding to the error state of the command stored in the reception buffer. Register the current date and time as the occurrence date and time. For example, when the error state of the command stored in the reception buffer is “5” indicating “engraved template generation error”, “C1_5” is registered as the error content. Then, the sub CPU 102 ends the process at the time of receiving the medal selector error command, and returns the process to the step S124 of the medal selector communication task (see FIG. 30).

[メダルセレクタコマンド送信処理]
次に、メダルセレクタコマンド送信処理について、図33を参照して、説明する。図33は、メダルセレクタコマンド送信処理の一例を示すフローチャートである。
[Medal selector command transmission processing]
Next, the medal selector command transmission processing will be described with reference to FIG. FIG. 33 is a flowchart illustrating an example of a medal selector command transmission process.

なお、サブCPU102は、全てのコマンドを暗号化キーで暗号化した後、メダルセレクタ201に送信する。   The sub CPU 102 transmits all the commands to the medal selector 201 after encrypting them with the encryption key.

メダルセレクタコマンド送信処理において、サブCPU102は、まず、ACKコマンド、又はNAKコマンド受信時か否かを判定する(ステップS221)。具体的には、サブCPU102は、メダルセレクタ201から直近に受信したコマンドが、ACKコマンド、又はNAKコマンドか否かを判定する。ACKコマンド、又はNAKコマンド受信時であると判定する場合(ステップS221がYES判定の場合)、サブCPU102は、処理を後述するステップS223に移行させる。   In the medal selector command transmission processing, the sub CPU 102 first determines whether or not an ACK command or a NAK command has been received (step S221). Specifically, the sub CPU 102 determines whether the command received most recently from the medal selector 201 is an ACK command or a NAK command. If it is determined that an ACK command or a NAK command has been received (YES in step S221), sub CPU 102 shifts the processing to step S223 described below.

一方、ステップS221においてACKコマンド、又はNAKコマンド受信時でないと判定する場合(ステップS221がNO判定の場合)、サブCPU102は、ACKコマンド/NAKコマンド送信処理を行う(ステップS222)。この処理において、サブCPU102は、メダルセレクタ201にACKコマンド、又はNAKコマンドに対して暗号化キーで暗号化した後、暗号化されたACKコマンド、又はNAKコマンドを送信する。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。   On the other hand, if it is determined in step S221 that the ACK command or the NAK command has not been received (NO in step S221), the sub CPU 102 performs an ACK command / NAK command transmission process (step S222). In this processing, the sub CPU 102 transmits the encrypted ACK command or NAK command to the medal selector 201 after encrypting the ACK command or NAK command with the encryption key. Then, the sub CPU 102 ends the medal selector command transmission processing.

ステップS221で、ACKコマンド、又はNAKコマンド受信時であると判定する場合(ステップS221がYES判定の場合)、サブCPU102は、エラー解除判定処理を行う(ステップS223)。エラー解除判定処理では、サブCPU102は、各種エラーに係る解除条件が成立すると、解除条件が成立したエラーに係る解除条件フラグに成立をセットする(値「1」をセットする)。   If it is determined in step S221 that an ACK command or a NAK command has been received (YES in step S221), the sub CPU 102 performs an error release determination process (step S223). In the error release determination process, when the release conditions relating to various errors are satisfied, the sub CPU 102 sets the release condition flag relating to the error for which the release conditions are satisfied to be satisfied (sets the value “1”).

次に、サブCPU102は、C1エラー発生中、且つ、解除条件フラグが成立か否かを判定する(ステップS224)。具体的には、サブCPU102は、液晶表示装置11にC1エラー画面が表示されているか否かに基づいてC1エラー発生中か否かを判定する。また、サブCPU102は、サブRAM103に設けられている解除条件フラグ格納領域に「1」がセットされているか否かに基づいて解除条件フラグが成立しているか否かを判定する。C1エラーが発生中でない、又は、解除条件フラグが成立でないと判定する場合(ステップS224がNO判定の場合)、サブCPU102は、処理を後述のステップS226に移行させる。   Next, the sub CPU 102 determines whether the C1 error has occurred and whether the release condition flag is satisfied (step S224). Specifically, the sub CPU 102 determines whether or not a C1 error is occurring based on whether or not a C1 error screen is displayed on the liquid crystal display device 11. The sub CPU 102 determines whether the release condition flag is established based on whether “1” is set in the release condition flag storage area provided in the sub RAM 103. When it is determined that the C1 error is not occurring or the release condition flag is not satisfied (NO in step S224), the sub CPU 102 shifts the processing to step S226 described below.

一方、ステップS224において解除条件フラグが成立である判定する場合(ステップS224がYES判定の場合)、サブCPU102は、エラー解除コマンド送信処理を行う(ステップS225)。この処理において、サブCPU102は、メダルセレクタ201にエラー解除コマンドを送信する。ここで、エラー解除コマンドは、暗号化キーで暗号化された後、メダルセレクタ201に送信される。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。なお、サブCPU102は、副制御回路101がエラー解除コマンドに対するACKコマンドをメダルセレクタ201から受信したとき、上述のメダルセレクタコマンド受信処理(図31)のステップS138のACKコマンド/NAKコマンド受信時処理において、液晶表示装置11にC1エラー画面の表示の終了を指示する。   On the other hand, when it is determined in step S224 that the release condition flag is satisfied (YES in step S224), sub CPU 102 performs an error release command transmission process (step S225). In this process, the sub CPU 102 transmits an error release command to the medal selector 201. Here, the error release command is transmitted to the medal selector 201 after being encrypted with the encryption key. Then, the sub CPU 102 ends the medal selector command transmission processing. Note that when the sub control circuit 101 receives an ACK command corresponding to the error release command from the medal selector 201 from the medal selector 201, the sub CPU 102 performs the ACK command / NAK command receiving process of step S138 of the above-described medal selector command receiving process (FIG. 31). , Instructs the liquid crystal display device 11 to end displaying the C1 error screen.

ステップS224で、解除条件フラグが成立でないと判定する場合(ステップS224がNO判定の場合)、サブCPU102は、メダル受付フラグはメダル受付不可か否かを判定する(ステップS226)。メダル受付フラグ格納領域は、サブRAM103に設けられている。メダル受付フラグ格納領域には、後述するステップS229、ステップS232で、主制御回路91から受信した無操作コマンドに含まれているメダルソレノイド208のON/OFF状態の情報に基づいて、ON状態の場合は「1」(受付可)、OFF状態の場合は「0」(受付不可)がセットされる。ステップS226で、メダル受付フラグはメダル受付不可でない(受付可である)と判定する場合(ステップS226がNO判定の場合)、サブCPU102は、処理を後述するステップS230に移行させる。   If it is determined in step S224 that the release condition flag is not satisfied (if step S224 is NO), sub CPU 102 determines whether or not the medal acceptance flag indicates that the medal cannot be accepted (step S226). The medal acceptance flag storage area is provided in the sub RAM 103. In the medal reception flag storage area, in the case of the ON state based on the information of the ON / OFF state of the medal solenoid 208 included in the no-operation command received from the main control circuit 91 in steps S229 and S232 to be described later. Is set to "1" (acceptable), and in the OFF state, "0" (acceptable). If it is determined in step S226 that the medal acceptance flag is not set to indicate that medal acceptance is not possible (acceptance is possible) (if step S226 is NO), sub CPU 102 shifts the processing to step S230 described later.

ステップS226で、メダル受付フラグはメダル受付不可であると判定する場合(ステップS226がYES判定の場合)、サブCPU102は、無操作コマンドのメダルソレノイドはON状態か否かを判定する(ステップS227)。具体的には、サブCPU102は、主制御回路91から受信した直近の無操作コマンドが格納されている無操作コマンド格納領域を参照し、この無操作コマンドに含まれるメダルソレノイド208のON/OFF状態の情報に基づいて、メダルソレノイドはON状態か否かを判定する。なお、無操作コマンド格納領域は、上述のとおりサブRAM103に設けられている。   When it is determined in step S226 that the medal reception flag indicates that the medal cannot be received (YES in step S226), sub CPU 102 determines whether the medal solenoid of the no-operation command is in the ON state (step S227). . Specifically, the sub CPU 102 refers to the no-operation command storage area in which the most recent no-operation command received from the main control circuit 91 is stored, and sets the ON / OFF state of the medal solenoid 208 included in the no-operation command. It is determined whether or not the medal solenoid is in the ON state based on the above information. Note that the no-operation command storage area is provided in the sub RAM 103 as described above.

ステップS227で、メダルソレノイドはON状態でないと判定する場合(ステップS227がNO判定の場合)、サブCPU102は、メダルセレクタコマンド送信処理を終了する。一方、ステップS227で、メダルソレノイドはON状態であると判定する場合(ステップS227がYES判定の場合)、サブCPU102は、投入状態(可)コマンドを送信する(ステップS228)。具体的には、サブCPU102は、DAT0の値が「1」(受付可)の投入状態コマンドを、メダルセレクタ201に送信する。なお、ここで、投入状態(可)コマンドは、暗号化キーで暗号化された後、メダルセレクタ201に送信される。   If it is determined in step S227 that the medal solenoid is not in the ON state (if step S227 is NO), the sub CPU 102 ends the medal selector command transmission processing. On the other hand, if it is determined in step S227 that the medal solenoid is in the ON state (if step S227 is YES), the sub CPU 102 transmits an insertion state (possible) command (step S228). Specifically, the sub CPU 102 transmits an insertion state command in which the value of DAT0 is “1” (acceptable) to the medal selector 201. Here, the insertion state (possible) command is transmitted to the medal selector 201 after being encrypted with the encryption key.

次に、サブCPU102は、メダル受付フラグにメダル受付可をセットする(ステップS229)。具体的には、サブCPU102は、サブRAM103のメダル受付フラグ格納領域に「1」(受付可)をセットする。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。   Next, the sub CPU 102 sets a medal acceptance flag to a medal acceptance flag (step S229). Specifically, the sub CPU 102 sets “1” (acceptable) in the medal acceptance flag storage area of the sub RAM 103. Then, the sub CPU 102 ends the medal selector command transmission processing.

ステップS226で、メダル受付フラグはメダル受付不可でないと判定する場合(ステップS226がNO判定の場合)、サブCPU102は、無操作コマンドのメダルソレノイドはOFF状態か否かを判定する(ステップS230)。具体的には、サブCPU102は、主制御回路91から受信した直近の無操作コマンドが格納されている無操作コマンド格納領域を参照し、この無操作コマンドに含まれるメダルソレノイド208のON/OFF状態の情報に基づいて、メダルソレノイドはOFF状態か否かを判定する。   If it is determined in step S226 that the medal reception flag indicates that the medal cannot be received (step S226 is NO), the sub CPU 102 determines whether the medal solenoid of the no-operation command is in the OFF state (step S230). Specifically, the sub CPU 102 refers to the no-operation command storage area in which the most recent no-operation command received from the main control circuit 91 is stored, and sets the ON / OFF state of the medal solenoid 208 included in the no-operation command. It is determined whether or not the medal solenoid is in the OFF state based on the above information.

ステップS230で、メダルソレノイドはOFF状態でないと判定する場合(ステップS230がNO判定の場合)、サブCPU102は、メダルセレクタコマンド送信処理を終了する。一方、ステップS230で、メダルソレノイドはOFF状態であると判定する場合(ステップS230がYES判定の場合)、サブCPU102は、投入状態(不可)コマンドを送信する(ステップS231)。具体的には、サブCPU102は、DAT0の値が「0」(受付不可)の投入状態コマンドを、メダルセレクタ201に送信する。なお、ここで、投入状態(不可)コマンドは、暗号化キーで暗号化された後、メダルセレクタ201に送信される。   If it is determined in step S230 that the medal solenoid is not in the OFF state (if step S230 is NO), the sub CPU 102 terminates the medal selector command transmission processing. On the other hand, when it is determined in step S230 that the medal solenoid is in the OFF state (when step S230 is determined to be YES), the sub CPU 102 transmits an insertion state (impossible) command (step S231). Specifically, the sub CPU 102 transmits an insertion state command in which the value of DAT0 is “0” (cannot be accepted) to the medal selector 201. Here, the insertion state (impossible) command is transmitted to the medal selector 201 after being encrypted with the encryption key.

次に、サブCPU102は、メダル受付フラグにメダル受付不可をセットする(ステップS232)。具体的には、サブCPU102は、サブRAM103のメダル受付フラグ格納領域に「0」(受付不可)をセットする。そして、サブCPU102は、メダルセレクタコマンド送信処理を終了する。   Next, the sub CPU 102 sets a medal acceptance flag to a medal acceptance flag (step S232). Specifically, the sub CPU 102 sets “0” (cannot be accepted) in the medal acceptance flag storage area of the sub RAM 103. Then, the sub CPU 102 ends the medal selector command transmission processing.

以上、説明してきたように、コンピュータ400からメダルセレクタ201に提供された暗号化キーは、メダルセレクタ201と副制御回路101とのデータ通信(コマンドの送受信)において、コマンドのデータを暗号化するために用いられる。従って、当然、副制御回路101にも、メダルセレクタ201が記憶する暗号化キーと同一の暗号化キーが保持されている。また、この暗号化キーは、様々な方法で副制御回路101の所定の記憶手段に記憶されうる。例えば、本発明のメダルセレクタ201の初期化処理と同様に、コンピュータ400に接続して、当該コンピュータ400から暗号化キーを提供するようにすることもできる。   As described above, the encryption key provided from the computer 400 to the medal selector 201 is used for encrypting command data in data communication (command transmission / reception) between the medal selector 201 and the sub-control circuit 101. Used for Therefore, the same encryption key as the encryption key stored in the medal selector 201 is held in the sub-control circuit 101 as well. The encryption key can be stored in a predetermined storage unit of the sub-control circuit 101 by various methods. For example, similarly to the initialization processing of the medal selector 201 of the present invention, it is also possible to connect to the computer 400 and provide the encryption key from the computer 400.

初期化ベクトルは、暗号化の対象となるデータが同じである場合に、同じ暗号化キーで暗号化されたデータが同じになることを回避するために、暗号化のたびにランダムに生成されるデータであり、この初期化ベクトルを暗号化対象データと結合して暗号化したり、暗号化されたデータと結合したりすることによって、同じ暗号化対象データを同じ暗号化キーで暗号化した場合であっても、異なる暗号化データが生成されることになり、結果として暗号化の強度を高めることができる。本実施形態では、このような初期化ベクトルを暗号化キーとともにコンピュータ400からメダルセレクタ201に提供しているが、メダルセレクタ201で使用しない場合は、当該初期化データを、コンピュータ400からメダルセレクタ201に提供しないように構成することができる。   The initialization vector is randomly generated at each encryption to prevent the data encrypted with the same encryption key from being the same when the data to be encrypted is the same. When the same encryption target data is encrypted with the same encryption key by combining this initialization vector with the data to be encrypted and encrypting it or by combining it with the encrypted data. Even so, different encrypted data will be generated, and as a result, the strength of encryption can be increased. In the present embodiment, such an initialization vector is provided from the computer 400 to the medal selector 201 together with the encryption key. However, when not used by the medal selector 201, the initialization data is transmitted from the computer 400 to the medal selector 201. Can be configured not to be provided.

上述した本実施形態の構成によって、メダルセレクタ201は、ケーブル280の接続先を切り替えるだけで、外部コンピュータ(コンピュータ400)と副制御回路101の両方に対して、同じプロトコルでデータ通信を行うことができる。従って、メダルセレクタ201の設定等を、接続されるハードウェアに応じて変更する、といった操作をする必要がなく、接続先のハードウェアを簡単に切り替えることができる。メダルセレクタ201は、接続先のハードウェアから受信するコマンドの種類によって処理を切り替えることができ、接続先であるコンピュータ400や副制御回路101も、それぞれメダルセレクタ201からのコマンドを受信可能となっている。   With the configuration of the present embodiment described above, the medal selector 201 can perform data communication with both the external computer (computer 400) and the sub-control circuit 101 using the same protocol only by switching the connection destination of the cable 280. it can. Therefore, there is no need to perform an operation of changing the setting of the medal selector 201 in accordance with the connected hardware, and the connection destination hardware can be easily switched. The medal selector 201 can switch processing depending on the type of a command received from the hardware of the connection destination, and the computer 400 and the sub-control circuit 101 that are the connection destinations can receive the command from the medal selector 201, respectively. I have.

また、上記のような構成によって、メダルセレクタ201は、外部コンピュータ(コンピュータ400)から、初期化処理として、暗号化キーを受信するが、当該暗号化キーが所定の暗号鍵で暗号化されている場合は、より安全に暗号化キーの配布が可能となる。   With the above-described configuration, the medal selector 201 receives an encryption key from an external computer (computer 400) as initialization processing, and the encryption key is encrypted with a predetermined encryption key. In such a case, the encryption key can be distributed more safely.

また、メダルセレクタ暗号化キー作成ツールによって、暗号化キーを暗号化して格納する暗号化キーファイルが作成されるため、暗号化キーを簡単に作成できるとともに、作成した暗号化キーを安全に保管・管理することができる。   In addition, since the medal selector encryption key creation tool creates an encryption key file that encrypts and stores the encryption key, the encryption key can be easily created, and the created encryption key can be safely stored and stored. Can be managed.

また、上述のように、メダルセレクタ201と副制御回路101におけるデータ通信は、暗号化キーによって暗号化されるので(すなわち、暗号化された通信データによる双方向通信が実現されるので)、メダルセレクタ201と副制御回路101の間のセキュリティを、高いレベルで維持することができる。   Further, as described above, since the data communication between the medal selector 201 and the sub control circuit 101 is encrypted by the encryption key (that is, the two-way communication by the encrypted communication data is realized), Security between the selector 201 and the sub-control circuit 101 can be maintained at a high level.

なお、本実施形態では、メダルセレクタ201と副制御回路101との間のコマンド、及びメダルセレクタ201とコンピュータ400との間のコマンドは、2バイトの送信カウンタ(CNT)と、DAT0〜DAT6からなるパラメータ(データ部)を含んで構成されているが、ここで、例えば、複数のコマンドによって1つのデータが送信される場合、受信側では、受信バッファに一連のコマンドのパラメータがすべて受信されてから、1つのデータに統合し、そのデータを暗号鍵で復号化するように構成することができる。また、本実施形態では、コマンド種類を表すデータについては、暗号化キーによる暗号化が行われず、受信側では、コマンド種類を判断してから送信カウンタとDAT0〜DAT6を暗号化キーで復号化するようにしたが、コマンド種類を表すデータを含めて暗号化キーによる暗号化を行うこともでき、この場合は、受信側で、コマンド種類を表すデータを含めた復号化が行われる。   In the present embodiment, the command between the medal selector 201 and the sub-control circuit 101 and the command between the medal selector 201 and the computer 400 include a 2-byte transmission counter (CNT) and DAT0 to DAT6. It is configured to include parameters (data part). Here, for example, when one data is transmitted by a plurality of commands, the receiving side waits until all parameters of the series of commands are received in the reception buffer. It can be configured to be integrated into one piece of data and to decrypt that data with an encryption key. Further, in the present embodiment, the data representing the command type is not encrypted using the encryption key, and the receiving side decrypts the transmission counter and DAT0 to DAT6 with the encryption key after determining the command type. However, encryption using an encryption key including data representing a command type can also be performed. In this case, decryption including data representing a command type is performed on the receiving side.

<ドア監視ユニット暗号化キー作成ツールのGUI>
次に、24hドア監視ユニット63の暗号化キーを作成するドア監視ユニット暗号化キー作成ツール(プログラム)のGUIについて、図34、及び図35を参照して説明する。
<GUI of the door monitoring unit encryption key creation tool>
Next, a GUI of a door monitoring unit encryption key creation tool (program) for creating an encryption key of the 24h door monitoring unit 63 will be described with reference to FIGS. 34 and 35.

ドア監視ユニット暗号化キー作成ツールは、上述のようにコンピュータ400において実行され、そのツールの画面は、コンピュータ400のディスプレイ409に表示され、入力・指示等は、キーボード411やマウス412等を用いて行われる。   The door monitoring unit encryption key creation tool is executed on the computer 400 as described above, and the screen of the tool is displayed on the display 409 of the computer 400, and inputs and instructions are input using the keyboard 411, the mouse 412, and the like. Done.

図34Aには、ドア監視ユニット暗号化キー作成ツールの暗号化キー作成画面601が示されている。暗号化キー作成画面601には、作成タブの選択で前面に表示されるよう制御された作成表示部602が含まれ、作成表示部602には、暗号化キー入力部603、チェックサム表示部605、作成日時表示部606、及び作成指示ボタン607が示されている。図34Aは、暗号化キーが入力される前の暗号化キー作成画面601を示している。   FIG. 34A shows an encryption key creation screen 601 of the door monitoring unit encryption key creation tool. The encryption key creation screen 601 includes a creation display unit 602 controlled to be displayed on the front by selecting a creation tab. The creation display unit 602 includes an encryption key input unit 603 and a checksum display unit 605. , A creation date / time display unit 606, and a creation instruction button 607. FIG. 34A shows an encryption key creation screen 601 before an encryption key is input.

図34Bには、図34Aと同様の暗号化キー作成画面601が示されているが、ここでは、ユーザによって暗号化キー入力部603に暗号化キーが入力された状態である。ここで、ユーザが、作成指示ボタン607をマウス412で押下等し(矢印608)、暗号化キーファイルの作成を指示する。   FIG. 34B shows the same encryption key creation screen 601 as FIG. 34A, but here, the user has entered the encryption key into the encryption key input unit 603. Here, the user presses the creation instruction button 607 with the mouse 412 (arrow 608) to instruct creation of an encryption key file.

暗号化キー入力部603に暗号化キーを入力する場合、ユーザは、暗号化キー入力部603に、例えば、ASCIIコード文字で、16文字を入力する。キー管理者は、それぞれ、又は一群の24hドア監視ユニット63に対して1つの暗号化キーを設定し、その暗号化キーを、例えば、別途、テキストファイル等の形式で記憶しておくようにする。また、暗号化キー入力部603に対して、暗号化キーを記憶したテキストファイルをドラッグ&ドロップ(又はテキストをコピー&ペースト)して、16文字の入力を行うようにすることもできる。   When inputting an encryption key into the encryption key input unit 603, the user inputs 16 characters, for example, as ASCII code characters into the encryption key input unit 603. The key manager sets one encryption key for each or a group of the 24h door monitoring units 63, and stores the encryption key separately in the form of, for example, a text file. . In addition, a text file storing the encryption key can be dragged and dropped (or text copied and pasted) into the encryption key input unit 603 to input 16 characters.

暗号化キー入力部603に暗号化キーが入力された状態は、図34Bでは、便宜上、16個の「a」として表示されているが、暗号化キー入力部603に、入力された16個の文字をそのまま表示させてもよいし、入力とともに、「*」等の文字で隠蔽するようにしてもよい。   In FIG. 34B, the state in which the encryption key has been input to the encryption key input section 603 is displayed as 16 “a” for convenience, but the 16 input keys are input to the encryption key input section 603. The character may be displayed as it is, or may be hidden by a character such as "*" together with the input.

ここで、ユーザにより、作成指示ボタン607が押下されると、チェックサム表示部605に、暗号化キーに基づいて計算された誤り検出用のチェックサムを計算して表示し、暗号化キーファイルを作成する。暗号化キーファイルの作成が完了した場合に、暗号化キー作成画面601の所定のエリアに、暗号化キーファイルの作成が完了した旨のメッセージを表示するようにしてもよい。図34Bでは、作成日時表示部606に作成日時が表示されていないが、暗号化キーファイルが作成された時点で、その作成日時を作成日時表示部606に表示するようにしてもよい。   Here, when the creation instruction button 607 is pressed by the user, the checksum for error detection calculated based on the encryption key is calculated and displayed on the checksum display unit 605, and the encryption key file is displayed. create. When the creation of the encryption key file is completed, a message indicating that the creation of the encryption key file has been completed may be displayed in a predetermined area of the encryption key creation screen 601. In FIG. 34B, the creation date and time are not displayed on the creation date and time display unit 606, but the creation date and time may be displayed on the creation date and time display unit 606 when the encryption key file is created.

作成された暗号化キーファイルは、ドア監視ユニット暗号化キー作成ツールが内部に保持する(又は、所定の記憶手段に記憶する)暗号化キーファイル作成用暗号鍵で、暗号化キーを暗号化したデータを含むものである。暗号化キーファイルは、コンピュータ400の記憶手段(外部記憶装置413)等に記憶される。ここで、例えば、暗号化キーファイルの暗号化方式はAESであり、フロックサイズは128bit、暗号鍵長は128bit、ブロック暗号モードはCBCモードである。暗号化キーファイルは、所定の記憶形式(例えば、XMLファイル形式)で作成され、また、暗号化キーファイルには、上述したチェックサムの値と作成日時が含まれる。   The created encryption key file is obtained by encrypting the encryption key with an encryption key file creation encryption key that is internally stored (or stored in a predetermined storage unit) by the door monitoring unit encryption key creation tool. Includes data. The encryption key file is stored in a storage unit (external storage device 413) of the computer 400 or the like. Here, for example, the encryption method of the encryption key file is AES, the block size is 128 bits, the encryption key length is 128 bits, and the block encryption mode is CBC mode. The encryption key file is created in a predetermined storage format (for example, an XML file format), and the encryption key file includes the above-described checksum value and creation date and time.

図35には、ドア監視ユニット暗号化キー作成ツールの暗号化キー読込画面611が示されている。暗号化キー読込画面611には、作成タブの選択で前面に表示されるよう制御された読込表示部612が含まれ、読込表示部612には、暗号化キー表示部613、チェックサム表示部615、作成日時表示部616、及び読込指示ボタン617が示されている。図35は、暗号化キーファイルの名前が指定された後、読込指示ボタン617がマウス412で押下等され(矢印618)、その指定された暗号化キーファイルが、上述した暗号化キーファイル作成用暗号鍵で復号化され、暗号化キー表示部613に元の暗号化キーが表示される。   FIG. 35 shows an encryption key reading screen 611 of the door monitoring unit encryption key creation tool. The encryption key reading screen 611 includes a reading display unit 612 controlled to be displayed on the foreground by selecting a creation tab. The reading display unit 612 includes an encryption key display unit 613 and a checksum display unit 615. , A creation date and time display section 616, and a read instruction button 617 are shown. FIG. 35 shows that, after the name of the encryption key file is specified, the read instruction button 617 is pressed down with the mouse 412 (arrow 618), and the specified encryption key file is used for creating the encryption key file described above. The data is decrypted with the encryption key, and the original encryption key is displayed on the encryption key display unit 613.

なお、図35の例では、暗号化キー等の漏洩防止のために、復号化された元の暗号化キーの一部は、文字「*」で表示されるが、全部をそのまま表示することもできる。チェックサムは、復号化された元の暗号化キーに基づいて計算され、チェックサム表示部615に表示される。チェックサム表示部615に表示された値と、暗号化キーファイルに記憶されている暗号化時点のチェックサムの値を比較し、比較結果を暗号化キー読込画面611の所定のエリアに表示するようにしてもよい。作成日時表示部616には、暗号化キーファイルに含まれている作成日時を表示する。   In the example of FIG. 35, in order to prevent leakage of the encryption key and the like, a part of the decrypted original encryption key is displayed with a character “*”, but the whole may be displayed as it is. it can. The checksum is calculated based on the decrypted original encryption key and displayed on the checksum display unit 615. The value displayed on the checksum display section 615 is compared with the value of the checksum at the time of encryption stored in the encryption key file, and the comparison result is displayed in a predetermined area of the encryption key reading screen 611. It may be. The creation date and time display section 616 displays the creation date and time included in the encryption key file.

このようなチェックサムの値と作成日時とで、暗号化キーファイルの正当性を確認することができるが、暗号化キー表示部613に、上述のように、復号化された暗号化キーの一部又は全部をそのまま表示して、元の暗号化キーと一致するか否かをチェックできるようにすることもできる。   The validity of the encryption key file can be confirmed based on such a checksum value and the creation date and time. However, the encryption key display unit 613 displays one of the decrypted encryption keys as described above. It is also possible to display the copy or the whole as it is so that it can be checked whether or not it matches the original encryption key.

<ドア監視ユニット初期化ツールのGUI>
次に、24hドア監視ユニット63の初期化処理を行うドア監視ユニット初期化ツール(プログラム)のGUIについて、図36を参照して説明する。
<GUI of the door monitoring unit initialization tool>
Next, a GUI of a door monitoring unit initialization tool (program) for performing initialization processing of the 24h door monitoring unit 63 will be described with reference to FIG.

ドア監視ユニット初期化ツールは、上述のようにコンピュータ400において実行され、そのツールの画面は、コンピュータ400のディスプレイ409に表示され、入力・指示等は、キーボード411やマウス412等を用いて行われる。   The door monitoring unit initialization tool is executed by the computer 400 as described above, and the screen of the tool is displayed on the display 409 of the computer 400, and inputs and instructions are performed using the keyboard 411, the mouse 412, and the like. .

図36Aには、ドア監視ユニット初期化ツールの初期化指示画面621が示されている。初期化指示画面621には、暗号化キーチェックサム表示部622、外部I/O通信状態表示部623、接続確認ボタン624、接続確認結果表示部625、シリアルID取得ボタン626、シリアルID表示部627、初期化ボタン628、ステータス表示部629、及び設定日時表示部630が示されている。図36Aは、24hドア監視ユニット63の初期化処理を行う前の初期化指示画面621を示している。   FIG. 36A shows an initialization instruction screen 621 of the door monitoring unit initialization tool. The initialization instruction screen 621 includes an encryption key checksum display section 622, an external I / O communication state display section 623, a connection confirmation button 624, a connection confirmation result display section 625, a serial ID acquisition button 626, and a serial ID display section 627. , An initialization button 628, a status display section 629, and a set date / time display section 630. FIG. 36A shows an initialization instruction screen 621 before the initialization processing of the 24h door monitoring unit 63 is performed.

この場合、暗号化キーファイル指定画面(不図示)で指定された暗号化キーファイル(XMLファイル)が読み込まれ、当該XMLファイルに含まれるチェックサムが、暗号化キーチェックサム表示部622に表示される。ここで、暗号化キーファイルに含まれる暗号化キーを復号化した後、チェックサムを計算して、暗号化キーチェックサム表示部622に表示してもよい。また、暗号化キーファイルに含まれる作成日時を表示するようにしてもよい。   In this case, the encryption key file (XML file) specified on the encryption key file specification screen (not shown) is read, and the checksum included in the XML file is displayed on the encryption key checksum display unit 622. You. Here, after decrypting the encryption key included in the encryption key file, a checksum may be calculated and displayed on the encryption key checksum display unit 622. Further, the creation date and time included in the encryption key file may be displayed.

また、このコンピュータ400は、この時点では、オペレーションマシン500に接続されておらず、外部I/O通信状態表示部623には、「接続なし」の表示がされている。   At this point, the computer 400 is not connected to the operation machine 500, and the external I / O communication status display section 623 displays "NO CONNECTION".

接続確認結果表示部625には、接続確認ボタン624が押下された場合に、その接続確認の結果が表示される。また、シリアルID表示部627には、シリアルID取得ボタン626が押下された場合に、取得されたシリアルIDが表示される。   When the connection confirmation button 624 is pressed, the connection confirmation result is displayed on the connection confirmation result display section 625. When the serial ID acquisition button 626 is pressed, the acquired serial ID is displayed on the serial ID display section 627.

ステータス表示部629には、初期化ボタン628が押下された場合の、初期化の結果が表示され、初期化がまだされていない場合、「未初期化」と表示され、初期化が完了すると「初期化OK」の表示と、24hドア監視ユニット63に送信された記録開始時間の設定値(100分)の表示がされ、初期化においてエラー等が発生すると「初期化NG」の表示がされる。   The status display section 629 displays the result of the initialization when the initialization button 628 is pressed, and displays “uninitialized” if the initialization has not been performed yet. "Initialization OK" is displayed, and the set value (100 minutes) of the recording start time transmitted to the 24h door monitoring unit 63 is displayed. If an error or the like occurs in the initialization, "Initialization NG" is displayed. .

設定日時表示部630には、コンピュータ400が管理する現在日時が表示されており、初期化ボタン628が押下された場合、この現在日時によって、24hドア監視ユニット63の日時設定が行われる。コンピュータ400が管理する現在日時は、例えば、インターネット上の時刻提供サーバから、周期的に正確な時刻を取得し反映させることが望ましい。   The set date and time display section 630 displays the current date and time managed by the computer 400. When the initialization button 628 is pressed, the date and time of the 24h door monitoring unit 63 is set based on the current date and time. It is desirable that the current date and time managed by the computer 400 periodically acquire and reflect an accurate time from a time providing server on the Internet.

ここで、ドア監視ユニット初期化ツールのユーザが、接続確認ボタン624をマウス412等で押下すると、ドア監視ユニット初期化ツールは、24hドア監視ユニット63にコマンドを送信して、24hドア監視ユニット63と通信し、シリアルIDを取得する。シリアルIDが取得できた場合、24hドア監視ユニット63との接続が確認できたものと判断し、接続確認結果表示部625が、「未接続」から「接続OK」の表示に変更される。また、接続確認ができなかった場合、接続確認結果表示部625は「接続NG」の表示となる。   Here, when the user of the door monitoring unit initialization tool presses the connection confirmation button 624 with the mouse 412 or the like, the door monitoring unit initialization tool transmits a command to the 24h door monitoring unit 63, and outputs the command to the 24h door monitoring unit 63. And obtain a serial ID. If the serial ID has been acquired, it is determined that the connection with the 24h door monitoring unit 63 has been confirmed, and the connection confirmation result display section 625 is changed from "not connected" to "connection OK". If the connection cannot be confirmed, the connection confirmation result display section 625 displays “Connection NG”.

なお、この例では、接続確認ボタン624の押下によってシリアルIDが取得され、シリアルID表示部627に、取得したシリアルIDが表示されるが、単にシリアルIDのみを確認する場合は、シリアルID取得ボタン626を押下し、シリアルID表示部627に、取得したシリアルIDを表示させることができる。   In this example, when the connection confirmation button 624 is pressed, the serial ID is acquired, and the acquired serial ID is displayed on the serial ID display unit 627. However, when simply confirming only the serial ID, the serial ID acquisition button is used. By pressing 626, the acquired serial ID can be displayed on the serial ID display section 627.

ここで、ドア監視ユニット初期化ツールのユーザが、初期化ボタン628をマウス412で押下等すると(矢印631)、ドア監視ユニット初期化ツールは、当該ツールが内部に保持する(又は、所定の記憶手段に記憶する)暗号化キーファイル作成用暗号鍵で、指定された暗号化キーファイルを復号化し、復号化された暗号化キーと、現在日時等を含む他の設定値を24hドア監視ユニット63に送信する。   Here, when the user of the door monitoring unit initialization tool presses the initialization button 628 with the mouse 412 or the like (arrow 631), the door monitoring unit initialization tool holds the internal tool (or a predetermined storage). The specified encryption key file is decrypted with the encryption key for creating the encryption key file) and the decrypted encryption key and other set values including the current date and time are stored in the 24h door monitoring unit 63. Send to

その後、ドア監視ユニット初期化ツールは、24hドア監視ユニット63から正常なアンサ信号を受信した場合に、図36Bの初期化指示画面621に示すように、ステータス表示部629に、「初期化OK」が、記録開始時間とともに表示されている。記録開始時間は、例えば、24hドア監視ユニット63の初期化処理を行ってから何分後にドアの監視を開始するかを設定するものであり、このドア監視ユニット初期化ツールによって24hドア監視ユニット63に送信され、設定される。24hドア監視ユニット63の初期化が行われるのは、パチスロ1の組み立て時であることが多く、このような開始時間の設定は、パチスロ1の組み立てや調整による頻繁なドアの開閉を、ドア開閉履歴として記憶しないようにするためである。   After that, when a normal answer signal is received from the door monitoring unit 63 for 24h, the door monitoring unit initialization tool displays “Initialization OK” on the status display unit 629 as shown in the initialization instruction screen 621 of FIG. 36B. Is displayed together with the recording start time. The recording start time is, for example, to set how many minutes after the initialization process of the 24h door monitoring unit 63 is started, the door monitoring is started. The 24h door monitoring unit 63 is set by the door monitoring unit initialization tool. Sent to and set. The initialization of the 24h door monitoring unit 63 is often performed at the time of assembling the pachislot 1. Such setting of the start time is performed by frequently opening and closing the door by assembling and adjusting the pachislot 1. This is so as not to store the history.

この記録開始時間は、様々な方法で指定することができる。例えば、ユーザがドア監視ユニット初期化ツールの操作で、コンピュータ400の所定の記憶手段に記憶されたファイルから読み取るようにしてもよく、また、ドア監視ユニット暗号化キー作成ツールで指定して暗号化キーファイルに記憶し、ドア監視ユニット初期化ツールで読み取るようにしてもよい。   This recording start time can be specified in various ways. For example, the user may operate a door monitoring unit initialization tool to read from a file stored in a predetermined storage unit of the computer 400, or specify a file using the door monitoring unit encryption key creation tool to perform encryption. It may be stored in a key file and read by a door monitoring unit initialization tool.

また、初期化ボタン628の押下の前に、上記のような接続確認ボタン624の押下がされているため、図36Bの初期化指示画面621では、接続確認結果表示部625には「接続OK」の表示がされ、シリアルID表示部627には、取得したシリアルIDが表示されている。また、この例では、コンピュータ400がオペレーションマシン500に接続されており、外部I/O通信状態表示部523には、「COM1接続」の表示がされている。   Further, since the connection confirmation button 624 is pressed before the initialization button 628 is pressed, the connection confirmation result display unit 625 displays “connection OK” on the initialization instruction screen 621 in FIG. 36B. Is displayed, and the obtained serial ID is displayed on the serial ID display section 627. In this example, the computer 400 is connected to the operation machine 500, and “COM1 connection” is displayed on the external I / O communication status display section 523.

また、ドア監視ユニット初期化ツールは、復号化された暗号化キーを24hドア監視ユニット63に送信する場合に、24hドア監視ユニット63との間で共有する暗号鍵を用いて暗号化したうえで送信するようにしてもよい。   Further, when transmitting the decrypted encryption key to the 24h door monitoring unit 63, the door monitoring unit initialization tool encrypts the decrypted key using the encryption key shared with the 24h door monitoring unit 63. You may make it transmit.

こうした初期化処理には、時間がかかる場合があるため、初期化の進行状況をプログレッシブバー(ステータスバー)で表示するようにしてもよい。   Since such initialization processing may take time, the progress of initialization may be displayed on a progressive bar (status bar).

このような、ドア監視ユニット暗号化キー作成化ツールとドア監視ユニット初期化ツールの利用により、暗号化キーを簡単に作成することができ、かつ安全性が高い状態で暗号化キーを作成、保持できる(例えば、キー管理者は、各ドア監視ユニットの暗号化キーを、暗号化された状態の暗号化キーファイルとして保持することができる)。また、これによって、24hドア監視ユニット63のような周辺機器を遊技機に組み込む際の作業の効率化を図ることもできる。   By using such a door monitoring unit encryption key creation tool and door monitoring unit initialization tool, an encryption key can be easily created, and an encryption key can be created and stored in a highly secure state. Yes (e.g., a key manager can maintain an encryption key for each door monitoring unit as an encrypted key file). This also makes it possible to increase the efficiency of work when peripheral equipment such as the 24h door monitoring unit 63 is incorporated in the gaming machine.

<ドア監視ユニット設定読出ツールのGUI>
次に、24hドア監視ユニット63の設定読出を行うドア監視ユニット設定読出ツール(プログラム)のGUIについて、図37を参照して説明する。
<GUI of the door monitoring unit setting reading tool>
Next, a GUI of a door monitoring unit setting reading tool (program) for reading out settings of the 24h door monitoring unit 63 will be described with reference to FIG.

ドア監視ユニット設定読出ツールは、上述のようにコンピュータ400において実行され、そのツールの画面は、コンピュータ400のディスプレイ409に表示され、入力・指示等は、キーボード411やマウス412等を用いて行われる。   The door monitoring unit setting reading tool is executed by the computer 400 as described above, and the screen of the tool is displayed on the display 409 of the computer 400, and inputs and instructions are performed using the keyboard 411, the mouse 412, and the like. .

図37には、ドア監視ユニット設定読出ツールの設定表示画面651が示されている。設定表示画面651には、設定読出ボタン652、設定読出結果表示部653、設定値妥当性検証ボタン654、設定値妥当性検証表示部655、設定値表示部656、ドア開閉履歴タイトル表示部657、ドア開閉履歴表示部658が予め定められた所定の表示形式で示されている。また、設定値表示部656には、例えば、バージョン情報、自己診断チェック結果、シリアルID、現在時刻、監視ユニットステータス、最終通信履歴、通常モード設定、ドア設定、開閉履歴データ数、最新開閉履歴データ番号等の表示が含まれている。このように、ドア監視ユニット設定読出ツールでは、遊技機に組み込まれた24hドア監視ユニット63が記憶する動作記録や設定値等が読み出され、設定表示画面651に表示される。   FIG. 37 shows a setting display screen 651 of the door monitoring unit setting reading tool. The setting display screen 651 includes a setting read button 652, a setting read result display section 653, a set value validity verification button 654, a set value validity verification display section 655, a set value display section 656, a door opening / closing history title display section 657, The door opening / closing history display section 658 is shown in a predetermined display format. The set value display section 656 includes, for example, version information, self-diagnosis check result, serial ID, current time, monitoring unit status, last communication history, normal mode setting, door setting, number of open / close history data, and latest open / close history data. A display such as a number is included. As described above, with the door monitoring unit setting reading tool, the operation record, setting values, and the like stored by the 24h door monitoring unit 63 incorporated in the gaming machine are read and displayed on the setting display screen 651.

さらに、自己診断チェック結果には、24hドア監視ユニット63が行う自己診断の結果が含まれており、例えば、異常のパターンなど、全体の診断結果を表す診断コード(図37では、「FFh」)と各種診断項目が表示される。各種診断項目には、システムRom/Ram、バックアップ時RAM状態、リセット回数、履歴データチェックサム、秘密鍵チェックサム、シリアルIDチェックサムの各項目が表示され、それぞれ、診断結果(例えば、「正常」か「異常」)が対応付けて示されている。   Further, the self-diagnosis check result includes the result of the self-diagnosis performed by the 24h door monitoring unit 63. For example, a diagnosis code (“FFh” in FIG. 37) representing the entire diagnosis result such as an abnormal pattern. And various diagnostic items are displayed. Various diagnosis items include system ROM / Ram, RAM status at backup, number of resets, history data checksum, secret key checksum, and serial ID checksum, and each item has a diagnosis result (for example, “normal”). Or "abnormal") are shown in association with each other.

24hドア監視ユニット63の自己診断チェックプログラムは、ROM303やEEPROM305に記憶され、所定の周期で呼び出され実行される。自己診断チェックプログラムは、例えば、ROM303から所定データを読み込み、EEPROM305やRAM304に対して所定データの書き込みと読み込みを行うことで自己診断を行い、「ROM/RAM」の診断項目について、正常であれば「正常」、異常があれば「異常」とする。その診断結果は、EEPROM305の自己診断チェック結果に記憶される。   The self-diagnosis check program of the 24h door monitoring unit 63 is stored in the ROM 303 or the EEPROM 305, called and executed at a predetermined cycle. The self-diagnosis check program reads, for example, predetermined data from the ROM 303, and performs self-diagnosis by writing and reading predetermined data to and from the EEPROM 305 and the RAM 304. If the diagnosis item of “ROM / RAM” is normal, "Normal" and "Abnormal" if abnormal. The diagnosis result is stored in the self-diagnosis check result of the EEPROM 305.

また、自己診断チェックプログラムは、例えば、バックアップ時においてRAMの書き込みテストを行い、「バックアップ時RAM状態」の診断項目について、「正常」又は「異常」の診断を行い、その診断結果をEEPROM305の自己診断チェック結果に記憶する。さらに、自己診断チェックプログラムは、例えば、「リセット回数」、「履歴データチェックサム」、「秘密鍵チェックサム」、「シリアルIDチェックサム」の各診断項目について、「正常」又は「異常」の診断を行い、その診断結果をEEPROM305の自己診断チェック結果に記憶する。   Further, the self-diagnosis check program performs, for example, a write test of the RAM at the time of backup, performs a “normal” or “abnormal” diagnosis on the diagnostic item of “RAM state at backup”, and stores the diagnosis result in the EEPROM 305. It is stored in the diagnosis check result. Further, the self-diagnosis check program performs, for example, diagnosis of “normal” or “abnormal” for each diagnostic item of “reset count”, “history data checksum”, “secret key checksum”, and “serial ID checksum”. Is performed, and the diagnosis result is stored in the self-diagnosis check result of the EEPROM 305.

また、監視ユニットステータスには、24hドア監視ユニット63の状態や24hドア監視ユニット63が監視するドアの状態が含まれており、例えば、ステータスのパターンなど、全体のステータスの状況を示す状況コード(図37では、「03h」)と各種ステータスが表示される。各種ステータスには、ドア1のステータス、ドア2のステータス、モード遷移フラグ、ドア監視履歴更新フラグの各項目が表示され、それぞれ、ステータス(図37では、「クローズ」、「遷移」、「更新」)が対応付けて示されている。   The monitoring unit status includes the status of the 24h door monitoring unit 63 and the status of the door monitored by the 24h door monitoring unit 63. For example, a status code (such as a status pattern) indicating the status of the entire status is included. In FIG. 37, “03h”) and various statuses are displayed. In the various statuses, items such as the status of the door 1, the status of the door 2, the mode transition flag, and the door monitoring history update flag are displayed, and the status (in FIG. 37, "closed", "transition", "update") is shown, respectively. ) Are shown in association with each other.

また、通常モード設定には、ドア1とドア2のそれぞれで、例えば、通常モード中の記録モードの項目が表示され、それぞれ対応するモード(図37では、「常時記録」)が示されている。なお、ここで、ドア1はフロントドア2bであり、ドア2はミドルドア41である。   In the normal mode setting, for example, an item of the recording mode in the normal mode is displayed for each of the door 1 and the door 2, and a corresponding mode (“always recording” in FIG. 37) is shown. . Here, the door 1 is the front door 2b, and the door 2 is the middle door 41.

また、ドア設定には、ドア1とドア2のそれぞれで、例えば、全体のパターンを示すコード(図37では、「53B00h」)と各種設定が表示される。各種設定には、ドア記録モード、ドア監視、監視間隔時間(秒)、記録開始時間(分)の各項目が表示され、それぞれ、対応する設定が示されている(例えば、「開閉時刻」、「監視ON」、「59」、「0」)。   In the door setting, for example, a code ("53B00h" in FIG. 37) indicating the entire pattern and various settings are displayed for each of the door 1 and the door 2. In the various settings, items such as a door recording mode, a door monitoring, a monitoring interval time (second), and a recording start time (minute) are displayed, and corresponding settings are shown (for example, “opening / closing time”, "Monitoring ON", "59", "0").

ドア開閉履歴表示部658には、ドア開閉履歴の詳細がリスト形式で示されている。   The door opening / closing history display section 658 shows details of the door opening / closing history in a list format.

図37は、設定読出ボタン652を押下した場合(矢印659)の設定表示画面651を示している。   FIG. 37 shows a setting display screen 651 when the setting read button 652 is pressed (arrow 659).

図38は、図37の表示状態で、設定値妥当性検証ボタン654を押下した場合(矢印660)の設定表示画面651を示している。   FIG. 38 shows a setting display screen 651 when the setting value validity verification button 654 is pressed (arrow 660) in the display state of FIG.

設定値妥当性検証ボタン654の押下により、ドア監視ユニット設定読出ツールによって読み出された特定の設定値について妥当性が検証され、その検証結果が予め定められた所定の表示形式で表示される。すなわち、検証結果に応じて、当該設定値の表示領域に関する表示態様を変化させる。   By pressing the setting value validity verification button 654, the validity of the specific setting value read by the door monitoring unit setting reading tool is verified, and the verification result is displayed in a predetermined display format. That is, the display mode regarding the display area of the set value is changed according to the verification result.

例えば、図38において、斜線のハッチングで示された表示領域の値(項目)が、検証対象となったものであり、このハッチングは緑色の背景色で表示されていることを表し、妥当性があることを意味する。例えば、自己診断チェック結果で「正常」と表示されている表示領域、通常モード設定で「常時記録」と表示されている表示領域、ドア設定で、「開閉時刻」、「監視ON」、「59」、「0」とそれぞれ表示されている表示領域は、妥当(正常)であり、緑色の背景色で示されている。   For example, in FIG. 38, the values (items) in the display area indicated by hatching are those to be verified, and this hatching indicates that they are displayed with a green background color. It means there is. For example, a display area in which “normal” is displayed in the self-diagnosis check result, a display area in which “normal recording” is displayed in the normal mode setting, “opening / closing time”, “monitoring ON”, “59” in the door setting And "0" are appropriate (normal) and are indicated by a green background color.

また、ドア開閉履歴表示部658に示されたドア開閉履歴のそれぞれは、(スクロールで現れる部分も含めて)すべてのリストについて妥当であるとされ、ドア開閉履歴表示部658の代表領域であるドア開閉履歴タイトル表示部657が緑色の背景色で示されている。   Further, each of the door opening / closing histories shown in the door opening / closing history display section 658 is considered to be valid for all lists (including a portion appearing by scrolling), and is a representative area of the door opening / closing history display section 658. The opening / closing history title display section 657 is shown with a green background color.

上述した妥当性の検証の結果、妥当でないと判定された場合、例えば、ユーザが注目しやすいように、問題の値(項目)の表示領域が、赤色の背景色で示される。   As a result of the above-described validity verification, when it is determined that the value is not valid, for example, the display area of the problem value (item) is indicated by a red background color so that the user can easily pay attention.

<EEPROMのメモリーマップ>
次に、EEPROM305に記憶する情報及びEEPROM305における情報の格納場所について、図39を参照して説明する。図39は、EEPROM305のメモリーマップであり、EEPROM305における情報の格納場所を概念的に示す図である。図39では、EEPROM305の記憶領域を、1行8バイトの領域として示している。
<EEPROM memory map>
Next, information stored in the EEPROM 305 and a storage location of the information in the EEPROM 305 will be described with reference to FIG. FIG. 39 is a memory map of the EEPROM 305, and is a diagram conceptually showing a storage location of information in the EEPROM 305. In FIG. 39, the storage area of the EEPROM 305 is shown as an area of 8 bytes per row.

図39に示すように、先頭から連続する16バイトの領域は、シリアルID格納領域を形成する。シリアルID格納領域には、24hドア監視ユニット63のシリアルIDが記憶される。シリアルIDは、16桁の英数字からなる(例えば、「0123456789ABCDEF」)。すなわち、各バイトには、1文字分の16進数の値が記憶される。なお、このシリアルIDは、本発明に係るコンピュータ400で実行されるドア監視ユニット設定読出ツールで読み出され表示することが可能である。   As shown in FIG. 39, the 16-byte area continuous from the top forms a serial ID storage area. The serial ID of the 24h door monitoring unit 63 is stored in the serial ID storage area. The serial ID is made up of 16 alphanumeric characters (for example, “012345789ABCDEF”). That is, a hexadecimal value for one character is stored in each byte. The serial ID can be read and displayed by the door monitoring unit setting reading tool executed by the computer 400 according to the present invention.

次の連続する16バイトの領域は、秘密鍵格納領域を形成する。秘密鍵格納領域には、秘密鍵が記憶される。秘密鍵は、16桁の英数字からなる(例えば、「SECRETKEY0000000」)。すなわち、各バイトには、1文字分の16進数の値(例えば、文字「S」の場合はASCIIコードの53Hが、文字「0」の場合はASCIIコードの30H)が記憶される。秘密鍵は、制御LSI300が実行する乱数コマンド受信時処理においてパスワードを生成する際に用いられる。すなわち、本実施形態では、EEPROM305は、秘密鍵が格納される秘密鍵格納領域を備える監視側基準データ記憶手段を構成する。   The next continuous 16-byte area forms a secret key storage area. The secret key is stored in the secret key storage area. The secret key is composed of 16 alphanumeric characters (for example, “SECRETKEY00000000”). That is, in each byte, a hexadecimal value of one character (for example, 53H of the ASCII code for the character "S" and 30H of the ASCII code for the character "0") is stored. The secret key is used when a password is generated in a random number command receiving process executed by the control LSI 300. That is, in the present embodiment, the EEPROM 305 forms a monitoring-side reference data storage unit including a secret key storage area in which a secret key is stored.

秘密鍵格納領域には、本発明に係るコンピュータ400で実行されるドア監視ユニット初期化ツールによって24hドア監視ユニット63に送信された暗号化キーが記憶される。   The secret key storage area stores the encryption key transmitted to the door monitoring unit 63 for 24h by the door monitoring unit initialization tool executed by the computer 400 according to the present invention.

次の連続する5バイトの領域は、予備の領域であり、情報は記憶されない。次の1バイトの領域は、記録モード格納領域を形成する。記録モード格納領域には、記録モードの種別を示す情報が記憶される。記録モードの種別には、EEPROM305にフロントドア2bの後述の開閉履歴情報を常時記録させる「常時記録モード」と、記録しない「無記録モード」がある。また、ミドルドア41に関して開閉履歴情報を常時記録させる「常時記録モード」と、記録しない「無記録モード」もある。これらの記録モードは、本発明に係るコンピュータ400で実行されるドア監視ユニット設定読出ツールで、ドア1(フロントドア2b)とドア2(ミドルドア41)の通常モード設定として読み出され表示される。   The next consecutive 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 the recording mode is stored in the recording mode storage area. The types of recording modes include a "constant recording mode" in which the opening / closing history information of the front door 2b described later is always recorded in the EEPROM 305, and a "non-recording mode" in which recording is not performed. Further, there are a “constant recording mode” in which the opening / closing history information is always recorded for the middle door 41 and a “non-recording mode” in which the opening / closing history information is not recorded. These recording modes are read and displayed as a normal mode setting of the door 1 (front door 2b) and the door 2 (middle door 41) by a door monitoring unit setting reading tool executed by the computer 400 according to the present invention.

次の1バイトの領域は、履歴カウンタ格納領域を形成する。履歴カウンタ格納領域には、履歴カウンタの値が記憶される。履歴カウンタの値は、EEPROM305に記憶されている後述の開閉履歴情報の数を示す値である。本実施形態では、最大128個の開閉履歴情報が記憶可能なので、履歴カウンタの値として、0〜128が記憶される。なお、記憶可能な開閉履歴情報の数は、24hドア監視ユニット63に搭載される不揮発性メモリの種類及び記憶容量により、適宜増減する。なお、この履歴カウンタの値は、本発明に係るコンピュータ400で実行されるドア監視ユニット設定読出ツールで、開閉履歴データ数として読み出され表示される。   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 opening / closing history information described later stored in the EEPROM 305. In the present embodiment, since a maximum of 128 pieces of opening / closing history information can be stored, 0 to 128 are stored as the values of the history counter. The number of storable opening / closing history information is appropriately increased or decreased according to the type and storage capacity of the nonvolatile memory mounted on the 24h door monitoring unit 63. The value of the history counter is read and displayed as the number of open / close history data by the door monitoring unit setting reading tool executed by the computer 400 according to the present invention.

次の1バイトの領域は、最新番号格納領域を形成する。最新番号格納領域には、最新の開閉履歴情報が記憶されている後述の開閉履歴格納領域の番号である最新番号が記憶される。なお、この最新の開閉履歴情報は、本発明に係るコンピュータ400で実行されるドア監視ユニット設定読出ツールで、最新開閉履歴データ番号として読み出され表示される。   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 an opening / closing history storage area described later in which the latest opening / closing history information is stored. The latest opening / closing history information is read and displayed as the latest opening / closing history data number by the door monitoring unit setting reading tool executed by the computer 400 according to the present invention.

次の連続する1024バイトの領域には、開閉履歴情報が記憶される。開閉履歴情報は、フロントドア2bが閉止又は開放された年月日及び時間を示す情報である。また、開閉履歴情報は、連続する8バイトの情報からなる。従って、この連続する1024バイトの領域には、128個の開閉履歴情報が記憶可能となっている。また、この開閉履歴情報は、本発明に係るコンピュータ400で実行されるドア監視ユニット設定読出ツールで、開閉履歴データとしてそれぞれ読み出され、リスト形式で表示される。   Opening / closing history information is stored in the next continuous area of 1024 bytes. The opening / closing history information is information indicating the date and time when the front door 2b was closed or opened. The opening / closing history information is composed of continuous 8-byte information. Therefore, 128 pieces of opening / closing history information can be stored in this continuous 1024-byte area. The opening / closing history information is read out as opening / closing history data by a door monitoring unit setting reading tool executed by the computer 400 according to the present invention, and is displayed in a list format.

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

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

次の連続する4バイトの領域は、監視間隔時間格納領域を形成する。監視間隔時間格納領域には、監視間隔時間に対応するカウント数が記憶される。監視間隔時間とは、開閉履歴情報をEEPROM305に記憶させる間隔である。本実施形態では、分刻みで1分〜100分の監視間隔時間が設定可能である。例えば、制御LSI300は、20msec(ミリ秒)ごとに監視間隔カウントを加算し、監視間隔カウントが設定した監視間隔時間に対応するカウント数に達した後に、開閉履歴情報をEEPROM305に記憶させる。従って、監視間隔時間に対応するカウント数として、監視間隔時間格納領域には、3000(監視間隔時間1分に対応するカウント数)〜300000(監視間隔時間100分に対応するカウント数)が記憶される。なお、この監視間隔時間格納領域には、監視間隔時間に対応するカウント数の16進数の値が記憶される。また、この監視間隔時間格納領域を、フロントドア2b、ミドルドア41のそれぞれに対して設けることもできる。   The next continuous 4-byte area forms a monitoring interval time storage area. The monitoring interval time storage area stores a count number corresponding to the monitoring interval time. The monitoring interval time is an interval at which the opening / closing history information is stored in the EEPROM 305. In the present embodiment, a monitoring interval time of 1 minute to 100 minutes can be set in minute units. For example, the control LSI 300 adds the monitoring interval count every 20 msec (milliseconds), and stores the opening / closing history information in the EEPROM 305 after the monitoring interval count reaches the count number corresponding to the set monitoring interval time. Therefore, as the count number corresponding to the monitoring interval time, 3000 (the count number corresponding to the monitoring interval time of 1 minute) to 300,000 (the count number corresponding to the monitoring interval time of 100 minutes) is stored in the monitoring interval time storage area. You. The monitoring interval time storage area stores a hexadecimal value of the count number corresponding to the monitoring interval time. Further, the monitoring interval time storage area can be provided for each of the front door 2b and the middle door 41.

次の連続する4バイトの領域は、記録開始時間格納領域を形成する。記録開始時間格納領域には、記録開始時間に対応するカウント数が記憶される。記録開始時間とは、後述の記録開始時間設定処理(図54に示す特権コマンド受信時処理のステップS488参照)が行われてから開閉履歴情報の記憶を開始させるまでの時間である。本実施形態では、分刻みで1分〜100分の記録開始時間が設定可能である。例えば、制御LSI300は、20msec(ミリ秒)ごとに記録開始時間カウントを加算し、記録開始時間カウントが設定した記録開始時間に対応するカウント数に達した後に、開閉履歴情報をEEPROM305に記憶させる。従って、記録開始時間に対応するカウント数として、記録開始時間格納領域には、3000(記録開始時間1分に対応するカウント数)〜300000(記録開始時間100分に対応するカウント数)の値が記憶される。なお、記録開始時間格納領域には、記録開始時間に対応するカウント数の16進数の値が記憶される。また、この記録開始時間は、本発明に係るコンピュータ400で実行されるドア監視ユニット初期化ツールで、24hドア監視ユニット63に送信され、記憶される。また、この記録監視時間格納領域を、フロントドア2b、ミドルドア41のそれぞれに対して設けることもできる。   The next continuous 4-byte area forms a recording start time storage area. The count number corresponding to the recording start time is stored in the recording start time storage area. The recording start time is the time from when the recording start time setting process described later (see step S488 of the privileged command reception process shown in FIG. 54) to when the storage of the opening / closing history information is started. In this embodiment, a recording start time of 1 minute to 100 minutes can be set in minute units. For example, the control LSI 300 adds the recording start time count every 20 msec (milliseconds), and stores the open / close history information in the EEPROM 305 after the recording start time count reaches the count number corresponding to the set recording start time. Therefore, as the count number corresponding to the recording start time, the value of 3000 (the count number corresponding to the recording start time of 1 minute) to 300,000 (the count number corresponding to the recording start time of 100 minutes) is stored in the recording start time storage area. It is memorized. The recording start time storage area stores a hexadecimal value of the count number corresponding to the recording start time. The recording start time is transmitted to and stored in the 24h door monitoring unit 63 by the door monitoring unit initialization tool executed by the computer 400 according to the present invention. Further, the recording monitoring time storage area may be provided for each of the front door 2b and the middle door 41.

次の領域は、プログラムバージョンが記憶されるプログラムバージョン格納領域が形成されている。プログラムバージョンとは、24hドア監視ユニット63で実行されるプログラムのバージョンである。また、このプログラムバージョンは、本発明に係るコンピュータ400で実行されるドア監視ユニット設定読出ツールで、バージョン情報として読み出され表示される。   The next area forms a program version storage area in which a program version is stored. The program version is the version of the program executed by the 24h door monitoring unit 63. The program version is read and displayed as version information by a door monitoring unit setting reading tool executed by the computer 400 according to the present invention.

また、EEPROM305には、24hドア監視ユニット63で実行される自己診断チェックプログラムによる自己診断のチェック結果を記憶する自己診断チェック結果格納領域が設けられる。さらに、EEPROM305には、24hドア監視ユニット63とホスト機器(例えば、コンピュータ400や副制御回路101)と最後に通信した日時等を記憶する、最終通信履歴格納領域が設けられ、ドア記録モード(開閉時間等)やドア監視(監視ON、監視OFF)といった項目を含むドア設定格納領域が設けられる。   Further, the EEPROM 305 is provided with a self-diagnosis check result storage area for storing a self-diagnosis check result by a self-diagnosis check program executed by the 24h door monitoring unit 63. Further, the EEPROM 305 is provided with a final communication history storage area for storing the date and time of the last communication with the 24h door monitoring unit 63 and the host device (for example, the computer 400 or the sub control circuit 101). A door setting storage area is provided which includes items such as time and door monitoring (monitoring ON, monitoring OFF).

なお、図示は省略するが、EEPROM305には、上記の他、各種情報を記憶する格納領域が形成されている。   Although not shown, a storage area for storing various information is formed in the EEPROM 305 in addition to the above.

<RAMのメモリーマップ>
次に、RAM304に記憶する情報及びRAM304における情報の格納場所については、図40を参照して説明する。図40は、RAM304のメモリーマップであり、RAM304における情報の格納場所を概念的に示す図である。図40では、RAM304の記憶領域を、1行8バイトの領域として示している。
<RAM memory map>
Next, the information stored in the RAM 304 and the storage location of the information in the RAM 304 will be described with reference to FIG. FIG. 40 is a memory map of the RAM 304, and is a diagram conceptually showing a storage location of information in the RAM 304. In FIG. 40, the storage area of the RAM 304 is shown as an area of 8 bytes per row.

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

次の1バイトの領域は、入力ポート情報格納領域を形成する。入力ポート情報格納領域には、例えば、ポート入力処理において、I/Oポート回路309の入力ポートを介してドア開閉監視スイッチ67から受信した信号に基いたフロントドア2bが開放状態か閉止状態かを示す状態情報が記憶される。   The next 1-byte area forms an input port information storage area. The input port information storage area stores, for example, whether the front door 2b is open or closed based on a signal received from the door open / close monitoring switch 67 via the input port of the I / O port circuit 309 in the port input process. State information is stored.

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

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

次の1バイトの領域は、サムカウンタ格納領域を形成する。サムカウンタ格納領域には、サムカウンタが記憶される。サムカウンタは、ホスト機器から送信されたサム値の数を示す。本実施形態では、ホスト機器から送信されるコマンド及びそれに含まれる情報に2桁のサム値が含まれている。サム値は、1桁1バイトずつの情報としてホスト機器から送信され、制御LSI300は、各桁のサム値を受信するたびにサムカウンタに1を加算する(後述の図52に示す受信割込み処理のステップS468参照)。   The next 1-byte area forms a sum counter storage area. The sum counter storage area stores a sum counter. 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 information contained therein include a two-digit sum value. The sum value is transmitted from the host device as information of one digit and one byte at a time, and the control LSI 300 adds 1 to the sum counter each time the sum value of each digit is received (see the reception interrupt process shown in FIG. 52 described later). Step S468).

次の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 receiving the ETX command, the ETX reception flag is set to ON ("1" is set).

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

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

次の連続する8バイトの領域は、第1検知結果格納領域を形成する。第1検知結果格納領域には、開閉履歴情報が記憶される。開閉履歴情報が第1検知結果格納領域に記憶される態様については、後で図50を参照して説明する。本実施形態において、RAM304に配された第1検知結果格納領域を備え、後述のドア監視状態検知処理(後述の図50参照)を行う24hドア監視ユニット63の制御LSI300は、開閉状態取得手段を構成する。   The next continuous 8-byte area forms a first detection result storage area. Opening / closing history information is stored in the first detection result storage area. The manner in which the opening / closing 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 300 of the 24h door monitoring unit 63 that includes a first detection result storage area provided in the RAM 304 and performs a door monitoring state detection process (see FIG. 50 described below), Constitute.

次の連続する8バイトの領域は、第2検知結果格納領域を形成する。第2検知結果格納領域には、開閉履歴情報が記憶される。開閉履歴情報が第2検知結果格納領域に記憶される態様については、後で図50を参照して説明する。   The next continuous 8-byte area forms a second detection result storage area. Opening / closing history information is stored in the second detection result storage area. The manner in which the opening / closing 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進数の値が記憶される。   The next continuous 16-byte area forms a password storage area. The password is stored in the password storage area. The password is information that is required when the host device requests the 24h door monitoring unit 63 for processing related to a privileged command described later. The password is made up of 16 alphanumeric characters. That is, a hexadecimal value for one character is stored in each byte.

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

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

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

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

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

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

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

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

図41に示すように、特権コマンドには、初期化コマンド、時計セットコマンド、監視間隔時間設定コマンド、記録開始時間設定コマンド、モード記録設定コマンド、秘密鍵設定コマンドがある。   As shown in FIG. 41, 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.

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

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

[時計セットコマンド]
時計セットコマンドは、ホスト機器が24hドア監視ユニット63に年、月、日、時、分、秒そして曜日の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。時計セットコマンドのIDは、「ST」である。時計セットコマンドには、ホスト機器が備えるRTCから取得した年、月、日、時、分、秒そして曜日を示す情報が含まれる。
[Clock set command]
The clock set command is a command transmitted from the host device to the 24h door monitoring unit 63 when the host device requests the 24h door monitoring unit 63 to set the year, month, day, hour, minute, second and day of the week. The ID of the clock set command is “ST”. The clock set command includes information indicating the year, month, day, hour, minute, second, and day of the week obtained from the RTC included in the host device.

時計セットコマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す日時設定アンサをホスト機器に送信する。また、24hドア監視ユニット63は、時計セットコマンドに含まれる年、月、日、時、分、秒そして曜日を示す情報に基いて、RTC301の年、月、日、時、分、秒そして曜日を設定する(後述の図54のステップS484参照)。このように、24hドア監視ユニット63の制御LSI300は、監視側計時設定手段を構成する。   The 24h door monitoring unit 63 that has received the clock set command transmits a date / time setting answer indicating that the command has been received to the host device. The 24h door monitoring unit 63 also determines the year, month, day, hour, minute, second, and day of the RTC 301 based on the information indicating the year, month, day, hour, minute, second, and day of the week included in the clock set command. Is set (see step S484 in FIG. 54 described later). Thus, the control LSI 300 of the 24h door monitoring unit 63 constitutes a monitoring-side clock setting unit.

[監視間隔時間設定コマンド]
監視間隔時間設定コマンドは、ホスト機器が24hドア監視ユニット63に監視間隔時間の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。監視間隔時間設定コマンドのIDは、「SA」である。監視間隔時間設定コマンドには、監視間隔時間を示す情報(カウント数)が含まれる。
[Monitoring interval time setting command]
The monitoring interval time setting command is a command transmitted from the host device to the 24h door monitoring unit 63 when the host device requests the 24h 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 includes information (count number) indicating the monitoring interval time.

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

[記録開始時間設定コマンド]
記録開始時間設定コマンドは、ホスト機器が24hドア監視ユニット63に記録開始時間の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。記録開始時間設定コマンドのIDは、「SB」である。記録開始時間設定コマンドには、記録開始時間を示す情報(カウント数)が含まれる。
[Recording start time setting command]
The recording start time setting command is a command transmitted from the host device to the 24h door monitoring unit 63 when the host device requests the 24h 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 includes information (count number) indicating the recording start time.

記録開始時間設定コマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す記録開始時間設定アンサをホスト機器に送信する。また、24hドア監視ユニット63は、記録開始時間設定コマンドに含まれる記録開始時間を示す情報(カウント数)に基いて、記録開始時間を設定する。具体的には、24hドア監視ユニット63は、受信したカウント数を、EEPROM305における記録開始時間格納領域に記憶させる。なお、当該領域に既に記録開始時間に対応するカウント数が記憶されている場合は、今回記憶させる記録開始時間に対応するカウント数を上書きする。   The 24h door monitoring unit 63 that has received the recording start time setting command transmits a recording start time setting answer indicating that the command has been received to the host device. Further, the 24h door monitoring unit 63 sets the recording start time based on the information (count number) indicating the recording start time included in 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 305. If 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.

[記録モード設定コマンド]
記録モード設定コマンドは、ホスト機器が24hドア監視ユニット63に記録モード(「常時記録モード」又は「無記録モード」)の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。記録モード設定コマンドのIDは、「SC」である。記録モード設定コマンドには、記録モードを示す情報が含まれる。
[Recording mode setting command]
The recording mode setting command is a command transmitted from the host device to the 24h door monitoring unit 63 when the host device requests the 24h door monitoring unit 63 to set the recording mode (“constant recording mode” or “non-recording mode”). It is. The ID of the recording mode setting command is “SC”. The recording mode setting command includes information indicating the recording mode.

記録モード設定コマンドを受信した24hドア監視ユニット63は、当該コマンドを受信した旨を示す記録モード設定アンサをホスト機器に送信する。また、24hドア監視ユニット63は、記録モード設定コマンドに含まれる記録モードを示す情報に基いて、記録モードを設定する。具体的には、24hドア監視ユニット63は、EEPROM305の記録モード格納領域に、開閉履歴情報を常時記録させる「常時記録モード」又は、記録しない「無記録モード」を示す情報を記憶させる。   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. The 24h door monitoring unit 63 sets the recording mode based on the information indicating the recording mode included in the recording mode setting command. Specifically, the 24h door monitoring unit 63 stores, in the recording mode storage area of the EEPROM 305, information indicating "always recording mode" in which the opening / closing history information is always recorded or "non-recording mode" in which the opening / closing history information is not recorded.

[秘密鍵設定コマンド]
秘密鍵設定コマンドは、ホスト機器が24hドア監視ユニット63に秘密鍵の設定を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。秘密鍵設定コマンドのIDは、「SW」である。秘密鍵設定コマンドには、16桁の英数字からなる秘密鍵が含まれる。
[Private key setting command]
The secret key setting command is a command transmitted from the host device to the 24h door monitoring unit 63 when the host device requests the 24h door monitoring unit 63 to set a secret key. The ID of the secret key setting command is “SW”. The secret key setting command includes a secret key consisting of 16 alphanumeric characters.

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

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

図42に示すように、一般コマンドには、シリアルIDコマンド、バージョン要求コマンド、乱数コマンド、ログインコマンド、ログアウトコマンド、時計読出コマンド、最新番号コマンド、開閉履歴情報読出コマンド、開閉履歴情報数コマンド、そしてステータス読出コマンドがある。   As shown in FIG. 42, the general commands include 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, and There is a status read command.

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

シリアルIDコマンドを受信した24hドア監視ユニット63は、EEPROM305に記憶されているシリアルIDをホスト機器に送信(返信)する。ホスト機器は、シリアルIDを受信すると、受信したシリアルIDと、ホスト機器が有する不揮発性の記憶装置に記憶されたシリアルIDとを比較する。   The 24h door monitoring unit 63 that has received the serial ID command transmits (replies) the serial ID stored in the EEPROM 305 to the host device. Upon receiving 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.

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

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

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

乱数コマンドを受信した24hドア監視ユニット63は、乱数発生回路308から取得した値を用いて規定の演算を行い8桁の乱数を発生させ、発生させた乱数値をホスト機器に送信(返信)する。また、24hドア監視ユニット63は、発生させた乱数値を、RAM304の乱数格納領域に記憶させる。ホスト機器は、乱数値を受信すると、受信した乱数値をホスト機器に設けられた揮発性の記憶装置に記憶させる。   The 24h door monitoring unit 63 that has received the random number command performs a prescribed operation using the value obtained from the random number generation circuit 308 to generate an 8-digit random number, and transmits (replies) the generated random number 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 304. Upon receiving the random number value, the host device stores the received random number value in a volatile storage device provided in the host device.

[ログインコマンド]
ログインコマンドは、ホスト機器が24hドア監視ユニット63に、特権コマンドに基く各種設定を要求できる状態に設定すること、すなわちログインを、要求するときに、ホスト機器から24hドア監視ユニット63に送信されるコマンドである。ログインコマンドのIDは、「CI」である。
[Login command]
The login command is transmitted from the host device to the 24h door monitoring unit 63 when the host device requests the 24h door monitoring unit 63 to make various settings based on the privileged command, that is, requests the login. Command. The ID of the login command is “CI”.

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

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

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

[時計読出コマンド]
時計読出コマンドは、ホスト機器が24hドア監視ユニット63のRTC301が計時する現在時刻の読出を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。時計読出コマンドのIDは、「CT」である。時計読出コマンドを受信した24hドア監視ユニット63は、RTC301が計時する現在時刻(監視側時刻)をホスト機器に送信(返信)する。このように、24hドア監視ユニット63の制御LSI300は、監視側時刻送信手段を構成する。
[Clock read command]
The clock reading command is a command transmitted from the host device to the 24h door monitoring unit 63 when the host device requests reading of the current time measured by the RTC 301 of the 24h door monitoring unit 63. The ID of the clock read command is “CT”. The 24h door monitoring unit 63 that has received the clock read command transmits (replies) the current time (monitoring time) measured by the RTC 301 to the host device. Thus, the control LSI 300 of the 24h door monitoring unit 63 forms a monitoring-side time transmission unit.

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

最新番号コマンドを受信した24hドア監視ユニット63は、EEPROM305の最新番号格納領域を参照し、最新番号をホスト機器に送信(返信)する。最新番号を受信したホスト機器は、ホスト機器が有する不揮発性の記憶装置に既に記憶されている最新番号と、受信した最新番号とを比較し、これらが一致しない場合、受信した最新番号を不揮発性の記憶装置に記憶させる(上書きする)。   The 24h door monitoring unit 63 that has received the latest number command refers to the latest number storage area of the EEPROM 305 and transmits (replies) the latest number to the host device. The host device that has 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. (Overwrite).

[開閉履歴情報読出コマンド]
開閉履歴情報読出コマンドは、ホスト機器が24hドア監視ユニット63に記憶されている開閉履歴情報の送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。開閉履歴情報読出コマンドのIDは、「CB」である。
[Open / close history information read command]
The opening / closing history information read command is a command 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. The ID of the open / close history information read command is “CB”.

開閉履歴情報読出コマンドを受信した24hドア監視ユニット63は、開閉履歴情報読出コマンドに含まれる番号に対応するEEPROM305の開閉履歴格納領域に記憶されている開閉履歴情報をホスト機器に送信(返信)する。開閉履歴情報を受信したホスト機器は、受信した開閉履歴を不揮発性の記憶装置に記憶させる。   The 24h door monitoring unit 63 that has received the opening / closing history information read command transmits (replies) the opening / closing history information stored in the opening / closing history storage area of the EEPROM 305 corresponding to the number included in the opening / closing history information reading command to the host device. . The host device that has received the opening / closing history information stores the received opening / closing history in the nonvolatile storage device.

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

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

[ステータス読出コマンド]
ステータス読出コマンドは、ホスト機器が24hドア監視ユニット63に、フロントドア2bの開閉状態やミドルドア41の開閉状態等、すなわちステータスの送信を要求するときにホスト機器から24hドア監視ユニット63に送信されるコマンドである。ステータス読出コマンドのIDは、「CS」である。
[Status read command]
The status read command is transmitted from the host device to the 24h door monitoring unit 63 when the host device requests the 24h door monitoring unit 63 to transmit the open / close state of the front door 2b and the middle door 41, that is, the status transmission. Command. The ID of the status read command is “CS”.

ステータス読出コマンドを受信した24hドア監視ユニット63は、RAM304の第1検知結果格納領域に記憶されている開閉履歴情報、及び、EEPROM305に記憶されている自己診断チェック結果、最終通信履歴、通常モード設定、ドア設定をホスト機器に送信(返信)する。   The 24h door monitoring unit 63, which has received the status read command, sets the opening / closing history information stored in the first detection result storage area of the RAM 304, the self-diagnosis check result stored in the EEPROM 305, the final communication history, and the normal mode setting. And sends (replies) the door setting to the host device.

なお、一般コマンドの送信に対応して24hドア監視ユニット63から受信した各種情報(シリアルID、プログラムバージョン、乱数値、開閉履歴情報番号、開閉履歴情報、開閉履歴情報数)は、例えば、ホスト機器が副制御基板72の場合は、サブDRAM103aやサブSRAM103bに記憶される。また、ホスト機器が設定機(例えば、コンピュータ400)の場合は、設定機が備えるハードディスクや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 24h door monitoring unit 63 in response to the transmission of the general command is, for example, the host device. Is stored in the sub DRAM 103a or the sub SRAM 103b. When the host device is a setting device (for example, the computer 400), it is stored in a hard disk or a RAM included in the setting device. Further, the storage device for storing the received various information is not limited to this, and a well-known rewritable storage device can be appropriately selected.

<通信フォーマット>
次に、24hドア監視ユニット63とホスト機器と間の通信フォーマットについて、図43を参照して説明する。図43は、24hドア監視ユニット63とホスト機器と間の通信フォーマットを説明するための図であり、図43Aは、通信フォーマットの概要を説明するための図であり、図43Bは、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. 43 is a diagram for explaining a communication format between the 24h door monitoring unit 63 and the host device, FIG. 43A is a diagram for explaining an outline of the communication format, and FIG. FIG. 9 is a diagram illustrating an example of a form of communication data when a random number is transmitted from a unit 63 to a host device.

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

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

<シーケンス>
次に、コマンドの送信順を規定するシーケンスについて、図44を参照して説明する。シーケンスは、処理のパターンごとに定義され、それぞれがシーケンステーブルに格納されている。シーケンステーブルは、ホスト機器の不揮発性の記憶装置、例えばホスト機器が副制御基板72の場合はロムカートリッジ基板86に、また、ホスト機器が設定機(例えば、コンピュータ400)の場合は、ハードディスク等に記憶されている。
<Sequence>
Next, a sequence for defining a command transmission order will be described with reference to FIG. The sequence is defined for each processing pattern, and each is stored in the sequence table. The sequence table is stored in a non-volatile storage device of the host device, for example, in the ROM cartridge substrate 86 when the host device is the sub-control board 72, and in a hard disk or the like when the host device is a setting device (for example, the computer 400). It is remembered.

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

シーケンステーブルには、例えば、接続確認シーケンス、初期化シーケンス、設定読出シーケンス、起動シーケンス、第1状態検知シーケンス、履歴取得シーケンス、全履歴取得シーケンス、時計セットシーケンス、監視間隔時間設定シーケンス、記録開始時間設定シーケンスが規定されている。また、記録モード設定シーケンス、秘密鍵設定シーケンス、一括設定シーケンス、第2状態検知シーケンス等が規定されている。   The sequence table includes, for example, a connection confirmation sequence, an initialization sequence, a setting reading sequence, a startup sequence, a first state detection sequence, a history acquisition sequence, a whole history acquisition sequence, a clock set sequence, a monitoring interval time setting sequence, and a recording start time. A setting sequence is specified. Further, a recording mode setting sequence, a secret key setting sequence, a batch setting sequence, a second state detection sequence, and the like are defined.

接続確認シーケンスは、本実施形態に係るコンピュータ400で実行されるドア監視ユニット初期化ツールによって接続確認の指示があった場合に実行されるシーケンスであり、例えば、シリアルIDコマンド(CR)を、コマンドを24hドア監視ユニット63に送信する。   The connection confirmation sequence is a sequence executed when a connection confirmation instruction is issued by the door monitoring unit initialization tool executed by the computer 400 according to the present embodiment. For example, a serial ID command (CR) is To the door monitoring unit 63 for 24 h.

初期化シーケンスは、本実施形態に係るコンピュータ400で実行されるドア監視ユニット初期化ツールによって初期化の指示があった場合に実行されるシーケンスであり、例えば、乱数コマンド(CK)、ログインコマンド(CI)、初期化コマンド(SI)、秘密鍵設定コマンド(SW)、記録開始時間設定コマンド(SB)、時計セットコマンド(ST)の順で、コマンドを24hドア監視ユニット63に送信する。   The initialization sequence is a sequence that is executed when an initialization instruction is issued by the door monitoring unit initialization tool executed by the computer 400 according to the present embodiment. For example, a random number command (CK) and a login command ( CI), an initialization command (SI), a secret key setting command (SW), a recording start time setting command (SB), and a clock set command (ST) are transmitted to the 24h door monitoring unit 63 in this order.

設定読出シーケンスは、本実施形態に係るコンピュータ400で実行されるドア監視ユニット設定読出ツールによって設定読出指示があった場合に実行されるシーケンスであり、例えば、バージョン要求コマンド(CV)、シリアルIDコマンド(CR)、時計読出要求コマンド(CT)、ステータス読出コマンド(CS)、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、開閉履歴情報読出コマンド(CB)の順で、コマンドを24hドア監視ユニット63に送信する。   The setting reading sequence is a sequence executed when a setting reading instruction is issued by the door monitoring unit setting reading tool executed by the computer 400 according to the present embodiment. For example, a version request command (CV), a serial ID command (CR), a clock read request command (CT), a status read command (CS), an open / close history information count command (CC), a latest number command (CN), and an open / close history information read command (CB) in the order of 24h. This is transmitted to the door monitoring unit 63.

その他同様に、起動シーケンス等の他のシーケンスについて、コマンドの内容、及びコマンドの送信順が定義される。   Similarly, for other sequences such as an activation sequence, the contents of the command and the transmission order of the command are defined.

<ドア監視ユニット初期化ツールによる接続確認・初期化のシーケンス>
次に、コンピュータ400で実行されるドア監視ユニット初期化ツールにおいて接続確認と初期化の指示が行われた場合に、上記のシーケンスに基づいて24hドア監視ユニット63に送信されるコマンドの送信順と処理について、図44を参照して説明する。
<Connection confirmation and initialization sequence using the door monitoring unit initialization tool>
Next, when connection confirmation and initialization are instructed in the door monitoring unit initialization tool executed by the computer 400, the transmission order of the command transmitted to the door monitoring unit 63 for 24h based on the above sequence is determined. The processing will be described with reference to FIG.

この処理において、コンピュータ400は、シーケンステーブルを参照し、接続確認シーケンスを実行し、その後、初期化指示がされたところで、初期化シーケンスを実行する。   In this process, the computer 400 executes the connection confirmation sequence by referring to the sequence table, and then executes the initialization sequence when the initialization is instructed.

まず、接続確認シーケンスに従って、コンピュータ400が、シリアルIDコマンド(CR)を24hドア監視ユニット63に送信する。シリアルIDコマンドを受信した24hドア監視ユニット63は、EEPROM305に記憶されているシリアルIDをコンピュータ400に送信(返信)する。これによって、コンピュータ400のドア監視ユニット初期化ツールは、シリアルIDを取得したことで、24hドア監視ユニット63と接続できたと判断し、接続確認結果表示部625に接続OKの表示を行う(図36B参照)。   First, the computer 400 transmits a serial ID command (CR) to the 24h door monitoring unit 63 according to the connection confirmation sequence. The 24h door monitoring unit 63 that has received the serial ID command transmits (replies) the serial ID stored in the EEPROM 305 to the computer 400. As a result, the door monitoring unit initialization tool of the computer 400 determines that the connection to the 24h door monitoring unit 63 has been established due to the acquisition of the serial ID, and displays connection OK on the connection confirmation result display unit 625 (FIG. 36B). reference).

次に、初期化シーケンスに従って、コンピュータ400が、乱数コマンド(CK)を24hドア監視ユニット63に送信する。乱数コマンドを受信した24hドア監視ユニット63は、乱数を発生させ、発生させた乱数値をホスト機器に送信(返信)する。   Next, the computer 400 transmits a random number command (CK) to the 24h door monitoring unit 63 according to the initialization sequence. The 24h door monitoring unit 63 that has received the random number command generates a random number and transmits (replies) the generated random number value to the host device.

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

一方、コンピュータ400は、24hドア監視ユニット63から乱数値を受信すると、受信した乱数値と、記憶している初期秘密鍵からパスワードを生成する。なお、コンピュータ400には、EEPROM305に記憶されていた初期値の秘密鍵と同じ秘密鍵が予め記憶されている。   On the other hand, upon receiving the random number value from the 24h door monitoring unit 63, the computer 400 generates a password from the received random number value and the stored initial secret key. Note that the same secret key as the initial value secret key stored in the EEPROM 305 is stored in the computer 400 in advance.

次に、コンピュータ400は、ログインコマンド(CI)を24hドア監視ユニット63に送信する。ログインコマンドには、コンピュータ400が生成したパスワードが含まれている。   Next, the computer 400 transmits a login command (CI) to the 24h door monitoring unit 63. The login command includes the password generated by the computer 400.

コンピュータ400からログインコマンドを受信した24hドア監視ユニット63は、ログインコマンドに含まれるパスワードと、RAM304のパスワード格納領域に記憶されているパスワードが一致するか否かを判別し、一致する場合はログイン許可(OK)の旨、一致しない場合はログイン不許可(NG)の旨のアンサを送信(返信)する。   The 24h door monitoring unit 63 that has received the login command from the computer 400 determines whether or not the password included in the login command matches the password stored in the password storage area of the RAM 304. If it does not match (OK) and does not match, it sends (replies) an answer to the effect that login is not permitted (NG).

コンピュータ400は、24hドア監視ユニット63からログイン不許可の旨のアンサを受信した場合、図36Bの初期化指示画面621において、ステータス表示部629に「初期化NG」の表示を行う。24hドア監視ユニット63からログイン許可の旨のアンサを受信した場合、コンピュータ400は、24hドア監視ユニット63のリセットを行うため、初期化コマンド(SI)を24hドア監視ユニット63に送信する。   When the computer 400 receives an answer indicating that login is not permitted from the 24h door monitoring unit 63, the computer 400 displays “initialization NG” on the status display unit 629 on the initialization instruction screen 621 in FIG. 36B. When receiving the answer to the effect that the login is permitted from the 24h door monitoring unit 63, the computer 400 transmits an initialization command (SI) to the 24h door monitoring unit 63 in order to reset the 24h door monitoring unit 63.

初期化コマンドを受信した24hドア監視ユニット63は、EEPROM305に記憶されている監視間隔時間と記録開始時間をクリアする。そして、初期化コマンドの結果がOKかNGか、を示すアンサをコンピュータ400に送信する。   The 24h door monitoring unit 63 that has received the initialization command clears the monitoring interval time and the recording start time stored in the EEPROM 305. Then, an answer indicating whether the result of the initialization command is OK or NG is transmitted to the computer 400.

コンピュータ400は、24hドア監視ユニット63からNGのアンサを受信した場合、図36Bの初期化指示画面621において、ステータス表示部629に「初期化NG」の表示を行う。24hドア監視ユニット63からOKのアンサを受信した場合、コンピュータ400は、秘密鍵設定コマンド(SW)を24hドア監視ユニット63に送信する。秘密鍵設定コマンドには、変更に係る秘密鍵が含まれており、これが暗号化キーファイルから復号化により取得した暗号化キーである。   When the computer 400 receives the NG answer from the 24h door monitoring unit 63, the computer 400 displays “Initialization NG” on the status display unit 629 on the initialization instruction screen 621 in FIG. 36B. When receiving the OK answer from the 24h door monitoring unit 63, the computer 400 transmits a secret key setting command (SW) to the 24h door monitoring unit 63. The secret key setting command includes a secret key according to the change, which is an encryption key obtained by decryption from the encryption key file.

秘密鍵設定コマンドを受信した24hドア監視ユニット63は、秘密鍵設定コマンドに含まれる秘密鍵を、EEPROM305の秘密鍵格納領域に記憶する(上書きする)。そして、秘密鍵設定の結果がOKかNGか、を示すアンサをコンピュータ400に送信する。   The 24h door monitoring unit 63 that has received the secret key setting command stores (overwrites) the secret key included in the secret key setting command in the secret key storage area of the EEPROM 305. Then, an answer indicating whether the result of the secret key setting is OK or NG is transmitted to the computer 400.

コンピュータ400は、24hドア監視ユニット63からNGのアンサを受信した場合、図36Bの初期化指示画面621において、ステータス表示部629に「初期化NG」の表示を行う。24hドア監視ユニット63からOKのアンサを受信した場合、コンピュータ400は、記録開始時間設定コマンド(SB)を24hドア監視ユニット63に送信する。   When the computer 400 receives the NG answer from the 24h door monitoring unit 63, the computer 400 displays “Initialization NG” on the status display unit 629 on the initialization instruction screen 621 in FIG. 36B. When an OK answer is received from the 24h door monitoring unit 63, the computer 400 transmits a recording start time setting command (SB) to the 24h door monitoring unit 63.

記録開始時間設定コマンドを受信した24hドア監視ユニット63は、記録開始時間設定コマンドに含まれる記録開始時間を、EEPROM305の記録開始時間格納領域に記憶する(上書きする)。そして、記録開始時間設定アンサをコンピュータ400に送信する。   The 24h door monitoring unit 63 that has received the recording start time setting command stores (overwrites) the recording start time included in the recording start time setting command in the recording start time storage area of the EEPROM 305. Then, the recording start time setting answer is transmitted to the computer 400.

次に、コンピュータ400は、時計セットコマンド(ST)を24hドア監視ユニット63に送信する。時計セットコマンドを受信した24hドア監視ユニット63は、時計セットコマンドに含まれる年、月、日、時、分、秒、曜日を示す情報に基いて、RTC301の年、月、日、時、分、秒、曜日を設定する。そして、日時セットアンサをコンピュータ400に送信する。   Next, the computer 400 transmits a clock setting command (ST) to the 24h door monitoring unit 63. The 24h door monitoring unit 63 that has received the clock set command, based on the information indicating the year, month, day, hour, minute, second, and day of the week included in the clock set command, sets the year, month, day, hour, and minute of the RTC 301. , Seconds, and days of the week. Then, the date and time set answer is transmitted to the computer 400.

なお、初期化コマンド(SI)では、EEPROM305に記憶されている監視間隔時間と記録開始時間がクリアされるため、その後に、監視間隔時間設定コマンド(SA)と記録開始時間設定コマンド(SB)が24hドア監視ユニット63が送信されるべきであるが、図44に示す初期化シーケンスの例では、監視間隔時間設定コマンド(SA)についての記載を省略した。   In the initialization command (SI), the monitoring interval time and the recording start time stored in the EEPROM 305 are cleared, and thereafter, the monitoring interval time setting command (SA) and the recording start time setting command (SB) are changed. Although the 24h door monitoring unit 63 should be transmitted, the description of the monitoring interval time setting command (SA) is omitted in the example of the initialization sequence shown in FIG.

また、初期化シーケンスでは、図44に示すように、コンピュータ400が24hドア監視ユニット63に対し、特権コマンドに基づく各種設定を要求できるようログインコマンド(CI)を送信してログインを行っているが、このログインに対応して必要とされるログアウトコマンド(CO)については、記載を省略した。   In the initialization sequence, as shown in FIG. 44, the computer 400 transmits a login command (CI) to the 24h door monitoring unit 63 so as to request various settings based on the privileged command, and performs login. A description of a logout command (CO) required for this login is omitted.

なお、本実施形態では、24hドア監視ユニット63とコンピュータ400との間で乱数を交換し、この乱数と初期秘密鍵(又は、初期秘密鍵の代わりに記憶される秘密鍵(暗号化キー))とによって、24hドア監視ユニット63において特権コマンドが利用可能となるログインパスワードが生成されるように構成されているが、乱数の交換を行わずに、例えば、暗号化キーそのものをログインパスワードとして使用するように設計することもできる。   In the present embodiment, a random number is exchanged between the 24h door monitoring unit 63 and the computer 400, and this random number and an initial secret key (or a secret key (encryption key) stored in place of the initial secret key) are exchanged. Thus, the 24h door monitoring unit 63 is configured to generate a login password that enables the use of the privileged command. However, without exchanging random numbers, for example, the encryption key itself is used as the login password. It can be designed as follows.

<ドア監視ユニット初期化ツールによる設定読出のシーケンス>
次に、コンピュータ400で実行されるドア監視ユニット設定読出ツールにおいて設定読出の指示が行われた場合に、上記のシーケンスに基づいて24hドア監視ユニット63に送信されるコマンドの送信順と処理について、図45を参照して説明する。
<Sequence of setting reading by door monitoring unit initialization tool>
Next, regarding the transmission order and processing of the command transmitted to the 24h door monitoring unit 63 based on the above sequence, when the setting reading instruction is performed in the door monitoring unit setting reading tool executed by the computer 400, This will be described with reference to FIG.

この処理において、コンピュータ400は、シーケンステーブルを参照し、設定読出シーケンスを実行する。   In this process, the computer 400 executes a setting reading sequence with reference to the sequence table.

まず、設定読出シーケンスに従って、コンピュータ400が、ステータス読出コマンド(CS)を24hドア監視ユニット63に送信する。ステータス読出コマンドを受信した24hドア監視ユニット63は、RAM304の第1検知結果格納領域に記憶されている開閉履歴情報、及び、EEPROM305に記憶されている自己診断チェック結果、最終通信履歴、通常モード設定、ドア設定等の値を含むステータスアンサをコンピュータ400に送信(返信)する。   First, the computer 400 transmits a status read command (CS) to the 24h door monitoring unit 63 according to the setting read sequence. The 24h door monitoring unit 63, which has received the status read command, sets the opening / closing history information stored in the first detection result storage area of the RAM 304, the self-diagnosis check result stored in the EEPROM 305, the final communication history, and the normal mode setting. Then, a status answer including a value such as a door setting is transmitted to the computer 400 (reply).

次に、コンピュータ400が、シリアルIDコマンド(CR)を24hドア監視ユニット63に送信する。シリアルIDコマンドを受信した24hドア監視ユニット63は、EEPROM305に記憶されているシリアルIDをシリアルIDアンサとしてコンピュータ400に送信(返信)する。これによって、コンピュータ400のドア監視ユニット設定読出ツールは、設定値表示部656のシリアルIDの表示領域に、取得したシリアルIDを表示するよう制御する。   Next, the computer 400 transmits a serial ID command (CR) to the 24h door monitoring unit 63. The 24h door monitoring unit 63 that has received the serial ID command transmits (replies) the serial ID stored in the EEPROM 305 to the computer 400 as a serial ID answer. As a result, the door monitoring unit setting reading tool of the computer 400 controls to display the acquired serial ID in the serial ID display area of the setting value display unit 656.

以降、同様に、コンピュータ400から24hドア監視ユニット63にコマンドが送信され、RAM304やEEPROM305から、対応する設定値等が取得され、コンピュータ400に送信される。   Thereafter, similarly, a command is transmitted from the computer 400 to the 24h door monitoring unit 63, and corresponding setting values and the like are obtained from the RAM 304 and the EEPROM 305, and transmitted to the computer 400.

なお、図45に示した設定読出シーケンスには、全履歴取得シーケンスが含まれており、全履歴取得シーケンスは、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、開閉履歴情報読出コマンド(CB)で構成され、コンピュータ400は、受信した開閉履歴情報数と最新番号から、開閉履歴情報を取得する先の(EEPROM305の)開閉履歴情報格納領域の番号を特定する。   The setting reading sequence shown in FIG. 45 includes an entire history acquisition sequence. The entire history acquisition sequence includes an opening / closing history information count command (CC), a latest number command (CN), and an opening / closing history information read command. The computer 400 specifies the number of the opening / closing history information storage area (of the EEPROM 305) from which the opening / closing history information is to be acquired, based on the received number of opening / closing history information and the latest number.

そして、コンピュータ400は、特定した開閉履歴情報格納領域の番号が付された開閉履歴情報格納領域の全てから開閉履歴情報を取得するまで、開閉履歴情報読出コマンド(CB)の送信を繰り返す(ループする)。   Then, the computer 400 repeats the transmission of the open / close history information read command (CB) until the open / close history information storage area is obtained from all the open / close history information storage areas numbered with the specified open / close history information storage area (loop). ).

その結果、コンピュータ400で実行されるドア監視ユニット設定読出ツールは、図37に示すような設定表示画面651を表示する。   As a result, the door monitoring unit setting reading tool executed by the computer 400 displays a setting display screen 651 as shown in FIG.

<ドア監視ユニット暗号化キー作成ツールの処理>
次に、図46のフローチャートを参照して、外部コンピュータ(コンピュータ400)において実行されるドア監視ユニット暗号化キー作成ツールの暗号化処理の例を概略説明する。
<Process of the door monitoring unit encryption key creation tool>
Next, an example of the encryption processing of the door monitoring unit encryption key creation tool executed in the external computer (computer 400) will be schematically described with reference to the flowchart in FIG.

最初に、ステップS301において、例えば、図34Aに示す暗号化キー作成画面601の暗号化キー入力部603に、ユーザによって暗号化キーが入力されたか否かを判定する。暗号化キーが入力されていない場合(ステップS301のNO)、ステップS301に戻り、この処理を繰り返す。なお、入力された暗号化キーは、入力されたそのままの値を暗号化キー入力部503に表示させるようにしてもよいし、入力された際に、表示上は、他の文字に変換されるようにしてもよい。   First, in step S301, for example, it is determined whether or not the user has input an encryption key to the encryption key input unit 603 of the encryption key creation screen 601 illustrated in FIG. 34A. If the encryption key has not been input (NO in step S301), the process returns to step S301 and repeats this process. The input encryption key may be displayed as it is on the encryption key input unit 503, or may be converted to another character when input. You may do so.

次に、ステップS302において、入力された暗号化キーに基づいてチェックサムが計算され、図34Bに示す暗号化キー作成画面601のチェックサム表示部605に、計算したチェックサムの値を表示する。   Next, in step S302, a checksum is calculated based on the input encryption key, and the calculated checksum value is displayed on the checksum display section 605 of the encryption key creation screen 601 shown in FIG. 34B.

次に、ステップS303において、暗号化キーファイルの作成を指示する作成ボタン(図34Bに示す暗号化キー作成画面601の作成指示ボタン607)が押下されたか否かを判定する。作成ボタンが押下されていない場合(ステップS303のNO)、ステップS303に戻り、この処理を繰り返す。   Next, in step S303, it is determined whether or not a creation button for instructing creation of an encryption key file (the creation instruction button 607 of the encryption key creation screen 601 shown in FIG. 34B) is pressed. If the create button has not been pressed (NO in step S303), the process returns to step S303, and this process is repeated.

作成ボタンが押下されている場合(ステップS303のYES)、ステップS304において、暗号化キーを暗号化し、暗号化キーファイルを作成する。この暗号化キーファイルは、例えば、XML形式のファイルであり、暗号化された暗号化キーを含むほか、上述したチェックサムの値や、作成日時を含むようにすることができる。   If the create button has been pressed (YES in step S303), in step S304, the encryption key is encrypted to create an encryption key file. The encryption key file is, for example, a file in an XML format, and can include an encrypted encryption key, a check sum value, and a creation date and time.

次に、ステップS305において、作成した暗号化キーファイルを、所定の記憶媒体(例えば、ハードディスクや半導体メモリ等で構成される外部記憶装置413、可搬型のフラッシュメモリ等の外部記録媒体430)に記憶し、ステップS306において、暗号化キーファイルの作成が完了した旨のメッセージを図34Bに示す暗号化キー作成画面601の所定のエリアに表示する。   Next, in step S305, the created encryption key file is stored in a predetermined storage medium (for example, an external storage device 413 including a hard disk or a semiconductor memory, or an external storage medium 430 such as a portable flash memory). Then, in step S306, a message indicating that the creation of the encryption key file has been completed is displayed in a predetermined area of the encryption key creation screen 601 shown in FIG. 34B.

<ドア監視ユニット初期化ツールの処理>
次に、図47のフローチャートを参照して、外部コンピュータ(コンピュータ400)において実行されるドア監視ユニット初期化ツールの初期化処理の例を概略説明する。
<Process of door monitoring unit initialization tool>
Next, an example of the initialization processing of the door monitoring unit initialization tool executed in the external computer (computer 400) will be schematically described with reference to the flowchart in FIG.

最初に、ステップS321において、24hドア監視ユニット63からコマンドのアンサを受信したか否かを判定する。コマンドのアンサを受信した場合(ステップS321のYES)、ステップS322において、受信アンサが「シリアルIDアンサ」であるか否かを判定する。受信アンサが「シリアルIDアンサ」である場合(ステップS322のYES)、ステップS323において、接続フラグをONにする。また、この場合に、例えば、図36Bに示す初期化指示画面621の接続確認結果表示部625に「接続OK」の表示を行うよう制御する。ステップS323の処理の後、ステップS321の判定に戻る。   First, in step S321, it is determined whether or not a command answer has been received from the 24h door monitoring unit 63. If a command answer has been received (YES in step S321), it is determined in step S322 whether the received answer is a “serial ID answer”. If the reception answer is “serial ID answer” (YES in step S322), the connection flag is turned on in step S323. In this case, for example, control is performed to display “connection OK” on the connection confirmation result display section 625 of the initialization instruction screen 621 shown in FIG. 36B. After the process in step S323, the process returns to the determination in step S321.

受信アンサが「シリアルIDアンサ」でない場合(ステップS322のNO)、ステップS324において、受信アンサが「乱数アンサ」であるか否かを判定する。受信アンサが「乱数アンサ」である場合(ステップS324のYES)、ステップS325において、受信した乱数と初期秘密鍵に基づいて、ログインパスワードを生成する。その後、初期化シーケンスに従って、当該ログインパスワードを含むログインコマンドを24hドア監視ユニット63に送信する(ステップS326)。ステップS326の処理の後、ステップS321の判定に戻る。   If the received answer is not the “serial ID answer” (NO in step S322), it is determined in step S324 whether the received answer is a “random number answer”. If the received answer is a “random answer” (YES in step S324), in step S325, a login password is generated based on the received random number and the initial secret key. Thereafter, a login command including the login password is transmitted to the 24h door monitoring unit 63 according to the initialization sequence (step S326). After the process in step S326, the process returns to the determination in step S321.

受信アンサが「乱数アンサ」でない場合(ステップS324のNO)、ステップS327において、受信アンサが「ログインアンサ」であるか否かを判定する。受信アンサが「ログインアンサ」である場合(ステップS327のYES)、ステップS328において、アンサの内容がログイン許可であるか否かを判定する。アンサの内容がログイン許可でない場合(ステップS328のNO)、図36Bに示す初期化指示画面621の接続確認結果表示部625に「接続NG」の表示を行うよう制御する。ステップS329の処理の後、ステップS321の判定に戻る。   If the received answer is not a “random answer” (NO in step S324), it is determined in step S327 whether the received answer is a “login answer”. If the received answer is “login answer” (YES in step S327), in step S328, it is determined whether or not the content of the answer is a login permission. If the answer does not indicate that the login is permitted (NO in step S328), control is performed so that “connection NG” is displayed on the connection confirmation result display section 625 of the initialization instruction screen 621 shown in FIG. 36B. After the process in step S329, the process returns to the determination in step S321.

一方、アンサの内容がログイン許可である場合(ステップS328のYES)、初期化シーケンスに従って、ステップS330において、ステップS338で復号化された暗号化キーファイル(暗号化キー)を含んだ秘密鍵設定コマンドを24hドア監視ユニット63に送信する(ステップS326)。なお、この秘密鍵設定コマンドに対するアンサ(秘密鍵設定アンサ)がNGの場合、図36Bに示す初期化指示画面621の接続確認結果表示部625に「接続NG」の表示を行うよう制御するが、ここでは省略する。   On the other hand, if the contents of the answer are log-in permission (YES in step S328), the secret key setting command including the encryption key file (encryption key) decrypted in step S338 in step S330 according to the initialization sequence. Is transmitted to the 24h door monitoring unit 63 (step S326). When the answer to the secret key setting command (secret key setting answer) is NG, control is performed so that “connection NG” is displayed on the connection confirmation result display section 625 of the initialization instruction screen 621 shown in FIG. 36B. Here, it is omitted.

ステップS330の処理の後、記録開始時間設定コマンドを24hドア監視ユニット63に送信し(ステップS331)、次に、時計セットコマンドを24hドア監視ユニット63に送信する(ステップS332)。ここで、24hドア監視ユニット63の初期化が正常に完了し、ステップS333において、図36Bに示す初期化指示画面621の接続確認結果表示部625に「接続OK」の表示を行うよう制御する。受信アンサが「ログインアンサ」でない場合(ステップS327のNO)、又はステップS323の処理の後、ステップS321の判定に戻る。   After the processing in step S330, the recording start time setting command is transmitted to the 24h door monitoring unit 63 (step S331), and then the clock setting command is transmitted to the 24h door monitoring unit 63 (step S332). Here, the initialization of the 24h door monitoring unit 63 is completed normally, and in step S333, control is performed so as to display “connection OK” on the connection confirmation result display section 625 of the initialization instruction screen 621 shown in FIG. 36B. If the reception answer is not the “login answer” (NO in step S327), or after the processing in step S323, the process returns to the determination in step S321.

24hドア監視ユニット63からアンサを受信していない場合(ステップS321のNO)、ステップS334に進み、そこで、ドア監視ユニット初期化ツールにおいて、接続確認指示(図36Aに示す初期化指示画面621における接続確認ボタン624の押下)がされたか否かを判定する。接続確認指示がされている場合(ステップS334のYES)、ステップS335において、接続確認シーケンスに従い、シリアルIDコマンドを24hドア監視ユニット63に送信する。ステップS335の処理の後、ステップS321の判定に戻る。   If the answer has not been received from the 24h door monitoring unit 63 (NO in step S321), the process proceeds to step S334, where the door monitoring unit initialization tool uses a connection confirmation instruction (connection on the initialization instruction screen 621 shown in FIG. 36A). It is determined whether or not the confirmation button 624 has been pressed). If the connection confirmation instruction has been given (YES in step S334), a serial ID command is transmitted to the 24h door monitoring unit 63 according to the connection confirmation sequence in step S335. After the process in step S335, the process returns to the determination in step S321.

接続確認指示がされていない場合(ステップS334のNO)、ステップS336に進み、ドア監視ユニット初期化ツールにおいて、暗号化キーファイルに関するファイル読込指示がされたか否かを判定する。ファイル読込指示は、例えば、図36Aに示すドア監視ユニット初期化ツールの初期化指示画面621が表示される前の、初期化メニュー画面(不図示)において、ファイル読込指示画面を表示するよう指示し、表示されたファイル読込指示画面において、初期化に用いる暗号化キーファイルを指定することによって行われる。   If the connection confirmation instruction has not been issued (NO in step S334), the process proceeds to step S336, and it is determined whether or not a file reading instruction regarding the encryption key file has been issued in the door monitoring unit initialization tool. The file reading instruction is, for example, an instruction to display a file reading instruction screen on an initialization menu screen (not shown) before the initialization instruction screen 621 of the door monitoring unit initialization tool shown in FIG. 36A is displayed. This is performed by specifying an encryption key file to be used for initialization on the displayed file reading instruction screen.

暗号化キーファイルに関するファイル読込指示がされた場合(ステップS336のYES)、ステップS337において、指定された暗号化キーファイルを読み込み、次に、ステップS338において、読み込んだ暗号化キーファイルを復号化する。ステップS338の後、ステップS321の判定に戻る。   If a file reading instruction regarding the encryption key file is issued (YES in step S336), the specified encryption key file is read in step S337, and then the read encryption key file is decrypted in step S338. . After step S338, the process returns to the determination of step S321.

暗号化キーファイルに関するファイル読込指示がされていない場合(ステップS336のNO)、ステップS339において、ドア監視ユニット初期化ツールで、初期化指示がされたか否か、すなわち、初期化ボタン628(図36A参照)が押下されたか否かを判定する。初期化指示がされている場合(ステップS339のYES)、ステップS340において、接続フラグがONか否かを判定する。   If the file reading instruction for the encryption key file has not been issued (NO in step S336), in step S339, it is determined whether the door monitoring unit initialization tool has issued the initialization instruction, that is, the initialization button 628 (FIG. 36A). ) Is pressed. If an initialization instruction has been given (YES in step S339), it is determined in step S340 whether the connection flag is ON.

接続フラグがONであると判定された場合(ステップS340のYES)、すなわち、24hドア監視ユニット63から正常にシリアルIDを受信している場合、ステップS341において、初期化シーケンスに基づき、乱数コマンドを24hドア監視ユニット63に送信する。ステップS341の後、ステップS321の判定に戻る。   When it is determined that the connection flag is ON (YES in step S340), that is, when the serial ID is normally received from the 24h door monitoring unit 63, in step S341, a random number command is generated based on the initialization sequence. Transmit to the door monitoring unit 63 for 24h. After step S341, the process returns to the determination of step S321.

接続フラグがONであると判定されなかった場合(ステップS340のNO)、24hドア監視ユニット63との接続が正常に確立されていないとして、ドア監視ユニット初期化ツールで、その旨のエラーメッセージを表示する(ステップS342)。ステップS342の後、ステップS321の判定に戻る。   If it is not determined that the connection flag is ON (NO in step S340), it is determined that the connection with the 24h door monitoring unit 63 has not been normally established, and the door monitoring unit initialization tool issues an error message to that effect. It is displayed (step S342). After step S342, the process returns to step S321.

なお、図47に示す例では、ドア監視ユニット暗号化キー作成ツールで作成された暗号化キーファイルが一旦復号化されて元の暗号化キーが取得された後、この暗号化キーが、上述した別の暗号鍵で暗号化され、24hドア監視ユニット63に送信されるように構成される。   In the example shown in FIG. 47, after the encryption key file created by the door monitoring unit encryption key creation tool is temporarily decrypted to obtain the original encryption key, the encryption key is used as described above. It is configured to be encrypted with another encryption key and transmitted to the door monitoring unit 63 for 24h.

また、24hドア監視ユニット63から受信するアンサについても、上述した別の暗号鍵による暗号化がされているものとするが、図47のフローチャートでは、当該アンサに関する(別の暗号鍵を用いた)復号化処理については省略した。   Also, it is assumed that the answer received from the 24h door monitoring unit 63 is also encrypted with the above-mentioned another encryption key, but in the flowchart of FIG. 47, the answer related to the answer (using another encryption key) is used. The decoding process is omitted.

なお、図44に関連して説明した通り、ここでも、監視間隔時間設定コマンド(SA)の送信処理とアンサの受信処理、及びログアウトコマンド(CO)の送信処理とアンサの受信処理については省略した。   As described with reference to FIG. 44, the transmission processing of the monitoring interval time setting command (SA) and the reception processing of the answer, and the transmission processing of the logout command (CO) and the reception processing of the answer are also omitted here. .

<ドア監視ユニットが行う各種処理>
次に、図48のフローチャートを参照して、24hドア監視ユニット63において実行される処理の例を概略説明する。24hドア監視ユニット63は、副制御回路101が接続されている場合でも、コンピュータ400に接続されている場合でも同様に、図48に示す処理を実行することができるが、接続先を判断して、各接続先に応じた処理を行うよう制御することもできる。24hドア監視ユニット63は、コンピュータ400に接続されている場合は、上述の通り、接続確認シーケンス、初期化シーケンス、設定読出シーケンスに基づいて、コンピュータ400から受信したコマンドに応じて、対応する処理を行う。
<Various processes performed by the door monitoring unit>
Next, an example of processing executed in the 24h door monitoring unit 63 will be schematically described with reference to the flowchart in FIG. The 24h door monitoring unit 63 can execute the processing shown in FIG. 48 similarly when the sub-control circuit 101 is connected or when it is connected to the computer 400. It is also possible to control so as to perform processing according to each connection destination. When connected to the computer 400, the 24h door monitoring unit 63 performs a corresponding process according to the command received from the computer 400 based on the connection confirmation sequence, the initialization sequence, and the setting reading sequence as described above. Do.

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

ドア監視ユニットメイン処理において、制御LSI300は、まず、起動時初期化処理を行う(ステップS401)。起動時初期化処理において、制御LSI300は、EEPROM305に記憶されている監視間隔時間に対応するカウント数及び記録開始時間に対応するカウント数をクリアする。また、RAM304に記憶されている監視間隔カウンタの値及び記録開始時間カウンタの値をクリアする。   In the door monitoring unit main process, the control LSI 300 first performs a startup initialization process (step S401). In the startup initialization process, the control LSI 300 clears the count number corresponding to the monitoring interval time and the count number corresponding to the recording start time stored in the EEPROM 305. Further, the value of the monitoring interval counter and the value of the recording start time counter stored in the RAM 304 are cleared.

次いで、制御LSI300は、ポート入力処理を行う(ステップS402)。ポート入力処理において、制御LSI300は、フロントドア2bが開放状態か閉止状態かを示す情報をI/Oポート回路309の入力ポートから取得し、取得した情報をRAM304に記憶する。   Next, the control LSI 300 performs a port input process (step S402). In the port input process, the control LSI 300 acquires information indicating whether the front door 2b is in the open state or the closed state from the input port of the I / O port circuit 309, and stores the acquired information in the RAM 304.

次いで、制御LSI300は、ドア監視処理を行う(ステップS403)。ドア監視処理では、制御LSI300は、開閉履歴情報をEEPROM305に記憶させる。ドア監視処理の具体的な内容は、後で図49を参照して説明する。   Next, the control LSI 300 performs a door monitoring process (step S403). In the door monitoring process, the control LSI 300 stores the opening / closing history information in the EEPROM 305. The specific contents of the door monitoring process will be described later with reference to FIG.

次いで、制御LSI300は、受信処理を行う(ステップS404)。受信処理では、制御LSI300は、後述する受信割込み処理(図52参照)でホスト機器(例えば、コンピュータ400)から受信したコマンドに応じた各種処理を行う。受信処理の具体的な内容は、後で図53を参照して説明する。   Next, the control LSI 300 performs a receiving process (step S404). In the reception process, the control LSI 300 performs various processes in accordance with a command received from a host device (for example, the computer 400) in a reception interrupt process (see FIG. 52) described later. The specific contents of the reception processing will be described later with reference to FIG.

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

次いで、制御LSI300は、周期ウェイト処理を行う(ステップS406)。周期ウェイト処理では、制御LSI300は、前回の周期ウェイト処理から20msec経過したか否かを判別し、経過していない場合は経過するまで、次の処理(ステップS407)への移行を保留し、経過してから処理をステップS407に移行させる。このため、制御LSI300が実行する各種処理における各種カウンタに1を加算する処理は、20msec毎に1回実行されることになる。なお、制御LSI300が実行する各種処理における各種カウンタに1を加算する処理には、ドア監視ユニットメイン処理の後述するステップS408、後述するドア監視処理(図49参照)のステップS424がある。   Next, the control LSI 300 performs a periodic wait process (step S406). In the cyclic wait processing, the control LSI 300 determines whether or not 20 msec has elapsed from the previous cyclic wait processing. If not, the control LSI 300 suspends the transition to the next processing (step S407) until the elapse. Then, the process proceeds to step S407. Therefore, the process of adding 1 to the various counters in the various processes executed by the control LSI 300 is executed once every 20 msec. The process of adding 1 to various counters in the various processes executed by the control LSI 300 includes a step S408 described later of the door monitoring unit main process and a step S424 of the door monitoring process (see FIG. 49) described later.

次いで、制御LSI300は、RAM304の記録開始時間カウンタ格納領域及びEEPROM305の記録開始時間格納領域を参照し、記録開始時間カウンタの値が記録開始時間に対応するカウント数未満か否かを判別する(ステップS407)。ステップS407において、記録開始時間カウンタの値が記録開始時間に対応するカウント数未満でないと判別したとき(ステップS407がNO判定の場合)、制御LSI300は、処理をステップS402に移行し、ステップS402以降の処理を繰り返す。   Next, the control LSI 300 refers to the recording start time counter storage area of the RAM 304 and the recording start time storage area of the EEPROM 305, and determines whether the value of the recording start time counter is less than the count number corresponding to the recording start time (step). S407). If it is determined in step S407 that the value of the recording start time counter is not less than the count number corresponding to the recording start time (if step S407 is NO), the control LSI 300 shifts the processing to step S402, and proceeds to step S402. Is repeated.

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

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

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

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

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

一方、ステップS423において、記録許可フラグがONに設定されていると判別したとき(ステップS423がYES判定の場合)、制御LSI300は、RAM304の監視間隔カウンタ格納領域に記憶されている監視間隔カウンタの値に1を加算する(ステップS424)。   On the other hand, if it is determined in step S423 that the recording permission flag is set to ON (if step S423 is YES), the control LSI 300 determines whether the monitoring interval counter stored in the monitoring interval counter storage area of the RAM 304 has been set. One is added to the value (step S424).

次いで、制御LSI300は、RAM304の監視間隔カウンタの値が、EEPROM305の監視間隔時間格納領域に記憶されている監視間隔時間に対応するカウント数以上か否かを判別する(ステップS425)。ステップS425において、監視間隔カウンタの値が監視間隔時間に対応するカウント数未満と判別したとき(ステップS425がNO判定の場合)、制御LSI300は、ドア監視処理を終了し、処理をドア監視ユニットメイン処理(図48参照)のステップS404に戻す。   Next, the control LSI 300 determines whether or not the value of the monitoring interval counter of the RAM 304 is equal to or greater than the count number corresponding to the monitoring interval time stored in the monitoring interval time storage area of the EEPROM 305 (step S425). When it is determined in step S425 that the value of the monitoring interval counter is less than the count number corresponding to the monitoring interval time (if step S425 is NO), the control LSI 300 ends the door monitoring process and returns the process to the door monitoring unit main processing. The process returns to step S404 of the process (see FIG. 48).

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

次いで、制御LSI300は、RAM304の状態変化フラグ格納領域に記憶されている状態変化フラグがONに設定されているか否かを判別する(ステップS427)。状態変化フラグは、後述のドア監視状態検知処理(図50参照)のステップS446でONに設定される。ステップS427において、状態変化フラグがOFFに設定されていると判別したとき(ステップS427がNO判定の場合)、制御LSI300は、ドア監視処理を終了し、処理をドア監視ユニットメイン処理(図48参照)のステップS404に戻す。   Next, the control LSI 300 determines whether or not the state change flag stored in the state change flag storage area of the RAM 304 is set to ON (step S427). The state change flag is set to ON in step S446 of a door monitoring state detection process (see FIG. 50) described later. When it is determined in step S427 that the state change flag is set to OFF (NO in step S427), the control LSI 300 ends the door monitoring process, and proceeds to the door monitoring unit main process (see FIG. 48). Return to step S404).

一方、ステップS427において、状態変化フラグがONに設定されていると判別したとき(ステップS427がYES判定の場合)、制御LSI300は、EEPROM305の最新番号格納領域に記憶されている最新番号が128以上か否かを判別する(ステップS428)。   On the other hand, when it is determined in step S427 that the state change flag is set to ON (when the determination in step S427 is YES), the control LSI 300 determines that the latest number stored in the latest number storage area of the EEPROM 305 is 128 or more. It is determined whether or not this is the case (step S428).

ステップS427において、EEPROM305の最新番号格納領域に記憶されている最新番号が128以上であると判別したとき(ステップS428がYES判定の場合)、制御LSI300は、EEPROM305の最新番号格納領域に最新番号として「1」をセットする(ステップS429)。そして、制御LSI300は、処理をステップS431に移行する。   If it is determined in step S427 that the latest number stored in the latest number storage area of the EEPROM 305 is 128 or more (YES in step S428), the control LSI 300 stores the latest number in the latest number storage area of the EEPROM 305 as the latest number. "1" is set (step S429). Then, the control LSI 300 shifts the processing to step S431.

ステップS427において、EEPROM305の最新番号格納領域に記憶されている最新番号が128未満であると判別したとき(ステップS428がNO判定の場合)、制御LSI300は、EEPROM305の最新番号格納領域の値に「1」を加算する(ステップS430)。そして、制御LSI300は、処理をステップS431に移行する。   In step S427, when it is determined that the latest number stored in the latest number storage area of the EEPROM 305 is less than 128 (NO in step S428), the control LSI 300 sets the value of the latest number storage area of the EEPROM 305 to " "1" is added (step S430). Then, the control LSI 300 shifts the processing to step S431.

ステップS431の処理において、制御LSI300は、EEPROM305の履歴カウンタ格納領域に記憶されている履歴カウンタが128未満か否かを判別する(ステップS431)。ステップS431の処理において、履歴カウンタが128未満と判別したとき(ステップS431がYES判定の場合)、制御LSI300は、履歴カウンタに1を加算する(ステップS432)。そして、制御LSI300は、処理をステップS433に移行する。   In the process of step S431, the control LSI 300 determines whether or not the history counter stored in the history counter storage area of the EEPROM 305 is less than 128 (step S431). In the process of step S431, when it is determined that the history counter is less than 128 (when step S431 is YES), the control LSI 300 adds 1 to the history counter (step S432). Then, the control LSI 300 shifts the processing to step S433.

一方、ステップS431の処理において、履歴カウンタが128未満でない判別したとき(ステップS431がNO判定の場合)、制御LSI300は、処理をステップS433に移行する。   On the other hand, when it is determined in step S431 that the history counter is not less than 128 (when step S431 is NO), the control LSI 300 shifts the processing to step S433.

ステップS433の処理において、制御LSI300は、EEPROM305の最新番号格納領域に記憶されている最新番号が付された開閉履歴情報格納領域に、RAM304の第2検知結果格納領域に記憶されている開閉履歴情報を記憶させる。   In the processing of step S433, the control LSI 300 stores the open / close history information stored in the second detection result storage area of the RAM 304 in the open / close history information storage area with the latest number stored in the latest number storage area of the EEPROM 305. Is stored.

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

[ドア監視状態検知処理]
次に、ドア監視処理(図49参照)のステップS421におけるドア監視状態検知処理について、図50を参照して説明する。図50は、本実施形態におけるドア監視状態検知処理の例を示すフローチャートである。
[Door monitoring status detection processing]
Next, the door monitoring state detection processing in step S421 of the door monitoring processing (see FIG. 49) will be described with reference to FIG. FIG. 50 is a flowchart illustrating an example of the door monitoring state detection process according to the present embodiment.

ドア監視状態検知処理において、制御LSI300は、まず、RAM304の第1検知結果格納領域に記憶されている開閉履歴情報における状態情報(開放か閉止かを示す情報)と、RAM304の入力ポート情報格納領域に記憶されている状態情報と、が異なるか否かを判別する(ステップS441)。   In the door monitoring state detection processing, the control LSI 300 firstly stores state information (information indicating whether the door is open or closed) in the opening / closing history information stored in the first detection result storage area of the RAM 304 and an input port information storage area of the RAM 304. It is determined whether or not the status information stored in the storage device is different from the status information (step S441).

ステップS441において、第1検知結果格納領域の状態情報と、入力ポート情報格納領域の状態情報と、が異ならない(一致する)と判別したとき(ステップS441がNO判定の場合)、制御LSI300は、ドア監視状態検知処理を終了し、処理をドア監視処理(図49参照)のステップS422に戻す。   In step S441, when it is determined that the state information of the first detection result storage area and the state information of the input port information storage area are not different (match) (if step S441 is NO), the control LSI 300 The door monitoring state detection process ends, and the process returns to step S422 of the door monitoring process (see FIG. 49).

ステップS441において、第1検知結果格納領域の状態情報と、入力ポート情報格納領域の状態情報と、が異なると判別したとき(ステップS441がYES判定の場合)、制御LSI300は、RTC301から現在時刻の日時情報を取得し、取得した日時情報と入力ポート情報格納領域の状態情報からなる開閉履歴情報を第1検知結果格納領域に記憶させる(ステップS442)。   If it is determined in step S441 that the state information of the first detection result storage area is different from the state information of the input port information storage area (if step S441 is YES), the control LSI 300 returns the current time from the RTC 301 to the current time. The date and time information is acquired, and the open / close history information including the acquired date and time information and the status information of the input port information storage area is stored in the first detection result storage area (step S442).

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

一方、ステップS443において、状態変化フラグがOFFに設定されていると判別したとき(ステップS443がYES判定の場合)、制御LSI300は、EEPROM305の最新番号格納領域に記憶されている最新番号が付された開閉履歴情報格納領域に記憶されている開閉履歴情報の状態情報と、入力ポート情報格納領域の状態情報と、が異なるか否かを判別する(ステップS444)。   On the other hand, when it is determined in step S443 that the state change flag is set to OFF (if step S443 is YES), the control LSI 300 assigns the latest number stored in the latest number storage area of the EEPROM 305. It is determined whether or not the status information of the opening / closing history information stored in the opened / closed history information storage area and the status information of the input port information storage area are different (step S444).

ステップS444の処理において、最新番号が付された開閉履歴情報格納領域に記憶されている開閉履歴情報の状態情報と、入力ポート情報格納領域の状態情報と、が異ならない(一致する)と判別したとき(ステップS444がNO判定の場合)、制御LSI300は、ドア監視状態検知処理を終了し、処理をドア監視処理(図49参照)のステップS422に戻す。   In the process of step S444, it is determined that the state information of the opening / closing history information stored in the opening / closing history information storage area with the latest number and the state information of the input port information storage area do not differ (match). At this time (when step S444 is NO), the control LSI 300 ends the door monitoring state detection processing, and returns the processing to step S422 of the door monitoring processing (see FIG. 49).

一方、ステップS444の処理において、最新番号が付された開閉履歴情報格納領域に記憶されている開閉履歴情報の状態情報と、入力ポート情報格納領域の状態情報と、が異なると判別したとき(ステップS444がYES判定の場合)、制御LSI300は、RTC301から現在時刻の日時情報を取得し、取得した日時情報と入力ポート情報格納領域の状態情報からなる開閉履歴情報を第2検知結果格納領域に記憶させる(ステップS445)。   On the other hand, when it is determined in the process of step S444 that the state information of the opening / closing history information stored in the opening / closing history information storage area with the latest number is different from the state information of the input port information storage area (step S444). If S444 is YES), the control LSI 300 acquires the date and time information of the current time from the RTC 301, and stores the opening and closing 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. (Step S445).

次いで、制御LSI300は、RAM304の状態変化フラグ格納領域に記憶されている状態変化フラグをONに設定する(ステップS446)。そして、制御LSI300は、ドア監視状態検知処理を終了し、処理をドア監視処理(図49参照)のステップS422に戻す。   Next, the control LSI 300 sets the state change flag stored in the state change flag storage area of the RAM 304 to ON (step S446). Then, the control LSI 300 ends the door monitoring state detection processing, and returns the processing to step S422 of the door monitoring processing (see FIG. 49).

[ドア監視記録判定処理]
次に、ドア監視処理(図49参照)のステップS422におけるドア監視記録判定処理について、図51を参照して説明する。図51は、本実施形態におけるドア監視記録判定処理の例を示すフローチャートである。
[Door monitoring record judgment processing]
Next, the door monitoring record determination process in step S422 of the door monitoring process (see FIG. 49) will be described with reference to FIG. FIG. 51 is a flowchart illustrating an example of the door monitoring record determination process according to the present embodiment.

ドア監視記録判定処理において、制御LSI300は、まず、EEPROM305の記録モード格納領域を参照し、記録モードが常時記録モードに設定されているか否かを判別する(ステップS451)。ステップS451の処理において、記録モードが常時記録モードに設定されていないと判別したとき(ステップS451がNO判定の場合)、制御LSI300は、処理を後述のステップS454に移行する。   In the door monitoring record determination process, the control LSI 300 first refers to the recording mode storage area of the EEPROM 305 and determines whether the recording mode is set to the constant recording mode (step S451). In the process of step S451, when it is determined that the recording mode is not set to the continuous recording mode (when step S451 is NO), the control LSI 300 shifts the process to step S454 described below.

ステップS451の処理において、記録モードが常時記録モードに設定されていると判別したとき(ステップS451がYES判定の場合)、制御LSI300は、RAM304の記録開始時間カウンタ格納領域及びEEPROM305の記録開始時間格納領域を参照し、記録開始時間カウンタの値が記録開始時間に対応するカウント数以上か否かを判別する(ステップS452)。ステップS452において、記録開始時間カウンタの値が記録開始時間に対応するカウント数以上でないと判別したとき(ステップS452がNO判定の場合)、制御LSI300は、処理を後述のステップS454に移行する。   In the process of step S451, when it is determined that the recording mode is set to the continuous recording mode (when step S451 is YES), the control LSI 300 stores the recording start time counter storage area of the RAM 304 and the recording start time storage of the EEPROM 305. With reference to the area, it is determined whether or not the value of the recording start time counter is equal to or greater than the count number corresponding to the recording start time (step S452). If it is determined in step S452 that the value of the recording start time counter is not equal to or greater than the count corresponding to the recording start time (if step S452 is NO), the control LSI 300 shifts the processing to step S454 described below.

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

ステップS454において、制御LSI300は、RAM304の記録許可フラグ格納領域に記憶されている記録許可フラグをOFFに設定する(ステップS454)。そして、制御LSI300は、ドア監視記録判定処理を終了し、処理をドア監視処理(図49参照)のステップS423に戻す。   In step S454, the control LSI 300 sets the recording permission flag stored in the recording permission flag storage area of the RAM 304 to OFF (step S454). Then, the control LSI 300 ends the door monitoring record determination process, and returns the process to step S423 of the door monitoring process (see FIG. 49).

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

受信割込み処理において、制御LSI300は、まず、受信したデータが「STX」であるか否かを判別する(ステップS461)。ステップS461において、受信したデータが「STX」であると判別したとき(ステップS461がYES判定の場合)、制御LSI300は、RAM304の受信バッファ及び受信カウンタ格納領域に記憶されている受信カウンタの値に「1」を設定し、且つ、RAM304のETX受信フラグ格納領域に記憶しているETX受信フラグをOFFに設定する(ステップS462)。そして、制御LSI300は、受信割込み処理を終了する。   In the reception interrupt processing, the control LSI 300 first determines whether or not the received data is “STX” (step S461). If it is determined in step S461 that the received data is “STX” (if step S461 is YES), the control LSI 300 determines whether the value of the reception counter stored in the reception buffer and the reception counter storage area of the RAM 304 is “1” is set, and the ETX reception flag stored in the ETX reception flag storage area of the RAM 304 is set to OFF (step S462). Then, the control LSI 300 ends the reception interrupt processing.

一方、ステップS461において、受信したデータが「STX」でないと判別したとき(ステップS461がNO判定の場合)、制御LSI300は、受信カウンタ格納領域に記憶されている受信カウンタの値に対応する受信バッファに受信したデータを記憶させる(ステップS463)。   On the other hand, if it is determined in step S461 that the received data is not “STX” (if step S461 is NO), the control LSI 300 returns to the reception buffer corresponding to the value of the reception counter stored in the reception counter storage area. (Step S463).

次いで、制御LSI300は、受信カウンタの値に1を加算する(ステップS464)。次いで、制御LSI300は、受信データが「ETX」であるか否かを判別する(ステップS465)。ステップS465において、受信データが「ETX」であると判別したとき(ステップS465がYES判定の場合)、制御LSI300は、RAM304のETX受信フラグ格納領域に記憶されているETX受信フラグをONに設定する。また、RAM304のサムカウンタの値をクリアする(ステップS466)。そして、制御LSI300は、受信割込み処理を終了する。   Next, the control LSI 300 adds 1 to the value of the reception counter (Step S464). Next, the control LSI 300 determines whether or not the received data is “ETX” (step S465). When it is determined in step S465 that the received data is “ETX” (if step S465 is YES), the control LSI 300 sets the ETX reception flag stored in the ETX reception flag storage area of the RAM 304 to ON. . Further, the value of the sum counter of the RAM 304 is cleared (step S466). Then, the control LSI 300 ends the reception interrupt processing.

一方、ステップS465において、受信データが「ETX」でないと判別したとき(ステップS465がNO判定の場合)、制御LSI300は、RAM304のETX受信フラグ格納領域に記憶されているETX受信フラグがONに設定されているか否かを判別する(ステップS467)。ステップS467において、ETX受信フラグがONに設定されていないと判別したとき(ステップS467がNO判定の場合)、制御LSI300は、受信割込み処理を終了する。   On the other hand, if it is determined in step S465 that the received data is not “ETX” (NO in step S465), the control LSI 300 sets the ETX reception flag stored in the ETX reception flag storage area of the RAM 304 to ON. It is determined whether or not it has been performed (step S467). If it is determined in step S467 that the ETX reception flag is not set to ON (NO in step S467), the control LSI 300 ends the reception interrupt processing.

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

次いで、制御LSI300は、サムカウンタの値が2であるか否かを判別する(ステップS469)。ステップS469において、サムカウンタの値が2でないと判別したとき(ステップS469がNO判定の場合)、制御LSI300は、受信割込み処理を終了する。一方、ステップS469において、サムカウンタの値が2であると判別したとき(ステップS469がYES判定の場合)、制御LSI300は、RAM304の受信完了フラグ格納領域に記憶されている受信完了フラグをONに設定し(ステップS470)、受信割込み処理を終了する。   Next, the control LSI 300 determines whether or not the value of the sum counter is 2 (step S469). When it is determined in step S469 that the value of the sum counter is not 2 (when the determination in step S469 is NO), the control LSI 300 ends the reception interrupt processing. On the other hand, if it is determined in step S469 that the value of the sum counter is 2 (if step S469 is YES), the control LSI 300 turns on the reception completion flag stored in the reception completion flag storage area of the RAM 304. The setting is made (step S470), and the reception interruption process is ended.

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

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

一方、ステップS471において、受信完了フラグがONに設定されていると判別したとき(ステップS471がYES判定の場合)、制御LSI300は、RAM304の受信バッファを参照し、受信したサム値と受信したデータとが整合しているか否かを判定する整合性判定処理を行う(ステップS472)。具体的には、整合性判定処理では、RAM304の受信バッファに保存されている受信データ(図43A参照)の「STX」を除く「ETX」までの1バイト単位で受信データを順次加算して1バイトのサム値を算出し、算出結果をASCIIコードに変換することで、2バイトのサム値を生成し、生成したサム値と、受信バッファに保存されているサム値(図43AのSAM(ASCII)2Byte)とを照合することで、受信したデータが整合しているか否かを判定する。なお、整合性判定処理の具体例として、加算によりサム値を算出する例を説明したが、これに限らず、例えば、減算又は排他的論理和によりサム値を算出してもよい。また、サム値を算出することに代えて、受信バッファに保存されているサム値をASCIIコードからバイナリコードに変換することで、サム値の判定を行ってもよい。   On the other hand, when it is determined in step S471 that the reception completion flag is set to ON (when the determination in step S471 is YES), the control LSI 300 refers to the reception buffer of the RAM 304, and receives the received sum value and the received data. Then, a consistency determination process is performed to determine whether or not is consistent (step S472). More specifically, in the consistency determination processing, the reception data (see FIG. 43A) stored in the reception buffer of the RAM 304 is sequentially added to the reception data in 1-byte units up to “ETX” excluding “STX” to obtain 1 byte. A byte sum value is calculated, and the calculation result is converted to an ASCII code to generate a 2-byte sum value. The generated sum value and the sum value stored in the reception buffer (SAM (ASCII 2)) to determine whether the received data is consistent. Note that, as a specific example of the consistency determination processing, an example in which a sum value is calculated by addition has been described. However, the present invention is not limited to this. Further, instead of calculating the sum value, the sum value may be determined by converting the sum value stored in the reception buffer from an ASCII code to a binary code.

次いで、制御LSI300は、ステップS472の整合性判定処理の結果、受信したサム値と受信したデータとが整合していると判定したか、すなわち、整合性判定処理の結果がOKであるか否かを判別する(ステップS473)。ステップS473において、整合性判定処理の結果がOKでないと判別したとき(ステップS473がNO判定の場合)、制御LSI300は、受信処理を終了し、処理をドア監視ユニットメイン処理(図48参照)のステップS405に戻す。   Next, as a result of the consistency determination processing in step S472, the control LSI 300 determines that the received sum value matches the received data, that is, determines whether the result of the consistency determination processing is OK. Is determined (step S473). If it is determined in step S473 that the result of the consistency determination process is not OK (if the determination in step S473 is NO), the control LSI 300 ends the reception process and proceeds to the door monitoring unit main process (see FIG. 48). It returns to step S405.

一方、ステップS473において、整合性判定処理の結果がOKであると判別したとき(ステップS473がYES判定の場合)、制御LSI300は、受信コマンドは特権コマンドかであるか否かを判別する(ステップS474)。具体的には、制御LSI300は、受信バッファを参照し、受信したデータに特権コマンドのID(例えば、SI,ST,SA,SB,SC,SW等)が含まれている場合は、受信コマンドは特権コマンドであると判別し、含まれていない場合は、特権コマンドでないと判別する。   On the other hand, if it is determined in step S473 that the result of the consistency determination processing is OK (if step S473 is YES), control LSI 300 determines whether the received command is a privileged command (step S473). S474). Specifically, the control LSI 300 refers to the reception buffer, and if the received data includes the ID of the privileged command (for example, SI, ST, SA, SB, SC, SW, etc.), the received command is It is determined that the command is a privileged command. If not included, it is determined that the command is not a privileged command.

ステップS474において、受信コマンドは特権コマンドでないと判別したとき(ステップS474がNO判定の場合)、制御LSI300は、処理を後述のステップS477に以降する。一方、ステップS474において、受信コマンドは特権コマンドであると判別したとき(ステップS474がYES判定の場合)、制御LSI300は、RAM304のログインフラグ格納領域に記憶されているログインフラグがONに設定されているか否かを判別する(ステップS475)。   If it is determined in step S474 that the received command is not a privileged command (NO in step S474), control LSI 300 shifts the processing to step S477 described later. On the other hand, if it is determined in step S474 that the received command is a privileged command (YES in step S474), control LSI 300 sets the login flag stored in the login flag storage area of RAM 304 to ON. It is determined whether or not there is (step S475).

ステップS475において、ログインフラグがONに設定されていないと判別したとき(ステップS475がNO判定の場合)、制御LSI300は、受信処理を終了し、処理をドア監視ユニットメイン処理(図48参照)のステップS405に戻す。   If it is determined in step S475 that the log-in flag is not set to ON (NO in step S475), the control LSI 300 ends the reception processing and proceeds to the door monitoring unit main processing (see FIG. 48). It returns to step S405.

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

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

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

[特権コマンド受信時処理]
次に、受信処理(図53参照)のステップS476における特権コマンド受信時処理について、図54を参照して説明する。図54は、本実施形態における特権コマンド受信時処理の例を示すフローチャートである。
[Process when receiving privileged command]
Next, the process at the time of receiving the privileged command in step S476 of the reception process (see FIG. 53) will be described with reference to FIG. FIG. 54 is a flowchart illustrating an example of processing at the time of receiving a privileged command in the present embodiment.

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

ステップS481において、受信した特権コマンドが初期化コマンドであると判別したとき(ステップS481がYES判定の場合)、制御LSI300は、初期化処理を行う(ステップS482)。その後、制御LSI300は、特権コマンド受信時処理を終了する。   If it is determined in step S481 that the received privileged command is an initialization command (if step S481 is YES), the control LSI 300 performs an initialization process (step S482). Thereafter, the control LSI 300 ends the privileged command receiving process.

以降、同様に、時計セットコマンド、監視間隔時間設定コマンド、記録開始時間設定コマンド、記録モード設定コマンド、秘密鍵設定コマンドのそれぞれを受信した場合に、対応する処理が行われるように制御する(ステップS483〜ステップS492)。   Thereafter, similarly, when each of the clock set command, the monitoring interval time setting command, the recording start time setting command, the recording mode setting command, and the secret key setting command is received, the corresponding control is performed (step S483 to step S492).

[一般コマンド受信時処理]
次に、受信処理(図53参照)のステップS478における一般コマンド受信時処理について、図55を参照して説明する。図55は、本実施形態における一般コマンド受信時処理の例を示すフローチャートである。
[Process when receiving general command]
Next, the general command receiving process in step S478 of the receiving process (see FIG. 53) will be described with reference to FIG. FIG. 55 is a flowchart illustrating an example of a process at the time of receiving a general command according to the present embodiment.

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

ステップS501において、受信した一般コマンドがシリアルIDコマンドであると判別したとき(ステップS501がYES判定の場合)、制御LSI300は、シリアルIDコマンド受信時処理を行う(ステップS502)。この処理で、制御LSI300は、EEPROM305のシリアルID格納領域に記憶されているシリアルIDを取得する。その後、制御LSI300は、一般コマンド受信時処理を終了する。   If it is determined in step S501 that the received general command is a serial ID command (if step S501 is YES), the control LSI 300 performs a serial ID command receiving process (step S502). In this process, the control LSI 300 acquires the serial ID stored in the serial ID storage area of the EEPROM 305. Thereafter, the control LSI 300 ends the processing at the time of receiving the general command.

以降、同様に、バージョン要求コマンド、乱数コマンド、ログインコマンド、ログアウトコマンド、時計読出コマンド、最新番号コマンド、開閉履歴情報読出コマンド、開閉履歴情報数コマンド、ステータス読出コマンドのそれぞれを受信した場合に、対応する処理が行われるように制御する(ステップS503〜ステップS520)。   Thereafter, similarly, when 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, and a status read command are received, (Steps S503 to S520).

また、その他の一般コマンドについても同様に、受信した特権コマンドが何かを判定し、判定した特権コマンドに応じた処理を行うよう制御する。   Similarly, for other general commands, control is performed so as to determine what the received privileged command is, and to perform processing according to the determined privileged command.

[送信処理]
次に、ドア監視ユニットメイン処理(図48参照)のステップS405における送信処理について、図56を参照して説明する。図56は本実施形態における送信処理の例を示すフローチャートである。
[Sending process]
Next, the transmission processing in step S405 of the door monitoring unit main processing (see FIG. 48) will be described with reference to FIG. FIG. 56 is a flowchart illustrating an example of the transmission process according to the present embodiment.

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

一方、ステップS541において、受信完了フラグがONに設定されていると判別したとき(ステップS541がYES判定の場合)。制御LSI300は、受信完了フラグをOFFに設定する(ステップS542)。   On the other hand, when it is determined in step S541 that the reception completion flag is set to ON (when step S541 is determined to be YES). The control LSI 300 sets the reception completion flag to OFF (step S542).

次いで、制御LSI300は、受信コマンドは特権コマンドかであるか否かを判別する(ステップS543)。具体的には、制御LSI300は、受信バッファを参照し、受信したデータに特権コマンドのID(例えば、SI,ST,SA,SB,SC,SW等)が含まれている場合は、受信コマンドは特権コマンドであると判別し、含まれていない場合は、特権コマンドでないと判別する。   Next, the control LSI 300 determines whether or not the received command is a privileged command (Step S543). Specifically, the control LSI 300 refers to the reception buffer, and if the received data includes the ID of the privileged command (for example, SI, ST, SA, SB, SC, SW, etc.), the received command is It is determined that the command is a privileged command. If not included, it is determined that the command is not a privileged command.

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

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

[特権アンサ送信処理]
次に、送信処理(図56参照)のステップS544における特権アンサ送信処理について、図57を参照して説明する。図57は本実施形態における特権アンサ送信処理の例を示すフローチャートである。
[Privilege answer transmission processing]
Next, the privilege answer transmission process in step S544 of the transmission process (see FIG. 56) will be described with reference to FIG. FIG. 57 is a flowchart illustrating an example of a privilege answer transmission process according to the present embodiment.

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

ステップS551において、受信したコマンドが秘密鍵設定コマンドでないと判別したとき(ステップS551がNO判定の場合)、制御LSI300は、後述のステップS555の処理を行う。一方、ステップS551において、受信したコマンドが秘密鍵設定コマンドであると判別したとき(ステップS551がYES判定の場合)、制御LSI300は、受信バッファに記憶されている秘密鍵、すなわち受信した秘密鍵設定コマンドに含まれる秘密鍵と、EEPROM305の秘密鍵格納領域に記憶されている秘密鍵とが一致するか否かを判別する(ステップS552)。   If it is determined in step S551 that the received command is not the secret key setting command (if step S551 is NO), the control LSI 300 performs the process of step S555 described later. On the other hand, if it is determined in step S551 that the received command is a secret key setting command (if step S551 is YES), the control LSI 300 returns the secret key stored in the reception buffer, that is, the received secret key setting command. It is determined whether the secret key included in the command matches the secret key stored in the secret key storage area of the EEPROM 305 (step S552).

ステップS552の処理において両者が一致すると判別したとき(ステップS552がYES判定の場合)、設定結果OKの旨のアンサをホスト機器に送信する送信処理を行う(ステップS553)。そして、制御LSI300は、特権アンサ送信処理を終了する。   If it is determined in step S552 that they match (step S552 is YES), a transmission process of transmitting an answer to the effect that the setting result is OK to the host device is performed (step S553). Then, the control LSI 300 ends the privilege answer transmission process.

ステップS552の処理において両者が一致しないと判別したとき(ステップS552がNO判定の場合)、設定結果NGの旨のアンサをホスト機器に送信する送信処理を行う(ステップS554)。そして、制御LSI300は、特権アンサ送信処理を終了する。   If it is determined in step S552 that they do not match (step S552 is NO), a transmission process of transmitting an answer to the effect that the setting result is NG to the host device is performed (step S554). Then, the control LSI 300 ends the privilege answer transmission process.

ここで、ステップS551の説明に戻って、受信したコマンドが秘密鍵設定コマンドでないと判別したとき(ステップS551がNO判定の場合)、制御LSI300は、RAM304の受信バッファを参照し、受信した特権コマンドを特定する(ステップS555)。   Here, returning to the description of step S551, when it is determined that the received command is not the secret key setting command (if step S551 is NO), the control LSI 300 refers to the reception buffer of the RAM 304, and Is specified (step S555).

次いで、制御LSI300は、ステップS555で特定したコマンドに対応するアンサをホスト機器に送信する送信処理(ステップS556)を行う。そして、制御LSI300は、特権アンサ送信処理を終了する。なお、ステップS553,ステップS554においては、受信した特権コマンドのIDに対応するアンサ用のIDに「設定結果OK」か「設定結果NG」の情報が含まれるアンサがホスト機器に送信される。しかし、ステップS556では、アンサ用のIDに対応させる情報がないため、受信した特権コマンドのIDに対応するアンサ用のIDのみがアンサとしてホスト機器に送信される。   Next, the control LSI 300 performs a transmission process (step S556) of transmitting an answer corresponding to the command specified in step S555 to the host device. Then, the control LSI 300 ends the privilege answer transmission process. In steps S553 and S554, an answer whose ID for the answer corresponding to the ID of the received privileged command includes “setting result OK” or “setting result NG” information is transmitted to the host device. However, in step S556, since there is no information corresponding to the answer ID, only the answer ID corresponding to the received privileged command ID is transmitted to the host device as the answer.

[一般アンサ送信処理]
次に、送信処理(図56参照)のステップS545における一般アンサ送信処理について、図58を参照して説明する。図58は本実施形態における一般アンサ送信処理の例を示すフローチャートである。
[General answer transmission processing]
Next, the general answer transmission processing in step S545 of the transmission processing (see FIG. 56) will be described with reference to FIG. FIG. 58 is a flowchart illustrating an example of general answer transmission processing according to the present embodiment.

一般コマンド受信時処理において、制御LSI300は、まず、受信した一般コマンドがシリアルIDコマンドであるか否かを判別する(ステップS561)。ステップS561において、受信した一般コマンドがシリアルIDコマンドであると判別したとき(ステップS561がYES判定の場合)、制御LSI300は、シリアルIDコマンド受信時処理(図55のステップS502)で取得したシリアルIDをホスト機器に送信するアンサ送信処理(シリアルID)を行う(ステップS562)。その後、制御LSI300は、一般アンサ送信処理を終了する。   In the processing at the time of receiving a general command, the control LSI 300 first determines whether or not the received general command is a serial ID command (step S561). If it is determined in step S561 that the received general command is a serial ID command (YES in step S561), the control LSI 300 returns the serial ID command acquired in the serial ID command reception process (step S502 in FIG. 55). Is transmitted to the host device (step S562). After that, the control LSI 300 ends the general answer transmission process.

以降、同様に、バージョン要求コマンド、乱数コマンド、ログインコマンド、ログアウトコマンド、時計読出コマンド、最新番号コマンド、開閉履歴情報読出コマンド、開閉履歴情報数コマンド、ステータス読出コマンドのそれぞれを受信した場合に、対応する処理が行われるように制御する(ステップS563〜ステップS580)。   Thereafter, similarly, when 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, and a status read command are received, (Steps S563 to S580).

<副制御回路におけるドア開閉監視処理>
次に、副制御回路101と24hドア監視ユニット63が行う処理の例として、副制御回路101(副制御基板72)が、起動時からフロントドア2bの開閉状態を監視しているときの処理を、図59を参照して説明する。図59は、副制御回路101が、24hドア監視ユニット63と副制御回路101との間でシーケンスに基づきコマンドを送受信して、フロントドア2bの開閉状態を監視する処理の例を示す図である。
<Door opening / closing monitoring process in sub-control circuit>
Next, as an example of a process performed by the sub control circuit 101 and the 24h door monitoring unit 63, a process performed when the sub control circuit 101 (sub control board 72) monitors the open / closed state of the front door 2b from the time of startup is described. This will be described with reference to FIG. FIG. 59 is a diagram illustrating an example of processing in which the sub-control circuit 101 transmits and receives commands between the 24h door monitoring unit 63 and the sub-control circuit 101 based on a sequence, and monitors the open / close state of the front door 2b. .

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

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

副制御回路101は、プログラムバージョンを受信すると、受信したプログラムバージョンと、副制御回路101が有する不揮発記憶手段であるサブSRAM103bに記憶されたプログラムバージョンとを比較する。そして、一致しない場合は、第2警告表示処理を行う。副制御回路101は、第2警告表示処理において、副制御回路101が有する表示装置にログイン不許可の旨を示す画面を表示させる。例えば、液晶表示装置11において、画面の中央に「プログラムバージョンが異なります」というメッセージが配置された警告画面(不図示)を表示する。   Upon receiving the program version, the sub-control circuit 101 compares the received program version with the program version stored in the sub-SRAM 103b, which is a nonvolatile storage unit of the sub-control circuit 101. If they do not match, a second warning display process is performed. In the second warning display process, the sub control circuit 101 causes the display device of the sub control circuit 101 to display a screen indicating that login is not permitted. For example, 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.

また、副制御回路101は、プログラムバージョンを受信すると、シリアルIDコマンド(CR)を24hドア監視ユニット63に送信する(C23)。シリアルIDコマンドを受信した24hドア監視ユニット63は、EEPROM305に記憶されているシリアルIDを副制御回路101に送信(返信)する(C24:シリアルIDアンサ)。   Further, upon receiving the program version, the sub control circuit 101 transmits a serial ID command (CR) to the 24h door monitoring unit 63 (C23). The 24h door monitoring unit 63 that has received the serial ID command transmits (replies) the serial ID stored in the EEPROM 305 to the sub control circuit 101 (C24: serial ID answer).

副制御回路101は、シリアルIDを受信すると、受信したシリアルIDと、副制御回路101のサブSRAM103bに記憶されたシリアルIDとを比較する。そして、一致しない場合は、第3警告表示処理を行う。副制御回路101は、第3警告表示処理において、24h監視ドア監視ユニットが交換された旨を示す画面を表示させる。例えば、液晶表示装置11において、画面の中央に「監視ユニットが交換されました。」というメッセージが配置された警告画面を表示する(不図示)。また、この警告画面の下部には、副制御回路101の記憶装置に記憶されているシリアルIDが「OLD UNIT SERIAL ID」として表示され、受信したシリアルIDが「NEW UNIT SERIAL ID」として表示される。   Upon receiving the serial ID, the sub control circuit 101 compares the received serial ID with the serial ID stored in the sub SRAM 103b of the sub control circuit 101. If they do not match, a third warning display process is performed. The sub control circuit 101 displays a screen indicating that the 24h monitoring door monitoring unit has been replaced in the third warning display process. For example, on the liquid crystal display device 11, a warning screen in which a message “Monitoring unit has been replaced” is displayed at the center of the screen (not shown). At the lower part of the warning screen, the serial ID stored in the storage device of the sub control circuit 101 is displayed as "OLD UNIT SERIAL ID", and the received serial ID is displayed as "NEW UNIT SERIAL ID". .

また、副制御回路101は、シリアルIDを受信すると、ステータス読出コマンド(CS)を24hドア監視ユニット63に送信する(C25)。ステータス読出コマンドを受信した24hドア監視ユニット63は、RAM304の第1検知結果格納領域に記憶されている開閉履歴情報を副制御回路101に送信(返信)する(C26:ステータスアンサ)。   Further, upon receiving the serial ID, the sub control circuit 101 transmits a status read command (CS) to the 24h door monitoring unit 63 (C25). The 24h door monitoring unit 63 that has received the status read command transmits (replies) the opening / closing history information stored in the first detection result storage area of the RAM 304 to the sub control circuit 101 (C26: status answer).

起動シーケンスに係るコマンドの送信が終了すると、副制御回路101は、シーケンステーブルを参照し、全履歴取得シーケンスを実行し、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)、開閉履歴情報読出コマンド(CB)の順で、コマンドを24hドア監視ユニット63に送信する。   When the transmission of the command related to the start-up sequence ends, the sub-control circuit 101 refers to the sequence table, executes the entire history acquisition sequence, and executes the opening / closing history information count command (CC), the latest number command (CN), The command is transmitted to the 24h door monitoring unit 63 in the order of the read command (CB).

まず、副制御回路101は、開閉履歴情報数コマンド(CC)を送信する(C27)。開閉履歴情報数コマンドを受信した24hドア監視ユニット63は、履歴カウンタの値を副制御回路101に送信する(C28:開閉履歴情報数アンサ)。   First, the sub-control circuit 101 transmits an opening / closing history information count command (CC) (C27). The 24h door monitoring unit 63 that has received the opening / closing history information number command transmits the value of the history counter to the sub control circuit 101 (C28: opening / closing history information number answer).

次いで、副制御回路101は、最新番号コマンド(CN)を送信する(C29)。最新番号コマンドを受信した24hドア監視ユニット63は、最新番号を副制御回路101に送信する(C28:最新番号アンサ)。   Next, the sub control circuit 101 transmits the latest number command (CN) (C29). The 24h door monitoring unit 63 that has received the latest number command transmits the latest number to the sub control circuit 101 (C28: latest number answer).

副制御回路101は、受信した最新番号と履歴カウンタの値を、副制御回路101のサブSRAM103bに記憶された最新番号と履歴カウンタの値と比較する。比較の結果、差異がある場合は、最新番号と履歴カウンタの値に基いて、開閉履歴情報を取得する先の開閉履歴情報格納領域の番号を特定する。そして、副制御回路101は、特定した開閉履歴情報格納領域の番号が付された開閉履歴情報格納領域を指定した開閉履歴情報読出コマンド(CB)を送信する(C31)。   The sub control circuit 101 compares the received latest number and the value of the history counter with the latest number stored in the sub SRAM 103b of the sub control circuit 101 and the value of the history counter. As a result of the comparison, if there is a difference, the number of the opening / closing history information storage area from which the opening / closing history information is acquired is specified based on the latest number and the value of the history counter. Then, the sub-control circuit 101 transmits an open / close history information read command (CB) specifying the open / close history information storage area to which the number of the specified open / close history information storage area is assigned (C31).

開閉履歴情報読出コマンドを受信した24hドア監視ユニット63は、読出コマンドに含まれる番号に対応する開閉履歴格納領域に記憶されている開閉履歴情報を副制御回路101に送信(返信)する(C32:開閉履歴情報読出アンサ)。   The 24h door monitoring unit 63 that has received the opening / closing history information read command transmits (replies) the opening / closing history information stored in the opening / closing history storage area corresponding to the number included in the read command to the sub-control circuit 101 (C32: Opening / closing history information reading answer).

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

全履歴取得シーケンスに係るコマンドの送信が終了すると、副制御回路101は、シーケンステーブルを参照し、第1状態検知シーケンスを実行し、ステータス読出コマンド(CS)、開閉履歴情報数コマンド(CC)、最新番号コマンド(CN)の順で、コマンドを24hドア監視ユニット63に送信する。なお、以降、第1状態検知シーケンスは、所定の間隔、本実施形態では500msec毎に実行される。   When the transmission of the command related to the entire history acquisition sequence ends, the sub-control circuit 101 executes the first state detection sequence with reference to the sequence table, and reads the status read command (CS), the open / close history information number command (CC), The command is transmitted to the door monitoring unit 63 in the order of the latest number command (CN). Hereinafter, the first state detection sequence is executed at predetermined intervals, in this embodiment, every 500 msec.

まず、副制御回路101は、ステータス読出コマンド(CS)を、24hドア監視ユニット63に送信する(C33)。ステータス読出コマンドを受信した24hドア監視ユニット63は、RAM304の第1検知結果格納領域に記憶されている開閉履歴情報を副制御回路101に送信(返信)する(C34:ステータスアンサ)。   First, the sub control circuit 101 transmits a status read command (CS) to the 24h door monitoring unit 63 (C33). The 24h door monitoring unit 63 that has received the status read command transmits (replies) the opening / closing history information stored in the first detection result storage area of the RAM 304 to the sub control circuit 101 (C34: status answer).

受信した開閉履歴情報が、フロントドア2bの開放状態を示している場合、副制御回路101は、液晶表示装置11に、フロントドア2bが開放状態である旨を示す画面(不図示)を表示させる(ドアオープン表示)。   If the received opening / closing history information indicates that the front door 2b is open, the sub-control circuit 101 causes the liquid crystal display device 11 to display a screen (not shown) indicating that the front door 2b is open. (Door open display).

次いで、副制御回路101は、開閉履歴情報数コマンド(CC)を、24hドア監視ユニット63に送信する(C35)。開閉履歴情報数コマンドを受信した24hドア監視ユニット63は、EEPROM305の履歴カウンタ格納領域を参照し、履歴カウンタの値をホスト機器に送信(返信)する(C35:開閉履歴情報数アンサ)。履歴カウンタの値を受信した副制御回路101は、副制御回路101のサブSRAM103bに既に記憶されている履歴カウンタの値と、受信した履歴カウンタの値とを比較し、これらが一致しない場合、受信した履歴カウンタの値をサブSRAM103bに記憶させる(上書きする)。   Next, the sub-control circuit 101 transmits the opening / closing history information number command (CC) to the 24h door monitoring unit 63 (C35). The 24h door monitoring unit 63 that has received the opening / closing history information number command refers to the history counter storage area of the EEPROM 305 and transmits (replies) the value of the history counter to the host device (C35: opening / closing history information number answer). The sub-control circuit 101 that has received the history counter value compares the history counter value already stored in the sub-SRAM 103b of the sub-control circuit 101 with the received history counter value. The value of the history counter thus set is stored (overwritten) in the sub SRAM 103b.

次いで、副制御回路101は、最新番号コマンド(CN)を、24hドア監視ユニット63に送信する(C37)。最新番号コマンドを受信した24hドア監視ユニット63は、EEPROM305の最新番号格納領域を参照し、最新番号を副制御回路101に送信(返信)する(C38:最新番号アンサ)。最新番号を受信した副制御回路101は、副制御回路101のサブSRAM103bに既に記憶されている最新番号と、受信した最新番号とを比較し、これらが一致しない場合、受信した最新番号をサブSRAM103bに記憶させる(上書きする)。   Next, the sub control circuit 101 transmits the latest number command (CN) to the 24h door monitoring unit 63 (C37). The 24h door monitoring unit 63 that has received the latest number command refers to the latest number storage area of the EEPROM 305 and transmits (replies) the latest number to the sub-control circuit 101 (C38: latest number answer). The sub control circuit 101 that has received the latest number compares the latest number already stored in the sub SRAM 103b of the sub control circuit 101 with the received latest number. (Overwrite).

また、副制御回路101は、受信した最新番号と、サブSRAM103bに記憶された最新番号が一致しない場合、履歴取得シーケンスを実行する。   When the received latest number does not match the latest number stored in the sub SRAM 103b, the sub control circuit 101 executes a history acquisition sequence.

副制御回路101は、履歴取得シーケンスを実行し、開閉履歴情報読出コマンド(CB)を24hドア監視ユニット63に送信する。なお、この開閉履歴情報読出コマンドには、副制御回路101のサブSRAM103bに記憶されている最新番号が含まれる。   The sub-control circuit 101 executes a history acquisition sequence and transmits an opening / closing history information read command (CB) to the 24h door monitoring unit 63. Note that this open / close history information read command includes the latest number stored in the sub SRAM 103b of the sub control circuit 101.

開閉履歴情報読出コマンドを受信した24hドア監視ユニット63は、開閉履歴情報読出コマンドに含まれる番号に対応する開閉履歴格納領域に記憶されている開閉履歴情報を副制御回路101に送信(返信)する(C40:開閉履歴情報読出アンサ)。そして、開閉履歴情報を受信した副制御回路101は、受信した開閉履歴をサブSRAM103bに記憶させる。   The 24h door monitoring unit 63 that has received the opening / closing history information read command transmits (replies) the opening / closing history information stored in the opening / closing history storage area corresponding to the number included in the opening / closing history information reading command to the sub-control circuit 101. (C40: Opening / closing history information reading answer). Then, the sub-control circuit 101 that has received the opening / closing history information stores the received opening / closing history in the sub SRAM 103b.

以上説明したように、副制御回路101は、起動時からフロントドア2bの開閉状態を監視する処理において、起動シーケンス、全履歴取得シーケンス、第1状態検知シーケンス、履歴取得シーケンスを順に実行するが、各シーケンスにおいては、副制御回路101がコマンドを24hドア監視ユニット63に送信し、24hドア監視ユニット63は、受信したコマンドに応答してアンサを副制御回路101に返信するという構成になっている。すなわち、この処理では、副制御回路101がマスター(機)であり、24hドア監視ユニット63がスレーブ(機)となっている。   As described above, in the process of monitoring the open / closed state of the front door 2b from the time of activation, the sub-control circuit 101 sequentially executes the activation sequence, the entire history acquisition sequence, the first state detection sequence, and the history acquisition sequence. In each sequence, the sub-control circuit 101 transmits a command to the 24h door monitoring unit 63, and the 24h door monitoring unit 63 returns an answer to the sub-control circuit 101 in response to the received command. . That is, in this process, the sub control circuit 101 is the master (machine), and the 24h door monitoring unit 63 is the slave (machine).

<ドア監視ユニット設定読出ツールの処理>
次に、図60のフローチャートを参照して、外部コンピュータ(コンピュータ400)において実行されるドア監視ユニット設定読出ツールの処理の例を概略説明する。
<Process of door monitoring unit setting reading tool>
Next, an example of processing of the door monitoring unit setting reading tool executed in the external computer (computer 400) will be schematically described with reference to the flowchart in FIG.

最初に、ステップS601において、設定読出ボタンが押下されたか否かを判定する。例えば、この設定読出ボタンは、図37に示すドア監視ユニット設定読出ツールの設定表示画面651に表示された設定読出ボタン652である。設定読出ボタンが押下された場合(ステップS601のYES)、ステップS602において、ドア監視ユニット設定読出ツールが、設定読出指示に対応する設定読出シーケンスのすべてのコマンドを、24hドア監視ユニット63に送信したか否かを判定する。   First, in step S601, it is determined whether the setting read button has been pressed. For example, the setting read button is the setting read button 652 displayed on the setting display screen 651 of the door monitoring unit setting read tool shown in FIG. When the setting read button is pressed (YES in step S601), in step S602, the door monitoring unit setting reading tool transmits all the commands of the setting reading sequence corresponding to the setting reading instruction to the 24h door monitoring unit 63. It is determined whether or not.

設定読出シーケンスのすべてのコマンドを送信していない場合(ステップS602のNO)、ステップS603において、設定読出シーケンスに基づいて、次のコマンドを24hドア監視ユニット63に送信する。次に、ステップS604において、送信したコマンドに対応するアンサを受信し、受信した情報を所定の記憶手段に記憶する。ステップS604の後、ステップS602に戻り、送信する他のコマンドがあるか否かを判定する。なお、ここでは、説明を簡単にするために、コマンドを送信する処理と、送信したコマンドのアンサを受信する処理をまとめてステップS603、ステップS604として表している。   If not all the commands of the setting reading sequence have been transmitted (NO in step S602), the next command is transmitted to the 24h door monitoring unit 63 based on the setting reading sequence in step S603. Next, in step S604, an answer corresponding to the transmitted command is received, and the received information is stored in a predetermined storage unit. After step S604, the process returns to step S602 to determine whether there is another command to be transmitted. Here, for simplicity, the process of transmitting a command and the process of receiving an answer to the transmitted command are collectively represented as steps S603 and S604.

設定読出シーケンスのすべてのコマンドを送信している場合(ステップS602のYES)、ステップS605において、送信したコマンドに対応するアンサによって受信した設定値等に基づいて、図37に示すドア監視ユニット設定読出ツールの設定表示画面651を編集する。例えば、バージョン情報、自己診断チェック結果、シリアルID、現在時刻、監視ユニットステータス、最終通信履歴、通常モード設定、ドア設定、開閉履歴データ数、最新開閉履歴データ番号等に関する情報を、対応する表示領域に表示するよう編集処理を行う。   If all the commands in the setting reading sequence have been transmitted (YES in step S602), in step S605, the door monitoring unit setting reading shown in FIG. 37 is read based on the setting values and the like received by the answer corresponding to the transmitted command. The tool setting display screen 651 is edited. For example, information on version information, self-diagnosis check result, serial ID, current time, monitoring unit status, last communication history, normal mode setting, door setting, opening / closing history data number, latest opening / closing history data number, etc. is displayed in a corresponding display area. Perform editing processing to display in.

次に、ステップS606において、ドア監視ユニット設定読出ツールは、コンピュータ400のディスプレイ409に、編集された設定表示画面651を表示する。この状態は、例えば、図37に示す設定表示画面651に示されている。ステップS606の後、ステップS601に戻り、設定読出ボタンが押下されたか否かを判定する。   Next, in step S606, the door monitoring unit setting reading tool displays the edited setting display screen 651 on the display 409 of the computer 400. This state is shown, for example, on the setting display screen 651 shown in FIG. After step S606, the process returns to step S601 to determine whether the setting read button has been pressed.

設定読出ボタンが押下されていない場合(ステップS601のNO)、ステップS607において、妥当性検証ボタンが押下されたか否かを判定する。例えば、この妥当性検証ボタンは、図37に示すドア監視ユニット設定読出ツールの設定表示画面651に表示された設定値妥当性検証ボタン654である。妥当性検証ボタンが押下された場合(ステップS607のYES)、ステップS608において、ドア監視ユニット設定読出ツールが、所定の判定基準により、設定表示画面651に表示された設定値や他の情報の妥当性を判定する。   If the setting read button has not been pressed (NO in step S601), it is determined in step S607 whether the validity verification button has been pressed. For example, the validity verification button is the set value validity verification button 654 displayed on the setting display screen 651 of the door monitoring unit setting reading tool shown in FIG. If the validity verification button has been pressed (YES in step S607), in step S608, the door monitoring unit setting reading tool checks the validity of the setting values and other information displayed on the setting display screen 651 according to a predetermined criterion. Determine gender.

そして、ステップS609において、当該妥当性の判定結果に基づいて、設定表示画面651を編集する。例えば、バージョン情報や自己診断チェック結果等に関する情報を表示した表示領域の背景を、その情報が妥当であると判定された場合には緑色に、妥当でないと判定された場合には赤色に設定する。   Then, in step S609, the setting display screen 651 is edited based on the determination result of the validity. For example, the background of a display area that displays information on version information and self-diagnosis check results is set to green when the information is determined to be valid, and to red when the information is determined to be invalid. .

次に、ステップS610において、ドア監視ユニット設定読出ツールは、コンピュータ400のディスプレイ409に、編集された設定表示画面651を表示する。この状態は、例えば、図38に示す設定表示画面651に示されている。妥当性検証ボタンが押下されていない場合(ステップS607のNO)、又はステップS610の後、ステップS601に戻り、設定読出ボタンが押下されたか否かを判定する。   Next, in step S610, the door monitoring unit setting reading tool displays the edited setting display screen 651 on the display 409 of the computer 400. This state is shown, for example, on the setting display screen 651 shown in FIG. If the validity verification button has not been pressed (NO in step S607), or after step S610, the process returns to step S601 to determine whether the setting read button has been pressed.

図38に示す設定表示画面651から分かるように、自己診断チェック結果のように、24hドア監視ユニット63から読み出した値が診断結果を表す情報(例えば、「正常」、「異常」のどちらか)である場合、ドア監視ユニット設定読出ツールは、「正常」を妥当とし、他方の「異常」を妥当でないと判定する。一方、ドア設定の監視間隔時間や記録開始時間等については、所定の閾値を設定し、当該閾値より上か下かで妥当性を判定する。   As can be seen from the setting display screen 651 shown in FIG. 38, like the self-diagnosis check result, the value read from the 24h door monitoring unit 63 indicates the diagnosis result (for example, either “normal” or “abnormal”). In this case, the door monitoring unit setting reading tool determines that “normal” is valid and the other “abnormal” is not valid. On the other hand, a predetermined threshold value is set for the monitoring interval time of the door setting, the recording start time, and the like, and the validity is determined based on the threshold value.

このように、本実施形態のドア監視ユニット設定読出ツールの設定表示画面651では、妥当性の検証結果に応じて、設定値等の表示領域における背景色が変化するので、設定表示画面651のように、多数の項目が一度に表示される場合であっても、妥当でない項目を容易にかつ確実に発見することができる。   As described above, in the setting display screen 651 of the door monitoring unit setting reading tool of the present embodiment, the background color in the display area of the setting values and the like changes according to the result of the validity verification. In addition, even when many items are displayed at once, invalid items can be easily and reliably found.

また、設定表示画面651に示された、ドア開閉の履歴をリスト表示する開閉履歴データは、履歴データのうちの1つ、又は所定数異常のエラーがあった場合に、ドア開閉履歴表示部658の代表領域であるドア開閉履歴タイトル表示部657を、妥当性の判定に応じて緑色の背景色や赤色の背景色で示すようにすることができる。このように、タイトル部分の表示態様を妥当性に応じて変化させることにより、表示されていない履歴データ(下方にスクロールしないと表示されない履歴データ)にエラーがある場合であっても、そのことを確実に把握することができる。また、このとき、同時に、エラーのある履歴データを表す表示行や表示項目についても、個別に背景色を変化させることができる。   The opening / closing history data for displaying a list of door opening / closing histories displayed on the setting display screen 651 is a door opening / closing history display section 658 when one of the history data or a predetermined number of errors has occurred. The door opening / closing history title display section 657, which is a representative area of, can be displayed with a green background color or a red background color according to the determination of validity. As described above, by changing the display mode of the title portion in accordance with the validity, even if there is an error in the history data that is not displayed (the history data that is not displayed unless scrolled down), that fact is removed. It can be surely grasped. At this time, the background color of the display line or the display item indicating the history data having an error can be individually changed at the same time.

また、本実施形態のドア監視ユニット設定読出ツールでは、設定表示画面651に表示された動作記録や設定値等の情報を、例えば、設定表示画面651の左上の「ファイル(F)」を選択すると、テキストファイルでコンピュータ400のハードディスク(外部記憶装置413)等に出力し、保存することができる。また、設定表示画面651に表示された動作記録や設定値等の情報に加え、これらの妥当性の検証結果とともに、例えば、テキストファイルでコンピュータ400のハードディスク(外部記憶装置413)等に出力することができる。このような情報の出力をユーザが指示できるように、設定表示画面651において、表示情報保存ボタンや、表示情報&検証結果保存ボタンなどを配置したり、操作メニューを用意したりすることができる。   Further, in the door monitoring unit setting reading tool of the present embodiment, the information such as the operation record and the setting value displayed on the setting display screen 651 is displayed by selecting, for example, “File (F)” at the upper left of the setting display screen 651. , Can be output as a text file to a hard disk (external storage device 413) of the computer 400 and stored. Further, in addition to the information such as the operation record and the set value displayed on the setting display screen 651, together with the verification result of the validity, the text file is output to, for example, a hard disk (external storage device 413) of the computer 400 or the like. Can be. On the setting display screen 651, a display information save button, a display information & verification result save button, and the like can be arranged, and an operation menu can be prepared so that the user can instruct the output of such information.

以上、説明してきたように、コンピュータ400から24hドア監視ユニット63に提供された暗号化キーは、24hドア監視ユニット63にログインするためのパスワードを生成するために用いられる。   As described above, the encryption key provided from the computer 400 to the 24h door monitoring unit 63 is used to generate a password for logging in to the 24h door monitoring unit 63.

上述した本実施形態の構成によって、24hドア監視ユニット63は、ケーブル320の接続先を切り替えるだけで、外部コンピュータ(コンピュータ400)と副制御回路101の両方に対して、同じプロトコルでデータ通信を行うことができる。従って、24hドア監視ユニット63の設定等を、接続されるハードウェアに応じて変更する、といった操作をする必要がなく、接続先のハードウェアを簡単に切り替えることができる。24hドア監視ユニット63は、接続先のハードウェアから受信するコマンドの種類によって処理を切り替えることができ、接続先であるコンピュータ400や副制御回路101も、それぞれ24hドア監視ユニット63からのアンサを受信可能となっている。   With the configuration of the present embodiment described above, the 24h door monitoring unit 63 performs data communication with both the external computer (computer 400) and the sub-control circuit 101 using the same protocol simply by switching the connection destination of the cable 320. be able to. Therefore, there is no need to perform an operation of changing the setting of the 24h door monitoring unit 63 according to the connected hardware, and the connection destination hardware can be easily switched. The 24h door monitoring unit 63 can switch processing depending on the type of command received from the connected hardware, and the connected computer 400 and the sub-control circuit 101 also receive the answer from the 24h door monitoring unit 63, respectively. It is possible.

また、上記のような構成によって、24hドア監視ユニット63は、外部コンピュータ(コンピュータ400)から、初期化処理として暗号化キーを受信するが、24hドア監視ユニット63とコンピュータ400との通信において、当該暗号化キーが所定の暗号鍵で暗号化されている場合は、より安全に暗号化キーの配布が可能となる。   Further, with the above-described configuration, the 24h door monitoring unit 63 receives the encryption key from the external computer (computer 400) as initialization processing, but in the communication between the 24h door monitoring unit 63 and the computer 400, When the encryption key is encrypted with a predetermined encryption key, the encryption key can be distributed more safely.

また、ドア監視ユニット暗号化キー作成ツールによって、暗号化キーを暗号化して格納する暗号化キーファイルが作成されるため、暗号化キーを簡単に作成できるとともに、作成した暗号化キーを安全に保管・管理することができる。   In addition, since the encryption key file that encrypts and stores the encryption key is created by the door monitoring unit encryption key creation tool, the encryption key can be easily created and the created encryption key can be securely stored.・ Can be managed.

なお、本実施形態では、24hドア監視ユニット63とコンピュータ400との間のコマンドは、所定の通信フォーマットによって送受信されるが、そのデータは暗号化されるが、コマンド種類を表すID(データ)については、暗号化キーによる暗号化が行われず、受信側では、コマンド種類を判断してからIDに続くデータを暗号鍵で復号化するようにできる。また、コマンド種類を表すIDを含めて暗号鍵による暗号化を行うこともでき、この場合は、受信側で、コマンド種類を表すデータを含めた復号化が行われる。   In the present embodiment, the command between the 24h door monitoring unit 63 and the computer 400 is transmitted and received in a predetermined communication format, and the data is encrypted. Does not perform encryption using the encryption key, and the receiving side can determine the command type and then decrypt the data following the ID with the encryption key. Further, encryption using an encryption key including an ID indicating a command type can be performed. In this case, decryption including data indicating a command type is performed on the receiving side.

なお、ここまで、本発明の一実施形態に係るパチスロ1、メダルセレクタ201、24hドア監視ユニット63、コンピュータ400等について、本発明を実施することができる具体例を示しながら説明してきたが、これらの具体例は本発明を説明するための一例に過ぎず、本発明の権利範囲はこれらの具体例に限定されることはない。これら以外の様々な方法や構成によって、本発明の技術的思想を実現することができる。   The pachislot 1, the medal selector 201, the 24h door monitoring unit 63, the computer 400, and the like according to the embodiment of the present invention have been described so far by showing specific examples in which the present invention can be implemented. Are merely examples for explaining the present invention, and the scope of the present invention is not limited to these specific examples. The technical idea of the present invention can be realized by various other methods and configurations.

また、上記の実施形態の説明では、遊技機としてパチスロを例にとって説明したが、これに限定されるものではなく、本発明の技術的思想は、パチスロ以外の他の遊技機にも適用可能であり、例えば、パチンコ機や封入式遊技機等に本発明を適用し、メダルセレクタ以外の遊技媒体識別装置と遊技機との間の暗号化を上記のように構成することができる。   In the above description of the embodiment, a pachislot machine has been described as an example of a gaming machine, but the present invention is not limited to this, and the technical idea of the present invention can be applied to other gaming machines other than pachislot machines. For example, the present invention can be applied to a pachinko machine, an enclosed game machine, or the like, and the encryption between the game medium identification device other than the medal selector and the game machine can be configured as described above.

なお、本発明の実施形態に係る遊技システム、遊技機、及び遊技媒体識別装置は、基本的に、以下の特徴及び作用効果を有することを付記として開示する。   It is to be noted that the gaming system, the gaming machine, and the gaming medium identification device according to the embodiment of the present invention basically disclose the following features and effects as additional notes.

[付記A]
[背景技術]
[Appendix A]
[Background Art]

従来より、複数の図柄がそれぞれの表面に設けられた複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルやコインなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a so-called pachi-slot including a plurality of reels provided with a plurality of symbols on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit is provided. Gaming machines are known. The start switch detects that a start lever has been operated by a player (hereinafter, also referred to as a “start operation”) after a game medium such as a medal or a coin has been inserted into the gaming machine, and detects the rotation of all reels. Outputs a signal requesting start. The stop switch detects that a stop button provided for each reel is pressed by a player (hereinafter, also referred to as a "stop operation") and outputs a signal requesting that the rotation of the corresponding reel be stopped. I do. The stepping motor transmits the driving force to a corresponding reel. The control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and the stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せ(表示役)が表示されると、その図柄の組合せに対応する特典が遊技者に付与される。なお、遊技者に付与される特典の例としては、遊技媒体(メダル等)の払い出し、遊技媒体を消費することなく再度、内部抽籤処理を行う再遊技(以下、「リプレイ」ともいう)の作動、遊技媒体の払い出し機会が増加するボーナスゲームの作動等を挙げることができる。   In such a gaming machine, when a start operation is detected, a lottery process using a random number (hereinafter, referred to as “internal lottery process”) is performed on a program, and the result of the lottery (hereinafter, “internal winning combination”) is performed. ) And the timing of the stop operation, the reel rotation is stopped. Then, when the rotation of all reels is stopped and a symbol combination (display combination) related to winning is displayed, a privilege corresponding to the symbol combination is given to the player. In addition, as an example of the privilege given to the player, the payout of the game medium (medal or the like) and the operation of the re-game (hereinafter, also referred to as “replay”) in which the internal lottery process is performed again without consuming the game medium. And the operation of a bonus game in which the chance of paying out game media increases.

また、当該遊技機では、内部当籤役等に基づいて、画像や音声を用いた演出が行われる。   Further, in the gaming machine, effects using images and sounds are performed based on the internal winning combination and the like.

このような遊技機においては、例えば、遊技を制御する主制御部と、演出を制御する副制御部との間で送受信されるデータを暗号化して、遊技機のセキュリティを向上させる技術が知られている。   In such a gaming machine, for example, there is known a technology for improving security of the gaming machine by encrypting data transmitted and received between a main control unit for controlling a game and a sub-control unit for controlling an effect. ing.

例えば、主制御部から副制御部に遊技コマンドを送信する場合に、主制御部が、暗号化キーを用いて遊技コマンドを暗号化したうえで副制御部に送信し、副制御部は、受信した暗号化遊技コマンドを、同じ暗号化キーを用いて復号化し、遊技コマンドを取得するといった構造の遊技機が開示されている(特許文献1参照)。
[先行技術文献]
[特許文献]
[特許文献1] 特開2008−279133号公報
For example, when a game command is transmitted from the main control unit to the sub control unit, the main control unit encrypts the game command using an encryption key, transmits the encrypted command to the sub control unit, and transmits the received game command to the sub control unit. There is disclosed a gaming machine having a structure in which an encrypted game command is decrypted using the same encryption key and a game command is obtained (see Patent Document 1).
[Prior art documents]
[Patent Document]
[Patent Document 1] Japanese Patent Application Laid-Open No. 2008-279133

[発明の概要]
[発明が解決しようとする課題]
[Summary of the Invention]
[Problems to be solved by the invention]

上述のような遊技機では、主制御部と副制御部の間での通信のみが暗号化されているが、このような遊技機においては、様々な周辺機器が接続されることが多く、セキュリティの観点からは、遊技機とこれらの周辺機器との間で送受信されるデータについても暗号化されていることが望ましい。   In the above-described gaming machine, only communication between the main control unit and the sub-control unit is encrypted, but in such a gaming machine, various peripheral devices are often connected, and security is increased. From the viewpoint of, it is desirable that data transmitted and received between the gaming machine and these peripheral devices is also encrypted.

しかしながら、遊技機と周辺機器との間で上記のような暗号化を行おうとする場合、周辺機器のそれぞれに対して暗号化キーを生成し、設定する必要がある。現在は、多くの遊技機が製造されており、それぞれの遊技機に多くの周辺機器が接続されている場合は、暗号キーを生成し設定すべき周辺機器は膨大な数であり、その生成・設定作業には極めて多くの労力を要する。   However, when attempting to perform the above-described encryption between the gaming machine and the peripheral device, it is necessary to generate and set an encryption key for each of the peripheral devices. At present, many gaming machines are manufactured, and when many peripherals are connected to each gaming machine, there are a huge number of peripherals to generate and set an encryption key. The setting work requires a great deal of labor.

また、周辺機器のそれぞれに暗号化キーを設定した場合、各暗号化キーを安全かつ簡単に生成・設定する方法が必要であり、さらに、各暗号化キーを安全かつ効率的に管理する管理方法も必要とされる。   In addition, when an encryption key is set for each of the peripheral devices, a method for generating and setting each encryption key safely and easily is required. In addition, a management method for securely and efficiently managing each encryption key is required. Is also required.

従って、本発明の目的は、周辺機器に対して、暗号化キーを安全かつ簡単に生成することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Therefore, an object of the present invention is to provide a game system, a game machine, and a game medium identification device that can safely and easily generate an encryption key for a peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを、当該周辺機器に効率的に組み込むことができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can efficiently incorporate an encryption key set in a peripheral device into the peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを、安全かつ効率的に管理することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can safely and efficiently manage an encryption key set in a peripheral device.

さらに、本発明の目的は、周辺機器と双方向通信を行う他の装置との間で、安全な通信経路を確保することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。
[課題を解決するための手段]
Still another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can secure a secure communication path between another device that performs two-way communication with a peripheral device. is there.
[Means for solving the problem]

本発明は、以下のような遊技システム、遊技機、及び遊技媒体識別装置を提供する。   The present invention provides a game system, a game machine, and a game medium identification device as described below.

本発明の第1の実施態様に係る発明は、下記の構成を有する。
遊技媒体を識別可能な遊技媒体識別装置(例えば、メダルセレクタ201)と、
前記遊技媒体識別装置と通信により接続された制御部(例えば、パチスロ1の副制御回路101)と、
暗号化キーを生成することが可能な暗号化装置(例えば、メダルセレクタ暗号化キー作成ツールが実行されるコンピュータ400)と、を備えた遊技システムであって、
前記通信は、暗号化された通信データによる双方向通信であり、
前記遊技媒体識別装置は、通信データを暗号化し、暗号化された通信データを復号化するための前記暗号化キーを記憶可能であり(例えば、暗号化キーをフラッシュメモリ244に記憶する)、
前記暗号化装置は、
前記暗号化キーを入力可能なGUI(例えば、図20に示す、メダルセレクタ暗号化キー作成ツールの暗号化キー作成画面501)を備え、
前記GUIを介して入力された前記暗号化キーを所定の記憶形式で記憶媒体に出力する(例えば、XML形式のファイルをコンピュータ400のハードディスク(外部記憶装置413)に出力する)。
The invention according to the first embodiment of the present invention has the following configuration.
A game medium identification device capable of identifying a game medium (for example, a medal selector 201);
A control unit (for example, the sub-control circuit 101 of the pachi-slot 1) connected to the game medium identification device by communication;
An encryption device capable of generating an encryption key (e.g., a computer 400 on which a medal selector encryption key creation tool is executed).
The communication is a two-way communication using encrypted communication data,
The gaming medium identification device is capable of encrypting communication data and storing the encryption key for decrypting the encrypted communication data (for example, storing the encryption key in the flash memory 244);
The encryption device,
A GUI (for example, an encryption key creation screen 501 of a medal selector encryption key creation tool shown in FIG. 20) capable of inputting the encryption key,
The encryption key input via the GUI is output to a storage medium in a predetermined storage format (for example, an XML file is output to a hard disk (external storage device 413) of the computer 400).

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、安全な通信経路を確保することができる。   According to such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the game medium identification device. In addition, the game medium identification device can secure a secure communication path by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.

本発明の第2の実施態様に係る発明は、第1の実施態様において下記の構成を有する。
前記暗号化装置は、
前記所定の記憶形式で前記記憶媒体に出力する前記暗号化キーを、前記暗号化キーとは異なる暗号化キーにより暗号化する(例えば、暗号化された暗号化キーを含む暗号化キーファイルを生成する)ように構成される。
The invention according to the second embodiment of the present invention has the following configuration in the first embodiment.
The encryption device,
Encrypting the encryption key to be output to the storage medium in the predetermined storage format using an encryption key different from the encryption key (for example, generating an encryption key file including the encrypted encryption key); To).

本発明のこのような構成により、遊技媒体識別装置に設定した暗号化キーを、安全かつ効率的に管理することができる。   With such a configuration of the present invention, the encryption key set in the game medium identification device can be managed safely and efficiently.

本発明の第3の実施態様に係る発明は、下記の構成を有する。
遊技媒体を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された前記遊技媒体を識別可能な遊技媒体識別装置(例えば、メダルセレクタ201)と、
暗号化された通信データによる双方向通信により前記遊技媒体識別装置と接続された制御部(例えば、副制御回路101)と、を備える遊技機(例えば、パチスロ1)であって、
前記遊技媒体識別装置は、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記暗号化キーは、
前記暗号化キーを入力可能なGUIを備えた暗号化装置に入力され、
前記暗号化装置によって、所定の記憶形式で記憶媒体に出力される。
The invention according to the third embodiment of the present invention has the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium,
A game medium identification device (for example, a medal selector 201) capable of identifying the game medium inserted from the insertion slot,
A control unit (for example, a sub-control circuit 101) connected to the game medium identification device by bidirectional communication using encrypted communication data,
The game medium identification device,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
The encryption key is
The encryption key is input to an encryption device having a GUI capable of inputting the encryption key,
The data is output to the storage medium in a predetermined storage format by the encryption device.

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、遊技機において安全な通信経路を確保することができる。   According to such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the game medium identification device. In addition, the game medium identification device can secure a secure communication path in the game machine by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.

本発明の第4の実施態様に係る発明は、下記の構成を有する。
遊技媒体を識別可能な遊技媒体識別装置であって、
前記遊技媒体識別装置は、
暗号化された通信データによる双方向通信により、他の装置(例えば、パチスロ1の副制御回路101)と接続され、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記暗号化キーは、
前記暗号化キーを入力可能なGUIを備えた暗号化装置に入力され、
前記暗号化装置によって、所定の記憶形式で記憶媒体に出力される。
The invention according to a fourth embodiment of the present invention has the following configuration.
A game medium identification device capable of identifying a game medium,
The game medium identification device,
The other device (for example, the sub-control circuit 101 of the pachi-slot 1) is connected by two-way communication using the encrypted communication data,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
The encryption key is
The encryption key is input to an encryption device having a GUI capable of inputting the encryption key,
The data is output to the storage medium in a predetermined storage format by the encryption device.

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、安全な通信経路を確保することができる。
[発明の効果]
According to such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the game medium identification device. In addition, the game medium identification device can secure a secure communication path by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.
[The invention's effect]

本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)に対して、暗号化キーを安全かつ簡単に生成し、当該周辺機器に効率的に組み込むことができる。   A gaming system, a gaming machine, and a game medium identification device according to the present invention can safely and easily generate an encryption key for a peripheral device (game medium identification device) and efficiently incorporate the encryption key into the peripheral device. it can.

また、本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)に設定した暗号化キーを、安全かつ効率的に管理することができる。   Further, the gaming system, the gaming machine, and the game medium identification device according to the present invention can securely and efficiently manage the encryption key set in the peripheral device (game medium identification device).

またさらに、本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)と双方向通信を行う他の装置(制御部)との間で、暗号化キーによって暗号化された安全な通信経路を確保することができる。   Still further, the game system, the game machine, and the game medium identification device according to the present invention use an encryption key between the peripheral device (game medium identification device) and another device (control unit) that performs two-way communication. An encrypted secure communication path can be secured.

[付記B]
[背景技術]
[Appendix B]
[Background Art]

従来より、複数の図柄がそれぞれの表面に設けられた複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルやコインなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a so-called pachi-slot including a plurality of reels provided with a plurality of symbols on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit is provided. Gaming machines are known. The start switch detects that a start lever has been operated by a player (hereinafter, also referred to as a “start operation”) after a game medium such as a medal or a coin has been inserted into the gaming machine, and detects the rotation of all reels. Outputs a signal requesting start. The stop switch detects that a stop button provided for each reel is pressed by a player (hereinafter, also referred to as a "stop operation") and outputs a signal requesting that the rotation of the corresponding reel be stopped. I do. The stepping motor transmits the driving force to a corresponding reel. The control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and the stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せ(表示役)が表示されると、その図柄の組合せに対応する特典が遊技者に付与される。なお、遊技者に付与される特典の例としては、遊技媒体(メダル等)の払い出し、遊技媒体を消費することなく再度、内部抽籤処理を行う再遊技(以下、「リプレイ」ともいう)の作動、遊技媒体の払い出し機会が増加するボーナスゲームの作動等を挙げることができる。   In such a gaming machine, when a start operation is detected, a lottery process using a random number (hereinafter, referred to as “internal lottery process”) is performed on a program, and the result of the lottery (hereinafter, “internal winning combination”) is performed. ) And the timing of the stop operation, the reel rotation is stopped. Then, when the rotation of all reels is stopped and a symbol combination (display combination) related to winning is displayed, a privilege corresponding to the symbol combination is given to the player. In addition, as an example of the privilege given to the player, the payout of the game medium (medal or the like) and the operation of the re-game (hereinafter, also referred to as “replay”) in which the internal lottery process is performed again without consuming the game medium. And the operation of a bonus game in which the chance of paying out game media increases.

また、当該遊技機では、内部当籤役等に基づいて、画像や音声を用いた演出が行われる。   Further, in the gaming machine, effects using images and sounds are performed based on the internal winning combination and the like.

このような遊技機においては、例えば、遊技を制御する主制御部と、演出を制御する副制御部との間で送受信されるデータを暗号化して、遊技機のセキュリティを向上させる技術が知られている。   In such a gaming machine, for example, there is known a technology for improving security of the gaming machine by encrypting data transmitted and received between a main control unit for controlling a game and a sub-control unit for controlling an effect. ing.

例えば、主制御部から副制御部に遊技コマンドを送信する場合に、主制御部が、暗号化キーを用いて遊技コマンドを暗号化したうえで副制御部に送信し、副制御部は、受信した暗号化遊技コマンドを、同じ暗号化キーを用いて復号化し、遊技コマンドを取得するといった構造の遊技機が開示されている(特許文献1参照)。
[先行技術文献]
[特許文献]
[特許文献1] 特開2008−279133号公報
For example, when a game command is transmitted from the main control unit to the sub control unit, the main control unit encrypts the game command using an encryption key, transmits the encrypted command to the sub control unit, and transmits the received game command to the sub control unit. There is disclosed a gaming machine having a structure in which an encrypted game command is decrypted using the same encryption key and a game command is obtained (see Patent Document 1).
[Prior art documents]
[Patent Document]
[Patent Document 1] Japanese Patent Application Laid-Open No. 2008-279133

[発明の概要]
[発明が解決しようとする課題]
[Summary of the Invention]
[Problems to be solved by the invention]

上述のような遊技機では、主制御部と副制御部の間での通信のみが暗号化されているが、このような遊技機においては、様々な周辺機器が接続されることが多く、セキュリティの観点からは、遊技機とこれらの周辺機器との間で送受信されるデータについても暗号化されていることが望ましい。   In the above-described gaming machine, only communication between the main control unit and the sub-control unit is encrypted, but in such a gaming machine, various peripheral devices are often connected, and security is increased. From the viewpoint of, it is desirable that data transmitted and received between the gaming machine and these peripheral devices is also encrypted.

しかしながら、遊技機と周辺機器との間で上記のような暗号化を行おうとする場合、周辺機器のそれぞれに対して暗号化キーを生成し、設定する必要がある。現在は、多くの遊技機が製造されており、それぞれの遊技機に多くの周辺機器が接続されている場合は、暗号キーを生成し設定すべき周辺機器は膨大な数であり、その生成・設定作業には極めて多くの労力を要する。   However, when attempting to perform the above-described encryption between the gaming machine and the peripheral device, it is necessary to generate and set an encryption key for each of the peripheral devices. At present, many gaming machines are manufactured, and when many peripherals are connected to each gaming machine, there are a huge number of peripherals to generate and set an encryption key. The setting work requires a great deal of labor.

また、周辺機器のそれぞれに暗号化キーを設定した場合、各暗号化キーを安全かつ簡単に生成・設定する方法が必要であり、さらに、各暗号化キーを安全かつ効率的に管理する管理方法も必要とされる。   In addition, when an encryption key is set for each of the peripheral devices, a method for generating and setting each encryption key safely and easily is required. In addition, a management method for securely and efficiently managing each encryption key is required. Is also required.

従って、本発明の目的は、周辺機器に設定した暗号化キーを、当該周辺機器に安全かつ効率的に組み込むことができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Therefore, an object of the present invention is to provide a game system, a game machine, and a game medium identification device that can safely and efficiently incorporate an encryption key set in a peripheral device into the peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを、安全かつ効率的に管理することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can safely and efficiently manage an encryption key set in a peripheral device.

また、本発明の目的は、周辺機器と双方向通信を行う他の装置との間で、安全な通信経路を確保することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。   Another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can secure a secure communication path between another device that performs two-way communication with a peripheral device. is there.

さらに、本発明の目的は、周辺機器に対して、暗号化キーを安全かつ簡単に生成することができる遊技システム、遊技機、及び遊技媒体識別装置を提供することにある。
[課題を解決するための手段]
Still another object of the present invention is to provide a game system, a game machine, and a game medium identification device that can safely and easily generate an encryption key for peripheral devices.
[Means for solving the problem]

本発明は、以下のような遊技システム、遊技機、及び遊技媒体識別装置を提供する。   The present invention provides a game system, a game machine, and a game medium identification device as described below.

本発明の第1の実施態様に係る発明は、下記の構成を有する。
遊技媒体を識別可能な遊技媒体識別装置(例えば、メダルセレクタ201)と、
前記遊技媒体識別装置と通信により接続された制御部(例えば、パチスロ1の副制御回路101)と、
前記遊技媒体識別装置の設定を行う設定装置(例えば、メダルセレクタ初期化ツールが実行されるコンピュータ400)と、を備えた遊技システムであって、
前記通信は、暗号化された通信データによる双方向通信であり、
前記遊技媒体識別装置は、通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能(例えば、暗号化キーをフラッシュメモリ244に記憶する)であり、
前記設定装置は、
前記遊技媒体識別装置が、前記制御部に接続されていない状態で接続可能であり(例えば、副制御回路101と接続しているケーブル280を、コンピュータ400に差し替える)、
前記暗号化キー、及び前記遊技媒体識別装置を初期化するためのコマンド(例えば、図23に示す初期化コマンド)を、前記遊技媒体識別装置に送信する。
The invention according to the first embodiment of the present invention has the following configuration.
A game medium identification device capable of identifying a game medium (for example, a medal selector 201);
A control unit (for example, the sub-control circuit 101 of the pachi-slot 1) connected to the game medium identification device by communication;
A setting device (for example, a computer 400 on which a medal selector initialization tool is executed) for setting the game medium identification device,
The communication is a two-way communication using encrypted communication data,
The gaming medium identification device is capable of encrypting communication data and storing an encryption key for decrypting the encrypted communication data (for example, storing the encryption key in the flash memory 244);
The setting device,
The game medium identification device is connectable without being connected to the control unit (for example, the cable 280 connected to the sub control circuit 101 is replaced with the computer 400),
A command for initializing the encryption key and the game medium identification device (for example, an initialization command shown in FIG. 23) is transmitted to the game medium identification device.

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に設定する(組み込む)ことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、安全な通信経路を確保することができる。   With such a configuration of the present invention, the encryption key can be set (embedded) safely and easily in the game medium identification device. In addition, the game medium identification device can secure a secure communication path by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.

本発明の第2の実施態様に係る発明は、第1の実施態様において下記の構成を有する。
前記設定装置は、記憶媒体(例えば、コンピュータ400のハードディスク(外部記憶装置413))から前記暗号化キーが記憶されたデータを読み込む暗号化キー読込手段を有し、
前記暗号化キー読込手段は、前記データを読み込む場合は、前記暗号化キーとは異なる暗号鍵を使用して前記データを復号化し、前記暗号化キーを読み出すように構成される。
The invention according to the second embodiment of the present invention has the following configuration in the first embodiment.
The setting device includes an encryption key reading unit that reads data in which the encryption key is stored from a storage medium (for example, a hard disk (an external storage device 413) of the computer 400),
When reading the data, the encryption key reading means is configured to decrypt the data using an encryption key different from the encryption key and read the encryption key.

本発明のこのような構成により、暗号化キーを、安全かつ効率的に管理することができ、その暗号化キーを容易に遊技媒体識別装置に設定することができる。   With such a configuration of the present invention, the encryption key can be managed safely and efficiently, and the encryption key can be easily set in the game medium identification device.

本発明の第3の実施態様に係る発明は、下記の構成を有する。
遊技媒体を投入する投入口(例えば、メダル投入口21)と、
前記投入口から投入された前記遊技媒体を識別可能な遊技媒体識別装置(例えば、メダルセレクタ201)と、
暗号化された通信データによる双方向通信により前記遊技媒体識別装置と接続された制御部(例えば、副制御回路101)と、を備える遊技機(例えば、パチスロ1)であって、
前記遊技媒体識別装置は、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記遊技媒体識別装置の設定を行う設定装置から、前記暗号化キー、及び前記遊技媒体識別装置を初期化するためのコマンドを受信し、
前記制御部に接続されていない状態で、前記設定装置と接続可能である。
The invention according to the third embodiment of the present invention has the following configuration.
An insertion slot (for example, a medal insertion slot 21) for inserting a game medium,
A game medium identification device (for example, a medal selector 201) capable of identifying the game medium inserted from the insertion slot,
A control unit (for example, a sub-control circuit 101) connected to the game medium identification device by bidirectional communication using encrypted communication data,
The game medium identification device,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
From the setting device performing the setting of the game medium identification device, receiving the encryption key, and a command for initializing the game medium identification device,
It is possible to connect to the setting device without being connected to the control unit.

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に設定する(組み込む)ことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、安全な通信経路を確保することができる。   With such a configuration of the present invention, the encryption key can be set (embedded) safely and easily in the game medium identification device. In addition, the game medium identification device can secure a secure communication path by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.

本発明の第4の実施態様に係る発明は、下記の構成を有する。
遊技媒体を識別可能な遊技媒体識別装置であって、
暗号化された通信データによる双方向通信により、他の装置(例えば、パチスロ1の副制御回路101)と接続され、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記他の装置に接続されていない状態で、前記遊技媒体識別装置の設定を行う設定装置(例えば、コンピュータ400)と接続可能であり、
前記設定装置から、前記暗号化キー、及び前記遊技媒体識別装置を初期化するためのコマンドを受信する。
The invention according to a fourth embodiment of the present invention has the following configuration.
A game medium identification device capable of identifying a game medium,
The other device (for example, the sub-control circuit 101 of the pachi-slot 1) is connected by two-way communication using the encrypted communication data,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
In a state where the game medium identification device is not connected to the other device, the game device identification device can be connected to a setting device (for example, the computer 400),
A command for initializing the encryption key and the game medium identification device is received from the setting device.

本発明のこのような構成により、遊技媒体識別装置に対して、暗号化キーを安全かつ簡単に設定する(組み込む)ことができる。また、遊技媒体識別装置は、遊技媒体識別装置と双方向通信を行う制御部との間で、暗号化キーによる暗号化を行って、安全な通信経路を確保することができる。
[発明の効果]
With such a configuration of the present invention, the encryption key can be set (embedded) safely and easily in the game medium identification device. In addition, the game medium identification device can secure a secure communication path by performing encryption using an encryption key between the game medium identification device and a control unit that performs two-way communication.
[The invention's effect]

本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)に対して、暗号化キーを安全かつ効率的に組み込むことができる。   With the gaming system, the gaming machine, and the game medium identification device according to the present invention, the encryption key can be safely and efficiently incorporated into the peripheral device (game medium identification device).

また、本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)に設定した暗号化キーを、安全かつ効率的に管理することができる。   Further, the gaming system, the gaming machine, and the game medium identification device according to the present invention can securely and efficiently manage the encryption key set in the peripheral device (game medium identification device).

またさらに、本発明に係る遊技システム、遊技機、及び遊技媒体識別装置によって、周辺機器(遊技媒体識別装置)と双方向通信を行う他の装置(制御部)との間で、暗号化キーによって暗号化された安全な通信経路を確保することができる。
[付記C]
[背景技術]
Still further, the game system, the game machine, and the game medium identification device according to the present invention use an encryption key between the peripheral device (game medium identification device) and another device (control unit) that performs two-way communication. An encrypted secure communication path can be secured.
[Appendix C]
[Background Art]

従来より、複数の図柄がそれぞれの表面に設けられた複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルやコインなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a so-called pachi-slot including a plurality of reels provided with a plurality of symbols on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit is provided. Gaming machines are known. The start switch detects that a start lever has been operated by a player (hereinafter, also referred to as a “start operation”) after a game medium such as a medal or a coin has been inserted into the gaming machine, and detects the rotation of all reels. Outputs a signal requesting start. The stop switch detects that a stop button provided for each reel is pressed by a player (hereinafter, also referred to as a "stop operation") and outputs a signal requesting that the rotation of the corresponding reel be stopped. I do. The stepping motor transmits the driving force to a corresponding reel. The control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and the stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せ(表示役)が表示されると、その図柄の組合せに対応する特典が遊技者に付与される。なお、遊技者に付与される特典の例としては、遊技媒体(メダル等)の払い出し、遊技媒体を消費することなく再度、内部抽籤処理を行う再遊技(以下、「リプレイ」ともいう)の作動、遊技媒体の払い出し機会が増加するボーナスゲームの作動等を挙げることができる。   In such a gaming machine, when a start operation is detected, a lottery process using a random number (hereinafter, referred to as “internal lottery process”) is performed on a program, and the result of the lottery (hereinafter, “internal winning combination”) is performed. ) And the timing of the stop operation, the reel rotation is stopped. Then, when the rotation of all reels is stopped and a symbol combination (display combination) related to winning is displayed, a privilege corresponding to the symbol combination is given to the player. In addition, as an example of the privilege given to the player, the payout of the game medium (medal or the like) and the operation of the re-game (hereinafter, also referred to as “replay”) in which the internal lottery process is performed again without consuming the game medium. And the operation of a bonus game in which the chance of paying out game media increases.

また、当該遊技機では、内部当籤役等に基づいて、画像や音声を用いた演出が行われる。   Further, in the gaming machine, effects using images and sounds are performed based on the internal winning combination and the like.

このような遊技機においては、例えば、遊技を制御する主制御部と、演出を制御する副制御部との間で送受信されるデータを暗号化して、遊技機のセキュリティを向上させる技術が知られている。   In such a gaming machine, for example, there is known a technology for improving security of the gaming machine by encrypting data transmitted and received between a main control unit for controlling a game and a sub-control unit for controlling an effect. ing.

例えば、主制御部から副制御部に遊技コマンドを送信する場合に、主制御部が、暗号化キーを用いて遊技コマンドを暗号化したうえで副制御部に送信し、副制御部は、受信した暗号化遊技コマンドを、同じ暗号化キーを用いて復号化し、遊技コマンドを取得するといった構造の遊技機が開示されている(特許文献1参照)。
[先行技術文献]
[特許文献]
[特許文献1] 特開2008−279133号公報
For example, when a game command is transmitted from the main control unit to the sub control unit, the main control unit encrypts the game command using an encryption key, transmits the encrypted command to the sub control unit, and transmits the received game command to the sub control unit. There is disclosed a gaming machine having a structure in which an encrypted game command is decrypted using the same encryption key and a game command is obtained (see Patent Document 1).
[Prior art documents]
[Patent Document]
[Patent Document 1] Japanese Patent Application Laid-Open No. 2008-279133

[発明の概要]
[発明が解決しようとする課題]
[Summary of the Invention]
[Problems to be solved by the invention]

上述のような遊技機では、主制御部と副制御部の間での通信のみが暗号化されているが、このような遊技機においては、様々な周辺機器が接続されることが多く、セキュリティの観点からは、遊技機とこれらの周辺機器との間で送受信されるデータについても暗号化されていることが望ましい。   In the above-described gaming machine, only communication between the main control unit and the sub-control unit is encrypted, but in such a gaming machine, various peripheral devices are often connected, and security is increased. From the viewpoint of, it is desirable that data transmitted and received between the gaming machine and these peripheral devices is also encrypted.

しかしながら、遊技機と周辺機器との間で上記のような暗号化を行おうとする場合、周辺機器のそれぞれに対して暗号化キーを生成し、設定する必要がある。現在は、多くの遊技機が製造されており、それぞれの遊技機に多くの周辺機器が接続されている場合は、暗号キーを生成し設定すべき周辺機器は膨大な数であり、その生成・設定作業には極めて多くの労力を要する。   However, when attempting to perform the above-described encryption between the gaming machine and the peripheral device, it is necessary to generate and set an encryption key for each of the peripheral devices. At present, many gaming machines are manufactured, and when many peripherals are connected to each gaming machine, there are a huge number of peripherals to generate and set an encryption key. The setting work requires a great deal of labor.

また、周辺機器のそれぞれに暗号化キーを設定した場合、各暗号化キーを安全かつ簡単に生成・設定する方法が必要であり、さらに、各暗号化キーを安全かつ効率的に管理する管理方法も必要とされる。   In addition, when an encryption key is set for each of the peripheral devices, a method for generating and setting each encryption key safely and easily is required. In addition, a management method for securely and efficiently managing each encryption key is required. Is also required.

従って、本発明の目的は、周辺機器に対して、暗号化キーを安全かつ簡単に生成することができる遊技システム、及び遊技機を提供することにある。   Therefore, an object of the present invention is to provide a gaming system and a gaming machine that can safely and easily generate an encryption key for a peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを、当該周辺機器に効率的に組み込むことができる遊技システム、及び遊技機を提供することにある。   Another object of the present invention is to provide a gaming system and a gaming machine that can efficiently incorporate an encryption key set in a peripheral device into the peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを用いてログインパスワードを生成し、当該周辺機器に対するアクセスについて安全性を高めることができる遊技システム、及び遊技機を提供することにある。   Another object of the present invention is to provide a gaming system and a gaming machine that can generate a login password by using an encryption key set for a peripheral device and increase the security of access to the peripheral device. .

さらに、本発明の目的は、周辺機器に設定した暗号化キーを、安全かつ効率的に管理することができる遊技システム、及び遊技機を提供することにある。
[課題を解決するための手段]
Still another object of the present invention is to provide a gaming system and a gaming machine capable of safely and efficiently managing an encryption key set in a peripheral device.
[Means for solving the problem]

本発明は、以下のような遊技システム、及び遊技機を提供する。   The present invention provides the following gaming systems and gaming machines.

本発明の第1の実施態様に係る発明は、下記の構成を有する。
遊技機の扉(例えば、フロントドア2b、ミドルドア41)の開閉を監視する扉監視装置(例えば、24hドア監視ユニット63)と、
前記扉監視装置と通信により接続された制御部(例えば、パチスロ1の副制御回路101)と、
前記扉監視装置にログインするための扉監視キーコード(暗号化キー)を入力し、前記扉監視キーコードを暗号化することが可能な暗号化装置(例えば、ドア監視ユニット暗号化キー作成ツールが実行されるコンピュータ400)と、を備えた遊技システムであって、
前記通信は、前記制御部側をマスターとする双方向通信であり、
前記扉監視装置は、前記扉監視キーコードを記憶可能であり(例えば、扉監視キーコードをEEPROM305に記憶する)、
前記暗号化装置は、
前記扉監視キーコードを入力可能なGUI(例えば、図34に示す、ドア監視ユニット暗号化キー作成ツールの暗号化キー作成画面601)を備え、
前記GUIを介して入力された前記扉監視キーコードを暗号化し、所定の記憶形式で記憶媒体に出力する(例えば、XML形式のファイルをコンピュータ400のハードディスク(外部記憶装置413)に出力する)。
The invention according to the first embodiment of the present invention has the following configuration.
A door monitoring device (for example, a 24h door monitoring unit 63) for monitoring the opening and closing of a game machine door (for example, the front door 2b, the middle door 41);
A control unit (for example, a sub-control circuit 101 of the pachislot 1) connected to the door monitoring device by communication;
An encryption device capable of inputting a door monitoring key code (encryption key) for logging in to the door monitoring device and encrypting the door monitoring key code (for example, a door monitoring unit encryption key creation tool is A computer 400 to be executed)
The communication is a two-way communication with the control unit side as a master,
The door monitoring device can store the door monitoring key code (for example, store the door monitoring key code in the EEPROM 305),
The encryption device,
A GUI (for example, an encryption key creation screen 601 of a door monitoring unit encryption key creation tool shown in FIG. 34) capable of inputting the door monitoring key code,
The door monitoring key code input via the GUI is encrypted and output to a storage medium in a predetermined storage format (for example, an XML file is output to a hard disk (external storage device 413) of the computer 400).

本発明のこのような構成により、扉監視装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、扉監視装置のログインパスワードを生成するために暗号化キーが用いられるので、扉監視装置に対するアクセスについて安全性を高めることができる。   With such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the door monitoring device. Further, since an encryption key is used to generate a login password for the door monitoring device, security of access to the door monitoring device can be improved.

本発明の第2の実施態様に係る発明は、下記の構成を有する。
遊技機の扉の開閉を監視する扉監視装置と、
通信により前記扉監視装置と接続された制御部と、を備える遊技機(例えば、パチスロ1)であって、
前記通信は、前記制御部がマスターとして規定された双方向通信であり、
前記扉監視装置は、前記扉監視装置にログインするための扉監視キーコードを記憶可能であり、
前記扉監視キーコードは、
前記扉監視キーコードを入力可能なGUIを備えた暗号化装置に入力され、
前記暗号化装置によって、暗号化され、所定の記憶形式で記憶媒体に出力される。
The invention according to the second embodiment of the present invention has the following configuration.
A door monitoring device for monitoring the opening and closing of a game machine door,
A game machine (for example, pachislot 1) comprising: a control unit connected to the door monitoring device by communication;
The communication is a two-way communication in which the control unit is defined as a master,
The door monitoring device can store a door monitoring key code for logging in to the door monitoring device,
The door monitoring key code is
Input to an encryption device having a GUI capable of inputting the door monitoring key code,
The data is encrypted by the encryption device and output to a storage medium in a predetermined storage format.

本発明のこのような構成により、扉監視装置に対して、暗号化キーを安全かつ簡単に生成し、組み込むことができる。また、扉監視装置のログインパスワードを生成するために暗号化キーが用いられるので、扉監視装置に対するアクセスについて安全性を高めることができる。
[発明の効果]
With such a configuration of the present invention, the encryption key can be safely and easily generated and incorporated in the door monitoring device. Further, since an encryption key is used to generate a login password for the door monitoring device, security of access to the door monitoring device can be improved.
[The invention's effect]

本発明に係る遊技システム、及び遊技機によって、周辺機器(扉監視装置)に対して、暗号化キーを安全かつ簡単に生成し、当該周辺機器に効率的に組み込むことができる。   With the gaming system and the gaming machine according to the present invention, an encryption key can be safely and easily generated for a peripheral device (door monitoring device), and can be efficiently incorporated into the peripheral device.

また、本発明に係る遊技システム、及び遊技機によって、周辺機器(扉監視装置)に設定した暗号化キーを用いてログインパスワードを生成し、当該周辺機器に対するアクセスについて安全性を高めることができる。   In addition, the gaming system and the gaming machine according to the present invention can generate a login password using an encryption key set in a peripheral device (door monitoring device), and can increase the security of access to the peripheral device.

またさらに、本発明に係る遊技システム、及び遊技機によって、周辺機器(扉監視装置)に設定した暗号化キーを、安全かつ効率的に管理することができる。
[付記D]
[背景技術]
Still further, with the gaming system and the gaming machine according to the present invention, the encryption key set in the peripheral device (door monitoring device) can be managed safely and efficiently.
[Appendix D]
[Background Art]

従来より、複数の図柄がそれぞれの表面に設けられた複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルやコインなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a so-called pachi-slot including a plurality of reels provided with a plurality of symbols on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit is provided. Gaming machines are known. The start switch detects that a start lever has been operated by a player (hereinafter, also referred to as a “start operation”) after a game medium such as a medal or a coin has been inserted into the gaming machine, and detects the rotation of all reels. Outputs a signal requesting start. The stop switch detects that a stop button provided for each reel is pressed by a player (hereinafter, also referred to as a "stop operation") and outputs a signal requesting that the rotation of the corresponding reel be stopped. I do. The stepping motor transmits the driving force to a corresponding reel. The control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and the stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せ(表示役)が表示されると、その図柄の組合せに対応する特典が遊技者に付与される。なお、遊技者に付与される特典の例としては、遊技媒体(メダル等)の払い出し、遊技媒体を消費することなく再度、内部抽籤処理を行う再遊技(以下、「リプレイ」ともいう)の作動、遊技媒体の払い出し機会が増加するボーナスゲームの作動等を挙げることができる。   In such a gaming machine, when a start operation is detected, a lottery process using a random number (hereinafter, referred to as “internal lottery process”) is performed on a program, and the result of the lottery (hereinafter, “internal winning combination”) is performed. ) And the timing of the stop operation, the reel rotation is stopped. Then, when the rotation of all reels is stopped and a symbol combination (display combination) related to winning is displayed, a privilege corresponding to the symbol combination is given to the player. In addition, as an example of the privilege given to the player, the payout of the game medium (medal or the like) and the operation of the re-game (hereinafter, also referred to as “replay”) in which the internal lottery process is performed again without consuming the game medium. And the operation of a bonus game in which the chance of paying out game media increases.

また、当該遊技機では、内部当籤役等に基づいて、画像や音声を用いた演出が行われる。   Further, in the gaming machine, effects using images and sounds are performed based on the internal winning combination and the like.

このような遊技機においては、例えば、遊技を制御する主制御部と、演出を制御する副制御部との間で送受信されるデータを暗号化して、遊技機のセキュリティを向上させる技術が知られている。   In such a gaming machine, for example, there is known a technology for improving security of the gaming machine by encrypting data transmitted and received between a main control unit for controlling a game and a sub-control unit for controlling an effect. ing.

例えば、主制御部から副制御部に遊技コマンドを送信する場合に、主制御部が、暗号化キーを用いて遊技コマンドを暗号化したうえで副制御部に送信し、副制御部は、受信した暗号化遊技コマンドを、同じ暗号化キーを用いて復号化し、遊技コマンドを取得するといった構造の遊技機が開示されている(特許文献1参照)。
[先行技術文献]
[特許文献]
[特許文献1] 特開2008−279133号公報
For example, when a game command is transmitted from the main control unit to the sub control unit, the main control unit encrypts the game command using an encryption key, transmits the encrypted command to the sub control unit, and transmits the received game command to the sub control unit. There is disclosed a gaming machine having a structure in which an encrypted game command is decrypted using the same encryption key and a game command is obtained (see Patent Document 1).
[Prior art documents]
[Patent Document]
[Patent Document 1] Japanese Patent Application Laid-Open No. 2008-279133

[発明の概要]
[発明が解決しようとする課題]
[Summary of the Invention]
[Problems to be solved by the invention]

上述のような遊技機では、主制御部と副制御部の間での通信のみが暗号化されているが、このような遊技機においては、様々な周辺機器が接続されることが多く、セキュリティの観点からは、遊技機とこれらの周辺機器との間で送受信されるデータについても暗号化されていることが望ましい。   In the above-described gaming machine, only communication between the main control unit and the sub-control unit is encrypted, but in such a gaming machine, various peripheral devices are often connected, and security is increased. From the viewpoint of, it is desirable that data transmitted and received between the gaming machine and these peripheral devices is also encrypted.

しかしながら、遊技機と周辺機器との間で上記のような暗号化を行おうとする場合、周辺機器のそれぞれに対して暗号化キーを生成し、設定する必要がある。現在は、多くの遊技機が製造されており、それぞれの遊技機に多くの周辺機器が接続されている場合は、暗号キーを生成し設定すべき周辺機器は膨大な数であり、その生成・設定作業には極めて多くの労力を要する。   However, when attempting to perform the above-described encryption between the gaming machine and the peripheral device, it is necessary to generate and set an encryption key for each of the peripheral devices. At present, many gaming machines are manufactured, and when many peripherals are connected to each gaming machine, there are a huge number of peripherals to generate and set an encryption key. The setting work requires a great deal of labor.

また、周辺機器のそれぞれに暗号化キーを設定した場合、各暗号化キーを安全かつ簡単に生成・設定する方法が必要であり、さらに、各暗号化キーを安全かつ効率的に管理する管理方法も必要とされる。   In addition, when an encryption key is set for each of the peripheral devices, a method for generating and setting each encryption key safely and easily is required. In addition, a management method for securely and efficiently managing each encryption key is required. Is also required.

従って、本発明の目的は、周辺機器に設定した暗号化キーを、当該周辺機器に効率的に組み込むことができる遊技システム、及び遊技機を提供することにある。   Accordingly, an object of the present invention is to provide a gaming system and a gaming machine that can efficiently incorporate an encryption key set in a peripheral device into the peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを、安全かつ効率的に管理することができる遊技システム、及び遊技機を提供することにある。   Another object of the present invention is to provide a gaming system and a gaming machine that can safely and efficiently manage an encryption key set in a peripheral device.

また、本発明の目的は、周辺機器に設定した暗号化キーを用いてログインパスワードを生成し、当該周辺機器に対するアクセスについて安全性を高めることができる遊技システム、及び遊技機を提供することにある。   Another object of the present invention is to provide a gaming system and a gaming machine that can generate a login password by using an encryption key set for a peripheral device and increase the security of access to the peripheral device. .

またさらに、本発明の目的は、周辺機器に対して、暗号化キーを安全かつ簡単に生成することができる遊技システム、及び遊技機を提供することにある。
[課題を解決するための手段]
Still another object of the present invention is to provide a gaming system and a gaming machine that can safely and easily generate an encryption key for a peripheral device.
[Means for solving the problem]

本発明は、以下のような遊技システム、及び遊技機を提供する。   The present invention provides the following gaming systems and gaming machines.

本発明の第1の実施態様に係る発明は、下記の構成を有する。
遊技機の扉(例えば、フロントドア2b、ミドルドア41)の開閉を監視する扉監視装置(例えば、24hドア監視ユニット63)と、
前記扉監視装置と通信により接続された制御部(例えば、パチスロ1の副制御回路101)と、
前記扉監視装置の設定を行う設定装置(例えば、ドア監視ユニット初期化ツールが実行されるコンピュータ400)と、を備えた遊技システムであって、
前記通信は、前記制御部側をマスターとする双方向通信であり、
前記扉監視装置は、前記扉監視装置にログインするための扉監視キーコード(暗号化キー)を記憶可能であり(例えば、扉監視キーコードをEEPROM305に記憶する)、
前記設定装置は、
前記扉監視装置が、前記制御部に接続されていない状態で接続可能であり(例えば、副制御回路101と接続しているケーブル320を、コンピュータ400に差し替える)、
前記扉監視キーコード、前記扉監視装置の各種設定値(例えば、設定時刻や、監視間隔時間、記録開始時間等)、及び前記扉監視装置を初期化するためのコマンド(例えば、図41に示す初期化コマンド)を、前記扉監視装置に送信する。
The invention according to the first embodiment of the present invention has the following configuration.
A door monitoring device (for example, a 24h door monitoring unit 63) for monitoring the opening and closing of a game machine door (for example, the front door 2b, the middle door 41);
A control unit (for example, a sub-control circuit 101 of the pachislot 1) connected to the door monitoring device by communication;
A setting device (for example, a computer 400 on which a door monitoring unit initialization tool is executed) for setting the door monitoring device,
The communication is a two-way communication with the control unit side as a master,
The door monitoring device can store a door monitoring key code (encryption key) for logging in to the door monitoring device (for example, store the door monitoring key code in the EEPROM 305),
The setting device,
The door monitoring device is connectable without being connected to the control unit (for example, the cable 320 connected to the sub-control circuit 101 is replaced with a computer 400),
The door monitoring key code, various setting values of the door monitoring device (for example, set time, monitoring interval time, recording start time, etc.), and a command for initializing the door monitoring device (for example, as shown in FIG. 41) An initialization command) to the door monitoring device.

本発明のこのような構成により、扉監視装置に対して、扉監視キーコード等を安全かつ簡単に設定する(組み込む)ことができる。また、扉監視装置に設定した扉監視キーコードを用いてログインパスワードを生成し、当該周辺機器に対するアクセスについて安全性を高めることができる。   With such a configuration of the present invention, a door monitoring key code and the like can be safely and easily set (incorporated) in the door monitoring device. In addition, a login password is generated using the door monitoring key code set in the door monitoring device, and the security of access to the peripheral device can be improved.

本発明の第2の実施態様に係る発明は、第1の実施態様において下記の構成を有する。
前記設定装置は、記憶媒体から前記扉監視キーコードが記憶されたデータを読み込む暗号化データ読込手段を有し、
前記暗号化データ読込手段は、前記データを読み込む場合は、前記扉監視キーコードとは異なる暗号鍵を使用して前記データを復号化し、前記扉監視キーコードを読み出すように構成される。
The invention according to the second embodiment of the present invention has the following configuration in the first embodiment.
The setting device includes an encrypted data reading unit that reads data in which the door monitoring key code is stored from a storage medium,
When reading the data, the encrypted data reading means decrypts the data using an encryption key different from the door monitoring key code, and reads the door monitoring key code.

本発明のこのような構成により、扉監視キーコードを、安全かつ効率的に管理することができ、その扉監視キーコードを容易に扉監視装置に設定することができる。   With such a configuration of the present invention, the door monitoring key code can be managed safely and efficiently, and the door monitoring key code can be easily set in the door monitoring device.

本発明の第3の実施態様に係る発明は、下記の構成を有する。
遊技機の扉の開閉を監視する扉監視装置と、
前記扉監視装置と通信により接続された制御部と、を備える遊技機であって、
前記通信は、前記制御部側をマスターとする双方向通信であり、
前記扉監視装置は、
前記扉監視装置にログインするための扉監視キーコードを記憶可能であり、
前記扉監視装置の設定を行う設定装置から、前記扉監視キーコード、前記扉監視装置の各種設定値、及び前記扉監視装置を初期化するためのコマンドを受信し、
前記制御部に接続されていない状態で、前記設定装置と接続可能である。
The invention according to the third embodiment of the present invention has the following configuration.
A door monitoring device for monitoring the opening and closing of a game machine door,
A control unit connected to the door monitoring device by communication,
The communication is a two-way communication with the control unit side as a master,
The door monitoring device,
A door monitoring key code for logging in to the door monitoring device can be stored,
From the setting device that performs the setting of the door monitoring device, receives the door monitoring key code, various setting values of the door monitoring device, and a command to initialize the door monitoring device,
It is possible to connect to the setting device without being connected to the control unit.

本発明のこのような構成により、扉監視装置に対して、扉監視キーコード等を安全かつ簡単に設定する(組み込む)ことができる。また、扉監視装置に設定した扉監視キーコードを用いてログインパスワードを生成し、当該周辺機器に対するアクセスについて安全性を高めることができる。
[発明の効果]
With such a configuration of the present invention, a door monitoring key code and the like can be safely and easily set (incorporated) in the door monitoring device. In addition, a login password is generated using the door monitoring key code set in the door monitoring device, and the security of access to the peripheral device can be improved.
[The invention's effect]

本発明に係る遊技システム、及び遊技機によって、周辺機器(扉監視装置)に対して、暗号化キーを安全かつ効率的に組み込むことができる。   With the gaming system and the gaming machine according to the present invention, the encryption key can be safely and efficiently incorporated into the peripheral device (door monitoring device).

また、本発明に係る遊技システム、及び遊技機によって、周辺機器(扉監視装置)に設定した暗号化キーを、安全かつ効率的に管理することができる。   Further, the gaming system and the gaming machine according to the present invention can safely and efficiently manage the encryption key set in the peripheral device (door monitoring device).

またさらに、本発明に係る遊技システム、及び遊技機によって、周辺機器(扉監視装置)に設定した暗号化キーを用いてログインパスワードを生成し、当該周辺機器に対するアクセスについて安全性を高めることができる。
[付記E]
[背景技術]
Still further, with the gaming system and the gaming machine according to the present invention, a login password can be generated using an encryption key set in a peripheral device (door monitoring device), and security of access to the peripheral device can be enhanced. .
[Appendix E]
[Background Art]

従来より、複数の図柄がそれぞれの表面に設けられた複数のリールと、スタートスイッチと、ストップスイッチと、各リールに対応して設けられたステッピングモータと、制御部とを備えた、パチスロと呼ばれる遊技機が知られている。スタートスイッチは、メダルやコインなどの遊技媒体が遊技機に投入された後、スタートレバーが遊技者により操作されたこと(以下、「開始操作」ともいう)を検出し、全てのリールの回転の開始を要求する信号を出力する。ストップスイッチは、各リールに対応して設けられたストップボタンが遊技者により押されたこと(以下、「停止操作」ともいう)を検出し、該当するリールの回転の停止を要求する信号を出力する。ステッピングモータは、その駆動力を対応するリールに伝達する。また、制御部は、スタートスイッチ及びストップスイッチにより出力された信号に基づいて、ステッピングモータの動作を制御し、各リールの回転動作及び停止動作を行う。   Conventionally, a so-called pachi-slot including a plurality of reels provided with a plurality of symbols on each surface, a start switch, a stop switch, a stepping motor provided for each reel, and a control unit is provided. Gaming machines are known. The start switch detects that a start lever has been operated by a player (hereinafter, also referred to as a “start operation”) after a game medium such as a medal or a coin has been inserted into the gaming machine, and detects the rotation of all reels. Outputs a signal requesting start. The stop switch detects that a stop button provided for each reel is pressed by a player (hereinafter, also referred to as a "stop operation") and outputs a signal requesting that the rotation of the corresponding reel be stopped. I do. The stepping motor transmits the driving force to a corresponding reel. The control unit controls the operation of the stepping motor based on the signals output from the start switch and the stop switch, and performs the rotation operation and the stop operation of each reel.

このような遊技機では、開始操作が検出されると、プログラム上で乱数を用いた抽籤処理(以下、「内部抽籤処理」という)が行われ、その抽籤の結果(以下、「内部当籤役」という)と停止操作のタイミングとに基づいてリールの回転の停止を行う。そして、全てのリールの回転が停止され、入賞の成立に係る図柄の組合せ(表示役)が表示されると、その図柄の組合せに対応する特典が遊技者に付与される。なお、遊技者に付与される特典の例としては、遊技媒体(メダル等)の払い出し、遊技媒体を消費することなく再度、内部抽籤処理を行う再遊技(以下、「リプレイ」ともいう)の作動、遊技媒体の払い出し機会が増加するボーナスゲームの作動等を挙げることができる。   In such a gaming machine, when a start operation is detected, a lottery process using a random number (hereinafter, referred to as “internal lottery process”) is performed on a program, and the result of the lottery (hereinafter, “internal winning combination”) is performed. ) And the timing of the stop operation, the reel rotation is stopped. Then, when the rotation of all reels is stopped and a symbol combination (display combination) related to winning is displayed, a privilege corresponding to the symbol combination is given to the player. In addition, as an example of the privilege given to the player, the payout of the game medium (medal or the like) and the operation of the re-game (hereinafter, also referred to as “replay”) in which the internal lottery process is performed again without consuming the game medium. And the operation of a bonus game in which the chance of paying out game media increases.

また、このような遊技機に関して、各遊技機にIDを設定し、出荷から下取りに至るまでの所在を記録することで、メーカーが効果的に遊技機のリサイクルを図ることができるようにした遊技機エコシステムが開示されている(特許文献1参照)。
[先行技術文献]
[特許文献]
[特許文献1] 特開2014−57687号公報
In addition, with respect to such gaming machines, an ID is set for each gaming machine, and a location from shipping to trade-in is recorded, so that the manufacturer can effectively recycle the gaming machine. A machine ecosystem is disclosed (see Patent Document 1).
[Prior art documents]
[Patent Document]
[Patent Document 1] JP-A-2014-57687

[発明の概要]
[発明が解決しようとする課題]
[Summary of the Invention]
[Problems to be solved by the invention]

しかしながら、上述のような遊技機エコシステムによって各遊技機の所在の追跡が可能になったとしても、下取りした遊技機をすべてリサイクルできるわけではない。   However, even if the location of each gaming machine can be tracked by the gaming machine ecosystem as described above, not all of the traded-in gaming machines can be recycled.

遊技機を構成するパーツのそれぞれについてリサイクル可能であるか否かを効果的に判断し、リサイクル率を高めるためのさらなるシステムが必要とされる。また、リサイクル率が上がれば、利益率の向上や環境保全にもつながる。   Further systems are needed to effectively determine whether each of the parts making up the gaming machine is recyclable and to increase the recycling rate. In addition, an increase in the recycling rate leads to an improvement in profit margin and environmental protection.

従って、本発明の目的は、下取りした遊技機、又はホール等で故障した遊技機に関する動作記録や設定値等を簡単に読み出すことができる遊技システム、及び遊技機を提供することにある。   Accordingly, it is an object of the present invention to provide a gaming system and a gaming machine that can easily read out operation records, set values, and the like relating to a trade-in gaming machine or a gaming machine that has failed in a hall or the like.

また、本発明の目的は、遊技機に関する動作記録や設定値等が読み出された場合に、これらに関して診断を行い、診断結果を表示することができる遊技システム、及び遊技機を提供することにある。
[課題を解決するための手段]
Further, an object of the present invention is to provide a gaming system and a gaming machine capable of performing a diagnosis with respect to an operation record, a set value, and the like regarding a gaming machine when the operation record and the set value are read out and displaying a diagnosis result. is there.
[Means for solving the problem]

本発明は、以下のような遊技システム、及び遊技機を提供する。   The present invention provides the following gaming systems and gaming machines.

本発明の第1の実施態様に係る発明は、下記の構成を有する。
遊技機の扉(例えば、フロントドア2b、ミドルドア41)の開閉を監視する扉監視装置(例えば、24hドア監視ユニット63)と、
前記扉監視装置と通信により接続された制御部(例えば、パチスロ1の副制御回路101)と、
前記扉監視装置からデータを読み出す読出装置(例えば、ドア監視ユニット設定読出ツールが実行されるコンピュータ400)と、を備えた遊技システムであって、
前記読出装置は、
前記扉監視装置が、前記制御部に接続されていない状態で接続可能であり(例えば、副制御回路101と接続しているケーブル320を、コンピュータ400に差し替える)、
前記扉監視装置が記録したデータを読み出し、読み出したデータを予め定められた表示形式(例えば、図37に示すドア監視ユニット設定読出ツールの設定表示画面651のような表示形式)で表示するとともに、記録媒体(例えば、コンピュータ400のハードディスク(外部記憶装置413))に記憶し、
前記扉監視装置から読み出したデータを検証し、検証結果を予め定められた表示形式(例えば、図38に示すドア監視ユニット設定読出ツールの設定表示画面651のような表示形式)で表示するとともに、前記記録媒体に記憶する。
The invention according to the first embodiment of the present invention has the following configuration.
A door monitoring device (for example, a 24h door monitoring unit 63) for monitoring the opening and closing of a game machine door (for example, the front door 2b, the middle door 41);
A control unit (for example, a sub-control circuit 101 of the pachislot 1) connected to the door monitoring device by communication;
A reading device (for example, a computer 400 on which a door monitoring unit setting reading tool is executed) for reading data from the door monitoring device,
The reading device includes:
The door monitoring device is connectable without being connected to the control unit (for example, the cable 320 connected to the sub-control circuit 101 is replaced with a computer 400),
The data recorded by the door monitoring device is read, and the read data is displayed in a predetermined display format (for example, a display format such as a setting display screen 651 of a door monitoring unit setting reading tool shown in FIG. 37). Stored in a recording medium (for example, a hard disk (external storage device 413) of the computer 400),
The data read from the door monitoring device is verified, and the verification result is displayed in a predetermined display format (for example, a display format such as a setting display screen 651 of a door monitoring unit setting reading tool shown in FIG. 38). The information is stored in the recording medium.

本発明のこのような構成により、下取りした遊技機、又はホール等で故障した遊技機に関する動作記録や設定値等を簡単に読み出すことができるため、これらの情報を故障原因の特定に利用することができる。また、遊技機に関する動作記録や設定値等が読み出された場合に、これらに関して診断を行い、診断結果を表示することができるため、これらの情報を遊技機の品質評価に利用することができる。   With such a configuration of the present invention, it is possible to easily read out operation records, set values, and the like relating to a trade-in game machine or a game machine that has failed in a hall or the like, and use such information to specify the cause of the failure. Can be. In addition, when the operation record and the set value of the gaming machine are read out, a diagnosis can be performed on these and a diagnosis result can be displayed, so that such information can be used for quality evaluation of the gaming machine. .

本発明の第2の実施態様に係る発明は、下記の構成を有する。
遊技機の扉の開閉を監視する扉監視装置と、
前記扉監視装置と通信により接続された制御部と、を備える遊技機であって、
前記制御部は、
前記扉監視装置に接続されていない状態で、前記扉監視装置からデータを読み出す読出装置と接続可能であり、
前記扉監視装置から読み出されたデータは、
前記読出装置によって予め定められた表示形式で表示されるとともに、記録媒体に記憶され、
前記読出装置によって検証され、検証結果が予め定められた表示形式で表示されるとともに、記録媒体に記憶される。
The invention according to the second embodiment of the present invention has the following configuration.
A door monitoring device for monitoring the opening and closing of a game machine door,
A control unit connected to the door monitoring device by communication,
The control unit includes:
In a state not connected to the door monitoring device, it can be connected to a reading device that reads data from the door monitoring device,
Data read from the door monitoring device,
Displayed in a predetermined display format by the reading device, stored in a recording medium,
The verification is performed by the reading device, and the verification result is displayed in a predetermined display format and stored in a recording medium.

本発明のこのような構成により、下取りした遊技機、又はホール等で故障した遊技機に関する動作記録や設定値等を簡単に読み出すことができるため、これらの情報を故障原因の特定に利用することができる。また、遊技機に関する動作記録や設定値等が読み出された場合に、これらに関して診断を行い、診断結果を表示することができるため、これらの情報を遊技機の品質評価に利用することができる。
[発明の効果]
With such a configuration of the present invention, it is possible to easily read out operation records, set values, and the like relating to a trade-in game machine or a game machine that has failed in a hall or the like, and use such information to specify the cause of the failure. Can be. In addition, when the operation record and the set value of the gaming machine are read out, a diagnosis can be performed on these and a diagnosis result can be displayed, so that such information can be used for quality evaluation of the gaming machine. .
[The invention's effect]

本発明に係る遊技システム、及び遊技機によって、下取りした遊技機、又はホール等で故障した遊技機に関する動作記録や設定値等を簡単に読み出すことができるため、これらの情報を故障原因の特定に利用することができ、結果として、故障の少ない遊技機の設計が促進される。   With the gaming system and the gaming machine according to the present invention, it is possible to easily read out operation records and set values related to a gaming machine that has been traded-in or a gaming machine that has failed in a hall or the like. It can be utilized, and as a result, the design of the gaming machine with less trouble is promoted.

また、本発明に係る遊技システム、及び遊技機によって、下取りした遊技機、又はホール等で故障した遊技機に関する動作記録や設定値等を簡単に読み出すことができるため、これらの情報に基づいて、遊技機の品質評価に利用することができる。   In addition, since the gaming system according to the present invention and the gaming machine, it is possible to easily read the operation record and the set value and the like regarding the gaming machine that has been traded in, or a gaming machine that has failed in a hall or the like. It can be used for quality evaluation of gaming machines.

また、本発明に係る遊技システム、及び遊技機によって、遊技機に関する動作記録や設定値等が読み出された場合に、これらに関して診断を行い、異常な項目を所定の表示態様で表示することができるため、異常なパーツや異常な状態を容易に識別することができる。   In addition, when the game system according to the present invention and the gaming machine read out operation records, setting values, and the like related to the gaming machine, diagnosis can be performed on these, and abnormal items can be displayed in a predetermined display mode. Therefore, abnormal parts and abnormal states can be easily identified.

1 パチスロ
2 外装体
2a キャビネット
2b フロントドア
11 液晶表示装置
63 24hドア監視ユニット
67 ドア開閉監視スイッチ
72 副制御基板
101 副制御回路
102 サブCPU
103 サブRAM
103a サブDRAM
103b サブSRAM
108 サブRTC
300 制御LSI
201 メダルセレクタ
234 制御LSI

DESCRIPTION OF SYMBOLS 1 Pachislot 2 Exterior body 2a Cabinet 2b Front door 11 Liquid crystal display 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
103a sub DRAM
103b Sub SRAM
108 Sub RTC
300 control LSI
201 Medal selector 234 Control LSI

Claims (4)

遊技媒体を識別可能な遊技媒体識別装置と、
前記遊技媒体識別装置と通信により接続された制御部と、
暗号化キーを生成することが可能な暗号化装置と、を備えた遊技システムであって、
前記通信は、暗号化された通信データによる双方向通信であり、
前記遊技媒体識別装置は、通信データを暗号化し、暗号化された通信データを復号化するための前記暗号化キーを記憶可能であり、
前記暗号化装置は、
前記暗号化キーを入力可能なGUIを備え、
前記GUIを介して入力された前記暗号化キーを所定の記憶形式で記憶媒体に出力することを特徴とする遊技システム。
A game medium identification device capable of identifying a game medium,
A control unit connected to the game medium identification device by communication,
An encryption device capable of generating an encryption key, and a gaming system comprising:
The communication is a two-way communication using encrypted communication data,
The game medium identification device is capable of encrypting communication data and storing the encryption key for decrypting the encrypted communication data,
The encryption device,
A GUI for inputting the encryption key;
A gaming system, wherein the encryption key input via the GUI is output to a storage medium in a predetermined storage format.
前記暗号化装置は、
前記所定の記憶形式で前記記憶媒体に出力する前記暗号化キーを、前記暗号化キーとは異なる暗号化キーにより暗号化することを特徴とする、請求項1に記載の遊技システム。
The encryption device,
The gaming system according to claim 1, wherein the encryption key to be output to the storage medium in the predetermined storage format is encrypted with an encryption key different from the encryption key.
遊技媒体を投入する投入口と、
前記投入口から投入された前記遊技媒体を識別可能な遊技媒体識別装置と、
暗号化された通信データによる双方向通信により前記遊技媒体識別装置と接続された制御部と、を備える遊技機であって、
前記遊技媒体識別装置は、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記暗号化キーは、
前記暗号化キーを入力可能なGUIを備えた暗号化装置に入力され、
前記暗号化装置によって、所定の記憶形式で記憶媒体に出力されることを特徴とする遊技機。
An input port for inputting game media,
A game medium identification device capable of identifying the game medium inserted from the slot,
A control unit connected to the game medium identification device by two-way communication by encrypted communication data,
The game medium identification device,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
The encryption key is
The encryption key is input to an encryption device having a GUI capable of inputting the encryption key,
A gaming machine characterized by being output to a storage medium in a predetermined storage format by the encryption device.
遊技媒体を識別可能な遊技媒体識別装置であって、
前記遊技媒体識別装置は、
暗号化された通信データによる双方向通信により、他の装置と接続され、
通信データを暗号化し、暗号化された通信データを復号化するための暗号化キーを記憶可能であり、
前記暗号化キーは、
前記暗号化キーを入力可能なGUIを備えた暗号化装置に入力され、
前記暗号化装置によって、所定の記憶形式で記憶媒体に出力されることを特徴とする遊技媒体識別装置。

A game medium identification device capable of identifying a game medium,
The game medium identification device,
By two-way communication with encrypted communication data, it is connected to other devices,
It is possible to store the encryption key for encrypting the communication data and decrypting the encrypted communication data,
The encryption key is
The encryption key is input to an encryption device having a GUI capable of inputting the encryption key,
A game medium identification device characterized by being output to a storage medium in a predetermined storage format by the encryption device.

JP2018130492A 2018-07-10 2018-07-10 Pachinko machine Active JP7092580B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018130492A JP7092580B2 (en) 2018-07-10 2018-07-10 Pachinko machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018130492A JP7092580B2 (en) 2018-07-10 2018-07-10 Pachinko machine

Publications (2)

Publication Number Publication Date
JP2020005963A true JP2020005963A (en) 2020-01-16
JP7092580B2 JP7092580B2 (en) 2022-06-28

Family

ID=69149556

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018130492A Active JP7092580B2 (en) 2018-07-10 2018-07-10 Pachinko machine

Country Status (1)

Country Link
JP (1) JP7092580B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003159465A (en) * 2001-11-28 2003-06-03 Aruze Corp Key unit for game-related device and monitoring system for game-related device and game center
JP2005021660A (en) * 2003-06-11 2005-01-27 Olympia:Kk Game machine, and command communication method and command communication program for game machine
JP2006204324A (en) * 2005-01-25 2006-08-10 Samii Kk Game machine
JP2016105934A (en) * 2016-03-17 2016-06-16 株式会社オリンピア Game machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003159465A (en) * 2001-11-28 2003-06-03 Aruze Corp Key unit for game-related device and monitoring system for game-related device and game center
JP2005021660A (en) * 2003-06-11 2005-01-27 Olympia:Kk Game machine, and command communication method and command communication program for game machine
JP2006204324A (en) * 2005-01-25 2006-08-10 Samii Kk Game machine
JP2016105934A (en) * 2016-03-17 2016-06-16 株式会社オリンピア Game machine

Also Published As

Publication number Publication date
JP7092580B2 (en) 2022-06-28

Similar Documents

Publication Publication Date Title
JP6345425B2 (en) Game machine
JP6317586B2 (en) Game machine
JP6303133B2 (en) Amusement stand
JP2019084004A (en) Board case unit for game machine
JP7029951B2 (en) Pachinko machine
JP4288365B2 (en) Game system
JP7092582B2 (en) Gaming system and gaming machine
JP7092581B2 (en) Pachinko machine
JP7092580B2 (en) Pachinko machine
JP7092583B2 (en) Gaming system and gaming machine
JP2005040276A (en) Game machine, and illegal action preventing method and program of game machine
JP6529725B2 (en) Gaming machine
JP7235275B2 (en) Game system and game machine
JP2015196053A (en) game board
JP4493684B2 (en) Game machine
JP2014226502A (en) Game machine
JP4518335B2 (en) Game machine
JP2015196047A (en) game board
JP6332976B2 (en) Game machine
JP6228021B2 (en) GAME SYSTEM, GAME DEVICE, AND GAME CONTROL DEVICE
JP2019084003A (en) Board case unit for game machine
JP6603393B2 (en) Game machine
JP6923191B2 (en) Mobile terminals, programs, and information management systems
JP4518337B2 (en) Game machine
JP4518333B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220325

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20220406

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20220421

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: 20220607

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220616

R150 Certificate of patent or registration of utility model

Ref document number: 7092580

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150