Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7371410B2 - Information processing device and information processing program - Google Patents
[go: Go Back, main page]

JP7371410B2 - Information processing device and information processing program - Google Patents

Information processing device and information processing program Download PDF

Info

Publication number
JP7371410B2
JP7371410B2 JP2019170141A JP2019170141A JP7371410B2 JP 7371410 B2 JP7371410 B2 JP 7371410B2 JP 2019170141 A JP2019170141 A JP 2019170141A JP 2019170141 A JP2019170141 A JP 2019170141A JP 7371410 B2 JP7371410 B2 JP 7371410B2
Authority
JP
Japan
Prior art keywords
information
data
access information
protocol
protocol conversion
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
JP2019170141A
Other languages
Japanese (ja)
Other versions
JP2021048504A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2019170141A priority Critical patent/JP7371410B2/en
Publication of JP2021048504A publication Critical patent/JP2021048504A/en
Application granted granted Critical
Publication of JP7371410B2 publication Critical patent/JP7371410B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、情報処理装置、及び、情報処理プログラムに関する。 The present invention relates to an information processing device and an information processing program.

従来より、複数のセンサ端末で検出されたセンサデータを処理装置へ中継転送するセンサ中継装置であって、前記センサ端末と通信規格とが対応付けて登録されている通信規格対応リストと、前記通信規格で用いる通信フォーマットとを記憶する記憶部とを備えることを特徴とするセンサ中継装置がある。 Conventionally, a sensor relay device relays and transfers sensor data detected by a plurality of sensor terminals to a processing device, and includes a communication standard compatibility list in which the sensor terminals and communication standards are registered in association with each other, and the communication standard compatibility list. There is a sensor relay device characterized by comprising a storage unit that stores a communication format used in the standard.

前記通信規格対応リストから特定した前記センサ端末と対応する通信規格に基づいて、前記センサ端末と通信を行うことにより、前記センサ端末で検出されたセンサデータを受信し、前記通信規格に対応する前記通信フォーマットに基づいて前記センサデータをフォーマット変換した後、処理装置へ中継転送する中継処理部をさらに備える。 By communicating with the sensor terminal based on the communication standard corresponding to the sensor terminal specified from the communication standard compatibility list, the sensor data detected by the sensor terminal is received, and the sensor data corresponding to the communication standard is received. The apparatus further includes a relay processing section that converts the format of the sensor data based on a communication format and then relays the sensor data to a processing device.

前記処理装置から新たに通知された通信規格対応リストまたは通信フォーマットに基づき、前記記憶部の前記通信規格対応リストまたは通信フォーマットを更新する中継管理部をさらに備える(例えば、特許文献1参照)。 The device further includes a relay management unit that updates the communication standard compliance list or communication format in the storage unit based on the communication standard compliance list or communication format newly notified from the processing device (for example, see Patent Document 1).

特表2017-175703号公報Special table 2017-175703 publication

ところで、従来のセンサ中継装置(中継装置)では、通信フォーマットの更新をどのように行うかは規定されていない。特に、プロトコル変換をどのように行うかについては何も規定されていない。 By the way, in conventional sensor relay devices (relay devices), it is not specified how to update the communication format. In particular, nothing is specified as to how protocol conversion should be performed.

例えば、制御装置(制御部)と複数のデバイスとの間で中継装置がデータを中継する場合に、複数のデバイスの通信プロトコルが異なる場合、又は、デバイスの機能毎にデータの形式等が異なるような場合には、プロトコル変換を容易に行うことができない。 For example, when a relay device relays data between a control device (control unit) and multiple devices, the communication protocols of the multiple devices may differ, or the data format etc. may differ depending on the function of the device. In such cases, protocol conversion cannot be easily performed.

そこで、データのプロトコル変換を容易に行える情報処理装置、及び、情報処理プログラムを提供することを目的とする。 Therefore, it is an object of the present invention to provide an information processing device and an information processing program that can easily perform data protocol conversion.

本発明の実施の形態の情報処理装置は、第1ネットワーク側の第1プロトコルと第2ネットワーク側の第2プロトコルとのプロトコル変換処理に用いるデータのうち、前記第2ネットワークを介して接続されるデバイスに固有のデバイスアクセス情報を取得する情報取得部と、前記情報取得部によって取得されるデバイスアクセス情報と、当該デバイスアクセス情報に含まれるアクセス先を表す情報とを関連付けて格納する第1格納部と、前記取得されたデバイスアクセス情報のうちの前記アクセス先を複数の前記デバイスについての共通フォーマットで表す共通アクセス情報を生成する情報生成部と、前記生成された共通アクセス情報を前記第1ネットワークに接続される制御部に提供する情報提供部と、前記提供された共通アクセス情報に基づいて前記第1ネットワーク及び前記第2ネットワークを介して前記制御部がアクセスするアクセス先を判別する判別部と、前記判別部によって判別されるアクセス先に対応するデバイスアクセス情報を前記第1格納部に格納されているデバイスアクセス情報から選択する情報選択部と、前記情報選択部によって選択されるデバイスアクセス情報によって特定される前記第1プロトコル及び前記第2プロトコルのプロトコル変換ルールで前記制御部から前記第1ネットワークを介して受信する第1データのプロトコル変換と、前記第2ネットワークを介して前記デバイスから受信する第2データのプロトコル変換とを行うプロトコル変換処理部とを含前記アクセス先を表す情報は、前記デバイスのデバイス名及び機能名を表す情報であり、前記デバイスアクセス情報は、前記デバイス名、前記機能名、前記第1データのデータ形式、及び、前記第2データのデータ形式を表す情報を含み、前記共通アクセス情報は、前記アクセス先に加えて、前記第1データのデータ形式、及び、前記第2データのデータ形式を表す情報であり、前記情報生成部は、前記デバイスアクセス情報に含まれる、前記デバイス名、前記機能名、前記第1データのデータ形式、及び、前記第2データのデータ形式に基づいて、前記共通アクセス情報を生成する

The information processing apparatus according to the embodiment of the present invention includes data used for protocol conversion processing between a first protocol on the first network side and a second protocol on the second network side, which are connected via the second network. an information acquisition unit that acquires device access information specific to a device; and a first storage unit that stores the device access information acquired by the information acquisition unit in association with information representing an access destination included in the device access information. an information generation unit that generates common access information that represents the access destination of the acquired device access information in a common format for a plurality of devices; an information providing unit that provides information to a connected control unit; a determining unit that determines an access destination to be accessed by the control unit via the first network and the second network based on the provided common access information; an information selection unit that selects device access information corresponding to the access destination determined by the determination unit from the device access information stored in the first storage unit; and identification based on the device access information selected by the information selection unit. protocol conversion of first data received from the control unit via the first network , and protocol conversion of first data received from the device via the second network using protocol conversion rules for the first protocol and the second protocol. the information representing the access destination is information representing the device name and function name of the device, and the device access information includes the device name , the The common access information includes information representing a function name, a data format of the first data, and a data format of the second data, and the common access information includes, in addition to the access destination, the data format of the first data and the data format of the second data. information representing a data format of the second data; The common access information is generated based on the format .

データのプロトコル変換を容易に行える情報処理装置、及び、情報処理プログラムを提供することができる。 An information processing device and an information processing program that can easily perform data protocol conversion can be provided.

実施の形態のGW100を含むシステム1を示す図である。FIG. 1 is a diagram showing a system 1 including a GW 100 according to an embodiment. GW100を実現するコンピュータシステム20の斜視図である。FIG. 2 is a perspective view of a computer system 20 that implements the GW 100. コンピュータシステム20の本体部21内の要部の構成を説明するブロック図である。2 is a block diagram illustrating the configuration of main parts in a main body 21 of a computer system 20. FIG. GW100とスマートフォン端末機70の処理を概略的に示す図である。3 is a diagram schematically showing the processing of the GW 100 and the smartphone terminal 70. FIG. GW100でのプロトコル変換処理を説明する図である。It is a figure explaining the protocol conversion process in GW100. GW100の機能構成を示す図である。It is a diagram showing the functional configuration of the GW 100. デバイスアクセス情報とプロトコル変換ルールを関連付けたデータを示す図である。FIG. 3 is a diagram showing data in which device access information and protocol conversion rules are associated. デバイス名、機能名、及びデバイスアクセス情報を関連付けたデータを示す図である。FIG. 3 is a diagram showing data in which a device name, a function name, and device access information are associated with each other. GW100の制御装置110が実行する処理を示すフローチャートである。It is a flowchart which shows the process which control device 110 of GW100 performs. GW100の制御装置110が実行する処理を示すフローチャートである。It is a flowchart which shows the process which control device 110 of GW100 performs. GW100の処理を説明する図である。It is a figure explaining the processing of GW100. GW100の処理を説明する図である。It is a figure explaining the processing of GW100. GW100の処理を説明する図である。It is a figure explaining the processing of GW100.

以下、本発明の情報処理装置、及び、情報処理プログラムを適用した実施の形態について説明する。 Embodiments to which an information processing apparatus and an information processing program of the present invention are applied will be described below.

<実施の形態>
図1は、実施の形態のGW(Gateway:ゲートウェイ)100を含むシステム1を示す図である。システム1は、FAN(Field Area Network)50、ネットワーク60、スマートフォン端末機70を含む。GW100は、FAN50に含まれており、情報処理装置の一例である。
<Embodiment>
FIG. 1 is a diagram showing a system 1 including a GW (Gateway) 100 according to an embodiment. The system 1 includes a FAN (Field Area Network) 50, a network 60, and a smartphone terminal 70. The GW 100 is included in the FAN 50 and is an example of an information processing device.

FAN50は、GW100の他にデバイスA、Bを含む。FAN50の内部において、GW100とデバイスA、Bは、バス51によって接続されている。デバイスA、Bは、例えば、PC(Personal Computer)のような情報処理を行う装置である。 The FAN 50 includes devices A and B in addition to the GW 100. Inside the FAN 50, the GW 100 and devices A and B are connected by a bus 51. Devices A and B are devices that perform information processing, such as PCs (Personal Computers).

ネットワーク60は、一例としてWAN(Wide Area Network)であり、いわゆるインターネットである。なお、ネットワーク60は、WAN以外の形式のものであってもよい。 The network 60 is, for example, a WAN (Wide Area Network), which is the so-called Internet. Note that the network 60 may be of a type other than WAN.

スマートフォン端末機70は、制御部70Aを有する。制御部70Aは、スマートフォン端末機70の機能のうちの1つを実行する制御部であり、デバイスA、Bの操作に用いられるアプリケーションプログラムが実行されることによって実現される機能(ファンクション)を機能ブロックとして示したものである。 The smartphone terminal 70 has a control section 70A. The control unit 70A is a control unit that executes one of the functions of the smartphone terminal 70, and executes a function that is realized by executing an application program used to operate the devices A and B. It is shown as a block.

GW100は、FAN50の内部ではバス51を介してデバイスA、Bに接続され、FAN50の外部ではネットワーク60を介してスマートフォン端末機70に接続されている。ネットワーク60を介してGW100とスマートフォン端末機70とが通信する際のプロトコルと、FAN50の内部でGW100とデバイスA、Bとが通信する際のプロトコルとは異なるため、GW100はプロトコルの変換処理を行って、データを中継する。 The GW 100 is connected to devices A and B via a bus 51 inside the FAN 50, and connected to a smartphone terminal 70 via a network 60 outside the FAN 50. Since the protocol used when the GW 100 and the smartphone terminal 70 communicate via the network 60 is different from the protocol used when the GW 100 and devices A and B communicate within the FAN 50, the GW 100 performs protocol conversion processing. and relay the data.

GW100とスマートフォン端末機70とが通信する際のプロトコルは、第1プロトコルの一例であり、具体例はHTTP(Hyper Text Transfer Protocol)プロトコルである。また、ネットワーク60は第1ネットワークの一例である。 The protocol used when the GW 100 and the smartphone terminal 70 communicate is an example of the first protocol, and a specific example is the HTTP (Hyper Text Transfer Protocol) protocol. Further, the network 60 is an example of a first network.

FAN50の内部でGW100とデバイスA、Bとが通信する際のプロトコルは、第2プロトコルの一例であり、具体例はシリアル通信プロトコルである。FAN50は、第2ネットワークの一例である。 The protocol used when the GW 100 and devices A and B communicate within the FAN 50 is an example of the second protocol, and a specific example is a serial communication protocol. FAN 50 is an example of a second network.

なお、デバイスAがGW100と通信する際のプロトコルと、デバイスBがGW100と通信する際のプロトコルとは、異なっていてもよい。 Note that the protocol used when device A communicates with GW 100 and the protocol used when device B communicates with GW 100 may be different.

図2は、GW100を実現するコンピュータシステム20の斜視図である。図2に示すコンピュータシステム20は、本体部21、ディスプレイ22、キーボード23、マウス24、及び通信モジュール25を含む。 FIG. 2 is a perspective view of a computer system 20 that implements the GW 100. The computer system 20 shown in FIG. 2 includes a main body 21, a display 22, a keyboard 23, a mouse 24, and a communication module 25.

本体部21は、CPU(Central Processing Unit:中央演算装置)、HDD(Hard Disk Drive:ハードディスクドライブ)、及びディスクドライブ等を内蔵する。ディスプレイ22は、本体部21からの指示により画面22A上に処理結果等を表示する。ディスプレイ22は、例えば、液晶モニタであればよい。キーボード23は、コンピュータシステム20に種々の情報を入力するための入力部である。マウス24は、ディスプレイ22の画面22A上の任意の位置を指定する入力部である。通信モジュール25は、無線通信でスマートフォン端末機70と通信するとともに、有線通信でデバイスA、Bと通信する。 The main body 21 includes a CPU (Central Processing Unit), an HDD (Hard Disk Drive), a disk drive, and the like. The display 22 displays processing results and the like on the screen 22A according to instructions from the main body 21. The display 22 may be, for example, a liquid crystal monitor. The keyboard 23 is an input unit for inputting various information into the computer system 20. The mouse 24 is an input unit for specifying an arbitrary position on the screen 22A of the display 22. The communication module 25 communicates with the smartphone terminal 70 via wireless communication, and also communicates with devices A and B via wired communication.

コンピュータシステム20にGW100としての機能を持たせる情報処理プログラムは、ディスク27等の可搬型記録媒体に格納されるか、通信モジュール25等の通信装置を使って他のコンピュータシステムの記録媒体26からダウンロードされ、コンピュータシステム20に入力されてコンパイルされる。 The information processing program that makes the computer system 20 function as the GW 100 is stored in a portable recording medium such as a disk 27 or downloaded from a recording medium 26 of another computer system using a communication device such as a communication module 25. The data is input into the computer system 20 and compiled.

コンピュータシステム20にGW100としての機能を持たせる情報処理プログラムは、コンピュータシステム20をGW100として動作させる。この情報処理プログラムは、例えばディスク27等のコンピュータ読み取り可能な記録媒体に格納されていてもよい。コンピュータ読み取り可能な記録媒体は、ディスク27、ICカードメモリ、フロッピー(登録商標)ディスク等の磁気ディスク、光磁気ディスク、CD-ROM、USB(Universal Serial Bus)メモリ等の可搬型記録媒体に限定されるものではない。コンピュータ読み取り可能な記録媒体は、通信モジュール25又はLAN等の通信装置を介して接続されるコンピュータシステムでアクセス可能な各種記録媒体を含む。 The information processing program that makes the computer system 20 function as the GW 100 causes the computer system 20 to operate as the GW 100. This information processing program may be stored in a computer-readable recording medium such as the disk 27, for example. Computer-readable recording media are limited to portable recording media such as disks 27, IC card memories, magnetic disks such as floppy (registered trademark) disks, magneto-optical disks, CD-ROMs, and USB (Universal Serial Bus) memories. It's not something you can do. The computer-readable recording medium includes various recording media that can be accessed by a computer system connected via the communication module 25 or a communication device such as a LAN.

図3は、コンピュータシステム20の本体部21内の要部の構成を説明するブロック図である。本体部21は、バス30によって接続されたCPU31、RAM(Random Access Memory)又はROM(Read Only Memory)等を含むメモリ部32、ディスク27用のディスクドライブ33、及びハードディスクドライブ(HDD)34を含む。 FIG. 3 is a block diagram illustrating the configuration of main parts within the main body 21 of the computer system 20. As shown in FIG. The main unit 21 includes a CPU 31 connected via a bus 30, a memory unit 32 including RAM (Random Access Memory) or ROM (Read Only Memory), a disk drive 33 for the disk 27, and a hard disk drive (HDD) 34. .

なお、コンピュータシステム20は、図2及び図3に示す構成のものに限定されず、各種周知の要素を付加してもよく、又は代替的に用いてもよい。 Note that the computer system 20 is not limited to the configuration shown in FIGS. 2 and 3, and various well-known elements may be added or alternatively used.

図4は、GW100とスマートフォン端末機70の処理を概略的に示す図である。図4では、GW100、スマートフォン端末機70、及びデバイスAのみを示し、その他のものを省略する。また、ここでは、デバイスの機能を説明するにあたり、デバイスAの機能1を例として用いるが、デバイスAの機能1以外の機能、及び、デバイスA以外のデバイスについても同様である。また、ここでは、GW100がメモリを有するものとして説明する。GW100のメモリは、図3に示すGW100のメモリ部32及びHDD34によって実現される。 FIG. 4 is a diagram schematically showing the processing of the GW 100 and the smartphone terminal 70. In FIG. 4, only the GW 100, the smartphone terminal 70, and the device A are shown, and the others are omitted. Further, here, in explaining the functions of the devices, Function 1 of Device A will be used as an example, but the same applies to functions other than Function 1 of Device A and devices other than Device A. Further, here, the description will be made assuming that the GW 100 has a memory. The memory of the GW 100 is realized by the memory unit 32 and HDD 34 of the GW 100 shown in FIG.

まず、工程(1)に示すように、GW100にデバイスアクセス情報を登録する。GW100又はデバイスAの管理者等がキーボード23及びマウス24等(図2参照)を操作してGW100に登録することで、GW100は、デバイスアクセス情報をメモリに格納する。 First, as shown in step (1), device access information is registered in the GW 100. When the administrator of the GW 100 or device A registers the device access information in the GW 100 by operating the keyboard 23, mouse 24, etc. (see FIG. 2), the GW 100 stores the device access information in its memory.

デバイスAのデバイスアクセス情報とは、デバイスAに固有の情報であり、デバイスAの名称(デバイス名)、機能名(ここでは機能1)、プロトコル、コマンド、入力データの形式(入力)、出力データの形式(出力)である。機能名は、デバイスAが有する機能を表す。 The device access information of device A is information specific to device A, including the name of device A (device name), function name (here, function 1), protocol, command, input data format (input), output data. The format (output) is The function name represents a function that device A has.

プロトコルは、デバイスAがGW100との間での通信で用いるプロトコルであり、ここではプロトコルXである。コマンドは、デバイスAの機能を実行する際のコマンドを表す。コマンドは、HEX(hexadecimal:16進数)形式で表され、ここでは"0A"である。 The protocol is a protocol used by device A in communication with GW 100, and is protocol X here. The command represents a command for executing a function of device A. The command is expressed in HEX (hexadecimal) format, and is "0A" here.

入力データの形式(入力)は、GW100を介してスマートフォン端末機70からデバイスAに入力されるデータ(入力データ)の形式を表し、ここでは"Number"(数字)である。入力データは第1データの一例である。 The input data format (input) represents the format of data (input data) input from the smartphone terminal 70 to the device A via the GW 100, and is "Number" here. The input data is an example of first data.

出力データの形式(出力)は、デバイスAからGW100を介してスマートフォン端末機70に出力されるデータ(出力データ)の形式を表し、ここでは"String"(文字列)である。出力データは第2データの一例である。 The output data format (output) represents the format of data (output data) output from the device A to the smartphone terminal 70 via the GW 100, and is "String" (character string) here. The output data is an example of second data.

また、工程(1)に示すようにGW100にデバイスアクセス情報を登録する際に、GW100は、デバイスアクセス情報に含まれるプロトコルに応じたプロトコル変換ルールを表すデータと、デバイスアクセス情報とを関連付けてメモリに格納する。この場合に、複数のプロトコルに対応したプロトコル変換ルールを表すデータを予めメモリに格納しておき、メモリの内部でGW100又はデバイスAの管理者等によって登録されたデバイスアクセス情報と関連付ければよい。デバイスアクセス情報に含まれるプロトコルは、デバイスがGW100との通信に用いるプロトコルを表す。 Further, when registering the device access information in the GW 100 as shown in step (1), the GW 100 associates data representing a protocol conversion rule according to the protocol included in the device access information with the device access information and stores it in the memory. Store in. In this case, data representing protocol conversion rules corresponding to a plurality of protocols may be stored in a memory in advance and associated with device access information registered by the administrator of the GW 100 or device A within the memory. The protocol included in the device access information represents the protocol used by the device to communicate with the GW 100.

また、プロトコル変換ルールとは、GW100とデバイスとの通信に用いるプロトコル毎に、プロトコルを変換するルールを定めたものである。詳細については図5を用いて後述する。 Further, the protocol conversion rules are rules for converting protocols for each protocol used for communication between the GW 100 and devices. Details will be described later using FIG. 5.

なお、ここではデバイスAのデバイスアクセス情報について説明したが、デバイスBのデバイスアクセス情報は、デバイスBの固有の情報であり、デバイスAのデバイスアクセス情報と同様である。また、デバイスA、B以外のデバイスのデバイスアクセス情報も同様である。 Note that although the device access information of device A has been described here, the device access information of device B is information specific to device B and is similar to the device access information of device A. Further, the same applies to device access information of devices other than devices A and B.

次に、工程(2)に示すように、GW100は、デバイスアクセス情報から共通アクセス情報を生成する。共通アクセス情報は、URL(Uniform Resource Locator)と、デバイスアクセス情報に含まれる入力データの形式(入力)及び出力データの形式(出力)とを含み、すべてのデバイスの機能について、共通のフォーマット(共通の書式)で記述した情報である。 Next, as shown in step (2), the GW 100 generates common access information from the device access information. The common access information includes a URL (Uniform Resource Locator), the input data format (input) and the output data format (output) included in the device access information. This is information written in the following format.

URL(http://ZZZ/DevA/Func1)が表すアクセス先はデバイスAの機能1であり、URLにはデバイス名(DevA:デバイスA)と機能名(Func1:機能1)が含まれる。このようなURLに基づいてスマートフォン端末機70がGW100を経由してデバイスAにアクセスしてくると、GW100は、デバイス名と機能名で特定されるデバイスの所定の機能へのアクセスであることを認識する。なお、URLのZZZは、GW100のホスト名を表す。 The access destination represented by the URL (http://ZZZ/DevA/Func1) is function 1 of device A, and the URL includes a device name (DevA: device A) and a function name (Func1: function 1). When the smartphone terminal 70 accesses device A via the GW 100 based on such a URL, the GW 100 recognizes that the access is to a predetermined function of the device specified by the device name and function name. recognize. Note that ZZZ in the URL represents the host name of the GW 100.

GW100は、このような共通アクセス情報をデバイスアクセス情報から生成すると、デバイスアクセス情報と共通アクセス情報とを関連付けてメモリに格納する。 When the GW 100 generates such common access information from the device access information, the GW 100 associates the device access information and the common access information and stores them in the memory.

次に、工程(3)に示すように、GW100は、共通アクセス情報をスマートフォン端末機70に送信する。共通アクセス情報は、ネットワーク60(図1参照)を介してスマートフォン端末機70に送信される。 Next, as shown in step (3), the GW 100 transmits the common access information to the smartphone terminal 70. The common access information is transmitted to the smartphone terminal 70 via the network 60 (see FIG. 1).

次に、工程(4)に示すように、スマートフォン端末機70が共通アクセス情報に含まれるURLに基づいてGW100を介してデバイスAの機能1にアクセスする。これは、スマートフォン端末機70によるデバイスAの機能1へのアクセス要求である。 Next, as shown in step (4), the smartphone terminal 70 accesses the function 1 of the device A via the GW 100 based on the URL included in the common access information. This is a request for access to function 1 of device A by the smartphone terminal 70.

アクセス要求でスマートフォン端末機70が送信するデータ(body)は、第1データの一例であり、ここでは一例として"100"である。入力データの形式(入力)が"Number"であるため、スマートフォン端末機70は、数字で表されるデータをGW100に送信している。例えば、スマートフォン端末機70がアクセスするデバイスAの機能1がスピーカの場合は、データ(body)は音量レベルを表す。 The data (body) transmitted by the smartphone terminal 70 in the access request is an example of first data, and is "100" as an example here. Since the format (input) of the input data is "Number", the smartphone terminal 70 is transmitting data represented by numbers to the GW 100. For example, if the function 1 of device A accessed by the smartphone terminal 70 is a speaker, the data (body) represents the volume level.

次に、工程(5)に示すように、GW100は、プロトコル変換処理を行う。GW100は、スマートフォン端末機70がアクセスに利用する共通アクセス情報に含まれるURLに含まれるデバイス名と機能名とに基づいて、メモリからデバイス名と機能名に対応するデバイスアクセス情報を読み出し、読み出したデバイスアクセス情報によって規定されるプロトコル変換ルールで、スマートフォン端末機70から受信したデータを変換する。ここでは、一例として、変換によって得られたデータは"0A020064"である。 Next, as shown in step (5), the GW 100 performs protocol conversion processing. Based on the device name and function name included in the URL included in the common access information used by the smartphone terminal 70 for access, the GW 100 reads out the device access information corresponding to the device name and function name from the memory. The data received from the smartphone terminal 70 is converted using the protocol conversion rules defined by the device access information. Here, as an example, the data obtained by the conversion is "0A020064".

そして、工程(6)に示すように、GW100は、プロトコルを変換したデータ"0A020064"をデバイスAに送信する。 Then, as shown in step (6), the GW 100 transmits the protocol-converted data "0A020064" to the device A.

なお、ここには図示しないが、スマートフォン端末機70からGW100を介してデータを受信したデバイスAは、スマートフォン端末機70への応答として、GW100を介して某かのデータをスマートフォン端末機70に送信してもよい。この場合には、GW100は、デバイスAが出力するデータを工程(5)で用いたプロトコル変換ルールを用いてプロトコルの変換を行い、スマートフォン端末機70に送信する。この場合にデバイスAが出力するデータは、第2データの一例であり、デバイスAは、出力のデータ形式に応じたデータを出力する。 Although not shown here, device A that has received data from the smartphone terminal 70 via the GW 100 transmits certain data to the smartphone terminal 70 via the GW 100 as a response to the smartphone terminal 70. You may. In this case, the GW 100 converts the protocol of the data output by the device A using the protocol conversion rule used in step (5), and transmits the data to the smartphone terminal 70. The data output by device A in this case is an example of second data, and device A outputs data according to the output data format.

なお、デバイスAは、出力のデータ形式を表すデータを内部メモリに格納しており、データを出力する際には、内部メモリの出力のデータ形式を参照して、出力のデータ形式に応じたデータを出力すればよい。 Note that device A stores data representing the output data format in its internal memory, and when outputting data, it refers to the output data format in the internal memory and selects the data according to the output data format. All you have to do is output .

図5は、GW100でのプロトコル変換処理を説明する図である。図5においても図4と同様に、デバイスAの機能1を例として用いるとともに、GW100がメモリを有するものとして説明する。 FIG. 5 is a diagram illustrating protocol conversion processing in the GW 100. Similarly to FIG. 4, in FIG. 5, the function 1 of device A is used as an example, and the explanation will be given assuming that the GW 100 has a memory.

スマートフォン端末機70が共通アクセス情報に含まれるURLに基づいてGW100にアクセスしてデータを送信すると、GW100は、URLとデータを入手する(図5左上参照)。URLは、スマートフォン端末機70から見たデバイスAのアクセス先を表す。アクセス先は、デバイスの種類と機能によって特定される。 When the smartphone terminal 70 accesses the GW 100 and transmits data based on the URL included in the common access information, the GW 100 obtains the URL and data (see upper left of FIG. 5). The URL represents the access destination of device A as seen from the smartphone terminal 70. Access destinations are determined by device type and functionality.

また、GW100は、URLに含まれるデバイスの種類と機能(ここではDevAとFunc1)を読み取り、読み取ったデバイスの種類と機能に対応するデバイスアクセス情報をメモリから読み出す(図5の右上参照)。 Further, the GW 100 reads the device type and function (here, DevA and Func1) included in the URL, and reads device access information corresponding to the read device type and function from the memory (see the upper right of FIG. 5).

また、GW100は、読み出したデバイスアクセス情報に関連付けられたプロトコル変換ルールを表すデータをメモリから読み出す。 Further, the GW 100 reads data representing a protocol conversion rule associated with the read device access information from the memory.

そして、GW100は、読み出したプロトコル変換ルールを用いて、スマートフォン端末機70から受信した(入力された)データのプロトコルをGW100とデバイスとの間のプロトコルに変換する。 Then, the GW 100 uses the read protocol conversion rule to convert the protocol of the data received (input) from the smartphone terminal 70 into a protocol between the GW 100 and the device.

図5には、一例として、プロトコルXについてのプロトコルX変換処理を示す。プロトコルX変換処理のプロトコル変換ルールは、1バイト目にコマンドを記述し、2バイト目にデータサイズを記述し、3バイト目以降にデータを記述するルールになっている。データは、HEXデータ(16進数のデータ)で記述するルールになっており、入力データの形式(入力)がNumber(数字)の場合のデータサイズは2バイトに定められている。また、1バイト目と2バイト目の値についても16進数で表される。このようなプロトコル変換ルールは、プロトコル毎に用意されてメモリ120に格納されている。 FIG. 5 shows protocol X conversion processing for protocol X as an example. The protocol conversion rules for the protocol X conversion process are such that a command is written in the first byte, a data size is written in the second byte, and data is written in the third and subsequent bytes. The data is written in HEX data (hexadecimal data), and when the input data format (input) is Number, the data size is set to 2 bytes. Furthermore, the values of the first and second bytes are also expressed in hexadecimal. Such protocol conversion rules are prepared for each protocol and stored in the memory 120.

GW100は、プロトコル変換ルールに従って、デバイスアクセス情報のコマンド"0A"、2バイト目がデータサイズ"02"(2バイト)、3~4バイト目がデータというデータを生成する。スマートフォン端末機70から入力されたデータが"100"である場合には、"0A020064"というデータに変換する。 The GW 100 generates data in which the device access information command is "0A", the second byte is the data size "02" (2 bytes), and the third and fourth bytes are data. If the data input from the smartphone terminal 70 is "100", it is converted to data "0A020064".

そして、GW100は、プロトコル変換で得たデータ"0A020064"をデバイスAに送信する。 Then, the GW 100 transmits the data "0A020064" obtained through the protocol conversion to the device A.

このようなプロトコル変換ルールは、GW100とデバイスとの通信に用いるプロトコル毎に設けられている。このため、例えば、プロトコルXでGW100と通信を行うデバイスについては、共通のプロトコル変換ルールを用いることができる。 Such protocol conversion rules are provided for each protocol used for communication between the GW 100 and devices. Therefore, for example, a common protocol conversion rule can be used for devices that communicate with the GW 100 using protocol X.

プロトコル変換ルールは、上述のように、1バイト目から順番に記述するデータを定めたルールである。プロトコル変換ルールに定められた通りに1バイト目から順番にデータを記述することにより、スマートフォン端末機70のアクセス要求をGW100とデバイスとの間での通信に用いるプロトコルに応じたデータに変換することができる。 As described above, the protocol conversion rule is a rule that defines data to be written in order starting from the first byte. Converting the access request from the smartphone terminal 70 into data according to the protocol used for communication between the GW 100 and the device by writing data in order from the first byte as specified in the protocol conversion rules. I can do it.

このようなプロトコル変換ルールを用いることにより、GW100とデバイスとの間での通信に用いるプロトコルが等しければ、共通のプロトコル変換ルールを用いることができる。これは、プロトコル変換ルールがデバイスの固有の情報(ここでは、コマンドとデータサイズ)を含まないからである。 By using such a protocol conversion rule, if the protocols used for communication between the GW 100 and the device are the same, a common protocol conversion rule can be used. This is because the protocol conversion rule does not include device-specific information (here, command and data size).

なお、図5には、プロトコルXについてのプロトコル変換ルールを示したが、プロトコルX以外のプロトコルについても所定の変換ルールを定めたプロトコル変換ルールが存在する。 Although FIG. 5 shows protocol conversion rules for protocol X, there are also protocol conversion rules that define predetermined conversion rules for protocols other than protocol X.

図6は、GW100の機能構成を示す図である。GW100は、制御装置110と通信部130を含む。制御装置110は、図3に示すCPU31、メモリ部32、及びHDD34によって実現され、通信部130は、図2に示す通信モジュール25によって実現される。通信モジュール25によって実現される通信部130は、無線通信でスマートフォン端末機70と通信する無線通信モジュールと、有線通信でデバイスA、Bと通信する有線通信モジュールとを有する。 FIG. 6 is a diagram showing the functional configuration of the GW 100. GW 100 includes a control device 110 and a communication unit 130. The control device 110 is realized by the CPU 31, the memory section 32, and the HDD 34 shown in FIG. 3, and the communication section 130 is realized by the communication module 25 shown in FIG. 2. The communication unit 130 implemented by the communication module 25 includes a wireless communication module that communicates with the smartphone terminal 70 via wireless communication, and a wired communication module that communicates with devices A and B via wired communication.

制御装置110は、主制御部111、情報取得部112、情報生成部113、情報提供部114、判別部115、情報選択部116、変換ルール選択部117、プロトコル変換処理部118、通信処理部119、メモリ120を含む。メモリ120は、図4及び図5で説明したGW100のメモリである。 The control device 110 includes a main control section 111, an information acquisition section 112, an information generation section 113, an information provision section 114, a discrimination section 115, an information selection section 116, a conversion rule selection section 117, a protocol conversion processing section 118, and a communication processing section 119. , memory 120. The memory 120 is the memory of the GW 100 described in FIGS. 4 and 5.

主制御部111、情報取得部112、情報生成部113、情報提供部114、判別部115、情報選択部116、変換ルール選択部117、プロトコル変換処理部118、通信処理部119は、制御装置110が実行するプログラムの機能(ファンクション)を機能ブロックとして示したものである。また、メモリ120は、GW100のメモリ部32及びHDD34(図3参照)を機能的に表したものである。 The main control unit 111 , the information acquisition unit 112 , the information generation unit 113 , the information provision unit 114 , the determination unit 115 , the information selection unit 116 , the conversion rule selection unit 117 , the protocol conversion processing unit 118 , and the communication processing unit 119 are the control device 110 This shows the functions of the program executed by the program as functional blocks. Furthermore, the memory 120 is a functional representation of the memory unit 32 and HDD 34 (see FIG. 3) of the GW 100.

主制御部111は、制御装置110の処理を統括する処理部であり、情報取得部112、情報生成部113、情報提供部114、判別部115、情報選択部116、変換ルール選択部117、プロトコル変換処理部118、通信処理部119が行う処理以外の処理を実行する。 The main control unit 111 is a processing unit that controls the processing of the control device 110, and includes an information acquisition unit 112, an information generation unit 113, an information provision unit 114, a determination unit 115, an information selection unit 116, a conversion rule selection unit 117, a protocol It executes processes other than those performed by the conversion processing unit 118 and communication processing unit 119.

情報取得部112は、デバイスA、Bに固有のデバイスアクセス情報を取得する。情報取得部112は、図4の工程(1)のようにGW100に登録されるデバイスアクセス情報を取得し、メモリ120に格納する。 The information acquisition unit 112 acquires device access information specific to devices A and B. The information acquisition unit 112 acquires device access information registered in the GW 100 as in step (1) of FIG. 4, and stores it in the memory 120.

情報生成部113は、図4の工程(2)のように、デバイスアクセス情報から共通アクセス情報を生成し、生成した共通アクセス情報と、情報取得部112によって取得されたデバイスアクセス情報とを関連付けてメモリ120に格納する。 The information generation unit 113 generates common access information from the device access information as in step (2) of FIG. 4, and associates the generated common access information with the device access information acquired by the information acquisition unit 112. Stored in memory 120.

情報提供部114は、図4の工程(3)のように、情報生成部113によって生成された共通アクセス情報をスマートフォン端末機70に提供する。共通アクセス情報は、通信部130からネットワーク60を介してスマートフォン端末機70に送信される。 The information providing unit 114 provides the common access information generated by the information generating unit 113 to the smartphone terminal 70, as in step (3) of FIG. 4. The common access information is transmitted from the communication unit 130 to the smartphone terminal 70 via the network 60.

判別部115は、図4の工程(4)のように、スマートフォン端末機70が共通アクセス情報に含まれるURLに基づいてGW100を経由してデバイス(A又はB)にアクセスしてきた場合に、スマートフォン端末機70がアクセスするアクセス先を判別する。アクセス先の判別は、URLに含まれるデバイス名及び機能名に基づいて行う。 The determination unit 115 determines whether the smartphone terminal 70 accesses the device (A or B) via the GW 100 based on the URL included in the common access information, as in step (4) of FIG. The access destination that the terminal device 70 accesses is determined. The access destination is determined based on the device name and function name included in the URL.

情報選択部116は、判別部115によって判別されるアクセス先のデバイス名及び機能名に対応するデバイスアクセス情報を選択する。デバイス名及び機能名とデバイスアクセス情報とは関連付けられてメモリ120に格納されているため、情報選択部116は、メモリ120の内部でデバイス名及び機能名に関連付けられているデバイスアクセス情報を選択する。 The information selection unit 116 selects device access information corresponding to the access destination device name and function name determined by the determination unit 115. Since the device name, function name, and device access information are stored in the memory 120 in association with each other, the information selection unit 116 selects the device access information associated with the device name and function name within the memory 120. .

変換ルール選択部117は、情報選択部116によって選択されるデバイスアクセス情報によって特定されるプロトコル変換ルールを選択する。デバイスアクセス情報とプロトコル変換ルールを表すデータとは関連付けられてメモリ120に格納されているため、変換ルール選択部117は、メモリ120の内部でデバイスアクセス情報と関連付けられているプロトコル変換ルールを選択する。 The conversion rule selection unit 117 selects a protocol conversion rule specified by the device access information selected by the information selection unit 116. Since the device access information and the data representing the protocol conversion rule are stored in the memory 120 in association with each other, the conversion rule selection unit 117 selects the protocol conversion rule associated with the device access information in the memory 120. .

プロトコル変換処理部118は、情報選択部116によって選択されるデバイスアクセス情報と、変換ルール選択部117によって選択されるプロトコル変換ルールとに基づいて、スマートフォン端末機70からネットワーク60を介して受信するデータのプロトコルをGW100とデバイスとの間のプロトコルに変換するプロトコル変換処理を行う。これは、図4に示す工程(5)に相当する。 The protocol conversion processing unit 118 converts data received from the smartphone terminal 70 via the network 60 based on the device access information selected by the information selection unit 116 and the protocol conversion rule selected by the conversion rule selection unit 117. A protocol conversion process is performed to convert the protocol of GW 100 to a protocol between the GW 100 and the device. This corresponds to step (5) shown in FIG.

このようにプロトコル変換ルールがデバイスアクセス情報に含まれる情報の一部の記述を求めるルールである場合には、プロトコルを変換する際にはデバイスアクセス情報を用いることになる。このため、このような場合には、プロトコル変換処理部118が、プロトコル変換ルールを用いて、スマートフォン端末機70から受信したデータのプロトコルをGW100とデバイスとの間のプロトコルに変換することは、プロトコル変換処理部118が、情報選択部116によって選択されるデバイスアクセス情報と、変換ルール選択部117によって選択されるプロトコル変換ルールとに基づいて、スマートフォン端末機70からネットワーク60を介して受信するデータのプロトコルをGW100とデバイスとの間のプロトコルに変換することと同義である。 In this way, when the protocol conversion rule is a rule that requires a description of part of the information included in the device access information, the device access information is used when converting the protocol. Therefore, in such a case, the protocol conversion processing unit 118 uses the protocol conversion rule to convert the protocol of the data received from the smartphone terminal 70 into the protocol between the GW 100 and the device. The conversion processing unit 118 converts data received from the smartphone terminal 70 via the network 60 based on the device access information selected by the information selection unit 116 and the protocol conversion rule selected by the conversion rule selection unit 117. This is synonymous with converting the protocol into a protocol between the GW 100 and the device.

通信処理部119は、第1データ送信部の一例であり、スマートフォン端末機70から送信されたデータを受信し、プロトコル変換処理部118によってプロトコル変換が行われたデータをデバイス(A又はB)に送信する処理を行う。また、通信処理部119は、第2データ送信部の一例であり、デバイス(A又はB)から出力されたデータを受信し、プロトコル変換処理部118によってプロトコル変換が行われたデータをスマートフォン端末機70に送信する処理を行う。通信処理部119は、通信部130を介して上述のような送信と受信の処理を行う。 The communication processing unit 119 is an example of a first data transmission unit, and receives data transmitted from the smartphone terminal 70 and transmits the data that has been subjected to protocol conversion by the protocol conversion processing unit 118 to the device (A or B). Perform processing to send. Further, the communication processing unit 119 is an example of a second data transmission unit, and receives data output from the device (A or B), and transfers the data that has been protocol-converted by the protocol conversion processing unit 118 to the smartphone terminal. 70. The communication processing unit 119 performs the above-described transmission and reception processing via the communication unit 130.

メモリ120は、格納部、第1格納部、第2格納部の一例であり、制御装置110が上述のような処理を行うために必要なデータ及びプログラム等を格納する。このプログラムには、コンピュータシステム20(図2参照)にGW100としての機能を持たせる情報処理プログラムが含まれる。 The memory 120 is an example of a storage unit, a first storage unit, and a second storage unit, and stores data, programs, etc. necessary for the control device 110 to perform the above-described processing. This program includes an information processing program that allows the computer system 20 (see FIG. 2) to function as the GW 100.

通信部130は、ネットワーク60を介してのGW100とスマートフォン端末機70との通信と、FAN50内でのGW100とデバイスA、Bとバス51を経由した通信を行う。 The communication unit 130 performs communication between the GW 100 and the smartphone terminal 70 via the network 60, and communication between the GW 100 and devices A and B within the FAN 50 via the bus 51.

図7は、メモリ120に格納されるデバイスアクセス情報とプロトコル変換ルールを関連付けたデータを示す図である。デバイスアクセス情報及びプロトコル変換ルールには、図7に示すようにID(Identifier)が割り振られており、図7に示すテーブル形式のデータとして互いのIDが関連付けられている。IDがDA001のデバイスアクセス情報には、IDがCR001のプロトコル変換ルールが関連付けられており、IDがDA002のデバイスアクセス情報には、IDがCR002のプロトコル変換ルールが関連付けられている。ここでは省略するが、その他のIDのデバイスアクセス情報にも所定のIDのプロトコル変換ルールが関連付けられている。 FIG. 7 is a diagram showing data in which device access information and protocol conversion rules are associated, which is stored in the memory 120. IDs (Identifiers) are assigned to the device access information and protocol conversion rules as shown in FIG. 7, and the IDs are associated with each other as data in the table format shown in FIG. The device access information with the ID DA001 is associated with the protocol conversion rule with the ID CR001, and the device access information with the ID DA002 is associated with the protocol conversion rule with the ID CR002. Although omitted here, the protocol conversion rule for a predetermined ID is also associated with device access information for other IDs.

図8は、メモリ120に格納されるデバイス名、機能名、及びデバイスアクセス情報を関連付けたデータを示す図である。図8に示すように、デバイス名、機能名、及びデバイスアクセス情報が関連付けられている。デバイスアクセス情報には、図4に示すようにデバイス名及び機能名が含まれ、共通アクセス情報のURLには、図4に示すようにデバイス名及び機能名が含まれるため、デバイス名及び機能名に基づいてデバイスアクセス情報を特定することができる。 FIG. 8 is a diagram showing data in which a device name, a function name, and device access information are associated with each other, which is stored in the memory 120. As shown in FIG. 8, device names, function names, and device access information are associated. The device access information includes the device name and function name as shown in Figure 4, and the URL of the common access information includes the device name and function name as shown in Figure 4. Device access information can be identified based on the

デバイス名"DevA"と機能名"1"には、IDが"DA001"のデバイスアクセス情報とが関連付けられており、デバイス名"DevB"と機能名"1"には、IDが"DA002"のデバイスアクセス情報が関連付けられている。ここでは省略するが、その他のデバイス名と機能名にも、所定のIDのデバイスアクセス情報が関連付けられている。 The device name "DevA" and the function name "1" are associated with the device access information with the ID "DA001", and the device name "DevB" and the function name "1" are associated with the device access information with the ID "DA002". Associated with device access information. Although omitted here, device access information of a predetermined ID is also associated with other device names and function names.

図9は、GW100の制御装置110が実行する処理を示すフローチャートである。 FIG. 9 is a flowchart showing the processing executed by the control device 110 of the GW 100.

情報取得部112は、GW100に対してデバイスアクセス情報の登録が行われると、処理を開始する(スタート)。 The information acquisition unit 112 starts processing (start) when device access information is registered in the GW 100.

情報取得部112は、デバイスアクセス情報とプロトコル変換ルールを表すデータとを関連付けてメモリ120に格納する(ステップS1)。プロトコル変換ルールを表すデータはメモリ120に予め登録されているため、情報取得部112は、登録が行われているデバイスアクセス情報に含まれるプロトコル名を読み出し、読み出したプロトコル名に対応するプロトコル変換ルールを表すデータをメモリ120から抽出し、デバイスアクセス情報と関連付けてメモリ120に格納する。これにより、図7に示すデータが得られる。 The information acquisition unit 112 stores the device access information and data representing the protocol conversion rule in the memory 120 in association with each other (step S1). Since the data representing the protocol conversion rule is registered in the memory 120 in advance, the information acquisition unit 112 reads the protocol name included in the registered device access information, and extracts the protocol conversion rule corresponding to the read protocol name. Data representing the data is extracted from the memory 120 and stored in the memory 120 in association with the device access information. As a result, the data shown in FIG. 7 is obtained.

次いで、情報生成部113は、ステップS1でメモリ120に格納したデバイスアクセス情報から共通アクセス情報を生成する(ステップS2)。 Next, the information generation unit 113 generates common access information from the device access information stored in the memory 120 in step S1 (step S2).

次いで、情報生成部113は、ステップS2で生成した共通アクセス情報のURLに含まれるデバイス名及び機能名と、ステップS1でメモリ120に格納したデバイスアクセス情報とを関連付けてメモリ120に格納する(ステップS3)。これにより、図8に示すデータが得られる。 Next, the information generation unit 113 associates the device name and function name included in the URL of the common access information generated in step S2 with the device access information stored in the memory 120 in step S1, and stores them in the memory 120 (step S3). As a result, the data shown in FIG. 8 is obtained.

次いで、情報提供部114は、情報生成部113によって生成された共通アクセス情報をスマートフォン端末機70に提供する(ステップS4)。デバイスアクセス情報は、通信部130からネットワーク60を介してスマートフォン端末機70に送信される。 Next, the information providing unit 114 provides the common access information generated by the information generating unit 113 to the smartphone terminal 70 (step S4). The device access information is transmitted from the communication unit 130 to the smartphone terminal 70 via the network 60.

以上で共通アクセス情報をスマートフォン端末機70に提供するまでの処理が終了する(エンド)。ステップS1~S4の処理は、GW100にデバイスアクセス情報の登録が行われる度に行われる。 This completes the process up to providing the common access information to the smartphone terminal 70 (end). The processes of steps S1 to S4 are performed every time device access information is registered in the GW 100.

図10は、GW100の制御装置110が実行する処理を示すフローチャートである。 FIG. 10 is a flowchart showing the processing executed by the control device 110 of the GW 100.

判別部115は、スマートフォン端末機70からアクセス要求を受信すると処理を開始する(スタート)。 The determination unit 115 starts processing upon receiving an access request from the smartphone terminal 70 (start).

判別部115は、アクセス要求のURLに基づいてスマートフォン端末機70がアクセスするアクセス先を判別する(ステップS5)。アクセス先の判別は、URLに含まれるデバイス名及び機能名に基づいて行う。 The determining unit 115 determines the access destination that the smartphone terminal 70 accesses based on the URL of the access request (step S5). The access destination is determined based on the device name and function name included in the URL.

情報選択部116は、判別部115によって判別されるアクセス先のデバイス名及び機能名を用いて、ステップS3で生成されてメモリ120に格納されているデータ(デバイス名と、機能名と、デバイスアクセス情報とを関連付けたデータ(図8参照))から、アクセス先のデバイス名及び機能名に対応するデバイスアクセス情報を選択する(ステップS6)。 The information selection unit 116 uses the access destination device name and function name determined by the determination unit 115 to select the data (device name, function name, device access The device access information corresponding to the device name and function name of the access destination is selected from the data associated with the information (see FIG. 8) (step S6).

変換ルール選択部117は、情報選択部116によって選択されるデバイスアクセス情報に関連付けられているプロトコル変換ルールを選択する(ステップS7)。ステップS7の処理は、変換ルール選択部117が情報選択部116によって選択されるデバイスアクセス情報を用いて、メモリ120に格納されているデータ(デバイスアクセス情報とプロトコル変換ルールを表すデータとを関連付けたデータ(図7参照))からデバイスアクセス情報に関連付けられているプロトコル変換ルールを選択する処理である。 The conversion rule selection unit 117 selects a protocol conversion rule associated with the device access information selected by the information selection unit 116 (step S7). In the process of step S7, the conversion rule selection unit 117 uses the device access information selected by the information selection unit 116 to associate data stored in the memory 120 (device access information and data representing protocol conversion rules). This is a process of selecting a protocol conversion rule associated with device access information from data (see FIG. 7).

プロトコル変換処理部118は、情報選択部116によって選択されるデバイスアクセス情報と、変換ルール選択部117によって選択されるプロトコル変換ルールとに基づいて、スマートフォン端末機70からネットワーク60を介して受信するデータのプロトコル変換を行う(ステップS8)。 The protocol conversion processing unit 118 converts data received from the smartphone terminal 70 via the network 60 based on the device access information selected by the information selection unit 116 and the protocol conversion rule selected by the conversion rule selection unit 117. The protocol conversion is performed (step S8).

通信処理部119は、プロトコル変換処理部118によってプロトコル変換が行われたデータをデバイス(A又はB)に送信する(ステップS9)。 The communication processing unit 119 transmits the data subjected to the protocol conversion by the protocol conversion processing unit 118 to the device (A or B) (step S9).

以上で一連の処理が終了する(エンド)。 This completes the series of processing (end).

次に、図11乃至図13を用いて、GW100の処理について説明する。図11乃至図13は、GW100の処理を説明する図である。 Next, the processing of the GW 100 will be explained using FIGS. 11 to 13. 11 to 13 are diagrams illustrating the processing of the GW 100.

図11では、GW100、スマートフォン端末機70、及びデバイスAのみを示し、その他のものを省略する。 In FIG. 11, only the GW 100, the smartphone terminal 70, and the device A are shown, and the others are omitted.

デバイスアクセス情報に示すように、デバイスAは機能1と2を有し、機能1と2ではコマンドと入力及び出力の形式とが異なる。 As shown in the device access information, device A has functions 1 and 2, and functions 1 and 2 have different commands, input, and output formats.

まず、工程(1)に示すように、GW100にデバイスアクセス情報が登録されると、情報取得部112は、デバイスアクセス情報をメモリ120に格納する。なお、このとき、情報取得部112は、デバイスアクセス情報とプロトコル変換ルールを表すデータとを関連付けてメモリ120に格納する。 First, as shown in step (1), when device access information is registered in the GW 100, the information acquisition unit 112 stores the device access information in the memory 120. Note that at this time, the information acquisition unit 112 stores the device access information and data representing the protocol conversion rule in the memory 120 in association with each other.

機能1は、プロトコルがX、コマンドが"0A"、入力データの形式(入力)が"Number"、出力データの形式(出力)が"String"である。また、機能2は、プロトコルがX、コマンドが"0B"、入力データの形式(入力)が"String"、出力データの形式(出力)が"Number"である。すなわち、機能1と2は、プロトコルが同一で、コマンドが異なり、入力データの形式(入力)と出力データの形式(出力)が異なる。 For function 1, the protocol is X, the command is "0A", the input data format (input) is "Number", and the output data format (output) is "String". Further, for function 2, the protocol is X, the command is "0B", the input data format (input) is "String", and the output data format (output) is "Number". That is, functions 1 and 2 have the same protocol, different commands, and different input data formats (input) and output data formats (output).

次に、工程(2)に示すように、情報生成部113は、デバイスアクセス情報から共通アクセス情報を生成する。共通アクセス情報は、機能1と2について別々に生成される。 Next, as shown in step (2), the information generation unit 113 generates common access information from the device access information. Common access information is generated separately for functions 1 and 2.

機能1についての共通アクセス情報は、URLが"http://ZZZ/DevA/Func1"であり、入力データの形式(入力)が"Number"、出力データの形式(出力)が"String"である。機能2についての共通アクセス情報は、URLが"http://ZZZ/DevA/Func2"であり、入力データの形式(入力)が"String"、出力データの形式(出力)が"Number"である。 The common access information for function 1 is that the URL is "http://ZZZ/DevA/Func1", the input data format (input) is "Number", and the output data format (output) is "String". . The common access information for function 2 is that the URL is "http://ZZZ/DevA/Func2", the input data format (input) is "String", and the output data format (output) is "Number". .

このように、機能1と2についての共通アクセス情報は、共通のフォーマットで記述される。また、プロトコルの種類とコマンドは、デバイスAの機能1と2の固有の情報であり、共通のフォーマットでの記述は難しいため、共通アクセス情報には含まれない。 In this way, the common access information for functions 1 and 2 is written in a common format. Furthermore, the protocol type and command are information unique to functions 1 and 2 of device A, and are difficult to describe in a common format, so they are not included in the common access information.

情報生成部113は、このような共通アクセス情報をデバイスアクセス情報から生成すると、機能1と2について、デバイスアクセス情報と共通アクセス情報とを関連付けてメモリに格納する。 When the information generation unit 113 generates such common access information from the device access information, the information generation unit 113 associates the device access information and the common access information with respect to functions 1 and 2 and stores them in the memory.

次に、工程(3)に示すように、情報提供部114は、共通アクセス情報をスマートフォン端末機70に提供する。 Next, as shown in step (3), the information providing unit 114 provides the common access information to the smartphone terminal 70.

次に、工程(4)に示すように、スマートフォン端末機70が共通アクセス情報に含まれるURLに基づいてデバイスAの機能1と2へのアクセス要求を行う。ここでは、説明の便宜上、デバイスAの機能1と2へのアクセス要求を並列的に示すが、同時に行われることを表すものではなく、別々に行うことができる。 Next, as shown in step (4), the smartphone terminal 70 requests access to functions 1 and 2 of device A based on the URL included in the common access information. Here, for convenience of explanation, access requests to functions 1 and 2 of device A are shown in parallel, but this does not mean that they are performed simultaneously, and they can be performed separately.

アクセス要求でスマートフォン端末機70が送信するデータ(body)は、機能1については入力データの形式(入力)が"Number"であるため、一例として、数字で表されるデータ"100"である。 Since the input data format (input) for function 1 is "Number", the data (body) transmitted by the smartphone terminal 70 in the access request is, for example, data "100" expressed in numbers.

また、機能2については、アクセス要求でスマートフォン端末機70が送信するデータ(body)は、入力データの形式(入力)が"String"であるため、一例として、文字で表されるデータ"foobar"である。 Regarding function 2, the data (body) sent by the smartphone terminal 70 in the access request has the input data format (input) as "String", so for example, the data expressed in characters "foobar" It is.

次に、工程(5)に示すプロトコルX変換処理が行われる。工程(4)から工程(5)に至る間には、判別部115がアクセス要求のURLに基づいてスマートフォン端末機70のアクセス先を判別し、情報選択部116が判別部115によって判別されるアクセス先のデバイス名及び機能名を用いて、アクセス先のデバイス名及び機能名に対応するデバイスアクセス情報を選択する。また、変換ルール選択部117が情報選択部116によって選択されるデバイスアクセス情報に関連付けられているプロトコル変換ルールを選択する。 Next, the protocol X conversion process shown in step (5) is performed. From step (4) to step (5), the determining unit 115 determines the access destination of the smartphone terminal 70 based on the URL of the access request, and the information selecting unit 116 determines the access destination determined by the determining unit 115. Using the previous device name and function name, select device access information corresponding to the access destination device name and function name. Further, the conversion rule selection unit 117 selects a protocol conversion rule associated with the device access information selected by the information selection unit 116.

そして、プロトコル変換処理部118が情報選択部116によって選択されるデバイスアクセス情報と、変換ルール選択部117によって選択されるプロトコル変換ルールとに基づいて、データのプロトコル変換を行う。プロトコル変換処理部118は、図5に示すプロトコル変換ルールに従って、機能1についてはデータ"0A020064"を出力する。 Then, the protocol conversion processing unit 118 performs protocol conversion of the data based on the device access information selected by the information selection unit 116 and the protocol conversion rule selected by the conversion rule selection unit 117. The protocol conversion processing unit 118 outputs data "0A020064" for function 1 according to the protocol conversion rules shown in FIG.

また、プロトコル変換処理部118は、デバイスAの機能2についてのプロトコル変換ルールに従って、データ"0B06666f6f626172"を出力する。機能2についてのプロトコル変換処理は、入力データの形式(入力)が"String"であり、データサイズが6バイトである点が機能1についてのプロトコル変換処理と異なる。なお、プロトコル変換ルールは同一である。
このため、1バイト目がコマンド"0B"、2バイト目がデータサイズ"06"になり、3~8バイト目が"666f6f626172"であり、"0B06666f6f626172"というデータになる。
Further, the protocol conversion processing unit 118 outputs data "0B06666f6f626172" according to the protocol conversion rule for function 2 of device A. The protocol conversion process for function 2 differs from the protocol conversion process for function 1 in that the input data format (input) is "String" and the data size is 6 bytes. Note that the protocol conversion rules are the same.
Therefore, the first byte is the command "0B", the second byte is the data size "06", and the third to eighth bytes are "666f6f626172", resulting in data "0B06666f6f626172".

そして、工程(6)に示すように、通信処理部119は、デバイスAの機能1についてプロトコルを変換したデータ"0A020064"と、デバイスAの機能2についてプロトコルを変換したASCIIコード形式のデータ"0B06666f6f626172"とをデバイスAに送信する。これらのデータはデバイスAの機能1と2に対するコマンドであるため、デバイスAの機能1と2がコマンドに従った所定の動作を行うことになる。 Then, as shown in step (6), the communication processing unit 119 receives data "0A020064" whose protocol has been converted for function 1 of device A, and data in ASCII code format "0B06666f6f626172" whose protocol has been converted for function 2 of device A. " is sent to device A. Since these data are commands for functions 1 and 2 of device A, functions 1 and 2 of device A perform predetermined operations in accordance with the commands.

次に、図12を用いて、デバイスが複数ある場合について説明する。 Next, the case where there are multiple devices will be described using FIG. 12.

図12では、GW100、スマートフォン端末機70、及びデバイスA、Bのみを示し、その他のものを省略する。 In FIG. 12, only the GW 100, the smartphone terminal 70, and devices A and B are shown, and the others are omitted.

デバイスアクセス情報に示すように、デバイスAは機能1を有し、デバイスBは機能1を有する。デバイスAの機能1については、図11と同様であるため、ここでは説明を省略する。 As shown in the device access information, device A has function 1 and device B has function 1. Function 1 of device A is the same as that in FIG. 11, so the description thereof will be omitted here.

デバイスBの機能1は、プロトコルがX、コマンドが"10"、入力データの形式(入力)と出力データの形式(出力)は、ともに"Number"である。すなわち、デバイスA、Bの機能1は、プロトコルが同一で、コマンドが異なり、入力データの形式(入力)が同一で、出力データの形式(出力)が異なる。 For function 1 of device B, the protocol is X, the command is "10", and the input data format (input) and output data format (output) are both "Number". That is, the functions 1 of devices A and B have the same protocol, different commands, the same input data format (input), and different output data formats (output).

まず、工程(1)に示すように、GW100にデバイスA、Bについてのデバイスアクセス情報が別々に登録されると、情報取得部112は、デバイスA、Bについてのデバイスアクセス情報をメモリ120に格納する。なお、このとき、情報取得部112は、デバイスA、Bについて別々に、デバイスアクセス情報とプロトコル変換ルールを表すデータとを関連付けてメモリ120に格納する。 First, as shown in step (1), when device access information for devices A and B is registered separately in the GW 100, the information acquisition unit 112 stores the device access information for devices A and B in the memory 120. do. Note that at this time, the information acquisition unit 112 associates the device access information with data representing the protocol conversion rule for devices A and B and stores them in the memory 120 separately.

次に、工程(2)に示すように、情報生成部113は、デバイスアクセス情報から共通アクセス情報を生成する。共通アクセス情報は、デバイスAの機能1と、デバイスBの機能1とについて別々に生成される。デバイスAの機能1についての共通アクセス情報は、図11に示すものと同一である。 Next, as shown in step (2), the information generation unit 113 generates common access information from the device access information. The common access information is generated separately for function 1 of device A and function 1 of device B. The common access information for function 1 of device A is the same as that shown in FIG.

デバイスBの機能1についての共通アクセス情報は、URLが"http://ZZZ/DevB/Func1"であり、入力データの形式(入力)と出力データの形式(出力)がともに"Number"である。 The common access information for function 1 of device B has the URL "http://ZZZ/DevB/Func1", and the input data format (input) and output data format (output) are both "Number". .

このように、デバイスAの機能1についての共通アクセス情報と、デバイスBの機能1についての共通アクセス情報とは、共通のフォーマットで記述される。プロトコルの種類とコマンドは、デバイスAの機能1とデバイスBの機能1との固有の情報であり、共通のフォーマットでの記述は難しいため、共通アクセス情報には含まれない。 In this way, the common access information for function 1 of device A and the common access information for function 1 of device B are written in a common format. The type of protocol and the command are information unique to Function 1 of Device A and Function 1 of Device B, and are difficult to describe in a common format, so they are not included in the common access information.

情報生成部113は、このような共通アクセス情報をデバイスアクセス情報から生成すると、デバイスAの機能1とデバイスBの機能1とについて別々に、デバイスアクセス情報と共通アクセス情報とを関連付けてメモリに格納する。 When the information generating unit 113 generates such common access information from the device access information, it stores the device access information and the common access information in association with each other separately for function 1 of device A and function 1 of device B. do.

次に、工程(3)に示すように、情報提供部114は、デバイスAの機能1とデバイスBの機能1とについての共通アクセス情報をスマートフォン端末機70に提供する。 Next, as shown in step (3), the information providing unit 114 provides common access information regarding function 1 of device A and function 1 of device B to the smartphone terminal 70.

次に、工程(4)に示すように、スマートフォン端末機70が共通アクセス情報に含まれるURLに基づいて、デバイスAの機能1とデバイスBの機能1とへのアクセス要求を行う。ここでは、説明の便宜上、デバイスAの機能1とデバイスBの機能1とへのアクセス要求を並列的に示すが、同時に行われることを表すものではなく、別々に行うことができる。 Next, as shown in step (4), the smartphone terminal 70 requests access to function 1 of device A and function 1 of device B based on the URL included in the common access information. Here, for convenience of explanation, access requests to function 1 of device A and function 1 of device B are shown in parallel, but this does not mean that they are performed at the same time, and they can be performed separately.

アクセス要求でスマートフォン端末機70が送信するデータ(body)は、デバイスAの機能1とデバイスBの機能1とについては入力データの形式(入力)が"Number"であるため、一例として、ともに数字で表されるデータ"100"であることとする。 The data (body) sent by the smartphone terminal 70 in the access request is a numeric value, as an example, since the input data format (input) for function 1 of device A and function 1 of device B is "Number". It is assumed that the data is "100" expressed by .

次に、工程(5)に示すプロトコルX変換処理が行われる。工程(4)から工程(5)に至る間には、判別部115がアクセス要求のURLに基づいてスマートフォン端末機70のアクセス先を判別し、情報選択部116が判別部115によって判別されるアクセス先のデバイス名及び機能名を用いて、アクセス先のデバイス名及び機能名に対応するデバイスアクセス情報を選択する。このような処理をデバイスAの機能1とデバイスBの機能1とについて別々に行う。 Next, the protocol X conversion process shown in step (5) is performed. From step (4) to step (5), the determining unit 115 determines the access destination of the smartphone terminal 70 based on the URL of the access request, and the information selecting unit 116 determines the access destination determined by the determining unit 115. Using the previous device name and function name, select device access information corresponding to the access destination device name and function name. Such processing is performed separately for function 1 of device A and function 1 of device B.

また、変換ルール選択部117が情報選択部116によって選択されるデバイスアクセス情報に関連付けられているプロトコル変換ルールを選択する。このような処理をデバイスAの機能1とデバイスBの機能1とについて別々に行う。ここでは一例として、デバイスAの機能1とデバイスBの機能1とのプロトコルがともにプロトコルXで同一であるため、デバイスAの機能1とデバイスBの機能1とについて、共通のプロトコル変換ルールが選択される。 Further, the conversion rule selection unit 117 selects a protocol conversion rule associated with the device access information selected by the information selection unit 116. Such processing is performed separately for function 1 of device A and function 1 of device B. Here, as an example, since the protocols of function 1 of device A and function 1 of device B are both the same protocol X, a common protocol conversion rule is selected for function 1 of device A and function 1 of device B. be done.

そして、プロトコル変換処理部118が情報選択部116によって選択されるデバイスアクセス情報と、変換ルール選択部117によって選択されるプロトコル変換ルールとに基づいて、データのプロトコル変換を行う。プロトコル変換処理部118は、図5に示すプロトコル変換ルールに従って、デバイスAの機能1についてはデータ"0A020064"を出力する。 Then, the protocol conversion processing unit 118 performs protocol conversion of the data based on the device access information selected by the information selection unit 116 and the protocol conversion rule selected by the conversion rule selection unit 117. The protocol conversion processing unit 118 outputs data "0A020064" for function 1 of device A according to the protocol conversion rules shown in FIG.

また、プロトコル変換処理部118は、デバイスBの機能1についてのプロトコル変換ルールに従って、データ"10020064"を出力する。ここでは一例として、デバイスBの機能1の入力データについてのプロトコル変換ルールは、デバイスAの機能1の入力データについてのプロトコル変換ルールとは、コマンドが異なるだけで、その他は同一である。 Further, the protocol conversion processing unit 118 outputs data "10020064" according to the protocol conversion rule for function 1 of device B. Here, as an example, the protocol conversion rule for input data of function 1 of device B is the same as the protocol conversion rule for input data of function 1 of device A, except for the command.

このため、デバイスBの機能1については、1バイト目がコマンド"10"、2バイト目がデータサイズ"02"になり、3~4バイト目が"0064"であり、"10020064"というデータに変換される。 Therefore, for function 1 of device B, the first byte is the command "10", the second byte is the data size "02", the third and fourth bytes are "0064", and the data is "10020064". converted.

そして、工程(6)に示すように、通信処理部119は、デバイスAの機能1についてプロトコルを変換したデータ"0A020064"をデバイスAに送信し、デバイスBの機能1についてプロトコルを変換したデータ"10020064"をデバイスBに送信する。これらのデータはデバイスA、Bの機能1に対するコマンドであるため、デバイスA、Bの機能1がコマンドに従った所定の動作を行うことになる。 Then, as shown in step (6), the communication processing unit 119 transmits to device A the data "0A020064" whose protocol has been converted for function 1 of device A, and the data "0A020064" whose protocol has been converted about function 1 of device B. 10020064" to device B. Since these data are commands for function 1 of devices A and B, function 1 of devices A and B performs a predetermined operation according to the command.

次に、図13を用いて、デバイスが複数あり、プロトコルが異なる場合について説明する。 Next, a case where there are multiple devices and different protocols will be described using FIG. 13.

図13では、GW100、スマートフォン端末機70、及びデバイスA、Cのみを示し、その他のものを省略する。 In FIG. 13, only the GW 100, the smartphone terminal 70, and devices A and C are shown, and the others are omitted.

デバイスアクセス情報に示すように、デバイスAは機能1を有し、デバイスCは機能1を有する。デバイスAの機能1については、図11と同様であるため、ここでは説明を省略する。 As shown in the device access information, device A has function 1 and device C has function 1. Function 1 of device A is the same as that in FIG. 11, so the description thereof will be omitted here.

デバイスCの機能1は、プロトコルがY、入力データのフォーマットが{"func":"A","data":<INPUT>}、入力データの形式(入力)は"Number"、出力データの形式(出力)は"String"である。 Function 1 of device C is that the protocol is Y, the input data format is {"func":"A","data":<INPUT>}, the input data format (input) is "Number", and the output data format is (output) is "String".

すなわち、デバイスA、Cの機能1は、プロトコルが異なり、入力データの形式(入力)と出力データの形式(出力)が同一である。また、デバイスAの機能1のデバイスアクセス情報はコマンドを含むが、デバイスCの機能1はコマンドを含まずに、入力データのフォーマットを含む点で両者は全く異なる。 That is, the functions 1 of devices A and C have different protocols, and the format of input data (input) and the format of output data (output) are the same. Further, the device access information of function 1 of device A includes commands, but function 1 of device C does not include commands, but is completely different in that it includes the format of input data.

なお、入力データのフォーマット{"func":"A","data":<INPUT>}は、<INPUT>の欄に10進数のデータを入れるというプロトコル変換ルールを表すものであり、JSON(JavaScript Object Notation)形式のデータに変換するフォーマットである。 Note that the input data format {"func":"A","data":<INPUT>} represents the protocol conversion rule of entering decimal data in the <INPUT> field, and is JSON (JavaScript Object Notation) format data.

まず、工程(1)に示すように、GW100にデバイスA、Cについてのデバイスアクセス情報が別々に登録されると、情報取得部112は、デバイスA、Cについてのデバイスアクセス情報をメモリ120に格納する。なお、このとき、情報取得部112は、デバイスA、Cについて別々に、デバイスアクセス情報とプロトコル変換ルールを表すデータとを関連付けてメモリ120に格納する。 First, as shown in step (1), when device access information for devices A and C is registered separately in the GW 100, the information acquisition unit 112 stores the device access information for devices A and C in the memory 120. do. Note that at this time, the information acquisition unit 112 associates the device access information and data representing the protocol conversion rule with each other for devices A and C and stores them in the memory 120.

次に、工程(2)に示すように、情報生成部113は、デバイスアクセス情報から共通アクセス情報を生成する。共通アクセス情報は、デバイスAの機能1と、デバイスCの機能1とについて別々に生成される。デバイスAの機能1についての共通アクセス情報は、図11に示すものと同一である。 Next, as shown in step (2), the information generation unit 113 generates common access information from the device access information. The common access information is generated separately for function 1 of device A and function 1 of device C. The common access information for function 1 of device A is the same as that shown in FIG.

デバイスCの機能1についての共通アクセス情報は、URLが"http://ZZZ/DevC/Func1"であり、入力データの形式(入力)は"Number"、出力データの形式(出力)は"String"である。 The common access information for function 1 of device C is that the URL is "http://ZZZ/DevC/Func1", the input data format (input) is "Number", and the output data format (output) is "String". "is.

このように、デバイスAの機能1についての共通アクセス情報と、デバイスCの機能1についての共通アクセス情報とは、共通のフォーマットで記述される。コマンドと入力データのフォーマットの違いは、デバイスAの機能1とデバイスCの機能1との固有の情報であり、共通のフォーマットでの記述は難しいため、共通アクセス情報には含まれない。 In this way, the common access information for function 1 of device A and the common access information for function 1 of device C are written in a common format. The difference in the format of the command and input data is unique information between function 1 of device A and function 1 of device C, and is difficult to describe in a common format, so it is not included in the common access information.

情報生成部113は、このような共通アクセス情報をデバイスアクセス情報から生成すると、デバイスAの機能1とデバイスCの機能1とについて別々に、デバイスアクセス情報と共通アクセス情報とを関連付けてメモリに格納する。 When the information generation unit 113 generates such common access information from the device access information, it stores the device access information and the common access information in association with each other separately for function 1 of device A and function 1 of device C. do.

次に、工程(3)に示すように、情報提供部114は、デバイスAの機能1とデバイスCの機能1とについての共通アクセス情報をスマートフォン端末機70に提供する。 Next, as shown in step (3), the information providing unit 114 provides common access information regarding function 1 of device A and function 1 of device C to the smartphone terminal 70.

次に、工程(4)に示すように、スマートフォン端末機70が共通アクセス情報に含まれるURLに基づいて、デバイスAの機能1とデバイスCの機能1とへのアクセス要求を行う。ここでは、説明の便宜上、デバイスAの機能1とデバイスCの機能1とへのアクセス要求を並列的に示すが、同時に行われることを表すものではなく、別々に行うことができる。 Next, as shown in step (4), the smartphone terminal 70 requests access to function 1 of device A and function 1 of device C based on the URL included in the common access information. Here, for convenience of explanation, access requests to function 1 of device A and function 1 of device C are shown in parallel, but this does not mean that they are performed at the same time, and they can be performed separately.

アクセス要求でスマートフォン端末機70が送信するデータ(body)は、デバイスAの機能1とデバイスCの機能1とについては入力データの形式(入力)が"Number"であるため、一例として、ともに数字で表されるデータ"100"であることとする。 The data (body) sent by the smartphone terminal 70 in the access request is a numeric value, as an example, since the input data format (input) for function 1 of device A and function 1 of device C is "Number". It is assumed that the data is "100" expressed by .

次に、工程(5)に示すプロトコルX変換処理が行われる。工程(4)から工程(5)に至る間には、判別部115がアクセス要求のURLに基づいてスマートフォン端末機70のアクセス先を判別し、情報選択部116が判別部115によって判別されるアクセス先のデバイス名及び機能名を用いて、アクセス先のデバイス名及び機能名に対応するデバイスアクセス情報を選択する。このような処理をデバイスAの機能1とデバイスCの機能1とについて別々に行う。 Next, the protocol X conversion process shown in step (5) is performed. From step (4) to step (5), the determining unit 115 determines the access destination of the smartphone terminal 70 based on the URL of the access request, and the information selecting unit 116 determines the access destination determined by the determining unit 115. Using the previous device name and function name, select device access information corresponding to the access destination device name and function name. Such processing is performed separately for function 1 of device A and function 1 of device C.

また、変換ルール選択部117が情報選択部116によって選択されるデバイスアクセス情報に関連付けられているプロトコル変換ルールを選択する。このような処理をデバイスAの機能1とデバイスCの機能1とについて別々に行う。ここでは一例として、デバイスAの機能1のプロトコルがXで、デバイスCの機能1のプロトコルがYであるため、デバイスAの機能1についてはプロトコルX用のプロトコル変換ルールが選択され、デバイスCの機能1についてはプロトコルY用のプロトコル変換ルールが選択される。 Further, the conversion rule selection unit 117 selects a protocol conversion rule associated with the device access information selected by the information selection unit 116. Such processing is performed separately for function 1 of device A and function 1 of device C. Here, as an example, the protocol of function 1 of device A is X, and the protocol of function 1 of device C is Y, so the protocol conversion rule for protocol X is selected for function 1 of device A, and For function 1, the protocol conversion rule for protocol Y is selected.

そして、プロトコル変換処理部118が情報選択部116によって選択されるデバイスアクセス情報と、変換ルール選択部117によって選択されるプロトコル変換ルールとに基づいて、プロトコルX変換処理においてデータのプロトコル変換を行う。また、プロトコル変換処理部118が情報選択部116によって選択されるデバイスアクセス情報に含まれるプロトコル変換ルールに基づいて、プロトコルY変換処理においてデータのプロトコル変換を行う。 Then, the protocol conversion processing unit 118 performs protocol conversion of the data in the protocol X conversion process based on the device access information selected by the information selection unit 116 and the protocol conversion rule selected by the conversion rule selection unit 117. Further, the protocol conversion processing unit 118 performs protocol conversion of data in the protocol Y conversion process based on the protocol conversion rule included in the device access information selected by the information selection unit 116.

プロトコル変換処理部118は、図5に示すプロトコル変換ルールに従って、デバイスAの機能1についてはデータ"0A020064"を出力する。 The protocol conversion processing unit 118 outputs data "0A020064" for function 1 of device A according to the protocol conversion rules shown in FIG.

また、プロトコル変換処理部118は、デバイスCの機能1についてのプロトコル変換ルールに従って、データ{"func":"A","data":100}を出力する。デバイスCの機能1についてのプロトコル変換ルールは、入力データのフォーマットである{"func":"A","data":<INPUT>}の<INPUT>に10進数でのデータを入れるというルールである。 Further, the protocol conversion processing unit 118 outputs data {"func":"A","data":100} according to the protocol conversion rule for function 1 of device C. The protocol conversion rule for function 1 of device C is to enter decimal data in <INPUT> of {"func":"A","data":<INPUT>}, which is the input data format. be.

このため、デバイスCの機能1については、{"func":"A","data":100}というデータに変換されることになる。 Therefore, function 1 of device C will be converted to data {"func":"A","data":100}.

そして、工程(6)に示すように、通信処理部119は、デバイスAの機能1についてプロトコルを変換したデータ"0A020064"をデバイスAに送信し、デバイスCの機能1についてプロトコルを変換したデータ{"func":"A","data":100}をデバイスCに送信する。これらのデータはデバイスA、Cの機能1に対するコマンドであるため、デバイスA、Cの機能1がコマンドに従った所定の動作を行うことになる。 Then, as shown in step (6), the communication processing unit 119 sends the data "0A020064" whose protocol has been converted for function 1 of device A to device A, and the data whose protocol has been converted for function 1 of device C { "func":"A","data":100} is sent to device C. Since these data are commands for function 1 of devices A and C, function 1 of devices A and C performs a predetermined operation according to the command.

以上のように、実施の形態によれば、デバイスAの固有の情報であるデバイスアクセス情報から、共通のフォーマットで記述可能な部分を抽出した共通アクセス情報を生成し、スマートフォン端末機70には共通アクセス情報に基づいてデバイスへのアクセス要求を行わせる。 As described above, according to the embodiment, common access information is generated by extracting parts that can be described in a common format from device access information that is unique information of device A, and A request for access to the device is made based on the access information.

GW100は、デバイスアクセス情報とプロトコル変換ルールを関連付けてメモリ120に格納するとともに、デバイスアクセス情報と共通アクセス情報をデバイス名及び機能名と関連付けてメモリ120に格納する。 The GW 100 stores the device access information and the protocol conversion rule in association with each other in the memory 120, and also stores the device access information and the common access information in the memory 120 in association with the device name and the function name.

そして、スマートフォン端末機70が共通アクセス情報に含まれるURLを利用してデバイスへのアクセス要求を行うと、GW100は、プロトコルXについては、URLに含まれるデバイス名及び機能名を用いてデバイスアクセス情報を選択し、デバイスアクセス情報に関連付けられているプロトコル変換ルールと、デバイスアクセス情報とを用いて、アクセス要求に含まれるデータのプロトコル変換処理を行う。また、GW100は、プロトコルYについては、URLに含まれるデバイス名及び機能名を用いてデバイスアクセス情報を選択し、デバイスアクセス情報に含まれるプロトコル変換ルールを用いて、アクセス要求に含まれるデータのプロトコル変換処理を行う。この後に、GW100は、プロトコル変換処理を行ったデータをデバイスに送信する。 Then, when the smartphone terminal 70 requests access to the device using the URL included in the common access information, the GW 100 requests device access information using the device name and function name included in the URL for protocol X. is selected, and the protocol conversion process for the data included in the access request is performed using the protocol conversion rule associated with the device access information and the device access information. Further, for protocol Y, the GW 100 selects device access information using the device name and function name included in the URL, and uses the protocol conversion rule included in the device access information to convert the protocol of the data included in the access request. Perform the conversion process. After this, the GW 100 transmits the data that has been subjected to the protocol conversion process to the device.

したがって、データのプロトコル変換を容易に行えるGW100、及び、情報処理プログラムを提供することができる。 Therefore, it is possible to provide a GW 100 and an information processing program that can easily perform data protocol conversion.

従来から、スマートフォン端末機のような制御部と、複数のデバイスとの間をゲートウェイ(GW)で中継するシステムがある。このようなシステムにおいて、制御部と複数のデバイスとの間でGWがデータを中継する場合に、複数のデバイスの通信プロトコルが異なる場合、又は、デバイスの機能毎にデータの形式等が異なるような場合には、データの変換処理を容易に行うことができない。 Conventionally, there is a system in which a gateway (GW) is used as a relay between a control unit such as a smartphone terminal and a plurality of devices. In such a system, when the GW relays data between the control unit and multiple devices, the communication protocols of the multiple devices may differ, or the data format may differ depending on the function of the device. In some cases, data conversion processing cannot be performed easily.

また、このような場合に、各デバイスにエージェントを搭載して、各デバイスのエージェントがGWと複数のデバイスとの間の共通のプロトコルに変換する処理を行うシステムが実在する。 Furthermore, in such a case, there is an existing system in which an agent is installed in each device and the agent in each device performs a process of converting the protocol to a common protocol between the GW and the plurality of devices.

しかしながら、このようなシステムでは、デバイス同士のプロトコルが異なる場合、又は、デバイス同士のデータ形式が異なる場合には、エージェントを共通化することは困難であり、別々に開発する必要がある。 However, in such a system, if the protocols of the devices are different or if the data formats of the devices are different, it is difficult to standardize the agents and it is necessary to develop them separately.

これに対して、実施の形態のGW100は、デバイス同士のプロトコルが同一であれば、デバイス同士のデータ形式が異なる場合においても、共通アクセス情報を利用するとともにプロトコル変換ルールを共通化した上述のような処理によって、プロトコル変換を共通化することができる。また、このため、データ形式が異なるデバイス毎にエージェントのようなプログラムを開発する必要がなくなる。 In contrast, the GW 100 of the embodiment utilizes common access information and standardizes protocol conversion rules even if the data formats of the devices are different, as long as the protocols of the devices are the same. Through this process, protocol conversion can be made common. Furthermore, this eliminates the need to develop a program such as an agent for each device with a different data format.

また、実施の形態のGW100は、デバイス同士のプロトコルが異なっていても、共通アクセス情報に基づいてプロトコルに応じたプロトコル変換ルールを選択できるので、プロトコル変換を容易に行うことができる。 Further, even if the protocols of the devices are different, the GW 100 of the embodiment can select a protocol conversion rule according to the protocol based on the common access information, so that the protocol conversion can be easily performed.

なお、以上では、デバイスが1つ又は2つあり、機能が1つ又は2つある形態について説明したが、デバイスは3つ以上あってもよく、各デバイスは3つ以上の機能を有していてもよい。いずれの場合においても、デバイス名及び機能名を含むURLと、入力データの形式(入力)と、出力データの形式(出力)とを含むデバイスアクセス情報を生成するとともに、URLに含まれるデバイス名及び機能名から共通アクセス情報を選択し、共通アクセス情報に関連付けられているプロトコル変換ルールを選択すればよい。このようにすれば、プロトコル、入力データの形式(入力)、出力データの形式(出力)が同一であっても同一ではなくても、データのプロトコル変換処理を容易に行うことができる。 In addition, although the above description has been made of a form in which there are one or two devices and one or two functions, there may be three or more devices, and each device has three or more functions. It's okay. In either case, device access information including a URL including the device name and function name, the input data format (input), and the output data format (output) is generated, and the device name and function name included in the URL are generated. What is necessary is to select the common access information from the function name and select the protocol conversion rule associated with the common access information. In this way, data protocol conversion processing can be easily performed regardless of whether the protocol, input data format (input), and output data format (output) are the same or not.

また、以上では、共通アクセス情報が入力データの形式(入力)と出力データの形式(出力)を含む形態について説明したが、共通アクセス情報は、入力データの形式(入力)と出力データの形式(出力)を含まなくてもよい。例えば、入力データの形式(入力)と出力データの形式(出力)が問われずに、プロトコル変換処理後のデータに、リクエスト要求のデータをそのまま組み込めばよいような場合には、共通アクセス情報は、入力データの形式(入力)、及び/又は、出力データの形式(出力)を含まなくてもよい。また、データの形式が不要なのは、入力データの形式(入力)と出力データの形式(出力)のいずれか一方だけでもよい。 In addition, above, the common access information includes the format of the input data (input) and the format of the output data (output), but the common access information includes the format of the input data (input) and the format of the output data ( output) may not be included. For example, in a case where the request data can be simply incorporated into the data after the protocol conversion process, regardless of the format of the input data (input) and the format of the output data (output), the common access information is It is not necessary to include the format of input data (input) and/or the format of output data (output). Further, the data format may not be necessary except for either the input data format (input) or the output data format (output).

また、以上では、図8に示すようにデバイス名及び機能名とデバイスアクセス情報とを関連付けたデータを作成する形態について説明した。しかしながら、図8に示すデータの代わりに、デバイス名及び機能名を埋め込んだ共通アクセス情報とデバイスアクセス情報とを関連付けたデータを作成してもよい。デバイス名及び機能名を埋め込んだ共通アクセス情報を用いれば、アクセス要求のURLに含まれるデバイス名及び機能名から共通アクセス情報を特定でき、さらに、共通アクセス情報と関連付けられたデバイスアクセス情報を特定できるからである。 Furthermore, the above has described a form in which data in which device names and function names are associated with device access information is created as shown in FIG. 8 . However, instead of the data shown in FIG. 8, data may be created in which common access information in which a device name and function name are embedded is associated with device access information. By using the common access information in which the device name and function name are embedded, the common access information can be specified from the device name and function name included in the URL of the access request, and furthermore, the device access information associated with the common access information can be specified. It is from.

また、以上では、図7に示すデバイスアクセス情報とプロトコル変換ルールを関連付けたデータと、図8に示すデバイス名及び機能名とデバイスアクセス情報とを関連付けたデータとが別々のデータである形態について説明した。しかしながら、図7に示すデバイスアクセス情報とプロトコル変換ルールを関連付けたデータと、図8に示すデバイス名及び機能名とデバイスアクセス情報とを関連付けたデータとは1つのデータとして作成されていてもよい。 Furthermore, the above description describes a form in which the data in which device access information and protocol conversion rules are associated, shown in FIG. 7, and the data in which device name and function name are associated with device access information, shown in FIG. 8, are separate data. did. However, the data shown in FIG. 7 in which the device access information is associated with the protocol conversion rule, and the data shown in FIG. 8 in which the device name and function name are associated with the device access information may be created as one data.

以上、本発明の例示的な実施の形態の情報処理装置、及び、情報処理プログラムについて説明したが、本発明は、具体的に開示された実施の形態に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。
以上の実施の形態に関し、さらに以下の付記を開示する。
(付記1)
第1ネットワーク側の第1プロトコルと第2ネットワーク側の第2プロトコルとのプロトコル変換処理に用いるデータのうち、前記第2ネットワークを介して接続されるデバイスに固有のデバイスアクセス情報を取得する情報取得部と、
前記情報取得部によって取得されるデバイスアクセス情報と、当該デバイスアクセス情報に含まれるアクセス先を表す情報とを関連付けて格納する第1格納部と、
前記取得されたデバイスアクセス情報のうちの前記アクセス先を複数の前記デバイスについての共通フォーマットで表す共通アクセス情報を生成する情報生成部と、
前記生成された共通アクセス情報を前記第1ネットワークに接続される制御部に提供する情報提供部と、
前記提供された共通アクセス情報に基づいて前記第1ネットワーク及び前記第2ネットワークを介して前記制御部がアクセスするアクセス先を判別する判別部と、
前記判別部によって判別されるアクセス先に対応するデバイスアクセス情報を前記第1格納部に格納されているデバイスアクセス情報から選択する情報選択部と、
前記情報選択部によって選択されるデバイスアクセス情報によって特定される前記第1プロトコル及び前記第2プロトコルのプロトコル変換ルールで前記制御部から前記第1ネットワークを介して受信する第1データのプロトコル変換を行うプロトコル変換処理部と
を含む、情報処理装置。
(付記2)
前記デバイスアクセス情報と前記プロトコル変換ルールを表す情報とを関連付けて格納する第2格納部と、
前記第2格納部に格納されるプロトコル変換ルールのうち、前記情報選択部によって選択されるデバイスアクセス情報に関連付けられたプロトコル変換ルールを選択する変換ルール選択部と
をさらに含み、
前記プロトコル変換処理部は、前記変換ルール選択部によって選択されるプロトコル変換ルールで前記制御部から前記第1ネットワークを介して受信する第1データのプロトコル変換を行う、付記1記載の情報処理装置。
(付記3)
前記プロトコル変換ルールは、前記第2プロトコルが共通の複数のアクセス先についての共通のプロトコル変換ルールを表す、付記1又は2記載の情報処理装置。
(付記4)
前記プロトコル変換処理部によってプロトコル変換が行われた第1データを前記デバイスに送信する第1データ送信部をさらに含む、付記1乃至3のいずれか一項記載の情報処理装置。
(付記5)
前記共通アクセス情報は、前記アクセス先に加えて、前記第1データのデータ形式を表す情報であり、
前記制御部は、前記アクセス先にアクセスする際に、前記データ形式に基づく前記第1データを前記第1ネットワークを介して送信する、付記1乃至4のいずれか一項記載の情報処理装置。
(付記6)
前記プロトコル変換処理部は、前記第2ネットワークを介して前記デバイスから受信する第2データのプロトコル変換を前記プロトコル変換処理で行う、付記1乃至5のいずれか一項記載の情報処理装置。
(付記7)
前記プロトコル変換処理部によってプロトコル変換が行われた第2データを前記制御部に送信する第2データ送信部をさらに含む、付記6記載の情報処理装置。
(付記8)
前記アクセス先を表す情報は、前記デバイスの種類及び機能を表す情報である、付記1乃至7のいずれか一項記載の情報処理装置。
(付記9)
前記共通アクセス情報は、前記アクセス先に加えて、前記第2データのデータ形式を表す情報である、付記5乃至8のいずれか一項記載の情報処理装置。
(付記10)
前記第1データ又は前記第2データのデータ形式は、数値又は文字のいずれであるかを表す情報である、付記5又は9記載の情報処理装置。
(付記11)
第1ネットワーク側の第1プロトコルと第2ネットワーク側の第2プロトコルとのプロトコル変換処理に用いるデータのうち、前記第2ネットワークを介して接続されるデバイスに固有のデバイスアクセス情報を取得することと、
前記取得したデバイスアクセス情報と、当該デバイスアクセス情報に含まれるアクセス先を表す情報とを関連付けて格納部に格納することと、
前記取得したデバイスアクセス情報のうちの前記アクセス先を複数の前記デバイスについての共通フォーマットで表す共通アクセス情報を生成することと、
前記生成した共通アクセス情報を前記第1ネットワークに接続される制御部に提供することと、
前記提供した共通アクセス情報に基づいて前記第1ネットワーク及び前記第2ネットワークを介して前記制御部がアクセスするアクセス先を判別することと、
前記判別したアクセス先に対応するデバイスアクセス情報を前記格納部に格納されているデバイスアクセス情報から選択することと、
前記選択したデバイスアクセス情報によって特定される前記第1プロトコル及び前記第2プロトコルのプロトコル変換ルールで前記制御部から前記第1ネットワークを介して受信する第1データのプロトコル変換を行うことと
を含む処理をコンピュータに実行させる、情報処理プログラム。
Although the information processing apparatus and information processing program according to the exemplary embodiments of the present invention have been described above, the present invention is not limited to the specifically disclosed embodiments, and the present invention is not limited to the specifically disclosed embodiments. Various modifications and changes are possible without departing from the scope.
Regarding the above embodiments, the following additional notes are further disclosed.
(Additional note 1)
Information acquisition for acquiring device access information specific to a device connected via the second network, among data used for protocol conversion processing between the first protocol on the first network side and the second protocol on the second network side. Department and
a first storage unit that stores device access information acquired by the information acquisition unit and information representing an access destination included in the device access information in association with each other;
an information generation unit that generates common access information that represents the access destination of the acquired device access information in a common format for a plurality of the devices;
an information providing unit that provides the generated common access information to a control unit connected to the first network;
a determination unit that determines an access destination to be accessed by the control unit via the first network and the second network based on the provided common access information;
an information selection unit that selects device access information corresponding to the access destination determined by the determination unit from device access information stored in the first storage unit;
Performing protocol conversion of first data received from the control unit via the first network using protocol conversion rules for the first protocol and the second protocol specified by device access information selected by the information selection unit. An information processing device including a protocol conversion processing unit.
(Additional note 2)
a second storage unit that stores the device access information and information representing the protocol conversion rule in association with each other;
further comprising a conversion rule selection unit that selects a protocol conversion rule associated with device access information selected by the information selection unit from among the protocol conversion rules stored in the second storage unit;
The information processing device according to supplementary note 1, wherein the protocol conversion processing unit performs protocol conversion of first data received from the control unit via the first network using a protocol conversion rule selected by the conversion rule selection unit.
(Additional note 3)
The information processing device according to appendix 1 or 2, wherein the protocol conversion rule represents a common protocol conversion rule for a plurality of access destinations having the same second protocol.
(Additional note 4)
The information processing apparatus according to any one of Supplementary Notes 1 to 3, further including a first data transmitting section that transmits first data subjected to protocol conversion by the protocol conversion processing section to the device.
(Appendix 5)
The common access information is information representing the data format of the first data in addition to the access destination,
The information processing device according to any one of Supplementary Notes 1 to 4, wherein the control unit transmits the first data based on the data format via the first network when accessing the access destination.
(Appendix 6)
6. The information processing apparatus according to any one of appendices 1 to 5, wherein the protocol conversion processing unit performs protocol conversion of second data received from the device via the second network in the protocol conversion process.
(Appendix 7)
The information processing device according to supplementary note 6, further including a second data transmitting unit that transmits second data subjected to protocol conversion by the protocol conversion processing unit to the control unit.
(Appendix 8)
8. The information processing apparatus according to any one of appendices 1 to 7, wherein the information representing the access destination is information representing the type and function of the device.
(Appendix 9)
9. The information processing device according to any one of appendices 5 to 8, wherein the common access information is information representing a data format of the second data in addition to the access destination.
(Appendix 10)
The information processing device according to appendix 5 or 9, wherein the data format of the first data or the second data is information indicating whether it is a numerical value or a character.
(Appendix 11)
Obtaining device access information specific to a device connected via the second network among data used for protocol conversion processing between a first protocol on the first network side and a second protocol on the second network side. ,
storing the acquired device access information in a storage unit in association with information representing an access destination included in the device access information;
Generating common access information that represents the access destination of the acquired device access information in a common format for a plurality of the devices;
providing the generated common access information to a control unit connected to the first network;
determining an access destination to be accessed by the control unit via the first network and the second network based on the provided common access information;
selecting device access information corresponding to the determined access destination from device access information stored in the storage unit;
Processing comprising performing protocol conversion of first data received from the control unit via the first network using protocol conversion rules for the first protocol and the second protocol specified by the selected device access information. An information processing program that causes a computer to execute.

1 システム
50 FAN
60 ネットワーク
70 スマートフォン端末機
A、B デバイス
100 GW
110 制御装置
111 主制御部
112 情報取得部
113 情報生成部
114 情報提供部
115 判別部
116 情報選択部
117 変換ルール選択部
118 プロトコル変換処理部
119 通信処理部
120 メモリ
1 System 50 FAN
60 Network 70 Smartphone terminal A, B Device 100 GW
110 Control device 111 Main control unit 112 Information acquisition unit 113 Information generation unit 114 Information provision unit 115 Discrimination unit 116 Information selection unit 117 Conversion rule selection unit 118 Protocol conversion processing unit 119 Communication processing unit 120 Memory

Claims (7)

第1ネットワーク側の第1プロトコルと第2ネットワーク側の第2プロトコルとのプロトコル変換処理に用いるデータのうち、前記第2ネットワークを介して接続されるデバイスに固有のデバイスアクセス情報を取得する情報取得部と、
前記情報取得部によって取得されるデバイスアクセス情報と、当該デバイスアクセス情報に含まれるアクセス先を表す情報とを関連付けて格納する第1格納部と、
前記取得されたデバイスアクセス情報のうちの前記アクセス先を複数の前記デバイスについての共通フォーマットで表す共通アクセス情報を生成する情報生成部と、
前記生成された共通アクセス情報を前記第1ネットワークに接続される制御部に提供する情報提供部と、
前記提供された共通アクセス情報に基づいて前記第1ネットワーク及び前記第2ネットワークを介して前記制御部がアクセスするアクセス先を判別する判別部と、
前記判別部によって判別されるアクセス先に対応するデバイスアクセス情報を前記第1格納部に格納されているデバイスアクセス情報から選択する情報選択部と、
前記情報選択部によって選択されるデバイスアクセス情報によって特定される前記第1プロトコル及び前記第2プロトコルのプロトコル変換ルールで前記制御部から前記第1ネットワークを介して受信する第1データのプロトコル変換と、前記第2ネットワークを介して前記デバイスから受信する第2データのプロトコル変換とを行うプロトコル変換処理部と
を含
前記アクセス先を表す情報は、前記デバイスのデバイス名及び機能名を表す情報であり、
前記デバイスアクセス情報は、前記デバイス名、前記機能名、前記第1データのデータ形式、及び、前記第2データのデータ形式を表す情報を含み、
前記共通アクセス情報は、前記アクセス先に加えて、前記第1データのデータ形式、及び、前記第2データのデータ形式を表す情報であり、
前記情報生成部は、前記デバイスアクセス情報に含まれる、前記デバイス名、前記機能名、前記第1データのデータ形式、及び、前記第2データのデータ形式に基づいて、前記共通アクセス情報を生成する、情報処理装置。
Information acquisition for acquiring device access information specific to a device connected via the second network, among data used for protocol conversion processing between the first protocol on the first network side and the second protocol on the second network side. Department and
a first storage unit that stores device access information acquired by the information acquisition unit and information representing an access destination included in the device access information in association with each other;
an information generation unit that generates common access information that represents the access destination of the acquired device access information in a common format for a plurality of the devices;
an information providing unit that provides the generated common access information to a control unit connected to the first network;
a determination unit that determines an access destination to be accessed by the control unit via the first network and the second network based on the provided common access information;
an information selection unit that selects device access information corresponding to the access destination determined by the determination unit from device access information stored in the first storage unit;
protocol conversion of first data received from the control unit via the first network using protocol conversion rules for the first protocol and the second protocol specified by device access information selected by the information selection unit; a protocol conversion processing unit that performs protocol conversion of second data received from the device via the second network ;
The information representing the access destination is information representing the device name and function name of the device,
The device access information includes information representing the device name, the function name, the data format of the first data, and the data format of the second data,
The common access information is information representing the data format of the first data and the data format of the second data in addition to the access destination,
The information generation unit generates the common access information based on the device name, the function name, the data format of the first data, and the data format of the second data, which are included in the device access information. , information processing equipment.
前記デバイスアクセス情報と前記プロトコル変換ルールを表す情報とを関連付けて格納する第2格納部と、
前記第2格納部に格納されるプロトコル変換ルールのうち、前記情報選択部によって選択されるデバイスアクセス情報に関連付けられたプロトコル変換ルールを選択する変換ルール選択部と
をさらに含み、
前記プロトコル変換処理部は、前記変換ルール選択部によって選択されるプロトコル変換ルールで前記制御部から前記第1ネットワークを介して受信する第1データのプロトコル変換を行う、請求項1記載の情報処理装置。
a second storage unit that stores the device access information and information representing the protocol conversion rule in association with each other;
further comprising a conversion rule selection unit that selects a protocol conversion rule associated with device access information selected by the information selection unit from among the protocol conversion rules stored in the second storage unit;
The information processing apparatus according to claim 1, wherein the protocol conversion processing unit performs protocol conversion of first data received from the control unit via the first network using a protocol conversion rule selected by the conversion rule selection unit. .
前記プロトコル変換ルールは、前記第2プロトコルが共通の複数のアクセス先についての共通のプロトコル変換ルールを表す、請求項1又は2記載の情報処理装置。 3. The information processing apparatus according to claim 1, wherein the protocol conversion rule represents a common protocol conversion rule for a plurality of access destinations having the same second protocol. 前記プロトコル変換処理部によってプロトコル変換が行われた第1データを前記デバイスに送信する第1データ送信部をさらに含む、請求項1乃至3のいずれか一項記載の情報処理装置。 4. The information processing apparatus according to claim 1, further comprising a first data transmitting section that transmits first data subjected to protocol conversion by the protocol conversion processing section to the device. 前記制御部は、前記アクセス先にアクセスする際に、前記第1データのデータ形式に基づく前記第1データを前記第1ネットワークを介して送信する、請求項1乃至4のいずれか一項記載の情報処理装置。 5. The control unit according to claim 1, wherein the control unit transmits the first data based on the data format of the first data via the first network when accessing the access destination. Information processing device. 前記プロトコル変換処理部によってプロトコル変換が行われた第2データを前記制御部に送信する第2データ送信部をさらに含む、請求項1乃至5のいずれか一項記載の情報処理装置。 The information processing apparatus according to any one of claims 1 to 5 , further comprising a second data transmitter configured to transmit second data subjected to protocol conversion by the protocol conversion processing unit to the control unit. 第1ネットワーク側の第1プロトコルと第2ネットワーク側の第2プロトコルとのプロトコル変換処理に用いるデータのうち、前記第2ネットワークを介して接続されるデバイスに固有のデバイスアクセス情報を取得することと、
前記取得したデバイスアクセス情報と、当該デバイスアクセス情報に含まれるアクセス先を表す情報とを関連付けて格納部に格納することと、
前記取得したデバイスアクセス情報のうちの前記アクセス先を複数の前記デバイスについての共通フォーマットで表す共通アクセス情報を生成することと、
前記生成した共通アクセス情報を前記第1ネットワークに接続される制御部に提供することと、
前記提供した共通アクセス情報に基づいて前記第1ネットワーク及び前記第2ネットワークを介して前記制御部がアクセスするアクセス先を判別することと、
前記判別したアクセス先に対応するデバイスアクセス情報を前記格納部に格納されているデバイスアクセス情報から選択することと、
前記選択したデバイスアクセス情報によって特定される前記第1プロトコル及び前記第2プロトコルのプロトコル変換ルールで前記制御部から前記第1ネットワークを介して受信する第1データのプロトコル変換と、前記第2ネットワークを介して前記デバイスから受信する第2データのプロトコル変換とを行うことと
を含
前記アクセス先を表す情報は、前記デバイスのデバイス名及び機能名を表す情報であり、
前記デバイスアクセス情報は、前記デバイス名、前記機能名、前記第1データのデータ形式、及び、前記第2データのデータ形式を表す情報を含み、
前記共通アクセス情報は、前記アクセス先に加えて、前記第1データのデータ形式、及び、前記第2データのデータ形式を表す情報であり、
前記共通アクセス情報を生成することは、前記デバイスアクセス情報に含まれる、前記デバイス名、前記機能名、前記第1データのデータ形式、及び、前記第2データのデータ形式に基づいて、前記共通アクセス情報を生成することである、処理をコンピュータに実行させる、情報処理プログラム。
Obtaining device access information specific to a device connected via the second network among data used for protocol conversion processing between a first protocol on the first network side and a second protocol on the second network side. ,
storing the acquired device access information in a storage unit in association with information representing an access destination included in the device access information;
Generating common access information that represents the access destination of the acquired device access information in a common format for a plurality of the devices;
providing the generated common access information to a control unit connected to the first network;
determining an access destination to be accessed by the control unit via the first network and the second network based on the provided common access information;
selecting device access information corresponding to the determined access destination from device access information stored in the storage unit;
protocol conversion of first data received from the control unit via the first network using protocol conversion rules for the first protocol and the second protocol specified by the selected device access information; and performing a protocol conversion of second data received from the device via the
The information representing the access destination is information representing the device name and function name of the device,
The device access information includes information representing the device name, the function name, the data format of the first data, and the data format of the second data,
The common access information is information representing the data format of the first data and the data format of the second data in addition to the access destination,
Generating the common access information includes generating the common access information based on the device name, the function name, the data format of the first data, and the data format of the second data, which are included in the device access information. An information processing program that causes a computer to perform processing that generates information .
JP2019170141A 2019-09-19 2019-09-19 Information processing device and information processing program Active JP7371410B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019170141A JP7371410B2 (en) 2019-09-19 2019-09-19 Information processing device and information processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019170141A JP7371410B2 (en) 2019-09-19 2019-09-19 Information processing device and information processing program

Publications (2)

Publication Number Publication Date
JP2021048504A JP2021048504A (en) 2021-03-25
JP7371410B2 true JP7371410B2 (en) 2023-10-31

Family

ID=74878813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019170141A Active JP7371410B2 (en) 2019-09-19 2019-09-19 Information processing device and information processing program

Country Status (1)

Country Link
JP (1) JP7371410B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257658B (en) * 2021-12-24 2023-03-10 珠海格力电器股份有限公司 Communication protocol conversion configuration method, communication protocol conversion method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003030072A (en) 2001-07-18 2003-01-31 Matsushita Electric Ind Co Ltd Remote control proxy method and remote control proxy device
JP2006148804A (en) 2004-11-24 2006-06-08 Toshiba Corp Gateway device, network system, communication program, and communication method
JP2009075735A (en) 2007-09-19 2009-04-09 Oki Electric Ind Co Ltd Gateway device and information control method thereof
JP2010141826A (en) 2008-12-15 2010-06-24 Mitsubishi Electric Corp Equipment integrated management apparatus, equipment integrated management program, equipment connection apparatus, equipment connection program, equipment integrated management system, and equipment integrated management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003030072A (en) 2001-07-18 2003-01-31 Matsushita Electric Ind Co Ltd Remote control proxy method and remote control proxy device
JP2006148804A (en) 2004-11-24 2006-06-08 Toshiba Corp Gateway device, network system, communication program, and communication method
JP2009075735A (en) 2007-09-19 2009-04-09 Oki Electric Ind Co Ltd Gateway device and information control method thereof
JP2010141826A (en) 2008-12-15 2010-06-24 Mitsubishi Electric Corp Equipment integrated management apparatus, equipment integrated management program, equipment connection apparatus, equipment connection program, equipment integrated management system, and equipment integrated management method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
落合 徳彦 Norihiko OCHIAI,住設機器制御装置における複数プロトコル対応方式に関する検討 A Study on Multiprotocol Support in Home Equipment Controller,電子情報通信学会技術研究報告 Vol.112 No.4 IEICE Technical Report,日本,一般社団法人電子情報通信学会 The Institute of Electronics,Information and Communication Engineers,2012年04月05日,第112巻,P.25-30

Also Published As

Publication number Publication date
JP2021048504A (en) 2021-03-25

Similar Documents

Publication Publication Date Title
CN111433736B (en) Machine control system and machine control method
CN110891005A (en) IOT equipment control method, cloud server and IOT equipment control system
JP2006092087A (en) File management program, data structure, and file management apparatus
JP2012084124A (en) Equipment management device and equipment management program
JP6142511B2 (en) Communication relay program, communication relay apparatus, and image processing apparatus
US11212658B2 (en) Method for providing near filed communication device information for user and system therefor
JP7371410B2 (en) Information processing device and information processing program
CN105827300A (en) Relay apparatus and data communication system
JP2012248002A (en) Data registration device, data registration method, and computer program
CN107977344A (en) Date storage method, acquisition methods and server
JP5696749B2 (en) Information processing apparatus, information processing method, and computer program
JP6802354B2 (en) Communication test equipment, communication test methods and programs
JP5014373B2 (en) Web page input method, Web server, and Web system
JP6711057B2 (en) Point management system, point management method, point management device, and program
CN111602123A (en) Preprocessing judgment device, preprocessing judgment method, and program
JP2004227351A (en) Information providing device, information display device, information providing system, information providing method, and information providing program
JP7056445B2 (en) Workflow sharing system, application program, server and workflow sharing method
JP6035704B2 (en) Peripheral device, management device, and model information transmission method
JP2005333269A5 (en)
JP2009145969A (en) Setting information setting system and setting information setting method
CN112567346B (en) Data processing apparatus, data processing method, and computer-readable storage medium
JP5052058B2 (en) Information processing apparatus, information processing method, and information processing program
JP2005333269A (en) Measurement data communication device, health information communication device, information acquisition device, health information collection device, measurement data communication system, measurement data communication device control method, information acquisition device control method, measurement data communication device control program, and recording medium
JP7031042B1 (en) IoT control system, data display method, device control method and program
CN112567348B (en) Data processing device, data processing method and computer readable storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220609

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230306

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230411

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230608

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231002

R150 Certificate of patent or registration of utility model

Ref document number: 7371410

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150