JP2016008885A - Data storage device - Google Patents

Data storage device Download PDF

Info

Publication number
JP2016008885A
JP2016008885A JP2014129508A JP2014129508A JP2016008885A JP 2016008885 A JP2016008885 A JP 2016008885A JP 2014129508 A JP2014129508 A JP 2014129508A JP 2014129508 A JP2014129508 A JP 2014129508A JP 2016008885 A JP2016008885 A JP 2016008885A
Authority
JP
Japan
Prior art keywords
value
data
storage device
measured
measurement
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
Application number
JP2014129508A
Other languages
Japanese (ja)
Inventor
半澤 淳
Atsushi Hanzawa
淳 半澤
佳典 本
Yoshinori Moto
佳典 本
和真 内藤
Kazuma Naito
和真 内藤
拓人 依田
Takuto Yoda
拓人 依田
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2014129508A priority Critical patent/JP2016008885A/en
Publication of JP2016008885A publication Critical patent/JP2016008885A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Recording Measured Values (AREA)

Abstract

PROBLEM TO BE SOLVED: To store only data having useful information in a storage device.SOLUTION: A determination part (221) specifies a measured value which is a maximum value or a maximal value in measured values from the point of time when a measured value (X) becomes larger than a first threshold until the point of time when the measured value becomes smaller than the first threshold thereafter, and a storage part (222) stores only the specified measured value in a nonvolatile memory (40).

Description

本発明は、測定値のデータを記憶装置に保存するデータ保存装置に関する。   The present invention relates to a data storage device that stores measurement value data in a storage device.

従来、温度、湿度、電圧、電流など、時間とともに変化する時系列の測定値を取得して、取得した測定値のログデータをHDD(Hard Disk Drive)等の記憶装置に保存するデータ保存装置が知られている。   Conventionally, a data storage device that acquires time-series measured values that change with time, such as temperature, humidity, voltage, and current, and stores log data of the acquired measured values in a storage device such as an HDD (Hard Disk Drive). Are known.

例えば、特許文献1には、食品ケース内の温度の検出値のデータを温度履歴メモリに記録する温度記録装置(データ保存装置)が記載されている。   For example, Patent Document 1 describes a temperature recording device (data storage device) that records data of a detected value of a temperature in a food case in a temperature history memory.

特許文献1に記載されているように、データ保存装置は、他の装置等の温度の測定値を取得して、その測定値のログデータを記憶装置に保存する。ユーザは、上記他の装置が故障した場合などに、記憶装置に保存された上記ログデータを参照することによって、他の装置が故障した原因を調査することができる。   As described in Patent Document 1, the data storage device acquires temperature measurement values of other devices and stores log data of the measurement values in a storage device. The user can investigate the cause of the failure of the other device by referring to the log data stored in the storage device when the other device fails.

ところが、データ保存装置は、ログデータを保存するための大容量な記憶装置を備えていない場合がある。例えば、他の装置に組み込まれて使用される組み込み装置(データ保存装置)は、HDD等の大容量な記憶装置を備えておらず、設定値などのデータを保存するために、EEPROM(登録商標)またはフラッシュメモリ等の安価で小容量な不揮発メモリのみを備えている。   However, the data storage device may not include a large-capacity storage device for storing log data. For example, an embedded device (data storage device) used by being incorporated in another device does not include a large-capacity storage device such as an HDD, and is an EEPROM (registered trademark) for storing data such as setting values. ) Or a low-cost and small-capacity nonvolatile memory such as a flash memory.

特開2001−50820号公報(2001年2月23日公開)JP 2001-50820 A (published February 23, 2001)

データ保存装置が大容量の記憶装置を備えていない場合、設定値などのデータを保存するための不揮発メモリに、上記ログデータを保存することが考えられる。   When the data storage device does not include a large-capacity storage device, it is conceivable to store the log data in a nonvolatile memory for storing data such as setting values.

しかしながら、前述したように、EEPROMまたはフラッシュメモリ等の不揮発メモリは小容量である。また、不揮発メモリはデータの書き換え回数に上限がある。そのため、データ保存装置が備えた不揮発メモリに上記ログデータを保存することには、以下のような問題がある。   However, as described above, a nonvolatile memory such as an EEPROM or a flash memory has a small capacity. Further, the nonvolatile memory has an upper limit in the number of data rewrites. Therefore, there are the following problems in storing the log data in the nonvolatile memory provided in the data storage device.

第一に、不揮発メモリは、長期間にわたって測定された全ての測定値のログデータを保存する用途には不向きである。なぜならば、長期間にわたって測定された測定値のログデータのデータ量は膨大になる。そのため、小容量な不揮発メモリに、そのように膨大なログデータを保存することはできない。特に、ログデータが、測定値だけでなく、測定値が測定された日時を示す情報も含む場合、なおさら、ログデータのデータ量は膨大になるので、小容量な不揮発メモリにログデータを保存することができない。ここで、長期間にわたって測定された測定値のログデータを小容量な不揮発メモリに保存するためには、ログデータのデータ量が大きくなり過ぎないように、測定値を測定する時間間隔を長くすることによって、不揮発メモリに保存する測定値の数を削減すればよい。しかし、測定値を測定する時間間隔が長くなれば、有用な情報がログデータに残らない可能性が高くなる。ここで、「有用な情報」とは、測定値の測定対象である装置の故障の原因をユーザ(エンドユーザに限らず、メーカのオペレータ等を含む。以下の「ユーザ」も同様。)が調査する際などに役立つ情報のことである。   First, the non-volatile memory is not suitable for use in storing log data of all measured values measured over a long period of time. This is because the amount of log data of measured values measured over a long period of time becomes enormous. Therefore, such a large amount of log data cannot be stored in a small-capacity nonvolatile memory. In particular, if the log data includes not only measured values but also information indicating the date and time when the measured values were measured, the amount of log data becomes enormous, so log data is stored in a small-capacity nonvolatile memory. I can't. Here, in order to save the log data of the measured values measured over a long period of time in a small-capacity nonvolatile memory, the time interval for measuring the measured values is increased so that the amount of log data does not become too large. Thus, the number of measurement values stored in the nonvolatile memory may be reduced. However, if the time interval for measuring the measurement value becomes long, there is a high possibility that useful information does not remain in the log data. Here, “useful information” means that the user (including not only the end user but also the operator of the manufacturer. The same applies to the following “user”) is the cause of the failure of the device whose measurement value is to be measured. It is information that is useful when doing.

第二に、不揮発メモリは、高頻度で測定した測定値のデータを保存する用途には不向きである。なぜならば、高頻度で測定した測定値のデータを保存することは、不揮発メモリに保存されたログデータを高頻度で書き換えることを意味する。しかし、不揮発メモリに保存されたログデータを高頻度で書き換えた場合、不揮発メモリの寿命に悪影響が生じる。特に、不揮発メモリに保存されたログデータが書き換えられた回数が、不揮発メモリの書き換え回数の上限に近付くほど、不揮発メモリが故障する確率は高くなり、不揮発メモリの寿命は短くなる。   Secondly, the non-volatile memory is not suitable for use in storing data of measurement values measured frequently. This is because storing data of measured values measured with high frequency means rewriting log data stored in the nonvolatile memory with high frequency. However, when the log data stored in the nonvolatile memory is rewritten frequently, the lifetime of the nonvolatile memory is adversely affected. In particular, as the number of times the log data stored in the nonvolatile memory is rewritten approaches the upper limit of the number of times the nonvolatile memory is rewritten, the probability that the nonvolatile memory will fail increases and the lifetime of the nonvolatile memory decreases.

本発明は、上記に鑑みてなされたものであり、その目的は、有用な情報を有するデータのみを記憶装置に保存するデータ保存装置を提供することにある。   The present invention has been made in view of the above, and an object of the present invention is to provide a data storage device that stores only data having useful information in a storage device.

上記の課題を解決するために、本発明の一態様に係るデータ保存装置は、時系列の測定値のデータのうち、上記測定値が第1の閾値以上となった時点から、上記測定値が次に上記第1の閾値よりも小さくなる時点までの測定値のデータの中で、該測定値が最大値でありかつ極大値であるという条件を満たす測定値のデータを特定する特定手段と、上記特定手段が特定した測定値のデータを記憶装置に保存する保存手段と、を備えている。   In order to solve the above-described problem, the data storage device according to one aspect of the present invention includes a time-series measurement value data in which the measurement value is determined from the time when the measurement value is equal to or greater than a first threshold value. Next, in the measurement value data up to a time point that becomes smaller than the first threshold value, the specifying means for specifying the measurement value data that satisfies the condition that the measurement value is the maximum value and the maximum value, Storage means for storing in the storage device the measured value data specified by the specifying means.

また、上記の課題を解決するために、本発明の他の一態様に係るデータ保存装置は、時系列の測定値のデータのうち、上記測定値が第2の閾値以下となった時点から、上記測定値が次に上記第2の閾値よりも大きくなる時点までの測定値のデータの中で、該測定値が最小値でありかつ極小値であるという条件を満たす測定値のデータを特定する特定手段と、上記特定手段が特定した測定値のデータを記憶装置に保存する保存手段と、を備えている。   In order to solve the above-described problem, the data storage device according to another aspect of the present invention includes a time-series measurement value data from a time point when the measurement value is equal to or less than a second threshold value. Among the measured value data up to the point when the measured value is next larger than the second threshold value, the measured value data satisfying the condition that the measured value is the minimum value and the minimum value is specified. An identification unit; and a storage unit that stores data of the measurement value identified by the identification unit in a storage device.

本発明の一態様によれば、有用な情報を有するデータのみを記憶装置に保存することができるという効果を奏する。   According to one embodiment of the present invention, there is an effect that only data having useful information can be stored in the storage device.

本発明の実施形態1に係る組み込み装置の構成を示すブロック図である。It is a block diagram which shows the structure of the embedded apparatus which concerns on Embodiment 1 of this invention. 本発明の実施形態1に係る組み込み装置の動作の流れを示すフローチャートである。It is a flowchart which shows the flow of operation | movement of the embedded apparatus which concerns on Embodiment 1 of this invention. 本発明の実施形態1に係る組み込み装置が備えた不揮発メモリに保存されるログデータの一例を示す図である。It is a figure which shows an example of the log data preserve | saved at the non-volatile memory with which the embedded apparatus which concerns on Embodiment 1 of this invention was provided. (a)は、本発明の実施形態1に係る組み込み装置が備えたデータ前処理部によって計算された温度および湿度の測定値の一例を示すグラフであり、(b)(c)は、(a)に破線Aおよび破線Bで示す各時点において、本発明の実施形態1に係る組み込み装置が備えた保存部によって保存されるログデータを示す図である。(A) is a graph which shows an example of the measured value of the temperature and humidity calculated by the data pre-processing part with which the built-in apparatus which concerns on Embodiment 1 of this invention was equipped, (b) (c) is (a) FIG. 4 is a diagram illustrating log data stored by the storage unit included in the embedded device according to the first embodiment of the present invention at each time point indicated by a broken line A and a broken line B in FIG. 本発明の実施形態1に係る組み込み装置が備えた不揮発メモリに保存されるログデータが表示された画面の一例である。It is an example of the screen where the log data preserve | saved at the non-volatile memory with which the embedded apparatus which concerns on Embodiment 1 of this invention was provided was displayed. 本発明の実施形態1に係る組み込み装置が備えた制御部によって実行されるログデータ保存処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the log data preservation | save process performed by the control part with which the built-in apparatus which concerns on Embodiment 1 of this invention was equipped. 本発明の実施形態1に係る組み込み装置が備えたデータ前処理部によって計算された温度の測定値の一例を示すグラフであり、上記組み込み装置が備えた制御部によって実行されるログデータ保存処理における上記測定値の処理を説明する図である。It is a graph which shows an example of the measured value of the temperature calculated by the data pre-processing part with which the built-in apparatus which concerns on Embodiment 1 of this invention was equipped, In the log data storage process performed by the control part with which the said built-in apparatus was equipped. It is a figure explaining the process of the said measured value. 本発明の実施形態1に係る組み込み装置が備えたデータ前処理部によって計算される温度の測定値の他の例を示すグラフであり、上記組み込み装置が備えた制御部によって実行されるログデータ保存処理における上記測定値の処理を説明する図である。It is a graph which shows the other example of the measured value of the temperature calculated by the data pre-processing part with which the embedded apparatus which concerns on Embodiment 1 of this invention was equipped, The log data preservation | save performed by the control part with which the said embedded apparatus was equipped It is a figure explaining the process of the said measured value in a process. 本発明の実施形態1に係る組み込み装置が備えたデータ前処理部によって計算される湿度の測定値の一例を示すグラフであり、上記組み込み装置が備えた制御部によって実行されるログデータ保存処理における上記測定値の処理を説明する図である。It is a graph which shows an example of the measured value of the humidity calculated by the data pre-processing part with which the embedded apparatus which concerns on Embodiment 1 of this invention was equipped, In the log data preservation | save process performed by the control part with which the said embedded apparatus was equipped It is a figure explaining the process of the said measured value.

〔実施形態1〕
(組み込み装置1の概要)
図1を用いて、本実施形態に係る組み込み装置1(データ保存装置)の概要を説明する。図1は、組み込み装置1の構成を示すブロック図である。組み込み装置1は、他の装置(以下では、測定対象装置と呼ぶ)に組み込まれて使用される。組み込み装置1には、組み込み装置1の温度および湿度を検出するデータ取得源2が接続されている。データ取得源2は、具体的には、温度および湿度を検出するセンサである。データ取得源2は、測定対象装置の温度および湿度を検出して、その検出結果である検出値を組み込み装置1に送信する。なお、データ取得源2は、組み込み装置1の一部であってもよい。また、本発明のデータ保存装置は、測定対象装置に組み込まれて使用される組み込み装置1に限定されない。本発明のデータ保存装置には、測定対象装置の外部に配置される装置も含まれる。さらに、本実施形態では、測定値Xが温度または湿度である場合の例を説明するが、測定値Xは他のパラメータ(例えば、電圧、電流)の測定値であってもよい。
Embodiment 1
(Outline of embedded device 1)
An outline of the embedded device 1 (data storage device) according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram showing the configuration of the embedded device 1. The embedded device 1 is used by being incorporated in another device (hereinafter referred to as a measurement target device). A data acquisition source 2 that detects the temperature and humidity of the embedded device 1 is connected to the embedded device 1. The data acquisition source 2 is specifically a sensor that detects temperature and humidity. The data acquisition source 2 detects the temperature and humidity of the measurement target device, and transmits a detection value that is the detection result to the embedded device 1. The data acquisition source 2 may be a part of the embedded device 1. In addition, the data storage device of the present invention is not limited to the embedded device 1 that is used by being incorporated in the measurement target device. The data storage device of the present invention includes a device arranged outside the measurement target device. Furthermore, although this embodiment demonstrates the example in case the measured value X is temperature or humidity, the measured value X may be a measured value of another parameter (for example, voltage, current).

図1に示すように、組み込み装置1は、データ受信部10、制御部20、一時記憶部30、および不揮発メモリ40(記憶装置)を備えている。   As illustrated in FIG. 1, the embedded device 1 includes a data receiving unit 10, a control unit 20, a temporary storage unit 30, and a nonvolatile memory 40 (storage device).

データ受信部10は、定期的に、新たな検出値の送信要求がないかをデータ取得源2に問い合わせる(ポーリング)ことによって、データ取得源2から、温度および湿度の各検出値を受信する。そして、受信した検出値を制御部20に出力する。   The data receiving unit 10 periodically receives the detection values of temperature and humidity from the data acquisition source 2 by inquiring of the data acquisition source 2 whether there is a request for transmission of a new detection value (polling). Then, the received detection value is output to the control unit 20.

制御部20は、データ受信部10から、温度および湿度の各検出値を取得して、取得した検出値から測定値X(後述)を計算する。制御部20は、計算した測定値Xを、ログデータLd(図3参照)の一部として、不揮発メモリ40に保存する。なお、制御部20の詳細については後述する。   The control unit 20 acquires each detected value of temperature and humidity from the data receiving unit 10, and calculates a measured value X (described later) from the acquired detected value. The control unit 20 stores the calculated measurement value X in the nonvolatile memory 40 as a part of the log data Ld (see FIG. 3). Details of the control unit 20 will be described later.

一時記憶部30は、いわゆるRAM(Random Access Memory)である。後述するログデータ保存処理において、一時記憶部30には、変数Xmax、変数Xmin、および変数Xn−1が保存される。不揮発メモリ40は、EEPROMまたはフラッシュメモリ等の、不揮発性を有する記憶装置である。   The temporary storage unit 30 is a so-called RAM (Random Access Memory). In the log data storage process described later, the temporary storage unit 30 stores a variable Xmax, a variable Xmin, and a variable Xn-1. The nonvolatile memory 40 is a non-volatile storage device such as an EEPROM or a flash memory.

図2を用いて、組み込み装置1の動作の流れを説明する。図2は、データ取得源2が温度および湿度を検出してから、制御部20がログデータLdを不揮発メモリ40に保存するまでの流れを示すフローチャートである。   The operation flow of the embedded device 1 will be described with reference to FIG. FIG. 2 is a flowchart showing a flow from when the data acquisition source 2 detects temperature and humidity to when the control unit 20 stores the log data Ld in the nonvolatile memory 40.

図2に示すように、データ取得源2は、所定時間dTint[sec]ごとに、測定対象装置の温度および湿度をそれぞれ検出する(S1;温度・湿度検出処理)。そして、データ取得源2は、温度および湿度の各検出値を、組み込み装置1のデータ受信部10に送信する。データ受信部10は、受信した検出値を制御部20に送信する。   As shown in FIG. 2, the data acquisition source 2 detects the temperature and humidity of the measurement target device every predetermined time dTint [sec] (S1; temperature / humidity detection processing). Then, the data acquisition source 2 transmits the detected values of temperature and humidity to the data receiving unit 10 of the embedded device 1. The data receiving unit 10 transmits the received detection value to the control unit 20.

データ受信部10から検出値を取得した制御部20は、データ取得源2によるN(Nは任意の数)回の検出によって得られたN個の検出値の移動平均(測定値Xと呼ぶ)を計算する。これによって、検出値から、ノイズが除去(エラー訂正)され、また、検出値が平滑化される(S2;エラー訂正・検出値平滑化処理)。あるいは、制御部20は、N個の検出値の移動平均を計算せず、他の方法で、検出値の平滑化を行ってもよい。また、制御部20は検出値の平滑化を行わなくてもよい。後者の構成では、以下の説明における測定値Xは検出値に等しい。   The control unit 20 that has acquired the detection value from the data receiving unit 10 is a moving average (referred to as measurement value X) of N detection values obtained by N (N is an arbitrary number) detections by the data acquisition source 2. Calculate As a result, noise is removed from the detected value (error correction), and the detected value is smoothed (S2; error correction / detected value smoothing process). Alternatively, the control unit 20 may perform the smoothing of the detection values by another method without calculating the moving average of the N detection values. Moreover, the control part 20 does not need to smooth | blunt a detected value. In the latter configuration, the measured value X in the following description is equal to the detected value.

その後、制御部20は、計算した測定値Xを、その測定値Xが測定された日時(例えば、測定値Xを計算するために使用されたN個の検出値のうちのいずれかの検出値(例えば、最後に検出された検出値)が検出された日時)に関連付けて、ログデータLdの一部として、不揮発メモリ40に保存する(S3;ログデータ保存処理)。このとき、制御部20は、全ての測定値Xではなく、有用な情報を含む測定値Xのみを、不揮発メモリ40に保存する。   Thereafter, the control unit 20 sets the calculated measurement value X to the date and time when the measurement value X was measured (for example, one of the N detection values used to calculate the measurement value X). It is stored in the nonvolatile memory 40 as a part of the log data Ld in association with (for example, the date and time when the last detected value was detected) (S3; log data storage process). At this time, the control unit 20 stores not only all the measurement values X but only the measurement values X including useful information in the nonvolatile memory 40.

ここで、「有用な情報」とは、測定対象装置の故障の原因をユーザが調査する際などに役立つ情報、または、測定対象装置の故障に相関がある情報のことである。具体的には、有用な情報を含む測定値Xには、測定対象装置の最高温度、最低温度、および最高湿度が含まれる。なぜならば、測定対象装置は、どのような温度範囲および湿度範囲を有する環境で使用されるかを想定して設計されている。そのため、測定対象装置の最高温度、最低温度、および最高湿度が上記温度範囲または上記湿度範囲に含まれないことは、測定対象装置に異常が発生する原因となるからである。ただし、有用な情報を含む測定値Xは、最高温度、最低温度、および最高湿度に限定されない。以下では、不揮発メモリ40に保存されている最高温度のデータおよび最高湿度のデータを、それぞれ、温度の保存最大値および湿度の保存最大値と呼ぶ。また、不揮発メモリ40に保存されている最低温度のデータを、温度の保存最小値または単に保存最小値と呼ぶ。   Here, “useful information” is information that is useful when the user investigates the cause of the failure of the measurement target device, or information that is correlated with the failure of the measurement target device. Specifically, the measurement value X including useful information includes the maximum temperature, the minimum temperature, and the maximum humidity of the measurement target device. This is because the measurement target device is designed on the assumption of what temperature range and humidity range it will be used in. For this reason, the fact that the maximum temperature, the minimum temperature, and the maximum humidity of the measurement target device are not included in the temperature range or the humidity range is a cause of an abnormality in the measurement target device. However, the measured value X including useful information is not limited to the maximum temperature, the minimum temperature, and the maximum humidity. Hereinafter, the maximum temperature data and the maximum humidity data stored in the nonvolatile memory 40 are referred to as a maximum temperature storage value and a maximum humidity storage value, respectively. The minimum temperature data stored in the nonvolatile memory 40 is referred to as a temperature storage minimum value or simply a storage minimum value.

図3は、不揮発メモリ40に保存されるログデータLdの一例を示す図である。図3に示すログデータLdには、最高温度を示す情報、最低温度を示す情報、および最高湿度を示す情報が含まれている。ログデータLdでは、保存最大値(保存最小値)を示すデータと、その保存最大値(保存最小値)が測定された時点に測定された他の測定値Xと、その保存最大値(保存最小値)が測定された日時を示す情報とが関連付けられている。例えば、最高温度であれば、最高温度の保存最大値を示すデータと、それが測定された日時(最高温度記録日時)を示すデータと、それが測定された日時に測定された湿度を示すデータとが関連付けられている。このように互いに関連付けられた情報を、以下では、保存最大値(保存最小値)に関する情報と呼ぶ。なお、ログデータLdには、さらに、測定対象装置にエラースタンバイ(測定対象装置に異常が発生したことを原因として測定対象装置がスタンバイ状態に移行すること)が発生した時点における温度および湿度の測定値Xを示す情報も含まれていてもよい。   FIG. 3 is a diagram illustrating an example of log data Ld stored in the nonvolatile memory 40. The log data Ld shown in FIG. 3 includes information indicating the maximum temperature, information indicating the minimum temperature, and information indicating the maximum humidity. In the log data Ld, data indicating a storage maximum value (storage minimum value), another measurement value X measured when the storage maximum value (storage minimum value) is measured, and the storage maximum value (storage minimum). Value) is associated with information indicating the date and time when the value was measured. For example, if it is the highest temperature, data indicating the maximum storage value of the highest temperature, data indicating the date and time when it was measured (maximum temperature recording date and time), and data indicating the humidity measured at the date and time when it was measured And are associated. Information associated with each other in this way is hereinafter referred to as information related to a maximum storage value (minimum storage value). The log data Ld further includes temperature and humidity measurements at the time when an error standby occurs in the measurement target device (the measurement target device shifts to a standby state due to the occurrence of an abnormality in the measurement target device). Information indicating the value X may also be included.

(制御部20の詳細)
図1を用いて、前述した制御部20の詳細を説明する。図1に示すように、制御部20は、データ前処理部21(データ取得手段)およびデータ管理部22を含んでいる。
(Details of the control unit 20)
Details of the control unit 20 will be described with reference to FIG. As shown in FIG. 1, the control unit 20 includes a data preprocessing unit 21 (data acquisition unit) and a data management unit 22.

データ前処理部21は、上述したエラー訂正・検出値平滑化処理(図2のS2参照)を実行する。すなわち、データ前処理部21は、データ取得源2による連続するN回の検出によって得られたN個の検出値の移動平均を計算する。データ前処理部21は、計算した移動平均を、測定値Xとして、データ管理部22に出力する。   The data preprocessing unit 21 executes the error correction / detection value smoothing process (see S2 in FIG. 2). That is, the data preprocessing unit 21 calculates a moving average of N detection values obtained by N consecutive detections by the data acquisition source 2. The data preprocessing unit 21 outputs the calculated moving average as the measurement value X to the data management unit 22.

データ管理部22は、上述したログデータ保存処理(図2のS3参照)を実行する。すなわち、データ管理部22は、データ前処理部21から入力された測定値Xのうち、所定のログデータ保存条件を満たす測定値Xに関する情報を、ログデータLdの一部として、不揮発メモリ40に保存する。なお、ログデータ保存処理の詳細については後述する。   The data management unit 22 executes the above-described log data storage process (see S3 in FIG. 2). That is, the data management unit 22 stores, in the nonvolatile memory 40, information regarding the measurement value X that satisfies a predetermined log data storage condition among the measurement values X input from the data preprocessing unit 21 as a part of the log data Ld. save. Details of the log data storage process will be described later.

図1に示すように、データ管理部22は、判定部221(特定手段)および保存部222(保存手段)を含んでいる。判定部221は、閾値判定部221a、極大極小判定部221b、および最大最小判定部221cで構成されている。判定部221は、データ前処理部21から入力された測定値X(温度および湿度)が以下の第1のログデータ保存条件1〜3を満たすか否かを判定する。
条件1.測定値Xは第1の閾値よりも大きい。
条件2.測定値Xは極大値である。
条件3.測定値Xは最大値である。
As shown in FIG. 1, the data management unit 22 includes a determination unit 221 (specification unit) and a storage unit 222 (storage unit). The determination unit 221 includes a threshold determination unit 221a, a maximum / minimum determination unit 221b, and a maximum / minimum determination unit 221c. The determination unit 221 determines whether or not the measurement value X (temperature and humidity) input from the data preprocessing unit 21 satisfies the following first log data storage conditions 1 to 3.
Condition 1. The measured value X is larger than the first threshold value.
Condition 2. The measured value X is a maximum value.
Condition 3. The measured value X is the maximum value.

閾値判定部221aは、第1のログデータ保存条件1に関する判定を行う。極大極小判定部221bは、第1のログデータ保存条件2に関する判定を行う。また、最大最小判定部221cは、第1のログデータ保存条件3に関する判定を行う。   The threshold determination unit 221a performs a determination regarding the first log data storage condition 1. The maximum / minimum determination unit 221b performs determination regarding the first log data storage condition 2. In addition, the maximum / minimum determination unit 221c performs determination regarding the first log data storage condition 3.

ここで、上述した第1のログデータ保存条件3に関して、判定部221は、測定値Xが最後に第1の閾値を超えた後に測定された測定値Xの中で、着目している測定値Xが最大値であるか否かを判定する。また、最後に第1の閾値を超えた前の測定値Xは、第1の閾値より大きい(すなわち第1のログデータ保存条件1を満たす)場合であっても、第1のログデータ保存条件3に関する判定において、最後に第1の閾値を超えた後の測定値Xと大小関係を比較するための対象として用いられない。   Here, with respect to the first log data storage condition 3 described above, the determination unit 221 measures the measurement value of interest among the measurement values X measured after the measurement value X has finally exceeded the first threshold value. It is determined whether X is the maximum value. In addition, even if the measurement value X before the last exceeding the first threshold is larger than the first threshold (that is, the first log data storage condition 1 is satisfied), the first log data storage condition 3 is not used as a target for comparing the magnitude relationship with the measured value X after the first threshold value is finally exceeded.

また、判定部221は、データ前処理部21から入力された測定値X(温度)が以下の3つの条件(第2のログデータ保存条件)を満たすか否かをさらに判定する。
条件A.測定値Xは第2の閾値よりも小さい。
条件B.測定値Xは極小値である。
条件C.測定値Xは最小値である。
The determination unit 221 further determines whether or not the measurement value X (temperature) input from the data preprocessing unit 21 satisfies the following three conditions (second log data storage conditions).
Condition A. The measured value X is smaller than the second threshold value.
Condition B. The measured value X is a local minimum value.
Condition C.I. The measured value X is the minimum value.

閾値判定部221aは、第2のログデータ保存条件Aに関する判定を行う。極大極小判定部221bは、第2のログデータ保存条件Bに関する判定を行う。また、最大最小判定部221cは、第2のログデータ保存条件Cに関する判定を行う。   The threshold determination unit 221a performs determination regarding the second log data storage condition A. The maximum / minimum determination unit 221b performs determination regarding the second log data storage condition B. In addition, the maximum / minimum determination unit 221c performs determination regarding the second log data storage condition C.

ここで、上述した第2のログデータ保存条件Cに関して、判定部221は、最後に第2の閾値を下回った後に測定された測定値Xの中で、着目している測定値Xが最小値であるか否かを判定する。また、最後に第2の閾値を下回った前の測定値Xは、第2の閾値より小さい(すなわち第2のログデータ保存条件Aを満たす)場合であっても、第2のログデータ保存条件Cに関する判定において、最後に第2の閾値を下回った後の測定値Xと大小関係を比較するための対象として用いられない。   Here, regarding the second log data storage condition C described above, the determination unit 221 determines that the measurement value X of interest is the minimum value among the measurement values X measured after the second threshold value is finally below the second threshold value. It is determined whether or not. In addition, even if the measurement value X before finally falling below the second threshold is smaller than the second threshold (that is, satisfying the second log data storage condition A), the second log data storage condition In the determination regarding C, it is not used as an object for comparing the magnitude relationship with the measured value X after finally falling below the second threshold.

判定部221は、第1のログデータ保存条件1〜3に基づく判定の結果(第1の判定結果)、および、第2のログデータ保存条件A〜Cに基づく判定の結果(第2の判定結果)を、保存部222に出力する。   The determination unit 221 includes a determination result based on the first log data storage conditions 1 to 3 (first determination result) and a determination result based on the second log data storage conditions A to C (second determination). Result) is output to the storage unit 222.

保存部222は、測定値Xが第1のログデータ保存条件1〜3を満たしていると判定部221が判定した場合、不揮発メモリ40に保存されたログデータLdに含まれる保存最大値に関する情報を、測定値Xに関する情報で書き換える。換言すれば、測定値Xが第1のログデータ保存条件1〜3を満たしている場合、その測定値Xは、新たな保存最大値として、不揮発メモリ40に保存される。   When the determination unit 221 determines that the measurement value X satisfies the first log data storage conditions 1 to 3, the storage unit 222 is information regarding the maximum storage value included in the log data Ld stored in the nonvolatile memory 40. Is rewritten with information on the measured value X. In other words, when the measurement value X satisfies the first log data storage conditions 1 to 3, the measurement value X is stored in the nonvolatile memory 40 as a new storage maximum value.

また、保存部222は、測定値Xが第2のログデータ保存条件A〜Cを満たしていると判定部221が判定した場合、不揮発メモリ40に保存された保存最小値に関する情報を、測定値Xに関する情報で書き換える。換言すれば、測定値Xが第2のログデータ保存条件A〜Cを満たしている場合、その測定値Xは、新たな保存最小値として、不揮発メモリ40に保存される。   In addition, when the determination unit 221 determines that the measurement value X satisfies the second log data storage conditions A to C, the storage unit 222 displays information regarding the stored minimum value stored in the nonvolatile memory 40 as the measurement value. Rewrite with information about X. In other words, when the measurement value X satisfies the second log data storage conditions A to C, the measurement value X is stored in the nonvolatile memory 40 as a new storage minimum value.

以上のように、保存部222は、データ前処理部21から入力された測定値Xのうち、第1のログデータ保存条件1〜3または第2のログデータ保存条件A〜Cを満たす測定値Xのみを、ログデータLdとして、不揮発メモリ40に保存する。   As described above, the storage unit 222 satisfies the first log data storage conditions 1 to 3 or the second log data storage conditions A to C among the measurement values X input from the data preprocessing unit 21. Only X is stored in the nonvolatile memory 40 as log data Ld.

また、保存部222は、測定値Xが第1のログデータ保存条件1〜3(第2のログデータ保存条件A〜C)を満たす場合のみ、その測定値Xで、ログデータLdに含まれる保存最大値(保存最小値)を書き換える。換言すれば、測定値Xが第1のログデータ保存条件1〜3(第2のログデータ保存条件A〜C)の少なくとも1つを満たしていない場合、保存部222は、ログデータLdに含まれる保存最大値(保存最小値)を書き換えない。例えば、測定値Xが時系列に沿って単調に増大している間、最新の測定値Xは常に最大値である(条件3を満たす)が、極大値ではない(条件2を満たさない)ので、保存部222は、ログデータLdに含まれる保存最大値を書き換えない。   In addition, the storage unit 222 includes the measurement value X in the log data Ld only when the measurement value X satisfies the first log data storage conditions 1 to 3 (second log data storage conditions A to C). Rewrite the maximum stored value (minimum stored value). In other words, when the measured value X does not satisfy at least one of the first log data storage conditions 1 to 3 (second log data storage conditions A to C), the storage unit 222 is included in the log data Ld. Do not rewrite the maximum stored value (minimum stored value). For example, while the measurement value X is monotonically increasing along the time series, the latest measurement value X is always the maximum value (satisfying condition 3), but not the maximum value (not satisfying condition 2). The storage unit 222 does not rewrite the maximum storage value included in the log data Ld.

それゆえ、データ前処理部21から入力された全ての測定値Xが不揮発メモリ40に保存される構成と比較して、不揮発メモリ40に保存されるデータ量を抑制することができる。その結果、ログデータLdを保存するために必要な不揮発メモリ40の容量が、最小限に抑制される。さらに、測定値Xが最大値である場合にログデータLdに含まれる保存最大値が書き換えられる構成と比較して、ログデータLdが書き換えられる頻度を抑制することができる。その結果、ログデータLdが保存されている不揮発メモリ40の寿命が長くなる。   Therefore, the amount of data stored in the nonvolatile memory 40 can be suppressed as compared with the configuration in which all the measurement values X input from the data preprocessing unit 21 are stored in the nonvolatile memory 40. As a result, the capacity of the nonvolatile memory 40 necessary for storing the log data Ld is minimized. Furthermore, the frequency at which the log data Ld is rewritten can be suppressed as compared with the configuration in which the stored maximum value included in the log data Ld is rewritten when the measured value X is the maximum value. As a result, the lifetime of the nonvolatile memory 40 in which the log data Ld is stored is extended.

なお、保存部222は、第1のログデータ保存条件1〜3を満たす測定値Xを、不揮発メモリ40に既に保存されている保存最大値に上書きせずに、別の保存最大値として、不揮発メモリ40に保存してもよい。換言すれば、第1のログデータ保存条件1〜3を満たす測定値Xは、ログデータLdが占有する不揮発メモリ40の記憶領域において、不揮発メモリ40に既に保存されている保存最大値が保存されている記憶領域とは別の記憶領域に保存されてもよい。   Note that the storage unit 222 does not overwrite the measurement value X satisfying the first log data storage conditions 1 to 3 with the storage maximum value already stored in the nonvolatile memory 40, and stores the measurement value X as another storage maximum value. It may be stored in the memory 40. In other words, the measured value X satisfying the first log data storage conditions 1 to 3 is stored in the storage area of the nonvolatile memory 40 occupied by the log data Ld, and the storage maximum value already stored in the nonvolatile memory 40 is stored. It may be stored in a storage area different from the storage area.

上記の構成では、第1のログデータ保存条件1〜3を満たす全ての測定値Xが、ログデータLdとして、不揮発メモリ40に保存される。そのため、ユーザは、不揮発メモリ40に保存されたログデータLdを参照することによって、測定された日時が最も新しい保存最大値だけでなく、測定された日時が古い保存最大値も確認することができる。   In the above configuration, all measured values X satisfying the first log data storage conditions 1 to 3 are stored in the nonvolatile memory 40 as the log data Ld. Therefore, by referring to the log data Ld stored in the nonvolatile memory 40, the user can check not only the stored maximum value with the latest measured date but also the stored maximum value with the old measured date. .

同様に、保存部222は、第2のログデータ保存条件A〜Cを満たす測定値Xを、不揮発メモリ40に既に保存されている保存最小値に上書きせずに、他の保存最小値として、不揮発メモリ40に保存してもよい。   Similarly, the storage unit 222 sets the measurement value X that satisfies the second log data storage conditions A to C as another storage minimum value without overwriting the storage minimum value already stored in the nonvolatile memory 40. It may be stored in the nonvolatile memory 40.

上記の構成では、ユーザは、不揮発メモリ40に保存されたログデータLdを参照することによって、測定された日時が最も新しい保存最小値だけでなく、測定された日時が古い保存最小値も確認することができる。   In the above-described configuration, the user confirms not only the stored minimum value with the newest measured date and time but also the stored minimum value with the oldest measured date and time by referring to the log data Ld stored in the nonvolatile memory 40. be able to.

図4の(a)〜(c)を用いて、保存部222によって不揮発メモリ40に保存されるログデータLdの具体例を説明する。図4の(a)は、データ前処理部21によって計算された測定値X(温度および湿度)の一例を示すグラフである。また、図4の(b)(c)は、図4の(a)に破線Aおよび破線Bで示す各時点において、保存部222によって保存されるログデータLdを示す図である。なお、以下の説明では、温度に関して、第1のログデータ保存条件の第1の閾値Tthuは、40℃(40degC)であるとする。また、第2のログデータ保存条件の第2の閾値Tthlは、0℃であるとする。また、湿度に関して、第1のログデータ保存条件の第1の閾値Hthuは、80%であるとする。   A specific example of the log data Ld stored in the nonvolatile memory 40 by the storage unit 222 will be described with reference to FIGS. FIG. 4A is a graph illustrating an example of the measurement value X (temperature and humidity) calculated by the data preprocessing unit 21. 4B and 4C are diagrams showing log data Ld stored by the storage unit 222 at each time point indicated by the broken line A and the broken line B in FIG. In the following description, regarding the temperature, it is assumed that the first threshold value Tthu of the first log data storage condition is 40 ° C. (40 degC). The second threshold value Tthl of the second log data storage condition is assumed to be 0 ° C. Further, regarding the humidity, the first threshold value Hthu of the first log data storage condition is assumed to be 80%.

