JP6323288B2 - Data acquisition apparatus, data acquisition method, and program - Google Patents
Data acquisition apparatus, data acquisition method, and program Download PDFInfo
- Publication number
- JP6323288B2 JP6323288B2 JP2014203040A JP2014203040A JP6323288B2 JP 6323288 B2 JP6323288 B2 JP 6323288B2 JP 2014203040 A JP2014203040 A JP 2014203040A JP 2014203040 A JP2014203040 A JP 2014203040A JP 6323288 B2 JP6323288 B2 JP 6323288B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- sensor
- data acquisition
- time
- unit
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
- Selective Calling Equipment (AREA)
Description
本発明は、データ取得装置、データ取得方法、及びプログラムに関する。 The present invention relates to a data acquisition device, a data acquisition method, and a program.
気温等の環境情報、又は河川の水位若しくは建造物の歪み等の防災情報を自動的に収集し、収集された情報が異常値を示す場合にアラートを上げる、社会基盤向けM2M(Machine−to−Machine)サービスが注目されている。このようなサービスでは、環境情報や防災情報等を示すデータを測定するために設置された多数のセンサが利用される。したがって、サービスの運用コストの削減を図るためには、各センサのバッテリの交換頻度を低下させるための省電力技術が重要となる。 M2M (Machine-to-for social infrastructure) that automatically collects environmental information such as temperature or disaster prevention information such as river water level or building distortion, and raises an alert when the collected information shows abnormal values (Machine) service is attracting attention. In such a service, a large number of sensors installed to measure data indicating environmental information, disaster prevention information, and the like are used. Therefore, in order to reduce the service operating cost, a power saving technique for reducing the replacement frequency of the battery of each sensor is important.
例えば、サービスによる情報の収集時期に合わせてセンサを起動し、収集時期の合間にはセンサをスリープさせることで、省電力を期待することができる。 For example, it is possible to expect power saving by starting the sensor in accordance with the information collection time by the service and putting the sensor to sleep between the collection times.
しかしながら、或るセンサが、データの収集周期が相互に異なる複数のサービスから共用される場合、センサへのアクセスが頻発し、省電力に効果的なスリープ期間の確保が困難になる可能性が有る。また、当該センサを利用するサービスが新たに追加される可能性を考慮すると、センサの起動時期を事前に設定するのは困難である。 However, when a certain sensor is shared by a plurality of services having different data collection cycles, access to the sensor occurs frequently, and it may be difficult to secure an effective sleep period for power saving. . Also, considering the possibility of newly adding a service that uses the sensor, it is difficult to set the sensor activation time in advance.
そこで、一側面では、継続的なデータの取得先である機器の電力消費を低下させることを目的とする。 Therefore, an object of one aspect is to reduce power consumption of a device that is a continuous data acquisition source.
一つの案では、データ取得装置は、機器によって測定されるデータと、前記機器の電池残量とを受信して、前記データを記憶部に記憶する受信部と、ネットワークを介して接続される情報処理装置からの前記データの取得要求に応じ、前記記憶部に記憶されているデータを返信する返信部と、前記受信部によって受信された前記電池残量と前記取得要求の履歴とに基づいて、前記データの次回の受信時期を算出する算出部と、前記算出部によって算出された受信時期を前記機器に送信することにより、前記受信時期に前記機器から前記データを送信させる送信部と、を有する。 In one plan, the data acquisition device receives data measured by the device and the remaining battery level of the device, and stores the data in a storage unit and information connected via a network. In response to the data acquisition request from the processing device, based on the reply unit that returns the data stored in the storage unit, the remaining battery level received by the receiving unit, and the history of the acquisition request, A calculation unit that calculates the next reception time of the data, and a transmission unit that transmits the data from the device at the reception time by transmitting the reception time calculated by the calculation unit to the device. .
一側面によれば、継続的なデータの取得先である機器の電力消費を低下させることができる。 According to one aspect, it is possible to reduce the power consumption of a device that is a continuous data acquisition source.
以下、図面に基づいて本発明の実施の形態を説明する。図1は、第一の実施の形態におけるデータ取得システムの構成例を示す図である。図1において、データ取得装置10は、データ利用装置20a及びデータ利用装置20bと、LAN(Local Area Network)又はインターネット等のネットワークを介して通信可能に接続される。データ取得装置10は、また、センサ30a及びセンサ30bと、LAN又はインターネット等のネットワークを介して通信可能に接続される。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a configuration example of a data acquisition system according to the first embodiment. In FIG. 1, a
センサ30a及びセンサ30b等のセンサ30は、例えば、環境情報や防災情報を示すデータを測定するセンサ30である。本実施の形態において、センサ30aは、センサ30aの設置場所の気温を測定する温度センサであるとする。センサ30bは、センサ30bの設置場所の大気中のCO2量を測定するCO2センサであるとする。但し、温度センサ及びCO2センサ以外のセンサが、センサ30として利用されてもよい。また、データ取得装置10に接続されるセンサ30は1つであってもよいし、3つ以上であってもよい。
The
データ取得装置10は、各センサ30によって測定されるデータを各センサ30から受信するコンピュータである。例えば、データ取得装置10は、センサ30aから気温を示す気温データを受信し、センサ30bからCO2量を示すCO2データを受信する。本実施の形態において、データ取得装置10は、各センサ30の電力消費が低下するように、各センサ30からのデータの受信タイミングを制御する。
The
データ利用装置20a及びデータ利用装置20b(以下、それぞれを区別しない場合、「データ利用装置20」という。)は、データ取得装置10によって取得されるデータを利用してサービスを提供するコンピュータである。各データ利用装置20が提供するサービスは相互に異なってもよい。斯かるサービスの一例として、気温又はCO2量が所定値を超えた場合に、予め登録されている通知先に当該事象を通知するといったサービスが挙げられる。但し、データ利用装置20によるサービスの提供形態については、データ利用装置20ごとに任意である。なお、3つ以上のデータ利用装置20が、ネットワークを介してデータ取得装置10に接続されてもよい。
The
図2は、第一の実施の形態におけるデータ取得装置のハードウェア構成例を示す図である。図2のデータ取得装置10は、それぞれバスBで相互に接続されているドライブ装置100、補助記憶装置102、メモリ装置103、CPU104、及びインタフェース装置105等を有する。
FIG. 2 is a diagram illustrating a hardware configuration example of the data acquisition apparatus according to the first embodiment. The
データ取得装置10での処理を実現するプログラムは、記録媒体101によって提供される。プログラムを記録した記録媒体101がドライブ装置100にセットされると、プログラムが記録媒体101からドライブ装置100を介して補助記憶装置102にインストールされる。但し、プログラムのインストールは必ずしも記録媒体101より行う必要はなく、ネットワークを介して他のコンピュータよりダウンロードするようにしてもよい。補助記憶装置102は、インストールされたプログラムを格納すると共に、必要なファイルやデータ等を格納する。
A program for realizing processing in the
メモリ装置103は、プログラムの起動指示があった場合に、補助記憶装置102からプログラムを読み出して格納する。CPU104は、メモリ装置103に格納されたプログラムに従ってデータ取得装置10に係る機能を実行する。インタフェース装置105は、ネットワークに接続するためのインタフェースとして用いられる。
The
なお、記録媒体101の一例としては、CD−ROM、DVDディスク、又はUSBメモリ等の可搬型の記録媒体が挙げられる。また、補助記憶装置102の一例としては、HDD(Hard Disk Drive)又はフラッシュメモリ等が挙げられる。記録媒体101及び補助記憶装置102のいずれについても、コンピュータ読み取り可能な記録媒体に相当する。
An example of the
図3は、第一の実施の形態におけるデータ取得装置及びセンサの機能構成例を示す図である。図3において、データ取得装置10は、取得要求受信部11、データ取得部12、データ受信部13、通信時刻算出部14、及び通信時刻送信部15等を有する。これら各部は、データ取得装置10にインストールされたプログラム(例えば、ミドルウェア)が、CPU104に実行させる処理により実現される。データ取得装置10は、また、データ記憶部121及びアクセス履歴記憶部122等を利用する。これら各記憶部は、メモリ装置103若しくは補助記憶装置102、又はデータ取得装置10にネットワークを介して接続される記憶装置等を用いて実現可能である。
FIG. 3 is a diagram illustrating a functional configuration example of the data acquisition device and the sensor according to the first embodiment. In FIG. 3, the
取得要求受信部11は、データ利用装置20から送信されるセンサデータの取得要求を受信する。センサデータとは、センサ30によって測定される測定値(例えば、気温又はCO2量等)を示すデータをいう。取得要求受信部11は、目的のセンサデータがデータ記憶部121に記憶されている場合は、当該センサデータを返信する。取得要求受信部11は、データ記憶部121に目的のセンサデータが記憶されていない場合は、データ取得部12にセンサデータの取得を要求する。取得要求受信部11は、また、受信した取得要求に関する情報をアクセス履歴記憶部122に記憶する。したがって、アクセス履歴記憶部122には、センサデータの取得要求の履歴が記憶される。
The acquisition
データ取得部12は、取得要求受信部11からの要求に応じ、データ取得コマンドをセンサ30に送信する。データ受信部13は、データ取得コマンドに応じてセンサ30から返信される、センサデータと、センサ30の電源に関する情報(以下、「電源情報」という。)とを受信する。データ受信部13によって受信されたセンサデータは、データ記憶部121に記憶(キャッシュ)される。また、データ取得コマンドに対する応答によってデータ受信部13によって受信されたセンサデータは、取得要求受信部11によってデータ利用装置20に返信される。データ受信部13によって受信された電源情報は、通信時刻算出部14に入力される。なお、電源情報とは、例えば、センサ30の電池残量やセンサ30の稼動による電池の消費量等を含む情報である。
The
通信時刻算出部14は、データの取得要求に係るセンサ30に関して、所定数以上のデータの取得要求の履歴がアクセス履歴記憶部122に記憶された場合に、センサデータの取得要求に係るセンサ30の電源情報と当該履歴とに基づいて、センサ30との次回の通信時期(通信時刻)を算出する。例えば、通信時刻算出部14は、センサ30の電池残量の消費ペースが予定より速い場合は、次回の通信時期までの期間を長くして、センサ30の電池残量の消費が抑制されるようにする。通信時刻送信部15は、通信時刻算出部14によって算出された通信時刻を含む通信コマンドをセンサ30に通知する。当該通信時刻の到来に応じてセンサ30から送信されるセンサデータは、データ受信部13によって受信される。
The communication
センサ30は、通信制御部31、データ測定部32、及び稼動状態制御部33等を有する。これら各部は、センサ30にインストールされたプログラムがセンサ30のCPUに実行させる処理によって実現されてもよいし、回路等のハードウェアによって実現されてもよい。センサ30は、また、プロファイル記憶部34を有する。プロファイル記憶部34は、センサ30が有する記憶装置を用いて実現可能である。
The
通信制御部31は、データ取得コマンド及び通信コマンドをデータ取得装置10から受信する。通信制御部31は、また、センサデータ及び電源情報をデータ取得装置10に送信する。データ測定部32は、センサデータを測定する。稼動状態制御部33は、センサ30の稼動状態を、起動状態又はスリープ状態に移行させる。起動状態とは、センサ30が起動し、センサデータを測定可能な状態をいう。スリープ状態とは、起動状態に比べてセンサ30による電力消費が抑制され、センサデータの測定やデータ取得装置10との通信等ができない状態をいう。例えば、スリープ状態では、電力の供給範囲が、センサ30の次回の通信時刻を検知可能であって、当該通信時刻にセンサ30を起動可能な部分に限定される。プロファイル記憶部34は、例えば、1回のセンサデータの通信に要される電力消費量を示す情報(以下、「電力プロファイル」という。)を記憶する。1回のセンサデータの通信に要される電力消費量には、センサデータの1回の測定に要される電力量が含まれてもよい。
The
以下、データ取得装置10が実行する処理手順について説明する。図4及び図5は、第一の実施の形態においてデータ取得装置が実行する処理手順の一例を説明するためのフローチャートである。
Hereinafter, a processing procedure executed by the
定常状態において、データ取得装置10は、何らかのイベントの発生を待機している(S101)。当該イベントは、例えば、いずれかのデータ利用装置20からのセンサデータの取得要求の受信、又は通信時刻の到来に応じたセンサ30からのセンサデータの受信である。
In the steady state, the
取得要求受信部11が、センサデータの取得要求を受信すると(S102)、取得要求受信部11は、受信された取得要求に含まれているサービスID及びデバイスIDと、当該取得要求の受信時刻とを対応付けてアクセス履歴記憶部122に記憶する(S103)。
When the acquisition
図6は、アクセス履歴記憶部の構成例を示す図である。図6に示されるように、アクセス履歴記憶部122は、センサデータの取得要求ごとに、デバイスID、サービスID、及び受信時刻を記憶する。デバイスIDは、取得要求の対象とされているセンサ30の識別情報である。サービスIDは、取得要求の送信元のデータ利用装置20が提供するサービスの識別情報である。受信時刻は、取得要求の受信時刻(受信日時)である。
FIG. 6 is a diagram illustrating a configuration example of the access history storage unit. As illustrated in FIG. 6, the access
なお、「thermo1−1」は、センサ30aのデバイスIDである。「service1」は、データ利用装置20aのサービスIDである。「co2−1」は、センサ30bのデバイスIDである。「service2」は、データ利用装置20bのサービスIDである。
“Thermo1-1” is the device ID of the
以下、ステップS102において受信された取得要求を「対象取得要求」といい、対象取得要求に含まれているデバイスIDを「対象デバイスID」といい、対象要求取得要求に含まれているサービスIDを、「対象サービスID」という。 Hereinafter, the acquisition request received in step S102 is referred to as “target acquisition request”, the device ID included in the target acquisition request is referred to as “target device ID”, and the service ID included in the target request acquisition request is , Referred to as “target service ID”.
続いて、取得要求受信部11は、対象デバイスIDに係るセンサ30(以下、「対象センサ」という。)に対するスケジュール設定フラグがTRUEであるか否かを判定する(S104)。スケジュール設定フラグとは、例えば、デバイスIDごとにメモリ装置103に記憶されているパラメータであり、TRUE又はFALSEの値が代入される。TRUEは、次回の通信時刻が設定されていることを示す。FALSEは、次回の通信時刻が設定されていないことを示す。スケジュール設定フラグの初期値はFALSEである。したがって、ステップS104では、対象センサに関して次回の通信時刻が設定済みであるか否かが判定される。
Subsequently, the acquisition
対象センサに対するスケジュール設定フラグがFALSEである場合(S104でNo)、データ取得装置10は、センサデータ及び電源情報等を対象センサから取得する(S105)。より詳しくは、データ取得部12が、対象センサにデータ取得コマンドを送信する。対象センサのデータ測定部32は、当該データ取得コマンドの受信に応じ、センサデータの測定を行う。対象センサの通信制御部31は、対象センサのデバイスIDと、測定されたセンサデータと、電源情報とを返信する。データ取得装置10のデータ受信部13は、当該センサデータ及び電源情報を受信する。なお、電源情報には、対象センサの現時点の電池残量、及び対象センサのプロファイル記憶部34に記憶されている電力プロファイル等が含まれる。データ取得装置10とセンサ30間の通信は、センサ30の通信制御部31が提供するインタフェース及び通信プロトコルを利用して行われる。当該通信プロトコルは、例えば、HTTP(HyperText Transfer Protocol)やECHONET Liteプロトコル等であってもよい。
When the schedule setting flag for the target sensor is FALSE (No in S104), the
なお、各センサ30の電力プロファイルは、例えば、各センサ30のデバイスIDに対応付けられて、データ取得装置10に記憶されていてもよい。この場合、電力プロファイルは、電源情報に含まれて対象センサから送信されなくてもよい。
Note that the power profile of each
続いて、データ受信部13は、受信されたセンサデータをデータ記憶部121に記憶する(S106)。なお、データ受信部13は、受信された電源情報については、通信時刻算出部14に入力する。
Subsequently, the
図7は、データ記憶部の構成例を示す図である。図7において、データ記憶部121は、デバイスIDごとに、当該デバイスIDに係るセンサ30から最後に受信されたセンサデータと、更新時刻とを記憶する。更新時刻は、センサデータが最後に受信された時刻(日時)である。
FIG. 7 is a diagram illustrating a configuration example of the data storage unit. In FIG. 7, the
続いて、通信時刻算出部14は、アクセス履歴記憶部122に記憶されている履歴のうち、対象センサに関する履歴が所定数以上であるか否かを判定する(S107)。すなわち、対象センサに対するアクセスパターンを導出するために十分な履歴が蓄積されているか否かが判定される。アクセスパターンとは、センサデータの取得要求が発生するタイミングのパターンを示す情報をいう。なお、対象センサに関する履歴とは、デバイスIDの値が対象デバイスIDである履歴(レコード)をいう。また、ステップS107では、対象センサに関する履歴の単なる合計数ではなく、過去の所定期間の履歴について、データ利用装置20ごとに、履歴数がカウントされてもよい。すなわち、対象センサのセンサデータを利用する各データ利用装置20に関して、十分な履歴が蓄積されたか否かが判定されてもよい。
Subsequently, the communication
対象センサに関する履歴の数が所定数未満である場合(S107でNo)、取得要求受信部11は、対象センサに関してデータ記憶部121に記憶されたセンサデータを、対象サービスIDに係るデータ利用装置20に返信する(S112)。すなわち、この場合、ステップS108〜S111を実行されない。
When the number of histories related to the target sensor is less than the predetermined number (No in S107), the acquisition
このように、対象センサに関して十分な履歴が蓄積されて、対象センサに対して次回の通信時刻が通知されるまでは、データ利用装置20から取得要求が受信されるたび、対象センサからセンサデータが取得される。
In this way, until a sufficient history is accumulated for the target sensor and the next communication time is notified to the target sensor, sensor data is received from the target sensor every time an acquisition request is received from the
一方、対象センサに関する履歴の数が所定数以上である場合(S107でYes)、通信時刻算出部14は、当該履歴から導出されるアクセスパターンと、データ受信部13によって受信された対象センサの電源情報と等に基づいて、対象センサに関して次回の通信時刻を算出する(S108)。次回の通信時刻の算出処理の詳細については後述される。
On the other hand, when the number of histories related to the target sensor is equal to or greater than the predetermined number (Yes in S107), the communication
次回の通信時刻が算出されなかった場合(S109でNo)、データ取得装置10は、ステップS110及びS111を実行しない。次回の通信時刻が算出された場合(S109でYes)、通信時刻送信部15は、対象センサのデバイスIDに対応付けられているスケジュール設定フラグにTRUEを設定する(S110)。続いて、通信時刻送信部15は、次回の通信時刻を対象センサに送信する(S111)。この際、当該通信時刻と共に、データ取得装置10のアドレス情報が送信されてもよい。当該アドレス情報に基づいて、当該通信時刻に、対象センサがセンサデータの送信先を特定可能とするためである。
When the next communication time is not calculated (No in S109), the
なお、この時点において、対象センサは、常時起動されている状態である。したがって、当該通信時刻は、通信異常や対象センサの故障等の特段の事情が無ければ、対象センサの通信制御部31によって受信される。対象センサの稼動状態制御部33は、受信された通信時刻を起動タイマーにセットして、対象センサをスリープ状態に移行させる。起動タイマーとは、設定された時刻にセンサ30を起動させるためのタイマーをいう。したがって、対象センサは、次回の通信時刻までスリープすることができ、電力消費を抑制することができる。
At this point, the target sensor is always activated. Therefore, the communication time is received by the
対象センサに次回の通信時刻が通知された後、対象センサに関するセンサデータの取得要求が受信された場合、ステップS104での判定はYesとなり、ステップS113〜S116が実行される。 If a sensor data acquisition request regarding the target sensor is received after the next communication time is notified to the target sensor, the determination in step S104 is Yes, and steps S113 to S116 are executed.
ステップS113において、取得要求受信部11は、対象センサのデバイスIDに対応付けられてキャッシュされているセンサデータをデータ記憶部121から取得する(S113)。続いて、取得要求受信部11は、取得されたセンサデータを、対象サービスIDに係るデータ利用装置20に返信する(S114)。続いて、取得要求受信部11は、対象サービスIDが、過去の取得要求に含まれていた全てのサービスIDとは異なるか否かを判定する(S115)。すなわち、取得要求の送信元が、新たなデータ利用装置20であるか否かが判定される。なお、当該判定は、例えば、アクセス履歴記憶部122を参照することにより行われてもよい。すなわち、対象サービスIDが、アクセス履歴記憶部122のいずれのレコードにも記憶されていない場合、新たなデータ利用装置20からの取得要求であると判定されてよい。
In step S113, the acquisition
対象サービスIDが、過去の取得要求に含まれているサービスIDに一致する場合(S115でNo)、ステップS116は実行されずにステップS101以降が繰り返される。対象サービスIDが、過去のいずれの取得要求にも含まれていない場合(S115でYes)、取得要求受信部11は、対象センサのスケジュール設定フラグにFALSEを設定する(S116)。ステップS116の効果については、図5において明らかにされる。
When the target service ID matches the service ID included in the past acquisition request (No in S115), step S116 and subsequent steps are repeated without executing step S116. When the target service ID is not included in any past acquisition requests (Yes in S115), the acquisition
その後、次回の通信時刻が到来すると、対象センサの稼動状態制御部33は、対象センサを起動させる。起動に応じ、対象センサのデータ測定部32は、センサデータの測定を実行する。対象センサの通信制御部31は、対象センサのデバイスID(対象デバイスID)と、当該センサデータと、対象センサの電源情報とを、データ取得装置10に送信する。この際、センサデータの送信先は、次回の通信時刻とともに通知されたアドレス情報に基づいて特定されてもよい。又は、当該アドレス情報は、予め固定的に対象センサに記憶されていてもよい。なお、対象センサの電源情報には、ステップS105において送信される情報と同様の情報が含まれる。但し、電源情報に含まれる電池残量は、現時点(通信時刻)における電池残量である。
Thereafter, when the next communication time comes, the operation
データ取得装置10のデータ受信部13が、当該センサデータ等を受信すると(図5のステップS120でYes)、データ受信部13は、データ記憶部121のレコードのうち、受信された対象デバイスIDを含むレコードのセンサデータを、受信されたセンサデータによって更新する(S130)。この際、データ受信部13は、当該レコードの更新時刻を、現在日時によって更新する。データ受信部13は、また、受信された電源情報を、通信時刻算出部14に入力する。
When the
続いて、通信時刻算出部14は、対象デバイスIDに対するスケジュール設定フラグがTRUEであるか否かを判定する(S140)。ここで、対象センサに関して、図4のステップS116が実行されていなければ、当該スケジュール設定フラグはTRUEであり、ステップS116が実行されていれば、当該スケジュール設定フラグはFALSEである。
Subsequently, the communication
対象デバイスIDに対するスケジュール設定フラグがTRUEである場合(S140でYes)、通信時刻算出部14は、ステップS108と同じ処理を実行して、対象センサの次回の通信時刻を算出する(S150)。次回の通信時刻が算出された場合(S160でYes)、通信時刻送信部15は、図4のステップS111と同じ処理を実行して、次回の通信時刻を対象センサに通知する(S170)。その結果、対象センサは、次回の通信時刻までスリープすることができる。
When the schedule setting flag for the target device ID is TRUE (Yes in S140), the communication
一方、対象デバイスIDに対するスケジュール設定フラグがFALSEである場合(S140でNo)、ステップS150〜S170は実行されない。また、次回の通信時刻が算出されなかった場合(S160でNo)、ステップS170は実行されない。したがって、この場合、対象センサは、起動したままとされる。 On the other hand, when the schedule setting flag for the target device ID is FALSE (No in S140), steps S150 to S170 are not executed. If the next communication time is not calculated (No in S160), step S170 is not executed. Therefore, in this case, the target sensor remains activated.
すなわち、図4のステップS116は、新たなデータ利用装置20が追加された場合は、アクセスパターンが変化する可能性を考慮して、新たなデータ利用装置20からの取得要求の履歴が十分蓄積されるまで、ステップS108(次回の通信時刻の算出)の実行を回避することを目的とする処理である。そうすることで、新たなデータ利用装置20からのアクセスパターンをも含むアクセスパターンに基づいて、対象センサに関して、次回の通信時刻が算出されるようにすることができる。
That is, in step S116 of FIG. 4, when a new
続いて、ステップS108及びS150の詳細について説明する。図8は、次回の通信時刻の算出処理の処理手順の一例を説明するためのフローチャートである。 Next, details of steps S108 and S150 will be described. FIG. 8 is a flowchart for explaining an example of the processing procedure of the calculation process of the next communication time.
ステップS201において、通信時刻算出部14は、対象センサとの1時間あたりの通信回数を取得する。当該通信回数は、対象センサに関してステップS105が実行された回数と、対象センサに関してステップS120でYesとなった回数との総和である。センサ30ごとに、これらの回数が記憶されるようにしてもよい。なお、アクセス履歴記憶部122の履歴は、データ利用装置20からの取得要求の履歴であるため、必ずしも対象センサとの通信回数には一致しない。取得要求に応じてデータ記憶部121にキャッシュされているセンサデータが返信される場合も有るからである。
In step S201, the communication
続いて、通信時刻算出部14は、対象センサの電池残量(R)、対象センサの電力プロファイルが示す1回のセンサデータの通信における電力消費量(C)、及び1時間あたりの通信回数(N)等に基づいて、対象センサの稼動可能時間(T)を算出する(S202)。ここで、Tは、例えば、以下の式(1)によって算出されてもよい。
Subsequently, the communication
T=R÷(C×N)
なお、1回のセンサデータの通信における各センサ30による電力消費量は同じであるとみなされてもよい。
T = R ÷ (C × N)
The power consumption by each
続いて、通信時刻算出部14は、サービスIDごとのアクセス間隔(取得要求の周期)を、アクセス履歴記憶部122を参照して算出する(S203)。続いて、通信時刻算出部14は、稼動可能時間(T)が、所定時間以上であるか否かを判定する(S204)。当該所定時間は、例えば、対象センサに関して予定されている電池の交換時期等に基づいて算出されてもよい。現時点から当該交換時期までの期間が当該所定期間とされてもよい。当該交換時期は、対象センサの電力プロファイルに含まれていてもよい。又は、当該所定時間は、予め設定された固定値であってもよい。
Next, the communication
稼動可能時間(T)が、所定時間未満である場合(S204でNo)、通信時刻算出部14は、対象センサに関する各アクセスタイミングを集約する(S205)。
When the operable time (T) is less than the predetermined time (No in S204), the communication
図9は、アクセスタイミングの集約を説明するための図である。図9において、(1)は、対象センサに関するサービスIDごとのアクセス間隔を示す。具体的には、Taは、データ利用装置20aのサービスIDに関するアクセス間隔を示す。Tbは、データ利用装置20bのサービスIDに関するアクセス間隔を示す。なお、アクセスタイミングとは、取得要求の受信時刻である。図9において、アクセス間隔を形成するそれぞれの時刻が、アクセスタイミングである。
FIG. 9 is a diagram for explaining aggregation of access timings. In FIG. 9, (1) indicates an access interval for each service ID related to the target sensor. Specifically, Ta indicates an access interval related to the service ID of the
(2)は、アクセスタイミングの集約後の状態を示す。アクセスタイミングの集約とは、所定時間以内のアクセスタイミング群を、一つのアクセスタイミングに集約(又は統合)することをいう。又は、アクセスタイミングの集約とは、所定時間内のアクセスタイミング群のうち、一つのアクセスタイミング以外のアクセスタイミングを除去若しくは削除することをいう。例えば、図9の(2)では、データ利用装置20aのサービスからの1番目のアクセスタイミングa1と、データ利用装置20bのサービスからの1番目のアクセスタイミングb1との間隔が、所定時間以内であるため、アクセスタイミングa1とアクセスタイミングb1とが、アクセスタイミングb1に集約されている(アクセスタイミングa1が削除されている)。同様に、アクセスタイミングa3及びアクセスタイミングb2がアクセスタイミングa3に集約され、アクセスタイミングb3及びアクセスタイミングa6が、アクセスタイミングb3に集約されている。
(2) shows a state after aggregation of access timings. Aggregation of access timings refers to aggregating (or integrating) access timing groups within a predetermined time into one access timing. Alternatively, the aggregation of access timings means that access timings other than one access timing are removed or deleted from a group of access timings within a predetermined time. For example, in (2) of FIG. 9, the interval between the first access timing a1 from the service of the
なお、図9(2)では、所定時間以内のアクセスタイミング群が、当該アクセスタイミングのうちの先頭のアクセスタイミングに集約される例が示されているが、当該アクセスタイミング群が、先頭以外のアクセスタイミングに集約されるようにしてもよい。 FIG. 9 (2) shows an example in which access timing groups within a predetermined time are aggregated to the top access timing of the access timings. However, the access timing group is an access other than the top access timing. You may make it aggregate to a timing.
ステップS204でYesの場合又はステップS205に続いて、通信時刻算出部14は、対象センサに関して、サービスIDごとのアクセス間隔のそれぞれが一定であるか否かを判定する(S206)。例えば、データ取得装置10aからの取得要求の周期が一定であるか否か、また、データ取得装置10bからの取得要求の周期が一定であるか否かが判定される。なお、ここで「一定」とは、アクセス間隔(アクセス周期)が完全に一定であることまで要しない。アクセス間隔が、おおよそ一定であればよい。したがって、ここでの「一定」とは、或る程度(規定誤差)を許容しての一定でよい。なお、ステップS205が実行された場合、集約後のアクセスタイミングに基づくサービスIDごとのアクセス間隔について一定であるか否かが判定される。
In the case of Yes in step S204 or following step S205, the communication
サービスIDごとのアクセス間隔のそれぞれが一定である場合(S206でYes)、通信時刻算出部14は、全てのサービスIDに関して2回のアクセス(取得要求)が発生するまでの期間を求める(S207)。
When each access interval for each service ID is constant (Yes in S206), the communication
例えば、サービスIDごとのアクセス間隔が、図9の(1)に示されるような状態である場合、アクセス間隔Taが、全てのサービスIDに関して2回のアクセスが発生するまでの期間となる。一方、サービスIDごとのアクセス間隔が、図9の(2)に示されるような状態である場合、すなわち、ステップS205が実行された場合、アクセス間隔Tb'が、全てのサービスIDに関して2回のアクセスが発生するまでの期間となる。 For example, when the access interval for each service ID is in the state shown in (1) of FIG. 9, the access interval Ta is a period until two accesses occur for all service IDs. On the other hand, when the access interval for each service ID is in the state shown in (2) of FIG. 9, that is, when step S205 is executed, the access interval Tb ′ is set to twice for all service IDs. This is the period until access occurs.
続いて、通信時刻算出部14は、ステップS207において求められた期間(例えば、アクセス間隔Ta又はTb'等)に基づいて、次回の通信時刻を算出する(S208)。例えば、現在時刻から当該期間の経過後の時刻が、次回の通信時刻とされる。したがって、対象センサの稼動可能時間が相対的に短い方(電池残量が相対的に少ない方)が、次回の通信時刻は遅くなる。
Subsequently, the communication
一方、サービスIDごとのアクセス間隔のうち、一定でないアクセス間隔が有る場合(S206でNo)、通信時刻算出部14は、次回の通信時刻を算出しない(S209)。
On the other hand, when there is a non-constant access interval among the access intervals for each service ID (No in S206), the communication
なお、図8以外の手順によって、次回の通信時刻の算出処理が実行されてもよい。すなわち、センサ30の電池残量が不足していると予想される場合には、当該センサ30との通信間隔が相対的に長くなり、当該センサ30の電池残量が十分であると予想される場合には、当該センサ30との通信間隔が相対的に短くなるような処理であれば、各種の処理手順によって、次回の通信時刻が算出されてもよい。また、例えば、センサ30が太陽光発電の機構を備えているのであれば、当該太陽光発電による発電量が考慮されて、次回の通信時刻が算出されてもよい。
The next communication time calculation process may be executed by a procedure other than that shown in FIG. That is, when it is predicted that the battery level of the
また、センサデータが示す値の一定期間の変化量が所定値未満の場合には、次回の通信時刻までの期間が、ステップS207において求められる期間より長くされてもよい。この場合、センサ30から頻繁にセンサデータを取得する必要性が低いからである。また、センサデータが示す値の一定期間の変化量が所定値を超える場合には、次回のデータ通信時刻を設定せず、センサ30をスリープさせないようにしてもよい。この場合、センサ30から頻繁にセンサデータを取得する必要性が高いからである。
Further, when the change amount of the value indicated by the sensor data for a certain period is less than the predetermined value, the period until the next communication time may be longer than the period obtained in step S207. This is because the need for frequently acquiring sensor data from the
また、或るセンサ30に関して、他のセンサ30のセンサデータの値に基づいて、次回の通信時刻が算出されてもよい。例えば、温度センサであるセンサ30aが、空調機器の設置されている空間の温度を測定する場合、空調機器の運転中は、温度の変化が小さいと考えられる。このような場合、データ取得装置10が空調機器の運転状態を監視するセンサ30からセンサデータを取得し、空調機器が運転状態である場合には、次回の通信時刻までの期間が、ステップS207において求められる期間より長くされてもよい。例えば、図8による算出結果が30分後であれば、2倍の1時間後に通信時刻が設定されてもよい。2倍にすることは一例にすぎない。当該他のセンサ30(ここでは、空調機器の運転状態を監視するセンサ30)は、ユーザによって指定されてもよい。
Further, for a
上述したように、第一の実施の形態によれば、各データ利用装置20からのセンサ30に対するアクセスパターンに加え、当該センサ30の電源状態(電池残量や消費量等)をも考慮して、当該センサ30からのセンサデータの受信時期が算出される。したがって、例えば、当該センサ30の電池残量が少ない場合には、当該センサ30のスリープ時間を長くするといった制御を行うことができる。その結果、継続的なデータの取得先である機器の電力消費を低下させることができる。
As described above, according to the first embodiment, in addition to the access pattern to the
また、各センサ30には、通信時刻が通知され、各センサ30は、通知された通信時刻にセンサデータを送信すればよい。したがって、各センサ30が、データ取得装置10からのセンサデータの取得要求を待機する必要性を低減させることができる。すなわち、各センサ30のスリープ時間を長くすることができる。
Each
次に、第二の実施の形態について説明する。第二の実施の形態では第一の実施の形態と異なる点について説明する。したがって、特に言及されない点については、第一の実施の形態と同様でもよい。 Next, a second embodiment will be described. In the second embodiment, differences from the first embodiment will be described. Accordingly, points not particularly mentioned may be the same as those in the first embodiment.
図10は、第二の実施の形態におけるデータ取得装置及びセンサの機能構成例を示す図である。図10において、データ取得装置10は、更に、グループ管理部16を有する。グループ管理部16は、取得されるセンサデータが相互に相関を有するセンサ30群をグルーピングする。例えば、センサX、センサY、及びセンサZが同一グループに属する場合、データ取得装置10は、センサXから取得されたセンサデータを、センサXのセンサデータとしてだけでなく、センサY及びセンサZのセンサデータとしてもキャッシュする。そうすることで、同一グループに属するセンサ30に関して、センサデータの取得頻度が低減される。その結果、各センサ30のスリープ時間を長期化することができる。以下、センサデータの相関に基づいて形成されるセンサ30のグループを、「デバイスグループ」という。
FIG. 10 is a diagram illustrating a functional configuration example of the data acquisition device and the sensor according to the second embodiment. In FIG. 10, the
図11は、第二の実施の形態においてデータ取得装置が実行する処理手順の一例を説明するためのフローチャートである。第二の実施の形態では、第一の実施の形態における図5が、図11に置き換わる。図11中、図5と同一ステップには同一ステップ番号を付し、その説明は適宜省略する。 FIG. 11 is a flowchart for explaining an example of a processing procedure executed by the data acquisition device in the second embodiment. In the second embodiment, FIG. 5 in the first embodiment is replaced with FIG. In FIG. 11, the same steps as those in FIG. 5 are denoted by the same step numbers, and the description thereof is omitted as appropriate.
通信時刻の到来に応じてセンサ30から送信されたセンサデータによって、データ記憶部121に記憶されているセンサデータが更新された後(S130)、グループ管理部16は、対象センサに対するグループ設定フラグは0(ゼロ)以外であるか否かを判定する(S131)。例えば、グループ設定フラグは、各センサ30のデバイスIDに対応付けられてメモリ装置103に記憶されている。グループ設定フラグの値は、当該デバイスIDに係るセンサ30が属するグループの識別情報(以下、「グループ番号」という。)を示す。但し、グループ設定フラグの値として0(ゼロ)は、当該グループ設定フラグに対応するセンサ30が、いずれのグループにも属さないことを示す。なお、各センサ30に対するグループ設定フラグの初期値は、0(ゼロ)である。
After the sensor data stored in the
対象センサに対するグループ設定フラグの値が0である場合(S131でNo)、グループ管理部16は、過去の所定期間において対象センサから取得されたセンサデータについて、他のそれぞれのセンサ30から当該所定期間において取得されたセンサデータとの相関係数を算出する(S132)。すなわち、対象センサのセンサデータと、他のセンサ30のセンサデータとの類似の度合いが算出される。第二の実施の形態では、各センサデータから取得されたセンサデータの履歴が、例えば、補助記憶装置102等に記憶されるようにしてもよい。なお、相関係数の算出方法は、公知の手法に従えばよい。例えば、パターン認識等の分野における既存のアルゴリズムが利用されて、相関係数が算出されてもよい。
When the value of the group setting flag for the target sensor is 0 (No in S131), the
対象センサのセンサデータとの相関係数が予め設定された閾値以上であるセンサデータが無い場合(S133でNo)、第一の実施の形態と同様に、ステップS140以降が実行される。対象センサのセンサデータとの相関係数が当該閾値以上であるセンサデータが有る場合(S133でYes)、グループ管理部16は、当該センサデータに係る1以上のセンサ30と、対象センサとを同一のデバイスグループに所属させる(S134)。例えば、当該センサ30に対するグループ設定フラグと、対象センサに対するグループ設定フラグとに、相互に同じグループ番号であって、他のデバイスグループには割り当てられてないグループ番号が設定される。
If there is no sensor data whose correlation coefficient with the sensor data of the target sensor is greater than or equal to a preset threshold value (No in S133), Step S140 and subsequent steps are executed as in the first embodiment. When there is sensor data whose correlation coefficient with the sensor data of the target sensor is equal to or greater than the threshold (Yes in S133), the
続いて、通信時刻算出部14は、当該デバイスグループ(以下、「対象グループ」という。)に対する通信スケジュールを生成する(S137)。デバイスグループに対する通信スケジュールとは、デバイスグループに属する各センサ30の次回以降の通信時刻の集合をいう。
Subsequently, the communication
図12は、デバイスグループに対する通信スケジュールを説明するための図である。図12において、(1)は、センサX、センサY、及びセンサZのそれぞれがデバイスグループに属さない場合の通信時刻の例を示す。(1)では、センサXは、時刻tx1、時刻tx2、及び時刻tx3等のタイミングで、センサデータ等を送信することが示されている。なお、厳密には、時刻tx1の時点において時刻tx2が決定され、時刻tx2の時点で時刻tx3が決定される。センサYは、時刻ty1、時刻ty2、及び時刻ty3等のタイミングで、センサデータ等を送信し、センサYは、時刻tz1、時刻tz2、及び時刻tz3等のタイミングで、センサデータ等を送信することが示されている。 FIG. 12 is a diagram for explaining a communication schedule for a device group. In FIG. 12, (1) shows an example of communication time when each of the sensor X, the sensor Y, and the sensor Z does not belong to the device group. In (1), it is indicated that the sensor X transmits sensor data and the like at timings such as time tx1, time tx2, and time tx3. Strictly speaking, the time tx2 is determined at the time tx1, and the time tx3 is determined at the time tx2. The sensor Y transmits sensor data and the like at timings such as time ty1, time ty2, and time ty3, and the sensor Y transmits sensor data and the like at timings such as time tz1, time tz2, and time tz3. It is shown.
一方、(2)は、センサX、センサY、及びセンサZが同一のデバイスグループに属する場合の通信時刻の例を示す。(2)では、センサXは、時刻tx1にセンサデータ等を送信し、センサYは、時刻ty2にセンサデータ等を送信し、センサZは、時刻tz3にセンサデータ等を送信することが示されている。すなわち、各センサ30の通信回数は、3分の1に削減されている。当該デバイスグループに属するセンサ30の総数が増加すれば、各センサ30の通信回数は、更に削減される。すなわち、同一のデバイスグループに属するセンサ30の総数に応じて、各センサ30からのセンサデータの受信回数が削減されるように、各センサ30の通信時刻が算出される。
On the other hand, (2) shows an example of communication time when the sensor X, the sensor Y, and the sensor Z belong to the same device group. In (2), it is indicated that the sensor X transmits sensor data and the like at time tx1, the sensor Y transmits sensor data and the like at time ty2, and the sensor Z transmits sensor data and the like at time tz3. ing. That is, the number of communications of each
なお、同一のデバイスグループが属する或るセンサ30が通信を行ってから、他の全てのセンサ30が少なくとも1回の通信を行うまでの期間を、1サイクルという。ステップS137では、1サイクル分のスケジュール情報が生成される。本実施の形態では、各センサ30の稼動可能時間等に基づいて、1サイクル内の通信回数の配分が行われる。したがって、1サイクル内における各センサ30の通信回数は、必ずしも均等になるとは限らない。なお、通信時刻算出部14は、対象グループに対して生成されたスケジュール情報を、対象グループのグループ番号に関連付けて、メモリ装置103又は補助記憶装置102に記憶しておく。
A period from when a
続いて、通信時刻送信部15は、対象グループに属するセンサ30ごとに、生成された通信スケジュールにおいて当該センサ30に関して最初の通信時刻を、当該センサ30に送信する(S138)。仮に、図12(2)のようなスケジュール情報が生成された場合、センサXには時刻tx1が送信され、センサYには時刻ty2が送信され、センサZには時刻tz3が送信される。
Subsequently, the communication
一方、ステップS131において、対象センサに対するグループ設定フラグが0以外である場合(S131でYes)、データ受信部13は、対象センサから受信されたセンサデータによって、対象センサと同一のデバイスグループ(以下、「対象グループ」という。)に属する各センサ30に関してデータ記憶部121に記憶されているセンサデータを更新する(S135)。この際、対象グループに属するセンサ30群のうち、対象センサ以外のセンサ30に関してデータ記憶部121に記憶されるセンサデータについては、他のセンサ30による測定値であることを示すフラグ等が付加されてもよい。
On the other hand, in step S131, when the group setting flag for the target sensor is other than 0 (Yes in S131), the
続いて、通信時刻算出部14は、対象グループに対して最後に生成されたスケジュール情報に関する1サイクル分のセンサデータの受信が完了したか否かを判定する(S136)。すなわち、当該スケジュール情報に基づいて、対象グループに属する全てのセンサ30からのセンサデータの送信が少なくとも1回有ったか否かが判定される。斯かる判定は、例えば、各センサ30からのセンサデータの送信履歴を記憶しておき、当該送信履歴に基づいて、スケジュール情報において予定されている全ての通信が行われたか否かを判定することで行われてもよい。
Subsequently, the communication
1サイクル分のセンサデータの受信が完了した場合(S136でYes)、ステップS137以降が実行される。1サイクル分のセンサデータの受信が完了していない場合(S136でYes)、通信時刻送信部15は、対象グループのグループ番号に関連付けられて記憶されているスケジュール情報に基づいて特定される、対象センサの次回の通信時刻を、対象センサに送信する(S138)。すなわち、ステップS137が実行されない場合、ステップS138では、対象センサに対して次回の通信時刻が通知される。
When reception of sensor data for one cycle is completed (Yes in S136), Step S137 and subsequent steps are executed. If reception of sensor data for one cycle is not completed (Yes in S136), the communication
続いて、ステップS137の詳細について説明する。図13は、デバイスグループに対する通信スケジュールの生成処理の処理手順の一例を説明するためのフローチャートである。 Next, details of step S137 will be described. FIG. 13 is a flowchart for explaining an example of a processing procedure for generating a communication schedule for a device group.
ステップS301において、通信時刻算出部14は、サービスごとに、対象グループに属する各センサ30に関するアクセスタイミングを集約する。
In step S301, the communication
図14は、デバイスグループに対する通信スケジュールの生成のためのアクセスタイミングの集約を説明するための図である。図14の説明において、対象グループに属するセンサ30のセンサデータにアクセスするサービスは、サービスA及びサービスBの2つであり、対象グループに属するセンサ30は、センサX、センサY、及びセンサZの3つであるとする。
FIG. 14 is a diagram for explaining aggregation of access timings for generating a communication schedule for a device group. In the description of FIG. 14, there are two services that access the sensor data of the
図14の(1)〜(4)において、横軸は時刻である。また、縦線は、センサデータへのアクセスタイミング(取得要求のタイミング)を示す。短い縦線は、サービスAによるアクセスタイミングを示し、長い縦線はサービスBによるアクセスタイミングを示す。 In (1) to (4) of FIG. 14, the horizontal axis is time. The vertical line indicates the access timing (acquisition request timing) to the sensor data. A short vertical line indicates an access timing by the service A, and a long vertical line indicates an access timing by the service B.
(1)は、アクセスタイミングの集約が行われていない状態を示す。(1)において、サービスAと、サービスBとのそれぞれについて、連続する3つのアクセスタイミングは、センサX、センサY、及びセンサZに対する1回ずつのアクセスタイミングを示す。ステップS301では、サービスA及びサービスBのそれぞれごとに、対象グループに属する各センサ30へのアクセスタイミングが集約される。例えば、センサX、センサY、及びセンサZの全てのセンサ30に対して少なくとも1回のアクセスが行われる期間におけるアクセスタイミングが、1回のアクセスタイミングに集約される。斯かる集約結果の一例が、(2)に示される。(2)では、(1)におけるサービスAによるアクセスタイミングが、アクセスタイミングtA1、tA2、tA3、tA4に集約され、サービスBによるアクセスタイミングが、アクセスタイミングtB1、tB2、tB3に集約せれた例が示されている。
(1) shows a state where access timing is not aggregated. In (1), for each of service A and service B, three consecutive access timings indicate access timings for sensor X, sensor Y, and sensor Z once. In step S301, access timings to the
なお、集約先としては、集約対象のアクセスタイミングの中でいずれかのアクセスタイミングが選択されてもよい。又は、集約対象のアクセスタイミングの中で先頭のアクセスタイミングからの差分を、他のアクセスタイミングごとに算出し、当該差分の平均値を、先頭のアクセスタイミングに加算した時刻が、集約先のアクセスタイミングとされてもよい。 As an aggregation destination, any access timing may be selected from the access timings to be aggregated. Or, the difference from the top access timing among the access timings to be aggregated is calculated for each other access timing, and the average value of the differences is added to the top access timing to indicate the access timing of the aggregation destination It may be said.
続いて、通信時刻算出部14は、サービスごとに集約されたアクセスタイミングのうち、相互の間隔が所定時間以内であるアクセスタイミングを、1つのアクセスタイミングに集約する(S302)。ここでは、サービス間を跨って、アクセスタイミングが集約される。斯かる集約結果の一例は、図14の(3)に示される。(3)では、アクセスタイミングtB2とアクセスタイミングtA3との間隔が所定時間以内であるため、アクセスタイミングtB2が、アクセスタイミングtA3に集約された例が示されている。なお、アクセスタイミングtA3が、アクセスタイミングtB2に集約されてもよいし、アクセスタイミングtB2とアクセスタイミングtA3との間の任意の時刻に、二つのアクセスタイミングが集約されてもよい。
Subsequently, the communication
続いて、通信時刻算出部14は、全てのサービスに関して少なくとも2回のアクセスタイミングが含まれる期間を求める(S303)。図14の例では、(4)に示される期間Tcが、該当する期間である。ステップS303において求められる期間が、1サイクルの期間である。
Subsequently, the communication
続いて、通信時刻算出部14は、対象グループに属する各センサ30について、1時間あたりの通信回数を取得する(S304)。当該通信回数は、図8のステップS201と同様に取得されればよい。続いて、通信時刻算出部14は、対象グループに属する各センサ30について稼動可能時間を算出する(S305)。当該稼動可能時間は、図8のステップS202と同様に算出されればよい。なお、対象センサ以外のセンサ30については、最後に受信された電源情報が用いられて、稼動可能時間が算出されてもよい。
Subsequently, the communication
続いて、通信時刻算出部14は、稼動可能時間の比に基づいて、対象グループの通信スケジュールを算出する(S306)。すなわち、対象グループに属する各センサ30について、1サイクルの期間内における通信時刻が算出される。この際、稼動可能時間が相対的に長いセンサ30の通信頻度(通信回数)が、稼動可能時間が相対的に短いセンサ30の通信頻度よりも多くなるように、各センサ30の通信時刻が算出される。
Subsequently, the communication
例えば、センサX、センサY、センサZの稼動可能時間が、それぞれ、2時間、1時間、3時間であったとする。すなわち、稼動可能時間の比が、2:1:3であったとする。この場合、通信頻度(通信回数)が、2:1:3になるように、各センサ30の通信時刻が算出されてもよい。
For example, it is assumed that the operable time of the sensor X, the sensor Y, and the sensor Z is 2 hours, 1 hour, and 3 hours, respectively. That is, it is assumed that the ratio of operable time is 2: 1: 3. In this case, the communication time of each
図14の(4)においては、1サイクルの期間である期間Tc内に、6回のアクセスタイミングが有る。そこで、センサXについては、6×2/6=2回、センサYについては、6×1/6=1回、センサZについては、6×3/6=3回のアクセスタイミングが割り当てられてもよい。 In (4) of FIG. 14, there are six access timings within a period Tc that is a period of one cycle. Therefore, 6 × 2/6 = 2 times for sensor X, 6 × 1/6 = 1 times for sensor Y, and 6 × 3/6 = 3 times for sensor Z. Also good.
例えば、アクセスタイミングtA1、tB1、tA2、tA3、tA4、tB3のそれぞれが、順番に、センサZ、センサX、センサY、センサZ、センサX、センサZに割り当てられてもよい、但し、各アクセスタイミングの割り当て順は、所定のものに限定されない。また、の現在時刻からアクセスタイミングtA1までの間隔は、対象センサに関して、図8において説明した処理が実行されることにより算出される時刻に基づいて特定されてもよい。 For example, each of the access timings tA1, tB1, tA2, tA3, tA4, and tB3 may be sequentially assigned to the sensor Z, the sensor X, the sensor Y, the sensor Z, the sensor X, and the sensor Z. The timing allocation order is not limited to a predetermined one. Further, the interval from the current time to the access timing tA1 may be specified based on the time calculated by executing the processing described in FIG. 8 for the target sensor.
なお、稼動可能時間の比の代わりに、電池残量の比が用いられてもよい。すなわち、電池残量が多いセンサ30の方が通信頻度が高くなるように、アクセスタイミングの割り当てが行われてもよい。
In addition, the ratio of the remaining battery capacity may be used instead of the ratio of the operable time. In other words, the access timing may be assigned so that the
上述したように、第二の実施の形態によれば、相互にセンサデータに関して相関を有する複数のセンサ30を、一つの仮想的なセンサ30として扱うことができる。その結果、各センサ30のスリープ時間を長期化することができる。よって、各センサ30の電力消費を低下させることができる。
As described above, according to the second embodiment, a plurality of
また、同一のデバイスグループに属する各センサ30の通信時刻は、当該各センサ30の稼動可能時間に基づいて算出される。その結果、当該各センサ30の稼動可能時間のばらつきを小さくすることができる。
Further, the communication time of each
なお、上記では、センサデータの相関性に基づいて、自動的にデバイスグループが形成される例を示したが、デバイスグループは、例えば、データ取得装置10の管理者等によって、設定されてもよい。
In the above, an example in which a device group is automatically formed based on the correlation of sensor data has been described. However, the device group may be set by, for example, an administrator of the
なお、上記各実施の形態において、データ受信部13は、受信部の一例である。取得要求受信部11は、返信部の一例である。通信時刻算出部14は、算出部の一例である。通信時刻送信部15は、送信部の一例である。センサ30は、機器の一例である。
In each of the above embodiments, the
以上、本発明の実施例について詳述したが、本発明は斯かる特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。 As mentioned above, although the Example of this invention was explained in full detail, this invention is not limited to such specific embodiment, In the range of the summary of this invention described in the claim, various deformation | transformation・ Change is possible.
以上の説明に関し、更に以下の項を開示する。
(付記1)
機器によって測定されるデータと、前記機器の電池残量とを受信して、前記データを記憶部に記憶する受信部と、
ネットワークを介して接続される情報処理装置からの前記データの取得要求に応じ、前記記憶部に記憶されているデータを返信する返信部と、
前記受信部によって受信された前記電池残量と前記取得要求の履歴とに基づいて、前記データの次回の受信時期を算出する算出部と、
前記算出部によって算出された受信時期を前記機器に送信することにより、前記受信時期に前記機器から前記データを送信させる送信部と、
を有することを特徴とするデータ取得装置。
(付記2)
前記算出部は、前記電池残量が相対的に少ない場合の方が、前記電池残量が相対的に多い場合よりも、前記受信時期が後になるように前記受信時期を算出する、
ことを特徴とする付記1記載のデータ取得装置。
(付記3)
前記算出部は、一定期間において受信された前記データの変化量が閾値以下の場合は、前記電池残量と前記取得要求の履歴とに基づいて算出された前記受信時期を遅らせる、
ことを特徴とする付記1又は2記載のデータ取得装置。
(付記4)
前記記憶部は、複数の機器のそれぞれごとに当該機器から受信されたデータを記憶し、
前記受信部は、複数の機器のうちのいずれかの第1の機器から受信されたデータを、当該第1の機器と、当該第1の機器によって測定されるデータと相関を有するデータを測定する1以上の第2の機器とに関して前記記憶部に記憶し、
前記算出部は、前記第1の機器と前記第2の機器との総数に応じて、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信回数が削減されるように、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信時刻を算出する、
ことを特徴とする付記1乃至3いずれか一項記載のデータ取得装置。
(付記5)
コンピュータが、
機器によって測定されるデータと、前記機器の電池残量とを受信して、前記データを記憶部に記憶し、
ネットワークを介して接続される情報処理装置からの前記データの取得要求に応じ、前記記憶部に記憶されているデータを返信し、
前記記憶する処理において受信された前記電池残量と前記取得要求の履歴とに基づいて、前記データの次回の受信時期を算出し、
前記算出する処理において算出された受信時期を前記機器に送信することにより、前記受信時期に前記機器から前記データを送信させる、
処理を実行することを特徴とするデータ取得方法。
(付記6)
前記算出する処理は、前記電池残量が相対的に少ない場合の方が、前記電池残量が相対的に多い場合よりも、前記受信時期が後になるように前記受信時期を算出する、
ことを特徴とする付記5記載のデータ取得方法。
(付記7)
前記算出する処理は、一定期間において受信された前記データの変化量が閾値以下の場合は、前記電池残量と前記取得要求の履歴とに基づいて算出された前記受信時期を遅らせる、
ことを特徴とする付記5又は6記載のデータ取得方法。
(付記8)
前記記憶部は、複数の機器のそれぞれごとに当該機器から受信されたデータを記憶し、
前記記憶する処理は、複数の機器のうちのいずれかの第1の機器から受信されたデータを、当該第1の機器と、当該第1の機器によって測定されるデータと相関を有するデータを測定する1以上の第2の機器とに関して前記記憶部に記憶し、
前記算出する処理は、前記第1の機器と前記第2の機器との総数に応じて、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信回数が削減されるように、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信時刻を算出する、
ことを特徴とする付記5乃至7いずれか一項記載のデータ取得方法。
(付記9)
コンピュータに、
機器によって測定されるデータと、前記機器の電池残量とを受信して、前記データを記憶部に記憶し、
ネットワークを介して接続される情報処理装置からの前記データの取得要求に応じ、前記記憶部に記憶されているデータを返信し、
前記記憶する処理において受信された前記電池残量と前記取得要求の履歴とに基づいて、前記データの次回の受信時期を算出し、
前記算出する処理において算出された受信時期を前記機器に送信することにより、前記受信時期に前記機器から前記データを送信させる、
処理を実行させるプログラム。
(付記10)
前記算出する処理は、前記電池残量が相対的に少ない場合の方が、前記電池残量が相対的に多い場合よりも、前記受信時期が後になるように前記受信時期を算出する、
ことを特徴とする付記9記載のプログラム。
(付記11)
前記算出する処理は、一定期間において受信された前記データの変化量が閾値以下の場合は、前記電池残量と前記取得要求の履歴とに基づいて算出された前記受信時期を遅らせる、
ことを特徴とする付記9又は10記載のプログラム。
(付記12)
前記記憶部は、複数の機器のそれぞれごとに当該機器から受信されたデータを記憶し、
前記記憶する処理は、複数の機器のうちのいずれかの第1の機器から受信されたデータを、当該第1の機器と、当該第1の機器によって測定されるデータと相関を有するデータを測定する1以上の第2の機器とに関して前記記憶部に記憶し、
前記算出する処理は、前記第1の機器と前記第2の機器との総数に応じて、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信回数が削減されるように、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信時刻を算出する、
ことを特徴とする付記9乃至11いずれか一項記載のプログラム。
Regarding the above description, the following items are further disclosed.
(Appendix 1)
A receiving unit that receives data measured by the device and the remaining battery level of the device and stores the data in a storage unit;
In response to the data acquisition request from the information processing apparatus connected via the network, a reply unit that returns the data stored in the storage unit;
A calculation unit that calculates a next reception time of the data based on the remaining battery level and the history of the acquisition request received by the reception unit;
A transmission unit for transmitting the data from the device at the reception time by transmitting the reception time calculated by the calculation unit to the device;
A data acquisition device comprising:
(Appendix 2)
The calculation unit calculates the reception time so that the reception time is later when the battery remaining amount is relatively smaller than when the battery remaining amount is relatively large.
The data acquisition device according to
(Appendix 3)
The calculation unit delays the reception time calculated based on the remaining battery level and the history of the acquisition request when the change amount of the data received in a certain period is equal to or less than a threshold value.
The data acquisition device according to
(Appendix 4)
The storage unit stores data received from the device for each of a plurality of devices,
The receiving unit measures data having a correlation with data received from any one of the plurality of devices and data measured by the first device and the first device. Memorize | store in the said memory | storage part regarding one or more 2nd apparatuses,
The calculation unit is configured to reduce the number of times data is received from each of the first device and the second device according to the total number of the first device and the second device. Calculating a reception time of data from each of the first device and the second device;
The data acquisition device according to any one of
(Appendix 5)
Computer
Receives data measured by the device and the remaining battery level of the device, stores the data in the storage unit,
In response to the data acquisition request from the information processing apparatus connected via the network, the data stored in the storage unit is returned,
Based on the remaining battery level received in the storing process and the history of the acquisition request, the next reception time of the data is calculated,
Transmitting the data received from the device at the reception time by transmitting the reception time calculated in the calculation process to the device;
A data acquisition method characterized by executing processing.
(Appendix 6)
The calculation process calculates the reception time so that the reception time is later when the remaining battery level is relatively lower than when the remaining battery level is relatively high.
The data acquisition method according to
(Appendix 7)
The calculating process delays the reception time calculated based on the remaining battery level and the history of the acquisition request when the amount of change in the data received in a certain period is equal to or less than a threshold value.
The data acquisition method according to
(Appendix 8)
The storage unit stores data received from the device for each of a plurality of devices,
The storing process measures data received from any one of a plurality of devices and data having a correlation with the first device and data measured by the first device. Storing in the storage unit with respect to one or more second devices
The calculation process is performed so that the number of data receptions from each of the first device and the second device is reduced according to the total number of the first device and the second device. Calculating a reception time of data from each of the first device and the second device;
The data acquisition method according to any one of
(Appendix 9)
On the computer,
Receives data measured by the device and the remaining battery level of the device, stores the data in the storage unit,
In response to the data acquisition request from the information processing apparatus connected via the network, the data stored in the storage unit is returned,
Based on the remaining battery level received in the storing process and the history of the acquisition request, the next reception time of the data is calculated,
Transmitting the data received from the device at the reception time by transmitting the reception time calculated in the calculation process to the device;
A program that executes processing.
(Appendix 10)
The calculation process calculates the reception time so that the reception time is later when the remaining battery level is relatively lower than when the remaining battery level is relatively high.
The program according to appendix 9, which is characterized by the above.
(Appendix 11)
The calculating process delays the reception time calculated based on the remaining battery level and the history of the acquisition request when the amount of change in the data received in a certain period is equal to or less than a threshold value.
The program according to
(Appendix 12)
The storage unit stores data received from the device for each of a plurality of devices,
The storing process measures data received from any one of a plurality of devices and data having a correlation with the first device and data measured by the first device. Storing in the storage unit with respect to one or more second devices
The calculation process is performed so that the number of data receptions from each of the first device and the second device is reduced according to the total number of the first device and the second device. Calculating a reception time of data from each of the first device and the second device;
The program according to any one of appendices 9 to 11, characterized in that:
10 データ取得装置
11 取得要求受信部
12 データ取得部
13 データ受信部
14 通信時刻算出部
15 通信時刻送信部
16 グループ管理部
20 データ利用装置
30a センサ
30b センサ
31 通信制御部
32 データ測定部
33 稼動状態制御部
34 プロファイル記憶部
100 ドライブ装置
101 記録媒体
102 補助記憶装置
103 メモリ装置
104 CPU
105 インタフェース装置
121 データ記憶部
122 アクセス履歴記憶部
B バス
DESCRIPTION OF
105
Claims (6)
ネットワークを介して接続される情報処理装置からの前記データの取得要求に応じ、前記記憶部に記憶されているデータを返信する返信部と、
前記受信部によって受信された前記電池残量と前記取得要求の履歴とに基づいて、前記データの次回の受信時期を算出する算出部と、
前記算出部によって算出された受信時期を前記機器に送信することにより、前記受信時期に前記機器から前記データを送信させる送信部と、
を有することを特徴とするデータ取得装置。 A receiving unit that receives data measured by the device and the remaining battery level of the device and stores the data in a storage unit;
In response to the data acquisition request from the information processing apparatus connected via the network, a reply unit that returns the data stored in the storage unit;
A calculation unit that calculates a next reception time of the data based on the remaining battery level and the history of the acquisition request received by the reception unit;
A transmission unit for transmitting the data from the device at the reception time by transmitting the reception time calculated by the calculation unit to the device;
A data acquisition device comprising:
ことを特徴とする請求項1記載のデータ取得装置。 The calculation unit calculates the reception time so that the reception time is later when the battery remaining amount is relatively smaller than when the battery remaining amount is relatively large.
The data acquisition apparatus according to claim 1.
ことを特徴とする請求項1又は2記載のデータ取得装置。 The calculation unit delays the reception time calculated based on the remaining battery level and the history of the acquisition request when the change amount of the data received in a certain period is equal to or less than a threshold value.
The data acquisition device according to claim 1, wherein the data acquisition device is a data acquisition device.
前記受信部は、複数の機器のうちのいずれかの第1の機器から受信されたデータを、当該第1の機器と、当該第1の機器によって測定されるデータと相関を有するデータを測定する1以上の第2の機器とに関して前記記憶部に記憶し、
前記算出部は、前記第1の機器と前記第2の機器との総数に応じて、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信回数が削減されるように、前記第1の機器及び前記第2の機器のそれぞれからのデータの受信時刻を算出する、
ことを特徴とする請求項1乃至3いずれか一項記載のデータ取得装置。 The storage unit stores data received from the device for each of a plurality of devices,
The receiving unit measures data having a correlation with data received from any one of the plurality of devices and data measured by the first device and the first device. Memorize | store in the said memory | storage part regarding one or more 2nd apparatuses,
The calculation unit is configured to reduce the number of times data is received from each of the first device and the second device according to the total number of the first device and the second device. Calculating a reception time of data from each of the first device and the second device;
The data acquisition device according to claim 1, wherein the data acquisition device is a data acquisition device.
機器によって測定されるデータと、前記機器の電池残量とを受信して、前記データを記憶部に記憶し、
ネットワークを介して接続される情報処理装置からの前記データの取得要求に応じ、前記記憶部に記憶されているデータを返信し、
前記記憶する処理において受信された前記電池残量と前記取得要求の履歴とに基づいて、前記データの次回の受信時期を算出し、
前記算出する処理において算出された受信時期を前記機器に送信することにより、前記受信時期に前記機器から前記データを送信させる、
処理を実行することを特徴とするデータ取得方法。 Computer
Receives data measured by the device and the remaining battery level of the device, stores the data in the storage unit,
In response to the data acquisition request from the information processing apparatus connected via the network, the data stored in the storage unit is returned,
Based on the remaining battery level received in the storing process and the history of the acquisition request, the next reception time of the data is calculated,
Transmitting the data received from the device at the reception time by transmitting the reception time calculated in the calculation process to the device;
A data acquisition method characterized by executing processing.
機器によって測定されるデータと、前記機器の電池残量とを受信して、前記データを記憶部に記憶し、
ネットワークを介して接続される情報処理装置からの前記データの取得要求に応じ、前記記憶部に記憶されているデータを返信し、
前記記憶する処理において受信された前記電池残量と前記取得要求の履歴とに基づいて、前記データの次回の受信時期を算出し、
前記算出する処理において算出された受信時期を前記機器に送信することにより、前記受信時期に前記機器から前記データを送信させる、
処理を実行させるプログラム。 On the computer,
Receives data measured by the device and the remaining battery level of the device, stores the data in the storage unit,
In response to the data acquisition request from the information processing apparatus connected via the network, the data stored in the storage unit is returned,
Based on the remaining battery level received in the storing process and the history of the acquisition request, the next reception time of the data is calculated,
Transmitting the data received from the device at the reception time by transmitting the reception time calculated in the calculation process to the device;
A program that executes processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014203040A JP6323288B2 (en) | 2014-10-01 | 2014-10-01 | Data acquisition apparatus, data acquisition method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014203040A JP6323288B2 (en) | 2014-10-01 | 2014-10-01 | Data acquisition apparatus, data acquisition method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2016071783A JP2016071783A (en) | 2016-05-09 |
| JP6323288B2 true JP6323288B2 (en) | 2018-05-16 |
Family
ID=55867046
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014203040A Expired - Fee Related JP6323288B2 (en) | 2014-10-01 | 2014-10-01 | Data acquisition apparatus, data acquisition method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6323288B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018054512A (en) * | 2016-09-29 | 2018-04-05 | 大阪瓦斯株式会社 | Energy consumption management system |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6723100B2 (en) * | 2016-07-11 | 2020-07-15 | 三菱電機株式会社 | Communication device |
| JP6334633B2 (en) * | 2016-09-20 | 2018-05-30 | 株式会社東芝 | Data search system and data search method |
| JP2018174448A (en) * | 2017-03-31 | 2018-11-08 | 富士通株式会社 | Communication device, data acquisition system, data acquisition control method |
| JP2018201151A (en) * | 2017-05-29 | 2018-12-20 | 株式会社東芝 | Information acquisition device, information collection device and communication control method |
| JP6520998B2 (en) * | 2017-07-31 | 2019-05-29 | パナソニックIpマネジメント株式会社 | Door phone device |
| JP7070120B2 (en) * | 2018-06-08 | 2022-05-18 | 富士電機株式会社 | Sensor device and sensor system |
| WO2021199269A1 (en) * | 2020-03-31 | 2021-10-07 | 三菱電機株式会社 | Communication terminal, communication system, power-saving control method, and power-saving control program |
| CN113985474B (en) * | 2021-10-28 | 2023-10-31 | 北京石油化工学院 | A multi-node collaborative sensing method for microseismic monitoring based on the Internet of Things |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4262106B2 (en) * | 2004-01-20 | 2009-05-13 | 日本電信電話株式会社 | Sensor node and sensor node control method |
| JP4685663B2 (en) * | 2006-03-03 | 2011-05-18 | 日本電信電話株式会社 | Self-driven telemetry observation device |
| JP5452145B2 (en) * | 2009-09-14 | 2014-03-26 | 富士電機株式会社 | Wireless terminal device, wireless communication system, and wireless communication method |
-
2014
- 2014-10-01 JP JP2014203040A patent/JP6323288B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018054512A (en) * | 2016-09-29 | 2018-04-05 | 大阪瓦斯株式会社 | Energy consumption management system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2016071783A (en) | 2016-05-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6323288B2 (en) | Data acquisition apparatus, data acquisition method, and program | |
| US11621900B2 (en) | Selective measurement reporting from internet of things devices | |
| CN101598949B (en) | Temperature acquisition control device and method | |
| US9989938B2 (en) | Communication device, control system, and communication method | |
| EP3470749B1 (en) | Method and apparatus for controlling electric heating of air conditioner compressor | |
| JP2016206067A (en) | Sensor monitoring system, disaster monitoring system, and disaster monitoring method | |
| JP6447723B2 (en) | Observation system and observation method | |
| JP6754693B2 (en) | How to match data and event gaps sent and received on networks using different communication technologies | |
| JP6398359B2 (en) | Mesh wireless communication system, wireless communication method, and wireless device | |
| US20130145030A1 (en) | Control device, terminal apparatus, and communication system | |
| JP2013011962A (en) | Sensor network system | |
| JP5760873B2 (en) | Data generating apparatus, method and program | |
| JP7215069B2 (en) | Control program, control method and control device | |
| CN112313964A (en) | Clearance data collection for low energy devices | |
| JP2019062358A (en) | Relay device and remote monitoring system including the same | |
| JP2016162294A (en) | Monitoring system, sensor node, server, and control method | |
| JP5404943B2 (en) | Data collection device, data collection program, and data collection system | |
| KR20180002442A (en) | Apparatus for transmitting of data and method determining data transmission period using the same | |
| JP2019212997A (en) | Sensor node, host, and sensor network system | |
| WO2020024186A1 (en) | Distributed data acquisition system and method | |
| JP2019047327A (en) | Abnormality detection device and abnormality detection method | |
| US9722969B2 (en) | Maintenance method for network connection and computer system | |
| CN115865949B (en) | Data processing method, device, system, computer equipment and storage medium | |
| CN108932183B (en) | Method and apparatus for handling alarms | |
| CN103294679A (en) | Electronic device provided with synchronous data storage function and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170605 |
|
| 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: 20180313 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180314 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180326 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6323288 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |