JP2021010058A - Gateway device and program - Google Patents

Gateway device and program Download PDF

Info

Publication number
JP2021010058A
JP2021010058A JP2019121629A JP2019121629A JP2021010058A JP 2021010058 A JP2021010058 A JP 2021010058A JP 2019121629 A JP2019121629 A JP 2019121629A JP 2019121629 A JP2019121629 A JP 2019121629A JP 2021010058 A JP2021010058 A JP 2021010058A
Authority
JP
Japan
Prior art keywords
command
network
library
received
response
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
JP2019121629A
Other languages
Japanese (ja)
Other versions
JP7246271B2 (en
Inventor
英利香 西村
Erika NISHIMURA
英利香 西村
正裕 石原
Masahiro Ishihara
正裕 石原
遠藤 弘明
Hiroaki Endo
弘明 遠藤
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 JP2019121629A priority Critical patent/JP7246271B2/en
Publication of JP2021010058A publication Critical patent/JP2021010058A/en
Application granted granted Critical
Publication of JP7246271B2 publication Critical patent/JP7246271B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

To eliminate inconvenience when the communication speed is different between protocols and avoid communication interruption as much as possible when updating the protocol.SOLUTION: A gateway device 1 includes proxy response means for receiving a request command sent from a first device connected to a network N1 to a second device connected to the network, generating a response command corresponding to the content of the received request command by referring to an object table 141 in which device information related to each of the first device and the second device is stored, and transmitting the response command to the first device. A program for implementing the proxy response means includes a management module for managing the object table 141, a command processing module, a command library 1402, and an object library 1403. A protocol as an application target can be updated by updating at least one of the command library 1402 and the object library 1403.SELECTED DRAWING: Figure 5

Description

本発明は、ゲートウェイ装置及びプログラムに関する。 The present invention relates to gateway devices and programs.

異なるネットワーク間の通信において、双方のプロトコル間の通信速度が大きく異なる場合、高速側のプロトコルが要求する応答速度に低速側が間に合わず、この際の遅延の許容を高速側のネットワークに接続される機器に要求せざるを得ないという問題がある。 In communication between different networks, if the communication speed between both protocols is significantly different, the low-speed side cannot keep up with the response speed required by the high-speed side protocol, and the device connected to the high-speed side network allows the delay at this time. There is a problem that we have no choice but to request.

これに対し、例えば、特許文献1には、ルータ機器が宛先機器に代わって代理応答を行うことが記載されている。 On the other hand, for example, Patent Document 1 describes that a router device performs a proxy response on behalf of a destination device.

特許第3823585号公報Japanese Patent No. 3823585

ルーティング機能を持たないゲートウェイ装置が代理応答を行うためには、ネットワークに接続される機器に関する機器情報を適宜更新可能な態様で常時保持することが必要である。 In order for a gateway device that does not have a routing function to perform a proxy response, it is necessary to always hold device information about devices connected to the network in an appropriately updateable manner.

しかしながら、従来のゲートウェイ装置においては、プロトコルが更新される際、プログラム全体を書き換える必要があるため、保持している機器情報も消去されてしまい、再起動後、直ちに代理応答が行えず、しばらくの間、通信が遮断されてしまうという問題がある。 However, in the conventional gateway device, when the protocol is updated, it is necessary to rewrite the entire program, so that the device information held is also erased, and a proxy response cannot be performed immediately after restarting, and for a while. During that time, there is a problem that communication is cut off.

本発明は、上記問題を解決するためになされたものであり、プロトコル間の通信速度が異なる場合の不都合を解消すると共に、プロトコル更新時の通信遮断を極力回避することが可能なゲートウェイ装置等を提供することを目的とする。 The present invention has been made to solve the above problems, and provides a gateway device or the like that can solve the inconvenience when the communication speeds differ between protocols and avoid communication interruption at the time of protocol update as much as possible. The purpose is to provide.

上記目的を達成するため、本発明に係るゲートウェイ装置は、
CPUと、記憶装置と、通信インタフェースと、を備え、第1ネットワークと第2ネットワークとに接続されるゲートウェイ装置であって、
前記CPUが前記記憶装置に記憶されたプログラムを実行することで提供される機能であって、前記第1ネットワークに接続される第1機器から前記第2ネットワークに接続される第2機器に対して送信された要求コマンドを受信し、前記記憶装置に記憶された前記第1機器及び前記第2機器のそれぞれに関する機器情報が格納されるオブジェクトテーブルを参照して、前記要求コマンドの内容に応じた応答コマンドを生成し、生成した応答コマンドを前記第1機器に送信する代理応答手段を備え、
前記プログラムには、前記オブジェクトテーブルの管理に関する処理を実行するための管理モジュールと、受信したコマンドに応じた処理を実行するためのコマンド処理モジュールと、前記第1機器との間で送受信されるコマンドの内容と前記第2機器との間で送受信されるコマンドの内容とが定義された指令ライブラリと、前記第1機器及び前記第2機器のそれぞれのクラスが定義されたオブジェクトライブラリと、が含まれ、
前記指令ライブラリと、前記オブジェクトライブラリとの内の少なくとも1つの更新によって、適用対象のプロトコルが更新され得る。
In order to achieve the above object, the gateway device according to the present invention
A gateway device including a CPU, a storage device, and a communication interface, which is connected to a first network and a second network.
A function provided by the CPU executing a program stored in the storage device, from a first device connected to the first network to a second device connected to the second network. A response according to the content of the request command is received by receiving the transmitted request command and referring to the object table in which the device information about each of the first device and the second device stored in the storage device is stored. A proxy response means for generating a command and transmitting the generated response command to the first device is provided.
The program includes a management module for executing processing related to management of the object table, a command processing module for executing processing according to a received command, and commands sent and received between the first device. A command library in which the contents of the above and the contents of commands sent and received between the second devices are defined, and an object library in which the classes of the first device and the second device are defined are included. ,
The protocol to be applied can be updated by updating at least one of the command library and the object library.

本発明によれば、プロトコル間の通信速度が異なる場合の不都合を解消すると共に、プロトコル更新時の通信遮断を極力回避することが可能となる。 According to the present invention, it is possible to eliminate the inconvenience when the communication speeds of the protocols are different and to avoid the communication interruption at the time of updating the protocol as much as possible.

本発明の実施の形態に係るゲートウェイ装置を備えたネットワークシステムの全体構成を示す図The figure which shows the whole structure of the network system provided with the gateway device which concerns on embodiment of this invention. 本実施の形態のゲートウェイ装置のハードウェア構成を示すブロック図Block diagram showing the hardware configuration of the gateway device of this embodiment 本実施の形態のゲートウェイ装置が備える二次記憶装置について説明するための図The figure for demonstrating the secondary storage device provided in the gateway device of this embodiment. 本実施の形態のプログラムの構成を示す図The figure which shows the structure of the program of this embodiment 本実施の形態のゲートウェイ装置の機能構成を示すブロック図Block diagram showing the functional configuration of the gateway device of this embodiment 本実施の形態のゲートウェイ装置が実行する処理の手順を示すフローチャートA flowchart showing a procedure of processing executed by the gateway device of the present embodiment. 本実施の形態のゲートウェイ装置における各機能部間の処理の流れを示すシーケンス図A sequence diagram showing a processing flow between each functional unit in the gateway device of the present embodiment.

以下、本発明の実施の形態について図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明の実施の形態に係るゲートウェイ装置1を備えたネットワークシステムの全体構成を示す図である。このネットワークシステムでは、ネットワークN1に1又は複数の第1機器2とゲートウェイ装置1とが接続され、ネットワークN2にゲートウェイ装置1と1又は複数の第2機器とが接続される。このネットワークシステムは、例えば、監視端末等の第1機器2により、ビル内に設置される空調機、照明器等の設備機器である第2機器を監視するシステムに適用される。ネットワークN1は、本発明に係る第1ネットワークの一例であり、ネットワークN2は、本発明に係る第2ネットワークの一例である。 FIG. 1 is a diagram showing an overall configuration of a network system including the gateway device 1 according to the embodiment of the present invention. In this network system, one or a plurality of first devices 2 and a gateway device 1 are connected to the network N1, and the gateway device 1 and the one or a plurality of second devices are connected to the network N2. This network system is applied to a system for monitoring a second device, which is an equipment device such as an air conditioner and an illuminator, installed in a building by a first device 2 such as a monitoring terminal. The network N1 is an example of the first network according to the present invention, and the network N2 is an example of the second network according to the present invention.

ゲートウェイ装置1は、ネットワークN1を介して受信した第1機器2からのデータをネットワークN2を介して第2機器3に転送し、ネットワークN2を介して受信した第2機器3からのデータをネットワークN1を介して第1機器2に転送する、一般的なゲートウェイ装置が備える転送機能と、後述する代理応答機能とを有する装置である。 The gateway device 1 transfers the data from the first device 2 received via the network N1 to the second device 3 via the network N2, and transfers the data from the second device 3 received via the network N2 to the network N1. This device has a transfer function included in a general gateway device that transfers data to the first device 2 via the above, and a proxy response function described later.

図2に示すように、ゲートウェイ装置1は、通信インタフェース10と、CPU(Central Processing Unit)11と、ROM(Read Only Memory)12と、RAM(Random Access Memory)13と、二次記憶装置14とを備える。これらの構成部は、バス15を介して相互に接続される。 As shown in FIG. 2, the gateway device 1 includes a communication interface 10, a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, and a secondary storage device 14. To be equipped. These components are connected to each other via the bus 15.

通信インタフェース10は、本発明に係るゲートウェイ装置が備える通信インタフェースの一例である。通信インタフェース10は、ネットワークN1に接続して、各第1機器2とネットワークN1を介して通信するためのネットワークカード等の装置と、ネットワークN2に接続して、各第2機器3とネットワークN2を介して通信するためのネットワークカード等の装置とを含んで構成される。 The communication interface 10 is an example of a communication interface included in the gateway device according to the present invention. The communication interface 10 connects to a device such as a network card for connecting to the network N1 and communicating with each first device 2 via the network N1, and connects to the network N2 to connect the second device 3 and the network N2. It is configured to include a device such as a network card for communicating via the device.

CPU11は、本発明に係るゲートウェイ装置が備えるCPUの一例であり、ゲートウェイ装置1を統括的に制御する。ROM12は、複数のファームウェア及びこれらのファームウェアの実行時に使用されるデータを記憶する。RAM13は、CPU11の作業領域として使用される。 The CPU 11 is an example of a CPU included in the gateway device according to the present invention, and controls the gateway device 1 in an integrated manner. The ROM 12 stores a plurality of firmwares and data used when executing these firmwares. The RAM 13 is used as a work area of the CPU 11.

二次記憶装置14は、本発明に係るゲートウェイ装置が備える記憶装置の一例である。二次記憶装置14は、EEPROM(Electrically Erasable Programmable Read-Only Memory)、フラッシュメモリ等の読み書き可能な不揮発性の半導体メモリ、HDD(Hard Disk Drive)等で構成される記憶装置である。二次記憶装置14は、図3に示すように、プログラム140と、オブジェクトテーブル141とを記憶する。 The secondary storage device 14 is an example of a storage device included in the gateway device according to the present invention. The secondary storage device 14 is a storage device composed of an EEPROM (Electrically Erasable Programmable Read-Only Memory), a readable / writable non-volatile semiconductor memory such as a flash memory, an HDD (Hard Disk Drive), and the like. As shown in FIG. 3, the secondary storage device 14 stores the program 140 and the object table 141.

プログラム140は、本発明に係るプログラムの一例であり、上述した転送機能と代理応答機能とに係る処理が記述されたプログラムである。詳細には、プログラム140には、図4に示すように、管理モジュール1400と、コマンド処理モジュール1401と、指令ライブラリ1402と、オブジェクトライブラリ1403と、第1ドライバ1404と、第2ドライバ1405とが含まれる。 The program 140 is an example of the program according to the present invention, and is a program in which the processes related to the transfer function and the proxy response function described above are described. Specifically, as shown in FIG. 4, the program 140 includes a management module 1400, a command processing module 1401, a command library 1402, an object library 1403, a first driver 1404, and a second driver 1405. Is done.

管理モジュール1400は、本発明に係る管理モジュールの一例であり、オブジェクトテーブル141の管理に関する処理を実行するためのモジュールである。オブジェクトテーブル141は、本発明に係るオブジェクトテーブルの一例であり、ネットワークN1に接続される各第1機器2の機器情報と、ネットワークN2に接続される各第2機器3の機器情報とが格納されるデータテーブルである。例えば、第2機器3の機器情報には、運転状態、センサの計測値(例えば室温)等の動的に変化するデータが含まれる。 The management module 1400 is an example of a management module according to the present invention, and is a module for executing processing related to management of the object table 141. The object table 141 is an example of the object table according to the present invention, and stores the device information of each first device 2 connected to the network N1 and the device information of each second device 3 connected to the network N2. Data table. For example, the device information of the second device 3 includes dynamically changing data such as an operating state and a sensor measurement value (for example, room temperature).

コマンド処理モジュール1401は、本発明に係るコマンド処理モジュールの一例であり、受信したコマンドに応じた処理を実行するためのモジュールである。 The command processing module 1401 is an example of a command processing module according to the present invention, and is a module for executing processing according to a received command.

指令ライブラリ1402は、本発明に係る指令ライブラリの一例であり、各第1機器2との間で送受信されるコマンドの内容と、各第2機器3との間で送受信されるコマンドの内容と、プロトコル変換式等とが定義されたライブラリである。コマンドの内容には、例えば、アドレス、シーケンス番号、コマンド種別、プロパティ等が含まれる。 The command library 1402 is an example of the command library according to the present invention, and includes the contents of commands sent and received to and from each first device 2, the contents of commands sent and received to and from each second device 3, and the contents of commands. This is a library in which protocol conversion expressions and the like are defined. The contents of the command include, for example, an address, a sequence number, a command type, a property, and the like.

オブジェクトライブラリ1403は、本発明に係るオブジェクトライブラリの一例であり、各第1機器2のクラスと各第2機器3のクラスとが定義されたライブラリである。 The object library 1403 is an example of an object library according to the present invention, and is a library in which a class of each first device 2 and a class of each second device 3 are defined.

第1ドライバ1404は、ネットワークN1を介したデータ送受信に関する処理を実行するためのモジュールである。第2ドライバ1405は、ネットワークN2を介したデータ送受信に関する処理を実行するためのモジュールである。 The first driver 1404 is a module for executing processing related to data transmission / reception via the network N1. The second driver 1405 is a module for executing processing related to data transmission / reception via the network N2.

本実施の形態において、管理モジュール1400とコマンド処理モジュール1401とは、ネットワークN1及びN2のそれぞれのプロトコルに依存することなく、複数のプロトコルに共通する仕様で生成される。以下、適宜、管理モジュール1400とコマンド処理モジュール1401とを汎用部と総称し、指令ライブラリ1402と、オブジェクトライブラリ1403と、第1ドライバ1404と、第2ドライバ1405とを非汎用部と総称する。 In the present embodiment, the management module 1400 and the command processing module 1401 are generated with specifications common to a plurality of protocols without depending on the respective protocols of the networks N1 and N2. Hereinafter, the management module 1400 and the command processing module 1401 are collectively referred to as a general-purpose unit, and the command library 1402, the object library 1403, the first driver 1404, and the second driver 1405 are collectively referred to as a non-general-purpose unit.

上記の汎用部と非汎用部との間は、総結合化されている。このため、適用対象のプロトコルのアップデート等の更新又は適用対象のプロトコルの変更は、依存部に属する、指令ライブラリ1402、オブジェクトライブラリ1403、第1ドライバ1404及び第2ドライバ1405の内、少なくとも1つを更新又は変更することで対処できるようになっている。 The general-purpose part and the non-general-purpose part are fully coupled. Therefore, when updating the application target protocol or changing the application target protocol, at least one of the instruction library 1402, the object library 1403, the first driver 1404, and the second driver 1405 belonging to the dependent part is used. It can be dealt with by updating or changing.

ゲートウェイ装置1は、機能的には、図5に示すように、オブジェクト管理部100と、コマンド処理部101と、第1送受信部102と、第2送受信部103とを備える。これらの機能部は、CPU11が、二次記憶装置14に記憶されるプログラム140を実行することで実現される。 Functionally, as shown in FIG. 5, the gateway device 1 includes an object management unit 100, a command processing unit 101, a first transmission / reception unit 102, and a second transmission / reception unit 103. These functional units are realized by the CPU 11 executing the program 140 stored in the secondary storage device 14.

詳細には、オブジェクト管理部100は、CPU11が、プログラム140における管理モジュール1400を実行することで実現され、コマンド処理部101は、CPU11が、プログラム140におけるコマンド処理モジュール1401を実行することで実現され、第1送受信部102は、CPU11が、プログラム140における第1ドライバ1404を実行することで実現され、第2送受信部103は、CPU11が、プログラム140における第2ドライバ1405を実行することで実現される。 Specifically, the object management unit 100 is realized by the CPU 11 executing the management module 1400 in the program 140, and the command processing unit 101 is realized by the CPU 11 executing the command processing module 1401 in the program 140. The first transmission / reception unit 102 is realized by the CPU 11 executing the first driver 1404 in the program 140, and the second transmission / reception unit 103 is realized by the CPU 11 executing the second driver 1405 in the program 140. The program.

オブジェクト管理部100は、オブジェクトテーブル141の管理に関する処理を実行する。詳細には、オブジェクト管理部100は、コマンド処理部101からの要求に従って、オブジェクトテーブル141から機器情報を読み込む処理と、オブジェクトテーブル141に機器情報を書き込む処理とを実行する。 The object management unit 100 executes a process related to the management of the object table 141. Specifically, the object management unit 100 executes a process of reading device information from the object table 141 and a process of writing device information to the object table 141 in accordance with a request from the command processing unit 101.

コマンド処理部101は、指令ライブラリ1402とオブジェクトライブラリ1403とを参照して、受信したコマンドを解析し、当該コマンドに応じた処理を実行する。詳細には、コマンド処理部101は、ゲートウェイ装置1が転送機能に基づいて動作する場合、第1機器2から受信した第2機器3に対するコマンドを、ネットワークN2のプロトコルに則ったコマンドに変換して第2機器3に転送し、また、第2機器3から受信した第1機器2に対するコマンドを、ネットワークN1のプロトコルに則ったコマンドに変換して第1機器2に転送する。 The command processing unit 101 refers to the command library 1402 and the object library 1403, analyzes the received command, and executes processing according to the command. Specifically, when the gateway device 1 operates based on the transfer function, the command processing unit 101 converts the command for the second device 3 received from the first device 2 into a command based on the protocol of the network N2. It is transferred to the second device 3, and the command for the first device 2 received from the second device 3 is converted into a command according to the protocol of the network N1 and transferred to the first device 2.

また、ゲートウェイ装置1が代理応答機能に基づいて動作する場合、コマンド処理部101は、第1機器2から第2機器3に対する要求コマンドを受信すると、オブジェクトテーブル141に保存されている従前の機器情報に基づいて、当該要求コマンドに対する応答コマンドを生成し、生成した応答コマンドを第1送受信部102を介して第1機器2に送信する。また、コマンド処理部101は、第2機器3に対して、第1機器2から受信した要求コマンドをネットワークN2のプロトコルに則った要求コマンド(以下、二次要求コマンドという。)に変換し、第2送受信部103を介して第2機器3に送信する。そして、コマンド処理部101は、二次要求コマンドに対する応答コマンド(以下、二次応答コマンドという。)を第2送受信部103を介して受信すると、受信した二次応答コマンドに基づいてオブジェクトテーブル141を更新する。 Further, when the gateway device 1 operates based on the proxy response function, when the command processing unit 101 receives a request command from the first device 2 to the second device 3, the previous device information stored in the object table 141 A response command for the request command is generated based on the above, and the generated response command is transmitted to the first device 2 via the first transmission / reception unit 102. Further, the command processing unit 101 converts the request command received from the first device 2 into the request command (hereinafter referred to as a secondary request command) according to the protocol of the network N2 for the second device 3, and the second device 3 is used. 2 Transmission to the second device 3 via the transmission / reception unit 103. Then, when the command processing unit 101 receives a response command for the secondary request command (hereinafter, referred to as a secondary response command) via the second transmission / reception unit 103, the command processing unit 101 displays the object table 141 based on the received secondary response command. Update.

転送機能と代理応答機能とは、ネットワークN1とN2の双方のプロトコルの通信速度の差に応じて切り替えられる。以下の説明では、ネットワークN1のプロトコルの通信速度が高速であり、ネットワークN2のプロトコルの通信速度が低速であり、ゲートウェイ装置1が代理応答機能で動作するものとする。 The transfer function and the proxy response function are switched according to the difference in communication speed between the protocols of both networks N1 and N2. In the following description, it is assumed that the communication speed of the protocol of the network N1 is high, the communication speed of the protocol of the network N2 is low, and the gateway device 1 operates by the proxy response function.

また、コマンド処理部101は、第1機器2からプロトコル更新を示す要求コマンドを受信すると、当該要求コマンドの内容に従って指令ライブラリ1402及び/又はオブジェクトライブラリ1403を更新する。 When the command processing unit 101 receives a request command indicating a protocol update from the first device 2, the command processing unit 101 updates the command library 1402 and / or the object library 1403 according to the contents of the request command.

第1送受信部102は、ネットワークN1を介したデータ送受信に関する処理を行う。詳細には、第1送受信部102は、第1機器2から送信された要求コマンドをネットワークN1を介して受信し、受信した要求コマンドを図示しないバッファ(以下、第1バッファという。)を介してコマンド処理部101に供給する。また、コマンド処理部101から第1バッファを介して供給された応答コマンドをネットワークN1を介して第1機器2に送信する。 The first transmission / reception unit 102 performs processing related to data transmission / reception via the network N1. Specifically, the first transmission / reception unit 102 receives the request command transmitted from the first device 2 via the network N1, and receives the received request command via a buffer (hereinafter, referred to as a first buffer) (not shown). It is supplied to the command processing unit 101. Further, the response command supplied from the command processing unit 101 via the first buffer is transmitted to the first device 2 via the network N1.

第2送受信部103は、ネットワークN2を介したデータ送受信に関する処理を行う。詳細には、第2送受信部103は、コマンド処理部101から図示しないバッファ(以下、第2バッファという。)を介して供給された二次要求コマンドをネットワークN2を介して第2機器3に送信する。また、第2機器3から送信された二次応答コマンドをネットワークN2を介して受信し、受信した二次応答コマンドを第2バッファを介してコマンド処理部101に供給する。 The second transmission / reception unit 103 performs processing related to data transmission / reception via the network N2. Specifically, the second transmission / reception unit 103 transmits a secondary request command supplied from the command processing unit 101 via a buffer (hereinafter, referred to as a second buffer) to the second device 3 via the network N2. To do. Further, the secondary response command transmitted from the second device 3 is received via the network N2, and the received secondary response command is supplied to the command processing unit 101 via the second buffer.

オブジェクト管理部100、コマンド処理部101、第1送受信部102及び第2送受信部103は、本発明に係る代理応答手段の一例である。 The object management unit 100, the command processing unit 101, the first transmission / reception unit 102, and the second transmission / reception unit 103 are examples of proxy response means according to the present invention.

図6は、ゲートウェイ装置1が実行する処理の手順を示すフローチャートである。ネットワークN1を介して何れかの第1機器2から要求コマンドを受信すると(ステップS101;YES)、ゲートウェイ装置1は、受信した要求コマンドを解析し、当該要求コマンドが示す要求内容を判別する。 FIG. 6 is a flowchart showing a procedure of processing executed by the gateway device 1. When a request command is received from any of the first devices 2 via the network N1 (step S101; YES), the gateway device 1 analyzes the received request command and determines the request content indicated by the request command.

受信した要求コマンドが、プロトコル更新の要求を示す場合(ステップS102;YES)、ゲートウェイ装置1は、当該要求コマンドの内容に従って指令ライブラリ1402及び/又はオブジェクトライブラリ1403を更新する(ステップS103)。その後、ゲートウェイ装置1の処理は、ステップS101に戻る。 When the received request command indicates a protocol update request (step S102; YES), the gateway device 1 updates the command library 1402 and / or the object library 1403 according to the content of the request command (step S103). After that, the process of the gateway device 1 returns to step S101.

一方、受信した要求コマンドが、プロトコル更新の要求を示すものではない、即ち、何れかの第2機器3に対する機器情報の要求を示す場合(ステップS102;NO)、ゲートウェイ装置1は、保持している当該第2機器3の従前の機器情報に基づいて、当該要求コマンドに対する応答コマンドを生成する(ステップS104)。そして、ゲートウェイ装置1は、生成した応答コマンドをネットワークN1を介して要求元の第1機器2に送信する(ステップS105)。 On the other hand, when the received request command does not indicate a request for protocol update, that is, indicates a request for device information to any second device 3 (step S102; NO), the gateway device 1 holds the device. A response command to the request command is generated based on the previous device information of the second device 3 (step S104). Then, the gateway device 1 transmits the generated response command to the requesting first device 2 via the network N1 (step S105).

また、ゲートウェイ装置1は、受信した要求コマンドをネットワークN2のプロトコルに則った二次要求コマンドに変換し(ステップS106)、対応する第2機器3に送信する(ステップS107)。 Further, the gateway device 1 converts the received request command into a secondary request command according to the protocol of the network N2 (step S106), and transmits the received request command to the corresponding second device 3 (step S107).

二次要求コマンドに対する二次応答コマンドを受信すると(ステップ108;YES)、ゲートウェイ装置1は、受信した二次応答コマンドに基づいて、オブジェクトテーブル141を更新する(ステップS109)。その後、ゲートウェイ装置1の処理は、ステップS101に戻る。 Upon receiving the secondary response command for the secondary request command (step 108; YES), the gateway device 1 updates the object table 141 based on the received secondary response command (step S109). After that, the process of the gateway device 1 returns to step S101.

図7は、ゲートウェイ装置1が代理応答を行う際の各機能部間の処理の流れを示すシーケンス図である。ゲートウェイ装置1の第1送受信部102は、第1機器2から送信された要求コマンドをネットワークN1を介して受信すると、受信した要求コマンドを第1バッファを介してコマンド処理部101に供給する(ステップS201)。 FIG. 7 is a sequence diagram showing a processing flow between each functional unit when the gateway device 1 performs a proxy response. When the first transmission / reception unit 102 of the gateway device 1 receives the request command transmitted from the first device 2 via the network N1, the first transmission / reception unit 102 supplies the received request command to the command processing unit 101 via the first buffer (step). S201).

コマンド処理部101は、第1送受信部102から供給された要求コマンドを指令ライブラリ1402とオブジェクトライブラリ1403とを参照して解析し、当該要求コマンドで要求される第2機器3の機器情報を判別し、判別した機器情報をオブジェクト管理部100に要求する(ステップS202)。 The command processing unit 101 analyzes the request command supplied from the first transmission / reception unit 102 with reference to the command library 1402 and the object library 1403, and determines the device information of the second device 3 requested by the request command. , Request the determined device information to the object management unit 100 (step S202).

オブジェクト管理部100は、要求された機器情報をオブジェクトテーブル141から取得し、取得した機器情報をコマンド処理部101に供給する(ステップS203)。 The object management unit 100 acquires the requested device information from the object table 141, and supplies the acquired device information to the command processing unit 101 (step S203).

コマンド処理部101は、オブジェクト管理部100から供給された機器情報と、指令ライブラリ1402とに基づいて応答コマンドを生成し、第1バッファを介して第1送受信部102に供給すると共に、第1送受信部102から供給された要求コマンドを、指令ライブラリ1402を参照して二次要求コマンドに変換し、第2バッファを介して第2送受信部103に供給する(ステップS204)。 The command processing unit 101 generates a response command based on the device information supplied from the object management unit 100 and the command library 1402, supplies the response command to the first transmission / reception unit 102 via the first buffer, and first transmits / receives the command. The request command supplied from the unit 102 is converted into a secondary request command with reference to the command library 1402, and supplied to the second transmission / reception unit 103 via the second buffer (step S204).

