JP6618574B1 - Control device, communication system, and control program - Google Patents

Control device, communication system, and control program Download PDF

Info

Publication number
JP6618574B1
JP6618574B1 JP2018128556A JP2018128556A JP6618574B1 JP 6618574 B1 JP6618574 B1 JP 6618574B1 JP 2018128556 A JP2018128556 A JP 2018128556A JP 2018128556 A JP2018128556 A JP 2018128556A JP 6618574 B1 JP6618574 B1 JP 6618574B1
Authority
JP
Japan
Prior art keywords
message
control
unit
control target
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018128556A
Other languages
Japanese (ja)
Other versions
JP2020009072A (en
Inventor
田村 孝之
孝之 田村
良太 塚本
良太 塚本
優 小杉
優 小杉
健悟 笠
健悟 笠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2018128556A priority Critical patent/JP6618574B1/en
Application granted granted Critical
Publication of JP6618574B1 publication Critical patent/JP6618574B1/en
Publication of JP2020009072A publication Critical patent/JP2020009072A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

【課題】機器を制御するための電文を送信する際に、制御対象機器までの接続構成に柔軟に対応する。【解決手段】通信システム10は、機器11と、制御装置20とを備える。制御装置20が備える複数のモジュール31は、互いに異なる機種に対応しており、それぞれ対応する機種に応じた形式の電文を生成する機能を持っている。制御装置20の電文構築部34は、制御対象機器までの制御経路上に制御対象機器とは別の機器11がある場合、複数のモジュール31の中から、当該別の機器11の機種に対応するモジュール31を選択して利用することで、当該別の機器11を介して制御対象機器を制御するための電文を構築する。制御装置20の電文送信部35は、電文構築部34により構築された電文を送信する。【選択図】図1An object of the present invention is to flexibly cope with a connection configuration up to a device to be controlled when transmitting a message for controlling the device. A communication system includes a device and a control device. The plurality of modules 31 included in the control device 20 correspond to different models, and have a function of generating a message in a format corresponding to each corresponding model. When there is another device 11 other than the control target device on the control path to the control target device, the message construction unit 34 of the control device 20 corresponds to the model of the different device 11 from the plurality of modules 31. By selecting and using the module 31, a message for controlling the control target device via the other device 11 is constructed. The message transmission unit 35 of the control device 20 transmits the message constructed by the message construction unit 34. [Selection diagram] Fig. 1

Description

本発明は、制御装置、通信システムおよび制御プログラムに関するものである。   The present invention relates to a control device, a communication system, and a control program.

特許文献1には、1つのゲートウェイ装置に接続された1つのデバイスに情報を送信する際、当該1つのデバイスに対応する制御プロトコルの電文を含む、当該1つのゲートウェイ装置に対応する通信プロトコルの電文を生成して当該1つのゲートウェイ装置に送信する技術が記載されている。   In Patent Literature 1, when information is transmitted to one device connected to one gateway device, a communication protocol message corresponding to the one gateway device is included, including a control protocol message corresponding to the one device. Is generated and transmitted to the one gateway device.

特開2015−211342号公報Japanese Patent Laid-Open No. 2015-211342

機器の状態の見える化または遠隔からの制御を行うために、クラウドに様々な機器が接続されるとする。その場合、機器およびクラウド間の接続構成は直接接続またはゲートウェイ装置等を介した間接接続である。後者の構成において機器の制御を行うには、制御対象機器が解釈できる制御電文をゲートウェイ装置が中継することになる。ゲートウェイ装置の中継の際に、接続されている機器によって処理するネットワークレイヤが異なる可能性がある。   Assume that various devices are connected to the cloud in order to visualize the state of the devices or to perform remote control. In that case, the connection configuration between the device and the cloud is a direct connection or an indirect connection via a gateway device or the like. In order to control the device in the latter configuration, the gateway device relays a control message that can be interpreted by the device to be controlled. When relaying the gateway device, there is a possibility that the network layer to be processed differs depending on the connected device.

制御対象機器までの経路に複数の中継機器が存在する構成、すなわち、中継機器が多段に接続された構成の場合、クラウド環境または各中継機器は、制御対象機器までの接続構成に応じた制御電文構築ロジックを持つ必要があり、システム個別対応が必要になる。   In a configuration in which multiple relay devices exist on the route to the controlled device, that is, in a configuration in which the relay devices are connected in multiple stages, the cloud environment or each relay device has a control message corresponding to the connection configuration to the controlled device. It is necessary to have construction logic, and it is necessary to deal with individual systems.

特許文献1に記載の技術では、中継機器が多段に接続された構成に対応できない。   The technique described in Patent Literature 1 cannot support a configuration in which relay devices are connected in multiple stages.

本発明は、機器を制御するための電文を送信する際に、制御対象機器までの接続構成に柔軟に対応することを目的とする。   An object of the present invention is to flexibly cope with a connection configuration to a control target device when a message for controlling the device is transmitted.

本発明の一態様に係る制御装置は、
それぞれ対応する機種に応じた形式の電文を生成する機能を持ち、互いに異なる機種に対応する複数のモジュールと、
制御対象機器までの制御経路上に前記制御対象機器とは別の機器がある場合、前記複数のモジュールの中から、前記別の機器の機種に対応するモジュールを選択して利用することで、前記別の機器を介して前記制御対象機器を制御するための電文を構築する電文構築部と、
前記電文構築部により構築された電文を送信する電文送信部と
を備える。
A control device according to one aspect of the present invention includes:
Each module has a function to generate a message in a format corresponding to the corresponding model, multiple modules corresponding to different models,
When there is a device other than the control target device on the control path to the control target device, by selecting and using a module corresponding to the model of the other device from the plurality of modules, A message construction unit that constructs a message for controlling the control target device via another device;
A message transmission unit that transmits the message constructed by the message construction unit.

本発明では、制御対象機器までの制御経路上に制御対象機器とは別の機器がある場合、複数のモジュールの中から、当該別の機器の機種に対応するモジュールを選択して利用することで、当該別の機器を介して制御対象機器を制御するための電文が構築される。そのため、本発明によれば、制御対象機器までの接続構成に柔軟に対応することができる。   In the present invention, when there is a device different from the control target device on the control path to the control target device, a module corresponding to the model of the other device is selected and used from a plurality of modules. Then, a message for controlling the control target device is constructed via the other device. Therefore, according to the present invention, it is possible to flexibly cope with the connection configuration up to the control target device.

実施の形態1に係る通信システムの構成を示すブロック図。1 is a block diagram illustrating a configuration of a communication system according to Embodiment 1. FIG. 実施の形態1に係る制御装置が備えるデータベースのテーブルの例を示す表。4 is a table showing an example of a database table provided in the control device according to the first embodiment. 実施の形態1に係る制御装置の動作を示すフローチャート。3 is a flowchart showing the operation of the control device according to the first embodiment. 実施の形態1に係る電文の例を示す図。FIG. 3 is a diagram illustrating an example of a message according to the first embodiment. 実施の形態1の変形例に係る通信システムの構成を示すブロック図。FIG. 3 is a block diagram showing a configuration of a communication system according to a modification of the first embodiment. 実施の形態2に係る制御装置が備えるデータベースのテーブルの例を示す表。The table | surface which shows the example of the table of the database with which the control apparatus which concerns on Embodiment 2 is provided. 実施の形態2に係る制御装置の動作を示すフローチャート。6 is a flowchart showing an operation of a control device according to the second embodiment. 実施の形態2に係る電文の例を示す図。FIG. 10 is a diagram illustrating an example of a message according to the second embodiment. 実施の形態3に係る通信システムの構成を示すブロック図。FIG. 4 is a block diagram illustrating a configuration of a communication system according to a third embodiment. 実施の形態3に係る制御装置が備えるデータベースのテーブルの例を示す表。The table | surface which shows the example of the table of the database with which the control apparatus which concerns on Embodiment 3 is provided. 実施の形態3に係る制御装置の動作を示すフローチャート。10 is a flowchart showing the operation of the control device according to the third embodiment. 実施の形態4に係る通信システムの構成を示すブロック図。FIG. 6 is a block diagram illustrating a configuration of a communication system according to a fourth embodiment.

以下、本発明の実施の形態について、図を用いて説明する。各図中、同一または相当する部分には、同一符号を付している。実施の形態の説明において、同一または相当する部分については、説明を適宜省略または簡略化する。なお、本発明は、以下に説明する実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。例えば、以下に説明する実施の形態のうち、2つ以上の実施の形態が組み合わせられて実施されても構わない。あるいは、以下に説明する実施の形態のうち、1つの実施の形態または2つ以上の実施の形態の組み合わせが部分的に実施されても構わない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals. In the description of the embodiments, the description of the same or corresponding parts will be omitted or simplified as appropriate. The present invention is not limited to the embodiments described below, and various modifications can be made as necessary. For example, two or more embodiments among the embodiments described below may be combined and executed. Alternatively, among the embodiments described below, one embodiment or a combination of two or more embodiments may be partially implemented.

実施の形態1.
本実施の形態について、図1から図4を用いて説明する。
Embodiment 1 FIG.
This embodiment will be described with reference to FIGS.

***構成の説明***
図1を参照して、本実施の形態に係る通信システム10の構成を説明する。
*** Explanation of configuration ***
With reference to FIG. 1, the structure of the communication system 10 which concerns on this Embodiment is demonstrated.

通信システム10は、機器11と、制御装置20とを備える。   The communication system 10 includes a device 11 and a control device 20.

機器11は、インターネット等のネットワークを介して制御装置20と接続される。本実施の形態では、機器A1、機器B1、機器B2、機器C1および機器C2といった機器11によってフィールド環境が構築され、制御装置20によってクラウド環境が構築される。   The device 11 is connected to the control device 20 via a network such as the Internet. In the present embodiment, a field environment is constructed by the devices 11 such as the device A1, the device B1, the device B2, the device C1, and the device C2, and the cloud environment is constructed by the control device 20.

クラウド環境においてアプリケーション50からの機器11に対する制御要求が受け付けられると、制御装置20により制御用の電文が生成されてフィールド環境へ送信される。機器A1のように、フィールド環境において送信される電文に対応する制御経路上に1つの機器11しかなければ、その機器11に電文が直接送信される。機器B1および機器B2のように、フィールド環境において送信される電文に対応する制御経路上に2つ以上の機器11があれば、制御経路上で制御装置20の隣の機器11に電文が送信され、その後、制御経路上の末端の機器11まで電文が順番に転送されていく。   When a control request for the device 11 from the application 50 is received in the cloud environment, a control message is generated by the control device 20 and transmitted to the field environment. If there is only one device 11 on the control path corresponding to the message transmitted in the field environment like the device A1, the message is directly transmitted to the device 11. If there are two or more devices 11 on the control path corresponding to the message transmitted in the field environment like the devices B1 and B2, the message is transmitted to the device 11 adjacent to the control device 20 on the control path. Thereafter, the messages are sequentially transferred to the terminal device 11 on the control path.

制御装置20は、コンピュータである。制御装置20は、プロセッサ21を備えるとともに、メモリ22および通信デバイス23といった他のハードウェアを備える。プロセッサ21は、信号線を介して他のハードウェアと接続され、これら他のハードウェアを制御する。   The control device 20 is a computer. The control device 20 includes a processor 21 and other hardware such as a memory 22 and a communication device 23. The processor 21 is connected to other hardware via a signal line, and controls these other hardware.

制御装置20は、機能要素として、複数のモジュール31と、要求受付部32と、構成解決部33と、電文構築部34と、電文送信部35とを備える。複数のモジュール31、要求受付部32、構成解決部33および電文構築部34の機能は、ソフトウェアにより実現される。具体的には、複数のモジュール31、要求受付部32、構成解決部33および電文構築部34の機能は、制御プログラムにより実現される。制御プログラムは、それぞれソフトウェア部品である複数のモジュール31を含むとともに、要求受付部32、構成解決部33および電文構築部34により行われる処理をそれぞれ要求受付処理、構成解決処理および電文構築処理としてコンピュータに実行させるプログラムである。制御プログラムは、コンピュータ読取可能な媒体に記録されて提供されてもよいし、記録媒体に格納されて提供されてもよいし、プログラムプロダクトとして提供されてもよい。電文送信部35の機能は、通信デバイス23により実現される。具体的には、電文送信部35の機能は、後述するトランスミッタにより実現される。   The control device 20 includes a plurality of modules 31, a request reception unit 32, a configuration solution unit 33, a message construction unit 34, and a message transmission unit 35 as functional elements. The functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, and the message construction unit 34 are realized by software. Specifically, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, and the message construction unit 34 are realized by a control program. The control program includes a plurality of modules 31 each being a software component, and the processing performed by the request receiving unit 32, the configuration solving unit 33, and the message building unit 34 is a computer as a request receiving process, a configuration solving process, and a message building process This is a program to be executed. The control program may be provided by being recorded on a computer-readable medium, may be provided by being stored in a recording medium, or may be provided as a program product. The function of the message transmission unit 35 is realized by the communication device 23. Specifically, the function of the message transmission unit 35 is realized by a transmitter described later.

プロセッサ21は、制御プログラムを実行する装置である。プロセッサ21は、例えば、CPUである。「CPU」は、Central Processing Unitの略語である。   The processor 21 is a device that executes a control program. The processor 21 is, for example, a CPU. “CPU” is an abbreviation for Central Processing Unit.

メモリ22は、制御プログラムをあらかじめまたは一時的に記憶する装置である。メモリ22は、例えば、RAM、フラッシュメモリまたはこれらの組み合わせである。「RAM」は、Random Access Memoryの略語である。メモリ22には、データベース24が構築されている。データベース24には、制御経路の機器構成を定義する構成情報41が格納されている。   The memory 22 is a device that stores a control program in advance or temporarily. The memory 22 is, for example, a RAM, a flash memory, or a combination thereof. “RAM” is an abbreviation for Random Access Memory. A database 24 is constructed in the memory 22. The database 24 stores configuration information 41 that defines the device configuration of the control path.

通信デバイス23は、制御プログラムに入力されるデータを受信するレシーバと、制御プログラムから出力されるデータを送信するトランスミッタとを備える。通信デバイス23は、例えば、通信チップまたはNICである。「NIC」は、Network Interface Cardの略語である。   The communication device 23 includes a receiver that receives data input to the control program and a transmitter that transmits data output from the control program. The communication device 23 is, for example, a communication chip or a NIC. “NIC” is an abbreviation for Network Interface Card.

制御プログラムは、メモリ22からプロセッサ21に読み込まれ、プロセッサ21によって実行される。メモリ22には、制御プログラムだけでなく、OSも記憶されている。「OS」は、Operating Systemの略語である。プロセッサ21は、OSを実行しながら、制御プログラムを実行する。なお、制御プログラムの一部または全部がOSに組み込まれていてもよい。   The control program is read from the memory 22 into the processor 21 and executed by the processor 21. The memory 22 stores not only the control program but also the OS. “OS” is an abbreviation for Operating System. The processor 21 executes the control program while executing the OS. Part or all of the control program may be incorporated in the OS.

制御プログラムおよびOSは、補助記憶装置に記憶されていてもよい。補助記憶装置は、例えば、HDD、フラッシュメモリまたはこれらの組み合わせである。「HDD」は、Hard Disk Driveの略語である。制御プログラムおよびOSは、補助記憶装置に記憶されている場合、メモリ22にロードされ、プロセッサ21によって実行される。   The control program and the OS may be stored in the auxiliary storage device. The auxiliary storage device is, for example, an HDD, a flash memory, or a combination thereof. “HDD” is an abbreviation for Hard Disk Drive. When the control program and the OS are stored in the auxiliary storage device, they are loaded into the memory 22 and executed by the processor 21.

データベース24は、補助記憶装置に構築されていてもよい。   The database 24 may be constructed in an auxiliary storage device.

制御装置20は、プロセッサ21を代替する複数のプロセッサを備えていてもよい。これら複数のプロセッサは、制御プログラムの実行を分担する。それぞれのプロセッサは、例えば、CPUである。   The control device 20 may include a plurality of processors that replace the processor 21. The plurality of processors share the execution of the control program. Each processor is, for example, a CPU.

制御プログラムにより利用、処理または出力されるデータ、情報、信号値および変数値は、メモリ22、補助記憶装置、または、プロセッサ21内のレジスタまたはキャッシュメモリに記憶される。   Data, information, signal values and variable values used, processed or output by the control program are stored in the memory 22, the auxiliary storage device, or a register or cache memory in the processor 21.

制御装置20は、1台のコンピュータで構成されていてもよいし、複数台のコンピュータで構成されていてもよい。制御装置20が複数台のコンピュータで構成されている場合は、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および電文送信部35の機能が、各コンピュータに分散されて実現されてもよい。   The control device 20 may be composed of a single computer or a plurality of computers. When the control device 20 is configured by a plurality of computers, the functions of the plurality of modules 31, the request reception unit 32, the configuration resolution unit 33, the message construction unit 34, and the message transmission unit 35 are distributed to each computer. It may be realized.

図2を参照して、データベース24のテーブルの例を説明する。   An example of a table in the database 24 will be described with reference to FIG.

本実施の形態では、構成情報41は、テーブル形式でデータベース24に格納されている。具体的には、構成情報41は、「機器ID」、「親機器ID」および「機種」といったカラムで構成されたテーブルとしてデータベース24にあらかじめ格納されている。「ID」は、Identifierの略語である。「機器ID」は、機器11の識別子である。「親機器ID」は、「機器ID」の機器11の親機器、すなわち、制御経路上で「機器ID」の機器11から制御装置20の側に1台分遡った位置にある機器11の識別子である。「機種」は、「機器ID」の機器11の機種である。   In the present embodiment, the configuration information 41 is stored in the database 24 in a table format. Specifically, the configuration information 41 is stored in advance in the database 24 as a table configured with columns such as “device ID”, “parent device ID”, and “model”. “ID” is an abbreviation for Identifier. “Device ID” is an identifier of the device 11. The “parent device ID” is the identifier of the parent device of the device 11 with the “device ID”, that is, the device 11 at a position one device back from the device 11 with the “device ID” on the control path toward the control device 20 It is. “Model” is the model of the device 11 of “device ID”.

図2の例では、機器A1は、テレビであり、制御装置20に直接接続されている。機器B1は、ゲートウェイ装置であり、制御装置20に直接接続されている。機器B2は、テレビであり、機器B1を介して制御装置20に接続されている。機器C1は、ゲートウェイ装置であり、制御装置20に直接接続されている。機器C2は、機器C1とは異なる機種のゲートウェイ装置であり、機器C1を介して制御装置20に接続されている。機器C3は、テレビであり、機器C2および機器C1を介して制御装置20に接続されている。   In the example of FIG. 2, the device A1 is a television and is directly connected to the control device 20. The device B1 is a gateway device and is directly connected to the control device 20. The device B2 is a television and is connected to the control device 20 via the device B1. The device C1 is a gateway device and is directly connected to the control device 20. The device C2 is a gateway device of a different model from the device C1, and is connected to the control device 20 via the device C1. The device C3 is a television and is connected to the control device 20 via the device C2 and the device C1.

制御装置20が備える複数のモジュール31は、互いに異なる機種に対応しており、それぞれ対応する機種に応じた形式の電文を生成する機能を持っている。図2の例では、制御装置20は、テレビに対応するモジュール31、ゲートウェイ装置に対応するモジュール31および別のゲートウェイ装置に対応するモジュール31といった少なくとも3つのモジュール31を備えている。   The plurality of modules 31 included in the control device 20 correspond to different models, and each has a function of generating a message in a format corresponding to the corresponding model. In the example of FIG. 2, the control device 20 includes at least three modules 31 such as a module 31 corresponding to a television, a module 31 corresponding to a gateway device, and a module 31 corresponding to another gateway device.

***動作の説明***
図3を参照して、本実施の形態に係る制御装置20の動作を説明する。制御装置20の動作は、本実施の形態に係る制御方法に相当する。
*** Explanation of operation ***
With reference to FIG. 3, the operation of the control device 20 according to the present embodiment will be described. The operation of the control device 20 corresponds to the control method according to the present embodiment.

ステップS101において、要求受付部32は、アプリケーション50からの制御要求を受け付ける。この制御要求には、制御対象機器の機器IDと、制御コマンドと、制御パラメータとが含まれている。   In step S <b> 101, the request reception unit 32 receives a control request from the application 50. This control request includes the device ID of the device to be controlled, a control command, and a control parameter.

ステップS102において、構成解決部33は、データベース24にある構成情報41を取得する。図2の例のように、構成情報41には、制御対象機器の機種と、クラウド環境から制御対象機器までの中継機器の機器IDおよびその機種とを示す情報が含まれている。図2の例では、機器A1、機器B2および機器C3が制御対象機器に該当し、機器B1、機器C1および機器C2が中継機器に該当する。   In step S <b> 102, the configuration resolution unit 33 acquires configuration information 41 in the database 24. As in the example of FIG. 2, the configuration information 41 includes information indicating the model of the control target device, the device ID of the relay device from the cloud environment to the control target device, and the model. In the example of FIG. 2, the device A1, the device B2, and the device C3 correspond to control target devices, and the device B1, the device C1, and the device C2 correspond to relay devices.

具体的には、ステップS102において、構成解決部33は、ステップS101で受け付けられた制御要求に含まれる機器IDでデータベース24を検索することで、制御経路の機器構成を特定する。   Specifically, in step S102, the configuration resolution unit 33 specifies the device configuration of the control path by searching the database 24 with the device ID included in the control request received in step S101.

ステップS103からステップS107において、電文構築部34は、制御対象機器までの制御経路上に制御対象機器とは別の機器11がある場合、複数のモジュール31の中から、当該別の機器11の機種に対応するモジュール31を選択して利用することで、当該別の機器11を介して制御対象機器を制御するための電文を構築する。電文構築部34は、特に、制御対象機器を制御する電文が制御装置20で得られる場合、得られた電文を含み、その電文を制御経路上で制御対象機器まで順番に転送させるための電文を、当該別の機器11を介して制御対象機器を制御するための電文として構築する。本実施の形態では、電文構築部34は、個別のモジュール31を使い、制御対象機器からクラウド環境へ遡る順で電文を生成し、生成した電文を組み合わせて入れ子構造の電文を構築する。なお、電文構築部34により構築される電文の構造は、入れ子構造でなくてもよく、制御対象機器を制御する電文を制御経路上で順番に転送することができるようなものであればよい。電文構築部34は、制御経路上に制御対象機器しかない場合は、単に、制御対象機器を制御する電文を構築する。   In steps S <b> 103 to S <b> 107, when there is a device 11 other than the control target device on the control path to the control target device, the message construction unit 34 selects the model of the other device 11 from the plurality of modules 31. By selecting and using the module 31 corresponding to, a message for controlling the control target device is constructed via the other device 11. The message construction unit 34 includes, in particular, a message for controlling the device to be controlled obtained by the control device 20, and includes a message for sequentially transferring the message to the device to be controlled on the control path. Then, it is constructed as a message for controlling the control target device via the other device 11. In the present embodiment, the message construction unit 34 uses the individual modules 31 to generate messages in the order that goes back to the cloud environment from the control target device, and constructs a nested structure message by combining the generated messages. Note that the structure of the message constructed by the message construction unit 34 does not have to be a nested structure, as long as the message for controlling the control target device can be sequentially transferred on the control path. When there is only a control target device on the control path, the telegram construction unit 34 simply constructs a telegram for controlling the control target device.

具体的には、ステップS103において、電文構築部34は、ステップS102で特定された機器構成に含まれる制御対象機器を選択する。ステップS102で特定された機器構成に1つの機器11しか含まれていない場合は、その機器11が制御対象機器である。ステップS102で特定された機器構成に複数の機器11が含まれている場合は、それら複数の機器11からなる制御経路上の末端の機器11が制御対象機器である。ステップS104において、電文構築部34は、ステップS103で選択した機器11の機種に対応するモジュール31に、ステップS101で受け付けられた制御要求に含まれる制御コマンドと制御パラメータとを入力して制御電文を生成する。ステップS105において、電文構築部34は、ステップS102で特定された機器構成に、ステップS103で選択した機器11の上位の機器11、すなわち、親機器が含まれているかどうかを確認する。親機器が含まれていなければ、ステップS108の処理が行われる。親機器が含まれていれば、ステップS106において、電文構築部34は、親機器を選択する。ステップS107において、電文構築部34は、ステップS106で選択した機器11の機種に対応するモジュール31に、中継用の制御コマンドと中継用の制御パラメータとを入力して中継電文を生成する。中継用の制御コマンドとは、直前のステップS106で選択した機器11が制御対象機器の親機器であれば、ステップS104で生成した制御電文を転送することを命令するコマンドのことであり、直前のステップS106で選択した機器11が制御対象機器以外の機器11の親機器であれば、直前のステップS107で生成した中継電文を転送することを命令するコマンドのことである。中継用の制御パラメータには、中継機器の機器IDと、ステップS104で生成した制御電文または直前のステップS107で生成した中継電文とが含まれる。再びステップS105において、電文構築部34は、ステップS102で特定された機器構成に、直前のステップS106で選択した機器11の親機器が含まれているかどうかを確認する。親機器が含まれていなければ、ステップS108の処理が行われる。親機器が含まれていれば、再びステップS106において、電文構築部34は、親機器を選択する。その後、ステップS107以降の処理が再び行われる。   Specifically, in step S103, the message construction unit 34 selects a control target device included in the device configuration specified in step S102. When only one device 11 is included in the device configuration specified in step S102, the device 11 is a control target device. When the plurality of devices 11 are included in the device configuration specified in step S102, the terminal device 11 on the control path composed of the plurality of devices 11 is the control target device. In step S104, the message construction unit 34 inputs the control command and the control parameter included in the control request received in step S101 to the module 31 corresponding to the model of the device 11 selected in step S103, and generates a control message. Generate. In step S105, the message construction unit 34 checks whether the device configuration identified in step S102 includes the higher-level device 11 of the device 11 selected in step S103, that is, the parent device. If the parent device is not included, the process of step S108 is performed. If the parent device is included, in step S106, the message construction unit 34 selects the parent device. In step S107, the message construction unit 34 generates a relay message by inputting the relay control command and the relay control parameter to the module 31 corresponding to the model of the device 11 selected in step S106. The relay control command is a command for instructing to transfer the control message generated in step S104 if the device 11 selected in the immediately preceding step S106 is a parent device of the control target device. If the device 11 selected in step S106 is a parent device of the device 11 other than the device to be controlled, it is a command for instructing to transfer the relay message generated in the immediately preceding step S107. The relay control parameters include the device ID of the relay device and the control message generated in step S104 or the relay message generated in the immediately preceding step S107. In step S105 again, the message construction unit 34 checks whether the device configuration specified in step S102 includes the parent device of the device 11 selected in the immediately preceding step S106. If the parent device is not included, the process of step S108 is performed. If the parent device is included, in step S106, the message construction unit 34 selects the parent device again. Thereafter, the processing after step S107 is performed again.

このように、本実施の形態では、電文構築部34は、ステップS104において、複数のモジュール31の中から、制御対象機器の機種に対応するモジュール31を選択して利用することで、第1電文を生成する。第1電文は、制御対象機器を制御する電文である。なお、第1電文がモジュール31を利用して生成されることは必須ではない。第1電文は、制御装置20で得られる代わりに、制御装置20の外部から与えられてもよい。   As described above, in the present embodiment, the message construction unit 34 selects and uses the module 31 corresponding to the model of the control target device from the plurality of modules 31 in step S <b> 104. Is generated. The first message is a message that controls the device to be controlled. Note that it is not essential that the first message is generated using the module 31. The first electronic message may be given from the outside of the control device 20 instead of being obtained by the control device 20.

nを2以上の整数として、制御経路上に制御対象機器を含めてn個の機器11があるとする。制御対象機器を1番目の機器11として制御経路上でi番目の機器11に転送される電文を第i電文とする。この場合、本実施の形態では、電文構築部34は、ステップS105からステップS107において、複数のモジュール31の中から、制御経路上でi+1番目の機器11の機種に対応するモジュール31を選択して利用することで、第i+1電文を生成する。第i+1電文は、第i電文を含み、第i電文をi番目の機器11に転送することをi+1番目の機器11に命令する電文である。電文構築部34は、iを1からn−1になるまで1ずつインクリメントして得られる第n電文を前述した入れ子構造の電文として構築する。   It is assumed that n is an integer of 2 or more and there are n devices 11 including control target devices on the control path. A message transferred to the i-th device 11 on the control path with the control target device as the first device 11 is defined as an i-th message. In this case, in this embodiment, the message construction unit 34 selects the module 31 corresponding to the model of the i + 1th device 11 on the control path from the plurality of modules 31 in steps S105 to S107. By using this, the (i + 1) th electronic message is generated. The (i + 1) th message is a message that includes the ith message and instructs the (i + 1) th device 11 to transfer the ith message to the ith device 11. The message construction unit 34 constructs the n-th message obtained by incrementing i by 1 from 1 to n-1 as the nested message described above.

ステップS108において、電文送信部35は、電文構築部34により構築された電文を送信する。すなわち、電文送信部35は、電文をクラウド環境から直接接続される中継機器または制御対象機器へ送信する。   In step S108, the message transmission unit 35 transmits the message constructed by the message construction unit 34. That is, the message transmission unit 35 transmits the message to the relay device or the control target device that is directly connected from the cloud environment.

図2の例を用いて、制御装置20の動作の具体例を説明する。   A specific example of the operation of the control device 20 will be described using the example of FIG.

ステップS101において、機器B2の機器IDと、機器B2の電源オンを命令するための制御コマンドおよび制御パラメータとを含む要求が要求受付部32により受け付けられたとする。   In step S101, it is assumed that the request reception unit 32 receives a request including the device ID of the device B2 and a control command and a control parameter for instructing to turn on the device B2.

ステップS102において、構成解決部33は、機器B2の機器IDでデータベース24を検索することで、機器B2を制御経路上の末端の機器11である制御対象機器、機器B1を制御経路上の、制御対象機器とは別の機器11である中継機器として特定する。制御経路上にある機器11の数は2個である。すなわち、この例では、n=2である。機器B2を制御経路上で1番目の機器11とすると、機器B1は制御経路上で2番目の機器11である。構成解決部33は、機器B2の機種がテレビであり、機器B1の機種がゲートウェイ装置であることも認識する。   In step S102, the configuration resolution unit 33 searches the database 24 using the device ID of the device B2, thereby controlling the device B2 as a control target device that is the terminal device 11 on the control path, and controlling the device B1 as a control path. The relay device is specified as a device 11 that is different from the target device. The number of devices 11 on the control path is two. That is, in this example, n = 2. If the device B2 is the first device 11 on the control path, the device B1 is the second device 11 on the control path. The configuration resolution unit 33 also recognizes that the device B2 is a television and the device B1 is a gateway device.

ステップS103において、電文構築部34は、機器B2を選択する。ステップS104において、電文構築部34は、複数のモジュール31の中から、機器B2の機種であるテレビに対応するモジュール31を選択して利用することで、機器B2に電源オンを命令する第1電文を生成する。第1電文は、例えば、図4に示すような信号データである。ステップS105において、機器B2の親機器として機器B1が存在するため、ステップS106において、電文構築部34は、機器B1を選択する。ステップS107において、電文構築部34は、複数のモジュール31の中から、機器B1の機種であるゲートウェイ装置に対応するモジュール31を選択して利用することで、第1電文を含み、第1電文を機器B2に転送することを機器B1に命令する第2電文を生成する。第2電文は、例えば、図4に示すようなHTTPメッセージである。「HTTP」は、Hypertext Transfer Protocolの略語である。ステップS105において、機器B1の親機器は存在しないため、ステップS108において、電文送信部35は、第2電文を機器B1に送信する。   In step S103, the message construction unit 34 selects the device B2. In step S104, the message construction unit 34 selects and uses the module 31 corresponding to the television, which is the model of the device B2, from among the plurality of modules 31, thereby instructing the device B2 to turn on the power. Is generated. The first telegram is, for example, signal data as shown in FIG. In step S105, since the device B1 exists as the parent device of the device B2, in step S106, the message construction unit 34 selects the device B1. In step S107, the message construction unit 34 selects and uses the module 31 corresponding to the gateway device that is the model of the device B1 from among the plurality of modules 31, thereby including the first message and including the first message. A second telegram that instructs the device B1 to transfer to the device B2 is generated. The second message is, for example, an HTTP message as shown in FIG. “HTTP” is an abbreviation for Hypertext Transfer Protocol. In step S105, since the parent device of the device B1 does not exist, in step S108, the message transmission unit 35 transmits the second message to the device B1.

機器B1は、第2電文から第1電文を取り出すとともに、第2電文の命令に従って第1電文を機器B2に転送する。機器B2は、第1電文の命令に従って電源オンとなる。   The device B1 extracts the first message from the second message, and transfers the first message to the device B2 in accordance with the second message command. The device B2 is powered on in accordance with the first telegram command.

なお、制御装置20は、制御経路上のいずれかの機器11から応答が送信された場合には、その応答を適宜加工した上でアプリケーション50に出力する。   When a response is transmitted from any device 11 on the control path, the control device 20 processes the response as appropriate and outputs the response to the application 50.

***実施の形態の効果の説明***
本実施の形態では、制御対象機器までの制御経路上に制御対象機器とは別の機器11がある場合、複数のモジュール31の中から、当該別の機器11の機種に対応するモジュール31を選択して利用することで、当該別の機器11を介して制御対象機器を制御するための電文が構築される。そのため、本実施の形態によれば、制御対象機器までの接続構成に柔軟に対応することができる。
*** Explanation of the effect of the embodiment ***
In the present embodiment, when there is a device 11 different from the control target device on the control path to the control target device, the module 31 corresponding to the model of the other device 11 is selected from the plurality of modules 31. Thus, a telegram for controlling the control target device is constructed via the other device 11. Therefore, according to this Embodiment, it can respond flexibly to the connection structure to a control object apparatus.

***他の構成***
本実施の形態では、複数のモジュール31、要求受付部32、構成解決部33および電文構築部34の機能がソフトウェアにより実現されるが、変形例として、複数のモジュール31、要求受付部32、構成解決部33および電文構築部34の機能がハードウェアにより実現されてもよい。この変形例について、主に本実施の形態との差異を説明する。
*** Other configurations ***
In the present embodiment, the functions of the plurality of modules 31, the request reception unit 32, the configuration resolution unit 33, and the message construction unit 34 are realized by software. However, as a modification, the plurality of modules 31, the request reception unit 32, the configuration The functions of the resolution unit 33 and the message construction unit 34 may be realized by hardware. About this modification, the difference with this Embodiment is mainly demonstrated.

図5を参照して、本実施の形態の変形例に係る制御装置20の構成を説明する。   With reference to FIG. 5, the structure of the control apparatus 20 which concerns on the modification of this Embodiment is demonstrated.

制御装置20は、電子回路27および通信デバイス23といったハードウェアを備える。   The control device 20 includes hardware such as an electronic circuit 27 and a communication device 23.

電子回路27は、それぞれハードウェア部品である複数のモジュール31を含むとともに、要求受付部32、構成解決部33および電文構築部34の機能を実現する専用のハードウェアである。電子回路27は、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ロジックIC、GA、FPGA、ASIC、または、これらのうちいくつか、もしくは、すべての組み合わせである。「IC」は、Integrated Circuitの略語である。「GA」は、Gate Arrayの略語である。「FPGA」は、Field−Programmable Gate Arrayの略語である。「ASIC」は、Application Specific Integrated Circuitの略語である。   The electronic circuit 27 includes a plurality of modules 31 each of which is a hardware component, and is dedicated hardware for realizing the functions of the request receiving unit 32, the configuration solution unit 33, and the message construction unit 34. The electronic circuit 27 is, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a logic IC, a GA, an FPGA, an ASIC, or some or all of these. “IC” is an abbreviation for Integrated Circuit. “GA” is an abbreviation for Gate Array. “FPGA” is an abbreviation for Field-Programmable Gate Array. “ASIC” is an abbreviation for Application Specific Integrated Circuit.

制御装置20は、電子回路27を代替する複数の電子回路を備えていてもよい。これら複数の電子回路は、複数のモジュール31を含むとともに、全体として要求受付部32、構成解決部33および電文構築部34の機能を実現する。それぞれの電子回路は、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ロジックIC、GA、FPGA、ASIC、または、これらのうちいくつか、もしくは、すべての組み合わせである。   The control device 20 may include a plurality of electronic circuits that replace the electronic circuit 27. The plurality of electronic circuits includes a plurality of modules 31 and realizes the functions of the request reception unit 32, the configuration solution unit 33, and the message construction unit 34 as a whole. Each electronic circuit is, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a logic IC, a GA, an FPGA, an ASIC, or some or all of these combinations .

別の変形例として、複数のモジュール31、要求受付部32、構成解決部33および電文構築部34の機能がソフトウェアとハードウェアとの組み合わせにより実現されてもよい。すなわち、複数のモジュール31がそれぞれハードウェア部品またはソフトウェア部品であり、要求受付部32、構成解決部33および電文構築部34の機能の一部が専用のハードウェアにより実現され、残りがソフトウェアにより実現されてもよい。   As another modification, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, and the message construction unit 34 may be realized by a combination of software and hardware. In other words, each of the plurality of modules 31 is a hardware component or a software component, and some of the functions of the request reception unit 32, the configuration solution unit 33, and the message construction unit 34 are realized by dedicated hardware, and the rest are realized by software. May be.

プロセッサ21および電子回路27は、いずれも処理回路である。すなわち、制御装置20の構成が図1および図5のいずれに示した構成であっても、複数のモジュール31、要求受付部32、構成解決部33および電文構築部34の動作は、処理回路により行われる。   The processor 21 and the electronic circuit 27 are both processing circuits. That is, regardless of the configuration of the control device 20 shown in FIGS. 1 and 5, the operations of the plurality of modules 31, the request reception unit 32, the configuration resolution unit 33, and the message construction unit 34 are performed by the processing circuit. Done.

実施の形態2.
本実施の形態について、主に実施の形態1との差異を、図6から図8を用いて説明する。
Embodiment 2. FIG.
The difference between the present embodiment and the first embodiment will be mainly described with reference to FIGS.

***構成の説明***
本実施の形態に係る制御装置20の構成については、図1に示した実施の形態1に係る制御装置20のものと同じであるため、説明を省略する。
*** Explanation of configuration ***
The configuration of the control device 20 according to the present embodiment is the same as that of the control device 20 according to the first embodiment shown in FIG.

なお、本実施の形態では、機器D1および機器D2といった機器11によってフィールド環境が構築され、制御装置20によってクラウド環境が構築される。   In the present embodiment, a field environment is constructed by the devices 11 such as the device D1 and the device D2, and a cloud environment is constructed by the control device 20.

図6を参照して、データベース24のテーブルの例を説明する。   An example of a table in the database 24 will be described with reference to FIG.

本実施の形態では、構成情報41は、「機器ID」、「親機器ID」、「機種」および「中継用コマンド」といったカラムで構成されたテーブルとしてデータベース24にあらかじめ格納されている。「機器ID」、「親機器ID」および「機種」については、図2に示した実施の形態1に係る構成情報41のものと同じであるため、説明を省略する。「中継用コマンド」は、「機器ID」の機器11の親機器が「機器ID」の機器11に送信される電文を生成する必要のある制御コマンドである。   In the present embodiment, the configuration information 41 is stored in advance in the database 24 as a table composed of columns such as “device ID”, “parent device ID”, “model”, and “relay command”. The “device ID”, “parent device ID”, and “model” are the same as those of the configuration information 41 according to the first embodiment shown in FIG. The “relay command” is a control command that requires the parent device of the device 11 having the “device ID” to generate a message to be transmitted to the device 11 having the “device ID”.

図6の例では、機器D1は、コントローラであり、制御装置20に直接接続されている。機器D2は、スマートメータであり、機器D1を介して制御装置20に接続されている。機器D2に電源オンまたは電源オフを命令する電文は、制御装置20では生成されず、機器D1で生成されることになっている。   In the example of FIG. 6, the device D <b> 1 is a controller and is directly connected to the control device 20. The device D2 is a smart meter and is connected to the control device 20 via the device D1. The message that instructs the device D2 to turn on or off the power is not generated by the control device 20, but is generated by the device D1.

図6の例では、制御装置20は、コントローラに対応するモジュール31を備えているが、スマートメータに対応するモジュール31は備えていない。なお、制御装置20は、スマートメータに対応するモジュール31を備えていてもよいが、そのモジュール31は、電源オンを命令する電文を生成したり、電源オフを命令する電文を生成したりする機能を持っている必要はない。   In the example of FIG. 6, the control device 20 includes the module 31 corresponding to the controller, but does not include the module 31 corresponding to the smart meter. The control device 20 may include a module 31 corresponding to the smart meter, but the module 31 generates a message for instructing power-on or a message for instructing power-off. There is no need to have.

***動作の説明***
図7を参照して、本実施の形態に係る制御装置20の動作を説明する。制御装置20の動作は、本実施の形態に係る制御方法に相当する。
*** Explanation of operation ***
With reference to FIG. 7, the operation of the control device 20 according to the present embodiment will be described. The operation of the control device 20 corresponds to the control method according to the present embodiment.

ステップS201の処理については、図3に示したステップS101の処理と同じであるため、説明を省略する。   The processing in step S201 is the same as the processing in step S101 shown in FIG.

ステップS202において、構成解決部33は、データベース24にある構成情報41を取得する。図6の例のように、構成情報41では、特定の制御コマンドである中継用コマンドに対し、制御対象機器の親機器が制御対象機器への制御電文を生成する機能を持っていることが示されている場合がある。   In step S <b> 202, the configuration resolution unit 33 acquires configuration information 41 in the database 24. As in the example of FIG. 6, the configuration information 41 indicates that the parent device of the control target device has a function of generating a control message to the control target device in response to a relay command that is a specific control command. May have been.

ステップS203において、構成解決部33は、ステップS201で受け付けられた制御要求に含まれる制御コマンドが中継用コマンドに該当するかどうかを確認する。中継用コマンドに該当しない場合、ステップS204の処理が行われる。一方、ステップ中継用コマンドに該当する場合、ステップS205の処理が行われる。   In step S203, the configuration resolution unit 33 confirms whether the control command included in the control request received in step S201 corresponds to the relay command. If the command does not correspond to the relay command, the process of step S204 is performed. On the other hand, if the command corresponds to the step relay command, the process of step S205 is performed.

ステップS204の処理については、図3に示したステップS103の処理と同じであるため、説明を省略する。   The processing in step S204 is the same as the processing in step S103 shown in FIG.

ステップS205において、電文構築部34は、ステップS202で特定された機器構成に含まれる制御対象機器の親機器を選択する。ステップS202で特定された機器構成に制御対象機器を除いて1つの機器11しか含まれていない場合は、その機器11が制御対象機器の親機器である。ステップS102で特定された機器構成に制御対象機器を除いても複数の機器11が含まれている場合は、それら複数の機器11のうち、制御経路上で制御対象機器の隣にある機器11が制御対象機器の親機器である。   In step S205, the message construction unit 34 selects the parent device of the control target device included in the device configuration specified in step S202. If the device configuration specified in step S202 includes only one device 11 except for the control target device, the device 11 is the parent device of the control target device. If the device configuration specified in step S102 includes a plurality of devices 11 even if the control target device is excluded, the device 11 next to the control target device on the control path is the device 11 among the plurality of devices 11. It is the parent device of the control target device.

ステップS206において、電文構築部34は、ステップS204またはステップS205で選択した機器11の機種に対応するモジュール31に、ステップS201で受け付けられた制御要求に含まれる制御コマンドと制御パラメータとを入力して制御電文を生成する。ステップS201で受け付けられた制御要求に含まれる制御コマンドが中継用コマンドに該当する場合は、制御対象機器を制御する電文を生成して制御対象機器に送信することを制御対象機器の親機器に命令する電文が生成される。ステップS207において、電文構築部34は、ステップS202で特定された機器構成に、ステップS204またはステップS205で選択した機器11の親機器が含まれているかどうかを確認する。親機器が含まれていなければ、ステップS210の処理が行われる。親機器が含まれていれば、ステップS208において、電文構築部34は、親機器を選択する。ステップS209において、電文構築部34は、ステップS208で選択した機器11の機種に対応するモジュール31に、中継用の制御コマンドと中継用の制御パラメータとを入力して中継電文を生成する。再びステップS207において、電文構築部34は、ステップS202で特定された機器構成に、直前のステップS208で選択した機器11の親機器が含まれているかどうかを確認する。親機器が含まれていなければ、ステップS210の処理が行われる。親機器が含まれていれば、再びステップS207において、電文構築部34は、親機器を選択する。その後、ステップS209以降の処理が再び行われる。   In step S206, the message construction unit 34 inputs the control command and the control parameter included in the control request received in step S201 to the module 31 corresponding to the model of the device 11 selected in step S204 or step S205. Generate a control message. If the control command included in the control request received in step S201 corresponds to a relay command, the parent device of the control target device is instructed to generate a message for controlling the control target device and transmit it to the control target device. A message to be generated is generated. In step S207, the message construction unit 34 checks whether or not the device configuration specified in step S202 includes the parent device of the device 11 selected in step S204 or step S205. If the parent device is not included, the process of step S210 is performed. If the parent device is included, in step S208, the message construction unit 34 selects the parent device. In step S209, the message construction unit 34 generates a relay message by inputting the relay control command and the relay control parameter to the module 31 corresponding to the model of the device 11 selected in step S208. In step S207 again, the message construction unit 34 checks whether the device configuration specified in step S202 includes the parent device of the device 11 selected in the immediately preceding step S208. If the parent device is not included, the process of step S210 is performed. If the parent device is included, in step S207, the message construction unit 34 selects the parent device again. Thereafter, the processing after step S209 is performed again.

このように、本実施の形態では、電文構築部34は、特定の制御対象機器を間接的に制御することができる。すなわち、電文構築部34は、制御対象機器を制御する第1電文が制御対象機器の親機器で得られる場合、当該親機器で得られる第1電文を当該親機器から制御対象機器に送信させるための電文を構築する。   Thus, in the present embodiment, the message construction unit 34 can indirectly control a specific control target device. That is, when the first message for controlling the control target device is obtained from the parent device of the control target device, the message construction unit 34 causes the first message obtained from the parent device to be transmitted from the parent device to the control target device. Build a telegram.

図6の例では、中継機器が1つしかないが、中継機器が2つ以上ある場合は、実施の形態1と同様の入れ子構造の電文が構築される。   In the example of FIG. 6, there is only one relay device, but when there are two or more relay devices, a telegraphic message similar to that in the first embodiment is constructed.

mを3以上の整数として、制御経路上に制御対象機器を含めてm個の機器11があるとする。制御対象機器を1番目の機器11、制御対象機器の親機器を2番目の機器11として制御経路上でj番目の機器11に転送される電文を第j電文とする。この場合、本実施の形態では、電文構築部34は、ステップS207からステップS209において、複数のモジュール31の中から、制御経路上でj+1番目の機器11の機種に対応するモジュール31を選択して利用することで、第j+1電文を生成する。第j+1電文は、第j電文を含み、第j電文をj番目の機器11に転送することをj+1番目の機器11に命令する電文である。電文構築部34は、jを2からm−1になるまで1ずつインクリメントして得られる第m電文を入れ子構造の電文として構築する。第2電文は、第1電文を生成して制御対象機器に送信することを制御対象機器の親機器に命令する電文である。   Assume that m is an integer of 3 or more, and there are m devices 11 including control target devices on the control path. A message transferred to the j-th device 11 on the control path with the control target device as the first device 11 and the parent device of the control target device as the second device 11 is defined as a j-th message. In this case, in this embodiment, the message construction unit 34 selects the module 31 corresponding to the model of the j + 1th device 11 on the control path from the plurality of modules 31 in steps S207 to S209. By using this, the j + 1th electronic message is generated. The j + 1 telegram is a telegram that includes the j th telegram and instructs the j + 1 th device 11 to transfer the j th telegram to the j th device 11. The message construction unit 34 constructs the m-th message obtained by incrementing j by 1 from 2 to m−1 as a nested message. The second telegram is a telegram that instructs the parent device of the control target device to generate the first telegram and transmit it to the control target device.

ステップS210において、電文送信部35は、電文構築部34により構築された電文を送信する。   In step S210, the message transmission unit 35 transmits the message constructed by the message construction unit 34.

図6の例を用いて、制御装置20の動作の具体例を説明する。   A specific example of the operation of the control device 20 will be described using the example of FIG.

ステップS201において、機器D2の機器IDと、機器D2の電源オンを命令するための制御コマンドおよび制御パラメータとを含む要求が要求受付部32により受け付けられたとする。   In step S201, it is assumed that the request reception unit 32 receives a request including the device ID of the device D2 and a control command and a control parameter for instructing to turn on the device D2.

ステップS202およびステップS203において、構成解決部33は、機器D2の機器IDでデータベース24を検索することで、要求に含まれる制御コマンドが中継用コマンドに該当することを認識し、機器D2を制御対象機器、機器D1を制御対象機器の親機器として特定する。構成解決部33は、機器D1の機種がコントローラであることも認識する。   In step S202 and step S203, the configuration resolution unit 33 searches the database 24 with the device ID of the device D2, recognizes that the control command included in the request corresponds to the relay command, and controls the device D2 to be controlled. The device, device D1, is specified as the parent device of the control target device. The configuration resolution unit 33 also recognizes that the model of the device D1 is a controller.

ステップS205において、電文構築部34は、機器D1を選択する。ステップS206において、電文構築部34は、複数のモジュール31の中から、機器D1の機種であるコントローラに対応するモジュール31を選択して利用することで、機器D2に電源オンを命令するための第1電文を生成して機器D2に送信することを機器D1に命令するための第2電文を生成する。第2電文は、例えば、図8に示すようなHTTPメッセージである。ステップS207において、機器D1の親機器は存在しないため、ステップS210において、電文送信部35は、第1電文を機器D1に送信する。   In step S205, the message construction unit 34 selects the device D1. In step S206, the message construction unit 34 selects and uses the module 31 corresponding to the controller, which is the model of the device D1, from among the plurality of modules 31, thereby instructing the device D2 to turn on the power. A second message for instructing the device D1 to generate one message and transmit it to the device D2 is generated. The second message is, for example, an HTTP message as shown in FIG. In step S207, since there is no parent device of the device D1, in step S210, the message transmission unit 35 transmits the first message to the device D1.

機器D1は、第2電文の命令に従って第1電文を生成して機器D2に送信する。機器D2は、第1電文の命令に従って電源オンとなる。   The device D1 generates a first message according to the second message command and transmits the first message to the device D2. The device D2 is powered on in accordance with the first telegram command.

なお、データベース24のテーブルにおいて、中継用コマンドを指定する代わりに、全コマンドを指定する意味でフラグを設定してもよい。すなわち、構成情報41において、制御対象機器の親機器が制御対象機器への制御電文を生成する機能を持っているかどうかがフラグによって示されていてもよい。フラグがオンであれば、ステップS201で受け付けられた制御要求に含まれる制御コマンドに関わらず、ステップS205の処理が行われる。   In the table of the database 24, instead of specifying the relay command, a flag may be set to specify all commands. That is, in the configuration information 41, a flag may indicate whether the parent device of the control target device has a function of generating a control message to the control target device. If the flag is on, the process of step S205 is performed regardless of the control command included in the control request received in step S201.

あるいは、データベース24のテーブルにおいて、中継用コマンドの指定を省略するとともに、制御対象機器のエントリを省略してもよい。図6の例では、機器D2のエントリを省略してもよい。すなわち、構成情報41において、制御対象機器の親機器が制御対象機器への制御電文を生成する機能を持っている場合は、制御対象機器に関する情報が省略されていてもよい。   Alternatively, in the table of the database 24, the designation of the relay command may be omitted and the entry of the control target device may be omitted. In the example of FIG. 6, the entry for the device D2 may be omitted. That is, in the configuration information 41, when the parent device of the control target device has a function of generating a control message to the control target device, information regarding the control target device may be omitted.

***実施の形態の効果の説明***
本実施の形態では、ある機器11を制御する電文の構造が不明であっても、その機器11を制御する電文を生成できる機器11に電文を生成させることで、制御対象機器までの接続構成により柔軟に対応することができる。
*** Explanation of the effect of the embodiment ***
In the present embodiment, even if the structure of a message that controls a device 11 is unknown, the device 11 that can generate a message that controls the device 11 can generate a message so that the connection structure to the control target device is used. It can respond flexibly.

実施の形態3.
本実施の形態について、主に実施の形態2との差異を、図9から図11を用いて説明する。
Embodiment 3 FIG.
In the present embodiment, differences from the second embodiment will be mainly described with reference to FIGS.

***構成の説明***
図9を参照して、本実施の形態に係る制御装置20の構成を説明する。
*** Explanation of configuration ***
With reference to FIG. 9, the structure of the control apparatus 20 which concerns on this Embodiment is demonstrated.

制御装置20は、機能要素として、複数のモジュール31と、要求受付部32と、構成解決部33と、電文構築部34と、電文送信部35とのほかに、順序制御部36を備える。複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および順序制御部36の機能は、ソフトウェアにより実現される。具体的には、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および順序制御部36の機能は、制御プログラムにより実現される。制御プログラムは、それぞれソフトウェア部品である複数のモジュール31を含むとともに、要求受付部32、構成解決部33、電文構築部34および順序制御部36により行われる処理をそれぞれ要求受付処理、構成解決処理、電文構築処理および順序制御処理としてコンピュータに実行させるプログラムである。電文送信部35の機能は、通信デバイス23により実現される。具体的には、電文送信部35の機能は、トランスミッタにより実現される。   The control device 20 includes a sequence control unit 36 in addition to a plurality of modules 31, a request reception unit 32, a configuration solution unit 33, a message construction unit 34, and a message transmission unit 35 as functional elements. The functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the sequence control unit 36 are realized by software. Specifically, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the sequence control unit 36 are realized by a control program. The control program includes a plurality of modules 31 each being a software component, and the processing performed by the request receiving unit 32, the configuration resolving unit 33, the message construction unit 34, and the sequence control unit 36 is a request receiving process, a configuration resolving process, respectively. This program is executed by a computer as a message construction process and a sequence control process. The function of the message transmission unit 35 is realized by the communication device 23. Specifically, the function of the message transmission unit 35 is realized by a transmitter.

本実施の形態では、機器D1、機器D2および機器E1といった機器11によってフィールド環境が構築され、制御装置20によってクラウド環境が構築される。   In the present embodiment, a field environment is constructed by the devices 11 such as the device D1, the device D2, and the device E1, and a cloud environment is constructed by the control device 20.

本実施の形態では、データベース24には、構成情報41のほかに、互いに異なる制御対象機器間での制御の依存関係を定義する関係情報42が格納されている。   In the present embodiment, in addition to the configuration information 41, the database 24 stores relationship information 42 that defines control dependency relationships between different control target devices.

図10を参照して、データベース24のテーブルの例を説明する。   An example of a table in the database 24 will be described with reference to FIG.

本実施の形態では、構成情報41および関係情報42は、「機器ID」、「親機器ID」、「機種」、「中継用コマンド」および「前提コマンド」といったカラムで構成されたテーブルとしてデータベース24にあらかじめ格納されている。「機器ID」、「親機器ID」、「機種」および「中継用コマンド」については、図6に示した実施の形態2に係る構成情報41のものと同じであるため、説明を省略する。「前提コマンド」のカラムは、関係情報42に相当する。「前提コマンド」は、「機器ID」の機器11の制御コマンドを実行する前に実行されている必要のある制御コマンドである。   In the present embodiment, the configuration information 41 and the relationship information 42 are stored in the database 24 as a table composed of columns such as “device ID”, “parent device ID”, “model”, “relay command”, and “requisite command”. Stored in advance. The “device ID”, “parent device ID”, “model”, and “relay command” are the same as those in the configuration information 41 according to the second embodiment shown in FIG. The column of “Prerequisite command” corresponds to the relationship information 42. “Prerequisite command” is a control command that needs to be executed before executing the control command of the device 11 of “device ID”.

図10の例では、機器E1は、テレビであり、制御装置20に直接接続されている。機器E1に対する制御の前に機器D2が電源オンとなっていなければならない。機器D1および機器D2については、図6の例と同じであるため、説明を省略する。   In the example of FIG. 10, the device E <b> 1 is a television and is directly connected to the control device 20. The device D2 must be powered on before controlling the device E1. The device D1 and the device D2 are the same as the example in FIG.

図10の例では、制御装置20は、テレビに対応するモジュール31およびコントローラに対応するモジュール31といった少なくとも2つのモジュール31を備えている。   In the example of FIG. 10, the control device 20 includes at least two modules 31 such as a module 31 corresponding to a television and a module 31 corresponding to a controller.

***動作の説明***
図11を参照して、本実施の形態に係る制御装置20の動作を説明する。制御装置20の動作は、本実施の形態に係る制御方法に相当する。
*** Explanation of operation ***
The operation of the control device 20 according to the present embodiment will be described with reference to FIG. The operation of the control device 20 corresponds to the control method according to the present embodiment.

ステップS301の処理については、図7に示したステップS201の処理と同じであるため、説明を省略する。   The processing in step S301 is the same as the processing in step S201 shown in FIG.

ステップS302において、順序制御部36は、ステップS301で受け付けられた制御要求または後述するステップS304で生成された制御要求をスタックに入れる。   In step S302, the order control unit 36 puts the control request received in step S301 or the control request generated in step S304 described later on the stack.

ステップS303において、構成解決部33は、データベース24にある構成情報41を取得する。順序制御部36は、データベース24にある関係情報42を取得する。図10の例のように、関係情報42では、制御対象機器の制御の前提となる制御コマンドである前提コマンドが示されている場合がある。   In step S <b> 303, the configuration resolution unit 33 acquires configuration information 41 in the database 24. The order control unit 36 acquires the relationship information 42 in the database 24. As in the example of FIG. 10, the relationship information 42 may indicate a prerequisite command that is a control command that is a prerequisite for control of the control target device.

ステップS304において、順序制御部36は、ステップS302でスタックに入れた制御要求に含まれる機器IDに対応する前提コマンドがあるかどうかを確認する。前提コマンドがある場合、順序制御部36は、前提コマンドの制御対象機器の機器IDと、前提コマンドと、制御パラメータとが含まれている制御要求を生成する。そして、その制御要求について、ステップS302以降の処理が行われる。前提コマンドがない場合は、ステップS305の処理が行われる。   In step S304, the order control unit 36 checks whether there is a premise command corresponding to the device ID included in the control request placed in the stack in step S302. When there is a premise command, the sequence control unit 36 generates a control request including the device ID of the control target device of the premise command, the premise command, and the control parameter. And the process after step S302 is performed about the control request. If there is no prerequisite command, the process of step S305 is performed.

ステップS305において、順序制御部36は、制御要求をスタックから取り出す。   In step S305, the sequence control unit 36 takes out the control request from the stack.

ステップS305で取り出された制御要求について行われるステップS306からステップS313の処理については、図7に示したステップS203からステップS210の処理と同じであるため、説明を省略する。   The processing from step S306 to step S313 performed for the control request extracted in step S305 is the same as the processing from step S203 to step S210 shown in FIG.

ステップS314において、順序制御部36は、スタックに制御要求があるかどうかを確認する。制御要求がなくなるまで、ステップS305以降の処理が再び行われる。   In step S314, the sequence control unit 36 checks whether there is a control request in the stack. Until there is no control request, the processing from step S305 is repeated.

このように、本実施の形態では、順序制御部36は、関係情報42に基づいて、電文送信部35により電文が送信される順序を制御する。電文構築部34は、制御対象機器ごとに、電文送信部35により送信される電文を生成する。   As described above, in this embodiment, the order control unit 36 controls the order in which messages are transmitted by the message transmission unit 35 based on the relationship information 42. The message construction unit 34 generates a message transmitted by the message transmission unit 35 for each control target device.

図10の例を用いて、制御装置20の動作の具体例を説明する。   A specific example of the operation of the control device 20 will be described using the example of FIG.

ステップS301において、機器E1の機器IDと、機器E1の電源オンを命令するための制御コマンドおよび制御パラメータとを含む要求R1が要求受付部32により受け付けられたとする。   In step S301, it is assumed that a request R1 including a device ID of the device E1 and a control command and a control parameter for instructing power-on of the device E1 is received by the request receiving unit 32.

ステップS302において、順序制御部36は、要求R1をスタックに入れる。   In step S302, the order control unit 36 places the request R1 on the stack.

ステップS303およびステップS304において、順序制御部36は、機器E1の機器IDでデータベース24を検索することで、要求R1に含まれる制御コマンドに対応する前提コマンドがあることを認識する。前提コマンドとして、機器D2を電源オンとすることが指定されているため、順序制御部36は、機器D2の機器IDと、機器D2の電源オンを命令するための制御コマンドおよび制御パラメータとを含む要求R2を生成する。   In step S303 and step S304, the order control unit 36 searches the database 24 with the device ID of the device E1 to recognize that there is a premise command corresponding to the control command included in the request R1. Since it is specified that the device D2 is powered on as the premise command, the sequence control unit 36 includes the device ID of the device D2, and a control command and a control parameter for instructing the power on of the device D2. A request R2 is generated.

ステップS302において、順序制御部36は、要求R2をスタックに入れる。   In step S302, the order control unit 36 places the request R2 on the stack.

ステップS303およびステップS304において、順序制御部36は、機器D2の機器IDでデータベース24を検索することで、要求R1に含まれる制御コマンドに対応する前提コマンドがないことを認識する。   In step S303 and step S304, the sequence control unit 36 searches the database 24 with the device ID of the device D2 to recognize that there is no premise command corresponding to the control command included in the request R1.

ステップS305において、順序制御部36は、要求R2をスタックから取り出す。   In step S305, the order control unit 36 extracts the request R2 from the stack.

ステップS306において、構成解決部33は、要求R2に含まれる機器D2の機器IDでデータベース24を検索することで、要求R2に含まれる制御コマンドが中継用コマンドに該当することを認識し、機器D2を制御対象機器、機器D1を制御対象機器の親機器として特定する。構成解決部33は、機器D1の機種がコントローラであることも認識する。   In step S306, the configuration resolution unit 33 searches the database 24 with the device ID of the device D2 included in the request R2, thereby recognizing that the control command included in the request R2 corresponds to the relay command, and the device D2 Is specified as the control target device, and the device D1 is specified as the parent device of the control target device. The configuration resolution unit 33 also recognizes that the model of the device D1 is a controller.

ステップS308において、電文構築部34は、機器D1を選択する。ステップS309において、電文構築部34は、複数のモジュール31の中から、機器D1の機種であるコントローラに対応するモジュール31を選択して利用することで、機器D2に電源オンを命令する第1電文を生成して機器D2に送信することを機器D1に命令する第2電文を生成する。第2電文は、例えば、図8に示したようなHTTPメッセージである。ステップS310において、機器D1の親機器は存在しないため、ステップS313において、電文送信部35は、第2電文を機器D1に送信する。   In step S308, the message construction unit 34 selects the device D1. In step S309, the message construction unit 34 selects and uses the module 31 corresponding to the controller that is the model of the device D1 from among the plurality of modules 31, thereby instructing the device D2 to turn on the power. Is generated and a second telegram that instructs the device D1 to transmit to the device D2 is generated. The second message is, for example, an HTTP message as shown in FIG. In step S310, since there is no parent device of the device D1, in step S313, the message transmission unit 35 transmits the second message to the device D1.

機器D1は、第2電文の命令に従って第1電文を生成して機器D2に送信する。機器D2は、第1電文の命令に従って電源オンとなる。   The device D1 generates a first message according to the second message command and transmits the first message to the device D2. The device D2 is powered on in accordance with the first telegram command.

ステップS314において、スタックに要求R1が残っているため、ステップS305の処理が再び行われる。   In step S314, since the request R1 remains in the stack, the process of step S305 is performed again.

ステップS305において、順序制御部36は、要求R1をスタックから取り出す。   In step S305, the order control unit 36 takes out the request R1 from the stack.

ステップS306において、構成解決部33は、要求R1に含まれる機器E1の機器IDでデータベース24を検索することで、機器E1を制御対象機器として特定する。構成解決部33は、機器E1の機種がテレビであることも認識する。   In step S306, the configuration resolution unit 33 searches the database 24 with the device ID of the device E1 included in the request R1, thereby specifying the device E1 as a control target device. The configuration resolution unit 33 also recognizes that the model of the device E1 is a television.

ステップS307において、電文構築部34は、機器E1を選択する。ステップS309において、電文構築部34は、複数のモジュール31の中から、機器E1の機種であるテレビに対応するモジュール31を選択して利用することで、機器E1に電源オンを命令する第1電文を生成する。第1電文は、例えば、図4に示したような信号データである。ステップS310において、機器E1の親機器は存在しないため、ステップS313において、電文送信部35は、第1電文を機器E1に送信する。   In step S307, the message construction unit 34 selects the device E1. In step S309, the message construction unit 34 selects and uses the module 31 corresponding to the television that is the model of the device E1 from among the plurality of modules 31, thereby instructing the device E1 to turn on the power. Is generated. The first telegram is, for example, signal data as shown in FIG. In step S310, since the parent device of the device E1 does not exist, in step S313, the message transmission unit 35 transmits the first message to the device E1.

機器E1は、第1電文の命令に従って電源オンとなる。   The device E1 is powered on in accordance with the first telegram command.

なお、図11に示したフローは、電文を一通り生成してから、順序を考慮して送信するフローに変更されてもよい。   Note that the flow illustrated in FIG. 11 may be changed to a flow in which a message is generated and then transmitted in consideration of the order.

***実施の形態の効果の説明***
本実施の形態では、機器11の制御コマンドと、その前提となる制御コマンドとの関係、すなわち、制御の依存関係が管理される。依存する制御コマンドを分解し、電文を構築する処理の呼び出し順序および並列実行が制御される。依存する制御コマンドがある場合は、その依存関係に従ってシーケンシャルな呼び出しを行い、依存関係がない制御コマンドは並列実行するといったことが可能となる。
*** Explanation of the effect of the embodiment ***
In the present embodiment, the relationship between the control command of the device 11 and the control command that is the premise thereof, that is, the control dependency is managed. The calling order and parallel execution of the process for constructing the message are controlled by decomposing the dependent control commands. If there are dependent control commands, it is possible to perform sequential calls according to the dependency relationship, and to execute control commands having no dependency relationship in parallel.

***他の構成***
本実施の形態では、実施の形態1と同じように、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および順序制御部36の機能がソフトウェアにより実現されるが、実施の形態1の変形例と同じように、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および順序制御部36の機能がハードウェアにより実現されてもよい。あるいは、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および順序制御部36の機能がソフトウェアとハードウェアとの組み合わせにより実現されてもよい。
*** Other configurations ***
In the present embodiment, as in the first embodiment, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the sequence control unit 36 are realized by software. As in the modification of the first embodiment, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the sequence control unit 36 may be realized by hardware. Alternatively, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the sequence control unit 36 may be realized by a combination of software and hardware.

実施の形態4.
本実施の形態について、主に実施の形態1との差異を、図12を用いて説明する。
Embodiment 4 FIG.
The difference between the present embodiment and the first embodiment will be mainly described with reference to FIG.

図12に示すように、本実施の形態では、制御装置20は、機能要素として、複数のモジュール31と、要求受付部32と、構成解決部33と、電文構築部34と、電文送信部35とのほかに、情報収集部37を備える。複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および情報収集部37の機能は、ソフトウェアにより実現される。具体的には、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および情報収集部37の機能は、制御プログラムにより実現される。制御プログラムは、それぞれソフトウェア部品である複数のモジュール31を含むとともに、要求受付部32、構成解決部33、電文構築部34および情報収集部37により行われる処理をそれぞれ要求受付処理、構成解決処理、電文構築処理および情報収集処理としてコンピュータに実行させるプログラムである。電文送信部35の機能は、通信デバイス23により実現される。具体的には、電文送信部35の機能は、トランスミッタにより実現される。   As shown in FIG. 12, in the present embodiment, the control device 20 includes, as functional elements, a plurality of modules 31, a request reception unit 32, a configuration solution unit 33, a message construction unit 34, and a message transmission unit 35. In addition to the above, an information collecting unit 37 is provided. The functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the information collection unit 37 are realized by software. Specifically, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the information collection unit 37 are realized by a control program. The control program includes a plurality of modules 31 each being a software component, and the processing performed by the request receiving unit 32, the configuration resolving unit 33, the message construction unit 34, and the information collecting unit 37 is a request receiving process, a configuration resolving process, respectively. This program is executed by a computer as a message construction process and an information collection process. The function of the message transmission unit 35 is realized by the communication device 23. Specifically, the function of the message transmission unit 35 is realized by a transmitter.

情報収集部37は、構成情報41を収集する。   The information collection unit 37 collects configuration information 41.

本実施の形態では、電文構築部34は、電文送信部35により送信される電文を構築した後に、情報収集部37により収集された構成情報41によって制御経路の機器構成が変更されたことが示されている場合、変更後の機器構成に合わせて電文を構築し直す。   In the present embodiment, the message construction unit 34 indicates that the device configuration of the control path has been changed by the configuration information 41 collected by the information collection unit 37 after the message transmitted by the message transmission unit 35 is constructed. If so, reconstruct the message to match the changed device configuration.

本実施の形態では、フィールド環境の機器構成、すなわち、クラウド環境から末端機器までの制御経路に関する情報を収集し、データベース24を最新の状態に保つことでフィールド環境内の構成変更に応じて電文を構築することができる。すなわち、フィールド環境内の接続構成の変化に柔軟に対応できる。   In the present embodiment, the device configuration in the field environment, that is, the information on the control path from the cloud environment to the end device is collected, and the database 24 is kept up-to-date so that a message can be sent according to the configuration change in the field environment. Can be built. That is, it is possible to flexibly cope with changes in the connection configuration within the field environment.

***他の構成***
本実施の形態では、実施の形態1と同じように、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および情報収集部37の機能がソフトウェアにより実現されるが、実施の形態1の変形例と同じように、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および情報収集部37の機能がハードウェアにより実現されてもよい。あるいは、複数のモジュール31、要求受付部32、構成解決部33、電文構築部34および情報収集部37の機能がソフトウェアとハードウェアとの組み合わせにより実現されてもよい。
*** Other configurations ***
In the present embodiment, as in the first embodiment, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the information collection unit 37 are realized by software. As in the modification of the first embodiment, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the information collection unit 37 may be realized by hardware. Alternatively, the functions of the plurality of modules 31, the request reception unit 32, the configuration solution unit 33, the message construction unit 34, and the information collection unit 37 may be realized by a combination of software and hardware.

10 通信システム、11 機器、20 制御装置、21 プロセッサ、22 メモリ、23 通信デバイス、24 データベース、27 電子回路、31 モジュール、32 要求受付部、33 構成解決部、34 電文構築部、35 電文送信部、36 順序制御部、37 情報収集部、41 構成情報、42 関係情報、50 アプリケーション。   DESCRIPTION OF SYMBOLS 10 Communication system, 11 Apparatus, 20 Control apparatus, 21 Processor, 22 Memory, 23 Communication device, 24 Database, 27 Electronic circuit, 31 Module, 32 Request reception part, 33 Configuration solution part, 34 Message construction part, 35 Message transmission part 36 Order control unit 37 Information collection unit 41 Configuration information 42 Relation information 50 Application

Claims (9)

それぞれ対応する機種に応じた形式の電文を生成する機能を持ち、互いに異なる機種に対応する複数のモジュールと、
制御対象機器までの制御経路上に前記制御対象機器とは別の機器がある場合、前記複数のモジュールの中から、前記別の機器の機種に対応するモジュールを選択して利用することで、前記別の機器を介して前記制御対象機器を制御するための電文を構築する電文構築部と、
前記電文構築部により構築された電文を送信する電文送信部と
を備え
前記電文構築部は、前記制御対象機器を制御する電文が前記制御経路上で前記制御対象機器の隣にある親機器で得られる場合、前記親機器で得られる電文を前記親機器から前記制御対象機器に送信させるための電文を、前記別の機器を介して前記制御対象機器を制御するための電文として構築する制御装置。
Each module has a function to generate a message in a format corresponding to the corresponding model, multiple modules corresponding to different models,
When there is a device other than the control target device on the control path to the control target device, by selecting and using a module corresponding to the model of the other device from the plurality of modules, A message construction unit that constructs a message for controlling the control target device via another device;
A message transmission unit that transmits a message constructed by the message construction unit ;
The message construction unit, when a message for controlling the device to be controlled is obtained by a parent device adjacent to the device to be controlled on the control path, a message obtained by the parent device from the parent device to the control object the message for causing the transmission to the device, it builds a message for controlling the control target device via the another device control unit.
前記電文構築部は、前記制御対象機器を制御する電文が前記制御装置で得られる場合、得られた電文を含み、その電文を前記制御経路上で前記制御対象機器まで順番に転送させるための電文を、前記別の機器を介して前記制御対象機器を制御するための電文として構築する請求項1に記載の制御装置。   When the message for controlling the control target device is obtained by the control device, the message construction unit includes the obtained message, and the message for sequentially transferring the message to the control target device on the control path The control apparatus according to claim 1, wherein the control device is constructed as a message for controlling the control target device via the another device. 前記電文構築部は、nを2以上の整数として、前記制御経路上に前記制御対象機器を含めてn個の機器があり、前記制御対象機器を制御する電文を第1電文、前記制御対象機器を1番目の機器として前記制御経路上でi番目の機器に転送される電文を第i電文として、前記第1電文が前記制御装置で得られる場合、前記複数のモジュールの中から、前記制御経路上でi+1番目の機器の機種に対応するモジュールを選択して利用することで、前記第i電文を含み、前記第i電文を前記i番目の機器に転送することを前記i+1番目の機器に命令する第i+1電文を生成し、iを1からn−1になるまで1ずつインクリメントして得られる第n電文を構築する請求項2に記載の制御装置。   The message construction unit has n devices including the control target device on the control path, where n is an integer of 2 or more, and a message for controlling the control target device is a first message, and the control target device If the electronic message transferred to the i-th device on the control path as the first device is the i-th electronic message and the first electronic message is obtained by the control device, the control route is selected from the plurality of modules. By selecting and using a module corresponding to the model of the (i + 1) -th device above, the i + 1-th device is instructed to transfer the i-th message to the i-th device, including the i-th message. The control apparatus according to claim 2, wherein an i + 1th electronic message is generated and an nth electronic message obtained by incrementing i by 1 from 1 to n−1 is constructed. 前記電文構築部は、前記複数のモジュールの中から、前記制御対象機器の機種に対応するモジュールを選択して利用することで、前記第1電文を生成する請求項3に記載の制御装置。   The control device according to claim 3, wherein the message construction unit generates the first message by selecting and using a module corresponding to a model of the control target device from the plurality of modules. 互いに異なる制御対象機器間での制御の依存関係を定義する関係情報に基づいて、前記電文送信部により電文が送信される順序を制御する順序制御部をさらに備え、
前記電文構築部は、制御対象機器ごとに、前記電文送信部により送信される電文を構築する請求項1からのいずれか1項に記載の制御装置。
Further comprising an order control unit that controls the order in which messages are transmitted by the message transmission unit, based on relationship information that defines control dependency between different control target devices;
The control device according to any one of claims 1 to 4 , wherein the message construction unit constructs a message transmitted by the message transmission unit for each device to be controlled.
前記制御経路の機器構成を定義する構成情報を収集する情報収集部をさらに備え、
前記電文構築部は、前記電文送信部により送信される電文を構築した後に、前記情報収集部により収集された構成情報によって前記制御経路の機器構成が変更されたことが示されている場合、変更後の機器構成に合わせて前記電文送信部により送信される電文を構築し直す請求項1からのいずれか1項に記載の制御装置。
An information collecting unit that collects configuration information that defines a device configuration of the control path;
The message constructing unit is changed when the device configuration of the control path is changed by the configuration information collected by the information collecting unit after constructing the message transmitted by the message transmitting unit. The control device according to any one of claims 1 to 5 , wherein a message transmitted by the message transmission unit is reconstructed in accordance with a later device configuration.
前記電文構築部は、前記制御対象機器までの前記制御経路上に前記別の機器がない場合、前記制御対象機器を制御する電文を構築する請求項1からのいずれか1項に記載の制御装置。 The control according to any one of claims 1 to 6 , wherein the message construction unit constructs a message for controlling the device to be controlled when there is no other device on the control path to the device to be controlled. apparatus. 請求項1からのいずれか1項に記載の制御装置と、
前記制御経路上の機器と
を備える通信システム。
A control device according to any one of claims 1 to 7 ,
A communication system comprising a device on the control path.
それぞれ対応する機種に応じた形式の電文を生成する機能を持ち、互いに異なる機種に対応する複数のモジュールを含み、
コンピュータに、
制御対象機器までの制御経路上に前記制御対象機器とは別の機器があ、前記複数のモジュールの中から、前記別の機器の機種に対応するモジュールを選択して利用することで、前記別の機器を介して前記制御対象機器を制御するための電文を構築するにあたり、前記制御対象機器を制御する電文が前記制御経路上で前記制御対象機器の隣にある親機器で得られる場合、前記親機器で得られる電文を前記親機器から前記制御対象機器に送信させるための電文を、前記別の機器を介して前記制御対象機器を制御するための電文として構築する電文構築処理を実行させる制御プログラム。
It has a function to generate a message in a format corresponding to each corresponding model, and includes multiple modules corresponding to different models,
On the computer,
Control target is the control target device on the control path to the device Ri another device there, from among the plurality of modules, the use by selecting the module corresponding to the model of the different devices, the In constructing a message for controlling the control target device via another device, when a message for controlling the control target device is obtained in the parent device next to the control target device on the control path, Execute a message construction process for constructing a message for transmitting a message obtained from the parent device from the parent device to the device to be controlled as a message for controlling the device to be controlled via the other device . Control program.
JP2018128556A 2018-07-05 2018-07-05 Control device, communication system, and control program Active JP6618574B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018128556A JP6618574B1 (en) 2018-07-05 2018-07-05 Control device, communication system, and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018128556A JP6618574B1 (en) 2018-07-05 2018-07-05 Control device, communication system, and control program

Publications (2)

Publication Number Publication Date
JP6618574B1 true JP6618574B1 (en) 2019-12-11
JP2020009072A JP2020009072A (en) 2020-01-16

Family

ID=68836081

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018128556A Active JP6618574B1 (en) 2018-07-05 2018-07-05 Control device, communication system, and control program

Country Status (1)

Country Link
JP (1) JP6618574B1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197061A (en) * 2005-01-12 2006-07-27 Matsushita Electric Ind Co Ltd Electric appliance and network system thereof
JP2008027128A (en) * 2006-07-20 2008-02-07 Brother Ind Ltd Device management system, management apparatus, and program
JP5357920B2 (en) * 2011-04-21 2013-12-04 日本電信電話株式会社 Home device cooperation control device and home device cooperation control method
JP2015211342A (en) * 2014-04-25 2015-11-24 日本電信電話株式会社 Device management server and movement method thereof
JP6000501B1 (en) * 2016-01-20 2016-09-28 三菱電機株式会社 Control device, control program, and device control system

Also Published As

Publication number Publication date
JP2020009072A (en) 2020-01-16

Similar Documents

Publication Publication Date Title
JP7454662B2 (en) Information transmission method, device, readable storage medium and electronic device
CN112000741B (en) Internal and external network data exchange system, method, device, computer equipment and medium
CN100596362C (en) Communication device and command transmission method
KR102288521B1 (en) Apparatus and method for storing data based on blockchain
CN105760159A (en) Website developing method and system
CN102741859A (en) Methods and apparatuses for reducing power consumption in a pattern recognition processor
CN108959139A (en) A kind of CPLD pin multiplexing method and device
CN102970325A (en) File upload method and system
CN113242244B (en) Data transmission method, device and system
JP6618574B1 (en) Control device, communication system, and control program
CN107633026B (en) data synchronization exception handling method and device and server
JP2010199836A (en) Wireless network structure
CN115102992B (en) Data publishing method and device, electronic equipment and computer readable medium
CN109412970B (en) Data transfer system, data transfer method, electronic device, and storage medium
KR101593835B1 (en) PLC system
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
JP6283728B2 (en) Mass data transfer apparatus and method
CN110619113A (en) Method and device for previewing iOS specific format file
CN109861930A (en) Connection method, device and the host of virtual switch and virtual machine
CN112565173B (en) Method and apparatus for message processing
JP6333500B2 (en) Relay device, relay method, and relay program
CN113254262B (en) Database disaster recovery method and device and electronic equipment
JP2017126190A (en) Design support device
CN114625083A (en) Input/output control device and system
US20190188182A1 (en) Remote virtual endpoint in a systolic array

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190723

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190917

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191112

R150 Certificate of patent or registration of utility model

Ref document number: 6618574

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250