JP2014019088A - Printing apparatus and printing system - Google Patents

Printing apparatus and printing system Download PDF

Info

Publication number
JP2014019088A
JP2014019088A JP2012161213A JP2012161213A JP2014019088A JP 2014019088 A JP2014019088 A JP 2014019088A JP 2012161213 A JP2012161213 A JP 2012161213A JP 2012161213 A JP2012161213 A JP 2012161213A JP 2014019088 A JP2014019088 A JP 2014019088A
Authority
JP
Japan
Prior art keywords
printing
interface
printer
host
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012161213A
Other languages
Japanese (ja)
Other versions
JP2014019088A5 (en
Inventor
Shoji Shima
章二 島
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 JP2012161213A priority Critical patent/JP2014019088A/en
Priority to US13/933,771 priority patent/US20140022576A1/en
Priority to EP13176774.1A priority patent/EP2687978A3/en
Priority to CN201310301222.2A priority patent/CN103577127B/en
Priority to KR1020130084648A priority patent/KR101446436B1/en
Publication of JP2014019088A publication Critical patent/JP2014019088A/en
Publication of JP2014019088A5 publication Critical patent/JP2014019088A5/ja
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable, in a configuration in which a device is connected to a control-side apparatus such as a host computer, a device to be easily added.SOLUTION: A first printer 30 in a printing system 1 includes a USB interface 40 for receiving data as a device, a USB interface 45 for transmitting data as a host, and a first printer printing unit 60 for performing printing based on the data received as the device by the USB interface 40.

Description

本発明は、印刷装置、及び、印刷システムに関する。   The present invention relates to a printing apparatus and a printing system.

従来、ホストコンピューターに接続された印刷装置によってレシート等を印刷するシステムが知られている(例えば、特許文献1参照)。
また、ホストコンピューターに複数の印刷装置を接続して印刷を行うシステムも知られている(例えば、特許文献2参照)。特許文献2記載のシステムでは、POSアプリケーションプログラムがインストールされたパーソナルコンピューターに、RS−232Cインターフェイスを介して2つの印刷装置が接続されている。このシステムでは、パーソナルコンピューターは、印刷装置を指定するデータや印字データを印刷装置に送信し、指定された印刷装置がレシートやジャーナルを印刷する。
Conventionally, a system for printing a receipt or the like by a printing apparatus connected to a host computer is known (for example, see Patent Document 1).
Also known is a system that performs printing by connecting a plurality of printing devices to a host computer (see, for example, Patent Document 2). In the system described in Patent Document 2, two printing apparatuses are connected to a personal computer installed with a POS application program via an RS-232C interface. In this system, a personal computer transmits data specifying a printing device and print data to the printing device, and the designated printing device prints a receipt or a journal.

特開2009−187078号公報JP 2009-187078 A 特開2008−176574号公報JP 2008-176574 A

特許文献2記載のシステムでは、パーソナルコンピューターによって2つの装置を個別に制御する構成を実現するための専用の構成を備えている。具体的には、パーソナルコンピューターのインターフェイスの一部のピンがレシートプリンターに接続され、パーソナルコンピューターのインターフェイスの別のピンがジャーナルプリンターに接続され、かつ、レシートプリンターとジャーナルプリンターとが接続された構成となっている。また、パーソナルコンピューターは、2つの印刷装置の一方を指定する機能を備えている。このように、ホストコンピューター等の制御側の装置により複数のデバイスを制御するシステムでは、制御側の装置とデバイスとの双方が、複数のデバイスの併用に適した専用の構成を備える必要があった。このため、例えば特許文献1記載のシステムのように一つのデバイスとしての印刷装置を備えたシステムに、他のデバイスを追加するためには、制御側の装置とデバイスの双方においてハードウェア及びソフトウェアの改変が必要であった。
本発明は、上述した事情に鑑みてなされたものであり、ホストコンピューター等の制御側の装置にデバイスを接続した構成において、デバイスを容易に追加できるようにすることを目的とする。
The system described in Patent Document 2 has a dedicated configuration for realizing a configuration in which two devices are individually controlled by a personal computer. Specifically, some pins of the personal computer interface are connected to the receipt printer, another pin of the personal computer interface is connected to the journal printer, and the receipt printer and the journal printer are connected. It has become. The personal computer has a function of designating one of the two printing apparatuses. Thus, in a system in which a plurality of devices are controlled by a control-side device such as a host computer, both the control-side device and the device need to have a dedicated configuration suitable for the combined use of the plurality of devices. . For this reason, for example, in order to add another device to a system including a printing apparatus as one device, such as the system described in Patent Document 1, both the hardware and software of the control-side apparatus and device are used. Modification was necessary.
The present invention has been made in view of the above-described circumstances, and an object thereof is to allow a device to be easily added in a configuration in which the device is connected to a control-side apparatus such as a host computer.

上記目的を達成するために、本発明は、デバイスとしてデータを受信する第1のインターフェイスと、ホストとしてデータを送信する第2のインターフェイスと、前記第1のインターフェイスでデバイスとして受信したデータに基づいて印刷を実行する印刷部と、を備えたことを特徴とする。
本発明によれば、第1のインターフェイスに接続された装置に対してはデバイスとして動作してデータを受信し、第2のインターフェイスに接続された装置に対してはホストとして動作してデータを送信するので、ホストとして動作する装置とデバイスとして動作する装置とのどちらにも接続可能である。そして、第1のインターフェイスに接続された装置に対してはデバイスとして動作し、この装置が送信するデータを受信することができ、第2のインターフェイスに接続された装置に対してはホストとして動作し、この装置に対してデータを送信できる。従って、例えば、ホストとして動作する装置とデバイスとして動作する装置との間に介在して、ホストとして動作する装置が送信したデータを受信し、このデータをデバイスとして動作する装置に送信することができ、ホスト及びデバイスの各装置の構成を変更することなく、これらの装置の間に設置可能である。さらに、ホストとして動作する装置が、デバイスとして動作する装置に対して送信したデータに基づき、当該印刷装置が印刷を実行できる。
To achieve the above object, the present invention is based on a first interface for receiving data as a device, a second interface for transmitting data as a host, and data received as a device by the first interface. And a printing unit that executes printing.
According to the present invention, the device connected to the first interface operates as a device to receive data, and the device connected to the second interface operates as a host to transmit data. Therefore, it can be connected to both a device operating as a host and a device operating as a device. The device connected to the first interface operates as a device, can receive data transmitted by the device, and operates as a host to the device connected to the second interface. Data can be transmitted to this device. Thus, for example, it is possible to receive data transmitted by a device operating as a host between a device operating as a host and a device operating as a device, and transmit this data to a device operating as a device. It can be installed between these devices without changing the configuration of each device of the host and the device. Furthermore, the printing apparatus can execute printing based on data transmitted from the apparatus operating as the host to the apparatus operating as the device.

また、本発明は、上記印刷装置において、前記第1のインターフェイスで前記デバイスとして受信したデータを記憶する記憶部を備え、前記印刷部は前記記憶部に記憶した、前記デバイスとして受信したデータを解析し、解析結果に基づいて印刷を実行する。
本発明によれば、ホストとして動作する装置からデータを受信する第1のインターフェイスでデバイスとして受信したデータを記憶して解析し、印刷を行うので、例えば、第1のインターフェイスに接続された装置が他の装置に送信したデータに基づいて、印刷を行うことができる。また、デバイスとして受信したデータに基づいて、このデータを印刷する動作だけでなく、例えば受信したデータを第2のインターフェイスから他の装置に送信するなど、デバイスとして受信したデータに基づく別の動作を実行できる。
According to the present invention, the printing apparatus further includes a storage unit that stores data received as the device by the first interface, and the printing unit analyzes the data received as the device stored in the storage unit. Then, printing is executed based on the analysis result.
According to the present invention, data received as a device is stored, analyzed, and printed by a first interface that receives data from a device operating as a host. For example, a device connected to the first interface Printing can be performed based on data transmitted to another apparatus. Further, not only the operation of printing this data based on the data received as the device, but also another operation based on the data received as the device, for example, transmitting the received data from the second interface to another device. Can be executed.

また、本発明は、上記印刷装置において、デバイス用のコネクター、及びホストとして動作する装置に接続された場合にデバイスとしての動作を制御する第1のプロトコルに対応するデバイス制御回路を備え、前記第2のインターフェイスは、ホスト用のコネクター、及びデバイスとして動作する装置の動作を制御する第2のプロトコルに対応するホスト制御回路を備える。
本発明によれば、第1のインターフェイスに接続された装置に対してはデバイスとして動作し、第2のインターフェイスに接続された装置に対してはホストとして動作することで、ホストとして動作する装置とデバイスとして動作する装置との間に、これらのホスト及びデバイスの各装置の構成を変更することなく設置可能である。そして、第1のインターフェイスに接続され、ホストとして動作する装置が上記デバイスに向けて送信したデータを本発明の印刷装置がデバイスとして受信し、受信したデータを第2のインターフェイスに接続されたデバイスに送信するとともに、このデータに基づいて印刷を実行できる。
The present invention further includes a device control circuit corresponding to a first protocol for controlling the operation as a device when connected to a device connector and a device operating as a host in the printing apparatus. The second interface includes a host connector and a host control circuit corresponding to the second protocol for controlling the operation of the device operating as a device.
According to the present invention, an apparatus that operates as a host by operating as a device for an apparatus connected to the first interface and operating as a host for an apparatus connected to the second interface; It can be installed between the devices operating as devices without changing the configuration of each device of these hosts and devices. The printing apparatus of the present invention receives data transmitted from the apparatus connected to the first interface and operating as the host to the device as the device, and the received data is transmitted to the device connected to the second interface. In addition to transmission, printing can be executed based on this data.

また、本発明は、上記印刷装置において、前記第1のインターフェイス及び前記第2のインターフェイスを配設するインターフェイス基板と、前記印刷部を制御して印刷を実行させる印刷制御部を配設する印刷制御基板と、を有する。
本発明によれば、印刷制御部を配設した印刷制御基板とは別のインターフェイス基板に、第1及び第2のインターフェイスが配設されているので、本発明を適用した印刷装置を容易に実現できる。
According to the present invention, in the above-described printing apparatus, the print control includes an interface board on which the first interface and the second interface are disposed, and a print control unit that controls the print unit to execute printing. And a substrate.
According to the present invention, since the first and second interfaces are arranged on the interface board different from the print control board on which the print control unit is arranged, the printing apparatus to which the present invention is applied can be easily realized. it can.

また、上記目的を達成するために、本発明の印刷システムは、印刷指示及び印刷データを送信するホストコンピューターと、デバイスとして前記ホストコンピューターから送信された前記印刷指示及び前記印刷データを受信する第1のインターフェイス、前記第1のインターフェイスで受信した前記印刷指示及び前記印刷データをホストとして送信する第2のインターフェイス、及び前記第1のインターフェイスで受信した前記印刷データに基づいて印刷を実行する印刷部を有する第1の印刷装置と、前記第1の印刷装置の第2のインターフェイスから送信された前記印刷指示及び印刷データを受信する通信部、及び前記通信部で受信された前記印刷指示に基づいて前記印刷データを印刷する第2の印刷装置と、備えることを特徴とする。
本発明によれば、ホストコンピューター及び第2の印刷装置に接続された第1の印刷装置が、ホストコンピューターに対してはデバイスとして動作してデータを受信し、第2の印刷装置に対してはホストとして動作してデータを送信するので、ホストコンピューター及び第2の印刷装置の間に介在して設置可能である。そして、第1のインターフェイスに接続されたホストコンピューターが送信するデータを受信することができ、第2のインターフェイスに接続された第2の印刷装置に対してはホストとして動作し、データを送信できる。
従って、ホストコンピューター及びデバイスとして動作する第2の印刷装置の構成を変更することなく、これらの装置の間に第1の印刷装置を設置し、この第1の印刷装置によって、ホストコンピューターが第2の印刷装置に送信したデータに基づき印刷を行える。
In order to achieve the above object, a printing system according to the present invention includes a host computer that transmits a print instruction and print data, and a first that receives the print instruction and the print data transmitted from the host computer as a device. An interface, a second interface that transmits the print instruction and the print data received by the first interface as a host, and a printing unit that executes printing based on the print data received by the first interface A first printing apparatus, a communication unit that receives the print instruction and print data transmitted from the second interface of the first printing apparatus, and the print instruction received by the communication unit based on the print instruction And a second printing apparatus for printing the print data.
According to the present invention, the first printing apparatus connected to the host computer and the second printing apparatus operates as a device for the host computer and receives data, and to the second printing apparatus. Since it operates as a host and transmits data, it can be installed between the host computer and the second printing apparatus. Then, data transmitted by the host computer connected to the first interface can be received, and data can be transmitted to the second printing apparatus connected to the second interface as a host.
Therefore, without changing the configuration of the second printing apparatus that operates as the host computer and the device, the first printing apparatus is installed between these apparatuses, and the first printing apparatus allows the host computer to perform the second operation. Printing can be performed based on the data transmitted to the printer.

本発明によれば、ホストとして動作する装置とデバイスとして動作する装置との間に新たな印刷装置を設置して、ホストとして動作する装置がデバイスの装置に送信したデータに基づき印刷を行う構成を、容易に実現できる。   According to the present invention, a new printing apparatus is installed between an apparatus that operates as a host and an apparatus that operates as a device, and the apparatus that operates as a host performs printing based on data transmitted to the device of the device. Can be realized easily.

本発明の実施形態に係る印刷システムの機能ブロック図である。1 is a functional block diagram of a printing system according to an embodiment of the present invention. プリンターの機能的構成を詳細に示すブロック図である。FIG. 2 is a block diagram illustrating in detail a functional configuration of a printer. 印刷システムの各部の動作を示すシーケンス図である。FIG. 6 is a sequence diagram illustrating operations of respective units of the printing system.

以下、図面を参照して本発明の実施形態について説明する。
図1に示す印刷システム1は、本発明の印刷装置である第1プリンター30(第1の印刷装置)と、アプリケーションプログラムを実行して文書等を生成し、印刷指示を出力するホストコンピューター10と、ホストコンピューター10が出力する印刷指示に従って印刷を実行する第2プリンター20(第2の印刷装置)とを備え、ホストコンピューター10と第2プリンター20との間に第1プリンター30が介設される。ホストコンピューター10と第2プリンター20とは、USBケーブル2Aを介して1対1で直接接続することが可能であり、この場合、ホストコンピューター10が出力するコマンドやデータを直接第2プリンター20が受信して、印刷を実行する。
印刷システム1は、ホストコンピューター10と第2プリンター20とを接続するUSBケーブル2Aを外し、ホストコンピューター10に対してUSBケーブル2Bにより第1プリンター30を接続する一方、第1プリンター30と第2プリンター20とをUSBケーブル2Cにより接続したシステムである。つまり、印刷システム1は、ホストコンピューター10に第1プリンター30と第2プリンター20とがデイジーチェーン接続された構成となっている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
A printing system 1 shown in FIG. 1 includes a first printer 30 (first printing apparatus) that is a printing apparatus of the present invention, a host computer 10 that executes an application program to generate a document and the like, and outputs a print instruction. A second printer 20 (second printing device) that executes printing in accordance with a print instruction output from the host computer 10, and the first printer 30 is interposed between the host computer 10 and the second printer 20. . The host computer 10 and the second printer 20 can be directly connected one-to-one via the USB cable 2A. In this case, the second printer 20 directly receives commands and data output from the host computer 10. And execute printing.
The printing system 1 disconnects the USB cable 2A that connects the host computer 10 and the second printer 20, and connects the first printer 30 to the host computer 10 by the USB cable 2B, while the first printer 30 and the second printer. 20 with a USB cable 2C. That is, the printing system 1 has a configuration in which the first printer 30 and the second printer 20 are daisy chain connected to the host computer 10.

ホストコンピューター10は、制御部11と、制御部11に接続された記憶部15、入力部16、及び表示部17を備えている。また、ホストコンピューター10は、外部の機器が接続されるインターフェイスとして、USBインターフェイス12を備えている。USBインターフェイス12は、USB_Aコネクター13と、このUSB_Aコネクター13にUSBケーブルを介して接続された機器との間の通信を、所定のプロトコルに従って実行するUSBホストコントローラー14とを備えている。   The host computer 10 includes a control unit 11, a storage unit 15 connected to the control unit 11, an input unit 16, and a display unit 17. The host computer 10 also includes a USB interface 12 as an interface to which an external device is connected. The USB interface 12 includes a USB_A connector 13 and a USB host controller 14 that executes communication between the USB_A connector 13 and a device connected to the USB_A connector 13 via a USB cable according to a predetermined protocol.

制御部11は、CPU、ROM、RAM等により構成され、記憶部15に記憶された各種プログラムを実行することにより、ホストコンピューター10の各部を中枢的に制御する。
制御部11は、アプリケーション実行部11Aにより、記憶部15に記憶されたアプリケーションプログラムを実行する。例えば、制御部11はPOSアプリケーションプログラムを実行して、POS端末として動作し、入力部16により入力されるデータに基づいて商品販売に係るデータ処理を実行し、商品販売処理の結果を示すレシートを印刷するデータを印刷実行の指示とともに出力する。
また、制御部11は、デバイスドライバー実行部11Bを備える。デバイスドライバー実行部11Bは、記憶部15に記憶されたデバイスドライバープログラムを実行し、ホストコンピューター10に接続される各種機器を制御する。本実施形態のホストコンピューター10は、USBインターフェイスを介して接続されるデバイスに対応して、デバイスドライバープログラムをデバイスドライバー実行部11Bにより実行可能である。デバイスドライバー実行部11Bは、アプリケーション実行部11Aが出力する印刷指示とデータに基づいて、プリンターにより印刷を実行させる印刷コマンドと印刷データとを生成し、USBインターフェイス12から出力する。本発明では、第2プリンター20に印刷指示とデータを出力するデバイスドライバーがインストールされている。
The control unit 11 includes a CPU, a ROM, a RAM, and the like, and centrally controls each unit of the host computer 10 by executing various programs stored in the storage unit 15.
The control unit 11 executes the application program stored in the storage unit 15 by the application execution unit 11A. For example, the control unit 11 executes a POS application program, operates as a POS terminal, executes data processing related to product sales based on data input by the input unit 16, and receives a receipt indicating the result of the product sales processing. Outputs data to be printed together with a print execution instruction.
The control unit 11 includes a device driver execution unit 11B. The device driver execution unit 11B executes a device driver program stored in the storage unit 15 and controls various devices connected to the host computer 10. The host computer 10 of the present embodiment can execute a device driver program by the device driver execution unit 11B corresponding to a device connected via the USB interface. The device driver execution unit 11B generates a print command and print data for executing printing by the printer based on the print instruction and data output from the application execution unit 11A, and outputs the print command and the print data from the USB interface 12. In the present invention, a device driver that outputs a print instruction and data to the second printer 20 is installed.

USBインターフェイス12、及び、後述するUSBインターフェイス21、40、45は、いずれもUSB規格により規定される物理層、リンク層及びプロトコル層を構成し、1対1で接続された機器間のシリアルデータ通信を実行する。ここで、USB規格とは、USB1.1〜USB3.0またはそれ以降の拡張規格を含む。   The USB interface 12 and later-described USB interfaces 21, 40, and 45 constitute a physical layer, a link layer, and a protocol layer defined by the USB standard, and serial data communication between devices connected one-to-one. Execute. Here, the USB standard includes an extended standard of USB 1.1 to USB 3.0 or later.

USBインターフェイス12が備えるUSB_Aコネクター13は、USB規格によりホスト側の装置のコネクターとして指定された形状及び端子を有するメス(receptacle)側コネクターであって、USB規格に準拠したUSBケーブル2A、2Bを接続可能である。USB_Aコネクター13は、miniUSB_A端子やmicroUSB_A端子としてもよい。なお、後述するUSB_Aコネクター46(図2)も同様である。また、USBインターフェイス12が備えるUSB_Aコネクター13の数について特に制限はない。
USBホストコントローラー14は、USB規格により規定されたデバイスに該当する機器がUSB_Aコネクター13に接続された場合に、この機器に対してホスト側として動作し、デバイスの認識及びデバイスとの間の通信を可能とする。
The USB_A connector 13 provided in the USB interface 12 is a female connector having a shape and a terminal designated as a connector of a host device according to the USB standard, and connects USB cables 2A and 2B conforming to the USB standard. Is possible. The USB_A connector 13 may be a miniUSB_A terminal or a microUSB_A terminal. The same applies to the USB_A connector 46 (FIG. 2) described later. Moreover, there is no restriction | limiting in particular about the number of the USB_A connectors 13 with which the USB interface 12 is provided.
When a device corresponding to a device defined by the USB standard is connected to the USB_A connector 13, the USB host controller 14 operates as a host side for this device, and recognizes the device and communicates with the device. Make it possible.

ここで、デバイスとは、例えばホストとして動作する装置に接続される入出力装置であり、ホストの制御に従ってデータをホストに出力し、或いは、ホストから入力されるデータを出力する。ここで、ホストとは、デバイスとしての入出力装置に対し、これら入出力装置を制御するコマンドを送信するコンピューター等が該当する。   Here, the device is an input / output device connected to a device operating as a host, for example, and outputs data to the host or outputs data input from the host according to the control of the host. Here, the host corresponds to a computer or the like that transmits a command for controlling the input / output device to the input / output device as a device.

第2プリンター20は、図示しない印刷ヘッド、搬送モーター、搬送ローラー、カッターユニット等の第2プリンター印刷部28を備え、カット紙やロール紙等の印刷媒体に、文字や画像を印刷(記録)する装置である。第2プリンター20は、USBインターフェイス21と、USBインターフェイス21を介して接続された機器との間でデータ通信を実行する通信部26と、通信部26が受信したデータに基づいて第2プリンター印刷部28を制御し、印刷を実行させる第2プリンター制御部27とを備えている。   The second printer 20 includes a second printer printing unit 28 such as a print head, a conveyance motor, a conveyance roller, and a cutter unit (not shown), and prints (records) characters and images on a print medium such as cut paper or roll paper. Device. The second printer 20 includes a USB interface 21, a communication unit 26 that executes data communication with a device connected via the USB interface 21, and a second printer printing unit based on data received by the communication unit 26. 28, and a second printer control unit 27 that executes printing.

USBインターフェイス21が備えるUSB_Bコネクター22は、USB規格によりデバイス側の装置のコネクターとして指定された形状及び端子を有するメス側コネクターであって、USB規格に準拠したUSBケーブル2A、2Cを接続可能である。USB_Bコネクター22は、miniUSB_B端子やmicroUSB_B端子としてもよい。なお、後述するUSB_Bコネクター41(図2)も同様である。USBデバイスコントローラー23は、USB規格により規定されたデバイス側の機器として動作する。USBデバイスコントローラー23は、USB_Bコネクター22にUSBケーブルを介して接続された機器に対してUSBデバイスクラスIDやデバイスID等を通知し、この機器から送信される制御データに従って、通信を実行する。   The USB_B connector 22 included in the USB interface 21 is a female connector having a shape and a terminal designated as a device-side device connector according to the USB standard, and can connect USB cables 2A and 2C compliant with the USB standard. . The USB_B connector 22 may be a miniUSB_B terminal or a microUSB_B terminal. The same applies to the USB_B connector 41 (FIG. 2) described later. The USB device controller 23 operates as a device on the device side defined by the USB standard. The USB device controller 23 notifies a device connected to the USB_B connector 22 via a USB cable, such as a USB device class ID and a device ID, and executes communication according to control data transmitted from the device.

通信部26は、USBインターフェイス21を介してコマンドやデータを受信して、受信バッファー25に一時的に記憶する。また、通信部26は、第2プリンター20のステータスを示すデータや制御コマンド等を、USBインターフェイス21を介して送信する。
第2プリンター制御部27は、受信バッファー25に記憶されたコマンドを受信順に読み出して実行する。例えば、第2プリンター制御部27は、受信バッファー25からステータスの送信を要求するコマンドを読み出した場合、第2プリンター20の動作状態を示すステータス情報を生成して、通信部26により送信する。また、例えば、第2プリンター制御部27は、受信バッファー25から印刷データを伴う印刷コマンドを読み出した場合、このコマンドに従って第2プリンター印刷部28を制御して印刷を実行し、印刷が完了したことを示す完了通知またはエラーが発生したことを示すエラー通知を生成して、通信部26により、USBインターフェイス21から送信する。
The communication unit 26 receives commands and data via the USB interface 21 and temporarily stores them in the reception buffer 25. In addition, the communication unit 26 transmits data indicating the status of the second printer 20, a control command, and the like via the USB interface 21.
The second printer control unit 27 reads and executes the commands stored in the reception buffer 25 in the order of reception. For example, when the second printer control unit 27 reads a command requesting status transmission from the reception buffer 25, the second printer control unit 27 generates status information indicating the operation state of the second printer 20 and transmits the status information by the communication unit 26. For example, when the second printer control unit 27 reads a print command accompanied by print data from the reception buffer 25, the second printer control unit 27 controls the second printer printing unit 28 according to this command to execute printing, and printing is completed. A completion notification indicating that an error has occurred or an error notification indicating that an error has occurred is generated and transmitted from the USB interface 21 by the communication unit 26.

第1プリンター30は、2つのUSBインターフェイス40、45を備え、USBインターフェイス40にはUSBケーブル2Bを介してホストコンピューター10が接続され、USBインターフェイス45にはUSBケーブル2Cを介して第2プリンター20が接続されている。
第1プリンター30は、USBインターフェイス40、45を介した通信を制御する通信制御部31と、図示しない印刷ヘッド、搬送モーター、搬送ローラー、カッターユニット等を備えて印刷を行う第1プリンター印刷部60と、通信制御部31が送受信するデータに基づいて第1プリンター印刷部60を制御して印刷を実行させる第1プリンター制御部32(印刷制御部)とを備える。
The first printer 30 includes two USB interfaces 40 and 45, the host computer 10 is connected to the USB interface 40 via the USB cable 2B, and the second printer 20 is connected to the USB interface 45 via the USB cable 2C. It is connected.
The first printer 30 includes a communication control unit 31 that controls communication via the USB interfaces 40 and 45, and a first printer printing unit 60 that includes a print head, a conveyance motor, a conveyance roller, a cutter unit, and the like (not shown) to perform printing. And a first printer control unit 32 (printing control unit) that controls the first printer printing unit 60 based on data transmitted and received by the communication control unit 31 to execute printing.

図2は、印刷システム1の機能ブロック図であり、第1プリンター30の構成について特に詳細に示している。
図2に示すように、USBインターフェイス40(第1のインターフェイス)は、USB_Bコネクター41(デバイス用のコネクター)とUSBデバイスコントローラー42(デバイス制御回路)とを備え、USBインターフェイス45(第2のインターフェイス)は、USB_Aコネクター46(ホスト用のコネクター)とUSBホストコントローラー47(ホスト制御回路)とを備える。
FIG. 2 is a functional block diagram of the printing system 1 and particularly shows the configuration of the first printer 30 in detail.
As shown in FIG. 2, the USB interface 40 (first interface) includes a USB_B connector 41 (device connector) and a USB device controller 42 (device control circuit), and a USB interface 45 (second interface). Includes a USB_A connector 46 (connector for host) and a USB host controller 47 (host control circuit).

USB_Bコネクター41は、USB_Bコネクター22と同様、USB規格によりデバイス側の装置のコネクターとして指定された形状及び端子を有するメス側コネクターであり、USBケーブル2Bが接続される。
また、USB_Aコネクター46は、USB_Aコネクター13と同様、USB規格によりホスト側の装置のコネクターとして指定された形状及び端子を有するメス側コネクターであって、USBケーブル2Cが接続される。なお、USBインターフェイス45が備えるUSB_Aコネクター46の数については特に制限はない。
Similar to the USB_B connector 22, the USB_B connector 41 is a female connector having a shape and a terminal designated as a device-side device connector according to the USB standard, and is connected to the USB cable 2B.
Similarly to the USB_A connector 13, the USB_A connector 46 is a female connector having a shape and a terminal designated as a connector of a host side device according to the USB standard, and is connected to the USB cable 2 </ b> C. The number of USB_A connectors 46 included in the USB interface 45 is not particularly limited.

USBデバイスコントローラー42は、USB_Bコネクター41に接続された機器に対してUSBデバイスクラスIDやデバイスID等を通知し、この機器から送信される制御データに従って、通信を実行する。一方、USBホストコントローラー47は、USB規格により規定されたデバイスに該当する機器がUSB_Aコネクター46に接続された場合に、この機器に対してホスト側として動作し、デバイスの認識及びデバイスとの間の通信を可能とする。
つまり、第1プリンター30は、USBインターフェイス40に接続された機器(本実施形態ではホストコンピューター10)に対してはデバイスとして動作し、USBインターフェイス45に接続された機器(本実施形態では第2プリンター20)に対してはホストとして動作する。
The USB device controller 42 notifies the device connected to the USB_B connector 41 of the USB device class ID, device ID, and the like, and executes communication according to control data transmitted from the device. On the other hand, when a device corresponding to a device specified by the USB standard is connected to the USB_A connector 46, the USB host controller 47 operates as a host side with respect to this device, and recognizes the device and makes a connection between the device and the device. Enable communication.
That is, the first printer 30 operates as a device for a device connected to the USB interface 40 (the host computer 10 in this embodiment), and a device connected to the USB interface 45 (the second printer in this embodiment). 20) acts as a host.

また、第1プリンター30は、通信制御部31に接続されたメモリー33(記憶部)、及び第1プリンター制御部32に接続されたメモリー34を備える。これらのメモリー33、34はコマンドやデータを一時的に記憶する記憶部である。また、第1プリンター印刷部60は、図2に示すように、印刷ヘッド61、搬送モーター62、及びカッターユニット63を備え、図示しないカット紙やロール紙等の印刷媒体を搬送モーター62により搬送し、印刷ヘッド61により文字や画像を印刷し、印刷後の印刷媒体をカッターユニット63によりカットして出力する。   The first printer 30 includes a memory 33 (storage unit) connected to the communication control unit 31 and a memory 34 connected to the first printer control unit 32. These memories 33 and 34 are storage units for temporarily storing commands and data. As shown in FIG. 2, the first printer printing unit 60 includes a print head 61, a conveyance motor 62, and a cutter unit 63, and conveys a print medium such as cut paper or roll paper (not shown) by the conveyance motor 62. The print head 61 prints characters and images, and the printed print medium is cut by the cutter unit 63 and output.

通信制御部31は、USBインターフェイス40、45の双方に接続され、これらUSBインターフェイス40、45を介してホストコンピューター10と第2プリンター20との各々に対して通信を実行する。
通信制御部31は、ホストコンピューター10から送信されたコマンドやデータをUSBインターフェイス40により受信した場合、受信したコマンドやデータをいったんメモリー33に記憶し、USBインターフェイス45によって第2プリンター20に対して送信する。これにより、ホストコンピューター10が送信したコマンドやデータが第2プリンター20に送信される。ここで、第1プリンター30は、ホストコンピューター10に対してはUSBインターフェイス40によりデバイスとして機能するので、ホストコンピューター10は、USBインターフェイス12に接続されたデバイスにコマンドやデータを送信する動作を行えば良い。言い換えれば、USBインターフェイス12にUSBケーブル2A(図1)により第2プリンター20が接続された場合と同様に、コマンドやデータを送信する。
一方、第2プリンター20に対して、第1プリンター30はUSBインターフェイス45によりホストとして機能するので、第2プリンター20は、ホストから送信されたコマンドやデータを受信した場合と同様に、このコマンドやデータに従って動作する。言い換えれば、第2プリンター20は、USBインターフェイス21にUSBケーブル2Aによりホストコンピューター10が接続された場合と同様に、コマンドやデータを受信して動作する。従って、ホストコンピューター10及び第2プリンター20は、いずれも、ホストコンピューター10と第2プリンター20とがUSBケーブル2Aにより直接接続された場合と同様に動作する。
The communication control unit 31 is connected to both the USB interfaces 40 and 45, and performs communication with each of the host computer 10 and the second printer 20 via the USB interfaces 40 and 45.
When the communication control unit 31 receives a command or data transmitted from the host computer 10 via the USB interface 40, the communication control unit 31 temporarily stores the received command or data in the memory 33 and transmits it to the second printer 20 via the USB interface 45. To do. As a result, the command and data transmitted by the host computer 10 are transmitted to the second printer 20. Here, since the first printer 30 functions as a device with respect to the host computer 10 by the USB interface 40, the host computer 10 performs an operation of transmitting a command or data to a device connected to the USB interface 12. good. In other words, commands and data are transmitted in the same manner as when the second printer 20 is connected to the USB interface 12 via the USB cable 2A (FIG. 1).
On the other hand, since the first printer 30 functions as a host by the USB interface 45 with respect to the second printer 20, the second printer 20 receives this command and data in the same manner as when receiving a command or data transmitted from the host. Operates according to data. In other words, the second printer 20 operates by receiving commands and data in the same manner as when the host computer 10 is connected to the USB interface 21 via the USB cable 2A. Accordingly, both the host computer 10 and the second printer 20 operate in the same manner as when the host computer 10 and the second printer 20 are directly connected by the USB cable 2A.

また、通信制御部31は、第2プリンター20から印刷結果の通知やステータス情報等のデータが送信され、これらのデータをUSBインターフェイス45により受信した場合、受信したデータをいったんメモリー33に記憶し、USBインターフェイス40によってホストコンピューター10に送信する。これにより、第2プリンター20が送信した印刷結果の通知やステータス等がホストコンピューター10に送信される。
ここで、第1プリンター30は第2プリンター20に対してホストとして機能するので、第2プリンター20は、ホストに対して印刷結果の通知やステータス等を送信する場合と同様に動作する。また、ホストコンピューター10に対して第1プリンター30はデバイスとして機能するので、ホストコンピューター10は、USBインターフェイス12に接続されたデバイスから印刷結果の通知やステータス等が送信された場合と同様に動作する。
つまり、ホストコンピューター10及び第2プリンター20は、USBインターフェイス12とUSBインターフェイス21とがUSBケーブル2A(図1)により相互に接続された場合と同様に動作する。
In addition, when the communication control unit 31 receives data such as a print result notification or status information from the second printer 20 and receives the data via the USB interface 45, the communication control unit 31 temporarily stores the received data in the memory 33, The data is transmitted to the host computer 10 through the USB interface 40. As a result, notification of the print result transmitted from the second printer 20, status, and the like are transmitted to the host computer 10.
Here, since the first printer 30 functions as a host with respect to the second printer 20, the second printer 20 operates in the same manner as when a print result notification or status is transmitted to the host. Further, since the first printer 30 functions as a device with respect to the host computer 10, the host computer 10 operates in the same manner as when a print result notification or status is transmitted from a device connected to the USB interface 12. .
That is, the host computer 10 and the second printer 20 operate in the same manner as when the USB interface 12 and the USB interface 21 are connected to each other by the USB cable 2A (FIG. 1).

