JP2011114424A - Communication system, and communication device - Google Patents

Communication system, and communication device Download PDF

Info

Publication number
JP2011114424A
JP2011114424A JP2009266935A JP2009266935A JP2011114424A JP 2011114424 A JP2011114424 A JP 2011114424A JP 2009266935 A JP2009266935 A JP 2009266935A JP 2009266935 A JP2009266935 A JP 2009266935A JP 2011114424 A JP2011114424 A JP 2011114424A
Authority
JP
Japan
Prior art keywords
communication
packet
communication device
relaying
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009266935A
Other languages
Japanese (ja)
Other versions
JP2011114424A5 (en
JP5514520B2 (en
Inventor
Manabu Koyama
学 小山
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.)
MegaChips Corp
Original Assignee
MegaChips 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 MegaChips Corp filed Critical MegaChips Corp
Priority to JP2009266935A priority Critical patent/JP5514520B2/en
Publication of JP2011114424A publication Critical patent/JP2011114424A/en
Publication of JP2011114424A5 publication Critical patent/JP2011114424A5/ja
Application granted granted Critical
Publication of JP5514520B2 publication Critical patent/JP5514520B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve the reliability of the communication of a communication system utilizing cable communication and radio communication. <P>SOLUTION: The communication system includes a first communication device and a plurality of second communication devices. The second communication device is capable of transmitting and receiving packets by a plurality of communication unit including both of a cable system and a radio system. The second communication device relays a first packet transmitted from the first communication device, and also relays a second packet for responding to the first packet. When relaying the second packet, the second communication device relays the second packet so as to trace back a route that the first packet has taken. The second communication device receives the first packet having the same identification information by both of the cable system and the radio system, and when the signal quality of the first packet received by the cable system is at or below a preset threshold, relays the first packet received by the radio system without relaying the first packet received by the cable system. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、通信システムおよび当該通信システムを構成する通信装置に係る。   The present invention relates to a communication system and a communication apparatus constituting the communication system.

従来より有線または無線による通信方式が利用されており、最近では有線通信の一つとして電力線を利用した電力線通信(Power Line Communication:PLC)が実用化されている。また、有線通信と無線通信との両方式を用いた通信システムが例えば特許文献1,2に開示されている。   Conventionally, wired or wireless communication methods have been used, and recently, power line communication (Power Line Communication: PLC) using a power line has been put into practical use as one of wired communication. Further, a communication system using both wired communication and wireless communication is disclosed in Patent Documents 1 and 2, for example.

特許文献1に記載された通信システムは、マスタ動作を行う無線ホストと、無線ホストと無線リンクにより通信を行う有線/無線ブリッジ装置と、有線/無線ブリッジ装置と有線リンクによりスレーブ動作の通信を行う複数のデバイスとを有している。この通信システムでは、有線/無線ブリッジ装置が無線リンクの通信帯域に応じて複数のデバイスとの転送制御を行う。   The communication system described in Patent Document 1 performs communication of a slave operation using a wireless host that performs a master operation, a wired / wireless bridge device that communicates with the wireless host via a wireless link, and a wired link with the wired / wireless bridge device. A plurality of devices. In this communication system, a wired / wireless bridge device performs transfer control with a plurality of devices according to a communication band of a wireless link.

また、特許文献2に記載された通信システムは、パーソナルコンピュータや携帯電話機等のエンド機器と、ルータやHUB等のリンク機器とを含んでいる。エンド機器およびリンク機器は、それぞれが有する通信インターフェース部によりネットワーク上の複数の有線または無線のリンクを介して各機器とデータを送受信する。   The communication system described in Patent Document 2 includes end devices such as personal computers and mobile phones, and link devices such as routers and HUBs. The end device and the link device transmit / receive data to / from each device via a plurality of wired or wireless links on the network by a communication interface unit included in each end device and link device.

エンド機器およびリンク機器は、リンク情報が格納されるリンクデータベースと、機器情報が格納される機器データベースと、機器間の通信経路の情報が格納される経路テーブル(リンクデータベースおよび機器データベースに基づいて作成される)とを有している。そして、エンド機器およびリンク機器は、自機とリンクできる機器を探索するリンク探索処理と、リンクした機器とリンク情報や機器情報等を交換する情報交換処理と、各機器間の通信経路の構築、切り替え、管理等を行う経路管理処理とを繰り返し実行する。   End devices and link devices are a link database that stores link information, a device database that stores device information, and a route table that stores information about communication paths between devices (created based on the link database and device database) ). And, the end device and the link device include a link search process for searching for a device that can be linked to the own device, an information exchange process for exchanging link information and device information with the linked device, and construction of a communication path between the devices, The route management process for switching, managing, etc. is repeatedly executed.

そして、各機器は、上記の各種データベースおよび各種処理によって、通信相手の通信装置との間に確立された通信経路の通信状況をそれぞれ監視し、通信状況が変化したとき、通信相手との通信に用いる通信経路を、該通信相手の通信装置との間に確立可能な他の通信経路へ切り替える。   Each device monitors the communication status of the communication path established with the communication device of the communication partner by the above-described various databases and various processes, and communicates with the communication partner when the communication status changes. The communication path to be used is switched to another communication path that can be established with the communication apparatus of the communication partner.

特開2006−217476号公報JP 2006-217476 A 特開2007−221564号公報JP 2007-221564 A

特許文献1の通信システムでは、無線ホストと有線/無線ブリッジ装置とは無線通信で繋がっており、有線/無線ブリッジ装置とデバイスとは有線通信で繋がっている。すなわち、当該通信システムはデータ等の送受信経路が固定されている。   In the communication system of Patent Document 1, the wireless host and the wired / wireless bridge device are connected by wireless communication, and the wired / wireless bridge device and the device are connected by wired communication. That is, the communication system has a fixed transmission / reception path for data and the like.

これに対し、特許文献2の通信システムは、通信相手の通信装置との間に確立された通信経路の通信状況が変化したとき、当該通信相手の通信装置との間に確立可能な他の通信経路へ切り替える。このため、当該通信システムの方が柔軟な運用が可能であると思われる。   On the other hand, in the communication system of Patent Document 2, when the communication status of the communication path established with the communication partner communication apparatus changes, other communication that can be established with the communication partner communication apparatus. Switch to the route. For this reason, it is considered that the communication system can be operated more flexibly.

しかし、特許文献2の通信システムでは、各機器が多数のデータベースを有しており、上記の経路切り替えのためには、通信システムの構成変化や通信状態の変化に対応させて当該データベースを最新に保つ必要がある。このため、各機器およびシステム全体には高性能が求められ、複雑化、高価格化を招来してしまうと思われる。   However, in the communication system of Patent Document 2, each device has a large number of databases. For the above-described path switching, the database is updated to correspond to the change in the configuration of the communication system and the change in the communication state. Need to keep. For this reason, each device and system as a whole is required to have high performance, which is likely to increase complexity and cost.

本発明は、有線通信と無線通信とを利用した通信システムについて、通信ネットワークを柔軟に構築可能であるとともに簡易な構成で安価な通信システムを提供することを目的とする。   An object of the present invention is to provide an inexpensive communication system that can flexibly construct a communication network and that has a simple configuration for a communication system that uses wired communication and wireless communication.

また、本発明は、そのような通信システムについて通信の信頼性向上を図ることを目的とする。   It is another object of the present invention to improve communication reliability for such a communication system.

また、本発明は、そのような通信システムを実現可能な通信装置を提供することを目的とする。   Moreover, an object of this invention is to provide the communication apparatus which can implement | achieve such a communication system.

本発明に係る請求項1に記載の通信システムは、第1通信装置と、有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成され、受信したパケットを中継する機能を有した複数の第2通信装置とを備え、前記複数の第2通信装置のそれぞれは、前記第1通信装置から発信された第1パケットを中継する際には、当該第2通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、前記複数の第2通信装置のそれぞれは、同じ識別情報を有する前記第1パケットを前記有線方式と前記無線方式の両方で受信し、かつ、前記有線方式で受信した前記第1パケットの信号品質が予め設定された閾値以下である場合、前記有線方式で受信した前記第1パケットは中継せず、前記無線方式で受信した前記第1パケットを中継する。   The communication system according to claim 1 of the present invention is configured to be able to transmit and receive packets by the first communication device and a plurality of communication means including both a wired method and a wireless method, and has a function of relaying received packets. Each of the plurality of second communication devices is relayed by the second communication device when relaying the first packet transmitted from the first communication device. Information to the effect and information on the type of communication means used for relay among the plurality of communication means are recorded in the first packet as forward route information, and a second packet for responding to the first packet Is generated, the outbound route information is copied and recorded in the second packet as inbound route information, and when the second packet is relayed, the first route is based on the inbound route information. The second packet is relayed so as to follow the route followed by the packet in reverse order, and each of the plurality of second communication devices transmits the first packet having the same identification information by both the wired method and the wireless method. When the signal quality of the first packet received and received by the wired method is less than or equal to a preset threshold, the first packet received by the wired method is not relayed but received by the wireless method Relay the first packet.

本発明に係る請求項2に記載の通信システムは、第1通信装置と、有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成され、受信したパケットを中継する機能を有した複数の第2通信装置とを備え、前記複数の第2通信装置のそれぞれは、前記第1通信装置から発信された第1パケットを中継する際には、当該第2通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、前記複数の第2通信装置のそれぞれは、同じ識別情報を有する複数の第1パケットを前記複数の通信手段でそれぞれ受信した場合、前記複数の第1パケットが辿った通信経路の通信品質を予め規定された評価手法に従って評価し、前記通信品質が最も高いと評価された前記通信経路を辿って到来した前記第1パケットを中継し、残余の前記通信経路を辿って到来した前記第1パケットは中継しない。   The communication system according to claim 2 of the present invention is configured to be able to transmit and receive packets by the first communication device and a plurality of communication means including both a wired method and a wireless method, and has a function of relaying received packets. Each of the plurality of second communication devices is relayed by the second communication device when relaying the first packet transmitted from the first communication device. Information to the effect and information on the type of communication means used for relay among the plurality of communication means are recorded in the first packet as forward route information, and a second packet for responding to the first packet Is generated, the outbound route information is copied and recorded in the second packet as inbound route information, and when the second packet is relayed, the first route is based on the inbound route information. The second packet is relayed so as to follow the route followed by the packet in reverse order, and each of the plurality of second communication devices respectively receives a plurality of first packets having the same identification information by the plurality of communication means. In this case, the communication quality of the communication path followed by the plurality of first packets is evaluated according to a predetermined evaluation method, and the first packet that has arrived following the communication path evaluated to have the highest communication quality is The first packet that has been relayed and arrived along the remaining communication path is not relayed.

本発明に係る請求項3に記載の通信システムは、請求項2に記載の通信システムであって、前記通信品質に関する前記評価手法は、前記第1パケットの受信品質が予め設定された閾値よりも高い場合には、当該第1パケットの通信経路は利用可能な通信品質を有していると判定する評価手法と、前記第1パケットが経た中継段数が少ないほど、前記通信品質を高く評価するという評価手法とを含む。   A communication system according to a third aspect of the present invention is the communication system according to the second aspect, wherein the evaluation method related to the communication quality is such that the reception quality of the first packet is lower than a preset threshold. If it is higher, an evaluation method for determining that the communication path of the first packet has usable communication quality, and the smaller the number of relay stages that the first packet has passed, the higher the communication quality is evaluated. Including evaluation methods.

本発明に係る請求項4に記載の通信システムは、請求項1ないし3のいずれか1項に記載の通信システムであって、前記複数の通信手段は、電力線通信手段と、少なくとも1種類の無線通信手段とを含む。   A communication system according to a fourth aspect of the present invention is the communication system according to any one of the first to third aspects, wherein the plurality of communication means include a power line communication means and at least one type of wireless communication. Communication means.

本発明に係る請求項5に記載の通信装置は、親局とともに通信システムを構成する子局としての通信装置であって、有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成されており、前記親局から発信された第1パケットを中継する際には、当該通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、同じ識別情報を有する前記第1パケットを前記有線方式と前記無線方式の両方で受信し、かつ、前記有線方式で受信した前記第1パケットの信号品質が予め設定された閾値以下である場合、前記有線方式で受信した前記第1パケットは中継せず、前記無線方式で受信した前記第1パケットを中継する。   The communication device according to claim 5 of the present invention is a communication device as a slave station that constitutes a communication system together with a parent station, and can transmit and receive packets by a plurality of communication means including both a wired method and a wireless method. When the first packet transmitted from the master station is relayed, information indicating that the relay has been relayed by the communication device and the communication means used for relaying among the plurality of communication means When the second packet for responding to the first packet is generated by recording information on the type in the first packet as the outbound route information, the outbound route information is copied as the inbound route information. When recording the two packets and relaying the second packet, the second packet is relayed so as to follow the route followed by the first packet based on the return route information in reverse order, When the first packet having the same identification information is received by both the wired method and the wireless method, and the signal quality of the first packet received by the wired method is below a preset threshold, The first packet received by the wired method is not relayed, but the first packet received by the wireless method is relayed.

本発明に係る請求項6に記載の通信装置は、親局とともに通信システムを構成する子局としての通信装置であって、有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成されており、前記親局から発信された第1パケットを中継する際には、当該通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、同じ識別情報を有する複数の第1パケットを前記複数の通信手段でそれぞれ受信した場合、前記複数の第1パケットが辿った通信経路の通信品質を予め規定された評価手法に従って評価し、前記通信品質が最も高いと評価された前記通信経路を辿って到来した前記第1パケットを中継し、残余の前記通信経路を辿って到来した前記第1パケットは中継しない。   A communication apparatus according to claim 6 of the present invention is a communication apparatus as a slave station that constitutes a communication system together with a master station, and can transmit and receive packets by a plurality of communication means including both a wired system and a wireless system When the first packet transmitted from the master station is relayed, information indicating that the relay has been relayed by the communication device and the communication means used for relaying among the plurality of communication means When the second packet for responding to the first packet is generated by recording information on the type in the first packet as the outbound route information, the outbound route information is copied as the inbound route information. When recording the two packets and relaying the second packet, the second packet is relayed so as to follow the route followed by the first packet based on the return route information in reverse order, When the plurality of first packets having the same identification information are respectively received by the plurality of communication means, the communication quality of the communication path followed by the plurality of first packets is evaluated according to a predetermined evaluation method, and the communication quality The first packet arriving along the communication path evaluated as the highest is relayed, and the first packet arriving along the remaining communication path is not relayed.

本発明に係る請求項1,2に記載の通信システムによれば、第1通信装置から発信されたパケットは、複数の第2通信装置によって次々に中継されて、各第2通信装置へ配信される。このため、パケット配信時の通信システムの全体構成や通信状態に応じて、動的で柔軟にネットワークが構築される。しかも、各第2通信装置は通信システム上のネットワーク構成やその変化を例えばデータベース等によって把握しておく必要がないので、第2通信装置を簡易な構成とすることができ、これにより安価な通信システムを提供することができる。   According to the communication system according to the first and second aspects of the present invention, packets transmitted from the first communication device are relayed one after another by the plurality of second communication devices and distributed to each second communication device. The For this reason, a network is dynamically and flexibly constructed according to the overall configuration and communication state of the communication system at the time of packet distribution. In addition, since each second communication device does not need to grasp the network configuration on the communication system or changes thereof, for example, by a database, the second communication device can be configured simply, thereby reducing the cost of communication. A system can be provided.

また、本発明に係る請求項1に記載の通信システムによれば、有線方式で受信した第1パケットの信号品質が予め設定された閾値以下である場合、有線方式で受信した第1パケットは中継されず、無線方式で受信した前記第1パケットが中継される。第1パケットに応答するための第2パケットは第1パケットが辿った経路(往路)を逆順に辿るので、受信信号品質が良好でなかった上記有線方式の経路を避けて第2パケットを伝送することができる。このため、第2パケットのロストを防止することができる。したがって、信頼性の高い通信システムを提供することができる。   According to the communication system of the first aspect of the present invention, when the signal quality of the first packet received by the wired method is equal to or lower than a preset threshold value, the first packet received by the wired method is relayed. Instead, the first packet received by the wireless method is relayed. Since the second packet for responding to the first packet follows the path (outward path) followed by the first packet in the reverse order, the second packet is transmitted while avoiding the above-mentioned wired path whose reception signal quality is not good. be able to. For this reason, the lost second packet can be prevented. Therefore, a highly reliable communication system can be provided.

また、本発明に係る請求項2に記載の通信システムによれば、通信品質が最も高いと評価された通信経路を辿って到来した第1パケットが中継され、残余の通信経路を辿って到来した第1パケットは中継されない。第1パケットに応答するための第2パケットは第1パケットが辿った経路(往路)を逆順に辿るので、通信品質が最も高いと評価された通信経路で第2パケットを伝送することができる。このため、第2パケットのロストを防止することができる。したがって、信頼性の高い通信システムを提供することができる。   Further, according to the communication system according to claim 2 of the present invention, the first packet that arrives along the communication path evaluated as having the highest communication quality is relayed and arrives along the remaining communication path The first packet is not relayed. Since the second packet for responding to the first packet follows the path (outward path) followed by the first packet in the reverse order, the second packet can be transmitted through the communication path evaluated to have the highest communication quality. For this reason, the lost second packet can be prevented. Therefore, a highly reliable communication system can be provided.

