[go: up one dir, main page]

JP6077942B2 - Sensor - Google Patents

Sensor Download PDF

Info

Publication number
JP6077942B2
JP6077942B2 JP2013121450A JP2013121450A JP6077942B2 JP 6077942 B2 JP6077942 B2 JP 6077942B2 JP 2013121450 A JP2013121450 A JP 2013121450A JP 2013121450 A JP2013121450 A JP 2013121450A JP 6077942 B2 JP6077942 B2 JP 6077942B2
Authority
JP
Japan
Prior art keywords
sensor
time
timer
data
sleep mode
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
Application number
JP2013121450A
Other languages
Japanese (ja)
Other versions
JP2014238351A (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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2013121450A priority Critical patent/JP6077942B2/en
Publication of JP2014238351A publication Critical patent/JP2014238351A/en
Application granted granted Critical
Publication of JP6077942B2 publication Critical patent/JP6077942B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing Or Calibration Of Command Recording Devices (AREA)

Description

本発明は、センサに関する。   The present invention relates to a sensor.

様々な資源の効率的な利用の観点から、遠隔で観測した電力、交通、農業、環境等のデータを収集するデータ収集システムが重要視されている。図7にデータ収集システムの概略的な構成例を示す。この図に示すように、センサ110と端末制御・通信部120で構成されるセンサ端末100がネットワーク130を介してサーバー140に接続されている。センサ110でセンシングする対象を電気信号に変換した後、端末制御・通信部120でデジタル化してデータを生成する。生成されたデータはネットワーク130を通してサーバー140に送られ、サーバー140で収集される。センシング対象の電気信号への変換に用いるセンサ110に関しては、センシングする対象が多岐にわたるため、種々のセンサ110が必要となる。   From the viewpoint of efficient use of various resources, a data collection system that collects data of remotely observed power, traffic, agriculture, environment, etc. is regarded as important. FIG. 7 shows a schematic configuration example of the data collection system. As shown in this figure, a sensor terminal 100 including a sensor 110 and a terminal control / communication unit 120 is connected to a server 140 via a network 130. The object to be sensed by the sensor 110 is converted into an electric signal, and then digitized by the terminal control / communication unit 120 to generate data. The generated data is sent to the server 140 through the network 130 and collected by the server 140. With respect to the sensor 110 used for conversion to an electrical signal to be sensed, there are a wide variety of objects to be sensed, so various sensors 110 are required.

センサ端末100では、各々のセンサ110の目的に応じたデータ取得間隔でデータが取得・蓄積される。データを取得していない間、センサ端末100は低消費電力化のためスリープモードになりタイマのみ動作する状態となる。特許文献1のようにリアルタイムクロックがあり複数の間隔のタイマ設定値を設定できる場合は、各々のタイマ設定値ごとにセンサ110を起動しデータを取得できる。これに対し、小型・低消費電力のマイクロコントローラーではタイマ設定値の数に限界があるため、センサ110の数がタイマ設定値の数を上回る場合には自由にセンサ110を起動できなくなる。   In the sensor terminal 100, data is acquired and accumulated at data acquisition intervals corresponding to the purpose of each sensor 110. While data is not being acquired, the sensor terminal 100 enters a sleep mode to reduce power consumption, and only the timer operates. When there is a real-time clock as in Patent Document 1 and timer setting values at a plurality of intervals can be set, the sensor 110 can be activated for each timer setting value to acquire data. On the other hand, since the number of timer setting values is limited in a small-sized and low power consumption microcontroller, the sensors 110 cannot be freely activated when the number of sensors 110 exceeds the number of timer setting values.

図8に従来のセンサ端末100の構成例を示す。本センサ端末100では、N個のセンサセル1,…,Nを使用し、タイマ設定値を1個のみ設定できるタイマ111を備えている。タイマ111は、タイマ設定値の時間間隔ごとに割り込み信号となるトリガを出力する。センサ制御部112は、センサ制御データに基づいてタイマ設定値をタイマ111に出力するとともに、タイマ111から割り込み信号が入力されると、起動すべきセンサセルを起動してデータを取得する。取得したデータはセンシングデータとして端末制御部122に送られ記憶される。   FIG. 8 shows a configuration example of a conventional sensor terminal 100. The sensor terminal 100 includes a timer 111 that uses N sensor cells 1,..., N and can set only one timer set value. The timer 111 outputs a trigger that becomes an interrupt signal at each time interval of the timer set value. The sensor control unit 112 outputs a timer set value to the timer 111 based on the sensor control data, and when an interrupt signal is input from the timer 111, activates a sensor cell to be activated and acquires data. The acquired data is sent to and stored in the terminal control unit 122 as sensing data.

端末制御部122は、センサ制御部112にセンサ制御データを出力し、端末制御部122に記憶されているセンシングデータを基に通信に使用するデータ列を形成し通信部121に出力する。また、通信部121で受信した情報に含まれるセンサ110の制御に関する情報を抽出する。   The terminal control unit 122 outputs sensor control data to the sensor control unit 112, forms a data string used for communication based on the sensing data stored in the terminal control unit 122, and outputs the data string to the communication unit 121. In addition, information related to control of the sensor 110 included in the information received by the communication unit 121 is extracted.

特開2009−180648号公報JP 2009-180648 A

タイマ設定値を一度に1つしか設定できないタイマ111を使用した場合は、図9に示すように、各センサセルのサンプリング周期が最小のサンプリング周期の整数倍であれば、各センサセルから所定のサンプリング周期でデータ取得可能である。しかし、各センサセルのサンプリング周期が最小のサンプリング周期の整数倍でないものを含む場合は対応できない。   When the timer 111 that can set only one timer set value at a time is used, as shown in FIG. 9, if the sampling period of each sensor cell is an integral multiple of the minimum sampling period, a predetermined sampling period is set from each sensor cell. Data can be acquired with However, it is not possible to deal with cases where the sampling period of each sensor cell is not an integral multiple of the minimum sampling period.

本発明は、上述した従来の技術に鑑み、タイマ設定値を一度に1つしか設定できない場合でも、要求されたサンプリング周期で複数のセンシング対象のデータを取得可能なセンサを提供することを目的とする。   An object of the present invention is to provide a sensor capable of acquiring data of a plurality of sensing targets at a requested sampling period even when only one timer set value can be set at a time in view of the conventional technology described above. To do.

上記目的を達成するため、第1の態様に係る発明は、センサであって、複数のセンサセルと、前記センサセルからデータを取得する毎に、複数の前記センサセルの中から、所定の基準時刻から次回のデータを取得するまでの時間Tsが最小である前記センサセルを探索し、探索された前記センサセルの時間Tsと前記基準時刻からの経過時間Tspとの差分時間Ts-Tspをタイマ設定値として選定するタイマ値選定部と、前記差分時間Ts-Tsp経過後にトリガを出力するタイマと、前記タイマから前記トリガが入力されると、前記タイマ値選定部により探索された前記センサセルを起動してデータを取得するとともに、前記経過時間Tspの値を前記時間Tsに更新するセンサ制御部とを備え、前記タイマ以外の前記センサの各部がスリープモードから復帰してから再びスリープモードに入るまでの時間内に次の起動時間が入る場合はスリープモードに入らずに次の起動時間で起動すべきセンサセルからデータを取得することを要旨とする。 In order to achieve the above object, the invention according to the first aspect is a sensor, and each time data is acquired from a plurality of sensor cells, the next time from a predetermined reference time among the plurality of sensor cells. The sensor cell having the minimum time Ts until the data acquisition is searched for, and a difference time Ts-Tsp between the searched time Ts of the sensor cell and the elapsed time Tsp from the reference time is selected as a timer setting value. A timer value selection unit, a timer that outputs a trigger after the difference time Ts-Tsp has elapsed, and when the trigger is input from the timer, activates the sensor cell searched by the timer value selection unit to acquire data as well as, again a sensor control unit to update the value of the elapsed time Tsp to the time Ts, each part of the sensor other than the timer has returned from the sleep mode If within the time to enter the sleep mode enters the next activation time is summarized in that to obtain the data from the sensor cell to be started in the next startup time without entering the sleep mode.

の態様に係る発明は、第の態様に係る発明において、前記タイマ以外の前記センサの各部がスリープモードから復帰してから再びスリープモードに入るまでの時間Tdを定義し、前記時間Tsとの差Tdifが前記時間Td以内である要素が存在する場合はその要素を準起動センサとし、起動センサを起動してから前記時間Tsとの差Tdif後に前記準起動センサであるセンサセルからデータを取得することを要旨とする。 The invention according to a second aspect is the invention according to the first aspect, wherein a time Td from when each part of the sensor other than the timer returns from the sleep mode to the sleep mode again is defined, and the time Ts If there is an element whose difference Tdif is within the time Td, the element is used as a semi-start sensor, and after starting the start sensor, data from the sensor cell that is the semi-start sensor after the difference Tdif from the time Ts is obtained. The gist is to obtain.

本発明によれば、タイマ設定値を一度に1つしか設定できない場合でも、要求されたサンプリング周期で複数のセンシング対象のデータを取得可能なセンサを提供することができる。   According to the present invention, it is possible to provide a sensor capable of acquiring a plurality of sensing target data at a requested sampling period even when only one timer set value can be set at a time.

本発明の第1の実施の形態におけるセンサのブロック図である。It is a block diagram of a sensor in a 1st embodiment of the present invention. 本発明の第1の実施の形態におけるセンサの処理フローを示す図である。It is a figure which shows the processing flow of the sensor in the 1st Embodiment of this invention. 本発明の第1の実施の形態における各パラメータの時間変化を示す図である。It is a figure which shows the time change of each parameter in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるデータ取得スケジュールを示す図である。It is a figure which shows the data acquisition schedule in the 1st Embodiment of this invention. 本発明の第2の実施の形態におけるセンサの処理フローを示す図である。It is a figure which shows the processing flow of the sensor in the 2nd Embodiment of this invention. 本発明の第2の実施の形態における各パラメータの時間変化を示す図である。It is a figure which shows the time change of each parameter in the 2nd Embodiment of this invention. 従来のデータ収集システムの概略的な構成例を示す図である。It is a figure which shows the schematic structural example of the conventional data collection system. 従来のセンサ端末の構成例を示す図である。It is a figure which shows the structural example of the conventional sensor terminal. 従来のデータ取得スケジュールを示す図である。It is a figure which shows the conventional data acquisition schedule.

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

(第1の実施の形態)
図1に第1の実施の形態におけるセンサ10のブロック図を示す。本センサ10は、N個のセンサセル1,…,Nと、タイマ11と、タイマ値選定部12と、センサ制御部13で構成される。図8や図9と同様、センサ制御部13は端末制御・通信部120に接続され、端末制御・通信部120はサーバー140に接続される。端末制御・通信部120やサーバー140の構成は既に説明した通りである。
(First embodiment)
FIG. 1 shows a block diagram of a sensor 10 according to the first embodiment. The sensor 10 includes N sensor cells 1,..., N, a timer 11, a timer value selection unit 12, and a sensor control unit 13. As in FIGS. 8 and 9, the sensor control unit 13 is connected to the terminal control / communication unit 120, and the terminal control / communication unit 120 is connected to the server 140. The configurations of the terminal control / communication unit 120 and the server 140 are as described above.

N個のセンサセル1,…,Nは、所望のセンシング対象を電気信号に変換し、センサ制御部13からの要求信号に応じて変換した電気信号を出力する。各センサセルでセンシング対象は異なっていてもよい。タイマ11は、タイマ設定値を1個設定でき、タイマ設定値で設定された時間経過後にトリガを出力する。タイマ値選定部12は、センサ制御データから抽出した各センサセルのサンプリング周期(T1からTN)と各センサセルの起動回数を表すパラメータKm(m=1…N)から次のタイマ設定値Tsを算出するとともに、次に起動すべきセンサ10を選定する。センサ制御部13は、センサ制御データからサンプリング周期を抽出してタイマ値選定部12に出力する。また、タイマ11から割り込み信号となるトリガが入力されると、タイマ値選定部12から通知された起動すべきセンサ10を起動してデータを取得しセンシングデータとして出力する。   N sensor cells 1,..., N convert a desired sensing target into an electrical signal, and output an electrical signal converted according to a request signal from the sensor control unit 13. The sensing target may be different for each sensor cell. The timer 11 can set one timer set value, and outputs a trigger after elapse of the time set by the timer set value. The timer value selection unit 12 calculates the next timer set value Ts from the sampling period (T1 to TN) of each sensor cell extracted from the sensor control data and the parameter Km (m = 1... N) representing the number of activations of each sensor cell. At the same time, the sensor 10 to be activated next is selected. The sensor control unit 13 extracts a sampling period from the sensor control data and outputs it to the timer value selection unit 12. When a trigger serving as an interrupt signal is input from the timer 11, the sensor 10 to be started notified from the timer value selection unit 12 is activated to acquire data and output it as sensing data.

以下、図2を用いてタイマ設定値選定の動作を説明する。以下の説明では、m番目のセンサセルのサンプリング周期をTm (m=1…N)とする。   Hereinafter, the timer setting value selection operation will be described with reference to FIG. In the following description, the sampling period of the mth sensor cell is Tm (m = 1... N).

まず、センサ10が起動されると、センサ制御部13はサンプリング周期Tm (m=1…N)をタイマ選定部12に出力する。タイマ値選定部12では、各センサセルの起動回数Kmを1で初期化し、センサ10が起動されてからの経過時間Tspをゼロに初期化する(ステップ1)。   First, when the sensor 10 is activated, the sensor control unit 13 outputs a sampling cycle Tm (m = 1... N) to the timer selection unit 12. The timer value selection unit 12 initializes the activation count Km of each sensor cell with 1, and initializes the elapsed time Tsp after the sensor 10 is activated to zero (step 1).

次いで、タイマ値選定部12が以下に説明する一連の処理を実行する(ステップ2)。すなわち、Km x Tm(m = 1…N)をm番目の要素とする集合Uを作成する。要素の番号はセンサセルの番号(ID)と1対1で対応していればよく、両者は同じでなくてよい。Uの中で最小の要素を探索し、最小の要素の値TsとTsをとる次に起動すべきセンサセルの要素の番号j(またはセンサセルのID)をすべて記憶する。次に起動する時間となるタイマ設定値にTs-Tspを設定するとともに、Tsをとる要素の番号(またはセンサセルのID)を次に割り込み信号が入力された時に起動するセンサセル(起動センサ)としてセンサ制御部13に通知する。また、Tsであった要素番号のパラメータKjをすべてインクリメントする。   Next, the timer value selection unit 12 executes a series of processes described below (step 2). That is, a set U having Km × Tm (m = 1... N) as the m-th element is created. The element number only needs to correspond one-to-one with the sensor cell number (ID), and the two need not be the same. The smallest element in U is searched, and all the element numbers j (or sensor cell IDs) of the sensor cell to be activated next taking the values Ts and Ts of the smallest element are stored. Set Ts-Tsp as the timer setting value that is the next activation time, and use the element number (or sensor cell ID) that takes Ts as the sensor cell (activation sensor) that activates the next time an interrupt signal is input. Notify the control unit 13. Also, all the element number parameters Kj that were Ts are incremented.

この後、タイマ11が起動し、起動からの時間経過値を表すタイマ値とタイマ設定値を比較して一致したら、割り込み信号となるトリガを出力する(ステップ3)。センサ制御部13は、割り込み信号が入力されると、起動センサとして通知されたセンサセルを起動しデータを取得しメモリに格納する(ステップ4)。この後、Tspに現在のTsを格納してステップ2に戻る。センサ制御部13に停止命令が入力されるまでステップ2からステップ4を繰り返す。   Thereafter, the timer 11 is activated, and when a timer value indicating a time elapsed value from the activation and the timer set value are compared and matched, a trigger serving as an interrupt signal is output (step 3). When the interrupt signal is input, the sensor control unit 13 activates the sensor cell notified as the activation sensor, acquires data, and stores it in the memory (step 4). Thereafter, the current Ts is stored in Tsp, and the process returns to Step 2. Steps 2 to 4 are repeated until a stop command is input to the sensor control unit 13.

上記ではタイマ設定値をTs-Tspとしたが、タイマ11にリアルタイマクロックを使用した場合はTsをタイマ設定値としてよい。この場合は経過時間Tspが不要となる。   In the above description, the timer set value is Ts-Tsp. However, when a real timer clock is used for the timer 11, Ts may be set as the timer set value. In this case, the elapsed time Tsp is not necessary.

以下、図3を用いて、第1の実施の形態におけるセンサ10の動作を各パラメータの時間変化とともに詳細に説明する。ここでは、センサセルの個数を3個、各センサセルのIDをS1、S2、S3、各センサセルのサンプリング周期をT1、T2、T3とする。また、図3に示される白抜きの矢印は、各パラメータの時間変化を示している。   Hereinafter, the operation of the sensor 10 according to the first embodiment will be described in detail along with the time variation of each parameter, with reference to FIG. Here, the number of sensor cells is three, the ID of each sensor cell is S1, S2, S3, and the sampling period of each sensor cell is T1, T2, T3. Moreover, the white arrow shown in FIG. 3 has shown the time change of each parameter.

今、ステップ2からステップ4を起動からi-1回繰り返し、経過時間がTs,i-1、KmがK1,i-1、K2,i-1、K3,i-1となっている。また、繰り返しがi-1回目のパラメータKmはそれぞれK1,i-1=h1、K2,i-1=h2、K3,i-1=h3であり、K1,i-1 x T1< K2,i-1 x T2< K3,i-1 x T3としている(実線で描画)。この繰り返し回数(経過時間)ではK1,i-1 x T1が最小のため、i回目のTsはTs,i = K1,i-1 x T1となり、次に起動すべきセンサセルの要素番号jは1となる。したがって、S1のパラメータK1をインクリメントしてi回目のK1はK1,i = h1+1となる(破線で描画)。その他の各センサセルの起動回数Km(m = 2, 3)は同じであるため、K2,i = h2、K3,i = h3となる。図3では繰り返しがi回目の集合Uの要素の関係をK1,i x T1< K2,i x T2< K3,i x T3としている(実線で描画)。   Now, step 2 to step 4 are repeated i-1 times from the start, and the elapsed time Ts, i-1, Km is K1, i-1, K2, i-1, K3, i-1. The parameters Km for the i-1th iteration are K1, i-1 = h1, K2, i-1 = h2, K3, i-1 = h3, and K1, i-1 x T1 <K2, i -1 x T2 <K3, i-1 x T3 (drawn with solid line). Since K1, i-1 x T1 is the smallest in the number of repetitions (elapsed time), the i-th Ts is Ts, i = K1, i-1 x T1, and the element number j of the sensor cell to be activated next is 1 It becomes. Therefore, the parameter K1 of S1 is incremented, and the i-th K1 becomes K1, i = h1 + 1 (drawn with a broken line). Since the activation counts Km (m = 2, 3) of the other sensor cells are the same, K2, i = h2, K3, i = h3. In FIG. 3, the relationship between the elements of the set U for the i-th iteration is K1, i x T1 <K2, i x T2 <K3, i x T3 (drawn with a solid line).

繰り返しがi回目になると、K1,i x T1が最小のため、i+1回目のTsはTs,i+1 = K1,i x T1となり、次に起動すべきセンサセルの要素番号jは1となる。S1のパラメータK1をインクリメントしてi+1回目のK1はK1,i+1 = h1+2となる(破線で描画)。その他の各センサセルの起動回数Km(m = 2, 3)は同じであるため、K2,i+1 = h2、K3,i+1 = h3となる。繰り返しがi+1回目の集合Uの要素の関係を図3ではK1,i+2 x T2< K1,i+1 x T1< K3,i+1 x T3としている(実線で描画)。   At the i-th iteration, since K1, i x T1 is the minimum, the i + 1-th Ts is Ts, i + 1 = K1, i x T1, and the element number j of the sensor cell to be activated next is 1. When the parameter K1 of S1 is incremented, the (i + 1) th K1 becomes K1, i + 1 = h1 + 2 (drawn with a broken line). Since the activation counts Km (m = 2, 3) of the other sensor cells are the same, K2, i + 1 = h2, and K3, i + 1 = h3. In FIG. 3, the relationship between the elements of the set U at the i + 1th iteration is represented by K1, i + 2 x T2 <K1, i + 1 x T1 <K3, i + 1 x T3 (drawn with a solid line).

繰り返しがi+1回目になると、K2,i+1 x T2が最小のため、i+2回目のTsはTs,i+2 = K2,i+1 x T2となり、次に起動すべきセンサセルの要素番号jは2となる。S2のパラメータK2をインクリメントしてi+2回目のK2はK2,i+2 = h2+1となる(破線で描画)。その他の各センサセルの起動回数Km(m = 1, 3)は同じであるため、K1,i+2 = h1+2、K3,i+2 = h3となる。   When i + 1 is repeated, K2, i + 1 x T2 is the smallest, so i + 2 Ts is Ts, i + 2 = K2, i + 1 x T2, and the next sensor cell to be activated The element number j is 2. By incrementing the parameter K2 of S2, the i + 2th K2 becomes K2, i + 2 = h2 + 1 (drawn with a broken line). Since the activation counts Km (m = 1, 3) of the other sensor cells are the same, K1, i + 2 = h1 + 2, and K3, i + 2 = h3.

上記の動作を繰り返すことにより、各センサセルのサンプリング周期が最小のサンプリング周期の整数倍でなくても、次に起動すべき時間を設定できる。そのため、図4に示すように、一定でない時間間隔t,t,t,t,…で各センサセルが起動され、起動されたセンサセルからデータが取得されることになる。したがって、タイマ設定値が1つしかないタイマ11を使用する場合において、最小のサンプリング周期の整数倍でないサンプリング周期を要求されても、要求されたサンプリング周期で複数のセンシング対象のデータを取得可能なセンサ10を提供できる。 By repeating the above operation, the time to be activated next can be set even if the sampling period of each sensor cell is not an integral multiple of the minimum sampling period. Therefore, as shown in FIG. 4, each sensor cell is activated at non-constant time intervals t 1 , t 2 , t 3 , t 4 ,..., And data is acquired from the activated sensor cells. Therefore, when the timer 11 having only one timer setting value is used, even if a sampling period that is not an integral multiple of the minimum sampling period is requested, a plurality of sensing target data can be acquired at the requested sampling period. A sensor 10 can be provided.

以上のように、本実施の形態におけるセンサ10は、N個のセンサセル1,…,Nと、センサセルからデータを取得する毎に、N個のセンサセル1,…,Nの中から、所定の基準時刻(最初にセンサセルを起動した時刻)から次回のデータを取得するまでの時間Tsが最小であるセンサセルを探索し、探索されたセンサセルの時間Tsと基準時刻からの経過時間Tspとの差分時間Ts-Tspをタイマ設定値として選定するタイマ値選定部12と、差分時間Ts-Tsp経過後にトリガを出力するタイマ11と、タイマ11からトリガが入力されると、タイマ値選定部12により探索されたセンサセルを起動してデータを取得するとともに、経過時間Tspの値を時間Tsに更新するセンサ制御部13とを備える。これにより、タイマ11にタイマ設定値を一度に1つしか設定できない場合でも、要求されたサンプリング周期で複数のセンシング対象のデータを取得することが可能となる。   As described above, the sensor 10 according to the present embodiment has a predetermined reference from the N sensor cells 1,..., N each time data is acquired from the N sensor cells 1,. Search for the sensor cell having the minimum time Ts from the time (the time when the sensor cell is first activated) until the next data acquisition, and the difference time Ts between the time Ts of the searched sensor cell and the elapsed time Tsp from the reference time Timer value selection unit 12 that selects -Tsp as a timer set value, timer 11 that outputs a trigger after the difference time Ts-Tsp has elapsed, and when a trigger is input from timer 11, timer value selection unit 12 searches The sensor control unit 13 that activates the sensor cell to acquire data and updates the value of the elapsed time Tsp to the time Ts is provided. As a result, even when only one timer set value can be set in the timer 11 at a time, a plurality of sensing target data can be acquired at the requested sampling period.

(第2の実施の形態)
以下、第2の実施の形態を第1の実施の形態と異なる点を中心に説明する。
(Second Embodiment)
In the following, the second embodiment will be described focusing on differences from the first embodiment.

図3の説明では、各センサセル間のサンプリング周期の差が大きく、タイマ11以外のセンサ10の各部がスリープモードから復帰しデータ取得するとともに、次の起動時間となるタイマ設定値選定を行ったのち再びスリープモードに入るまでの時間が短いことが前提であった。タイマ11以外のセンサ10の各部とは、具体的には、センサ制御部13、タイマ値選定部12、センサセル1,…,Nである。各センサセル間のサンプリング周期の差が小さい場合は、タイマ11以外のセンサ10の各部がスリープモードから復帰してから再びスリープモードに入るまでの時間内に次の起動時間が入ることがある。この場合は、以下に説明するように、スリープモードに入らずに次の起動時間で起動すべきセンサセルのデータ取得を行う。   In the description of FIG. 3, the difference in the sampling cycle between the sensor cells is large, and after each part of the sensor 10 other than the timer 11 recovers from the sleep mode and acquires data, the timer set value that becomes the next activation time is selected. It was assumed that the time until entering sleep mode again was short. Specifically, each part of the sensor 10 other than the timer 11 includes a sensor control unit 13, a timer value selection unit 12, and sensor cells 1,. When the difference in the sampling period between the sensor cells is small, the next activation time may enter within the time from when each part of the sensor 10 other than the timer 11 returns from the sleep mode to the sleep mode again. In this case, as described below, the sensor cell data to be activated at the next activation time without entering the sleep mode is acquired.

図5に第2の実施の形態におけるセンサ10の処理フローを示す。ステップ2にS20が追加されるとともにステップ4にS40が追加されている。その他の点は図2と同様である。   FIG. 5 shows a processing flow of the sensor 10 in the second embodiment. S20 is added to step 2 and S40 is added to step 4. The other points are the same as in FIG.

第2の実施の形態では、タイマ11以外のセンサ10の各部がスリープモードから復帰してから再びスリープモードに入るまでの時間Tdを定義して処理を行う。すなわち、集合Uの要素でTsとの差がTd以内である要素が存在する場合は、その要素を準起動センサとし、その要素番号(センサセルID)をTsとの差Tdifと共にセンサ制御部13に通知するとともに、その要素のKmをインクリメントする(S20)。また、起動センサを起動してからTdif後に準起動センサであるセンサセルからデータを取得しメモリに格納する(S40)。   In the second embodiment, processing is performed by defining a time Td from when each part of the sensor 10 other than the timer 11 returns from the sleep mode to when the sensor 10 enters the sleep mode again. That is, when there is an element of the set U that has a difference from Ts within Td, the element is set as a quasi-activation sensor, and its element number (sensor cell ID) is set in the sensor control unit 13 together with the difference Tdif from Ts In addition, the Km of the element is incremented (S20). In addition, data is acquired from the sensor cell that is a semi-startup sensor after Tdif after starting the start-up sensor, and stored in the memory (S40).

以下、図6を用いて、第2の実施の形態におけるセンサ10の動作を各パラメータの時間変化とともに詳細に説明する。ここでも、センサセルの個数を3個、各センサセルのIDをS1、S2、S3、各センサセルのサンプリング周期をT1、T2、T3とする。   Hereinafter, the operation of the sensor 10 according to the second embodiment will be described in detail along with the time variation of each parameter, with reference to FIG. Here again, the number of sensor cells is 3, the ID of each sensor cell is S1, S2, S3, and the sampling period of each sensor cell is T1, T2, T3.

今、ステップ2からステップ4を起動からi-1回繰り返し、経過時間がTs,i-1、KmがK1,i-1、K2,i-1、K3,i-1となっている。また、繰り返しがi-1回目のパラメータKmはそれぞれK1,i-1=h1、K2,i-1=h2、K3,i-1=h3であり、K1,i-1 x T1< K2,i-1 x T2< K3,i-1 x T3としている(実線で描画)。この繰り返し回数(経過時間)ではK1,i-1 x T1が最小のため、i回目のTsはTs,i = K1,i-1 x T1となり、次に起動すべきセンサセルの要素番号jは1となる。したがって、S1のパラメータK1をインクリメントしてi回目のK1はK1,i = h1+1となる(破線で描画)。その他の各センサセルの起動回数Km(m = 2, 3)は同じであるため、K2,i = h2、K3,i = h3となる。図6では繰り返しがi回目の集合Uの要素の関係をK1,i x T1< K2,i x T2< K3,i x T3としている(実線で描画)。   Now, step 2 to step 4 are repeated i-1 times from the start, and the elapsed time Ts, i-1, Km is K1, i-1, K2, i-1, K3, i-1. The parameters Km for the i-1th iteration are K1, i-1 = h1, K2, i-1 = h2, K3, i-1 = h3, and K1, i-1 x T1 <K2, i -1 x T2 <K3, i-1 x T3 (drawn with solid line). Since K1, i-1 x T1 is the smallest in the number of repetitions (elapsed time), the i-th Ts is Ts, i = K1, i-1 x T1, and the element number j of the sensor cell to be activated next is 1 It becomes. Therefore, the parameter K1 of S1 is incremented, and the i-th K1 becomes K1, i = h1 + 1 (drawn with a broken line). Since the activation counts Km (m = 2, 3) of the other sensor cells are the same, K2, i = h2, K3, i = h3. In FIG. 6, the relationship between the elements of the set U that is repeated i-th is set as K1, i x T1 <K2, i x T2 <K3, i x T3 (drawn with a solid line).

繰り返しがi回目になると、K1,i x T1が最小のため、i+1回目のTsはTs,i+1 = K1,i x T1となり、次に起動すべきセンサセルの要素番号jは1となる。S1のパラメータK1をインクリメントしてi+1回目のK1はK1,i+1 = h1+2となる(破線で描画)。ここで、K1,i x T1とK2,i x T2の差がTd以下であるためS2は準起動センサとなる。S2のパラメータK2をインクリメントしてi+1回目のK2はK2,i+1 = h1+1となる(破線で描画)。その他の各センサセルの起動回数K3は同じであるためK3,i+1 = h3となる。   At the i-th iteration, since K1, i x T1 is the minimum, the i + 1-th Ts is Ts, i + 1 = K1, i x T1, and the element number j of the sensor cell to be activated next is 1. When the parameter K1 of S1 is incremented, the (i + 1) th K1 becomes K1, i + 1 = h1 + 2 (drawn with a broken line). Here, since the difference between K1, i x T1 and K2, i x T2 is equal to or less than Td, S2 is a semi-startup sensor. When the parameter K2 of S2 is incremented, the (i + 1) th K2 becomes K2, i + 1 = h1 + 1 (drawn with a broken line). Since the number of activations K3 of the other sensor cells is the same, K3, i + 1 = h3.

以上のように、本実施の形態におけるセンサ10は、タイマ11以外のセンサ10の各部がスリープモードから復帰してから再びスリープモードに入るまでの時間内に次の起動時間が入る場合はスリープモードに入らずに次の起動時間で起動すべきセンサセルからデータを取得する。具体的には、タイマ11以外のセンサ10の各部がスリープモードから復帰してから再びスリープモードに入るまでの時間Tdを定義し、時間Tsとの差Tdifが時間Td以内である要素が存在する場合はその要素を準起動センサとし、起動センサを起動してから時間Tsとの差Tdif後に準起動センサであるセンサセルからデータを取得する。これにより、再びスリープモードに入るまでの時間が長い場合は、スリープモードに入らずに効率よくセンシング対象のデータを取得することが可能である。   As described above, the sensor 10 according to the present embodiment is in the sleep mode when the next start-up time is within the time from when each part of the sensor 10 other than the timer 11 returns from the sleep mode to the sleep mode again. Data is acquired from the sensor cell to be activated at the next activation time without entering. Specifically, there is an element in which the time Td from when each part of the sensor 10 other than the timer 11 returns from the sleep mode to when the sensor 10 enters the sleep mode again is defined, and the difference Tdif from the time Ts is within the time Td. In this case, the element is used as a semi-startup sensor, and data is acquired from a sensor cell that is a semi-startup sensor after a difference Tdif from the time Ts after the start-up sensor is started. As a result, when it takes a long time to enter the sleep mode again, it is possible to efficiently acquire sensing target data without entering the sleep mode.

なお、本発明は、センサ10として実現することができるだけでなく、このようなセンサ10を搭載したセンサ端末やデータ収集システムとして実現することができる。また、このようなセンサ10が備える特徴的な処理部をステップとするセンシング制御方法として実現したり、それらのステップをコンピュータに実行させるプログラムとして実現したりすることも可能である。そして、そのようなプログラムは、CD−ROM等の記録媒体やインターネット等の伝送媒体を介して配信することができるのは言うまでもない。   The present invention can be realized not only as the sensor 10 but also as a sensor terminal or a data collection system equipped with such a sensor 10. Moreover, it is also possible to implement | achieve as a sensing control method which uses the characteristic process part with which such a sensor 10 is provided as a step, or a program which makes a computer perform those steps. Needless to say, such a program can be distributed via a recording medium such as a CD-ROM or a transmission medium such as the Internet.

1,…,N…N個のセンサセル
10…センサ
11…タイマ
12…タイマ値選定部
13…センサ制御部
Ts…基準時刻から次回のデータを取得するまでの時間(最小値)
Tsp…基準時刻からの経過時間
Ts-Tsp…時間Tsと基準時刻からの経過時間Tspとの差分時間
Td…再びスリープモードに入るまでの時間
Tdif…時間Tsとの差
DESCRIPTION OF SYMBOLS 1, ..., N ... N sensor cell 10 ... Sensor 11 ... Timer 12 ... Timer value selection part 13 ... Sensor control part
Ts ... Time from the reference time until the next data is acquired (minimum value)
Tsp: Elapsed time from the reference time
Ts-Tsp: Difference time between time Ts and elapsed time Tsp from the reference time
Td ... Time until sleep mode is entered again
Tdif ... Difference from time Ts

Claims (2)

複数のセンサセルと、
前記センサセルからデータを取得する毎に、複数の前記センサセルの中から、所定の基準時刻から次回のデータを取得するまでの時間Tsが最小である前記センサセルを探索し、探索された前記センサセルの時間Tsと前記基準時刻からの経過時間Tspとの差分時間Ts-Tspをタイマ設定値として選定するタイマ値選定部と、
前記差分時間Ts-Tsp経過後にトリガを出力するタイマと、
前記タイマから前記トリガが入力されると、前記タイマ値選定部により探索された前記センサセルを起動してデータを取得するとともに、前記経過時間Tspの値を前記時間Tsに更新するセンサ制御部と
を備え
前記タイマ以外の前記センサの各部がスリープモードから復帰してから再びスリープモードに入るまでの時間内に次の起動時間が入る場合はスリープモードに入らずに次の起動時間で起動すべきセンサセルからデータを取得する
ことを特徴とするセンサ。
A plurality of sensor cells;
Each time data is acquired from the sensor cell, the sensor cell having a minimum time Ts from the predetermined reference time until the next data is acquired is searched from among the plurality of sensor cells, and the time of the searched sensor cell A timer value selection unit that selects a difference time Ts-Tsp between Ts and an elapsed time Tsp from the reference time as a timer setting value;
A timer that outputs a trigger after the difference time Ts-Tsp has elapsed;
When the trigger is input from the timer, the sensor cell searched by the timer value selection unit is activated to acquire data, and the sensor control unit updates the value of the elapsed time Tsp to the time Ts. Prepared ,
When the next start-up time is entered within the time until each part of the sensor other than the timer returns from the sleep mode and enters the sleep mode again, the sensor cell to be started at the next start-up time without entering the sleep mode. Get data
A sensor characterized by that.
前記タイマ以外の前記センサの各部がスリープモードから復帰してから再びスリープモードに入るまでの時間Tdを定義し、前記時間Tsとの差Tdifが前記時間Td以内である要素が存在する場合はその要素を準起動センサとし、起動センサを起動してから前記時間Tsとの差Tdif後に前記準起動センサであるセンサセルからデータを取得することを特徴とする請求項に記載のセンサ。 Defines the time Td from when each part of the sensor other than the timer returns from the sleep mode until it enters the sleep mode again, and if there is an element whose difference Tdif from the time Ts is within the time Td The sensor according to claim 1 , wherein the element is a quasi-activation sensor, and data is acquired from a sensor cell that is the quasi-activation sensor after a difference Tdif from the time Ts after the activation sensor is activated.
JP2013121450A 2013-06-10 2013-06-10 Sensor Expired - Fee Related JP6077942B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013121450A JP6077942B2 (en) 2013-06-10 2013-06-10 Sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013121450A JP6077942B2 (en) 2013-06-10 2013-06-10 Sensor

Publications (2)

Publication Number Publication Date
JP2014238351A JP2014238351A (en) 2014-12-18
JP6077942B2 true JP6077942B2 (en) 2017-02-08

Family

ID=52135606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013121450A Expired - Fee Related JP6077942B2 (en) 2013-06-10 2013-06-10 Sensor

Country Status (1)

Country Link
JP (1) JP6077942B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6509616B2 (en) * 2015-04-10 2019-05-08 株式会社東芝 Sensor data acquisition system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2553689B2 (en) * 1989-01-30 1996-11-13 日東工器株式会社 Multiple point simultaneous measurement system
JP2001222341A (en) * 2000-02-07 2001-08-17 Matsushita Electric Ind Co Ltd Device and method for managing timer

Also Published As

Publication number Publication date
JP2014238351A (en) 2014-12-18

Similar Documents

Publication Publication Date Title
WO2017126282A1 (en) Information processing system, device registration method, information processing device, communication terminal, and control method and control program therefor
JP6000495B2 (en) Attack detection device, attack detection method, and attack detection program
JP2019527413A5 (en)
US20150032641A1 (en) System and method for obtaining indication information
KR20180054413A (en) Methd for optimizing crop production efficency and apparatus for the same
CN110472154A (en) A kind of resource supplying method, apparatus, electronic equipment and readable storage medium storing program for executing
JP2014534511A5 (en)
JP2014045242A (en) Virtual sensor creating device, virtual sensor creating method and program
CN109065046A (en) Method, apparatus, electronic equipment and the computer readable storage medium that voice wakes up
CN108154258B (en) Air source heat pump load prediction method, device, storage medium and processor
CN106294219A (en) A kind of equipment identification, data processing method, Apparatus and system
JP6077942B2 (en) Sensor
CN101533083A (en) System for parallel capture of GPS signals and method
Paci et al. 0, 1, 2, many—A classroom occupancy monitoring system for smart public buildings
CN103051613A (en) Message detection scanning method, message detection scanning and network safety equipment
US10580166B2 (en) Image retrieval device and method, photograph time estimation device and method, repetitive structure extraction device and method, and program
RU2014151707A (en) METHOD FOR DOWNLOADING DATA TO THE CENTRAL MODULE IN THE SYSTEM OF SEISMIC DATA RECEIPT
Laxman Discovering frequent episodes: fast algorithms, connections with HMMs and generalizations
US20150154279A1 (en) Apparatus and method for building relation model based on resource management architecture
JP4514154B2 (en) Similar situation search system and similar situation search method
JP6005323B2 (en) Time-series data processing apparatus and time-series data processing program
CN113963203B (en) Intelligent mouse trapping monitoring method, system, device and medium
KR101823848B1 (en) Time series data processing device
CN118971383B (en) Power distribution cabinet state real-time monitoring and early warning method and device
JP4648204B2 (en) Sensor terminal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150619

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160510

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160705

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170113

R150 Certificate of patent or registration of utility model

Ref document number: 6077942

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees