JP2007151025A - Data collection system - Google Patents

Data collection system Download PDF

Info

Publication number
JP2007151025A
JP2007151025A JP2005346008A JP2005346008A JP2007151025A JP 2007151025 A JP2007151025 A JP 2007151025A JP 2005346008 A JP2005346008 A JP 2005346008A JP 2005346008 A JP2005346008 A JP 2005346008A JP 2007151025 A JP2007151025 A JP 2007151025A
Authority
JP
Japan
Prior art keywords
data
data collection
slave
collection system
channel
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.)
Granted
Application number
JP2005346008A
Other languages
Japanese (ja)
Other versions
JP4107322B2 (en
Inventor
Ayako Fujimura
綾子 藤村
Chuichi Kikuchi
忠一 菊池
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP2005346008A priority Critical patent/JP4107322B2/en
Publication of JP2007151025A publication Critical patent/JP2007151025A/en
Application granted granted Critical
Publication of JP4107322B2 publication Critical patent/JP4107322B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data collection system in which data are collected by radio between a master unit and a plurality of slave units and the time required for communication is shortened compatibly with prevention of interference by exchanging data only with slave units preceding and following in a transmission order using a preset channel. <P>SOLUTION: In a data collection system 1 of the present invention, a master unit P collects data from a plurality of slave units Cn by radio, a transmission order from a first slave unit C1 to a final slave unit CM is preset to the plurality of slave units Cn, each of the slave units Cn exchanges data only with slave units Cn-1 and Cn+1 preceding and following in the transmission order using a preset channel, respectively and the master unit P exchanges data only with the first slave unit C1 using a preset channel. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、親機と複数の子機との間で無線によりデータの収集を行うデータ収集システムに係り、特に通信所要時間の短縮と混信の防止を両立するデータ収集システムに関する。   The present invention relates to a data collection system that wirelessly collects data between a parent device and a plurality of child devices, and more particularly to a data collection system that achieves both a reduction in communication time and prevention of interference.

1台の親機と複数の子機との間でデータの収集を行うデータ収集システムでは、従来から親機によるポーリング制御によってデータの収集が行われており、子機には固有のアドレスが割り当てられ、親機からの制御データを受信すると、宛先アドレスが自らのアドレスと一致した場合にのみ、その制御データに基づいて処理を実行し、宛先アドレスが一致しなければ何の処理も実行しないように構成されていた。   In a data collection system that collects data between a single master unit and multiple slave units, data is conventionally collected by polling control by the master unit, and a unique address is assigned to the slave unit. When control data is received from the master unit, processing is executed based on the control data only when the destination address matches its own address, and no processing is executed unless the destination address matches. Was configured.

このようなデータ収集システムを既存の設備に設置する場合に、機器間の通信を無線化すれば電源工事だけで通信線の工事が不要となるのでコストをかけずに設置することが可能である。   When such a data collection system is installed in an existing facility, if the communication between devices is made wireless, it is possible to install it without cost because the construction of the communication line becomes unnecessary only by the power construction. .

このような無線通信ネットワークシステムの従来例として、例えば特開2003−8626号公報(特許文献4)が知られている。
特開2003−8626号公報
As a conventional example of such a wireless communication network system, for example, Japanese Patent Laid-Open No. 2003-8626 (Patent Document 4) is known.
JP 2003-8626 A

しかしながら、親機の電波到達範囲内に全ての子機が存在する場合に、各子機が勝手に送信すると、各子機がキャリアをセンスして送信していても親機側では電波が混信して受信できないという隠れ端末問題が発生する。これを避けるために、親機が各子機に問い合わせて指定された子機だけが応答する方法もあるが、親機の電波到達範囲内に全ての子機を設置しなければならないので、通信範囲に制限ができてしまう。   However, when all the slave units exist within the radio wave reach of the master unit, if each slave unit transmits without permission, even if each slave unit senses and transmits the carrier, The hidden terminal problem that cannot be received occurs. In order to avoid this, there is a method in which the master unit inquires each slave unit and only the specified slave unit responds, but all the slave units must be installed within the radio wave reach of the master unit. You can limit the range.

また、少なくとも隣り合う子機とは無線通信ができるように設置して順番に隣の子機と通信していくことにより情報を伝達する方式もあるが、混信(隠れ端末問題)を避けるためには、ある瞬間に電波を送信できるのは1台に限られるので、システムとしての通信所要時間が大幅に増えてしまう。   In addition, there is a method to transmit information by installing wireless communication with at least the neighboring handset and communicating with the neighboring handset in order, but in order to avoid interference (hidden terminal problem) Since only one unit can transmit radio waves at a certain moment, the time required for communication as a system greatly increases.

さらに、無線で1:Nのマルチホップ通信を使うと、時間的に効率よく親機からの命令を子機に伝達することはできるが、子機の設置位置によって通信可能な子機の数が異なり、隠れ端末問題も残るので、子機のデータを収集する制御システムには適当ではなかった。   Furthermore, when 1: N multi-hop communication is used wirelessly, commands from the parent device can be transmitted to the child device in a time efficient manner, but the number of child devices that can communicate depends on the installation position of the child device. In contrast, the hidden terminal problem remains, which is not appropriate for the control system that collects the data of the handset.

また、マルチホップを1:1に限定して図28に示すようなシステム構成及び図29に示すようなシーケンスで親機が主導権を持って制御すると、データの衝突はなくなるが、図29のシーケンス図から分かるように、何れかの子機にデータ要求をすると、それがデータ応答として戻ってくるまで、他の子機に対して通信することができず、通信時間が増大してしまう。   In addition, if the master unit controls the multi-hop to 1: 1 with the system configuration as shown in FIG. 28 and the sequence as shown in FIG. As can be seen from the sequence diagram, when a data request is made to any of the slave units, communication cannot be made to other slave units until it returns as a data response, resulting in an increase in communication time.

本発明の目的は、親機が複数の子機からデータを収集するデータ収集システムにおいて、通信所要時間の短縮と混信(隠れ端末問題)の防止とを両立させることにある。   An object of the present invention is to achieve both reduction in communication time and prevention of interference (hidden terminal problem) in a data collection system in which a parent device collects data from a plurality of child devices.

上述した課題を解決するために、本発明のデータ収集システムは、親機が複数の子機から無線によりデータの収集を行うデータ収集システムであって、前記複数の子機は、第1の子機から終端の子機まで送信順序が予め設定されており、各子機はそれぞれ転送方向によって予め設定されたチャネルを用いて前記送信順序が前後する子機とだけデータの送受信を行い、前記親機は、予め設定されたチャネルを用いて前記第1の子機とだけデータの送受信を行うことを特徴とする。   In order to solve the above-described problem, a data collection system according to the present invention is a data collection system in which a parent device wirelessly collects data from a plurality of child devices, and the plurality of child devices includes a first child device. A transmission order is set in advance from the terminal to the terminal slave, and each slave transmits / receives data only to the slaves whose transmission order is different by using a channel preset according to the transfer direction. The device transmits / receives data only to / from the first child device using a preset channel.

本発明に係るデータ収集システムでは、複数の子機に第1の子機から終端の子機まで送信順序を予め設定し、各子機は転送方向によって予め設定されたチャネルを用いて送信順序が前後する子機とだけデータの送受信を行い、親機は予め設定されたチャネルを用いて第1の子機とだけデータの送受信を行うようにしたので、混信(隠れ端末問題)を防止できるとともに、通信所要時間も大幅に短縮することができる。   In the data collection system according to the present invention, a transmission order is preset for a plurality of slave units from the first slave unit to the terminal slave unit, and each slave unit uses a preset channel according to the transfer direction. Since data is transmitted / received only to the preceding and following slave units, and the master unit transmits / receives data only to the first slave unit using a preset channel, it is possible to prevent interference (hidden terminal problem). Communication time can also be greatly reduced.

以下、本発明に係わるデータ収集システムの実施例を図面に基づいて説明する。   Embodiments of a data collection system according to the present invention will be described below with reference to the drawings.

図1は、本実施例に係るデータ収集システムの構成を示すブロック図である。図1に示すように、本実施例のデータ収集システム1は、親機Pと複数の子機C1〜CMとから構成されている。   FIG. 1 is a block diagram illustrating a configuration of a data collection system according to the present embodiment. As shown in FIG. 1, the data collection system 1 of the present embodiment is composed of a parent device P and a plurality of child devices C1 to CM.

ここで、複数の子機C1〜CMは、第1の子機C1から終端の子機CMまで送信順序が予め設定されており、送信順序が前後する子機とだけデータの送受信を行う。例えば、第1の子機C1は親機Pと第2の子機C2とだけ通信し、中間に位置する子機Cnは送信順序が前後する子機Cn−1と子機Cn+1とだけ通信し、終端の子機CMは子機CM−1とだけ通信する。   Here, the plurality of slave units C1 to CM have a transmission order set in advance from the first slave unit C1 to the terminal slave unit CM, and perform data transmission / reception only with the slave units whose transmission order is around. For example, the first child device C1 communicates only with the parent device P and the second child device C2, and the child device Cn located in the middle communicates only with the child devices Cn-1 and Cn + 1 whose transmission order is changed. The terminal slave CM communicates only with the slave CM-1.

親機Pは、第1の子機C1とだけデータの送受信を行っており、各子機C1〜CMで入手した情報を収集するために、親機Pが「データ要求」を子機C1に送信すると、この「データ要求」を各子機C1〜CMが転送する。そして「データ要求」を受信した各子機C1〜CMは「データ応答」を返信し、各子機の転送によって、この「データ応答」を親機Pが受信して各子機C1〜CMの情報を収集している。   The base unit P transmits / receives data only to / from the first handset C1, and the base unit P sends a “data request” to the handset C1 in order to collect the information obtained by each handset C1 to CM. When transmitted, each of the slave devices C1 to CM transfers this “data request”. Then, each of the slave units C1 to CM that has received the “data request” returns a “data response”, and the master unit P receives this “data response” by the transfer of each slave unit, and each of the slave units C1 to CM receives the “data response”. Information is collected.

このような構成の本実施例のデータ収集システム1では、システム起動時の手続きによって、使用するチャネルとその順序が決まり、親機Pと各子機C1〜CMはその内容を認識している。   In the data collection system 1 of this embodiment having such a configuration, the channels to be used and their order are determined by the procedure at the time of system startup, and the parent device P and each of the child devices C1 to CM recognize the contents.

また、上述した親機Pと子機C1〜CMとの間の通信で使用される通信方式としては、無線チャネルが複数あり、無線チャネルの切り替えが可能で、尚且つその時間が短いものであればよい。例えば、IEEE802.15.4である。さらに、無線通信は1:1に限定して行うようにする。   In addition, as a communication method used in the communication between the parent device P and the child devices C1 to CM described above, there are a plurality of wireless channels, the wireless channel can be switched, and the time is short. That's fine. For example, IEEE802.15.4. Further, wireless communication is limited to 1: 1.

次に、本発明の実施例1を図面に基づいて説明する。図2は本実施例に係るデータ収集システムの構成を示すブロック図である。   Next, Embodiment 1 of the present invention will be described with reference to the drawings. FIG. 2 is a block diagram illustrating the configuration of the data collection system according to the present embodiment.

図2に示すように、本実施例のデータ収集システム21は、親機Pと複数の子機、ここでは10台の子機C1〜C10とから構成され、親機Pが10台の子機C1〜C10で発生あるいは入手した情報を所定の時間T以内で定期的に収集するシステムである。   As shown in FIG. 2, the data collection system 21 of the present embodiment is composed of a parent device P and a plurality of child devices, here ten child devices C1 to C10, and the parent device P has ten child devices. This is a system for periodically collecting information generated or obtained in C1 to C10 within a predetermined time T.

このシステムでは、無線通信として例えば、PHY層とMAC層にはIEEE802.15.4で規格化されたものを用いる。すなわち2.4GHZ帯で、5MHZ間隔で16チャネル、最大データ転送レート250kbps、電波到達範囲10m〜30mである。無線チャネルの切り替え時間は30ms以下とする。   In this system, for example, those standardized by IEEE 802.15.4 are used for the PHY layer and the MAC layer as the wireless communication. That is, in 2.4 GHz band, 16 channels at 5 MHZ intervals, a maximum data transfer rate of 250 kbps, and a radio wave reach range of 10 m to 30 m. The radio channel switching time is 30 ms or less.

また、Peer―to−Peerトポロジー(1対1接続)を用い、ビーコン機能は使用しない。受信確認のACK(Acknowledgement)は、本実施例では使用しない場合について説明するが、使用してもよい。 In addition, a peer-to-peer topology (one-to-one connection) is used, and a beacon function is not used. The case of not using ACK (Acknowledgement) for reception confirmation will be described in the present embodiment, but it may be used.

ここで、本実施例のデータ収集システム21で使用するパケットのフレームフォーマットを図3に示す。図3に示すように、本実施例のデータ収集システム21で使用されるパケットは、PHY層にMAC層が加えられた構成をしており、送信先アドレスDAと送信元アドレスSAにはそのパケットの送信先アドレスと送信元アドレスが記録されている。そして、データを最初に送信した送信元アドレスはDATA部のSAOに記録されている。DATA部には、コマンドである「データ要求」や「データ応答」などを記録するためのコマンドタイプ領域COMや、データを最初に送信(作成)した送信元アドレスを記録するためのSAOなどの領域が含まれている。   Here, the frame format of the packet used in the data collection system 21 of the present embodiment is shown in FIG. As shown in FIG. 3, the packet used in the data collection system 21 of this embodiment has a configuration in which the MAC layer is added to the PHY layer, and the packet is included in the destination address DA and the source address SA. Destination address and source address are recorded. The transmission source address at which data is first transmitted is recorded in the SAO of the DATA part. In the DATA part, an area such as a command type area COM for recording “data request” and “data response” as commands, and an SAO for recording a transmission source address at which data is first transmitted (created). It is included.

パケットの転送時間(送信後の待機時間、受信後の待機時間を含む)は、親機と子機で同一とし、各無線チャネルともにノイズ減がなく、再送なしに通信できるものとする。   Assume that the packet transfer time (including the waiting time after transmission and the waiting time after reception) is the same for the base unit and the handset, and that each radio channel has no noise reduction and can communicate without retransmission.

親機Pと各子機C1〜C10は、それぞれ固有のアドレスを保持しており、それぞれに備えられた5ビットのディップスイッチにより手動で設定されている。例えば、親機のアドレスは10000(2進)、子機C1のアドレスは00001(2進)、子機C2は00010(2進)、親機から一番遠い終端の子機C10のアドレスは01010(2進)と設定されている。   The parent device P and each of the child devices C1 to C10 each have a unique address, and are manually set by a 5-bit dip switch provided for each. For example, the address of the parent device is 10000 (binary), the address of the child device C1 is 00001 (binary), the child device C2 is 0010 (binary), and the address of the child device C10 at the end farthest from the parent device is 01010. (Binary) is set.

したがって、各子機C1〜C10は、ディップスイッチの値から自分が親機から見て何番目の子機であるかを認識することができ、また自分の両隣の子機のアドレスについても認識することができる。   Accordingly, each of the slave units C1 to C10 can recognize the number of the slave unit as viewed from the master unit based on the value of the dip switch, and also recognizes the addresses of the slave units adjacent to itself. be able to.

また、使用されるチャネルとしては、11、12、13、14、15、16、17、18、19、20の10種類とし、次の順序で使用される。   In addition, the channels used are ten types of 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20, and are used in the following order.

CH(0)=11
CH(i)=CH(1)、CH(2)、CH(3)、CH(4)、CH(5)、CH(6)、CH(7)、CH(8)、CH(9) (i=1〜9)
=12、13、14、15、16、17、18、19、20
各子機C1〜C10は、それぞれ通信する相手とその通信に使用する無線チャネルとが予め決められており、同じ無線チャネルは使用しない。例えば、親機Pと子機C1はチャネルCH(0)すなわちチャネル11で送受信し、子機C1と子機C2はCH(1)すなわちチャネル12で送受信する。要するに、子機Cnは子機Cn−1とはチャネルCH(n−1)で送受信し、子機Cn+1とはチャネルCH(n)で送受信する。
CH (0) = 11
CH (i) = CH (1), CH (2), CH (3), CH (4), CH (5), CH (6), CH (7), CH (8), CH (9) ( i = 1-9)
= 12, 13, 14, 15, 16, 17, 18, 19, 20
In each of the slave units C1 to C10, a communication partner and a wireless channel used for the communication are determined in advance, and the same wireless channel is not used. For example, the parent device P and the child device C1 transmit and receive via the channel CH (0), that is, the channel 11, and the child device C1 and the child device C2 transmit and receive via CH (1), that is, the channel 12. In short, the slave unit Cn transmits / receives to / from the slave unit Cn−1 via the channel CH (n−1) and transmits / receives to / from the slave unit Cn + 1 via the channel CH (n).

次に、本実施例のデータ収集システム21によるデータ収集処理を図4のシーケンス図、及び図5、図6のフローチャートに基づいて説明する。図4は親機Pと子機C1〜C10との間で行われるデータ収集処理のシーケンス図、図5は親機Pにおけるデータ収集処理のフローチャート、図6は子機C1〜C10におけるデータ収集処理のフローチャートである。   Next, data collection processing by the data collection system 21 of this embodiment will be described based on the sequence diagram of FIG. 4 and the flowcharts of FIGS. 5 and 6. 4 is a sequence diagram of data collection processing performed between the parent device P and the child devices C1 to C10, FIG. 5 is a flowchart of data collection processing in the parent device P, and FIG. 6 is a data collection processing in the child devices C1 to C10. It is a flowchart of.

まず、親機Pはデータ収集処理を実施するための起動処理を実施してiを0に設定し(S501)、データ収集処理を実施するために必要となるその他の処理を実施する(S502)。   First, the base unit P performs a startup process for performing the data collection process, sets i to 0 (S501), and performs other processes necessary for performing the data collection process (S502). .

一方、各子機C1〜C10も起動処理を実施してiを予め設定されている自からの番号Nに設定し(S601)、チャネルCH(n−1)で受信待ちをする(S602)。   On the other hand, each of the slave units C1 to C10 also executes the activation process, sets i to a preset number N from itself (S601), and waits for reception on the channel CH (n-1) (S602).

次に、親機Pは各子機C1〜C10で発生あるいは入手した情報、すなわちデータを集めることを目的として、各子機C1〜C10に対してデータを親機Pに送るように「データ要求」を1番目の子機C1に予め設定されたチャネルCH(0)で送信する(S100−1、S503)。   Next, for the purpose of collecting the information generated or obtained in each of the slave units C1 to C10, that is, the data, the master unit P sends a data request to each of the slave units C1 to C10 to the master unit P. Is transmitted to the first handset C1 through the preset channel CH (0) (S100-1, S503).

子機C1はチャネルCH(0)で受信待ちをしているので、自アドレス宛の「データ要求」を受信すると(S603)、そのパケットを取り込んで受信したデータ要求が全子機へのデータ要求であるか否かを判断し(S604)、全子機に対するデータ要求でない場合には別処理を行なって(S605)、ステップS602に戻って上述した処理を繰り返し行う。   Since the child device C1 is waiting for reception on the channel CH (0), when receiving a “data request” addressed to its own address (S603), the received data request is a data request to all the child devices. (S604), if it is not a data request for all the slave units, another process is performed (S605), and the process returns to step S602 to repeat the above-described process.

また、全子機へのデータ要求である場合には、自らが終端の子機C10でなければ(S606)、送信元アドレスSAを自アドレスに書き換え(S607)、送信先アドレスDAを終端側の子機Cn+1、すなわち子機C2のアドレスに書き換えて(S608)、子機2へデータ要求をチャネルCH(n)、すなわちCH(1)で転送する(S100−2、S609)。   If it is a data request to all the slave units, if it is not the terminal slave unit C10 (S606), the source address SA is rewritten to its own address (S607), and the destination address DA is changed to the terminal side. The address of the child device Cn + 1, that is, the child device C2 is rewritten (S608), and the data request is transferred to the child device 2 through the channel CH (n), that is, CH (1) (S100-2, S609).

データ要求を転送した子機C1は、センサなどで検知した情報、すなわち自からのデータを用意し(S610)、「データ応答」としてチャネルCH(n−1)、子機C1ではCH(0)で親機Pへ送信する(S101−1、S611)。 The child device C1 to which the data request has been transferred prepares information detected by the sensor or the like, that is, data from itself (S610), and the channel CH (n-1) as the “data response”, and CH (0) in the child device C1. To the base unit P (S101-1, S611).

一方、親機Pはデータ要求を送信した後、ウエイトしてから(S504)、iをi+1に設定して(S505)、チャネルCH(0)で受信待ちをする(S506)。   On the other hand, after transmitting the data request, base unit P waits (S504), sets i to i + 1 (S505), and waits for reception on channel CH (0) (S506).

そして、子機C1からチャネルCH(0)でパケットを受信すると、宛先が自アドレスであるか否かを判定し(S507)、自アドレスでない場合にはステップS506に戻って受信待ちを続け、宛先が自アドレスである場合には受信した信号のコマンドタイプCOMが「データ応答」であるか否かを判断する(S508)。   When a packet is received from the child device C1 through the channel CH (0), it is determined whether or not the destination is the own address (S507). If the destination is not the own address, the process returns to step S506 and continues to wait for reception. Is the self address, it is determined whether or not the command type COM of the received signal is “data response” (S508).

そして、コマンドタイプCOMが「データ応答」でない場合には別処理を行なって(S509)、ステップS502に戻り、「データ応答」である場合には受信データの処理を行ない(S510)、受信した「データ応答」が終端の子機C10からのデータ応答であるか否かを判断する(S511)。   If the command type COM is not “data response”, another process is performed (S509), and the process returns to step S502. If it is “data response”, the received data is processed (S510). It is determined whether or not the “data response” is a data response from the terminal unit C10 at the end (S511).

そして、終端の子機C10からのデータ応答でない場合にはステップS504に戻って他の子機からの「データ応答」の受信を引き続き行う。   If it is not a data response from the terminal handset C10, the process returns to step S504 to continue receiving “data responses” from other handset.

一方、ステップS611でデータ応答を親機Pに送信した子機C1は、iをi+1に設定して(S612)、チャネルCH(1)で受信待ちをする(S613)。   On the other hand, the child device C1 that has transmitted the data response to the parent device P in step S611 sets i to i + 1 (S612) and waits for reception on the channel CH (1) (S613).

そして、子機C2から「データ応答」のパケットを受信すると(S102−1)、宛先が自アドレスであるか否かを判断し(S614)、自アドレス宛の信号でない場合にはステップS613に戻って引き続きチャネルCH(1)で受信待ちの状態となり、自アドレス宛の「データ応答」である場合には受信した「データ応答」のパケットを親機PへチャネルCH(0)で送信する(S102−2、S615)。   When a “data response” packet is received from the child device C2 (S102-1), it is determined whether or not the destination is the own address (S614). If the signal is not addressed to the own address, the process returns to step S613. Subsequently, the channel CH (1) is in a waiting state for reception, and if it is a “data response” addressed to its own address, the received “data response” packet is transmitted to the parent device P on the channel CH (0) (S102). -2, S615).

