JP2015015052A - Print data processing program for distributing output destination, print data processing device, and print data processing method - Google Patents

Print data processing program for distributing output destination, print data processing device, and print data processing method Download PDF

Info

Publication number
JP2015015052A
JP2015015052A JP2014205596A JP2014205596A JP2015015052A JP 2015015052 A JP2015015052 A JP 2015015052A JP 2014205596 A JP2014205596 A JP 2014205596A JP 2014205596 A JP2014205596 A JP 2014205596A JP 2015015052 A JP2015015052 A JP 2015015052A
Authority
JP
Japan
Prior art keywords
print data
processing
output
communication port
data
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.)
Granted
Application number
JP2014205596A
Other languages
Japanese (ja)
Other versions
JP5867564B2 (en
Inventor
仁 大山
Hitoshi Oyama
仁 大山
整 古幡
Tadashi Furuhata
整 古幡
明男 高本
Akio Takamoto
明男 高本
知広 小玉
Tomohiro Kodama
知広 小玉
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 JP2014205596A priority Critical patent/JP5867564B2/en
Publication of JP2015015052A publication Critical patent/JP2015015052A/en
Application granted granted Critical
Publication of JP5867564B2 publication Critical patent/JP5867564B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a print data processing program and the like for processing print data from an existing application, which can easily perform output destination distribution processing for various types of print data without changing a program of the existing application.SOLUTION: A print data processing program for causing a computer having two or more communication ports, which executes predetermined processing by an application, to execute processing of print data causes the computer to execute the following steps: a step for, in an OS kernel layer, obtaining print data that is to be output to predetermined communication ports before the communication ports receive it; and a step for, in an application layer, analyzing the obtained print data, determining one or more communication ports to which the print data is output, performing conversion into data appropriate for devices connected with the determined communication ports, and outputting the data after the conversion to the determined communication ports.

Description

本発明は、既存アプリケーションから出力される印刷データを処理する印刷データ処理プログラム等に関し、特に、既存アプリケーションのプログラムを変更することなしに、多彩な印刷データの出力先分散処理を容易に行うことのできる印刷データ処理プログラム等に関する。   The present invention relates to a print data processing program for processing print data output from an existing application, and in particular, can easily perform a variety of print data output destination distribution processes without changing the program of the existing application. The present invention relates to a print data processing program that can be used.

スーパーマーケットなどの小売販売業においては販売管理システムであるPOSシステムが普及しており、当該システムでは、サーバーとネットワークで接続される複数の端末装置(レジ)が当該装置に備えられるアプリケーションに従って動作し各種の処理を実行する。また、通常、当該端末装置には、それぞれ、プリンターが設けられ、上記アプリケーションの指示によりレシートやクーポンの出力を実行する。また、このような出力を伴うPOSシステムと類似した構成のシステムとしては、病院で用いられるシステム、運送会社で用いられるシステムなどがある。   In retail sales businesses such as supermarkets, a POS system, which is a sales management system, has become widespread, and in this system, a plurality of terminal devices (registers) connected to a server via a network operate according to applications provided in the device. Execute the process. Also, normally, each terminal device is provided with a printer, and outputs a receipt or a coupon according to an instruction from the application. In addition, as a system having a configuration similar to the POS system with such output, there are a system used in a hospital, a system used in a transportation company, and the like.

このようなシステムにおいても、導入後の技術向上や業務改善要望に伴って、機能拡張の必要が出てくるが、かかるシステムは一般に業務の中枢として常時利用されているものであり、また、他のシステムとも複雑に連携している場合も多いため、そのアプリケーションを改変することは通常容易ではない。   Even in such a system, it is necessary to expand the functions along with the technical improvement and business improvement requests after the introduction. However, such a system is generally used as a business center at all times. In many cases, it is not easy to modify the application.

かかる課題については、出力処理系の機能に関し、従来、以下のような提案がなされている。   As for this problem, the following proposals have conventionally been made regarding the functions of the output processing system.

下記特許文献1では、すでに存在するアプリケーションプログラムを修正する必要なしに、従来のモデムに必要とされていたマイクロプロセッサおよびメモリを除去することが可能なパーソナルコンピュータ中でモデム機能を実行する装置について記載されている。   The following Patent Document 1 describes a device that performs a modem function in a personal computer that can remove the microprocessor and memory required for a conventional modem without having to modify an existing application program. Has been.

また、下記特許文献2には、アプリケーションを変更することなく、1つの通信ポートにアクセスすることにより、他の通信ポートに接続されているプリンターへも同時に印刷を実行させることができ、複製印刷を可能にする装置について記載されている。   Further, in Patent Document 2 below, by accessing one communication port without changing the application, it is possible to cause a printer connected to another communication port to execute printing simultaneously. A device is described that enables it.

特開平8−69427号公報JP-A-8-69427 特開2006−338443号公報JP 2006-338443 A

しかしながら、上記特許文献1及び2に記載の内容では、モデム機能、複製印刷機能など出力系の限られた機能を実現するに留まり、他の多彩な要望を実現することはできない。また、上記特許文献2では、OSカーネル層での処理であるため、一般に機能構築(プログラム開発等)が容易ではなく機能も限られてしまうという課題がある。   However, the contents described in Patent Documents 1 and 2 are not limited to realizing limited functions of the output system such as a modem function and a duplication printing function, and cannot satisfy other various demands. Further, since the above-mentioned Patent Document 2 is processing in the OS kernel layer, there is a problem that function construction (program development or the like) is generally not easy and functions are limited.

一方、プリンター機能の向上により、プリンターの増設や交換を伴う出力系の機能拡張、例えば、用途に応じたプリンターの使い分け等、が望まれている。   On the other hand, due to the improvement of the printer function, it is desired to expand the function of the output system with the addition or replacement of the printer, for example, to properly use the printer according to the application.

本発明の目的は、既存アプリケーションから出力される印刷データを処理する印刷データ処理プログラムであって、既存アプリケーションのプログラムを変更することなしに、多彩な印刷データの出力先分散処理を容易に行うことのできる印刷データ処理プログラム、等を提供することである。   An object of the present invention is a print data processing program for processing print data output from an existing application, and easily performs a variety of print data output destination distribution processes without changing the program of the existing application A print data processing program that can be used.

上記の目的を達成するために、本発明の一つの側面は、OSカーネル層のオペレーティングシステムによって動作しアプリケーション層に備えられるアプリケーションによって所定の処理を実行する、2以上の通信ポートを有するコンピューターに、前記アプリケーションから出力される印刷データの処理を実行させる印刷データ処理プログラムが、所定の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、前記アプリケーション層で、前記データ取得工程で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する1以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを変換し、当該変換後の印刷データを前記決定した通信ポートに出力する印刷データ処理工程と、を前記コンピューターに実行させる、ことである。   In order to achieve the above object, one aspect of the present invention provides a computer having two or more communication ports that is operated by an operating system of the OS kernel layer and executes predetermined processing by an application provided in the application layer. Data acquisition that a print data processing program for executing processing of print data output from the application acquires in the OS kernel layer before the communication port receives the print data output to the predetermined communication port Analyzing the print data acquired in the data acquisition step in the process and the application layer, determining one or more communication ports for outputting the print data based on the analysis result, and determining the determined communication Print the data appropriate for the device connected to the port Converts over data, a print data processing step of outputting the printing data after the conversion to the communication port with the determined, to the execution in the computer, is that.

更に、上記発明において、その好ましい態様は、前記印刷データ処理工程における通信ポートの決定は、前記取得された印刷データ内に検出される文字列又はイメージに基づいて行われる、ことを特徴とする。   Furthermore, in the above-described invention, a preferable aspect thereof is characterized in that the determination of the communication port in the print data processing step is performed based on a character string or an image detected in the acquired print data.

更にまた、上記発明において、一つの態様は、前記印刷データを出力する通信ポートとして、2以上の前記通信ポートが決定され、当該各通信ポートへ出力される印刷データの内容は、それぞれ、前記取得された印刷データの内容を分割したものである、ことを特徴とする。   Furthermore, in the above invention, one aspect is that two or more communication ports are determined as communication ports for outputting the print data, and the contents of the print data output to the communication ports are respectively obtained in the acquisition. The content of the printed data is divided.

また、上記発明において、別の態様は、前記印刷データを出力する通信ポートとして、2以上の前記通信ポートが決定され、当該各通信ポートへ同じ内容の印刷データが出力される、ことを特徴とする。   In the above invention, another aspect is characterized in that two or more communication ports are determined as communication ports for outputting the print data, and the same print data is output to each communication port. To do.

更に、上記発明において、別の態様は、前記印刷データを出力する通信ポートとして、当該印刷データの内容に応じて1の前記通信ポートが決定される、ことを特徴とする。   Furthermore, in the above invention, another aspect is characterized in that one communication port is determined as a communication port for outputting the print data in accordance with the content of the print data.

上記の目的を達成するために、本発明の別の側面は、OSカーネル層のオペレーティングシステムによって動作しアプリケーション層に備えられるアプリケーションによって所定の処理を実行する、2以上の通信ポートを有するコンピューターで構成され、前記アプリケーションから出力される印刷データの処理を実行する印刷データ処理装置が、所定の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得部と、前記アプリケーション層で、前記データ取得部で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する1以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを変換し、当該変換後の印刷データを前記決定した通信ポートに出力する印刷データ処理部と、を有する、ことである。   In order to achieve the above object, another aspect of the present invention comprises a computer having two or more communication ports that is operated by an operating system of the OS kernel layer and executes predetermined processing by an application provided in the application layer. The print data processing apparatus that executes processing of the print data output from the application acquires the print data output to the predetermined communication port at the OS kernel layer before the communication port receives the print data. The data acquisition unit and the application layer analyze the print data acquired by the data acquisition unit, determine one or more communication ports that output the print data based on the analysis result, and determine Print data corresponding to the device connected to the selected communication port. Converted, the print data after the conversion; and a print data processing unit for outputting the communication port with the determined, is that.

上記の目的を達成するために、本発明の更に別の側面は、OSカーネル層のオペレーティングシステムによって動作しアプリケーション層に備えられるアプリケーションによって所定の処理を実行する、2以上の通信ポートを有するコンピューターにおいて、前記アプリケーションから出力される印刷データの処理を実行する印刷データ処理方法が、前記コンピューターが、所定の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、前記コンピューターが、前記アプリケーション層で、前記データ取得工程で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する1以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを変換し、当該変換後の印刷データを前記決定した通信ポートに出力する印刷データ処理工程と、を有する、ことである。   In order to achieve the above object, still another aspect of the present invention provides a computer having two or more communication ports that is operated by an operating system of an OS kernel layer and executes predetermined processing by an application provided in the application layer. A print data processing method for executing processing of print data output from the application before the computer receives the print data output to the predetermined communication port; The data acquisition step acquired in step 1 and the computer analyzes the print data acquired in the data acquisition step in the application layer, and outputs the print data based on the analysis result Determine the port and assign it to the determined communication port. It converts the print data to appropriate to the device data to be continued, the printing data after the conversion; and a print data processing step of outputting to the communication port with the determined, is that.

本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。   Further objects and features of the present invention will become apparent from the embodiments of the invention described below.

本発明を適用したPOS端末装置の実施の形態例に係る概略構成図である。It is a schematic block diagram which concerns on the embodiment of the POS terminal device to which this invention is applied. POS端末装置の概略機能構成図である。It is a schematic function block diagram of a POS terminal device. 出力先分散処理の処理手順を例示したフローチャートである。It is the flowchart which illustrated the process sequence of the output destination distribution process. POSシステムの改良を説明するための図である。It is a figure for demonstrating the improvement of a POS system.

以下、図面を参照して本発明の実施の形態例を説明する。しかしながら、かかる実施の形態例が、本発明の技術的範囲を限定するものではない。なお、図において、同一又は類似のものには同一の参照番号又は参照記号を付して説明する。   Embodiments of the present invention will be described below with reference to the drawings. However, such an embodiment does not limit the technical scope of the present invention. In the drawings, the same or similar elements are denoted by the same reference numerals or reference symbols.

図1は、本発明を適用したPOS端末装置の実施の形態例に係る概略構成図である。また、図2は、当該POS端末装置の概略機能構成図である。図1及び図2に示すPOS端末装置2が本発明を適用した装置であり、当該装置では、POSアプリケーション201から出力される印刷データをOSカーネル層230の仮想ポート203(データ取得部)で取得する。そして、取得したデータをアプリケーション層220のポートハンドラー204で受け取り、印刷データの解析結果に基づいて所定の出力先分散処理を実行する。その後、ポートハンドラー204から処理後のデータに対応した通信ポート209へ処理後の印刷データを出力する。本POS端末装置2は、かかる処理を実行することにより、POSアプリケーション201のプログラムを変更することなく、多彩な印刷データの分散処理を容易に実現するものである。   FIG. 1 is a schematic configuration diagram according to an embodiment of a POS terminal device to which the present invention is applied. FIG. 2 is a schematic functional configuration diagram of the POS terminal apparatus. The POS terminal apparatus 2 shown in FIGS. 1 and 2 is an apparatus to which the present invention is applied. In the apparatus, the print data output from the POS application 201 is acquired by the virtual port 203 (data acquisition unit) of the OS kernel layer 230. To do. The acquired data is received by the port handler 204 of the application layer 220, and predetermined output destination distribution processing is executed based on the analysis result of the print data. Thereafter, the processed print data is output from the port handler 204 to the communication port 209 corresponding to the processed data. The POS terminal device 2 executes such processing to easily realize distributed processing of various print data without changing the program of the POS application 201.

本実施の形態例では、スーパーマーケットなどで用いられるPOSシステムを想定しており、図1に示すように、POSサーバー1にネットワーク4を介して複数のPOS端末装置2が接続される構成をしている。POSサーバー1は、コンピューターシステムで構成され、上記複数のPOS端末装置2の管理とそれらのPOS端末装置2から取得される各種データの集計、管理等の処理を実行する。   In this embodiment, a POS system used in a supermarket or the like is assumed, and a plurality of POS terminal devices 2 are connected to a POS server 1 via a network 4 as shown in FIG. Yes. The POS server 1 is constituted by a computer system, and executes processing such as management of the plurality of POS terminal devices 2 and aggregation and management of various data acquired from the POS terminal devices 2.

POS端末装置2は各レジに設置され、それぞれ、プリンター3と接続される。プリンター3は、POS端末装置2から出力される印刷データに従って、レシートやクーポンを出力する。従って、POS端末装置2はプリンター3のホスト装置と位置づけられる。   The POS terminal device 2 is installed at each cash register and is connected to the printer 3. The printer 3 outputs a receipt or a coupon according to the print data output from the POS terminal device 2. Therefore, the POS terminal device 2 is positioned as the host device of the printer 3.

また、POS端末装置2には、ディスプレイ5が接続され、当該ディスプレイ5では、顧客に示す商品の金額等が表示される。   In addition, a display 5 is connected to the POS terminal device 2, and the display 5 displays the price of the product shown to the customer.

各POS端末装置2は、図1に示すように、POS端末本体21、キーボード23、バーコードリーダー24、及びカードリーダー25等を備える。キーボード23は、価格や商品コードなどの商品情報、性別、年代などの顧客情報をオペレーターが入力するために用いられる。また、バーコードリーダー24は、商品に付されたバーコードを読み取って商品情報を取得し、カードリーダー25は、各種カードに記憶された情報を読み取って、清算に必要な情報などを取得する。   As shown in FIG. 1, each POS terminal device 2 includes a POS terminal main body 21, a keyboard 23, a barcode reader 24, a card reader 25, and the like. The keyboard 23 is used for an operator to input product information such as price and product code, and customer information such as sex and age. Further, the barcode reader 24 reads the barcode attached to the product to acquire product information, and the card reader 25 reads the information stored in various cards to acquire information necessary for settlement.

POS端末本体21は、上述したキーボード23、バーコードリーダー24、及びカードリーダー25から取得される情報に基づいて、レシートやクーポンに印刷する情報を生成して、プリンター3へ出力する。当該POS端末本体21は、コンピューターで構成され、図示していないが、CPU、RAM、ROM、HDDなどを備えている。後述するPOSアプリケーション201のプログラムや出力先分散処理のためのプログラムは、ROMに記憶され、それらのプログラムに従ってCPUが動作することにより各処理が実行される。   The POS terminal main body 21 generates information to be printed on a receipt or a coupon based on information acquired from the keyboard 23, the barcode reader 24, and the card reader 25 described above, and outputs the information to the printer 3. The POS terminal main body 21 is configured by a computer and includes a CPU, a RAM, a ROM, an HDD and the like (not shown). A program of the POS application 201 described later and a program for output destination distributed processing are stored in the ROM, and each processing is executed by the CPU operating according to these programs.

また、POS端末装置2は、図2に示すような機能構成となっている。POSアプリケーション201は、上述したレシートやクーポンに印刷する情報を生成してそれらを出力させる処理を行うが、ここで生成されるデータは出力先分散処理を行う前の元データである。また、生成されるデータは、そのままプリンター3Aへ出力できる形式の、すなわち、プリンター3Aの機種(デバイス)に依存したコマンドの、印刷データ、あるいは、プリンター3A用ドライバー202に渡す形式のデータである。前者は、テキストだけの印刷など簡単な印刷データの場合に生成される。   Further, the POS terminal device 2 has a functional configuration as shown in FIG. The POS application 201 performs processing for generating the information to be printed on the receipt and coupon described above and outputting them. The data generated here is the original data before the output destination distribution processing. The generated data is in a format that can be output to the printer 3A as it is, that is, in a format that is a command that depends on the model (device) of the printer 3A, or in a format that is passed to the printer 3A driver 202. The former is generated in the case of simple print data such as printing of text only.

また、プリンター3A用ドライバー202は、プリンター3A用のプリンタードライバーであり、POSアプリケーション201から出力されたデータを、プリンター3Aの機種(デバイス)に依存したコマンドによる、プリンター3Aが受信して印刷可能な印刷データとして出力する。   The printer 3A driver 202 is a printer driver for the printer 3A, and the printer 3A can receive and print the data output from the POS application 201 by a command depending on the model (device) of the printer 3A. Output as print data.

なお、POSアプリケーション201とプリンター3A用ドライバー202は、図2に示すように、コンピューターのオペレーティングシステム(OS)に基づきその上でプログラムが各処理を実行するアプリケーション層220に位置する。また、両者は、それぞれの処理内容を指示する上記ROMに格納されたプログラムと当該プログラムに従って処理を実行する上記CPU等によって構成される。また、両者は、本発明によって新たに追加、改良される部分ではなく、従来装置のものがそのまま用いられる。   As shown in FIG. 2, the POS application 201 and the printer 3A driver 202 are located in an application layer 220 on which a program executes each process based on an operating system (OS) of a computer. Both are constituted by a program stored in the ROM for instructing each processing content and the CPU for executing processing according to the program. Moreover, both are not the part newly added and improved by this invention, but the thing of a conventional apparatus is used as it is.

次に、仮想ポート203は、POSアプリケーション201又はプリンター3A用ドライバー202から出力された印刷データ(ここでは、元印刷データと呼ぶ)を、通信ポート209が受け取る前に上記オペレーティングシステムが位置するOSカーネル層230で受け取る部分である。そして、仮想ポート203は、取得した元印刷データをポートハンドラー204へ引き渡す。   Next, the virtual port 203 is an OS kernel in which the operating system is located before the communication port 209 receives print data (referred to as original print data here) output from the POS application 201 or the printer 3A driver 202. This is the part received by layer 230. Then, the virtual port 203 delivers the acquired original print data to the port handler 204.

次に、ポートハンドラー204、データ解析部205、データ加工部206、コマンド変換部207、及びデータ格納部208は、元印刷データを用いて出力先分散処理を実行する印刷データ処理部であり、これら各部の処理により、上記POSアプリケーション201の機能を拡張することが可能になる。   Next, the port handler 204, the data analysis unit 205, the data processing unit 206, the command conversion unit 207, and the data storage unit 208 are print data processing units that execute output destination distribution processing using the original print data. The functions of the POS application 201 can be expanded by the processing of each unit.

ポートハンドラー204は、上記仮想ポート203から引き渡された元印刷データをデータ解析部205に転送すると共に、出力先分散処理後の印刷データ(ここでは、処理後印刷データと呼ぶ)を受け取って、当該データに対応した通信ポート209へ処理後印刷データを出力する処理を行う。   The port handler 204 transfers the original print data delivered from the virtual port 203 to the data analysis unit 205 and receives the print data after the output destination distribution process (here, referred to as post-process print data). Processing for outputting post-processing print data to the communication port 209 corresponding to the data is performed.

データ解析部205は、元印刷データを解析して処理内容を決定すると共に、処理後印刷データを出力する通信ポート209を決定する部分である。   The data analysis unit 205 is a part that determines the processing contents by analyzing the original print data and determines the communication port 209 that outputs the processed print data.

データ加工部206は、データ解析部205が決定した処理内容に従って、元印刷データを加工する部分である。   The data processing unit 206 is a part that processes the original print data in accordance with the processing content determined by the data analysis unit 205.

また、コマンド変換部207は、元印刷データで指定されていた通信ポート209に接続されたプリンター3と、処理後印刷データが出力される通信ポート209に接続されたプリンター3とで使用コマンドが異なる場合に、コマンドを変更する処理を行う部分である。   The command conversion unit 207 uses different commands for the printer 3 connected to the communication port 209 specified by the original print data and the printer 3 connected to the communication port 209 from which processed print data is output. In this case, it is a part for performing processing to change the command.

データ格納部208は、上記データ解析部205及びデータ加工部206が使用する各種データを記憶する部分である。ここには、キーワードデータベースとプリンターデータベースが格納されており、前者には、キーワードとなる各文字列又は各イメージと、それらに対応する処理内容等が対応付けて収められ、後者には、各プリンター3の使用コマンド、印刷設定の情報、接続される通信ポート209の情報等が収められている。なお、当該データ格納部208は上記HDD等で構成される。   The data storage unit 208 is a part that stores various data used by the data analysis unit 205 and the data processing unit 206. Here, a keyword database and a printer database are stored. In the former, each character string or image serving as a keyword is associated with processing contents corresponding thereto, and in the latter, each printer is stored. 3 use commands, print setting information, information of the communication port 209 to be connected, and the like. The data storage unit 208 is composed of the HDD or the like.

以上説明した印刷データ処理部における処理の具体的な手順については後述する。   A specific procedure of processing in the print data processing unit described above will be described later.

なお、仮想ポート203、ポートハンドラー204、データ解析部205、データ加工部206、及び、コマンド変換部207は、それぞれ、各部が行う処理を指示するプログラムと当該プログラムに従って処理を実行する上記CPU等によって構成される。また、これらの部分に係るプログラムが本発明の印刷データ処理プログラムに相当する。   The virtual port 203, the port handler 204, the data analysis unit 205, the data processing unit 206, and the command conversion unit 207 are respectively executed by a program that instructs processing performed by each unit and the CPU that executes processing according to the program. Composed. Further, the program relating to these portions corresponds to the print data processing program of the present invention.

次に、POS端末装置2には、物理層240に通信ポート209A及び209Bが備えられ、それぞれ、プリンター3A及び3Bに接続される。ここでは、一例として、通信ポート209Aは、シリアル通信のCOM通信ポートであり、通信ポート209Bは、USB通信を行うUSB通信ポートである。また、プリンター3については、一例として、プリンター3Aがモノクロプリンターであり、プリンター3Bがカラープリンターである。なお、ここでは、2つ通信ポート209が備えられ、2つのプリンター3がPOS端末装置2に接続されるが、接続される通信ポート209及びプリンター3の数はこれに限定されることはなく3以上でもよい。また、通信ポート209の種類も、両方をUSB通信ポートとするなど、他の構成とすることができる。また、プリンター3の種類に関しても、SIDMプリンターとレーザープリンターの組合せ、あるいは、SIDMプリンターとTMプリンターの組合せにするなど、用途に応じ他の構成とすることができる。   Next, the POS terminal device 2 includes communication ports 209A and 209B in the physical layer 240, which are connected to the printers 3A and 3B, respectively. Here, as an example, the communication port 209A is a COM communication port for serial communication, and the communication port 209B is a USB communication port for performing USB communication. For the printer 3, as an example, the printer 3A is a monochrome printer, and the printer 3B is a color printer. Here, although two communication ports 209 are provided and two printers 3 are connected to the POS terminal apparatus 2, the number of communication ports 209 and printers 3 to be connected is not limited to this. That's all. In addition, the type of the communication port 209 can be configured in other ways, such as both being USB communication ports. Also, regarding the type of the printer 3, other configurations can be adopted depending on the application, such as a combination of a SIDM printer and a laser printer, or a combination of a SIDM printer and a TM printer.

以上説明したような構成を有する本POS端末装置2では、元印刷データを用いた出力先分散処理に特徴があり、以下、その具体的な処理手順について説明する。図3は、当該出力先分散処理の処理手順を例示したフローチャートである。   The present POS terminal device 2 having the above-described configuration is characterized by output destination distribution processing using original print data, and the specific processing procedure will be described below. FIG. 3 is a flowchart illustrating the processing procedure of the output destination distribution processing.

まず、前述の通り、POSアプリケーション201から直接、又は、プリンター3A用ドライバー202を介して、元印刷データが出力される(ステップS1)。例えば、当該元印刷データは、プリンター3Aから出力することを想定しているレシートの印刷データであり、従って、出力先の通信ポートには通信ポート209Aが指定され、プリンター3Aに依存したコマンドで表現されている。   First, as described above, the original print data is output directly from the POS application 201 or via the printer 3A driver 202 (step S1). For example, the original print data is print data of a receipt that is assumed to be output from the printer 3A. Therefore, the communication port 209A is designated as the output destination communication port, and is expressed by a command depending on the printer 3A. Has been.

次に、出力された元印刷データは、指定された通信ポートに(ここでは、通信ポート209Aに)届く前に仮想ポート203によって受け取られる(ステップS2)。かかる処理は、いずれの通信ポート209へ向けたデータも、まず、仮想ポート203が受け取るように、レジストリーの(優先度の)設定を変更しておくことで実現され、かかる設定変更はOSの起動時に実行される。その後、受け取られた元印刷データは、仮想ポート203からアプリケーション層220のポートハンドラー204に送付される(ステップS2)。   Next, the output original print data is received by the virtual port 203 before reaching the designated communication port (here, the communication port 209A) (step S2). This processing is realized by changing the (priority) setting of the registry so that the virtual port 203 receives data for any communication port 209, and the setting change is started by the OS. Sometimes executed. Thereafter, the received original print data is sent from the virtual port 203 to the port handler 204 of the application layer 220 (step S2).

次に、ポートハンドラー204は、送付された元印刷データを、データ解析部205に転送する(ステップS3)。データ解析部205では、元印刷データのコマンドを解釈し、当該データの内容を解析する(ステップS4)。そして、解析結果から、処理内容及び出力先通信ポート209を決定する。   Next, the port handler 204 transfers the sent original print data to the data analysis unit 205 (step S3). The data analysis unit 205 interprets the original print data command and analyzes the content of the data (step S4). Then, the processing content and the output destination communication port 209 are determined from the analysis result.

具体的には、データ解析部205は、元印刷データの中から上記データ格納部208に記憶されるキーワードを検出して、そのキーワードに対応付けられている処理内容を実施すると決定し、当該処理に応じた出力先の通信ポート209を決定する。当該処理は、出力先を分散する処理であり、その処理内容としては、元印刷データの印刷内容を複数に分割し、それらを、それぞれの内容に相応しい出力先へ出力する処理(分割処理)、元印刷データの印刷内容を複数の出力先へ出力する処理(複製処理)、及び、印刷データの出力先を変更する処理(振分処理)等があり、これらの中から所定の内容が上記キーワードに対して予め定められている。なお、より具体的な機能拡張内容の例については後述する。   Specifically, the data analysis unit 205 detects a keyword stored in the data storage unit 208 from the original print data, determines that the processing content associated with the keyword is to be executed, The communication port 209 of the output destination corresponding to is determined. The process is a process of distributing output destinations. The process contents include a process of dividing the print contents of the original print data into a plurality of parts and outputting them to output destinations suitable for the respective contents (division process). There are a process for outputting the print contents of the original print data to a plurality of output destinations (duplication process), a process for changing the output destination of the print data (distribution process), etc., and the predetermined contents are the keywords Is predetermined. A more specific example of the function expansion content will be described later.

当該データ解析部205で決定された上記出力先通信ポート209は、ポートハンドラー204に通知され、また、決定された上記処理内容は、データ加工部206に通知される。なお、元印刷データに関わらず処理内容及び出力先が固定の場合には、当該データ解析部205は必要なく、元印刷データはポートハンドラー204からデータ加工部206に引き渡される。   The output destination communication port 209 determined by the data analysis unit 205 is notified to the port handler 204, and the determined processing content is notified to the data processing unit 206. When the processing content and the output destination are fixed regardless of the original print data, the data analysis unit 205 is not necessary, and the original print data is transferred from the port handler 204 to the data processing unit 206.

次に、データ加工部206が元印刷データに対するデータ加工処理を実行する(ステップS5)。具体的には、上記決定された処理内容に従って印刷データの加工を実行し、処理後印刷データを生成する。主な処理としては、上述した印刷内容の分割、出力先の仕様に合ったデータへの改変などが行われる。具体的な処理例については後述する。なお、かかる加工処理においても、上述したプリンターデータベースの情報など、必要に応じてデータ格納部208のデータが参照される。   Next, the data processing unit 206 executes data processing on the original print data (step S5). Specifically, the print data is processed according to the determined processing content, and post-process print data is generated. As main processing, the above-described division of the print content, modification to data suitable for the specification of the output destination, and the like are performed. A specific processing example will be described later. Also in such processing, the data in the data storage unit 208 is referred to as necessary, such as the information in the printer database described above.

また、当該データ加工部206は、複数の処理内容がある場合には、各処理内容に対応した複数の加工部から構成されてもよい。また、上記データ解析部205の判断が、処理(データ加工)を行わないというものである場合には、当該データ加工部206は加工処理を実行しない。   Further, when there are a plurality of processing contents, the data processing unit 206 may be configured by a plurality of processing parts corresponding to each processing content. If the determination by the data analysis unit 205 is that the process (data processing) is not performed, the data processing unit 206 does not execute the processing.

次に、データ加工部206で生成された上記処理後印刷データについてコマンドの変更を必要とする場合には、コマンド変換部207がコマンドの変換処理を実行する(ステップS6)。前述のとおり、印刷データは出力先のプリンター3に依存したコマンドで表現されているので、元印刷データのコマンドと、上記決定された出力先のプリンター3のコマンドが異なる場合には、当該出力先に適したコマンドに変換する。本実施例では、元印刷データがプリンター3A用のコマンドで表現されているので、出力先がプリンター3B(機種がプリンター3Aと異なる)に変更される場合には当該コマンド変換処理を実行する。処理後のデータはポートハンドラー204へ引き渡される。なお、コマンド変換を必要としない場合には、データ加工部206から転送された印刷データがポートハンドラー204へ引き渡される。   Next, when it is necessary to change the command for the processed print data generated by the data processing unit 206, the command conversion unit 207 executes a command conversion process (step S6). As described above, since the print data is expressed by a command depending on the output destination printer 3, if the command of the original print data and the determined command of the output destination printer 3 are different, the output destination Convert to a command suitable for. In this embodiment, since the original print data is expressed by a command for the printer 3A, when the output destination is changed to the printer 3B (model is different from the printer 3A), the command conversion process is executed. The processed data is delivered to the port handler 204. If command conversion is not required, the print data transferred from the data processing unit 206 is delivered to the port handler 204.

次に、ポートハンドラー204は、引き渡された処理後印刷データを上記決定された通信ポート209へ出力する(ステップS7)。本実施例では、通信ポート209A及び/又は通信ポート209Bへ出力される。   Next, the port handler 204 outputs the transferred post-processing print data to the determined communication port 209 (step S7). In this embodiment, the data is output to the communication port 209A and / or the communication port 209B.

その後、印刷データが通信ポート209から接続されるプリンター3へ送信され、プリンター3において当該印刷データによる印刷が実行され、レシートなどの印刷物が出力される(ステップS8)。例えば、プリンター3Aから出力されればモノクロの印刷物が得られ、プリンター3Bから出力されればカラーの印刷物が得られる。   Thereafter, the print data is transmitted from the communication port 209 to the connected printer 3, and printing by the print data is executed in the printer 3, and a printed matter such as a receipt is output (step S8). For example, a monochrome printed matter can be obtained if output from the printer 3A, and a color printed matter can be obtained if output from the printer 3B.

以上説明したような手順で、本POS端末装置2における出力先分散処理が実行されるが、以下に、出力先分散処理の具体例を説明する。   The output destination distribution process in the POS terminal device 2 is executed according to the procedure described above. A specific example of the output destination distribution process will be described below.

まず、上述した分割処理の具体例について説明する。例えば、当該POSシステムがレストランに設置され、料理内容により厨房が異なる場所にあり、各厨房にプリンター3が設けられているケースを想定する。この場合に、注文票を出力するための元印刷データがPOSアプリケーション201から発せられ、そのデータに複数の厨房で料理する品物が含まれていれば、当該分割処理を行って、各厨房で料理すべき品物だけを示す注文票をその厨房に設けられたプリンター3から出力させる。当該処理では、データ解析部205は、上述したデータ格納部208のデータを参照し、元印刷データに含まれる品物の文字列をキーワードにして、その品物に対応付けられている厨房(プリンター3)を出力先として決定する。データ加工部206は、その各品物に対する決定に基づいて、元印刷データの内容を各厨房に分割し、各厨房の注文票データを生成する。その後、コマンド変換部207における必要な変換処理が行われた後、ポートハンドラー204から各注文票の印刷データが各出力先に出力される。   First, a specific example of the division process described above will be described. For example, it is assumed that the POS system is installed in a restaurant, the kitchens are in different places depending on the contents of the dish, and the printer 3 is provided in each kitchen. In this case, if the original print data for outputting the order form is issued from the POS application 201 and the data includes items to be cooked in a plurality of kitchens, the division processing is performed, and the dishes are cooked in each kitchen. An order form indicating only the item to be produced is output from the printer 3 provided in the kitchen. In this processing, the data analysis unit 205 refers to the data stored in the data storage unit 208 described above, uses the character string of the item included in the original print data as a keyword, and the kitchen (printer 3) associated with the item. Is determined as the output destination. Based on the determination for each item, the data processing unit 206 divides the content of the original print data into each kitchen, and generates order form data for each kitchen. Thereafter, after necessary conversion processing is performed in the command conversion unit 207, the print data of each order form is output from the port handler 204 to each output destination.

また、同様の例で、元印刷データがレシート出力のためのものである場合に、その通りレシート出力用の印刷データを出力すると共に、品物の情報を注文票の形で各厨房に分割して出力してもよい。   Also, in the same example, when the original print data is for receipt output, the print data for receipt output is output as it is, and the product information is divided into each kitchen in the form of an order form. It may be output.

次に、上述した複製処理の例としては、出力する印刷物の控も同時に出力しておきたい場合(正本と副本を作っておきたい場合)、複数毎のクーポンを早く出力した場合などがある。かかる印刷データの処理では、データ解析部205が、元印刷データに含まれる所定のキーワードを検出した場合に、例えば、所定のクーポン券を示す文字列を検出した場合に、複製処理を行うと決定し、データ加工部206が、当該決定に従って各プリンター3へ出力する印刷データを同じ印刷内容で生成する。その後、コマンド変換部207における必要な変換処理が行われた後、ポートハンドラー204から各印刷データが各出力先に出力される。   Next, as an example of the above-described duplication processing, there is a case where a copy of the printed matter to be output is output at the same time (when a copy and a copy are desired), and a plurality of coupons are output quickly. In such print data processing, when the data analysis unit 205 detects a predetermined keyword included in the original print data, for example, when it detects a character string indicating a predetermined coupon, it is determined to perform the duplication processing. Then, the data processing unit 206 generates print data to be output to each printer 3 according to the determination with the same print contents. Thereafter, after necessary conversion processing is performed in the command conversion unit 207, each print data is output from the port handler 204 to each output destination.

また、上述した振分処理の例としては、出力する印刷物の種類に応じて適切なプリンター3で印刷されるように出力先を決定する場合がある。例えば、印刷物がレシートである場合には、モノクロであるプリンター3Aから出力されるように処理し、印刷物がクーポンである場合には、カラーであるプリンター3Bから出力されるように処理する。また、印刷物が保証書である場合には、色があせないようにSIDMプリンターから出力されるように出力先を決定するといったこともできる。また、印刷物によって印刷紙の品質を変えたい場合にも、備えられる印刷紙が異なるプリンター3を備えれば、同様の処理で実現できる。   Further, as an example of the above-described distribution process, there is a case where an output destination is determined so that printing is performed by an appropriate printer 3 according to the type of printed matter to be output. For example, when the printed material is a receipt, processing is performed so as to be output from the monochrome printer 3A, and when the printed material is a coupon, processing is performed so as to be output from the color printer 3B. In addition, when the printed material is a guarantee, it is possible to determine an output destination so that the color is not output and is output from the SIDM printer. Further, when it is desired to change the quality of the printing paper depending on the printed matter, the same processing can be realized if the printer 3 is provided with different printing paper.

かかる振分処理では、データ解析部205が、元印刷データに含まれる所定のキーワードを検出してその印刷物の種類を把握し、その種類に相応したプリンター3を決定する。データ加工部206は、当該決定に従ってそのプリンター3へ出力する印刷データを生成する。その後、コマンド変換部207における必要な変換処理が行われた後、ポートハンドラー204から印刷データが出力先に出力される。   In such distribution processing, the data analysis unit 205 detects a predetermined keyword included in the original print data, grasps the type of the printed matter, and determines the printer 3 corresponding to the type. The data processing unit 206 generates print data to be output to the printer 3 according to the determination. Thereafter, after necessary conversion processing is performed in the command conversion unit 207, the print data is output from the port handler 204 to the output destination.

また、本POS端末装置2では、POSアプリケーション201から同じ通信ポート209へ出力された、プリンター3用データとディスプレイ5用データを、それぞれ、所定の出力先に振り分ける(分散する)場合にも用いることができる。前述したように、POSアプリケーション201は従来装置に備えられていたものであるので、従来装置が、シリアル通信の通信ポートを一つのみ備え、そこから、プリンターとディスプレイがシリアルに接続されている場合には、POSアプリケーション201からプリンター3用データとディスプレイ5用データが同じその通信ポートへ出力される。   The POS terminal device 2 is also used when the data for the printer 3 and the data for the display 5 output from the POS application 201 to the same communication port 209 are respectively distributed (distributed) to a predetermined output destination. Can do. As described above, since the POS application 201 is provided in the conventional apparatus, the conventional apparatus includes only one communication port for serial communication, from which the printer and the display are serially connected. The POS application 201 outputs the data for the printer 3 and the data for the display 5 to the same communication port.

そして、従来装置を改良した本POS端末装置2において、図2に示すように、ディスプレイ5が通信ポート209Aに接続され、プリンター3(B)が通信ポート209Bに接続されている場合には、上述した振り分けの処理を実行する。   In the POS terminal device 2 in which the conventional device is improved, as shown in FIG. 2, when the display 5 is connected to the communication port 209A and the printer 3 (B) is connected to the communication port 209B, Execute the sorting process.

具体的には、図3に基づいて説明した全て印刷データである場合と同様に、どちらかのデータを仮想ポート203が取得して、当該データがポートハンドラー204を介してデータ解析部205に渡される。データ解析部205では、データの種類が印刷データであるか表示データであるかを解析し、その結果に応じて出力先を決定する。その後、出力先に応じた所定の処理がデータ加工部206及びコマンド変換部207で行われて、処理後のデータがポートハンドラー204を介して、決定された通信ポート209へ出力される。そして、印刷データである場合には、プリンター3Bから出力され、表示データである場合には、ディスプレイ5に表示が行われる。   Specifically, as in the case of all print data described with reference to FIG. 3, one of the data is acquired by the virtual port 203 and the data is passed to the data analysis unit 205 via the port handler 204. It is. The data analysis unit 205 analyzes whether the data type is print data or display data, and determines an output destination according to the result. Thereafter, predetermined processing corresponding to the output destination is performed by the data processing unit 206 and the command conversion unit 207, and the processed data is output to the determined communication port 209 via the port handler 204. If it is print data, it is output from the printer 3B, and if it is display data, it is displayed on the display 5.

なお、POSアプリケーション201からデバイス切替信号が出力される場合には、データ解析部205が、当該信号を検出することにより、出力先の通信ポート209を決定することもできる。   When a device switching signal is output from the POS application 201, the data analysis unit 205 can determine the output destination communication port 209 by detecting the signal.

以上説明したように、本実施の形態例に係るPOS端末装置2では、POSアプリケーション201から出力されたデータの出力先分散処理を実行することができる。そして、当該処理を行わないPOS端末装置及びPOSシステムを、比較的容易な方法で本POS端末装置2及びそれを含むPOSシステムに改良することができる。   As described above, the POS terminal apparatus 2 according to the present embodiment can execute the output destination distribution process for the data output from the POS application 201. Then, the POS terminal device and the POS system that do not perform the processing can be improved to the POS terminal device 2 and the POS system including the POS terminal device 2 by a relatively easy method.

図4は、当該改良を説明するための図である。当該図は、図2と同じ機能構成図であり、実線部分が上述した改良前のPOS端末装置及びPOSシステムを示している。すなわち、改良前のシステムは、POSアプリケーション201から直接又はプリンタードライバー202を介して出力された印刷データが通信ポート209Aで受け取られ、プリンター3Aから出力がなされる構成となっている。そして、このような構成のシステムに対して、破線で示される部分を追加することにより、本POS端末装置2及びそれを含むPOSシステムにすることが可能である。   FIG. 4 is a diagram for explaining the improvement. This figure is the same functional configuration diagram as FIG. 2, and the solid line portion shows the POS terminal device and POS system before improvement described above. That is, the system before improvement is configured such that print data output directly from the POS application 201 or via the printer driver 202 is received by the communication port 209A and output from the printer 3A. And it is possible to make this POS terminal device 2 and the POS system containing it by adding the part shown with a broken line with respect to the system of such a structure.

すなわち、既存のPOSアプリケーション201を変更することなく、上述した印刷データ処理プログラム、データ格納部208のデータ、及び新たなプリンター3Bを追加することにより、既存のPOSシステムの機能の拡張が可能となる。そして、この改良(追加)は、新たなプリンター3Bの設置と上記印刷データ処理プログラムとデータを含む当該プリンタードライバーソフトウェアのインストールという作業で実行され得る。なお、プリンター3Aも新設してよいし、さらに、既存のPOSアプリケーション201のプログラムを変えずに、POS端末装置2を構成するコンピューター自体を新しいものに変えてもよい。   That is, by adding the above-described print data processing program, data in the data storage unit 208, and a new printer 3B without changing the existing POS application 201, the functions of the existing POS system can be expanded. . This improvement (addition) can be executed by installing a new printer 3B and installing the printer driver software including the print data processing program and data. Note that the printer 3A may be newly installed, and the computer constituting the POS terminal apparatus 2 may be changed to a new one without changing the program of the existing POS application 201.

また、上述したデータをプリンターとディスプレイに振り分ける場合にも、同様の追加作業で容易に分散を実現することができる。   Even when the above-described data is distributed to the printer and the display, the distribution can be easily realized by the same additional work.

このように、本実施の形態例に係る印刷データ処理プログラムを用いることにより、既存のPOSアプリケーションプログラムの変更を伴わない容易な方法で、多彩な出力先の分散処理によるPOSシステムの機能拡張を実現することができるようになる。また、それを実現するための主な処理は、コンピューターのアプリケーション層で行うように構成するので、多彩な処理を実行させるプログラムの開発を容易に行うことができる。   As described above, by using the print data processing program according to the present embodiment, it is possible to extend the function of the POS system by distributed processing of various output destinations in an easy way without changing the existing POS application program. Will be able to. In addition, since the main processing for realizing it is configured to be performed in the application layer of the computer, it is possible to easily develop a program that executes various processing.

また、当該プログラムの適用により、出力がよりユーザーに相応しい内容で実行できるので、ユーザー利便性を向上させることができる。   Further, by applying the program, the output can be executed with contents more suitable for the user, so that the user convenience can be improved.

また、当該プログラムの適用により、出力が分散されるので、所定のケースでは、出力を早く行うことができるようになる。また、合わせて、コンピューターや通信形態を新しいものに変えることにより、より出力を早くすることができる。   In addition, since the output is distributed by applying the program, the output can be quickly performed in a predetermined case. In addition, the output can be made faster by changing the computer and the communication form to a new one.

なお、本実施の形態例では、POSサーバー1が複数のPOS端末装置2と接続されるシステムであったが、本発明は、当該構成に限らず、POS端末装置とプリンター等が接続される環境に対して適用することができる。   In the present embodiment, the POS server 1 is a system connected to a plurality of POS terminal devices 2. However, the present invention is not limited to this configuration, and an environment in which a POS terminal device and a printer are connected. Can be applied.

また、本実施の形態例ではPOSシステムの例を示したが、本発明は、POSシステムに限らず、病院や運送会社で使用されるシステムなど、プリンターからの印刷物の出力を含む所定のアプリケーションを備えたシステムに適用可能であり、特に、既存のアプリケーションプログラムの改変が困難である場合に有効である。   In the present embodiment, an example of a POS system is shown. However, the present invention is not limited to a POS system, but a predetermined application including output of printed matter from a printer, such as a system used in a hospital or a transportation company. The present invention can be applied to a provided system, and is particularly effective when it is difficult to modify an existing application program.

また、本実施の形態例では、POSアプリケーションのプログラムや出力先分散処理のためのプログラムがROMに記憶されている例を示したが、これらプログラムはROMに限らず、RAMやHDD等の記憶媒体に記憶されていてもよい。また、これらプログラムは別々の記憶媒体に記憶されていてもよい。   In the present embodiment, the POS application program and the output destination distributed processing program are stored in the ROM. However, the program is not limited to the ROM, and a storage medium such as a RAM or an HDD. May be stored. These programs may be stored in separate storage media.

本発明の保護範囲は、上記の実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶものである。   The protection scope of the present invention is not limited to the above-described embodiment, but covers the invention described in the claims and equivalents thereof.

1 POSサーバー、 2 POS端末装置(印刷データ処理装置)、 3 プリンター、 4 ネットワーク、 5 ディスプレイ、 21 POS端末本体、 23 キーボード、 24 バーコードリーダー、 25 カードリーダー、 201 POSアプリケーション、 202 プリンター3A用ドライバー、 203 仮想ポート、 204 ポートハンドラー、 205 データ解析部、 206 データ加工部、 207 コマンド変換部、 208 データ格納部、 209 通信ポート、 220 アプリケーション層、 230 OSカーネル層、 240 物理層   DESCRIPTION OF SYMBOLS 1 POS server, 2 POS terminal device (print data processing apparatus), 3 Printer, 4 Network, 5 Display, 21 POS terminal main body, 23 Keyboard, 24 Bar code reader, 25 Card reader, 201 POS application, 202 Driver for printer 3A , 203 virtual port, 204 port handler, 205 data analysis unit, 206 data processing unit, 207 command conversion unit, 208 data storage unit, 209 communication port, 220 application layer, 230 OS kernel layer, 240 physical layer

上記の目的を達成するために、本発明の一つの側面は、アプリケーションによって所定の処理を実行する、複数の通信ポートを有するコンピューターにおいて、前記アプリケーションから出力される印刷データの処理を実行させる印刷データ処理方法が、所定の1の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、取得するデータ取得工程と、記データ取得工程で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを分割し、当該分割後の印刷データを前記決定した2以上の通信ポートに出力する印刷データ処理工程と、を有する、ことである。 To achieve the above object, one aspect of the present invention performs a predetermined processing by the application, Oite to a computer having a plurality of communication ports, the processing of the print data output from the application print data printing data processing method to be executed, the print data output to the predetermined one of said communications ports, prior to the communication port receives a data acquisition step of retrieve, obtained in the previous SL data acquisition step And determining two or more communication ports that output the print data based on the result of the analysis, dividing the print data into data suitable for a device connected to the determined communication port, the print data after division having a print data processing step of outputting to two or more communication ports that the determined, is that.

に、上記発明において、好ましい態様は、前記印刷データ処理工程は、前記取得された印刷データに含まれるコマンドと、前記決定した通信ポートに接続される装置用のコマンドが異なる場合に、コマンド変換処理を実行する、工程を含む、ことを特徴とする。 Further, in the invention, preferred embodiment, the print data processing step includes a command included in the print data to which the acquired, if the command is different for devices connected to a communication port with the determined, the command conversion A process is performed, and a process is included .

更に、上記発明において、一つの態様は、前記印刷データ処理工程は、前記所定の1の通信ポートを含む2以上の通信ポートを出力先に決定する、ことを特徴とする。 Further , in the above invention, one aspect is characterized in that the print data processing step determines two or more communication ports including the predetermined one communication port as output destinations .

上記の目的を達成するために、本発明の別の側面は、アプリケーションによって所定の処理を実行する、複数の通信ポートを有するコンピューターで構成され、前記アプリケーションから出力される印刷データの処理を実行する印刷データ処理装置が、所定の1の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、取得するデータ取得部と、前記データ取得部で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する2以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを分割し、当該分割後の印刷データを前記決定した通信ポートに出力する印刷データ処理部と、を有する、ことである。In order to achieve the above object, another aspect of the present invention executes processing of print data output from the application, which is configured by a computer having a plurality of communication ports that executes predetermined processing by the application. The print data processing apparatus analyzes the print data acquired by the data acquisition unit and the data acquisition unit acquired before the communication port receives the print data output to the predetermined one communication port. Based on the result of the analysis, two or more communication ports that output the print data are determined, the print data is divided into data suitable for the device connected to the determined communication port, A print data processing unit that outputs the print data to the determined communication port.

上記の目的を達成するために、本発明の更に別の側面は、コンピューターに上記いずれかの印刷データ処理方法における各工程を実行させるためのプログラムである。 In order to achieve the above object, still another aspect of the present invention is a program for causing a computer to execute each step in any one of the above print data processing methods.

Claims (7)

OSカーネル層のオペレーティングシステムによって動作しアプリケーション層に備えられるアプリケーションによって所定の処理を実行する、2以上の通信ポートを有するコンピューターに、前記アプリケーションから出力される印刷データの処理を実行させる印刷データ処理プログラムであって、
所定の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、
前記アプリケーション層で、前記データ取得工程で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する1以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを変換し、当該変換後の印刷データを前記決定した通信ポートに出力する印刷データ処理工程と、を前記コンピューターに実行させる
ことを特徴とする印刷データ処理プログラム。
A print data processing program for causing a computer having two or more communication ports to execute processing of print data output from the application, which is operated by an operating system of the OS kernel layer and executes predetermined processing by an application provided in the application layer Because
A data acquisition step of acquiring at the OS kernel layer before the communication port receives the print data output to the predetermined communication port;
The application layer analyzes the print data acquired in the data acquisition step, determines one or more communication ports to output the print data based on the analysis result, and connects to the determined communication port A print data processing program for converting the print data into data suitable for a device to be processed and outputting the converted print data to the determined communication port. .
請求項1において、
前記印刷データ処理工程における通信ポートの決定は、前記取得された印刷データ内に検出される文字列又はイメージに基づいて行われる
ことを特徴とする印刷データ処理プログラム。
In claim 1,
The communication port determination in the print data processing step is performed based on a character string or an image detected in the acquired print data.
請求項1あるいは2において、
前記印刷データを出力する通信ポートとして、2以上の前記通信ポートが決定され、当該各通信ポートへ出力される印刷データの内容は、それぞれ、前記取得された印刷データの内容を分割したものである
ことを特徴とする印刷データ処理プログラム。
In claim 1 or 2,
Two or more communication ports are determined as communication ports for outputting the print data, and the contents of the print data output to each communication port are obtained by dividing the contents of the acquired print data. A print data processing program.
請求項1あるいは2において、
前記印刷データを出力する通信ポートとして、2以上の前記通信ポートが決定され、当該各通信ポートへ同じ内容の印刷データが出力される
ことを特徴とする印刷データ処理プログラム。
In claim 1 or 2,
Two or more communication ports are determined as communication ports for outputting the print data, and print data having the same content is output to each communication port.
請求項1あるいは2において、
前記印刷データを出力する通信ポートとして、当該印刷データの内容に応じて1の前記通信ポートが決定される
ことを特徴とする印刷データ処理プログラム。
In claim 1 or 2,
A print data processing program, wherein one communication port is determined as a communication port for outputting the print data in accordance with the content of the print data.
OSカーネル層のオペレーティングシステムによって動作しアプリケーション層に備えられるアプリケーションによって所定の処理を実行する、2以上の通信ポートを有するコンピューターで構成され、前記アプリケーションから出力される印刷データの処理を実行する印刷データ処理装置であって、
所定の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得部と、
前記アプリケーション層で、前記データ取得部で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する1以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを変換し、当該変換後の印刷データを前記決定した通信ポートに出力する印刷データ処理部と、を有する
ことを特徴とする印刷データ処理装置。
Print data that is constituted by a computer having two or more communication ports that operates by an operating system of the OS kernel layer and executes predetermined processing by an application provided in the application layer, and executes processing of print data output from the application A processing device comprising:
A data acquisition unit that acquires the print data output to the predetermined communication port at the OS kernel layer before the communication port receives the print data;
The application layer analyzes the print data acquired by the data acquisition unit, determines one or more communication ports to output the print data based on the analysis result, and connects to the determined communication port A print data processing unit that converts the print data into data suitable for a device to be processed and outputs the converted print data to the determined communication port.
OSカーネル層のオペレーティングシステムによって動作しアプリケーション層に備えられるアプリケーションによって所定の処理を実行する、2以上の通信ポートを有するコンピューターにおいて、前記アプリケーションから出力される印刷データの処理を実行する印刷データ処理方法であって、
前記コンピューターが、所定の前記通信ポートへ出力される前記印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、
前記コンピューターが、前記アプリケーション層で、前記データ取得工程で取得された印刷データを解析し、当該解析の結果に基づいて、当該印刷データを出力する1以上の前記通信ポートを決定し、当該決定した通信ポートに接続されるデバイスに相応しいデータに当該印刷データを変換し、当該変換後の印刷データを前記決定した通信ポートに出力する印刷データ処理工程と、を有する
ことを特徴とする印刷データ処理方法。
A print data processing method for executing processing of print data output from an application in a computer having two or more communication ports, which is operated by an operating system of the OS kernel layer and executes predetermined processing by an application provided in the application layer Because
A data acquisition step in which the computer acquires the print data output to the predetermined communication port at the OS kernel layer before the communication port receives the print data;
The computer analyzes the print data acquired in the data acquisition step in the application layer, determines one or more communication ports that output the print data based on the analysis result, and determines A print data processing method comprising: converting the print data into data suitable for a device connected to the communication port; and outputting the converted print data to the determined communication port. .
JP2014205596A 2014-10-06 2014-10-06 Print data processing program for distributing output destinations, print data processing apparatus, and print data processing method Expired - Fee Related JP5867564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014205596A JP5867564B2 (en) 2014-10-06 2014-10-06 Print data processing program for distributing output destinations, print data processing apparatus, and print data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014205596A JP5867564B2 (en) 2014-10-06 2014-10-06 Print data processing program for distributing output destinations, print data processing apparatus, and print data processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010199155A Division JP2012058846A (en) 2010-09-06 2010-09-06 Print data processing program for distributing output destination, print data processing device, and print data processing method

Publications (2)

Publication Number Publication Date
JP2015015052A true JP2015015052A (en) 2015-01-22
JP5867564B2 JP5867564B2 (en) 2016-02-24

Family

ID=52436689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014205596A Expired - Fee Related JP5867564B2 (en) 2014-10-06 2014-10-06 Print data processing program for distributing output destinations, print data processing apparatus, and print data processing method

Country Status (1)

Country Link
JP (1) JP5867564B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11752779B2 (en) 2017-12-12 2023-09-12 Gpcp Ip Holdings Llc Food service cup dispensers, systems, and methods
US20190180392A1 (en) 2017-12-12 2019-06-13 Gpcp Ip Holdings Llc Personalized food service material printing systems

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10187393A (en) * 1996-12-27 1998-07-14 Canon Inc Method for controlling printing and device therefor and storage medium
JPH11134272A (en) * 1997-10-29 1999-05-21 Brother Ind Ltd Virtual communication system and recording medium
JP2001357457A (en) * 2000-06-12 2001-12-26 Family Mart Co Ltd Merchandise sales managing terminal device and merchandise sales managing system
JP2002307783A (en) * 2001-04-10 2002-10-23 Seiko Epson Corp Printer, pos system, method for controlling radio communication, and information recording medium
JP2003316545A (en) * 2002-04-23 2003-11-07 Canon Inc Information processor and information processing method
JP2006178654A (en) * 2004-12-21 2006-07-06 Ricoh Co Ltd Information processor, and method and program for processing image formation request
JP2006323445A (en) * 2005-05-17 2006-11-30 Seiko Epson Corp Printing system, pos system, connection device, control method for printing system, and program therefor
JP2006338443A (en) * 2005-06-03 2006-12-14 Seiko Epson Corp Filter device driver, duplication printing control method and its control program
JP2008027153A (en) * 2006-07-20 2008-02-07 Ricoh Co Ltd Information processing program, information processor, and information processing method
JP2009199588A (en) * 2008-01-24 2009-09-03 Seiko Epson Corp Receipt issuing processing method, receipt issuing processing system and printer

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10187393A (en) * 1996-12-27 1998-07-14 Canon Inc Method for controlling printing and device therefor and storage medium
JPH11134272A (en) * 1997-10-29 1999-05-21 Brother Ind Ltd Virtual communication system and recording medium
JP2001357457A (en) * 2000-06-12 2001-12-26 Family Mart Co Ltd Merchandise sales managing terminal device and merchandise sales managing system
JP2002307783A (en) * 2001-04-10 2002-10-23 Seiko Epson Corp Printer, pos system, method for controlling radio communication, and information recording medium
JP2003316545A (en) * 2002-04-23 2003-11-07 Canon Inc Information processor and information processing method
JP2006178654A (en) * 2004-12-21 2006-07-06 Ricoh Co Ltd Information processor, and method and program for processing image formation request
JP2006323445A (en) * 2005-05-17 2006-11-30 Seiko Epson Corp Printing system, pos system, connection device, control method for printing system, and program therefor
JP2006338443A (en) * 2005-06-03 2006-12-14 Seiko Epson Corp Filter device driver, duplication printing control method and its control program
JP2008027153A (en) * 2006-07-20 2008-02-07 Ricoh Co Ltd Information processing program, information processor, and information processing method
JP2009199588A (en) * 2008-01-24 2009-09-03 Seiko Epson Corp Receipt issuing processing method, receipt issuing processing system and printer

Also Published As

Publication number Publication date
JP5867564B2 (en) 2016-02-24

Similar Documents

Publication Publication Date Title
KR101364808B1 (en) Function expansion method using print data, function expansion device, and recording medium
US20150220287A1 (en) Method of adding value to print data, a value-adding device, and a recording medium
US9058139B2 (en) Function expansion method using print data, and function expansion device
JP2012190114A (en) Sales analytical program using print data, sales information acquisition device, and sales information acquisition method
JP5742416B2 (en) Advertising function expansion program, advertising function expansion method, and host device
JP5867564B2 (en) Print data processing program for distributing output destinations, print data processing apparatus, and print data processing method
JP2012058846A (en) Print data processing program for distributing output destination, print data processing device, and print data processing method
JP5867563B2 (en) Function expansion program, function expansion device, and function expansion method using print data
JP5708012B2 (en) Printer changing program, printer changing method, and host device
US8693036B2 (en) Distribution processing method, distribution processing device, print data processing method, print data processing device, and recording medium
JP5736851B2 (en) Sales analysis program using print data, sales information acquisition device, and sales information acquisition method
JP2012168758A (en) Printed matter editing program, printed matter editing device and printed matter editing method
JP5842971B2 (en) Distributed processing method, distributed processing apparatus, and program
JP5609453B2 (en) Distributed processing method, distributed processing apparatus, and program
JP2015015053A (en) Value addition program for print data, value addition apparatus, and value addition method
JP6075427B2 (en) Print control method and printer driver
JP2012185635A5 (en)
JP2012208765A (en) Print content change program, print content change method, and host device
JP6236943B2 (en) Communication control method and information processing apparatus
JP2015149077A (en) Program for changing printer, method for changing printer, and host device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141030

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141030

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150909

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150915

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151116

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151221

R150 Certificate of patent or registration of utility model

Ref document number: 5867564

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees