JP2689745B2 - Coded data transmission processing method - Google Patents

Coded data transmission processing method

Info

Publication number
JP2689745B2
JP2689745B2 JP3053834A JP5383491A JP2689745B2 JP 2689745 B2 JP2689745 B2 JP 2689745B2 JP 3053834 A JP3053834 A JP 3053834A JP 5383491 A JP5383491 A JP 5383491A JP 2689745 B2 JP2689745 B2 JP 2689745B2
Authority
JP
Japan
Prior art keywords
data
address
read
line
modem
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3053834A
Other languages
Japanese (ja)
Other versions
JPH04270566A (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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP3053834A priority Critical patent/JP2689745B2/en
Publication of JPH04270566A publication Critical patent/JPH04270566A/en
Application granted granted Critical
Publication of JP2689745B2 publication Critical patent/JP2689745B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Information Transfer Systems (AREA)
  • Storing Facsimile Image Data (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ファクシミリ装置にお
いて、送信原稿から読み取り符号化された画像データを
伝送処理する方法の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in a method of transmitting and processing image data read and encoded from a transmission original in a facsimile machine.

【0002】[0002]

【従来の技術】電話回線を介して画像情報を送受信する
ようにしたファクシミリ装置が開発され使用されるよう
になってきたが、このようなファクシミリでは、元の画
像データに比べてデータ長を短くして伝送時間を短縮さ
せるために、図8に示したように、送信原稿から読み取
った1ライン分の画像データをランレングス(白画素あ
るいは黒画素の連続する長さ)に分解し、表1に示した
符号化テーブルに従って画像データを符号化して得られ
たAビットのデータを受信側に伝送するようになってい
る。
2. Description of the Related Art Facsimile devices capable of transmitting and receiving image information via a telephone line have been developed and used, but in such a facsimile, the data length is shorter than the original image data. In order to reduce the transmission time, as shown in FIG. 8, the image data for one line read from the transmission original is decomposed into run lengths (a continuous length of white pixels or black pixels), and Table 1 The A-bit data obtained by encoding the image data in accordance with the encoding table shown in (1) is transmitted to the receiving side.

【表1】 [Table 1]

【0003】ところで、画像データを伝送する場合に、
例えば、1ラインの画像データが全白画素である場合に
は、表1におけるEOL符号(ラインを区別するために
000000000001で表される符号)に白ランレ
ングス1728のメークアップ符号(00000011
00101)が付加されて受信側に伝送されるが、受信
側が、容量の少ない受信バッファメモリしか備えていな
いときには、伝送される符号化データを元の画像データ
に復号化して印字し、副走査を行っている間にも、次々
に符号化データが受信バッファメモリに蓄積されてい
き、印字、副走査が受信に追いつかないことになる。こ
のような不都合を避けるために、CCITT(国際電信
電話諮問委員会)では、1ラインの符号化画像データを
伝送する最小伝送時間Tmin(最小データ長Lmi
n)を規定し、符号化された1ラインのデータ長が、最
小データ長Lminよりも短いときには、差のデータ分
だけフィル信号と呼ばれるダミーデータ(0信号の連続
で構成される)を付加して伝送させることによって、受
信側の副走査に支障を来さないように時間確保を行って
いる。
By the way, when transmitting image data,
For example, when the image data of one line is all white pixels, the make-up code (00000011) of the white run length 1728 is added to the EOL code (code represented by 000000000001 to distinguish the lines) in Table 1.
00101) is added and transmitted to the receiving side, but when the receiving side has only a reception buffer memory with a small capacity, the transmitted encoded data is decoded into the original image data and printed, and the sub-scan is performed. Even while the process is being performed, encoded data is accumulated in the reception buffer memory one after another, and printing and sub-scanning cannot catch up with reception. In order to avoid such an inconvenience, CCITT (International Telegraph and Telephone Advisory Committee) has a minimum transmission time Tmin (minimum data length Lmi) for transmitting encoded image data of one line.
n) is defined, and when the encoded data length of one line is shorter than the minimum data length Lmin, dummy data called a fill signal (consisting of 0 signals) is added by the difference data. By transmitting the data as described above, the time is secured so as not to hinder the sub-scan on the receiving side.

【0004】ところで、このような、符号化画像データ
をモデムを介して電話回線に送出するには、通常、図9
に示したように、各ライン毎にEOL符号と符号化デー
タに必要なフィル信号の付加された画像データを一旦蓄
積するモデムバッファM(図では、1バイト毎に格納す
る構成としている)を、符号化回路とモデムとの間に設
けた構成とされ、モデムバッファMへのデータの書込
は、図10の(A)のフローチャート(ステップ100
0〜1002)に示したように、ライトポインタの指示
アドレスへ1バイトのデータを書き込む毎にライトポイ
ンタの指示アドレスをインクリメントする動作を書込デ
ータが終了するまで繰り返して行ない、このとき、図1
0の(B)のフローチャート(ステップ2000,20
01)に示したように、リードポインタの指示アドレス
から1バイトのデータを読み込んで回線へ送出し、リー
ドポインタの指示アドレスをインクリメントする割込処
理動作を、読出データが終了するまで繰り返して行なう
ようになっている。
By the way, in order to send such coded image data to a telephone line through a modem, it is usually necessary to use the method shown in FIG.
As shown in FIG. 5, a modem buffer M (in the figure, it is configured to store each byte) for temporarily storing the image data to which the EOL code and the fill signal necessary for the encoded data are added for each line, The data is written in the modem buffer M by being arranged between the encoding circuit and the modem.
0 to 1002), the operation of incrementing the instruction address of the write pointer every time 1-byte data is written to the instruction address of the write pointer is repeated until the write data is completed.
0 (B) flowchart (steps 2000, 20
01), 1-byte data is read from the read pointer instruction address and sent to the line, and the interrupt processing operation of incrementing the read pointer instruction address is repeated until the read data is completed. It has become.

【0005】ところが、上述したデータの書込処理で
は、符号化データの後にソフト処理によって逐一必要数
のダミーデータを書き込まなければならず、符号化され
たデータが短いほど、付加すべきダミーデータが増加す
るため、ダミーデータの付加処理に時間を要し、処理の
高速化を図ることができなかった。
However, in the above-described data writing process, the required number of dummy data must be written by software after the encoded data, and the shorter the encoded data, the more dummy data should be added. Since it increases, it takes time to add the dummy data, and the processing speed cannot be increased.

【0006】[0006]

【発明が解決しようとする課題】上記事情に鑑みて提案
される本発明方法は、1ラインの符号化データ長が規定
された最小データ長よりも短く、符号化データに多数の
ダミーデータを付加する必要がある場合でも、高速なデ
ータ処理を行えるようにした符号化データの伝送処理方
法を提供することを目的としている。
In the method of the present invention proposed in view of the above circumstances, the encoded data length of one line is shorter than the specified minimum data length, and a large number of dummy data are added to the encoded data. It is an object of the present invention to provide a coded data transmission processing method capable of performing high-speed data processing even when it is necessary.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に提案される本発明方法は、符号化された画像データを
モデムバッファに書き込むときには、ライトポインタの
指示するモデムバッファのアドレスに符号化データを格
納する毎にライトポインタの指示値をインクリメントし
ながら、1ライン分の符号化データの書き込みを行い、
その書き込みが終了したときには、1ラインの最小デー
タ長を充たすために付加すべきダミーデータに応じたア
ドレス分だけライトポインタの指示値をスキップさせる
動作を繰り返し行っており、モデムバッファに記憶され
たデータを読み出すときには、リードポインタの指示す
るモデムバッファのアドレスより符号化データあるいは
ダミーデータを読み出す毎に、そのアドレスにはダミー
データを格納させてリードポインタの指示値をインクリ
メントさせることを特徴としている。このような本発明
方法は、所定のメモリ容量を有し、リードポインタやラ
イトポインタで指示されるアドレスが最終アドレスに至
ったときには、再び先頭アドレスに戻るリングメモリで
構成されたモデムバッファを用いることにより実施でき
る。また、モデムバッファのデータの書込処理や読出処
理は、ビット単位で行なうことも可能であるが、信号処
理部の構成に応じてバイト単位の効率的な処理を行なう
こともできる。
According to the method of the present invention proposed to achieve the above object, when the encoded image data is written in the modem buffer, the encoded data is stored in the address of the modem buffer designated by the write pointer. Each time storing, the coded data for one line is written while incrementing the value indicated by the write pointer,
When the writing is completed, the operation of skipping the value indicated by the write pointer by the address corresponding to the dummy data to be added to fill the minimum data length of one line is repeatedly performed, and the data stored in the modem buffer is repeated. Is read, every time the encoded data or the dummy data is read from the address of the modem buffer designated by the read pointer, the dummy data is stored in the address and the designated value of the read pointer is incremented. Such a method of the present invention uses a modem buffer which has a predetermined memory capacity and is composed of a ring memory which returns to the head address when the address pointed to by the read pointer or the write pointer reaches the final address. Can be implemented by Further, although the writing process and the reading process of the data of the modem buffer can be performed in a bit unit, it is possible to perform an efficient process in a byte unit according to the configuration of the signal processing unit.

【0008】[0008]

【作用】本発明では、モデムバッファに符号化された画
像データを書き込む場合には、ライトポインタで指示さ
れたアドレスのメモリセルに符号化データを書き込みな
がらライトポインタの指示値をインクリメントする動作
を繰り返し行って1ライン分の符号化データの書込を行
い、その書込処理の終了した後は、書き込まれた符号化
データに後続するメモリセルには既に付加されるべきダ
ミーデータが書き込まれているので、必要量のダミーデ
ータを逐一書き込まなくても、1ラインの最小データ長
を充たすために符号化データに付加すべきダミーデータ
に応じたアドレス分だけライトポインタの指示値をスキ
ップさせるだけで、符号化データの後に瞬時に必要量の
ダミーデータが付加される。一方、モデムバッファに蓄
積された画像データをモデム側に読み出す場合には、リ
ードポインタで指示されたアドレスのメモリセルに格納
された画像データを読み出してモデム側に転送しなが
ら、画像データの読み出されたアドレスのメモリセルに
はダミーデータを格納してリードポインタの指示アドレ
スをインクリメントする動作を繰り返して行うので、画
像データの読出が行われたアドレスのメモリセルには、
書き込まれていた画像データに代わってダミーデータが
置換格納されて次のデータの書込準備が行われることに
なる。このため、データの読み出されたメモリセルに再
度符号化データを書き込む場合でも、符号化データを書
き込んだ後にライトポインタを必要量スキップするだけ
で符号化データにダミーデータを付加させることができ
る。
According to the present invention, when the encoded image data is written in the modem buffer, the operation of incrementing the value indicated by the write pointer is repeated while writing the encoded data in the memory cell at the address designated by the write pointer. After writing the coded data for one line and finishing the writing process, the dummy data to be added is already written in the memory cells subsequent to the written coded data. Therefore, even if the necessary amount of dummy data is not written one by one, it is possible to skip the indicated value of the write pointer by the address corresponding to the dummy data to be added to the encoded data to fill the minimum data length of one line. A required amount of dummy data is instantly added after the encoded data. On the other hand, when reading the image data stored in the modem buffer to the modem side, the image data stored in the memory cell at the address indicated by the read pointer is read and transferred to the modem side while reading the image data. The dummy data is stored in the memory cell of the read address and the operation of incrementing the designated address of the read pointer is repeated.
The dummy data is replaced and stored in place of the written image data, and the next data is prepared for writing. Therefore, even when the encoded data is written again to the memory cell from which the data has been read, it is possible to add the dummy data to the encoded data simply by skipping the write pointer after writing the encoded data.

【0009】[0009]

【実施例】以下に、図面を参照して本発明の実施例を説
明する。図1の(A)は、本発明方法におけるモデムバ
ッファへのデータ書込処理を説明したフローチャートで
あり、図1の(B)は、モデムバッファからのデータの
読出処理を説明したフローチャートを示したもので、図
2の(A),(B)のモデムバッファの模式図を併せて
参照しながら動作を説明する。尚、データの転送処理を
1ビット単位で行なうものとしている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1A is a flow chart for explaining the data writing process to the modem buffer in the method of the present invention, and FIG. 1B is a flow chart for explaining the data reading process from the modem buffer. The operation will be described with reference to the schematic diagrams of the modem buffers shown in FIGS. 2A and 2B. The data transfer process is performed in 1-bit units.

【0010】1.モデムバッファへのデータの書込処理
動作(図1の(A)ステップ100〜105、図2の
(A)参照)。初期状態では、モデムバッファの全て
のメモリセルにダミーデータ(0信号)が書き込まれて
おり、リードポインタ及びライトポインタは、各々アド
レス0を指示している。EOL符号(ライン終端符
号)をライトポインタの指示アドレスから書き込み、書
き込みが終了すると、ライトポインタの指示値をEOL
符号の書き込まれた次のアドレスに移動させる。符号
化された画像データをライトポインタの指示アドレスの
メモリセルに書き込みながら、ライトポインタの指示値
をインクリメントさせる動作を、1ライン分の符号化デ
ータの書き込みが終了するまで繰り返して行なう。1
ライン分の符号化データの書き込みが終了すると、その
1ラインの最小データ長を充たすために符号化データに
付加すべきダミーデータに応じたアドレス分だけライト
ポインタの指示値をスキップさせる。上記〜の動作
を繰り返し行なうことによって、送信原稿の各ラインの
符号化された画像データを順次モデムバッファに蓄積す
る。そして、このモデムバッファへのデータの書込処理
が行われている最中に、モデムのデータ伝送速度によっ
て定まる所定の周期毎に割込処理が行われて、モデムバ
ッファからのデータの読出処理が実行される。
[0010] 1. Data write processing operation to the modem buffer (see (A) steps 100 to 105 in FIG. 1 and (A) in FIG. 2). In the initial state, dummy data (0 signal) is written in all the memory cells of the modem buffer, and the read pointer and the write pointer point to the address 0, respectively. The EOL code (line end code) is written from the write pointer instruction address, and when the writing is completed, the write pointer instruction value is changed to EOL.
Move to the next address where the code is written. The operation of incrementing the value indicated by the write pointer while writing the encoded image data in the memory cell at the address designated by the write pointer is repeated until the writing of the encoded data for one line is completed. 1
When the writing of the encoded data for the line is completed, the designated value of the write pointer is skipped by the address corresponding to the dummy data to be added to the encoded data in order to satisfy the minimum data length of the one line. By repeating the operations 1 to 3, the coded image data of each line of the transmission original is sequentially stored in the modem buffer. Then, while the process of writing data to the modem buffer is being performed, an interrupt process is performed at a predetermined cycle determined by the data transmission speed of the modem, and a process of reading data from the modem buffer is performed. To be executed.

【0011】2.モデムバッファからのデータの読出処
理動作(図1の(B)ステップ200〜202、図2の
(B)参照)。リードポインタの指示アドレスのメモ
リセルに書き込まれたデータを読み出してモデム側に送
出する。リードポインタの指示アドレスのメモリセル
にダミーデータを書き込んだ後に、リードポインタの指
示値をインクリメントさせる。このような割込処理を、
読出データが終了するまで(リードポインタの指示値が
ライトポインタの指示値になるまで)各メモリセル毎に
繰り返し行なう。このように、本発明方法を実施する場
合、初期状態においてモデムバッファの全てのメモリセ
ルにダミーデータの書き込みをしておけば、符号化デー
タが既に書き込まれた次のアドレスを指示しているライ
トポインタを、付加すべきダミーデータに応じた値だけ
スキップさせるだけで瞬時に符号化データにダミーデー
タを付加することが可能となる。そして、このような本
発明では、付加すべきダミーデータが長くなるほど、従
来のようにダミーデータをソフト処理によって逐一書き
込む場合に比べて、処理速度を向上させることができ
る。また、モデムバッファからモデム側にデータが読み
出される毎にダミーデータが書き込まれて次のデータの
書き込み準備が行なわれるので、データが読み出された
メモリセルはデータの書込に再使用できる。
2. A process of reading data from the modem buffer (see steps 200 to 202 in FIG. 1B and FIG. 2B). The data written in the memory cell at the address designated by the read pointer is read and sent to the modem side. After writing the dummy data to the memory cell at the address designated by the read pointer, the value designated by the read pointer is incremented. Such interrupt processing,
This is repeated for each memory cell until the read data is completed (until the indicated value of the read pointer becomes the indicated value of the write pointer). As described above, when the method of the present invention is carried out, if the dummy data is written in all the memory cells of the modem buffer in the initial state, the write address indicating the next address where the encoded data has already been written is written. The dummy data can be added to the encoded data instantly by simply skipping the pointer by a value corresponding to the dummy data to be added. In the present invention, as the dummy data to be added becomes longer, the processing speed can be improved as compared with the conventional case where the dummy data is written by software processing one by one. Also, each time data is read from the modem buffer to the modem side, dummy data is written and preparations for writing the next data are made. Therefore, the memory cell from which the data has been read can be reused for writing the data.

【0012】図3は、上述した本発明方法を実施するた
めのファクシミリ装置の要部構成例をブロック図をもっ
て示したもので、図において、10は各部の信号処理を
行なう信号処理部、11は光源(不図示)で照射された
送信原稿の反射光を1ライン毎に読み取って2値化され
た画像データを出力する撮像素子、12は撮像素子で得
られた画像データをランレングスデータに変換するラン
レングス変換部、13はランレングスデータ値を積算す
るランレングスカウンタ、14は符号化テーブル15を
参照してランレングスデータを符号に変換する符号化回
路である。16は符号化されたデータを一時的に記憶す
る符号レジスタ、17は符号化データの符号長を減算カ
ウントする符号長カウンタ、18は1ライン分の符号化
データの符号長を積算するライン符号長カウンタであ
る。また、19は符号化データを1バイト毎にモデムバ
ッファ20に転送するテンポラリバッファ、21はモデ
ムバッファ20に記憶された画像データを読み出して変
調した画像信号を電話回線Lに送出するモデム、22は
モデムバッファ20のライトアドレスを指示するライト
ポインタ及びリードアドレスを指示するリードポインタ
を形成するポインタレジスタである。
FIG. 3 is a block diagram showing an example of the essential configuration of a facsimile apparatus for carrying out the above-described method of the present invention. In the figure, 10 is a signal processing unit for performing signal processing of each unit, and 11 is An image sensor that reads the reflected light of the transmission original illuminated by a light source (not shown) line by line and outputs binarized image data. Reference numeral 12 converts the image data obtained by the image sensor into run length data. The run length conversion unit 13 is a run length counter that integrates the run length data values. Reference numeral 14 is an encoding circuit that refers to the encoding table 15 to convert the run length data into a code. Reference numeral 16 is a code register for temporarily storing encoded data, 17 is a code length counter for subtracting and counting the code length of encoded data, and 18 is a line code length for accumulating the code length of encoded data for one line. It is a counter. Further, 19 is a temporary buffer for transferring encoded data to the modem buffer 20 byte by byte, 21 is a modem for reading out the image data stored in the modem buffer 20 and transmitting the modulated image signal to the telephone line L, and 22 is It is a pointer register that forms a write pointer that indicates a write address of the modem buffer 20 and a read pointer that indicates a read address.

【0013】ランレングス変換部12は、図4に示した
ように、撮像素子11で読み取られた送信原稿Pの1ラ
インL1の画像データを白ラン及び黒ラン毎にランレン
グスに分解したランレングスデータを求め、信号処理部
10の指示に応じて、白ラン450、黒ラン90・・・
などのランレングスデータを順次出力するようになって
いる。また、ランレングスカウンタ13は、ランレング
ス変換部12からランレングスデータが出力される毎に
そのデータ値を積算し、積算値が1ライン分の画像デー
タ長(A4定尺紙サイズでは1728ビット)になる
と、信号処理部10にライン終了信号を出力する。符号
長カウンタ17は、信号処理部10に伝送された符号化
データのデータ長の値にセットされ、信号処理部10に
よって符号レジスタ16からテンポラリバッファ19に
1バイトの符号データが転送される毎に減算を行なう動
作をする。ライン符号長カウンタ18は、符号化回路1
4から符号化データが出力される毎に、信号処理部10
で求められた符号化データのデータ長を積算し、1ライ
ン分の符号化が終了したときの符号化データ長をカウン
トする。ポインタレジスタ22は、図2で説明したよう
に、モデムバッファ20に既にデータが書き込まれたメ
モリセルの次のアドレスを指示するライトポインタと、
次にデータの読出を開始するアドレスを指示するリード
ポインタを有しており、信号処理部10によってアドレ
スが順次インクリメントされてモデムバッファの最終ア
ドレスに至ると、再び先頭アドレスに戻るようにされて
いる。
As shown in FIG. 4, the run length conversion unit 12 decomposes the image data of one line L1 of the transmission original P read by the image pickup device 11 into run lengths for each white run and black run. Data is obtained, and according to the instruction from the signal processing unit 10, the white run 450, the black run 90 ...
The run length data such as is sequentially output. The run-length counter 13 integrates the run-length data each time the run-length converter 12 outputs the run-length data, and the integrated value is the image data length for one line (1728 bits for A4 standard size paper size). Then, a line end signal is output to the signal processing unit 10. The code length counter 17 is set to the value of the data length of the encoded data transmitted to the signal processing unit 10, and each time the signal processing unit 10 transfers 1-byte code data from the code register 16 to the temporary buffer 19. Performs the operation of subtraction. The line code length counter 18 includes the encoding circuit 1
4 every time encoded data is output from the signal processing unit 10
The data lengths of the coded data obtained in step 1 are added up to count the coded data length when the coding for one line is completed. The pointer register 22 is, as described with reference to FIG. 2, a write pointer that points to the next address of a memory cell in which data has already been written in the modem buffer 20,
Next, it has a read pointer for designating an address for starting the reading of data, and when the address is sequentially incremented by the signal processing unit 10 to reach the final address of the modem buffer, it returns to the leading address again. .

【0014】このような構成のファクシミリ装置1の動
作を、図5及び図6のフローチャートを参照して説明す
る。 1.モデムバッファ20への符号化データの書込処理動
作(図5ステップ300〜315参照)。ライン符号
長カウンタ18及びランレングスカウンタ13のカウン
ト値を0に初期設定する。信号処理部10では、符号
化テーブル15を参照してEOL符号を読み出し、読み
出したEOL符号を符号レジスタ16、テンポラリバッ
ファ19を介してライトポインタで指示されるアドレス
のモデムバッファ20に1バイト毎に転送して、ライト
ポインタをインクリメントする。信号処理部10で
は、ランレングス変換回路12に制御信号を伝送し、先
頭のランレングスデータを符号化回路14に伝送して符
号化を行なわせ、符号化されたデータを符号レジスタ1
6に格納する。信号処理部10では、符号レジスタ1
6に格納した符号化データの符号長データを求めて符号
長カウンタ17にセットするとともに、求めた符号長デ
ータをライン符号長カウンタに加算する。信号処理部
10では、符号レジスタに格納された符号化データのう
ち、1バイト分をテンポラリバッファ19を介してモデ
ムバッファ20のライトポインタで指示されるアドレス
に転送して書き込み、この後、ライトポインタの指示ア
ドレスをインクリメントするとともに符号長カウンタ1
7のカウント値をデクリメントする一連の動作を、符号
長カウンタ17のカウント値が0になるまで繰り返して
行う。これによって、1つのランレングスデータに対応
した符号がモデムバッファに書き込まれる。この後、
信号処理部10では、ランレングスカウンタ13に制御
信号を出力して、ランレングス変換部12から出力され
ているランレングスデータをランレングスカウンタ13
に加算させ、ランレングスカウンタ13からライン終了
信号が出力されるか否か監視する。監視の結果、ラン
レングスカウンタ13のカウント値が規定ランレングス
(1728ビット)に達しておらずライン終了信号が出
力されないときには、上記に戻って同一動作を繰り返
して行う。このようにして符号化データの書込処理を
繰り返し、ランレングスカウンタ13のカウント値が規
定ランレングスに達してライン終了信号が出力される
と、信号処理部10では、ライン符号長カウンタ18の
カウント値を参照し、そのカウント値が1ラインの最小
データ長に達していないときには、その差分だけポイン
タレジスタ22のライトポインタの指示値をスキップさ
せる。しかし、ライン符号長カウンタ18のカウント値
が規定値に達しているときには、ライトポインタのスキ
ップを行わず、この後に、ページエンドでないときに
は、再び上記の動作に戻るが、ページエンドであれば
書込処理を終了する。上記動作を行なうことによって、
送信原稿の各ラインの符号化された画像データが順次モ
デムバッファに蓄積されるが、このモデムバッファへの
データの書込処理が行われている最中に、割込処理によ
って、モデムバッファからのデータの読出処理が実行さ
れる。
The operation of the facsimile apparatus 1 having such a configuration will be described with reference to the flow charts of FIGS. 5 and 6. 1. An operation of writing encoded data into the modem buffer 20 (see steps 300 to 315 in FIG. 5). The count values of the line code length counter 18 and the run length counter 13 are initialized to 0. In the signal processing unit 10, the EOL code is read by referring to the encoding table 15, and the read EOL code is read through the code register 16 and the temporary buffer 19 into the modem buffer 20 at the address designated by the write pointer for each byte. Transfer and increment the write pointer. In the signal processing unit 10, a control signal is transmitted to the run-length conversion circuit 12, the run-length data at the head is transmitted to the encoding circuit 14 for encoding, and the encoded data is encoded register 1
6 is stored. In the signal processing unit 10, the code register 1
The code length data of the encoded data stored in 6 is obtained and set in the code length counter 17, and the obtained code length data is added to the line code length counter. In the signal processing unit 10, one byte of the encoded data stored in the code register is transferred to the address designated by the write pointer of the modem buffer 20 via the temporary buffer 19 and written, and then the write pointer is written. Code length counter 1
A series of operations for decrementing the count value of 7 is repeated until the count value of the code length counter 17 becomes 0. Thereby, the code corresponding to one run length data is written in the modem buffer. After this,
The signal processing unit 10 outputs a control signal to the run length counter 13 and outputs the run length data output from the run length conversion unit 12 to the run length counter 13.
To monitor whether or not a line end signal is output from the run length counter 13. As a result of monitoring, when the count value of the run length counter 13 has not reached the specified run length (1728 bits) and the line end signal is not output, the procedure returns to the above and the same operation is repeated. In this way, when the coded data writing process is repeated and the count value of the run length counter 13 reaches the specified run length and the line end signal is output, the signal processing unit 10 counts the line code length counter 18. When the count value is referred to and the count value does not reach the minimum data length of one line, the value indicated by the write pointer of the pointer register 22 is skipped by the difference. However, when the count value of the line code length counter 18 has reached the specified value, the write pointer is not skipped, and after that, when it is not the page end, the operation returns to the above operation again, but if it is the page end, the write operation is performed. The process ends. By performing the above operation,
The coded image data of each line of the transmission document is sequentially accumulated in the modem buffer, and during the process of writing data to this modem buffer, the interruption process from the modem buffer is performed by the interrupt process. Data read processing is executed.

【0015】2.モデムバッファ20からの画像データ
の読出処理動作(図6ステップ400〜404参照)。
モデム21から信号処理部10に割込信号を出力する
と、信号処理部10では、上述した画像データの書込処
理を中断し、モデムバッファ20のリードポインタの指
示アドレスの1バイト分のデータをモデム21に出力し
て電話回線へ送出させる。続いて、信号処理部10で
は、リードポインタの指示アドレスにダミーデータ(0
信号の連続で成るフィル信号)を書き込んだ後、リード
ポインタの指示アドレスとライトポインタの指示アドレ
スとが同一でなければ、リードポインタの指示アドレス
をインクリメントするが、両ポインタの指示アドレスが
同一のときにはリードポインタのインクリメントを行わ
ない。これら,の動作を、割込信号が出力される毎
に、モデムバッファ20の画像データが全て読み出され
て送信されるまで繰り返して行なう。尚、上記説明で
は、リードポインタとライトポインタの指示アドレスが
同一になると、読み出しを行ってもリードポインタのイ
ンクリメントを行わないようにされているが、この処理
によって、自動的に同一アドレスのフィル信号が繰り返
してモデムから送出されるので、例えば、送信原稿の読
取処理が紙づまりなどの原因で遅れたような場合でも、
送信されるフィル信号によって、直ちにエラーが発生す
ることを防止することができる。
2. Image data read processing operation from the modem buffer 20 (see steps 400 to 404 in FIG. 6).
When the interrupt signal is output from the modem 21 to the signal processing unit 10, the signal processing unit 10 interrupts the above-described image data writing process, and the 1-byte data of the instruction address of the read pointer of the modem buffer 20 is transferred to the modem. It is output to 21 and sent to the telephone line. Then, in the signal processing unit 10, the dummy data (0
If the read pointer instruction address and write pointer instruction address are not the same after writing a fill signal (consecutive signal), the read pointer instruction address is incremented, but when both pointer instruction addresses are the same. Do not increment the read pointer. These operations are repeated each time an interrupt signal is output until all the image data in the modem buffer 20 is read and transmitted. In the above description, when the read pointer and the write pointer have the same designated address, the read pointer is not incremented even if the read is performed. However, this processing automatically fills the fill signal of the same address. Is repeatedly sent from the modem, even if the reading process of the transmitted document is delayed due to a paper jam, for example,
The transmitted fill signal can prevent an error from occurring immediately.

【0016】このように、本発明方法を実施するための
ファクシミリ装置によれば、符号化データに付加すべき
ダミーデータ長に応じた分だけライトポインタの指示ア
ドレスをスキップするだけで、瞬時に符号化データにフ
ィル信号を付加させることが可能となり、また、モデム
バッファからモデム側にデータが読み出される毎にダミ
ーデータが書き込まれて次のデータの書込セルとしての
準備が行なわれるようになっているので、所定容量のリ
ングメモリなどをモデムバッファとして有効に利用する
ことができる。
As described above, according to the facsimile apparatus for carrying out the method of the present invention, the code can be instantly coded only by skipping the designated address of the write pointer according to the dummy data length to be added to the coded data. It becomes possible to add a fill signal to the encoded data, and each time data is read from the modem buffer to the modem side, dummy data is written and preparations are made as a write cell for the next data. Therefore, a ring memory or the like having a predetermined capacity can be effectively used as a modem buffer.

【0017】以上の説明では、1ライン毎の画像データ
の伝送時間を、規定された最小伝送時間に合致させるよ
うにフィル信号を付加する場合について述べたが、この
ような構成は、受信側の受信バッファメモリ容量が少な
い場合に有効であるが、符号化データ長が最小データ長
に比べて非常に長い場合もあるため、必ずしも、各ライ
ンを最小データ長にする必要がない場合も多い。従っ
て、受信側において、例えば、画像データの50ライン
分程度のデータを格納可能な受信バッファメモリを備え
ている構成では、各ライン毎に逐一フィル信号を付加し
なくても、50ライン分の符号化データの後に、まとめ
て必要量のダミーデータを付加させるような方法も可能
である。
In the above description, the case where the fill signal is added so that the transmission time of the image data for each line matches the specified minimum transmission time has been described. This is effective when the receiving buffer memory capacity is small, but since the encoded data length may be much longer than the minimum data length, it is not always necessary to make each line the minimum data length. Therefore, for example, in the configuration in which the receiving side is provided with a receiving buffer memory capable of storing data for about 50 lines of image data, the code for 50 lines is not required to be added for each line. A method of collectively adding a required amount of dummy data after the converted data is also possible.

【0018】図7は、このようなダミーデータの付加方
法を示したもので、モデムバッファには、1ライン毎の
符号化データがEOLで区切られて50ライン分順次格
納され、50ライン目の符号化データの後には、50ラ
イン分の印字、副走査に必要な時間調整を行なうために
必要な最低データ長から符号化データの合計データ長を
差し引いたダミーデータ(フィル信号)がまとめて付加
されるようになっており、1ライン毎にフィルを付加す
る場合に比べて処理を簡略化できる。従って、単にライ
トポインタの指示アドレスを必要な値だけスキップする
だけで瞬時にダミーデータを付加できるので、一層画像
データの処理速度の向上を図ることができる。
FIG. 7 shows a method for adding such dummy data. In the modem buffer, encoded data for each line is divided by EOL and sequentially stored for 50 lines, and the 50th line is stored. After the encoded data, dummy data (fill signal) obtained by subtracting the total data length of the encoded data from the minimum data length necessary for printing the 50 lines and adjusting the time required for the sub-scan is added together. The processing can be simplified as compared with the case where the fill is added for each line. Therefore, the dummy data can be added instantly by simply skipping the required value of the write pointer, and the processing speed of the image data can be further improved.

【0019】[0019]

【発明の効果】以上の説明から理解されるように、本発
明によれば、1ラインの符号化されたデータ長が規定さ
れた最小データ長よりも短く、符号化データにダミーデ
ータを付加する必要がある場合でも、ライトポインタの
指示値をスキップするだけで瞬時にダミーデータを付加
させることができるので、従来のように逐一ダミーデー
タを書き込む処理に比べて、付加すべきダミーデータ長
が長くなるほど処理速度を向上させることが可能とな
り、また、モデムバッファからデータを読み出すときに
は自動的にダミーデータを書き込んで次のデータの書込
準備が行なわれるので、メモリ容量の規定されたモデム
バッファであってもメモリセルを繰り返し使用して有効
に利用することができる。
As can be understood from the above description, according to the present invention, the encoded data length of one line is shorter than the specified minimum data length, and dummy data is added to the encoded data. Even if it is necessary, dummy data can be added instantly simply by skipping the write pointer indication value, so the length of dummy data to be added is longer than in the conventional writing of dummy data. The processing speed can be improved as much as possible, and when reading data from the modem buffer, dummy data is automatically written to prepare for writing the next data, so it is a modem buffer with a specified memory capacity. However, the memory cells can be used repeatedly by effectively using them.

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

【図1】(A),(B)は本発明方法を説明するフロー
チャートである。
FIGS. 1A and 1B are flowcharts illustrating the method of the present invention.

【図2】(A),(B)は本発明方法を模式的に示した
説明図である。
2A and 2B are explanatory views schematically showing the method of the present invention.

【図3】図1に示した本発明方法を実施するためのファ
クシミリ装置の要部構成例図である。
FIG. 3 is a diagram showing a configuration example of a main part of a facsimile apparatus for carrying out the method of the present invention shown in FIG.

【図4】図3に示したファクシミリ装置におけるランレ
ングス変換部の動作説明図である。
4 is an operation explanatory diagram of a run length conversion unit in the facsimile apparatus shown in FIG.

【図5】図3に示したファクシミリ装置におけるモデム
バッファへの書込処理の動作を説明するフローチャート
である。
5 is a flowchart illustrating an operation of a writing process to a modem buffer in the facsimile device shown in FIG.

【図6】図3に示したファクシミリ装置におけるモデム
バッファからの読出処理の動作を説明するフローチャー
トである。
FIG. 6 is a flowchart illustrating an operation of a read process from a modem buffer in the facsimile device shown in FIG.

【図7】本発明方法とは異なる特殊なフィルの付加方法
の説明図である。
FIG. 7 is an explanatory diagram of a special fill addition method different from the method of the present invention.

【図8】画像データの符号化の説明図である。FIG. 8 is an explanatory diagram of encoding of image data.

【図9】従来のモデムバッファの書込処理及び読出処理
の説明図である。
FIG. 9 is an explanatory diagram of a writing process and a reading process of a conventional modem buffer.

【図10】(A),(B)は、従来のモデムバッファの
書込処理及び読出処理を説明するフローチャートであ
る。
10A and 10B are flowcharts for explaining a conventional modem buffer write process and read process.

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

22 ポインタレジスタ(ライトポインタ、リードポイ
ンタ) 20 モデムバッファ
22 pointer register (write pointer, read pointer) 20 modem buffer

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ライトポインタで指示したモデムバッファ
のアドレスに符号化データを格納する毎にライトポイン
タをインクリメントし、1ライン分の符号化データの書
込が終了したときには、1ラインの最小データ長を充た
すために付加すべきダミーデータに応じたアドレス分だ
けライトポインタをスキップさせる一方、リードポイン
タの指すモデムバッファのアドレスよりデータを読み出
す毎に、そのアドレスにはダミーデータを格納させてリ
ードポインタをインクリメントさせることを特徴とする
符号化データの伝送処理方法。
1. A minimum data length of one line when the write pointer is incremented every time the encoded data is stored in the address of the modem buffer designated by the write pointer and the writing of the encoded data for one line is completed. Each time the data is read from the address of the modem buffer pointed to by the read pointer, dummy data is stored in that address and the read pointer is stored while skipping the write pointer by the address corresponding to the dummy data to be added to A transmission processing method of encoded data, characterized by incrementing.
JP3053834A 1991-02-25 1991-02-25 Coded data transmission processing method Expired - Fee Related JP2689745B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3053834A JP2689745B2 (en) 1991-02-25 1991-02-25 Coded data transmission processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3053834A JP2689745B2 (en) 1991-02-25 1991-02-25 Coded data transmission processing method

Publications (2)

Publication Number Publication Date
JPH04270566A JPH04270566A (en) 1992-09-25
JP2689745B2 true JP2689745B2 (en) 1997-12-10

Family

ID=12953822

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3053834A Expired - Fee Related JP2689745B2 (en) 1991-02-25 1991-02-25 Coded data transmission processing method

Country Status (1)

Country Link
JP (1) JP2689745B2 (en)

Also Published As

Publication number Publication date
JPH04270566A (en) 1992-09-25

Similar Documents

Publication Publication Date Title
US4845569A (en) Image transmission or encoding apparatus
GB2208988A (en) Facsimile system
JP2689745B2 (en) Coded data transmission processing method
GB2148561A (en) Image processing system
GB2148560A (en) Image processing system
JPS6230547B2 (en)
JPS6351429B2 (en)
JP2566905B2 (en) Image transmission method
JP2563297B2 (en) Fax machine
JPS61240776A (en) Facsimile equipment
JPS61176255A (en) Picture transmitter
JP2563731B2 (en) Fax machine
JP3395924B2 (en) Image input control device
JPS5927503B2 (en) calligraphy communication device
JPH0670137A (en) Facsimile equipment
JP2574609B2 (en) Facsimile machine
JPH0420552B2 (en)
JPH03136575A (en) Facsimile coder
JPH03293867A (en) Facsimile equipment
JPS61176270A (en) Picture transmitter
JPH0260373A (en) Encoding circuit for facsimile equipment
JPH0773334B2 (en) Information processing equipment
JPH0832814A (en) Facsimile equipment
JPH05244431A (en) Facsimile equipment
KR19990011330A (en) Multifunction machine capable of color scan

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970729

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees