JP6111546B2 - Printing apparatus, printing system, and POS system - Google Patents

Printing apparatus, printing system, and POS system Download PDF

Info

Publication number
JP6111546B2
JP6111546B2 JP2012162088A JP2012162088A JP6111546B2 JP 6111546 B2 JP6111546 B2 JP 6111546B2 JP 2012162088 A JP2012162088 A JP 2012162088A JP 2012162088 A JP2012162088 A JP 2012162088A JP 6111546 B2 JP6111546 B2 JP 6111546B2
Authority
JP
Japan
Prior art keywords
data
printing
unit
print
printer
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.)
Active
Application number
JP2012162088A
Other languages
Japanese (ja)
Other versions
JP2014019113A5 (en
JP2014019113A (en
Inventor
整 古幡
整 古幡
島 章二
章二 島
克敏 寺島
克敏 寺島
善裕 上野
善裕 上野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2012162088A priority Critical patent/JP6111546B2/en
Priority to CN201310286379.2A priority patent/CN103568607B/en
Priority to EP13176461.5A priority patent/EP2687977A3/en
Priority to KR1020130084637A priority patent/KR101467690B1/en
Priority to US13/946,222 priority patent/US9129206B2/en
Publication of JP2014019113A publication Critical patent/JP2014019113A/en
Publication of JP2014019113A5 publication Critical patent/JP2014019113A5/ja
Application granted granted Critical
Publication of JP6111546B2 publication Critical patent/JP6111546B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

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

従来、コンピューター等の装置に接続された印刷装置によってレシート等を印刷するシステムが知られている(例えば、特許文献1、2参照)。特許文献2記載の構成では、レシートを印刷する印刷装置と、クーポンを印刷する印刷装置とを備え、これら複数の印刷装置によりレシートとクーポンとを印刷する。   Conventionally, a system that prints a receipt or the like by a printing device connected to a device such as a computer is known (for example, see Patent Documents 1 and 2). The configuration described in Patent Document 2 includes a printing device that prints a receipt and a printing device that prints a coupon, and the receipt and the coupon are printed by the plurality of printing devices.

特開2009−187078号公報JP 2009-187078 A 特開2012−123597号公報JP 2012-123597 A

ところで、印刷装置の中には、コンピューター等の外部の装置から印刷用のデータとしてテキストデータを取得して処理するものや、印刷用のデータとしてグラフィックデータ(画像データ)を取得して処理するものがあり、用途に合わせた仕様の印刷装置を用いてシステムを構成することが一般的である。しかしながら、この種の印刷装置を用いたシステムにおいては、機能拡張等を目的として印刷装置を追加または置き換える場合に、印刷装置が使用するデータの種類を考慮する必要があり、印刷装置の数や用途が制限されていた。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置をコンピューター等の装置に接続した場合に、印刷装置が処理するデータの種類に起因する制約に対応できるようにすることを目的とする。
By the way, some printing devices acquire and process text data as printing data from an external device such as a computer, or acquire and process graphic data (image data) as printing data. In general, a system is configured by using a printing apparatus having a specification according to the application. However, in a system using this type of printing device, when adding or replacing a printing device for the purpose of function expansion or the like, it is necessary to consider the type of data used by the printing device. Was restricted.
The present invention has been made in view of the above-described circumstances, and an object of the present invention is to cope with restrictions caused by the type of data processed by a printing apparatus when the printing apparatus is connected to an apparatus such as a computer. And

上記目的を達成するために、本発明は、グラフィックデータを取得する印刷データ取得部と、前記印刷データ取得部で取得された前記グラフィックデータをテキストデータに変換する変換部と、前記変換部で変換された前記テキストデータを出力する印刷データ出力部と、備えること、を特徴とする。
本発明によれば、グラフィックデータをテキストデータに変換して印刷を行うことが可能であるため、処理するデータがテキストデータであるかグラフィックデータであるかに関わらず、この印刷装置を適用できる。これにより、処理するデータの種類に起因する制約に対応でき、各種のシステムに印刷装置を追加または置き換え設置して使うことができる。
また、本発明は、上記印刷装置において、前記印刷データ出力部で出力された前記テキストデータを印刷する印刷部を有する。
To achieve the above object, the present invention provides a print data acquisition unit that acquires graphic data, a conversion unit that converts the graphic data acquired by the print data acquisition unit into text data, and a conversion by the conversion unit. it and a print data output unit for outputting the text data, and wherein.
According to the present invention, since graphic data can be converted into text data for printing, this printing apparatus can be applied regardless of whether the data to be processed is text data or graphic data. Accordingly, it is possible to cope with restrictions caused by the type of data to be processed, and it is possible to use a printer added or replaced in various systems.
According to the present invention, the printing apparatus further includes a printing unit that prints the text data output by the print data output unit.

また、本発明は、上記印刷装置において、グラフィックデータを出力するホスト装置に接続される接続部を有し、前記印刷データ取得部は、前記ホスト装置から出力される前記グラフィックデータを取得する。
本発明によれば、グラフィックデータを出力するホスト装置を備えたシステムに、印刷装置を追加し、或いは、既存の印刷装置の代替として設置できる。
According to the present invention, the printing apparatus further includes a connection unit connected to a host device that outputs graphic data, and the print data acquisition unit acquires the graphic data output from the host device.
According to the present invention, a printing apparatus can be added to a system including a host apparatus that outputs graphic data, or can be installed as an alternative to an existing printing apparatus.

また、本発明は、上記印刷装置において、前記変換部は、前記グラフィックデータを、前記印刷部で印刷される印刷媒体のサイズに対応するテキストデータに変換する。
本発明によれば、受信したデータを印刷媒体のサイズに適合するように変換するので、使用する印刷媒体に適した印刷を行える。
According to the present invention, in the printing apparatus, the conversion unit converts the graphic data into text data corresponding to a size of a print medium printed by the printing unit.
According to the present invention, the received data is converted so as to match the size of the print medium, so that printing suitable for the print medium to be used can be performed.

また、上記目的を達成するために、本発明の印刷システムは、グラフィックデータを出力するホスト装置と、前記ホスト装置から出力されたグラフィックデータを取得する印刷データ取得部、前記印刷データ取得部で取得された前記グラフィックデータをテキストデータに変換する変換部、前記変換部で変換された前記テキストデータを出力する印刷データ出力部有する印刷装置と、を備えることを特徴とする。
本発明によれば、印刷装置が、ホスト装置が出力するグラフィックデータをテキストデータに変換して印刷を行う。これにより、グラフィックデータに適した印刷を行う印刷装置を用いた印刷システムにおいて、処理するデータがグラフィックデータであるかテキストデータであるかに関わらず印刷でき、処理するデータの種類に起因する制約に対応できる印刷システムを提供できる。
また、本発明は、上記印刷システムにおいて、前記印刷装置は、前記印刷データ出力部で出力された前記テキストデータを印刷する印刷部を有する。
In order to achieve the above object, a printing system according to the present invention includes a host device that outputs graphic data, a print data acquisition unit that acquires graphic data output from the host device, and a print data acquisition unit that acquires the graphic data. And a printing device having a conversion unit that converts the graphic data into text data and a print data output unit that outputs the text data converted by the conversion unit.
According to the present invention, the printing apparatus performs printing by converting graphic data output from the host apparatus into text data. As a result, in a printing system using a printing apparatus that performs printing suitable for graphic data, printing can be performed regardless of whether the data to be processed is graphic data or text data, and there are restrictions due to the type of data to be processed. A compatible printing system can be provided.
According to the present invention, in the printing system, the printing apparatus includes a printing unit that prints the text data output from the print data output unit.

また、本発明は、上記印刷システムにおいて、前記印刷装置と接続され、前記ホスト装置から出力されたグラフィックデータを印刷する第2印刷装置を備える。
本発明によれば、ホスト装置が出力するグラフィックデータをテキストデータに変換して印刷する印刷装置に、グラフィックデータを印刷する第2印刷装置が接続されているので、複数の印刷装置によりグラフィックデータを印刷できる。
In the printing system, the present invention further includes a second printing device that is connected to the printing device and prints graphic data output from the host device.
According to the present invention, since the second printing device for printing graphic data is connected to the printing device that converts the graphic data output from the host device into text data and prints, the graphic data is output by the plurality of printing devices. Can print.

また、本発明は、上記印刷システムにおいて、前記印刷装置の前記印刷データ取得部は、前記第2印刷装置に出力された前記グラフィックデータを取得する。
本発明によれば、ホスト装置が第2印刷装置に出力するグラフィックデータを、印刷装置により取得してテキストデータに変換して印刷するので、ホスト装置及び第2印刷装置で構成されるシステムに、各装置の構成に影響を与えることなく印刷装置を設置できる。
In the printing system, the print data acquisition unit of the printing apparatus acquires the graphic data output to the second printing apparatus.
According to the present invention, the graphic data output from the host device to the second printing device is acquired by the printing device, converted into text data, and printed. Therefore, in the system configured by the host device and the second printing device, A printing apparatus can be installed without affecting the configuration of each apparatus.

また、上記目的を達成するために、本発明のPOSシステムは、取引情報をグラフィックデータで出力するPOS端末と、前記POS端末から出力されたグラフィックデータを取得する印刷データ取得部、前記印刷データ取得部で取得された前記グラフィックデータをテキストデータに変換する変換部、前記変換部で変換された前記テキストデータを出力する印刷データ出力部有する印刷装置と、を備えることを特徴とする。
本発明によれば、印刷装置が、POS端末が出力するグラフィックデータをテキストデータに変換して印刷を行う。これにより、グラフィックデータに適した印刷を行う印刷装置を用いたPOSシステムにおいて、処理するデータがグラフィックデータであるかテキストデータであるかに関わらず印刷でき、処理するデータの種類に起因する制約に対応できるPOSシステムを提供できる。また、POS端末が出力するデータがグラフィックデータであるかテキストデータであるかに係わらず、POS端末の構成を変更せず、印刷装置をPOSシステムに設置できる。
POSシステム。
また、本発明は、上記POSシステムにおいて、前記印刷装置は、前記印刷データ出力部で出力された前記テキストデータを印刷する印刷部を有する。
In order to achieve the above object, a POS system of the present invention includes a POS terminal that outputs transaction information as graphic data, a print data acquisition unit that acquires graphic data output from the POS terminal, and the print data acquisition A printing unit having a conversion unit that converts the graphic data acquired by the conversion unit into text data, and a print data output unit that outputs the text data converted by the conversion unit.
According to the present invention, the printing apparatus performs printing by converting the graphic data output from the POS terminal into text data. As a result, in a POS system using a printing apparatus that performs printing suitable for graphic data, printing can be performed regardless of whether the data to be processed is graphic data or text data. This is due to restrictions caused by the type of data to be processed. A compatible POS system can be provided. Further, regardless of whether the data output from the POS terminal is graphic data or text data, the printing apparatus can be installed in the POS system without changing the configuration of the POS terminal.
POS system.
According to the present invention, in the POS system, the printing apparatus includes a printing unit that prints the text data output from the print data output unit.

第1の実施形態に係るPOSシステムの機能ブロック図である。1 is a functional block diagram of a POS system according to a first embodiment. POSシステムの各部の動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of each part of a POS system. POSシステムの各部の別の動作を示すシーケンス図である。It is a sequence diagram which shows another operation | movement of each part of a POS system. POSシステムの各部のさらに別の動作を示すシーケンス図である。It is a sequence diagram which shows another operation | movement of each part of a POS system. 第2の実施形態に係るPOSシステムの機能ブロック図である。It is a functional block diagram of the POS system which concerns on 2nd Embodiment. 第3の実施形態に係るPOSシステムの機能ブロック図である。It is a functional block diagram of the POS system concerning a 3rd embodiment. POSシステムの各部の動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of each part of a POS system.

以下、図面を参照して本発明の実施形態について説明する。
図1に示すPOS(Point of sales)システム1(印刷システム)は、本発明の第1プリンター60と、アプリケーションプログラムを実行して文書等を生成し、印刷指示を出力するPOS端末装置10と、POS端末装置10が出力する印刷指示に従って印刷を実行する第2プリンター20(第2印刷装置)と、を備え、第1プリンター60(印刷装置)はPOS端末装置10と第2プリンター20との間に介設される。
本実施形態において、POS端末装置10と第1プリンター60とはUSBケーブルを介して接続され、第1プリンター60とレシートプリンターである第2プリンター20ともUSBケーブルを介して接続される。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
A POS (Point of sales) system 1 (printing system) shown in FIG. 1 includes a first printer 60 of the present invention, a POS terminal device 10 that executes an application program to generate a document and outputs a print instruction, A second printer 20 (second printing device) that executes printing in accordance with a printing instruction output by the POS terminal device 10, and the first printer 60 (printing device) is located between the POS terminal device 10 and the second printer 20. Is interposed.
In the present embodiment, the POS terminal device 10 and the first printer 60 are connected via a USB cable, and the first printer 60 and the second printer 20 that is a receipt printer are also connected via a USB cable.

POSシステム1は、ショッピングセンターや、百貨店等の店舗に適用され、店舗における商品の販売の状況や、商品の在庫の状況、売り上げの状況等を管理するいわゆるPOSシステムの一部を構成する。
POS端末装置10は、店舗に複数設けられたレジカウンターにおいて、顧客の商品購入取引に関する会計処理を実行し、取引結果を出力する装置である。
POS端末装置10は、POS端末装置10の各部を中枢的に制御する制御部11と、制御部11に接続された記憶部12、入力部13及び表示部14の各部を備えている。また、POS端末装置10は、外部接続インターフェイスとして、LANインターフェイス17もしくはUSBインターフェイス18、またはその両方を備えている。
本実施形態では、POS端末装置10及び第1プリンター60は、それぞれ、後述する店内LAN100に接続される。
The POS system 1 is applied to a shopping center, a store such as a department store, and constitutes a part of a so-called POS system that manages the state of sales of products in the store, the status of inventory of products, the status of sales, and the like.
The POS terminal device 10 is a device that executes transaction processing related to a customer's product purchase transaction and outputs a transaction result at a plurality of checkout counters provided in the store.
The POS terminal device 10 includes a control unit 11 that centrally controls each unit of the POS terminal device 10, and a storage unit 12, an input unit 13, and a display unit 14 connected to the control unit 11. The POS terminal device 10 includes a LAN interface 17 or a USB interface 18 or both as an external connection interface.
In the present embodiment, the POS terminal device 10 and the first printer 60 are each connected to an in-store LAN 100 described later.

制御部11は、CPU、ROM、RAM等を備え、記憶部12に記憶されたプログラムを実行することにより、POS端末装置10の各部を制御して、POS端末装置10の各種機能を実現する。制御部11は、POSアプリケーションプログラムを実行して、会計処理及びレシート印刷機能を実現するアプリケーション実行部11Aと、デバイスドライバープログラムを実行して、LANインターフェイス17またはUSBインターフェイス18を介して接続されたプリンターを制御するデバイスドライバー実行部11Bとを備えている。
記憶部12は、制御部11により実行されるプログラムや、これらのプログラムに係るデータを記憶する。
入力部13は、POS端末装置10を操作するためのキーボード等の入力デバイスに接続され、これらの入力デバイスから入力されたデータを制御部11に出力する。また、表示部14は、液晶ディスプレイ等の表示画面を有し、制御部11により処理されるデータやPOS端末装置10の動作状態等を表示する。表示部14は、POS端末装置10が会計処理を実行する際に、顧客に対して購入金額等を表示するカスタマーディスプレイを備えた構成とすることもできる。
LANインターフェイス17は、例えばEthernet(登録商標)規格に準拠したコネクターやIEEE802.11規格に準拠した無線通信回路を備え、店内LAN100に接続され、店内LAN100を介して他の装置との間で相互にデータを送受信する。
USBインターフェイス18は、USB規格に準拠したUSBコネクター及びインターフェイス回路を備え、第2プリンター20や第1プリンター60との間で相互にデータを送受信する。
また、USBインターフェイス18には、バーコードスキャナー、磁気カードリーダー、キャッシュドロワー等を接続可能であるが、ここでは図示しない。
POS端末装置10は、LANインターフェイス17及びUSBインターフェイス18の他のインターフェイスとして、RS−232Cインターフェイス等を備えていてもよい。
The control unit 11 includes a CPU, a ROM, a RAM, and the like, and executes various programs of the POS terminal device 10 by controlling each unit of the POS terminal device 10 by executing a program stored in the storage unit 12. The control unit 11 executes a POS application program to execute an accounting process and a receipt printing function, and executes a device driver program and a printer connected via the LAN interface 17 or the USB interface 18. A device driver execution unit 11B for controlling the device.
The storage unit 12 stores programs executed by the control unit 11 and data related to these programs.
The input unit 13 is connected to an input device such as a keyboard for operating the POS terminal device 10, and outputs data input from these input devices to the control unit 11. The display unit 14 has a display screen such as a liquid crystal display, and displays data processed by the control unit 11, an operating state of the POS terminal device 10, and the like. The display unit 14 may be configured to include a customer display that displays the purchase amount and the like to the customer when the POS terminal device 10 executes the accounting process.
The LAN interface 17 includes, for example, a connector compliant with the Ethernet (registered trademark) standard and a wireless communication circuit compliant with the IEEE 802.11 standard. The LAN interface 17 is connected to the in-store LAN 100 and mutually communicates with other devices via the in-store LAN 100. Send and receive data.
The USB interface 18 includes a USB connector and an interface circuit compliant with the USB standard, and transmits and receives data to and from the second printer 20 and the first printer 60.
The USB interface 18 can be connected to a barcode scanner, a magnetic card reader, a cash drawer, or the like, but is not shown here.
The POS terminal device 10 may include an RS-232C interface or the like as another interface of the LAN interface 17 and the USB interface 18.

アプリケーション実行部11Aは、入力部13またはUSBインターフェイス18に接続されたバーコードスキャナー等により入力される情報に基づいて、商品販売取引に係る会計処理を実行する。この会計処理では、顧客が購入する商品の登録、合計金額の算出、預かり金の登録及び釣り銭金額の算出等を実行する。この会計処理において、アプリケーション実行部11Aは、商品のバーコードを読み取った情報や商品コードが入力された場合に、入力された情報に基づいて店舗サーバー101に対して問合せを実行し、店舗サーバー101が備える商品データベース(図示略)から商品名及び商品単価を取得する。
アプリケーション実行部11Aは、会計処理を実行してから、商品取引の内容をレシートとして印刷させるため、印刷するデータと印刷指示を出力する。
また、アプリケーション実行部11Aは、会計処理の結果及び/又は会計処理の結果を所定の時間単位で集計したデータを、店内LAN100を介して店舗サーバー101に送信する。店舗サーバー101は、POS端末装置10が送信したデータを取得し、店舗サーバー101に複数のPOS端末装置10が接続されている場合は各POS端末装置10が送信したデータを取得して集計し、図示しない記憶装置に記憶する。この場合、店舗サーバー101は、予め設定された時間毎に、記憶したデータを本部サーバー111に送信してもよい。
11 A of application execution parts perform the accounting process which concerns on a merchandise sales transaction based on the information input by the barcode scanner etc. which were connected to the input part 13 or the USB interface 18. FIG. In this accounting process, registration of products to be purchased by the customer, calculation of the total amount, registration of deposits, calculation of change amount, and the like are executed. In this accounting process, the application execution unit 11A executes an inquiry to the store server 101 based on the input information when the information obtained by reading the barcode of the product or the product code is input, and the store server 101 A product name and a product unit price are acquired from a product database (not shown) included in.
After executing the accounting process, the application execution unit 11A outputs data to be printed and a print instruction in order to print the contents of the commodity transaction as a receipt.
Further, the application execution unit 11A transmits the accounting process result and / or the data obtained by tabulating the accounting process result in a predetermined time unit to the store server 101 via the in-store LAN 100. The store server 101 acquires the data transmitted by the POS terminal device 10, and when a plurality of POS terminal devices 10 are connected to the store server 101, the store server 101 acquires and aggregates the data transmitted by each POS terminal device 10, Store in a storage device (not shown). In this case, the store server 101 may transmit the stored data to the headquarter server 111 for each preset time.

デバイスドライバー実行部11Bが実行するデバイスドライバープログラムは、LANインターフェイス17を介して接続されるデバイス、もしくは、USBインターフェイス18を介して接続されるデバイスに対応する。具体的には、デバイスドライバー実行部11Bは、第2プリンター20に対応し、第2プリンター20によってレシートを印刷させるデバイスドライバープログラムを実行する。デバイスドライバー実行部11Bは、アプリケーション実行部11Aが出力する印刷指示及びデータを取得し、この印刷指示に従って出力されたデータを印刷させる印刷コマンドと印刷データとを生成し、外部に出力する。デバイスドライバー実行部11Bには、制御対象のデバイスが接続されたインターフェイスが設定されている。デバイスドライバー実行部11Bは、LANインターフェイス17及びUSBインターフェイス18のうち、第2プリンター20が接続された側のインターフェイスに対して、印刷コマンド及び印刷データを出力する。
本実施形態ではUSBインターフェイス18に第1プリンター60が接続され、後述するように第1プリンター60を介して第2プリンター20が接続されている。USBインターフェイス18は、デバイスドライバー実行部11Bから出力された印刷コマンド及び印刷データを、USB規格に準拠した方式で送信する。POS端末装置10がUSBインターフェイス18から送信した印刷コマンド及び印刷データは、第1プリンター60を介して第2プリンター20に送信される。
The device driver program executed by the device driver execution unit 11B corresponds to a device connected via the LAN interface 17 or a device connected via the USB interface 18. Specifically, the device driver execution unit 11B executes a device driver program that corresponds to the second printer 20 and causes the second printer 20 to print a receipt. The device driver execution unit 11B acquires a print instruction and data output by the application execution unit 11A, generates a print command and print data for printing the data output according to the print instruction, and outputs the print command and print data to the outside. In the device driver execution unit 11B, an interface to which a device to be controlled is connected is set. The device driver execution unit 11B outputs a print command and print data to the interface to which the second printer 20 is connected, of the LAN interface 17 and the USB interface 18.
In the present embodiment, the first printer 60 is connected to the USB interface 18, and the second printer 20 is connected via the first printer 60 as will be described later. The USB interface 18 transmits the print command and print data output from the device driver execution unit 11B by a method compliant with the USB standard. The print command and print data transmitted from the USB interface 18 by the POS terminal device 10 are transmitted to the second printer 20 via the first printer 60.

第2プリンター20は、USBインターフェイス22と、USBインターフェイス22を介してコマンドを受信する制御部24(第2プリンター制御部)とを備える。制御部24は、USBインターフェイス22により印刷コマンド及び印刷データを受信し、受信した印刷コマンドを実行して印刷部25(第2プリンター印刷部)を制御し、印刷を実行する。また、制御部24は、印刷が成功した場合、エラーが発生した場合、USBインターフェイス22によりステータス通知の要求を受信した場合に、現在の動作状態を示すステータス情報をUSBインターフェイス22から送信する。
印刷部25は、制御部24の制御に従ってロール紙やカット紙等の印刷媒体に文字や画像を形成する印刷ヘッド26、制御部24の制御により印刷媒体を搬送する搬送モーター27、及び、制御部24の制御により印刷媒体をカットするカッターユニット28を備えている。
The second printer 20 includes a USB interface 22 and a control unit 24 (second printer control unit) that receives commands via the USB interface 22. The control unit 24 receives a print command and print data via the USB interface 22, executes the received print command, controls the printing unit 25 (second printer printing unit), and executes printing. The control unit 24 transmits status information indicating the current operation state from the USB interface 22 when printing is successful, when an error occurs, or when a status notification request is received by the USB interface 22.
The print unit 25 includes a print head 26 that forms characters and images on a print medium such as roll paper and cut paper according to the control of the control unit 24, a transport motor 27 that transports the print medium under the control of the control unit 24, and a control unit A cutter unit 28 for cutting the print medium by 24 control is provided.

第2プリンター20は、例えば、サーマルプリンター、或いは、インクジェット式プリンターとして構成することができる。
第2プリンター20をインクジェット式のプリンターとして構成する場合、第2プリンター20は、例えばCMYKの4色のインクを印刷媒体の印刷面に吐出して文字や画像を形成するインクジェット式の印刷ヘッド26を備える。ここで、印刷ヘッド26は、赤と黒の2色のインクを使用するヘッドとしてもよいし、CMYKの4色に他の色を加えた多色のインクを使用するヘッドとすることもできる。
この場合には、第2プリンター20は、グラフィックデータの印刷に適した構成となっている。制御部24は、USBインターフェイス22によって受信した印刷データがビットマップデータや圧縮された画像データ等のグラフィックデータであれば、このグラフィックデータを第2プリンター20が備える図示しないバッファーメモリーに展開して、印刷部25を制御し、印刷部25により印刷する。
この場合、デバイスドライバー実行部11Bは、上記のように第2プリンター20の仕様に合わせて印刷データを生成するので、アプリケーション実行部11Aが出力するデータに含まれる文字や画像等を配置した印刷物の1ページ分のグラフィックデータを生成し、このグラフィックデータを含む印刷データを、印刷を指示する印刷コマンドとともにUSBインターフェイス18に出力する。
The second printer 20 can be configured as, for example, a thermal printer or an ink jet printer.
When the second printer 20 is configured as an ink jet printer, the second printer 20 includes, for example, an ink jet print head 26 that forms characters and images by ejecting four colors of CMYK ink onto the print surface of the print medium. Prepare. Here, the print head 26 may be a head that uses inks of two colors, red and black, or a head that uses multicolor inks obtained by adding four colors of CMYK to other colors.
In this case, the second printer 20 has a configuration suitable for printing graphic data. If the print data received by the USB interface 22 is graphic data such as bitmap data or compressed image data, the control unit 24 develops the graphic data in a buffer memory (not shown) provided in the second printer 20. The printing unit 25 is controlled, and printing is performed by the printing unit 25.
In this case, the device driver execution unit 11B generates print data in accordance with the specifications of the second printer 20 as described above. One page of graphic data is generated, and print data including the graphic data is output to the USB interface 18 together with a print command instructing printing.

また、第2プリンター20をサーマル式のプリンターとして構成する場合、印刷ヘッド26として、印刷媒体の印刷面に熱を加えるサーマルヘッドを備える。
この場合には、第2プリンター20は、テキストデータの印刷に適した構成となっている。制御部24は、USBインターフェイス22によって受信した印刷データに、文字コードにより文字を指定するデータ(テキストデータ)が含まれている場合、第2プリンター20が備える図示しない記憶部(第2プリンター記憶部)から文字コードに対応するフォントデータを読み出して、印刷部25により印刷する。
この場合、デバイスドライバー実行部11Bは、上記のように第2プリンター20の仕様に合わせて印刷データを生成するので、アプリケーション実行部11Aが出力するデータに文字が含まれる場合、この文字の文字コードを含む印刷データを生成してUSBインターフェイス18に出力する。
When the second printer 20 is configured as a thermal printer, the print head 26 includes a thermal head that applies heat to the printing surface of the print medium.
In this case, the second printer 20 has a configuration suitable for printing text data. When the print data received by the USB interface 22 includes data (text data) designating a character by a character code, the control unit 24 stores a storage unit (second printer storage unit) (not shown) included in the second printer 20. The font data corresponding to the character code is read out from () and printed by the printing unit 25.
In this case, since the device driver execution unit 11B generates print data in accordance with the specifications of the second printer 20 as described above, if the data output by the application execution unit 11A includes a character, the character code of this character Is generated and output to the USB interface 18.

第1プリンター60は、ロール紙やカット紙に対する印刷を実行する印刷部71(第1プリンター印刷部)と、この印刷部71の印刷動作を制御する印刷制御部70と、データ処理部61(第1プリンターデータ処理部)と、を備えている。
データ処理部61は、制御部62(第1プリンター制御部)、LANインターフェイス63、USBインターフェイス64、記憶部65(第1プリンター記憶部)、及び通信部69(第1プリンター通信部)を備えている。制御部62は、CPU、ROM、RAM等を備え、記憶部65に記憶されたプログラムを実行することにより、第1プリンター60の各部を制御する。
LANインターフェイス63は、Ethernet規格に準拠したコネクターやIEEE802.11規格に準拠した無線通信回路を備え、LAN100等のネットワークに接続可能であり、他の装置との間で相互にデータを送受信する。LANインターフェイス63は、複数のRJ−45コネクターを備えており、各コネクターに接続された機器の各々に対して、相互にデータを送受信する。例えば、本実施形態において、LANインターフェイス63は、通信部69の制御により、店内LAN100を介して接続されたPOS端末装置10、店舗サーバー101等との間で各種データを送受信する。
また、LANインターフェイス63はいわゆるネットワークハブとしての中継機能を備え、何れかのコネクターから受信したデータを他のコネクターから送出する。
USBインターフェイス64は、USB規格に準拠したUSBコネクター及びインターフェイス回路を備え、POS端末装置10との間で相互にデータを送受信する。USBインターフェイス64はUSBケーブルを接続可能なUSBコネクターを複数備えている。
USBインターフェイス64が備える複数のUSBコネクターのうち少なくとも一つは、USB規格によりデバイス側の装置のコネクターとして指定された形状及び端子を有するBタイプのメス側(receptacle)コネクターである。USBインターフェイス64は、USB規格により規定されたデバイス側の機器として動作するUSBデバイスコントローラーの機能を有し、BタイプのUSBコネクターにUSBケーブルを介して接続された機器に対してUSBデバイスクラスIDやデバイスID等を通知し、この機器から送信される制御データに従って、通信を実行する。本実施形態では、BタイプのUSBコネクターにPOS端末装置10が接続される。
The first printer 60 includes a printing unit 71 (first printer printing unit) that performs printing on roll paper and cut paper, a printing control unit 70 that controls the printing operation of the printing unit 71, and a data processing unit 61 (first processing unit). 1 printer data processing unit).
The data processing unit 61 includes a control unit 62 (first printer control unit), a LAN interface 63, a USB interface 64, a storage unit 65 (first printer storage unit), and a communication unit 69 (first printer communication unit). Yes. The control unit 62 includes a CPU, a ROM, a RAM, and the like, and controls each unit of the first printer 60 by executing a program stored in the storage unit 65.
The LAN interface 63 includes a connector compliant with the Ethernet standard and a wireless communication circuit compliant with the IEEE 802.11 standard, can be connected to a network such as the LAN 100, and transmits / receives data to / from other devices. The LAN interface 63 includes a plurality of RJ-45 connectors, and transmits / receives data to / from each of the devices connected to the connectors. For example, in the present embodiment, the LAN interface 63 transmits / receives various data to / from the POS terminal device 10, the store server 101, and the like connected via the in-store LAN 100 under the control of the communication unit 69.
Further, the LAN interface 63 has a relay function as a so-called network hub, and transmits data received from one of the connectors from another connector.
The USB interface 64 includes a USB connector and an interface circuit compliant with the USB standard, and transmits / receives data to / from the POS terminal device 10. The USB interface 64 includes a plurality of USB connectors to which a USB cable can be connected.
At least one of the plurality of USB connectors included in the USB interface 64 is a B type receptacle connector having a shape and a terminal designated as a device-side device connector according to the USB standard. The USB interface 64 has a function of a USB device controller that operates as a device on the device side stipulated by the USB standard, and a USB device class ID or the like for a device connected to a B type USB connector via a USB cable. The device ID is notified, and communication is executed according to the control data transmitted from this device. In the present embodiment, the POS terminal device 10 is connected to a B type USB connector.

一方、USBインターフェイス64が備える他のコネクターの少なくとも一つは、USB規格によりホスト側の装置のコネクターとして指定された形状及び端子を有するAタイプのメス側コネクターである。USBインターフェイス64は、USB規格により規定されたホスト側の機器として動作するUSBホストコントローラーの機能を有し、USB規格により規定されたデバイスに該当する機器がAタイプのUSBコネクターに接続された場合に、この機器に対してホスト側として動作し、デバイスの認識及びデバイスとの間の通信を可能とする。本実施形態では、AタイプのUSBコネクターに第2プリンター20が接続される。なお、USBインターフェイス64が備えるAタイプのコネクターの数について特に制限はない。   On the other hand, at least one of the other connectors included in the USB interface 64 is an A type female connector having a shape and a terminal designated as a connector of a host device by the USB standard. The USB interface 64 has a function of a USB host controller that operates as a host-side device specified by the USB standard, and when a device corresponding to a device specified by the USB standard is connected to an A-type USB connector. It operates as a host side for this device, and enables device recognition and communication with the device. In the present embodiment, the second printer 20 is connected to an A type USB connector. The number of A-type connectors included in the USB interface 64 is not particularly limited.

ここで、デバイスとは、例えばホストとして動作する装置に接続される入出力装置であり、ホストの制御に従ってデータをホストに出力し、或いは、ホストから入力されるデータを出力する。ここで、ホストとは、デバイスとしての入出力装置に対し、これら入出力装置を制御するコマンドを送信するコンピューター等が該当する。   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.

本実施形態では、USBインターフェイス64がPOS端末装置10に接続された接続部として機能するが、第1プリンター60が店内LAN100を介してPOS端末装置10に接続された場合にはLANインターフェイス63が接続部として機能する。   In this embodiment, the USB interface 64 functions as a connection unit connected to the POS terminal apparatus 10, but when the first printer 60 is connected to the POS terminal apparatus 10 via the in-store LAN 100, the LAN interface 63 is connected. It functions as a part.

制御部62は、LANインターフェイス63及びUSBインターフェイス64のうちいずれか設定された側のインターフェイスを介して、印刷コマンド及び印刷データを取得し、取得した印刷データに基づいて、印刷制御部70に対して印刷用のデータを出力する。
印刷制御部70は、制御部62により出力された印刷用のデータに従って印刷部71を制御し、第1プリンター60がロール紙やカット紙等の印刷媒体に印刷を行う。
The control unit 62 acquires a print command and print data via an interface on which one of the LAN interface 63 and the USB interface 64 is set. Based on the acquired print data, the control unit 62 Output data for printing.
The print control unit 70 controls the printing unit 71 according to the printing data output from the control unit 62, and the first printer 60 performs printing on a printing medium such as roll paper or cut paper.

印刷部71は、印刷媒体に文字や画像を形成する印刷ヘッド72、印刷媒体を搬送する搬送モーター73、及び、印刷媒体をカットするカッターユニット74を備え、これらの各部は印刷制御部70(第1プリンター印刷制御部)の制御に従って動作する。
第1プリンター60は、例えば、インクジェット式のプリンター、或いは、サーマル式のプリンターとして構成することができる。第1プリンター60をインクジェット式のプリンターとして構成する場合、第1プリンター60は、例えばCMYKの4色のインクを印刷媒体の印刷面に吐出して文字や画像を形成するインクジェット式の印刷ヘッド72を備える。ここで、印刷ヘッド72は、赤と黒の2色のインクを使用するヘッドとしてもよいし、CMYKの4色に他の色を加えた多色のインクを使用するヘッドとすることもできる。また、第1プリンター60をサーマル式のプリンターとして構成する場合、印刷ヘッド72として、印刷媒体の印刷面に熱を加えるサーマルヘッドを備える。
The printing unit 71 includes a print head 72 that forms characters and images on the print medium, a conveyance motor 73 that conveys the print medium, and a cutter unit 74 that cuts the print medium. 1 printer print control unit).
The first printer 60 can be configured as, for example, an ink jet printer or a thermal printer. When the first printer 60 is configured as an ink jet printer, the first printer 60 includes, for example, an ink jet print head 72 that forms characters and images by ejecting four colors of CMYK ink onto the print surface of the print medium. Prepare. Here, the print head 72 may be a head that uses inks of two colors, red and black, or may be a head that uses multicolor inks obtained by adding other colors to the four colors of CMYK. When the first printer 60 is configured as a thermal printer, the print head 72 includes a thermal head that applies heat to the print surface of the print medium.

第1プリンター60は、インクジェット式のプリンターとして構成される場合、グラフィックデータ(画像データ)の印刷に適している。この場合、制御部62は、印刷媒体に印刷する文字や画像を指定された位置、サイズ及び印刷色で配置した1ページ単位の画像データを生成し、この画像データを印刷制御部70に出力する。これに対し、第1プリンター60がサーマル式のプリンターとして構成される場合、テキストデータの印刷に適している。この場合、制御部62は、印刷媒体に印刷する文字の文字コードを含むデータを印刷制御部70に出力し、印刷制御部70は、印刷制御部70が備える記憶部(図示略)から文字コードに対応するフォントデータを読み出して、印刷部71により印刷する。ここで、レシート用のロゴ等の画像データを印刷する場合、第1プリンター60は画像データを印刷制御部70に出力し、印刷制御部70は入力された画像を印刷部71により印刷する。   When configured as an ink jet printer, the first printer 60 is suitable for printing graphic data (image data). In this case, the control unit 62 generates image data for each page in which characters and images to be printed on the print medium are arranged in the designated position, size, and print color, and outputs the image data to the print control unit 70. . On the other hand, when the first printer 60 is configured as a thermal printer, it is suitable for printing text data. In this case, the control unit 62 outputs data including the character code of the character to be printed on the print medium to the print control unit 70. Is read out and printed by the printing unit 71. Here, when printing image data such as a logo for a receipt, the first printer 60 outputs the image data to the print control unit 70, and the print control unit 70 prints the input image by the printing unit 71.

制御部62は、印刷データを取得する印刷データ取得部66と、印刷データ取得部66が取得した印刷データを変換する変換部67と、印刷データ取得部66が取得した印刷データ及び/又は変換部67が変換した印刷データを印刷制御部70に出力する印刷データ出力部68とを備えている。
印刷データ取得部66は、POS端末装置10が第2プリンター20に対して送信する印刷データ及び印刷コマンドを取得する。印刷データ取得部66は、図1に示すようにPOS端末装置10がUSBインターフェイス64に接続されている場合、このUSBインターフェイス64に入力される印刷データを通信部69によって受信し、取得する。
The control unit 62 includes a print data acquisition unit 66 that acquires print data, a conversion unit 67 that converts print data acquired by the print data acquisition unit 66, and a print data and / or conversion unit acquired by the print data acquisition unit 66. And a print data output unit 68 that outputs the print data converted by the printer 67 to the print control unit 70.
The print data acquisition unit 66 acquires print data and a print command that the POS terminal apparatus 10 transmits to the second printer 20. When the POS terminal device 10 is connected to the USB interface 64 as shown in FIG. 1, the print data acquisition unit 66 receives and acquires print data input to the USB interface 64 by the communication unit 69.

また、印刷データ取得部66は、LANインターフェイス63が店内LAN100等のネットワークに接続されている場合、通信部69により、POS端末装置10がネットワークを介して他のプリンターに宛てて送信した印刷データを受信する。この場合、通信部69がLANインターフェイス63を制御して、LANインターフェイス63に割り当てられたネットワークアドレスを宛先とするデータに限らず、他のデータも受信する。そして、通信部69は、受信したデータの宛先のネットワークアドレス等に基づき、受信したデータの中から、ターゲットのプリンターあてに送信された印刷データを取得する。
印刷データ取得部66は、POS端末装置10から送信された印刷コマンド及び印刷データを、記憶部65に一時的に記憶し、USBインターフェイス64から第2プリンター20に送信する。
When the LAN interface 63 is connected to a network such as the in-store LAN 100, the print data acquisition unit 66 receives print data transmitted from the POS terminal apparatus 10 to another printer via the network by the communication unit 69. Receive. In this case, the communication unit 69 controls the LAN interface 63 to receive not only data destined for the network address assigned to the LAN interface 63 but also other data. Then, the communication unit 69 acquires the print data transmitted to the target printer from the received data based on the destination network address of the received data.
The print data acquisition unit 66 temporarily stores the print command and print data transmitted from the POS terminal device 10 in the storage unit 65, and transmits the print command and print data from the USB interface 64 to the second printer 20.

さらに、印刷データ取得部66は、通信部69により受信した印刷データに基づいて、新たなグラフィックデータを取得する機能を備えている。具体的には、POS端末装置10が第2プリンター20に送信したレシートの印刷データに基づいて、クーポンの印刷データを取得することができる。例えば、印刷データ取得部66は、POS端末装置10から受信した印刷データに含まれるテキストデータ(文字コード)を解析し、このテキストデータから、予め設定された文字または文字列を検出する。予め設定された文字または文字列を検出した場合、印刷データ取得部66は、通信部69を制御して、LANインターフェイス63を介して店舗サーバー101にアクセスし、検出した文字または文字列に対応する印刷用のデータを取得する。ここで印刷データ取得部66が取得する印刷用のデータは、例えばクーポンのグラフィックデータである。   Further, the print data acquisition unit 66 has a function of acquiring new graphic data based on the print data received by the communication unit 69. Specifically, coupon print data can be acquired based on receipt print data transmitted from the POS terminal device 10 to the second printer 20. For example, the print data acquisition unit 66 analyzes text data (character code) included in the print data received from the POS terminal device 10, and detects a preset character or character string from the text data. When a preset character or character string is detected, the print data acquisition unit 66 controls the communication unit 69 to access the store server 101 via the LAN interface 63 and corresponds to the detected character or character string. Get print data. Here, the printing data acquired by the print data acquisition unit 66 is, for example, coupon graphic data.

変換部67は、印刷データ取得部66が取得したデータについて、グラフィックデータからテキストデータに変換する機能、及び、テキストデータからグラフィックデータに変換する機能を備える。例えば、第1プリンター60がインクジェット式のプリンターであり、グラフィックデータの印刷に適した構成となっている場合に、変換部67は、印刷データ取得部66により取得された印刷データがテキストデータであれば、このテキストデータをグラフィックデータに変換する。具体的には、変換部67は、印刷データ中の文字を指定された位置、サイズ及び印刷色に従って配置した1ページ分のグラフィックデータを生成し、印刷データ出力部68に出力する。例えば、印刷データ取得部66が、販売された商品の商品名、単価、販売金額の合計等のテキストデータを含むレシートの印刷データを取得した場合、変換部67は、これらのテキストデータを配置したレシート1枚のグラフィックデータを生成する。
また、例えば、第1プリンター60がサーマル式のプリンターであり、テキストデータの印刷に適した構成となっている場合に、変換部67は、印刷データ取得部66により取得された印刷データがグラフィックデータであれば、テキストデータに変換する。具体的には、変換部67は、印刷データに含まれる文字の文字コード、文字サイズ、印刷位置及び印刷色を指定するテキストデータに変換し、印刷データ出力部68に出力する。変換部67は、グラフィックデータをテキストデータに変換する際に、改行や印刷開始位置を指定する印刷コマンドを生成してもよい。これにより、例えば、印刷データ取得部66がクーポンのグラフィックデータからなる印刷データを取得した場合、変換部67は、このクーポンに含まれる文字のテキストデータ、或いは、テキストデータと印刷コマンドとを生成する。
The conversion unit 67 has a function of converting data acquired by the print data acquisition unit 66 from graphic data to text data and a function of converting text data to graphic data. For example, when the first printer 60 is an ink jet printer and has a configuration suitable for printing graphic data, the conversion unit 67 determines that the print data acquired by the print data acquisition unit 66 is text data. For example, this text data is converted into graphic data. Specifically, the conversion unit 67 generates graphic data for one page in which characters in the print data are arranged according to the designated position, size, and print color, and outputs the graphic data to the print data output unit 68. For example, when the print data acquisition unit 66 acquires the print data of a receipt including text data such as the product name, unit price, and total sales price of the sold products, the conversion unit 67 arranges these text data. Graphic data for one receipt is generated.
Further, for example, when the first printer 60 is a thermal printer and has a configuration suitable for printing text data, the conversion unit 67 uses the graphic data as the print data acquired by the print data acquisition unit 66. If so, convert it to text data. Specifically, the conversion unit 67 converts the character code of the character included in the print data, the character size, the print position, and the print data into text data that specifies the print data, and outputs the text data to the print data output unit 68. The conversion unit 67 may generate a print command that specifies a line feed or a print start position when converting graphic data into text data. Thereby, for example, when the print data acquisition unit 66 acquires print data composed of coupon graphic data, the conversion unit 67 generates text data of text included in the coupon, or text data and a print command. .

さらに、変換部67は、印刷データ取得部66が取得した印刷データについて、印刷部71が使用する印刷媒体に合わせてサイズを変換する機能を有する。変換部67は、印刷データ取得部66が取得した印刷データ、または、印刷データと印刷コマンドとに基づいて、この印刷データの印刷に適する印刷媒体のサイズを判定する。例えば、変換部67は、印刷コマンドに含まれる印刷媒体のサイズを指定するコマンドやパラメーターを検出することで、印刷サイズを判定する。また、例えば、変換部67は、印刷データがグラフィックデータである場合はグラフィックデータのサイズに基づき印刷サイズを判定し、印刷データがテキストデータを含む場合は文字や画像を指定された位置及びサイズで配置して1ページ全体の印刷イメージを生成し、この印刷イメージのサイズに基づき印刷サイズを判定する。変換部67は、判定した印刷サイズが、印刷部71が使用する印刷媒体のサイズに適合しない場合は、印刷部71が使用する印刷媒体のサイズに合わせて印刷データを変換する。このサイズの変換処理は、印刷データ取得部66が取得した印刷データのうち、POS端末装置10が送信した印刷データ、及び、印刷データ取得部66が店舗サーバー101から取得した印刷データのいずれであってもよい。   Further, the conversion unit 67 has a function of converting the size of the print data acquired by the print data acquisition unit 66 according to the print medium used by the printing unit 71. The conversion unit 67 determines the size of the print medium suitable for printing the print data based on the print data acquired by the print data acquisition unit 66 or the print data and the print command. For example, the conversion unit 67 determines the print size by detecting a command or parameter that specifies the size of the print medium included in the print command. Further, for example, when the print data is graphic data, the conversion unit 67 determines the print size based on the size of the graphic data, and when the print data includes text data, the character or image is designated at the specified position and size. A print image of the entire page is generated by arrangement, and the print size is determined based on the size of the print image. If the determined print size does not match the size of the print medium used by the print unit 71, the conversion unit 67 converts the print data according to the size of the print medium used by the print unit 71. This size conversion process is either print data transmitted by the POS terminal device 10 or print data acquired by the print data acquisition unit 66 from the store server 101 among the print data acquired by the print data acquisition unit 66. May be.

また、変換部67は、印刷データ取得部66が取得した印刷データのうち、変換の必要がないデータを、変換せずに印刷データ出力部68に出力する。具体的には、第1プリンター60がインクジェット式のプリンターである場合、変換部67は、印刷データ取得部66が取得した印刷データがグラフィックデータであれば、変換せずに印刷データ出力部68に出力する。また、第1プリンター60がサーマル式のプリンターである場合に、印刷データ取得部66が取得した印刷データがテキストデータであれば、変換せずに印刷データ出力部68に出力する。印刷媒体のサイズについても同様であり、変換部67は、印刷データ取得部66が取得した印刷データが、印刷部71が使用する印刷媒体のサイズに適合している場合には、サイズの変換を行わずに印刷データ出力部68に出力する。   In addition, the conversion unit 67 outputs, to the print data output unit 68, data that does not need to be converted among the print data acquired by the print data acquisition unit 66 without conversion. Specifically, when the first printer 60 is an inkjet printer, the conversion unit 67 does not convert the print data acquired by the print data acquisition unit 66 to the print data output unit 68 if the print data is graphic data. Output. When the first printer 60 is a thermal printer, if the print data acquired by the print data acquisition unit 66 is text data, it is output to the print data output unit 68 without being converted. The same applies to the size of the print medium. If the print data acquired by the print data acquisition unit 66 matches the size of the print medium used by the print unit 71, the conversion unit 67 converts the size. Without printing, the data is output to the print data output unit 68.

印刷データ出力部68は、変換部67から入力された印刷データを印刷制御部70に出力する。この印刷データ出力部68が出力する印刷データは、テキストデータを含むデータであってもグラフィックデータであってもよい。
このようにして印刷データ出力部68が出力した印刷データは、印刷制御部70によって印刷される。これにより、第1プリンター60は、第2プリンター20により印刷されるレシート中の文字または文字列に対応したクーポンや、第2プリンター20が印刷すべきレシート自体を印刷できる。
さらに、印刷データ出力部68は、変換部67により変換された印刷データを、USBインターフェイス64から第2プリンター20に送信することもできる。例えば、印刷データ出力部68は、印刷データ取得部66が店舗サーバー101から取得したグラフィックデータを変換部67によりテキストデータに変換したデータを、第2プリンター20に送信することができる。また、例えば、変換部67が変換したテキストデータを、印刷データ取得部66がPOS端末装置10から受信した印刷データに付加して新たな印刷データを生成し、印刷コマンドとともに第2プリンター20に送信することもできる。
The print data output unit 68 outputs the print data input from the conversion unit 67 to the print control unit 70. The print data output by the print data output unit 68 may be data including text data or graphic data.
The print data output from the print data output unit 68 in this way is printed by the print control unit 70. Thereby, the 1st printer 60 can print the coupon corresponding to the character or character string in the receipt printed by the 2nd printer 20, and the receipt itself which the 2nd printer 20 should print.
Further, the print data output unit 68 can also transmit the print data converted by the conversion unit 67 from the USB interface 64 to the second printer 20. For example, the print data output unit 68 can transmit data obtained by converting the graphic data acquired by the print data acquisition unit 66 from the store server 101 into text data by the conversion unit 67 to the second printer 20. Further, for example, the text data converted by the conversion unit 67 is added to the print data received from the POS terminal device 10 by the print data acquisition unit 66 to generate new print data, which is transmitted to the second printer 20 together with the print command. You can also

第1プリンター60は、印刷部71を構成する機械機構と、印刷制御部70が実装された図示しないメイン基板(印刷制御基板)とを内蔵するとともに、このメイン基板とは別体の基板としてデータ処理部61を備える。すなわち、制御部62、LANインターフェイス63、USBインターフェイス64、記憶部65及び通信部69の各部はメイン基板とは別の基板に実装され、基板間のインターフェイスを介して、印刷制御部70に接続される。   The first printer 60 incorporates a mechanical mechanism constituting the printing unit 71 and a main board (printing control board) (not shown) on which the printing control unit 70 is mounted, and data as a separate board from the main board. A processing unit 61 is provided. That is, the control unit 62, the LAN interface 63, the USB interface 64, the storage unit 65, and the communication unit 69 are mounted on a board different from the main board, and are connected to the print control unit 70 via the interface between the boards. The

このように構成されるPOSシステム1では、POS端末装置10がレシート印刷用の印刷コマンドと印刷データとを送信すると、この印刷コマンド及び印刷データは第1プリンター60により受信される。第1プリンター60は、受信した印刷コマンド及び印刷データを、USBインターフェイス64から第2プリンター20に送信する。これにより、POS端末装置10及び第2プリンター20は、相互に直接接続された場合と同様に動作して、第2プリンター20によりレシートが印刷される。
また、POSシステム1においては、第1プリンター60がPOS端末装置10により送信された印刷データに基づいてクーポン印刷用のデータを店舗サーバー101から取得できる。第1プリンター60は、取得したクーポン印刷用のデータに基づいて、印刷制御部70により印刷部71を制御し、クーポンを印刷できる。
さらに、POSシステム1において、第1プリンター60は、店舗サーバー101からクーポン印刷用のデータを取得し、取得したデータに基づいて、第2プリンター20によってクーポンを印刷させることができる。この動作について図2を参照して説明する。
In the POS system 1 configured as described above, when the POS terminal device 10 transmits a print command and print data for receipt printing, the print command and print data are received by the first printer 60. The first printer 60 transmits the received print command and print data from the USB interface 64 to the second printer 20. Accordingly, the POS terminal device 10 and the second printer 20 operate in the same manner as when directly connected to each other, and the receipt is printed by the second printer 20.
In the POS system 1, the first printer 60 can acquire coupon printing data from the store server 101 based on the print data transmitted by the POS terminal device 10. The first printer 60 can print the coupon by controlling the printing unit 71 by the printing control unit 70 based on the acquired coupon printing data.
Further, in the POS system 1, the first printer 60 can acquire coupon printing data from the store server 101, and can cause the second printer 20 to print a coupon based on the acquired data. This operation will be described with reference to FIG.

図2は、POSシステム1の各部の動作を示すシーケンス図であり、(A)はPOS端末装置10の動作を示し、(B)は第1プリンター60の動作を示し、(C)は第2プリンター20の動作を示す。
この図2の動作では、第2プリンター20がテキストデータの印刷に適した構成であり、デバイスドライバー実行部11Bが、テキストデータを含む印刷データを送信するものとして説明する。
アプリケーション実行部11AがPOSアプリケーションプログラムを実行して会計処理を行い、レシートの印刷指示を出力すると(ステップS11)、デバイスドライバー実行部11Bが第2プリンター20に対応した印刷コマンドと印刷データとを生成し(ステップS12)、USBインターフェイス18から第1プリンター60に出力する(ステップS13)。
FIG. 2 is a sequence diagram showing the operation of each part of the POS system 1, (A) shows the operation of the POS terminal device 10, (B) shows the operation of the first printer 60, and (C) shows the second operation. The operation of the printer 20 is shown.
In the operation of FIG. 2, it is assumed that the second printer 20 has a configuration suitable for printing text data, and the device driver execution unit 11B transmits print data including text data.
When the application execution unit 11A executes the POS application program to perform accounting processing and outputs a receipt print instruction (step S11), the device driver execution unit 11B generates a print command and print data corresponding to the second printer 20 Then (step S12), the data is output from the USB interface 18 to the first printer 60 (step S13).

第1プリンター60においては、印刷データ取得部66が通信部69及びUSBインターフェイス64によってPOS端末装置10から送信された印刷コマンドと印刷データを受信し(ステップS21)、受信した印刷データを記憶部65に一時的に記憶する(ステップS22)。印刷データ取得部66は、記憶した印刷データを解析して(ステップS23)、予め設定された条件に該当するか否かを判定する(ステップS24)。この条件とは、例えば、上述したように予め設定された文字または文字列が印刷データに含まれることである。印刷データ取得部66は、印刷データが条件に該当する場合に(ステップS24;Yes)、店舗サーバー101からクーポンデータを取得し、或いは、予め記憶部12に記憶しているクーポン印刷用のデータを取得する(ステップS25)。
ここで、印刷データ取得部66で取得したクーポン印刷用のデータがグラフィックデータのとき、変換部67は、生成された印刷データをテキストデータに変換して出力する(ステップS26)。印刷データ出力部68は、変換部67により変換されたデータを、記憶部65に記憶している印刷データに付加して新たに印刷データ及び印刷コマンドを生成し(ステップS27)、第2プリンター20に送信する(ステップS28)。また、印刷データが条件に該当しない場合は(ステップS24;No)、第1プリンター60は、ステップS25からステップS27までを実行しない
第2プリンター20においては、制御部24がUSBインターフェイス22により印刷コマンドと印刷データを受信し(ステップS41)、印刷を実行する(ステップS42)。第2プリンター20は、第1プリンター60が送信した印刷コマンドと印刷データとを印刷するので、第2プリンター20のソフトウェアを変更することなく、第2プリンター20によってレシートとクーポンが印刷される。
In the first printer 60, the print data acquisition unit 66 receives the print command and the print data transmitted from the POS terminal device 10 via the communication unit 69 and the USB interface 64 (step S21), and the received print data is stored in the storage unit 65. (Step S22). The print data acquisition unit 66 analyzes the stored print data (step S23) and determines whether or not a preset condition is met (step S24). This condition is, for example, that a character or character string set in advance as described above is included in the print data. When the print data meets the conditions (step S24; Yes), the print data acquisition unit 66 acquires coupon data from the store server 101, or stores coupon print data stored in the storage unit 12 in advance. Obtain (step S25).
Here, when the coupon printing data acquired by the print data acquisition unit 66 is graphic data, the conversion unit 67 converts the generated print data into text data and outputs it (step S26). The print data output unit 68 adds the data converted by the conversion unit 67 to the print data stored in the storage unit 65 to newly generate print data and a print command (step S27), and the second printer 20 (Step S28) . If the print data does not meet the conditions (Step S24; No), the first printer 60 does not execute Steps S25 to S27 .
In the second printer 20, the control unit 24 receives a print command and print data via the USB interface 22 (step S41), and executes printing (step S42). Since the second printer 20 prints the print command and print data transmitted by the first printer 60, the receipt and coupon are printed by the second printer 20 without changing the software of the second printer 20.

図3は、POSシステム1の各部の動作を示すシーケンス図であり、(A)はPOS端末装置10の動作を示し、(B)は第1プリンター60の動作を示し、(C)は第2プリンター20の動作を示す。図3は、図2に示した動作において第2プリンター20のエラーが発生した場合に、第1プリンター60が第2プリンター20に代わってレシートを印刷する動作を示す。
また、この図3の動作では、第2プリンター20がテキストデータの印刷に適した構成であり、デバイスドライバー実行部11Bが、テキストデータを含む印刷データを送信するものとして説明する。
図3(A)のステップS11〜S13、及び図3(B)のステップS21〜S27の動作は上記と同様である。
第2プリンター20においては、制御部24がUSBインターフェイス22により印刷コマンドと印刷データを受信し(ステップS41)、印刷を実行する(ステップS42)。
ここで、第2プリンター20においてエラーが発生すると(ステップS43)、制御部24はエラー発生を知らせるコマンドであるエラー通知をUSBインターフェイス22から送信する(ステップS34)。第2プリンター20のエラーとは、例えば、印刷部25における用紙切れ、温度異常、機械的な故障や制御部24におけるソフトウェア的なエラーである。
FIG. 3 is a sequence diagram showing the operation of each part of the POS system 1, (A) shows the operation of the POS terminal device 10, (B) shows the operation of the first printer 60, and (C) shows the second operation. The operation of the printer 20 is shown. FIG. 3 shows an operation in which the first printer 60 prints a receipt in place of the second printer 20 when an error of the second printer 20 occurs in the operation shown in FIG.
In the operation of FIG. 3, the second printer 20 is configured to be suitable for printing text data, and the device driver execution unit 11B transmits print data including text data.
The operations in steps S11 to S13 in FIG. 3A and steps S21 to S27 in FIG. 3B are the same as described above.
In the second printer 20, the control unit 24 receives a print command and print data via the USB interface 22 (step S41), and executes printing (step S42).
Here, when an error occurs in the second printer 20 (step S43), the control unit 24 transmits an error notification, which is a command notifying the occurrence of the error, from the USB interface 22 (step S34). The error of the second printer 20 is, for example, out of paper in the printing unit 25, temperature abnormality, mechanical failure, or software error in the control unit 24.

第1プリンター60の制御部62は、第2プリンター20が送信したエラー通知をUSBインターフェイス64により受信し(ステップS29)、第2プリンター20におけるエラー発生を検出する。制御部62は、第2プリンター20の代替として印刷制御部70及び印刷部71により印刷を実行するため、変換部67によってデータの変換を行う(ステップS30)。ステップS28で第2プリンター20に送信された印刷データはテキストデータであるため、ステップS30で、変換部67は、ステップS28で送信した印刷データをグラフィックデータに変換する。変換されたグラフィックデータは、レシートとクーポンを印刷させるデータである。印刷データ出力部68は、変換部67が変換したグラフィックデータを印刷制御部70に出力し、印刷制御部70が印刷部71を制御して、レシート及びクーポンの印刷を実行する(ステップS31)。   The control unit 62 of the first printer 60 receives the error notification transmitted by the second printer 20 through the USB interface 64 (step S29), and detects the occurrence of an error in the second printer 20. In order to execute printing by the print control unit 70 and the printing unit 71 as an alternative to the second printer 20, the control unit 62 performs data conversion by the conversion unit 67 (step S30). Since the print data transmitted to the second printer 20 in step S28 is text data, in step S30, the conversion unit 67 converts the print data transmitted in step S28 into graphic data. The converted graphic data is data for printing a receipt and a coupon. The print data output unit 68 outputs the graphic data converted by the conversion unit 67 to the print control unit 70, and the print control unit 70 controls the printing unit 71 to execute printing of receipts and coupons (step S31).

また、第2プリンター20がグラフィックデータの印刷に適した構成とされ、デバイスドライバー実行部11Bがグラフィックデータを含む印刷データを送信する場合には、変換部67は、図3(B)のステップS26、S30における変換処理を行わず、ステップS28ではグラフィックデータを含む印刷データが第1プリンター60から第2プリンター20に送信される。
さらに、第1プリンター60がテキストデータの印刷に適した構成とされた場合、変換部67は、ステップS30において、ステップS28で送信されたグラフィックデータをテキストデータに変換する処理を行い、変換されたテキストデータを印刷データ出力部68が印刷制御部70に出力する。
When the second printer 20 is configured to print graphic data and the device driver execution unit 11B transmits print data including graphic data, the conversion unit 67 performs step S26 in FIG. 3B. In step S28, print data including graphic data is transmitted from the first printer 60 to the second printer 20 without performing the conversion process in S30.
Furthermore, when the first printer 60 is configured to be suitable for printing text data, the conversion unit 67 performs a process of converting the graphic data transmitted in step S28 into text data in step S30, and the converted data is converted. The print data output unit 68 outputs the text data to the print control unit 70.

[第1の実施形態]
続いて、第1プリンター60がテキストデータの印刷に適したサーマル式のプリンターである場合に、第1プリンター60によってクーポンを印刷する動作について説明する。
図4は、POSシステム1の各部の別の動作を示すシーケンス図であり、(A)はPOS端末装置10の動作を示し、(B)は第1プリンター60の動作を示す。
図4(A)のステップS11〜S13の動作は上記と同様である。
第1プリンター60においては、印刷データ取得部66が通信部69及びUSBインターフェイス64によってPOS端末装置10から送信された印刷コマンドと印刷データを受信し(ステップS21)、受信した印刷データを記憶部65に一時的に記憶する(ステップS22)。ここで、制御部62は、印刷データ取得部66が受信した印刷データを印刷制御部70に出力し、印刷制御部70が印刷部71によってレシートを印刷する(ステップS51)。
[First Embodiment]
Next, an operation of printing a coupon by the first printer 60 when the first printer 60 is a thermal printer suitable for printing text data will be described.
FIG. 4 is a sequence diagram showing another operation of each part of the POS system 1, (A) shows the operation of the POS terminal device 10, and (B) shows the operation of the first printer 60.
The operations in steps S11 to S13 in FIG. 4A are the same as described above.
In the first printer 60, the print data acquisition unit 66 receives the print command and the print data transmitted from the POS terminal device 10 via the communication unit 69 and the USB interface 64 (step S21), and the received print data is stored in the storage unit 65. (Step S22). Here, the control unit 62 outputs the print data received by the print data acquisition unit 66 to the print control unit 70, and the print control unit 70 prints a receipt by the printing unit 71 (step S51).

次いで、印刷データ取得部66は、記憶した印刷データを解析して(ステップS23)、予め設定された条件に該当するか否かを判定する(ステップS24)。印刷データ取得部66は、印刷データが条件に該当する場合に(ステップS24;Yes)、店舗サーバー101からクーポンデータを取得し、或いは、予め記憶部12に記憶しているクーポン印刷用のデータを取得する(ステップS25)。
ここで、印刷データ取得部66で取得したクーポン印刷用のデータがグラフィックデータのとき、変換部67は、取得された印刷データをテキストデータに変換して出力する(ステップS26)。印刷データ出力部68は、変換部67により変換されたデータを印刷制御部70に出力し、印刷制御部70は印刷部71を制御して、クーポンの印刷を実行する(ステップS52)。また、印刷データが条件に該当しない場合は(ステップS24;No)、第1プリンター60は、ステップS25からステップS27までを実行しない
Next, the print data acquisition unit 66 analyzes the stored print data (step S23) and determines whether or not a preset condition is met (step S24). When the print data meets the conditions (step S24; Yes), the print data acquisition unit 66 acquires coupon data from the store server 101, or stores coupon print data stored in the storage unit 12 in advance. Obtain (step S25).
Here, when the coupon printing data acquired by the print data acquisition unit 66 is graphic data, the conversion unit 67 converts the acquired print data into text data and outputs it (step S26). The print data output unit 68 outputs the data converted by the conversion unit 67 to the print control unit 70, and the print control unit 70 controls the printing unit 71 to execute coupon printing (step S52). If the print data does not meet the conditions (Step S24; No), the first printer 60 does not execute Steps S25 to S27 .

以上説明したように、本発明の第1の実施形態に係るPOSシステム1では、第1プリンター60が、グラフィックデータを取得する印刷データ取得部66と、印刷データ取得部66により取得されたグラフィックデータをテキストデータに変換する変換部67と、変換部67により変換されたテキストデータを出力する印刷データ出力部68と、印刷データ出力部68が出力するテキストデータを印刷する印刷部71と、を備え、例えば図4を参照して説明したように、第1プリンター60がテキストデータの印刷に適した構成であり、POS端末装置10がグラフィックデータを送信する場合であっても、POS端末装置10が送信したグラフィックデータをテキストデータに変換して印刷できる。また、印刷データ取得部66が店舗サーバー101から取得したグラフィックデータを、テキストデータに変換して印刷できる。従って、第1プリンター60は、処理するデータがグラフィックデータであるかテキストデータであるかに関わらず第1プリンター60を利用できる。これにより、POS端末装置10のアプリケーション実行部11Aの機能及び第2プリンター20に影響を与えることなく、POSシステム1に第1プリンター60を設置して使用でき、例えば既存の第2プリンター20を第1プリンター60に置き換えたり、新たに第1プリンター60を設置してPOSシステム1の機能を拡充したりすることができる。例えば、第1プリンター60は、第2プリンター20により印刷されるレシートに影響を与えることなく、このレシートに関連するクーポンを印刷することができ、さらに、第2プリンター20の機能を代替してレシートを印刷することもできる。従って、第1プリンター60により第2プリンター20を置き換えることも可能となる。   As described above, in the POS system 1 according to the first embodiment of the present invention, the first printer 60 has the print data acquisition unit 66 that acquires graphic data and the graphic data acquired by the print data acquisition unit 66. Is converted to text data, a print data output unit 68 that outputs the text data converted by the conversion unit 67, and a print unit 71 that prints the text data output by the print data output unit 68. For example, as described with reference to FIG. 4, even when the first printer 60 is configured to print text data and the POS terminal device 10 transmits graphic data, the POS terminal device 10 The sent graphic data can be converted into text data and printed. Further, the graphic data acquired from the store server 101 by the print data acquisition unit 66 can be converted into text data and printed. Therefore, the first printer 60 can use the first printer 60 regardless of whether the data to be processed is graphic data or text data. Accordingly, the first printer 60 can be installed and used in the POS system 1 without affecting the function of the application execution unit 11A of the POS terminal apparatus 10 and the second printer 20, and for example, the existing second printer 20 can be used as the second printer 20. The function of the POS system 1 can be expanded by replacing the first printer 60 or newly installing the first printer 60. For example, the first printer 60 can print a coupon related to the receipt without affecting the receipt printed by the second printer 20, and can also replace the function of the second printer 20 to receive the receipt. Can also be printed. Therefore, the second printer 20 can be replaced by the first printer 60.

また、制御部62は、印刷データ取得部66によりPOS端末装置10から受信した印刷データに基づいて、印刷データ取得部66によって新たにグラフィックデータを店舗サーバー101から取得し、このグラフィックデータを印刷部71により印刷する。これにより、受信したデータを印刷するだけでなく、受信したデータに基づく別の印刷物を得ることができる。また、変換部67は、所定の印刷媒体のサイズに適合したグラフィックデータを、印刷部71の印刷媒体のサイズに適合するテキストデータに変換することも可能であり、使用する印刷媒体に適した印刷を行える。
さらに、POS端末装置10と第2プリンター20とが接続された構成に、第1プリンター60を追加してPOSシステム1を構成する際には、POS端末装置10において構成変更やアプリケーション実行部11A及びデバイスドライバー実行部11Bの動作に係る設定変更は不要であり、第2プリンター20においても、制御部24の動作に関する変更は不要である。
Further, the control unit 62 acquires new graphic data from the store server 101 by the print data acquisition unit 66 based on the print data received from the POS terminal device 10 by the print data acquisition unit 66, and this graphic data is acquired by the printing unit. 71 to print. Thereby, not only the received data is printed, but also another printed matter based on the received data can be obtained. The conversion unit 67 can also convert graphic data suitable for the size of a predetermined print medium into text data suitable for the size of the print medium of the print unit 71, and can perform printing suitable for the print medium to be used. Can be done.
Furthermore, when the POS system 1 is configured by adding the first printer 60 to the configuration in which the POS terminal device 10 and the second printer 20 are connected, the POS terminal device 10 includes a configuration change, an application execution unit 11A, and the like. It is not necessary to change the setting related to the operation of the device driver execution unit 11B, and the second printer 20 also does not need to change the operation of the control unit 24.

[第2の実施形態]
図5は、本発明の第2の実施形態に係るPOSシステム2の機能ブロック図である。
この第2の実施形態では、レシートを印刷する第2プリンター21(第2印刷装置)が、POS端末装置10に、店内LAN100を介して接続されたPOSシステム2(印刷システム)について説明する。つまり、第1の実施形態のPOSシステム1ではPOS端末装置10にローカル接続された第2プリンター20を用いていたのに対し、POSシステム2ではPOS端末装置10にネットワーク接続された第2プリンター21を用いている。本第2の実施形態において、上記第1の実施形態と共通する構成部については同符号を付して説明を省略する。
[Second Embodiment]
FIG. 5 is a functional block diagram of the POS system 2 according to the second embodiment of the present invention.
In the second embodiment, a POS system 2 (printing system) in which a second printer 21 (second printing apparatus) that prints a receipt is connected to the POS terminal apparatus 10 via an in-store LAN 100 will be described. That is, in the POS system 1 of the first embodiment, the second printer 20 locally connected to the POS terminal apparatus 10 is used, whereas in the POS system 2, the second printer 21 connected to the POS terminal apparatus 10 via the network is used. Is used. In the second embodiment, the same components as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted.

この第2の実施形態では、レシートを印刷する第2プリンター21(第2印刷装置)が、LANケーブルを介して第1プリンター60に接続されたPOSシステム2について説明する。POSシステム2においては、POS端末装置10が店内LAN100を介して第1プリンター60に接続されている。
一方、第2プリンター21は、上記第1の実施形態に係る第2プリンター20と同様に、制御部24及び印刷部25を備えるほか、USBインターフェイス22に代えてLANインターフェイス23を備えている。LANインターフェイス23は、例えばEthernet規格に準拠したコネクターを備え、LANケーブルを介して他の装置との間で相互にデータを送受信する。この第2の実施形態では、第2プリンター21はLANケーブルを介して第1プリンター60に接続され、LANインターフェイス63のハブ機能によって店内LAN100に接続される。従って、第2プリンター21は、LANケーブルを介して第1プリンター60及びPOS端末装置10と通信を行う他は、第2プリンター20(図1)と同様に動作する。ここで、LANインターフェイス63は接続部として機能する。
In the second embodiment, a POS system 2 in which a second printer 21 (second printing apparatus) that prints a receipt is connected to the first printer 60 via a LAN cable will be described. In the POS system 2, the POS terminal device 10 is connected to the first printer 60 via the in-store LAN 100.
On the other hand, the second printer 21 includes a control unit 24 and a printing unit 25 as well as the second interface 20 according to the first embodiment, and includes a LAN interface 23 instead of the USB interface 22. The LAN interface 23 includes a connector conforming to, for example, the Ethernet standard, and transmits / receives data to / from other devices via a LAN cable. In the second embodiment, the second printer 21 is connected to the first printer 60 via a LAN cable, and is connected to the in-store LAN 100 by the hub function of the LAN interface 63. Accordingly, the second printer 21 operates in the same manner as the second printer 20 (FIG. 1) except that it communicates with the first printer 60 and the POS terminal device 10 via the LAN cable. Here, the LAN interface 63 functions as a connection unit.

POS端末装置10は、LANインターフェイス17から店内LAN100を介して、第2プリンター21に対して印刷コマンド及び印刷データを送信する。POS端末装置10が送信した印刷コマンド及び印刷データは、LANインターフェイス63を経由して第2プリンター21に送信される。また、第2プリンター21が送信するコマンドやデータは、LANインターフェイス63を介して店内LAN100に送信され、POS端末装置10等が受信する。
制御部62は、LANインターフェイス63を制御して、POS端末装置10から第2プリンター21に向けて送信されたデータを受信して記憶部65に記憶する。また、制御部62は、第2プリンター21がPOS端末装置10に向けて送信したコマンドやデータをLANインターフェイス63により受信し、POS端末装置10に送信する必要がある場合のみ、このコマンドやデータをLANインターフェイス63から店内LAN100へ送信する。従って、制御部62は、LANインターフェイス63により、POS端末装置10と第2プリンター21との間のデータ通信を中継し、制御する。
The POS terminal device 10 transmits a print command and print data from the LAN interface 17 to the second printer 21 via the in-store LAN 100. The print command and print data transmitted by the POS terminal device 10 are transmitted to the second printer 21 via the LAN interface 63. Further, commands and data transmitted by the second printer 21 are transmitted to the in-store LAN 100 via the LAN interface 63 and received by the POS terminal device 10 and the like.
The control unit 62 controls the LAN interface 63 to receive data transmitted from the POS terminal device 10 toward the second printer 21 and store the data in the storage unit 65. In addition, the control unit 62 receives the command and data transmitted from the second printer 21 to the POS terminal apparatus 10 through the LAN interface 63 and transmits the command and data to the POS terminal apparatus 10 only when necessary. The data is transmitted from the LAN interface 63 to the in-store LAN 100. Accordingly, the control unit 62 relays and controls data communication between the POS terminal device 10 and the second printer 21 through the LAN interface 63.

この第2の実施形態に係るPOSシステム2は、図2〜図4に示した動作と同様の動作を実行する。すなわち、第1プリンター60は、POS端末装置10が第2プリンター21に対してレシートの印刷を指示する印刷コマンド及び印刷データを送信した場合に、この印刷コマンド及び印刷データをLANインターフェイス63により受信し、LANインターフェイス63から第2プリンター21に送信する。
ここで、制御部62は、POS端末装置10から受信した印刷データに基づいて、店舗サーバー101からクーポン印刷用のデータを取得し、取得したクーポン印刷用のデータをテキストデータに変換して、POS端末装置10が送信したレシートの印刷データに付加して第2プリンター21に送信する。これにより、第2プリンター21は、レシートとクーポンを印刷する。
The POS system 2 according to the second embodiment executes the same operation as that shown in FIGS. That is, the first printer 60 receives the print command and print data from the LAN interface 63 when the POS terminal apparatus 10 transmits a print command and print data instructing the second printer 21 to print a receipt. Then, the data is transmitted from the LAN interface 63 to the second printer 21.
Here, the control unit 62 acquires coupon print data from the store server 101 based on the print data received from the POS terminal device 10, converts the acquired coupon print data into text data, and The data is added to the receipt print data transmitted by the terminal device 10 and transmitted to the second printer 21. Thereby, the 2nd printer 21 prints a receipt and a coupon.

ここで、第1プリンター60がテキストデータの印刷に適した構成である場合に、印刷データ取得部66が店舗サーバー101から取得したグラフィックデータをテキストデータに変換して、第1プリンター60によりクーポンを印刷する。
このように、第2プリンター21がLANケーブルを介してPOS端末装置10に接続される構成においても、本発明を適用して、上記第1の実施形態と同様の効果を得ることができる。そして、図5のPOSシステム2においても、第1プリンター60は、処理するデータの種類に起因する制約に対応して、使用可能である。例えば、第1プリンター60がテキストデータの印刷に適した構成であり、第2プリンター21がグラフィックデータの印刷に適した構成とされた場合に、第2プリンター21において印刷時のエラーが発生すると、第1プリンター60は、第2プリンター21に送信したグラフィックデータをテキストデータに再度変換し、変換したテキストデータに基づいて、印刷制御部70により印刷部71を制御して印刷を実行することもできる。これにより、第1プリンター60が第2プリンター20に代わってレシート及びクーポンを印刷できる。
Here, when the first printer 60 has a configuration suitable for printing text data, the print data acquisition unit 66 converts the graphic data acquired from the store server 101 into text data, and the first printer 60 applies a coupon. Print.
As described above, even in a configuration in which the second printer 21 is connected to the POS terminal apparatus 10 via the LAN cable, the same effects as those of the first embodiment can be obtained by applying the present invention. Also in the POS system 2 of FIG. 5, the first printer 60 can be used in accordance with the restrictions caused by the type of data to be processed. For example, when the first printer 60 has a configuration suitable for printing text data and the second printer 21 has a configuration suitable for printing graphic data, if an error occurs during printing in the second printer 21, The first printer 60 can also convert the graphic data transmitted to the second printer 21 into text data again, and execute printing by controlling the printing unit 71 by the print control unit 70 based on the converted text data. . Thereby, the 1st printer 60 can print a receipt and a coupon instead of the 2nd printer 20. FIG.

[第3の実施形態]
図6は、本発明の第3の実施形態に係るPOSシステム3の機能ブロック図である。
この第3の実施形態で説明するPOSシステム3(印刷システム)は、第2の実施形態で説明したPOSシステム2において、クーポンを印刷する専用の第3プリンター30(第3印刷装置)を設けた構成となっている。本第3の実施形態において、上記第1または第2の実施形態と共通する構成部については同符号を付して説明を省略する。
[Third Embodiment]
FIG. 6 is a functional block diagram of the POS system 3 according to the third embodiment of the present invention.
The POS system 3 (printing system) described in the third embodiment is provided with a dedicated third printer 30 (third printing device) for printing coupons in the POS system 2 described in the second embodiment. It has a configuration. In the third embodiment, components common to those in the first or second embodiment are denoted by the same reference numerals and description thereof is omitted.

第3プリンター30は、店内LAN100に接続されるLANインターフェイス33と、POS端末装置10が送信した印刷データを、LANインターフェイス33を介して受信する制御部34とを備える。制御部34は、受信した印刷データから予め設定された文字または文字列を検出し、検出した文字または文字列に対応するクーポンのデータを、店舗サーバー101から取得する。そして、制御部34は、店舗サーバー101から取得したクーポンの印刷データを、印刷部35によって印刷する。印刷部35は、制御部34の制御によりロール紙やカット紙等の印刷媒体に文字や画像を印刷する印刷ヘッド36と、制御部34の制御により印刷媒体を搬送する搬送モーター37と、制御部34の制御により印刷媒体をカットするカッターユニット38とを備えている。
第3プリンター30は、例えば、上記のインクジェット式のプリンターとして構成され、グラフィックデータの印刷に適した構成であり、店舗サーバー101から取得するクーポンのグラフィックデータを印刷するのに好適である。
The third printer 30 includes a LAN interface 33 connected to the in-store LAN 100 and a control unit 34 that receives the print data transmitted by the POS terminal device 10 via the LAN interface 33. The control unit 34 detects a preset character or character string from the received print data, and acquires coupon data corresponding to the detected character or character string from the store server 101. Then, the control unit 34 causes the printing unit 35 to print the coupon print data acquired from the store server 101. The printing unit 35 includes a print head 36 that prints characters and images on a print medium such as roll paper and cut paper under the control of the control unit 34, a transport motor 37 that transports the print medium under the control of the control unit 34, and a control unit And a cutter unit 38 for cutting the print medium under the control of 34.
The third printer 30 is configured as, for example, the above-described ink jet printer, and has a configuration suitable for printing graphic data, and is suitable for printing the graphic data of coupons acquired from the store server 101.

このPOSシステム3によれば、POS端末装置10、第2プリンター21及び第1プリンター60は、上記第1及び第2の実施形態で説明した動作を実行できる。
さらに、第1プリンター60は、第3プリンター30においてクーポンの印刷時にエラーが発生した場合に、第3プリンター30に代わってクーポンを印刷できる。ここで、第1プリンター60がテキストデータの印刷に適したサーマル式のプリンターである場合には、クーポンのグラフィックデータをテキストデータに変換して、第1プリンター60によってクーポンを印刷する。この動作について図7を参照して説明する。
According to the POS system 3, the POS terminal device 10, the second printer 21, and the first printer 60 can execute the operations described in the first and second embodiments.
Further, the first printer 60 can print a coupon in place of the third printer 30 when an error occurs during coupon printing in the third printer 30. When the first printer 60 is a thermal printer suitable for printing text data, the coupon graphic data is converted into text data, and the coupon is printed by the first printer 60. This operation will be described with reference to FIG.

図7は、POSシステム3の各部の動作を示すシーケンス図であり、(A)はPOS端末装置10の動作を示し、(B)は第1プリンター60の動作を示し、(C)は第3プリンター30動作を示す。
図7(A)のステップS11〜S13に示すPOS端末装置10の動作は、印刷コマンド及び印刷データを店内LAN100により送受信する点を除き、図2(A)と同様である。また、図7(B)のステップS21〜S22に示す第1プリンター60の動作は、印刷コマンド及び印刷データをLANインターフェイス63により送受信する点を除き、図2(B)と同様である。すなわち、第1プリンター60は、POS端末装置10が送信した印刷コマンド及び印刷データを印刷データ取得部66により受信し(ステップS21)、受信した印刷コマンド及び印刷データを記憶部65に記憶し(ステップS22)、この印刷コマンド及び印刷データを第2プリンター21に送信する(ステップS60)。
FIG. 7 is a sequence diagram showing the operation of each part of the POS system 3, (A) shows the operation of the POS terminal device 10, (B) shows the operation of the first printer 60, and (C) shows the third operation. The operation of the printer 30 is shown.
The operation of the POS terminal apparatus 10 shown in steps S11 to S13 in FIG. 7A is the same as that in FIG. 2A except that the print command and the print data are transmitted and received by the in-store LAN 100. The operation of the first printer 60 shown in steps S21 to S22 in FIG. 7B is the same as that in FIG. 2B except that the print command and print data are transmitted and received through the LAN interface 63. That is, the first printer 60 receives the print command and print data transmitted from the POS terminal device 10 by the print data acquisition unit 66 (step S21), and stores the received print command and print data in the storage unit 65 (step S21). In step S22, the print command and print data are transmitted to the second printer 21 (step S60).

第3プリンター30は、制御部34がLANインターフェイス33によってPOS端末装置10から送信された印刷コマンドと印刷データを受信し(ステップS71)、受信した印刷データを解析して(ステップS72)、予め設定された条件に該当するか否かを判定する(ステップS73)。制御部34は、印刷データが条件に該当する場合に(ステップS73;Yes)、店舗サーバー101からクーポンデータを取得してクーポン印刷用のデータを生成する(ステップS74)。制御部34は印刷部35を制御してクーポンの印刷を実行する(ステップS75)。また、印刷データが条件に該当しない場合は(ステップS73;No)、制御部34は動作を終了する。
ここで、印刷部35においてエラーが発生した場合(ステップS76)、第1プリンター60の制御部62は、第3プリンター30におけるエラーの発生を検出する(ステップS61)。印刷データ取得部66は、記憶した印刷データを解析して(ステップS62)、予め設定された条件に該当するか否かを判定する(ステップS63)。印刷データ取得部66は、印刷データが条件に該当する場合に(ステップS63;Yes)、店舗サーバー101からクーポンデータを取得し、或いは、予め記憶部12に記憶しているクーポン印刷用のデータを取得する(ステップS64)。
ここで、印刷データ取得部66が生成したクーポン印刷用のデータはグラフィックデータであるため、変換部67は、生成された印刷データをテキストデータに変換して出力する(ステップS65)。印刷データ出力部68は、変換部67により変換されたデータを印刷制御部70に出力し、印刷制御部70は印刷部71を制御して、クーポンの印刷を実行する(ステップS66)。また、印刷データが条件に該当しない場合は(ステップS6;No)、第1プリンター60は動作を終了する。
In the third printer 30, the control unit 34 receives the print command and print data transmitted from the POS terminal device 10 via the LAN interface 33 (step S 71), analyzes the received print data (step S 72), and sets in advance. It is determined whether or not the specified condition is satisfied (step S73). When the print data meets the conditions (step S73; Yes), the control unit 34 acquires coupon data from the store server 101 and generates coupon printing data (step S74). The control unit 34 controls the printing unit 35 to execute coupon printing (step S75). If the print data does not satisfy the condition (step S73; No), the control unit 34 ends the operation.
Here, when an error occurs in the printing unit 35 (step S76), the control unit 62 of the first printer 60 detects the occurrence of an error in the third printer 30 (step S61). The print data acquisition unit 66 analyzes the stored print data (step S62) and determines whether or not a preset condition is met (step S63). When the print data meets the conditions (step S63; Yes), the print data acquisition unit 66 acquires coupon data from the store server 101, or stores coupon print data stored in the storage unit 12 in advance. Obtain (step S64).
Here, since the coupon printing data generated by the print data acquisition unit 66 is graphic data, the conversion unit 67 converts the generated print data into text data and outputs it (step S65). The print data output unit 68 outputs the data converted by the conversion unit 67 to the print control unit 70, and the print control unit 70 controls the printing unit 71 to execute coupon printing (step S66). If the print data does not meet the conditions (step S6 3 ; No), the first printer 60 ends the operation.

このように、POS端末装置10が第2プリンター20に送信する印刷データに基づいて、クーポンを印刷する第3プリンター30において、エラーが発生した場合に、第3プリンター30に代わって第1プリンター60がクーポンを印刷できる。この第3の実施形態においても、第1プリンター60は、処理するデータの種類に起因する制約に対応して使用可能であるため、グラフィックデータで構成されるクーポン印刷用のデータをテキストデータに変換して、印刷を実行できる。従って、POSシステム3においては、第1プリンター60を設けることで、POS端末装置10の構成に影響を与えることなく、第2プリンター20及び第3プリンター30の一方または両方を代替させることができ、例えば、第1プリンター60を設けることで第2プリンター20及び第1プリンター60の一方、または両方を置き換えることも可能となる。   As described above, when an error occurs in the third printer 30 that prints a coupon based on the print data transmitted from the POS terminal device 10 to the second printer 20, the first printer 60 is used instead of the third printer 30. Can print coupons. Also in the third embodiment, the first printer 60 can be used corresponding to the restrictions caused by the type of data to be processed, so the coupon printing data composed of graphic data is converted into text data. Then, printing can be executed. Therefore, in the POS system 3, by providing the first printer 60, one or both of the second printer 20 and the third printer 30 can be replaced without affecting the configuration of the POS terminal device 10. For example, by providing the first printer 60, one or both of the second printer 20 and the first printer 60 can be replaced.

なお、上記各実施形態は本発明を適用した一態様を示すものであって、本発明を限定するものではない。例えば、上記各実施形態では、POSアプリケーションプログラムを実行するPOS端末装置10をホスト装置とし、このPOS端末装置10に、第2プリンター20、21及び/又は第3プリンター30が接続されたPOSシステムに、第1プリンター60を適用した例を説明したが、本発明はこれに限定されるものではない。他のデータ処理を行うホスト装置にプリンターを接続して、その他の帳票を印刷出力する構成に適用することも可能である。また、上記各実施形態では、ホスト装置としてのPOS端末装置10から各プリンターに印刷コマンド及び印刷データを送信する構成を例に挙げて説明したが、POS端末装置10に代えて、携帯端末装置を用いてもよいし、遠隔地に設置されたサーバー装置と通信回線を介して接続されたクライアント装置を用いてもよい。この場合、遠隔地のサーバー装置がアプリケーションプログラムを実行し、このサーバー装置が生成して送信する印刷コマンドや印刷データを、クライアント装置が各プリンターに送信する構成であってもよい。さらにまた、各プリンターはPOS端末装置10に有線接続される構成に限定されず、無線通信によりPOS端末装置10に接続してもよい。   Each of the above embodiments shows one aspect to which the present invention is applied, and does not limit the present invention. For example, in each of the above-described embodiments, the POS terminal device 10 that executes the POS application program is a host device, and the POS terminal device 10 is connected to the second printer 20, 21 and / or the third printer 30. Although an example in which the first printer 60 is applied has been described, the present invention is not limited to this. The present invention can also be applied to a configuration in which a printer is connected to a host device that performs other data processing and other forms are printed out. Further, in each of the above embodiments, the configuration in which the print command and the print data are transmitted from the POS terminal device 10 serving as the host device to each printer has been described as an example. You may use, and the client apparatus connected via the communication line with the server apparatus installed in the remote place may be used. In this case, the remote server device may execute an application program, and the client device may transmit a print command or print data generated and transmitted by the server device to each printer. Furthermore, each printer is not limited to the configuration connected to the POS terminal device 10 by wire, and may be connected to the POS terminal device 10 by wireless communication.

また、上記各実施形態では、POS端末装置10、第2プリンター20及び第1プリンター60が、USB規格に準拠したインターフェイスまたはEthernetに準拠した店内LAN100により接続される構成を例に挙げて説明したが、本発明はこれに限定されるものではなく、複数の装置を相互にデータ通信可能に接続するインターフェイスであれば、本発明を適用可能である。
また、上述した実施形態では第2プリンター20、21が備える印刷部25、第3プリンター30が備える印刷部35、及び第1プリンター60が備える印刷部71について、カット紙やロール紙に印刷する構成を例に挙げて説明したが、その具体的な構成は、サーマルプリンター、インクジェットプリンター、ドットインパクト式プリンター、レーザープリンター、その他の各種プリンターとしてもよい。さらに、図1、図5、及び図6に示す各機能ブロックのうち、少なくとも制御部を含む各部はハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。さらに、これらの各部は外部接続される記憶媒体に記憶させたプログラムを実行することにより、各シーケンス図に示した各種動作を実行する構成としてもよい。
In each of the above embodiments, the POS terminal device 10, the second printer 20, and the first printer 60 have been described by taking as an example a configuration in which the interface conforming to the USB standard or the in-store LAN 100 conforming to the Ethernet is connected. The present invention is not limited to this, and the present invention can be applied to any interface that connects a plurality of devices so as to be able to perform data communication with each other.
In the above-described embodiment, the printing unit 25 included in the second printers 20 and 21, the printing unit 35 included in the third printer 30, and the printing unit 71 included in the first printer 60 are configured to print on cut paper or roll paper. However, the specific configuration may be a thermal printer, an ink jet printer, a dot impact printer, a laser printer, or other various printers. Furthermore, among the functional blocks shown in FIGS. 1, 5, and 6, at least each unit including the control unit can be arbitrarily realized by cooperation of hardware and software, and suggests a specific hardware configuration. is not. Furthermore, each of these units may be configured to execute various operations shown in each sequence diagram by executing a program stored in an externally connected storage medium.

1、2、3…POSシステム(印刷システム)、10…POS端末装置(ホスト装置、POS端末)、20、21…第2プリンター(第2印刷装置)、25…印刷部、30…第3プリンター、35…印刷部、60…第1プリンター(印刷装置)、61…データ処理部、62…制御部、63…LANインターフェイス(接続部)、64…USBインターフェイス(接続部)、66…印刷データ取得部、67…変換部、68…印刷データ出力部、70…印刷制御部、71…印刷部、100…店内LAN。   1, 2, 3, ... POS system (printing system), 10 ... POS terminal device (host device, POS terminal), 20, 21 ... second printer (second printing device), 25 ... printing unit, 30 ... third printer , 35 ... printing unit, 60 ... first printer (printing apparatus), 61 ... data processing unit, 62 ... control unit, 63 ... LAN interface (connection unit), 64 ... USB interface (connection unit), 66 ... acquisition of print data , 67... Conversion unit, 68... Print data output unit, 70... Print control unit, 71.

Claims (9)

ホスト装置および外部装置に接続される印刷装置であって、
前記ホスト装置から第1データを取得する印刷データ取得部と、
テキストデータまたはグラフィックデータのいずれかのデータに対応した印刷部と、
前記印刷データ取得部で取得された前記第1データについて、前記テキストデータから前記グラフィックデータへの変換、または、前記グラフィックデータから前記テキストデータへの変換をする変換部と、
前記変換部で変換された前記第1データを前記印刷部に出力する印刷データ出力部と、を備え、
前記印刷データ取得部は、前記ホスト装置から取得した前記第1データに基づいて、前記外部装置から前記第1データとは異なる第2データを取得し、
前記変換部は、前記印刷データ取得部が前記外部装置から取得した前記第2データが前記印刷部の印刷に対応するデータではない場合、前記第2データを前記印刷部に対応するデータに変換し、
前記変換部は、前記グラフィックデータを、前記印刷部で印刷される印刷媒体のサイズに対応する前記テキストデータに変換することを特徴とする印刷装置。
A printing device connected to a host device and an external device ,
A print data acquisition unit for acquiring first data from the host device;
A print section corresponding to either text data or graphic data;
A conversion unit that converts the text data to the graphic data or the graphic data to the text data for the first data acquired by the print data acquisition unit;
A print data output unit that outputs the first data converted by the conversion unit to the print unit;
The print data acquisition unit acquires second data different from the first data from the external device based on the first data acquired from the host device;
The converting unit, the case where the print data acquisition unit is the second data acquired from the external device is not the data corresponding to the printing of the printing unit, converting the second data to the data corresponding to the printing unit ,
The printing unit, wherein the conversion unit converts the graphic data into the text data corresponding to a size of a print medium printed by the printing unit.
前記印刷部前記テキストデータ印刷に対応する場合に、前記変換部は、前記グラフィックデータを、前記グラフィックデータに含まれる文字の文字コードを指定する前記テキストデータに変換する請求項1記載の印刷装置。 When the printing unit corresponding to the printing of the text data, the conversion unit may print the graphic data, according to claim 1, wherein converting the text data for designating a character code of the character included in the graphic data apparatus. 前記印刷データ取得部は、前記ホスト装置から取得した、テキストデータで構成される前記第1データに所定の文字列を検出した場合、前記外部装置から、検出した文字列に対応する前記第2データを取得し、
前記変換部は、前記印刷データ取得部で取得した前記第2データが前記印刷部に対応するデータではない場合、前記第2データを前記印刷部に対応するデータに変換する請求項1または2に記載の印刷装置。
The print data acquisition unit has acquired from the previous SL host device, the text if the data has been detected a predetermined string constituted the first data, from said external device, said second corresponding to the detected character string Get the data ,
The conversion unit converts the second data into data corresponding to the printing unit when the second data acquired by the print data acquisition unit is not data corresponding to the printing unit. The printing apparatus as described.
第1データを出力するホスト装置と、
前記ホスト装置および外部装置に接続され、前記ホスト装置から出力された前記第1データを取得する印刷データ取得部、テキストデータまたはグラフィックデータのいずれかのデータの印刷に対応した印刷部、前記印刷データ取得部で取得された前記第1データについて、前記テキストデータから前記グラフィックデータへの変換、または、前記グラフィックデータからテキストデータへの変換をする変換部、前記変換部で変換された前記第1データを出力する印刷データ出力部を有する印刷装置と、を備え、
前記変換部は、前記グラフィックデータを、前記印刷部で印刷される印刷媒体のサイズに対応する前記テキストデータに変換し、
前記印刷装置は、前記印刷データ取得部により、前記ホスト装置から取得した前記第1データに基づいて、前記外部装置から前記第1データとは異なる第2データを取得し、前記印刷データ取得部が前記外部装置から取得した前記第2データが前記印刷部に対応するデータではない場合、前記変換部により、前記第2データを、前記テキストデータ及び前記グラフィックデータのうち前記印刷部の印刷に対応するデータに変換することを特徴とする印刷システム。
A host device that outputs first data;
A print data acquisition unit connected to the host device and an external device for acquiring the first data output from the host device; a print unit corresponding to printing of text data or graphic data; and the print data for the first data acquired by the acquiring unit, convert the text data into the graphic data, or conversion unit, converted first data in the converter for the conversion of text data from the graphic data A printing apparatus having a print data output unit for outputting
The conversion unit converts the graphic data into the text data corresponding to the size of a print medium printed by the printing unit,
The printing device acquires second data different from the first data from the external device based on the first data acquired from the host device by the print data acquisition unit, and the print data acquisition unit wherein when said second data acquired from the external device is not the data corresponding to the printing unit, by the conversion unit, the second data, corresponding to the print of the printing unit of the text data and the graphic data A printing system characterized by converting to data.
前記印刷装置が有する前記印刷部前記テキストデータの印に対応する場合に、前記変換部は、前記グラフィックデータを、前記グラフィックデータに含まれる文字の文字コードを指定する前記テキストデータに変換する請求項記載の印刷システム。 When the printing unit in which the printing apparatus has to correspond to the printing of the text data, the conversion unit, the graphic data is converted into the text data specifying the character codes of characters included in the graphic data The printing system according to claim 4 . 前記印刷装置と接続され、前記テキストデータまたは前記グラフィックデータの印刷に対応した第2印刷装置を備え、
前記印刷装置は、前記変換部により、前記ホスト装置が出力し前記印刷データ取得部で受信した前記第1データを前記第2印刷装置の印刷に対応したデータに変換し、前記変換部で変換された前記第1データを前記印刷データ出力部により前記第2印刷装置に出力する請求項またはに記載の印刷システム。
Which is connected with the printing apparatus, comprising a second printing device that corresponds to the printing of the text data and the graphic data,
The printing device converts the first data output from the host device and received by the print data acquisition unit into data corresponding to printing of the second printing device by the conversion unit, and is converted by the conversion unit. the printing system of claim 4 or 5 to output to the second printing unit said first data by said print data output unit has.
取引情報を第1データとして出力するPOS端末と、
前記POS端末および外部装置に接続され、前記POS端末から出力された前記第1データを取得する印刷データ取得部、テキストデータまたはグラフィックデータのいずれかのデータの印刷に対応した印刷部、前記印刷データ取得部で取得された前記第1データについて、前記テキストデータから前記グラフィックデータへの変換、または、前記グラフィックデータからテキストデータへの変換をする変換部、前記変換部で変換された前記第1データを出力する印刷データ出力部を有する印刷装置と、を備え、
前記変換部は、前記グラフィックデータを、前記印刷部で印刷される印刷媒体のサイズに対応する前記テキストデータに変換し、
前記印刷装置は、前記印刷データ取得部により、前記POS端末から取得した前記第1データに基づいて、前記外部装置から前記第1データとは異なる第2データを取得し、前記印刷データ取得部が前記外部装置から取得した前記第2データが前記印刷部の印刷に対応したデータではない場合、前記変換部により、前記第2データを、前記テキストデータ及び前記グラフィックデータのうち前記印刷部の印刷に対応したデータに変換することを特徴とするPOSシステム。
A POS terminal for outputting transaction information as the first data,
A print data acquisition unit connected to the POS terminal and an external device for acquiring the first data output from the POS terminal; a printing unit corresponding to printing of text data or graphic data; and the print data for the first data acquired by the acquiring unit, convert the text data into the graphic data, or conversion unit, converted first data in the converter for the conversion of text data from the graphic data A printing apparatus having a print data output unit for outputting
The conversion unit converts the graphic data into the text data corresponding to the size of a print medium printed by the printing unit,
The printing device acquires second data different from the first data from the external device based on the first data acquired from the POS terminal by the print data acquisition unit, and the print data acquisition unit When the second data acquired from the external device is not data corresponding to the printing of the printing unit, the conversion unit prints the second data into the printing unit among the text data and the graphic data. A POS system characterized by converting into corresponding data.
前記印刷装置が有する前記印刷部前記テキストデータ印刷に対応する場合に、前記変換部は、前記グラフィックデータを、前記グラフィックデータに含まれる文字の文字コードを指定する前記テキストデータに変換する請求項記載のPOSシステム。 Billing when the printing unit in which the printing apparatus has to correspond to the printing of the text data, the conversion unit, to the graphic data into the text data specifying the character codes of characters included in the graphic data Item 8. The POS system according to item 7 . 前記印刷装置と接続され、前記テキストデータまたは前記グラフィックデータの印刷に対応した第2印刷装置を備え、
前記印刷装置は、前記変換部により、前記POS端末が出力し前記印刷データ取得部で受信した前記第1データを前記第2印刷装置の印刷に対応するデータに変換し、前記変換部で変換された前記第1データを前記印刷データ出力部により前記第2印刷装置に出力する請求項またはに記載のPOSシステム。
Which is connected with the printing apparatus, comprising a second printing device that corresponds to the printing of the text data and the graphic data,
The printing device converts the first data output from the POS terminal and received by the print data acquisition unit into data corresponding to printing of the second printing device by the conversion unit, and is converted by the conversion unit. The POS system according to claim 7 or 8 , wherein the first data is output to the second printing apparatus by the print data output unit.
JP2012162088A 2012-07-20 2012-07-20 Printing apparatus, printing system, and POS system Active JP6111546B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2012162088A JP6111546B2 (en) 2012-07-20 2012-07-20 Printing apparatus, printing system, and POS system
CN201310286379.2A CN103568607B (en) 2012-07-20 2013-07-09 Printing system
EP13176461.5A EP2687977A3 (en) 2012-07-20 2013-07-15 Printing device and printing system
KR1020130084637A KR101467690B1 (en) 2012-07-20 2013-07-18 Printing device and printing system
US13/946,222 US9129206B2 (en) 2012-07-20 2013-07-19 Printing device and printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012162088A JP6111546B2 (en) 2012-07-20 2012-07-20 Printing apparatus, printing system, and POS system

Publications (3)

Publication Number Publication Date
JP2014019113A JP2014019113A (en) 2014-02-03
JP2014019113A5 JP2014019113A5 (en) 2015-06-11
JP6111546B2 true JP6111546B2 (en) 2017-04-12

Family

ID=50194544

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012162088A Active JP6111546B2 (en) 2012-07-20 2012-07-20 Printing apparatus, printing system, and POS system

Country Status (1)

Country Link
JP (1) JP6111546B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01228062A (en) * 1988-03-08 1989-09-12 Nec Home Electron Ltd Information processing system
JPH0930086A (en) * 1995-07-20 1997-02-04 Tec Corp Printer and merchandise sale registration data processing device using the printer
JP2000013548A (en) * 1998-06-25 2000-01-14 Canon Inc Information processor and its control method
JP2002055793A (en) * 2000-08-09 2002-02-20 Riso Kagaku Corp External printing controller
JP2005215915A (en) * 2004-01-29 2005-08-11 Dainippon Printing Co Ltd Personal information delivery system
JP2008149465A (en) * 2006-12-14 2008-07-03 Seiko Epson Corp Printer, printing system, method for controlling printer and program
JP5374932B2 (en) * 2008-06-18 2013-12-25 セイコーエプソン株式会社 Printer, printer control method and operation control program
JP5195099B2 (en) * 2008-07-10 2013-05-08 セイコーエプソン株式会社 Printer, printer control method and driver

Also Published As

Publication number Publication date
JP2014019113A (en) 2014-02-03

Similar Documents

Publication Publication Date Title
KR101467690B1 (en) Printing device and printing system
US9156279B2 (en) Printing system, printing device, and printing method
US9766848B2 (en) Printing system and printing device
US9471859B2 (en) Image processing device, printing device, and image processing method
US9030685B2 (en) Printing device, printing system, and printing method
US8873096B2 (en) Media processing device and POS system
US9224275B2 (en) Media processing method using multiple processing units for performing multiple processes
US9591078B2 (en) Media processing device and POS system
JP6019871B2 (en) Printing apparatus, printing system, and POS system
JP6056196B2 (en) Medium processing apparatus and POS system
JP6111546B2 (en) Printing apparatus, printing system, and POS system
JP5958143B2 (en) Printing apparatus, printing system, and printing control apparatus
JP6003475B2 (en) Printing system, printing apparatus, and printing method
JP5790267B2 (en) Output control system and control method
EP3142086B1 (en) Print data processing device, print data processing method, program, and printing system
JP6019749B2 (en) Medium processing apparatus and POS system

Legal Events

Date Code Title Description
A521 Request for written amendment filed

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

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160224

A521 Request for written amendment filed

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

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161005

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20161101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170118

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20170125

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170227

R150 Certificate of patent or registration of utility model

Ref document number: 6111546

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150