JP2002367052A - Method and device for recording alarm data and portable gas alarm device - Google Patents

Method and device for recording alarm data and portable gas alarm device

Info

Publication number
JP2002367052A
JP2002367052A JP2001175596A JP2001175596A JP2002367052A JP 2002367052 A JP2002367052 A JP 2002367052A JP 2001175596 A JP2001175596 A JP 2001175596A JP 2001175596 A JP2001175596 A JP 2001175596A JP 2002367052 A JP2002367052 A JP 2002367052A
Authority
JP
Japan
Prior art keywords
alarm
data
alarm signal
detection data
writing
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.)
Granted
Application number
JP2001175596A
Other languages
Japanese (ja)
Other versions
JP4373032B2 (en
Inventor
Shoji Kizaki
昭二 木崎
Masayuki Uchida
雅之 内田
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.)
Riken Keiki KK
Original Assignee
Riken Keiki KK
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 Riken Keiki KK filed Critical Riken Keiki KK
Priority to JP2001175596A priority Critical patent/JP4373032B2/en
Publication of JP2002367052A publication Critical patent/JP2002367052A/en
Application granted granted Critical
Publication of JP4373032B2 publication Critical patent/JP4373032B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Emergency Alarm Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a recording method and a recording device which enable sure obtainment of alarm data when the latest alarm signal is generated and to provide a portable gas alarm device which can securely obtain desired alarm data without impeding other alarm processes and has high safety. SOLUTION: The recording method is characterized by using two ring buffer and then wiring detection data after alarm signal generation to the two ring buffers double by starting writing the detection data to one ring buffer simultaneously with the start of measurement of an object to be detected and starting writing the detection data to the other ring buffer simultaneously with the generation of an alarm signal. The recording device is equipped with the two ring buffers, an alarm data writing means, and a control means which controls the operation state of the alarm data writing means so that the recording method is implemented. The gas alarm device is equipped with the recording device.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、警報データの記録
方法および警報データ記録装置並びに携帯用ガス警報装
置に関する。
The present invention relates to a method for recording alarm data, an alarm data recording device, and a portable gas alarm device.

【0002】[0002]

【従来の技術】例えば、ガス漏洩などを検知するガス警
報装置においては、警報信号が発せられた時点における
検知対象ガスについてのガス濃度などの検知データを保
存するためのデータ記録装置が備えられた構成のものが
知られており、取得された検知データは、ガス漏洩の発
生状況の分析やガス漏洩による災害を未然に防ぐために
利用されている。
2. Description of the Related Art For example, a gas alarm device for detecting a gas leak or the like is provided with a data recording device for storing detection data such as a gas concentration of a detection target gas at the time when an alarm signal is issued. The configuration is known, and the obtained detection data is used to analyze the occurrence state of gas leakage and to prevent disasters due to gas leakage.

【0003】このようなガス警報装置におけるデータ記
録装置の一例として、電源が遮断された場合であって
も、検知データが消滅されないよう例えばEEPROM
などの不揮発性メモリを備え、この不揮発性メモリ上
に、いわゆるリングバッファが構成されたものがあり、
このようなデータ記録装置においては、ガス検知手段に
より検知される検知データをリングバッファに順次に書
き込むことによって、警報信号発生時における検知デー
タ、具体的には、警報発生前後、それぞれ所定時間の検
知データ(以下、「警報データ」という。)が保存され
る。
As an example of a data recording device in such a gas alarm device, an EEPROM is provided so that even if power is cut off, detected data is not lost.
There is a type in which a so-called ring buffer is configured on this nonvolatile memory.
In such a data recording device, the detection data detected by the gas detection means is sequentially written into the ring buffer, so that the detection data at the time of generation of the alarm signal, specifically, the detection of the predetermined time before and after the generation of the alarm, respectively. Data (hereinafter, referred to as “alarm data”) is stored.

【0004】ガス警報装置を使用するに際して、最初の
警報信号が発せられた後、さらに次の警報信号が発せら
れる場合も少なくない。しかしながら、上記の構成のガ
ス警報装置においては、通常、最初の警報信号時の警報
データの書き込みが終了した時点で電源が遮断される構
成とされているため、最初の警報信号が発せられた後
に、さらに次の警報信号が発せられた場合には、次の警
報信号発生時における警報データを取得することができ
ない、という問題がある。
[0004] In using the gas alarm device, there are many cases where the next alarm signal is issued after the first alarm signal is issued. However, in the gas alarm device having the above-described configuration, the power is normally shut off at the time when the writing of the alarm data at the time of the first alarm signal is completed, so that after the first alarm signal is issued. Further, when the next alarm signal is issued, there is a problem that the alarm data at the time of the next alarm signal cannot be acquired.

【0005】このような問題に対して、2つのリングバ
ッファを使用して、次の警報信号が発せられた場合であ
っても、当該警報信号に対応することができるよう構成
されたものが知られている。このようなデータ記録装置
においては、図4に示すように、各々のリングバッファ
A、Bの動作状態が制御される。すなわち、検知対象ガ
スの計測を開始するのと同時に、一方のリングバッファ
Aに対して、検知データの書き込みが開始され、最初の
警報信号(図4においては、「1次警報」と示してあ
る。)が発せられた後、所定時間、例えば15分間(図
において、丸数字で示す。)経過した時点で、一方のリ
ングバッファAに対する検知データの書き込みが終了さ
れて、警報信号発生時における警報データとして保存さ
れる。そして、一方のリングバッファAに対する検知デ
ータの書き込みが終了するのと同時に、次の警報信号に
備えて、他方のリングバッファBに対して検知データの
書き込みが開始される。
[0005] In order to solve such a problem, there is known a configuration in which two ring buffers are used to respond to the alarm signal even when the next alarm signal is issued. Have been. In such a data recording device, as shown in FIG. 4, the operation state of each of the ring buffers A and B is controlled. That is, at the same time as the measurement of the detection target gas is started, the writing of the detection data to one of the ring buffers A is started, and the first alarm signal (in FIG. 4, “primary alarm” is indicated). ) Is issued, when a predetermined time, for example, 15 minutes (indicated by a circle in the figure) has elapsed, the writing of the detection data to one of the ring buffers A is terminated, and an alarm when an alarm signal is generated is generated. Saved as data. Then, at the same time when the writing of the detection data to one ring buffer A is completed, the writing of the detection data to the other ring buffer B is started in preparation for the next alarm signal.

【0006】而して、このようなデータ記録装置では、
例えば、必要とされる警報データが、警報発生前後、そ
れぞれ15分間ずつ、合計30分間のものである場合に
おいて、一方のリングバッファAに対する検知データの
書き込みが終了されてから15分間が経過する以前(図
示の例では、10分後)に、次の警報信号(2次警報信
号)が発せられた場合には、2次警報信号発生前の所定
時間の検知データを取得することができない、という問
題がある。
In such a data recording apparatus,
For example, in a case where the required alarm data is 15 minutes before and after the alarm is generated, each of which is 15 minutes in total, and is 30 minutes in total, before 15 minutes elapse after the writing of the detection data to one ring buffer A is completed. If the next alarm signal (secondary alarm signal) is issued (after 10 minutes in the illustrated example), detection data for a predetermined time before the secondary alarm signal is generated cannot be obtained. There's a problem.

【0007】[0007]

【発明が解決しようとする課題】本発明は、以上のよう
な事情に基づいてなされたものであって、その目的は、
最新の警報信号発生前後の所定時間の警報データを確実
に取得することができる警報データの記録方法および記
録装置を提供することにある。本発明の他の目的は、他
の警報処理に支障をきたすことなしに、所望の警報デー
タを確実に得ることができ、従って、高い安全性を有す
る携帯用ガス警報装置を提供することにある。
DISCLOSURE OF THE INVENTION The present invention has been made based on the above circumstances, and its object is to provide:
It is an object of the present invention to provide a method and a device for recording alarm data that can reliably acquire alarm data for a predetermined time before and after the latest alarm signal is generated. Another object of the present invention is to provide a portable gas alarm device that can reliably obtain desired alarm data without interfering with other alarm processing and therefore has high safety. .

【0008】[0008]

【課題を解決するための手段】本発明の警報データの記
録方法は、各々、不揮発性メモリを用いて構成された2
つのリングバッファを使用して、検知対象物についての
警報信号の発生前後における所定時間の検知データより
なる警報データを記録する方法であって、検知対象物の
計測を開始するのと同時に、一方のリングバッファに対
する検知データの書き込みが開始され、警報信号が発せ
られるのと同時に、他方のリングバッファに対する検知
データの書き込みが開始されて、警報信号発生後の検知
データの書き込みが2つのリングバッファに対して二重
に行われることを特徴とする。
According to the present invention, there is provided a method for recording alarm data, comprising the steps of:
A method of using two ring buffers to record alarm data consisting of detection data for a predetermined time before and after the generation of an alarm signal for a detection target. At the same time when the writing of the detection data to the ring buffer is started and the alarm signal is issued, the writing of the detection data to the other ring buffer is started, and the writing of the detection data after the generation of the alarm signal is performed to the two ring buffers. It is characterized by being performed twice.

【0009】本発明の記録方法においては、一方のリン
グバッファに対して、先の警報信号発生時における警報
データが保存されていると共に、他方のリングバッファ
に対して、先の警報信号発生後の検知データの書き込み
が継続して行われている状態において、さらに、次の警
報信号が発せられた場合には、先の警報信号発生時にお
ける警報データが保存された一方のリングバッファに対
して、次の警報信号発生後の検知データの上書きが行わ
れると共に、当該次の警報信号発生時における最新の警
報データが他方のリングバッファに保存される。
In the recording method of the present invention, the alarm data at the time of the generation of the previous alarm signal is stored in one of the ring buffers, and the data after the generation of the previous alarm signal is stored in the other ring buffer. In the state where the writing of the detection data is continuously performed, further, when the next alarm signal is issued, one of the ring buffers in which the alarm data at the time of the previous alarm signal generation is stored, The detection data after the generation of the next alarm signal is overwritten, and the latest alarm data at the time of the generation of the next alarm signal is stored in the other ring buffer.

【0010】また、本発明の記録方法においては、先の
警報信号発生時における検知データの書き込みが両方の
リングバッファに対して行われている状態において、さ
らに、次の警報信号が発せられた場合には、先の警報信
号発生時における警報データとされるべき検知データの
書き込みが行われている一方のリングバッファにおい
て、次の警報信号発生後の検知データの上書きが行われ
て、当該次の警報信号発生時における最新の警報データ
に書き換えられる。
Further, in the recording method of the present invention, when the next alarm signal is issued while the detection data is being written to both ring buffers when the previous alarm signal is generated. In the ring buffer in which the detection data to be used as the alarm data at the time of the previous alarm signal generation is being written, the detection data after the next alarm signal is generated is overwritten, and the next Rewritten with the latest alarm data when the alarm signal is generated.

【0011】さらに、本発明の記録方法においては、検
知対象物の計測が開始されて最初の警報信号の発生時に
おいて、警報信号発生前の所定時間の検知データが得ら
れない場合には、不足分の検知データの書き込みを行わ
ずに、警報データがリングバッファにおけるデータ記録
領域にブランク領域が形成された状態で保存される。
Further, in the recording method of the present invention, when the detection of an object to be detected is started and the first alarm signal is generated, if the detection data for a predetermined time before the generation of the alarm signal is not obtained, the shortage occurs. The alarm data is stored in a state where a blank area is formed in the data recording area of the ring buffer without writing the minute detection data.

【0012】本発明の警報データ記録装置は、各々、不
揮発性メモリを用いて構成された2つのリングバッファ
と、このリングバッファに警報データを書き込む警報デ
ータ書き込み手段と、上記の記録方法が実行されるよ
う、警報データ書き込み手段の動作状態を制御する制御
手段とを備えてなることを特徴とする。
In the alarm data recording apparatus of the present invention, two ring buffers each constituted by using a non-volatile memory, alarm data writing means for writing alarm data to the ring buffer, and the above recording method are executed. Control means for controlling the operation state of the alarm data writing means.

【0013】本発明の警報データ記録装置においては、
各々のリングバッファは、そのデータ記録領域における
検知データの記録可能時間が30分間のものであり、警
報信号発生前後、それぞれ15分間ずつの検知データが
保存される構成とすることができる。
In the alarm data recording device of the present invention,
Each ring buffer has a recordable time of 30 minutes for detection data in its data recording area, and can store 15 minutes of detection data before and after an alarm signal is generated.

【0014】また、本発明の警報データ記録装置におい
ては、制御手段は、等時間隔毎において最大値を示す検
知対象物についての検知データがリングバッファに書き
込まれるよう検知データを選定する機能を有する構成と
することができる。
Further, in the alarm data recording device of the present invention, the control means has a function of selecting the detection data so that the detection data of the detection target having the maximum value at the same time interval is written to the ring buffer. It can be configured.

【0015】本発明の携帯用ガス警報装置は、上記の警
報データ記録装置を備えてなることを特徴とする。
[0015] A portable gas alarm device according to the present invention is provided with the alarm data recording device described above.

【0016】[0016]

【作用】本発明によれば、警報信号が発せられた際に、
検知データの書き込みが各々のリングバッファに対して
二重に行われることにより、当該警報信号が発せられた
後、いずれの時に次の警報信号が発せられた場合であっ
ても、当該警報信号発生前の所定時間の検知データを確
実に保存することができるので、所望の警報データを確
実に取得することができる。
According to the present invention, when an alarm signal is issued,
Since the writing of the detection data is performed twice for each ring buffer, the alarm signal is generated regardless of when the next alarm signal is generated at any time after the alarm signal is generated. Since the detection data of the previous predetermined time can be reliably stored, desired alarm data can be reliably obtained.

【0017】[0017]

【発明の実施の形態】以下においては、本発明をガス警
報装置に適用した場合について説明するが、特に、身体
的な障害を伴うことなしに曝露可能とされる有毒ガスの
短期曝露限界(STEL;Short−Term Ex
posure Limit)が、通常、15分間程度と
されていることから、警報信号発生前後、それぞれ15
分間ずつ、合計30分間の検知データを、その警報信号
発生時における警報データとして取得する場合を例に挙
げて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The case where the present invention is applied to a gas alarm device will be described below. In particular, the short-term exposure limit (STEL) of a toxic gas which can be exposed without physical disability is described. ; Short-Term Ex
Positive Limit) is usually set to about 15 minutes.
A case will be described as an example in which detection data for a total of 30 minutes is acquired as alarm data at the time of generation of the alarm signal.

【0018】本発明のガス警報装置は、互いに異なる複
数種、例えば4種のガスの濃度が検知可能とされたガス
検知手段と、このガス検知手段により検知される検知対
象ガスについての検知データを記録する警報データ記録
装置と、この警報データ記録装置の作動を後述する特定
の記録方法が実行されるよう制御する制御手段と、ガス
検知手段により検知されるいずれか一種の検知対象ガス
が所定のガス濃度を超えた場合に警報信号を発する警報
手段とを備えている。制御手段は、等時間隔毎において
最大値を示す検知対象ガスについての検知データが記録
されるよう、ガス検知手段により検知された検知データ
を選定する機能を有する。
[0018] The gas alarm device of the present invention includes gas detecting means capable of detecting the concentrations of a plurality of different gases, for example, four kinds of gases, and detection data on the gas to be detected detected by the gas detecting means. An alarm data recording device for recording, control means for controlling the operation of the alarm data recording device so that a specific recording method described later is executed, and any one type of detection target gas detected by gas detection means Alarm means for issuing an alarm signal when the gas concentration is exceeded. The control means has a function of selecting the detection data detected by the gas detection means so that the detection data for the detection target gas having the maximum value is recorded at every equal time interval.

【0019】検知対象ガスは、特に制限されるものでは
ないが、例えば炭化水素ガス、硫化水素ガス、酸素ガ
ス、一酸化炭素ガス、炭化水素ガス、メタンガス、ブタ
ンガスその他の可燃性ガス、毒性ガスなどが挙げられ
る。
The gas to be detected is not particularly limited. For example, hydrocarbon gas, hydrogen sulfide gas, oxygen gas, carbon monoxide gas, hydrocarbon gas, methane gas, butane gas, other flammable gas, toxic gas, etc. Is mentioned.

【0020】警報データ記録装置は、各々、例えばEE
PROMなどの不揮発性メモリ上に形成された2つのリ
ングバッファと、これらのリングバッファにおけるデー
タ記録領域にデータを書き込むための警報データ書き込
み手段とを備えている。各々のリングバッファは、その
データ記録領域における検知データの記録可能時間が例
えば30分間のものである。
Each of the alarm data recording devices is, for example, EE
It has two ring buffers formed on a non-volatile memory such as a PROM, and alarm data writing means for writing data to a data recording area in these ring buffers. Each ring buffer has a recordable time of the detection data in the data recording area of, for example, 30 minutes.

【0021】上記の警報データ記録装置においては、以
下に詳細に説明するように、制御手段によって、最新の
警報信号発生時における警報データが保存されるよう、
各々のリングバッファの動作状態が制御される。
In the above-mentioned alarm data recording device, as described in detail below, the control means stores the latest alarm data at the time of the latest alarm signal generation.
The operating state of each ring buffer is controlled.

【0022】詳細に説明すると、図1に示すように、ガ
ス検知手段によって検知対象ガスの計測が開始されるの
と同時に、一方のリングバッファAにおける所定の書き
込み位置(図1(イ)においては、矢印で示されてい
る。)に対して、各々の検知対象ガスについての検知デ
ータの書き込みが適宜の識別情報と共に行われて、ガス
検知手段よりの順次の検知データが、リングバッファA
においてリング状に並ぶ書き込み位置の各々に対して順
次に行われる。ここに、リングバッファに書き込まれる
検知データは、等時間間隔、例えば5秒間隔毎における
ガス濃度のピーク値であって、すべての検知対象ガスに
ついての検知データが同一の書き込み位置に保存され
る。
More specifically, as shown in FIG. 1, the measurement of the gas to be detected is started by the gas detecting means, and at the same time, a predetermined writing position in one of the ring buffers A (in FIG. , Indicated by arrows), the detection data for each gas to be detected is written together with appropriate identification information, and the sequential detection data from the gas detection means is stored in the ring buffer A.
Are sequentially performed for each of the write positions arranged in a ring. Here, the detection data written to the ring buffer is a peak value of the gas concentration at equal time intervals, for example, every 5 seconds, and the detection data for all the detection target gases is stored at the same writing position.

【0023】その後、検知対象ガスのいずれか1種が所
定のガス濃度を超えたことが検知されて最初の警報信号
(以下、「1次警報信号」という。)が発せられると、
それと同時に、他方のリングバッファBにおける所定の
書き込み位置に対して、検知データの書き込みが開始さ
れて、1次警報信号発生後の検知データの書き込みが2
つのリングバッファA、Bに対して二重に行われる。
Thereafter, when it is detected that any one of the gases to be detected has exceeded the predetermined gas concentration and the first alarm signal (hereinafter, referred to as "primary alarm signal") is issued,
At the same time, the writing of the detection data to the predetermined write position in the other ring buffer B is started, and the writing of the detection data after the generation of the primary alarm signal is performed for 2 seconds.
This operation is performed twice for one ring buffer A and B.

【0024】1次警報信号が発せられて15分間(図1
(ロ)において丸数字で示す。)が経過した時点で、一
方のリングバッファAに対する検知データの書き込みが
終了されるが、次の警報信号(以下、「2次警報信号」
という。)が発せられる場合に備えて、他方のリングバ
ッファBに対する検知データの書き込みが継続して行わ
れる。
The primary alarm signal is issued for 15 minutes (FIG. 1)
In (b), it is indicated by a circle. ), The writing of the detection data to one of the ring buffers A is terminated, but the next alarm signal (hereinafter, “secondary alarm signal”)
That. ) Is issued, the writing of the detection data to the other ring buffer B is continuously performed.

【0025】そして、一方のリングバッファAに対する
検知データの書き込みが終了されてから、例えば10分
間が経過した後、さらに、2次警報信号が発せられた場
合には、2次警報信号発生と同時に、1次警報データが
既に保存されている一方のリングバッファAに対して、
2次警報信号発生後の検知データの上書きが開始され
て、さらに次の警報信号に備えて検知データの書き換え
が行われる。
If, for example, 10 minutes have passed since the writing of the detection data to one of the ring buffers A was completed, and a secondary alarm signal was issued, the secondary alarm signal was generated at the same time. For one ring buffer A in which the primary alarm data is already stored,
Overwriting of the detection data after the generation of the secondary alarm signal is started, and the detection data is rewritten in preparation for the next alarm signal.

【0026】一方、2次警報信号が発せられて15分間
が経過した時点で、他方のリングバッファBに対する検
知データの書き込みが終了されることになるが、他方の
リングバッファBに対する検知データの書き込みが開始
されてからの10分間の検知データが保存されているデ
ータ書き込み領域には、2次警報信号発生後の検知デー
タが上書きされて、その結果、2次警報信号、すなわち
最新の警報信号時における2次警報データが他方のリン
グバッファBに保存される。
On the other hand, when 15 minutes have passed since the secondary alarm signal was issued, the writing of the detection data to the other ring buffer B is terminated. In the data writing area in which the detection data for 10 minutes after the start of the operation is started, the detection data after the secondary alarm signal is generated is overwritten, and as a result, the secondary alarm signal, that is, the latest alarm signal Is stored in the other ring buffer B.

【0027】その後さらに、次の警報信号が発せられた
場合には、常に、最新の警報信号発生時における警報デ
ータが、いずれか一方のリングバッファに保存されるよ
う、上記のような動作が繰り返し行われる。
After that, when the next alarm signal is issued, the above operation is repeated so that the alarm data at the time of the latest alarm signal generation is always stored in one of the ring buffers. Done.

【0028】以上において、1次警報信号発生時におけ
る検知データの書き込みが両方のリングバッファA、B
に対して行われている状態において、さらに、2次警報
信号が発せられた場合には、図2に示すように、1次警
報データとされるべき検知データの書き込みが行われて
いる一方のリングバッファAに対して、2次警報信号発
生後の検知データが上書きされて、一方のリングバッフ
ァAにおけるデータ記録領域が2次警報信号発生時にお
ける検知データに書き換えられ、2次警報信号が発せら
れて15分間が経過した時点で、一方のリングバッファ
Aに対する検知データの書き込みが終了される。
As described above, when the primary alarm signal is generated, the writing of the detection data is performed by both the ring buffers A and B.
If a secondary alarm signal is further issued in the state where the detection data is being written, the detection data to be used as the primary alarm data is written as shown in FIG. The detection data after the generation of the secondary alarm signal is overwritten on the ring buffer A, the data recording area in one of the ring buffers A is rewritten with the detection data when the secondary alarm signal is generated, and the secondary alarm signal is generated. When 15 minutes have elapsed after that, the writing of the detection data to one of the ring buffers A is completed.

【0029】また、検知データの書き込みを開始してか
ら15分間が経過する以前に、1次警報信号が発せられ
ると共に、その後、2次警報信号が発せられない場合、
すなわち、最新の警報信号(1次警報信号)発生前の所
定時間(15分間)の検知データを取得することができ
ない場合には、図3に示すように、1次警報データとさ
れるべき検知データの書き込みが行われている一方のリ
ングバッファAに対して、1次警報発生前の検知データ
の不足分の代わりに、1次警報発生後の検知データを余
分に書き込むことは行わずに、データ記録領域にブラン
ク領域が形成された状態において、検知データの書き込
みが終了される。
When a primary alarm signal is issued before 15 minutes have elapsed since the start of writing the detection data, and a secondary alarm signal is not issued thereafter,
That is, when it is not possible to acquire the detection data for a predetermined time (15 minutes) before the latest alarm signal (primary alarm signal) is generated, as shown in FIG. Instead of writing extra detection data after the occurrence of the primary alarm to one of the ring buffers A to which data is written, instead of the shortage of the detection data before the occurrence of the primary alarm, In a state where the blank area is formed in the data recording area, the writing of the detection data is completed.

【0030】上記の警報データの記録方法によれば、警
報信号が発せられた際に、検知データの書き込みが各々
のリングバッファA、Bに対して二重に行われることに
より、当該警報信号が発せられた後、いずれの時に次の
警報信号が発せられた場合であっても、当該警報信号発
生前の所定時間の検知データを確実に保存することがで
きるので、所望の警報データを確実に取得することがで
きる。
According to the above-described alarm data recording method, when an alarm signal is issued, the detection data is written to each of the ring buffers A and B twice, so that the alarm signal is generated. Regardless of the case where the next alarm signal is issued at any time after being issued, the detection data for a predetermined time before the generation of the alarm signal can be reliably stored, so that the desired alarm data can be reliably obtained. Can be obtained.

【0031】具体的には、警報データとして、警報信号
発生前後、それぞれ15分間の検知データを保存する場
合において、一方のリングバッファAに対して、1次警
報信号発生時における警報データが保存されていると共
に、他方のリングバッファBに対して、1次警報信号発
生後の検知データの書き込みが継続して行われている状
態、すなわち、1次警報信号が発せられてから15分間
以上が経過した後に、2次警報信号が発せられた際に
は、従来の二重リングバッファ構造のものであれば、確
実に取得することができなかった2次警報信号発生前の
15分間の検知データが他方のリングバッファBに書き
込まれているので、2次警報信号が発せられてから15
分間が経過した時点で、検知データの書き込みが終了さ
れることにより、2次警報信号発生時における警報デー
タが取得されると共に、一方のリングバッファAに保存
された警報データは書き換え可能な状態となり、2次警
報信号発生と同時に検知データの上書きが開始されて次
の警報信号に備えられ、従って、常に、最新の警報信号
発生時における警報データを確実に取得することができ
る。
More specifically, when the detection data for 15 minutes before and after the generation of the alarm signal is stored as the alarm data, the alarm data when the primary alarm signal is generated is stored in one ring buffer A. While the detection data after the generation of the primary alarm signal is continuously written to the other ring buffer B, that is, 15 minutes or more have elapsed since the primary alarm signal was issued. Then, when the secondary alarm signal is issued, if the conventional double ring buffer structure is used, the detection data for 15 minutes before the secondary alarm signal generation, which could not be obtained reliably, is Since the data has been written to the other ring buffer B, 15 seconds after the secondary alarm signal is issued.
When the minutes have elapsed, the writing of the detection data is terminated, so that the alarm data at the time of the generation of the secondary alarm signal is obtained, and the alarm data stored in one of the ring buffers A becomes a rewritable state. Second, the overwriting of the detection data is started simultaneously with the generation of the secondary alarm signal, and is prepared for the next alarm signal. Therefore, the alarm data at the time of the latest alarm signal generation can always be reliably obtained.

【0032】また、1次警報信号発生時における検知デ
ータの書き込みが両方のリングバッファに対して行われ
ている状態、すなわち1次警報信号が発せられてから1
5分間が経過する以前に、2次警報信号が発せられた際
には、1次警報信号発生時における1次警報データとさ
れるべき検知データの書き込みが行われている一方のリ
ングバッファAにおいて、2次警報信号発生後の検知デ
ータの上書きが行われて、一方のリングバッファにおけ
るデータ記録領域が2次警報信号発生時における警報デ
ータに書き換えられることにより、他方のリングバッフ
ァBが次の警報信号に備えられた状態において、2次警
報信号発生時における警報データを一方のリングバッフ
ァAに保存することができ、従って、常に、最新の警報
信号発生時における警報データを確実に取得することが
できる。
The state where the detection data is written to both ring buffers when the primary alarm signal is generated, that is, one cycle after the primary alarm signal is issued.
If the secondary alarm signal is issued before the lapse of 5 minutes, the detection data to be used as the primary alarm data at the time of the generation of the primary alarm signal is written in one of the ring buffers A. The detection data after the generation of the secondary alarm signal is overwritten, and the data recording area in one ring buffer is rewritten with the alarm data at the time of the generation of the secondary alarm signal, so that the other ring buffer B receives the next alarm. In the state provided for the signal, the alarm data when the secondary alarm signal is generated can be stored in one of the ring buffers A, and therefore, the latest alarm data when the latest alarm signal is generated can always be reliably obtained. it can.

【0033】また、上記の警報データの記録方法によれ
ば、最初の警報信号発生時における警報信号発生前の所
定時間の検知データを取得することができない場合に
は、データ記録領域にブランク領域が形成された状態に
おいて警報データが保存されることにより、警報信号発
生前の検知データと警報発生後の検知データとの認識を
確実に行うことができ、警報データの読み出しを容易に
行うことができる。
According to the above-described alarm data recording method, when it is not possible to acquire detection data for a predetermined time before the generation of the alarm signal at the time of the first generation of the alarm signal, a blank area is formed in the data recording area. By storing the alarm data in the formed state, it is possible to reliably recognize the detection data before the generation of the alarm signal and the detection data after the generation of the alarm, and to easily read the alarm data. .

【0034】上記の警報データ記録装置によれば、以上
のような記録方法が実施されるので、最新の警報信号発
生時における警報データを確実に取得することができる
ことに加え、リングバッファ構造が形成された不揮発性
メモリが用いられているので、所定時間の検知データを
書き込むために必要とされる最低限の容量のものを用い
ればよく、従って、メモリの消費電力を低減させること
ができ、しかも警報データ記録装置それ自体を小型のも
のとすることができる。
According to the above-described alarm data recording apparatus, the above-described recording method is performed, so that the alarm data at the time of the latest alarm signal generation can be reliably obtained, and the ring buffer structure is formed. Since the non-volatile memory is used, it is only necessary to use a memory having a minimum capacity required for writing detection data for a predetermined time. Therefore, power consumption of the memory can be reduced, and The alarm data recording device itself can be made compact.

【0035】上記のガス警報装置によれば、以上のよう
な警報データ記録装置を備えているので、検知対象ガス
についての検知データが順次に書き込まれることによ
り、他の警報処理に支障をきたすことなしに、最新の警
報信号発生時における警報データを確実に取得すること
ができ、従って、高い安全性を得ることができると共
に、保存された警報データに基づいて、ガス漏洩による
災害の発生を未然に防ぐことができる。また、ガス警報
装置それ自体を小型のものとすることができるので、携
帯用のガス警報装置として好適に利用することができ
る。
According to the above-mentioned gas alarm device, since the above-mentioned alarm data recording device is provided, the detection data for the gas to be detected is sequentially written, so that other alarm processes are not hindered. Without warning, it is possible to reliably obtain the latest alarm data when an alarm signal is generated, and thus to obtain high security.Also, based on the stored alarm data, it is possible to prevent the occurrence of disasters due to gas leakage. Can be prevented. Further, since the gas alarm device itself can be reduced in size, it can be suitably used as a portable gas alarm device.

【0036】以上、本発明の実施の形態について説明し
たが、本発明は上記の態様に限定されるものではなく、
種々の変更を加えることができる。例えば、警報データ
として保存されるべき検知データのデータ量は、警報信
号発生前後、それぞれ15分間ずつ(合計30分間)で
ある必要はなく、適宜変更することが可能であり、検知
データのデータ量に応じて不揮発性メモリの容量を変更
すればよい。また、リングバッファに対して検知データ
の書き込みを行う時間間隔についても、適宜変更するこ
とができる。
Although the embodiment of the present invention has been described above, the present invention is not limited to the above embodiment.
Various changes can be made. For example, the data amount of the detection data to be stored as the alarm data does not need to be 15 minutes (30 minutes in total) before and after the generation of the alarm signal, and can be appropriately changed. The capacity of the nonvolatile memory may be changed according to Also, the time interval at which the detection data is written to the ring buffer can be changed as appropriate.

【0037】[0037]

【発明の効果】本発明の警報データの記録方法によれ
ば、警報信号が発せられた際に、検知データの書き込み
が各々のリングバッファに対して二重に行われることに
より、当該警報信号が発せられた後、いずれの時に次の
警報信号が発せられた場合であっても、当該警報信号発
生前の所定時間の検知データを確実に保存することがで
きるので、所望の警報データを確実に取得することがで
きる。
According to the alarm data recording method of the present invention, when an alarm signal is issued, the detection data is written to each of the ring buffers doubly, whereby the alarm signal is generated. Regardless of the case where the next alarm signal is issued at any time after being issued, the detection data for a predetermined time before the generation of the alarm signal can be reliably stored, so that the desired alarm data can be reliably obtained. Can be obtained.

【0038】本発明の警報データ記録装置によれば、上
記の記録方法が実施されるので、最新の警報信号発生時
における警報データを確実に取得することができること
に加え、リングバッファ構造が形成された不揮発性メモ
リが用いられているので、所定時間の検知データを書き
込むために必要とされる最低限の容量のものを用いれば
よく、従って、メモリの消費電力を低減させることがで
き、しかも警報データ記録装置それ自体を小型のものと
することができる。
According to the alarm data recording apparatus of the present invention, since the above-mentioned recording method is performed, the alarm data at the time of the latest alarm signal generation can be reliably obtained, and a ring buffer structure is formed. Since a non-volatile memory is used, it is only necessary to use a memory having a minimum capacity required to write detection data for a predetermined period of time. Therefore, power consumption of the memory can be reduced and an alarm The data recording device itself can be small.

【0039】本発明のガス警報装置によれば、上記の警
報データ記録装置を備えているので、検知対象ガスにつ
いての検知データが順次に書き込まれることにより、他
の警報処理に支障をきたすことなしに、最新の警報信号
発生時における警報データを確実に取得することがで
き、従って、高い安全性を得ることができると共に、保
存された警報データに基づいて、ガス漏洩による災害の
発生を未然に防ぐことができる。また、ガス警報装置そ
れ自体が小型のものであるので、携帯用のガス警報装置
として好適に利用することができる。
According to the gas alarm device of the present invention, since the above-described alarm data recording device is provided, the detection data for the detection target gas is sequentially written, so that other alarm processes are not hindered. In addition, it is possible to reliably obtain alarm data at the time of the latest alarm signal generation, and therefore to obtain high security.Also, based on the stored alarm data, it is possible to prevent the occurrence of a disaster due to gas leakage. Can be prevented. Further, since the gas alarm device itself is small, it can be suitably used as a portable gas alarm device.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のガス警報装置において、(イ)二重リ
ングバッファの各々の動作状態の一例を模式的に示す説
明図、(ロ)二重リングバッファの各々の動作状態を経
時的にグラフ化して示す説明図である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram schematically showing an example of each operation state of a double ring buffer in a gas alarm device of the present invention, and FIG. FIG. 4 is an explanatory diagram showing a graph.

【図2】本発明のガス警報装置において、二重リングバ
ッファの各々の動作状態の他の例を経時的にグラフ化し
て示す説明図である。
FIG. 2 is an explanatory diagram showing another example of the operating state of each of the double ring buffers in the gas alarm device of the present invention by graphing over time.

【図3】本発明のガス警報装置において、二重リングバ
ッファの各々の動作状態の更に他の例を経時的にグラフ
化して示す説明図である。
FIG. 3 is an explanatory diagram showing still another example of the operation state of each of the double ring buffers in the gas alarm device of the present invention in a graph over time.

【図4】従来における二重リングバッファの各々の動作
状態の一例を経時的にグラフ化して示す説明図である。
FIG. 4 is an explanatory diagram showing an example of each operation state of a conventional double ring buffer in a graph over time.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 各々、不揮発性メモリを用いて構成され
た2つのリングバッファを使用して、検知対象物につい
ての警報信号の発生前後における所定時間の検知データ
よりなる警報データを記録する方法であって、 検知対象物の計測を開始するのと同時に、一方のリング
バッファに対する検知データの書き込みが開始され、 警報信号が発せられるのと同時に、他方のリングバッフ
ァに対する検知データの書き込みが開始されて、警報信
号発生後の検知データの書き込みが2つのリングバッフ
ァに対して二重に行われることを特徴とする警報データ
の記録方法。
1. A method of recording alarm data consisting of detection data of a predetermined time before and after the generation of an alarm signal for a detection target using two ring buffers each configured using a nonvolatile memory. Then, at the same time as the measurement of the detection target is started, writing of the detection data to one ring buffer is started, and at the same time when an alarm signal is issued, writing of the detection data to the other ring buffer is started. A method of recording alarm data, wherein writing of detection data after generation of an alarm signal is performed twice in two ring buffers.
【請求項2】 一方のリングバッファに対して、先の警
報信号発生時における警報データが保存されていると共
に、他方のリングバッファに対して、先の警報信号発生
後の検知データの書き込みが継続して行われている状態
において、さらに、次の警報信号が発せられた場合に
は、先の警報信号発生時における警報データが保存され
た一方のリングバッファに対して、次の警報信号発生後
の検知データの上書きが行われると共に、当該次の警報
信号発生時における最新の警報データが他方のリングバ
ッファに保存されることを特徴とする請求項1に記載の
警報データの記録方法。
2. The alarm data at the time of the previous generation of the alarm signal is stored in one of the ring buffers, and the writing of the detection data after the generation of the previous alarm signal to the other ring buffer is continued. If the next alarm signal is further issued in the state where the alarm signal is generated, the one ring buffer in which the alarm data at the time of the previous alarm signal generation is stored is stored in the ring buffer after the next alarm signal is generated. 2. The alarm data recording method according to claim 1, wherein the detection data is overwritten, and the latest alarm data at the time of generation of the next alarm signal is stored in the other ring buffer.
【請求項3】 先の警報信号発生時における検知データ
の書き込みが両方のリングバッファに対して行われてい
る状態において、さらに、次の警報信号が発せられた場
合には、先の警報信号発生時における警報データとされ
るべき検知データの書き込みが行われている一方のリン
グバッファにおいて、次の警報信号発生後の検知データ
の上書きが行われて、当該次の警報信号発生時における
最新の警報データに書き換えられることを特徴とする請
求項1に記載の警報データの記録方法。
3. In a state where writing of detection data at the time of generation of the previous alarm signal is performed to both of the ring buffers, when the next alarm signal is further generated, the generation of the previous alarm signal is performed. In the ring buffer in which the detection data to be used as the alarm data at the time is being written, the detection data after the next alarm signal is generated is overwritten and the latest alarm at the time of the next alarm signal is generated. 2. The alarm data recording method according to claim 1, wherein the alarm data is rewritten into data.
【請求項4】 検知対象物の計測が開始されて最初の警
報信号の発生時において、警報信号発生前の所定時間の
検知データが得られない場合には、不足分の検知データ
の書き込みを行わずに、警報データがリングバッファに
おけるデータ記録領域にブランク領域が形成された状態
で保存されることを特徴とする請求項1に記載の警報デ
ータの記録方法。
4. When the detection of an object to be detected is started and an alarm signal is generated for the first time, if detection data for a predetermined time before the generation of the alarm signal is not obtained, writing of insufficient detection data is performed. The alarm data recording method according to claim 1, wherein the alarm data is stored in a state where a blank area is formed in a data recording area of the ring buffer.
【請求項5】 各々、不揮発性メモリを用いて構成され
た2つのリングバッファと、このリングバッファに警報
データを書き込む警報データ書き込み手段と、請求項1
乃至請求項4のいずれかに記載の記録方法が実行される
よう、警報データ書き込み手段の動作状態を制御する制
御手段とを備えてなることを特徴とする警報データ記録
装置。
5. An alarm data writing means for writing alarm data to two ring buffers each comprising a non-volatile memory and writing alarm data to the ring buffer.
An alarm data recording device, comprising: a control unit for controlling an operation state of the alarm data writing unit so that the recording method according to any one of claims 4 to 4 is executed.
【請求項6】 各々のリングバッファは、そのデータ記
録領域における検知データの記録可能時間が30分間の
ものであり、警報信号発生前後、それぞれ15分間ずつ
の検知データが保存されることを特徴とする請求項5に
記載の警報データ記録装置。
6. Each ring buffer has a recordable time of 30 minutes for detection data in its data recording area, and stores 15 minutes of detection data before and after an alarm signal is generated. The alarm data recording device according to claim 5, wherein
【請求項7】 制御手段は、等時間隔毎において最大値
を示す検知対象物についての検知データがリングバッフ
ァに書き込まれるよう、検知データを選定する機能を有
することを特徴とする請求項5または請求項6に記載の
警報データ記録装置。
7. The control means according to claim 5, wherein the control means has a function of selecting the detection data such that the detection data of the detection target object having the maximum value at each time interval is written to the ring buffer. The alarm data recording device according to claim 6.
【請求項8】 請求項5乃至請求項7に記載の警報デー
タ記録装置を備えてなることを特徴とする携帯用ガス警
報装置。
8. A portable gas alarm device comprising the alarm data recording device according to claim 5.
JP2001175596A 2001-06-11 2001-06-11 Alarm data recording method, alarm data recording device, and portable gas alarm device Expired - Fee Related JP4373032B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001175596A JP4373032B2 (en) 2001-06-11 2001-06-11 Alarm data recording method, alarm data recording device, and portable gas alarm device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001175596A JP4373032B2 (en) 2001-06-11 2001-06-11 Alarm data recording method, alarm data recording device, and portable gas alarm device

Publications (2)

Publication Number Publication Date
JP2002367052A true JP2002367052A (en) 2002-12-20
JP4373032B2 JP4373032B2 (en) 2009-11-25

Family

ID=19016700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001175596A Expired - Fee Related JP4373032B2 (en) 2001-06-11 2001-06-11 Alarm data recording method, alarm data recording device, and portable gas alarm device

Country Status (1)

Country Link
JP (1) JP4373032B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008083778A (en) * 2006-09-26 2008-04-10 Riken Keiki Co Ltd Gas alarm
CN100444208C (en) * 2006-09-04 2008-12-17 天津市浦海新技术有限公司 Alarm with data recording device for detecting combustible gas
CN113325771A (en) * 2021-05-28 2021-08-31 深圳市数存科技有限公司 System and method for safely storing data after equipment failure

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100444208C (en) * 2006-09-04 2008-12-17 天津市浦海新技术有限公司 Alarm with data recording device for detecting combustible gas
JP2008083778A (en) * 2006-09-26 2008-04-10 Riken Keiki Co Ltd Gas alarm
CN113325771A (en) * 2021-05-28 2021-08-31 深圳市数存科技有限公司 System and method for safely storing data after equipment failure
CN113325771B (en) * 2021-05-28 2023-02-10 深圳市数存科技有限公司 System and method for safely storing data after equipment failure

Also Published As

Publication number Publication date
JP4373032B2 (en) 2009-11-25

Similar Documents

Publication Publication Date Title
JP4436933B2 (en) Method of operating a control device having a programmable storage device
JP2009187545A (en) Method for protecting saved operational data of machine equipment or similar equipment
JP2002367052A (en) Method and device for recording alarm data and portable gas alarm device
JP4480454B2 (en) MEMORY CONTROL DEVICE, IN-VEHICLE DEVICE, MEMORY CONTROL METHOD, MEMORY CONTROL PROGRAM, AND RECORDING MEDIUM
US7787339B2 (en) Reproducing position control circuit and reproducing system
JP2009265819A (en) Control unit and program for the same
JP2004310906A5 (en)
JPS609301B2 (en) Memory content destruction inspection method during power outage
WO2009098881A1 (en) Unauthorized act prevention method
JP3867667B2 (en) Data storage / playback device
JPH05265881A (en) Write protecting circuit of and write protecting method for non-volatile memory
JPH07119537A (en) Control device
JPH02226349A (en) Data processor
JP2000205924A (en) Microcomputer gas meter
JPH01251144A (en) Data storing method
JPH113252A (en) Preservation method for fault analysis log
JPH06274422A (en) Backup method for memory data
KR100214326B1 (en) Device and method for managing memory of a data recording and reproducing device
JPS6232833B2 (en)
JP2006059204A (en) Ic card, and memory access control method and controller for ic card
JPH0973335A (en) Data processor
JPH01219940A (en) Communication processing device
KR970003148A (en) Reservation recording method of V.C.R.
JPH0233520A (en) Trouble detection device for combustion equipment and the like
JPH1165600A (en) Recording and reproducing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080131

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090428

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090608

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090901

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090903

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120911

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees