JP2023142015A - Communication device and method for controlling the same, program, and printing system - Google Patents
Communication device and method for controlling the same, program, and printing system Download PDFInfo
- Publication number
- JP2023142015A JP2023142015A JP2022048666A JP2022048666A JP2023142015A JP 2023142015 A JP2023142015 A JP 2023142015A JP 2022048666 A JP2022048666 A JP 2022048666A JP 2022048666 A JP2022048666 A JP 2022048666A JP 2023142015 A JP2023142015 A JP 2023142015A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- data
- notification
- received
- packets
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 95
- 238000000034 method Methods 0.000 title claims description 48
- 238000007639 printing Methods 0.000 title claims description 30
- 230000005540 biological transmission Effects 0.000 claims abstract description 50
- 238000001514 detection method Methods 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 abstract description 51
- 238000010586 diagram Methods 0.000 description 21
- 238000006243 chemical reaction Methods 0.000 description 16
- 238000012546 transfer Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000007257 malfunction Effects 0.000 description 7
- 230000004044 response Effects 0.000 description 6
- WBMKMLWMIQUJDP-STHHAXOLSA-N (4R,4aS,7aR,12bS)-4a,9-dihydroxy-3-prop-2-ynyl-2,4,5,6,7a,13-hexahydro-1H-4,12-methanobenzofuro[3,2-e]isoquinolin-7-one hydrochloride Chemical compound Cl.Oc1ccc2C[C@H]3N(CC#C)CC[C@@]45[C@@H](Oc1c24)C(=O)CC[C@@]35O WBMKMLWMIQUJDP-STHHAXOLSA-N 0.000 description 3
- KNMAVSAGTYIFJF-UHFFFAOYSA-N 1-[2-[(2-hydroxy-3-phenoxypropyl)amino]ethylamino]-3-phenoxypropan-2-ol;dihydrochloride Chemical compound Cl.Cl.C=1C=CC=CC=1OCC(O)CNCCNCC(O)COC1=CC=CC=C1 KNMAVSAGTYIFJF-UHFFFAOYSA-N 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Abstract
Description
本発明は、通信装置及びその制御方法とプログラム並びに印刷システムに関する。 The present invention relates to a communication device, its control method, program, and printing system.
プロダクションプリントの分野では、パーソナルコンピュータ(PC)等で作成された文書等を印刷制御装置からプリンタや複合機等の画像形成装置に対して印刷制御を行う印刷システムが利用されている。そして、このような印刷システムでの高画質化及び高生産性化を実現するために、印刷制御装置と画像形成装置との間での画像データ等の送受信を高速で行う技術が求められている。 2. Description of the Related Art In the field of production printing, a printing system is used in which a print control device controls printing of a document created on a personal computer (PC) or the like to an image forming device such as a printer or a multifunction device. In order to achieve higher image quality and higher productivity in such printing systems, there is a need for technology that enables high-speed transmission and reception of image data, etc. between the printing control device and the image forming device. .
高速データ通信方法の一例として、パラレルシリアル変換(P/S変換)によりデータをシリアル化して高速に送信する方法がある。このデータ通信方法を印刷システムに採用した場合には、画像データを複数の経路に分割し、分割された画像データを同時並行でP/S変換して各経路でシリアルデータとして送信することにより、大容量の画像データを高速で送信することが可能になると考えられる。 An example of a high-speed data communication method is a method of serializing data using parallel-to-serial conversion (P/S conversion) and transmitting the data at high speed. When this data communication method is adopted in a printing system, image data is divided into multiple paths, the divided image data is P/S-converted in parallel, and transmitted as serial data through each path. It is thought that it will be possible to transmit large amounts of image data at high speed.
しかしながら、印刷制御装置から画像形成装置へ大容量の画像データを一挙に(一纏めに)送信した場合、受信側の画像形成装置でバッファメモリに空きがなくなるおそれがある。また、データ送信中に信号ノイズの影響によって画像データの欠損が生じるおそれがあり、この場合に大容量の画像データを再送信する必要が生じる。 However, when a large amount of image data is transmitted all at once (all at once) from the print control device to the image forming device, there is a risk that the receiving image forming device will run out of space in its buffer memory. Furthermore, there is a possibility that image data is lost due to the influence of signal noise during data transmission, and in this case, it becomes necessary to retransmit a large amount of image data.
このような問題を解決する手法の1つに、画像データをパケットと呼ばれる所定のサイズに分割し、分割されたデータにパケットの種類や番号を含むヘッダーを付与して送信する手法がある。この手法では、受信側は、パケットの種類や番号を区別して正しいデータを受信しているか否かを確認し、データを正しく受信することができなかった(エラーが発生した)と判断した場合、該当するパケット番号のデータを再送するように送信側に要求する。 One method for solving such problems is to divide image data into predetermined sizes called packets, add a header containing the packet type and number to the divided data, and then transmit the data. In this method, the receiving side distinguishes between packet types and numbers to check whether the correct data is being received, and if it is determined that the data could not be received correctly (an error occurred), Requests the sending side to retransmit the data of the corresponding packet number.
例えば、特許文献1に記載された送受信システムでは、送信装置は、映像データを複数のデータに分割し、分割されたデータにシーケンス番号を付与してパケットを生成し、シーケンス番号の大きい順にパケットを受信装置へ送信する。そして、送信装置は、受信装置からデータの再送要求を受けた場合、再送要求の対象となるパケットを特定し、特定したパケットのみを受信側へ再送する。
For example, in the transmitting/receiving system described in
上記特許文献1に記載されている技術では、送信側と受信側の各機器は、再送要求に応じたデータ送受信を行う際に、再送するパケットの特定、メモリからの読み出し又はメモリへの書き込みを行う必要がある。このような処理をソフトウェアシーケンスで制御する場合、ソフトオーバーヘッドによって所望の性能が出ず、また、CPUの負荷が増大してしまうという問題が生ずるおそれがある。
In the technology described in
本発明は、このような事情に鑑みてなされたものであり、データ送受信時にエラーが生じた場合の送信側及び受信側の各機器での処理負荷の軽減を可能とする通信装置を提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a communication device that makes it possible to reduce the processing load on each device on the sending and receiving sides when an error occurs during data transmission/reception. With the goal.
本発明に係る通信装置は、ヘッダー、データおよびフッターを有し、前記ヘッダーに予め定められた規則にしたがってIDが付与されたパケットを生成する生成手段と、前記生成手段が生成したパケットを外部機器へ送信する送信手段と、前記外部機器から送信されてきた通知を受信する受信手段と、前記通知が前記送信手段から前記外部機器へ送信された所定のIDのパケットについて前記外部機器から再送を要求するものである場合に、前記所定のIDに遡って前記所定のIDのパケットから順次それ以降のIDのパケットを前記外部機器へ送信するよう制御する制御手段と、を備えることを特徴とする。 A communication device according to the present invention includes a generating means for generating a packet having a header, data, and a footer and having an ID assigned to the header according to a predetermined rule; a transmitting means for transmitting a notification to the external device; a receiving means for receiving a notification transmitted from the external device; and a request for retransmission from the external device regarding a packet with a predetermined ID for which the notification was transmitted from the transmitting means to the external device. In this case, the apparatus is characterized by comprising a control means that goes back to the predetermined ID and controls the packets with subsequent IDs to be transmitted to the external device sequentially from the packet with the predetermined ID.
本発明によれば、データ送受信時にエラーが生じた場合の送信側及び受信側の各機器での処理負荷を軽減させることができる。 According to the present invention, it is possible to reduce the processing load on each device on the sending and receiving sides when an error occurs during data transmission and reception.
以下、本発明の実施形態について、添付図面を参照して詳細に説明する。ここでは、本発明に係る通信装置の一例としての印刷制御装置(第1の通信装置)及び画像形成装置(第2の通信装置)が通信可能に接続されて構成された印刷システムを取り上げる。但し、本発明に係る通信装置は、このような実施形態に限定されるものではない。 Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Here, we will discuss a printing system in which a print control device (first communication device) and an image forming device (second communication device) are communicably connected as an example of a communication device according to the present invention. However, the communication device according to the present invention is not limited to such embodiments.
<印刷システムの概略構成>
図1は、実施形態に係る印刷システム100の概略構成を示すブロック図である。印刷システム100は、クライアントPC101、印刷制御装置102及び画像形成装置103を有する。クライアントPC101は、ネットワーク104を介して印刷制御装置102及び画像形成装置103と通信可能に接続されている。また、印刷制御装置102と画像形成装置103は、ネットワーク105と画像データ用通信路106を介して通信可能に接続されている。なお、画像形成装置103は印刷制御装置102を基準とした場合の外部機器の1つであり、その逆も同様に、印刷制御装置102は画像形成装置103を基準とした場合の外部機器の1つである。
<Schematic configuration of printing system>
FIG. 1 is a block diagram showing a schematic configuration of a
クライアントPC101は、具体的にはパーソナルコンピュータである。クライアントPCは、ユーザによる所定の操作に応じて、RIP(Raster Image Processor)処理を実行したラスター画像データ等の印刷データを生成し、印刷データを印刷制御装置102へ送信する。また、クライアントPC101は、画像形成装置103で印刷(画像形成)を行うための設定情報(以下「印刷情報」という)を印刷データと共に印刷制御装置102へ送信する。
Client PC 101 is specifically a personal computer. The client PC generates print data such as raster image data that has been subjected to RIP (Raster Image Processor) processing in response to a predetermined operation by the user, and transmits the print data to the
印刷制御装置102は、クライアントPC101から印刷データを受信し、画像形成装置103の特性に合わせた色変換や濃度調整、フォーマット変換等を行い、画像形成装置103で読み込み可能な画像データを生成する。なお、印刷データから画像データを生成する処理は、後述する画像通信I/F208(図2参照)が備えるデータ処理部401(図4及び図5(a)参照)に含まれる画像処理部(不図示)によって行われる。
The
印刷制御装置102は、画像データ用通信路106を介して画像データを画像形成装置103へ送信すると共に、クライアントPC101から受信した印刷情報をネットワーク105を介して画像形成装置103へ送信する。画像形成装置103は、印刷制御装置102から受信した画像データ及び印刷情報に基づいて印刷(紙媒体(用紙)等への画像形成)を行う。
The
図2は、印刷制御装置102のハードウェア構成を示すブロック図である。印刷制御装置102は、CPU201、RAM202、ROM203、記憶部204、第1の通信I/F206、第2の通信I/F207、画像通信I/F208、画像信号制御部209、操作部210及び表示部211を備える。印刷制御装置102を構成するこれらの各部は、システムバス205を介して通信可能に接続されている。
FIG. 2 is a block diagram showing the hardware configuration of the
CPU201は、ROM203に格納された制御プログラムをRAM202に展開することにより、システムバス205に接続されている各部の動作を制御する。RAM202は、CPU201が処理するデータ等を一時的に保存するための記憶領域と、制御プログラムを実行するための記憶領域を有する。ROM203は、制御プログラムを格納する。なお、制御プログラムは、記憶部204に格納されていてもよい。記憶部204は、例えばHDD(ハードディスクドライブ)であり、アプリケーションプログラムを格納し、また、クライアントPC101から受信した印刷データや印刷情報、印刷データから生成した画像データを保存する。なお、記憶部204は、HDDに限られるものではなく、他の記憶手段(例えば、SSDやフラッシュメモリ等)であってもよい。
The
第1の通信I/F206は、CPU201がネットワーク104を介してクライアントPC101との間で通信を行うためのインターフェースであり、クライアントPC101からネットワーク104を介して印刷データや印刷情報を受信する。また、CPU201は、第1の通信I/F206とネットワーク104を介して、画像形成装置103に関する各種情報をクライアントPC101へ通知(送信)する。
The first communication I/F 206 is an interface for the
第2の通信I/F207は、CPU201がネットワーク105を介して画像形成装置103との間で通信を行うためのインターフェースである。CPU201は、第2の通信I/F207及びネットワーク105を介して画像形成装置103へ印刷情報を送信することにより、画像形成装置103に対する印刷制御を行う。
The second communication I/F 207 is an interface through which the
画像通信I/F208は、画像データ用通信路106を介して画像形成装置103へ画像データを送信するためのインターフェースである。画像信号制御部209は、CPU201の制御下で、画像通信I/F208及び画像データ用通信路106を介して、画像形成装置103への画像データを送信する処理を制御する。
The image communication I/
操作部210は、タッチパネルやボタン等で構成されており、ユーザ操作を受け付けて、受け付けた操作に対応する処理の実行をCPU201へ通知する。ユーザは、操作部210を介して、印刷データから画像データを生成するための条件を設定することができる。表示部211は、操作部210での操作に応じて印刷制御装置102での各種の設定を表示し、また、画像形成装置103での印刷状況(画像形成装置103に対する制御の状況)等を表示する。
The
図3は、画像形成装置103のハードウェア構成を示すブロック図である。画像形成装置103は、CPU301、RAM302、ROM303、記憶部304、通信I/F306、画像通信I/F307、印刷信号制御部308、印刷制御部309、操作部310及び表示部311を備える。画像形成装置103を構成するこれらの各部は、システムバス305を介して通信可能に接続されている。
FIG. 3 is a block diagram showing the hardware configuration of the
CPU301は、ROM303に格納された制御プログラムをRAM302に展開することにより、システムバス305に接続されている各部の動作を制御する。RAM302は、処理データ等を一時的に保存するための記憶領域と、制御プログラムを実行するための記憶領域を有する。ROM303は、制御プログラムを格納する。なお、制御プログラムは、記憶部304に格納されていてもよい。記憶部304は、例えばHDDであり、アプリケーションプログラムを格納し、また、印刷制御装置102から受信した画像データや印刷情報を保存する。なお、記憶部304は、HDDに限られるものではなく、他の記憶手段(例えば、SSD、フラッシュメモリ等)であってもよい。
The
通信I/F306は、ネットワーク105を介して印刷制御装置102との間で通信を行うためのインターフェースである。CPU301は、ネットワーク105及び通信I/F306を介して印刷制御装置102から印刷情報を受信する。
The communication I/
画像通信I/F307は、画像データ用通信路106を介して印刷制御装置102から画像データを取得するためのインターフェースである。CPU301は、画像データ用通信路106及び画像通信I/F307を介して印刷制御装置102から画像データを受信する。印刷信号制御部308は、印刷制御装置102から画像データを受信する処理を制御する。印刷制御部309は、印刷制御装置102から受信した画像データと印刷情報に基づいて印刷を行う。
The image communication I/
操作部310は、タッチパネルやボタン等で構成されており、ユーザ操作を受け付けて、受け付けた操作に対応する処理の実行をCPU301へ通知する。表示部311は、操作部310での操作に応じて画像形成装置103での各種の設定を表示し、また、印刷状況等を表示する。
The
<画像通信I/Fの構成>
図4は、印刷制御装置102の画像通信I/F208と画像形成装置103の画像通信I/F307の構成を示すブロック図である。前述したように、画像通信I/F208と画像通信I/F307は画像データ用通信路106を介して接続される。
<Configuration of image communication I/F>
FIG. 4 is a block diagram showing the configurations of the image communication I/
画像通信I/F208は、ハードウェア構成部分であり、画像データの通信を制御する画像通信制御部400を有する。画像通信制御部400は、データ処理部401、P/S(パラレル/シリアル)変換部402、送信ドライバTX403、受信ドライバRX404及びS/P(シリアル/パラレル)変換部405を有する。同様に、画像通信I/F307は、ハードウェア構成部分であり、画像データの通信を制御する画像通信制御部410を有する。画像通信制御部410は、受信ドライバRX411、S/P変換部412、データ処理部413、P/S変換部414及び送信ドライバTX415を有する。
The image communication I/
P/S変換部402,414はそれぞれ、データ処理部401,413から出力されるパラレルデータ(パラレル形式のデータ)をシリアルデータ(シリアル形式のデータ)に変換する。変換されたシリアルデータは、送信ドライバTX403,415により、画像データ用通信路106を経由して、相手側の受信ドライバRX411,404へ供給される。
P/
なお、図4には、複数の送信ドライバTX403と1つの送信ドライバTX415が示されているが、これらのハードウェア構成は同一である。但し、画像通信制御部400,410は別個のハードウェアであるため、送信ドライバTX403,415に供給されるクロック周波数は同一でない場合がある。また、送信ドライバTX403,415はそれぞれ、独立して動作し、仮に送信ドライバTX403,415に供給されるクロック周波数が同一であったとしても、その位相関係は同一ではない。そのため、送信ドライバTX403,415の動作は、同期関係にはない。
Note that although a plurality of transmission drivers TX403 and one transmission driver TX415 are shown in FIG. 4, their hardware configurations are the same. However, since the image
本実施形態では、画像通信I/F208は、8レーンのシリアルデータを送信し、1レーンのシリアルデータを受信する構成となっている。但し、画像通信I/F208のレーン数は、8レーンに限られるものではなく、画像データを送信するための必要帯域に合わせて変更することができる。
In this embodiment, the image communication I/
P/S変換部402,414はそれぞれ、データ処理部401,413の処理経路に対して非同期で動作するため、タイミング信号の受け渡しタイミングによっては、処理するデータにスキューが生じることがある。このスキューは、各水平同期期間で変化し、その量は一定ではない。また、P/S変換部402,414のリセット解除タイミングの違いや送信ドライバTX403,415から受信ドライバRX404,411への伝送経路の配線長差による伝搬遅延時間の違いに起因して、スキューが生じる。この場合のスキューは、発生要因が動的に変化するものではないため、その量は変化せず、一定である。
Since the P/
S/P変換部405,412はそれぞれ、受信ドライバRX404,411からのシリアルデータを取得して内部のシフトレジスタに蓄える。また、S/P変換部405,412はそれぞれ、蓄えられたシリアルデータの予め決められたシンボル長のデータの中から特定のデータを検出する。そして、S/P変換部405,412はそれぞれ、特定のデータの検出タイミングに従って予め決められたシンボル長ごとに、パラレルデータとしてデータ処理部401,413へ出力する。更に、S/P変換部405,412はそれぞれ、データを受信するためのクロックをシリアルデータから復元する。そして、S/P変換部405,412は、復元したクロックをパラレルデータのシンボル長に合わせて分周し、分周したクロックをデータ処理部401,413へ出力する。
The S/
<データ処理部の構成>
図5(a)は、印刷制御装置102の画像通信I/F208が備える画像通信制御部400内のデータ処理部401の構成を示すブロック図である。データ処理部401は、パケット送信部501、パケットデコード部502、受信パケットスキュー調整部503及び非同期クロック乗り換え部504を有する。
<Configuration of data processing section>
FIG. 5A is a block diagram showing the configuration of the
図5(b)は、画像形成装置103の画像通信I/F307が備える画像通信制御部410内のデータ処理部413の構成を示すブロック図である。データ処理部413は、非同期クロック乗り換え部511、受信パケットスキュー調整部512、パケットデコード部513及びパケット送信部514を有する。
FIG. 5B is a block diagram showing the configuration of the
非同期クロック乗り換え部504,511はそれぞれ、例えば、書き込みクロックと読み出しクロックが別々に入力されるFIFOで構成される。書き込みクロックとして、S/P変換部405,412からそれぞれ出力されるクロックが使用される。また、読み出しクロックとして、例えば、画像通信制御部400,410の動作を制御するシステムクロックを選択して使用することができる。
Each of the asynchronous
画像通信制御部400,410の動作を制御するシステムクロックに同期したタイミングで、S/P変換部405,412から後段の受信パケットスキュー調整部503,512へパラレルデータが出力される。なお、本実施形態では、非同期クロック乗り換え部504,511を独立モジュールとして設けた構成としているが、その機能を受信パケットスキュー調整部503,512が備える構成としてもよい。
Parallel data is output from the S/
パケットデコード部502は、受信パケットスキュー調整部503でスキュー調整されたパケットをデコードし、データ処理部401内の後段の画像処理部(不図示)に対してデコードしたデータを出力する。また、パケットデコード部502は、パケット送信部501に対して送信コマンドパケット要求をパケット情報と共に出力する。
The
パケットデコード部513は、受信パケットスキュー調整部512でスキュー調整されたパケットをデコードし、データ処理部413内の後段の画像処理部(不図示)に対してデコードしたデータを出力する。また、パケットデコード部513は、パケット送信部514に対して送信コマンドパケット要求をパケット情報と共に出力する。
The
なお、画像形成装置103から印刷制御装置102への送信コマンドの例としては、次の第1乃至第3の送信コマンドが挙げられる。第1の送信コマンドは、分割画像データの受信が正常に完了したことを通知するコマンドである。なお、分割画像データとは、印刷制御装置102において画像データを画像形成装置103へ送信するためのパケットに応じた所定のサイズに分割した画像データである。第2の送信コマンドは、分割画像データ以外の各種のコマンドやステータス等を正常に受信したことを通知するコマンドである。第3の送信コマンドは、更に、受信した分割画像データに欠損を検知した場合に分割画像データの再送要求を通知するコマンドである。パケットデコード部502,513の構成の詳細については、図9を参照して後述する。
Note that examples of the transmission commands sent from the
パケット送信部501は、パケットデコード部502から受け取った送信コマンド、或いは、前段の画像処理部(不図示)から受け取った画像データのいずれを送信するかの調停を行い、P/S変換部402へ出力する。同様に、パケット送信部514は、パケットデコード部513から受け取った送信コマンド、あるいは、前段の画像処理部(不図示)から受け取った画像データのいずれを送信するかの調停を行い、P/S変換部414へ出力する。
The
<画像データのパケットの構成>
図6は、画像データのパケット構成を説明する図である。図6(a)は、Lane0~7の計8レーンを並列で使用して画像データを印刷制御装置102から画像形成装置103へ送信する際のパケット構成例を示している。
<Configuration of image data packet>
FIG. 6 is a diagram illustrating the packet structure of image data. FIG. 6A shows an example of a packet configuration when image data is transmitted from the
図6(a)において、ヘッダー(header)は後続の分割画像データの本体の開始位置及びデータ種類を示す制御用コードであり、データ(data)は分割画像データの本体である。これらは、図6(b)においても同様である。‘N’は自然数であり、各レーンでN[cycle]のデータが送信されると、データは8レーンの合計で8×Nとなる。例えば、データ幅を32[bit]、N=32[cycle]とすると、8×32×32=8192[bit]=8K[Byte]のデータが送信されることになる。 In FIG. 6A, the header is a control code indicating the start position and data type of the main body of the subsequent divided image data, and the data is the main body of the divided image data. The same applies to FIG. 6(b). 'N' is a natural number, and when N [cycles] of data are transmitted on each lane, the total data for the 8 lanes is 8×N. For example, if the data width is 32 [bit] and N=32 [cycle], 8×32×32=8192 [bit]=8K [Byte] of data will be transmitted.
図6(b)は、Lane0~5の計6レーンを並列で使用して画像データを印刷制御装置102から画像形成装置103へ送信する際のパケット構成例を示している。‘M’は自然数であり、図6(b)のパケット構成で前出の例と同様に8K[Byte]=8192[bit]のデータを送信するためには、8192÷32÷6=42.6666…[cycle]、が必要となる。このように、商が整数とならない(割り切れない)場合、実際には43[cycle]でデータ送信が行われることになる。その場合に送信されるデータサイズは、6×32×43=8256[bit]、となり、8256-8192=64[bit]が余分に送信されることになる。この余分なデータ送信分を余白(padding)と称呼する。
FIG. 6B shows an example of a packet configuration when image data is transmitted from the
印刷制御装置102のパケット送信部501は、画像データをレーン数に応じて等分に分割して分割画像データを生成し、生成した分割画像データを各レーンに分配し、必要に応じてレーンごとに分割画像データに余白を付与する回路を有する。一方、画像形成装置103の受信パケットスキュー調整部512は、各レーンで受信した分割画像データをスキューを調整して合成して、印刷に用いられるデータを生成する回路と、各レーンで受信した分割画像データに付与された余白を除去する回路を有する。
The
図6(c)は、ヘッダーの構成を説明する図である。パケットタイプ(Paket type)には、イメージタイプ(Image type)、コマンドデータ(COMMAND data)、ステータスデータ(STATUS data)等がある。 FIG. 6(c) is a diagram illustrating the structure of the header. Packet types include image type, command data, status data, and the like.
イメージタイプは、分割画像データであることを示している。コマンドデータには、分割画像データの主走査方向及び副走査方向のサイズを示すコマンドや分割画像データの送信開始を通知するコマンド等があり、コマンド(COMMAND)部にそれらを示すコードが付与される。また、コマンドデータ部に、主走査方向及び副走査方向のサイズ等の、コマンドの内容が付与される。 The image type indicates that it is divided image data. The command data includes a command indicating the size of the divided image data in the main scanning direction and the sub-scanning direction, a command notifying the start of transmission of the divided image data, etc., and a code indicating these is added to the command (COMMAND) part. . Further, the contents of the command, such as the size in the main scanning direction and the sub-scanning direction, are added to the command data section.
ステータスデータには、異常状態が発生したことを通知するエラーステータスや、相手方からのコマンドデータに対する応答(ACK)を返答するACKステータス等があり、ステータス部にコードが付与される。そして、ステータスデータ部には、ステータスに対応する内容が付与される。なお、生成されるパケットのサイズは包含するデータの種類によって異なるため、パケットを受信する側で包含しているデータの種類を判別して、データの種類に応じた適切な処理を行うことができるように、データ本体にヘッダーが付与される。 The status data includes an error status that notifies that an abnormal state has occurred, an ACK status that provides a response (ACK) to command data from the other party, and a code is added to the status section. Contents corresponding to the status are added to the status data section. Note that the size of the generated packet differs depending on the type of data it contains, so the side receiving the packet can determine the type of data it contains and perform appropriate processing according to the type of data. A header is added to the data body.
<パケット送信部の構成と動作>
図7は、印刷制御装置102が備えるパケット送信部501の構成を示すブロック図である。パケット送信部501は、パケット生成部701、バッファ制御部702、データバッファ703、パケットリード部704及び再送タイマー705を有する。
<Configuration and operation of packet transmitter>
FIG. 7 is a block diagram showing the configuration of the
パケット生成部701は、データ処理部401内の前段の画像処理部(不図示)から画像データを受信し、受信した画像データを各レーンへ出力するために分割して分割画像データを生成する。但し、このような構成に限らず、分割画像データが画像処理部で生成されてパケット生成部701へ入力される構成であってもよい。
The
パケット生成部701は、図6を参照して説明したヘッダーを生成する。分割画像データの送信では、パケットタイプにイメージタイプが付与され、所定の規則に従ってパケットIDに所定の値が付される。ここでのパケットIDに値を付与する所定の規則は、分割画像データの送信順に値をインクリメント(1ずつ加える)して付与するものとする。イメージタイプには、例えば、カラー、モノクロ、グレースケール等を示すコードが付与され、カラーの場合には色情報(Y,M,C,K)や属性情報等を判別可能なコードが付与される。更にフッターとして、ヘッダー及び分割画像データのCRCデータ(Cyclic Redundancy Check data)を32bitの定数で演算した結果(以下「crc32」と記す)がパケットの最後に付与される。
The
パケット生成部701は、レーンごとにデータバッファ703への書き込みデータ(ライトデータ)と書き込み動作(ライト動作)制御信号を生成し、バッファ制御部702へ出力する。バッファ制御部702に入力された書き込みデータ及び制御信号は、制御信号に従って、順次、データバッファ703に格納される。
The
図8は、8レーンでデータバッファ703へ書き込みデータを順次格納する様子を示す模式図である。以下、説明を簡易化するために、1レーンごとに送信するデータサイズをヘッダーとフッター(crc32)を含めて8192bitであるとする。この場合、図8(a)に示されるように、1レーンあたりのメモリアドレスは0x400となり、8レーン1回分の送信データを格納すると0x200ずつアドレスが増えていく。ここでは、8レーン分のパケットIDを同じものとしているが、1レーンごとに異なるパケットIDを付与してもよい。また、イメージタイプには、図8(b)に示されるように、1レーンごとに色情報(Y,M,C,K)が付与されている。但し、これに限られず、受信側(画像形成装置103)との整合を考慮して、8レーンの全てで同じ色の分割画像データを送信するようにしてもよい。
FIG. 8 is a schematic diagram showing how write data is sequentially stored in the
画像形成装置103は、所定の分割画像データのパケット(以下「画像データパケット」という)を再送するように印刷制御装置102へ要求する可能性がある。図8(d)は、CRCエラー(詳細は後述する)のステータスパケットの構成を示す図である。データバッファ703は、画像データパケットの再送要求に応じた処理を行うことができるように、画像データパケットを格納するための可能な十分な記憶容量を有している。なお、データバッファ703は、最後尾のアドレスにデータが格納されると、先頭アドレスに戻って先頭アドレスから上書きを行うリングバッファ構成となっているものとする。
The
パケット生成部701は、CPU201やパケットデコード部502、受信パケットスキュー調整部503等から所定のコマンドやステータスの発行要求を受信すると、コマンドパケットやステータスパケットを生成する。これらのパケットデータは、データバッファ703において画像データパケットとは別の領域に格納されるようにしてもよく、ここでは図8(c)に示されるように、0xYYYY_0000~0xYYYY_000Cの領域に格納されている。
The
パケット生成部701は、画像形成装置103からコマンドパケット又はステータスパケットの再送要求を受信した場合、再送要求が示すコマンドパケット又はステータスパケットを画像形成装置103へ再送する。パケット生成部701は、画像形成装置103から画像エラー再送要求や画像ビジー(busy)再送要求を受信した場合には画像データパケットを画像形成装置103へ再送するが、その詳細については後述する。
When receiving a command packet or status packet retransmission request from the
パケット生成部701は、バッファ制御部702を介して、予め定められたサイクル数のデータをデータバッファ703に書き込む。そして、パケット生成部701は、書き込み動作が完了すると、書き込み動作の完了通知(以下「転送要求」という)をパケットリード部704へ送信する。この転送要求は、パケットタイプとデータバッファ703のアドレスを含むものとし、レーンごとに個別に行われる。
The
パケットリード部704は、パケット生成部701からの全てのレーンに対応する転送要求が出揃ったタイミングで、データバッファ703から読み出し動作(リード動作)の開始通知をバッファ制御部702へ送信する。読み出し動作の開始通知は、読み出すデータが格納されているデータバッファ703内のアドレスを含む。バッファ制御部702は、受け取った読み出し動作の開始通知に基づき、データバッファ703の指定されたアドレスに対する、読み出し動作のためのアクセス(読み出しアクセス)を制御する。なお、再送タイマー705の機能については後述する。
The packet read
画像形成装置103が備えるパケット送信部514は、パケット送信部501と同等の構成及び機能を有しているため、その構成についての説明は省略する。なお、画像形成装置103は、印刷制御装置102から受信した分割画像データを印刷制御装置102へ戻すことはない。しかしながら、画像形成装置103の各部のテストのための画像データ(例えば、S/P変換部412のテストデバッグ用テストパターン)を印刷制御装置102へ送信することがある。そのため、パケット送信部514をパケット送信部501と同等の構成としている。
The
<受信パケットスキュー調整部の動作説明>
受信パケットスキュー調整部503,512は、いずれか1つ以上のレーンでデータの本体の開始位置を示す制御用コード(ヘッダー)を認識することができない場合、データバッファ703からのデータ読み出しを行わないようにする。その際、パケット送信部501,514は、制御用コードを認識することができなかったデータからの再送を要求するコマンドを送信する。
<Operation explanation of receive packet skew adjustment unit>
The reception packet
<パケットデコード部の構成と動作>
図9は、画像形成装置103が備えるパケットデコード部513の概略構成を示すブロック図である。パケットデコード部513は、デコード部901、バッファ902、データ送信部905、パケット要求部906及びビジー(busy)タイマー907を有する。バッファ902は、バッファ制御部903とデータバッファ904を有する。
<Configuration and operation of packet decoding section>
FIG. 9 is a block diagram showing a schematic configuration of the
デコード部901は、受信パケットスキュー調整部512からパケットを受信し、受信したパケットをデコードして、以下の処理を行う。
The
デコード部901がデコード後に行う処理の1つは、パケットがコマンドパケットであると判断した場合に、そのコマンドを解釈して制御信号を出力する処理である。例えば、画像サイズを示すコマンドである場合は、処理する分割画像データの主走査サイズと副走査サイズを抽出し、画像処理設定信号としてデータ処理部413へ通知する。
One of the processes that the
デコード部901がデコード後に行う処理の別の1つは、パケットがステータスパケットであると判断した場合に、ステータスパケットのデータに応じたパケット要求をパケット要求部906に指示する処理である。例えば、ステータスパケットのデータが各種のステータス、CRCエラー、ヘッダーエラー等であった場合にはパケット再発行要求を、分割画像データ自体のエラーであった場合は画像エラー再送要求を、パケット送信部501へ通知する。なお、パケット要求部906及びビジータイマー907の機能については後述する。
Another process performed by the
デコード部901がデコード後に行う処理の別の1つは、パケットが画像データパケットであると判断した場合に、バッファ902へデータを書き込む処理である。バッファ制御部903、データバッファ904及びデータ送信部905でのデータ処理方法は、パケット送信部514(501)におけるバッファ制御部702、データバッファ703及びパケットリード部704と同様に行われるため、説明を省略する。
Another process that the
なお、印刷制御装置102が備えるパケットデコード部502は、画像形成装置103が備えるパケットデコード部513と同等の構成及び機能を有しているため、その構成についての説明は省略する。
Note that since the
<画像データパケットの再送処理>
印刷制御装置102の画像通信制御部400は、画像形成装置103の画像通信制御部410から所定の画像データパケットの再送要求を受けると、先ず、パケット送信部501の動作を停止させる。そして、画像通信制御部400は、再送要求を受けた画像データパケットから、順次、送信をやり直すことで再送処理を行う。
<Image data packet resending process>
When the image
画像通信制御部410が所定の画像データパケットの再送を要求する(換言すれば、画像通信制御部400による画像データパケットの再送が必要とされる)場合とは、以下の3つの場合である。1つは受信したパケットにヘッダーエラーが生じている場合である。別の1つは、受信したパケットのCRC不一致が生じている場合であり、このCRCエラーは受信したパケットを検査することによって検出される。更に別の1つは、パケットデコード部513のデータバッファ904に受信するパケットデータを記憶可能な容量がない場合である。以下、これらについて説明する。
There are three cases in which the image
[受信したパケットのヘッダーエラーの場合]
受信パケットスキュー調整部512は、制御用コード(ヘッダー)を認識することができない場合、データバッファ904に対する読み出しアクセスを開始することができない。そのため、あるレーンで制御用コードを認識することができなくなると、データバッファ904から分割画像データを読み出した後に、分割画像データをが正常に結合させることができなくなる。なお、制御用コードを認識することができないとは、制御用コードの位置にあるコード値が伝送経路で発生したノイズ等の影響によって定められた値から変化してしまうことにより、コード値として認識することができなくなることをいう。
[In case of header error in received packet]
If the reception packet
この場合、データバッファ904において制御用コードを認識することが可能なレーンのデータを読み出さず、次のデータで上書きするようにすることで破棄する。そして、受信パケットスキュー調整部512は、パケット送信部514に対して画像エラー再送要求と共にヘッダーエラーが生じているパケットのヘッダーのパケットIDをパケット送信部514へ通知する。パケット送信部514は、通知されたパケットIDの画像データパケットの再送を促すステータスパケットを印刷制御装置102へ送信する。
In this case, the data in the lane in which the control code can be recognized in the
なお、ヘッダーが破損している場合にはパケットIDを読むことができない可能性があるため、受信パケットスキュー調整部512は、最後に正常に受信完了したパケットIDをインクリメントしたパケットIDを送信するステータスパケットに付与するものとする。パケット送信部514は、ステータスパケットのステータスデータをヘッダーエラーを示す値に設定する。受信パケットスキュー調整部512はその後、再送要求を行ったパケットIDの画像データパケットが入力されるまで、受信した画像パケットデータを破棄する。
Note that if the header is damaged, there is a possibility that the packet ID cannot be read, so the reception packet
[受信したパケットのCRCが不一致の場合]
受信パケットスキュー調整部512は、パケット生成部701が行うCRC演算と同様のCRC演算をヘッダー及び分割画像データ(データ本体)に対して行い、演算結果をパケットの最後に付与されているcrc32と比較する。受信パケットスキュー調整部512は、この比較をレーンごとに行い、演算結果が一致しなかった場合には分割画像データが破損していると判断する。
[If the CRC of the received packet does not match]
The reception packet
この場合、受信パケットスキュー調整部512は、ヘッダーを認識することができない場合と同様に、画像エラー再送要求と共にCRC演算結果が一致しないパケットのヘッダーのパケットIDをパケット送信部514に通知する。これにより、パケット送信部514は、通知されたパケットIDの画像データパケットの再送を促すステータスパケットを印刷制御装置102へ送信する。なお、その際、パケット送信部514は、ステータスパケットのステータスデータをCRCエラーを示す値に設定する。受信パケットスキュー調整部512はその後、分割画像データの再送要求を行ったパケットIDのパケットが入力されるまで、受信した画像データパケットを破棄する。
In this case, as in the case where the header cannot be recognized, the received packet
[データバッファ904の記憶可能な容量が不足している場合]
データ送信部905がデータ処理部413でのデータ処理が一時的に滞っている状態であることを示すビジー情報を受信した場合、パケットデコード部513へ入力されるパケットデータはデータバッファ904に蓄積される。データバッファ904においてパケットデータを記憶可能な容量がない(換言すれば、空き容量が少ない)場合には、パケットデコード部513はパケットデータを正しく受信することができても、後段に渡すことができなくなる。
[When the storage capacity of the
When the
そこで、パケットデコード部513のデコード部901は、データバッファ904の使用容量が満杯になるか又は予め決められた使用容量αに達した場合(以下「バッファフル」という)に、バッファフル信号を受信パケットスキュー調整部512へ出力する。なお、データ送信部905がデータバッファ904からデータを読み出したことによってデータバッファ904の使用容量が予め決められた使用容量β(α≧β)以下になった場合に、バッファフル信号の出力は停止される。
Therefore, the
受信パケットスキュー調整部512は、バッファフル信号を受信すると、パケットデコード部513へのパケットデータの出力を停止する。デコード部901は、分割画像データの受信開始信号をビジータイマー907へ出力し、データバッファ904への書き込みを行わずに破棄する。また、受信パケットスキュー調整部512は、バッファフル信号を受けた後には、再送要求がなされたパケットIDの画像データパケットが入力されるまでは、入力された画像パケットデータを破棄する。パケット要求部906は画像ビジー(busy)再送要求と共にパケットIDをパケット送信部514に通知する。パケット送信部514は、パケット要求部906から通知されたパケットIDの画像データパケットの再送を促すステータスパケットを印刷制御装置102へ送信する。
Upon receiving the buffer full signal, the reception packet
<画像データパケットの再送信制御>
画像形成装置103は、上述の通りにして印刷制御装置102へ画像ビジー再送要求が送出した後に再びデータバッファ904への画像パケットデータの書き込みが可能となるまでの間、画像ビジー再送要求を定期的に送出する。印刷制御装置102の画像通信制御部400は、画像ビジー再送要求を受信した場合、予め定められた時間(以下「保留時間」という)の経過後にパケットの再送を開始する。
<Image data packet retransmission control>
The
このように、画像形成装置103から印刷制御装置102へ画像ビジー再送要求を定期的に送出する制御について図10(a)のフローチャートを参照して説明する。図10(a)は、画像ビジー再送要求の送信制御を説明するフローチャートである。図10(a)にS番号で示す各処理(ステップ)は、画像形成装置103のビジータイマー907により実行される。なお、ビジータイマー907は、各処理を実行可能なマイクロコンピュータとしての構成を有する。
The control for periodically sending the image busy retransmission request from the
ビジータイマー907は、データバッファ904がバッファフル状態で(バッファ制御部903からバッファフル信号を受信している状態で)、デコード部901から画像データ受信開始の通知を受けると、S1001の処理を開始する。
When the
S1001でビジータイマー907は、画像ビジー再送要求をパケット要求部906へ出力する。S1002でビジータイマー907は、内部のタイムカウントをクリアする。S1003でビジータイマー907は、一定時間経過後にバッファフル信号に基づいてバッファフル状態が継続しているか否かを判定する。なお、バッファフル信号の入力が続いている場合に、バッファフル状態が継続していると判断される。ビジータイマー907は、バッファフル状態が継続していると判定した場合(S1003でYES)、S1004の処理を実行し、バッファフル状態が解消されていると判定した場合(S1003でNO)、本処理を終了させる。
In S1001, the
S1004でビジータイマー907は、タイムカウントを開始する。S1005でビジータイマー907は、タイムカウント値が所定値を超えたか否かを判定する。ビジータイマー907は、タイムカウント値が所定値を超えたと判定した場合(S1005でYES)、画像ビジー再送要求を再発行するために、再度、S1001処理を実行する。一方、ビジータイマー907は、タイムカウント値が所定値を超えていないと判定した場合(S1005でNO)、バッファフル状態が解消したか否かを判定するためにS1003の処理を実行する。
In S1004, the
次に、印刷制御装置102が画像ビジー再送要求を受信した際に実行する処理について説明する。印刷制御装置102は、画像ビジー再送要求を受信した場合には、保留時間が経過した後に、画像ビジー再送要求が示すパケットIDの画像データパケットを再送する処理を行う。これは、画像ビジー再送要求の受信後に直ぐに指示された画像データパケットを再送した場合、画像形成装置103が画像データパケットを受信することができず、再度、画像ビジー再送要求が発行される等の無駄な通信が発生する可能性があるからである。
Next, a description will be given of the processing that the
図10(b)は、印刷制御装置102が画像ビジー再送要求の受信に応じて実行する処理のフローチャートである。図10(b)にS番号で示す各処理(ステップ)は、印刷制御装置102のパケット送信部501が備える再送タイマー705により実行される。なお、再送タイマー705は、各処理を実行可能なマイクロコンピュータとしての構成を有する。
FIG. 10(b) is a flowchart of processing executed by the
S1011で再送タイマー705は、画像ビジー再送要求を受信したか否かを判定する。再送タイマー705は、画像ビジー再送要求を受信したと判定した場合(S1011でYES)、S1012の処理を実行し、画像ビジー再送要求を受信していない判定した場合(S1011でNO)、S1013の処理を実行する。S1012で再送タイマー705は、タイムカウントをクリアし、その後、S1013の処理を実行する。つまり、一定時間内に画像ビジー再送要求を受信した場合、再送タイマー705でのタイムカウントがクリアされて、再送要求された画像データパケットの画像形成装置103への送信が延期されることになる。
In S1011, the
S1013で再送タイマー705は、タイムカウントを行う。なお、S1011からS1013へ処理が進む場合とは、以前にS1011の判定をYESとする画像ビジー再送要求を受けている場合である。S1014で再送タイマー705は、タイムカウント値が所定値(=保留時間)を超えたか否かを判定する。再送タイマー705は、タイマーカウント値が所定値以下であると判定した場合(S1014でNO)、S1011の処理を実行し、タイマーカウント値が所定値を超えたと判定した場合(S1014でYES)、S1015の処理を実行する。S1015で再送タイマー705は、画像パケット再送要求をパケット生成部701へ出力し、その後、本処理を終了させる。
In S1013, the
画像パケット再送要求を受信した印刷制御装置102のパケット生成部701は、画像パケット再送要求(画像ビジー再送要求)が示すパケットIDに遡り、そこから、順次、パケットIDをインクリメントして画像データパケットを再送信するよう動作する。そのために、印刷制御装置102のパケット生成部701は、パケットリード部704への転送要求を一時的に停止する。そして、印刷制御装置102のパケット生成部701は、パケットリード部704へ送信済みの転送要求に対応する画像データパケットのパケットリード部704からの画像データパケットの画像形成装置103への送信が完了するまで待機する。その間に、パケット生成部701は、画像パケット再送要求に対応するための転送要求を準備する。
The
具体的には、通常の転送要求の送信時にはインクリメントしたアドレスを渡しているところを、再送するパケットIDの分割画像データが格納されているアドレスに変更する。そして、現在処理しているパケットIDから再送するパケットIDを引いた数値を求め、パケットID1つあたりのアドレスを現在のアドレスから求められた数値だけ遡る計算を行う。このとき、アドレスが負の値となる場合には最後のアドレスを加算して差し引いたアドレスとなる。パケット生成部701は算出されたアドレスと一緒に転送要求をパケットリード部704へ通知する。パケットリード部704は、通知されたアドレスの分割画像データをP/S変換部402へ出力する。その後、パケット生成部701は、画像データパケットの再送要求を受信しない限りは、アドレスを通常通りにインクリメントしながら、再送要求のあったパケットID及びそれ以降の画像データパケットを、順次、送信する。
Specifically, when sending a normal transfer request, an incremented address is passed, but this is changed to an address where the divided image data of the packet ID to be retransmitted is stored. Then, a numerical value is obtained by subtracting the packet ID to be retransmitted from the currently processed packet ID, and the address per packet ID is calculated from the current address by the calculated numerical value. At this time, if the address is a negative value, it becomes the address obtained by adding and subtracting the last address. The
上述の通りに画像データパケットの再送を制御することで、画像形成装置103は受信した画像データパケットのデコード処理をパケットIDの順序に従って行うことが可能になる。画像形成装置103では、画像データパケットの並び替えを行う必要がなくなることで、演算負荷が軽減される。また、画像形成装置103においてデータバッファ904がフル又はこれに近い状態とはなっていないため、再送された画像データパケットの再再送が必要となることもない。
By controlling the retransmission of image data packets as described above, the
なお、印刷制御装置102が画像エラー再送要求を受信した際には、画像形成装置103において画像データパケットを受信することができないという事態は生じていない。そのため、印刷制御装置102は、画像形成装置103から画像エラー再送要求を受信した場合、受信した画像エラー再送要求が示すパケットIDの画像データパケットから、順次、即座にパケットIDをインクリメントしながら再送する処理を行う。
Note that when the
ところで、画像形成装置103から印刷制御装置102へ所定の画像データパケットの再送が要求された場合に、印刷制御装置102に次の2つの誤動作のいずれかが生じるおそれがある。誤動作の1つは、再送要求されたパケットIDの画像データパケットからの再送信を行わずに、画像データパケットを送信し続ける誤動作である。誤動作の別の1つは、パケット送信部501が動作を停止し続け、再送要求されたパケットIDの画像データパケットからの再送信を行わない誤動作である。これらの誤動作が生じる原因としては、印刷制御装置102が画像エラー再送要求や画像ビジー再送要求を正常に受信することができなかったことが考えられる。このような誤動作の発生を放置してしまうと、画像形成装置103は欠損した画像データパケットを補完することができない。
By the way, when the
この問題に対処するため、画像形成装置103の画像通信制御部410は、少なくとも1つのレーンで再送されてくる予定のパケットを予め定められたタイムアウト判定時間が経過しても受信することができない場合、送信した再送要求は無効になったと判定する。そして、画像通信制御部410は、印刷制御装置102に画像通信制御部400に対して、タイムアウトを検知した再送要求に係るパケットIDの画像データパケットからの再送(以下「タイムアウト再送要求」という)を促すデータを送信する。なお、画像形成装置103で設定されるタイムアウト判定時間は、印刷制御装置102で設定される保留時間よりも長い時間に設定される。
In order to deal with this problem, the image
画像通信制御部400は、タイムアウト再送要求を正常に受信した場合、タイムアウト再送要求に係る画像データパケットから順次再送を行うことができる。これにより、画像通信制御部410は、欠損した画像データパケットを補完して、印刷処理を行うことが可能となる。
When the image
上記説明の通り、本発明によれば、複雑な制御を必要とすることなく、画像データの送信を効率よく行うことができると共に受信側でのデータ欠損の発生を回避することが可能となる。これにより、印刷制御装置と画像形成装置との間での上述の通信(データ送受信)を行うためのハードウェア(回路)規模の増大を回避することができると共に、処理負荷の軽減による省電力化を実現することができる。 As described above, according to the present invention, it is possible to efficiently transmit image data without requiring complicated control, and it is also possible to avoid data loss on the receiving side. This makes it possible to avoid an increase in the scale of the hardware (circuit) for the above-mentioned communication (data transmission and reception) between the print control device and the image forming device, and also to save power by reducing the processing load. can be realized.
以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。更に、上述した各実施形態は本発明の一実施形態を示すものにすぎず、各実施形態を適宜組み合わせることも可能である。 Although the present invention has been described above in detail based on its preferred embodiments, the present invention is not limited to these specific embodiments, and the present invention may take various forms without departing from the gist of the present invention. included. Further, each of the embodiments described above is merely one embodiment of the present invention, and each embodiment can be combined as appropriate.
例えば、上記実施形態では、クライアントPCがRIP処理を実行したラスター画像データ等の印刷データを印刷制御装置102へ送信する構成とした。これに限らず、クライアントPCは、印刷対象の文書等のデータを印刷制御装置へ送信し、印刷制御装置がRIP処理を実行してラスター画像データ等の印刷データを生成する構成であっても構わない。この場合に、クライアントPCは、印刷情報を印刷対象の文書等のデータとは別に又は印刷対象の文書等のデータに含めて印刷制御装置へ送信するよう構成することができる。
For example, in the embodiment described above, the configuration is such that the client PC transmits print data such as raster image data that has been subjected to RIP processing to the
また、上記実施形態では、画像形成装置103から印刷制御装置102へ画像データパケットの再送要求を行い、印刷制御装置102から画像形成装置103へステータスパケット等の所定のパケットの再送要求を行うことはなかった。但し、このような構成に限らず、本発明に係る通信装置は、外部機器からのパケットの再送要求に応じた再送処理を行うと共に、外部機器から受信したパケットについて外部機器へ再送要求を行うことが可能な構成とすることができる。つまり、本発明に係る通信装置は、印刷制御装置102によるパケットの送信及び再送に準じた処理を行うと共に、外部機器から受信したパケットデータ及びその再送要求について画像形成装置103での処理に準じた処理を行う。
Furthermore, in the above embodiment, the
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention provides a system or device with a program that implements one or more functions of the embodiments described above via a network or a storage medium, and one or more processors in a computer of the system or device reads and executes the program. This can also be achieved by processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
100 印刷システム
102 印刷制御装置
103 画像形成装置
106 画像データ用通信路
201,301 CPU
208,307 画像通信I/F
304 記憶部
400,410 画像通信制御部
501,514 パケット送信部
502 パケットデコード部
701 パケット生成部
702,903 バッファ制御部
703,904 データバッファ
705 再送タイマー
907 ビジータイマー
100
208,307 Image communication I/F
304
Claims (17)
前記生成手段が生成したパケットを外部機器へ送信する送信手段と、
前記外部機器から送信されてきた通知を受信する受信手段と、
前記通知が前記送信手段から前記外部機器へ送信された所定のIDのパケットについて前記外部機器から再送を要求するものである場合に、前記所定のIDに遡って前記所定のIDのパケットから順次それ以降のIDのパケットを前記外部機器へ送信するよう制御する制御手段と、を備えることを特徴とする通信装置。 generating means for generating a packet having a header, data, and a footer and having an ID assigned to the header according to a predetermined rule;
a transmitting means for transmitting the packet generated by the generating means to an external device;
Receiving means for receiving a notification transmitted from the external device;
If the notification is a request for retransmission from the external device of a packet with a predetermined ID transmitted from the transmitting means to the external device, the notification may be sent sequentially from the packet with the predetermined ID, going back to the predetermined ID. A communication device comprising: control means for controlling transmission of subsequent ID packets to the external device.
前記通知が前記外部機器において前記パケットのヘッダーと前記データから生成したCRCデータが前記パケットのフッターに含まれるCRCデータと一致しないCRCエラーによる再送要求である場合に、前記制御手段は、前記通知を受信した後、即座に、前記所定のIDのパケットから順次それ以降のIDのパケットを前記外部機器へ送信するよう制御することを特徴とする請求項1に記載の通信装置。 the footer includes CRC data generated from the header and the data;
If the notification is a retransmission request due to a CRC error in which CRC data generated from the header of the packet and the data in the external device does not match the CRC data included in the footer of the packet, the control means transmits the notification. 2. The communication device according to claim 1, wherein, after receiving the packet, the communication device immediately controls the transmission of packets with subsequent IDs starting from the packet with the predetermined ID to the external device.
前記受信手段が受信したパケットを記憶する記憶手段と、
前記受信手段が受信したパケットにエラーが生じているか否かを検出する検出手段と、
前記受信手段が受信したパケットにエラーが生じていることが検出された場合に、該エラーが検出されたパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを再送するよう要求する通知を前記外部機器に送信する通知手段と、
前記エラーが検出されたIDのパケットと、該IDのパケットの受信後から前記外部機器から該IDのパケットが再送されてくるまでの間に受信したパケットを破棄する破棄手段と、を備えることを特徴とする通信装置。 receiving means for receiving from an external device a packet having a header, data, and a footer and having an ID assigned to the header according to a predetermined rule;
storage means for storing packets received by the receiving means;
detection means for detecting whether an error has occurred in the packet received by the receiving means;
When it is detected that an error has occurred in a packet received by the receiving means, a request is made to trace back to the ID of the packet in which the error was detected and retransmit packets with subsequent IDs sequentially from the packet with the ID. notification means for transmitting a notification to the external device;
The apparatus further comprises a discarding means for discarding the packet with the ID in which the error has been detected and the packet received between the time the packet with the ID is received and the packet with the ID is retransmitted from the external device. Characteristic communication device.
前記エラーは、前記パケットのフッターに含まれるCRCデータと、前記検出手段が前記パケットのヘッダーと前記データから生成したCRCデータと、の不一致によるものであることを特徴とする請求項5に記載の通信装置。 the footer includes CRC data generated from the header and the data;
6. The error is caused by a mismatch between CRC data included in the footer of the packet and CRC data generated by the detection means from the header of the packet and the data. Communication device.
前記受信手段が受信したパケットを記憶する記憶手段と、
前記記憶手段において前記受信手段が受信したパケットを記憶可能な容量があるか否かを検出する検出手段と、
前記受信手段が受信したパケットを記憶する容量が前記記憶手段にないと前記検出手段により検出された場合に、前記記憶手段に記憶することができないパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを再送するよう要求する通知を前記外部機器に送信する通知手段と、
前記記憶手段に記憶することができないIDのパケットと、該IDのパケットの受信後から前記外部機器から該IDのパケットが再送されてくるまでの間に受信したパケットを破棄する破棄手段と、を備えることを特徴とする通信装置。 receiving means for receiving from an external device a packet having a header, data, and a footer and having an ID assigned to the header according to a predetermined rule;
storage means for storing packets received by the receiving means;
detection means for detecting whether or not the storage means has a capacity capable of storing the packets received by the reception means;
When the detection means detects that the storage means does not have the capacity to store the packets received by the reception means, the storage means sequentially traces back to the ID of the packet that cannot be stored in the storage means and sequentially starts from the packet with that ID. notification means for transmitting a notification requesting retransmission of packets with subsequent IDs to the external device;
a discarding means for discarding packets with an ID that cannot be stored in the storage means, and packets received between the time the packet with the ID is received and the packet with the ID is retransmitted from the external device; A communication device comprising:
ヘッダー、データおよびフッターを有し、前記ヘッダーに予め定められた規則にしたがってIDが付与されたパケットを生成するステップと、
前記パケットを外部機器へ送信するステップと、
前記外部機器から送信されてきた通知を受信するステップと、
前記通知が前記外部機器へ送信された所定のIDのパケットについて前記外部機器から再送を要求するものである場合に、前記所定のIDに遡って前記所定のIDのパケットから順次それ以降のIDのパケットを前記外部機器へ送信するステップと、を有することを特徴とする通信装置の制御方法。 A method for controlling a communication device, the method comprising:
generating a packet having a header, data, and a footer and having an ID assigned to the header according to a predetermined rule;
transmitting the packet to an external device;
receiving a notification sent from the external device;
If the notification is a request from the external device to retransmit a packet with a predetermined ID that was sent to the external device, the packets with the predetermined ID and subsequent IDs are sequentially sent back to the predetermined ID. A method for controlling a communication device, comprising the step of transmitting a packet to the external device.
ヘッダー、データおよびフッターを有し、前記ヘッダーに予め定められた規則にしたがってIDが付与されたパケットを外部機器から受信するステップと、
前記受信したパケットを記憶手段に記憶するステップと、
前記受信したパケットにエラーが生じているか否かを検出するステップと、
前記受信したパケットにエラーが生じていることが検出された場合に、該エラーが検出されたパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを再送するよう前記外部機器に通知するステップと、
前記エラーが検出されたIDのパケットと、該IDのパケットの受信後から前記外部機器から該IDのパケットが再送されてくるまでに受信したパケットを破棄するステップと、を有することを特徴とする通信装置の制御方法。 A method for controlling a communication device, the method comprising:
receiving from an external device a packet having a header, data, and a footer and having an ID assigned to the header according to a predetermined rule;
storing the received packet in a storage means;
detecting whether an error has occurred in the received packet;
When it is detected that an error has occurred in the received packet, the external device is instructed to go back to the ID of the packet in which the error was detected and retransmit packets with subsequent IDs sequentially from the packet with the ID. a step of notifying;
The present invention is characterized by comprising the step of discarding the packet with the ID in which the error has been detected, and the packets received from the reception of the packet with the ID until the packet with the ID is retransmitted from the external device. A method of controlling communication equipment.
ヘッダー、データおよびフッターを有し、前記ヘッダーに予め定められた規則にしたがってIDが付与されたパケットを外部機器から受信するステップと、
前記受信したパケットを記憶手段に記憶するステップと、
前記記憶手段において前記受信したパケットを記憶可能な容量があるか否かを検出するステップと、
前記受信したパケットを記憶する容量が前記記憶手段にないことが検出された場合に、前記記憶手段に記憶することができないパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを再送するよう前記外部機器に通知するステップと、
前記記憶手段に記憶することができないIDのパケットと、該IDのパケットの受信後から前記外部機器から該IDのパケットが再送されてくるまでの間に受信したパケットを破棄するステップと、を有することを特徴とする通信装置の制御方法。 A method for controlling a communication device, the method comprising:
receiving from an external device a packet having a header, data, and a footer and having an ID assigned to the header according to a predetermined rule;
storing the received packet in a storage means;
detecting whether or not the storage means has a capacity to store the received packet;
When it is detected that the storage means does not have the capacity to store the received packets, the storage means traces back to the ID of the packet that cannot be stored in the storage means and sequentially stores packets with subsequent IDs from the packet with that ID. Notifying the external device to retransmit;
The method further comprises the steps of discarding packets with IDs that cannot be stored in the storage means, and packets received between the time the packets with the IDs are received and the packets with the IDs are retransmitted from the external device. A method for controlling a communication device, characterized in that:
前記画像形成装置は、
ヘッダー、画像データおよびフッターを有し、前記ヘッダーに予め定められた規則にしたがってIDが付与されたパケットを前記印刷制御装置から受信する受信手段と、
前記受信手段が受信したパケットを記憶する記憶手段と、
前記受信手段が受信したパケットにエラーが生じているか否かを検出する検出手段と、
前記受信手段が受信したパケットにエラーが生じていることが検出された場合に、該エラーが検出されたパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを再送するよう要求する通知を前記印刷制御装置に送信する通知手段と、
前記エラーが検出されたIDのパケットと、該IDのパケットの受信後から前記印刷制御装置から該IDのパケットが再送されてくるまでの間に受信したパケットを破棄する破棄手段と、を備え、
前記印刷制御装置は、
前記パケットを生成する生成手段と、
前記生成手段が生成したパケットを前記画像形成装置へ送信する送信手段と、
前記画像形成装置から送信されてきた前記通知を受信する受信手段と、
前記受信手段が前記通知を受信した場合に、前記エラーが検出されたパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを前記画像形成装置へ送信するよう制御する制御手段と、を備えることを特徴とする印刷システム。 A printing system including a print control device and an image forming device that are communicably connected,
The image forming apparatus includes:
receiving means for receiving from the print control device a packet having a header, image data, and a footer and having an ID assigned to the header according to a predetermined rule;
storage means for storing packets received by the receiving means;
detection means for detecting whether an error has occurred in the packet received by the receiving means;
When it is detected that an error has occurred in a packet received by the receiving means, a request is made to trace back to the ID of the packet in which the error was detected and retransmit packets with subsequent IDs sequentially from the packet with the ID. notification means for transmitting a notification to the print control device;
comprising: a packet with the ID in which the error has been detected; and a discard unit that discards the packet received between the time the packet with the ID is received and the packet with the ID is retransmitted from the printing control device;
The print control device includes:
generating means for generating the packet;
transmitting means for transmitting the packet generated by the generating means to the image forming apparatus;
receiving means for receiving the notification transmitted from the image forming apparatus;
a control means for controlling, when the receiving means receives the notification, to trace back to the ID of the packet in which the error was detected and sequentially transmit packets with subsequent IDs from the packet with the ID to the image forming apparatus; A printing system comprising:
前記画像形成装置は、前記パケットのヘッダーと前記データからCRCデータを演算する演算手段を備え、
前記制御手段は、前記通知が前記画像形成装置の前記検出手段が前記エラーが検出されたパケットのIDを認識することができないヘッダーエラーを検出したことを示しており、または、前記通知が前記画像形成装置の前記演算手段により演算されたCRCデータと前記パケットのフッターに含まれるCRCデータとが一致しないことを示している場合、前記通知を受信した後、即座に、前記エラーが検出されたIDのパケットから順次それ以降のIDのパケットを前記画像形成装置へ送信するよう制御することを特徴とする請求項13に記載の印刷システム。 The footer includes CRC data generated from the header and the image data,
The image forming apparatus includes a calculation means for calculating CRC data from the header of the packet and the data,
The control means may cause the notification to indicate that the detection means of the image forming apparatus has detected a header error in which the ID of the packet in which the error has been detected cannot be recognized, or If the CRC data calculated by the calculation means of the forming device and the CRC data included in the footer of the packet do not match, immediately after receiving the notification, the ID where the error was detected. 14. The printing system according to claim 13, wherein the printing system performs control to sequentially transmit packets with subsequent IDs to the image forming apparatus.
前記画像形成装置は、
ヘッダー、画像データおよびフッターを有し、前記ヘッダーに予め定められた規則にしたがってIDが付与されたパケットを前記印刷制御装置から受信する受信手段と、
前記受信手段が受信したパケットを記憶する記憶手段と、
前記記憶手段において前記受信手段が受信したパケットを記憶可能な容量があるか否かを検出する検出手段と、
前記受信手段が受信したパケットを記憶する容量が前記記憶手段にないと前記検出手段により検出された場合に、前記記憶手段に記憶することができないパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを再送する通知を前記印刷制御装置に送信する通知手段と、
前記記憶手段に記憶することができない前記IDのパケットと、該IDのパケットの受信後から前記印刷制御装置から該IDのパケットが再送されてくるまでに受信したパケットを破棄する破棄手段と、を備え、
前記印刷制御装置は、
前記パケットを生成する生成手段と、
前記生成手段が生成したパケットを前記画像形成装置へ送信する送信手段と、
前記画像形成装置から送信されてきた前記通知を受信する受信手段と、
前記画像形成装置から前記通知を受信した場合に、前記通知を受信してから予め定められた保留時間が経過した後に、前記記憶手段に記憶することができないパケットのIDに遡って該IDのパケットから順次それ以降のIDのパケットを前記画像形成装置へ送信するよう制御する制御手段と、を備えることを特徴とする印刷システム。 A printing system including a print control device and an image forming device that are communicably connected,
The image forming apparatus includes:
receiving means for receiving from the print control device a packet having a header, image data, and a footer and having an ID assigned to the header according to a predetermined rule;
storage means for storing packets received by the receiving means;
detection means for detecting whether or not the storage means has a capacity capable of storing the packets received by the reception means;
When the detection means detects that the storage means does not have the capacity to store the packets received by the reception means, the storage means sequentially traces back to the ID of the packet that cannot be stored in the storage means and sequentially starts from the packet with that ID. notification means for transmitting a notification to the print control device to resend packets with subsequent IDs;
a discard unit for discarding packets with the ID that cannot be stored in the storage unit, and packets received from the time the packet with the ID is received until the packet with the ID is retransmitted from the print control device; Prepare,
The print control device includes:
generating means for generating the packet;
transmitting means for transmitting the packet generated by the generating means to the image forming apparatus;
receiving means for receiving the notification transmitted from the image forming apparatus;
When the notification is received from the image forming apparatus, after a predetermined hold time has elapsed since the notification was received, the ID of the packet that cannot be stored in the storage means is traced back to the packet with the ID. 1. A printing system comprising: control means for controlling packets with subsequent IDs to be sequentially transmitted to the image forming apparatus.
前記タイムアウト判定時間は前記保留時間よりも長いことを特徴とする請求項15に記載の印刷システム。 When the notification means does not receive a packet of the ID for which retransmission is requested by the notification from the print control device even after a predetermined timeout determination period has elapsed after transmitting the notification to the print control device, resending the notification to the print control device;
16. The printing system according to claim 15, wherein the timeout determination time is longer than the hold time.
A program that causes a computer to function as each means of the communication device according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022048666A JP2023142015A (en) | 2022-03-24 | 2022-03-24 | Communication device and method for controlling the same, program, and printing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022048666A JP2023142015A (en) | 2022-03-24 | 2022-03-24 | Communication device and method for controlling the same, program, and printing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023142015A true JP2023142015A (en) | 2023-10-05 |
Family
ID=88205846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022048666A Pending JP2023142015A (en) | 2022-03-24 | 2022-03-24 | Communication device and method for controlling the same, program, and printing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023142015A (en) |
-
2022
- 2022-03-24 JP JP2022048666A patent/JP2023142015A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7821919B2 (en) | Data processing apparatus and data processing method | |
EP2192715A2 (en) | System including transmitter and receiver | |
US8255601B2 (en) | Transmitting system, apparatus, and method | |
US8018931B2 (en) | Communication apparatus and integrated circuit for communication | |
JP3996928B2 (en) | How to handle corrupted data | |
CN110677220B (en) | RDMA (remote direct memory Access) message mechanism based on multi-track redundant response and implementation device thereof | |
JP2023142015A (en) | Communication device and method for controlling the same, program, and printing system | |
JP2014515195A (en) | Retransmission control system and retransmission control method | |
WO2024037076A1 (en) | Data interaction method, apparatus and system, and electronic device and storage medium | |
JP4693576B2 (en) | Data transfer control device and data transfer control method | |
US20050152386A1 (en) | Successful transactions | |
US20220385388A1 (en) | Serial communication apparatus and serial communication method that are capable of efficiently eliminating a timing lag between serial data transferred via a plurality of routes in serial communication | |
JP2013065922A (en) | Information processing system, transmitter, receiver, and information processing method | |
JP6136754B2 (en) | Communication control apparatus and image forming apparatus | |
JP5459308B2 (en) | Data transfer apparatus and data transfer apparatus control method | |
TWI379203B (en) | Usb cryptographic device and method for error correction | |
JP4554703B2 (en) | Information processing apparatus, information processing method, and information processing program | |
JP5004322B2 (en) | Data transfer control method, apparatus, and image forming apparatus | |
JP2834094B2 (en) | Asynchronous communication device | |
JP2009069974A (en) | Bus interface circuit and information processor | |
JP2008017175A (en) | Data processing device | |
JP2003345677A (en) | Data transfer system, logic unit, and data transfer method | |
JP6217206B2 (en) | Communication control device, image processing device, transfer control program | |
JP2000253098A (en) | Signal processor and signal processing system | |
JP2023006210A (en) | Redundant communication device, method, and program |