JPH04302557A - Code error rate measuring instrument - Google Patents

Code error rate measuring instrument

Info

Publication number
JPH04302557A
JPH04302557A JP3092700A JP9270091A JPH04302557A JP H04302557 A JPH04302557 A JP H04302557A JP 3092700 A JP3092700 A JP 3092700A JP 9270091 A JP9270091 A JP 9270091A JP H04302557 A JPH04302557 A JP H04302557A
Authority
JP
Japan
Prior art keywords
main power
switch
state
error rate
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3092700A
Other languages
Japanese (ja)
Inventor
Hideki Takakura
高倉 秀基
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP3092700A priority Critical patent/JPH04302557A/en
Publication of JPH04302557A publication Critical patent/JPH04302557A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Power Sources (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To present a device which performs the processing, which is interrupted by turning-off of a main power source, as soon as possible after turning- off of the main power source. CONSTITUTION:A switch 2 is switched to connect the main power source to the power supply circuit of a measuring instrument, and its state is outputted. If the voltage supplied to the power supply circuit is reduced to a certain value or lower, a main power source turning-off detection circuit 1 outputs a signal indicating turning-off of the main power source. A switch state holding circuit 3 inverts the state by a prescribed threshold of chattering generated for switching or the switch and holds and outputs this state. An input latch 4 receives the output of the switch state holding circuit and the main power source turning-off signal to store the output of the switch state holding circuit.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【発明の利用分野】本発明は、デジタル通信回線の伝送
品質を評価するために用いられる符号誤り率測定装置に
おいて、主電源断を検出して、所定の処理を行わせるよ
うにしたものである。すなわち、機器の操作者の意思に
よって電源スイッチが切断されたものか、停電によるも
のかを検出し、主電源断後の処理ルーチンを変えるよう
にした符号誤り率測定装置に関するものである。
[Field of Application of the Invention] The present invention is a code error rate measuring device used to evaluate the transmission quality of a digital communication line, which detects a main power failure and performs a predetermined process. . That is, the present invention relates to a code error rate measuring device that detects whether the power switch has been turned off or due to a power outage according to the intention of the operator of the device, and changes the processing routine after the main power is turned off.

【0002】0002

【従来の技術】符号誤り率測定装置は、主として通信回
線の保守に用いられる。代表的な符号誤り率測定装置の
構成は以下の通りである。送信側にはクロック発生器と
そのクロックに同期して擬似ランダムパターンを発生す
るパターン発生器を備えている。そして、被測定回線を
介して、受信側に擬似ランダムパターンを送信する。受
信側では、誤り検出回路、検出された誤り数をカウント
する誤り数のカウンタ、パターン発生器、及び送信側の
信号と受信側の信号との同期を確立するための同期確立
回路を備えている。
2. Description of the Related Art A code error rate measuring device is mainly used for maintenance of communication lines. The configuration of a typical code error rate measuring device is as follows. The transmitting side is equipped with a clock generator and a pattern generator that generates a pseudo-random pattern in synchronization with the clock. Then, the pseudorandom pattern is transmitted to the receiving side via the line under test. The receiving side includes an error detection circuit, an error counter for counting the number of detected errors, a pattern generator, and a synchronization establishment circuit for establishing synchronization between the transmitting side signal and the receiving side signal. .

【0003】この符号誤り率測定装置の使用例として、
長期間通信回線に接続し、その誤り率の平均値で回線の
品質を評価することがある。このような場合に、測定中
に停電があると、測定が中断し、停電回復後に測定を再
開することが必要となる。また、測定中に、測定者がス
イッチ操作等により任意に測定を中断できることも必要
である。
[0003] As an example of the use of this bit error rate measuring device,
Sometimes a communication line is connected for a long period of time and the quality of the line is evaluated based on the average error rate. In such a case, if there is a power outage during measurement, the measurement will be interrupted and it will be necessary to restart the measurement after the power outage is restored. It is also necessary that the measurer be able to interrupt the measurement at will by operating a switch or the like during the measurement.

【0004】例えば、符号誤り率の測定において、測定
者が任意にスイッチを切った場合、ビット誤り率のデー
タである測定データを記憶するとともに、インタフェー
ス条件、測定条件、回線の設定条件等を記憶しておくこ
とが望まれる。この諸条件が記憶されていれば、測定を
再開するときに、煩雑な多数の条件設定を行う必要から
測定者は開放される。また、測定者が熟練していない場
合にも、容易に測定を行うことができる。また、それに
加えて、測定の再開時に、測定者の判断により、測定の
初期状態に戻るか、または、測定の継続状態に戻るかを
選択できるようにしておくことも望まれる。
For example, in measuring the bit error rate, if the measurer turns off the switch arbitrarily, the measurement data, which is the bit error rate data, is stored, as well as the interface conditions, measurement conditions, line setting conditions, etc. It is desirable to keep it. If these conditions are stored, the measurer is freed from the need to set a large number of complicated conditions when restarting measurement. Furthermore, even if the measurer is not skilled, the measurement can be easily carried out. In addition, it is also desirable that when restarting measurement, the measurer can select whether to return to the initial measurement state or to return to the continuous measurement state, based on his or her judgment.

【0005】また、停電等の外的要因による主電源断が
発生した場合、それまでの測定データを保護しておくこ
とが必要である。そして、交換機等により回線設定等を
行っている場合には回線設定条件をも記憶し、保護する
必要がある。例えば、電話のダイヤル機能のように交換
機を制御して回線を引き込んでくる場合は、電源が回復
した時に回線の設定を測定装置の側で記憶していないと
引き込んだままになってしまう。また、専用線の途中に
測定装置への引込み用のブランチボックスを入れて制御
する場合にも回線が引込み続きにならないように回線の
設定を記憶しておく必要がある。
[0005] Furthermore, when the main power is cut off due to an external factor such as a power outage, it is necessary to protect the measurement data up to that point. If line settings are performed using a switchboard or the like, the line setting conditions must also be stored and protected. For example, when a telephone exchange is controlled to connect a line, such as with a dialing function on a telephone, if the line settings are not memorized by the measuring device when the power is restored, the line will remain connected. Further, even when a branch box for connecting to the measuring device is inserted in the middle of a dedicated line for control, it is necessary to memorize the line settings so that the line does not continue to be disconnected.

【0006】このように、測定者が任意にスイッチを切
った場合でも、停電等の外的要因による主電源断が発生
した場合でも、測定器内部の電源回路(一般には直流電
源であり、以下「内部電源」という)の電圧の低下によ
り測定装置が機能しなくなるまでの間に必要なデータを
記憶し、主電源断からの回復時に備えた測定の諸条件を
記憶しておくことが求められる。そして、このとき、主
電源断の原因の違いにより保存すべきデータも異なるこ
とがあり、主電源断からの回復時の処理も異なるので、
それぞれ原因に適合した処理が要求される。そのために
は、測定の実行中に何らかの原因により主電源断が発生
したとき、内部電源の電圧が低下するまでの時間に、測
定者が任意にスイッチを切ったのか、それとも、停電等
の外的要因により主電源断が発生したのかをできるだけ
早く検出することが求められる。
[0006] In this way, even if the operator turns off the switch at will, or if the main power is cut off due to an external factor such as a power outage, the power supply circuit (generally a DC power supply) inside the measuring instrument (generally a DC power supply, It is necessary to memorize the necessary data until the measuring device stops functioning due to a drop in the voltage of the "internal power supply"), and to memorize the various measurement conditions in preparation for recovery from a main power outage. . At this time, the data to be saved may differ depending on the cause of the main power outage, and the processing when recovering from the main power outage also differs.
Treatment appropriate to each cause is required. In order to do this, if the main power is cut off for some reason during measurement, it is necessary to check whether the measurer turned off the switch voluntarily during the time until the voltage of the internal power supply drops, or whether it was caused by an external power failure such as a power outage. It is required to detect as soon as possible whether the main power supply has been cut off due to a cause.

【0007】しかし、測定者がスイッチを切った場合は
、スイッチのチャタリングが発生するので、スイッチが
オン状態にあるのか、オフ状態にあるのかを判断するの
に、チャタリングが収束するまでの一定の時間を待たな
ければならない。そして、このスイッチの状態が判断で
きて初めて、その主電源断の発生原因が人為的なもので
あるか、外的要因によるものであるか判断できる。その
ため、測定データを圧縮し、並べ換え、そしてバックア
ップ用のメモリに記憶させる等の処理を行うための処理
時間が十分に確保できず、また、上記のインタフェース
条件、測定条件等をバックアップ用のメモリに記憶する
処理時間の余裕がないという問題があった。
However, when the operator turns off the switch, chattering occurs in the switch, so it takes a certain amount of time until the chattering subsides to determine whether the switch is on or off. have to wait for time. Only when the state of this switch can be determined can it be determined whether the cause of the main power cut-off is artificial or caused by an external factor. As a result, it is not possible to secure enough processing time to compress the measurement data, rearrange it, and store it in the backup memory. There was a problem that there was not enough processing time to memorize the information.

【0008】例えば、従来の技術として特開昭58−1
69218号公報の主電源断復帰方式があるが、この方
式では主電源断発生時に走行中のプログラムを電池など
でバックアップされたメモリに退避し、電源回復時にそ
れを読み出すようにしており、ソフトウエアで退避した
プログラムが主電源断プログラムかどうか判定してスイ
ッチのチャタリングなどがあっても電源回復時の復帰プ
ログラムが正確に動作するようにしている。しかし、こ
の方式ではチャタリングが収束するまでの間は何の処理
もできないため、電源回復時の正常動作は保証するが、
主電源断時の処理時間については実質的に最大でとって
もチャタリングの収束から内部電源が断になるまでであ
り、十分な主電源断後の処理時間を確保できたとはいえ
ない。なお、一般に、電源スイッチを切断してから、チ
ャタリングが収束するまでの時間は40ms程度である
For example, as a conventional technique, Japanese Patent Laid-Open No. 58-1
There is a main power failure recovery method disclosed in Japanese Patent No. 69218, but in this method, the running program is saved in a memory backed up by a battery or the like when the main power is turned off, and is read out when the power is restored. It is determined whether the saved program is a main power-off program or not, so that even if there is switch chattering, the return program will operate correctly when the power is restored. However, with this method, no processing can be performed until the chattering subsides, so although normal operation is guaranteed when the power is restored,
The processing time when the main power is turned off is substantially the maximum time from when the chattering settles until the internal power is turned off, and it cannot be said that sufficient processing time after the main power is turned off has been secured. Note that, generally, the time from when the power switch is turned off until the chattering subsides is about 40 ms.

【0009】[0009]

【発明が解決しようとする課題】以上述べたように、主
電源断が発生した場合に測定者が人為的にスイッチを切
り主電源断となったのか、停電等の外的要因により主電
源断となったのかの判断を行い、その状態に適合した処
理を行うことが求められる。しかし、従来の技術におい
ては測定者がスイッチを切った場合にチャタリングが発
生するために、チャタリングが収束するまでの一定の時
間スイッチの状態を判定するのを待たなければならなか
った。そのため、各要因別の処理時間を十分にとれなか
った。本発明の目的は測定者が人為的にスイッチを切っ
たのか、停電等の外的要因により主電源の断となったの
かの判定を早期に行い、各要因別の処理時間を従来より
も長くした符号誤り率測定装置を提供することにある。
[Problems to be Solved by the Invention] As stated above, when a main power outage occurs, it is difficult to determine whether the main power was cut off due to an external factor such as a power outage. It is necessary to judge whether the situation has occurred and to perform processing appropriate to the situation. However, in the conventional technology, chattering occurs when the operator turns off the switch, so it is necessary to wait for a certain period of time to determine the state of the switch until the chattering subsides. Therefore, it was not possible to take enough processing time for each factor. The purpose of the present invention is to quickly determine whether the operator turned off the switch manually or whether the main power supply was cut off due to an external factor such as a power outage, and the processing time for each factor is longer than before. An object of the present invention is to provide a code error rate measuring device that has the following characteristics.

【0010】0010

【課題を解決するための手段】このような課題を解決す
るため、本発明の符号誤り率測定装置では、スイッチ2
の切り換えによるチャタリングが収束する以前に、主電
源断の原因を検出し、それぞれの原因に対応した処理を
行う時間をできるだけ長くできるようにしたことを特徴
とする。そのために、スイッチ2のオンまたはオフ状態
の遷移により発生するチャタリングに起因して連続して
到来する最初のパルスで状態を反転させ、その状態を保
持し、その状態を出力するスイッチ状態保持回路3を設
けたことを特徴とする。すなわち、本発明の符号誤り率
測定装置においては、外部から供給される主電源を符号
誤り率測定器6の電源回路7に供給するか否かを切り換
えるとともにそのオンまたはオフの状態を出力するスイ
ッチ2を持ち、その電源回路7に供給される主電源の電
圧が規定値以下になったときは主電源断信号を出力する
主電源断検出回路1と、スイッチを切り換えるときに発
生するチャタリングが所定しきい値に達した場合、論理
状態を反転させるとともに、その論理状態を保持してお
き、その論理状態を出力するスイッチ状態保持回路3と
、そのスイッチ状態保持回路3の出力と主電源断検出回
路1からの主電源断信号とを受け、スイッチ状態保持回
路3の出力を記憶する入力ラッチ4とを備えている。
[Means for Solving the Problems] In order to solve such problems, in the code error rate measuring device of the present invention, switch 2
The present invention is characterized in that the cause of the main power cut-off is detected before the chattering due to switching has subsided, and the time for processing corresponding to each cause is made as long as possible. For this purpose, a switch state holding circuit 3 that inverts the state with the first pulse that successively arrives due to chattering caused by the transition of the switch 2 between on and off states, holds that state, and outputs that state. It is characterized by having the following. That is, in the code error rate measurement device of the present invention, a switch is provided that switches whether or not to supply the main power supply supplied from the outside to the power supply circuit 7 of the code error rate measurement device 6, and outputs its on or off state. 2, and a main power cutoff detection circuit 1 that outputs a main power cutoff signal when the voltage of the main power supply supplied to the power supply circuit 7 falls below a specified value, and a main power cutoff detection circuit 1 that outputs a main power cutoff signal when the voltage of the main power supply supplied to the power supply circuit 7 becomes lower than a specified value, and a predetermined chattering that occurs when switching the switch. When the threshold value is reached, the switch state holding circuit 3 inverts the logic state, holds the logic state, and outputs the logic state, and the output of the switch state holding circuit 3 and main power failure detection. The input latch 4 receives the main power supply cutoff signal from the circuit 1 and stores the output of the switch state holding circuit 3.

【0011】[0011]

【作用】まず、スイッチ2の設定がオフの状態、すなわ
ち、測定者が意思によって主電源断を行った場合の処理
は以下の通りである。スイッチ2の設定がオフになると
主電源の電圧は低下するとともに、チャタリングが発生
する。この場合、スイッチ状態保持回路3は、このチャ
タリングに起因して連続して到来する最初のパルスでス
イッチ状態保持回路3の論理状態を反転させ、その状態
を保持する。つぎに、主電源断検出回路1は主電源の電
圧の低下を検出し、規定電圧以下になるとその電圧の低
下という結果を出力する。この結果により主電源断の割
り込み処理に入る。入力ラッチ4は主電源断の検出結果
を受け、スイッチ状態保持回路3(オフである)の状態
をラッチし、割り込み処理において、入力ラッチ4の状
態を読み、測定者による主電源断であると判断する。次
に、スイッチ2の設定がオンの状態にある、つまり外部
的な要因による主電源断の場合の処理は次の通りである
。スイッチ2の状態はオンのままであるが、主電源の電
圧が低下する。この場合、スイッチ状態保持回路3はオ
ンの状態にある。その後、主電源断検出回路1の出力が
所定の電圧以下になったとき割り込み処理に入る。また
は、入力ラッチ4は入力断の検出結果を受け、スイッチ
状態保持回路3の状態をラッチする。割り込み処理にお
いては、入力ラッチ4の状態を読み、その状態がオンで
あるので、外部的な要因による主電源断であると判断す
る。このように、本発明と従来の技術とはスイッチ2の
チャタリング終了前に主電源断時の処理が可能であるこ
とが異なる。
[Operation] First, when the switch 2 is set to OFF, that is, when the measurer intentionally turns off the main power, the processing is as follows. When the switch 2 is set to OFF, the voltage of the main power supply decreases and chattering occurs. In this case, the switch state holding circuit 3 inverts the logic state of the switch state holding circuit 3 with the first pulse that successively arrives due to this chattering, and holds that state. Next, the main power supply cutoff detection circuit 1 detects a drop in the voltage of the main power supply, and when the voltage falls below a specified voltage, outputs a result indicating that the voltage has dropped. Based on this result, main power-off interrupt processing begins. The input latch 4 receives the detection result of the main power supply cutoff, latches the state of the switch state holding circuit 3 (off), reads the state of the input latch 4 in the interrupt processing, and determines that the main power supply cutoff was caused by the operator. to decide. Next, when the setting of switch 2 is on, that is, when the main power is turned off due to an external factor, the processing is as follows. The state of switch 2 remains on, but the mains voltage drops. In this case, the switch state holding circuit 3 is in an on state. Thereafter, when the output of the main power-off detection circuit 1 becomes lower than a predetermined voltage, interrupt processing is started. Alternatively, the input latch 4 receives the input disconnection detection result and latches the state of the switch state holding circuit 3. In the interrupt processing, the state of the input latch 4 is read, and since the state is on, it is determined that the main power has been cut off due to an external factor. As described above, the present invention differs from the prior art in that the process when the main power is turned off can be performed before the chattering of the switch 2 ends.

【0012】0012

【実施例】本発明の符号誤り率測定装置の一実施例を以
下に述べる。送信側にはクロック発生器とそのクロック
に同期して擬似ランダムパターンを発生するパターン発
生器とを有する。そして、被測定回線を介して、受信側
に擬似ランダムパターンを送信する。符号誤り率測定器
6である受信側には、擬似ランダムパターンの誤りを検
出する誤り検出回路とその検出された誤り数をカウント
する誤り数のカウンタとパターン発生器と送信側の擬似
ランダムパターンの信号と受信側の擬似ランダムパター
ンの信号との同期を確立するための同期確立回路を有す
る。
[Embodiment] An embodiment of the code error rate measuring device of the present invention will be described below. The transmitting side includes a clock generator and a pattern generator that generates a pseudo-random pattern in synchronization with the clock. Then, the pseudorandom pattern is transmitted to the receiving side via the line under test. The receiving side, which is the code error rate measuring device 6, includes an error detection circuit for detecting errors in the pseudo-random pattern, an error counter for counting the number of detected errors, a pattern generator, and a pseudo-random pattern error detection circuit on the transmitting side. It has a synchronization establishment circuit for establishing synchronization between the signal and the pseudo-random pattern signal on the receiving side.

【0013】そして、符号誤り率測定装置の主電源断検
出部5は以下の構成である。すなわち、外部から供給さ
れる主電源を符号誤り率測定器6の電源回路に供給する
か否かを切り換えるとともに、そのオンまたはオフの状
態を出力するスイッチ2を持ち、その電源回路に供給さ
れる電圧が規定値以下になったときは主電源断信号を出
力する主電源断検出回路1と、スイッチを切り換えると
きに発生するチャタリングに起因して連続して到来する
最初のパルスで論理状態を反転させ、そのままその状態
を保持しておき、その状態を出力するスイッチ状態保持
回路3と、そのスイッチ状態保持回路3の出力と主電源
断検出回路1からの主電源断信号とを受け、スイッチ状
態保持回路3の出力を記憶する入力ラッチ4とを備えて
いる。
The main power failure detection section 5 of the bit error rate measuring device has the following configuration. That is, it has a switch 2 that switches whether or not to supply the main power supply supplied from the outside to the power supply circuit of the bit error rate measuring device 6, and outputs its on or off state, and the switch 2 that is supplied to the power supply circuit. The main power cutoff detection circuit 1 outputs a main power cutoff signal when the voltage falls below a specified value, and the logic state is reversed at the first pulse that arrives consecutively due to chattering that occurs when switching a switch. The switch state holding circuit 3 outputs the state, and receives the output of the switch state holding circuit 3 and the main power cutoff signal from the main power cutoff detection circuit 1, and changes the switch state. It also includes an input latch 4 that stores the output of the holding circuit 3.

【0014】以下、この測定装置の動作手順を図1、図
2により述べる。図1で太い線で記載したのは、外部か
らの主電源を示す。また、A、B、C、D、Eの線はそ
れぞれ、以下で述べる個々の装置の間の入出力関係を示
す。また、図3に示す回路図はスイッチ2とスイッチ状
態保持回路3の詳しい構成を示した図である。スイッチ
2は外部からの主電源に連動して動作するスイッチを持
ち、スイッチ状態保持回路3はDフリップフロップから
構成される。まず、この符号誤り率測定器6は擬似ラン
ダムパターンの信号を受信するとともに、その受信信号
と同期が確立された擬似ランダムパターンの信号を発生
させ、誤り検出回路により誤りを検出している。そこで
、何らかの原因によって、主電源断が発生した場合、以
下の処理を行う。
The operating procedure of this measuring device will be described below with reference to FIGS. 1 and 2. In FIG. 1, the thick line indicates the external main power source. Further, lines A, B, C, D, and E each indicate the input/output relationship between the individual devices described below. Further, the circuit diagram shown in FIG. 3 is a diagram showing the detailed configuration of the switch 2 and the switch state holding circuit 3. The switch 2 has a switch that operates in conjunction with an external main power source, and the switch state holding circuit 3 is composed of a D flip-flop. First, the code error rate measuring device 6 receives a pseudo-random pattern signal, generates a pseudo-random pattern signal that is synchronized with the received signal, and detects errors using an error detection circuit. Therefore, if the main power is cut off for some reason, the following processing is performed.

【0015】(1)主電源断検出回路1は主電源の電圧
Aの低下を検出する。この場合、主電源断検出部5では
、いかなる原因により電圧が低下したか、まだ判断する
ことができない。これは図2中(a)または(b)のア
の時点の動作である。
(1) The main power supply cutoff detection circuit 1 detects a drop in the voltage A of the main power supply. In this case, the main power failure detection unit 5 cannot yet determine the cause of the voltage drop. This is the operation at point A in (a) or (b) in FIG.

【0016】(2)スイッチ2は主電源断検出回路1が
検出した電圧Aの低下に応じて、そのスイッチ2の状態
Bをスイッチ状態保持回路3に出力する。これは図2中
(a)のアの時点の動作である。
(2) The switch 2 outputs the state B of the switch 2 to the switch state holding circuit 3 in response to the decrease in the voltage A detected by the main power cutoff detection circuit 1. This is the operation at point A in FIG. 2(a).

【0017】(3)スイッチ状態保持回路3は、スイッ
チ2からの出力Bを受けて、スイッチ2の状態を保持す
る。ここで、従来では、スイッチ2がオンであるか、オ
フであるかはチャタリングが発生しているため、スイッ
チ2の切り換え時にはすぐに判断できなかった。本発明
では、スイッチ2を切り換えたために、チャタリングが
発生している場合、スイッチ状態保持回路3は、スイッ
チ2からの出力が所定のしきい値に達している(例えば
、TTL−ICを使用した場合、2V以上)最初のパル
スを検出し、その状態を反転させ、保持する。これは図
2中(a)のアの時点の動作である。
(3) The switch state holding circuit 3 receives the output B from the switch 2 and holds the state of the switch 2. Here, conventionally, it has not been possible to immediately determine whether the switch 2 is on or off due to chattering when the switch 2 is switched. In the present invention, when chattering occurs due to switching of switch 2, switch state holding circuit 3 detects that the output from switch 2 has reached a predetermined threshold (for example, (2V or higher) detects the first pulse, inverts its state, and holds it. This is the operation at point A in FIG. 2(a).

【0018】(4)スイッチ2を切り換えていない場合
、スイッチ2からの出力Bには変化がなく、スイッチ状
態保持回路3は、そのオンの状態をそのまま保持する。 これは図2中(a)のアからイまでの間の動作である。
(4) When the switch 2 is not switched, there is no change in the output B from the switch 2, and the switch state holding circuit 3 maintains its on state. This is the operation from a to b in FIG. 2(a).

【0019】(5)本実施例では、Aの電圧が80Vで
あることを規定値として、規定値以下になったとき、主
電源断であると判断し、この主電源の電圧Aが80V以
下になれば、主電源断検出回路1が主電源断信号Eを出
力する。これは図2中(a)または(b)のイの時点の
動作である。
(5) In this embodiment, the voltage of A is set to be 80V as the specified value, and when the voltage falls below the specified value, it is determined that the main power supply is turned off, and the voltage A of this main power supply is 80V or less. If so, the main power cutoff detection circuit 1 outputs the main power cutoff signal E. This is the operation at point A in (a) or (b) in FIG.

【0020】(6)主電源断検出回路1が主電源断であ
ると判断したとき、その出力Eにより、スイッチ状態保
持回路3の出力Dを入力ラッチ4に記憶する。つまり、
その状態が (3)である場合、スイッチ2が切断され
たための主電源断であり、その状態が(4)である場合
、スイッチ2の状態は変化していないのに、主電源断が
あったとして、停電等の外的要因による主電源断であり
、その状態を入力ラッチ4に記憶させる。これは図2中
(a)または(b)のイの時点の動作である。
(6) When the main power-off detection circuit 1 determines that the main power is off, the output E of the main power-off detection circuit 1 stores the output D of the switch state holding circuit 3 in the input latch 4. In other words,
If the state is (3), the main power has been cut off because switch 2 has been disconnected, and if the state is (4), the main power has been cut off even though the state of switch 2 has not changed. For example, the main power is cut off due to an external factor such as a power outage, and this state is stored in the input latch 4. This is the operation at point A in (a) or (b) in FIG.

【0021】(7)入力ラッチ4の値に応じて、スイッ
チ2が切断されたための主電源断か外的要因による電源
断であるかを判断され、それぞれの処理を行う。この処
理は図2中(a)または(b)のイからウの時点までの
間に限られる。主電源断検出回路1には、主電源を直接
、又はトランスで降圧した後、整流平滑して直流に変換
し、コンパレータで基準値と比較する方法、実公昭49
−12630号公報に開示されているような、再トリガ
単安定マルチバイブレータを用いて主電源が1サイクル
又は半サイクル以上欠落したときに論理状態を変化させ
る方法等がある。上記実施例では、主電源が商用電源(
50ヘルツ、  100ボルト)の場合を説明したが、
外部から符号誤り率測定装置に与える主電源が直流の場
合であっても、本発明の効果を奏することは明らかであ
る。
(7) Depending on the value of the input latch 4, it is determined whether the main power is cut off due to the switch 2 being turned off or the power is cut off due to an external factor, and each process is performed. This process is limited to the period from A to C in FIG. 2(a) or (b). The main power failure detection circuit 1 has a method of lowering the main power directly or using a transformer, rectifying and smoothing the voltage, converting it to direct current, and comparing it with a reference value using a comparator.
There is a method, such as that disclosed in Japanese Patent No. 12630, in which a retrigger monostable multivibrator is used to change the logic state when the main power supply is missing for one cycle or half a cycle or more. In the above embodiment, the main power source is the commercial power source (
I explained the case of 50 hertz, 100 volts,
It is clear that the effects of the present invention can be achieved even when the main power supply externally supplied to the bit error rate measuring device is direct current.

【0022】以上、説明したように本発明を用いると主
電源断の発生から主電源断処理を始めるまでの時間を極
力短くできるから、主電源断時に複雑な処理をしなけれ
ばならない符号誤り率測定装置において、きわめて有効
である。
As explained above, by using the present invention, the time from the occurrence of a main power outage to the start of main power outage processing can be minimized, thereby reducing the bit error rate that would otherwise require complicated processing at the time of a main power outage. It is extremely effective in measuring equipment.

【0023】本発明は、電源スイッチが切断されると直
ちに所定の処理を実行できるため、従来例に比べて、処
理が可能な時間を約20ms長くすることができる。そ
のため、例えば、クロックスピードが12.5MHz、
バスサイクルが4クロック、1命令平均5バスサイクル
のCPUを使用したとすると、12,000ステップ多
く処理できる。この20msの時間を使って処理を行う
例として以下のものが考えられる。
[0023] According to the present invention, predetermined processing can be executed immediately after the power switch is turned off, so that the time during which processing can be performed can be extended by about 20 ms compared to the conventional example. Therefore, for example, if the clock speed is 12.5MHz,
Assuming that a CPU with four bus cycles and an average of five bus cycles per instruction is used, 12,000 more steps can be processed. The following can be considered as an example of processing using this 20 ms time.

【0024】誤り率というのは、誤り数/クロック数で
評価できる。最近の通信回線における要求では、誤り率
を100分の1秒単位で評価しようということが求めら
れている。例えば、国際電信電話諮問委員会等でもその
ような動きがある。そこで、誤りを検出する周期を10
msとすることが必要になってくる。
The error rate can be evaluated as the number of errors/number of clocks. Recent requirements for communication lines require that error rates be evaluated in units of 1/100th of a second. For example, there are similar movements in the International Telegraph and Telephone Advisory Committee. Therefore, the cycle for detecting errors is set to 10
It becomes necessary to set it to ms.

【0025】誤り率の測定は、回線の伝送品質を評価す
るために、10ms単位での誤り検出の他に、以下のよ
うな処理を1秒単位で行う。例えば、劣化秒、異常劣化
秒等といわれるパラメータを設けてそれぞれの時間当た
りの回線の評価を行っている。10ms単位での誤り検
出の処理には、5msの時間を要する。また、1秒毎の
処理には、先の5msの時間に加えて、前のデータと現
在測定したデータとの比較処理等に3msの時間を必要
とし、合計8msの時間を要する。処理に5msまたは
8msを要したとしても、10msの周期内での処理が
可能である。しかし、その処理の結果を通常のRAMで
はなく、内部電源が断になってもそのデータを保持して
いるバックアップ用の不揮発性RAMに読み込むには、
さらに5msの時間を要する。つまり、8ms+5ms
で13msの時間を必要とする。さらに、単純にデータ
の保存のみを行うだけではなく、主電源断からの回復後
に、そのデータが正しいものであるかを調べるためのパ
リティコードや、チェックサムエラーのコードをデータ
に付加して読み込む場合はより多くの時間がかかる。こ
の処理に13ms、ないしはそれ以上の時間を要してい
ては、10ms周期毎に誤り検出を行うことができなく
なる。ここで考えられる手段としては、カウンタの桁数
を増やして、誤り検出の周期を20msや50msに変
更することも考えられるが、価格性能比等の点からカウ
ンタの桁数を増やすという方法は安易には採用できない
。そこで、通常の測定時には、誤り検出の処理、及び測
定したデータの比較処理だけを行い、データの保存は行
わないで、主電源断が発生したときに初めて通常のRA
Mに書かれているデータを不揮発性のバックアップ用の
RAMにコピーする処理を行い、データの保存を行う処
理に移行することである。
To measure the error rate, in addition to error detection in units of 10 ms, the following processing is performed in units of 1 second in order to evaluate the transmission quality of the line. For example, parameters called deterioration seconds, abnormal deterioration seconds, etc. are provided and the line is evaluated for each time period. Error detection processing in units of 10 ms requires 5 ms. Furthermore, in addition to the previous 5 ms, processing every second requires 3 ms for comparison processing between previous data and currently measured data, for a total of 8 ms. Even if the processing requires 5 ms or 8 ms, the processing can be performed within a period of 10 ms. However, in order to read the results of that processing into backup non-volatile RAM, which retains the data even if the internal power is turned off, instead of into normal RAM,
An additional 5 ms is required. In other words, 8ms+5ms
This requires a time of 13ms. Furthermore, it not only simply saves data, but also adds a parity code and checksum error code to the data to check whether it is correct after recovering from a main power failure. If it takes more time. If this process takes 13 ms or more, it becomes impossible to detect errors every 10 ms. A possible solution here would be to increase the number of digits in the counter and change the error detection cycle to 20ms or 50ms, but increasing the number of digits in the counter is not easy from the point of view of price/performance ratio. cannot be adopted. Therefore, during normal measurement, only error detection processing and measurement data comparison processing are performed, and data is not saved, and only when the main power is turned off, normal RA
This involves performing a process of copying the data written in M to a non-volatile backup RAM, and moving on to a process of saving the data.

【0026】本発明では、主電源断が発生してから、何
の原因による主電源断であるかを判断するまで20ms
の処理可能時間の延長がある。この処理可能時間を利用
して、先の10ms単位での誤り検出の処理データや1
秒毎の処理データをそれぞれ、すべてバックアップ用の
不揮発性のRAMに保存することは容易にできる。
[0026] In the present invention, it takes 20 ms from when the main power is cut off to when it is determined what is the cause of the main power cut.
The processing time will be extended. Using this available processing time, we can process data for error detection in units of 10 ms,
All processing data for each second can be easily stored in a non-volatile RAM for backup.

【0027】[0027]

【発明の効果】本発明の構成は、電源スイッチが切断さ
れると直ちにスイッチのチャタリングが収束する以前に
、いかなる原因により主電源断が発生したかを検出でき
、その原因に適合した主電源断処理を開始できるので、
主電源断処理時間を十分に長くとることができる。 その結果、検出された主電源断の原因に適合した処理手
順を行うための十分な時間的余裕があり、主電源断から
の回復時に、主電源断の原因に見合った回復処理を行え
る。また、長時間にわたる誤り率の測定において、一定
周期でデータを外部の制御系に知らせる処理をしている
場合、停電発生時等の外的要因による主電源断時には、
異常メッセージを制御系に対して送信する処理もできる
。さらに、カウンタのスピードを早くすることができず
その検出したデータを1秒毎にバックアップ用のメモリ
に保持する余裕がない場合でも、主電源断の処理時間を
長くとることが可能となったので、停電時において、そ
のデータを保持するための処理ができる。
[Effects of the Invention] The configuration of the present invention is capable of detecting the cause of the main power outage immediately after the power switch is turned off and before the chatter of the switch has subsided, and detecting the main power outage in accordance with the cause. Now you can start the process.
The main power-off processing time can be sufficiently long. As a result, there is sufficient time to carry out processing procedures appropriate to the detected cause of the main power outage, and when recovering from the main power outage, recovery processing commensurate with the cause of the main power outage can be performed. In addition, when measuring error rates over a long period of time, if data is sent to an external control system at regular intervals, when the main power is cut off due to external factors such as a power outage,
It is also possible to send abnormal messages to the control system. Furthermore, even if it is not possible to increase the speed of the counter and there is no room to store the detected data in backup memory every second, it is now possible to take a longer processing time when the main power is turned off. , it is possible to perform processing to retain that data in the event of a power outage.

【0028】[0028]

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

【図1】本発明一実施例に係る符号誤り検出装置の構成
を示す図。
FIG. 1 is a diagram showing the configuration of a code error detection device according to an embodiment of the present invention.

【図2】本発明の一実施例の実行時のタイミングチャー
トを示した図であり(a)はスイッチ断の場合の出力の
変移を示す図。(b)外的要因による主電源断の場合の
出力の変移を示す図。
FIG. 2 is a diagram showing a timing chart during execution of an embodiment of the present invention, and (a) is a diagram showing changes in output when a switch is turned off. (b) A diagram showing changes in output when the main power is cut off due to external factors.

【図3】本発明の一実施例のスイッチ2とスイッチ状態
保持回路3の回路構成を示した図。
FIG. 3 is a diagram showing a circuit configuration of a switch 2 and a switch state holding circuit 3 according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1      主電源断検出回路 2      スイッチ 3      スイッチ状態保持回路 4      入力ラッチ 5      主電源断検出部 6      符号誤り率測定器 7      電源回路 1 Main power failure detection circuit 2 Switch 3     Switch state holding circuit 4 Input latch 5      Main power failure detection section 6 Bit error rate measuring device 7 Power supply circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  符号誤り率測定装置において、外部か
らの主電源を前記符号誤り率測定装置の電源回路に供給
するか否かを切り換えるとともにそのオンまたはオフの
状態を出力するスイッチ(2)と、前記電源回路に供給
される電圧が規定値以下になったときは主電源断信号を
出力する主電源断検出回路(1)と、前記スイッチの切
り換え時に発生するチャタリングの所定しきい値におい
て状態を反転させ、その状態を保持し、その状態を出力
するスイッチ状態保持回路(3)と、前記スイッチ状態
保持回路の出力と主電源断信号とを受け、前記スイッチ
状態保持回路の出力を記憶する入力ラッチ(4)とを備
えた符号誤り率測定装置。
1. A code error rate measuring device, comprising: a switch (2) for switching whether or not to supply a main power source from an external source to a power supply circuit of the code error rate measuring device and outputting its on or off state; , a main power cutoff detection circuit (1) that outputs a main power cutoff signal when the voltage supplied to the power supply circuit becomes less than a specified value; a switch state holding circuit (3) that inverts the state, holds the state, and outputs the state; and receives the output of the switch state holding circuit and a main power cutoff signal, and stores the output of the switch state holding circuit. A code error rate measuring device comprising an input latch (4).
JP3092700A 1991-03-29 1991-03-29 Code error rate measuring instrument Pending JPH04302557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3092700A JPH04302557A (en) 1991-03-29 1991-03-29 Code error rate measuring instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3092700A JPH04302557A (en) 1991-03-29 1991-03-29 Code error rate measuring instrument

Publications (1)

Publication Number Publication Date
JPH04302557A true JPH04302557A (en) 1992-10-26

Family

ID=14061771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3092700A Pending JPH04302557A (en) 1991-03-29 1991-03-29 Code error rate measuring instrument

Country Status (1)

Country Link
JP (1) JPH04302557A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009033513A (en) * 2007-07-27 2009-02-12 Nakayo Telecommun Inc Ip telephone terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009033513A (en) * 2007-07-27 2009-02-12 Nakayo Telecommun Inc Ip telephone terminal

Similar Documents

Publication Publication Date Title
US4500951A (en) Plant control system
MX2012011006A (en) Apparatus, system, and method for creating one or more slow-speed communications channels utilizing a real-time communication channel.
JP2002540751A (en) Fault data synchronization via peer-to-peer communication networks
US4860289A (en) Reset circuit for electrically isolated circuits communicating via uart
JPS62142434A (en) Metod and apparatus for modem diagnosis
CN100479295C (en) Synchronized switching controller and its control for parallel uninterrupted power supply
JPH04302557A (en) Code error rate measuring instrument
CN113485185B (en) Method for N times redundancy control system
JP2000196748A (en) Line switch device/method and recording medium
RU2177179C1 (en) Burglar and fire alarm system
US7418036B2 (en) Method and circuit for timing pulse generation
CN218040784U (en) Frequency converter system with double power supply loops and frequency converter with double power supply loops
JP2738991B2 (en) Communication device
RU1809496C (en) Method for remote control of fault breaks of switches in power supply system
JPH0372745A (en) Fault recovery method in loop network
JP3425256B2 (en) Clock supply device
JP2841918B2 (en) Frame synchronization monitoring method
JPH03268621A (en) Power supply interruption monitor system by serial communication line
CN116633720A (en) Communication method, battery management system and device of daisy chain ring network
JP2508349B2 (en) Redundant transmission line switching switch
JP2635835B2 (en) Multiple call processing monitoring
JPH0556049A (en) Communication controller
CN101674195A (en) Master/standby signal switching method and device thereof
KR20010003644A (en) Method for detecting satate of duplicated link in atm exchange system
JPS61103252A (en) Memory device for fault analysis