JPH04270566A - Transmission processing method for coded data - Google Patents

Transmission processing method for coded data

Info

Publication number
JPH04270566A
JPH04270566A JP3053834A JP5383491A JPH04270566A JP H04270566 A JPH04270566 A JP H04270566A JP 3053834 A JP3053834 A JP 3053834A JP 5383491 A JP5383491 A JP 5383491A JP H04270566 A JPH04270566 A JP H04270566A
Authority
JP
Japan
Prior art keywords
data
address
read
pointer
line
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.)
Granted
Application number
JP3053834A
Other languages
Japanese (ja)
Other versions
JP2689745B2 (en
Inventor
Chikayoshi Yazaki
矢崎 誓良
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)

Abstract

PURPOSE:To attain high processing even when a coded data length of one line is shorter than a specified minimum length and lots of dummy data is added to the coded data by storing a dummy data to an address of a MODEM buffer every time a data is read so as to increment a read pointer. CONSTITUTION:A pointer register 22 forms a write pointer pointing out a write address of a MODEM buffer 20 and a read pointer pointing out a read address of the MODEM buffer 20. Then every time a coded data is stored to an address of the MODEM buffer 20, the write pointer is incremented to skip the write pointer by an address in response to the dummy data to be added at the end of write by one line. On the other hand, every time a data is read from the address of the MODEM buffer 20 pointed out by the read pointer by the interrupt processing, the dummy data is stored in the address.

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 for transmitting encoded image data read from a transmission document in a facsimile machine.

【0002】0002

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

【表1】[Table 1]

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

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

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

【0006】[0006]

【発明が解決しようとする課題】上記事情に鑑みて提案
される本発明方法は、1ラインの符号化データ長が規定
された最小データ長よりも短く、符号化データに多数の
ダミーデータを付加する必要がある場合でも、高速なデ
ータ処理を行えるようにした符号化データの伝送処理方
法を提供することを目的としている。
[Problems to be Solved by the Invention] In view of the above circumstances, the method of the present invention is proposed in which 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 method for transmitting encoded data that enables high-speed data processing even when it is necessary to perform data processing.

【0007】[0007]

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

【0008】[0008]

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

【0009】[0009]

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

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

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

【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 configuration of main parts of a facsimile machine for carrying out the above-described method of the present invention. An image sensor 12 reads the reflected light of the transmission original illuminated by a light source (not shown) line by line and outputs binarized image data, and 12 converts the image data obtained by the image sensor into run length data. 13 is a run-length counter that integrates run-length data values; and 14 is an encoding circuit that converts the run-length data into codes by referring to the encoding table 15. 16 is a code register that temporarily stores encoded data, 17 is a code length counter that subtracts and counts the code length of encoded data, and 18 is a line code length that adds up the code length of one line of encoded data. It is a counter. Further, 19 is a temporary buffer that transfers encoded data byte by byte to the modem buffer 20, 21 is a modem that reads the image data stored in the modem buffer 20 and sends the modulated image signal to the telephone line L, and 22 is a This 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は、符号化回路14
から符号化データが出力される毎に、信号処理部10で
求められた符号化データのデータ長を積算し、1ライン
分の符号化が終了したときの符号化データ長をカウント
する。ポインタレジスタ22は、図2で説明したように
、モデムバッファ20に既にデータが書き込まれたメモ
リセルの次のアドレスを指示するライトポインタと、次
にデータの読出を開始するアドレスを指示するリードポ
インタを有しており、信号処理部10によってアドレス
が順次インクリメントされてモデムバッファの最終アド
レスに至ると、再び先頭アドレスに戻るようにされてい
る。
As shown in FIG. 4, the run length converter 12 converts the image data of one line L1 of the transmission document P read by the image sensor 11 into run lengths for each white run and black run. Data is obtained, and according to instructions from the signal processing unit 10, white run 450, black run 90, etc.
It is designed to output run length data sequentially. In addition, the run-length counter 13 integrates the data value every time the run-length data is output from the run-length converter 12, and the integrated value is the image data length for one line (1728 bits for A4 standard paper size). When this happens, a line end signal is output to the signal processing section 10. The code length counter 17 is set to the data length value of the encoded data transmitted to the signal processing unit 10, and the signal processing unit 10 stores 1 from the code register 16 into the temporary buffer 19.
A subtraction operation is performed each time a byte of code data is transferred. The line code length counter 18 is connected to the encoding circuit 14.
Each time encoded data is output from the signal processor 10, the data length of the encoded data determined by the signal processing unit 10 is integrated, and the encoded data length when encoding for one line is completed is counted. As explained in FIG. 2, the pointer register 22 includes a write pointer that indicates the next address of a memory cell in which data has already been written to the modem buffer 20, and a read pointer that indicates the address from which reading of data will start next. The address is sequentially incremented by the signal processing unit 10, and when it reaches the final address of the modem buffer, it returns to the first 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に伝送して符号
化を行なわせ、符号化されたデータを符号レジスタ16
に格納する。■信号処理部10では、符号レジスタ16
に格納した符号化データの符号長データを求めて符号長
カウンタ17にセットするとともに、求めた符号長デー
タをライン符号長カウンタに加算する。■信号処理部1
0では、符号レジスタに格納された符号化データのうち
、1バイト分をテンポラリバッファ19を介してモデム
バッファ20のライトポインタで指示されるアドレスに
転送して書き込み、この後、ライトポインタの指示アド
レスをインクリメントするとともに符号長カウンタ17
のカウント値をデクリメントする一連の動作を、符号長
カウンタ17のカウント値が0になるまで繰り返して行
う。これによって、1つのランレングスデータに対応し
た符号がモデムバッファに書き込まれる。■この後、信
号処理部10では、ランレングスカウンタ13に制御信
号を出力して、ランレングス変換部12から出力されて
いるランレングスデータをランレングスカウンタ13に
加算させ、ランレングスカウンタ13からライン終了信
号が出力されるか否か監視する。■監視の結果、ランレ
ングスカウンタ13のカウント値が規定ランレングス(
1728ビット)に達しておらずライン終了信号が出力
されないときには、上記■に戻って同一動作を繰り返し
て行う。■このようにして符号化データの書込処理を繰
り返し、ランレングスカウンタ13のカウント値が規定
ランレングスに達してライン終了信号が出力されると、
信号処理部10では、ライン符号長カウンタ18のカウ
ント値を参照し、そのカウント値が1ラインの最小デー
タ長に達していないときには、その差分だけポインタレ
ジスタ22のライトポインタの指示値をスキップさせる
。しかし、ライン符号長カウンタ18のカウント値が規
定値に達しているときには、ライトポインタのスキップ
を行わず、この後に、ページエンドでないときには、再
び上記■の動作に戻るが、ページエンドであれば書込処
理を終了する。上記動作を行なうことによって、送信原
稿の各ラインの符号化された画像データが順次モデムバ
ッファに蓄積されるが、このモデムバッファへのデータ
の書込処理が行われている最中に、割込処理によって、
モデムバッファからのデータの読出処理が実行される。
The operation of the facsimile machine 1 having such a configuration will be explained with reference to the flowcharts shown in FIGS. 5 and 6. 1. Writing processing operation of encoded data to the modem buffer 20 (see steps 300 to 315 in FIG. 5). (2) Initialize the count values of the line code length counter 18 and run length counter 13 to 0. ■The signal processing unit 10 reads the EOL code by referring to the encoding table 15, and transfers the read EOL code to the modem buffer 20 at the address indicated by the write pointer via the code register 16 and the temporary buffer 19, one byte at a time. and increment the write pointer. ■The signal processing unit 10 transmits a control signal to the run-length conversion circuit 12, transmits the first run-length data to the encoding circuit 14 for encoding, and stores the encoded data in the code register 16.
Store in. ■In the signal processing unit 10, the code register 16
The code length data of the encoded data stored in is determined and set in the code length counter 17, and the determined code length data is added to the line code length counter. ■Signal processing section 1
0, one byte of the encoded data stored in the code register is transferred and written to the address indicated by the write pointer of the modem buffer 20 via the temporary buffer 19, and then written to the address indicated by the write pointer. is incremented and the code length counter 17 is incremented.
A series of operations for decrementing the count value of the code length counter 17 is repeated until the count value of the code length counter 17 becomes zero. As a result, a code corresponding to one run-length data is written into the modem buffer. ■After that, the signal processing section 10 outputs a control signal to the run length counter 13 to cause the run length counter 13 to add the run length data output from the run length conversion section 12, so that the run length counter 13 outputs a control signal. Monitor whether a termination signal is output. ■As a result of monitoring, the count value of the run length counter 13 has reached the specified run length (
1728 bits) and the line end signal is not output, the process returns to step (2) above and repeats the same operation. ■In this way, the write process of encoded data is repeated, and when the count value of the run length counter 13 reaches the specified run length and a line end signal is output,
The signal processing unit 10 refers to the count value of the line code length counter 18, and when the count value does not reach the minimum data length of one line, the indicated value of 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 this, if it is not the page end, the operation returns to the above operation (2), but if it is the page end, the write pointer is not skipped. Finish the loading process. By performing the above operations, the encoded image data of each line of the transmitted document is stored in the modem buffer in sequence, but an interrupt occurs while the data is being written to the modem buffer. By processing,
A process of reading data from the modem buffer is executed.

【0015】2.モデムバッファ20からの画像データ
の読出処理動作(図6ステップ400〜404参照)。 ■モデム21から信号処理部10に割込信号を出力する
と、信号処理部10では、上述した画像データの書込処
理を中断し、モデムバッファ20のリードポインタの指
示アドレスの1バイト分のデータをモデム21に出力し
て電話回線へ送出させる。■続いて、信号処理部10で
は、リードポインタの指示アドレスにダミーデータ(0
信号の連続で成るフィル信号)を書き込んだ後、リード
ポインタの指示アドレスとライトポインタの指示アドレ
スとが同一でなければ、リードポインタの指示アドレス
をインクリメントするが、両ポインタの指示アドレスが
同一のときにはリードポインタのインクリメントを行わ
ない。これら■,■の動作を、割込信号が出力される毎
に、モデムバッファ20の画像データが全て読み出され
て送信されるまで繰り返して行なう。尚、上記説明では
、リードポインタとライトポインタの指示アドレスが同
一になると、読み出しを行ってもリードポインタのイン
クリメントを行わないようにされているが、この処理に
よって、自動的に同一アドレスのフィル信号が繰り返し
てモデムから送出されるので、例えば、送信原稿の読取
処理が紙づまりなどの原因で遅れたような場合でも、送
信されるフィル信号によって、直ちにエラーが発生する
ことを防止することができる。
2. Image data reading processing operation from modem buffer 20 (see steps 400 to 404 in FIG. 6). ■When an interrupt signal is output from the modem 21 to the signal processing section 10, the signal processing section 10 interrupts the above-mentioned image data writing process and writes 1 byte of data at the address indicated by the read pointer of the modem buffer 20. It is output to the modem 21 and transmitted to the telephone line. ■Subsequently, in the signal processing unit 10, dummy data (0
After writing the fill signal (consisting of a series of signals), if the read pointer's designated address and the write pointer's designated address are not the same, the read pointer's designated address is incremented, but if the designated addresses of both pointers are the same, Do not increment the read pointer. These operations (1) and (2) are repeated every time an interrupt signal is output until all the image data in the modem buffer 20 is read out and transmitted. In the above explanation, if the read pointer and write pointer indicate the same address, the read pointer is not incremented even if reading is performed, but this process automatically increments the fill signal at the same address. is repeatedly sent from the modem, so even if, for example, the reading process of a transmitted document is delayed due to a paper jam, 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 read by simply skipping the address indicated by the write pointer by an amount corresponding to the length of dummy data to be added to the coded data. It is now possible to add a fill signal to the converted data, and each time data is read from the modem buffer to the modem side, dummy data is written to prepare the cell for writing the next data. Therefore, a ring memory of a predetermined capacity can be effectively used as a modem buffer.

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

【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 stored sequentially for 50 lines separated by EOL, and the 50th line is stored sequentially in the modem buffer. After the encoded data, dummy data (fill signal), which is obtained by subtracting the total data length of the encoded data from the minimum data length required to perform the time adjustment necessary for printing and sub-scanning for 50 lines, is added at once. This simplifies the process compared to adding a fill to each line. Therefore, dummy data can be added instantaneously by simply skipping the address indicated by the write pointer by a necessary value, thereby further improving the processing speed of image data.

【0019】[0019]

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

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

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

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

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

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

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

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

【図7】本発明方法とは異なる特殊なフィルの付加方法
の説明図である。
FIG. 7 is an explanatory diagram of a special fill adding 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 conventional modem buffer write process and read process.

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

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

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

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ライトポインタで指示したモデムバッファ
のアドレスに符号化データを格納する毎にライトポイン
タをインクリメントし、1ライン分の符号化データの書
込が終了したときには、1ラインの最小データ長を充た
すために付加すべきダミーデータに応じたアドレス分だ
けライトポインタをスキップさせる一方、リードポイン
タの指すモデムバッファのアドレスよりデータを読み出
す毎に、そのアドレスにはダミーデータを格納させてリ
ードポインタをインクリメントさせることを特徴とする
符号化データの伝送処理方法。
Claim 1: The write pointer is incremented each time encoded data is stored at the address of the modem buffer indicated by the write pointer, and when writing of encoded data for one line is completed, the minimum data length of one line is incremented. The write pointer is skipped by the address corresponding to the dummy data that should be added to fill the space, and each time data is read from the modem buffer address pointed to by the read pointer, dummy data is stored at that address and the read pointer is skipped. A transmission processing method for encoded data, characterized by incrementing the encoded data.
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 true JPH04270566A (en) 1992-09-25
JP2689745B2 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
JP2689745B2 (en) 1997-12-10

Similar Documents

Publication Publication Date Title
US5022088A (en) Image processing apparatus with provision for memory operation
GB2172464A (en) Image transmission or encoding apparatus
US5119210A (en) Facsimile machine having error correction mode
JPH0480588B2 (en)
EP0488274B1 (en) Method and apparatus for decoding and printing coded images
US4672460A (en) Facsimile apparatus
JPS6242551B2 (en)
KR100547146B1 (en) Image processing apparatus and the method thereof
KR930006826B1 (en) Laser printer for fax
JP2689745B2 (en) Coded data transmission processing method
JPS5839160A (en) System for connection between computer and facsimile
JP3410122B2 (en) Double-sided reading compression / expansion method
JPS59178868A (en) Facsimile transmission method and facsimile equipment
US4623875A (en) Coding device for image processing apparatus
JPS5926691Y2 (en) Facsimile signal transmission equipment
JP3108425B2 (en) Facsimile communication system
JP2989716B2 (en) Facsimile machine
JPS59127462A (en) Facsimile equipment
JPH04100377A (en) Facsimile equipment
JPS6248938B2 (en)
KR920009440B1 (en) Information electrical transmission control method between facsimile and computer system
JP2563731B2 (en) Fax machine
JPH0670137A (en) Facsimile equipment
JP2574609B2 (en) Facsimile machine
JPH03136575A (en) Facsimile coder

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