JP4665705B2 - Acquiring credit for data communication in network printers - Google Patents

Acquiring credit for data communication in network printers Download PDF

Info

Publication number
JP4665705B2
JP4665705B2 JP2005302899A JP2005302899A JP4665705B2 JP 4665705 B2 JP4665705 B2 JP 4665705B2 JP 2005302899 A JP2005302899 A JP 2005302899A JP 2005302899 A JP2005302899 A JP 2005302899A JP 4665705 B2 JP4665705 B2 JP 4665705B2
Authority
JP
Japan
Prior art keywords
credit
network
printer
request
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005302899A
Other languages
Japanese (ja)
Other versions
JP2007114847A (en
Inventor
佳永 金山
誠 近内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005302899A priority Critical patent/JP4665705B2/en
Publication of JP2007114847A publication Critical patent/JP2007114847A/en
Application granted granted Critical
Publication of JP4665705B2 publication Critical patent/JP4665705B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、ネットワークプリンタにおけるデータ通信用クレジットの取得に関するものである。   The present invention relates to obtaining data communication credits in a network printer.

従来より、画像を印刷するプリンタシステムが用いられている。プリンタシステムの中には、ネットワークを介して印刷要求を受信するものがある(ネットワークプリンタとも呼ばれる)。ネットワークプリンタの中には、印刷を実行する印刷装置(以下「プリンタユニット」とも呼ぶ)と、ネットワークから受信した印刷要求(印刷データ)に応じて、印刷に利用される制御データを印刷装置に送信するネットワーク装置(以下「ネットワークユニット」とも呼ぶ)と、を有するものがある。ここで、ネットワーク装置と印刷装置との間のデータ通信に、パケット通信が利用される場合がある。パケット通信としては、例えば、クレジットに基づくパケット通信が知られている(例えば、特許文献1参照)。   Conventionally, printer systems for printing images have been used. Some printer systems receive a print request via a network (also called a network printer). Among network printers, a printing device that executes printing (hereinafter also referred to as “printer unit”), and control data used for printing is transmitted to the printing device in response to a print request (print data) received from the network. Network devices (hereinafter also referred to as “network units”). Here, packet communication may be used for data communication between the network device and the printing device. As packet communication, for example, packet communication based on credit is known (see, for example, Patent Document 1).

特開2000−236351号公報JP 2000-236351 A

ところで、ネットワーク装置は、印刷装置に制御データを送信するために、印刷装置からクレジットを取得する。ここで、クレジット取得の方式としては、種々の方式を採用可能である。例えば、印刷装置にクレジット要求を送信することによってクレジットを取得する方式を採用可能である。また、クレジット要求を送信せずに、印刷装置によって自発的に提供されたクレジットを取得する方式を採用可能である。ここで、印刷装置が動作可能な方式として、印刷装置毎に適した方式が採用される場合が多い。ところが、このような種々の印刷装置をネットワークプリンタとして利用するためには、その印刷装置に適合したネットワーク装置を準備しなくてはならず、その設計・製作に多大な手間を要するという問題があった。   By the way, the network device acquires a credit from the printing device in order to transmit control data to the printing device. Here, various schemes can be adopted as a scheme for acquiring credits. For example, it is possible to adopt a method of acquiring credits by transmitting a credit request to the printing apparatus. In addition, it is possible to adopt a method of acquiring credits voluntarily provided by the printing apparatus without transmitting a credit request. Here, in many cases, a method suitable for each printing device is employed as a method by which the printing device can operate. However, in order to use such various printing apparatuses as network printers, it is necessary to prepare a network apparatus suitable for the printing apparatus, and there is a problem that much effort is required for designing and manufacturing the network apparatus. It was.

本発明は、上記の課題を解決するためになされたものであり、ネットワーク装置と印刷装置とを有するネットワークプリンタにおける、利用可能な印刷装置の構成の自由度を高めることのできる技術を提供することを目的とする。   The present invention has been made to solve the above-described problem, and provides a technique capable of increasing the degree of freedom of the configuration of an available printing apparatus in a network printer having a network apparatus and a printing apparatus. With the goal.

上述の課題の少なくとも一部を解決するため、本発明の第1の態様は、印刷を実行する印刷装置に、ネットワーク上のクライアントからの印刷要求に応じて、印刷に利用される制御データを送信するネットワーク装置であって、パケットを用いた通信プロトコルに従って前記制御データを送信する第1プロトコル処理部を有し、前記印刷装置は、前記通信プロトコルに従って前記制御データを受信する第2プロトコル処理部を有し、前記第1プロトコル処理部は、データ転送用のクレジットの取得モードとして、(i)クレジット要求を前記第2プロトコル処理部に送信することによってクレジットを取得する要求モードと、(ii)クレジット要求の有無に拘わらずに前記第2プロトコル処理部によって自発的に前記第1プロトコル処理部に提供されたクレジットを取得する提供モードと、を有し、前記第1プロトコル処理部は、前記第2プロトコル処理部に、前記提供モードで動作可能か否かを問い合わせるとともに、前記提供モードで動作可能な場合には、前記提供モードによるクレジット取得を選択して実行し、前記提供モードで動作できない場合には、前記要求モードによるクレジット取得を選択して実行する、ネットワーク装置を提供する。   In order to solve at least a part of the above-described problem, according to a first aspect of the present invention, control data used for printing is transmitted to a printing apparatus that performs printing in response to a print request from a client on a network. A first protocol processing unit that transmits the control data according to a communication protocol using a packet, and the printing device includes a second protocol processing unit that receives the control data according to the communication protocol. The first protocol processing unit has (i) a request mode for acquiring a credit by transmitting a credit request to the second protocol processing unit as a credit acquisition mode for data transfer, and (ii) a credit Regardless of whether there is a request or not, the second protocol processing unit voluntarily causes the first protocol processing unit. A providing mode for obtaining the provided credit, wherein the first protocol processing unit inquires of the second protocol processing unit whether or not the operation can be performed in the providing mode, and is operable in the providing mode. In such a case, there is provided a network device that selects and executes credit acquisition in the provision mode, and selects and executes credit acquisition in the request mode when the operation cannot be performed in the provision mode.

このネットワーク装置によれば、第1プロトコル処理部は、印刷装置の第2プロトコル処理部に提供モードで動作可能か否かを問い合わせるとともに、提供モードで動作可能な場合には、提供モードによるクレジット取得を選択して実行し、提供モードで動作できない場合には、要求モードによるクレジット取得を選択して実行するので、ネットワークプリンタにおける利用可能な印刷装置の構成の自由度を高めることができる。   According to this network device, the first protocol processing unit inquires of the second protocol processing unit of the printing device whether or not it can operate in the provision mode. Is selected and executed, and when the operation cannot be performed in the providing mode, the credit acquisition in the request mode is selected and executed, so that the degree of freedom of the configuration of the printing apparatus that can be used in the network printer can be increased.

上記ネットワーク装置において、前記ネットワーク装置と前記印刷装置との間はUSBで接続され、前記ネットワーク装置がUSBホストとして機能し、前記印刷装置はUSBデバイスとして機能し、前記通信プロトコルは、下位層のプロトコルとしてUSBプロトコルを利用することとしてもよい。   In the network apparatus, the network apparatus and the printing apparatus are connected by USB, the network apparatus functions as a USB host, the printing apparatus functions as a USB device, and the communication protocol is a lower layer protocol. The USB protocol may be used.

この構成によれば、一般的なパーソナルコンピュータにUSBを用いて接続されるプリンタを、印刷装置として利用することができる。   According to this configuration, a printer connected to a general personal computer using USB can be used as a printing apparatus.

また、第2の態様は、ネットワーク上のクライアントからの印刷要求に応じて印刷を実行するネットワークプリンタであって、上記第1の態様のネットワーク装置と、前記印刷装置と、を備える、ネットワークプリンタを提供する。   According to a second aspect, there is provided a network printer that executes printing in response to a print request from a client on the network, the network printer including the network device according to the first aspect and the printing device. provide.

なお、本発明は、種々の形態で実現することが可能であり、例えば、ネットワークプリンタ用のネットワーク装置、ネットワーク装置と印刷装置とを有するネットワークプリンタ、それらの装置の制御方法及び制御装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、そのコンピュータプログラムを含み搬送波内に具現化されたデータ信号、等の形態で実現することができる。   The present invention can be realized in various forms, for example, a network device for a network printer, a network printer having a network device and a printing device, a control method and a control device for these devices, and their The present invention can be realized in the form of a computer program for realizing the function of the method or apparatus, a recording medium recording the computer program, a data signal including the computer program and embodied in a carrier wave, and the like.

次に、この発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.実施例:
B.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. Example:
B. Variations:

A.実施例:
図1は、本発明の実施例を適用するネットワークシステムの構成を示す概略図である。このネットワークシステム10は、パーソナルコンピュータ100とネットワークプリンタ200とがLANを介して相互に接続された構成を有している。LANは、IEEE802.3のような有線ネットワークでも、IEEE802.11b/g/aなどの無線ネットワークでもよい。
A. Example:
FIG. 1 is a schematic diagram showing the configuration of a network system to which an embodiment of the present invention is applied. The network system 10 has a configuration in which a personal computer 100 and a network printer 200 are connected to each other via a LAN. The LAN may be a wired network such as IEEE 802.3 or a wireless network such as IEEE 802.11b / g / a.

パーソナルコンピュータ100は、プリンタドライバ100Dを用いて印刷画像の元となる元画像データを生成する。そして、パーソナルコンピュータ100は、元画像データを含む印刷要求を、LANを介してネットワークプリンタ200に送信して、ネットワークプリンタ200に印刷を実行させる。本実施例では、パーソナルコンピュータ100は、LPR(Line PRinter daemon protocol)を利用して、印刷要求をネットワークプリンタ200に送信する。ただし、印刷要求の形式としては、LPRを利用する形式に限らず、他の任意の形式を採用可能である。   The personal computer 100 uses the printer driver 100D to generate original image data that is the basis of the print image. Then, the personal computer 100 transmits a print request including the original image data to the network printer 200 via the LAN, and causes the network printer 200 to execute printing. In this embodiment, the personal computer 100 transmits a print request to the network printer 200 using LPR (Line PRinter daemon protocol). However, the format of the print request is not limited to the format using LPR, and any other format can be adopted.

また、元画像データの形式としては任意の形式を採用可能である。例えば、PDL(Page Description Language:ページ記述言語)で記述されたPDLデータを採用してもよい。また、JPEGデータやTIFFデータといった画像データを採用してもよい。また、XHTML(eXtensible HyperText Markup Language)で記述されたXHTMLデータを採用してもよい。   Also, any format can be adopted as the format of the original image data. For example, PDL data described in PDL (Page Description Language) may be used. Further, image data such as JPEG data or TIFF data may be employed. Moreover, you may employ | adopt the XHTML data described by XHTML (eXtensible HyperText Markup Language).

ネットワークプリンタ200は、ネットワークユニット300と、プリンタユニット400と、を有している。ネットワークユニット300は、LAN上の他の装置とプリンタユニット400との間で交換されるデータ(例えば、元画像データ)を仲介する。プリンタユニット400は、受信した元画像データに従って印刷を実行する。ネットワークユニット300とプリンタユニット400との間は、USB(Universal Serial Bus)で接続されている。但し、両者の間をUSB以外の他の物理的インタフェースで接続することも可能である。   The network printer 200 has a network unit 300 and a printer unit 400. The network unit 300 mediates data (for example, original image data) exchanged between other devices on the LAN and the printer unit 400. The printer unit 400 executes printing according to the received original image data. The network unit 300 and the printer unit 400 are connected by USB (Universal Serial Bus). However, it is also possible to connect the two with a physical interface other than USB.

ネットワークユニット300は、中央制御部(CPU)310と、RAM320と、ROM330と、ネットワーク制御部340と、USBホスト制御部350とを有している。図1の例では、ネットワーク制御部340は、コネクタ342を介して有線ネットワークに接続される。USBホスト制御部350は、ルートハブ352を有しており、ルートハブ352にはUSBコネクタ354が設けられている。USBコネクタ354は、USBケーブルを介してプリンタユニット400のUSBコネクタ462に接続されている。   The network unit 300 includes a central control unit (CPU) 310, a RAM 320, a ROM 330, a network control unit 340, and a USB host control unit 350. In the example of FIG. 1, the network control unit 340 is connected to a wired network via a connector 342. The USB host controller 350 has a root hub 352, and the root hub 352 is provided with a USB connector 354. The USB connector 354 is connected to the USB connector 462 of the printer unit 400 via a USB cable.

プリンタユニット400は、中央制御部(CPU)410と、RAM420と、ROM430と、印刷エンジン440と、USBデバイス制御部460と、を有している。印刷エンジン440は、与えられた印刷データに応じて印刷を実行する印刷機構である。本実施例では、中央制御部410が、プリンタドライバ100Dによって生成された元画像データを解析し、色変換やハーフトーン処理を実行して印刷データを作成し、この印刷データを印刷エンジン440に供給する。但し、中央制御部410の代わりに印刷エンジン440が色変換やハーフトーン処理の機能を有するように構成することも可能である。   The printer unit 400 includes a central control unit (CPU) 410, a RAM 420, a ROM 430, a print engine 440, and a USB device control unit 460. The print engine 440 is a printing mechanism that performs printing in accordance with given print data. In the present embodiment, the central control unit 410 analyzes the original image data generated by the printer driver 100D, executes color conversion and halftone processing, creates print data, and supplies the print data to the print engine 440. To do. However, the print engine 440 may be configured to have color conversion and halftone processing functions instead of the central control unit 410.

図2は、ROM330、430を中心としたネットワークプリンタ200の構成を示すブロック図である。図2では、各構成要素が、データ通信の階層と同じ順番に並んで配置されている。ネットワークユニット300のROM330には、LANからの印刷要求に応じてプリンタユニット400に印刷を実行させるプリントサーバモジュール334が格納されている。このプリントサーバモジュール334は、LANを介して受信した印刷要求に含まれる元画像データを、プリンタユニット400に転送する。   FIG. 2 is a block diagram showing a configuration of the network printer 200 centering on the ROMs 330 and 430. In FIG. 2, the components are arranged in the same order as the data communication hierarchy. The ROM 330 of the network unit 300 stores a print server module 334 that causes the printer unit 400 to execute printing in response to a print request from the LAN. The print server module 334 transfers original image data included in a print request received via the LAN to the printer unit 400.

プリントサーバモジュール334の下位には、ネットワークアーキテクチャの下位層と、USBアーキテクチャの下位層とが存在する。ネットワークアーキテクチャの下位層としては、ネットワークモジュール332が設けられている。ネットワークモジュール332の下位には、ネットワーク制御部340が設けられている。ネットワークモジュール332は、比較的上位のプロトコル(例えば、TCP(Transmission Control Protocol)やIP(Internet Protocol))を解釈することによって、LANを介したデータ通信を行う。ネットワーク制御部340は、比較的下位のプロトコル(例えば、Ethernet(登録商標))を解釈することによって、LANを介したデータ通信を行う。   Below the print server module 334 are a lower layer of the network architecture and a lower layer of the USB architecture. A network module 332 is provided as a lower layer of the network architecture. A network control unit 340 is provided below the network module 332. The network module 332 performs data communication via the LAN by interpreting relatively higher-level protocols (for example, TCP (Transmission Control Protocol) and IP (Internet Protocol)). The network control unit 340 performs data communication via the LAN by interpreting a relatively low-level protocol (for example, Ethernet (registered trademark)).

一方、プリントサーバモジュール334のUSBアーキテクチャの下位層としては、D4プロトコル処理モジュール336が設けられている。このD4プロトコル処理モジュール336の下位には、USB制御モジュール338が設けられている。このUSB制御モジュール338の下位には、USBホスト制御部350が設けられている。   On the other hand, a D4 protocol processing module 336 is provided as a lower layer of the USB architecture of the print server module 334. A USB control module 338 is provided below the D4 protocol processing module 336. A USB host control unit 350 is provided below the USB control module 338.

D4プロトコル処理モジュール336は、いわゆる「D4プロトコル」に従ってデータ転送を行う。D4プロトコルとは、IEEE P1284.4で規定された通信プロトコルである。このD4プロトコルでは、データの転送は、パケットを用いるとともに論理的なチャンネルを介して行われる。以下、IEEE P1284.4で規定されたパケットのことを「D4パケット」とも呼ぶ。   The D4 protocol processing module 336 performs data transfer according to a so-called “D4 protocol”. The D4 protocol is a communication protocol defined by IEEE P1284.4. In the D4 protocol, data is transferred through a logical channel using a packet. Hereinafter, a packet defined by IEEE P1284.4 is also referred to as a “D4 packet”.

USB制御モジュール338は、比較的上位のUSBプロトコル(例えば、データ転送用のパイプ(Bulk OUT pipe)を用いた通信プロトコル)を解釈することによって、データ転送を行う。また、このUSB制御モジュール338は、USBシステムソフトウェアと、USBプリンタクラスのクライアントソフトウェアと、のそれぞれの機能を有している。   The USB control module 338 performs data transfer by interpreting a relatively higher-level USB protocol (for example, a communication protocol using a data transfer pipe (Bulk OUT pipe)). The USB control module 338 has functions of USB system software and USB printer class client software.

一方、USBホスト制御部350は、比較的下位のUSBプロトコル(例えば、電気信号のプロトコル)を解釈することによって、データ転送を行う。このUSBホスト制御部350は、USBホストコントローラ(ホスト側バスインターフェース)として機能する。   On the other hand, the USB host control unit 350 performs data transfer by interpreting a relatively low-order USB protocol (for example, an electrical signal protocol). The USB host control unit 350 functions as a USB host controller (host-side bus interface).

一方、プリンタユニット400のROM430には、印刷要求(元画像データ)に応じて印刷エンジン440に印刷データを供給するプリンタ機能モジュール434が格納されている。このプリンタ機能モジュール434の下位には、USBアーキテクチャの下位層が存在する。USBアーキテクチャの下位層としては、D4プロトコル処理モジュール436が設けられている。このD4プロトコル処理モジュール436の下位には、USB制御モジュール438が設けられている。このUSB制御モジュール438の下位には、USBデバイス制御部460が設けられている。   On the other hand, the ROM 430 of the printer unit 400 stores a printer function module 434 that supplies print data to the print engine 440 in response to a print request (original image data). Below the printer function module 434 is a lower layer of the USB architecture. As a lower layer of the USB architecture, a D4 protocol processing module 436 is provided. A USB control module 438 is provided below the D4 protocol processing module 436. A USB device controller 460 is provided below the USB control module 438.

D4プロトコル処理モジュール436は、D4プロトコル処理モジュール336と同様に、D4プロトコルに従ってデータ転送を行う。   Similar to the D4 protocol processing module 336, the D4 protocol processing module 436 performs data transfer according to the D4 protocol.

USB制御モジュール438は、USB制御モジュール338と同様に、比較的上位のUSBプロトコルに従ってデータ転送を行う。また、このUSB制御モジュール438は、USBプリンタクラスのUSB論理デバイスと、USBプリンタクラスのUSBファンクションと、のそれぞれの機能を有している。   Similar to the USB control module 338, the USB control module 438 performs data transfer according to a relatively higher USB protocol. The USB control module 438 has functions of a USB logical device of the USB printer class and a USB function of the USB printer class.

USBデバイス制御部460は、USBホスト制御部350と同様に、比較的下位のUSBプロトコルを解釈することによって、データ転送を行う。このUSBデバイス制御部460は、USBバスインターフェースとして機能する。   Similar to the USB host control unit 350, the USB device control unit 460 performs data transfer by interpreting a relatively low-order USB protocol. The USB device control unit 460 functions as a USB bus interface.

なお、プリントサーバモジュール334がプリンタ機能モジュール434に元画像データを送信する際には、D4プロトコル処理モジュール336とD4プロトコル処理モジュール436とが、D4プロトコルに従ってデータ転送を行う。その下位層では、USB制御モジュール338とUSB制御モジュール438とが、USBプロトコルに従ってデータ転送を行う。その下位層では、USBホスト制御部350とUSBデバイス制御部460とが、USBプロトコルに従ってデータ転送を行う。   When the print server module 334 transmits original image data to the printer function module 434, the D4 protocol processing module 336 and the D4 protocol processing module 436 perform data transfer according to the D4 protocol. In the lower layer, the USB control module 338 and the USB control module 438 perform data transfer according to the USB protocol. In the lower layer, the USB host control unit 350 and the USB device control unit 460 perform data transfer according to the USB protocol.

図2には、D4プロトコルの論理チャンネルdchが示されている。元画像データの転送は、この論理チャンネルdchを介して行われる。なお、論理チャンネルとしては、元画像データ用の論理チャンネルdchに限らず、任意の複数の論理チャンネルが設けられ得る。例えば、印刷エンジン440のステータス情報を送受信するためのチャンネルを設けることができる。このようなステータス情報は、SNMP等のプロトコルにより、ネットワークユニット300からネットワーク上の他の装置(例えば、パーソナルコンピュータ100)に対して提供され得る。   FIG. 2 shows a logical channel dch of the D4 protocol. The transfer of the original image data is performed via this logical channel dch. Note that the logical channel is not limited to the logical channel dch for original image data, and an arbitrary plurality of logical channels can be provided. For example, a channel for transmitting and receiving status information of the print engine 440 can be provided. Such status information can be provided from the network unit 300 to another device (for example, the personal computer 100) on the network by a protocol such as SNMP.

なお、論理チャンネルの識別情報は、D4パケットのヘッダに登録される(図示省略)。すなわち、D4プロトコル処理モジュール336、436は、D4パケットを送信する時には、そのD4パケットの論理チャンネルの識別情報をヘッダに登録する。また、D4プロトコル処理モジュール336、436は、D4パケットを受信する時には、受信したD4パケットのヘッダを参照することによって、そのD4パケットの論理チャンネルを特定する。   The logical channel identification information is registered in the header of the D4 packet (not shown). In other words, when transmitting the D4 packet, the D4 protocol processing modules 336 and 436 register the identification information of the logical channel of the D4 packet in the header. Further, when receiving the D4 packet, the D4 protocol processing modules 336 and 436 specify the logical channel of the D4 packet by referring to the header of the received D4 packet.

図3は、論理チャンネルdchにおけるクレジットの取得方式の一例の概要を示すシーケンス図である。D4プロトコルでは、転送データを含むD4パケット(以下「データパケット」とも呼ぶ)の転送制御にクレジットが利用される。クレジットを利用したデータ転送では、最初に、データの受信側(receiver)が、データの送信側(sender)に、受信可能なデータパケット数(「クレジット数」とも呼ばれる)を提供する。送信側は、提供されたクレジット数を限度として、データパケットを受信側に送信することができる。提供されたクレジット数は、パケット送信によって消費される。なお、このシーケンス図では、下位層(USB)での通信の図示が省略されている。   FIG. 3 is a sequence diagram showing an outline of an example of a credit acquisition method in the logical channel dch. In the D4 protocol, credits are used for transfer control of D4 packets including transfer data (hereinafter also referred to as “data packets”). In data transfer using credits, a data receiver (receiver) first provides the number of receivable data packets (also referred to as “credit number”) to a data sender (sender). The transmitting side can transmit data packets to the receiving side up to the number of credits provided. The number of credits provided is consumed by packet transmission. In this sequence diagram, communication in the lower layer (USB) is not shown.

図3は、要求方式に従ったデータ転送の一例を示すシーケンス図である。このシーケンス図では、ネットワークユニット300がプリンタユニット400にデータ(例えば、元画像データ)を送信することと仮定している。最初のステップS300では、ネットワークユニット300が、外部から印刷要求を受信する。ネットワークユニット300のD4プロトコル処理モジュール336(以下「ネットD4モジュール336」とも呼ぶ)は、この印刷要求に応じて、元画像データの送信前に、プリンタユニット400にクレジット要求(Credit Request)を送信する(ステップS310)。プリンタユニット400のD4プロトコル処理モジュール436(以下「プリンタD4モジュール436」とも呼ぶ)は、このクレジット要求に応じて、クレジット要求応答(Credit Request Reply)をネットワークユニット300に返信する(ステップS320)。プリンタD4モジュール436は、この応答でクレジット数を指定する。このクレジット数は、プリンタユニット400の動作状況(例えば、データ受信用バッファメモリの空き容量)に応じて設定される。図3の例では、ステップS320の応答では、クレジット数が「ゼロ」に設定されている。以後、ネットD4モジュール336は、1以上のクレジット数を指定した応答を受信するまで、クレジット要求の送信を繰り返す。そして、ネットD4モジュール336は、1以上のクレジット数を指定した応答に応じて、データパケットをプリンタユニット400に送信する。ここで送信されるデータパケット数は、指定されたクレジット数に制限される。図3の例では、ステップS330のクレジット要求に対する応答で、クレジット数が1に設定されている(S340)。そこで、ネットD4モジュール336は、次のステップS350で、1つのデータパケットを送信する。以後、ネットD4モジュール336は、元画像データの転送が完了するまで、クレジット要求とデータ送信とを繰り返す。なお、一度に提供されるクレジット数は2以上であってもよい。   FIG. 3 is a sequence diagram illustrating an example of data transfer according to the request method. In this sequence diagram, it is assumed that the network unit 300 transmits data (for example, original image data) to the printer unit 400. In the first step S300, the network unit 300 receives a print request from the outside. In response to this print request, the D4 protocol processing module 336 of the network unit 300 (hereinafter also referred to as “net D4 module 336”) transmits a credit request (Credit Request) to the printer unit 400 before transmitting the original image data. (Step S310). In response to this credit request, the D4 protocol processing module 436 (hereinafter also referred to as “printer D4 module 436”) of the printer unit 400 returns a credit request response (Credit Request Reply) to the network unit 300 (step S320). The printer D4 module 436 specifies the number of credits in this response. The number of credits is set according to the operation status of the printer unit 400 (for example, the free capacity of the data reception buffer memory). In the example of FIG. 3, the number of credits is set to “zero” in the response of step S320. Thereafter, the net D4 module 336 repeats the transmission of the credit request until receiving a response designating one or more credits. Then, the net D4 module 336 transmits a data packet to the printer unit 400 in response to a response designating one or more credits. The number of data packets transmitted here is limited to the specified number of credits. In the example of FIG. 3, the number of credits is set to 1 in response to the credit request in step S330 (S340). Therefore, the net D4 module 336 transmits one data packet in the next step S350. Thereafter, the net D4 module 336 repeats the credit request and the data transmission until the transfer of the original image data is completed. Note that the number of credits provided at one time may be two or more.

このように、データ送信側が、クレジット要求をデータ受信側に送信することによって、クレジットを取得する方式を「要求方式」と呼ぶ。この「要求方式」では、データ受信側は、クレジット要求に応じてクレジットを提供するが、自発的なクレジットの提供を行わない。   In this way, a method in which the data transmitting side acquires a credit by transmitting a credit request to the data receiving side is referred to as a “request method”. In this “request method”, the data receiving side provides a credit in response to a credit request, but does not voluntarily provide a credit.

図4は、提供方式に従ったデータ転送の一例を示すシーケンス図である。図3に示すシーケンス図との差異は、プリンタD4モジュール436が、クレジット要求の有無に拘わらずに、自発的にクレジットを提供する点である。   FIG. 4 is a sequence diagram illustrating an example of data transfer according to the provision method. The difference from the sequence diagram shown in FIG. 3 is that the printer D4 module 436 voluntarily provides credit regardless of the presence or absence of a credit request.

最初のステップS400Aでは、ネットワークユニット300が、外部から印刷要求を受信する。ただし、提供方式では、ネットD4モジュール336は、自発的なクレジット要求を行わずに、クレジットが提供されるまで待機する。図4の例では、次のステップS410で、プリンタD4モジュール436が、自発的にクレジットを提供する。ここで、プリンタD4モジュール436は、1以上のクレジット数を指定する。図4の例では、ステップS410のクレジット提供で、クレジット数が「1」に設定されている。なお、クレジット提供の契機としては、任意のものを採用可能である。例えば、プリンタユニット400のデータ受信用バッファメモリの空き容量が十分に大きくなったことを契機として用いることができる。このような、データ受信用バッファメモリとしては、任意のメモリを利用可能であり、例えば、RAM420(図1)の一部の領域を用いることができる。   In the first step S400A, the network unit 300 receives a print request from the outside. However, in the providing method, the net D4 module 336 does not make a voluntary credit request and waits until credit is provided. In the example of FIG. 4, in the next step S410, the printer D4 module 436 voluntarily provides a credit. Here, the printer D4 module 436 specifies a credit number of 1 or more. In the example of FIG. 4, the number of credits is set to “1” in the credit provision in step S410. Any credit can be used as an opportunity for providing the credit. For example, it can be used when the free capacity of the data reception buffer memory of the printer unit 400 has become sufficiently large. As such a data reception buffer memory, any memory can be used. For example, a partial area of the RAM 420 (FIG. 1) can be used.

ネットD4モジュール336は、クレジット提供に応じて、クレジット提供を受信したことを示すクレジット提供応答を返信する(ステップS420)。そして、ネットD4モジュール336は、クレジット提供に応じて、データパケットをプリンタユニット400に送信する(ステップS430)。ここで送信されるデータパケット数は、指定されたクレジット数に制限される。以後、ネットD4モジュール336は、元画像データの転送が完了するまで、クレジットが提供されるまでの待機と、クレジット提供に応じたデータ送信と、を繰り返す。   In response to the credit provision, the net D4 module 336 returns a credit provision response indicating that the credit provision has been received (step S420). Then, the net D4 module 336 transmits a data packet to the printer unit 400 in response to the credit provision (step S430). The number of data packets transmitted here is limited to the specified number of credits. Thereafter, the net D4 module 336 repeats the standby until the credit is provided and the data transmission according to the provision of the credit until the transfer of the original image data is completed.

このように、データ送信側からのクレジット要求の有無に拘わらずに、データ受信側によって自発的に提供されたクレジットを取得する方式を「提供方式」と呼ぶ。この「提供方式」では、データ送信側は、自発的なクレジット要求を行わない。   In this way, a method of acquiring credits voluntarily provided by the data receiving side regardless of whether there is a credit request from the data transmitting side is referred to as a “providing method”. In this “providing method”, the data transmission side does not make a voluntary credit request.

図5は、提供方式に従ったデータ転送の別の例を示すシーケンス図である。図4に示す例との差異は、ネットワークユニット300が印刷要求を受信するタイミング(S400B)が、クレジット提供(S410)の後である点だけである。この場合には、ネットワークユニット300は、印刷要求を受信した時点には、既にクレジットの提供を受けているので、待ち時間無しで、データパケットを送信することができる(S430)。提供済みのクレジットが不足している場合には、ネットワークユニット300は、再びクレジットが提供されることを待ち、クレジット提供に応じてデータパケットを送信する(ステップS440、S450、S460)。以後、ネットワークユニット300は、元画像データの転送が完了するまで、クレジットが提供されるまでの待機と、クレジット提供に応じたデータ送信と、を繰り返す。   FIG. 5 is a sequence diagram showing another example of data transfer according to the provision method. The only difference from the example shown in FIG. 4 is that the timing at which the network unit 300 receives the print request (S400B) is after the credit provision (S410). In this case, since the network unit 300 has already received the credit when the print request is received, the network unit 300 can transmit the data packet without waiting time (S430). If the provided credit is insufficient, the network unit 300 waits for the credit to be provided again, and transmits a data packet in response to the provision of the credit (steps S440, S450, S460). Thereafter, the network unit 300 repeats the standby until the credit is provided and the data transmission according to the provision of the credit until the transfer of the original image data is completed.

以上のように、要求方式(図3)では、送信側(ネットD4モジュール336)は、データを送信しようとする時に、送信前にクレジットを要求する。受信側(プリンタD4モジュール436)は、クレジット要求に応じてクレジットを提供する。このように、要求方式では、簡単な方法でクレジットが取得されるので、送信側と受信側との構成を簡素化することができる。ただし、受信側がクレジットを提供できない状態で送信側がデータを送信しようとする場合には、送信側は、クレジットが提供されるまで、クレジット要求を繰り返し送信する。   As described above, in the request method (FIG. 3), the transmission side (net D4 module 336) requests credit before transmission when attempting to transmit data. The receiving side (printer D4 module 436) provides credit in response to the credit request. As described above, in the request method, since the credit is obtained by a simple method, the configuration of the transmission side and the reception side can be simplified. However, when the transmitting side tries to transmit data in a state where the receiving side cannot provide the credit, the transmitting side repeatedly transmits the credit request until the credit is provided.

一方、提供方式(図4、図5)では、受信側は、クレジット要求の有無に拘わらずに自発的にクレジットを提供する。一方、送信側は、自発的なクレジット要求を送信しない。その結果、受信側がクレジットを提供できない状態で送信側がデータを送信しようとする場合であっても、クレジット要求が繰り返し送信されることが防止される。また、受信側は、クレジットの提供が可能な場合には、送信側がデータ送信の要求(例えば、印刷要求)を受ける前に、予めクレジットを提供することができる。その結果、クレジットの提供が通信負荷の低い状態で行われ得る。このように、提供方式は、要求方式と比べて、通信負荷を抑制できる点で好ましい。   On the other hand, in the providing method (FIGS. 4 and 5), the receiving side voluntarily provides credit regardless of the presence or absence of a credit request. On the other hand, the transmitting side does not transmit a voluntary credit request. As a result, it is possible to prevent the credit request from being repeatedly transmitted even when the transmitting side tries to transmit data in a state where the receiving side cannot provide the credit. In addition, when the receiving side can provide credit, the receiving side can provide the credit in advance before receiving the data transmission request (for example, print request). As a result, the provision of credits can be performed with a low communication load. Thus, the provision method is preferable in that the communication load can be suppressed as compared with the request method.

ところで、図1の例では、ネットワークユニット300とプリンタユニット400との接続にUSBが用いられている。この理由は、一般的なパーソナルコンピュータにUSBを用いて接続されるプリンタを、プリンタユニット400として利用するためである。このように、接続インターフェースとして、パーソナルコンピュータとの接続インターフェースと同じもの(この例ではUSB)を用いれば、パーソナルコンピュータ用のプリンタを、容易に、プリンタユニット400として用いることができる。この際、パーソナルコンピュータ用プリンタのUSBよりも上位の層の構成(例えば、図2のプリンタD4モジュール436とプリンタ機能モジュール434とに相当する部分の構成)をそのまま利用できるように、ネットワークユニット300を構成することが好ましい。   Incidentally, in the example of FIG. 1, USB is used for connection between the network unit 300 and the printer unit 400. This is because a printer connected to a general personal computer using USB is used as the printer unit 400. As described above, if the same connection interface as the connection interface with the personal computer (USB in this example) is used as the connection interface, the printer for the personal computer can be easily used as the printer unit 400. At this time, the network unit 300 is configured so that the configuration of the layer higher than the USB of the personal computer printer (for example, the configuration corresponding to the printer D4 module 436 and the printer function module 434 in FIG. 2) can be used as it is. It is preferable to configure.

なお、パーソナルコンピュータとプリンタとの間の通信では、しばしば「要求方式」が採用される。この理由は以下の通りである。USBプロトコルでは、データ転送のスケジュールは、USBホストによって管理される。USBデバイスがUSBホストにデータを送信する場合も、USBデバイスは、自発的にデータをUSBホストに送信することができない。この代わりに、USBデバイスは、USBホストからのいわゆる「INトークン」を受信して初めてデータをUSBホストに送信することができる。USBホストによる「INトークン」の発行頻度は、通常は、USBデバイスの要求に応じて設定される。   In communication between a personal computer and a printer, a “request method” is often adopted. The reason is as follows. In the USB protocol, the data transfer schedule is managed by the USB host. Even when the USB device transmits data to the USB host, the USB device cannot spontaneously transmit data to the USB host. Instead, the USB device can transmit data to the USB host only after receiving a so-called “IN token” from the USB host. The issuance frequency of the “IN token” by the USB host is normally set according to a request from the USB device.

ここで、パーソナルコンピュータとプリンタとの間の通信に提供方式(図4、図5)を適用すると仮定する。USBデバイス(プリンタ)による自発的なクレジット提供を実現するためには、USBホスト(パーソナルコンピュータ)は、頻繁に「INトークン」をUSBデバイスに送信する。すなわち、パーソナルコンピュータは、プリンタを利用していない状態であっても、プリンタに「INトークン」を送信し続けることになる。ここで、パーソナルコンピュータが、プリンタの利用とは異なる他の処理(例えば、アプリケーションの実行)を実行している場合には、利用していないプリンタのための「INトークン」送信の負荷によって、他の処理の効率が低下する可能性がある。   Here, it is assumed that the providing method (FIGS. 4 and 5) is applied to communication between the personal computer and the printer. In order to realize voluntary credit provision by the USB device (printer), the USB host (personal computer) frequently transmits an “IN token” to the USB device. That is, the personal computer continues to send the “IN token” to the printer even when the printer is not used. Here, when the personal computer is executing another process (for example, execution of an application) different from the use of the printer, the other depends on the load of “IN token” transmission for the printer that is not used. The efficiency of processing may be reduced.

一方、図3に示す要求方式のように、USBホスト側のネットD4モジュール336が自発的にクレジット要求を行う場合には、USBホストは必要に応じていわゆる「OUTトークン」をUSBデバイスに送信すればよい。ここで、パーソナルコンピュータとプリンタとの間の通信に提供方式を適用すると仮定する。すると、パーソナルコンピュータは、プリンタを利用していない状態においては、プリンタに「INトークン」と「OUTトークン」とを送信する必要がない。従って、利用していないプリンタに起因して、他の処理の効率が低下することを抑制できる。   On the other hand, when the network D4 module 336 on the USB host side voluntarily issues a credit request as in the request method shown in FIG. 3, the USB host sends a so-called “OUT token” to the USB device as necessary. That's fine. Here, it is assumed that the providing method is applied to the communication between the personal computer and the printer. Then, the personal computer does not need to transmit an “IN token” and an “OUT token” to the printer when the printer is not used. Therefore, it is possible to suppress a decrease in the efficiency of other processing due to a printer that is not used.

以上のように、プリンタを利用していない場合のパーソナルコンピュータの負荷が大きくなることを抑制するために、パーソナルコンピュータとプリンタとの間の通信では、しばしば「要求方式」が採用される。   As described above, in order to suppress an increase in the load on the personal computer when the printer is not used, the “request method” is often adopted in communication between the personal computer and the printer.

ところで、「INトークン」用のUSBプロトコルパケットのデータ量は、「クレジット要求」等の上位層データ用のUSBプロトコルパケットのデータ量と比べて、小さい。従って、「INトークン」が繰り返し送受信される「提供方式」の通信負荷は、「クレジット要求」が繰り返し送受信される「要求方式」の通信負荷と比べて小さい。一方、ネットワークプリンタ200のネットワークユニット300に関しては、プリンタの利用とは異なる他の処理の効率低下が問題となる場合が少ない。従って、ネットワークユニット300とプリンタユニット400との通信では、「提供方式」が採用されることが好ましい。   By the way, the data amount of the USB protocol packet for “IN token” is smaller than the data amount of the USB protocol packet for upper layer data such as “credit request”. Therefore, the communication load of the “providing method” in which the “IN token” is repeatedly transmitted and received is smaller than the communication load of the “request method” in which the “credit request” is repeatedly transmitted and received. On the other hand, with respect to the network unit 300 of the network printer 200, a decrease in efficiency of other processes different from the use of the printer is rarely a problem. Therefore, it is preferable that the “providing method” is adopted in communication between the network unit 300 and the printer unit 400.

なお、ネットワークユニット300に接続されるプリンタユニット400の中には、パーソナルコンピュータ用プリンタのように「提供方式」には対応せずに「要求方式」に対応しているものと、「提供方式」に対応しているものとが、あり得る。そこで、本実施例では、ネットD4モジュール336は、接続されているネットワークユニット300に合わせて、「提供方式」と「要求方式」とのいずれかを選択する。   Note that, among the printer units 400 connected to the network unit 300, those that support the “request method” instead of the “provide method”, such as printers for personal computers, and “providing method” There is a possibility that Therefore, in this embodiment, the net D4 module 336 selects either “providing method” or “request method” in accordance with the connected network unit 300.

図6は、クレジット取得方式の選択処理の手順を示すフローチャートである。最初のステップS600では、ネットD4モジュール336(図2)は、プリンタD4モジュール436に、「提供方式」で動作可能か否かを問い合わせる。「提供方式」での動作が可能である場合には、ネットD4モジュール336は、ステップS610に移行して、「提供方式」によるクレジット取得を選択して実行する。「提供方式」での動作ができない場合には、ネットD4モジュール336は、ステップS620に移行して、「要求方式」によるクレジット取得を選択して実行する。   FIG. 6 is a flowchart illustrating a procedure of credit acquisition method selection processing. In the first step S600, the net D4 module 336 (FIG. 2) inquires of the printer D4 module 436 whether it can operate in the “providing mode”. When the operation in the “providing method” is possible, the net D4 module 336 moves to step S610 and selects and executes the credit acquisition by the “providing method”. If the operation of the “providing method” cannot be performed, the net D4 module 336 moves to step S620 and selects and executes the credit acquisition by the “request method”.

図7は、「提供方式」に対応していないプリンタユニット400を用いる場合のデータ転送の一例を示すシーケンス図である。この場合には、ネットD4モジュール336は、「要求方式」によるクレジット取得を選択して実行する。なお、図7のシーケンス図には、図3のシーケンス図と比べて、ネットD4モジュール336とプリンタD4モジュール436との間でやりとりされるデータ(コマンド)がより詳細に示されている。   FIG. 7 is a sequence diagram illustrating an example of data transfer when using the printer unit 400 that does not support the “providing method”. In this case, the net D4 module 336 selects and executes the credit acquisition by the “request method”. Note that the sequence diagram of FIG. 7 shows data (commands) exchanged between the network D4 module 336 and the printer D4 module 436 in more detail than the sequence diagram of FIG.

なお、D4プロトコルでは、元画像データのような転送データに限らず、コマンドと、その応答も、D4パケットを用いて送受信される。ただし、このようなコマンドパケットと応答パケットとは、データ転送用の論理チャンネルdchとは異なる所定の論理チャンネル(図示せず)を用いて転送される。   In the D4 protocol, not only transfer data such as original image data, but also commands and responses are transmitted and received using D4 packets. However, the command packet and the response packet are transferred using a predetermined logical channel (not shown) different from the logical channel dch for data transfer.

最初のステップS200では、ネットD4モジュール336は、オープンチャンネル(Open Channel)コマンドを、プリンタD4モジュール436に送信する。このコマンドは、論理チャンネルdch(図2)をオープンするために送信される。このようなオープンチャンネルコマンドは、任意のタイミングで発行され得る。例えば、ネットワークプリンタ200の起動時に発行されることとしてもよい。また、印刷要求に応じて発行されることとしてもよい。以下、印刷要求に応じて図7の処理が実行されると仮定して説明を行う。   In the first step S200, the net D4 module 336 transmits an open channel command to the printer D4 module 436. This command is sent to open the logical channel dch (FIG. 2). Such an open channel command can be issued at an arbitrary timing. For example, it may be issued when the network printer 200 is activated. It may be issued in response to a print request. Hereinafter, description will be made on the assumption that the processing of FIG. 7 is executed in response to a print request.

オープンチャンネルコマンドは、以下の2つのパラメータを含んでいる。
(1)要求クレジット数(Credit Requested。以下「C.R.」とも呼ぶ)
(2)最大保持クレジット数(Maximum Outstanding Credit。以下「M.O.C.」とも呼ぶ)
「C.R.」は、送信側によって新規に要求されるクレジット数に設定される。クレジットが要求されない場合には「0x0000」に設定される。ここで、プレフィックス「0x」は16進数を意味している(後述する他のパラメータについても同じ)。「M.O.C.」は、送信側が保持を要求するクレジット数に設定される。クレジットが要求されない場合には「0x0000」に設定される。ステップS200のコマンドでは、両方のパラメータが「0x0000」に設定されている。このようなパラメータ設定は、クレジットを要求しないことを意味している。このようなオープンチャンネルコマンドが発行された場合には、データ受信側は、データ送信側から要求があるまでクレジットを提供しない。なお、このようなパラメータ設定が受信側に受け入れられた論理チャンネルdchの状態は「クレジット無しモード(No Credit Mode)」とも呼ばれる。
The open channel command includes the following two parameters.
(1) Number of requested credits (Credit Requested. Also called “CR”)
(2) Maximum Outstanding Credit (hereinafter also referred to as “MOC”)
“CR” is set to the number of credits newly requested by the transmission side. If no credit is requested, it is set to “0x0000”. Here, the prefix “0x” means a hexadecimal number (the same applies to other parameters described later). “MOC” is set to the number of credits that the transmission side requests to hold. If no credit is requested, it is set to “0x0000”. In the command in step S200, both parameters are set to “0x0000”. Such parameter setting means that no credit is requested. When such an open channel command is issued, the data receiving side does not provide credit until a request is received from the data transmitting side. The state of the logical channel dch in which such parameter setting is accepted by the receiving side is also referred to as “No Credit Mode”.

次のステップS210では、プリンタD4モジュール436が、オープンチャンネル応答(Open Channel Reply)を、ネットD4モジュール336に返信する。この応答は、オープンチャンネルコマンドの結果と、提供されたクレジット数と、を含んでいる。図7のステップS210では、結果は成功(OK)であり、クレジット数は「0」である。   In the next step S210, the printer D4 module 436 returns an open channel response (Open Channel Reply) to the net D4 module 336. This response includes the result of the open channel command and the number of credits provided. In step S210 of FIG. 7, the result is success (OK), and the number of credits is “0”.

次のステップS220では、ネットD4モジュール336は、クレジット要求(Credit Request)コマンドを、プリンタD4モジュール436に送信する。このコマンドも、オープンチャンネルコマンドと同様に、「C.R.」と「M.O.C.」とを含んでいる。ステップS220のクレジット要求では、両方のパラメータが最大値(0xFFFF)に設定されている。このようなパラメータ設定は、できるだけ早く、できるだけ多くのクレジットを提供し続けることをデータ受信側に要求することを意味している。本実施例では、このようなパラメータ設定は、「提供方式」に従った動作の要求を意味している。なお、このようなパラメータ設定が受信側に受け入れられた論理チャンネルdchの状態は「無制限クレジットモード(Unlimited Credit Mode)」とも呼ばれる。   In the next step S220, the net D4 module 336 transmits a credit request command to the printer D4 module 436. This command also includes “C.R.” and “M.O.C.”, like the open channel command. In the credit request in step S220, both parameters are set to the maximum value (0xFFFF). Such parameter setting means requesting the data receiving side to continue to provide as many credits as possible as soon as possible. In this embodiment, such parameter setting means a request for operation according to the “providing method”. Note that the state of the logical channel dch in which such parameter setting is accepted by the receiving side is also referred to as “unlimited credit mode”.

次のステップS230では、プリンタD4モジュール436が、クレジット要求応答(Credit Request Reply)を、ネットD4モジュール336に返信する。この応答は、クレジットリクエストの結果を含んでいる。図7の例では、プリンタD4モジュール436は「提供方式」に対応していないので、結果は失敗(NG)に設定されている。このように、プリンタD4モジュール436は、「提供方式」に対応していない場合には、対応していないことを示す応答を、ネットD4モジュール336に返信する。   In the next step S230, the printer D4 module 436 returns a credit request response (Credit Request Reply) to the network D4 module 336. This response includes the result of the credit request. In the example of FIG. 7, the printer D4 module 436 does not support the “providing method”, so the result is set to failure (NG). As described above, when the printer D4 module 436 does not support the “providing method”, the printer D4 module 436 returns a response indicating that the printer D4 module 436 does not support the network D4 module 336.

ネットD4モジュール336は、プリンタD4モジュール436から「提供方式」に従ったクレジット提供に対応していないことを示す応答を受信したら、「要求方式」に従って動作する。   When the network D4 module 336 receives a response from the printer D4 module 436 indicating that it does not support credit provision according to the “providing method”, it operates according to the “request method”.

次のステップS240では、ネットD4モジュール336は、「要求方式」に従ったクレジット要求コマンドを、プリンタD4モジュール436に送信する。このステップS240でのクレジット要求では、「C.R.」が「0x0000」よりも大きく、最大値(0xFFFF)未満の値に設定されている。「M.O.C.」は最大値(0xFFFF)に設定されている。このようなパラメータ設定は、「C.R.」で指定された数のクレジットをデータ受信側に要求することを意味している。本実施例では、このようなパラメータ設定は、「要求方式」に従ったクレジット要求を意味している。なお、このようなパラメータ設定が受信側に受け入れられた論理チャンネルdchの状態は「制限クレジットモード(Limited Credit Mode)」とも呼ばれる。   In the next step S240, the net D4 module 336 transmits a credit request command according to the “request method” to the printer D4 module 436. In the credit request in step S240, “C.R.” is set to a value greater than “0x0000” and less than the maximum value (0xFFFF). “M.O.C.” is set to the maximum value (0xFFFF). Such parameter setting means that the number of credits designated by “C.R.” is requested from the data receiving side. In this embodiment, such parameter setting means a credit request according to the “request method”. Note that the state of the logical channel dch in which such parameter settings are accepted by the receiving side is also referred to as “limited credit mode”.

次のステップS250では、プリンタD4モジュール436が、クレジット要求応答を、ネットD4モジュール336に返信する。この応答は、クレジットリクエストの結果と、提供されたクレジット数と、を含んでいる。図7の例では、プリンタD4モジュール436は「要求方式」に対応しているので、結果が成功(OK)に設定されている。ただし、この段階では「クレジット」は「0」に設定されている。   In the next step S250, the printer D4 module 436 returns a credit request response to the network D4 module 336. This response includes the result of the credit request and the number of credits provided. In the example of FIG. 7, the printer D4 module 436 corresponds to the “request method”, so the result is set to success (OK). However, “credit” is set to “0” at this stage.

以後、ネットD4モジュール336は、1以上のクレジット提供があるまで、ステップS240と同様のクレジット要求コマンドを繰り返し送信する。そして、ネットD4モジュール336は、1以上のクレジット提供に応じて、データパケットをプリンタD4モジュール436に送信する。図7の例では、ステップS260のクレジット要求に対する応答で、1つのクレジットが提供されている(S270)。そこで、ネットD4モジュール336は、次のステップS280で、1つのデータパケットを送信する。以後、ネットD4モジュール336は、データの転送が完了するまで、クレジット要求とデータ送信とを繰り返す。   Thereafter, the net D4 module 336 repeatedly transmits a credit request command similar to that in step S240 until one or more credits are provided. Then, the net D4 module 336 transmits a data packet to the printer D4 module 436 in response to provision of one or more credits. In the example of FIG. 7, one credit is provided in response to the credit request in step S260 (S270). Therefore, the net D4 module 336 transmits one data packet in the next step S280. Thereafter, the net D4 module 336 repeats the credit request and the data transmission until the data transfer is completed.

以上のように、ネットD4モジュール336は、プリンタD4モジュール436に「提供方式」に対応しているか否かを問い合わせるとともに(図7:S220)、「提供方式」に従ったクレジット提供に対応していないことを示す応答を受信したら、「要求方式」に従って動作する。   As described above, the network D4 module 336 inquires of the printer D4 module 436 whether or not the “providing method” is supported (FIG. 7: S220), and supports the credit provision according to the “providing method”. If a response indicating that there is no message is received, the operation is performed according to the “request method”.

図8は、データ転送の別の例を示すシーケンス図である。図7のシーケンス図との差違は、このシーケンス図が、プリンタユニット400が「提供方式」に対応している場合を示している点である。この場合には、ネットD4モジュール336は、「提供方式」によるクレジット取得を選択して実行する。なお、図8のシーケンス図には、図4と図5とのシーケンス図と比べて、ネットD4モジュール336とプリンタD4モジュール436との間でやりとりされるデータ(コマンド)がより詳細に示されている。   FIG. 8 is a sequence diagram illustrating another example of data transfer. The difference from the sequence diagram of FIG. 7 is that this sequence diagram shows a case where the printer unit 400 corresponds to the “providing method”. In this case, the net D4 module 336 selects and executes the credit acquisition by the “providing method”. Note that the sequence diagram of FIG. 8 shows data (commands) exchanged between the network D4 module 336 and the printer D4 module 436 in more detail than the sequence diagrams of FIGS. Yes.

最初のステップS100、S110、S120は、図7のステップS200、S210、S220と、それぞれ同じである。   The first steps S100, S110, and S120 are the same as steps S200, S210, and S220 in FIG. 7, respectively.

次のステップS130では、プリンタD4モジュール436が、クレジット要求応答を、ネットD4モジュール336に返信する。図8の例では、プリンタD4モジュール436は「提供方式」に対応しているので、結果は成功(OK)に設定されている。このように、プリンタD4モジュール436は、「提供方式」に対応している場合には、対応していることを示す応答を、ネットD4モジュール336に返信する。   In the next step S130, the printer D4 module 436 returns a credit request response to the net D4 module 336. In the example of FIG. 8, since the printer D4 module 436 corresponds to the “providing method”, the result is set to success (OK). As described above, when the printer D4 module 436 supports the “providing method”, the printer D4 module 436 returns a response indicating that the printer D4 module 436 supports the network D4 module 336.

ネットD4モジュール336は、プリンタD4モジュール436から「提供方式」に従ったクレジット提供に対応していることを示す応答を受信したら、「提供方式」に従って動作する。具体的には、ネットD4モジュール336は、クレジット要求を送信せずに、プリンタD4モジュール436からの自発的なクレジット提供を待つ。そして、ネットD4モジュール336は、クレジット提供に応じてデータパケットを送信する。   When the network D4 module 336 receives a response from the printer D4 module 436 indicating that it supports credit provision according to the “providing method”, the net D4 module 336 operates according to the “providing method”. Specifically, the net D4 module 336 waits for spontaneous credit provision from the printer D4 module 436 without transmitting a credit request. Then, the net D4 module 336 transmits a data packet in response to the credit provision.

図8の例では、次のステップS140で、プリンタD4モジュール436がクレジットコマンドを送信している。このコマンドは、データ送信側にクレジットを提供するためのコマンドである。このクレジットコマンドは、提供されるクレジット数を含んでいる。ステップS140のクレジットコマンドでは、クレジットが「1」に設定されている。このクレジットコマンドを受信したネットD4モジュール336は、クレジットコマンドを受け入れたことを示すクレジット応答(Credit Reply)をプリンタD4モジュール436に送信し(ステップS150)、次のステップS160で、1つのデータパケットを送信する。以後、ネットD4モジュール336は、データの転送が完了するまで、クレジットの提供までの待機と、クレジット提供に応じたデータ送信とを繰り返す。   In the example of FIG. 8, the printer D4 module 436 transmits a credit command in the next step S140. This command is a command for providing credit to the data transmission side. This credit command includes the number of credits provided. In the credit command in step S140, the credit is set to “1”. The network D4 module 336 that has received the credit command transmits a credit response (Credit Reply) indicating that the credit command has been accepted to the printer D4 module 436 (step S150). In the next step S160, one data packet is transmitted. Send. Thereafter, the net D4 module 336 repeats the standby until the provision of the credit and the data transmission corresponding to the provision of the credit until the data transfer is completed.

このように、ネットD4モジュール336は、プリンタD4モジュール436に「提供方式」に対応しているか否かを問い合わせるとともに(図8:S120)、「提供方式」に従ったクレジット提供に対応していることを示す応答を受信したら、「提供方式」に従って動作する。   As described above, the network D4 module 336 inquires of the printer D4 module 436 as to whether or not the “providing method” is supported (FIG. 8: S120), and supports the credit provision according to the “providing method”. If a response indicating that is received, it operates according to the “providing method”.

以上のように、本実施例では、ネットD4モジュール336は、プリンタD4モジュール436に、「提供方式」での動作が可能であるか否かを問い合わせるとともに、「提供方式」で動作可能である場合には、「提供方式」によるクレジット取得を選択して実行し、「提供方式」で動作できない場合には、「要求方式」によるクレジット取得を選択して実行する。従って、ネットワークユニット300は、「提供方式」に対応したプリンタユニットと、「提供方式」には対応せずに「要求方式」に対応したプリンタユニットとの、それぞれに対して適切なクレジット取得方式で動作することができる。その結果、利用可能なプリンタユニットの構成の自由度を高めることが可能となる。   As described above, in the present embodiment, the network D4 module 336 inquires of the printer D4 module 436 whether or not the operation in the “providing method” is possible, and is operable in the “providing method”. The credit acquisition by the “providing method” is selected and executed, and when the operation cannot be performed by the “providing method”, the credit acquisition by the “request method” is selected and executed. Accordingly, the network unit 300 uses an appropriate credit acquisition method for each of the printer unit corresponding to the “providing method” and the printer unit corresponding to the “request method” without corresponding to the “providing method”. Can work. As a result, it is possible to increase the degree of freedom in the configuration of available printer units.

また、本実施例では、ネットワークユニット300とプリンタユニット400との間がUSBで接続されている。このように、接続インターフェースとして、パーソナルコンピュータとプリンタとの間の接続インターフェースとしてしばしば利用されるUSBを採用すれば、パーソナルコンピュータ用のプリンタを容易にプリンタユニット400として利用することが可能となる。また、特にこの場合には、プリンタの中には「提供方式」に対応せずに「要求方式」に対応しているものが多い。ただし、ネットワークユニット300はプリンタユニットに合わせて「提供方式」と「要求方式」との一方を選択可能であるので、このようなプリンタを容易にプリンタユニット400として利用できる。   In this embodiment, the network unit 300 and the printer unit 400 are connected by USB. As described above, if the USB, which is often used as a connection interface between a personal computer and a printer, is adopted as the connection interface, a printer for a personal computer can be easily used as the printer unit 400. Particularly in this case, many printers support the “request method” instead of the “providing method”. However, since the network unit 300 can select one of “providing method” and “request method” according to the printer unit, such a printer can be easily used as the printer unit 400.

B.変形例:
なお、上記各実施例における構成要素の中の、独立クレームでクレームされた要素以外の要素は、付加的な要素であり、適宜省略可能である。また、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
B. Variations:
In addition, elements other than the elements claimed in the independent claims among the constituent elements in each of the above embodiments are additional elements and can be omitted as appropriate. The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

変形例1:
上記各実施例において、プリンタユニット400(プリンタD4モジュール436)による「提供方式」での動作が可能であるか否かの問い合わせ方法としては、クレジットリクエストコマンド(図7:S220、図8:S120)を用いる方法に限らず、任意の方法を採用可能である。例えば、オープンチャンネルコマンド(図7:S200、図8:S100)を用いて問い合わせる方法を採用してもよい。この場合には、ネットD4モジュール336は、オープンチャンネルコマンドにおいて、「C.R.」と「M.O.C.」との両方のパラメータを最大値(0xFFFF)に設定すればよい。
Modification 1:
In each of the embodiments described above, a credit request command (FIG. 7: S220, FIG. 8: S120) is used as a method for inquiring whether or not the operation by the “providing method” by the printer unit 400 (printer D4 module 436) is possible. Any method can be adopted without being limited to the method using. For example, a method of inquiring using an open channel command (FIG. 7: S200, FIG. 8: S100) may be adopted. In this case, the net D4 module 336 may set both the “CR” and “MOC” parameters to the maximum value (0xFFFF) in the open channel command.

同様に、このような問い合わせに対する応答方法としては、クレジットリクエスト応答(図7:S230、図8:S130)を用いる方法に限らず、任意の方法を採用可能である。例えば、上述のようなオープンチャンネルコマンドを用いた問い合わせに対しては、オープンチャンネル応答(図7:S210、図8:S110)を用いて応答する方法を採用可能である。この場合には、プリンタD4モジュール436は、「提供方式」に対応している場合には、結果が成功(OK)であるオープンチャンネル応答を返信すればよく、また、「提供方式」に対応していない場合には、結果が失敗(NG)であるオープンチャンネル応答を返信すればよい。   Similarly, the response method for such an inquiry is not limited to the method using the credit request response (FIG. 7: S230, FIG. 8: S130), and any method can be adopted. For example, a method of responding to an inquiry using an open channel command as described above using an open channel response (FIG. 7: S210, FIG. 8: S110) can be employed. In this case, if the printer D4 module 436 supports the “providing method”, the printer D4 module 436 may return an open channel response indicating that the result is success (OK), and also supports the “providing method”. If not, an open channel response with a failure (NG) result may be returned.

変形例2:
上記各実施例において、プリンタユニット400が「提供方式」に対応しているか否かに関する問い合わせのタイミングとしては、データ転送前の任意のタイミングを採用可能である。例えば、ネットD4モジュール336が、ネットワークプリンタ200の起動後に、印刷要求の有無に拘わらずに問い合わせることとしてもよい。また、ネットD4モジュール336は、一度問い合わせをした後は、再度の問い合わせをせずに、問い合わせの応答に応じて選択されたクレジット取得方式を継続して利用することが好ましい。ここで、ネットワークユニット300に不揮発性メモリ(図示せず)を設け、ネットD4モジュール336が、不揮発性メモリに選択結果を格納してもよい。こうすれば、ネットD4モジュール336は、ネットワークプリンタ200が再起動された場合にも、問い合わせをせずに、不揮発性メモリに格納された適切なクレジット取得方式で動作することができる。
Modification 2:
In each of the above embodiments, any timing before data transfer can be adopted as the timing of the inquiry regarding whether or not the printer unit 400 is compatible with the “providing method”. For example, the network D4 module 336 may inquire after the network printer 200 is activated regardless of whether or not there is a print request. Moreover, it is preferable that the net D4 module 336 continues to use the credit acquisition method selected according to the response to the inquiry without making an inquiry again after making an inquiry. Here, a nonvolatile memory (not shown) may be provided in the network unit 300, and the net D4 module 336 may store the selection result in the nonvolatile memory. In this way, even when the network printer 200 is restarted, the net D4 module 336 can operate with an appropriate credit acquisition method stored in the non-volatile memory without making an inquiry.

また、上記各実施例において、ネットワークプリンタ200のユーザが、プリンタユニット400を他のプリンタユニットに交換できる構成を採用してもよい。このような構成としては、例えば、図1のUSBコネクタ462が着脱可能である構成を採用可能である。ここで、ネットD4モジュール336は、ネットワークユニット300にプリンタユニット400が接続される毎に、問い合わせを行うことが好ましい。こうすれば、ネットD4モジュール336は、プリンタユニット400が他の種類のプリンタユニットに交換された場合でも、適切なクレジット取得方式で動作することができる。   In each of the above embodiments, a configuration in which the user of the network printer 200 can replace the printer unit 400 with another printer unit may be employed. As such a configuration, for example, a configuration in which the USB connector 462 of FIG. 1 is detachable can be adopted. Here, it is preferable that the network D4 module 336 makes an inquiry every time the printer unit 400 is connected to the network unit 300. In this way, the net D4 module 336 can operate with an appropriate credit acquisition method even when the printer unit 400 is replaced with another type of printer unit.

変形例3:
上記各実施例において、ネットワークプリンタ200によって受信される印刷要求の形式としては、LPRを利用する形式に限らず、任意の形式を採用可能である。例えば、ネットワークプリンタ200をUPnP(Universal Plug and Play。UPnPは、UPnP Implementers Corporationの商標)対応のネットワーク装置として構成することも可能である。このような構成としては、例えば、以下の構成を採用可能である。ネットワークユニット300は、LAN上の他の装置(例えば、パーソナルコンピュータ100)からUPnPのプロトコルに従った印刷用のメッセージを受信する。さらに、ネットワークユニット300は、このメッセージをプリンタユニット400に転送する。プリンタユニット400は、受信したメッセージに従って印刷を実行する。ここで、ネットD4モジュール336とプリンタD4モジュール436とは、印刷用のメッセージを送受信する。
Modification 3:
In each of the above embodiments, the format of the print request received by the network printer 200 is not limited to a format that uses LPR, and any format can be adopted. For example, the network printer 200 can be configured as a network device compatible with UPnP (Universal Plug and Play, UPnP is a trademark of UPnP Implementers Corporation). As such a configuration, for example, the following configuration can be adopted. The network unit 300 receives a message for printing according to the UPnP protocol from another device (for example, the personal computer 100) on the LAN. Further, the network unit 300 transfers this message to the printer unit 400. The printer unit 400 executes printing according to the received message. Here, the network D4 module 336 and the printer D4 module 436 transmit and receive printing messages.

変形例4:
上記各実施例において、ネットD4モジュール336とプリンタD4モジュール436との間でクレジットに従って送受信されるデータとしては、元画像データや印刷用のメッセージに限らず、プリンタユニット400による印刷の制御に利用される任意の制御データを採用可能である。
Modification 4:
In each of the above embodiments, the data transmitted / received between the network D4 module 336 and the printer D4 module 436 according to the credit is not limited to the original image data and the print message, but is used for printing control by the printer unit 400. Arbitrary control data can be adopted.

変形例5:
上記各実施例では、D4プロトコルが利用されているが、D4プロトコルに限らず、クレジットに従ってデータパケットの転送が行われる任意の通信プロトコルに、本発明を適用することができる。
Modification 5:
In each of the above embodiments, the D4 protocol is used. However, the present invention is not limited to the D4 protocol but can be applied to any communication protocol in which data packets are transferred according to credits.

変形例6:
上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えるようにしてもよい。例えば、図2のUSB制御モジュール338の機能を、論理回路を有するハードウェア回路によって実現することとしてもよい。
Modification 6:
In each of the above embodiments, a part of the configuration realized by hardware may be replaced with software, and conversely, a part of the configuration realized by software may be replaced by hardware. . For example, the function of the USB control module 338 in FIG. 2 may be realized by a hardware circuit having a logic circuit.

なお、本発明の機能の一部または全部がソフトウェアで実現される場合には、そのソフトウェア(コンピュータプログラム)は、コンピュータ読み取り可能な記録媒体に格納された形で提供することができる。この発明において、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスクやCD−ROMのような携帯型の記録媒体に限らず、各種のRAMやROM等のコンピュータ内の内部記憶装置や、ハードディスク等のコンピュータに固定されている外部記憶装置も含んでいる。   When part or all of the functions of the present invention are realized by software, the software (computer program) can be provided in a form stored in a computer-readable recording medium. In the present invention, the “computer-readable recording medium” is not limited to a portable recording medium such as a flexible disk or a CD-ROM, but an internal storage device in a computer such as various RAMs and ROMs, a hard disk, and the like. An external storage device fixed to the computer is also included.

本発明の実施例を適用するネットワークシステムの構成を示す概略図である。It is the schematic which shows the structure of the network system to which the Example of this invention is applied. ROM330430を中心としたネットワークプリンタ200の構成を示すブロック図である。2 is a block diagram illustrating a configuration of a network printer 200 centered on a ROM 330430. FIG. 論理チャンネルdchにおけるクレジットの取得方式の一例の概要を示すシーケンス図である。It is a sequence diagram which shows the outline | summary of an example of the acquisition method of the credit in the logical channel dch. 提供方式に従ったデータ転送の一例を示すシーケンス図である。It is a sequence diagram which shows an example of the data transfer according to a provision system. 提供方式に従ったデータ転送の別の例を示すシーケンス図である。It is a sequence diagram which shows another example of the data transfer according to a provision system. クレジット取得方式の選択処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the selection process of a credit acquisition system. 「提供方式」に対応していないプリンタユニット400を用いる場合のデータ転送の一例を示すシーケンス図である。FIG. 11 is a sequence diagram illustrating an example of data transfer when using a printer unit 400 that does not support the “providing method”. データ転送の別の例を示すシーケンス図である。It is a sequence diagram which shows another example of data transfer.

符号の説明Explanation of symbols

10…ネットワークシステム
100…パーソナルコンピュータ
100D…プリンタドライバ
200…ネットワークプリンタ
300…ネットワークユニット
320…RAM
330…ROM
332…ネットワークモジュール
334…プリントサーバモジュール
336…D4プロトコル処理モジュール(ネットD4モジュール)
338…USB制御モジュール
340…ネットワーク制御部
342…コネクタ
350…USBホスト制御部
352…ルートハブ
354…USBコネクタ
400…プリンタユニット
410…中央制御部
420…RAM
430…ROM
434…プリンタ機能モジュール
436…D4プロトコル処理モジュール(プリンタD4モジュール)
438…USB制御モジュール
440…印刷エンジン
460…USBデバイス制御部
462…USBコネクタ
DESCRIPTION OF SYMBOLS 10 ... Network system 100 ... Personal computer 100D ... Printer driver 200 ... Network printer 300 ... Network unit 320 ... RAM
330 ... ROM
332 ... Network module 334 ... Print server module 336 ... D4 protocol processing module (net D4 module)
338: USB control module 340 ... Network control unit 342 ... Connector 350 ... USB host control unit 352 ... Root hub 354 ... USB connector 400 ... Printer unit 410 ... Central control unit 420 ... RAM
430 ... ROM
434 ... Printer function module 436 ... D4 protocol processing module (printer D4 module)
438 ... USB control module 440 ... Print engine 460 ... USB device control unit 462 ... USB connector

Claims (4)

印刷を実行する印刷装置に、ネットワーク上のクライアントからの印刷要求に応じて、印刷に利用される制御データを送信するネットワーク装置であって、
パケットを用いた通信プロトコルに従って前記制御データを送信する第1プロトコル処理部を有し、
前記印刷装置は、前記通信プロトコルに従って前記制御データを受信する第2プロトコル処理部を有し、
前記第1プロトコル処理部は、データ転送用のクレジットの取得モードとして、
(i)クレジット要求を前記第2プロトコル処理部に送信することによってクレジットを取得する要求モードと、
(ii)クレジット要求の有無に拘わらずに前記第2プロトコル処理部によって自発的に前記第1プロトコル処理部に提供されたクレジットを取得する提供モードと、を有し、
前記第1プロトコル処理部は、前記第2プロトコル処理部に、前記提供モードで動作可能か否かを問い合わせるとともに、
前記提供モードで動作可能な場合には、前記提供モードによるクレジット取得を選択して実行し、
前記提供モードで動作できない場合には、前記要求モードによるクレジット取得を選択して実行する、
ネットワーク装置。
A network device that transmits control data used for printing to a printing device that executes printing in response to a print request from a client on the network,
A first protocol processing unit for transmitting the control data according to a communication protocol using a packet;
The printing apparatus includes a second protocol processing unit that receives the control data according to the communication protocol,
The first protocol processing unit, as a credit transfer mode for data transfer,
(I) a request mode for acquiring credits by transmitting a credit request to the second protocol processing unit;
(Ii) a providing mode in which the credit provided to the first protocol processing unit is voluntarily acquired by the second protocol processing unit regardless of the presence or absence of a credit request;
The first protocol processing unit inquires of the second protocol processing unit whether or not it is operable in the providing mode, and
When operable in the providing mode, select and execute credit acquisition in the providing mode,
If it is not possible to operate in the provision mode, select and execute credit acquisition in the request mode,
Network device.
請求項1に記載のネットワーク装置であって、
前記ネットワーク装置と前記印刷装置との間はUSBで接続され、
前記ネットワーク装置がUSBホストとして機能し、
前記印刷装置はUSBデバイスとして機能し、
前記通信プロトコルは、下位層のプロトコルとしてUSBプロトコルを利用する、
ネットワーク装置。
The network device according to claim 1,
The network device and the printing device are connected by USB,
The network device functions as a USB host;
The printing device functions as a USB device;
The communication protocol uses the USB protocol as a lower layer protocol.
Network device.
ネットワーク上のクライアントからの印刷要求に応じて印刷を実行するネットワークプリンタであって、
請求項1または請求項2に記載のネットワーク装置と、前記印刷装置と、を備える、ネットワークプリンタ。
A network printer that performs printing in response to a print request from a client on the network,
A network printer comprising the network device according to claim 1 and the printing device.
印刷を実行する印刷装置と、ネットワーク上のクライアントからの印刷要求に応じて印刷に利用される制御データを前記印刷装置に送信するネットワーク装置と、を備えるネットワークプリンタの制御方法であって、
(A)前記ネットワーク装置が、前記印刷装置からデータ転送用のクレジットを取得する処理を実行する工程を備え、
前記クレジットの取得処理は、
(i)前記ネットワーク装置が、クレジット要求を前記印刷装置に送信することによってクレジットを取得する要求モードと、
(ii)前記ネットワーク装置が、クレジット要求の有無に拘わらずに前記印刷装置によって自発的に前記ネットワーク装置に提供されたクレジットを取得する提供モードと、を有し、
前記工程(A)は、
(A1)前記ネットワーク装置が、前記印刷装置に、前記提供モードで動作可能か否かを問い合わせる工程と、
(A2)前記提供モードで動作可能な場合には、前記ネットワーク装置が、前記提供モードによるクレジット取得を選択して実行し、
前記提供モードで動作できない場合には、前記ネットワーク装置が、前記要求モードによるクレジット取得を選択して実行する工程と、を含む、
制御方法。
A network printer control method comprising: a printing apparatus that executes printing; and a network apparatus that transmits control data used for printing to the printing apparatus in response to a print request from a client on the network,
(A) The network device includes a step of executing a process of acquiring a data transfer credit from the printing device,
The credit acquisition process includes:
(I) a request mode in which the network device acquires a credit by transmitting a credit request to the printing device;
(Ii) the network device has a provision mode in which the printing device voluntarily acquires credit provided to the network device regardless of whether or not a credit request is made;
The step (A)
(A1) the network device inquires of the printing device whether or not it can operate in the providing mode;
(A2) If the network device is operable in the providing mode, the network device selects and executes credit acquisition in the providing mode;
If the network device is unable to operate in the provision mode, the network device selects and executes credit acquisition in the request mode.
Control method.
JP2005302899A 2005-10-18 2005-10-18 Acquiring credit for data communication in network printers Expired - Fee Related JP4665705B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005302899A JP4665705B2 (en) 2005-10-18 2005-10-18 Acquiring credit for data communication in network printers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005302899A JP4665705B2 (en) 2005-10-18 2005-10-18 Acquiring credit for data communication in network printers

Publications (2)

Publication Number Publication Date
JP2007114847A JP2007114847A (en) 2007-05-10
JP4665705B2 true JP4665705B2 (en) 2011-04-06

Family

ID=38096988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005302899A Expired - Fee Related JP4665705B2 (en) 2005-10-18 2005-10-18 Acquiring credit for data communication in network printers

Country Status (1)

Country Link
JP (1) JP4665705B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1031640A (en) * 1996-07-16 1998-02-03 Nec Corp Image transfer device
JPH11252119A (en) * 1998-02-26 1999-09-17 Brother Ind Ltd Network adaptor and terminal system provided with it
JP2004192238A (en) * 2002-12-10 2004-07-08 Canon Inc Printing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1031640A (en) * 1996-07-16 1998-02-03 Nec Corp Image transfer device
JPH11252119A (en) * 1998-02-26 1999-09-17 Brother Ind Ltd Network adaptor and terminal system provided with it
JP2004192238A (en) * 2002-12-10 2004-07-08 Canon Inc Printing system

Also Published As

Publication number Publication date
JP2007114847A (en) 2007-05-10

Similar Documents

Publication Publication Date Title
JP4508114B2 (en) Network relay control for network type plug and play
US8006287B2 (en) Network apparatus and control method therefor
US10802779B2 (en) Print processing system and method having print server converts document data into print data and to store the print data into plural storage servers for printing at image processing apparatus
JP5178230B2 (en) Information processing apparatus, information processing method, and program
JP2005198298A (en) Control system of network image forming apparatus and its data receiving controlling method
JP2007164485A (en) Network relay control corresponding to network type plug and play
JP5899713B2 (en) Printing apparatus and printing method
US20040227972A1 (en) Printing apparatus and canceling method
JP4665705B2 (en) Acquiring credit for data communication in network printers
JP2007156691A (en) Network relay compatible with network-type plug and play
JP2009015716A (en) Image forming apparatus by multiple ip addresses
US8270017B2 (en) Network card device for determining permissibility for processing data from a data source and method of controlling the same
JP4765496B2 (en) Network device corresponding to network type plug and play and control method thereof
JP3800219B2 (en) Network system, printer, and information storage medium
JP5899712B2 (en) Printing apparatus and printing method
JP4139541B2 (en) Printer and printer job data transfer method
JP4640147B2 (en) Network relay control for network type plug and play
JP2016045697A (en) Print control unit, printing system, control method of print control unit, and program
JP2004118868A (en) Information processor, information storage medium, and method of processing information
JP4307358B2 (en) Protocol conversion apparatus, control method and control program for the apparatus
JP2008085778A (en) Information communication system, receiving device, transmitting device, reception control program and transmission control program
JP2007172196A (en) Management for data in network device
JP4243831B2 (en) Printer and printer job data transfer method
JP2007072793A (en) Control of network device responding to network type plug and play
JP2006209534A (en) Printing controller and printing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100330

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101227

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

Free format text: PAYMENT UNTIL: 20140121

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees