JP2749821B2 - Facsimile machine - Google Patents

Facsimile machine

Info

Publication number
JP2749821B2
JP2749821B2 JP63165654A JP16565488A JP2749821B2 JP 2749821 B2 JP2749821 B2 JP 2749821B2 JP 63165654 A JP63165654 A JP 63165654A JP 16565488 A JP16565488 A JP 16565488A JP 2749821 B2 JP2749821 B2 JP 2749821B2
Authority
JP
Japan
Prior art keywords
signal
data
speed
time
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63165654A
Other languages
Japanese (ja)
Other versions
JPH0215779A (en
Inventor
武弘 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP63165654A priority Critical patent/JP2749821B2/en
Publication of JPH0215779A publication Critical patent/JPH0215779A/en
Priority to US07/817,967 priority patent/US5127013A/en
Application granted granted Critical
Publication of JP2749821B2 publication Critical patent/JP2749821B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はフアクシミリ装置、例えば誤り訂正モードを
有するフアクシミリ装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a facsimile apparatus, for example, a facsimile apparatus having an error correction mode.

〔従来の技術〕[Conventional technology]

従来のフアクシミリ装置は、ノーマルG3モードで通信
を行った場合、高速信号(画信号)のトレーニング受信
に失敗すると、それ以降の通信が不可となっていた。ま
た、高速信号(画信号)のトレーニング受信には成功
し、データを受信中にデータ乱れが発生し、RTC(Retur
n to control)信号を受信できないと、高速信号の受信
から抜けられない。そして、デコード、復号化回路にお
いて、RTCをさがしているうちにQ(MPS or EOM or EO
P)の3回再送が終了してしまい、それ以降の通信が不
可能になっていた。
In a conventional facsimile apparatus, when communication is performed in the normal G3 mode, if training reception of a high-speed signal (image signal) fails, subsequent communication is disabled. In addition, training reception of a high-speed signal (image signal) was successful, and data disorder occurred during data reception.
If a signal cannot be received, it is impossible to escape from receiving a high-speed signal. Then, in the decoding and decoding circuit, Q (MPS or EOM or EO)
The retransmission of P) was completed three times, and subsequent communication became impossible.

〔発明が解決しようとしている問題点〕[Problems to be solved by the invention]

以上説明したように、リトレーニングエラー、あるい
は高速信号のRTCがノイズの混入等によりこわされる
と、それ以降の通信が不可能になっていた。
As described above, if the retraining error or the RTC of the high-speed signal is broken due to noise or the like, the subsequent communication becomes impossible.

〔問題点を解決するための手段及び作用〕[Means and actions for solving the problems]

本発明によれば、所定量のデータを高速の伝送速度で
通信し、制御信号を低速の伝送速度で通信し、前記高速
のデータ通信と前記低速の制御信号の通信を切り換える
ファクシミリ装置において、前記高速の伝送速度でデー
タを受信するデータ受信手段と、前記低速の伝送速度で
制御信号を受信する制御信号受信手段と、第1の時間連
続して前記高速の伝送信号が検出されると、前記データ
受信手段によるデータ受信を行い、前記第1の時間連続
して前記高速の伝送信号が検出されないと、前記所定量
のデータ伝送に対応した時間、前記制御信号の受信を行
う制御手段を設け、高速信号(画信号)のリトレーニン
グに失敗しても、高速信号に続く低速の制御信号を受信
することが可能となり、又、回線品質等によりデータの
伝送速度が変わっても確実に制御信号を受信できる。
According to the present invention, in a facsimile apparatus for communicating a predetermined amount of data at a high transmission rate, communicating a control signal at a low transmission rate, and switching between the high-speed data communication and the low-speed control signal communication, Data receiving means for receiving data at a high transmission rate, control signal receiving means for receiving a control signal at the low transmission rate, and when the high-speed transmission signal is detected for a first continuous time, Data reception by the data receiving means, the control means for receiving the control signal, the time corresponding to the predetermined amount of data transmission, if the high-speed transmission signal is not detected continuously for the first time, Even if retraining of a high-speed signal (image signal) fails, a low-speed control signal following the high-speed signal can be received, and the data transmission speed changes due to line quality or the like. It can reliably receive control signals.

又、前記制御手段が、前記データ受信手段によるデー
タ受信に移行した時、第2の時間連続して前記高速の伝
送速度の信号のキャリアが検出されないと、前記データ
の通信から前記制御信号の通信への切り換えを示す信号
を受信したものと判定し、前記制御信号の受信へ移行す
るようにし、ノイズ等の影響により前記切換信号が正確
に受信できなくても、データ通信を継続することができ
る。
Further, when the control means shifts to data reception by the data reception means, if the carrier of the signal of the high transmission rate is not detected continuously for the second time, the communication of the control signal is changed to the communication of the control signal. It is determined that a signal indicating the switch to the switch has been received, and the process shifts to the reception of the control signal. Even if the switch signal cannot be accurately received due to the influence of noise or the like, data communication can be continued. .

又、前記制御手段が、前記データ受信手段によるデー
タ受信に移行した時、第3の時間以内に有効なデータが
受信されない場合、エラー処理を実行して通信を終了す
るようにしたものである。
Further, when the control means shifts to data reception by the data receiving means, if valid data is not received within a third time, error processing is executed and communication is terminated.

〔実施例〕〔Example〕

以下、図面を参照して本発明の実施例を詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

まず、本実施例の概要を説明する。 First, an outline of the present embodiment will be described.

第3図は本実施例によるHDLCフオーマツト化された高
速信号の受信において、エラーが発生しない通信シーケ
ンスの一例である。又、第4図は画信号データの構成を
示した図である。
FIG. 3 shows an example of a communication sequence in which no error occurs in receiving the HDLC-formatted high-speed signal according to the present embodiment. FIG. 4 is a diagram showing the structure of image signal data.

第3図において、受信機が100の高速画信号を受信中
にノイズ等が混入し、制御信号への復帰信号(第4図の
RCP)を受信できない時、従来は高速信号の受信から抜
けられなかった。本実施例によると少なくとも低速信号
の再送区間において、1秒以上連続したキヤリア断を検
出できるので、低速信号の受信へ向かうことが可能にな
り、2度目のPPS−NULL(101)の受信が可能になった。
そして、以降の通信が可能となる。
In FIG. 3, noise and the like are mixed while the receiver is receiving 100 high-speed image signals, and a return signal to the control signal (FIG. 4)
When RCP) cannot be received, it has not been possible to escape from receiving high-speed signals. According to the present embodiment, it is possible to detect a carrier break for more than one second at least in the retransmission section of the low-speed signal, so that it is possible to proceed to the reception of the low-speed signal and the second reception of the PPS-NULL (101) is possible. Became.
Then, subsequent communication becomes possible.

また、第3図において、送信機が104のMCFを受信でき
ない時送信機はPPS−NULLの再送を行う。このため、受
信機はMCF104を送信後、高速信号と低速信号の同時受信
が必要となる。これは本実施例により低速信号と高速信
号の切換えが可能となる。
In FIG. 3, when the transmitter cannot receive the MCF of 104, the transmitter retransmits PPS-NULL. Therefore, after transmitting the MCF 104, the receiver needs to simultaneously receive the high-speed signal and the low-speed signal. According to this embodiment, switching between a low-speed signal and a high-speed signal is possible.

まず、高速画信号の受信へ向かい、所定時間以内に高
速フラグを連続して所定時間検出できた時、高速信号の
受信へ移行する。また、高速画信号の受信へ向かい、所
定時間以内に高速フラグを連続して所定時間検出できな
い時、現在の伝送スピードで1ブロツクを伝送するのに
要する時間にマージン(フラグ送出時間、制御信号受信
時間(例、6秒)等)を加えた時間、コマンド受信を行
う。
First, the process proceeds to the reception of the high-speed image signal. When the high-speed flag is continuously detected for the predetermined time within the predetermined time, the process shifts to the reception of the high-speed signal. Further, when the high-speed flag cannot be detected continuously for a predetermined time within a predetermined time toward the reception of a high-speed image signal, a margin (flag transmission time, control signal reception time, control signal reception time) is required for the time required to transmit one block at the current transmission speed. The command is received for a time obtained by adding a time (eg, 6 seconds).

そして、高速信号の受信へ移行した場合においては以
下の制御を行う。
Then, the following control is performed when the operation shifts to the reception of the high-speed signal.

RCPを検出したあるいは1秒以上の連続した高速信号
のキヤリア断を検出した場合には、現在の伝送スピード
は1ブロツクを伝送するのに要する時間にマージン(フ
ラグ送出時間制御信号受信時間(例えば6秒)等)を加
えた時間、コマンド受信を行う。
When the RCP is detected or the carrier break of a continuous high-speed signal for one second or longer is detected, the current transmission speed is set to a margin (a flag transmission time control signal reception time (for example, 6 hours) required to transmit one block. The command is received for the time added with seconds).

また、現在の伝送スピードで1ブロツクを伝送するの
に要する時間に所定時間(マージン)を加えた時間以内
に1フレームも有効フレームを検出できない。あるいは
有効フレームを検出後、所定時間(例えば60秒)有効フ
レームを検出できないときエラー処理し、回線を開放す
る。
Also, no valid frame can be detected within one frame plus the predetermined time (margin) added to the time required to transmit one block at the current transmission speed. Alternatively, if a valid frame cannot be detected for a predetermined time (for example, 60 seconds) after detecting a valid frame, error processing is performed and the line is opened.

また、連続して255S以上、データを受信したというイ
ンタラプトがかからないときには、異常と判断し、回線
を開放しエラー終了する。
If no interrupt that data has been received continuously for 255 S or more is received, it is determined that an error has occurred, the line is released, and the processing ends with an error.

以下、図面に基づいて本実施例を詳細に説明する。 Hereinafter, this embodiment will be described in detail with reference to the drawings.

第1図には本実施例のフアクシミリ装置の構成を示し
たブロツク図である。
FIG. 1 is a block diagram showing the configuration of the facsimile apparatus of this embodiment.

第1図において2は電話網をデータ通信等に使用する
ためその回線の端末に接続して電話交換網の接続制御を
行ったり、データ通信路への切替えを行ったり、ループ
の保持を行う網制御装置NCU(Network Cantrol Unit)
である。信号線2aは電話回線である。NCU2は信号線40a
の信号を入力し、この信号レベルが「0」であれば電話
回線を電話機側、すなわち電話回線2aを信号線2bに接続
する。また、信号線40aの信号を入力し、この信号レベ
ルが「1」であれば電話回線をフアクシミリ装置側、す
なわち電話回線2aを信号線2cに接続する。通常の状態で
は、電話回線は電話機側に接続されている。
In FIG. 1, reference numeral 2 denotes a network for controlling connection of a telephone exchange network by connecting to a terminal of the line to use a telephone network for data communication and the like, switching to a data communication path, and holding a loop. Controller NCU (Network Cantrol Unit)
It is. The signal line 2a is a telephone line. NCU2 is signal line 40a
If the signal level is "0", the telephone line is connected to the telephone, that is, the telephone line 2a is connected to the signal line 2b. Also, the signal on the signal line 40a is input, and if this signal level is "1", the telephone line is connected to the facsimile apparatus side, that is, the telephone line 2a is connected to the signal line 2c. In a normal state, the telephone line is connected to the telephone.

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

6は送信系の信号と受信系の信号を分離するハイブリ
ツド回路である。すなわち、信号線20aの送信信号は信
号線2cを通り、NCU2を介して電話回線に送出される。ま
た、相手側から送られてきた信号はNCU2を介した後、信
号線2cを通り、信号線6aに出力される。
Reference numeral 6 denotes a hybrid circuit for separating a signal of a transmission system and a signal of a reception system. That is, the transmission signal on the signal line 20a is transmitted to the telephone line via the NCU 2 via the signal line 2c. Further, the signal sent from the other side passes through the NCU 2, passes through the signal line 2c, and is output to the signal line 6a.

8は読取回路であり、送信原稿より主走査方向1ライ
ン分の画信号を順次読み取り、白,黒の2値を表す信号
列を作成する。CCD(電荷結合素子)等の撮像素子と光
学系で構成される。白,黒の2値化された信号列は、信
号線8aに出力される。
Reference numeral 8 denotes a reading circuit, which sequentially reads image signals for one line in the main scanning direction from a transmission original to create a signal sequence representing binary values of white and black. It is composed of an image sensor such as a CCD (charge coupled device) and an optical system. The binary signal sequence of white and black is output to the signal line 8a.

10は信号線8aに出力されている読取データを入力し、
符号化(MH(モデイフアイド ハフマン)符号化、ある
いはMR(モデイフアイド リード)符号化)したデータ
を信号線10aに出力する回路である。
10 inputs the read data output to the signal line 8a,
This circuit outputs encoded (MH (Modified Huffman) encoded or MR (Modified Read) encoded) data to the signal line 10a.

12は信号線10aに出力されたデータを記憶するメモリ
回路である。本フアクシミリ装置は、一度に1つのブロ
ツクとして複数のフレームを送信後、エラーのあったフ
レームの再送を行うので、最低1ブロツク分のメモリを
有する必要がある。メモリ回路12は信号線40cに送信す
るフレーム番号が出力されている時、そのフレームの情
報を信号線12aに出力する。
Reference numeral 12 denotes a memory circuit that stores data output to the signal line 10a. Since this facsimile apparatus transmits a plurality of frames as one block at a time and then retransmits an erroneous frame, it is necessary to have a memory for at least one block. When the frame number to be transmitted is output to the signal line 40c, the memory circuit 12 outputs the information of the frame to the signal line 12a.

14は信号線12aに出力されている符号化データの前
に、アドレスフイールド,コントロールフイールド,FCF
フイールド,FIFフイールド(今、伝送しているフレーム
番号が格納される)を追加し、その情報をHDLCフオーマ
ツト化した情報を信号線14aに出力する回路である。HDL
Cのフレーミング回路14は、また、信号線40dに信号レベ
ル「1」の信号が出力されている時には、送信機側のフ
ロー制御のためのフラグを信号線14aに送出する。
Reference numeral 14 denotes an address field, a control field, and an FCF before the encoded data output to the signal line 12a.
This is a circuit for adding a field and an FIF field (in which the frame number being transmitted is stored) and adding the information to the HDLC format and outputting the information to the signal line 14a. HDL
The C framing circuit 14 sends a flag for flow control on the transmitter side to the signal line 14a when the signal of the signal level "1" is output to the signal line 40d.

16は公知のCCITT勧告V27ter(差動位相変調)、ある
いはV29(直交変調)に基づいた変調を行う変調器であ
る。変調器16は信号線14aの信号を入力し変調を行い、
変調データを信号線16aに出力する。
Reference numeral 16 denotes a modulator that performs modulation based on the known CCITT recommendation V27ter (differential phase modulation) or V29 (quadrature modulation). The modulator 16 receives the signal on the signal line 14a and performs modulation,
The modulation data is output to the signal line 16a.

18は公知のCCITT勧告V21に基づいた変調を行う変調器
である。変調器18は信号線40bの手順信号を入力し、変
調を行い、変調データを信号線18aに出力する。
Reference numeral 18 denotes a modulator that performs modulation based on the known CCITT recommendation V21. The modulator 18 receives the procedural signal on the signal line 40b, modulates the signal, and outputs modulated data to the signal line 18a.

20は信号線16a,信号線18aの信号を入力し、加算した
結果を信号線20aに出力する。
Reference numeral 20 inputs the signals of the signal lines 16a and 18a, and outputs the sum to the signal line 20a.

22は公知のCCITT勧告V21に基づいた復調を行う復調器
である。復調器22は信号線6aの信号を入力しV21復調を
行い、復調データを信号線22aに出力する。
Reference numeral 22 denotes a demodulator that performs demodulation based on the known CCITT recommendation V21. The demodulator 22 receives the signal on the signal line 6a, performs V21 demodulation, and outputs demodulated data to the signal line 22a.

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

26は信号線6aの信号を入力し、CCITT勧告V27ter、あ
るいはV29の高速データのキヤリアを検出しているか否
かを判定する回路である。26はCCITT勧告V27terあるい
はV29の高速データのキヤリアを検出している時には、
信号線26aに信号レベル「1」の信号を出力し、CCITT勧
告V27terあるいはV29の高速データのキヤリアを検出し
ていない時には信号線26aに信号レベル「0」の信号を
出力する。
Reference numeral 26 denotes a circuit which receives a signal of the signal line 6a and determines whether or not a carrier of high speed data of CCITT Recommendation V27ter or V29 is detected. 26 is when CCITT recommendation V27ter or V29 high speed data carrier is detected,
A signal having a signal level "1" is output to the signal line 26a, and a signal having a signal level "0" is output to the signal line 26a when the carrier of the high speed data of CCITT Recommendation V27ter or V29 is not detected.

28は信号線24aに出力されている復調データを入力
し、フラグパターンを検出しているか否かを判定する回
路である。28はフラグパターンを検出している時には信
号線28aに信号レベル「1」の信号を出力し、フラグパ
ターンを検出していない時には信号線28aに信号レベル
「0」の信号を出力する。2バイトのメモリ空間を有し
ていて、最初は信号線28aには信号レベル「0」の信号
が出力され、最近受信した8ビツトのデータがフラグパ
ターン(7EH)になった時、信号線28aの信号レベルは
「1」となる。1度信号線28aの信号レベル「1」にな
ると、それ以降8ビツトはノーチエツクとし、後半の8
ビツトが(7EH)パターンとなった時最近受信した8ビ
ツトのデータがフラグパターンかをチエツクする。そし
て、フラグパターンであれば信号線28aの信号レベルは
「1」のままとし、フラグパターンでなければ信号線28
aの信号レベルは「0」となる。最近受信した8ビツト
のデータがフラグパターンであれば上記のチエツクをく
り返し、最近受信した8ビツトのデータがフラグパター
ンでないときは最近受信した8ビツトのみ着目し、この
8ビツトがフラグパターンとなった時に信号線28aの信
号レベルは「1」になる。
Reference numeral 28 denotes a circuit which receives the demodulated data output to the signal line 24a and determines whether or not a flag pattern is detected. 28 outputs a signal of signal level "1" to the signal line 28a when the flag pattern is detected, and outputs a signal of signal level "0" to the signal line 28a when the flag pattern is not detected. It has a 2-byte memory space. At first, a signal of signal level "0" is output to the signal line 28a. When the recently received 8-bit data becomes a flag pattern (7EH), the signal line 28a Is "1". Once the signal level of the signal line 28a becomes "1", the subsequent 8 bits are not checked, and the latter 8 bits are not checked.
When the bit becomes the (7EH) pattern, it is checked whether the recently received 8-bit data is a flag pattern. If it is a flag pattern, the signal level of the signal line 28a is kept at "1".
The signal level of a becomes “0”. If the recently received 8-bit data is a flag pattern, the above check is repeated. If the recently received 8-bit data is not the flag pattern, only the recently received 8-bit is focused on, and this 8-bit becomes the flag pattern. At times, the signal level of the signal line 28a becomes "1".

30は信号線24aに出力されている復調データを入力
し、HDLC化されたデータの0デリートを行い、HDLCフオ
ーマツト化される前のデータを信号線30aの出力するHDL
Cのデフレーミング回路である。
An HDL 30 receives the demodulated data output to the signal line 24a, performs zero-deletion of the HDLC-converted data, and outputs the data before HDLC formatting to the signal line 30a.
This is a C deframing circuit.

32は信号線30aに出力される符号化された画情報をフ
レーム単位で一時的に記憶するテンポラリメモリ回路で
ある。フレーム単位で正しく受信されたデータは信号線
32aに出力される。
Reference numeral 32 denotes a temporary memory circuit that temporarily stores encoded image information output to the signal line 30a in frame units. Data received correctly in frame units is a signal line.
Output to 32a.

34は信号線32aに出力されたフレームデータを該当す
る画像メモリ空間に格納するが、このための画像メモリ
回路である。最低1ブロツク分のデータを格納するため
のメモリ空間が必要である。エラーが発生していないフ
レームまでのデータは、順次、信号線30aに出力され
る。信号線40eにクリアパルスを発生すると、信号線34b
はすべて0にセットされる。信号線34bには受信したフ
レーム番号のビツトマツプが出力される。
Reference numeral 34 denotes an image memory circuit for storing the frame data output to the signal line 32a in a corresponding image memory space. A memory space for storing data of at least one block is required. The data up to the frame where no error has occurred is sequentially output to the signal line 30a. When a clear pulse is generated on the signal line 40e, the signal line 34b
Are all set to zero. The bit map of the received frame number is output to the signal line 34b.

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

38は信号線36aに出力されている信号を入力し、順次
1ライン毎に記録を行う記録回路である。
Reference numeral 38 denotes a recording circuit which receives a signal output to the signal line 36a and sequentially performs recording for each line.

40は実施例の最初の項で説明を行った制御を主に行う
制御回路である。該制御回路40はマイクロコンピユータ
及び制御プログラムを格納したROM、データの一時記憶
を行うRAM等のマイクロコンピユータの周辺機器より構
成されている。
A control circuit 40 mainly performs the control described in the first section of the embodiment. The control circuit 40 is constituted by peripheral devices of the micro computer such as a micro computer and a ROM storing a control program and a RAM for temporarily storing data.

第2図は第1図の制御回路40の制御動作を示したフロ
ーチヤート図である。
FIG. 2 is a flowchart showing a control operation of the control circuit 40 of FIG.

第2図において、第2図(A)はメインルーチン、第
2図(B)は画信号の受信時のインタラプトルーチンで
ある。
2A is a main routine, and FIG. 2B is an interrupt routine at the time of receiving an image signal.

まず第2図(A)のメインルーチンについて説明す
る。
First, the main routine of FIG. 2A will be described.

ステツプS52において、信号線40aに信号レベル「0」
の信号を出力し、CMLをオフして電話回線2aを電話機側
に接続する。
In step S52, the signal level "0" is applied to the signal line 40a.
Is output, the CML is turned off, and the telephone line 2a is connected to the telephone.

そして、ステツプS54において、フアクシミリ受信が
選択されたか否かを判断する。フアクシミリ受信が選択
されるとステツプS54からステツプS58に進み、フアクシ
ミリ受信が選択されていないとステツプS54からステツ
プS56に進んでその他の処理を行う。
Then, in step S54, it is determined whether facsimile reception has been selected. When facsimile reception is selected, the process proceeds from step S54 to step S58, and when facsimile reception is not selected, the process proceeds from step S54 to step S56 to perform other processing.

ステツプS58において、信号線40aに信号レベル「1」
の信号を出力し、CMLをオンして電話回線2aをフアクシ
ミリ側に接続する。
In step S58, the signal level "1" is set on the signal line 40a.
Is output, the CML is turned on, and the telephone line 2a is connected to the facsimile side.

次に、ステツプS60,S62、S64,S70にてCCITT勧告フア
クシミリ通信手順の前手順を実行する。
Next, in steps S60, S62, S64 and S70, the pre-procedure of the CCITT recommended facsimile communication procedure is executed.

ステツプS62において、ECM通信(誤り訂正モード)が
選択されているか否かを判断し、ECM通信が選択されて
いるとステツプS70に進み、ECM通信が選択されていない
とステツプS64に進む。
In step S62, it is determined whether or not ECM communication (error correction mode) is selected. If ECM communication is selected, the process proceeds to step S70, and if ECM communication is not selected, the process proceeds to step S64.

ステツプS64及びS70では、残りの前手順を実行する。
ステツプS62でECM通信でないと判断し、ステツプS64で
残りの前手順が終了すると、ステツプS66でノーマルG3
モードでの画信号の受信を行う。そして、画信号受信が
終了するとステツプS68でフアクシミリ通信手順の後手
順を実行した後ステツプS52に戻る。
In steps S64 and S70, the remaining pre-procedures are executed.
In step S62, it is determined that the communication is not ECM communication, and in step S64, when the remaining pre-procedures are completed, the normal G3 communication is performed in step S66.
The image signal is received in the mode. When the reception of the image signal is completed, a post-procedure of the facsimile communication procedure is executed in step S68, and the process returns to step S52.

一方、ステツプS62でECM通信と判断し、ステツプS70
で残りの前手順が終了してステツプS72に進むと、ステ
ツプS72において、各伝送スピードによって異なる有効
フレームを検出する以前において高速データを受信する
時間、あるいは300b/sの手順信号を受信するときのタイ
マー値として使用するR.SEDECMOにタイマ値をセツトす
る。ここで、伝送スピードが2400b/sの時には、R.SEDEC
MOに250秒をセツトする。以後同様に、伝送スピードが4
800b/s、7200b/s、9600b/sの時には、それぞれR.SEDECM
Oに150秒、120秒、100秒をセツトする。この時間の根拠
を説明する。1フレームのバイト数はデータのバイト数
を256バイトと考え、それ以外にフラグフイールド1バ
イト、アドレスフイールド1バイト、コントロールフイ
ールド1バイト、FCDフイールド1バイト、フレームナ
ンバーフイールド1バイト、FCS2バイトを加えると263
バイトとなる。フラグがなくNULLブロツクのみを伝送し
た時には263×8×256/(伝送スピード)から求まり、2
400b/s、4800b/s、7200b/s、9600b/sの順に244秒、112
秒、75秒、56秒と求まる。これに、フラグの送出時間30
0b/sを受信する時間分等を加え、上記の値を決定してい
る。
On the other hand, in step S62, ECM communication is determined, and in step S70
When the remaining pre-procedure is completed and the process proceeds to step S72, in step S72, a time for receiving high-speed data before detecting a valid frame different depending on each transmission speed, or a time when a procedure signal of 300 b / s is received. Set the timer value in R.SEDECMO to be used as the timer value. Here, when the transmission speed is 2400b / s, R.SEDEC
Set 250 seconds for MO. Thereafter, similarly, the transmission speed becomes 4
R.SEDECM at 800b / s, 7200b / s, 9600b / s
Set 150 seconds, 120 seconds, and 100 seconds in O. The reason for this time will be explained. If the number of bytes in one frame is assumed to be 256 bytes of data, and 1 byte of flag field, 1 byte of address field, 1 byte of control field, 1 byte of FCD field, 1 byte of FCD field, 1 byte of frame number field and 2 bytes of FCS are added. 263
It becomes bytes. When only the NULL block is transmitted without a flag, it is obtained from 263 × 8 × 256 / (transmission speed), and 2
244 seconds, 112 in the order of 400b / s, 4800b / s, 7200b / s, 9600b / s
Seconds, 75 seconds, 56 seconds. In addition, the flag sending time 30
The above value is determined by adding the time for receiving 0b / s and the like.

ステツプS74において、高速信号の受信へ以降後、有
効フレームを検出した時に、それ以降に有効フレームを
検出しない場合にエラーとするタイマーR.SEDEMNに60秒
をセツトしステツプS76に進む。
In step S74, after the reception of the high-speed signal, when a valid frame is detected, a timer R.SEDEMN which sets an error when no valid frame is detected thereafter is set to 60 seconds, and the flow advances to step S76.

ステツプS76に進むと、高速信号の受信状態にセツト
する。
In step S76, a high-speed signal receiving state is set.

そして、ステツプS78において、高速信号の受信へ向
った時、所定時間A以内に高速フラグを連続して所定時
間検出できたかの判断を行うが、各伝送スピードに応じ
て所定時間Aをtimer0にセツトする。所定時間Bはステ
ツプS80により、各伝送スピードに応じてTimer1にセツ
トする。
Then, in step S78, when it is time to receive a high-speed signal, it is determined whether the high-speed flag has been continuously detected for a predetermined time within a predetermined time A, but the predetermined time A is set to timer0 according to each transmission speed. . The predetermined time B is set to Timer1 according to each transmission speed in step S80.

所定時間A,Bの時間設定の理由を説明する。 The reason for setting the predetermined times A and B will be described.

まず、所定時間Bの時間であるが、5個連続したフラ
グの時間は各伝送スピードで以下の時間となる。
First, as for the predetermined time B, the time of five consecutive flags is as follows at each transmission speed.

トレーニングの時間 2400b/s 1158ms 4800b/s 923ms 7200b/s 253ms 9600b/s 253ms 5個のフラグの時間 ・国際回線による最大遅延時間 1.25 ・相手機が300b/sの信号を受信完了後、高速信号送出開
始までの時間として0.55を考える。
Training time 2400b / s 1158ms 4800b / s 923ms 7200b / s 253ms 9600b / s 253ms Time for 5 flags ・ Maximum delay time due to international line 1.25 ・ Assuming 0.55 as the time from the completion of the reception of the signal of 300b / s to the start of high-speed signal transmission.

・5個のフラグパターンが偶然発生する確率 ・トレーニング信号の受信状態になってから、1秒間、
5個フラグを連続して検出したかをチエツクする時間設
定にする。
・ Probability that 5 flag patterns occur by chance ・ After receiving the training signal,
The time is set to check whether five flags have been detected consecutively.

2400b/s 1.16+1.2+0.5+1.0=3.86 (S) 4800b/s 0.92+1.2+0.5+1.0=3.62 (S) 7200b/s 0.25+1.2+0.5+1.0=2.95 (S) 9600b/s 0.25+1.2+0.5+1.0=2.95 (S) 1秒間に5個フラグが連続して発生する確率は、最大で (9600b/sの時が一番ビツト数が多い)であるので、偶
然に5個連続したフラグが検出されることは極めて小さ
い。このため、トレーニング信号の受信状態になってか
ら1秒間に5個のフラグを連続して検出したか否かを判
断することにより、高速画信号がきたか否かを判断す
る。従って、所定時間Bとしては各伝送スピードにおい
てフラグ5個分の時間とする。
2400b / s 1.16 + 1.2 + 0.5 + 1.0 = 3.86 (S) 4800b / s 0.92 + 1.2 + 0.5 + 1.0 = 3.62 (S) 7200b / s 0.25 + 1.2 + 0.5 + 1.0 = 2.95 (S) 9600b / s 0.25 + 1.2 + 0.5 + 1.0 = 2.95 (S) The probability that five flags are generated consecutively in one second is the maximum. (The number of bits is the largest at 9600 b / s), so it is extremely small that five consecutive flags are accidentally detected. For this reason, it is determined whether or not a high-speed image signal has been received by determining whether or not five flags have been continuously detected in one second after the training signal has been received. Therefore, the predetermined time B is a time corresponding to five flags at each transmission speed.

また、所定時間Aは高速信号のトレーニング時間、国
際回線における最大遅延時間、相手機が300b/s(例え
ば、CFR.MCF)を受信完了後、高速信号送出開始までの
時間に1秒を加えた時間を考える。
In addition, the predetermined time A is the training time of the high-speed signal, the maximum delay time on the international line, and one second added to the time from the completion of the reception of the 300 b / s (for example, CFR.MCF) by the other party to the start of transmission of the high-speed signal. Think time.

ステツプS82,S84,S86,S88,S90において、高速信号の
受信へ向かった時所定時間A以内に、所定時間B連続し
て高速信号のフラグが検出したか否かを判別する。連続
して高速信号のフラグを検出した場合は、高速信号の受
信へ移行(ステツプS92)し、又、高速信号のフラグを
検出できない時には、現在の伝送スピードで1ブロツク
を伝送するのに要する時間に所定時間を加えた時間(R.
SEDECMOに格納された時間)をTimer2にセツトし、コマ
ンド受信へ移行する。
In steps S82, S84, S86, S88 and S90, it is determined whether or not a high-speed signal flag has been detected for a predetermined time B continuously within a predetermined time A when the high-speed signal is received. If the flag of the high-speed signal is detected continuously, the process shifts to the reception of the high-speed signal (step S92). If the flag of the high-speed signal cannot be detected, the time required to transmit one block at the current transmission speed is obtained. Time (R.
(Time stored in SEDECMO) is set in Timer2, and the flow shifts to command reception.

一方、ステツプS84でタイマ1がタイムオーバした
(所定時間Bが経過した)と判断してステツプS92に進
むと、ステツプS92において、テンポラリバツフアに受
信するときのハイ側の値をセツトする。ここで、アドレ
スは20ビツトから構成される。アドレスは16ビツトアド
レスが2本あり、ロー側のアドレスにハイ側のアドレス
を左へ4ビツトシフトした値を加え、20ビツトの値とな
る。また、テンポラリバツフアにはテンポラリバツフア
0、テンポラリバツフア1があり、それぞれ512バイト
のメモリ空間を有する。
On the other hand, when it is determined in step S84 that the timer 1 has timed out (the predetermined time B has elapsed), and the process proceeds to step S92, the high value at the time of reception in the temporary buffer is set in step S92. Here, the address is composed of 20 bits. The address has two 16-bit addresses, and a value obtained by shifting the high-side address to the left by 4 bits to the low-side address is added to be a 20-bit value. The temporary buffer includes a temporary buffer 0 and a temporary buffer 1, each having a memory space of 512 bytes.

次に、ステツプS94において、テンポラリバツフアに
受信するときのロー側のポインタR.FRMPTRに0000Hをセ
ツトする。
Next, in step S94, 0000H is set to the low-side pointer R.FRMPTR for reception in the temporary buffer.

ステツプS96において、テンポラリバツフア0,1が空で
あるかデータがつまっているかを表わすフラグTEMPBFFU
Lに00Hをセツトする。TEMPBRRULのB0が0の時はテンポ
ラリバツフア0が空で、B0が1の時は、テンポラリバツ
フア0がつまっている。また、TEMPBFFULのB1が0の時
はテンポラリバツフア1が空で、B1が1の時はテンポラ
リバツフア1がつまっている。
In step S96, a flag TEMPBFFU indicating whether temporary buffers 0 and 1 are empty or data is packed.
Set L to 00H. When B0 of TEMPBRRUL is 0, temporary buffer 0 is empty, and when B0 is 1, temporary buffer 0 is full. When B1 of TEMPBFFUL is 0, temporary buffer 1 is empty, and when B1 is 1, temporary buffer 1 is full.

又、ステツプS98において、次にどのテンポラリバツ
フアにデータをつめるかを表わすフラグTEMPBFIに0を
セツトする。TEMPBFIが0の時には、次にテンポラリバ
ツフア0にデータをつめ、TEMPBFIが1の時には、次に
テンポラリバツフア1にデータをつめる。
In step S98, 0 is set to a flag TEMPBFI indicating which temporary buffer is to store data next. When TEMPBFI is 0, data is stored in temporary buffer 0 next, and when TEMPBFI is 1, data is stored in temporary buffer 1 next.

ステツプS100において、受信系のモデムのインタラプ
タをイネブルにする。
In step S100, the interrupt of the receiving modem is enabled.

ステツプS102において、次にどのテンポラリバツフア
のデータから画像メモリ区間へ転送するかを表わすフラ
グTEMPBFOに0をセツトする。TEMPBFOが0の時には、次
にテンポラリバツフア0がフルになったら、テンポラリ
バツフア0のデータを画像メモリ空間へ転送する。TEMP
BFOが1の時には、次にテンポラリバツフア1がフルに
なったら、テンポラリバツフア1のデータを画像メモリ
空間へ転送する。
In step S102, 0 is set to a flag TEMPBFO indicating which temporary buffer data is to be transferred to the image memory section. When TEMPBFO is 0, when the temporary buffer 0 becomes full next, the data of the temporary buffer 0 is transferred to the image memory space. TEMP
When BFO is 1, when the temporary buffer 1 becomes full next time, the data of the temporary buffer 1 is transferred to the image memory space.

ステツプS104において、高速信号のキヤリア断をチエ
ツクするタイマーTimer0に1秒をセツトする。
In step S104, 1 second is set to a timer Timer0 for checking the carrier interruption of the high-speed signal.

ステツプS106において、有効フレームを検出できない
ことが所定時間以上続くと回線を開放しエラー終了とす
るが、この時間をチエツクするタイマーTimer1にR.SEDE
CMOの値をセツトする。
In step S106, if it is determined that a valid frame cannot be detected for a predetermined time or more, the line is released and an error is terminated, but this time is checked by the timer Timer1 and R.SEDE.
Set the value of CMO.

以上のステツプS92〜S106の多種のセツトが終了する
とステツプS108に進み、ステツプS108において、TEMPBF
Oが0であるか否かを判断する。TEMPBFFOが0のとき
は、ステツプS110でTEMPBFFULのB0が1か(すなわち、
テンポラリバツフア0がフルであるか否か)を判断す
る。そしてステツプS110にて、TEMPBFFULのB0が1(す
なわち、テンポラリバツフア0がフルである)の時には
ステツプS112でテンポラリバツフア0の内容を該当する
画像メモリ空間へ転送(ステツプS112)し、ステツプS1
14でTEMPBFFOを1にセツトした後、ステツプS116でTEMP
BFFULのB0に0をセツトする。又、ステツプS110におい
て、TEMPBFFULのB0が1でない時には、ステツプS126に
進む。
When the various types of steps S92 to S106 are completed, the process proceeds to step S108, and in step S108, TEMPBF
It is determined whether O is 0 or not. When TEMPBFFO is 0, B0 of TEMPBFFUL is 1 in step S110 (that is,
(Temporary buffer 0 is full). If B0 of TEMPBFFUL is 1 at step S110 (that is, temporary buffer 0 is full), the contents of temporary buffer 0 are transferred to the corresponding image memory space at step S112 (step S112), and step S1 is performed.
After setting TEMPBFFO to 1 in step 14, set TEMPBFFO in step S116.
Set 0 to B0 of BFFUL. If B0 of TEMPBFFUL is not 1 in step S110, the process proceeds to step S126.

また、ステツプS108でTEMPBFOが1のときはステツプS
118でTEMPBFFULのB1が1か(すなわち、テンポラリバツ
フア1がフルであるか否か)を判断する。そして、ステ
ツプS118にてTEMPBFFULのB1が1(すなわち、テンポラ
リバツフア1がフル)である時には、ステツプS120でテ
ンポラリバツフア1の内容を該当する画像メモリ空間へ
転送し、ステツプS122でTEMPBFOを0にセツトした後、
ステツプS124でTEMPBFFULのB1に0をセツトする。
If TEMPBFO is 1 in step S108, step S
At 118, it is determined whether B1 of TEMPBFFUL is 1 (that is, whether or not temporary buffer 1 is full). If B1 of TEMPBFFUL is 1 at step S118 (that is, temporary buffer 1 is full), the contents of temporary buffer 1 are transferred to the corresponding image memory space at step S120, and TEMPBFO is set to 0 at step S122. After setting
At step S124, 0 is set to B1 of TEMPBFFUL.

次に、ステツプS126において、高速信号のキヤリアを
検出しているか(すなわち、信号線26aの信号レベルが
「1」であるか)を判断する。ステツプS126で高速信号
もキヤリアを検出している(すなわち、信号線26aの信
号レベルが「1」の時)時には、ステツプS128でTimer0
に1秒をセツトする。
Next, in step S126, it is determined whether the carrier of the high-speed signal is detected (ie, whether the signal level of the signal line 26a is "1"). When the carrier is detected in the high-speed signal also in step S126 (that is, when the signal level of the signal line 26a is "1"), the timer 0 is determined in step S128.
Set 1 second to

ステツプS130において、PCP信号を少なくとも1つ検
出したかを判断する。RCP信号を少なくとも1つ検出す
る。すなわち、RCPDTFGが1である時には、ステツプS13
8に進む。又RCP信号を検出していない。すなわち、RCPD
TFGが0である時にはステツプS132に進む。
In step S130, it is determined whether at least one PCP signal has been detected. Detect at least one RCP signal. That is, when RCPDTFG is 1, step S13
Proceed to 8. Also, the RCP signal has not been detected. That is, RCPD
When TFG is 0, the process proceeds to step S132.

ステツプS132において、TIMER0が0か、すなわち、1
秒以上連続して高速信号のキヤリア断を検出したかを判
断する。TIMER0が0、すなわち、1秒以上連続して高速
信号のキヤリア断を検出すると、ステツプS138に進む。
TIMER0が0でない、すなわち、1秒以上連続して高速信
号のキヤリア断を検出していないとステツプS134へ進
む。
In step S132, TIMER0 is 0, that is, 1
It is determined whether or not a high-speed signal carrier break has been detected continuously for at least two seconds. When TIMER0 is 0, that is, when the carrier break of the high-speed signal is detected continuously for 1 second or more, the process proceeds to step S138.
If TIMER0 is not 0, that is, if the carrier break of the high-speed signal is not detected continuously for 1 second or more, the process proceeds to step S134.

ステツプS134において、TIMER1が0か、すなわち、所
定時間以上有効フレームを検出していないかを判断す
る。TIMER1が0、すなわち、所定時間以上有効フレーム
を検出していない時には、ステツプS136でエラー処理す
る。また、TIMER1が0でない、すなわち、所定時間以内
に有効フレームを検出している時には、ステツプS108に
進む。
In step S134, it is determined whether TIMER1 is 0, that is, whether a valid frame has been detected for a predetermined time or more. If TIMER1 is 0, that is, if no valid frame has been detected for a predetermined time or more, error processing is performed in step S136. If TIMER1 is not 0, that is, if a valid frame is detected within a predetermined time, the process proceeds to step S108.

ステツプS138において、受信したHDLCフレームデータ
にエラーがあるか否かを判断する。エラーがあるときに
は、ステツプS140で再送要求信号(具体的にはPPR信
号)を送信する。又、エラーがない時にはステツプS142
に進む。
In step S138, it is determined whether or not the received HDLC frame data has an error. If there is an error, a retransmission request signal (specifically, a PPR signal) is transmitted in step S140. If there is no error, step S142
Proceed to.

ステツプS142において、記録が終了したか否かを判断
する。記録が終了したか否かを判断する。記録が終了し
ていない時はステツプS148でフロー制御(送信側に対し
て画信号の送信を一時停止させる制御)し、記録動作を
行う。又、記録が終了した時にはステツプS144で次情報
があるか否かを判断する。そして、ステツプS144で次情
報がある時にはステツプS146に進み、次情報がない場合
にはステツプS52に進む。
In step S142, it is determined whether or not the recording has been completed. It is determined whether the recording is completed. If the recording has not been completed, flow control (control for temporarily stopping transmission of the image signal to the transmitting side) is performed in step S148, and the recording operation is performed. When the recording is completed, it is determined in step S144 whether the next information is present. When there is the next information in step S144, the process proceeds to step S146, and when there is no next information, the process proceeds to step S52.

ステツプS146において、モードチエンジがあるか否か
を判断し、モードチエンジがあるとステツプS60に進
み、モードチエンジがないとステツプS72に進む。
In step S146, it is determined whether or not there is a mode change. If there is a mode change, the process proceeds to step S60. If there is no mode change, the process proceeds to step S72.

第2図(B)は画信号受信時のモデムのインターラプ
ト処理を示したフローチヤート図である。
FIG. 2B is a flowchart showing the interrupt processing of the modem at the time of receiving the image signal.

以下、DLS、STSの情報はData Link Processorのスラ
ータス情報である。そしてFENDは、フラグパターン(01
11 1110B)を検出した時に1にセツトされる。
Hereinafter, the information of DLS and STS is the status information of Data Link Processor. And FEND is a flag pattern (01
11 Set to 1 when 1110B) is detected.

CRCはFEND=1のときFCSをチエツクし、正しいフレー
ムデータを受信したか否かを判断する。0のとき正しい
フレームデータを受信した場合で、1のときは正しいフ
レームデータを受信していない場合である。
The CRC checks the FCS when FEND = 1, and determines whether or not correct frame data has been received. A value of 0 indicates that correct frame data has been received, and a value of 1 indicates that correct frame data has not been received.

ABTは1を連像して7個以上検出した時に1にセツト
される。
The ABT is set to 1 when seven or more ABTs are detected continuously.

OVRはバツフアがフルになった。そして、次のバイト
データがそろったのに、1回前に受信したデータをメイ
ンが入力してくれない時に1にセツトされる。
OVR is full of buffers. This is set to 1 when the main does not input the data received one time before even though the next byte data is ready.

まず、ステツプS152において、DLP、STSの情報を入力
する。そして、ステツプS154においてOBF(アウトプツ
トバツフアフル)が1であるか否かを判断する。OBFが
0のときはステツプS156でダミーデータを入力し、ステ
ツプS158でリターンする。OBFが1のとき、ステツプS16
0でFENDあるいはCPCあるいはABTあるいはOVRのどれかが
1であるかを判断し、1であるときにはステツプS162に
進み、1でない時にはステツプS174に進む。
First, in step S152, information on DLP and STS is input. Then, in step S154, it is determined whether or not OBF (output buffer full) is 1. If OBF is 0, dummy data is input in step S156, and the process returns in step S158. When OBF is 1, step S16
If 0, it is determined whether any of FEND, CPC, ABT, or OVR is 1. If it is 1, the process proceeds to step S162. If it is not 1, the process proceeds to step S174.

ステツプS160からステツプS162に進むとABT、あるい
はCRCのどれかが1であるか否かを判断し、1であると
きにはステツプS166に進み、1でないときにはステツプ
S164に進む。
When the process proceeds from step S160 to step S162, it is determined whether or not either ABT or CRC is 1, and if it is 1, the process proceeds to step S166. If it is not 1, the process proceeds to step S166.
Proceed to S164.

ステツプS164では、FENDが1であるか否かを判断し、
1である時にはステツプS202に進む(これは、1フレー
ムのデータを正しく受信したケースである)。また、0
である時にはステツプS166に進む。
In step S164, it is determined whether FEND is 1 or not.
If it is 1, the process proceeds to step S202 (this is the case where one frame of data has been correctly received). Also, 0
If so, the process proceeds to step S166.

ステツプS166では、F.LNKSTSにフレームエラーの発生
した旨を追加する。そして、ステツプS168でR.FRMPTRに
0をセツトし、ステツプS170で1バイトのデータを入力
した後、ステツプS17入力でリターンする。
In step S166, the fact that a frame error has occurred is added to F.LNKSTS. Then, R.FRMPTR is set to 0 in step S168, 1-byte data is input in step S170, and the process returns in step S17.

一方、ステツプS160からステツプS174に進むと、ステ
ツプS174以降で、1バイトのデータを順次入力する。
On the other hand, when the process proceeds from step S160 to step S174, 1-byte data is sequentially input after step S174.

ステツプS174において、1バイトのデータを入力す
る。そして、ステツプS176でR.SADRRCMの値をBX、ステ
ツプS178でR.FRMPTRの値をDIにセツトする。
In step S174, 1-byte data is input. Then, in step S176, the value of R.SADRRCM is set to BX, and in step S178, the value of R.FRMPTR is set to DI.

次に、ステツプS180においてDI、すなわち1フレーム
の受信データが260以上になったか否かを判断する。D
I、すなわち1フレームの受信データが260以上になるの
は異常であるので、ステツプS182でF.LNKSTSにフレーム
が長すぎる旨のエラーを書き、ステツプS184でR.FRMPTR
に0をセツトした後、ステツプS186でリターンする。
又、ステツプS180でDI、すなわち1フレームの受信デー
タが260未満である時にはステツプS188に進む。
Next, in step S180, it is determined whether or not DI, that is, the received data of one frame has become 260 or more. D
I, that is, it is abnormal that the received data of one frame becomes 260 or more. Therefore, an error indicating that the frame is too long is written in F.LNKSTS in step S182, and R.FRMPTR is written in step S184.
Is set to 0, and the process returns in step S186.
If the DI in step S180, that is, the received data of one frame is less than 260, the process proceeds to step S188.

ステツプS188において、DIが0であるか否かを判断
し、0の時にはステツプS190でF.LNKSTSのCRC,ABT,OVR
のエラー情報を0にセツトし、ステツプS192でDATA.5を
1にセツトしてステツプS194に進む。
In step S188, it is determined whether DI is 0 or not. If it is 0, the CRC, ABT, OVR of F.LNKSTS is determined in step S190.
Is set to 0, DATA.5 is set to 1 in step S192, and the flow advances to step S194.

ステツプS194において、1バイトの入力したデータを
テンポラリメモリ空間に格納し、ステツプS196でDIの値
を1つインクリメントした後、ステツプS198でその値を
R.FRMPTRにセツトし、ステツプS200でリターンする。
In step S194, the input data of 1 byte is stored in the temporary memory space, and the value of DI is incremented by one in step S196, and the value is incremented in step S198.
Set to R.FRMPTR and return at step S200.

ステツプS202において、SIにR.SADRECMの値をセツト
する。
In step S202, the value of R.SADRECM is set in SI.

ステツプS204において、SI+2番地の内容、すなわち
FCFの内容をチエツクする。FCFの内容がRCP(86H)であ
るか否かを判断し、RCPである時にはステツプS206にお
いてRCPを検出したというフラグRCPDTFGに1をセツト
し、ステツプS208で1バイトデータを入力した後ステツ
プS210でリターンする。
In step S204, the contents of the address SI + 2, that is,
Check the contents of the FCF. It is determined whether or not the content of the FCF is RCP (86H). If it is RCP, 1 is set to the flag RCPDTFG indicating that RCP was detected in step S206, and 1 byte data is input in step S208, and then in step S210. To return.

ステツプS204でFCFの内容がRCP(86H)でないと判断
しステツプS212に進むと、ステツプS212においてSI番地
の内容が0FFHであるか(すなわち、アドレス情報を正し
く受信しているか)を判断する。又、ステツプS214にお
いてSI+1番地の内容が03Hであるか(すなわち、コン
トロール情報を正しく受信しているか)を判断する。
又、ステツプS216においてSI+2番地の内容が06Hであ
るか(すなわち、FCDを正しく受信しているか)を判断
する。アドレス,コントロール,FCDを正しく受信してい
るとステツプS218に進み、正しく受信していないとステ
ツプS166に進む。
If it is determined in step S204 that the content of the FCF is not RCP (86H) and the process proceeds to step S212, it is determined in step S212 whether the content of the SI address is 0FFH (that is, whether the address information is correctly received). In step S214, it is determined whether the content of the address SI + 1 is 03H (that is, whether the control information is correctly received).
In step S216, it is determined whether the content of address SI + 2 is 06H (that is, whether the FCD is correctly received). If the address, control, and FCD have been correctly received, the process proceeds to step S218, and if not, the process proceeds to step S166.

又、ステツプS216からステツプS218に進むとステツプ
S218,S220においてR.SEDECMNの値をTIMERIにセツトす
る。
When the process proceeds from step S216 to step S218, the process proceeds to step S218.
In S218 and S220, the value of R.SEDECMN is set to TIMERI.

そして、ステツプS222において、どちらのテンポラリ
バツフアにデータを入力するかを表わすフラグTEMPBFI
をチエツクする。TEMPBFIが0(すなわち、今までテン
ポラリバツフア0にデータを入力していた時)の時には
ステツプS232に進み、ステツプS232,S234でR.SADRECMに
TBFISFSTAをセツト、ステツプS236でTEMPBFFULのB0に1
をセツトし、ステツプS238でTEMPBFIに1をセツトす
る。そして、ステツプS240においてR.FRMPTRを0にセツ
トし、ステツプS242で1バイトデータを入力した後ステ
ツプS244でリターンする。
Then, in step S222, a flag TEMPBFI indicating which temporary buffer the data is to be input to.
Check. When TEMPBFI is 0 (that is, data has been input to the temporary buffer 0 until now), the process proceeds to step S232, and R.SADRECM is set in steps S232 and S234.
Set TBFISFSTA, 1 in B0 of TEMPBFFUL in step S236
Is set, and 1 is set in TEMPBFI in step S238. Then, R.FRMPTR is set to 0 in step S240, 1-byte data is input in step S242, and the process returns in step S244.

又、ステツプS222において、TEMPBFIが1、すなわち
今までテンポラリバツフア1にデータを入力していた時
にはステツプS224に進み、ステツプS224,S226でR.SADRE
CMにTBF0SFSTAをセツトし、ステツプS228でTEPBFFULのB
1に1をセツトし、ステツプS230でTEMPBFIに0をセツト
する。
If TEMPBFI is 1 in step S222, that is, if data has been input to the temporary buffer 1, the process proceeds to step S224, and R.SADRE is set in steps S224 and S226.
Set TBF0SFSTA to CM and set TEPBFFUL B in step S228.
1 is set to 1 and TEMPBFI is set to 0 in step S230.

〔実施例2〕 以上の実施例では高速信号の受信へ移行した後、高速
データの受信を行っている時、RCPあるいは1秒以上の
高速信号のキヤリア断を検出した後、現在の伝送スピー
ドで1ブロツクを伝送するのに要する時間にマージンを
加えた時間をTIMER2にセツトして、コマンド受信を行っ
ている。
[Embodiment 2] In the above embodiment, after shifting to the reception of the high-speed signal, when the high-speed data is being received, the RCP or the carrier disconnection of the high-speed signal of 1 second or longer is detected, and the current transmission speed is used. TIMER2 is set to the time obtained by adding a margin to the time required to transmit one block, and the command is received.

しかし、例えば最後に受信されたフレームナンバーを
チエツクし、255からこの値をひき、あと最大、何フレ
ームを受信するかを求め、そのフレーム数を現在の伝送
スピードで伝送するのに要する時間にマージンを加えた
時間、コマンド受信をしてもよい。
However, for example, the last received frame number is checked, this value is subtracted from 255, the maximum number of frames to be received is determined, and the time required to transmit the number of frames at the current transmission speed has a margin. The command may be received at the time when the command is added.

〔実施例3〕 又、1度高速信号の受信が終了し、受信した1フレー
ムの中でエラーフレームがある場合、再送要求信号(具
体的には、PPR信号)を送信後、高速信号の受信へ移行
する。この時、R.SEDECMOの値は再送される可能性のあ
るフレーム数(PPS−Qにより指定されたフレーム数か
ら、正しく受信できているフレーム数をひくことにより
求まる)を各伝送スピードで伝送するのに要する時間に
マージンを加えた時間をセツトしてもよい。エラーフレ
ームがなくなって、MCF等の信号を送信した時は、R.SED
ECMOは再セツトするのはもちろんである。
[Embodiment 3] When the reception of the high-speed signal is completed once and there is an error frame in the received one frame, the reception of the high-speed signal is performed after transmitting the retransmission request signal (specifically, the PPR signal). Move to. At this time, the value of R.SEDECMO is transmitted at each transmission speed by the number of frames that can be retransmitted (determined by subtracting the number of frames that can be received correctly from the number of frames specified by PPS-Q). A time obtained by adding a margin to the time required for the setting may be set. When there are no error frames and a signal such as MCF is transmitted, R.SED
ECMO will, of course, reset.

〔実施例4〕 又、前記実施例においては、R.SEDECMOの時間を決定
する時に、1フレームのデータのバイト数として256バ
イトを考えた。しかし、これ以外のデータのバイト数、
例えば64バイトが選択された時には、R.SEDECMOの値を
変えてもよい。
Embodiment 4 In the above embodiment, when determining the time of R. SEDECMO, 256 bytes were considered as the number of bytes of data of one frame. However, the number of bytes of other data,
For example, when 64 bytes are selected, the value of R.SEDECMO may be changed.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によると、リトレーニング
エラーが発生しても、また、データ受信中に特定の信号
受信が不可能であっても、通信を続行できるフアクシミ
リ装置が提供できる。
As described above, according to the present invention, it is possible to provide a facsimile apparatus that can continue communication even if a retraining error occurs or a specific signal cannot be received during data reception.

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

第1図は本実施例のフアクシミリ装置の構成を示したブ
ロツク図、 第2図(A),(B)は制御回路40の制御動作を示した
フローチヤート図、 第3図は通信シーケンスを示した図、 第4図は画信号データのフオーマツトを示した図であ
る。 2はNCU、4は電話機、6はハイブリツト回路、8は読
取回路、10は符号化回路、12はメモリ回路、14はHDLCの
フレーミング回路、16はV27terあるいはV29の変調器、1
8はV21変調器、20は加算回路、22はV21復調器、24はV27
terあるいはV29復調器、26は高速のキヤリア検出回路、
28はフラグパターン検出回路、30はHDLCのデフレーミン
グ回路、32はテンポラリメモリ回路、34は画像メモリ回
路、36は復号化回路、38は記録回路、40は制御回路であ
る。
FIG. 1 is a block diagram showing the configuration of the facsimile apparatus of this embodiment, FIGS. 2A and 2B are flowcharts showing the control operation of the control circuit 40, and FIG. 3 is a communication sequence. FIG. 4 is a diagram showing the format of image signal data. 2 is an NCU, 4 is a telephone, 6 is a hybrid circuit, 8 is a reading circuit, 10 is an encoding circuit, 12 is a memory circuit, 14 is an HDLC framing circuit, 16 is a V27ter or V29 modulator, 1
8 is V21 modulator, 20 is addition circuit, 22 is V21 demodulator, 24 is V27
ter or V29 demodulator, 26 is a high-speed carrier detection circuit,
28 is a flag pattern detection circuit, 30 is an HDLC deframing circuit, 32 is a temporary memory circuit, 34 is an image memory circuit, 36 is a decoding circuit, 38 is a recording circuit, and 40 is a control circuit.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】所定量のデータを高速の伝送速度で通信
し、制御信号を低速の伝送速度で通信し、前記高速のデ
ータ通信と前記低速の制御信号の通信を切り換えるファ
クシミリ装置において、 前記高速の伝送速度でデータを受信するデータ受信手段
と、 前記低速の伝送速度で制御信号を受信する制御信号受信
手段と、 第1の時間連続して前記高速の伝送信号が検出される
と、前記データ受信手段によるデータ受信を行い、前記
第1の時間連続して前記高速の伝送信号が検出されない
と、前記所定量のデータ伝送に対応した時間、前記制御
信号の受信を行う制御手段を有することを特徴とするフ
ァクシミリ装置。
1. A facsimile apparatus for communicating a predetermined amount of data at a high transmission rate, communicating control signals at a low transmission rate, and switching between the high-speed data communication and the low-speed control signal communication. Data receiving means for receiving data at a transmission rate of: control signal receiving means for receiving a control signal at the low transmission rate; when the high-speed transmission signal is detected continuously for a first time, the data A control unit for receiving data by the receiving unit and receiving the control signal for a time corresponding to the predetermined amount of data transmission when the high-speed transmission signal is not detected continuously for the first time. Facsimile machine characterized.
【請求項2】前記制御手段は、前記データ受信手段によ
るデータ受信に移行した時、第2の時間連続して前記高
速の伝送速度の信号のキャリアが検出されないと、前記
データの通信から前記制御信号の通信への切り換えを示
す信号を受信したものと判定し、前記制御信号の受信へ
移行することを特徴とする請求項第1項記載のファクシ
ミリ装置。
2. When the control means shifts to data reception by the data receiving means, if the carrier of the signal of the high transmission rate is not detected continuously for a second time, the control means performs the control from the data communication. 2. The facsimile apparatus according to claim 1, wherein it is determined that a signal indicating a switch to signal communication has been received, and the process shifts to receiving the control signal.
【請求項3】前記制御手段は、前記データ受信手段によ
るデータ受信に移行した時、第3の時間以内に有効なデ
ータが受信されない場合、エラー処理を実行して通信を
終了することを特徴とする請求項第1項記載のファクシ
ミリ装置。
3. When the control means shifts to data reception by the data receiving means, if valid data is not received within a third time, the control means executes error processing and terminates communication. The facsimile apparatus according to claim 1, wherein
JP63165654A 1988-07-01 1988-07-01 Facsimile machine Expired - Lifetime JP2749821B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP63165654A JP2749821B2 (en) 1988-07-01 1988-07-01 Facsimile machine
US07/817,967 US5127013A (en) 1988-07-01 1992-01-08 Data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63165654A JP2749821B2 (en) 1988-07-01 1988-07-01 Facsimile machine

Publications (2)

Publication Number Publication Date
JPH0215779A JPH0215779A (en) 1990-01-19
JP2749821B2 true JP2749821B2 (en) 1998-05-13

Family

ID=15816461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63165654A Expired - Lifetime JP2749821B2 (en) 1988-07-01 1988-07-01 Facsimile machine

Country Status (1)

Country Link
JP (1) JP2749821B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03283944A (en) * 1990-03-30 1991-12-13 Fujitsu Denso Ltd Transmission communication mode recognition system
JP2796441B2 (en) * 1991-02-07 1998-09-10 キヤノン株式会社 Communication device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58164346A (en) * 1982-03-25 1983-09-29 Ricoh Co Ltd Data communication system provided with shifting-down function
JPS6331269A (en) * 1986-07-24 1988-02-09 Canon Inc Data communication equipment

Also Published As

Publication number Publication date
JPH0215779A (en) 1990-01-19

Similar Documents

Publication Publication Date Title
JP2871704B2 (en) Image communication method
US4829524A (en) Data communication apparatus
JP2801259B2 (en) Facsimile machine
US5581373A (en) Image communication apparatus having a communication error check function
US5220439A (en) Facsimile apparatus having improved memory control for error-correcting and non-error-correcting modes
JP2749821B2 (en) Facsimile machine
JPH0671245B2 (en) Equipment
JP2505832B2 (en) Data communication device
JP2637481B2 (en) Data communication device
JP2840250B2 (en) Facsimile machine
US5748333A (en) Image communication apparatus having the function of ECM (error correction mode communication)
JP2754012B2 (en) Facsimile communication method
JP2510821B2 (en) Facsimile communication method
JP2641883B2 (en) Image communication device
JP3491916B2 (en) Facsimile machine
JP2572028B2 (en) Facsimile communication system
JP2510822B2 (en) Fax machine
JP2744288B2 (en) Data communication method
JP2598048B2 (en) Communication device
JP2572027B2 (en) Facsimile machine
JP3096313B2 (en) Facsimile machine
JP2568254B2 (en) Data communication device
JPH0618427B2 (en) Image communication device
JPH0797767B2 (en) Image information receiving device
JPH073972B2 (en) Data communication device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080220

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090220

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090220

Year of fee payment: 11