図4の(a)において、破線Aで示す時点(○月△日の17:00)、および、破線Bで示す時点は、測定対象装置にエラースタンバイが発生した時点である。図4の(b)(c)に示すログデータLdの一行目には、それぞれ、破線Aで示す時点、破線Bで示す時点における温度および湿度が示されている。   In FIG. 4A, the time point indicated by the broken line A (17:00 of the month Δ day) and the time point indicated by the broken line B are times when an error standby occurs in the measurement target device. The first row of log data Ld shown in FIGS. 4B and 4C shows the temperature and humidity at the time indicated by the broken line A and at the time indicated by the broken line B, respectively.

図4の(a)に破線Aで示す時点以前における温度の中では、○月△日の13:30の時点における最高温度(43℃;その時に湿度は18%)が、第1のログデータ保存条件1〜3を満たしている。そのため、図4の(b)に示すように、破線Aで示す時点におけるログデータLdには、温度の保存最大値(図3の最高温度)に関する情報として、○月△日の13:30における最低温度(−8℃;その時に湿度は49%)に関する情報が保存されている。同様に、破線Aで示す時点におけるログデータLdには、保存最小値(図3の最低温度)に関する情報として、○月△日の03:00における温度に関する情報が含まれている。   Among the temperatures before the time indicated by the broken line A in FIG. 4A, the maximum temperature (43 ° C .; the humidity at that time is 18%) at the time of 13:30 on the day of the month △ is the first log data. The storage conditions 1 to 3 are satisfied. Therefore, as shown in FIG. 4 (b), the log data Ld at the time indicated by the broken line A includes information on the maximum temperature storage value (maximum temperature in FIG. 3) at Information on the minimum temperature (-8 ° C; humidity at that time is 49%) is stored. Similarly, the log data Ld at the time indicated by the broken line A includes information on the temperature at 03:00 on the day of the month Δ as the information on the minimum storage value (the lowest temperature in FIG. 3).

一方、図4の(a)に示すように、破線Aで示す時点以前において、湿度は、第1の閾値Hthu=80%よりも小さい。すなわち、破線Aで示す時点以前の湿度の中では、第1のログデータ保存条件を満たす湿度は存在しない。そのため、図4の(b)に示すように、破線Aで示す時点におけるログデータLdには、湿度の保存最大値(図3の最高湿度)に関する情報が含まれていない。   On the other hand, as shown in FIG. 4A, before the time indicated by the broken line A, the humidity is smaller than the first threshold value Hthu = 80%. That is, there is no humidity that satisfies the first log data storage condition among the humidity before the time indicated by the broken line A. Therefore, as shown in FIG. 4B, the log data Ld at the time indicated by the broken line A does not include information regarding the maximum storage value of humidity (the maximum humidity in FIG. 3).

図4の(a)に破線Bで示す時点(○月△日の一日後の08:00)以前の温度の中では、○月△日の13:30における温度と、○月△日の21:30における温度とが、第1のログデータ保存条件1および第1のログデータ保存条件2を満している。また、○月△日の13:30における温度、および、○月△日の21:30における温度は、どちらも43℃である。しかしながら、○月△日の13:30と、破線Bで示す時点との間において、温度は、第1の閾値Tthuを一度下回った後で、第1の閾値Tthu以上の値に回復している。そのため、○月△日の13:30における温度は、第1のログデータ保存条件3に関する判定の対象ではない。従って、図4の(c)に示すように、破線Bで示す時点におけるログデータLdには、温度の保存最大値に関する情報として、○月△日の21:30における最高温度(43℃;その時に湿度は98%)に関する情報が含まれている。   Among the temperatures before the time indicated by the broken line B in FIG. 4 (a) (08:00 one day after the day of the month △), the temperature at 13:30 of the month △ : 30 at the temperature satisfies the first log data storage condition 1 and the first log data storage condition 2. Further, the temperature at 13:30 of the month Δ day and the temperature at 21:30 of the month Δ day are both 43 ° C. However, between 13:30 on the day of the month △ and the time point indicated by the broken line B, the temperature has recovered to a value equal to or higher than the first threshold value Tthu after being once lower than the first threshold value Tthu. . For this reason, the temperature at 13:30 on the day of the month △ is not a target for determination regarding the first log data storage condition 3. Therefore, as shown in FIG. 4 (c), the log data Ld at the time indicated by the broken line B includes the maximum temperature (43 ° C .; Information on the humidity is 98%).

また、図4の(a)に示す2つの矢印で挟まれた期間は、図4の(a)に破線Bで示す時点以前にある。また、これらの矢印で挟まれた期間の湿度は、第1の閾値Hthu=80%以上であるので、第1のログデータ保存条件1を満たしている。また、この期間に含まれる○月△日の23:30における湿度は、第1のログデータ保存条件2および3も満たしている。そのため、図4の(c)に示すように、破線Bで示す時点におけるログデータLdには、湿度の保存最大値に関する情報として、○月△日の23:30における最高湿度(99%;その時に温度は23℃)に関する情報が含まれている。   Further, the period between the two arrows shown in FIG. 4A is before the time indicated by the broken line B in FIG. Further, the humidity in the period between these arrows is equal to or higher than the first threshold value Hthu = 80%, so that the first log data storage condition 1 is satisfied. In addition, the humidity at 23:30 of the month △ day included in this period also satisfies the first log data storage conditions 2 and 3. Therefore, as shown in FIG. 4C, the log data Ld at the time point indicated by the broken line B includes the maximum humidity (99%; The temperature is 23 ° C.).

さらに、制御部20は、ログデータLdに含まれる測定値群(最高温度、最高湿度、および最低温度の各データ)を、表示部(図示せず)の画面に表示してもよい。   Further, the control unit 20 may display a group of measurement values (maximum temperature, maximum humidity, and minimum temperature data) included in the log data Ld on the screen of a display unit (not shown).

図5は、ログデータLdに含まれる測定値群が表示された画面の一例である。図5において、矢印K1で示す数字のうち、上の4つの数字は、上から順番に、現在の日時、最高湿度が測定された日時、最高温度が測定された日時、最低温度が測定された日時である。また、矢印K1で示す数字のうち、下の4つの数字は、測定対象装置にエラースタンバイが発生した日時(下の4つの数字)である。例えば、201404160900は、2014年4月16日の9時00分を表す。矢印K2で示す数字は、矢印K1で示す数字によって特定される時点における湿度の測定値Xを表す。矢印K3で示す数字は、矢印K1で示す数字によって特定される時点における温度の測定値Xを表す。また、矢印K4で示す数字は、エラーの番号を表す。   FIG. 5 is an example of a screen on which measurement value groups included in the log data Ld are displayed. In FIG. 5, among the numbers indicated by the arrow K1, the upper four numbers indicate the current date and time, the date and time when the highest humidity was measured, the date and time when the highest temperature was measured, and the lowest temperature in order from the top. Date and time. Of the numbers indicated by the arrow K1, the lower four numbers are the date and time (lower four numbers) when an error standby occurred in the measurement target device. For example, 201404160900 represents 9:00 on April 16, 2014. The number indicated by the arrow K2 represents the humidity measurement value X at the time point specified by the number indicated by the arrow K1. The number indicated by the arrow K3 represents the temperature measurement value X at the time specified by the number indicated by the arrow K1. The number indicated by the arrow K4 represents an error number.

(ログデータ保存処理Iの流れ;最高温度を不揮発メモリに保存する場合)
図7を補助的に参照しつつ、図6を用いて、データ管理部22の判定部221および保存部222によって実行されるログデータ保存処理Iの流れを説明する。図6は、ログデータ保存処理Iの流れを示すフローチャートである。また、図7は、データ前処理部21によって計算された温度の測定値Xの一例を示すグラフである。
(Log data storage process I flow; when storing the maximum temperature in non-volatile memory)
The flow of the log data storage process I executed by the determination unit 221 and the storage unit 222 of the data management unit 22 will be described with reference to FIG. FIG. 6 is a flowchart showing the flow of the log data storage process I. FIG. 7 is a graph showing an example of the temperature measurement value X calculated by the data preprocessing unit 21.

ここでは、第1のログデータ保存条件1〜3を満たす温度の測定値Xが、温度の保存最大値として、不揮発メモリ40に保存される場合のログデータ保存処理Iを説明する。   Here, the log data storage process I when the measured value X of the temperature satisfying the first log data storage conditions 1 to 3 is stored in the nonvolatile memory 40 as the maximum temperature storage value will be described.

図6に示すように、ログデータ保存処理Iでは、まず、判定部221は、変数Xn−1および変数Xmaxに初期値0x00を代入することによって、変数Xn−1および変数Xmaxを初期化する(S10)。変数Xn−1および変数Xmaxは、一時記憶部30に保存される。変数Xn−1および変数Xmaxの初期値0x00は、測定値Xが取り得る最小の値(例えば、−40℃)に設定される。図7に示すように、測定値Xが初めて第1の閾値Tthu以上となる時点T12よりも以前において、変数Xmaxは初期値0x00である。   As shown in FIG. 6, in the log data storage process I, first, the determination unit 221 initializes the variable Xn-1 and the variable Xmax by substituting the initial value 0x00 for the variable Xn-1 and the variable Xmax ( S10). Variable Xn−1 and variable Xmax are stored in temporary storage unit 30. The initial value 0x00 of the variable Xn−1 and the variable Xmax is set to the minimum value (for example, −40 ° C.) that the measurement value X can take. As shown in FIG. 7, the variable Xmax is the initial value 0x00 before the time T12 when the measured value X becomes the first threshold Tth or more for the first time.

ここで、図6に示すフローチャートから分かるように、変数Xn−1は、着目する測定値Xが測定された測定の一回前の測定で測定された測定値Xを表す。換言すれば、変数Xn−1は、着目する測定値Xが測定された日時よりも前に測定された測定値Xのうち、着目する測定値Xが測定された日時に最も近い日時に測定された測定値Xを表す。測定値日時にまた、変数Xmaxは、測定値Xが最後に第1の閾値Tthu以上になった後に測定された測定値Xの中の最大値を表す。測定値Xが第1の閾値Tthuより小さい場合、変数Xmaxには初期値0x00が代入される。   Here, as can be seen from the flowchart shown in FIG. 6, the variable Xn−1 represents the measurement value X measured in the measurement immediately before the measurement in which the measurement value X of interest is measured. In other words, the variable Xn-1 is measured at the date and time closest to the date and time when the target measurement value X was measured among the measurement values X measured before the date and time when the target measurement value X was measured. Represents the measured value X. In addition to the measurement date and time, the variable Xmax represents the maximum value among the measurement values X measured after the measurement value X has finally reached or exceeded the first threshold value Tthu. When the measured value X is smaller than the first threshold value Tthu, the initial value 0x00 is substituted for the variable Xmax.

S10の後、判定部221の閾値判定部221aは、データ前処理部21から測定値Xを取得し(S20)、取得した測定値Xが第1の閾値Tthu以上である(X≧Tthu)か否かを判定する(S30)。測定値Xが第1の閾値Tthu以上ではない場合(S30でNo)、判定部221の最大最小判定部221cは、変数Xmaxに初期値0x00を代入する(S41)。その後、ログデータ保存処理Iは、後述するS60に進む。図7に示すように、時点T16およびT19において、測定値Xが第1の閾値Tthuを下回るので、変数Xmaxには初期値0x00が代入される。測定値Xが第1の閾値Tthuよりも小さい間、変数Xmaxは初期値0x00のままである。   After S10, the threshold determination unit 221a of the determination unit 221 acquires the measurement value X from the data preprocessing unit 21 (S20), and whether the acquired measurement value X is greater than or equal to the first threshold Tthu (X ≧ Tthu). It is determined whether or not (S30). When the measured value X is not equal to or greater than the first threshold Tthu (No in S30), the maximum / minimum determination unit 221c of the determination unit 221 substitutes the initial value 0x00 for the variable Xmax (S41). Thereafter, the log data storage process I proceeds to S60 described later. As shown in FIG. 7, at the time points T16 and T19, the measured value X falls below the first threshold value Tthu, so the initial value 0x00 is substituted for the variable Xmax. While the measured value X is smaller than the first threshold Tthu, the variable Xmax remains at the initial value 0x00.

S30において、測定値Xが第1の閾値Tthu以上である場合(S30でYes)、判定部221の最大最小判定部221cは、測定値Xが変数Xmaxよりも大きい(X>Xmax)か否かを判定する(S42)。測定値Xが変数Xmaxよりも大きい場合(S42でYes)、判定部221の最大最小判定部221cは、一時記憶部30に保存されている変数Xmaxに測定値Xを代入する(S50)。図7に示すように、時点T12およびT17において、測定値Xが第1の閾値Tthu以上になるので、変数Xmaxは測定値Xに等しくなる。   In S30, when the measurement value X is equal to or greater than the first threshold Tthu (Yes in S30), the maximum / minimum determination unit 221c of the determination unit 221 determines whether or not the measurement value X is larger than the variable Xmax (X> Xmax). Is determined (S42). When the measurement value X is larger than the variable Xmax (Yes in S42), the maximum / minimum determination unit 221c of the determination unit 221 substitutes the measurement value X for the variable Xmax stored in the temporary storage unit 30 (S50). As shown in FIG. 7, at the time points T12 and T17, the measurement value X becomes equal to or greater than the first threshold value Tthu, so the variable Xmax is equal to the measurement value X.

S50またはS41の後、判定部221は、(i)変数Xn−1が第1の閾値Tthu以上であり、かつ(ii)測定値Xが変数Xn−1よりも小さく、かつ(iii)変数Xn−1が変数Xmaxに等しいか否かを判定する(S60)。ここで、上記(i)〜(iii)の判定条件は、第1のログデータ保存条件1〜3に対応する。ただし、上記(i)〜(iii)の判定条件における変数Xn−1が、第1のログデータ保存条件1〜3における測定値Xに対応する。   After S50 or S41, the determination unit 221 determines that (i) the variable Xn−1 is greater than or equal to the first threshold Tthu, (ii) the measured value X is smaller than the variable Xn−1, and (iii) the variable Xn. It is determined whether −1 is equal to the variable Xmax (S60). Here, the determination conditions (i) to (iii) correspond to the first log data storage conditions 1 to 3. However, the variable Xn-1 in the determination conditions (i) to (iii) corresponds to the measurement value X in the first log data storage conditions 1 to 3.

閾値判定部221aは、上記(i)の判定条件に基づく判定を行う。極大極小判定部221bは、上記(ii)の判定条件に基づく判定を行う。また、最大最小判定部221cは、上記(iii)の判定条件に基づく判定を行う。   The threshold determination unit 221a performs determination based on the determination condition (i). The maximum / minimum determination unit 221b performs determination based on the determination condition (ii). Further, the maximum / minimum determination unit 221c performs determination based on the determination condition (iii).

図7に示すように、時点T12〜T16の間、および時点T17〜T19の間、測定値Xは第1の閾値Tthu以上である。そのため、時点T12〜T16の間の測定値X、および、時点T17〜T19の間の測定値Xは、第1のログデータ保存条件1(上記(i)の判定条件に対応)を満たす。また、図7において、符号V11〜V15は、測定値Xの極大値を示している。そのため、時点T11、T13、T14、T15、およびT18における測定値X=V11〜V15は、第1のログデータ保存条件2(上記(ii)の判定条件に対応)を満たす。さらに、時点T13およびT14における測定値Xは、測定値Xが最後に第1の閾値Tthu以上になった時点T12よりも後に測定された測定値Xの中の最大値である。また、時点T18における測定値Xは、測定値Xが最後に第1の閾値Tthu以上になった時点T17よりも後に測定された測定値Xの中の最大値である。ゆえに、時点T13、T14、およびT18における測定値Xは、第1のログデータ保存条件3(上記(iii)の判定条件に対応)を満たす。従って、図7において、時点T13、T14、およびT18における測定値X(=変数Xmax)は、第1のログデータ保存条件1〜3、および上記(i)〜(iii)の判定条件を全て満たす。   As shown in FIG. 7, the measured value X is equal to or greater than the first threshold value Tthu between time points T12 and T16 and between time points T17 and T19. Therefore, the measurement value X between the time points T12 and T16 and the measurement value X between the time points T17 and T19 satisfy the first log data storage condition 1 (corresponding to the determination condition (i) above). In FIG. 7, reference signs V <b> 11 to V <b> 15 indicate maximum values of the measurement value X. Therefore, the measured values X = V11 to V15 at time points T11, T13, T14, T15, and T18 satisfy the first log data storage condition 2 (corresponding to the determination condition (ii) above). Furthermore, the measurement value X at the time points T13 and T14 is the maximum value among the measurement values X measured after the time point T12 when the measurement value X finally became equal to or greater than the first threshold value Tthu. The measured value X at time T18 is the maximum value among the measured values X measured after time T17 when the measured value X finally became equal to or greater than the first threshold Tthu. Therefore, the measurement value X at the time points T13, T14, and T18 satisfies the first log data storage condition 3 (corresponding to the determination condition (iii) above). Accordingly, in FIG. 7, the measurement value X (= variable Xmax) at time points T13, T14, and T18 satisfies all the first log data storage conditions 1 to 3 and the determination conditions (i) to (iii) above. .

図6において、(i)測定値Xが変数Xn−1よりも小さく、かつ(ii)変数Xn−1が変数Xmaxに等しく、かつ(iii)変数Xn−1が第1の閾値Tthu以上である場合(S60でYes)、保存部222は、変数Xn−1の値を、保存最大値として、不揮発メモリ40に保存する(S70)。前述したように、図7において、時点T13、T14、およびT18における測定値Xは、上記(i)〜(iii)の判定条件を全て満たす。そのため、不揮発メモリ40の保存最大値は、上記の各時点において、測定値Xが代入された変数Xmax(図6のS50参照)で書き換えられる。図7中、破線の丸印は、不揮発メモリ40に保存された温度の保存最大値が書き換えられるタイミングを示す。   In FIG. 6, (i) the measured value X is smaller than the variable Xn-1, (ii) the variable Xn-1 is equal to the variable Xmax, and (iii) the variable Xn-1 is equal to or greater than the first threshold value Tthu. In the case (Yes in S60), the storage unit 222 stores the value of the variable Xn-1 as the maximum storage value in the nonvolatile memory 40 (S70). As described above, in FIG. 7, the measurement values X at the time points T13, T14, and T18 satisfy all the determination conditions (i) to (iii). Therefore, the stored maximum value of the nonvolatile memory 40 is rewritten with the variable Xmax (see S50 in FIG. 6) to which the measured value X is substituted at each time point described above. In FIG. 7, a broken-line circle indicates the timing at which the stored maximum value of the temperature stored in the nonvolatile memory 40 is rewritten.

ただし、測定値Xが上記(i)〜(iii)の判定条件を満たす場合であっても、組み込み装置1が起動してから所定時間が経過していない場合、保存部222は、S70において、不揮発メモリ40に保存された保存最大値を書き換えない。ここで、上記所定時間は、少なくとも、組み込み装置1が起動した時点から、エラー訂正・検出値平滑化処理において、検出値から測定値Xが計算される時点までの期間よりも長い。   However, even when the measurement value X satisfies the determination conditions (i) to (iii) above, if the predetermined time has not elapsed since the embedded device 1 is activated, the storage unit 222 determines in S70 that The stored maximum value stored in the nonvolatile memory 40 is not rewritten. Here, the predetermined time is at least longer than the period from when the embedded device 1 is activated to when the measured value X is calculated from the detected value in the error correction / detected value smoothing process.

また、温度の測定値Xは、測定対象装置が備えたCPUが発する熱の影響を受ける可能性がある。そのような場合を考慮して、測定値Xが上記(i)〜(iii)の判定条件を満たす場合であっても、以下の場合には、保存部222は、S70において、不揮発メモリ40に保存された保存最大値を書き換えないように制御することが好ましい。
1.測定対象装置が備えたCPUの電源がオンである場合。
2.測定対象装置が備えたCPUの電源がオフになってから、所定時間(例えば2時間)が経過していない場合。
Further, the temperature measurement value X may be affected by the heat generated by the CPU provided in the measurement target device. Considering such a case, even if the measurement value X satisfies the determination conditions (i) to (iii) above, the storage unit 222 stores the non-volatile memory 40 in S70 in the following cases. It is preferable to control so as not to rewrite the stored maximum value.
1. The CPU of the measurement target device is turned on.
2. When a predetermined time (for example, 2 hours) has not elapsed since the power of the CPU included in the measurement target device was turned off.

最後に、判定部221は、一時記憶部30に保存されている変数Xn−1に測定値Xを代入する(S80)。その後、ログデータ保存処理Iは、判定部221がデータ前処理部21から測定値Xを取得するステップ(S20)に戻る。以後、データ管理部22は、上述したS20〜S80までのステップを繰り返す。   Finally, the determination unit 221 substitutes the measurement value X for the variable Xn−1 stored in the temporary storage unit 30 (S80). Thereafter, the log data storage process I returns to the step (S20) in which the determination unit 221 acquires the measurement value X from the data preprocessing unit 21. Thereafter, the data management unit 22 repeats the steps from S20 to S80 described above.

(ログデータ保存処理II;最低温度を不揮発メモリに保存する場合)
図8を用いて、第2のログデータ保存条件A〜Cを満たす温度の測定値Xが、保存最小値として、不揮発メモリ40に保存される場合のログデータ保存処理IIを説明する。図8は、データ前処理部21によって計算される温度の測定値Xの他の例を示すグラフである。
(Log data saving process II; when saving the minimum temperature in nonvolatile memory)
The log data storage process II in the case where the measured value X of the temperature that satisfies the second log data storage conditions A to C is stored in the nonvolatile memory 40 as the minimum storage value will be described with reference to FIG. FIG. 8 is a graph showing another example of the temperature measurement value X calculated by the data preprocessing unit 21.

最低温度を不揮発メモリ40に保存する場合のログデータ保存処理IIは、以下の3点で、最高温度を不揮発メモリ40に保存する場合のログデータ保存処理Iと相違する。   The log data storage process II when the minimum temperature is stored in the nonvolatile memory 40 is different from the log data storage process I when the maximum temperature is stored in the nonvolatile memory 40 in the following three points.

第1に、変数Xmaxの代わりに、変数Xminが用いられる。最低温度を不揮発メモリ40に保存する場合のログデータ保存処理IIにおいて、変数Xminは、測定値Xが最後に第2の閾値Tthl以下になった後に測定された測定値Xの中の最小値を表す。第2に、変数Xn−1および変数Xminの初期値0xFFは、測定値Xが取り得る最大の値(例えば、100℃)に設定される。第3に、図6のS30、S42、およびS60に示す不等号の向きが逆である。   First, a variable Xmin is used instead of the variable Xmax. In the log data storage process II in the case where the minimum temperature is stored in the nonvolatile memory 40, the variable Xmin is the minimum value among the measured values X measured after the measured value X finally falls below the second threshold value Tthl. Represent. Second, the initial value 0xFF of the variable Xn−1 and the variable Xmin is set to the maximum value (for example, 100 ° C.) that the measurement value X can take. Third, the direction of inequality signs shown in S30, S42, and S60 in FIG. 6 is reversed.

具体的には、最低温度を不揮発メモリ40に保存する場合のログデータ保存処理IIでは、図6に示すフローチャートにおいて、判定部221の閾値判定部221aは、測定値Xが第1の閾値Tthu以上である(X≧Tthu)か否かを判定する(S30)の代わりに、測定値Xが第2の閾値Tthl以下である(X≦Tthl)か否かを判定する。また、判定部221の最大最小判定部221cは、測定値Xが変数Xmaxよりも大きい(X>Xmax)か否かを判定する(S42)代わりに、測定値Xが変数Xminよりも小さい(X<Xmin)か否かを判定する。   Specifically, in the log data storage process II when the minimum temperature is stored in the nonvolatile memory 40, the threshold value determination unit 221a of the determination unit 221 in the flowchart illustrated in FIG. Instead of determining whether or not (X ≧ Tthu) (S30), it is determined whether or not the measured value X is equal to or less than the second threshold value Tthl (X ≦ Tthl). In addition, the maximum / minimum determination unit 221c of the determination unit 221 determines whether the measurement value X is larger than the variable Xmax (X> Xmax) (S42), instead of the measurement value X being smaller than the variable Xmin (X <Xmin) is determined.

さらに、判定部221は、(i)変数Xn−1が第1の閾値Tthu以上であり、かつ(ii)測定値Xが変数Xn−1よりも小さく、かつ(iii)変数Xn−1が変数Xmaxに等しいか否かを判定する(S60)代わりに、(a)変数Xn−1が第2の閾値Tthl以下であり、かつ(b)測定値Xが変数Xn−1よりも大きく、かつ(c)変数Xn−1が変数Xminに等しいか否かを判定する。上記の(a)〜(c)の判定条件は、第2のログデータ保存条件A〜Cに対応する。ただし、上記(a)〜(c)の判定条件における変数Xn−1が、第2のログデータ保存条件A〜Cにおける測定値Xに対応する。   Furthermore, the determination unit 221 determines that (i) the variable Xn−1 is equal to or greater than the first threshold value Tthu, (ii) the measured value X is smaller than the variable Xn−1, and (iii) the variable Xn−1 is a variable. Instead of determining whether or not it is equal to Xmax (S60), instead of (a) the variable Xn-1 is equal to or smaller than the second threshold Tthl, and (b) the measured value X is greater than the variable Xn-1, and ( c) It is determined whether or not the variable Xn-1 is equal to the variable Xmin. The determination conditions (a) to (c) above correspond to the second log data storage conditions A to C. However, the variable Xn-1 in the determination conditions (a) to (c) corresponds to the measurement value X in the second log data storage conditions A to C.

閾値判定部221aは、上記(a)の判定条件に基づく判定を行う。極大極小判定部221bは、上記(b)の判定条件に基づく判定を行う。また、最大最小判定部221cは、上記(c)の判定条件に基づく判定を行う。   The threshold determination unit 221a performs determination based on the determination condition (a). The maximum / minimum determination unit 221b performs determination based on the determination condition (b). Further, the maximum / minimum determination unit 221c performs determination based on the determination condition (c).

図8において、時点T21〜T23における測定値X=V21〜V23は、上記の(a)〜(c)の判定条件をすべて満たす。そのため、上記の各時点において、測定値X=V21〜V23が、保存最小値として、不揮発メモリ40に保存される。図8中、破線の丸印は、不揮発メモリ40に保存された保存最小値が書き換えられるタイミングを示す。   In FIG. 8, measured values X = V21 to V23 at time points T21 to T23 satisfy all the determination conditions (a) to (c). Therefore, at each time point described above, the measured values X = V21 to V23 are stored in the nonvolatile memory 40 as the minimum storage value. In FIG. 8, the dotted circle indicates the timing at which the stored minimum value stored in the nonvolatile memory 40 is rewritten.

〔実施形態2〕
本発明の他の実施形態について、図9を用いて、以下に説明する。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を省略する。
[Embodiment 2]
Another embodiment of the present invention will be described below with reference to FIG. For convenience of explanation, members having the same functions as those described in the embodiment are given the same reference numerals, and descriptions thereof are omitted.

前記実施形態1では、最高温度および最低温度を不揮発メモリ40に保存する場合のログデータ保存処理I・IIを説明した。本実施形態2では、最高湿度を不揮発メモリ40に保存する場合のログデータ保存処理IIIを説明する。   In the first embodiment, the log data storage processing I and II when the maximum temperature and the minimum temperature are stored in the nonvolatile memory 40 has been described. In the second embodiment, a log data storage process III when the maximum humidity is stored in the nonvolatile memory 40 will be described.

ログデータ保存処理IIIにおいて、保存部222は、前記実施形態1で説明したログデータ保存処理Iと同様に、第1のログデータ保存条件1〜3を満たす測定値Xに関する情報を、ログデータLdとして、不揮発メモリ40に保存する。加えて、ログデータ保存処理IIIにおいて、保存部222は、以下で説明するように、測定値Xが第1の閾値Hthu以上となった時点において、その測定値Xに関する情報を、ログデータLdとは別のデータ(以下では、第2のログデータと呼ぶ)として、不揮発メモリ40にさらに保存する。   In the log data storage process III, the storage unit 222 uses the log data Ld to store information on the measurement value X that satisfies the first log data storage conditions 1 to 3 as in the log data storage process I described in the first embodiment. Is stored in the nonvolatile memory 40. In addition, in the log data storage process III, as will be described below, the storage unit 222 displays information about the measurement value X as log data Ld when the measurement value X becomes equal to or higher than the first threshold value Hthu. Is further stored in the nonvolatile memory 40 as other data (hereinafter referred to as second log data).

(ログデータ保存処理III;最高湿度を保存する場合)
図9を用いて、第1のログデータ保存条件1〜3を満たす湿度の測定値Xが、湿度の保存最大値として、不揮発メモリ40に保存される場合のログデータ保存処理IIIを説明する。図9は、データ前処理部21によって計算される湿度の測定値Xの一例を示すグラフである。図9中、破線の丸印は、測定値Xが第1のログデータ保存条件1〜3を満たし、不揮発メモリ40に保存された湿度の保存最大値が測定値Xで書き換えられるタイミングを示す。
(Log data storage process III; when storing the maximum humidity)
With reference to FIG. 9, the log data storage process III when the measured humidity value X satisfying the first log data storage conditions 1 to 3 is stored in the nonvolatile memory 40 as the maximum stored humidity value will be described. FIG. 9 is a graph showing an example of a measured value X of humidity calculated by the data preprocessing unit 21. In FIG. 9, a broken-line circle indicates the timing at which the measured value X satisfies the first log data storage conditions 1 to 3 and the stored maximum value of humidity stored in the nonvolatile memory 40 is rewritten with the measured value X.

湿度には、温度とは異なり、100%という上限値があるので、湿度の測定値Xは、100%である状態が継続する(すなわち、測定値Xが100%に張り付く)場合がある。図9では、一部の期間、湿度の測定値Xは100%である。   Unlike the temperature, the humidity has an upper limit value of 100%. Therefore, the humidity measurement value X may continue to be 100% (that is, the measurement value X sticks to 100%). In FIG. 9, the measured value X of humidity is 100% during a part of the period.

ところが、上記の期間、測定値Xは極大値ではないので、その測定値Xは第1のログデータ保存条件2を満たさない。従って、湿度の測定値Xが100%から100%より小さい値に低下する時点まで、不揮発メモリ40には、測定値X=100%保存された保存最大値は書き換えられない。湿度の測定値Xが100%から100%より小さい値に低下する時点において、その時点を示す情報が、ログデータLdとして、不揮発メモリ40に保存される。   However, since the measurement value X is not a maximum value during the above period, the measurement value X does not satisfy the first log data storage condition 2. Accordingly, until the humidity measurement value X drops from 100% to a value smaller than 100%, the maximum storage value stored in the nonvolatile memory 40 is not rewritten. When the humidity measurement value X decreases from 100% to a value smaller than 100%, information indicating the time is stored in the nonvolatile memory 40 as log data Ld.

一方、湿度の測定値Xが100%に達した時点における測定値Xは第1のログデータ保存条件1〜3を満たさないので、その時点を示す情報は、ログデータLdとして、不揮発メモリ40に保存されない。しかし、測定値Xが第1の閾値Hthuに達した時点を示す情報は、測定対象装置の周囲の湿度が第1の閾値Hthu以上であった期間をユーザが確認する上で有用な情報であるから、不揮発メモリ40に保存されることが望ましい。   On the other hand, since the measured value X when the measured value X of humidity reaches 100% does not satisfy the first log data storage conditions 1 to 3, information indicating the time is stored in the nonvolatile memory 40 as log data Ld. Not saved. However, the information indicating the time point when the measurement value X reaches the first threshold value Hth is useful information for the user to confirm the period during which the humidity around the measurement target device is equal to or higher than the first threshold value Hth. Therefore, it is desirable that the data be stored in the nonvolatile memory 40.

そこで、ログデータ保存処理IIIでは、保存部222は、測定値Xが第1の閾値Hthu以上となったとき、その時点を示す情報を、第2のログデータとしてとして、不揮発メモリ40に保存する。より詳細には、保存部222は、着目する測定値Xが第1の閾値Hthu以上であり、かつ、着目する測定値Xが測定された測定の一回前の測定で測定された測定値Xが第1の閾値Hthuよりも小さい場合、着目する測定値Xが測定された時点を示す情報を不揮発メモリ40に保存する。   Therefore, in the log data storage process III, the storage unit 222 stores information indicating the time point in the nonvolatile memory 40 as the second log data when the measurement value X becomes equal to or greater than the first threshold value Hthu. . More specifically, the storage unit 222 measures the measured value X measured in the measurement immediately before the measurement in which the measured value X of interest is equal to or greater than the first threshold Hthu and the measured value of interest X is measured. Is smaller than the first threshold Hthu, information indicating the point in time when the measurement value X of interest is measured is stored in the nonvolatile memory 40.

具体的には、保存部222は、湿度の測定値Xが以下の条件αを満たす場合、その測定値Xが測定された時点を示す情報を、第2のログデータとして、不揮発メモリ40に保存する。なお、保存部222は、以下の条件αを満たす測定値Xを、その測定値Xが測定された時点と関連付けて、第2のログデータとして、不揮発メモリ40に保存してもよい。   Specifically, when the humidity measurement value X satisfies the following condition α, the storage unit 222 stores information indicating the time point when the measurement value X is measured in the nonvolatile memory 40 as the second log data. To do. The storage unit 222 may store a measurement value X that satisfies the following condition α in the nonvolatile memory 40 as second log data in association with the time point when the measurement value X is measured.

[条件α]X≧Hthu かつ Xn−1<Hthu
図9では、時点T31およびT32において、測定値Xは第1の閾値Hthu以上である。また、上記の各時点の直前において、測定値Xは第1の閾値Hthuよりも小さいので、変数Xn−1には第1の閾値Hthuよりも小さい値が代入されている(図6のS80)。そのため、時点T31およびT32において、保存部222は、時点T31およびT32における測定値Xに関する情報を、第2のログデータとして、不揮発メモリ40に保存する。図9中、破線の三角印は、測定値Xが第1の閾値Hthu以上となり、不揮発メモリ40に第2のログデータが保存されるタイミングを示す。
[Condition α] X ≧ Hthu and Xn−1 <Hthu
In FIG. 9, at the time points T31 and T32, the measurement value X is greater than or equal to the first threshold value Hthu. Further, immediately before each time point, the measured value X is smaller than the first threshold value Htu, and therefore, a value smaller than the first threshold value Hthu is substituted for the variable Xn−1 (S80 in FIG. 6). . Therefore, at time points T31 and T32, the storage unit 222 stores information regarding the measurement value X at the time points T31 and T32 in the nonvolatile memory 40 as second log data. In FIG. 9, broken triangles indicate the timing at which the measured value X is equal to or higher than the first threshold value Hthu and the second log data is stored in the nonvolatile memory 40.

なお、条件αを満たす測定値Xは、第1のログデータ保存条件1〜3を満たす測定値Xとは異なる性質を有する。ログデータLdに保存されている保存最大値も、第1のログデータ保存条件1〜3を満たすので、条件αを満たす測定値Xは、保存最大値とも異なる性質を有する。そのため、保存部222は、第2のログデータを、ログデータLdが占有する記憶領域とは別の記憶領域に保存することが望ましい。   The measurement value X that satisfies the condition α has a different property from the measurement value X that satisfies the first log data storage conditions 1 to 3. Since the storage maximum value stored in the log data Ld also satisfies the first log data storage conditions 1 to 3, the measured value X that satisfies the condition α has a property different from the storage maximum value. Therefore, it is desirable for the storage unit 222 to store the second log data in a storage area different from the storage area occupied by the log data Ld.

以上のように、ログデータ保存処理IIIでは、湿度の測定値Xが第1の閾値Hthu以上となったとき、測定値Xが第1の閾値Hthu以上となった日時を示す情報が、第2のログデータとして、不揮発メモリ40に保存される。そのため、ユーザは、不揮発メモリ40に保存された第2のログデータを参照することによって、湿度の測定値Xが第1の閾値Hthu以上となった日時を確認することができる。   As described above, in the log data storage process III, when the measured value X of the humidity becomes equal to or higher than the first threshold value Hthu, information indicating the date and time when the measured value X becomes equal to or higher than the first threshold value Hth Log data is stored in the nonvolatile memory 40. Therefore, the user can confirm the date and time when the humidity measurement value X is equal to or higher than the first threshold value Hthu by referring to the second log data stored in the nonvolatile memory 40.

また、本実施形態2の一変形例では、測定値Xが所定値Kthu(≧Hthu)以上となったとき、保存部222は、その時点における測定値Xに関する情報を、第2のログデータとして、不揮発メモリ40に保存してもよい。具体的には、保存部222は、測定値Xが以下の条件α´を満たす場合、その測定値Xに関する情報を、第2のログデータとして、不揮発メモリ40に保存してもよい。   Further, in a modification of the second embodiment, when the measurement value X is equal to or greater than the predetermined value Kthu (≧ Hthu), the storage unit 222 uses the information about the measurement value X at that time as second log data. The data may be stored in the nonvolatile memory 40. Specifically, when the measurement value X satisfies the following condition α ′, the storage unit 222 may store information on the measurement value X in the nonvolatile memory 40 as the second log data.

[条件α´]X≧Kthu かつ Xn−1<Kthu
なお、前記実施形態1で説明したログデータ保存処理Iにおいても、測定値Xが所定値(≧第1の閾値)以上となったとき、保存部222は、その時点における測定値Xに関する情報を、第2のログデータとして、不揮発メモリ40に保存してもよい。
[Condition α ′] X ≧ Kthu and Xn−1 <Kthu
Note that also in the log data storage process I described in the first embodiment, when the measurement value X is equal to or greater than a predetermined value (≧ first threshold), the storage unit 222 displays information regarding the measurement value X at that time. The second log data may be stored in the nonvolatile memory 40.

さらに、ログデータ保存処理IIにおいても、測定値Xが所定値(≦第2の閾値Tthl)以下となったとき、保存部222は、その時点における測定値Xに関する情報を、第2のログデータとして、不揮発メモリ40に保存してもよい。   Further, also in the log data storage process II, when the measurement value X becomes equal to or less than a predetermined value (≦ second threshold value Tthl), the storage unit 222 displays information regarding the measurement value X at that time as the second log data. May be stored in the nonvolatile memory 40.

〔実施形態3〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を省略する。
[Embodiment 3]
Another embodiment of the present invention will be described below. For convenience of explanation, members having the same functions as those described in the embodiment are given the same reference numerals, and descriptions thereof are omitted.

前記実施形態2で説明したように、湿度の測定値Xが、湿度の上限値である100%である状態が継続している(100%に貼り付いた)間、不揮発メモリ40に保存された保存最大値は書き換えられない。一方、温度には、湿度の100%のような上限値は存在しない。しかしながら、一般的には、温度の測定値Xにも、データ取得源2の性能に依存する上限値が存在する。   As described in the second embodiment, the humidity measurement value X is stored in the nonvolatile memory 40 while the humidity is 100%, which is the upper limit value of humidity. The stored maximum value cannot be rewritten. On the other hand, there is no upper limit for temperature such as 100% of humidity. However, in general, the temperature measurement value X also has an upper limit value that depends on the performance of the data acquisition source 2.

そこで、本実施形態3では、温度または湿度の測定値Xが、測定値Xが取り得る上限値Xs−max(>Tthu)に達したとき、保存部222は、その時点における測定値X=Xs−maxに関する情報を不揮発メモリ40に保存する。具体的には、保存部222は、以下の条件βを満たす測定値Xを不揮発メモリ40に保存する。   Therefore, in the third embodiment, when the measured value X of temperature or humidity reaches the upper limit value Xs−max (> Tthu) that the measured value X can take, the storage unit 222 measures the measured value X = Xs at that time. Information regarding −max is stored in the nonvolatile memory 40. Specifically, the storage unit 222 stores the measurement value X that satisfies the following condition β in the nonvolatile memory 40.

[条件β]X=Xs−max かつ Xn−1<Xs−max
上記の構成では、測定値Xが上限値Xs−maxになったとき、その時点における測定値Xが、不揮発メモリ40に保存される。また、測定値Xが上限値Xs−maxとなった日時を示す情報も、不揮発メモリ40に保存される。そのため、ユーザは、不揮発メモリ40に保存された上記データを参照することによって、測定値Xが上限値Xs−max以上となった日時を確認することができる。
[Condition β] X = Xs-max and Xn-1 <Xs-max
In the above configuration, when the measurement value X reaches the upper limit value Xs−max, the measurement value X at that time is stored in the nonvolatile memory 40. Information indicating the date and time when the measured value X becomes the upper limit value Xs-max is also stored in the nonvolatile memory 40. Therefore, the user can confirm the date and time when the measured value X is equal to or higher than the upper limit value Xs-max by referring to the data stored in the nonvolatile memory 40.

あるいは、保存部222は、以下の条件γを満たす測定値Xを不揮発メモリ40に保存してもよい。   Alternatively, the storage unit 222 may store the measurement value X that satisfies the following condition γ in the nonvolatile memory 40.

[条件γ]X≧ Tthu かつ Xn−1=X かつ Xn−2<X
ここで、Xn−2は、測定値Xが測定された測定の前々回の測定で測定された測定値Xである。なお、条件γにおいて、Xn−2は、測定値Xが測定された測定の前々回の測定で測定された測定値Xではなく、測定値Xが測定された測定のm回前(mは3以上の任意の数)の測定で測定された測定値Xを表す変数であってもよい。この構成では、保存部222は、条件γに代えて、X≧ TthuかつXn−1=XかつXn−2=X・・・かつXn−(m−1)=XかつXn−m<Xという条件を満たす測定値Xを不揮発メモリ40に保存する。
[Condition γ] X ≧ Tthu and Xn−1 = X and Xn−2 <X
Here, Xn-2 is the measurement value X measured in the measurement before the measurement in which the measurement value X is measured. Note that, in the condition γ, Xn-2 is not the measurement value X measured in the previous measurement before the measurement value X was measured, but m times before the measurement in which the measurement value X was measured (m is 3 or more) It may be a variable representing the measurement value X measured by any number of measurements. In this configuration, the storage unit 222 replaces the condition γ with X ≧ Tthu and Xn−1 = X and Xn−2 = X... And Xn− (m−1) = X and Xn−m <X. The measurement value X that satisfies the condition is stored in the nonvolatile memory 40.

上記の構成では、測定値Xが所定値である状態が所定期間継続したとき、その時点における測定値Xが不揮発メモリ40に保存される。また、ログデータLdには、測定値Xが所定値である状態が所定期間継続した日時を示す情報も不揮発メモリ40に保存される。そのため、ユーザは、不揮発メモリ40に保存された上記データを参照することによって、測定値Xが所定値である状態が所定期間継続した日時を確認することができる。   In the above configuration, when the state where the measurement value X is a predetermined value continues for a predetermined period, the measurement value X at that time is stored in the nonvolatile memory 40. In the log data Ld, information indicating the date and time when the state where the measured value X is a predetermined value has continued for a predetermined period is also stored in the nonvolatile memory 40. Therefore, by referring to the data stored in the nonvolatile memory 40, the user can confirm the date and time when the state where the measurement value X is a predetermined value has continued for a predetermined period.

なお、条件βまたは条件γを満たす測定値Xは、第1のログデータ保存条件1〜3を満たす保存最大値、および、第2のログデータ保存条件A〜Cを満たす保存最小値のどちらとも異なる性質を有する。そのため、保存部222は、条件βまたは条件γを満たす測定値Xを、ログデータLdが占有する記憶領域とは別の記憶領域に保存することが望ましい。   Note that the measured value X that satisfies the condition β or the condition γ is both the maximum storage value that satisfies the first log data storage conditions 1 to 3 and the minimum storage value that satisfies the second log data storage conditions A to C. Have different properties. Therefore, it is desirable that the storage unit 222 stores the measurement value X satisfying the condition β or the condition γ in a storage area different from the storage area occupied by the log data Ld.

〔ソフトウェアによる実現例〕
組み込み装置1の制御部20(特に判定部221および保存部222)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、CPU(Central Processing Unit)を用いてソフトウェアによって実現してもよい。
[Example of software implementation]
The control unit 20 (in particular, the determination unit 221 and the storage unit 222) of the embedded device 1 may be realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like, or a CPU (Central Processing Unit). It may be realized by software using

後者の場合、組み込み装置1は、各機能を実現するソフトウェアであるプログラムの命令を実行するCPU、上記プログラムおよび各種データがコンピュータ(またはCPU)で読み取り可能に記録されたROM(Read Only Memory)または記憶装置(これらを「記録媒体」と称する)、上記プログラムを展開するRAM(Random Access Memory)などを備えている。そして、コンピュータ(またはCPU)が上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記記録媒体としては、「一時的でない有形の媒体」、例えば、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。   In the latter case, the embedded device 1 includes a CPU that executes instructions of a program that is software that implements each function, a ROM (Read Only Memory) in which the program and various data are recorded so as to be readable by a computer (or CPU), or A storage device (these are referred to as “recording media”), a RAM (Random Access Memory) that expands the program, and the like are provided. And the objective of this invention is achieved when a computer (or CPU) reads the said program from the said recording medium and runs it. As the recording medium, a “non-temporary tangible medium” such as a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used. The program may be supplied to the computer via an arbitrary transmission medium (such as a communication network or a broadcast wave) that can transmit the program. The present invention can also be realized in the form of a data signal embedded in a carrier wave in which the program is embodied by electronic transmission.

〔まとめ〕
本発明の態様1に係るデータ保存装置(組み込み装置1)は、時系列の測定値のデータのうち、上記測定値が第1の閾値以上となった時点から、上記測定値が次に上記第1の閾値よりも小さくなる時点までの測定値のデータの中で、該測定値が最大値でありかつ極大値であるという条件を満たす測定値のデータを特定する特定手段(判定部221)と、上記特定手段が特定した測定値のデータを記憶装置(不揮発メモリ40)に保存する保存手段(保存部222)と、を備えている。
[Summary]
In the data storage device (embedded device 1) according to the first aspect of the present invention, from the time point when the measured value becomes equal to or more than the first threshold among the data of the time series measured value, the measured value is Identifying means (determination unit 221) for identifying measurement value data satisfying a condition that the measurement value is a maximum value and a maximum value among the measurement value data up to a time point when the value becomes smaller than one threshold value; And a storage unit (storage unit 222) for storing the data of the measurement value specified by the specifying unit in a storage device (nonvolatile memory 40).

上記の構成によれば、測定値が第1の閾値以上となった時点から、上記測定値が次に第1の閾値よりも小さくなる時点までの測定値のデータの中で、最大値かつ極大値であるという条件を満たす測定値のデータのみが、記憶装置に保存される。例えば、測定値が単調に増大している間または測定値が取り得る上限値に達している間、最新の測定値は常に最大値であるが、極大値ではないので、上記条件は満たされず、測定値は記憶装置に保存されない。   According to the above configuration, the maximum value and the maximum value of the measured value data from the time when the measured value becomes equal to or greater than the first threshold to the time when the measured value becomes smaller than the first threshold next time. Only measurement value data that satisfies the condition of value is stored in the storage device. For example, the latest measurement value is always the maximum value while the measurement value is increasing monotonically or reaching the upper limit that the measurement value can take, but it is not a maximum value, so the above condition is not satisfied, The measured value is not stored in the storage device.

そのため、全ての測定値のデータが記憶に保存される構成と比較して、記憶装置に保存されるデータ量を抑制することができる。その結果、測定値のデータを保存するために必要な記憶装置の容量が減少する。特に、記憶装置がEEPROMやフラッシュメモリ等の小容量な不揮発メモリである場合であっても、測定値のデータを記憶装置に保存することができる。また、記憶装置に保存された測定値のデータが書き換えられる頻度を抑制することができる。そのため、特に、記憶装置がデータの書き換え可能回数に上限を有する不揮発メモリである場合、記憶装置の寿命が長くなる。   Therefore, the amount of data stored in the storage device can be suppressed as compared with a configuration in which data of all measurement values is stored in the storage. As a result, the capacity of the storage device required to store the measured value data is reduced. In particular, even when the storage device is a small-capacity nonvolatile memory such as an EEPROM or a flash memory, the measurement value data can be stored in the storage device. In addition, the frequency of rewriting the measurement value data stored in the storage device can be suppressed. Therefore, in particular, when the storage device is a nonvolatile memory having an upper limit on the number of times data can be rewritten, the life of the storage device is prolonged.

本発明の態様2に係るデータ保存装置(組み込み装置1)は、上記態様1において、上記保存手段(保存部222)は、上記測定値が上記第1の閾値以上に設定された所定値以上の値となった時点を示すデータを上記記憶装置(不揮発メモリ40)にさらに保存してもよい。   The data storage device (embedded device 1) according to aspect 2 of the present invention is the data storage device (embedded device 1) according to aspect 1, wherein the storage means (storage unit 222) has a measured value equal to or greater than a predetermined value set to be equal to or greater than the first threshold value. You may further preserve | save the data which shows the time of becoming a value in the said memory | storage device (nonvolatile memory 40).

上述したように、測定値が単調に増大している間、または、測定値が取り得る上限値に達している間、最新の測定値は常に最大値であるが、極大値ではないので、上記条件は満たされず、測定値は記憶装置に保存されない。   As described above, while the measured value is increasing monotonically or reaching the upper limit that the measured value can take, the latest measured value is always the maximum value, but not the maximum value. The condition is not met and the measured value is not stored in the storage device.

しかしながら、上記の構成によれば、測定値が所定値以上となった時点を示すデータが、記憶装置に保存される。そのため、ユーザは、記憶装置に保存されたデータを参照することによって、少なくとも、測定値が所定値以上となったことと、所定値以上の測定値が測定された時点とを知ることができる。   However, according to the above configuration, data indicating a point in time when the measured value is equal to or greater than the predetermined value is stored in the storage device. Therefore, the user can know at least that the measured value is equal to or greater than the predetermined value and the point in time when the measured value equal to or greater than the predetermined value is measured by referring to the data stored in the storage device.

本発明の態様3に係るデータ保存装置(組み込み装置1)は、上記態様1または2において、上記保存手段(保存部222)は、上記測定値が取り得る上限値に達した時点を示すデータを上記記憶装置(不揮発メモリ40)にさらに保存してもよい。   In the data storage device (embedded device 1) according to aspect 3 of the present invention, in the above aspect 1 or 2, the storage means (storage unit 222) stores data indicating a time point when the measured value reaches an upper limit value that can be taken. You may further preserve | save in the said memory | storage device (nonvolatile memory 40).

上述したように、測定値が単調に増大している間または測定値が取り得る上限値に達している間、最新の測定値は常に最大値であるが、極大値ではないので、上記条件は満たされず、測定値は記憶装置に保存されない。   As mentioned above, while the measured value is increasing monotonically or reaching the upper limit that the measured value can take, the latest measured value is always the maximum value, but not the maximum value, so the above condition is It is not satisfied and the measured value is not stored in the storage device.

しかしながら、上記の構成によれば、測定値が取り得る上限値に達した時点を示すデータが、記憶装置に保存される。そのため、ユーザは、記憶装置に保存されたデータを参照することによって、少なくとも、上記測定値が取り得る上限値に達したことと、上限値の測定値が測定された時点とを知ることができる。   However, according to the above configuration, the data indicating the time point when the measured value reaches the upper limit that can be taken is stored in the storage device. Therefore, by referring to the data stored in the storage device, the user can know at least that the upper limit value that can be taken by the measurement value has been reached and when the measurement value of the upper limit value was measured. .

本発明の態様4に係るデータ保存装置(組み込み装置1)は、上記態様1〜3のいずれかにおいて、上記保存手段(保存部222)は、上記測定値が、上記第1の閾値以上の任意の値に等しい状態が所定期間継続した時点を示すデータを上記記憶装置(不揮発メモリ40)にさらに保存してもよい。   The data storage device (embedded device 1) according to aspect 4 of the present invention is the data storage device (storage device 222) according to any one of the above aspects 1 to 3, wherein the storage means (storage unit 222) has an arbitrary measured value greater than or equal to the first threshold value. Data indicating a point in time when a state equal to the value of 継 続 continues may be stored in the storage device (nonvolatile memory 40).

上述したように、測定値が単調に増大している間または測定値が取り得る上限値に達している間、最新の測定値は常に最大値であるが、極大値ではないので、上記条件は満たされず、測定値は記憶装置に保存されない。   As mentioned above, while the measured value is increasing monotonically or reaching the upper limit that the measured value can take, the latest measured value is always the maximum value, but not the maximum value, so the above condition is It is not satisfied and the measured value is not stored in the storage device.

しかしながら、上記の構成によれば、測定値が所定値である状態が所定期間継続した時点を示すデータが、記憶装置に保存される。そのため、ユーザは、記憶装置に保存されたデータを参照することによって、少なくとも、測定値が所定値である状態が所定期間継続したことと、所定値の測定値が測定された時点とを知ることができる。   However, according to the above configuration, data indicating a point in time when the state where the measurement value is the predetermined value continues for a predetermined period is stored in the storage device. Therefore, by referring to the data stored in the storage device, the user knows at least that the state in which the measurement value is a predetermined value has continued for a predetermined period and the point in time when the measurement value of the predetermined value is measured. Can do.

本発明の態様5に係るデータ保存装置(組み込み装置1)は、時系列の測定値のデータのうち、上記測定値が第2の閾値以下となった時点から、上記測定値が次に上記第2の閾値よりも大きくなる時点までの測定値のデータの中で、該測定値が最小値でありかつ極小値であるという条件を満たす測定値のデータを特定する特定手段(判定部221)と、上記特定手段が特定した測定値のデータを記憶装置(不揮発メモリ40)に保存する保存手段(保存部222)と、を備えている。   In the data storage device (embedded device 1) according to the fifth aspect of the present invention, from the time point when the measured value becomes less than or equal to the second threshold value among the time-series measured value data, the measured value is the second value. A specifying means (determination unit 221) for specifying measurement value data that satisfies a condition that the measurement value is a minimum value and a minimum value among the measurement value data up to a time point when the value becomes larger than a threshold value of 2; And a storage unit (storage unit 222) for storing the data of the measurement value specified by the specifying unit in a storage device (nonvolatile memory 40).

上記の構成によれば、測定値が第2の閾値以下となった時点から、上記測定値が次に第2の閾値よりも大きくなる時点までの測定値のデータの中で、最小値かつ極小値であるという条件を満たす測定値のデータのみが、記憶装置に保存される。例えば、測定値が単調に減少している間または測定値が取り得る下限値に達している間、最新の測定値は常に最小値であるが、極小値ではないので、上記条件は満たされず、測定値は記憶装置に保存されない。   According to the above configuration, the minimum value and the minimum value in the measured value data from the time when the measured value becomes equal to or lower than the second threshold to the time when the measured value becomes larger than the second threshold next time. Only measurement value data that satisfies the condition of value is stored in the storage device. For example, the latest measurement value is always the minimum value while the measurement value is monotonously decreasing or reaches the lower limit value that the measurement value can take, but since it is not a minimum value, the above condition is not satisfied, The measured value is not stored in the storage device.

そのため、全ての測定値のデータが記憶に保存される構成と比較して、記憶装置に保存されるデータ量を抑制することができる。その結果、測定値のデータを保存するために必要な記憶装置の容量が減少する。特に、記憶装置がEEPROMやフラッシュメモリ等の小容量な不揮発メモリである場合であっても、測定値のデータを記憶装置に保存することができる。また、記憶装置に保存された測定値のデータが書き換えられる頻度を抑制することができる。そのため、特に、記憶装置がデータの書き換え可能回数に上限を有する不揮発メモリである場合、記憶装置の寿命が長くなる。   Therefore, the amount of data stored in the storage device can be suppressed as compared with a configuration in which data of all measurement values is stored in the storage. As a result, the capacity of the storage device required to store the measured value data is reduced. In particular, even when the storage device is a small-capacity nonvolatile memory such as an EEPROM or a flash memory, the measurement value data can be stored in the storage device. In addition, the frequency of rewriting the measurement value data stored in the storage device can be suppressed. Therefore, in particular, when the storage device is a nonvolatile memory having an upper limit on the number of times data can be rewritten, the life of the storage device is prolonged.

本発明の態様6に係るデータ保存装置(組み込み装置1)は、上記態様1〜5のいずれかにおいて、上記記憶装置は不揮発メモリであり、上記保存手段(保存部222)は、上記特定手段(判定部221)が特定した測定値のデータを上記記憶装置(不揮発メモリ40)に保存するとき、上記記憶装置に既に保存されている上記測定値のデータに上書きしてもよい。   The data storage device (embedded device 1) according to aspect 6 of the present invention is the data storage device (embedded device 1) according to any one of the above aspects 1 to 5, wherein the storage device is a nonvolatile memory, and the storage unit (storage unit 222) includes the specifying unit ( When the measurement value data specified by the determination unit 221) is stored in the storage device (nonvolatile memory 40), the measurement value data already stored in the storage device may be overwritten.

上記の構成によれば、特定手段によって新たに特定された測定値のデータで、不揮発メモリに既に保存されている測定値のデータが上書きされる。そのため、測定値のデータを保存するために必要な不揮発メモリの容量がさらに抑制される。従って、容量の小さい不揮発メモリであっても、有用な情報を含んだ測定値のデータを保存することができる。また、データを書き換えられる頻度を抑制することができるため、データの書き換え可能回数に上限を有する不揮発メモリであっても、その上限に拘束されず長期間使用することが可能となる。   According to the above configuration, the measurement value data already stored in the nonvolatile memory is overwritten with the measurement value data newly specified by the specifying means. Therefore, the capacity of the nonvolatile memory necessary for storing the measurement value data is further suppressed. Therefore, even in a nonvolatile memory with a small capacity, measured value data including useful information can be stored. In addition, since the frequency at which data can be rewritten can be suppressed, even a non-volatile memory having an upper limit on the number of times data can be rewritten can be used for a long time without being restricted by the upper limit.

本発明の各態様に係るデータ保存装置は、コンピュータによって実現してもよく、この場合には、コンピュータを上記データ保存装置が備える各手段として動作させることにより上記データ保存装置をコンピュータにて実現させるデータ保存装置の制御プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The data storage device according to each aspect of the present invention may be realized by a computer. In this case, the data storage device is realized by a computer by causing the computer to operate as each unit included in the data storage device. A control program for the data storage device and a computer-readable recording medium that records the control program also fall within the scope of the present invention.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。   The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. Is also included in the technical scope of the present invention. Furthermore, a new technical feature can be formed by combining the technical means disclosed in each embodiment.

本発明は、時系列の測定値のデータを記憶装置に保存するデータ保存装置に利用することができる。   The present invention can be used in a data storage device that stores time-series measurement value data in a storage device.

1 組み込み装置(データ保存装置)
21 データ前処理部(データ取得手段)
40 不揮発メモリ(記憶装置)
221 判定部(特定手段)
222 保存部(保存手段)
1 Embedded device (data storage device)
21 Data preprocessing unit (data acquisition means)
40 Nonvolatile memory (storage device)
221 determination unit (specifying means)
222 Storage unit (storage means)

Claims (6)

時系列の測定値のデータのうち、上記測定値が第1の閾値以上となった時点から、上記測定値が次に上記第1の閾値よりも小さくなる時点までの測定値のデータの中で、該測定値が最大値でありかつ極大値であるという条件を満たす測定値のデータを特定する特定手段と、
上記特定手段が特定した測定値のデータを記憶装置に保存する保存手段と、を備えたことを特徴とするデータ保存装置。
Among the time-series measurement value data, the measurement value data from the time when the measurement value is equal to or greater than the first threshold to the time when the measurement value is next smaller than the first threshold. A specifying means for specifying data of a measured value that satisfies a condition that the measured value is a maximum value and a maximum value;
A data storage device comprising: storage means for storing data of measurement values specified by the specifying means in a storage device.
上記保存手段は、上記測定値が上記第1の閾値以上に設定された所定値以上の値となった時点を示すデータを上記記憶装置にさらに保存することを特徴とする請求項1に記載のデータ保存装置。   The said storage means further stores the data which shows the time when the said measured value became a value more than the predetermined value set more than the said 1st threshold value in the said memory | storage device. Data storage device. 上記保存手段は、上記測定値が取り得る上限値に達した時点を示すデータを上記記憶装置にさらに保存することを特徴とする請求項1または2に記載のデータ保存装置。   The data storage device according to claim 1, wherein the storage unit further stores in the storage device data indicating a point in time when the measured value has reached an upper limit that can be taken. 上記保存手段は、上記測定値が、上記第1の閾値以上の任意の値に等しい状態が所定期間継続した時点を示すデータを上記記憶装置にさらに保存することを特徴とする請求項1〜3のいずれか1項に記載のデータ保存装置。   The storage unit further stores in the storage device data indicating a point in time when the measured value is equal to an arbitrary value equal to or greater than the first threshold for a predetermined period. The data storage device according to any one of the above. 時系列の測定値のデータのうち、上記測定値が第2の閾値以下となった時点から、上記測定値が次に上記第2の閾値よりも大きくなる時点までの測定値のデータの中で、該測定値が最小値でありかつ極小値であるという条件を満たす測定値のデータを特定する特定手段と、
上記特定手段が特定した測定値のデータを記憶装置に保存する保存手段と、を備えたことを特徴とするデータ保存装置。
Among the time-series measurement value data, the measurement value data from the time point when the measurement value becomes equal to or smaller than the second threshold value to the time point when the measurement value becomes larger than the second threshold value next. Specifying means for specifying data of a measured value that satisfies a condition that the measured value is a minimum value and a minimum value;
A data storage device comprising: storage means for storing data of measurement values specified by the specifying means in a storage device.
上記記憶装置は不揮発メモリであり、
上記保存手段は、上記特定手段が特定した測定値のデータを上記記憶装置に保存するとき、上記記憶装置に既に保存されている上記測定値のデータに上書きすることを特徴とする請求項1〜5のいずれか1項に記載のデータ保存装置。
The storage device is a nonvolatile memory,
The storage means overwrites the measurement value data already stored in the storage device when the measurement value data specified by the specification means is stored in the storage device. 6. The data storage device according to any one of 5 above.
JP2014129508A 2014-06-24 2014-06-24 Data storage device Pending JP2016008885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014129508A JP2016008885A (en) 2014-06-24 2014-06-24 Data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014129508A JP2016008885A (en) 2014-06-24 2014-06-24 Data storage device

Publications (1)

Publication Number Publication Date
JP2016008885A true JP2016008885A (en) 2016-01-18

Family

ID=55226531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014129508A Pending JP2016008885A (en) 2014-06-24 2014-06-24 Data storage device

Country Status (1)

Country Link
JP (1) JP2016008885A (en)

Similar Documents

Publication Publication Date Title
US8873323B2 (en) Method of executing wear leveling in a flash memory device according to ambient temperature information and related flash memory device
JP5814335B2 (en) Reduction of writing and estimation and display of remaining life of nonvolatile memory
US20110119430A1 (en) Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage sysem using the same
JP5986607B2 (en) Data storage device and data maintenance method
US20110219203A1 (en) Method and device for temperature-based data refresh in non-volatile memories
CN105579970A (en) Electronic system with storage drive life estimation mechanism and method of operation thereof
US20170359621A1 (en) Standby mode control apparatus and method based on context information and usage pattern analysis for saving power consumption of terminal
US9703496B2 (en) Information processing device, information processing method, and medium
US10802752B2 (en) Memory system for controlling memory access based on access time of memory
JP2022077972A (en) Method and system for controlling temperature of data storage device
JP5088479B2 (en) Data recording device
JP2016008885A (en) Data storage device
TWI614606B (en) System and methods for increasing useful lifetime of a flash memory device
JP5983512B2 (en) Writing device
CN112925474B (en) Control method of terminal equipment, storage medium and terminal equipment
JP2013246533A (en) Electronic apparatus, memory management system, and memory management method
US20160275011A1 (en) Microcomputer with built-in flash memory, method for writing data to built-in flash memory of microcomputer, and program for writing data to flash memory
JP2013097575A (en) Semiconductor disk lifetime monitoring device
JPWO2009040945A1 (en) Monitoring device and program
JP2019007669A (en) Controller, air conditioner, and method for setting update period of operational data
KR101677532B1 (en) Data storage device and method for restricting access thereof
TWI662476B (en) Method and device for recording time series data
US8595433B2 (en) Systems and methods for managing destage conflicts
JP6857068B2 (en) Time series data recording method and equipment
JP2010145890A (en) Image display device, image display method, and program