JP2013106097A - Device and method for response confirmation, and program - Google Patents

Device and method for response confirmation, and program Download PDF

Info

Publication number
JP2013106097A
JP2013106097A JP2011246850A JP2011246850A JP2013106097A JP 2013106097 A JP2013106097 A JP 2013106097A JP 2011246850 A JP2011246850 A JP 2011246850A JP 2011246850 A JP2011246850 A JP 2011246850A JP 2013106097 A JP2013106097 A JP 2013106097A
Authority
JP
Japan
Prior art keywords
response
terminal
terminal device
communication
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2011246850A
Other languages
Japanese (ja)
Inventor
Nobuaki Tanaka
伸明 田中
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.)
Fujitsu Frontech Ltd
Original Assignee
Fujitsu Frontech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Frontech Ltd filed Critical Fujitsu Frontech Ltd
Priority to JP2011246850A priority Critical patent/JP2013106097A/en
Publication of JP2013106097A publication Critical patent/JP2013106097A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a device and a method for response confirmation, and a program, capable of securely confirming information reception, and even capable of flexibly coping with a terminal failure.SOLUTION: A response confirmation device having a plurality of terminal devices connected through a network includes: a communication control unit for controlling communication with the plurality of terminal devices; a response management unit for managing the presence or absence of a response from each terminal device; a representative terminal management unit for managing a predetermined number of terminal devices, from which responses are newly confirmed by the response management unit, as representative terminals; and a response destination setting unit for setting the response destination of the terminal device to one of the representative terminals, in simultaneous communication that simultaneously performs transmission to the plurality of terminal devices. The communication control unit performs the simultaneous communication. In the simultaneous communication, the response confirmation device transmits information including the response destination set by the response destination setting unit.

Description

本発明は、応答確認装置、応答確認方法、およびプログラムに関する。   The present invention relates to a response confirmation device, a response confirmation method, and a program.

例えば、競馬・競輪の発売・払い戻しシステムでは、制御装置と複数台の端末とが同一ネットワークを介して接続され、制御装置から複数台の端末へ、レースの発売開始、発売停止などをブロードキャストで一斉配信している。このとき端末は、レース発売開始や停止を制御装置から受信することで、該当レースの端末状態を発売開始、または発売停止に変更する。それらは、端末の発売状況の画面表示や、投票券購入依頼(例えば、マークカードの読み取り)の内容の確認のために使用される。   For example, in a horse racing / bicycle sales / refund system, the control device and multiple terminals are connected via the same network, and the start and stop of the race are broadcasted simultaneously from the control device to multiple terminals. Delivered. At this time, the terminal receives the start or stop of the race sale from the control device, thereby changing the terminal state of the race to the sale start or the sale stop. They are used for screen display of the terminal sale status and confirmation of the contents of a voting ticket purchase request (for example, reading a mark card).

このようなブロードキャストで一斉配信されたデータに対し、同一ネットワーク上に接続される全端末が正常に受信した旨の応答を行うと、制御装置は、全端末からほぼ同時にデータ受信することになる。よって、制御装置の受信処理が間に合わず、何台かの端末の応答が破棄される可能性がある。   When all terminals connected on the same network make a response to such data distributed simultaneously by broadcast, the control device receives data from all terminals almost simultaneously. Therefore, there is a possibility that the reception processing of the control device is not in time and the responses of some terminals are discarded.

また、端末が制御装置からの通信を受信できていない場合、当然のことながら、端末が発売開始や発売停止とならず、運用上問題が発生する。そのため、端末からの応答が来なかった場合、リトライ送信することになるが、再度ブロードキャスト送信すると、また同様に制御装置の受信処理が間に合わず、何台かの応答が破棄される可能性があり、リトライの意味がなくなってしまう。   In addition, when the terminal cannot receive communication from the control device, the terminal does not start or stop selling as a matter of course, which causes operational problems. For this reason, if no response is received from the terminal, retry transmission will be performed. However, if broadcast transmission is performed again, the reception processing of the control device may not be in time, and some responses may be discarded. The meaning of retry is lost.

そのため、ブロードキャストによるデータ配信において、端末は応答しないというインタフェース規定が用いられる場合がある。このとき、制御装置は、一定回数ブロードキャスト送信を繰り返し、そのうち1回でも端末側で受信できればよいという、不確実な方法でデータ送信することになる。よって、端末側で受信できていないことを制御装置側で検知することができず、端末が発売開始や停止にならないまま放置状態になる危険性がある。   For this reason, in broadcast data distribution, an interface rule that the terminal does not respond may be used. At this time, the control device repeats broadcast transmission a predetermined number of times, and data transmission is performed in an uncertain manner that it is only necessary that the terminal side can receive it once. Therefore, it is impossible for the control device to detect that the terminal cannot receive the signal, and there is a risk that the terminal may be left unattended without being started or stopped.

そこで、例えば、同報情報を送信する親局と、同報情報を受信する複数の子局を備えたシステムにおいて、グループ化された複数の子局の中に、代表子局と、従子局が定められる例がある。このとき、代表子局は、自局の応答情報と、同一グループ内の全従子局の応答情報とに基づく情報を送信する(例えば、特許文献1参照)。また、送信サイト上の送信ソフトウエアで定義した階層構造に基づき、上位階層が下位階層からの通信を受けてから確認応答を順次上位階層へ送信する方法もある(例えば、特許文献2参照)。   Therefore, for example, in a system including a master station that transmits broadcast information and a plurality of slave stations that receive the broadcast information, a representative slave station and a slave station are included in the grouped slave stations. There are examples to be defined. At this time, the representative slave station transmits information based on the response information of the own station and the response information of all slave stations in the same group (see, for example, Patent Document 1). There is also a method of transmitting confirmation responses sequentially to the upper layer after the upper layer receives communication from the lower layer based on the hierarchical structure defined by the transmission software on the transmission site (see, for example, Patent Document 2).

特開平4−13318号公報JP-A-4-13318 特開平7−200505号公報JP-A-7-200505

しかしながら、上記のように複数の局をグループ化したり、階層構造を利用したりする場合に、例えば代表子局や、上位階層の局が故障したような場合には、その局に情報を送信する局の情報が全て親局に届かなくなってしまうという問題がある。   However, when a plurality of stations are grouped as described above or a hierarchical structure is used, for example, if a representative slave station or a higher-layer station fails, information is transmitted to that station. There is a problem that all the station information does not reach the parent station.

上記課題に鑑み、本発明では、情報の受信確認を確実に行なうことができ、端末の故障時にも柔軟に対応が可能な応答確認装置、応答確認方法、およびプログラムを提供する。   In view of the above-described problems, the present invention provides a response confirmation device, a response confirmation method, and a program that can reliably confirm reception of information and can flexibly cope with a failure of a terminal.

一つの態様である応答確認装置は、複数の端末装置がネットワークを介して接続され、前記複数の端末装置との間の通信を制御する通信制御部と、前記端末装置からの応答の有無を管理する応答管理部と、前記端末装置のうち、前記応答管理部により新しく応答が確認された所定数の端末装置を代表端末として管理する代表端末管理部と、複数の前記端末装置に一斉に送信を行う一斉通信において、前記端末装置の応答先を前記代表端末のいずれかに設定する応答先設定部と、を有し、前記通信制御部は、前記一斉通信を行い、前記一斉通信において、前記応答先設定部が設定した応答先を含む情報を送信することを特徴としている。   The response confirmation apparatus according to one aspect is configured such that a plurality of terminal devices are connected via a network, a communication control unit that controls communication with the plurality of terminal devices, and whether or not there is a response from the terminal device A response management unit, a representative terminal management unit that manages, as a representative terminal, a predetermined number of terminal devices whose responses are newly confirmed by the response management unit among the terminal devices, and a plurality of the terminal devices that transmit all at once. A response destination setting unit that sets a response destination of the terminal device to one of the representative terminals in the simultaneous communication to be performed, and the communication control unit performs the simultaneous communication, and in the simultaneous communication, the response It is characterized in that information including a response destination set by the destination setting unit is transmitted.

別の態様である端末装置は、応答確認装置とネットワークを介して接続され、前記応答確認装置から送信されたデータにより設定された応答先の端末装置を認識する応答先認識部と、前記応答先認識部が、前記応答先を前記端末装置自身であると認識すると、前記端末装置自身が応答先と設定された子端末装置からの通信を管理する子端末管理部と、前記応答先認識部が、前記応答先を前記端末装置自身であると認識すると、前記子端末装置からの通信を受信し、受信した前記通信をまとめて前記応答確認装置に送信し、前記応答先が前記端末装置自身以外であると認識した場合には、認識された応答先に通信を行う通信制御部と、を有することを特徴としている。   A terminal device according to another aspect is connected to a response confirmation device via a network and recognizes a response destination terminal device set by data transmitted from the response confirmation device, and the response destination When the recognition unit recognizes that the response destination is the terminal device itself, the terminal device itself manages the communication from the child terminal device set as the response destination, and the response destination recognition unit When the response destination is recognized as the terminal device itself, it receives communications from the child terminal device, sends the received communications together to the response confirmation device, and the response destination is other than the terminal device itself. A communication control unit that performs communication with the recognized response destination.

別の態様である応答確認方法は、複数の端末装置がネットワークを介して接続された応答確認装置が、前記複数の端末装置へ送信を行う処理と、前記端末装置からの応答の有無を管理する処理と、前記端末装置のうち、新しく応答が確認された所定数の端末装置を代表端末として管理する処理と、複数の前記端末装置へ一斉に送信を行う一斉通信において、前記端末装置の応答先を前記代表端末のいずれかに設定する処理と、前記一斉通信を行い、前記一斉通信において、設定された応答先を含む情報を前記端末装置に送信する処理と、を有することを特徴としている。   In another aspect, the response confirmation method manages a process in which a response confirmation device in which a plurality of terminal devices are connected via a network transmits data to the plurality of terminal devices, and whether or not there is a response from the terminal device. In the processing, in the processing for managing a predetermined number of terminal devices for which new responses have been confirmed among the terminal devices as representative terminals, and in the simultaneous communication in which transmission is performed simultaneously to the plurality of terminal devices, the response destination of the terminal device And a process of performing the simultaneous communication and transmitting information including the set response destination to the terminal device in the simultaneous communication.

さらにまた別の態様である応答確認方法は、応答確認装置とネットワークを介して接続された端末装置が、前記応答確認装置により送信されたデータにより設定された応答先の端末装置を認識する処理と、前記応答先が前記端末装置自身であると認識すると、前記端末装置自身が応答先と設定された子端末装置からの通信を管理する処理と、前記応答先が前記端末装置自身であると認識されると、前記子端末装置からの通信を受信し、受信した前記通信をまとめて前記応答確認装置に送信し、前記応答先が前記端末装置自身以外の場合には、認識された応答先に通信を行う処理と、を有することを特徴としている。   Still further, the response confirmation method according to another aspect includes a process in which a terminal device connected to a response confirmation device via a network recognizes a response destination terminal device set by data transmitted by the response confirmation device; When the response destination is recognized as the terminal device itself, the terminal device itself recognizes that the response destination is the terminal device itself, and a process for managing communication from the child terminal device set as the response destination. Then, the communication from the child terminal device is received, the received communication is collectively transmitted to the response confirmation device, and when the response destination is other than the terminal device itself, the recognized response destination is And a process of performing communication.

なお、上述した本発明に係る方法をコンピュータに行わせるためのプログラムであっても、このプログラムを当該コンピュータによって実行させることにより、上述した本発明に係る方法と同様の作用・効果を奏するので、前述した課題が解決される。   In addition, even if it is a program for causing a computer to perform the method according to the present invention described above, since the program is executed by the computer, the same operations and effects as the method according to the present invention described above are achieved. The aforementioned problems are solved.

本発明によれば、情報の受信確認を確実に行なうことができ、端末の故障時にも柔軟に対応が可能な応答確認装置、応答確認方法、およびプログラムを提供することができる。   According to the present invention, it is possible to provide a response confirmation device, a response confirmation method, and a program that can surely confirm reception of information and can flexibly cope with a failure of a terminal.

一実施の形態による応答確認システムの構成を示す図である。It is a figure which shows the structure of the response confirmation system by one embodiment. 一実施の形態による制御装置のハードウエア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of the control apparatus by one Embodiment. 一実施の形態による端末装置のハードウエア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of the terminal device by one embodiment. 一実施の形態による制御装置の機能を示すブロック図であるIt is a block diagram which shows the function of the control apparatus by one embodiment 一実施の形態による端末装置の機能を示すブロック図である。It is a block diagram which shows the function of the terminal device by one embodiment. 一実施の形態による応答先情報の一例を示す図である。It is a figure which shows an example of the response destination information by one Embodiment. 一実施の形態による送信するデータの一例を示す図である。It is a figure which shows an example of the data transmitted by one Embodiment. 一実施の形態による正常な一斉通信のシーケンスを示す図である。It is a figure which shows the sequence of normal simultaneous communication by one Embodiment. 一実施の形態による正常な一斉通信のシーケンスを示す図である。It is a figure which shows the sequence of normal simultaneous communication by one Embodiment. 一実施の形態によるエラーのある一斉通信のシーケンスを示す図である。It is a figure which shows the sequence of the simultaneous communication with an error by one Embodiment. 一実施の形態によるエラーのある一斉通信のシーケンスを示す図である。It is a figure which shows the sequence of the simultaneous communication with an error by one Embodiment. 一実施の形態による代表端末管理テーブルの構成の一例を示す図である。It is a figure which shows an example of a structure of the representative terminal management table by one Embodiment. 一実施の形態による代表端末管理テーブルの具体例を示す図である。It is a figure which shows the specific example of the representative terminal management table by one Embodiment. 一実施の形態による通信の受信順を説明する図である。It is a figure explaining the order of reception of communication by one embodiment. 一実施の形態による制御装置の通常通信の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of normal communication of the control apparatus by one Embodiment. 一実施の形態による代表端末設定処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the representative terminal setting process by one Embodiment. 一実施の形態による端末装置の通常通信の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the normal communication of the terminal device by one Embodiment. 一実施の形態による制御装置の一斉通信の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of simultaneous communication of the control apparatus by one Embodiment. 一実施の形態による制御装置の一斉通信の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of simultaneous communication of the control apparatus by one Embodiment. 一実施の形態による制御装置のリトライ送信処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the retry transmission process of the control apparatus by one Embodiment. 一実施の形態による制御装置のリトライ送信処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the retry transmission process of the control apparatus by one Embodiment. 一実施の形態による端末装置の一斉送信受信の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the simultaneous transmission reception of the terminal device by one Embodiment.

以下、本発明の一実施の形態による応答確認システムについて説明する。図1は、本実施の形態による応答確認システム1の構成を示す図である。図1に示すように、本実施の形態による応答確認システム1は、制御装置3と複数の端末装置7−0、7−1、・・・、7−N(Nは2以上の整数:以下、まとめて、あるいは代表して端末装置7ともいう)とが、ネットワーク5を介して接続されたシステムである。応答確認システム1は、例えば、公営競技の発売・払戻システムなどに利用される。   Hereinafter, a response confirmation system according to an embodiment of the present invention will be described. FIG. 1 is a diagram showing a configuration of a response confirmation system 1 according to the present embodiment. As shown in FIG. 1, the response confirmation system 1 according to the present embodiment includes a control device 3 and a plurality of terminal devices 7-0, 7-1,..., 7-N (N is an integer of 2 or more: , Collectively or as a representative terminal device 7) is a system connected via the network 5. The response confirmation system 1 is used, for example, for a public competition sale / refund system.

図2は、制御装置3のハードウエア構成の一例を示す図である。図2に示すように、制御装置3は、CPU(Central Processing Unit)11、ROM(Read Only Memory)13、RAM(Random Access Memory)15、タイマ17、入出力部18、および通信回路19を有している。   FIG. 2 is a diagram illustrating an example of a hardware configuration of the control device 3. As shown in FIG. 2, the control device 3 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 13, a RAM (Random Access Memory) 15, a timer 17, an input / output unit 18, and a communication circuit 19. doing.

CPU11は、制御装置3全体の動作を制御する演算処理装置である。ROM13は、例えば、制御装置3の基本的な動作を制御するプログラムを予め記憶する記憶部である。RAM15は、例えば、制御装置3において、CPU11により実行される各種制御プログラムを記憶したり、プログラムを実行する際に必要に応じて作業領域として使用したりするための記憶部である。入出力部18は、例えばキーボード装置、マウス装置などの入力装置、および表示装置などの出力装置である。入力装置は、制御装置3の使用者により操作されると、その操作内容に対応付けられている使用者からの各種情報の入力を取得し、取得した入力情報をCPU11に送付する装置である。出力装置は、制御装置3による処理結果を出力する装置であり、CPU11により送付される表示データに応じてテキストや画像を表示する。   The CPU 11 is an arithmetic processing device that controls the operation of the entire control device 3. The ROM 13 is a storage unit that stores in advance a program for controlling basic operations of the control device 3, for example. The RAM 15 is, for example, a storage unit for storing various control programs executed by the CPU 11 in the control device 3 and using them as a work area as necessary when executing the programs. The input / output unit 18 is, for example, an input device such as a keyboard device or a mouse device, and an output device such as a display device. When operated by the user of the control device 3, the input device is a device that acquires input of various information from the user associated with the operation content and sends the acquired input information to the CPU 11. The output device is a device that outputs a processing result by the control device 3, and displays text and an image in accordance with display data sent by the CPU 11.

タイマ17は、制御装置3内部における時間を管理する計時装置であり、例えば、送信を行ってからの時間を計測する。CPU11は、例えばRAM15に記録されている所定の制御プログラムを読み出して実行することによって、各種の制御処理を行うようにすることもできる。通信回路19は、有線または無線により外部との間で行われる各種データの授受の管理を行うインタフェース装置である。   The timer 17 is a timing device that manages the time in the control device 3 and measures, for example, the time after transmission. For example, the CPU 11 can perform various control processes by reading and executing a predetermined control program recorded in the RAM 15. The communication circuit 19 is an interface device that manages transmission / reception of various types of data performed externally by wire or wireless.

制御装置3に応答確認装置としての処理を実行させるプログラムは、例えばRAM15に記憶させる。CPU11は、RAM15からプログラムを読み出し、制御装置3に、応答確認の動作を行なわせる。   A program that causes the control device 3 to execute processing as a response confirmation device is stored in, for example, the RAM 15. The CPU 11 reads the program from the RAM 15 and causes the control device 3 to perform a response confirmation operation.

図3は、端末装置7のハードウエア構成の一例を示す図である。図3に示すように、端末装置7は、CPU21、ROM23、RAM25、タイマ27、入出力部28、および通信回路29を有している。   FIG. 3 is a diagram illustrating an example of a hardware configuration of the terminal device 7. As illustrated in FIG. 3, the terminal device 7 includes a CPU 21, a ROM 23, a RAM 25, a timer 27, an input / output unit 28, and a communication circuit 29.

CPU21は、端末装置7全体の動作を制御する演算処理装置である。ROM23は、例えば、タイマ17の基本的な動作を制御するプログラムを予め記憶する記憶部である。RAM25は、例えば、端末装置7において、CPU21により実行される各種制御プログラムを記憶したり、プログラムを実行する際に必要に応じて作業領域として使用したりするための記憶部である。入出力部28は、例えばキーボード装置、マウス装置などの入力装置、および表示装置などの出力装置である。入力装置は、端末装置7の使用者により操作されると、その操作内容に対応付けられている使用者からの各種情報の入力を取得し、取得した入力情報をCPU21に送付する装置である。出力装置は、端末装置7による処理結果を出力する装置であり、CPU21により送付される表示データに応じてテキストや画像を表示する。   The CPU 21 is an arithmetic processing device that controls the operation of the entire terminal device 7. The ROM 23 is a storage unit that stores in advance a program for controlling the basic operation of the timer 17, for example. The RAM 25 is a storage unit for storing, for example, various control programs executed by the CPU 21 in the terminal device 7 or using as a work area as necessary when executing the programs. The input / output unit 28 is, for example, an input device such as a keyboard device or a mouse device, and an output device such as a display device. When operated by the user of the terminal device 7, the input device is a device that acquires input of various information from the user associated with the operation content and sends the acquired input information to the CPU 21. The output device is a device that outputs a processing result by the terminal device 7 and displays text and an image according to display data sent by the CPU 21.

タイマ27は、端末装置7内部における時間を管理する計時装置であり、例えば、制御装置3からの通信を受信してからの時間を計測する。CPU21は、例えばRAM25に記録されている所定の制御プログラムを読み出して実行することによって、各種の制御処理を行うようにすることもできる。通信回路29は、有線または無線により外部との間で行われる各種データの授受の管理を行うインタフェース装置である。端末装置7に各処理を実行させるプログラムは、例えばRAM25に記憶させる。CPU21は、RAM25からプログラムを読み出し、端末装置7に、各動作を行なわせる。   The timer 27 is a timing device that manages the time in the terminal device 7, and measures the time after receiving communication from the control device 3, for example. The CPU 21 can perform various control processes by reading and executing a predetermined control program recorded in the RAM 25, for example. The communication circuit 29 is an interface device that manages transmission / reception of various data performed between the outside by wired or wireless. A program for causing the terminal device 7 to execute each process is stored in the RAM 25, for example. The CPU 21 reads the program from the RAM 25 and causes the terminal device 7 to perform each operation.

図4は、制御装置3の機能を示すブロック図である。図4に示すように、制御装置3は、RAM15に記憶されたプログラムを実行することにより、制御部31、代表端末管理部33、応答先設定部35、応答管理部37、タイマ監視部39、および通信制御部41として機能する。   FIG. 4 is a block diagram illustrating functions of the control device 3. As shown in FIG. 4, the control device 3 executes a program stored in the RAM 15, thereby executing a control unit 31, a representative terminal management unit 33, a response destination setting unit 35, a response management unit 37, a timer monitoring unit 39, And it functions as the communication control unit 41.

制御部31は、代表端末管理部33、応答先設定部35、応答管理部37、タイマ監視部39、および通信制御部41の動作を制御する。代表端末管理部33は、制御装置3に接続された端末装置7の中から、所定数の代表端末を設定し、動作を管理する。応答先設定部35は、代表端末管理部33が設定した代表端末以外の端末(以下、子端末という)の応答先を設定する。応答管理部37は、各端末装置7からの応答の有無などを管理する。タイマ監視部39は、制御装置3内の時間を管理する。通信制御部41は、端末装置7との間の通信を制御する。   The control unit 31 controls the operations of the representative terminal management unit 33, the response destination setting unit 35, the response management unit 37, the timer monitoring unit 39, and the communication control unit 41. The representative terminal management unit 33 sets a predetermined number of representative terminals from the terminal devices 7 connected to the control device 3, and manages the operation. The response destination setting unit 35 sets a response destination of a terminal other than the representative terminal set by the representative terminal management unit 33 (hereinafter referred to as a child terminal). The response management unit 37 manages whether or not there is a response from each terminal device 7. The timer monitoring unit 39 manages the time in the control device 3. The communication control unit 41 controls communication with the terminal device 7.

図5は、端末装置7の機能を示すブロック図である。図5に示すように、端末装置7は、RAM25に記憶されたプログラムを実行することにより、制御部43、応答先認識部45、子端末管理部47、タイマ監視部49、および通信制御部51として機能する。   FIG. 5 is a block diagram illustrating functions of the terminal device 7. As illustrated in FIG. 5, the terminal device 7 executes a program stored in the RAM 25, thereby controlling the control unit 43, the response destination recognition unit 45, the child terminal management unit 47, the timer monitoring unit 49, and the communication control unit 51. Function as.

制御部43は、応答先認識部45、子端末管理部47、タイマ監視部49、および通信制御部51の動作を制御する。応答先認識部45は、制御装置3からの通信を解析し、指定された応答先の端末を認識する。子端末管理部47は、制御装置3から代表端末に指定されている場合に、子端末からの応答を管理する。タイマ監視部49は、端末装置7内の時間を管理する。通信制御部51は、制御装置3および子端末となる端末装置7との間の通信を制御する。   The control unit 43 controls operations of the response destination recognition unit 45, the child terminal management unit 47, the timer monitoring unit 49, and the communication control unit 51. The response destination recognition unit 45 analyzes communication from the control device 3 and recognizes a designated response destination terminal. The child terminal management unit 47 manages the response from the child terminal when designated by the control device 3 as the representative terminal. The timer monitoring unit 49 manages the time in the terminal device 7. The communication control unit 51 controls communication between the control device 3 and the terminal device 7 serving as a child terminal.

上記のような応答確認システム1で、例えば制御装置3と最大100台の端末が接続されたシステムがあるとする。制御装置3のパケット受信バッファが、20台分あるとした場合、20台からの応答は確実に受信可能である。なお、100台分のバッファを準備すれば、100台からの応答は受信可能ではあるが、100台分のバッファを処理する状態が連続した場合に、他の処理がまったく動作せず、システム的に問題となる場合がある。すなわち、制御装置3より上位のホストとの通信がまったく動作しなくなり、ホストが制御装置3を異常と認識して制御装置3を切り離しするなどの問題である。よって、通常は、性能的な余力を残してバッファ数が決定される。   In the response confirmation system 1 as described above, for example, there is a system in which the control device 3 and a maximum of 100 terminals are connected. If there are 20 packet reception buffers in the control device 3, responses from the 20 devices can be received reliably. If buffers for 100 units are prepared, responses from 100 units can be received. However, when the state of processing the buffers for 100 units continues, other processing does not operate at all, and systematic May be a problem. That is, there is a problem that communication with a host higher than the control device 3 does not operate at all, and the host recognizes the control device 3 as abnormal and disconnects the control device 3. Therefore, normally, the number of buffers is determined while leaving a performance margin.

そこで、余力を残して通信が可能な台数を代表端末とし、他の端末は、通信を代表端末に対して行うようにする。このとき、応答先設定部35は、各端末装置7の応答先を設定し、例えばRAM15に記録する。   In view of this, the number of terminals that can communicate with remaining capacity is set as the representative terminal, and other terminals perform communication with the representative terminal. At this time, the response destination setting unit 35 sets the response destination of each terminal device 7 and records the response destination in, for example, the RAM 15.

ここで、代表端末を20台決定する場合について説明する。図6は、設定された代表端末と各端末の応答先を示す応答先情報一例を示す図である。図6に示すように、制御装置3と、端末装置7−0〜7−99(以下、単に端末7−0等ともいう)とが接続されたシステムにおいて、代表端末を、端末7−0、7−5、7−10、・・・、7−95の20台に設定したとする。このとき、端末7−0〜7−4は、応答先情報60の欄64〜72に示すように、応答先が端末7−0と設定されている。以下同様に、100台の端末装置7のそれぞれに、応答先が設定されている。   Here, a case where 20 representative terminals are determined will be described. FIG. 6 is a diagram illustrating an example of response destination information indicating the set representative terminal and the response destination of each terminal. As shown in FIG. 6, in a system in which the control device 3 and terminal devices 7-0 to 7-99 (hereinafter also simply referred to as terminals 7-0 etc.) are connected, representative terminals are designated as terminals 7-0, Assume that 20 units 7-5, 7-10,..., 7-95 are set. At this time, as shown in the columns 64 to 72 of the response destination information 60, the response destinations of the terminals 7-0 to 7-4 are set to the terminal 7-0. Similarly, a response destination is set for each of the 100 terminal devices 7.

図7は、送信するデータの一例を示す図である。図7に示すように、端末装置7への通信を行う際は、例えばデータ80が生成される。応答確認システム1において、全ての端末に送信するデータ80は、ヘッダ82、応答先領域84、送信データ86を有している。応答先領域84は、端末7−0〜7−99のそれぞれについて、応答先88、90、・・・、96を有し、全ての端末装置7の応答先が設定されている。すなわち、応答先領域84には応答先情報60が記載されている。   FIG. 7 is a diagram illustrating an example of data to be transmitted. As shown in FIG. 7, for example, data 80 is generated when communication with the terminal device 7 is performed. In the response confirmation system 1, data 80 transmitted to all terminals includes a header 82, a response destination area 84, and transmission data 86. The response destination area 84 has response destinations 88, 90,..., 96 for each of the terminals 7-0 to 7-99, and the response destinations of all the terminal devices 7 are set. That is, the response destination information 60 is described in the response destination area 84.

図8A、8Bは、正常な一斉通信のシーケンス100を示す図である。図8A、8Bに示すように、まず、制御装置3が全ての端末装置7に一斉通信を行う。通信102は、一斉通信を表す。各端末装置7は、送信されたデータ80において自身の応答先領域84を参照し、自身の端末番号が格納されていた場合には、代表端末としてタイマ監視部39により不図示の監視タイマを起動し、自身が応答を監視する監視対象の子端末からの応答待ち状態となる。自身の応答先領域84に他の端末番号が格納されていた場合は、その端末に向けて正常受信した旨の応答データを送信する。   8A and 8B are diagrams showing a normal simultaneous communication sequence 100. FIG. As shown in FIGS. 8A and 8B, first, the control device 3 performs simultaneous communication with all the terminal devices 7. Communication 102 represents simultaneous communication. Each terminal device 7 refers to its own response destination area 84 in the transmitted data 80, and when its own terminal number is stored, the timer monitoring unit 39 activates a monitoring timer (not shown) as a representative terminal Then, it enters a state of waiting for a response from the monitored child terminal that monitors the response. If another terminal number is stored in its own response destination area 84, response data indicating that it has been normally received is transmitted to that terminal.

このように各端末装置7は、応答先領域84に指定された代表端末に返信を行う。通信104は、子端末となった各端末装置7から代表端末への通信を表わす。各代表端末は、自身が応答先に指定されている各子端末すべてから応答データを受信するか、タイムアウトした場合、対象端末の応答有無を通信106のように制御装置3に送信する。   Thus, each terminal device 7 sends a reply to the representative terminal designated in the response destination area 84. Communication 104 represents communication from each terminal device 7 that has become a child terminal to the representative terminal. When each representative terminal receives response data from all the child terminals designated as response destinations or times out, the representative terminal transmits the presence / absence of the response of the target terminal to the control device 3 like the communication 106.

このとき、制御装置3は、代表端末からの応答で、ネットワーク上のすべての端末の応答有無を確認する。なお、代表端末が異常の場合にそなえ、制御装置3自身も、一斉通信を行ってからの時間を計測し、一斉通信の応答をタイマ監視しておく。   At this time, the control device 3 confirms the presence / absence of responses of all terminals on the network based on the response from the representative terminal. In addition, in the case where the representative terminal is abnormal, the control device 3 itself also measures the time after performing the simultaneous communication and monitors the response of the simultaneous communication with a timer.

図9A、9Bは、エラーのある一斉通信のシーケンス110を示す図である。図9A、9Bに示すように、制御装置3は、全ての端末装置7に一斉通信を行う。通信112は、一斉通信を表す。各端末装置7は、応答先領域84に指定された代表端末に通信114のように返信を行う。このとき、エラー116のように、端末7−14から端末7−10への応答が正常に受信されなかったとする。端末7−10は、制御装置3からの通信を受信してから所定時間経過すると、それまでに受信できた分の応答を制御装置3に返信する。   9A and 9B are diagrams showing a sequence 110 of simultaneous communication with an error. As shown in FIGS. 9A and 9B, the control device 3 performs simultaneous communication with all the terminal devices 7. Communication 112 represents simultaneous communication. Each terminal device 7 replies like a communication 114 to the representative terminal designated in the response destination area 84. At this time, it is assumed that a response from the terminal 7-14 to the terminal 7-10 is not normally received as in error 116. When a predetermined time elapses after receiving the communication from the control device 3, the terminal 7-10 replies to the control device 3 with the response that has been received so far.

また、この例では、通信118において、端末7−20から制御装置3への通信にもエラー120が発生している。端末7−20は、全ての子端末からの通信を正常に受信したが、制御装置3には応答が届かないことになる。このとき、制御装置3は、正常に受信できなかった端末7−14、7−20〜7−24に対して、通信124のようにもう一度同じ内容の送信を行うリトライを実行する。   In this example, in the communication 118, the error 120 also occurs in the communication from the terminal 7-20 to the control device 3. The terminal 7-20 has received the communication from all the child terminals normally, but the control device 3 does not receive a response. At this time, the control device 3 executes a retry to transmit the same content once again as in the communication 124 to the terminals 7-14 and 7-20 to 7-24 that have not been normally received.

このように、代表端末からの応答データにおいて、応答がなかった端末(代表端末からの応答がなかった場合は、その代表端末自身とその代表端末が応答監視すべき対象の端末すべて)がある場合、リトライ送信を行う。このとき、例えばRAM15に、全端末装置7(例えば100台分)の記憶領域(例えば、応答先領域84を用いてもよい)を設け、正常応答した端末の領域には、再送信不要を示す値(たとえば00)を格納する。応答がなかった端末については、制御装置3自身が確実に受信可能な台数分(例では20台)を上限として、該当端末の番号を格納する。応答がなかった端末数が、制御装置3自身が確実に受信可能な台数を超え(例では21台以上)ている場合は、リトライを数回に分けて行う。   As described above, in the response data from the representative terminal, there is a terminal that has not responded (if there is no response from the representative terminal, there is a representative terminal itself and all the terminals that the representative terminal should monitor for response). , Retry transmission. At this time, for example, a storage area (for example, the response destination area 84 may be used) of all terminal devices 7 (for example, 100 units) is provided in the RAM 15, and the area of the terminal that has responded normally indicates that retransmission is unnecessary. A value (for example, 00) is stored. For a terminal that has not responded, the number of the corresponding terminal is stored with an upper limit of the number of units (20 in the example) that can be reliably received by the control device 3 itself. When the number of terminals that have not responded exceeds the number that can be reliably received by the control device 3 itself (21 or more in the example), the retry is performed in several times.

確実に受信可能な台数が20台の場合、20台までは1回で、40台までは2回、60台までは3回、80台までは4回、100台までは5回に分けて送信することになる。しかし、通常はすべて正常応答するため、1回の送信で処理が完了する場合がほとんどである。リトライでも応答がない端末装置7があった場合には、通信復旧するまでリトライ対象外とすることで、システム的に大きな負荷になることを防止する。   If the number of units that can be reliably received is 20, it is divided into 1 time up to 20 units, 2 times up to 40 units, 3 times up to 60 units, 4 times up to 80 units, and 5 times up to 100 units. Will be sent. However, since all normally respond normally, the processing is almost completed in one transmission. If there is a terminal device 7 that does not respond even after retrying, it is excluded from the retry target until communication is restored, thereby preventing a heavy load on the system.

なお、上記のような一斉通信のデータ送信時のために代表端末を指定する場合、代表端末として、応答がある可能性が高い端末を選択するべきである。そこで例えば、正常受信した通信の発信元の端末装置7を時系列にリンクし、より受信時刻が新しい通信の発信元の端末装置7を選択する。   In addition, when designating a representative terminal for data transmission in the above-described simultaneous communication, a terminal that is highly likely to have a response should be selected as the representative terminal. Therefore, for example, the terminal device 7 of the communication that has been normally received is linked in time series, and the terminal device 7 of the communication that has a newer reception time is selected.

ここで、図10、図11A,図11Bを参照しながら代表端末設定処理について説明する。以下、説明の都合上、制御装置3に接続された端末が、端末7−0〜7−9の10台である場合を例にして説明する。図10は、代表端末管理テーブル500の構成の一例を示す図、図11Aは、代表端末管理テーブル500の具体例を示す図、図11Bは、通信の受信順を説明する図である。代表端末管理テーブル500は、制御装置3の、例えばRAM15に記憶されている。   Here, the representative terminal setting process will be described with reference to FIGS. 10, 11A, and 11B. Hereinafter, for convenience of explanation, a case where there are ten terminals 7-0 to 7-9 connected to the control device 3 will be described as an example. FIG. 10 is a diagram illustrating an example of the configuration of the representative terminal management table 500, FIG. 11A is a diagram illustrating a specific example of the representative terminal management table 500, and FIG. 11B is a diagram illustrating the reception order of communication. The representative terminal management table 500 is stored in, for example, the RAM 15 of the control device 3.

図10に示すように、代表端末管理テーブル500は、端末装置7の端末番号502と、リンク元504、およびリンク先506を示している。リンク元504とは、制御装置3が正常にデータを受信した通信の受信時刻が、該当端末番号の端末装置7からの通信より1つ新しい通信の発信元の端末番号である。リンク先506とは、制御装置3が正常にデータを受信した受信時刻が、該当端末番号の端末装置7からの通信の受信時刻より1つ古い通信の発信元の端末番号である。   As illustrated in FIG. 10, the representative terminal management table 500 indicates the terminal number 502, the link source 504, and the link destination 506 of the terminal device 7. The link source 504 is the terminal number of the transmission source of the communication in which the reception time of the communication in which the control device 3 has normally received data is newer than the communication from the terminal device 7 of the corresponding terminal number. The link destination 506 is a terminal number of a communication source whose reception time when the control device 3 has normally received data is one older than the reception time of communication from the terminal device 7 of the corresponding terminal number.

代表端末管理テーブル500は、この端末番号502、リンク元504、リンク先506を全端末分格納する。ここで、制御装置3が最新に正常に受信した通信の発信元である端末装置7の端末番号は、図10に示す代表端末管理テーブル500の最上欄の「最新」のリンク先506に表示される。また、図10、図11A,図11Bにおいて、端末装置7−nの端末番号は、記載の都合上、単に「n」と記載する。   The representative terminal management table 500 stores this terminal number 502, link source 504, and link destination 506 for all terminals. Here, the terminal number of the terminal device 7 that is the transmission source of the communication normally received by the control device 3 is displayed in the “latest” link destination 506 in the uppermost column of the representative terminal management table 500 shown in FIG. The In FIG. 10, FIG. 11A, and FIG. 11B, the terminal number of the terminal device 7-n is simply described as “n” for convenience of description.

図11Aは、制御装置3が正常に受信した順が端末番号で新しい方から「7→1→0→8→9→2→3→5→6→4」である状態のテーブルを示している。すなわち、例えば、図11Aの代表端末管理テーブル520の欄522に示すように、制御装置3により最新に正常に受信された通信は「最新」のリンク先番号=「7」に対応する端末7−7が発信元である。端末7−7からの通信よりも1つ古い通信の発信元の端末装置7は、欄524に示すように、端末7−7のリンク先番号=「1」に対応する端末7−1である。このとき、欄526に示すように、端末7−7からの通信の次に受信が確認される通信の発信元の端末はまだ不明であるので、「−」と記載されている。また、端末7−1からの通信よりも1つ古い通信の発信元の端末装置7は、欄528に示すように、端末7−1のリンク先番号=「0」に対応する端末7−0である。このとき、欄530に示すように、端末7―1からの通信の次に受信が確認された通信の発信元の端末は、端末7−1のリンク元番号=「7」であると記載されている。   FIG. 11A shows a table in a state in which the order in which the control device 3 has normally received is the terminal number and is “7 → 1 → 0 → 8 → 9 → 2 → 3 → 5 → 6 → 4” from the newest one. . That is, for example, as shown in the column 522 of the representative terminal management table 520 of FIG. 11A, the communication that has been normally received by the control device 3 the latest is the terminal 7− corresponding to the “latest” link destination number = “7”. 7 is a sender. As shown in the column 524, the terminal device 7 that is the communication source one older than the communication from the terminal 7-7 is the terminal 7-1 corresponding to the link destination number = “1” of the terminal 7-7. . At this time, as shown in a column 526, since the terminal of the communication source that is confirmed to be received after the communication from the terminal 7-7 is still unknown, "-" is described. Also, the terminal device 7 that is the source of communication one older than the communication from the terminal 7-1 is the terminal 7-0 corresponding to the link destination number = “0” of the terminal 7-1 as shown in the column 528. It is. At this time, as shown in the column 530, the communication source terminal confirmed to be received after the communication from the terminal 7-1 is described as the link source number of the terminal 7-1 = “7”. ing.

このように、順次代表端末管理テーブル500においてリンク先を見ていくことにより、1つ前に受信が確認された通信の発信元の端末装置7を順次確認できる。また、順次代表端末管理テーブル500においてリンク元を見て行くことにより、新しく受信が確認された通信の発信元の端末装置7を順次確認できる。   In this way, by sequentially looking at the link destination in the representative terminal management table 500, the terminal device 7 that is the transmission source of the communication that has been confirmed to be received immediately before can be confirmed sequentially. In addition, by sequentially looking at the link source in the representative terminal management table 500, it is possible to sequentially check the terminal device 7 that is the transmission source of the newly confirmed reception.

ここで、参考のために、受信が確認された順に端末装置7とそのリンク元、リンク先を並べたものが、図11Bに示したテーブル600である。テーブル600に示すように、端末番号602における新しく受信が確認された「7→1→0→8→9→2→3→5→6→4」の順番を、一つ古い方にずらした情報がリンク元604、一つ新しい方にずらした情報がリンク先606として格納されていることになる。   Here, for reference, the table 600 shown in FIG. 11B is a table in which the terminal device 7 and its link source and link destination are arranged in the order in which reception is confirmed. As shown in the table 600, information in which the order of “7 → 1 → 0 → 8 → 9 → 2 → 3 → 5 → 6 → 4” newly confirmed to be received at the terminal number 602 is shifted to the oldest one. Is stored as the link source 604, and the information shifted to the newest one is stored as the link destination 606.

以下、代表端末管理テーブル520の状態で、端末7−5から正常データを受信した場合の処理について説明する。まず、代表端末管理テーブル520において、「最新」のリンク先番号522が、端末7−5に対応する端末番号「5」ではないことが確認される。このとき、代表端末管理テーブル540のように、端末7−5のリンク元番号542の「3」に対応する端末7−3のリンク先番号546が、端末7−5のリンク先番号548の「6」に更新される。端末7−5のリンク先番号548の「6」に対応する端末7−6のリンク元番号544は、端末7−5のリンク元番号542の「3」に更新される。   Hereinafter, processing when normal data is received from the terminal 7-5 in the state of the representative terminal management table 520 will be described. First, in the representative terminal management table 520, it is confirmed that the “latest” link destination number 522 is not the terminal number “5” corresponding to the terminal 7-5. At this time, as in the representative terminal management table 540, the link destination number 546 of the terminal 7-3 corresponding to “3” of the link source number 542 of the terminal 7-5 is changed to “ 6 ”. The link source number 544 of the terminal 7-6 corresponding to “6” of the link destination number 548 of the terminal 7-5 is updated to “3” of the link source number 542 of the terminal 7-5.

次に、代表端末管理テーブル560のように、最新の受信端末7−5のリンク先である端末7−7のリンク元番号562は、今回受信した通信の発信元の端末7−5に対応する「5」に更新される。   Next, as in the representative terminal management table 560, the link source number 562 of the terminal 7-7 that is the link destination of the latest receiving terminal 7-5 corresponds to the terminal 7-5 that is the transmission source of the communication received this time. It is updated to “5”.

最後に、代表端末管理テーブル580のように、今回受信した通信の発信元である端末7−5のリンク元番号582は、リンクなしを示す「−」、端末7−5のリンク先番号586は、最新に受信した通信の発信元の端末7−7に対応する「7」に更新される。また、最新受信端末のリンク先番号584は、今回受信した通信の発信元の端末7−5に対応する「5」に更新される。なお、100台の端末装置7が備えられる場合は、代表端末管理テーブル500を100台分とし、上記と同様の手順で更新する。   Finally, as in the representative terminal management table 580, the link source number 582 of the terminal 7-5 that is the transmission source of the communication received this time is “−” indicating no link, and the link destination number 586 of the terminal 7-5 is , It is updated to “7” corresponding to the terminal 7-7 that is the latest transmission source. Further, the link destination number 584 of the latest receiving terminal is updated to “5” corresponding to the terminal 7-5 that is the transmission source of the communication received this time. When 100 terminal devices 7 are provided, the representative terminal management table 500 is set for 100 devices and updated in the same procedure as described above.

この代表端末管理テーブル500を用いて、正常受信した通信の発信元の端末装置7を、受信が新しい順に選択する場合は、例えば代表端末管理テーブル580において、第1に、最新受信端末のリンク先番号584の「5」に対応する端末装置7−5が選択される。第2に、端末番号「5」のリンク先番号586の「7」に対応する端末装置7−7が選択される。第3に、端末番号「7」のリンク先番号588の「1」に対応する端末装置7−1が選択される。以下、同様に、順にリンク先の端末番号を検索していくことにより、所望の台数の代表端末が指定される。   When using the representative terminal management table 500 to select the terminal device 7 that has transmitted the normally received communication in the order of reception, for example, in the representative terminal management table 580, first, the link destination of the latest receiving terminal The terminal device 7-5 corresponding to the number 584 “5” is selected. Second, the terminal device 7-7 corresponding to “7” of the link destination number 586 of the terminal number “5” is selected. Third, the terminal device 7-1 corresponding to “1” of the link destination number 588 of the terminal number “7” is selected. Hereinafter, similarly, a desired number of representative terminals are designated by sequentially searching for terminal numbers of link destinations.

以下、上記のように構成される応答確認システム1の動作について、フローチャートを参照しながらさらに説明する。応答確認システム1においては、2種類の通信が行われる。一つは、制御装置3と個々の端末装置7との間で行われる通信(以下、通常通信という)であり、他は、制御装置3から複数の端末装置7へ一斉に送信を行う一斉通信である。   Hereinafter, operation | movement of the response confirmation system 1 comprised as mentioned above is further demonstrated, referring a flowchart. In the response confirmation system 1, two types of communication are performed. One is communication (hereinafter referred to as normal communication) performed between the control device 3 and each terminal device 7, and the other is simultaneous communication in which transmission is simultaneously performed from the control device 3 to a plurality of terminal devices 7. It is.

まず、通常通信の動作について説明する。図12は、制御装置3の通常通信の動作を示すフローチャートである。図12に示すように、制御部31は、タイマ監視部39より監視される不図示のリトライカウンタをゼロに設定する(S201)。リトライカウンタとは、送信を行ったが、端末装置7からの応答が確認できない場合に、再度送信を行う回数を計数するカウンタである。   First, the operation of normal communication will be described. FIG. 12 is a flowchart showing the normal communication operation of the control device 3. As shown in FIG. 12, the control unit 31 sets a retry counter (not shown) monitored by the timer monitoring unit 39 to zero (S201). The retry counter is a counter that counts the number of times that transmission is performed when transmission is performed but a response from the terminal device 7 cannot be confirmed.

通信制御部41は、通信の宛先の端末装置7のアドレスを設定し(S202)、送信データを設定する(S203)。タイマ監視部39は、制御部31が通信制御部41を介して送信を起動すると同時に、不図示の監視タイマを起動する(S204)。このとき、制御部31は、監視タイマに、応答を監視する所定時間を設定する。   The communication control unit 41 sets the address of the terminal device 7 that is the destination of communication (S202), and sets transmission data (S203). The timer monitoring unit 39 starts a monitoring timer (not shown) at the same time that the control unit 31 starts transmission via the communication control unit 41 (S204). At this time, the control unit 31 sets a predetermined time for monitoring the response in the monitoring timer.

応答管理部37は、監視タイマに設定された所定時間内に、データを送信した端末装置7からの応答があるか否かを判別する(S205)。応答がない場合には(S205:NO)、制御部31は、リトライカウンタが所定のカウント数を超えているか否か判別する(S206)。リトライカウンタのカウント数が、所定のカウント数以下の場合には(S206:NO)、制御部31は、リトライカウンタの値に1を加え(S207)、処理をS202に戻す。リトライカウンタのカウント数が所定のカウント数を越えた場合には(S206:YES)、制御部31は、処理をエラー終了する。S205で、所定時間内に応答が検出されると(S205:YES)、代表端末設定処理を行い(S208)、制御部31は、制御装置3を正常に終了する。   The response management unit 37 determines whether or not there is a response from the terminal device 7 that transmitted the data within a predetermined time set in the monitoring timer (S205). When there is no response (S205: NO), the control unit 31 determines whether or not the retry counter exceeds a predetermined count number (S206). When the count number of the retry counter is equal to or smaller than the predetermined count number (S206: NO), the control unit 31 adds 1 to the value of the retry counter (S207), and returns the process to S202. When the count number of the retry counter exceeds the predetermined count number (S206: YES), the control unit 31 ends the process with an error. If a response is detected within a predetermined time in S205 (S205: YES), representative terminal setting processing is performed (S208), and the control unit 31 ends the control device 3 normally.

ここで、図13を参照しながら代表端末設定処理について説明する。図13は、代表端末設定処理の動作を示すフローチャートである。図13に示すように、まず、代表端末管理部33は、「a」を、通信制御部41を介して受信した、通常通信における最新の正常受信電文の端末番号に設定する(S401)。図11Aの代表端末管理テーブル520の例ではa=5であるとする。   Here, the representative terminal setting process will be described with reference to FIG. FIG. 13 is a flowchart showing the operation of the representative terminal setting process. As illustrated in FIG. 13, first, the representative terminal management unit 33 sets “a” to the terminal number of the latest normal reception message received in the normal communication received via the communication control unit 41 (S401). In the example of the representative terminal management table 520 in FIG. 11A, it is assumed that a = 5.

代表端末管理部33は、最新のリンク先の端末番号が「a」であるか否か、判別する(S402)。最新のリンク先が「a」である場合には、代表端末管理部33は、代表端末設定処理を終了する(S402:YES)。図11Aの代表端末管理テーブル520の例では、最新のリンク先は「7」である(S402:NO)。   The representative terminal management unit 33 determines whether or not the latest link destination terminal number is “a” (S402). When the latest link destination is “a”, the representative terminal management unit 33 ends the representative terminal setting process (S402: YES). In the example of the representative terminal management table 520 in FIG. 11A, the latest link destination is “7” (S402: NO).

代表端末管理部33は、「X」を、端末aのリンク元の端末番号とする(S403)。代表端末管理部33は、「Y」を、端末aのリンク先の端末番号とする(S404)。また、代表端末管理部33は、「Z」を、最新のリンク先の端末番号とする(S405)。図11Aの代表端末管理テーブル520の例では、X=3、Y=6、Z=7である。   The representative terminal management unit 33 sets “X” as the terminal number of the link source of the terminal “a” (S403). The representative terminal management unit 33 sets “Y” as the terminal number of the link destination of the terminal “a” (S404). Also, the representative terminal management unit 33 sets “Z” as the latest link destination terminal number (S405). In the example of the representative terminal management table 520 in FIG. 11A, X = 3, Y = 6, and Z = 7.

代表端末管理部33は、「X」のリンク先の端末番号を、「a」のリンク先の端末番号(「Y」)に書き換える(S406)。代表端末管理部33は、「Y」のリンク元の端末番号を、「a」のリンク元の端末番号(「X」)に書き換える(S407)。代表端末管理部33は、「Z」のリンク元の端末番号を、「a」とする(S408)。   The representative terminal management unit 33 rewrites the link destination terminal number of “X” to the link destination terminal number (“Y”) of “a” (S406). The representative terminal management unit 33 rewrites the link source terminal number of “Y” to the link source terminal number (“X”) of “a” (S407). The representative terminal management unit 33 sets “a” as the terminal number of the link source of “Z” (S408).

代表端末管理部33は、「a」のリンク元の端末番号を、「−」とする(S409)とともに、「a」のリンク先の端末番号を、最新のリンク先の端末番号(「Z」)とする(S410)。さらに、代表端末管理部33は、最新のリンク先の端末番号を「a」に書き換える(S411)。以上の処理を、正常な受信が行われるたびに繰り返すことにより、常に受信時刻が新しい順を保持しておき、最新の所定台数の代表端末を設定する。   The representative terminal management unit 33 sets the terminal number of the link source of “a” to “−” (S409) and sets the terminal number of the link destination of “a” to the latest link destination terminal number (“Z”). (S410). Further, the representative terminal management unit 33 rewrites the latest link destination terminal number to “a” (S411). By repeating the above processing every time normal reception is performed, the reception time is always kept in the newest order, and the latest predetermined number of representative terminals are set.

図14は、端末装置7の通常通信の動作を示すフローチャートである。端末装置7の通信制御部51は、制御装置3からの通信を受信するまで監視を行う(S211:NO)。受信が確認されると(S211:YES)、通信制御部51は、応答を送信する(S212)。   FIG. 14 is a flowchart showing the normal communication operation of the terminal device 7. The communication control unit 51 of the terminal device 7 performs monitoring until communication from the control device 3 is received (S211: NO). When reception is confirmed (S211: YES), the communication control unit 51 transmits a response (S212).

次に、応答確認システム1における一斉通信の動作について説明する。図15A、15Bは、制御装置3の一斉通信の動作を示すフローチャートである。図15Aに示すように、制御部31は、タイマ監視部39より監視される不図示のリトライカウンタをゼロに設定する(S221)。   Next, the operation of simultaneous communication in the response confirmation system 1 will be described. 15A and 15B are flowcharts showing the simultaneous communication operation of the control device 3. As shown in FIG. 15A, the control unit 31 sets a retry counter (not shown) monitored by the timer monitoring unit 39 to zero (S221).

応答先設定部35は、例えば、応答先情報60において、代表端末の応答先を代表端末自身の端末番号に設定し(S222)、代表端末以外の子端末の応答先に、代表端末の端末番号を均等に設定する(S223)。通信制御部41は、一斉通信のためのブロードキャストアドレスを設定する(S224)とともに、送信データを設定する(S225)。   For example, in the response destination information 60, the response destination setting unit 35 sets the response destination of the representative terminal to the terminal number of the representative terminal itself (S222), and sets the terminal number of the representative terminal as the response destination of the child terminal other than the representative terminal. Are set evenly (S223). The communication control unit 41 sets a broadcast address for simultaneous communication (S224) and sets transmission data (S225).

タイマ監視部39は、制御部31が通信制御部41を介して送信を起動すると同時に、不図示の監視タイマを起動する(S226)。このとき、制御部31は、監視タイマに、応答を監視する所定時間を設定する。   The timer monitoring unit 39 starts a monitoring timer (not shown) at the same time as the control unit 31 starts transmission via the communication control unit 41 (S226). At this time, the control unit 31 sets a predetermined time for monitoring the response in the monitoring timer.

応答管理部37は、監視タイマに設定された所定時間内に、代表端末からの応答があるか否かを判別する(S227)。S227で、所定時間内に応答が検出されると(S227:YES)、応答管理部37は、応答電文中の応答のあった端末番号を、例えばRAM15に記録する(S228)。このとき、応答管理部37は、例えばRAM15に、不図示の応答管理テーブルを作成し、全端末装置7について応答の有無を記録するようにしてもよい。S227で、所定時間内に応答が検出されないと(S227:NO)、制御部31は、処理をS231に進める。   The response management unit 37 determines whether or not there is a response from the representative terminal within a predetermined time set in the monitoring timer (S227). When a response is detected within a predetermined time in S227 (S227: YES), the response management unit 37 records the terminal number that has responded in the response message, for example, in the RAM 15 (S228). At this time, the response management unit 37 may create a response management table (not shown) in, for example, the RAM 15 and record the presence / absence of responses for all the terminal devices 7. If a response is not detected within the predetermined time in S227 (S227: NO), the control unit 31 advances the process to S231.

応答管理部37は、全ての端末装置7から応答があったか否かを判別し、あった場合には(S229:YES)、一斉通信を正常に終了する。タイマ監視部39で設定された所定時間内に、全端末装置7からの応答がない場合には(S229:NO)、応答管理部37は、全代表端末からの応答が受信されたか否かを判別する(S230)。全代表端末からの応答が確認できた場合には(S230:YES)、制御部31は、処理をS231に進める。いずれかの代表端末からの応答が受信できない場合には(S230:NO)、制御部31は、S227に処理を戻す。   The response management unit 37 determines whether or not there is a response from all the terminal devices 7, and when there is a response (S229: YES), the simultaneous communication ends normally. If there is no response from all the terminal devices 7 within the predetermined time set by the timer monitoring unit 39 (S229: NO), the response management unit 37 determines whether or not responses from all the representative terminals have been received. A determination is made (S230). When the responses from all the representative terminals are confirmed (S230: YES), the control unit 31 advances the process to S231. When a response from any of the representative terminals cannot be received (S230: NO), the control unit 31 returns the process to S227.

図15Bに示すように、通信制御部41は、送信対象を、応答がなかった端末全てに設定し(S231)、リトライ送信処理を行う(S232)。リトライ送信処理の詳細は後述する。リトライ送信の結果、全端末装置7からの応答が確認されると(S233:YES)、制御部31は処理を正常に終了する。全端末装置7からの応答が確認できない場合には(S233:NO)、制御部31は、リトライカウンタが、所定数を上回ってリトライアウトになっているか否かを判別する(S234)。リトライアウトの場合には(S234:YES)、制御部31は、処理をエラー終了させる。リトライアウトしていない場合には(S234:NO)、制御部31は、リトライカウンタに1を加え(S235)、処理をS231に戻す。   As illustrated in FIG. 15B, the communication control unit 41 sets transmission targets for all terminals that have not responded (S231), and performs retry transmission processing (S232). Details of the retry transmission process will be described later. As a result of the retry transmission, when responses from all the terminal devices 7 are confirmed (S233: YES), the control unit 31 ends the processing normally. When the responses from all the terminal devices 7 cannot be confirmed (S233: NO), the control unit 31 determines whether or not the retry counter exceeds the predetermined number and is a retry-out (S234). In the case of retry-out (S234: YES), the control unit 31 ends the process with an error. When the retry-out has not been performed (S234: NO), the control unit 31 adds 1 to the retry counter (S235), and returns the process to S231.

次に、図16A、16Bを参照しながら、制御装置3のリトライ送信処理について説明する。図16A、16Bは、制御装置3のリトライ送信処理を示すフローチャートである。図16Aに示すように、まず制御部31は、変数n=0、m=0とする(S251)。ここで、変数nは、端末番号、変数mは、リトライ対象端末数を示す。応答管理部37は、端末番号=nが送信対象であるか否かを、上述のようにRAM15に記録された、例えば不図示の応答管理テーブルで確認する(S252)。   Next, the retry transmission process of the control device 3 will be described with reference to FIGS. 16A and 16B. 16A and 16B are flowcharts showing the retry transmission process of the control device 3. As shown in FIG. 16A, first, the control unit 31 sets variables n = 0 and m = 0 (S251). Here, the variable n indicates the terminal number, and the variable m indicates the number of retry target terminals. The response management unit 37 checks whether or not the terminal number = n is a transmission target, for example, with a response management table (not shown) recorded in the RAM 15 as described above (S252).

端末番号=nの端末装置7が送信対象でない場合には(S252:NO)、制御部31は、処理をS255に進める。端末番号=nの端末装置7が送信対象である場合には(S252:YES)、制御部31は、端末番号=nの応答先端末番号=端末番号nとし(S253)、m=m+1として(S254)、処理をS255に進める。   When the terminal device 7 with the terminal number = n is not a transmission target (S252: NO), the control unit 31 advances the process to S255. When the terminal device 7 with the terminal number = n is the transmission target (S252: YES), the control unit 31 sets the response destination terminal number with the terminal number = n = the terminal number n (S253) and sets m = m + 1 ( S254), the process proceeds to S255.

S255において、n=n+1としてS256へ進める。制御部31は、m<全代表端末数であるか否かを判別する(S256)。m<全代表端末数でない場合には(S256:NO)、制御部31は処理をS258に進める。m<全代表端末数である場合には(S256:YES)、制御部31は、n<総端末数であるか否かを判別する(S257)。n<総端末数である場合には(S257:YES)、制御部31は、処理をS252に戻す。n<総端末数でない場合には(S257:NO)、通信制御部41は、リトライ通信のためのブロードキャストアドレスを設定する(S258)とともに、送信データを設定する(S259)。   In S255, n = n + 1 is set, and the process proceeds to S256. The control unit 31 determines whether or not m <the total number of representative terminals (S256). When m <the total number of representative terminals is not satisfied (S256: NO), the control unit 31 advances the process to S258. If m <total number of representative terminals (S256: YES), the control unit 31 determines whether n <total number of terminals is satisfied (S257). If n <total number of terminals (S257: YES), the control unit 31 returns the process to S252. If n <the total number of terminals is not satisfied (S257: NO), the communication control unit 41 sets a broadcast address for retry communication (S258) and sets transmission data (S259).

図16Bに示すように、タイマ監視部39は、制御部31が通信制御部41を介して送信を起動するとともに、不図示の監視タイマを起動する(S260)。このとき、制御部31は、監視タイマに、応答を監視する所定時間を設定する。   As shown in FIG. 16B, in the timer monitoring unit 39, the control unit 31 starts transmission via the communication control unit 41 and starts a monitoring timer (not shown) (S260). At this time, the control unit 31 sets a predetermined time for monitoring the response in the monitoring timer.

応答管理部37は、監視タイマに設定された所定時間内に、リトライ送信した各端末装置7からの応答があるか否かを判別する(S261)。S261で、所定時間内に応答が検出されると(S261:YES)、応答管理部37は、応答電文中の応答のあった端末番号を、例えばRAM15に記録する(S262)。このとき、応答管理部37は、例えばRAM15に、不図示の応答管理テーブルを作成し、全端末装置7について応答の有無を記録するようにしてもよい。S261で所定時間内に応答がない場合には(S261:NO)、制御部31は、処理をS264に進める。   The response management unit 37 determines whether or not there is a response from each terminal device 7 that transmitted the retry within a predetermined time set in the monitoring timer (S261). When a response is detected within a predetermined time in S261 (S261: YES), the response management unit 37 records the terminal number that has responded in the response message in, for example, the RAM 15 (S262). At this time, the response management unit 37 may create a response management table (not shown) in, for example, the RAM 15 and record the presence / absence of responses for all the terminal devices 7. When there is no response within the predetermined time in S261 (S261: NO), the control unit 31 advances the process to S264.

応答管理部37は、リトライ対象の全ての端末装置7から応答があったか否かを判別し、応答がない場合には(S263:NO)、処理をS261に戻す。リトライ対象の全ての端末装置7からの応答があった場合には(S263:YES)、応答管理部37は、n<総端末数であるか否か判別し(S264)、n<総端末数の場合には(S264:YES)、処理をS252に戻す。n<総端末数でない場合には(S264:NO)、リトライ送信処理を終了する。   The response management unit 37 determines whether or not there is a response from all the terminal devices 7 to be retried. If there is no response (S263: NO), the process returns to S261. When there is a response from all the terminal devices 7 to be retried (S263: YES), the response management unit 37 determines whether n <total number of terminals (S264), and n <total number of terminals. In the case of (S264: YES), the process returns to S252. If n <the total number of terminals is not satisfied (S264: NO), the retry transmission process is terminated.

タイマ監視部39で設定された所定時間内に、リトライ対象の全ての端末装置7からの応答がない場合には(S261:NO)、n<総端末数であるか否か判別し(S264)、n<総端末数の場合には(S264:YES)、処理をS252に戻す。n<総端末数の場合には(S264:YES)、リトライ送信処理を終了する。   If there is no response from all the terminal devices 7 to be retried within the predetermined time set by the timer monitoring unit 39 (S261: NO), it is determined whether n <total number of terminals (S264). If n <total number of terminals (S264: YES), the process returns to S252. If n <total number of terminals (S264: YES), the retry transmission process is terminated.

次に、図17を参照しながら、端末装置7の一斉送信受信の動作を説明する。図17は、端末装置7の一斉送信受信の動作を示すフローチャートである。図17に示すように、端末装置7の応答先認識部45は、受信したデータ80において、応答先が自身の端末番号であるか否かを判別する(S301)。   Next, the operation of simultaneous transmission / reception of the terminal device 7 will be described with reference to FIG. FIG. 17 is a flowchart showing the simultaneous transmission / reception operation of the terminal device 7. As shown in FIG. 17, the response destination recognition unit 45 of the terminal device 7 determines whether or not the response destination is its own terminal number in the received data 80 (S301).

応答先が自身の端末番号でない場合には(S301:NO)、通信制御部51は、該当する応答先領域84に記載された端末装置7に応答を送信し(S302)、処理を終了する。   When the response destination is not its own terminal number (S301: NO), the communication control unit 51 transmits a response to the terminal device 7 described in the corresponding response destination area 84 (S302), and ends the process.

応答先が自身の端末番号である場合には(S301:YES)、子端末管理部47は、応答先領域84から、自身の番号が応答先に指定されている子端末を抽出する(S303)。子端末管理部47は、応答を監視する対象の子端末がゼロ台であるか否かを判別する(S304)。監視対象の子端末がゼロ台である場合(S304:YES)、制御部41は、処理をS310に進める。   When the response destination is its own terminal number (S301: YES), the child terminal management unit 47 extracts from the response destination area 84 the child terminal whose own number is designated as the response destination (S303). . The child terminal management unit 47 determines whether the number of child terminals whose responses are to be monitored is zero (S304). When the number of child terminals to be monitored is zero (S304: YES), the control unit 41 advances the process to S310.

監視対象の子端末がゼロ台でない場合(S304:NO)、タイマ監視部49は、監視タイマを起動し(S305)、時間内に子端末からの応答があるか否かを判別する(S306)。子端末からの応答があった場合(S306:YES)、子端末管理部47は、応答があった子端末の端末番号を記録し(S307)、応答があった端末を、監視対象の子端末から削除し(S308)、監視対象の子端末がゼロ台であるか否か再び判別する(S309)。子端末からの応答がないままタイムアウトした場合には(S306:NO)、制御部43は、処理をS310に進める。   When the monitoring target child terminal is not zero (S304: NO), the timer monitoring unit 49 activates the monitoring timer (S305), and determines whether or not there is a response from the child terminal within the time (S306). . When there is a response from the child terminal (S306: YES), the child terminal management unit 47 records the terminal number of the child terminal that has responded (S307), and identifies the terminal that has received the response as the child terminal to be monitored. (S308), and it is determined again whether or not the monitored child terminal is zero (S309). When a timeout occurs without a response from the child terminal (S306: NO), the control unit 43 advances the process to S310.

監視対象の子端末がゼロ台である場合(S309:YES)、制御部43は、処理をS310に進める。監視対象の子端末がゼロ台でない場合(S309:NO)、制御部41は、処理をS306に戻す。
S310では、通信制御部51は、自身の端末番号と、応答を受信した子端末の端末番号とを制御装置3に送信し、応答処理を終了する。
When the number of child terminals to be monitored is zero (S309: YES), the control unit 43 advances the process to S310. When the monitoring target child terminal is not zero (S309: NO), the control unit 41 returns the process to S306.
In S310, the communication control unit 51 transmits its own terminal number and the terminal number of the child terminal that has received the response to the control device 3, and ends the response process.

以上説明したように、本実施の形態による応答確認システム1によれば、制御装置3と複数台の端末装置7が接続されるシステム構成で、制御装置3から端末装置7への送信が、通常通信または一斉送信で行われる。通常通信において、制御装置3は、正常に受信された通信の発信元の端末装置7の端末番号を、受信時刻の順に常に代表端末管理テーブル500に記録および更新させている。代表端末の台数は、制御装置3が一度に確実にデータを受信できる数であることが好ましい。   As described above, according to the response confirmation system 1 according to the present embodiment, transmission from the control device 3 to the terminal device 7 is normally performed in a system configuration in which the control device 3 and a plurality of terminal devices 7 are connected. This is done by communication or broadcast. In the normal communication, the control device 3 always records and updates the terminal number of the terminal device 7 that is the transmission source of the normally received communication in the representative terminal management table 500 in the order of the reception time. The number of representative terminals is preferably such that the control device 3 can reliably receive data at one time.

制御装置3が、一斉通信でデータを送信する場合、代表端末管理テーブル500に基づき所定数の端末装置7を代表端末に設定する。送信するデータ80には、各端末番号と、各端末が応答を行う代表端末の番号とを関連付けて応答先領域84に記録する。データ80を受信した端末装置7は、応答先領域84を参照して自身が代表端末であるか否かと、代表端末である場合には応答を監視する子端末、代表端末でない場合には応答先の端末番号を認識することにより、代表端末または子端末としての動作を行なう。このとき、応答は、データ80を受信した旨を示す情報を含む。   When the control device 3 transmits data by simultaneous communication, a predetermined number of terminal devices 7 are set as representative terminals based on the representative terminal management table 500. In the data 80 to be transmitted, each terminal number and the number of the representative terminal to which each terminal responds are associated and recorded in the response destination area 84. The terminal device 7 that has received the data 80 refers to the response destination area 84 to determine whether or not it is a representative terminal, and if it is a representative terminal, it is a child terminal that monitors the response, and if it is not a representative terminal, the response destination By recognizing the terminal number, operation as a representative terminal or a child terminal is performed. At this time, the response includes information indicating that the data 80 has been received.

制御装置3は、一斉送信を行ってから所定時間内に応答が確認できない端末に対しては、リトライ送信を行う。このとき、一斉に送信する端末装置7の台数は、制御装置3が一度に確実に受信を行える、例えば代表端末の台数を越えないことが好ましい。一度に送信できないリトライ送信がある場合には複数回に分けて行なう。   The control device 3 performs retry transmission to a terminal whose response cannot be confirmed within a predetermined time after simultaneous transmission. At this time, it is preferable that the number of terminal devices 7 to be transmitted all at once does not exceed the number of representative terminals, for example, the control device 3 can reliably receive at one time. If there are retry transmissions that cannot be transmitted at once, it is divided into multiple times.

以上のように、本実施の形態による応答確認システム1によれば、常に新しく受信が正常に行えた端末装置7を代表端末とするので、代表端末が故障しているという事態を避けることができる。また、代表端末が故障することで、故障した代表端末の子端末の送信まで障害が生じる可能性を低減させることができる。   As described above, according to the response confirmation system 1 according to the present embodiment, since the terminal device 7 that has always been newly received normally can be used as the representative terminal, a situation in which the representative terminal is out of order can be avoided. . In addition, the failure of the representative terminal can reduce the possibility that a failure occurs until the child terminal of the failed representative terminal transmits.

代表端末の台数を制御装置3が確実に受信可能な台数とすることで、ネットワーク5に接続される複数台の端末装置7へ一斉送信した際に、端末装置7からの応答を破棄することなく制御装置3で受信することが可能である。さらに、応答がない端末にはリトライ送信を行うため、さらに確実に送信を行うことができる。   By making the number of representative terminals the number that can be reliably received by the control device 3, the response from the terminal device 7 is not discarded when simultaneously transmitted to a plurality of terminal devices 7 connected to the network 5. It can be received by the control device 3. Furthermore, since a retry transmission is performed for a terminal that does not respond, the transmission can be performed more reliably.

なお、本発明は、以上に述べた実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で種々の構成または実施形態を採ることができる。例えば、制御装置3、端末装置7の構成、機能は、上記の例に限定されず、同様の作用効果を奏するものであれば、本発明の範囲である。   The present invention is not limited to the embodiments described above, and various configurations or embodiments can be adopted without departing from the gist of the present invention. For example, the configurations and functions of the control device 3 and the terminal device 7 are not limited to the above-described examples, and are within the scope of the present invention as long as they have the same effects.

代表端末を設定する方法については、代表端末管理テーブル500を用いる方法に限定されない。任意の台数を、新しく受信が確認できた端末装置7から選択可能な方法であれば、別な方法でもよい。例えば、代表端末管理テーブル500の端末番号とリンク先のデータのみを用いるようにしてもよい。代表端末数分の記憶領域に、受信が確認できた順に端末番号を格納していくなどの方法も考えられる。このとき、端末番号が既に格納されている番号と重なった場合には、既に格納されていた番号を最新の順に並び替えるなどの方法で、常に所定台数の端末装置7の番号を格納しておくことができる。   The method for setting the representative terminal is not limited to the method using the representative terminal management table 500. Another method may be used as long as it is a method that can select an arbitrary number from the terminal device 7 that has been confirmed to be newly received. For example, only the terminal number and link destination data in the representative terminal management table 500 may be used. A method is also conceivable in which terminal numbers are stored in the storage areas for the number of representative terminals in the order in which reception is confirmed. At this time, if the terminal number overlaps with the already stored number, the number of the terminal device 7 of a predetermined number is always stored by a method such as rearranging the already stored number in the latest order. be able to.

1 応答確認システム
3 制御装置
5 ネットワーク
7 端末装置
11 CPU
13 ROM
15 RAM
17 タイマ
18 入出力部
19 通信回路
21 CPU
23 ROM
25 RAM
27 タイマ
28 入出力部
29 通信回路
31 制御部
33 代表端末管理部
35 応答先設定部
37 応答管理部
39 タイマ監視部
41 通信制御部
43 制御部
45 応答先認識部
47 子端末管理部
49 タイマ監視部
51 通信制御部
80 データ
82 ヘッダ
84 応答先領域
86 送信データ
500 代表端末管理テーブル
DESCRIPTION OF SYMBOLS 1 Response confirmation system 3 Control apparatus 5 Network 7 Terminal device 11 CPU
13 ROM
15 RAM
17 Timer 18 Input / Output Unit 19 Communication Circuit 21 CPU
23 ROM
25 RAM
27 Timer 28 Input / output unit 29 Communication circuit 31 Control unit 33 Representative terminal management unit 35 Response destination setting unit 37 Response management unit 39 Timer monitoring unit 41 Communication control unit 43 Control unit 45 Response destination recognition unit 47 Child terminal management unit 49 Timer monitoring Unit 51 Communication control unit 80 Data 82 Header 84 Response destination area 86 Transmission data 500 Representative terminal management table

Claims (10)

複数の端末装置がネットワークを介して接続された応答確認装置であって、
前記複数の端末装置との間の通信を行う通信制御部と、
前記端末装置からの応答の有無を管理する応答管理部と、
前記端末装置のうち、前記応答管理部により新しく応答が確認された所定数の端末装置を代表端末として管理する代表端末管理部と、
複数の前記端末装置に一斉に送信を行う一斉通信において、前記端末装置の応答先を前記代表端末のいずれかに設定する応答先設定部と、
を有し、
前記通信制御部は、前記一斉通信を行い、前記一斉通信において、前記応答先設定部が設定した応答先を含む情報を送信することを特徴とする応答確認装置。
A response confirmation device in which a plurality of terminal devices are connected via a network,
A communication control unit that performs communication with the plurality of terminal devices;
A response management unit that manages the presence or absence of a response from the terminal device;
Among the terminal devices, a representative terminal management unit that manages, as a representative terminal, a predetermined number of terminal devices whose responses are newly confirmed by the response management unit;
A response destination setting unit that sets a response destination of the terminal device to one of the representative terminals in a simultaneous communication that transmits to a plurality of the terminal devices at the same time;
Have
The communication control unit performs the simultaneous communication, and transmits information including a response destination set by the response destination setting unit in the simultaneous communication.
前記通信制御部は、さらに、前記複数の端末装置のいずれかと個別に送受信を行う個別通信を行い、
前記代表端末管理部は、前記個別通信において、前記端末装置のうち、前記応答管理部により新しく応答が確認された所定数の端末装置を前記代表端末として管理する、
ことを特徴とする請求項1に記載の応答確認装置。
The communication control unit further performs individual communication for individually transmitting / receiving with any of the plurality of terminal devices,
The representative terminal management unit manages, as the representative terminal, a predetermined number of terminal devices whose responses are newly confirmed by the response management unit among the terminal devices in the individual communication.
The response confirmation apparatus according to claim 1.
前記代表端末管理部は、前記個別通信において、前記新しく応答が確認された端末装置を、1つ前に応答が確認された端末装置と関連付けて前記応答の順を認識することにより前記代表端末を管理することを特徴とする請求項2に記載の応答確認装置。   In the individual communication, the representative terminal management unit associates the terminal device for which the response has been newly confirmed with the terminal device for which the response has been previously confirmed, and recognizes the order of the responses. The response confirmation apparatus according to claim 2, wherein the response confirmation apparatus is managed. 前記応答管理部は、前記一斉通信に対する前記複数の端末装置からの応答の有無を確認し、
前記通信制御部は、前記応答管理部が確認した応答がない端末装置に前記個別通信、または前記一斉通信を行うことを特徴とする請求項2または請求項3に記載の応答確認装置。
The response management unit confirms whether or not there are responses from the plurality of terminal devices for the simultaneous communication,
The response confirmation apparatus according to claim 2 or 3, wherein the communication control unit performs the individual communication or the simultaneous communication with a terminal device that does not have a response confirmed by the response management unit.
応答確認装置とネットワークを介して接続された端末装置であって、
前記応答確認装置から送信されたデータにより設定された応答先の端末装置を認識する応答先認識部と、
前記応答先認識部が、前記応答先を前記端末装置自身であると認識すると、前記端末装置自身が応答先と設定された子端末装置からの通信を管理する子端末管理部と、
前記応答先認識部が、前記応答先を前記端末装置自身であると認識すると、前記子端末装置からの通信を受信し、受信した前記通信をまとめて前記応答確認装置に送信し、前記応答先が前記端末装置自身以外であると認識した場合には、認識された応答先に通信を行う通信制御部と、
を有することを特徴とする端末装置。
A terminal device connected to the response confirmation device via a network,
A response destination recognition unit for recognizing a response destination terminal device set by data transmitted from the response confirmation device;
When the response destination recognition unit recognizes that the response destination is the terminal device itself, the terminal device itself manages the communication from the child terminal device set as the response destination;
When the response destination recognizing unit recognizes that the response destination is the terminal device itself, it receives communication from the child terminal device, transmits the received communication collectively to the response confirmation device, and receives the response destination. A communication control unit that communicates with the recognized response destination;
The terminal device characterized by having.
請求項1から請求項4のいずれかの応答確認装置と、請求項5に記載の複数の端末装置とがネットワークを介して接続されたシステム。   A system in which the response confirmation device according to any one of claims 1 to 4 and the plurality of terminal devices according to claim 5 are connected via a network. 複数の端末装置がネットワークを介して接続された応答確認装置が、
前記複数の端末装置へ送信を行う処理と、
前記端末装置からの応答の有無を管理する処理と、
前記端末装置のうち、新しく応答が確認された所定数の端末装置を代表端末として管理する処理と、
複数の前記端末装置へ一斉に送信を行う一斉通信において、前記端末装置の応答先を前記代表端末のいずれかに設定する処理と、
前記一斉通信を行い、前記一斉通信において、設定された応答先を含む情報を前記端末装置に送信する処理と、
を有することを特徴とする応答確認方法。
A response confirmation device in which a plurality of terminal devices are connected via a network.
Processing to transmit to the plurality of terminal devices;
A process for managing the presence or absence of a response from the terminal device;
A process of managing a predetermined number of terminal devices for which new responses have been confirmed among the terminal devices as representative terminals;
In simultaneous communication that transmits to a plurality of the terminal devices all at once, a process of setting a response destination of the terminal device to one of the representative terminals;
A process of performing the simultaneous communication and transmitting information including a set response destination to the terminal device in the simultaneous communication;
A response confirmation method characterized by comprising:
応答確認装置とネットワークを介して接続された端末装置が、
前記応答確認装置により送信されたデータにより設定された応答先の端末装置を認識する処理と、
前記応答先が前記端末装置自身であると認識すると、前記端末装置自身が応答先と設定された子端末装置からの通信を管理する処理と、
前記応答先が前記端末装置自身であると認識されると、前記子端末装置からの通信を受信し、受信した前記通信をまとめて前記応答確認装置に送信し、前記応答先が前記端末装置自身以外の場合には、認識された応答先に通信を行う処理と、
を有することを特徴とする応答確認方法。
The terminal device connected to the response confirmation device via the network
Processing for recognizing a response destination terminal device set by data transmitted by the response confirmation device;
When recognizing that the response destination is the terminal device itself, the terminal device itself manages communication from the child terminal device set as the response destination;
When it is recognized that the response destination is the terminal device itself, it receives communications from the child terminal device, sends the received communications together to the response confirmation device, and the response destination is the terminal device itself Otherwise, the process of communicating with the recognized response destination,
A response confirmation method characterized by comprising:
複数の端末装置がネットワークを介して接続された応答確認装置において、
前記複数の端末装置へ送信を行う処理と、
前記端末装置からの応答の有無を管理する処理と、
前記端末装置のうち、新しく応答が確認された所定数の端末装置を代表端末として管理する処理と、
複数の前記端末装置へ一斉に送信を行う一斉通信において、前記端末装置の応答先を前記代表端末のいずれかに設定する処理と、
前記一斉通信を行い、前記一斉通信において、設定された応答先を含む情報を前記端末装置に送信する処理と、
をコンピュータに実行させるためのプログラム。
In a response confirmation device in which a plurality of terminal devices are connected via a network,
Processing to transmit to the plurality of terminal devices;
A process for managing the presence or absence of a response from the terminal device;
A process of managing a predetermined number of terminal devices for which new responses have been confirmed among the terminal devices as representative terminals;
In simultaneous communication that transmits to a plurality of the terminal devices all at once, a process of setting a response destination of the terminal device to one of the representative terminals;
A process of performing the simultaneous communication and transmitting information including a set response destination to the terminal device in the simultaneous communication;
A program that causes a computer to execute.
応答確認装置とネットワークを介して接続された端末装置において、
前記応答確認装置により送信されたデータにより設定された応答先の端末装置を認識する処理と、
前記応答先が前記端末装置自身であると認識すると、前記端末装置自身が応答先と設定された子端末装置からの通信を管理する処理と、
前記応答先が前記端末装置自身であると認識されると、前記子端末装置からの通信を受信し、受信した前記通信をまとめて前記応答確認装置に送信し、前記応答先が前記端末装置自身以外の場合には、認識された応答先に通信を行う処理と、
をコンピュータに実行させるためのプログラム。
In the terminal device connected to the response confirmation device via the network,
Processing for recognizing a response destination terminal device set by data transmitted by the response confirmation device;
When recognizing that the response destination is the terminal device itself, the terminal device itself manages communication from the child terminal device set as the response destination;
When it is recognized that the response destination is the terminal device itself, it receives communications from the child terminal device, sends the received communications together to the response confirmation device, and the response destination is the terminal device itself Otherwise, the process of communicating with the recognized response destination,
A program that causes a computer to execute.
JP2011246850A 2011-11-10 2011-11-10 Device and method for response confirmation, and program Pending JP2013106097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011246850A JP2013106097A (en) 2011-11-10 2011-11-10 Device and method for response confirmation, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011246850A JP2013106097A (en) 2011-11-10 2011-11-10 Device and method for response confirmation, and program

Publications (1)

Publication Number Publication Date
JP2013106097A true JP2013106097A (en) 2013-05-30

Family

ID=48625368

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011246850A Pending JP2013106097A (en) 2011-11-10 2011-11-10 Device and method for response confirmation, and program

Country Status (1)

Country Link
JP (1) JP2013106097A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016053926A (en) * 2014-09-04 2016-04-14 富士通フロンテック株式会社 Information management device, information management method, and information management program
JP2019047303A (en) * 2017-08-31 2019-03-22 ヤフー株式会社 Terminal device, communication control method, and communication control program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016053926A (en) * 2014-09-04 2016-04-14 富士通フロンテック株式会社 Information management device, information management method, and information management program
JP2019047303A (en) * 2017-08-31 2019-03-22 ヤフー株式会社 Terminal device, communication control method, and communication control program

Similar Documents

Publication Publication Date Title
CN107295080A (en) Date storage method and server applied to distributed server cluster
JP6073951B2 (en) Drive recording system having communication module and drive recording method
JP2008522509A (en) System and method for monitoring mobile units in a wireless network
EP2934036A1 (en) System and method for managing cwsn communication data based on gui graphic interaction interface
CN108306796B (en) Intelligent home system, and information processing method and device of intelligent home equipment
JP2016062507A (en) Apparatus monitoring system, apparatus monitor, apparatus monitoring method and apparatus monitoring program
US20080225856A1 (en) Network connection apparatus
JP2013106097A (en) Device and method for response confirmation, and program
JP5983118B2 (en) Terminal device and program
CN102640456B (en) The method and system that the one-to-many data contributing to multiple calculation element transmit
CN113965494A (en) Method for fault detection and role selection in a redundant process network
JP2009194768A (en) Network communication system, loop detection method thereof, and relay apparatus of network communication system
JP6932961B2 (en) Telegram transmission / reception system, telegram transmission device, telegram transmission / reception method and program
JP2009152755A (en) Network monitoring system and network monitoring method
JP4851994B2 (en) Operation monitoring device, operation monitoring method, and operation monitoring program
JP7101511B2 (en) Communications system
JPH11225182A (en) Information display system and its control method
JP6146168B2 (en) Device information display method and device information storage device
JP7442895B1 (en) Information processing method and information processing device
JP2767685B2 (en) Amusement machine data transmission system
JP4360888B2 (en) File writing system
JPWO2006030697A1 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE COMMUNICATION CONTROL PROGRAM
JP6358295B2 (en) Terminal device, information transmission / reception method, and program
JP6792543B2 (en) Non-communication time estimation device, non-communication time estimation method, and program
JP2009171258A (en) Network management system, network management apparatus, device management method, and device management control program