本発明に係る請求項3に記載の通信システムによれば、受信品質と中継段数という複数の観点で以て子細に通信品質を評価することができる。これにより、第2パケットのロストをより確実に防止して、通信システムの信頼性をさらに向上させることができる。   According to the communication system of the third aspect of the present invention, the communication quality can be evaluated in detail from a plurality of viewpoints of reception quality and number of relay stages. As a result, the lost second packet can be prevented more reliably, and the reliability of the communication system can be further improved.

本発明に係る請求項4に記載の通信システムによれば、電力線通信手段を含んでいる。一般に電力線通信は無線通信に比べて通信品質の安定性が低いので、そのような電力線通信が採用された通信システムについて、第2パケットのロスト防止、信頼性向上を図ることができる。   According to the communication system of the fourth aspect of the present invention, the power line communication means is included. In general, power line communication is less stable in communication quality than wireless communication. Therefore, for a communication system employing such power line communication, it is possible to prevent lost second packets and improve reliability.

本発明に係る請求項5に記載の通信装置によれば、本発明の請求項1に記載の通信システムと同様の効果を奏する通信システムを構成することができる。   According to the communication apparatus according to claim 5 of the present invention, a communication system having the same effect as the communication system according to claim 1 of the present invention can be configured.

本発明に係る請求項6に記載の通信装置によれば、本発明の請求項2に記載の通信システムと同様の効果を奏する通信システムを構成することができる。   According to the communication device described in claim 6 of the present invention, it is possible to configure a communication system having the same effect as the communication system described in claim 2 of the present invention.

実施の形態に係る通信システムの構成および往路中継処理を説明する模式図である。It is a schematic diagram explaining the structure of the communication system which concerns on embodiment, and an outward relay process. 実施の形態に係る第1通信装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the 1st communication apparatus which concerns on embodiment. 実施の形態に係る第2通信装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the 2nd communication apparatus which concerns on embodiment. 実施の形態に係る暗号化処理を説明する模式図である。It is a schematic diagram explaining the encryption process which concerns on embodiment. 実施の形態に係る要求パケットを説明する模式図である。It is a schematic diagram explaining the request packet which concerns on embodiment. 実施の形態に係る応答パケットを説明する模式図である。It is a schematic diagram explaining the response packet which concerns on embodiment. 実施の形態に係る往路中継処理を説明するフローチャートである。It is a flowchart explaining the outward relay process which concerns on embodiment. 実施の形態に係る往路中継処理を説明するフローチャートである。It is a flowchart explaining the outward relay process which concerns on embodiment. 実施の形態に係る復路中継処理を説明するフローチャートである。It is a flowchart explaining the inbound trip relay process which concerns on embodiment. 実施の形態に係る復路中継処理を説明する模式図である。It is a schematic diagram explaining the return trip relay process which concerns on embodiment. 実施の形態に係る往路および復路の中継処理を整理して示すシーケンス図である。It is a sequence diagram which arranges and shows the relay processing of the outgoing way and the return way concerning an embodiment. 実施の形態に係る往路中継処理を説明するフローチャートである。It is a flowchart explaining the outward relay process which concerns on embodiment. 実施の形態に係る往路中継処理を説明するフローチャートである。It is a flowchart explaining the outward relay process which concerns on embodiment. 実施の形態に係る往路中継処理を説明するフローチャートである。It is a flowchart explaining the outward relay process which concerns on embodiment. 実施の形態に係る電力量取得処理を説明するシーケンス図である。It is a sequence diagram explaining the electric energy acquisition process which concerns on embodiment. 実施の形態に係る電力量取得処理を説明する模式図である。It is a schematic diagram explaining the electric energy acquisition process which concerns on embodiment. 実施の形態に係るセンサ状態取得処理を説明するフローチャートである。It is a flowchart explaining the sensor state acquisition process which concerns on embodiment. 実施の形態に係るセンサ状態取得処理を説明する模式図である。It is a schematic diagram explaining the sensor state acquisition process which concerns on embodiment.

図1に本発明の実施の形態に係る通信システム1の模式図を示す。図1に示すように、通信システム1は、第1通信装置10と、複数の第2通信装置20とを含んでいる。第1通信装置10は通信システム1において中心的・基幹的な装置、いわゆる親局装置として機能する。これに対し、第2通信装置20は子局装置として、または第1通信装置10から送信された情報を他の第2通信装置20へ中継する中継局装置として機能する。   FIG. 1 shows a schematic diagram of a communication system 1 according to an embodiment of the present invention. As shown in FIG. 1, the communication system 1 includes a first communication device 10 and a plurality of second communication devices 20. The first communication device 10 functions as a central / core device in the communication system 1, a so-called master station device. On the other hand, the second communication device 20 functions as a slave station device or as a relay station device that relays information transmitted from the first communication device 10 to another second communication device 20.

なお、ここでは6台の第2通信装置20を例示し、これらを区別する場合は符号21〜26を用いることにする。なお、第2通信装置20の台数は6台に限定されるものではない。   Here, six second communication devices 20 are illustrated, and reference numerals 21 to 26 are used to distinguish them. Note that the number of second communication devices 20 is not limited to six.

具体的な構成例は後に説明するが、第1通信装置10は電力線通信が可能に構成されており、他方、第2通信装置20は電力線通信と無線通信との両方が可能に構成されている。これにより、通信システム1では、第1通信装置10と第2通信装置20との間で電力線30を用いて情報の送受信を行う通信ネットワークが構築されるとともに、第2通信装置20どうしの間で電力線30と無線とを用いて情報の送受信を行う通信ネットワークが構築される。   Although a specific configuration example will be described later, the first communication device 10 is configured to be capable of power line communication, while the second communication device 20 is configured to be capable of both power line communication and wireless communication. . Thus, in the communication system 1, a communication network that transmits and receives information between the first communication device 10 and the second communication device 20 using the power line 30 is constructed, and between the second communication devices 20. A communication network that transmits and receives information using the power line 30 and radio is constructed.

図1に例示の構成では、第1通信装置10および第2通信装置21〜23は電力線31に接続され、第2通信装置24,25は電力線32に接続され、第2通信装置26は電力線33に接続されている。これら3つの電力線31〜33は、電力線30が一般住宅等の宅内電気設備構造に用いられる単相3線式配線である場合を模式的に表わしている。すなわち、当該3線式配線において、3本の配線のうちから任意に選ばれる第1の配線と第2の配線で電力線31が構成され、第2の配線と第3の配線で電力線32が構成され、第3の配線と第1の配線で電力線33が構成される。なお、通信システム1を適応可能な電力線30は単相3線式に限定されるものではない。   In the configuration illustrated in FIG. 1, the first communication device 10 and the second communication devices 21 to 23 are connected to the power line 31, the second communication devices 24 and 25 are connected to the power line 32, and the second communication device 26 is the power line 33. It is connected to the. These three power lines 31 to 33 schematically represent a case where the power line 30 is a single-phase three-wire wiring used in a home electrical equipment structure such as a general house. That is, in the three-wire wiring, the power line 31 is configured by the first wiring and the second wiring arbitrarily selected from the three wirings, and the power line 32 is configured by the second wiring and the third wiring. Then, the power line 33 is configured by the third wiring and the first wiring. Note that the power line 30 to which the communication system 1 can be applied is not limited to a single-phase three-wire system.

ここで、図2のブロック図に第1通信装置10の構成例を示す。なお、図2には、説明のために、電力線30等も併記している。図2に例示する構成では、第1通信装置10は、配線10aと、電力線通信部10bと、処理部10cと、記憶部10dと、ネットワーク通信部10eと、接続端子10fと、入力部10gとを含んでいる。   Here, the block diagram of FIG. 2 shows a configuration example of the first communication device 10. In FIG. 2, the power line 30 and the like are also shown for explanation. In the configuration illustrated in FIG. 2, the first communication device 10 includes a wiring 10a, a power line communication unit 10b, a processing unit 10c, a storage unit 10d, a network communication unit 10e, a connection terminal 10f, and an input unit 10g. Is included.

配線10aは、電力線30と第1通信装置10との間を電気的に接続するものであり、電力線通信部10bに接続されている。配線10aが電力線30(図1の例では電力線31)に接続されることにより、電力線30と第1通信装置10との間に電気的接続が確立される。配線10aと電力線30との接続は例えば差込接続器(差込プラグとプラグ受け)によって可能である。   The wiring 10a is for electrically connecting the power line 30 and the first communication device 10, and is connected to the power line communication unit 10b. By connecting the wiring 10 a to the power line 30 (power line 31 in the example of FIG. 1), an electrical connection is established between the power line 30 and the first communication device 10. The wiring 10a and the power line 30 can be connected by, for example, an insertion connector (an insertion plug and a plug receptacle).

電力線通信部10bは、電力線30を介した電力線通信を行うためのインターフェース(I/F)を含んでいる。また、電力線通信部10bは、電力線30から第1通信装置10内の各部へ電力を供給するためのインターフェースを含んで構成することも可能である。なお、上記の電力線通信インターフェースおよび電力供給インターフェースはそれぞれ例えば公知の各種インターフェース回路を適用することが可能である。   The power line communication unit 10 b includes an interface (I / F) for performing power line communication via the power line 30. The power line communication unit 10b can also be configured to include an interface for supplying power from the power line 30 to each unit in the first communication device 10. For example, various known interface circuits can be applied to the power line communication interface and the power supply interface.

処理部10cは、第1通信装置10の動作等に関する種々の処理を行い、また必要に応じて電力線通信部10b等を制御する。処理部10cは、電力線通信部10bと、記憶部10dと、ネットワーク通信部10eと、入力部10gとに接続されている。なお、図2には処理部10cを中心にして、いわゆるスター型の接続形態で電力線通信部10b等が接続されている場合を例示しているが、例えばバス型、リング型の接続形態を適用してもよい。   The processing unit 10c performs various processes related to the operation of the first communication device 10 and controls the power line communication unit 10b and the like as necessary. The processing unit 10c is connected to the power line communication unit 10b, the storage unit 10d, the network communication unit 10e, and the input unit 10g. 2 illustrates the case where the power line communication unit 10b and the like are connected in a so-called star-type connection form with the processing unit 10c as the center. For example, a bus-type or ring-type connection form is applied. May be.

ここでは、処理部10cによる各種処理がソフトウェアによって実現される場合を例示する。この場合、処理部10cは例えばマイクロコンピュータを含んで構成され、当該マイクロコンピュータがプログラムに記述された各処理ステップ(換言すれば手順)を実行する。これにより、マイクロコンピュータは処理ステップに対応する各種手段として機能し、または、マイクロコンピュータによって処理ステップに対応する各種機能が実現される。なお、処理部10cによって実現される各種手段または各種機能の一部または全部をハードウェアによって実現することも可能である。   Here, a case where various processes by the processing unit 10c are realized by software is illustrated. In this case, the processing unit 10c includes, for example, a microcomputer, and the microcomputer executes each processing step (in other words, a procedure) described in the program. Thereby, the microcomputer functions as various means corresponding to the processing step, or various functions corresponding to the processing step are realized by the microcomputer. It should be noted that various means or various functions realized by the processing unit 10c may be realized by hardware.

記憶部10dは、例えばROM(Read Only Memory)、RAM(Random Access Memory)、書き換え可能な不揮発性メモリ(EPROM(Erasable Programmable ROM)等)、ハードディスク装置等の各種記憶装置の1つまたは複数で構成されている。記憶部10dは、処理部10cが実行するプログラムを格納し、また、プログラムを実行するための作業領域を提供する。   The storage unit 10d is composed of one or more of various storage devices such as a ROM (Read Only Memory), a RAM (Random Access Memory), a rewritable nonvolatile memory (EPROM (Erasable Programmable ROM), etc.), and a hard disk device, for example. Has been. The storage unit 10d stores a program executed by the processing unit 10c, and provides a work area for executing the program.

記憶部10dは、また、各種の情報やデータ等も格納可能である。記憶部10dが格納している情報等として例えば第1通信装置10を一意に識別するための情報がある。かかる装置識別情報は、例えば後述するようにパケットの送信先として利用される。装置識別情報は、例えばMACアドレス、IPアドレス等を使用可能であるし、また、例えば通信システム1において予め設定された番号、符号等を使用可能である。ここでは、説明を分かりやすくするために、識別情報を装置番号とも呼び、第1通信装置10の装置番号を”10”と表記することにする。   The storage unit 10d can also store various information and data. Information stored in the storage unit 10d includes information for uniquely identifying the first communication device 10, for example. Such device identification information is used as a packet transmission destination, for example, as will be described later. As the device identification information, for example, a MAC address, an IP address, or the like can be used. For example, a number, a code, or the like set in advance in the communication system 1 can be used. Here, for easy understanding, the identification information is also referred to as a device number, and the device number of the first communication device 10 is expressed as “10”.

ネットワーク通信部10eは、第1通信装置10の外部に設けられているネットワーク40との通信を行うためのインターフェース、例えばイーサネット(登録商標)規格のインターフェースを含んでいる。ネットワーク通信部10eは、接続端子部10fに接続されており、当該端子部10fを介してネットワーク40に接続される。ネットワーク40は例えばいわゆるインターネット、LAN等であり、本通信システム1によって構築されるネットワークとは別個のものである。なお、図2にはネットワーク40には第1通信装置10と通信を行うセンター45を併記している。   The network communication unit 10 e includes an interface for communicating with the network 40 provided outside the first communication device 10, for example, an Ethernet (registered trademark) standard interface. The network communication unit 10e is connected to the connection terminal unit 10f, and is connected to the network 40 via the terminal unit 10f. The network 40 is, for example, the so-called Internet, LAN, etc., and is separate from the network constructed by the communication system 1. In FIG. 2, the network 40 also includes a center 45 that communicates with the first communication device 10.

入力部10gは、ユーザが第1通信装置10に対して指示等を入力するためのインターフェースである。入力部10gは、例えばボタン、スイッチ、タッチパネル、キーボード、マウス等の入力装置を含んで構成することが可能である。また、入力部10gは、接触型もしくは非接触型もしくは光学式の情報読み取り器(例えばカードリーダ、コードリーダ)を含んでいてもよいし、また、音声入力装置等を含んでいてもよい。   The input unit 10g is an interface for a user to input an instruction or the like to the first communication device 10. The input unit 10g can be configured to include input devices such as buttons, switches, touch panels, keyboards, and mice. The input unit 10g may include a contact type, non-contact type, or optical information reader (for example, a card reader or a code reader), or may include a voice input device or the like.

図3のブロック図に第2通信装置20の構成例を示す。なお、図3には、説明のために、電力線30等も併記している。図3に例示する構成では、第2通信装置20は、配線20aと、電力線通信部20bと、処理部20cと、記憶部20dと、無線通信部20eと、接続端子20fと、電力測定部20gと、デバイス通信部20hと、通知部20iとを含んでいる。   The block diagram of FIG. 3 shows a configuration example of the second communication device 20. In FIG. 3, the power line 30 and the like are also shown for explanation. In the configuration illustrated in FIG. 3, the second communication device 20 includes a wiring 20a, a power line communication unit 20b, a processing unit 20c, a storage unit 20d, a wireless communication unit 20e, a connection terminal 20f, and a power measurement unit 20g. And a device communication unit 20h and a notification unit 20i.

配線20aは、電力線30と第2通信装置20との間を電気的に接続するものであり、電力線通信部20bに接続されている。配線20aが電力線30(図1の例では電力線31〜33のいずれか)に接続されることにより、電力線30と第2通信装置20との間に電気的接続が確立される。配線20aと電力線30との接続は例えば差込接続器(差込プラグとプラグ受け)によって可能である。   The wiring 20a is for electrically connecting the power line 30 and the second communication device 20, and is connected to the power line communication unit 20b. Electrical connection is established between the power line 30 and the second communication device 20 by connecting the wiring 20a to the power line 30 (any of the power lines 31 to 33 in the example of FIG. 1). The wiring 20a and the power line 30 can be connected by, for example, an insertion connector (an insertion plug and a plug receptacle).

また、配線20aは、電力線30と接続端子20fとの間を電気的に接続している。このため、接続端子20fに電気器等のデバイス51を接続する場合には、第2通信装置20を介して、当該装置20の外部に設けられたデバイス51へ電力を供給することが可能である。接続端子20fは例えば差込接続器のプラグ受けによって構成可能である。   The wiring 20a electrically connects the power line 30 and the connection terminal 20f. For this reason, when connecting the device 51 such as an electric device to the connection terminal 20f, it is possible to supply power to the device 51 provided outside the device 20 via the second communication device 20. . The connection terminal 20f can be configured by, for example, a plug receptacle of a plug connector.

電力線通信部20bは、電力線30を介した電力線通信を行うためのインターフェースを含んでいる。また、電力線通信部20bは、電力線30から第2通信装置20内の各部へ電力を供給するためのインターフェースを含んで構成することも可能である。なお、上記各インターフェースは例えば電力線通信部10b(図2参照)のものと同様に構成可能である。   The power line communication unit 20 b includes an interface for performing power line communication via the power line 30. The power line communication unit 20b can also be configured to include an interface for supplying power from the power line 30 to each unit in the second communication device 20. Each interface can be configured in the same manner as that of the power line communication unit 10b (see FIG. 2), for example.

