JP2014165883A - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP2014165883A
JP2014165883A JP2013037892A JP2013037892A JP2014165883A JP 2014165883 A JP2014165883 A JP 2014165883A JP 2013037892 A JP2013037892 A JP 2013037892A JP 2013037892 A JP2013037892 A JP 2013037892A JP 2014165883 A JP2014165883 A JP 2014165883A
Authority
JP
Japan
Prior art keywords
unit
message
node
request message
instructions
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
JP2013037892A
Other languages
Japanese (ja)
Other versions
JP5974931B2 (en
Inventor
Nobuyuki Kadoma
信行 門間
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.)
Toshiba Lighting and Technology Corp
Original Assignee
Toshiba Lighting and Technology 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 Toshiba Lighting and Technology Corp filed Critical Toshiba Lighting and Technology Corp
Priority to JP2013037892A priority Critical patent/JP5974931B2/en
Publication of JP2014165883A publication Critical patent/JP2014165883A/en
Application granted granted Critical
Publication of JP5974931B2 publication Critical patent/JP5974931B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To distribute a telegraphic message capable of being processed by respective nodes.SOLUTION: A communication device comprises: a reception unit; a determination unit; a division unit; and a transmission unit. The reception unit receives a telegraphic message transmitted to a node by a predetermined device. The determination unit determines whether or not the number of instructions for the node included in the telegraphic message received by the reception unit is equal to or larger than a predetermined number. The division unit divides the telegraphic message received by the reception unit into a plurality of telegraphic messages including instructions whose number is equal to or smaller than the number of instructions the node can process, when the determination unit determines that the number of instructions for the node included in the telegraphic message is equal to or larger than the predetermined number. The transmission unit transmits the plurality of telegraphic messages obtained by the division by the division unit to the node.

Description

本発明の実施形態は、通信装置に関する。   Embodiments described herein relate generally to a communication device.

近年、電化製品等を制御するエネルギー管理システムが普及しつつある。このようなエネルギー管理システムの一種として、HEMS(Home Energy Management System)と呼ばれるシステムが知られている。かかるHEMSには、標準プロトコルとして、ECHONETやECHONET Liteが適用される。   In recent years, energy management systems for controlling electrical appliances and the like are becoming widespread. As a kind of such energy management system, a system called HEMS (Home Energy Management System) is known. ECHONET and ECHONET Lite are applied to such HEMS as standard protocols.

ECHONETやECHONET Liteでは、電文と呼ばれるフレームを電化製品等のノードに送信することで、かかるノードを遠隔制御することができる。このような電文には、プロパティと呼ばれる値を書き込むことでノードを制御する書込命令や、プロパティの値を読み出すことでノードの状態を取得する読出命令などが設定される。そして、ECHONETやECHONET Liteでは、1個の電文に複数の命令が設定される場合がある。例えば、1個の電文には、複数の書込命令が含まれる場合や、複数の読出命令が含まれる場合や、書込命令及び読出命令の双方が含まれる場合がある。   In ECHONET and ECHONET Lite, such a node can be remotely controlled by transmitting a frame called a message to a node such as an electric appliance. In such a message, a write command for controlling a node by writing a value called a property, a read command for acquiring a node state by reading a property value, and the like are set. In ECHONET and ECHONET Lite, a plurality of commands may be set for one message. For example, one message may include a plurality of write commands, a plurality of read commands, or both a write command and a read command.

しかし、ノードによっては、仕様や処理能力等の理由により、1個の電文で処理できる命令数が決められている場合がある。例えば、1個の電文で5個の命令を処理できるノードであっても、6個の命令が含まれる電文を処理できない場合がある。   However, depending on the node, there are cases where the number of instructions that can be processed by one electronic message is determined for reasons such as specifications and processing capability. For example, even a node that can process five instructions with a single message may not be able to process a message that includes six instructions.

“エコーネット規格(一般公開)”、[online]、[平成24年11月26日検索]、インターネット<http://www.echonet.gr.jp/spec/spec_v101_lite.htm>“Echonet standard (open to the public)”, [online], [searched on November 26, 2012], Internet <http://www.echonet.gr.jp/spec/spec_v101_lite.htm>

本発明が解決しようとする課題は、各ノードが処理可能な電文を流通させることができる通信装置を提供することである。   The problem to be solved by the present invention is to provide a communication device capable of distributing a message that can be processed by each node.

実施形態に係る通信装置は、受信部と、判定部と、分割部と、送信部とを具備する。受信部は、所定の装置によってノード宛に送信された電文を受信する。判定部は、前記受信部によって受信された電文に、前記ノードに対する命令が所定数以上含まれるか否かを判定する。分割部は、前記判定部によって前記電文に所定数以上の命令が含まれると判定された場合に、前記受信部によって受信された電文を前記ノードが処理可能な数以下の命令を含む電文に分割する。送信部は、前記分割部によって分割された複数の電文を前記ノードに送信する。   The communication apparatus according to the embodiment includes a reception unit, a determination unit, a division unit, and a transmission unit. The receiving unit receives a message transmitted to a node by a predetermined device. The determination unit determines whether or not a predetermined number or more of instructions for the node are included in the message received by the reception unit. The division unit divides a message received by the reception unit into a message including instructions less than the number that can be processed by the node when the determination unit determines that the message includes a predetermined number or more. To do. The transmitting unit transmits a plurality of messages divided by the dividing unit to the node.

図1は、第1の実施形態に係るエネルギー管理システムの構成例を示す図である。FIG. 1 is a diagram illustrating a configuration example of an energy management system according to the first embodiment. 図2は、第1の実施形態に係る通信装置の構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of the communication device according to the first embodiment. 図3は、第1の実施形態に係る相手先情報テーブルの一例を示す図である。FIG. 3 is a diagram illustrating an example of a partner information table according to the first embodiment. 図4は、第1の実施形態に係るTID対応テーブルの一例を示す図である。FIG. 4 is a diagram illustrating an example of a TID correspondence table according to the first embodiment. 図5は、第1の実施形態に係る通信装置による電文の送受信処理の一例を示す図である。FIG. 5 is a diagram illustrating an example of a message transmission / reception process performed by the communication apparatus according to the first embodiment. 図6は、第1の実施形態に係るエネルギー管理システムによる処理手順を示すシーケンス図である。FIG. 6 is a sequence diagram illustrating a processing procedure performed by the energy management system according to the first embodiment. 図7は、第1の実施形態に係る相手先情報テーブルの他の例を示す図である。FIG. 7 is a diagram illustrating another example of the partner information table according to the first embodiment. 図8は、第1の実施形態に係る通信装置によるSetGet電文の送受信処理の一例を示す図である。FIG. 8 is a diagram illustrating an example of a SetGet message transmission / reception process by the communication apparatus according to the first embodiment. 図9は、第1の実施形態に係る通信装置による処理手順の一例を示すフローチャートである。FIG. 9 is a flowchart illustrating an example of a processing procedure performed by the communication apparatus according to the first embodiment. 図10は、第2の実施形態に係る通信装置の構成例を示す図である。FIG. 10 is a diagram illustrating a configuration example of a communication device according to the second embodiment. 図11は、第2の実施形態に係る相手先情報テーブルの一例を示す図である。FIG. 11 is a diagram illustrating an example of a partner information table according to the second embodiment.

以下で説明する実施形態に係る通信装置100(又は、通信装置200)は、受信部131(又は、受信部231)と、判定部132(又は、判定部232)と、分割部133(又は、分割部233)と、送信部134(又は、送信部234)とを具備する。受信部131(又は、受信部231)は、管理装置40(所定の装置の一例に相当)によってノード10宛に送信された電文を受信する。判定部132(又は、判定部232)は、受信部131(又は、受信部231)によって受信された電文に、ノード10に対する命令が所定数以上含まれるか否かを判定する。分割部133(又は、分割部233)は、判定部132(又は、判定部232)によって電文に所定数以上の命令が含まれると判定された場合に、受信部131(又は、受信部231)によって受信された電文をノード10が処理可能な数以下の命令を含む電文に分割する。送信部134(又は、送信部234)は、分割部133(又は、分割部233)によって分割された複数の電文をノード10に送信する。   The communication device 100 (or communication device 200) according to the embodiment described below includes a reception unit 131 (or reception unit 231), a determination unit 132 (or determination unit 232), and a division unit 133 (or A dividing unit 233) and a transmitting unit 134 (or transmitting unit 234). The receiving unit 131 (or the receiving unit 231) receives a message transmitted to the node 10 by the management device 40 (corresponding to an example of a predetermined device). The determination unit 132 (or determination unit 232) determines whether or not a predetermined number or more of instructions for the node 10 are included in the message received by the reception unit 131 (or reception unit 231). The dividing unit 133 (or the dividing unit 233) receives the receiving unit 131 (or the receiving unit 231) when the determining unit 132 (or the determining unit 232) determines that a predetermined number or more instructions are included in the message. The message received by is divided into messages containing instructions less than the number that the node 10 can process. The transmission unit 134 (or the transmission unit 234) transmits the plurality of messages divided by the division unit 133 (or the division unit 233) to the node 10.

また、以下で説明する実施形態に係る通信装置200は、相手先情報テーブル221と、更新部236とを具備する。相手先情報テーブル221は、ノード10毎に、かかるノード10が処理可能である命令の数を記憶する。また、更新部236は、送信部234によってノード10に送信された電文に含まれる命令の数と、かかる電文に対する当該ノードからの応答に基づいて、相手先情報テーブル221に記憶されている命令の数を更新する。   In addition, the communication device 200 according to the embodiment described below includes a counterpart information table 221 and an update unit 236. The counterpart information table 221 stores, for each node 10, the number of instructions that can be processed by the node 10. In addition, the update unit 236 determines the number of commands stored in the partner information table 221 based on the number of commands included in the message transmitted to the node 10 by the transmission unit 234 and the response from the node to the message. Update the number.

また、以下で説明する実施形態において、受信部131(又は、受信部231)は、管理装置40によってノード10宛に送信された電文を受信する。また、判定部132(又は、判定部232)は、受信部131(又は、受信部231)によって受信された電文に、ノード10のプロパティ(属性情報の一例に相当)を書き込むための書込命令と、ノード10のプロパティを読み出すための読出命令とが含まれるか否かを判定する。また、分割部133(又は、分割部233)は、判定部132(又は、判定部232)によって電文に書込命令と読出命令との双方が含まれると判定された場合に、受信部131(又は、受信部231)によって受信された電文を、書込命令を含む電文と読出命令を含む電文とに分割する。また、送信部134(又は、送信部234)は、分割部133(又は、分割部233)によって分割された電文をノード10に送信する。   In the embodiment described below, the reception unit 131 (or the reception unit 231) receives a message transmitted to the node 10 by the management device 40. In addition, the determination unit 132 (or the determination unit 232) writes a property (corresponding to an example of attribute information) of the node 10 to a message received by the reception unit 131 (or the reception unit 231). And whether or not a read command for reading the property of the node 10 is included. Further, the dividing unit 133 (or the dividing unit 233), when the determining unit 132 (or the determining unit 232) determines that the message includes both the write command and the read command, the receiving unit 131 ( Alternatively, the message received by the receiving unit 231) is divided into a message including a write command and a message including a read command. In addition, the transmission unit 134 (or the transmission unit 234) transmits the message divided by the division unit 133 (or the division unit 233) to the node 10.

また、以下で説明する実施形態に係る通信装置100(又は、通信装置200)は、結合部135を具備する。結合部135は、送信部134(又は、送信部234)によって送信された電文の応答をノード10から受信した場合に、受信した応答を結合する。また、送信部134(又は、送信部234)は、結合部135によって結合された応答を管理装置40に送信する。   In addition, the communication device 100 (or the communication device 200) according to the embodiment described below includes a coupling unit 135. The combination unit 135 combines the received responses when receiving the response of the electronic message transmitted by the transmission unit 134 (or the transmission unit 234) from the node 10. In addition, the transmission unit 134 (or the transmission unit 234) transmits the response combined by the combining unit 135 to the management device 40.

以下、図面を参照して、実施形態に係る通信装置を説明する。実施形態において同一の部位には同一の符号を付し、重複する説明は省略される。   Hereinafter, a communication device according to an embodiment will be described with reference to the drawings. In the embodiment, the same parts are denoted by the same reference numerals, and redundant description is omitted.

(第1の実施形態)
[エネルギー管理システムの構成]
図1は、第1の実施形態に係るエネルギー管理システム1の構成例を示す図である。図1に示したエネルギー管理システム1は、例えば、宅内に設置されている家電等の制御や監視を実現するシステムであり、HEMSなどと呼ばれる。第1の実施形態に係るエネルギー管理システム1は、HEMS標準プロトコルのECHONET Liteが適用されているものとする。
(First embodiment)
[Configuration of energy management system]
FIG. 1 is a diagram illustrating a configuration example of an energy management system 1 according to the first embodiment. The energy management system 1 shown in FIG. 1 is a system that realizes control and monitoring of home appliances installed in a home, for example, and is called HEMS or the like. In the energy management system 1 according to the first embodiment, it is assumed that ECHONET Lite of the HEMS standard protocol is applied.

このエネルギー管理システム1には、図1に示すように、ホームネットワークシステム2と、ユーザ端末3と、管理サーバ4とが含まれる。ホームネットワークシステム2、ユーザ端末3及び管理サーバ4は、ネットワーク5を介して、有線又は無線により通信可能に接続される。かかるネットワーク5は、例えば、インターネットやイントラネットに該当する。なお、エネルギー管理システム1には、複数のホームネットワークシステム2や、複数台のユーザ端末3や、複数台の管理サーバ4が含まれてもよい。   As shown in FIG. 1, the energy management system 1 includes a home network system 2, a user terminal 3, and a management server 4. The home network system 2, the user terminal 3, and the management server 4 are connected to be communicable via wire or wireless via the network 5. Such a network 5 corresponds to, for example, the Internet or an intranet. The energy management system 1 may include a plurality of home network systems 2, a plurality of user terminals 3, and a plurality of management servers 4.

ホームネットワークシステム2は、例えばユーザ宅内や店舗内などに構築され、分電盤10、家電10、家電10、ゲートウェイ装置20、ユーザ端末30、管理装置40、通信装置100〜100などを有する。 The home network system 2 is constructed in, for example, a user's home or a store, and has a distribution board 10 1 , home appliance 10 2 , home appliance 10 3 , gateway device 20, user terminal 30, management device 40, and communication devices 100 1 to 100 3. Etc.

分電盤10は、例えばユーザ宅内の壁などに設けられ、各種ブレーカーを有し、家電10や家電10へ電力を供給する。家電10や家電10は、ユーザ宅内に設置されている電化製品である。例えば、家電10や家電10は、冷蔵庫、テレビ、エアコン、クッキングヒーター、暖房器具、給湯器、電気錠、インターホン(ドアホン)、照明器具、洗濯機などに該当する。 The distribution board 10 1 is provided, for example, such as user's home wall, it has various breaker supplying power to the home appliance 10 2 and home appliance 10 3. Home appliance 10 2 and home 103 is a appliances installed in the user premises. For example, consumer electronics 10 2 and consumer electronics 10 3, refrigerator, TV, air conditioning, cooking heater, heating equipment, water heaters, electric lock, intercom (intercom), lighting equipment, corresponding to such as washing machines.

ECHONET Liteにおいて、このような分電盤10、家電10及び10は、「ECHONETオブジェクト」などと呼ばれる。そして、各ECHONETオブジェクトには、設定値や状態といった属性が「ECHONETプロパティ」として定義される。このようなECHONETオブジェクトは、後述する管理装置40から、「ECHONET Lite電文(以下、単に「電文」と表記する場合がある)」を受信することにより、ECHONETプロパティを書き込む処理や読み出す処理を行う。 In the ECHONET Lite, such a distribution board 10 1 , home appliances 10 2 and 10 3 are called “ECHONET objects” or the like. In each ECHONET object, attributes such as setting values and states are defined as “ECHONET properties”. Such an ECHONET object performs a process of writing and reading an ECHONET property by receiving an “ECHONET Lite message (hereinafter sometimes simply referred to as“ message ”)” from the management apparatus 40 described later.

例えば、ECHONETオブジェクトは、ECHONETプロパティに所定のプロパティ値を書き込む旨の書込命令が設定されている電文を受信した場合に、ECHONETプロパティに所定のプロパティ値を書き込む。これにより、ECHONETオブジェクトは、管理装置40によって「電源のオン/オフ」や「動作モードの切り替え」などの各種制御が行われる。   For example, the ECHONET object writes a predetermined property value in the ECHONET property when it receives a message in which a writing command for writing the predetermined property value in the ECHONET property is set. As a result, the ECHONET object is subjected to various controls such as “power on / off” and “operation mode switching” by the management device 40.

また、例えば、ECHONETオブジェクトは、ECHONETプロパティに設定されているプロパティ値を読み出す旨の読出命令が設定されている電文を受信した場合に、ECHONETプロパティに設定されているプロパティ値を管理装置40に送信する。これにより、ECHONETオブジェクトは、管理装置40によって動作状況の監視などが行われる。   Further, for example, when the ECHONET object receives a message in which a read command for reading the property value set in the ECHONET property is received, the ECHONET object transmits the property value set in the ECHONET property to the management apparatus 40. To do. As a result, the operation status of the ECHONET object is monitored by the management device 40.

以下では、分電盤10、家電10及び10などのECHONETオブジェクトを区別する必要がない場合には、単に「ノード10」と表記し、ECHONETプロパティを単に「プロパティ」と表記する。また、ノード10に送信される電文を「要求電文」と表記し、ノード10から送信される要求電文に対する応答の電文を「応答電文」と表記する場合がある。 In the following, when it is not necessary to distinguish ECHONET objects such as the distribution board 10 1 and the home appliances 10 2 and 10 3 , they are simply expressed as “node 10” and the ECHONET property is simply expressed as “property”. In addition, a message transmitted to the node 10 may be referred to as a “request message”, and a response message to the request message transmitted from the node 10 may be referred to as a “response message”.

ゲートウェイ装置20は、管理装置40と接続され、ホームネットワークシステム2を外部のネットワーク5に接続する通信機器である。図1の例では、ゲートウェイ装置20は、ホームネットワークシステム2内の管理装置40と、ホームネットワークシステム2外のユーザ端末3や管理サーバ4とをネットワーク5を介して接続する。   The gateway device 20 is a communication device that is connected to the management device 40 and connects the home network system 2 to the external network 5. In the example of FIG. 1, the gateway device 20 connects the management device 40 in the home network system 2 to the user terminal 3 and the management server 4 outside the home network system 2 via the network 5.

ユーザ端末30は、例えば、タブレット端末、PC(Personal Computer)、携帯電話機、PDA(Personal Data Assistance)などであり、無線LAN(Local Area Network)や有線LANなどを介して管理装置40に接続される。かかるユーザ端末30は、ユーザ操作に従ってノード10に対する制御命令を管理装置40に送信したり、管理装置40から受信したノード10に関する各種情報を表示したりする。   The user terminal 30 is, for example, a tablet terminal, a PC (Personal Computer), a mobile phone, a PDA (Personal Data Assistance), and the like, and is connected to the management device 40 via a wireless LAN (Local Area Network), a wired LAN, or the like. . The user terminal 30 transmits a control command for the node 10 to the management device 40 according to a user operation, and displays various information regarding the node 10 received from the management device 40.

管理装置40は、アクセスポイントとしての役割を担い、Bluetooth(登録商標)などの近距離無線技術や宅内LANを用いて、ゲートウェイ装置20やユーザ端末30や通信装置100〜100と通信を行う。かかる管理装置40は、ユーザ端末30から入力された各種制御命令に基づいて、「プロパティ値の書き込み」や「プロパティ値の読み出し」といった命令が設定されている要求電文をノード10に送信したり、ノード10から受信した応答電文から得られる各種情報をユーザ端末30に送信したりする。なお、管理装置40は、ゲートウェイ装置20と一体となって形成されてもよい。 The management device 40 plays a role as an access point, and communicates with the gateway device 20, the user terminal 30, and the communication devices 100 1 to 100 3 using a short-range wireless technology such as Bluetooth (registered trademark) or a home LAN. . Based on various control commands input from the user terminal 30, the management device 40 transmits a request message in which commands such as “write property value” and “read property value” are set to the node 10, Various information obtained from the response message received from the node 10 is transmitted to the user terminal 30. The management device 40 may be formed integrally with the gateway device 20.

通信装置100〜100は、ノード10と管理装置40との間で送受信される電文を中継する。図1の例の場合、通信装置100は、分電盤10と管理装置40との間に設置され、通信装置100は、家電10と管理装置40との間に設置され、通信装置100は、家電10と管理装置40との間に設置される。詳細については後述するが、通信装置100〜100は、管理装置40から要求電文を受信した場合に、ノード10において処理可能な数の命令が含まれる要求電文に分割し、分割した複数の要求電文をノード10に送信する。そして、通信装置100〜100は、ノード10から受信した各応答電文を結合して管理装置40に送信する。なお、以下では、通信装置100〜100を区別する必要がない場合には、単に「通信装置100」と表記する場合がある。 The communication devices 100 1 to 100 3 relay messages transmitted and received between the node 10 and the management device 40. For example in FIG. 1, the communication device 100 1 is disposed between the distribution board 10 1 and the management apparatus 40, the communication device 100 2 is disposed between the home appliance 10 2 and the management apparatus 40, the communication The device 100 3 is installed between the home appliance 10 3 and the management device 40. Although details will be described later, when the communication devices 100 1 to 100 3 receive the request message from the management device 40, the communication devices 100 1 to 100 3 divide the request message including a number of instructions that can be processed in the node 10, and A request message is transmitted to the node 10. Then, the communication devices 100 1 to 100 3 combine the response messages received from the node 10 and transmit them to the management device 40. Hereinafter, when it is not necessary to distinguish the communication devices 100 1 to 100 3 , they may be simply referred to as “communication device 100”.

このように、ホームネットワークシステム2を利用するユーザは、ユーザ端末30を用いることで、管理装置40を介してノード10を制御することができる。例えば、ユーザ端末30が携帯電話機である場合、ユーザは、宅内で携帯電話機を操作するだけで、ノード10の動作を制御したり、ノード10の動作状況を監視したりすることができる。   As described above, a user who uses the home network system 2 can control the node 10 via the management device 40 by using the user terminal 30. For example, when the user terminal 30 is a mobile phone, the user can control the operation of the node 10 or monitor the operation status of the node 10 simply by operating the mobile phone at home.

また、図1において、ホームネットワークシステム2の外部に示したユーザ端末3は、例えば、携帯電話機、PDA、タブレット端末、PCなどであり、無線LANや有線LANなどを介してネットワーク5に接続される。かかるユーザ端末3は、ユーザ端末30と同様に、ユーザ操作に従ってノード10に対する制御命令を管理サーバ4に送信したり、管理サーバ4から受信したノード10に関する各種情報を表示したりする。   In FIG. 1, the user terminal 3 shown outside the home network system 2 is, for example, a mobile phone, a PDA, a tablet terminal, a PC, and the like, and is connected to the network 5 via a wireless LAN, a wired LAN, or the like. . Similar to the user terminal 30, the user terminal 3 transmits a control command for the node 10 to the management server 4 according to a user operation, and displays various information regarding the node 10 received from the management server 4.

管理サーバ4は、ネットワーク5を介してユーザ端末3から受信した各種制御命令を管理装置40に送信する。これにより、管理装置40は、ホームネットワークシステム2の外部に位置するユーザ端末3から送信された制御命令に基づいて、ノード10を制御する。また、管理サーバ4は、ネットワーク5を介して管理装置40から受信したノード10に関する各種情報をユーザ端末3に送信する。これにより、ユーザ端末3は、ホームネットワークシステム2内に設置されているノード10に関する各種情報を表示する。このように、ユーザ端末3のユーザは、ホームネットワークシステム2内に所在しない場合であっても、ノード10を制御することや、ノード10の動作状況を監視したりすることができる。   The management server 4 transmits various control commands received from the user terminal 3 via the network 5 to the management device 40. Thereby, the management apparatus 40 controls the node 10 based on the control command transmitted from the user terminal 3 located outside the home network system 2. In addition, the management server 4 transmits various information regarding the node 10 received from the management device 40 via the network 5 to the user terminal 3. Thereby, the user terminal 3 displays various information related to the node 10 installed in the home network system 2. As described above, even when the user of the user terminal 3 is not located in the home network system 2, the user 10 can control the node 10 and monitor the operation status of the node 10.

このようなエネルギー管理システム1では、通信装置100による処理によって、各ノード10が処理可能な電文を流通させることを可能にする。以下、通信装置100について詳細に説明する。   In such an energy management system 1, it is possible to distribute a message that can be processed by each node 10 through processing by the communication device 100. Hereinafter, the communication apparatus 100 will be described in detail.

[通信装置の構成]
図2は、第1の実施形態に係る通信装置100の構成例を示す図である。図2に示すように、第1の実施形態に係る通信装置100は、通信部110と、記憶部120と、制御部130とを有する。
[Configuration of communication device]
FIG. 2 is a diagram illustrating a configuration example of the communication device 100 according to the first embodiment. As illustrated in FIG. 2, the communication device 100 according to the first embodiment includes a communication unit 110, a storage unit 120, and a control unit 130.

通信部110は、無線通信処理や有線通信処理を行う。例えば、通信部110は、図1に示したノード10や管理装置40との間で、無線通信又は有線通信により電文等の各種情報を送受信する。   The communication unit 110 performs wireless communication processing and wired communication processing. For example, the communication unit 110 transmits and receives various types of information such as telegrams with the node 10 and the management device 40 illustrated in FIG. 1 by wireless communication or wired communication.

記憶部120は、例えば、RAM(Random Access Memory)、フラッシュメモリ(Flash Memory)等の半導体メモリ素子等の記憶装置によって実現される。かかる記憶部120は、図2に示すように、相手先情報テーブル121と、TID(Transaction ID)対応テーブル122とを有する。   The storage unit 120 is realized by a storage device such as a semiconductor memory element such as a RAM (Random Access Memory) and a flash memory (Flash Memory), for example. As shown in FIG. 2, the storage unit 120 includes a counterpart information table 121 and a TID (Transaction ID) correspondence table 122.

図3に、第1の実施形態に係る相手先情報テーブル121の一例を示す。図3に示した例では、相手先情報テーブル121は、「送信先アドレス」と、「処理可能プロパティ数」とを対応付けて記憶する。   FIG. 3 shows an example of the counterpart information table 121 according to the first embodiment. In the example illustrated in FIG. 3, the destination information table 121 stores “transmission destination address” and “number of processable properties” in association with each other.

「送信先アドレス」は、ノード10の宛先情報を示し、図3の例ではIPアドレスに該当する。なお、「送信先アドレス」は、IPアドレスに限られず、ノード10を識別可能な情報であればよく、例えば、Ethernet(登録商標)アドレス等のMAC(Media Access Control)アドレスであってもよい。「処理可能プロパティ数」は、ノード10が1個の要求電文において処理できるプロパティへの命令の数を示す。ここでいう「プロパティへの命令」とは、「プロパティ値の書き込み命令」や「プロパティ値の読み出し命令」などに該当する。また、要求電文には、同一のプロパティに対する書き込み命令及び読み出し命令が含まれる場合もあるが、ここでは、処理対象のプロパティが同一であっても、「プロパティ値の書き込み命令」が1個の命令に該当し、「プロパティ値の読み出し命令」が1個の命令に該当するものとする。   “Destination address” indicates destination information of the node 10, and corresponds to an IP address in the example of FIG. Note that the “destination address” is not limited to an IP address, and may be any information that can identify the node 10, and may be a MAC (Media Access Control) address such as an Ethernet (registered trademark) address, for example. The “number of processable properties” indicates the number of instructions to the property that the node 10 can process in one request message. The “command to the property” here corresponds to “property value write command”, “property value read command”, and the like. In addition, the request message may include a write command and a read command for the same property, but here, even if the properties to be processed are the same, a “property value write command” is one command. It is assumed that “property value read command” corresponds to one command.

すなわち、図3では、送信先アドレスが「192.168.0.100」であるノード10は、1個の命令が含まれている要求電文を処理することができるものの、2個以上の命令が含まれている要求電文を処理することができない例を示している。   That is, in FIG. 3, the node 10 whose destination address is “192.168.0.100” can process a request message including one command, but two or more commands are received. An example in which the included request message cannot be processed is shown.

なお、図1に示した例のように、1台のノード10に1台の通信装置100が設置される場合には、相手先情報テーブル121には、1レコードのみ格納されることとなる。また、第1の実施形態では、管理者等によって、相手先情報テーブル121に処理可能プロパティ数を予め格納されるものとする。   When one communication device 100 is installed in one node 10 as in the example illustrated in FIG. 1, only one record is stored in the counterpart information table 121. In the first embodiment, it is assumed that the number of properties that can be processed is stored in advance in the counterpart information table 121 by an administrator or the like.

TID対応テーブル122は、管理装置40から受信した要求電文と、かかる要求電文が分割された後の要求電文(以下、分割された要求電文を「分割電文」と表記する場合がある)との対応関係を記憶する。ここで、図4に、第1の実施形態に係るTID対応テーブル122の一例を示す。図4に示した例では、TID対応テーブル122は、「送信元アドレス」と、「元電文TID」と、「分割数」と、「分割電文TID」と、「応答受信有無」とを対応付けて記憶する。   The TID correspondence table 122 corresponds to the request message received from the management device 40 and the request message after the request message is divided (hereinafter, the divided request message may be referred to as “divided message”). Remember the relationship. Here, FIG. 4 shows an example of the TID correspondence table 122 according to the first embodiment. In the example illustrated in FIG. 4, the TID correspondence table 122 associates “source address”, “original message TID”, “number of divisions”, “division message TID”, and “response received / not received”. And remember.

「送信元アドレス」は、要求電文の送信元(管理装置40など)の宛先情報を示し、図3の例ではIPアドレスに該当する。なお、「送信元アドレス」は、Ethernet(登録商標)アドレス等のMACアドレスであってもよい。「元電文TID」は、管理装置40から受信した要求電文に設定されているTIDを示す。「分割数」は、元電文TIDによって識別される要求電文の分割数を示す。「分割電文TID」は、分割電文に設定されるTIDを示す。「応答受信有無」は、分割電文に対する応答電文をノード10から受信したか否かを示す。図4の例では、「応答受信有無」に「yes」が記憶されている場合には、ノード10から応答電文を受信したことを示し、「応答受信有無」に「no」が記憶されている場合には、ノード10から応答電文を受信していないことを示す。   The “transmission source address” indicates destination information of a transmission source (such as the management device 40) of the request message, and corresponds to an IP address in the example of FIG. The “source address” may be a MAC address such as an Ethernet (registered trademark) address. “Original message TID” indicates the TID set in the request message received from the management apparatus 40. “Number of divisions” indicates the number of divisions of the request message identified by the original message TID. “Divided message TID” indicates a TID set in the divided message. “Respondence received / not received” indicates whether a response message for the divided message has been received from the node 10 or not. In the example of FIG. 4, when “yes” is stored in “response received / not received”, it indicates that a response message has been received from the node 10, and “no” is stored in “response received / not received”. In this case, the response message is not received from the node 10.

すなわち、図4では、送信元アドレスが「192.168.1.1」である装置(管理装置40など)から、TID「1」が設定されている要求電文を受信し、かかる要求電文が3個の分割電文に分割されている例を示している。また、図4では、これらの3個の分割電文には、それぞれTID「100」、「101」、「102」が設定され、TIDが「100」である分割電文、及び、TIDが「101」である分割電文に対応する応答電文をノード10から受信しており、TIDが「102」である分割電文に対応する応答電文をノード10から受信していない例を示している。   That is, in FIG. 4, a request message in which TID “1” is set is received from a device (such as the management device 40) whose transmission source address is “192.168.1.1”. An example in which the message is divided into a number of divided messages is shown. In FIG. 4, TIDs “100”, “101”, and “102” are set for these three divided messages, respectively, and a divided message whose TID is “100” and the TID is “101”. In this example, the response message corresponding to the divided message is received from the node 10 and the response message corresponding to the divided message whose TID is “102” is not received from the node 10.

なお、図1に示した例のように、通信装置100が管理装置40のみから要求電文を受信する場合には、TID対応テーブル122には、管理装置40の送信元アドレスのみが格納されることとなる。   1, when the communication device 100 receives a request message from only the management device 40, only the transmission source address of the management device 40 is stored in the TID correspondence table 122. It becomes.

図2の説明に戻って、制御部130は、例えば、ASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)等の集積回路により実現される。また、制御部130は、例えば、CPU(Central Processing Unit)やMPU(Micro Processing Unit)等によって、内部の記憶装置(例えば、記憶部120)に記憶されているプログラムがRAMを作業領域として実行されることにより実現される。かかる制御部130は、受信部131と、判定部132と、分割部133と、送信部134と、結合部135とを有する。   Returning to the description of FIG. 2, the control unit 130 is realized by an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). In addition, the control unit 130 executes a program stored in an internal storage device (for example, the storage unit 120) by using a RAM as a work area, for example, by a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or the like. It is realized by doing. The control unit 130 includes a reception unit 131, a determination unit 132, a division unit 133, a transmission unit 134, and a combination unit 135.

受信部131は、ノード10宛の要求電文を管理装置40から受信する。すなわち、第1の実施形態では、管理装置40からノード10に要求電文が直接送信されるのではなく、管理装置40から送信された要求電文は通信装置100によってインターセプトされる。   The receiving unit 131 receives a request message addressed to the node 10 from the management device 40. That is, in the first embodiment, a request message is not directly transmitted from the management device 40 to the node 10, but the request message transmitted from the management device 40 is intercepted by the communication device 100.

また、受信部131は、後述する送信部134によって送信された要求電文を受信したノード10から、かかる要求電文に対する応答電文を受信する。この場合、受信部131は、ノード10から受信した応答電文を結合部135に出力する。   In addition, the reception unit 131 receives a response message for the request message from the node 10 that has received the request message transmitted by the transmission unit 134 described later. In this case, the receiving unit 131 outputs the response message received from the node 10 to the combining unit 135.

判定部132は、受信部131によって受信された要求電文に所定の閾値以上の命令が含まれるか否かを判定する。具体的には、判定部132は、要求電文の送信先アドレスに対応する処理可能プロパティ数を相手先情報テーブル121から取得する。そして、判定部132は、要求電文に含まれる命令の数(処理対象プロパティの数)と、相手先情報テーブル121から取得した処理可能プロパティ数とを比較する。   The determination unit 132 determines whether or not the request message received by the reception unit 131 includes an instruction equal to or greater than a predetermined threshold. Specifically, the determination unit 132 acquires the number of processable properties corresponding to the transmission destination address of the request message from the counterpart information table 121. Then, the determination unit 132 compares the number of instructions included in the request message (the number of processing target properties) with the number of processable properties acquired from the counterpart information table 121.

例えば、相手先情報テーブル121が図3に示した各種情報を記憶しているものとする。そして、受信部131が、送信先アドレスが「192.168.0.101」である要求電文を受信したものとする。この場合、判定部132は、かかる要求電文に含まれる命令数と、相手先情報テーブル121に記憶されている処理可能プロパティ数「3」とを比較する。   For example, it is assumed that the counterpart information table 121 stores various types of information shown in FIG. Then, it is assumed that the reception unit 131 has received a request message whose transmission destination address is “192.168.0.101”. In this case, the determination unit 132 compares the number of instructions included in the request message with the number of processable properties “3” stored in the counterpart information table 121.

分割部133は、判定部132によって要求電文に命令が含まれる命令数が所定の閾値(すなわち、処理可能プロパティ数)よりも大きいと判定された場合に、かかる要求電文を処理可能プロパティ数以下の命令を含む複数の分割電文に分割する。   When the determination unit 132 determines that the number of instructions included in the request message is larger than a predetermined threshold (that is, the number of processable properties), the dividing unit 133 determines that the request message is equal to or less than the number of processable properties. Divide into multiple split messages including instructions.

例えば、上記例のように、相手先情報テーブル121が図3に示した各種情報を記憶しているものとする。また、受信部131が、送信先アドレスが「192.168.0.101」であり、かつ、6個の命令が含まれている要求電文を受信したものとする。この場合、分割部133は、例えば、処理可能プロパティ数と同一の3個の命令が含まれる分割電文を2個生成する。また、この例に限られず、分割部133は、2個の命令が含まれる3個の分割電文を生成したり、1個の命令が含まれる6個の分割電文を生成したりしてもよい。   For example, as in the above example, it is assumed that the partner information table 121 stores various types of information shown in FIG. Further, it is assumed that the receiving unit 131 has received a request message having a transmission destination address “192.168.0.101” and including six commands. In this case, the dividing unit 133 generates, for example, two divided telegrams including the same three instructions as the number of processable properties. Further, the present invention is not limited to this example, and the dividing unit 133 may generate three divided messages including two instructions or six divided messages including one instruction. .

送信部134は、受信部131によって受信された要求電文をノード10に送信する。具体的には、送信部134は、分割部133によって分割処理が行われた場合には、分割電文のそれぞれをノード10に送信する。また、送信部134は、分割部133によって分割処理が行われていない場合には、受信部131によって受信された要求電文をノード10に送信する。   The transmission unit 134 transmits the request message received by the reception unit 131 to the node 10. Specifically, the transmission unit 134 transmits each of the divided telegrams to the node 10 when the dividing process is performed by the dividing unit 133. The transmission unit 134 transmits the request message received by the reception unit 131 to the node 10 when the division processing is not performed by the division unit 133.

結合部135は、受信部131によって応答電文が受信された場合に、かかる応答電文を結合することで、1個の応答電文を生成する。そして、結合部135は、生成した応答電文を送信部134に出力することで、管理装置40への応答電文を送信させる。   When the response message is received by the receiving unit 131, the combining unit 135 generates a single response message by combining the response messages. Then, the combining unit 135 outputs the generated response message to the transmission unit 134, thereby transmitting the response message to the management device 40.

[通信装置の処理例]
次に、図5を用いて、通信装置100による電文の送受信処理について説明する。図5は、第1の実施形態に係る通信装置100による電文の送受信処理の一例を示す図である。図5の上段には、管理装置40から受信した要求電文D10を示し、図5の下段には、要求電文D10が分割された後の分割電文D10〜D10を示す。
[Processing example of communication device]
Next, a message transmission / reception process performed by the communication apparatus 100 will be described with reference to FIG. FIG. 5 is a diagram illustrating an example of a message transmission / reception process performed by the communication device 100 according to the first embodiment. The upper part of FIG. 5 shows the request message D10 received from the management device 40, and the lower part of FIG. 5 shows the divided messages D10 1 to D10 k after the request message D10 is divided.

図5の上段に示すように、要求電文D10には、「EHD1」、「EHD2」、「TID」、「SEOJ」、「DEOJ」、「ESV」、「OPC」、「EPC1」、「PDC1」、「EDT1」、・・・、「EPCm」、「PDCm」、「EDTm」といった項目が含まれる。   As shown in the upper part of FIG. 5, the request message D10 includes “EHD1”, “EHD2”, “TID”, “SEOJ”, “DEOJ”, “ESV”, “OPC”, “EPC1”, “PDC1”. , “EDT1”,..., “EPCm”, “PDCm”, “EDTm”.

「EHD1」及び「EHD2」は、ECHONET Lite電文のヘッダを示し、プロトコル種別等が設定される。「TID」は、電文を識別するための識別子を示す。かかる「TID」は、ECHONET Lite通信において、送信側(例えば、管理装置40)が、要求電文と応答電文とを紐付ける際に用いる。「SEOJ」は、送信元ECHONETオブジェクトを識別するための識別子を示す。「DEOJ」は、送信先ECHONETオブジェクトを識別するための識別子を示す。   “EHD1” and “EHD2” indicate the header of the ECHONET Lite message, and the protocol type and the like are set. “TID” indicates an identifier for identifying a message. The “TID” is used when the transmission side (for example, the management device 40) links the request message and the response message in ECHONET Lite communication. “SEOJ” indicates an identifier for identifying the transmission source ECHONET object. “DEOJ” indicates an identifier for identifying the destination ECHONET object.

「ESV」は、ECHONET Liteサービスを示す。例えば、要求電文D10に含まれる命令が「プロパティ値の書き込み」である場合、「ESV」には「0x61」が設定され、要求電文D10に含まれる命令が「プロパティ値の読み出し」である場合、「ESV」には「0x62」が設定される。   “ESV” indicates an ECHONET Lite service. For example, when the instruction included in the request message D10 is “write property value”, “0x61” is set in “ESV”, and when the instruction included in the request message D10 is “read property value”, “0x62” is set in “ESV”.

「OPC」は、処理対象プロパティカウンタを示し、要求電文D10に含まれる命令数に該当する。具体的には、「OPC」には、「プロパティ値の書き込み対象となるプロパティの数」や「プロパティ値の読み出し対象となるプロパティの数」として、後段の「EPC」、「PDC」及び「EDT」の組合せの数が設定される。なお、要求電文D10に「プロパティ値の書き込み命令」及び「プロパティ値の読み出し命令」の双方が含まれる場合には、「プロパティ値の書き込み対象となるプロパティの数」が「OPCSet」に設定され、「プロパティ値の読み出し対象となるプロパティの数」が「OPCGet」に設定されるが、図5の例では、要求電文D10に「プロパティ値の書き込み命令」又は「プロパティ値の読み出し命令」のいずれか一方のみが含まれているものとする。   “OPC” indicates a processing target property counter and corresponds to the number of instructions included in the request message D10. Specifically, “OPC” includes “EPC”, “PDC”, and “EDT” in the subsequent stages as “number of properties to be written with property values” and “number of properties to be read with property values”. The number of combinations is set. If the request message D10 includes both a “property value write command” and a “property value read command”, the “number of properties to which the property value is to be written” is set to “OPCSet”. “The number of properties from which property values are to be read” is set to “OPCGet”. In the example of FIG. 5, either “property value write command” or “property value read command” is displayed in the request message D10. Only one is assumed to be included.

「EPC」、「PDC」及び「EDT」は、1個の命令に該当する。このうち、「EPC」は、ECHONET Liteプロパティを示す。「PDC」は、後段の「EDT」のバイト数を示す。「EDT」は、ECHONET Liteプロパティの値を示す。   “EPC”, “PDC”, and “EDT” correspond to one instruction. Among these, “EPC” indicates an ECHONET Lite property. “PDC” indicates the number of bytes of “EDT” in the subsequent stage. “EDT” indicates the value of the ECHONET Lite property.

すなわち、図5に示した要求電文D10には、「EPC」、「PDC」及び「EDT」の組合せがm個存在するので、プロパティへの命令がm個含まれていることとなる。判定部132は、このような要求電文D10が受信部131によって受信された場合に、要求電文D10に設定されているOPC「m」と、相手先情報テーブル121に記憶されている処理可能プロパティ数とを比較する。ここの例では、OPC「m」が処理可能プロパティ数よりも大きいものとする。そして、通信装置100の分割部133は、図5の下段に示すように、要求電文D10をn(<m)個の命令を含む分割電文D10〜D10に分割するものとする。 That is, since there are m combinations of “EPC”, “PDC”, and “EDT” in the request message D10 shown in FIG. 5, m instructions to the property are included. When such a request message D10 is received by the reception unit 131, the determination unit 132 receives the OPC “m” set in the request message D10 and the number of processable properties stored in the counterpart information table 121. And compare. In this example, it is assumed that OPC “m” is larger than the number of processable properties. Then, the dividing unit 133 of the communication device 100 divides the request message D10 into divided messages D10 1 to D10 k including n (<m) instructions as illustrated in the lower part of FIG.

分割処理について一例を挙げて説明すると、分割部133は、所定のカウンタ「k」、及び、通信装置100において管理されるTIDであるTIDカウンタ値を用いて、カウンタ「k」をインクリメントしながら分割電文D10を順次生成する。具体的には、分割部133は、要求電文D10の送信元のIPアドレスと、要求電文D10の「TID」とをTID対応テーブル122の「送信元アドレス」及び「元電文TID」に格納する。このとき、分割部133は、TID対応テーブル122の「分割数」に「0」を格納する。 An example of the dividing process will be described. The dividing unit 133 uses the predetermined counter “k” and a TID counter value that is a TID managed in the communication apparatus 100 to increment the counter “k”. sequentially generates a telegram D10 k. Specifically, the dividing unit 133 stores the IP address of the transmission source of the request message D10 and the “TID” of the request message D10 in the “transmission source address” and “original message TID” of the TID correspondence table 122. At this time, the dividing unit 133 stores “0” in the “number of divisions” of the TID correspondence table 122.

続いて、分割部133は、カウンタ「k」を「1」とし、分割電文D10(すなわち、分割電文D10)の「EHD1」、「EHD2」、「SEOJ」、「DEOJ」及び「ESV」に、要求電文D10の「EHD1」、「EHD2」、「SEOJ」、「DEOJ」及び「ESV」をコピーする。また、分割部133は、要求電文D10に含まれる「EPC1」、「PDC1」及び「EDT1」〜「EPCn」、「PDCn」及び「EDTn」を分割電文D10にコピーする。さらに、分割部133は、分割電文D10の「OPC」に「n」を設定する。 Subsequently, the dividing unit 133 sets the counter “k” to “1”, and “EHD1”, “EHD2”, “SEOJ”, “DEOJ”, and “ESV” of the divided message D10 k (that is, the divided message D10 1 ). Then, “EHD1”, “EHD2”, “SEOJ”, “DEOJ”, and “ESV” of the request message D10 are copied. Further, dividing unit 133, it included in the request message D10 "EPC1", "PDC1" and "EDT1" - "EPCn" copies "PDCn" and "EDTn" split telegram D10 1. Further, dividing unit 133 sets "n" to "OPC" divided telegram D10 1.

続いて、分割部133は、TIDカウンタ値を読み出して、読み出したTIDカウンタ値を分割電文D10の「TID」に設定する。ここでは、TIDカウンタ値が「s」であるものとし、分割部133は、分割電文D10の「TID」に「s」を設定する。さらに、分割部133は、TIDカウンタ値「s」をTID対応テーブル122の「分割電文TID」に格納するとともに、TID対応テーブル122の「応答受信有無」に未受信を示す情報(図4の例では「no」)を格納する。このとき、分割部133は、上記において要求電文D10の「TID」を格納したTID対応テーブル122のレコードに、TIDカウンタ値「s」、及び、未受信を示す情報を格納する。そして、分割部133は、TID対応テーブル122の「分割数」に「1」を加算する。分割部133は、カウンタ「k」が「1」の場合には、「分割数」に「1」を格納することとなる。また、分割部133は、TIDカウンタ値「s」に「1」を加算して、新たなTIDカウンタ値「s+1」として記録しておく。 Subsequently, the dividing unit 133 reads the TID counter value, sets the read TID counter value to "TID" divided telegram D10 1. Here, it is assumed TID counter value is "s", the division unit 133 sets "s" to "TID" divided telegram D10 1. Further, the division unit 133 stores the TID counter value “s” in “division message TID” of the TID correspondence table 122 and information indicating “not received” in the TID correspondence table 122 (example in FIG. 4). Stores “no”). At this time, the dividing unit 133 stores the TID counter value “s” and the information indicating that it has not been received in the record of the TID correspondence table 122 in which “TID” of the request message D10 is stored. Then, the dividing unit 133 adds “1” to “number of divisions” in the TID correspondence table 122. When the counter “k” is “1”, the dividing unit 133 stores “1” in the “number of divisions”. Further, the dividing unit 133 adds “1” to the TID counter value “s” and records it as a new TID counter value “s + 1”.

このようにして、分割部133は、カウンタ「k」に「1」を加算しながら「k×n≧m」となるまで上記処理を行うことにより、分割電文D10〜D10を生成する。このとき、分割部133は、分割電文D10を生成する場合には、要求電文D10に含まれる「EPC((k−1)n+1)」、「PDC((k−1)n+1)」及び「EDT((k−1)n+1)」〜「EPC(k×n)」、「PDC(k×n)」及び「EDT(k×n)」をコピーする。また、「k×n>m」である場合(すなわち、「m」が「k」で割り切れない場合)、分割部133は、最後の分割電文D10については、要求電文D10に含まれる「EPC((k−1)n+1)」、「PDC((k−1)n+1)」及び「EDT((k−1)n+1)」〜「EPCm」、「PDCm」及び「EDTm」をコピーする。 In this way, the dividing unit 133 generates the divided telegrams D10 1 to D10 k by performing the above processing until “k × n ≧ m” while adding “1” to the counter “k”. At this time, when generating the divided message D10 k , the dividing unit 133 generates “EPC ((k−1) n + 1)”, “PDC ((k−1) n + 1)”, and “ EDT ((k−1) n + 1) ”to“ EPC (k × n) ”,“ PDC (k × n) ”, and“ EDT (k × n) ”are copied. When “k × n> m” (that is, when “m” is not divisible by “k”), the dividing unit 133 sets “EPC” included in the request message D10 for the last divided message D10 k. ((K-1) n + 1) "," PDC ((k-1) n + 1) "and" EDT ((k-1) n + 1) "to" EPCm "," PDCm "and" EDTm "are copied.

そして、送信部134は、分割部133によって分割された分割電文D10〜D10をノード10に送信する。これにより、受信部131は、分割電文D10〜D10のそれぞれに対応する応答電文をノード10から受信し、受信した各応答電文を結合部135に出力する。ノード10から送信される応答電文には、分割電文D10〜D10に設定されていたTIDと同一のTIDが設定される。これにより、結合部135は、応答電文に設定されているTIDに基づいて、どの分割電文に対応する応答電文であるかを判定する。そして、結合部135は、応答電文に設定されている「TID」に対応するTID対応テーブル122の「応答受信有無」に受信済みを示す情報(図4の例では「yes」)を格納する。 Then, the transmitting unit 134 transmits the divided messages D10 1 to D10 k divided by the dividing unit 133 to the node 10. As a result, the receiving unit 131 receives response messages corresponding to the divided messages D10 1 to D10 k from the node 10 and outputs the received response messages to the combining unit 135. In the response message transmitted from the node 10, the same TID as the TID set in the divided messages D10 1 to D10 k is set. Thereby, the combination unit 135 determines which divided message corresponds to the response message based on the TID set in the response message. Then, the combining unit 135 stores information (“yes” in the example of FIG. 4) indicating reception in the “response reception presence / absence” of the TID correspondence table 122 corresponding to “TID” set in the response message.

また、結合部135は、分割電文D10〜D10に対応する全ての応答電文が受信済みとなった場合に、各応答電文を結合することで、要求電文D10に対する応答電文を生成する。具体的には、ECHONET Liteの応答電文には、要求電文に設定されていた命令(「EPC」、「PDC」及び「EDT」の組合せ)の順に、かかる命令に対応する応答内容(「EPC」、「PDC」及び「EDT」の組合せ)が設定される。したがって、結合部135は、ノード10から受信した各応答電文から応答内容を抽出し、抽出した応答内容を要求電文D10に設定されていた命令の順に配置することで、要求電文D10に対する応答電文を生成する。 The coupling unit 135, if all the response message corresponding to the divided message D10 1 to D10 k becomes received, by combining the respective response message, generates a response message to the request message D10. Specifically, in the response message of ECHONET Lite, the response contents (“EPC”) corresponding to the command (combination of “EPC”, “PDC”, and “EDT”) in the order set in the request message. , A combination of “PDC” and “EDT”). Therefore, the combining unit 135 extracts response contents from each response message received from the node 10, and arranges the extracted response contents in the order of the instructions set in the request message D10, so that a response message for the request message D10 is obtained. Generate.

また、結合部135は、ノード10から受信した全応答電文の「ESV」に正常応答である情報(例えば、「0x71」や「0x72」)が設定されている場合には、要求電文D10に対する応答電文の「ESV」には正常応答である情報(例えば、「0x71」や「0x72」)を設定する。一方、結合部135は、「ESV」に不可応答である情報(例えば、「0x51」や「0x52」)が設定されている応答電文が存在する場合には、要求電文D10に対する応答電文の「ESV」には不可応答である情報(例えば、「0x51」や「0x52」)を設定する。そして、送信部134は、結合部135によって生成された応答電文を管理装置40に送信する。   In addition, when information that is a normal response (for example, “0x71” or “0x72”) is set in “ESV” of all response messages received from the node 10, the combining unit 135 responds to the request message D10. Information that is a normal response (for example, “0x71” or “0x72”) is set in the “ESV” of the message. On the other hand, when there is a response message in which information that is a non-response (for example, “0x51” or “0x52”) is set in “ESV”, the combining unit 135 indicates “ESV” of the response message for the request message D10. "Is set to information that is an unacceptable response (for example," 0x51 "or" 0x52 "). Then, the transmitting unit 134 transmits the response message generated by the combining unit 135 to the management device 40.

なお、結合部135は、分割電文を送出した後に所定の時間が経過しても分割電文に対する応答電文の一部が受信できなかった場合は、受信済みの応答電文のみから要求電文D10に対する応答電文を生成することもできる。この場合、結合部135は、応答のなかった命令に対応する応答内容を飛ばし、後に続く命令に対応する応答内容を前に詰めることで、要求電文D10に対する応答電文を生成する。また、この場合、結合部135は、応答電文の「ESV」には不可応答である情報(例えば、「0x51」や「0x52」)を設定する。   If a part of the response message for the split message is not received even after a predetermined time has elapsed after the split message is sent, the combining unit 135 responds to the request message D10 only from the received response message. Can also be generated. In this case, the combining unit 135 generates a response message for the request message D10 by skipping the response content corresponding to the command that has not been responded and by prepending the response content corresponding to the subsequent command. Further, in this case, the combining unit 135 sets information (for example, “0x51” or “0x52”) that is an unacceptable response to “ESV” of the response message.

[エネルギー管理システムの処理手順]
次に、図6を用いて、エネルギー管理システム1による処理の手順について説明する。図6は、第1の実施形態に係るエネルギー管理システム1による処理手順を示すシーケンス図である。
[Energy management system processing procedures]
Next, a processing procedure by the energy management system 1 will be described with reference to FIG. FIG. 6 is a sequence diagram illustrating a processing procedure performed by the energy management system 1 according to the first embodiment.

図6に示した例において、管理装置40は、要求電文を通信装置100に送信する(ステップS101)。通信装置100の判定部132は、管理装置40から受信した要求電文に含まれる命令数(すなわち、OPCの値)に基づいて、ノード10が要求電文を処理できるか否かを判定する(ステップS102)。ここでは、判定部132が、ノード10が要求電文を処理できないと判定したものとする。この場合に、分割部133は、図5に示した例のように、管理装置40から受信した要求電文を分割することで分割電文を生成する(ステップS103)。   In the example shown in FIG. 6, the management device 40 transmits a request message to the communication device 100 (step S101). The determination unit 132 of the communication device 100 determines whether or not the node 10 can process the request message based on the number of instructions included in the request message received from the management device 40 (that is, the OPC value) (step S102). ). Here, it is assumed that the determination unit 132 determines that the node 10 cannot process the request message. In this case, the dividing unit 133 generates a divided message by dividing the request message received from the management device 40 as in the example illustrated in FIG. 5 (step S103).

そして、送信部134は、分割部133によって生成された分割電文を個別にノード10へ送信する(ステップS104)。これにより、ノード10は、通信装置100から受信した分割電文に対する応答電文を通信装置100に送信する(ステップS105)。   Then, the transmission unit 134 individually transmits the divided telegrams generated by the division unit 133 to the node 10 (Step S104). Thereby, the node 10 transmits a response message for the divided message received from the communication device 100 to the communication device 100 (step S105).

また、結合部135は、ステップS104及びS105の間に、送信部134によって送信された各分割電文に対する応答電文を全て受信したか否かを判定する(ステップS106)。そして、結合部135は、全ての応答電文を受信した場合には、受信した応答電文を結合する(ステップS107)。そして、送信部134は、ステップS101において受信した要求電文に対する応答電文として、結合部135によって結合された後の応答電文を管理装置40に送信する(ステップS108)。   Further, the combining unit 135 determines whether or not all response messages for each divided message transmitted by the transmission unit 134 have been received between steps S104 and S105 (step S106). When all the response messages have been received, the combining unit 135 combines the received response messages (step S107). Then, the transmission unit 134 transmits the response message combined by the combining unit 135 to the management apparatus 40 as a response message for the request message received in step S101 (step S108).

[他の分割例(1)]
上記実施形態では、図5に示した例のように、ノード10が処理可能な命令数(処理可能プロパティ数)に基づいて、要求電文を分割する例を示した。これは、ノード10によって1個の要求電文において処理可能な命令数(プロパティ数)が異なるからである。しかし、ノード10によっては、命令数にかかわらず、「プロパティ値の書き込み命令」及び「プロパティ値の読み出し命令」の双方が含まれている要求電文を処理することができない場合もある。そこで、通信装置100は、要求電文に「プロパティ値の書き込み命令」及び「プロパティ値の読み出し命令」の双方が含まれている場合に、「プロパティ値の書き込み命令」のみが含まれる分割電文と、「プロパティ値の読み出し命令」のみが含まれる分割電文とに分割してもよい。この点について図7及び図8を用いて具体的に説明する。なお、以下では、「プロパティ値の書き込み命令」及び「プロパティ値の読み出し命令」の双方が含まれる要求電文を「SetGet電文」と表記する場合がある。
[Other division examples (1)]
In the embodiment described above, an example in which a request message is divided based on the number of instructions (number of processable properties) that can be processed by the node 10 has been shown, as in the example illustrated in FIG. This is because the number of instructions (number of properties) that can be processed in one request message varies depending on the node 10. However, depending on the node 10, a request message including both a “property value write command” and a “property value read command” may not be processed regardless of the number of commands. Therefore, when the request message includes both the “property value write command” and the “property value read command”, the communication device 100 includes a split message including only the “property value write command”; You may divide | segment into the division | segmentation message | telegram only including "the read command of property value". This point will be specifically described with reference to FIGS. In the following, a request message including both a “property value write command” and a “property value read command” may be referred to as a “SetGet message”.

図7は、第1の実施形態に係る相手先情報テーブル121の他の例を示す図である。図7に示した例では、相手先情報テーブル121は、「送信先アドレス」と、「SetGet電文対応」と対応付けて記憶する。「送信先アドレス」は、図3に示した送信先アドレスと同様である。「SetGet電文対応」は、ノード10がSetGet電文を処理することができるか否かを示す。図7の例では、「SetGet電文対応」に「yes」が記憶されている場合には、ノード10がSetGet電文を処理できることを示し、「SetGet電文対応」に「no」が記憶されている場合には、ノード10がSetGet電文を処理できないことを示す。   FIG. 7 is a diagram illustrating another example of the partner information table 121 according to the first embodiment. In the example illustrated in FIG. 7, the destination information table 121 stores “transmission destination address” and “SetGet message correspondence” in association with each other. The “destination address” is the same as the destination address shown in FIG. “SetGet message correspondence” indicates whether or not the node 10 can process the SetGet message. In the example of FIG. 7, when “yes” is stored in “SetGet message compatible”, it indicates that the node 10 can process the SetGet message, and “no” is stored in “SetGet message compatible”. Indicates that the node 10 cannot process the SetGet message.

