JP2008301140A - Address acquisition system - Google Patents
Address acquisition system Download PDFInfo
- Publication number
- JP2008301140A JP2008301140A JP2007144319A JP2007144319A JP2008301140A JP 2008301140 A JP2008301140 A JP 2008301140A JP 2007144319 A JP2007144319 A JP 2007144319A JP 2007144319 A JP2007144319 A JP 2007144319A JP 2008301140 A JP2008301140 A JP 2008301140A
- Authority
- JP
- Japan
- Prior art keywords
- address
- slave
- unit
- master
- network
- 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
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、少なくとも一つのマスター機と複数のスレーブ機とが電気通信回線を介して接続されたアドレス取得システムに関し、特に、マスター機が手間をかけることなくスレーブ機のIPアドレスを認識することができるアドレス取得システムに関する。 The present invention relates to an address acquisition system in which at least one master machine and a plurality of slave machines are connected via an electric communication line, and in particular, the master machine can recognize the IP address of the slave machine without taking time and effort. It is related with the address acquisition system which can do.
複数の通信装置又は測定器がTCP/IP(Transmission Control Protocol/Internet Protocol)を介して接続され、これらの間で通信を行う状況においてはマスター機がスレーブ機のIPアドレスを認識していることが必要とされる。ここでいうマスター機とは、スレーブ機を自己の支配下で制御する機器を意味し、スレーブ機とは自己が持っている制御が使われずにマスター機の制御下に置かれるものをいう。 In a situation where multiple communication devices or measuring instruments are connected via TCP / IP (Transmission Control Protocol / Internet Protocol) and communication is performed between them, the master machine may recognize the IP address of the slave machine. Needed. The master machine here means a device that controls the slave machine under its control, and the slave machine is a machine that is placed under the control of the master machine without using its own control.
このようなマスター機とスレーブ機の間でアドレスの通知が行われるシステムの先行技術文献としては、下記のような特許文献が知られている。 The following patent documents are known as prior art documents of such a system in which an address is notified between a master machine and a slave machine.
次に、従来のアドレス取得システムについて図7を参照して説明する。マスター機131とスレーブ機141はTCP/IPネットワークと信号線12を介して接続されており、マスター機131はスレーブ機141を自己の支配下で制御する。TCP/IPネットワーク11はマスター機131とスレーブ機141の間でパケットのやり取りが行われるものであり、信号線12はスレーブ機141がマスター機131とタイミング同期して所定のアクションを行うために両者を接続するものである。
Next, a conventional address acquisition system will be described with reference to FIG. The
マスター機131は、通信部132、制御部134、機能選択部135、機能選択スイッチ136、アドレステーブル138、トリガ出力部139で構成されている。通信部132は自己のIPアドレス133をTCP/IPネットワーク11を介して出力する。
The
制御部134はアクション137の選択を機能選択部135に指示する他、スレーブ・アドレス・テーブル138に記憶されたスレーブ機のIPアドレスを参照し、通信部132に対して通信を行うべきスレーブ機を指示すると共に、通信内容を制御する。ここで、スレーブ・アドレス・テーブル138の内容はユーザが事前にマスター機に登録する。機能選択スイッチ136は機能選択部135によって選択され、スイッチが切り替えられる。
In addition to instructing the
トリガ信号出力部139は制御部134の指示に基づいて、機能選択部135が選択したアクション137のトリガ信号を、トリガ信号出力部139が、信号線12を介してスレーブ機141に出力する。ここで、トリガ信号出力部139が出力するトリガ信号は、アクションの内容を通知するものではなく、そのタイミングのみを伝達するものである。つまり、スレーブ機141が行うべきアクションの種類の通知はTCP/IPネットワーク11経由で行われる。
The trigger
スレーブ機141は、通信部142、制御部144、機能選択部145、機能選択スイッチ146で構成されている。通信部142はTCP/IPネットワークを介してマスター機131の通信部132から入力されたパケットを受信する。制御部144は通信部142の制御を行う他、アクション147の選択を機能選択部145に指示する。また、アクションの選択方法はTCP/IPネットワーク11を介してスレーブ機141に入力されたトリガ信号の内容を制御部144が判断することにより行われる。機能選択スイッチ146は機能選択部145によって選択され、スイッチが切り替えられる。
The
しかし、従来のアドレス取得システムでは、図8の様に、ユーザがスレーブ機のアドレスをいちいち把握してマスター機に入力する必要があり面倒である。また、図8のようにマスター機131とスレーブ機141、151のIPアドレスがDHCP(Dynamic Host Configuration Protocol)により動的に割り振られるネットワークで使用した場合、起動するたびにユーザがスレーブ機141、151にどのIPアドレスが割り振られたかを調べる必要があり、ユーザに多くの負担が必要である。
However, in the conventional address acquisition system, as shown in FIG. 8, the user needs to grasp the address of the slave device one by one and input it to the master device, which is troublesome. Also, as shown in FIG. 8, when used in a network in which the IP addresses of the
上記解決方法として、マスター機131がTCP/IPネットワーク11上で認識用のパケットをブロードキャストし、それに反応したスレーブ機の応答パケットによりスレーブ機を自動判断する方法が安易に考えられる。しかし、この方法だと、同一ネットワーク上に複数のマスター機とスレーブ機の組み合わせが存在する場合、誤動作する場合がある。
As a solution to the above problem, a method in which the
本発明は、これらの問題点に鑑みてなされたものであり、マスター機がスレーブ機のネットワーク上のIPアドレスをユーザの手間をかけることなく、自動で知る方法を提供し、且つその場合に同一ネットワーク上に複数のマスター機とスレーブ機の組み合わせが存在しても誤動作を起こさないことを目的とする。 The present invention has been made in view of these problems, and provides a method in which a master machine automatically knows an IP address on a network of a slave machine without taking the user's trouble, and in that case, the same is provided. The purpose is to prevent malfunction even when a combination of a plurality of master machines and slave machines exists on the network.
このような問題を解決するため、請求項1記載の発明は、
少なくとも一つのマスター機と複数のスレーブ機とがTCP/IPネットワーク及び信号線を介して接続されたアドレス取得システムにおいて、
前記マスター機は、
自己のIPアドレスをパケットに付加して前記TCP/IPネットワークを介して複数の前記スレーブ機にブロードキャストを送信する通信部と、
前記信号線を介してアドレス通知を含むアクションのトリガ信号を出力するトリガ信号出力部と、
前記通信部と前記トリガ信号出力部の動作を制御する制御部とを備え、
前記スレーブ機は、
前記IPアドレスが付加されたブロードキャストのパケットを受信すると共に、前記TCP/IPネットワークを介してブロードキャストの送信元アドレスに対して自己のIPアドレスを付加してリプライパケットを送信する通信部と、
この通信部の動作を制御すると共に、前記信号線を介してアドレス通知のタイミングに関するトリガ信号が入力されたことを判断する制御部とを備える。
In order to solve such a problem, the invention of claim 1
In an address acquisition system in which at least one master machine and a plurality of slave machines are connected via a TCP / IP network and a signal line,
The master machine is
A communication unit that adds its own IP address to a packet and transmits a broadcast to the plurality of slave devices via the TCP / IP network;
A trigger signal output unit that outputs a trigger signal of an action including an address notification via the signal line;
A control unit for controlling the operation of the communication unit and the trigger signal output unit,
The slave machine is
A communication unit that receives the broadcast packet to which the IP address is added and transmits a reply packet by adding its own IP address to the broadcast source address via the TCP / IP network;
And a control unit that controls the operation of the communication unit and determines that a trigger signal related to the timing of address notification is input via the signal line.
また、請求項2記載の発明は、請求項1記載のアドレス取得システムにおいて、
前記マスター機はアドレス通知を含む複数のアクションから所望のアクションを選択する機能選択部を備え、前記スレーブ機は前記マスター機の前記機能選択部により選択されたアクションに対応するアクションを選択する機能選択部を備えることを特徴とする請求項1記載のアドレス取得システム。
The invention according to claim 2 is the address acquisition system according to claim 1,
The master machine includes a function selection unit that selects a desired action from a plurality of actions including address notification, and the slave machine selects a function corresponding to the action selected by the function selection unit of the master machine. The address acquisition system according to claim 1, further comprising a unit.
また、請求項3記載の発明は、請求項1又は2記載のアドレス取得システムにおいて、前記マスター機は前記トリガ信号を出力してから所定の時間内に前記スレーブ機からリプライパケットを受信しない場合はタイムアウトしてそのアクションを終了する。 The invention according to claim 3 is the address acquisition system according to claim 1 or 2, wherein the master unit does not receive a reply packet from the slave unit within a predetermined time after outputting the trigger signal. Timeout and end the action.
請求項4前記の発明は、請求項1〜3のいずれかに記載のアドレス取得システムにおいて、
前記マスター機と前記スレーブ機が非同一サブネットワークにある場合、ブロードキャストの代わりにマルチキャストを利用する。
(4) In the address acquisition system according to any one of (1) to (3),
When the master device and the slave device are in non-identical subnetworks, multicast is used instead of broadcast.
このように、マスター機に、自己のIPアドレスをパケットに付加して複数のスレーブ機にブロードキャストを送信する通信部を備え、スレーブ機に、このブロードキャストの送信元アドレスに対して自己のIPアドレスを付加してリプライパケットを送信する通信部を備えたので、マスター機はスレーブ機のIPアドレスを認識することができる。 As described above, the master unit includes a communication unit that adds its own IP address to a packet and transmits a broadcast to a plurality of slave units, and the slave unit sets its own IP address with respect to the broadcast source address. In addition, since the communication unit that transmits the reply packet is provided, the master machine can recognize the IP address of the slave machine.
以下、本発明のアドレス取得システムの構成例について図1を参照して説明する。ただし、図7と同一の構成については同一の符号を付して説明を省略する。マスター機200は、通信部132、制御部134、機能選択部135、機能選択スイッチ136、アドレステーブル138、トリガ出力部139の他、アドレス通知実行部210で構成されている。
A configuration example of the address acquisition system of the present invention will be described below with reference to FIG. However, the same components as those in FIG. The
アドレス通知実行部210は、アクション137と同様に、アドレス通知を行う旨のアクションが用意され、機能選択スイッチ136で選択されることによりアドレス通知のアクションが行われるものである。また、アドレス通知実行部210は通信部132と接続され、制御部134の制御により機能選択部135がアドレス制御のアクションを選択した場合に、通信部132に対してアドレス通知を行う旨の信号を出力する。この信号を受けた通信部132は後述する方法でブロードキャストを行う。
Similar to the
スレーブ機300は、通信部142、制御部144、機能選択部145、機能選択スイッチ146の他、アドレス通知実行部310で構成されている。アドレス通知実行部310は、アドレス通知実行部210と同様に、アドレス通知を行う旨のアクションが用意され、機能選択スイッチ146で選択されることによりアドレス通信のアクションが行われるものである。
The
また、アドレス通知実行部310は通信部142と接続され、制御部144の制御により機能選択部145が機能選択スイッチ146を選択してアドレス制御のアクションが選択された場合に、通信部142に対してアドレス通知が行われる旨の信号を出力する。この信号を受けた通信部142は後述する方法でブロードキャストの受信待ちの状態となる。
The address
次に、図1の動作の概要を図2、及び図3を参照して説明する。ここで、図2は本発明によるアドレス取得システムの動作概要説明図である。また、図3は本発明によるアドレス取得システムの処理シーケンスである。マスター機200の電源投入時に機能選択スイッチ136の選択をアドレス通知実行部210に切り替えるようにする。
Next, the outline of the operation of FIG. 1 will be described with reference to FIGS. Here, FIG. 2 is a diagram for explaining the outline of the operation of the address acquisition system according to the present invention. FIG. 3 is a processing sequence of the address acquisition system according to the present invention. When the
つづいて、マスター機200がTCP/IPネットワーク11に対してブロードキャストを送信する。その後、マスター機200のトリガ信号出力部139が信号線12を介してアドレス通知に関するトリガ信号を出力する。トリガ信号を受けたスレーブ機300、400はマスター機200に対してブロードキャストパケットに対するリプライを返す。なお、マスター機200は図3の様に所定の時間内にリプライがスレーブ機300、400から来ない場合にはタイムアウトし処理を終了する。
Subsequently, the
以下、マスター機200とスレーブ機300、400の動作を、フローチャートを参照して説明する。図4は、本発明によるマスター機のフローチャートである。マスター機200は配下となるスレーブ機300、400のアドレスを知りたいときにネットワークにブロードキャストパケットを送信する(ステップA1)。このとき、ブロードキャストパケットの送信元アドレスにはマスターのアドレス情報(IPアドレス)を正しく入れておく。
Hereinafter, operations of the
次に、信号線で信号を送信する(ステップA2)。ネットワークでリプライパケットをタイムアウト時間まで待つ(ステップA3、ステップA4)。タイムアウト時間はステップA2でトリガ信号を送信してからの一定時間とする。 Next, a signal is transmitted through the signal line (step A2). The network waits for a reply packet until the timeout time (step A3, step A4). The timeout time is set to a fixed time after the trigger signal is transmitted in step A2.
マスター機200は、ステップA3でタイムアウト時間までに来たリプライパケットの送信元情報(IPアドレス)から配下となるスレーブ機300、400のネットワークアドレスを得ることができる(ステップA5)。このアドレスを制御部134の制御により、スレーブ・アドレス・テーブル138に記憶する。
The
次に、スレーブの動作について図5を参照して説明する。TCP/IPネットワーク11でブロードキャストパケットを受信するまでは待機状態とする(ステップB1)。TCP/IPネットワーク11でブロードキャストパケットを受信する(ステップB2)。通信部142は、ブロードキャストパケットを受信すると、制御部144の判断でマスター機200が配下となるスレーブ機のアドレスを探索していることを検知し、信号線12の信号待ち状態となる(ステップB3)。
Next, the operation of the slave will be described with reference to FIG. Until the broadcast packet is received in the TCP /
信号線12でアドレス通知のタイミングに関するトリガ信号を受信する(ステップB4)。通信部142は、TCP/IPネットワーク11でブロードキャストの送信元アドレスに対してリプライパケットを送信する(ステップB5)。このとき、リプライパケットの送信元アドレスにはリプライを送信するスレーブ機(自分)のアドレス情報を正しく入れておく。
A trigger signal related to the timing of address notification is received by the signal line 12 (step B4). The
このように、マスター機に、自己のIPアドレスをパケットに付加して複数のスレーブ機にブロードキャストを送信する通信部を備え、スレーブ機に、このブロードキャストの送信元アドレスに対して自己のIPアドレスを付加してリプライパケットを送信する通信部を備えたので、マスター機がスレーブ機のネットワーク上のIPアドレスをユーザの手間をかけることなく得ることができる。 As described above, the master unit includes a communication unit that adds its own IP address to a packet and transmits a broadcast to a plurality of slave units, and the slave unit sets its own IP address with respect to the broadcast source address. In addition, since the communication unit for transmitting the reply packet is provided, the master device can obtain the IP address on the network of the slave device without taking the user's trouble.
また、IPアドレスと信号線を利用してこれらのやりとりを行うので、同一ネットワーク上に複数のマスター機とスレーブ機の組み合わせが存在しても誤動作を起こさない。 Further, since these exchanges are performed using the IP address and the signal line, no malfunction occurs even if there are a plurality of combinations of master and slave devices on the same network.
次に、図6を参照して本発明の応用例を説明する。マスター機200とスレーブ500、600はそれぞれ別々のサブネットワークに配置されているものとする。マスター機200とスレーブ機500、600が同一サブネットワークになく、ブロードキャストが届かない場合、ブロードキャストの代わりにマルチキャストを利用する。ブロードキャストは同じセグメントにある全てのノードに送信を表すものである。従って、サブネットワークが異なる場合には使用することができない。そこで、ブロードキャストの代わりにマルチキャストを用いる。
Next, an application example of the present invention will be described with reference to FIG. Assume that the
この様に、ブロードキャストの代わりにマルチキャストを用いるので、マスター機200とスレーブ機500、600が同一サブネットワークにない場合でも、マスター機200は配下となるスレーブ機のIPアドレスを得ることができる。
In this way, since multicast is used instead of broadcast, even if the
11 TCP/IPネットワーク
12 信号線
132、142 通信部
133、143 IPアドレス
134、144 制御部
135、145 機能選択部
136、146 機能選択スイッチ
137、147 アクション
138 スレーブアドレステーブル
139 トリガ信号出力部
200 マスター機
210、310 アドレス通知実行部
300 スレーブ機
11 TCP / IP network 12
Claims (4)
前記マスター機は、
自己のIPアドレスをパケットに付加して前記TCP/IPネットワークを介して複数の前記スレーブ機にブロードキャストを送信する通信部と、
前記信号線を介してアドレス通知を含むアクションのトリガ信号を出力するトリガ信号出力部と、
前記通信部と前記トリガ信号出力部の動作を制御する制御部とを備え、
前記スレーブ機は、
前記IPアドレスが付加されたブロードキャストのパケットを受信すると共に、前記TCP/IPネットワークを介してブロードキャストの送信元アドレスに対して自己のIPアドレスを付加してリプライパケットを送信する通信部と、
この通信部の動作を制御すると共に、前記信号線を介してアドレス通知のタイミングに関するトリガ信号が入力されたことを判断する制御部とを備えたことを特徴とするアドレス取得システム。 In an address acquisition system in which at least one master machine and a plurality of slave machines are connected via a TCP / IP network and a signal line,
The master machine is
A communication unit that adds its own IP address to a packet and transmits a broadcast to the plurality of slave devices via the TCP / IP network;
A trigger signal output unit that outputs a trigger signal of an action including an address notification via the signal line;
A control unit for controlling the operation of the communication unit and the trigger signal output unit,
The slave machine is
A communication unit that receives the broadcast packet to which the IP address is added and transmits a reply packet by adding its own IP address to the broadcast source address via the TCP / IP network;
An address acquisition system comprising: a control unit that controls the operation of the communication unit and determines that a trigger signal related to the timing of address notification is input via the signal line.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007144319A JP2008301140A (en) | 2007-05-31 | 2007-05-31 | Address acquisition system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007144319A JP2008301140A (en) | 2007-05-31 | 2007-05-31 | Address acquisition system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008301140A true JP2008301140A (en) | 2008-12-11 |
Family
ID=40174241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007144319A Pending JP2008301140A (en) | 2007-05-31 | 2007-05-31 | Address acquisition system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008301140A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113949689A (en) * | 2021-09-30 | 2022-01-18 | 珠海格力电器股份有限公司 | Multi-module lower computer address automatic allocation method and device and multi-module air conditioning system |
CN114097588A (en) * | 2021-10-29 | 2022-03-01 | 瀚云科技有限公司 | Networking method and device for irrigation device |
-
2007
- 2007-05-31 JP JP2007144319A patent/JP2008301140A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113949689A (en) * | 2021-09-30 | 2022-01-18 | 珠海格力电器股份有限公司 | Multi-module lower computer address automatic allocation method and device and multi-module air conditioning system |
CN114097588A (en) * | 2021-10-29 | 2022-03-01 | 瀚云科技有限公司 | Networking method and device for irrigation device |
CN114097588B (en) * | 2021-10-29 | 2023-10-31 | 瀚云科技有限公司 | Networking method and device of irrigation device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2011130205A (en) | Information processing apparatus with multiple communication interfaces and control method | |
KR20140027593A (en) | Home networking system and method for network setting method of router in the home network | |
JP6381211B2 (en) | Image forming apparatus and control method thereof | |
JP2019036923A (en) | Information processing apparatus, program, and control method | |
JP2009021921A (en) | INFORMATION PRESENTATION SYSTEM FOR TERMINAL CORRESPONDING TO IPv4/IPv6 DUAL STACK | |
JP2015026917A (en) | Communication device | |
KR101606831B1 (en) | Image forming apparatus, host device and method for controlling print | |
JP2008301140A (en) | Address acquisition system | |
JP6037446B2 (en) | Network device and method for controlling network device | |
US8509402B2 (en) | Communication device | |
JP2005136591A (en) | Method and program of setting communication environment | |
JP2006197051A (en) | Network communication control unit and method | |
JP2011118664A (en) | Communication apparatus, control method thereof and program | |
US20160301755A1 (en) | Method and apparatus for controlling scan of slave devices | |
JP5089476B2 (en) | Communication start system | |
JP5334202B2 (en) | Communication relay device, communication relay method, communication relay program | |
JP2007235826A (en) | Ip address allocation system and method | |
JP2006211347A (en) | Radio communication system | |
JP6035034B2 (en) | Communication control device and communication control program | |
JP2020522910A (en) | Handover processing | |
JP7218613B2 (en) | Communication device and communication method | |
JP2013175938A (en) | Communication apparatus, communication method and program | |
JP2005174195A (en) | Method, apparatus, and program for automatic configuration of network device | |
JP6577718B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM | |
JP2012065151A (en) | Communication terminal, communication method, relay device and relay method |