JP6795645B2 - Wireless communication system and communication distance extension method - Google Patents

Wireless communication system and communication distance extension method Download PDF

Info

Publication number
JP6795645B2
JP6795645B2 JP2019058229A JP2019058229A JP6795645B2 JP 6795645 B2 JP6795645 B2 JP 6795645B2 JP 2019058229 A JP2019058229 A JP 2019058229A JP 2019058229 A JP2019058229 A JP 2019058229A JP 6795645 B2 JP6795645 B2 JP 6795645B2
Authority
JP
Japan
Prior art keywords
unit
repeater
logical address
host device
address
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.)
Active
Application number
JP2019058229A
Other languages
Japanese (ja)
Other versions
JP2020161937A (en
Inventor
鈴木 潤一
潤一 鈴木
龍 岡田
龍 岡田
敦史 三戸
敦史 三戸
正美 若林
正美 若林
Original Assignee
バックス情報システム株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by バックス情報システム株式会社 filed Critical バックス情報システム株式会社
Priority to JP2019058229A priority Critical patent/JP6795645B2/en
Publication of JP2020161937A publication Critical patent/JP2020161937A/en
Application granted granted Critical
Publication of JP6795645B2 publication Critical patent/JP6795645B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

本発明は、親機と複数の子機との間で無線による通信を行う無線通信システムに関し、特に、ホスト装置と親機との間に中継機を利用した場合の通信距離の延長方法に関する。 The present invention relates to a wireless communication system that wirelessly communicates between a master unit and a plurality of slave units, and more particularly to a method of extending a communication distance when a repeater is used between a host device and a master unit.

親機と複数の子機とから構成される無線通信システムにおいて、子機の電源として電池を使用する場合、可能な限り消費電力を抑えて、電池寿命を長くすることが望まれる。例えば、特許文献1の電池駆動型無線通信システムでは、親機が複数の子機の各々をアクセスする時間と子機のスリープ時間を同期させ、必要な時間帯だけ子機のスリープ時間を解除し、子機のバッテリーの消費電力を節約している。 When a battery is used as a power source for a slave unit in a wireless communication system composed of a master unit and a plurality of slave units, it is desired to reduce power consumption as much as possible and extend the battery life. For example, in the battery-powered wireless communication system of Patent Document 1, the time when the master unit accesses each of the plurality of slave units and the sleep time of the slave unit are synchronized, and the sleep time of the slave unit is released only during the required time zone. , Saving the power consumption of the battery of the slave unit.

特許第6251363号公報Japanese Patent No. 6251363

特許文献1に示されるように、親機1台と複数の子機とから構成される無線通信システムでは、親機や複数の子機のそれぞれに無線モジュールが搭載され、親機と子機の無線モジュール間で無線通信を行っている。親機は、子機にクエリを送信し、子機は、そのクエリに応答するメッセージを親機に送信する。例えば、親機からのクエリは、子機に搭載されたセンサの検出データのリクエストを含む。 As shown in Patent Document 1, in a wireless communication system composed of one master unit and a plurality of slave units, a wireless module is mounted on each of the master unit and the plurality of slave units, and the master unit and the slave units are equipped with a wireless module. Wireless communication is performed between wireless modules. The master unit sends a query to the slave unit, and the slave unit sends a message in response to the query to the master unit. For example, the query from the master unit includes a request for detection data of a sensor mounted on the slave unit.

このような無線通信システムを利用する市場では、長距離の無線通信が求められている。しかし、公称の無線モジュールの通信距離は、あくまでも「屋外見通し」が条件であり、設置される環境によって通信距離は大幅に変化する。例えば、子機を山奥に設置した場合、街中の監視拠点に無線信号が届かないという問題もあった。 In the market using such a wireless communication system, long-distance wireless communication is required. However, the communication distance of the nominal wireless module is only subject to "outdoor visibility", and the communication distance varies greatly depending on the environment in which it is installed. For example, when the slave unit is installed in the mountains, there is also a problem that the wireless signal does not reach the monitoring base in the city.

従来の無線通信を延長する方式として、Zigbee等の無線センサネットワークで行われている「アドホック方式」や親機と子機間にリピータを設置したものがある。アドホック方式は、各端末(以降、子機という)自身が自律的にルーティングを行うマルチホップ通信である。また、親機と子機間のリピータ設置方式は、単に親機と子機間の通信を中継機により中継するものである。 As a method of extending conventional wireless communication, there are an "ad hoc method" used in a wireless sensor network such as Zigbee and a repeater installed between a master unit and a slave unit. The ad hoc system is a multi-hop communication in which each terminal (hereinafter referred to as a slave unit) autonomously routes. Further, the repeater installation method between the master unit and the slave unit simply relays the communication between the master unit and the slave unit by the repeater.

アドホック方式は、ある時点で複数の子機が同時通信をする可能性があり、無線の通信品質が大幅に低下するおそれがある。子機は、同時通信で通信が衝突した場合、リトライを繰り返すので、子機が電池駆動ならば、電池消耗の大きな要因となる。また、親機と子機間のリピータ設置方式は、リピータの設置台数が2台までとなっているものが多く、それ程、通信距離の延長は望めない。 In the ad hoc method, there is a possibility that a plurality of slave units may communicate with each other at a certain time, and the wireless communication quality may be significantly deteriorated. If the handset is battery-powered, it will be a major factor in battery consumption because the handset will repeat retries when communication conflicts occur during simultaneous communication. In many cases, the number of repeaters installed between the master unit and the slave unit is limited to two, and the communication distance cannot be expected to be extended so much.

本発明は、上記した従来技術の課題を解決するものであり、無線による通信距離を容易に延長することができる無線通信システムおよび通信方法を提供することを目的とする。 An object of the present invention is to solve the above-mentioned problems of the prior art, and to provide a wireless communication system and a communication method capable of easily extending a wireless communication distance.

本発明に係る通信方法は、複数の子機と、複数の子機と無線通信を行う中継親機と、当該中継親機と無線通信を行う少なくとも1つの中継機と、当該中継機と無線通信を行うホスト装置とを備えた無線通信システムにおけるものであって、中継親機、中継機およびホスト装置間の上位機から下位機に対して、当該上位機のアドレスと算出された下位機のアドレスとを含むデータをブロードキャスト送信する第1のステップと、ブロードキャスト送信されたデータを受信した下位機が当該データに含まれる下位機のアドレスを自局のアドレスに設定する第2のステップと、下位機から上位機に対して、前記データに含まれる上位機のアドレスを用いて下位機のアドレスを含むデータをユニキャスト送信する第3のステップと、ユニキャスト送信されたデータを受信した上位機が当該データに含まれる下位機のアドレスを設定する第4のステップとを含み、第1ないし第4のステップにより上位機と下位機との間の接続関係を確立し、複数の子機、中継親機、中継機およびホスト装置間での通信を可能にする。 The communication method according to the present invention includes a plurality of slave units, a relay master unit that performs wireless communication with the plurality of slave units, at least one repeater that performs wireless communication with the relay master unit, and wireless communication with the repeater. In a wireless communication system equipped with a host device that performs data, the address of the higher-level machine and the calculated address of the lower-level machine are addressed to the higher-level unit to the lower-level unit between the relay master unit, the repeater, and the host device. The first step of broadcasting data including the above, the second step of the lower machine receiving the broadcast transmitted data setting the address of the lower machine included in the data to the address of its own station, and the lower machine. The third step of unicasting the data including the address of the lower machine to the higher machine using the address of the higher machine included in the data, and the higher machine receiving the unicast transmitted data are concerned. Including the fourth step of setting the address of the lower unit included in the data, the connection relationship between the upper unit and the lower unit is established by the first to fourth steps, and a plurality of slave units and relay master units are used. , Enables communication between repeaters and host devices.

ある実施態様では、ホスト装置は、予め設定された中継機の台数に基づき下位機である中継機のアドレスを算出する。ある実施態様では、無線通信システムにおける子機1台当たりのデータ処理は、中継親機、子機、中継親機、中継機、ホスト装置、中継機、中継親機を1サイクルとする。ある実施態様では、中継親機は、選択された子機にデータを送信し、当該データを受信した子機から当該子機に関するデータを受け取り、受信した子機に関するデータを中継機に送信し、中継機は、受信した子機に関するデータをホスト装置に送信し、ホスト装置は、子機に関するデータを受け取り、当該子機に関するデータに基づき新たな子機に関するデータを生成し、当該新たな子機に関するデータを中継機に送信し、中継機は、受信した新たな子機に関するデータを中継親機に送信し、中継親機は、受信した新たな子機に関するデータに基づき前記選択された子機にデータを送信する。ある実施態様では、中継親機、中継機およびホスト装置は、それぞれ共通の無線モジュールを含み、無線モジュールによる通信可能な距離をL1としたとき、中継親機、中継機およびホスト装置は、距離L1よりも小さい間隔で設置され、ホスト装置がブロードキャスト送信するとき、1つの中継局が受信可能な距離に存在する。 In one embodiment, the host device calculates the address of the subordinate repeater based on a preset number of repeaters. In one embodiment, the data processing per slave unit in the wireless communication system includes a relay master unit, a slave unit, a relay master unit, a repeater, a host device, a repeater, and a relay master unit in one cycle. In one embodiment, the relay master unit transmits data to the selected slave unit, receives data about the slave unit from the slave unit that received the data, and transmits data about the received slave unit to the repeater. The repeater transmits the received data about the slave unit to the host device, the host device receives the data about the slave unit, generates the data about the new slave unit based on the data about the slave unit, and the new slave unit. The data related to the new slave unit is transmitted to the repeater, the repeater transmits the data related to the new slave unit received to the relay master unit, and the relay master unit transmits the data related to the new slave unit received. Send data to. In one embodiment, the relay master unit, the repeater, and the host device each include a common wireless module, and when the communicable distance by the wireless module is L1, the relay master unit, the repeater, and the host device have a distance L1. Installed at smaller intervals, one relay station is at a receivable distance when the host device broadcasts.

本発明に係る無線通信システムは、複数の子機と、複数の子機と無線通信を行う中継親機と、当該中継親機と無線通信を行う少なくとも1つの中継機と、当該中継機と無線通信を行うホスト装置とを備えたものであって、ホスト装置は、予め設定された中継機の台数に基づきホスト装置の直下の中継機のアドレスを算出する算出手段と、算出された中継機のアドレスとホスト装置の自局のアドレスとを含むデータをブロードキャスト送信する送信手段とを含み、前記直下の中継機は、ブロードキャスト送信されたデータを受信する受信手段と、受信されたデータに含まれる算出された中継機のアドレスを自局のアドレスに設定し、かつ設定された自局のアドレスとホスト装置のアドレスとを保持する保持手段と、ホスト装置のアドレスを用いて前記直下の中継機のアドレスを含むデータをホスト装置にユニキャスト送信する送信手段とを含み、ホスト装置はさらに、前記直下の中継機からユニキャスト送信されたデータに含まれる中継機のアドレスを前記直下の中継機のアドレスとして登録する。 The wireless communication system according to the present invention includes a plurality of slave units, a relay master unit that performs wireless communication with the plurality of slave units, at least one repeater that performs wireless communication with the relay master unit, and the repeater and wireless communication. It is equipped with a host device that performs communication, and the host device is a calculation means that calculates the address of the repeater directly under the host device based on the preset number of repeaters, and the calculated repeater. A transmission means for broadcasting data including an address and the address of the host device's own station is included, and the repeater directly under the broadcast means a receiving means for receiving the broadcast-transmitted data and a calculation included in the received data. The address of the repeater directly under the above is set by setting the address of the repeater to the address of the own station and using the holding means for holding the set address of the own station and the address of the host device and the address of the host device. Including a transmission means for unicast transmitting data including the above to the host device, the host device further uses the address of the repeater included in the data unicast transmitted from the relay directly under the host device as the address of the repeater directly under the host device. to register.

ある実施態様では、前記直下の中継機は、下位の中継機のアドレスを算出する算出手段と、算出された下位の中継機のアドレスと前記直下の中継機の自局のアドレスとを含むデータをブロードキャスト送信する送信手段とを含み、前記下位の中継機は、ブロードキャスト送信されたデータを受信する受信手段と、受信されたデータに含まれる算出された下位の中継機のアドレスを自局のアドレスに設定し、かつ設定された自局のアドレスと前記直下の中継機のアドレスとを保持する保持手段と、前記直下の中継機のアドレスを用いて前記下位の中継機のアドレスを含むデータを前記直下の中継機にユニキャスト送信する送信手段とを含む。ある実施態様では、前記下位の中継機は、中継親機である。ある実施態様では、ホスト装置、中継機および中継親機は、共通のハードウエアから構成され、共通のハードウエアは、メモリ、タイマー、無線モジュールおよびソフトウエアを実行するための制御部を含む。 In one embodiment, the direct relay unit contains data including a calculation means for calculating the address of the lower repeater, the calculated lower relay address, and the own station address of the lower repeater. The lower repeater includes the transmission means for broadcast transmission, and the lower repeater sets the address of the receiving means for receiving the broadcast transmitted data and the calculated lower repeater address included in the received data as its own address. Using the holding means for holding the set and set address of the own station and the address of the repeater directly underneath, and the address of the repeater directly underneath, data including the address of the lower repeater is directly underneath. Includes a transmission means for unicast transmission to the repeater of. In some embodiments, the lower repeater is a relay master. In some embodiments, the host device, repeater, and relay master are composed of common hardware, which includes a memory, a timer, a wireless module, and a control unit for executing software.

本発明によれば、中継親機とホスト装置との間に1つまたは複数の中継機を設置した場合に、ホスト装置側の上位機から下位機に向けて順に自動的にアドレスを設定することができる。このため、任意の数の中継機を設置した場合であっても、ホスト装置と中継親機間の中継機のアドレスの設定または割り当てを容易に行うことができ、これにより、子機とホスト装置間の無線による通信距離の延長を容易に実現することができる。 According to the present invention, when one or more repeaters are installed between the relay master unit and the host device, the addresses are automatically set in order from the higher-level unit to the lower-level unit on the host device side. Can be done. Therefore, even when an arbitrary number of repeaters are installed, the address of the repeater between the host device and the relay master unit can be easily set or assigned, whereby the slave unit and the host device can be easily set. It is possible to easily extend the communication distance by radio between them.

本発明の実施例に係る無線通信センサシステムの全体構成を示す図である。It is a figure which shows the whole structure of the wireless communication sensor system which concerns on embodiment of this invention. 本発明の実施例に係る親機の構成を示すブロック図である。It is a block diagram which shows the structure of the master unit which concerns on embodiment of this invention. 本発明の第1の実施例に係る親機の通信制御プログラムの機能的な構成例を示す図である。It is a figure which shows the functional configuration example of the communication control program of the master unit which concerns on 1st Embodiment of this invention. クエリ情報および子機からの応答メッセージ情報のフォーマットを例示する図である。It is a figure which illustrates the format of the query information and the response message information from a slave unit. スリープ時間に関するファンクションコードの機能を示す図である。It is a figure which shows the function of the function code about a sleep time. 本発明の第1の実施例に係る子機の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the handset which concerns on 1st Embodiment of this invention. 本発明の第1の実施例に係る子機の要部の回路構成を示す図である。It is a figure which shows the circuit structure of the main part of the handset which concerns on 1st Embodiment of this invention. 本発明の第1の実施例に係る制御部の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the control part which concerns on 1st Embodiment of this invention. 本発明の第2の実施例に係る中継器を利用した無線通信センサシステムの全体構成を示す図である。It is a figure which shows the whole structure of the wireless communication sensor system using the repeater which concerns on 2nd Embodiment of this invention. 本発明の第2の実施例に係る中継親機、中継機およびホスト装置に共通のハードウエアの構成を示す図である。It is a figure which shows the configuration of the hardware common to the relay master unit, a repeater, and a host device which concerns on 2nd Embodiment of this invention. 本発明の実施例による2つの中継機を利用したときの無線通信センサシステムの構成を示す図である。It is a figure which shows the structure of the wireless communication sensor system when two repeaters according to the Example of this invention are used. 本発明の実施例による2つの中継機を利用したときのDAネゴシエーションシーケンスを示すフローである。It is a flow which shows the DA negotiation sequence when two repeaters according to the Example of this invention are used. 本発明の実施例による2つの中継機を利用したときの通常動作時のシーケンスを示すフローである。It is a flow which shows the sequence at the time of a normal operation at the time of using two repeaters according to the Example of this invention. 本発明の実施例による2つの中継機を利用したときの通常動作時のシーケンスを示すフローである。It is a flow which shows the sequence at the time of a normal operation at the time of using two repeaters according to the Example of this invention. 本発明の第2の実施例によるDAネゴシエーション時のデータ形式を説明する図である。It is a figure explaining the data format at the time of DA negotiation by the 2nd Example of this invention. 本発明の第2の実施例による通常通信時のデータ形式を説明する図である。It is a figure explaining the data format at the time of a normal communication by 2nd Embodiment of this invention. 本発明の実施例による1つの中継機を利用したときの無線通信センサシステムの構成を示す図である。It is a figure which shows the structure of the wireless communication sensor system when one repeater according to the Example of this invention is used. 本発明の実施例による1つの中継機を利用したときのDAネゴシエーションシーケンスを示すフローである。It is a flow which shows the DA negotiation sequence when one repeater by the Example of this invention is used. 本発明の実施例による1つの中継機を利用したときの通常動作時のシーケンスを示すフローである。It is a flow which shows the sequence at the time of a normal operation when one repeater by the Example of this invention is used. 本発明の実施例による中継機無しのときの無線通信センサシステムの構成を示す図である。It is a figure which shows the structure of the wireless communication sensor system when there is no repeater according to the Example of this invention. 本発明の実施例による中継機無しのDAネゴシエーションおよび通常動作時のシーケンスを示すフローである。It is a flow which shows the DA negotiation without a repeater by the Example of this invention, and the sequence at the time of a normal operation.

次に、本発明の実施の形態について、図面を参照して詳細に説明する。本発明に係る無線通信システムは、電池により駆動される複数の子機と、複数の子機と双方向の無線通信を行う親機と、親機に接続された制御装置(ホスト装置)とを含んで構成される。本発明の無線通信システムは、好ましくは、複数の子機によって検出された情報を監視する監視システムであることができる。子機は、遠隔地に配置され、遠隔地の種々の情報を検出することが可能である。例えば、子機は、温度センサ、湿度センサ、水位センサ、土壌水分センサ、雨量計、圧力センサ、気圧センサ等を含むことができる。親機は、複数の子機と双方向の無線通信を行い、複数の子機に情報を送信し、あるいは複数の子機から情報を受信する。親機はさらに、無線通信システムの全体を制御する制御装置に接続され、制御装置からの命令等に応じて複数の子機に指示を送信することができる。 Next, an embodiment of the present invention will be described in detail with reference to the drawings. The wireless communication system according to the present invention comprises a plurality of battery-powered slave units, a master unit that performs two-way wireless communication with the plurality of slave units, and a control device (host device) connected to the master unit. Consists of including. The wireless communication system of the present invention can preferably be a monitoring system that monitors information detected by a plurality of slave units. The slave unit is located in a remote location and can detect various information in the remote location. For example, the slave unit can include a temperature sensor, a humidity sensor, a water level sensor, a soil moisture sensor, a rainfall meter, a pressure sensor, a pressure sensor, and the like. The master unit performs two-way wireless communication with a plurality of slave units, transmits information to the plurality of slave units, or receives information from the plurality of slave units. The master unit is further connected to a control device that controls the entire wireless communication system, and can transmit an instruction to a plurality of slave units in response to a command or the like from the control device.

図1は、本発明の実施例に係る無線通信センサシステムの全体構成を示す図である。本実施例に係る無線通信センサシステム1は、親機10と、複数の子機20a、20b、20c、…20n(nは、2以上の整数)と、ホスト装置30とを含んで構成される。なお、子機20a〜20nの全体を総称するときは、子機20という。 FIG. 1 is a diagram showing an overall configuration of a wireless communication sensor system according to an embodiment of the present invention. The wireless communication sensor system 1 according to the present embodiment includes a master unit 10, a plurality of slave units 20a, 20b, 20c, ... 20n (n is an integer of 2 or more), and a host device 30. .. When the whole of the slave units 20a to 20n is collectively referred to as the slave unit 20.

親機10は、複数の子機20の各々との間で無線(例えば、920MHzの周波数帯)による双方向通信を行う。親機10が子機20aに対してクエリ(問い合わせ)Qaを送信すると、子機20aは、クエリQaに対する応答メッセージRaを返信する。同様に、親機10が子機20bに対してクエリQbを送信すると、子機20bは、クエリQbに対する応答メッセージRbを返信する。本実施例のシステムでは、親機10が子機20をアクセスする場合には、予め決められた数nの子機20に対して、予め決められた順序(例えば、アドレスの若い順)で全ての子機20a、20b、20c、…20nにクエリQa、Qb、Qc、…Qnを送信し、各子機から応答メッセージを受信する。子機20は、親機からのアクセスがある期間に同期してウェークアップし、極力、電池が消耗されることを抑制する。また、仮に一部の子機が切断された場合であっても、親機10は、切断された子機をスキップすることなく、予め決められた数nの子機20をアクセスすることで、親機と子機との間の同期が失われないようにする。 The master unit 10 performs two-way communication wirelessly (for example, a frequency band of 920 MHz) with each of the plurality of slave units 20. When the master unit 10 transmits a query (inquiry) Qa to the slave unit 20a, the slave unit 20a returns a response message Ra for the query Qa. Similarly, when the master unit 10 transmits the query Qb to the slave unit 20b, the slave unit 20b returns a response message Rb to the query Qb. In the system of this embodiment, when the master unit 10 accesses the slave unit 20, all of the slave units 20 having a predetermined number n are in a predetermined order (for example, in ascending order of address). The queries Qa, Qb, Qc, ... Qn are transmitted to the slave units 20a, 20b, 20c, ... 20n, and the response message is received from each slave unit. The slave unit 20 wakes up in synchronization with a certain period of access from the master unit, and suppresses battery consumption as much as possible. Further, even if a part of the slave units is disconnected, the master unit 10 can access a predetermined number of slave units 20 without skipping the disconnected slave units. Make sure that the synchronization between the master unit and the slave unit is not lost.

子機20は、親機10からクエリQを受信すると、それに対する応答メッセージRを作成し、これを親機10に送信する。子機20は、電池(バッテリー)により動作され、必要最低限の動作のみを行うスリープ状態(低消費電力状態)と、スリープ状態からウェークアップされた通常の動作状態とを有する。通常の動作状態では、子機に含まれる全ての機能が完全に動作することが可能であり、低消費電力情報では、子機に含まれる一部の機能が動作可能になる。 When the slave unit 20 receives the query Q from the master unit 10, it creates a response message R in response to the query Q and transmits the response message R to the master unit 10. The slave unit 20 has a sleep state (low power consumption state), which is operated by a battery and performs only the minimum necessary operation, and a normal operation state, which is waked up from the sleep state. In the normal operating state, all the functions included in the slave unit can be fully operated, and in the low power consumption information, some functions included in the slave unit can be operated.

ホスト装置30は、親機10に対して有線または無線により接続される。ホスト装置30は、コンピュータ装置、ノートパソコン、携帯型通信端末、タブレット型通信端末等であることができる。ホスト装置30は、システム全体を監視し、または制御するため、親機10に対して必要な指示を与え、また親機10から子機20の情報を収集する。ホスト装置30は、例えば、インターネットまたはイントラネット等のネットワークを介して親機10に接続されてもよい。 The host device 30 is connected to the master unit 10 by wire or wirelessly. The host device 30 can be a computer device, a laptop computer, a portable communication terminal, a tablet communication terminal, or the like. The host device 30 gives necessary instructions to the master unit 10 and collects information on the slave unit 20 from the master unit 10 in order to monitor or control the entire system. The host device 30 may be connected to the master unit 10 via a network such as the Internet or an intranet.

図2は、本実施例に係る親機の構成の一例を示すブロック図である。親機10は、入力部100(例えば、親機10に取り付けられた各種スイッチ類やボタン、タッチパネル入力、電源のオン/オフスイッチ等)、無線通信部110、外部接続部120、記憶部130、表示部140および制御部150を含んで構成される。なお、この構成は例示であり、親機は、他の構成を含むものであっても良い。 FIG. 2 is a block diagram showing an example of the configuration of the master unit according to the present embodiment. The master unit 10 includes an input unit 100 (for example, various switches and buttons attached to the master unit 10, touch panel input, power on / off switch, etc.), a wireless communication unit 110, an external connection unit 120, and a storage unit 130. It includes a display unit 140 and a control unit 150. It should be noted that this configuration is an example, and the master unit may include another configuration.

無線通信部110は、子機20との間で双方向の無線通信を行うための無線モジュール(以下、WMと呼ぶことがある)を含む。親機10と子機20の間の無線通信は、親機10から複数の子機20に対してアクセス可能なプロトコルで行われ、例えば、Modbus(登録商標)プロトコルの通信方式が採用される。この通信方式では、親機10だけがクエリ(問い合わせ)を発行することができ、親機10は、アドレス指定された子機にクエリを発行するユニキャスト通信を行う。子機の各々は、親機からのクエリに対して応答メッセージを作成し、これを親機10に送信する。 The wireless communication unit 110 includes a wireless module (hereinafter, may be referred to as WM) for bidirectional wireless communication with the slave unit 20. Wireless communication between the master unit 10 and the slave unit 20 is performed by a protocol that can be accessed from the master unit 10 to the plurality of slave units 20, and for example, a communication method of the Modbus (registered trademark) protocol is adopted. In this communication method, only the master unit 10 can issue a query (inquiry), and the master unit 10 performs unicast communication for issuing a query to the slave unit whose address is specified. Each of the slave units creates a response message in response to a query from the master unit and sends this to the master unit 10.

外部接続部120は、ホスト装置30との有線または無線の接続を確立したり、その他のネットワーク等との接続を確立する。親機10とホスト装置30との接続は、子機20との無線通信と非同期で行われる。有線接続は、例えば、RS232Cケーブル、USBケーブル、有線LANであることができ、無線接続は、WiFi(登録商標)、WiMAX、無線LAN、Bluetooth(登録商標)であることができる。 The external connection unit 120 establishes a wired or wireless connection with the host device 30, or establishes a connection with another network or the like. The connection between the master unit 10 and the host device 30 is performed asynchronously with the wireless communication with the slave unit 20. The wired connection can be, for example, an RS232C cable, a USB cable, or a wired LAN, and the wireless connection can be WiFi (registered trademark), WiMAX, wireless LAN, or Bluetooth (registered trademark).

記憶部130は、制御部150が実行するプログラム、子機20へのクエリ、子機20からの応答メッセージ、ホスト装置30からの命令等などの種々のデータを格納することができる。表示部140は、親機10に取り付けられた液晶ディスプレイ等の表示媒体であり、親機10の状態を表す警告メッセージ、子機20から応答メッセージ、外部機器との接続情報等を表示することができる。 The storage unit 130 can store various data such as a program executed by the control unit 150, a query to the slave unit 20, a response message from the slave unit 20, an instruction from the host device 30, and the like. The display unit 140 is a display medium such as a liquid crystal display attached to the master unit 10, and can display a warning message indicating the state of the master unit 10, a response message from the slave unit 20, connection information with an external device, and the like. it can.

制御部150は、好ましい態様では、マイクロコントローラまたはマイクロプロセッサ(MPU)等から構成され、制御部150は、親機10と子機20との双方向の無線通信を制御する通信制御プログラムまたはシーケンスを実行する。 In a preferred embodiment, the control unit 150 is composed of a microcontroller, a microprocessor (MPU), or the like, and the control unit 150 provides a communication control program or sequence for controlling bidirectional wireless communication between the master unit 10 and the slave unit 20. Run.

図3は、制御部150が実行する通信制御プログラムまたはシーケンスの機能的な構成を示す図である。通信制御プログラム(または通信制御シーケンス)200は、クエリ作成部210、スリープ情報設定部220、クエリ送信部230、応答メッセージ受信部240、子機情報提供部250を含む。 FIG. 3 is a diagram showing a functional configuration of a communication control program or sequence executed by the control unit 150. The communication control program (or communication control sequence) 200 includes a query creation unit 210, a sleep information setting unit 220, a query transmission unit 230, a response message reception unit 240, and a slave unit information provision unit 250.

クエリ作成部210は、子機20の各々に発行するクエリを作成する。図4(A)に、クエリの伝送フォーマットを示す。クエリには、同図に示すように、デバイスアドレスと、ファンクションコードと、クエリデータと、エラーチェックとが含まれる。 The query creation unit 210 creates a query to be issued to each of the slave units 20. FIG. 4A shows a query transmission format. The query includes a device address, a function code, query data, and an error check, as shown in the figure.

デバイスアドレスは、子機20の各々に割り当てられた固有の識別情報であり、親機は、子機20をアクセスするとき、子機のデバイスアドレスを指定する。例えば、図1の子機20aにクエリを送信する場合には、子機20aのデバイスアドレスを指定し、子機20bにクエリを送信する場合には、子機20bのデバイスアドレスを指定する。 The device address is unique identification information assigned to each of the slave units 20, and the master unit specifies the device address of the slave unit when accessing the slave unit 20. For example, when sending a query to the slave unit 20a of FIG. 1, the device address of the slave unit 20a is specified, and when sending a query to the slave unit 20b, the device address of the slave unit 20b is specified.

ファンクションコードは、例えば、Modbus規格による種々のコマンド等が含まれる。例えば、子機の出力のオン/オフ状態を読み出すコマンド、子機の入力のオン/オフ状態を読み出すコマンド、子機のレジスタが保持する内容を読み出すコマンド、子機のレジスタの内容を変更するコマンド等がある。さらに本実施例では、図5に示すように独自のファンクションコードFnを備えている。ファンクションコードFnは、子機にスリープ時間の設定指示とポーリングを行うコマンドである。このファンクションコードFnは、親機10が子機20にアクセスする場合には、常に含まれる。 The function code includes, for example, various commands according to the Modbus standard. For example, a command to read the on / off state of the output of the slave unit, a command to read the on / off state of the input of the slave unit, a command to read the contents held in the register of the slave unit, a command to change the contents of the register of the slave unit. And so on. Further, in this embodiment, as shown in FIG. 5, a unique function code Fn is provided. The function code Fn is a command for instructing the slave unit to set the sleep time and polling. This function code Fn is always included when the master unit 10 accesses the slave unit 20.

クエリデータには、種々の情報を含めることができ、例えば、子機のセンサのしきい値の設定や変更に加え、ファンクションコードFnのためのスリープ時間を設定するために必要なスリープ情報が含まれる。エラーチェックは、伝送データのエラーの検出・訂正を行うための情報が含まれる。 The query data can include various information, for example, the sleep information necessary for setting or changing the threshold value of the sensor of the slave unit and setting the sleep time for the function code Fn. Is done. The error check includes information for detecting and correcting an error in transmission data.

スリープ情報設定部220は、子機20がスリープ時間を設定するために必要なスリープ情報を設定する。1つの好ましい例では、スリープ情報は、親機が全ての子機20をアクセスする周期T(以後、状態通知間隔ともいう)である。子機20の数がnであるとき、親機10は、T/nの時間間隔で1つの子機をアクセスすることになる。状態通知間隔Tは、ホスト装置30から親機10に指示されるが、親機10は、この指示がない場合、デフォルト値を状態通知間隔Tとすることができる。 The sleep information setting unit 220 sets the sleep information necessary for the slave unit 20 to set the sleep time. In one preferred example, the sleep information is a cycle T (hereinafter, also referred to as a status notification interval) in which the master unit accesses all the slave units 20. When the number of slave units 20 is n, the master unit 10 accesses one slave unit at a time interval of T / n. The status notification interval T is instructed by the host device 30 to the master unit 10, but the master unit 10 can set the default value as the status notification interval T if this instruction is not given.

クエリ送信部230は、無線通信部110を介して、例えば、子機のアドレスの若い順(例えば、図1の子機20a、20b、20c、…20nの順)に作成したクエリを全ての子機20に対して送信する。 The query transmission unit 230 queries all the children via the wireless communication unit 110, for example, in ascending order of the addresses of the slave units (for example, in the order of the slave units 20a, 20b, 20c, ... 20n in FIG. 1). It is transmitted to the machine 20.

応答メッセージ受信部240は、クエリに対して子機20から送信された応答メッセージを受信する。応答メッセージの伝送フォーマットを図4(B)に示す。確認用デバイスアドレスは、応答メッセージを作成した子機のアドレスであり、確認用ファンクションコードは、子機が実行したファンクションコードであり、応答データは、クエリに対する応答内容を含む情報である。子機情報提供部250は、応答メッセージ受信部240で受信した応答データをホスト装置30に提供する。 The response message receiving unit 240 receives the response message transmitted from the slave unit 20 in response to the query. The transmission format of the response message is shown in FIG. 4 (B). The confirmation device address is the address of the slave unit that created the response message, the confirmation function code is the function code executed by the slave unit, and the response data is information including the response contents to the query. The slave unit information providing unit 250 provides the response data received by the response message receiving unit 240 to the host device 30.

次に、本実施例の子機20について説明する。図6は、子機20の機能的な構成を示すブロック図である。子機20は、概ね、センサモジュール300、無線通信モジュール310、電源モジュール320および制御モジュール330を含む。センサモジュール300は、子機20が設置された位置において必要な情報を検出するためのセンサ回路、センサ回路により検出された情報を保持する記憶回路等を含む。無線通信モジュール310は、親機10との間で双方向の無線通信を行うための通信回路等を含む。電源モジュール320は、電池から供給される電力を各部へ搬送制御する回路等を含む。制御モジュール330は、子機20の全体を制御する回路等を含む。 Next, the slave unit 20 of this embodiment will be described. FIG. 6 is a block diagram showing a functional configuration of the slave unit 20. The slave unit 20 generally includes a sensor module 300, a wireless communication module 310, a power supply module 320, and a control module 330. The sensor module 300 includes a sensor circuit for detecting necessary information at the position where the slave unit 20 is installed, a storage circuit for holding the information detected by the sensor circuit, and the like. The wireless communication module 310 includes a communication circuit and the like for bidirectional wireless communication with the master unit 10. The power supply module 320 includes a circuit and the like for transporting and controlling the electric power supplied from the battery to each part. The control module 330 includes a circuit that controls the entire slave unit 20 and the like.

図7は、子機20の要部の回路構成を示す図である。図中において、破線は、電源ライン、実線は、信号ラインを示す。また、ここにはセンサモジュール300の詳細は示されていない。 FIG. 7 is a diagram showing a circuit configuration of a main part of the slave unit 20. In the figure, the broken line indicates the power supply line, and the solid line indicates the signal line. Further, the details of the sensor module 300 are not shown here.

子機20は、充電可能な二次電池400を含み、電池400は、電圧VB(例えば、3.6〜3.7V)を各部へ供給する。すなわち、電池400からの電圧VBは、DC/DCコンバータ402、404、リセット回路410、412、およびスリープタイマ420に供給される。 The slave unit 20 includes a rechargeable secondary battery 400, and the battery 400 supplies a voltage VB (for example, 3.6 to 3.7 V) to each unit. That is, the voltage VB from the battery 400 is supplied to the DC / DC converters 402 and 404, the reset circuits 410 and 412, and the sleep timer 420.

リセット回路410は、電池400の電圧VBが印加されると、これに応答してパワーオンリセットのためのリセット信号RESET1を電源ロード制御回路440に出力する。電源ロード制御回路440は、リセット信号RESET1を受け取ると、パワーオンリセットされ、DC/DCコンバータ402にイネーブル信号ENを出力し、DC/DCコンバータ402を動作させる。DC/DCコンバータ402は、電池400の電圧VBを所望の電圧V1に変換し、変換された電圧V1は、制御部430およびリセット回路412に供給される。リセット回路412は、DC/DCコンバータ402からの電圧V1を受け取ると、これに応答してパワーオンリセットのためのリセット信号RESET2を制御部430に出力する。制御部430は、DC/DCコンバータ402からの電圧V1を入力し、かつリセット回路410からのリセット信号RESET2を受け取ると、パワーオンリセットされ、内部を初期化する。制御部430はさらに無線モジュール470を初期化し、かつパワーオンするためのリセット信号RESET3およびパワーオン信号PWRONを無線モジュール470へ出力する。 When the voltage VB of the battery 400 is applied, the reset circuit 410 outputs a reset signal SETT1 for power-on reset to the power supply load control circuit 440 in response to the application. When the power load control circuit 440 receives the reset signal RESET1, the power-on reset is performed, the enable signal EN is output to the DC / DC converter 402, and the DC / DC converter 402 is operated. The DC / DC converter 402 converts the voltage VB of the battery 400 into a desired voltage V1, and the converted voltage V1 is supplied to the control unit 430 and the reset circuit 412. When the reset circuit 412 receives the voltage V1 from the DC / DC converter 402, the reset circuit 412 outputs a reset signal SETT2 for power-on reset to the control unit 430 in response to the voltage V1. When the control unit 430 inputs the voltage V1 from the DC / DC converter 402 and receives the reset signal RESET2 from the reset circuit 410, the control unit 430 is powered on and reset to initialize the inside. The control unit 430 further initializes the wireless module 470 and outputs a reset signal RESET3 and a power-on signal PWRON for powering on to the wireless module 470.

一方、DC/DCコンバータ404は、電池400からの電圧VBにより動作され、変換された所望の電圧V2を無線モジュール470に出力する。無線モジュール470は、電圧V2が入力されただけでは、パワーダウンモードであるが、上記したように制御部430からのパワーオン信号PWRONが入力されると、パワーオンモードになる。無線モジュール470がパワーオンモードであるとき、無線モジュール470は、親機10からのクエリを受信することが可能である。無線モジュール470はさらに、制御部430からのコマンドを受け取ることが可能であり、当該コマンドによりパワーオンモードからスリープ状態、スリープ状態からパワーオンモードに移行することができる。無線モジュール470がスリープ状態のとき、無線モジュール470のRF回路の電源がオフし、低消費電力状態となる。スリープ状態のとき、無線モジュール470は、親機10からのクエリを受信することはできない。 On the other hand, the DC / DC converter 404 is operated by the voltage VB from the battery 400, and outputs the converted desired voltage V2 to the wireless module 470. The wireless module 470 is in the power-down mode only when the voltage V2 is input, but is in the power-on mode when the power-on signal PWRON from the control unit 430 is input as described above. When the wireless module 470 is in the power-on mode, the wireless module 470 is capable of receiving a query from the master unit 10. The wireless module 470 can further receive a command from the control unit 430, and the command can shift from the power-on mode to the sleep state and from the sleep state to the power-on mode. When the wireless module 470 is in the sleep state, the power of the RF circuit of the wireless module 470 is turned off, resulting in a low power consumption state. In the sleep state, the wireless module 470 cannot receive the query from the master unit 10.

スリープタイマ420は、電池400からの電圧Vbにより動作可能になる。スリープタイマ420は、子機20のスリープ時間をカウントすることにより制御部430のスリープ時間を監視する。スリープタイマ420のスリープ時間は、制御部430によって設定される。好ましい例では、制御部430は、親機10のクエリに含まれるアクセス周期Tに基づきスリープ時間を算出し、算出されたスリープ時間Tslpをスリープタイマ420に設定し、スリープタイマ420のカウントを始動させる。 The sleep timer 420 can be operated by the voltage Vb from the battery 400. The sleep timer 420 monitors the sleep time of the control unit 430 by counting the sleep time of the slave unit 20. The sleep time of the sleep timer 420 is set by the control unit 430. In a preferred example, the control unit 430 calculates the sleep time based on the access cycle T included in the query of the master unit 10, sets the calculated sleep time Tslp in the sleep timer 420, and starts the count of the sleep timer 420. ..

制御部430は、親機へ応答メッセージを送信後、電源ロード制御回路440に対してDC/DCコンバータ402の動作を停止させるための制御信号STPを出力する。電源ロード制御回路440は、制御信号STPを受け取ると、DC/DCコンバータ402にディスエーブル信号を出力し、DC/DCコンバータ402の動作が停止される。これにより、制御部430には電圧V1が供給されなくなり、制御部430は、事実上、電源オフ状態となる。また、スリープタイマ420は、スリープ時間の経過をカウントすると、タイムオーバー信号TMOを電源ロード制御回路440に出力する。電源ロード制御回路440は、タイムオーバー信号TMOを受け取ると、DC/DCコンバータ402に再びイネーブル信号ENを出力し、DC/DCコンバータ402を動作させる。これにより、制御部430が電源オン状態になる。 After transmitting the response message to the master unit, the control unit 430 outputs a control signal STP for stopping the operation of the DC / DC converter 402 to the power supply load control circuit 440. When the power supply load control circuit 440 receives the control signal STP, it outputs a disable signal to the DC / DC converter 402, and the operation of the DC / DC converter 402 is stopped. As a result, the voltage V1 is not supplied to the control unit 430, and the control unit 430 is effectively turned off. Further, the sleep timer 420 outputs a time over signal TMO to the power supply load control circuit 440 when counting the passage of the sleep time. When the power supply load control circuit 440 receives the time-over signal TMO, it outputs the enable signal EN to the DC / DC converter 402 again to operate the DC / DC converter 402. As a result, the control unit 430 is turned on.

アドレス保持部450は、子機のアドレスを保持し、当該アドレス情報を制御部430へ提供する。このアドレス情報は、例えば、クエリに対する応答メッセージを作成するときに参照される。また、アドレス保持部450へのアドレスの設定方法は任意であるが、例えば、ディップスイッチなどよりアドレスの設定または変更を行うことができる。 The address holding unit 450 holds the address of the slave unit and provides the address information to the control unit 430. This address information is referred to, for example, when composing a response message to a query. Further, although the method of setting the address to the address holding unit 450 is arbitrary, for example, the address can be set or changed by a DIP switch or the like.

割込み制御部460は、無線モジュール470が自局宛てのクエリを受信したとき、制御部430に割り込み信号INTを出力し、スリープ状態の制御部430をウェークアップさせる。 When the wireless module 470 receives a query addressed to its own station, the interrupt control unit 460 outputs an interrupt signal INT to the control unit 430 and wakes up the sleep state control unit 430.

次に、制御部430の主な機能について説明する。制御部430は、図8に示すように、クリエ受信部500、ファンクション実行部510、スリープ時間算出部520、スリープ時間設定部530、スリープ/起動実行部540、応答メッセージ作成部550および応答メッセージ送信部560等を含む。これらの機能は、ソフトウエア(プログラム)、ハードウエア、あるいはソフトウエアとハードウエアの組合せのいずれによって実行されてもよい。制御部430が、例えば、ROM、RAMを含むマイクロプロセッサMPUを含むとき、ROMまたはRAM内のプログラムを実行することにより、上記の主な機能を動作させることができる。 Next, the main functions of the control unit 430 will be described. As shown in FIG. 8, the control unit 430 includes a CLIE reception unit 500, a function execution unit 510, a sleep time calculation unit 520, a sleep time setting unit 530, a sleep / wakeup execution unit 540, a response message creation unit 550, and a response message transmission. Includes part 560 and the like. These functions may be performed by software (program), hardware, or a combination of software and hardware. When the control unit 430 includes, for example, a microprocessor MPU including a ROM and a RAM, the above-mentioned main functions can be operated by executing a program in the ROM or the RAM.

クエリ受信部500は、無線モジュール470を介して自局宛てのクエリを受信する。1つの例では、制御部430はプログラムコマンド(スリープコマンド)を実行することによりスリープ状態となり、制御部430がスリープ状態のとき、無線モジュール470が親機10から自局宛てのクエリを受信すると、無線モジュール470は、割込み制御部460に割込み信号INTを出力させる。制御部430は、割込み信号INTを受け取ると、スリープ状態からウェークアップする。無線モジュール470は、クエリに含まれるデバイスアドレスを抽出し、自局宛てのクエリか否かを判定する。 The query receiving unit 500 receives a query addressed to its own station via the wireless module 470. In one example, the control unit 430 goes to sleep by executing a program command (sleep command), and when the control unit 430 is in sleep state, when the wireless module 470 receives a query addressed to its own station from the master unit 10, The wireless module 470 causes the interrupt control unit 460 to output an interrupt signal INT. When the control unit 430 receives the interrupt signal INT, the control unit 430 wakes up from the sleep state. The wireless module 470 extracts the device address included in the query and determines whether or not the query is addressed to its own station.

ファンクション実行部510は、クエリ受信部500によりクエリが受信されると、クエリに含まれるファンクションコードを実行する。例えば、ここには図示しないが、子機に含まれるセンサのしきい値を設定したり、センサにより検出された値をレジスタから読出す等の動作を行う。また、クエリには、常に、図5に示すファンクションコードFnが含まれているため、ファンクション実行部510は、スリープ時間算出部520にスリープ時間の算出等をさせる。 When the query is received by the query receiving unit 500, the function executing unit 510 executes the function code included in the query. For example, although not shown here, operations such as setting a threshold value of a sensor included in the slave unit and reading a value detected by the sensor from a register are performed. Further, since the query always includes the function code Fn shown in FIG. 5, the function execution unit 510 causes the sleep time calculation unit 520 to calculate the sleep time and the like.

スリープ時間算出部520は、クエリに含まれるアクセス周期T(状態通知間隔T)に基づきスリープ時間Tslpを算出する。スリープ時間Tslpは、Tslp=T−Trst−Tini−Trcv−Tstにより算出される。ここで、Trstは子機内部のリセット時間、Tiniは子機内部の初期化時間、Trcvは親機の送信時間+子機の受信時間、Tstはスリープタイマ設定とタイマスタートまでの時間である。Trst、Tini、Trcv、Tstの時間は、例えば、デフォルト値として予めレジスタ等に保持される。但し、親機は、所望のファンクションコードにより、レジスタに記憶されたTrst、Tini、Trcv、Tstの時間を変更することも可能である。 The sleep time calculation unit 520 calculates the sleep time Tslp based on the access cycle T (status notification interval T) included in the query. The sleep time Tslp is calculated by Tslp = T-Trst-Tini-Trcv-Tst. Here, Trst is the reset time inside the slave unit, Tini is the initialization time inside the slave unit, Trcv is the transmission time of the master unit + the reception time of the slave unit, and Tst is the time until the sleep timer is set and the timer is started. The times of Trst, Tini, Trcv, and Tst are held in a register or the like in advance as default values, for example. However, the master unit can also change the Trst, Tini, Trcv, and Tst times stored in the register according to a desired function code.

スリープ時間設定部530は、信号線SLTを介して算出されたスリープ時間Tslpをスリープタイマ420に設定する。スリープタイマ420は、スリープ時間が設定されると、そのカウントを開始し、カウント終了時にタイムオーバー信号TMOを電源ロード制御回路440に出力する。 The sleep time setting unit 530 sets the sleep time Tslp calculated via the signal line SLT in the sleep timer 420. When the sleep time is set, the sleep timer 420 starts counting, and outputs a time over signal TMO to the power supply load control circuit 440 at the end of counting.

スリープ/起動実行部540は、予め決められた動作シーケンスに従い、制御部430をスリープ状態にする。1つの例では、スリープ/起動実行部540は、プログラムのスリープコマンドを実行することでスリープ状態になる。制御部430がスリープ状態になると、制御部430に含まれる、例えば、カウンタやクロックなどがオフにされ、制御部430が低消費電力状態になる。また、スリープ/起動実行部540は、割込み制御部460から割込み信号INTが入力されたとき、ウェークアップコマンドを実行し、制御部430をスリープ状態から起動する。 The sleep / wakeup execution unit 540 puts the control unit 430 into a sleep state according to a predetermined operation sequence. In one example, the sleep / wake execution unit 540 goes to sleep by executing the sleep command of the program. When the control unit 430 goes to sleep, for example, a counter and a clock included in the control unit 430 are turned off, and the control unit 430 goes into a low power consumption state. Further, the sleep / wakeup execution unit 540 executes a wakeup command when the interrupt signal INT is input from the interrupt control unit 460, and wakes up the control unit 430 from the sleep state.

応答メッセージ作成部550は、クエリに対する応答メッセージを作成する。例えば、クエリがセンサの検出値の要求であれば、応答メッセージ作成部550は、センサの検出値を含む応答メッセージを作成する。応答メッセージ送信部560は、作成された応答メッセージを親機に返信する。なお、応答メッセージの伝送フォーマットは、図4(B)に示した通りである。 The response message creation unit 550 creates a response message for the query. For example, if the query is a request for a sensor detection value, the response message creation unit 550 creates a response message including the sensor detection value. The response message transmission unit 560 returns the created response message to the master unit. The transmission format of the response message is as shown in FIG. 4 (B).

ホスト装置30は、親機10に対して子機20のセンサのしきい値の設定や変更を指示したり、状態通知間隔Tを通知したり、あるいは親機10から提供された子機20の応答メッセージの内容を受信する。なお、ここでは親機10とホスト装置30とを別個に構成しているが、両者を1つの装置として構成してもよい。なお、親機と子機との更なる詳細な動作は、本出願人が提出した特許第6251363号に記載されている。 The host device 30 instructs the master unit 10 to set or change the threshold value of the sensor of the slave unit 20, notifies the status notification interval T, or the slave unit 20 provided by the master unit 10. Receive the contents of the response message. Although the master unit 10 and the host device 30 are separately configured here, both may be configured as one device. Further detailed operations between the master unit and the slave unit are described in Japanese Patent No. 6251363 submitted by the applicant.

次に、本発明の第2の実施例による中継機を利用するときの無線通信センサシステムの構成を図9に示す。同図に示すように、本実施例による無線通信センサシステムは、中継親機とホスト装置との間に1つまたは複数の中継機を接続することで、子機からホスト装置までの通信距離を延長することを可能にする。 Next, FIG. 9 shows the configuration of the wireless communication sensor system when the repeater according to the second embodiment of the present invention is used. As shown in the figure, in the wireless communication sensor system according to the present embodiment, the communication distance from the slave unit to the host device is increased by connecting one or more repeaters between the relay master unit and the host device. Allows extension.

本方式の説明をする上で、無線通信センサシステムに設置可能な機器の台数を、子機、中継親機、中継機、ホスト装置の全体で256台とし、その内、固定機器は、子機16台、中継親機1台、ホスト装置1台と仮定する。この場合、本システムには、最大で238台の中継機を設置することが可能であり、図9に、中継機を238台設置したときのシステムを例示する。勿論、これらの台数は、例示であり、本発明は、このような台数に限定されるものではない。処理時間の制限がなく、屋外の見通しが良好な環境であれば、子機、中継親機、中継機およびホスト装置に搭載されるそれぞれの無線モジュールの最大通信可能距離は、例えば、約1.2Kmである。この場合、本システムの最大通信距離は、子機−中継親機間が1.2Km、中継親機−中継機238台−ホスト装置間が1.2Km×239=286.8Kmとなる。 In explaining this method, the number of devices that can be installed in the wireless communication sensor system is 256 in total for the slave unit, relay master unit, repeater, and host device, of which the fixed device is the slave unit. It is assumed that there are 16 units, one relay master unit, and one host device. In this case, a maximum of 238 repeaters can be installed in this system, and FIG. 9 illustrates a system in which 238 repeaters are installed. Of course, these numbers are examples, and the present invention is not limited to such numbers. If there is no limit on the processing time and the outdoor visibility is good, the maximum communicable distance of each wireless module mounted on the slave unit, relay master unit, repeater and host device is, for example, about 1. It is 2 km. In this case, the maximum communication distance of this system is 1.2 km between the slave unit and the relay master unit, and 1.2 km × 239 = 286.8 km between the relay master unit and the 238 repeaters and the host device.

本実施例の無線通信センサシステムは、第1の実施例で説明したように、親機からスリープ時間に関する情報を複数の子機に送信し、子機それぞれがスリープ時間に関する情報に基づいてスリープ状態のオン/オフを切り替え、子機は必要な時間帯だけスリープ状態が解除され、それ以外はスリープ状態となり、親機は、子機のスリープ状態が解除された時間に同期してクエリを送信する、といった動作を基本とする。 As described in the first embodiment, the wireless communication sensor system of this embodiment transmits information about the sleep time from the master unit to a plurality of slave units, and each slave unit sleeps based on the information about the sleep time. On / off, the slave unit wakes up only for the required time, otherwise it goes to sleep, and the master unit sends a query in synchronization with the time when the slave unit wakes up. , Etc. are the basic operations.

中継親機とホスト装置との間に中継機を介在させた場合には、中継親機⇒子機⇒中継親機⇒中継機(1台〜238台)⇒ホスト装置⇒PC⇒ホスト装置⇒中継機(1台〜238台)⇒中継親機のサイクルが子機1台当りの処理時間となる。また、上記の順序で通信するため、混信することはない。つまり、この期間は、1台の子機の処理時間であり、その間に他の子機が親機に対して送信することはない。 When a repeater is inserted between the relay master unit and the host device, the relay master unit ⇒ slave unit ⇒ relay master unit ⇒ repeater (1 to 238 units) ⇒ host device ⇒ PC ⇒ host device ⇒ relay Machine (1 to 238) ⇒ The cycle of the relay master unit is the processing time per slave unit. Moreover, since communication is performed in the above order, there is no interference. That is, this period is the processing time of one slave unit, and the other slave units do not transmit to the master unit during that period.

ある実施態様では、中継親機、中継機およびホスト装置は、共通のハードウエアで構成することができ、それらのハードウエアは、コントローラ、タイマー、メモリおよび無線通信の機能を含む。各装置間のハードウエアが共通であっても、各装置のコントローラには、それぞれの機能を実行するための個別のファームウエア(ソフトウエアプログラムを含む)が実装される。例えば、中継親機は、子機との間でポーリング等の通信制御を行うための機能(例えば、図2、図3を参照)を有し、中継機は、中継親機とホスト装置との間でデータを転送する機能を含む。また、ホスト装置は、中継機と通信する機能に加えて、コンピュータ装置PCと連携し、例えば、コンピュータ装置PCからの指示を中継機/中継親機に伝えたり、中継機/中継親機から受け取った情報をコンピュータ装置PCに提供する。 In some embodiments, the repeater, repeater, and host device can be configured with common hardware, which includes controller, timer, memory, and wireless communication functions. Even if the hardware of each device is common, the controller of each device is equipped with individual firmware (including a software program) for executing each function. For example, the relay master unit has a function for performing communication control such as polling with the slave unit (see, for example, FIGS. 2 and 3), and the relay unit is a relay master unit and a host device. Includes the ability to transfer data between. In addition to the function of communicating with the repeater, the host device cooperates with the computer device PC to, for example, transmit an instruction from the computer device PC to the repeater / relay master unit or receive the instruction from the repeater / relay master unit. The information is provided to the computer device PC.

中継親機、中継機およびホスト装置は、例えば図10に示すような共通のハードウエアを含んで構成される。ハードウエア600は、外部電源やバッテリー等から供給される入力電圧Vinを所望の電圧に変換するDC/DC変換器602、604、DC/DC変換器602から出力される電圧に応答してリセット信号RESETを生成するリセット回路612、DC/DC変換器604から出力される電圧に応答して制御部650をリセットするためのリセット回路614、クロック信号やカウンタ等を含み時間の計測や管理を行うタイマー620、無線通信を行うための無線モジュール630、設定されたアドレス情報を保持するアドレス保持部642を含むメモリ640、各部を制御する制御部650を備えている。アドレス保持部642には、後述するように、自局を識別する物理アドレス、上位機を識別する物理アドレス、下位機を識別するアドレスが保持される。これらのアドレスは、無線モジュール630によるブロードキャスト通信またはユニキャスト通信をするときに利用される。制御部650は、上記したように、中継親機、中継機、ホスト装置の機能に応じたファームウエアが実装される。中継親機の制御部650は、第1の実施例のとき同様の機能(例えば図3を参照)を備えることに留意すべきである。 The relay master unit, the repeater, and the host device are configured to include common hardware as shown in FIG. 10, for example. The hardware 600 is a reset signal in response to the voltages output from the DC / DC converters 602 and 604 and the DC / DC converter 602 that convert the input voltage Vin supplied from an external power source, battery, or the like into a desired voltage. A reset circuit 612 that generates a reset, a reset circuit 614 for resetting the control unit 650 in response to the voltage output from the DC / DC converter 604, and a timer that measures and manages the time including a clock signal and a counter. 620, a wireless module 630 for performing wireless communication, a memory 640 including an address holding unit 642 for holding the set address information, and a control unit 650 for controlling each unit are provided. As will be described later, the address holding unit 642 holds a physical address for identifying its own station, a physical address for identifying a higher-level machine, and an address for identifying a lower-level machine. These addresses are used for broadcast communication or unicast communication by the wireless module 630. As described above, the control unit 650 is equipped with firmware corresponding to the functions of the relay master unit, the repeater, and the host device. It should be noted that the control unit 650 of the relay master unit has the same function as in the first embodiment (see, for example, FIG. 3).

以下の説明では、無線通信システムの動作を分かり易くするため、中継機2台を用いたときの例を説明する。図11は、ホスト装置と中継親機との間に2台の中継機を接続したシステム構成を示す。 In the following description, in order to make the operation of the wireless communication system easy to understand, an example when two repeaters are used will be described. FIG. 11 shows a system configuration in which two repeaters are connected between the host device and the relay master unit.

「中継機2台を用いたシステム構成」
DA(Destination Address;宛先アドレス)ネゴシエーション
ホスト装置には、予め中継機の構成(台数)が設定される。例えば、コンピュータ装置PCからホスト装置に中継機の台数を設定する。ホスト装置(制御部650)は、予め設定された中継機の台数からホスト装置の下位機である最終段の中継機の論理アドレスを割出す。論理アドレスの算出方法は、ホスト装置の配下の最初の中継機の論理アドレス=ホスト装置自局アドレス+台数である。本例の場合、16台の子機、中継親機およびホスト装置の18台が固定機器であり、中継親機には論理アドレス#0が割り当てられ、16台の子機には論理アドレス#1〜#16が割り当てられ、ホスト装置には論理アドレス#17が割り当てられ、これらの論理アドレスは固定であるが、中継機の論理アドレスは、デフォルト状態で未定であり、初期設定する必要がある。
中継機2台を用いた場合、最終段の中継機2の論理アドレス=17+2台=19、となる。もし、無線通信センサシステムが最大数の中継機により構成されるならば、最初の中継機の論理アドレス=17+238=255、となる。
"System configuration using two repeaters"
DA (Destination Address) negotiation The configuration (number of repeaters) of repeaters is set in advance in the host device. For example, the number of repeaters is set from the computer device PC to the host device. The host device (control unit 650) determines the logical address of the final stage repeater, which is a lower level of the host device, from the preset number of repeaters. The method of calculating the logical address is the logical address of the first repeater under the control of the host device = the host device's own station address + the number of units. In the case of this example, 16 slave units, relay master unit, and 18 host devices are fixed devices, logical address # 0 is assigned to the relay master unit, and logical address # 1 is assigned to the 16 slave units. ~ # 16 is assigned, logical addresses # 17 are assigned to the host device, and these logical addresses are fixed, but the logical address of the repeater is undecided in the default state and needs to be initialized.
When two repeaters are used, the logical address of the repeater 2 in the final stage = 17 + 2 = 19. If the wireless communication sensor system is composed of the maximum number of repeaters, the logical address of the first repeater = 17 + 238 = 255.

図12A〜図12Cに、DAネゴシエーションシーケンスのフローを示す。DAネゴシエーションシーケンスは、システムの立ち上げ時にのみ実行され、このシーケンスは、中継機1、2の論理アドレスを設定し、ホスト装置、中継機および中継親機間の接続関係を自動で確立する。 12A-12C show the flow of the DA negotiation sequence. The DA negotiation sequence is executed only at the time of system startup, and this sequence sets the logical addresses of the repeaters 1 and 2 and automatically establishes the connection relationship between the host device, the repeater, and the relay master unit.

フェーズ1
(1)ホスト装置は、電源投入後、予め設定された中継機の台数からホスト装置の配下の最初の中継機2の論理アドレスを算出する。算出方法は、上記した通りである。
次に、ホスト装置(制御部650)は、宛先物理アドレス(PDA)=255(ブロードキャストアドレス)、下位機の論理アドレス(LDA)=19、自局論理アドレス(LSA)=17、コマンド=1のデータを含むパケットを生成し、生成したパケットデータを無線モジュール630を介してブロードキャスト送信する。DAネゴシエーションで用いられるパケットのデータ形式を図13Aに示す。PDA=255は、ブロードキャスト送信を表し、コマンド(CMD)=1はDAネゴシエーションの実行を表す。ホスト装置は、送信を完了すると、受信待ち状態になる。
Phase 1
(1) After the power is turned on, the host device calculates the logical address of the first repeater 2 under the control of the host device from the preset number of repeaters. The calculation method is as described above.
Next, the host device (control unit 650) has a destination physical address (PDA) = 255 (broadcast address), a lower-level machine logical address (LDA) = 19, own station logical address (LSA) = 17, and command = 1. A packet containing data is generated, and the generated packet data is broadcast and transmitted via the wireless module 630. The data format of the packet used in the DA negotiation is shown in FIG. 13A. PDA = 255 represents broadcast transmission and command (CMD) = 1 represents execution of DA negotiation. When the host device completes transmission, it goes into a reception waiting state.

(2)ホスト装置からブロードキャスト送信されたパケットは、16台の子機、中継親機、中継機1において受信可能である。無線モジュール630の通信可能な距離は、屋外の見通しの良い条件で約1.2Kmであり、つまり、約1.2Kmの間隔で無線モジュールを設置することが可能である。しかし、通常は、周辺環境や気候変動などによって信号強度が減衰することを考慮し、1.2Kmよりも短い距離、例えば、800mくらいの間隔で無線モジュールが設置される。従って、ホスト装置からのブロードキャスト通信を受信できる位置に存在するのは、事実上、中継機2のみである。 (2) Packets broadcast-transmitted from the host device can be received by the 16 slave units, the relay master unit, and the repeater 1. The communicable distance of the wireless module 630 is about 1.2 km under good outdoor visibility conditions, that is, the wireless modules can be installed at intervals of about 1.2 km. However, in consideration of the fact that the signal strength is attenuated due to the surrounding environment and climate variability, the wireless modules are usually installed at a distance shorter than 1.2 km, for example, at intervals of about 800 m. Therefore, in fact, only the repeater 2 exists at a position where the broadcast communication from the host device can be received.

中継機2は、無線モジュール630を介してブロードキャスト送信されたパケットデータを受信する。中継機2の制御部650は、アドレス保持部642には自局のアドレスが未設定であるので、受信したパケット内の宛先論理アドレス(LDA)を自局の論理アドレスと認識し、この論理アドレスを自局の物理アドレスに変換し、変換した物理アドレスをアドレス保持部642に設定する。物理アドレスは、制御部650がメモリ640のアドレス空間を参照するときに必要な形式であり、論理アドレスとその物理アドレスとは対応するものである。両者は、装置を識別するための識別情報としては実質的に同じものである。例えば、制御部650は、他の中継機から論理アドレスを受け取ったとき、当該論理アドレスに対応する物理アドレスをアドレス保持部642から読出したり、あるいは対応する物理アドレスをアドレス保持部642に書込む。 The repeater 2 receives the packet data broadcast-transmitted via the wireless module 630. Since the address of the own station is not set in the address holding unit 642, the control unit 650 of the repeater 2 recognizes the destination logical address (LDA) in the received packet as the logical address of the own station, and recognizes this logical address. Is converted to the physical address of the own station, and the converted physical address is set in the address holding unit 642. The physical address is a format required when the control unit 650 refers to the address space of the memory 640, and the logical address and the physical address correspond to each other. Both are substantially the same as the identification information for identifying the device. For example, when the control unit 650 receives a logical address from another repeater, the control unit 650 reads the physical address corresponding to the logical address from the address holding unit 642, or writes the corresponding physical address to the address holding unit 642.

次に、中継機2は、受信したパケット内の送信元論理アドレス(LSA)から上位機であるホスト装置の物理アドレスをアドレス保持部642に設定する。こうして、中継機2のアドレス保持部642には、中継機2の物理アドレス(論理アドレス#19)と、上位機であるホスト装置の物理アドレス(論理アドレス#17)とが保持され、両者の接続関係が確立されたことになる。 Next, the repeater 2 sets the physical address of the host device, which is a higher-level machine, from the source logical address (LSA) in the received packet in the address holding unit 642. In this way, the address holding unit 642 of the repeater 2 holds the physical address (logical address # 19) of the repeater 2 and the physical address (logical address # 17) of the host device which is the higher-level machine, and connects the two. The relationship has been established.

次に、中継機2の制御部650は、受信したLSAを基にPDA=17、自局アドレス(LSA)=19、CMD=0を含むパケットデータを生成し、生成したパケットデータを無線モジュール630を介してホスト装置にユニキャスト送信する。ここで、PDA=17は、ユニキャスト送信するための送信先アドレスを表す。CMD=0は、ネゴシエーションの実施を要求しないコマンドである。 Next, the control unit 650 of the repeater 2 generates packet data including PDA = 17, own station address (LSA) = 19, and CMD = 0 based on the received LSA, and the generated packet data is used as the wireless module 630. Unicast transmission to the host device via. Here, PDA = 17 represents a destination address for unicast transmission. CMD = 0 is a command that does not require the execution of negotiation.

(3)ホスト機は、下位機の中継機2からのパケットを受信し、受信したLSAから下位機の論理アドレスをアドレス保持部642に設定する。こうして、ホスト装置のアドレス保持部642には、自局の論理アドレス#17と、下位機である中継機2の論理アドレス#19とが保持され、両者の接続関係が確立されたことになる。ホスト機は、これ以降、受信待ちとなる。 (3) The host machine receives the packet from the repeater 2 of the lower machine, and sets the logical address of the lower machine from the received LSA in the address holding unit 642. In this way, the address holding unit 642 of the host device holds the logical address # 17 of the own station and the logical address # 19 of the repeater 2 which is the lower unit, and the connection relationship between the two is established. After that, the host machine waits for reception.

フェーズ2
(1)中継機2の制御部650は、上位機への送信が終了すると、自局論理アドレスから下位機の論理アドレスを算出する。下位機の論理アドレス=自局論理アドレス−1=19−1=18、である。つまり、中継機1の論理アドレス#18を算出する。
中継機2は、宛先物理アドレス(PDA)=255(ブロードキャストアドレス)、下位機の論理アドレス(LDA)=18、自局論理アドレス(LSA)=19、コマンド=1を含むパケットデータを生成し、生成したパケットデータを無線モジュール630を介してブロードキャスト送信する。
Phase 2
(1) The control unit 650 of the repeater 2 calculates the logical address of the lower machine from its own station logical address when the transmission to the higher machine is completed. The logical address of the lower machine = own station logical address-1 = 19-1 = 18. That is, the logical address # 18 of the repeater 1 is calculated.
The repeater 2 generates packet data including a destination physical address (PDA) = 255 (broadcast address), a lower-level machine logical address (LDA) = 18, own station logical address (LSA) = 19, and command = 1. The generated packet data is broadcast and transmitted via the wireless module 630.

(2)中継機2からのブロードキャスト通信を受信できる位置に存在するのは、ホスト装置と中継機1である。ホスト装置のアドレス設定部642に自局の物理アドレス(論理アドレス#17)が設定されており、このアドレスがパケット内の宛先論理アドレス(LDA)と一致しないので、ホスト装置は、ブロードキャスト通信すなわちパケットデータを受信しない。他方、中継機1は、自局の物理アドレス(論理アドレス)が未設定であるため、無線のジュール630を介してブロードキャスト送信されたパケットデータを受信する。中継機1の制御部650は、受信したパケット内の宛先論理アドレス(LDA)を自局の論理アドレスと認識し、この論理アドレスを自局の物理アドレスに変換し、変換した物理アドレスをアドレス保持部642に設定する。 (2) The host device and the repeater 1 are located at positions where the broadcast communication from the repeater 2 can be received. Since the physical address (logical address # 17) of the own station is set in the address setting unit 642 of the host device and this address does not match the destination logical address (LDA) in the packet, the host device performs broadcast communication, that is, the packet. Do not receive data. On the other hand, since the physical address (logical address) of the repeater 1 is not set, the repeater 1 receives the packet data broadcasted via the radio nodule 630. The control unit 650 of the repeater 1 recognizes the destination logical address (LDA) in the received packet as the logical address of its own station, converts this logical address into the physical address of its own station, and holds the converted physical address. Set to unit 642.

次に、中継機1は、受信したパケット内の送信元論理アドレス(LSA)から上位機である中継機2の物理アドレスをアドレス保持部642に設定する。こうして、中継機1のアドレス保持部642には、中継機1の物理アドレス(論理アドレス#18)と、上位機である中継機2の物理アドレス(論理アドレス#19)とが保持され、両者の接続関係が確立されたことになる。 Next, the repeater 1 sets the physical address of the repeater 2 which is a higher-level machine from the source logical address (LSA) in the received packet in the address holding unit 642. In this way, the address holding unit 642 of the repeater 1 holds the physical address (logical address # 18) of the repeater 1 and the physical address (logical address # 19) of the repeater 2 which is a higher-level machine. The connection relationship has been established.

次に、中継機1の制御部650は、受信したLSAを基にPDA=19、自局アドレス(LSA)=18、CMD=0を含むパケットデータを生成し、生成したパケットデータを無線モジュール630を介して中継機2にユニキャスト送信する。ここで、PDA=18は、ユニキャスト送信するための送信先アドレスを表す。CMD=0は、ネゴシエーションの実施を要求しないコマンドである。 Next, the control unit 650 of the repeater 1 generates packet data including PDA = 19, own station address (LSA) = 18, and CMD = 0 based on the received LSA, and the generated packet data is used as the wireless module 630. Unicast transmission is performed to the repeater 2 via. Here, PDA = 18 represents a destination address for unicast transmission. CMD = 0 is a command that does not require the execution of negotiation.

(3)中継機2は、下位機の中継機1からのパケットを受信し、受信したLSAから下位機の物理アドレスをアドレス保持部642に設定する。こうして、中継機2のアドレス保持部642には、上位機であるホスト装置の物理アドレス(論理アドレス#17)と、中継機2の物理アドレス(論理アドレス#19)と、下位機である中継機1の物理アドレス(論理アドレス#18)とが保持され、中継機2の上位機および下位機との接続関係が確立されたことになる。中継機1は、これ以降、受信待ちとなる。 (3) The repeater 2 receives the packet from the repeater 1 of the lower machine, and sets the physical address of the lower machine from the received LSA in the address holding unit 642. In this way, the address holding unit 642 of the repeater 2 has the physical address (logical address # 17) of the host device which is the upper machine, the physical address (logical address # 19) of the repeater 2, and the repeater which is the lower machine. The physical address (logical address # 18) of 1 is retained, and the connection relationship with the upper and lower units of the repeater 2 is established. After that, the repeater 1 waits for reception.

フェーズ3
(1)中継機1の制御部650は、上位機への送信が終了すると、自局論理アドレスから下位機の論理アドレスを算出する。もし、自局論理アドレスが「18」ならば、下位機の論理アドレスを「0」にする。本例で、中継機1の論理アドレスが「18」なので、算出される下位機の論理アドレスは、「0」である。それ以外は、以下の方法で下位機の論理アドレスを算出する。
下位機の論理アドレス=自局論理アドレス−1
Phase 3
(1) The control unit 650 of the repeater 1 calculates the logical address of the lower machine from the own station logical address when the transmission to the higher machine is completed. If the local logical address is "18", the logical address of the lower machine is set to "0". In this example, since the logical address of the repeater 1 is "18", the calculated logical address of the lower unit is "0". Other than that, the logical address of the lower machine is calculated by the following method.
Logical address of lower machine = own station logical address-1

中継機1は、物理アドレス(PDA)=255(ブロードキャストアドレス)、下位機のLDA=0、自局論理アドレス(LSA)=18、CMD=1のパケットデータを生成し、生成したパケットデータを無線モジュール630を介してブロードキャスト送信をする。 The repeater 1 generates packet data of physical address (PDA) = 255 (broadcast address), lower machine LDA = 0, own station logical address (LSA) = 18, CMD = 1, and wirelessly generates the generated packet data. Broadcast transmission is performed via the module 630.

(2)中継親機は、ブロードキャストされたパケットデータを受信し、パケット内の宛先論理アドレス(LDA)を自局の論理アドレスと認識する。中継親機は、自局の物理アドレスが未設定である場合には、この論理アドレスを物理アドレスに変換し、変換された物理アドレスをアドレス保持部642に設定する。また、アドレス保持部642に既に自局の物理アドレスが保持されている場合には、これを更新する。
次に、中継親機は、受信したLSAから上位機である中継機1の物理アドレスをアドレス保持部642に設定する。こうして、中継親機のアドレス保持部642には、中継親機の物理アドレス(論理アドレス#0)と、上位機である中継機1の物理アドレス(論理アドレス#18)とが保持され、両者の接続関係が確立されたことになる。
(2) The relay master unit receives the broadcast packet data and recognizes the destination logical address (LDA) in the packet as the logical address of its own station. When the physical address of its own station is not set, the relay master unit converts this logical address into a physical address and sets the converted physical address in the address holding unit 642. If the address holding unit 642 already holds the physical address of its own station, it is updated.
Next, the relay master unit sets the physical address of the relay unit 1, which is a higher-level unit, from the received LSA in the address holding unit 642. In this way, the address holding unit 642 of the relay master unit holds the physical address (logical address # 0) of the relay master unit and the physical address (logical address # 18) of the repeater 1 which is the higher-level unit. The connection relationship has been established.

次に中継親機は、受信したLSAを基にPDA=18"、自局アドレス(LSA=0、CMD=0を含むパケットデータを生成し、生成したパケットデータを無線モジュール630を介して中継機1にユニキャスト送信する。 Next, the relay master unit generates packet data including PDA = 18 "and its own station address (LSA = 0, CMD = 0" based on the received LSA, and the generated packet data is relayed via the wireless module 630. Unicast transmission to 1.

(3)中継機1は、下位機の中継親機からのパケットを受信し、受信したLSAから下位機である中継親機の物理アドレスをアドレス保持部642に設定する。こうして、中継機1のアドレス保持部642には、上位機である中継機2の物理アドレス(論理アドレス#19)と、中継機1の物理アドレス(論理アドレス#18)と、下位機である中継親機の物理アドレス(論理アドレス#0)とが保持され、中継機1の上位機および下位機との接続関係が確立されたことになる。中継機1は、これ以降、受信待ちとなる。 (3) The repeater 1 receives a packet from the relay master unit of the lower unit, and sets the physical address of the relay master unit which is the lower unit from the received LSA in the address holding unit 642. In this way, the address holding unit 642 of the repeater 1 has the physical address (logical address # 19) of the repeater 2 which is the upper machine, the physical address (logical address # 18) of the repeater 1, and the relay which is the lower machine. The physical address (logical address # 0) of the master unit is retained, and the connection relationship with the upper unit and the lower unit of the repeater 1 is established. After that, the repeater 1 waits for reception.

通常通信動作
フェーズ4
(1)中継親機は、上位機とのDAネゴシエーションが終了すると、子機1台当りの処理時間のタイマーがタイムアウトした時点で、子機アドレス(PDA=1〜16)、コマンド、LSA=0、スリープ時間等のパケット生成し、これを子機に送信する。データ形式は、図13Bの上位機⇒下位機に示されている。尚、この時のコマンドは、「1」以外である。
(2)子機は、中継親機からパケットを受信すると以下の処理を行なう。
コマンド解析⇒スリープ時間の設定⇒センスデータ収集⇒親機への応答パケット生成
データ形式は、図13Bの下位機⇒上位機に示されている。
(3)子機は、生成したパケット、中継親機の物理アドレスPDA=0、子機の自局論理アドレス(#1〜16)を中継親機に送信する。子機は、送信終了後、指定されたスリープ時間の間、スリープ状態となる。
(4)中継親機は、子機から応答パケットを受信すると上位機用にパケットを生成する。アドレス保持部642に保持された上位機の物理アドレスでPDAを書き換える。
「0」⇒「18」
PDA=18、LSA=受信した子機アドレス、子機から受信したパケットを上位機に送信する。
(5)中継親機は、上位機(中継機1)に送信が終了すると受信待ちとなる。
Normal communication operation
Phase 4
(1) When the DA negotiation with the host unit is completed and the timer for the processing time per slave unit times out, the relay master unit has the slave unit address (PDA = 1 to 16), command, LSA = 0. , Sleep time, etc. are generated and sent to the slave unit. The data format is shown in FIG. 13B from the upper machine to the lower machine. The command at this time is other than "1".
(2) When the slave unit receives the packet from the relay master unit, the slave unit performs the following processing.
Command analysis ⇒ Sleep time setting ⇒ Sense data collection ⇒ Response packet generation to the master unit The data format is shown in Fig. 13B lower unit ⇒ upper unit.
(3) The slave unit transmits the generated packet, the physical address PDA = 0 of the relay master unit, and the own station logical address (# 1 to 16) of the slave unit to the relay master unit. After the transmission is completed, the slave unit goes to sleep for the specified sleep time.
(4) When the relay master unit receives the response packet from the slave unit, it generates a packet for the host unit. The PDA is rewritten with the physical address of the host machine held in the address holding unit 642.
"0" ⇒ "18"
PDA = 18, LSA = received slave unit address, and packets received from the slave unit are transmitted to the host unit.
(5) The relay master unit waits for reception when transmission to the higher-level unit (relay unit 1) is completed.

フェーズ5
(1)中継機1は、中継親機からパケットを受信すると上位機用にパケットを生成する。
前記フェーズ2で登録した上位機の物理アドレスでPDAを書き換える。
「18」⇒「19」
PDA=「19」、LSA=受信した子機アドレス、中継親機から受信したパケットを上位機に送信する。
(2)中継機1は、上位機(中継機2)に送信が終了すると受信待ちとなる。
Phase 5
(1) When the repeater 1 receives a packet from the relay master unit, the repeater 1 generates a packet for the higher-level machine.
The PDA is rewritten with the physical address of the higher-level machine registered in Phase 2.
"18" ⇒ "19"
PDA = "19", LSA = received slave unit address, and the packet received from the relay master unit is transmitted to the host unit.
(2) The repeater 1 waits for reception when the transmission to the higher-level machine (repeater 2) is completed.

フェーズ6
(1)中継機2は、中継機1からパケットを受信すると上位機用にパケットを生成する。
アドレス保持部642で保持された上位機の物理アドレスでPDAを書き換える。
「19」⇒「17」
PDA=「17」、LSA=受信した子機アドレス、中継機1から受信したパケットを上位機に送信する。
(2)中継機2は、上位機(ホスト装置)に送信が終了すると受信待ちとなる。
Phase 6
(1) When the repeater 2 receives the packet from the repeater 1, the repeater 2 generates a packet for the higher-level machine.
The PDA is rewritten with the physical address of the host machine held by the address holding unit 642.
"19" ⇒ "17"
PDA = "17", LSA = received slave unit address, and the packet received from the repeater 1 is transmitted to the host unit.
(2) The repeater 2 waits for reception when the transmission to the host device (host device) is completed.

フェーズ7
(1)ホスト装置は、中継機2からパケットを受信するとPC用にパケットを生成する。
PDAを削除。
LSA=受信した子機アドレス、中継機2から受信したパケットをPCに送信する。
(2)ホスト装置は、PCに送信が終了すると受信待ちとなる。
Phase 7
(1) When the host device receives the packet from the repeater 2, it generates a packet for the PC.
Deleted PDA.
LSA = Received slave unit address, packet received from repeater 2 is transmitted to the PC.
(2) The host device waits for reception when transmission to the PC is completed.

フェーズ8
(1)PCは、受信した子機に対応した設定情報を収集する。
(2)PCは、パケットを生成し、ホスト機に送信する。
(3)PCは、受信待ち及びモニタへの入力待ちとなる。
Phase 8
(1) The PC collects the setting information corresponding to the received slave unit.
(2) The PC generates a packet and sends it to the host machine.
(3) The PC waits for reception and input to the monitor.

フェーズ9
(1)ホスト装置は、PCからパケットを受信すると下位機用にパケット生成する。
アドレス保持部642で保持された下位機の物理アドレスをPDAとする。
PDA=19、LDA=1〜16、LSA=17、PCから受信したパケットを送信する。
データ形式は、図13Bの上位機⇒下位機に示される。
(2)ホスト装置は、中継機2に送信が終了すると受信待ちとなる。
Phase 9
(1) When the host device receives a packet from the PC, the host device generates a packet for the lower machine.
The physical address of the lower machine held by the address holding unit 642 is referred to as a PDA.
PDA = 19, LDA = 1-16, LSA = 17, packets received from the PC are transmitted.
The data format is shown in FIG. 13B from the upper machine to the lower machine.
(2) The host device waits for reception when transmission to the repeater 2 is completed.

フェーズ10
(1)中継機2は、ホスト装置からパケットを受信すると下位機用にパケット生成する。
アドレス保持部642で保持された下位機の物理アドレスをPDAとする。
PDA=18、LDA=1〜16、LSA=19、ホスト装置から受信したパケットを送信する。
(2)中継機2は、中継機1に送信が終了すると受信待ちとなる。
Phase 10
(1) When the repeater 2 receives a packet from the host device, the repeater 2 generates a packet for the lower device.
The physical address of the lower machine held by the address holding unit 642 is referred to as a PDA.
PDA = 18, LDA = 1-16, LSA = 19, packets received from the host device are transmitted.
(2) The repeater 2 waits for reception when the transmission to the repeater 1 is completed.

フェーズ11
(1)中継機1は、中継機2からパケットを受信すると下位機用にパケット生成する。
アドレス保持部642で保持された下位機の物理アドレスをPDAとする。
PDA=0、LDA=1〜16、LSA=18、中継機2からの受信パケットを送信する。
(2)中継機1は、中継親機に送信が終了すると受信待ちとなる。
Phase 11
(1) When the repeater 1 receives a packet from the repeater 2, the repeater 1 generates a packet for a lower-level machine.
The physical address of the lower machine held by the address holding unit 642 is referred to as a PDA.
PDA = 0, LDA = 1-16, LSA = 18, receive packets from repeater 2 are transmitted.
(2) The repeater 1 waits for reception when the transmission to the relay master unit is completed.

フェーズ12
(1)中継親機は、中継機1からパケットを受信するとLDAで示される子機の情報テーブルを更新する。
(2)中継親機は、子機1台当りの処理時間のタイマーがタイムアウトするのを待つ。
(3)中継親機は、子機1台当りの処理時間のタイマーがタイムアウトした時点で、次の子機にパケットを送信する。
(4)中継親機は、子機からの応答を待つ。
以降、フェーズ4の(2)からの繰り返しとなる。
Phase 12
(1) When the relay master unit receives the packet from the repeater 1, the relay master unit updates the information table of the slave unit indicated by the LDA.
(2) The relay master unit waits for the timer for the processing time per slave unit to time out.
(3) The relay master unit transmits a packet to the next slave unit when the timer for the processing time per slave unit times out.
(4) The relay master unit waits for a response from the slave unit.
After that, the process from (2) of Phase 4 is repeated.

「中継機1台システム構成」
DAネゴシエーション
本構成は、図14で示すように中継機が1台の構成である。図15Aおよび図15Bのシーケンスフローを参照して動作を説明する。
"One repeater system configuration"
DA negotiation This configuration has one repeater as shown in FIG. The operation will be described with reference to the sequence flow of FIGS. 15A and 15B.

フェーズ1
(1)ホスト装置は、電源投入後、予め設定された中継機の台数からホスト配下の最初の中継機1の論理アドレスを算出する。次に、ホスト装置は、宛先物理アドレス(PDA)=255のブロードキャストアドレス、下位機の論理アドレス(LDA)=18、自局論理アドレス(LSA)=17のパケット構成でブロードキャスト送信し、送信完了すると受信待ち状態になる。
(2)中継機1は、ブロードキャストを受信し、パケット内の宛先論理アドレス(LDA)から自局の物理アドレスに変換して、そのアドレスをアドレス保持部642に設定する。中継機1は、受信したLSAから上位機(ホスト装置)の物理アドレスを登録する。次に、中継機1は、受信したLSAを基にPDA=17、自局論理アドレス(LSA)=18でユニキャスト送信をする。
(3)ホスト装置は、下位機(中継機1)からのパケットを受信し、受信したLSAから下位機の物理アドレスを登録する。ホスト装置は、これ以降、受信待ちとなる。
Phase 1
(1) After the power is turned on, the host device calculates the logical address of the first repeater 1 under the host from the preset number of repeaters. Next, the host device broadcasts with a packet configuration of a destination physical address (PDA) = 255, a lower-level machine logical address (LDA) = 18, and its own station logical address (LSA) = 17, and when the transmission is completed. Waiting for reception.
(2) The repeater 1 receives the broadcast, converts the destination logical address (LDA) in the packet into the physical address of its own station, and sets the address in the address holding unit 642. The repeater 1 registers the physical address of the host device (host device) from the received LSA. Next, the repeater 1 performs unicast transmission with PDA = 17 and own station logical address (LSA) = 18 based on the received LSA.
(3) The host device receives the packet from the lower unit (repeater 1) and registers the physical address of the lower unit from the received LSA. After that, the host device waits for reception.

フェーズ2
(1)中継機1は、上位機への送信が終了すると、自局論理アドレスから下位機の論理アドレスを算出する。もし、自局論理アドレスが「18」なら、下位機の論理アドレスを「0」にする。それ以外は、下位機の論理アドレス=自局論理アドレス−1を行う。本例で、下位機の論理アドレス(LDA)は、「0」である。
中継機1は、宛先物理アドレス(PDA)=255(ブロードキャストアドレス)、下位機の論理アドレス(LDA)=0、自局論理アドレス(LSA)=18、コマンド=1"のパケット構成で下位機(中継親機)にブロードキャスト送信する。
(2)中継親機は、ブロードキャストを受信し、パケット内の宛先論理ドレス(LDA)から自局の物理アドレスに変換して、そのアドレスをアドレス保持部642に設定する。中継親機は、受信したLSAから上位機(中継機1)の物理アドレスを登録する。次に中継親機は、受信したLSAを基にPDA=18、自局アドレス(LSA)=0でユニキャスト送信をする。
(3)中継機1は、下位機(中継親機)からのパケットを受信し、受信したLSAから下位機の物理アドレスを登録する。中継機1は、これ以降、受信待ちとなる。
Phase 2
(1) The repeater 1 calculates the logical address of the lower machine from its own station logical address when the transmission to the higher machine is completed. If the local logical address is "18", the logical address of the lower machine is set to "0". Other than that, the logical address of the lower machine = own station logical address-1 is performed. In this example, the logical address (LDA) of the lower machine is "0".
The repeater 1 has a packet configuration of a destination physical address (PDA) = 255 (broadcast address), a lower machine logical address (LDA) = 0, a local station logical address (LSA) = 18, and a command = 1 ". Broadcast to the relay master unit).
(2) The relay master unit receives the broadcast, converts the destination logical dress (LDA) in the packet into the physical address of its own station, and sets the address in the address holding unit 642. The relay master unit registers the physical address of the higher-level unit (relay unit 1) from the received LSA. Next, the relay master unit performs unicast transmission with PDA = 18 and own station address (LSA) = 0 based on the received LSA.
(3) The repeater 1 receives a packet from the lower unit (relay master unit) and registers the physical address of the lower unit from the received LSA. After that, the repeater 1 waits for reception.

通常通信動作
フェーズ3
(1)中継親機は、上位機とのDAネゴシエーションが終了すると、子機1台当りの処理時間のタイマーがタイムアウトした時点で、子機(PDA=1〜16)、コマンド、LSA=0、スリープ時間等のパケットを送信する。
(2)子機は、中継親機からパケットを受信すると以下の処理を行なう。
コマンド解析⇒スリープ時間の設定⇒センスデータ収集⇒親機への応答パケット生成
(3)子機は、前記生成したパケット、中継親機の物理アドレスPDA=0、子機の自局論理アドレス(1〜16)を中継親機に送信する。子機は、送信終了後、指定されたスリープ時間の間、スリープ状態となる。
(4)中継親機は、子機から応答パケットを受信すると上位機用にパケットを生成する。上位機の物理アドレスでPDAを書き換える。「0」⇒「18」。PDA=18、LSA=受信した子機アドレス、子機から受信したパケットを上位機に送信する。
(5)中継親機は、上位機(中継機1)に送信が終了すると受信待ちとなる。
Normal communication operation
Phase 3
(1) When the DA negotiation with the host unit is completed and the timer for the processing time per slave unit times out, the relay master unit has a slave unit (PDA = 1 to 16), a command, LSA = 0, Send packets such as sleep time.
(2) When the slave unit receives the packet from the relay master unit, the slave unit performs the following processing.
Command analysis ⇒ Sleep time setting ⇒ Sense data collection ⇒ Response packet generation to the master unit (3) The slave unit has the generated packet, the physical address PDA of the relay master unit = 0, and the slave unit's own logical address (1). ~ 16) is transmitted to the relay master unit. After the transmission is completed, the slave unit goes to sleep for the specified sleep time.
(4) When the relay master unit receives the response packet from the slave unit, it generates a packet for the host unit. Rewrite the PDA with the physical address of the host machine. "0" ⇒ "18". PDA = 18, LSA = received slave unit address, and packets received from the slave unit are transmitted to the host unit.
(5) The relay master unit waits for reception when transmission to the higher-level unit (relay unit 1) is completed.

フェーズ4
(1)中継機1は、中継親機からパケットを受信すると上位機用にパケットを生成する。上位機の物理アドレスでPDAを書き換える。「18」⇒「17」。PDA=17、LSA=受信した子機アドレス、中継親機から受信したパケットを上位機に送信する。
(2)中継機1は、上位機(ホスト機)に送信が終了すると受信待ちとなる。
Phase 4
(1) When the repeater 1 receives a packet from the relay master unit, the repeater 1 generates a packet for the higher-level machine. Rewrite the PDA with the physical address of the host machine. "18" ⇒ "17". PDA = 17, LSA = received slave unit address, packet received from the relay master unit is transmitted to the host unit.
(2) The repeater 1 waits for reception when the transmission to the higher-level machine (host machine) is completed.

フェーズ5
(1)ホスト装置は、中継機1からパケットを受信するとPC用にパケットを生成する。PDAを削除。LSA=受信した子機アドレス、中継機1から受信したパケットをPCに送信する。
(2)ホスト装置は、PCに送信が終了すると受信待ちとなる。
Phase 5
(1) When the host device receives the packet from the repeater 1, it generates a packet for the PC. Deleted PDA. LSA = Received slave unit address, packet received from repeater 1 is transmitted to the PC.
(2) The host device waits for reception when transmission to the PC is completed.

フェーズ6
(1)PCは、受信した子機に対応した設定情報を収集する。
(2)PCは、パケットを生成し、ホスト装置に送信する。
(3)PCは、受信待ち及びモニタへの入力待ちとなる。
Phase 6
(1) The PC collects the setting information corresponding to the received slave unit.
(2) The PC generates a packet and sends it to the host device.
(3) The PC waits for reception and input to the monitor.

フェーズ7
(1)ホスト装置は、PCからパケットを受信すると下位機用にパケット生成する。下位機の物理アドレスをPDAとする。PDA=18、LDA=1〜16、LSA=17、PCからの受信パケットを送信する。
(2)ホスト装置は、中継機1に送信が終了すると受信待ちとなる。
Phase 7
(1) When the host device receives a packet from the PC, the host device generates a packet for the lower machine. The physical address of the lower machine is PDA. PDA = 18, LDA = 1-16, LSA = 17, receive packets from the PC are transmitted.
(2) The host device waits for reception when transmission to the repeater 1 is completed.

フェーズ8
(1)中継機1は、ホスト装置からパケットを受信すると下位機用にパケット生成する。下位機の物理アドレスをPDAとする。PDA=0、LDA=1〜16、LSA=18、ホスト装置からの受信パケットを送信する。
(2)中継機1は、中継親機に送信が終了すると受信待ちとなる。
Phase 8
(1) When the repeater 1 receives a packet from the host device, the repeater 1 generates a packet for a lower-level device. The physical address of the lower machine is PDA. PDA = 0, LDA = 1-16, LSA = 18, receive packets from the host device are transmitted.
(2) The repeater 1 waits for reception when the transmission to the relay master unit is completed.

フェーズ9
(1)中継親機は、中継機1からパケットを受信するとLDAで示される子機の情報テーブルを更新する。
(2)中継親機は、子機1台当りの処理時間のタイマーがタイムアウトするのを待つ。
(3)中継親機は、子機1台当りの処理時間のタイマーがタイムアウトした時点で、次の子機にパケットを送信する。
(4)中継親機は、子機からの応答を待つ。以降、フェーズ3の(2)からの繰り返しとなる。
Phase 9
(1) When the relay master unit receives the packet from the repeater 1, the relay master unit updates the information table of the slave unit indicated by the LDA.
(2) The relay master unit waits for the timer for the processing time per slave unit to time out.
(3) The relay master unit transmits a packet to the next slave unit when the timer for the processing time per slave unit times out.
(4) The relay master unit waits for a response from the slave unit. After that, the process from (2) of Phase 3 is repeated.

「中継機無しのシステム構成」
DAネゴシエーション
本構成は、図16で示すように無しの構成である。図17のシーケンスフローを参照して動作を説明する。また、上記と重複する動作については説明を省略する。
"System configuration without repeater"
DA negotiation This configuration has no configuration as shown in FIG. The operation will be described with reference to the sequence flow of FIG. Further, the description of the operation overlapping with the above will be omitted.

フェーズ1
(1)ホスト装置は、電源投入後、予め設定された中継機の台数からホスト装置の配下の最初の中継機の論理アドレスを算出する。ホスト装置は、宛先物理アドレス(PDA)=255(ブロードキャストアドレス)、下位機の論理アドレス(LDA)=0、自局アドレス(LSA)=17、コマンド=1のパケット構成で下位機(中継親機)にブロードキャスト送信する。ホスト装置は、送信完了すると受信待ち状態になる。
(2)中継親機は、ブロードキャストを受信し、パケット内の宛先論理アドレス(LDA)から自局の物理アドレスに変換して、そのアドレスをアドレス保持部642に設定する。中継親機は、受信したLSAから上位機(ホスト装置)の物理アドレスを登録する。次に、中継親機は、受信したLSAを基にPDA=17、自局の論理アドレス(LSA)=0、CMD=0でユニキャスト送信する。
(3)ホスト装置は、下位機(中継親機)からのパケットを受信し、受信したLSAから下位機の物理アドレスを登録する。ホスト装置は、これ以降、受信待ちとなる。
Phase 1
(1) After the power is turned on, the host device calculates the logical address of the first repeater under the control of the host device from the preset number of repeaters. The host device has a packet configuration of destination physical address (PDA) = 255 (broadcast address), lower machine logical address (LDA) = 0, own station address (LSA) = 17, command = 1, and lower machine (relay master unit). ) To broadcast. When the transmission is completed, the host device enters the reception waiting state.
(2) The relay master unit receives the broadcast, converts the destination logical address (LDA) in the packet into the physical address of its own station, and sets the address in the address holding unit 642. The relay master unit registers the physical address of the host unit (host device) from the received LSA. Next, the relay master unit performs unicast transmission with PDA = 17, its own station's logical address (LSA) = 0, and CMD = 0 based on the received LSA.
(3) The host device receives the packet from the lower unit (relay master unit) and registers the physical address of the lower unit from the received LSA. After that, the host device waits for reception.

通常通信動作
フェーズ2
(1)中継親機は、上位機とのDAネゴシエーションが終了すると、子機1台当りの処理時間のタイマーがタイムアウトした時点で、子機アドレス(PDA=1〜16)、コマンド、LSA=0、スリープ時間等のパケットを送信する。
(2)子機は、中継親機からパケットを受信すると、コマンド解析、スリープ時間の設定、センスデータ収集、親機への応答パケット生成を行う。
(3)子機は、生成されたパケット、中継親機の物理アドレス、子機の自局論理アドレスを中継親機に送信する。子機は、送信終了後、指定されたスリープ時間の間、スリープ状態となる。
(4)中継親機は、子機から応答パケットを受信すると上位機用にパケットを生成する。上位機の物理アドレスでPDAを書き換える。「0」⇒「17」。PDA=17、LSA=受信した子機アドレス、子機から受信したパケットを上位機に送信する。
(5)中継親機は、上位機(ホスト機)に送信が終了すると受信待ちとなる。
Normal communication operation
Phase 2
(1) When the DA negotiation with the host unit is completed and the timer for the processing time per slave unit times out, the relay master unit has the slave unit address (PDA = 1 to 16), command, LSA = 0. , Sleep time, etc. are sent.
(2) When the slave unit receives a packet from the relay master unit, it analyzes the command, sets the sleep time, collects sense data, and generates a response packet to the master unit.
(3) The slave unit transmits the generated packet, the physical address of the relay master unit, and the own station logical address of the slave unit to the relay master unit. After the transmission is completed, the slave unit goes to sleep for the specified sleep time.
(4) When the relay master unit receives the response packet from the slave unit, it generates a packet for the host unit. Rewrite the PDA with the physical address of the host machine. "0" ⇒ "17". PDA = 17, LSA = received slave unit address, and packets received from the slave unit are transmitted to the host unit.
(5) The relay master unit waits for reception when transmission to the higher-level unit (host unit) is completed.

フェーズ3
(1)ホスト装置は、中継親機からパケットを受信するとPC用にパケットを生成する。PDAを削除。LSA=受信した子機アドレス、中継親機から受信したパケットをPCに送信する。
(2)ホスト装置は、PCに送信が終了すると受信待ちとなる。
Phase 3
(1) When the host device receives a packet from the relay master unit, it generates a packet for the PC. Deleted PDA. LSA = Received slave unit address and packet received from relay master unit are transmitted to the PC.
(2) The host device waits for reception when transmission to the PC is completed.

フェーズ4
(1)PCは、受信した子機に対応した設定情報を収集する。
(2)PCは、パケットを生成し、ホスト装置に送信する。
(3)PCは、受信待ち及びモニタへの入力待ちとなる。
Phase 4
(1) The PC collects the setting information corresponding to the received slave unit.
(2) The PC generates a packet and sends it to the host device.
(3) The PC waits for reception and input to the monitor.

フェーズ5
(1)ホスト装置は、PCからパケットを受信すると下位機用にパケット生成する。下位機の物理アドレスをPDAとする。PDA=0、LDA=1〜16、LSA=17、PCからの受信パケットを送信する。
(2)ホスト装置は、中継親機に送信が終了すると受信待ちとなる。
Phase 5
(1) When the host device receives a packet from the PC, the host device generates a packet for the lower machine. The physical address of the lower machine is PDA. PDA = 0, LDA = 1-16, LSA = 17, receive packets from the PC are transmitted.
(2) The host device waits for reception when transmission to the relay master unit is completed.

フェーズ6
(1)中継親機は、ホスト機からパケットを受信するとLDAで示される子機の情報テーブルを更新する。
(2)中継親機は、子機1台当りの処理時間のタイマーがタイムアウトするのを待つ。
(3)中継親機は、子機1台当りの処理時間のタイマーがタイムアウトした時点で、次の子機にパケットを送信する。
(4)中継親機は、子機からの応答を待つ。以降、フェーズ2の(2)からの繰り返しとなる。
Phase 6
(1) When the relay master unit receives a packet from the host unit, it updates the information table of the slave unit indicated by the LDA.
(2) The relay master unit waits for the timer for the processing time per slave unit to time out.
(3) The relay master unit transmits a packet to the next slave unit when the timer for the processing time per slave unit times out.
(4) The relay master unit waits for a response from the slave unit. After that, the process from (2) of Phase 2 is repeated.

本実施例によれば、ハードウエアは、図10に示す1種類の親機モジュールと共通であり、そのファームウエアを書き換えることで、中継親機、中継機(最大238台)、ホスト装置の機器に変身させることができ、経済的である。また、子機台数、中継親機、ホスト機以外のアドレスを中継機に与えることが可能なので、処理時間を工夫すれば、通信距離は、膨大なものに延長することが可能になる。従って、複数の子機と中継親機のシステムを人里離れた場所に設置してもWiFi等の回線を経由することなく遠隔監視が可能である。さらに、本無線通信センサシステム内は、2台以上の機器が同時に送信することはないので、高品質な無線通信システムを提供することができる。さらに、DAネゴシエーションの際、下位機の自局物理アドレスは、上位機から送られてくるので、煩わしいDIPスイッチなどの設定が不要である。 According to this embodiment, the hardware is common to one type of master unit module shown in FIG. 10, and by rewriting the firmware, the relay master unit, the repeater (up to 238 units), and the device of the host device. It can be transformed into and is economical. Further, since it is possible to give an address other than the number of slave units, the relay master unit, and the host unit to the repeater, the communication distance can be extended to a huge amount by devising the processing time. Therefore, even if a system of a plurality of slave units and a relay master unit is installed in a remote place, remote monitoring is possible without going through a line such as WiFi. Further, since two or more devices do not transmit at the same time in the wireless communication sensor system, it is possible to provide a high-quality wireless communication system. Further, at the time of DA negotiation, the own station physical address of the lower machine is sent from the higher machine, so that there is no need for troublesome settings such as a DIP switch.

上記実施例では、ホスト装置がコンピュータ装置PCと接続される例を示したが、これは一例であり、ホスト装置は、インターネット等のネットワークを介してコンピュータ装置やサーバーに接続されるものであってもよい。さらにホスト装置が、コンピュータ装置PCの機能を包含するものであってもよい。 In the above embodiment, an example in which the host device is connected to the computer device PC is shown, but this is an example, and the host device is connected to the computer device or the server via a network such as the Internet. May be good. Further, the host device may include the functions of the computer device PC.

以上、本発明の好ましい実施の形態について詳述したが、本発明は、特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。 Although the preferred embodiments of the present invention have been described in detail above, the present invention is not limited to the specific embodiments, and various aspects are within the scope of the gist of the present invention described in the claims. It can be transformed and changed.

1:無線通信センサシステム 10:親機
20(20a〜20n):子機 30:ホスト装置
200:通信制御プログラム 210:クエリ作成部
220:スリープ時間情報設定部 230:クエリ送信部
240:応答メッセージ受信部 250:子機情報提供部
400:電池 402、404:DC/DC変換器
410、412:リセット回路 420:スリープタイマ
430:制御部(MPU) 440:電源ロード制御回路
450:アドレス保持部 460:割込み制御部
470:無線モジュール 480:カウンタ
1: Wireless communication sensor system 10: Master unit 20 (20a to 20n): Slave unit 30: Host device 200: Communication control program 210: Query creation unit 220: Sleep time information setting unit 230: Query transmission unit 240: Response message reception Unit 250: Slave unit information providing unit 400: Battery 402, 404: DC / DC converter 410, 412: Reset circuit 420: Sleep timer 430: Control unit (MPU) 440: Power supply load control circuit 450: Address holding unit 460: Interruption control unit 470: Wireless module 480: Counter

Claims (10)

複数の子機と、複数の子機と無線通信を行う中継親機と、当該中継親機と無線通信を行う少なくとも1つの中継機と、当該中継機と無線通信を行うホスト装置とを備えた無線通信システムにおける通信方法であって、
中継機またはホスト装置は、少なくともブロードキャスト送信かユニキャスト送信かを示す情報、送信元論理アドレスおよび宛先論理アドレスを含む形式のデータを送信する第1のステップと、
前記データを受信した中継機または中継親機は、受信したデータがブロードキャスト送信を示しかつ自局の論理アドレスが未設定であるとき、前記宛先論理アドレスを自局の論理アドレスに設定し、かつ前記送信元論理アドレスを上位機の論理アドレスに設定する第2のステップと、
前記自局の論理アドレスを設定した中継機または中継親機は、受信したデータに含まれる前記送信元論理アドレスをユニキャスト送信の宛先論理アドレスとし、かつユニキャスト通信の送信元論理アドレスとして前記自局の論理アドレスを含むデータを送信する第3のステップと、
ユニキャスト送信されたデータを受信した上位機は、受信したデータに含まれる前記送信元論理アドレスを下位機のアドレスに設定する第4のステップとを含み、
第1ないし第4のステップにより上位機と下位機との間の接続関係を確立し、複数の子機、中継親機、中継機およびホスト装置間での通信を可能にする、通信方法。
It is provided with a plurality of slave units, a relay master unit that performs wireless communication with the plurality of slave units, at least one repeater that performs wireless communication with the relay master unit, and a host device that performs wireless communication with the repeater. A communication method in a wireless communication system
The repeater or host device transmits the first step of transmitting data in a format including at least information indicating whether it is broadcast transmission or unicast transmission, a source logical address, and a destination logical address.
The repeater or relay base unit data has been received, when the logical address of the received data indicates a broadcast transmission and the own station is not set, setting the destination logical address in the logical address of the own station, and the a second step of setting the transmission source logical address into the logical address of the upper machine,
The repeater or relay base unit sets the logical address of the own station, the self-the source logical address included in the received data as the destination logical address of the unicast transmission, and a transmission source logical address of the unicast communication The third step of transmitting data including the logical address of the station ,
The host machine that has received the unicast transmitted data includes a fourth step of setting the source logical address included in the received data to the address of the lower machine.
A communication method for establishing a connection relationship between a higher-level unit and a lower-level unit by the first to fourth steps and enabling communication between a plurality of slave units, a relay master unit, a repeater, and a host device.
ホスト装置は、予め設定された中継機の台数に基づき下位機である中継機の論理アドレスを算出する、請求項1に記載の通信方法。 The communication method according to claim 1, wherein the host device calculates a logical address of a repeater that is a lower-level machine based on a preset number of repeaters. 無線通信システムにおける子機1台当たりのデータ処理は、中継親機、子機、中継親機、中継機、ホスト装置、中継機、中継親機を1サイクルとする、請求項1に記載の通信方法。 The communication according to claim 1, wherein the data processing per slave unit in the wireless communication system includes a relay master unit, a slave unit, a relay master unit, a repeater, a host device, a repeater, and a relay master unit as one cycle. Method. 中継親機は、選択された子機にデータを送信し、当該データを受信した子機から当該子機に関するデータを受け取り、受信した子機に関するデータを中継機に送信し、
中継機は、受信した子機に関するデータをホスト装置に送信し、
ホスト装置は、子機に関するデータを受け取り、当該子機に関するデータに基づき新たな子機に関するデータを生成し、当該新たな子機に関するデータを中継機に送信し、
中継機は、受信した新たな子機に関するデータを中継親機に送信し、
中継親機は、受信した新たな子機に関するデータに基づき前記選択された子機にデータを送信する、請求項3に記載の通信方法。
The relay master unit transmits data to the selected slave unit, receives data related to the slave unit from the slave unit that received the data, and transmits data related to the received slave unit to the repeater.
The repeater sends the received data about the slave unit to the host device,
The host device receives the data about the slave unit, generates the data about the new slave unit based on the data about the slave unit, and transmits the data about the new slave unit to the repeater.
The repeater transmits the received data about the new slave unit to the relay master unit,
The communication method according to claim 3, wherein the relay master unit transmits data to the selected slave unit based on the received data related to the new slave unit.
中継親機、中継機およびホスト装置は、それぞれ共通の無線モジュールを含み、無線モジュールによる通信可能な距離をL1としたとき、中継親機、中継機およびホスト装置は、距離L1よりも小さい間隔で設置され、ホスト装置がブロードキャスト送信するとき、1つの中継局が受信可能な距離に存在する、請求項1ないし4いずれか1つに記載の通信方法。 The relay master unit, the repeater, and the host device each include a common wireless module, and when the communicable distance by the wireless module is L1, the relay master unit, the repeater, and the host device are at intervals smaller than the distance L1. The communication method according to any one of claims 1 to 4, wherein when the host device is installed and the host device broadcasts, the relay station exists at a receivable distance. 複数の子機と、複数の子機と無線通信を行う中継親機と、当該中継親機と無線通信を行う少なくとも1つの中継機と、当該中継機と無線通信を行うホスト装置とを備えた無線通信システムであって、
前記中継機は、アドレス設定シーケンスにおいて、少なくともブロードキャスト送信かユニキャスト送信かを示す情報、送信元論理アドレスおよび宛先論理アドレスを含む形式のデータを無線通信する通信手段と、自局を識別する論理アドレス、上位機を識別する論理アドレスおよび下位機を識別する論理アドレスを設定する設定手段とを含み、
前記設定手段は、受信したデータがブロードキャスト送信を示しかつ自局の論理アドレスが未設定であるとき、受信したデータに含まれる宛先論理アドレスを自局の論理アドレスに設定し、かつ前記送信元論理アドレスを上位機の論理アドレスに設定し、
前記設定手段は、受信したデータが自局へのユニキャスト送信であるとき、受信したデータに含まれる宛先論理アドレスを下位機の論理アドレスに設定し、
前記通信手段は、前記設定手段により自局の論理アドレスを設定した場合、受信したデータに含まれる送信元論理アドレスをユニキャスト送信の宛先論理アドレスとし、かつユニキャスト通信の送信元論理アドレスとして前記自局の論理アドレスを含むデータを送信する、無線通信システム。
It is provided with a plurality of slave units, a relay master unit that performs wireless communication with the plurality of slave units, at least one repeater that performs wireless communication with the relay master unit, and a host device that performs wireless communication with the repeater. It is a wireless communication system
In the address setting sequence, the repeater wirelessly communicates data in a format including at least information indicating broadcast transmission or unicast transmission, a source logical address, and a destination logical address, and a logical address that identifies the own station. , Including a setting means for setting a logical address for identifying a higher-level machine and a logical address for identifying a lower-level machine.
The setting means, when the logical address of the received data indicates a broadcast transmission and the own station is not set, set the destination logical address contained in the received data to the logical address of the own station, and the transmission source logical Set the address to the logical address of the host machine,
The setting means, when the received data is a unicast transmission to the local station, sets the destination logical address contained in the received data to the logical address of the child machine,
When the logical address of its own station is set by the setting means, the communication means uses the source logical address included in the received data as the destination logical address for unicast transmission and the source logical address for unicast communication. A wireless communication system that transmits data including the logical address of its own station .
ホスト装置は、予め設定された中継機の台数に基づきホスト装置の直下の中継機の論理アドレスを算出する算出手段を含み、前記通信手段は、前記算出された中継機の論理アドレスを宛先論理アドレスとし、ホスト装置の自局の論理アドレスを送信元論理アドレスとするデータを送信し、
前記直下の中継機は、下位の中継機の論理アドレスを算出する算出手段を含み、前記通信手段は、前記算出された下位の中継機の論理アドレスを宛先論理アドレスとし、前記直下の中継機の自局の論理アドレスを送信元アドレスとするデータを送信する、請求項6に記載の無線通信システム。
The host device includes a calculation means for calculating the logical address of the repeater directly under the host device based on a preset number of repeaters, and the communication means uses the calculated logical address of the repeater as the destination logical address. Then, send data with the logical address of the host device's own station as the source logical address.
The repeater directly below includes a calculation means for calculating the logical address of the lower repeater, and the communication means uses the calculated logical address of the lower repeater as the destination logical address, and the repeater directly under the communication means. The wireless communication system according to claim 6, wherein data with the logical address of the own station as the source address is transmitted.
前記設定手段は、送信元論理アドレスおよび宛先論理アドレスを物理アドレスに変換してアドレス設定部に設定する、請求項6または7に記載の無線通信システム。 The wireless communication system according to claim 6 or 7, wherein the setting means converts a source logical address and a destination logical address into physical addresses and sets them in an address setting unit. ホスト装置、中継機および中継親機は、共通のハードウエアから構成され、共通のハードウエアは、メモリ、タイマー、無線モジュールおよびソフトウエアを実行するための制御部を含む、請求項6ないし8いずれか1つに記載の無線通信システム。 The host device, the repeater, and the relay master unit are composed of common hardware, and the common hardware includes a memory, a timer, a wireless module, and a control unit for executing software. The wireless communication system according to one. 複数の子機はそれぞれセンサを含み、中継親機は、複数の子機を間欠的にアクセスし、複数の子機からセンサに関するデータを順次取得し、取得したセンサに関するデータを中継機を介してホスト装置へ順次提供する、請求項6ないし9いずれか1つに記載の無線通信システム。
Each of the plurality of slave units includes a sensor, and the relay master unit intermittently accesses the plurality of slave units, sequentially acquires data related to the sensor from the plurality of slave units, and acquires the acquired data related to the sensor via the repeater. The wireless communication system according to any one of claims 6 to 9, which is sequentially provided to a host device.
JP2019058229A 2019-03-26 2019-03-26 Wireless communication system and communication distance extension method Active JP6795645B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019058229A JP6795645B2 (en) 2019-03-26 2019-03-26 Wireless communication system and communication distance extension method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019058229A JP6795645B2 (en) 2019-03-26 2019-03-26 Wireless communication system and communication distance extension method

Publications (2)

Publication Number Publication Date
JP2020161937A JP2020161937A (en) 2020-10-01
JP6795645B2 true JP6795645B2 (en) 2020-12-02

Family

ID=72640011

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019058229A Active JP6795645B2 (en) 2019-03-26 2019-03-26 Wireless communication system and communication distance extension method

Country Status (1)

Country Link
JP (1) JP6795645B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702056B (en) * 2020-12-03 2023-07-21 成都海光集成电路设计有限公司 Integrated circuit, broadcasting method of integrated circuit, relay module and electronic device
WO2024116454A1 (en) * 2022-11-28 2024-06-06 株式会社パトライト Wireless communication system and relay device
CN116383110A (en) * 2022-12-29 2023-07-04 孚瑞肯电气(深圳)有限公司 Modbus communication module and communication method

Also Published As

Publication number Publication date
JP2020161937A (en) 2020-10-01

Similar Documents

Publication Publication Date Title
JP6795645B2 (en) Wireless communication system and communication distance extension method
JP7304231B2 (en) Measuring terminal device and remote monitoring system
US9201488B2 (en) Access point rotation for sharing power load
US10091748B2 (en) Communications node, system, and synchronizing method
CN102663979B (en) A kind of electronic tag display terminal control system and method
US20070051872A1 (en) Network sensor system and protocol
US20150245296A1 (en) Mesh relay
JP6082734B2 (en) Wireless communication system
US8787274B2 (en) Communication system
WO2010084699A1 (en) Information processing apparatus, wireless terminal, information processing program, and wireless terminal program
JP2008109198A (en) Wireless meter reading system, and wireless meter reading method
JP2009206749A (en) Multi-hop wireless network system
KR100624792B1 (en) Wireless network system
JP2010271897A (en) Wireless meter reading system
JP5591147B2 (en) Wireless telemeter system capable of multi-stage relay and wireless slave unit used in the wireless telemeter system
JP6251363B1 (en) Battery-driven wireless communication system and communication method
US20120158343A1 (en) Operating method of sensor node, operating method of data sink in sensor network, and sensor network
JP6473494B1 (en) Battery-driven wireless communication system and synchronization correction method
WO2020196811A1 (en) Method and system including constructing communication network
KR100831840B1 (en) Zigbee tag and method for operating the same
KR101599905B1 (en) Wireless communication module and method for providing automatic configuration of network
US8046611B2 (en) Information transmission device, system, and method
KR100836886B1 (en) Electric power control system having a part of human detection sensor
JP2006352546A (en) Sensor module and management system
US20220060867A1 (en) Wireless sensor device, host device, and method of controlling low-power operation of wireless sensor device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190326

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200204

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20200331

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200617

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200721

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20201111

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201112

R150 Certificate of patent or registration of utility model

Ref document number: 6795645

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250