Nothing Special   »   [go: up one dir, main page]

JP6309267B2 - Communication system and communication node - Google Patents

Communication system and communication node Download PDF

Info

Publication number
JP6309267B2
JP6309267B2 JP2013269485A JP2013269485A JP6309267B2 JP 6309267 B2 JP6309267 B2 JP 6309267B2 JP 2013269485 A JP2013269485 A JP 2013269485A JP 2013269485 A JP2013269485 A JP 2013269485A JP 6309267 B2 JP6309267 B2 JP 6309267B2
Authority
JP
Japan
Prior art keywords
node
proxy
proxy communication
communication
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013269485A
Other languages
Japanese (ja)
Other versions
JP2014225859A (en
Inventor
忠秀 國立
忠秀 國立
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.)
Yazaki Corp
Original Assignee
Yazaki Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yazaki Corp filed Critical Yazaki Corp
Priority to JP2013269485A priority Critical patent/JP6309267B2/en
Publication of JP2014225859A publication Critical patent/JP2014225859A/en
Application granted granted Critical
Publication of JP6309267B2 publication Critical patent/JP6309267B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

本発明は、通信システム及び通信ノードに係り、特に、複数の通信ノードを有して無線メッシュネットワークを構成する通信システム及び当該通信システムを構成する通信ノードに関するものである。   The present invention relates to a communication system and a communication node, and more particularly, to a communication system having a plurality of communication nodes and constituting a wireless mesh network, and a communication node constituting the communication system.

無線を使用するメッシュネットワークにおいて、直接電波の届かない通信ノードへデータを届けるために、中継ノードを利用する方法が考えられている(例えば特許文献1)。特許文献1は、放送波のように不特定多数の通信ノードへデータを届ける際に中継ノードを利用する通信システムであるが、特定の通信ノードへデータを届ける際に中継ノードを利用する通信システムも考えられている。このような通信システムで、中継ノードを決定する代表的な方法にダイナミックルーティングがある。   In a mesh network using radio, a method of using a relay node has been considered in order to deliver data to a communication node that does not directly receive radio waves (for example, Patent Document 1). Patent Document 1 is a communication system that uses a relay node when delivering data to an unspecified number of communication nodes, such as broadcast waves, but a communication system that uses a relay node when delivering data to a specific communication node. Is also considered. In such a communication system, there is dynamic routing as a typical method for determining a relay node.

このダイナミックルーティングでは、通信を開始する前に、目的の通信ノードまで無線でつながっている通信ノードを調査することで、通信ルートを決定する。この方法は、通信の直前に通信可能な通信ノードを確認するため、通信環境の変化に対応可能であるが、通信のたびに、ネットワーク全体の最適ルートを計算して求めるため、通信開始前の時間が非常に大きく、データが目的の通信ノードに届くのに時間がかかる、という問題があった。   In this dynamic routing, before starting communication, a communication route is determined by investigating a communication node connected wirelessly to a target communication node. This method can cope with changes in the communication environment because it checks the communication nodes that can communicate immediately before communication, but it calculates and determines the optimal route for the entire network each time communication is performed. There is a problem that the time is very large and it takes time for the data to reach the target communication node.

特開平8−8876号公報JP-A-8-8876

そこで、本発明は、目的ノードまで迅速にデータを送信することができる通信システム及び当該通信システムを構成する通信ノードを提供することを課題とする。   Therefore, an object of the present invention is to provide a communication system that can quickly transmit data to a target node and a communication node that constitutes the communication system.

上述した課題を解決するための請求項1記載の発明は、無線通信可能な通信ノードを複数有して無線メッシュネットワークを構成する通信システムにおいて、前記複数の通信ノードの各々が、データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、受信通知を送信する受信通知手段と、自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、電波が検出されていない状態が所定時間継続した後、バックオフ時間経過するのを待って再び電波を検出しなかったときに送信を行う通信衝突回避手段と、自ノード宛でない前記代理通信データを受信した後、前記受信通知を受信し、かつ、前記受信した代理通信データと同じものを前記第1代理通信手段が送信しようとしている場合、前記バックオフ時間を延長するバックオフ時間延長手段と、自ノード宛でない前記代理通信完了通知を受信すると、前記第1代理通信手段による前記代理通信データの送信を停止する送信停止手段と、を備え、前記受信通知手段は、前記自ノード宛の直接通信データ及び前記代理通信データを受信したとき、前記受信通知を送信することを特徴とする通信システムに存する。 The invention according to claim 1 for solving the above-described problem is a communication system having a plurality of communication nodes capable of wireless communication and constituting a wireless mesh network, wherein each of the plurality of communication nodes is a data transmission request. Occurs, direct communication means for transmitting direct communication data including the data, addressed to the target node, and originating from the node where the data transmission request is generated, a reception notification means for transmitting a reception notification, and the own node If the direct communication data that is not addressed is received, and then the reception notification cannot be received, the data included in the direct communication data and the direct communication data addressed to the target node including the transmission source of the direct communication data A first proxy communication means for transmitting proxy communication data; and the direct communication upon receiving the reception notification after transmitting the proxy communication data. The first proxy communication completion notification means for transmitting the proxy communication completion notification addressed to the data transmission source, and after detecting the radio wave again after waiting for the back-off time to elapse after the radio wave is not detected for a predetermined time. A communication collision avoiding means for transmitting when there is not, and after receiving the proxy communication data not addressed to the own node, the reception notification is received, and the same proxy communication data as the received proxy communication data is received in the first proxy communication When the means is about to transmit, upon receiving the back-off time extending means for extending the back-off time and the proxy communication completion notification not addressed to its own node, the transmission of the proxy communication data by the first proxy communication means is stopped. Transmission stop means, and when the reception notification means receives the direct communication data addressed to the own node and the proxy communication data, the reception notification means It resides in a communication system, characterized by Shin.

請求項2記載の発明は、無線通信可能な通信ノードを複数有して無線メッシュネットワークを構成する通信システムにおいて、前記複数の通信ノードの各々が、データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、受信通知を送信する受信通知手段と、自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、自ノード宛でない前記代理通信データを受信し、その後、前記受信通知を受信できなかった場合、前記代理通信データの送信先を送信先とする前記代理通信データを送信する第2代理通信手段と、自ノード宛でない前記代理通信完了通知を受信し、その後、前記受信通知を受信できなかった場合、前記代理通信完了通知の送信先を送信先とする代理通信完了通知を送信する第2代理通信完了通知手段と、を備え、前記受信通知手段は、前記自ノード宛の直接通信データ、前記代理通信データ及び前記代理通信完了通知を受信したとき、前記受信通知を送信することを特徴とする通信システムに存する。 The invention according to claim 2 is a communication system comprising a plurality of communication nodes capable of wireless communication and constituting a wireless mesh network, and each of the plurality of communication nodes includes the data when a data transmission request is generated. Direct communication means for transmitting direct communication data addressed to the target node and originating from the node where the data transmission request occurs, reception notification means for transmitting a reception notification, and receiving the direct communication data not addressed to the own node Then, when the reception notification is not received, the proxy communication data addressed to the target node of the direct communication data including the data included in the direct communication data and the transmission source of the direct communication data is transmitted. When the reception notification is received after transmitting the proxy communication data with the proxy communication means, the proxy communication addressed to the transmission source of the direct communication data A first proxy communication completion notification means for transmitting completion notification, receives the proxy communication data is not addressed to the own node, then, if it can not receive the reception notification, as a transmission destination the destination of the proxy communication data a second proxy communication unit configured to transmit the proxy communication data, receiving the proxy communication completion notification is not addressed to the own node, then, if unable to receive the reception notification, the destination the destination of the proxy communication completion notice A second proxy communication completion notification means for transmitting the proxy communication completion notification, wherein the reception notification means receives the direct communication data addressed to the own node, the proxy communication data, and the proxy communication completion notification. The communication system is characterized by transmitting the reception notification.

請求項3記載の発明は、前記第1代理通信手段及び前記第2代理通信手段が、前記代理通信データの中継ノードを表す代理通信リストに自ノードを加えた前記代理通信データを送信し、前記第1代理通信完了通知手段が、前記送信した代理通信データの代理通信リストから自ノードの前に代理通信データを送信したノードを求めて、求めたノードを中継先ノードとした前記代理通信完了通知を送信し、前記第2代理通信完了通知手段が、中継先ノードが自ノードである前記代理通信完了通知を受信したとき、前記受信した前記代理通信完了通知の代理通信リストから自ノードの前に代理通信データを送信したノードを求めて、求めたノードを中継先ノードとした前記代理通信完了通知を送信し、中継先ノードが自ノードでない前記代理通信完了通知を受信したとき、前記中継先ノードからの前記代理通信完了通知の受信通知を受信すると、代理通信完了通知の送信を停止することを特徴とする請求項に記載の通信システムに存する。 According to a third aspect of the present invention, the first proxy communication unit and the second proxy communication unit transmit the proxy communication data obtained by adding the own node to a proxy communication list representing a relay node of the proxy communication data, and The first proxy communication completion notification means obtains a node that has transmitted proxy communication data before its own node from the proxy communication list of the transmitted proxy communication data, and the proxy communication completion notification with the obtained node as a relay destination node When the second proxy communication completion notification means receives the proxy communication completion notification whose relay destination node is its own node, the second proxy communication completion notification means before the local node from the proxy communication list of the received proxy communication completion notification The proxy communication completion notification is transmitted to the node that has transmitted the proxy communication data, and the proxy communication completion notification is transmitted with the determined node as the relay destination node. When receiving the notification, upon receiving the reception notification of the proxy communication completion notification from the relay destination node resides in the communication system according to claim 2, characterized in that stops the transmission of the proxy communication completion notification.

請求項4記載の発明は、無線メッシュネットワークを構成する通信ノードにおいて、データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、受信通知を送信する受信通知手段と、自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、電波が検出されていない状態が所定時間継続した後、バックオフ時間経過するのを待って再び電波を検出しなかったときに送信を行う通信衝突回避手段と、自ノード宛でない前記代理通信データを受信した後、前記受信通知を受信し、かつ、前記受信した代理通信データと同じものを前記第1代理通信手段が送信しようとしている場合、前記バックオフ時間を延長するバックオフ時間延長手段と、自ノード宛でない前記代理通信完了通知を受信すると、前記第1代理通信手段による前記代理通信データの送信を停止する送信停止手段と、を備え、前記受信通知手段は、前記自ノード宛の直接通信データ及び前記代理通信データを受信したとき、前記受信通知を送信することを特徴とする通信ノードに存する。 According to a fourth aspect of the present invention, when a data transmission request is generated in a communication node that constitutes a wireless mesh network, the data is directly included in the destination node and the node where the data transmission request is generated. Included in the direct communication data if the direct communication means for transmitting communication data, the reception notification means for transmitting a reception notification, and the direct communication data that is not addressed to its own node are received and then the reception notification cannot be received. A first proxy communication means for transmitting proxy communication data addressed to a target node of the direct communication data including the data to be transmitted and a source of the direct communication data, and receiving the reception notification after transmitting the proxy communication data A first proxy communication completion notification means for transmitting a proxy communication completion notification addressed to the transmission source of the direct communication data, and no radio wave is detected A communication collision avoidance means for transmitting when the radio wave is not detected again after waiting for the back-off time to elapse after the state continues for a predetermined time; and after receiving the proxy communication data not addressed to the own node, the reception When the notification is received and the first proxy communication means is to transmit the same proxy communication data as received, the back-off time extending means for extending the back-off time and the proxy not addressed to the own node A transmission stop unit that stops transmission of the proxy communication data by the first proxy communication unit when receiving a communication completion notification, the reception notification unit including the direct communication data addressed to the own node and the proxy communication data In the communication node, the reception notification is transmitted when the message is received.

請求項5記載の発明は、無線メッシュネットワークを構成する通信ノードにおいて、データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、受信通知を送信する受信通知手段と、自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、自ノード宛でない前記代理通信データを受信し、その後、前記受信通知を受信できなかった場合、前記代理通信データの送信先を送信先とする前記代理通信データを送信する第2代理通信手段と、自ノード宛でない前記代理通信完了通知を受信し、その後、前記受信通知を受信できなかった場合、前記代理通信完了通知の送信先を送信先とする代理通信完了通知を送信する第2代理通信完了通知手段と、を備え、前記受信通知手段は、前記自ノード宛の直接通信データ、前記代理通信データ及び前記代理通信完了通知を受信したとき、前記受信通知を送信することを特徴とする通信ノードに存する。 According to the fifth aspect of the present invention, when a data transmission request is generated in a communication node constituting a wireless mesh network, the communication node directly includes the data and is directed to the destination node and the node where the data transmission request is generated. Included in the direct communication data if the direct communication means for transmitting communication data, the reception notification means for transmitting a reception notification, and the direct communication data that is not addressed to its own node are received and then the reception notification cannot be received. A first proxy communication means for transmitting proxy communication data addressed to a target node of the direct communication data including the data to be transmitted and a source of the direct communication data, and receiving the reception notification after transmitting the proxy communication data A first proxy communication completion notification means for transmitting a proxy communication completion notification addressed to the transmission source of the direct communication data, and the proxy not addressed to the own node. Receiving communication data, then, if unable to receive the reception notification, and the second proxy communication unit configured to transmit the proxy communication data of which destination is the destination of the proxy communication data, not addressed to the own node the proxy A second proxy communication completion notification means for transmitting a proxy communication completion notification whose destination is the transmission destination of the proxy communication completion notification when the communication completion notification is received and then the reception notification cannot be received. The reception notification means resides in a communication node that transmits the reception notification when receiving the direct communication data addressed to the own node, the proxy communication data, and the proxy communication completion notification.

以上説明したように請求項1、2及び4、5記載の発明によれば、目的ノードにデータを送信しながら中継経路が決定されるので、事前に経路を決定する必要がなく、目的ノードまで迅速にデータを送信することができる。 As described above, according to the first , second, fourth, and fifth aspects of the present invention, the relay route is determined while transmitting data to the target node. Data can be sent quickly.

請求項記載の発明によれば、自ノード宛でない代理通信データを受信した後、受信通知を受信し、かつ、受信した代理通信データと同じものを第1代理通信手段が送信しようとしている場合、バックオフ時間が延長されるため、代理通信データの送信よりも、代理通信完了通知が優先的に送信される。そして、自ノード宛でない代理通信完了通知を受信すれば、代理通信を行う必要がないので、代理通信データの送信が停止される。これにより、無駄に代理通信データが送信されることなく、より一層、迅速にデータ通信を行うことができる。また、通信障害などで、代理通信データを送信したノードが、目的ノードからの受信通知を受信できず、延長したバックオフ時間が経過しても、代理通信完了通知が送信されない場合は、他のノードから代理通信データ、代理通信完了通知を送信することができる。しかも、代理通信データを送信したノードから代理通信完了通知が受信できなかった場合、他のノードから直ちに代理完了通知が送信されることなく、一旦、代理通信データが送信されてから受信通知を受けた後に代理完了通知を送信することにより、複数の他のノードが代理通信完了通知を送信しようとする状態になることを防ぐことができる。 According to the first aspect of the present invention, after receiving proxy communication data not addressed to the own node, receiving a reception notification, and the first proxy communication means trying to transmit the same proxy communication data as received Since the back-off time is extended, the proxy communication completion notification is transmitted with priority over the proxy communication data. If a proxy communication completion notification that is not addressed to the own node is received, it is not necessary to perform proxy communication, and transmission of proxy communication data is stopped. Thereby, it is possible to perform data communication even more quickly without wastefully transmitting proxy communication data. In addition, if the node that sent the proxy communication data cannot receive the reception notification from the target node due to a communication failure, etc., and if the proxy communication completion notification is not sent even after the extended backoff time has passed, Proxy communication data and proxy communication completion notification can be transmitted from the node. In addition, if the proxy communication completion notification cannot be received from the node that transmitted the proxy communication data, the proxy completion notification is not immediately transmitted from the other nodes, and the reception notification is received after the proxy communication data is once transmitted. By transmitting the proxy completion notification after this, it is possible to prevent a plurality of other nodes from entering a state of attempting to transmit the proxy communication completion notification.

請求項記載の発明によれば、代理通信データや代理通信完了通知も複数のノードを中継して送信できるようになる。 According to the second aspect of the present invention, the proxy communication data and the proxy communication completion notification can also be transmitted through a plurality of nodes.

請求項記載の発明によれば、代理通信データを送信するときと、代理通信完了通知を返信するときとで、通信状態が変わらなければ、代理通信データの中継先ノードを中継して、代理通信完了通知を送信元のノードに送信することができ、代理通信データの中継先ノードでないノードから代理通信完了通知が送信されることがない。また、代理通信データを送信した後、代理通信データの経路上でなんらかの障害が発生したときは、受信通知を受信できないため、中継先ノードでないノードを中継して代理通信完了通知を送信することができる。 According to the third aspect of the present invention, if the communication state does not change between when proxy communication data is transmitted and when a proxy communication completion notification is returned, the proxy communication data is relayed via the relay destination node. The communication completion notification can be transmitted to the transmission source node, and the proxy communication completion notification is not transmitted from a node that is not the relay communication node of the proxy communication data. In addition, after sending proxy communication data, if any failure occurs on the route of proxy communication data, since reception notification cannot be received, proxy communication completion notification may be sent by relaying a node that is not a relay destination node. it can.

第1実施形態における本発明の通信システムを示す構成図である。It is a block diagram which shows the communication system of this invention in 1st Embodiment. 第1実施形態における直接通信データ、代理通信データ、代理通信完了通知のフレーム構成を示す図である。It is a figure which shows the frame structure of the direct communication data in 1st Embodiment, proxy communication data, and a proxy communication completion notification. 第1実施形態における図1に示す通信ノードの構成を示すブロック図である。It is a block diagram which shows the structure of the communication node shown in FIG. 1 in 1st Embodiment. 図3に示すマイコンの送信処理手順を示すフローチャートである。It is a flowchart which shows the transmission processing procedure of the microcomputer shown in FIG. 第1実施形態における図3に示すマイコンの受信処理手順を示すフローチャートである。It is a flowchart which shows the reception processing procedure of the microcomputer shown in FIG. 3 in 1st Embodiment. 図1に示す通信システムの動作を説明するためのシーケンス図である。It is a sequence diagram for demonstrating operation | movement of the communication system shown in FIG. 図1に示す通信システムの動作を説明するためのシーケンス図である。It is a sequence diagram for demonstrating operation | movement of the communication system shown in FIG. 図1に示す通信システムの動作を説明するためのシーケンス図である。It is a sequence diagram for demonstrating operation | movement of the communication system shown in FIG. 第2実施形態における直接通信データ、代理通信データ及び代理通信完了通知を受信したときの各ノードの動作をまとめた図である。It is the figure which put together the operation | movement of each node when the direct communication data in 2nd Embodiment, proxy communication data, and proxy communication completion notification were received. 第2実施形態における通信ノードの構成を示すブロック図である。It is a block diagram which shows the structure of the communication node in 2nd Embodiment. 第2実施形態における図3に示すマイコンの受信処理手順を示すフローチャートである。It is a flowchart which shows the reception processing procedure of the microcomputer shown in FIG. 3 in 2nd Embodiment. 第2実施形態における図3に示すマイコンのタイマー処理手順を示すフローチャートである。It is a flowchart which shows the timer processing procedure of the microcomputer shown in FIG. 3 in 2nd Embodiment. 第2実施形態における本発明の通信システムを示す構成図である。It is a block diagram which shows the communication system of this invention in 2nd Embodiment. 図12に示す通信システムの動作を説明するためのシーケンス図である。FIG. 13 is a sequence diagram for explaining the operation of the communication system shown in FIG. 12. 第3実施形態における本発明の通信システムを示す構成図である。It is a block diagram which shows the communication system of this invention in 3rd Embodiment. 第3実施形態における直接通信データ、代理通信データ、代理通信完了通知のフレーム構成を示す図である。It is a figure which shows the frame structure of the direct communication data in 3rd Embodiment, proxy communication data, and proxy communication completion notification. 第3実施形態における通信ノードの構成を示すブロック図である。It is a block diagram which shows the structure of the communication node in 3rd Embodiment. 第3実施形態における図3に示すマイコンの受信処理手順を示すフローチャートである。It is a flowchart which shows the reception processing procedure of the microcomputer shown in FIG. 3 in 3rd Embodiment. 図15に示す通信システムの動作を説明するためのシーケンス図である。FIG. 16 is a sequence diagram for explaining the operation of the communication system shown in FIG. 15.

第1実施形態
以下、本発明の通信システムを図1乃至図8を参照して説明する。本発明の通信システム1は、図1に示すように、複数の通信ノード20(ノードA、ノードB、ノードC、ノードD)を有して構成され、これらのノードA〜Dは無線メッシュネットワークを構成している。
First Embodiment Hereinafter, a communication system according to the present invention will be described with reference to FIGS. As shown in FIG. 1, the communication system 1 according to the present invention includes a plurality of communication nodes 20 (node A, node B, node C, and node D), and these nodes A to D are wireless mesh networks. Is configured.

図1に示した通信システム1において、ノードAはノードB、Cと相互に無線通信可能に配置されている。ノードBはノードA、C、Dと相互に無線通信可能に配置されている。ノードCはノードA、B、Dと相互に無線通信可能に配置されている。ノードDはノードB、Cと相互に無線通信可能に配置されている。   In the communication system 1 shown in FIG. 1, the node A is arranged so as to be able to wirelessly communicate with the nodes B and C. Node B is arranged to be able to communicate with nodes A, C, and D by radio. Node C is arranged so as to be able to communicate with nodes A, B, and D in a wireless manner. The node D is arranged so as to be able to wirelessly communicate with the nodes B and C.

これらノードA〜Dは、直接通信データ、ACK(=受信通知)/NCK、代理通信データ、代理通信完了通知などの信号の授受を行っている。直接通信データは、データの送信要求があったノードA〜Dから送信される。ACKは、自ノード宛の直接通信、代理通信データ又は代理通信完了通知を正常に受信したノードA〜Dから送信される。NCKは、自ノード宛の直接通信、代理通信データ又は代理通信完了通知を正常に受信できなかったノードA〜Dから送信される。   These nodes A to D exchange signals such as direct communication data, ACK (= reception notification) / NCK, proxy communication data, and proxy communication completion notification. The direct communication data is transmitted from the nodes A to D that have requested transmission of data. The ACK is transmitted from the nodes A to D that have normally received direct communication addressed to the own node, proxy communication data, or proxy communication completion notification. The NCK is transmitted from the nodes A to D that could not normally receive direct communication, proxy communication data, or proxy communication completion notification addressed to the own node.

代理通信データは、自ノード宛でない直接通信データを受信し、その後、所定時間以内にACKを受信できない、または、NCKを受信したノードA〜Dから送信される。代理通信データには、受信した自ノード宛でない直接通信データ内のデータが含まれる。代理通信完了通知は、代理通信データを送信した後に、ACKを受信したノードA〜Dから送信される。   The proxy communication data is transmitted from the nodes A to D that receive direct communication data not addressed to the own node and cannot receive ACK within a predetermined time or receive NCK. The proxy communication data includes data in the received direct communication data that is not addressed to the own node. The proxy communication completion notification is transmitted from the nodes A to D that have received the ACK after transmitting the proxy communication data.

上記直接通信データ、代理通信データ、代理通信完了通知のフレーム構成は、図2に示すようになっている。この送信元アドレスAs2には、データ送信要求が発生したノードのアドレスが格納され、送信先アドレスAr2には、テータ送信の目的ノードのアドレスが格納される。送信元アドレスAs1及び送信先アドレスAr1は、実際の通信の送信元、送信先ノードのアドレスが格納される。   The frame configuration of the direct communication data, proxy communication data, and proxy communication completion notification is as shown in FIG. The source address As2 stores the address of the node where the data transmission request has occurred, and the destination address Ar2 stores the address of the target node for data transmission. The transmission source address As1 and the transmission destination address Ar1 store the addresses of the actual transmission source and transmission destination nodes.

即ち、直接通信データにおいては、送信元アドレスAs1にはデータ送信要求が発生したノードのアドレスが格納され、送信先アドレスAr1には目的ノードのアドレスが格納される。また、代理通信データにおいては、送信元アドレスAs1には代理通信データの送信ノードのアドレスが格納され、送信先アドレスAr1には目的ノードのアドレスが格納される。代理通信完了通知においては、送信元アドレスAs1には代理通信完了通知の送信ノードのアドレスが格納され、送信先アドレスAr1にはデータ送信要求が発生したノードのアドレスが格納される。   That is, in the direct communication data, the address of the node where the data transmission request is generated is stored in the transmission source address As1, and the address of the target node is stored in the transmission destination address Ar1. In the proxy communication data, the transmission source address As1 stores the address of the transmission node of the proxy communication data, and the transmission destination address Ar1 stores the address of the target node. In the proxy communication completion notification, the transmission source address As1 stores the address of the transmission node of the proxy communication completion notification, and the transmission destination address Ar1 stores the address of the node where the data transmission request has occurred.

また、通信種別Sには、直接通信データである旨を示す直接通信マーカー、代理通信データである旨を示す代理通信マーカー、代理通信完了通知である旨を示す代理通信完了通知マーカーが格納される。データDには、アプリケーションから発生したデータが格納される。エラーチェックコードには、CRCコードなど通信フレームの正常を確認するためのチェックコードが格納される。   The communication type S stores a direct communication marker indicating direct communication data, a proxy communication marker indicating proxy communication data, and a proxy communication completion notification marker indicating proxy communication completion notification. . Data D stores data generated from the application. The error check code stores a check code such as a CRC code for confirming the normality of the communication frame.

次に、上記通信ノード20の構成について図3を参照して以下説明する。同図に示すように、通信ノード20は、他の通信ノード20と無線通信を行うためのアンテナATと、直接通信バッファ21と、代理通信バッファ22と、代理通信完了通知バッファ23と、通信ノード20全体の制御を司るマイクロコンピュータ(以下マイコン)24と、を備えている。   Next, the configuration of the communication node 20 will be described below with reference to FIG. As shown in the figure, the communication node 20 includes an antenna AT for performing wireless communication with another communication node 20, a direct communication buffer 21, a proxy communication buffer 22, a proxy communication completion notification buffer 23, a communication node 20 and a microcomputer (hereinafter referred to as a microcomputer) 24 for controlling the entire system.

直接通信バッファ21は、直接通信データが一時的に格納されるバッファである。代理通信バッファ22は、代理通信データが一時的に格納されるバッファである。代理通信完了通知バッファ23は、代理通信完了通知が一時的に格納されるバッファである。   The direct communication buffer 21 is a buffer in which direct communication data is temporarily stored. The proxy communication buffer 22 is a buffer in which proxy communication data is temporarily stored. The proxy communication completion notification buffer 23 is a buffer in which proxy communication completion notification is temporarily stored.

マイコン24は、例えばRAM(Randam Access Memory)やROM(Read Only Memory)などのメモリを備えたCPU(Central Processing Unit)で構成されている。マイコン24は、通信ユニット24Aと、インタフェース(以下I/F)24Bと、直接通信データ作成機能24Cと、宛先判別機能24Dと、通信種別判別機能24Eと、代理通信データ作成機能24Fと、代理通信完了通知作成機能24Gと、バッファ確認機能24Hと、送信要求機能24Iと、ACK有無確認機能24Jと、バックオフ延長機能24Kなどを備えている。   The microcomputer 24 is configured by a CPU (Central Processing Unit) having a memory such as a RAM (Randam Access Memory) and a ROM (Read Only Memory). The microcomputer 24 includes a communication unit 24A, an interface (hereinafter referred to as I / F) 24B, a direct communication data creation function 24C, a destination determination function 24D, a communication type determination function 24E, a proxy communication data generation function 24F, and proxy communication. A completion notification creation function 24G, a buffer confirmation function 24H, a transmission request function 24I, an ACK presence / absence confirmation function 24J, and a backoff extension function 24K are provided.

上記通信ユニット24Aは、アンテナATを制御して、信号の送受信を行う。I/F24Bは、アプリケーションと接続するためのインタフェースである。直接通信データ作成機能24Cは、アプリケーションからデータの送信要求が発生すると、データを含んだ直接通信データを作成して直接通信バッファ21に格納する。   The communication unit 24A controls the antenna AT to transmit and receive signals. The I / F 24B is an interface for connecting to an application. When a data transmission request is generated from an application, the direct communication data creation function 24C creates direct communication data including the data and stores it directly in the communication buffer 21.

宛先判別機能24Dは、アンテナATが受信した信号の宛先を判別する。通信種別判別機能24Eは、アンテナATが受信した信号の種別を判別する。通信種別判別機能24Eは、具体的には、受信した信号が直接通信データであるか、代理通信データであるか、通信完了通知であるか、ACKであるか、NCKであるかを判別する。   The destination discriminating function 24D discriminates the destination of the signal received by the antenna AT. The communication type determination function 24E determines the type of signal received by the antenna AT. Specifically, the communication type determination function 24E determines whether the received signal is direct communication data, proxy communication data, communication completion notification, ACK, or NCK.

代理通信データ作成機能24Fは、自ノード宛でない直接通信データを受信し、その後、ACKを受信できなかった場合(即ち所定時間以内にACKを受信できないか、NCKを受信した場合)、受信した直接通信データに含まれるデータを含んだ代理通信データを代理通信バッファ22に格納する。   The proxy communication data creation function 24F receives direct communication data not addressed to its own node, and then receives the direct communication data when it cannot receive the ACK (that is, it cannot receive the ACK within a predetermined time or receives the NCK). Proxy communication data including data included in the communication data is stored in the proxy communication buffer 22.

代理通信完了通知作成機能24Gは、代理通信データを送信した後に、ACKを受信すると、代理通信完了通知を作成して、代理通信完了通知バッファ23に格納する。バッファ確認機能24Hは、各バッファ21〜23の状態を確認し、それぞれに直接又は代理通信データや代理通信完了通知が格納されているか否かを判別する。送信要求機能24Iは、バッファ確認機能24Hにより格納されていると判別されたバッファ21〜23内の直接又は代理通信データや通信完了通知の送信要求を通信ユニット24Aに送って、無線送信させる。   When the proxy communication completion notification creation function 24G receives the ACK after transmitting the proxy communication data, the proxy communication completion notification creation function 24G creates a proxy communication completion notification and stores it in the proxy communication completion notification buffer 23. The buffer confirmation function 24H confirms the state of each of the buffers 21 to 23, and determines whether or not proxy communication data or a proxy communication completion notification is stored in each buffer. The transmission request function 24I sends a transmission request for direct or proxy communication data or communication completion notification in the buffers 21 to 23 determined to be stored by the buffer confirmation function 24H to the communication unit 24A for wireless transmission.

上記通信ユニット24Aは、通信衝突回避手段としての通信衝突回避機能24A1を有している。通信衝突回避機能24A1は、所謂CSMA/CA処理を行っており、各ノードA〜Dの通信が衝突しないように、送信要求機能24Iから送信要求があったときにすぐに、送信しないで、電波が検出されていない状態が所定時間継続するのを待つ。さらに、通信衝突回避機能24A1は、バックオフ時間経過するまでの間に電波を検出しなかったときに始めて送信を行う。バックオフ時間はランダムな時間に設定されている。ただし、ACKを送るときのバックオフ時間は最小(例えば0)に設定され、優先的に送信できるようになっている。また、直接通信データを再送するときのバックオフ時間は最大に設定され、優先度が最も低くなっている。   The communication unit 24A has a communication collision avoidance function 24A1 as communication collision avoidance means. The communication collision avoidance function 24A1 performs so-called CSMA / CA processing, and does not transmit immediately when there is a transmission request from the transmission request function 24I so that communication between the nodes A to D does not collide. It waits for a predetermined period of time in which no is detected. Further, the communication collision avoidance function 24A1 performs transmission only when no radio wave is detected before the back-off time elapses. The backoff time is set to a random time. However, the back-off time when sending an ACK is set to a minimum (for example, 0) so that it can be transmitted preferentially. Further, the back-off time when directly retransmitting the communication data is set to the maximum, and the priority is the lowest.

AKC有無確認機能24Jは、自ノード宛でない代理通信データを受信した後、ACKを受信したか否かを確認する。バックオフ延長機能24Kは、AKC有無確認機能24Jにより、ACKを受信し、かつ、その自ノード宛でない代理通信データと同じ代理通信データを代理通信バッファ22に保有している場合、バックオフ時間を延長する。   The AKC presence / absence confirmation function 24J confirms whether or not an ACK has been received after receiving proxy communication data not addressed to its own node. When the backoff extension function 24K receives the ACK by the AKC presence / absence confirmation function 24J and has the same proxy communication data as the proxy communication data not addressed to the own node in the proxy communication buffer 22, the backoff extension function 24K sets the backoff time. Extend.

次に、上述した通信システム1の動作について図4を参照して以下説明する。マイコン24は、電源オンに応じて図4に示す送信処理を実行する。送信処理において、マイコン24は、まずアプリケーションからデータ送信要求があるか否かを判別する(ステップS1)。データ送信要求がある場合(ステップS1でY)、マイコン24は、アプリケーションからデータを取り込み、直接通信バッファ21のデータD(図2参照)に格納する(ステップS2)。   Next, operation | movement of the communication system 1 mentioned above is demonstrated below with reference to FIG. The microcomputer 24 executes the transmission process shown in FIG. 4 in response to power-on. In the transmission process, the microcomputer 24 first determines whether or not there is a data transmission request from the application (step S1). If there is a data transmission request (Y in step S1), the microcomputer 24 takes in data from the application and stores it directly in the data D (see FIG. 2) of the communication buffer 21 (step S2).

また、マイコン24は、直接通信バッファ21の送信元アドレスAs1及びAs2に、自ノードのアドレスを、送信先アドレスAr1及びAr2に、目的モードのアドレスを、通信種別Sに直接通信マーカーを格納する(ステップS3)。これにより直接通信バッファ21には、図2に示すフレーム構成の直接通信データが格納される。   Further, the microcomputer 24 stores the address of its own node in the transmission source addresses As1 and As2 of the direct communication buffer 21, the address of the target mode in the transmission destination addresses Ar1 and Ar2, and the direct communication marker in the communication type S ( Step S3). As a result, the direct communication buffer 21 stores the direct communication data having the frame configuration shown in FIG.

その後、マイコン24は、直接通信手段として働き、直接通信バッファ21に格納された直接通信データの送信を行う(ステップS4)。その後、マイコン24は、所定時間以内にACKを受信すると(ステップS5でY)、通信成功と判断して、直接通信バッファ21をクリアにした後(ステップS8)、再びステップS1に戻る。これに対して、マイコン24は、所定時間以内にACKを受信できない、または、NCKを受信すると(ステップS5でN)、再送カウンタをカウントアップする(ステップS6)。その後、マイコン24は、再送カウンタが所定回数以下であれば(ステップS7でN)、直ちにステップS1に戻る。   Thereafter, the microcomputer 24 functions as a direct communication means and transmits the direct communication data stored in the direct communication buffer 21 (step S4). Thereafter, when the microcomputer 24 receives an ACK within a predetermined time (Y in step S5), the microcomputer 24 determines that the communication is successful, directly clears the communication buffer 21 (step S8), and then returns to step S1 again. In contrast, when the microcomputer 24 cannot receive ACK within a predetermined time or receives NCK (N in step S5), the microcomputer 24 counts up a retransmission counter (step S6). Thereafter, if the retransmission counter is equal to or smaller than the predetermined number of times (N in Step S7), the microcomputer 24 immediately returns to Step S1.

直接通信バッファ21をクリアせずにステップS1に戻ると、直接通信バッファ21には直接通信データが格納された状態である。よって、マイコン24は、直接通信バッファ21に直接通信データが格納された状態であると判別して(ステップS9でY)、ステップS4に進む。このステップS4により、直接通信データが再送される。このステップS4〜S6を繰り返した結果、再送カウンタが所定回数を超えると(ステップS7でY)、マイコン24は、通信失敗として直接通信バッファ21をクリアして(ステップS8)、ステップS1に戻る。   If the process returns to step S1 without clearing the direct communication buffer 21, direct communication data is stored in the direct communication buffer 21. Therefore, the microcomputer 24 determines that the direct communication data is stored in the direct communication buffer 21 (Y in step S9), and proceeds to step S4. By this step S4, the direct communication data is retransmitted. As a result of repeating steps S4 to S6, when the retransmission counter exceeds the predetermined number (Y in step S7), the microcomputer 24 directly clears the communication buffer 21 as a communication failure (step S8), and returns to step S1.

また、マイコン24は、代理通信バッファ22に代理通信データが格納されていると(ステップS10でY)、第1代理通信手段として働き、その代理通信データの送信を行う(ステップS11)。マイコン24は、所定時間以内にACKを受信できない、又は、NCKを受信すると(ステップS12でN)、通信失敗と判断して代理通信バッファ22をクリアして(ステップS13)、ステップS1に戻る。   Further, when the proxy communication data is stored in the proxy communication buffer 22 (Y in Step S10), the microcomputer 24 functions as a first proxy communication means and transmits the proxy communication data (Step S11). If the microcomputer 24 cannot receive ACK within a predetermined time or receives NCK (N in step S12), the microcomputer 24 determines that communication has failed, clears the proxy communication buffer 22 (step S13), and returns to step S1.

これに対して、マイコン24は、所定時間以内にACKを受信すると(ステップS12でY)、代理通信完了通知バッファ23に代理通信完了通知を格納する(ステップS14)。   On the other hand, when receiving an ACK within a predetermined time (Y in step S12), the microcomputer 24 stores a proxy communication completion notification in the proxy communication completion notification buffer 23 (step S14).

ステップS14においてマイコン24は、詳しくは、代理通信完了通知バッファ23の送信元アドレスAs1に自ノードのアドレス、送信先アドレスAr1及び送信元アドレスAs2に代理通信データの送信元アドレスAs2(=データ送信要求ノードのアドレス)、送信先アドレスAr2に代理通信データの送信先アドレスAr2(=目的ノード)のアドレスを格納し、通信種別Sに代理通信完了通知マーカー、データDに代理通信データのデータDを格納する。これにより代理通信完了通知バッファ23には、図2に示すフレーム構成の代理通信完了通知が格納される。   Specifically, in step S14, the microcomputer 24 sends the address of its own node to the source address As1 of the proxy communication completion notification buffer 23, the source address As2 of proxy communication data to the destination address Ar1 and the source address As2 (= data transmission request). Node address), the address of the proxy communication data destination address Ar2 (= target node) is stored in the destination address Ar2, the proxy communication completion notification marker is stored in the communication type S, and the data D of the proxy communication data is stored in the data D To do. As a result, the proxy communication completion notification buffer 23 stores the proxy communication completion notification having the frame configuration shown in FIG.

ステップS1に戻ったときに、代理通信完了通知バッファ23に代理通信完了通知が格納されていると(ステップS15でY)、マイコン24は、第1代理通信完了通知手段として働き、代理通信完了通知バッファ23に格納された代理通信完了通知を送信する(ステップS16)。その後、マイコン24は、所定時間以内にACKを受信すると(ステップS17でY)、通信成功と判断して、代理通信バッファ22、代理通信完了通知バッファ23をクリアにして(ステップS20)、ステップS1に戻る。   If the proxy communication completion notification is stored in the proxy communication completion notification buffer 23 when returning to step S1 (Y in step S15), the microcomputer 24 functions as a first proxy communication completion notification means, and performs proxy communication completion notification. The proxy communication completion notification stored in the buffer 23 is transmitted (step S16). After that, when receiving an ACK within a predetermined time (Y in Step S17), the microcomputer 24 determines that the communication is successful, clears the proxy communication buffer 22 and the proxy communication completion notification buffer 23 (Step S20), and performs Step S1. Return to.

一方、マイコン24は、所定時間以内にACKを受信できない、または、NCKを受信すると(ステップS17でN)、再送カウンタをカウントアップする(ステップS18)。その後、マイコン24は、再送カウンタが所定回数以下であれば(ステップS19でN)、直ちにステップS1に戻る。   On the other hand, when the microcomputer 24 cannot receive ACK within a predetermined time or receives NCK (N in step S17), the microcomputer 24 increments the retransmission counter (step S18). Thereafter, if the retransmission counter is equal to or smaller than the predetermined number of times (N in Step S19), the microcomputer 24 immediately returns to Step S1.

代理通信完了通知バッファ23がクリアせずにステップS1に戻ると、代理通信完了通知バッファ23には直接通信データが格納された状態である。よって、マイコン24は、代理通信完了通知バッファ23に代理通信完了通知が格納された状態であると判別して(ステップS15でY)、ステップS16に進む。このステップS16により、代理通信完了通知が再送される。このステップS16〜S18を繰り返した結果、再送カウンタが所定回数を超えると(ステップS19でY)、マイコン24は、通信失敗として代理通信バッファ22、代理通信完了通知バッファ23をクリアして(ステップS20)、ステップS1に戻る。   If the proxy communication completion notification buffer 23 is not cleared and the process returns to step S1, the proxy communication completion notification buffer 23 is in a state where communication data is stored directly. Therefore, the microcomputer 24 determines that the proxy communication completion notification is stored in the proxy communication completion notification buffer 23 (Y in step S15), and proceeds to step S16. By this step S16, the proxy communication completion notification is retransmitted. As a result of repeating steps S16 to S18, if the retransmission counter exceeds a predetermined number (Y in step S19), the microcomputer 24 clears the proxy communication buffer 22 and the proxy communication completion notification buffer 23 as communication failure (step S20). ), The process returns to step S1.

また、マイコン24は、上記送信処理と並列に受信処理を行っている。次に、マイコン24の受信処理について、図5を参照して説明する。マイコン24は、ACK/NCKや送信元アドレスAs2が自ノードのデータ以外の信号を、アンテナATから受信すると、受信処理を開始する。受信処理において、マイコン24は、受信した信号の宛先(送信先アドレスAr1)が自ノード宛か否かを判定する(ステップS21)。   The microcomputer 24 performs a reception process in parallel with the transmission process. Next, the reception process of the microcomputer 24 will be described with reference to FIG. When the microcomputer 24 receives from the antenna AT a signal whose ACK / NCK or source address As2 is other than the data of its own node, the microcomputer 24 starts reception processing. In the reception process, the microcomputer 24 determines whether or not the destination of the received signal (transmission destination address Ar1) is addressed to its own node (step S21).

自ノード宛であれば(ステップS21でY)、マイコン24は、受信した信号が直接通信データ又は代理通信データであるか否かを判定する(ステップS22)。直接通信データ又は代理通信データであれば(ステップS22でY)、マイコン24は、そのエラーチェックコードからデータが正常に受信できたか否かを判定する(ステップS23)。   If it is addressed to its own node (Y in step S21), the microcomputer 24 determines whether or not the received signal is direct communication data or proxy communication data (step S22). If it is direct communication data or proxy communication data (Y in step S22), the microcomputer 24 determines whether or not the data has been normally received from the error check code (step S23).

データが正常に受信できていれば(ステップS23でY)、マイコン24は、受信通知手段として働き、ACKを送信すると共にそのデータをアプリケーションに出力して(ステップS24)、受信処理を終了する。一方、データが正常に受信できなければ(ステップS23でN)、マイコン24は、NCKを送信して(ステップS25)、受信処理を終了する。   If the data can be normally received (Y in step S23), the microcomputer 24 functions as a reception notifying unit, transmits ACK and outputs the data to the application (step S24), and ends the reception process. On the other hand, if the data cannot be received normally (N in step S23), the microcomputer 24 transmits NCK (step S25) and ends the reception process.

また、直接通信データ又は代理通信データでなければ(ステップS22でN)、マイコン24は、代理通信完了通知であるか否かを判定する(ステップS26)。代理通信完了通知であれば(ステップS26でY)、マイコン24は、通信成功と判断して、ACKを送信すると共に直接通信バッファ21をクリアした後(ステップS27)、受信処理を終了する。また、代理通信完了通知でもなければ(ステップS26でN)、マイコン24は何もせずに受信処理を終了する。   If it is not direct communication data or proxy communication data (N in step S22), the microcomputer 24 determines whether it is a proxy communication completion notification (step S26). If it is a proxy communication completion notification (Y in step S26), the microcomputer 24 determines that the communication is successful, transmits ACK and clears the communication buffer 21 directly (step S27), and then ends the reception process. If it is not a proxy communication completion notification (N in step S26), the microcomputer 24 ends the reception process without doing anything.

また、受信した信号が自ノード宛でなければ(ステップS21でN)、マイコン24は、直接通信データであるか否かを判別する(ステップS28)。マイコン24は、直接通信データであれば(ステップS28でY)、その後、所定時間以内にACKがあれば(ステップS29でY)、通信成功と判断して、何もせずに受信処理を終了する。これに対して、所定時間以内にACKがない、又は、NCKを受信すると(ステップS29でN)、マイコン24は、代理通信データを作成して代理通信バッファ22に格納した後(ステップS30)、受信処理を終了する。   If the received signal is not addressed to the own node (N in step S21), the microcomputer 24 determines whether or not it is direct communication data (step S28). If it is direct communication data (Y in step S28), and if ACK is received within a predetermined time (Y in step S29), the microcomputer 24 determines that the communication is successful and ends the reception process without doing anything. . On the other hand, if there is no ACK within a predetermined time or NCK is received (N in step S29), the microcomputer 24 creates proxy communication data and stores it in the proxy communication buffer 22 (step S30). The reception process ends.

ステップS30においてマイコン24は、詳しくは、代理通信バッファ22の送信元アドレスAs1に自ノードアドレス、送信元アドレスAs2に直接通信データの送信元アドレスAs2(=データ送信要求ノードのアドレス)、送信先アドレスAr1及びAr2に直接通信データの送信先アドレスAr2(=目的ノードのアドレス)を格納し、通信種別Sに代理通信マーカー、データDに直接通信データのデータDを格納する。これにより代理通信バッファ22には、図2に示すフレーム構成の代理通信データが格納される。   More specifically, in step S30, the microcomputer 24 sends its own node address as the transmission source address As1 of the proxy communication buffer 22, direct transmission data source address As2 (= address of the data transmission request node), transmission destination address as the transmission source address As2. The destination address Ar2 (= address of the target node) of direct communication data is stored in Ar1 and Ar2, the proxy communication marker is stored in communication type S, and the data D of direct communication data is stored in data D. As a result, the proxy communication buffer 22 stores the proxy communication data having the frame configuration shown in FIG.

これに対して、直接通信データでなければ(ステップS28でN)、マイコン24は、受信した信号が代理通信データであるか否かを判定する(ステップS31)。マイコン24は、代理通信データであれば(ステップS31でY)、その後、所定時間以内にACKがあり、かつ、代理通信バッファ22に受信した代理通信データと同一のデータDを有する代理通信データが格納されていれば(ステップ32でY)、バックオフ時間延長手段として働きバックオフ時間を延長した後(ステップS33)、受信処理を終了する。これに対して、マイコン24は、所定時間以内にACKを受信できない、または、NCKを受信した場合(ステップS32でN)、何もせずに受信処理を終了する。   On the other hand, if it is not direct communication data (N in step S28), the microcomputer 24 determines whether or not the received signal is proxy communication data (step S31). If the microcomputer 24 is proxy communication data (Y in step S31), then the proxy communication data having the same data D as the proxy communication data received by the proxy communication buffer 22 is received within the predetermined time. If it is stored (Y in step 32), it functions as a back-off time extending means, and after extending the back-off time (step S33), the reception process is terminated. On the other hand, when the microcomputer 24 cannot receive ACK within a predetermined time or receives NCK (N in step S32), the microcomputer 24 ends the receiving process without doing anything.

また、マイコン24は、直接通信データでも代理通信データでもなければ(ステップS31でN)、次に、代理通信完了通知であるか否かを判定する(ステップS34)。代理通信完了通知であれば(ステップS34でY)、マイコン24は、受信した代理通信完了通知と代理通信バッファ22に格納された代理通信データとのデータDに同じデータが格納されているか否かを判定する(ステップS35)。   If the microcomputer 24 is neither direct communication data nor proxy communication data (N in step S31), the microcomputer 24 then determines whether it is a proxy communication completion notification (step S34). If it is a proxy communication completion notification (Y in step S34), the microcomputer 24 determines whether or not the same data is stored in the data D of the received proxy communication completion notification and the proxy communication data stored in the proxy communication buffer 22. Is determined (step S35).

同じデータが格納されていた場合(ステップS35でY)、マイコン24は、通信成功と判断して、送信停止手段として働き、代理通信バッファ22をクリアにして代理通信データの送信を停止した後(ステップS36)、受信処理を終了する。これに対して、同じデータが格納されていない場合(ステップS35でN)、マイコン24は、何もせずに受信処理を終了する。また、受信した自ノード宛でない信号が直接通信データでも、代理通信データでも、代理通信完了通知でもない場合(ステップS34でN)、マイコン24は、何もせずに受信処理を終了する。   If the same data is stored (Y in step S35), the microcomputer 24 determines that the communication is successful, acts as a transmission stop unit, clears the proxy communication buffer 22, and stops transmitting proxy communication data ( Step S36), the reception process is terminated. On the other hand, if the same data is not stored (N in step S35), the microcomputer 24 ends the reception process without doing anything. If the received signal not addressed to the own node is not direct communication data, proxy communication data, or proxy communication completion notification (N in step S34), the microcomputer 24 ends the reception process without doing anything.

次に、上述した通信システム1の動作について図6乃至図8のシーケンスを参照して以下説明する。まず、ノードAからノードBへのデータ送信要求が発生したときの通信システムの動作について図6を参照して説明する。以下の説明において、各ノードA〜Dが行う動作は、実際には各ノードA〜Dのマイコン24が実行する。   Next, the operation of the communication system 1 described above will be described below with reference to the sequences of FIGS. First, the operation of the communication system when a data transmission request from the node A to the node B occurs will be described with reference to FIG. In the following description, the operations performed by the nodes A to D are actually executed by the microcomputer 24 of the nodes A to D.

ノードAで、ノードBへのデータ通信要求が発生すると、ノードAでは、送信元アドレスAs1及びAs2をノードA、送信先アドレスAr1及びAr2をノードB、種別を直接通信とした直接通信データを作成して、アンテナATから送信する。   When a data communication request to node B occurs at node A, node A creates direct communication data with source addresses As1 and As2 as node A, destination addresses Ar1 and Ar2 as node B, and type as direct communication. And transmit from the antenna AT.

ノードAからの直接通信データは、ノードB及びノードCで受信される。ノードBは、自ノード宛の直接通信データを受信すると、受信した旨を示すACKを送信する。ノードBからのACKは、ノードA及びノードCで受信される。ノードAは、ノードBからACKを受信すると、通信が成功したと判断して、直接通信バッファ21をクリアして、直接通信データの再送を停止する。ノードCは、自ノード宛でない直接通信データを受信した後、ノードBからACKを受信すると特に何もしない。   Direct communication data from node A is received by node B and node C. When the node B receives the direct communication data addressed to itself, the node B transmits an ACK indicating that it has been received. The ACK from node B is received by node A and node C. When the node A receives the ACK from the node B, the node A determines that the communication is successful, clears the direct communication buffer 21 and stops the retransmission of the direct communication data. When node C receives ACK from node B after receiving direct communication data not addressed to itself, node C does nothing.

次に、ノードAからノードDへのデータ送信要求が発生したときの通信システムの動作について図7を参照して説明する。ノードAで、ノードDへのデータ送信要求が発生すると、ノードAでは送信元アドレスAs1及びAs2をノードA、送信先アドレスAr1及びAr2をノードD、種別を直接通信とした直接通信データを作成して、アンテナATから送信する。   Next, the operation of the communication system when a data transmission request from the node A to the node D occurs will be described with reference to FIG. When a data transmission request to node D occurs at node A, node A creates direct communication data with source addresses As1 and As2 as node A, destination addresses Ar1 and Ar2 as node D, and type as direct communication. And transmit from the antenna AT.

ノードAからの直接通信データは、ノードDでは受信できないが、ノードB及びノードCで受信される。ノードB及びノードCは、自ノード宛でない直接通信データを受信し、その後、AKCを受信できない場合、送信元アドレスAs1をノードB、C、送信元アドレスAs2をノードA、送信先アドレスAr1及びAr2をノードD、種別を代理通信とした代理通信データを作成して、代理通信バッファ22に格納する。このときノードB及びノードCは、代理通信データを送信しようとし、ノードAは、直接通信データを再送しようとする。   Direct communication data from node A cannot be received by node D, but is received by node B and node C. When the node B and the node C receive direct communication data not addressed to the own node and cannot receive the AKC thereafter, the source address As1 is the node B and C, the source address As2 is the node A, and the destination addresses Ar1 and Ar2 The proxy communication data with the node D and the type as the proxy communication is created and stored in the proxy communication buffer 22. At this time, the node B and the node C try to transmit the proxy communication data, and the node A tries to retransmit the communication data directly.

上述したように直接通信データの再送時のバックオフ時間は最長時間に設定されている。このときノードBのバックオフ時間が、ノードCのバックオフ時間より短ければ、ノードBが送信権を得て、ノードBが代理通信データを送信し、ノードA、ノードCは送信を保留する。もちろん、ノードCのバックオフ時間が、ノードBのバックオフ時間より短ければ、ノードCが送信権を得るが、ここではノードBが送信権を得た例について説明する。   As described above, the back-off time for retransmission of direct communication data is set to the longest time. At this time, if the back-off time of node B is shorter than the back-off time of node C, node B obtains the transmission right, node B transmits proxy communication data, and nodes A and C suspend transmission. Of course, if the backoff time of the node C is shorter than the backoff time of the node B, the node C obtains the transmission right. Here, an example in which the node B obtains the transmission right will be described.

ノードBからの代理通信データは、ノードA、ノードC及びノードDが受信する。ノードAは、代理通信データの送信元アドレスAs2が自ノードのアドレスであるため、特になにも行わない。ノードDは、自ノード宛の代理通信データを受信すると、ACKを送信しようとする。即ち、このときノードAは直接通信データを再送しようとし、ノードCは代理通信データを送信しようとし、ノードDはACKを送信しようとする。ACKのバックオフ時間が最短に設定されているので、ノードDが送信権を得て、ノードDからACKが送信される。   Proxy communication data from node B is received by node A, node C, and node D. Node A does nothing particularly because the source address As2 of the proxy communication data is the address of its own node. When node D receives proxy communication data addressed to itself, node D attempts to transmit ACK. That is, at this time, the node A tries to retransmit the communication data directly, the node C tries to send the proxy communication data, and the node D tries to send the ACK. Since the ACK back-off time is set to the shortest, the node D obtains the transmission right, and the ACK is transmitted from the node D.

ノードDからのACKはノードB及びノードCに受信される。ノードBは、ACKを受信すると、送信元アドレスAs1をノードB、送信先アドレスAr1及び送信元アドレスAs2をノードA、送信先アドレスAr2をノードDとした代理通信完了通知を送信しようとする。ノードCは、ノードBからの代理通信データを受信した後にACKを受信すると、バックオフ時間を延長する。即ち、このときノードAは直接通信データを再送しようとし、ノードBは代理通信完了通知を送信しようとし、ノードCは代理通信データを送信しようとしている状態となっている。   The ACK from node D is received by node B and node C. When the node B receives the ACK, the node B tries to transmit a proxy communication completion notification with the source address As1 as the node B, the destination address Ar1 and the source address As2 as the node A, and the destination address Ar2 as the node D. When node C receives ACK after receiving proxy communication data from node B, node C extends the back-off time. That is, at this time, the node A tries to retransmit the communication data directly, the node B tries to send the proxy communication completion notification, and the node C tries to send the proxy communication data.

上述したようにノードCのバックオフ時間は延長されているので、ノードBが再び送信権を得て、代理通信完了通知を送信する。ノードBの代理通信完了通知がノードAに届くと、ノードAは、ACKを送信すると共に直接通信バッファ21をクリアして直接通信データの再送を停止する。ノードCでは代理通信完了通知を受信すると、代理通信バッファ22をクリアして、代理通信データの送信をやめる。ノードBは、ノードAからのACKを受信すると、代理通信バッファ22及び代理通信完了通知バッファ23をクリアして、代理通信完了通知の再送を停止する。   As described above, since the back-off time of the node C is extended, the node B obtains the transmission right again and transmits the proxy communication completion notification. When the node B proxy communication completion notification arrives at the node A, the node A transmits an ACK and clears the direct communication buffer 21 to stop the direct communication data retransmission. When receiving the proxy communication completion notification, the node C clears the proxy communication buffer 22 and stops transmitting proxy communication data. When the node B receives the ACK from the node A, the node B clears the proxy communication buffer 22 and the proxy communication completion notification buffer 23 and stops resending the proxy communication completion notification.

次に、ノードBからノードDへの通信に障害が発生しているときに、ノードAからノードDへのデータ送信要求が発生したときの通信システムの動作について図8を参照して説明する。ノードAで、ノードDへのデータ送信要求が発生してからノードBが送信権を得て代理通信データを送信するまでは、図7と同じなので、説明を省略する。   Next, the operation of the communication system when a data transmission request from the node A to the node D occurs when a failure occurs in the communication from the node B to the node D will be described with reference to FIG. Since the node A obtains the transmission right and transmits the proxy communication data after the data transmission request to the node D is generated, the description is omitted.

ノードBからの代理通信データは、ノードDは受信できないが、ノードA及びノードCが受信する。ノードAは、代理通信データの送信元アドレスAs2が自ノードのアドレスであるため、特になにも行わない。ノードCは、代理通信データを受信した後、ACKを受信しないと、バックオフ時間の延長は行わない。また、ノードBは、代理通信データを送信した後、ACKを受信できないので、代理通信データをクリアする。このとき、ノードAは直接通信データの再送をしようとし、ノードCは代理通信データを送信しようとしている状態となっている。   Proxy communication data from node B cannot be received by node D, but is received by node A and node C. Node A does nothing particularly because the source address As2 of the proxy communication data is the address of its own node. Node C does not extend the back-off time if it does not receive ACK after receiving proxy communication data. Further, since the node B cannot receive the ACK after transmitting the proxy communication data, the node B clears the proxy communication data. At this time, the node A is in a state of attempting to directly retransmit communication data, and the node C is in a state of attempting to transmit proxy communication data.

上述したようにノードCのバックオフ時間は延長されていないので、ノードCが送信権を得て、代理通信データを送信する。ノードCからの代理通信データは、ノードA、ノードB及びノードDが受信する。ノードAは、代理通信データの送信元アドレスAs2が自ノードのアドレスであるため、特になにも行わない。ノードDは、自ノード宛の代理通信データを受信すると、ACKを送信する。   As described above, since the back-off time of node C is not extended, node C obtains a transmission right and transmits proxy communication data. Proxy communication data from node C is received by node A, node B, and node D. Node A does nothing particularly because the source address As2 of the proxy communication data is the address of its own node. When node D receives proxy communication data addressed to itself, node D transmits ACK.

ノードDからのACKはノードCに受信される。ノードCは、ACKを受信すると、送信元アドレスAs1をノードC、送信先アドレスAr1及び送信元アドレスAs2をノードA、送信先アドレスAr2をノードDとした代理通信完了通知を送信する。ノードCの代理通信完了通知がノードAに届くと、ノードAはACKを送信すると共に直接通信データの再送を停止する。ノードCでは代理通信完了通知を受信すると、代理通信データを破棄し、代理通信データの送信をやめる。   The ACK from node D is received by node C. When the node C receives the ACK, the node C transmits a proxy communication completion notification with the source address As1 as the node C, the destination address Ar1 and the source address As2 as the node A, and the destination address Ar2 as the node D. When the node C's proxy communication completion notification arrives at the node A, the node A transmits an ACK and stops the retransmission of the communication data directly. When the node C receives the proxy communication completion notification, the node C discards the proxy communication data and stops transmitting the proxy communication data.

上述した実施形態によれば、各ノードA〜Dは、目的ノードへのデータの送信要求が発生すると、目的ノード宛にデータを含んだ直接通信データを送信する。また、自ノード宛の直接又は代理通信データを受信したとき、受信した旨を示すACKを送信する。また、自ノード宛でない直接通信データを受信し、その後、ACKを受信できなかった場合、直接通信データに含まれるデータを含んだ代理通信データを送信する。さらに、代理通信データを送信した後に、ACKを受信すると、直接通信データの送信元宛に代理通信完了通知を送信する。これにより、目的ノードにデータを送信しながら中継経路が決定されるので、事前に経路を決定する必要がなく、目的ノードまで迅速にデータを送信することができる。   According to the above-described embodiment, each of the nodes A to D transmits direct communication data including data to the destination node when a data transmission request to the destination node is generated. When direct or proxy communication data addressed to the own node is received, an ACK indicating that it has been received is transmitted. Further, when direct communication data not addressed to the own node is received, and then ACK cannot be received, proxy communication data including data included in the direct communication data is transmitted. Further, when the ACK is received after the proxy communication data is transmitted, the proxy communication completion notification is directly transmitted to the transmission source of the communication data. Thereby, since the relay route is determined while transmitting data to the target node, it is not necessary to determine the route in advance, and the data can be quickly transmitted to the target node.

また、上述した実施形態によれば、各ノードA〜Dは、自ノード宛でない代理通信データを受信した後、ACKを受信し、かつ、受信した代理通信データと同じものを送信しようとしている場合、バックオフ時間が延長されるため、代理通信データの送信よりも、代理通信完了通知が優先的に送信される。そして、代理通信完了通知を受信すれば、代理通信を行う必要がないので、代理通信データの送信が停止される。これにより、無駄に代理通信データが送信されることなく、より一層、迅速にデータ通信を行うことができる。また、通信障害などで、代理通信データを送信したノードBが、目的ノードDからの受信通知を受信できず、延長したバックオフ時間が経過しても、代理通信完了通知が送信されない場合は、他のノードCから代理通信データ、代理通信完了通知を送信することができる。   In addition, according to the above-described embodiment, when each of the nodes A to D receives proxy communication data not addressed to itself, receives an ACK, and attempts to transmit the same proxy communication data received Since the back-off time is extended, the proxy communication completion notification is transmitted with priority over the proxy communication data. If the proxy communication completion notification is received, the proxy communication does not need to be performed, and the transmission of the proxy communication data is stopped. Thereby, it is possible to perform data communication even more quickly without wastefully transmitting proxy communication data. In addition, when the node B that has transmitted the proxy communication data due to a communication failure cannot receive the reception notification from the target node D and the extended back-off time has elapsed, the proxy communication completion notification is not transmitted. Proxy communication data and proxy communication completion notification can be transmitted from another node C.

しかも、代理通信データを送信したノードBから代理通信完了通知が受信できなかった場合、他のノードCから直ちに代理完了通知が送信されることなく、一旦、代理通信データが送信されてからACKを受けた後に代理完了通知を送信している。直ちに代理完了通知が送信されるようにすると、他のノードが複数あった場合、これら複数の他のノードから代理通信完了通知が送信されてしまう。さらには、代理通信完了通知はデータ通信が無事に行われたことを送信元ノードAに伝える通信であるため、リトライが認められているので、通信環境が悪化した場合、複数の他のノードからそれぞれリトライによる代理通信完了通知がされる恐れがある。   In addition, when the proxy communication completion notification cannot be received from the node B that transmitted the proxy communication data, the proxy completion notification is not immediately transmitted from the other node C, and the ACK is once received after the proxy communication data is transmitted. After receiving, a proxy completion notification is sent. If the proxy completion notification is transmitted immediately, when there are a plurality of other nodes, the proxy communication completion notification is transmitted from the plurality of other nodes. Further, since the proxy communication completion notification is a communication for informing the transmission source node A that the data communication has been successfully performed, retry is permitted. There is a risk that a proxy communication completion notification may be sent by retry.

これに対して、本実施形態では、代理通信完了通知の送信タイミングを代理通信の成功時(ACKの受信)のみとしている。これにより、複数の他のノードのうち最初に代理通信データの送信権を得たものが優先的に代理通信完了通知を送信され、それ以外はバックオフ時間が延長されるため送信が後回しにされる。これにより、無駄に代理通信完了通知が送信されることがなくなる。   On the other hand, in this embodiment, the transmission timing of the proxy communication completion notification is set only when the proxy communication is successful (ACK reception). As a result, among the plurality of other nodes, the first node that has obtained the right to transmit proxy communication data is preferentially transmitted the notification of proxy communication completion, and otherwise the transmission is postponed because the back-off time is extended. The Thereby, the proxy communication completion notification is not transmitted unnecessarily.

なお、上述した実施形態によれば、各ノードA〜Dは、自ノード宛でない代理通信データを受信し、その後ACKを受信した場合、バックオフ時間を延長していたが、直ちに代理通信バッファ22をクリアするようにしてもよい。   Note that, according to the above-described embodiment, when each of the nodes A to D receives proxy communication data not addressed to itself and then receives an ACK, the back-off time has been extended, but the proxy communication buffer 22 immediately. May be cleared.

第2実施形態
以下、第2実施形態における本発明の通信システム1を図9〜図14を参照して説明する。第1実施形態では、直接通信データのみを他のノードが代理して通信しているだけであったが、第2実施形態では、これを代理通信データと代理通信完了通知にまで拡大し、これら代理通信データ及び代理通信完了通知も中継する。
Second Embodiment Hereinafter, a communication system 1 according to a second embodiment of the present invention will be described with reference to FIGS. In the first embodiment, only the direct communication data is communicated on behalf of other nodes, but in the second embodiment, this is expanded to the proxy communication data and the proxy communication completion notification. It also relays proxy communication data and proxy communication completion notifications.

直接通信データ、代理通信データ及び代理通信完了通知のフレーム構成は、第1実施形態と同様であるため、ここでは詳細な説明を省略する。   Since the frame configurations of the direct communication data, the proxy communication data, and the proxy communication completion notification are the same as those in the first embodiment, detailed description thereof is omitted here.

第2実施形態において各ノードA〜Dは、上述した直接通信データ、代理通信データ及び代理通信完了通知を受信したとき、図9に示すような動作を行う。まず、各ノードA〜Dが、自ノード宛でない(=送信先アドレスAr1が自ノードでない)直接通信データを受信した場合について説明する。各ノードA〜Dは、その後、所定時間内にACKを受信できないと、その直接通信データ内のデータDを含んだ代理通信データを代理通信バッファ22に格納する。これにより、次回の送信処理で代理通信データが送信される。   In the second embodiment, each of the nodes A to D performs the operation shown in FIG. 9 when receiving the direct communication data, the proxy communication data, and the proxy communication completion notification described above. First, a case where each node A to D receives direct communication data that is not addressed to its own node (= the destination address Ar1 is not its own node) will be described. After that, each node A to D stores the proxy communication data including the data D in the direct communication data in the proxy communication buffer 22 when ACK cannot be received within a predetermined time. Thereby, the proxy communication data is transmitted in the next transmission process.

ただし、受信した直接通信データのデータDと同一のデータDを有する代理通信データ、代理通信完了通知がすでにバッファ22、23に格納されている場合、ノードA〜Dは、直接通信データを受信しても特に何も行わない。これにより、次回の送信処理でバッファ22、23に格納された代理通信データ、代理通信完了データが送信される。   However, when the proxy communication data having the same data D as the received direct communication data D and the proxy communication completion notification are already stored in the buffers 22 and 23, the nodes A to D receive the direct communication data. But nothing is done. Thereby, the proxy communication data and proxy communication completion data stored in the buffers 22 and 23 in the next transmission process are transmitted.

また、各ノードA〜Dは、自ノード宛でない直接通信データを受信し、その後、所定時間以内にACKを受信したときは、特に何も行わない。   Further, each node A to D does nothing particularly when receiving direct communication data not addressed to itself and receiving ACK within a predetermined time thereafter.

次に、ノードA〜Dが、自ノード宛でない代理通信データを受信した場合について説明する。このとき、所定時間以内にACKを受信できないと、ノードA〜Dは、代理通信データの送信元アドレスAs1を自ノードのアドレスに書き換えた新たな代理通信データを代理通信バッファ22に格納する。これにより、次回の送信処理で代理通信データが送信される。   Next, a case where the nodes A to D receive proxy communication data not addressed to the own node will be described. At this time, if the ACK cannot be received within a predetermined time, the nodes A to D store in the proxy communication buffer 22 new proxy communication data in which the source address As1 of the proxy communication data is rewritten to the address of the own node. Thereby, the proxy communication data is transmitted in the next transmission process.

ただし、受信した代理通信データのデータDと同一のデータDを有する代理通信データ、代理通信完了通知がすでにバッファ22、23に格納されている場合、ノードA〜Dは、代理通信データを受信しても特に何も行わない。これにより、次回の送信処理でバッファに格納された代理通信データ、代理通信完了通知が送信される。   However, when the proxy communication data having the same data D as the received proxy communication data D and the proxy communication completion notification are already stored in the buffers 22 and 23, the nodes A to D receive the proxy communication data. But nothing is done. Thereby, the proxy communication data and the proxy communication completion notification stored in the buffer in the next transmission process are transmitted.

これに対して、所定時間以内にACKを受信していれば、ノードA〜Dは、代理通信バッファ22に同一のデータDを有する代理通信データが格納されていれば、バックオフ時間を延長して、代理通信データの送信を遅延させる。一方、代理通信完了通知が格納されている場合、代理通信データを受信しても特に何も行わない。これにより、次回の送信処理でバッファ23に格納された代理通信完了通知が送信される。代理通信データも代理通信完了通知も格納していなければ、何も行わない。   On the other hand, if the ACK is received within the predetermined time, the nodes A to D extend the back-off time if the proxy communication data having the same data D is stored in the proxy communication buffer 22. The transmission of proxy communication data is delayed. On the other hand, when proxy communication completion notification is stored, nothing is done even when proxy communication data is received. As a result, the proxy communication completion notification stored in the buffer 23 is transmitted in the next transmission process. If neither proxy communication data nor proxy communication completion notification is stored, nothing is done.

次に、ノードA〜Dが、自ノード宛でない代理通信完了通知を受信し、その後、所定時間以内にACKを受信できない場合について説明する。このとき、受信した代理通信完了通知のデータDと同一のデータDを有する代理通信データが格納されている場合、ノードA〜Dは、その代理通信データを破棄(クリア)して、受信した代理通信完了通知の送信元ドレスAs1を自ノードのアドレスに書き換えた新たな代理通信完了通知を代理通信完了通知バッファ23に格納する。これにより、次回の送信処理で代理通信完了通知が送信される。   Next, a case will be described in which the nodes A to D receive a proxy communication completion notification that is not addressed to their own node, and then cannot receive an ACK within a predetermined time. At this time, when proxy communication data having the same data D as the received proxy communication completion notification data D is stored, the nodes A to D discard (clear) the proxy communication data and receive the received proxy A new proxy communication completion notification in which the transmission source address As1 of the communication completion notification is rewritten to the address of the own node is stored in the proxy communication completion notification buffer 23. Thereby, the proxy communication completion notification is transmitted in the next transmission process.

また、受信した代理通信完了通知のデータDと同一のデータDを有する代理通信完了通知がすでにバッファ23に格納されている場合、ノードA〜Dは、特に何も行わない。また、代理通信データも代理通信完了通知も格納されていない場合、ノードA〜Dは、代理通信完了通知を代理通信完了通知バッファ23に格納する。これにより、次回の送信処理で代理通信完了通知が送信される。   Further, when the proxy communication completion notification having the same data D as the received proxy communication completion notification data D is already stored in the buffer 23, the nodes A to D do nothing in particular. When neither proxy communication data nor proxy communication completion notification is stored, the nodes A to D store the proxy communication completion notification in the proxy communication completion notification buffer 23. Thereby, the proxy communication completion notification is transmitted in the next transmission process.

次に、ノードA〜Dが、自ノード宛でない代理通信完了通知を受信し、その後、所定時間以内にACKを受信した場合について説明する。このとき、受信した代理通信完了通知と同一のデータDを有する代理通信データ、代理通信完了通知が格納されている場合、ノードA〜Dは、その代理通信データ、代理通信完了を破棄する。   Next, a case where the nodes A to D receive a proxy communication completion notification not addressed to the own node and then receive an ACK within a predetermined time will be described. At this time, when proxy communication data having the same data D as the received proxy communication completion notification and proxy communication completion notification are stored, the nodes A to D discard the proxy communication data and proxy communication completion.

また、このとき各バッファ22、23に格納した代理通信データ及び代理通信完了通知は、格納してから第1所定時間Tw1(秒)経過後に、通信の状況や結果にかかわらずその代理通信データや代理通信完了通知を利用しないことにする。また、第1所定時間Tw1経過してからさらに第2所定時間Tw2(秒)経過するまでの間は、利用しなくなった代理通信データや代理通信完了通知と同じデータDを有する信号を受信しても、無視する。   The proxy communication data and the proxy communication completion notification stored in the buffers 22 and 23 at this time are stored in the respective buffers 22 and 23 after the first predetermined time Tw1 (seconds) since the storage, regardless of the communication status and result. The proxy communication completion notification is not used. In addition, after the first predetermined time Tw1 has elapsed and until the second predetermined time Tw2 (seconds) has elapsed, a proxy communication data that is no longer used or a signal having the same data D as the proxy communication completion notification is received. Ignore it.

次に、第2実施形態における通信ノードの構成について図10を参照して以下説明する。なお、同図において、上述した第1実施形態ですでに説明した図3に示す構成と同等の部分については同一符号を付してその詳細な説明を省略する。同図に示すように、マイコン24は、第1実施形態で説明した機能24C〜24Kに加えてさらに、時間計測管理機能24Lと、バッファ状態確認機能24Mと、代理通信完了通知作成機能24Nと、を備えている。   Next, the configuration of the communication node in the second embodiment will be described below with reference to FIG. In the figure, the same components as those shown in FIG. 3 already described in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. As shown in the figure, in addition to the functions 24C to 24K described in the first embodiment, the microcomputer 24 further includes a time measurement management function 24L, a buffer status confirmation function 24M, a proxy communication completion notification creation function 24N, It has.

時間計測管理機能24Lは、代理通信データや代理通信完了通知をバッファ22、23に格納してからの経過時間を計測・管理する。バッファ状態確認機能24Mは、各バッファ21〜23の状態を確認し、それぞれに直接又は代理通信データや代理通信完了通知が格納されているか否かを判別する。代理通信完了通知作成機能24Nは、自ノード宛でない代理通信完了通知を受信し、その後、ACKを受信できず、かつ、受信した代理通信完了通知と同一の代理通信完了通知がなければ、代理通信完了通知を作成して、代理通信完了通知バッファ23に格納する。   The time measurement management function 24L measures and manages the elapsed time since the proxy communication data and the proxy communication completion notification are stored in the buffers 22 and 23. The buffer status confirmation function 24M confirms the status of each of the buffers 21 to 23 and determines whether or not proxy communication data or a proxy communication completion notification is stored directly or in each of them. The proxy communication completion notification creation function 24N receives a proxy communication completion notification that is not addressed to its own node, and thereafter cannot receive an ACK, and if there is no proxy communication completion notification that is the same as the received proxy communication completion notification, proxy communication A completion notification is created and stored in the proxy communication completion notification buffer 23.

なお、代理通信データ作成機能24Fは、第1実施形態での動作に加えて、自ノード宛でない代理通信データを受信し、その後、ACKを受信できず、かつ、受信した代理通信データと同一のデータDを有する代理通信データも代理通信完了通知も格納していなかった場合、受信した代理通信データに含まれるデータDを含んだ代理通信データを代理通信バッファ22に格納する。   In addition to the operation in the first embodiment, the proxy communication data creation function 24F receives proxy communication data that is not addressed to its own node, and thereafter cannot receive an ACK and is the same as the received proxy communication data. If neither the proxy communication data having the data D nor the proxy communication completion notification is stored, the proxy communication data including the data D included in the received proxy communication data is stored in the proxy communication buffer 22.

次に、上述した通信システム1の動作について説明する。マイコン24は、電源オンに応じて送信処理及び受信処理を実行する。なお、第2実施形態における送信処理は、第1実施形態で説明した図4に示す送信処理と同様であるためここでは詳細な説明を省略する。   Next, the operation of the communication system 1 described above will be described. The microcomputer 24 executes transmission processing and reception processing in response to power-on. Note that the transmission process in the second embodiment is the same as the transmission process shown in FIG. 4 described in the first embodiment, and therefore detailed description thereof is omitted here.

上述したマイコン24の受信処理について、図11を参照して説明する。なお、図11において、図5について上述した第1実施形態で説明した動作と同等の部分は同一符号を付してその詳細な説明を省略する。即ち、マイコン24は、ステップS11で第2代理通信手段としても働き、ステップS16で第2代理通信完了通史手段としても働く。   The reception process of the microcomputer 24 described above will be described with reference to FIG. In FIG. 11, the same parts as those described in the first embodiment with reference to FIG. 5 are denoted by the same reference numerals, and detailed description thereof is omitted. That is, the microcomputer 24 also functions as a second proxy communication unit in step S11, and also functions as a second proxy communication completion history unit in step S16.

まず、マイコン24は、ACK/NCKや送信元アドレスAs2が自ノードのデータ以外の信号を、アンテナATから受信すると、受信処理を開始する。受信処理において、マイコン24は、受信した信号の宛先(送信先アドレスAr1)が自ノード宛か否かを判定する(ステップS21)。   First, when the microcomputer 24 receives a signal other than the ACK / NCK and the source address As2 other than the data of its own node from the antenna AT, the microcomputer 24 starts reception processing. In the reception process, the microcomputer 24 determines whether or not the destination of the received signal (transmission destination address Ar1) is addressed to its own node (step S21).

自ノード宛であれば(ステップS21でY)、マイコン24は、第1実施形態と同様に、ステップS22〜S27を行う。また、受信した信号が自ノード宛でなければ(ステップS21でN)、マイコン24は、第1所定時間Tw1をカウントするタイマーT1が動作中であるか否かを判定する(ステップS40)。   If it is addressed to its own node (Y in step S21), the microcomputer 24 performs steps S22 to S27 as in the first embodiment. If the received signal is not addressed to the own node (N in step S21), the microcomputer 24 determines whether or not the timer T1 that counts the first predetermined time Tw1 is operating (step S40).

タイマーT1が動作中であれば(ステップS40でY)、マイコン24は、バッファ22、23に代理通信データ、代理通信完了通知が格納されてから第1所定時間Tw1が経過していないと判断して、ステップS28に進む。一方、タイマーT1が動作中でなければ(ステップS40でN)、マイコン24は、第2所定時間Tw2をカウントするタイマーT2が動作中であるか否かを判定する(ステップS41)。   If the timer T1 is in operation (Y in step S40), the microcomputer 24 determines that the first predetermined time Tw1 has not elapsed since the proxy communication data and the proxy communication completion notification are stored in the buffers 22 and 23. Then, the process proceeds to step S28. On the other hand, if the timer T1 is not in operation (N in step S40), the microcomputer 24 determines whether or not the timer T2 for counting the second predetermined time Tw2 is in operation (step S41).

タイマーT2が動作中であれば(ステップS41でY)、上記第1所定時間Tw1が経過した後であり、その後、第2所定時間Tw2が経過していない状態である。このとき、マイコン24は、バッファ22、23に格納された代理通信データ又は代理通信完了通知データのデータDと、受信した信号のデータDと、を比較する。比較した結果、同じものであれば(ステップS42でY)、受信処理を終了して、受信した信号を無視する。同じものでなければ(ステップS42でN)、ステップS28に進む。   If the timer T2 is in operation (Y in step S41), it is after the first predetermined time Tw1 has elapsed and thereafter the second predetermined time Tw2 has not elapsed. At this time, the microcomputer 24 compares the data D of the proxy communication data or the proxy communication completion notification data stored in the buffers 22 and 23 with the data D of the received signal. As a result of the comparison, if they are the same (Y in step S42), the reception process is terminated and the received signal is ignored. If they are not the same (N in step S42), the process proceeds to step S28.

ステップS28において、マイコン24は、受信した信号が直接通信データであるか否かを判別する(ステップS28)。マイコン24は、直接通信データである場合(ステップS28でY)、その後、所定時間以内にACKがあれば(ステップS29でY)、通信成功と判断して、何もせずに受信処理を終了する。これに対して、所定時間以内にACKがない、又は、NCKを受信すると(ステップS29でN)、マイコン24は、受信した直接通信データのデータDと同一のデータDを有する代理通信データ又は代理通信完了通知がバッファ22、23に格納されているか否かを判定する(ステップS43)。   In step S28, the microcomputer 24 determines whether or not the received signal is direct communication data (step S28). If the data is direct communication data (Y in step S28), and if there is an ACK within a predetermined time (Y in step S29), the microcomputer 24 determines that the communication is successful and ends the reception process without doing anything. . On the other hand, if there is no ACK within a predetermined time or NCK is received (N in step S29), the microcomputer 24 receives proxy communication data or proxy having the same data D as the received direct communication data D It is determined whether or not a communication completion notification is stored in the buffers 22 and 23 (step S43).

同一のデータDを有する代理通信データ又は代理通信完了通知が格納されていれば(ステップS43でY)、マイコン24は、受信処理を終了する。これに対して、同一のデータDを有する代理通信データ又は代理通信完了通知が格納されていなければ(ステップS43でN)、マイコン24は、代理通信データを作成して代理通信バッファ22に格納し(ステップS30)、第1所定時間Tw1をカウントするタイマーT1をスタートさせた後(ステップS44)、受信処理を終了する。   If proxy communication data having the same data D or proxy communication completion notification is stored (Y in step S43), the microcomputer 24 ends the reception process. On the other hand, if the proxy communication data having the same data D or the proxy communication completion notification is not stored (N in step S43), the microcomputer 24 creates the proxy communication data and stores it in the proxy communication buffer 22 (Step S30) After starting the timer T1 that counts the first predetermined time Tw1 (Step S44), the reception process is terminated.

また、受信した信号が直接通信データでなければ(ステップS28でN)、マイコン24は、代理通信データであるか否かを判定する(ステップS31)。マイコン24は、代理通信データであれば(ステップS31でY)、その後、所定時間内にACKがあるか否かを判別する(ステップS45)。所定時間内にACKがあれば(ステップS45でY)、マイコン24は、代理通信バッファ22に受信した代理通信データと同一のデータDを有する代理通信データが格納されていれば(ステップS46でY)、バックオフ時間を延長した後(ステップS33)、受信処理を終了する。同一のデータDを有する代理通信データが格納されていなければ(ステップS46でN)、マイコン24は、直ちに受信処理を終了する。   If the received signal is not direct communication data (N in step S28), the microcomputer 24 determines whether it is proxy communication data (step S31). If it is proxy communication data (Y in step S31), the microcomputer 24 then determines whether or not there is an ACK within a predetermined time (step S45). If there is an ACK within the predetermined time (Y in step S45), the microcomputer 24 stores proxy communication data having the same data D as the received proxy communication data in the proxy communication buffer 22 (Y in step S46). ) After extending the back-off time (step S33), the reception process is terminated. If proxy communication data having the same data D is not stored (N in step S46), the microcomputer 24 immediately ends the reception process.

これに対して、マイコン24は、所定時間以内にACKを受信できない、または、NCKを受信した場合(ステップS45でN)、受信した代理通信データのデータDと同一のデータDを有する代理通信データ又は代理通信完了通知がバッファ22、23に格納されているか否かを判定する(ステップS47)。同一のデータDを有する代理通信データ、代理通信完了通知が格納されていれば(ステップS47でY)、マイコン24は、受信処理を終了する。   On the other hand, when the microcomputer 24 cannot receive ACK within a predetermined time or receives NCK (N in step S45), the proxy communication data having the same data D as the received proxy communication data D is received. Alternatively, it is determined whether or not the proxy communication completion notification is stored in the buffers 22 and 23 (step S47). If proxy communication data having the same data D and a proxy communication completion notification are stored (Y in step S47), the microcomputer 24 ends the reception process.

これに対して、代理通信データ、代理通信完了通知が格納されていなければ(ステップS47でN)、マイコン24は、受信した代理通信データの送信元アドレスAs1を自ノードのアドレスに書き換えた新たな代理通信データを代理通信バッファ22に格納する(ステップS48)。その後、マイコン24は、タイマーT1をスタートさせた後(ステップS49)、受信処理を終了する。   On the other hand, if proxy communication data and proxy communication completion notification are not stored (N in step S47), the microcomputer 24 renews the source address As1 of the received proxy communication data with the address of its own node. The proxy communication data is stored in the proxy communication buffer 22 (step S48). Thereafter, the microcomputer 24 starts the timer T1 (step S49), and ends the reception process.

また、受信した信号が代理通信完了通知であれば(ステップS34でY)、マイコン24は、所定時間以内にACKがあるか否かを判定する(ステップS50)。所定時間以内にACKがあれば(ステップS50でY)、マイコン24は、受信した代理通信完了通知と同一のデータDを有する代理通信データがバッファ22に格納されているか否かを判定する(ステップS51)。   If the received signal is a proxy communication completion notification (Y in step S34), the microcomputer 24 determines whether or not there is an ACK within a predetermined time (step S50). If there is an ACK within the predetermined time (Y in step S50), the microcomputer 24 determines whether or not the proxy communication data having the same data D as the received proxy communication completion notification is stored in the buffer 22 (step). S51).

同じデータDを有する代理通信データが格納されていた場合(ステップS51でY)、マイコン24は、通信成功と判断して、代理通信バッファ22をクリアにして代理通信データの送信を停止する(ステップS52)。その後、マイコン24は、第1所定時間Tw1をカウントするタイマーT1を停止して(ステップS53)、受信処理を終了する。   If proxy communication data having the same data D is stored (Y in step S51), the microcomputer 24 determines that communication is successful, clears the proxy communication buffer 22, and stops transmitting proxy communication data (step). S52). Thereafter, the microcomputer 24 stops the timer T1 that counts the first predetermined time Tw1 (step S53), and ends the reception process.

これに対して、同じデータDを有する代理通信データが格納されていない場合(ステップS51でN)、マイコン24は、受信した代理通信完了通知と同じデータDを有する代理通信完了通知がバッファ23に格納されているか否かを判定する(ステップS54)。同じデータDを有する代理通信完了通知が格納されていた場合(ステップS54でY)、マイコン24は、代理通信完了通知バッファ23をクリアにして代理通信完了通知の送信を停止した後(ステップS55)、ステップS53に進む。一方、同じデータDを有する代理通信完了通知が格納されていなかった場合(ステップS54でN)、マイコン24は、直ちに受信処理を終了する。   On the other hand, when proxy communication data having the same data D is not stored (N in step S51), the microcomputer 24 sends a proxy communication completion notification having the same data D as the received proxy communication completion notification to the buffer 23. It is determined whether it is stored (step S54). If a proxy communication completion notification having the same data D is stored (Y in step S54), the microcomputer 24 clears the proxy communication completion notification buffer 23 and stops transmitting the proxy communication completion notification (step S55). The process proceeds to step S53. On the other hand, if the proxy communication completion notification having the same data D is not stored (N in step S54), the microcomputer 24 immediately ends the reception process.

代理通信完了通知を受信してから(ステップS34でY)、所定時間以内にACKを受信できない、または、NCKを受信した場合(ステップS50でN)、マイコン24はステップS56に進む。ステップS56において、マイコン24は、受信した代理通信完了通知と同じデータDを有する代理通信データが代理通信バッファ22に格納されているか否かを判定する(ステップS56)。   After receiving the proxy communication completion notification (Y in step S34), if the ACK cannot be received within a predetermined time or NCK is received (N in step S50), the microcomputer 24 proceeds to step S56. In step S56, the microcomputer 24 determines whether or not proxy communication data having the same data D as the received proxy communication completion notification is stored in the proxy communication buffer 22 (step S56).

同じデータDを有する代理通信データが格納されていた場合(ステップS56でY)、マイコン24は、代理通信バッファ22をクリアして(ステップS57)、代理通信データの送信を停止する。その後、マイコン24は、代理通信完了通知バッファ23に受信した代理通信完了通知の送信元アドレスAs1を自ノードアドレスに書き換えて格納した後(ステップS58)、タイマーT1をスタートさせて(ステップS59)、受信処理を終了する。   If proxy communication data having the same data D is stored (Y in step S56), the microcomputer 24 clears the proxy communication buffer 22 (step S57) and stops transmission of proxy communication data. Thereafter, the microcomputer 24 rewrites and stores the proxy communication completion notification source address As1 received in the proxy communication completion notification buffer 23 with its own node address (step S58), and then starts a timer T1 (step S59). The reception process ends.

一方、同じデータDを有する代理通信データが格納されていない場合(ステップS56でN)、マイコン24は、同じデータDを有する代理通信完了通知が代理通信完了通知バッファ23に格納されているか否かを判定する(ステップS60)。同じデータDを有する代理通信完了通知が代理通信完了通知バッファ23に格納されていた場合(ステップS60でY)、マイコン24は、直ちに受信処理を終了する。格納されていなかった場合(ステップS60でN)、マイコン24は、ステップS58に進む。   On the other hand, when the proxy communication data having the same data D is not stored (N in step S56), the microcomputer 24 determines whether or not the proxy communication completion notification having the same data D is stored in the proxy communication completion notification buffer 23. Is determined (step S60). When the proxy communication completion notification having the same data D is stored in the proxy communication completion notification buffer 23 (Y in step S60), the microcomputer 24 immediately ends the reception process. If not stored (N in step S60), the microcomputer 24 proceeds to step S58.

また、マイコン24は、送信処理及び受信処理と並列にタイマーT1、T2を制御するタイマー処理を行っている。このマイコン24のタイマー処理について、図12を参照して説明する。タイマーT1は、上述した受信処理で説明したように、バッファ22、23に代理通信データ、代理通信完了通知が格納されたときに、スタートされる。タイマー処理において、マイコン24は、このタイマーT1を監視し、そのカウント値が第1所定時間Tw1を超えているか否かを判定する(ステップS70)。   Further, the microcomputer 24 performs a timer process for controlling the timers T1 and T2 in parallel with the transmission process and the reception process. The timer process of the microcomputer 24 will be described with reference to FIG. The timer T1 is started when the proxy communication data and the proxy communication completion notification are stored in the buffers 22 and 23 as described in the reception process described above. In the timer process, the microcomputer 24 monitors the timer T1, and determines whether or not the count value exceeds the first predetermined time Tw1 (step S70).

第1所定時間Tw1を超えていれば(ステップS70でY)、マイコン24は、タイマーT1を停止させると共に、タイマーT2をスタートさせる(ステップS71)。その後、マイコン24は、バッファ22、23に格納されている代理通信データ、代理通信完了通知に送信禁止フラグを立てる(ステップS72)。   If the first predetermined time Tw1 is exceeded (Y in step S70), the microcomputer 24 stops the timer T1 and starts the timer T2 (step S71). Thereafter, the microcomputer 24 sets a transmission prohibition flag in the proxy communication data and proxy communication completion notification stored in the buffers 22 and 23 (step S72).

上述した送信処理において、マイコン24は、バッファ22、23に代理通信データ、代理通信完了通知が格納されていても、送信禁止フラグが立っている場合、格納されていないものとみなし、これらを送信しない。これにより、代理通信データ、代理通信完了通知がバッファ22、23に格納されてから第1所定時間Tw1経過後は送信できないようにする。   In the transmission process described above, even if the proxy communication data and the proxy communication completion notification are stored in the buffers 22 and 23, if the transmission prohibition flag is set, the microcomputer 24 regards these as not stored and transmits them. do not do. This prevents the proxy communication data and the proxy communication completion notification from being transmitted in the buffers 22 and 23 after the first predetermined time Tw1 has elapsed.

また、タイマーT2がスタートされた後、同じデータDを有する信号を受信すると、受信処理のステップS42においてYと判別される。これにより、第1所定時間Tw1経過してからさらに第2所定時間Tw2経過するまでの間は、利用しなくなった代理通信データや代理通信完了通知と同じデータDを有する信号を受信しても、無視する。   When a signal having the same data D is received after the timer T2 is started, Y is determined in step S42 of the reception process. Accordingly, even after receiving the signal having the same data D as the proxy communication data that is no longer used or the proxy communication completion notification until the second predetermined time Tw2 elapses after the first predetermined time Tw1 has elapsed, ignore.

送信禁止フラグを立てた後(ステップS72)、マイコン24は、タイマーT2を監視し、そのカウント値が第2所定時間Tw2を超えているか否かを判定する(ステップS74)。第2所定時間Tw2を超えると(ステップS72でY)、マイコン24は、代理通信バッファ22、代理通信完了通知バッファ23をクリアにした後(ステップS74)、ステップS70に進む。   After setting the transmission prohibition flag (step S72), the microcomputer 24 monitors the timer T2 and determines whether or not the count value exceeds the second predetermined time Tw2 (step S74). When the second predetermined time Tw2 is exceeded (Y in step S72), the microcomputer 24 clears the proxy communication buffer 22 and the proxy communication completion notification buffer 23 (step S74), and then proceeds to step S70.

次に、上述した通信システム1のノードA〜D間で行われる信号の授受について具体的な一例を挙げて説明する。通信システム1は、図13に示すような構成とする。即ち、ノードAは、ノードBと相互に無線通信可能に配置されている。ノードBは、ノードA、ノードCと相互に無線通信可能に配置されている。ノードCは、ノードB、ノードDと相互に無線通信可能に配置されている。ノードDは、ノードCと相互に無線通信可能に配置されている。   Next, transmission / reception of signals performed between the nodes A to D of the communication system 1 will be described with a specific example. The communication system 1 is configured as shown in FIG. That is, the node A is arranged so as to be able to perform wireless communication with the node B. The node B is arranged so as to be able to perform wireless communication with the nodes A and C. The node C is arranged so as to be able to wirelessly communicate with the node B and the node D. Node D is arranged to be able to communicate with node C wirelessly.

まず、ノードA〜ノードDへのデータ送信要求が発生したときの通信システム1の動作について図14を参照して説明する。ノードAで、ノードDへのデータ通信要求が発生すると、ノードAは、直接通信データを送信する。   First, the operation of the communication system 1 when a data transmission request to the nodes A to D is generated will be described with reference to FIG. When the node A issues a data communication request to the node D, the node A directly transmits the communication data.

ノードAからの直接通信データは、ノードDには届かずにノードBが受信する。ノードBは、その後、ACKを受信できないので、代理通信データを作成して、代理通信バッファ22に格納する。これにより、ノードAが直接通信データ、ノードBが代理通信データを格納する状態となり、ノードAが再送、ノードBが1回目の送信を行おうとする。再送のバックオフ時間は、第1実施形態で説明した通り、最長時間に設定されている。よって、ノードBが送信権を得て、ノードBが代理通信データの送信を行う。他のノードA、C、Dは送信を保留する。   The direct communication data from the node A is received by the node B without reaching the node D. Since the node B cannot receive the ACK thereafter, the node B creates proxy communication data and stores it in the proxy communication buffer 22. As a result, the node A enters a state in which the communication data is directly stored and the node B stores the proxy communication data. The node A retransmits and the node B tries to perform the first transmission. The retransmission back-off time is set to the longest time as described in the first embodiment. Therefore, the node B obtains the transmission right, and the node B transmits the proxy communication data. The other nodes A, C and D hold the transmission.

ノードBから送信された代理通信データは、ノードDには届かずノードCが受信する。ノードCは、その後、ACKを受信できないので、代理通信データを作成して、代理通信バッファ22に格納する。これにより、ノードAが直接通信データ、ノードBが代理通信データ、ノードCが代理通信データを格納する状態となり、ノードA、Bが再送、ノードCが1回目の送信を行おうとする。よって、ノードCが送信権を得て、ノードCが代理通信データの送信を行う。他のノードA、B、Dは送信を保留する。   The proxy communication data transmitted from the node B does not reach the node D but is received by the node C. Since node C cannot thereafter receive ACK, node C creates proxy communication data and stores it in proxy communication buffer 22. As a result, the node A enters a state in which the communication data is directly stored, the node B stores the proxy communication data, and the node C stores the proxy communication data. The nodes A and B retransmit, and the node C attempts to perform the first transmission. Therefore, the node C obtains the transmission right, and the node C transmits the proxy communication data. The other nodes A, B and D hold the transmission.

ノードCから送信された代理通信データは、ノードDに受信され、ノードDがACKをノードCに送信する。このとき、ノードDでは、ノードAからのデータを受信できたと判断される。ノードCでは、ノードDからのACKを受信すると、代理通信が成功したと判断し、代理通信データを破棄して、代理通信完了通知を格納する。これにより、ノードAが直接通信データ、ノードBが代理通信データ、ノードCが代理通信完了通知を格納する状態となり、ノードA、Bが再送、ノードCが1回目の送信を行おうとする。よって、ノードCが送信権を得て、ノードCが代理通信完了通知の送信を行う。   The proxy communication data transmitted from node C is received by node D, and node D transmits ACK to node C. At this time, node D is determined to have received data from node A. When receiving an ACK from the node D, the node C determines that the proxy communication is successful, discards the proxy communication data, and stores a proxy communication completion notification. As a result, the node A enters a state in which the direct communication data, the node B stores the proxy communication data, and the node C stores the proxy communication completion notification. The nodes A and B retransmit, and the node C attempts to perform the first transmission. Therefore, the node C obtains a transmission right, and the node C transmits a proxy communication completion notification.

ノードCから送信された代理通信完了通知は、ノードAには届かずノードBが受信する。ノードBは、その後、ACKを受信できないので、代理通信データを破棄して、代理通信完了通知を格納する。これにより、ノードAが直接通信データ、ノードB、Cが代理通信完了通知を格納する状態となり、ノードA、Cが再送、ノードBが1回目の送信を行おうとする。よって、ノードBが送信権を得て、ノードBが代理通信完了通知の送信を行う。   The proxy communication completion notification transmitted from the node C does not reach the node A but is received by the node B. Since the node B cannot receive the ACK thereafter, the node B discards the proxy communication data and stores the proxy communication completion notification. As a result, the node A enters a state in which the communication data is directly stored, the nodes B and C store the proxy communication completion notification, the nodes A and C retransmit, and the node B tries to perform the first transmission. Therefore, the node B obtains the transmission right, and the node B transmits a proxy communication completion notification.

ノードBから送信された代理通信完了通知は、ノードAに届き、ノードAからACKがノードBに送信される。このとき、ノードAでは、通信が完了したと判断して、以後の再送処理をキャンセルする。ノードBでは、ACKを受信すると、代理通信完了通知を破棄する。ノードCでは、ノードBから代理通信完了通知を受信すると、代理通信完了通知を破棄する。   The proxy communication completion notification transmitted from node B reaches node A, and ACK is transmitted from node A to node B. At this time, the node A determines that the communication is completed, and cancels the subsequent retransmission processing. When receiving the ACK, the node B discards the proxy communication completion notification. When receiving the proxy communication completion notification from the node B, the node C discards the proxy communication completion notification.

上述した第2実施形態によれば、代理通信データや代理通信完了通知も複数のノードを中継して送信できるようになる。   According to the second embodiment described above, proxy communication data and proxy communication completion notification can also be transmitted via a plurality of nodes.

第3実施形態
以下、第3実施形態における本発明の通信システム1について図15を参照して説明する。第3実施形態は、第2実施形態の変形例である。図15に示す通信システム1において、ノードAは、ノードBと無線通信可能に配置されている。ノードBは、ノードC、Dと無線通信可能に配置されている。ノードCは、ノードB、Dと無線通信可能に配置されている。ノードDは、ノードB、C、Eと無線通信可能に配置されている。ノードEは、ノードDと無線通信可能に配置されている。
Third Embodiment Hereinafter, a communication system 1 of the present invention in a third embodiment will be described with reference to FIG. The third embodiment is a modification of the second embodiment. In the communication system 1 illustrated in FIG. 15, the node A is arranged to be able to perform wireless communication with the node B. Node B is arranged so as to be able to wirelessly communicate with nodes C and D. The node C is arranged so as to be able to wirelessly communicate with the nodes B and D. The node D is arranged so as to be able to wirelessly communicate with the nodes B, C, and E. The node E is arranged so as to be able to wirelessly communicate with the node D.

第2実施形態において、中継ノードは、他のノードからの代理通信完了通知を受信したときに、その受信した代理通信完了通知のデータDと同じ代理通信データを格納している場合、代理通信完了通知を送信するようにしていた。即ち、代理通信完了通知を送信元のノードに送り返す際のルートを決めていなかった。このため、図15に示す通信システム1においては下記に示すような問題が発生する恐れがあった。図15に示す通信システム1では、ノードAからノードEへの通信は、ノードB、Dを中継してノードEに届き、代理通信完了通知もノードB、Dを中継してノードAに送り返される。   In the second embodiment, when the relay node stores the proxy communication data that is the same as the received proxy communication completion notification data D when it receives the proxy communication completion notification from another node, the proxy communication is completed. A notification was sent. That is, the route for returning the proxy communication completion notification to the transmission source node has not been determined. For this reason, in the communication system 1 shown in FIG. 15, the following problems may occur. In the communication system 1 shown in FIG. 15, the communication from the node A to the node E is relayed to the nodes E through the nodes B and D, and the proxy communication completion notification is also sent back to the node A through the nodes B and D. .

しかしながら、ノードCではノードBからの代理通信データを受信し、ノードDからの代理通信完了通知が受信できるため、ノードCからも代理通信完了通知が送信され、通信状況に変化がない場合は無駄な通信となっていた。そこで、第3実施形態では、目的ノードまで代理通信したノードのリストを代理通信データに付加して、リストの逆の順番に代理通信完了通知を送信する。通信事情が変わり、リストに沿って代理通信完了通知を送信できない場合は、第2実施形態と同様に代理通信完了通知を送信する。   However, since the node C can receive the proxy communication data from the node B and can receive the proxy communication completion notification from the node D, the proxy communication completion notification is also transmitted from the node C, and it is useless when there is no change in the communication status. Communication. Therefore, in the third embodiment, a list of nodes that have performed proxy communication up to the target node is added to the proxy communication data, and proxy communication completion notifications are transmitted in the reverse order of the list. When the communication situation changes and the proxy communication completion notification cannot be transmitted along the list, the proxy communication completion notification is transmitted as in the second embodiment.

第3実施形態の直接通信データ、代理通信データ、代理通信完了通知のフレーム構成は、図16に示すようになっている。第3実施形態においては、代理通信リストLが追加されている。代理通信リストLには、代理通信を行った中継ノードがそのルートが分かるように順番に格納される。   The frame configuration of the direct communication data, proxy communication data, and proxy communication completion notification of the third embodiment is as shown in FIG. In the third embodiment, a proxy communication list L is added. In the proxy communication list L, relay nodes that have performed proxy communication are stored in order so that their routes can be known.

次に、上記通信ノード20(ノードA〜E)の構成について図17を参照して以下説明する。なお、同図において、上述した第2実施形態ですでに説明した図10に示す構成と同等の部分については同一符号を付してその詳細な説明を省略する。同図に示すように、マイコン24は、第2実施形態で説明した機能24C〜24Mに加えてさらに、リスト作成機能24Oと、リスト確認機能24Pと、を備えている。   Next, the configuration of the communication node 20 (nodes A to E) will be described below with reference to FIG. In the figure, the same components as those shown in FIG. 10 already described in the second embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. As shown in the figure, the microcomputer 24 further includes a list creation function 24O and a list confirmation function 24P in addition to the functions 24C to 24M described in the second embodiment.

リスト作成機能24Oは、自ノード宛でない(送信先アドレスAr1が自ノードでない)直接通信データ又は代理通信データを受信した場合に、その送信元アドレスAs1を受信に応じてバッファ22に格納した代理通信データの代理通信リストLの末尾に追加する。リスト確認機能24Pは、バッファ23に格納した代理通信完了通知の代理通信リストLに従って代理通信完了通知を送信する。   When the list creation function 24O receives direct communication data or proxy communication data that is not addressed to its own node (the destination address Ar1 is not its own node), the proxy communication stores the source address As1 in the buffer 22 in response to reception. It is added to the end of the data proxy communication list L. The list confirmation function 24P transmits a proxy communication completion notification according to the proxy communication list L of the proxy communication completion notification stored in the buffer 23.

次に、上述した通信システム1の動作について説明する。マイコン24は、電源オンに応じて送信処理及び受信処理を実行する。第3実施形態における送信処理は、第1実施形態で説明した図4に示す送信処理と同等である。第1実施形態と大きく異なる点は、ステップS14での処理である。   Next, the operation of the communication system 1 described above will be described. The microcomputer 24 executes transmission processing and reception processing in response to power-on. The transmission process in the third embodiment is equivalent to the transmission process shown in FIG. 4 described in the first embodiment. A significant difference from the first embodiment is the processing in step S14.

第1及び第2実施形態においては、マイコン24は、送信先アドレスAr1にステップS11で送信した代理通信データの送信元アドレスAs2を格納していたが、第3実施形態では異なる。第3実施形態においては、マイコン24は、ステップS11で送信した代理通信データの代理通信リストLを確認し、その末尾に格納されたノードのアドレスを送信先アドレスAr1(=中継先ノード)に格納する。その他は、第1及び第2実施形態と同等であるため、ここでは詳細な説明を省略する。上記代理通信リストLの末尾に格納されたノードは、自ノードの前に代理通信データを送信したノードである。   In the first and second embodiments, the microcomputer 24 stores the transmission source address As2 of the proxy communication data transmitted in step S11 in the transmission destination address Ar1, but is different in the third embodiment. In the third embodiment, the microcomputer 24 checks the proxy communication list L of the proxy communication data transmitted in step S11, and stores the address of the node stored at the end in the destination address Ar1 (= relay destination node). To do. Others are the same as those in the first and second embodiments, and thus detailed description thereof is omitted here. The node stored at the end of the proxy communication list L is a node that has transmitted proxy communication data before its own node.

上述したマイコン24の受信処理について、図18を参照して以下説明する。マイコン24は、ACK/NCKや送信元アドレスAs2が自ノードのデータ以外の信号を、アンテナATから受信すると、受信処理を開始する。受信処理において、マイコン24は、受信した信号の宛先(送信先アドレスAr1)が自ノード宛か否かを判定する(ステップS21)。   The reception process of the microcomputer 24 described above will be described below with reference to FIG. When the microcomputer 24 receives from the antenna AT a signal whose ACK / NCK or source address As2 is other than the data of its own node, the microcomputer 24 starts reception processing. In the reception process, the microcomputer 24 determines whether or not the destination of the received signal (transmission destination address Ar1) is addressed to its own node (step S21).

受信した信号の宛先が自ノード宛でなかった場合(ステップS21でY)、マイコン24は、第2実施形態と同様に、ステップS40〜S42、S28〜S34、S43〜S60を行う。第2実施形態と異なる点は、代理通信バッファ22に代理通信データを格納する際に、その代理通信リストLの末尾に自ノードのアドレスを追加する点である(ステップS83、S84)。その他は、第2実施形態と同様であるため、ここでは詳細な説明を省略する。これにより、代理通信データの代理通信リストLには、その代理通信の中継ノードが順番が分かるように格納される。   When the destination of the received signal is not addressed to its own node (Y in Step S21), the microcomputer 24 performs Steps S40 to S42, S28 to S34, and S43 to S60 as in the second embodiment. The difference from the second embodiment is that when the proxy communication data is stored in the proxy communication buffer 22, the address of the own node is added to the end of the proxy communication list L (steps S83 and S84). Since others are the same as that of 2nd Embodiment, detailed description is abbreviate | omitted here. Thereby, the proxy communication list L of the proxy communication data is stored so that the relay nodes of the proxy communication can be identified in order.

一方、自ノード宛であれば(ステップS21でN)、マイコン24は、受信した信号が直接通信データ又は代理通信データであるか否かを判定する(ステップS22)。直接通信データ又は代理通信データであれば(ステップS22でY)、マイコン24は、第1及び第2実施形態と同様に、ステップS23〜S25を行う。   On the other hand, if it is addressed to its own node (N in step S21), the microcomputer 24 determines whether or not the received signal is direct communication data or proxy communication data (step S22). If it is direct communication data or proxy communication data (Y in step S22), the microcomputer 24 performs steps S23 to S25 as in the first and second embodiments.

また、直接通信データ又は代理通信データでなければ(ステップS22でN)、マイコン24は、代理通信完了通知であるか否かを判定する(ステップS26)。代理通信完了通知であれば(ステップS26でY)、マイコン24は、送信元アドレスAs2が自ノードであるか否かを判定する(ステップS80)。送信元アドレスAs2が自ノードであれば(ステップS80でY)、マイコン24は、代理通信完了通知の通信成功と判断して、ACKを送信すると共に直接通信バッファ21をクリアした後(ステップS27)、受信処理を終了する。   If it is not direct communication data or proxy communication data (N in step S22), the microcomputer 24 determines whether it is a proxy communication completion notification (step S26). If it is a proxy communication completion notification (Y in step S26), the microcomputer 24 determines whether or not the transmission source address As2 is its own node (step S80). If the transmission source address As2 is its own node (Y in step S80), the microcomputer 24 determines that the communication of the proxy communication completion notification is successful, transmits ACK, and directly clears the communication buffer 21 (step S27). The reception process is terminated.

これに対して、マイコン24は、送信元アドレスAr2が自ノードでなければ(ステップS80でN)、受信した代理通信完了通知の代理通信リストLの末尾に格納された自ノードのアドレスを削除する(ステップS81)。その後、マイコン24は、受信した代理通信完了通知の送信先アドレスAr1を代理通信リストLの末尾のアドレスにし、送信元アドレスAs1を自ノードアドレスにして、代理通信完了通知バッファ23に格納した後(ステップS82)、受信処理を終了する。また、代理通信完了通知でもなければ(ステップS26でN)、マイコン24は何もせずに受信処理を終了する。   On the other hand, if the transmission source address Ar2 is not the own node (N in step S80), the microcomputer 24 deletes the address of the own node stored at the end of the proxy communication list L of the received proxy communication completion notification. (Step S81). Thereafter, the microcomputer 24 stores the destination address Ar1 of the received proxy communication completion notification in the proxy communication completion notification buffer 23 with the destination address Ar1 as the last address of the proxy communication list L and the source address As1 as its own node address ( Step S82), the reception process is terminated. If it is not a proxy communication completion notification (N in step S26), the microcomputer 24 ends the reception process without doing anything.

次に、上述した通信システム1の動作について図19のシーケンスを参照して以下説明する。まず、ノードAからノードBへのデータ送信要求が発生したときの通信システムの動作について図19を参照して説明する。以下の説明において、各ノードA〜Dが行う動作は、実際には各ノードA〜Eのマイコン24が実行する。   Next, the operation of the communication system 1 described above will be described below with reference to the sequence of FIG. First, the operation of the communication system when a data transmission request from the node A to the node B occurs will be described with reference to FIG. In the following description, the operations performed by the nodes A to D are actually executed by the microcomputers 24 of the nodes A to E.

ノードAで、ノードEへのデータ通信要求が発生すると、ノードAでは、直接通信データを送信する。この直接通信データは、送信元アドレスAs1及びAs2がノードA、送信先アドレスAr1及びAr2をノードD、種別Sを直接通信とし、代理通信リストLがブランクとなっている。   When the node A issues a data communication request to the node E, the node A directly transmits communication data. In this direct communication data, the source addresses As1 and As2 are the node A, the destination addresses Ar1 and Ar2 are the node D, the type S is the direct communication, and the proxy communication list L is blank.

ノードAからの直接通信データは、ノードEには届かずにノードBが受信する。ノードBは、その後、ACKを受信できないので、代理通信データを作成して、代理通信バッファ22に格納する。この代理通信データは、送信元アドレスAs1がノードB、送信元アドレスAs2がノードA、送信先アドレスAr1及びAr2がノードE、種別Sが代理通信、代理通信リストLがノードBとなっている。これにより、ノードAが直接通信データ、ノードBが代理通信データを格納する状態となり、ノードAが再送、ノードBが1回目の送信を行おうとする。再送のバックオフ時間は、第1実施形態で説明した通り、最長時間に設定されている。よって、ノードBが送信権を得て、ノードBが代理通信データの送信を行う。他のノードA、C〜Eは送信を保留する。   The direct communication data from the node A is received by the node B without reaching the node E. Since the node B cannot receive the ACK thereafter, the node B creates proxy communication data and stores it in the proxy communication buffer 22. In this proxy communication data, the source address As1 is node B, the source address As2 is node A, the destination addresses Ar1 and Ar2 are node E, the type S is proxy communication, and the proxy communication list L is node B. As a result, the node A enters a state in which the communication data is directly stored and the node B stores the proxy communication data. The node A retransmits and the node B tries to perform the first transmission. The retransmission back-off time is set to the longest time as described in the first embodiment. Therefore, the node B obtains the transmission right, and the node B transmits the proxy communication data. The other nodes A, C to E hold transmission.

ノードBから送信された代理通信データは、ノードEには届かずノードC及びDが受信する。ノードC及びDは、その後、ACKを受信できないので、代理通信データを作成して、代理通信バッファ22に格納する。このとき、ノードC、Dが格納する代理通信データはそれぞれ、送信元アドレスAs1がノードC、D、送信元アドレスAs2がノードA、送信先アドレスAr1及びAr2がノードE、種別Sを代理通信、代理通信リストLの末尾にノードC、Dがそれぞれ追加されている。これにより、ノードAが直接通信データ、ノードB〜Dが代理通信データを格納する状態となり、ノードA、Bが再送、ノードC、Dが1回目の送信を行おうとする。   The proxy communication data transmitted from the node B does not reach the node E and is received by the nodes C and D. Since the nodes C and D cannot thereafter receive ACK, the proxy communication data is created and stored in the proxy communication buffer 22. At this time, the proxy communication data stored in the nodes C and D are respectively the source address As1 for the nodes C and D, the source address As2 for the node A, the destination addresses Ar1 and Ar2 for the node E, and the type S for proxy communication. Nodes C and D are added to the end of the proxy communication list L, respectively. As a result, the node A enters a state in which the communication data is directly stored, the nodes B to D store the proxy communication data, the nodes A and B are retransmitted, and the nodes C and D try to perform the first transmission.

このとき、ノードCのバックオフ時間が、ノードDのバックオフ時間より短ければ、ノードCが送信権を得て、ノードCが代理通信データを送信し、ノードA、ノードB及びノードDは送信を保留する。もちろん、ノードDのバックオフ時間が、ノードCのバックオフ時間より短ければ、ノードDが送信権を得るが、ここではノードCが送信権を得た例について説明する。   At this time, if the back-off time of node C is shorter than the back-off time of node D, node C obtains the transmission right, node C transmits proxy communication data, and nodes A, B, and D transmit Hold on. Of course, if the back-off time of the node D is shorter than the back-off time of the node C, the node D gets the transmission right. Here, an example in which the node C has the transmission right will be described.

ノードCからの代理通信データは、ノードEには届かずノードDが受信する。ノードDは、すでに同じデータDを有する代理通信データを保有しているので何もしない。これにより、ノードA〜Cが再送、ノードDが1回目の送信を行おうとする。よって、ノードDが送信権を得てノードDが代理通信データの送信を行う。他のノードA〜Cは送信を保留する。   The proxy communication data from the node C does not reach the node E but is received by the node D. Since node D already has proxy communication data having the same data D, it does nothing. As a result, the nodes A to C retransmit, and the node D tries to perform the first transmission. Therefore, the node D obtains the transmission right and the node D transmits the proxy communication data. The other nodes A to C hold the transmission.

ノードDから送信された代理通信データは、ノードEに受信され、ノードEがACKをノードDに送信する。このとき、ノードEでは、ノードAからのデータを受信できたと判断される。ノードDでは、ノードEからのACKを受信すると、代理通信が成功したと判断し、代理通信データを破棄して、代理通信完了通知を格納する。この代理通信完了通知の代理通信リストLには、破棄する代理通信データの代理通信リストLからその末尾に格納された自ノードのアドレスを削除したものが格納される。また、送信元アドレスAs1にはノードD、送信元アドレスAr2にはノードA、送信先アドレスAr1には代理通信リストLの末尾に格納されたノードB、送信先アドレスAs2にはノードEが格納される。これにより、ノードA〜Cが再送、ノードDが1回目の送信を行おうとする。よって、ノードDが送信権を得て、ノードDが代理通信完了通知の送信を行う。   The proxy communication data transmitted from node D is received by node E, and node E transmits ACK to node D. At this time, it is determined that node E has received data from node A. When receiving an ACK from the node E, the node D determines that the proxy communication is successful, discards the proxy communication data, and stores a proxy communication completion notification. In the proxy communication list L of the proxy communication completion notification, the proxy communication list L of the proxy communication data to be discarded is stored by deleting the address of the own node stored at the end thereof. Further, the node D is stored in the source address As1, the node A is stored in the source address Ar2, the node B is stored at the end of the proxy communication list L in the destination address Ar1, and the node E is stored in the destination address As2. The As a result, the nodes A to C retransmit, and the node D tries to perform the first transmission. Therefore, the node D obtains the transmission right, and the node D transmits a proxy communication completion notification.

ノードDから送信された代理通信完了通知は、ノードB及びCが受信する。ノードBは、送信先アドレスAr2に自ノードが格納された代理通信完了通知を受信すると、ACKを送信する。さらに、ノードBでは、代理通信バッファ22から代理通信データをクリアすると共に、受信した代理通信完了通知の代理通信リストLからその端末に格納された自ノードのアドレスを削除し、送信先アドレスAs1を削除した後の代理通信リストLの端末に格納されたノードAに書き換えて、代理通信完了通知バッファ23に格納する。   Node B and C receive the proxy communication completion notification transmitted from node D. When receiving the proxy communication completion notification in which the node B is stored in the transmission destination address Ar2, the node B transmits ACK. Further, the node B clears the proxy communication data from the proxy communication buffer 22, deletes the address of its own node stored in the terminal from the proxy communication list L of the received proxy communication completion notification, and sets the destination address As1. The data is rewritten to the node A stored in the terminal in the proxy communication list L after being deleted, and stored in the proxy communication completion notification buffer 23.

このとき、ノードCは、送信先アドレスAr2に自ノードが格納されていない代理通信完了通知を受信した後、ACKを受信すると、代理通信データを削除して、以降、代理通信データも代理通信完了通知も送信しない。なお、ノードBからノードC間の通信に障害が生じ、ノードBからACKが受信できないときは、ノードCから代理通信完了通知が送信される。   At this time, the node C deletes the proxy communication data when receiving the ACK after receiving the proxy communication completion notification in which the own node is not stored in the transmission destination address Ar2, and thereafter, the proxy communication data also completes the proxy communication. Do not send notifications. When a failure occurs in communication between the node B and the node C and the ACK cannot be received from the node B, the proxy communication completion notification is transmitted from the node C.

ノードBから送信された代理通信完了通知は、ノードAが受信する。ノードBの代理通信完了通知がノードAに届くと、ノードAは、ACKを送信すると共に直接通信バッファ21をクリアして直接通信データの再送を停止する。ノードBでは、ノードAからのACKを受信すると、代理通信バッファ22及び代理通信完了通知バッファ23をクリアして、代理通信完了通知の再送を停止する。   The proxy communication completion notification transmitted from the node B is received by the node A. When the node B proxy communication completion notification arrives at the node A, the node A transmits an ACK and clears the direct communication buffer 21 to stop the direct communication data retransmission. When the node B receives the ACK from the node A, the proxy communication buffer 22 and the proxy communication completion notification buffer 23 are cleared, and the retransmission of the proxy communication completion notification is stopped.

上述した第3実施形態によれば、代理通信データを送信するときと、代理通信完了通知を返信するときとで、通信状態が変わらなければ、代理通信データの中継先ノードを中継して、代理通信完了通知を送信元のノードに送信することができ、代理通信データの中継先ノードでないノードから代理通信完了通知が送信されることがない。また、代理通信データを送信した後、代理通信データの経路上でなんらかの障害が発生したときは、受信通知を受信できないため、中継先ノードでないノードを中継して代理通信完了通知を送信することができる。   According to the third embodiment described above, if the communication state does not change between when proxy communication data is transmitted and when proxy communication completion notification is returned, the proxy communication data is relayed to the relay destination node. The communication completion notification can be transmitted to the transmission source node, and the proxy communication completion notification is not transmitted from a node that is not the relay communication node of the proxy communication data. In addition, after sending proxy communication data, if any failure occurs on the route of proxy communication data, since reception notification cannot be received, proxy communication completion notification may be sent by relaying a node that is not a relay destination node. it can.

なお、上述した実施形態によれば、通信ノード20の数や通信ノード20の配置位置は図1に限ったものではない。通信ノード20の数は、2つ以上あればよい。通信ノード20の配置位置も少なくとも1つのノードと通信可能な位置に配されていればよい。   In addition, according to embodiment mentioned above, the number of the communication nodes 20 and the arrangement position of the communication node 20 are not restricted to FIG. The number of communication nodes 20 may be two or more. The communication node 20 may be arranged at a position where it can communicate with at least one node.

また、直接通信データ、代理通信データ、代理通信完了通知の通信フレームも図2や図16に限ったものではない。各要素の順番は限定しない。また、他の通信制御情報を追加してもよい。   Also, the communication frames for direct communication data, proxy communication data, and proxy communication completion notification are not limited to those shown in FIGS. The order of each element is not limited. Further, other communication control information may be added.

また、上述した実施形態によれば、通信種別Sのマーカーによってデータの種別を判定していたが、本発明はこれに限ったものではない。他のマーカーやシーケンス番号を利用してもよい。   Further, according to the above-described embodiment, the data type is determined by the communication type S marker, but the present invention is not limited to this. Other markers and sequence numbers may be used.

また、上述した実施形態によれば、目的ノードを複数のノードの1つとしていたが、これに限ったものではない。目的ノードを2つにしてもよいし、通信システム1を構成する全てのノード(ユニキャスト)としてもよい。   Further, according to the above-described embodiment, the target node is one of the plurality of nodes, but the present invention is not limited to this. Two target nodes may be used, or all nodes (unicast) constituting the communication system 1 may be used.

また、前述した実施形態は本発明の代表的な形態を示したに過ぎず、本発明は、実施形態に限定されるものではない。即ち、本発明の骨子を逸脱しない範囲で種々変形して実施することができる。   Further, the above-described embodiments are merely representative forms of the present invention, and the present invention is not limited to the embodiments. That is, various modifications can be made without departing from the scope of the present invention.

1 通信システム
20 通信ノード
24 マイコン(直接通信手段、受信通知手段、第1代理通信手段、第2代理通信手段、第1代理通信完了通知手段、第2代理通信完了通知手段、通信衝突回避手段、バックオフ時間延長手段、送信停止手段)
A〜D ノード(通信ノード)
1 communication system 20 communication node 24 microcomputer (direct communication means, reception notification means, first proxy communication means, second proxy communication means, first proxy communication completion notification means, second proxy communication completion notification means, communication collision avoidance means, Backoff time extension means, transmission stop means)
A to D nodes (communication nodes)

Claims (5)

無線通信可能な通信ノードを複数有して無線メッシュネットワークを構成する通信システムにおいて、
前記複数の通信ノードの各々が、
データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、
受信通知を送信する受信通知手段と、
自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、
前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、
電波が検出されていない状態が所定時間継続した後、バックオフ時間経過するのを待って再び電波を検出しなかったときに送信を行う通信衝突回避手段と、
自ノード宛でない前記代理通信データを受信した後、前記受信通知を受信し、かつ、前記受信した代理通信データと同じものを前記第1代理通信手段が送信しようとしている場合、前記バックオフ時間を延長するバックオフ時間延長手段と、
自ノード宛でない前記代理通信完了通知を受信すると、前記第1代理通信手段による前記代理通信データの送信を停止する送信停止手段と、を備え、
前記受信通知手段は、前記自ノード宛の直接通信データ及び前記代理通信データを受信したとき、前記受信通知を送信する
ことを特徴とする通信システム。
In a communication system having a plurality of communication nodes capable of wireless communication and configuring a wireless mesh network,
Each of the plurality of communication nodes is
When a data transmission request occurs, direct communication means for transmitting direct communication data including the data, addressed to a target node, and having a node from which the data transmission request is generated as a transmission source;
A reception notification means for transmitting a reception notification;
If the direct communication data not addressed to the own node is received and then the reception notification cannot be received, the target node of the direct communication data including the data included in the direct communication data and the transmission source of the direct communication data First proxy communication means for transmitting proxy communication data addressed to
A first proxy communication completion notification means for transmitting a proxy communication completion notification addressed to a transmission source of the direct communication data upon receiving the reception notification after transmitting the proxy communication data;
A communication collision avoiding means for transmitting when a radio wave is not detected again after waiting for the back-off time to elapse after a state where the radio wave is not detected continues for a predetermined time;
After receiving the proxy communication data not addressed to its own node, when receiving the reception notification and the first proxy communication means trying to transmit the same proxy communication data as received, the back-off time is set. Means for extending the back-off time,
A transmission stop unit that stops transmission of the proxy communication data by the first proxy communication unit when receiving the proxy communication completion notification not addressed to the own node;
The reception notification means transmits the reception notification when receiving the direct communication data addressed to the own node and the proxy communication data.
無線通信可能な通信ノードを複数有して無線メッシュネットワークを構成する通信システムにおいて、
前記複数の通信ノードの各々が、
データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、
受信通知を送信する受信通知手段と、
自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、
前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、
自ノード宛でない前記代理通信データを受信し、その後、前記受信通知を受信できなかった場合、前記代理通信データの送信先を送信先とする前記代理通信データを送信する第2代理通信手段と、
自ノード宛でない前記代理通信完了通知を受信し、その後、前記受信通知を受信できなかった場合、前記代理通信完了通知の送信先を送信先とする代理通信完了通知を送信する第2代理通信完了通知手段と、を備え、
前記受信通知手段は、前記自ノード宛の直接通信データ、前記代理通信データ及び前記代理通信完了通知を受信したとき、前記受信通知を送信する
ことを特徴とする通信システム。
In a communication system having a plurality of communication nodes capable of wireless communication and configuring a wireless mesh network,
Each of the plurality of communication nodes is
When a data transmission request occurs, direct communication means for transmitting direct communication data including the data, addressed to a target node, and having a node from which the data transmission request is generated as a transmission source;
A reception notification means for transmitting a reception notification;
If the direct communication data not addressed to the own node is received and then the reception notification cannot be received, the target node of the direct communication data including the data included in the direct communication data and the transmission source of the direct communication data First proxy communication means for transmitting proxy communication data addressed to
A first proxy communication completion notification means for transmitting a proxy communication completion notification addressed to a transmission source of the direct communication data upon receiving the reception notification after transmitting the proxy communication data;
Receiving the proxy communication data is not addressed to the own node, then, if unable to receive the reception notification, and the second proxy communication unit configured to transmit the proxy communication data of which destination is the destination of the proxy communication data,
When the proxy communication completion notification that is not addressed to the own node is received, and then the reception notification cannot be received, the second proxy communication completion that transmits the proxy communication completion notification with the transmission destination of the proxy communication completion notification as the transmission destination And a notification means,
The reception notification means, when receiving the direct communication data addressed to the own node, the proxy communication data, and the proxy communication completion notification, transmits the reception notification.
前記第1代理通信手段及び前記第2代理通信手段が、前記代理通信データの中継ノードを表す代理通信リストに自ノードを加えた前記代理通信データを送信し、
前記第1代理通信完了通知手段が、前記送信した代理通信データの代理通信リストから自ノードの前に代理通信データを送信したノードを求めて、求めたノードを中継先ノードとした前記代理通信完了通知を送信し、
前記第2代理通信完了通知手段が、中継先ノードが自ノードである前記代理通信完了通知を受信したとき、前記受信した前記代理通信完了通知の代理通信リストから自ノードの前に代理通信データを送信したノードを求めて、求めたノードを中継先ノードとした前記代理通信完了通知を送信し、中継先ノードが自ノードでない前記代理通信完了通知を受信したとき、前記中継先ノードからの前記代理通信完了通知の受信通知を受信すると、代理通信完了通知の送信を停止する
ことを特徴とする請求項2に記載の通信システム。
The first proxy communication means and the second proxy communication means transmit the proxy communication data obtained by adding the own node to a proxy communication list representing a relay node of the proxy communication data;
The first proxy communication completion notifying means obtains a node that has transmitted proxy communication data before its own node from the proxy communication list of the transmitted proxy communication data, and completes the proxy communication with the obtained node as a relay destination node. Send notifications,
When the second proxy communication completion notification means receives the proxy communication completion notification whose relay destination node is the local node, proxy communication data is sent before the local node from the proxy communication list of the received proxy communication completion notification. When the proxy communication completion notification is transmitted to the node that transmitted the proxy communication completion notification with the determined node as a relay destination node, and the relay destination node receives the proxy communication completion notification that is not its own node, the proxy from the relay destination node 3. The communication system according to claim 2, wherein when receiving the reception notification of the communication completion notification, transmission of the proxy communication completion notification is stopped.
無線メッシュネットワークを構成する通信ノードにおいて、
データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、
受信通知を送信する受信通知手段と、
自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、
前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、
電波が検出されていない状態が所定時間継続した後、バックオフ時間経過するのを待って再び電波を検出しなかったときに送信を行う通信衝突回避手段と、
自ノード宛でない前記代理通信データを受信した後、前記受信通知を受信し、かつ、前記受信した代理通信データと同じものを前記第1代理通信手段が送信しようとしている場合、前記バックオフ時間を延長するバックオフ時間延長手段と、
自ノード宛でない前記代理通信完了通知を受信すると、前記第1代理通信手段による前記代理通信データの送信を停止する送信停止手段と、を備え、
前記受信通知手段は、前記自ノード宛の直接通信データ及び前記代理通信データを受信したとき、前記受信通知を送信する
ことを特徴とする通信ノード。
In a communication node constituting a wireless mesh network,
When a data transmission request occurs, direct communication means for transmitting direct communication data including the data, addressed to a target node, and having a node from which the data transmission request is generated as a transmission source;
A reception notification means for transmitting a reception notification;
If the direct communication data not addressed to the own node is received and then the reception notification cannot be received, the target node of the direct communication data including the data included in the direct communication data and the transmission source of the direct communication data First proxy communication means for transmitting proxy communication data addressed to
A first proxy communication completion notification means for transmitting a proxy communication completion notification addressed to a transmission source of the direct communication data upon receiving the reception notification after transmitting the proxy communication data;
A communication collision avoiding means for transmitting when a radio wave is not detected again after waiting for the back-off time to elapse after a state where the radio wave is not detected continues for a predetermined time;
After receiving the proxy communication data not addressed to its own node, when receiving the reception notification and the first proxy communication means trying to transmit the same proxy communication data as received, the back-off time is set. Means for extending the back-off time,
A transmission stop unit that stops transmission of the proxy communication data by the first proxy communication unit when receiving the proxy communication completion notification not addressed to the own node;
The reception node is configured to transmit the reception notification when receiving the direct communication data addressed to the own node and the proxy communication data.
無線メッシュネットワークを構成する通信ノードにおいて、
データの送信要求が発生すると、前記データを含み、目的ノード宛、前記データの送信要求が発生するノードを送信元とする直接通信データを送信する直接通信手段と、
受信通知を送信する受信通知手段と、
自ノード宛でない前記直接通信データを受信し、その後、前記受信通知を受信できなかった場合、前記直接通信データに含まれるデータ及び前記直接通信データの送信元を含んだ前記直接通信データの目的ノード宛の代理通信データを送信する第1代理通信手段と、
前記代理通信データを送信した後に、前記受信通知を受信すると、前記直接通信データの送信元宛の代理通信完了通知を送信する第1代理通信完了通知手段と、
自ノード宛でない前記代理通信データを受信し、その後、前記受信通知を受信できなかった場合、前記代理通信データの送信先を送信先とする前記代理通信データを送信する第2代理通信手段と、
自ノード宛でない前記代理通信完了通知を受信し、その後、前記受信通知を受信できなかった場合、前記代理通信完了通知の送信先を送信先とする代理通信完了通知を送信する第2代理通信完了通知手段と、を備え、
前記受信通知手段は、前記自ノード宛の直接通信データ、前記代理通信データ及び前記代理通信完了通知を受信したとき、前記受信通知を送信する
ことを特徴とする通信ノード。
In a communication node constituting a wireless mesh network,
When a data transmission request occurs, direct communication means for transmitting direct communication data including the data, addressed to a target node, and having a node from which the data transmission request is generated as a transmission source;
A reception notification means for transmitting a reception notification;
If the direct communication data not addressed to the own node is received and then the reception notification cannot be received, the target node of the direct communication data including the data included in the direct communication data and the transmission source of the direct communication data First proxy communication means for transmitting proxy communication data addressed to
A first proxy communication completion notification means for transmitting a proxy communication completion notification addressed to a transmission source of the direct communication data upon receiving the reception notification after transmitting the proxy communication data;
Receiving the proxy communication data is not addressed to the own node, then, if unable to receive the reception notification, and the second proxy communication unit configured to transmit the proxy communication data of which destination is the destination of the proxy communication data,
When the proxy communication completion notification that is not addressed to the own node is received, and then the reception notification cannot be received, the second proxy communication completion that transmits the proxy communication completion notification with the transmission destination of the proxy communication completion notification as the transmission destination And a notification means,
The reception node is configured to transmit the reception notification when receiving the direct communication data addressed to the own node, the proxy communication data, and the proxy communication completion notification.
JP2013269485A 2013-04-22 2013-12-26 Communication system and communication node Active JP6309267B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013269485A JP6309267B2 (en) 2013-04-22 2013-12-26 Communication system and communication node

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013089417 2013-04-22
JP2013089417 2013-04-22
JP2013269485A JP6309267B2 (en) 2013-04-22 2013-12-26 Communication system and communication node

Publications (2)

Publication Number Publication Date
JP2014225859A JP2014225859A (en) 2014-12-04
JP6309267B2 true JP6309267B2 (en) 2018-04-11

Family

ID=52124208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013269485A Active JP6309267B2 (en) 2013-04-22 2013-12-26 Communication system and communication node

Country Status (1)

Country Link
JP (1) JP6309267B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6325499B2 (en) * 2015-09-17 2018-05-16 双葉電子工業株式会社 Wireless device, network system, and control method
WO2017188302A1 (en) 2016-04-26 2017-11-02 京セラ株式会社 Relay node and wireless terminal
JP6811105B2 (en) * 2017-01-24 2021-01-13 株式会社Kddi総合研究所 Controls, relays, control methods, and programs
JP7207882B2 (en) * 2018-01-25 2023-01-18 矢崎総業株式会社 Wireless communication terminal and communication control method
CN110087212A (en) * 2018-01-25 2019-08-02 矢崎总业株式会社 Wireless communication terminal and communication control method
JP2020039028A (en) * 2018-09-03 2020-03-12 矢崎総業株式会社 Communication system, repeating installation and communication method
JP2020065222A (en) * 2018-10-19 2020-04-23 矢崎総業株式会社 Communication system, relay device, and communication method
JP7299590B2 (en) * 2019-03-07 2023-06-28 矢崎総業株式会社 Communication system, relay device and relay method
JP7328007B2 (en) * 2019-05-29 2023-08-16 矢崎総業株式会社 Wireless communication node and wireless communication system
JP7287859B2 (en) * 2019-08-06 2023-06-06 矢崎総業株式会社 Wireless communication node and wireless communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227642A (en) * 2007-03-09 2008-09-25 Hitachi Ltd Retransmission control method and radio communication system
JP5760175B2 (en) * 2011-03-23 2015-08-05 パナソニックIpマネジメント株式会社 Wireless communication system, relay device and relay device program, wireless terminal and wireless terminal program

Also Published As

Publication number Publication date
JP2014225859A (en) 2014-12-04

Similar Documents

Publication Publication Date Title
JP6309267B2 (en) Communication system and communication node
CN110073695B (en) Node and method performed by a node operable in a mesh communications network for routing received packets to a destination
KR102047848B1 (en) Restoration Methods of IoT Control Networks and Systems Thereof
JP6354434B2 (en) Multi-hop network failure detection method and node
US10588173B2 (en) Wi-Fi mesh fire detection system
JP6197468B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
JP2018093481A (en) Data transmission method and apparatus
JP6408580B2 (en) Method and node apparatus for operating a node in a network
JP5720793B2 (en) Data transfer method and node apparatus using the same
CN108900982B (en) Data forwarding method and device
US9451524B2 (en) Wireless networking with flexibly-ordered relayers
US11134412B2 (en) Wireless communication device, wireless communication method and non-transitory computer readable medium
JP2014204437A (en) Acquisition of downlink routing, maintenance method, and device
CN102932116B (en) Link state advertisement information confirmation method and equipment
JP2014522593A (en) Method, node, and system for determining fault indication state
WO2015194134A1 (en) Communications state estimation device, communications state estimation method, and storage medium that stores communications state estimation program
JP6459558B2 (en) Wireless communication apparatus, wireless communication method, and wireless communication program
US10420012B2 (en) Adaptive unicast timeout for a wireless network having optimized routing
JP4613967B2 (en) Communication path setting method, communication path setting program, communication terminal, wireless network system
JP5204699B2 (en) Wireless polling system
JP4526127B2 (en) Communication method, apparatus and program for retransmitting management traffic in in-band management network
JP4890909B2 (en) Communication system and communication method.
JP3441957B2 (en) Location registration control method
JP2015170971A (en) Wireless communication system
US9270573B2 (en) Node apparatus, data relay method and computer-readable recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171003

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170929

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180221

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: 20180306

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180314

R150 Certificate of patent or registration of utility model

Ref document number: 6309267

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250