JP2020008928A - Gateway device and data transfer method - Google Patents
Gateway device and data transfer method Download PDFInfo
- Publication number
- JP2020008928A JP2020008928A JP2018126732A JP2018126732A JP2020008928A JP 2020008928 A JP2020008928 A JP 2020008928A JP 2018126732 A JP2018126732 A JP 2018126732A JP 2018126732 A JP2018126732 A JP 2018126732A JP 2020008928 A JP2020008928 A JP 2020008928A
- Authority
- JP
- Japan
- Prior art keywords
- data
- list map
- information
- sensor
- gateway device
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、複数のセンサと接続するゲートウェイ装置のセンサデータの送信技術に関する。 The present invention relates to a technology for transmitting sensor data of a gateway device connected to a plurality of sensors.
IoTの様々な機器にセンサを取り付け、センサが計測した値(センサデータ)を活用するシステムの利用が拡大している。 The use of systems that attach sensors to various IoT devices and utilize the values (sensor data) measured by the sensors is expanding.
センサデータは、ゲートウェイ装置等を介して分析等を行うサーバに送信される。しかし、全てのセンサからセンサデータが送信された場合、ネットワーク負荷及びサーバの処理負荷が大きくなるという問題がある。 The sensor data is transmitted to a server that performs analysis and the like via a gateway device or the like. However, when sensor data is transmitted from all sensors, there is a problem that a network load and a processing load on a server increase.
そこで、センサデータの送信技術として様々な技術が検討されている。例えば、特許文献1には、サーバの負荷及び通信量を軽減し、緊急性の高いデータに対するリアルタイム性を確保するセンサデータ収集システムが記載されている。また、特許文献2には、異常判定のために重要なセンサデータを逃さずにセンサデータの量を効果的に削減するセンサデータ処理方法が記載されている。
Therefore, various techniques are being studied as a technique for transmitting sensor data. For example,
センサデータは、ビットの配列であるため、特許文献1及び特許文献2に記載されているようなデータの圧縮では送信するセンサデータのデータ量を効率的に削減できない可能性がある。
Since sensor data is an array of bits, data compression as described in
そこで、ゲートウェイ装置が、フィルタリングを行ってセンサデータに含まれる値の中からサービスに必要なデータのみを取得し、取得した値のみをサーバに送信することができれば、データ量を効率的に削減できる。 Therefore, if the gateway device can perform filtering to acquire only the data necessary for the service from the values included in the sensor data and transmit only the acquired values to the server, the data amount can be efficiently reduced. .
しかし、フィルタリングの設定をゲートウェイ装置に行う必要がある。また、サービスの追加又はサービス内容の変更に伴って、フィルタリングの設定を追加又は変更する必要がある。フィルタリングの設定、追加、及び変更には、ゲートウェイ装置のファームウェアの更新又はゲートウェイ装置の入替え等を行う必要がある。システムに含まれるゲートウェイ装置の数は膨大であるため、システムの運用コストが高くなるという問題がある。 However, it is necessary to set the filtering on the gateway device. In addition, it is necessary to add or change the setting of filtering with the addition of the service or the change of the service content. In order to set, add, and change the filtering, it is necessary to update the firmware of the gateway device or replace the gateway device. Since the number of gateway devices included in the system is enormous, there is a problem that the operation cost of the system increases.
また、センサデータはXML形式のデータであることが多いため、フィルタリング設定に合致する値をセンサデータから取得するために、全文検索を行う必要がある。したがって、従来のフィルタリングでは、処理負荷が大きいという問題がある。 Further, since the sensor data is often data in the XML format, it is necessary to perform a full-text search in order to obtain a value matching the filtering setting from the sensor data. Therefore, the conventional filtering has a problem that the processing load is large.
本発明は、処理負荷を抑え、かつ、システム構成の変更に柔軟に対応できる、センサデータのデータ量を削減するためのフィルタリングを実現するシステム及び方法を提供する。 The present invention provides a system and a method for realizing filtering for reducing a data amount of sensor data, which can suppress a processing load and can flexibly respond to a change in system configuration.
本願において開示される発明の代表的な一例を示せば以下の通りである。すなわち、複数のセンサから取得したセンサデータを少なくとも一つの計算機に転送するゲートウェイ装置であって、演算装置、前記演算装置に接続される記憶装置、及び前記演算装置に接続されるインタフェースを備え、前記記憶装置は、配列型のデータから取得する要素を指定する情報であるリストマップを管理するためのリストマップ管理情報を格納し、前記演算装置は、前記インタフェースを介して、少なくとも一つの前記センサから前記センサデータを取得した場合、前記センサデータから配列型のデータである変換データを生成し、前記リストマップ管理情報に格納される前記リストマップに基づいて、前記変換データの任意の要素を取得することによってセンサ情報を生成し、前記少なくとも一つの計算機に前記センサ情報を送信する。 A typical example of the invention disclosed in the present application is as follows. That is, a gateway device for transferring sensor data obtained from a plurality of sensors to at least one computer, comprising a computing device, a storage device connected to the computing device, and an interface connected to the computing device, The storage device stores list map management information for managing a list map, which is information for specifying an element to be obtained from array-type data, and the arithmetic device includes, via the interface, at least one of the sensors. When the sensor data is obtained, conversion data that is array-type data is generated from the sensor data, and an arbitrary element of the conversion data is obtained based on the list map stored in the list map management information. Generating sensor information, and transmitting the sensor information to the at least one computer. To trust.
本発明によれば、処理負荷を抑え、かつ、システム構成の変更に柔軟に対応できる、センサデータのデータ量を削減するためのフィルタリングを実現できる。 ADVANTAGE OF THE INVENTION According to this invention, the filtering for reducing the data amount of sensor data which can suppress processing load and can respond flexibly to the change of a system configuration can be implement | achieved.
以下、本発明の実施例を、図面を用いて説明する。ただし、本発明は以下に示す実施の形態の記載内容に限定して解釈されるものではない。本発明の思想ないし趣旨から逸脱しない範囲で、その具体的構成を変更し得ることは当業者であれば容易に理解される。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the present invention is not construed as being limited to the description of the embodiments below. It is easily understood by those skilled in the art that the specific configuration can be changed without departing from the spirit or spirit of the present invention.
以下に説明する発明の構成において、同一又は類似する構成又は機能には同一の符号を付し、重複する説明は省略する。 In the structures of the invention described below, the same or similar structures or functions are denoted by the same reference numerals, and redundant description will be omitted.
図1は、実施例1のシステムの構成例を示す図である。 FIG. 1 is a diagram illustrating a configuration example of the system according to the first embodiment.
システムは、ゲートウェイ装置100、複数のセンサ110、及び複数のサーバ120から構成される。図1に示すシステムは、M個のセンサ110及びN個のサーバ120を含む。
The system includes a
ゲートウェイ装置100は、ネットワークを介して、複数のセンサ110と接続し、また、複数のサーバ120と接続する。ネットワークは、WAN(Wide Area Network)及びLAN(Local Area Network)等である。また、ネットワークの接続方式は無線及び有線のいずれでもよい。
The
なお、ゲートウェイ装置100は、直接、複数のセンサ110と接続してもよいし、また、直接、複数のサーバ120と接続してもよい。
Note that the
センサ110は、監視オブジェクトに関連する値を計測する。監視オブジェクトは、例えば、家電等である。センサ110は、計測値等の複数の項目値を含むセンサデータ140をゲートウェイ装置100に送信する。なお、本発明は、監視オブジェクトの種類に限定されず、また、センサ110が計測する値の種類に限定されない。
The
ゲートウェイ装置100は、センサ110から取得したセンサデータ140を用いてセンサ情報150を生成し、サーバ120にセンサ情報150を送信する。
The
より具体的には、ゲートウェイ装置100は、センサデータ140を2次元配列に変換し、リストマップを用いて2次元配列の所定の要素(項目値)を取得することによってセンサ情報150を生成する。リストマップは、2次元配列(配列型のデータ)から取得する要素を指定するための情報である。以下の説明では、センサデータ140を変換することによって生成される2次元配列を変換データと記載する。
More specifically, the
ゲートウェイ装置100は、後述するように、各サーバ120に設定されたリストマップを管理する。そのため、各サーバ120に送信されるセンサ情報150は必ずしも一致しない。センサ情報150は、センサデータ140から取得された要素のみを含むためデータ量が小さくなる。
The
サーバ120は、センサ情報150を用いた処理を実行する。例えば、監視オブジェクトの状態分析等の処理を実行する。なお、本発明は、サーバ120が実行する処理に限定されない。
The
図2は、実施例1のゲートウェイ装置100の構成例を示す図である。
FIG. 2 is a diagram illustrating a configuration example of the
ゲートウェイ装置100は、プロセッサ200、メモリ201、及びネットワークインタフェース202を有する。プロセッサ200、メモリ201、及びネットワークインタフェース202は、内部バス等を介して互いに接続される。
The
なお、ゲートウェイ装置100は、HDD(Hard Disk Drive)及びSSD(Solid State Drive)等の記憶装置、キーボード及びマウス等の入力装置、並びに、ディスプレイ及びタッチパネル等の出力装置を有してもよい。また、ゲートウェイ装置100は、外部の入力装置及び出力装置と接続するIOインタフェースを有してもよい。
The
プロセッサ200は、少なくとも一つの演算コアを有する演算装置であって、メモリ201に格納されるプログラムを実行する。プロセッサ200がプログラムにしたがって処理を実行することによって、特定の機能を実現する機能部(モジュール)として動作する。以下の説明では、機能部を主語に処理を説明する場合、プロセッサ200が当該モジュールを実現するプログラムを実行していることを示す。
The
メモリ201は、プロセッサ200が実行するプログラム及びプログラムが使用する情報を格納する。また、メモリ201は、プログラムが一時的に使用するワークエリアを含む。メモリ201は、揮発性メモリ及び不揮発性メモリのいずれでもよい。メモリ201に格納されるプログラム及び情報については後述する。
The
ネットワークインタフェース202は、ネットワークを介して外部装置と接続するためのインタフェースである。
The
ここで、メモリ201に格納されるプログラム及び情報について説明する。メモリ201は、制御部210を実現するプログラムを格納する。また、メモリ201は、データ構造定義情報220及びリストマップ管理情報230を格納する。
Here, programs and information stored in the
データ構造定義情報220は変換データの定義情報を格納する。変換データのデータ構造及びデータ構造定義情報220の詳細は、図3A及び図3Bを用いて説明する。
The data
リストマップ管理情報230はリストマップの情報を格納する。リストマップのデータ構造及びリストマップ管理情報230の詳細は、図4A、図4B、及び図4Cを用いて説明する。
The list
制御部210は、ゲートウェイ装置100全体を制御する。制御部210は、リストマップ登録部211、前処理部212、データ生成部213、及び送信部214を含む。
The control unit 210 controls the
リストマップ登録部211は、サーバ120からリストマップの登録要求を受け付け、リストマップ管理情報230にリストマップの情報を登録する。前処理部212は、データ構造定義情報220を参照して、センサ110から取得したセンサデータ140を変換データに変換する。データ生成部213は、リストマップ管理情報230を参照し、変換データから所定の項目値を取得することによってセンサ情報150を生成する。送信部214は、サーバ120にセンサ情報150を送信する。
The list
なお、制御部210に含まれる各機能部は、複数の機能部を一つの機能部にまとめてもよいし、一つの機能部を機能毎に複数の機能部に分けてもよい。 Each of the functional units included in the control unit 210 may combine a plurality of functional units into one functional unit, or may divide one functional unit into a plurality of functional units for each function.
図3Aは、実施例1の変換データのデータ構造の一例を示す図である。図3Bは、実施例1のデータ構造定義情報220のデータ構造の一例を示す図である。
FIG. 3A is a diagram illustrating an example of a data structure of the conversion data according to the first embodiment. FIG. 3B is a diagram illustrating an example of a data structure of the data
データ構造300は、変換データのデータ構造を示す。変換データは、図3Aに示すような2次元配列として定義される。各要素のアルファベットは項目値の識別情報を表す。実施例1では、変換データの横方向を行と呼び、縦方向を列と呼ぶ。なお、センサ110から取得するセンサデータ140は、必ずしも全ての要素に対応する項目値を含まなくてもよい。
The data structure 300 shows the data structure of the conversion data. The conversion data is defined as a two-dimensional array as shown in FIG. 3A. The alphabet of each element represents the identification information of the item value. In the first embodiment, the horizontal direction of the converted data is called a row, and the vertical direction is called a column. Note that the
データ構造定義情報220は、ID301、データ名302、及び要素303から構成されるエントリを格納する。一つのエントリが変換データの一つの要素に対応する。
The data
ID301は、エントリの識別情報を格納するフィールドである。データ名302は、要素に格納される項目値の識別情報を格納するフィールドである。要素303は、変換データの要素を指定する識別情報を格納するフィールドである。要素303には、例えば、行の番号及び列の番号の組合せが格納される。
The
図4Aは、実施例1のリストマップのデータ構造の一例を示す図である。図4Bは、実施例1のリストマップの管理方法を説明する図である。図4Cは、実施例1のリストマップ管理情報230のデータ構造の一例を示す図である。
FIG. 4A is a diagram illustrating an example of a data structure of a list map according to the first embodiment. FIG. 4B is a diagram illustrating a method of managing the list map according to the first embodiment. FIG. 4C is a diagram illustrating an example of a data structure of the list
リストマップは、データ構造400に示すように、変換データ(2次元配列)に対応するビットマップ形式の情報として扱うことができる。丸が設定された要素は取得する要素を示す。リストマップ及び変換データのデータ構造は、互いが対応するように設定される。 As shown in the data structure 400, the list map can be handled as bitmap information corresponding to the converted data (two-dimensional array). Elements with circles indicate elements to be acquired. The data structures of the list map and the conversion data are set so as to correspond to each other.
実施例1では、ゲートウェイ装置100が管理する情報のデータ量を削減するために、ビットマップとは異なるデータ形式でリストマップを管理している。ここで、図4Bを用いて、実施例1におけるリストマップの管理方法について説明する。
In the first embodiment, the list map is managed in a data format different from the bitmap in order to reduce the data amount of the information managed by the
リストマップの一つの行をビット列として扱う。図4Bでは、リストマップの各行が4桁のビット列として扱われる。丸が設定されている要素の値を「1」、丸が設定されていない要素の値を「0」とする。 Treat one row of the list map as a bit string. In FIG. 4B, each row of the list map is treated as a 4-digit bit string. The value of an element with a circle is “1”, and the value of an element without a circle is “0”.
ビット列を10進法で表された二桁の数値に変換することによって、取得する要素(ビット)を行ごとに特定できる。さらに、各ビット列(各行)から算出された数値を結合した値を取得する要素を特定するための情報、すなわち、リストマップの情報として扱う。 By converting the bit string into a two-digit numerical value expressed in a decimal system, the element (bit) to be obtained can be specified for each row. Further, it is handled as information for specifying an element for obtaining a value obtained by combining numerical values calculated from each bit string (each row), that is, information of a list map.
以下の説明では、図4Bに示すような規則に基づいて、ビットマップ形式の情報として表されるリストマップから算出される数値を登録値と記載する。 In the following description, a numerical value calculated from a list map represented as information in a bitmap format based on a rule as shown in FIG. 4B is described as a registered value.
図4Bに示すように、各行のビット列は「1001」、「0000」、「0100」、及び「0001」となるため、10進法の数値は「09」、「00」、「04」、及び「01」となる。したがって、図4Aに示すリストマップの登録値は「09000401」と算出される。 As shown in FIG. 4B, the bit strings in each row are “1001,” “0000,” “0100,” and “0001,” so that the decimal values are “09,” “00,” “04,” It becomes "01". Therefore, the registered value of the list map shown in FIG. 4A is calculated as “09000401”.
リストマップ管理情報230は、ID401、リストマップ402、及び宛先403から構成されるエントリを格納する。一つのエントリが一つのリストマップに対応する。
The list
ID401は、エントリの識別情報を格納するフィールドである。リストマップ402は、リストマップの登録値を格納するフィールドである。宛先403は、センサ情報150を送信するサーバ120の宛先情報を格納するフィールドである。宛先403には、例えば、IPアドレスが格納される。
The
リストマップをビットマップ形式のデータではなく、図4Bに示すような数値として管理することによって、リストマップの管理を容易にすることができる。また、リストマップをバイナリデータではなく、10進法で表された二桁の数値として表すことによって、管理するデータ量を削減することができる。 By managing the list map not as data in the bitmap format but as numerical values as shown in FIG. 4B, the management of the list map can be facilitated. In addition, the amount of data to be managed can be reduced by expressing the list map not as binary data but as a two-digit numerical value expressed in a decimal system.
次に、ゲートウェイ装置100が実行する処理について説明する。
Next, processing executed by the
図5は、実施例1のゲートウェイ装置100が実行する処理の流れを示す図である。図6は、実施例1のゲートウェイ装置100がリストマップ登録要求を受け付けた場合に実行する処理の一例を説明するフローチャートである。図7は、実施例1のゲートウェイ装置100がセンサ情報150を送信する場合に実行する処理の一例を説明するフローチャートである。ここでは、一つのセンサ110から一つのセンサデータ140を受信した場合に実行される処理について説明する。
FIG. 5 is a diagram illustrating a flow of a process executed by the
まず、図5及び図6を用いてリストマップの管理方法について説明する。 First, a management method of the list map will be described with reference to FIGS.
制御部210のリストマップ登録部211は、サーバ120から、リストマップ500を登録するためのリストマップ登録要求を受信する(ステップS101)。
The list
リストマップ登録要求はリストマップ500に関する情報を含む。リストマップ500に関する情報は、例えば、値を取得する要素に「1」、その他要素に「0」を設定したビットマップ形式の情報、又は、登録値が考えられる。
The list map registration request includes information on the
なお、サーバ120は、主導的にリストマップ登録要求を送信してもよいし、リストマップ登録部211からの問合わせに対する応答としてリストマップ登録要求を送信してもよい。
Note that the
次に、制御部210のリストマップ登録部211は、リストマップ登録要求に基づいてリストマップ管理情報230を更新し(ステップS102)、その後、処理を終了する。具体的には、以下のような処理が実行される。
Next, the list
リストマップ登録部211は、リストマップ登録要求から、リストマップに関する情報及びサーバ120の宛先情報を取得する。
The list
なお、リストマップに関する情報が変換データのデータ構造に対応するビットマップである場合、リストマップ登録部211は、図4Bで示す規則に基づいて、ビットマップの各行に対応するビット列を10進法の数値に変換し、各行の数値を結合することによって登録値を算出する。
If the information on the list map is a bitmap corresponding to the data structure of the conversion data, the list
なお、サーバ120の宛先情報が登録情報としてリストマップ登録要求に含まれていない場合、リストマップ登録部211は、リストマップ登録要求に対応するパケットのヘッダからIPアドレス等を取得する。
When the destination information of the
リストマップ登録部211は、リストマップ管理情報230にエントリを追加し、追加されたエントリのID401に識別情報を設定する。リストマップ登録部211は、追加されたエントリのリストマップ402に登録値を設定し、また、宛先403にサーバ120の宛先情報を設定する。以上がステップS102の処理の説明である。
The list
次に、図5及び図7を用いてセンサ情報150の送信方法について説明する。
Next, a method of transmitting the
制御部210の前処理部212は、センサ110からセンサデータ140を受信した場合、データ構造定義情報220を参照して、センサデータ140から変換データを生成する(ステップS201)。
When receiving the
具体的には、前処理部212は、2次元配列(変換データ)の各要素に設定する項目値をセンサデータ140から取得し、各要素に取得した項目値を設定することによって変換データ510を生成する。なお、センサデータ140に項目値が含まれていない要素は空欄となる。変換データ510の三角は要素に値が格納されていることを示す。
Specifically, the
次に、制御部210のデータ生成部213は、リストマップのループ処理を開始する(ステップS202)。
Next, the
具体的には、データ生成部213は、リストマップ管理情報230に登録されるエントリからターゲットエントリを選択する。
Specifically, the
次に、制御部210のデータ生成部213は、ターゲットエントリのリストマップ402及びセンサデータ140に基づいて、センサ情報150を生成する(ステップS203)。具体的には、以下のような処理が実行される。
Next, the
データ生成部213は、リストマップ402に設定された登録値をバイナリデータに変換し、当該バイナリデータに基づいて変換データ510の任意の行の要素(項目値)を取得する。
The
リストマップ402に設定された登録値がリストマップ500に対応する登録値である場合、データ生成部213は、リストマップ500の丸と変換データ510の三角が重なる要素を取得する。すなわち、1行4列、3行2列、及び4行4列に対応する要素が取得される。
When the registered value set in the
データ生成部213は、変換データ510から取得した要素を含むセンサ情報150を生成し、送信部214に出力する。このとき、データ生成部213は、センサ情報150とともに、ターゲットエントリの宛先403に格納されるサーバ120の宛先情報を送信部214に出力する。以上がステップS203の処理の説明である。
The
次に、制御部210の送信部214は、サーバ120の宛先情報に対応するサーバ120にセンサ情報150を送信する(ステップS204)。
Next, the
次に、制御部210のデータ生成部213は、リストマップ管理情報230の全てのエントリについて処理が完了したか否かを判定する(ステップS205)。
Next, the
リストマップ管理情報230の全てのエントリについて処理が完了していないと判定された場合、制御部210のデータ生成部213は、ステップS202に戻り、新たなターゲットエントリを選択する。
When it is determined that the processing has not been completed for all the entries of the list
リストマップ管理情報230の全てのエントリについて処理が完了したと判定された場合、制御部210のデータ生成部213は処理を終了する。
When it is determined that the processing has been completed for all entries of the list
ゲートウェイ装置100は、リストマップに基づいて、変換データ(2次元配列)の所定の要素を取得することによって、データ量を削減したセンサ情報150を生成することができる。
The
当該処理は、従来のフィルタリングにおいて行われるセンサデータ140に対するデータ検索処理が必要ないため、処理負荷が低く、また、処理速度が高速であるという利点がある。また、圧縮処理を行うことなくサーバ120に送信するデータ量を削減できるため、処理負荷の増大を抑えて、効率的なデータの送信が可能となる。
This processing does not require the data search processing for the
サービス又はサーバ120を追加する場合、追加するサービス又はサーバ120に対応するリストマップを登録することによって、所望のセンサ情報150を送信することができる。また、サービスの変更する場合には、対応するリストマップを更新することによってセンサ情報150に含める項目値を変更することができる。さらに、サービス又はサーバ120を削除する場合、削除するサービス又はサーバ120に対応するリストマップを削除すればよい。
When a service or
したがって、ゲートウェイ装置100は、システム構成の変更(サービスの追加、変更、及び削除、並びに、サーバ120の追加及び削除)に柔軟かつ容易に対応することができる。
Therefore, the
実施例1では、一つのセンサ110のセンサデータ140に対してリストマップを定義したが、実施例2では、複数のセンサ110のセンサデータ140に対してリストマップを定義する。以下、実施例1との差異を中心に実施例2について説明する。
In the first embodiment, a list map is defined for the
実施例2のシステムの構成は実施例1と同一である。また、実施例2のゲートウェイ装置100の構成は実施例1と同一である。
The configuration of the system of the second embodiment is the same as that of the first embodiment. The configuration of the
実施例2では、データ構造定義情報220が異なる。具体的には、一つの列を一つのセンサ110が送信するセンサデータ140に対応させるように変換データを定義する。なお、一つの列に複数のセンサ110のデータを対応づけてもよい。
In the second embodiment, the data
ゲートウェイ装置100は、前述のような変換データとリストマップを用いることによって、送信するセンサデータ140の選択、及び選択されたセンサデータ140から取得する項目値(要素)の選択を実現できる。
By using the conversion data and the list map as described above, the
リストマップ登録要求を受け付けた場合に実行する処理は、実施例1の処理と同一である。センサ情報150を送信する場合に実行する処理は、実施例1の処理と一部異なる。図8及び図9は、実施例2のゲートウェイ装置100がセンサ情報150を送信する場合に実行する処理の一例を説明するフローチャートである。
The processing executed when a list map registration request is received is the same as the processing of the first embodiment. The process executed when transmitting the
ゲートウェイ装置100は図8又は図9に示す処理を実行する。まず、図8に示す処理について説明する。
The
ゲートウェイ装置100の前処理部212は、一つのセンサ110からセンサデータ140を受信した場合、データ構造定義情報220を参照して、センサデータ140から変換データを生成する(ステップS201)。
When receiving the
具体的には、前処理部212は、2次元配列(変換データ)の各要素に設定する項目値をセンサデータ140から取得し、各要素に取得した項目値を設定する。
Specifically, the
次に、ゲートウェイ装置100の前処理部212は、変換データの生成が完了したか否かを判定する(ステップS211)。
Next, the
例えば、前処理部212は、2次元配列の行に空の行が存在するか否かを判定する。本実施例では、2次元配列の行とセンサデータ140を対応づけているため、空の行は変換データを生成するために必要なセンサデータ140を取得していないことを示す。したがって、2次元配列の行に空の行が存在する場合、前処理部212は、変換データの生成が完了していないと判定する。
For example, the
変換データの生成が完了していないと判定された場合、ゲートウェイ装置100の前処理部212は、待ち状態に移行し(ステップS212)、ステップS201に戻る。
When it is determined that the generation of the conversion data has not been completed, the
変換データの生成が完了したと判定された場合、ゲートウェイ装置100の前処理部212は、データ生成部213に変換データを出力する。その後、ゲートウェイ装置100は、ステップS202からステップS205の処理を実行する。
When it is determined that the generation of the conversion data has been completed, the
次に、図9に示す処理について説明する。 Next, the processing shown in FIG. 9 will be described.
ゲートウェイ装置100の前処理部212は、センサデータ140を受信した場合、メモリ201のワークエリアに受信したセンサデータ140を蓄積する(ステップS221)。
When receiving the
次に、ゲートウェイ装置100の前処理部212は、変換データを生成するために必要な全てのセンサデータ140を受信したか否かを判定する(ステップS222)。
Next, the
変換データを生成するために必要な全てのセンサデータ140を受信していないと判定された場合、ゲートウェイ装置100の前処理部212は、待ち状態に移行し(ステップS223)、ステップS221に戻る。
When it is determined that all the
変換データを生成するために必要な全てのセンサデータ140を受信していないと判定された場合、ゲートウェイ装置100の前処理部212は、ステップS201からステップS205の処理を実行する。
When it is determined that all the
実施例2によれば、複数のセンサデータ140を一括して処理できるため、効率的なセンサ情報150の送信を実現できる。
According to the second embodiment, since a plurality of
なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。また、上記した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることも可能である。また、各実施例の構成の一部について、他の構成の追加、削除、置換をすることが可能である。 Note that the present invention is not limited to the above-described embodiment, and includes various modifications. Further, the above-described embodiments have been described in detail for easy understanding of the present invention, and are not necessarily limited to those having all the configurations described above. Further, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of one embodiment can be added to the configuration of another embodiment. Further, for a part of the configuration of each embodiment, it is possible to add, delete, or replace another configuration.
また、上記の各構成、機能、処理部、処理手段等は、それらの一部又は全部を、例えば集積回路で設計する等によりハードウェアで実現してもよい。また、上記の各構成、機能等は、プロセッサがそれぞれの機能を実現するプログラムを解釈し、実行することによりソフトウェアで実現してもよい。各機能を実現するプログラム、テーブル、ファイル等の情報は、メモリ、HDD及びSSD等の記憶装置、又は、ICカード、SDカード、及び光ディスク等の記録媒体に置いてもよい。また、制御線や情報線は説明上必要と考えられるものを示しており、製品上必ずしも全ての制御線や情報線を示しているとは限らない。例えば実際にはほとんど全ての構成が相互に接続されていると考えてもよい。 In addition, each of the above-described configurations, functions, processing units, processing means, and the like may be partially or entirely realized by hardware, for example, by designing an integrated circuit. In addition, the above-described configurations, functions, and the like may be implemented by software by a processor interpreting and executing a program that implements each function. Information such as a program, a table, and a file for realizing each function may be stored in a storage device such as a memory, an HDD and an SSD, or a recording medium such as an IC card, an SD card, and an optical disk. In addition, control lines and information lines indicate those which are considered necessary for explanation, and do not necessarily indicate all control lines and information lines on a product. For example, it may be considered that almost all components are actually connected to each other.
100 ゲートウェイ装置
110 センサ
120 サーバ
140 センサデータ
150 センサ情報
200 プロセッサ
201 メモリ
202 ネットワークインタフェース
210 制御部
211 リストマップ登録部
212 前処理部
213 データ生成部
214 送信部
220 データ構造定義情報
230 リストマップ管理情報
100
Claims (8)
演算装置、前記演算装置に接続される記憶装置、及び前記演算装置に接続されるインタフェースを備え、
前記記憶装置は、配列型のデータから取得する要素を指定する情報であるリストマップを管理するためのリストマップ管理情報を格納し、
前記演算装置は、
前記インタフェースを介して、少なくとも一つの前記センサから前記センサデータを取得した場合、前記センサデータから配列型のデータである変換データを生成し、
前記リストマップ管理情報に格納される前記リストマップに基づいて、前記変換データの任意の要素を取得することによってセンサ情報を生成し、
前記少なくとも一つの計算機に前記センサ情報を送信することを特徴とするゲートウェイ装置。 A gateway device for transferring sensor data obtained from a plurality of sensors to at least one computer,
A computing device, a storage device connected to the computing device, and an interface connected to the computing device,
The storage device stores list map management information for managing a list map, which is information for specifying elements to be obtained from array-type data,
The arithmetic unit includes:
Via the interface, when acquiring the sensor data from at least one of the sensors, generates conversion data that is array-type data from the sensor data,
Based on the list map stored in the list map management information, to generate sensor information by obtaining any element of the conversion data,
A gateway device for transmitting the sensor information to the at least one computer.
前記リストマップは、前記変換データを表す配列の行に対応するビット列に基づいて算出される数値を用いて定義される値であることを特徴とするゲートウェイ装置。 The gateway device according to claim 1, wherein
The gateway device, wherein the list map is a value defined using a numerical value calculated based on a bit string corresponding to a row of the array representing the conversion data.
前記少なくとも一つの計算機から、前記変換データを表す配列に対応するビットマップを、前記リストマップを設定するための情報として受信した場合、前記ビットマップに含まれ、前記変換データを表す配列の行に対応するビット列に基づいて、前記数値を算出し、
前記変換データを表す配列の各行から算出された前記数値を結合した値を前記リストマップとして前記リストマップ管理情報に登録することを特徴とするゲートウェイ装置。 The gateway device according to claim 2, wherein
From the at least one computer, if a bitmap corresponding to the array representing the conversion data is received as information for setting the list map, the bitmap is included in the bitmap and a row of the array representing the conversion data is included. Based on the corresponding bit string, calculate the numerical value,
A gateway device, wherein a value obtained by combining the numerical values calculated from each row of the array representing the conversion data is registered as the list map in the list map management information.
前記リストマップ管理情報は、前記センサ情報の送信先となる計算機の宛先情報及び前記リストマップを対応づけたエントリを格納し、
前記演算装置は、
前記リストマップ管理情報から前記リストマップを選択し、
前記選択されたリストマップに基づいて、前記センサ情報を生成し、
前記選択されたリストマップに対応付けられる前記宛先情報に基づいて、前記少なくとも一つの計算機に前記センサ情報を送信することを特徴とするゲートウェイ装置。 The gateway device according to claim 3, wherein
The list map management information stores destination information of a computer serving as a transmission destination of the sensor information and an entry in which the list map is associated,
The arithmetic unit includes:
Selecting the list map from the list map management information,
Based on the selected list map, generate the sensor information,
A gateway device, wherein the sensor information is transmitted to the at least one computer based on the destination information associated with the selected list map.
前記ゲートウェイ装置は、演算装置、前記演算装置に接続される記憶装置、及び前記演算装置に接続されるインタフェースを有し、
前記記憶装置は、配列型のデータから取得する要素を指定する情報であるリストマップを管理するためのリストマップ管理情報を格納し、
前記データ転送方法は、
前記演算装置が、前記インタフェースを介して、少なくとも一つの前記センサから前記センサデータを取得した場合、前記センサデータから、配列型のデータである変換データを生成する第1のステップと、
前記演算装置が、前記リストマップ管理情報に格納される前記リストマップに基づいて、前記変換データの任意の要素を取得することによってセンサ情報を生成する第2のステップと、
前記演算装置が、前記少なくとも一つの計算機に前記センサ情報を送信する第3のステップと、を含むことを特徴とするデータ転送方法。 A data transfer method executed by a gateway device that transfers sensor data obtained from a plurality of sensors to at least one computer,
The gateway device has a computing device, a storage device connected to the computing device, and an interface connected to the computing device,
The storage device stores list map management information for managing a list map, which is information for specifying elements to be obtained from array-type data,
The data transfer method includes:
The arithmetic device, via the interface, when acquiring the sensor data from at least one of the sensor, from the sensor data, a first step of generating conversion data that is array-type data,
A second step in which the computing device generates sensor information by acquiring any element of the conversion data based on the list map stored in the list map management information;
A third step of transmitting the sensor information to the at least one computer by the arithmetic device.
前記リストマップは、前記変換データを表す配列の行に対応するビット列に基づいて算出される数値を用いて定義される値であることを特徴とするデータ転送方法。 The data transfer method according to claim 5, wherein
The data transfer method according to claim 1, wherein the list map is a value defined using a numerical value calculated based on a bit string corresponding to a row of an array representing the conversion data.
前記演算装置が、前記少なくとも一つの計算機から、前記変換データを表す配列に対応するビットマップを、前記リストマップを設定するための情報として受信した場合、前記ビットマップに含まれ、前記変換データを表す配列の行に対応するビット列に基づいて、前記数値を算出するステップと、
前記演算装置が、前記変換データを表す配列の各行から算出された前記数値を結合した値を前記リストマップとして前記リストマップ管理情報に登録するステップと、を含むことを特徴とするデータ転送方法。 The data transfer method according to claim 6, wherein
When the arithmetic device receives, from the at least one computer, a bitmap corresponding to an array representing the conversion data as information for setting the list map, the bitmap is included in the bitmap, and the conversion data is included in the bitmap. Calculating the numerical value based on a bit string corresponding to a row of the array to be represented;
Registering a value obtained by combining the numerical values calculated from each row of the array representing the conversion data in the list map management information as the list map.
前記リストマップ管理情報は、前記センサ情報の送信先となる計算機の宛先情報及び前記リストマップを対応づけたエントリを格納し、
前記第2のステップは、
前記演算装置が、前記リストマップ管理情報から前記リストマップを選択するステップと、
前記演算装置が、前記選択されたリストマップに基づいて、前記センサ情報を生成するステップと、を含み、
前記第3のステップは、前記演算装置が、前記選択されたリストマップに対応付けられる前記宛先情報に基づいて、前記少なくとも一つの計算機に前記センサ情報を送信するステップを含むことを特徴とするデータ転送方法。 The data transfer method according to claim 7, wherein
The list map management information stores destination information of a computer serving as a transmission destination of the sensor information and an entry in which the list map is associated,
The second step is
The computing device selects the list map from the list map management information,
The computing device, based on the selected list map, the step of generating the sensor information,
The third step includes a step in which the arithmetic unit transmits the sensor information to the at least one computer based on the destination information associated with the selected list map. Transfer method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018126732A JP2020008928A (en) | 2018-07-03 | 2018-07-03 | Gateway device and data transfer method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018126732A JP2020008928A (en) | 2018-07-03 | 2018-07-03 | Gateway device and data transfer method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2020008928A true JP2020008928A (en) | 2020-01-16 |
Family
ID=69151783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018126732A Pending JP2020008928A (en) | 2018-07-03 | 2018-07-03 | Gateway device and data transfer method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2020008928A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1055374A (en) * | 1996-08-12 | 1998-02-24 | Mitsubishi Heavy Ind Ltd | Data repeating device |
-
2018
- 2018-07-03 JP JP2018126732A patent/JP2020008928A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1055374A (en) * | 1996-08-12 | 1998-02-24 | Mitsubishi Heavy Ind Ltd | Data repeating device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10754869B2 (en) | Managing data format of data received from devices in an internet of things network | |
KR101355273B1 (en) | A computing system, a method for controlling thereof, and a computer-readable recording medium having a computer program for controlling thereof | |
CN110249312B (en) | Method and system for converting data integration jobs from a source framework to a target framework | |
CN111818175B (en) | Enterprise service bus configuration file generation method, device, equipment and storage medium | |
CN108287894B (en) | Data processing method, device, computing equipment and storage medium | |
JP5724880B2 (en) | Information processing system, control method, and program | |
CN113918437A (en) | User behavior data analysis method and device, computer equipment and storage medium | |
US11693849B2 (en) | Consistent structured data hash value generation across formats and platforms | |
CN112804366B (en) | Method and device for resolving domain name | |
JP2016024486A (en) | Data utilization system and control method therefor | |
JP2020008928A (en) | Gateway device and data transfer method | |
JP6364727B2 (en) | Information processing system, distributed processing method, and program | |
US10437919B2 (en) | Information processing system, information processing method, document processing system, and storage medium, for deleting a conversion process when a request to generate document data in a first format has been canceled | |
KR20210000041A (en) | Method and apparatus for analyzing log data in real time | |
JP4529766B2 (en) | Information providing system, information providing method, server, and information providing program | |
JP2015095092A (en) | Information processing system, information processing device, information processing method, and program | |
JP6812732B2 (en) | Information processing systems, information processing equipment and programs | |
US11927928B2 (en) | Output management apparatus, output management method, and program | |
JPWO2018225747A1 (en) | Distributed system, data management device, data management method, and computer-readable recording medium | |
JP2019197465A (en) | Simulation control method and computer system | |
JP6258992B2 (en) | Information providing system, information providing method, and information processing apparatus | |
JP7127440B2 (en) | DATA PROCESSING DEVICE, DATA PROCESSING METHOD AND DATA PROCESSING PROGRAM | |
US11880699B2 (en) | Platform to control one or more systems and explore data across one or more systems | |
WO2020049757A1 (en) | Data processing apparatus, data processing method, and data processing program | |
US20220036299A1 (en) | Information processing apparatus, delivery schedule output method, and non-transitory recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210518 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220224 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220301 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20220906 |