JP2788599B2 - Computer device and computer device identification method when a plurality of computer devices are connected - Google Patents

Computer device and computer device identification method when a plurality of computer devices are connected

Info

Publication number
JP2788599B2
JP2788599B2 JP33382193A JP33382193A JP2788599B2 JP 2788599 B2 JP2788599 B2 JP 2788599B2 JP 33382193 A JP33382193 A JP 33382193A JP 33382193 A JP33382193 A JP 33382193A JP 2788599 B2 JP2788599 B2 JP 2788599B2
Authority
JP
Japan
Prior art keywords
machine
master
computer device
slave
identification number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP33382193A
Other languages
Japanese (ja)
Other versions
JPH07191949A (en
Inventor
誠二 安田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konami Group Corp
Original Assignee
Konami 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 Konami Corp filed Critical Konami Corp
Priority to JP33382193A priority Critical patent/JP2788599B2/en
Publication of JPH07191949A publication Critical patent/JPH07191949A/en
Application granted granted Critical
Publication of JP2788599B2 publication Critical patent/JP2788599B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータが内蔵さ
れたコンピュータ装置と、このコンピュータ装置を複数
台接続した際のコンピュータ装置の識別方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer device having a built-in computer, and a method for identifying a computer device when a plurality of such computer devices are connected.

【0002】[0002]

【従来の技術】一般に、コンピュータが内蔵されたコン
ピュータ装置を利用してひとつの機能を果たす場合、各
コンピュータ装置の通信部を通信ケーブル等で接続して
ひとつの通信グループが形成される。そして、この通信
グループ内には、グループ全体の管理を行なうマスタマ
シンが設定され、その他のコンピュータ装置はこのマス
タマシンの指示に従うスレイブマシンに設定される。更
に、スレイブマシンに設定されたコンピュータ装置には
それぞれ異なる識別番号が付与され、各スレイブマシン
を個別に識別することができるように構成されている。
2. Description of the Related Art Generally, when one function is performed by using a computer device having a built-in computer, a communication group is formed by connecting communication units of the respective computer devices with a communication cable or the like. In this communication group, a master machine for managing the entire group is set, and the other computer devices are set as slave machines in accordance with the instructions of the master machine. Further, different identification numbers are assigned to the computer devices set in the slave machines, respectively, so that each slave machine can be individually identified.

【0003】この具体的な例として、例えば業務用ゲー
ム機が知られている。複数台でゲームを行なう場合、総
合的にゲーム展開を管理するマスタマシンには特定の識
別番号が設定され、これ以外の各ゲーム機はスレイブマ
シンに設定されると共にそれぞれ異なる識別番号が設定
される。そして、各ゲーム機はデータに送り先の識別番
号を付すことにより、そのデータが目的のゲーム機で受
信されるように構成される。
As a specific example of this, for example, an arcade game machine is known. When playing a game with a plurality of game machines, a specific identification number is set for a master machine that comprehensively manages game development, and other game machines are set to slave machines and have different identification numbers. . Each game machine is configured such that the data is given an identification number of a destination, so that the data is received by a target game machine.

【0004】ところで、この識別番号を設定するため
に、従来、ゲーム機等のコンピュータ装置には番号設定
が可能なスイッチ、あるいは番号が記憶されたROM等
を備えるという設定方式が採用されていた。
In order to set the identification number, a computer system such as a game machine has conventionally used a setting method in which a switch capable of setting a number or a ROM or the like in which a number is stored is provided.

【0005】[0005]

【発明が解決しようとする課題】ところが、上記のよう
にスイッチやROM等を備えるような設定方式ではコン
ピュータ装置の構成が複雑になる。また、上記スイッチ
が装着された場合には、使用に際してそれぞれのコンピ
ュータ装置に識別番号を設定する作業が要求されると共
に、このときに設定者が識別番号を誤って重複設定する
等の虞れもあり、その後の通信に支障を来すことも考え
られる。
However, the configuration of the computer device is complicated in the setting method including the switches and the ROM as described above. In addition, when the switch is mounted, it is required to set an identification number in each computer device when using the switch, and at this time, there is a possibility that the setter may mistakenly set the identification number. There is a possibility that it will hinder subsequent communication.

【0006】本発明は、上記問題点を解決するためにな
されたものであり、各コンピュータ装置毎の識別番号の
設定が確実、かつ容易に行なえ、しかもそれが簡単な構
成で実現されるコンピュータ装置及び該コンピュータ装
置を複数台接続した際の各コンピュータ装置の識別方法
の提供を目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and a computer device in which an identification number for each computer device can be reliably and easily set, and which is realized with a simple configuration. It is another object of the present invention to provide a method for identifying each computer device when a plurality of such computer devices are connected.

【0007】[0007]

【課題を解決するための手段】請求項1に係る発明は、
複数台を通信可能に接続し、それぞれの電源部のオンに
伴う起動後に相互にデータ交信してデータ処理等が行な
えるコンピュータ装置において、マスタマシンであるこ
とを示すマスタ確定信号が他のコンピュータ装置から送
信されたか否かを確認する判定手段と、起動時点から所
定時間の計時を行う計時手段と、上記所定時間内に上記
他のコンピュータ装置からのマスタ確定信号が確認され
ないときにのみマスタ確定信号を上記所定時間より短い
所定の周期で他のコンピュータ装置に送信するとともに
自己機をマスタマシンと確定するマスタマシン確定手段
と、上記所定時間内に上記他のコンピュータ装置からの
マスタ確定信号が確認されたときは自己機をスレイブマ
シンと確定するとともに、この時点での上記計時手段の
計時値をラッチするスレイブマシン確定手段とを備える
構成としたものである。
The invention according to claim 1 is
In a computer device in which a plurality of devices are communicably connected and can perform data processing and the like by mutually exchanging data after startup when each power supply unit is turned on, a master determination signal indicating a master machine is transmitted to another computer device. Determination means for confirming whether or not a signal has been transmitted from the computer; timing means for measuring a predetermined time from the start time; and a master determination signal only when a master determination signal from the other computer device is not confirmed within the predetermined time. Is transmitted to the other computer device at a predetermined cycle shorter than the predetermined time, and the master machine determination means for determining the self machine as the master machine, and a master determination signal from the other computer device is confirmed within the predetermined time. In this case, the self-machine is determined as the slave machine, and the time value of the time-measuring means at this point is latched. It is obtained by a configuration and a slave machine determining means.

【0008】請求項2に係る発明は、請求項1記載のコ
ンピュータ装置において、スレイブマシンに対してラッ
チした計時値の送信を要求する信号を送信する応答要求
信号送信手段と、マスタマシンからの応答要求信号に応
答してラッチした計時値を返信する返信手段とを備える
構成としたものである。
According to a second aspect of the present invention, in the computer device of the first aspect, a response request signal transmitting means for transmitting a signal requesting transmission of the latched time value to the slave machine, and a response from the master machine And a return means for returning the clock value latched in response to the request signal.

【0009】請求項3に係る発明は、請求項2記載のコ
ンピュータ装置において、上記所定時間を複数区分に区
分けする区分け手段を備え、上記応答要求信号送信手段
は各区分内の計時値毎に応答要求を行うものであって、
かつ、この応答要求に応答したスイレブマシンに対して
順次識別番号を割り当てる識別番号割当手段を備える構
成としたものである。
According to a third aspect of the present invention, there is provided the computer apparatus according to the second aspect, further comprising a dividing means for dividing the predetermined time into a plurality of sections, wherein the response request signal transmitting means responds to each time value in each section. Making a request,
In addition, the configuration is provided with an identification number allocating means for sequentially allocating identification numbers to the switching machines that have responded to the response request.

【0010】請求項4に係る発明は、請求項3記載のコ
ンピュータ装置において、1の区分内に複数の応答があ
ったときは、該区分を更に分割する区分分割手段を備え
る構成としたものである。
According to a fourth aspect of the present invention, in the computer device according to the third aspect, when a plurality of responses are received in one section, the section is provided with a section dividing means for further dividing the section. is there.

【0011】請求項5に係る発明は、請求項4記載のコ
ンピュータ装置において、上記分割は上記所定時間の最
小単位まで行えるように構成したものである。
According to a fifth aspect of the present invention, in the computer device of the fourth aspect, the division is performed up to a minimum unit of the predetermined time.

【0012】請求項6に係る発明は、請求項3乃至5記
載のコンピュータ装置において、マスタ確定信号の受信
が少なくとも上記所定時間において確認されないことを
検出するマスタ停止判定手段と、マスタマシンの停止が
確認された場合に上記識別番号に基づいて全スレイブマ
シンの中から1台を選定する選定手段と、この選定手段
によって自己機が選定された際に自己機をマスタマシン
に格上げするマスタ格上手段とを備える構成としたもの
である。
According to a sixth aspect of the present invention, in the computer apparatus according to the third to fifth aspects, master stop determination means for detecting that reception of a master confirmation signal is not confirmed at least in the predetermined time, and stopping the master machine. Selection means for selecting one of all slave machines based on the identification number when confirmed, and master upgrade means for upgrading the self machine to a master machine when the self machine is selected by the selection means This is a configuration including:

【0013】請求項7に係る発明は、複数台を通信可能
に接続し、それぞれの電源部のオンに伴う起動後に相互
にデータ交信してデータ処理等を行なうようになされた
コンピュータ装置において、起動時点から所定時間内
に、マスタマシンであることを示すマスタ確定信号が他
のコンピュータ装置から送信されたか否かを確認し、他
のコンピュータ装置からのマスタ確定信号が確認されな
いときにのみマスタ確定信号を他のコンピュータ装置に
送信するとともに自己機をマスタマシンと確定し、他の
コンピュータ装置からのマスタ確定信号が確認されたと
きは自己機をスレイブマシンと確定するように構成した
ものである。
According to a seventh aspect of the present invention, there is provided a computer apparatus in which a plurality of units are communicably connected, and each other performs data communication and performs data processing or the like after the respective power units are turned on. Within a predetermined time from the point in time, it is checked whether or not a master determination signal indicating that it is a master machine is transmitted from another computer device, and only when a master determination signal from another computer device is not confirmed, the master determination signal is output. Is transmitted to another computer device, the own device is determined as a master machine, and when a master determination signal from the other computer device is confirmed, the own device is determined as a slave machine.

【0014】[0014]

【作用】上記請求項1記載の発明によれば、各電源部が
オンし、計時手段による起動時点からの所定時間内に、
判定手段によって他のコンピュータ装置からのマスタ確
定信号が確認されない場合、マスタマシン確定手段がマ
スタ確定信号を所定時間より短い所定の周期で送出する
と共に自己機をマスタマシンと確定し、一方他のコンピ
ュータ装置においては判定手段によってこのマスタ確定
信号が確認されて、スレイブマシン確定手段が自己機を
スレイブマシンと確定すると共に、この時点での計時値
をラッチする。このため、最初に起動されたコンピュー
タ装置のみがマスタマシンに確定されると共に、スレイ
ブマシンと確定されたコンピュータ装置には上記計時値
がラッチされる。
According to the first aspect of the present invention, each of the power supply units is turned on, and within a predetermined time from the start time by the time measuring means,
If the determination means does not confirm a master determination signal from another computer device, the master machine determination means sends a master determination signal at a predetermined cycle shorter than a predetermined time and determines its own machine as a master machine. In the apparatus, the master determination signal is confirmed by the determination means, and the slave machine determination means determines the own machine as the slave machine and latches the time value at this time. Therefore, only the computer device that is started first is determined as the master machine, and the clock value is latched in the computer device determined as the slave machine.

【0015】上記請求項2記載の発明によれば、マスタ
マシンとなった場合、その応答要求信号送信手段はスレ
イブマシンにラッチ済の計時値の送信を要求し、スレイ
ブマシンにおいては返信手段が上記計時値を返信するこ
とにより、マスタマシンには各スレイブマシンの計時値
が送付される。
According to the second aspect of the present invention, when the master machine becomes the master machine, the response request signal transmitting means requests the slave machine to transmit the latched clock value, and in the slave machine, the reply means transmits the latched time value. By returning the time value, the time value of each slave machine is sent to the master machine.

【0016】上記請求項3記載の発明によれば、区分け
手段による各区分での応答要求に対して、応答したコン
ピュータ装置に識別番号割当手段が順次識別番号を割り
当てる。
According to the third aspect of the present invention, in response to a response request in each section by the sectioning means, the identification number assigning section sequentially assigns an identification number to the computer device which has responded.

【0017】上記請求項4記載の発明によれば、上記応
答要求に対する応答が複数の場合、区分分割手段が応答
要求時の区分を分割する。
According to the fourth aspect of the invention, when there are a plurality of responses to the response request, the division dividing means divides the division at the time of the response request.

【0018】上記請求項5記載の発明によれば、上記区
分分割手段による区分けは計時値の最小単位で限界とさ
れる。
According to the fifth aspect of the present invention, the division by the division dividing means is limited by the minimum unit of the clock value.

【0019】上記請求項6記載の発明によれば、既存の
マスタマシンからのマスタ確定信号が途絶えた場合に、
各スレイブマシンの選定手段が登録されている識別番号
に基づいて全スレイブマシンの中から1台のコンピュー
タ装置を選定し、その結果、自己機が選定された場合に
は、マスタ格上手段が自己機を新たなマスタマシンに格
上げする。
According to the sixth aspect of the present invention, when the master determination signal from the existing master machine is interrupted,
The means for selecting each slave machine selects one computer device from all the slave machines based on the registered identification number, and as a result, when the own machine is selected, the master elevating means selects the self-machine. Machine is upgraded to a new master machine.

【0020】上記請求項7記載の発明によれば、起動時
点から所定時間内に他のコンピュータ装置からのマスタ
確定信号が確認されない場合には、マスタ確定信号を出
力して自己機をマスタマシンと確定し、一方、他のコン
ピュータ装置から送信されたマスタ確定信号を確認した
コンピュータ装置は、自己機をスレイブマシンと確定す
る。
According to the seventh aspect of the present invention, when a master confirmation signal from another computer is not confirmed within a predetermined time from the start time, a master confirmation signal is output to make the self machine a master machine. The computer device that has confirmed and confirmed the master determination signal transmitted from the other computer device determines itself as a slave machine.

【0021】[0021]

【実施例】図7は、本発明に係るコンピュータ装置を業
務用のゲーム装置1として利用した場合の概略構成を示
している。このゲーム装置1は複数台のゲーム機2でひ
とつのゲームが行なえるもので、各ゲーム機2は、遊技
者が手で操作する各種操作部材21、ゲームを進行する
ゲーム制御部22、ゲーム画面を映し出すモニタ23、
及び上記各部に電源を供給する電源部24等を備えてい
る。
FIG. 7 shows a schematic configuration when a computer device according to the present invention is used as a game device 1 for business use. The game apparatus 1 can play one game with a plurality of game machines 2. Each game machine 2 includes various operation members 21 that are manually operated by a player, a game control unit 22 that progresses the game, a game screen. Monitor 23,
And a power supply section 24 for supplying power to the above-described sections.

【0022】更に、上記ゲーム機2には、他のゲーム機
2と通信するための通信部3が装備され、この通信部3
には通信ケーブル4が接続されて通信部3の相互間で通
信が行なえるようになっている。この通信部3は、上記
ゲーム機2と通信ケーブル4との間で行なわれるデータ
の送受を仲介するものであり、ゲーム機2に電源が投入
されると、上記電源部24から電源が供給されて起動す
るようになっている。
Further, the game machine 2 is provided with a communication unit 3 for communicating with another game machine 2.
Is connected to a communication cable 4 so that communication between the communication units 3 can be performed. The communication section 3 mediates the transmission and reception of data between the game machine 2 and the communication cable 4. When the game machine 2 is powered on, the power is supplied from the power supply section 24. To start.

【0023】図8は上記ゲーム装置1における通信系統
のブロック構成を示しており、それぞれの通信部3は通
信ケーブル4によりバス接続されてひとつの通信グルー
プを形成している。
FIG. 8 shows a block configuration of a communication system in the game apparatus 1. Each communication unit 3 is connected to a bus by a communication cable 4 to form one communication group.

【0024】図1は、上記通信部3とその周辺のブロッ
ク構成を示している。通信部3は不図示のマイクロコン
ピュータや記憶部等からなり、この通信部3には識別番
号割当プログラム31や通信プログラム32等が備えら
れている。
FIG. 1 shows a block diagram of the communication section 3 and its peripherals. The communication unit 3 includes a microcomputer, a storage unit, and the like (not shown). The communication unit 3 includes an identification number assignment program 31, a communication program 32, and the like.

【0025】この識別番号割当プログラム31は、ゲー
ム機2が起動された場合に自己機がマスタマシン、ある
いはスレイブマシンのいずれであるかを先ず判定すると
共に、マスタマシンであると判定された際にはその他の
ゲーム機2(スレイブマシン)にそれぞれ識別番号を割
り当て、スレイブマシンと判定された場合にはマスタマ
シンと通信しながら自己機と他のスレイブマシンとの各
識別番号を登録するものである。また、上記通信プログ
ラム32は、前記ゲーム制御部22からの信号に基づい
てゲーム用データに送り先の識別番号を付して目的のゲ
ーム機2にデータを送出させるものである。
When the game machine 2 is started, the identification number assignment program 31 first determines whether the game machine 2 is a master machine or a slave machine, and when the game machine 2 is determined to be a master machine, Is to assign an identification number to each of the other game machines 2 (slave machines), and to register each identification number of its own machine and another slave machine while communicating with the master machine when it is determined to be a slave machine. . In addition, the communication program 32 causes the game data to be transmitted to the target game machine 2 by attaching the identification number of the destination to the game data based on the signal from the game control unit 22.

【0026】上記識別番号割当プログラム31は、比較
的簡単なプログラムで作成される関係上、ゲーム機2に
電源が投入された時点と略同時に起動するが、上記通信
プログラム32は、ある程度の立上り時間を要するため
に多少遅れて起動するようになっているか、あるいは少
なくとも識別番号割当プログラム31の初期起動の後に
通信プログラム32の初期起動が行なわれるようになっ
ている。
Since the identification number assigning program 31 is created by a relatively simple program, it is started almost at the same time as the power is turned on to the game machine 2, but the communication program 32 has a certain rise time. Or the communication program 32 is started at least after the initial start of the identification number assignment program 31 at least.

【0027】上記識別番号割当プログラム31は、図1
に示すように判定手段31a、計時手段31b、マスタ
マシン確定手段31c、スレイブマシン確定手段31
d、識別番号付与手段31e、識別番号登録手段31
f、及びマスタマシン再設定手段31g等で構成されて
いる。
The above-mentioned identification number assignment program 31 corresponds to FIG.
As shown in the figure, the determining means 31a, the time measuring means 31b, the master machine determining means 31c, the slave machine determining means 31
d, identification number assigning means 31e, identification number registering means 31
f, and a master machine resetting means 31g.

【0028】上記判定手段31aは通信ケーブル4上に
おいて、自己機がマスタマシンであることを示すマスタ
確定信号が他のゲーム機から送出されているか否かを判
定するものである。
The determining means 31a determines whether or not a master determination signal indicating that the own machine is the master machine is transmitted from another game machine on the communication cable 4.

【0029】上記計時手段31bは自己機がマスタマシ
ンであるか否かの判定を行なうタイミングを与えるもの
で、この計時手段31bには識別番号割当プログラム3
1の起動と同期して初期設定値Tmaxが設定され、以
後時間の経過に伴い初期設定値Tmaxから単位時間T
dを減じるようになっている。この計時は、判定手段3
1aが他のゲーム機2からのマスタ確定信号を受信した
時点で中止され、この受信がなされない場合には上記計
時値Tが0になるまで行なわれるようになっている。な
お、上記初期設定値Tmaxは、いずれの通信プログラ
ム32の立上り時間よりも多少大きな値に設定されてい
る。
The clocking means 31b gives a timing for determining whether or not the own machine is the master machine.
1, the initial setting value Tmax is set in synchronization with the start of the unit 1, and as the time elapses thereafter, the unit time Tmax
d is reduced. This timing is determined by the judgment means 3
1a is stopped when a master confirmation signal from another game machine 2 is received. If the master determination signal is not received, the process is performed until the time value T becomes zero. Note that the initial setting value Tmax is set to a value slightly larger than the rise time of any of the communication programs 32.

【0030】マスタマシン確定手段31cは、上記計時
値Tが0になった時にマスタ確定信号を送出すると共
に、自己機に識別番号Nmとして1を設定し、自己機を
マスタマシンと確定するものである。このマスタマシン
確定手段31cによって一旦マスタマシンと確定される
と、そのゲーム機2は、マスタマシンに設定されている
間マスタ確定信号を上記初期設定時間Tmaxより短い
周期、例えば上記時間Tmaxの2分の1の周期で出力
し続けるようになっている。
The master machine deciding means 31c sends out a master deciding signal when the counted value T becomes 0, sets 1 as an identification number Nm to its own machine, and decides its own machine as a master machine. is there. Once the master machine is determined by the master machine determining means 31c, the game machine 2 outputs a master determination signal during a period shorter than the initial setting time Tmax, for example, two minutes of the time Tmax while being set in the master machine. The output is continuously performed in one cycle.

【0031】スレイブマシン確定手段31dは、判定手
段31aによって他のゲーム機からのマスタ確定信号が
確認された場合に自己機をスレイブマシンと確定し、そ
の時点で計時値Tをラッチし、その計時値Tをそのゲー
ム機2のスレイブ計時値Tsとして設定するようになっ
ている。
The slave machine deciding means 31d decides its own machine as a slave machine when the master decision signal from another game machine is confirmed by the judging means 31a, latches the time value T at that time, and The value T is set as the slave clock value Ts of the game machine 2.

【0032】上記識別番号付与手段31eは前記の応答
要求信号送信手段、区分け手段、及び識別番号割当手段
を備え、自己機に識別番号Nm=1が設定されてマスタ
マシンと確定された場合に他の各スレイブマシンに対し
て2以下の識別番号Nmを割り当てるようになってい
る。
The identification number assigning means 31e includes the response request signal transmitting means, the classifying means, and the identification number allocating means. When the identification number Nm = 1 is set in the own machine and the master machine is determined as the master machine, the other means is provided. Is assigned an identification number Nm of 2 or less to each slave machine.

【0033】一方、識別番号登録手段31fは前記返信
手段を備え、スレイブマシンに確定された場合にマスタ
マシンからの要求に応じて自己機のスレイブ計時値Ts
を送出すると共に、マスタマシンによって割り当てられ
た識別番号Nmを自己機に登録するようになっている。
On the other hand, the identification number registering means 31f includes the reply means, and when the slave machine is determined, the slave time count value Ts of its own machine in response to a request from the master machine.
Is transmitted, and the identification number Nm assigned by the master machine is registered in the own machine.

【0034】上記マスタマシン再設定手段31gは前記
マスタ停止判定手段、選定手段、及びマスタ更新手段を
備え、所定時間以上マスタ確定信号が受信されない場
合、自己機の識別番号がスレイブマシンの中で最も小さ
いか否かを判定して、最小であれば自己機をマスタマシ
ンに格上設定するものである。
The master machine resetting means 31g includes the master stop judging means, the selecting means, and the master updating means. If a master confirmation signal is not received for a predetermined time or more, the identification number of the own machine is the most among slave machines. It is determined whether or not it is smaller, and if it is the smallest, the own machine is set as the master machine.

【0035】次に本発明に係るゲーム装置1の識別番号
割当に関する制御動作を図2,3,4に示すフローチャ
ートに基づいて説明する。図2に示すフローチャート
は、識別番号割当プログラム31において自己機をマス
タマシン、あるいはスレイブマシンのいずれであるかを
決定する際の制御動作を示しており、また、図3,4に
示すフローチャートは上記識別番号付与手段31eの制
御動作を示している。
Next, a control operation relating to the identification number assignment of the game apparatus 1 according to the present invention will be described with reference to flowcharts shown in FIGS. The flowchart shown in FIG. 2 shows a control operation when the identification number assignment program 31 determines whether the own machine is a master machine or a slave machine, and the flowcharts shown in FIGS. The control operation of the identification number assigning means 31e is shown.

【0036】図7に示すゲーム装置1において、順次電
源投入が行なわれて各通信部3が起動されると(ステッ
プS1)、上記計時手段31bの計時値Tが初期設定値
Tmaxに設定され(ステップS2)、通信プログラム
32が立上った後でケーブル4上に他のゲーム機2から
のマスタ確定信号が有るか否かが判定され(ステップS
3)、このマスタ確定信号が受信されない場合には計時
値Tが0か否かが判定される(ステップS4)。
In the game apparatus 1 shown in FIG. 7, when the power is sequentially turned on and each communication unit 3 is started (step S1), the clock value T of the clock unit 31b is set to the initial set value Tmax ( Step S2) After the communication program 32 has started, it is determined whether or not there is a master confirmation signal from another game machine 2 on the cable 4 (Step S2).
3) If this master determination signal is not received, it is determined whether or not the clock value T is 0 (step S4).

【0037】そして、計時値Tが0でない場合には上記
初期設定値Tmaxから単位時間Tdを減じてその値を
新たな計時値Tに設定し(ステップS5)、再びステッ
プS3へ戻る。
If the time value T is not 0, the unit time Td is subtracted from the initial set value Tmax, the value is set as a new time value T (step S5), and the process returns to step S3.

【0038】もし、あるゲーム機2が上記通信グループ
で最も早く起動された場合、他のゲーム機2からのマス
タ確定信号が受信されないため、やがてステップS4で
計時値が0になったと判定される。この結果、そのゲー
ム機2に装備された通信部3はマスタ確定信号を出力す
ると共に(ステップS6)、識別番号Nmとして1を設
定し、自己機をマスタマシンと確定する。
If a certain game machine 2 is activated the earliest in the communication group, a master determination signal from another game machine 2 is not received, so that it is determined in a step S4 that the time value has reached zero. . As a result, the communication unit 3 provided in the game machine 2 outputs a master determination signal (step S6), sets 1 as the identification number Nm, and determines the own machine as the master machine.

【0039】一方、マスタマシンより遅れて起動された
ゲーム機2では、上記ステップS3で、他のゲーム機2
からのマスタ確定信号が受信されることになり、その結
果ステップS7へ移行して自己機をスレイブマシンと確
定すると共に、その時点での上記計時値Tをスレイブ計
時値Tsとして設定し、マスタマシンから識別番号Nm
が割り当てられるまでこの計時値Tsを仮の識別番号と
して使用する。
On the other hand, in the game machine 2 started after the master machine, the other game machines 2
From the master machine, the process proceeds to step S7 to determine the self machine as the slave machine, and sets the time value T at that time as the slave time value Ts. To identification number Nm
Is used as a temporary identification number until is assigned.