第1送受信部102は、コマンド処理部101から第1バッファを介して供給された応答コマンドをネットワークN1を介して要求元の第1機器2に送信する(ステップS205)。 The first transmission / reception unit 102 transmits a response command supplied from the command processing unit 101 via the first buffer to the request source first device 2 via the network N1 (step S205).

第2送受信部103は、コマンド処理部101から第2バッファを介して供給された二次要求コマンドをネットワークN2を介して対応する第2機器3に送信する(ステップS206)。 The second transmission / reception unit 103 transmits the secondary request command supplied from the command processing unit 101 via the second buffer to the corresponding second device 3 via the network N2 (step S206).

第2機器3は、ゲートウェイ装置1の第2送受信部103から送信された二次要求コマンドをネットワークN2を介して受信すると、当該二次要求コマンドで要求される自機器の機器情報を取得し、取得した機器情報が格納された二次応答コマンドを生成し、生成した二次応答コマンドをネットワークN2を介してゲートウェイ装置1に送信する(ステップS207)。 When the second device 3 receives the secondary request command transmitted from the second transmission / reception unit 103 of the gateway device 1 via the network N2, the second device 3 acquires the device information of its own device requested by the secondary request command. A secondary response command in which the acquired device information is stored is generated, and the generated secondary response command is transmitted to the gateway device 1 via the network N2 (step S207).

ゲートウェイ装置1の第2送受信部103は、第2機器3から送信された二次応答コマンドをネットワークN2を介して受信すると、受信した二次応答コマンドを第2バッファを介してコマンド処理部101に供給する(ステップS208)。 When the second transmission / reception unit 103 of the gateway device 1 receives the secondary response command transmitted from the second device 3 via the network N2, the second transmission / reception unit 103 sends the received secondary response command to the command processing unit 101 via the second buffer. Supply (step S208).

コマンド処理部101は、第2送受信部103から供給された二次応答コマンドを第2バッファを介して受け取ると、当該二次応答コマンドから機器情報を抽出し、抽出した機器情報をオブジェクト管理部100に供給してオブジェクトテーブル141の更新を要求する(ステップS209)。 When the command processing unit 101 receives the secondary response command supplied from the second transmission / reception unit 103 via the second buffer, the command processing unit 101 extracts device information from the secondary response command and extracts the extracted device information into the object management unit 100. Requests the update of the object table 141 (step S209).

オブジェクト管理部100は、コマンド処理部101から供給された機器情報に基づいて、オブジェクトテーブル141を更新する(ステップS210)。 The object management unit 100 updates the object table 141 based on the device information supplied from the command processing unit 101 (step S210).

以上説明したように、本実施の形態のゲートウェイ装置1によれば、代理応答機能を有するため、ネットワークN1とN2のそれぞれのプロトコルの通信速度が大きく異なる場合の不都合を解消することが可能となる。 As described above, since the gateway device 1 of the present embodiment has a proxy response function, it is possible to eliminate the inconvenience when the communication speeds of the respective protocols of the networks N1 and N2 are significantly different. ..

さらに、汎用部、即ち、オブジェクトテーブル141を管理するオブジェクト管理部100に対応する管理モジュール1400と、受信したコマンドに応じた処理を行うコマンド処理部101に対応するコマンド処理モジュール1401とが、特定のプロトコルに依存せずに、複数のプロトコルに共通する仕様で生成される。そして、汎用部と、非汎用部(指令ライブラリ1402、オブジェクトライブラリ1403、第1ドライバ1404及び第2ドライバ1405)との間は、疎結合化されている。 Further, the general-purpose unit, that is, the management module 1400 corresponding to the object management unit 100 that manages the object table 141, and the command processing module 1401 corresponding to the command processing unit 101 that performs processing according to the received command are specific. It is generated with specifications common to multiple protocols without depending on the protocol. Then, the general-purpose unit and the non-general-purpose unit (command library 1402, object library 1403, first driver 1404, and second driver 1405) are loosely coupled.

これにより、例えば、プロトコルのアップデート等の更新時において、指令ライブラリ1402及び/又はオブジェクトライブラリ1403を更新等するだけでよい。このため、プログラム140の再起動の必要がなく、また、オブジェクトテーブル141に格納される機器情報が維持されるため、通信遮断を極力回避することが可能となる。 Thereby, for example, at the time of updating such as updating the protocol, it is only necessary to update the command library 1402 and / or the object library 1403. Therefore, it is not necessary to restart the program 140, and the device information stored in the object table 141 is maintained, so that communication interruption can be avoided as much as possible.

また、適用対象を他のプロトコルに変更する場合、ゲートウェイ装置1において、非汎用部に属する、指令ライブラリ1402、オブジェクトライブラリ1403、第1ドライバ1404及び第2ドライバ1405の内の少なくとも1つを変更するだけで済むため、作業性がよい。また、プロトコルの変更に伴い、プログラム140を改修する場合、プログラム140全体を改修する必要がなく、指令ライブラリ1402、オブジェクトライブラリ1403、第1ドライバ1404及び第2ドライバ1405の内の少なくとも1つを改修すればよいため、拡張性がよく、開発コスト、メンテナンスコストの低減化が図れる。 When changing the application target to another protocol, at least one of the command library 1402, the object library 1403, the first driver 1404, and the second driver 1405 belonging to the non-general purpose part is changed in the gateway device 1. Workability is good because it only needs to be done. Further, when the program 140 is modified due to the change of the protocol, it is not necessary to modify the entire program 140, and at least one of the command library 1402, the object library 1403, the first driver 1404, and the second driver 1405 is modified. Therefore, the expandability is good, and the development cost and the maintenance cost can be reduced.

なお、本発明は、上記の実施の形態に限定されず、本発明の要旨を逸脱しない範囲での種々の変更は勿論可能である。 It should be noted that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.

例えば、各第2機器3から定期的に機器情報が格納された通報コマンドが、ゲートウェイ装置1に送信される場合、ゲートウェイ装置1は、代理応答の際、二次要求コマンドを第2機器3に送信しなくてもよい。 For example, when a notification command in which device information is periodically stored is transmitted from each second device 3 to the gateway device 1, the gateway device 1 sends a secondary request command to the second device 3 at the time of a proxy response. You do not have to send it.

上記の実施の形態では、指令ライブラリ1402と、オブジェクトライブラリ1403との内の少なくとも1つの更新によって、適用対象のプロトコルが更新され得る例について説明した。しかし、ネットワークN1のプロトコルが更新される際、必要に応じて第1ドライバ1404が更新されてもよいし、ネットワークN2のプロトコルが更新される際、必要に応じて第2ドライバ1405が更新されてもよい。 In the above embodiment, an example has been described in which the protocol to be applied can be updated by updating at least one of the command library 1402 and the object library 1403. However, when the protocol of the network N1 is updated, the first driver 1404 may be updated as needed, and when the protocol of the network N2 is updated, the second driver 1405 is updated as needed. May be good.

また、プログラム140の全体、プログラム140の一部のモジュール又はライブラリは、CD−ROM(Compact Disc Read Only Memory)、DVD(Digital Versatile Disc)、光磁気ディスク(Magneto-Optical Disc)、USB(Universal Serial Bus)メモリ、メモリカード、HDD等のコンピュータ読み取り可能な記録媒体に格納して配布することが可能である。 In addition, the entire program 140 and a part of the modules or libraries of the program 140 are CD-ROM (Compact Disc Read Only Memory), DVD (Digital Versatile Disc), magneto-optical disc (Magneto-Optical Disc), and USB (Universal Serial). Bus) It is possible to store and distribute it in a computer-readable recording medium such as a memory, a memory card, or an HDD.

また、プログラム140の全体、プログラム140の一部のモジュール又はライブラリをインターネット上の他のサーバが有するディスク装置等に格納しておき、当該サーバからゲートウェイ装置1に、プログラム140の全体、プログラム140の一部のモジュール又はライブラリがダウンロードされるようにしてもよい。 Further, the entire program 140 and a part of the modules or libraries of the program 140 are stored in a disk device or the like owned by another server on the Internet, and the entire program 140 or the program 140 is stored in the gateway device 1 from the server. Some modules or libraries may be downloaded.

本発明は、広義の精神と範囲を逸脱することなく、様々な実施の形態及び変形が可能である。また、上述した実施の形態は、本発明を説明するためのものであり、本発明の範囲を限定するものではない。つまり、本発明の範囲は、実施の形態ではなく、特許請求の範囲によって示される。そして、特許請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、本発明の範囲内とみなされる。 The present invention is capable of various embodiments and modifications without departing from the broad spirit and scope. Moreover, the above-described embodiment is for explaining the present invention, and does not limit the scope of the present invention. That is, the scope of the present invention is indicated by the scope of claims, not by the embodiment. Then, various modifications made within the scope of the claims and the equivalent meaning of the invention are considered to be within the scope of the present invention.

1 ゲートウェイ装置、2 第1機器、3 第2機器、10 通信インタフェース、11 CPU、12 ROM、13 RAM、14 二次記憶装置、15 バス、100 オブジェクト管理部、101 コマンド処理部、102 第1送受信部、103 第2送信部、140 プログラム、141 オブジェクトテーブル、1400 管理モジュール、1401 コマンド処理モジュール、1402 指令ライブラリ、1403 オブジェクトライブラリ、1404 第1ドライバ、1405 第2ドライバ、N1,N2 ネットワーク 1 Gateway device, 2 1st device, 3 2nd device, 10 communication interface, 11 CPU, 12 ROM, 13 RAM, 14 secondary storage device, 15 bus, 100 object management unit, 101 command processing unit, 102 first transmission / reception Unit, 103 Second transmitter, 140 program, 141 object table, 1400 management module, 1401 command processing module, 1402 command library, 1403 object library, 1404 first driver, 1405 second driver, N1, N2 network

Claims (4)

CPUと、記憶装置と、通信インタフェースと、を備え、第1ネットワークと第2ネットワークとに接続されるゲートウェイ装置であって、
前記CPUが前記記憶装置に記憶されたプログラムを実行することで提供される機能であって、前記第1ネットワークに接続される第1機器から前記第2ネットワークに接続される第2機器に対して送信された要求コマンドを受信し、前記記憶装置に記憶された前記第1機器及び前記第2機器のそれぞれに関する機器情報が格納されるオブジェクトテーブルを参照して、前記要求コマンドの内容に応じた応答コマンドを生成し、生成した応答コマンドを前記第1機器に送信する代理応答手段を備え、
前記プログラムには、前記オブジェクトテーブルの管理に関する処理を実行するための管理モジュールと、受信したコマンドに応じた処理を実行するためのコマンド処理モジュールと、前記第1機器との間で送受信されるコマンドの内容と前記第2機器との間で送受信されるコマンドの内容とが定義された指令ライブラリと、前記第1機器及び前記第2機器のそれぞれのクラスが定義されたオブジェクトライブラリと、が含まれ、
前記指令ライブラリと、前記オブジェクトライブラリとの内の少なくとも1つの更新によって、適用対象のプロトコルが更新され得る、ゲートウェイ装置。
A gateway device including a CPU, a storage device, and a communication interface, which is connected to a first network and a second network.
A function provided by the CPU executing a program stored in the storage device, from a first device connected to the first network to a second device connected to the second network. A response according to the content of the request command is received by receiving the transmitted request command and referring to the object table in which the device information about each of the first device and the second device stored in the storage device is stored. A proxy response means for generating a command and transmitting the generated response command to the first device is provided.
The program includes a management module for executing processing related to management of the object table, a command processing module for executing processing according to a received command, and commands sent and received between the first device. A command library in which the contents of the above and the contents of commands sent and received between the second devices are defined, and an object library in which the classes of the first device and the second device are defined are included. ,
A gateway device in which an applicable protocol can be updated by updating at least one of the command library and the object library.
前記代理応答手段は、前記第1機器に前記応答コマンドを送信後、前記要求コマンドを前記第2ネットワークのプロトコルに則った二次要求コマンドに変換して前記第2機器に送信し、前記二次要求コマンドに応答して前記第2機器から送信された二次応答コマンドを受信し、受信した二次応答コマンドに基づいて前記オブジェクトテーブルを更新する、請求項1に記載のゲートウェイ装置。 After transmitting the response command to the first device, the proxy response means converts the request command into a secondary request command according to the protocol of the second network and transmits the secondary request command to the second device. The gateway device according to claim 1, which receives a secondary response command transmitted from the second device in response to a request command, and updates the object table based on the received secondary response command. 前記代理応答手段は、前記第2機器から定期的に送信される通報コマンドを受信し、受信した通報コマンドに基づいて前記オブジェクトテーブルを更新する、請求項1に記載のゲートウェイ装置。 The gateway device according to claim 1, wherein the proxy response means receives a notification command periodically transmitted from the second device, and updates the object table based on the received notification command. コンピュータを、
第1ネットワークに接続される第1機器から第2ネットワークに接続される第2機器に対して送信された要求コマンドを受信し、記憶装置に記憶された前記第1機器及び前記第2機器のそれぞれに関する機器情報が格納されるオブジェクトテーブルを参照して、前記要求コマンドの内容に応じた応答コマンドを生成し、生成した応答コマンドを前記第1機器に送信する代理応答手段、として機能させるためのプログラムであって、
前記オブジェクトテーブルの管理に関する処理を実行するための管理モジュールと、
受信したコマンドに応じた処理を実行するためのコマンド処理モジュールと、
前記第1機器との間で送受信されるコマンドの内容と前記第2機器との間で送受信されるコマンドの内容とが定義された指令ライブラリと、
前記第1機器及び前記第2機器のそれぞれのクラスが定義されたオブジェクトライブラリと、を含み、
前記指令ライブラリと、前記オブジェクトライブラリとの内の少なくとも1つの更新によって、適用対象のプロトコルが更新され得る、プログラム。
Computer,
Each of the first device and the second device stored in the storage device after receiving the request command transmitted from the first device connected to the first network to the second device connected to the second network. A program for generating a response command according to the content of the request command and functioning as a proxy response means for transmitting the generated response command to the first device by referring to an object table in which device information related to the device is stored. And
A management module for executing the processing related to the management of the object table, and
A command processing module for executing processing according to the received command,
A command library that defines the contents of commands sent and received to and from the first device and the contents of commands sent and received to and from the second device.
Includes an object library in which each class of the first device and the second device is defined.
A program in which an applicable protocol can be updated by updating at least one of the command library and the object library.
JP2019121629A 2019-06-28 2019-06-28 Gateway device and program Active JP7246271B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019121629A JP7246271B2 (en) 2019-06-28 2019-06-28 Gateway device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019121629A JP7246271B2 (en) 2019-06-28 2019-06-28 Gateway device and program

Publications (2)

Publication Number Publication Date
JP2021010058A true JP2021010058A (en) 2021-01-28
JP7246271B2 JP7246271B2 (en) 2023-03-27

Family

ID=74199641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019121629A Active JP7246271B2 (en) 2019-06-28 2019-06-28 Gateway device and program

Country Status (1)

Country Link
JP (1) JP7246271B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1185712A (en) * 1997-09-08 1999-03-30 Nec Corp Network monitoring system and its file transfer method
JP2005309669A (en) * 2004-04-20 2005-11-04 Nec Fielding Ltd Information collecting system and method
US20160006604A1 (en) * 2014-07-03 2016-01-07 GroundControl Solutions, Inc. System For Cloud-Managed Mobile Device Administration
JP2016127321A (en) * 2014-12-26 2016-07-11 日本電信電話株式会社 Dynamic control system and dynamic control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1185712A (en) * 1997-09-08 1999-03-30 Nec Corp Network monitoring system and its file transfer method
JP2005309669A (en) * 2004-04-20 2005-11-04 Nec Fielding Ltd Information collecting system and method
US20160006604A1 (en) * 2014-07-03 2016-01-07 GroundControl Solutions, Inc. System For Cloud-Managed Mobile Device Administration
JP2016127321A (en) * 2014-12-26 2016-07-11 日本電信電話株式会社 Dynamic control system and dynamic control method

Also Published As

Publication number Publication date
JP7246271B2 (en) 2023-03-27

Similar Documents

Publication Publication Date Title
US8776080B2 (en) Management component transport protocol interconnect filtering and routing
EP2562970A1 (en) Switch, and flow table control method
US11394800B2 (en) Systems and methods for remote network topology discovery
CN110581805A (en) Routing table updating method, device, switch and storage medium
CN105491082B (en) Remote resource access method and switching equipment
JP7246271B2 (en) Gateway device and program
CN110278716B (en) PLC, network unit, CPU unit, and data transfer method
US9509657B2 (en) Information processing apparatus, relay method, and computer-readable storage medium
US20220327088A1 (en) Predicting free buffer space in a usb extension environment
WO2017047657A1 (en) Buffer control apparatus, communication node, and relay apparatus
KR102555907B1 (en) A vehicle and method for controlling communication thereof
JP6273972B2 (en) Information processing apparatus, transmission / reception apparatus, and control method for information processing apparatus
JP7091929B2 (en) Relay system
KR100643815B1 (en) I/o configuration messaging within a link-based computing system
US11656898B2 (en) Information processing device, method, and program
US20210320899A1 (en) Notification device and notification method
US20140281053A1 (en) I/o device control system and method for controlling i/o device
CN113711195A (en) Transmission device, information processing device, and data transmission method
JP2009199281A (en) Data transmission device
JP7338272B2 (en) Information processing device and information processing program
WO2023132033A1 (en) Relay device, relay method, and program
JP4455209B2 (en) Information processing device
KR20090000743A (en) Method for remote-controlling pc by use of internet protocol address and apparatus thereof
JP2022120453A (en) Maintenance control apparatus, maintenance control method, maintenance control system, and maintenance control program
JP2006005719A (en) Address conversion program, program utilizing method, information processor and computer readable medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220411

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230131

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230314

R150 Certificate of patent or registration of utility model

Ref document number: 7246271

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150