JP2012029159A - Wireless communication system - Google Patents

Wireless communication system Download PDF

Info

Publication number
JP2012029159A
JP2012029159A JP2010167313A JP2010167313A JP2012029159A JP 2012029159 A JP2012029159 A JP 2012029159A JP 2010167313 A JP2010167313 A JP 2010167313A JP 2010167313 A JP2010167313 A JP 2010167313A JP 2012029159 A JP2012029159 A JP 2012029159A
Authority
JP
Japan
Prior art keywords
parent
child
child relationship
unit
parent device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010167313A
Other languages
Japanese (ja)
Inventor
Yoshitaka Osawa
義孝 大澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Azbil Corp
Original Assignee
Azbil Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Azbil Corp filed Critical Azbil Corp
Priority to JP2010167313A priority Critical patent/JP2012029159A/en
Publication of JP2012029159A publication Critical patent/JP2012029159A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To automatically set a master-slave relation in both a slave unit side and a master unit side while the slave unit side takes the initiative in setting the master-slave relation.SOLUTION: A slave unit 1 transmits a transmission message M1 including all master unit IDs stored in a master unit information storage part 1H, own ID, and measurement data to a master unit 2. The master unit 2 transmits a master-slave relation settable notification A to the slave unit 1, if own master unit ID is not included in the transmission message M1 from the slave unit 1 and if a slave unit data storage part 2G has an unoccupied area. The slave unit 1 receives the master-slave relation settable notification A and, if the master unit information storage part 1H has an unoccupied area, stores a master ID attached to the master-slave relation settable notification A in the unoccupied area. Then the slave unit 1 transmits a master-slave relation setting notification B to the master unit 2 which is a transmission source of the master-slave relation settable notification A. The master unit 2 stores a slave unit ID attached to the master-slave relation setting notification B in the unoccupied area in the slave unit data storage part 2G.

Description

この発明は、双方向の通信機能を備えた親機と子機との間でメッセージの送受信を行う無線通信システムに関するものである。   The present invention relates to a wireless communication system that transmits and receives messages between a parent device and a child device having a bidirectional communication function.

従来より、大規模な空間を持つ建物内では、その建物内に空調設備,防犯設備,照明設備など多数の設備が設置されている。そして、これらの設備に対しては、その設備を適切にあるいは効率よく動作させるための制御装置(空調用、防犯用、照明用などの制御装置)が設けられており、それら制御装置が各種制御を実行するうえで必要な情報をセンシングして制御装置に送るセンサも多数設置されている。   Conventionally, in a building having a large space, many facilities such as air conditioning equipment, crime prevention equipment, and lighting equipment are installed in the building. For these facilities, control devices (control devices for air conditioning, crime prevention, lighting, etc.) for operating the facilities appropriately or efficiently are provided. Many sensors are installed to sense and send information necessary to execute the control.

以前は、それら設備、制御装置、センサ間は全て有線で接続されていたが、近年、無線通信技術が発達し、配線接続の手間が軽減でき、しかも現場設置後の機器の増設や設置場所の変更に柔軟に対処できるように、特に制御装置とセンサ間を無線で接続する方式(無線通信方式)が急速に普及してきている。   Previously, these facilities, control devices, and sensors were all connected by wire, but in recent years, wireless communication technology has been developed, reducing the labor of wiring connections, and adding equipment after installation on site or In particular, a method of wirelessly connecting a control device and a sensor (wireless communication method) has been rapidly spreading so that the change can be flexibly dealt with.

大規模な空間を持つ建物内で、上述したような無線通信方式を採用すると、無線センサのセンシング情報を受信する受信機である無線制御装置と、センシング情報を無線制御装置に送信する送信機である無線センサがそれぞれ多数混在することになるので、運用前に、互いに送受信する無線制御装置と無線センサとを定め、その無線制御装置と無線センサとの間に親子の接続関係(以下、親子関係とも呼ぶ)を決めておく必要がある。すなわち、無線制御装置を親機、無線センサを子機とし、互いに送受信する親機と子機との接続関係を決めておく必要がある。   When a wireless communication system such as that described above is adopted in a building having a large space, a wireless control device that is a receiver that receives sensing information of a wireless sensor, and a transmitter that transmits the sensing information to the wireless control device. Since there are many wireless sensors, a wireless control device and a wireless sensor that transmit and receive each other are defined before operation, and a parent-child connection relationship between the wireless control device and the wireless sensor (hereinafter referred to as a parent-child relationship). Also called). That is, it is necessary to determine the connection relationship between the parent device and the child device that transmit and receive each other with the wireless control device as the parent device and the wireless sensor as the child device.

なお、親機は1台の子機とだけ親子関係を設定することも、複数台の子機と並列的に親子関係を設定することも可能であるが、自己と親子関係を設定することが可能な子機の最大台数は予め定められている。また、子機も1台の親機とだけ親子関係を設定することも、複数台の親機と並列的に親子関係を設定することも可能であるが、自己と親子関係を設定することが可能な親機の最大台数は予め定められている。   The parent device can set a parent-child relationship with only one child device, or can set a parent-child relationship with a plurality of child devices in parallel, but can set a parent-child relationship with itself. The maximum number of possible slave units is determined in advance. In addition, it is possible for a slave unit to set a parent-child relationship with only one master unit, or to set a parent-child relationship in parallel with multiple master units, but it is possible to set a parent-child relationship with itself. The maximum number of possible master units is predetermined.

従来、親機と子機との間の親子関係の設定作業は、人手に頼っており、現場に多数の親機および子機が存在すると親子関係の設定・変更作業が煩わしく、また人為的なミスにより誤って親子関係の設定・変更を行ってしまう場合も多々あった。   Conventionally, the setting work of the parent-child relationship between the parent machine and the child machine has relied on humans, and if there are many parent machines and child machines at the site, the setting and changing work of the parent-child relationship is cumbersome and artificial. There were many cases where a parent-child relationship was set or changed by mistake.

また、一度、親子関係を設定すると、再設定しない限り、その親子関係が維持されてしまう。このため、例えば、親子関係を設定された子機が故障して通信不能となったり、子機が通信圏外に持ち運ばれたり、親機と子機との間に通信障害物が置かれて通信不能となると、子機のセンシング情報が親機に受信されないので、親機が適切な制御を行えないという問題がある。更に、そのような通信不能の親子関係の設定が放置されると、親子関係を設定可能な子機の台数の余裕が減少し、後に子機が増設されることになったような場合に支障が生じる。   Once the parent-child relationship is set, the parent-child relationship is maintained unless it is reset. For this reason, for example, a slave set with a parent-child relationship breaks down and communication is disabled, the slave is carried outside the communication range, or a communication obstacle is placed between the master and slave. When communication is disabled, the sensing information of the slave unit is not received by the master unit, which causes a problem that the master unit cannot perform appropriate control. Furthermore, if such a communication-disabled parent-child relationship setting is left unattended, there will be a problem if the number of child devices that can be set with a parent-child relationship is reduced and a child device is added later. Occurs.

これに対して、特許文献1では、子機に、親機を指定する親機指定手段と、テスト開始を指示するテスト開始手段と、テスト開始が指示された場合、親機指定手段によって指定された親機をテスト対象とし、このテスト対象に対して通信テストを行う通信手段と、通信テストの結果が良好であった場合、その通信テストのテスト対象である親機を接続先とする親子関係の変更を自動的に行う手段とを設けるようにしている。これにより、親子関係の設定・変更作業が簡単となる。   On the other hand, in Japanese Patent Laid-Open No. 2004-228867, a master unit designating unit for designating a master unit, a test start unit for instructing a test start, and a test start are designated by the master unit designating unit. The parent-child relationship that sets the parent device that is the test target of the communication test as the connection destination, and the communication means that performs the communication test for this test target and the communication test result is good And a means for automatically making the change. This makes it easy to set and change the parent-child relationship.

一方、特許文献2には、無線によってデータを送信する子機と、この子機からの送信データを受信する親機とを備えた無線通信システムにおいて、子機に、自己の識別情報を付加してデータを定期的に送信するデータ送信手段を設け、親機に、自己と親子の接続関係(親子関係)が設定された子機の情報の記憶エリアとして少なくともその子機の識別情報とその子機からの送信データが記録される子機データ記憶エリアを自己と親子関係を設定することが可能な子機の最大台数分有する子機データ記憶手段と、子機からの送信データを受信するデータ受信手段と、このデータ受信手段によって受信された子機からの送信データに付加されている識別情報を読み取る識別情報読取手段と、この識別情報読取手段によって読み取られた識別情報が子機データ記憶エリアに記録されていない識別情報であり、子機データ記憶エリアに未だ子機の情報が記録されていない空エリアが残されていた場合、その残されている空エリアの1つに子機からの識別情報を記録することによりその子機との親子関係を設定する親子関係自動設定手段と、識別情報読取手段によって確認された識別情報が子機データ記憶エリアに記録されている識別情報であった場合、その識別情報が記録されている子機データ記憶エリアに子機からの送信データを記録する送信データ記録手段とを設けるようにしている。これにより、ユーザの手を煩わせることなく、自己と親子関係を設定することが可能な子機の最大台数まで、子機との親子関係が自動的に親機に設定されるものとなる。   On the other hand, in Patent Document 2, in a wireless communication system including a slave unit that transmits data wirelessly and a master unit that receives transmission data from the slave unit, self-identification information is added to the slave unit. The data transmission means for periodically transmitting data is provided, and at least the identification information of the slave unit and the slave unit are stored as a storage area for the slave unit information in which the connection relationship between the parent and the child is set in the master unit. Slave device data storage area having a maximum number of slave devices capable of setting a parent-child relationship with the slave device data storage area in which transmission data is recorded, and data receiving means for receiving transmission data from the slave device The identification information reading means for reading the identification information added to the transmission data from the slave unit received by the data receiving means, and the identification information read by the identification information reading means If there is an empty area that is not recorded in the machine data storage area and in which the information of the child machine is not yet recorded in the child machine data storage area, it is listed as one of the remaining empty areas. The parent-child relationship automatic setting means for setting the parent-child relationship with the child device by recording the identification information from the child device, and the identification information in which the identification information confirmed by the identification information reading means is recorded in the child device data storage area In this case, transmission data recording means for recording transmission data from the slave unit is provided in the slave unit data storage area in which the identification information is recorded. As a result, the parent-child relationship with the child device is automatically set in the parent device up to the maximum number of child devices that can set the parent-child relationship with itself without bothering the user.

特開2004−357254号公報JP 2004-357254 A 特開2009−246869号公報JP 2009-246869 A

しかしながら、上述した特許文献1に示された方式では、子機の親機指定手段とテスト開始手段をユーザが操作しなければ、親子関係を設定・変更することができない。すなわち、特許文献1に示された方式は、半自動方式であって、完全な自動方式とは言えず、ユーザにとっての煩わしさが依然として残っている。   However, in the method disclosed in Patent Document 1 described above, the parent-child relationship cannot be set or changed unless the user operates the parent device designation unit and the test start unit of the child device. In other words, the method disclosed in Patent Document 1 is a semi-automatic method, and cannot be said to be a complete automatic method.

また、上述した特許文献1に示された方式では、親子関係を設定した親機と子機との間で通信不能な状態になっていることをユーザが気づかないと、そのまま通信不能の親子関係の設定が放置されてしまい、親子関係を設定可能な子機の台数の余裕が減少するという問題は解消されない。   Further, in the method disclosed in Patent Document 1 described above, if the user does not notice that communication between the parent device and the child device in which the parent-child relationship is set is disabled, the parent-child relationship that cannot be communicated as it is. The problem that the margin of the number of slave units that can set the parent-child relationship is reduced is not solved.

これに対して、特許文献2に示された方式は、特許文献1での問題を解決することができる点で優れている。しかしながら、この特許文献2に示された方式では、子機は送信できるが受信はできないので、親子関係の設定を親機側主導で行っている。ビル監視システム、もしくは大規模空間の空調制御システム等では、通常、親機の台数に対して子機の台数が圧倒的に多い(親機台数の数倍)。また、子機は設定された最大台数以上の親機と親子関係を結ぶことができず、この子機側の親子関係の調整も親機側で行わなければならない。このため、特許文献2に示された方式では、初期に一斉に親子関係を設定しようとする場合、親機側の負荷が著しく高くなる。   On the other hand, the method shown in Patent Document 2 is excellent in that the problem in Patent Document 1 can be solved. However, in the method disclosed in Patent Document 2, since the slave unit can transmit but cannot receive, the parent-child relationship is set by the master unit. In a building monitoring system or an air conditioning control system in a large-scale space, the number of slave units is usually overwhelmingly larger than the number of master units (several times the number of master units). Further, the slave unit cannot establish a parent-child relationship with the set maximum number of parent units, and the parent-child relationship must be adjusted on the master unit side. For this reason, in the method disclosed in Patent Document 2, when the parent-child relationship is to be set all at once in the initial stage, the load on the parent device side is significantly increased.

また、特許文献2に示された方式において、設定された親子関係は親機側にのみ記憶されており、子機側では自己と親子関係が設定されている親機はどれなのか認識することができない。このため、万が一、親機側で保存している親子関係情報が消失した場合に、その親子関係を復元することが困難である。   Further, in the method disclosed in Patent Document 2, the set parent-child relationship is stored only on the parent device side, and the child device side recognizes which parent device has a parent-child relationship set with itself. I can't. For this reason, in the unlikely event that the parent-child relationship information stored on the parent device side is lost, it is difficult to restore the parent-child relationship.

なお、複数の親機同士が互いに他の親機の親子関係情報をバックアップして保持するようにすれば、ある親機の親子関係情報が消失した場合でも他の親機にバックアップされている親子関係情報を読み出させば容易に復元することができるが、親機の記憶部の容量の大容量化を招く。   In addition, if multiple parent devices back up and hold the parent-child relationship information of other parent devices, even if the parent-child relationship information of one parent device disappears, the parent and child that are backed up to another parent device Although it can be easily restored by reading the related information, the capacity of the storage unit of the parent device is increased.

本発明は、このような課題を解決するためになされたもので、その目的とするところは、親子関係の設定を子機側主導で行わせるとともに、子機側、親機側双方に親子関係を自動的に設定することが可能な無線通信システムを提供することにある。   The present invention has been made in order to solve such problems. The purpose of the present invention is to set the parent-child relationship at the initiative of the slave unit and to establish the parent-child relationship on both the slave unit side and the master unit side. It is an object of the present invention to provide a wireless communication system that can automatically set the value.

このような目的を達成するために、本発明は、双方向の通信機能を備えた親機と子機との間でメッセージの送受信を行う無線通信システムにおいて、子機に、自己と親子の接続関係(親子関係)が設定された親機の情報の記憶エリアとして少なくともその親機の識別情報が記憶される親機情報記憶エリアを自己と親子関係を設定することが可能な親機の最大台数分有する親機情報記憶手段と、親機情報記憶エリアに記憶されている全ての親機の識別情報と自己の識別情報と送信データとを含む送信メッセージを定期的に送信する送信メッセージ送信手段とを設け、親機に、自己と親子関係が設定された子機の情報の記憶エリアとして少なくともその子機の識別情報とその子機からの送信データが記憶される子機データ記憶エリアを自己と親子関係を設定することが可能な子機の最大台数分有する子機データ記憶手段と、子機からの送信メッセージを受信する送信メッセージ受信手段と、受信された子機からの送信メッセージに含まれている親機の識別情報をチェックし、この親機の識別情報に自己の親機の識別情報が含まれていない場合、子機データ記憶エリアに子機の情報が記憶されていない空エリアが存在するか否かを調べ、空エリアが存在する場合には、受信された送信メッセージの送信元の子機に宛てて自己の識別情報を付加して親子関係が設定可能である旨の親子関係設定可能通知を送信する親子関係設定可能通知送信手段とを設けたものである。   In order to achieve such an object, the present invention provides a wireless communication system in which a message is transmitted and received between a parent device having a bidirectional communication function and a child device. Maximum number of master units that can set a parent-child relationship with at least a master unit information storage area in which identification information of the master unit is stored as a storage area for information on the master unit for which a relationship (parent-child relationship) is set And a transmission message transmission means for periodically transmitting a transmission message including the identification information of all the parent devices stored in the parent device information storage area, its own identification information, and transmission data. The child unit data storage area in which at least the identification information of the child device and the transmission data from the child device are stored is stored as the child device information storage area in which the parent-child relationship is set in the parent device. Included in the slave unit data storage means having the maximum number of slave units that can be set to be connected, the transmission message receiving means for receiving a transmission message from the slave unit, and the received transmission message from the slave unit If the identification information of the parent device is not included in the identification information of the parent device, there is an empty area in which the child device information is not stored in the child device data storage area If there is an empty area, set the parent-child relationship that the parent-child relationship can be set by adding its own identification information to the child device that is the source of the received transmission message And a parent-child relationship setting enable notification transmitting means for transmitting the enable notification.

この発明において、子機には、自己と親子関係を設定することが可能な親機の最大台数分の親機情報記憶エリアを有する親機情報記憶手段が設けられる。例えば、自己と親子関係を設定することが可能な親機の最大台数を2台とした場合、親機情報記憶手段は2つの親機情報記憶エリアPAR1,PAR2を有することになる。この親機情報記憶エリアPAR1,PAR2は、初期状態(例えば、工場出荷状態)において、親機の情報が未だ記憶されていない空エリアとされている。   In the present invention, the child device is provided with parent device information storage means having a parent device information storage area for the maximum number of parent devices that can set a parent-child relationship with itself. For example, when the maximum number of parent devices that can set a parent-child relationship with itself is two, the parent device information storage means has two parent device information storage areas PAR1 and PAR2. The parent device information storage areas PAR1 and PAR2 are empty areas in which information on the parent device is not yet stored in an initial state (for example, factory shipment state).

また、親機には、自己と親子関係を設定することが可能な子機の最大台数分の子機データ記憶エリアを有する子機データ記憶手段が設けられる。例えば、自己と親子関係を設定することが可能な子機の最大台数を3台とした場合、子機データ記憶手段は3つの子機データ記憶エリアCAR1,CAR2,CAR3を有することになる。この子機データ記憶エリアCAR1,CAR2,CAR3は、初期状態(例えば、工場出荷状態)において、子機の情報が未だ記憶されていない空エリアとされている。   The master unit is provided with slave unit data storage means having a slave unit data storage area for the maximum number of slave units that can set a parent-child relationship with itself. For example, when the maximum number of slave units that can set a parent-child relationship with itself is three, the slave unit data storage means has three slave unit data storage areas CAR1, CAR2, and CAR3. The slave unit data storage areas CAR1, CAR2, and CAR3 are empty areas in which the slave unit information is not yet stored in the initial state (for example, factory shipment state).

ここで、子機をC1、親機をP1,P2,P3とし、子機C1が親機情報記憶エリアに記憶されている全ての親機の識別情報と自己の識別情報と送信データとを含む送信メッセージM1を送信し、この送信メッセージM1が親機P1,P2,P3で受信されたとする。親機P1,P2,P3は、子機C1からの送信メッセージM1を受信すると、この送信メッセージM1に含まれている親機の識別情報をチェックし、この親機の識別情報に自己の識別情報が含まれていなければ、子機データ記憶エリアに空エリアが存在するか否かを調べる。ここで、子機データ記憶エリアに空エリアが存在すれば、親機P1,P2,P3は、子機C1との親子関係の設定が可能であると判断し、子機C1に宛てて、自己の識別情報#P1,#P2,#P3を付加して、親子関係設定可能通知A1,A2,A3を送信する。   Here, the slave unit is C1, the master unit is P1, P2, P3, and the slave unit C1 includes the identification information of all the master units stored in the master unit information storage area, its own identification information, and transmission data. Assume that a transmission message M1 is transmitted and the transmission message M1 is received by the parent devices P1, P2, and P3. When receiving the transmission message M1 from the child device C1, the parent devices P1, P2, P3 check the identification information of the parent device included in the transmission message M1, and the identification information of the parent device is included in the identification information of the parent device P1, P2, P3. Is not included, it is checked whether or not there is an empty area in the handset data storage area. Here, if there is an empty area in the child device data storage area, the parent devices P1, P2, and P3 determine that the parent-child relationship with the child device C1 can be set, and address the self device to the child device C1. Identification information # P1, # P2, # P3 is added, and parent-child relationship setting availability notifications A1, A2, A3 are transmitted.

本発明において、親機からの親子関係設定可能通知の送信後の処理を行う構成として、例えば、子機に、親機からの自己に宛てられた親子関係設定可能通知を受信した場合、親機情報記憶エリアに親機の情報が記憶されていない空エリアが存在するか否かを調べ、空エリアが存在する場合、その空エリアの1つに受信した親子関係設定可能通知に付加されている親機の識別情報を記憶し、その親子関係設定可能通知の送信元の親機に宛てて自己の識別情報を付加して子機側での親子関係の設定を知らせる親子関係設定通知を送信する子機側親子関係設定手段を設け、親機に、子機からの自己に宛てられた親子関係設定通知を受信した場合、子機情報記憶エリアの空エリアの1つに、受信した親子関係設定通知に付加されている子機の識別情報を記憶する親機側親子関係設定手段を設けることが考えられる。   In the present invention, as a configuration for performing processing after transmission of a parent-child relationship setting availability notification from the parent device, for example, when the parent device receives a parent-child relationship setting possibility notification addressed to itself from the parent device, It is checked whether or not there is an empty area in which information of the parent device is not stored in the information storage area. If there is an empty area, it is added to the parent-child relationship setting availability notification received in one of the empty areas. The identification information of the parent device is stored, and the parent-child relationship setting notification for notifying the setting of the parent-child relationship on the child device side is transmitted to the parent device that is the transmission source of the parent-child relationship setting notification When a parent-child relationship setting means is provided and the parent device receives a parent-child relationship setting notification addressed to itself from the child device, the received parent-child relationship setting is set in one of the empty areas of the child device information storage area. Identification information of the slave unit added to the notification It is conceivable to provide a base-side child relationship setting means for storing.

このような構成とした場合、子機C1において、例えば親機情報記憶エリアPAR1,PAR2が空エリアとされていた場合、親機P1,P2,P3から親子関係設定可能通知A1,A2,A3が送られてくると、この送られてきた親子関係設定可能通知A1,A2,A3に付加されている親機の識別情報#P1,#P2,#P3のうちの何れか2つが空エリアPAR1,PAR2に記憶されるものとなる。例えば、受信時の通信品質が良好であった親子関係設定可能通知A1,A2が選択され、その選択された親子関係設定可能通知A1,A2に付加されている親機の識別情報#P1,#P2が親機情報記憶エリアPAR1,PAR2に記憶されるものとなる。これにより、親機P1,P2との親子関係が子機C1側に自動的に設定されるものとなる。また、この場合、子機C1から自己の識別情報#C1を付加して親機P1,P2に子機側での親子関係の設定を知らせる親子関係設定通知B1,B2が送られ、親機P1,P2の子機データ記憶エリア(空エリア)に子機C1の識別情報#C1が記憶されるものとなる。これにより、子機側主導で子機C1と親機P1,P2との親子関係が定められた後、子機C1側だけではなく、親機P1,P2側にも子機C1との親子関係が自動的に設定されるものとなる。   In such a configuration, in the slave unit C1, for example, when the master unit information storage areas PAR1, PAR2 are empty areas, the parent-child relationship setting notifications A1, A2, A3 are sent from the master units P1, P2, P3. When sent, any two of the parent machine identification information # P1, # P2, # P3 added to the sent parent-child relationship setting notification A1, A2, A3 are sent to the empty area PAR1, It will be stored in PAR2. For example, parent-child relationship setting possible notifications A1, A2 having good communication quality at the time of reception are selected, and parent device identification information # P1, # 2 added to the selected parent-child relationship setting possible notifications A1, A2 P2 is stored in the parent device information storage areas PAR1 and PAR2. As a result, the parent-child relationship with the parent devices P1 and P2 is automatically set on the child device C1 side. In this case, parent-child relationship setting notifications B1, B2 are sent from the child device C1 to the parent devices P1, P2 to notify the setting of the parent-child relationship on the child device side to the parent devices P1, P2, and the parent device P1. , P2 of the slave unit data storage area (empty area), the identification information # C1 of the slave unit C1 is stored. Thereby, after the parent-child relationship between the child device C1 and the parent devices P1 and P2 is determined under the initiative of the child device, not only the child device C1 side but also the parent-child relationship with the child device C1 on the parent devices P1 and P2 side. Is automatically set.

本発明によれば、子機に、自己と親子関係を設定することが可能な親機の最大台数分の親機情報記憶エリアを有する親機情報記憶手段と、親機情報記憶エリアに記憶されている全ての親機の識別情報と自己の識別情報と送信データとを含む送信メッセージを定期的に送信する送信メッセージ送信手段とを設け、親機に、自己と親子関係を設定することが可能な子機の最大台数分の子機データ記憶エリアを有する子機データ記憶手段を設け、親機において、子機からの送信メッセージに含まれている親機の識別情報をチェックし、この親機の識別情報に自己の親機の識別情報が含まれていない場合、子機データ記憶エリアに空エリアが存在するか否かを調べ、空エリアが存在する場合、送信メッセージの送信元の子機に宛てて自己の識別情報を付加して親子関係設定可能通知を送信するようにしたので、例えば、親機から送信されてくる親子関係設定可能通知を受信時の通信品質などによって選択し、選択した親子関係設定可能通知に付加されている親機の識別情報を子機側の親機情報記憶エリア(空エリア)に記憶する一方、選択した親子関係設定可能通知の送信元の親機にその子機の識別情報を送り、親機側の子機データ記憶エリア(空エリア)にその子機の識別情報を記憶させるなどして、親子関係の設定を子機側主導で行わせるとともに、子機側、親機側双方に親子関係を自動的に設定することが可能となる。   According to the present invention, a master unit information storage unit having a master unit information storage area for the maximum number of master units that can set a parent-child relationship with the slave unit is stored in the master unit information storage area. It is possible to set up a parent-child relationship with the parent device by providing a transmission message transmission means that periodically transmits a transmission message including identification information of all the parent devices, self-identification information and transmission data. There is provided a slave unit data storage means having a slave unit data storage area for the maximum number of slave units. The master unit checks the identification information of the master unit included in the transmission message from the slave unit. If the identification information of the parent device does not include the identification information of its own parent device, it is checked whether there is an empty area in the child device data storage area. If there is an empty area, the child device that is the transmission source of the transmission message Your identification information to In addition, the parent-child relationship setting availability notification is sent, so for example, the parent-child relationship setting availability notification sent from the parent device is selected according to the communication quality at the time of reception and added to the selected parent-child relationship setting availability notification The identification information of the parent device is stored in the parent device information storage area (empty area) on the child device side, while the identification information of the child device is sent to the parent device that is the transmission source of the selected parent-child relationship setting notification. The slave unit data storage area (empty area) stores the identification information of the slave unit, so that the parent-child relationship is set by the slave unit, and the parent-child relationship is established on both the slave unit side and the parent unit side. Can be set automatically.

本発明に係る無線通信システムの一実施の形態の要部を示す図である。It is a figure which shows the principal part of one Embodiment of the radio | wireless communications system which concerns on this invention. この無線通信システムにおける子機の概略構成を示す図である。It is a figure which shows schematic structure of the subunit | mobile_unit in this radio | wireless communications system. この無線通信システムにおける親機の概略構成を示す図である。It is a figure which shows schematic structure of the main | base station in this radio | wireless communications system. この無線通信システムにおける子機のCPUが実行するメインの処理動作を示すフローチャートである。It is a flowchart which shows the main processing operation | movement which CPU of the subunit | mobile_unit in this radio | wireless communications system performs. この無線通信システムにおける親機のCPUが実行するメインの処理動作を示すフローチャートである。It is a flowchart which shows the main processing operation which CPU of the main | base station in this radio | wireless communications system performs. 図4における親子関係設定ルーチンのフローチャートである。It is a flowchart of the parent-child relationship setting routine in FIG. 図4における親子関係設定変更ルーチンのフローチャートである。It is a flowchart of the parent-child relationship setting change routine in FIG. この無線通信システムにおける子機のCPUが定期的に実行する登録済親機タイムアウトカウンタの監視処理を示すフローチャートである。It is a flowchart which shows the monitoring process of the registered main | base station timeout counter which CPU of the subunit | mobile_unit in this radio | wireless communications system performs regularly. この無線通信システムにおける親機のCPUが定期的に実行する登録済子機タイムアウトカウンタの監視処理を示すフローチャートである。It is a flowchart which shows the monitoring process of the registered subunit | mobile_unit timeout counter which CPU of the main | base station in this radio | wireless communications system performs regularly. この無線通信システムにおける子機と親機との間の親子関係の自動設定を説明するための図である。It is a figure for demonstrating the automatic setting of the parent-child relationship between the subunit | mobile_unit and a main | base station in this radio | wireless communications system. 図10に続く説明図である。It is explanatory drawing following FIG. 図11に続く説明図である。It is explanatory drawing following FIG. 図12に続く説明図である。It is explanatory drawing following FIG. 図13に続く説明図である。It is explanatory drawing following FIG. 図14に続く説明図である。It is explanatory drawing following FIG. この無線通信システムにおける子機の特徴的な機能ブロック構成を示す図である。It is a figure which shows the characteristic functional block structure of the subunit | mobile_unit in this radio | wireless communications system. この無線通信システムにおける親機の特徴的な機能ブロック構成を示す図である。It is a figure which shows the characteristic functional block structure of the main | base station in this radio | wireless communications system.

以下、本発明を図面に基づいて詳細に説明する。図1はこの発明に係る無線通信システムの一実施の形態の要部を示す図である。   Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram showing a main part of an embodiment of a radio communication system according to the present invention.

同図において、1(1−1)は子機、2(2−1,2−2,2−3)は親機である。子機1−1には自己の識別情報として子機ID「100001」が設定されている。親機2−1,2−2,2−3には自己の識別情報として親機ID「010001」,「010010」,「010011」が設定されている。   In the figure, 1 (1-1) is a slave unit and 2 (2-1, 2-2, 2-3) is a master unit. The handset 1-1 has a handset ID “100001” set as its own identification information. Base unit IDs “010001”, “010010”, and “010011” are set as identification information of the base units 2-1, 2-2, and 2-3.

この無線通信システムにおいて、子機1は、同時に複数台の親機2と親子関係を結ぶことができるものとする。すなわち、子機1−1は親機2−1と親子関係を結べるだけではなく、親機2−2や親機2−3とも同時に親子関係を結ぶことができるものとする。なお、この例では、子機1を1台しか示していないが、同様の子機1が複数台存在する。   In this wireless communication system, it is assumed that the child device 1 can simultaneously establish a parent-child relationship with a plurality of parent devices 2. That is, it is assumed that the child device 1-1 can not only establish a parent-child relationship with the parent device 2-1, but also simultaneously establish a parent-child relationship with the parent device 2-2 and the parent device 2-3. In this example, only one slave unit 1 is shown, but there are a plurality of similar slave units 1.

また、この例では、説明を簡単とするために、子機1の同時に親子関係を結ぶことが可能な親機の最大台数Nを2台とする。親機2も勿論、同時に複数の子機1と親子関係を結ぶことができるが、親機2の同時に親子関係を結ぶことが可能な子機の最大台数Mを3台とする。   In this example, in order to simplify the description, the maximum number N of parent devices that can simultaneously establish a parent-child relationship with the child device 1 is two. Of course, the parent device 2 can simultaneously establish a parent-child relationship with a plurality of child devices 1, but the maximum number M of child devices that can simultaneously establish a parent-child relationship with the parent device 2 is three.

この無線通信システムにおいて、子機1は温度センサや湿度センサなどの無線センサであり、双方向の通信機能を有している。図2に子機1の概略構成を示す。子機1は、CPU1Aと、ROM1Bと、センシング部1Cと、通信制御部1Dと、送信部1Eと、受信部1Fと、子機ID記憶部1Gと、親機情報記憶部1Hと、親候補リスト記憶部1Iと、登録済親機タイムアウトカウンタTA(TA1,TA2)とを備えている。子機1の識別情報(子機ID)は子機ID記憶部1Gに記憶されている。CPU1AはROM1Bに格納されているプログラムに従って動作する。   In this wireless communication system, the handset 1 is a wireless sensor such as a temperature sensor or a humidity sensor, and has a bidirectional communication function. FIG. 2 shows a schematic configuration of the slave unit 1. The slave unit 1 includes a CPU 1A, a ROM 1B, a sensing unit 1C, a communication control unit 1D, a transmission unit 1E, a reception unit 1F, a slave unit ID storage unit 1G, a master unit information storage unit 1H, and a parent candidate. A list storage unit 1I and a registered parent device timeout counter TA (TA1, TA2) are provided. The identification information (child device ID) of the child device 1 is stored in the child device ID storage unit 1G. The CPU 1A operates according to a program stored in the ROM 1B.

子機1において、親機情報記憶部1Hは、自己と親子関係が設定された親機の情報の記憶エリアとして、その親機の識別情報(親機ID)と、その親機からの後述する親子関係設定可能通知の受信時の通信品質(電波強度)と、その親子関係設定可能通知の受信時刻とが1セットとして記憶される親機情報記憶エリアPARを有している。   In the child device 1, the parent device information storage unit 1H is a storage area for information on the parent device in which the parent-child relationship is set, and the identification information (parent device ID) of the parent device and the later described from the parent device. It has a parent device information storage area PAR in which the communication quality (radio wave intensity) at the time of reception of the parent-child relationship setting availability notification and the reception time of the parent-child relationship setting availability notification are stored as one set.

親機情報記憶エリアPARの数は自己と親子関係を設定することが可能な親機の最大台数Nに対応している。この例において、自己と親子関係を設定することが可能な親機の最大台数Nは2台されているので、これに対応して親機情報記憶エリアPARはPAR1とPAR2の2つとされている。また、親機情報記憶エリアPAR1,PAR2は、初期状態(工場出荷状態)において、親機の情報が未だ記憶されていない空エリアとされている。   The number of parent device information storage areas PAR corresponds to the maximum number N of parent devices that can set a parent-child relationship with itself. In this example, since the maximum number N of parent devices that can set a parent-child relationship with the self is two, the parent device information storage area PAR is set to two, PAR1 and PAR2. . Further, the parent device information storage areas PAR1 and PAR2 are empty areas in which information on the parent device is not yet stored in the initial state (factory shipment state).

親候補リスト記憶部1Iは、自己と親子関係の設定が可能な親機の候補(親候補)として、その親機の識別情報(親機ID)と、その親機からの親子関係設定可能通知の受信時の通信品質(電波強度)と、その親子関係設定可能通知の受信時刻とが1セットとして書き込まれる親候補リストLSTを有している。親候補リストLSTは、初期状態(工場出荷状態)において、親機の候補の情報が未だ記憶されていない状態とされている。   The parent candidate list storage unit 1I has, as parent device candidates (parent candidates) capable of setting a parent-child relationship with itself, identification information (parent device ID) of the parent device and a parent-child relationship setting notification from the parent device Has a parent candidate list LST in which the communication quality (the radio wave intensity) at the time of reception and the reception time of the notification that the parent-child relationship can be set are written as one set. The parent candidate list LST is in an initial state (factory shipment state) in which the parent candidate information is not yet stored.

登録済親機タイムアウトカウンタTA1は、親機情報記憶エリアPAR1にその親機の情報が記憶された親機(登録済みの1番目の親機)に対応するタイムアウトカウンタとして設けられ、登録済親機タイムアウトカウンタTA2は親機情報記憶エリアPAR2にその親機の情報が記憶された親機(登録済みの2番目の親機)に対応するタイムアウトカウンタとして設けられている。   The registered parent device timeout counter TA1 is provided as a timeout counter corresponding to the parent device (first registered parent device) whose parent device information is stored in the parent device information storage area PAR1. The timeout counter TA2 is provided as a timeout counter corresponding to the parent device (second registered parent device) whose parent device information is stored in the parent device information storage area PAR2.

この無線通信システムにおいて、親機2は空調用や防犯用などの無線制御装置であり、双方向の通信機能を有している。図3に親機2の概略構成を示す。親機2は、CPU2Aと、ROM2Bと、通信制御部2Cと、送信部2Dと、受信部2Eと、親機ID記憶部2Fと、子機データ記憶部2Gと、登録済子機タイムアウトカウンタTB(TB1,TB2,TB3)とを備えている。親機2の識別情報(親機ID)は親機ID記憶部2Fに記憶されている。CPU2AはROM2Bに格納されているプログラムに従って動作する。   In this wireless communication system, the base unit 2 is a wireless control device for air conditioning and crime prevention, and has a bidirectional communication function. FIG. 3 shows a schematic configuration of base unit 2. Base unit 2 includes CPU 2A, ROM 2B, communication control unit 2C, transmission unit 2D, reception unit 2E, base unit ID storage unit 2F, slave unit data storage unit 2G, and registered slave unit timeout counter TB. (TB1, TB2, TB3). The identification information (parent device ID) of the parent device 2 is stored in the parent device ID storage unit 2F. The CPU 2A operates according to a program stored in the ROM 2B.

親機2において、子機データ記憶部2Gは、自己と親子関係が設定された子機の情報の記憶エリアとして、その子機の識別情報(子機ID)と、その子機からの計測データと、その計測データの受信時の通信品質(電波強度)と、その計測データの受信時刻が1セットとして記憶される子機データ記憶エリアCARを有している。   In the parent device 2, the child device data storage unit 2G has, as a storage area for information on the child device in which the parent-child relationship is set, identification information (child device ID) of the child device, measurement data from the child device, It has a handset data storage area CAR in which the communication quality (radio wave intensity) when receiving the measurement data and the reception time of the measurement data are stored as one set.

子機データ記憶エリアCARの数は自己と親子関係を設定することが可能な子機の最大台数Mに対応している。この例において、自己と親子関係を設定することが可能な子機の最大台数Mは3台とされているので、これに対応して子機データ記憶エリアCARはCAR1とCAR2とCAR3の3つとされている。また、子機データ記憶エリアCAR1,CAR2,CAR3は、初期状態(工場出荷状態)において、子機の情報が未だ記憶されていない空エリアとされている。   The number of child device data storage areas CAR corresponds to the maximum number M of child devices that can set a parent-child relationship with itself. In this example, since the maximum number M of slave units that can set a parent-child relationship with the self is set to three, the slave unit data storage area CAR corresponds to three of CAR1, CAR2, and CAR3. Has been. In addition, the slave unit data storage areas CAR1, CAR2, and CAR3 are empty areas in which slave unit information is not yet stored in the initial state (factory shipment state).

登録済子機タイムアウトカウンタTB1は、子機情報記憶エリアCAR1にその子機の情報が記憶された子機(登録済みの1番目の子機)に対応するタイムアウトカウンタとして設けられ、登録済子機タイムアウトカウンタTB2は子機情報記憶エリアCAR2にその子機の情報が記憶された子機(登録済みの2番目の子機)に対応するタイムアウトカウンタとして設けられ、登録済子機タイムアウトカウンタTB3は子機情報記憶エリアCAR3にその子機の情報が記憶された子機(登録済みの3番目の子機)に対応するタイムアウトカウンタとして設けられている。   The registered child device timeout counter TB1 is provided as a timeout counter corresponding to the child device (first registered child device) in which information on the child device is stored in the child device information storage area CAR1, and the registered child device time-out counter TB1. The counter TB2 is provided as a timeout counter corresponding to the slave unit (second registered slave unit) whose slave unit information is stored in the slave unit information storage area CAR2, and the registered slave unit timeout counter TB3 is the slave unit information. It is provided as a time-out counter corresponding to the slave unit (registered third slave unit) in which information on the slave unit is stored in the storage area CAR3.

次に、この無線通信システムにおける本実施の形態特有の動作について、図4〜図9に示すフローチャートを参照しながら、子機1の親機情報記憶部1Hおよび親機2の子機データ記憶部2Gの初期状態からの立ち上がり時を例にとって説明する。   Next, with respect to operations unique to the present embodiment in this wireless communication system, the base unit information storage unit 1H of the base unit 1 and the base unit data storage unit of the base unit 2 will be described with reference to the flowcharts shown in FIGS. A description will be given by taking as an example the rise from the initial state of 2G.

なお、図4は子機1のCPU1Aが実行するメインの処理動作を示すフローチャート、図5は親機2のCPU2Aが実行するメインの処理動作を示すフローチャート、図6は図4における親子関係設定ルーチンのフローチャート、図7は図4における親子関係設定変更ルーチンのフローチャートである。また、図8は子機1のCPU1Aが定期的に実行する登録済親機タイムアウトカウンタの監視処理を示すフローチャート、図9は親機2のCPU2Aが定期的に実行する登録済子機タイムアウトカウンタの監視処理を示すフローチャートである。   4 is a flowchart showing a main processing operation executed by the CPU 1A of the child device 1, FIG. 5 is a flowchart showing a main processing operation executed by the CPU 2A of the parent device 2, and FIG. 6 is a parent-child relationship setting routine in FIG. FIG. 7 is a flowchart of the parent-child relationship setting change routine in FIG. FIG. 8 is a flowchart showing a monitoring process of a registered parent device timeout counter periodically executed by the CPU 1A of the child device 1. FIG. 9 shows a registered child device timeout counter periodically executed by the CPU 2A of the parent device 2. It is a flowchart which shows the monitoring process.

〔子機1−1と親機2−1との間の親子関係の自動設定〕
〔子機からの送信メッセージの送信〕
子機1−1は、計測データの送信周期が到来すると(図4:ステップS101のYES)、自己のIDと登録済みの親機IDと計測データとを含む送信メッセージM1を親機2へ送信する(ステップS102、図10参照)。
[Automatic setting of parent-child relationship between handset 1-1 and base 2-1.]
[Send message transmission from slave unit]
When the transmission period of measurement data comes (FIG. 4: YES in step S101), the slave unit 1-1 transmits a transmission message M1 including its own ID, the registered master unit ID, and the measurement data to the master unit 2. (See step S102, FIG. 10).

この場合、子機1−1は、送信メッセージM1に含める情報として、子機ID記憶部1Gに記憶されている子機ID「100001」を自己のIDとして読み出し、親機情報記憶部1Hに記憶されている全ての親機IDを登録済みの親機IDとして読み出すが、初期状態であるために、親機情報記憶部1Hには未だ親機IDが記憶されていない。このため、子機1−1は、その送信フォーマット中の登録済みの親機IDの書き込みスペースSP1,SP2を空白とし、読み出した子機ID「100001」と計測データとを含む送信メッセージM1を送信する。   In this case, the slave unit 1-1 reads the slave unit ID “100001” stored in the slave unit ID storage unit 1G as information included in the transmission message M1, and stores it in the master unit information storage unit 1H. All the parent device IDs that have been registered are read out as registered parent device IDs, but since they are in the initial state, the parent device ID is not yet stored in the parent device information storage unit 1H. For this reason, the slave unit 1-1 makes the write spaces SP1 and SP2 of the registered master unit ID in the transmission format blank, and transmits a transmission message M1 including the read slave unit ID “100001” and measurement data. To do.

そして、登録済親機タイムアウトカウンタTAのカウント動作をスタートし(ステップS103)、一定時間受信待ちを行った後(ステップS104)、親機2からの受信の有無を確認する(ステップS105)。なお、この場合、親機情報記憶部1Hには未だ親機IDが記憶されていないので、すなわち登録済みの親機はないので、実際にはステップ103での登録済親機タイムアウトカウンタTAのカウント動作は行われない。   Then, the counting operation of the registered parent device timeout counter TA is started (step S103), and after waiting for reception for a predetermined time (step S104), the presence / absence of reception from the parent device 2 is confirmed (step S105). In this case, since the master unit ID is not yet stored in the master unit information storage unit 1H, that is, there is no registered master unit, the count of the registered master unit timeout counter TA in step 103 is actually performed. No action is taken.

〔親機からの子機への親子関係設定可能通知〕
親機2−1は、子機1−1から送信メッセージM1が送られてくると(図5:ステップS201のYES、ステップS202の「送信メッセージ」)、この送信メッセージM1が自己宛であるの否かをチェックする(ステップS203)。この場合、送信メッセージM1には自己のIDが含まれていないので、すなわち送信フォーマット中のスペースSP1,SP2に自己のIDが書き込まれていないので、自己宛ではないと判断する。
[Notification that parent-child relationship can be set from the parent device to the child device]
When the transmission message M1 is sent from the child device 1-1 (FIG. 5: YES in step S201, “transmission message” in step S202), the parent device 2-1 is addressed to itself. It is checked whether or not (step S203). In this case, since the transmission message M1 does not include its own ID, that is, since its own ID is not written in the spaces SP1 and SP2 in the transmission format, it is determined that it is not addressed to itself.

親機2−1は、送信メッセージM1が自己宛でないと判断すると(ステップS203のNO)、子機データ記憶部2Gに子機の情報が書き込まれていない空エリアが存在するか否かをチェックする(ステップS204)。この場合、子機データ記憶部2Gの子機データ記憶エリアCARは、全て空エリアとされている。   When base unit 2-1 determines that transmission message M1 is not addressed to itself (NO in step S203), base unit 2-1 checks whether there is an empty area in which handset information is not written in handset data storage unit 2G. (Step S204). In this case, the slave unit data storage area CAR of the slave unit data storage unit 2G is all empty.

これにより、親機2−1は、子機データ記憶部2Gに空エリアがあると判断し(ステップS204のYES)、送信メッセージM1の送信元の子機1−1に宛てて、自己のIDを付加して、親子関係が設定可能である旨の親子関係設定可能通知A1を送信する(ステップS205)。   As a result, the base unit 2-1 determines that there is an empty area in the handset data storage unit 2G (YES in step S204), and sends its own ID to the handset 1-1 that is the transmission source of the transmission message M1. And a parent-child relationship setting notification A1 indicating that the parent-child relationship can be set is transmitted (step S205).

親機2−2,2−3も、親機2−1と同様にして、子機1−1から送信メッセージM1が送られてくると、子機データ記憶部2Gに空エリアがあると判断し、メッセージM1の送信元の子機1−1に宛てて、自己のIDを付加して、親子関係が設定可能である旨の親子関係設定可能通知A2,A3を送信する。   Similarly to the parent device 2-1, the parent devices 2-2 and 2-3 determine that there is an empty area in the child device data storage unit 2G when the transmission message M1 is sent from the child device 1-1. Then, addressed to the slave unit 1-1 that is the transmission source of the message M1, the self ID is added, and parent-child relationship setting availability notifications A2 and A3 to the effect that the parent-child relationship can be set are transmitted.

〔子機での親候補リストの作成〕
子機1−1は、親機2からの受信の確認を一定時間の間続けており(ステップS105)、この間に親機2−1,2−2,2−3から親子関係設定可能通知A1,A2,A3が送られてくると(ステップ105のYES、ステップS106の「親子関係設定可能通知」)、その親子関係設定可能通知A1,A2,A3の受信時の通信品質(電波強度)を計測し、その親子関係設定可能通知A1,A2,A3に付加されている親機IDとともに受信時刻を付して、親機の候補の情報として親候補リストLSTに追加する(ステップS107)。
[Creating a parent candidate list on the handset]
The slave unit 1-1 continues to confirm reception from the master unit 2 for a predetermined time (step S105), and during this period, the parent-child relationship setting notification A1 is received from the master units 2-1, 2-2, 2-3. , A2 and A3 are sent (YES in step 105, “parent-child relationship setting availability notification” in step S106), the communication quality (radio wave intensity) upon reception of the parent-child relationship setting availability notifications A1, A2 and A3 is indicated. Measurement is performed, and the reception time is given together with the parent device ID added to the parent-child relationship setting availability notifications A1, A2, A3, and added to the parent candidate list LST as parent device candidate information (step S107).

〔親機情報記憶部の空エリアの確認〕
そして、子機1−1は、親機2からの受信の確認を一定時間続けた後(ステップS108のYES)、親機情報記憶部1Hに親機の情報が書き込まれていない空エリアが存在するか否かをチェックする(ステップS109)。この場合、親機情報記憶部1Hの親機情報記憶エリアPARは、全て空エリア(初期状態)とされている。
[Confirmation of empty area of base unit information storage]
And the subunit | mobile_unit 1-1 continues the confirmation of reception from the main | base station 2 for a fixed time (it is YES of step S108), and there exists an empty area in which the information of the main | base station is not written in the main | base station information storage part 1H It is checked whether or not to perform (step S109). In this case, the parent device information storage area PAR of the parent device information storage unit 1H is all an empty area (initial state).

〔子機での親子関係の設定(登録)〕
これにより、子機1−1は、親機情報記憶部1Hに空エリアがあると判断し(ステップS109のYES)、親子関係の設定処理を行う(ステップS110)。この親子関係の設定処理において、子機1−1は、親候補リストLSTから最も通信品質の良好な親機Xを選び出し(図6:ステップS301)、その選び出した親機Xの情報(親機ID、通信品質、受信時刻)を親機情報記憶部1Hの空エリアに記憶する(ステップS302)。そして、親機Xへ子機IDと親機Xの親機IDとを付加した親子関係設定通知を送信する(ステップS303)。
[Setting the parent-child relationship on the slave unit (registration)]
Thereby, the child device 1-1 determines that there is an empty area in the parent device information storage unit 1H (YES in step S109), and performs a parent-child relationship setting process (step S110). In this parent-child relationship setting process, the child device 1-1 selects the parent device X having the best communication quality from the parent candidate list LST (FIG. 6: step S301), and information on the selected parent device X (parent device). ID, communication quality, and reception time) are stored in the empty area of the parent device information storage unit 1H (step S302). Then, a parent-child relationship setting notification in which the child device ID and the parent device ID of the parent device X are added is transmitted to the parent device X (step S303).

図10に示した例の場合、子機1−1は、親候補リストLSTから最も通信品質の良好な親機Xとして親機2−1(親機ID「010001」)を選び出し、すなわち通信品質の最も良い親子関係設定可能通知A1を送信してきた親機2−1を選び出し、この選び出した親機2−1の情報(親機ID、通信品質、受信時刻)を親機情報記憶部1Hの親機情報記憶エリアPAR1(空エリア)に記憶する。これにより、親機2−1との親子関係が子機1−1側に設定(登録)されるものとなる。そして、子機1−1は、親子関係設定可能通知A1の送信元の親機2−1に宛てて、自己のIDを付加して、子機1−1側での親子関係の設定を知らせる親子関係設定通知B1を送信する。   In the case of the example shown in FIG. 10, the child device 1-1 selects the parent device 2-1 (parent device ID “010001”) as the parent device X having the best communication quality from the parent candidate list LST, that is, the communication quality. The parent device 2-1 that has transmitted the best parent-child relationship setting notification A1 is selected, and the information (parent device ID, communication quality, reception time) of the selected parent device 2-1 is stored in the parent device information storage unit 1H. Store in the parent device information storage area PAR1 (empty area). As a result, the parent-child relationship with the parent device 2-1 is set (registered) on the child device 1-1 side. And the subunit | mobile_unit 1-1 addresses the setting of the parent-child relationship in the subunit | mobile_unit 1-1 side to the main | base station 2-1 of the transmission origin of the parent-child relationship setting possible notification A1. A parent-child relationship setting notification B1 is transmitted.

〔親機での親子関係の設定(登録)〕
親機2−1は、子機1−1からの自己宛の親子関係設定通知B1を受信すると(図5:ステップS202の「親子関係設定通知」、ステップS209のYES)、子機データ記憶部2Gの子機データ記憶エリアCAR1(空エリア)に、受信した親子関係設定通知B1に付加されている子機1−1の子機IDを記憶する(ステップS210)。これにより、子機側主導で子機1−1と親機2−1との親子関係が定められた後、子機1−1側だけではなく、親機2−1側にも子機1−1との親子関係が設定(登録)されるものとなる。
[Setting the parent-child relationship on the parent machine (registration)]
When the parent device 2-1 receives the parent-child relationship setting notification B 1 addressed to itself from the child device 1-1 (FIG. 5: “parent-child relationship setting notification” in step S 202, YES in step S 209), the child device data storage unit In the 2G child device data storage area CAR1 (empty area), the child device ID of the child device 1-1 added to the received parent-child relationship setting notification B1 is stored (step S210). As a result, after the parent-child relationship between the child device 1-1 and the parent device 2-1 is determined under the initiative of the child device, the child device 1 is not only on the child device 1-1 side but also on the parent device 2-1 side. The parent-child relationship with -1 is set (registered).

〔親子関係が設定された子機1−1と親機2−1との間のデータ通信〕
子機1−1は、計測データの送信周期が到来すると(図4:ステップS101のYES)、自己のIDと登録済みの親機IDと計測データとを含む送信メッセージM1を親機2へ送信する(ステップS102、図11参照)。
[Data communication between slave unit 1-1 and parent unit 2-1 for which a parent-child relationship is set]
When the transmission period of measurement data comes (FIG. 4: YES in step S101), the slave unit 1-1 transmits a transmission message M1 including its own ID, the registered master unit ID, and the measurement data to the master unit 2. (See step S102, FIG. 11).

この場合、子機1−1は、子機ID記憶部1Gに記憶されている子機ID「100001」を自己のIDとして読み出し、親機情報記憶部1Hの親機情報記憶エリアPAR1に記憶されている親機ID「010001」を登録済みの親機IDとして読み出し、この読み出した子機ID「100001」と登録済みの親機ID「010001」と計測データとを含む送信メッセージM1を送信する。   In this case, the slave unit 1-1 reads the slave unit ID “100001” stored in the slave unit ID storage unit 1G as its own ID, and is stored in the base unit information storage area PAR1 of the base unit information storage unit 1H. The parent device ID “010001” is read out as a registered parent device ID, and a transmission message M1 including the read child device ID “100001”, the registered parent device ID “010001” and measurement data is transmitted.

そして、登録済親機タイムアウトカウンタTA1のカウント動作をスタートし(ステップS103)、一定時間受信待ちを行った後(ステップS104)、親機2からの受信の有無を確認する(ステップS105)。   Then, the count operation of the registered parent device timeout counter TA1 is started (step S103), and after waiting for reception for a certain time (step S104), the presence / absence of reception from the parent device 2 is confirmed (step S105).

親機2−1は、子機1−1から送信メッセージM1が送られてくると(図5:ステップS201のYES、ステップS202の「送信メッセージ」)、この送信メッセージM1が自己宛であるの否かをチェックする(ステップS203)。この場合、送信メッセージM1には自己のIDが含まれているので、自己宛であると判断する。   When the transmission message M1 is sent from the child device 1-1 (FIG. 5: YES in step S201, “transmission message” in step S202), the parent device 2-1 is addressed to itself. It is checked whether or not (step S203). In this case, since the transmission message M1 includes its own ID, it is determined that it is addressed to itself.

親機2−1は、子機1−1からの送信メッセージM1が自己宛であると判断すると(ステップS203のYES)、その送信メッセージM1に含まれている計測データを取り込み、その取り込んだ計測データをその計測データの受信時の通信品質(電波強度)および受信時刻と合わせて、子機1−1の子機ID「100001」が記憶されている子機データ記憶エリアCAR1に書き込む(ステップS206)。   When the base unit 2-1 determines that the transmission message M1 from the sub unit 1-1 is addressed to itself (YES in step S203), the base unit 2-1 fetches the measurement data included in the transmission message M1 and takes the measurement The data is written in the slave unit data storage area CAR1 in which the slave unit ID “100001” of the slave unit 1-1 is stored together with the communication quality (radio wave intensity) and the reception time when receiving the measurement data (step S206). ).

そして、親機2−1は、登録済子機タイムアウトカウンタTB1のカウント動作をスタートさせるとともに(ステップS207)、送信メッセージM1の送信元の子機1−1へ宛てて、自己のIDを付加して、計測データを取り込んだことを知らせる受信確認応答C1を送信する(ステップS208)。   Then, base unit 2-1 starts the counting operation of registered slave unit timeout counter TB 1 (step S 207), and adds its own ID to transmission unit slave unit 1-1 of transmission message M 1. Then, a reception confirmation response C1 notifying that the measurement data has been taken in is transmitted (step S208).

子機1−1は、親機2−1からの受信確認応答C1を受信すると(ステップS105のYES、ステップS106の「受信確認応答」)、ステップ103でスタートした登録済親機タイムアウトカウンタTA1のカウント動作をリセットする(ステップS112)。   When the child device 1-1 receives the reception confirmation response C1 from the parent device 2-1 (YES in step S105, “reception confirmation response” in step S106), the child device 1-1 counts the registered parent device timeout counter TA1 started in step 103. The count operation is reset (step S112).

〔子機1−1と親機2−2との間の親子関係の自動設定〕
親機2−2は、子機1−1から送信メッセージM1が送られてくると(図5:ステップS201のYES、ステップS202の「送信メッセージ」)、この送信メッセージM1が自己宛であるの否かをチェックする(ステップS203)。この場合、送信メッセージM1には親機ID「010001」が含まれているが、自己のIDではないので、自己宛ではないと判断する。
[Automatic setting of parent-child relationship between handset 1-1 and base 2-2]
When the transmission message M1 is sent from the child device 1-1 (FIG. 5: YES in step S201, “transmission message” in step S202), the parent device 2-2 sends the transmission message M1 to itself. It is checked whether or not (step S203). In this case, the base message ID “010001” is included in the transmission message M1, but since it is not its own ID, it is determined that it is not addressed to itself.

親機2−2は、送信メッセージM1が自己宛でないと判断すると(ステップS203のNO)、子機データ記憶部2Gに子機の情報が書き込まれていない空エリアが存在するか否かをチェックする(ステップS204)。この場合、子機データ記憶部2Gの子機データ記憶エリアCARは、全て空エリアとされている。   If base unit 2-2 determines that transmission message M1 is not addressed to itself (NO in step S203), base unit 2-2 checks whether there is an empty area in which handset information is not written in handset data storage unit 2G. (Step S204). In this case, the slave unit data storage area CAR of the slave unit data storage unit 2G is all empty.

これにより、親機2−2は、子機データ記憶部2Gに空エリアがあると判断し(ステップS204のYES)、送信メッセージM1の送信元の子機1−1に宛てて、自己のIDを付加して、親子関係が設定可能である旨の親子関係設定可能通知A2を送信する(ステップS205)。   Thereby, the base unit 2-2 determines that there is an empty area in the handset data storage unit 2G (YES in step S204), and is addressed to the handset 1-1 that is the transmission source of the transmission message M1. And a parent-child relationship setting notification A2 indicating that the parent-child relationship can be set is transmitted (step S205).

親機2−3も、親機2−2と同様にして、子機1−1から送信メッセージM1が送られてくると、子機データ記憶部2Gに空エリアがあると判断し、メッセージM1の送信元の子機1−1に宛てて、自己のIDを付加して、親子関係が設定可能である旨の親子関係設定可能通知A3を送信する。   Similarly to the base unit 2-2, when the transmission message M1 is sent from the handset 1-1, the base unit 2-3 determines that there is an empty area in the handset data storage unit 2G, and the message M1. Is sent to the child device 1-1 of the transmission source, and a parent-child relationship setting notification A3 is transmitted to the effect that the parent-child relationship can be set.

〔子機での親候補リストの作成〕
子機1−1は、親機2からの受信の確認を一定時間の間続けており(ステップS105)、この間に親機2−2,2−3から親子関係設定可能通知A2,A3が送られてくると(ステップ105のYES、ステップS106の「親子関係設定可能通知」)、その親子関係設定可能通知A2,A3の受信時の通信品質(電波強度)を計測し、その親子関係設定可能通知A2,A3に付加されている親機IDとともに受信時刻を付して、親機の候補の情報として親候補リストLSTに追加する(ステップS107)。
[Creating a parent candidate list on the handset]
The slave unit 1-1 continues the confirmation of reception from the master unit 2 for a predetermined time (step S105), and during this time, the master unit 2-2 and 2-3 send notifications A2 and A3 indicating that the parent-child relationship can be set When it is received (YES in step 105, “parent-child relationship setting possible notification” in step S106), the communication quality (radio wave intensity) at the time of reception of the parent-child relationship setting possible notifications A2 and A3 is measured, and the parent-child relationship can be set. The reception time is attached together with the parent device ID added to the notifications A2 and A3, and the information is added to the parent candidate list LST as parent device candidate information (step S107).

〔親機情報記憶部の空エリアの確認〕
そして、子機1−1は、親機2からの受信の確認を一定時間続けた後(ステップS108のYES)、親機情報記憶部1Hに親機の情報が書き込まれていない空エリアが存在するか否かをチェックする(ステップS109)。この場合、親機情報記憶部1Hの親機情報記憶エリアPAR1には親機の情報が書き込まれているが、親機情報記憶エリアPAR2には親機の情報は書き込まれておらず、空エリアとされている。
[Confirmation of empty area of base unit information storage]
And the subunit | mobile_unit 1-1 continues the confirmation of reception from the main | base station 2 for a fixed time (it is YES of step S108), and there exists an empty area in which the information of the main | base station is not written in the main | base station information storage part 1H It is checked whether or not to perform (step S109). In this case, although the parent device information is written in the parent device information storage area PAR1 of the parent device information storage unit 1H, the parent device information is not written in the parent device information storage area PAR2, and the empty area It is said that.

〔子機での親子関係の設定(登録)〕
これにより、子機1−1は、親機情報記憶部1Hに空エリアがあると判断し(ステップS109のYES)、親子関係の設定処理を行う(ステップS110)。この親子関係の設定処理において、子機1−1は、親候補リストLSTから最も通信品質の良好な親機Xを選び出し(図6:ステップS301)、その選び出した親機Xの情報(親機ID、通信品質、受信時刻)を親機情報記憶部1Hの空エリアに記憶する(ステップS302)。そして、親機Xへ子機IDと親機XのIDとを付加した親子関係設定通知を送信する(ステップS303)。
[Setting the parent-child relationship on the slave unit (registration)]
Thereby, the child device 1-1 determines that there is an empty area in the parent device information storage unit 1H (YES in step S109), and performs a parent-child relationship setting process (step S110). In this parent-child relationship setting process, the child device 1-1 selects the parent device X having the best communication quality from the parent candidate list LST (FIG. 6: step S301), and information on the selected parent device X (parent device). ID, communication quality, and reception time) are stored in the empty area of the parent device information storage unit 1H (step S302). Then, a parent-child relationship setting notification in which the child device ID and the parent device X ID are added is transmitted to the parent device X (step S303).

図11に示した例の場合、子機1−1は、親候補リストLSTから最も通信品質の良好な親機Xとして親機2−2(親機ID「010010」)を選び出し、すなわち通信品質の最も良い親子関係設定可能通知A2を送信してきた親機2−2を選び出し、この選び出した親機2−2の情報(親機ID、通信品質、受信時刻)を親機情報記憶部1Hの親機情報記憶エリアPAR2に記憶する(図12参照)。これにより、親機2−2との親子関係が子機1−1側に設定(登録)されるものとなる。そして、子機1−1は、親子関係設定可能通知A2の送信元の親機2−2に宛てて、自己のIDを付加して、子機1−1側での親子関係の設定を知らせる親子関係設定通知B2を送信する。   In the case of the example shown in FIG. 11, the child device 1-1 selects the parent device 2-2 (parent device ID “010010”) as the parent device X having the best communication quality from the parent candidate list LST, that is, the communication quality. The parent device 2-2 that has transmitted the best parent-child relationship setting notification A2 is selected, and information (parent device ID, communication quality, reception time) of the selected parent device 2-2 is stored in the parent device information storage unit 1H. The information is stored in the parent device information storage area PAR2 (see FIG. 12). As a result, the parent-child relationship with the parent device 2-2 is set (registered) on the child device 1-1 side. Then, the child device 1-1 adds its own ID to the parent device 2-2 that is the transmission source of the parent-child relationship setting enable notification A2, and notifies the setting of the parent-child relationship on the child device 1-1 side. A parent-child relationship setting notification B2 is transmitted.

〔親機での親子関係の設定(登録)〕
親機2−2は、子機1−1からの自己宛の親子関係設定通知B2を受信すると(図5:ステップS202の「親子関係設定通知」、ステップS209のYES)、子機データ記憶部2Gの子機データ記憶エリアCAR1(空エリア)に、受信した親子関係設定通知B2に付加されている子機1−1の子機IDを記憶する(ステップS210)。これにより、子機側主導で子機1−1と親機2−2との親子関係が定められた後、子機1−1側だけではなく、親機2−2側にも子機1−1との親子関係が設定(登録)されるものとなる。
[Setting the parent-child relationship on the parent machine (registration)]
When the parent device 2-2 receives the parent-child relationship setting notification B2 addressed to itself from the child device 1-1 (FIG. 5: “parent-child relationship setting notification” in step S202, YES in step S209), the child device data storage unit In the 2G child device data storage area CAR1 (empty area), the child device ID of the child device 1-1 added to the received parent-child relationship setting notification B2 is stored (step S210). Accordingly, after the parent-child relationship between the child device 1-1 and the parent device 2-2 is determined under the initiative of the child device, the child device 1 is not only on the child device 1-1 side but also on the parent device 2-2 side. The parent-child relationship with -1 is set (registered).

〔親子関係が設定された子機1−1と親機2−1,2−2との間のデータ通信〕
子機1−1は、計測データの送信周期が到来すると(図4:ステップS101のYES)、自己のIDと登録済みの親機IDと計測データとを含む送信メッセージM1を親機2へ送信する(ステップS102、図13参照)。
[Data communication between slave unit 1-1 and parent units 2-1 and 2-2 in which a parent-child relationship is set]
When the transmission period of measurement data comes (FIG. 4: YES in step S101), the slave unit 1-1 transmits a transmission message M1 including its own ID, the registered master unit ID, and the measurement data to the master unit 2. (See step S102, FIG. 13).

この場合、子機1−1は、子機ID記憶部1Gに記憶されている子機ID「100001」を自己のIDとして読み出し、親機情報記憶部1Hの親機情報記憶エリアPAR1に記憶されている親機ID「010001」および親機情報記憶エリアPAR2に記憶されている親機ID「010010」を登録済みの親機IDとして読み出し、この読み出した子機ID「100001」と登録済みの親機ID「010001」,「010010」と計測データとを含む送信メッセージM1を送信する。   In this case, the slave unit 1-1 reads the slave unit ID “100001” stored in the slave unit ID storage unit 1G as its own ID, and is stored in the base unit information storage area PAR1 of the base unit information storage unit 1H. The parent device ID “010001” and the parent device ID “010010” stored in the parent device information storage area PAR2 are read as registered parent device IDs, and the read child device ID “100001” and the registered parent device ID are read. A transmission message M1 including machine IDs “010001”, “010010” and measurement data is transmitted.

そして、登録済親機タイムアウトカウンタTA1およびTA2のカウント動作をスタートし(ステップS103)、一定時間受信待ちを行った後(ステップS104)、親機2からの受信の有無を確認する(ステップS105)。   Then, the counting operation of the registered parent device time-out counters TA1 and TA2 is started (step S103). After waiting for reception for a predetermined time (step S104), the presence / absence of reception from the parent device 2 is confirmed (step S105). .

親機2−1は、子機1−1から送信メッセージM1が送られてくると(図5:ステップS201のYES、ステップS202の「送信メッセージ」)、この送信メッセージM1が自己宛であるの否かをチェックする(ステップS203)。この場合、送信メッセージM1には自己のIDが含まれているので、自己宛であると判断する。   When the transmission message M1 is sent from the child device 1-1 (FIG. 5: YES in step S201, “transmission message” in step S202), the parent device 2-1 is addressed to itself. It is checked whether or not (step S203). In this case, since the transmission message M1 includes its own ID, it is determined that it is addressed to itself.

親機2−1は、子機1−1からの送信メッセージM1が自己宛であると判断すると(ステップS203のYES)、その送信メッセージM1に含まれている計測データを取り込み、その取り込んだ計測データをその計測データの受信時の通信品質(電波強度)および受信時刻と合わせて、子機1−1の子機ID「100001」が記憶されている子機データ記憶エリアCAR1に書き込む(上書きする)(ステップS206)。   When the base unit 2-1 determines that the transmission message M1 from the sub unit 1-1 is addressed to itself (YES in step S203), the base unit 2-1 fetches the measurement data included in the transmission message M1 and takes the measurement The data is written (overwritten) in the child device data storage area CAR1 in which the child device ID “100001” of the child device 1-1 is stored together with the communication quality (the radio wave intensity) and the reception time when the measurement data is received. (Step S206).

そして、親機2−1は、登録済子機タイムアウトカウンタTB1のカウント動作をスタート(再スタート)させるとともに(ステップS207)、送信メッセージM1の送信元の子機1−1へ宛てて、自己のIDを付加して、計測データを取り込んだことを知らせる受信確認応答C1を送信する(ステップS208)。   The master unit 2-1 starts (restarts) the counting operation of the registered slave unit timeout counter TB1 (step S207), and sends it to the slave unit 1-1 as the transmission source of the transmission message M1. An ID is added and a reception confirmation response C1 notifying that the measurement data has been taken in is transmitted (step S208).

子機1−1は、親機2−1からの受信確認応答C1を受信すると(ステップS105のYES、ステップS106の「受信確認応答」)、ステップ103でスタートした登録済親機タイムアウトカウンタTA1のカウント動作をリセットする(ステップS112)。   When the child device 1-1 receives the reception confirmation response C1 from the parent device 2-1 (YES in step S105, “reception confirmation response” in step S106), the child device 1-1 counts the registered parent device timeout counter TA1 started in step 103. The count operation is reset (step S112).

親機2−2は、子機1−1から送信メッセージM1が送られてくると(図5:ステップS201のYES、ステップS202の「送信メッセージ」)、この送信メッセージM1が自己宛であるの否かをチェックする(ステップS203)。この場合、送信メッセージM1には自己のIDが含まれているので、自己宛であると判断する。   When the transmission message M1 is sent from the child device 1-1 (FIG. 5: YES in step S201, “transmission message” in step S202), the parent device 2-2 sends the transmission message M1 to itself. It is checked whether or not (step S203). In this case, since the transmission message M1 includes its own ID, it is determined that it is addressed to itself.

親機2−2は、子機1−1からの送信メッセージM1が自己宛であると判断すると(ステップS203のYES)、その送信メッセージM1に含まれている計測データを取り込み、その取り込んだ計測データをその計測データの受信時の通信品質(電波強度)および受信時刻と合わせて、子機1−1の子機ID「100001」が記憶されている子機データ記憶エリアCAR1に書き込む(ステップS206)。   When the base unit 2-2 determines that the transmission message M1 from the slave unit 1-1 is addressed to itself (YES in step S203), the base unit 2-2 takes in the measurement data included in the transmission message M1 and takes the measurement The data is written in the slave unit data storage area CAR1 in which the slave unit ID “100001” of the slave unit 1-1 is stored together with the communication quality (radio wave intensity) and the reception time when receiving the measurement data (step S206). ).

そして、親機2−2は、登録済子機タイムアウトカウンタTB1のカウント動作をスタートさせるとともに(ステップS207)、送信メッセージM1の送信元の子機1−1へ宛てて、自己のIDを付加して、計測データを取り込んだことを知らせる受信確認応答C2を送信する(ステップS208)。   Then, base unit 2-2 starts counting operation of registered slave unit timeout counter TB1 (step S207), and adds its own ID to transmission unit slave unit 1-1 of transmission message M1. Then, a reception confirmation response C2 notifying that the measurement data has been taken in is transmitted (step S208).

子機1−1は、親機2−2からの受信確認応答C2を受信すると(ステップS105のYES、ステップS106の「受信確認応答」)、ステップ103でスタートした登録済親機タイムアウトカウンタTA2のカウント動作をリセットする(ステップS112)。   When the child device 1-1 receives the reception confirmation response C2 from the parent device 2-2 (YES in step S105, “reception confirmation response” in step S106), the child device 1-1 sets the registered parent device timeout counter TA2 started in step 103. The count operation is reset (step S112).

〔子機1−1と親機2−3との間の親子関係の自動設定(親子関係の設定変更)〕
親機2−3は、子機1−1から送信メッセージM1が送られてくると(図5:ステップS201のYES、ステップS202の「送信メッセージ」)、この送信メッセージM1が自己宛であるの否かをチェックする(ステップS203)。この場合、送信メッセージM1には親機ID「010001」と「010010」とが含まれているが、自己のIDではないので、自己宛ではないと判断する。
[Automatic setting of parent-child relationship between child device 1-1 and parent device 2-3 (change of parent-child relationship setting)]
When the transmission message M1 is sent from the child device 1-1 (FIG. 5: YES in step S201, “transmission message” in step S202), the parent device 2-3 is addressed to itself. It is checked whether or not (step S203). In this case, although the base message IDs “010001” and “010010” are included in the transmission message M1, it is determined that it is not addressed to itself because it is not its own ID.

親機2−3は、送信メッセージM1が自己宛でないと判断すると(ステップS203のNO)、子機データ記憶部2Gに子機の情報が書き込まれていない空エリアが存在するか否かをチェックする(ステップS204)。この場合、子機データ記憶部2Gの子機データ記憶エリアCARは、全て空エリアとされている。   If base unit 2-3 determines that transmission message M1 is not addressed to itself (NO in step S203), base unit 2-3 checks whether there is an empty area in which handset information is not written in handset data storage unit 2G. (Step S204). In this case, the slave unit data storage area CAR of the slave unit data storage unit 2G is all empty.

これにより、親機2−3は、子機データ記憶部2Gに空エリアがあると判断し(ステップS204のYES)、送信メッセージM1の送信元の子機1−1に宛てて、自己のIDを付加して、親子関係が設定可能である旨の親子関係設定可能通知A3を送信する(ステップS205)。   As a result, the base unit 2-3 determines that there is an empty area in the handset data storage unit 2G (YES in step S204), and addresses itself to the handset 1-1 that is the transmission source of the transmission message M1. And a parent-child relationship setting notification A3 indicating that the parent-child relationship can be set is transmitted (step S205).

〔子機での親候補リストの作成〕
子機1−1は、親機2からの受信の確認を一定時間の間続けており(ステップS105)、この間に親機2−3から親子関係設定可能通知A3が送られてくると(ステップ105のYES、ステップS106の「親子関係設定可能通知」)、その親子関係設定可能通知A3の受信時の通信品質(電波強度)を計測し、その親子関係設定可能通知A3に付加されている親機IDとともに受信時刻を付して親候補リストLSTに追加する(ステップS107)。
[Creating a parent candidate list on the handset]
The slave unit 1-1 continues to confirm reception from the master unit 2 for a certain period of time (step S105), and when a parent-child relationship setting possibility notification A3 is sent from the master unit 2-3 during this period (step S105) 105, “parent-child relationship setting possible notification” in step S106), communication quality (radio wave intensity) upon reception of the parent-child relationship setting possible notification A3 is measured, and the parent added to the parent-child relationship setting possible notification A3 A reception time is added together with the machine ID and added to the parent candidate list LST (step S107).

〔親機情報記憶部の空エリアの確認〕
そして、子機1−1は、親機2からの受信の確認を一定時間続けた後(ステップS108のYES)、親機情報記憶部1Hに親機の情報が書き込まれていない空エリアが存在するか否かをチェックする(ステップS109)。この場合、親機情報記憶部1Hの親機情報記憶エリアPAR1,PAR2ともに親機の情報が書き込まれており、親機情報記憶部1Hには空エリアは存在しない。
[Confirmation of empty area of base unit information storage]
And the subunit | mobile_unit 1-1 continues the confirmation of reception from the main | base station 2 for a fixed time (it is YES of step S108), and there exists an empty area in which the information of the main | base station is not written in the main | base station information storage part 1H It is checked whether or not to perform (step S109). In this case, parent device information is written in both the parent device information storage areas PAR1 and PAR2 of the parent device information storage unit 1H, and there is no empty area in the parent device information storage unit 1H.

〔子機での親子関係の設定変更〕
これにより、子機1−1は、親機情報記憶部1Hに空エリアがないと判断し(ステップS109のNO)、親子関係の設定変更処理を行う(ステップS111)。この親子関係の設定変更処理において、子機1−1は、親候補リストLSTから最も通信品質の良好な親機Xを選び出し(図7:ステップS401)、親機情報記憶部1Hに設定されている親機の中から最も通信品質の悪い親機Yを選び出し(ステップS402)、親機Xの通信品質Q(X)と親機Yの通信品質Q(Y)とを比較する(ステップS403)。
[Change of parent-child relationship setting on slave unit]
Thereby, the child device 1-1 determines that there is no empty area in the parent device information storage unit 1H (NO in step S109), and performs a parent-child relationship setting change process (step S111). In the parent-child relationship setting change process, the child device 1-1 selects the parent device X having the best communication quality from the parent candidate list LST (FIG. 7: step S401), and is set in the parent device information storage unit 1H. The parent device Y having the worst communication quality is selected from the existing parent devices (step S402), and the communication quality Q (X) of the parent device X is compared with the communication quality Q (Y) of the parent device Y (step S403). .

そして、この比較結果に基づいて、親機Xの通信品質Q(X)が親機Yの通信品質Q(Y)よりも良好であれば(ステップS404のYES)、交代条件を満たすと判断し、親機情報記憶部1Hから親機Yの情報を削除し、代わりに親機Xの情報(親機ID、通信品質、受信時刻)を記憶する(ステップS405)。そして、親機Xへ子機IDと親機XのIDとを付加した親子関係設定通知を送信する(ステップS406)。親機Xの通信品質Q(X)が親機Yの通信品質Q(Y)よりも良好でなければ(ステップS404のNO)、そのまま処理を終了する。   Based on the comparison result, if communication quality Q (X) of base unit X is better than communication quality Q (Y) of base unit Y (YES in step S404), it is determined that the replacement condition is satisfied. The information of the parent device Y is deleted from the parent device information storage unit 1H, and the information of the parent device X (parent device ID, communication quality, reception time) is stored instead (step S405). Then, a parent-child relationship setting notification in which the child device ID and the parent device X ID are added is transmitted to the parent device X (step S406). If communication quality Q (X) of base unit X is not better than communication quality Q (Y) of base unit Y (NO in step S404), the process is terminated.

図13に示した例の場合、子機1−1は、親候補リストLSTから最も通信品質の良好な親機Xとして親機2−3(親機ID「010011」)を選び出し、すなわち親子関係設定可能通知A3を送信してきた親機2−3を選び出し、親機情報記憶部1Hに設定されている親機の中から最も通信品質の悪い親機Yとして親機2−2(親機ID「010010」)を選び出し、すなわち登録時に親子関係設定可能通知A2を送信してきた親機2−2を選び出し、親子関係設定可能通知A3の受信時の通信品質と親子関係設定可能通知A2の受信時の通信品質とを比較する。   In the case of the example shown in FIG. 13, the slave unit 1-1 selects the master unit 2-3 (master unit ID “010011”) as the master unit X having the best communication quality from the parent candidate list LST, that is, the parent-child relationship The parent device 2-3 that has transmitted the settable notification A3 is selected, and the parent device 2-2 (parent device ID) is selected as the parent device Y having the worst communication quality from the parent devices set in the parent device information storage unit 1H. “010010”) is selected, that is, the parent device 2-2 that has transmitted the parent-child relationship setting possible notification A2 at the time of registration is selected, and the communication quality when the parent-child relationship setting available notification A3 is received and the parent-child relationship setting possible notification A2 is received Compare the communication quality.

この場合、親子関係設定可能通知A3の受信時の通信品質の方が親子関係設定可能通知A2の受信時の通信品質よりも良いので、子機1−1は、交代条件を満たすと判断し、親機情報記憶部1Hの親機情報記憶エリアPAR2に記憶されている親機2−2の情報を削除し、代わりに親機2−3の情報を(親機ID、通信品質、受信時刻)を記憶する(図14参照)。これにより、親機2−3との親子関係が子機1−1側に変更設定(登録)されるものとなる。そして、子機1−1は、親子関係設定可能通知A3の送信元の親機2−3に宛てて、自己のIDを付加して、子機1−1側での親子関係の設定を知らせる親子関係設定通知B3を送信する。   In this case, since the communication quality at the time of receiving the parent-child relationship setting notification A3 is better than the communication quality at the time of receiving the parent-child relationship setting notification A2, the handset 1-1 determines that the replacement condition is satisfied, The information of the parent device 2-2 stored in the parent device information storage area PAR2 of the parent device information storage unit 1H is deleted, and instead of the information of the parent device 2-3 (parent device ID, communication quality, reception time) Is stored (see FIG. 14). As a result, the parent-child relationship with the parent device 2-3 is changed and set (registered) on the child device 1-1 side. Then, the child device 1-1 sends its own ID to the parent device 2-3 that is the transmission source of the parent-child relationship setting enable notification A3, and notifies the setting of the parent-child relationship on the child device 1-1 side. A parent-child relationship setting notification B3 is transmitted.

〔親機での親子関係の設定(登録)〕
親機2−3は、子機1−1からの自己宛の親子関係設定通知B3を受信すると(図5:ステップS202の「親子関係設定通知」、ステップS209のYES)、子機データ記憶部2Gの子機データ記憶エリアCAR1(空エリア)に、受信した親子関係設定通知B3に付加されている子機1−1の子機IDを記憶する(ステップS210)。これにより、子機側主導で子機1−1と親機2−3の親子関係が定められた後、子機1−1側だけではなく、親機2−3側にも子機1−1との親子関係が設定(登録)されるものとなる。
[Setting the parent-child relationship on the parent machine (registration)]
When the parent device 2-3 receives the parent-child relationship setting notification B3 addressed to itself from the child device 1-1 (FIG. 5: “parent-child relationship setting notification” in step S202, YES in step S209), the child device data storage unit In the 2G child device data storage area CAR1 (empty area), the child device ID of the child device 1-1 added to the received parent-child relationship setting notification B3 is stored (step S210). As a result, after the parent-child relationship between the child device 1-1 and the parent device 2-3 is determined under the initiative of the child device, not only the child device 1-1 side but also the child device 1-side is provided on the parent device 2-3 side. The parent-child relationship with 1 is set (registered).

〔親機側での子機との親子関係の自動解消〕
子機1−1側において、親機2−2との親子関係が解消されると、親機2−2で受信される送信メッセージM1には親機2−2の親機ID「010010」が含まれなくなる(図15参照)。このため、親機2−2では、子機1−1からの送信メッセージM1に含まれる計測データを取り込むことができなくなり、前回の計測データの取り込み時にスタートさせた登録済子機タイムアウトカウンタTB1がタイムアウトする。
[Automatic cancellation of parent-child relationship with the slave unit on the master unit side]
When the parent-child relationship with the parent device 2-2 is canceled on the child device 1-1 side, the parent device ID “010010” of the parent device 2-2 is included in the transmission message M1 received by the parent device 2-2. It is not included (see FIG. 15). For this reason, the master unit 2-2 cannot capture the measurement data included in the transmission message M1 from the slave unit 1-1, and the registered slave unit timeout counter TB1 started when the previous measurement data is fetched is stored in the master unit 2-2. Timeout.

親機2−2では、図9に示したフローチャートに従って、登録済子機タイムアウトカウンタTB(TB1,TB2,TB3)の動作を監視しており(ステップS601)、登録済子機タイムアウトカウンタTB1のタイムアウトが確認されると(ステップS602のYES)、この登録済子機タイムアウトカウンタTB1に対応する子機データ記憶エリアCAR1に記憶されている子機情報を削除する(ステップS603)。   The parent device 2-2 monitors the operation of the registered child device timeout counter TB (TB1, TB2, TB3) according to the flowchart shown in FIG. 9 (step S601), and the registered child device timeout counter TB1 times out. Is confirmed (YES in step S602), the slave unit information stored in the slave unit data storage area CAR1 corresponding to the registered slave unit timeout counter TB1 is deleted (step S603).

これにより、子機1−1側で親機2−2との親子関係が解消された場合、親機2−2側でも子機1−1との親子関係が自動的に解消されるものとなる。なお、この場合、子機1−1側で親子関係が削除されてから、しばらくの間は子機1−1との親子関係が親機2−2側に残ったままとなるので、不都合な場合もあり得る。そのことを考慮して、親子関係を削除した親機2−2に対して、子機1−1側から直ちに親子関係を解消する旨の通知を送信するようにしてもよい。   Accordingly, when the parent-child relationship with the parent device 2-2 is canceled on the child device 1-1 side, the parent-child relationship with the child device 1-1 is automatically canceled also on the parent device 2-2 side. Become. In this case, since the parent-child relationship with the child device 1-1 remains on the parent device 2-2 side for a while after the parent-child relationship is deleted on the child device 1-1 side, it is inconvenient. There may be cases. In view of this, a notification to cancel the parent-child relationship may be transmitted from the child device 1-1 to the parent device 2-2 that has deleted the parent-child relationship.

〔子機側での親機との親子関係の自動解消〕
図13において、子機1−1は、送信メッセージM1を送信する毎に、登録済親機タイムアウトカウンタTA1,TA2をスタートさせ、親機2−1,2−2から受信確認応答C1,C2が返送されてくると、登録済親機タイムアウトカウンタTA1,TA2のカウント動作をリセットする。ここで、例えば、親機2−1から受信確認応答C1が返送されてこなくなると、登録済親機タイムアウトカウンタTA1のカウント動作がリセットされず、タイムアウトする。
[Automatic cancellation of parent-child relationship with the parent device on the child device side]
In FIG. 13, each time the slave unit 1-1 transmits the transmission message M1, the slave unit 1-1 starts the registered master unit timeout counters TA1 and TA2, and receives reception confirmation responses C1 and C2 from the master units 2-1 and 2-2. When it is returned, the count operation of the registered parent device timeout counters TA1 and TA2 is reset. Here, for example, if the reception confirmation response C1 is not returned from the parent device 2-1, the count operation of the registered parent device timeout counter TA1 is not reset, and time-out occurs.

子機1−1では、図8に示したフローチャートに従って、登録済親機タイムアウトカウンタTA(TA1,TA2)の動作を監視しており(ステップS501)、登録済親機タイムアウトカウンタTA1のタイムアウトが確認されると(ステップS502のYES)、この登録済親機タイムアウトカウンタTA1に対応する親機情報記憶エリアPAR1に記憶されている親機情報を削除する(ステップS503)。   The slave unit 1-1 monitors the operation of the registered master unit timeout counter TA (TA1, TA2) according to the flowchart shown in FIG. 8 (step S501), and confirms the timeout of the registered master unit timeout counter TA1. If so (YES in step S502), the parent device information stored in the parent device information storage area PAR1 corresponding to the registered parent device timeout counter TA1 is deleted (step S503).

これにより、通信障害などによって親機2−1から受信確認応答C1が送られてこなくなると、子機1−1側で親機2−1との親子関係が自動的に解消されるものとなる。また、この場合、子機1−1側で親機2−1との親子関係が解消されると、送信メッセージM1に親機2−1の親機IDが含まれなくなるので、親機2−1側での登録済子機タイムアウトカウンタTB1がタイムアウトし、親機2−1側でも子機1−1との親子関係が自動的に解消されるものとなる。また、子機1−1側では、親子関係の設定情報が削除されるので、自動的に親子関係の再設定が促されるものとなる。   As a result, when the reception confirmation response C1 is not sent from the parent device 2-1 due to a communication failure or the like, the parent-child relationship with the parent device 2-1 is automatically canceled on the child device 1-1 side. . In this case, if the parent-child relationship with the parent device 2-1 is canceled on the child device 1-1 side, the parent device ID of the parent device 2-1 is not included in the transmission message M1, so the parent device 2- The registered child device timeout counter TB1 on the first side times out, and the parent-child relationship with the child device 1-1 is automatically canceled on the parent device 2-1 side. Further, since the setting information of the parent-child relationship is deleted on the side of the child device 1-1, the resetting of the parent-child relationship is automatically prompted.

また、例えば、子機1−1が通信圏外に持ち運ばれるなどして、親機2−1,2−2からの受信確認応答C1,C2が確認できなくなったような場合にも同様にして、子機1−1側で親機2−1,2−2との親子関係が自動的に解消されるものとなる。また、この場合、親機2−1,2−2では子機1−1からの計測データを含む送信メッセージM1を取り込むことができなくなるので、親機2−1,2−2側でも子機1−1との親子関係が自動的に解消されるものとなる。   Similarly, for example, when the slave unit 1-1 is carried outside the communication range and the reception confirmation responses C1 and C2 from the master units 2-1 and 2-2 cannot be confirmed, the same applies. The parent-child relationship with the parent devices 2-1 and 2-2 is automatically canceled on the child device 1-1 side. Further, in this case, since the parent devices 2-1 and 2-2 cannot take in the transmission message M1 including the measurement data from the child device 1-1, the child devices on the parent devices 2-1 and 2-2 side as well. The parent-child relationship with 1-1 is automatically canceled.

以上の説明から分かるように、本実施の形態によれば、親子関係の設定が子機側主導で行われるので、初期に一斉に親子関係を設定しようとする場合、親機側の負荷が著しく高くなるということが避けられる。すなわち、子機1側でどの親機2と親子関係を設定するかを決定するので、どの親機2がどの子機1と親子関係を設定するのかを親機2間で通信を行って決定する必要がなく、親機2側の負荷が少なくなる。   As can be seen from the above description, according to the present embodiment, since the setting of the parent-child relationship is performed on the initiative of the child device side, when trying to set the parent-child relationship all at once, the load on the parent device side is remarkably high. It can be avoided that it becomes high. That is, since the parent device 2 determines which parent device 2 and the parent-child relationship are set, the parent device 2 determines which parent device 2 sets the parent-child relationship by communicating between the parent devices 2. There is no need to do so, and the load on the base unit 2 side is reduced.

また、本実施の形態によれば、子機側、親機側双方に親子関係が自動的に設定されるので、万が一、親機2側で保存されている親子関係情報が消失した場合でも、また子機1側で保存されている親子関係情報が消失した場合でも、何れか一方に残されている親子関係情報を用いて消失前の親子関係を復元することが可能となる。   In addition, according to the present embodiment, since the parent-child relationship is automatically set on both the child device side and the parent device side, even if the parent-child relationship information stored on the parent device 2 side is lost, Further, even when the parent-child relationship information stored on the side of the child device 1 is lost, it is possible to restore the parent-child relationship before the loss using the parent-child relationship information remaining in either one.

なお、上述した実施の形態では、子機1の親子関係を設定することが可能な親機の最大台数Nを2台とし、親機2の親子関係を設定することが可能な子機の最大台数Mを3台としたが、最大台数N,Mは自由に設定できることは言うまでもない。例えば、子機1において、最大台数Nを1台とすれば、複数の親機2と同時に親子関係を結ぶことを禁止することができる。すなわち、子機1における親機情報記憶部1Hの親機情報記憶エリアPARを1つとするのみで、その子機を複数台の親機と同時に親子関係を設定することができないタイプ(親子関係重複NGタイプ)とすることができる。   In the above-described embodiment, the maximum number N of parent devices that can set the parent-child relationship of the child device 1 is two, and the maximum number of child devices that can set the parent-child relationship of the parent device 2 is as follows. Although the number M is three, it goes without saying that the maximum number N and M can be set freely. For example, if the maximum number N is set to 1 in the slave unit 1, it is possible to prohibit the parent-child relationship from being established simultaneously with the plurality of master units 2. That is, only one parent device information storage area PAR of the parent device information storage unit 1H in the child device 1 is used, and a type in which the child device can not set a parent-child relationship simultaneously with a plurality of parent devices (parent-child relationship duplication NG Type).

また、上述した実施の形態では、子機1側において、例えば、親機情報記憶部1Hの親機情報記憶エリアPAR1,PAR2が空エリアである場合、親候補リストLSTから最も通信品質の良好な親機Xを1つだけ選び出し、その親機Xの情報を親機情報記憶部1Hの親機情報記憶エリアPAR1に記憶するようにしたが、親候補リストLSTから通信品質の良好な上位の2つを選び出し、その選び出した2つの親機の情報を一度に親機情報記憶部1Hの親機情報記憶エリアPAR1,PAR2に記憶するようにしてもよい。また、通信品質ではなく、親子関係設定可能通知を送ってきた順に、その親機の情報を親機情報記憶部1Hの親機情報記憶エリアPAR1,PAR2に記憶して行くようにしてもよい。   Further, in the above-described embodiment, on the handset 1 side, for example, when the base unit information storage areas PAR1 and PAR2 of the base unit information storage unit 1H are empty areas, the best communication quality is obtained from the parent candidate list LST. Only one parent device X is selected and the information of the parent device X is stored in the parent device information storage area PAR1 of the parent device information storage unit 1H. It is also possible to select one and store the information of the two selected master units at once in the base unit information storage areas PAR1 and PAR2 of the base unit information storage unit 1H. Further, instead of the communication quality, the parent device information may be stored in the parent device information storage areas PAR1 and PAR2 of the parent device information storage unit 1H in the order in which the parent-child relationship setting availability notification is sent.

また、上述した実施の形態では、子機1において、親機情報記憶部1Hに空エリアがない場合、交代条件を通信品質とし、通信品質のより良好な親機2と親子関係の設定変更を行わせるようにしたが、例えば親機2に優先順位を定めて、より優先順位の高い親機2と親子関係の設定変更を行わせるようにしてもよい。交代条件を通信品質とすることにより、無線通信の安定性が高められる。交代条件を優先順位とすることにより、より重要な親機に対して、優先的に親子関係が自動的に設定されるものとなる。また、親機情報記憶部1Hに空エリアがない場合、交代候補の親機も削除候補の親機も、1台ずつではなく、複数台ずつとして、親子関係の設定変更を複数台まとめて行うようにしてもよい。   Further, in the above-described embodiment, when there is no empty area in the parent device information storage unit 1H in the child device 1, the change condition is set as the communication quality, and the setting change of the parent device 2 and the parent-child relationship with better communication quality is performed. However, for example, the priority order may be set for the master unit 2 so that the parent-child relationship with the master unit 2 having a higher priority order is changed. By setting the replacement condition as communication quality, the stability of wireless communication is improved. By setting the replacement condition as a priority order, a parent-child relationship is automatically set preferentially for a more important parent machine. In addition, when there is no empty area in the parent device information storage unit 1H, the change of the parent-child relationship setting is performed for the replacement candidate parent device and the deletion candidate parent device not for each one, but for each plurality. You may do it.

また、上述した実施の形態では、子機1において、親機情報記憶部1Hに空エリアがない場合、親子関係の設定変更が自動的に行われるものとしたが、親子関係の自動設定変更を行わせないようにしてもよい。すなわち、子機1において、親機の登録数が最大台数Nとなった場合、その時点で親機の登録を締め切り、以降の親子関係の設定変更を禁止するようにしてもよい。   Further, in the above-described embodiment, when there is no empty area in the parent device information storage unit 1H in the child device 1, the parent-child relationship setting change is automatically performed. However, the parent-child relationship automatic setting change is performed. You may make it not perform. That is, in the child device 1, when the number of registered parent devices reaches the maximum number N, the registration of the parent device may be closed at that time, and the setting change of the parent-child relationship thereafter may be prohibited.

この親子関係の設定変更の禁止は、例えば、親機2において、子機1からの送信メッセージM1中、親機IDの書き込みスペースSP1,SP2をチェックし、この書き込みスペースSP1,SP2の全てに親機IDが書き込まれていた場合、親機2から親子関係設定可能通知を子機1に送らないようにすることによって実現することが可能である。このようにすると、子機1では親候補リストLSTが作成されないので、親機情報記憶部1Hに対する親子関係の設定変更が禁止されるものとなる。   For example, in the parent device 2, in the transmission message M1 from the child device 1, the parent device ID writing spaces SP1 and SP2 are checked in the parent device 2, and all of the writing spaces SP1 and SP2 are parented. When the machine ID is written, it can be realized by not sending a parent-child relationship setting possible notification from the parent machine 2 to the child machine 1. In this way, since the parent candidate list LST is not created in the child device 1, setting change of the parent-child relationship with respect to the parent device information storage unit 1H is prohibited.

また、上述した実施の形態では、子機1側で親子関係を設定(登録)した後、親機2側へ親子関係設定通知を送信し、親子関係設定通知を受信した親機2がそれに従って親子関係を設定(登録)して処理を終えるようにしているが、子機1側で親子関係を直ちに設定せずに、子機1側で設定可能と判断した親機2に対して親子関係設定可能通知を送り、それを受信した親機2側が親子関係を設定(登録)した後に、子機1側へ親子関係設定通知を送るようにし、子機1側において受信された時に正式にその親機2との親子関係を設定(登録)するようにしてもよい。   In the above-described embodiment, after the parent device 1 side sets (registers) the parent-child relationship, the parent-child relationship setting notification is transmitted to the parent device 2 side. The parent-child relationship is set (registered) to finish the process, but the parent-child relationship is determined for the parent device 2 that is determined to be set on the child device 1 side without immediately setting the parent-child relationship on the child device 1 side. After sending the settable notification and setting (registering) the parent-child relationship on the parent device 2 side that has received it, the parent-child relationship setting notification is sent to the child device 1 side. A parent-child relationship with the parent device 2 may be set (registered).

また、上述した処理動作は、子機1におけるCPU1Aおよび親機2におけるCPU2Aのプログラムに従う処理動作として行われるが、この処理動作を実現する特徴的な機能ブロックとして、子機1は、図16に示すように、親機情報記憶部1Hの親機情報記憶エリアPARに記憶されている全ての親機IDと子機ID記憶部1Gに記憶されている自己のIDと送信データとを含む送信メッセージMを定期的に送信する送信メッセージ送信部11と、親機2からの自己に宛てられた親子関係設定可能通知Aを受信した場合に、親機情報記憶部1Hの親機情報記憶エリアPARに親機IDが記憶されていない空エリアが存在するか否かを調べ、空エリアが存在する場合、その空エリアの1つに受信した親子関係設定可能通知Aに付加されている親機IDを含む親機の情報(親機ID、通信品質、受信時刻)を記憶し、その親子関係設定可能通知Aの送信元の親機2に宛てて自己のIDを付加して子機1側での親子関係の設定を知らせる親子関係設定通知Bを送信する子機側親子関係設定部12とを備えている。   The processing operations described above are performed as processing operations according to the programs of the CPU 1A in the slave unit 1 and the CPU 2A in the master unit 2. As a characteristic functional block for realizing this processing operation, the slave unit 1 is shown in FIG. As shown, a transmission message including all the parent device IDs stored in the parent device information storage area PAR of the parent device information storage unit 1H, the self ID stored in the child device ID storage unit 1G, and transmission data. When the transmission message transmission unit 11 that periodically transmits M and the parent-child relationship setting possibility notification A addressed to itself from the parent device 2 are received, the parent device information storage area PAR of the parent device information storage unit 1H It is checked whether or not there is an empty area in which the parent machine ID is not stored. If there is an empty area, it is added to the parent-child relationship setting availability notification A received in one of the empty areas. Information on the parent device including the parent device ID (parent device ID, communication quality, reception time) is stored, and the child device is added with its own ID addressed to the parent device 2 that is the transmission source of the parent-child relationship setting notification A A slave unit-side parent-child relationship setting unit 12 that transmits a parent-child relationship setting notification B that notifies the setting of the parent-child relationship on one side.

また、子機1は、親機2からの自己に宛てられた親子関係設定可能通知Aを受信した場合に、親機情報記憶部1Hの親機情報記憶エリアPARに親機の情報が記憶されていない空エリアが存在するか否かを調べ、空エリアが存在しない場合、親機情報記憶エリアPARのうちの1つを空エリアとして利用可能か否かを通信品質に基づいて判断し、空エリアとして利用することが可能であると判断した場合、そのエリアに記憶されている親機の情報を削除して受信した親子関係設定可能通知Aに付加されている親機IDを含む親機の情報(親機ID、通信品質、受信時刻)を記憶し、その親子関係設定可能通知Aの送信元の親機2に宛てて自己のIDを付加して子機側での親子関係を設定したことを知らせる親子関係設定通知Bを送信する子機側親子関係自動変更部14と、送信メッセージMの送信後、所定時間が経過しても、親機情報記憶エリアPARにその親機IDが記憶されている親機2からの受信確認応答Cが送られてこない場合、親機情報記憶エリアPARに記憶されているその親機情報を削除する親機側親子関係削除部14とを備えている。   Further, when the slave unit 1 receives the parent-child relationship setting enable notification A addressed to itself from the master unit 2, the master unit information is stored in the master unit information storage area PAR of the master unit information storage unit 1H. If there is no empty area, it is determined based on the communication quality whether one of the parent device information storage areas PAR can be used as an empty area. If it is determined that the information can be used as an area, the information of the parent device stored in the area is deleted and the parent device ID including the parent device ID added to the received parent / child relationship setting notification A is received. Information (base unit ID, communication quality, reception time) is stored, and the parent-child relationship on the handset side is set by adding its own ID to the base unit 2 that is the transmission source of the parent-child relationship setting enable notification A Slave unit that transmits parent-child relationship setting notification B Even if a predetermined time elapses after transmission of the parent-child relationship automatic change unit 14 and the transmission message M, a reception confirmation response C from the parent device 2 whose parent device ID is stored in the parent device information storage area PAR is sent. If not received, the parent device side parent-child relationship deleting unit 14 for deleting the parent device information stored in the parent device information storage area PAR is provided.

また、親機2は、上述した処理動作を実現する特徴的な機能ブロックとして、図17に示すように、子機1からの送信メッセージMを受信する送信メッセージ受信部21と、受信された子機1からの送信メッセージMに含まれている親機IDをチェックし、この親機IDに自己の親機IDが含まれていない場合、子機データ記憶部2Gの子機データ記憶エリアCARに子機の情報が記憶されていない空エリアが存在するか否かを調べ、空エリアが存在する場合には、受信された送信メッセージMの送信元の子機1に宛てて自己のIDを付加して親子関係が設定可能である旨の親子関係設定可能通知Aを送信する親子関係設定可能通知部22と、子機1からの自己に宛てられた親子関係設定通知Bを受信した場合、子機データ記憶部2Gの子機データ記憶エリアCARの空エリアの1つに、受信した親子関係設定通知Bに付加されている子機のIDを記憶する親機側親子関係設定部23とを備えている。   Further, as shown in FIG. 17, the master unit 2 includes a transmission message receiving unit 21 that receives a transmission message M from the slave unit 1 and a received child unit as characteristic functional blocks that realize the processing operations described above. The base unit ID included in the transmission message M from the unit 1 is checked, and when the base unit ID does not include its own base unit ID, it is stored in the handset unit data storage area CAR of the handset unit data storage unit 2G. It is checked whether or not there is an empty area in which information of the slave unit is not stored. If there is an empty area, its own ID is added to the slave unit 1 that is the transmission source of the received transmission message M. If a parent-child relationship setting notification unit 22 that transmits a parent-child relationship setting notification A indicating that the parent-child relationship can be set, and a parent-child relationship setting notification B addressed to itself from the child device 1 are received, Slave unit of machine data storage unit 2G One of the empty area of over data storage area CAR, and a base-side child relationship setting unit 23 for storing the ID of the slave unit added to the parent-child relationship setting notification B received.

また、親機2は、受信された子機1からの送信メッセージMに含まれている親機IDをチェックし、この親機IDに自己のIDが含まれていた場合、その送信メッセージMに含まれている子機IDをチェックし、この子機IDが子機情報記憶エリアCARに記憶されていた場合、その子機情報記憶エリアCARにその送信メッセージMに含まれている送信データを記憶し、その送信メッセージMの送信元の子機1に宛てて自己のIDを付加して受信確認応答Cを送信する受信確認応答送信部24と、子機1からの送信データを子機情報記憶エリアCARへ記憶した後、所定時間が経過してもその子機情報記憶エリアCARへ記憶されるべき次の送信データが送られてこない場合、その子機情報記憶エリアに記憶されている子機の情報を削除する親機側親子関係削除部25とを備えている。   In addition, the base unit 2 checks the base unit ID included in the received transmission message M from the mobile unit 1, and if the base unit ID includes its own ID, The included child device ID is checked, and if this child device ID is stored in the child device information storage area CAR, the transmission data included in the transmission message M is stored in the child device information storage area CAR. A reception confirmation response transmission unit 24 for transmitting a reception confirmation response C to the transmission source child device 1 of the transmission message M by adding its own ID, and transmission data from the child device 1 in the child device information storage area If the next transmission data to be stored in the child device information storage area CAR is not sent to the child device information storage area CAR even after a predetermined time has elapsed after being stored in the CAR, information on the child device stored in the child device information storage area is stored. Delete And a base-side parent-child relationship deleting section 25.

本発明の無線通信システムは、双方向の通信機能を備えた親機と子機との間でメッセージの送受信を行う無線通信システムとして、空調設備,防犯設備,照明設備など各種の設備が設置されている大規模な空間を持つ建物などで利用することが可能である。   The wireless communication system of the present invention is equipped with various facilities such as air conditioning equipment, crime prevention equipment, and lighting equipment as a wireless communication system that transmits and receives messages between a parent device and a child device having a bidirectional communication function. It can be used in buildings with large spaces.

1(1−1)…子機、1A…CPU、1B…ROM、1C…センシング部、1D…通信制御部、1E…送信部、1F…受信部、1G…子機ID記憶部、1H…親機情報記憶部、1I…親候補リスト記憶部、TA(TA1,TA2)…登録済親機タイムアウトカウンタ、CAR(CAR1,CAR2,CAR3)…子機データ記憶エリア、2(2−1,2−2,2−3)…親機、2A…CPU、2B…ROM、2C…通信制御部、2D…送信部、2E…受信部、2F…親機ID記憶部、2G…子機データ記憶部、TB(TB1,TB2,TB3)…登録済子機タイムアウトカウンタ、PAR(PAR1,PAR2)…親機情報記憶エリア、LST…親候補リスト、11…送信メッセージ送信部、12…子機側親子関係設定部、13…子機側親子関係自動変更部、14…子機側親子関係削除部、21…送信メッセージ受信部、22…親子関係設定可能通知部、23…親機側親子関係設定部、24…受信確認応答送信部、25…親機側親子関係削除部。   1 (1-1) ... Slave unit, 1A ... CPU, 1B ... ROM, 1C ... Sensing unit, 1D ... Communication control unit, 1E ... Sending unit, 1F ... Receiving unit, 1G ... Slave unit ID storage unit, 1H ... Parent Machine information storage unit, 1I: Parent candidate list storage unit, TA (TA1, TA2) ... Registered parent machine timeout counter, CAR (CAR1, CAR2, CAR3) ... Slave unit data storage area, 2 (2-1, 2- 2, 2-3) ... master unit, 2A ... CPU, 2B ... ROM, 2C ... communication control unit, 2D ... transmission unit, 2E ... reception unit, 2F ... master unit ID storage unit, 2G ... slave unit data storage unit, TB (TB1, TB2, TB3) ... registered child device timeout counter, PAR (PAR1, PAR2) ... parent device information storage area, LST ... parent candidate list, 11 ... transmission message transmission unit, 12 ... child device side parent-child relationship setting Part 13 Automatic change section, 14 ... Slave unit side parent-child relationship deletion unit, 21 ... Transmission message reception unit, 22 ... Parent-child relationship setting enable notification unit, 23 ... Master unit side parent-child relationship setting unit, 24 ... Reception confirmation response transmission unit, 25 … Parent-side parent-child relationship deletion part.

Claims (6)

双方向の通信機能を備えた親機と子機との間でメッセージの送受信を行う無線通信システムにおいて、
前記子機は、
自己と親子の接続関係が設定された親機の情報の記憶エリアとして少なくともその親機の識別情報が記憶される親機情報記憶エリアを自己と親子の接続関係を設定することが可能な親機の最大台数分有する親機情報記憶手段と、
前記親機情報記憶エリアに記憶されている全ての親機の識別情報と自己の識別情報と送信データとを含む送信メッセージを定期的に送信する送信メッセージ送信手段とを備え、
前記親機は、
自己と親子の接続関係が設定された子機の情報の記憶エリアとして少なくともその子機の識別情報とその子機からの送信データが記憶される子機データ記憶エリアを自己と親子の接続関係を設定することが可能な子機の最大台数分有する子機データ記憶手段と、
前記子機からの送信メッセージを受信する送信メッセージ受信手段と、
前記受信された子機からの送信メッセージに含まれている親機の識別情報をチェックし、この親機の識別情報に自己の親機の識別情報が含まれていない場合、前記子機データ記憶エリアに子機の情報が記憶されていない空エリアが存在するか否かを調べ、空エリアが存在する場合には、前記受信された送信メッセージの送信元の子機に宛てて自己の識別情報を付加して親子の接続関係が設定可能である旨の親子関係設定可能通知を送信する親子関係設定可能通知送信手段とを備える
ことを特徴とする無線通信システム。
In a wireless communication system that transmits and receives messages between a parent device and a child device having a bidirectional communication function,
The slave is
A parent device capable of setting a connection relationship between a parent and a child in a parent device information storage area in which at least identification information of the parent device is stored as a storage area of information on the parent device in which a connection relationship between the self and the parent and child is set A master unit information storage means having the maximum number of units,
Transmission message transmission means for periodically transmitting a transmission message including identification information of all the parent devices stored in the parent device information storage area, self identification information, and transmission data;
The base unit is
As the storage area for the slave unit information in which the connection relationship between the self and the parent is set, at least the slave unit data storage area for storing the identification information of the slave unit and the transmission data from the slave unit is set as the connection relationship between the self and the parent A handset data storage means having the maximum number of handset units capable of,
A transmission message receiving means for receiving a transmission message from the slave unit;
The identification information of the parent device included in the received transmission message from the child device is checked, and when the identification information of the parent device is not included in the identification information of the parent device, the child device data storage It is checked whether or not there is an empty area in which no slave information is stored in the area. If there is an empty area, the identification information of itself is addressed to the slave that is the transmission source of the received transmission message. And a parent-child relationship setting enable notification transmission means for transmitting a parent-child relationship setting enable notification indicating that the parent-child connection relationship can be set.
請求項1に記載された無線通信システムにおいて、
前記子機は、
前記親機からの自己に宛てられた親子関係設定可能通知を受信した場合、前記親機情報記憶エリアに親機の情報が記憶されれていない空エリアが存在するか否かを調べ、空エリアが存在する場合、その空エリアの1つに受信した親子関係設定可能通知に付加されている親機の識別情報を記憶し、その親子関係設定可能通知の送信元の親機に宛てて自己の識別情報を付加して子機側での親子の接続関係の設定を知らせる親子関係設定通知を送信する子機側親子関係設定手段を備え、
前記親機は、
前記子機からの自己に宛てられた親子関係設定通知を受信した場合、前記子機情報記憶エリアの空エリアの1つに、受信した親子関係設定通知に付加されている子機の識別情報を記憶する親機側親子関係設定手段を備える
ことを特徴とする無線通信システム。
The wireless communication system according to claim 1, wherein
The slave is
If a parent-child relationship setting possible notification addressed to itself is received from the parent device, it is checked whether there is an empty area in which information on the parent device is not stored in the parent device information storage area. Is stored in one of the empty areas, the identification information of the parent device added to the received notification that the parent-child relationship can be set is stored. A slave unit side parent-child relationship setting means for transmitting a parent-child relationship setting notification for adding identification information to notify the setting of the parent-child connection relationship on the slave unit side,
The base unit is
When the parent-child relationship setting notification addressed to itself is received from the child device, the identification information of the child device added to the received parent-child relationship setting notification is added to one of the empty areas of the child device information storage area. A wireless communication system comprising a parent device-side parent-child relationship setting means for storing.
請求項1に記載された無線通信システムにおいて、
前記親機は、
前記受信された子機からの送信メッセージに含まれている親機の識別情報をチェックし、この親機の識別情報に自己の親機の識別情報が含まれていた場合、その送信メッセージに含まれている子機の識別情報をチェックし、この子機の識別情報が前記子機情報記憶エリアに記憶されていた場合、その子機情報記憶エリアにその送信メッセージに含まれている送信データを記憶し、その送信メッセージの送信元の子機に宛てて自己の識別情報を付加して受信確認応答を送信する受信確認応答送信手段と、
前記子機からの送信データを前記子機情報記憶エリアへ記憶した後、所定時間が経過してもその子機情報記憶エリアへ記憶されるべき次の送信データが送られてこない場合、その子機情報記憶エリアに記憶されている子機の情報を削除する親機側親子関係削除手段とを備え、
前記子機は、
前記送信メッセージの送信後、所定時間が経過しても、前記親機情報記憶エリアにその識別情報が記憶されている親機から前記受信確認応答が送られてこない場合、前記親機情報記憶エリアに記憶されているその親機の情報を削除する子機側親子関係削除手段を備える
ことを特徴とする無線通信システム。
The wireless communication system according to claim 1, wherein
The base unit is
If the identification information of the parent device included in the received transmission message from the child device is checked and the identification information of the parent device is included in the identification information of the parent device, it is included in the transmission message. If the identification information of the slave unit is stored in the slave unit information storage area, the transmission data included in the transmission message is stored in the slave unit information storage area. And a reception confirmation response transmission means for transmitting a reception confirmation response by adding its own identification information to the slave unit that is the transmission source of the transmission message,
After storing the transmission data from the slave unit in the slave unit information storage area, if the next transmission data to be stored in the slave unit information storage area is not sent even after a predetermined time has passed, the slave unit information A parent device side parent-child relationship deleting means for deleting information of the child device stored in the storage area,
The slave is
When the reception confirmation response is not sent from the parent device whose identification information is stored in the parent device information storage area even after a predetermined time has elapsed after the transmission message is transmitted, the parent device information storage area A wireless communication system, comprising: a slave unit-side parent-child relationship deleting unit that deletes information on the master unit stored in the base station.
請求項1に記載された無線通信システムにおいて、
前記子機は、
前記親機からの自己に宛てられた親子関係設定可能通知を受信した場合、前記親機情報記憶エリアに親機の情報が記憶されていない空エリアが存在するか否かを調べ、空エリアが存在しない場合、前記親機情報記憶エリアのうちの1つを空エリアとして利用可能か否かを所定の交代条件を示す情報に基づいて判断し、空エリアとして利用することが可能であると判断した場合、そのエリアに記憶されている親機の情報を削除して前記受信した親子関係設定可能通知に付加されている親機の識別情報を記憶し、その親子関係設定可能通知の送信元の親機に宛てて自己の識別情報を付加して子機側での親子の接続関係を設定したことを知らせる親子関係設定通知を送信する子機側親子関係自動変更手段を備え、
前記親機は、
前記子機からの自己に宛てられた親子関係設定通知を受信した場合、前記子機情報記憶エリアの空エリアの1つに、受信した親子関係設定通知に付加されている子機の識別情報を記憶する親機側親子関係設定手段を備える
ことを特徴とする無線通信システム。
The wireless communication system according to claim 1, wherein
The slave is
If a parent-child relationship setting possible notification addressed to itself is received from the parent device, it is checked whether there is an empty area in which no parent device information is stored in the parent device information storage area. If it does not exist, it is determined whether one of the parent device information storage areas can be used as an empty area based on information indicating a predetermined replacement condition, and it is determined that it can be used as an empty area. In this case, the base unit information stored in the area is deleted, the base unit identification information added to the received parent-child relationship settable notification is stored, and the transmission source of the parent-child relationship settable notification is stored. A slave-side parent-child relationship automatic change means for sending a parent-child relationship setting notification for notifying that a parent-child connection relationship on the slave device side is set by adding its own identification information to the parent device,
The base unit is
When the parent-child relationship setting notification addressed to itself is received from the child device, the identification information of the child device added to the received parent-child relationship setting notification is added to one of the empty areas of the child device information storage area. A wireless communication system comprising a parent device-side parent-child relationship setting means for storing.
請求項4に記載された無線通信システムにおいて、
前記子機側親子関係自動変更手段は、
前記所定の交代条件を示す情報として、前記受信した親子関係設定可能通知の受信時の通信品質を示す情報に基づいて、前記親機情報記憶エリアのうちの1つを空エリアとして利用可能か否かを判断する
ことを特徴とする無線通信システム。
The wireless communication system according to claim 4, wherein
The slave-side parent-child relationship automatic changing means is:
Whether or not one of the parent device information storage areas can be used as an empty area based on information indicating communication quality at the time of reception of the received parent-child relationship setting availability notification as information indicating the predetermined replacement condition A wireless communication system characterized by determining whether or not.
請求項5に記載された無線通信システムにおいて、
前記親機情報記憶手段は、
前記親機情報記憶エリアに、前記親機の情報として、その親機の識別情報とその親機からの親子関係設定可能通知の受信時の通信品質を少なくとも記憶し、
前記子機側親子関係自動変更手段は、
前記親機情報記憶エリアのうちその記憶されている通信品質が最も悪いエリアを利用可能な空エリアの候補として選定し、前記受信した親子関係設定可能通知の中で最も通信品質の良い親子関係設定可能通知を交代候補の親機からの親子関係設定可能通知として選定し、交代候補の親機からの親子関係設定可能通知の通信品質が空エリアの候補に記憶されている通信品質よりも良好な場合に、前記所定の交代条件を満たすと判断し、前記空エリアの候補に記憶されている親機の情報を削除して前記交代候補の親機からの親子関係設定可能通知に付加されている親機の識別情報とその親子関係設定可能通知の受信時の通信品質を少なくとも記憶する
ことを特徴とする無線通信システム。
The wireless communication system according to claim 5, wherein
The base unit information storage means
In the parent device information storage area, as the information of the parent device, at least the communication quality at the time of reception of the parent device identification information and the parent-child relationship setting possible notification from the parent device,
The slave-side parent-child relationship automatic changing means is:
Of the parent device information storage area, the area with the worst communication quality stored is selected as a usable empty area candidate, and the parent-child relationship setting with the best communication quality among the received parent-child relationship setting notification is received. The notification is selected as a parent-child relationship setting available notification from the replacement candidate parent device, and the communication quality of the parent-child relationship setting available notification from the replacement candidate parent device is better than the communication quality stored in the empty area candidates. In this case, it is determined that the predetermined replacement condition is satisfied, and information on the parent device stored in the empty area candidate is deleted and added to the parent-child relationship setting notification from the replacement candidate parent device. A wireless communication system characterized by storing at least the communication quality at the time of receiving the identification information of the parent device and the notification that the parent-child relationship can be set.
JP2010167313A 2010-07-26 2010-07-26 Wireless communication system Pending JP2012029159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010167313A JP2012029159A (en) 2010-07-26 2010-07-26 Wireless communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010167313A JP2012029159A (en) 2010-07-26 2010-07-26 Wireless communication system

Publications (1)

Publication Number Publication Date
JP2012029159A true JP2012029159A (en) 2012-02-09

Family

ID=45781552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010167313A Pending JP2012029159A (en) 2010-07-26 2010-07-26 Wireless communication system

Country Status (1)

Country Link
JP (1) JP2012029159A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015162876A (en) * 2014-02-28 2015-09-07 沖電気工業株式会社 Radio communication device and radio communication system
JP2019200848A (en) * 2018-05-14 2019-11-21 三菱電機株式会社 Lighting control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015162876A (en) * 2014-02-28 2015-09-07 沖電気工業株式会社 Radio communication device and radio communication system
JP2019200848A (en) * 2018-05-14 2019-11-21 三菱電機株式会社 Lighting control system
JP6996417B2 (en) 2018-05-14 2022-01-17 三菱電機株式会社 Lighting control system

Similar Documents

Publication Publication Date Title
US20120310599A1 (en) Sensor data collection system
JP2013219430A (en) Radio communication device, radio communication system, method, and computer program
JP5971225B2 (en) Wireless device, wireless module, interface module, and communication method
US20210240464A1 (en) Automatic device-to-device firmware upgrade of a wireless network
JP5721524B2 (en) Node device, wireless network system, and backup method
JP4534145B2 (en) How to connect the master unit and slave unit
JP2012029159A (en) Wireless communication system
JP2008148029A (en) Radio communication system and device
US9307068B2 (en) Information processing apparatus and communication processing method thereof
JP2013172188A (en) Communication terminal and message registration method and program
JP2013207760A (en) Data collecting method, mobile terminal and data storage device
JP6232757B2 (en) Message transfer system, communication terminal, management device, and message transfer method
JP4932272B2 (en) Chat system
JP4893710B2 (en) Wireless terminal device
JP5573553B2 (en) Multistage relay system and report route deletion method in the same system
JP2012029160A (en) Wireless communication system
JP2010134860A (en) Specified low power radio telemeter system
JP5044388B2 (en) Optical transmission system
JP5380356B2 (en) Multi-hop communication system
JP4973516B2 (en) Network management system, network management device, device management method, and device management control program
JP2010011156A (en) Wireless telemeter system
JP6950048B2 (en) Communications system
JP4137318B2 (en) Computer backup system
JP2013171568A (en) Radio telemeter system
JP6725274B2 (en) Communication system, connection control method, and connection control program