JP2000125065A - Communication device - Google Patents

Communication device

Info

Publication number
JP2000125065A
JP2000125065A JP10294327A JP29432798A JP2000125065A JP 2000125065 A JP2000125065 A JP 2000125065A JP 10294327 A JP10294327 A JP 10294327A JP 29432798 A JP29432798 A JP 29432798A JP 2000125065 A JP2000125065 A JP 2000125065A
Authority
JP
Japan
Prior art keywords
line
polarity
communication
line polarity
change
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
JP10294327A
Other languages
Japanese (ja)
Inventor
Toshikazu Kubota
敏二 窪田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10294327A priority Critical patent/JP2000125065A/en
Publication of JP2000125065A publication Critical patent/JP2000125065A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)
  • Telephonic Communication Services (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication device which can reduce the consumption of a line current and has no risk of causing malfunction of an exchange. SOLUTION: Photocouplers A1 and B1 for line polarity detection which are connected in parallel and have mutually opposite polarities are switched over at a constant cycle by a pulse generating circuit (OSC) 121. At the start of transmission, the output states (combination of pulses or high-level outputs) of the photocouplers A1 and B1 detected through buffers 122 and 123 are stored as line polarity data in a RAM and then the stored line polarity data are compared with the line polarity data outputted by the photocouplers A1 and B1 to detect whether or not the output change of the side which has bee in the high level at the start of the transmission is present, thereby discriminating the change of the line polarity.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、回線に接続され、
所定の通信処理を行なうとともに回線極性の変化に応じ
た所定の通信制御を行なう通信装置、その制御方法、お
よびその制御プログラムを格納したコンピュータ読取可
能な記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to a communication device that performs a predetermined communication process and performs a predetermined communication control according to a change in line polarity, a control method thereof, and a computer-readable recording medium storing the control program.

【0002】[0002]

【従来の技術】アナログ通信回線では、回線交換のため
の情報として、トーンあるいはパルスのダイヤル信号の
ほか、線路の極性が古くより用いられている。たとえ
ば、極性反転検出は発着呼の判定などに用いられるほ
か、近年では、電話網における各種の情報通知サービス
(発信電話番号通知その他の情報通知サービス)におい
ても、重要な役割を果たしている。
2. Description of the Related Art In analog communication lines, tone or pulse dial signals as well as line polarity have been used for a long time as information for line switching. For example, polarity reversal detection is used for determining incoming and outgoing calls, etc. In recent years, it has also played an important role in various information notification services (outgoing telephone number notification and other information notification services) in the telephone network.

【0003】ファクシミリ装置などの通信装置も、アナ
ログ回線に接続されるものであれば例外ではあり得ず、
種々の通信制御を行なうためには、回線の極性を検出
し、その結果に基づいて動作を決定しなければならな
い。
A communication device such as a facsimile device can be no exception as long as it is connected to an analog line.
In order to perform various communication controls, it is necessary to detect the polarity of the line and determine the operation based on the result.

【0004】このために、従来のファクシミリ装置など
の通信装置では、NCU(網制御装置)内に極性検出回
路が設けられ、その方式としては、回線間にフォトカプ
ラを挿入し、回線電流によって常時駆動し、そのフォト
カプラ出力で回線の極性を判断するものが多い。
For this reason, in a conventional communication device such as a facsimile device, a polarity detection circuit is provided in an NCU (network control device). In many cases, the circuit is driven and its output is used to determine the line polarity.

【0005】[0005]

【発明が解決しようとする課題】たとえば、ファクシミ
リ装置における回線極性に関連した通信制御としては、
送信を行う場合、送信中に相手が回線を開放した場合に
は、回路の極性反転を検出して送信を直ちに停止し、回
線を開放する動作が挙げられる。
For example, communication control related to line polarity in a facsimile machine includes:
When performing transmission, if the other party releases the line during transmission, an operation of detecting the polarity reversal of the circuit, immediately stopping the transmission, and opening the line is mentioned.

【0006】相手側が回線を開放した事を検出するため
には、上記のフォトカプラによる回路が従来より利用さ
れているが、上記のように常時フォトカプラを駆動する
方式では極性検出に常時回線電流を消費しなければなら
ず、また、このため直流ループが形成されてしまうため
に交換機の誤動作を招くおそれがある、という問題があ
った。
In order to detect that the other party has released the line, a circuit using the above-described photocoupler has been conventionally used. However, in the method in which the photocoupler is always driven as described above, the line current is always used for polarity detection. , And a DC loop is formed, which may cause a malfunction of the exchange.

【0007】本発明の課題は上記の問題を解決し、回線
電流の消費を低減でき、また、交換機の誤動作を招くお
それのない通信装置を提供することにある。
An object of the present invention is to solve the above-mentioned problems, to provide a communication device which can reduce line current consumption and does not cause a malfunction of a switch.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するため
に、本発明においては、回線に接続され、所定の通信処
理を行なうとともに回線極性の変化に応じた所定の通信
制御を行なう通信装置、その制御方法、およびその制御
プログラムを格納したコンピュータ読取可能な記録媒体
において、回線の極性を検出する極性検出手段をパルス
駆動信号により一定周期毎に駆動し、通信中の所定タイ
ミングにおいて、前記極性検出手段から出力される回線
極性データを記憶手段に記憶させ、通信中、前記所定タ
イミングの後、記憶した回線極性データと、前記極性検
出手段が出力する回線極性データを比較することにより
回線極性の変化を識別し、その識別結果に基づいて所定
の通信制御を行なう構成を採用した。
According to the present invention, there is provided a communication apparatus connected to a line for performing predetermined communication processing and performing predetermined communication control according to a change in line polarity. In a computer-readable recording medium storing the control method and the control program, a polarity detection means for detecting a line polarity is driven at regular intervals by a pulse drive signal, and the polarity detection is performed at a predetermined timing during communication. The line polarity data output from the means is stored in the storage means. During the communication, after the predetermined timing, the stored line polarity data is compared with the line polarity data output by the polarity detection means to change the line polarity. Is identified, and a predetermined communication control is performed based on the identification result.

【0009】上記構成によれば、通信中の所定タイミン
グにおいて極性検出手段が出力する回線極性データを記
憶手段に記憶させ、その後、記憶した回線極性データ
と、前記極性検出手段が出力する回線極性データを比較
することにより回線極性の変化を識別する。この構成に
よれば、極性検出手段を一定周期毎に駆動することによ
り回線電流の消費量を低減することができ、また、直流
ループが形成されることがないので交換機を誤動作させ
ることなく回線極性の変化を識別できる。
According to the above configuration, the line polarity data output by the polarity detection means at a predetermined timing during communication is stored in the storage means, and thereafter, the stored line polarity data and the line polarity data output by the polarity detection means are output. Are compared to identify a change in line polarity. According to this configuration, it is possible to reduce the consumption of the line current by driving the polarity detection means at regular intervals, and since a DC loop is not formed, the line polarity can be prevented without causing the switch to malfunction. Can be identified.

【0010】[0010]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0011】図1は本発明を採用したファクシミリ装置
の全体構成を示している。図1において、符号2は、装
置全体の動作を制御するCPUであり、このCPU2に
は、発振器1の出力クロックが基準クロックとして与え
られている。
FIG. 1 shows the overall configuration of a facsimile apparatus employing the present invention. In FIG. 1, reference numeral 2 denotes a CPU that controls the operation of the entire apparatus. The CPU 2 is supplied with an output clock of an oscillator 1 as a reference clock.

【0012】CPU2はデータ及びアドレスバスによ
り、ROM4、RAM5、タイマ3、PIO7(ペリフ
ェラルI/O)、モデム6と接続されている。
The CPU 2 is connected to a ROM 4, a RAM 5, a timer 3, a PIO 7 (peripheral I / O), and a modem 6 by a data and address bus.

【0013】モデム6は公知のFAXモデムチップなど
から構成され、後述のNCU12を介して回線の線路L
1、L2に接続され、ファクシミリ通信を行なう。
The modem 6 is composed of a well-known FAX modem chip or the like.
1, connected to L2 to perform facsimile communication.

【0014】PIO7に接続された操作部(OPCN
T)10はCPU2の命令に従って、操作パネル上のキ
ーボードのキー入力の検出やLCD表示、LEDの点灯
制御を行う。
An operation unit (OPCN) connected to the PIO 7
T) 10 performs detection of key input of a keyboard on the operation panel, LCD display, and lighting control of LEDs in accordance with a command from the CPU 2.

【0015】符号8は画像読取部(R)で、原稿搬送系
および所定方式の光学スキャナなどから構成される。画
像読取部8の原稿搬送系のモータ駆動制御や、読み取ら
れた画像データの入出力はPIO7を介して行なわれ
る。
Reference numeral 8 denotes an image reading unit (R), which comprises a document conveying system, an optical scanner of a predetermined system, and the like. Motor drive control of the document conveying system of the image reading section 8 and input / output of read image data are performed via the PIO 7.

【0016】符号9は記録部(W)で、記録紙搬送系、
所定方式(たとえばバブルジェット方式やレーザビーム
方式)の記録機構から構成される。記録紙搬送モータの
制御や記録すべき画像データの入出力はPIO7を介し
て行なわれる。
Reference numeral 9 denotes a recording section (W), a recording paper transport system,
It comprises a recording mechanism of a predetermined system (for example, a bubble jet system or a laser beam system). The control of the recording paper transport motor and the input and output of image data to be recorded are performed via the PIO 7.

【0017】符号11はスピーカー(SPK)で、CP
U2の指示に従ってエラー音等をPIO7から音声出力
する。出力される音声は、不図示の音声合成回路で合成
されたもの、あるいは不図示の録音手段に録音された音
声、あるいは不図示の発振器で発生されたブザー音など
である。
Reference numeral 11 denotes a speaker (SPK), and CP
In accordance with the instruction from U2, an error sound or the like is output as sound from the PIO 7. The output voice is a voice synthesized by a voice synthesis circuit (not shown), a voice recorded by a recording unit (not shown), a buzzer sound generated by an oscillator (not shown), or the like.

【0018】NCU12は、アナログ回線の線路L1、
L2と、電話機(TEL)20、ファクシミリ通信のた
めのモデム6との間の接続交換、および後述の回線の極
性検出のための回路を含む。CPU2はPIO7を介し
てNCU12の動作を制御する。
The NCU 12 has an analog line L1,
It includes a circuit for switching connection between L2, telephone (TEL) 20, and modem 6 for facsimile communication, and a circuit for detecting line polarity described later. The CPU 2 controls the operation of the NCU 12 via the PIO 7.

【0019】図2は、図1のNCU12の回路構成を詳
細に示している。
FIG. 2 shows the circuit configuration of the NCU 12 of FIG. 1 in detail.

【0020】図2において、端子L1、L2には、電話
回線が接続され、端子T1、T2には電話機(TEL)
20が接続される。モデム6はトランスおよびコンデン
サなどから成るインターフェース回路CP1を介して接
続される。
In FIG. 2, a telephone line is connected to terminals L1 and L2, and a telephone (TEL) is connected to terminals T1 and T2.
20 are connected. The modem 6 is connected via an interface circuit CP1 including a transformer and a capacitor.

【0021】リレーCMLは回線をモデム側、または、
電話機20の接続端子T1、T2(TEL)側に接続切
り換えするためのリレーであり、リレーCMLはCPU
2より、PIO7を介して送出される切り換え信号に基
づいて切り換え動作を行う。
The relay CML connects the line to the modem side or
A relay for switching connection to the connection terminals T1 and T2 (TEL) of the telephone set 20, and the relay CML is a CPU
2, the switching operation is performed based on the switching signal transmitted through the PIO 7.

【0022】符号A1、B1は電話回線の極性を検出す
るためのフォトカプラで、図示のように互いに逆極性に
並列接続され、抵抗R1、R2を介して線路L1、L2
間に挿入されている。本発明では常時駆動ではなく、フ
ォトカプラA2、B2およびパルス発生回路(OSC)
121により一定周期毎にスイッチングされる。パルス
発生回路(OSC)121は矩形波などの所定波形のパ
ルス信号によりフォトカプラA2、B2のLED部を発
光させ、フォトカプラA2およびB2の挿入された線路
を間欠的にスイッチングする。
Reference numerals A1 and B1 denote photocouplers for detecting the polarities of telephone lines, which are connected in parallel with opposite polarities as shown in the figure, and are connected to lines L1 and L2 via resistors R1 and R2.
Inserted between them. In the present invention, the photocouplers A2 and B2 and the pulse generation circuit (OSC) are not always driven.
The switching is performed at regular intervals by the switch 121. A pulse generation circuit (OSC) 121 causes the LED sections of the photocouplers A2 and B2 to emit light by a pulse signal having a predetermined waveform such as a rectangular wave, and intermittently switches the line in which the photocouplers A2 and B2 are inserted.

【0023】フォトカプラA1、B1(およびフォトカ
プラA2、B2のフォトトランジスタ部分)の並列回路
〜抵抗R2の直列回路には並列に保護用のバリスタV1
が挿入されている。
The protection varistor V1 is connected in parallel to the parallel circuit of the photocouplers A1 and B1 (and the phototransistor portions of the photocouplers A2 and B2) to the series circuit of the resistor R2.
Is inserted.

【0024】フォトカプラA1、B1のコレクタ出力
は、バッファ(CNT−A,CNT−B)122、12
3を介してPIO7に入力され、これにより図1のCP
U2は回線の極性の変化を検出する。
The collector outputs of the photocouplers A1, B1 are supplied to buffers (CNT-A, CNT-B) 122, 12
3 is input to the PIO 7, whereby the CP of FIG.
U2 detects a change in line polarity.

【0025】以下、フォトカプラA1,B1,A2,B
2の動作について説明する。線路L1、L2の正負の極
性は一般に保証されておらず、電話回線の接続(たとえ
ば工事の際の結線作業)で決まる。本実施形態では、待
機時にL1が正で、L2が負の時の場合を前提としてA
1,B1出力について図5を参照して説明する。
Hereinafter, photocouplers A1, B1, A2, B
Operation 2 will be described. The positive and negative polarities of the lines L1 and L2 are not generally guaranteed, but are determined by the connection of the telephone line (for example, connection work during construction). In the present embodiment, A1 is assumed on the assumption that L1 is positive and L2 is negative during standby.
The 1 and B1 outputs will be described with reference to FIG.

【0026】図5は線路L1が正で、L2が負の時のフ
ォトカプラA1,B1のパルス出力の変化を示してい
る。
FIG. 5 shows a change in pulse output of the photocouplers A1 and B1 when the line L1 is positive and L2 is negative.

【0027】まず、上記の極性の設定の場合、平常状
態、つまり、回線から呼出がない、あるいは電話機20
がオンフック、ファクシミリともに通信中でない(リレ
ーCMLがオフ)の場合、フォトカプラB1は非導通で
あり、そのコレクタ出力はHレベルを、フォトカプラA
1のコレクタ出力はパルス発生回路(OSC)121の
点灯周期に従ったパルス出力となる(図5(A):非通
話/通信状態)。
First, in the case of the above-mentioned polarity setting, in the normal state, that is, when there is no call from the line,
Is not communicating on both the on-hook and facsimile (relay CML is off), the photocoupler B1 is non-conductive, the collector output is at H level, and the photocoupler A
1 is a pulse output according to the lighting cycle of the pulse generation circuit (OSC) 121 (FIG. 5A: non-communication / communication state).

【0028】電話機20がオフフックするか、リレーC
MLがオンにされ、ファクシミリ通信が開始された場合
でも、呼接続が成立するまでは同じ状態である(図5
(B):通話/通信開始)。
The telephone 20 goes off-hook or the relay C
Even when the ML is turned on and facsimile communication is started, the state remains the same until a call connection is established (FIG. 5).
(B): Call / communication start).

【0029】回線から呼出があった場合は、所定周波数
の交流信号(呼出信号)が線路L1、L2間に発生し、
これによりフォトカプラA1、B1は双方とも、この所
定周波数の呼出信号の入力期間の間、交互にパルスを出
力することになる。
When a call is made from the line, an AC signal (call signal) of a predetermined frequency is generated between the lines L1 and L2,
As a result, both the photocouplers A1 and B1 alternately output pulses during the input period of the calling signal having the predetermined frequency.

【0030】これに応じて、ファクシミリ装置あるいは
電話機20が応答すると、すなわち、ファクシミリの場
合は不図示の呼出信号検出回路によって行なわれるリレ
ーCMLのオンにより、また、電話機20の場合はオペ
レータの手動応答によるフックオフにより、呼接続が成
立した場合、線路L1、L2の極性が反転し、これによ
りフォトカプラA1、B1の出力の状態は反転する(図
5(C))。これは、図5(B)の通話/通信開始状態
から呼接続が成立した場合も同じである。
In response, the facsimile apparatus or telephone 20 responds, that is, in the case of a facsimile, the relay CML is turned on by a call signal detection circuit (not shown). When the call connection is established due to the hook-off, the polarities of the lines L1 and L2 are inverted, whereby the output states of the photocouplers A1 and B1 are inverted (FIG. 5C). This is the same when the call connection is established from the call / communication start state in FIG.

【0031】その後、相手側と回線がつながっている間
はそのままフォトカプラB1はパルス出力、フォトカプ
ラA1のコレクタはHレベル出力であるが、オフフック
状態で相手が回線を切ってしまうと回線の極性が反転
し、フォトカプラB1がHレベル、A1がパルス出力に
戻る(図5(D)、(E):図5(D)は電話機20が
オフフック、つまり通話状態から相手が切った場合、図
5(E)は電話機20がオンフック、つまりファクシミ
リ通信状態から相手が切った場合をそれぞれ示してい
る)。
Thereafter, while the line is connected to the other party, the photocoupler B1 outputs a pulse and the collector of the photocoupler A1 outputs an H level. However, if the other party disconnects the line in the off-hook state, the polarity of the line is lost. Are reversed, the photocoupler B1 returns to the H level, and A1 returns to the pulse output (FIGS. 5D and 5E). FIG. 5D shows a case where the telephone 20 is off-hook, that is, when the other party hangs up from the talking state. 5 (E) shows the case where the telephone 20 is on-hook, that is, the other party has disconnected from the facsimile communication state).

【0032】上記のように線路L1、L2の極性により
フォトカプラA1およびB1の出力状態の組み合せが変
化するので、この出力状態の組み合せを検出することに
より極性反転を判定することができる。すなわち、通信
中のあるタイミングにおいてフォトカプラA1およびB
1の出力状態をRAM5に記憶しておき、その後のフォ
トカプラA1およびB1の出力状態の変化を検出するこ
とにより、極性の変化を判定することができる。
As described above, since the combination of the output states of the photocouplers A1 and B1 changes depending on the polarities of the lines L1 and L2, the polarity inversion can be determined by detecting the combination of the output states. That is, at a certain timing during communication, the photocouplers A1 and B
1 is stored in the RAM 5 and a change in the output state of the photocouplers A1 and B1 is detected thereafter, whereby a change in the polarity can be determined.

【0033】たとえば、従来例の項に記したファクシミ
リ通信中の相手局からの回線切断の処理においては、後
述の図3、図4の処理に示すように、オフフックかつ相
手側と回線が接続された状態の回線の極性(バッファ1
22、123の出力)をRAM5に記憶しておき、送信
動作中に割り込み処理ルーチンにより、極性が反転した
か否かをRAM5に格納した極性データに基づいて間欠
的に判定し、極性が反転したと判断すると即座に送信動
作を中止し、エラー終了とすることができる。
For example, in the process of disconnecting a line from a partner station during facsimile communication described in the section of the conventional example, as shown in the processing of FIGS. Line polarity (buffer 1
22 and 123) are stored in the RAM 5, and it is intermittently determined based on the polarity data stored in the RAM 5 whether or not the polarity has been reversed by an interrupt processing routine during the transmission operation, and the polarity has been reversed. As soon as it is determined, the transmission operation can be stopped and the error can be terminated.

【0034】図3、図4は図1のCPUが送信時に実行
する制御を示したもので、図示の手順はCPU2のプロ
グラムとしてROM4(あるいは他の記憶媒体:これら
の記憶媒体は本発明の記憶媒体に相当する)に格納され
る。
FIGS. 3 and 4 show the control executed by the CPU of FIG. 1 at the time of transmission. The illustrated procedure is a program of the CPU 2 in the ROM 4 (or other storage media: these storage media are the storage media of the present invention). (Corresponding to a medium).

【0035】図3のステップS1において、回線が送信
先とつながり、装置が画像送信動作に入ると、ステップ
S2において操作部10上のキーボードの送信ボタンの
押下に応じて原稿の挿入、LCDのモニター表示オン、
その他画像送信に必要な各種のイニシャライズを行う。
In step S1 of FIG. 3, when the line is connected to the transmission destination and the apparatus starts an image transmission operation, in step S2, a document is inserted in response to pressing of a transmission button on the keyboard on the operation unit 10, and an LCD monitor is displayed. Display on,
In addition, various initializations required for image transmission are performed.

【0036】次にステップS3において、回線の極性、
すなわち、図1の回線の極性データを出力するバッファ
(CNT−A,CNT−B)122、123の出力状態
をRAM5に格納する。このときのRAM5への格納形
式は、バッファそれぞれについて、その出力がパルス出
力か、あるいは一定レベル(ハイレベル)かにそれぞれ
対応するフラグやバイナリ定数を格納すれば足りる。
Next, in step S3, the polarity of the line,
That is, the output state of the buffers (CNT-A, CNT-B) 122 and 123 for outputting the polarity data of the line in FIG. At this time, the storage format in the RAM 5 only needs to store a flag or a binary constant corresponding to whether the output of each buffer is a pulse output or a fixed level (high level).

【0037】そして、ステップS4、S5のループにお
いて、ファクシミリ画像送信(画像読取、サンプリン
グ、符号化などの処理は公知であるので説明を省略す
る)を行い、ファクシミリ送信が終了すると、ステップ
S6において、原稿の排出、LCDの表示オフ等のリセ
ット処理を行う。
Then, in a loop of steps S4 and S5, facsimile image transmission (processing such as image reading, sampling, encoding, etc. is known, so that the description is omitted). When facsimile transmission is completed, in step S6, Reset processing such as discharging the original and turning off the LCD display is performed.

【0038】上記のステップS4、S5のループは図4
に示すような割込み処理により実装される。図4に示す
割り込みルーチンは、1バイトの画像データの送出毎に
実行されるもので、この割り込みルーチンは通常5ms
あたり256回行われる(ほぼ53kbpsに相当)。
The loop of steps S4 and S5 is shown in FIG.
It is implemented by interrupt processing as shown in (1). The interrupt routine shown in FIG. 4 is executed every time one byte of image data is transmitted.
256 times per session (approximately 53 kbps).

【0039】図4のステップM1において、バッファ
(CNT−A,CNT−B)122、123の出力状態
を入力し、ステップM2において、既に図3のステップ
S3でRAMに格納されているステップM1で入力した
極性データと比較して状態が一致していれば極性反転で
ないと判断し、ステップM3に進む。上記ステップM2
において、前述の図5のように回線L1が正で、L2が
負の場合、パルス出力側でない側、つまり図5でいえば
CNT−B側が一致しているかどうかの比較のほうが容
易に行なえ、またそれで充分な結果が得られる。
In step M1 of FIG. 4, the output states of the buffers (CNT-A, CNT-B) 122 and 123 are input, and in step M2, in step M1 already stored in the RAM in step S3 of FIG. If the states match with the input polarity data, it is determined that the polarity is not inverted, and the process proceeds to step M3. Step M2 above
In the case where the line L1 is positive and the line L2 is negative as shown in FIG. 5, it is easier to compare whether or not the pulse output side is not the same, that is, the CNT-B side in FIG. It also gives good results.

【0040】一方、ステップM2において、バッファ1
22、123の出力状態をステップM1で入力した極性
データと比較して状態が一致していなければ(図5の場
合CNT−B側が一致していなければ)極性反転と判断
しステップM4に進む。
On the other hand, in step M2, the buffer 1
The output states of the outputs 22 and 123 are compared with the polarity data input in step M1, and if the states do not match (unless the CNT-B side matches in FIG. 5), it is determined that the polarity is inverted, and the process proceeds to step M4.

【0041】そして、極性反転でない場合は、ステップ
M3において1バイトの画像データをモデム6を介して
送出する。一方、極性反転の場合は、ステップM4に進
み、エラー処理を行う。このエラー処理としては、従来
のファクシミリ装置における相手側の切断に基くエラー
処理と同様であり、ここでは回線の開放、LCDによる
エラー表示、モータのオフ、エラー音出力、ソフトウェ
アのリセットなどが行なわれる。
If the polarity is not inverted, one byte of image data is transmitted via the modem 6 in step M3. On the other hand, in the case of polarity reversal, the process proceeds to step M4, where error processing is performed. This error processing is the same as the error processing based on disconnection of the other party in the conventional facsimile machine. Here, line release, LCD error display, motor off, error sound output, software reset, etc. are performed. .

【0042】前記のように、線路の極性は一般に保証さ
れていないので、以上の説明と線路L1、L2の極性が
逆の場合は図5に示したフォトカプラA1およびB1の
出力状態の変化は正反対になる。したがって、上記と逆
に回線L1が負で、L2が正の時は、バッファ122
(CNT−A)の側に注目して極性反転を判断すれば良
い。
As described above, since the polarities of the lines are not generally guaranteed, when the polarities of the lines L1 and L2 are reversed, the change in the output state of the photocouplers A1 and B1 shown in FIG. The opposite is true. Therefore, contrary to the above, when the line L1 is negative and L2 is positive, the buffer 122
The polarity inversion may be determined by focusing on the side of (CNT-A).

【0043】なお、上記のようにバッファ122(CN
T−A)、ないしバッファ123(CNT−B)側のい
ずれかのパルス出力でない側を検査することで極性反転
を検出するためには、装置のリセット時などにおいて回
線の初期極性をあらかじめ検出しておくか、あるいは図
3のステップS3における極性状態の検出結果を基準と
してステップM2で検査する側のバッファを決定するよ
うにしてもよい(たとばステップS3においてパルス出
力でない側をステップS2において検査する)。
Note that, as described above, the buffer 122 (CN
In order to detect the polarity reversal by inspecting the non-pulse output side of TA-A) or the buffer 123 (CNT-B), the initial polarity of the line is detected in advance when the device is reset. Alternatively, the buffer to be inspected in step M2 may be determined based on the detection result of the polarity state in step S3 in FIG. 3 (for example, the non-pulse output side in step S3 is inspected in step S2). Do).

【0044】なお、以上では単体のファクシミリ装置を
例示したが、本発明はファクシミリに限らず通信回線の
極性を検出する装置には全て実施できる。たとえば、フ
ァクシミリないしデータ通信のためのモデムを内蔵する
パーソナルコンピュータなどの情報処理装置、通信機能
を有するデジタル複写機の回線インターフェース部分な
どに本発明の技術を実施できるのはいうまでもなく、図
3、図4に示した制御はこれらの装置の通信制御用ある
いは主制御用のCPUにより実行すればよい。また、図
3、図4に示した制御手順は、ROMのみならず、フロ
ッピーディスクやハードディスク、各種のメモリカート
リッジやカードに記憶しておくことができる。
Although a single facsimile apparatus has been described above as an example, the present invention is not limited to a facsimile but can be applied to any apparatus for detecting the polarity of a communication line. For example, it goes without saying that the technology of the present invention can be applied to an information processing device such as a personal computer having a built-in modem for facsimile or data communication, a line interface portion of a digital copying machine having a communication function, and the like. The control shown in FIG. 4 may be executed by a CPU for communication control or main control of these devices. The control procedure shown in FIGS. 3 and 4 can be stored not only in the ROM but also in a floppy disk, a hard disk, various memory cartridges and cards.

【0045】[0045]

【発明の効果】以上から明らかなように、本発明によれ
ば、通信中の所定タイミングにおいて極性検出手段が出
力する回線極性データを記憶手段に記憶させ、その後、
記憶した回線極性データと、前記極性検出手段が出力す
る回線極性データを比較することにより回線極性の変化
を識別する構成を採用しているので、極性検出手段を一
定周期毎に駆動することにより回線電流の消費量を低減
することができ、また、直流ループが形成されることが
ないので交換機を誤動作させることなく回線極性の変化
を識別し、その結果に基いて所定の通信制御を行なうこ
とができる、という優れた効果がある。
As is apparent from the above, according to the present invention, the line polarity data output from the polarity detection means at a predetermined timing during communication is stored in the storage means.
Since a configuration is employed in which the change in line polarity is identified by comparing the stored line polarity data with the line polarity data output by the polarity detection unit, the line detection unit is driven at regular intervals, thereby Current consumption can be reduced, and since a DC loop is not formed, a change in line polarity can be identified without causing a malfunction of the switch, and predetermined communication control can be performed based on the result. There is an excellent effect that it can be done.

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

【図1】本発明を採用したファクシミリ装置の構成を示
したブロック図である。
FIG. 1 is a block diagram showing a configuration of a facsimile apparatus employing the present invention.

【図2】図1のNCUの要部の構成を詳細に示した回路
図である。
FIG. 2 is a circuit diagram showing a configuration of a main part of the NCU in FIG. 1 in detail.

【図3】図1のCPUの通信制御の流れを示したフロー
チャート図である。
FIG. 3 is a flowchart illustrating a flow of communication control of a CPU in FIG. 1;

【図4】図1のCPUの通信制御の流れを示したフロー
チャート図である。
FIG. 4 is a flowchart illustrating a flow of communication control of a CPU in FIG. 1;

【図5】図2の極性検出用バッファの出力状態と回線の
極性の状態を説明する表図である。
5 is a table illustrating an output state of a polarity detection buffer of FIG. 2 and a state of a line polarity;

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

3 タイマ 4 ROM 5 RAM 6 モデム 7 PIO 8 画像読取部 10 操作部 20 電話機(TEL) 121 パルス発生回路 122、123 バッファ(CNT−A,CNT−B) A1、A2 フォトカプラ B1、B2 フォトカプラ 3 Timer 4 ROM 5 RAM 6 Modem 7 PIO 8 Image reading unit 10 Operation unit 20 Telephone (TEL) 121 Pulse generation circuit 122, 123 Buffer (CNT-A, CNT-B) A1, A2 Photocoupler B1, B2 Photocoupler

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 回線に接続され、所定の通信処理を行な
うとともに回線極性の変化に応じた所定の通信制御を行
なう通信装置において、 回線の極性を検出する極性検出手段と、 前記極性検出手段をパルス駆動信号により一定周期毎に
駆動するパルス駆動手段と、 通信中の所定タイミングにおいて、前記極性検出手段か
ら出力される回線極性データを記憶するための記憶手段
と、 通信中、前記所定タイミングの後、前記記憶手段に格納
されている回線極性データと、前記極性検出手段が出力
する回線極性データを比較することにより回線極性の変
化を識別し、その結果に基づいて所定の通信制御を行な
う制御手段を有することを特徴とする通信装置。
1. A communication device connected to a line for performing predetermined communication processing and performing predetermined communication control in accordance with a change in line polarity, comprising: a polarity detection unit for detecting a line polarity; Pulse driving means for driving at regular intervals by a pulse driving signal; storage means for storing line polarity data output from the polarity detection means at a predetermined timing during communication; and Control means for identifying a change in line polarity by comparing the line polarity data stored in the storage means with the line polarity data output by the polarity detection means, and performing predetermined communication control based on the result. A communication device comprising:
【請求項2】 回線に接続され、所定の通信処理を行な
うとともに回線極性の変化に応じた所定の通信制御を行
なう通信装置の制御方法において、 回線の極性を検出する極性検出手段をパルス駆動信号に
より一定周期毎に駆動し、 通信中の所定タイミングにおいて、前記極性検出手段か
ら出力される回線極性データを記憶手段に記憶させ、 通信中、前記所定タイミングの後、記憶した回線極性デ
ータと、前記極性検出手段が出力する回線極性データを
比較することにより回線極性の変化を識別し、その識別
結果に基づいて所定の通信制御を行なうことを特徴とす
る通信装置の制御方法。
2. A control method for a communication device connected to a line for performing predetermined communication processing and performing predetermined communication control in accordance with a change in line polarity. At a predetermined time during communication, and at a predetermined timing during communication, the line polarity data output from the polarity detecting means is stored in the storage means. During the communication, after the predetermined timing, the stored line polarity data, A control method for a communication device, comprising: identifying a change in line polarity by comparing line polarity data output by a polarity detection unit; and performing predetermined communication control based on the identification result.
【請求項3】 回線に接続され、所定の通信処理を行な
うとともに回線極性の変化に応じた所定の通信制御を行
なう通信装置の制御プログラムを格納したコンピュータ
読取可能な記録媒体において、 回線の極性を検出する極性検出手段をパルス駆動信号に
より一定周期毎に駆動する制御ステップと、 通信中の所定タイミングにおいて、前記極性検出手段か
ら出力される回線極性データを記憶手段に記憶させる制
御ステップと、 通信中、前記所定タイミングの後、記憶した回線極性デ
ータと、前記極性検出手段が出力する回線極性データを
比較することにより回線極性の変化を識別し、その識別
結果に基づいて所定の通信制御を行なう制御ステップを
格納したことを特徴とする記録媒体。
3. A computer-readable recording medium which is connected to a line and stores a control program for a communication device which performs a predetermined communication process and performs a predetermined communication control according to a change in the line polarity. A control step of driving the polarity detection means to be detected at regular intervals by a pulse drive signal; a control step of storing line polarity data output from the polarity detection means in a storage means at a predetermined timing during communication; After the predetermined timing, the stored line polarity data is compared with the line polarity data output by the polarity detecting means to identify a change in the line polarity, and a predetermined communication control is performed based on the identification result. A recording medium storing steps.
JP10294327A 1998-10-16 1998-10-16 Communication device Pending JP2000125065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10294327A JP2000125065A (en) 1998-10-16 1998-10-16 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10294327A JP2000125065A (en) 1998-10-16 1998-10-16 Communication device

Publications (1)

Publication Number Publication Date
JP2000125065A true JP2000125065A (en) 2000-04-28

Family

ID=17806274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10294327A Pending JP2000125065A (en) 1998-10-16 1998-10-16 Communication device

Country Status (1)

Country Link
JP (1) JP2000125065A (en)

Similar Documents

Publication Publication Date Title
KR950010490A (en) Communication device connectable to the switching network providing ringing pattern service
JP2000125065A (en) Communication device
JPH03289244A (en) Composite telephone set
JP2000174918A (en) Facsimile communication equipment
JP3349377B2 (en) Answering machine
JP3108139B2 (en) Facsimile machine
JP2913613B2 (en) Facsimile machine
JP6847809B2 (en) Information processing device
JPS63246072A (en) Communication equipment
JP2599032B2 (en) Facsimile machine
JP2524890B2 (en) Facsimile machine
JP3542421B2 (en) Data communication device
JP3899653B2 (en) Communication apparatus and storage medium
JP3029155B2 (en) Data communication device
JPH11308389A (en) Facsimile equipment
JP2001230851A (en) Communication terminal
JPH05122428A (en) Facsimile equipment
JPH06237310A (en) Facsimile equipment with automatic answering telephone function
JP2002271540A (en) Facsimile equipment
JPH08237417A (en) Facsimile equipment
JPH11308364A (en) Communication terminal
JPH0530330A (en) Facsimile equipment
KR20000002002A (en) Caller id and incoming message recording of terminal with automatic response system
JPH0998207A (en) Telephone system
JPH071907B2 (en) Data communication device