処理部20cは、第2通信装置20の動作等に関する種々の処理を行い、また必要に応じて電力線通信部20b等を制御する。処理部20cは、電力線通信部20bと、記憶部20dと、無線通信部20eと、電力測定部20gと、デバイス通信部20hと、通知部20iとに接続されている。なお、各部間の接続は図3に例示の形態に限られるものではない。   The processing unit 20c performs various processes related to the operation of the second communication device 20, and controls the power line communication unit 20b and the like as necessary. The processing unit 20c is connected to the power line communication unit 20b, the storage unit 20d, the wireless communication unit 20e, the power measurement unit 20g, the device communication unit 20h, and the notification unit 20i. In addition, the connection between each part is not restricted to the form illustrated in FIG.

ここでは、処理部20cによる各種処理がソフトウェアによって実現される場合を例示する。この場合、処理部20cは、上記の処理部10c(図2参照)と同様に構成可能である。なお、処理部20cによって実現される各種手段または各種機能の一部または全部をハードウェアによって実現することも可能である。   Here, a case where various processes by the processing unit 20c are realized by software is illustrated. In this case, the processing unit 20c can be configured similarly to the processing unit 10c (see FIG. 2). It should be noted that some or all of the various means or functions realized by the processing unit 20c can be realized by hardware.

記憶部20dは、上記の記憶部10d(図2参照)と同様に構成可能であり、処理部20cが実行するプログラム等を格納し、また、プログラムを実行するための作業領域を提供する。   The storage unit 20d can be configured in the same manner as the storage unit 10d (see FIG. 2), stores a program executed by the processing unit 20c, and provides a work area for executing the program.

また、記憶部20dは上記の第1通信装置10の装置識別情報と同様な識別情報を格納しており、当該識別情報によってその第2通信装置20が一意に識別される。ここでは、説明を分かりやすくするために、図1に例示される6台の第2通信装置21〜26について、それぞれの装置識別情報(装置番号)を”21”〜”26”と表記し、また、これらの第2通信装置21〜26を区別しない場合は”20”と表記することにする。   The storage unit 20d stores identification information similar to the device identification information of the first communication device 10, and the second communication device 20 is uniquely identified by the identification information. Here, in order to make the explanation easy to understand, the device identification information (device numbers) of the six second communication devices 21 to 26 illustrated in FIG. 1 is expressed as “21” to “26”, Moreover, when not distinguishing these 2nd communication apparatuses 21-26, it will describe with "20".

無線通信部20eは、他の第2通信装置20との間で無線通信を行うためのインターフェース、例えばZigBee(登録商標)、Bluetooth(登録商標)等の規格に従ったインターフェースを含んでいる。   The wireless communication unit 20e includes an interface for performing wireless communication with another second communication device 20, for example, an interface conforming to a standard such as ZigBee (registered trademark) or Bluetooth (registered trademark).

ここで、無線通信部20eによる無線通信が可能範囲(換言すれば無線電波の到達距離)は例えば第2通信装置20の設置場所等に影響される場合がある。かかる点について、図1には無線通信部20eによる無線通信可能範囲を破線円で模式的に例示している。例えば、第2通信装置22,23,25の無線通信可能範囲は、第2通信装置21,24,26の同範囲に比べて狭く例示されている。また、第2通信装置21,24,26の無線通信可能範囲は当該装置21,24,26を中心にした略円形範囲に例示されている。これに対し、第2通信装置22,23,25の無線通信可能範囲は図示下方側において狭く例示されている。   Here, the range in which wireless communication by the wireless communication unit 20e is possible (in other words, the reach of wireless radio waves) may be affected by, for example, the installation location of the second communication device 20 or the like. With regard to this point, FIG. 1 schematically illustrates a wireless communication possible range by the wireless communication unit 20e with a broken-line circle. For example, the wireless communicable range of the second communication devices 22, 23, 25 is illustrated narrower than the same range of the second communication devices 21, 24, 26. In addition, the wireless communicable range of the second communication devices 21, 24, 26 is illustrated as a substantially circular range centering on the devices 21, 24, 26. On the other hand, the wireless communicable range of the second communication devices 22, 23, 25 is illustrated narrowly on the lower side in the figure.

また、図1の例示では、第2通信装置21の無線通信可能範囲は第2通信装置22,24の同範囲と重なっており、また、第2通信装置26の無線通信可能範囲は第2通信装置24の同範囲と重なっている。このため、無線通信可能範囲が重なっている第2通信装置20どうしは直接に無線通信が可能である。また、無線通信可能範囲が重なっている第2通信装置20を中継局として利用することにより、その先の第2通信装置20と間接的に無線通信することも可能である。   In the illustration of FIG. 1, the wireless communication possible range of the second communication device 21 overlaps the same range of the second communication devices 22 and 24, and the wireless communication possible range of the second communication device 26 is the second communication device. It overlaps with the same range of the device 24. For this reason, the 2nd communication apparatuses 20 with which the radio | wireless communicable range has overlapped can directly perform radio | wireless communication. In addition, by using the second communication device 20 having overlapping wireless communication ranges as a relay station, it is also possible to perform wireless communication indirectly with the second communication device 20 ahead.

一方、図1の例示では、第2通信装置23,25は、他の第2通信装置20と無線通信可能範囲が重なっていないので、他の通信装置20との間で無線通信は行われない。   On the other hand, in the illustration of FIG. 1, the second communication devices 23 and 25 do not overlap with the other second communication devices 20, so that wireless communication is not performed with the other communication devices 20. .

図3に戻り、電力測定部20gは、配線20aに対して設置されており、配線20aを流れる電力(電力量)を測定する計器を含んでいる。当該計器としては例えば公知の各種方式を適用可能である。電力測定部20gによれば、接続端子20fに接続されたデバイス51の消費電力量を測定することが可能である。   Returning to FIG. 3, the power measuring unit 20g is installed with respect to the wiring 20a, and includes a meter for measuring the power (power amount) flowing through the wiring 20a. As the instrument, for example, various known methods can be applied. According to the power measurement unit 20g, it is possible to measure the power consumption of the device 51 connected to the connection terminal 20f.

デバイス通信部20hは、無線LAN機能を有する機器等のデバイス52との間で通信を行うためのインターフェースを含んでいる。ここでは、デバイス通信部20hが無線通信を行う場合を例示するが、有線通信を行うように構成することも可能である。なお、上記の無線通信用インターフェースとして、例えばZigBee(登録商標)、Bluetooth(登録商標)等の規格に従ったインターフェースを適用することが可能である。このため、デバイス通信部20hとの無線通信可能な範囲にデバイス52が設けられている場合には、当該デバイス通信部20hによって第2通信装置20とデバイス52とが無線通信で接続される。   The device communication unit 20h includes an interface for performing communication with the device 52 such as a device having a wireless LAN function. Here, the case where the device communication unit 20h performs wireless communication is illustrated, but it may be configured to perform wired communication. As the wireless communication interface, for example, an interface conforming to a standard such as ZigBee (registered trademark) or Bluetooth (registered trademark) can be applied. For this reason, when the device 52 is provided in a range where wireless communication with the device communication unit 20h is possible, the second communication device 20 and the device 52 are connected by wireless communication by the device communication unit 20h.

なお、デバイス52は複数の第2通信装置20と無線接続される場合もある。また、デバイス52が、接続端子20fに接続されて電力供給を受ける場合もある。   Note that the device 52 may be wirelessly connected to the plurality of second communication devices 20. In some cases, the device 52 is connected to the connection terminal 20f to receive power.

デバイス通信部20hと上記無線通信部20eとは、混信を防止するために、互いに異なる規格で構成され、または同じ規格であっても異なるチャネルで無線通信を行うように構成されている。   The device communication unit 20h and the wireless communication unit 20e are configured to be different from each other in order to prevent interference, or configured to perform wireless communication using different channels even with the same standard.

図3には第2通信装置20との接続形態が異なる2種類のデバイス51,52が、第2通信装置20に接続される場合を例示している。これに対し、デバイス51,52のうちの一方のみが第2通信装置20に接続されていてもよいし、または、いずれのデバイス51,52も第2通信装置20に接続されていなくてもよい。   FIG. 3 illustrates a case where two types of devices 51 and 52 having different connection forms with the second communication device 20 are connected to the second communication device 20. On the other hand, only one of the devices 51 and 52 may be connected to the second communication device 20, or none of the devices 51 and 52 may be connected to the second communication device 20. .

通知部20iは、第2通信装置20の動作状態等を当該装置20の外部に居るユーザに通知するためのインターフェースである。通知部20iは、例えば1つまたは複数の発光素子(LED等)、液晶ディスプレイ等のように視覚的に通知を行う装置を含んで構成可能である。また、視覚的に通知を行う装置に加えてもしくは代えて、警報音や音声等によって聴覚的に通知を行う装置を含めて通知部20iを構成することも可能である。   The notification unit 20 i is an interface for notifying a user who is outside the device 20 of the operation state of the second communication device 20. The notification unit 20i can be configured to include a device that visually notifies, such as one or a plurality of light emitting elements (LEDs, etc.), a liquid crystal display, and the like. Further, in addition to or instead of a device that visually notifies, the notification unit 20i can be configured to include a device that performs an audible notification using an alarm sound or voice.

なお、通信システム1に用いられる第2通信装置20の全てが同じ構成を有している必要はない。例えば電力測定部20gと、デバイス通信部20hと、通知部20iとのうちの1つまたは複数を有さない第2通信装置20を用いることも可能である。また、上記例示の構成に対してさらに追加要素を有する第2通信装置20を用いてもよい。   Note that not all of the second communication devices 20 used in the communication system 1 need to have the same configuration. For example, the second communication device 20 that does not have one or more of the power measurement unit 20g, the device communication unit 20h, and the notification unit 20i can be used. Moreover, you may use the 2nd communication apparatus 20 which has an additional element with respect to the structure of the said illustration.

通信装置10,20は送信すべき情報をパケットによって送信する。このとき、通信装置10,20は、送信情報に対応したパケットを生成し、当該パケットを例えば暗号鍵を用いて暗号化する(図4参照)。また、通信装置10,20は、受信したパケットを例えば暗号鍵を用いて復号化する。このため、通信装置10,20は同じ暗号鍵を保有している。暗号鍵は第1通信装置10に対して一意に、すなわち固有に設定されるものである。このため、第1通信装置10が異なる他の通信システム1との間でパケットの流入・流出が生じても、当該パケットが利用されることがない。このため、良好なセキュリティが得られる。   The communication devices 10 and 20 transmit information to be transmitted in packets. At this time, the communication devices 10 and 20 generate a packet corresponding to the transmission information, and encrypt the packet using, for example, an encryption key (see FIG. 4). The communication devices 10 and 20 decrypt the received packet using, for example, an encryption key. For this reason, the communication apparatuses 10 and 20 have the same encryption key. The encryption key is set uniquely, that is, uniquely for the first communication device 10. For this reason, even if the inflow / outflow of a packet occurs between another communication system 1 in which the first communication device 10 is different, the packet is not used. For this reason, good security can be obtained.

暗号鍵を用いる方式として例えばAESがある。なお、暗号化/復号化の方式は種々のものを採用可能である。パケットの生成および暗号化/復号化処理は処理部10c,20cによって行われる。なお、処理部10c,20cは暗号化処理において、暗号化すべきパケットのビット数を例えばゼロ・パディングによって適宜調整する。   For example, there is AES as a method using an encryption key. Various encryption / decryption methods can be used. Packet generation and encryption / decryption processing are performed by the processing units 10c and 20c. The processing units 10c and 20c appropriately adjust the number of bits of a packet to be encrypted by, for example, zero padding in the encryption process.

図5および図6に通信システム1で用いるパケットを例示する。図5には、第1通信装置10が第2通信装置20に対して所定の要求を行う場合に用いる要求パケット100の一例を模式的に図示している。また、図6には、上記要求に対して第2通信装置20が応答を行う場合に用いる応答パケット200の一例を模式的に図示している。   5 and 6 illustrate packets used in the communication system 1. FIG. 5 schematically illustrates an example of the request packet 100 used when the first communication device 10 makes a predetermined request to the second communication device 20. FIG. 6 schematically illustrates an example of a response packet 200 used when the second communication device 20 responds to the request.

図5に例示された要求パケットは情報102,104,106,110を含んでいる。なお、図5の図示は、要求パケット100内における情報102,104,106,110の記述位置およびデータ長を限定するものではない。   The request packet illustrated in FIG. 5 includes information 102, 104, 106, 110. 5 does not limit the description position and data length of the information 102, 104, 106, 110 in the request packet 100.

情報102は、送信先の第2通信装置20を指定するための情報であり、例えば各第2通信装置20を区別するための識別情報が記述される。なお、ここでは要求パケット100は全ての第2通信装置20へ送信されるものとし、全ての第2通信装置20を送信先とする旨の情報が送信先装置情報102に記述される。   The information 102 is information for designating the second communication device 20 as a transmission destination, and for example, identification information for distinguishing each second communication device 20 is described. Here, it is assumed that the request packet 100 is transmitted to all the second communication devices 20, and information indicating that all the second communication devices 20 are transmission destinations is described in the transmission destination device information 102.

情報104は、要求パケット100を識別するための情報であり、ここでは要求パケット100のシーケンス番号を例示する。この場合、シーケンス番号104は例えば0(ゼロ)から始まり要求パケットを生成する度にインクリメントされる数字が対応する。   The information 104 is information for identifying the request packet 100. Here, the sequence number of the request packet 100 is exemplified. In this case, the sequence number 104 corresponds to a number starting from 0 (zero) and incremented each time a request packet is generated.

情報106は、第2通信装置20に要求する処理に関する情報である。例えば、要求する処理に対応してコマンドが予め設定され、その要求コマンドが情報106として与えられる。   The information 106 is information related to processing requested to the second communication device 20. For example, a command is set in advance corresponding to the requested process, and the request command is given as information 106.

情報110は、要求パケット100が通信システム1において辿る経路に関する情報である。具体的には当該経路は、各通信装置10,21〜26が、要求パケット100の送信(第2通信装置20が中継局として行う再送信も含む)の際に、通信装置10,21〜26の区別と通信方式の区別と組を1単位(経路単位)として、経路情報110に追記していくことにより記録される。   The information 110 is information regarding a route that the request packet 100 follows in the communication system 1. Specifically, the communication device 10, 21-26 is connected to the communication device 10, 21-26 when the request packet 100 is transmitted (including retransmission performed by the second communication device 20 as a relay station). Is recorded by adding to the route information 110 as a unit (route unit).

なお、説明を分かりやすくするために、通信装置10,21〜26の区別を上記の装置番号”10”,”21”〜”26”で表記し、電力線通信による送信を”P”と表記し、無線通信による送信を”R”と表記し、上記2つの区別項目を”:”で繋ぐことにする。例えば第1通信装置10による電力線通信を用いた送信を示す経路単位は”10:P”と表記され、例えば第2通信装置21による無線通信を用いた送信を示す経路単位は”21:R”と表記される(図1参照)。   For easy understanding, the distinction between the communication devices 10 and 21 to 26 is represented by the above device numbers “10”, “21” to “26”, and transmission by power line communication is represented as “P”. The transmission by wireless communication is expressed as “R”, and the above two distinct items are connected by “:”. For example, a path unit indicating transmission using power line communication by the first communication device 10 is represented as “10: P”, and for example, a path unit indicating transmission using wireless communication by the second communication device 21 is “21: R”. (See FIG. 1).

また、経路単位を”/”で区切って末尾に続けることにより、経路単位の追記を表記することにする。例えば、図1の例において、要求パケット100が、第1通信装置10から電力線通信で送信され、その後、第2通信装置21から無線通信で再送信(中継)された場合、経路情報110の内容は”10:P/21:R”と表記される。また、当該要求パケット100がさらに第2通信装置24によって電力線通信で中継された場合、経路情報110の内容は”10:P/21:R/24:P”と表記される。   In addition, by adding the path unit to the end by separating it with “/”, the additional writing of the path unit is described. For example, in the example of FIG. 1, when the request packet 100 is transmitted from the first communication device 10 by power line communication and then retransmitted (relayed) by wireless communication from the second communication device 21, the contents of the route information 110 Is written as “10: P / 21: R”. When the request packet 100 is further relayed by power line communication by the second communication device 24, the content of the route information 110 is expressed as “10: P / 21: R / 24: P”.

なお、図1ではさらに説明を分かりやすくするために、”10:P”等の表記を囲む四角形の図示を工夫している。すなわち、実線の四角形は電力線通信による送受信を表し、破線の四角形は無線通信による送受信を表している。また、太い実線および破線の四角形はパケットの送信を表し、細い実線および破線の四角形はパケットの受信を表している。   In FIG. 1, in order to make the explanation easier to understand, a quadrangular shape surrounding a notation such as “10: P” is devised. That is, a solid rectangle represents transmission / reception by power line communication, and a broken line rectangle represents transmission / reception by wireless communication. In addition, a thick solid line and a broken-line rectangle represent transmission of a packet, and a thin solid line and a broken-line rectangle represent reception of a packet.

図6に例示された応答パケット200は情報202,204,206,208,210を含んでいる。なお、図6は、応答パケット200内における情報202,204,206,208,210の記述位置およびデータ長を示すものではない。   The response packet 200 illustrated in FIG. 6 includes information 202, 204, 206, 208 and 210. FIG. 6 does not show the description position and data length of the information 202, 204, 206, 208, 210 in the response packet 200.

情報202は、上記情報102(図5参照)と同様に、送信先装置情報が記述される。但し、応答パケット200では次に受信するべき第2通信装置20が特定され、その通信装置20の識別情報(装置番号)が送信先装置情報202に記述される。   In the information 202, transmission destination apparatus information is described in the same manner as the information 102 (see FIG. 5). However, in the response packet 200, the second communication device 20 to be received next is specified, and identification information (device number) of the communication device 20 is described in the transmission destination device information 202.

後述のように応答パケット200は、対応する要求パケット100の送信経路すなわち往路を遡って第1通信装置10へ送信される。このとき、応答パケット200が辿る経路すなわち復路において次の送信先となる第2通信装置20が、情報204によって指定される。情報204は、例えば、下記の経路情報210に記述された経路単位を路順に順次指し示すポインタによって実現される。   As will be described later, the response packet 200 is transmitted back to the first communication device 10 along the transmission path of the corresponding request packet 100, that is, the forward path. At this time, the second communication device 20 that is the next transmission destination in the route that the response packet 200 follows, that is, the return route, is specified by the information 204. The information 204 is realized by, for example, a pointer that sequentially points the route units described in the route information 210 below in the order of the routes.

情報206は、上記情報106(図5参照)と同様の要求コマンドに関する情報であり、要求パケット100の要求コマンド106と同じ情報が記述される。   The information 206 is information related to the request command similar to the information 106 (see FIG. 5), and the same information as the request command 106 of the request packet 100 is described.

情報208は、応答内容に関する情報であり、後に例示する。   Information 208 is information related to the response content, and will be exemplified later.

情報210は、応答パケット200が辿る復路に関する情報である。当該情報210は、応答パケット200の送信起源となる第2通信装置20が、対応する要求パケット100の経路情報110に基づいて生成する。例えば要求パケット100の経路情報110をそのままコピーすることにより、または、例えば経路情報110に記述された上記経路単位を逆順にコピーすることにより、経路情報210が生成される。いずれのコピー方式によっても両経路情報110,210は同じ内容を含むことになる。   Information 210 is information related to the return path followed by the response packet 200. The information 210 is generated based on the path information 110 of the corresponding request packet 100 by the second communication device 20 that is the origin of transmission of the response packet 200. For example, the path information 210 is generated by copying the path information 110 of the request packet 100 as it is, or by copying the path units described in the path information 110 in reverse order. Both of the path information 110 and 210 include the same contents by any copy method.

なお、経路情報210は復路上の第2通信装置20によって情報が追記されるものではない。復路の経路情報210も、往路の経路情報110と同様の表記方法を用いることにする。   The route information 210 is not added by the second communication device 20 on the return route. The return route information 210 also uses the same notation method as the forward route information 110.

ここで、例えば復路ポインタ204の値”0”を経路情報210中の先頭の経路単位に対応付け、復路ポインタ204の値”1”,”2”,・・・を経路情報210中の先頭から2番目、3番目、・・・の経路単位に順次対応付ける場合、復路ポインタ204の値をインクリメントまたはデクリメントすることによって、経路情報210中の経路単位を順番に辿ることが可能である。   Here, for example, the value “0” of the return path pointer 204 is associated with the head path unit in the path information 210, and the values “1”, “2”,. When sequentially associating with the second, third,... Path units, the path units in the path information 210 can be traced sequentially by incrementing or decrementing the value of the return path pointer 204.

なお、パケット100,200を他の情報(誤り検出符号等)をさらに含めて構成してもよい。例えば誤り検出符号を含む場合には、データ誤りが生じたパケット100,200は利用しない等の措置を、処理部10c,20cによって、講じることが可能である。   The packets 100 and 200 may be configured to further include other information (such as an error detection code). For example, when an error detection code is included, the processing units 10c and 20c can take measures such as not using the packets 100 and 200 in which a data error has occurred.

図7に、要求パケット100を受信した第2通信装置20の動作、より具体的には要求パケット100を中継する場合の処理(往路中継処理)S2のフローチャートを例示する。   FIG. 7 illustrates a flowchart of an operation of the second communication device 20 that has received the request packet 100, more specifically, a process (outward relay process) S2 when the request packet 100 is relayed.

まず、第2通信装置20が要求パケット100を受信すると(ステップS20)、当該パケット100は処理部20cによって復号化される(ステップS22)。   First, when the second communication device 20 receives the request packet 100 (step S20), the packet 100 is decoded by the processing unit 20c (step S22).

この受信した要求パケット100の直前の送信元は、第1通信装置10である場合もあるし、他の第2通信装置20である場合もある。また、当該要求パケット100は電力線通信部20bが受信する場合もあるし、無線通信部20eが受信する場合もある。例えば図1の例示において第2通信装置22は、第1通信装置10から電力線通信によって直接(すなわち他の第2通信装置20による中継が介在することなく)要求パケット100を受信することが可能であるし、また、第2通信装置21による中継を経て無線通信によって要求パケット100を受信することも可能である。   The transmission source immediately before the received request packet 100 may be the first communication device 10 or the other second communication device 20. In addition, the request packet 100 may be received by the power line communication unit 20b or may be received by the wireless communication unit 20e. For example, in the example of FIG. 1, the second communication device 22 can receive the request packet 100 directly from the first communication device 10 through power line communication (that is, without relaying by another second communication device 20). In addition, it is also possible to receive the request packet 100 by wireless communication via relay by the second communication device 21.

そして、処理部20cは、当該要求パケット100の中継、換言すれば転送が必要であるか否かを判定する(ステップS24)。この中継要否判定ステップS24の一例を図8のフローチャートに示す。   Then, the processing unit 20c determines whether it is necessary to relay the request packet 100, in other words, transfer (step S24). An example of the relay necessity determination step S24 is shown in the flowchart of FIG.

図8に例示される中継要否判定ステップS24では、処理部20cは、まず、中継しようとしている要求パケット100が、当該第2通信装置20によって既に中継済みであるか否かを判定する(ステップS24a)。そして、既に中継済みであると判定した場合、処理部20cは、受信した要求パケット100の中継処理を行うことなく、往路中継処理S2(図7参照)を終了する。他方、中継済みでないと判定した場合、処理部20cは下記のステップS24bを実行する。   In the relay necessity determination step S24 illustrated in FIG. 8, the processing unit 20c first determines whether or not the request packet 100 to be relayed has already been relayed by the second communication device 20 (step S24). S24a). If it is determined that the relay has already been performed, the processing unit 20c ends the forward relay processing S2 (see FIG. 7) without performing the relay processing of the received request packet 100. On the other hand, when it determines with having not been relayed, the process part 20c performs the following step S24b.

判定ステップS24aは、例えば要求パケット100に含まれるシーケンス番号104(図5参照)を利用することによって実行可能である。具体的には、処理部20cは、中継を行った要求パケット100のシーケンス番号104を記憶部20dに記録しておき、当該記録との照合によって、中継しようとしている要求パケット100が既に中継済みであるか否かを判定することが可能である。   The determination step S24a can be executed by using, for example, the sequence number 104 (see FIG. 5) included in the request packet 100. Specifically, the processing unit 20c records the sequence number 104 of the request packet 100 that has been relayed in the storage unit 20d, and the request packet 100 to be relayed has already been relayed by collation with the record. It is possible to determine whether or not there is.

このように判定ステップS24aによれば、第2通信装置20は、シーケンス番号104が同じ要求パケット100、すなわち送信内容が同じ(ここでは要求内容が同じ)パケット100を複数回受信した場合には、2回目以降に受信した要求パケット100を中継しない。このため、送信内容が同じパケット100が通信システム1上を無限に中継・転送され続けるのを防止することができる。これにより、通信システム1の伝送負荷を低減することができる。   Thus, according to the determination step S24a, the second communication device 20 receives the request packet 100 having the same sequence number 104, that is, the packet 100 having the same transmission content (here, the request content is the same) a plurality of times. The request packet 100 received after the second time is not relayed. For this reason, it is possible to prevent packets 100 having the same transmission content from being continuously relayed and transferred on the communication system 1 indefinitely. Thereby, the transmission load of the communication system 1 can be reduced.

ステップS24bでは、処理部20cは、受信した要求パケット100のこれまでの中継回数(中継段数)が、予め設定された最大中継回数よりも少ないか否かを判定する。換言すれば、今回中継を行うことによって最大中継回数を超えるか否かを判定する。そして、これまでの中継回数が最大中継回数よりも少ないと判定した場合、処理部20cは中継要否判定ステップS24を終えて次のステップS26を実行する。他方、これまでの中継回数が最大中継回数に達していると判定した場合、処理部20cは、受信した要求パケット100の中継処理を行うことなく、往路中継処理S2(図7参照)を終了する。   In step S24b, the processing unit 20c determines whether the number of relays (the number of relay stages) of the received request packet 100 so far is smaller than a preset maximum number of relays. In other words, it is determined whether or not the maximum number of relays is exceeded by performing the current relay. If it is determined that the number of relays so far is less than the maximum number of relays, the processing unit 20c ends the relay necessity determination step S24 and executes the next step S26. On the other hand, if it is determined that the number of relays so far has reached the maximum number of relays, the processing unit 20c ends the forward relay process S2 (see FIG. 7) without performing the relay process of the received request packet 100. .

上記の最大中継回数は、例えばプログラム中に予め記述しておくことにより、または、例えば記憶部20dに予め格納しておくことにより、ステップS24bで利用可能である。   The maximum number of relays described above can be used in step S24b, for example, by describing in advance in the program, or by storing in advance in the storage unit 20d, for example.

当該ステップS24bでの判定処理によれば、送信内容が同じ(ここでは要求内容が同じ)パケット100が通信システム1上を無限に中継・転送され続けるのを防止することができる。これにより、通信システム1の伝送負荷を低減することができる。   According to the determination process in step S24b, it is possible to prevent packets 100 having the same transmission contents (here, the same request contents) from being continuously relayed and transferred on the communication system 1. Thereby, the transmission load of the communication system 1 can be reduced.

なお、ステップS24a,S24bの実行順序は上記の逆であってもよい。   The execution order of steps S24a and S24b may be the reverse of the above.

ステップS24の終了後、処理部20cは、要求パケット100が無線通信によって受信されたか否かを分別する(ステップS26。図7参照)。かかる分別の結果、無線通信による受信の場合、処理部20cは電力線通信処理S28と無線通信処理S30との両方を行う。他方、無線通信による受信ではない場合、すなわち電力線通信による受信の場合、処理部20cは無線通信処理S30だけを行う。   After the end of step S24, the processing unit 20c determines whether or not the request packet 100 has been received by wireless communication (step S26, see FIG. 7). As a result of such classification, in the case of reception by wireless communication, the processing unit 20c performs both power line communication processing S28 and wireless communication processing S30. On the other hand, if the reception is not wireless communication, that is, reception by power line communication, the processing unit 20c performs only the wireless communication processing S30.

図7に例示の電力線通信処理S28では、処理部20cは、今回の中継を行う第2通信装置20の装置番号と、今回の中継で用いる通信方式(ここでは電力線通信)とを要求パケット100の経路情報110に追記する(ステップS28a)。そして、処理部20cは、要求パケット100を暗号化し(ステップS28b)、電力線通信部20b(図3参照)を制御して要求パケット100を送信する(ステップS28c)。   In the power line communication processing S28 illustrated in FIG. 7, the processing unit 20c determines the device number of the second communication device 20 that performs the current relay and the communication method (power line communication in this case) used for the current relay in the request packet 100. It adds to the route information 110 (step S28a). Then, the processing unit 20c encrypts the request packet 100 (step S28b), controls the power line communication unit 20b (see FIG. 3), and transmits the request packet 100 (step S28c).

図7に例示の無線通信処理S30では、処理部20cは、今回の中継を行う第2通信装置20の装置番号と、今回の中継で用いる通信方式(ここでは無線通信)とを要求パケット100の経路情報110に追記する(ステップS30a)。そして、処理部20cは、要求パケット100を暗号化し(ステップS30b)、無線通信部20e(図3参照)を制御して要求パケット100を送信する(ステップS30c)。   In the wireless communication processing S30 illustrated in FIG. 7, the processing unit 20c determines the device number of the second communication device 20 that performs the current relay and the communication method (in this case, wireless communication) used for the current relay. It adds to the route information 110 (step S30a). Then, the processing unit 20c encrypts the request packet 100 (step S30b), controls the wireless communication unit 20e (see FIG. 3), and transmits the request packet 100 (step S30c).

ここで、図1に例示した範囲では、上記往路中継処理S2により、要求パケット100は次のように伝送されるものとする。なお、ここでは、異相の電力線31〜33の間では電力線通信は行われないものとする。   Here, in the range illustrated in FIG. 1, it is assumed that the request packet 100 is transmitted as follows by the forward relay processing S2. Here, it is assumed that power line communication is not performed between the different-phase power lines 31 to 33.

第1通信装置10から送信された要求パケット100は、電力線31を介して第2通信装置21〜23によって受信され、各第2通信装置21〜23の無線通信によって再送信される(ステップS26,S30参照)。   The request packet 100 transmitted from the first communication device 10 is received by the second communication devices 21 to 23 through the power line 31, and is retransmitted by wireless communication of the second communication devices 21 to 23 (step S26, S30).

第2通信装置21から再送信された要求パケット100は、無線通信可能範囲が重なっている第2通信装置22,24に受信される。しかし、第2通信装置22は上記のように当該受信パケット100を既に中継しているので、第2通信装置21が中継したパケット100は再送信しない(ステップS24a参照)。他方、第2通信装置24は、無線通信で受信した当該受信パケット100を、電力線通信と無線通信とによって再送信する(ステップS26,S28,S30参照)。   The request packet 100 retransmitted from the second communication device 21 is received by the second communication devices 22 and 24 having overlapping wireless communication ranges. However, since the second communication device 22 has already relayed the received packet 100 as described above, the packet 100 relayed by the second communication device 21 is not retransmitted (see step S24a). On the other hand, the second communication device 24 retransmits the received packet 100 received by wireless communication by power line communication and wireless communication (see steps S26, S28, and S30).

また、第2通信装置22から再送信された要求パケット100は、無線通信可能範囲が重なっている第2通信装置21に受信されるが、第2通信装置21は上記のように既に中継を行っているので、第2通信装置22が中継したパケット100の再送信は行わない(ステップS24a参照)。   Further, the request packet 100 retransmitted from the second communication device 22 is received by the second communication device 21 with which the wireless communication coverage is overlapped, but the second communication device 21 has already relayed as described above. Therefore, the packet 100 relayed by the second communication device 22 is not retransmitted (see step S24a).

また、第2通信装置23から再送信された要求パケット100は、無線通信可能範囲が重なっている第2通信装置20が無いので、他の第2通信装置20には伝達されない。   Further, the request packet 100 retransmitted from the second communication device 23 is not transmitted to the other second communication devices 20 because there is no second communication device 20 having overlapping wireless communication ranges.

上記のように第2通信装置24から電力線通信によって再送信された要求パケット100は、第2通信装置25によって受信され無線通信を用いて再送信される(ステップS26,S30参照)。しかし、第2通信装置25と無線通信可能範囲が重なっている第2通信装置20が無いので、要求パケット100は第2通信装置25から先には伝達されない。   The request packet 100 retransmitted by the power line communication from the second communication device 24 as described above is received by the second communication device 25 and retransmitted using wireless communication (see steps S26 and S30). However, since there is no second communication device 20 that overlaps the wireless communication range with the second communication device 25, the request packet 100 is not transmitted from the second communication device 25 first.

また、第2通信装置24から無線通信によって再送信された要求パケット100は、第2通信装置26によって受信され、当該第2通信装置26から電力線通信と無線通信とによって再送信される(ステップS26,S28,S30参照)。   The request packet 100 retransmitted from the second communication device 24 by wireless communication is received by the second communication device 26 and retransmitted from the second communication device 26 by power line communication and wireless communication (step S26). , S28, S30).

次に、図9に、応答パケット200を受信した第2通信装置20の動作、より具体的には応答パケット200を中継する場合の処理(復路中継処理)S6のフローチャートを例示する。   Next, FIG. 9 illustrates a flowchart of an operation of the second communication device 20 that has received the response packet 200, more specifically, a process (return relay process) S6 when the response packet 200 is relayed.

なお、ここでは、応答パケット200の送信起点となる第2通信装置20が、応答パケット200の生成ステップ(後述のステップS4参照)において、要求パケット100の経路情報110(図5参照)を上記のように逆順にコピーして経路情報210を初期設定し、また、復路ポインタ204(図6参照)を”0”に初期設定する場合を例示する。   Here, the second communication device 20 that is the transmission start point of the response packet 200 uses the route information 110 (see FIG. 5) of the request packet 100 in the step of generating the response packet 200 (see step S4 described later). In this example, the path information 210 is copied in the reverse order and the path information 210 is initialized, and the return path pointer 204 (see FIG. 6) is initialized to “0”.

まず、第2通信装置20が他の第2通信装置20から応答パケット200を受信すると(ステップS50)、当該パケット200は処理部20cによって復号化される(ステップS52)。なお、応答パケット200の送信起点となる第2通信装置20ではステップS50,S52は行われない。   First, when the second communication device 20 receives a response packet 200 from another second communication device 20 (step S50), the packet 200 is decoded by the processing unit 20c (step S52). Note that steps S50 and S52 are not performed in the second communication device 20 that is the transmission start point of the response packet 200.

そして、処理部20cは、復路ポインタ204をインクリメントし(ステップS54)、送信先装置情報202をセットする(ステップS56)。具体的には、処理部20cは、インクリメントされた復路ポインタ204が指し示す経路単位を分析し、当該経路単位に記述された第2通信装置20の装置番号を送信先装置情報202にセットする。そして、処理部20cは応答パケット200を暗号化する(ステップS58)。   Then, the processing unit 20c increments the return path pointer 204 (step S54), and sets the transmission destination device information 202 (step S56). Specifically, the processing unit 20c analyzes the path unit indicated by the incremented return path pointer 204, and sets the apparatus number of the second communication apparatus 20 described in the path unit in the transmission destination apparatus information 202. Then, the processing unit 20c encrypts the response packet 200 (step S58).

次に、処理部20cは、次の送信先に指定した第2通信装置20が往路において使用した通信方式を分別する(ステップS60)。具体的には、上記ステップS54でインクリメントした復路ポインタ204が指し示す経路単位を分析し、当該経路単位に記述された通信方式を分別する。   Next, the processing unit 20c sorts the communication method used in the forward path by the second communication device 20 designated as the next transmission destination (step S60). Specifically, the path unit indicated by the return path pointer 204 incremented in step S54 is analyzed, and the communication methods described in the path unit are classified.

上記ステップS60で往路は無線通信であると分別された場合、処理部20cは無線通信によって応答パケット200を送信する(ステップS62)。逆に往路は電力線通信であると分別された場合、処理部20cは電力線通信によって応答パケット200を送信する(ステップS64)。   When it is determined in step S60 that the forward path is wireless communication, the processing unit 20c transmits the response packet 200 by wireless communication (step S62). On the other hand, when it is determined that the forward path is power line communication, the processing unit 20c transmits the response packet 200 by power line communication (step S64).

ここで、図10に応答パケット200の伝送例を図示する。なお、図10は、要求パケット100の上記伝送例(図1参照)に基づいて第2通信装置25から第1通信装置10へ応答パケット200が伝送される場合を説明するものであり、通信システム1の一部を抜き出して図示している。   Here, a transmission example of the response packet 200 is illustrated in FIG. FIG. 10 illustrates a case where the response packet 200 is transmitted from the second communication device 25 to the first communication device 10 based on the transmission example of the request packet 100 (see FIG. 1). A part of 1 is extracted and shown.

まず、図1の伝送例によれば、第2通信装置25が受信した要求パケット100の経路情報110には”10:P/21:R/24:P”という情報が記録されている。このため、第2通信装置25は、当該経路情報110の経路単位の並びを反転させた”24:P/21:R/10:P”という情報を応答パケット200の経路情報210に記録する(図10参照)。また、第2通信装置52は、復路ポインタ204を”0”に初期設定する(ステップS54参照)。これにより、復路ポインタ204は先頭の経路単位”24:P”を指すことになる。なお、図10では、説明を分かりやすくするために、復路ポインタ204を矢印で模式的に図示している。   First, according to the transmission example of FIG. 1, information “10: P / 21: R / 24: P” is recorded in the route information 110 of the request packet 100 received by the second communication device 25. For this reason, the second communication device 25 records the information “24: P / 21: R / 10: P” obtained by inverting the arrangement of the route units of the route information 110 in the route information 210 of the response packet 200 ( (See FIG. 10). The second communication device 52 initializes the return path pointer 204 to “0” (see step S54). As a result, the return path pointer 204 points to the head path unit “24: P”. In FIG. 10, the return path pointer 204 is schematically shown by an arrow for easy understanding.

復路ポインタ204が指し示す経路単位”24:P”に基づき、第2通信装置25は、送信先に第2通信装置24をセットし(ステップS56参照)、電力線通信によって応答パケット200を送信する(ステップS60,S64参照)。   Based on the path unit “24: P” pointed to by the return path pointer 204, the second communication apparatus 25 sets the second communication apparatus 24 as a transmission destination (see step S56), and transmits the response packet 200 by power line communication (step S56). (See S60 and S64).

第2通信装置24は、受信した応答パケット200の復路ポインタ204をインクリメントする(ステップS54参照)。そして、復路ポインタ204が指し示す経路単位”21:R”に基づき、第2通信装置24は、第2通信装置21へ無線通信によって応答パケット200を送信する(ステップS54,S56,S60,S62参照)。   The second communication device 24 increments the return path pointer 204 of the received response packet 200 (see step S54). Then, based on the path unit “21: R” pointed to by the return path pointer 204, the second communication device 24 transmits the response packet 200 to the second communication device 21 by wireless communication (see steps S54, S56, S60, and S62). .

第2通信装置21は、受信した応答パケット200の復路ポインタ204をインクリメントする(ステップS54参照)。そして、復路ポインタ204が指し示す経路単位”10:P”に基づき、第2通信装置21は、第1通信装置10へ電力線通信によって応答パケット200を送信する(ステップS54,S58,S60,S64参照)。   The second communication device 21 increments the return path pointer 204 of the received response packet 200 (see step S54). Then, based on the path unit “10: P” pointed to by the return path pointer 204, the second communication device 21 transmits the response packet 200 to the first communication device 10 by power line communication (see steps S54, S58, S60, and S64). .

図10に例示した応答パケット200の伝送を、対応する要求パケット100の伝送とともに、図11のシーケンス図にまとめて図示する。なお、図11において、ステップS0は、第1通信装置10による要求パケット100の送信処理であり、当該パケット100の初期生成処理も含む。また、ステップS4は、第2通信装置10による応答パケット200の初期生成およびその送信処理である。   The transmission of the response packet 200 illustrated in FIG. 10 is illustrated together with the transmission of the corresponding request packet 100 in the sequence diagram of FIG. In FIG. 11, step S <b> 0 is a transmission process of the request packet 100 by the first communication device 10, and includes an initial generation process of the packet 100. Step S4 is the initial generation and transmission process of the response packet 200 by the second communication device 10.

上記のように、第2通信装置20は、第1通信装置10から送信されたパケット100を、第1通信装置10から直接に、または、他の第2通信装置20を介して、電力線通信によって受信した場合には、無線通信によって当該受信したパケット100を中継する。他方、第1通信装置10から送信されたパケット100を、他の第2通信装置20を介して、無線通信によって受信した場合には、無線通信と電力線通信との両方によってパケット100を中継する。   As described above, the second communication device 20 transmits the packet 100 transmitted from the first communication device 10 directly from the first communication device 10 or via the other second communication device 20 by power line communication. When received, the received packet 100 is relayed by wireless communication. On the other hand, when the packet 100 transmitted from the first communication device 10 is received by wireless communication via the other second communication device 20, the packet 100 is relayed by both wireless communication and power line communication.

このため、第1通信装置10から送信されたパケットは、複数の第2通信装置20によって次々に中継されて、各第2通信装置20へ配信される。このため、パケット配信時の通信システム1の全体構成や通信状態に応じて、動的で柔軟にネットワークが構築される。しかも、各第2通信装置20は通信システム1上のネットワーク構成やその変化を例えばデータベース等によって把握しておく必要がないので、第2通信装置20を簡易な構成とすることができ、これにより通信システム1を安価にすることができる。   For this reason, the packets transmitted from the first communication device 10 are relayed one after another by the plurality of second communication devices 20 and delivered to each second communication device 20. For this reason, a network is dynamically and flexibly constructed according to the overall configuration and communication state of the communication system 1 at the time of packet distribution. In addition, since each second communication device 20 does not need to grasp the network configuration on the communication system 1 or changes thereof, for example, by a database, the second communication device 20 can have a simple configuration. The communication system 1 can be made inexpensive.

また、上記のように、要求パケット100が辿る経路(往路)を記録しておき、応答パケット200は当該記録に基づいて通信システム上を進行する。このため、応答パケット00を効率的に第1通信装置10へ送信することができる。   Further, as described above, a route (outward route) followed by the request packet 100 is recorded, and the response packet 200 travels on the communication system based on the record. For this reason, the response packet 00 can be efficiently transmitted to the first communication device 10.

さて、上記の例では、第2通信装置20は、同じシーケンス番号104を有する要求パケット100を複数回受信した場合、最先に受信した要求パケット100を中継し、2回目以降に受信した要求パケット100は中継しない(図7および図8のステップS24を参照)。つまり、最先に到着した要求パケット100が採用され、2番目以降に到着した要求パケット100は破棄される。   In the above example, when the second communication device 20 receives the request packet 100 having the same sequence number 104 a plurality of times, the second communication device 20 relays the request packet 100 received first and receives the request packet received second and subsequent times. 100 is not relayed (see step S24 in FIGS. 7 and 8). That is, the request packet 100 that arrives first is adopted, and the request packet 100 that arrives second or later is discarded.

例えば、図1を参照すると、第2通信装置22は第2通信装置21から送出された要求パケット100を電力線通信と無線通信の両方で受信可能である。そして、上記では、電力線通信による要求パケット100が最先に到着し、採用される場合を例示した。   For example, referring to FIG. 1, the second communication device 22 can receive the request packet 100 transmitted from the second communication device 21 by both power line communication and wireless communication. And the case where the request packet 100 by power line communication arrived first and was employ | adopted was illustrated above.

かかる点に関し、電力線通信と無線通信の両方で受信可能であっても、電力線通信の方が通信速度が速い仕様によれば、電力線通信による要求パケット100が先着することになる。   Regarding this point, even if the power line communication and the wireless communication can be received, the request packet 100 by the power line communication comes first according to the specification in which the power line communication has a higher communication speed.

また、電力線通信は電力線を利用しているため、当該電力線に接続された機器が電力線通信の通信品質を低下させる場合がある。   Moreover, since power line communication uses a power line, a device connected to the power line may deteriorate the communication quality of the power line communication.

また、既述のように、要求パケット100が辿る経路は、対応する応答パケット200の伝送経路として利用される。   Further, as described above, the route followed by the request packet 100 is used as the transmission route of the corresponding response packet 200.

これらに鑑みると、第2通信装置20は、要求パケット100を電力線通信によって受信可能である限り、当該電力線通信の通信品質が低下している状態であっても、当該電力線通信を応答パケット200の伝送に採用することになる。その結果、応答パケット200がロストしてしまう可能性がある。このようなパケットロストは、通信システム1の信頼性低下を招き、好ましくない。   In view of these, as long as the request packet 100 can be received by power line communication, the second communication device 20 transmits the power line communication of the response packet 200 even if the communication quality of the power line communication is degraded. It will be adopted for transmission. As a result, the response packet 200 may be lost. Such packet loss causes a decrease in the reliability of the communication system 1 and is not preferable.

そこで、以下では、通信システム1の信頼性を向上させうる往路中継処理を例示する。図12にその一例に係る往路中継処理S2Bを説明するフローチャートを示す。当該往路中継処理S2Bは、上記の往路中継処理S2に代えて、第2通信装置20に採用可能である。   Therefore, in the following, forward relay processing that can improve the reliability of the communication system 1 will be exemplified. FIG. 12 shows a flowchart for explaining the forward relay processing S2B according to the example. The forward relay process S2B can be used in the second communication device 20 instead of the forward relay process S2.

往路中継処理2Bによれば、電力線通信によって要求パケット100が受信されると(ステップS300)、処理部20cは、復号化の後(図7のステップS22を参照)、当該要求パケット100の中継、換言すれば転送が必要であるか否かを判定する(ステップS302)。中継要否判定ステップS302は、例えば、既述の中継済み判定処理S24aおよび中継回数判定処理S24b(図8参照)を含んで構成可能である。   According to the forward relay process 2B, when the request packet 100 is received by power line communication (step S300), the processing unit 20c, after decoding (see step S22 in FIG. 7), relays the request packet 100, In other words, it is determined whether transfer is necessary (step S302). The relay necessity determination step S302 can be configured to include, for example, the above-described relay completion determination processing S24a and relay count determination processing S24b (see FIG. 8).

当該ステップS302において、中継不要と判定された場合、処理部20cは、受信した要求パケット100の中継を行うことなく、往路中継処理S2Bを終了する。   If it is determined in step S302 that relaying is not required, the processing unit 20c ends the forward relay processing S2B without relaying the received request packet 100.

他方、当該ステップS302において中継が必要であると判定された場合、処理部20cは、その後に無線通信によって、シーケンス番号104が同じ要求パケット100を受信する可能性があるか否かを判別する(ステップS304)。かかる判別は次のようにして行うことが可能である。   On the other hand, when it is determined in step S302 that relay is necessary, the processing unit 20c determines whether or not there is a possibility of receiving the request packet 100 having the same sequence number 104 by wireless communication thereafter ( Step S304). Such a determination can be made as follows.

例えば、処理部20cは、まず、先に受信した要求パケット100中の経路情報110を参照することによって、当該パケット100の直前の送信元を特定する。そして、処理部20cは、特定された直前の送信元からのこれまでの受信履歴を参照することによって、当該直前の送信元が同じ要求パケット100をさらに無線通信によって送信してくるか否かを判別する。なお、直前の送信元は、第1通信装置10である場合もあるし、他の第2通信装置20である場合もある。   For example, the processing unit 20c first identifies the transmission source immediately before the packet 100 by referring to the route information 110 in the request packet 100 received first. Then, the processing unit 20c refers to the reception history so far from the identified immediately preceding transmission source to determine whether or not the immediately preceding transmission source further transmits the same request packet 100 by wireless communication. Determine. Note that the previous transmission source may be the first communication device 10 or may be another second communication device 20.

上記の受信履歴は、例えば、処理部20cが、要求パケット100を受信した際に、直前の送信元と、受信方式が電力線によるのか無線によるのかに関する情報とを関連付けて、記憶部20cに蓄積することにより、形成可能である。   For example, when the processing unit 20c receives the request packet 100, the reception history is stored in the storage unit 20c by associating the immediately preceding transmission source with information regarding whether the reception method is power line or wireless. Thus, it can be formed.

かかる受信履歴のデータは、特許文献2の通信システムのように各通信装置が通信システム上のネットワーク構成やその変化をデータベース化する構成に比べれば、小さくて済む。このため、第2通信装置20および通信システム1は、特許文献2の通信システムに比べて、簡易で安価な構成とすることができる。   Such reception history data may be small as compared with a configuration in which each communication device forms a database of the network configuration on the communication system and changes thereof as in the communication system of Patent Document 2. For this reason, the 2nd communication apparatus 20 and the communication system 1 can be set as the simple and cheap structure compared with the communication system of patent document 2. FIG.

上記判別ステップS304において、シーケンス番号104が同じ要求パケット100をその後に無線で受信する可能性が無いと判別された場合、処理部20cは、中継ステップS312を実行する。中継ステップS312は、例えば、既述のステップS26,S28,S30(図7参照)によって構成される。ここでは要求パケット100は電力線通信によって受信されているため、既述の無線通信処理S30が実行されて要求パケット100は無線通信によって中継送信される(図7参照)。   When it is determined in the determination step S304 that there is no possibility of subsequently receiving the request packet 100 having the same sequence number 104 by radio, the processing unit 20c executes the relay step S312. The relay step S312 includes, for example, the above-described steps S26, S28, and S30 (see FIG. 7). Here, since the request packet 100 is received by power line communication, the above-described wireless communication processing S30 is executed, and the request packet 100 is relayed and transmitted by wireless communication (see FIG. 7).

他方、上記判別ステップS304において、シーケンス番号104が同じ要求パケット100をその後に無線で受信する可能性があると判別された場合、処理部20cは、上記の直前の送信元との間における電力線通信の通信品質、換言すれば上記の直前の送信元と電力線通信を行うことについての信頼性を評価する(ステップS306)。   On the other hand, in the determination step S304, when it is determined that there is a possibility that the request packet 100 having the same sequence number 104 is subsequently received wirelessly, the processing unit 20c performs power line communication with the immediately preceding transmission source. In other words, the reliability of performing power line communication with the immediately preceding transmission source is evaluated (step S306).

かかる評価は、上記の直前の送信元から受信した要求パケット100の受信品質を評価することによって、行うことが可能である。   Such evaluation can be performed by evaluating the reception quality of the request packet 100 received from the immediately preceding transmission source.

パケットの受信品質の評価は、例えば、電力線通信用マイクロコンピュータに搭載されている機能を利用することによって、行うことが可能である。例えば、株式会社ルネサステクノロジ社製の電力線通信用マイクロコンピュータ(M16C/6Sグループ)は、受信パケットの信号状態を表す情報を提供する機能を有している。かかる受信品質情報は、例えば、受信パケットの信号品質が所定段階の評価レベルのうちでどのレベルであるかによって示される。   The reception quality of the packet can be evaluated, for example, by using a function installed in the power line communication microcomputer. For example, a power line communication microcomputer (M16C / 6S group) manufactured by Renesas Technology Corp. has a function of providing information indicating the signal state of a received packet. Such reception quality information is indicated, for example, by the level of the received packet signal quality among the predetermined evaluation levels.

なお、かかる製品によれば、OSI(Open System Interconnection)参照モデルの物理層(第1層)およびデータリンク層(第2層)が提供される。また、上記製品によれば、また、図3に例示した第2通信装置20において、電力線通信部20bと、処理部20cおよび記憶部20dのうちで電力線通信部20bの制御に関する部分と、かかる制御のための基本的なソフトウェア部分(いわゆるライブラリ等)とを構成可能である。   In addition, according to such a product, a physical layer (first layer) and a data link layer (second layer) of an OSI (Open System Interconnection) reference model are provided. Moreover, according to the said product, in the 2nd communication apparatus 20 illustrated in FIG. 3, the part regarding control of the power line communication part 20b among the power line communication part 20b, the process part 20c, and the memory | storage part 20d, and this control Basic software parts (so-called libraries, etc.) can be configured.

したがって、処理部20cは、上記機能によって受信パケット100の信号品質評価レベルを取得し、当該評価レベルと予め設定された評価閾値とを比較することによって、上記の直前の送信元と電力線通信を行うことの信頼性を評価する。例えば、取得した受信信号評価レベルが上記評価閾値よりも高ければ直前の送信元との電力線通信は利用可能である(換言すれば許容可能な通信品質である)と判定し、逆に上記評価閾値以下であれば直前の送信元との間では電力線通信を避けるのが好ましいと判定する。   Therefore, the processing unit 20c acquires the signal quality evaluation level of the received packet 100 by the above function, and compares the evaluation level with a preset evaluation threshold value to perform power line communication with the immediately preceding transmission source. Assess the reliability of things. For example, if the acquired received signal evaluation level is higher than the evaluation threshold, it is determined that power line communication with the previous transmission source is available (in other words, acceptable communication quality), and conversely the evaluation threshold If it is below, it is determined that it is preferable to avoid power line communication with the immediately preceding transmission source.

上記評価閾値は、例えば事前の実験によって決定可能である。具体的には、上記受信品質レベルが低ければ、上記の直前の送信元へ電力線通信によって応答パケット200を伝送しても、パケットロストの発生確率が高くなる。したがって、各評価レベルについてパケットロストの発生状況を実験によって確認し、その実験結果に基づいて電力線通信の採否判断に係る上記閾値を決定すればよい。   The evaluation threshold can be determined, for example, by a prior experiment. Specifically, if the reception quality level is low, even if the response packet 200 is transmitted by power line communication to the previous transmission source, the probability of occurrence of packet loss increases. Therefore, it is only necessary to confirm the occurrence of packet loss for each evaluation level by experiment and determine the threshold value related to the determination of acceptance / rejection of power line communication based on the experiment result.

かかる通信品質評価ステップS306において、直前の送信元との電力線通信は利用可能であると判定された場合、処理部20cは、中継ステップS312を実行する。ここでは電力線通信によって受信された要求パケット100が中継対象であるため、既述の無線通信処理S30が実行されて要求パケット100は無線通信によって中継送信される(図7参照)。   In the communication quality evaluation step S306, when it is determined that the power line communication with the immediately previous transmission source is available, the processing unit 20c executes the relay step S312. Here, since the request packet 100 received by power line communication is to be relayed, the above-described wireless communication processing S30 is executed, and the request packet 100 is relayed and transmitted by wireless communication (see FIG. 7).

他方、通信品質評価ステップS306において、直前の送信元との電力線通信は避けるのが好ましいと判定された場合、処理部20cは、電力線通信で先に受信した要求パケット100を破棄する(ステップS308)。換言すれば、処理部20cは、当該要求パケット100を中継しない。   On the other hand, when it is determined in the communication quality evaluation step S306 that it is preferable to avoid power line communication with the immediately preceding transmission source, the processing unit 20c discards the request packet 100 previously received in power line communication (step S308). . In other words, the processing unit 20c does not relay the request packet 100.

その代わりに、処理部20cは、無線通信で受信した、シーケンス番号104が同じ要求パケット100を中継する(ステップS310,S312)。ここでは無線通信で受信された要求パケット100が中継対象であるため、既述の電力線通信処理S30と無線通信処理S30との両方が実行される(図7参照)。これにより、要求パケット100は電力線通信と無線通信との両方によって中継送信される。   Instead, the processing unit 20c relays the request packet 100 having the same sequence number 104 received by wireless communication (steps S310 and S312). Here, since the request packet 100 received by wireless communication is a relay target, both the power line communication processing S30 and the wireless communication processing S30 described above are executed (see FIG. 7). Thus, the request packet 100 is relayed and transmitted by both power line communication and wireless communication.

なお、上記の無線受信ステップS310は、図12のフローチャート中に例示したタイミング以外で起こる場合もある。すなわち、無線受信ステップS310は、電力線受信ステップS300と中継ステップS312との間のいずれかのタイミングで生じる。   Note that the above-described wireless reception step S310 may occur at a timing other than the timing illustrated in the flowchart of FIG. That is, the wireless reception step S310 occurs at any timing between the power line reception step S300 and the relay step S312.

往路中継処理S2Bによれば、電力線通信方式で受信した要求パケット100の信号品質が予め設定された閾値以下である場合、当該要求パケット100は中継されず、無線方式で受信した要求パケット100(電力線通信方式で受信した上記要求パケット100と同じシーケンス番号104を有する)が中継される。   According to the forward relay processing S2B, when the signal quality of the request packet 100 received by the power line communication method is equal to or lower than a preset threshold value, the request packet 100 is not relayed and the request packet 100 (power line received by the wireless method) (Which has the same sequence number 104 as the request packet 100 received by the communication method) is relayed.

ここで、既述のように、応答パケット200は、対応する要求パケット100が辿った経路(往路)を逆順に辿る。このため、上記要求パケット100に対応する応答パケット200を、受信信号品質が良好でなかった電力線通信方式の経路を避けて、換言すれば通信品質が低かった経路を避けて、第1通信装置10へ伝送することができる。   Here, as described above, the response packet 200 follows the path (outward path) followed by the corresponding request packet 100 in the reverse order. For this reason, the response packet 200 corresponding to the request packet 100 is avoided by avoiding the path of the power line communication method in which the received signal quality is not good, in other words, by avoiding the path having the low communication quality, Can be transmitted.

このため、往路中継処理S2Bによれば、応答パケット200のロストを防止することができる。したがって、通信システム1の信頼性を向上させることができる。   For this reason, according to the forward relay process S2B, it is possible to prevent the response packet 200 from being lost. Therefore, the reliability of the communication system 1 can be improved.

上記の往路中継処理S2Bでは、電力線通信による受信の後に無線通信による受信があるか否かを、それまでの受信履歴から判別する例を説明した(ステップS304参照)。以下では、受信履歴を利用しない例を説明する。図13に、そのような例に係る往路中継処理S2Cを説明するフローチャートを示す。当該往路中継処理S2Cは、上記の往路中継処理S2,S2Bに代えて、第2通信装置20に採用可能である。   In the above-described forward relay processing S2B, an example has been described in which whether or not there is reception by wireless communication after reception by power line communication is determined from the reception history so far (see step S304). Hereinafter, an example in which the reception history is not used will be described. FIG. 13 shows a flowchart for explaining the forward relay process S2C according to such an example. The forward relay process S2C can be employed in the second communication device 20 instead of the forward relay processes S2 and S2B.

図13に例示の往路中継処理S2Cは、上記ステップS300,S302,S306を含んでいるが、上記ステップS304を含んでいない。より具体的には、ステップS302において中継が必要であると判定された場合、無線受信の可能性を判別するステップS304を実行せずに、通信品質評価ステップS306が実行される。   The forward relay process S2C illustrated in FIG. 13 includes the steps S300, S302, and S306, but does not include the step S304. More specifically, when it is determined in step S302 that relaying is necessary, the communication quality evaluation step S306 is executed without executing step S304 for determining the possibility of wireless reception.

そして、通信品質評価ステップS306において、受信した要求パケット100の信号評価レベルが上記評価閾値以下であると判定された場合、すなわち直前の送信元との電力線通信は避けた方が好ましいと判定された場合、処理部20cは、同じシーケンス番号104を有した要求パケット100が無線通信で送られてくるのを待つ(ステップS330)。   In the communication quality evaluation step S306, when it is determined that the signal evaluation level of the received request packet 100 is equal to or lower than the evaluation threshold, that is, it is determined that it is preferable to avoid power line communication with the immediately preceding transmission source. In this case, the processing unit 20c waits for the request packet 100 having the same sequence number 104 to be transmitted by wireless communication (step S330).

例えば、処理部20cは、予め設定された待ち時間の間、無線受信を受付可能な状態で待機する。当該待ち時間は、電力線と無線との受信時間差以上の長さに設定されるのが好ましい。なお、受信時間差は予め実験等によって取得可能である。処理部20cは、所望の要求パケット100を無線で受信した場合、または、無線受信待ち時間を経過した場合、無線受信待ちステップS330を終了する。   For example, the processing unit 20c stands by in a state where wireless reception can be accepted during a preset waiting time. The waiting time is preferably set to a length equal to or longer than the reception time difference between the power line and the radio. The reception time difference can be acquired in advance through experiments or the like. When the desired request packet 100 is received wirelessly or when the wireless reception waiting time has elapsed, the processing unit 20c ends the wireless reception waiting step S330.

処理部20cは、待ち時間中に無線で所望の要求パケット100を受信できた場合には(ステップS332)、電力線通信で先に受信した要求パケット100を破棄し(ステップS334)、無線受信した要求パケット100を中継する(ステップS312)。他方、待ち時間中に無線で所望の要求パケット100を受信できなかった場合には(ステップS332)、電力線通信で先に受信した要求パケット100を中継する(ステップS312)。   If the processing unit 20c can receive the desired request packet 100 wirelessly during the waiting time (step S332), the processing unit 20c discards the request packet 100 previously received by power line communication (step S334), and receives the request received wirelessly. The packet 100 is relayed (step S312). On the other hand, when the desired request packet 100 cannot be received wirelessly during the waiting time (step S332), the request packet 100 previously received by the power line communication is relayed (step S312).

なお、往路中継処理S2Cの他のフローは、上記の往路中継処理S2Bと同様である。   The other flow of the forward relay process S2C is the same as that of the forward relay process S2B.

往路中継処理S2Cによれば、上記の往路中継処理S2Bと同様の効果が得られる。   According to the forward relay process S2C, the same effect as the forward relay process S2B is obtained.

また、往路中継処理S2Cによれば、受信履歴のデータ形成が不要であるため、上記の往路中継処理S2Bに比べて、簡易な構成とすることができる。   In addition, according to the forward relay process S2C, it is not necessary to form data of the reception history, and therefore, a simpler configuration can be achieved as compared with the forward relay process S2B.

図14に、更なる一例として、往路中継処理S2Dを説明するフローチャートを示す。当該往路中継処理S2Dは、上記の往路中継処理S2,S2B,S2Cに代えて、第2通信装置20に採用可能である。   FIG. 14 is a flowchart illustrating the forward relay process S2D as a further example. The forward relay process S2D can be employed in the second communication device 20 instead of the forward relay processes S2, S2B, and S2C.

往路中継処理S2Dによれば、まず、要求パケット100が受信される(ステップS350)。なお、当該受信ステップS350は、電力線通信と無線通信のいずれの通信方式にも適用される。処理部20cは、受信パケット100を復号化した後(図7のステップS22を参照)、既述の中継要否判定ステップS302を実行する。当該ステップS302において、中継不要と判定された場合、処理部20cは、受信した要求パケット100の中継を行うことなく、往路中継処理S2Dを終了する。   According to the forward relay process S2D, first, the request packet 100 is received (step S350). The reception step S350 is applied to both communication methods of power line communication and wireless communication. After decoding the received packet 100 (see step S22 in FIG. 7), the processing unit 20c executes the above-described relay necessity determination step S302. If it is determined in step S302 that relaying is not required, the processing unit 20c ends the forward relay processing S2D without relaying the received request packet 100.

他方、ステップS302において中継が必要であると判定された場合、処理部20cは、受信した要求パケット100がこれまでに辿った通信経路について通信品質を評価する(ステップS352)。かかる通信品質評価は、例えば、要求パケット100の受信品質と、当該要求パケット100が経た中継段数とに基づいて行うことが可能である。   On the other hand, when it is determined in step S302 that relaying is necessary, the processing unit 20c evaluates the communication quality of the communication path that the received request packet 100 has traced so far (step S352). Such communication quality evaluation can be performed based on, for example, the reception quality of the request packet 100 and the number of relay stages through which the request packet 100 has passed.

まずパケットの受信品質に関し、電力線通信によって受信した要求パケット100については、既述の評価ステップS306と同様にして、受信品質を取得可能である。   First, regarding the packet reception quality, the reception quality of the request packet 100 received by power line communication can be acquired in the same manner as in the evaluation step S306 described above.

他方、無線で受信した要求パケット100の受信品質は、例えば、受信信号の強度を測定するRSSI(Received Signal Strength Indication)技術を利用することによって評価可能である。より具体的には、無線通信部20e(図3参照)にRSSI回路を設けて受信信号強度を測定し、その測定結果を処理部20cが評価すればよい。例えば、処理部20cは、取得した受信信号強度が予め設定された評価閾値よりも高ければ直前の送信元との無線通信は利用可能であると判定し、逆に当該評価閾値以下であれば直前の送信元との間では無線通信を避けるのが好ましいと判定する。   On the other hand, the reception quality of the request packet 100 received wirelessly can be evaluated by using, for example, an RSSI (Received Signal Strength Indication) technique for measuring the strength of the received signal. More specifically, the RSSI circuit may be provided in the wireless communication unit 20e (see FIG. 3) to measure the received signal strength, and the processing unit 20c may evaluate the measurement result. For example, the processing unit 20c determines that wireless communication with the immediately preceding transmission source is available if the acquired received signal strength is higher than a preset evaluation threshold, and conversely if it is equal to or less than the evaluation threshold. It is determined that it is preferable to avoid wireless communication with the transmission source.

ここで、電力線通信については、上記のように、多段階レベルで評価された受信品質情報を取得可能である。このため、電力線通信用の上記閾値との比較による評価に加えて、多段階レベルによる評価値を採用してもよい。これによれば、より詳細な評価を行うことができる。   Here, for power line communication, it is possible to acquire reception quality information evaluated at multiple levels as described above. For this reason, in addition to the evaluation by comparison with the threshold value for power line communication, an evaluation value based on a multistage level may be adopted. According to this, more detailed evaluation can be performed.

また、無線通信の品質評価も、電力線通信についての上記多段階レベル評価に倣ってもよい。例えば、受信信号強度を予め多段階のレベルに分類しておき、処理部20cが、取得した受信信号強度を当該分類に照合することによって評価レベルを決定すればよい。なお、かかる分類は、例えばテーブル形式のデータとして記憶部20dに格納しておくことにより、処理部20cが利用可能である。あるいは、当該分類を、処理部20cが実行するプログラム中に組み込んでもよい。   Further, the quality evaluation of the wireless communication may follow the above multi-level evaluation for the power line communication. For example, the received signal strength may be classified into multiple levels in advance, and the processing unit 20c may determine the evaluation level by comparing the acquired received signal strength with the classification. Such a classification can be used by the processing unit 20c by storing it in the storage unit 20d as data in a table format, for example. Alternatively, the classification may be incorporated into a program executed by the processing unit 20c.

ここで、無線通信についての多段階評価レベルは、電力線通信についての多段階評価レベルと相関させておく。すなわち、同じ評価レベルについては、無線通信と電力線通信とのいずれであっても、同等レベルの通信品質、換言すれば同等レベルの信頼性が得られるように規定しておく。これにより、無線通信と電力線通信との相互評価が可能になる。   Here, the multi-stage evaluation level for wireless communication is correlated with the multi-stage evaluation level for power line communication. That is, the same evaluation level is defined so that an equivalent level of communication quality, in other words, an equivalent level of reliability, can be obtained in both wireless communication and power line communication. Thereby, mutual evaluation of wireless communication and power line communication becomes possible.

また、中継段数の評価に関し、中継段数が少ないほど、受信パケット100の品質低下は少ないと考えられる。このため、中継段数が少ないほど高い評価レベルが与えられるという評価規則を予め規定しておき、当該評価規則に従って処理部20cが中継段数に関する評価を行えばよい。なお、中継段数は、受信した要求パケット100中の経路情報110を参照することによって、取得可能である。   Regarding the evaluation of the number of relay stages, it is considered that the lower the number of relay stages, the less the quality degradation of the received packet 100. For this reason, an evaluation rule that a higher evaluation level is given as the number of relay stages is smaller is defined in advance, and the processing unit 20c may perform an evaluation regarding the number of relay stages according to the evaluation rule. Note that the number of relay stages can be acquired by referring to the route information 110 in the received request packet 100.

そして、処理部20cは、上記の通信経路評価ステップS352で得られた評価結果を、シーケンス番号104が同じ要求パケット100について暫定的に選定されている最良の通信経路の評価情報と比較する(ステップS354)。   Then, the processing unit 20c compares the evaluation result obtained in the communication path evaluation step S352 described above with the evaluation information of the best communication path tentatively selected for the request packet 100 having the same sequence number 104 (step). S354).

ここで、上記の暫定的に選定されている最良の経路(以下「暫定的な最良経路」のようにも表現する)とは、同じシーケンス番号104を有した受信済みの要求パケット100に関して通信品質が最も高く評価された通信経路である。   Here, the tentatively selected best route (hereinafter also expressed as “temporary best route”) refers to the communication quality of the received request packet 100 having the same sequence number 104. Is the most highly evaluated communication path.

また、新しいシーケンス番号104を有した要求パケット100を受信した場合、上記の暫定的な最良経路に関する情報はリセットされる。なお、暫定的な最良経路に関する情報は、例えば、直前の送信元を特定する装置番号と、当該直前の送信元が使った通信方式の区別、品質評価結果等の情報を含む。この場合、例えば、処理部20cが直前の送信元の装置番号および通信方式の区別を”NULL”に書き換え、評価結果を最低レベルに設定することによって、暫定的な最良経路がリセットされる。   Further, when the request packet 100 having the new sequence number 104 is received, the information regarding the provisional best route is reset. Note that the information on the provisional best route includes, for example, information such as a device number that identifies the immediately preceding transmission source, a communication method used by the immediately preceding transmission source, and a quality evaluation result. In this case, for example, the processing unit 20c rewrites the previous transmission source device number and the communication method to “NULL” and sets the evaluation result to the lowest level, thereby resetting the provisional best route.