このとき、子機C1では送信元アドレスSAを自アドレスに書き換え、送信先アドレスDAを親機Pのアドレスに書き換えて送信している。ただし、データの中身については書き換えないので、データの中身は子機C2のデータが記録されている。   At this time, the child device C1 rewrites the transmission source address SA to its own address and rewrites the transmission destination address DA to the address of the parent device P for transmission. However, since the data contents are not rewritten, the data of the child device C2 is recorded as the data contents.

こうして子機C2から送られてきた「データ応答」を親機Pへ送信すると、子機C1はiが最大の子機数M、ここでは10になったか否かを判断し(S616)、iが10になっていない場合にはステップS612に戻って受信待ちを行ない、iが10になっている場合にはステップS602に戻る。   When the “data response” sent from the child device C2 is transmitted to the parent device P, the child device C1 determines whether i has reached the maximum number of child devices M, here 10 (S616). If i is not 10, the process returns to step S612 to wait for reception, and if i is 10, the process returns to step S602.

このように上述した子機C1で行なわれた処理と同様の処理が、各子機C2〜C9で実行されて終端の子機C10へデータ要求が送信されると(S100−10、S606)、子機C10はウエイトしてから(S617)、センサなどで検知した情報、すなわち自からのデータを用意する(S618)。そして、用意したデータを「データ応答」としてチャネルCH(9)で子機C9へ送信したら(S110−1、S619)、ステップS602に戻って上述した処理を繰り返し行う。   When the processing similar to the processing performed in the above-described child device C1 is executed in each of the child devices C2 to C9 and a data request is transmitted to the terminal child device C10 (S100-10, S606), The slave C10 waits (S617), and then prepares information detected by a sensor, that is, data from itself (S618). When the prepared data is transmitted as a “data response” to channel C9 via channel CH (9) (S110-1, S619), the process returns to step S602 and the above-described processing is repeated.

こうして子機C10で「データ応答」のパケットが送信されると、上述した子機C1で行なわれた処理と同様の処理が、各子機C2〜C9で実行されて終端の子機C10の「データ応答」のパケットが親機Pへと転送される。   When the “data response” packet is transmitted in the slave unit C10 in this way, the same processing as that performed in the slave unit C1 is executed in each of the slave units C2 to C9, and “ The “data response” packet is transferred to the parent device P.

そして、親機Pでは、ステップS511において受信した「データ応答」のパケットが終端の子機C10からのパケット(S110−10)であると判断すると、今回のデータ収集処理を終了してステップS502に戻って新たなデータの収集を行うために上述した処理を繰り返し行う。   When the base unit P determines that the “data response” packet received in step S511 is a packet (S110-10) from the terminal unit C10, the current data collection process is terminated, and the process proceeds to step S502. The process described above is repeated to return and collect new data.

このように、本実施例のデータ収集システム21では、複数の子機C1〜C10に第1の子機C1から終端の子機C10まで送信順序を予め設定し、各子機はそれぞれ転送方向によって予め設定されたチャネルを用いて送信順序が前後する子機とだけデータの送受信を行い、親機Pは予め設定されたチャネルを用いて第1の子機C1とだけデータの送受信を行うようにしたので、データ要求の転送後、子機CnはチャネルCH(n−1)での送信と、チャネルCH(n)での受信を繰り返すだけのシンプルな手順を実行すればよく、子機の数だけチャネルを使えば確実に混信(隠れ端末問題)を防止できるとともに、通信所要時間を大幅に短縮することができる。   As described above, in the data collection system 21 according to the present embodiment, the transmission order is set in advance from the first slave unit C1 to the terminal slave unit C10 in the plurality of slave units C1 to C10, Data is transmitted / received only to the slave units whose transmission order is changed using a preset channel, and the master unit P is configured to transmit / receive data only to the first slave unit C1 using a preset channel. Therefore, after transferring the data request, the slave unit Cn only needs to execute a simple procedure of repeating transmission on the channel CH (n-1) and reception on the channel CH (n), and the number of slave units If only the channel is used, interference (hidden terminal problem) can be surely prevented, and the communication time can be greatly shortened.

次に、本発明の実施例2を図面に基づいて説明する。ただし、本実施例に係るデータ収集システムの構成は図2で示した実施例1と同一なので説明は省略する。   Next, a second embodiment of the present invention will be described with reference to the drawings. However, the configuration of the data collection system according to the present embodiment is the same as that of the first embodiment shown in FIG.

本実施例のシステムでは、実施例1と同様にして、無線通信として例えば、PHY層とMAC層にはIEEE802.15.4で規格化されたものを用いる。この規格は前述の通り2.4GHZ帯を用いるものであり、無線LANと帯域が重なっている。しかし、本実施例の通信は、間欠的なデータ伝送であり、またPHY層のパケット長が最大114Byteと短いので混信するおそれは非常に少ない。   In the system of the present embodiment, as in the first embodiment, for example, wireless communication that is standardized by IEEE 802.15.4 is used for the PHY layer and the MAC layer. This standard uses the 2.4 GHz band as described above, and the band overlaps with the wireless LAN. However, the communication of the present embodiment is intermittent data transmission, and since the packet length of the PHY layer is as short as 114 bytes at the maximum, there is very little possibility of interference.

また、実施例1と同様にして、Peer―to−Peerトポロジー(1対1接続)を用い、ビーコン機能は使用しないが、データ受信後には受信確認のACKを返信する。   Similarly to the first embodiment, a peer-to-peer topology (one-to-one connection) is used and the beacon function is not used, but an ACK for reception confirmation is returned after data reception.

さらに、本実施例のデータ収集システムで使用するパケットのフレームフォーマットは図3で示す実施例1と同一である。使用されるチャネルとしては、11、12、13、14、15、16、17、18、19、20、21の11種類とし、次の順序で使用される。   Further, the frame format of the packet used in the data collection system of the present embodiment is the same as that of the first embodiment shown in FIG. As the channels to be used, 11 types of 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, and 21 are used in the following order.

CH(0)=11
CH(i)=CH(1)、CH(2)、CH(3)、CH(4)、CH(5)、CH(6)、CH(7)、CH(8)、CH(9)、CH(10)、(i=1〜10)
=12、13、14、15、16、17、18、19、20、21
次に、本実施例のデータ収集システムによるデータ収集処理を図7のシーケンス図、及び図8、図9のフローチャートに基づいて説明する。図7は親機Pと子機C1〜C10との間で行われるデータ収集処理のシーケンス図、図8は親機Pにおけるデータ収集処理のフローチャート、図9は子機C1〜C10におけるデータ収集処理のフローチャートである。
CH (0) = 11
CH (i) = CH (1), CH (2), CH (3), CH (4), CH (5), CH (6), CH (7), CH (8), CH (9), CH (10), (i = 1 to 10)
= 12, 13, 14, 15, 16, 17, 18, 19, 20, 21
Next, data collection processing by the data collection system of this embodiment will be described with reference to the sequence diagram of FIG. 7 and the flowcharts of FIGS. 7 is a sequence diagram of data collection processing performed between the parent device P and the child devices C1 to C10, FIG. 8 is a flowchart of data collection processing in the parent device P, and FIG. 9 is a data collection processing in the child devices C1 to C10. It is a flowchart of.

まず、親機はデータ収集処理を実施するための起動処理を実施してiを0に設定し(S801)、データ収集処理を実施するために必要となるその他の処理を実施する(S802)。   First, the master unit performs a startup process for performing a data collection process, sets i to 0 (S801), and performs other processes necessary for performing the data collection process (S802).

一方、各子機C1〜C10も起動処理を実施してiを予め設定されている自からの番号Nに設定し(S901)、チャネルCH(0)で受信待ちをする(S902)。   On the other hand, each of the slave units C1 to C10 also executes a start-up process, sets i to the preset number N (S901), and waits for reception on the channel CH (0) (S902).

次に、親機Pは各子機で発生あるいは入手した情報、すなわちデータを集めることを目的として、各子機に対してデータを親機Pに送るように「データ要求」を1番目の子機C1に予め設定されたチャネルCH(0)で送信する(S100−1、S803)。   Next, for the purpose of collecting information generated or obtained in each slave unit, that is, data, the master unit P sends a “data request” to the master unit P so that each slave unit sends data to the first slave unit. It transmits on the channel CH (0) preset in the machine C1 (S100-1, S803).

子機C1はチャネルCH(0)で受信待ちをしているので、自アドレス宛の「データ要求」を受信すると(S903)、そのパケットを取り込んで受信確認ACKを親機Pに送信する(S904)。   Since the child device C1 is waiting for reception on the channel CH (0), when receiving the “data request” addressed to its own address (S903), the child device C1 takes in the packet and transmits an acknowledgment ACK to the parent device P (S904). ).

親機Pでは受信確認ACKを受信したか否かを判定し(S804)、受信できなかった場合には再送するか否かを判定し(S805)、再送しない場合にはステップS802に戻って上述した処理を繰り返し行い、再送する場合にはウエイトしてから(S806)、ステップS803に戻ってデータ要求を再送する。   Base unit P determines whether or not reception confirmation ACK has been received (S804), and if not received, determines whether or not to retransmit (S805). If not, returns to step S802 and returns to step S802. When the above processing is repeated and retransmitted, after waiting (S806), the process returns to step S803 to retransmit the data request.

一方、子機C1では受信したデータ要求が全子機へのデータ要求であるか否かを判断し(S905)、全子機に対するデータ要求でない場合には別処理を行なって(S906)、ステップS902に戻って上述した処理を繰り返し行う。   On the other hand, the slave unit C1 determines whether or not the received data request is a data request to all the slave units (S905). If it is not a data request for all the slave units, another process is performed (S906), step Returning to S902, the above-described processing is repeated.

また、全子機へのデータ要求である場合には、自らが終端の子機C10でなければ(S907)、送信元アドレスSAを自アドレスに書き換え(S908)、送信先アドレスDAを終端側の子機、すなわち子機C2のアドレスに書き換えて(S909)、子機C2へデータ要求をチャネルCH(0)で転送する(S100−2、図9:S910)。   If it is a data request to all the slave units, if it is not the terminal slave unit C10 (S907), the source address SA is rewritten to its own address (S908), and the destination address DA is changed to the terminal side. The address is rewritten to the address of the child device, that is, the child device C2 (S909), and the data request is transferred to the child device C2 through the channel CH (0) (S100-2, FIG. 9: S910).

データ要求を転送した子機C1は、子機C2からの受信確認ACKを受信したか否かを判定し(S911)、受信したときには子機C1はセンサなどで検知した情報、すなわち自からのデータを用意し(S912)、予め設定されているチャネルCH(1)で「データ応答」として親機Pへ送信する(S101−1、S913)。   The child device C1 having transferred the data request determines whether or not the reception confirmation ACK from the child device C2 has been received (S911). When the child device C1 receives the information, the child device C1 detects information detected by a sensor or the like, that is, data from itself. Is prepared (S912), and is transmitted to the parent device P as a "data response" on the preset channel CH (1) (S101-1, S913).

一方、親機PはステップS804で子機C1からの受信確認ACKを受信すると、ウエイトしてから(S807)、iをi+1に設定し(S808)、チャネルをチャネルCH(0)からチャネルCH(1)に切り替えて受信待ちをしている(S809)。   On the other hand, when receiving the acknowledgment ACK from the child device C1 in step S804, the parent device P waits (S807), sets i to i + 1 (S808), and changes the channel from channel CH (0) to channel CH ( Switching to 1) and waiting for reception (S809).

そして、子機C1からチャネルCH(1)で信号を受信すると、宛先が自アドレスであるか否かを判定し(S810)、自アドレスでない場合にはステップS809に戻って受信待ちを続け、宛先が自アドレスである場合には受信確認ACKを子機C1に送信し(S811)、受信したパケットのコマンドタイプCOMが「データ応答」であるか否かを判断する(S812)。   When a signal is received from the slave unit C1 through the channel CH (1), it is determined whether or not the destination is the own address (S810). If the destination is not the own address, the process returns to step S809 and continues to wait for reception. Is the own address, a reception confirmation ACK is transmitted to the child device C1 (S811), and it is determined whether or not the command type COM of the received packet is “data response” (S812).

そして、コマンドタイプCOMが「データ応答」でない場合には別処理を行なって(S813)ステップS802に戻り、「データ応答」である場合には受信データの処理を行ない(S814)、受信した「データ応答」が終端の子機C10からの「データ応答」であるか否かを判断する(S815)。   If the command type COM is not “data response”, another process is performed (S813), and the process returns to step S802. If the command type COM is “data response”, the received data is processed (S814). It is determined whether the “response” is a “data response” from the terminal unit C10 at the end (S815).

そして、終端の子機C10からのデータ応答でない場合にはステップS807に戻って他の子機からのデータ応答の受信を引き続き行う。   If it is not a data response from the terminal child device C10, the process returns to step S807 to continue receiving data responses from other child devices.

一方、ステップS913で「データ応答」を親機Pに送信した子機C1は、親機Pからの受信確認ACKを受信したか否かを判断し(S914)、受信していないときには再送するか否かを判断する(S915)。そして、再送する場合にはウエイトしてから(S916)、ステップS913に戻って「データ応答」を再送する。   On the other hand, the child device C1 that has transmitted “data response” to the parent device P in step S913 determines whether or not a reception confirmation ACK has been received from the parent device P (S914). It is determined whether or not (S915). When retransmitting, after waiting (S916), the process returns to step S913 to retransmit the “data response”.

また、ステップS914で親機Pからの受信確認ACKを受信した場合と、ステップS915で「データ応答」を再送しない場合にはiをi+1に設定して(S917)、チャネルをチャネルCH(2)に切り替えて受信待ちをする(S918)。   If the reception confirmation ACK is received from the parent device P in step S914 and if the “data response” is not retransmitted in step S915, i is set to i + 1 (S917), and the channel is channel CH (2). To wait for reception (S918).

そして、子機C2から「データ応答」のパケットを受信すると(S102−1)、宛先が自アドレスであるか否かを判断し(S919)、自アドレス宛のパケットでない場合にはステップS918に戻って引き続きチャネルCH(2)で受信待ちの状態となり、自アドレス宛の「データ応答」である場合には受信確認ACKを子機C2に送信し(S920)、受信した「データ応答」のパケットを親機PへチャネルCH(2)で送信する(S102−2、S921)。   When a “data response” packet is received from the child device C2 (S102-1), it is determined whether or not the destination is the own address (S919). If the packet is not addressed to the own address, the process returns to step S918. Subsequently, the channel CH (2) is in a reception waiting state, and if it is a “data response” addressed to its own address, a reception confirmation ACK is transmitted to the child device C2 (S920), and the received “data response” packet is transmitted. Transmission is performed to the parent device P through the channel CH (2) (S102-2, S921).

このとき、子機C1では送信元アドレスSAを自アドレスに書き換え、送信先アドレスDAを親機Pのアドレスに書き換えて送信している。ただし、データの中身については書き換えないので、データの中身は子機C2のデータが記録されている。   At this time, the child device C1 rewrites the transmission source address SA to its own address and rewrites the transmission destination address DA to the address of the parent device P for transmission. However, since the data contents are not rewritten, the data of the child device C2 is recorded as the data contents.

こうして子機C2から送られてきた「データ応答」を親機Pへ送信すると、子機C1は親機Pからの受信確認ACKを受信したか否かを判断し(S922)、受信していない場合には再送するか否かを判断する(S923)。   When the “data response” sent from the child device C2 is transmitted to the parent device P in this way, the child device C1 determines whether or not the reception confirmation ACK from the parent device P has been received (S922), and has not been received. In this case, it is determined whether or not to retransmit (S923).

そして、再送する場合にはウエイトしてから(S924)、ステップS921に戻って再送する。例えば、図7の領域Aの子機C2では、チャネルCH(5)で「データ応答」のパケットを送信したが(S105−4−1)、子機C1で受信されずに子機C1からの受信確認ACKを受信することができなかったので、再送している(S105−4−2)。同様に領域Aでは子機C3〜C7も再送している(S106−4−2〜S110−4−2)。 In the case of resending, after waiting (S924), the process returns to step S921 and resends. For example, although the slave unit C2 in the area A in FIG. 7 transmits a “data response” packet on the channel CH (5) (S105-4-1), the slave unit C1 does not receive the packet and receives the data from the slave unit C1. Since the reception confirmation ACK was not received, it is retransmitted (S105-4-2). Similarly, in the area A, the slave units C3 to C7 are also retransmitted (S106-4-2 to S110-4-2).

こうしてステップS922で受信確認ACKを受信するか、ステップS923で再送しない場合には、iが最大の子機数M、ここでは10になったか否かを判断し(S925)、iが10になっていない場合にはステップS917に戻って次のチャネルでの受信待ちを行ない、iが10になっている場合にはステップS902に戻って上述した処理を繰り返し行う。   When the reception confirmation ACK is received in step S922 or not retransmitted in step S923, it is determined whether i is the maximum number M of slave units, here 10 (S925), and i becomes 10. If not, the process returns to step S917 to wait for reception on the next channel. If i is 10, the process returns to step S902 to repeat the above-described processing.

また、ステップS911において送信した「データ要求」の受信確認ACKを受信しなかったときには再送するか否かを判断して(S926)、再送する場合にはウエイトしてから(S927)、ステップS910に戻って「データ要求」を再送する。   Further, if the reception confirmation ACK of the “data request” transmitted in step S911 is not received, it is determined whether or not to retransmit (S926), and if retransmitted, wait (S927), and then go to step S910. Go back and resend “data request”.

また、再送しない場合には子機C2がチャネルCH(0)で「無応答」であるというデータを用意し(S928)、子機C1は親機PへチャネルCH(1)で「無応答応答」のパケットを送信する(S929)。   If not retransmitted, data indicating that the handset C2 is “no response” on the channel CH (0) is prepared (S928), and the handset C1 sends a “no response response” to the base unit P on the channel CH (1). ] Packet is transmitted (S929).

そして、子機C1は受信確認ACKを受信したか否かを判断し(S930)、受信しなかったときには再送するか否かを判断して(S931)、再送する場合にはウエイトしてから(S932)、ステップS929に戻って「無応答応答」のパケットを再送する。 Then, handset C1 determines whether or not a reception confirmation ACK has been received (S930), and if not received, determines whether or not to retransmit (S931). In step S932), the process returns to step S929 to retransmit the “no response response” packet.

また、ステップS930で受信確認ACKを受信した場合とステップS931で再送しないと判断した場合には、ステップS902に戻って上述した処理を繰り返し行う。   If the reception confirmation ACK is received in step S930 and if it is determined not to retransmit in step S931, the process returns to step S902 and the above-described processing is repeated.

このように上述した子機C1で行なわれた処理と同様の処理が、各子機C2〜C9で実行されて終端の子機C10へ「データ要求」が送信されると(S100−10、S907)、子機C10はウエイトしてから(S933)、センサなどで検知した情報、すなわち自からのデータを用意し(S934)、予め設定されたチャネルCH(10)で「データ応答」のパケットを子機C9へ送信する(S110−1、S935)。   When the processing similar to the processing performed in the above-described child device C1 is executed in each of the child devices C2 to C9 and a “data request” is transmitted to the terminal child device C10 (S100-10, S907). ), The child device C10 waits (S933), prepares information detected by the sensor, that is, data from itself (S934), and sends a “data response” packet on the preset channel CH (10). It transmits to the subunit | mobile_unit C9 (S110-1, S935).

そして、子機C10は受信確認ACKを受信したか否かを判断し(S936)、受信しなかったときには再送するか否かを判断して(S937)、再送する場合にはウエイトしてから(S938)、ステップS935に戻って「データ応答」のパケットを再送する。   Then, handset C10 determines whether or not a reception confirmation ACK has been received (S936), and if not received, determines whether or not to retransmit (S937). In step S938, the process returns to step S935 to retransmit the “data response” packet.

また、ステップS936で受信確認を受信した場合とステップS937で再送しないと判断した場合には、ステップS902に戻って上述した処理を繰り返し行う。   If reception confirmation is received in step S936 and if it is determined not to retransmit in step S937, the process returns to step S902 and the above-described processing is repeated.

こうして子機C10で「データ応答」のパケットが送信されると、上述した子機C1で行なわれた処理と同様の処理が、各子機C2〜C9で実行されて終端の子機C10の「データ応答」のパケットが親機Pへと転送される。   When the “data response” packet is transmitted in the slave unit C10 in this way, the same processing as that performed in the slave unit C1 is executed in each of the slave units C2 to C9, and “ The “data response” packet is transferred to the parent device P.

そして、親機Pでは、ステップS815において受信した「データ応答」のパケットが終端の子機C10からのパケット(S110−10)であると判断すると、今回のデータ収集処理を終了してステップS802に戻って新たなデータの収集を行うために上述した処理を繰り返し行う。   If the base unit P determines that the “data response” packet received in step S815 is the packet from the terminal unit C10 (S110-10), the current data collection process is terminated, and the process proceeds to step S802. The process described above is repeated to return and collect new data.

このように、本実施例のデータ収集システムでは、各子機C1〜C10が「データ要求」の受信を基点に無線チャネルを時分割に切り替えるので、ある時間で使用する無線チャネルを多重化することができ、システムとしての単位時間あたりのデータ量を増やすことができる。これにより、システムとしての通信所要時間の短縮も可能となる。   In this way, in the data collection system of this embodiment, each of the slave units C1 to C10 switches the radio channel to time division based on the reception of the “data request”, so that the radio channel to be used at a certain time is multiplexed. The amount of data per unit time as a system can be increased. As a result, the time required for communication as a system can be shortened.

さらに、無線通信を1:1に限定し、予め決められた相手と、予め決められたチャネルで通信することにより、ある時間にあるチャネルで送信する子機は1台に限定することができるので、混信(隠れ端末問題)を防止することができる。   Furthermore, by limiting wireless communication to 1: 1 and communicating with a predetermined partner on a predetermined channel, it is possible to limit the number of slave units that transmit on a channel at a certain time to one. Interference (hidden terminal problem) can be prevented.

また、受信確認としてACKを送受信することにより、通信の信頼性を向上させることができる。また、ACKの受信後に次の動作(送信または受信待ち)に移るようにすれば、システム全体としてのデータ収集時間を短縮することができる。   In addition, communication reliability can be improved by transmitting / receiving ACK as reception confirmation. Further, if the next operation (transmission or reception waiting) is started after the ACK is received, the data collection time of the entire system can be shortened.

以下、本発明の実施例3を図面に基づいて説明する。ただし、本実施例に係るデータ収集システムの構成は図2で示した実施例1と同一なので説明は省略する。   Embodiment 3 of the present invention will be described below with reference to the drawings. However, the configuration of the data collection system according to the present embodiment is the same as that of the first embodiment shown in FIG.

本実施例のシステムでは、無線として例えば、2.4GHz帯で、直接拡散のoffset−QPSK変調(2Mchips/sec)、5MHz間隔で16チャネル、最大データ転送レート250kbps、電波到達範囲10m〜30mを使用するものとする。無線チャネルの切り替え時間は30ms以下とする。また、ネットワーク構成としては、親機Pは子機C1とだけ、子機C1以外の子機は子機同士で1対1の通信を行うものとする。IEEE802.15.4と類似しているが、パケットのフレームフォーマットやシーケンス(通信手順)を単純化して考える。ビーコンやハンドシェーク、データを受信したことを知らせる受信確認ACKもここでは使用しない。   In the system of the present embodiment, for example, 2.4 GHz band, direct spread offset-QPSK modulation (2 Mchips / sec), 16 channels at 5 MHz intervals, a maximum data transfer rate of 250 kbps, and a radio wave coverage of 10 m to 30 m are used. It shall be. The radio channel switching time is 30 ms or less. Further, as a network configuration, it is assumed that the parent device P performs only one-to-one communication between the child device C1 and the child devices other than the child device C1 communicate with each other. Although it is similar to IEEE802.15.4, the frame format and sequence (communication procedure) of a packet are simplified. A reception confirmation ACK notifying that a beacon, handshake, or data has been received is not used here.

ここで、本実施例のデータ収集システムで使用するパケットのフレームフォーマットを図10に示す。図10に示すように、本実施例のデータ収集システムで使用されるパケットのフォーマットでは、PHY層にMAC層を加え、DATA部にコマンドとしての「データ要求」や「データ応答」などを区別するためのコマンドタイプ領域COMが含まれている。また、本実施例では送信元アドレスSAは、各子機で書き換えない手順で通信し、そのデータを最初に送信した送信元アドレスが最後まで残るようにする。これは、無線マルチホップを1:1に限定している、つまり送受信できる子機を1台ずつに限定しているので、転送の際に送信元アドレスSAを書き換える必要がないからである。これにより、そのデータを最初に送信した送信元アドレスを記載するSAOを省略することが可能となっている。   Here, the frame format of the packet used in the data collection system of the present embodiment is shown in FIG. As shown in FIG. 10, in the packet format used in the data collection system of this embodiment, a MAC layer is added to the PHY layer, and “data request” and “data response” as commands are distinguished from the DATA part. A command type area COM is included. In this embodiment, the transmission source address SA is communicated in a procedure that is not rewritten by each slave unit so that the transmission source address that transmitted the data first remains until the end. This is because the wireless multi-hop is limited to 1: 1, that is, the number of slave units that can be transmitted and received is limited to one by one, so that it is not necessary to rewrite the source address SA at the time of transfer. Thereby, it is possible to omit the SAO that describes the source address that transmitted the data first.

次に、本実施例のデータ収集システムで使用するチャネルは、11、12、
15、18、21、24の6種類とし、次の順序で使う。
Next, the channels used in the data collection system of this embodiment are 11, 12,
Six types of 15, 18, 21, and 24 are used in the following order.

CH(0)=11
CH(i)=CH(1)、CH(2)、CH(3)、CH(4)、CH(5)、CH(6)、CH(7)、CH(8)、CH(9)、CH(10) (i=1〜10)
=12、15、18、21、24、12、15、18、21、24
次に、本実施例のデータ収集システムによるデータ収集処理を図11のシーケンス図、及び図12、図13のフローチャートに基づいて説明する。図11は親機Pと子機C1〜C10との間で行われるデータ収集処理のシーケンス図、図12は親機Pにおけるデータ収集処理のフローチャート、図13は子機におけるデータ収集処理のフローチャートである。
CH (0) = 11
CH (i) = CH (1), CH (2), CH (3), CH (4), CH (5), CH (6), CH (7), CH (8), CH (9), CH (10) (i = 1 to 10)
= 12, 15, 18, 21, 24, 12, 15, 18, 21, 24
Next, data collection processing by the data collection system of the present embodiment will be described based on the sequence diagram of FIG. 11 and the flowcharts of FIGS. 12 and 13. 11 is a sequence diagram of data collection processing performed between the parent device P and the child devices C1 to C10, FIG. 12 is a flowchart of data collection processing in the parent device P, and FIG. 13 is a flowchart of data collection processing in the child device. is there.

まず、親機Pはデータ収集処理を実施するための起動処理を実施してiを0に設定し、jを0に設定して(S1201)データ収集処理を実施するために必要となるその他の処理を実施する(S1202)。   First, the base unit P performs a start-up process for performing the data collection process, sets i to 0, sets j to 0 (S1201), and other items necessary for performing the data collection process. Processing is performed (S1202).

一方、各子機C1〜C10も起動処理を実施してiを予め設定されている自からの番号Nに設定してjを1に設定し(S1301)、チャネルCH(0)で受信待ちをする(S1302)。   On the other hand, each of the slave units C1 to C10 also performs a startup process, sets i to a preset number N from itself, sets j to 1 (S1301), and waits for reception on channel CH (0). (S1302).

次に、親機Pは各子機で発生あるいは入手した情報、すなわちデータを集めることを目的として、各子機に対してデータを親機Pに送るように「データ要求」を1番目の子機C1に予め設定されているチャネルCH(0)で送信する(S100−1、S1203)。このとき送信される「データ要求」のパケットのフレームフォーマットを図14に示す。   Next, for the purpose of collecting information generated or obtained in each slave unit, that is, data, the master unit P sends a “data request” to the master unit P so that each slave unit sends data to the first slave unit. It transmits with channel CH (0) previously set to the machine C1 (S100-1, S1203). FIG. 14 shows the frame format of the “data request” packet transmitted at this time.

子機C1はチャネルCH(0)で受信待ちをしているので、自アドレス宛の「データ要求」を受信すると(S1303)、そのパケットを取り込んで受信した「データ要求」が全子機へのデータ要求であるか否かを判断し(S1304)、全子機に対するデータ要求でない場合には別処理を行なって(S1305)、ステップS1302に戻って上述した処理を繰り返し行う。   Since the child device C1 is waiting for reception on the channel CH (0), when receiving the “data request” addressed to its own address (S1303), the received “data request” is received from all the child devices. It is determined whether or not it is a data request (S1304). If it is not a data request for all the slave units, another process is performed (S1305), and the process returns to step S1302 to repeat the above-described process.

また、全子機への「データ要求」である場合には、タイマを初期化してt=0として(S1306)自らが終端の子機C10でなければ(S1307)、送信先アドレスDAを終端側の子機、すなわち子機C2のアドレスに書き換えて(S1308)タイマが時間t=tr1+tcd+ts0(tr1:受信後の待機時間、tcd:チャネル切り替えダミー時間、ts0:送信準備時間)になったら(S1309)、子機C2へ図15に示すようなデータ要求のパケットをチャネルCH(0)で転送する(S100−2、S1310)。ただし、チャネル切り替えダミー時間tcdとは、実際のチャネルは変更しないものの、他の子機とのタイミングを合わせることを目的として設けた時間であり、この時間内に受信と送信を切り替えている。送受信の切り替え時間が短い場合には、tcdの時間内でtr1を延長してもよい。   If it is a “data request” to all the slave units, the timer is initialized to t = 0 (S1306), and if it is not the terminal slave unit C10 itself (S1307), the destination address DA is set to the termination side. (S1308) When the timer reaches time t = tr1 + tcd + ts0 (tr1: standby time after reception, tcd: channel switching dummy time, ts0: transmission preparation time) (S1309) Then, the data request packet as shown in FIG. 15 is transferred to the child device C2 through the channel CH (0) (S100-2, S1310). However, the channel switching dummy time tcd is a time provided for the purpose of matching the timing with other slave units, although the actual channel is not changed, and reception and transmission are switched within this time. When the transmission / reception switching time is short, tr1 may be extended within the time tcd.

そして、子機C2へ「データ要求」を送信したら送信後の待機時間ts1が経過するまで、すなわちタイマが時間T1=tr1+tcd+ts0+ts1になるまでの間だけチャネルCH(0)で待機し(S1311)、その後にチャネル切り替え時間tc後にチャネルをチャネルCH(i)、子機C1ではチャネルCH(1)に切り替えて(S1312)センサなどで検知した情報、すなわち自からのデータを用意する(S1313)。   Then, after transmitting the “data request” to the child device C2, it waits on the channel CH (0) until the waiting time ts1 after transmission elapses, that is, until the timer reaches time T1 = tr1 + tcd + ts0 + ts1 (S1311) After the channel switching time tc, the channel is switched to channel CH (i), and the slave C1 is switched to channel CH (1) (S1312), and information detected by the sensor or the like, that is, data from itself is prepared (S1313).

そして、送信準備時間ts0が経過したら、すなわちタイマが時間t=T1+tc+ts0を経過したら(S1314)、予め設定されたチャネルCH(1)で「データ応答」として親機Pへ送信する(S101−1、S1315)。このとき送信される「データ応答」のパケットのフレームフォーマットを図16に示す。   Then, when the transmission preparation time ts0 has elapsed, that is, when the timer has elapsed the time t = T1 + tc + ts0 (S1314), it is transmitted to the parent device P as a “data response” through the preset channel CH (1) (S101-1, S1315). The frame format of the “data response” packet transmitted at this time is shown in FIG.

一方、親機PはステップS1203で「データ要求」を送信したら、タイマを始動させ(S1204)、タイマが時間T1を経過したら(S1205)、iをi+1に設定して(S1206)チャネルをチャネルCH(0)からチャネルCH(1)に切り替えて受信待ちをする(S1207)。   On the other hand, if the base unit P transmits a “data request” in step S1203, the timer is started (S1204), and when the timer has elapsed time T1 (S1205), i is set to i + 1 (S1206) and the channel is set to channel CH. Switch from (0) to channel CH (1) and wait for reception (S1207).

そして、子機C1からチャネルCH(1)で信号を受信すると、宛先が自アドレスであるか否かを判定し(S1208)、自アドレスでない場合にはステップS1207に戻って受信待ちを続け、自アドレスの場合には受信した信号のコマンドタイプCOMが「データ応答」であるか否かを判断する(S1209)。   When a signal is received from the slave unit C1 through the channel CH (1), it is determined whether or not the destination is the own address (S1208). If the destination is not the own address, the process returns to step S1207 and waits for reception. In the case of an address, it is determined whether or not the command type COM of the received signal is “data response” (S1209).

そして、コマンドタイプCOMが「データ応答」でない場合には別処理を行なって(S1210)ステップS1202に戻り、「データ応答」である場合には受信データの処理を行なう(S1211)。   If the command type COM is not “data response”, another process is performed (S1210), and the process returns to step S1202. If it is “data response”, the received data is processed (S1211).

一方、ステップS1315で「データ応答」を親機Pに送信した子機C1は、タイマがT2=T1+tc+ts0+ts1(ts1:送信後の待機時間)を経過したら(S1316)、iをi+1に設定し、jをj+1に設定して(S1317)チャネルをチャネルCH(2)に切り替えて受信待ちをする(S1318)。   On the other hand, the slave unit C1 that has transmitted “data response” to the master unit P in step S1315 sets i to i + 1 when the timer has passed T2 = T1 + tc + ts0 + ts1 (ts1: standby time after transmission) (S1316), j Is set to j + 1 (S1317), and the channel is switched to channel CH (2) to wait for reception (S1318).

そして、子機C2から図17に示すような「データ応答」のパケットを受信すると(S102−1)、宛先が自アドレスであるか否かを判断し(S1319)、自アドレス宛の信号でない場合にはステップS1318に戻って引き続きチャネルCH(2)で受信待ちの状態となる。一方、自アドレス宛の「データ応答」である場合には、タイマが時間t=T1+tc+ts0+j×(ts1+tc+tr0+tr1+tcd+ts0)、(tr0:受信準備時間)を経過したら(S1320)、受信した「データ応答」のパケットを親機PへチャネルCH(2)で送信する(S102−2、S1321)。   When receiving a “data response” packet as shown in FIG. 17 from the slave unit C2 (S102-1), it is determined whether or not the destination is the own address (S1319), and the signal is not addressed to the own address. After that, the process returns to step S1318, and the channel CH (2) continues to wait for reception. On the other hand, if it is a “data response” addressed to its own address, when the timer has passed the time t = T1 + tc + ts0 + j × (ts1 + tc + tr0 + tr1 + tcd + ts0) and (tr0: reception preparation time) (S1320), the received “data response” packet is transmitted. It transmits to base unit P through channel CH (2) (S102-2, S1321).

このとき、子機C1では図18に示すようにパケットの送信先アドレスDAを親機Pのアドレスに書き換えて送信している。ただし、データの中身については書き換えないので、データの中身は子機C2のデータが記録されている。   At this time, the child device C1 rewrites the transmission destination address DA of the packet to the address of the parent device P as shown in FIG. However, since the data contents are not rewritten, the data of the child device C2 is recorded as the data contents.

こうして子機C2から送られてきた「データ応答」を親機Pへ送信すると、今度はタイマが時間t=T2+j×(tc+tr0+tr1+tcd+ts0+ts1)を経過したら(S1322)、iが最大の子機数M、ここでは10になったか否かを判断し(S1323)、iが10になっていない場合にはステップS1317に戻って次のチャネルでの受信待ちを行ない、iが10になっている場合にはステップS1302に戻って上述した処理を繰り返し行う。   When the “data response” sent from the child device C2 is transmitted to the parent device P in this way, this time, when the timer has passed the time t = T2 + j × (tc + tr0 + tr1 + tcd + ts0 + ts1) (S1322), i is the maximum number of child devices M, where Then, it is determined whether or not 10 (S1323). If i is not 10, the process returns to step S1317 to wait for reception on the next channel, and if i is 10, It returns to S1302 and repeats the process mentioned above.

一方、ステップS1211で受信した「データ応答」のデータ処理を行なった親機Pは、受信した「データ応答」が終端の子機C10からのデータ応答であるか否かを判断し(S1212)、終端の子機C10からのデータ応答でない場合にはタイマが時間t=T1+tc+ts0+ts1+j×(tc+ts0+ts1+tcd+tr0+tr1)を経過してから(S1213)、jをj+1に設定して(S1214)ステップS1206に戻って他の子機からの「データ応答」の受信を引き続き行う。   On the other hand, the parent device P that has performed the data processing of the “data response” received in step S1211, determines whether or not the received “data response” is a data response from the terminal child device C10 (S1212). If it is not a data response from the terminal unit C10 at the end, after the timer has elapsed time t = T1 + tc + ts0 + ts1 + j × (tc + ts0 + ts1 + tcd + tr0 + tr1) (S1213), j is set to j + 1 (S1214) and the process returns to step S1206. Continue to receive “data response” from the machine.

このように上述した子機C1で行なわれた処理と同様の処理が、各子機C2〜C9で実行されて終端の子機C10へ「データ要求」が送信されると(S100−10、図13:S1307)、子機C10はセンサなどで検知した情報、すなわち自からのデータを用意し(S1324)、送信準備時間ts0が経過したら、すなわちタイマが時間t=T1+tc+ts0を経過したら(S1325)、予め設定されたチャネルCH(10)で「データ応答」のパケットを子機C9へ送信して(S110−1、S1326)ステップS1302に戻り、上述した処理を繰り返し行う。   When the processing similar to the processing performed in the above-described child device C1 is executed in each of the child devices C2 to C9 and a “data request” is transmitted to the terminal child device C10 (S100-10, FIG. 13: S1307), the slave unit C10 prepares information detected by the sensor, that is, data from itself (S1324). When the transmission preparation time ts0 has elapsed, that is, when the timer has elapsed time t = T1 + tc + ts0 (S1325), A packet of “data response” is transmitted to the child device C9 through the preset channel CH (10) (S110-1, S1326), and the process returns to step S1302 to repeat the above-described processing.

こうして子機C10で「データ応答」のパケットが送信されると、上述した子機C1で行なわれた処理と同様の処理が、各子機C2〜C9で実行されて終端の子機C10の「データ応答」のパケットが親機Pへと転送される。   When the “data response” packet is transmitted in the slave unit C10 in this way, the same processing as that performed in the slave unit C1 is executed in each of the slave units C2 to C9, and “ The “data response” packet is transferred to the parent device P.

そして、親機Pでは、ステップS1212において受信した「データ応答」のパケットが終端の子機C10からのパケット(S110−10)であると判断すると、今回のデータ収集処理を終了してステップS1202に戻って新たなデータの収集を行うために上述した処理を繰り返し行う。   If the base unit P determines that the “data response” packet received in step S1212 is a packet (S110-10) from the terminal unit C10, the current data collection process is terminated, and the process proceeds to step S1202. The process described above is repeated to return and collect new data.

ただし、上述した図11に示すシーケンス図では、送信準備時間ts0と受信準備時間tr0とは等しくなっており、また送信後の待機時間ts1と受信後の待機時間tr1も等しく、さらにチャネル切り替え時間tcとチャネル切り替えダミー時間tcdも等しくなっている。データが長くて複数のパケットになる場合や、受信確認のためのACKを用いる場合には、送信後の待機時間ts1や受信後の待機時間tr1内において処理する。また、再送を行う場合にも送信後の待機時間ts1内で終了させる。   However, in the sequence diagram shown in FIG. 11 described above, the transmission preparation time ts0 and the reception preparation time tr0 are equal, the standby time ts1 after transmission is equal to the standby time tr1 after reception, and the channel switching time tc. And the channel switching dummy time tcd are also equal. When the data is long and becomes a plurality of packets, or when ACK for reception confirmation is used, processing is performed within the waiting time ts1 after transmission and the waiting time tr1 after reception. Also, when retransmission is performed, the transmission is terminated within the waiting time ts1 after transmission.

ここで、上述した本実施例のデータ収集システムによる通信時間の具体例を説明する。1秒間に10台のデータ(平均100Byte、最大500Byte)を、図10のフレームフォーマットでDATA部以外が11Byte、チャネル切り替え時間が30msの場合を考える。   Here, a specific example of communication time by the data collection system of the above-described embodiment will be described. Consider a case where 10 data per second (average 100 bytes, maximum 500 bytes), 11 bytes other than the DATA part in the frame format of FIG. 10, and channel switching time 30 ms.

まず、1つの送信または受信に費やすことのできる時間を計算すると、1s÷(10台+予備1)=90.9msと計算することができる。ここからチャネル切り替え時間30msを引けば、90.9ms−30ms=60.9msが、あるチャネルでの固定時間(tr0+tr1+tcd+ts0+ts1)となる。   First, when the time that can be spent for one transmission or reception is calculated, it can be calculated as 1 s ÷ (10 units + reserve 1) = 90.9 ms. If the channel switching time 30 ms is subtracted from here, 90.9 ms-30 ms = 60.9 ms becomes the fixed time (tr0 + tr1 + tcd + ts0 + ts1) in a certain channel.

「データ要求」が11Byte+1Byte=12Byteのパケットになる場合、「データ要求」の送信にかかる時間は、12Byte×8Bit÷250kbps=0.38msとなる。   When the “data request” is a packet of 11 bytes + 1 bytes = 12 bytes, the time taken to transmit the “data request” is 12 bytes × 8 bits ÷ 250 kbps = 0.38 ms.

また、「データ応答」のパケットのDATA部が3Byte+100Byteで、全体では11Byte+3Byte+100Byte=114Byteのパケットになる場合、「データ応答」の送信にかかる時間は、114Byte×8Bit÷250kbps=3.65msとなる。さらに、この時間に加えて受信してからパケットを解析して次の動作準備をするのに要する時間が5msかかるので、転送するのに要する時間は3.65ms+5ms+3.65ms=12.3msとなり、あるチャネルでの固定時間60.9msに比べて十分に小さい。   Further, when the DATA portion of the “data response” packet is 3 bytes + 100 bytes, and the total becomes 11 bytes + 3 bytes + 100 bytes = 114 bytes, the time taken to transmit the “data response” is 114 bytes × 8 bits ÷ 250 kbps = 3.65 ms. Furthermore, in addition to this time, it takes 5 ms to analyze the packet after reception and prepare for the next operation, so the time required to transfer is 3.65 ms + 5 ms + 3.65 ms = 12.3 ms. This is sufficiently smaller than the fixed time 60.9 ms in the channel.

したがって、本実施例ではシステム的には非同期通信であるが、各子機のタイマを起動する「データ要求」の転送時間は、それ以外の時間に比べると十分に小さい。さらに、一定時間ごとに予め決められた動作をすること、受信しない場合(応答なしの場合)は一定時間(tr0+tr1+tcd+ts0)後にそれを無視して次の動作をすることなどを考慮すると、図11に示したシーケンスで処理を実行することが可能となる。   Therefore, in this embodiment, asynchronous communication is systematically, but the transfer time of the “data request” for starting the timer of each slave unit is sufficiently shorter than other times. Further, in consideration of performing a predetermined operation every predetermined time, and ignoring it after a certain time (tr0 + tr1 + tcd + ts0) when not receiving (when there is no response), the next operation is considered in FIG. Processing can be executed in the sequence shown.

次に、データが1回分の送信パケットに入らない場合について説明する。このような場合にはデータを分割し、分割したデータを連続して送信する。例えば、パケットが連続することを示すビットフィールドをパケットのフレームフォーマット内に用意しておくことで可能となる。   Next, a case where data does not fit in one transmission packet will be described. In such a case, the data is divided and the divided data is transmitted continuously. For example, it is possible by preparing a bit field indicating that packets are continuous in the frame format of the packet.

子機Cnのデータが最大500Byteの場合に、5回に分けて連続して送信する。「データ応答」の1回あたりのパケット長は11Byte+3Byte+500Byte/5=114Byteとなる。この送信時間は、114Byte×8Bit÷250kbps=3.65msとなり、「データ応答」を5回連続して送信したとしても3.65ms×5回=18.25msであり、あるチャネルでの固定時間(tr0+tr1+tcd+ts0+ts1)=60.9msの中に十分に収めることができる。   When the data of the slave unit Cn is 500 bytes at the maximum, the data is continuously transmitted in five times. The packet length per “data response” is 11 bytes + 3 bytes + 500 bytes / 5 = 114 bytes. This transmission time is 114 bytes × 8 bits ÷ 250 kbps = 3.65 ms. Even if the “data response” is transmitted five times continuously, it is 3.65 ms × 5 times = 18.25 ms, and a fixed time ( tr0 + tr1 + tcd + ts0 + ts1) = 60.9 ms.

上述したように、本実施例のデータ収集システムでは、親機Pが「データ要求」の送信を基点にタイマを起動し、各子機C1〜C10が「データ要求」の受信を基点にタイマをそれぞれ起動させ、あるチャネルでの固定時間ごとに動作をすることにより、受信確認ACKなしでも通信することができる。   As described above, in the data collection system of this embodiment, the master unit P starts the timer based on the transmission of the “data request”, and each of the slave units C1 to C10 sets the timer based on the reception of the “data request”. By activating each of them and operating at a fixed time in a certain channel, communication can be performed without an acknowledgment ACK.

また、子機Cnは、「データ要求」を受信するとタイマを起動し、ここを基点に予め決められた時間に予め決められた動作をするように設定されている。また、「データ要求」の転送を先に実行してから自からの「データ応答」を送信するように設定されており、さらにタイマを起動する「データ要求」の転送時間はシステム全体からすると十分に短い。これらのことを考慮すると、各子機Cnでのタイミングの差は「データ要求」の転送時間だけであり、親機Pと各子機Cnをほぼ同期させて動作させることができる。   Further, the slave unit Cn is set to start a timer when receiving a “data request” and to perform a predetermined operation at a predetermined time from this point. In addition, it is set to send the “data response” from itself after the “data request” transfer is executed first, and the transfer time of the “data request” for starting the timer is sufficient for the entire system. Short. Considering these points, the difference in timing between each slave unit Cn is only the transfer time of “data request”, and the master unit P and each slave unit Cn can be operated almost in synchronization.

さらに、親機Pと各子機Cnがほぼ同期して、時分割でチャネルを切り替えながら動作しているので、必要な無線のチャネル数は、M(子機の台数)/2+1だけでよい。IEEE802.15.4ではチャネルを16個使用できるので、子機の台数は応答時間が許せば30台まで接続可能である。   Furthermore, since the master unit P and each slave unit Cn are operating in synchronization with each other while switching channels in a time-sharing manner, the required number of radio channels is only M (the number of slave units) / 2 + 1. In IEEE 802.15.4, 16 channels can be used, so that up to 30 slave units can be connected if the response time allows.

逆に、子機が10台の場合には、必要なチャネル数は6でよいので、予め不具合のあるチャネルを使用しないで通信することも可能となる。   On the contrary, when there are 10 slave units, the required number of channels may be 6, so that it is possible to perform communication without using a defective channel in advance.

また、1回の通信を1ステップとすると、本実施例では、「2×M(子機の台数)+1」のステップ数が必要となり、これにチャネルの変更時間(tc)×Mが本実施例では30ms×10台=300msだけ加わる。   Also, assuming that one communication is one step, in this embodiment, the number of steps “2 × M (number of slave units) +1” is required, and the channel change time (tc) × M is implemented in this step. In the example, 30 ms × 10 units = 300 ms is added.

ところが、無線で1:1の通信を行って時分割多重通信をしない従来の図28の構成図及び図29のシーケンス図で示すシステムの場合には、子機が10台あると110ステップ必要であった。これに対して、本実施例では2×10+1=21ステップなので大幅に短縮することができる。また、無線チャネルの変更時間tc×台数(本実施例では300ms)の時間増は、ステップ数の増加分に比べれば僅かなものである。   However, in the case of the conventional system shown in the configuration diagram of FIG. 28 and the sequence diagram of FIG. 29 in which 1: 1 communication is performed wirelessly and time-division multiplex communication is not performed, 110 steps are required if there are 10 slave units. there were. On the other hand, in this embodiment, since 2 × 10 + 1 = 21 steps, it can be significantly shortened. Further, the time increase of the radio channel change time tc × the number of units (300 ms in the present embodiment) is slight compared to the increase in the number of steps.

また、本実施例のデータ収集システムでは、転送の際に送信元アドレスSAを書き換えないので、そのデータを最初に送信した送信元アドレスが最後まで残り、実際の送信元アドレスを記載するSAOを省略することができる。これによって、パケット長をその分だけ短くすることができ、システムとしてのデータ収集時間を短縮することができる。   Further, in the data collection system of this embodiment, the source address SA is not rewritten at the time of transfer, so the source address that transmitted the data first remains to the end, and the SAO that describes the actual source address is omitted. can do. As a result, the packet length can be shortened accordingly, and the data collection time as a system can be shortened.

次に、本発明の実施例4を説明する。ただし、本実施例に係るデータ収集システムの構成及び親機と子機で実施されるデータ収集処理は実施例3と同様なので詳しい説明は省略する。   Next, a fourth embodiment of the present invention will be described. However, since the configuration of the data collection system according to the present embodiment and the data collection processing performed by the parent device and the child device are the same as those of the third embodiment, detailed description thereof is omitted.

本実施例のデータ収集システムでは、チャネルの固定時間を、送信順序が後の子機になるにしたがって、及びチャネルの順序が後になるにしたがって長くなるように設定している。   In the data collection system of this embodiment, the fixed time of the channel is set so as to become longer as the transmission order becomes a later slave unit and as the channel order becomes later.

上述した実施例3では、各子機C1〜C10は「データ要求」の受信を基点にタイマを起動し、決められた時間に決められた動作を行うことによって、各子機C1〜C10が同期を取るようにしていた。ところが、各子機が送受信するパケットの通信時間分だけは同期がずれていた。また、子機の状態によっては受信処理動作が遅れる場合もあった。   In the above-described third embodiment, each of the slave units C1 to C10 starts a timer based on the reception of the “data request” and performs a predetermined operation at a predetermined time, so that each of the slave units C1 to C10 is synchronized. I was going to take. However, the synchronization was shifted only for the communication time of the packet transmitted and received by each slave unit. Also, the reception processing operation may be delayed depending on the state of the slave unit.

したがって、実施例3では終端側の子機になるにしたがって、親機との同期のずれは大きくなり、送受信できなくなる可能性が高くなっていた。また、タイマが起動してから時間が経った場合にも起動してから時間が経つにしたがって、親機との同期のずれは大きくなり、送受信できなくなる可能性が高くなっていた。   Therefore, in the third embodiment, as the terminal becomes a terminal on the terminal side, the synchronization shift with the parent increases, and the possibility that transmission / reception cannot be performed increases. In addition, even when the time has elapsed since the timer was started, as the time has passed since the timer was started, the difference in synchronization with the parent device has increased, and the possibility of being unable to transmit and receive has increased.

そこで、本実施例では、各チャネルの固定時間の間隔を終端側の子機になるにしたがって大きくなるようにし、さらにタイマが起動してから時間が経った場合も時間が経つにしたがって大きくなるようにしている。   Therefore, in this embodiment, the interval of the fixed time of each channel is increased as it becomes a terminal on the terminal side, and further, when the time elapses after the timer is started, it increases as time elapses. I have to.

上述した実施例3では、図11に示すようにT3−T2、T4−T3、・・・、T11−T10の間隔はすべて等しいが、本実施例では図19に示すように受信後の待機時間tr1と送信後の待機時間ts1を、終端側の子機になるにしたがって、さらにタイマが起動してから時間が経つにしたがって、時間taずつ長くなるようにしている。これにより、本実施例ではT3'−T2<T4'−T3'<・・・<T10'−T9'<T11'−T10'となっている。   In the third embodiment described above, the intervals of T3-T2, T4-T3,..., T11-T10 are all equal as shown in FIG. 11, but in this embodiment, the waiting time after reception as shown in FIG. The time tr1 and the waiting time ts1 after transmission are set to increase by time ta as the terminal becomes a slave unit on the end side and further after the timer starts. Thus, in this embodiment, T3′−T2 <T4′−T3 ′ <... <T10′−T9 ′ <T11′−T10 ′.

このように本実施例のデータ収集システムでは、各子機の間でのタイミングの差であった「データ要求」の転送時間を考慮することができるようになり、チャネルでの固定時間を、終端側の子機になるにしたがって、及びタイマが起動してから時間が経つにしたがって長くすることができる。これによって、タイマが起動してから時間が経った場合や、終端側の子機において送受信できなくなる可能性を減らすことができ、親機と各子機との間の同期の精度を向上させて受信確認ACKなしでも通信の信頼性を保つことが可能となる。   As described above, in the data collection system of the present embodiment, it becomes possible to consider the transfer time of the “data request” that is the timing difference between the slave units, and the fixed time in the channel is terminated. It can be made longer as the slave unit becomes closer and as time passes after the timer starts. This can reduce the possibility that transmission / reception will not be possible at the end side slave unit when the timer has started, and improve the accuracy of synchronization between the master unit and each slave unit. Communication reliability can be maintained even without a reception confirmation ACK.

次に、本発明の実施例5を説明する。ただし、本実施例に係るデータ収集システムの構成及び親機と子機で実施されるデータ収集処理は実施例3と同様なので詳しい説明は省略する。   Next, a fifth embodiment of the present invention will be described. However, since the configuration of the data collection system according to the present embodiment and the data collection processing performed by the parent device and the child device are the same as those of the third embodiment, detailed description thereof is omitted.

本実施例のデータ収集システムでは、親機によって子機を限定してデータの収集を行なえるようにしている。   In the data collection system of this embodiment, data can be collected by limiting the slave units by the master unit.

ここで、本実施例のデータ収集システムで使用されるパケットのフレームフォーマットを図20に示す。図20に示すように、本実施例で使用されるパケットのフレームフォーマットでは、子機を限定してデータ要求をする場合にはコマンドタイプCOMが「限定データ要求」と記録され、DATA部には対象となる子機を限定するためのOJ部が設定されている。DATA部の中のOJ部のビットにそれぞれ各子機が割り当てられており、「1」は返信を要求、「0」は返信を要求しないものとする。例えば、図20のビット列の場合では、子機1、子機5、子機7のみ「データ応答」を返信するように要求されている。   Here, FIG. 20 shows a frame format of a packet used in the data collection system of this embodiment. As shown in FIG. 20, in the packet frame format used in the present embodiment, the command type COM is recorded as “limited data request” when a data request is made by limiting the slave units, and the DATA part is recorded in the DATA section. An OJ section for limiting the target slave units is set. Each slave unit is assigned to each bit of the OJ section in the DATA section, and “1” requests a reply, and “0” does not request a reply. For example, in the case of the bit string of FIG. 20, only the slave unit 1, the slave unit 5, and the slave unit 7 are required to return a “data response”.

次に、本実施例のデータ収集システムによるデータ収集処理のシーケンス図を図21に示す。図21に示すように、各子機は「限定データ要求」を受信すると、タイマを起動し、この「限定データ要求」を基準として予め設定された順序でチャネルを切り替えていく。   Next, FIG. 21 shows a sequence diagram of data collection processing by the data collection system of the present embodiment. As shown in FIG. 21, when each slave unit receives a “limited data request”, it starts a timer and switches channels in a preset order based on this “limited data request”.

親機と各子機は、どの子機から「データ応答」があるかは、最初に受信した「限定データ要求」のOJビットを解析すれば認識することができるので、一定時間受信がない場合や受信確認ACKが返信されない場合に、「無応答応答」を送信する必要はない。さらに、親機はどのタイミングで「データ応答」を受信するか認識しているので、該当するタイミングで受信待ちを行なうようにする。   The master unit and each slave unit can recognize which slave unit has the “data response” by analyzing the OJ bit of the “limited data request” received first, so there is no reception for a certain period of time. If no acknowledgment ACK is returned, there is no need to send a “no response”. Further, since the master unit recognizes at which timing the “data response” is received, it waits for reception at the corresponding timing.

また、「限定データ要求」に対する子機からの応答を、通常の「データ応答」ではなく、別のコマンドタイプである「限定データ応答」として、データ応答のパケットからOJ部をなくすようにしてもよい。   In addition, the response from the slave unit to the “limited data request” is not a normal “data response” but a “limited data response” which is another command type, and the OJ portion is eliminated from the data response packet. Good.

このように、本実施例のデータ収集システムでは、パケットのフレームフォーマットにデータ要求の対象とする子機を限定できるようにしたので、全ての子機ではなく、任意の子機からだけデータを収集することが可能になる。   As described above, in the data collection system according to the present embodiment, since it is possible to limit the slave units to which data is requested in the packet frame format, data is collected only from an arbitrary slave unit instead of all the slave units. It becomes possible to do.

さらに、各子機が「限定データ要求」を受信して転送していくので、どの子機から応答があるか、すなわちどのタイミングで応答があるかを各子機が認識することができ、それに対する動作をシステムとして決めておくことができる。特に、転送の必要がない場合には、図21に示すようにチャネルは切り替えても送信をしなければ、電波が混信する確率を下げることもできる。   Furthermore, since each slave unit receives and transmits a “limited data request”, each slave unit can recognize from which slave unit there is a response, that is, at what timing. Can be determined as a system. In particular, when there is no need for transfer, it is possible to reduce the probability of radio wave interference if transmission is not performed even if the channel is switched as shown in FIG.

また、終端の子機に問い合わせる場合を除けば、返信時間は全ての子機に返信を求める場合よりも短い時間で応答を得ることができる。   In addition, except for the case of inquiring to the terminal slave unit, the response time can be obtained in a shorter time than when all the slave units are requested to reply.

次に、本発明の実施例6を説明する。ただし、本実施例に係るデータ収集システムの構成及び親機と子機で実施されるデータ収集処理は実施例3と同様なので詳しい説明は省略する。   Next, a sixth embodiment of the present invention will be described. However, since the configuration of the data collection system according to the present embodiment and the data collection processing performed by the parent device and the child device are the same as those of the third embodiment, detailed description thereof is omitted.

本実施例のデータ収集システムでは、一定時間受信がない場合や受信確認ACKが返信されない場合に無応答応答を送信するようにしている。   In the data collection system of this embodiment, a no-response response is transmitted when there is no reception for a certain period of time or when a reception confirmation ACK is not returned.

ここで、本実施例のデータ収集システムによるデータ収集処理のシーケンス図を図22に示す。図22に示すように、各子機Cnは受信するまでの間、予め設定されたチャネルCH(i)で受信待ちをしている。このとき、あるチャネルでの受信固定時間(tr0+tr1)内で受信しない場合には(S220)、受信しなかったことを「無応答応答」として次のタイミングとチャネルで親機側の子機Cn−1へ送信する(S221)。   Here, FIG. 22 shows a sequence diagram of data collection processing by the data collection system of the present embodiment. As shown in FIG. 22, each slave unit Cn waits for reception on a preset channel CH (i) until reception. At this time, if the signal is not received within the fixed reception time (tr0 + tr1) in a certain channel (S220), the fact that it has not been received is regarded as a “no response”, and the child device Cn− on the parent device side at the next timing and channel. 1 is transmitted (S221).

この「無応答応答」のパケットでは、送信元アドレスSAは、この「無応答応答」を生成した子機Cnであるから、子機Cn+1からの応答がなかったことを、親機Pと子機Cn及び子機Cnよりも親機側の各子機で認識することができる。   In this “no response response” packet, since the source address SA is the child device Cn that generated this “no response”, it is indicated that there is no response from the child device Cn + 1. It can be recognized by each slave unit closer to the master unit than Cn and slave unit Cn.

また、親機Pは「無応答応答」を受信及び解析することによって、どの子機がどのチャネルで通信できなかったのかを検出することが可能である。   In addition, the master unit P can detect which slave unit cannot communicate with which channel by receiving and analyzing the “no response”.

このとき、少なくとも1周期分の時間T後には、全ての子機はCH(0)での受信待ちとなっているので、親機Pは個別に子機に対して原因を問い合わせる処理をしたり、新たに再起動コマンドを送信したりして、応答なしの原因を取り除くことができる。   At this time, since at least one cycle time T, all the slave units are waiting to receive CH (0), the master unit P can individually inquire about the cause of the slave unit. Sending a restart command or removing the cause of no response.

さらに、CH(0)での受信待ちのときに、各子機に対して例えば時間2Tという制限時間を設けておけば、時間2TまでチャネルCH(0)で何も受信しなかった場合には、使用チャネルや使用順序を再決定する処理(起動処理に含む)に戻るようにしておけば、親機Pからの制御が何も効かなくなる状態を避けることができる。   Further, when waiting for reception on CH (0), for example, if a time limit of 2T is provided for each slave unit, if nothing is received on channel CH (0) until time 2T, If the process returns to the process for re-determining the use channel and the use order (included in the start-up process), a state in which no control from the parent device P can be avoided.

このように、本実施例のデータ収集システムでは、一定時間受信がない場合や受信確認ACKが返信されない場合には、子機Cnが正常なデータを送信すべきタイミングで親機側の子機Cn−1へ「無応答応答」を送信するので、親機Pは「無応答応答」を受信及び解析することによって、どの子機がどのチャネルで通信できなかったのか検出することができる。また、親機Pが新たな使用チャネルと順序を決定し、各子機に通知することによって、データ収集を実行中であっても不具合のあるチャネルを使用せずに通信することができ、無線の通信不具合を減らすことができる。   As described above, in the data collection system according to the present embodiment, when there is no reception for a certain period of time or when a reception confirmation ACK is not returned, the child device Cn on the parent device side at the timing when the child device Cn should transmit normal data. Since the “no response” is transmitted to −1, the parent device P can detect which child device cannot communicate with which channel by receiving and analyzing the “no response”. In addition, the base unit P determines a new use channel and order, and notifies each slave unit, so that communication can be performed without using a defective channel even when data collection is being performed. Communication problems can be reduced.

次に、本発明の実施例7を説明する。ただし、本実施例に係るデータ収集システムの構成及び親機と子機で実施されるデータ収集処理は実施例3と同様なので詳しい説明は省略する。   Next, a seventh embodiment of the present invention will be described. However, since the configuration of the data collection system according to the present embodiment and the data collection processing performed by the parent device and the child device are the same as those of the third embodiment, detailed description thereof is omitted.

本実施例のデータ収集システムでは、データを送信した後に予め設定されたチャネルでの固定時間内に受信確認ACKを受信できずに、送信できたのか確認のできないデータをメモリに貯めておいて、次のチャネルで送信するようにしたものである。   In the data collection system of this embodiment, after transmitting data, the reception confirmation ACK cannot be received within a fixed time in a preset channel, and data that cannot be confirmed is stored in a memory. The transmission is performed on the next channel.

ここで、本実施例のデータ収集システムによるデータ収集処理のシーケンス図を図23に示す。図23では、子機C3から送信されたデータである「データ応答」(S103−1)を、子機C2から子機C1へ転送する際に(S103−2)失敗した場合を示している。この実施例では、固定時間ごとにチャネル変更するとともに、受信確認ACKを返信するように設定されている場合について説明する。   Here, FIG. 23 shows a sequence diagram of data collection processing by the data collection system of the present embodiment. FIG. 23 shows a case in which the “data response” (S103-1), which is data transmitted from the child device C3, has failed in transferring from the child device C2 to the child device C1 (S103-2). In this embodiment, a case will be described in which the channel is changed every fixed time and the reception confirmation ACK is set to be returned.

まず、子機C1は一定時間tr0(受信準備時間)+tr1(受信後の待機時間)の間に子機C2からのパケットをチャネルCH(3)、すなわちチャネル18で受信できない場合には、さらに時間tcd(チャネル切り替えダミー時間)+ts0(送信準備時間)だけ経過した後に「無応答応答」を親機PへチャネルCH(3)で送信する(S113−1)。   First, if the handset C1 cannot receive a packet from the handset C2 on the channel CH (3), that is, the channel 18, for a certain time tr0 (reception preparation time) + tr1 (waiting time after reception), the time is further increased. After a lapse of tcd (channel switching dummy time) + ts0 (transmission preparation time), a “no response” is transmitted to base unit P through channel CH (3) (S113-1).

このとき、子機C2は子機C1からの受信確認ACKを受信できないことによって、送信が失敗したことを認識し、図24に示す失敗したパケット(S103−2)を子機C2内のメモリに蓄積する。   At this time, the child device C2 recognizes that the transmission has failed by not receiving the reception confirmation ACK from the child device C1, and stores the failed packet (S103-2) shown in FIG. 24 in the memory in the child device C2. accumulate.

そして、子機C1は、時間tc(チャネルの切り替え時間)後にチャネルをCH(4)すなわちチャネル21に変更し、受信待ちとなる(t=T4)。そして、子機C1は子機C2から子機C4のデータである「データ応答」(S104−3)を受信し、受信確認ACKを子機C2へ返信する。   Then, handset C1 changes the channel to CH (4), that is, channel 21 after time tc (channel switching time), and waits for reception (t = T4). Then, the child device C1 receives the “data response” (S104-3) that is the data of the child device C4 from the child device C2, and returns a reception confirmation ACK to the child device C2.

このとき、子機C2は、チャネルCH(3)では子機C1と通信できなかったが、次のチャネルCH(4)では通信できたので、子機C2内のメモリに蓄積しておいた送信を失敗したデータを、新たなコマンドタイプである「蓄積データ応答」で、図25に示すフレームフォーマットを利用して子機C1へチャネルCH(4)で送信する。   At this time, since the handset C2 could not communicate with the handset C1 on the channel CH (3) but could communicate on the next channel CH (4), the transmission stored in the memory in the handset C2 The data that failed to be transmitted is transmitted with a new command type “stored data response” to the child device C1 using the channel format shown in FIG. 25 through the channel CH (4).

ここで、コマンドタイプを「蓄積データ応答」とした場合のみ、DATA部にそのデータを最初に送信した子機のアドレスSAOを含めるように設定しておけば、送信に失敗したパケット(S103−2)の送信元アドレスSA、すなわち子機C3を「蓄積データ応答」のSAOとすることができ、「蓄積データ応答」の送信元アドレスSAは子機C2にすることができる(S123−1、図25)。   Here, only when the command type is “accumulated data response”, if the DATA unit is set to include the address SAO of the slave that first transmitted the data, the packet that failed to be transmitted (S103-2) ), That is, the slave device C3 can be the SAO of “stored data response”, and the sender address SA of the “stored data response” can be the slave device C2 (S123-1, FIG. 25).

そして、子機C1が「蓄積データ応答」に対しても受信確認ACKを返信することによって、子機C2は送信に失敗したパケット(S103−2)を別のチャネルで送信が成功したことを認識し、そのデータをメモリから削除する。   Then, the child device C1 returns a reception confirmation ACK to the “accumulated data response”, so that the child device C2 recognizes that the transmission of the packet (S103-2) that has failed to be transmitted has been successfully transmitted on another channel. The data is deleted from the memory.

子機C1は、次のステップで親機Pに対して、子機C4のデータである「データ応答」(S104−4)を送信するとともに、子機C2が生成したデータの中身は子機C3のデータである「蓄積データ応答」(S123−2)を図26のフレームフォーマットで送信する。   In the next step, the slave unit C1 transmits a “data response” (S104-4), which is data of the slave unit C4, to the master unit P, and the content of the data generated by the slave unit C2 is the slave unit C3. The “accumulated data response” (S123-2), which is the data of, is transmitted in the frame format of FIG.

一方、親機Pは図26に示す「蓄積データ応答」のパケットを受信して解析することにより、子機C2と子機C1との間のチャネルCH(3)で通信ができなかったことを検出することができる。   On the other hand, the base unit P receives and analyzes the “stored data response” packet shown in FIG. 26 to confirm that communication cannot be performed on the channel CH (3) between the handset C2 and the handset C1. Can be detected.

このように、本実施例のデータ収集システムでは、「データ応答」を送信できなかった場合に、そのデータをメモリに貯めておいて、別のチャネルで送信するようにしたので、データ収集処理を実施している途中から通信状況が悪くなったチャネルがあったとしても、データを収集することが可能となる。さらに、親機Pがその状況を蓄積し分析することによって、そのチャネルを使わないようにシステム全体を制御することができる。   As described above, in the data collection system of this embodiment, when the “data response” cannot be transmitted, the data is stored in the memory and transmitted through another channel. Even if there is a channel whose communication status has deteriorated during implementation, data can be collected. Further, the base unit P can accumulate and analyze the situation to control the entire system so as not to use the channel.

次に、本発明の実施例8を説明する。ただし、本実施例に係るデータ収集システムの構成及び親機と子機で実施されるデータ収集処理は実施例3と同様なので詳しい説明は省略する。   Next, an eighth embodiment of the present invention will be described. However, since the configuration of the data collection system according to the present embodiment and the data collection processing performed by the parent device and the child device are the same as those of the third embodiment, detailed description thereof is omitted.

本実施例のデータ収集システムでは、子機側でセンサが異常データを検知した場合などに、子機から緊急情報を発信できるようにしたものである。   In the data collection system of the present embodiment, emergency information can be transmitted from the slave unit when the sensor detects abnormal data on the slave unit side.

ここで、本実施例のデータ収集システムによるデータ収集処理のシーケンス図を図27に示す。図27では、子機C6が緊急情報として「緊急応答」を親機Pへ発信したい場合について説明する。子機C6は、次に「データ応答」を転送すべきタイミングで、送信データを「データ応答」から「緊急応答」に代えて子機C5へ転送する(S116−1)。子機C6はその後は通常の動作を行い、子機C7から「データ応答」を受信し、子機C5へ転送する。また、「緊急応答」に代えられたパケットも通常のパケットと同じように、親機Pまで転送されていく。   Here, FIG. 27 shows a sequence diagram of data collection processing by the data collection system of the present embodiment. In FIG. 27, a case will be described in which the child device C6 wants to send an “emergency response” to the parent device P as emergency information. The slave C6 transfers the transmission data from the “data response” to the “emergency response” to the slave C5 at the next timing to transfer the “data response” (S116-1). The child device C6 thereafter performs a normal operation, receives the “data response” from the child device C7, and transfers it to the child device C5. Further, the packet replaced with the “emergency response” is also transferred to the parent device P in the same manner as a normal packet.

このように、本実施例のデータ収集システムでは、本来親機Pが各子機に問い合わせて各子機のデータを収集する(ポーリングを基本とした)システムでは、各子機は自発的に発信することはできないが、子機が「データ応答」を必要に応じて「緊急応答」に代えることによって、データ収集の1周期T内に、親機Pは「緊急応答」を受信し、緊急事態を認知することが可能となる。   In this way, in the data collection system of this embodiment, in the system in which the parent device P originally inquires each child device and collects data of each child device (based on polling), each child device transmits spontaneously. However, if the slave unit replaces the “data response” with an “emergency response” as necessary, the master unit P receives the “emergency response” within one period T of data collection, Can be recognized.

また、子機が勝手なタイミングで発信することがないので、混信することを防ぐことができる。   Further, since the slave unit does not make a call at an arbitrary timing, it is possible to prevent interference.

さらに、親機は受信した「緊急応答」に基づいた処理を実施した後に、好きなタイミングで通常のシーケンスに戻ることができる。   Furthermore, after performing the processing based on the received “emergency response”, the master unit can return to the normal sequence at any timing.

以上、本発明のデータ収集システムについて、図示した実施例に基づいて説明したが、本発明はこれに限定されるものではなく、各部の構成は同様の機能を有する任意の構成のものに置き換えることができる。   The data collection system of the present invention has been described based on the illustrated embodiment. However, the present invention is not limited to this, and the configuration of each part is replaced with an arbitrary configuration having the same function. Can do.

本発明の実施例に係るデータ収集システムの構成を示すブロック図である。It is a block diagram which shows the structure of the data collection system which concerns on the Example of this invention. 本発明の実施例1に係るデータ収集システムの構成を示すブロック図である。It is a block diagram which shows the structure of the data collection system which concerns on Example 1 of this invention. 本発明の実施例1に係るデータ収集システムで使用されるパケットのフレームフォーマットを示す図である。It is a figure which shows the frame format of the packet used with the data collection system which concerns on Example 1 of this invention. 本発明の実施例1に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 1 of this invention. 本発明の実施例1に係るデータ収集システムの親機によるデータ収集処理を示すフローチャートである。It is a flowchart which shows the data collection process by the main | base station of the data collection system which concerns on Example 1 of this invention. 本発明の実施例1に係るデータ収集システムの子機によるデータ収集処理を示すフローチャートである。It is a flowchart which shows the data collection process by the subunit | mobile_unit of the data collection system which concerns on Example 1 of this invention. 本発明の実施例2に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 2 of this invention. 本発明の実施例2に係るデータ収集システムの親機によるデータ収集処理を示すフローチャートである。It is a flowchart which shows the data collection process by the main | base station of the data collection system which concerns on Example 2 of this invention. 本発明の実施例2に係るデータ収集システムの子機によるデータ収集処理を示すフローチャートである。It is a flowchart which shows the data collection process by the subunit | mobile_unit of the data collection system which concerns on Example 2 of this invention. 本発明の実施例3に係るデータ収集システムで使用されるパケットのフレームフォーマットを示す図である。It is a figure which shows the frame format of the packet used with the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムの親機によるデータ収集処理を示すフローチャートである。It is a flowchart which shows the data collection process by the main | base station of the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムの子機によるデータ収集処理を示すフローチャートである。It is a flowchart which shows the data collection process by the subunit | mobile_unit of the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 3 of this invention. 本発明の実施例3に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 3 of this invention. 本発明の実施例4に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 4 of this invention. 本発明の実施例5に係るデータ収集システムで使用されるパケットのフレームフォーマットを示す図である。It is a figure which shows the frame format of the packet used with the data collection system which concerns on Example 5 of this invention. 本発明の実施例5に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 5 of this invention. 本発明の実施例6に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 6 of this invention. 本発明の実施例7に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 7 of this invention. 本発明の実施例7に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 7 of this invention. 本発明の実施例7に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 7 of this invention. 本発明の実施例7に係るデータ収集システムで使用されるパケットのフレームフォーマットの一例を示す図である。It is a figure which shows an example of the frame format of the packet used with the data collection system which concerns on Example 7 of this invention. 本発明の実施例8に係るデータ収集システムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the data collection system which concerns on Example 8 of this invention. 従来の無線接続のポーリングシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the polling system of the conventional wireless connection. 従来の無線接続のポーリングシステムによるデータ収集処理を示すシーケンス図である。It is a sequence diagram which shows the data collection process by the polling system of the conventional wireless connection.

符号の説明Explanation of symbols

1、21 データ収集システム
P 親機
C1〜C10、Cn 子機
1,21 Data collection system P Master unit C1 to C10, Cn Slave unit

Claims (10)

親機が複数の子機から無線によりデータの収集を行うデータ収集システムであって、
前記複数の子機は、第1の子機から終端の子機まで送信順序が予め設定されており、各子機はそれぞれ転送方向によって予め設定されたチャネルを用いて前記送信順序が前後する子機とだけデータの送受信を行い、
前記親機は、予め設定されたチャネルを用いて前記第1の子機とだけデータの送受信を行うことを特徴とするデータ収集システム。
A data collection system in which a master unit wirelessly collects data from a plurality of slave units,
The plurality of slave units have a transmission order set in advance from the first slave unit to the terminal slave unit, and each slave unit uses a channel set in advance according to the transfer direction, and the transmission order is changed. Send and receive data only to the machine,
The data collection system, wherein the master unit transmits / receives data only to / from the first slave unit using a preset channel.
親機が複数の子機から無線によりデータの収集を行うデータ収集システムであって、
前記複数の子機は、第1の子機から終端の子機まで送信順序が予め設定されており、各子機は予め設定された複数のチャネルを予め設定された順序で用いて前記送信順序が前後する子機とだけデータの送受信を行い、
前記親機は、予め設定された複数のチャネルを予め設定された順序で用いて前記第1の子機とだけデータの送受信を行うことを特徴とするデータ収集システム。
A data collection system in which a master unit wirelessly collects data from a plurality of slave units,
The plurality of slave units have a preset transmission order from the first slave unit to the terminal slave unit, and each slave unit uses the preset plurality of channels in a preset order. Sends and receives data only with the slave unit
The base unit performs data transmission / reception only with the first handset using a plurality of preset channels in a preset order.
前記親機及び前記複数の子機は、データを受信すると受信確認を返信することを特徴とする請求項1または2のいずれかに記載のデータ収集システム。   3. The data collection system according to claim 1, wherein the master unit and the plurality of slave units return a reception confirmation when receiving data. 前記親機及び前記複数の子機は、固定時間毎に予め設定された複数のチャネルを予め設定された順序で用いることを特徴とする請求項2または3のいずれかに記載のデータ収集システム。   4. The data collection system according to claim 2, wherein the master unit and the plurality of slave units use a plurality of channels set in advance for each fixed time in a preset order. 前記固定時間は、前記送信順序が後の子機になるにしたがって、及び前記チャネルの順序が後になるにしたがって長くなるように設定されていることを特徴とする請求項4に記載のデータ収集システム。   5. The data collection system according to claim 4, wherein the fixed time is set to become longer as the transmission order becomes a later slave unit and as the channel order becomes later. . 前記親機は、特定の子機だけを対象とした命令を送信することを特徴とする請求項1から請求項5のいずれか1項に記載のデータ収集システム。   The data collection system according to any one of claims 1 to 5, wherein the parent device transmits an instruction only for a specific child device. 前記データに記録されている送信元アドレスは、最初にデータを送信した親機あるいは子機のアドレスから変更しないことを特徴とする請求項1から請求項6のいずれか1項に記載のデータ収集システム。   The data collection according to any one of claims 1 to 6, wherein a transmission source address recorded in the data is not changed from an address of a parent device or a child device that transmitted data first. system. 前記複数の子機は、前記固定時間内に前記データを受信しなかったときには、前記親機あるいは前記送信順序が親機側にある子機に対して応答がなかったことを通知することを特徴とする請求項4から請求項7のいずれか1項に記載のデータ収集システム。   When the plurality of slave units do not receive the data within the fixed time, the plurality of slave units notify the master unit or the slave unit whose transmission order is on the master unit side that the slave unit has not responded. The data collection system according to any one of claims 4 to 7. 前記複数の子機は、前記データの送信後に前記固定時間が経過しても前記受信確認を受信できないときには、送信したデータを記憶しておき、別のチャネルで送信することを特徴とする請求項4から請求項8のいずれか1項に記載のデータ収集システム。   The plurality of slave units store the transmitted data and transmit it on another channel when the reception confirmation cannot be received even after the fixed time has elapsed after the transmission of the data. The data collection system according to any one of claims 4 to 8. 前記複数の子機は、前記データに代えて緊急情報を送信することを特徴とする請求項1から請求項9のいずれか1項に記載のデータ収集システム。   The data collection system according to any one of claims 1 to 9, wherein the plurality of slave units transmit emergency information instead of the data.
JP2005346008A 2005-11-30 2005-11-30 Data collection system Expired - Fee Related JP4107322B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005346008A JP4107322B2 (en) 2005-11-30 2005-11-30 Data collection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005346008A JP4107322B2 (en) 2005-11-30 2005-11-30 Data collection system

Publications (2)

Publication Number Publication Date
JP2007151025A true JP2007151025A (en) 2007-06-14
JP4107322B2 JP4107322B2 (en) 2008-06-25

Family

ID=38211840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005346008A Expired - Fee Related JP4107322B2 (en) 2005-11-30 2005-11-30 Data collection system

Country Status (1)

Country Link
JP (1) JP4107322B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009107444A1 (en) * 2008-02-26 2009-09-03 富士電機システムズ株式会社 Exposed radioactivity management system, dosimeter and repeater
JP2009206908A (en) * 2008-02-28 2009-09-10 Seiko Instruments Inc Sensor network system
WO2009123112A1 (en) * 2008-03-31 2009-10-08 国立大学法人九州大学 Network system, node, packet forwarding method, program, and recording medium
JP2010220086A (en) * 2009-03-18 2010-09-30 Chugoku Electric Power Co Inc:The Terminal device and monitor system
JP2011066811A (en) * 2009-09-18 2011-03-31 Sumitomo Electric Ind Ltd Communication system and communication method
JP2018106552A (en) * 2016-12-27 2018-07-05 株式会社クボタ Wireless terminal apparatus and wireless terminal system
JP7098016B1 (en) * 2021-03-18 2022-07-08 ソフトバンク株式会社 Communication system, information processing device, control method of information processing device, and communication device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9063233B2 (en) 2008-02-26 2015-06-23 Fuji Electric Co., Ltd. Exposure management system, dosimeter, and wireless relay device
JPWO2009107444A1 (en) * 2008-02-26 2011-06-30 富士電機システムズ株式会社 Exposure management system, dosimeter, and repeater
KR101652843B1 (en) * 2008-02-26 2016-09-09 후지 덴키 가부시키가이샤 Exposed radioactivity management system, dosimeter and repeater
WO2009107444A1 (en) * 2008-02-26 2009-09-03 富士電機システムズ株式会社 Exposed radioactivity management system, dosimeter and repeater
KR20100131979A (en) * 2008-02-26 2010-12-16 후지 덴키 시스템즈 가부시키가이샤 Exposed radioactivity management system, dosimeter and repeater
JP5062321B2 (en) * 2008-02-26 2012-10-31 富士電機株式会社 Exposure management system, dosimeter, and repeater
JP2009206908A (en) * 2008-02-28 2009-09-10 Seiko Instruments Inc Sensor network system
US9220047B2 (en) 2008-03-31 2015-12-22 Kyushu University, National University Corporation Network system, node, packet forwarding method, program, and recording medium
JP5388137B2 (en) * 2008-03-31 2014-01-15 国立大学法人九州大学 Network system, node, packet forwarding method, program, and recording medium
WO2009123112A1 (en) * 2008-03-31 2009-10-08 国立大学法人九州大学 Network system, node, packet forwarding method, program, and recording medium
JP2010220086A (en) * 2009-03-18 2010-09-30 Chugoku Electric Power Co Inc:The Terminal device and monitor system
JP2011066811A (en) * 2009-09-18 2011-03-31 Sumitomo Electric Ind Ltd Communication system and communication method
JP2018106552A (en) * 2016-12-27 2018-07-05 株式会社クボタ Wireless terminal apparatus and wireless terminal system
JP7098016B1 (en) * 2021-03-18 2022-07-08 ソフトバンク株式会社 Communication system, information processing device, control method of information processing device, and communication device

Also Published As

Publication number Publication date
JP4107322B2 (en) 2008-06-25

Similar Documents

Publication Publication Date Title
JP4107322B2 (en) Data collection system
US9094424B2 (en) Method, apparatus, and computer program product for digital stream swapping between signal sources
TWI358959B (en) Communications methods and apparatus related to be
JP5085316B2 (en) Distributed beacon period for ad hoc networks
US8457094B2 (en) Mini-slot communication protocol
EP2591634B1 (en) Method and apparatus for detection and resolution of resource collision in a peer-to-peer network
JP2019083588A (en) Method and system for initial synchronization and collision avoidance in device to device communications without network coverage
JP3872786B2 (en) Wireless communication method capable of connectionless broadcasting
EP2151960B1 (en) Base station with automatic device detection and configuration
JPH08204683A (en) Method and equipment for direct communication in tdma radiocommunication system
WO2008042526A2 (en) Method and device for increasing capacity of tdd wireless communication systems
JP4136694B2 (en) Wireless terminal, base station, and communication link maintaining method
JP2005210199A (en) Inter-terminal connection method in radio network
CN113067658B (en) Narrow-band ad hoc network communication control method and related equipment
CN109587666B (en) Bluetooth device, system and scheduling method
JP5712548B2 (en) Base station, communication program, communication method, and communication system
EP2341742B1 (en) Relay system, relay device and synchronization method
JP2005204116A (en) Radio communication system for business and method therefor
JP2007006019A (en) Wireless device, communication station, and wireless network
JP3950081B2 (en) Wireless relay method and apparatus
JP5979522B1 (en) Base unit and communication method
JP4258334B2 (en) Communication device
JP7034596B2 (en) Communication equipment, communication methods, and programs
JP2005079605A5 (en)
KR20050066275A (en) Access method between mobile terminals in mobile ad hoc network and mobile terminal therefor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071218

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080218

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080311

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080324

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110411

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110411

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130411

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees