JP4350782B2 - Image communication apparatus and control method thereof - Google Patents

Image communication apparatus and control method thereof Download PDF

Info

Publication number
JP4350782B2
JP4350782B2 JP2008060083A JP2008060083A JP4350782B2 JP 4350782 B2 JP4350782 B2 JP 4350782B2 JP 2008060083 A JP2008060083 A JP 2008060083A JP 2008060083 A JP2008060083 A JP 2008060083A JP 4350782 B2 JP4350782 B2 JP 4350782B2
Authority
JP
Japan
Prior art keywords
size
image
communication
main scanning
file
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
JP2008060083A
Other languages
Japanese (ja)
Other versions
JP2008182737A (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 JP2008060083A priority Critical patent/JP4350782B2/en
Publication of JP2008182737A publication Critical patent/JP2008182737A/en
Application granted granted Critical
Publication of JP4350782B2 publication Critical patent/JP4350782B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は画像通信装置及びその制御方法に関し、例えば、JPEG等の圧縮画像ファイルを受信して処理する画像通信装置及びその制御方法に関する。   The present invention relates to an image communication apparatus and a control method thereof, for example, an image communication apparatus that receives and processes a compressed image file such as JPEG and a control method thereof.

従来のファクシミリ装置としては、モノクロ画像の通信を行なうものが主であった。しかしながら、画像処理技術の発達に伴ってプリンタやスキャナにおいてカラー処理が可能となるにつれ、カラードキュメントが一般に普及し、ファクシミリ装置においてもカラー画像通信のニーズが高まってきた。   Conventional facsimile apparatuses mainly perform communication of monochrome images. However, with the development of image processing technology, as color processing becomes possible in printers and scanners, color documents have become widespread, and the need for color image communication has increased in facsimile machines.

これを受けて、独自手順によってカラー画像を通信可能とするファクシミリ装置が登場し、更にITU−T勧告によってカラー通信手順が標準化されたことにより、カラーファクシミリ装置の市場規模のさらなる拡大が予想される。
特開平08−237653号公報 特開平02−020954号公報
In response to this, a facsimile apparatus capable of communicating color images by an original procedure has appeared, and the color communication procedure has been standardized by the ITU-T recommendation, so that the market scale of the color facsimile apparatus is expected to further expand. .
Japanese Patent Laid-Open No. 08-237653 Japanese Patent Laid-Open No. 02-020954

ITU−T勧告によるカラー通信手順は、従来のモノクロファクシミリ通信手順のプロトコルに対してカラー通信機能を追加し、カラー画像データをJPEG圧縮して送信することを特徴とする。   The color communication procedure according to the ITU-T recommendation is characterized in that a color communication function is added to the protocol of the conventional monochrome facsimile communication procedure, and color image data is JPEG compressed and transmitted.

該カラー通信手順においては、送信可能な主走査サイズはA4,B4,A3の定型用紙に対応し、即ち所定の主走査サイズの原稿しか送信できない仕様になっている。例えば送信画像のサイズが該所定サイズよりも小さい場合には、白画素を付加する等の操作を施すことによって主走査サイズを定型長にした後、JPEGファイルを作成する必要があった。   In the color communication procedure, the main scanning size that can be transmitted corresponds to A4, B4, and A3 standard sheets, that is, the specification is such that only a document of a predetermined main scanning size can be transmitted. For example, when the size of the transmission image is smaller than the predetermined size, it is necessary to create a JPEG file after making the main scanning size a fixed length by performing operations such as adding white pixels.

しかしながら、JPEGファイルのヘッダには主走査画素数を定義することが可能である。従って、上記ITU−T勧告に準拠したカラーファクシミリ装置においては、その通信プロトコルで宣言された主走査サイズとは異なる主走査サイズを持ったJPEGファイルが送られてくる可能性がある。この場合、該JPEGファイルの主走査長が定型長であると認識されるため、正常なデコードが行えずにエラーが発生し、結果としてプリント出力ができなくなるという不具合があった。   However, it is possible to define the number of main scanning pixels in the header of the JPEG file. Therefore, in a color facsimile apparatus conforming to the ITU-T recommendation, there is a possibility that a JPEG file having a main scanning size different from the main scanning size declared in the communication protocol may be sent. In this case, since the main scanning length of the JPEG file is recognized as a fixed length, there is a problem that normal decoding cannot be performed, an error occurs, and as a result, print output cannot be performed.

この場合、一般にカラーファクシミリ装置においてはメモリ受信機能を備えており、JPEGファイルの受信終了後にプリントが開始されることが多い。従って、受信側装置においては、通信が正常終了したにも関らず、プリントの際にエラーが発生してしまうことになる。   In this case, the color facsimile apparatus generally has a memory reception function, and printing is often started after reception of the JPEG file is completed. Therefore, in the receiving side apparatus, an error occurs during printing although the communication ends normally.

また、送信側装置においては、送信したJPEGファイルが受信側においてプリント不能であるにも関らず、送信が正常に終了したものと認識してしまう。   In addition, the transmission side apparatus recognizes that the transmission is normally completed although the transmitted JPEG file cannot be printed on the reception side.

本発明は上記問題を解決するためになされたものであり、受信したJPEG等の圧縮画像ファイルの画像を適切な主走査長によって処理することが可能な画像通信装置及びその方法を提供することを目的とする。   The present invention has been made to solve the above problem, and provides an image communication apparatus and method capable of processing an image of a received compressed image file such as JPEG with an appropriate main scanning length. Objective.

また、受信したJPEG等の圧縮画像ファイルの画像を欠落なく記録媒体上に印刷出力することが可能な画像通信装置及びその方法を提供することを目的とする。   It is another object of the present invention to provide an image communication apparatus and method capable of printing out an image of a received compressed image file such as JPEG onto a recording medium without omission.

また、受信したJPEG等の圧縮画像ファイルの画像を適切に印刷出力できない場合には、通信を切断して適切な処置を行う画像通信装置及びその方法を提供することを目的とする。   It is another object of the present invention to provide an image communication apparatus and method for disconnecting communication and performing appropriate measures when an image of a received compressed image file such as JPEG cannot be appropriately printed out.

上記目的を達成するための一手段として、本発明の画像通信装置は以下の構成を備える。   As a means for achieving the above object, an image communication apparatus of the present invention comprises the following arrangement.

即ち、主走査サイズの宣言を含む通信プロトコルに基づいて他装置と画像データの通信を行なう画像通信装置であって、主走査サイズが第1のサイズである旨の情報を伴う圧縮画像ファイルを前記他装置から受信する受信手段と、前記画像ファイルに関わる前記他装置との通信における通信プロトコルで主走査サイズとして宣言された第2のサイズが前記第1のサイズと異なる場合に前記他装置との通信を切断する通信制御手段と、を有することを特徴とする。 That is, an image communication apparatus for communicating image data with another apparatus based on a communication protocol including a declaration of a main scanning size, wherein a compressed image file with information that the main scanning size is the first size is When the second size declared as the main scanning size in the communication protocol in the communication between the receiving means that receives from the other device and the other device related to the image file is different from the first size, And communication control means for disconnecting communication .

また、主走査サイズの宣言を含む通信プロトコルに基づいて他装置と画像データの通信を行なう画像通信装置の制御方法は、主走査サイズが第1のサイズである旨の情報を伴う圧縮画像ファイルを前記他装置から受信する受信工程と、前記画像ファイルに関わる前記他装置との通信における通信プロトコルで主走査サイズとして宣言された第2のサイズが前記第1のサイズと異なる場合に前記他装置との通信を切断する通信制御工程と、を有することを特徴とする。 Also, a method for controlling an image communication apparatus that communicates image data with another apparatus based on a communication protocol including a declaration of a main scanning size is a method for controlling a compressed image file with information that the main scanning size is the first size. When a second size declared as a main scanning size in a communication protocol in communication with the other device related to the image file is received from the other device and the other device is different from the first size A communication control step of disconnecting the communication .

以上説明したように、本発明によれば、他装置から受信した圧縮画像ファイルの画像を欠落無く記録媒体上に印刷することが可能となる。   As described above, according to the present invention, an image of a compressed image file received from another apparatus can be printed on a recording medium without omission.

また、受信した圧縮画像ファイルの画像を適切に印刷できない場合に、通信を切断して適切な処理を行うことが可能となる。   In addition, when the image of the received compressed image file cannot be printed properly, communication can be disconnected and appropriate processing can be performed.

以下、本発明に係る一実施形態について、図面を参照して詳細に説明する。   Hereinafter, an embodiment according to the present invention will be described in detail with reference to the drawings.

<第1実施形態>
図1は、本実施形態が適用されるカラーファクシミリ装置の構成を示すブロック図である。
<First Embodiment>
FIG. 1 is a block diagram showing the configuration of a color facsimile apparatus to which this embodiment is applied.

同図において、主制御部101はROM102に記憶されているプログラムに従って、装置全体、即ちRAM103,不揮発性RAM104,操作部105,表示部106,画像処理部107,読み取り部108,記録部109,駆動部110,通信制御部111を統括的に制御する。   In the same figure, the main control unit 101 is in accordance with the program stored in the ROM 102, the entire device, that is, the RAM 103, the nonvolatile RAM 104, the operation unit 105, the display unit 106, the image processing unit 107, the reading unit 108, the recording unit 109, and the drive. Unit 110 and communication control unit 111 are collectively controlled.

RAM103は、読み取り部108によって読み取られたモノクロ2値画像データやカラー多値画像データ,及びそれを画像処理部107でJPEG圧縮したJPEGデータ,及び記録部109で記録されるカラー2値データを格納する。RAM103はまた、通信制御部111を介して電話回線へ出力されるモノクロ2値データやJPEGデータ、及びそれを伸長したカラー多値データ、及び記録用に2値化したカラー2値データ、等も格納する。RAM103は更に、読み取り時や記録時、又は通信時におけるワークエリアとしても使用される。   The RAM 103 stores monochrome binary image data and color multi-value image data read by the reading unit 108, JPEG data obtained by JPEG compression of the image processing unit 107, and color binary data recorded by the recording unit 109. To do. The RAM 103 also includes monochrome binary data and JPEG data output to the telephone line via the communication control unit 111, color multivalued data obtained by expanding the data, and color binary data binarized for recording. Store. The RAM 103 is further used as a work area during reading, recording, or communication.

不揮発性RAM104はバッテリーバックアップされたSRAMによって構成され、装置固有の電話番号やユーザ略称等のデータ、及び通信結果や送信開始速度、等の失われるべきでない情報が記憶されている。本実施形態では不揮発性RAM104内において、「カラー受信画像サイズ不一致時プリント位置」という項目の領域を用意することを特徴とする。   The non-volatile RAM 104 is constituted by a battery-backed SRAM, and stores data that should not be lost, such as device-specific phone numbers and user abbreviations, and communication results and transmission start speeds. In the present embodiment, an area of an item “print position when color received image size does not match” is prepared in the nonvolatile RAM 104.

操作部105は、送信/受信処理のスタートキー,送信画像におけるカラー/モノクロ等の通信モードを指定するモードキー,複写処理を行なうコピーキー,動作を停止させるストップキー,ワンタッチ登録を行なうための登録キー,送信開始速度等の通信網に関する情報や通信相手先情報の登録を行なうための登録キー,呼出し時間を設定する設定キー、等によって構成される。   The operation unit 105 includes a start key for transmission / reception processing, a mode key for designating a communication mode such as color / monochrome in a transmission image, a copy key for performing copy processing, a stop key for stopping operation, and registration for performing one-touch registration. It consists of a key for registering information related to the communication network such as a transmission start speed and communication partner information, a setting key for setting a calling time, and the like.

表示部106は、ドットマトリックスタイプのLCD及びLCDドライバから構成されており、主制御部101からの制御に基づいて各種表示を行なう。   The display unit 106 includes a dot matrix type LCD and an LCD driver, and performs various displays based on control from the main control unit 101.

画像処理部107は、読み取り部108で読み込んだモノクロ2値データの圧縮やカラー多値データのJPEG圧縮,通信処理部111において相手先と画像データを送受信するためのモノクロ2値データの圧縮/伸長,記録部109で画像を記録する時のモノクロ2値データやカラーJPEG画像の伸長、等の各種画像処理を行い、処理結果である画像データをRAM103に保存する。   The image processing unit 107 compresses monochrome binary data read by the reading unit 108, JPEG compression of color multilevel data, and compression / decompression of monochrome binary data for transmitting / receiving image data to / from the other party in the communication processing unit 111. , Various image processes such as monochrome binary data and color JPEG image expansion when the recording unit 109 records an image, and the image data as the processing result are stored in the RAM 103.

読み取り部108は、DMAコントローラ、CCDもしくは密着型イメージセンサ(CS)、汎用IC等によって構成され、主制御部101の制御に基づいてCCDまたはCSを使用して読み取ったデータを、RAM103もしくは画像処理部107に送る。   The reading unit 108 includes a DMA controller, a CCD or a contact image sensor (CS), a general-purpose IC, and the like. Data read using the CCD or CS based on the control of the main control unit 101 is read from the RAM 103 or image processing. Send to part 107.

記録部109は、DMAコントローラ、B4/A4サイズのサーマルヘッドまたはインクジェットヘッド及び汎用IC等によって構成され、主制御部101の制御に基づいてRAM103に格納されている記録データを読み出し、記録紙上へのプリントアウトを行なう。尚、記録部109には複数サイズの記録紙をセットしておくことが可能である。   The recording unit 109 includes a DMA controller, a B4 / A4 size thermal head or inkjet head, and a general-purpose IC. The recording unit 109 reads the recording data stored in the RAM 103 based on the control of the main control unit 101, and outputs it to the recording paper. Print out. A plurality of sizes of recording paper can be set in the recording unit 109.

駆動部110は、読み取り部108及び記録部109における給排紙ローラを駆動するためのステッピングモータと、モータの駆動力を伝達するためのギヤ、及びモータを制御するためのドライバー回路等によって構成される。   The driving unit 110 includes a stepping motor for driving the paper supply / discharge rollers in the reading unit 108 and the recording unit 109, a gear for transmitting the driving force of the motor, a driver circuit for controlling the motor, and the like. The

通信制御部111は、V.34,V.32,V.32bis,V.17,V.29,V.27ter,V.23,V.21(H,L)の各規格に対応可能なモデムと、これらのモデムに接続されたクロック発生回路やNCU等によって構成され、主制御部101の制御に基づいてRAM103に格納されている送信用画像データを変調し、電話回線上に出力するものである。通信制御部111は更に、ITU−T.30勧告に従うファクシミリ通信を実現し、電話回線から受信した画像を復調してRAM103に格納する。   The communication control unit 111 is a modem that can support each standard of V.34, V.32, V.32bis, V.17, V.29, V.27ter, V.23, V.21 (H, L). And a clock generation circuit connected to these modems, an NCU, and the like, which modulate the transmission image data stored in the RAM 103 based on the control of the main control unit 101 and output it on the telephone line. is there. The communication control unit 111 further includes an ITU-T. Facsimile communication according to the 30 recommendation is realized, and an image received from the telephone line is demodulated and stored in the RAM 103.

図2は、不揮発性RAM104のメモリ構成を示す図である。不揮発性RAM104には、装置本体のパワーオフ時にも継続して記憶されるべき情報を保存するが、同図に示されるように本実施形態においては、「送信開始速度」、「受信開始速度」の領域に加えて、「カラー受信画像サイズ不一致時プリント位置」(以下、単に「不一致時プリント位置」と称する)」という領域201を設けている。そして、操作部105におけるユーザの操作によって、「不一致時プリント位置」を「左つめ」又は「センタリング」のいずれかに設定することができる。「左つめ」設定の場合は、カラー受信したJPEGファイルの主走査素サイズがITU−T.30で規定されるプロトコルで宣言された主走査サイズと異なっていた場合に、受信画像を記録紙の左側に詰めてプリントを行なう。一方、「センタリング」設定の場合は、同じく主走査サイズが異なる場合に、受信画像を記録紙の主走査方向の中央にプリントする。   FIG. 2 is a diagram illustrating a memory configuration of the nonvolatile RAM 104. The nonvolatile RAM 104 stores information that should be continuously stored even when the apparatus main body is powered off. As shown in the figure, in the present embodiment, “transmission start speed” and “reception start speed” are stored. In addition to this area, an area 201 called “print position when color received image size does not match” (hereinafter simply referred to as “print position when mismatch”) is provided. Then, by the user's operation on the operation unit 105, the “mismatch print position” can be set to “left pawl” or “centering”. In the case of the “Left” setting, the main scanning element size of the color-received JPEG file is ITU-T. If the main scanning size is different from the main scanning size declared in the protocol defined in the item 30, the received image is printed on the left side of the recording paper. On the other hand, when “centering” is set, the received image is printed at the center of the recording paper in the main scanning direction when the main scanning sizes are different.

図3は、本実施形態におけるカラー画像(JPEGファイル)受信時のプリント処理を示すフローチャートである。該フローチャートに示す処理を実現するプログラムはROM102に格納されており、主制御部101によって該プログラムがRAM103上に読み出されて実行されることにより、図3のフローチャートに示す処理が実現される。   FIG. 3 is a flowchart showing print processing when a color image (JPEG file) is received in this embodiment. A program for realizing the process shown in the flowchart is stored in the ROM 102, and the program shown in the flowchart of FIG. 3 is realized by the main control unit 101 reading the program onto the RAM 103 and executing it.

まずステップS301において主制御部101は、通信プロトコルによって宣言された主走査サイズ(以下、通信主走査サイズ)と、JPEGファイルで宣言されている主走査サイズ(以下、ファイル主走査サイズ)とが一致しているか否かを判定する。   First, in step S301, the main control unit 101 determines that the main scanning size declared by the communication protocol (hereinafter referred to as communication main scanning size) and the main scanning size declared in the JPEG file (hereinafter referred to as file main scanning size) are the same. Determine whether you are doing it.

ここで通信主走査サイズとは、ITU−T.30のDCS(Digital CommandSignal:デジタル命令信号)において示される記録幅(主走査線長あたりの画素数)に基づき、ファイル主走査サイズとは、JPEGファイルのフレームヘッダにおいて示される1ラインあたりの画素数に基づく。   Here, the communication main scanning size is ITU-T. Based on the recording width (number of pixels per main scanning line length) indicated by 30 DCS (Digital Command Signal), the file main scanning size is the number of pixels per line indicated in the frame header of the JPEG file. based on.

これら主走査サイズが一致していれば、ステップS302において通信主走査サイズを有効とする。   If these main scanning sizes match, the communication main scanning size is validated in step S302.

そしてステップS303において、JPEGファイルをセンタリングにてプリントする。即ち、まず画像処理部107でJPEGファイルを伸長して適切な画像処理を施すことによって、CMYKの2値データを生成する。そして記録部109に対し、カラー画像が記録紙の主走査方向の中央に配置されるようにプリント開始位置を設定した後、プリントを実行する。   In step S303, the JPEG file is printed by centering. That is, first, the image processing unit 107 decompresses the JPEG file and performs appropriate image processing, thereby generating CMYK binary data. Then, after setting the print start position so that the color image is arranged at the center of the recording paper in the main scanning direction, the printing is executed.

一方、ステップS301において主走査サイズが一致していないと判断された場合は、ステップS304に進み、ファイル主走査サイズを有効とする。これにより、受信したJPEGファイルが正しく伸長及びプリントされる。   On the other hand, if it is determined in step S301 that the main scanning sizes do not match, the process proceeds to step S304, and the file main scanning size is validated. As a result, the received JPEG file is correctly decompressed and printed.

続いてステップS305において、不揮発性RAM104上の「不一致時プリント位置」の設定が「センタリング」であるか否かを判定する。「センタリング」であればステップS303に進み、上述したようにJPEGファイルを伸長してCMYK2値データに変換した後、記録紙の主走査方向の中央に配置されるように、即ちセンタリングにてプリントする。   Subsequently, in step S305, it is determined whether or not the setting of “print position at mismatch” on the nonvolatile RAM 104 is “centering”. If it is “centering”, the process proceeds to step S303, where the JPEG file is expanded and converted into CMYK binary data as described above, and then printed so as to be arranged at the center in the main scanning direction of the recording paper. .

一方、ステップS305において「不一致時プリント位置」の設定が「センタリング」でなければステップS306に進み、JPEGファイルの画像を左詰めにてプリントする。即ち、まず画像処理部107でJPEGファイルを伸長して適切な画像処理を施すことによってCMYKの2値データを生成する。そして記録部109に対し、カラー画像が記録紙の左端に配置されるようにプリント開始位置を設定した後、プリントを実行する。   On the other hand, if the setting of “print position at mismatch” is not “centering” in step S305, the process proceeds to step S306, and the image of the JPEG file is printed left justified. That is, first, the CMYK binary data is generated by decompressing the JPEG file by the image processing unit 107 and performing appropriate image processing. Then, the print start position is set for the recording unit 109 so that the color image is arranged at the left end of the recording paper, and then printing is executed.

以上説明したように本実施形態によれば、JPEGファイルを受信した際に、通信プロトコル上で宣言されている主走査サイズとJPEGファイル上で宣言されている主走査サイズとが異なっていた場合でも、JPEGファイルの主走査サイズを有効とすることにより、受信したJPEGファイルの画像の伸長及びプリントが正確に行える。   As described above, according to the present embodiment, when a JPEG file is received, even if the main scanning size declared on the communication protocol differs from the main scanning size declared on the JPEG file. By enabling the main scan size of the JPEG file, the image of the received JPEG file can be accurately decompressed and printed.

また、ユーザによって、JPEG画像の記録紙上におけるプリント位置を設定可能としたことにより、操作性がより向上する。   In addition, since the user can set the print position of the JPEG image on the recording paper, the operability is further improved.

尚、本実施形態における圧縮方式としては上記JPEGに限らず、主走査方向の画素数に関する情報を付加できれば、他の形式による圧縮画像ファイルであっても良い。   Note that the compression method in the present embodiment is not limited to JPEG, and may be a compressed image file in another format as long as information on the number of pixels in the main scanning direction can be added.

尚、「不一致時プリント位置」が「センタリング」に設定されていない場合には、JPEGファイルを右詰めにてプリントすることも可能である。   If the “print position at mismatch” is not set to “centering”, it is possible to print the JPEG file right-justified.

<第2実施形態>
以下、本発明に係る第2実施形態について説明する。第2実施形態におけるカラーファクシミリ装置の構成は、上述した第1実施形態で示した図1と同様であるため、説明を省略する。また、不揮発性RAM104のメモリ構成も図2と同様であり、「不一致時プリント位置」という領域201が設けられ、操作部105におけるユーザの操作によって、「左つめ」又は「センタリング」のいずれかが設定可能である。
Second Embodiment
Hereinafter, a second embodiment according to the present invention will be described. Since the configuration of the color facsimile apparatus in the second embodiment is the same as that of FIG. 1 shown in the first embodiment, description thereof will be omitted. Further, the memory configuration of the nonvolatile RAM 104 is the same as that in FIG. 2, and an area 201 “print position at mismatch” is provided, and either “left pawl” or “centering” is selected by the user operation on the operation unit 105. It can be set.

第2実施形態においては、上述した第1実施形態に加えて更に、JPEGファイルの主走査サイズによるプリントを適切に可能とする記録紙を選択することを特徴とする。   The second embodiment is characterized in that, in addition to the first embodiment described above, a recording paper that appropriately enables printing according to the main scanning size of the JPEG file is selected.

図4は、第2実施形態におけるカラー画像受信時の1ページのプリント処理を示すフローチャートである。該フローチャートに示す処理を実現するプログラムはROM102に格納されており、主制御部101によって該プログラムがRAM103上に読み出されて実行されることにより、図4のフローチャートに示す処理が実現される。   FIG. 4 is a flowchart showing a print process for one page when a color image is received in the second embodiment. A program for realizing the process shown in the flowchart is stored in the ROM 102, and the program shown in the flowchart of FIG. 4 is realized by the main control unit 101 reading the program onto the RAM 103 and executing it.

ステップS2301においては、プリントしようとするドキュメント、即ち受信したファイルがJPEG符号化されたものであるか否かを、例えばヘッダ情報を参照して判定する。JPEG符号化されたファイルでなければ、MR符号化されたファイルであるとしてステップS2302に進み、DCSで宣言された通信主走査サイズを有効とする。   In step S2301, it is determined with reference to header information, for example, whether or not the document to be printed, that is, the received file is JPEG-encoded. If the file is not a JPEG-encoded file, the process proceeds to step S2302 as an MR-encoded file, and the communication main scan size declared in the DCS is validated.

次にステップS2303において、記録部109にセットされた複数サイズの記録紙のうち、通信プロトコル上で宣言された記録紙サイズに一致する記録紙を選択する。ここで、通信プロトコルで宣言された記録紙サイズとは、DCSにおいて示される最大記録長に基づく。   Next, in step S2303, a recording sheet that matches the recording sheet size declared in the communication protocol is selected from the recording sheets of a plurality of sizes set in the recording unit 109. Here, the recording paper size declared in the communication protocol is based on the maximum recording length indicated in DCS.

そしてステップS2304において、受信ファイルを伸長して画像処理部107で画像処理を行なうことによりCMYKの2値データを生成し、選択した記録用紙の主走査方向の中央にカラー画像が配置されるようにプリント開始位置を設定し、プリントする。   In step S2304, the received file is decompressed and the image processing unit 107 performs image processing to generate binary data of CMYK so that the color image is arranged at the center of the selected recording sheet in the main scanning direction. Set the print start position and print.

一方、ステップS2301で受信ファイルがJPEG符号化されたファイルであれば、ステップS2305において主制御部101は、上述した第1実施形態と同様に、通信主走査サイズとファイル主走査サイズとが一致しているか否かを判定する。一致していればステップS2302に進み、上述したように通信主走査サイズを有効とした後、ステップS2303,S2304によって記録紙の中央に画像を配置したプリントを行う。   On the other hand, if the received file is a JPEG encoded file in step S2301, in step S2305, the main control unit 101 matches the communication main scan size and the file main scan size as in the first embodiment described above. It is determined whether or not. If they match, the process advances to step S2302, and after the communication main scanning size is validated as described above, printing is performed with an image arranged in the center of the recording paper in steps S2303 and S2304.

一方、ステップS2305において主走査サイズが異なると判断された場合は、ステップS2306に進み、ファイル主走査サイズを有効とする。これにより、受信したJPEGファイルの画像の伸長及びプリントが正確に行われる。   On the other hand, if it is determined in step S2305 that the main scanning size is different, the process advances to step S2306 to validate the file main scanning size. As a result, the image of the received JPEG file is accurately decompressed and printed.

続いてステップS2307において、上記通信主走査サイズと、ファイル主走査サイズとを比較し、通信主走査サイズの方が大きければステップS2308に進み、上述したステップS2303と同様に、記録部109にセットされた複数サイズの記録紙のうち、通信プロトコル上でDCSによって宣言された記録紙サイズに一致する記録紙を選択する。   Subsequently, in step S2307, the communication main scan size is compared with the file main scan size. If the communication main scan size is larger, the process proceeds to step S2308, and is set in the recording unit 109 as in step S2303 described above. Among the recording papers of a plurality of sizes, the recording paper that matches the recording paper size declared by the DCS on the communication protocol is selected.

続いてステップS2309において、不揮発性RAM104上の「不一致時プリント位置」の設定が「センタリング」であるか否かを判定する。「センタリング」であればステップS2304に進み、画像処理部107でJPEGファイルを伸長してCMYK2値データに変換した後、記録紙の主走査方向の中央に配置されるようにプリント開始位置を設定し、プリントする。   Subsequently, in step S2309, it is determined whether or not the “mismatch print position” setting on the nonvolatile RAM 104 is “centering”. If it is “centering”, the process advances to step S2304. After the JPEG file is decompressed and converted into CMYK binary data by the image processing unit 107, the print start position is set so as to be arranged in the center of the recording paper in the main scanning direction. , Print.

一方、ステップS2309において「不一致時プリント位置」の設定が「センタリング」でなければステップS2310に進み、画像処理部107でJPEGファイルを伸長して画像処理を行なうことによりCMYKの2値データを生成し、カラー画像が記録紙の左端に配置されるようにプリント開始位置を設定し、プリントする。   On the other hand, if the “mismatch print position” setting is not “centering” in step S2309, the process advances to step S2310, and the image processing unit 107 decompresses the JPEG file and performs image processing to generate CMYK binary data. The print start position is set so that the color image is arranged at the left end of the recording paper, and printing is performed.

また、ステップS2307において通信主走査サイズの方がファイル主走査サイズよりも小さい場合にはステップS2311に進み、記録部109にセットされた複数サイズの記録紙の中に、通信プロトコル上で宣言された記録紙サイズよりも主走査長が大きい記録紙、即ち受信したJPEGファイルの等倍プリントが可能な記録紙があるかを調べる。   If the communication main scanning size is smaller than the file main scanning size in step S2307, the process proceeds to step S2311 and declared on the communication protocol in a plurality of sizes of recording sheets set in the recording unit 109. It is checked whether there is a recording sheet having a main scanning length larger than the recording sheet size, that is, a recording sheet capable of printing the received JPEG file at the same magnification.

適応する記録紙があった場合には、ステップS2312において該記録紙、即ち、DCSによって示される記録紙サイズよりも主走査長が大きい記録紙を、実際のプリント対象となる記録紙として選択する。続いてステップS2309以降の処理において、上述したように不揮発性RAM104上の「不一致時プリント位置」の設定に従って、JPEGファイルの等倍によるプリントを実行する。   If there is an applicable recording sheet, in step S2312, the recording sheet, that is, a recording sheet having a main scanning length larger than the recording sheet size indicated by the DCS is selected as a recording sheet to be actually printed. Subsequently, in the processing after step S2309, according to the setting of “print position at the time of mismatch” on the non-volatile RAM 104 as described above, printing with the same size as the JPEG file is executed.

一方、ステップS2311において適応する記録紙がなかった場合にはステップS2313に進む。ステップS2313においては、DCSによって示される記録紙サイズに一致する記録紙を選択する。そして画像処理部107において、JPEGファイルを伸長した後に主走査方向の縮小処理を含む画像処理を行なうことによってCMYKの2値データを生成した後、カラー画像が欠落しないように、選択された記録紙上にプリントする。   On the other hand, if there is no applicable recording paper in step S2311, the process proceeds to step S2313. In step S2313, a recording sheet that matches the recording sheet size indicated by the DCS is selected. Then, the image processing unit 107 generates CMYK binary data by performing image processing including reduction processing in the main scanning direction after decompressing the JPEG file, and then on the selected recording paper so that no color image is lost. Print to.

ここで、ステップS2313における画像縮小方法の一例について説明する。まず、単純間引き処理が考えられる。例えば、受信したJPEGファイルを伸長した後に、該画像が欠落しないように、即ち、記録紙の主走査サイズ内にプリント可能な画素数になるように、一定の割合で画素を削除する。その後2値化処理を行えば、画質を劣化させずに縮小することが可能である。   Here, an example of the image reduction method in step S2313 will be described. First, a simple thinning process can be considered. For example, after decompressing the received JPEG file, the pixels are deleted at a constant rate so that the image is not lost, that is, the number of pixels that can be printed within the main scanning size of the recording paper. If binarization processing is performed thereafter, the image can be reduced without deteriorating the image quality.

尚、縮小方法としては、画素補間を行う方法等、他の任意の方法を適用することが可能である。   As a reduction method, any other method such as a pixel interpolation method can be applied.

また、一般にファイルの解像度と記録部109によるプリント解像度が異なる場合、例えば受信した画像の解像度が200dpiであるが、記録部109は360dpiの解像度にのみ対応している場合には、画像処理部107において受信画像を1.8(360/200)倍へ変倍してから記録部109に渡すことによって、受信画像の等倍プリントが実現される。そこで、この変倍率を、
(プリント解像度/受信画像解像度)
×(プロトコル上の主走査画素数/JPEGファイルの主走査画素数)
とすることによって、画像を間引きすることなく、縮小プリントが可能となる。
In general, when the resolution of the file is different from the print resolution of the recording unit 109, for example, the resolution of the received image is 200 dpi, but when the recording unit 109 supports only the resolution of 360 dpi, the image processing unit 107 , The received image is scaled to 1.8 (360/200) times and then passed to the recording unit 109, whereby the same size printing of the received image is realized. So, this magnification is
(Print resolution / Received image resolution)
× (number of main scanning pixels in the protocol / number of main scanning pixels in the JPEG file)
By doing so, reduced printing can be performed without thinning out images.

以上説明したように第2実施形態によれば、上述した第1実施形態と同様に、通信プロトコル上で宣言されている主走査サイズとJPEGファイル上で宣言されている主走査サイズとが異なる場合に、JPEGファイルの主走査サイズを有効とする。そして更に、JPEGファイル上で宣言されている主走査サイズの方が大きい場合には、通信プロトコル上の記録紙サイズよりも主走査長が大きい記録紙があれば該記録紙への等倍プリントを行い、そのような記録紙がなければ、通信プロトコル上の記録紙サイズと同じ主走査長の記録紙への縮小プリントを行う。これによって、ユーザに画像欠落のないプリントを提供することができる。   As described above, according to the second embodiment, when the main scanning size declared on the communication protocol is different from the main scanning size declared on the JPEG file, as in the first embodiment described above. In addition, the main scanning size of the JPEG file is validated. Furthermore, if the main scanning size declared in the JPEG file is larger, if there is a recording paper having a main scanning length larger than the recording paper size in the communication protocol, the same-size printing on the recording paper is performed. If there is no such recording sheet, reduced printing is performed on a recording sheet having the same main scanning length as the recording sheet size in the communication protocol. As a result, it is possible to provide the user with prints without image loss.

また、第1実施形態と同様に、「不一致時プリント位置」が「センタリング」に設定されていない場合の右詰めによるプリントも可能である。   As in the first embodiment, right-aligned printing is also possible when the “print position at mismatch” is not set to “centering”.

<第3実施形態>以下、本発明に係る第3実施形態について説明する。第3実施形態におけるカラーファクシミリ装置の構成は、上述した第1実施形態で示した図1と同様であるため、説明を省略する。尚、第3実施形態においては、不揮発性RAM104内に「不一致時プリント位置」の項目を設ける必要はない。   <Third Embodiment> The third embodiment according to the present invention will be described below. The configuration of the color facsimile apparatus according to the third embodiment is the same as that shown in FIG. 1 described in the first embodiment, and a description thereof will be omitted. In the third embodiment, it is not necessary to provide the item “print position at mismatch” in the nonvolatile RAM 104.

第3実施形態においては、通信主走査サイズとファイル主走査サイズが不一致である場合には、通信を切断して相手機に報知することを特徴とする。   In the third embodiment, when the communication main scanning size and the file main scanning size do not coincide with each other, the communication is disconnected and the partner apparatus is notified.

図5は、第3実施形態におけるカラー画像受信処理を示すフローチャートである。該フローチャートに示す処理を実現するプログラムはROM102に格納されており、主制御部101によって該プログラムがRAM103上に読み出されて実行されることにより、図5のフローチャートに示す処理が実現される。   FIG. 5 is a flowchart showing color image reception processing in the third embodiment. A program for realizing the process shown in the flowchart is stored in the ROM 102, and the program shown in the flowchart of FIG. 5 is realized by the main control unit 101 reading the program onto the RAM 103 and executing it.

まずステップS1201において、通信制御部111でGI(グループ識別)信号を監視し、着信を検出する。通信制御部111は着信を検出すると回線を閉結し、相手機からのCNG(発呼トーン)信号を検知したら、ステップS1202においてNSF(非標準機能)/CSI(被呼端末識別)/DIS(デジタル識別信号)のいずれかの信号を相手機に送出する。続いてステップS1203において、相手機からのTSI(送信端末識別)/DCS(デジタル命令信号)信号のいずれかを受信する。尚、TSI信号は送られてこない場合もある。TSI信号を受信した場合はRAM103に保存する。続いてステップS1204においてトレーニング信号を受信し、正しく受信できていればCFR(受信準備確認)信号を返し、ステップS1205において画像信号を受信する。   First, in step S1201, the communication control unit 111 monitors a GI (group identification) signal and detects an incoming call. When communication control unit 111 detects an incoming call, it closes the line, and upon detecting a CNG (calling tone) signal from the partner machine, in step S1202, NSF (non-standard function) / CSI (called terminal identification) / DIS ( One of the digital identification signals is sent to the other device. Subsequently, in step S1203, one of the TSI (transmission terminal identification) / DCS (digital command signal) signal from the partner machine is received. Note that the TSI signal may not be sent. When the TSI signal is received, it is stored in the RAM 103. In step S1204, a training signal is received. If the training signal is received correctly, a CFR (reception preparation confirmation) signal is returned. In step S1205, an image signal is received.

EOM(メッセージ終了)信号の受信によりブロックの画像受信が終了すると、ステップS1206においてPPS−Q(部分ページ信号PPS−EOM,PPS−MPS,PPS−EOP,PPS−NULLのいずれか)信号を受信する。続いてステップS1207において、受信したブロックの画像が全フレーム正常に受信されたかを調べる。全フレームが正常に受信されていない場合はステップS1212においてPPR(部分ページ要求)信号を返した後、ステップS1205に戻ってエラーの発生したフレームを再度受信する。   When reception of an image of a block is completed due to reception of an EOM (message end) signal, a PPS-Q (partial page signal PPS-EOM, PPS-MPS, PPS-EOP, or PPS-NULL) signal is received in step S1206. . Subsequently, in step S1207, it is checked whether the received image of the block has been normally received for all frames. If all the frames have not been normally received, a PPR (partial page request) signal is returned in step S1212, and then the process returns to step S1205 to receive again the frame in which the error has occurred.

ステップS1207において全フレームが正常に受信されていた場合は、ステップS1208において、DCS信号で指示された内容に基づいて、受信した文書がカラー文書(JPEGファイル)であるか否かを調べる。カラー文書である場合にはステップS1209に進み、ステップS1205で受信した画像がページの第1ブロックであるかを否かを調べる。第1ブロックであればステップS1210に進み、受信した画像のJPEGヘッダ部を解析して、その主走査画素サイズの設定をRAM103に記憶しておく。   If all the frames have been normally received in step S1207, it is checked in step S1208 whether the received document is a color document (JPEG file) based on the content instructed by the DCS signal. If it is a color document, the process advances to step S1209 to check whether the image received in step S1205 is the first block of the page. If it is the first block, the process advances to step S 1210 to analyze the JPEG header portion of the received image and store the setting of the main scanning pixel size in the RAM 103.

ステップS1211においては、受信画像のJPEGヘッダで定義されている主走査画素サイズとDCSで宣言された解像度、主走査幅から計算される主走査画素サイズが一致しているか否かを判定する。一致していなければステップS1215に進んで、相手機にDCN(切断命令)信号を送り、通信をエラー終了する。   In step S1211, it is determined whether or not the main scanning pixel size defined in the JPEG header of the received image matches the main scanning pixel size calculated from the resolution and main scanning width declared in the DCS. If they do not match, the process proceeds to step S1215, a DCN (disconnect command) signal is sent to the partner machine, and communication ends in error.

そしてステップS1216においては、DCS信号とともにTSI信号を受信しているか否かを調べる。受信していれば、ステップS1217において相手機に対してエラー理由通知処理を行い、受信処理を終了する。TSI信号を受信していなければ、そのまま受信処理を終了する。   In step S1216, it is checked whether the TSI signal is received together with the DCS signal. If it has been received, an error reason notification process is performed for the partner machine in step S1217, and the reception process is terminated. If the TSI signal has not been received, the reception process is terminated as it is.

ステップS1208において受信した文書がカラー文書でない場合、及びステップS1209において受信した画像がページの第1ブロックでない場合、及びステップS1211において受信画像のファイル主走査サイズと通信主走査サイズが一致する場合には、ステップS1213に進み、画像ブロックを正しく受信したことを報知するために、相手機に対してMCF(メッセージ確認)信号を送る。続いてステップS1214において、ステップS1206で受信したPPS−Q信号の種類により連続して画像ブロックが送信されてくるか否かを判断し、送信されてくる場合は、ステップS1205において次の画像ブロックの受信を行なう。一方、次の画像ブロックが送信されない場合は受信処理を終了する。   If the document received in step S1208 is not a color document, if the image received in step S1209 is not the first block of the page, and if the file main scan size of the received image matches the communication main scan size in step S1211 In step S1213, an MCF (message confirmation) signal is sent to the counterpart device in order to notify that the image block has been correctly received. Subsequently, in step S1214, it is determined whether or not an image block is continuously transmitted according to the type of the PPS-Q signal received in step S1206. If it is transmitted, the next image block is determined in step S1205. Receive. On the other hand, if the next image block is not transmitted, the reception process is terminated.

図6は、上述したステップS1217におけるエラー理由通知処理を示すフローチャートである。   FIG. 6 is a flowchart showing the error reason notification processing in step S1217 described above.

ステップS1301においては、通信制御部111により、ステップS1203でRAM103に保存したTSI信号で示される番号に対して発呼する。回線がつながったら、ステップS1302においてCNG信号を送出する。次いでステップS1303において相手機からDIS信号を受信したら、ステップS1304においてDCS信号を送出し、続いてステップS1305において回線の状態を確認するためにトレーニング信号を送出する。   In step S1301, the communication control unit 111 calls the number indicated by the TSI signal stored in the RAM 103 in step S1203. When the line is connected, a CNG signal is transmitted in step S1302. Next, when a DIS signal is received from the partner machine in step S1303, a DCS signal is sent in step S1304, and then a training signal is sent in step S1305 to confirm the line status.

ステップS1306において相手機からCFRを受信したか否かを調べ、受信していない場合、もしくはFTT(トレーニング失敗)信号を受信した場合はステップS1304に戻り、通信速度を変えてDCS信号を送出する。   In step S1306, it is checked whether or not a CFR has been received from the counterpart device. If no CFR has been received, or if an FTT (training failure) signal has been received, the process returns to step S1304, and a DCS signal is transmitted at a different communication speed.

ステップS1306においてCFR信号を受信した場合は、ステップS1307において通信を切断した理由を相手機に対して通知する。具体的には、図7に示すように、切断理由を記載した画像を送信する。この切断理由通知画像は、予め符号化してROM102に記憶しておけばよい。また、該切断理由通知画像は、例えば切断理由通知時に作成されても良い。   When the CFR signal is received in step S1306, the reason for disconnecting the communication is notified to the partner machine in step S1307. Specifically, as shown in FIG. 7, an image describing the reason for cutting is transmitted. This disconnection reason notification image may be encoded in advance and stored in the ROM 102. Further, the disconnect reason notification image may be created, for example, at the time of disconnect reason notification.

切断理由通知画像の送信が終了したら、ステップS1308においてPPS−EOP信号を送出する。続いてステップS1309にてMCF信号を受信するとファクシミリ送信手順が終了するので、ステップS1310においてDCN信号を送出し、エラー理由通知処理を終了する。   When the transmission of the disconnection reason notification image is completed, a PPS-EOP signal is transmitted in step S1308. Subsequently, when the MCF signal is received in step S1309, the facsimile transmission procedure is completed. Therefore, in step S1310, the DCN signal is transmitted, and the error reason notification process is terminated.

以上説明したように第3実施形態によれば、JPEGファイルの第1ブロックを受信した時点でJPEGヘッダを解析し、通信プロトコル上で宣言されている主走査サイズとJPEGファイル上で宣言されている主走査サイズとが異なる場合に、通信を切断して相手機にエラーの発生及びその内容を通知する。これにより、送信側において、受信側でプリント不能であるにも関らず送信が正常終了したと誤認識してしまうことを回避し、更にエラー内容として、JPEGファイルの主走査サイズが誤っていることを報知することができる。   As described above, according to the third embodiment, when the first block of the JPEG file is received, the JPEG header is analyzed, and the main scan size declared on the communication protocol and the JPEG file are declared on the JPEG file. When the main scanning size is different, the communication is cut off, and the occurrence of the error and the contents thereof are notified to the partner machine. This prevents the transmission side from erroneously recognizing that transmission ended normally even though the reception side cannot print, and further, as the error content, the main scan size of the JPEG file is incorrect. This can be notified.

<第3実施形態の変形例>図8は、第3実施形態における受信処理の変形例を示すフローチャートである。本変形例においても、通信主走査サイズとファイル主走査サイズが異なる場合には通信を切断して相手機に報知するが、特にJPEGヘッダの解析処理を、通信処理とは独立した別処理として行うことを特徴とする。   <Modification of Third Embodiment> FIG. 8 is a flowchart showing a modification of the reception process in the third embodiment. Also in this modified example, when the communication main scanning size and the file main scanning size are different, the communication is disconnected and notified to the other device, but the JPEG header analysis process is performed as a separate process independent of the communication process. It is characterized by that.

図8において、ステップS1501〜S1509までの処理は、上述した図5に示すステップS1201〜S1209と同様であるため、説明を省略する。   In FIG. 8, the processes from step S1501 to S1509 are the same as steps S1201 to S1209 shown in FIG.

ステップS1509において、ステップS1505で受信した画像がページの第1ブロックであれば、ステップS1510において、RAM103に設けられたJPEGエラーフラグをクリアし、別処理として実行されるJPEGヘッダ解析処理を起動して、ステップS1512に進む。これにより即ち、JPEGヘッダ解析処理と、後続のJPEGファイル受信処理とが並行して実行される。   In step S1509, if the image received in step S1505 is the first block of the page, the JPEG error flag provided in the RAM 103 is cleared in step S1510, and a JPEG header analysis process executed as a separate process is started. The process proceeds to step S1512. As a result, the JPEG header analysis process and the subsequent JPEG file reception process are executed in parallel.

ステップS1512においては、JPEGヘッダ解析処理にてエラーが発生したか否かを調べるが、ページの第1ブロックについてはJPEGヘッダ解析処理は起動されたばかりであるため、エラーの発生はなく、ステップS1513に進んでMCFを送出する。続いてステップS1514において、ステップS1506で受信したPPS−Q信号の種類により連続して画像ブロックが送信されてくるか否かを判断し、送信されてくる場合は、ステップS1505において次の画像ブロックの受信を行なう。   In step S1512, it is checked whether or not an error has occurred in the JPEG header analysis process. However, since the JPEG header analysis process has just been activated for the first block of the page, no error has occurred, and the process proceeds to step S1513. Go ahead and send MCF. Subsequently, in step S1514, it is determined whether or not an image block is continuously transmitted according to the type of the PPS-Q signal received in step S1506. If it is transmitted, the next image block is determined in step S1505. Receive.

続いて、ステップS1506〜S1509までの処理が再度行われるが、ここでステップS1509においては、受信した画像ブロックがページの第1ブロックではないため処理はステップS1512に進み、既に起動されているJPEGヘッダ解析処理(S1510)においてエラーが発生したか否かをJPEGエラーフラグに基づいて調べる。エラーが発生していればステップS1515に進んで、相手機にDCN信号を送り、通信をエラー終了する。   Subsequently, the processing from step S1506 to S1509 is performed again. Here, in step S1509, since the received image block is not the first block of the page, the processing proceeds to step S1512, and the already started JPEG header. Whether or not an error has occurred in the analysis process (S1510) is checked based on the JPEG error flag. If an error has occurred, the process advances to step S1515 to send a DCN signal to the partner machine and terminate the communication with an error.

そしてステップS1516においては、DCS信号とともにTSI信号を受信しているか否かを調べる。受信していれば、ステップS1517において相手機に対してエラー理由通知処理を行い、受信処理を終了する。TSI信号を受信していなければ、そのまま受信処理を終了する。   In step S1516, it is checked whether the TSI signal is received together with the DCS signal. If it has been received, an error reason notification process is performed on the partner machine in step S1517, and the reception process is terminated. If the TSI signal has not been received, the reception process is terminated as it is.

図9は、ステップS1510において起動される、JPEGヘッダ解析処理を示すフローチャートである。   FIG. 9 is a flowchart showing the JPEG header analysis process activated in step S1510.

まずステップS1601において、JPEGヘッダに記述されているデータを読み取り、解析する。そしてステップS1602において、ヘッダの内容にエラーがあるか否かを調べる。エラーがあればステップS1604に進み、RAM103内に設けられたJPEGエラーフラグをオンにする。   First, in step S1601, the data described in the JPEG header is read and analyzed. In step S1602, it is checked whether there is an error in the contents of the header. If there is an error, the process advances to step S1604 to turn on the JPEG error flag provided in the RAM 103.

一方、ステップS1602においてヘッダ内容にエラーがなかければステップS1603に進み、JPEGヘッダで定義されている主走査画素サイズとDCSで宣言された解像度、主走査幅から計算される主走査画素サイズが一致しているか否かを判定する。一致していなければステップS1604に進んで、JPEGエラーフラグをオンにする。このようにJPEGエラーフラグがオンとなることによって、図8に示す受信処理ルーチンはJPEGエラーの発生を検知することができる。   On the other hand, if there is no error in the header contents in step S1602, the process proceeds to step S1603, where the main scanning pixel size calculated from the main scanning pixel size defined in the JPEG header, the resolution declared in the DCS, and the main scanning width is one. Determine whether you are doing it. If they do not match, the process advances to step S1604 to turn on the JPEG error flag. Thus, when the JPEG error flag is turned on, the reception processing routine shown in FIG. 8 can detect the occurrence of a JPEG error.

以上説明したように第3実施形態の変形例によれば、JPEGファイル受信処理とJPEGヘッダ解析処理とを別処理として、並行に実行することにより、処理速度が遅いシステムにおいても、JPEGヘッダ解析処理による通信制御への影響を回避することができ、全体としての処理速度が向上する。   As described above, according to the modification of the third embodiment, the JPEG file receiving process and the JPEG header analyzing process are executed as separate processes in parallel, so that the JPEG header analyzing process can be performed even in a slow processing system. The influence on the communication control due to can be avoided, and the overall processing speed is improved.

尚、第3実施形態においては、エラー理由通知処理の際に、相手機からのTSI信号で通知された電話番号に対して発呼するとして説明したが、発信者番号通知機能によって通知された電話番号に対して発呼した場合にも同様の効果が得られることは、言うまでもない。   In the third embodiment, it has been described that the call is made to the telephone number notified by the TSI signal from the partner machine in the error reason notification process. However, the telephone notified by the caller number notification function is described. It goes without saying that the same effect can be obtained when a call is made to a number.

尚、以上説明した各実施形態を組み合わせることも可能である。例えば、通信主走査サイズとファイル主走査サイズが互いに異なる場合には、第3実施形態で示したように一旦通信を切断して相手機に通知し、相手機より該JPEGファイルを再送しない旨の通知、又は強制プリントの指示を受けた場合には通信を再開して、第2実施形態で示したように適切な記録媒体を選択した上で画像欠落のないプリントを行うことも可能である。   Note that the embodiments described above can be combined. For example, when the communication main scanning size and the file main scanning size are different from each other, as shown in the third embodiment, the communication is temporarily disconnected and notified to the partner machine, and the JPEG file is not retransmitted from the partner machine. When a notification or an instruction for forced printing is received, communication can be resumed, and an appropriate recording medium can be selected as shown in the second embodiment, and printing without missing images can be performed.

<他の実施形態>
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
<Other embodiments>
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, and a printer), and a device (for example, a copying machine and a facsimile device) including a single device. You may apply to.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本発明に係る一実施形態におけるファクシミリ装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a facsimile apparatus according to an embodiment of the present invention. 本実施形態における不揮発性RAMのメモリ構成例を示す図である。It is a figure which shows the memory structural example of the non-volatile RAM in this embodiment. 本実施形態におけるカラー受信時のプリント処理を示すフローチャートである。6 is a flowchart illustrating print processing at the time of color reception in the present embodiment. 第2実施形態におけるカラー受信時のプリント処理を示すフローチャートである。10 is a flowchart illustrating a printing process at the time of color reception in the second embodiment. 第3実施形態における受信処理を示すフローチャートである。It is a flowchart which shows the reception process in 3rd Embodiment. 第3実施形態おけるエラー理由通知処理を示すフローチャートである。It is a flowchart which shows the error reason notification process in 3rd Embodiment. 第3実施形態における通信の切断理由を報知する画像の一例を示す図である。It is a figure which shows an example of the image which alert | reports the disconnection reason of communication in 3rd Embodiment. 第3実施形態の変形例における受信処理を示すフローチャートである。It is a flowchart which shows the reception process in the modification of 3rd Embodiment. 第3実施形態の変形例におけるJPEGヘッダ解析処理を示すフローチャートである。It is a flowchart which shows the JPEG header analysis process in the modification of 3rd Embodiment.

符号の説明Explanation of symbols

101 主制御部
102 ROM
103 RAM
104 不揮発性RAM
105 操作部
106 表示部
107 画像処理部
108 読み取り部
109 記録部
110 駆動部
111 通信制御部
101 Main control unit 102 ROM
103 RAM
104 Nonvolatile RAM
105 Operation Unit 106 Display Unit 107 Image Processing Unit 108 Reading Unit 109 Recording Unit 110 Drive Unit 111 Communication Control Unit

Claims (9)

主走査サイズの宣言を含む通信プロトコルに基づいて他装置と画像データの通信を行なう画像通信装置であって、
主走査サイズが第1のサイズである旨の情報を伴う画像ファイルを前記他装置から受信する受信手段と、
前記画像ファイルに関わる前記他装置との通信における通信プロトコルで主走査サイズとして宣言された第2のサイズが前記第1のサイズと異なる場合に前記他装置との通信を切断する通信制御手段と、
を有することを特徴とする画像通信装置。
An image communication apparatus for communicating image data with another apparatus based on a communication protocol including a declaration of a main scanning size,
Receiving means for receiving from the other device an image file with information that the main scanning size is the first size;
Communication control means for disconnecting communication with the other device when a second size declared as a main scanning size in a communication protocol in communication with the other device relating to the image file is different from the first size;
An image communication apparatus comprising:
前記画像ファイルは圧縮画像ファイルであり、  The image file is a compressed image file;
前記画像通信装置は、  The image communication device includes:
前記第2のサイズが前記第1のサイズと異なる場合に前記第1のサイズを主走査サイズとして設定し、前記第2のサイズが前記第1のサイズと一致する場合に該一致するサイズを主走査サイズとして設定する設定手段と、  When the second size is different from the first size, the first size is set as the main scanning size, and when the second size matches the first size, the matching size is set as the main scanning size. Setting means for setting as a scan size;
前記設定手段により設定された主走査サイズを前記圧縮画像ファイルの1ラインあたりの画素数として前記圧縮画像ファイルを伸長する伸長手段と、  Decompression means for decompressing the compressed image file with the main scanning size set by the setting means as the number of pixels per line of the compressed image file;
を有することを特徴とする請求項1に記載の画像通信装置。  The image communication apparatus according to claim 1, further comprising:
前記通信制御手段は、前記受信手段によって前記画像ファイルの一部を正常に受信した時点で、前記第2のサイズと前記第1のサイズとが異なるか否かを判断することを特徴とする請求項1又は2に記載の画像通信装置。 The communication control means determines whether or not the second size and the first size are different when the receiving means normally receives a part of the image file. Item 3. The image communication apparatus according to Item 1 or 2 . 前記通信制御手段が通信を切断するのに先立って、前記他装置へ前記通信が切断されることを報知する報知手段を有することを特徴とする請求項1乃至3のいずれか1項に記載の画像通信装置。 Prior to the communication control unit disconnects the communication, according to any one of claims 1 to 3 wherein the communication to the other device and having an informing means for informing that it is cut Image communication device. 前記報知手段は、前記画像ファイルの主走査サイズが正常でない旨を報知することを特徴とする請求項4に記載の画像通信装置。  The image communication apparatus according to claim 4, wherein the notification unit notifies that the main scanning size of the image file is not normal. 前記報知手段は、前記他装置から受信した発信者番号に基づいて該他装置へ報知することを特徴とする請求項4又は5に記載の画像通信装置。 6. The image communication apparatus according to claim 4 , wherein the notification unit notifies the other apparatus based on a caller number received from the other apparatus. 前記通信プロトコルは、ITU−T.30勧告に準拠することを特徴とする請求項1乃至6の何れか1項に記載の画像通信装置。 The communication protocol is ITU-T. The image communication apparatus according to claim 1 , wherein the image communication apparatus conforms to 30 Recommendations. 前記圧縮画像ファイルは、JPEGファイルであることを特徴とする請求項に記載の画像通信装置。 The image communication apparatus according to claim 2 , wherein the compressed image file is a JPEG file. 主走査サイズの宣言を含む通信プロトコルに基づいて他装置と画像データの通信を行なう画像通信装置の制御方法であって、
主走査サイズが第1のサイズである旨の情報を伴う画像ファイルを前記他装置から受信する受信工程と、
前記画像ファイルに関わる前記他装置との通信における通信プロトコルで主走査サイズとして宣言された第2のサイズが前記第1のサイズと異なる場合に前記他装置との通信を切断する通信制御工程と、
を有することを特徴とする画像通信装置の制御方法。
A method for controlling an image communication apparatus for communicating image data with another apparatus based on a communication protocol including a declaration of a main scanning size,
A receiving step of receiving an image file with information that the main scanning size is the first size from the other device;
A communication control step of disconnecting communication with the other device when a second size declared as a main scanning size in a communication protocol in communication with the other device relating to the image file is different from the first size;
A control method for an image communication apparatus, comprising:
JP2008060083A 1999-06-30 2008-03-10 Image communication apparatus and control method thereof Expired - Fee Related JP4350782B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008060083A JP4350782B2 (en) 1999-06-30 2008-03-10 Image communication apparatus and control method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP18673599 1999-06-30
JP2008060083A JP4350782B2 (en) 1999-06-30 2008-03-10 Image communication apparatus and control method thereof

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2006246139A Division JP4115496B2 (en) 1999-06-30 2006-09-11 Image communication apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2008182737A JP2008182737A (en) 2008-08-07
JP4350782B2 true JP4350782B2 (en) 2009-10-21

Family

ID=39726232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008060083A Expired - Fee Related JP4350782B2 (en) 1999-06-30 2008-03-10 Image communication apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP4350782B2 (en)

Also Published As

Publication number Publication date
JP2008182737A (en) 2008-08-07

Similar Documents

Publication Publication Date Title
US7564578B2 (en) Image communication apparatus, method and storage medium for transmitting or receiving a color image
US6809836B1 (en) Image communication apparatus and its control method
JP4136278B2 (en) Image communication apparatus and method
JP4280377B2 (en) Image communication method and apparatus
US5907632A (en) Image information communication apparatus for notifying that an OCR method is applicable to image data to be transmitted
JP4350782B2 (en) Image communication apparatus and control method thereof
JP4115496B2 (en) Image communication apparatus and control method thereof
US4963988A (en) Facsimile device
JP2001086349A (en) Image communications equipment and method therefor
US7375865B2 (en) Facsimile apparatus and facsimile communication method
JP4571388B2 (en) Image reading device
JP2000151885A (en) Image processing unit and image processing method
JP4224441B2 (en) Facsimile apparatus and facsimile transmission control method
JP3633553B2 (en) Communication terminal device with remote copy function
JP2000134441A (en) Image communication device and communication control method for the device
JP2930805B2 (en) Facsimile machine
US20020171875A1 (en) Facsimile apparatus, method of controlling facsimile apparatus, and program of controlling facsimile apparatus
JP2001345994A (en) Image processor and its control method, image forming system and its control method and storage medium
JPH10191033A (en) Facsimile equipment
JP2000022918A (en) Device and method for image transmission
JPH06291952A (en) Facsimile equipment
JPH10215371A (en) Image data communication equipment and image data communication method
JP2003032481A (en) Facsimile terminal
JP2000022917A (en) Device and method for image transmission
JP2001309146A (en) Image forming device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090717

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090722

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

Free format text: PAYMENT UNTIL: 20120731

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120731

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120731

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130731

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees