JP2002164901A - Master / slave setting method, communication control device, and network system - Google Patents
Master / slave setting method, communication control device, and network systemInfo
- Publication number
- JP2002164901A JP2002164901A JP2000359047A JP2000359047A JP2002164901A JP 2002164901 A JP2002164901 A JP 2002164901A JP 2000359047 A JP2000359047 A JP 2000359047A JP 2000359047 A JP2000359047 A JP 2000359047A JP 2002164901 A JP2002164901 A JP 2002164901A
- Authority
- JP
- Japan
- Prior art keywords
- master
- communication control
- terminal
- control device
- slave
- 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
(57)【要約】
【課題】本発明は、スレーブ端末となる通信制御装置間
でデータ信号の送受信が行われるとき、マスタ端末の変
更を要求することでデータ転送効率の良いデータ通信を
行うことができるネットワークシステムを提供すること
を目的とする。
【解決手段】スレーブ端末として設定されているとき、
スレーブ端末となる他の通信制御装置に対してデータ信
号を送信する際、マスタ端末の変更設定を行ってからデ
ータ信号の送信を行う方がデータ転送効率が良いとマス
タ変更判定部210で判定したとき、マスタ変更要求信
号を送信する。又、マスタ端末として設定される通信制
御装置がマスタ変更要求信号を受信すると、マスタ端末
の変更設定の妥当性をマスタ制御部206で確認する。
(57) Abstract: An object of the present invention is to perform a data communication with a high data transfer efficiency by requesting a change of a master terminal when a data signal is transmitted and received between communication control devices serving as slave terminals. The purpose of the present invention is to provide a network system capable of performing the following. When a terminal is set as a slave terminal,
When transmitting a data signal to another communication control device serving as a slave terminal, the master change determination unit 210 has determined that it is better to transmit the data signal after performing the change setting of the master terminal and then to perform data transfer more efficiently. At this time, a master change request signal is transmitted. When the communication control device set as the master terminal receives the master change request signal, the master control unit 206 checks the validity of the change setting of the master terminal.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、通信機能を有する
複数の通信制御装置に関するもので、特に、相互にマス
タ端末及びスレーブ端末を設定することが可能な通信制
御装置に関する。又、本発明は、このような通信制御装
置より構成されるネットワークシステム及びマスタ/ス
レーブ設定方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control device having a communication function, and more particularly to a communication control device capable of mutually setting a master terminal and a slave terminal. The present invention also relates to a network system including such a communication control device and a master / slave setting method.
【0002】[0002]
【従来の技術】近年のネットワーク関連技術の発展によ
り、PDA(Personal Digital Assistants)などの携
帯端末を活用したローカルエリアにおける情報の送受信
システムが実現されている。この送受信システムにおい
ては、移動先空間におけるグループコミュニケーション
や指定エリア内に限定されるコミュニケーションなどで
活用され、各端末同士が自動的に認識しあうことで、相
互通信を可能としている。このような通信システムにお
ける通信ネットワークは、アドホックネットワークと呼
ばれている。2. Description of the Related Art With the recent development of network-related technology, a system for transmitting and receiving information in a local area using a portable terminal such as a PDA (Personal Digital Assistants) has been realized. This transmission / reception system is used for group communication in a destination space or communication limited to a designated area, and enables mutual communication by automatically recognizing each terminal. A communication network in such a communication system is called an ad hoc network.
【0003】このアドホックネットワークを実現するた
めに、Bluetoothと呼ばれるデバイス技術が提案されて
いる(『トランジスタ技術 1999.10』の205〜206
ページ、「Bluetoothの概要」参照)。このBluetoothデ
バイスは、2.4GHz周波数帯域を用いた無線ローカルエリ
アネットワークを構築するための通信制御装置に用いる
デバイスである。このデバイスを有する複数の通信制御
装置が、ピコネットと呼ばれる最小単位のネットワーク
を構築する。そして、ピコネットを構築する複数の通信
制御装置の内、最初に通信を開始した1台の通信制御装
置がマスタ端末として動作するとともに、残りの通信制
御装置がスレーブ端末として動作することで、この複数
の通信制御装置間で相互に通信が行われる。In order to realize this ad hoc network, a device technology called Bluetooth has been proposed (see “Transistor Technology 1999.10”, 205-206).
Page, “Overview of Bluetooth”). This Bluetooth device is a device used for a communication control device for constructing a wireless local area network using a 2.4 GHz frequency band. A plurality of communication control devices having this device construct a minimum unit network called a piconet. Then, among the plurality of communication control devices that construct the piconet, one communication control device that has started communication first operates as a master terminal, and the other communication control devices operate as slave terminals. The communication control devices communicate with each other.
【0004】又、上記文献におけるのBluetoothデバイ
スを用いた通信制御装置によって構築されるネットワー
クでは、マスタ端末の選定方法として、最初に通信を開
始した通信制御装置をマスタ端末として選定する方法が
使用されているが、この方法以外に、特許第29248
28号公報で提供されている方法がある。これは、アド
ホックネットワーク内の各通信制御装置の蓄電池残量及
び転送レートに基づいて、適切な親機(マスタ端末)を
選定する方法である。この方法を用いることで、ネット
ワークの接続時間の維持及びネットワークの転送効率が
向上される。In a network constructed by a communication control device using a Bluetooth device in the above document, a method of selecting a communication control device which has started communication first as a master terminal is used as a method of selecting a master terminal. However, in addition to this method, Japanese Patent No. 29248
There is a method provided in JP-A-28. This is a method of selecting an appropriate master device (master terminal) based on the remaining battery capacity and transfer rate of each communication control device in the ad hoc network. By using this method, the connection time of the network is maintained and the transfer efficiency of the network is improved.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、上述し
たBluetoothデバイスを用いた通信制御装置によって構
築されるネットワークのように、最初に通信を開始した
通信制御装置がマスタ端末と選定されてネットワークが
確立されてしまうと、ネットワーク確立後にスレーブ端
末同士で頻繁に通信が行われる場合には、マスタ端末を
経由して通信が行われるため、マスタ端末とスレーブ端
末との間で通信が行われる場合に比べて、そのデータ転
送効率が低くなる。However, as in the network constructed by the communication control device using the Bluetooth device described above, the communication control device which has started communication first is selected as the master terminal, and the network is established. If communication between slave terminals is frequently performed after the network is established, communication is performed via the master terminal, so that communication is performed between the master terminal and the slave terminal. , The data transfer efficiency decreases.
【0006】又、特許第2924828号公報では、ネ
ットワーク内の各通信制御装置の蓄電池残量及び転送レ
ートに基づいてマスタ端末の選定を行うようにすること
で、マスタ端末の変更が可能なものとしている。しかし
ながら、マスタ端末の選定を行うための基準となる転送
レートは、各スレーブ端末からマスタ端末に対してテス
トデータを送信する際の送信速度である。よって、各通
信制御装置の蓄電池残量が等しいとき、マスタ端末は、
各通信制御装置の送信能力によって選定されてしまう。
よって、実際の通信によってかかる転送時間に基づいて
マスタ端末が選定されず、結果的にマスタ端末が確立さ
れているときと同等となり、ネットワークの転送効率の
向上につながらないことがある。In Japanese Patent No. 2924828, the master terminal is selected based on the remaining battery capacity and the transfer rate of each communication control device in the network, so that the master terminal can be changed. I have. However, the transfer rate serving as a criterion for selecting a master terminal is the transmission speed when test data is transmitted from each slave terminal to the master terminal. Therefore, when the remaining battery power of each communication control device is equal, the master terminal
It is selected depending on the transmission capability of each communication control device.
Therefore, the master terminal is not selected based on the transfer time required for actual communication, and as a result, the result becomes the same as when the master terminal is established, which may not improve the transfer efficiency of the network.
【0007】上記問題を鑑みて、本発明は、スレーブ端
末となる通信制御装置間でデータ信号の送受信が行われ
るとき、マスタ端末の変更を要求することでデータ転送
効率の良いデータ通信を行うことができるネットワーク
システムを提供することを目的とする。又、本発明は、
このようなネットワークシステムを構築するための通信
制御装置及びマスタ/スレーブ設定方法を提供すること
を目的とする。[0007] In view of the above problems, the present invention provides a data communication with high data transfer efficiency by requesting a change of a master terminal when a data signal is transmitted and received between communication control devices serving as slave terminals. The purpose of the present invention is to provide a network system capable of performing the following. Also, the present invention
It is an object to provide a communication control device and a master / slave setting method for constructing such a network system.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するため
に、本発明のマスタ/スレーブ設定方法は、複数台の通
信制御装置で構築されたネットワーク内で、マスタ端末
となる1台の通信制御装置とスレーブ端末となる複数台
の通信制御装置とを設定するためのマスタ/スレーブ設
定方法において、現在構築されたネットワーク内におい
て、該ネットワーク内の任意のスレーブ端末である通信
制御装置が他のスレーブ端末である通信制御装置に対し
てデータ信号を送信する際、前記データ信号の送受信が
行われるスレーブ端末である2台の通信制御装置の何れ
かをマスタ端末に変更して、新たに、マスタ端末及びス
レーブ端末を再設定することを特徴とする。In order to achieve the above object, a master / slave setting method according to the present invention provides a method for setting one communication control device serving as a master terminal in a network constructed by a plurality of communication control devices. In a master / slave setting method for setting an apparatus and a plurality of communication control apparatuses serving as slave terminals, in a currently constructed network, a communication control apparatus which is an arbitrary slave terminal in the network is connected to another slave. When a data signal is transmitted to a communication control device that is a terminal, one of the two communication control devices that are slave terminals that transmit and receive the data signal is changed to a master terminal, and a new master terminal is changed. And resetting the slave terminal.
【0009】このようなマスタ/スレーブ設定方法によ
ると、2台のスレーブ端末となる通信制御装置間でデー
タ通信が行われる際、マスタ端末となる通信制御装置を
介してデータ通信が行われるが、このデータ通信を行う
2台の通信制御装置のうち1台をマスタ端末に設定変更
することができる。よって、データ通信を行う2台の通
信制御装置が、直接データ通信を行うことができる。According to such a master / slave setting method, when data communication is performed between two communication control devices serving as slave terminals, data communication is performed via the communication control device serving as a master terminal. The setting of one of the two communication control devices for performing the data communication can be changed to the master terminal. Therefore, two communication control devices that perform data communication can directly perform data communication.
【0010】又、このようなマスタ/スレーブ設定方法
において、前記データ信号の送受信を行うスレーブ端末
である2台の通信制御装置が、現在マスタ端末として設
定される通信制御装置を介してデータ信号の送受信を行
うときにかかる第1データ転送時間が算出されるととも
に、マスタ端末の変更が開始してから、前記データ信号
の送受信を行うスレーブ端末であった2台の通信制御装
置がそれぞれマスタ端末とスレーブ端末に設定された後
に、前記2台の通信制御装置が直接前記データ信号の送
受信を行うまでにかかる第2データ転送時間が算出さ
れ、前記第2データ転送時間が前記第1データ転送時間
より短くなるとき、マスタ端末の変更が行われるように
することで、データ転送効率の良いネットワークが構築
されるようにすることができる。Further, in such a master / slave setting method, two communication control devices, which are slave terminals for transmitting and receiving the data signal, communicate with each other via the communication control device currently set as the master terminal. The first data transfer time required for transmission / reception is calculated, and after the change of the master terminal is started, the two communication control devices, which are slave terminals for transmitting / receiving the data signal, are respectively connected to the master terminal. After being set as a slave terminal, a second data transfer time required for the two communication control devices to directly transmit and receive the data signal is calculated, and the second data transfer time is calculated from the first data transfer time. When it becomes shorter, the master terminal is changed so that a network with high data transfer efficiency can be constructed. Can.
【0011】本発明の通信制御装置は、複数の他の通信
制御装置とともにネットワークを構築するとともに、該
ネットワーク内においてマスタ端末又はスレーブ端末の
いずれかとなってデータ通信を行う通信制御装置におい
て、通信用の信号を送受信するための送受信部と、スレ
ーブ端末として設定されているとき、前記ネットワーク
を構築する他の通信制御装置のうちスレーブ端末として
設定されている他の通信制御装置にデータ信号を送信す
る際、マスタ端末の変更を要求するためのマスタ変更信
号が前記送受信部で生成されるように、自機器又は前記
データ信号の送信先の通信制御装置のいずれか一方をマ
スタ端末に変更するか否かの判定を行うマスタ変更判定
部と、を有し、前記マスタ変更判定部でマスタ端末の変
更が行われるように判定されたとき、前記送受信部で前
記マスタ変更要求信号を生成した後、現在マスタ端末に
設定されている他の通信制御装置に対して前記マスタ変
更要求信号を送信することを特徴とする。A communication control device according to the present invention is a communication control device which constructs a network together with a plurality of other communication control devices and performs data communication as either a master terminal or a slave terminal in the network. And a transmission / reception unit for transmitting / receiving a signal, and when set as a slave terminal, transmits a data signal to another communication control device set as a slave terminal among other communication control devices configuring the network. At this time, whether to change either the own device or the communication control device of the transmission destination of the data signal to the master terminal so that a master change signal for requesting the change of the master terminal is generated in the transmission / reception unit And a master change determining unit for determining whether the master terminal is changed by the master change determining unit. When it is determined, after generating the master change request signal by the transmitting and receiving unit, and transmits the master change request signal to another communication controller that is currently set to the master terminal.
【0012】このようにすることで、スレーブ端末とし
て設定されているときに、マスタ端末として設定されて
いる他の通信制御装置を介して、スレーブ端末として設
定されている他の通信制御装置とデータ通信を行う際
に、マスタ端末として設定されている他の通信制御装置
に対して、マスタ変更要求信号を送信することができ
る。よって、自機器とデータ通信を行う相手機器との間
で直接データ通信を行うことができる。In this manner, when the communication terminal is set as the slave terminal, the data communication with the other communication control device set as the slave terminal is performed via the other communication control device set as the master terminal. When communication is performed, a master change request signal can be transmitted to another communication control device set as a master terminal. Therefore, direct data communication can be performed between the own device and a partner device that performs data communication.
【0013】又、本発明の通信制御装置は、複数の他の
通信制御装置とともにネットワークを構築するととも
に、該ネットワーク内においてマスタ端末又はスレーブ
端末のいずれかとなってデータ通信を行う通信制御装置
において、通信用の信号を送受信するための送受信部
と、マスタ端末として設定されているとき、スレーブ端
末となる他の通信制御装置から送信されるマスタ端末の
変更を要求するためのマスタ変更要求信号を前記送受信
部で受信すると、マスタ端末としての設定を解除すると
ともに、次にマスタ端末に設定される他の通信制御装置
に対してマスタ端末の設定を行うことを認識させるため
のマスタ変更通知信号を前記送受信部が生成するように
制御するマスタ制御部と、を有し、スレーブ端末となる
他の通信制御装置間同士でデータ信号の通信が開始され
ようとするときに、該データ信号の送信を行うスレーブ
端末となる他の通信制御装置より前記マスタ変更要求信
号が送信されたとき、前記マスタ制御部でマスタ端末と
しての設定を解除した後、次にマスタ端末に設定される
他の通信制御装置に対して前記マスタ変更通知信号を送
信することを特徴とする。Further, the communication control device of the present invention is a communication control device which constructs a network together with a plurality of other communication control devices and performs data communication as one of a master terminal and a slave terminal in the network. A transmission / reception unit for transmitting / receiving a signal for communication, and when set as a master terminal, a master change request signal for requesting a change of a master terminal transmitted from another communication control device serving as a slave terminal. When received by the transmitting and receiving unit, while canceling the setting as the master terminal, the master change notification signal for recognizing that the other communication control device to be set to the master terminal next performs setting of the master terminal, A master control unit that controls the transmission / reception unit to generate the data, and a communication unit between the other communication control devices serving as slave terminals. When communication of the data signal is about to be started, when the master change request signal is transmitted from another communication control device that is a slave terminal that transmits the data signal, the master control unit operates as a master terminal. After the setting is canceled, the master change notification signal is transmitted to another communication control device to be set as the next master terminal.
【0014】このようにすることで、マスタ端末として
設定されているときに、2台のスレーブ端末として設定
されている他の通信制御装置が、自機器を介してデータ
通信を行おうとする際、自機器のマスタ端末としての設
定を解除した後、マスタ変更通知信号を送信して、デー
タ通信を行う2台の他の通信制御装置の何れかをマスタ
端末に設定変更することができる。よって、データ通信
を行う2台の他の通信制御装置が直接データ通信を行う
ことができる。By doing so, when another communication control device set as two slave terminals tries to perform data communication via its own device when it is set as a master terminal, After releasing the setting of the own device as the master terminal, a master change notification signal is transmitted to change the setting of one of the two other communication control devices that perform data communication to the master terminal. Therefore, two other communication control devices that perform data communication can directly perform data communication.
【0015】又、本発明の通信制御装置は、複数の他の
通信制御装置とともにネットワークを構築するととも
に、該ネットワーク内においてマスタ端末又はスレーブ
端末のいずれかとなってデータ通信を行う通信制御装置
において、通信用の信号を送受信するための送受信部
と、スレーブ端末として設定されているとき、前記ネッ
トワークを構築する他の通信制御装置のうちスレーブ端
末として設定されている他の通信制御装置にデータ信号
を送信する際、マスタ端末の変更を要求するためのマス
タ変更信号が前記送受信部で生成されるように、自機器
又は前記データ信号の送信先の通信制御装置のいずれか
一方をマスタ端末に変更するか否かの判定を行うマスタ
変更判定部と、マスタ端末として設定されているとき、
スレーブ端末となる他の通信制御装置から送信される前
記マスタ変更要求信号を前記送受信部で受信すると、マ
スタ端末としての設定を解除するとともに、次にマスタ
端末に設定される他の通信制御装置に対してマスタ端末
の設定を行うことを認識させるためのマスタ変更通知信
号が前記送受信部において生成されるように制御するマ
スタ制御部と、を有し、スレーブ端末として設定された
場合において、前記マスタ変更判定部でマスタ端末の変
更が行われるように判定されたとき、前記送受信部で前
記マスタ変更要求信号を生成した後、現在マスタ端末に
設定されている他の通信制御装置に対して前記マスタ変
更要求信号を送信し、又、マスタ端末として設定された
場合において、スレーブ端末となる他の通信制御装置間
より前記マスタ変更要求信号が送信されたとき、前記マ
スタ制御部でマスタ端末としての設定を解除した後、次
にマスタ端末に設定される他の通信制御装置に対して前
記マスタ変更通知信号を送信することを特徴とする。Further, the communication control device of the present invention is a communication control device which constructs a network together with a plurality of other communication control devices and performs data communication as one of a master terminal and a slave terminal in the network. A transmission / reception unit for transmitting / receiving a signal for communication, and when set as a slave terminal, sends a data signal to another communication control device set as a slave terminal among other communication control devices configuring the network. At the time of transmission, one of the own device or the communication control device of the transmission destination of the data signal is changed to the master terminal so that a master change signal for requesting a change of the master terminal is generated in the transmission / reception unit. A master change determination unit that determines whether or not a master terminal is set,
When the transmission / reception unit receives the master change request signal transmitted from another communication control device serving as a slave terminal, the setting as the master terminal is released, and the other communication control device set to the next master terminal is reset. And a master control unit that controls a master change notification signal for causing the transmission / reception unit to generate a master change notification signal for recognizing that setting of the master terminal is performed. When it is determined that the change of the master terminal is performed by the change determination unit, the transmission / reception unit generates the master change request signal, and then transmits the master to another communication control device that is currently set to the master terminal. A change request signal is transmitted, and when set as a master terminal, the master change is performed between other communication control devices that are slave terminals. When the request signal is transmitted, the master control unit cancels the setting as the master terminal, and then transmits the master change notification signal to another communication control device set as the next master terminal. And
【0016】このような通信制御装置が、前記マスタ変
更判定部において、前記データ信号を、現在マスタ端末
として設定されている通信制御装置を介して、前記送信
先の通信制御装置に送信するときにかかる第1データ転
送時間が算出されるとともに、前記マスタ変更要求信号
の生成が開始されてから、前記データ信号が前記送信先
の通信制御装置へ送信されるまでにかかる第2データ転
送時間が算出され、前記第2データ転送時間が前記第1
データ転送時間より短くなるとき、マスタ端末の変更が
行われるように判定されるようにすることで、マスタ端
末を変更しない場合と、マスタ端末を変更した場合の何
れが、データ転送効率が良いか判定される。よって、こ
の通信制御装置によって、データ転送効率の良いネット
ワークが構築される。When such a communication control device transmits the data signal to the destination communication control device via the communication control device currently set as the master terminal in the master change determination section, The first data transfer time is calculated, and the second data transfer time required from when the generation of the master change request signal is started to when the data signal is transmitted to the destination communication control device is calculated. And the second data transfer time is the first data transfer time.
When the time is shorter than the data transfer time, whether the master terminal is changed or not is changed by determining that the change of the master terminal is performed. Is determined. Therefore, a network with high data transfer efficiency is constructed by this communication control device.
【0017】このような通信制御装置において、ネット
ワーク内のマスタ端末として設定される通信制御装置及
びスレーブ端末として設定される通信制御装置をそれぞ
れ識別するために、個々の通信制御装置を識別するため
の端末識別情報が格納される端末識別情報格納部と、前
記ネットワークが構築されたとき、スレーブ端末として
設定された他の通信制御装置の端末識別情報であるスレ
ーブ識別情報を格納するスレーブ情報格納部と、前記ネ
ットワークが構築されたとき、マスタ端末として設定さ
れた他の通信制御装置の端末識別情報であるマスタ識別
情報を格納するマスタ識別情報格納部と、を設けても構
わない。In such a communication control device, in order to identify a communication control device set as a master terminal and a communication control device set as a slave terminal in a network, a communication control device for identifying each communication control device is identified. A terminal identification information storage unit that stores terminal identification information, and a slave information storage unit that stores slave identification information that is terminal identification information of another communication control device set as a slave terminal when the network is constructed. A master identification information storage unit that stores master identification information that is terminal identification information of another communication control device set as a master terminal when the network is established.
【0018】この通信制御装置において、マスタ端末の
変更を行うとき、前記スレーブ情報格納部内のスレーブ
識別情報及び前記マスタ識別情報格納部内のマスタ識別
情報が削除されて、前記スレーブ情報格納部及び前記マ
スタ識別情報格納部がリセットされた後、待機状態とな
る。In this communication control device, when the master terminal is changed, the slave identification information in the slave information storage and the master identification information in the master identification information storage are deleted, and the slave information storage and the master are deleted. After the identification information storage section is reset, the apparatus enters a standby state.
【0019】又、前記ネットワーク内でスレーブ端末と
して設定されているとともにマスタ端末の変更後にマス
タ端末として設定される場合において、前記ネットワー
クでマスタ端末として設定されている通信制御装置から
の前記マスタ変更通信号を受信したとき、前記スレーブ
情報格納部及び前記マスタ識別情報格納部がリセットさ
れて待機状態になった後に、マスタ端末に設定される。In the case where the communication terminal is set as a slave terminal in the network and is set as a master terminal after changing the master terminal, the master change communication from the communication control device set as the master terminal in the network is performed. When a slave signal is received, the slave information storage unit and the master identification information storage unit are reset to be in a standby state, and then set to a master terminal.
【0020】又、マスタ端末に設定される場合におい
て、他の通信制御装置を探索するとともにマスタ端末に
設定されたことを認識させるための探索信号を前記送受
信部で生成した後、他の通信制御装置に対して送信し、
他の通信制御装置より送信される前記探索信号に対する
返信信号を受信したとき、前記返信信号内に含まれた端
末識別情報を前記スレーブ情報格納部に前記スレーブ識
別情報として格納することで、スレーブ端末に設定され
た他の通信制御装置を認識し、又、スレーブ端末に設定
される場合において、マスタ端末に設定された他の通信
制御装置より送信される探索信号を受信し、前記探索信
号内に含まれた端末識別情報を前記マスタ識別情報格納
部に前記マスタ識別情報として格納することで、マスタ
端末に設定された他の通信制御装置を認識し、前記探索
信号に対する前記返信信号を前記送受信部で生成した
後、前記マスタ端末に設定される他の通信制御装置に対
して送信するようにしても構わない。In the case where the communication terminal is set to the master terminal, the transmission / reception section searches for another communication control device and generates a search signal for recognizing that the communication terminal has been set to the master terminal. Sent to the device,
When receiving a reply signal to the search signal transmitted from another communication control device, by storing the terminal identification information included in the reply signal in the slave information storage unit as the slave identification information, Recognize another communication control device set to, and, when set to a slave terminal, receive a search signal transmitted from another communication control device set to the master terminal, and within the search signal By storing the included terminal identification information as the master identification information in the master identification information storage unit, another communication control device set in the master terminal is recognized, and the reply signal to the search signal is transmitted to the transmission / reception unit. , And may be transmitted to another communication control device set in the master terminal.
【0021】本発明のネットワークシステムは、1台の
マスタ端末として設定される通信制御装置と複数台のス
レーブ端末として設定される通信制御装置で構築される
ネットワークシステムにおいて、スレーブ端末として設
定されている通信制御装置が、他のスレーブ端末として
設定されている通信制御装置に対してデータ信号の送信
を行う際、該データ信号の送受信にかかる時間に基づい
てマスタ端末の設定変更を行うか否かを判定した後、マ
スタ端末の設定変更を行う必要があると判定したとき、
送受信が行われるスレーブ端末として設定されている2
台の通信制御装置の何れかをマスタ端末に設定変更され
ることを要求するためのマスタ変更要求信号を、マスタ
端末として設定されている通信制御装置に送信すること
を特徴とする。The network system of the present invention is set as a slave terminal in a network system constructed by a communication control device set as one master terminal and a plurality of communication control devices set as slave terminals. When the communication control device transmits a data signal to the communication control device set as another slave terminal, it determines whether or not to change the setting of the master terminal based on the time required for transmitting and receiving the data signal. After the determination, when it is determined that it is necessary to change the settings of the master terminal,
2 set as a slave terminal that performs transmission and reception
A master change request signal for requesting that any one of the communication control devices be set to be changed to the master terminal is transmitted to the communication control device set as the master terminal.
【0022】このようなネットワークシステムにおい
て、マスタ端末として設定されている通信制御装置を介
して、スレーブ端末として設定されている2台の通信制
御装置がデータ通信を行おうとするとき、データ信号を
送信する通信制御装置よりマスタ変更要求信号が送信さ
れて、このデータ通信を行おうとする2台の通信制御装
置のうちの何れかがマスタ端末に設定変更するように要
求される。よって、マスタ端末の変更が行われること
で、スレーブ端末として設定されていた2台の通信制御
装置間で直接データ通信を行うことができる。In such a network system, when two communication control devices set as slave terminals attempt data communication via a communication control device set as a master terminal, a data signal is transmitted. A request for a master change request is transmitted from the communication control device that performs the data communication, and one of the two communication control devices that intends to perform the data communication is requested to change the setting to the master terminal. Therefore, by changing the master terminal, direct data communication can be performed between the two communication control devices set as the slave terminals.
【0023】このようなネットワークシステムにおい
て、前記データ信号の送受信を行うスレーブ端末である
2台の通信制御装置が、マスタ端末として設定されてい
る通信制御装置を介して前記データ信号の送受信を行う
ときにかかる第1データ転送時間が算出されるととも
に、マスタ端末の変更が開始してから、前記データ信号
の送受信を行うスレーブ端末であった2台の通信制御装
置がそれぞれマスタ端末とスレーブ端末に設定された後
に、前記2台の通信制御装置が直接前記データ信号の送
受信を行うまでにかかる第2データ転送時間が算出さ
れ、前記第2データ転送時間が前記第1データ転送時間
より短くなるとき、前記マスタ変更要求信号が送信され
るようにすることで、常にデータ転送効率の良いネット
ワークを構成することができる。In such a network system, when two communication control devices, which are slave terminals for transmitting and receiving the data signal, transmit and receive the data signal via a communication control device set as a master terminal. The first data transfer time is calculated, and after the change of the master terminal is started, the two communication control devices, which are the slave terminals that transmit and receive the data signal, are set to the master terminal and the slave terminal, respectively. After that, a second data transfer time required for the two communication control devices to directly transmit and receive the data signal is calculated, and when the second data transfer time is shorter than the first data transfer time, By transmitting the master change request signal, it is possible to always configure a network with high data transfer efficiency. Kill.
【0024】又、マスタ端末として設定されている通信
制御装置が、前記マスタ変更要求信号を受信したとき、
自機器のマスタ端末の設定を解除するとともに、次にマ
スタ端末に設定される通信制御装置に対して、マスタ端
末として設定されることを認識させるためのマスタ変更
通知信号を送信して、マスタ端末の変更設定を行う。When the communication control device set as the master terminal receives the master change request signal,
Releases the setting of the master terminal of the own device, and transmits a master change notification signal for recognizing that the communication terminal is set as the master terminal to the communication control device set as the next master terminal, and Make the change settings for.
【0025】又、ネットワークを最初に構築する際、マ
スタ端末となるように設定された通信制御装置より、電
源投入されて待機状態にある他の通信制御装置を探索す
るための探索信号が送信され、前記探索信号を受信した
他の通信制御装置がスレーブ端末として設定される。When a network is first constructed, a communication control device set to be a master terminal transmits a search signal for searching for another communication control device which is powered on and is in a standby state. The other communication control device that has received the search signal is set as a slave terminal.
【0026】又、マスタ端末となる通信制御装置を変更
して、前記ネットワークを再構築する際、まず、前記ネ
ットワークを構築する全ての通信制御装置を待機状態と
した後、前記マスタ変更通知信号を受信して新たにマス
タ端末となるように設定された通信制御装置より、待機
状態にある他の通信制御装置を探索するための探索信号
が送信され、前記探索信号を受信した他の通信制御装置
がスレーブ端末として設定される。When reconfiguring the network by changing the communication control device serving as the master terminal, first, all communication control devices forming the network are set to a standby state, and then the master change notification signal is transmitted. A search signal for searching for another communication control device in a standby state is transmitted from the communication control device that has been received and newly set to be the master terminal, and another communication control device that has received the search signal Is set as a slave terminal.
【0027】[0027]
【発明の実施の形態】本発明の実施の形態について、図
面を参照して説明する。図1は、本実施の形態における
通信制御装置の内部構成を示すブロック図である。又、
図2は、図1の通信制御装置の機能構成を示すブロック
図である。Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the internal configuration of the communication control device according to the present embodiment. or,
FIG. 2 is a block diagram showing a functional configuration of the communication control device of FIG.
【0028】<通信制御装置の構成>図1の通信制御装
置は、各部の制御及び動作管理を行うCPU(Central
Processing Unit)101と、各部の動作させるための
プログラムなどの各種ソフトウェアやデータが格納され
るROM(Read Only Memory)102と、各部での処理
に必要なデータが一時格納されるRAM(Random Acces
s Memory)103とを有する。よって、CPU101が
ROM102内に格納されたソフトウェアやデータを読
み出して動作するとともに、RAM103へのデータの
読み出し及び書き込みを行うことで、CPU101が通
信制御装置内の各部の制御及び動作管理を行う。<Configuration of Communication Control Device> The communication control device shown in FIG. 1 has a CPU (Central
(Processing Unit) 101, a ROM (Read Only Memory) 102 in which various software and data such as a program for operating each unit are stored, and a RAM (Random Acces) in which data necessary for processing in each unit is temporarily stored.
s Memory) 103. Therefore, the CPU 101 reads and writes software and data stored in the ROM 102 and operates, and reads and writes data in the RAM 103, so that the CPU 101 controls and manages operations of each unit in the communication control device.
【0029】又、図1の通信制御装置は、外部から各種
データの入力が行われる入力部104と、外部にデータ
を出力する出力部105と、入力部104及び出力部1
05とCPU101との間でデータのやり取りを可能と
するためのI/O(Input/Output)デバイス106とを
有する。よって、入力部104がユーザーによって操作
されることでデータが入力されると、このデータがI/
Oデバイス106でCPU101で処理可能なデータに
変換されてCPU106に送出される。又、CPU10
6よりI/Oデバイス106にデータが送出されると、
I/Oデータ106において出力部105で処理可能な
データに変換されて出力部105に出力される。The communication control device shown in FIG. 1 includes an input unit 104 for inputting various data from the outside, an output unit 105 for outputting data to the outside, an input unit 104 and an output unit 1
And an I / O (Input / Output) device 106 for enabling data exchange between the CPU 05 and the CPU 101. Therefore, when data is input by operating the input unit 104 by the user, the data is
The data is converted into data that can be processed by the CPU 101 by the O device 106 and transmitted to the CPU 106. Also, the CPU 10
6 sends data to the I / O device 106.
The I / O data 106 is converted into data that can be processed by the output unit 105 and output to the output unit 105.
【0030】更に、図1の通信制御装置は、各種データ
を保存するためのハードディスクドライブなどの外部記
憶装置107と、データの符号化及び復号化や変復調を
行う通信デバイス108と、他の通信制御装置と信号の
送受信を行うためのアンテナ109とを有する。よっ
て、ユーザーが保存を希望するデータが、外部記憶装置
107に格納されることで保存される。又、他の通信制
御装置に送信するデータを通信デバイス108で符号化
した後に変調することで送信信号を生成し、この送信信
号をアンテナ109より他の通信制御装置に送信する。
又、他の通信制御装置より送信された信号がアンテナ1
09で受信され、この受信信号が通信デバイス108で
復調された後に復号化されることで、CPU101で処
理可能なデータとされる。Further, the communication control device shown in FIG. 1 includes an external storage device 107 such as a hard disk drive for storing various data, a communication device 108 for encoding, decoding, and modulating / demodulating data, and another communication control device. An antenna 109 for transmitting and receiving signals to and from the device is provided. Therefore, the data that the user wants to save is stored in the external storage device 107 by being stored. In addition, data to be transmitted to another communication control device is encoded by the communication device 108 and then modulated to generate a transmission signal, and the transmission signal is transmitted from the antenna 109 to another communication control device.
Also, the signal transmitted from another communication control device is
09, and the received signal is demodulated by the communication device 108 and then decoded, so that the data is processed by the CPU 101.
【0031】このような構成の通信制御装置は、アドホ
ックネットワークシステムで使用されるために、図2の
ような機能構成をしている。即ち、通信制御装置は、各
機能の動作制御を行うための制御部201と、この制御
部201によって制御されるデータ送受信部202、識
別情報制御部203、マスタ制御部206、及びアプリ
ケーション制御部208と、識別情報制御部203によ
って動作管理される端末識別情報格納部204及びマス
タ識別情報格納部205及びスレーブ情報格納部211
と、マスタ制御部206によって動作管理されるスレー
ブ情報格納部207と、アプリケーション制御部208
によって動作管理されるデータ格納部209及びマスタ
変更判定部210とを有する。The communication control device having such a configuration has a functional configuration as shown in FIG. 2 for use in an ad hoc network system. That is, the communication control device includes a control unit 201 for controlling operation of each function, a data transmission / reception unit 202 controlled by the control unit 201, an identification information control unit 203, a master control unit 206, and an application control unit 208. And a terminal identification information storage unit 204, a master identification information storage unit 205, and a slave information storage unit 211 that are operationally managed by the identification information control unit 203.
A slave information storage unit 207 whose operation is managed by the master control unit 206; and an application control unit 208
A data storage unit 209 and a master change determination unit 210 whose operation is controlled by the control unit.
【0032】このように各機能が構成されるとき、端末
識別情報格納部204がROM102内に、マスタ識別
情報格納部205及びスレーブ情報格納部207,21
1がRAM103内に、データ格納部209が外部記憶
装置107内に構成される。その他の各機能部について
は、CPU101によって実行制御されるプログラムを
構成する機能として提供される。When each function is configured as described above, the terminal identification information storage unit 204 stores the master identification information storage unit 205 and the slave information storage units 207 and 21 in the ROM 102.
1 is configured in the RAM 103, and the data storage unit 209 is configured in the external storage device 107. Other functional units are provided as functions constituting a program that is executed and controlled by the CPU 101.
【0033】そして、データ送受信部202によって、
通信デバイス108の動作管理が行われ、他の通信制御
装置との通信動作が制御される。又、識別情報制御部2
03によって、ROM102及びRAM103の動作管
理が行われる。そして、各通信制御装置について個々に
設けられた端末識別情報の端末識別情報格納部204か
らの読み出しが制御される。又、スレーブ端末として動
作する際、この識別情報制御部203によって、マスタ
端末となる他の通信制御装置の端末識別情報のマスタ識
別情報格納部205への書き込み及び読み出しと、スレ
ーブ端末となる他の通信制御装置の端末識別情報のスレ
ーブ情報格納部211への書き込み及び読み出しとが制
御される。Then, the data transmitting / receiving unit 202
The operation management of the communication device 108 is performed, and the communication operation with another communication control device is controlled. Also, the identification information control unit 2
03 manages the operation of the ROM 102 and the RAM 103. Then, reading of the terminal identification information provided individually for each communication control device from the terminal identification information storage unit 204 is controlled. Also, when operating as a slave terminal, the identification information control unit 203 writes and reads terminal identification information of another communication control device serving as a master terminal to / from the master identification information storage unit 205, and reads out another terminal serving as a slave terminal. Writing and reading of the terminal identification information of the communication control device to and from the slave information storage unit 211 are controlled.
【0034】マスタ制御部206によって、RAM10
3の動作管理が行われ、マスタ端末として動作する際、
スレーブ端末となる他の通信制御装置の端末識別情報の
スレーブ情報格納部207への書き込み及び読み出しが
制御される。又、アプリケーション制御部208によっ
て、外部記憶装置107が制御されて、データ格納部2
09内に格納されたアプリケーションが読み出され、こ
のアプリケーションによる処理が行われるとともに、こ
のアプリケーションによる処理が行われて得たデータの
データ格納部209への書き込み及び読み出しが行われ
る。又、マスタ変更判定部210によるマスタ端末の変
更に関する判定動作が制御される。The master controller 206 controls the RAM 10
When the operation management of 3 is performed and it operates as a master terminal,
Writing and reading of the terminal identification information of the other communication control device serving as the slave terminal to / from the slave information storage unit 207 are controlled. Further, the external storage device 107 is controlled by the application control unit 208 and the data storage unit 2 is controlled.
The application stored in the application 09 is read out, the processing by this application is performed, and the data obtained by the processing by this application is written and read into the data storage unit 209. Further, the determination operation related to the change of the master terminal by the master change determination unit 210 is controlled.
【0035】尚、データ格納部209には、データ処理
を行うためのアプリケーションのプログラムとなるソフ
トウェア及びアプリケーションによる処理が行われて得
たデータが格納されている。以下、このアプリケーショ
ンのソフトウェアを「アプリケーションプログラム」と
呼ぶとともに、アプリケーションによって処理されて得
たデータを「アプリケーションデータ」と呼ぶ。The data storage unit 209 stores software serving as an application program for performing data processing and data obtained by performing processing by the application. Hereinafter, the software of this application is referred to as “application program”, and data obtained by processing by the application is referred to as “application data”.
【0036】このように機能部分が構成される通信制御
装置の動作について、以下に説明する。尚、又、図3〜
図5は、このアドホックネットワークにおける各通信制
御装置の動作を示すフローチャートである。The operation of the communication control device having such a functional part will be described below. In addition, FIG.
FIG. 5 is a flowchart showing the operation of each communication control device in this ad hoc network.
【0037】<待機状態における動作>まず、他の通信
制御装置とのアプリケーションデータの送受信がない待
機状態から、他の通信制御装置とネットワークを構築し
てアプリケーションデータの送受信を行うためのデータ
通信状態へ、通信制御装置が状態遷移するときの動作に
ついて、図3のフローチャートを参照して説明する。<Operation in Standby State> First, from a standby state in which no application data is transmitted / received to / from another communication control device, a data communication state for constructing a network with another communication control device and transmitting / receiving application data. Next, the operation when the communication control device makes a state transition will be described with reference to the flowchart in FIG.
【0038】通信制御装置は、電源投入後、他の通信制
御装置とネットワークを構築するために待機状態となる
(S301)。その後、アプリケーション制御部208
よりマスタ端末として設定されるように要求されている
か否かが制御部201で確認される(S302)。この
とき、ユーザーによって入力部104が操作されること
でマスタ設定が要求されると(Yes)、制御部201
で自機器がマスタ端末であると認識し、他の通信制御装
置を探索する探索状態に状態遷移する(S303)。After the power is turned on, the communication control device enters a standby state to establish a network with another communication control device (S301). After that, the application control unit 208
The control unit 201 checks whether or not a request has been made to be set as a master terminal (S302). At this time, when the user operates the input unit 104 to request master setting (Yes), the control unit 201
Recognizes that the own device is the master terminal, and makes a state transition to a search state for searching for another communication control device (S303).
【0039】このように探索状態に状態遷移すると、識
別情報制御部203によって端末識別情報格納部204
に格納された端末識別情報が読み出される。そして、デ
ータ送受信部202によって通信デバイス108が制御
され、端末識別情報とマスタ端末であることを示すマス
タ情報とによって構成される探索信号が生成された後、
アンテナ109より送信される(S304)。When the state transitions to the search state in this way, the identification information control unit 203 causes the terminal identification information storage unit 204
Is read out. After the communication device 108 is controlled by the data transmitting / receiving unit 202 and a search signal including terminal identification information and master information indicating that the terminal is a master terminal is generated,
The signal is transmitted from the antenna 109 (S304).
【0040】その後、この探索信号を受信してスレーブ
端末であることを認識した他の通信制御装置の端末識別
情報によって構成されるスレーブ識別信号を受信したか
否かが判断される(S305)。このとき、スレーブ識
別信号がアンテナ109で受信されて通信デバイス10
8に与えられると(Yes)、この通信デバイス108
で復調された後に復号化されて得た他の通信制御装置の
端末識別情報をスレーブ識別情報として、マスタ制御部
206がスレーブ情報格納部207に格納する(S30
6)。そして、スレーブ端末の探索が一定時間行われた
か否かが確認される(S307)。又、スレーブ識別信
号が受信されないときは(No)、直接、S307に移
行する。Thereafter, it is determined whether a slave identification signal composed of terminal identification information of another communication control device that has received the search signal and recognized as a slave terminal has been received (S305). At this time, the slave identification signal is received by the antenna 109 and the communication device 10
8 (Yes), this communication device 108
The master control unit 206 stores, in the slave information storage unit 207, the terminal identification information of another communication control device obtained by demodulation after decoding in step S30 as slave identification information (S30).
6). Then, it is confirmed whether or not the search for the slave terminal has been performed for a predetermined time (S307). If the slave identification signal has not been received (No), the process directly proceeds to S307.
【0041】S307において、通信制御装置が探索状
態に遷移してから一定時間が経過したことを制御部20
1が検知したとき(Yes)、通信制御装置は、スレー
ブ端末として認識した他の通信制御装置とのデータ通信
が可能なデータ通信状態に遷移する(S311)。又、
通信制御装置が探索状態に遷移してから一定時間が経過
していないとき(No)、再び、上述したような、スレ
ーブ端末となる他の通信制御装置の探索を行う(S30
4〜S307)。In step S307, the control unit 20 informs the control unit 20 that a predetermined time has elapsed since the communication control device transitioned to the search state.
When 1 is detected (Yes), the communication control device transitions to a data communication state in which data communication with another communication control device recognized as a slave terminal is possible (S311). or,
If the fixed time has not elapsed since the communication control device transitioned to the search state (No), another search for a communication control device serving as a slave terminal as described above is performed again (S30).
4-S307).
【0042】又、S302において、マスタ設定の要求
がない場合(No)、マスタ端末となる他の通信制御装
置からの探索信号を受信したか否かが判断される(S3
08)。このとき、探索信号が受信されないときは(N
o)、S302に移行して、再び、上述したS302以
降の動作が行われる。If there is no request for master setting in S302 (No), it is determined whether or not a search signal has been received from another communication control device serving as a master terminal (S3).
08). At this time, if the search signal is not received (N
o), the process proceeds to S302, and the above-described operations after S302 are performed again.
【0043】又、探索信号がアンテナ109で受信され
て通信デバイス108に与えられると(Yes)、この
通信デバイス108で復調された後に復号化されて得た
マスタ端末となる他の通信制御装置の端末識別情報をマ
スタ識別情報として、識別情報制御部203がマスタ識
別情報格納部205に格納する(S309)。このと
き、制御部201によって、自機器がスレーブ装置であ
ることが認識される。When the search signal is received by the antenna 109 and given to the communication device 108 (Yes), the search signal is demodulated by the communication device 108 and then decoded to obtain the master terminal. The identification information control unit 203 stores the terminal identification information as master identification information in the master identification information storage unit 205 (S309). At this time, the control unit 201 recognizes that the own device is a slave device.
【0044】その後、識別情報制御部203によって端
末識別情報格納部204に格納された端末識別情報が読
み出される。そして、データ送受信部202によって通
信デバイス108が制御され、端末識別情報とスレーブ
端末であることを示すスレーブ情報とによって構成され
るスレーブ識別信号が生成された後、アンテナ109よ
り送信される(S310)。そして、このスレーブ識別
信号を送信した後、マスタ端末として認識した他の通信
制御装置とのデータ通信が可能なデータ通信状態に遷移
する(S311)。Thereafter, the terminal identification information stored in the terminal identification information storage unit 204 is read by the identification information control unit 203. Then, the communication device 108 is controlled by the data transmission / reception unit 202 to generate a slave identification signal including terminal identification information and slave information indicating that the terminal is a slave terminal, and then the slave identification signal is transmitted from the antenna 109 (S310). . Then, after transmitting the slave identification signal, the state shifts to a data communication state in which data communication with another communication control device recognized as the master terminal is possible (S311).
【0045】よって、待機状態にある1台の通信制御装
置が探索信号を送信し、待機状態にある複数の通信制御
装置の内、この探索信号を受信してスレーブ識別信号を
返信したとき、探索信号を送信した通信制御装置がマス
タ端末となるとともに、スレーブ識別信号を送信した複
数の通信制御装置がスレーブ端末となって、相互に通信
をやり取りするネットワークを構成することができる。Accordingly, when one communication control device in the standby state transmits a search signal, and among the plurality of communication control devices in the standby state, the search signal is received and a slave identification signal is returned, The communication control device that has transmitted the signal becomes the master terminal, and the plurality of communication control devices that have transmitted the slave identification signal become the slave terminals, thereby forming a network for exchanging communication with each other.
【0046】<データ通信状態におけるマスタ端末の動
作>次に、データ通信状態へ状態遷移したとき、マスタ
端末として動作する通信制御装置の動作について、図4
のフローチャートを参照して説明する。<Operation of Master Terminal in Data Communication State> Next, when the state transitions to the data communication state, the operation of the communication control device operating as the master terminal will be described with reference to FIG.
This will be described with reference to the flowchart of FIG.
【0047】上述したように、入力部104が操作され
てマスタ端末に設定された通信制御装置がデータ通信状
態に遷移すると(S401)、まず、スレーブ情報格納
部207に格納されたスレーブ識別情報をマスタ制御部
206で読み出す。そして、複数のスレーブ識別情報を
有するスレーブ情報信号を通信デバイス108で生成し
てアンテナ109より送信する(S402)。その後、
スレーブ端末として動作する他の通信制御装置よりマス
タ端末の変更を要求するマスタ変更要求信号が送信され
たか否かが判断される(S403)。このとき、マスタ
変更要求信号が受信されないとき(No)、S409に
移行して、スレーブ端末となる他の通信制御装置からの
データ信号の受信が確認される。As described above, when the input unit 104 is operated and the communication control device set as the master terminal transitions to the data communication state (S401), first, the slave identification information stored in the slave information storage unit 207 is read. The data is read by the master control unit 206. Then, a slave information signal having a plurality of pieces of slave identification information is generated by the communication device 108 and transmitted from the antenna 109 (S402). afterwards,
It is determined whether a master change request signal requesting a change of the master terminal has been transmitted from another communication control device operating as a slave terminal (S403). At this time, if the master change request signal has not been received (No), the flow shifts to S409 to confirm reception of a data signal from another communication control device serving as a slave terminal.
【0048】又、マスタ変更要求信号がアンテナ109
で受信されて通信デバイス108に与えられると(Ye
s)、マスタ端末の変更の妥当性がマスタ制御部206
で検証される(S404)。このとき、マスタ変更要求
信号を送信した通信制御装置の端末識別情報をスレーブ
情報格納部207内に格納されたスレーブ識別情報と照
合することで、マスタ変更要求信号を送信した通信制御
装置を制御部201で認識する。又、マスタ変更要求信
号には、次にマスタ端末として設定される通信制御装置
を指定するための端末識別情報を有しており、この端末
識別情報をスレーブ情報格納部207内に格納されたス
レーブ識別情報と照合することで、次にマスタ端末とし
て設定される通信制御装置を制御部201で認識する。The master change request signal is transmitted to the antenna 109.
Is received and given to the communication device 108 (Ye
s) The validity of the change of the master terminal is determined by the master control unit 206.
Is verified (S404). At this time, by comparing the terminal identification information of the communication control device that has transmitted the master change request signal with the slave identification information stored in the slave information storage unit 207, the communication control device that has transmitted the master change request signal is controlled by the control unit. Recognize at 201. Also, the master change request signal has terminal identification information for designating the communication control device to be set as the next master terminal, and this terminal identification information is stored in the slave information storage unit 207 stored in the slave information storage unit 207. By collating with the identification information, the control unit 201 recognizes the communication control device set as the next master terminal.
【0049】そして、S404において、マスタ制御部
206で、マスタ端末の変更が必要ないと判断されたと
き(No)、S409に移行して、スレーブ端末となる
他の通信制御装置からのデータの受信が確認される。
又、マスタ制御部206で、マスタ端末の変更が妥当で
あると判断されたとき(Yes)、スレーブ端末となる
複数の通信制御装置に対して、次にマスタ端末に設定さ
れる通信制御装置以外の各通信制御装置のマスタ識別情
報格納部205に格納されているマスタ識別情報を削除
するためのマスタ削除通知信号を送信する(S40
5)。このとき、制御部201によって、通信デバイス
108がマスタ削除通知信号を生成するように制御さ
れ、生成されたマスタ削除通知信号がアンテナ109よ
り送信される。When the master control unit 206 determines in S404 that the master terminal does not need to be changed (No), the flow shifts to S409 to receive data from another communication control device serving as a slave terminal. Is confirmed.
When the master control unit 206 determines that the change of the master terminal is appropriate (Yes), the communication control device other than the communication control device to be set next as the master terminal is transmitted to the plurality of communication control devices serving as slave terminals. A master deletion notification signal for deleting the master identification information stored in the master identification information storage unit 205 of each communication control device is transmitted (S40).
5). At this time, the control unit 201 controls the communication device 108 to generate a master deletion notification signal, and the generated master deletion notification signal is transmitted from the antenna 109.
【0050】このように、マスタ削除通知信号が送信さ
れると、次に、マスタ制御部206によって、スレーブ
情報格納部207に格納されているスレーブ識別情報が
全て削除される(S406)。そして、最後に、次にマ
スタ端末に設定される通信制御装置に対して、マスタ端
末の設定要求が成される状態となるためのマスタ変更通
知信号を送信する(S407)。このとき、制御部20
1によって、通信デバイス108がマスタ変更通知信号
を生成するように制御され、生成されたマスタ変更通知
信号がアンテナ109より送信される。その後、通信制
御装置が待機状態に状態遷移する(S408)。As described above, when the master deletion notification signal is transmitted, the master control unit 206 deletes all the slave identification information stored in the slave information storage unit 207 (S406). Then, finally, a master change notification signal is transmitted to the communication control device set as the next master terminal so that the master terminal setting request is made (S407). At this time, the control unit 20
By 1, the communication device 108 is controlled to generate a master change notification signal, and the generated master change notification signal is transmitted from the antenna 109. Thereafter, the communication control device makes a state transition to the standby state (S408).
【0051】S409でスレーブ端末となる他の通信制
御装置からのデータ信号がアンテナ109で受信された
ことが確認されたとき(Yes)、データとともに送信
される端末識別情報より自機器置宛に送信するためのデ
ータ信号であるか否かが判断される(S410)。又、
S409でスレーブ端末となる他の通信制御装置からの
データ信号の受信が確認されなかったとき(No)、デ
ータ通信処理が終了したか否かが判断される(S41
3)。In S409, when it is confirmed that a data signal from another communication control device serving as a slave terminal is received by the antenna 109 (Yes), the data is transmitted to the own device from the terminal identification information transmitted together with the data. It is determined whether the received data signal is a data signal for performing the operation (S410). or,
When the reception of the data signal from another communication control device serving as the slave terminal is not confirmed in S409 (No), it is determined whether the data communication process is completed (S41).
3).
【0052】S410において、自機器宛に送信された
データ信号である場合(Yes)、通信デバイス108
で復調した後に復号化してCPU101で処理可能なデ
ータとした後、アプリケーション制御部208によって
データ格納部209に格納される(S411)。又、ス
レーブ端末となる他の通信制御装置宛に送信するための
データ信号である場合(No)、そのスレーブ端末に対
して、データ信号を通信デバイス108及びアンテナ1
09を介して送信する(S412)。In S410, if the data signal is transmitted to the own device (Yes), the communication device 108
After being demodulated and decoded into data that can be processed by the CPU 101, the data is stored in the data storage unit 209 by the application control unit 208 (S411). If the data signal is to be transmitted to another communication control device serving as a slave terminal (No), the data signal is transmitted to the communication device 108 and the antenna 1 to the slave terminal.
09 (S412).
【0053】S411及びS412の処理動作が行われ
た後、データ通信処理が終了したか否かが判断される
(S413)。そして、データ通信が終了されるときは
(Yes)、RAM103内の各種情報をリセットした
後(S414)、待機状態に状態遷移し(S408)、
又、データ通信が継続されるときは(No)、S403
に移行して、再び、S403以降の動作を行う。After the processing operations of S411 and S412 are performed, it is determined whether or not the data communication processing has been completed (S413). Then, when the data communication is terminated (Yes), after resetting various information in the RAM 103 (S414), the state transitions to the standby state (S408),
When data communication is continued (No), S403
Then, the operation after S403 is performed again.
【0054】よって、データ通信状態へ状態遷移したと
きにマスタ端末として動作する通信制御装置は、ネット
ワークを構築する複数のスレーブ端末となる通信制御装
置の内の1台からマスタ変更要求信号を受信したとき、
まず、マスタ端末の変更が必要であるか否かを判断す
る。そして、マスタ端末の変更が必要と判断したとき、
まず、変更後においてもスレーブ端末のままである通信
制御装置に対して、マスタ削除通知信号を送信する。次
に、自機器内に格納されたスレーブ識別情報を全て削除
した後、変更後にマスタ端末となる通信制御装置に対し
て、マスタ変更通知信号を送信し、待機状態に状態遷移
する。Therefore, the communication control device that operates as the master terminal when the state transitions to the data communication state receives the master change request signal from one of the communication control devices serving as a plurality of slave terminals forming the network. When
First, it is determined whether the master terminal needs to be changed. And when it is determined that the master terminal needs to be changed,
First, a master deletion notification signal is transmitted to the communication control device that remains as a slave terminal even after the change. Next, after deleting all the slave identification information stored in the own device, a master change notification signal is transmitted to the communication control device that becomes the master terminal after the change, and the state transitions to the standby state.
【0055】<データ通信状態におけるスレーブ端末の
動作>次に、データ通信状態へ状態遷移したとき、スレ
ーブ端末として動作する通信制御装置の動作について、
図5のフローチャートを参照して説明する。<Operation of Slave Terminal in Data Communication State> Next, when the state transitions to the data communication state, the operation of the communication control device operating as a slave terminal will be described.
This will be described with reference to the flowchart of FIG.
【0056】上述したように、入力部104が操作され
てマスタ端末に設定された通信制御装置がデータ通信状
態に遷移すると(S501)、まず、マスタ端末装置よ
りスレーブ情報信号が通信デバイス108及びアンテナ
109で受信され、自機器以外のスレーブ端末となる端
末識別情報であるスレーブ識別情報が、識別情報制御部
203によってスレーブ情報格納部211に格納される
(S502)。As described above, when the input control unit 104 is operated to change the communication control device set as the master terminal to the data communication state (S501), first, the slave information signal is transmitted from the master terminal device to the communication device 108 and the antenna. The slave identification information, which is received at 109 and is terminal identification information to be a slave terminal other than the own device, is stored in the slave information storage unit 211 by the identification information control unit 203 (S502).
【0057】その後、入力部104が操作されて、デー
タ格納部209に格納されたアプリケーションデータや
アプリケーションプログラムなどの送信要求が成された
か否かが制御部201で判断される(S503)。この
とき、入力部104によって送信要求がなされていない
とき(No)、S507に移行して、マスタ端末となる
他の通信制御装置から送信されるマスタ削除通知信号が
確認される。Thereafter, the control unit 201 determines whether or not the input unit 104 has been operated to request transmission of the application data or application program stored in the data storage unit 209 (S503). At this time, if a transmission request has not been made by the input unit 104 (No), the process proceeds to S507, where a master deletion notification signal transmitted from another communication control device serving as a master terminal is confirmed.
【0058】又、入力部104によって送信要求がなさ
れているとき(Yes)、アプリケーション制御部20
8で送信するデータの概要を判断し、マスタ変更判定部
210でマスタ端末の変更の必要があるか否かを判断す
る(S504)。このとき、マスタ端末の変更が必要と
判断されたとき(Yes)、アプリケーション制御部2
08より制御信号が通信デバイス108に与えられて、
マスタ変更要求信号が通信デバイス108で生成された
後、アンテナ109よりマスタ端末となる通信制御装置
に送信される(S505)。その後、S507に移行
し、マスタ端末となる他の通信制御装置から送信される
マスタ削除通知信号が確認される。尚、S505でマス
タ変更要求信号が送信されるとき、このマスタ変更要求
信号には、マスタ端末に変更される通信制御装置の端末
識別情報が含まれる。When a transmission request is made by the input unit 104 (Yes), the application control unit 20
In step S504, the outline of the data to be transmitted is determined, and the master change determination unit 210 determines whether the master terminal needs to be changed (S504). At this time, when it is determined that the change of the master terminal is necessary (Yes), the application control unit 2
08, a control signal is given to the communication device 108,
After a master change request signal is generated by the communication device 108, the master change request signal is transmitted from the antenna 109 to the communication control device serving as a master terminal (S505). After that, the flow shifts to S507, where a master deletion notification signal transmitted from another communication control device serving as a master terminal is confirmed. When the master change request signal is transmitted in S505, the master change request signal includes the terminal identification information of the communication control device to be changed to the master terminal.
【0059】又、マスタ端末の変更が必要ないと判断さ
れたとき(No)、アプリケーション制御部208より
データ格納部209内のアプリケーションデータ又はア
プリケーションプログラムが通信デバイス108に与え
られた後、アンテナ109よりマスタ端末となる通信制
御装置に送信される(S506)。その後、S507に
移行し、マスタ端末となる他の通信制御装置から送信さ
れるマスタ削除通知信号が確認される。尚、S506で
データ信号が送信されるとき、このデータ信号には、送
信相手となる通信制御装置の端末識別情報が含まれる。When it is determined that it is not necessary to change the master terminal (No), the application data or application program in the data storage unit 209 is supplied from the application control unit 208 to the communication device 108, and then transmitted from the antenna 109. It is transmitted to the communication control device serving as the master terminal (S506). After that, the flow shifts to S507, where a master deletion notification signal transmitted from another communication control device serving as a master terminal is confirmed. When the data signal is transmitted in S506, the data signal includes the terminal identification information of the communication control device that is the transmission partner.
【0060】S507に移行し、マスタ削除通知信号が
アンテナ109で受信されて通信デバイス108に与え
られると(Yes)、識別情報制御部203によって、
マスタ識別情報格納部205に格納されたマスタ識別情
報となる端末識別情報を削除する(S508)。その
後、スレーブ情報格納部211に格納されたスレーブ識
別情報となる端末識別情報を削除した後(S509)、
待機状態に状態遷移する(S510)。又、マスタ削除
通知信号が受信されていないとき(No)、マスタ端末
となる他の通信制御装置から送信されるマスタ変更通知
信号が確認される(S511)。In S507, when the master deletion notification signal is received by the antenna 109 and given to the communication device 108 (Yes), the identification information control unit 203
The terminal identification information serving as the master identification information stored in the master identification information storage unit 205 is deleted (S508). Then, after deleting the terminal identification information serving as the slave identification information stored in the slave information storage unit 211 (S509),
The state transitions to the standby state (S510). When the master deletion notification signal has not been received (No), a master change notification signal transmitted from another communication control device serving as a master terminal is confirmed (S511).
【0061】そして、マスタ変更通知信号がアンテナ1
09で受信されて通信デバイス108に与えられると
(Yes)、識別情報制御部203によって、マスタ識
別情報格納部205に格納されたマスタ識別情報となる
端末識別情報を削除するとともに(S512)、スレー
ブ情報格納部211に格納されたスレーブ識別情報とな
る端末識別情報を削除する(S513)。その後、マス
タ端末に設定されるために、入力部104が操作されて
マスタ端末が設定されるように入力されたときと同一の
状態になるように制御部201が動作し(S514)、
待機状態に状態遷移する(S510)。The master change notification signal is transmitted to the antenna 1
09 and is given to the communication device 108 (Yes), the identification information control unit 203 deletes the terminal identification information serving as the master identification information stored in the master identification information storage unit 205 (S512). The terminal identification information serving as the slave identification information stored in the information storage unit 211 is deleted (S513). Thereafter, the control unit 201 operates so that the input unit 104 is operated to be in the same state as when the input is performed so that the master terminal is set (S514).
The state transitions to the standby state (S510).
【0062】又、マスタ変更通知信号が受信されていな
いとき(No)、データ通信処理が終了したか否かが判
断される(S515)。このとき、データ通信が終了さ
れると(Yes)、RAM103内の各種情報をリセッ
トした後(S516)、待機状態に状態遷移し(S51
0)、又、データ通信が継続されるときは(No)、S
503に移行して、再び、S503以降の動作を行う。When the master change notification signal has not been received (No), it is determined whether or not the data communication processing has been completed (S515). At this time, when the data communication is terminated (Yes), various kinds of information in the RAM 103 are reset (S516), and the state transits to the standby state (S51).
0) When data communication is continued (No), S
The flow shifts to 503, and the operation after S503 is performed again.
【0063】よって、データ通信状態へ状態遷移したと
きにスレーブ端末として動作するとともにマスタ端末変
更後にマスタ端末として設定される通信制御装置は、ネ
ットワークを構築するマスタ端末となる通信制御装置か
らマスタ変更通知信号を受信する。そして、自機器内に
格納されたマスタ識別情報及びスレーブ識別情報を全て
削除した後、マスタ端末に設定されるように入力部10
4が操作されたときと同一の状態にする。よって、待機
状態に状態遷移したとき、図3のS302でマスタ設定
要求が成されたと判断され、探索状態に状態遷移するこ
とができる。Therefore, the communication control device which operates as a slave terminal when the state transition to the data communication state and which is set as the master terminal after changing the master terminal is notified of the master change by the communication control device which is the master terminal forming the network. Receive the signal. After deleting all the master identification information and the slave identification information stored in the own device, the input unit 10 is set so as to be set in the master terminal.
4. Make the same state as when 4 was operated. Therefore, when the state transitions to the standby state, it is determined that the master setting request has been made in S302 of FIG. 3, and the state transition can be made to the search state.
【0064】又、データ通信状態へ状態遷移したときに
スレーブ端末として動作するとともにマスタ端末変更後
もスレーブ端末として動作する通信制御装置は、ネット
ワークを構築するマスタ端末となる通信制御装置からマ
スタ削除通知信号を受信する。そして、自機器内に格納
されたマスタ識別情報及びスレーブ識別情報を全て削除
した後、待機状態に状態遷移する。Further, the communication control device which operates as a slave terminal when the state transits to the data communication state and which operates as a slave terminal even after the master terminal is changed, receives a master deletion notification from the communication control device which is the master terminal for constructing the network. Receive the signal. Then, after all the master identification information and the slave identification information stored in the own device are deleted, the state transitions to the standby state.
【0065】尚、上述した図4のフローチャートにおい
て、マスタ端末のデータ信号の受信動作のみを、又、上
述した図5のフローチャートにおいて、スレーブ端末の
データ信号の送信動作のみを、それぞれ示している。し
かしながら、これは、スレーブ端末がマスタ変更要求信
号を送信するとともにマスタ端末がマスタ変更要求信号
を受信することで成るマスタ端末の変更時の動作フロー
を説明するためである。よって、マスタ端末は、図4の
フローチャートに示すデータ信号の受信動作とともにデ
ータ信号の送信動作を行い、又、スレーブ端末は、図5
のフローチャートに示すデータ信号の送信動作とともに
データ信号の受信動作を行う。In the flowchart of FIG. 4 described above, only the data signal receiving operation of the master terminal is shown, and in the flowchart of FIG. 5, only the data signal transmitting operation of the slave terminal is shown. However, this is for explaining the operation flow at the time of changing the master terminal in which the slave terminal transmits the master change request signal and the master terminal receives the master change request signal. Therefore, the master terminal performs a data signal transmitting operation together with the data signal receiving operation shown in the flowchart of FIG.
The data signal receiving operation is performed together with the data signal transmitting operation shown in the flowchart of FIG.
【0066】<マスタ端末の変更処理>以下に、マスタ
端末の変更の必要性を判断する方法について、図6及び
図7を参照して説明する。<Master Terminal Change Processing> A method for determining the necessity of changing the master terminal will be described below with reference to FIGS. 6 and 7.
【0067】データ通信状態に遷移した複数の通信制御
装置によってネットワークが構築されているときに、ス
レーブ端末となる通信制御装置より、同じくスレーブ端
末となる他の通信制御装置にアプリケーションデータが
送信されようとすると、マスタ変更判定部210におい
て、マスタ端末の変更の必要性が判断される。このよう
にスレーブ端末となる通信制御装置でデータ通信が行わ
れるとき、マスタ端末となる通信制御装置を介してデー
タ通信が行われる。即ち、送信元となるスレーブ端末よ
り、まず、マスタ端末にデータ信号が送信される。その
後、マスタ端末より、送信先となるスレーブ端末にデー
タ信号が送信される。When a network is constructed by a plurality of communication control devices that have transitioned to the data communication state, application data will be transmitted from a communication control device serving as a slave terminal to another communication control device also serving as a slave terminal. Then, the master change determination unit 210 determines the necessity of changing the master terminal. As described above, when data communication is performed by the communication control device serving as the slave terminal, data communication is performed via the communication control device serving as the master terminal. That is, first, a data signal is transmitted from the slave terminal serving as a transmission source to the master terminal. Thereafter, the data signal is transmitted from the master terminal to the slave terminal that is the transmission destination.
【0068】このとき、マスタ変更判定部210では、
まず、送信元となるスレーブ端末である自機器からマス
タ端末へアプリケーションデータを送信する時間となる
データ転送時間Taと、マスタ端末から送信先となるス
レーブ端末へアプリケーションデータを送信する時間と
なるデータ転送時間Tbとを、アプリケーションデータ
のデータ量に基づいて算出する。そして、マスタ端末の
変更が行われないときに、マスタ端末を介して送信先と
なるスレーブ端末へアプリケーションデータを送信する
ためにかかる図6に示すデータ転送時間Ta+Tbを算
出する。At this time, the master change determination section 210
First, a data transfer time Ta, which is a time for transmitting application data from its own device, which is a slave terminal serving as a transmission source, to a master terminal, and a data transfer time, which is a time for transmitting application data from the master terminal to a slave terminal which is a destination. The time Tb is calculated based on the data amount of the application data. Then, when the master terminal is not changed, the data transfer time Ta + Tb shown in FIG. 6 for transmitting the application data to the slave terminal as the transmission destination via the master terminal is calculated.
【0069】次に、自機器がマスタ端末に変更された後
に、送信先となるスレーブ端末へアプリケーションデー
タを送信する時間となるデータ転送時間Tdを算出す
る。そして、マスタ端末の変更にかかるマスタ変更時間
Tcを加算することで、マスタ端末変更後に送信先とな
るスレーブ端末へデータを送信するためにかかる図6に
示すデータ転送時間Tc+Tdを算出する。Next, after the own device is changed to the master terminal, a data transfer time Td which is a time for transmitting the application data to the slave terminal as the transmission destination is calculated. Then, by adding the master change time Tc required for changing the master terminal, the data transfer time Tc + Td shown in FIG. 6 for transmitting data to the slave terminal that is the destination after the master terminal change is calculated.
【0070】尚、マスタ変更時間Tcは、データ通信状
態であるネットワーク内の全通信制御装置を一旦、待機
状態にした後、待機状態への遷移前にスレーブ端末とし
て動作していた通信制御装置のうちの1台をマスタ端末
に再度決定してネットワークを再構築するまでの時間に
相当し、ネットワークが構築される際に、予め設定され
る。Note that the master change time Tc is determined by temporarily setting all the communication control devices in the network in the data communication state to the standby state and then setting the communication control device operating as the slave terminal before the transition to the standby state. This corresponds to the time from when one of them is determined as the master terminal again and the network is reconstructed, and is set in advance when the network is constructed.
【0071】このようにして算出された、マスタ端末の
変更がないときのデータ転送時間Ta+Tbと、マスタ
端末の変更があるときのデータ転送時間Tc+Tdとを
比較し、データ転送時間Tc+Tdが短くなるとき、マ
スタ端末の変更が行われるように、マスタ変更要求信号
が通信デバイス108で生成されて送信される。The data transfer time Ta + Tb when there is no change in the master terminal and the data transfer time Tc + Td when there is a change in the master terminal are compared, and the data transfer time Tc + Td becomes shorter. A master change request signal is generated and transmitted by the communication device 108 so that the master terminal is changed.
【0072】又、送信先のスレーブ端末にアプリケーシ
ョンデータを送信したとき、送信先のスレーブ端末のデ
ータ格納部209にアプリケーションプログラムが格納
されていないため、アプリケーションデータの処理をC
PU101で行えない場合がある。このとき、送信先の
スレーブ端末が、マスタ端末を介して送信元のスレーブ
端末に、アプリケーションプログラムの送信要求を行
う。When the application data is transmitted to the destination slave terminal, the application program is not stored in the data storage unit 209 of the destination slave terminal.
In some cases, this cannot be performed by the PU 101. At this time, the transmission destination slave terminal sends a transmission request of the application program to the transmission source slave terminal via the master terminal.
【0073】このとき、送信元のスレーブ端末は、アプ
リケーションプログラムをマスタ端末を介して送信先の
スレーブ端末に送信した後、再び、アプリケーションデ
ータをマスタ端末を介して送信先のスレーブ端末に送信
する。即ち、アプリケーションプログラムが送信元のス
レーブ端末からマスタ端末に送信された後、このアプリ
ケーションプログラムがマスタ端末から送信先のスレー
ブ端末に送信され、送信先のスレーブ端末のデータ格納
部209に格納される。At this time, the transmission source slave terminal transmits the application program to the transmission destination slave terminal via the master terminal, and then transmits the application data again to the transmission destination slave terminal via the master terminal. That is, after the application program is transmitted from the transmission source slave terminal to the master terminal, the application program is transmitted from the master terminal to the transmission destination slave terminal and stored in the data storage unit 209 of the transmission destination slave terminal.
【0074】そして、アプリケーションデータが送信元
のスレーブ端末からマスタ端末に送信された後、このア
プリケーションデータがマスタ端末から送信先のスレー
ブ端末に送信される。このようにして、送信先のスレー
ブ端末において、送信されたアプリケーションデータに
対して、先に送信されたアプリケーションプログラムを
用いてアプリケーション制御部208がデータ処理を行
う。After the application data is transmitted from the transmission source slave terminal to the master terminal, the application data is transmitted from the master terminal to the transmission destination slave terminal. In this way, in the slave terminal of the transmission destination, the application control unit 208 performs data processing on the transmitted application data using the previously transmitted application program.
【0075】このとき、マスタ変更判定部210では、
まず、送信元となるスレーブ端末である自機器からマス
タ端末へアプリケーションプログラムを送信する時間と
なるデータ転送時間taと、マスタ端末から送信先とな
るスレーブ端末へアプリケーションプログラムを送信す
る時間となるデータ転送時間tbと、送信元となるスレ
ーブ端末である自機器からマスタ端末へアプリケーショ
ンデータを送信する時間となるデータ転送時間Taと、
マスタ端末から送信先となるスレーブ端末へアプリケー
ションデータを送信する時間となるデータ転送時間Tb
とを、アプリケーションプログラム及びアプリケーショ
ンデータのデータ量に基づいて算出する。At this time, the master change judgment section 210
First, a data transfer time ta, which is a time for transmitting an application program from its own device, which is a slave terminal serving as a transmission source, to a master terminal, and a data transfer time, which is a time for transmitting an application program from a master terminal to a slave terminal which is a transmission destination A time tb, a data transfer time Ta which is a time for transmitting the application data from the own device which is a transmission source slave terminal to the master terminal,
Data transfer time Tb that is the time for transmitting application data from the master terminal to the slave terminal that is the destination
Are calculated based on the data amount of the application program and the application data.
【0076】そして、マスタ端末の変更が行われないと
きに、マスタ端末を介して送信先となるスレーブ端末へ
アプリケーションプログラムとアプリケーションデータ
を送信するためにかかる図7に示すデータ転送時間ta
+tb+Ta+Tbを算出する。When the master terminal is not changed, the data transfer time ta shown in FIG. 7 for transmitting the application program and the application data to the slave terminal as the transmission destination via the master terminal.
+ Tb + Ta + Tb is calculated.
【0077】次に、自機器がマスタ端末に変更された後
に、送信先となるスレーブ端末へアプリケーションプロ
グラムを送信する時間となるデータ転送時間tcと、送
信先となるスレーブ端末へアプリケーションデータを送
信する時間となるデータ転送時間Tdとを算出する。そ
して、マスタ端末の変更にかかるマスタ変更時間Tcを
加算することで、マスタ端末変更後に送信先となるスレ
ーブ端末へデータを送信するためにかかる図7に示すデ
ータ転送時間tc+Tc+Tdを算出する。Next, after the own device is changed to the master terminal, the data transfer time tc, which is the time for transmitting the application program to the slave terminal, which is the transmission destination, and the application data is transmitted to the slave terminal, which is the transmission destination. A data transfer time Td which is a time is calculated. Then, by adding the master change time Tc required for changing the master terminal, the data transfer time tc + Tc + Td shown in FIG. 7 for transmitting data to the slave terminal serving as the destination after the master terminal change is calculated.
【0078】尚、図6の場合と同様、マスタ変更時間T
cは、データ通信状態であるネットワーク内の全通信制
御装置を一旦、待機状態にした後、待機状態への遷移前
にスレーブ端末として動作していた通信制御装置のうち
の1台をマスタ端末に再度決定してネットワークを再構
築するまでの時間に相当し、ネットワークが構築される
際に、予め設定される。As in the case of FIG. 6, the master change time T
c, after temporarily setting all communication control devices in the network in the data communication state to the standby state, one of the communication control devices operating as slave terminals before the transition to the standby state is set as the master terminal. This corresponds to the time until it is determined again and the network is reconstructed, and is set in advance when the network is constructed.
【0079】このようにして算出された、マスタ端末の
変更がないときのデータ転送時間ta+tb+Ta+T
bと、マスタ端末の変更があるときのデータ転送時間t
c+Tc+Tdとを比較し、データ転送時間tc+Tc
+Tdが短くなるとき、マスタ端末の変更が行われるよ
うに、マスタ変更要求信号が通信デバイス108で生成
されて送信される。The data transfer time ta + tb + Ta + T when there is no change in the master terminal calculated in this way.
b and data transfer time t when the master terminal is changed
c + Tc + Td, and the data transfer time tc + Tc
When + Td becomes shorter, a master change request signal is generated and transmitted by the communication device 108 so that the master terminal is changed.
【0080】そして、マスタ端末となる通信制御装置が
マスタ変更要求信号を受信したときに、マスタ制御部2
06でマスタ変更の妥当性が検証がされる。このとき、
マスタ変更要求信号を送信するスレーブ端末が行おうと
しているデータ通信以外で、マスタ端末が他のスレーブ
端末とのデータ通信を行う場合、マスタ変更の必要性が
ないと判断する。When the communication control device serving as the master terminal receives the master change request signal, the master control unit 2
At 06, the validity of the master change is verified. At this time,
If the master terminal performs data communication with another slave terminal other than the data communication that the slave terminal that transmits the master change request signal is trying to perform, it is determined that there is no need to change the master.
【0081】<アドホックネットワークに適用したとき
の動作>次に、上述した複数の通信制御装置によって構
築されるアドホックネットワークについて、以下に説明
する。尚、図8及び図9は、それぞれ、4台の通信制御
装置によって構築されるアドホックネットワークの構成
例である。<Operation When Applied to Ad Hoc Network> Next, an ad hoc network constructed by a plurality of communication control devices described above will be described below. FIGS. 8 and 9 are configuration examples of an ad hoc network constructed by four communication control devices, respectively.
【0082】今、電源投入されて待機状態にある通信制
御装置A,B,C,Dのうち、通信制御端末Aの入力部
104が操作されて、通信制御装置Aにマスタ設定要求
があるとき、通信制御装置Aが探索状態に状態遷移し、
所定時間の間、探索信号を送信し続ける。そして、通信
制御端末Aからの探索信号を受信した通信制御装置B〜
Dは、それぞれ、通信制御端末Aの端末識別情報に相当
するマスタ識別情報をマスタ識別情報格納部205に格
納した後、スレーブ識別信号を通信制御装置Aに対して
送信して、データ通信状態に状態遷移する。When the input unit 104 of the communication control terminal A is operated among the communication control devices A, B, C, and D in the power-on and standby state, and the communication control device A has a master setting request. , The communication control device A makes a state transition to the search state,
The transmission of the search signal is continued for a predetermined time. Then, the communication control devices B to B that have received the search signal from the communication control terminal A
D respectively stores the master identification information corresponding to the terminal identification information of the communication control terminal A in the master identification information storage unit 205, and then transmits a slave identification signal to the communication control device A to change the data communication state. State transition.
【0083】又、探索状態にある通信制御装置Aは、通
信制御装置B〜Dのそれぞれからスレーブ識別信号を受
信すると、受信するたびに、それぞれの端末識別情報に
相当するスレーブ識別情報をスレーブ情報格納部207
に格納する。そして、この通信制御装置Aは、探索状態
に状態遷移してから所定時間が経過したことを確認する
と、データ通信状態に状態遷移する。このように、探索
状態に状態遷移した通信制御装置Aが所定時間内に通信
制御装置B〜Dからのスレーブ識別信号を受信すること
で、図8のように、通信制御装置Aをマスタ端末、通信
制御装置B〜Dをスレーブ端末とするアドホックネット
ワーク800が構築される。When the communication control device A in the search state receives the slave identification signal from each of the communication control devices B to D, each time the communication control device A receives the slave identification signal, it transmits the slave identification information corresponding to the terminal identification information to the slave information. Storage unit 207
To be stored. Then, when confirming that a predetermined time has passed since the state transition to the search state, the communication control device A makes a state transition to the data communication state. As described above, when the communication control device A that has transitioned to the search state receives the slave identification signals from the communication control devices B to D within a predetermined time, as shown in FIG. An ad hoc network 800 in which the communication control devices BD are slave terminals is constructed.
【0084】このように、通信制御装置A〜Dによって
アドホックネットワーク800が構築されると、通信制
御装置Aのスレーブ情報格納部207に格納されたスレ
ーブ識別情報が通信制御装置B〜Dに送信される。そし
て、通信制御装置Bのスレーブ情報格納部211に通信
制御装置C,Dの端末識別情報に相当するスレーブ識別
情報が、通信制御装置Cのスレーブ情報格納部211に
通信制御装置B,Dの端末識別情報に相当するスレーブ
識別情報が、通信制御装置Dのスレーブ情報格納部21
1に通信制御装置B,Cの端末識別情報に相当するスレ
ーブ識別情報が、それぞれ、格納される。As described above, when the ad hoc network 800 is constructed by the communication control units A to D, the slave identification information stored in the slave information storage unit 207 of the communication control unit A is transmitted to the communication control units B to D. You. The slave identification information corresponding to the terminal identification information of the communication control devices C and D is stored in the slave information storage unit 211 of the communication control device B, and the terminal information of the communication control devices B and D is stored in the slave information storage unit 211 of the communication control device C. The slave identification information corresponding to the identification information is stored in the slave information storage unit 21 of the communication control device D.
1 stores slave identification information corresponding to the terminal identification information of the communication control devices B and C, respectively.
【0085】このようにしてスレーブ端末となる通信制
御装置B〜Dとマスタ端末となる通信制御装置Aとで構
成されるアドホックネットワーク800において、各通
信制御装置からアプリケーションデータやアプリケーシ
ョンプログラムが送信されるとき、その送信信号には、
送信元の通信制御装置の端末識別情報と送信先の通信制
御装置の端末識別情報が含まれる。Thus, in the ad hoc network 800 composed of the communication control devices BD serving as slave terminals and the communication control device A serving as a master terminal, application data and application programs are transmitted from each communication control device. When the transmitted signal
The terminal identification information of the communication control device of the transmission source and the terminal identification information of the communication control device of the transmission destination are included.
【0086】よって、マスタ端末となる通信制御装置A
は、スレーブ端末となる通信制御装置B〜Dからの送信
信号に含まれた端末識別情報を、スレーブ情報格納部2
07内の各スレーブ端末のスレーブ識別情報や端末識別
情報格納部204内の自機器の端末識別情報と照合する
ことで、送信元となる通信制御装置と送信先となる通信
制御装置を認識することができる。Therefore, the communication control device A serving as the master terminal
Stores the terminal identification information included in the transmission signals from the communication control devices BD serving as the slave terminals in the slave information storage unit 2.
07, the communication control device serving as the transmission source and the communication control device serving as the transmission destination are recognized by checking the slave identification information of each slave terminal in 07 and the terminal identification information of the own device in the terminal identification information storage unit 204. Can be.
【0087】例えば、通信制御装置Bから通信制御装置
Cに対して、アプリケーションデータやアプリケーショ
ンプログラムが送信されるとき、通信制御装置Bのマス
タ変更判定部210において、通信制御装置Bから通信
制御装置Aへのデータ転送時間と、通信制御時間Aから
通信制御装置Cへのデータ転送時間とが算出されて、マ
スタ変更を行わないときのデータ転送時間(図6のTa
+Tb、図7のta+tb+Ta+Tbに相当する)が
算出される。For example, when application data or an application program is transmitted from the communication control device B to the communication control device C, the communication control device B sends the communication control device A And the data transfer time from the communication control time A to the communication control device C are calculated, and the data transfer time when the master change is not performed (Ta in FIG. 6).
+ Tb, corresponding to ta + tb + Ta + Tb in FIG. 7).
【0088】その後、通信制御装置Bから通信制御装置
Cへのデータ転送時間が算出され、マスタ端末の変更に
かかるマスタ変更時間が加算されたマスタ変更を行うと
きのデータ転送時間(図6のTc+Td、図7のtc+
Tc+Tdに相当する)が算出される。そして、算出さ
れたマスタ変更を行わないときのデータ転送時間とマス
タ変更を行うときのデータ転送時間を比較して、マスタ
変更を行うときのデータ転送時間が短いとき、通信制御
装置Bをマスタ端末に変更するためのマスタ変更要求信
号をマスタ端末である通信制御装置Aに送信する。Thereafter, the data transfer time from the communication control device B to the communication control device C is calculated, and the data transfer time (Tc + Td in FIG. 6) for performing the master change in which the master change time required for changing the master terminal is added. , Tc + in FIG.
Tc + Td) is calculated. Then, the calculated data transfer time when not performing the master change is compared with the data transfer time when performing the master change, and when the data transfer time when performing the master change is short, the communication control device B is connected to the master terminal. Is transmitted to the communication control device A as the master terminal.
【0089】通信制御装置Aでは、マスタ変更要求信号
を受信すると、マスタ変更要求信号に含まれる送信元の
通信制御装置Bの端末識別情報をスレーブ情報格納部2
07に格納されたスレーブ識別情報と比較することで、
送信元が通信制御装置Bであることを認識する。又、マ
スタ変更要求信号に含まれるマスタ端末に変更設定され
る通信制御装置Bの端末識別情報をスレーブ情報格納部
207に格納されたスレーブ識別情報と比較すること
で、マスタ端末に変更設定する通信制御装置が通信制御
装置Bであることを認識する。Upon receiving the master change request signal, the communication control device A stores the terminal identification information of the transmission source communication control device B included in the master change request signal in the slave information storage unit 2.
07 by comparing with the slave identification information stored in
It recognizes that the transmission source is the communication control device B. Also, by comparing the terminal identification information of the communication control device B changed and set to the master terminal included in the master change request signal with the slave identification information stored in the slave information storage unit 207, the communication changed and set to the master terminal is performed. It recognizes that the control device is the communication control device B.
【0090】そして、この通信制御装置B,C間に係わ
るデータ通信以外で、通信制御装置Aが通信制御装置B
〜Dとデータ通信を行うことがないとき、マスタ制御部
206において、マスタ端末を通信制御装置Bに変更す
る必要があると判断する。よって、まず、通信制御装置
C,Dに対して、マスタ削除通知信号を送信した後、次
に、スレーブ情報格納部207内のスレーブ識別信号を
削除する。そして、通信制御装置Bに対して、マスタ変
更通知信号を送信した後、待機状態に状態遷移する。In addition to the data communication between the communication control units B and C, the communication control unit A
When no data communication is performed with .about.D, the master control unit 206 determines that it is necessary to change the master terminal to the communication control device B. Therefore, after transmitting the master deletion notification signal to the communication control devices C and D, the slave identification signal in the slave information storage unit 207 is deleted next. Then, after transmitting the master change notification signal to the communication control apparatus B, the state transition is made to the standby state.
【0091】このように、通信制御装置Aよりマスタ削
除通知信号及びマスタ変更通知信号が送信された後、通
信制御装置C,Dがマスタ削除通知信号を受信すると、
マスタ識別情報格納部205内のマスタ識別情報を削除
するとともにスレーブ情報格納部211内のスレーブ識
別情報を削除した後、待機状態に状態遷移する。又、通
信制御装置Bがマスタ変更通知信号を受信すると、マス
タ識別情報格納部205内のマスタ識別情報を削除する
とともにスレーブ情報格納部211内のスレーブ識別情
報を削除する。その後、通信制御装置Bは、マスタ設定
されるように入力部106が操作された状態と同一の状
態に設定された後、待機状態に状態遷移する。As described above, when the communication control devices C and D receive the master deletion notification signal after the master deletion notification signal and the master change notification signal are transmitted from the communication control device A,
After deleting the master identification information in the master identification information storage unit 205 and deleting the slave identification information in the slave information storage unit 211, the state transitions to the standby state. When the communication control device B receives the master change notification signal, it deletes the master identification information in the master identification information storage unit 205 and the slave identification information in the slave information storage unit 211. Thereafter, the communication control device B sets the same state as the state where the input unit 106 is operated so as to be set as the master, and then makes a state transition to the standby state.
【0092】このように、通信制御装置A〜Dが全て待
機状態に状態遷移すると、通信制御装置Bがマスタ設定
される状態に設定されているため、探索状態に状態遷移
し、探索信号を通信制御装置A,C,Dに対して送信す
る。そして、探索信号を受信した通信制御装置A,C,
Dはそれぞれ、通信制御措置Bがマスタ端末となったこ
とを認識した後、マスタ端末となる通信制御装置Bに対
してスレーブ識別信号を送信し、データ通信状態に状態
遷移する。As described above, when all of the communication control devices A to D transit to the standby state, the state of the communication control device B transits to the search state because the communication control device B is set to the master setting state, and the search signal is transmitted. Transmit to the control devices A, C, D. Then, the communication control devices A, C,
After recognizing that the communication control measure B has become the master terminal, each D transmits a slave identification signal to the communication control device B that becomes the master terminal, and makes a state transition to the data communication state.
【0093】この通信制御装置A,C,Dのそれぞれか
ら送信されるスレーブ識別信号を通信制御装置Bが受信
すると、スレーブ端末となる通信制御装置A,C,Dを
認識し、データ通信状態に状態遷移する。このようにし
て、図9のようなマスタ端末となる通信制御装置Bとス
レーブ端末となる通信制御装置A,C,Dでアドホック
ネットワーク900が構築されると、通信制御装置A,
C,Dに対してスレーブ情報格納部207内のスレーブ
識別情報を送信する。その後、通信制御装置Bが、通信
制御装置Cに対して、アプリケーションデータやアプリ
ケーションプログラムの送信を行う。When the communication control device B receives the slave identification signal transmitted from each of the communication control devices A, C, and D, it recognizes the communication control devices A, C, and D serving as the slave terminals and enters the data communication state. State transition. As described above, when the ad hoc network 900 is constructed by the communication control device B serving as a master terminal and the communication control devices A, C, and D serving as slave terminals as shown in FIG.
The slave identification information in the slave information storage unit 207 is transmitted to C and D. After that, the communication control device B transmits the application data and the application program to the communication control device C.
【0094】尚、本例では、アドホックネットワークが
4台の通信制御装置によって構築されるものとしたが、
アドホックネットワークを構築する通信制御装置の台数
は、この4台に限定されるものではない。又、マスタ変
更要求信号が送信されて、アドホックネットワークを再
構築する際、データ通信を行うことのない通信制御装置
を新たに構築されるアドホックネットワークより排除す
るようにしても構わない。In this example, the ad hoc network is constructed by four communication control devices.
The number of communication control devices that construct the ad hoc network is not limited to these four. When a master change request signal is transmitted and an ad hoc network is reconstructed, a communication control device that does not perform data communication may be excluded from the newly constructed ad hoc network.
【0095】尚、本実施形態では、マスタ削除信号とマ
スタ変更信号を別々に生成するようにしたが、マスタ変
更信号のみとしても構わない。このとき、マスタ端末に
変更される通信制御装置以外のスレーブ端末として動作
する通信制御装置が、このマスタ変更信号を受信したと
き、マスタ変更信号内に含まれたマスタ端末に変更され
る通信制御装置の端末識別情報を確認し、自機器がマス
タ端末に変更されないことを認識することで、マスタ識
別情報及びスレーブ識別情報の削除のみを行って、待機
状態に状態遷移することができる。In the present embodiment, the master deletion signal and the master change signal are separately generated, but only the master change signal may be used. At this time, when the communication control device operating as a slave terminal other than the communication control device changed to the master terminal receives the master change signal, the communication control device is changed to the master terminal included in the master change signal. By confirming that the terminal itself is not changed to the master terminal by confirming the terminal identification information, only the master identification information and the slave identification information are deleted, and the state can be changed to the standby state.
【0096】又、本実施形態では、通信制御装置に、予
め、上述したような1つのネットワーク内に構成される
マスタ端末及びスレーブ端末を設定するためのネットワ
ーク設定プログラムを、ハードウェアとして又はソフト
ウェアとして設けた構成としたが、このような構成に限
定されるものではない。In this embodiment, a network setting program for setting a master terminal and a slave terminal configured in one network as described above is previously stored in the communication control device as hardware or software. Although provided, the configuration is not limited to such a configuration.
【0097】即ち、例えば、サーバー内に、このような
ネットワーク設定プログラムを格納しておき、ユーザー
が各種通信回線を利用して、通信制御装置からサーバー
にアクセスし、サーバーに格納されたこのネットワーク
設定プログラムを通信制御装置にダウンロードして、ネ
ットワーク設定プログラムが利用可能となるようにして
も構わない。又、このネットワーク設定プログラムを格
納した記録媒体よりインストールすることで、ネットワ
ーク設定プログラムが利用可能となるようにしても構わ
ない。That is, for example, such a network setting program is stored in the server, and the user accesses the server from the communication control device using various communication lines, and stores the network setting program stored in the server. The program may be downloaded to the communication control device so that the network setting program can be used. Further, the network setting program may be made available by installing from a recording medium storing the network setting program.
【0098】[0098]
【発明の効果】本発明によると、スレーブ端末と設定さ
れている2台の通信制御装置間でデータ信号の送受信が
行われようとするとき、データ信号が大量のデータで構
成されたものである場合や、複数回送受信されるもので
ある場合など、マスタ端末を変更して直接通信を行うよ
りもマスタ端末を介して通信を行う方がデータ転送効率
が悪い場合、データ信号の送受信を行おうとする2台の
通信制御装置の何れか一方をマスタ端末に設定してネッ
トワークを再構築することができる。よって、ネットワ
ーク内において、データ転送効率が最良となるように適
宜マスタ端末の設定変更を行うことができるため、常に
データ転送効率の良い状態となるネットワークが構成さ
れ、ネットワーク全体に係る負荷を抑制することができ
る。According to the present invention, when a data signal is to be transmitted and received between two slave communication terminals and a set communication control device, the data signal is composed of a large amount of data. If the data transfer efficiency is lower when communication is performed via the master terminal than when direct communication is performed by changing the master terminal, such as when the data signal is transmitted and received multiple times, try to transmit and receive data signals. One of the two communication control devices can be set as the master terminal to reconstruct the network. Therefore, in the network, the setting of the master terminal can be appropriately changed so that the data transfer efficiency becomes the best. Therefore, a network in which the data transfer efficiency is always high is configured, and the load on the entire network is suppressed. be able to.
【図1】本発明の通信制御装置の内部構成を示すブロッ
ク図。FIG. 1 is a block diagram showing the internal configuration of a communication control device according to the present invention.
【図2】本発明の通信制御装置の機能構成を示すブロッ
ク図。FIG. 2 is a block diagram showing a functional configuration of a communication control device according to the present invention.
【図3】本発明の通信制御装置の動作を示すフローチャ
ート。FIG. 3 is a flowchart showing the operation of the communication control device of the present invention.
【図4】本発明の通信制御装置の動作を示すフローチャ
ート。FIG. 4 is a flowchart showing the operation of the communication control device of the present invention.
【図5】本発明の通信制御装置の動作を示すフローチャ
ート。FIG. 5 is a flowchart showing the operation of the communication control device of the present invention.
【図6】マスタ変更判定部におけるデータ転送時間の比
較を説明するための図。FIG. 6 is a diagram for explaining comparison of data transfer times in a master change determination unit.
【図7】マスタ変更判定部におけるデータ転送時間の比
較を説明するための図。FIG. 7 is a diagram for explaining comparison of data transfer times in a master change determination unit.
【図8】アドホックネットワークの構成を示すブロック
図。FIG. 8 is a block diagram showing a configuration of an ad hoc network.
【図9】アドホックネットワークの構成を示すブロック
図。FIG. 9 is a block diagram showing a configuration of an ad hoc network.
101 CPU 102 ROM 103 RAM 104 入力部 105 出力部 106 I/Oデバイス 107 外部記憶装置 108 通信デバイス 109 アンテナ 201 制御部 202 データ送受信部 203 識別情報制御部 204 端末識別情報格納部 205 マスタ識別情報格納部 206 マスタ制御部 207 スレーブ情報格納部 208 アプリケーション制御部 209 データ格納部 210 マスタ変更判定部 211 スレーブ情報格納部 101 CPU 102 ROM 103 RAM 104 Input unit 105 Output unit 106 I / O device 107 External storage device 108 Communication device 109 Antenna 201 Control unit 202 Data transmission / reception unit 203 Identification information control unit 204 Terminal identification information storage unit 205 Master identification information storage unit 206 Master control unit 207 Slave information storage unit 208 Application control unit 209 Data storage unit 210 Master change determination unit 211 Slave information storage unit
フロントページの続き Fターム(参考) 5K033 AA01 AA03 CB11 DA01 EA05 5K034 AA02 AA07 DD03 EE03 EE10 HH01 HH02 KK28 LL01 MM21 NN11 Continued on the front page F term (reference) 5K033 AA01 AA03 CB11 DA01 EA05 5K034 AA02 AA07 DD03 EE03 EE10 HH01 HH02 KK28 LL01 MM21 NN11
Claims (18)
トワーク内で、マスタ端末となる1台の通信制御装置と
スレーブ端末となる複数台の通信制御装置とを設定する
ためのマスタ/スレーブ設定方法において、 現在構築されたネットワーク内において、該ネットワー
ク内の任意のスレーブ端末である通信制御装置が他のス
レーブ端末である通信制御装置に対してデータ信号を送
信する際、前記データ信号の送受信が行われるスレーブ
端末である2台の通信制御装置の何れかをマスタ端末に
変更して、新たに、マスタ端末及びスレーブ端末を再設
定することを特徴とするマスタ/スレーブ設定方法。1. A master / slave setting for setting one communication control device serving as a master terminal and a plurality of communication control devices serving as slave terminals in a network constructed by a plurality of communication control devices. In the method, when a communication control device which is an arbitrary slave terminal in the currently constructed network transmits a data signal to a communication control device which is another slave terminal in the network, transmission and reception of the data signal are performed. A master / slave setting method, characterized in that one of the two communication control devices which is a slave terminal to be performed is changed to a master terminal, and the master terminal and the slave terminal are newly set.
端末である2台の通信制御装置が、現在マスタ端末とし
て設定される通信制御装置を介してデータ信号の送受信
を行うときにかかる第1データ転送時間が算出されると
ともに、 マスタ端末の変更が開始してから、前記データ信号の送
受信を行うスレーブ端末であった2台の通信制御装置が
それぞれマスタ端末とスレーブ端末に設定された後に、
前記2台の通信制御装置が直接前記データ信号の送受信
を行うまでにかかる第2データ転送時間が算出され、 前記第2データ転送時間が前記第1データ転送時間より
短くなるとき、マスタ端末の変更を行うことを特徴とす
る請求項1に記載のマスタ/スレーブ設定方法。2. The first data transfer when two communication control devices, which are slave terminals that transmit and receive the data signal, transmit and receive data signals via a communication control device that is currently set as a master terminal. The time is calculated, and after the change of the master terminal is started, after the two communication control devices that were the slave terminals that transmit and receive the data signal are set to the master terminal and the slave terminal, respectively,
A second data transfer time required for the two communication control devices to directly transmit and receive the data signal is calculated. When the second data transfer time is shorter than the first data transfer time, a change of a master terminal is performed. The master / slave setting method according to claim 1, wherein
電源投入されて待機状態にある他の通信制御装置を探索
するための探索信号が送信され、 前記探索信号を受信した他の通信制御装置がスレーブ端
末として設定されることを特徴とする請求項1又は請求
項2に記載のマスタ/スレーブ設定方法。3. When the network is first constructed, a communication control device set to be a master terminal
2. A search signal for searching for another communication control device that is turned on and is in a standby state is transmitted, and the other communication control device that has received the search signal is set as a slave terminal. Or the master / slave setting method according to claim 2.
ークを再構築する際、 まず、前記ネットワークを構築する全ての通信制御装置
を待機状態とした後、 新たにマスタ端末となるように設定された通信制御装置
より、待機状態にある他の通信制御装置を探索するため
の探索信号が送信され、 前記探索信号を受信した他の通信制御装置がスレーブ端
末として設定されることを特徴とする請求項3に記載の
マスタ/スレーブ設定方法。4. When the master terminal is changed and the network is reconfigured, first, all communication control devices forming the network are set to a standby state, and then set to become a new master terminal. A search signal for searching for another communication control device in a standby state is transmitted from the communication control device, and the other communication control device receiving the search signal is set as a slave terminal. 3. The master / slave setting method according to 3.
定された通信制御装置が、前記探索信号を受信してスレ
ーブ端末に設定された通信制御装置からの返信信号を受
信することによって、該返信信号を送信した前記通信制
御装置がスレーブ端末に設定されたことを認識すること
を特徴とする請求項3又は請求項4に記載のマスタ/ス
レーブ設定方法。5. The communication control device set as a master terminal transmitting the search signal receives the search signal and receives a reply signal from the communication control device set as a slave terminal, thereby receiving the reply signal. The master / slave setting method according to claim 3 or 4, wherein the communication control device that has transmitted the signal recognizes that the communication terminal has been set as a slave terminal.
ワークを構築するとともに、該ネットワーク内において
マスタ端末又はスレーブ端末のいずれかとなってデータ
通信を行う通信制御装置において、 通信用の信号を送受信するための送受信部と、 スレーブ端末として設定されているとき、前記ネットワ
ークを構築する他の通信制御装置のうちスレーブ端末と
して設定されている他の通信制御装置にデータ信号を送
信する際、マスタ端末の変更を要求するためのマスタ変
更信号が前記送受信部で生成されるように、自機器又は
前記データ信号の送信先の通信制御装置のいずれか一方
をマスタ端末に変更するか否かの判定を行うマスタ変更
判定部と、 を有し、 前記マスタ変更判定部でマスタ端末の変更が行われるよ
うに判定されたとき、前記送受信部で前記マスタ変更要
求信号を生成した後、現在マスタ端末に設定されている
他の通信制御装置に対して前記マスタ変更要求信号を送
信することを特徴とする通信制御装置。6. A communication control device for constructing a network together with a plurality of other communication control devices and performing data communication as one of a master terminal and a slave terminal in the network for transmitting and receiving communication signals. A transmission / reception unit, when set as a slave terminal, when transmitting a data signal to another communication control device set as a slave terminal among the other communication control devices configuring the network, changing the master terminal A master that determines whether to change one of its own device or the communication control device to which the data signal is transmitted to a master terminal so that a master change signal for requesting the data is generated by the transmission / reception unit And a change determination unit, wherein when the master change determination unit determines that the change of the master terminal is performed, After generating the master change request signal transmitting and receiving unit, a communication control apparatus and transmits the master change request signal to another communication controller that is currently set to the master terminal.
る通信制御装置を介して、前記送信先の通信制御装置に
送信するときにかかる第1データ転送時間が算出される
とともに、 前記マスタ変更要求信号の生成が開始されてから、前記
データ信号が前記送信先の通信制御装置へ送信されるま
でにかかる第2データ転送時間が算出され、 前記第2データ転送時間が前記第1データ転送時間より
短くなるとき、マスタ端末の変更が行われるように判定
されることを特徴とする請求項6に記載の通信制御装
置。7. The first data transfer time required for transmitting the data signal to the communication control device of the transmission destination via the communication control device currently set as a master terminal in the master change determination unit. Is calculated, and a second data transfer time required from when the generation of the master change request signal is started to when the data signal is transmitted to the communication control device of the transmission destination is calculated, and the second data 7. The communication control device according to claim 6, wherein when the transfer time becomes shorter than the first data transfer time, it is determined that the change of the master terminal is performed.
ワークを構築するとともに、該ネットワーク内において
マスタ端末又はスレーブ端末のいずれかとなってデータ
通信を行う通信制御装置において、 通信用の信号を送受信するための送受信部と、 マスタ端末として設定されているとき、スレーブ端末と
なる他の通信制御装置から送信されるマスタ端末の変更
を要求するためのマスタ変更要求信号を前記送受信部で
受信すると、マスタ端末としての設定を解除するととも
に、次にマスタ端末に設定される他の通信制御装置に対
してマスタ端末の設定を行うことを認識させるためのマ
スタ変更通知信号を前記送受信部が生成するように制御
するマスタ制御部と、 を有し、 スレーブ端末となる他の通信制御装置間同士でデータ信
号の通信が開始されようとするときに、該データ信号の
送信を行うスレーブ端末となる他の通信制御装置より前
記マスタ変更要求信号が送信されたとき、前記マスタ制
御部でマスタ端末としての設定を解除した後、次にマス
タ端末に設定される他の通信制御装置に対して前記マス
タ変更通知信号を送信することを特徴とする通信制御装
置。8. A communication control device for constructing a network together with a plurality of other communication control devices and performing data communication as one of a master terminal and a slave terminal in the network for transmitting and receiving communication signals. When the transmission / reception unit receives a master change request signal for requesting a change of the master terminal transmitted from another communication control device serving as a slave terminal when the transmission / reception unit is set as the master terminal, the master terminal As well as canceling the setting, control is performed such that the transmission / reception unit generates a master change notification signal for recognizing that another communication control device to be set to the master terminal next performs setting of the master terminal. And a master control unit that communicates with another communication control device serving as a slave terminal. When the master change request signal is transmitted from another communication control device serving as a slave terminal that performs transmission of the data signal when the master control unit cancels the setting as the master terminal, Next, the communication control device transmits the master change notification signal to another communication control device set as a master terminal.
ワークを構築するとともに、該ネットワーク内において
マスタ端末又はスレーブ端末のいずれかとなってデータ
通信を行う通信制御装置において、 通信用の信号を送受信するための送受信部と、 スレーブ端末として設定されているとき、前記ネットワ
ークを構築する他の通信制御装置のうちスレーブ端末と
して設定されている他の通信制御装置にデータ信号を送
信する際、マスタ端末の変更を要求するためのマスタ変
更信号が前記送受信部で生成されるように、自機器又は
前記データ信号の送信先の通信制御装置のいずれか一方
をマスタ端末に変更するか否かの判定を行うマスタ変更
判定部と、 マスタ端末として設定されているとき、スレーブ端末と
なる他の通信制御装置から送信される前記マスタ変更要
求信号を前記送受信部で受信すると、マスタ端末として
の設定を解除するとともに、次にマスタ端末に設定され
る他の通信制御装置に対してマスタ端末の設定を行うこ
とを認識させるためのマスタ変更通知信号が前記送受信
部において生成されるように制御するマスタ制御部と、 を有し、 スレーブ端末として設定された場合において、前記マス
タ変更判定部でマスタ端末の変更が行われるように判定
されたとき、前記送受信部で前記マスタ変更要求信号を
生成した後、現在マスタ端末に設定されている他の通信
制御装置に対して前記マスタ変更要求信号を送信し、 又、マスタ端末として設定された場合において、スレー
ブ端末となる他の通信制御装置間より前記マスタ変更要
求信号が送信されたとき、前記マスタ制御部でマスタ端
末としての設定を解除した後、次にマスタ端末に設定さ
れる他の通信制御装置に対して前記マスタ変更通知信号
を送信することを特徴とする通信制御装置。9. A communication control device for constructing a network together with a plurality of other communication control devices and performing data communication as one of a master terminal and a slave terminal in the network, for transmitting and receiving communication signals. A transmission / reception unit, when set as a slave terminal, when transmitting a data signal to another communication control device set as a slave terminal among the other communication control devices configuring the network, changing the master terminal A master that determines whether to change one of its own device or the communication control device to which the data signal is transmitted to a master terminal so that a master change signal for requesting the data is generated by the transmission / reception unit The change determination unit and, when set as a master terminal, transmitted from another communication control device serving as a slave terminal. Receiving the master change request signal by the transmission / reception unit, cancels the setting as a master terminal and causes another communication control device to be set next to the master terminal to recognize that the setting of the master terminal is to be performed. A master change notification signal for controlling the generation of the master terminal by the transmission / reception unit, and when the slave terminal is set, the master change determination unit changes the master terminal. When it is determined that, after generating the master change request signal in the transmitting and receiving unit, transmits the master change request signal to another communication control device that is currently set to the master terminal, and, as a master terminal When set, when the master change request signal is transmitted from another communication control device serving as a slave terminal, the master control unit After unset as a master terminal, then the communication control unit and transmits the master change notification signal to the other communication control apparatus is set to the master terminal.
信制御装置を介して、前記送信先の通信制御装置に送信
するときにかかる第1データ転送時間が算出されるとと
もに、 前記マスタ変更要求信号の生成が開始されてから、前記
データ信号が前記送信先の通信制御装置への送信される
までにかかる第2データ転送時間が算出され、前記第2
データ転送時間が前記第1データ転送時間より短くなる
とき、マスタ端末の変更が行われるように判定されるこ
とを特徴とする請求項9に記載の通信制御装置。10. The master change determination unit, wherein a first data transfer time required when transmitting the data signal to the destination communication control device via a communication control device currently set as a master terminal is set. Calculating the second data transfer time from when the generation of the master change request signal is started to when the data signal is transmitted to the destination communication control device, and
10. The communication control device according to claim 9, wherein when the data transfer time is shorter than the first data transfer time, it is determined that the change of the master terminal is performed.
端末識別情報が格納される端末識別情報格納部と、 前記ネットワークが構築されたとき、スレーブ端末とし
て設定された他の通信制御装置の端末識別情報であるス
レーブ識別情報を格納するスレーブ情報格納部と、 前記ネットワークが構築されたとき、マスタ端末として
設定された他の通信制御装置の端末識別情報であるマス
タ識別情報を格納するマスタ識別情報格納部と、 を有し、 マスタ端末の変更を行うとき、前記スレーブ情報格納部
内のスレーブ識別情報及び前記マスタ識別情報格納部内
のマスタ識別情報が削除されて、前記スレーブ情報格納
部及び前記マスタ識別情報格納部がリセットされた後、
待機状態となることを特徴とする請求項9又は請求項1
0に記載の通信制御装置。11. A terminal identification information storage unit for storing terminal identification information for identifying an individual communication control device, and a terminal of another communication control device set as a slave terminal when the network is constructed. A slave information storage unit that stores slave identification information that is identification information, and master identification information that stores master identification information that is terminal identification information of another communication control device set as a master terminal when the network is established. And when the master terminal is changed, the slave identification information in the slave information storage unit and the master identification information in the master identification information storage unit are deleted, and the slave information storage unit and the master identification are deleted. After the information storage is reset,
10. The apparatus according to claim 9, wherein the apparatus is in a standby state.
0. The communication control device according to 0.
して設定されているとともにマスタ端末の変更後にマス
タ端末として設定される場合において、 前記ネットワークでマスタ端末として設定されている通
信制御装置からの前記マスタ変更通信号を受信したと
き、前記スレーブ情報格納部及び前記マスタ識別情報格
納部がリセットされて待機状態になった後に、マスタ端
末に設定されることを特徴とする請求項11に記載の通
信制御装置。12. The master change communication from a communication control device set as a master terminal in the network, wherein the master change communication is set as a slave terminal in the network and set as a master terminal after changing the master terminal. 12. The communication control device according to claim 11, wherein when a slave signal is received, the slave information storage unit and the master identification information storage unit are reset and set in a standby state, and then set to a master terminal.
て、他の通信制御装置を探索するとともにマスタ端末に
設定されたことを認識させるための探索信号を前記送受
信部で生成した後、他の通信制御装置に対して送信し、 他の通信制御装置より送信される前記探索信号に対する
返信信号を受信したとき、前記返信信号内に含まれた端
末識別情報を前記スレーブ情報格納部に前記スレーブ識
別情報として格納することで、スレーブ端末に設定され
た他の通信制御装置を認識し、 又、スレーブ端末に設定される場合において、マスタ端
末に設定された他の通信制御装置より送信される探索信
号を受信し、前記探索信号内に含まれた端末識別情報を
前記マスタ識別情報格納部に前記マスタ識別情報として
格納することで、マスタ端末に設定された他の通信制御
装置を認識し、 前記探索信号に対する前記返信信号を前記送受信部で生
成した後、前記マスタ端末に設定される他の通信制御装
置に対して送信することを特徴とする請求項11又は請
求項12に記載の通信制御装置。13. When set in the master terminal, the transmission / reception unit generates a search signal for searching for another communication control device and recognizing that the communication terminal has been set in the master terminal. Transmit to the device, when receiving a reply signal to the search signal transmitted from another communication control device, the terminal identification information included in the reply signal as the slave identification information in the slave information storage unit By storing, the other communication control device set in the slave terminal is recognized, and when set in the slave terminal, a search signal transmitted from the other communication control device set in the master terminal is received. The terminal identification information included in the search signal is stored as the master identification information in the master identification information storage unit, so that the 12. The communication control apparatus according to claim 11, wherein the communication control apparatus recognizes the communication control apparatus, generates the return signal for the search signal in the transmission / reception unit, and transmits the response signal to another communication control apparatus set in the master terminal. Item 13. The communication control device according to item 12.
信制御装置と複数台のスレーブ端末として設定される通
信制御装置で構築されるネットワークシステムにおい
て、 スレーブ端末として設定されている通信制御装置が、他
のスレーブ端末として設定されている通信制御装置に対
してデータ信号の送信を行う際、該データ信号の送受信
にかかる時間に基づいてマスタ端末の設定変更を行うか
否かを判定した後、マスタ端末の設定変更を行う必要が
あると判定したとき、送受信が行われるスレーブ端末と
して設定されている2台の通信制御装置の何れかがマス
タ端末に設定変更されることを要求するためのマスタ変
更要求信号を、マスタ端末として設定されている通信制
御装置に送信することを特徴とするネットワークシステ
ム。14. A network system constructed by a communication control device set as one master terminal and a communication control device set as a plurality of slave terminals, wherein the communication control device set as a slave terminal is: When transmitting a data signal to a communication control device set as another slave terminal, it is determined whether or not to change the setting of the master terminal based on the time required for transmission and reception of the data signal. When it is determined that the setting of the terminal needs to be changed, a master change for requesting that one of the two communication control devices set as slave terminals for transmission and reception be changed to the master terminal A network system for transmitting a request signal to a communication control device set as a master terminal.
ブ端末である2台の通信制御装置が、マスタ端末として
設定されている通信制御装置を介して前記データ信号の
送受信を行うときにかかる第1データ転送時間が算出さ
れるとともに、 マスタ端末の変更が開始してから、前記データ信号の送
受信を行うスレーブ端末であった2台の通信制御装置が
それぞれマスタ端末とスレーブ端末に設定された後に、
前記2台の通信制御装置が直接前記データ信号の送受信
を行うまでにかかる第2データ転送時間が算出され、 前記第2データ転送時間が前記第1データ転送時間より
短くなるとき、前記マスタ変更要求信号が送信されるこ
とを特徴とする請求項14に記載のネットワークシステ
ム。15. The first data transmitted when two communication control devices, which are slave terminals for transmitting and receiving the data signal, transmit and receive the data signal via a communication control device set as a master terminal. After the transfer time is calculated, and after the change of the master terminal is started, after the two communication control devices that were the slave terminals that transmit and receive the data signal are set to the master terminal and the slave terminal, respectively,
A second data transfer time required for the two communication control devices to directly transmit and receive the data signal is calculated, and when the second data transfer time is shorter than the first data transfer time, the master change request The network system according to claim 14, wherein a signal is transmitted.
制御装置が、前記マスタ変更要求信号を受信したとき、
自機器のマスタ端末の設定を解除するとともに、次にマ
スタ端末に設定される通信制御装置に対して、マスタ端
末として設定されることを認識させるためのマスタ変更
通知信号を送信することを特徴とする請求項14又は請
求項15に記載のネットワークシステム。16. When a communication control device set as a master terminal receives the master change request signal,
Releases the setting of the master terminal of the own device, and transmits a master change notification signal for recognizing that the device is set as the master terminal to the communication control device set to the next master terminal. The network system according to claim 14 or claim 15, wherein
電源投入されて待機状態にある他の通信制御装置を探索
するための探索信号が送信され、 前記探索信号を受信した他の通信制御装置がスレーブ端
末として設定されることを特徴とする請求項16に記載
のネットワークシステム。17. When a network is first constructed, a communication control device set to be a master terminal
17. A search signal for searching for another communication control device that is powered on and in a standby state is transmitted, and the other communication control device that has received the search signal is set as a slave terminal. The network system according to 1.
して、前記ネットワークを再構築する際、 まず、前記ネットワークを構築する全ての通信制御装置
を待機状態とした後、前記マスタ変更通知信号を受信し
て新たにマスタ端末となるように設定された通信制御装
置より、待機状態にある他の通信制御装置を探索するた
めの探索信号が送信され、 前記探索信号を受信した他の通信制御装置がスレーブ端
末として設定されることを特徴とする請求項17に記載
のネットワークシステム。18. When reconfiguring the network by changing a communication control device serving as a master terminal, first, all communication control devices forming the network are set to a standby state, and then the master change notification signal is transmitted. A search signal for searching for another communication control device in a standby state is transmitted from the communication control device that has been received and newly set to be the master terminal, and another communication control device that has received the search signal 18. The network system according to claim 17, wherein is set as a slave terminal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000359047A JP2002164901A (en) | 2000-11-27 | 2000-11-27 | Master / slave setting method, communication control device, and network system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000359047A JP2002164901A (en) | 2000-11-27 | 2000-11-27 | Master / slave setting method, communication control device, and network system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2002164901A true JP2002164901A (en) | 2002-06-07 |
Family
ID=18830874
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000359047A Pending JP2002164901A (en) | 2000-11-27 | 2000-11-27 | Master / slave setting method, communication control device, and network system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2002164901A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007336167A (en) * | 2006-06-14 | 2007-12-27 | Mitsubishi Electric Corp | Information terminal device and data communication method |
| JP2008153911A (en) * | 2006-12-18 | 2008-07-03 | Mitsubishi Electric Corp | Communication system, communication terminal, communication method, and communication program |
| JP2010079423A (en) * | 2008-09-24 | 2010-04-08 | Sony Corp | Information processor and method, program, and information processing system |
| JP2011071593A (en) * | 2009-09-24 | 2011-04-07 | Nec Infrontia Corp | Mobile information terminal system and communication method used for the mobile information terminal system |
| JP2012050092A (en) * | 2011-09-08 | 2012-03-08 | Canon Inc | Communication device executing setup procedure for communication parameter, control method for communication device, and program |
| JP2014150570A (en) * | 2014-04-14 | 2014-08-21 | Sony Corp | Information processing device, method, and program |
| US9107108B2 (en) | 2006-10-27 | 2015-08-11 | Canon Kabushiki Kaisha | Discriminating a function of another communication apparatus and executing a communication parameters setting procedure |
| JP2016165159A (en) * | 2016-06-15 | 2016-09-08 | ブラザー工業株式会社 | Communication device |
-
2000
- 2000-11-27 JP JP2000359047A patent/JP2002164901A/en active Pending
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007336167A (en) * | 2006-06-14 | 2007-12-27 | Mitsubishi Electric Corp | Information terminal device and data communication method |
| US9107108B2 (en) | 2006-10-27 | 2015-08-11 | Canon Kabushiki Kaisha | Discriminating a function of another communication apparatus and executing a communication parameters setting procedure |
| JP2008153911A (en) * | 2006-12-18 | 2008-07-03 | Mitsubishi Electric Corp | Communication system, communication terminal, communication method, and communication program |
| JP2010079423A (en) * | 2008-09-24 | 2010-04-08 | Sony Corp | Information processor and method, program, and information processing system |
| US9124714B2 (en) | 2008-09-24 | 2015-09-01 | Sony Corporation | Information processing device and method, program, and information processing system |
| JP2011071593A (en) * | 2009-09-24 | 2011-04-07 | Nec Infrontia Corp | Mobile information terminal system and communication method used for the mobile information terminal system |
| JP2012050092A (en) * | 2011-09-08 | 2012-03-08 | Canon Inc | Communication device executing setup procedure for communication parameter, control method for communication device, and program |
| JP2014150570A (en) * | 2014-04-14 | 2014-08-21 | Sony Corp | Information processing device, method, and program |
| JP2016165159A (en) * | 2016-06-15 | 2016-09-08 | ブラザー工業株式会社 | Communication device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5945965B2 (en) | Communication equipment | |
| JP6327075B2 (en) | Function execution equipment | |
| JP6676469B2 (en) | Communication device, control method therefor, and program | |
| JP6477133B2 (en) | Communication equipment | |
| JP2018129942A (en) | Power transmission device, power reception device, method, and program | |
| WO2013034796A1 (en) | Methods, apparatuses and computer program products for performing wireless innercopy of data between devices | |
| WO2016092702A1 (en) | Communication device, communication device control method, and program | |
| JP5431584B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM | |
| JP2002164901A (en) | Master / slave setting method, communication control device, and network system | |
| JP6332768B2 (en) | Communication method and apparatus for NFC device and NFC device | |
| JP2018050132A (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM | |
| JP6319364B2 (en) | Communication equipment | |
| JP2022111276A (en) | communication equipment | |
| JP5269213B2 (en) | Communication device with storage function | |
| JP6547870B2 (en) | Communication equipment | |
| JP2019071634A (en) | Communication apparatus | |
| JP2009130400A (en) | Communication terminal, method and program thereof | |
| JP2004328287A (en) | Wireless communication apparatus and method | |
| WO2024128003A1 (en) | Communication system and communication method | |
| KR200325758Y1 (en) | Apparatus of storing data for cellular phone | |
| JP2019186954A (en) | Communication apparatus | |
| JP2005176047A (en) | Data sharing communication method | |
| JP2018157572A (en) | Function execution equipment | |
| JP2006197134A (en) | Information sharing system | |
| JP2005176046A (en) | Data sharing communication method |