続いて、図8を用いて、通信装置100によるSetGet電文の送受信処理について説明する。図8は、第1の実施形態に係る通信装置100によるSetGet電文の送受信処理の一例を示す図である。図8の上段には、管理装置40から受信したSetGet電文D20を示し、図8の下段には、SetGet電文D20が分割された後の2個の分割電文D20及びD20を示す。 Next, a process for transmitting and receiving a SetGet message by the communication apparatus 100 will be described with reference to FIG. FIG. 8 is a diagram illustrating an example of a SetGet message transmission / reception process performed by the communication apparatus 100 according to the first embodiment. In the upper part of FIG. 8 shows a SetGet message D20 received from the management apparatus 40, the lower part of FIG. 8 shows the two divided message D20 1 and D20 2 after SetGet message D20 is divided.

図8の上段に示すように、SetGet電文D20には、図5に示した要求電文D10と比較して、「OPC」の代わりに、「OPCSet」及び「OPCGet」が含まれる。「OPCSet」は、プロパティ値の書き込み対象となるプロパティの数を示す。具体的には、「OPCSet」には、後段の「EPC1」、「PDC1」及び「EDT1」〜「EPCi」、「PDCi」及び「EDTi」の数「i」が設定される。また、「OPCGet」は、プロパティ値の読み出し対象となるプロパティの数を示す。具体的には、「OPCGet」には、後段の「EPCi+1」、「PDCi+1」及び「EDTi+1」〜「EPCj」、「PDCj」及び「EDTj」の数「j−i」が設定される。すなわち、図8に示したSetGet電文D20には、i個の書き込み命令と、(j−i)個の読み出し命令とが含まれる。このようなSetGet電文D20の「ESV」には、例えば、「プロパティ値の書き込み命令」及び「プロパティ値の読み出し命令」の双方が含まれることを示す「0x6E」が設定される。   As shown in the upper part of FIG. 8, the SetGet message D20 includes “OPCSet” and “OPCGet” instead of “OPC” as compared to the request message D10 shown in FIG. “OPCSet” indicates the number of properties for which property values are to be written. Specifically, the number “i” of “EPC1”, “PDC1” and “EDT1” to “EPCi”, “PDCi”, and “EDTi” in the subsequent stage is set in “OPCSet”. “OPCGet” indicates the number of properties from which property values are to be read. Specifically, the number “ji” of “EPCi + 1”, “PDCi + 1” and “EDTi + 1” to “EDCj”, “PDCj” and “EDTj” in the subsequent stage is set in “OPCGet”. That is, the SetGet message D20 illustrated in FIG. 8 includes i write commands and (ji) read commands. For example, “0x6E” indicating that both a “property value write command” and a “property value read command” are included in the “ESV” of the SetGet message D20.

通信装置100の判定部132は、図8に示したSetGet電文D20が受信部131によって受信された場合に、SetGet電文D20の「ESV」を読み出す。そして、判定部132は、「ESV」に「0x6E」が設定されている場合には、図7に示した相手先情報テーブル121の「SetGet電文対応」を参照し、SetGet電文D20の送信先となるノード10がSetGet電文D20を処理することができるか否かを判定する。そして、分割部133は、判定部132による判定処理の結果、ノード10がSetGet電文D20を処理することができる場合には、SetGet電文D20を送信部134に出力することで、送信部134にSetGet電文D20をノード10へ送信させる。一方、分割部133は、ノード10がSetGet電文D20を処理できない場合には、図8の下段に示した例のように、SetGet電文D20を分割する。   When the reception unit 131 receives the SetGet message D20 illustrated in FIG. 8, the determination unit 132 of the communication device 100 reads “ESV” of the SetGet message D20. Then, when “0x6E” is set in “ESV”, the determination unit 132 refers to “SetGet message correspondence” in the partner information table 121 illustrated in FIG. 7 and determines the transmission destination of the SetGet message D20. It is determined whether or not the node 10 to be able to process the SetGet message D20. When the node 10 can process the SetGet message D20 as a result of the determination process by the determination unit 132, the dividing unit 133 outputs the SetGet message D20 to the transmission unit 134, thereby causing the transmission unit 134 to setSetGet. The electronic message D20 is transmitted to the node 10. On the other hand, when the node 10 cannot process the SetGet message D20, the dividing unit 133 divides the SetGet message D20 as in the example illustrated in the lower part of FIG.

かかる分割処理の一例について説明すると、分割部133は、SetGet電文D20の送信元のIPアドレスと、SetGet電文D20の「TID」とをTID対応テーブル122の「送信元アドレス」及び「元電文TID」に格納する。このとき、分割部133は、TID対応テーブル122の「分割数」に「0」を格納する。   An example of such division processing will be described. The dividing unit 133 determines the IP address of the transmission source of the SetGet message D20 and the “TID” of the SetGet message D20 as the “transmission source address” and “original message TID” of the TID correspondence table 122. To store. At this time, the dividing unit 133 stores “0” in the “number of divisions” of the TID correspondence table 122.

続いて、分割部133は、カウンタ「k」を「1」とし、分割電文D20(すなわち、分割電文D20)の「EHD1」、「EHD2」、「SEOJ」及び「DEOJ」に、SetGet電文D20の「EHD1」、「EHD2」、「SEOJ」及び「DEOJ」をコピーする。また、分割部133は、カウンタ「k」が「1」である場合には、SetGet電文D20に含まれる「EPC1」、「PDC1」及び「EDT1」〜「EPCi」、「PDCi」及び「EDTi」を分割電文D20にコピーする。さらに、分割部133は、分割電文D20の「OPC」に、SetGet電文D20の「OPCSet」に設定されている「i」をコピーする。さらに、分割部133は、分割電文D20の「ESV」に、プロパティ値の書き込みを示す「0x61」を設定する。 Subsequently, the dividing unit 133 sets the counter “k” to “1”, sets the SetGet message to “EHD1”, “EHD2”, “SEOJ”, and “DEOJ” of the divided message D20 k (that is, the divided message D20 1 ). “EHD1”, “EHD2”, “SEOJ”, and “DEOJ” of D20 are copied. Further, when the counter “k” is “1”, the dividing unit 133 displays “EPC1”, “PDC1”, and “EDT1” to “EPCi”, “PDCi”, and “EDTi” included in the SetGet message D20. a copy to the division telegram D20 1. Further, dividing unit 133, the "OPC" divided telegram D20 1, to copy the "i" set to "OPCSet" in SetGet telegram D20. Further, dividing unit 133, the "ESV" divided telegram D20 1, showing the writing property value set to "0x61".

続いて、分割部133は、TIDカウンタ値を読み出して、読み出したTIDカウンタ値を分割電文D20の「TID」に設定する。ここでは、分割部133は、分割電文D20の「TID」に「s」を設定するものとする。さらに、分割部133は、TIDカウンタ値「s」をTID対応テーブル122の「分割電文TID」に格納するとともに、TID対応テーブル122の「応答受信有無」に未受信を示す情報(図4の例では「no」)を格納する。そして、分割部133は、TID対応テーブル122の「分割数」に「1」を加算する。また、分割部133は、TIDカウンタ値「s」に「1」を加算して、新たなTIDカウンタ値「s+1」として記録しておく。 Subsequently, the dividing unit 133 reads the TID counter value, sets the read TID counter value to "TID" divided telegram D20 1. Here, dividing section 133 shall be set to "s" to "TID" divided telegram D20 1. Further, the division unit 133 stores the TID counter value “s” in “division message TID” of the TID correspondence table 122 and information indicating “not received” in the TID correspondence table 122 (example in FIG. 4). Stores “no”). Then, the dividing unit 133 adds “1” to “number of divisions” in the TID correspondence table 122. Further, the dividing unit 133 adds “1” to the TID counter value “s” and records it as a new TID counter value “s + 1”.

続いて、分割部133は、カウンタ「k」に「1」を加算して「2」とし、分割電文D20(すなわち、分割電文D20)の「EHD1」、「EHD2」、「SEOJ」及び「DEOJ」に、SetGet電文D20の「EHD1」、「EHD2」、「SEOJ」及び「DEOJ」をコピーする。また、分割部133は、カウンタ「k」が「2」である場合には、SetGet電文D20に含まれる「EPCi+1」、「PDCi+1」及び「EDTi+1」〜「EPCj」、「PDCj」及び「EDTj」を分割電文D20にコピーする。さらに、分割部133は、分割電文D20の「OPC」に、SetGet電文D20の「OPCGet」に設定されている「j−i」をコピーする。さらに、分割部133は、分割電文D20の「ESV」に、プロパティ値の読み出しを示す「0x62」を設定する。 Subsequently, the dividing unit 133 adds “1” to the counter “k” to obtain “2”, and “EHD1”, “EHD2”, “SEOJ” and “EHD1” of the divided message D20 k (that is, the divided message D20 2 ) and “EHD1”, “EHD2”, “SEOJ”, and “DEOJ” of the SetGet message D20 are copied to “DEOJ”. Further, when the counter “k” is “2”, the dividing unit 133 performs “EPCi + 1”, “PDCi + 1”, and “EDTi + 1” to “EPCj”, “PDCj”, and “EDTj” included in the SetGet message D20. a copy to the divided message D20 2. Further, dividing unit 133, the "OPC" divided telegram D20 2, copy the "j-i" set to "OPCGet" in SetGet telegram D20. Further, dividing unit 133, the "ESV" divided telegram D20 2, showing a reading of the property value set to "0x62".

続いて、分割部133は、TIDカウンタ値「s+1」を読み出して、読み出したTIDカウンタ値「s+1」を分割電文D20の「TID」に設定する。さらに、分割部133は、TIDカウンタ値「s+1」をTID対応テーブル122の「分割電文TID」に格納するとともに、TID対応テーブル122の「応答受信有無」に未受信を示す情報を格納する。そして、分割部133は、TID対応テーブル122の「分割数」に「1」を加算する。また、分割部133は、TIDカウンタ値「s+1」に「1」を加算して、新たなTIDカウンタ値「s+2」として記録しておく。 Subsequently, the dividing unit 133 reads the TID counter value "s + 1", the read TID counter value to "s + 1" is set to "TID" divided telegram D20 2. Furthermore, the dividing unit 133 stores the TID counter value “s + 1” in “divided telegram TID” of the TID correspondence table 122 and also stores information indicating non-reception in the “response reception presence / absence” of the TID correspondence table 122. Then, the dividing unit 133 adds “1” to “number of divisions” in the TID correspondence table 122. Further, the dividing unit 133 adds “1” to the TID counter value “s + 1” and records it as a new TID counter value “s + 2”.

このようにして、分割部133は、「k>2」となるまで上記処理を行う。すなわち、分割部133は、カウンタ「k」=「1」である場合には、プロパティ値の書き込み命令のみが含まれる分割電文D20を生成し、カウンタ「k」=「2」である場合には、プロパティ値の読み出し命令のみが含まれる分割電文D20を生成する。 In this way, the dividing unit 133 performs the above processing until “k> 2”. That is, dividing section 133, if a counter "k" = "1" generates the divided message D20 1 that contains only write instruction property value, when a counter "k" = "2" generates a divided message D20 2 which contains only read command property values.

そして、送信部134は、分割部133によって分割された分割電文D20及びD20をノード10に送信する。これにより、受信部131は、分割電文D20及びD20のそれぞれについて、ノード10から応答電文を受信し、受信した応答電文を結合部135に出力する。そして、結合部135は、応答電文に設定されている「TID」に対応するTID対応テーブル122の「応答受信有無」に受信済みを示す情報を格納する。そして、結合部135は、分割電文D20及びD20の双方の応答電文が受信済みとなった場合に、各応答電文を結合することで、要求電文D20に対する応答電文を生成する。そして、送信部134は、結合部135によって生成された応答電文を管理装置40に送信する。 The transmitting unit 134 transmits the divided message D20 1 and D20 2 divided by the dividing unit 133 to the node 10. Accordingly, the receiving unit 131, for each of the divided message D20 1 and D20 2, receives a response message from the node 10, and outputs the response message received in the coupling section 135. The combining unit 135 stores information indicating reception in the “response reception presence / absence” of the TID correspondence table 122 corresponding to “TID” set in the response message. The coupling unit 135, if the divided message D20 1 and D20 2 of both response message becomes received, by combining the respective response message, generates a response message to the request message D20. Then, the transmitting unit 134 transmits the response message generated by the combining unit 135 to the management device 40.

なお、結合部135は、分割電文D20及びD20の双方の応答電文の「ESV」がいずれも正常応答を表す情報であった場合は、要求電文D20に対する応答電文の「ESV」には正常応答を表す「0x7E」を設定する。また、結合部135は、分割電文D20及びD20のいずれか一方でも「ESV」が不可応答を表す情報であった場合は、要求電文D20に対する応答電文の「ESV」には不可応答を表す「0x5E」を設定する。 Incidentally, the coupling portion 135, if "ESV" divided telegram D20 1 and D20 2 of both response message is an information representative of the either normal response is normally the "ESV" in response message to the request message D20 “0x7E” representing the response is set. The coupling unit 135, if either one of the divided message D20 1 and D20 2 nor "ESV" was the information indicating the improper response represents a No response to "ESV" in response message to the request message D20 Set “0x5E”.

[他の分割例(2)]
上記実施形態において、通信装置100は、図5に示した分割処理と、図8に示した分割処理との双方を行ってもよい。この点について図9を用いて説明する。図9は、第1の実施形態に係る通信装置100による処理手順の一例を示すフローチャートである。なお、図9の例では、通信装置100の相手先情報テーブル121は、図3に示した「処理可能プロパティ数」と、図7に示した「SetGet電文対応」との双方を記憶する。
[Other division examples (2)]
In the above embodiment, the communication apparatus 100 may perform both the division process illustrated in FIG. 5 and the division process illustrated in FIG. This point will be described with reference to FIG. FIG. 9 is a flowchart illustrating an example of a processing procedure performed by the communication device 100 according to the first embodiment. In the example of FIG. 9, the counterpart information table 121 of the communication apparatus 100 stores both “number of processable properties” shown in FIG. 3 and “SetGet message correspondence” shown in FIG.

図9に示すように、受信部131は、管理装置40から要求電文を受信したか否かを判定する(ステップS201)。そして、受信部131は、要求電文を受信していない場合には(ステップS201否定)、要求電文を受信するまで待機する。   As illustrated in FIG. 9, the reception unit 131 determines whether a request message has been received from the management device 40 (step S201). If the request message has not been received (No at Step S201), the reception unit 131 waits until the request message is received.

一方、受信部131によって要求電文が受信された場合(ステップS201肯定)、判定部132は、かかる要求電文がSetGet電文であるか否かを判定する(ステップS202)。例えば、判定部132は、要求電文の「ESV」に「0x6E」が設定されているか否かを判定する。そして、判定部132は、受信した要求電文がSetGet電文である場合には(ステップS202肯定)、相手先情報テーブル121の「SetGet電文対応」に基づいて、ノード10がSetGet電文を処理できるか否かを判定する(ステップS203)。   On the other hand, when the request message is received by the receiving unit 131 (Yes at Step S201), the determination unit 132 determines whether the request message is a SetGet message (Step S202). For example, the determination unit 132 determines whether “0x6E” is set in “ESV” of the request message. Then, when the received request message is a SetGet message (Yes at Step S202), the determination unit 132 determines whether the node 10 can process the SetGet message based on “SetGet message correspondence” in the counterpart information table 121. Is determined (step S203).

そして、分割部133は、ノード10がSetGet電文を処理できない場合には(ステップS203否定)、図8に示した分割処理を行う(ステップS204)。続いて、判定部132は、ステップS204において生成された分割電文毎に、かかる分割電文に含まれる命令数(すなわち、OPCの値)と、相手先情報テーブル121の「処理可能プロパティ数」とを比較する(ステップS205)。   When the node 10 cannot process the SetGet message (No at Step S203), the dividing unit 133 performs the dividing process illustrated in FIG. 8 (Step S204). Subsequently, for each divided message generated in step S204, the determination unit 132 calculates the number of instructions included in the divided message (that is, the value of OPC) and the “number of processable properties” in the partner information table 121. Compare (step S205).

そして、分割部133は、分割電文に含まれる命令数が処理可能プロパティ数よりも大きい場合には(ステップS205肯定)、分割電文について図5に示した分割処理を更に行う。そして、送信部134は、ステップS206において生成された分割電文をノード10に送信する(ステップS207)。   When the number of instructions included in the divided message is larger than the number of processable properties (Yes at Step S205), the dividing unit 133 further performs the dividing process illustrated in FIG. 5 on the divided message. Then, the transmission unit 134 transmits the divided message generated in step S206 to the node 10 (step S207).

一方、分割部133は、分割電文に含まれる命令数が処理可能プロパティ数以下である場合には(ステップS205否定)、分割電文について図5に示した分割処理を行わない。この場合、送信部134は、ステップS204において生成された分割電文をノード10に送信する(ステップS207)。   On the other hand, when the number of instructions included in the divided message is equal to or less than the number of processable properties (No in step S205), the dividing unit 133 does not perform the dividing process illustrated in FIG. In this case, the transmission unit 134 transmits the split message generated in step S204 to the node 10 (step S207).

また、分割部133は、受信した要求電文がSetGet電文でない場合(ステップS202否定)、又は、ノード10がSetGet電文を処理できる場合には(ステップS203肯定)、図8に示したステップS204における分割処理を行わない。この場合、判定部132は、ステップS201において受信した要求電文に含まれる命令数(すなわち、OPCの値)と、相手先情報テーブル121の「処理可能プロパティ数」とを比較する(ステップS205)。   In addition, when the received request message is not a SetGet message (No at Step S202), or when the node 10 can process the SetGet message (Yes at Step S203), the dividing unit 133 performs the division at Step S204 illustrated in FIG. Do not process. In this case, the determination unit 132 compares the number of instructions (that is, the value of OPC) included in the request message received in step S201 with the “number of processable properties” in the counterpart information table 121 (step S205).

そして、分割部133は、要求電文に含まれる命令数が処理可能プロパティ数よりも大きい場合には(ステップS205肯定)、要求電文について図5に示した分割処理を行う。そして、送信部134は、ステップS206において生成された分割電文をノード10に送信する(ステップS207)。   When the number of instructions included in the request message is larger than the number of processable properties (Yes at Step S205), the dividing unit 133 performs the dividing process illustrated in FIG. 5 on the request message. Then, the transmission unit 134 transmits the divided message generated in step S206 to the node 10 (step S207).

一方、分割部133は、要求電文に含まれる命令数が処理可能プロパティ数以下である場合には(ステップS205否定)、要求電文について図5に示したステップS206における分割処理を行わない。この場合、送信部134は、ステップS201において受信した要求電文をノード10に送信する(ステップS207)。   On the other hand, when the number of instructions included in the request message is equal to or less than the number of processable properties (No in step S205), the dividing unit 133 does not perform the dividing process in step S206 illustrated in FIG. In this case, the transmission unit 134 transmits the request message received in step S201 to the node 10 (step S207).

[第1の実施形態の効果]
上述してきたように、第1の実施形態に係る通信装置100によれば、所定数以下の命令を含む分割電文に分割されるので、各ノードが処理可能な電文を流通させることができる。
[Effect of the first embodiment]
As described above, according to the communication device 100 according to the first embodiment, since the message is divided into divided messages including a predetermined number of instructions or less, a message that can be processed by each node can be distributed.

(第2の実施形態)
上記第1の実施形態では、図3に示した相手先情報テーブル121の処理可能プロパティ数が管理者等によって予め格納されるものとして説明した。しかし、この処理可能プロパティ数は、通信装置によって検出されてもよい。そこで、第2の実施形態では、通信装置が処理可能プロパティ数を検出する例について説明する。なお、第2の実施形態に係るエネルギー管理システム1の構成は、図1に示した例と同様であるので、以下では説明を省略する。また、以下では、図5に示した分割処理を行う例について説明する。
(Second Embodiment)
In the first embodiment described above, the number of processable properties in the counterpart information table 121 illustrated in FIG. 3 has been described as being stored in advance by an administrator or the like. However, this processable property number may be detected by the communication device. Therefore, in the second embodiment, an example will be described in which the communication device detects the number of processable properties. In addition, since the structure of the energy management system 1 which concerns on 2nd Embodiment is the same as that of the example shown in FIG. 1, description is abbreviate | omitted below. In the following, an example in which the division process illustrated in FIG. 5 is performed will be described.

[管理装置の構成]
図10は、第2の実施形態に係る通信装置200の構成例を示す図である。図10に示すように、通信装置200は、記憶部220と、制御部230とを有する。記憶部220は、相手先情報テーブル221を含む。また、制御部230は、受信部231、判定部232、分割部233、送信部234及び更新部236を含む。
[Configuration of management device]
FIG. 10 is a diagram illustrating a configuration example of the communication apparatus 200 according to the second embodiment. As illustrated in FIG. 10, the communication device 200 includes a storage unit 220 and a control unit 230. The storage unit 220 includes a counterpart information table 221. The control unit 230 includes a reception unit 231, a determination unit 232, a division unit 233, a transmission unit 234, and an update unit 236.

図11に、第2の実施形態に係る相手先情報テーブル221の一例を示す。図11に示した例では、相手先情報テーブル221は、「送信先アドレス」と、「処理可能プロパティ数」と、「処理不可プロパティ数」とを対応付けて記憶する。「送信先アドレス」は、図3に示した送信先アドレスと同様である。「処理可能プロパティ数」は、図3に示した処理可能プロパティ数と同様であり、ノード10が過去に処理することができた命令数の最大値を示す。「処理不可プロパティ数」は、ノード10が1個の要求電文において処理することができないプロパティへの命令の数を示し、ノード10が過去に処理することができなかった命令数の最小値を示す。このような「処理可能プロパティ数」及び「処理不可プロパティ数」は、通信装置200によって更新される。   FIG. 11 shows an example of the partner information table 221 according to the second embodiment. In the example illustrated in FIG. 11, the destination information table 221 stores “transmission destination address”, “number of processable properties”, and “number of unprocessable properties” in association with each other. The “destination address” is the same as the destination address shown in FIG. The “number of processable properties” is the same as the number of processable properties shown in FIG. 3 and indicates the maximum number of instructions that the node 10 could process in the past. The “number of unprocessable properties” indicates the number of instructions to the property that the node 10 cannot process in one request message, and indicates the minimum number of instructions that the node 10 has not been able to process in the past. . Such “number of processable properties” and “number of unprocessable properties” are updated by the communication apparatus 200.

すなわち、図11では、送信先アドレスが「192.168.0.100」であるノード10は、3個の命令が含まれている要求電文を過去に処理したことがあり、6個の命令が含まれている要求電文を過去に処理できなかった例を示している。この例の場合、送信先アドレス「192.168.0.100」のノード10は、4個や5個の命令が含まれる要求電文を処理することができるか否かは不明である。   That is, in FIG. 11, the node 10 whose destination address is “192.168.0.100” has processed a request message including three commands in the past, and six commands are An example in which the included request message cannot be processed in the past is shown. In this example, it is unclear whether or not the node 10 having the transmission destination address “192.168.0.100” can process a request message including four or five instructions.

また、図11の例において、送信先アドレスが「192.168.0.105」であるノード10に対応する「処理可能プロパティ数」及び「処理不可プロパティ数」は、通信装置200と電文の送受信を行ったことのないノード10に設定される初期値を示す。具体的には、通信装置200と通信を行ったことのないノード10については、何個の命令を処理できるかが不明であるので、「処理可能プロパティ数」には「0」が設定される。また、ECHONET Liteにおいて、1個の電文に設定できるプロパティへの命令の数は、「255」と決められているので、通信装置200と通信を行ったことのないノード10の「処理不可プロパティ数」は「256」となる。なお、「処理可能プロパティ数」の初期値は、「0」でなく、どのようなノード10であっても確実に処理できる命令数「1」であってもよい。すなわち、送信先アドレス「192.168.0.105」のノード10は、いくつの命令が含まれる要求電文を処理することができるか否かは不明である。   In the example of FIG. 11, the “number of processable properties” and the “number of unprocessable properties” corresponding to the node 10 whose destination address is “192.168.0.105” are the transmission / reception of messages with the communication apparatus 200. The initial value set in the node 10 that has not been performed is shown. Specifically, since it is unclear how many instructions can be processed for the node 10 that has not communicated with the communication apparatus 200, “0” is set in the “number of processable properties”. . Further, in ECHONET Lite, the number of commands to properties that can be set in one message is determined to be “255”. Therefore, the “number of unprocessable properties” of the node 10 that has not communicated with the communication device 200. "Becomes" 256 ". Note that the initial value of “number of processable properties” is not “0”, but may be the number of instructions “1” that can be reliably processed by any node 10. That is, it is unknown whether the node 10 having the transmission destination address “192.168.0.105” can process the request message including the number of instructions.

また、図11の例において、送信先アドレスが「192.168.0.102」であるノード10に対応する「処理可能プロパティ数」及び「処理不可プロパティ数」には、双方に「4」が設定されている。この例については後述する。   In the example of FIG. 11, “4” is displayed for both “number of processable properties” and “number of unprocessable properties” corresponding to the node 10 whose destination address is “192.168.0.102”. Is set. This example will be described later.

図10の説明に戻って、制御部230による処理について説明する。受信部231は、ノード10から応答電文を受信した場合に、受信した応答電文を更新部236に出力する。また、送信部234は、ノード10に送信した要求電文(管理装置40から受信した要求電文、又は、分割部233によって生成された分割電文)を更新部236に出力する。   Returning to the description of FIG. 10, processing by the control unit 230 will be described. When receiving a response message from the node 10, the reception unit 231 outputs the received response message to the update unit 236. Further, the transmission unit 234 outputs the request message (request message received from the management device 40 or the divided message generated by the dividing unit 233) transmitted to the node 10 to the updating unit 236.

更新部236は、送信部234によって送信された要求電文や、受信部231によって受信された応答電文に基づいて、相手先情報テーブル221の処理可能プロパティ数や処理不可プロパティ数を更新する。具体的には、更新部236は、一部の命令のみ処理できた旨の応答電文に、かかる応答電文に基づいて処理不可プロパティ数を更新する。また、更新部236は、1個の命令も処理できなかった旨の応答電文が受信部231によって受信された場合に、かかる応答電文に対応する要求電文に基づいて処理不可プロパティ数を更新する。また、更新部236は、全ての命令について正常に処理した旨の応答電文が受信部231によって受信された場合に、かかる応答電文に対応する要求電文に基づいて処理可能プロパティ数を更新する。以下に、更新部236による処理について、ノード10から送信される応答電文のパターン毎に説明する。   The update unit 236 updates the number of processable properties and the number of unprocessable properties in the counterpart information table 221 based on the request message transmitted by the transmission unit 234 and the response message received by the reception unit 231. Specifically, the update unit 236 updates the number of unprocessable properties to a response message indicating that only a part of the instructions has been processed based on the response message. Further, when the receiving unit 231 receives a response message indicating that one command could not be processed, the updating unit 236 updates the number of unprocessable properties based on the request message corresponding to the response message. In addition, when the reception unit 231 receives a response message indicating that all commands have been processed normally, the update unit 236 updates the number of processable properties based on the request message corresponding to the response message. Below, the process by the update part 236 is demonstrated for every pattern of the response message transmitted from the node 10. FIG.

まず、ノード10によっては、要求電文に含まれる命令数が多いために一部の命令だけ処理できる場合に、先頭の命令から順に処理することがある。この場合、ノード10は、処理できた命令数を「OPC」に設定するとともに、処理した命令の応答を「EPC」、「PDC」及び「EDT」に設定した応答電文を通信装置200に送信する。このとき、ノード10は、応答電文の「ESV」に「0x51」や「0x52」などを設定する。このような応答電文が受信部231によって受信された場合、更新部236は、かかる応答電文の「OPC」に「1」を加えた値と、相手先情報テーブル221の処理不可プロパティ数とを比較する。そして、更新部236は、処理不可プロパティ数よりも「OPC+1」の方が小さい場合には、かかる「OPC+1」の値を新たな処理不可プロパティ数として相手先情報テーブル221を更新する。   First, depending on the node 10, when only a part of instructions can be processed because the number of instructions included in the request message is large, the instructions may be processed in order from the head instruction. In this case, the node 10 sets the number of instructions that can be processed to “OPC” and transmits a response message in which the responses of the processed instructions are set to “EPC”, “PDC”, and “EDT” to the communication apparatus 200. . At this time, the node 10 sets “0x51”, “0x52”, and the like in “ESV” of the response message. When such a response message is received by the receiving unit 231, the update unit 236 compares the value obtained by adding “1” to “OPC” of the response message with the number of unprocessable properties in the destination information table 221. To do. Then, when “OPC + 1” is smaller than the number of unprocessable properties, the update unit 236 updates the counterpart information table 221 with the value of “OPC + 1” as the new unprocessable property number.

また、ノード10によっては、要求電文に含まれる命令数が多い場合に、いずれの命令についても処理を行わずに、全く処理しなかったことを示す応答電文を通信装置200に送信することがある。また、ノード10によっては、処理できた命令数が判断できないような応答電文を通信装置200に送信することがある。このような応答電文が受信部231によって受信された場合、更新部236は、送信部234によってノード10に送信された要求電文(又は、分割電文)に設定されていた「OPC」を新たな処理不可プロパティ数として相手先情報テーブル221を更新する。このとき、更新部236は、処理不可プロパティ数よりも要求電文の「OPC」の方が小さい場合に、かかる「OPC」の値を新たな処理不可プロパティ数として相手先情報テーブル221を更新してもよい。   Also, depending on the node 10, when the number of instructions included in the request message is large, no processing is performed on any command, and a response message indicating that no processing is performed may be transmitted to the communication apparatus 200. . Depending on the node 10, a response message that cannot determine the number of instructions that can be processed may be transmitted to the communication apparatus 200. When such a response message is received by the reception unit 231, the update unit 236 performs a new process on “OPC” set in the request message (or divided message) transmitted to the node 10 by the transmission unit 234. The partner information table 221 is updated as the number of impossible properties. At this time, when the “OPC” of the request message is smaller than the number of unprocessable properties, the update unit 236 updates the counterpart information table 221 with the value of “OPC” as the new unprocessable property number. Also good.

また、ノード10は、要求電文に含まれる全ての命令について処理することができた場合には、処理した命令数を「OPC」に設定するとともに、処理した命令の応答を「EPC」、「PDC」及び「EDT」に設定した応答電文を通信装置200に送信する。このとき、ノード10は、応答電文の「ESV」に「0x71」や「0x72」などを設定する。このような応答電文が受信部231によって受信された場合、更新部236は、ノード10に送信された要求電文(又は、分割電文)に設定されていた「OPC」と、相手先情報テーブル221の処理可能プロパティ数とを比較する。そして、更新部236は、処理可能プロパティ数よりも「OPC」の方が大きい場合には、かかる「OPC」の値を新たな処理可能プロパティ数として相手先情報テーブル221を更新する。   Further, when all the instructions included in the request message can be processed, the node 10 sets the number of processed instructions to “OPC” and sets the response of the processed instructions to “EPC” and “PDC”. ”And“ EDT ”are transmitted to the communication apparatus 200. At this time, the node 10 sets “0x71”, “0x72” or the like in “ESV” of the response message. When such a response message is received by the reception unit 231, the update unit 236 displays “OPC” set in the request message (or divided message) transmitted to the node 10 and the destination information table 221. Compare the number of processable properties. Then, if “OPC” is larger than the number of processable properties, the update unit 236 updates the destination information table 221 with the value of “OPC” as the new number of processable properties.

このようにして、更新部236は、ノード10との間で実際に送受信した電文に基づいて、相手先情報テーブル221を更新する。例えば、通信装置200が、ノード10に対して3個の命令を含む要求電文を送信し、全ての命令を処理したことを示す応答電文を受信したものとする。また、通信装置200が、同一のノード10に対して10個の命令を含む要求電文を送信し、5個の命令を処理したことを示す応答電文を受信したものとする。この場合、更新部236は、図11の1レコード目のように、処理可能プロパティ数を「3」に更新し、処理不可プロパティ数を「6」に更新する。   In this way, the update unit 236 updates the counterpart information table 221 based on the message actually transmitted / received to / from the node 10. For example, it is assumed that the communication device 200 transmits a request message including three commands to the node 10 and receives a response message indicating that all commands have been processed. Further, it is assumed that the communication apparatus 200 transmits a request message including 10 commands to the same node 10 and receives a response message indicating that 5 commands have been processed. In this case, the update unit 236 updates the number of processable properties to “3” and the number of unprocessable properties to “6” as in the first record in FIG.

また、例えば、通信装置200が、ノード10に対して4個の命令を含む要求電文を送信し、全ての命令を処理したことを示す応答電文を受信したものとする。また、その後に、通信装置200が、同一のノード10に対して4個の命令を含む要求電文を送信し、3個の命令を処理したことを示す応答電文を受信したものとする。これは、ノード10が、4個の命令を含む要求電文を処理できる場合もあれば、処理できない場合もある例を示している。具体的には、ノード10は、処理することができる要求電文のサイズ(バイト数)が決められている場合がある。このため、命令数が4個であっても要求電文のサイズによってノード10が処理できるか否かが変動する。このようなケースでは、更新部236は、図11の3レコード目のように、処理可能プロパティ数を「4」に更新し、処理不可プロパティ数を「4」に更新することとなる。   For example, it is assumed that the communication apparatus 200 transmits a request message including four commands to the node 10 and receives a response message indicating that all commands have been processed. Thereafter, it is assumed that the communication device 200 transmits a request message including four commands to the same node 10 and receives a response message indicating that the three commands have been processed. This shows an example in which the node 10 may or may not be able to process a request message including four instructions. Specifically, the node 10 may determine the size (number of bytes) of a request message that can be processed. For this reason, even if the number of instructions is four, whether or not the node 10 can be processed varies depending on the size of the request message. In such a case, the update unit 236 updates the number of processable properties to “4” and updates the number of unprocessable properties to “4” as in the third record of FIG.

また、図11では図示することを省略したが、要求電文のサイズによってノード10が命令を処理できるか否かが変動する場合には、相手先情報テーブル221の処理可能プロパティ数には、処理不可プロパティ数よりも大きい値が設定される場合もある。例えば、処理可能プロパティ数に「5」が設定され、処理不可プロパティ数に「4」が設定される場合もある。   In addition, although illustration is omitted in FIG. 11, when the node 10 can process the command depending on the size of the request message, the number of processable properties in the destination information table 221 cannot be processed. A value larger than the number of properties may be set. For example, “5” may be set as the number of processable properties and “4” may be set as the number of unprocessable properties.

続いて、通信装置200の判定部232及び分割部233について説明する。判定部232は、相手先情報テーブル221から、受信部231が管理装置40から受信した要求電文の送信先に対応する処理可能プロパティ数及び処理不可プロパティ数を取得する。そして、判定部232は、要求電文に含まれる命令数と処理可能プロパティ数とを比較するとともに、要求電文に含まれる命令数と処理不可プロパティ数とを比較する。   Next, the determination unit 232 and the dividing unit 233 of the communication device 200 will be described. The determination unit 232 acquires the number of processable properties and the number of unprocessable properties corresponding to the transmission destination of the request message received by the reception unit 231 from the management apparatus 40 from the counterpart information table 221. Then, the determination unit 232 compares the number of instructions included in the request message with the number of processable properties, and compares the number of instructions included in the request message with the number of unprocessable properties.

分割部233は、判定部232による判定処理の結果に基づいて、要求電文を分割するか否かを決定する。一例を挙げて説明すると、分割部233は、要求電文に含まれる命令数が処理可能プロパティ数以下であり、かつ、要求電文に含まれる命令数が処理不可プロパティ数よりも小さい場合には、分割処理を行わない。この例は、図11における相手先アドレス「192.168.0.100」であるノード10に対する要求電文に3個以下の命令が含まれているケースに該当する。この場合、送信部234は、管理装置40から受信した要求電文をノード10に送信する。   The dividing unit 233 determines whether to divide the request message based on the result of the determination process by the determining unit 232. For example, the dividing unit 233 divides when the number of instructions included in the request message is equal to or less than the number of processable properties and the number of instructions included in the request message is smaller than the number of unprocessable properties. Do not process. This example corresponds to a case where the request message for the node 10 having the destination address “192.168.0.100” in FIG. 11 includes three or less instructions. In this case, the transmission unit 234 transmits the request message received from the management device 40 to the node 10.

また、分割部233は、要求電文に含まれる命令数が処理可能プロパティ数よりも大きく、かつ、要求電文に含まれる命令数が処理不可プロパティ数よりも小さい場合には、分割処理を行わない。この例は、図11における相手先アドレス「192.168.0.100」であるノード10に対する要求電文に4個や5個の命令が含まれているケースに該当する。この場合、送信部234は、管理装置40から受信した要求電文をノード10に送信する。なお、この例では、ノード10に4個の命令を含む要求電文を送信したことがないので、ノード10が4個全ての命令を処理できるか否かは不明である。このため、上述した更新部236は、ノード10から送信される応答電文に応じて、処理可能プロパティ数又は処理不可プロパティ数を更新することとなる。   Further, the dividing unit 233 does not perform the dividing process when the number of instructions included in the request message is larger than the number of processable properties and the number of instructions included in the request message is smaller than the number of unprocessable properties. This example corresponds to a case where four or five commands are included in the request message for the node 10 having the destination address “192.168.0.100” in FIG. In this case, the transmission unit 234 transmits the request message received from the management device 40 to the node 10. In this example, since a request message including four instructions has not been transmitted to the node 10, it is unknown whether the node 10 can process all four instructions. For this reason, the update unit 236 described above updates the number of processable properties or the number of unprocessable properties according to the response message transmitted from the node 10.

また、分割部233は、要求電文に含まれる命令数が処理可能プロパティ数よりも大きく、かつ、要求電文に含まれる命令数が処理不可プロパティ数以上である場合には、1個の分割電文に含まれる命令数が処理不可プロパティ数よりも小さくなるように、図5に示した例のような分割処理を行う。この例は、図11における相手先アドレス「192.168.0.100」であるノード10に対する要求電文に6個以上の命令が含まれているケースに該当する。この場合、送信部234は、分割部233によって分割された要求電文をノード10に送信する。   Further, the dividing unit 233 determines that one divided message is included when the number of instructions included in the request message is larger than the number of processable properties and the number of instructions included in the request message is equal to or greater than the number of unprocessable properties. The division processing as in the example shown in FIG. 5 is performed so that the number of included instructions is smaller than the number of unprocessable properties. This example corresponds to a case where six or more commands are included in the request message for the node 10 having the destination address “192.168.0.100” in FIG. In this case, the transmitting unit 234 transmits the request message divided by the dividing unit 233 to the node 10.

また、分割部233は、要求電文に含まれる命令数が処理可能プロパティ数以下であり、かつ、要求電文に含まれる命令数が処理不可プロパティ数以上である場合には、分割処理を行ってもよいし、分割処理を行わなくてもよい。この例は、図11における相手先アドレス「192.168.0.102」であるノード10に対する要求電文に4個の命令が含まれているケースに該当する。   In addition, the dividing unit 233 may perform the dividing process when the number of instructions included in the request message is equal to or less than the number of processable properties and the number of instructions included in the request message is equal to or greater than the number of unprocessable properties. It is not necessary to perform the dividing process. This example corresponds to a case in which four commands are included in the request message for the node 10 having the destination address “192.168.0.102” in FIG.

ここで、上記の通り、要求電文のサイズによってノード10が命令を処理できるか否かが変動する場合もある。したがって、分割部233は、要求電文に含まれる命令数が処理可能プロパティ数以下であり、かつ、要求電文に含まれる命令数が処理不可プロパティ数以上である場合には、要求電文のサイズに基づいて、分割処理を行うか否かを決定してもよい。例えば、分割部233は、要求電文に含まれる各命令(「EPC」、「PDC」及び「EDT)の平均サイズ(平均バイト数)が所定値よりも小さい場合には、分割処理を行わず、要求電文に含まれる各命令の平均サイズ(平均バイト数)が所定値よりも大きい場合には、1個の分割電文に含まれる命令数が処理不可プロパティ数よりも少なくなるように分割処理を行ってもよい。これにより、分割部233は、ノード10が処理できる可能性の高い電文を送信することができる。   Here, as described above, whether or not the node 10 can process an instruction may vary depending on the size of the request message. Accordingly, when the number of instructions included in the request message is equal to or less than the number of processable properties and the number of instructions included in the request message is equal to or greater than the number of unprocessable properties, the dividing unit 233 determines the number of instructions included in the request message based on the size of the request message. Thus, it may be determined whether or not to perform the division process. For example, when the average size (average number of bytes) of each instruction (“EPC”, “PDC”, and “EDT”) included in the request message is smaller than a predetermined value, the dividing unit 233 does not perform the dividing process, When the average size (average number of bytes) of each instruction included in the request message is larger than the predetermined value, the division processing is performed so that the number of instructions included in one divided message is smaller than the number of unprocessable properties. Thereby, the dividing unit 233 can transmit a message that is highly likely to be processed by the node 10.

[第2の実施形態の変形例]
上記第2の実施形態では、図5に示した分割処理を例に挙げて説明した。しかし、通信装置200は、図8に示したSetGet電文に対する分割処理を行った後に、上述した第2の実施形態における分割処理を行ってもよい。また、通信装置200は、図7に示した相手先情報テーブル121の「SetGet電文対応」を動的に更新してもよい。具体的には、相手先情報テーブル121の「SetGet電文対応」に初期値として「yes」を格納しておき、通信装置200は、ノード10にSetGet電文を送信し、かかるノード10から不可応答を示す応答電文を受信した場合には、「SetGet電文対応」に「no」を格納し、正常応答を示す応答電文を受信した場合には、「SetGet電文対応」に「yes」を格納する。
[Modification of Second Embodiment]
In the second embodiment, the division process illustrated in FIG. 5 has been described as an example. However, the communication apparatus 200 may perform the division process in the second embodiment described above after performing the division process on the SetGet message illustrated in FIG. Further, the communication apparatus 200 may dynamically update “SetGet message compatible” in the partner information table 121 illustrated in FIG. 7. Specifically, “yes” is stored as an initial value in “SetGet message correspondence” of the counterpart information table 121, and the communication apparatus 200 transmits a SetGet message to the node 10, and sends an impossible response from the node 10. When the response message is received, “no” is stored in the “SetGet message correspondence”, and when the response message indicating the normal response is received, “yes” is stored in the “SetGet message correspondence”.

また、第2の実施形態では、通信装置200が相手先情報テーブル221を順次更新するので、ノード10との間で電文の送受信が何度も行われていない初期段階では、ノード10から不可応答を示す応答電文を受信する場合もある。このため、第2の実施形態に係る通信装置200は、ノード10から不可応答を受信した場合には、ノード10によって処理されなかった命令については再送してもよい。   In the second embodiment, since the communication device 200 sequentially updates the counterpart information table 221, an unacknowledged response is received from the node 10 at an initial stage where the transmission and reception of messages with the node 10 is not performed many times. There is a case where a response message indicating is received. For this reason, the communication apparatus 200 according to the second embodiment may retransmit an instruction that has not been processed by the node 10 when an unacceptable response is received from the node 10.

例えば、通信装置200が、図11に示した送信先アドレスが「192.168.0.105」であるノード10宛の要求電文を管理装置40から受信し、この要求電文に10個の命令が含まれているものとする。この場合、通信装置200は、まずは、1個の電文に5個の命令が含まれる2個の分割電文を生成し、生成した2個の分割電文をノード10に送信する。そして、通信装置200は、例えば、2個の分割電文のそれぞれについて4個の命令のみ処理した旨の応答電文を受信した場合に、ノード10によって処理されなかった計2個の命令を含む分割電文をノード10に再送する。このとき、通信装置200は、相手先情報テーブル221の処理不可プロパティ数を「5」に更新する。   For example, the communication apparatus 200 receives a request message addressed to the node 10 having the transmission destination address “192.168.0.105” illustrated in FIG. 11 from the management apparatus 40, and 10 commands are included in the request message. It shall be included. In this case, the communication apparatus 200 first generates two divided messages in which five instructions are included in one message, and transmits the generated two divided messages to the node 10. Then, for example, when the communication apparatus 200 receives a response message indicating that only four commands have been processed for each of the two divided messages, the divided message includes a total of two commands that have not been processed by the node 10. Is retransmitted to the node 10. At this time, the communication apparatus 200 updates the number of unprocessable properties in the partner information table 221 to “5”.

また、上記第2の実施形態では、図11に示すように、相手先情報テーブル221に「処理可能プロパティ数」と「処理不可プロパティ数」とが記憶される例を示した。しかし、相手先情報テーブル221は、「処理可能プロパティ数」及び「処理不可プロパティ数」のいずれか一方のみが記憶されてもよい。この場合、判定部232及び分割部233は、「処理可能プロパティ数」及び「処理不可プロパティ数」のいずれか一方を用いて、判定処理及び分割処理を行う。   In the second embodiment, as shown in FIG. 11, the “number of processable properties” and the “number of unprocessable properties” are stored in the counterpart information table 221. However, only one of “number of processable properties” and “number of unprocessable properties” may be stored in the partner information table 221. In this case, the determination unit 232 and the division unit 233 perform determination processing and division processing using either one of “number of processable properties” and “number of unprocessable properties”.

[第2の実施形態の効果]
上述してきたように、第2の実施形態に係る通信装置200によれば、分割電文に含めるべき命令数を通信装置200自体が動的に検出するので、管理者等による相手先情報テーブル221の更新作業を低減することができる。
[Effects of Second Embodiment]
As described above, according to the communication apparatus 200 according to the second embodiment, the communication apparatus 200 itself dynamically detects the number of instructions to be included in the divided telegram. Update work can be reduced.

(他の実施形態)
上記第1及び第2の実施形態では、分割電文に対する全ての応答電文を受信した場合に、応答電文を結合する例を示した。しかし、通信装置100及び200は、所定時間が経過しても全ての応答電文を受信しない場合には、応答電文を受信していない要求電文をノード10に再送してもよいし、受信済み応答電文のみを結合した応答電文を不可応答として管理装置40に送信してもよい。
(Other embodiments)
In the said 1st and 2nd embodiment, when all the response messages with respect to a division | segmentation message were received, the example which couple | bonds a response message was shown. However, if the communication devices 100 and 200 do not receive all response messages even after a predetermined time has elapsed, the communication devices 100 and 200 may retransmit a request message that has not received a response message to the node 10 or a received response A response message combining only the messages may be transmitted to the management apparatus 40 as an unacceptable response.

上記第1及び第2の実施形態では、所定値(例えば、処理可能プロパティ数)以下の命令を含む分割電文を生成する例を示した。しかし、通信装置100及び200は、常に1個の命令のみ含む分割電文に分割してもよい。どのようなノード10であっても1個の命令であれば処理することができるので、通信装置100及び200は、各ノードが確実に処理可能な電文を流通させることができる。   In the said 1st and 2nd embodiment, the example which produces | generates the division | segmentation message | telegram containing the command below a predetermined value (for example, the number of processable properties) was shown. However, the communication devices 100 and 200 may always be divided into divided telegrams that include only one command. Since any node 10 can process a single command, the communication devices 100 and 200 can distribute a message that each node can reliably process.

上記第1及び第2の実施形態では、ECHONET Liteを例に挙げて説明したが、上述してきた各実施形態は、ECHONETにも同様に適用することができる。   In the first and second embodiments, ECHONET Lite has been described as an example. However, each of the above-described embodiments can be similarly applied to ECHONET.

また、上記実施形態におけるエネルギー管理システム1の構成は図1の例に限られない。例えば、管理サーバ4からホームネットワークシステム2に要求電文が送信されるようなシステムの場合には、管理装置40と通信装置100(又は通信装置200)とが一体となって構成されてもよい。この場合、図1の例のように複数の通信装置100がホームネットワークシステム2に設置されるのではなく、管理装置40が、上述してきた通信装置100又は200と同等の機能を有することとなる。また、この例に限られず、ゲートウェイ装置20と通信装置100(又は通信装置200)とが一体となって構成されてもよい。   Moreover, the structure of the energy management system 1 in the said embodiment is not restricted to the example of FIG. For example, in a system in which a request message is transmitted from the management server 4 to the home network system 2, the management device 40 and the communication device 100 (or the communication device 200) may be configured integrally. In this case, the plurality of communication devices 100 are not installed in the home network system 2 as in the example of FIG. 1, but the management device 40 has a function equivalent to the communication device 100 or 200 described above. . Moreover, it is not restricted to this example, The gateway apparatus 20 and the communication apparatus 100 (or communication apparatus 200) may be comprised integrally.

また、例えば、エネルギー管理システム1には、ユーザ端末3や管理サーバ4が含まれなくてもよい。また、例えば、ホームネットワークシステム2にはユーザ端末30が含まれなくてもよい。この場合、管理装置40は、ノード10を制御するための制御画面等を表示する。そして、ユーザは、かかる制御画面を操作することにより、ノード10を制御及び監視する。   Further, for example, the energy management system 1 may not include the user terminal 3 and the management server 4. For example, the home network system 2 may not include the user terminal 30. In this case, the management device 40 displays a control screen or the like for controlling the node 10. Then, the user controls and monitors the node 10 by operating the control screen.

以上説明したとおり、上記実施形態によれば、各ノードが処理可能な電文を流通させることができる。   As described above, according to the above embodiment, a message that can be processed by each node can be distributed.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the equivalents thereof.

1 エネルギー管理システム
10 ノード
40 管理装置
100 通信装置
121 相手先情報テーブル
122 TID対応テーブル
131 受信部
132 判定部
133 分割部
134 送信部
135 結合部
236 更新部
DESCRIPTION OF SYMBOLS 1 Energy management system 10 Node 40 Management apparatus 100 Communication apparatus 121 Counterpart information table 122 TID correspondence table 131 Receiving part 132 Judgment part 133 Division part 134 Transmission part 135 Combining part 236 Update part

Claims (4)

所定の装置によってノード宛に送信された電文を受信する受信部と;
前記受信部によって受信された電文に、前記ノードに対する命令が所定数以上含まれるか否かを判定する判定部と;
前記判定部によって前記電文に所定数以上の命令が含まれると判定された場合に、前記受信部によって受信された電文を前記ノードが処理可能な数以下の命令を含む電文に分割する分割部と;
前記分割部によって分割された複数の電文を前記ノードに送信する送信部と;
を具備する通信装置。
A receiving unit for receiving a message transmitted to a node by a predetermined device;
A determination unit for determining whether or not a predetermined number or more of instructions for the node are included in the message received by the reception unit;
A division unit that divides a message received by the reception unit into a message including a number of instructions that can be processed by the node when the determination unit determines that the message includes a predetermined number or more; ;
A transmitting unit that transmits a plurality of messages divided by the dividing unit to the node;
A communication apparatus comprising:
前記ノード毎に、当該ノードが処理可能である命令の数を記憶する記憶部と;
前記送信部によって前記ノードに送信された電文に含まれる命令の数と、当該電文に対する当該ノードからの応答とに基づいて、前記記憶部に記憶されている命令の数を更新する更新部と;
をさらに具備する請求項1に記載の通信装置。
For each node, a storage unit that stores the number of instructions that can be processed by the node;
An update unit that updates the number of instructions stored in the storage unit based on the number of instructions included in the message transmitted to the node by the transmission unit and a response from the node to the message;
The communication device according to claim 1, further comprising:
所定の装置によってノード宛に送信された電文を受信する受信部と;
前記受信部によって受信された電文に、前記ノードの属性情報を書き込むための書込命令と、前記ノードの属性情報を読み出すための読出命令とが含まれるか否かを判定する判定部と;
前記判定部によって前記電文に書込命令と読出命令との双方が含まれると判定された場合に、前記受信部によって受信された電文を、前記書込命令を含む電文と前記読出命令を含む電文とに分割する分割部と;
前記分割部によって分割された複数の電文を前記ノードに送信する送信部と;
を具備する通信装置。
A receiving unit for receiving a message transmitted to a node by a predetermined device;
A determination unit that determines whether or not the message received by the reception unit includes a write command for writing the attribute information of the node and a read command for reading the attribute information of the node;
When the determination unit determines that both the write command and the read command are included in the message, the message received by the reception unit is changed to a message including the write command and a message including the read command. A division part to be divided into
A transmitting unit that transmits a plurality of messages divided by the dividing unit to the node;
A communication apparatus comprising:
前記送信部によって送信された複数の電文に対する応答を前記ノードから受信した場合に、受信した応答を結合する結合部をさらに具備し、
前記送信部は、前記結合部によって結合された応答を前記所定の装置に送信する、
請求項1〜3のいずれか一つに記載の通信装置。
And further comprising a combining unit that combines the received responses when receiving responses to the plurality of messages transmitted from the transmitting unit from the node,
The transmitting unit transmits the response combined by the combining unit to the predetermined device;
The communication apparatus as described in any one of Claims 1-3.
JP2013037892A 2013-02-27 2013-02-27 Communication device Expired - Fee Related JP5974931B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013037892A JP5974931B2 (en) 2013-02-27 2013-02-27 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013037892A JP5974931B2 (en) 2013-02-27 2013-02-27 Communication device

Publications (2)

Publication Number Publication Date
JP2014165883A true JP2014165883A (en) 2014-09-08
JP5974931B2 JP5974931B2 (en) 2016-08-23

Family

ID=51616068

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013037892A Expired - Fee Related JP5974931B2 (en) 2013-02-27 2013-02-27 Communication device

Country Status (1)

Country Link
JP (1) JP5974931B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016098321A1 (en) * 2014-12-16 2016-06-23 パナソニックIpマネジメント株式会社 Equipment management device, equipment management system and equipment management method
JP2016181796A (en) * 2015-03-24 2016-10-13 東芝ライテック株式会社 Control device, control system, and control method
JP2017005444A (en) * 2015-06-09 2017-01-05 東芝ライテック株式会社 Communication device, communication system and communication method
JP2017108291A (en) * 2015-12-09 2017-06-15 株式会社東芝 Gateway, request generation method, and computer program
JP2018068017A (en) * 2016-10-19 2018-04-26 株式会社日立製作所 Communication method, central control device, and individual control device
JP2020017992A (en) * 2019-10-02 2020-01-30 株式会社東芝 Gateway, request generation method and computer program
JP7384039B2 (en) 2020-01-08 2023-11-21 ブラザー工業株式会社 Terminal management processing program, terminal management device, and terminal management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06216968A (en) * 1993-01-14 1994-08-05 Matsushita Electric Ind Co Ltd Communication control system
JP2001285308A (en) * 2000-03-31 2001-10-12 Sharp Corp Communication system
JP2005222117A (en) * 2004-02-03 2005-08-18 Matsushita Electric Ind Co Ltd Information terminal device, and information processing method and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06216968A (en) * 1993-01-14 1994-08-05 Matsushita Electric Ind Co Ltd Communication control system
JP2001285308A (en) * 2000-03-31 2001-10-12 Sharp Corp Communication system
JP2005222117A (en) * 2004-02-03 2005-08-18 Matsushita Electric Ind Co Ltd Information terminal device, and information processing method and program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016098321A1 (en) * 2014-12-16 2016-06-23 パナソニックIpマネジメント株式会社 Equipment management device, equipment management system and equipment management method
JP2016181796A (en) * 2015-03-24 2016-10-13 東芝ライテック株式会社 Control device, control system, and control method
JP2017005444A (en) * 2015-06-09 2017-01-05 東芝ライテック株式会社 Communication device, communication system and communication method
JP2017108291A (en) * 2015-12-09 2017-06-15 株式会社東芝 Gateway, request generation method, and computer program
JP2018068017A (en) * 2016-10-19 2018-04-26 株式会社日立製作所 Communication method, central control device, and individual control device
WO2018074136A1 (en) * 2016-10-19 2018-04-26 株式会社日立製作所 Communication method, central control device and individual control device
US10877454B2 (en) 2016-10-19 2020-12-29 Hitachi, Ltd. Communication method, central control device and individual control device
JP2020017992A (en) * 2019-10-02 2020-01-30 株式会社東芝 Gateway, request generation method and computer program
JP7384039B2 (en) 2020-01-08 2023-11-21 ブラザー工業株式会社 Terminal management processing program, terminal management device, and terminal management system

Also Published As

Publication number Publication date
JP5974931B2 (en) 2016-08-23

Similar Documents

Publication Publication Date Title
JP5974931B2 (en) Communication device
US11825547B2 (en) System, method and apparatus for virtual building management
CN108141395B (en) Home automation system including cloud and home message queue synchronization and related methods
CN107615783B (en) Wireless provisioning and configuration of hardware elements of a home automation system
JP5865221B2 (en) Sensor data collection system and gateway control method
CN102763373B (en) The method and apparatus using the service of local network devices based on remote access
JP2018519761A (en) HA system including desired scene realization based on user selectable list of addressable home automation (HA) devices and related methods
JP2018525889A (en) Home automation system including device signature pairing and related methods
JP2018519762A (en) Home automation system including a security controller that terminates communication with an addressable device that operates abnormally and associated method
CN104243210A (en) Method and system for remotely having access to administrative web pages of routers
JP6085962B2 (en) Management apparatus and address management method
JP6425372B2 (en) Communication apparatus and communication method
CN105191231B (en) Gateway apparatus
JP5550595B2 (en) Engineering equipment
JP4635523B2 (en) POSITION INFORMATION SYSTEM AND DEVICE USED IN THE SYSTEM, CONCENTRATOR, AND DEVICE MANAGEMENT DEVICE
JP4515489B2 (en) Information management apparatus and information management method
JP5135422B2 (en) Gateway device
JP6776164B2 (en) Management equipment, management methods and programs
JP6390483B2 (en) Control device, control system, and control method
KR101961553B1 (en) Wireless-sensor automatic detection home automatation control device
JP6241532B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, CONTROL METHOD, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP6036593B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, CONTROL METHOD, COMMUNICATION METHOD, AND COMPUTER PROGRAM
CN110268680A (en) Method for interchanging data is applied between equipment and Virtual Ethernet in wireless PAN mesh network
US11962653B2 (en) Device monitoring method, device monitoring apparatus, and recording medium for transmitting messages containing device control commands based on predetermined conditions
JP7129663B2 (en) Communication system and communication method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150908

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20160301

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20160302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160613

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160704

R151 Written notification of patent or utility model registration

Ref document number: 5974931

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees