JP5307606B2 - Window open / close detection device - Google Patents

Window open / close detection device Download PDF

Info

Publication number
JP5307606B2
JP5307606B2 JP2009099637A JP2009099637A JP5307606B2 JP 5307606 B2 JP5307606 B2 JP 5307606B2 JP 2009099637 A JP2009099637 A JP 2009099637A JP 2009099637 A JP2009099637 A JP 2009099637A JP 5307606 B2 JP5307606 B2 JP 5307606B2
Authority
JP
Japan
Prior art keywords
magnetic force
gain
window
determination threshold
level
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.)
Active
Application number
JP2009099637A
Other languages
Japanese (ja)
Other versions
JP2010250575A (en
Inventor
裕史 島
浩平 野口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hochiki Corp
Original Assignee
Hochiki 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 Hochiki Corp filed Critical Hochiki Corp
Priority to JP2009099637A priority Critical patent/JP5307606B2/en
Publication of JP2010250575A publication Critical patent/JP2010250575A/en
Application granted granted Critical
Publication of JP5307606B2 publication Critical patent/JP5307606B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Burglar Alarm Systems (AREA)
  • Switches That Are Operated By Magnetic Or Electric Fields (AREA)

Description

本発明は、窓の開閉状態を磁気検知素子を使用して検出する窓開閉検出装置に関する。
The present invention relates to a window opening / closing detection device that detects an opening / closing state of a window using a magnetic detection element.

従来、窓の開閉を検出して警報する窓開閉監視装置が知られている。このような窓開閉監視装置にあっては、窓ガラスに配置したマグネットの磁力を磁気感知素子で検出し、検出磁力が低下したときに窓開閉と判断して警報を行う。   2. Description of the Related Art Conventionally, a window opening / closing monitoring device that detects an opening / closing of a window and gives an alarm is known. In such a window open / close monitoring device, the magnetic force of the magnet arranged on the window glass is detected by the magnetic sensing element, and when the detected magnetic force is reduced, it is determined that the window is open / closed and an alarm is issued.

また窓に設けたクレセント錠の開閉レバーに配置したマグネットの磁力を別の磁気感知素子で検出し、検出磁力が低下したときにクレセント錠の開放と判断して異常を警報させる監視装置もある。   There is also a monitoring device that detects the magnetic force of a magnet disposed on an open / close lever of a crescent lock provided on a window by another magnetic sensing element, and determines that the crescent lock is open when the detected magnetic force is reduced, thereby alarming an abnormality.

従来の窓開閉装置に使用される磁気感知素子は主に磁力の強弱に応じて接点を機械的にオン、オフするリードスイッチを使用していたが、近年にあっては、ホール効果を利用して磁力を検出するホールセンサが使用されている。   The magnetic sensing elements used in conventional window opening and closing devices mainly use reed switches that mechanically turn on and off the contacts according to the strength of the magnetic force, but in recent years, the Hall effect has been used. Hall sensors that detect magnetic force are used.

ホールセンサを磁気感知素子として使用する場合、検出対象とするマグネットに近いほど強い磁力がホールセンサを通過することで高いセンサ出力が得られる。またホールセンサの検出信号は200〜300mVと微弱であることから、AD変換してプロセッサなどにより処理するため、増幅回路で増幅した信号を使用して窓の開閉を判断している。
When the Hall sensor is used as a magnetic sensing element, the closer the magnet is to the detection target, the stronger the magnetic force passes through the Hall sensor, thereby obtaining a higher sensor output. Further, since the detection signal of the Hall sensor is as weak as 200 to 300 mV, it is determined whether the window is opened or closed using the signal amplified by the amplifier circuit in order to perform AD conversion and process it by a processor or the like.

特開2003−281636号公報JP 2003-281636 A 特開2001−14990号公報Japanese Patent Laid-Open No. 2001-14990

しかしながら、マグネットの磁力をホールセンサで検出する場合、クレセント錠の開閉レバーの長さや形状は様々で、また窓開閉監視装置が取り付けられる窓枠の位置にも制限があり、開閉レバーや窓に設けたマグネットと装置に内蔵したホールセンサとの距離が一定せず、マグネットからの磁力は距離の2乗に減衰して減少する関係にあるため、設置場所により磁力レベルが飽和したり、極端に低下する場合があり、開閉レバーに設けたマグネットによる磁力レベルからクレセント錠の解錠と施錠を正確に判定できる距離範囲が大きく制約されるという問題がある。   However, when the magnetic force of the magnet is detected by a hall sensor, the length and shape of the open / close lever of the crescent lock vary, and the position of the window frame to which the window open / close monitoring device is attached is limited. The distance between the magnet and the Hall sensor built into the device is not constant, and the magnetic force from the magnet is attenuated to the square of the distance and decreases, so the magnetic force level may be saturated or extremely reduced depending on the installation location. There is a problem that the distance range in which the unlocking and locking of the crescent lock can be accurately determined from the magnetic force level by the magnet provided on the opening / closing lever is greatly restricted.

この問題を解決するためには、設置現場で距離に応じた適切な磁力レベルが得られるように、例えば増幅回路の利得を調整することが考えられるが、そのようなことは設置現場に各種の測定器を持ち込んで1台1台調整することを意味し、現実的な解決方法とはいえず、実現性はない。   In order to solve this problem, for example, it is conceivable to adjust the gain of the amplifier circuit so that an appropriate magnetic force level corresponding to the distance can be obtained at the installation site. This means that a measuring instrument is brought in and adjusted one by one, which is not a realistic solution and is not feasible.

本発明は、設置現場での簡単な操作によりマグネットまでの距離に応じた適正な磁力レベルの設定を可能とする窓開閉検出装置を提供することを目的とする。
An object of this invention is to provide the window opening / closing detection apparatus which enables the setting of the appropriate magnetic force level according to the distance to a magnet by simple operation in the installation field.

本発明は、監視対象に配置されたマグネットの磁気レベルの変化を検知して窓の状態を判定する窓開閉検出装置に於いて、
マグネットの磁気レベルを検出する磁気感知素子と、
磁気感知素子からの検出信号を複数の異なる利得から選択して増幅する増幅部と、
増幅部を高利得で増幅した出力信号から取得した磁力レベルが所定の遠近判定閾値以下の場合は高利得の増幅を選択し、磁力レベルが前記遠近判定閾値を超えている場合は選択した高利得よりも低利得を選択する遠近選択部と、
遠近選択部で選択された前記増幅部の利得で取得した磁力レベルから、所定比率の錠判定閾値を算出して登録する登録処理部と、
遠近選択部で選択された利得での増幅部から取得した磁気レベルと錠判定閾値との比較により解錠又は施錠を判定する施錠監視部と、
を備えたことを特徴とする。
The present invention relates to a window opening / closing detection device that determines a state of a window by detecting a change in a magnetic level of a magnet arranged in a monitoring target.
A magnetic sensing element for detecting the magnetic level of the magnet;
An amplifying unit that selects and amplifies a detection signal from the magnetic sensing element from a plurality of different gains;
When the magnetic force level obtained from the output signal obtained by amplifying the amplifying unit with high gain is equal to or lower than a predetermined perspective determination threshold, high gain amplification is selected, and when the magnetic force level exceeds the perspective determination threshold, the selected high gain is selected. A perspective selector that selects a lower gain than,
A registration processing unit for calculating and registering a lock determination threshold of a predetermined ratio from the magnetic force level acquired by the gain of the amplification unit selected by the perspective selection unit;
A lock monitoring unit for determining unlocking or locking by comparing the magnetic level acquired from the amplification unit with the gain selected by the perspective selection unit and the lock determination threshold;
It is provided with.

ここで、錠判定閾値は、遠近選択部で選択される増幅部の利得が低くなるほど少ない比率に基づき磁力レベルから算出する。   Here, the lock determination threshold value is calculated from the magnetic force level based on a smaller ratio as the gain of the amplification unit selected by the perspective selection unit becomes lower.

さらに算出した錠判定閾値が、窓開閉状態の監視に有効な磁力レベルにない場合には、有効な磁力レベルになるよう増幅部の利得を変更し、その利得における錠判定閾値を登録する。   Further, when the calculated lock determination threshold is not at a magnetic level effective for monitoring the window open / close state, the gain of the amplifying unit is changed so as to be an effective magnetic level, and the lock determination threshold at that gain is registered.

また、増幅回路は高利得増幅または低利得増幅を選択する利得選択部を備え、遠近選択部は、増幅回路の高利得の選択状態で得られた出力信号から取得した磁力レベルが所定の遠近判定閾値以下の場合は高利得を選択し、遠近判定閾値を越えている場合は低利得を選択するようにしても良い。   The amplifier circuit includes a gain selection unit that selects high gain amplification or low gain amplification, and the perspective selection unit determines whether the magnetic force level acquired from the output signal obtained in the high gain selection state of the amplifier circuit is a predetermined perspective. A high gain may be selected when the threshold is less than or equal to a threshold, and a low gain may be selected when the perspective determination threshold is exceeded.

登録処理部は、
高利得増幅の選択状態で磁力レベルを初期登録した場合は、磁力レベルより所定の第1比率分低いレベルを錠判定閾値として登録し、
低利得増幅の選択状態で磁力レベルを初期登録した場合は、磁力レベルより第1比率分より少ない第2比率分低いレベルを錠判定閾値として登録する。
The registration processor
When the magnetic force level is initially registered in the selected state of high gain amplification, a level lower than the magnetic force level by a predetermined first ratio is registered as a lock determination threshold value,
When the magnetic force level is initially registered in the low gain amplification selection state, a level lower than the magnetic force level by a second ratio that is lower than the first ratio is registered as a lock determination threshold value.

本発明によれば、設定時に高利得増幅により得られた磁気感知素子の検出信号から取得した磁力レベルを遠近判定閾値と比較し、磁力レベルが適正な範囲にあれば選択した高利得増幅を選択し、磁力レベルが高ければ低利得増幅を選択し、開閉レバーに配置したマグネットまでの距離に対応して適切な増幅利得が設定され、クレセント錠の解錠と施錠の判定を可能とする距離範囲を拡大することができる。   According to the present invention, the magnetic force level obtained from the detection signal of the magnetic sensing element obtained by high gain amplification at the time of setting is compared with the perspective determination threshold, and if the magnetic force level is within an appropriate range, the selected high gain amplification is selected. If the magnetic force level is high, low gain amplification is selected, and an appropriate amplification gain is set according to the distance to the magnet placed on the open / close lever, allowing the crescent lock to be unlocked and locked Can be enlarged.

また、マグネットまでの距離に対応して選択した適性な増幅利得により得られた磁力レベルを初期登録し、初期登録した磁力レベルに対し、遠近選択に対応して定めた異なる比率に基づき錠判定閾値を算出して登録することにより、異なる増幅利得による磁力レベルであっても、開閉レバーの操作による磁力レベルの変化に対し正確に窓の開閉状態やクレセントの解錠状態を判別することができる。
In addition, the magnetic force level obtained by the appropriate amplification gain selected corresponding to the distance to the magnet is initially registered, and the lock determination threshold is based on a different ratio determined corresponding to the perspective selection with respect to the initially registered magnetic force level. By calculating and registering, it is possible to accurately determine the open / close state of the window and the unlocked state of the crescent with respect to changes in the magnetic force level due to the operation of the opening / closing lever even at the magnetic force level due to different amplification gains.

本発明による窓開閉検出装置の設置状態を示した説明図Explanatory drawing which showed the installation state of the window opening / closing detection apparatus by this invention 本発明による窓開閉検出装置の実施形態を示した組立分解図Assembly exploded view showing an embodiment of a window opening and closing detection device according to the present invention 図1の設置状態におけるホールセンサとマグネットの関係を示した説明図Explanatory drawing which showed the relationship between a hall sensor and a magnet in the installation state of FIG. 本実施形態による窓開閉検出装置の回路構成を示したブロック図The block diagram which showed the circuit structure of the window opening / closing detection apparatus by this embodiment 図4の施錠検出用ホールセンサの検出信号を増幅する増幅回路の実施形態を示した回路図FIG. 4 is a circuit diagram showing an embodiment of an amplifier circuit for amplifying a detection signal of the lock detection hall sensor of FIG. 図4の施錠検出用ホールセンサの検出信号を増幅する増幅回路の他の実施形態を示した回路図The circuit diagram which showed other embodiment of the amplifier circuit which amplifies the detection signal of the Hall sensor for locking detection of FIG. 本実施形態におけるクレセント錠検出マグネットとホールセンサの関係を示した説明図Explanatory drawing which showed the relationship between the crescent lock detection magnet and Hall sensor in this embodiment 図4のAD変換ポートによる磁気レベル検出信号のAD変換特性を示したグラフ図The graph which showed the AD conversion characteristic of the magnetic level detection signal by the AD conversion port of FIG. 本実施形態における施錠検出用ホールセンサの検出信号を異なる利得で増幅して取得した磁力レベルの距離に対する関係を示したグラフ図The graph which showed the relationship with respect to the distance of the magnetic force level acquired by amplifying the detection signal of the Hall sensor for locking detection in this embodiment by different gains 図4で高増幅利得を選択した場合の距離に対する磁力レベルの関係を示したグラフ図FIG. 4 is a graph showing the relationship between the magnetic force level and the distance when a high amplification gain is selected in FIG. 図4で低増幅利得を選択した場合の距離に対する磁力レベルの関係を示したグラフ図The graph which showed the relationship of the magnetic force level with respect to the distance at the time of selecting the low amplification gain in FIG. 図4のプロセッサによる本実施形態の窓開閉検出処理を示したフローチャートThe flowchart which showed the window opening / closing detection process of this embodiment by the processor of FIG. 図12のステップS4におけるクレセント錠登録処理の詳細を示したフローチャートThe flowchart which showed the detail of the crescent lock registration process in step S4 of FIG. 図12のステップS7における窓開閉監視処理の詳細を示したフローチャートThe flowchart which showed the detail of the window opening / closing monitoring process in step S7 of FIG. 図12のステップS8におけるクレセント錠監視処理の詳細を示したフローチャートThe flowchart which showed the detail of the crescent lock monitoring process in step S8 of FIG.

図1は本発明による窓開閉検出装置の設置状態を示した説明図である。図1において、本発明の窓開閉検出装置10は監視対象とする引き違い窓の窓サッシ12a,12bの縦枠に両面テープ又はビスなどにより固定される。   FIG. 1 is an explanatory view showing an installation state of a window opening / closing detection device according to the present invention. In FIG. 1, a window opening / closing detection device 10 of the present invention is fixed to a vertical frame of a window sash 12a, 12b of a sliding window to be monitored by a double-sided tape or a screw.

窓開閉検出装置10の上側には、窓サッシ12a,12bを閉じた状態で、相対する位置に窓開閉検出マグネット14を両面テープで貼り付けており、窓開閉検出マグネット14からの磁力を内蔵した磁気検知素子としてホールセンサにより検出している。   On the upper side of the window opening / closing detection device 10, the window sash 12 a, 12 b is closed, and a window opening / closing detection magnet 14 is attached to the opposite position with double-sided tape, and the magnetic force from the window opening / closing detection magnet 14 is incorporated. It is detected by a hall sensor as a magnetic sensing element.

窓サッシ12a,12bを開くと、窓開閉検出マグネット14が窓開閉検出装置10から離れることで磁力が低下し、この磁力の低下をホールセンサで検出して窓開を示す検出信号を別途設置された監視盤に無線で送信して警報させる。   When the window sash 12a, 12b is opened, the magnetic force is reduced by the window opening / closing detection magnet 14 being separated from the window opening / closing detection device 10, and a detection signal indicating the opening of the window is detected by detecting the decrease in the magnetic force with a hall sensor. Sent to the monitoring panel by radio to alert.

また窓開閉検出装置10はその下端を窓サッシ12a,12bに設けている監視対象としてのクレセント錠16に近接するように配置し、クレセント錠16の開閉レバー18に貼り付けたクレセント錠検出マグネット20の磁力を下端側に内蔵した別のホールセンサで検出している。   The window opening / closing detection device 10 is arranged so that the lower end thereof is close to the crescent lock 16 as a monitoring target provided on the window sash 12a, 12b, and the crescent lock detection magnet 20 attached to the opening / closing lever 18 of the crescent lock 16. Is detected by another Hall sensor built in the lower end.

クレセント錠16は開閉レバー18を図示の垂直方向に回した操作位置で窓サッシ12a,12bを施錠しており、このときクレセント錠検出マグネット20は窓開閉検出装置10に最も近接してホールセンサで検出する磁力が最大となり、施錠状態を検出している。   The crescent lock 16 locks the window sashes 12a and 12b at an operation position in which the opening / closing lever 18 is rotated in the illustrated vertical direction. At this time, the crescent lock detection magnet 20 is the hall sensor closest to the window opening / closing detection device 10. The magnetic force to be detected is maximized, and the locked state is detected.

開閉レバー18を下側に回してクレセント錠16を開錠すると、クレセント錠検出マグネット20が離れることで磁力が低下し、この磁力の低下をホールセンサで検出して解錠状態を示す検出信号を監視盤に無線送信して警報させる。   When the crescent lock 16 is unlocked by turning the opening / closing lever 18 downward, the magnetic force is reduced by the separation of the crescent lock detection magnet 20, and a detection signal indicating the unlocked state is detected by detecting the decrease in the magnetic force with a hall sensor. Alarm is transmitted by radio transmission to the monitoring panel.

図2は本発明による窓開閉検出装置の実施形態を示した組立分解図である。図2において、本実施形態の窓開閉検出装置10は装置本体22とカバー部材24で構成され、カバー部材24は装置本体22に対し着脱自在であり、正面中央に表示窓57を設け、装置本体22の表示部の表示状態が見えるようにしている。   FIG. 2 is an exploded view showing an embodiment of the window opening / closing detection apparatus according to the present invention. In FIG. 2, the window opening / closing detection device 10 of the present embodiment includes an apparatus main body 22 and a cover member 24, and the cover member 24 is detachable from the apparatus main body 22, and a display window 57 is provided in the center of the front surface. The display state of the display unit 22 is made visible.

装置本体22は、ボディケース36内に回路基板38を組み立てている。   The apparatus main body 22 has a circuit board 38 assembled in a body case 36.

回路基板38の上部側にはセンサ基板45が起立され、ここに窓開閉検出用ホールセンサ46を配置している。また回路基板38の下端にはクレセント錠検出用ホールセンサ48が設置されている。   A sensor board 45 is erected on the upper side of the circuit board 38, and a hall sensor 46 for detecting window opening / closing is disposed here. A crescent lock detecting hall sensor 48 is provided at the lower end of the circuit board 38.

図3は図1の設置状態における窓開閉出用ホールセンサとマグネットの関係を示した説明図であり、図3(A)に平面を示し、図3(B)に横方向から見た状態を示している。   3 is an explanatory view showing the relationship between the hall sensor for opening and closing the window and the magnet in the installed state of FIG. 1, in which FIG. 3 (A) shows a plan view and FIG. 3 (B) shows the state seen from the lateral direction. Show.

図3(A)に示すように、本実施形態の窓開閉検出装置10は内側に位置する窓サッシ12aの縦枠に両面テープ又はビスにより取り付けられ、窓開閉検出装置10の右側面に相対して窓サッシ12bのガラス面に窓開閉検出マグネット14を両面テープで接着している。   As shown in FIG. 3 (A), the window opening / closing detection device 10 of the present embodiment is attached to the vertical frame of the window sash 12a located inside by double-sided tape or screws, and is opposed to the right side surface of the window opening / closing detection device 10. The window opening / closing detection magnet 14 is adhered to the glass surface of the window sash 12b with double-sided tape.

窓開閉検出装置10に内蔵した窓開閉検出用ホールセンサ46は、図3(B)に示すように、窓開閉検出マグネット14に有効検出面を相対するようにセンサ基板45に実装しており、窓サッシ12a,12bを閉じた図示の状態で、装置側面からの距離dは最小となり、窓開閉検出マグネット14は破線で示す磁力線の方向に応じて例えばプラス極性で最大となる磁力レベルの検出信号を出力している。   As shown in FIG. 3B, the window opening / closing detection hall sensor 46 built in the window opening / closing detection device 10 is mounted on the sensor substrate 45 so that the effective detection surface faces the window opening / closing detection magnet 14. When the window sashes 12a and 12b are closed, the distance d from the side of the apparatus is minimum, and the window opening / closing detection magnet 14 is a detection signal of a magnetic force level that is maximum with a positive polarity, for example, in accordance with the direction of the magnetic force lines indicated by broken lines. Is output.

窓閉における最小距離dは、窓サッシの構造や窓開閉検出装置10の取り付け状態により変化するが、本実施形態にあっては、規定範囲内の距離に配置されたときの磁力レベルに対し窓閉の判定結果が効率よく得られるように、アンプ52による増幅率や判定閾値を設定している。   The minimum distance d when the window is closed varies depending on the structure of the window sash and the attachment state of the window opening / closing detection device 10, but in the present embodiment, the window is at a magnetic force level when it is disposed at a distance within a specified range. The amplification factor and determination threshold value by the amplifier 52 are set so that the closed determination result can be obtained efficiently.

この窓開閉を検出する窓判定閾値の設定は、製造工程の最終段階となる検査工程あるいは設置後の初期登録作業において、所定の距離に実際に組み合わせて使用する窓開閉検出マグネット14を配置した測定環境を使用した磁力レベルの登録処理を通じて行われ、この詳細は後の説明で明らかにする。   The window determination threshold value for detecting the opening / closing of the window is measured by arranging a window opening / closing detection magnet 14 that is actually used in combination with a predetermined distance in an inspection process which is the final stage of the manufacturing process or an initial registration operation after installation. This is done through the registration process of the magnetic level using the environment, and details will be made clear later.

なお、窓の構造によっては窓サッシ12bが内側となり、その縦枠に図3とは反対向きに窓開閉検出装置10が設置される場合もある。その場合は窓サッシ12aのガラス面に貼り付けた窓開閉検出マグネット14による磁力線は窓開閉検出用ホールセンサ46を左から右に通過して、図3(B)の場合とは逆方向となるため、窓開閉検出用ホールセンサ46からはマイナスとなる逆極性の磁力レベル検出信号が出力される。   Depending on the structure of the window, the window sash 12b may be on the inside, and the window opening / closing detection device 10 may be installed in the vertical frame in the direction opposite to that in FIG. In that case, the lines of magnetic force generated by the window opening / closing detection magnet 14 affixed to the glass surface of the window sash 12a pass through the window opening / closing detection hall sensor 46 from left to right, and are in the opposite direction to that shown in FIG. Therefore, the magnetic sensor level detection signal having a negative polarity is output from the window opening / closing detection hall sensor 46.

更に本実施形態にあっては、悪戯などにより窓開閉検出装置が動作しないように強力な磁石を近づける不正行為に対し、これを窓開と看做して判定する別の窓判定閾値が設定される。   Furthermore, in the present embodiment, another window determination threshold value is set for judging an illegal act of bringing a strong magnet closer so that the window open / close detection device does not operate due to mischief or the like, and this is regarded as opening the window. The

図4は本実施形態による窓開閉検出装置の回路構成を示したブロック図である。図4において、制御部として設けられたプロセッサ50はワンチップマイコンとして知られたコンピュータであり、1チップにCPU、ROM,RAM、AD変換ポート、各種の入出力ポートなどを備えており、本実施形態ではEEPROMなどの不揮発メモリ68を外付けしている。   FIG. 4 is a block diagram showing a circuit configuration of the window opening / closing detection apparatus according to the present embodiment. In FIG. 4, a processor 50 provided as a control unit is a computer known as a one-chip microcomputer, and includes a CPU, a ROM, a RAM, an AD conversion port, various input / output ports, etc. on one chip. In the embodiment, a nonvolatile memory 68 such as an EEPROM is externally attached.

窓開閉検出用ホールセンサ46で検出した窓ガラスに設けた窓開閉検出マグネット14による磁力レベル検出信号は、増幅回路52で増幅された後にAD変換ポート70に与えられ、デジタル変換した磁力レベル(AD変換値)をプロセッサ50に取り込まれる。   The magnetic force level detection signal detected by the window opening / closing detection hall sensor 46 by the window opening / closing detection magnet 14 provided on the window glass is amplified by the amplification circuit 52 and then applied to the AD conversion port 70 to convert the magnetic force level (AD Conversion value) is taken into the processor 50.

また、施錠検出用ホールセンサ48で検出したクレセント錠16の開閉レバー18に設けたクレセント錠検出マグネット20による磁力レベル検出信号は高利得増幅回路54−1と低利得増幅回路54−2で各々異なる利得で増幅された後にAD変換ポート72−1,72−2に与えられ、デジタル変換した磁力レベル(AD変換値)をプロセッサ50に取り込まれる。   The magnetic force level detection signal detected by the crescent lock detection magnet 20 provided on the open / close lever 18 of the crescent lock 16 detected by the lock detection hall sensor 48 is different between the high gain amplification circuit 54-1 and the low gain amplification circuit 54-2. After being amplified by the gain, it is given to the AD conversion ports 72-1 and 72-2, and the magnetic force level (AD conversion value) obtained by digital conversion is taken into the processor 50.

プロセッサ50に対しては、表示部56、登録スイッチ60及び無線送信部66が設けられている。   A display unit 56, a registration switch 60, and a wireless transmission unit 66 are provided for the processor 50.

表示部56は赤色LED56aと緑色LED56bの2色LEDを設けており、例えば窓開や解錠などの異常検出で赤色LED56aを点灯し、その後の正常復帰で緑色LED56bを点灯して監視状態を表示する。   The display unit 56 is provided with a two-color LED of a red LED 56a and a green LED 56b. For example, the red LED 56a is turned on when an abnormality is detected such as opening of a window or unlocking, and then the green LED 56b is turned on when normal operation is restored. To do.

登録スイッチ60は本実施形態の窓開閉検出装置10の使用開始時に行う施錠登録モードの設定に使用される。   The registration switch 60 is used for setting a lock registration mode that is performed at the start of use of the window opening / closing detection device 10 of the present embodiment.

不揮発メモリ68には窓開閉検出用ホールセンサ46から取得した磁力レベルVs1と、磁力レベルVs1に基づいて求めた窓開閉検出の第1窓判定閾値TH1と、悪戯などによる強い磁石を近づけたときの磁力を検出する第2窓判定閾値TH2が記憶されている。   When the magnetic force level Vs1 obtained from the window sensor 46 for detecting the opening / closing of the window, the first window determination threshold value TH1 for window opening / closing detection obtained based on the magnetic force level Vs1, and a strong magnet due to mischief are brought close to the nonvolatile memory 68. A second window determination threshold value TH2 for detecting the magnetic force is stored.

また不揮発メモリ68には、窓開閉検出装置10を窓に設置した状態で行われるクレセント錠登録処理で施錠検出用ホールセンサ48から取得した磁力レベルVs2と、磁力レベルVs2に基づいて求めた錠開閉検出の錠判定閾値TH3が記憶されている。   The nonvolatile memory 68 also includes a magnetic force level Vs2 acquired from the lock detection hall sensor 48 in the crescent lock registration process performed with the window opening / closing detection device 10 installed on the window, and the lock opening / closing obtained based on the magnetic force level Vs2. A lock determination threshold TH3 for detection is stored.

プロセッサ50にはCPUによるプログラムの実行により実現される機能として、窓開閉登録処理部74、遠近選択部76、施錠登録処理部78、窓開閉監視部80、施錠監視部82及び通信制御部84が設けられている。   The processor 50 includes a window opening / closing registration processing unit 74, a perspective selection unit 76, a lock registration processing unit 78, a window opening / closing monitoring unit 80, a lock monitoring unit 82, and a communication control unit 84 as functions realized by execution of a program by the CPU. Is provided.

窓開閉登録処理部74は、登録モード時に、窓開閉検出装置10から所定距離離して配置した窓開閉検出マグネット14の磁力レベルVs1を窓開閉検出用ホールセンサで検出して不揮発メモリ68に初期登録し、初期登録した磁力レベルVs1に対し所定の比率だけ低いレベルを窓開閉の第1窓判定閾値TH1として不揮発メモリ68に登録する。   In the registration mode, the window opening / closing registration processing unit 74 detects the magnetic force level Vs1 of the window opening / closing detection magnet 14 arranged at a predetermined distance from the window opening / closing detection device 10 with the window opening / closing detection hall sensor, and initially registers it in the nonvolatile memory 68. Then, a level lower than the initially registered magnetic force level Vs1 by a predetermined ratio is registered in the nonvolatile memory 68 as the first window determination threshold value TH1 for opening and closing the window.

更に、初期登録した磁力レベルVs1に対し通常ではあり得ない所定の比率だけ高いレベルを算出し、悪戯や悪意により強い磁石が近づけられたと異常判定するための第2窓判定閾値TH2として不揮発メモリ68に登録する。   Further, a non-volatile memory 68 is calculated as a second window determination threshold value TH2 for calculating a level higher than the initially registered magnetic force level Vs1 by a predetermined ratio that cannot be normal, and determining abnormally that a strong magnet has been approached due to mischief or malice. Register with.

遠近選択部76は、登録スイッチ60の操作により登録モードを設定したときに動作する。登録モードの設定は、図1のように、窓開閉検出装置10、窓開閉検出マグネット14及びクレセント錠検出マグネット20の取り付け配置が完了した後、クレセント錠16の開閉レバー18を解錠位置に操作した状態とし、この状態で登録スイッチ60を操作すると、登録モードが設定され、登録処理が実行される。   The perspective selection unit 76 operates when the registration mode is set by operating the registration switch 60. As shown in FIG. 1, the registration mode is set by operating the open / close lever 18 of the crescent lock 16 to the unlocked position after the installation of the window open / close detection device 10, the window open / close detection magnet 14 and the crescent lock detection magnet 20 is completed. When the registration switch 60 is operated in this state, the registration mode is set and the registration process is executed.

登録モードの設定で動作した遠近選択部76は、高利得増幅回路54−1の出力をAD変換ポート72−1で取り込んだ磁力レベルが所定の遠近判定閾値TH4以下の場合はAD変換ポート72−1から取り込みを選択し、磁力レベルが遠近判定閾値TH4を越えている場合は、高利得増幅回路では正常な開閉監視が不可能なことから利得の低い低利得増幅回路54−2の出力に対応したAD変換ポート72−2からの取り込みを選択する。   The perspective selection unit 76 that operates in the setting of the registration mode, when the magnetic force level at which the output of the high gain amplifier circuit 54-1 is captured by the AD conversion port 72-1 is equal to or less than a predetermined distance determination threshold TH4, is converted to the AD conversion port 72-. When the acquisition is selected from 1 and the magnetic force level exceeds the perspective determination threshold TH4, the high gain amplifier circuit cannot monitor the normal opening and closing, and therefore corresponds to the output of the low gain amplifier circuit 54-2 having a low gain. Selected from the AD conversion port 72-2.

施錠登録処理部78は、図1のように、窓開閉検出装置10、窓開閉検出マグネット14及びクレセント錠検出マグネット20の取り付け配置が完了した後、クレセント錠16の開閉レバー18を解錠位置に操作した状態とし、この状態で登録スイッチ60を操作すると、所定期間の登録モードが設定され、登録処理が実行される。   As shown in FIG. 1, the lock registration processing unit 78 sets the open / close lever 18 of the crescent lock 16 to the unlocked position after the installation of the window open / close detection device 10, the window open / close detection magnet 14, and the crescent lock detection magnet 20 is completed. When the registration switch 60 is operated in this state, the registration mode for a predetermined period is set and the registration process is executed.

登録モードが開始されるとクレセント錠16の開閉レバー18を施錠位置に操作してクレセント錠検出マグネット20を近づけた状態とする。   When the registration mode is started, the open / close lever 18 of the crescent lock 16 is moved to the locked position to bring the crescent lock detection magnet 20 closer.

施錠登録処理部74は登録モードの動作中は、所定周期で施錠検出用ホールセンサ48で検出した磁力レベルを取得し、予め設定した所定の有効レベルと比較し、有効レベルである場合には、不揮発メモリ68に磁力レベルVs2として記憶する。
登録処理部74は、初期登録した磁力レベルVs2に対し、その時、遠近選択部76で選択している増幅利得に応じて異なる所定比率低い値を算出し、クレセント錠の施錠解錠を判断する錠判定閾値TH3として不揮発メモリ68に登録し、施錠監視部78によるクレセント錠の施錠監視を開始させる。
During the operation of the registration mode, the lock registration processing unit 74 acquires the magnetic force level detected by the lock detection hall sensor 48 at a predetermined period, and compares it with a predetermined predetermined effective level. This is stored in the nonvolatile memory 68 as a magnetic force level Vs2.
The registration processing unit 74 calculates a value that is lower by a predetermined ratio depending on the amplification gain selected by the perspective selection unit 76 with respect to the initially registered magnetic force level Vs2, and determines whether the crescent lock is unlocked or unlocked. The determination threshold TH3 is registered in the nonvolatile memory 68, and the lock monitoring of the crescent lock by the lock monitoring unit 78 is started.

錠判定閾値TH3の算出は、高利得増幅回路54−1を選択している場合は比率αを使用して
TH3=Vs2−α
を算出して設定し、また低利得増幅回路54−2を選択している場合は比率βを使用して
TH3=Vs2−β
を算出して設定する。
The lock determination threshold TH3 is calculated by using the ratio α when the high gain amplifier circuit 54-1 is selected, and TH3 = Vs2−α.
Is calculated and set, and when the low gain amplifier circuit 54-2 is selected, the ratio β is used to calculate TH3 = Vs2-β.
Is calculated and set.

窓開閉監視部80は窓開閉検出用ホールセンサ46から得られた磁力レベルを不揮発メモリ68から読み出した第1窓判定閾値TH1と比較し、窓の開又は閉を判定し、判定結果を示す電文を無線送信部66から監視盤に送信して警報又は警報解除を行わせる。   The window opening / closing monitoring unit 80 compares the magnetic force level obtained from the window opening / closing detection hall sensor 46 with the first window determination threshold TH1 read from the nonvolatile memory 68, determines whether the window is open or closed, and indicates a message indicating the determination result. Is transmitted from the wireless transmission unit 66 to the monitoring panel, and an alarm or alarm release is performed.

また、窓開閉監視部80は外部から強力な磁石を近づけることで磁力レベルが閾値以下としないようにして窓を開けるような所謂不正行為に対処するため、窓開閉検出用ホールセンサ46から得られた磁力レベルを不揮発メモリ68から読み出した第2窓判定閾値TH2と比較し、磁力レベルが第2窓判定閾値TH2を超えた時にも窓開と見做して窓開を示す電文を送信して警報を行う。   Further, the window opening / closing monitoring unit 80 is obtained from the window opening / closing detection hall sensor 46 in order to cope with a so-called fraudulent act of opening a window by bringing a strong magnet from the outside so that the magnetic force level does not fall below a threshold value. The received magnetic force level is compared with the second window determination threshold value TH2 read from the nonvolatile memory 68, and when the magnetic force level exceeds the second window determination threshold value TH2, a message indicating that the window is opened is transmitted. Perform an alarm.

なお、施錠及び解錠時の磁力レベルに基づき通常使用状態の磁力レベルの適正範囲を設定し、磁力レベルが適正範囲から上下に外れた場合には不正行為が発生したと判定するようにしても良い。つまり、適正使用範囲の上限値を施錠時の磁力レベルよりも所定比率分高い値に設定し、下限値を解錠時の初期登録レベルよりも所定比率小さい値に設定して、適正範囲内に磁力レベルがあるかを検出して不正行為を判定するようにしてもよい。これはクレセント錠側の磁力レベルの測定や窓開閉検出の磁力レベルの測定のいずれにおいても適用できる。   In addition, based on the magnetic force level at the time of locking and unlocking, an appropriate range of the magnetic level of the normal use state is set, and if the magnetic force level deviates up and down from the appropriate range, it may be determined that fraud has occurred. good. In other words, the upper limit value of the appropriate use range is set to a value that is higher by a predetermined ratio than the magnetic force level at the time of locking, and the lower limit value is set to a value that is lower by a predetermined ratio than the initial registration level at the time of unlocking, and within the appropriate range. You may make it determine fraud by detecting whether there is a magnetic force level. This can be applied to both the measurement of the magnetic level of the crescent lock side and the measurement of the magnetic level of the window opening / closing detection.

施錠監視部82は施錠検出用ホールセンサ48から得られた磁力レベルを施錠登録処理部78により設定した錠判定閾値TH3と比較し、錠判定閾値TH3以下となった場合にクレセント錠の開と判断して錠開を示す電文を無線送信部66から監視盤に送信して警報させる。また、施錠監視部80は、錠開を検出した後に、錠閉に戻った場合にも、その旨の電文を監視盤に無線送信する。   The lock monitoring unit 82 compares the magnetic force level obtained from the lock detection hall sensor 48 with the lock determination threshold value TH3 set by the lock registration processing unit 78, and determines that the crescent lock is opened when the lock determination threshold value TH3 or less. Then, an electronic message indicating unlocking is transmitted from the wireless transmission unit 66 to the monitoring panel to give an alarm. Further, even when the lock monitoring unit 80 detects unlocking and then returns to locking, the lock monitoring unit 80 wirelessly transmits a message to that effect to the monitoring panel.

通信制御部84は窓開閉監視部80及び施錠監視部82の判断に基づく電文の送信に加え、一定時間間隔に定期通報の電文を送信させる。   In addition to the transmission of a message based on the judgments of the window opening / closing monitoring unit 80 and the lock monitoring unit 82, the communication control unit 84 causes a periodic notification message to be transmitted at regular time intervals.

図5は図4の施錠検出用ホールセンサの検出信号を増幅する増幅回路の実施形態を示した回路図である。図5において、施錠検出用ホールセンサ48は4つの抵抗rをブリッジ接続した等価回路で表すことができ、磁場に応じた抵抗rの変化により、磁場の強さに応じて直線的に変化する出力電圧が得られる。   FIG. 5 is a circuit diagram showing an embodiment of an amplifier circuit for amplifying the detection signal of the lock detection hall sensor of FIG. In FIG. 5, the lock detection hall sensor 48 can be represented by an equivalent circuit in which four resistors r are bridge-connected, and the output linearly changes according to the strength of the magnetic field due to the change of the resistance r according to the magnetic field. A voltage is obtained.

出力電圧の極性は施錠検出用ホールセンサ48を通過する磁力線の方向により、磁場の増加に対し出力電圧が増加するプラス極性の出力電圧と、磁場の増加に対し出力電圧が減少するマイナス極性の出力電圧となる。   The polarity of the output voltage depends on the direction of the line of magnetic force passing through the lock detection Hall sensor 48, and the output voltage of the positive polarity that the output voltage increases with the increase of the magnetic field, and the output of the negative polarity that the output voltage decreases with the increase of the magnetic field Voltage.

なお、図5にあっては、施錠検出用ホールセンサ48に電池44から直接電池電圧Vccを供給しているが、電池電圧以下の電圧で定電圧駆動する場合には、抵抗分圧回路などで分圧した電圧を供給すれば良い。   In FIG. 5, the battery voltage Vcc is directly supplied from the battery 44 to the lock detection hall sensor 48. However, when driving at a constant voltage below the battery voltage, a resistance voltage dividing circuit or the like is used. What is necessary is just to supply the divided voltage.

施錠検出用ホールセンサ48の出力電圧は高利得増幅回路54−1で増幅され、プロセッサ50のAD変換ポート72−1でサンプリングされてAD変換される。   The output voltage of the lock detection hall sensor 48 is amplified by the high gain amplifier circuit 54-1, sampled by the AD conversion port 72-1 of the processor 50, and AD converted.

また、施錠検出用ホールセンサ48の出力電圧は同時に低利得増幅回路54−2で増幅され、プロセッサ50のAD変換ポート72−2でサンプリングされてAD変換される。   The output voltage of the lock detection hall sensor 48 is simultaneously amplified by the low gain amplifier circuit 54-2, sampled by the AD conversion port 72-2 of the processor 50, and AD converted.

高利得増幅回路54−1はオペアンプ90aと抵抗R1,R3,R5,R6によって差動増幅回路を構成し、高利得G1を設定する。また低利得増幅回路54−2はオペアンプ90bと抵抗R2,R4,R5,R6によって差動増幅回路を構成し、高利得G1よりも低い利得の低利得G2を設定する。   The high gain amplifier circuit 54-1 configures a differential amplifier circuit by the operational amplifier 90a and the resistors R1, R3, R5, and R6, and sets the high gain G1. The low gain amplifier circuit 54-2 comprises a differential amplifier circuit by the operational amplifier 90b and the resistors R2, R4, R5, and R6, and sets a low gain G2 having a lower gain than the high gain G1.

ここで、R1=R3,R2=R4,R5=R6、R1<R2の関係にあり、高利得増幅回路54−1の高利得G1は
G1=R6/R1
となり、低利得増幅回路54−2の低利得G2は
G2=R6/R2
となる。
Here, R1 = R3, R2 = R4, R5 = R6, R1 <R2, and the high gain G1 of the high gain amplifier circuit 54-1 is G1 = R6 / R1.
And the low gain G2 of the low gain amplifier circuit 54-2 is G2 = R6 / R2.
It becomes.

図6は図4の施錠検出用ホールセンサの検出信号を増幅する増幅回路の他の実施形態を示した回路図であり、プロセッサ50からの制御により高利得G1と低利得G2を選択できるようにしたことを特徴とする。   FIG. 6 is a circuit diagram showing another embodiment of the amplifier circuit for amplifying the detection signal of the lock detection hall sensor of FIG. 4 so that the high gain G1 and the low gain G2 can be selected by control from the processor 50. It is characterized by that.

図6において、増幅回路54は差動増幅回路であり、オペアンプ90の入力側に利得選択回路92を設けており、スイッチ96aにより反転入力端子に対する抵抗R1,R2を切り替え、同時にスイッチ96bにより非反転入力端子に対する抵抗R3,R4を切り替えている。また非反転端子は抵抗R5を介して接地接続され、更に、出力端子と非反転入力端子との間の帰還回路の抵抗R6を接続している。   In FIG. 6, an amplifier circuit 54 is a differential amplifier circuit, and a gain selection circuit 92 is provided on the input side of the operational amplifier 90. The switches 96a switch the resistors R1 and R2 with respect to the inverting input terminal, and at the same time non-inverted by the switch 96b. Resistors R3 and R4 for the input terminal are switched. The non-inverting terminal is grounded via a resistor R5, and further connected to a resistor R6 of the feedback circuit between the output terminal and the non-inverting input terminal.

ここで、R1=R3,R2=R4,R5=R6,R1<R2の関係にあり、スイッチ96a,96bを図示のa側に閉じたときの高利得G1は
G1=R6/R1
となり、またスイッチ96a,96bをb側に閉じたときの低利得G2は
G2=R6/R2
となる。
Here, there is a relationship of R1 = R3, R2 = R4, R5 = R6, R1 <R2, and the high gain G1 when the switches 96a and 96b are closed to the a side in the figure is G1 = R6 / R1
The low gain G2 when the switches 96a and 96b are closed to the b side is G2 = R6 / R2.
It becomes.

図7は、本実施形態におけるクレセント錠検出マグネット48と施錠検出用ホールセンサ48の関係を示した説明図である。図7において、窓開閉検出装置10における装置本体22のクレセント錠側の端部には施錠検出用ホールセンサ48が配置され、その前方(下方)にカバー部材24に収納した円錐状の集磁体26を配置している。   FIG. 7 is an explanatory diagram showing the relationship between the crescent lock detection magnet 48 and the lock detection hall sensor 48 in the present embodiment. In FIG. 7, a lock detection hall sensor 48 is disposed at the crescent lock side end of the apparatus main body 22 in the window opening / closing detection apparatus 10, and a conical magnetic current collector 26 housed in the cover member 24 in front (downward) thereof. Is arranged.

クレセント錠16の開閉レバー18に設けたクレセント錠検出マグネット20は、開閉レバー18の施錠状態で図示のカバー部材24の外端面から距離hに位置し、この施錠位置での距離hが最小距離となる。クレセント錠検出マグネット20からの磁束は集磁体26の大径入射面に入った後、反対側の小径出射面に収束されて施錠検出用ホールセンサ48を通過する。   The crescent lock detection magnet 20 provided on the open / close lever 18 of the crescent lock 16 is located at a distance h from the outer end surface of the illustrated cover member 24 in the locked state of the open / close lever 18, and the distance h at this lock position is the minimum distance. Become. The magnetic flux from the crescent lock detection magnet 20 enters the large-diameter incident surface of the magnetic collector 26, then converges on the opposite small-diameter exit surface and passes through the lock detection hall sensor 48.

このようなクレセント錠検出マグネット20による磁束は施錠検出用ホールセンサ48で磁力に応じた電圧信号として検出され、増幅回路54で増幅した後にAD変換ポート72により磁力レベル(AD変換値)として読み込まれる。   The magnetic flux generated by the crescent lock detection magnet 20 is detected as a voltage signal corresponding to the magnetic force by the lock detection hall sensor 48, amplified by the amplification circuit 54, and then read as a magnetic force level (AD conversion value) by the AD conversion port 72. .

図8は図4のAD変換ポート72−1,72−2による磁気レベル検出信号のAD変換特性を示したグラフ図である。図7に示した施錠検出用ホールセンサ48は磁力線の通過方向によりプラス極性の磁気レベル検出信号とマイナス極性の磁気レベル検出信号を出力する。   FIG. 8 is a graph showing the AD conversion characteristics of the magnetic level detection signal by the AD conversion ports 72-1 and 72-2 of FIG. The lock detection hall sensor 48 shown in FIG. 7 outputs a positive polarity magnetic level detection signal and a negative polarity magnetic level detection signal depending on the direction of passage of the magnetic lines of force.

施錠検出用ホールセンサ48からの磁気レベル検出信号は、高利得増幅回路54−1の高利得G1又は低利得増幅回路54−2の低利得G2により増幅され、AD変換ポート72−1,72−2により磁力レベルデータに変換される。   The magnetic level detection signal from the lock detection hall sensor 48 is amplified by the high gain G1 of the high gain amplifier circuit 54-1, or the low gain G2 of the low gain amplifier circuit 54-2, and is converted into AD conversion ports 72-1, 72-. 2 is converted into magnetic force level data.

このAD変換ポート72−1,72−2の変換特性は、縦軸に示すように、10進AD変換値として0〜256の値を持ち、入力するプラス極性の磁気レベル検出信号0〜+VmaxをAD変換値128〜256に変換し、入力するマイナス極性の磁気レベル検出信号0〜−VmaxをAD変換値128〜0に変換する。   The conversion characteristics of the AD conversion ports 72-1 and 72-2 have values of 0 to 256 as decimal AD conversion values, as shown on the vertical axis, and the positive polarity magnetic level detection signals 0 to + Vmax are input. The AD conversion values are converted to AD conversion values 128 to 256, and the input negative magnetic level detection signals 0 to -Vmax are converted to AD conversion values 128 to 0.

図9は図7に示した装置端面からクレセント錠検出マグネット20までの距離hに対する施錠検出用ホールセンサ48で検出した磁力レベルの関係を示したグラフ図の一例であり、特性Aが高利得G1、特性Bが低利得G2を選択したときの測定結果である。   FIG. 9 is an example of a graph showing the relationship between the magnetic force level detected by the lock detection hall sensor 48 and the distance h from the device end face to the crescent lock detection magnet 20 shown in FIG. 7, and the characteristic A has a high gain G1. The characteristic B is a measurement result when the low gain G2 is selected.

なお、実際のAD変換ポート72の変換特性は図8のようになるが、図9にあっては、説明を簡単にするため、磁化レベル検出信号の極性に関らず、AD変換値を0〜128として示している。   The actual conversion characteristics of the AD conversion port 72 are as shown in FIG. 8, but in FIG. 9, the AD conversion value is set to 0 regardless of the polarity of the magnetization level detection signal for the sake of simplicity. ~ 128.

図4のプロセッサ50に設けた遠近選択部76にあっては、登録モードで動作したときは先に高利得G1を初期設定しており、このため特性Aに従ったAD変換値としての磁力レベルが得られる。   In the perspective selection unit 76 provided in the processor 50 of FIG. 4, when operating in the registration mode, the high gain G1 is initially set. For this reason, the magnetic force level as an AD conversion value according to the characteristic A is set. Is obtained.

遠近選択部76は遠近判定閾値TH4を設定しており、高利得G1の初期設定による増幅で得られた磁力レベルVsが遠近判定閾値TH4以下の範囲98であれば、マグネットまでの距離は遠めと判断して高利得G1を選択して、一方、磁力レベルVsが遠近判定閾値TH4を越えて範囲100であれば、マグネットまでの距離hは近いと判断して低利得G1を選択し、磁力レベルVsを範囲98内に入るように調整する。   The perspective selection unit 76 sets the perspective determination threshold TH4. If the magnetic force level Vs obtained by the amplification by the initial setting of the high gain G1 is in the range 98 that is equal to or smaller than the perspective determination threshold TH4, the distance to the magnet is increased. If the magnetic force level Vs exceeds the perspective determination threshold TH4 and is in the range 100, it is determined that the distance h to the magnet is close and the low gain G1 is selected. The level Vs is adjusted to fall within the range 98.

ここで、図8のゼロ点を与えるAD変換値の基準値として128±γ以外の範囲を有効監視範囲としており、このため図9におけるγ<Vs≦TH4の有効監視範囲98に磁力レベルがあるときに高利得G1を選択する。またTH4<Vs≦128の範囲100にあるとき低利得G2を選択して、磁力レベルVsが有効監視範囲98内に入るように調整する。   Here, the effective monitoring range is a range other than 128 ± γ as the reference value of the AD conversion value giving the zero point in FIG. 8, and therefore there is a magnetic force level in the effective monitoring range 98 of γ <Vs ≦ TH4 in FIG. Sometimes high gain G1 is selected. Further, when in the range 100 of TH4 <Vs ≦ 128, the low gain G2 is selected and adjusted so that the magnetic force level Vs falls within the effective monitoring range 98.

この関係を図8のAD変換特性に適用すると、プラス極性の磁力レベル検出信号の場合、磁力レベルVsが有効監視範囲98−1で高利得G1を選択、範囲100−1で低利得G2を選択となり、マイナス極性の磁力レベル検出信号の場合、範囲98−2で高利得G1を選択、範囲100−2で低利得G2の選択となる。なお、利得G2に切り換えたときに、初期設定により測定した磁力レベルVsだけでなく、Vsから所定比率低い値を算出した施錠判定閾値TH3も有効監視範囲98内に入るように、利得G1とG2との切り換えタイミングを考慮して遠近判定閾値TH4を設定する。   When this relationship is applied to the AD conversion characteristics shown in FIG. 8, in the case of a positive polarity magnetic force level detection signal, the magnetic gain level Vs selects the high gain G1 in the effective monitoring range 98-1, and selects the low gain G2 in the range 100-1. In the case of a negative polarity magnetic force level detection signal, the high gain G1 is selected in the range 98-2 and the low gain G2 is selected in the range 100-2. When switching to the gain G2, not only the magnetic force level Vs measured by the initial setting but also the lock determination threshold TH3 calculated from the Vs by a predetermined ratio falls within the effective monitoring range 98 so that the gains G1 and G2 The perspective determination threshold TH4 is set in consideration of the switching timing.

図10は遠近選択部76により高利得G1が選択された場合であり、図4のプロセッサ50に設けた施錠登録処理部78は、高利得G1の選択による増幅で例えばP点の磁力レベルVs2を取得したとすると、取得した磁力レベルVs2を不揮発メモリ68に初期登録する。   FIG. 10 shows a case where the high gain G1 is selected by the perspective selection unit 76, and the lock registration processing unit 78 provided in the processor 50 of FIG. 4 sets the magnetic level Vs2 at the point P, for example, by amplification by the selection of the high gain G1. If acquired, the acquired magnetic force level Vs2 is initially registered in the nonvolatile memory 68.

続いて、初期登録した磁力レベルVs2から選択している高利得G1に対応した比率α分低い値として施錠判定閾値TH3を
TH3=Vs2−αVs2
として算出して不揮発メモリ68に登録する。
Subsequently, the lock determination threshold TH3 is set to TH3 = Vs2−αVs2 as a value lower by the ratio α corresponding to the high gain G1 selected from the initially registered magnetic force level Vs2.
And is registered in the nonvolatile memory 68.

図11は、取得した磁力レベルVs2が図10において範囲100に入った時に、遠近選択部76により低利得G2が選択された場合であり、図4のプロセッサ50に設けたクレセント錠登録処理部78は、低利得G2の選択による増幅でQ点の磁力レベルVs2を取得したとすると、取得した磁力レベルVs2を不揮発メモリ68に初期登録する。   11 shows a case where the low gain G2 is selected by the perspective selection unit 76 when the acquired magnetic force level Vs2 enters the range 100 in FIG. 10, and the crescent lock registration processing unit 78 provided in the processor 50 of FIG. If the magnetic force level Vs2 at the Q point is acquired by amplification by selecting the low gain G2, the acquired magnetic force level Vs2 is initially registered in the nonvolatile memory 68.

続いて、初期登録した磁力レベルVs2から選択している低利得G2に対応した比率β分低い値として施錠判定閾値TH3を
TH3=Vs2−βVs2
として算出して不揮発メモリ68に登録する。
Subsequently, the lock determination threshold TH3 is set to TH3 = Vs2−βVs2 as a value lower by the ratio β corresponding to the low gain G2 selected from the initially registered magnetic force level Vs2.
And is registered in the nonvolatile memory 68.

図12は図4のプロセッサによる本実施形態の監視処理を示したフローチャートである。なお、本フローチャートにおいては、本製品出荷前において窓開閉検出マグネット14を所定距離離して配置して磁力レベルVs1を測定して、第1及び第2窓判定閾値TH1,TH2と共に不揮発メモリ68に予め設定した例を示すが、磁力レベルVs1、第1及び第2窓判定閾値TH1,TH2も現場設置後に磁力レベルVs1の測定により算出して登録するようにしても良い。   FIG. 12 is a flowchart showing the monitoring process of this embodiment by the processor of FIG. In this flowchart, before opening the product, the window opening / closing detection magnet 14 is arranged at a predetermined distance to measure the magnetic force level Vs1, and the first and second window determination thresholds TH1 and TH2 are stored in the nonvolatile memory 68 in advance. Although an example of setting is shown, the magnetic force level Vs1 and the first and second window determination thresholds TH1 and TH2 may be calculated and registered by measuring the magnetic force level Vs1 after installation on the site.

図12において、図3に示したような現場設置が済んだ状態で電源が投入されると、ステップS1で初期化処理と自己診断処理が実行され、異常がなければステップS2に進み、不揮発メモリ68に記憶されている窓開閉監視の磁力レベルVs1及び第1及び第2窓判定閾値TH1,TH2を含むデータを読み込む。   In FIG. 12, when the power is turned on with the installation at the site as shown in FIG. 3, the initialization process and the self-diagnosis process are executed in step S1, and if there is no abnormality, the process proceeds to step S2, and the nonvolatile memory Data including the magnetic force level Vs1 of the window opening / closing monitoring and the first and second window determination thresholds TH1 and TH2 stored in 68 is read.

続いてステップS3に進み、登録スイッチ60をオン操作することによって施錠監視登録モードの設定が判別されると、ステップS4に進んで、増幅利得の選択、施錠検出用ホールセンサ48による磁力レベルVs2の初期登録、及びクレセント錠16の施錠と解錠を検出するための錠判定閾値TH3の登録を含む施錠監視登録処理を実行する。   Subsequently, the process proceeds to step S3, and when the setting of the lock monitoring registration mode is determined by turning on the registration switch 60, the process proceeds to step S4, where the amplification gain is selected and the magnetic force level Vs2 by the lock detection hall sensor 48 is set. Locking monitoring registration processing including initial registration and registration of a lock determination threshold TH3 for detecting locking and unlocking of the crescent lock 16 is executed.

続いてステップS5で例えば所定の監視周期への到達の有無を判定しており、監視周期への到達を判定するとステップS6に進んで電池44に対するローバッテリ監視処理を実行する。このとき電池電圧が規定電圧以下に低下していると、ローバッテリを示す電文を監視盤に無線送信して障害表示を行わせる。   Subsequently, in step S5, for example, it is determined whether or not a predetermined monitoring period has been reached. If it is determined that the monitoring period has been reached, the process proceeds to step S6 and low battery monitoring processing for the battery 44 is executed. At this time, if the battery voltage drops below a specified voltage, a message indicating a low battery is wirelessly transmitted to the monitoring panel to display a failure.

次にステップS7で窓開閉監視処理を実行し、窓開又は窓閉を判定すると、その内容を示す電文を監視盤に送信する。更にステップS8でクレセント錠の開閉監視処理を実行し、錠開又はその後の錠閉を判定すると、その内容を示す電文を監視盤に送信する。続いてステップS9で定期通報時間経過かを判別し、経過を判別した場合にはステップS10に進み、定期通報電文を監視盤に送信する定期通報処理を行う。   Next, in step S7, a window opening / closing monitoring process is executed, and when a window opening or window closing is determined, a message indicating the contents is transmitted to the monitoring board. In step S8, the crescent lock open / close monitoring process is executed, and when it is determined whether the lock is unlocked or after that, a message indicating the contents is transmitted to the monitoring board. Subsequently, in step S9, it is determined whether the regular notification time has elapsed, and if it is determined that the process has elapsed, the process proceeds to step S10, where a periodic notification process for transmitting a periodic notification message to the monitoring panel is performed.

図13は図12のステップS4におけるクレセント錠登録処理の詳細を示したフローチャートである。図13において、まずステップS11で登録スイッチ60のオン操作を判別しており、磁力レベルの初期登録のため、開閉レバー18を解錠位置に操作してクレセント錠検出マグネット20を最大距離に設定し、登録スイッチ60を操作すると、登録スイッチオンが判別されてステップS12に進み、赤色LED56aを点滅し、ステップS13で登録モードをスタートする。   FIG. 13 is a flowchart showing details of the crescent lock registration process in step S4 of FIG. In FIG. 13, first, in step S11, it is determined whether the registration switch 60 is turned on. For the initial registration of the magnetic force level, the open / close lever 18 is operated to the unlocked position to set the crescent lock detecting magnet 20 to the maximum distance. When the registration switch 60 is operated, it is determined that the registration switch is turned on, the process proceeds to step S12, the red LED 56a blinks, and the registration mode is started in step S13.

登録モードがスタートすると、ステップS14でAD変換ポート72−1からの取り込みを選択することで高利得増幅回路54−1を選択する。続いて、ステップS15で所定の登録可能期間が経過したか否か判別しており、登録可能期間が経過するまでの間、ステップS16に進んで、高利得増幅の選択状態で磁力レベルVsを取得し、ステップS17で遠近判定閾値TH4以下か否か判別する。   When the registration mode is started, the high gain amplifier circuit 54-1 is selected by selecting capturing from the AD conversion port 72-1 in step S14. Subsequently, in step S15, it is determined whether or not a predetermined registrable period has elapsed, and until the registrable period elapses, the process proceeds to step S16 to acquire the magnetic force level Vs in the selected state of high gain amplification. In step S17, it is determined whether or not the distance is below the perspective determination threshold TH4.

遠近判定閾値TH4以下であれば高利得選択状態を維持したままステップS19に進むが、遠近判定閾値TH4を超えていた場合は、ステップS18に進んでAD変換ポート72−2からの取込みを選択することで低利得増幅を選択し、選択後に磁力レベルを取得する。   If it is equal to or smaller than the perspective determination threshold TH4, the process proceeds to step S19 while maintaining the high gain selection state. If the distance determination threshold TH4 is exceeded, the process proceeds to step S18 to select capturing from the AD conversion port 72-2. Thus, the low gain amplification is selected, and the magnetic force level is acquired after the selection.

続いて、ステップS19に進み、取得した磁力レベルを予め設定した所定の有効レベルと比較し、有効レベルを超えていた場合には、ステップS20に進み、不揮発メモリ68に磁力レベルVs1として記憶する。   Then, it progresses to step S19, the acquired magnetic force level is compared with the predetermined effective level set beforehand, and when it exceeds the effective level, it progresses to step S20 and memorize | stores in the non-volatile memory 68 as magnetic force level Vs1.

続いてステップS21で高利得増幅回路54−1の選択の有無をチェックし、高利得選択回路54−1の選択であればステップS22に進み、初期登録した磁力レベルVs2から所定比率αだけ低い錠判定閾値TH3を算出して不揮発メモリ68に登録する。   Subsequently, in step S21, it is checked whether or not the high gain amplifying circuit 54-1 is selected. If the high gain selecting circuit 54-1 is selected, the process proceeds to step S22, and the lock is lowered by a predetermined ratio α from the initially registered magnetic force level Vs2. The determination threshold TH3 is calculated and registered in the nonvolatile memory 68.

またステップS21で低利得増幅回路54−2の選択を判別した場合はステップS23に進み、初期登録した磁力レベルVs2から所定比率βだけ低い錠判定閾値TH3を算出して不揮発メモリ68に登録する。   If the selection of the low gain amplifier circuit 54-2 is determined in step S21, the process proceeds to step S23, and the lock determination threshold value TH3 lower by a predetermined ratio β is calculated from the initially registered magnetic force level Vs2 and registered in the nonvolatile memory 68.

不揮発メモリ68に磁力レベルVs2及び錠判定閾値TH3が登録されると、ステップS24で表示部56の緑色LED56bを点灯し、ステップS25で施錠監視部82によるクレセント錠の施錠監視を開始させる。   When the magnetic force level Vs2 and the lock determination threshold TH3 are registered in the nonvolatile memory 68, the green LED 56b of the display unit 56 is turned on in step S24, and the lock monitoring of the crescent lock is started by the lock monitoring unit 82 in step S25.

一方、登録スイッチ60の操作により登録モードを設定している登録可能期間の間に、クレセント錠16の開閉レバー18を施錠位置に戻す操作を行わなかった場合には、ステップS19で有効レベルを超える磁力レベルが得られないために、ステップS15で有効登録期間の経過を判別したときにステップS26に進んで赤色LED56aを点滅から点灯に切り替えて初期登録の失敗を表示し、ステップS27で登録処理のエラー状態を登録すると共に、施錠監視処理部78によるクレセント錠の施錠監視を解除する。   On the other hand, if the operation of returning the open / close lever 18 of the crescent lock 16 to the locked position is not performed during the registration possible period in which the registration mode is set by operating the registration switch 60, the effective level is exceeded in step S19. Since the magnetic force level cannot be obtained, when the elapse of the effective registration period is determined in step S15, the process proceeds to step S26, the red LED 56a is switched from blinking to lighting, and the initial registration failure is displayed, and the registration process is performed in step S27. The error state is registered, and the lock monitoring of the crescent lock by the lock monitoring processing unit 78 is canceled.

図14は図12のステップS7における窓開閉監視処理の詳細を示したフローチャートである。   FIG. 14 is a flowchart showing details of the window opening / closing monitoring process in step S7 of FIG.

図14において、まずステップS31で窓開閉検出用ホールセンサ46により検出された磁力レベルをAD変換値として取得し、ステップS32に進んで前回が窓開判定であることを判別すると、ステップS33に進んで第1窓判定閾値TH1と比較する。   In FIG. 14, first, the magnetic force level detected by the window opening / closing detection hall sensor 46 in step S31 is acquired as an AD conversion value. The process proceeds to step S32, and if it is determined that the previous window open determination is made, the process proceeds to step S33. Is compared with the first window determination threshold TH1.

ステップS33で磁力レベルが第1窓判定閾値TH1以下であればステップS34に進んで窓開判定とし、この場合、窓閉の判定状態から窓開の判定状態となる異常検出状態への変化であることから、ステップS35で赤色LED56aを点灯し、異常検出状態への状態変化を報知する。   If the magnetic force level is equal to or lower than the first window determination threshold value TH1 in step S33, the process proceeds to step S34 to determine window opening, and in this case, the change from the window closing determination state to the window opening determination state is changed. Therefore, in step S35, the red LED 56a is turned on to notify the change in state to the abnormality detection state.

続いてステップS36で窓開判定の電文を監視盤に向けて無線送信し、無線送信が終了するとステップS37で赤色LED56bを消灯する。   Subsequently, in step S36, a window opening determination message is wirelessly transmitted to the monitoring panel, and when the wireless transmission is completed, the red LED 56b is turned off in step S37.

一方、ステップS33で磁力レベルが第1窓判定閾値TH1を超えていた場合はステップS38で第2窓判定閾値TH2と比較し、第2窓判定閾値TH2以上の場合は、悪戯などにより強力な磁石を外から近づけたことによる磁力レベルの異常な増加と判断し、ステップS34に進んで窓開判定とし、ステップS35〜S37で赤色LED56aを窓開判定電文の無線送信が終了するまで点灯駆動する。   On the other hand, if the magnetic force level exceeds the first window determination threshold value TH1 in step S33, it is compared with the second window determination threshold value TH2 in step S38, and if it is greater than or equal to the second window determination threshold value TH2, a powerful magnet due to mischief or the like. Is determined to be an abnormal increase in the magnetic force level due to approaching from the outside, the process proceeds to step S34 to determine window opening, and the red LED 56a is lit until the wireless transmission of the window opening determination message is completed in steps S35 to S37.

また、ステップS32で前回が開判定であった場合には、ステップS39に進み、磁力レベルが第1窓判定閾値レベルTH1より大きく、第2窓判定閾値TH2より小さいときはステップS40に進んで窓閉判定を行う。   If the previous determination was an open determination in step S32, the process proceeds to step S39. If the magnetic force level is greater than the first window determination threshold level TH1 and less than the second window determination threshold TH2, the process proceeds to step S40. Closed judgment is performed.

続いてステップS41で施錠監視部82により現在クレセント錠の閉判定中か否か判別し、閉判定中であれば、窓閉で且つ錠閉となる正常監視状態に変化していることからステップS42に進んで緑色LED56aを選択する。一方、ステップS41で開判定中であれば、窓開で且つ錠閉となる異常検出状態にあることからステップS43に進んで赤色LED56bを選択する。   Subsequently, in step S41, the lock monitoring unit 82 determines whether or not the crescent lock is currently closed, and if it is determined to be closed, the window is closed and the normal monitoring state in which the lock is closed is changed to step S42. Go to and select the green LED 56a. On the other hand, if the open determination is being made in step S41, the window is opened and the abnormality is detected to be locked, so the process proceeds to step S43 and the red LED 56b is selected.

そしてステップS44に進み、既に選択した赤色LED56a又は緑色LED56bを点灯してステップS45で窓閉の判定電文を無線送信し、送信が終了するとステップS46で点灯しているLEDを消灯する。   In step S44, the already selected red LED 56a or green LED 56b is turned on, and a window closing determination message is wirelessly transmitted in step S45. When the transmission is completed, the lit LED is turned off in step S46.

図15は図12のステップS8におけるクレセント錠開閉監視処理の詳細を示したフローチャートである。   FIG. 15 is a flowchart showing details of the crescent lock opening / closing monitoring process in step S8 of FIG.

図15において、まずステップS51で施錠検出用ホールセンサ48により検出された磁力レベルをAD変換値として取得し、ステップS52に進んで前回が錠閉判定であることを判別すると、ステップS53に進んで錠判定閾値TH3と比較する。   In FIG. 15, first, the magnetic force level detected by the lock detection hall sensor 48 is acquired as an AD conversion value in step S51, and the process proceeds to step S52. When it is determined that the previous lock determination is made, the process proceeds to step S53. Compare with the lock determination threshold TH3.

ステップS53で磁力レベルが錠判定閾値TH3以下であればステップS54に進んで錠開判定とし、この場合、錠閉の判定状態から錠開の判定状態となる異常検出状態への変化であることから、ステップS55で赤色LED56aを点灯し、異常検出状態への状態変化を報知する。   If the magnetic force level is equal to or lower than the lock determination threshold value TH3 in step S53, the process proceeds to step S54 to determine the unlocking state, and in this case, it is a change from the unlocking determination state to the abnormality detection state that becomes the unlocking determination state. In step S55, the red LED 56a is turned on to notify the state change to the abnormality detection state.

続いてステップS56で錠開判定の電文を監視盤に向けて無線送信し、無線送信が終了するとステップS57で赤色LED56bを消灯する。   Subsequently, in step S56, an unlocking determination message is wirelessly transmitted to the monitoring panel. When the wireless transmission is completed, the red LED 56b is turned off in step S57.

ステップS52で前回が開判定であった場合には、ステップS58に進み、磁力レベルが錠判定閾値レベルTH3より大きいときはステップS59に進んで錠閉判定を行う。   If the previous determination was an open determination in step S52, the process proceeds to step S58, and if the magnetic force level is greater than the lock determination threshold level TH3, the process proceeds to step S59 to perform a lock determination.

続いてステップS60で窓開閉監視部78により現在窓の閉判定中か否か判別し、閉判定中であれば、窓閉で且つ錠閉となる正常監視状態に変化していることからステップS61に進んで緑色LED56aを選択する。   Subsequently, in step S60, the window opening / closing monitoring unit 78 determines whether or not the window is currently closed. If it is determined that the window is closed, the window is closed and the normal monitoring state is locked. Go to and select the green LED 56a.

一方、ステップS60で窓開判定中であれば、窓開で且つ錠閉となる異常検出状態にあることからステップS62に進んで赤色LED56bを選択する。   On the other hand, if the window open determination is being made in step S60, since it is in an abnormality detection state in which the window is open and locked, the process proceeds to step S62 and the red LED 56b is selected.

そしてステップS63に進み、既に選択した赤色LED56a又は緑色LED56bを点灯してステップS64で錠閉の判定電文を無線送信し、送信が終了するとステップS65で点灯しているLEDを消灯する。   In step S63, the already selected red LED 56a or green LED 56b is turned on, a lock determination message is wirelessly transmitted in step S64, and when the transmission is completed, the lit LED is turned off in step S65.

また、上記の実施形態においては、クレセント錠の状態を検出する例を示しているが、窓開閉検出マグネットの検出においても適用でき、窓開閉検出装置10と窓開閉検出マグネット14の距離が設置状況に応じて異なることから、磁気レベルに応じて遠近判定を行い、最適な利得を選択して、利得に応じた開閉閾値の算出を行うようにしても良い。   Moreover, although the example which detects the state of a crescent lock is shown in said embodiment, it can apply also in the detection of a window opening / closing detection magnet, and the distance of the window opening / closing detection apparatus 10 and the window opening / closing detection magnet 14 is installation conditions. Therefore, the perspective determination may be performed according to the magnetic level, the optimum gain may be selected, and the open / close threshold value may be calculated according to the gain.

侵入者が別のマグネットを近づけて不正侵入することを検出する窓判定閾値TH2は測定した磁気レベルに基づいて算出するが、算出した窓判定閾値TH2が監視有効範囲98に入るように利得を選択する。窓判定閾値TH2は通常状態の施錠状態の磁気レベルVS1よりも高い値になり、窓判定閾値TH2が監視有効範囲98よりも越える場合にはより低い利得を選択して、各値VS1、TH1及びTH2が全て監視有効範囲98に入るようにする。   The window determination threshold value TH2 for detecting that an intruder approaches another magnet and illegally intrudes is calculated based on the measured magnetic level, and the gain is selected so that the calculated window determination threshold value TH2 falls within the effective monitoring range 98. To do. The window determination threshold value TH2 is higher than the magnetic level VS1 in the locked state in the normal state. When the window determination threshold value TH2 exceeds the effective monitoring range 98, a lower gain is selected, and each value VS1, TH1, and All TH2 are within the effective monitoring range 98.

侵入者による別のマグネットの不正接近を検出する判定閾値TH2は、クレセント錠16の状態検出においても採用してもよい。その場合も閾値TH2を含む全ての閾値TH3及び施錠状態の磁気レベルVS2が監視有効範囲98内に入るように利得を選択する。   The determination threshold value TH <b> 2 for detecting an unauthorized approach of another magnet by an intruder may also be adopted in the state detection of the crescent lock 16. Also in this case, the gain is selected so that all the threshold values TH3 including the threshold value TH2 and the locked magnetic level VS2 are within the effective monitoring range 98.

また、上記実施形態においては、利得の選択は高利得か低利得かの2種類を選択するが、これに限らず複数種の異なる利得を用意して、磁力レベル及び閾値が最適な範囲に入るよう選択するようにしても良い。上記実施形態での窓判定閾値TH2の算出は、低利得と高利得を選択した時で、磁気レベルから低下させる比率を異ならせて算出しているが、複数種の利得にした場合も同様に、利得が低くなるほど値を下げる比率を低くして算出するようにしても良い。   In the above embodiment, two types of gain selection, high gain or low gain, are selected. However, the present invention is not limited to this, and a plurality of different gains are prepared so that the magnetic force level and the threshold value are within the optimum ranges. You may make it choose so. The window determination threshold TH2 in the above embodiment is calculated by selecting a low gain and a high gain and changing the ratio of reduction from the magnetic level. The calculation may be performed with a lower ratio of decreasing the value as the gain decreases.

また、本発明はその目的と利点を損なうことの無い適宜の変形を含み、更に、上記の実施形態に示した数値による限定は受けない。
Further, the present invention includes appropriate modifications that do not impair the object and advantages thereof, and is not limited by the numerical values shown in the above embodiments.

10:窓開閉検出装置
14:窓開閉検出マグネット
16:クレセント錠
20:クレセント錠検出マグネット
52,54:増幅回路
54−1:高利得増幅回路
54−2:低利得増幅回路
70,72−1,72−2:AD変換ポート
74:窓開閉登録処理部
76:遠近選択部
78:施錠登録処理部
80:窓開閉監視部
82:施錠監視部
10: Window opening / closing detection device 14: Window opening / closing detection magnet 16: Crescent lock 20: Crescent lock detection magnet 52, 54: Amplifying circuit 54-1: High gain amplifying circuit 54-2: Low gain amplifying circuits 70, 72-1, 72-2: AD conversion port 74: Window opening / closing registration processing unit 76: Perspective selection unit 78: Locking registration processing unit 80: Window opening / closing monitoring unit 82: Locking monitoring unit

Claims (4)

監視対象に配置されたマグネットの磁気レベルの変化を検知して窓の状態を判定する窓開閉検出装置に於いて、
前記マグネットの磁気レベルを検出する磁気感知素子と、
前記磁気感知素子からの検出信号を複数の異なる利得から選択して増幅する増幅部と、
前記増幅部を高利得で増幅した出力信号から取得した磁力レベルが所定の遠近判定閾値以下の場合は前記高利得の増幅を選択し、前記磁力レベルが前記遠近判定閾値を超えている場合は選択した高利得よりも低利得を選択する遠近選択部と、
前記遠近選択部で選択された前記増幅部の利得で取得した磁力レベルから、所定比率の錠判定閾値を算出して登録する登録処理部と、
前記遠近選択部で選択された利得での前記増幅部から取得した磁気レベルと前記錠判定閾値との比較により解錠又は施錠を判定する施錠監視部と、
備え、
前記錠判定閾値は、前記遠近選択部で選択される前記増幅部の利得が低くなるほど少ない比率に基づき前記磁力レベルから算出することを特徴とする窓開閉検出装置。
In a window opening / closing detection device that detects a change in the magnetic level of a magnet arranged in a monitoring target and determines the state of the window,
A magnetic sensing element for detecting the magnetic level of the magnet;
An amplifying unit for selecting and amplifying a detection signal from the magnetic sensing element from a plurality of different gains;
When the magnetic force level acquired from the output signal obtained by amplifying the amplification unit with a high gain is equal to or lower than a predetermined perspective determination threshold, the high gain amplification is selected, and when the magnetic force level exceeds the perspective determination threshold, the selection is performed. A perspective selector that selects a lower gain than a higher gain,
A registration processing unit that calculates and registers a lock determination threshold value of a predetermined ratio from the magnetic force level acquired by the gain of the amplification unit selected by the perspective selection unit;
A lock monitoring unit for determining unlocking or locking by comparing the magnetic level acquired from the amplification unit with the gain selected by the perspective selection unit and the lock determination threshold;
Equipped with a,
The window opening / closing detection device , wherein the lock determination threshold is calculated from the magnetic force level based on a smaller ratio as the gain of the amplification unit selected by the perspective selection unit decreases .
請求項1記載の窓開閉検出装置に於いて、
前記算出した錠判定閾値が、窓開閉状態の監視に有効な磁力レベルにない場合には、有効な磁力レベルになるよう前記増幅部の利得を変更し、変更した利得における錠判定閾値を登録することを特徴とする窓開閉検出装置。
In the window opening and closing detection device according to claim 1,
If the calculated lock determination threshold is not at a magnetic level effective for monitoring the window open / close state, the gain of the amplifying unit is changed to be an effective magnetic level, and the lock determination threshold at the changed gain is registered. A window opening / closing detection device characterized by the above.
請求項1記載の窓開閉検出装置に於いて、
前記増幅回路は、高利得増幅または低利得増幅を選択する利得選択部を備え、
前記遠近選択部は、前記増幅回路の高利得の選択状態で得られた出力信号から取得した磁力レベルが所定の遠近判定閾値以下の場合は、前記高利得を選択し、前記遠近判定閾値を超えている場合は前記低利得を選択することを特徴とする窓開閉検出装置。
In the window opening and closing detection device according to claim 1,
The amplifier circuit includes a gain selection unit that selects high gain amplification or low gain amplification,
The perspective selection unit selects the high gain when the magnetic force level acquired from the output signal obtained in the high gain selection state of the amplifier circuit is equal to or lower than a predetermined perspective determination threshold, and exceeds the perspective determination threshold. If it is, the window open / close detection device is characterized by selecting the low gain.
請求項記載の窓開閉監視装置に於いて、前記登録処理部は、
前記高利得増幅の選択状態で磁力レベルを初期登録した場合は、前記磁力レベルより所定の第1比率分低いレベルを錠判定閾値として登録し、
前記低利得増幅の選択状態で磁力レベルを初期登録した場合は、前記磁力レベルより前記第1比率分より少ない第2比率分低いレベルを錠判定閾値として登録することを特徴とする窓開閉検出装置。

The window opening / closing monitoring apparatus according to claim 3 , wherein the registration processing unit includes:
When the magnetic force level is initially registered in the selected state of the high gain amplification, a level lower than the magnetic force level by a predetermined first ratio is registered as a lock determination threshold value.
A window opening / closing detection device, wherein when a magnetic force level is initially registered in the low gain amplification selection state, a level lower by a second ratio than the first ratio is registered as a lock determination threshold value. .

JP2009099637A 2009-04-16 2009-04-16 Window open / close detection device Active JP5307606B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009099637A JP5307606B2 (en) 2009-04-16 2009-04-16 Window open / close detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009099637A JP5307606B2 (en) 2009-04-16 2009-04-16 Window open / close detection device

Publications (2)

Publication Number Publication Date
JP2010250575A JP2010250575A (en) 2010-11-04
JP5307606B2 true JP5307606B2 (en) 2013-10-02

Family

ID=43312825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009099637A Active JP5307606B2 (en) 2009-04-16 2009-04-16 Window open / close detection device

Country Status (1)

Country Link
JP (1) JP5307606B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104952184A (en) * 2015-07-10 2015-09-30 成都凯天电子股份有限公司 Bi-directional wireless intelligent door magnetic detector

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4818775B2 (en) * 2006-03-30 2011-11-16 能美防災株式会社 Fire detector
JP5052204B2 (en) * 2007-05-17 2012-10-17 ホーチキ株式会社 Open / close sensor

Also Published As

Publication number Publication date
JP2010250575A (en) 2010-11-04

Similar Documents

Publication Publication Date Title
JP5307607B2 (en) Window open / close detection device
US9489828B2 (en) Programmable security sensor
US11699336B2 (en) Near-far security sensor
EP3398175B1 (en) Door/window magnetic sensing device and method of installing
US7667600B2 (en) Methods and apparatus for security device removal detection
AU2005328223B2 (en) Detection arrangements
CN106781144B (en) Magnetic sensor
JP2010129010A (en) Window opening/closing detecting device
JP5284765B2 (en) Open / close detection device
JP2013257890A (en) Window opening/closing detection device
JP5479719B2 (en) Window open / close detection device
JP5307606B2 (en) Window open / close detection device
JP2010129009A (en) Window opening/closing detecting device
JP5284764B2 (en) Window open / close detection device
JP2013044217A (en) Lock/unlock sensor for window
CN109493464A (en) Low power-consumption intelligent opal door lock monitoring system and door lock monitoring method
US20090009273A1 (en) Hall Effect Switching Circuit and Controlling Method for same
JP2010129011A (en) Window opening/closing detecting device
JP5479718B2 (en) Window open / close detection device
JP2010250573A (en) Monitoring system
JP4330927B2 (en) Flow sensor
JP2010250574A (en) Displacement detection device and magnet device
WO2017111619A1 (en) A sensor device
JP5133859B2 (en) Window open / close detection device
KR200322402Y1 (en) Electronic Door Lock Having Self Test Function by Measuring Current

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120412

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130219

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130410

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130627

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5307606

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250