当該ステップS354において、新たに受信した要求パケット100の通信経路の方が、暫定的な最良経路よりも通信品質が高いと判定された場合、処理部20cは、暫定的な最良経路を更新する(ステップS356)。すなわち、今回新たに受信した要求パケット100の通信経路を、その時点における暫定的な最良経路として選定する。その後、後続のステップS358が実行される。   In step S354, when it is determined that the communication path of the newly received request packet 100 has higher communication quality than the provisional best path, the processing unit 20c updates the provisional best path ( Step S356). That is, the communication path of the request packet 100 newly received this time is selected as the provisional best path at that time. Thereafter, the subsequent step S358 is executed.

他方、当該ステップS354において、新たに受信した要求パケット100の通信経路よりも、暫定的な最良経路の方が、通信品質が高いと判定された場合、暫定的な最良経路はそのまま保持される。その後、後続のステップS358が実行される。   On the other hand, if it is determined in step S354 that the provisional best route has higher communication quality than the communication route of the newly received request packet 100, the provisional best route is held as it is. Thereafter, the subsequent step S358 is executed.

なお、新たに受信した要求パケット100の通信経路と、暫定的な最良経路とが同等の評価である場合は、暫定的な最良経路を更新しても良いし、あるいは、そのまま保持しても良い。   When the communication path of the newly received request packet 100 and the provisional best path have the same evaluation, the provisional best path may be updated or may be retained as it is. .

上記ステップS356の後、または、上記ステップS354の後、処理部20cは、予め設定された所定時間が経過したか否かを判定する(ステップS358)。そして、所定時間が経過していなければ、処理部20cは上記ステップS350へ戻って、次の要求パケット100の到来を待つ。   After step S356 or after step S354, the processing unit 20c determines whether a predetermined time set in advance has elapsed (step S358). If the predetermined time has not elapsed, the processing unit 20c returns to step S350 and waits for the next request packet 100 to arrive.

上記の所定時間は、同じシーケンス番号104を有する要求パケット100のうちで、最も速く到来する要求パケット100と、最も遅く到来する要求パケット100との受信時間差以上の長さに設定されるのが好ましい。なお、かかる受信時間差は予め実験等によって取得可能である。   The predetermined time is preferably set to a length equal to or longer than the reception time difference between the request packet 100 that arrives fastest and the request packet 100 that arrives latest among the request packets 100 having the same sequence number 104. . Note that such a reception time difference can be acquired in advance by an experiment or the like.

他方、上記ステップS358において所定時間が経過していれば、処理部20cは後続のステップS360を実行する。なお、ステップS350へ戻って要求パケット100の受信待ち状態にある途中で当該所定時間が経過した場合にも、処理部20cはステップS350を中止してステップS360を実行する。   On the other hand, if the predetermined time has elapsed in step S358, the processing unit 20c executes subsequent step S360. Even when the predetermined time has elapsed while returning to step S350 and waiting to receive the request packet 100, the processing unit 20c stops step S350 and executes step S360.

ステップS360では、処理部20cは、その時点で保持している暫定的な最良経路を往路、すなわち対応する応答パケット200の伝送経路として採用する。より具体的には、暫定的な最良経路を辿って到来した要求パケット100を中継する(ステップS312)。   In step S360, the processing unit 20c adopts the provisional best route held at that time as the forward route, that is, the transmission route of the corresponding response packet 200. More specifically, the request packet 100 that arrives following the provisional best route is relayed (step S312).

かかる往路中継処理S2Dによれば、通信品質が最も高いと評価された通信経路を辿って到来した要求パケット100が中継され、同じシーケンス番号を有しているが残余の通信経路を辿って到来した要求パケット100は中継されない。   According to the forward relay processing S2D, the request packet 100 that has arrived following the communication path evaluated to have the highest communication quality is relayed, and has arrived following the remaining communication path having the same sequence number. Request packet 100 is not relayed.

ここで、既述のように、応答パケット200は、対応する要求パケット100が辿った経路(往路)を逆順に辿る。このため、上記要求パケット100に対応する応答パケット200を、通信品質が最も高いと評価された通信経路で、第1通信装置10へ伝送することができる。   Here, as described above, the response packet 200 follows the path (outward path) followed by the corresponding request packet 100 in the reverse order. Therefore, the response packet 200 corresponding to the request packet 100 can be transmitted to the first communication device 10 through the communication path evaluated as having the highest communication quality.

このため、往路中継処理S2Dによれば、応答パケット200のロストを防止することができる。したがって、通信システム1の信頼性を向上させることができる。   For this reason, according to the forward relay process S2D, it is possible to prevent the response packet 200 from being lost. Therefore, the reliability of the communication system 1 can be improved.

また、上記の例では2つの評価手法を用いて、通信経路の品質を評価する。すなわち、要求パケット100の受信品質が予め設定された閾値よりも高い場合には、当該要求パケット100の通信経路は利用可能な通信品質を有していると判定する評価手法と、要求パケット100が経た中継段数が少ないほど、通信品質を高く評価するという評価手法とが採用されている。   In the above example, the quality of the communication path is evaluated using two evaluation methods. That is, when the reception quality of the request packet 100 is higher than a preset threshold, an evaluation method for determining that the communication path of the request packet 100 has usable communication quality, and the request packet 100 An evaluation method is adopted in which the smaller the number of relayed stages, the higher the communication quality is evaluated.

このため、通信品質を2つの観点で以て子細に評価することができる。これにより、応答パケット200のロストをより確実に防止して、通信システム1の信頼性をさらに向上させることができる。なお、3つ以上の評価手法を組み合わせても構わない。   For this reason, communication quality can be evaluated in detail from two viewpoints. Thereby, the lost response packet 200 can be more reliably prevented, and the reliability of the communication system 1 can be further improved. Three or more evaluation methods may be combined.

なお、上記では第2通信装置20が、要求パケット100を電力線通信によって受信した場合には無線通信によって中継し、要求パケット100を無線通信によって受信した場合には無線通信と電力線通信との両方によって中継する構成(図7のステップS26,S28,S30を参照)を例示した。   In the above, when the second communication device 20 receives the request packet 100 by power line communication, the second communication device 20 relays the request packet 100 by wireless communication. When the second communication device 20 receives the request packet 100 by wireless communication, both the wireless communication and the power line communication are used. A configuration for relaying (see steps S26, S28, and S30 in FIG. 7) was illustrated.

これに対し、例えば、要求パケット100を電力線通信で受信したか、無線通信で受信したかに関わらず、電力線通信と無線通信の両方で要求パケット100を中継するように、上記の往路中継処理S2,S2B,S2C,S2Dを変形しても構わない。   On the other hand, for example, the forward relay processing S2 described above is performed so that the request packet 100 is relayed by both power line communication and wireless communication regardless of whether the request packet 100 is received by power line communication or wireless communication. , S2B, S2C, S2D may be modified.

つまり、要求パケット100の中継は、要求パケット100の受信に用いた通信方式に関連付けて、あるいは当該受信通信方式とは無関係に、電力線通信と無線通信の少なくとも一方によって行うことが可能である。   That is, the relay of the request packet 100 can be performed by at least one of power line communication and wireless communication in association with the communication method used to receive the request packet 100 or regardless of the received communication method.

また、上記では要求パケット100が中継される場合を例示したが、中継対象のパケットは要求パケット100に限定されるものではない。   Moreover, although the case where the request packet 100 was relayed was illustrated above, the packet to be relayed is not limited to the request packet 100.

次に、要求パケット100によって第1通信装置10が第2通信装置20に要求する処理の一例として、電力量取得処理を説明する。なお、電力量取得処理は、第2通信装置20の電力測定部20gによって測定される電力量を第1通信装置10へ報告させる処理である。当該電力量は、第2通信装置20の接続端子20fに接続されたデバイス51(図3参照)の動作状態に応じて変化するので、デバイスの動作に関する情報に含まれる。   Next, as an example of processing that the first communication device 10 requests from the second communication device 20 using the request packet 100, power amount acquisition processing will be described. The power amount acquisition process is a process for causing the first communication device 10 to report the power amount measured by the power measurement unit 20g of the second communication device 20. Since the electric energy changes according to the operation state of the device 51 (see FIG. 3) connected to the connection terminal 20f of the second communication device 20, it is included in the information regarding the operation of the device.

図15に電力量取得処理S10のシーケンス図を例示する。ここでは図15に例示した通信装置10,21,26について説明する。   FIG. 15 illustrates a sequence diagram of the electric energy acquisition process S10. Here, the communication devices 10, 21, and 26 illustrated in FIG. 15 will be described.

図15の例において、第1通信装置10の処理部10cはまず初期設定を行う(ステップS100)。この初期設定には、電力量取得処理S10に対応した要求コマンド106(図5参照)を有する要求パケット100の生成、取得結果を記述するデータテーブルのクリア等を含む。   In the example of FIG. 15, the processing unit 10c of the first communication device 10 first performs initial setting (step S100). This initial setting includes generation of a request packet 100 having a request command 106 (see FIG. 5) corresponding to the power amount acquisition process S10, clearing of a data table describing the acquisition result, and the like.

要求パケット100は、第1通信装置10から送信されると(ステップS0)、第2通信装置21へ到達する。   When the request packet 100 is transmitted from the first communication device 10 (step S0), the request packet 100 reaches the second communication device 21.

第2通信装置21は、要求パケット100中の要求コマンド106の内容に従って電力測定部20gから消費電力量を取得し、当該取得した電力量を応答内容情報208に記録した応答パケット200を生成して第1通信装置10へ返信する(ステップS4)。第1通信装置10は、当該応答パケット200を受信すると、応答内容情報208に基づいて第1通信装置21による測定電力量を電力量データテーブルを記録する(ステップS102)。   The second communication device 21 acquires the power consumption amount from the power measurement unit 20g according to the content of the request command 106 in the request packet 100, and generates a response packet 200 in which the acquired power amount is recorded in the response content information 208. It returns to the 1st communication apparatus 10 (step S4). When receiving the response packet 200, the first communication device 10 records a power amount data table of the measured power amount by the first communication device 21 based on the response content information 208 (step S102).

また、第2通信装置21は、受信した要求パケット100を中継する(ステップS2)。なお、かかる中継を、往路中継処理S2に代えて、往路中継処理S2B,S2C,S2D(図12〜図14参照)のいずれかによって行ってもよい(図15参照)。   The second communication device 21 relays the received request packet 100 (step S2). Such relay may be performed by any one of the forward relay processes S2B, S2C, and S2D (see FIGS. 12 to 14) instead of the forward relay process S2 (see FIG. 15).

中継された要求パケット100が第2通信装置26へ到達すると、第2通信装置26は、第2通信装置21と同様に、応答パケット200を生成して送信する(ステップS4)。送信された応答パケット200は上記復路中継処理S6によって第1通信装置10へ到達する。第1通信装置10は、応答パケット200を受信すると、上記と同様に、電力量データテーブルの記録を行う(ステップS104)。   When the relayed request packet 100 reaches the second communication device 26, the second communication device 26 generates and transmits a response packet 200, similarly to the second communication device 21 (step S4). The transmitted response packet 200 arrives at the first communication device 10 through the return relay process S6. When receiving the response packet 200, the first communication device 10 records the power amount data table in the same manner as described above (step S104).

通信システム1では、要求パケット100の生成・送信から、第2通信装置21,26によって報告された電力量の記録までの処理を1つの処理単位Tとして、当該処理単位Tを予め設定した複数回、繰り返す。なお、処理単位Tは周期的に実行してもよいし、非周期的に実行してもよい。   In the communication system 1, the processing from the generation / transmission of the request packet 100 to the recording of the power amount reported by the second communication devices 21 and 26 is defined as one processing unit T, and the processing unit T is set a plurality of times. ,repeat. The processing unit T may be executed periodically or aperiodically.

そして、第1通信装置10は、得られた電力量情報を情報管理センター45(図2参照)へ送信する(ステップS110)。   And the 1st communication apparatus 10 transmits the acquired electric energy information to the information management center 45 (refer FIG. 2) (step S110).

センター45へ送信するデータは、例えば各処理単位Tごとの全データ(図16参照)であってもよい。このとき、例えば、パケットロスト等の通信障害が発生して第2通信装置21から2回目の報告を受信できなかった場合(図16では”−1”で表記している)、当該データを未取得状態のままにしてもよいし、または、未取得回のデータを他の取得回のデータで補間してもよい。   The data transmitted to the center 45 may be all data (see FIG. 16) for each processing unit T, for example. At this time, for example, when a communication failure such as packet loss occurs and the second report cannot be received from the second communication device 21 (indicated as “−1” in FIG. 16), the data is not stored. The acquisition state may be left as it is, or unacquired data may be interpolated with other acquired data.

ここで、往路中継処理S2に代えて、往路中継処理S2B,S2C,S2D(図12〜図14参照)のいずれかを利用すれば、パケットロストを防止することができる。   Here, instead of the forward relay process S2, the packet lost can be prevented by using any of the forward relay processes S2B, S2C, and S2D (see FIGS. 12 to 14).

また、センター45へ送信するデータを、例えば全データを整理して各第2通信装置20について代表的なデータだけにすることも可能である。例えば、図16に例示するように同じ第2通信装置22から異なる電力量データが報告された場合、最新のデータや平均データを代表的なデータとして選定すればよい。   In addition, the data to be transmitted to the center 45 can be limited to, for example, only representative data for each second communication device 20 by organizing all data. For example, as illustrated in FIG. 16, when different power amount data is reported from the same second communication device 22, the latest data or average data may be selected as representative data.

このように処理単位Tを複数回実行することにより、換言すれば同じ要求コマンド106を含んだ要求パケット100をシーケンス番号104を変えて複数回送信することにより、通信障害等が発生した場合であっても、要求パケット100の配信を確実にすることができる。また、複数回の応答パケット200によれば、豊富な情報を収集することができるし、また、通信障害等が発生した場合であっても情報を確実に取得することができる。   In this way, when the processing unit T is executed a plurality of times, in other words, the request packet 100 including the same request command 106 is transmitted a plurality of times while changing the sequence number 104, thereby causing a communication failure or the like. However, delivery of the request packet 100 can be ensured. Further, according to the response packet 200 of a plurality of times, abundant information can be collected and information can be reliably acquired even when a communication failure or the like occurs.

また、要求パケット100によって第1通信装置10が第2通信装置20に要求する処理の他の一例として、センサ状態取得処理を説明する。なお、センサ状態取得処理は、デバイス52の一例としての各種センサの状態、すなわち当該センサの動作に関する情報を第1通信装置10へ報告させる処理である。なお、上記各種センサは、例えば光学的センサ、機械的センサ等であり、また、例えば防犯センサ、各種機器の動作状態を検出するためのセンサ等である。   In addition, sensor state acquisition processing will be described as another example of processing that the first communication device 10 requests the second communication device 20 by using the request packet 100. The sensor state acquisition process is a process for reporting to the first communication apparatus 10 the state of various sensors as an example of the device 52, that is, information regarding the operation of the sensor. The various sensors are, for example, optical sensors, mechanical sensors, and the like, and are, for example, security sensors, sensors for detecting operation states of various devices, and the like.

図17にセンサ状態取得処理S12のフローチャートを例示する。図17の例において、第1通信装置10の処理部10cはまず初期設定を行う(ステップS120)。この初期設定には、センサ状態取得処理S12に対応した要求コマンド106(図5参照)を有する要求パケット100の生成、取得結果を記述するデータテーブルのクリア等を含む。   FIG. 17 illustrates a flowchart of the sensor state acquisition process S12. In the example of FIG. 17, the processing unit 10c of the first communication device 10 first performs initialization (step S120). This initial setting includes generation of a request packet 100 having a request command 106 (see FIG. 5) corresponding to the sensor state acquisition process S12, clearing of a data table describing the acquisition result, and the like.

要求パケット100は、第1通信装置10から各第2通信装置20へ送信されると、各第2通信装置20は通信可能に接続されているセンサの状態を検出する。そして、各第2通信装置20は、検出結果を応答内容情報208に記録した応答パケット200を第1通信装置10へ送信する。これにより、通信システム1に繋がるセンサがスキャンされる(ステップS122)。   When the request packet 100 is transmitted from the first communication device 10 to each second communication device 20, each second communication device 20 detects the state of a sensor connected so as to be communicable. Then, each second communication device 20 transmits a response packet 200 in which the detection result is recorded in the response content information 208 to the first communication device 10. Thereby, the sensor connected to the communication system 1 is scanned (step S122).

そして、第1通信装置10は、各第2通信装置20からの応答パケット200を受信し、各応答内容情報208に基づいてスキャン結果を例えばデータテーブルに集約し(図18参照)、オン状態のセンサが存在するか否かを判別する(ステップS124)。判別の結果、オン状態のセンサが存在する場合、第1通信装置10はセンター(例えば防犯センター)45へ報告し(ステップS126)、その後、上記ステップS120へ戻る。他方、オン状態のセンサが無い場合、第1通信装置10は、センター報告ステップS126を行うことなく、第1通信装置10の処理は上記ステップS120へ戻る。   Then, the first communication device 10 receives the response packet 200 from each second communication device 20, collects the scan results in, for example, a data table based on each response content information 208 (see FIG. 18), It is determined whether or not a sensor exists (step S124). As a result of the determination, if there is an on-state sensor, the first communication device 10 reports to the center (for example, security center) 45 (step S126), and then returns to step S120. On the other hand, when there is no sensor in the ON state, the first communication device 10 returns to the above step S120 without performing the center report step S126.

なお、上記とは逆にオフ状態のセンサが存在する場合にセンター45へ通報するように構成することも可能である。   Contrary to the above, when there is a sensor in an off state, the center 45 can be notified.

ここで、1台の第2通信装置20に対して複数のセンサがデバイス52として接続される場合がある(例えば無線接続の場合)。この場合、各センサごとに応答内容情報208を生成してもよいし、または、当該複数のセンサの一部もしくは全部をまとめて1つの応答内容情報208を生成することも可能である。   Here, a plurality of sensors may be connected as a device 52 to one second communication apparatus 20 (for example, in the case of wireless connection). In this case, the response content information 208 may be generated for each sensor, or one response content information 208 may be generated by collecting some or all of the plurality of sensors.

また、1つのセンサがデバイス52として複数の第2通信装置20に接続される場合もある(例えば無線接続の場合)。この場合、第1通信装置10は、取得したデータのうちの最新のものを採用するのが好ましい。   In addition, one sensor may be connected as a device 52 to a plurality of second communication apparatuses 20 (for example, in the case of wireless connection). In this case, it is preferable that the first communication device 10 employs the latest of the acquired data.

なお、上記ではデバイス52が各種センサである場合を例示したが、デバイス52が例えば各種の情報端末機であってもよい。この場合、当該情報端末機が取得・保有する情報を、第2通信装置20を介して第1通信装置10が収集することが可能である。情報端末機として、例えば、体重計や血圧計等の健康管理機器が挙げられる。   In addition, although the case where the device 52 is various sensors was illustrated above, the device 52 may be various information terminals, for example. In this case, the information acquired and held by the information terminal can be collected by the first communication device 10 via the second communication device 20. Examples of the information terminal include health management devices such as a weight scale and a blood pressure monitor.

上記では電力線通信を例示したが、電力線通信に代えてその他の有線通信を通信システム1に適用することも可能である。これに対し、電力線通信は一般的に電力線に接続される機器が発生するノイズによって通信性能が低下しやすい(換言すれば通信品質の安定性が低い)ので、電力線通信と無線通信とを併用した上記通信システム1によればシステム全体として良好な通信(換言すれば信頼性の高い通信)が得られる。   In the above, power line communication has been exemplified, but other wired communication can be applied to the communication system 1 instead of power line communication. In contrast, power line communication generally tends to degrade communication performance due to noise generated by devices connected to the power line (in other words, the stability of communication quality is low), so power line communication and wireless communication are used in combination. According to the communication system 1, good communication (in other words, highly reliable communication) can be obtained as a whole system.

また、上記例示の通信システム1を、複数種類の無線方式を利用する構成に変形することも可能である。その場合、複数種類の無線方式を、例えば、複数の規格の無線方式を含んで構成してもよいし、あるいは、同じ規格であるが複数のチャネルを有する無線方式を含んで構成してもよい。   Further, the communication system 1 illustrated above can be modified to a configuration using a plurality of types of wireless systems. In that case, for example, a plurality of types of radio systems may be configured to include radio systems of a plurality of standards, or may be configured to include radio systems that have the same standard but have a plurality of channels. .

同様に、上記例示の通信システム1を、複数種類の有線方式を利用する構成に変形することも可能である。その場合、複数種類の有線方式を、例えば、複数の規格の有線方式を含んで構成してもよいし、あるいは、同じ規格であるが複数のチャネルを有する有線方式を含んで構成してもよい。   Similarly, the communication system 1 illustrated above can be modified to a configuration using a plurality of types of wired systems. In that case, for example, a plurality of types of wired systems may be configured to include a wired system of a plurality of standards, or may be configured to include a wired system that has the same standard but has a plurality of channels. .

なお、無線方式および有線方式のいずれも規格に応じて種々の特長があるので(例えば、通信品質の安定性に優れる、消費電力が少ない等)、各特長が生かされるように状況に応じて通信方式を切り替える構成を採用してもよい。   Note that both wireless and wired systems have various features depending on the standard (for example, excellent communication quality stability, low power consumption, etc.), so communication is possible depending on the situation so that each feature can be utilized. You may employ | adopt the structure which switches a system.

1 通信システム
10 第1通信装置
10b 電力線通信部
20,21〜26 第2通信装置
20b 電力線通信部
20e 無線通信部
100 要求パケット(第1パケット)
104 シーケンス番号(識別情報)
110 往路経路情報
200 応答パケット(第2パケット)
210 復路経路情報
S2,S2B,S2C,S2D 往路中継処理
S6 復路中継処理
DESCRIPTION OF SYMBOLS 1 Communication system 10 1st communication apparatus 10b Power line communication part 20, 21-26 2nd communication apparatus 20b Power line communication part 20e Wireless communication part 100 Request packet (1st packet)
104 Sequence number (identification information)
110 Outbound route information 200 Response packet (second packet)
210 Return route information S2, S2B, S2C, S2D Outward relay processing S6 Inward route relay processing

Claims (6)

第1通信装置と、
有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成され、受信したパケットを中継する機能を有した複数の第2通信装置と
を備え、
前記複数の第2通信装置のそれぞれは、
前記第1通信装置から発信された第1パケットを中継する際には、当該第2通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、
前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、
前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、
前記複数の第2通信装置のそれぞれは、
同じ識別情報を有する前記第1パケットを前記有線方式と前記無線方式の両方で受信し、かつ、前記有線方式で受信した前記第1パケットの信号品質が予め設定された閾値以下である場合、前記有線方式で受信した前記第1パケットは中継せず、前記無線方式で受信した前記第1パケットを中継する、
通信システム。
A first communication device;
A plurality of second communication devices configured to be able to transmit and receive packets by a plurality of communication means including both a wired method and a wireless method, and having a function of relaying received packets;
Each of the plurality of second communication devices is
When relaying the first packet transmitted from the first communication device, information regarding the relaying by the second communication device and the type of communication means used for relaying among the plurality of communication means Information in the first packet as outbound route information,
When generating a second packet for responding to the first packet, copy the forward route information and record it in the second packet as return route information;
When relaying the second packet, the second packet is relayed so as to follow the route followed by the first packet based on the return route information in reverse order,
Each of the plurality of second communication devices is
When the first packet having the same identification information is received by both the wired method and the wireless method, and the signal quality of the first packet received by the wired method is below a preset threshold, Relaying the first packet received by the wireless method without relaying the first packet received by the wired method;
Communications system.
第1通信装置と、
有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成され、受信したパケットを中継する機能を有した複数の第2通信装置と
を備え、
前記複数の第2通信装置のそれぞれは、
前記第1通信装置から発信された第1パケットを中継する際には、当該第2通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、
前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、
前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、
前記複数の第2通信装置のそれぞれは、
同じ識別情報を有する複数の第1パケットを前記複数の通信手段でそれぞれ受信した場合、前記複数の第1パケットが辿った通信経路の通信品質を予め規定された評価手法に従って評価し、前記通信品質が最も高いと評価された前記通信経路を辿って到来した前記第1パケットを中継し、残余の前記通信経路を辿って到来した前記第1パケットは中継しない、
通信システム。
A first communication device;
A plurality of second communication devices configured to be able to transmit and receive packets by a plurality of communication means including both a wired method and a wireless method, and having a function of relaying received packets;
Each of the plurality of second communication devices is
When relaying the first packet transmitted from the first communication device, information regarding the relaying by the second communication device and the type of communication means used for relaying among the plurality of communication means Information in the first packet as outbound route information,
When generating a second packet for responding to the first packet, copy the forward route information and record it in the second packet as return route information;
When relaying the second packet, the second packet is relayed so as to follow the route followed by the first packet based on the return route information in reverse order,
Each of the plurality of second communication devices is
When a plurality of first packets having the same identification information are respectively received by the plurality of communication means, the communication quality of the communication path followed by the plurality of first packets is evaluated according to a predetermined evaluation method, and the communication quality Relaying the first packet arriving along the communication path evaluated to be the highest, and not relaying the first packet arriving along the remaining communication path,
Communications system.
請求項2に記載の通信システムであって、
前記通信品質に関する前記評価手法は、
前記第1パケットの受信品質が予め設定された閾値よりも高い場合には、当該第1パケットの通信経路は利用可能な通信品質を有していると判定する評価手法と、
前記第1パケットが経た中継段数が少ないほど、前記通信品質を高く評価するという評価手法と
を含む、通信システム。
A communication system according to claim 2,
The evaluation method for the communication quality is:
An evaluation method for determining that the communication path of the first packet has usable communication quality when the reception quality of the first packet is higher than a preset threshold;
And an evaluation method in which the communication quality is evaluated higher as the number of relay stages through which the first packet has passed is smaller.
請求項1ないし3のいずれか1項に記載の通信システムであって、
前記複数の通信手段は、電力線通信手段と、少なくとも1種類の無線通信手段とを含む、通信システム。
The communication system according to any one of claims 1 to 3,
The plurality of communication means includes a power line communication means and at least one type of wireless communication means.
親局とともに通信システムを構成する子局としての通信装置であって、
有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成されており、
前記親局から発信された第1パケットを中継する際には、当該通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、
前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、
前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、
同じ識別情報を有する前記第1パケットを前記有線方式と前記無線方式の両方で受信し、かつ、前記有線方式で受信した前記第1パケットの信号品質が予め設定された閾値以下である場合、前記有線方式で受信した前記第1パケットは中継せず、前記無線方式で受信した前記第1パケットを中継する、
通信装置。
A communication device as a slave station that constitutes a communication system with a master station,
It is configured to be able to send and receive packets by multiple communication means including both wired and wireless methods,
When relaying the first packet transmitted from the master station, information indicating that the packet is relayed by the communication device and information regarding the type of communication means used for relay among the plurality of communication means Record in the first packet as route information,
When generating a second packet for responding to the first packet, copy the forward route information and record it in the second packet as return route information;
When relaying the second packet, the second packet is relayed so as to follow the route followed by the first packet based on the return route information in reverse order,
When the first packet having the same identification information is received by both the wired method and the wireless method, and the signal quality of the first packet received by the wired method is below a preset threshold, Relaying the first packet received by the wireless method without relaying the first packet received by the wired method;
Communication device.
親局とともに通信システムを構成する子局としての通信装置であって、
有線方式と無線方式の両方を含む複数の通信手段によってパケットを送受信可能に構成されており、
前記親局から発信された第1パケットを中継する際には、当該通信装置によって中継された旨の情報と、前記複数の通信手段のうちで中継に用いた通信手段の種別に関する情報とを往路経路情報として前記第1パケットに記録し、
前記第1パケットに応答するための第2パケットを生成する際には、前記往路経路情報をコピーして復路経路情報として前記第2パケットに記録し、
前記第2パケットを中継する際には、前記復路経路情報に基づいて前記第1パケットが辿った経路を逆順に辿るように前記第2パケットを中継し、
同じ識別情報を有する複数の第1パケットを前記複数の通信手段でそれぞれ受信した場合、前記複数の第1パケットが辿った通信経路の通信品質を予め規定された評価手法に従って評価し、前記通信品質が最も高いと評価された前記通信経路を辿って到来した前記第1パケットを中継し、残余の前記通信経路を辿って到来した前記第1パケットは中継しない、
通信装置。
A communication device as a slave station that constitutes a communication system with a master station,
It is configured to be able to send and receive packets by multiple communication means including both wired and wireless methods,
When relaying the first packet transmitted from the master station, information indicating that the packet is relayed by the communication device and information regarding the type of communication means used for relay among the plurality of communication means Record in the first packet as route information,
When generating a second packet for responding to the first packet, copy the forward route information and record it in the second packet as return route information;
When relaying the second packet, the second packet is relayed so as to follow the route followed by the first packet based on the return route information in reverse order,
When a plurality of first packets having the same identification information are respectively received by the plurality of communication means, the communication quality of the communication path followed by the plurality of first packets is evaluated according to a predetermined evaluation method, and the communication quality Relaying the first packet arriving along the communication path evaluated to be the highest, and not relaying the first packet arriving along the remaining communication path,
Communication device.
JP2009266935A 2009-11-25 2009-11-25 Communication system and communication apparatus Active JP5514520B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009266935A JP5514520B2 (en) 2009-11-25 2009-11-25 Communication system and communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009266935A JP5514520B2 (en) 2009-11-25 2009-11-25 Communication system and communication apparatus

Publications (3)

Publication Number Publication Date
JP2011114424A true JP2011114424A (en) 2011-06-09
JP2011114424A5 JP2011114424A5 (en) 2013-04-25
JP5514520B2 JP5514520B2 (en) 2014-06-04

Family

ID=44236463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009266935A Active JP5514520B2 (en) 2009-11-25 2009-11-25 Communication system and communication apparatus

Country Status (1)

Country Link
JP (1) JP5514520B2 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0897821A (en) * 1994-09-21 1996-04-12 Hitachi Ltd Method and equipment for radio data communication and system therefor
JP2001237875A (en) * 2000-02-21 2001-08-31 Nippon Telegr & Teleph Corp <Ntt> Relay path built-up method for radio packet
JP2003249936A (en) * 2002-02-22 2003-09-05 Ntt Comware Corp Radio equipment, method for controlling channel thereof and computer program
JP2004282255A (en) * 2003-03-13 2004-10-07 Matsushita Electric Ind Co Ltd Communication system
JP2006311495A (en) * 2005-02-16 2006-11-09 Ntt Docomo Inc Radio communication device, communication route control device, communication route control method, and communication system
JP2007053671A (en) * 2005-08-19 2007-03-01 Matsushita Electric Ind Co Ltd Communication device
JP2007068043A (en) * 2005-09-01 2007-03-15 Oki Electric Ind Co Ltd Routing selection method in communication network, and communications network system
JP2007129542A (en) * 2005-11-04 2007-05-24 Sony Corp System, device and method for radio communication and computer/program
JP2008219599A (en) * 2007-03-06 2008-09-18 Mitsubishi Electric Corp Relay device and communication network system
WO2009131160A1 (en) * 2008-04-22 2009-10-29 富士通株式会社 Route information relay method and wireless terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0897821A (en) * 1994-09-21 1996-04-12 Hitachi Ltd Method and equipment for radio data communication and system therefor
JP2001237875A (en) * 2000-02-21 2001-08-31 Nippon Telegr & Teleph Corp <Ntt> Relay path built-up method for radio packet
JP2003249936A (en) * 2002-02-22 2003-09-05 Ntt Comware Corp Radio equipment, method for controlling channel thereof and computer program
JP2004282255A (en) * 2003-03-13 2004-10-07 Matsushita Electric Ind Co Ltd Communication system
JP2006311495A (en) * 2005-02-16 2006-11-09 Ntt Docomo Inc Radio communication device, communication route control device, communication route control method, and communication system
JP2007053671A (en) * 2005-08-19 2007-03-01 Matsushita Electric Ind Co Ltd Communication device
JP2007068043A (en) * 2005-09-01 2007-03-15 Oki Electric Ind Co Ltd Routing selection method in communication network, and communications network system
JP2007129542A (en) * 2005-11-04 2007-05-24 Sony Corp System, device and method for radio communication and computer/program
JP2008219599A (en) * 2007-03-06 2008-09-18 Mitsubishi Electric Corp Relay device and communication network system
WO2009131160A1 (en) * 2008-04-22 2009-10-29 富士通株式会社 Route information relay method and wireless terminal

Also Published As

Publication number Publication date
JP5514520B2 (en) 2014-06-04

Similar Documents

Publication Publication Date Title
EP1762062B1 (en) Latency controlled redundant routing
CA2881486C (en) Multi-media multi-modulation and multi-data rate mesh network
US9712433B2 (en) Maintaining and communicating nodal neighboring information
JP4992066B2 (en) Communication system and communication apparatus
KR20060123059A (en) Collision detection in a non-dominant bit radio network communication system
JP6036841B2 (en) COMMUNICATION CONTROL METHOD, NETWORK SYSTEM, AND COMMUNICATION DEVICE
JP2008301268A (en) Method of searching communication route and communication terminal using the same
US20220070093A1 (en) Dynamic medium switching for hybrid networks
JP4861293B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
EP3766276B1 (en) Methods and nodes for obtaining information regarding a bluetooth mesh network
JP5514521B2 (en) Communication system and communication apparatus
WO2011077415A2 (en) Routing and topology management
Dzung et al. To transmit now or not to transmit now
JP6098322B2 (en) Packet transfer method, node device, and program
JP5514520B2 (en) Communication system and communication apparatus
JP5193162B2 (en) Wireless communication state acquisition method and wireless station
US9210609B2 (en) Communication system
JP4835517B2 (en) Communication route construction method and communication terminal using the same
Raychoudhury et al. Top k-leader election in wireless ad hoc networks
JP5692404B2 (en) Transmission control method and transmission control apparatus
WO2012157060A1 (en) Communication system, and communication device
JP2006237840A (en) Radio communication terminal and radio communication system
JP2017050608A (en) Radio communication device, method, program and system
Macho Pisano Implementation of Network Coding in XDK Sensors
WO2017026003A1 (en) Wireless communication device, data collection device, and method for requesting installation of wireless communication device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121115

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121217

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130910

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140331

R150 Certificate of patent or registration of utility model

Ref document number: 5514520

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