そして、通信制御部31は、メモリー33に記憶したコマンドやデータを解析し、第1プリンター30が印刷を行う条件に合致しているか否かを判定し、印刷する条件に合致する場合は、印刷コマンド及び印刷データを生成して、第1プリンター制御部32に出力する機能を有する。
例えば、通信制御部31は、ホストコンピューター10が送信した印刷データに、予め設定された特定の文字列が含まれていることを検出した場合に、その文字列に対応づけて予めメモリー33や通信制御部31が備えるROM(図示略)に記憶している印刷コマンド及び印刷データを、第1プリンター制御部32に出力する。具体的には、ホストコンピューター10がPOS端末として動作し、レシートを印刷させる印刷コマンド及び印刷データを送信した場合、通信制御部31は、印刷データ中に予め設定された特定の商品名や商品区分のデータが含まれているか否かを判別する。そして、印刷データに該当する商品名や商品区分のデータが含まれている場合、通信制御部31は、予め記憶しているクーポンを印刷させる印刷コマンド及び印刷データを第1プリンター制御部32に出力する。これにより、第1プリンター30は、第2プリンター20によって特定のレシートが印刷される場合に、そのレシートに対応するクーポンを発行する。
Then, the communication control unit 31 analyzes the command and data stored in the memory 33, determines whether or not the first printer 30 matches the printing conditions, and if the printing conditions match the printing conditions, prints It has a function of generating commands and print data and outputting them to the first printer control unit 32.
For example, when the communication control unit 31 detects that the print data transmitted by the host computer 10 includes a specific character string set in advance, the communication control unit 31 associates the character string with the memory 33 or the communication in advance. Print commands and print data stored in a ROM (not shown) provided in the control unit 31 are output to the first printer control unit 32. Specifically, when the host computer 10 operates as a POS terminal and transmits a print command and print data for printing a receipt, the communication control unit 31 specifies a specific product name or product category set in advance in the print data. It is determined whether or not the data is included. If the print data includes product name and product category data, the communication control unit 31 outputs a print command and print data for printing a previously stored coupon to the first printer control unit 32. To do. Thereby, when a specific receipt is printed by the second printer 20, the first printer 30 issues a coupon corresponding to the receipt.

通信制御部31は、第2プリンター20が送信した印刷結果の通知やステータス等のデータが予め指定されたデータに該当する場合に、そのデータに対応づけて予めメモリー33や通信制御部31が備えるROM(図示略)に記憶している印刷コマンド及び印刷データを、第1プリンター制御部32に出力する。例えば、通信制御部31は、第2プリンター20が送信したデータに印刷エラーを示すデータが含まれているか否かを判別し、印刷エラーを示すデータが含まれている場合はエラーを報知する帳票を印刷させる印刷コマンド及び印刷データを第1プリンター制御部32に出力する。これにより、第1プリンター30は、第2プリンター20の印刷にエラーが発生した場合に、そのエラーを報知する帳票を印刷できる。   The communication control unit 31 includes the memory 33 and the communication control unit 31 in advance in association with data designated in advance when data such as a print result notification or status transmitted by the second printer 20 corresponds to data designated in advance. Print commands and print data stored in a ROM (not shown) are output to the first printer control unit 32. For example, the communication control unit 31 determines whether or not the data transmitted by the second printer 20 includes data indicating a printing error, and if the data indicating the printing error is included, a report for informing the error A print command and print data for printing are output to the first printer control unit 32. Thus, when an error occurs in printing by the second printer 20, the first printer 30 can print a form that notifies the error.

このように、第1プリンター30は、ホストコンピューター10が送信したデータを第2プリンター20に送信するとともに、このデータに基づいてホストコンピューター10及び第2プリンター20とは独立して動作を実行できる。また、第2プリンター20が送信したデータをホストコンピューター10に送信するとともに、このデータに基づいてホストコンピューター10及び第2プリンター20とは独立して動作を実行できる。
従って、ホストコンピューター10と第2プリンター20との間に第1プリンター30を介設してUSBケーブル2B、2Cで接続する。これにより、ホストコンピューター10と第2プリンター20とが直接データを送受信して行う機能を実行可能となる。また、ホストコンピューター10及び第2プリンター20とは独立した新たな動作を、第1プリンター30によって実行できる。このため、既存の印刷システムに新たな機能を容易に追加できる。さらに、第1プリンター30は、デバイスとして動作するUSBインターフェイス40によりホストコンピューター10に接続され、ホストとして動作するUSBインターフェイス45により第2プリンター20に接続される。このため、ホストコンピューター10及び第2プリンター20は、USBケーブル2Aにより相互に直接接続された場合と同じ動作を実行すればよく、ホストコンピューター10で動作するアプリケーションプログラムやデバイスドライバープログラムの変更や、第2プリンター20の動作条件の変更等を行うことなく、ホストコンピューター10と第2プリンター20の間に第1プリンター30を設置できる。
As described above, the first printer 30 transmits the data transmitted from the host computer 10 to the second printer 20 and can execute an operation independently of the host computer 10 and the second printer 20 based on this data. Further, the data transmitted by the second printer 20 can be transmitted to the host computer 10 and the operation can be executed independently of the host computer 10 and the second printer 20 based on this data.
Accordingly, the first printer 30 is interposed between the host computer 10 and the second printer 20, and the USB cables 2B and 2C are connected. As a result, it is possible to execute a function that the host computer 10 and the second printer 20 perform by directly transmitting and receiving data. Further, the first printer 30 can execute a new operation independent of the host computer 10 and the second printer 20. For this reason, a new function can be easily added to the existing printing system. Further, the first printer 30 is connected to the host computer 10 by a USB interface 40 that operates as a device, and is connected to the second printer 20 by a USB interface 45 that operates as a host. For this reason, the host computer 10 and the second printer 20 only need to execute the same operation as when they are directly connected to each other by the USB cable 2A. The first printer 30 can be installed between the host computer 10 and the second printer 20 without changing the operating conditions of the second printer 20.

また、第1プリンター30は、第1プリンター印刷部60を制御する第1プリンター制御部32が搭載されたメイン基板36(印刷制御基板)と、このメイン基板36とは別に、第1プリンター30の本体に対して着脱可能に設けられたインターフェイス基板35を備えている。インターフェイス基板35には、通信制御部31、メモリー33、及びUSBインターフェイス40、45の各部が実装されている。インターフェイス基板35に実装された各部と、メイン基板36に実装された第1プリンター制御部32とは、第1プリンター30が内蔵する内部インターフェイス37を介して相互にデータ入出力可能に接続される。また、インターフェイス基板35上の各部に対し内部インターフェイス37を介して電力を供給してもよいし、インターフェイス基板35に外部電源が接続される構成としてインターフェイス基板35からメイン基板36に電力を供給してもよい。
この構成により、例えば、一つのUSBインターフェイスを備えたインターフェイス基板を、図2に示すインターフェイス基板35と交換することによって、ホストコンピューター10と第2プリンター20との間に設置可能な第1プリンター30を実現できる。
In addition, the first printer 30 includes a main board 36 (printing control board) on which a first printer control unit 32 that controls the first printer printing unit 60 is mounted, and the first printer 30. An interface board 35 is provided so as to be detachable from the main body. On the interface board 35, the communication control unit 31, the memory 33, and the USB interfaces 40 and 45 are mounted. Each unit mounted on the interface board 35 and the first printer control unit 32 mounted on the main board 36 are connected to each other via an internal interface 37 built in the first printer 30 so that data can be input / output. Further, power may be supplied to each part on the interface board 35 via the internal interface 37, or power may be supplied from the interface board 35 to the main board 36 as an external power source is connected to the interface board 35. Also good.
With this configuration, for example, the first printer 30 that can be installed between the host computer 10 and the second printer 20 can be obtained by replacing the interface board having one USB interface with the interface board 35 shown in FIG. realizable.

図3は、印刷システムの各部の動作を示すシーケンス図であり、(A)はホストコンピューター10の動作を示し、(B)は第1プリンター30の動作を示し、(C)は第2プリンター20の動作を示す。
ホストコンピューター10は、アプリケーション実行部11Aの動作により文書等が作成され、印刷指示が出力されると(ステップS11)、この印刷指示に基づいてデバイスドライバー実行部11Bが第2プリンター20を動作させる印刷コマンドと印刷データを生成し(ステップS12)、生成した印刷コマンド及び印刷データをUSBインターフェイス12から送信する(ステップS13)。
FIG. 3 is a sequence diagram showing the operation of each part of the printing system. (A) shows the operation of the host computer 10, (B) shows the operation of the first printer 30, and (C) shows the second printer 20. The operation of is shown.
When the host computer 10 creates a document or the like by the operation of the application execution unit 11A and outputs a print instruction (step S11), the device driver execution unit 11B performs printing for operating the second printer 20 based on the print instruction. A command and print data are generated (step S12), and the generated print command and print data are transmitted from the USB interface 12 (step S13).

ホストコンピューター10が送信した印刷コマンド及び印刷データは、第1プリンター30がUSBインターフェイス40によって受信する(ステップS21)。通信制御部31は、USBインターフェイス40により受信した印刷コマンドと印刷データをメモリー33に記憶し(ステップS22)、この印刷コマンドと印刷データとをUSBインターフェイス45から送信する(ステップS23)。
ここで、通信制御部31は、メモリー33に記憶した印刷データを解析する(ステップS24)。通信制御部31は、解析した印刷データが印刷条件に該当するか否かを判別し(ステップS25)、印刷条件に該当する場合は(ステップS25;Yes)、予め設定された印刷コマンド及び印刷データを第1プリンター制御部32に出力して、印刷を実行させる(ステップS26)。また、メモリー33に記憶した印刷データが印刷条件に該当しない場合(ステップS25;No)、通信制御部31は、いったん処理を終了して待機する。
The first printer 30 receives the print command and print data transmitted by the host computer 10 through the USB interface 40 (step S21). The communication control unit 31 stores the print command and print data received by the USB interface 40 in the memory 33 (step S22), and transmits the print command and print data from the USB interface 45 (step S23).
Here, the communication control unit 31 analyzes the print data stored in the memory 33 (step S24). The communication control unit 31 determines whether or not the analyzed print data meets the print conditions (step S25). If the print data meets the print conditions (step S25; Yes), the print command and print data set in advance are determined. Is output to the first printer control unit 32 to execute printing (step S26). If the print data stored in the memory 33 does not meet the printing conditions (step S25; No), the communication control unit 31 once ends the process and waits.

第2プリンター20は、第1プリンター30が送信した印刷コマンド及び印刷データを受信し(ステップS41)、受信した印刷コマンド及び印刷データに従って、第2プリンター制御部27が第2プリンター印刷部28を制御して印刷を実行する(ステップS42)。
第2プリンター制御部27は、印刷が成功したか失敗したかを判定し(ステップS43)、印刷に成功した場合は(ステップS43;Yes)、印刷成功を出力し、通信部26が印刷成功通知を生成する(ステップS44)。また、印刷に失敗した場合は(ステップS43;No)、第2プリンター制御部27は印刷エラーを出力し、通信部26は印刷エラー通知を生成する(ステップS45)。
その後、通信部26は、ステップS44で生成した印刷完了通知またはステップS45で生成した印刷エラー通知を、USBインターフェイス21から送信し(ステップS46)、本処理を終了する。
The second printer 20 receives the print command and print data transmitted by the first printer 30 (step S41), and the second printer control unit 27 controls the second printer print unit 28 according to the received print command and print data. Then, printing is executed (step S42).
The second printer control unit 27 determines whether the printing is successful or unsuccessful (step S43). If the printing is successful (step S43; Yes), the printing success is output, and the communication unit 26 notifies the printing success. Is generated (step S44). If printing has failed (step S43; No), the second printer control unit 27 outputs a printing error, and the communication unit 26 generates a printing error notification (step S45).
Thereafter, the communication unit 26 transmits the print completion notification generated in step S44 or the print error notification generated in step S45 from the USB interface 21 (step S46), and the process ends.

第1プリンター30は、第2プリンター20が送信した通知をUSBインターフェイス45により受信してメモリー33に記憶し(ステップS27)、この通知をUSBインターフェイス40からホストコンピューター10に送信する(ステップS28)。
ホストコンピューター10は、USBインターフェイス12によって第1プリンター30が送信した通知を受信する(ステップS14)。
また、第1プリンター30の通信制御部31は、メモリー33に記憶した通知を解析し、印刷エラーを示す通知か否かを判別する(ステップS29)。印刷エラーの通知であった場合は(ステップS29;Yes)、予め設定された印刷コマンド及び印刷データを第1プリンター制御部32に出力して、印刷を実行させる(ステップS30)。また、メモリー33に記憶した通知が印刷エラーの通知でない場合(ステップS29;No)、通信制御部31は、そのまま本処理を終了する。
The first printer 30 receives the notification transmitted by the second printer 20 through the USB interface 45 and stores it in the memory 33 (step S27), and transmits this notification from the USB interface 40 to the host computer 10 (step S28).
The host computer 10 receives the notification transmitted by the first printer 30 through the USB interface 12 (step S14).
Further, the communication control unit 31 of the first printer 30 analyzes the notification stored in the memory 33, and determines whether or not the notification indicates a printing error (step S29). If the notification is a print error notification (step S29; Yes), a preset print command and print data are output to the first printer control unit 32 to execute printing (step S30). If the notification stored in the memory 33 is not a print error notification (step S29; No), the communication control unit 31 ends this process as it is.

以上説明したように、本発明を適用した実施形態に係る印刷システム1によれば、第1プリンター30は、デバイスとしてデータを受信するUSBインターフェイス40と、ホストとしてデータを送信するUSBインターフェイス45と、USBインターフェイス40でデバイスとして受信したデータに基づいて印刷を実行する第1プリンター印刷部60と、を備えるので、ホストとして動作する装置とデバイスとして動作する装置とのどちらにも接続可能である。そして、図3のステップS11〜S13、S21〜S26、S41〜S46に示したように、USBインターフェイス40に接続されたホストコンピューター10に対してはデバイスとして動作し、USBインターフェイス45に接続された第2プリンター20に対してはホストとして動作し、ホストコンピューター10が送信するデータを受信して第2プリンター20に送信できる。
従って、例えば、ホストとして動作する装置とデバイスとして動作する装置との間に介在して、ホストとして動作する装置が送信したデータをデバイスとして受信し、このデータをデバイスとして動作する別の装置に送信することができ、これらホスト及びデバイスの各装置の構成を変更することなく、これらの装置の間に設置して、デバイスとして動作する装置が送信したデータに基づき印刷を実行できる。
As described above, according to the printing system 1 according to the embodiment to which the present invention is applied, the first printer 30 includes the USB interface 40 that receives data as a device, the USB interface 45 that transmits data as a host, Since the first printer printing unit 60 that executes printing based on data received as a device by the USB interface 40 is provided, it can be connected to both a device that operates as a host and a device that operates as a device. Then, as shown in steps S11 to S13, S21 to S26, and S41 to S46 in FIG. 3, the host computer 10 connected to the USB interface 40 operates as a device, and the first connected to the USB interface 45. The second printer 20 operates as a host and can receive data transmitted from the host computer 10 and transmit it to the second printer 20.
Therefore, for example, intervening between a device operating as a host and a device operating as a device, receives data transmitted by a device operating as a host as a device, and transmits this data to another device operating as a device. Without changing the configuration of each device of the host and the device, printing can be executed based on data transmitted between devices that are installed between these devices and operate as devices.

また、第1プリンター30は、USBインターフェイス40により受信したデータを記憶するメモリー33を備え、第1プリンター印刷部60は、第1プリンター制御部32の制御により、通信制御部31が生成したコマンド及びデータに従って、メモリー33に記憶したデータに基づき印刷を実行する。これにより、第1プリンター30は、ホストコンピューター10から受信したデータに基づき、例えば受信したデータを第2プリンター20に送信して、第2プリンター20に印刷を実行させるとともに、受信したデータに基づいて第1プリンター30が印刷を行うなど、受信したデータに基づく別の動作を実行できる。   Further, the first printer 30 includes a memory 33 that stores data received by the USB interface 40, and the first printer printing unit 60 controls the commands generated by the communication control unit 31 under the control of the first printer control unit 32. Printing is executed based on the data stored in the memory 33 according to the data. Thereby, the first printer 30 transmits the received data to the second printer 20 based on the data received from the host computer 10, for example, and causes the second printer 20 to execute printing, and based on the received data. Another operation based on the received data, such as printing by the first printer 30, can be executed.

また、第1プリンター30において、USBインターフェイス40、45は、ホストとして動作する装置とターゲットデバイスとして動作する装置との動作を制御する所定のプロトコルとして、例えばUSB規格に対応し、USBインターフェイス40は、デバイス用のUSB_Bコネクター41、及び、ホストとして動作する装置に接続された場合にデバイスとしての動作を制御する第1のプロトコルに対応するUSBデバイスコントローラー42を備える。一方、USBインターフェイス45は、ホスト用のUSB_Aコネクター46、及び、デバイスとして動作する装置の動作を制御する第2のプロトコルに対応するホスト用のUSBホストコントローラー47を備える。USBインターフェイス45に接続された装置に対してはホストとして動作し、USBインターフェイス40に接続された装置に対してはデバイスとして動作する。このため、ホストコンピューター10及び第2プリンター20のように、ホストとして動作する装置とデバイスとして動作する装置との間に、各装置の構成を変更することなく設置可能である。   In the first printer 30, the USB interfaces 40 and 45 correspond to, for example, the USB standard as a predetermined protocol for controlling the operation of a device that operates as a host and a device that operates as a target device. A USB_B connector 41 for a device and a USB device controller 42 corresponding to a first protocol for controlling the operation as a device when connected to a device operating as a host are provided. On the other hand, the USB interface 45 includes a USB_A connector 46 for the host and a USB host controller 47 for the host corresponding to the second protocol for controlling the operation of the device operating as a device. The device connected to the USB interface 45 operates as a host, and the device connected to the USB interface 40 operates as a device. For this reason, it can install without changing the structure of each apparatus between the apparatus which operate | moves as a host and the apparatus which operate | moves as a device like the host computer 10 and the 2nd printer 20. FIG.

なお、上記実施形態は本発明を適用した一態様を示すものであって、本発明を限定するものではない。例えば、上記実施形態においては、第1プリンター30が備えるUSBインターフェイス40にホストコンピューター10が接続され、USBインターフェイス45に第2プリンター20が接続された構成を例に挙げて説明したが、本発明はこれに限定されるものではなく、USBインターフェイス40に接続される装置はホストとして動作するものであれば特に制限されず、例えばUSBホストコントローラーを備えた携帯型の端末装置や他のプリンター等であってもよい。また、USBインターフェイス45に接続される装置はデバイスとして動作する装置であれば特に制限はなく、プリンターの他、他の入出力デバイスであってもよい。
また、上述した実施形態では第2プリンター20が備える第2プリンター印刷部28及び第1プリンター30が備える第1プリンター印刷部60について、カット紙やロール紙に印刷する構成を例に挙げて説明したが、その具体的な構成は限定されず、例えば、サーマルプリンター、インクジェットプリンター、ドットインパクト式プリンター、レーザープリンター、その他の各種プリンターとしてもよい。さらに、図1及び図2に示す各機能ブロックのうち、少なくとも制御部11、通信部26、第2プリンター制御部27、通信制御部31及び第1プリンター制御部32を含む各部はハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。さらに、これらの各部は外部接続される記憶媒体に記憶させたプログラムを実行することにより、図3のフローチャートに係る動作を含む各種動作を実行する構成としてもよい。
また、USBインターフェイス40とUSBインターフェイス45とは別個のハードウェアとして実現される場合に限定されず、例えば、USBデバイスコントローラー42とUSBホストコントローラー47との機能を兼ね備えた一つのハードウェアに、USB_Bコネクター41及びUSB_Aコネクター46を接続して構成することも勿論可能である。
In addition, the said embodiment shows the one aspect | mode which applied this invention, Comprising: This invention is not limited. For example, in the above-described embodiment, the configuration in which the host computer 10 is connected to the USB interface 40 included in the first printer 30 and the second printer 20 is connected to the USB interface 45 has been described as an example. The device connected to the USB interface 40 is not particularly limited as long as it operates as a host. For example, a portable terminal device equipped with a USB host controller or other printers may be used. May be. The device connected to the USB interface 45 is not particularly limited as long as it is a device that operates as a device, and may be another input / output device in addition to a printer.
In the above-described embodiment, the second printer printing unit 28 included in the second printer 20 and the first printer printing unit 60 included in the first printer 30 have been described with reference to an example of a configuration for printing on cut paper or roll paper. However, the specific configuration is not limited, and for example, a thermal printer, an inkjet printer, a dot impact printer, a laser printer, and other various printers may be used. Further, among the functional blocks shown in FIGS. 1 and 2, at least the control unit 11, the communication unit 26, the second printer control unit 27, the communication control unit 31, and the first printer control unit 32 include hardware and software. It can be arbitrarily realized by the cooperation of and does not suggest a specific hardware configuration. Furthermore, each of these units may be configured to execute various operations including the operation according to the flowchart of FIG. 3 by executing a program stored in an externally connected storage medium.
In addition, the USB interface 40 and the USB interface 45 are not limited to being realized as separate hardware. For example, the USB_B connector is combined with one piece of hardware having the functions of the USB device controller 42 and the USB host controller 47. Of course, it is possible to connect 41 and the USB_A connector 46.

1…印刷システム、2A、2B、2C…USBケーブル、10…ホストコンピューター、11…制御部、12…USBインターフェイス、20…第2プリンター(第2の印刷装置)、21…USBインターフェイス、27…第2プリンター制御部、28…第2プリンター印刷部、30…第1プリンター(印刷装置、第1の印刷装置)、31…通信制御部、32…第1プリンター制御部(印刷制御部)、33…メモリー(記憶部)、35…インターフェイス基板、36…メイン基板(印刷制御基板)、40…USBインターフェイス(第1のインターフェイス)、45…USBインターフェイス(第2のインターフェイス)、41…USB_Bコネクター(デバイス用のコネクター)、42…USBデバイスコントローラー(デバイス制御回路)、46…USB_Aコネクター(ホスト用のコネクター)、47…USBホストコントローラー(ホスト制御回路)、60…第1プリンター印刷部。   DESCRIPTION OF SYMBOLS 1 ... Printing system, 2A, 2B, 2C ... USB cable, 10 ... Host computer, 11 ... Control part, 12 ... USB interface, 20 ... 2nd printer (2nd printing apparatus), 21 ... USB interface, 27 ... 1st 2 printer control unit, 28 ... second printer printing unit, 30 ... first printer (printing device, first printing device), 31 ... communication control unit, 32 ... first printer control unit (printing control unit), 33 ... Memory (storage unit), 35 ... interface board, 36 ... main board (printing control board), 40 ... USB interface (first interface), 45 ... USB interface (second interface), 41 ... USB_B connector (for device) Connector), 42 ... USB device controller (device control circuit) , 46 ... USB_A connector (connector for host), 47 ... USB host controller (host controller), 60 ... first printer printing unit.

Claims (7)

デバイスとしてデータを受信する第1のインターフェイスと、
ホストとしてデータを送信する第2のインターフェイスと、
前記第1のインターフェイスでデバイスとして受信したデータに基づいて印刷を実行する印刷部と、
を備えたことを特徴とする印刷装置。
A first interface for receiving data as a device;
A second interface for transmitting data as a host;
A printing unit that performs printing based on data received as a device by the first interface;
A printing apparatus comprising:
前記第1のインターフェイスで前記デバイスとして受信したデータを記憶する記憶部を備え、
前記印刷部は前記記憶部に記憶した前記デバイスとして受信したデータを解析し、解析結果に基づいて印刷を実行する請求項1記載の印刷装置。
A storage unit for storing data received as the device by the first interface;
The printing apparatus according to claim 1, wherein the printing unit analyzes data received as the device stored in the storage unit, and executes printing based on the analysis result.
前記第1のインターフェイスは、デバイス用のコネクター、及びホストとして動作する装置に接続された場合にデバイスとしての動作を制御する第1のプロトコルに対応するデバイス制御回路を備え、
前記第2のインターフェイスは、ホスト用のコネクター、及びデバイスとして動作する装置の動作を制御する第2のプロトコルに対応するホスト制御回路を備える
請求項1または2記載の印刷装置。
The first interface includes a device connector corresponding to a device and a device control circuit corresponding to a first protocol for controlling the operation as a device when connected to a device operating as a host,
The printing apparatus according to claim 1, wherein the second interface includes a host connector and a host control circuit corresponding to a second protocol for controlling an operation of the apparatus operating as a device.
前記第1のインターフェイス及び前記第2のインターフェイスを配設するインターフェイス基板と、
前記印刷部を制御して印刷を実行させる印刷制御部を配設する印刷制御基板と、
を有する請求項1から3のいずれか1項に記載の印刷装置。
An interface board on which the first interface and the second interface are disposed;
A print control board provided with a print control unit for controlling the printing unit to execute printing;
The printing apparatus according to claim 1, comprising:
印刷指示及び印刷データを送信するホストコンピューターと、
デバイスとして前記ホストコンピューターから送信された前記印刷指示及び前記印刷データを受信する第1のインターフェイス、前記第1のインターフェイスで受信した前記印刷指示及び前記印刷データをホストとして送信する第2のインターフェイス、及び前記第1のインターフェイスで受信した前記印刷データに基づいて印刷を実行する印刷部を有する第1の印刷装置と、
前記第1の印刷装置の第2のインターフェイスから送信された前記印刷指示及び印刷データを受信する通信部、及び前記通信部で受信された前記印刷指示に基づいて前記印刷データを印刷する第2の印刷装置と、
を備えることを特徴とする印刷システム。
A host computer for sending print instructions and print data;
A first interface for receiving the print instruction and the print data transmitted from the host computer as a device; a second interface for transmitting the print instruction and the print data received by the first interface as a host; and A first printing apparatus having a printing unit that performs printing based on the print data received by the first interface;
A communication unit that receives the print instruction and print data transmitted from the second interface of the first printing apparatus; and a second that prints the print data based on the print instruction received by the communication unit. A printing device;
A printing system comprising:
前記第1の印刷装置は、前記第1のインターフェイスで受信した印刷データを記憶する記憶部と、
前記記憶部に記憶した前記印刷データを解析する解析部と、を備え、
前記印刷部は、前記解析部で解析された解析結果に基づいて印刷を行う請求項6に記載の印刷システム。
The first printing apparatus includes a storage unit that stores print data received by the first interface;
An analysis unit that analyzes the print data stored in the storage unit,
The printing system according to claim 6, wherein the printing unit performs printing based on an analysis result analyzed by the analysis unit.
ホストから送信されたデータを受信するデバイス用端子と、
デバイスへ前記データを送信するホスト用端子と、
前記デバイス用端子で受信したデータに基づいて印刷を実行する印刷部と、
を備えたことを特徴とする印刷装置。
A device terminal for receiving data transmitted from the host;
A host terminal for transmitting the data to the device;
A printing unit that performs printing based on data received by the device terminal;
A printing apparatus comprising:
JP2012161213A 2012-07-19 2012-07-20 Printing apparatus and printing system Pending JP2014019088A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2012161213A JP2014019088A (en) 2012-07-20 2012-07-20 Printing apparatus and printing system
US13/933,771 US20140022576A1 (en) 2012-07-19 2013-07-02 Printing Device, Printing System, and Printing Method
EP13176774.1A EP2687978A3 (en) 2012-07-19 2013-07-17 Printing device, printing system, and printing method
CN201310301222.2A CN103577127B (en) 2012-07-19 2013-07-17 Printing equipment, print system and printing process
KR1020130084648A KR101446436B1 (en) 2012-07-19 2013-07-18 Printing device, printing system and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012161213A JP2014019088A (en) 2012-07-20 2012-07-20 Printing apparatus and printing system

Publications (2)

Publication Number Publication Date
JP2014019088A true JP2014019088A (en) 2014-02-03
JP2014019088A5 JP2014019088A5 (en) 2015-06-11

Family

ID=50194528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012161213A Pending JP2014019088A (en) 2012-07-19 2012-07-20 Printing apparatus and printing system

Country Status (1)

Country Link
JP (1) JP2014019088A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07297967A (en) * 1994-04-21 1995-11-10 Sharp Corp Image forming system
JPH09150566A (en) * 1995-11-30 1997-06-10 Toshiba Corp Method for processing information and device therefor
JPH11134140A (en) * 1997-10-31 1999-05-21 Canon Inc Data processor and print controller, data processing method of data processor and of printing controller, and storage medium for computer-readable program
JP2007087209A (en) * 2005-09-22 2007-04-05 Fuji Xerox Co Ltd Printing system, and image forming apparatus and its control method
JP2007136697A (en) * 2005-11-15 2007-06-07 Seiko Epson Corp Image forming system
JP2007276269A (en) * 2006-04-06 2007-10-25 Seiko Epson Corp Printer, and load distribution controlling method
JP2008027224A (en) * 2006-07-21 2008-02-07 Brother Ind Ltd Printing system, printer, program
JP2008052551A (en) * 2006-08-25 2008-03-06 Oki Data Corp Image processor and image processing system
JP2009066937A (en) * 2007-09-14 2009-04-02 Ricoh Co Ltd Printer system
JP2010052421A (en) * 2008-07-29 2010-03-11 Seiko Epson Corp Printing system and control method for the printing system, and control program
JP4710903B2 (en) * 2005-05-17 2011-06-29 セイコーエプソン株式会社 PRINT SYSTEM, POS SYSTEM, CONNECTION DEVICE, PRINT SYSTEM CONTROL METHOD AND ITS PROGRAM

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07297967A (en) * 1994-04-21 1995-11-10 Sharp Corp Image forming system
JPH09150566A (en) * 1995-11-30 1997-06-10 Toshiba Corp Method for processing information and device therefor
JPH11134140A (en) * 1997-10-31 1999-05-21 Canon Inc Data processor and print controller, data processing method of data processor and of printing controller, and storage medium for computer-readable program
JP4710903B2 (en) * 2005-05-17 2011-06-29 セイコーエプソン株式会社 PRINT SYSTEM, POS SYSTEM, CONNECTION DEVICE, PRINT SYSTEM CONTROL METHOD AND ITS PROGRAM
JP2007087209A (en) * 2005-09-22 2007-04-05 Fuji Xerox Co Ltd Printing system, and image forming apparatus and its control method
JP2007136697A (en) * 2005-11-15 2007-06-07 Seiko Epson Corp Image forming system
JP2007276269A (en) * 2006-04-06 2007-10-25 Seiko Epson Corp Printer, and load distribution controlling method
JP2008027224A (en) * 2006-07-21 2008-02-07 Brother Ind Ltd Printing system, printer, program
JP2008052551A (en) * 2006-08-25 2008-03-06 Oki Data Corp Image processor and image processing system
JP2009066937A (en) * 2007-09-14 2009-04-02 Ricoh Co Ltd Printer system
JP2010052421A (en) * 2008-07-29 2010-03-11 Seiko Epson Corp Printing system and control method for the printing system, and control program

Similar Documents

Publication Publication Date Title
KR101446436B1 (en) Printing device, printing system and printing method
US9030685B2 (en) Printing device, printing system, and printing method
US10638016B2 (en) Computer-readable storage medium and printing system
EP2687977A2 (en) Printing device and printing system
JP6036214B2 (en) Printer, printer system, and printer setting method
JP5031539B2 (en) Printing system, printing apparatus and printing method
JP2011128794A (en) Information processing method, information processing apparatus, and computer program
CN104346197B (en) Agent set, slave unit and method for updating program
WO2014156120A1 (en) Printing device, printing system, and printing system control method
JP2012084134A (en) Printing system and printer
JP5748910B2 (en) Inkjet digital printing method and system supporting distributed variable data
JP5939064B2 (en) Printing apparatus and printing system
JP6131640B2 (en) Printing apparatus, printing system, and printing method
JP2014019088A (en) Printing apparatus and printing system
JP4086770B2 (en) Information processing apparatus and transfer control method thereof
JP2013242802A5 (en)
JP2012192575A (en) Printer, and print history management program
JP2015014917A (en) Electronic apparatus, printing system, and control method of printing system
WO2020122134A1 (en) Printer system, printer setting method, printer, printer control program, printer setting device, and control program for printer setting device
JP5614084B2 (en) Information processing apparatus and information processing method
JP2012185702A (en) System, device control apparatus, control method, and program
JP2014019112A (en) Printing device, printing system, and pos system
JP2014021871A (en) Printer, printing system, and print control device
KR20090036886A (en) Image forming apparatus, host apparatus and image processing method thereof
JP2016218882A (en) Control method for printer, program and printer

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150420

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150420

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160223

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160401

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160906

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161027

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20170404