【0040】上記ステップS6でマスタマシンと確定さ
れた場合、そのゲーム機2の通信部3において上記識別
番号付与手段31eが動作を開始する。この制御動作を
図3,4に示すフローチャートに基づいて説明する。
If it is determined in step S6 that the machine is the master machine, the communication unit 3 of the game machine 2 starts the operation of the identification number assigning means 31e. This control operation will be described with reference to the flowcharts shown in FIGS.

【0041】同図に示すフローチャートにおいて、ステ
ップS11で通信ケーブル4上に接続可能な台数Mと識
別番号Nm=2とが設定され、続いて上記スレイブ計時
値Tsの属する範囲0〜TmaxがM個の探索区分に区
分けされ(ステップS12)、その探索区分を指定する
区分番号Dが1に設定されて最初の探索区分が指定され
る(ステップS13)。
In the flowchart shown in the figure, the number M connectable on the communication cable 4 and the identification number Nm = 2 are set in step S11, and then the range 0 to Tmax to which the slave clock value Ts belongs is M. (Step S12), the section number D specifying the search section is set to 1, and the first search section is specified (step S13).

【0042】この指定された探索区分で応答要求信号が
送出され(ステップS15)、この応答要求に対して該
当するスレイブ計時値Tsを有するスレイブマシンから
は応答信号(スレイブ値Tsを含む)が返信される。こ
の応答信号の存在が確認された場合(ステップS17で
YESと判定)、その応答信号が1機からのものである
か否かが判定され(ステップS19)、この信号が1機
からのものである場合には、応答したそのゲーム機2の
仮の識別番号(Ts)に上記識別番号Nm=2を付与し
て送出する(ステップS21)。こうして、応答したゲ
ーム機2に新たな識別番号Nmが割り当てられると共
に、既に識別番号Nmが設定されているスレイブマシン
に対して、新たに起動されたスレイブマシンの識別番号
Nmを送出してこれを登録させる(ステップS22)。
そして、この時点で識別番号Nmが接続可能台数Mと等
しいか否かが判定され(ステップS23)、NOと判定
された際には上記識別番号Nmに1が加算されて次の識
別番号(Nm)が設定される(ステップS24)。
A response request signal is transmitted in the designated search section (step S15), and a response signal (including the slave value Ts) is returned from the slave machine having the corresponding slave clock value Ts in response to the response request. Is done. When the presence of this response signal is confirmed (YES in step S17), it is determined whether or not the response signal is from one device (step S19), and this signal is from one device. If there is, the identification number Nm = 2 is added to the provisional identification number (Ts) of the game machine 2 that has responded and transmitted (step S21). In this way, the new identification number Nm is assigned to the responding game machine 2, and the identification number Nm of the newly activated slave machine is transmitted to the slave machine in which the identification number Nm is already set, and this is transmitted. It is registered (step S22).
At this time, it is determined whether or not the identification number Nm is equal to the connectable number M (step S23). If the determination is NO, 1 is added to the identification number Nm and the next identification number (Nm ) Is set (step S24).

【0043】一方、ステップS19で応答信号が2機以
上からのものであるときは、後述するステップS35以
降で識別番号Nmの割り当ての処理が行なわれる。な
お、応答信号の数は、データが同時に返送されることで
破壊されると2以上と判断されるようになっている。
On the other hand, if the response signal is from two or more devices in step S19, the process of assigning the identification number Nm is performed in step S35 and thereafter. It should be noted that the number of response signals is determined to be 2 or more if data is destroyed by being returned at the same time.

【0044】続いて、上記の加算された識別番号(N
m)が上記接続可能台数Mより小さいか、あるいは等し
いかが判定され(ステップS25)、その結果YESと
判定されて識別番号Nmの割付けが終了していないのが
確認されると、上記区分番号Dが接続可能台数Mより小
さいか否かが判定される(ステップS27)。この判定
の結果、YESと判定されて残りの探索区分の存在が確
認されるとステップS29へ移行する。
Subsequently, the added identification number (N
It is determined whether m) is smaller than or equal to the connectable number M (step S25). As a result, when it is determined that the assignment of the identification number Nm is not completed, it is determined that the answer is YES. It is determined whether D is smaller than the connectable number M (step S27). As a result of this determination, when the determination is YES and the existence of the remaining search section is confirmed, the process proceeds to step S29.

【0045】一方、上記ステップS17でNOと判定さ
れた場合、区分番号Dに1を加算することにより次の探
索区分が指定され(ステップS29)、その加算された
区分番号Dが接続可能台数Mより小さいか否かが判定さ
れ(ステップS31)、この結果、YESと判定された
場合には未探索の区分があるため、ステップS15へ戻
る。
On the other hand, if NO is determined in the step S17, the next search section is designated by adding 1 to the section number D (step S29), and the added section number D corresponds to the connectable number M It is determined whether or not it is smaller (step S31). As a result, if YES is determined, there is an unsearched section, and the process returns to step S15.

【0046】このように、ステップS15からステップ
S31の制御動作が繰返し行なわれる途上において、ス
テップS27、あるいはステップS31でNOと判定さ
れて全探索区分の探索が終了したことが確認されると再
びステップS13からの制御動作が開始される。以上の
制御動作がゲーム中においても繰り返されることによっ
て、マスタマシンより後から電源投入されたゲーム機2
にはスレイブマシンと確定される毎に識別番号Nmがそ
れぞれ割り当てられる。
As described above, while the control operation from step S15 to step S31 is repeatedly performed, if NO is determined in step S27 or step S31 and it is confirmed that the search of all search sections is completed, step S27 is performed again. The control operation from S13 is started. The above control operation is repeated during the game, so that the game machine 2 powered on after the master machine is turned on.
Is assigned an identification number Nm each time it is determined to be a slave machine.

【0047】そして、ステップS23でYESと判定さ
れて識別番号Nmの割り当てが終了したのが確認された
場合、このフローチャートで示す制御動作が終了する。
一方、不測の事態等によって識別番号Nmが接続可能台
数Mを超えた数値になった場合、上記ステップS25で
NOと判定され、ステップS33でエラー出力を行なっ
て電源の再投入等を促し、この制御動作を終了する。
Then, if it is determined as YES in step S23 and it is confirmed that the assignment of the identification number Nm has been completed, the control operation shown in this flowchart ends.
On the other hand, when the identification number Nm exceeds the connectable number M due to an unexpected situation or the like, NO is determined in the above-described step S25, an error is output in step S33, and the power supply is urged again, and the like. The control operation ends.

【0048】ところで、ステップS19でNOと判定さ
れた場合、図4に示すフローチャートのステップS35
へ移行して探索区分が更に2分の1に分割され、この分
割された探索区分の時間幅が前記単位時間Tdより大き
いことが確認されると(ステップS37でYES)、そ
の分割された区分の先頭側を指定し(ステップS3
9)、ステップS41,S43,S45では上記の指定
された区分内のゲーム機2に応答が要求されると共に、
その応答信号の有無や数が判定される。
If the determination in step S19 is NO, step S35 in the flowchart shown in FIG.
Then, the search section is further divided into half, and if it is confirmed that the time width of the divided search section is greater than the unit time Td (YES in step S37), the divided section is divided. Is specified (step S3).
9) In steps S41, S43, and S45, a response is requested to the game machines 2 in the specified section, and
The presence or absence and the number of the response signals are determined.

【0049】この結果、上記ステップS43でNOと判
定されて応答信号の無いことが確認された場合、ステッ
プS53で前記区分番号D内の探索が終了したか否かが
判定され、終了していないのが確認されると(ステップ
S53でNOと判定)、上記探索区分内の未探索範囲へ
シフトされ(ステップS54)、ステップS41へ戻
る。
As a result, if it is determined NO in step S43 and it is confirmed that there is no response signal, it is determined in step S53 whether or not the search within the section number D has been completed. Is confirmed (NO in step S53), the search is shifted to the unsearched range in the search section (step S54), and the process returns to step S41.

【0050】また、上記ステップS45でYESと判定
されて上記分割された指定区分内での応答信号が1機か
らのものであるのが確認された場合、その応答したゲー
ム機2に識別番号Nmが割り当てられ(ステップS4
7)、新たに割り当てられたこの識別番号Nmを既にス
レイブマシンとなっているゲーム機2に送出して登録さ
せる(ステップS48)。そして、この識別番号Nmに
1が加算されて次の識別番号(Nm)が設定される(ス
テップS49)。
If it is determined YES in step S45 and it is confirmed that the response signal in the divided designated section is from one, the identification number Nm is assigned to the responding game machine 2. Is assigned (step S4).
7) The newly assigned identification number Nm is transmitted to the game machine 2 already serving as the slave machine and registered (step S48). Then, 1 is added to the identification number Nm to set the next identification number (Nm) (step S49).

【0051】更に、上記ステップS45でNOと判定さ
れて複数の応答信号が確認された場合、ステップS35
に戻って探索区分の再分割が行なわれる。このように、
指定された区分内の応答要求に対して複数の応答信号が
ある場合、ステップS45でこの信号が1機からのもの
になったのが確認されるまで、ステップS35からステ
ップS45の処理が繰返し行なわれる。
Further, if NO is determined in step S45 and a plurality of response signals are confirmed, step S35
Then, the search section is re-divided. in this way,
If there are a plurality of response signals for the response request in the designated section, the processing from step S35 to step S45 is repeatedly performed until it is confirmed in step S45 that this signal has come from one device. It is.

【0052】この再分割の繰返しにより、上記ステップ
S37でNOと判定された場合は、これ以上の再分割を
行なっても複数のスレイブ計時値Tsを個別に分離する
ことは不可能であるため、ステップS33へ移行してエ
ラー出力を行ない、このフローチャートの制御動作が終
了する。
If NO is determined in step S37 by repeating this subdivision, it is impossible to separate the plurality of slave clock values Ts individually even if further subdivision is performed. The flow shifts to step S33 to output an error, and the control operation in this flowchart ends.

【0053】ところで、図2に示すフローチャートのス
テップS7においてスレイブマシンと確定された場合、
そのゲーム機2に備えられた前記識別番号登録手段31
fが制御動作を開始することになる。この制御動作を図
5で示すフローチャートに基づいて説明する。マスタマ
シンとなったゲーム機2からの応答要求信号が受信され
(ステップS61)、ゲーム機2のスレイブ計時値Ts
がこの応答要求信号の指定する区分に属する場合にはそ
の計時値Tsをマスタマシンへ送出して返信し(ステッ
プS63)、その後マスタマシンからの識別番号Nmが
受信されると(ステップS65でYESと判定)、その
識別番号Nmを上記スレイブ計時値Tsに代えて自己機
に登録する(ステップS67)。
By the way, when the slave machine is determined in step S7 of the flowchart shown in FIG.
The identification number registration means 31 provided in the game machine 2
f starts the control operation. This control operation will be described with reference to the flowchart shown in FIG. A response request signal is received from the game machine 2 that has become the master machine (step S61), and the slave time count Ts of the game machine 2 is received.
If it belongs to the section specified by the response request signal, the clock value Ts is sent to the master machine and returned (step S63), and then, when the identification number Nm is received from the master machine (YES in step S65). The identification number Nm is registered in the own device in place of the slave clock value Ts (step S67).

【0054】その後、新たに起動されたスレイブマシン
の識別番号Nmが受信されると(ステップS69でYE
Sと判定)、その識別番号Nmを登録し(ステップS7
1)、自己機に登録済の識別番号Nmで最大のものが接
続可能台数Mより小さいか否かが判定され(ステップS
73)、YESと判定された際にはステップS69へ戻
る。
Thereafter, when the identification number Nm of the newly activated slave machine is received (YE in step S69).
S), and the identification number Nm is registered (step S7).
1) It is determined whether the largest identification number Nm registered in the own device is smaller than the connectable number M (step S).
73) If the determination is YES, the process returns to step S69.

【0055】一方、ステップS73でNOと判定された
場合、これ以上に大きな識別番号Nmが設定されること
がないため、この制御動作を終了する。こうして、新た
にゲーム機2が起動される毎に、そのゲーム機2の識別
番号を順次登録することにより、スレイブマシン相互間
の通信がゲーム機2の起動状況に応じて的確に行なえる
ものである。
On the other hand, if NO is determined in the step S73, the control operation is terminated because no larger identification number Nm is set. In this way, each time a new game machine 2 is started, the identification numbers of the game machines 2 are sequentially registered, so that communication between the slave machines can be performed accurately according to the start situation of the game machine 2. is there.

【0056】また、マスタマシンから識別番号Nmが割
り当てられた後のゲーム機2においては、前記マスタマ
シン再設定手段31gが機能を開始し、これ以後、上記
識別番号登録手段31fと共に制御動作を行なうことに
なる。このマスタマシン再設定手段31gの制御動作を
図6に示すフローチャートに基づいて説明する。自己機
に識別番号Nmが登録されると本フローチャートがスタ
ートし、先ずタイマーを初期値にリセットした後、計時
を開始する(ステップS81)。
In the game machine 2 after the identification number Nm has been assigned by the master machine, the master machine resetting means 31g starts functioning, and thereafter performs a control operation together with the identification number registering means 31f. Will be. The control operation of the master machine resetting means 31g will be described with reference to the flowchart shown in FIG. When the identification number Nm is registered in the own device, this flowchart starts. First, the timer is reset to an initial value, and then the time measurement is started (step S81).

【0057】この計時を行ないながらマスタ確定信号が
受信されるか否かを判定し(ステップS83)、YES
と判定されてマスタ確定信号の受信が確認された場合、
ステップS81に戻ってタイマーを再び初期値にリセッ
トするが、ステップS83でNOと判定されるとタイマ
ーの計時値tが比較基準時間Taより大きいか否かが判
定され(ステップS85)、NOと判定されるとステッ
プS83へ戻る。なお、この比較基準時間Taは、前記
初期設定時間Tmax乃至はこの数倍程度の時間長さに
設定されるものである。
It is determined whether or not a master determination signal is received while performing the timing (step S83), and YES
Is determined and reception of the master confirmation signal is confirmed,
Returning to step S81, the timer is reset to the initial value again. If NO is determined in step S83, it is determined whether the timer value t of the timer is greater than the comparison reference time Ta (step S85), and NO is determined. Then, the process returns to step S83. Note that the comparison reference time Ta is set to the initial setting time Tmax or a time length about several times as long as the initial setting time Tmax.

【0058】上記ステップS83で、マスタ確定信号が
確認されない場合、上記タイマーによって計時時間がカ
ウントアップされ、ステップS85でYESと判定され
て計時値tが上記比較基準時間Taより大きくなったの
が確認されると、マスタマシンが停止状態であると判断
してステップS87へ移行する。
If the master determination signal is not confirmed in step S83, the timer counts up the timer, and in step S85, the determination is YES, and it is confirmed that the clock t has become larger than the comparison reference time Ta. Then, it is determined that the master machine is in the stopped state, and the process shifts to step S87.

【0059】このステップS87では、自己機の識別番
号Nmを他のスレイブマシンと比較し、この結果、自己
機の識別番号Nmが最も小さいことが確認されると(Y
ESと判定)、識別番号Nmを1に設定して自己機をマ
スタマシンと確定し(ステップS89)、この制御動作
を終了する。なお、上記ステップS87でNOと判定さ
れた場合、ステップS81へ移行して再びマスタ確定信
号の受信確認の制御動作に戻る。
In this step S87, the identification number Nm of the own machine is compared with other slave machines, and as a result, it is confirmed that the identification number Nm of the own machine is the smallest (Y
(Evaluated as ES), the identification number Nm is set to 1, the own machine is determined as the master machine (step S89), and this control operation is ended. If the determination in step S87 is NO, the process moves to step S81 and returns to the control operation for confirming the reception of the master confirmation signal again.

【0060】こうして、新たにマスタマシンに設定され
たゲーム機においては、これ以後、識別番号付与手段3
1eが機能することになり、図3,4に示すフローチャ
ートに基づいて制御動作が行なわれることになる。
In the game machine newly set as the master machine, the identification number assigning means 3
1e will function, and the control operation will be performed based on the flowcharts shown in FIGS.

【0061】ところで、上記実施例では、計時手段31
bによるスレイブ計時値Tsに新たな識別番号Nmを割
り当てる場合を示したが、このスレイブ計時値Tsをそ
のまま識別番号として用いてもよく、この場合には識別
番号割当プログラム31を簡単な構成とすることができ
る。
By the way, in the above embodiment, the clock means 31
Although the case where a new identification number Nm is assigned to the slave clock value Ts by b is shown, the slave clock value Ts may be used as it is as the identification number. In this case, the identification number allocation program 31 has a simple configuration. be able to.

【0062】また、ゲーム装置1が多数のゲーム機2で
構成される場合、上記単位時間Tdを短く設定する程、
スレイブ計時値Tsが同一となる確率が少なくなるが、
この場合、スレイブ計時値Tsの桁数が大きくなるた
め、データ処理が煩雑となって好ましくない。このた
め、この単位時間Tdの長さは、通信グループ内のゲー
ム機台数Mや前記初期設定値Tmax等に基づいて適正
に定めることが好ましい。
When the game apparatus 1 is composed of a large number of game machines 2, the shorter the unit time Td is,
Although the probability that the slave timekeeping value Ts becomes the same decreases,
In this case, since the number of digits of the slave clock value Ts becomes large, data processing becomes complicated, which is not preferable. Therefore, it is preferable that the length of the unit time Td is appropriately determined based on the number M of game machines in the communication group, the initial setting value Tmax, and the like.

【0063】上記実施例ではマスタマシンからの応答要
求信号を1度に1回だけ送出する場合を示したが、通信
ケーブル4周辺に電磁気等によるノイズの発生が懸念さ
れる場合には、正確を期すために数度の応答要求信号を
送出してもよい。
In the above embodiment, the case where the response request signal from the master machine is transmitted only once at a time has been described. For this purpose, a response request signal may be transmitted several times.

【0064】更に、上記実施例では指定区分を2分の1
に分割する場合を示したが、この分割度合いは2分の1
に限定されるものではない。ただし、本発明に係るゲー
ム機の通信部3をデジタルで処理する制御方式とした場
合、上記分割を2分の1に設定すると2進数で表された
デジタル値を一桁シフトするだけでよく、上記分割を極
めて簡単に行なうことができ、好都合となる。
Further, in the above embodiment, the designated division is set to one half.
, The degree of division is は.
However, the present invention is not limited to this. However, if the communication unit 3 of the game machine according to the present invention is of a control method of processing digitally, setting the above division to half only requires shifting the digital value represented by a binary number by one digit, The above division can be performed very easily, which is convenient.

【0065】加えて、上記実施例では識別番号Nmがゲ
ーム機台数Mを超えるまで割当てを続行する、即ち全ス
レイブマシンへの識別番号Nmの割当てが完了するまで
それを続行する場合を示したが、マスタマシンが起動さ
れてから所定時間が経過した後、自動的に割当動作を終
了するようにしてもよい。この場合、故障中、あるいは
何らかの事情により起動されないゲーム機等が発生して
も割当動作を所定時間で完了するため、ゲーム機台数M
の変化に対して柔軟に対応できるゲーム装置とすること
ができる。
In addition, in the above embodiment, the allocation is continued until the identification number Nm exceeds the number of game machines M, that is, the allocation is continued until the allocation of the identification number Nm to all slave machines is completed. Alternatively, the allocation operation may be automatically terminated after a predetermined time has elapsed since the master machine was started. In this case, the allocation operation is completed in a predetermined time even if a game machine or the like that is not activated due to a failure or for some reason occurs.
It is possible to provide a game device that can flexibly respond to changes in the game.

【0066】また、上記実施例では、複数機からの応答
信号が確認された探索区分において、最初にスレイブ計
時値Tsを分離した際の指定区分で、引き続き探索を行
なう場合を示したが、残りのスレイブ計時値Tsを探索
するに際し、一旦指定区分を未探索の範囲全体に拡大し
て探索を再スタートするようにしてもよい。また、他の
実施例として、上記したスレイブ値Tsの最初の分離
後、分割されて小さくなっている指定区分で応答要求を
行ない、その結果応答信号が確認されない場合には上記
指定区分を最終分割の直前の大きさまで拡大して応答要
求を行なうようにしてもよい。このように、最初のスレ
イブ値Tsの分離後において、指定区分を拡大するよう
に構成すると、未探索の範囲における探索時間を短縮す
ることができる。
In the above-described embodiment, a case has been described in which, in the search section in which the response signals from a plurality of devices have been confirmed, the search is continuously performed in the specified section when the slave timekeeping value Ts is first separated. In searching for the slave timekeeping value Ts, the designated section may be temporarily expanded to the entire unsearched range and the search may be restarted. Further, as another embodiment, after the first separation of the slave value Ts described above, a response request is made in a specified section that has been divided and reduced, and if the response signal is not confirmed as a result, the specified section is finally divided. The response request may be made after being enlarged to the size immediately before. In this way, if the designated section is expanded after the separation of the first slave value Ts, the search time in the unsearched range can be reduced.

【0067】上記実施例の通信ケーブル4はそれぞれ直
列状に接続されて一本のケーブルのように構成される場
合を示したが、この通信ケーブル4をループ状にしても
よく、このように構成した通信ケーブルも本発明に係る
ゲーム装置1に適用することができる。
Although the case where the communication cables 4 of the above embodiment are connected in series and configured as a single cable is shown, this communication cable 4 may be formed in a loop shape. The communication cable described above can also be applied to the game device 1 according to the present invention.

【0068】上記実施例において、後から起動されるゲ
ーム機2に対して順次識別番号Nmが割り当てられる場
合を示したが、各ゲーム機に、定期的に各スレイブマシ
ンに応答を求めて停止状態のスレイブマシンを探索する
停止スレイブ確認手段、この停止スレイブマシンの識別
番号Nmを各スレイブマシンに消去させる消去番号送出
手段、および消去番号送出手段の指令によって識別番号
Nmを消去する消去手段を設けるようにしてもよい。こ
うすることにより、スレイブマシンの中に停止されるも
のが生じても、停止状態のゲーム機の識別番号Nmが自
動的に消去されるため、スレイブマシン相互間の通信が
正常に行なえ、自由度の大きなゲーム機とすることがで
きる。
In the above embodiment, the case where the identification numbers Nm are sequentially assigned to the game machines 2 started later is described. However, the game machines 2 are periodically stopped in response to the request from each slave machine for a response. The slave slave confirming means for searching for the slave machine of the above, erase number sending means for causing each slave machine to erase the identification number Nm of the stopped slave machine, and erasing means for erasing the identification number Nm according to a command of the erase number sending means It may be. By doing so, even if some of the slave machines are stopped, the identification number Nm of the stopped game machine is automatically deleted, so that communication between the slave machines can be performed normally and the degree of freedom can be improved. Large game machine.

【0069】また、識別番号に欠番が生じる場合、ゲー
ム機に、マスタマシンとなった際に現識別番号の大きさ
に基づいて再度新たな識別番号を順番に割り当てる再割
当手段を設けるようにしてもよい。ゲーム機2をこのよ
うに構成すると、識別番号に関して欠番の発生が防止さ
れる。
When a missing number occurs in the identification number, the game machine is provided with a re-allocation means for sequentially re-assigning a new identification number based on the size of the current identification number when the game machine becomes the master machine. Is also good. When the game machine 2 is configured in this manner, occurrence of a missing number in the identification number is prevented.

【0070】更に、上記実施例では通信することにより
ゲーム機の識別番号の決定、あるいはゲーム進行等を行
なう場合を説明したが、ゲーム機以外にパーソナルコン
ピュータ、現金出納機、自動販売機、自動券売機、ある
いは自動改札機等が通信ケーブルで複数台接続して使用
される場合にも、本発明に係るコンピュータ装置とこれ
が複数台接続された場合の識別方法を適用することがで
きる。
Further, in the above-described embodiment, the case where the identification number of the game machine is determined or the game progress is performed by communication has been described. However, in addition to the game machine, personal computers, cash teller machines, vending machines, vending machines The present invention can also be applied to a case where a plurality of machines or automatic ticket gates are connected by a communication cable, and the computer device according to the present invention and the identification method when a plurality of machines are connected.

【0071】[0071]

【発明の効果】以上のように、本発明によれば、計時手
段によって計時することにより、起動時点からの所定時
間内に、他のコンピュータ装置からのマスタ確定信号が
確認されない場合に自己機をマスタマシンと確定してマ
スタ確定信号を送出する一方、上記所定時間内に他のコ
ンピュータ装置からのマスタ確定信号が確認された場合
には自己機をスレイブマシンと確定してその時点での計
時値をラッチするようにしたので、マスタマシンとスレ
イブマシンとの確定が容易、かつ自動的に行なえる。
As described above, according to the present invention, when the master determination signal from another computer device is not confirmed within a predetermined time from the start time, the self-machine is timed by the time counting means. While the master machine is determined and the master confirmation signal is transmitted, if the master confirmation signal from another computer device is confirmed within the above-mentioned predetermined time, the self machine is determined as the slave machine and the clock value at that time is determined. Is latched, so that the master machine and the slave machine can be easily and automatically determined.

【0072】また、請求項2乃至3記載の発明によれ
ば、スレイブマシンと確定した時点での計時値をラッチ
してそれをマスタマシンに送信し、マスタマシンはスレ
イブマシンに識別番号を割り当てるように構成したた
め、識別番号が自動的に設定されることになり、識別番
号の設定用部材等が不要となって、しかも人為による設
定ミスが防止され、簡単な構成で確実な設定が行なえ
る。
According to the second and third aspects of the present invention, the time value at the time of determining the slave machine is latched and transmitted to the master machine, and the master machine assigns an identification number to the slave machine. Since the identification number is automatically set, the member for setting the identification number and the like are not required, and setting mistakes caused by humans can be prevented, and reliable setting can be performed with a simple configuration.

【0073】請求項4乃至5記載の発明によれば、複数
のスレイブマシンから応答がなされた場合に指定区分を
分割する区分分割手段を備え、この区分分割手段による
分割が、分割された区分が上記最小単位時間より短くな
るまで可能となるように構成したため、計時値の大きさ
に基づいて複数のスレイブマシンが限界まで区分けして
分離されるため、識別番号の設定が一層確実に行なわれ
る。
According to the fourth and fifth aspects of the present invention, there is provided a section dividing means for dividing a designated section when a response is made from a plurality of slave machines. Since the configuration is made such that the time is shorter than the minimum unit time, a plurality of slave machines are separated and separated to the limit based on the magnitude of the clock value, so that the identification number can be set more reliably.

【0074】請求項6記載の発明によれば、マスタマシ
ンの停止を確認するマスタ停止判定手段、スレイブマシ
ンの中から所定のルールで1台を選定する選定手段、お
よび自己機をマスタマシンに変更するマスタ格上手段を
備える構成としたため、マスタマシンが停止状態となっ
ても、スレイブマシンの中から新たなマスタマシンが自
動的に格上設定されて、正常な通信を継続することがで
きる。
According to the sixth aspect of the present invention, the master stop determination means for confirming the stop of the master machine, the selection means for selecting one of the slave machines according to a predetermined rule, and changing the own machine to the master machine Therefore, even if the master machine is stopped, a new master machine is automatically set from the slave machines and normal communication can be continued.

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

【図1】上記通信部とその周辺のブロック図である。FIG. 1 is a block diagram of the communication unit and its periphery.

【図2】マスタマシンとスレイブマシンのいずれである
かを判定する際の制御動作を示すフローチャートであ
る。
FIG. 2 is a flowchart illustrating a control operation when determining whether the machine is a master machine or a slave machine.

【図3】マスタマシンがスレイブマシンに識別番号の割
当てを行なう際の制御動作を示すフローチャートであ
る。
FIG. 3 is a flowchart showing a control operation when a master machine assigns an identification number to a slave machine.

【図4】図3に示すフローチャートの一部であり、再分
割して識別番号Nmを割り当てる制御動作を示すフロー
チャートである。
FIG. 4 is a flowchart showing a control operation which is a part of the flowchart shown in FIG. 3 and allocates an identification number Nm by subdivision.

【図5】スレイブマシンが自己機に識別番号の登録を行
なう際の制御動作を示すフローチャートである。
FIG. 5 is a flowchart showing a control operation when the slave machine registers an identification number in its own machine.

【図6】スレイブマシンをマスタマシンに更新する際の
制御動作を示すフローチャートである。
FIG. 6 is a flowchart showing a control operation when updating the slave machine to the master machine.

【図7】本発明に係る通信機能付きコンピュータ装置の
使用状態を示す概観図である。
FIG. 7 is a schematic view showing a use state of a computer device with a communication function according to the present invention.

【図8】上記コンピュータ装置の通信系統のブロック図
である。
FIG. 8 is a block diagram of a communication system of the computer device.

【符号の説明】[Explanation of symbols]

1 ゲーム装置 2 ゲーム機 3 通信部 4 通信ケーブル 21 操作部材 22 ゲーム制御部 23 モニタ 24 電源部 31 識別番号割当プログラム 31a 判定手段 31b 計時手段 31c マスタマシン確定手段 31d スレイブマシン確定手段 31e 識別番号付与手段 31f 識別番号登録手段 31g マスタマシン再設定手段 32 通信プログラム DESCRIPTION OF SYMBOLS 1 Game device 2 Game machine 3 Communication part 4 Communication cable 21 Operation member 22 Game control part 23 Monitor 24 Power supply part 31 Identification number assignment program 31a Judgment means 31b Clocking means 31c Master machine determination means 31d Slave machine determination means 31e Identification number assignment means 31f Identification number registration means 31g Master machine resetting means 32 Communication program

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 15/16 - 15/177 JICSTファイル(JOIS)────────────────────────────────────────────────── ─── Continued on the front page (58) Fields surveyed (Int.Cl. 6 , DB name) G06F 15/16-15/177 JICST file (JOIS)

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数台を通信可能に接続し、それぞれの
電源部のオンに伴う起動後に相互にデータ交信してデー
タ処理等が行なえるコンピュータ装置において、マスタ
マシンであることを示すマスタ確定信号が他のコンピュ
ータ装置から送信されたか否かを確認する判定手段と、
起動時点から所定時間の計時を行う計時手段と、上記所
定時間内に上記他のコンピュータ装置からのマスタ確定
信号が確認されないときにのみマスタ確定信号を上記所
定時間より短い所定の周期で他のコンピュータ装置に送
信するとともに自己機をマスタマシンと確定するマスタ
マシン確定手段と、上記所定時間内に上記他のコンピュ
ータ装置からのマスタ確定信号が確認されたときは自己
機をスレイブマシンと確定するとともに、この時点での
上記計時手段の計時値をラッチするスレイブマシン確定
手段とを備えたことを特徴とするコンピュータ装置。
A master determination signal indicating a master machine in a computer device in which a plurality of devices are communicably connected and can perform data processing and the like by exchanging data with each other after startup when each power supply unit is turned on. Determining means for checking whether or not has been transmitted from another computer device;
A clock means for measuring a predetermined time from the start-up time, and another computer which outputs a master determination signal at a predetermined cycle shorter than the predetermined time only when a master determination signal from the other computer device is not confirmed within the predetermined time. A master machine determining means for transmitting to the device and determining the own machine as a master machine, and when the master determining signal from the other computer device is confirmed within the predetermined time, the own machine is determined as a slave machine, A slave machine determining means for latching the time value of the time measuring means at this time.
【請求項2】 請求項1記載のコンピュータ装置におい
て、スレイブマシンに対してラッチした計時値の送信を
要求する信号を送信する応答要求信号送信手段と、マス
タマシンからの応答要求信号に応答してラッチした計時
値を返信する返信手段とを備えたことを特徴とするコン
ピュータ装置。
2. A computer apparatus according to claim 1, wherein said slave machine transmits a signal requesting transmission of a latched time value to said slave machine, and a response signal transmitting means for responding to a response request signal from said master machine. A computer device comprising: a reply unit that returns a latched time value.
【請求項3】 請求項2記載のコンピュータ装置におい
て、上記所定時間を複数区分に区分けする区分け手段を
備え、上記応答要求信号送信手段は各区分内の計時値毎
に応答要求を行うものであって、かつ、この応答要求に
応答したスレイブマシンに対して順次識別番号を割り当
てる識別番号割当手段を備えたことを特徴とするコンピ
ュータ装置。
3. The computer device according to claim 2, further comprising: a dividing unit that divides the predetermined time into a plurality of segments, wherein the response request signal transmitting unit issues a response request for each time value in each segment. And an identification number assigning means for sequentially assigning identification numbers to slave machines responding to the response request.
【請求項4】 請求項3記載のコンピュータ装置におい
て、1の区分内に複数の応答があったときは、該区分を
更に分割する区分分割手段を備えていることを特徴とす
るコンピュータ装置。
4. The computer apparatus according to claim 3, further comprising: a section dividing means for further dividing the section when a plurality of responses are received within one section.
【請求項5】 請求項4記載のコンピュータ装置におい
て、上記分割は上記所定時間の最小単位まで行えるよう
になされていることを特徴とするコンピュータ装置。
5. The computer device according to claim 4, wherein the division is performed up to a minimum unit of the predetermined time.
【請求項6】 請求項3乃至5記載のコンピュータ装置
において、マスタ確定信号の受信が少なくとも上記所定
時間において確認されないことを検出するマスタ停止判
定手段と、マスタマシンの停止が確認された場合に上記
識別番号に基づいて全スレイブマシンの中から1台を選
定する選定手段と、この選定手段によって自己機が選定
された際に自己機をマスタマシンに格上げするマスタ格
上手段とを備えたことを特徴とするコンピュータ装置。
6. A computer device according to claim 3, wherein said master stop determination means detects that reception of a master determination signal is not confirmed at least during said predetermined time, and said master stop determination means determines that said master machine has been stopped. Selecting means for selecting one of all slave machines based on the identification number; and master upgrading means for upgrading the own machine to a master machine when the own machine is selected by the selecting means. Computer device characterized by the following.
【請求項7】 複数台を通信可能に接続し、それぞれの
電源部のオンに伴う起動後に相互にデータ交信してデー
タ処理等を行なうようになされたコンピュータ装置にお
いて、起動時点から所定時間内に、マスタマシンである
ことを示すマスタ確定信号が他のコンピュータ装置から
送信されたか否かを確認し、他のコンピュータ装置から
のマスタ確定信号が確認されないときにのみマスタ確定
信号を他のコンピュータ装置に送信するとともに自己機
をマスタマシンと確定し、他のコンピュータ装置からの
マスタ確定信号が確認されたときは自己機をスレイブマ
シンと確定するようにしたことを特徴とするコンピュー
タ装置を複数台接続した際のコンピュータ装置の識別方
法。
7. A computer system in which a plurality of units are communicably connected and perform data processing and the like by exchanging data with each other after the start-up when each power supply unit is turned on. Check whether a master confirmation signal indicating that the computer is a master machine has been transmitted from another computer device, and send the master confirmation signal to another computer device only when a master confirmation signal from another computer device is not confirmed. At the same time, it determines its own machine as the master machine and sends
When the master confirmation signal is confirmed, the slave
A method of identifying a computer device when a plurality of computer devices are connected, wherein the computer device is determined to be thin .
JP33382193A 1993-12-27 1993-12-27 Computer device and computer device identification method when a plurality of computer devices are connected Expired - Lifetime JP2788599B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33382193A JP2788599B2 (en) 1993-12-27 1993-12-27 Computer device and computer device identification method when a plurality of computer devices are connected

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33382193A JP2788599B2 (en) 1993-12-27 1993-12-27 Computer device and computer device identification method when a plurality of computer devices are connected

Publications (2)

Publication Number Publication Date
JPH07191949A JPH07191949A (en) 1995-07-28
JP2788599B2 true JP2788599B2 (en) 1998-08-20

Family

ID=18270327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33382193A Expired - Lifetime JP2788599B2 (en) 1993-12-27 1993-12-27 Computer device and computer device identification method when a plurality of computer devices are connected

Country Status (1)

Country Link
JP (1) JP2788599B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790788A (en) * 1996-07-23 1998-08-04 International Business Machines Corporation Managing group events by a name server for a group of processors in a distributed computing environment
JP4554950B2 (en) * 2004-01-28 2010-09-29 日本電信電話株式会社 Reader ID control device, reader ID control method, and reader ID control program

Also Published As

Publication number Publication date
JPH07191949A (en) 1995-07-28

Similar Documents

Publication Publication Date Title
CN100375036C (en) Method and system for resource allocation in remembering grids
US4888683A (en) Method and apparatus for loading programs in a distributed processing system
JP2004533032A (en) System and method for constructing a host computer
CN104932926A (en) System and method for achieving dynamic matching of equipment and drives in intelligent operation system platform
CN109359020A (en) Start time test method and device, computer installation and storage medium
CN112100007A (en) Method and system for switching main controller in multi-controller storage equipment
CN116974874A (en) Database testing method and device, electronic equipment and readable storage medium
CN115629785A (en) Upgrading method, electronic device and storage medium
JP2788599B2 (en) Computer device and computer device identification method when a plurality of computer devices are connected
JP2000196749A (en) Intelligent network system
FI91108C (en) Multiprocessor system controller
CN110659138A (en) Data synchronization method, device, terminal and storage medium based on timing task
CN105391755A (en) Method and device for processing data in distributed system, and system
JPH11177655A (en) Device and method for automatically verifying communication software
CN114357428A (en) Unbinding method and related device of Internet of things equipment
CN115550427A (en) Equipment upgrading method, device, equipment and storage medium
CN101336412B (en) Method for installing auxiliary unit on computer
CN114331661A (en) Data verification method and device, electronic equipment and storage medium
CN113672487A (en) Message tracking method, device and system and computer readable storage medium
CN113342385A (en) Software upgrading method and device and air conditioner control panel
CN115878145B (en) Electronic device, system upgrading method thereof and computer readable storage medium
CN113515403B (en) Micro-service state checking method, computer device and storage medium
CN117857576A (en) Data synchronization method and server
JP2001128254A (en) Path information distribution method, path information distribution system and its terminal
CN117112315A (en) Data synchronization method and system of redundant equipment, storage medium and electronic equipment

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20090605

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090605

Year of fee payment: 11

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20090605

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090605

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100605

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 13

Free format text: PAYMENT UNTIL: 20110605

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110605

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120605

Year of fee payment: 14

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 15

Free format text: PAYMENT UNTIL: 20130605

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130605

Year of fee payment: 15

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140605

Year of fee payment: 16

EXPY Cancellation because of completion of term