JP2018202823A - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP2018202823A
JP2018202823A JP2017114091A JP2017114091A JP2018202823A JP 2018202823 A JP2018202823 A JP 2018202823A JP 2017114091 A JP2017114091 A JP 2017114091A JP 2017114091 A JP2017114091 A JP 2017114091A JP 2018202823 A JP2018202823 A JP 2018202823A
Authority
JP
Japan
Prior art keywords
delimiter code
special command
print data
code
time
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
JP2017114091A
Other languages
Japanese (ja)
Other versions
JP6791026B2 (en
Inventor
高原 正和
Masakazu Takahara
正和 高原
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2017114091A priority Critical patent/JP6791026B2/en
Publication of JP2018202823A publication Critical patent/JP2018202823A/en
Application granted granted Critical
Publication of JP6791026B2 publication Critical patent/JP6791026B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

To provide an image forming apparatus capable of surely dividing printing data at a portion designated by a printer driver or a printing application.SOLUTION: An image forming apparatus includes: a dividing code detection section 81 which detects a dividing code 51 from among printing data; and a special command detection section 82 which causes a storage section 5 to store a one-time dividing code 53 stored in a special command 52 when detecting the special command 52. The dividing code detection section 81 invalidates the detection of the dividing code 51 when the special command detection section 82 detects the special command 52 and detects the one-time dividing code 53 stored in the storage section 5 as dividing of the printing data from among the printing data. The special command detection section 82 deletes the one-time dividing code 53 from the storage section 5 when the dividing code detection section 81 detects the one-time dividing code 53.SELECTED DRAWING: Figure 1

Description

本発明は、ユーザーがパーソナルコンピューター等の端末装置で作成したドキュメントを印刷する画像形成装置に関する。   The present invention relates to an image forming apparatus that prints a document created by a user using a terminal device such as a personal computer.

ユーザーが端末装置で作成したドキュメントを印刷する際、ドキュメントをプリンタドライバーや印刷アプリケーションを使って画像形成装置が認識できる印刷言語に変換し、然るべきインターフェースにて画像形成装置に送信する。   When a user prints a document created by a terminal device, the document is converted into a print language that can be recognized by the image forming apparatus using a printer driver or a printing application, and transmitted to the image forming apparatus through an appropriate interface.

通常、画像形成装置ではPJL(Printer Job Language)のUEL(Universal Exit Language)、Ctrl−D(Postscript(登録商標)の場合)、EOJコマンド、PRESCRIBE(登録商標)のJOBTコマンドをデータの区切りコードと判断し、そこまでに受信したデータを1つのジョブとして処理して印刷している。   Usually, in an image forming apparatus, PJL (Printer Job Language) UEL (Universal Exit Language), Ctrl-D (in the case of Postscript (registered trademark)), EOJ command, and PRESCRIBE (registered trademark) JOBT command are used as data delimiter codes. The data received so far is processed and printed as one job.

また、通常使用する区切りコードに対応していない非対応印刷言語の印刷データにも対応できるように、ユーザーが登録した区切りコードと、印刷データとを比較し、その結果に基づいて印刷データ間を区切る技術も提案されている(例えば、特許文献1参照)。   Also, the print data is compared with the delimiter code registered by the user so that print data in a non-supported print language that does not support the delimiter code that is normally used can be handled. A technique for dividing is also proposed (see, for example, Patent Document 1).

特開2011−212927号公報JP 2011-121927 A

しかしながら、従来技術では、、ユーザーが使うプリンタドライバーや印刷アプリケーションによっては、上記の区切りコードの後に実は1つのジョブとして扱うべき印刷データがあったり、逆に、印刷データの中に上記の区切りコードが含まれてしまったりするケースがあった。このようなケースでは、ユーザーが意図しない位置でデータが切れてしまい、ユーザーが意図しない印刷結果となることがあった。   However, according to the prior art, depending on the printer driver and printing application used by the user, there is actually print data to be handled as one job after the above delimiter code. Conversely, the above delimiter code is included in the print data. There were cases where it was included. In such a case, data may be cut at a position unintended by the user, resulting in a print result unintended by the user.

また、ユーザーが区切りコードを登録する場合には、印刷データに含まれるコードを入力してしまう可能性があり、予期しない箇所でデータが終了と判定されてしまう虞がある。さらに、別のユーザーが同じ印刷言語で印刷データを送信する際、印刷データ内にたまたま別のユーザーが登録した区切りコードが含まれていた場合、そのコードで印刷データが区切られてしまうため、印刷言語の解釈にてエラーが発生するか、エラーにならなくてもページの途中で途切れた印刷結果となってしまうという問題点があった。   In addition, when the user registers a delimiter code, there is a possibility that the code included in the print data may be input, and there is a possibility that the data is determined to end at an unexpected place. Furthermore, when another user sends print data in the same print language, if the delimiter code registered by another user happens to be included in the print data, the print data will be delimited by that code. There is a problem that an error occurs in the interpretation of the language, or even if the error does not occur, the print result is interrupted in the middle of the page.

本発明は、上記問題点を鑑みてなされたものであり、その目的とするところは、プリンタドライバーや印刷アプリケーションが指定した箇所で印刷データを確実に区切ることができる画像形成装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an image forming apparatus capable of reliably separating print data at a location designated by a printer driver or a printing application. Objective.

本発明の画像形成装置は、受信した印刷データ内から予め設定された既存区切りコードを検出することで、前記印刷データの区切りを認識して印刷処理を実行する画像形成装置であって、前記印刷データ内から前記既存区切りコードを検出する区切りコード検出部と、特殊コマンドを検出すると、前記特殊コマンドに格納されているワンタイム区切りコードを記憶部に記憶させる特殊コマンド検出部と、を具備し、前記区切りコード検出部は、前記特殊コマンド検出部によって前記特殊コマンドが検出されると、前記既存区切りコードの検出を無効化して、前記印刷データ内から前記記憶部に記憶された前記ワンタイム区切りコードを前記印刷データの区切りとして検出し、前記特殊コマンド検出部は、前記区切りコード検出部によって前記ワンタイム区切りコードが検出されると、前記ワンタイム区切りコードを前記記憶部から削除することを特徴とする。   The image forming apparatus of the present invention is an image forming apparatus that recognizes a break in the print data by detecting an existing break code set in advance from the received print data, and executes a printing process. A delimiter code detector that detects the existing delimiter code from within the data, and a special command detector that stores a one-time delimiter code stored in the special command in a storage unit when a special command is detected, When the special command detection unit detects the special command, the delimiter code detection unit invalidates the detection of the existing delimiter code, and the one-time delimiter code stored in the storage unit from within the print data Is detected as a delimiter of the print data, and the special command detection unit is detected by the delimiter code detection unit. When Ntaimu delimiter code is detected, and deletes the one-time break code from the storage unit.

本発明によれば、特殊コマンドによって設定されたワンタイム区切りコードによって、印刷データの区切りを検出することができるため、印刷データの送信元であるプリンタドライバーや印刷アプリケーションが指定した箇所で印刷データを確実に区切ることができるという効果を奏する。   According to the present invention, since the print data break can be detected by the one-time break code set by the special command, the print data is sent at the location designated by the printer driver or print application that is the print data transmission source. There is an effect that it can be surely divided.

本発明に係る画像形成装置の実施の形態の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of an embodiment of an image forming apparatus according to the present invention. 図1に示す特殊コマンドが付加された印刷データ例を示す図である。It is a figure which shows the example of print data to which the special command shown in FIG. 1 was added. 図1に示す画像形成装置における特殊コマンド検出時の動作を説明するフローチャートである。3 is a flowchart illustrating an operation when a special command is detected in the image forming apparatus illustrated in FIG. 1. 図1に示すタイムアウト管理部による内部タイムアウトの検出動作を説明するシーケンス図である。It is a sequence diagram explaining the detection operation of the internal timeout by the timeout management part shown in FIG.

以下、図を参照して本発明の実施の形態を詳細に説明する。なお、以下の実施形態において、同様の機能を示す構成には、同一の符号を付してある。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that, in the following embodiments, the same reference numerals are given to configurations showing similar functions.

本実施の形態の画像形成装置1は、複写機やMFP(Multifunction Peripheral/Printer/Product)等であり、図1を参照すると、操作部2と、原稿読取部3と、入出力部4と、記憶部5と、画像処理部6と、印刷部7と、制御部8とを備えている。   An image forming apparatus 1 according to the present embodiment is a copying machine, an MFP (Multifunction Peripheral / Printer / Product), or the like. Referring to FIG. A storage unit 5, an image processing unit 6, a printing unit 7, and a control unit 8 are provided.

操作部2は、印刷処理の実行指示、印刷設定の入力、設定値の表示、エラー詳細内容の表示を行うキーボードやタッチパネル等のユーザーインターフェースである。   The operation unit 2 is a user interface such as a keyboard or a touch panel for performing an instruction for executing a printing process, inputting print settings, displaying setting values, and displaying error details.

原稿読取部3は、図示しない原稿給紙装置により給紙されてきた原稿や、ユーザーによってコンタクトガラスに載置された原稿に対して光を照射し、その反射光等を受光して画像データを読み取るスキャナーである。   The document reading unit 3 irradiates a document fed by a document feeder (not shown) or a document placed on a contact glass by a user and receives reflected light or the like to receive image data. It is a scanner that reads.

入出力部4は、LAN等のネットワーク10や、パラレル、USB等の各種インターフェースを介して接続された端末装置20との間で情報の送受信を行う機能を備えている。入出力部4は、画像データを含む文書データ等の印刷データや、画像形成装置1の情報、エラー情報を所定のプロトコルで送受信するインターフェースである。   The input / output unit 4 has a function of transmitting and receiving information to and from the terminal device 20 connected via a network 10 such as a LAN and various interfaces such as parallel and USB. The input / output unit 4 is an interface that transmits / receives print data such as document data including image data, information on the image forming apparatus 1, and error information using a predetermined protocol.

記憶部5は、原稿画像や印刷データが記憶される半導体メモリー、HDD(Hard Disk Drive)等の記憶手段である。記憶部5は、画像処理用のメモリーや各種設定を記憶するメモリーとしても使用される。また、記憶部5は、外部から着脱可能に配置されるSDカードやUSBメモリー等であっても良い。記憶部5には、区切りコード51と、特殊コマンド52とが記憶されている。さらに、記憶部5には、ワンタイム区切りコード53が記憶される。   The storage unit 5 is a storage unit such as a semiconductor memory or an HDD (Hard Disk Drive) in which document images and print data are stored. The storage unit 5 is also used as a memory for image processing and a memory for storing various settings. The storage unit 5 may be an SD card, a USB memory, or the like that is detachably attached from the outside. The storage unit 5 stores a delimiter code 51 and a special command 52. Further, a one-time delimiter code 53 is stored in the storage unit 5.

区切りコード51は、一般的なページ記述言語において印刷データの区切りとして用いられるコマンドである。例えば、区切りコード51として、PJL(Printer Job Language)のUEL(Universal Exit Language)、Ctrl−D(Postscriptの場合)、EOJコマンド、PRESCRIBEのJOBTコマンド等が予め登録されている。   The delimiter code 51 is a command used as a delimiter for print data in a general page description language. For example, PJL (Printer Job Language) UEL (Universal Exit Language), Ctrl-D (in the case of Postscript), EOJ command, PRESCRIBE JOBT command, and the like are registered in advance as the delimiter code 51.

特殊コマンド52は、印刷データがワンタイム区切りコード53によって区切られていることを示すコマンドである。特殊コマンド52は、印刷データを送信する端末装置20のプリンタドライバーや印刷アプリケーション(以下、印刷データ送信元と称す)との間で取り決められたコマンドであり、図2に示すように、印刷データの前に付加される。また、特殊コマンド52には、ワンタイム区切りコード53を格納する領域が設定されており、印刷データ送信元は、任意のワンタイム区切りコード53を設定することができる。   The special command 52 is a command indicating that the print data is separated by the one-time separation code 53. The special command 52 is a command negotiated with a printer driver or a print application (hereinafter referred to as a print data transmission source) of the terminal device 20 that transmits the print data. As shown in FIG. Prepended. The special command 52 has an area for storing a one-time delimiter code 53, and the print data transmission source can set an arbitrary one-time delimiter code 53.

画像処理部6は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等を備えたマイクロコンピュータ等の演算処理回路であり、例えば、拡大縮小処理、濃度調整処理、階調調整処理等の画像処理に係る各種ジョブを実行する。   The image processing unit 6 is an arithmetic processing circuit such as a microcomputer including a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. Various jobs related to image processing such as gradation adjustment processing are executed.

印刷部7は、原稿読取部3によって読み取った原稿画像や、端末装置20から受信した印刷データを印刷する印刷手段である。印刷部7は、例えば、印刷データに基づき感光体ドラムの表面に潜像を形成し、トナーによってその潜像をトナー像とする画像形成を行い、その感光体ドラムから記録紙にトナー像を転写させ、そのトナー像を記録紙に定着させて排紙する。   The printing unit 7 is a printing unit that prints the document image read by the document reading unit 3 and the print data received from the terminal device 20. For example, the printing unit 7 forms a latent image on the surface of the photosensitive drum based on the print data, forms an image using the latent image as a toner image with toner, and transfers the toner image from the photosensitive drum to the recording paper. The toner image is fixed on a recording sheet and discharged.

制御部8は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等を備えたマイクロコンピュータ等の演算処理回路である。ROMには画像形成装置1の動作制御を行うための制御プログラムが記憶されている。制御部8は、ROMに記憶されている制御プログラムを読み出し、制御プログラムをRAMに展開させることで、操作部2から入力された各種指示情報に応じて装置全体の制御を行う。   The control unit 8 is an arithmetic processing circuit such as a microcomputer provided with a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), and the like. The ROM stores a control program for controlling the operation of the image forming apparatus 1. The control unit 8 reads the control program stored in the ROM and develops the control program in the RAM, thereby controlling the entire apparatus according to various instruction information input from the operation unit 2.

また、制御部8は、区切りコード検出部81、特殊コマンド検出部82、タイムアウト管理部83として機能する。   The control unit 8 functions as a delimiter code detection unit 81, a special command detection unit 82, and a timeout management unit 83.

区切りコード検出部81は、印刷データ受信時に印刷データ内の区切りコード51を、印刷データの区切りとして検出する。また、特殊コマンド検出部82からコード切換を指示されると、既存区切りコード(区切りコード51)の検出を無効化し、印刷データ内のワンタイム区切りコード53を、印刷データの区切りとして検出する。   The delimiter code detector 81 detects the delimiter code 51 in the print data as print data delimiters when receiving the print data. Also, when a code switch is instructed from the special command detection unit 82, detection of the existing delimiter code (delimiter code 51) is invalidated, and the one-time delimiter code 53 in the print data is detected as a delimiter of the print data.

特殊コマンド検出部82は、印刷データの前に付加された特殊コマンド52を検出すると、特殊コマンド52に格納されているワンタイム区切りコード53を記憶部5に記憶させると共に、区切りコード検出部81とタイムアウト管理部83とにコード切換を指示する。   When the special command detection unit 82 detects the special command 52 added before the print data, the special command detection unit 82 stores the one-time delimiter code 53 stored in the special command 52 in the storage unit 5 and the delimiter code detection unit 81. It instructs the timeout management unit 83 to switch codes.

タイムアウト管理部83は、端末装置20との通信断が設定された第1タイムアウト時間を超えると、インターフェースタイムアウトを検出する。また、タイムアウト管理部83は、特殊コマンド検出部82からコード切換を指示されると、インターフェースタイムアウトの検出を無効化し、特殊コマンド52の受信後、ワンタイム区切りコード53が検出されることなく、印刷データの受信が途絶えた状態が設定された第2タイムアウト時間を超えると、内部タイムアウトを検出する。   The timeout management unit 83 detects an interface timeout when the communication timeout with the terminal device 20 exceeds the first timeout time set. Further, when the special command detection unit 82 is instructed to switch the code, the timeout management unit 83 invalidates the detection of the interface timeout, and after receiving the special command 52, the one-time delimiter code 53 is not detected and the printing is performed. When the state in which data reception is interrupted exceeds the set second timeout period, an internal timeout is detected.

次に、画像形成装置1における特殊コマンド52の検出時の動作について図3を参照して詳細に説明する。
特殊コマンド検出部82は、受信されたデータと、記憶部5に記憶されている特殊コマンド52とを比較することで、特殊コマンド52を検出する(ステップS101)。なお、特殊コマンド52は、印刷データの前に付加されることが予め取り決められているため、データの受信開始直後や、区切りコード検出部81によって区切りコード51が検出された直後のみ動作する。
Next, the operation when the special command 52 is detected in the image forming apparatus 1 will be described in detail with reference to FIG.
The special command detection unit 82 detects the special command 52 by comparing the received data with the special command 52 stored in the storage unit 5 (step S101). Since the special command 52 is determined in advance to be added before the print data, it operates only immediately after the start of data reception or immediately after the delimiter code 51 is detected by the delimiter code detector 81.

次に、特殊コマンド検出部82は、特殊コマンド52に格納されているワンタイム区切りコード53を記憶部5に記憶させる(ステップS102)。   Next, the special command detection unit 82 stores the one-time delimiter code 53 stored in the special command 52 in the storage unit 5 (step S102).

また、特殊コマンド検出部82は、タイムアウト管理部83にコード切換を指示し、タイムアウト管理部83によるインターフェースタイムアウトの検出を無効化させる(ステップS103)。   Further, the special command detection unit 82 instructs the timeout management unit 83 to switch codes, and invalidates the detection of the interface timeout by the timeout management unit 83 (step S103).

また、特殊コマンド検出部82は、区切りコード検出部81にコード切換を指示し、区切りコード検出部81による既存区切りコード(区切りコード51)の検出を無効化させる(ステップS104)。   Further, the special command detection unit 82 instructs the delimiter code detection unit 81 to switch codes, and invalidates the detection of the existing delimiter code (delimiter code 51) by the delimiter code detection unit 81 (step S104).

次に、制御部8は、特殊コマンドに引き続く印刷データを受信し(ステップS105)、1バイト毎に記憶部5に記憶させる(ステップS106)。   Next, the control unit 8 receives the print data following the special command (step S105), and stores it in the storage unit 5 for each byte (step S106).

次に、区切りコード検出部81は、ステップS102で記憶部5に記憶させたワンタイム区切りコード53と、ステップS106で記憶部5に記憶させた印刷データとを比較することで(ステップS107)、ワンタイム区切りコード53を検出する。そして、区切りコード検出部81は、ワンタイム区切りコード53が検出されたか否かを判断する(ステップS108)。   Next, the delimiter detection unit 81 compares the one-time delimiter code 53 stored in the storage unit 5 in step S102 with the print data stored in the storage unit 5 in step S106 (step S107). A one-time delimiter code 53 is detected. Then, the delimiter code detection unit 81 determines whether or not the one-time delimiter code 53 is detected (step S108).

ステップS108でワンタイム区切りコード53が検出されなかった場合、ステップS105に戻り、制御部8によって引き続き印刷データを受信する。   If the one-time delimiter code 53 is not detected in step S108, the process returns to step S105, and the control unit 8 continues to receive print data.

ステップS108でワンタイム区切りコード53が検出された場合、区切りコード検出部81は、特殊コマンド検出部82とタイムアウト管理部83とにワンタイム区切りコード53の検出を通知すると共に、制御部8は、記憶部5に記憶させた印刷データの解釈及び印刷処理を実行する(ステップS109)。なお、印刷処理に先立つ、印刷データの解釈及び描画処理は、ステップS105〜108と並行処理しても良い。   When the one-time delimiter code 53 is detected in step S108, the delimiter code detection unit 81 notifies the special command detection unit 82 and the timeout management unit 83 of the detection of the one-time delimiter code 53, and the control unit 8 Interpretation of print data stored in the storage unit 5 and print processing are executed (step S109). Note that print data interpretation and drawing processing prior to printing processing may be performed in parallel with steps S105 to S108.

区切りコード検出部81からワンタイム区切りコード53の検出を通知された特殊コマンド検出部82は、記憶部5に記憶させたワンタイム区切りコード53を削除する(ステップS110)。これにより、特殊コマンド52で設定されたワンタイム区切りコード53の有効期間は、S102〜S110の間となる。すなわち、ワンタイム区切りコード53を設定する特殊コマンド52は印刷データとは別で、その特殊コマンド52を受信したインターフェースで受信する印刷データに対してのみ有効になる。   The special command detection unit 82 notified of the detection of the one-time delimiter code 53 from the delimiter code detection unit 81 deletes the one-time delimiter code 53 stored in the storage unit 5 (step S110). Thereby, the valid period of the one-time delimiter code 53 set by the special command 52 is between S102 and S110. That is, the special command 52 for setting the one-time delimiter code 53 is different from the print data and is effective only for the print data received by the interface that has received the special command 52.

また、ワンタイム区切りコード53の検出した区切りコード検出部81は、既存区切りコード(区切りコード51)の検出を有効化する(ステップS111)。   Further, the delimiter code detection unit 81 detected by the one-time delimiter code 53 validates the detection of the existing delimiter code (delimiter code 51) (step S111).

さらに、区切りコード検出部81からワンタイム区切りコード53の検出を通知されたタイムアウト管理部83は、インターフェースタイムアウトの検出を有効化する(ステップS112)。   Further, the timeout management unit 83 notified of the detection of the one-time delimiter code 53 from the delimiter code detection unit 81 validates the detection of the interface timeout (step S112).

次に、制御部8は、引き続くデータがあるか否かを判断する(ステップS113)。そして、ステップS113で引き続くデータがある場合、制御部8は、次の印刷データとして処理を実行する(ステップS114)。このように、特殊コマンド52の受信後、印刷データ内でワンタイム区切りコード53を検出した場合、その後にデータが繋がっていたとしても別データとして処理される。   Next, the control unit 8 determines whether there is subsequent data (step S113). If there is data that continues in step S113, the control unit 8 executes processing as the next print data (step S114). Thus, after receiving the special command 52, when the one-time delimiter code 53 is detected in the print data, it is processed as separate data even if the data is connected thereafter.

ステップS113で引き続くデータがない場合、制御部8は、そのまま印刷処理を終了させる。   If there is no subsequent data in step S113, the control unit 8 ends the printing process as it is.

次に、タイムアウト管理部83による内部タイムアウトの検出動作について図4を参照して詳細に説明する。なお、図3に示すフローチャートと重複する処理については、同一のステップ番号を付して適宜説明を省略する。   Next, the internal timeout detection operation by the timeout management unit 83 will be described in detail with reference to FIG. In addition, about the process which overlaps with the flowchart shown in FIG. 3, the same step number is attached | subjected and description is abbreviate | omitted suitably.

特殊コマンド52の検出によってインターフェースタイムアウトを無効化にした場合、特殊コマンド52によって設定されたワンタイム区切りコード53が受信されないと、データを待ち続け、且つインターフェースタイムアウトの検出を有効に戻すことできない。そこで、本実施の形態では、インターフェースタイムアウトと別に、内部タイムアウトを検出することで、特殊コマンド52検出後にワンタイム区切りコード53が受信されないケースに対応している。なお、内部タイムアウトの検出に用いる第2タイムアウト時間は、一般ユーザーが設定するものではなく、管理者が設定するものとする。管理者は、普段のMFP・Printerの使われ方、データの受信開始、受信完了、印刷開始、印刷完了等のパラメータより、第2タイムアウト時間を適切に設定する必要がある。   When the interface time-out is invalidated by detecting the special command 52, if the one-time delimiter code 53 set by the special command 52 is not received, the data is kept waiting and the detection of the interface time-out cannot be made valid again. Therefore, in this embodiment, by detecting an internal timeout in addition to the interface timeout, a case where the one-time delimiter code 53 is not received after the special command 52 is detected is handled. Note that the second timeout period used for detecting the internal timeout is not set by the general user, but is set by the administrator. The administrator needs to appropriately set the second timeout time based on parameters such as normal usage of the MFP / Printer, data reception start, data reception completion, print start, and print completion.

まず、印刷データ送信元の端末装置20は、画像形成装置1との間で双方向通信できる状態に設定する(ステップS201)。印刷データ送信元の端末装置20では、特殊コマンド52によってワンタイム区切りコード53を設定する場合、自動的に双方向通信を有効に設定する。   First, the terminal device 20 that is the print data transmission source sets a state in which bidirectional communication with the image forming apparatus 1 is possible (step S201). In the terminal device 20 of the print data transmission source, when the one-time delimiter code 53 is set by the special command 52, the bidirectional communication is automatically set to be valid.

タイムアウト管理部83は、特殊コマンド52の受信後、ワンタイム区切りコード53が検出されることなく、印刷データの受信が途絶えると、内部タイムアウトタイマーを起動する(ステップS202)。   After receiving the special command 52, the timeout management unit 83 activates an internal timeout timer when reception of print data is interrupted without detecting the one-time delimiter code 53 (step S202).

そして、印刷データの受信が途絶えた状態が設定された第2タイムアウト時間を超えると、タイムアウト管理部83は、内部タイムアウトを検出し、端末装置20にワンタイム区切りコード53が送られてこないことを通知する未受信メッセージを送信する(ステップS203)。   When the second timeout period in which the reception of print data is interrupted exceeds the set second timeout period, the timeout management unit 83 detects an internal timeout and indicates that the one-time delimiter code 53 has not been sent to the terminal device 20. An unreceived message to be notified is transmitted (step S203).

なお、内部タイムアウトタイマーの起動タイミングは、特殊コマンド52の受信時であっても良い。この場合、タイムアウト管理部83は、特殊コマンド52の受信から設定された第2タイムアウト時間が経過してもワンタイム区切りコード53が受信されない場合に、内部タイムアウトを検出する。   The start timing of the internal timeout timer may be when the special command 52 is received. In this case, the timeout management unit 83 detects an internal timeout when the one-time delimiter code 53 is not received even after the second timeout period set from the reception of the special command 52 has elapsed.

ステップS203で未受信メッセージを受信した端末装置20は、ワンタイム区切りコード53を画像形成装置1に送信する。これにより、画像形成装置1は、制御部8は印刷処理を完了させ、特殊コマンド検出部82は、記憶部5に記憶させたワンタイム区切りコード53を削除することができる。また、タイムアウト管理部83はインターフェースタイムアウトの検出を、区切りコード検出部81は既存区切りコード(区切りコード51)の検出をそれぞれ有効化することができる。   The terminal device 20 that has received the unreceived message in step S <b> 203 transmits the one-time delimiter code 53 to the image forming apparatus 1. Thereby, in the image forming apparatus 1, the control unit 8 can complete the printing process, and the special command detection unit 82 can delete the one-time delimiter code 53 stored in the storage unit 5. The timeout management unit 83 can validate the detection of the interface timeout, and the delimiter code detection unit 81 can validate the detection of the existing delimiter code (delimiter code 51).

なお、未受信メッセージを送信後も端末装置20から何も送られてこない場合には、タイムアウト管理部83は、未受信メッセージを再送する。未受信メッセージの送信回数や送信間隔は、適宜設定することができる。   Note that if nothing is sent from the terminal device 20 even after transmitting an unreceived message, the timeout management unit 83 retransmits the unreceived message. The number of transmissions of unreceived messages and the transmission interval can be set as appropriate.

そして、設定された回数の未受信メッセージを送信しても、端末装置20から何も送られてこない場合には、ネットワーク10やパラレル、USB等の接続が切れているか、端末装置20が何らかの理由によりデータを送信できなくなっていることが想定される。従って、この場合もワンタイム区切りコード53の受信時と同様に、印刷処理を実行し、ワンタイム区切りコード53の削除、インターフェースタイムアウトの検出及び既存区切りコード(区切りコード51)の検出を有効化する。   If nothing is sent from the terminal device 20 even if the set number of unreceived messages is transmitted, the connection of the network 10, parallel, USB, etc. is broken, or the terminal device 20 has some reason. As a result, it is assumed that data cannot be transmitted. Accordingly, in this case as well, the printing process is executed in the same manner as when the one-time delimiter code 53 is received, and the deletion of the one-time delimiter code 53, the detection of the interface timeout, and the detection of the existing delimiter code (delimiter code 51) are enabled. .

このとき、受信していたデータが中途半端(印刷ページの途中で途切れるような場合)であれば、制御部8は、印刷ページとして成り立っているところまでを印刷する。そして、残りのデータ分がゴミ印刷(何枚も印刷される)となる場合は印刷しないか、もしくはエラーページ(エラー内容を記載した印刷物)を印刷すると良い。   At this time, if the received data is halfway (in the case where the data is interrupted in the middle of the print page), the control unit 8 prints up to what has been established as the print page. Then, if the remaining data is dust printing (several sheets are printed), it is preferable not to print or print an error page (printed matter describing the error contents).

以上説明したように、本実施の形態によれば、受信した印刷データ内から予め設定された既存区切りコードとして記憶部5に記憶された区切りコード51を検出することで、印刷データの区切りを認識して印刷処理を実行する画像形成装置1であって、印刷データ内から区切りコード51を検出する区切りコード検出部81と、特殊コマンド52を検出すると、特殊コマンド52に格納されているワンタイム区切りコード53を記憶部5に記憶させる特殊コマンド検出部82と、を具備し、区切りコード検出部81は、特殊コマンド検出部82によって特殊コマンド52が検出されると、区切りコード51の検出を無効化して、印刷データ内から記憶部5に記憶されたワンタイム区切りコード53を印刷データの区切りとして検出し、特殊コマンド検出部82は、区切りコード検出部81によってワンタイム区切りコード53が検出されると、ワンタイム区切りコード53を記憶部5から削除する。
この構成により、特殊コマンド52によって設定されたワンタイム区切りコード53によって、印刷データの区切りを検出することができるため、印刷データの送信元であるプリンタドライバーや印刷アプリケーションが指定した箇所で印刷データを確実に区切ることができる。また、ワンタイム区切りコード53に有効期間を設け、区切りコード検出部81によるワンタイム区切りコード53の検出で、ワンタイム区切りコード53を記憶部5から削除されるため、特殊コマンド52が付加された印刷データにのみ有効な区切りとすることができ、区切りコードの誤検出を防止できる。
As described above, according to the present embodiment, the delimiter of the print data is recognized by detecting the delimiter code 51 stored in the storage unit 5 as the existing delimiter code set in advance from the received print data. When the image forming apparatus 1 executes the printing process and detects the delimiter code 51 from the print data and the special command 52, the one-time delimiter stored in the special command 52 is detected. A special command detection unit 82 for storing the code 53 in the storage unit 5, and the delimiter code detection unit 81 invalidates the detection of the delimiter code 51 when the special command 52 is detected by the special command detection unit 82. Thus, the one-time delimiter code 53 stored in the storage unit 5 is detected as a delimiter of the print data from within the print data, and a special code is detected. Command detecting unit 82, the one-time break code 53 by delimiter code detection unit 81 is detected, to remove the one-time delimiter code 53 from the storage unit 5.
With this configuration, the print data break can be detected by the one-time break code 53 set by the special command 52, so that the print data is sent at the location specified by the printer driver or print application that is the print data transmission source. Can be delimited reliably. Further, a special command 52 is added because an effective period is provided in the one-time delimiter code 53 and the one-time delimiter code 53 is deleted from the storage unit 5 when the delimiter code detection unit 81 detects the one-time delimiter code 53. Separation that is valid only for print data can be made, and erroneous detection of the separation code can be prevented.

さらに、本実施の形態において、区切りコード検出部81は、特殊コマンド検出部82によって特殊コマンド52が検出されると、ワンタイム区切りコード53を検出するまで、区切りコード51の検出を無効化する。
この構成により、印刷データの区切りをワンタイム区切りコード53の検出のみで判断することができ、印刷データの送信元であるプリンタドライバーや印刷アプリケーションが指定した箇所で印刷データを確実に区切ることができる。
Furthermore, in the present embodiment, when the special command 52 is detected by the special command detection unit 82, the delimiter code detector 81 invalidates the detection of the delimiter code 51 until the one-time delimiter code 53 is detected.
With this configuration, it is possible to determine the separation of print data only by detecting the one-time separation code 53, and it is possible to reliably separate the print data at a location designated by the printer driver or print application that is the transmission source of the print data. .

さらに、本実施の形態において、印刷データの送信元との間のインターフェースタイムアウトを検出するタイムアウト管理部83を具備し、タイムアウト管理部83は、特殊コマンド検出部82によって特殊コマンド52が検出されると、区切りコード検出部81によってワンタイム区切りコード53が検出されるまで、インターフェースタイムアウトの検出を無効化する。
この構成により、インターフェースタイムアウトによって、区切りコード51の検出を無効化した状態が継続されることを防止することができる。
Further, in the present embodiment, a timeout management unit 83 that detects an interface timeout with the print data transmission source is provided, and the timeout management unit 83 detects that the special command 52 is detected by the special command detection unit 82. Until the one-time delimiter code 53 is detected by the delimiter detection unit 81, the detection of the interface timeout is invalidated.
With this configuration, it is possible to prevent the state where the detection of the separator code 51 is invalidated due to the interface time-out.

さらに、本実施の形態において、タイムアウト管理部83は、特殊コマンド検出部82によって特殊コマンド52が検出されると、ワンタイム区切りコード53の未受信状態を内部タイムアウトとして検出し、印刷データの送信元にワンタイム区切りコード53の未受信を通知する未受信リクエストを送信する。
この構成により、印刷データの送信元であるプリンタドライバーや印刷アプリケーションにワンタイム区切りコード53の送信もしくは再送信を依頼することができ、データを待ち続け、且つインターフェースタイムアウトの検出を有効に戻すことできない状態を回避することができる。
Further, in the present embodiment, when the special command 52 is detected by the special command detection unit 82, the timeout management unit 83 detects the unreception state of the one-time delimiter code 53 as an internal timeout, and the print data transmission source A non-reception request for notifying the non-reception of the one-time delimiter code 53 is transmitted.
With this configuration, it is possible to request the printer driver or print application that is the transmission source of the print data to transmit or retransmit the one-time delimiter code 53, and it is not possible to continue waiting for the data and to enable the detection of the interface timeout. A state can be avoided.

さらに、本実施の形態において、タイムアウト管理部83によって未受信リクエストを送信してもワンタイム区切りコード53の受信が検出されない場合、受信済みの印刷データの印刷処理を実行すると共に、特殊コマンド検出部82は、ワンタイム区切りコード53を記憶部5から削除し、区切りコード検出部81は、区切りコード51の検出を有効化し、タイムアウト管理部83は、インターフェースタイムアウトの検出を有効化する。
この構成により、特殊コマンド検出部82によって特殊コマンド52が検出される前の状態に戻すことができる。
Further, in the present embodiment, if the reception of the one-time delimiter code 53 is not detected even if the unreceived request is transmitted by the timeout management unit 83, the print processing of the received print data is executed and the special command detection unit 82 deletes the one-time delimiter code 53 from the storage unit 5, the delimiter code detection unit 81 enables detection of the delimiter code 51, and the timeout management unit 83 enables detection of the interface timeout.
With this configuration, it is possible to return to the state before the special command 52 is detected by the special command detection unit 82.

なお、本発明が上記各実施の形態に限定されず、本発明の技術思想の範囲内において、各実施の形態は適宜変更され得ることは明らかである。また、上記構成部材の数、位置、形状等は上記実施の形態に限定されず、本発明を実施する上で好適な数、位置、形状等にすることができる。なお、各図において、同一構成要素には同一符号を付している。   Note that the present invention is not limited to the above-described embodiments, and it is obvious that the embodiments can be appropriately changed within the scope of the technical idea of the present invention. In addition, the number, position, shape, and the like of the constituent members are not limited to the above-described embodiment, and can be set to a number, position, shape, and the like that are suitable for implementing the present invention. In each figure, the same numerals are given to the same component.

1 画像形成装置
2 操作部
3 原稿読取部
4 入出力部
5 記憶部
6 画像処理部
7 印刷部
8 制御部
10 ネットワーク
20 端末装置
51 区切りコード
52 特殊コマンド
53 ワンタイム区切りコード
81 区切りコード検出部
82 特殊コマンド検出部
83 タイムアウト管理部
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 2 Operation part 3 Document reading part 4 Input / output part 5 Storage part 6 Image processing part 7 Printing part 8 Control part 10 Network 20 Terminal device 51 Delimiter code 52 Special command 53 One-time delimiter code 81 Delimiter code detection part 82 Special command detection unit 83 Timeout management unit

Claims (5)

受信した印刷データ内から予め設定された既存区切りコードを検出することで、前記印刷データの区切りを認識して印刷処理を実行する画像形成装置であって、
前記印刷データ内から前記既存区切りコードを検出する区切りコード検出部と、
特殊コマンドを検出すると、前記特殊コマンドに格納されているワンタイム区切りコードを記憶部に記憶させる特殊コマンド検出部と、を具備し、
前記区切りコード検出部は、前記特殊コマンド検出部によって前記特殊コマンドが検出されると、前記既存区切りコードの検出を無効化して、前記印刷データ内から前記記憶部に記憶された前記ワンタイム区切りコードを前記印刷データの区切りとして検出し、
前記特殊コマンド検出部は、前記区切りコード検出部によって前記ワンタイム区切りコードが検出されると、前記ワンタイム区切りコードを前記記憶部から削除することを特徴とする画像形成装置。
An image forming apparatus that recognizes the print data delimiter by detecting an existing delimiter code set in advance from the received print data, and executes print processing,
A delimiter code detector for detecting the existing delimiter code from within the print data;
A special command detection unit that, when detecting a special command, stores a one-time delimiter code stored in the special command in a storage unit,
When the special command detection unit detects the special command, the delimiter code detection unit invalidates the detection of the existing delimiter code, and the one-time delimiter code stored in the storage unit from within the print data As a delimiter of the print data,
The special command detection unit is configured to delete the one-time delimiter code from the storage unit when the delimiter code detection unit detects the one-time delimiter code.
前記区切りコード検出部は、前記特殊コマンド検出部によって前記特殊コマンドが検出されると、前記ワンタイム区切りコードを検出するまで、前記既存区切りコードの検出を無効化することを特徴とする請求項1記載の画像形成装置。   2. The delimiter code detection unit, when the special command is detected by the special command detection unit, invalidates the detection of the existing delimiter code until the one-time delimiter code is detected. The image forming apparatus described. 前記印刷データの送信元との間のインターフェースタイムアウトを検出するタイムアウト管理部を具備し、
前記タイムアウト管理部は、前記特殊コマンド検出部によって前記特殊コマンドが検出されると、前記区切りコード検出部によって前記ワンタイム区切りコードが検出されるまで、前記インターフェースタイムアウトの検出を無効化することを特徴とする請求項2記載の画像形成装置。
A timeout management unit for detecting an interface timeout with the print data transmission source;
The timeout management unit invalidates the detection of the interface timeout until the one-time delimiter code is detected by the delimiter code detection unit when the special command is detected by the special command detection unit. The image forming apparatus according to claim 2.
前記タイムアウト管理部は、前記特殊コマンド検出部によって前記特殊コマンドが検出されると、前記ワンタイム区切りコードの未受信状態を内部タイムアウトとして検出し、前記印刷データの送信元に前記ワンタイム区切りコードの未受信を通知する未受信リクエストを送信することを特徴とする請求項3記載の画像形成装置。   When the special command detection unit detects the special command, the timeout management unit detects an unreception state of the one-time delimiter code as an internal time-out, and sends the print data to the transmission source of the one-time delimiter code. 4. The image forming apparatus according to claim 3, wherein a non-reception request for notifying of non-reception is transmitted. 前記タイムアウト管理部によって前記未受信リクエストを送信しても前記ワンタイム区切りコードの受信が検出されない場合、受信済みの前記印刷データの印刷処理を実行すると共に、前記特殊コマンド検出部は、前記ワンタイム区切りコードを前記記憶部から削除し、前記区切りコード検出部は、前記既存区切りコードの検出を有効化し、前記タイムアウト管理部は、前記インターフェースタイムアウトの検出を有効化することを特徴とする請求項4記載の画像形成装置。   If reception of the one-time delimiter code is not detected even when the unreceived request is transmitted by the timeout management unit, the special command detection unit executes the print processing of the received print data, 5. The delimiter code is deleted from the storage unit, the delimiter code detection unit enables detection of the existing delimiter code, and the timeout management unit enables detection of the interface timeout. The image forming apparatus described.
JP2017114091A 2017-06-09 2017-06-09 Image forming device Active JP6791026B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017114091A JP6791026B2 (en) 2017-06-09 2017-06-09 Image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017114091A JP6791026B2 (en) 2017-06-09 2017-06-09 Image forming device

Publications (2)

Publication Number Publication Date
JP2018202823A true JP2018202823A (en) 2018-12-27
JP6791026B2 JP6791026B2 (en) 2020-11-25

Family

ID=64956041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017114091A Active JP6791026B2 (en) 2017-06-09 2017-06-09 Image forming device

Country Status (1)

Country Link
JP (1) JP6791026B2 (en)

Also Published As

Publication number Publication date
JP6791026B2 (en) 2020-11-25

Similar Documents

Publication Publication Date Title
JP4838985B2 (en) Information processing apparatus, information processing method, information processing program, and recording medium
JP5423079B2 (en) Device management system, device, device management method and device management program
JP2010221697A (en) Image forming apparatus, image forming method, program and recording medium
US20090066989A1 (en) Image forming apparatus and method, computer program product, and image forming system
US10659623B2 (en) Image forming apparatus, information processing method, and program to cancel a job
US20140245413A1 (en) Image forming system, image forming apparatus, and recording medium
JP2007098590A (en) Image forming device
US20180097959A1 (en) Image forming apparatus, method for controlling image forming, apparatus and storage medium
US8659782B2 (en) Image forming apparatus using option controller for printing
JP2009157566A (en) Image forming apparatus
US20170187889A1 (en) Information processing apparatus, information system, information processing method, and storage medium
JP2009217586A (en) Printing system
US20200034555A1 (en) Image Forming Apparatus and Virus Check Method
JP2018176629A (en) Image processing device
US7573592B2 (en) Status data transmission of image processing apparatus
US11360725B2 (en) Image processing apparatus, method, and computer-readable medium for reducing time required until completing output process after successful authentication
JP6791026B2 (en) Image forming device
CN111726468B (en) Image processing system, image processing apparatus, information processing apparatus, and recording medium
JP6460905B2 (en) Communication device, control method, program
JP6657709B2 (en) Program and information processing device
US20230161524A1 (en) Printing apparatus, control method thereof, and storage medium
JP7147360B2 (en) Image forming apparatus, virus check method, and computer program
US20240037360A1 (en) Image forming apparatus
JP5200610B2 (en) Image forming system
JP2006092378A (en) Information processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190628

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200728

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: 20201006

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201019

R150 Certificate of patent or registration of utility model

Ref document number: 6791026

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150