Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3599992B2 - Automatic notification device and automatic notification method - Google Patents
[go: Go Back, main page]

JP3599992B2 - Automatic notification device and automatic notification method - Google Patents

Automatic notification device and automatic notification method Download PDF

Info

Publication number
JP3599992B2
JP3599992B2 JP36134697A JP36134697A JP3599992B2 JP 3599992 B2 JP3599992 B2 JP 3599992B2 JP 36134697 A JP36134697 A JP 36134697A JP 36134697 A JP36134697 A JP 36134697A JP 3599992 B2 JP3599992 B2 JP 3599992B2
Authority
JP
Japan
Prior art keywords
clock
level
polarity inversion
automatic notification
determined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP36134697A
Other languages
Japanese (ja)
Other versions
JPH11196194A (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.)
Yazaki Corp
Original Assignee
Yazaki 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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP36134697A priority Critical patent/JP3599992B2/en
Publication of JPH11196194A publication Critical patent/JPH11196194A/en
Application granted granted Critical
Publication of JP3599992B2 publication Critical patent/JP3599992B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ガスメータからのガス情報等をセンタに自動通報する自動通報装置及び自動通報方法に関し、特にターミナルアダプタに接続された時にその接続を認識することのできる自動通報装置及び自動通報方法に関する。
【0002】
【従来の技術】
従来のこの種の自動通報装置の概略構成ブロック図を図10に示す。自動通報装置100は、外部のガスメータのガス流量、異常状態等の状態を検出して電話回線を介して外部のホストコンピュータ等のセンタに通報する装置である。自動通報装置100は、電話回線に接続される電話回線接続端子LLと、電話機が接続される電話接続端子TTと、極性反転検出部101と、ノーリンギング着信検出部102と、データ送受信部103と、制御部104とを備えて構成されている。
【0003】
極性反転検出部101は、通常着信時の電話回線の極性反転、ノーリンギング通信時の電話回線の極性反転及びオフフック検出を行う。ノーリンギング着信検出部102は、ノーリンギング通信における着信を検出する。データ送受信部103は、各種データの送受信を行う。制御部104は、自動通報装置100全体を制御するとともに外部のガスメータ等に接続されている。
【0004】
図11に極性反転検出部101の回路構成を示す。極性反転検出部101において、ダイオードブリッジ回路DBの第1入力端子には、電話回線接続端子LLを構成する第1電話回線接続端子L1が接続され、第2電話回線接続端子L2がダイオードブリッジ回路DBの第2入力端子に接続されている。
【0005】
第1電話回線接続端子L1とダイオードブリッジ回路DBの第1入力端子との間の中間接続点には、ツェナーダイオードZD1のカソード端子が接続されている。トランジスタTR1のベース端子には、分圧抵抗群RG1を介してツェナーダイオードZD1のアノード端子が接続され、トランジスタTR1のコレクタ端子が制御端子LS1及び分圧抵抗を介してダイオードブリッジ回路DBの第1出力端子に接続されている。
【0006】
第2電話回線接続端子L2とダイオードブリッジ回路DBの第2入力端子との間の中間接続点には、ツェナーダイオードZD2のカソード端子が接続されている。トランジスタTR2のベース端子には、分圧抵抗群RG2を介してツェナーダイオードZD2のアノード端子が接続され、トランジスタTR2のコレクタ端子が制御端子LS2及び分圧抵抗を介してダイオードブリッジ回路DBの第1出力端子に接続されている。なお、ツェナーダイオードZD1、ZD2のスレッショルドレベル電圧は30Vである。
【0007】
一方、近年、インターネットの普及に伴い、電話回線をアナログ回線からディジタル回線に変更するユーザが増加しており、アナログ回線用の機器(アナログ回線用電話機、アナログ回線用自動通報装置)をディジタル回線に接続するためには、ターミナルアダプタ(TA)を介して接続する必要がある。
【0008】
ここで、図12を参照して、ノーリンギング通信時及び着信時の電話回線の極性反転検出時の自動通報装置の動作を説明する。ノーリンギング通信時及び着信時において、電話回線の極性が反転した場合には、図12に示すように、第1電話回線接続端子L1と、第2電話回線接続端子L2との間の電圧は、−48Vから+48Vに徐々に遷移する。
【0009】
この結果、時刻t11までは、トランジスタTR1がオフ、トランジスタTR2がオンである。制御端子PSD.L1は、“1”、PSD.L2は、“0”としていることにより、制御端子LS1は“1”レベル、制御端子LS2は“0”レベルとなり、制御部104は、定常時(極性非反転時)であることを検出することができる。
【0010】
次に時刻t11から時刻t12まで(遷移状態)は、トランジスタTR1、TR2の双方がオフとなる。制御端子PSD.L1は、“1”、PSD.L2は、“0”としていることにより、制御端子LS1は“1”レベル、制御端子LS2は“0”レベルとなり、制御部104は、定常時(極性非反転時)であることを検出することができる。
【0011】
時刻t12からは、トランジスタTR1がオン、トランジスタTR2がオフとなる。制御端子PSD.L1は、“1”、PSD.L2は、“0”としていることにより、制御端子LS1は“0”レベル、制御端子LS2は“0”レベルとなり、制御部104は、極性反転状態であることを検出することができる。
【0012】
次に、自動通報装置による16Hz信号の検出動作を図13を参照して説明する。まず、−48Vから+48Vへの極性反転(以下、極反と称する。)の時刻t12において、スレッショルドレベルVTH1で割り込みとなり、制御部104内の中央処理装置(CPU)のメインクロックがLレベルからHレベルとなる。
【0013】
そして、時刻t12から例えば、50ms経過した時、すなわち、時刻t13において極反を確定する。その後、時刻t14において、16Hz信号を検出して16Hz信号を確定することで、CPUのメインクロックがHレベルからLレベルになってメインクロック動作を終了する。
【0014】
次に、自動通報装置をターミナルアダプタに接続したときの16Hz信号の検出動作を図14を参照して説明する。図14に示すように、ターミナルアダプタを介した場合には、16Hz信号を着信する前では、電話回線の電圧は48Vまたは24Vで一定電圧であり、極反していない。
【0015】
このように極反せずに、16Hz信号が着信した場合には、時刻t15において、16Hz信号を極反と見なして、16Hz信号で割り込みとなり、CPUがHレベルとなる。そして、16Hz信号が終了し、時刻16で“極反でない”確定を行い、CPU16のメインクロックをLレベルにする。
【0016】
【発明が解決しようとする課題】
しかしながら、16Hz信号の半周期は約30msであるため、極反の確定ができない。この極反確定ができない理由を図15を参照して説明する。まず、ターミナルアダプタを介した後に16Hz信号が着信されると、時刻t15のスレッショルドレベルVTH2で割り込みを発生し、CPUは、5ms毎に極反確定動作を繰り返し行う。ここで、5ms毎に10回連続して極反確定動作が繰り返され、極反確定時間が50msとなった場合には、極反確定となる。
【0017】
しかし、図15に示す16Hz信号では、割り込み時点から極反確定動作を行うが、4回連続してLレベルとなり、5回目にHレベルとなるため、極反確定ができない。さらに、時刻t19から“極反でない”確定動作を行うが、6回連続してHレベルとなり、7回目にLレベルとなるため、“極反でない”確定ができない。
【0018】
このため、CPUは、極反確定または“極反でない”確定のどちらかの確定ができるまで、メインクロック動作(図14のCPUのHレベル)を継続させる。そして、図14に示すように、着信した信号が、1秒間だけ16Hz信号有り、2秒間だけ16Hz無し、1秒間だけ16Hz信号有りとなっているため、2秒間だけ16Hz無しの状態で初めて、“極反でない”確定ができるから、CPUのメインクロックがLレベルとなる。しかし、次の16Hz信号の着信により、再度、割り込みを発生することになる。
【0019】
すなわち、16Hz信号が着信される毎に割り込み処理となり、CPUがメインクロック発振を行ってしまう。このため、消費電流が多くなってしまい、電池の寿命が短くなってしまう。
【0020】
本発明は、ターミナルアダプタに接続されたことを認識するとともに、消費電流を低減することができる自動通報装置及び自動通報方法を提供することを課題とする。
【0021】
【課題を解決するための手段】
本発明は、前記課題を解決するために以下の構成とした。請求項1の発明の自動通報装置は、電話回線接続端子に印加される電圧の極性反転を検出するとともに着信呼出信号を検出する検出部と、この検出部が極性反転を検出したとき第1の割り込み処理によりクロックを発振させ、前記極性反転なしで前記着信呼出信号が入力された場合、前記着信呼出信号が予め定められたスレッショルドを越えた時点で極反とみなし第2の割り込み処理によりクロックを発振させるクロック制御部と、アナログ回線用の自動通報装置本体をディジタル回線に接続するときに用いられるターミナルアダプタに前記自動通報装置本体を接続したとき、操作される操作部と、この操作部からの操作信号により前記ターミナルアダプタに前記自動通報装置本体が接続されたか否かを判定する接続判定部と、この接続判定部により前記ターミナルアダプタに前記自動通報装置本体が接続されたと判定されたとき、前記クロック制御部の前記第2の割り込み処理を禁止することにより前記クロックの発振を禁止するクロック発振禁止部とを備えることを特徴とする。
【0022】
この発明によれば、検出部が、電話回線接続端子に印加される電圧の極性反転を検出するとともに着信呼出信号を検出し、クロック制御部は、検出部が極性反転を検出したとき第1の割り込み処理によりクロックを発振させ、極性反転なしで着信呼出信号が入力された場合、着信呼出信号が予め定められたスレッショルドを越えた時点で極反とみなし第2の割り込み処理によりクロックを発振させる。
【0023】
そして、ターミナルアダプタに自動通報装置本体を接続したとき、操作部が操作されると、接続判定部は、操作部からの操作信号によりターミナルアダプタに自動通報装置本体が接続されたか否かを判定し、ターミナルアダプタに前記自動通報装置本体が接続されたと判定されたとき、クロック発振禁止部は、クロック制御部の第2の割り込み処理を禁止することによりクロックの発振を禁止する。
【0024】
すなわち、ターミナルアダプタに接続時に操作部によりターミナルアダプタへの接続を認識し、第2の割り込み処理を禁止したので、着信呼出信号が着信しても割り込みが発生せず、クロックが発振しない。その結果、消費電流を少なくすることができる。
【0025】
請求項2の発明の自動通報装置は、前記ターミナルアダプタに前記自動通報装置本体が接続されたとき、前記検出部による前記極性反転は、検出されないことを特徴とする。
【0026】
請求項3の発明の自動通報装置のように、前記クロック制御部は、前記第2の割り込み処理によりクロックを第1クロックレベルに設定し、前記検出部で検出した電圧が前記スレッショルドを越えるとき第1設定レベルに設定し、検出電圧が前記スレッショルドを越えないとき第2設定レベルに設定し、前記第1設定レベルが所定時間以上継続した場合に極性反転の確定と判定する第1の判定部と、前記極性反転の確定が不可能と判定されたとき、前記着信呼出信号の終了後に前記第2設定レベルが所定時間以上継続した場合に極性反転でない確定と判定し、前記クロックを前記第1クロックレベルから第2クロックレベルに変更する第2の判定部と、前記極性反転が確定されたとき、前記着信呼出信号の確定を行い、前記クロックを前記第1クロックレベルから前記第2クロックレベルに変更する確定部とを備えることを特徴とする。
【0027】
この発明によれば、検出部で検出した電圧がスレッショルドを越えるとき第1設定レベルに設定し、検出電圧がスレッショルドを越えないとき第2設定レベルに設定し、第1設定レベルが所定時間以上継続した場合に極性反転の確定ができる。また、極性反転の確定が不可能と判定されたとき、着信呼出信号の終了後に第2設定レベルが所定時間以上継続した場合に極性反転でない確定ができる。さらに、極性反転が確定されたとき、着信呼出信号の確定ができる。
【0028】
請求項4の発明の自動通報方法は、電話回線接続端子に印加される電圧の極性反転を検出するとともに着信呼出信号を検出する検出ステップと、前記極性反転が検出されたとき第1の割り込み処理によりクロックを発振させ、前記極性反転なしで前記着信呼出信号が入力された場合、前記着信呼出信号が予め定められたスレッショルドを越えた時点で極反とみなし第2の割り込み処理によりクロックを発振させるクロック制御ステップと、アナログ回線用の自動通報装置本体をディジタル回線に接続するときに用いられるターミナルアダプタに前記自動通報装置本体を接続したとき、操作部を操作する操作ステップと、前記操作部からの操作信号により前記ターミナルアダプタに前記自動通報装置本体が接続されたか否かを判定する接続判定ステップと、前記ターミナルアダプタに前記自動通報装置本体が接続されたと判定されたとき、前記クロック制御ステップにおける前記第2の割り込み処理を禁止することにより前記クロックの発振を禁止するクロック発振禁止ステップとを含むことを特徴とする。
【0029】
請求項5の発明の自動通報方法は、前記ターミナルアダプタに前記自動通報装置本体が接続されたとき、前記極性反転は、検出されないことを特徴とする。
【0030】
請求項6の発明の自動通報方法のように、前記クロック制御ステップは、前記第2の割り込み処理によりクロックを第1クロックレベルに設定し、前記検出ステップで検出した電圧が前記スレッショルドを越えるとき第1設定レベルに設定し、検出電圧が前記スレッショルドを越えないとき第2設定レベルに設定し、前記第1設定レベルが所定時間以上継続した場合に極性反転の確定と判定する第1の判定ステップと、前記極性反転の確定が不可能と判定されたとき、前記着信呼出信号の終了後に前記第2設定レベルが所定時間以上継続した場合に極性反転でない確定と判定し、前記クロックを前記第1クロックレベルから第2クロックレベルに変更する第2の判定ステップと、前記極性反転が確定されたとき、前記着信呼出信号の確定を行い、前記クロックを前記第1クロックレベルから前記第2クロックレベルに変更する確定ステップとを含むことを特徴とする。
【0031】
【発明の実施の形態】
以下、本発明の自動通報装置及び自動通報方法の実施の形態を図面を参照して説明する。図1に本発明の自動通報装置の実施の形態の構成ブロック図を示す。図1に示す自動通報装置10は、電話回線に接続される電話回線接続端子LL、電話機が接続される電話接続端子TT、極性反転検出部11、ノーリンギング着信検出部12、データ送受信部13、制御部15、リセットスイッチ19、設定スイッチ20、発光ダイオード(LED)21を備えて構成されている。
【0032】
極性反転検出部11は、通常着信時の電話回線の極性反転、ノーリンギング通信時の電話回線の極性反転及びオフフック検出を行う。ノーリンギング着信検出部12は、ノーリンギング通信における着信を検出する。データ送受信部13は、各種データの送受信を行う。検出電圧切換部14は、極性反転検出部11の検出電圧(基準電圧)を切り換える。
【0033】
制御部15は、自動通報装置10全体を制御するとともに外部のガスメータに接続される。制御部15は、処理を実行するとともにメインクロック動作を行うCPU16、CPU16が実行すべき割り込みルーチン及び割り込み禁止ルーチンを含む制御プログラムを格納するリードオンリーメモリROM17、各種のデータを格納するランダムアクセスメモリRAM18を有する。
【0034】
リセットスイッチ19及び設定スイッチ20は、自動通報装置10がターミナルアダプタ25に接続された時にオン操作され、そのスイッチ信号によりターミナルアダプタ25への自動通報装置10の接続をCPU16に認識させるものである。
【0035】
図2にリセットスイッチ、設定スイッチ及びLEDの各信号のタイミングチャートを示す。図2に示すように、設定スイッチ20を、時刻t1にオンさせ、オン状態を時刻t5まで継続させる。リセットスイッチ19を時刻t2でオンさせ、時刻t3でオフさせる。モニタであるLED21は、時刻t3で点灯し、1.5秒間隔で点滅を3回繰り返した後、3秒間消灯し、時刻t4で点灯させる。
【0036】
時刻t4から時刻t6までのターミナルアダプタ接続設定時間において、例えば、時刻t5において設定スイッチ20を離す(スイッチオフ)ことで、ターミナルアダプタ接続設定完了となる。すなわち、設定スイッチ20が押されている間、LED21は、点滅を継続し、設定スイッチ20を離した時点で、LED21の点滅を終了させる。
【0037】
図3に極性反転検出部11及び検出電圧切換部14の回路構成を示す。極性反転検出部11において、ダイオードブリッジ回路DBの第1入力端子には、電話回線接続端子LLを構成する第1電話回線接続端子L1が接続され、第2電話回線接続端子L2がダイオードブリッジ回路DBの第2入力端子に接続されている。
【0038】
第1電話回線接続端子L1とダイオードブリッジ回路DBの第1入力端子との間の中間接続点には、ツェナーダイオードZD11のカソード端子が接続され、ツェナーダイオードZD11のアノード端子には、ツェナーダイオードZD12のカソード端子が接続されている。トランジスタTR1のベース端子には、分圧抵抗群RG1を介してツェナーダイオードZD12のアノード端子が接続され、トランジスタTR1のコレクタ端子が状態監視用端子LS1及び分圧抵抗を介して制御端子PSD.L1に接続されている。
【0039】
第2電話回線接続端子L2とダイオードブリッジ回路DBの第2入力端子との間の中間接続点には、ツェナーダイオードZD21のカソード端子が接続され、ツェナーダイオードZD21のアノード端子には、ツェナーダイオードZD22のカソード端子が接続されている。トランジスタTR2のベース端子に分圧抵抗群RG2を介してツェナーダイオードZD22のアノード端子が接続され、トランジスタTR2のコレクタ端子が状態監視用端子LS2及び分圧抵抗を介して制御端子PSD.L2に接続されている。
【0040】
ツェナーダイオードZD12の両端には、第1スイッチSW1が接続され、ツェナーダイオードZD22の両端には、第2スイッチSW2が接続されている。第1スイッチSW1及び第2スイッチSW2は、前述した検出電圧切換部14を構成している。この場合、48V電圧系PBXまたはターミナルアダプタ25を自動通報装置10に接続した場合には、第1スイッチSW1及び第2スイッチSW2は、双方ともオフ状態とされ、第1基準電圧VTH1 =30V、第2基準電圧VTH2 =−30Vとなる。
【0041】
24V電圧系PBXまたはターミナルアダプタ25を自動通報装置10に接続した場合には、第1スイッチSW1及び第2スイッチSW2は、双方ともオン状態とされ、ツェナーダイオードZD12、ZD22は、電気的に非接続状態となるため、第1基準電圧VTH1 =15V、第2基準電圧VTH2 =−15Vとなる。
【0042】
論理回路ORは、トランジスタTR1のコレクタ出力とトランジスタTR2のコレクタ出力との論理和をとり、その論理和出力は、割込信号として制御部15に出力される。
【0043】
なお、ツェナーダイオードZD11、ZD12、ZD21、ZD22のそれぞれのスレッショルドレベルは15Vであり、分圧抵抗群RG1及びRG2の一端は、それぞれ、共通電源(GND)に接続されている。
【0044】
次に、このように構成された実施の形態の自動通報装置の基本動作、すなわち、自動通報方法を図4のフローチャートを参照して説明する。まず、自動通報装置10をターミナルアダプタ25に接続すると、電話回線から極性反転検出部11に、図14に示すような極反がない48Vまたは24Vの電圧が入力され、16Hz信号が着信される。すると、論理回路ORから極反による割り込み信号がCPU16に入力される。
【0045】
また、自動通報装置10のターミナルアダプタ25への接続時に、リセットスイッチ19及び設定スイッチ20をオン操作する。すると、CPU16は、リセットスイッチ19及び設定スイッチ20からの操作信号に応じて、自動通報装置10のターミナルアダプタ25への接続認識の判定を行う(ステップS1)。
【0046】
ここで、リセットスイッチ19及び設定スイッチ20がオン操作された場合には、論理回路ORからCPU16に極反による割り込み信号が入力されても、CPU16は、割り込み信号による割り込み処理を禁止する。すなわち、極反を見ない(ステップS2)。
【0047】
このため、16Hz信号が着信しても、あるいは極反があっても(ステップS3)、割り込みが発生しないため、メインクロックが動作しない(ステップS4)。すなわち、CPU16がメインクロック発振を行わず、Lレベルのままとなる。その結果、電流が流れなくなり、消費電流を少なくすることができる。
【0048】
一方、リセットスイッチ19及び設定スイッチ20がオン操作されていない場合には、CPU16は、論理回路ORからの極反による割り込み信号により割り込み処理を行う。すなわち、極反を見る(ステップS5)。
【0049】
このため、16Hz信号あるいは極反があった場合には(ステップS6)、割り込みが発生し(ステップS7)、メインクロックが動作する(ステップS8)。すなわち、CPU16がメインクロック発振を行う。
【0050】
次に、図5に自動通報装置を含む自動通報システムの構成ブロック図を示す。図5において、自動通報装置10aにはターミナルアダプタ25及び電話機29aが接続され、自動通報装置10bにはPBX31(内線)及び電話機29bが接続されている。ターミナルアダプタ25及びPBX31には電話回線26が接続され、この電話回線26は交換機27を介してホストコンピュータ等のセンタ28に接続されている。
【0051】
次に、図5に示す自動通報装置の動作、すなわち、自動通報方法を図6のフローチャートを参照して説明する。まず、CPU16は、PBX31を自動通報装置10に接続したとき、リセットスイッチ19及び設定スイッチ20の設定、すなわち、内線の設定を行ったかどうかを判定する(ステップS11)。なお、PBX31接続時にはノーリンギング通信は不可能であり、16Hz信号極反しない。
【0052】
ここで、内線の設定を行った場合には、CPU16は、論理回路ORから割り込み信号を入力するが、内線設定により、割り込み信号の入力を無視し、割り込みルーチン(ステップS15からステップS33の処理)への処理を禁止し、極反を見ない(ステップS12)。
【0053】
すなわち、PBX31を自動通報装置10に接続したとき、スイッチ操作によりPBX31への接続をCPU16に認識させ、極反による割り込み処理を禁止したため、16Hz信号が着信しても割り込みが発生しない。このため、CPU16のメインクロックはLレベルのままである。つまり、メインクロック発振をしないので、消費電流が少なくなる。
【0054】
次に、ターミナルアダプタ(TA)25を自動通報装置10に接続したとき、リセットスイッチ19及び設定スイッチ20の設定、すなわち、ターミナルアダプタ25の設定を行ったかどうかを判定する(ステップS13)。ステップS13は、接続判定部を構成する。なお、ターミナルアダプタ25接続時にはノーリンギング通信は、不可能であり、16Hz信号の極反あり、極反なしの両方がある。
【0055】
ターミナルアダプタ25の設定を行った場合には、CPU16は、割り込み信号の入力を無視し、割り込みルーチンへの処理を禁止し、極反を見ない(ステップS12)。ステップS12は、クロック発振禁止部を構成する。すなわち、ターミナルアダプタ25を自動通報装置10に接続したとき、スイッチ操作によりターミナルアダプタ25への接続をCPU16に認識させ、極反による割り込み処理を禁止したため、16Hz信号が着信しても割り込みが発生しない。このため、メインクロック発振をしないので、消費電流が少なくなる。
【0056】
次に、PBX31を自動通報装置10に接続しても内線の設定をしない場合、ターミナルアダプタ25を自動通報装置10に接続してもターミナルアダプタ25の設定をしない場合には、割り込み信号に基づき、ステップS15からステップS33までの割り込みルーチン処理を行う。ステップS15からステップS33までの割り込みルーチン処理は、クロック制御部を構成する。
【0057】
まず、極反割り込みポートがアクティブLowとなる(ステップS15)。極反割り込みポートがアクティブLowとなるのは、(1)ノーリンギング通信(極反より開始)のとき、(2)16Hz信号(極反より開始)のとき、(3)極反無しで16Hz信号となり、その電圧値がスレッショルド電圧を超えるとき等である。なお、(3)の場合には、ステップS15からステップS27のループの処理を行う。
【0058】
そして、図14に示すように、時刻t15でCPU16のメインクロックがHレベルとなり(ステップS17)、極反が確定したかどうかを判定する(ステップS19)。ステップS19は、第1の判定部を構成する。ここで、極反が確定していない場合には、16Hz信号着信中で極反確定できない状態となる(ステップS21)。
【0059】
さらに、16Hz信号が終了し(ステップS23)、時刻16で“極反でない確定”を行い(ステップS25)、CPU16のメインクロックをLレベルにし(ステップS27)、ステップS15の処理に戻る。ステップS21からステップS27は、第2の判定部を構成する。
【0060】
このようにターミナルアダプタ25またはPBX31を介した後の16Hz信号が着信された場合には、ステップS15からステップS27のループにおいて、電話機が切れるか、受話器が取られるまでこれらの処理が繰り返される。
【0061】
一方、ステップS19で極反が確定した場合には、16Hz信号かノーリンギングかを判定する(ステップS29)。16Hz信号であれば、16Hz信号を確定し(ステップS31)、CPU16のメインクロックをLレベルにする(ステップS33)。ステップS31、S33は確定部を構成する。
【0062】
また、ノーリンギングであれば、ノーリンギング(NRS)が確定したかどうかを判定し(ステップS35)、ノーリンギングが確定したら、通信を行い(ステップS37)、ステップS33の処理に進む。
【0063】
なお、ノーリンギング通信は、電話回線の極性が反転することで開始し、ノーリンギング可能な回線では、16Hz信号も極反により開始する。16Hz信号であるかノーリンギングであるかを区別するためにCPU16のメインクロックをHレベルにする。ノーリンギング通信時及び着信時の電話回線の極性反転検出時の動作は、図12及び図13において説明した通りである。
【0064】
一方、ターミナルアダプタ25またはPBX31を自動通報装置10に接続した場合には、ノーリンギング通信は不可能であり、ノーリンギングと16Hz信号との区別を行う必要がないため、CPU16をHレベルにする必要がない。16Hz信号を確定すると、CPU16のメインクロックがLレベルとなる。
【0065】
次に、図5に示す自動通報システムにおいて、内線、及びターミナルアダプタ25を自動通報装置10に接続したときの実起動確認試験及びその試験結果を説明する。
【0066】
まず、第1及び第2電話回線接続端子L1、L2間において、内線、ターミナルアダプタ25を介した後の16Hz信号確認を行った。図7にターミナルアダプタ接続時における16Hz信号の確認結果を示す。16Hz信号が一定時間間隔で着信され、その16Hz信号の電圧値は、例えば、約ー204Vから+24Vの範囲となっている。
【0067】
次に、内線、ターミナルアダプタ25の設定を行わずに16Hz信号を着信し、その時にCPU16のメインクロックが発振するかどうかを確認した。図8にターミナルアダプタ未設定時の試験結果を示す。ターミナルアダプタ未設定時には図8に示すように、電圧V0に対してメインクロックが発振している。
【0068】
さらに、内線、ターミナルアダプタ25の設定を行い、16Hz信号を着信し、その時にCPU16のメインクロックが発振するかどうかを確認した。図9にターミナルアダプタ設定時の試験結果を示す。ターミナルアダプタ設定時には図9に示すように、電圧がV0のままであり、メインクロックは発振しない。このように、内線、ターミナルアダプタ25の設定を行ったときには、16Hz信号に対してメインクロックの発振をしないので、消費電流を少なくすることができる。
【0069】
また、簡易な構成の検出電圧切換部を設けることにより、48V電圧系及び24V電圧系の機器を接続して、極性反転検出、オフフック検出、着信検出を行うことができる。
【0070】
【発明の効果】
本発明によれば、検出部が、電話回線接続端子に印加される電圧の極性反転を検出するとともに着信呼出信号を検出し、クロック制御部は、検出部が極性反転を検出したとき第1の割り込み処理によりクロックを発振させ、極性反転なしで着信呼出信号が入力された場合、着信呼出信号が予め定められたスレッショルドを越えた時点で極反とみなし第2の割り込み処理によりクロックを発振させる。
【0071】
ターミナルアダプタに自動通報装置本体を接続したとき、操作部が操作されると、接続判定部は、操作部からの操作信号によりターミナルアダプタに自動通報装置本体が接続されたか否かを判定し、ターミナルアダプタに前記自動通報装置本体が接続されたと判定されたとき、クロック発振禁止部は、クロック制御部の第2の割り込み処理を禁止することによりクロックの発振を禁止する。
【0072】
すなわち、ターミナルアダプタに接続時に操作部によりターミナルアダプタへの接続を認識し、第2の割り込み処理を禁止したので、着信呼出信号が着信しても割り込みが発生せず、クロックが発振しない。その結果、消費電流を少なくすることができる。
【0073】
また、検出部で検出した電圧がスレッショルドを越えるとき第1設定レベルに設定し、検出電圧がスレッショルドを越えないとき第2設定レベルに設定し、第1設定レベルが所定時間以上継続した場合に極性反転の確定ができる。また、極性反転の確定が不可能と判定されたとき、着信呼出信号の終了後に第2設定レベルが所定時間以上継続した場合に極性反転でない確定ができる。さらに、極性反転が確定されたとき、着信呼出信号の確定ができる。
【図面の簡単な説明】
【図1】本発明の自動通報装置の実施の形態の構成図である。
【図2】リセットスイッチ、設定スイッチ及びLEDの各信号のタイミングチャートである。
【図3】極性反転検出部及び検出電圧切換部の回路構成図である。
【図4】自動通報装置の基本動作を示すフローチャートである。
【図5】自動通報装置を含む自動通報システムの構成ブロック図である。
【図6】実施の形態の自動通報装置の動作を示すフローチャートである。
【図7】16Hz信号の確認を示す図である。
【図8】ターミナルアダプタ未設定時におけるメインクロックの発振を示す図である。
【図9】ターミナルアダプタ設定時におけるメインクロックの発振無しを示す図である。
【図10】従来の自動通報装置の概略構成ブロック図である。
【図11】従来の自動通報装置内の極性反転検出部の回路構成を示す図である。
【図12】ノーリンギング通信時及び着信時の電話回線の極性反転検出時の自動通報装置の動作を説明する図である。
【図13】自動通報装置による16Hz信号の検出動作を説明する図である。
【図14】自動通報装置をターミナルアダプタに接続したときの16Hz信号の検出動作を説明する図である。
【図15】自動通報装置をターミナルアダプタに接続したときに極反確定ができない理由を説明する図である。
【符号の説明】
10 自動通報装置
11 極性反転検出部
12 ノーリンギング着信検出部
13 データ送受信部
14 検出電圧切換部
15 制御部
16 CPU
17 ROM
18 RAM
19 リセットスイッチ
20 設定スイッチ
21 LED
25 ターミナルアダプタ
26 電話回線
27 交換機
28 センタ
29a,29b 電話機
31 PBX
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an automatic notifying apparatus and an automatic notifying method for automatically notifying gas information and the like from a gas meter to a center, and more particularly to an automatic notifying apparatus and an automatic notifying method capable of recognizing the connection when connected to a terminal adapter.
[0002]
[Prior art]
FIG. 10 is a schematic block diagram of a conventional automatic notification device of this type. The automatic notification device 100 is a device that detects a gas flow rate of an external gas meter, an abnormal state, and the like, and notifies a center such as an external host computer via a telephone line. The automatic notification device 100 includes a telephone line connection terminal LL connected to a telephone line, a telephone connection terminal TT to which a telephone is connected, a polarity reversal detection unit 101, a no-ringing reception detection unit 102, a data transmission / reception unit 103, The control unit 104 is provided.
[0003]
The polarity reversal detection unit 101 performs the polarity reversal of the telephone line at the time of normal incoming call, the polarity reversal of the telephone line at the time of no ringing communication, and off-hook detection. The no-ringing incoming call detection unit 102 detects an incoming call in no-ringing communication. The data transmission / reception unit 103 transmits / receives various data. The control unit 104 controls the entire automatic notification device 100 and is connected to an external gas meter or the like.
[0004]
FIG. 11 shows a circuit configuration of the polarity inversion detection unit 101. In the polarity inversion detecting unit 101, a first input terminal of the diode bridge circuit DB is connected to a first telephone line connection terminal L1 constituting a telephone line connection terminal LL, and a second telephone line connection terminal L2 is connected to the diode bridge circuit DB. Is connected to the second input terminal of.
[0005]
The cathode terminal of the Zener diode ZD1 is connected to an intermediate connection point between the first telephone line connection terminal L1 and the first input terminal of the diode bridge circuit DB. The base terminal of the transistor TR1 is connected to the anode terminal of the Zener diode ZD1 via a voltage dividing resistor group RG1, and the collector terminal of the transistor TR1 is connected to the control terminal LS1 and the first output of the diode bridge circuit DB via the voltage dividing resistor. Connected to terminal.
[0006]
The cathode terminal of the Zener diode ZD2 is connected to an intermediate connection point between the second telephone line connection terminal L2 and the second input terminal of the diode bridge circuit DB. The anode terminal of the Zener diode ZD2 is connected to the base terminal of the transistor TR2 via the voltage dividing resistor group RG2, and the collector terminal of the transistor TR2 is connected to the control terminal LS2 and the first output of the diode bridge circuit DB via the voltage dividing resistor. Connected to terminal. The threshold voltage of the Zener diodes ZD1 and ZD2 is 30V.
[0007]
On the other hand, in recent years, with the spread of the Internet, the number of users who change telephone lines from analog lines to digital lines has increased, and analog line devices (analog line telephones, analog line automatic reporting devices) have been replaced with digital lines. To connect, it is necessary to connect via a terminal adapter (TA).
[0008]
Here, with reference to FIG. 12, the operation of the automatic notification device at the time of no ringing communication and at the time of detecting the inversion of the telephone line polarity at the time of an incoming call will be described. When the polarity of the telephone line is reversed during the non-ringing communication and the incoming call, as shown in FIG. 12, the voltage between the first telephone line connection terminal L1 and the second telephone line connection terminal L2 becomes − Transition gradually from 48V to + 48V.
[0009]
As a result, until time t11, the transistor TR1 is off and the transistor TR2 is on. Control terminal PSD. L1 is “1”, PSD. Since L2 is "0", the control terminal LS1 is at "1" level, the control terminal LS2 is at "0" level, and the control unit 104 detects that it is in a steady state (at the time of polarity non-inversion). Can be.
[0010]
Next, from the time t11 to the time t12 (transition state), both the transistors TR1 and TR2 are turned off. Control terminal PSD. L1 is “1”, PSD. Since L2 is "0", the control terminal LS1 is at "1" level, the control terminal LS2 is at "0" level, and the control unit 104 detects that it is in a steady state (at the time of polarity non-inversion). Can be.
[0011]
From time t12, the transistor TR1 is turned on and the transistor TR2 is turned off. Control terminal PSD. L1 is “1”, PSD. Since L2 is "0", the control terminal LS1 is at "0" level and the control terminal LS2 is at "0" level, and the control unit 104 can detect that the polarity is inverted.
[0012]
Next, an operation of detecting a 16 Hz signal by the automatic notification device will be described with reference to FIG. First, at time t12 of polarity reversal from −48V to + 48V (hereinafter referred to as “polarity reversal”), an interrupt occurs at the threshold level VTH1 and the main clock of the central processing unit (CPU) in the control unit 104 is changed from L level to H Level.
[0013]
Then, for example, when 50 ms elapses from the time t12, that is, at the time t13, the reciprocity is determined. Thereafter, at time t14, the 16-Hz signal is detected and the 16-Hz signal is determined, whereby the main clock of the CPU changes from the H level to the L level, and the main clock operation ends.
[0014]
Next, an operation of detecting a 16 Hz signal when the automatic notification device is connected to the terminal adapter will be described with reference to FIG. As shown in FIG. 14, when a 16 Hz signal is received via a terminal adapter, the voltage of the telephone line is 48 V or 24 V, which is a constant voltage, and is not inconsistent.
[0015]
When the 16 Hz signal arrives without conflict, the 16 Hz signal is regarded as a conflict at time t15, the 16 Hz signal interrupts, and the CPU goes to the H level. Then, the 16 Hz signal ends, and at time 16, "not a reciprocity" is determined, and the main clock of the CPU 16 is set to the L level.
[0016]
[Problems to be solved by the invention]
However, since the half cycle of the 16 Hz signal is about 30 ms, it is not possible to determine the reciprocity. The reason why the reciprocity cannot be determined will be described with reference to FIG. First, when a 16-Hz signal is received after passing through the terminal adapter, an interrupt is generated at the threshold level VTH2 at time t15, and the CPU repeats the pole-return determination operation every 5 ms. Here, the reciprocity determination operation is repeated ten times every 5 ms, and when the reciprocity determination time reaches 50 ms, the reciprocity determination is performed.
[0017]
However, in the case of the 16 Hz signal shown in FIG. 15, the reciprocity determination operation is performed from the time of the interruption. However, the L level becomes continuous four times and the H level becomes the fifth time, so that the reciprocity determination cannot be performed. Further, a “non-reciprocal” determination operation is performed from time t19. However, the H level is continuously attained six times and the L level is obtained at the seventh time, so that “non-reciprocal” determination cannot be performed.
[0018]
Therefore, the CPU continues the main clock operation (H level of the CPU in FIG. 14) until either the reciprocal determination or the “non-reciprocal” determination can be determined. Then, as shown in FIG. 14, the incoming signal has a 16 Hz signal for 1 second, there is no 16 Hz for 2 seconds, and there is a 16 Hz signal for 1 second. Since it is possible to determine "not conflicting", the main clock of the CPU becomes L level. However, when the next 16 Hz signal arrives, an interrupt is generated again.
[0019]
That is, every time a 16 Hz signal is received, an interrupt process is performed, and the CPU performs main clock oscillation. For this reason, current consumption increases, and the life of the battery is shortened.
[0020]
An object of the present invention is to provide an automatic notification device and an automatic notification method that can recognize that a terminal adapter has been connected and reduce current consumption.
[0021]
[Means for Solving the Problems]
The present invention has the following configuration in order to solve the above-mentioned problem. According to the first aspect of the present invention, there is provided an automatic notification device for detecting a polarity inversion of a voltage applied to a telephone line connection terminal and detecting an incoming call signal, and when the detection unit detects the polarity inversion. First When the clock is oscillated by the interrupt processing and the incoming call signal is input without the polarity inversion, it is regarded as a reciprocal when the incoming call signal exceeds a predetermined threshold. Second A clock control unit that oscillates a clock by interrupt processing, and an operation unit that is operated when the automatic reporting device main body is connected to a terminal adapter used when connecting the automatic reporting device main body for an analog line to a digital line, A connection determination unit that determines whether the automatic notification device main body is connected to the terminal adapter based on an operation signal from the operation unit; and a connection determination unit that determines that the automatic notification device main body is connected to the terminal adapter. When the clock control unit of the Second A clock oscillation prohibition unit for prohibiting oscillation of the clock by prohibiting interrupt processing.
[0022]
According to the present invention, the detection unit detects the polarity inversion of the voltage applied to the telephone line connection terminal and detects the incoming call signal, and the clock control unit detects when the detection unit detects the polarity inversion. First When an incoming call signal is input without polarity inversion and the clock is oscillated by interrupt processing, it is regarded as a reciprocal when the incoming call signal exceeds a predetermined threshold. Second The clock is oscillated by interrupt processing.
[0023]
When the operation unit is operated when the main body of the automatic notification device is connected to the terminal adapter, the connection determination unit determines whether the main body of the automatic notification device is connected to the terminal adapter based on an operation signal from the operation unit. When it is determined that the automatic notification device main body is connected to the terminal adapter, the clock oscillation prohibiting unit Second Clock oscillation is prohibited by disabling interrupt processing.
[0024]
That is, when connected to the terminal adapter, the operation unit recognizes the connection to the terminal adapter, Second Since the interrupt processing is prohibited, even if an incoming call signal arrives, no interrupt occurs and the clock does not oscillate. As a result, current consumption can be reduced.
[0025]
The automatic notification device according to a second aspect of the present invention is characterized in that when the main body of the automatic notification device is connected to the terminal adapter, the polarity inversion by the detection unit is not detected.
[0026]
As in the automatic notification device according to the third aspect of the present invention, the clock control unit Second The clock is set to a first clock level by an interrupt process, set to a first set level when the voltage detected by the detection unit exceeds the threshold, and set to a second set level when the detected voltage does not exceed the threshold. A first determining unit that determines that the polarity inversion has been determined when the first set level has continued for a predetermined time or more, and that determines that the polarity inversion has not been determined when the incoming call signal is terminated. A second determining unit that determines that the polarity is not inverted when the second set level continues for a predetermined time or more, and changes the clock from the first clock level to the second clock level; Is confirmed A determination unit configured to determine the incoming call signal and change the clock from the first clock level to the second clock level.
[0027]
According to the present invention, the first set level is set when the voltage detected by the detection unit exceeds the threshold, the second set level is set when the detected voltage does not exceed the threshold, and the first set level is maintained for a predetermined time or more. In this case, the polarity inversion can be determined. When it is determined that the polarity inversion cannot be determined, when the second set level continues for a predetermined time or more after the termination of the incoming call signal, it is possible to determine that the polarity is not inverted. In addition, polarity reversal Is confirmed Then, the incoming call signal can be determined.
[0028]
An automatic notification method according to a fourth aspect of the present invention includes a detection step of detecting polarity inversion of a voltage applied to a telephone line connection terminal and detecting an incoming call signal, and detecting the polarity inversion. First When the clock is oscillated by the interrupt processing and the incoming call signal is input without the polarity inversion, it is regarded as a reciprocal when the incoming call signal exceeds a predetermined threshold. Second A clock control step of oscillating a clock by interrupt processing, and an operation step of operating an operation unit when the automatic notification device main body is connected to a terminal adapter used when connecting the automatic notification device main body for an analog line to a digital line. A connection determining step of determining whether or not the automatic notification device main body is connected to the terminal adapter based on an operation signal from the operation unit; and when it is determined that the automatic notification device main body is connected to the terminal adapter. The clock control step Second A clock oscillation prohibiting step of prohibiting oscillation of the clock by prohibiting interrupt processing.
[0029]
The automatic notification method according to the fifth aspect is characterized in that when the main body of the automatic notification device is connected to the terminal adapter, the polarity inversion is not detected.
[0030]
As in the automatic reporting method according to the invention of claim 6, the clock control step includes the step of: Second The clock is set to a first clock level by an interrupt process, set to a first set level when the voltage detected in the detecting step exceeds the threshold, and set to a second set level when the detected voltage does not exceed the threshold. A first determining step of determining that the polarity inversion is determined when the first set level continues for a predetermined time or more; and determining that the polarity inversion is not determined when the incoming call signal is terminated. A second determining step of determining that the polarity is not inverted when the second set level continues for a predetermined time or more, and changing the clock from the first clock level to the second clock level; Is confirmed And determining the incoming call signal, and changing the clock from the first clock level to the second clock level.
[0031]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of an automatic notification device and an automatic notification method of the present invention will be described with reference to the drawings. FIG. 1 shows a configuration block diagram of an embodiment of the automatic notification device of the present invention. The automatic notification device 10 shown in FIG. 1 includes a telephone line connection terminal LL connected to a telephone line, a telephone connection terminal TT connected to a telephone, a polarity reversal detection unit 11, a no-ringing reception detection unit 12, a data transmission / reception unit 13, and a control unit. It comprises a unit 15, a reset switch 19, a setting switch 20, and a light emitting diode (LED) 21.
[0032]
The polarity reversal detection unit 11 performs polarity reversal of the telephone line at the time of normal incoming call, polarity reversal of the telephone line at the time of no ringing communication, and off-hook detection. The no-ringing incoming call detection unit 12 detects an incoming call in no-ringing communication. The data transmission / reception unit 13 transmits / receives various data. The detection voltage switching unit 14 switches the detection voltage (reference voltage) of the polarity inversion detection unit 11.
[0033]
The control unit 15 controls the entire automatic notification device 10 and is connected to an external gas meter. The controller 15 executes a process and performs a main clock operation, a read-only memory ROM 17 for storing a control program including an interrupt routine and an interrupt prohibition routine to be executed by the CPU 16, and a random access memory RAM 18 for storing various data. Having.
[0034]
The reset switch 19 and the setting switch 20 are turned on when the automatic notification device 10 is connected to the terminal adapter 25, and the CPU 16 recognizes the connection of the automatic notification device 10 to the terminal adapter 25 by the switch signal.
[0035]
FIG. 2 shows a timing chart of each signal of the reset switch, the setting switch, and the LED. As shown in FIG. 2, the setting switch 20 is turned on at time t1, and the ON state is continued until time t5. The reset switch 19 is turned on at time t2 and turned off at time t3. The LED 21 serving as a monitor is turned on at time t3, blinks three times at intervals of 1.5 seconds, turns off for 3 seconds, and turns on at time t4.
[0036]
In the terminal adapter connection setting time from time t4 to time t6, for example, when the setting switch 20 is released (switch off) at time t5, the terminal adapter connection setting is completed. That is, while the setting switch 20 is being pressed, the LED 21 continues to blink, and when the setting switch 20 is released, the blinking of the LED 21 ends.
[0037]
FIG. 3 shows a circuit configuration of the polarity inversion detection unit 11 and the detection voltage switching unit 14. In the polarity inversion detecting section 11, a first telephone line connection terminal L1 constituting a telephone line connection terminal LL is connected to a first input terminal of the diode bridge circuit DB, and a second telephone line connection terminal L2 is connected to the diode bridge circuit DB. Is connected to the second input terminal of.
[0038]
The cathode terminal of the Zener diode ZD11 is connected to an intermediate connection point between the first telephone line connection terminal L1 and the first input terminal of the diode bridge circuit DB, and the anode terminal of the Zener diode ZD12 is connected to the anode terminal of the Zener diode ZD11. The cathode terminal is connected. An anode terminal of the Zener diode ZD12 is connected to a base terminal of the transistor TR1 via a voltage dividing resistor group RG1, and a collector terminal of the transistor TR1 is connected to a control terminal PSD. Via a state monitoring terminal LS1 and a voltage dividing resistor. L1.
[0039]
The cathode terminal of the Zener diode ZD21 is connected to an intermediate connection point between the second telephone line connection terminal L2 and the second input terminal of the diode bridge circuit DB, and the anode terminal of the Zener diode ZD22 is connected to the anode terminal of the Zener diode ZD21. The cathode terminal is connected. The base terminal of the transistor TR2 is connected to the anode terminal of the Zener diode ZD22 via a voltage dividing resistor group RG2, and the collector terminal of the transistor TR2 is connected to the control terminal PSD. L2.
[0040]
A first switch SW1 is connected to both ends of the Zener diode ZD12, and a second switch SW2 is connected to both ends of the Zener diode ZD22. The first switch SW1 and the second switch SW2 constitute the detection voltage switching unit 14 described above. In this case, when the 48V voltage system PBX or the terminal adapter 25 is connected to the automatic notification device 10, both the first switch SW1 and the second switch SW2 are turned off, the first reference voltage VTH1 = 30V, and The two reference voltages VTH2 = -30V.
[0041]
When the 24 V voltage system PBX or the terminal adapter 25 is connected to the automatic notification device 10, both the first switch SW1 and the second switch SW2 are turned on, and the Zener diodes ZD12 and ZD22 are electrically disconnected. As a result, the first reference voltage VTH1 = 15V and the second reference voltage VTH2 = -15V.
[0042]
The logic circuit OR calculates a logical sum of the collector output of the transistor TR1 and the collector output of the transistor TR2, and outputs the logical sum to the control unit 15 as an interrupt signal.
[0043]
The threshold level of each of the Zener diodes ZD11, ZD12, ZD21, and ZD22 is 15 V, and one end of each of the voltage dividing resistor groups RG1 and RG2 is connected to a common power supply (GND).
[0044]
Next, the basic operation of the thus configured automatic notification device of the embodiment, that is, the automatic notification method will be described with reference to the flowchart of FIG. First, when the automatic notification device 10 is connected to the terminal adapter 25, a voltage of 48V or 24V having no reversal as shown in FIG. 14 is input from the telephone line to the polarity reversal detection unit 11, and a 16 Hz signal is received. Then, an interrupt signal due to a conflict is input to the CPU 16 from the logic circuit OR.
[0045]
When the automatic notification device 10 is connected to the terminal adapter 25, the reset switch 19 and the setting switch 20 are turned on. Then, the CPU 16 determines the recognition of the connection of the automatic notification device 10 to the terminal adapter 25 according to the operation signals from the reset switch 19 and the setting switch 20 (step S1).
[0046]
Here, when the reset switch 19 and the setting switch 20 are turned on, the CPU 16 prohibits the interrupt processing by the interrupt signal even if an interrupt signal due to a reciprocity is input to the CPU 16 from the logic circuit OR. That is, no reciprocity is seen (step S2).
[0047]
Therefore, even if a 16 Hz signal arrives or there is a conflict (step S3), no interrupt occurs, and the main clock does not operate (step S4). That is, the CPU 16 does not oscillate the main clock and remains at the L level. As a result, no current flows and the current consumption can be reduced.
[0048]
On the other hand, when the reset switch 19 and the setting switch 20 are not turned on, the CPU 16 performs an interrupt process by an interrupt signal from the logic circuit OR due to a reciprocity. That is, the opposite is observed (step S5).
[0049]
For this reason, when there is a 16 Hz signal or a reversal (step S6), an interrupt is generated (step S7), and the main clock operates (step S8). That is, the CPU 16 performs main clock oscillation.
[0050]
Next, FIG. 5 shows a configuration block diagram of an automatic notification system including an automatic notification device. In FIG. 5, a terminal adapter 25 and a telephone 29a are connected to the automatic notification device 10a, and a PBX 31 (extension) and a telephone 29b are connected to the automatic notification device 10b. A telephone line 26 is connected to the terminal adapter 25 and the PBX 31, and the telephone line 26 is connected to a center 28 such as a host computer via an exchange 27.
[0051]
Next, the operation of the automatic notification device shown in FIG. 5, that is, the automatic notification method will be described with reference to the flowchart in FIG. First, when the PBX 31 is connected to the automatic notification device 10, the CPU 16 determines whether the reset switch 19 and the setting switch 20 have been set, that is, whether the extension has been set (step S11). In addition, when the PBX 31 is connected, no ringing communication is not possible, and the 16 Hz signal does not conflict.
[0052]
Here, when the extension is set, the CPU 16 inputs an interrupt signal from the logic circuit OR, but ignores the input of the interrupt signal due to the extension setting, and executes an interrupt routine (the processing from step S15 to step S33). Is prohibited, and no reversal is observed (step S12).
[0053]
That is, when the PBX 31 is connected to the automatic notification device 10, the CPU 16 recognizes the connection to the PBX 31 by operating a switch, and interrupt processing due to reciprocity is prohibited. Therefore, no interruption occurs even when a 16 Hz signal arrives. Therefore, the main clock of the CPU 16 remains at the L level. That is, since the main clock does not oscillate, the current consumption is reduced.
[0054]
Next, when the terminal adapter (TA) 25 is connected to the automatic notification device 10, it is determined whether the reset switch 19 and the setting switch 20 have been set, that is, whether the terminal adapter 25 has been set (step S13). Step S13 forms a connection determination unit. Note that when the terminal adapter 25 is connected, no ringing communication is impossible, and there is both a reversal of a 16 Hz signal and no reversal.
[0055]
When the setting of the terminal adapter 25 is performed, the CPU 16 ignores the input of the interrupt signal, prohibits the processing to the interrupt routine, and does not look at the conflict (step S12). Step S12 forms a clock oscillation prohibition unit. That is, when the terminal adapter 25 is connected to the automatic notification device 10, the CPU 16 recognizes the connection to the terminal adapter 25 by a switch operation, and interrupt processing due to reciprocity is prohibited. Therefore, no interruption occurs even when a 16 Hz signal arrives. . For this reason, since the main clock does not oscillate, the current consumption is reduced.
[0056]
Next, if the extension is not set even if the PBX 31 is connected to the automatic notification device 10, or if the terminal adapter 25 is not set even if the terminal adapter 25 is connected to the automatic notification device 10, based on the interrupt signal, An interrupt routine from step S15 to step S33 is performed. The interrupt routine processing from step S15 to step S33 constitutes a clock control unit.
[0057]
First, the reciprocal interrupt port becomes active low (step S15). The polarity-reversal interrupt port becomes active low when (1) no-ringing communication (starts from polarity reversal), (2) when a 16 Hz signal (starts from polarity reversion), and (3) a 16 Hz signal without polarity reversion. , When the voltage value exceeds the threshold voltage. In the case of (3), a loop process from step S15 to step S27 is performed.
[0058]
Then, as shown in FIG. 14, at time t15, the main clock of the CPU 16 becomes the H level (step S17), and it is determined whether or not the reciprocity is determined (step S19). Step S19 forms a first determination unit. Here, if the reciprocity has not been determined, the reciprocity cannot be determined during the reception of the 16 Hz signal (step S21).
[0059]
Further, the 16 Hz signal is terminated (step S23), and “determination not non-reciprocal” is performed at time 16 (step S25), the main clock of the CPU 16 is set to L level (step S27), and the process returns to step S15. Steps S21 to S27 constitute a second determination unit.
[0060]
When a 16-Hz signal is received after passing through the terminal adapter 25 or the PBX 31 in this manner, in a loop from step S15 to step S27, these processes are repeated until the telephone is cut off or the handset is picked up.
[0061]
On the other hand, if the reciprocity is determined in step S19, it is determined whether the signal is a 16 Hz signal or no ringing (step S29). If it is a 16 Hz signal, the 16 Hz signal is determined (step S31), and the main clock of the CPU 16 is set to the L level (step S33). Steps S31 and S33 constitute a determination unit.
[0062]
If no ringing is determined, it is determined whether or not no ringing (NRS) is determined (step S35). If no ringing is determined, communication is performed (step S37), and the process proceeds to step S33.
[0063]
Note that the no-ringing communication is started by reversing the polarity of the telephone line, and in a line where no-ringing is possible, the 16 Hz signal is also started by the reciprocity. The main clock of the CPU 16 is set to the H level in order to determine whether the signal is a 16 Hz signal or no ringing. The operation at the time of the non-ringing communication and the detection of the inversion of the telephone line polarity at the time of the incoming call are the same as those described with reference to FIGS.
[0064]
On the other hand, when the terminal adapter 25 or the PBX 31 is connected to the automatic notification device 10, no ringing communication is impossible, and there is no need to distinguish between no ringing and a 16 Hz signal, so there is no need to set the CPU 16 to the H level. . When the 16 Hz signal is determined, the main clock of the CPU 16 becomes L level.
[0065]
Next, in the automatic notification system shown in FIG. 5, an actual start-up confirmation test and a test result when the extension and the terminal adapter 25 are connected to the automatic notification device 10 will be described.
[0066]
First, between the first and second telephone line connection terminals L1 and L2, a 16 Hz signal was confirmed after passing through the extension and the terminal adapter 25. FIG. 7 shows the result of confirming the 16 Hz signal when the terminal adapter is connected. A 16 Hz signal is received at regular time intervals, and the voltage value of the 16 Hz signal is, for example, in a range of about −204V to + 24V.
[0067]
Next, a 16 Hz signal was received without setting the extension and the terminal adapter 25, and it was confirmed whether the main clock of the CPU 16 oscillated at that time. FIG. 8 shows the test results when the terminal adapter is not set. When the terminal adapter is not set, the main clock oscillates with respect to the voltage V0 as shown in FIG.
[0068]
Further, the extension and the terminal adapter 25 were set, and a 16 Hz signal was received. At that time, it was confirmed whether the main clock of the CPU 16 oscillated. FIG. 9 shows test results when the terminal adapter is set. When the terminal adapter is set, as shown in FIG. 9, the voltage remains at V0, and the main clock does not oscillate. Thus, when the extension and the terminal adapter 25 are set, the main clock is not oscillated for the 16 Hz signal, so that the current consumption can be reduced.
[0069]
In addition, by providing a detection voltage switching unit having a simple configuration, it is possible to connect devices of the 48 V voltage system and the 24 V voltage system to perform polarity inversion detection, off-hook detection, and incoming call detection.
[0070]
【The invention's effect】
According to the present invention, the detection unit detects the polarity inversion of the voltage applied to the telephone line connection terminal and detects the incoming call signal, and the clock control unit detects when the detection unit detects the polarity inversion. First When an incoming call signal is input without polarity inversion and the clock is oscillated by interrupt processing, it is regarded as a reciprocal when the incoming call signal exceeds a predetermined threshold. Second The clock is oscillated by interrupt processing.
[0071]
When the operation unit is operated when the main body of the automatic notification device is connected to the terminal adapter, the connection determination unit determines whether the main body of the automatic notification device is connected to the terminal adapter based on an operation signal from the operation unit, and When it is determined that the main body of the automatic notification device is connected to the adapter, the clock oscillation prohibiting unit operates as the clock control unit. Second Clock oscillation is prohibited by disabling interrupt processing.
[0072]
That is, when connected to the terminal adapter, the operation unit recognizes the connection to the terminal adapter, Second Since the interrupt processing is prohibited, even if an incoming call signal arrives, no interrupt occurs and the clock does not oscillate. As a result, current consumption can be reduced.
[0073]
The first set level is set when the voltage detected by the detection unit exceeds the threshold, and the second set level is set when the detected voltage does not exceed the threshold. When the first set level continues for a predetermined time or more, the polarity is set. Inversion can be determined. When it is determined that the polarity inversion cannot be determined, when the second set level continues for a predetermined time or more after the termination of the incoming call signal, it is possible to determine that the polarity is not inverted. In addition, polarity reversal Is confirmed Then, the incoming call signal can be determined.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an embodiment of an automatic notification device according to the present invention.
FIG. 2 is a timing chart of signals of a reset switch, a setting switch, and an LED.
FIG. 3 is a circuit configuration diagram of a polarity inversion detection unit and a detection voltage switching unit.
FIG. 4 is a flowchart showing a basic operation of the automatic notification device.
FIG. 5 is a configuration block diagram of an automatic notification system including an automatic notification device.
FIG. 6 is a flowchart showing an operation of the automatic notification device according to the embodiment.
FIG. 7 is a diagram showing confirmation of a 16 Hz signal.
FIG. 8 is a diagram showing oscillation of a main clock when a terminal adapter is not set.
FIG. 9 is a diagram showing no main clock oscillation when a terminal adapter is set.
FIG. 10 is a schematic configuration block diagram of a conventional automatic notification device.
FIG. 11 is a diagram showing a circuit configuration of a polarity inversion detection unit in a conventional automatic notification device.
FIG. 12 is a diagram for explaining the operation of the automatic notification device at the time of detecting the polarity reversal of the telephone line at the time of no ringing communication and at the time of an incoming call.
FIG. 13 is a diagram illustrating a detection operation of a 16 Hz signal by the automatic notification device.
FIG. 14 is a diagram illustrating an operation of detecting a 16 Hz signal when the automatic notification device is connected to a terminal adapter.
FIG. 15 is a diagram for explaining the reason why the reciprocity cannot be determined when the automatic notification device is connected to the terminal adapter.
[Explanation of symbols]
10 Automatic notification device
11 Polarity reversal detector
12 No-ringing incoming call detector
13 Data transmission / reception unit
14 Detection voltage switching section
15 Control part
16 CPU
17 ROM
18 RAM
19 Reset switch
20 Setting switch
21 LED
25 Terminal Adapter
26 telephone line
27 exchange
28 center
29a, 29b telephone
31 PBX

Claims (6)

電話回線接続端子に印加される電圧の極性反転を検出するとともに着信呼出信号を検出する検出部と、
この検出部が極性反転を検出したとき第1の割り込み処理によりクロックを発振させ、前記極性反転なしで前記着信呼出信号が入力された場合、前記着信呼出信号が予め定められたスレッショルドを越えた時点で極反とみなし第2の割り込み処理によりクロックを発振させるクロック制御部と、
アナログ回線用の自動通報装置本体をディジタル回線に接続するときに用いられるターミナルアダプタに前記自動通報装置本体を接続したとき、操作される操作部と、
この操作部からの操作信号により前記ターミナルアダプタに前記自動通報装置本体が接続されたか否かを判定する接続判定部と、
この接続判定部により前記ターミナルアダプタに前記自動通報装置本体が接続されたと判定されたとき、前記クロック制御部の前記第2の割り込み処理を禁止することにより前記クロックの発振を禁止するクロック発振禁止部と、
を備えることを特徴とする自動通報装置。
A detection unit that detects polarity inversion of the voltage applied to the telephone line connection terminal and detects an incoming call signal;
When the detecting unit detects the polarity inversion, the clock is oscillated by the first interrupt processing, and when the incoming call signal is input without the polarity inversion, when the incoming call signal exceeds a predetermined threshold. A clock control unit that oscillates a clock by a second interrupt processing, which is regarded as
An operation unit that is operated when the automatic reporting device main body is connected to a terminal adapter used when connecting the automatic reporting device main body for an analog line to a digital line,
A connection determination unit that determines whether the automatic notification device main body is connected to the terminal adapter by an operation signal from the operation unit;
A clock oscillation prohibition unit for prohibiting the clock interrupt by prohibiting the second interrupt processing of the clock control unit when the connection determination unit determines that the main body of the automatic notification device is connected to the terminal adapter; When,
An automatic notification device comprising:
前記ターミナルアダプタに前記自動通報装置本体が接続されたとき、前記検出部による前記極性反転は、検出されないことを特徴とする請求項1記載の自動通報装置。The automatic notification device according to claim 1, wherein when the automatic notification device main body is connected to the terminal adapter, the polarity inversion by the detection unit is not detected. 前記クロック制御部は、前記第2の割り込み処理によりクロックを第1クロックレベルに設定し、前記検出部で検出した電圧が前記スレッショルドを越えるとき第1設定レベルに設定し、検出電圧が前記スレッショルドを越えないとき第2設定レベルに設定し、前記第1設定レベルが所定時間以上継続した場合に極性反転の確定と判定する第1の判定部と、
前記極性反転の確定が不可能と判定されたとき、前記着信呼出信号の終了後に前記第2設定レベルが所定時間以上継続した場合に極性反転でない確定と判定し、前記クロックを前記第1クロックレベルから第2クロックレベルに変更する第2の判定部と、
前記極性反転が確定されたとき、前記着信呼出信号の確定を行い、前記クロックを前記第1クロックレベルから前記第2クロックレベルに変更する確定部と、
を備えることを特徴とする請求項1または請求項2記載の自動通報装置。
The clock control unit sets a clock to a first clock level by the second interrupt processing, sets the clock to a first set level when the voltage detected by the detection unit exceeds the threshold, and sets the detected voltage to the threshold. A first determination unit that sets the second set level when not exceeded, and determines that the polarity inversion is fixed when the first set level continues for a predetermined time or more;
When it is determined that the polarity inversion cannot be determined, when the second set level continues for a predetermined time or more after the termination of the incoming call signal, it is determined that polarity inversion is not determined, and the clock is set to the first clock level. A second determining unit for changing from a second clock level to a second clock level;
When the polarity inversion is determined, a determination unit that determines the incoming call signal and changes the clock from the first clock level to the second clock level;
The automatic notification device according to claim 1 or 2, further comprising:
電話回線接続端子に印加される電圧の極性反転を検出するとともに着信呼出信号を検出する検出ステップと、
前記極性反転が検出されたとき第1の割り込み処理によりクロックを発振させ、前記極性反転なしで前記着信呼出信号が入力された場合、前記着信呼出信号が予め定められたスレッショルドを越えた時点で極反とみなし第2の割り込み処理によりクロックを発振させるクロック制御ステップと、
アナログ回線用の自動通報装置本体をディジタル回線に接続するときに用いられるターミナルアダプタに前記自動通報装置本体を接続したとき、操作部を操作する操作ステップと、
前記操作部からの操作信号により前記ターミナルアダプタに前記自動通報装置本体が接続されたか否かを判定する接続判定ステップと、
前記ターミナルアダプタに前記自動通報装置本体が接続されたと判定されたとき、前記クロック制御ステップにおける前記第2の割り込み処理を禁止することにより前記クロックの発振を禁止するクロック発振禁止ステップと、
を含むことを特徴とする自動通報方法。
A detection step of detecting the polarity inversion of the voltage applied to the telephone line connection terminal and detecting the incoming call signal;
When the polarity inversion is detected, a clock is oscillated by a first interrupt process. When the incoming call signal is input without the polarity inversion, the clock is oscillated when the incoming call signal exceeds a predetermined threshold. A clock control step of causing the clock to oscillate by the second interrupt processing,
An operation step of operating an operation unit when the automatic reporting device main body is connected to a terminal adapter used when connecting the automatic reporting device main body for an analog line to a digital line,
A connection determination step of determining whether or not the automatic notification device main body is connected to the terminal adapter by an operation signal from the operation unit,
A clock oscillation prohibiting step of prohibiting the oscillation of the clock by prohibiting the second interrupt processing in the clock control step when it is determined that the automatic notification device main body is connected to the terminal adapter;
An automatic notification method comprising:
前記ターミナルアダプタに前記自動通報装置本体が接続されたとき、前記極性反転は、検出されないことを特徴とする請求項4記載の自動通報方法。5. The automatic reporting method according to claim 4, wherein the polarity inversion is not detected when the main body of the automatic reporting device is connected to the terminal adapter. 前記クロック制御ステップは、前記第2の割り込み処理によりクロックを第1クロックレベルに設定し、前記検出ステップで検出した電圧が前記スレッショルドを越えるとき第1設定レベルに設定し、検出電圧が前記スレッショルドを越えないとき第2設定レベルに設定し、前記第1設定レベルが所定時間以上継続した場合に極性反転の確定と判定する第1の判定ステップと、
前記極性反転の確定が不可能と判定されたとき、前記着信呼出信号の終了後に前記第2設定レベルが所定時間以上継続した場合に極性反転でない確定と判定し、前記クロックを前記第1クロックレベルから第2クロックレベルに変更する第2の判定ステップと、
前記極性反転が確定されたとき、前記着信呼出信号の確定を行い、前記クロックを前記第1クロックレベルから前記第2クロックレベルに変更する確定ステップと、
を含むことを特徴とする請求項4または請求項5記載の自動通報方法。
The clock control step sets a clock to a first clock level by the second interrupt processing, sets the clock to a first set level when the voltage detected in the detection step exceeds the threshold, and sets the detected voltage to the threshold. A first determination step of setting the second set level when not exceeding, and determining that the polarity inversion is determined when the first set level continues for a predetermined time or more;
When it is determined that the polarity inversion cannot be determined, when the second set level continues for a predetermined time or more after the termination of the incoming call signal, it is determined that polarity inversion is not determined, and the clock is set to the first clock level. A second determination step of changing from a second clock level to a second clock level;
When the polarity inversion is determined , the incoming call signal is determined, and the clock is changed from the first clock level to the second clock level.
The automatic notification method according to claim 4 or claim 5, further comprising:
JP36134697A 1997-12-26 1997-12-26 Automatic notification device and automatic notification method Expired - Fee Related JP3599992B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36134697A JP3599992B2 (en) 1997-12-26 1997-12-26 Automatic notification device and automatic notification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36134697A JP3599992B2 (en) 1997-12-26 1997-12-26 Automatic notification device and automatic notification method

Publications (2)

Publication Number Publication Date
JPH11196194A JPH11196194A (en) 1999-07-21
JP3599992B2 true JP3599992B2 (en) 2004-12-08

Family

ID=18473208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36134697A Expired - Fee Related JP3599992B2 (en) 1997-12-26 1997-12-26 Automatic notification device and automatic notification method

Country Status (1)

Country Link
JP (1) JP3599992B2 (en)

Also Published As

Publication number Publication date
JPH11196194A (en) 1999-07-21

Similar Documents

Publication Publication Date Title
JP4328566B2 (en) VoIP switching device
JP2000068922A (en) Mobile terminal device
JP3599992B2 (en) Automatic notification device and automatic notification method
US5987119A (en) Apparatus for automatically recovering speech path of telephone terminal and method therefor
US9544448B2 (en) Communication apparatus and method for determining connection
JP3678635B2 (en) Telephone control circuit, telephone control method, and terminal adapter
JP4055549B2 (en) Terminal network controller
EP0975137B1 (en) Network control apparatus capable of decreasing power consumption during a waiting mode
JPH10108245A (en) PHS mobile station
JP3761459B2 (en) Station equipment
KR100698165B1 (en) Current consumption suppression method of the terminal
JP4023009B2 (en) Terminal network controller
JPH10164214A (en) Telephone equipment
JP2954677B2 (en) Terminal network controller
JP3451974B2 (en) Interface device connected to telephone line terminal and power supply method to terminal
JPH042519Y2 (en)
JP3228636B2 (en) Terminal network controller
JPH0461542A (en) Terminal network controller
JPH08317081A (en) Terminal network controller
JP2958230B2 (en) Terminal network controller
KR20020037872A (en) Apparatus and Method for saving power in Wireless Local Loop terminal
JPH0292048A (en) Hook detection method in radio telephone system
JPS62232251A (en) Memory dial telephone set
JPS6378645A (en) Telephone controller
JPH09270830A (en) Data communication equipment

Legal Events

Date Code Title Description
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: 20040907

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040915

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080924

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080924

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090924

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100924

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees