JP2009059018A - Information processing system, information processor and data transfer method for information processing system - Google Patents

Information processing system, information processor and data transfer method for information processing system Download PDF

Info

Publication number
JP2009059018A
JP2009059018A JP2007223560A JP2007223560A JP2009059018A JP 2009059018 A JP2009059018 A JP 2009059018A JP 2007223560 A JP2007223560 A JP 2007223560A JP 2007223560 A JP2007223560 A JP 2007223560A JP 2009059018 A JP2009059018 A JP 2009059018A
Authority
JP
Japan
Prior art keywords
transfer
data
information processing
completion
computer
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.)
Withdrawn
Application number
JP2007223560A
Other languages
Japanese (ja)
Inventor
Masaya Kobayashi
将也 小林
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 JP2007223560A priority Critical patent/JP2009059018A/en
Publication of JP2009059018A publication Critical patent/JP2009059018A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce time required for data transfer to a first device from a third device through a second device. <P>SOLUTION: This information processing system 10 has: a computer 100 having a first host device; a printer 210 having a first target device connected to the first host device through a USB (Universal Serial Bus), and having a second host device; a memory card drive 260 having a second target device connected to the second host device through a USB; a transfer instruction means 290 for instructing data transfer to the printer 210 from the memory card drive 260 and data transfer to the computer 100 from the printer 210; and a transfer completion detection means 280 for detecting completion of the data transfer to the computer 100 from the printer 210. The transfer instruction means 290 instructs the transfer of data to be next transferred to the printer 210 without waiting the completion of the data transfer to the computer 100. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、情報処理システム、情報処理装置および情報処理システムのデータ転送方法に関する。   The present invention relates to an information processing system, an information processing apparatus, and a data transfer method for the information processing system.

コンピュータと周辺機器装置とを接続するためのインターフェイス規格として、USB(Universal Serial Bus)が知られている。USBは、拡張性が高く、機能実装も容易であり、異なる装置間においても互換性や親和性が高いことから、コンピュータと周辺装置間のように、ユーザにより断続可能な接続に加え、周辺装置内における異なるユニット装置間の接続にも用いられている。このようなUSBによる情報データの転送においては、下記特許文献1に示すように、CBW(Command Block Wrapper)による「コマンド」と、「データ」と、CSW(Command Status Wrapper)による「ステータス」との3つのフェーズから成るプロトコルが定義され、これらのプロトコルに従い大量のデータが転送される。尚、CSWは、データの転送が正常に行われたかどうか、ステータスを返信するためのコマンドである。   USB (Universal Serial Bus) is known as an interface standard for connecting a computer and a peripheral device. USB has high expandability, easy function implementation, and high compatibility and affinity between different devices. Therefore, in addition to connections that can be interrupted by the user, such as between a computer and peripheral devices, peripheral devices It is also used for connection between different unit devices. In such information data transfer by USB, as shown in Patent Document 1 below, “command” by CBW (Command Block Wrapper), “data”, and “status” by CSW (Command Status Wrapper) Protocols consisting of three phases are defined, and a large amount of data is transferred according to these protocols. The CSW is a command for returning a status as to whether or not the data transfer has been normally performed.

特開2002−344538号公報JP 2002-344538 A

しかしながら、3つの装置間でデータを順次転送する場合、それぞれの装置間において上記のプロトコルに従いデータ転送されることから、一方の装置間において上記した3つのフェーズで転送されるのを待って、他方の装置間での転送が開始されるため、転送すべきデータが大量の場合、データの転送には多くの時間を要した。   However, when data is sequentially transferred between the three devices, the data is transferred between the devices in accordance with the above protocol. Since the transfer between the devices starts, when the amount of data to be transferred is large, it takes a long time to transfer the data.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.

[適用例1]
本適用例にかかる情報処理システムは、第1ホストデバイスを有する第1装置と、シリアルバスを介して前記第1ホストデバイスに接続された第1ターゲットデバイスを有すると共に、第2ホストデバイスを有する第2装置と、シリアルバスを介して前記第2ホストデバイスに接続された第2ターゲットデバイスを有する第3装置と、前記第3装置から前記第2装置へのデータ部及び該データ部の転送に関わるステータス情報の転送を指示する第1の指示手段と、前記第2装置から前記第1装置へのデータ部の転送を指示する第2の指示手段と、前記第3装置から前記第2装置へのデータ部の転送の完了を検出する検出手段とを備え、前記第1の指示手段により1のデータ部及び該1のデータ部の転送に関わるステータス情報の転送指示が行われた場合において、前記第2の指示手段は、前記検出手段が前記1のデータ部の転送の完了を検出した際に、前記1のデータ部の転送を指示すると共に、前記第1の指示手段は、前記1のデータ部の前記第1装置への転送の完了を待つことなく、前記1のデータ部の転送に関わるステータス情報の転送を指示することを特徴とする。
[Application Example 1]
An information processing system according to this application example includes a first apparatus having a first host device, a first target device connected to the first host device via a serial bus, and a second host device having a second host device. Two devices, a third device having a second target device connected to the second host device via a serial bus, a data portion from the third device to the second device, and transfer of the data portion First instruction means for instructing transfer of status information, second instruction means for instructing transfer of a data portion from the second apparatus to the first apparatus, and from the third apparatus to the second apparatus Detection means for detecting completion of transfer of the data portion, and the first instruction means issues an instruction to transfer one data portion and status information related to the transfer of the one data portion. In this case, the second instruction means instructs the transfer of the first data part when the detection means detects the completion of the transfer of the first data part, and the first instruction means. Is configured to instruct transfer of status information related to transfer of the first data part without waiting for completion of transfer of the first data part to the first device.

このような構成によれば、第3の装置から第1の装置へ転送されるデータは、最初に第3の装置から第2の装置へ転送され、検出手段により第2の装置への転送の完了が検出された後、次に第2の装置から第1の装置へ転送されると共に、第1の装置への転送の完了を待つことなく、次に転送されるべきデータが第3の装置から第2の装置へ転送される。従って、第2の装置から第1の装置へのデータ転送と、第3の装置から第2の装置へのデータ転送を並行して実行できるため、第3の装置から第2の装置を経て第1の装置へ順次転送するのに要する時間を短縮できる。   According to such a configuration, the data transferred from the third device to the first device is first transferred from the third device to the second device, and is transferred to the second device by the detection means. After completion is detected, the next data is transferred from the second device to the first device, and the data to be transferred next is transferred to the third device without waiting for completion of the transfer to the first device. To the second device. Accordingly, since data transfer from the second device to the first device and data transfer from the third device to the second device can be executed in parallel, the third device passes through the second device and passes through the second device. The time required for sequential transfer to one apparatus can be shortened.

[適用例2]
上記適用例にかかる情報処理システムにおいて、前記シリアルバスは、USBであっても良い。
[Application Example 2]
In the information processing system according to the application example, the serial bus may be a USB.

[適用例3]
上記適用例にかかる情報処理システムにおいて、前記データ部の転送に関わるステータス情報は、CSWであっても良い。
[Application Example 3]
In the information processing system according to the application example, the status information related to the transfer of the data portion may be CSW.

[適用例4]
本適用例にかかる情報処理装置は、第1ホストデバイスを有するコンピュータと接続された情報処理装置であって、前記第1ホストデバイスとシリアルバスを介して接続された第1ターゲットデバイスと、第2ホストデバイスとからなる情報処理手段と、前記第2のホストデバイスとシリアルバスを介して接続された第2ターゲットデバイスからなるデータ読取り手段と、前記データ読取り手段から前記情報処理手段へのデータ部及び該データ部の転送に関わるステータス情報の転送を指示する第1の指示手段と、前記情報処理装置から前記コンピュータへのデータ部の転送を指示する第2の指示手段と、前記データ読取り手段から前記情報処理手段へのデータ部の転送の完了を検出する検出手段とを備え、前記第1の指示手段により1のデータ部及び該1のデータ部の転送に関わるステータス情報の転送指示が行われた場合において、前記第2の指示手段は、前記検出手段が前記1のデータ部の転送の完了を検出した際に、前記1のデータ部の転送を指示すると共に、前記第1の指示手段は、前記1のデータ部の前記コンピュータへの転送の完了を待つことなく、前記1のデータ部の転送に関わるステータス情報の転送を指示することを特徴とする。
[Application Example 4]
An information processing apparatus according to this application example is an information processing apparatus connected to a computer having a first host device, the first target device connected to the first host device via a serial bus, and the second An information processing means comprising a host device; a data reading means comprising a second target device connected to the second host device via a serial bus; a data section from the data reading means to the information processing means; A first instructing unit for instructing transfer of status information relating to the transfer of the data unit; a second instructing unit for instructing transfer of the data unit from the information processing apparatus to the computer; Detecting means for detecting completion of transfer of the data part to the information processing means, and the first instruction means The second instruction means detects the completion of the transfer of the first data section when the transfer instruction of status information related to the transfer of the data section and the first data section is performed. In addition to instructing transfer of the one data portion, the first instruction means does not wait for completion of transfer of the one data portion to the computer, and status information relating to transfer of the one data portion It is characterized by instructing the transfer.

このような構成によれば、データ読取り手段からコンピュータへ転送されるデータは、最初にデータ読取り手段から情報処理手段へ転送され、検出手段により情報処理手段への転送の完了が検出された後、次に情報処理手段からコンピュータへ転送されると共に、コンピュータへの転送の完了を待つことなく、次に転送されるべきデータがデータ読取り手段から情報処理手段へ転送される。従って、情報処理手段からコンピュータへのデータ転送と、データ読取り手段から情報処理手段へのデータ転送を並行して実行できるため、データ読取り手段から情報処理手段を経てコンピュータへ順次転送するのに要する時間を短縮できる。   According to such a configuration, the data transferred from the data reading unit to the computer is first transferred from the data reading unit to the information processing unit, and after completion of transfer to the information processing unit is detected by the detection unit, Next, the data is transferred from the information processing means to the computer, and the data to be transferred next is transferred from the data reading means to the information processing means without waiting for completion of the transfer to the computer. Therefore, since the data transfer from the information processing means to the computer and the data transfer from the data reading means to the information processing means can be executed in parallel, the time required for the sequential transfer from the data reading means to the computer via the information processing means Can be shortened.

[適用例5]
本適用例にかかる情報処理システムのデータ転送方法は、一方のシリアルバスに接続された第1ホストデバイスを有する第1装置と、前記一方のシリアルバスに接続された第1ターゲットデバイスを有すると共に、他方のシリアルバスに接続された第2ホストデバイスを有する第2装置と、前記他方のシリアルバスに接続された第2ターゲットデバイスを有する第3装置とを備える情報処理システムのデータ転送方法であって、前記第3装置に保持され前記第1装置へ転送されるべき1のデータを前記第2装置へ転送する工程と、前記第2装置への前記1のデータの転送の完了を検出する工程と、前記転送の完了を検出した場合、前記第2装置に転送された前記1のデータを前記第1装置へ転送する工程と、前記1のデータの前記第1装置への転送の完了を待つことなく、前記第3装置に保持され前記第1装置へ転送されるべき次のデータを前記第2装置への転送する工程とを備えることを特徴とする。
[Application Example 5]
A data transfer method of an information processing system according to this application example includes a first device having a first host device connected to one serial bus, and a first target device connected to the one serial bus, A data transfer method for an information processing system comprising: a second device having a second host device connected to the other serial bus; and a third device having a second target device connected to the other serial bus. A step of transferring one data held in the third device and transferred to the first device to the second device, and a step of detecting completion of the transfer of the first data to the second device; , When the completion of the transfer is detected, a step of transferring the first data transferred to the second device to the first device; and a step of transferring the first data to the first device Without waiting for completion of the transfer, characterized in that it comprises a step of transferring the next data to be transferred is held in the third device to the first device to the second device.

このような方法によれば、第3の装置から第1の装置へ転送されるデータは、最初に第3の装置から第2の装置へ転送され、検出手段により第2の装置への転送の完了が検出された後、次に第2の装置から第1の装置へ転送されると共に、第1の装置への転送の完了を待つことなく、次に転送されるべきデータが第3の装置から第2の装置へ転送される。従って、第2の装置から第1の装置へのデータ転送と、第3の装置から第2の装置へのデータ転送を並行して実行できるため、第3の装置から第2の装置を経て第1の装置へ順次転送するのに要する時間を短縮できる。   According to such a method, data transferred from the third device to the first device is first transferred from the third device to the second device, and is transferred to the second device by the detecting means. After completion is detected, the next data is transferred from the second device to the first device, and the data to be transferred next is transferred to the third device without waiting for completion of the transfer to the first device. To the second device. Accordingly, since data transfer from the second device to the first device and data transfer from the third device to the second device can be executed in parallel, the third device passes through the second device and passes through the second device. The time required for sequential transfer to one apparatus can be shortened.

以下、情報処理システム10について図面を参照して説明する。   Hereinafter, the information processing system 10 will be described with reference to the drawings.

(実施形態)
図1は、情報処理システム10の機能構成を示す図である。この情報処理システム10は、コンピュータ100と、情報処理装置としてのプリンタ200とがUSBケーブル125を介して、ユーザにより断続可能に接続されている。このコンピュータ100は、第1の装置として機能し、USB通信プロトコルにおいて主導権を握るホスト機能を有するホストデバイスとしてのUSBホスト手段110を備え、ルートポート120を介してUSBケーブル125が接続されている。また、このコンピュータ100は、所定のOS(Operating System)により動作が管理され、ユーザはマウス等の操作指示手段130を介してコンピュータ100に操作指示できるように構成されている。また、USBケーブル125は、IEEE1394等のシリアルバスであっても良い。
(Embodiment)
FIG. 1 is a diagram illustrating a functional configuration of the information processing system 10. In the information processing system 10, a computer 100 and a printer 200 as an information processing apparatus are connected via a USB cable 125 so as to be intermittent by a user. This computer 100 functions as a first device and includes USB host means 110 as a host device having a host function that takes the initiative in the USB communication protocol, and a USB cable 125 is connected via a root port 120. . Further, the operation of the computer 100 is managed by a predetermined OS (Operating System), and the user can instruct the computer 100 via the operation instruction means 130 such as a mouse. The USB cable 125 may be a serial bus such as IEEE1394.

プリンタ200は、情報処理手段としての印刷装置210と、データ中継手段としてのUSBハブ250と、データ読取り手段としてのメモリカードドライブ260と、制御手段270を備える。この印刷装置210は、第2の装置として機能し、印刷用紙に情報を印刷する機能を有し、一方のUSBに対してデバイス機能を有するUSBデバイス手段215と、他方のUSBに対してホスト機能を有するUSBホスト手段220を備える。USBデバイス手段215は、USB通信プロトコルにおいて主導権を握るホスト手段に従うターゲットデバイスとして外部の機器とUSB接続が可能であり、本実施形態では、前記したコンピュータ100とUSBケーブル125で接続されている。また、USBホスト手段220は、ルートポート230を介してUSBハブ250と接続されている。   The printer 200 includes a printing apparatus 210 as information processing means, a USB hub 250 as data relay means, a memory card drive 260 as data reading means, and a control means 270. The printing apparatus 210 functions as a second apparatus, has a function of printing information on printing paper, has USB device means 215 having a device function for one USB, and a host function for the other USB USB host means 220 having The USB device unit 215 is capable of USB connection with an external device as a target device according to the host unit that takes the initiative in the USB communication protocol. In this embodiment, the USB device unit 215 is connected to the computer 100 via the USB cable 125. The USB host unit 220 is connected to the USB hub 250 via the root port 230.

USBハブ250は、複数のポート(255A〜255D)を有し、1つのポート255Aには、USBデバイス手段268を備えるメモリカードドライブ260が接続されている。このメモリカードドライブ260は、第3の装置として機能し、所定のメモリカード265を装着可能に構成される。従って、コンピュータ100、印刷装置210およびメモリカードドライブ260は、それぞれのUSBのマスストレージクラスを用いてファイルシステムを構成することで、ストレージデバイスの1つであるメモリカード265のデータを、コンピュータ100に転送できる。   The USB hub 250 has a plurality of ports (255A to 255D), and a memory card drive 260 including USB device means 268 is connected to one port 255A. The memory card drive 260 functions as a third device and is configured so that a predetermined memory card 265 can be attached. Therefore, the computer 100, the printing apparatus 210, and the memory card drive 260 configure the file system using the respective USB mass storage classes, so that the data of the memory card 265 that is one of the storage devices is transferred to the computer 100. Can be transferred.

制御手段270は、プリンタ200の各機能を制御し、データ転送の完了を検出する検出手段として機能する転送完了検出手段280と、データ転送を指示する第1の指示手段および第2の指示手段として機能する転送指示手段290とを備える。転送完了検出手段280は、印刷装置210とメモリカードドライブ260間のデータ転送の完了を検出する。この転送完了検出手段280が検出した情報は、転送指示手段290に送られる。また、転送指示手段290は、転送完了検出手段280から送られる情報等に応じて、メモリカードドライブ260から印刷装置210へのデータ転送、および印刷装置210からコンピュータ100へのデータ転送をそれぞれ指示する。   The control unit 270 controls each function of the printer 200 and functions as a transfer completion detection unit 280 that functions as a detection unit that detects completion of data transfer, and as a first instruction unit and a second instruction unit that instruct data transfer. And a transfer instruction means 290 that functions. The transfer completion detection unit 280 detects completion of data transfer between the printing apparatus 210 and the memory card drive 260. The information detected by the transfer completion detection unit 280 is sent to the transfer instruction unit 290. Further, the transfer instruction unit 290 instructs data transfer from the memory card drive 260 to the printing apparatus 210 and data transfer from the printing apparatus 210 to the computer 100 in accordance with the information sent from the transfer completion detection unit 280 and the like. .

本実施形態では、プリンタ200は、インクジェットによる印字方式を採用し、図示を略した画像入力手段や画像コピー手段を更に備えたプリンタ複合機を想定するが、様態や印字方式は限定されるものでは無い。また、コンピュータ100およびプリンタ200の各機能は、図示を略したそれぞれのCPU(Central Processing Unit)やRAM(Random Access Memory)や電子回路等からなるハードウェア資源と、ROM(Read Only Memory)等に記憶された種々のソフトウェアとが有機的に協働することにより実現しても良い。例えば、USBホスト手段110,220やUSBデバイス手段215,268は、論理回路であり、ハードウェアとしてのUSBコントローラと、ソフトウェアとしてのUSBコントローラドライバ、各クラスドライバおよびUSBアプリケーションドライバ等が協働することでそれぞれ機能しても良い。   In this embodiment, the printer 200 employs an inkjet printing method and assumes a printer multifunction machine further provided with an image input unit and an image copy unit (not shown). However, the mode and the printing method are not limited. No. The functions of the computer 100 and the printer 200 are assigned to hardware resources such as a CPU (Central Processing Unit), a RAM (Random Access Memory), an electronic circuit, and the like (not shown), a ROM (Read Only Memory), and the like. It may be realized by organically cooperating with various stored software. For example, the USB host units 110 and 220 and the USB device units 215 and 268 are logic circuits, and a USB controller as hardware, a USB controller driver as software, each class driver, a USB application driver, and the like cooperate. Each may function.

図2(a)は、印刷装置210からコンピュータ100へUSB転送されるデータの構成を示し、(b)は、メモリカードドライブ260から印刷装置210へUSB転送されるデータの構成を示す。周知のように、USBのBulk−Only転送は、ホストとデバイス間での大量のデータの転送が可能である。この場合、図2(a)に示すように、最初に、ホストからデバイスに対して、31バイトで構成されるCBWによりコマンドが伝えられる(コマンドトランスポート)。例えば、ホスト側であるコンピュータ100が、デバイス側の印刷装置210に保持されたデータを取得する場合、読込むデータのアドレスやデータ長さ(L)等が指示されたCBWが、印刷装置210のUSBデバイス手段215に送られる。続いて、印刷装置210のUSBデバイス手段215は、送られたCBWを解析し、指示されたデータアドレスからデータ長さLだけデータを読込み、コンピュータ100のUSBホスト手段110に送信する(データトランスポート)。更に、印刷装置210のUSBデバイス手段215は、コンピュータ100へ送信したデータの有効性を示し、13バイトから成るCSWを、印刷装置210のUSBホスト手段110に送信する(ステータストランスポート)。   2A shows a configuration of data transferred by USB from the printing apparatus 210 to the computer 100, and FIG. 2B shows a configuration of data transferred by USB from the memory card drive 260 to the printing apparatus 210. As is well known, USB Bulk-Only transfer is capable of transferring a large amount of data between a host and a device. In this case, as shown in FIG. 2A, first, a command is transmitted from the host to the device by a CBW composed of 31 bytes (command transport). For example, when the computer 100 on the host side acquires data held in the printing apparatus 210 on the device side, the CBW instructed by the address of the data to be read, the data length (L), etc. It is sent to the USB device means 215. Subsequently, the USB device unit 215 of the printing apparatus 210 analyzes the sent CBW, reads data for the data length L from the instructed data address, and transmits the data to the USB host unit 110 of the computer 100 (data transport). ). Further, the USB device unit 215 of the printing apparatus 210 indicates the validity of the data transmitted to the computer 100 and transmits a 13-byte CSW to the USB host unit 110 of the printing apparatus 210 (status transport).

他方で、図2(a)と同じデータを、印刷装置210とメモリカードドライブ260間でUSB転送する場合、図2(b)に示すように、CBWにおいて読込むデータ長さを半分にした(L/2)CBWを伝え(コマンドトランスポート)、データを送信し(データトランスポート)、CSWを返す(ステータストランスポート)一連の工程を2回行う。この場合、印刷装置210のUSBホスト手段220およびUSBデバイス手段215は、それぞれ独立した論理回路であるため並列処理が可能であることから、図4に示すように、転送すべきデータを2分割し、メモリカードドライブ260から印刷装置210へのCBW2およびデータ2の送信と、印刷装置210からコンピュータ100へのデータ1の送信の処理とを、TLに渡り並行して処理することにより、データ転送が高速化されることが知られている。このようしてデータ転送する方法については、本発明の要旨ではないため省略する(かかる方法については、例えば、特開2006−215891号公報を参照)。   On the other hand, when the same data as in FIG. 2A is transferred by USB between the printing apparatus 210 and the memory card drive 260, the data length read in the CBW is halved as shown in FIG. L / 2) CBW is transmitted (command transport), data is transmitted (data transport), and CSW is returned (status transport). A series of steps is performed twice. In this case, since the USB host unit 220 and the USB device unit 215 of the printing apparatus 210 are independent logic circuits and can be processed in parallel, the data to be transferred is divided into two as shown in FIG. The CBW2 and data 2 transmission from the memory card drive 260 to the printing apparatus 210 and the data 1 transmission process from the printing apparatus 210 to the computer 100 are processed in parallel over the TL, thereby enabling data transfer. It is known to be accelerated. The method for transferring data in this way is omitted because it is not the gist of the present invention (see, for example, JP 2006-215891 A).

図3は、情報処理システム10によるデータ転送の処理の流れを説明するタイミング図である。この場合のデータ転送は、例えば、メモリカード265がメモリカードドライブ260に装着され、ユーザによる操作指示手段130からの操作指示により、このメモリカード265に保持されている所定のデータが、コンピュータ100に転送される場合を想定する。
最初に、T0において、コンピュータ100と印刷装置210間の転送を制御するタスク(以降、一方のタスクと略す。)は、コンピュータ100から送信されるCBW0を受信してコマンドを解析し、T1において、印刷装置210とメモリカードドライブ260間の転送を制御するタスク(以降、他方のタスクと略す。)に対して、メッセージを送る。続いて、他方のタスクは、CBW0において指示されたデータ長さを半減(L/2)した一方のCBW1を作成し、メモリカードドライブ260に送る。このCBW1は、データが2分割されたデータ1とデータ2のうち、一方のデータ1をメモリカードドライブ260から印刷装置210に転送するべく指示する。続いてT2において、この指示に従い、メモリカード265の指定領域に記憶されているデータ1は、印刷装置210の所定のバッファ領域に送信される。
FIG. 3 is a timing chart for explaining the flow of data transfer processing by the information processing system 10. In this case, for example, the memory card 265 is mounted in the memory card drive 260, and predetermined data held in the memory card 265 is transferred to the computer 100 by an operation instruction from the operation instruction unit 130 by the user. Assume that the data is transferred.
First, at T0, a task for controlling transfer between the computer 100 and the printing apparatus 210 (hereinafter abbreviated as one task) receives CBW0 transmitted from the computer 100, analyzes the command, and at T1, A message is sent to the task that controls the transfer between the printing apparatus 210 and the memory card drive 260 (hereinafter abbreviated as the other task). Subsequently, the other task creates one CBW1 in which the data length specified in CBW0 is halved (L / 2), and sends it to the memory card drive 260. The CBW 1 instructs to transfer one of the data 1 and the data 2 obtained by dividing the data into two from the memory card drive 260 to the printing apparatus 210. Subsequently, at T2, according to this instruction, data 1 stored in the designated area of the memory card 265 is transmitted to a predetermined buffer area of the printing apparatus 210.

続いて、T3において、転送完了検出手段280は、印刷装置210へのデータ1の送信の完了を検出し、転送指示手段290に通知する。転送指示手段290は、この通知を受け、印刷装置210の所定のバッファ領域に保持されたデータ1を、コンピュータ100に転送するべく他方のタスクに指示する。即ち、転送指示手段290は、他方のタスクに対して、印刷装置210からコンピュータ100に送るべきデータがある旨のメッセージを一方のタスクへ送るべく指示する。本実施形態では、このメッセージは、メモリカードドライブ260から印刷装置210への送信が完了したこと、および送信されたデータが格納されているデータアドレス等を示す。   Subsequently, at T <b> 3, the transfer completion detection unit 280 detects the completion of transmission of data 1 to the printing apparatus 210 and notifies the transfer instruction unit 290 of the completion. Upon receiving this notification, the transfer instruction unit 290 instructs the other task to transfer the data 1 held in the predetermined buffer area of the printing apparatus 210 to the computer 100. That is, the transfer instruction unit 290 instructs the other task to send a message to the other task that there is data to be sent from the printing apparatus 210 to the computer 100. In the present embodiment, this message indicates that transmission from the memory card drive 260 to the printing apparatus 210 has been completed, a data address where the transmitted data is stored, and the like.

一方のタスクは、他方のタスクから送られたメッセージを受け、印刷装置210に保持されているデータ1のコンピュータ100への送信を開始し、T4において送信を開始した旨のメッセージを他方のタスクに送る。ここで、コンピュータ100にデータ転送するUSBデバイス手段215と、USBホスト手段220は並行処理が可能であるため、他方のタスクは、コンピュータ100へのデータ1の送信の終了を待つことなく、一方のタスクからのメッセージを受けた後、メモリカードドライブ260から印刷装置210に対してCSW1の送信を指示する。   One task receives a message sent from the other task, starts transmission of data 1 held in the printing apparatus 210 to the computer 100, and sends a message to the other task that the transmission is started at T4. send. Here, since the USB device means 215 for transferring data to the computer 100 and the USB host means 220 can perform parallel processing, the other task does not wait for the end of transmission of the data 1 to the computer 100, After receiving a message from the task, the memory card drive 260 instructs the printing apparatus 210 to transmit CSW1.

続いて、T5において、CSW1の送信が完了し、他方のタスクは、CSW1に含まれる送信結果をメッセージとして一方のタスクに送る。一方のタスクは、送信結果からデータ1の有効性を判定し、例えば、データ1の有効性を示すフラグに反映する。
続いて、T6において、他方のタスクは、CBW0において指示されたデータ長さを半減(L/2)した他方のCBW2を作成し、作成したCBW2に基づいて、他方のデータ2をメモリカードドライブ260から印刷装置210に転送するべく指示する。次に、T7では、この指示に従い、メモリカード265の指定領域に記憶されているデータ2は、印刷装置210の所定のバッファ領域に送信される。
Subsequently, at T5, the transmission of CSW1 is completed, and the other task sends the transmission result included in CSW1 as a message to one task. One task determines the validity of the data 1 from the transmission result, and reflects it in a flag indicating the validity of the data 1, for example.
Subsequently, at T6, the other task creates the other CBW2 in which the data length designated in CBW0 is halved (L / 2), and based on the created CBW2, the other data 2 is stored in the memory card drive 260. From the printer to the printing apparatus 210. Next, at T7, according to this instruction, the data 2 stored in the designated area of the memory card 265 is transmitted to a predetermined buffer area of the printing apparatus 210.

続いて、T8において、転送完了検出手段280は、印刷装置210へのデータ2の送信の完了を検出し、転送指示手段290に通知する。転送指示手段290は、この通知を受け、印刷装置210の所定のバッファ領域に保持されたデータ2を、コンピュータ100に送信するべく他方のタスクに指示する。即ち、転送指示手段290は、他方のタスクに対して、印刷装置210からコンピュータ100に送信すべきデータがある旨のメッセージを一方のタスクへ送るべく指示する。
一方のタスクは、他方のタスクから送られたメッセージを受け、印刷装置210に保持されたデータ2のコンピュータ100への送信を開始し、T9において送信を開始した旨のメッセージを他方のタスクに送る。他方のタスクは、コンピュータ100へのデータ1の送信の終了を待つことなく、一方のタスクからのメッセージを受けた後、次のジョブ、即ち、メモリカードドライブ260から印刷装置210に対してCSW2の送信を指示する。
Subsequently, at T <b> 8, the transfer completion detection unit 280 detects completion of transmission of the data 2 to the printing apparatus 210 and notifies the transfer instruction unit 290. Upon receiving this notification, the transfer instruction unit 290 instructs the other task to transmit the data 2 held in the predetermined buffer area of the printing apparatus 210 to the computer 100. That is, the transfer instruction unit 290 instructs the other task to send a message to the one task that there is data to be transmitted from the printing apparatus 210 to the computer 100.
One task receives the message sent from the other task, starts transmission of the data 2 held in the printing apparatus 210 to the computer 100, and sends a message to the other task that transmission is started at T9. . The other task receives a message from one task without waiting for the end of transmission of data 1 to the computer 100, and then receives the message from one task, that is, the memory card drive 260 sends the CSW2 to the printing apparatus 210. Instruct to send.

続いて、T10において、CSW2の送信が完了し、他方のタスクは、CSW2に含まれる送信結果をメッセージとして一方のタスクに送る。一方のタスクは、送信結果からデータ2の有効性を判定し、データ2の有効性を示すフラグに反映する。
最後に、T11において、一方のタスクは、データ1の有効性を示すフラグおよびデータ2の有効性を示すフラグからCSW0を作成し、コンピュータ100へ送信することにより、情報処理システム10におけるデータ転送の処理が終了する。尚、印刷装置210の所定のバッファ領域に保持されたデータは適宜消去される。
このようにして、コンピュータ100は、プリンタ200のメモリカードドライブ260に装着されたメモリカード265に記憶されているデータを、高速に読込むことができることから、情報処理システム10の単位時間当たりの処理能力の高速化を実現できることに加え、コンピュータ100がメモリカード265のデータを読込むまでユーザを待たせる時間を低減できる。
Subsequently, at T10, transmission of CSW2 is completed, and the other task sends the transmission result included in CSW2 as a message to one task. One task determines the validity of the data 2 from the transmission result and reflects it in a flag indicating the validity of the data 2.
Finally, at T11, one task creates CSW0 from the flag indicating the validity of the data 1 and the flag indicating the validity of the data 2, and transmits it to the computer 100, whereby the data transfer in the information processing system 10 is performed. The process ends. Note that data held in a predetermined buffer area of the printing apparatus 210 is appropriately deleted.
In this way, the computer 100 can read the data stored in the memory card 265 attached to the memory card drive 260 of the printer 200 at high speed, so that the processing per unit time of the information processing system 10 can be performed. In addition to realizing higher speed, it is possible to reduce the time that the computer 100 waits until the computer 100 reads the data in the memory card 265.

本発明の実施形態について、図面を参照して説明したが、具体的な構成は、この実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。例えば、情報処理装置はプリンタ200に限定されるものでは無く、USBホスト手段220を具備する電子機器であれば良い。   Although the embodiment of the present invention has been described with reference to the drawings, the specific configuration is not limited to this embodiment, and includes design changes and the like within a scope not departing from the gist of the present invention. For example, the information processing apparatus is not limited to the printer 200 and may be an electronic device including the USB host unit 220.

実施形態に係る情報処理システムの機能構成を示す図。The figure which shows the function structure of the information processing system which concerns on embodiment. (a)は、印刷装置からコンピュータへUSB転送されるデータの構成を示し、(b)は、メモリカードドライブから印刷装置へUSB転送されるデータの構成を示す図。(A) shows the configuration of data transferred from the printing apparatus to the computer by USB, and (b) shows the configuration of data transferred from the memory card drive to the printing apparatus by USB. 情報処理システムによるデータ転送の処理の流れを説明するタイミング図。The timing diagram explaining the flow of the process of the data transfer by an information processing system. 従来のデータ転送の処理の流れを説明するタイミング図。The timing diagram explaining the flow of processing of the conventional data transfer.

符号の説明Explanation of symbols

10…情報処理システム、100…コンピュータ、110,220…USBホスト手段、120,230…ルートポート、125…USBケーブル、130…操作指示手段、200…プリンタ、210…印刷装置、215,268…USBデバイス手段、250…USBハブ、255A〜255D…ポート、260…メモリカードドライブ、265…メモリカード、270…制御手段、280…転送完了検出手段、290…転送指示手段。   DESCRIPTION OF SYMBOLS 10 ... Information processing system, 100 ... Computer, 110, 220 ... USB host means, 120, 230 ... Root port, 125 ... USB cable, 130 ... Operation instruction means, 200 ... Printer, 210 ... Printing device, 215, 268 ... USB Device means 250 ... USB hub, 255A to 255D ... port, 260 ... memory card drive, 265 ... memory card, 270 ... control means, 280 ... transfer completion detection means, 290 ... transfer instruction means.

Claims (5)

第1ホストデバイスを有する第1装置と、
シリアルバスを介して前記第1ホストデバイスに接続された第1ターゲットデバイスを有すると共に、第2ホストデバイスを有する第2装置と、
シリアルバスを介して前記第2ホストデバイスに接続された第2ターゲットデバイスを有する第3装置と、
前記第3装置から前記第2装置へのデータ部及び該データ部の転送に関わるステータス情報の転送を指示する第1の指示手段と、
前記第2装置から前記第1装置へのデータ部の転送を指示する第2の指示手段と、
前記第3装置から前記第2装置へのデータ部の転送の完了を検出する検出手段とを備え、
前記第1の指示手段により1のデータ部及び該1のデータ部の転送に関わるステータス情報の転送指示が行われた場合において、前記第2の指示手段は、前記検出手段が前記1のデータ部の転送の完了を検出した際に、前記1のデータ部の転送を指示すると共に、
前記第1の指示手段は、前記1のデータ部の前記第1装置への転送の完了を待つことなく、前記1のデータ部の転送に関わるステータス情報の転送を指示することを特徴とする情報処理システム。
A first device having a first host device;
A second device having a first target device connected to the first host device via a serial bus and having a second host device;
A third apparatus having a second target device connected to the second host device via a serial bus;
First instruction means for instructing transfer of a data part from the third apparatus to the second apparatus and status information relating to the transfer of the data part;
Second instruction means for instructing transfer of a data portion from the second device to the first device;
Detecting means for detecting completion of transfer of the data portion from the third device to the second device;
When the first instruction unit issues an instruction to transfer one data part and status information related to the transfer of the one data part, the second instruction unit is configured such that the detection unit is the first data part. When the completion of transfer is detected, the transfer of the data portion of 1 is instructed,
The first instruction means directs transfer of status information related to transfer of the first data part without waiting for completion of transfer of the first data part to the first device. Processing system.
請求項1に記載の情報処理システムにおいて、
前記シリアルバスは、USBであることを特徴とする情報処理システム。
The information processing system according to claim 1,
The information processing system, wherein the serial bus is a USB.
請求項2に記載の情報処理システムにおいて、
前記データ部の転送に関わるステータス情報は、CSWであることを特徴とする情報処理システム。
The information processing system according to claim 2,
The status information related to the transfer of the data part is a CSW.
第1ホストデバイスを有するコンピュータと接続された情報処理装置であって、
前記第1ホストデバイスとシリアルバスを介して接続された第1ターゲットデバイスと、第2ホストデバイスとからなる情報処理手段と、
前記第2のホストデバイスとシリアルバスを介して接続された第2ターゲットデバイスからなるデータ読取り手段と、
前記データ読取り手段から前記情報処理手段へのデータ部及び該データ部の転送に関わるステータス情報の転送を指示する第1の指示手段と、
前記情報処理装置から前記コンピュータへのデータ部の転送を指示する第2の指示手段と、
前記データ読取り手段から前記情報処理手段へのデータ部の転送の完了を検出する検出手段とを備え、
前記第1の指示手段により1のデータ部及び該1のデータ部の転送に関わるステータス情報の転送指示が行われた場合において、前記第2の指示手段は、前記検出手段が前記1のデータ部の転送の完了を検出した際に、前記1のデータ部の転送を指示すると共に、
前記第1の指示手段は、前記1のデータ部の前記コンピュータへの転送の完了を待つことなく、前記1のデータ部の転送に関わるステータス情報の転送を指示することを特徴とする情報処理装置。
An information processing apparatus connected to a computer having a first host device,
Information processing means comprising a first target device connected to the first host device via a serial bus, and a second host device;
Data reading means comprising a second target device connected to the second host device via a serial bus;
First instruction means for instructing transfer of a data portion from the data reading means to the information processing means and status information relating to the transfer of the data portion;
Second instruction means for instructing transfer of a data portion from the information processing apparatus to the computer;
Detecting means for detecting completion of transfer of the data portion from the data reading means to the information processing means,
When the first instruction unit issues an instruction to transfer one data part and status information related to the transfer of the one data part, the second instruction unit is configured such that the detection unit is the first data part. When the completion of transfer is detected, the transfer of the data portion of 1 is instructed,
The first instructing unit instructs transfer of status information related to transfer of the first data part without waiting for completion of transfer of the first data part to the computer. .
一方のシリアルバスに接続された第1ホストデバイスを有する第1装置と、前記一方のシリアルバスに接続された第1ターゲットデバイスを有すると共に、他方のシリアルバスに接続された第2ホストデバイスを有する第2装置と、前記他方のシリアルバスに接続された第2ターゲットデバイスを有する第3装置とを備える情報処理システムのデータ転送方法であって、
前記第3装置に保持され前記第1装置へ転送されるべき1のデータを前記第2装置へ転送する工程と、
前記第2装置への前記1のデータの転送の完了を検出する工程と、
前記転送の完了を検出した場合、前記第2装置に転送された前記1のデータを前記第1装置へ転送する工程と、
前記1のデータの前記第1装置への転送の完了を待つことなく、前記第3装置に保持され前記第1装置へ転送されるべき次のデータを前記第2装置への転送する工程とを備えることを特徴とする情報処理システムのデータ転送方法。
A first apparatus having a first host device connected to one serial bus; a first target device connected to the one serial bus; and a second host device connected to the other serial bus. A data transfer method for an information processing system comprising: a second device; and a third device having a second target device connected to the other serial bus,
Transferring one data held in the third device and to be transferred to the first device to the second device;
Detecting completion of transfer of the first data to the second device;
If the completion of the transfer is detected, transferring the first data transferred to the second device to the first device;
Transferring the next data held in the third device and transferred to the first device to the second device without waiting for completion of the transfer of the first data to the first device. A data transfer method for an information processing system.
JP2007223560A 2007-08-30 2007-08-30 Information processing system, information processor and data transfer method for information processing system Withdrawn JP2009059018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007223560A JP2009059018A (en) 2007-08-30 2007-08-30 Information processing system, information processor and data transfer method for information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007223560A JP2009059018A (en) 2007-08-30 2007-08-30 Information processing system, information processor and data transfer method for information processing system

Publications (1)

Publication Number Publication Date
JP2009059018A true JP2009059018A (en) 2009-03-19

Family

ID=40554733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007223560A Withdrawn JP2009059018A (en) 2007-08-30 2007-08-30 Information processing system, information processor and data transfer method for information processing system

Country Status (1)

Country Link
JP (1) JP2009059018A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012048309A (en) * 2010-08-24 2012-03-08 Brother Ind Ltd Usb host device and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246750A (en) * 2003-02-17 2004-09-02 Nippon Telegr & Teleph Corp <Ntt> Usb communication method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246750A (en) * 2003-02-17 2004-09-02 Nippon Telegr & Teleph Corp <Ntt> Usb communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012048309A (en) * 2010-08-24 2012-03-08 Brother Ind Ltd Usb host device and program

Similar Documents

Publication Publication Date Title
JP4578057B2 (en) Upstream peripheral device acting as a USB host
JP2004157966A (en) End point memory control method and device, usb device, and storage medium
US6753903B1 (en) Adaptor for direct connection between USB digital still camera and use color printer
CN102314360A (en) Image processing system and image formation system
US10069990B2 (en) Image processing apparatus, method of controlling the same, and recording medium for selectively processing packets using a processor or a sub processor
JP6876235B2 (en) Electronic equipment and image processing equipment
JP2009059018A (en) Information processing system, information processor and data transfer method for information processing system
JP6460905B2 (en) Communication device, control method, program
JP3906838B2 (en) USB compatible digital MFP
US20160094228A1 (en) Information processing apparatus and control method therefor
JP6833491B2 (en) Information processing device
JP2009037526A (en) Data transfer apparatus, request generation apparatus, and request generation method
JP2006338232A (en) Communication system
JP2020027509A (en) Relay system
JP2002254729A (en) Dma controller for image data
JP4452751B2 (en) Function control apparatus and method
JP2006309444A (en) Data processing system
JP2009211307A (en) Image forming apparatus
JP2001338286A (en) Method and device for image processing
JP3226841B2 (en) Printer device
JP2009064342A (en) Data transfer system
JP3071607U (en) Computer peripheral device and printer device
JP2014032571A (en) Printing system, information processing apparatus, and program
JP6060549B2 (en) Image forming apparatus and image reading apparatus
JPH1153131A (en) Printing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100723

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120207

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20120326