JPS62283751A - Data signal receiver - Google Patents

Data signal receiver

Info

Publication number
JPS62283751A
JPS62283751A JP61126888A JP12688886A JPS62283751A JP S62283751 A JPS62283751 A JP S62283751A JP 61126888 A JP61126888 A JP 61126888A JP 12688886 A JP12688886 A JP 12688886A JP S62283751 A JPS62283751 A JP S62283751A
Authority
JP
Japan
Prior art keywords
signal
data
received
signal line
process advances
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
JP61126888A
Other languages
Japanese (ja)
Inventor
Takehiro Yoshida
武弘 吉田
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 JP61126888A priority Critical patent/JPS62283751A/en
Publication of JPS62283751A publication Critical patent/JPS62283751A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To quickly and exactly understand a receiving error by monitoring the data length of a data following a high level data link control procedure, and discriminating whether the receiving error exists or not, based on its data length. CONSTITUTION:The titled device is provided with a monitoring means for monitoring the data length of a data signal and a deciding means for deciding the error of a receiving data, based on the data length. At the time of receiving a binary signal, a receiving data length is monitored, and based on its data length, whether an error exists in a receiving signal or not is discriminated. Also, at the time of receiving the binary signal, the data length of a data following a high level data link control is monitored, and when it exceeds some prescribed length (for instance, 128 bytes), its receiving data is decided to be an error, and the next operation is executed. Moreover, when flag information affixed to the terminal of the data following the high level data link control procedure is detected in the midst of receiving the binary signal, when the length of the receiving data is below some prescribed length (for instance, <=5 bytes), its received data is decided to be an error.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、データ信号受信装置に関するものである。[Detailed description of the invention] [Industrial application field] The present invention relates to a data signal receiving device.

更に詳述すれば、本発明は、ハイレベルデータリンク制
御手順)IDLC(High 1evel Data 
LinkControl)に従ったデータ信号の受信装
置に関するものである。
More specifically, the present invention provides a high level data link control procedure) IDLC (High Level Data Link Control Procedure).
The present invention relates to a data signal receiving device according to LinkControl).

[従来の技術] この種のデータ信号受信装置のひとつとして、G I1
1ファクシミリ装置が広く知られている。かかるファク
シミリ装置において、300 bPsで実現されるバイ
ナリコードファクシミリ制御手順には、)IDLCフレ
ーム構成が使用される。
[Prior Art] As one of this type of data signal receiving device, GI1
1 facsimile machines are widely known. In such a facsimile machine, an IDLC frame structure is used for the binary code facsimile control procedure implemented at 300 bPs.

上述した従来のファクシミリ装置は、バイナリ信号を受
信する際に、ハイレベルデータリンク制御手順に従った
データ長を監視することなく、データの受信を続けてい
た。
When the conventional facsimile apparatus described above receives a binary signal, it continues to receive data without monitoring the data length according to the high-level data link control procedure.

従って、相手方のファクシミリ装置から非常に長いデー
タ長の信号が送られてきた場合には、無意味なデータを
受信し続けるという欠点があった。そして、無意味なデ
ータを受信し続けるため、メモリ内にストアされている
有効なデータを破壊してしまうということも有り得た。
Therefore, when a signal with a very long data length is sent from the other party's facsimile machine, there is a drawback that meaningless data continues to be received. In addition, since it continues to receive meaningless data, it is possible that valid data stored in memory may be destroyed.

また、かかるファクシミリ装置ではバイナリ信号を受信
している時、ハイレベルデータリンク制御手順に従った
データの終端フラグを検出した場合、有効なデータを受
信していない場合においても、当該フレームチェック信
号のチェックを行う制御が行われていた。すなわち、ハ
イレベルデータリンク制御に従ったデータ長は、少なく
とも5バイト(アドレスフィールド、制御フィールド、
ファクシミリ制御フィールド、ファクシミリ情報フィー
ルド、フレームチェックシーケンスフィールド)あるが
、これらフィールドのいずれかが欠落しているデータを
受信しているときにも、受信信号の解析を行うよう制御
がなされていた。
In addition, when such a facsimile device is receiving a binary signal, if it detects the end of data flag according to the high-level data link control procedure, even if no valid data is received, the frame check signal is Controls were in place to check. In other words, the data length according to high-level data link control is at least 5 bytes (address field, control field,
facsimile control field, facsimile information field, frame check sequence field), but even when data is being received in which any of these fields is missing, the received signal is controlled to be analyzed.

[発明が解決しようとする問題点コ このように、従来から知られているファクシミリ装置で
は、受信データの誤り判定が迅速に行われず、余分な通
信時間が費されているという欠点がみられた。
[Problems to be Solved by the Invention] As described above, conventionally known facsimile machines have the drawback that errors in received data cannot be quickly determined, and extra communication time is wasted. .

よって本発明の目的は、上述の点に鑑み、ハイレベルデ
ータリンク制御手順に従ったデータ信号の受信誤りを迅
速かつ適確に判断し得るよう構成したデータ信号受信装
置を提供することにある。
SUMMARY OF THE INVENTION In view of the above-mentioned points, an object of the present invention is to provide a data signal receiving apparatus configured to quickly and accurately determine reception errors in data signals according to a high-level data link control procedure.

[問題点を解決するための手段] かかる目的を達成するために、本発明では、ハイレベル
データリンク制御手順に従ったデータ信号を受信する装
置において、データ信号のデータ長をモニタする監視手
段と、前記データ長に基づいて当該受信データの誤りを
判定する判定手段とを具備するものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides a monitoring means for monitoring the data length of the data signal in an apparatus for receiving a data signal according to a high-level data link control procedure. , and determining means for determining an error in the received data based on the data length.

[作用] バイナリ信号を受信している時には受信データ長をモニ
タし、そのデータ長に基づいて、受信信号にエラーが有
るか否かを判別する。
[Operation] When receiving a binary signal, the received data length is monitored, and based on the data length, it is determined whether or not there is an error in the received signal.

また、本発明の好適な実施例では、バイナリ信号を受信
している時、ハイレベルデータリンク制御に従ったデー
タのデータ長を監視し、ある一定長(例えば128バイ
ト)を越えた場合には、その受信しているデータをエラ
ーと判断し、次の動作へ進む。
Further, in a preferred embodiment of the present invention, when receiving a binary signal, the data length of data according to high-level data link control is monitored, and if the data length exceeds a certain length (for example, 128 bytes), , determines that the received data is an error, and proceeds to the next operation.

更に、その他の好適な実施例では、バイナリ信号を受信
している最中にハイレベルデータリンク制御手順に従っ
たデータの終端に付されているフラグ情報を検出した場
合、当該受信データの長さがある一定長以下(例えば5
バイト未満)のときは、その受信したデータをエラーと
判断して、次の動作を行う。
Furthermore, in another preferred embodiment, when flag information attached to the end of data according to a high-level data link control procedure is detected while receiving a binary signal, the length of the received data is determined. The length is less than a certain length (for example, 5
(less than a byte), the received data is determined to be an error and the next operation is performed.

[実施例コ 第1図は本発明に係るデータ信号受信装置の全体構成図
であり、ハイレベルデータリンク制御手順に従ったデー
タ信号を受信する装置において、前記データ信号のデー
タ長をモニタする監視手段Aと、前記データ長に基づい
て当該受信データの誤りを判定する判定手段Bとを具備
する。
[Example 1] FIG. 1 is an overall configuration diagram of a data signal receiving device according to the present invention, and in a device that receives a data signal according to a high-level data link control procedure, there is a monitoring device that monitors the data length of the data signal. The apparatus includes means A, and determining means B for determining errors in the received data based on the data length.

第2図は、本発明を適用したファクシミリ装置の一実施
例を示すブロック図である。
FIG. 2 is a block diagram showing an embodiment of a facsimile apparatus to which the present invention is applied.

第2図において、2は、網制御装置NCLI (Net
−work Control Unit )であり、電
話網をデータ通信等に使用するため、その回線の端末に
接続して電話交換網の接続制御を行ったり、データ通信
路への切替えを行う等の機能を果たす。また、信号線2
aは電話回線である。このNCU2は、信号線38aの
信号を入力し、この信号レベルが「0」であれば、電話
回線を電話機側(すなわち、信号線2aを信号線2b)
に接続する。また、信号−Ji38aの信号を入力し、
この信号レベルが「1」であれば、電話回線をファクシ
ミリ装置側(すなわち、信号線2aを信号線2c)に接
続する6通常の状態では、電話回線は電話機側に接続さ
れている。
In FIG. 2, 2 is a network controller NCLI (Net
-work Control Unit), in order to use the telephone network for data communication, etc., it connects to the terminal of the line and performs functions such as controlling the connection of the telephone exchange network and switching to the data communication path. . Also, signal line 2
a is a telephone line. This NCU 2 inputs the signal of the signal line 38a, and if this signal level is "0", the telephone line is connected to the telephone side (that is, the signal line 2a is connected to the signal line 2b).
Connect to. Also, input the signal -Ji38a,
If this signal level is "1", the telephone line is connected to the facsimile machine side (that is, the signal line 2a to the signal line 2c).6 In normal conditions, the telephone line is connected to the telephone set side.

4は、電話機である。4 is a telephone.

6は、送信系の信号と受信系の信号を分離するハイブリ
ッド回路である。すなわち、信号線18aの送信信号は
、信号線2CおよびNCU2を介して、電話回線に送出
される。また、相手側から送られてきた信号は、NC1
12および信号線2Cを通り、信号線6aに出力される
6 is a hybrid circuit that separates a transmission system signal and a reception system signal. That is, the transmission signal of the signal line 18a is sent out to the telephone line via the signal line 2C and the NCU2. Also, the signal sent from the other party is NC1
12 and the signal line 2C, and is output to the signal line 6a.

8は読取回路であり、主走査方向1ライン分の画信号を
送信すべき原稿より順次読み取り、白および黒の2値を
表す信号列を作成する。この読取回路8は、C0D(電
荷結合素子)等の撮像素子と光学系とにより構成する。
Reference numeral 8 denotes a reading circuit which sequentially reads image signals for one line in the main scanning direction from the original to be transmitted, and creates a signal string representing binary values of white and black. The reading circuit 8 includes an image sensor such as a C0D (charge coupled device) and an optical system.

また、白および黒に2値化された信号列は、信号線8a
に出力される。
In addition, the signal string binary-coded into white and black is connected to the signal line 8a.
is output to.

10は、符号化回路である。この符号化回路lOは、信
号線8aに出力されている2値化された信号を人力し、
符号化(MH(モディファイド ハフマン)符号化ある
いはMR(モディファイド リード)符号化)し、さら
に符号化したデータを信号線10aに出力する。
10 is an encoding circuit. This encoding circuit 10 manually inputs the binarized signal outputted to the signal line 8a,
The data is encoded (MH (Modified Huffman) encoding or MR (Modified Read) encoding), and the encoded data is output to the signal line 10a.

12は、公知のCCITT勧告V27ter (差動位
相変調)あるいはv29(直交変調)に基づいた変調を
行う変調器である。この変調器12は、信号線10aの
信号を入力して変調を行い、変調データを信号線12a
に出力する。
12 is a modulator that performs modulation based on the well-known CCITT recommendation V27ter (differential phase modulation) or v29 (quadrature modulation). This modulator 12 receives and modulates the signal on the signal line 10a, and transmits the modulated data to the signal line 12a.
Output to.

14は、パラレル−シリアル(P/S)変換回路である
。このパラレル−シリアル変換回路14は、2つのバッ
ファ(バッファ「0」およびバッファ「1」)を有して
いる。最初の時点では、2つのバッファとも空であるの
で、信号線14aにバイトパックのクロックを発生する
。そして、制御回路38からバイトデータが書きこまれ
ると、このデータはバッファ「0」に格納される。バッ
ファ「0」に格納されたデータは他のバッファ(バッフ
ァ「1」)が空であるので、バッファ1に移される。す
ると、バッファ「0」は空となるので、信号線14aに
バイトパックのクロックを発生する。そして、制御回路
38からバイトデータが書きこまれると、このデータは
バッファ「O」に格納される。制御回路38から送出さ
れたバイトデータは、信号線38bを介して、このバッ
ファに書きこまれる。このP/S変換回路14は、バッ
ファ「1」に格納されたバイトデータをパラレル−シリ
アル変換し、信号線16aにクロックが送出される毎に
、シリアルデータを信号線14bに出力する。8ビツト
のシリアルデータが信号線14bに出力されると、バッ
ファ「1」は空となるので、バッファ「0」に格納され
ているバイトデータを、バッファ「1」に移す。そして
、信号線14aにバイトパックのクロックを発生する。
14 is a parallel-serial (P/S) conversion circuit. This parallel-serial conversion circuit 14 has two buffers (buffer "0" and buffer "1"). At the beginning, both buffers are empty, so a byte pack clock is generated on the signal line 14a. Then, when byte data is written from the control circuit 38, this data is stored in buffer "0". The data stored in buffer "0" is moved to buffer 1 since the other buffer (buffer "1") is empty. Then, since the buffer "0" becomes empty, a byte pack clock is generated on the signal line 14a. Then, when byte data is written from the control circuit 38, this data is stored in the buffer "O". Byte data sent from the control circuit 38 is written into this buffer via the signal line 38b. This P/S conversion circuit 14 performs parallel-to-serial conversion on the byte data stored in the buffer "1", and outputs serial data to the signal line 14b every time a clock is sent to the signal line 16a. When 8-bit serial data is output to the signal line 14b, buffer "1" becomes empty, so the byte data stored in buffer "0" is moved to buffer "1". Then, a byte pack clock is generated on the signal line 14a.

制御回路38から信号線38bを介してバイトデータが
書きこまれると、このデータはバッファ「O」に格納さ
れる。
When byte data is written from the control circuit 38 via the signal line 38b, this data is stored in the buffer "O".

信号線38bには、信号線14aにバイトパックのクロ
ックが送出される毎に、手順信号がバイトパックされて
送出される。
A procedure signal is bit-packed and sent to the signal line 38b every time a byte-pack clock is sent to the signal line 14a.

16は、公知のCCITT勧告V21に基づいた変調を
行う変調器である。この変調器16は、データの送出タ
イミングを表すクロックを信号線16aに出力する。ま
た変調器16は、信号線14b上のシリアル手順信号を
入力して変調を行い、変調データを信号線16bに出力
する。
16 is a modulator that performs modulation based on the known CCITT recommendation V21. This modulator 16 outputs a clock representing data transmission timing to a signal line 16a. Further, the modulator 16 inputs the serial procedure signal on the signal line 14b, performs modulation, and outputs the modulated data to the signal line 16b.

17は、GI2信号送出回路である。この回路17は、
信号線38cにパルスが発生した時、信号線17aにG
I2信号を送出する。そして、GI2信号の送出が終了
した時、信号線17bにパルスを発生する。
17 is a GI2 signal sending circuit. This circuit 17 is
When a pulse is generated on the signal line 38c, a G signal is applied to the signal line 17a.
Sends I2 signal. Then, when the transmission of the GI2 signal is completed, a pulse is generated on the signal line 17b.

18は、加算回路である。この加算回路18は、信号線
12a、信号線tab 、信号線17aの信号を入力し
、加算した結果を信号線18aに出力する。
18 is an adder circuit. This adder circuit 18 inputs the signals of the signal line 12a, the signal line tab, and the signal line 17a, and outputs the added result to the signal line 18a.

20は、公知のCCITT勧告V27ter (差動位
相変調)あるいは、v29(直交変調)に基づいた復調
を行う復調器である。復調器20は、信号線6aの信号
を入力して復調を行い、復調データを信号線20aに出
力する。
20 is a demodulator that performs demodulation based on the well-known CCITT recommendation V27ter (differential phase modulation) or v29 (quadrature modulation). The demodulator 20 inputs the signal on the signal line 6a, performs demodulation, and outputs demodulated data to the signal line 20a.

22は、信号線2Daに出力されている復調データを入
力し、復号化(MH(モディファイド ハ フマン)復
号化あるいはMR(モディファイド リード)復号化し
たデータを信号線22aに出力する回路である。
A circuit 22 inputs the demodulated data outputted to the signal line 2Da and outputs the decoded (MH (Modified Huffman) decoded or MR (Modified Read) decoded data to the signal line 22a.

24は、信号線22aに出力された復号化データを入力
し、白および黒の信号を1ライン毎に記録する記録回路
である。
24 is a recording circuit that inputs the decoded data output to the signal line 22a and records white and black signals line by line.

26は、公知のCCITT勧告V21に基づいた復調を
行う復調器である。この復調器z6は、信号線6aの信
号を人力し、V21復調を行い、復調データを信号線2
6bに出力する。受信したデータのタイミングクロツタ
は、信号線26aに出力される。
26 is a demodulator that performs demodulation based on the known CCITT recommendation V21. This demodulator z6 inputs the signal on the signal line 6a, performs V21 demodulation, and sends the demodulated data to the signal line 2.
Output to 6b. The timing clock of the received data is output to the signal line 26a.

28は、シリアル−パラレル(S/I’)変換回路であ
る。信号線26aにクロックが8回送出されると8ビツ
トのデータがそろう(このデータは、信号線26bに出
力されている信号である)ので、この8ビツトのデータ
がそろった時、シリアル−パラレル変換回路28は、信
号線28aにクロックを発生し、バイトデータを信号線
28bに出力する。
28 is a serial-parallel (S/I') conversion circuit. When the clock is sent to the signal line 26a eight times, 8 bits of data are collected (this data is the signal output to the signal line 26b), so when the 8 bits of data are collected, the serial-parallel The conversion circuit 28 generates a clock on a signal line 28a and outputs byte data on a signal line 28b.

30は、信号j!1I8aの信号を入力し、増幅する増
幅器である。増幅された信号は、信号線30aに出力さ
れる。すなわち、相手側ファクシミリ装置から送出され
た信号は、本ファクシミリ装置に到着する間に、伝送媒
体である電話回線により減衰されるため、この増幅器3
0により増幅を行う。
30 is signal j! This is an amplifier that inputs and amplifies the signal of 1I8a. The amplified signal is output to the signal line 30a. In other words, the signal sent from the other party's facsimile machine is attenuated by the telephone line, which is the transmission medium, before reaching the facsimile machine, so this amplifier 3
Amplification is performed by 0.

32は、信号線30aの信号を人力し、ある基準電圧に
対して2値化を行う2値化回路である。2値化された信
号は、信号線32aに出力される。
32 is a binarization circuit that manually inputs the signal of the signal line 30a and binarizes it with respect to a certain reference voltage. The binarized signal is output to the signal line 32a.

34は、信号線32aの信号を入力し、信号の1周期の
時間を測定するトーナルカウンタである。この1周期の
時間により、受信した信号の周波数を認識し得る。この
トーナルカウンタは、相手側ファクシミリ装置が回線に
送出する信号の周波数を認識するために用いるもの。
34 is a tonal counter which inputs the signal of the signal line 32a and measures the time of one cycle of the signal. This one cycle time allows the frequency of the received signal to be recognized. This tonal counter is used to recognize the frequency of the signal sent to the line by the other party's facsimile machine.

第3図は、信号線sa上の信号および信号線32a上の
2値化した信号を示す波形図である。ここで、2値化し
た信号はさらに分周され、1周期Tの時間が測定され、
もってその周波数が決定される。1周期Tの測定法とし
ては、ある一定のクロック(木実流側においては、o、
7akux)を用いて求めることができる。この場合、
例えば、2100Hzの信号は37クロツク分に相当し
ている。すなわち、1周期分のクロック数が35ないし
39までのいずれかであるときには、その信号の周波数
が2100Hzであると判断する。ここで、35クロツ
クは2222Hzに、39クロツクは1994Hzに相
当する。このように、1994Hzないし2222Hz
の信号を検出した時、1周期2100Hzの信号を検出
したものとする。
FIG. 3 is a waveform diagram showing the signal on the signal line sa and the binarized signal on the signal line 32a. Here, the binarized signal is further frequency-divided, the time of one period T is measured,
The frequency is then determined. As a method of measuring one period T, a certain clock (on the wood flow side, o,
7akux). in this case,
For example, a 2100 Hz signal corresponds to 37 clocks. That is, when the number of clocks for one period is between 35 and 39, it is determined that the frequency of the signal is 2100 Hz. Here, 35 clocks correspond to 2222 Hz, and 39 clocks correspond to 1994 Hz. In this way, 1994Hz to 2222Hz
It is assumed that a signal with one period of 2100 Hz is detected when a signal of 2100 Hz is detected.

そして、ある一定時間以内に、1周期の時間が2100
)1zである(クロック数が35から39である)と複
数回検出されたとき、210011zの信号を検出した
ものと判断する。
Then, within a certain period of time, the time of one cycle is 2100.
) 1z (the number of clocks is 35 to 39) is detected multiple times, it is determined that a signal of 210011z has been detected.

トーナルカウンタ回路34は、1周期の測定が終了した
時、信号線34aにパルスを発生すると共に、信号線3
4bには何りロック分であったかのデータを出力する。
When one period of measurement is completed, the tonal counter circuit 34 generates a pulse on the signal line 34a and also outputs a pulse on the signal line 34a.
4b outputs data indicating how many locks there are.

36は、信号有無検出回路であり、信号線6aの信号を
入力し、−43dBm以上の信号が検出された時には信
号線36aに信号レベル「1」の信号を出力し、また−
48dBm以下の信号が検出された時には、信号線36
aに信号レベル「0」の信号を出力する。また、信号線
6aの信号が、−48dBmを越え−43dBm未満で
ある時には、信号線3[iaには信号レベル「O」ある
いは信号レベル「1」の信号が出力される。
36 is a signal presence/absence detection circuit which inputs the signal of the signal line 6a, and outputs a signal of signal level "1" to the signal line 36a when a signal of -43 dBm or more is detected, and -
When a signal of 48 dBm or less is detected, signal line 36
A signal with signal level "0" is output to a. Further, when the signal on the signal line 6a exceeds -48 dBm and is less than -43 dBm, a signal of signal level "O" or signal level "1" is output to the signal line 3[ia.

38は、以下に述べる制御を行う制御回路である。ここ
では、相手側ファクシミリ装置から送出される信号の態
様として、2つの場合を考える。
38 is a control circuit that performs the control described below. Here, two cases will be considered as aspects of the signal sent from the other party's facsimile machine.

以下に、制御■および制御■の2つに分けて説明する。Below, the explanation will be divided into two parts: control (1) and control (2).

$IJ御■:本ファクシミリ装置が画像受信側である時
、まず、初期識別信号を送出した後、相手側ファクシミ
リ装置から送出される信号の受信を行うが、この場合の
信号を受信するための制御である。
$IJ ■: When this facsimile machine is on the image receiving side, it first sends an initial identification signal and then receives the signal sent from the other party's facsimile machine. It is control.

制御■:木ファクシミリ装置が画像送信側である時、ま
ず、相手側ファクシミリ装置から送出される初期識別信
号の受信を行うが、この場合の信号を受信するための制
御である。
Control (2): When the facsimile machine is the image transmitting side, it first receives the initial identification signal sent from the other party's facsimile machine, and this is the control for receiving the signal in this case.

上述した制御■について、第4図に示すフローチャート
を参照して以下に説明していく。
The above-mentioned control (2) will be explained below with reference to the flowchart shown in FIG.

第4図において、ステップS50は、画像受信時の処理
を示している。
In FIG. 4, step S50 shows processing at the time of image reception.

ステップ552においては、タイマーT1に35秒をセ
ットする。
In step 552, timer T1 is set to 35 seconds.

ステップS54においては(GI2.グループ識別)・
NSF 、非標準装置・ C51,被呼局識別・Dis
、デジタル識別信号を送出する。ここで、GI2信号は
、1回目は送出せず、2回目から送出する。
In step S54, (GI2. Group identification)
NSF, non-standard equipment/C51, called station identification/Dis
, sends out a digital identification signal. Here, the GI2 signal is not sent the first time, but is sent from the second time.

ステップS56においては、タイマーT4に3秒あるい
は、4.5秒をセットする。ここで、自動受信の場合は
、タイマーT4に3秒をセットし、手動受信の場合は、
タイマーT4に4.5秒をセットする。
In step S56, the timer T4 is set to 3 seconds or 4.5 seconds. Here, in the case of automatic reception, set 3 seconds to timer T4, and in the case of manual reception,
Set timer T4 to 4.5 seconds.

ステップS58においては、(fl:ITT勧告V21
のバイナリ信号を受信したか否かが判断される。
In step S58, (fl:ITT Recommendation V21
It is determined whether or not the binary signal has been received.

CCITT勧告V2勧告式21リ−信号を受信した場合
は、ステップ560に進む。(:CITT勧告V21の
バイナリ−信号を受信していない時には、ステップ56
2に進む。
If the CCITT Recommendation V2 Recommendation Type 21 Lee signal is received, the process proceeds to step 560. (If no CITT Recommendation V21 binary signal is received, step 56
Proceed to step 2.

ステップS60は、G3モードのバイナリ手順に移行す
ることを表している。
Step S60 represents transition to the G3 mode binary procedure.

ステップS62においては、GC2信号あるいは、PI
S (手順中断)信号を検出したか否かが判断される。
In step S62, the GC2 signal or the PI
It is determined whether the S (procedure interruption) signal is detected.

GC2信号あるいは、PIS信号を検出するときには、
ステップS64に進む。GC2信号あるいは、PIS信
号を検出していないときには、ステップS66に進む。
When detecting GC2 signal or PIS signal,
The process advances to step S64. If the GC2 signal or PIS signal is not detected, the process advances to step S66.

ステップ564は、トーナル手順に移行することを表し
ている。本実施例によるファクシミリ装置は、(:CI
TT勧告G2.G3.機能を有する場合を想定している
ので、トーナル信号としては、GC2信号およびPIS
信号の受信を行う。ここで、GC2信号を受信した時は
、G2モードでの伝送を行い、PIS信号を受信した時
は、電話モードへ進む。
Step 564 represents transition to a tonal procedure. The facsimile device according to this embodiment is (:CI
TT Recommendation G2. G3. Since it is assumed that the tonal signal has a function, the GC2 signal and PIS signal are used as tonal signals.
Receive signals. Here, when the GC2 signal is received, transmission is performed in the G2 mode, and when the PIS signal is received, the process proceeds to the telephone mode.

ステップ568においては、タイマーT4がタイムオー
バーしたか否かが判断される。タイマーT4がタイムオ
ーバーすると、ステップ568に進む。タイマーT4が
タイムオーバーしていないときには、ステップSSaに
進む。
In step 568, it is determined whether timer T4 has timed out. When timer T4 times out, the process proceeds to step 568. If the timer T4 has not timed out, the process advances to step SSa.

ステップS68においては、タイマーT1がタイムオー
バーしたかが判断される。タイマーT1がタイムオーバ
ーすると、ステップ570に進む。タイマーT1がタイ
ムオーバーしていないときには、ステップS54に進む
In step S68, it is determined whether the timer T1 has timed out. When the timer T1 times out, the process proceeds to step 570. If the timer T1 has not timed out, the process advances to step S54.

ステップ570においては、DCN(切断コマンド)信
号の送出を行う。
In step 570, a DCN (disconnection command) signal is sent.

ステップS72は、回線切断を表している。Step S72 represents line disconnection.

第4図に示した概略フローチャートにおいては、本実施
例特有の機能は示されていない。
In the schematic flowchart shown in FIG. 4, functions unique to this embodiment are not shown.

次に、本実施例による制御手順の詳細を第5図(1)〜
(5)を参照して説明する。
Next, the details of the control procedure according to this embodiment are shown in FIG.
This will be explained with reference to (5).

第5図において、ステップS80は、画像受信側の処理
を表している。
In FIG. 5, step S80 represents processing on the image receiving side.

ステップS82においては、電話回線をファクシミリ装
置側に接続する。具体的には、信号線38aに信号レベ
ル「1」の信号を出力する。
In step S82, the telephone line is connected to the facsimile machine. Specifically, a signal of signal level "1" is output to the signal line 38a.

ステップ584においては、5IGTRC(SIGNA
L TRNC0NTR0L )フラグに「0」をセット
する。
In step 584, 5IGTRC(SIGNA
LTRNC0NTR0L) Set the flag to "0".

ステップ586においては2秒間待機する。In step 586, the process waits for 2 seconds.

ステップ588においては、自動受信であるか否かが判
断される。自動受信である時は、ステップ590に進む
。手動受信である時は、ステップ594に進む。
In step 588, it is determined whether or not the reception is automatic. If the reception is automatic, the process advances to step 590. If it is manual reception, the process advances to step 594.

ステップ590においては、CHD(被呼局識別)信号
を送出する。
In step 590, a CHD (called station identification) signal is sent.

ステップS92においては、T4SAVに3秒をセット
する。
In step S92, T4SAV is set to 3 seconds.

ステップS94においては、T4SAVに4.5秒をセ
ットする。
In step S94, T4SAV is set to 4.5 seconds.

ステップ596においては、タイマーT1に35秒をセ
ットする。
In step 596, timer T1 is set to 35 seconds.

ステップ598においては、フラグ5IGTRCが「0
」であるか否かが判断される。ここでは、初期識別信号
を送出する時、1回目のみGI2信号を送出しない制御
を行っている。フラグ5IGTRCが「0」である時は
、ステップ5102に進む。また、フラグ5IGTRC
が「0」でない時は、ステップ100に進む。
In step 598, flag 5IGTRC is set to "0".
” is determined. Here, when transmitting the initial identification signal, control is performed such that the GI2 signal is not transmitted only the first time. When flag 5IGTRC is "0", the process advances to step 5102. Also, flag 5 IGTRC
When is not "0", the process proceeds to step 100.

ステップ3100においては、GI2信号を送出する。In step 3100, the GI2 signal is sent.

具体的には信号線38cにパルスを発生し、GI2信号
の送出を開始し、信号j、!i!17bにパルスが発生
するのを待機する。信号線17bにパルスが発生した時
、ステップ5104に進む。
Specifically, a pulse is generated on the signal line 38c, the transmission of the GI2 signal is started, and the signals j, ! i! Wait for a pulse to occur at 17b. When a pulse is generated on the signal line 17b, the process advances to step 5104.

ステップ5102においては、フラグ5IGTRCに1
をセットする。
In step 5102, flag 5IGTRC is set to 1.
Set.

ステップ5104においては、NSF  −(:SI 
 −Dis信号を送出する。具体的には信号線14aに
パルスが発生する毎にバイトデータを信号線38bに送
出することにより、NSF −C5I  ・DIS信号
を送出する。最後のフラグは1つとする。
In step 5104, NSF-(:SI
-Send the Dis signal. Specifically, the NSF-C5I•DIS signal is sent by sending byte data to the signal line 38b every time a pulse is generated on the signal line 14a. The last flag is one.

ステップ5106においては、T4SAVに格納した時
間をタイマーT4にセットする。
In step 5106, the time stored in T4SAV is set in timer T4.

ステップ510gにおいては、受信したデータを格納す
るエリアBIRCOにOOHをセットする。
In step 510g, OOH is set in area BIRCO for storing the received data.

ステップ511Gにおいては、受信したデータを格納す
るエリアBIRC1にOOHをセットする。
In step 511G, OOH is set in area BIRC1 for storing the received data.

ステップ5112においては、エコータイマーECI+
TIMに600m5をセットする。
In step 5112, the echo timer ECI+
Set 600m5 to TIM.

ステップ5114においては、2バイト連続した7El
((01111110B)パターンを検出した時に「1
」にセットされるフラグFLGIDTを「0」にセット
する。
In step 5114, two consecutive bytes of 7El
((01111110B) “1” when the pattern is detected
” is set to “0”.

ステップ5116においては、フラグFLGDETに「
0」をセットする。
In step 5116, the flag FLGDET is set to “
0”.

ステップ5118においては、1つのフレームを受信し
ている時のバイト数をカウントするカウンタCNTBY
Tに「0」をセットする。
In step 5118, a counter CNTBY is used to count the number of bytes when receiving one frame.
Set "0" to T.

ステップ5120においては、1周期の信号の周波数を
解析した時、21QQH1であったと判断されることが
788回あった場合には、GC2信号を検出したものと
判断する。この788回をカウントするのに使用するカ
ウンタ[:NT210に788をセットする。2周期に
1回、周波数の解析を行うことが可能であるので、78
8回は、合計788 x −x 2=0.75秒の21
00)1zを検出することに対応する。
In step 5120, when the frequency of one cycle of the signal is analyzed, if it is determined that it is 21QQH1 788 times, it is determined that the GC2 signal has been detected. Set 788 to the counter [:NT210 used to count these 788 times. Since it is possible to analyze the frequency once every two periods, 78
8 times is 21 for a total of 788 x - x 2 = 0.75 seconds
00) corresponds to detecting 1z.

ステップ5122においては、1周期の信号の周波数を
解析した時、462Hzであったと判断されることが2
31回あった場合、PIS信号を検出したものと判断す
る。この231回をカウントするのに使用するカウンタ
CNT462に231をセットする。2周期に1回、周
波数の解析を行うことが可能であるので、231回は、
合計231 x −x 2 = 1 、00秒の4B2
Hzを検出することに対応する。
In step 5122, when the frequency of one period of the signal is analyzed, it is determined that it is 462 Hz.
If it occurs 31 times, it is determined that a PIS signal has been detected. The counter CNT462 used to count these 231 times is set to 231. Since it is possible to analyze the frequency once every two periods, 231 times is
Total 231 x - x 2 = 1, 00 seconds 4B2
This corresponds to detecting Hz.

ステップ5124においては、300b/sのバイトク
ロックが発生したか否かが判断される。具体的には、信
号線28aにクロックが発生したか否、かが判断される
。300bへのバイトクロックが発生すると(すなわち
、信号線213aにクロックが発生すると)、ステップ
5160に進む。300b/sのバイトクロツタが発生
していないとき(すなわち、信号線28aにクロックが
発生していないとき)には、ステップ5126に進む。
In step 5124, it is determined whether a 300 b/s byte clock has been generated. Specifically, it is determined whether a clock is generated on the signal line 28a. When a byte clock to signal line 213a is generated (ie, a clock is generated on signal line 213a), the process proceeds to step 5160. If a byte clock of 300 b/s is not occurring (that is, no clock is being generated on the signal line 28a), the process advances to step 5126.

ステップ5126ニオイテハ、FLGIDTカrO」テ
するか、すなわち、2バイトの連続したフラグパターン
(7E旧を検出しているか否かが判断される。FLGI
DTが「0」のとき、すなわち、2バイトの連続したフ
ラグパターン(7EI+)を検出していないときは、ス
テップ5128に進む。FLGIDTが「1」のとき、
すなわち、2バイトの連続したフラグパターン(7El
)を検出しているときは、ステップ5150に進み、ト
ーナル信号の解析は行わない。
In step 5126, it is determined whether a 2-byte continuous flag pattern (7E old) is detected.
When DT is "0", that is, when a continuous 2-byte flag pattern (7EI+) is not detected, the process advances to step 5128. When FLGIDT is “1”,
In other words, a 2-byte continuous flag pattern (7El
), the process advances to step 5150 and the tonal signal is not analyzed.

ステップ512Bにおいては、SED(Signal 
EnergyDetect)が1であるか否か、すなわ
ち、信号線36aが信号レベル「1」であるか否かが判
断される。SEDが1である時、すなわち、信号線36
aが信号レベル「1」である時は、ステップ5130に
進み、トーナル信号の解析へ進む。SEDが「O」であ
る時、すなわち、信号線36aが信号レベル「0」であ
る時は、ステップ5150に進み、トーナル信号の解析
は行わない。
In step 512B, SED (Signal
It is determined whether EnergyDetect) is 1, that is, whether the signal level of the signal line 36a is "1". When SED is 1, that is, signal line 36
When a is at the signal level "1", the process advances to step 5130 to analyze the tonal signal. When SED is "O", that is, when the signal line 36a is at signal level "0", the process proceeds to step 5150, and no tonal signal analysis is performed.

上記のステップ5126および5128は、本実施例特
有の部分を表している。
Steps 5126 and 5128 above represent parts unique to this embodiment.

ステップ5130においては、トーナル信号の1周期の
解析が終了したか否か、すなわち、信号線34aにパル
スが発生したか否かが判断される。
In step 5130, it is determined whether the analysis of one period of the tonal signal has been completed, that is, whether a pulse has occurred on the signal line 34a.

トーナル信号の1周期の解析が終了した場合、すなわち
、信号線34aにパルスが発生した場合には、ステップ
5132に進む。また、トーナル信号の1周期の解析が
終了していない場合、すなわち、信号線34aにパルス
が発生していない場合には、ステップ5150に進む。
When the analysis of one period of the tonal signal is completed, that is, when a pulse is generated on the signal line 34a, the process advances to step 5132. Further, if the analysis of one period of the tonal signal has not been completed, that is, if no pulse is generated on the signal line 34a, the process advances to step 5150.

ステップ5132においては、トーナルデータ(すなわ
ち、信号線34bの信号)を入力する。
In step 5132, tonal data (ie, the signal on signal line 34b) is input.

ステップ5134においては、今、受信した1周期の信
号が2100)1zであるか否かが判断される。今、受
信した1周期の信号が2100)1zである時は、ステ
ップ513Bに進む。今、受信した1周期の信号が21
00Itzでない時は、ステップ5142に進む。
In step 5134, it is determined whether the currently received one-cycle signal is 2100)1z. If the received one-cycle signal is 2100)1z, the process advances to step 513B. The signal of one period received now is 21
If it is not 00Itz, the process advances to step 5142.

ステップ5136においては、カウンタCNT210の
値を1だけデクリメントする。
In step 5136, the value of counter CNT210 is decremented by one.

ステップ5138においては、カウンタCNT210の
値が負であるか否か、すなわち、GC2信号を検出した
か否かが判断される。カウンタCNT210の値が負で
ある時、すなわち、GC2信号を検出した時は、ステッ
プ5140に進む。カウンタ(:NT210の値が正ま
たは;である時、すなわち、GC2信号を検出していな
い時は、ステップ5150に進む。
In step 5138, it is determined whether the value of counter CNT210 is negative, that is, whether the GC2 signal has been detected. When the value of counter CNT210 is negative, that is, when the GC2 signal is detected, the process advances to step 5140. When the value of the counter (:NT210) is positive or ;, that is, when the GC2 signal is not detected, the process advances to step 5150.

ステップ5140は、GC2信号受信と判断し、G2の
受信モードへ移行することを表している。
Step 5140 indicates that it is determined that the GC2 signal has been received and that the mode is shifted to the G2 reception mode.

ステップ5142においては、今、受信した1周期の信
号が462H2であるか否かが判断される。今、受信し
た1周期の信号が462Hzである時は、ステップ51
44に進む。今、受信した1周期の信号が48211z
でない時は、ステップ5150に進む。
In step 5142, it is determined whether the currently received one-cycle signal is 462H2. If the received one-cycle signal is 462Hz, step 51
Proceed to step 44. The signal of one period received now is 48211z
If not, proceed to step 5150.

ステップ5144においては、カウンタCNT462の
値を1だけデクリメントする。
In step 5144, the value of counter CNT462 is decremented by one.

ステップ5146においては、カウンタCNT462の
値が負であるか否か、すなわち、PIS信号を検出した
か否かが判断される。カウンタCNT462の値が負で
ある時、すなわち、PIS信号を検出した時は、ステッ
プ5148に進む。カウンタCNT462の値が正また
は零である時、すなわち、PIS信号を検出していない
時は、ステップ5150に進む。
In step 5146, it is determined whether the value of counter CNT462 is negative, that is, whether the PIS signal has been detected. When the value of counter CNT462 is negative, that is, when the PIS signal is detected, the process advances to step 5148. When the value of counter CNT462 is positive or zero, that is, when no PIS signal is detected, the process advances to step 5150.

ステップ5148は、PIS信号受信と判断し、電話モ
ードへ移行することを表している。
Step 5148 represents determining that a PIS signal has been received and transitioning to telephone mode.

ステップ5150においては、タイマーT1がタイムオ
ーバーしたか否かが判断される。タイマーT1がタイム
オーバーすると、ステップ5154に進む。タイマーT
Iがタイムオーバーしていないときには、ステップ51
52に進む。
In step 5150, it is determined whether timer T1 has timed out. When the timer T1 times out, the process advances to step 5154. Timer T
If I has not timed out, step 51
Proceed to step 52.

ステップ5152においては、タイマーT4がタイムオ
ーバーしたか否かが判断される。タイマーT4がタイム
オーバーすると、ステップ598に進む。タイマーT4
がタイムオーバーしていないときには、ステップ512
4に進む。
In step 5152, it is determined whether timer T4 has timed out. When the timer T4 times out, the process proceeds to step 598. Timer T4
has not timed out, step 512
Proceed to step 4.

ステップ5154においては、DCN(切断コマンド)
信号を送出する。具体的には、償是鴻14aにパルスが
発生する毎にバイトデータな信号線38bに送出するこ
とにより、DCN信号を送出する。最後のフラグは1つ
とする。
In step 5154, the DCN (disconnect command)
Send a signal. Specifically, the DCN signal is sent by sending byte data to the signal line 38b every time a pulse is generated in the compensation signal 14a. The last flag is one.

ステップ5156においては、電話回線を電話機側に接
続する。具体的には、信号線38aに信号レベル「1」
の信号を出力する。
In step 5156, the telephone line is connected to the telephone side. Specifically, the signal level "1" is applied to the signal line 38a.
Outputs the signal.

ステップ5158は、オフ状態を表している。Step 5158 represents an off state.

ステップ516Qにおいては、エコータイマーECII
TIMがタイムオーバーしたか否か、すなわち、(GI
2)  −NSF −C5I−DIS信号の送出後、6
00m5が経過したか否かが判断される。エコータイマ
ーECIITTMがタイムオーバーした場合、すなわち
、(GI2)  −NSF −(:5I−DIS信号の
送出後、600m5が経過している場合は、ステップ5
162に進み、バイナリ信号の受信を行う。他方、エコ
ータイマーECHTIMがタイムオーバーしていない場
合、すなわち、(GI2)  ・NSF −C5I  
−DIS信号の送出後、600m5が経過していない場
合は、ステップ5126に進み、トーナル信号の受信を
行う。これは、自機が信号を送出し、相手機から送出さ
れる信号の受信を行う際、トーナル信号の受信は直ちに
開始し、バイナリ−信号の受信は、ある一定時間経過後
に開始することを示している。これは、本実施例特有の
部分である。これにより、600m5以下のエコーに対
しては、誤動作は全く生じなくなる。
In step 516Q, the echo timer ECII
Whether TIM has timed out or not, i.e. (GI
2) After sending the -NSF-C5I-DIS signal, 6
It is determined whether or not 00m5 has elapsed. If the echo timer ECIITTM times out, that is, if 600 m5 has elapsed after sending the (GI2) -NSF -(:5I-DIS signal, step 5
The process proceeds to step 162, where a binary signal is received. On the other hand, if the echo timer ECHTIM has not timed out, i.e. (GI2) - NSF-C5I
- If 600 m5 has not elapsed since the sending of the DIS signal, the process proceeds to step 5126 and a tonal signal is received. This indicates that when your own aircraft sends a signal and receives a signal sent from the other machine, reception of tonal signals begins immediately, and reception of binary signals begins after a certain period of time has elapsed. ing. This is a part unique to this embodiment. As a result, no malfunction will occur for echoes of 600 m5 or less.

ステップ5162においては、受信したバイナリデータ
(すなわち、信号線28bのデータ)を、メモリ口IR
C2に格納する。
In step 5162, the received binary data (that is, the data on signal line 28b) is transferred to the memory port IR.
Store in C2.

ステップ5164においては、受信したバイナリデータ
(8ビツト)カウントするためのカウンタ81TCT1
に8をセットする。
In step 5164, a counter 81TCT1 is used to count the received binary data (8 bits).
Set 8 to .

ステップ5166においては、メモリBIRCOの値が
7E)!(すなわち、フラグパターン)であるか否かが
判断される。メモリBIR(:Oの値が7EH(すなわ
ち、フラグパターン)である時は、ステップ5168に
進む。メモリBIRf[の値がや7El((すなわち、
フラグパターン)でない時は、ステップ5174に進む
In step 5166, the value of memory BIRCO is 7E)! (that is, a flag pattern). When the value of memory BIR(:O is 7EH (i.e., flag pattern), the process advances to step 5168. If the value of memory BIRf[ is 7E1((i.e.,
flag pattern), the process advances to step 5174.

ステップ5168においては、フラグFLGIDTが0
であるか否かが判断される。フラグFLGIDTが0の
時、すなわち、2バイトの連続した7EH(フラグパ、
ターン)を検出していない時は、ステップ5170に進
む。フラグFLGIDTが0でない時、すなわち、2バ
イトの連続した7E++(フラグパターン)を検出して
いる時は、ステップ5taoに進む。
In step 5168, the flag FLGIDT is set to 0.
It is determined whether or not. When flag FLGIDT is 0, that is, 2 consecutive bytes of 7EH (flag pa,
If no turn has been detected, the process advances to step 5170. When the flag FLGIDT is not 0, that is, when two consecutive bytes of 7E++ (flag pattern) are detected, the process advances to step 5tao.

ステップ5170においては、メモリBIRCIの値が
7 El+ (すなわち、フラグパターン)であるか否
かが判断される。メモリBIItCIの値が7El((
すなわち、フラグパターン)である時は、ステップ51
72に進む。メモリBIRCIの値が7EH(すなわち
、フラグパターン)でない時は、ステップ5174に進
む。
In step 5170, it is determined whether the value of memory BIRCI is 7 El+ (ie, flag pattern). The value of memory BIItCI is 7El ((
That is, if the pattern is a flag pattern), step 51
Proceed to step 72. If the value of memory BIRCI is not 7EH (ie, flag pattern), the process advances to step 5174.

ステップ5172においては、2バイトの連続した76
11(フラグ)パターンを検出したので、フラグFLG
IDTに「1」をセットする。
In step 5172, two consecutive 76
11 (flag) pattern was detected, flag FLG
Set IDT to "1".

ステップ5174においては、カウンタ[1ITCTl
が「0」であるか否か、すなわち、ステップ5162で
入力したバイトデータのチェックがすべて完了したか否
かが判断される。カウンタBITCTIが「o」の時、
すなわち、ステップ5162で人力したバイトデータの
チェックがすべて完了した時は、ステップ5IB4ニ進
む。他方、カウンタ[1ITCT1が「o」でない時、
すなわち、ステップ5162で入力したバイトデータの
チェックがすべて完了していない時は、5176に進む
In step 5174, the counter [1ITCTl
It is determined whether or not is "0", that is, whether or not all of the byte data input in step 5162 has been checked. When counter BITCTI is "o",
That is, when all of the manual byte data checks are completed in step 5162, the process advances to step 5IB4. On the other hand, when the counter [1ITCT1 is not "o",
That is, if all of the input byte data has not been checked in step 5162, the process advances to 5176.

ステップ5176ニおいては、メモリBIRC2,BI
RCI 。
In step 5176, the memories BIRC2, BI
R.C.I.

BIR(:0のデータを1ビツトずつ右へ移動する。こ
の様子は、第6図に図示されている。
BIR(:0 data is moved to the right one bit at a time. This situation is illustrated in FIG. 6.

ステップ5178においては、カウンタBITCTIの
値を1だけ減じる。
In step 5178, the value of counter BITCTI is decremented by one.

ステップ5180においては、メモリBIRC1の値が
7εH(すなわち、フラグパターン)であるか否かが判
断される。メモリBIRCIの値が7E)I(すなわち
、フラグパターン)である時は、フラグパターンが連続
しているものと判断し、ステップ5174に進む。メモ
リBTRCIの値が7EH(すなわち、フラグパターン
)でない時は、プリアンプルの送出が終了したものと判
断し、ステップ5182に進む。
In step 5180, it is determined whether the value of memory BIRC1 is 7εH (ie, flag pattern). When the value of the memory BIRCI is 7E)I (ie, flag pattern), it is determined that the flag pattern is continuous, and the process advances to step 5174. If the value of the memory BTRCI is not 7EH (ie, flag pattern), it is determined that the transmission of the preamble has ended, and the process proceeds to step 5182.

ステップ5182においては、プリアンプルの最後のフ
ラグを検出したことを表わすフラグFLGDETに「1
」をセットする。
In step 5182, the flag FLGDET indicating that the last flag of the preamble has been detected is set to "1".
”.

ステップ5184においては、フラグFLGDETが「
0」であるか否か、すなわち、プリアンプルの最後のフ
ラグを検出しているか否かが判断される。フラグFLG
DETが「O」である時、すなわち、プリアンプルの最
後のフラグを検出していない時は、ステップ5126に
進む。他方、フラグFLGDETがrl」である時、す
なわち、プリアンプルの最後のフラグを検出している時
は、ステップ5186に進む。
In step 5184, the flag FLGDET is set to “
0'', that is, whether or not the last flag of the preamble has been detected. flag FLG
When DET is "O", that is, when the last flag of the preamble has not been detected, the process advances to step 5126. On the other hand, when the flag FLGDET is "rl", that is, when the last flag of the preamble is detected, the process advances to step 5186.

ステップ5186に進む場合は、2バイト以上の連続し
たフラグパターンを検出し、その後、フラグパターン以
外のパターンを検出した場合である。
The process proceeds to step 5186 if a continuous flag pattern of 2 bytes or more is detected, and then a pattern other than the flag pattern is detected.

ここで、自機が送出するバイナリ信号の最終部分のフラ
グは1つである。このため、自機の送出したバイナリ信
号の最終部分のフラグを検出して、ステップ5186に
進むことはない。
Here, the final part of the binary signal sent by the machine itself has one flag. Therefore, the flag of the final part of the binary signal sent by the own machine is not detected and the process does not proceed to step 5186.

ステップ5186においては、バイナリ信号の受信を行
う。すなわち、300b/sのバイトクロック(信号線
28aのバイトクロツタ)が発生する毎に、バイトデー
タを入力し、0デリートおよびFC5を演算しながら、
バイトデータをメモリに書き込む。
In step 5186, a binary signal is received. That is, every time a 300 b/s byte clock (byte clock of signal line 28a) is generated, byte data is input, and while calculating 0 delete and FC5,
Write byte data to memory.

受信したバイト数は、カウンタCNTBYTに示される
。ここで、バイナ 信号の受信中にタイマーT1がタイ
ムオーバーした時は、DCN (切断コマンド)信号を
送出し、その後、電話回線を電話機側へ接続し、OFF
となる。また、最終部分のフラグを検出した時は、ステ
ップ5188に進む。バイナリ信号を受信中に、20.
0 ms連続してCD(キャリアディテクト)が「0」
であることを検出した場合は、ステップ5108に進む
。更に、1フレームのバイト数(CNTBYT)が12
8を越えた場合も、ステップ5108に進む。これは、
本実施例特有の機能である。ここでは、カウンタBIT
CTI等の制御も行う。
The number of bytes received is indicated in counter CNTBYT. Here, when timer T1 times out while receiving a binary signal, a DCN (disconnection command) signal is sent, and then the telephone line is connected to the telephone side and turned off.
becomes. Further, when the flag of the final portion is detected, the process advances to step 5188. While receiving a binary signal, 20.
CD (carrier detect) is “0” continuously for 0 ms
If detected, the process advances to step 5108. Furthermore, the number of bytes in one frame (CNTBYT) is 12.
If the number exceeds 8, the process also proceeds to step 5108. this is,
This is a function unique to this embodiment. Here, the counter BIT
It also controls CTI, etc.

ステップ5188においては、いま、受信したフレーム
のバイト数(CNTBYT)が5未満であるか否かが判
断される。いま、受信したフレームのバイト数が5未満
の時は、ステップ5108に進む。またいま、受信した
フレームのバイト数が5以上の時は、ステップ5190
に進む。ここで、正しくバイナリ信号を受信した時のバ
イト数は少なくとも5バイト(アドレス、制御、ファク
シミリ制御、ファクシミリ情報フィールド、フレームチ
ェックシーケンス2バイト)である。
In step 5188, it is determined whether the number of bytes (CNTBYT) of the currently received frame is less than five. If the number of bytes in the received frame is less than 5, the process advances to step 5108. Also, if the number of bytes of the received frame is 5 or more, step 5190
Proceed to. Here, the number of bytes when correctly receiving the binary signal is at least 5 bytes (address, control, facsimile control, facsimile information field, frame check sequence 2 bytes).

ステップ5190においては、フレームチェックシーケ
ンスが正しいか否かが判断される。フレームチェックシ
ーケンスが正しい時は、ステップ5192に進む。フレ
ームチェックシーケンスが誤っている時は、ステップ5
108に進む。
In step 5190, it is determined whether the frame check sequence is correct. If the frame check sequence is correct, proceed to step 5192. If the frame check sequence is incorrect, step 5
Proceed to step 108.

ステップ5192においては、受信したバイナリ信号の
ファクシミリ情報フィールドの解析を行う。
In step 5192, the facsimile information field of the received binary signal is analyzed.

ステップ5194においては、いま受信したバイナリ−
データがCRP (コマンド再送要求)信号であるかが
判断される。いま受信したバイナリデータが(HP信号
である時は、ステップ5210に進む。また、いま受信
したバイナリデータがCRP信号でない時は、ステップ
5196に進む。
In step 5194, the binary code just received is
It is determined whether the data is a CRP (command retransmission request) signal. If the binary data just received is an HP signal, the process advances to step 5210. If the binary data just received is not a CRP signal, the process advances to step 5196.

ステップ5196においては、いま受信したフレームが
ラストフレームであるか否かが判断される。
In step 5196, it is determined whether the currently received frame is the last frame.

今、受信したフレームがラストフレームである時は、ス
テップ5198に進む。また、いま受信したフレームが
ラストフレームでない時は、ステップ5206に進む。
If the currently received frame is the last frame, the process advances to step 5198. Further, if the currently received frame is not the last frame, the process advances to step 5206.

ステップ5198においては、いま受信したバイナリ信
号は、直前に送出したバイナリ信号と同じであるか否か
が判断される。いま受信したバイナリ信号が、直前に送
出したバイナリ信号と同じである場合は、ステップ52
00に進む。また、いま受信したバイナリ信号が直前に
送出したバイナリ信号と違う場合は、ステップ5212
に進む。
In step 5198, it is determined whether the currently received binary signal is the same as the previously sent binary signal. If the binary signal just received is the same as the previously sent binary signal, step 52
Go to 00. Further, if the binary signal just received is different from the binary signal sent immediately before, step 5212
Proceed to.

ステップ5200においては、いま受信したバイナリ信
号は、015(デジタル識別信号)信号であるかが判断
される。また、いま受信したバイナリ信号がOXS信号
である時は、ステップ5202に進む。また、いま受信
したバイナリ信号がDIS信号でない時は、エコーと判
断し、ステップ5108に進む。
In step 5200, it is determined whether the binary signal just received is a 015 (digital identification signal) signal. Further, if the binary signal just received is an OXS signal, the process advances to step 5202. Furthermore, if the binary signal just received is not a DIS signal, it is determined to be an echo and the process proceeds to step 5108.

ステップ5202においては、自動着信であるか否かが
判断される。自動着信でない時は、ステップ5204に
進む。自動着信である時は、015グループの信号を検
出しても意味のない信号であるので、ステップ5108
に進む。
In step 5202, it is determined whether or not the call is automatically received. If the call is not automatically received, the process advances to step 5204. When the call is automatically received, detecting the 015 group signal is meaningless, so step 5108
Proceed to.

ステップ5204においては、直前に送出したバイナリ
信号と、いま受信したバイナリ信号のPIF(ファクシ
ミリ情報フィールド)が同じであるか否かが判断される
。直前に送出したバイナリ信号と、いま受信したバイナ
リ信号のPIFが違う場合は、ステップ5212に進む
。また直前に送出したバイナリ−信号と、いま受信した
バイナリ信号のPIFが同じ場合は、エコーと判断し、
ステップ5108に進む。
In step 5204, it is determined whether the PIF (facsimile information field) of the binary signal sent just before and the binary signal just received are the same. If the PIF of the binary signal sent just before and the binary signal just received are different, the process advances to step 5212. Also, if the PIF of the binary signal sent just before and the binary signal just received are the same, it is judged as an echo,
Proceed to step 5108.

ステップ5198ないし、ステップ5204は、エコー
に対する対策である。これは、本実施例特有の機能であ
る。
Steps 5198 to 5204 are measures against echo. This is a feature unique to this embodiment.

ステップ5206においては、フラグFLGDETに「
O」をセットする。
In step 5206, the flag FLGDET is set to “
Set "O".

ステップ5208においては、フラグ(:NTBYTに
「0」をセットする。
In step 5208, the flag (:NTBYT is set to "0".

ステップ5210においては、後述するステップ521
2ないしステップ5240ニ示すV21信号ノCD=。
In step 5210, step 521 to be described later
2 to step 5240 indicates V21 signal CD=.

を確認した後、ステップ598に進む。After confirming, the process advances to step 598.

ステップ5212においては、タイマーT2に10秒を
セットする。
In step 5212, timer T2 is set to 10 seconds.

ステップ5214においては、メモリBIRCOが7E
H(フラグパターン)であるか否かが判断される。メモ
リBIRCOが72)I(フラグパターン)である時は
、ステップ52+6に進む。また、メモリBIIIに0
が7εI+(フラグパターン)でない時は、ステップ5
218に進む。
In step 5214, memory BIRCO is 7E
It is determined whether the pattern is H (flag pattern). When the memory BIRCO is 72)I (flag pattern), the process advances to step 52+6. Also, 0 is added to memory BIII.
is not 7εI+ (flag pattern), step 5
Proceed to 218.

ステップ521Bにおいては、メモリBIRCIが7E
l((フラグパターン)であるか否かが判断される。メ
モリBIR[:1が7EIl(フラグパターン)である
時は、フラグ信号が連続しているものと判断し、ステッ
プ5218に進む。また、メモリnz6ctが7EH(
フラグパターン)でない(メモリBIRCOは7EH(
フラグパターン)である時は、クローズドフラグを検出
したものと判断し、ステップ5236に進む。
In step 521B, memory BIRCI is 7E.
1 ((flag pattern)). If the memory BIR[:1 is 7EIl (flag pattern), it is determined that the flag signals are continuous, and the process advances to step 5218. , memory nz6ct is 7EH (
flag pattern) (memory BIRCO is 7EH (
flag pattern), it is determined that a closed flag has been detected, and the process advances to step 5236.

ステップ5218においては、カウンタBTTCTIが
「0」であるか否かが判断される。カウンタBITCT
Iが「0」である時は、ステップ5224に進む。また
、カウンタBIT(:TIが「0」でない時は、ステッ
プ5220に進む。
In step 5218, it is determined whether the counter BTTCTI is "0". Counter BITCT
When I is "0", the process advances to step 5224. Further, if the counter BIT(:TI is not "0"), the process advances to step 5220.

ステップ5220ニおイテは、メモリIIIRC2,B
IRCI。
In step 5220, memory IIIRC2,B
I.R.C.I.

BInCOのデータを1ビツトずつ右へ8勅する。Move the BInCO data one bit at a time to the right.

ステップ5222においては、カウンタBITCTIの
値を1だけ減じる。
In step 5222, the value of counter BITCTI is decremented by one.

ステップ5224においては、タイマーT2がタイムオ
ーバーしたか否かが判断される。タイマーT2がタイム
オーバーした時は、ステップ5232に進む。
In step 5224, it is determined whether timer T2 has timed out. When timer T2 times out, the process advances to step 5232.

他方、タイマーT2がタイムオーバーしていない時は、
ステップ5226に進む。
On the other hand, when timer T2 has not timed out,
Proceed to step 5226.

ステップ5226においては、300b/Sのバイトク
ロックが発生したか否か、すなわち、信号線28aにク
ロックが発生したか否かが判断される。
In step 5226, it is determined whether a byte clock of 300b/s has been generated, that is, whether a clock has been generated on the signal line 28a.

300 b/sのバイトクロックが発生した時、すなわ
ち、信号線28aにクロックが発生した時は、ス・テッ
プ5228に進む。また、300b/Sのバイトクロッ
クが発生していない時、すなわち、信号線28aにクロ
ックが発生していない時は、ステップ5224に皿む。
When a 300 b/s byte clock is generated, that is, when a clock is generated on signal line 28a, the process advances to step 5228. Further, when a byte clock of 300b/s is not generated, that is, when a clock is not generated on the signal line 28a, the process proceeds to step 5224.

ステップ5228においては、受信したバイナリデータ
(信号線28bに出力されているデータ)をメモリBI
RC2に格納する。
In step 5228, the received binary data (data output to the signal line 28b) is transferred to the memory BI.
Store in RC2.

ステップ5230においては、カウンタBIT(:Tl
に8をセットする。
In step 5230, counter BIT(:Tl
Set 8 to .

ステップ5232においては、電話回線を電話機側に接
続する。具体的には、信号線38aに信号レベル「0」
の信号を出力する。
In step 5232, the telephone line is connected to the telephone set. Specifically, the signal level "0" is applied to the signal line 38a.
Outputs the signal.

ステップ5234は、エラーを表している。Step 5234 represents an error.

ステップ5236においては、タイマーT2に1秒をセ
ットする。
In step 5236, timer T2 is set to 1 second.

ステップ5238においては、200m5間連続してS
ED(Signal Energy Detect)が
「o」であることを検出したか否かが判断される。この
SEDが「0」であるか「1」であるかは、信号線36
aの信号を人力して判断する。200m5間連続してS
EDが「0」であることを検出した時は、ステップ52
42に進む。また、200m5間連続してSEDが「0
」であることを検出していない時は、ステップ5240
に進む。
In step 5238, the S
It is determined whether ED (Signal Energy Detect) has detected that it is "o". Whether this SED is “0” or “1” is determined by the signal line 36.
The signal of a is judged manually. S continuously for 200m5
When it is detected that ED is "0", step 52
Proceed to step 42. In addition, the SED was “0” for 200 m5 consecutively.
”, step 5240
Proceed to.

ステップ5240においては、タイマーT2がタイムオ
ーバーしたか否かが判断される。タイマーT2がタイム
オーバした時は、ステップ5242に進む。他方、タイ
マーT2がタイムオーバーしていない時は、ステップ5
238に進む。
In step 5240, it is determined whether timer T2 has timed out. When timer T2 times out, the process advances to step 5242. On the other hand, if timer T2 has not timed out, step 5
Proceed to 238.

ステップ5212ないしステップ5240は、本実施例
特有の機能を示している。
Steps 5212 to 5240 indicate functions unique to this embodiment.

ステップ5242は、300b/sのバイナリ信号の受
信が終了し、受信した信号に基づいて次の動作へ進むこ
とを表している。
Step 5242 indicates that the reception of the 300 b/s binary signal is completed and the process proceeds to the next operation based on the received signal.

上述した第5図において、300b/sのバイトクロ・
ンクが発生した時(ステップ5124で判断する)は、
300b/sの解析へ向かう。そして、300b/sの
解析において、バイナリ信号の受信と判断されない時は
、ステップ5126に進む。
In Fig. 5 mentioned above, 300 b/s bytechrome
When a link occurs (determined in step 5124),
Heading to the analysis of 300b/s. In the analysis of 300 b/s, if it is not determined that a binary signal has been received, the process advances to step 5126.

更に、トーナル信号の1周期の解析が終了した時(ステ
ップS1:lOで判断)は、トーナル信号の解折へ進む
。そして、トーナル信号の解析において、トーナル信号
の受信と判断されない時は、ステップ5124に進む。
Furthermore, when the analysis of one period of the tonal signal is completed (determined in step S1: IO), the process proceeds to the analysis of the tonal signal. In the analysis of the tonal signal, if it is determined that no tonal signal has been received, the process advances to step 5124.

このように、トーナル信号とバイナリ信号を同時に受信
する必要がある時、受信したすべての信号を見落すこと
なく、常にトーナル信号およびバイナリ信号の受信を行
うことが可能になる。これは、本実施例特有の機能であ
る。
In this way, when it is necessary to receive tonal and binary signals simultaneously, it is possible to always receive tonal and binary signals without overlooking all the received signals. This is a feature unique to this embodiment.

次に、既述の制御■について、第7図に示すフローチャ
ートを参照して説明する。
Next, the above-mentioned control (2) will be explained with reference to the flowchart shown in FIG.

第7図において、ステップ5250は、画像送信側の処
理を表している。
In FIG. 7, step 5250 represents processing on the image sending side.

ステップ5252においては、タイマーTIに35秒を
セットする。
In step 5252, timer TI is set to 35 seconds.

ステップ5254に:おいては、C(:ITT勧告V2
1のバイナリ信号を受信したか否かが判断される。
In step 5254: C(:ITT Recommendation V2
It is determined whether or not a binary signal of 1 has been received.

CCITT勧告V2勧告式21リ信号を受信した場合は
、ステップ5256ニ進む。また、CCITT勧告V2
勧告式21リ信号を受信していない場合には、ステップ
5)58に進む。
If the CCITT Recommendation V2 Recommendation 21 Recommendation signal is received, the process proceeds to step 5256. Also, CCITT Recommendation V2
If the recommendation type 21 signal has not been received, the process proceeds to step 5)58.

ステップ5256は、G3モードのバイナリ手順に移行
することを表している。
Step 5256 represents transition to G3 mode binary procedure.

ステップ5258においては、GI2信号を検出したか
否かが判断される。GI2信号を検出したときには、ス
テップ5260に進む。他方、GI2信号を検出してい
ないときには、ステップ5262に進む。
In step 5258, it is determined whether the GI2 signal is detected. When the GI2 signal is detected, the process advances to step 5260. On the other hand, if the GI2 signal is not detected, the process advances to step 5262.

ステップ5260は、トーナル手順に移行することを表
している。本実施例によるファクシミリ装置は、(:C
ITT勧告G2.G3 i能を有する場合を想定してい
るので、トーナル信号としては、GI2信号の受信を行
う必要がある。
Step 5260 represents transition to a tonal procedure. The facsimile device according to this embodiment is (:C
ITT Recommendation G2. Since it is assumed that the device has G3 i capability, it is necessary to receive the GI2 signal as the tonal signal.

ステップ5262においては、タイマー′「lがタイム
オーバーしたか否かが判断される。タイマーTlがタイ
ムオーバーしたときには、ステップ5264に進む。ま
た、タイマーrtがタイムオーバーしていないときには
、ステップ5254に進む。
In step 5262, it is determined whether or not the timer 'l has timed out. If the timer Tl has timed out, the process proceeds to step 5264. If the timer rt has not timed out, the process proceeds to step 5254.

ステップ5264は、回線切断を表している。Step 5264 represents line disconnection.

上述した第7図示の概略フローチャートにおいては、本
実施例特有の機能は示されていない。そこで、第8図(
1)〜(4)に示す詳細なフローチャートを参照して、
本実施例の制御手順を述べる。
In the above-described schematic flowchart shown in FIG. 7, functions unique to this embodiment are not shown. Therefore, Figure 8 (
Referring to the detailed flowcharts shown in 1) to (4),
The control procedure of this embodiment will be described.

第8図において、ステップ5270は、画像送信側の処
理を表している。
In FIG. 8, step 5270 represents processing on the image sending side.

ステップ5272においていは、電話回線をファクシミ
リ装置側に接続する。具体的には、信号線38aに信号
レベル「1」の信号を出力する。
In step 5272, the telephone line is connected to the facsimile machine. Specifically, a signal of signal level "1" is output to the signal line 38a.

ステップ5274においては、タイマーTlに35秒を
セットする。
In step 5274, the timer Tl is set to 35 seconds.

ステップ5276においては、GT2信号を何回検出し
たかをカウントするためのカウンタGI2DETに[0
」をセットする。
In step 5276, a counter GI2DET for counting the number of times the GT2 signal is detected is set to [0
”.

ステップ5278においては、受信したデータを格納す
るエリアBIRCOに00)1をセットする。
In step 5278, 00)1 is set in the area BIRCO for storing the received data.

ステップ5280においては、受信したデータを格納す
るエリア8111(:lにOOHをセットする。
In step 5280, OOH is set in area 8111 (:l) for storing the received data.

ステップ5282においては、2バイト連続した7EH
(フラグパターン)を検出した時「1」にセットされる
フラグFLGIDTに「0」をセットする。
In step 5282, two consecutive bytes of 7EH
The flag FLGIDT, which is set to "1" when the (flag pattern) is detected, is set to "0".

ステップ5284においては、フラグFLGDETに「
0」をセットする。
In step 5284, the flag FLGDET is set to “
0”.

ステップ5286においては、1つのフレームを受信し
ている時のバイト数をカウントするためのカウンタCN
TBYTに「0」をセットする。
In step 5286, a counter CN is set for counting the number of bytes when receiving one frame.
Set TBYT to “0”.

ステップ5288においては、1周期の信号の周波数を
解析した際、1850Hzであったと判断されることが
463回あった場合には、1つのGI2信号を検出した
ものと判断する。
In step 5288, when the frequency of one period of the signal is analyzed and it is determined that it is 1850 Hz 463 times, it is determined that one GI2 signal has been detected.

この463回をカウントするのに使用するカウンタ[:
NT185に463をセットする。2周期に1回、周波
数の解析を行うことが可能であるのて、こ185011
zを検出することに対応する。
The counter used to count these 463 times [:
Set 463 to NT185. It is possible to analyze the frequency once every two cycles, so this 185011
Corresponds to detecting z.

ステップS 29 ’0においては、300b/sのバ
イトクロックが発生したか否かが判断される。具体的に
は、信号線28aにクロックが発生したか否かが判断さ
れる。300b/sのバイトクロツタが発生すると、す
なわち、信号線28aにクロックが発生すると、ステッ
プ5332に進む。他方、300b/sのバイトクロツ
タが発生していないとき、すなわち、信号線28aにク
ロックが発生していないときには、ステップ5292に
進む。
In step S29'0, it is determined whether a 300 b/s byte clock has been generated. Specifically, it is determined whether a clock is generated on the signal line 28a. When a byte clock of 300 b/s occurs, that is, when a clock is generated on the signal line 28a, the process advances to step 5332. On the other hand, if the 300 b/s byte clock is not occurring, that is, if no clock is being generated on the signal line 28a, the process advances to step 5292.

ステップ5292においては、Ft、GIDTが「0」
であるか否か、すなわち、2バイトの連続したフラグパ
ターン(7EH)が検出されているか否かが判断される
。FLGIDTが「0」の時、すなわち、2バイトの連
続したフラグパターン(7E)l)を検出していない時
は、ステップ5294に進む。またFLGIDTが「1
」の時、すなわち、2バイトの連続したフラグパターン
(7EH)を検出している時は、ステップ5306に進
み、トーナル信号の解析は行わない。
In step 5292, Ft and GIDT are "0"
It is determined whether or not, that is, whether or not a continuous 2-byte flag pattern (7EH) is detected. When FLGIDT is "0", that is, when a 2-byte continuous flag pattern (7E)l) is not detected, the process advances to step 5294. Also, FLGIDT is “1
'', that is, when a continuous 2-byte flag pattern (7EH) is detected, the process advances to step 5306 and the tonal signal is not analyzed.

ステップ5294においては、SED(Signal 
EnergyDetect)が「1」であるか否か、す
なわち、信号線36aが信号レベル「1」であるか否か
が判断される。このSEDが「1」である時、すなわち
、信号線36aが信号レベル「1」である時は、ステッ
プ5296に進み、トーナル信号の解析へ進む。他方、
SEDが「0」である時、すなわち、信号線36aが信
号レベル「0」である時は、ステップ5306に進み、
トーナル信号の解析は行わない。
In step 5294, SED (Signal
It is determined whether or not EnergyDetect) is "1", that is, whether the signal level of the signal line 36a is "1". When this SED is "1", that is, when the signal line 36a is at the signal level "1", the process advances to step 5296 to analyze the tonal signal. On the other hand,
When SED is "0", that is, when the signal line 36a is at the signal level "0", the process advances to step 5306;
Tonal signal analysis is not performed.

上記のステップ5292および5294は、本実施特有
の機能である。
Steps 5292 and 5294 above are features specific to this implementation.

ステップ5296においては、トーナル信号の1周期の
解析が終了したか否か、すなわち、信号線34aにパル
スが発生したか否かが判断される。
In step 5296, it is determined whether the analysis of one period of the tonal signal has been completed, that is, whether a pulse has occurred on the signal line 34a.

トーナル信号の1周期の解析が終了すると、すなわち、
信号線34のパルスが発生すると、ステップ5298に
進む。他方、トーナル信号の1周期の解析が終了してい
ないとき、すなわち、信号線34aにパルスが発生して
いないときには、ステップ5306に進む。
When the analysis of one period of the tonal signal is completed, that is,
When a pulse on signal line 34 occurs, the process proceeds to step 5298. On the other hand, if the analysis of one period of the tonal signal has not been completed, that is, if no pulse is generated on the signal line 34a, the process advances to step 5306.

ステップ5298においては、トーナルデータ(すなわ
ち、信号線34bの信号)を入力する。
In step 5298, tonal data (ie, the signal on signal line 34b) is input.

ステップ5300においては、いま受信した1周期の信
号が1850Hzであるか否かが判断される。いま受信
した1周期の信号が1850112である時は、ステッ
プ5302に進む。いま受信した1周期の信号が185
011zでない時は、ステップ5306に進む。
In step 5300, it is determined whether the currently received one-cycle signal is 1850 Hz. If the signal of one period just received is 1850112, the process advances to step 5302. The signal of one period just received is 185
If it is not 011z, the process advances to step 5306.

ステップ5302においては、カウンタCNT185の
値が負であるか否か、すなわち、1850)1zの信号
を合計0.5秒以上検出したか否かが判断される。カウ
ンタCNT185の値が負である時、すなわち、185
0Hzの信号を合計0.5秒以上にわたって検出した時
は、ステップ5306に進む。またカウンタCNT18
5の値が正または雫である時、すなわち、11150H
2の信号を合計0.5秒以上検出していない時は、ステ
ップ5304に進む。
In step 5302, it is determined whether the value of the counter CNT185 is negative, that is, whether the signal of 1850)1z has been detected for a total of 0.5 seconds or more. When the value of counter CNT185 is negative, that is, 185
When a 0 Hz signal is detected for a total of 0.5 seconds or more, the process advances to step 5306. Also counter CNT18
When the value of 5 is positive or drop, that is, 11150H
If the signal No. 2 is not detected for a total of 0.5 seconds or more, the process advances to step 5304.

ステップ5304においては、カウンタCNT185の
値を1だけデクリメントする。
In step 5304, the value of counter CNT185 is decremented by one.

ステップ5306においては、200m5以上の連続し
た5ED=Oを検出したか否かが判断される。ここでは
、バックグランドノイズ等があった場合も、信号のラン
ダム性をチェックし、信号断を判断する。
In step 5306, it is determined whether or not consecutive 5ED=O of 200 m5 or more have been detected. Here, even if there is background noise, the randomness of the signal is checked to determine if the signal is disconnected.

20Qms以上の連続した信号断を検出した場合は、ス
テップ5308に進む。また200m5以上の連続した
信号断を検出していない場合は、ステップ5326に進
む。
If continuous signal interruption of 20Qms or more is detected, the process advances to step 5308. Further, if a continuous signal disconnection of 200 m5 or more is not detected, the process advances to step 5326.

ステップ5308においては、カウンタ[:NT185
の値が負であるか否か、すなわち、1850Hzの信号
を合計0.5秒以上検出したか否かが判断される。カウ
ンタCNT185の値が負である時、すなわち1850
1Jzの信号を合計0.5秒以上検出した時は、ステッ
プ5310に進む。カウンタCNT185の値が正また
はτである時、すなわち、1851Ezの信号を合計0
.5秒以上検出していない時は、ステップ5320に進
む。
In step 5308, the counter [:NT185
It is determined whether the value of is negative, that is, whether the 1850 Hz signal has been detected for a total of 0.5 seconds or more. When the value of counter CNT185 is negative, that is, 1850
When a signal of 1 Jz is detected for a total of 0.5 seconds or more, the process advances to step 5310. When the value of counter CNT185 is positive or τ, that is, the signal of 1851Ez is summed to 0.
.. If no detection has been made for 5 seconds or more, the process advances to step 5320.

ステップ5310においては、信号断を検出し、かつ、
1850Hzの信号を合計して0.5秒以上検出してい
るので、GI2CNTを1だけ、インクリメントする。
In step 5310, a signal disconnection is detected, and
Since the total signal of 1850 Hz has been detected for more than 0.5 seconds, GI2CNT is incremented by 1.

ステップ5312においては、FLGIDTが「0」で
あるか否かが判断される。ここで、FLGIDTが「0
」である時は、ステップ5314に進む。他方、FLG
IDTがrQJでない時は、ステップ531Bに進む。
In step 5312, it is determined whether FLGIDT is "0". Here, FLGIDT is “0
”, the process advances to step 5314. On the other hand, FLG
If IDT is not rQJ, the process advances to step 531B.

ステップ5314においては、カウンタG12DETが
2未満であるか否か、すなわち、GI2信号を2回未満
受信したか否かが判断される。カウンタGI2DETが
2未満である場合、すなわち、GI2信号を2回未満受
信した場合は、ステップ532Gに進む。
In step 5314, it is determined whether the counter G12DET is less than 2, that is, whether the GI2 signal has been received less than twice. If the counter GI2DET is less than 2, that is, if the GI2 signal has been received less than twice, the process proceeds to step 532G.

また、カウンタGI2DETが2以上である場合すなわ
ち、GI2信号を2回以上受信した場合は、ステップ5
316に進む。
Further, if the counter GI2DET is 2 or more, that is, if the GI2 signal is received twice or more, step 5
Proceed to 316.

ステップ5316においては、相手機が、62機である
と判断し、G2モードの伝送へ進む。
In step 5316, it is determined that the other device is 62, and the process proceeds to G2 mode transmission.

ステップ5318においては、カウンタGI2DETが
3未満であるか否か、すなわち、GI2信号を3回未満
受信したか否かが判断される。カウンタGI2DETが
3未満である場合、すなわち、GI2信号を3回未満受
信した場合は、ステップ5320に進む。他方、カウン
タGI2DETが3以上である場合、すなわち、GI2
信号を3回、受信した場合は、ステップ5316に進む
In step 5318, it is determined whether the counter GI2DET is less than 3, that is, whether the GI2 signal has been received less than three times. If the counter GI2DET is less than 3, that is, if the GI2 signal has been received less than three times, the process proceeds to step 5320. On the other hand, if the counter GI2DET is 3 or more, that is, GI2
If the signal has been received three times, proceed to step 5316.

ステップ5300ないしステップ5318は、本実施例
特有の機能である。
Steps 5300 to 5318 are functions unique to this embodiment.

ステップ5320においては、FLGIDTに「0」を
セットする。
In step 5320, FLGIDT is set to "0".

ステップ5322においては、FLGDETに「0」を
セットする。
In step 5322, FLGDET is set to "0".

ステップ5324においては、カウンタCNT185に
r483 Jをセットする。
In step 5324, counter CNT185 is set to r483J.

ステップ5326においては、タイマーT1がタイムオ
ーバーしたか否かが判断される。タイマーT1がタイム
オーバーしたときには、ステップ5328に進む。また
、タイマーT1がタイムオーバーしていないときには、
ステップ5290に進む。
In step 5326, it is determined whether timer T1 has timed out. When the timer T1 times out, the process advances to step 5328. Also, when timer T1 has not timed out,
Proceed to step 5290.

ステップ5328においては、電話回線を電話機側に接
続する。具体的には、信号線38aに信号レベル「0」
の信号を出力する。
In step 5328, the telephone line is connected to the telephone side. Specifically, the signal level "0" is applied to the signal line 38a.
Outputs the signal.

ステップ5330は、エラーを表している。Step 5330 represents an error.

ステップ5332ないしステップ5362は、第5図(
3) 、 (4)に示したステップ5182ないしステ
ップ5192に相当する。
Steps 5332 to 5362 are shown in FIG.
3) corresponds to steps 5182 to 5192 shown in (4).

上述したステップ5356およびステップ5358の判
断は、本実施例特有の機能である。
The determinations in step 5356 and step 5358 described above are functions unique to this embodiment.

ステップ5364においては、いま受信したフレームが
ラストフレームであるか否かが判断される。
In step 5364, it is determined whether the frame just received is the last frame.

いま、受信したフレームがラストフレームである時は、
ステップ5366に進む。また、いま受信したフレーム
がラストフレームでない時は、ステップ5370に進む
If the received frame is the last frame,
Proceed to step 5366. Further, if the currently received frame is not the last frame, the process advances to step 5370.

ステップ5366は、M5@(5) に示したステップ
5212ないしステップ5240に述べたキャリア断の
検出を行っている。これは、本実施例特有の効果である
Step 5366 detects carrier disconnection as described in steps 5212 to 5240 shown in M5@(5). This is an effect unique to this embodiment.

ステップ5368は、300b/sのバイナリ−信号の
受信が終了し、受信した信号に基づいて次の動作へ進む
ことを表している。
Step 5368 represents receiving the 300 b/s binary signal and proceeding to the next operation based on the received signal.

ステップ5370においては、FLGDETに「0」を
セットする。
In step 5370, FLGDET is set to "0".

ステップ5372においては、CNTBYTに「0」を
セットする。
In step 5372, CNTBYT is set to "0".

上述した第8図においては、300b/sのバイトクロ
ックが発生した時(ステップ5290で判断する) 、
300b/Sの解析へ向かう。そして、300b/Sの
解析において、バイナリ信号の受信と判断されない時は
、ステップ5292に進む。
In FIG. 8 described above, when a 300 b/s byte clock is generated (determined in step 5290),
Heading to the analysis of 300b/S. In the analysis of 300b/S, if it is not determined that a binary signal has been received, the process advances to step 5292.

更に、トーナル信号の1周期の解析が終了した時(ステ
ップ5296で判断する)は、トーナル信号の解析へ進
む。そして、トーナル信号の解析において、トーナル信
号の受信と判断されない時は、ステップ5290に進む
Furthermore, when the analysis of one cycle of the tonal signal is completed (determined in step 5296), the process proceeds to the analysis of the tonal signal. In the analysis of the tonal signal, if it is determined that no tonal signal has been received, the process advances to step 5290.

このように、トーナル信号とバイナリ信号を同時に受信
する必要がある時、受信したすべての信号を見落すこと
なく、常にトーナル信号およびバイナリ信号の受信を行
うことが可能になる。これは、本実施例特有の機能であ
る。
In this way, when it is necessary to receive tonal and binary signals simultaneously, it is possible to always receive tonal and binary signals without overlooking all the received signals. This is a feature unique to this embodiment.

なお、これまで述べた実施例においては、G2.G3機
能を有するファクシミリ装置について説明したが、その
他の通信装置においても本発明を適用し得ることは勿論
である。
Note that in the embodiments described so far, G2. Although the facsimile device having the G3 function has been described, it goes without saying that the present invention can be applied to other communication devices.

(以下、余白) [発明の効果コ 以上詳述したとおり本発明によれば、ハイレベルデータ
リンク制御手順に従ったデータのデータ長をモニタし、
そのデータ長に基づいて受信エラーの有無を判別する構
成としであるので、当該受信エラーを迅速かつ適確に把
握することができる。
(Hereinafter, blank space) [Effects of the Invention] As detailed above, according to the present invention, the data length of data according to the high-level data link control procedure is monitored,
Since the configuration is such that the presence or absence of a reception error is determined based on the data length, the reception error can be quickly and accurately grasped.

また、本発明の一実施例によれば、バイナリ信号を受信
している時、ハイレベルデータリンク制御手順に従った
データのデータ長を監視し、ある一定長(例えば128
バイト)を越えた場合には、その受信しているデータを
エラーと判断する構成としであるので、相手機から非常
に長いデータ長の信号が送られてきた場合にも、無意味
なデータを受信し続けることを避けることができる。
Further, according to an embodiment of the present invention, when receiving the binary signal, the data length of the data according to the high-level data link control procedure is monitored, and the length of the data is a certain length (for example, 128
Bytes), the received data is determined to be an error, so even if a very long data length signal is sent from the other device, meaningless data will not be sent. You can avoid continuing to receive messages.

その結果、無意味なデータを受信し続けることに起因し
て、メモリにストアされている有効なデータを破壊して
しまうといった不都合もなくすことができる。
As a result, it is possible to eliminate the inconvenience of destroying valid data stored in memory due to continued reception of meaningless data.

更に、本発明の他の実施例によれば、バイナリ信号を受
信している最中にハイレベルデータリンク制御手順に従
ったデータの終端に付されているフラグ情報を検出した
場合、当該受信データの長さがある一定長以下(例えば
5バイト未満)のときは、その受信したデータをエラー
とみなし次の動作へ進む構成としであるので、これによ
り、有効なデータを受信していない場合にも、不必要な
受信信号の解析を行うことをなくし、効率の良いデータ
通信を実現することが可能となる。
Furthermore, according to another embodiment of the present invention, when flag information attached to the end of data according to a high-level data link control procedure is detected while receiving a binary signal, the received data If the length of the received data is less than a certain length (for example, less than 5 bytes), the received data is treated as an error and the process proceeds to the next operation. Also, it is possible to eliminate unnecessary analysis of received signals and realize efficient data communication.

(以 下 余 白)(Hereafter, extra white)

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

第1図は未発り1に係るデータ受信装置の全体構成図、 :52図は本発明を適用したファクシミリ装置の一実施
例を、iζすブロック図。 第3図はトーナルカウンタを説明するための図、 第4図は画像受信側として制御回路38が実行すべき制
御手順を示す流れ図、 第5図(1)〜第5図(5〕は画像受信側として制御回
路38が実行すべき評則なffJ+御毛1111を示す
流れ図、 第6図は受信したパ・fナリデータを格納する時の動作
を示す図、 第7図は画像送信側として制御回路38が実行すべき制
御手順をボす流れ図。 第8図(1)〜7A8図(4)は画像送信側として制御
回路3Bが実行すべき詳細な:rJ+ m手m+を示す
流れ図である。 2・・・Netl  、 4・・・電話機。 6・・・ハイブリッド回路。 8・・・読取回路、 IO・・・符号化回路、 12・・−V2?terあるいはV29変;lJ器。 14・・・パラレル/ンリアルf換回路、16・・・V
21変調器、 17・・・CI2信号送出回路、 18・・・加算回路、 20・・・V27terあるいはV29復調器。 22・・・復号化回路、 24・・・記録回路、 26・・・V21復調器、 28・・・シリアル/パラレル変換回路、30・・・増
幅回路、 32・・・2値化回路。 34・・・トーナルカウンタ回路、 3B・・・信号有無検出回路。 38・・・制御回路。 憂 イ言 莱 IL (77,76kl−1z) 第3図 第6図
FIG. 1 is an overall configuration diagram of a data receiving device related to unissued data 1, and FIG. 52 is a block diagram of an embodiment of a facsimile device to which the present invention is applied. Fig. 3 is a diagram for explaining the tonal counter, Fig. 4 is a flowchart showing the control procedure to be executed by the control circuit 38 as the image receiving side, and Figs. 5 (1) to 5 (5) are image receiving A flowchart showing the regular ffJ+Mige 1111 to be executed by the control circuit 38 as a side, FIG. 6 is a diagram showing the operation when storing received par-f data, and FIG. 7 is a control circuit as an image sending side. Flowchart showing the control procedure to be executed by the circuit 38. FIGS. 8(1) to 7A8(4) are flowcharts showing detailed steps to be executed by the control circuit 3B as the image transmitting side. 2...Netl, 4...Telephone. 6...Hybrid circuit. 8...Reading circuit, IO...encoding circuit, 12...-V2?ter or V29 converter; lJ device. 14.・Parallel/N real f conversion circuit, 16...V
21 modulator, 17... CI2 signal sending circuit, 18... addition circuit, 20... V27ter or V29 demodulator. 22...Decoding circuit, 24...Recording circuit, 26...V21 demodulator, 28...Serial/parallel conversion circuit, 30...Amplification circuit, 32...Binarization circuit. 34... Tonal counter circuit, 3B... Signal presence/absence detection circuit. 38...control circuit. IL (77,76kl-1z) Figure 3 Figure 6

Claims (1)

【特許請求の範囲】 1)ハイレベルデータリンク制御手順に従ったデータ信
号を受信する装置において、 前記データ信号のデータ長をモニタする監視手段と、 前記データ長に基づいて当該受信データの誤りを判定す
る判定手段とを具備したことを特徴とするデータ信号受
信装置。 2)前記判定手段は、前記データ長が所定値を越えた場
合に当該受信データを誤りと判定するようにしたことを
特徴とする特許請求の範囲第1項記載のデータ信号受信
装置。 3)前記判定手段は、前記データ信号の終端に付して送
出されるフラグ情報を検出する手段と、前記フラグ情報
が検出されたとき前記データ長が所定値以下の場合には
当該受信データを誤りと判定する手段とを具備したこと
を特徴とする特許請求の範囲第1項記載のデータ信号受
信装置。
[Claims] 1) A device for receiving a data signal according to a high-level data link control procedure, comprising: monitoring means for monitoring the data length of the data signal; and monitoring means for detecting errors in the received data based on the data length. What is claimed is: 1. A data signal receiving device, comprising determining means for making a determination. 2) The data signal receiving apparatus according to claim 1, wherein the determining means determines that the received data is erroneous if the data length exceeds a predetermined value. 3) The determining means includes means for detecting flag information sent at the end of the data signal, and detecting the received data if the data length is less than or equal to a predetermined value when the flag information is detected. 2. The data signal receiving apparatus according to claim 1, further comprising means for determining an error.
JP61126888A 1986-05-31 1986-05-31 Data signal receiver Pending JPS62283751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61126888A JPS62283751A (en) 1986-05-31 1986-05-31 Data signal receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61126888A JPS62283751A (en) 1986-05-31 1986-05-31 Data signal receiver

Publications (1)

Publication Number Publication Date
JPS62283751A true JPS62283751A (en) 1987-12-09

Family

ID=14946335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61126888A Pending JPS62283751A (en) 1986-05-31 1986-05-31 Data signal receiver

Country Status (1)

Country Link
JP (1) JPS62283751A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08204785A (en) * 1995-01-31 1996-08-09 Nec Corp Method and device for monitoring line fault
JP2006268309A (en) * 2005-03-23 2006-10-05 Seiko Epson Corp Image forming apparatus and processing method of communication data inside thereof

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5995643A (en) * 1982-11-25 1984-06-01 Nec Corp Interruption data transfer system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5995643A (en) * 1982-11-25 1984-06-01 Nec Corp Interruption data transfer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08204785A (en) * 1995-01-31 1996-08-09 Nec Corp Method and device for monitoring line fault
JP2006268309A (en) * 2005-03-23 2006-10-05 Seiko Epson Corp Image forming apparatus and processing method of communication data inside thereof
JP4736492B2 (en) * 2005-03-23 2011-07-27 セイコーエプソン株式会社 Image forming apparatus and communication data processing method therein

Similar Documents

Publication Publication Date Title
JPS62283751A (en) Data signal receiver
US5748334A (en) Facsimile apparatus capable of performing a standard procedure and a non-standard procedure
JPH0671245B2 (en) Equipment
JPS62283770A (en) Data sink
JPH01141431A (en) Communication equipment with error re-sending function
JPS62283748A (en) Data sink
JPS62283761A (en) Data sink
JPS62283750A (en) Binary signal receiver
JPS62283771A (en) Data sink
JPS62181569A (en) Data communication equipment
JPS62181567A (en) Data communication device
JP2749821B2 (en) Facsimile machine
JPS62181568A (en) Data communication equipment
JP2641883B2 (en) Image communication device
JP2602229B2 (en) Image receiving device
JP3255153B2 (en) Voice / modem signal discriminator
JPS6028347A (en) Method and apparatus of data communication
JP3155682B2 (en) Facsimile machine
JPH0787479B2 (en) Communication method
JPH06205182A (en) Facsimile equipment
JPH01141435A (en) Data communication equipment
JPH09261446A (en) Data communication equipment
JPH03254564A (en) Data terminal equipment
JPH01141434A (en) Data communication equipment
JPS6238661A (en) Image communication equipment