JP2013105181A - Control unit, control method for control unit, and program - Google Patents

Control unit, control method for control unit, and program Download PDF

Info

Publication number
JP2013105181A
JP2013105181A JP2011246201A JP2011246201A JP2013105181A JP 2013105181 A JP2013105181 A JP 2013105181A JP 2011246201 A JP2011246201 A JP 2011246201A JP 2011246201 A JP2011246201 A JP 2011246201A JP 2013105181 A JP2013105181 A JP 2013105181A
Authority
JP
Japan
Prior art keywords
identification information
image data
execution unit
external
registered image
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
JP2011246201A
Other languages
Japanese (ja)
Other versions
JP2013105181A5 (en
JP5838742B2 (en
Inventor
Etsuro Furuta
越郎 古田
Atsushi Sakai
淳 酒井
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 JP2011246201A priority Critical patent/JP5838742B2/en
Publication of JP2013105181A publication Critical patent/JP2013105181A/en
Publication of JP2013105181A5 publication Critical patent/JP2013105181A5/ja
Application granted granted Critical
Publication of JP5838742B2 publication Critical patent/JP5838742B2/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 allow a function of a control program for a control unit to cause a recording unit to record an image based on registered image data by means as simple as possible, when the registered image data is registered in the recording unit by another function which is different from the function of the control program.SOLUTION: When registered image data 46 and external identification information are recorded in association with each other by a function different from a printer driver 21, a printer driver execution section 35 performs the steps of: managing the external identification information in association with internal identification information; converting the internal identification information to the external identification information when the internal identification information is input from a POS application execution section 34; outputting a control command including the external identification information to a recording unit; and causing the recording unit to record an image on the basis of the registered image data 46.

Description

本発明は、記憶した登録画像データに基づいて画像を記録可能な記録装置に接続可能な制御装置、当該制御装置の制御方法、及び、当該制御装置を制御するためのプログラムに関する。   The present invention relates to a control device that can be connected to a recording device capable of recording an image based on stored registered image data, a control method for the control device, and a program for controlling the control device.

従来、レシートにトップロゴ等のロゴを記録する記録装置が知られている(例えば、特許文献1参照)。
この種の記録装置では、予め、ロゴの画像データ(以下、「登録画像データ」という。)を記憶(登録)しておき、ロゴを記録媒体に記録する場合、自身に登録された当該ロゴに係る登録画像データに基づいて記録を実行するものがある。
Conventionally, a recording apparatus that records a logo such as a top logo on a receipt is known (see, for example, Patent Document 1).
In this type of recording apparatus, logo image data (hereinafter referred to as “registered image data”) is stored (registered) in advance, and when the logo is recorded on a recording medium, the logo registered in itself is stored in the logo. Some perform recording based on such registered image data.

特開2005−228021号公報Japanese Patent Laid-Open No. 2005-228021

ところで、通常、記録装置への登録画像データの登録は、当該記録装置に接続された制御装置(ホストコンピューター等)にインストールされたプリンタードライバー(制御プログラム)の機能を利用して行われる。具体的には、プリンタードライバーの機能の一つに、登録画像データが格納されたファイルを指定し、指定したファイルに格納された登録画像データを記録装置に登録する機能が設けられており、ユーザーは、登録画像データの生成、ファイルへの格納等必要な作業を行った上で、当該機能を利用して、記録装置に登録画像データを登録する。
ここで、制御装置にインストールされたプリンタードライバーの機能によらないで記録装置に登録画像データを登録した場合、例えば、専用のソフトウェアツールの機能により記録装置に登録画像データを登録した場合、を想定する。このように専用のソフトウェアツールの機能により登録画像データを登録することにより、プリンタードライバーが実装している機能以外の有利な機能を利用して登録画像データを登録できる場合がある。そして、プリンタードライバーの機能によらないで記録装置に登録画像データを登録した場合において、何ら対策をしなかった場合、プリンタードライバーの実行部は、当該登録画像データを管理していない状態である。このため、プリンタードライバーの機能によって記録装置に当該登録画像データに基づいて画像を記録させるためには、何らかの手段により、プリンタードライバーの実行部が当該登録画像データを管理している状態とする必要がある。そこで、従来は、プリンタードライバーに応じて専用のソフトウェアツールをカスタマイズし、当該ソフトウェアツールによる登録画像データの登録に際し、プリンタードライバーが管理できるような態様で登録画像データを登録するようにしていた。しかしながら、上記カスタマイズは、専門知識と、作業のための相当の時間が必要であり、困難かつ煩雑であった。
本発明は、上述した事情に鑑みてなされたものであり、制御装置の制御プログラムの機能とは別の機能により登録画像データが記録装置に登録された場合において、簡易な手段によって、当該制御プログラムの機能により記録装置に当該登録画像データに基づく画像の記録を行わせることができるようにすることを目的とする。
By the way, registration of registered image data in a recording apparatus is normally performed using a function of a printer driver (control program) installed in a control apparatus (such as a host computer) connected to the recording apparatus. Specifically, one of the functions of the printer driver is a function that specifies a file in which registered image data is stored, and registers the registered image data stored in the specified file in the recording device. After performing necessary operations such as generation of registered image data and storage in a file, the registered image data is registered in the recording apparatus using the function.
Here, it is assumed that the registered image data is registered in the recording device without depending on the function of the printer driver installed in the control device, for example, the registered image data is registered in the recording device by the function of a dedicated software tool. To do. By registering the registered image data using the function of the dedicated software tool as described above, the registered image data may be registered using an advantageous function other than the function installed in the printer driver. In the case where registered image data is registered in the recording apparatus without depending on the function of the printer driver, if no countermeasure is taken, the execution unit of the printer driver is in a state where the registered image data is not managed. For this reason, in order to cause the recording device to record an image based on the registered image data by the function of the printer driver, it is necessary that the execution unit of the printer driver manages the registered image data by some means. is there. Therefore, conventionally, a dedicated software tool is customized according to the printer driver, and when registering registered image data using the software tool, the registered image data is registered in a manner that can be managed by the printer driver. However, the above customization requires specialized knowledge and a considerable amount of time for work, and is difficult and cumbersome.
The present invention has been made in view of the above-described circumstances, and when registered image data is registered in the recording apparatus by a function different from the function of the control program of the control apparatus, the control program is performed by simple means. An object of the present invention is to enable the recording apparatus to record an image based on the registered image data.

上記目的を達成するために、本発明は、登録画像データと、前記登録画像データを識別するための識別情報とを対応付けて記憶し、記憶した前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能な制御装置であって、制御プログラムを実行することにより、前記記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、前記記録装置に、所定の前記登録画像データに基づいて画像を記録させる場合、前記アプリケーション実行部は、当該所定の前記登録画像データに対応する識別情報を含む前記画像情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、前記記録装置に、出力することにより当該識別情報と対応付けて記憶された当該所定の前記登録画像データに基づいて画像を記録させ、前記制御プログラム実行部は、前記制御プロラムの機能とは別の機能により、前記記録装置に、1の前記登録画像データと、当該1の前記登録画像データを識別するための外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身との間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理し、当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させることを特徴とする。
この構成によれば、制御プログラムを実行して記録装置を制御する制御プログラム実行部は、制御プロラムの機能とは別の機能により、記録装置に、1の登録画像データと、当該1の登録画像データを識別するための情報である外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、アプリケーション実行部及び制御プログラム実行部の間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理する。このため、制御プログラム実行部は、当該別の機能により割り振られた外部識別情報を、自身が使用可能な内部識別情報と対応付けて管理することができる。さらに、上記構成によれば、当該1の登録画像データに係る画像を記録させるべく、アプリケーション実行部から当該内部識別情報を含む画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを記録装置に出力して画像を記録させるため、記録装置において外部識別情報に対応付けて記憶された当該1の登録画像データを適切に指定した上で、記録装置に、当該1の登録画像データに基づいて画像を記録させることができる。すなわち、上記構成によれば、当該別の機能に対する改変(例えば、ソフトウェアツールに対するカスタマイズ)等の困難かつ煩雑な作業を経ることなく、制御プログラム実行部は、制御プログラムの機能とは別の機能によって登録がされた登録画像データを管理できると共に、記録装置に、当該登録画像データに基づいて画像を記録させることができる。
In order to achieve the above object, the present invention stores registered image data and identification information for identifying the registered image data in association with each other, and stores an image on a recording medium based on the stored registered image data. A control device that can be connected to a recordable recording device, and executes a control program to output a control command to the recording device to control the recording device; and a predetermined application An application execution unit that generates image information related to an image to be recorded on the recording medium and outputs the image information to the control program execution unit. When recording an image, the application execution unit includes the image including identification information corresponding to the predetermined registered image data. Information is output to the control program execution unit, and the control program execution unit generates a control command including identification information included in the input image information, and outputs the control command to the recording device, thereby outputting the identification information. An image is recorded on the basis of the predetermined registered image data stored in association with the control program, and the control program execution unit uses the function other than the function of the control program to register one registration in the recording device. When image data and external identification information for identifying the one registered image data are stored in association with each other, the external identification information can be acquired and used between the application execution unit and itself Internal identification information is allocated, the internal identification information and the external identification information are managed in association with each other, and the image related to the one registered image data is recorded. Therefore, when the image information including the internal identification information is input from the application execution unit, the internal identification information is converted into the external identification information, and a control command including the external identification information is output to the recording device. Thus, the recording apparatus records an image based on the one registered image data stored in association with the external identification information.
According to this configuration, the control program execution unit that controls the recording apparatus by executing the control program uses the function different from the function of the control program to store one registered image data and one registered image on the recording apparatus. When external identification information that is information for identifying data is stored in association with each other, the external identification information is acquired and internal identification information that can be used between the application execution unit and the control program execution unit is allocated. The internal identification information and the external identification information are managed in association with each other. For this reason, the control program execution unit can manage the external identification information allocated by the other function in association with the internal identification information that can be used by itself. Further, according to the above configuration, when image information including the internal identification information is input from the application execution unit to record an image related to the one registered image data, the internal identification information is converted into the external identification information. In order to convert and output a control command including the external identification information to the recording apparatus to record an image, the registration image data stored in association with the external identification information is appropriately specified in the recording apparatus. The recording apparatus can record an image based on the one registered image data. That is, according to the above configuration, the control program execution unit can execute a function different from the function of the control program without performing difficult and complicated work such as modification to the other function (for example, customization of the software tool). Registered registered image data can be managed, and an image can be recorded on the recording device based on the registered image data.

また、本発明は、前記制御プロラムの機能とは別の機能により1の前記登録画像データと対応付けて記憶された外部識別情報、及び、当該外部識別情報に対応する内部識別情報の入力が可能に構成され、前記制御プログラム実行部は、入力された当該外部識別情報と、入力された当該内部識別情報と、を対応付けて管理し、当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させることを特徴とする。
この構成によれば、制御プロラムの機能とは別の機能により1の登録画像データと対応付けて記憶された外部識別情報と、当該外部識別情報に対応する内部識別情報との入力が可能であり、制御プログラム実行部は、これら情報が入力された場合、これら情報を対応付けて管理するため、外部識別情報と、内部識別情報とを入力するという簡易な手段により、これら情報の対応付けが可能となる。
Further, according to the present invention, external identification information stored in association with one registered image data and internal identification information corresponding to the external identification information can be input by a function different from the function of the control program. The control program executing unit manages the input external identification information and the input internal identification information in association with each other, and records the image related to the one registered image data. When the image information including the internal identification information is input from the application execution unit, the internal identification information is converted into the external identification information, and a control command including the external identification information is output to the recording device. Thus, the recording apparatus records an image based on the one registered image data stored in association with the external identification information.
According to this configuration, it is possible to input the external identification information stored in association with one registered image data and the internal identification information corresponding to the external identification information by a function different from the function of the control program. When the information is input, the control program execution unit manages the information in association with each other. Therefore, the information can be associated with a simple means of inputting the external identification information and the internal identification information. It becomes.

また、本発明は、前記別の機能は、前記記録装置に接続可能な外部機器にインストールされたソフトウェアツールの機能であり、前記外部機器と通信可能に接続され、前記制御プログラム実行部は、前記外部機器の前記ソフトウェアツールの機能により、前記記録装置に、1の前記登録画像データと、前記外部識別情報とが対応付けて記憶された場合、前記外部機器と通信して、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身が使用可能な前記内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理することを特徴とする。
この構成によれば、外部機器にインストールされたソフトウェアツールの機能により、1の登録画像データと、外部識別情報とが対応付けて記憶された場合、制御プログラム実行部は、当該外部機器と通信して、当該外部識別情報を取得すると共に、アプリケーション実行部及び自身が使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理する。すなわち、外部機器により登録画像データが登録された場合、内部識別情報と、外部識別情報との対応付けが、当該外部機器との通信を介して、制御プログラム実行部により自動で実行されるため、当該対応付けのための作業等が必要なくなると共に、外部機器により登録された登録画像データについて、不足無く管理できる。
Further, according to the present invention, the another function is a function of a software tool installed in an external device connectable to the recording device, and is connected to be communicable with the external device. When the registered image data of one and the external identification information are stored in the recording device in association with each other by the function of the software tool of the external device, the external identification information is communicated with the external device. Acquiring and allocating the internal identification information usable by the application execution unit and itself, and managing the internal identification information and the external identification information in association with each other.
According to this configuration, when one registered image data and external identification information are stored in association with each other by the function of the software tool installed in the external device, the control program execution unit communicates with the external device. The external identification information is acquired, and internal identification information that can be used by the application execution unit and itself is allocated, and the internal identification information and the external identification information are associated with each other and managed. That is, when the registered image data is registered by the external device, the association between the internal identification information and the external identification information is automatically executed by the control program execution unit via communication with the external device. The work for the association is not necessary, and the registered image data registered by the external device can be managed without shortage.

また、本発明は、前記記録装置に所定の前記登録画像データに基づいて記録させる場合、前記アプリケーション実行部は、当該所定の前記登録画像データの識別情報と共に、当該所定の前記登録画像データに係る画像の画像データを含む前記画像情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記画像情報に含まれる画像データと同一性を有する前記登録画像データが外部識別情報と対応付けて前記記録装置に記憶されている場合であって、当該外部識別情報と、内部識別情報とを対応付けて管理していない場合は、当該外部識別情報を取得し、入力された前記画像情報に含まれる識別情報を、内部識別情報として、取得した当該外部識別情報と対応付けて管理することを特徴とする。
この構成によれば、制御プログラムとは別の機能により、記録装置に、登録画像データと、外部識別情報とが対応付けて記憶された場合であって、制御プログラム実行部が、当該外部識別情報と内部識別情報とを対応付けて管理していない場合において、アプリケーション実行部から、当該登録画像データに基づいて記録装置に記録させるべく画像情報が入力された場合、制御プログラム実行部は、当該画像情報に基づいて、自動で、当該外部識別情報と内部識別情報との対応付けを行うため、外部識別情報と内部識別情報との対応付けを行うための作業を軽減することが可能となる。
Further, in the present invention, when the recording apparatus records on the basis of the predetermined registered image data, the application execution unit relates to the predetermined registered image data together with the identification information of the predetermined registered image data. The image information including the image data of the image is output to the control program execution unit, and the control program execution unit externally identifies the registered image data having the same image data included in the input image information. If the external identification information and the internal identification information are not managed in association with each other when the information is stored in the recording device in association with the information, the external identification information is acquired and input. The identification information included in the image information is managed as internal identification information in association with the acquired external identification information.
According to this configuration, when the registered image data and the external identification information are stored in association with each other in the recording device by a function different from the control program, the control program execution unit can execute the external identification information. And the internal identification information are not managed in association with each other, and when image information is input from the application execution unit to be recorded in the recording device based on the registered image data, the control program execution unit Since the external identification information and the internal identification information are automatically associated with each other based on the information, the work for associating the external identification information with the internal identification information can be reduced.

また、上記目的を達成するために、本発明は、登録画像データと、前記登録画像データを識別するための識別情報とを対応付けて記憶し、記憶した前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能に構成され、前記記録装置を制御するための制御プログラムを実行することにより、前記記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する情報である画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、前記記録装置に、所定の前記登録画像データに基づいて画像を記録させる場合、前記アプリケーション実行部は、当該所定の前記登録画像データに対応する識別情報を含む前記画像情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、出力することにより、前記記録装置に、当該識別情報と対応付けて記憶された当該所定の前記登録画像データに基づいて画像を記録させる制御装置の制御方法であって、前記制御プログラム実行部により、前記制御プロラムの機能とは別の機能によって前記記録装置に、1の前記登録画像データと、当該1の前記登録画像データを識別するための外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身との間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理し、当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させることを特徴とする。
この制御方法によれば、制御プログラムを実行して記録装置を制御する制御プログラム実行部は、制御プロラムの機能とは別の機能により、記録装置に、1の登録画像データと、当該1の登録画像データを識別するための情報である外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、アプリケーション実行部及び制御プログラム実行部の間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理する。このため、制御プログラム実行部は、当該別の機能により割り振られた外部識別情報を、自身が使用可能な内部識別情報と対応付けて管理することができる。さらに、上記構成によれば、当該1の登録画像データに係る画像を記録させるべく、アプリケーション実行部から当該内部識別情報を含む画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを記録装置に出力して画像を記録させるため、記録装置において外部識別情報に対応付けて記憶された当該1の登録画像データを適切に指定した上で、記録装置に、当該1の登録画像データに基づいて画像を記録させることができる。すなわち、上記構成によれば、当該別の機能に対する改変(例えば、ソフトウェアツールに対するカスタマイズ)等の困難かつ煩雑な作業を経ることなく、制御プログラム実行部は、制御プログラムの機能とは別の機能によって登録がされた登録画像データを管理できると共に、記録装置に、当該登録画像データに基づいて画像を記録させることができる。
In order to achieve the above object, the present invention stores registered image data and identification information for identifying the registered image data in association with each other and stores them in a recording medium based on the stored registered image data. Execution of a control program configured to connect to a recording apparatus capable of recording an image and to output a control command to the recording apparatus and to control the recording apparatus by executing a control program for controlling the recording apparatus And an application execution unit that generates image information that is information about an image to be recorded on the recording medium by executing a predetermined application, and outputs the image information to the control program execution unit. When recording an image based on the predetermined registered image data, the application execution unit is configured to execute the predetermined registered image data. The image information including the identification information corresponding to the data is output to the control program execution unit, and the control program execution unit generates and outputs a control command including the identification information included in the input image information. Thus, the control method of the control device causes the recording device to record an image based on the predetermined registered image data stored in association with the identification information, and the control program execution unit performs the control. When the one registered image data and the external identification information for identifying the one registered image data are stored in association with each other by the function different from the function of the program, the external identification Acquires information, allocates internal identification information that can be used between the application execution unit and itself, and allocates the internal identification information and the external identification information. When the image information including the internal identification information is input from the application execution unit so as to record the image related to the one registered image data, the internal identification information is Based on the one registered image data stored in the recording device in association with the external identification information by converting to external identification information and outputting a control command including the external identification information to the recording device. And recording an image.
According to this control method, the control program execution unit that controls the recording apparatus by executing the control program uses the function different from the function of the control program to record one registered image data and the one registered in the recording apparatus. When external identification information that is information for identifying image data is stored in association with each other, the external identification information is acquired, and internal identification information that can be used between the application execution unit and the control program execution unit is obtained. Allocating and managing the internal identification information and the external identification information in association with each other. For this reason, the control program execution unit can manage the external identification information allocated by the other function in association with the internal identification information that can be used by itself. Further, according to the above configuration, when image information including the internal identification information is input from the application execution unit to record an image related to the one registered image data, the internal identification information is converted into the external identification information. In order to convert and output a control command including the external identification information to the recording apparatus to record an image, the registration image data stored in association with the external identification information is appropriately specified in the recording apparatus. The recording apparatus can record an image based on the one registered image data. That is, according to the above configuration, the control program execution unit can execute a function different from the function of the control program without performing difficult and complicated work such as modification to the other function (for example, customization of the software tool). Registered registered image data can be managed, and an image can be recorded on the recording device based on the registered image data.

また、本発明は、登録画像データと、前記登録画像データを識別するための識別情報とを対応付けて記憶し、記憶した前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能に構成され、所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する情報である画像情報を生成し、出力するアプリケーション実行部を備える制御装置を制御する制御部により実行されるプログラムであって、前記制御部を、前記記録装置に制御コマンドを出力して前記記録装置を制御し、前記記録装置に、所定の前記登録画像データに基づいて画像を記録させる場合、前記アプリケーション実行部から、当該所定の前記登録画像データに対応する識別情報を含む前記画像情報が入力されると共に、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、出力することにより、前記記録装置に、当該識別情報と対応付けて記憶された当該所定の前記登録画像データに基づいて画像を記録させ、自身の機能とは別の機能により、前記記録装置に、1の前記登録画像データと、当該1の前記登録画像データを識別するための外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身との間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理し、当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させる制御プログラム実行部、として機能させることを特徴とする。
このプログラムを実行すれば、制御プログラムを実行して記録装置を制御する制御プログラム実行部は、制御プロラムの機能とは別の機能により、記録装置に、1の登録画像データと、当該1の登録画像データを識別するための情報である外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、アプリケーション実行部及び制御プログラム実行部の間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理する。このため、制御プログラム実行部は、当該別の機能により割り振られた外部識別情報を、自身が使用可能な内部識別情報と対応付けて管理することができる。さらに、上記構成によれば、当該1の登録画像データに係る画像を記録させるべく、アプリケーション実行部から当該内部識別情報を含む画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを記録装置に出力して画像を記録させるため、記録装置において外部識別情報に対応付けて記憶された当該1の登録画像データを適切に指定した上で、記録装置に、当該1の登録画像データに基づいて画像を記録させることができる。すなわち、上記構成によれば、当該別の機能に対する改変(例えば、ソフトウェアツールに対するカスタマイズ)等の困難かつ煩雑な作業を経ることなく、制御プログラム実行部は、制御プログラムの機能とは別の機能によって登録がされた登録画像データを管理できると共に、記録装置に、当該登録画像データに基づいて画像を記録させることができる。
The present invention also relates to a recording apparatus that stores registered image data and identification information for identifying the registered image data in association with each other, and can record an image on a recording medium based on the stored registered image data. , Configured to be connectable, and by executing a predetermined application to generate and output image information, which is information related to an image to be recorded on the recording medium, and executed by a control unit that controls a control device including an application execution unit The control unit outputs a control command to the recording device to control the recording device, and causes the recording device to record an image based on the predetermined registered image data. The image execution information including identification information corresponding to the predetermined registered image data is input from the application execution unit. By generating and outputting a control command including identification information included in the image information, the recording apparatus records an image based on the predetermined registered image data stored in association with the identification information. When the registered image data and external identification information for identifying the one registered image data are stored in association with each other in the recording device by a function different from its own function, Acquire external identification information, allocate internal identification information usable between the application execution unit and itself, manage the internal identification information and the external identification information in association with each other, and register the one registered image When the image information including the internal identification information is input from the application execution unit to record an image related to data, the internal identification information is Based on the one registered image data stored in the recording device in association with the external identification information by converting to identification information and outputting a control command including the external identification information to the recording device. It is made to function as a control program execution part which records an image.
When this program is executed, the control program execution unit that executes the control program to control the recording apparatus uses a function different from the function of the control program to register one registered image data and the one registered in the recording apparatus. When external identification information that is information for identifying image data is stored in association with each other, the external identification information is acquired, and internal identification information that can be used between the application execution unit and the control program execution unit is obtained. Allocating and managing the internal identification information and the external identification information in association with each other. For this reason, the control program execution unit can manage the external identification information allocated by the other function in association with the internal identification information that can be used by itself. Further, according to the above configuration, when image information including the internal identification information is input from the application execution unit to record an image related to the one registered image data, the internal identification information is converted into the external identification information. In order to convert and output a control command including the external identification information to the recording apparatus to record an image, the registration image data stored in association with the external identification information is appropriately specified in the recording apparatus. The recording apparatus can record an image based on the one registered image data. That is, according to the above configuration, the control program execution unit can execute a function different from the function of the control program without performing difficult and complicated work such as modification to the other function (for example, customization of the software tool). Registered registered image data can be managed, and an image can be recorded on the recording device based on the registered image data.

本発明によれ制御装置の制御プログラムの機能とは別の機能により登録画像データが記録装置に登録された場合において、できるだけ簡易な手段によって、当該制御プログラムの機能により記録装置に当該登録画像データに基づく画像の記録を行わせることができるようになる。   According to the present invention, when the registered image data is registered in the recording device by a function different from the function of the control program of the control device, the registered image data is stored in the recording device by the function of the control program by the simplest possible means. Based on this, it becomes possible to record an image.

記録システムの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of a recording system. 識別情報管理テーブルの内容を模式的に示す図である。It is a figure which shows typically the content of the identification information management table. ホストコンピューターの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a host computer. ホストコンピューターの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a host computer.

以下、図面を参照して本発明の実施形態について説明する。
図1は、記録システム10の機能的構成を示すブロック図である。
記録システム10は、スーパーマーケットやコンビニエンスストア等の店舗に適用され、店舗に来店した顧客の代金の支払いに応じてレシートを発行するシステムであり、図1に示すように、ホストコンピューター11(制御装置)と、POSサーバー25と、プリンター26(記録装置)とを備えている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a functional configuration of the recording system 10.
The recording system 10 is a system that is applied to a store such as a supermarket or a convenience store, and issues a receipt in response to payment for a customer who has visited the store. As shown in FIG. 1, a host computer 11 (control device) And a POS server 25 and a printer 26 (recording device).

POSサーバー25は、ネットワークNを介してホストコンピューター11に通信可能に接続されており、店舗で販売している商品の商品コードや、名称、金額等のレシートの発行のために必要となる情報を示すデータをデータベースとして記憶する。ホストコンピューター11は、レシートの発行に際し、適宜、POSサーバー25に記憶されたデータベースを参照し、必要な情報を取得する。   The POS server 25 is communicably connected to the host computer 11 via the network N, and stores information necessary for issuing receipts such as product codes, names, and amounts of products sold in stores. The indicated data is stored as a database. When the receipt is issued, the host computer 11 refers to the database stored in the POS server 25 as appropriate, and acquires necessary information.

ホストコンピューター11は、ホスト側制御部28と、ホスト側表示部29と、ホスト側入力部30と、インターフェイス部(I/F)31と、ホスト側記憶部32と、ネットワーク通信部33と、を備えている。
ホスト側制御部28は、ホストコンピューター11の各部を中枢的に制御するものであり、CPUや、ROM、RAM、その他の周辺回路等を備えている。
図1に示すように、ホスト側制御部28は、POSアプリケーション実行部34(アプリケーション実行部)と、プリンタードライバー実行部35(制御プログラム実行部)と、を備えているが、これらについては後述する。
ホスト側表示部29は、液晶表示パネル等の表示パネルを備え、ホスト側制御部28の制御の下、表示パネルに各種情報を表示する。
ホスト側入力部30は、キーボードや、マウス、バーコードリーダー、カードリーダー等の入力デバイスに接続され、これら入力デバイスの出力信号をホスト側制御部28に出力する。バーコードリーダーは商品の包装紙等に記録されたバーコードの読み取りに利用され、カードリーダーはクレジットカードや、会員カード等に記録された情報の読み取りに利用される。バーコードリーダーやカードリーダー等の入力デバイスを用いて取得した情報は、レシートの発行に係る処理に用いられる。
インターフェイス部31は、ホスト側制御部28の制御の下、プリンター26との間で通信規格に準拠した通信を行う。
ホスト側記憶部32は、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。このホスト側記憶部32には、POSアプリケーション20と、プリンタードライバー21とが実行可能な状態で記憶されており、また、識別情報管理テーブル22が記憶されている。これらについては後述する。
ネットワーク通信部33は、ホスト側制御部28の制御の下、LANや、インターネット等からなるネットワークNを介して、このネットワークNに接続された各種機器と通信規格に準拠した通信を行う。本実施形態では、ネットワーク通信部33は、上述したPOSサーバー25と通信し、また、後述する専用端末50(外部機器)と通信可能である。
The host computer 11 includes a host-side control unit 28, a host-side display unit 29, a host-side input unit 30, an interface unit (I / F) 31, a host-side storage unit 32, and a network communication unit 33. I have.
The host-side control unit 28 centrally controls each unit of the host computer 11 and includes a CPU, ROM, RAM, and other peripheral circuits.
As shown in FIG. 1, the host-side control unit 28 includes a POS application execution unit 34 (application execution unit) and a printer driver execution unit 35 (control program execution unit), which will be described later. .
The host side display unit 29 includes a display panel such as a liquid crystal display panel, and displays various types of information on the display panel under the control of the host side control unit 28.
The host-side input unit 30 is connected to input devices such as a keyboard, a mouse, a barcode reader, and a card reader, and outputs output signals from these input devices to the host-side control unit 28. The bar code reader is used for reading a bar code recorded on a product wrapping paper or the like, and the card reader is used for reading information recorded on a credit card, a member card or the like. Information acquired using an input device such as a barcode reader or a card reader is used for processing relating to receipt issuance.
The interface unit 31 performs communication based on the communication standard with the printer 26 under the control of the host-side control unit 28.
The host-side storage unit 32 includes a nonvolatile memory such as an EEPROM and stores various data in a rewritable manner. The host-side storage unit 32 stores the POS application 20 and the printer driver 21 in an executable state, and stores an identification information management table 22. These will be described later.
Under the control of the host-side control unit 28, the network communication unit 33 communicates with various devices connected to the network N according to the communication standard via the network N such as a LAN or the Internet. In the present embodiment, the network communication unit 33 communicates with the POS server 25 described above and can communicate with a dedicated terminal 50 (external device) described later.

一方、プリンター26は、ロール状に巻かれた感熱ロール紙を、ローラー状のプラテンにより搬送し、この感熱ロール紙の記録面に、発熱素子を備えたラインサーマルヘッド37によって熱を与えることにより画像を記録した上で、カッターユニット38により所定の位置で感熱ロール紙を切断することにより、レシートを発行するサーマルヘッド式プリンターである。
図1に示すように、プリンター26は、プリンター側制御部40と、プリンター側表示部41と、プリンター側入力部42と、プリントエンジン43と、プリンター側記憶部44と、インターフェイス部45と、を備えている。
プリンター側制御部40は、プリンター26を中枢的に制御するものであり、CPUやROM、RAMその他の周辺回路等を備えている。
プリンター側表示部41は、プリンター26の動作状態等の各種情報を表示する液晶表示パネル等の表示パネルを備え、プリンター側制御部40の制御の下、当該表示パネルに各種情報を表示する。また、プリンター側表示部41は、LEDを備え、このLEDを点灯/消灯して、プリンター26の状態を報知する。
プリンター側入力部42は、プリンター26に設けられた操作スイッチに接続され、操作スイッチに対する操作を検出し、プリンター側制御部40に出力する。
プリントエンジン43は、プリンター側制御部40の制御の下、用紙端センサーや用紙残量センサー等の各種センサーの検出値を監視しながら、上述したラインサーマルヘッド37のほか、感熱ロール紙を搬送するプラテンローラーを駆動するための搬送モーターや、上述したカッターユニット38が備えるカッターを駆動するためのカッター駆動モーターを動作させて、感熱ロール紙に画像を記録し、画像を記録した感熱ロール紙を切断することによりレシートを発行する。
インターフェイス部45は、プリンター側制御部40の制御の下、プリンター26との間で通信規格に準拠した通信を行う。また、インターフェイス部45は、後述する専用端末50が接続されている場合は、この専用端末50と通信規格に準拠した通信を行う。
プリンター側記憶部44は、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。プリンター側記憶部44には、プリンター26の動作を制御するためのファームウェアが記憶されるほか、登録画像データ46、及び、識別情報47が記憶される。これらデータについては、後述する。
On the other hand, the printer 26 conveys the thermal roll paper wound in a roll shape by a roller-like platen, and applies heat to the recording surface of the thermal roll paper by a line thermal head 37 provided with a heating element, thereby generating an image. Is a thermal head type printer that issues a receipt by cutting the thermal roll paper at a predetermined position by the cutter unit 38.
As shown in FIG. 1, the printer 26 includes a printer-side control unit 40, a printer-side display unit 41, a printer-side input unit 42, a print engine 43, a printer-side storage unit 44, and an interface unit 45. I have.
The printer-side control unit 40 centrally controls the printer 26 and includes a CPU, a ROM, a RAM, and other peripheral circuits.
The printer-side display unit 41 includes a display panel such as a liquid crystal display panel that displays various types of information such as the operating state of the printer 26, and displays various types of information on the display panel under the control of the printer-side control unit 40. The printer-side display unit 41 includes an LED, and turns on / off the LED to notify the state of the printer 26.
The printer-side input unit 42 is connected to an operation switch provided in the printer 26, detects an operation on the operation switch, and outputs it to the printer-side control unit 40.
The print engine 43 conveys thermal roll paper in addition to the above-described line thermal head 37 while monitoring detection values of various sensors such as a paper edge sensor and a paper remaining amount sensor under the control of the printer-side control unit 40. The conveyance motor for driving the platen roller and the cutter drive motor for driving the cutter provided in the cutter unit 38 described above are operated to record an image on the thermal roll paper and cut the thermal roll paper on which the image has been recorded. Issue a receipt.
The interface unit 45 performs communication based on the communication standard with the printer 26 under the control of the printer-side control unit 40. Further, when a dedicated terminal 50 (to be described later) is connected, the interface unit 45 communicates with the dedicated terminal 50 in accordance with a communication standard.
The printer-side storage unit 44 includes a nonvolatile memory such as an EEPROM and stores various data in a rewritable manner. The printer-side storage unit 44 stores firmware for controlling the operation of the printer 26, and also stores registered image data 46 and identification information 47. These data will be described later.

次いで、POSアプリケーション実行部34及びプリンタードライバー実行部35の説明を通して、記録システム10がレシートを発行する際の基本的な動作について説明する。
POSアプリケーション実行部34(アプリケーション実行部)は、ホストコンピューター11に予めインストールされたPOSアプリケーション20(アプリケーション)を実行することにより、取引毎に、適宜、POSサーバー25にアクセスした上で、取引において購入された商品を示す情報や、商品の単価を示す情報、購入金額を示す情報等のレシートに記載すべき情報を取得し、取得した情報に基づいて、レシートに記録すべき画像にする情報であって、画像を記録させるために必要な情報を含む画像情報をプリンタードライバー実行部35に出力する。
プリンタードライバー実行部35(制御プログラム実行部)は、ホストコンピューター11に予めインストールされたプリンタードライバー21(制御プログラム)を実行することにより、POSアプリケーション実行部34から入力された画像情報に基づいて、プリンター26のコマンド仕様に対応した制御コマンドを生成し、プリンター側制御部40に出力する。この制御コマンドには、搬送機構に感熱ロール紙を搬送させるコマンドや、ラインサーマルヘッド37を駆動させて画像を記録させるコマンド、カッターユニット38に感熱ロール紙を切断させるコマンド等の、プリンター26にレシートを発行させるためのコマンドが含まれている。
制御コマンドが入力されたプリンター側制御部40は、この制御コマンドに基づいてプリントエンジン43を制御し、レシートを発行する。
Next, basic operations when the recording system 10 issues a receipt will be described through the description of the POS application execution unit 34 and the printer driver execution unit 35.
The POS application execution unit 34 (application execution unit) executes the POS application 20 (application) installed in advance on the host computer 11 to access the POS server 25 as appropriate for each transaction, and purchases the transaction. Information to be recorded on the receipt, such as information indicating the received product, information indicating the unit price of the product, information indicating the purchase price, etc., and making the image to be recorded on the receipt based on the acquired information. Then, image information including information necessary for recording the image is output to the printer driver execution unit 35.
The printer driver execution unit 35 (control program execution unit) executes a printer driver 21 (control program) preinstalled in the host computer 11, thereby performing a printer operation based on the image information input from the POS application execution unit 34. A control command corresponding to the 26 command specifications is generated and output to the printer-side control unit 40. The control command includes a command for causing the transport mechanism to convey the thermal roll paper, a command for driving the line thermal head 37 to record an image, a command for causing the cutter unit 38 to cut the thermal roll paper, and the like. The command to issue is included.
The printer-side control unit 40 to which the control command is input controls the print engine 43 based on this control command and issues a receipt.

なお、POSアプリケーション20、及び、プリンタードライバー21は、UPOS(UnifiedPOS)の規格に準拠したプログラムとなっている。プリンタードライバー21には、POSアプリケーション20と、プリンタードライバー21との間のソフトウェア的なインターフェイスとして機能するプログラム(いわゆる、コントロールオブジェクト)が実装されている。POSアプリケーション実行部34とプリンタードライバー実行部35との間での情報の受け渡しは、UPOSの規格に準拠して、例えば、引数を介したデータの受け渡しや、共通して使用する変数、パラーメーターの設定という形で行われる。従って、POSアプリケーション20から、プリンタードライバー21に出力される上述した画像情報は、UPOSに準拠した形式となっている。   The POS application 20 and the printer driver 21 are programs compliant with the UPOS (UnifiedPOS) standard. The printer driver 21 is mounted with a program (so-called control object) that functions as a software interface between the POS application 20 and the printer driver 21. Information is exchanged between the POS application execution unit 34 and the printer driver execution unit 35 in accordance with the UPOS standard, for example, data transfer via arguments, common variables, parameters, etc. This is done in the form of settings. Therefore, the above-described image information output from the POS application 20 to the printer driver 21 is in a format compliant with UPOS.

本実施形態では、レシートに定型的に記録されるトップロゴや、ボトムロゴ、広告に係る画像について、ホストコンピューター11は、プリンター26に、事前に登録された登録画像データ46を利用して記録させることが可能となっている。
以下、登録画像データ46に基づいて、プリンター26に画像を記録させる場合の、記録システム10の基本的な動作について例を挙げて簡単に説明する。
In the present embodiment, the host computer 11 causes the printer 26 to record the top logo, the bottom logo, and the image related to the advertisement that are regularly recorded on the receipt by using the registered image data 46 registered in advance. Is possible.
Hereinafter, the basic operation of the recording system 10 when the printer 26 records an image based on the registered image data 46 will be briefly described with an example.

登録画像データ46とは、プリンター26の画像バッファーに展開可能な形式の画像データ(ビットマップデータ等の、画素ごとに階調や色に関する情報を保持するデータ。)である。プリンター側記憶部44には、複数の登録画像データ46を記憶させることが可能である。
図1に示すように、プリンター側記憶部44には、登録画像データ46と対応付けて、識別情報47が記憶されている。この識別情報47は、プリンター側制御部40が、登録画像データ46を識別するために、登録画像データ46ごとに一意に割り振られたコードである。
一方、ホストコンピューター11のホスト側記憶部32には、登録画像データ46のそれぞれに対応して、アプリ管理用画像データ60のそれぞれが記憶されている。対応するアプリ管理用画像データ60と、登録画像データ46とは、同一性を有している。「同一性を有している」とは、画像データが完全一致する場合のほか、データ形式のみの不一致や、データ圧縮に起因して画像データの相違を含んでいる。
アプリ管理用画像データ60のそれぞれには、アプリ管理用識別情報61が対応付けられている。後述する例外を除き、基本的に、対応関係にある登録画像データ46、及び、アプリ管理用画像データ60について、当該登録画像データ46に対応付けられた識別情報47と、当該アプリ管理用画像データ60に対応付けられたアプリ管理用識別情報61と、は同一の値である。アプリ管理用画像データ60、及び、アプリ管理用識別情報61のホストコンピューター11のホスト側記憶部32への記憶は、プリンター26に登録画像データ46、及び、識別情報47が登録された後に、POSアプリケーション20の機能を利用する等してユーザーによって適宜行われる。
The registered image data 46 is image data in a format that can be developed in the image buffer of the printer 26 (data that holds information on gradation and color for each pixel, such as bitmap data). A plurality of registered image data 46 can be stored in the printer-side storage unit 44.
As shown in FIG. 1, identification information 47 is stored in the printer-side storage unit 44 in association with the registered image data 46. The identification information 47 is a code uniquely assigned to each registered image data 46 so that the printer-side control unit 40 identifies the registered image data 46.
On the other hand, the host-side storage unit 32 of the host computer 11 stores application management image data 60 corresponding to each of the registered image data 46. Corresponding application management image data 60 and registered image data 46 are identical. “Having the same” includes not only the case where the image data completely match, but also the difference in the data format, or the difference in the image data due to data compression.
Each of the application management image data 60 is associated with application management identification information 61. With the exception of exceptions to be described later, basically, with respect to the registered image data 46 and the application management image data 60 that are in a corresponding relationship, the identification information 47 associated with the registered image data 46 and the application management image data The application management identification information 61 associated with 60 is the same value. The application management image data 60 and the application management identification information 61 are stored in the host-side storage unit 32 of the host computer 11 after the registration image data 46 and the identification information 47 are registered in the printer 26. This is appropriately performed by the user by using the function of the application 20 or the like.

ある1の登録画像データ46に基づいて画像を記録させる場合、POSアプリケーション実行部34は、当該1の登録画像データ46に対応するアプリ管理用画像データ60、及び、当該アプリ管理用画像データ60に対応付けられたアプリ管理用識別情報61を少なくとも含む画像情報をプリンタードライバー実行部35に出力する。この画像情報には、レシートにおいて登録画像データ46に係る画像を記録すべき位置を示す情報や、その他の登録画像データ46に基づいて画像を記録するにあたって必要な情報が含まれている。
なお、アプリ管理用画像データ60については、POSアプリケーション実行部34は、プリンタードライバー実行部35に対して、データそのものを出力してもよく、また、アプリ管理用画像データ60の記憶領域における位置(例えば、ルートディレクトリーからのパス名)を出力してもよい。
上述したように、画像情報は、UPOSの規格に準拠した態様の情報となっている。特に、POSアプリケーション実行部34からプリンタードライバー実行部35に出力される画像情報に含まれるアプリ管理用識別情報61の値は、UPOSの規格に準拠した値となっている。
When an image is recorded based on a certain registered image data 46, the POS application execution unit 34 stores the application management image data 60 corresponding to the one registered image data 46 and the application management image data 60. Image information including at least the associated application management identification information 61 is output to the printer driver execution unit 35. This image information includes information indicating a position where an image related to the registered image data 46 is to be recorded in the receipt, and information necessary for recording an image based on the other registered image data 46.
As for the application management image data 60, the POS application execution unit 34 may output the data itself to the printer driver execution unit 35, and the position of the application management image data 60 in the storage area ( For example, the path name from the root directory) may be output.
As described above, the image information is information in a mode compliant with the UPOS standard. In particular, the value of the application management identification information 61 included in the image information output from the POS application execution unit 34 to the printer driver execution unit 35 is a value compliant with the UPOS standard.

POSアプリケーション実行部34から画像情報が入力されると、プリンタードライバー実行部35は、画像情報に含まれるアプリ管理用識別情報61を少なくとも含む制御コマンドであって、登録画像データ46に基づいて画像を記録させる制御コマンドを生成し、プリンター26に出力する。当該制御コマンドには、画像データは含まれていない。
当該制御コマンドが入力されたプリンター26のプリンター側制御部40は、制御コマンドに含まれるアプリ管理用識別情報61を取得すると共に、プリンター側記憶部44において、アプリ管理用識別情報61と同一の値の識別情報47を特定し、特定した識別情報47と対応付けて記憶されている登録画像データ46を特定する。次いで、プリンター側制御部40は、特定した登録画像データ46を、所定の画像バッファーに展開し、展開したデータに基づいて、ラインサーマルヘッド37、その他の付随する機構を制御して、感熱ロール紙に画像を記録する。
このように、登録画像データ46に基づく画像の記録に際し、ホストコンピューター11からプリンター26に出力される制御コマンドにはデータ量の多い画像データが含まれないため、これら装置間で通信すべきデータ量の低減を図ることができると共に、処理に要する時間を低減でき、さらに、通信エラーの発生リスクを低減できる。
When image information is input from the POS application execution unit 34, the printer driver execution unit 35 is a control command including at least the application management identification information 61 included in the image information, and displays an image based on the registered image data 46. A control command to be recorded is generated and output to the printer 26. The control command does not include image data.
The printer-side control unit 40 of the printer 26 to which the control command is input acquires the application management identification information 61 included in the control command, and the same value as the application management identification information 61 in the printer-side storage unit 44. Identification information 47 is specified, and registered image data 46 stored in association with the specified identification information 47 is specified. Next, the printer-side control unit 40 develops the specified registered image data 46 in a predetermined image buffer, and controls the line thermal head 37 and other accompanying mechanisms based on the developed data, so that the thermal roll paper is used. Record an image on
Thus, when recording an image based on the registered image data 46, the control command output from the host computer 11 to the printer 26 does not include image data with a large amount of data, so the amount of data to be communicated between these devices. Can be reduced, the time required for processing can be reduced, and the risk of occurrence of communication errors can be reduced.

ところで、プリンター26のプリンター側記憶部44への登録画像データ46、及び、識別情報47の記憶(以下、適宜、「登録」と表現する。)は、プリンタードライバー21の機能によって行うことが可能である。
例えば、プリンタードライバー21によって提供される所定のユーザーインターフェイスを介して、登録画像データ46を所定のユーザーインターフェイスに入力すれば、UPOSの規格に準拠した値を有する識別情報47を自動で生成し、登録を指示する適切な制御コマンドをプリンター26に出力して、入力された登録画像データ46、及び、生成した識別情報47をプリンター側記憶部44に適切に登録する機能がプリンタードライバー21実装されており、ユーザーは、この機能を利用して、登録画像データ46、及び、識別情報47のプリンター26への登録が可能である。
なお、プリンタードライバー21の機能を利用して、登録画像データ46、及び、識別情報47を登録した場合、さらに、POSアプリケーション実行部34により参照可能な態様で、当該登録画像データ46と同一性を有する画像データであるアプリ管理用画像データ60、及び、識別情報47と同一の値を有するアプリ管理用識別情報61が、ホスト側記憶部32に記憶される。当該ホスト側記憶部32への記憶は、登録画像データ46、及び、識別情報47がプリンター26に登録された際に、例えば、プリンタードライバー実行部35及びPOSアプリケーション実行部34が協働して自動で行うようにしてもよく、また、POSアプリケーション20の機能を利用して人為的な手段によって行うようにしてもよい。
By the way, registration image data 46 and identification information 47 in the printer-side storage unit 44 of the printer 26 can be stored by the function of the printer driver 21 (hereinafter referred to as “registration” as appropriate). is there.
For example, if the registered image data 46 is input to a predetermined user interface via a predetermined user interface provided by the printer driver 21, identification information 47 having a value compliant with the UPOS standard is automatically generated and registered. The printer driver 21 is equipped with a function for outputting an appropriate control command for instructing the printer to the printer 26 and appropriately registering the input registered image data 46 and the generated identification information 47 in the printer-side storage unit 44. The user can register the registered image data 46 and the identification information 47 in the printer 26 using this function.
When the registered image data 46 and the identification information 47 are registered by using the function of the printer driver 21, the registration image data 46 and the identification information 47 can be referred to by the POS application execution unit 34. Application management image data 60, which is image data, and application management identification information 61 having the same value as the identification information 47 are stored in the host-side storage unit 32. For example, when the registered image data 46 and the identification information 47 are registered in the printer 26, the storage on the host-side storage unit 32 is automatically performed by the printer driver execution unit 35 and the POS application execution unit 34 in cooperation. Alternatively, it may be performed by an artificial means using the function of the POS application 20.

ここで、プリンター26は、専用端末50が接続され、この専用端末50により各種メンテナンスが行える構成となっている。
専用端末50とは、例えば、プリンター26を製造販売するメーカーに所属する作業員や、記録システム10の構築、運用を担当するシステムインテグレーターのサービスマンが保有するノート型のパーソナルコンピューターである。この専用端末50には、プリンター26の各種メンテナンス処理を実行する専用のソフトウェアツールがインストールされている。作業者や、サービスマンは、この専用端末50にインストールされたソフトウェアツールの機能により、例えば、ログの吸い出しや、エラーの検出等の各種メンテナンス処理を行うことができる。このように、専用のソフトウェアツールがインストールされた専用端末50により、各種メンテナンスを行えるようにすることは、広く行われている。以下の説明において、ユーザーとは、記録システム10を利用する者のほか、上述した作業者やサービスマンを含む概念であるものとする。
このソフトウェアツールは、メンテナンスの対象となるプリンター26のコマンド体系、各種プロトコル、フォーマットに対応していればよいため、UPOSの規格に準拠したものとはなっていない。
Here, the printer 26 has a configuration in which a dedicated terminal 50 is connected and various maintenance can be performed by the dedicated terminal 50.
The dedicated terminal 50 is, for example, a notebook personal computer owned by a worker who belongs to a manufacturer that manufactures and sells the printer 26 or a service person of a system integrator who is in charge of construction and operation of the recording system 10. A dedicated software tool for executing various maintenance processes of the printer 26 is installed in the dedicated terminal 50. An operator or a service person can perform various maintenance processes such as log dumping and error detection by using the function of the software tool installed in the dedicated terminal 50. As described above, various types of maintenance can be performed by the dedicated terminal 50 in which the dedicated software tool is installed. In the following description, it is assumed that the user is a concept including the above-described worker and service person in addition to the person who uses the recording system 10.
Since this software tool only needs to support the command system, various protocols, and formats of the printer 26 to be maintained, it is not compliant with the UPOS standard.

上述したように、登録画像データ46、及び、識別情報47のプリンター26への登録は、プリンタードライバー21の機能を利用して実行可能であるが、この機能を専用端末50のソフトウェアツールが実装している場合がある。
この場合、例えば、専用端末50のソフトウェアツールの機能が提供するユーザーインターフェイスに、登録画像データ46が入力可能な構成とされる。そして、ユーザーにより登録画像データ46が入力された上で、当該登録画像データ46のプリンター26への登録が指示された場合、ソフトウェアツールの実行部は、識別情報47を生成すると共に、プリンター26と通信し、プリンター側記憶部44に、入力された登録画像データ46、及び、生成した識別情報47を対応付けて記憶させる処理を行う。この処理の結果、プリンター側記憶部44には、登録画像データ46、及び、識別情報47が対応付けて記憶されることとなる。
ここで、上述したように、ソフトウェアツールは、UPOSの規格に準拠して作成されたプログラムではない。従って、専用端末50のソフトウェアツールの機能によって生成された識別情報47の値はUPOSの規格に準拠した値とはなっていない。このため、何ら対策をしない場合は、POSアプリケーション実行部34と協働するプリンタードライバー実行部35は、ソフトウェアツールの機能によって登録された登録画像データ46に基づく画像の記録をプリンター26に行わせることはできない。これを鑑み、従来は、ソフトウェアツールをカスタマイズし、識別情報47の登録に際し、当該識別情報47の値が、UPOSの規格に準拠した値となるようにする措置がとられていたが、当該カスタマイズは、専門知識と、作業のための相当の時間が必要であり、困難かつ煩雑であった。
以上を踏まえ、本実施形態に係るホストコンピューター11は、以下の構成を有すると共に、以下の動作を実行し、できるだけ簡易な手段によって、プリンタードライバー21の機能により、プリンター26に、ソフトウェアツールの機能によって登録された登録画像データ46に基づく画像の記録を行わせることができるようにしている。
As described above, registration of the registered image data 46 and the identification information 47 to the printer 26 can be performed by using the function of the printer driver 21. This function is implemented by the software tool of the dedicated terminal 50. There may be.
In this case, for example, the registered image data 46 can be input to the user interface provided by the function of the software tool of the dedicated terminal 50. When the registered image data 46 is input by the user and the registration of the registered image data 46 to the printer 26 is instructed, the execution unit of the software tool generates the identification information 47 and the printer 26. Communication is performed, and the printer-side storage unit 44 stores the input registered image data 46 and the generated identification information 47 in association with each other. As a result of this processing, registered image data 46 and identification information 47 are stored in the printer-side storage unit 44 in association with each other.
Here, as described above, the software tool is not a program created in compliance with the UPOS standard. Therefore, the value of the identification information 47 generated by the function of the software tool of the dedicated terminal 50 is not a value compliant with the UPOS standard. Therefore, when no countermeasure is taken, the printer driver execution unit 35 that cooperates with the POS application execution unit 34 causes the printer 26 to record an image based on the registered image data 46 registered by the function of the software tool. I can't. In view of this, conventionally, measures have been taken to customize the software tool so that the value of the identification information 47 conforms to the UPOS standard when the identification information 47 is registered. Requires specialized knowledge and considerable time for work, and was difficult and cumbersome.
Based on the above, the host computer 11 according to the present embodiment has the following configuration, executes the following operations, and uses the functions of the printer driver 21 and the functions of the software tool in the printer 26 by the simplest possible means. An image can be recorded based on the registered image data 46 registered.

以下の説明では、ソフトウェアツールの機能によってプリンター26に登録された識別情報47を、適宜、「外部識別情報」と表現する。上述したように、ソフトウェアツールの機能によってプリンター26に登録画像データ46が登録された場合は、当該登録画像データ46は、この外部識別情報と対応付けてプリンター側記憶部44に記憶されることとなる。また、この外部識別情報は、上述したように、UPOSの規格に準拠した値となっていない。
また以下の説明では、UPOSの規格に準拠しており、POSアプリケーション実行部34及びプリンタードライバー実行部35の双方が使用可能な識別情報47を、適宜、「内部識別情報」と表現する。POSアプリケーション実行部34が管理するアプリ管理用識別情報61は、内部識別情報である。
In the following description, the identification information 47 registered in the printer 26 by the function of the software tool is appropriately expressed as “external identification information”. As described above, when the registered image data 46 is registered in the printer 26 by the function of the software tool, the registered image data 46 is stored in the printer-side storage unit 44 in association with the external identification information. Become. Further, as described above, the external identification information is not a value that complies with the UPOS standard.
In the following description, the identification information 47 that conforms to the UPOS standard and can be used by both the POS application execution unit 34 and the printer driver execution unit 35 is appropriately expressed as “internal identification information”. The application management identification information 61 managed by the POS application execution unit 34 is internal identification information.

プリンタードライバー実行部35は、ソフトウェアツールの機能によってプリンター26に、登録画像データ46、及び、外部識別情報が対応付けて記憶された場合、後述する手段により、当該外部識別情報を取得し、当該外部識別情報に対応する内部識別情報を割り振り、これら外部識別情報と、内部識別情報とを対応付けて管理する。より具体的には、これら外部識別情報と、内部識別情報とを識別情報管理テーブル22にて対応付けて記憶することにより、これら情報を対応付けて管理する。   When the registered image data 46 and the external identification information are stored in the printer 26 in association with each other by the function of the software tool, the printer driver execution unit 35 acquires the external identification information by means described later, and Internal identification information corresponding to the identification information is allocated, and the external identification information and the internal identification information are managed in association with each other. More specifically, these external identification information and internal identification information are stored in association with each other in the identification information management table 22 so that these information are managed in association with each other.

図2は、識別情報管理テーブル22の内容を模式的に示す図である。
図2に示すように、識別情報管理テーブル22は、内部識別情報フィールド22aと、外部識別情報フィールド22bと、を備えている。内部識別情報フィールド22aには内部識別情報が格納可能であり、外部識別情報フィールド22bには外部識別情報が格納可能であり、対応関係にある内部識別情報と外部識別情報とは同一のレコードの各フィールドに格納される。
本実施形態では、識別情報管理テーブル22には、後述する例外を除き、基本的に、プリンタードライバー21の機能によって登録されたか否か、ソフトウェアツールの機能によって登録されたか否かにかかわらず、プリンター26に登録されている登録画像データ46ごとにレコードが生成されている。
そして、プリンタードライバー21の機能によって識別情報47と共に登録された登録画像データ46に係るレコードでは、内部識別情報フィールド22aに当該識別情報47(この場合は、内部識別情報)が格納される一方、外部識別情報フィールド22bはNull値とされる。
一方、専用端末50のソフトウェアツールの機能によって識別情報47と共に登録された登録画像データ46に係るレコードでは、外部識別情報フィールド22bに当該識別情報47(この場合は、外部識別情報)が格納されると共に、内部識別情報フィールド22aには、当該識別情報47(外部識別情報)と対応する内部識別情報が格納される。
例えば、図2の識別情報管理テーブル22の1件目のレコードR1では、内部識別情報「NS1」と、外部識別情報「GS1」とが対応付けて記憶されているが、これは、プリンター26において、外部識別情報「GS1」と所定の登録画像データ46とが対応付けて記憶されていると共に、プリンタードライバー実行部35が、外部識別情報「GS1」と内部識別情報「NS1」とを対応付けて管理していることを示している。また、2件目のレコードR2では、内部識別情報フィールド22aに内部識別情報「NS2」が格納される一方、外部識別情報フィールド22bがNull値となっているが、これは、プリンター26において、内部識別情報「NS1」と所定の登録画像データ46とが対応付けて記憶されていることを示している。
FIG. 2 is a diagram schematically showing the contents of the identification information management table 22.
As shown in FIG. 2, the identification information management table 22 includes an internal identification information field 22a and an external identification information field 22b. Internal identification information can be stored in the internal identification information field 22a, external identification information can be stored in the external identification information field 22b, and the internal identification information and the external identification information in a corresponding relationship are stored in the same record. Stored in the field.
In this embodiment, with the exception of the exception described later, basically, the printer is not registered in the identification information management table 22 regardless of whether it is registered by the function of the printer driver 21 or whether it is registered by the function of the software tool. 26, a record is generated for each registered image data 46 registered in H.26.
In the record relating to the registered image data 46 registered together with the identification information 47 by the function of the printer driver 21, the identification information 47 (in this case, the internal identification information) is stored in the internal identification information field 22a. The identification information field 22b is a Null value.
On the other hand, in the record related to the registered image data 46 registered together with the identification information 47 by the function of the software tool of the dedicated terminal 50, the identification information 47 (in this case, the external identification information) is stored in the external identification information field 22b. At the same time, internal identification information corresponding to the identification information 47 (external identification information) is stored in the internal identification information field 22a.
For example, in the first record R1 of the identification information management table 22 in FIG. 2, the internal identification information “NS1” and the external identification information “GS1” are stored in association with each other. The external identification information “GS1” and the predetermined registered image data 46 are stored in association with each other, and the printer driver execution unit 35 associates the external identification information “GS1” with the internal identification information “NS1”. It shows that it is managing. In the second record R2, the internal identification information field “NS2” is stored in the internal identification information field 22a, while the external identification information field 22b has a null value. It shows that the identification information “NS1” and predetermined registered image data 46 are stored in association with each other.

本実施形態では、外部識別情報と、内部識別情報との対応付けは、以下の方法1、方法2の2つの方法により実行可能となっている。方法1、及び、方法2のいずれの方法で対応付けを行うかは、ユーザーが設定できる構成となっている。
<方法1>
本実施形態に係るホストコンピューター11は、プリンタードライバー21の機能によって外部識別情報と、内部識別情報とのそれぞれを入力可能な構成となっている。
より詳細には、本実施形態では、プリンタードライバー21に、外部識別情報と、内部識別情報とを入力するための入力欄が形成された専用のユーザーインターフェイスを表示パネルに表示する機能が実装されている。そして、専用端末50のソフトウェアツールの機能によってプリンター26に登録画像データ46及び識別情報47(外部識別情報)を登録したユーザーは、ホストコンピューター11において、上述したユーザーインターフェイスを開き、当該ユーザーインターフェイスに対して、ソフトウェアツールにより登録した外部識別情報と、当該外部識別情報に対応付けるべき内部識別情報とを入力する。その際、ユーザーは、入力する内部識別情報の値を、UPOSの規格に準拠した一意な値とする。
外部識別情報、及び、内部識別情報が入力されると、プリンタードライバー実行部35は、識別情報管理テーブル22において1件の新たなレコードを生成し、当該レコードの内部識別情報フィールド22aに、入力された内部識別情報を格納し、外部識別情報フィールド22bに、入力された外部識別情報を格納することにより、これら情報を対応付けて管理する。
なお、内部識別情報、及び、外部識別情報の入力方法は、上述した専用のユーザーインターフェイスを利用した方法に構成に限らず、たとえば、所定のファイルに格納されたデータに、内部識別情報、及び、外部識別情報を記述することにより入力ができるようにしてもよく、また、識別情報管理テーブル22を直接編集することにより、これら情報を入力できるようにしてもよい。
また、ユーザーは、外部識別情報、及び、内部識別情報を入力することにより、外部識別情報と内部識別情報との対応付けをした際、適宜のタイミングで、当該内部識別情報をアプリ管理用識別情報61として、また、ソフトウェアツールの機能によってプリンター26に登録した登録画像データ46をアプリ管理用画像データ60として、POSアプリケーション実行部34に参照可能な態様で、ホスト側記憶部32に記憶させる。当該ホスト側記憶部32への記憶を、プリンタードライバー実行部35の機能により、又は、プリンタードライバー実行部35及びPOSアプリケーション実行部34の機能により、自動で行うようにしてもよい。
In the present embodiment, the association between the external identification information and the internal identification information can be executed by the following two methods, Method 1 and Method 2. The user can set which of the method 1 and the method 2 is used for the association.
<Method 1>
The host computer 11 according to the present embodiment is configured to be able to input external identification information and internal identification information by the function of the printer driver 21.
More specifically, in the present embodiment, the printer driver 21 is provided with a function for displaying on the display panel a dedicated user interface in which an input field for inputting external identification information and internal identification information is formed. Yes. Then, the user who has registered the registered image data 46 and the identification information 47 (external identification information) in the printer 26 by the function of the software tool of the dedicated terminal 50 opens the above-described user interface on the host computer 11 and opens the user interface. The external identification information registered by the software tool and the internal identification information to be associated with the external identification information are input. At this time, the user sets the value of the internal identification information to be input as a unique value conforming to the UPOS standard.
When the external identification information and the internal identification information are input, the printer driver execution unit 35 generates one new record in the identification information management table 22 and inputs the new record to the internal identification information field 22a of the record. The internal identification information is stored, and the input external identification information is stored in the external identification information field 22b, thereby managing the information in association with each other.
In addition, the input method of internal identification information and external identification information is not limited to the method using the dedicated user interface described above, for example, internal identification information and data stored in a predetermined file, Input may be made by describing external identification information, or such information may be entered by directly editing the identification information management table 22.
In addition, when the user associates the external identification information with the internal identification information by inputting the external identification information and the internal identification information, the internal identification information is converted into the application management identification information at an appropriate timing. In addition, the registered image data 46 registered in the printer 26 by the function of the software tool is stored in the host-side storage unit 32 as application management image data 60 in a manner that can be referred to the POS application execution unit 34. The storage in the host side storage unit 32 may be automatically performed by the function of the printer driver execution unit 35 or by the functions of the printer driver execution unit 35 and the POS application execution unit 34.

<方法2>
また、本実施形態では、専用端末50のソフトウェアツールの機能によってプリンター26に登録画像データ46、及び、識別情報47(外部識別情報)が登録された場合、プリンタードライバー実行部35が、専用端末50とネットワークNを介して通信し、自動で、外部識別情報と、内部識別情報との対応付けを行うことが可能な構成となっている。
以下、方法2によって対応付けを行う際のプリンタードライバー実行部35の動作について説明する。
<Method 2>
In this embodiment, when the registered image data 46 and the identification information 47 (external identification information) are registered in the printer 26 by the function of the software tool of the dedicated terminal 50, the printer driver execution unit 35 displays the dedicated terminal 50. And via the network N, the external identification information and the internal identification information can be automatically associated with each other.
Hereinafter, the operation of the printer driver execution unit 35 when the association is performed by the method 2 will be described.

図3は、自動で上記対応付けを行う場合におけるプリンタードライバー実行部35の動作を示すフローチャートである。
ここで、図1に示すように、専用端末50は、ネットワークNに接続されており、ホストコンピューター11と専用端末50との間で、通信可能な状態であるものとする。
図3を参照し、まず、プリンタードライバー実行部35は、専用端末50のソフトウェアツールの機能によってプリンター26への登録画像データ46、及び、識別情報47(外部識別情報)の登録が行われたか否かを判別する(ステップSA1)。当該判別は、例えば、所定の周期で専用端末50にアクセスして問い合わせるようにして行うようにしてもよく、また、登録が行われた場合に専用端末50その旨の通知を出力するようにし、当該通知に基づいて行うようにしてもよい。
ソフトウェアツールの機能による登録が行われた場合(ステップSA1:YES)、プリンタードライバー実行部35は、専用端末50にアクセスし、登録された識別情報47(外部識別情報)を取得する(ステップSA2)。
次いで、プリンタードライバー実行部35は、取得した外部識別情報と対応付けて管理すべき内部識別情報を生成する(ステップSA3)。この内部識別情報の値は、UPOSの規格に準拠した一意な値とされる。
次いで、プリンタードライバー実行部35は、識別情報管理テーブル22において1件の新たなレコードを生成し、当該レコードの内部識別情報フィールド22aにステップSA3で生成した内部識別情報を格納し、外部識別情報フィールド22bに、ステップSA2で取得した外部識別情報を格納することにより、これら情報を対応付けて管理する(ステップSA4)。
この方法2によれば、ソフトウェアツールの機能によって登録画像データ46、及び、識別情報47(外部識別情報)が登録された場合は、ユーザー等の人為的な作業を介することなく、自動で、外部識別情報と、内部識別情報との対応付けが行われるため、ユーザーの利便性が向上し、また、不足無く対応付けを実行できる。
なお、プリンタードライバー実行部35は、上記の外部識別情報と、内部識別情報との対応付けを行った際、適宜のタイミングで、生成した内部識別情報をアプリ管理用識別情報61として、また、ソフトウェアツールの機能によってプリンター26により登録された登録画像データ46をアプリ管理用画像データ60として、POSアプリケーション実行部34に参照可能な態様で、ホスト側記憶部32に記憶させる。その際、プリンタードライバー実行部35は、プリンター26と通信し、登録画像データ46を取得する。当該ホスト側記憶部32への記憶を、ユーザーによる人為的な手段を介して行うようにしてもよい。
FIG. 3 is a flowchart showing the operation of the printer driver execution unit 35 when the association is automatically performed.
Here, as shown in FIG. 1, it is assumed that the dedicated terminal 50 is connected to the network N and is communicable between the host computer 11 and the dedicated terminal 50.
Referring to FIG. 3, first, the printer driver execution unit 35 determines whether registration image data 46 and identification information 47 (external identification information) are registered in the printer 26 by the function of the software tool of the dedicated terminal 50. Is determined (step SA1). For example, the determination may be performed by accessing the dedicated terminal 50 and inquiring at a predetermined cycle, and when registration is performed, a notification to that effect is output. You may make it perform based on the said notification.
When registration by the function of the software tool is performed (step SA1: YES), the printer driver execution unit 35 accesses the dedicated terminal 50 and acquires the registered identification information 47 (external identification information) (step SA2). .
Next, the printer driver execution unit 35 generates internal identification information to be managed in association with the acquired external identification information (step SA3). The value of the internal identification information is a unique value conforming to the UPOS standard.
Next, the printer driver execution unit 35 generates one new record in the identification information management table 22, stores the internal identification information generated in step SA3 in the internal identification information field 22a of the record, and the external identification information field. By storing the external identification information acquired in step SA2 in 22b, these pieces of information are associated and managed (step SA4).
According to this method 2, when the registered image data 46 and the identification information 47 (external identification information) are registered by the function of the software tool, the external image can be automatically and without going through human work such as a user. Since the identification information and the internal identification information are associated with each other, the convenience for the user is improved, and the association can be executed without shortage.
When the printer driver execution unit 35 associates the external identification information with the internal identification information, the printer driver execution unit 35 uses the generated internal identification information as the application management identification information 61 and software at an appropriate timing. The registered image data 46 registered by the printer 26 by the function of the tool is stored as application management image data 60 in the host-side storage unit 32 in a manner that can be referred to the POS application execution unit 34. At that time, the printer driver execution unit 35 communicates with the printer 26 and acquires registered image data 46. You may make it memorize | store in the said host side memory | storage part 32 via the artificial means by a user.

以上のように、専用端末50のソフトウェアツールの機能によってプリンター26に、登録画像データ46、及び、識別情報47が登録された場合は、適宜、識別情報管理テーブル22にレコードが生成されて、登録された登録画像データ46の管理(当該登録画像データ46がプリンター26に登録されていることの把握)がなされると共に、外部識別情報と内部識別情報との対応付けが行われる。
なお、プリンタードライバー21の機能によってプリンター26に、登録画像データ46、及び、識別情報47が登録された場合は、プリンタードライバー21の機能により、自動で、又は、プリンタードライバー21の機能を利用した人為的な手段により、識別情報管理テーブル22にレコードが生成されて、登録された登録画像データ46の管理(当該登録画像データ46がプリンター26に登録されていることの把握)がなされる。
また、プリンター26に登録された登録画像データ46が削除等された場合は、例えば、プリンタードライバー21の機能により自動で、識別情報管理テーブル22から、当該登録画像データ46に係るレコードが削除される。
As described above, when the registered image data 46 and the identification information 47 are registered in the printer 26 by the function of the software tool of the dedicated terminal 50, a record is appropriately generated in the identification information management table 22 and registered. The registered image data 46 is managed (knowing that the registered image data 46 is registered in the printer 26), and the external identification information and the internal identification information are associated with each other.
When the registered image data 46 and the identification information 47 are registered in the printer 26 by the function of the printer driver 21, the function of the printer driver 21 automatically or by using the function of the printer driver 21 Thus, a record is generated in the identification information management table 22 by means of general means, and the registered image data 46 is managed (understanding that the registered image data 46 is registered in the printer 26).
When the registered image data 46 registered in the printer 26 is deleted, for example, the record related to the registered image data 46 is automatically deleted from the identification information management table 22 by the function of the printer driver 21. .

次いで、登録画像データ46に基づいて、プリンター26に画像を記録させる場合の、記録システム10の動作、特に、プリンタードライバー実行部35の動作について詳細に説明する。以下の動作は、プリンタードライバー21の機能により行われる。   Next, the operation of the recording system 10, particularly the operation of the printer driver execution unit 35 when the printer 26 records an image based on the registered image data 46 will be described in detail. The following operation is performed by the function of the printer driver 21.

図4は、登録画像データ46に基づいて、プリンター26に、画像を記録させる際の、プリンタードライバー実行部35の動作を示すフローチャートである。
登録画像データ46に基づいて画像を記録させる場合、上述したように、まず、POSアプリケーション実行部34から、少なくとも、当該登録画像データ46に対応するアプリ管理用画像データ60、及び、当該アプリ管理用画像データ60に対応付けられたアプリ管理用識別情報61を含む画像情報が、プリンタードライバー実行部35に入力される(ステップSB1)。
当該画像情報が入力されると、プリンタードライバー実行部35は、識別情報管理テーブル22を参照し(ステップSB2)、当該テーブルを構成するレコードの中に、当該画像情報に含まれるアプリ管理用識別情報61と同一の値の内部識別情報が内部識別情報フィールド22aに格納されたレコードが存在するか否かを判別する(ステップSB3)。
当該レコードが存在する場合は、少なくとも、入力された画像情報に含まれるアプリ管理用画像データ60と同一性を有する登録画像データ46について、プリンタードライバー実行部35が管理している、換言すれば、当該登録画像データ46がプリンター26に登録されていると把握している、ということである。
そして、当該レコードが存在する場合(ステップSB3:YES)、プリンタードライバー実行部35は、当該レコードの外部識別情報フィールド22bを参照し、当該フィールドに、外部識別情報が格納されているか否かを判別する(ステップSB4)。外部識別情報が格納されていない場合は、Null値である。
外部識別情報が格納されておらず、外部識別情報フィールド22bがNull値である場合(ステップSB4:NO)、換言すれば、プリンター26において、画像情報に含まれるアプリ管理用識別情報61(内部識別情報)と同一の値を有する識別情報47と、所定の登録画像データ46とが対応付けて記憶されている場合、プリンタードライバー実行部35は、当該アプリ管理用識別情報61を含んで構成される制御コマンドを生成し、プリンター26に出力する(ステップSB5)。上述したように、当該制御コマンドが入力されたプリンター26のプリンター側制御部40は、アプリ管理用識別情報61と同一の値の識別情報47を特定し、特定した識別情報47と対応付けて記憶されている登録画像データ46を特定し、特定した登録画像データ46に基づいて感熱ロール紙への画像の記録を実行する。
FIG. 4 is a flowchart showing the operation of the printer driver execution unit 35 when the printer 26 records an image based on the registered image data 46.
When recording an image based on the registered image data 46, first, as described above, at least the application management image data 60 corresponding to the registered image data 46, and the application management image from the POS application execution unit 34. Image information including application management identification information 61 associated with the image data 60 is input to the printer driver execution unit 35 (step SB1).
When the image information is input, the printer driver execution unit 35 refers to the identification information management table 22 (step SB2), and the application management identification information included in the image information is included in the records constituting the table. It is determined whether or not there is a record in which internal identification information having the same value as 61 is stored in the internal identification information field 22a (step SB3).
If the record exists, at least the registered image data 46 that is identical to the application management image data 60 included in the input image information is managed by the printer driver execution unit 35. In other words, That is, it is understood that the registered image data 46 is registered in the printer 26.
If the record exists (step SB3: YES), the printer driver execution unit 35 refers to the external identification information field 22b of the record and determines whether or not the external identification information is stored in the field. (Step SB4). When the external identification information is not stored, it is a Null value.
If the external identification information is not stored and the external identification information field 22b is a Null value (step SB4: NO), in other words, the application management identification information 61 (internal identification) included in the image information in the printer 26. When the identification information 47 having the same value as the information) and the predetermined registered image data 46 are stored in association with each other, the printer driver execution unit 35 includes the application management identification information 61. A control command is generated and output to the printer 26 (step SB5). As described above, the printer-side control unit 40 of the printer 26 to which the control command is input specifies identification information 47 having the same value as the application management identification information 61 and stores the identification information 47 in association with the specified identification information 47. The registered image data 46 specified is specified, and the image is recorded on the thermal roll paper based on the specified registered image data 46.

一方、ステップSB4において、レコードの外部識別情報フィールド22bに外部識別情報が格納されている場合(ステップSB4:YES)、換言すれば、プリンター26において当該外部識別情報と所定の登録画像データ46とが対応付けて記憶されていると共に、識別情報管理テーブル22において、当該外部識別情報と、アプリ管理用識別情報61(内部識別情報)とが対応付けて管理されている場合、プリンタードライバー実行部35は、まず、画像情報に含まれるアプリ管理用識別情報61を、当該外部識別情報に変換する(ステップSB6)。
次いで、プリンタードライバー実行部35は、ステップSB6にて変換した外部識別情報を含んで構成される制御コマンドを生成し、プリンター26に出力する(ステップSB7)。
当該制御コマンドが入力されたプリンター26のプリンター側制御部40は、当該制御コマンドに含まれる外部識別情報と同一の値の識別情報47を特定し、特定した識別情報47と対応付けて記憶されている登録画像データ46を特定し、特定した登録画像データ46に基づいて感熱ロール紙への画像の記録を実行する。
このように、本実施形態では、プリンタードライバー21の機能以外の機能(=ソフトウェアツールの機能)により、プリンター26に、UPOSの規格に準拠していない値を有する外部識別情報と、登録画像データ46とが対応付けて登録された場合であっても、プリンタードライバー21の機能により、当該外部識別情報と、UPOSの規格に準拠した値を有する内部識別情報とが対応付けて管理される。そして、プリンター26にソフトウェアツールの機能によって登録された登録画像データ46に基づいて画像を記録させるべく、POSアプリケーション実行部34から内部識別情報を含む画像情報が入力された場合、プリンタードライバー実行部35は、当該内部識別情報を、適切な外部識別情報に変換して、当該外部識別情報を含む制御コマンドを生成して、プリンター26に出力する。これにより、プリンター26に、登録画像データ46に基づいた画像の記録を行わせることが可能となる。
On the other hand, when the external identification information is stored in the external identification information field 22b of the record in step SB4 (step SB4: YES), in other words, the external identification information and the predetermined registered image data 46 are stored in the printer 26. When the external identification information and the application management identification information 61 (internal identification information) are managed in association with each other in the identification information management table 22, the printer driver execution unit 35 stores the information in association with each other. First, the application management identification information 61 included in the image information is converted into the external identification information (step SB6).
Next, the printer driver execution unit 35 generates a control command including the external identification information converted in step SB6 and outputs the control command to the printer 26 (step SB7).
The printer-side control unit 40 of the printer 26 to which the control command is input specifies identification information 47 having the same value as the external identification information included in the control command, and is stored in association with the specified identification information 47. The registered image data 46 is specified, and the image is recorded on the thermal roll paper based on the specified registered image data 46.
As described above, in this embodiment, the function other than the function of the printer driver 21 (= the function of the software tool) causes the printer 26 to have the external identification information having a value not compliant with the UPOS standard and the registered image data 46. Are registered in association with each other, the function of the printer driver 21 manages the external identification information and the internal identification information having a value compliant with the UPOS standard in association with each other. When image information including internal identification information is input from the POS application execution unit 34 so that the printer 26 records an image based on the registered image data 46 registered by the function of the software tool, the printer driver execution unit 35. Converts the internal identification information into appropriate external identification information, generates a control command including the external identification information, and outputs the control command to the printer 26. As a result, the printer 26 can record an image based on the registered image data 46.

さて、ステップSB3において、識別情報管理テーブル22を構成するレコードの中に、当該画像情報に含まれるアプリ管理用識別情報61と同一の値の内部識別情報が内部識別情報フィールド22aに格納されたレコードが存在しないと判別した場合(ステップSB3:NO)は、プリンタードライバー実行部35は、処理手順をステップSB8へ移行する。
当該レコードが存在しない場合としては、以下のケースが考えられる。
<ケース1>
プリンター26に記録させようとしている画像の登録画像データ46が、プリンター26に登録されておらず、従って、識別情報管理テーブル22に、当該登録画像データ46に係るレコードが、生成されていないケースがある。例えば、プリンター26に登録されていた登録画像データ46が削除され、当該削除に伴って、識別情報管理テーブル22から対応するレコードが削除される一方、対応するアプリ管理用画像データ60及びアプリ管理用識別情報61が削除されていなかった場合や、過誤により、アプリ管理用画像データ60及びアプリ管理用識別情報61がホスト側記憶部32に記憶された場合等が、このケースに該当する。
<ケース2>
専用端末50のソフトウェアツールの機能によってプリンター26に登録画像データ46が登録されたものの、何らかの原因で、プリンタードライバー実行部35による外部識別情報と内部識別情報との対応付けが行われておらず、従って、識別情報管理テーブル22に、当該登録画像データ46に係るレコードが、生成されていないケースがある。
何らかの原因とは、例えば、上述した<方法1>によって外部識別情報と内部識別情報との対応付けを行うこととされている場合において、ユーザーによってこれら情報の入力が行われていないことや、また例えば、上述した<方法2>によって外部識別情報と内部識別情報との対応付けを行うこととされている場合において、通信エラー等の理由により、プリンタードライバー実行部35が、専用端末50から、外部識別情報を取得できず、これに起因して、識別情報管理テーブル22にレコードが生成されないこと、等がある。
Now, in step SB3, among the records constituting the identification information management table 22, a record in which internal identification information having the same value as the application management identification information 61 included in the image information is stored in the internal identification information field 22a. Is determined not to exist (step SB3: NO), the printer driver execution unit 35 proceeds to step SB8.
The following cases can be considered as cases where the record does not exist.
<Case 1>
There is a case in which the registered image data 46 of the image to be recorded by the printer 26 is not registered in the printer 26, and therefore a record related to the registered image data 46 is not generated in the identification information management table 22. is there. For example, the registered image data 46 registered in the printer 26 is deleted, and the corresponding record is deleted from the identification information management table 22 along with the deletion, while the corresponding application management image data 60 and application management data are deleted. This case corresponds to the case where the identification information 61 has not been deleted or the case where the application management image data 60 and the application management identification information 61 are stored in the host-side storage unit 32 due to an error.
<Case 2>
Although the registered image data 46 is registered in the printer 26 by the function of the software tool of the dedicated terminal 50, for some reason, the external identification information and the internal identification information are not associated with each other by the printer driver execution unit 35. Therefore, there is a case where the record related to the registered image data 46 is not generated in the identification information management table 22.
For some reason, for example, when the external identification information and the internal identification information are associated with each other by <Method 1> described above, the user has not input the information, For example, in the case where the external identification information and the internal identification information are associated with each other by <Method 2> described above, the printer driver execution unit 35 receives the external terminal from the dedicated terminal 50 due to a communication error or the like. For example, the identification information cannot be acquired, and a record is not generated in the identification information management table 22 due to this.

さて、ステップSB8において、プリンタードライバー実行部35は、プリンター26と通信し、POSアプリケーション実行部34から入力された画像情報に含まれるアプリ管理用画像データ60と、同一性を有する登録画像データ46が、プリンター26のプリンター側記憶部44に記憶されているか否かを判別する。アプリ管理用画像データ60と同一性を有する登録画像データ46がプリンター側記憶部44に記憶されている場合は、上述した<ケース2>の事象が発生しており、一方、記憶されていない場合は、上述した<ケース1>の事象が発生している。
ステップSB8の判別は、例えば、以下のようにして行われる。
例えば、プリンタードライバー実行部35は、プリンター26と通信し、プリンター側記憶部44に記憶されている複数の登録画像データ46を、順次、取得し、取得した登録画像データ46と、アプリ管理用画像データ60とを、順次、既存の画像データ比較用のアルゴリズムにより比較することにより、上記判別を行う。
このほか、所定のハッシュ関数で、アプリ管理用画像データ60のハッシュ値と、プリンター側記憶部44に記憶された登録画像データ46のそれぞれのハッシュ値を求め、これらハッシュ値の比較をとおして上記判別を行うようにしてもよく、また、アプリ管理用画像データ60をプリンター26に出力し、プリンター26のファームウェアの機能により、上記判別を行うようにしてもよい。その際、アプリ管理用画像データ60、及び/又は、登録画像データ46に対して、画像データの比較のために必要な画像処理が適切に施されるものとする。
In step SB8, the printer driver execution unit 35 communicates with the printer 26, and the registered image data 46 having the same identity as the application management image data 60 included in the image information input from the POS application execution unit 34 is obtained. It is determined whether or not it is stored in the printer-side storage unit 44 of the printer 26. When the registered image data 46 having the same identity as the application management image data 60 is stored in the printer-side storage unit 44, the event of <Case 2> described above has occurred, but is not stored The above-mentioned <Case 1> event has occurred.
The determination in step SB8 is performed as follows, for example.
For example, the printer driver execution unit 35 communicates with the printer 26, sequentially acquires a plurality of registered image data 46 stored in the printer-side storage unit 44, the acquired registered image data 46, and the application management image. The determination is performed by sequentially comparing the data 60 with an existing image data comparison algorithm.
In addition, a hash value of the application management image data 60 and each hash value of the registered image data 46 stored in the printer-side storage unit 44 are obtained by a predetermined hash function, and the above hash values are compared with each other. The determination may be performed, or the application management image data 60 may be output to the printer 26, and the above determination may be performed by the firmware function of the printer 26. At this time, it is assumed that image processing necessary for comparison of image data is appropriately performed on the application management image data 60 and / or the registered image data 46.

ステップSB8の判別の結果、アプリ管理用画像データ60と、同一性を有する登録画像データ46が、プリンター26のプリンター側記憶部44に記憶されていると判別した場合(ステップSB9:YES)、プリンタードライバー実行部35は、プリンター26において、当該同一性を有する登録画像データ46と対応付けて記憶されている識別情報47(この場合は、外部識別情報ということになる。)を取得する(ステップSB10)。
次いで、プリンタードライバー実行部35は、識別情報管理テーブル22に新たな1件のレコードを生成し、当該レコードの内部識別情報フィールド22aに、POSアプリケーション実行部34から入力された画像情報に含まれるアプリ管理用識別情報61(内部識別情報)を格納し、外部識別情報フィールド22bに、ステップSB10で取得した外部識別情報を格納する(ステップSB11)。
このステップSB11の処理により、専用端末50のソフトウェアツールの機能によってプリンター26に登録された登録画像データ46について、識別情報管理テーブル22における外部識別情報と、内部識別情報との対応付けが適切に行われる。これにより以後、POSアプリケーション実行部34から、当該内部識別情報を含む画像情報が入力された場合、プリンタードライバー実行部35は、識別情報管理テーブル22を参照した上で、当該内部識別情報を、当該外部識別情報に変換することが可能となると共に、変換した外部識別情報を利用して、プリンター26に、登録画像データ46に基づいた画像の記録を行わせることが可能となる。すなわち、本実施形態では、<ケース2>の場合、プリンタードライバー21の機能により、自動で、外部識別情報と内部識別情報との対応付けが実行されるため、当該対応付けを行うための作業を軽減することが可能である。
If it is determined in step SB8 that the application management image data 60 and the registered image data 46 having the same identity are stored in the printer-side storage unit 44 of the printer 26 (step SB9: YES), the printer The driver execution unit 35 acquires identification information 47 (in this case, external identification information) stored in association with the registered image data 46 having the same identity in the printer 26 (step SB10). ).
Next, the printer driver execution unit 35 generates a new record in the identification information management table 22, and the application included in the image information input from the POS application execution unit 34 in the internal identification information field 22a of the record. The management identification information 61 (internal identification information) is stored, and the external identification information acquired in step SB10 is stored in the external identification information field 22b (step SB11).
As a result of the processing in step SB11, for the registered image data 46 registered in the printer 26 by the function of the software tool of the dedicated terminal 50, the external identification information and the internal identification information in the identification information management table 22 are appropriately associated. Is called. Accordingly, when image information including the internal identification information is input from the POS application execution unit 34 thereafter, the printer driver execution unit 35 refers to the identification information management table 22 and then converts the internal identification information into the It is possible to convert to external identification information, and it is possible to cause the printer 26 to record an image based on the registered image data 46 using the converted external identification information. That is, in the present embodiment, in the case of <Case 2>, the function of the printer driver 21 automatically executes the association between the external identification information and the internal identification information. It can be reduced.

ステップSB11において、外部識別情報と内部識別情報との対応付けを行った後、プリンタードライバー実行部35は、当該外部識別情報を含んで構成される制御コマンドを生成し、プリンター26に出力する(ステップSB12)。プリンター26は、入力された制御コマンドに基づいて、登録画像データ46に基づく画像の記録を実行する。   In step SB11, after associating the external identification information with the internal identification information, the printer driver execution unit 35 generates a control command including the external identification information and outputs the control command to the printer 26 (step SB11). SB12). The printer 26 performs image recording based on the registered image data 46 based on the input control command.

一方、ステップSB8の判別の結果、アプリ管理用画像データ60と、同一性を有する登録画像データ46が、プリンター26のプリンター側記憶部44に記憶されていないと判別した場合(ステップSB9:NO)、プリンタードライバー実行部35は、POSアプリケーション実行部34から入力された画像情報に含まれているアプリ管理用画像データ60を含み、当該アプリ管理用画像データ60に基づいて画像を記録させる制御コマンドを生成し、プリンター26に出力する。プリンター26は、入力された制御コマンドに含まれるアプリ管理用画像データ60に基づいて画像を記録する。より詳細には、制御コマンドからアプリ管理用画像データ60を抽出し、当該アプリ管理用画像データ60に対して必要な画像処理を施した上で、画像バッファーに展開し、画像バッファーに展開したデータに基づいて、プリントエンジン43を制御して、画像を記録する。
このように、本実施形態では、登録画像データ46に基づく画像の記録をプリンター26に行わせる場合において、登録画像データ46が実際にはプリンター26に登録されていない場合であっても、記録しようとしていた画像を記録させることが可能である。
On the other hand, as a result of the determination in step SB8, when it is determined that the application management image data 60 and the registered image data 46 having the same identity are not stored in the printer-side storage unit 44 of the printer 26 (step SB9: NO) The printer driver execution unit 35 includes application management image data 60 included in the image information input from the POS application execution unit 34, and receives a control command for recording an image based on the application management image data 60. Generate and output to the printer 26. The printer 26 records an image based on the application management image data 60 included in the input control command. More specifically, the application management image data 60 is extracted from the control command, the necessary image processing is performed on the application management image data 60, and then the data is developed in the image buffer and the data developed in the image buffer. Based on this, the print engine 43 is controlled to record an image.
As described above, in this embodiment, when the printer 26 records an image based on the registered image data 46, the recorded image data 46 is recorded even if it is not actually registered in the printer 26. It is possible to record the image that was supposed to be.

以上説明したように、本実施形態に係るプリンタードライバー実行部35は、プリンタードライバー21の機能とは別の機能(専用端末50のソフトウェアツールの機能)により、プリンター26に、登録画像データ46と、識別情報47(外部識別情報)とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、POSアプリケーション実行部34及びプリンタードライバー実行部35との間で使用可能なUPOSの規格に準拠した内部識別情報を割り振り、識別情報管理テーブル22によって、当該内部識別情報と当該外部識別情報とを対応付けて管理する。そして、プリンタードライバー実行部35は、当該登録画像データ46に係る画像を記録させるべく、POSアプリケーション実行部34から当該内部識別情報と同一の値を有するアプリ管理用識別情報61が入力された場合、識別情報管理テーブル22を参照して、アプリ管理用識別情報61(内部識別情報)を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドをプリンター26に出力することにより、プリンター26に、当該外部識別情報と対応付けて記憶された登録画像データ46に基づいて画像を記録させる。
この構成によれば、専用端末50のソフトウェアツールの改変の困難かつ煩雑な作業を行うことなく、プリンタードライバー実行部35は、ソフトウェアツールの機能により割り振られたUPOSの規格に対応していない外部識別情報を、自身が使用可能な内部識別情報と対応付けて管理することができ、さらに、この内部識別情報と外部識別情報との対応付けを利用して、プリンター26に、外部識別情報と対応付けて記憶されている登録画像データ46に基づく画像の記録を行わせることができる。
As described above, the printer driver execution unit 35 according to the present embodiment uses the function different from the function of the printer driver 21 (the function of the software tool of the dedicated terminal 50) to the printer 26, the registered image data 46, When the identification information 47 (external identification information) is stored in association with each other, the external identification information is acquired and conforms to the UPOS standard that can be used between the POS application execution unit 34 and the printer driver execution unit 35. The internal identification information is allocated, and the identification information management table 22 manages the internal identification information and the external identification information in association with each other. When the printer driver execution unit 35 receives the application management identification information 61 having the same value as the internal identification information from the POS application execution unit 34 in order to record the image related to the registered image data 46, By referring to the identification information management table 22, the application management identification information 61 (internal identification information) is converted into the external identification information, and a control command including the external identification information is output to the printer 26. Then, an image is recorded based on the registered image data 46 stored in association with the external identification information.
According to this configuration, the printer driver execution unit 35 can perform external identification that does not correspond to the UPOS standard assigned by the function of the software tool without performing difficult and complicated work of modifying the software tool of the dedicated terminal 50. The information can be managed in association with the internal identification information that can be used by itself, and the printer 26 is associated with the external identification information by using the association between the internal identification information and the external identification information. Thus, it is possible to record an image based on the registered image data 46 stored.

また、本実施形態では、ホストコンピューター11に対して、外部識別情報、及び、当該外部識別情報に対応する内部識別情報の入力が可能に構成され、プリンタードライバー実行部35は、識別情報管理テーブル22において、入力された当該外部識別情報と、入力された当該内部識別情報と、を対応付けて管理する。そして、プリンター26において当該外部識別情報と対応付けて記憶された登録画像データ46に係る画像を記録させるべく、POSアプリケーション実行部34から当該内部識別情報を含む画像情報が入力された場合、プリンタードライバー実行部35は、識別情報管理テーブル22を参照し、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドをプリンター26に出力することにより、プリンター26に、当該外部識別情報と対応付けて記憶された登録画像データ46に基づいて画像を記録させる。
この構成によれば、外部識別情報と、内部識別情報とを入力するという簡易な手段により、これら情報の対応付けが可能となる。
In this embodiment, the host computer 11 is configured to be able to input external identification information and internal identification information corresponding to the external identification information. The printer driver execution unit 35 is configured to receive the identification information management table 22. The input external identification information and the input internal identification information are managed in association with each other. When image information including the internal identification information is input from the POS application execution unit 34 in order to record an image related to the registered image data 46 stored in association with the external identification information in the printer 26, the printer driver The execution unit 35 refers to the identification information management table 22, converts the internal identification information into the external identification information, and outputs a control command including the external identification information to the printer 26. An image is recorded based on the registered image data 46 stored in association with the identification information.
According to this configuration, it is possible to associate these pieces of information with a simple means of inputting the external identification information and the internal identification information.

また、本実施形態では、プリンタードライバー実行部35は、専用端末50のソフトウェアツールの機能によってプリンター26に登録画像データ46と、外部識別情報とが対応付けて記憶された場合、専用端末50と通信して、当該外部識別情報を取得すると共に、POSアプリケーション実行部34及びプリンタードライバー実行部35が使用可能なUPOSの規格に準拠した内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理する。
この構成によれば、専用端末50により登録画像データ46が登録された場合、当該登録画像データ46に係る内部識別情報と、外部識別情報との対応付けが、当該専用端末50との通信を介して、プリンタードライバー実行部35により自動で実行されるため、当該対応付けのための作業等が必要なくなると共に、専用端末50のソフトウェアツールの機能によって登録された登録画像データ46について、不足無く管理できる。
In this embodiment, the printer driver execution unit 35 communicates with the dedicated terminal 50 when the registered image data 46 and the external identification information are stored in the printer 26 in association with each other by the function of the software tool of the dedicated terminal 50. Then, the external identification information is acquired, and the internal identification information conforming to the UPOS standard that can be used by the POS application execution unit 34 and the printer driver execution unit 35 is allocated, and the internal identification information and the external identification information are allocated. Manage in association.
According to this configuration, when the registered image data 46 is registered by the dedicated terminal 50, the association between the internal identification information related to the registered image data 46 and the external identification information is made through communication with the dedicated terminal 50. Thus, since it is automatically executed by the printer driver execution unit 35, the work for the association is not necessary, and the registered image data 46 registered by the function of the software tool of the dedicated terminal 50 can be managed without shortage. .

また、本実施形態では、プリンタードライバー実行部35は、POSアプリケーション実行部34から入力された画像情報に含まれるアプリ管理用画像データ60と同一性を有する登録画像データ46が外部識別情報と対応付けてプリンター26に記憶されている場合であって、当該外部識別情報と、内部識別情報とを対応付けて管理していない場合は、当該外部識別情報を取得し、入力された画像情報に含まれるアプリ管理用識別情報61を、内部識別情報として、取得した当該外部識別情報と対応付けて管理する。
この構成によれば、専用端末50のソフトウェアツールの機能により、プリンター26に、登録画像データ46と、外部識別情報とが対応付けて記憶された場合であって、プリンタードライバー実行部35が、当該外部識別情報と内部識別情報とを対応付けて管理していない場合において、POSアプリケーション実行部34から、当該登録画像データ46に基づいてプリンター26に記録させるべく画像情報が入力された場合、プリンタードライバー実行部35は、当該画像情報に基づいて、自動で、当該外部識別情報と内部識別情報との対応付けを行うため、外部識別情報と内部識別情報との対応付けを行うための作業を軽減することが可能となる。
In the present embodiment, the printer driver execution unit 35 associates the registered image data 46 having the sameness with the application management image data 60 included in the image information input from the POS application execution unit 34 with the external identification information. If the external identification information and the internal identification information are not managed in association with each other, the external identification information is acquired and included in the input image information. The application management identification information 61 is managed as internal identification information in association with the acquired external identification information.
According to this configuration, the registered image data 46 and the external identification information are associated and stored in the printer 26 by the function of the software tool of the dedicated terminal 50, and the printer driver execution unit 35 When external identification information and internal identification information are not managed in association with each other, when image information is input from the POS application execution unit 34 to be recorded on the printer 26 based on the registered image data 46, the printer driver Since the execution unit 35 automatically associates the external identification information with the internal identification information based on the image information, the execution unit 35 reduces the work for associating the external identification information with the internal identification information. It becomes possible.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、制御装置たるホストコンピューター11に接続される記録装置は、サーマル式のプリンターであったが、記録装置の記録形式はこれに限らず、インクジェット式、ドットインパクト式等であってもよい。すなわち、登録画像データ46に基づいて画像を記録可能な記録装置であればよい。
また例えば、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
また例えば、ホスト側制御部28の機能を、ホストコンピューター11に外部接続される別の装置に持たせるようにしてもよい。
また、外部接続される記憶媒体に記憶させたプログラムを実行することにより、図3、4で示した各フローチャートの各ステップを実行するようにしてもよい。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
For example, in the above-described embodiment, the recording device connected to the host computer 11 serving as the control device is a thermal printer. However, the recording format of the recording device is not limited to this, and an inkjet type, a dot impact type, or the like. There may be. That is, any recording apparatus that can record an image based on the registered image data 46 may be used.
Further, for example, each functional block shown in FIG. 1 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration.
Further, for example, the function of the host-side control unit 28 may be provided in another device externally connected to the host computer 11.
Further, each step of each flowchart shown in FIGS. 3 and 4 may be executed by executing a program stored in an externally connected storage medium.

11…ホストコンピューター(制御装置)、20…POSアプリケーション(アプリケーション)、21…プリンタードライバー(制御プログラム)、26…プリンター(記録装置)、28…ホスト側制御部(制御部)、34…POSアプリケーション実行部(アプリケーション実行部)、35…プリンタードライバー実行部(制御プログラム実行部)、46…登録画像データ、47…識別情報、50…専用端末(外部機器)。   DESCRIPTION OF SYMBOLS 11 ... Host computer (control apparatus), 20 ... POS application (application), 21 ... Printer driver (control program), 26 ... Printer (recording apparatus), 28 ... Host side control part (control part), 34 ... Execution of POS application Part (application execution part), 35 ... printer driver execution part (control program execution part), 46 ... registered image data, 47 ... identification information, 50 ... dedicated terminal (external device).

Claims (6)

登録画像データと、前記登録画像データを識別するための識別情報とを対応付けて記憶し、記憶した前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能な制御装置であって、
制御プログラムを実行することにより、前記記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、
所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、
前記記録装置に、所定の前記登録画像データに基づいて画像を記録させる場合、
前記アプリケーション実行部は、当該所定の前記登録画像データに対応する識別情報を含む前記画像情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、前記記録装置に、出力することにより当該識別情報と対応付けて記憶された当該所定の前記登録画像データに基づいて画像を記録させ、
前記制御プログラム実行部は、
前記制御プロラムの機能とは別の機能により、前記記録装置に、1の前記登録画像データと、当該1の前記登録画像データを識別するための外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身との間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理し、
当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させることを特徴とする制御装置。
A control device capable of connecting registration image data and identification information for identifying the registration image data in association with each other, and connecting to a recording device capable of recording an image on a recording medium based on the stored registration image data Because
A control program executing unit for controlling the recording apparatus by outputting a control command to the recording apparatus by executing a control program;
An application execution unit that generates image information relating to an image to be recorded on the recording medium by executing a predetermined application, and outputs the image information to the control program execution unit;
When the recording device records an image based on the predetermined registered image data,
The application execution unit outputs the image information including identification information corresponding to the predetermined registered image data to the control program execution unit, and the control program execution unit is included in the input image information. Generating a control command including identification information, and causing the recording device to output an image based on the predetermined registered image data stored in association with the identification information;
The control program execution unit
When one of the registered image data and external identification information for identifying the one registered image data are stored in association with each other by the function different from the function of the control program, Obtaining the external identification information, allocating internal identification information that can be used between the application execution unit and itself, managing the internal identification information and the external identification information in association with each other,
When the image information including the internal identification information is input from the application execution unit to record the image related to the one registered image data, the internal identification information is converted into the external identification information, By outputting a control command including identification information to the recording device, the recording device is caused to record an image based on the one registered image data stored in association with the external identification information. Control device.
前記制御プロラムの機能とは別の機能により1の前記登録画像データと対応付けて記憶された外部識別情報、及び、当該外部識別情報に対応する内部識別情報の入力が可能に構成され、
前記制御プログラム実行部は、
入力された当該外部識別情報と、入力された当該内部識別情報と、を対応付けて管理し、
当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させることを特徴とする請求項1に記載の制御装置。
The external identification information stored in association with the one registered image data by a function different from the function of the control program, and the internal identification information corresponding to the external identification information can be input.
The control program execution unit
Managing the input external identification information and the input internal identification information in association with each other,
When the image information including the internal identification information is input from the application execution unit to record the image related to the one registered image data, the internal identification information is converted into the external identification information, By outputting a control command including identification information to the recording device, the recording device is caused to record an image based on the one registered image data stored in association with the external identification information. The control device according to claim 1.
前記別の機能は、前記記録装置に接続可能な外部機器にインストールされたソフトウェアツールの機能であり、
前記外部機器と通信可能に接続され、
前記制御プログラム実行部は、
前記外部機器の前記ソフトウェアツールの機能により、前記記録装置に、1の前記登録画像データと、前記外部識別情報とが対応付けて記憶された場合、前記外部機器と通信して、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身が使用可能な前記内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理することを特徴とする請求項1又は2に記載の制御装置。
The another function is a function of a software tool installed in an external device connectable to the recording device,
Communicatively connected to the external device,
The control program execution unit
When the registered image data and the external identification information are stored in the recording device in association with each other by the function of the software tool of the external device, the external identification information is communicated with the external device. The internal identification information that can be used by the application execution unit and itself is allocated, and the internal identification information and the external identification information are managed in association with each other. Control device.
前記記録装置に所定の前記登録画像データに基づいて記録させる場合、
前記アプリケーション実行部は、当該所定の前記登録画像データの識別情報と共に、当該所定の前記登録画像データに係る画像の画像データを含む前記画像情報を、前記制御プログラム実行部に出力し、
前記制御プログラム実行部は、
入力された前記画像情報に含まれる画像データと同一性を有する前記登録画像データが前記外部識別情報と対応付けて前記記録装置に記憶されている場合であって、当該外部識別情報と、前記内部識別情報とを対応付けて管理していない場合は、当該外部識別情報を取得し、入力された前記画像情報に含まれる識別情報を、前記内部識別情報として、取得した当該外部識別情報と対応付けて管理することを特徴とする請求項1ないし3のいずれかに記載の制御装置。
When recording on the recording device based on the predetermined registered image data,
The application execution unit outputs the image information including image data of an image related to the predetermined registered image data together with the identification information of the predetermined registered image data to the control program execution unit,
The control program execution unit
In the case where the registered image data having the same identity as the image data included in the input image information is stored in the recording device in association with the external identification information, the external identification information and the internal data When the identification information is not managed in association with each other, the external identification information is acquired, and the identification information included in the input image information is associated with the acquired external identification information as the internal identification information. 4. The control device according to claim 1, wherein the control device is managed.
登録画像データと、前記登録画像データを識別するための識別情報とを対応付けて記憶し、記憶した前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能に構成され、
制御プログラムを実行することにより、前記記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、
所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、
前記記録装置に、所定の前記登録画像データに基づいて画像を記録させる場合、
前記アプリケーション実行部は、当該所定の前記登録画像データに対応する識別情報を含む前記画像情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、前記記録装置に、出力することにより当該識別情報と対応付けて記憶された当該所定の前記登録画像データに基づいて画像を記録させる制御装置の制御方法であって、
前記制御プログラム実行部により、
前記制御プロラムの機能とは別の機能によって前記記録装置に、1の前記登録画像データと、当該1の前記登録画像データを識別するための外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身との間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理し、
当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させることを特徴とする制御装置の制御方法。
The registered image data and identification information for identifying the registered image data are stored in association with each other, and can be connected to a recording apparatus capable of recording an image on a recording medium based on the stored registered image data. ,
A control program executing unit for controlling the recording apparatus by outputting a control command to the recording apparatus by executing a control program;
An application execution unit that generates image information relating to an image to be recorded on the recording medium by executing a predetermined application, and outputs the image information to the control program execution unit;
When the recording device records an image based on the predetermined registered image data,
The application execution unit outputs the image information including identification information corresponding to the predetermined registered image data to the control program execution unit, and the control program execution unit is included in the input image information. A control method for a control device that generates a control command including identification information and outputs the control command to the recording device to record an image based on the predetermined registered image data stored in association with the identification information. And
By the control program execution unit,
When the recording device stores one registered image data and external identification information for identifying the one registered image data in association with each other by a function different from the function of the control program, Obtaining external identification information, allocating internal identification information that can be used between the application execution unit and itself, managing the internal identification information and the external identification information in association with each other,
When the image information including the internal identification information is input from the application execution unit to record the image related to the one registered image data, the internal identification information is converted into the external identification information, By outputting a control command including identification information to the recording device, the recording device is caused to record an image based on the one registered image data stored in association with the external identification information. Method for controlling the control device.
登録画像データと、前記登録画像データを識別するための識別情報とを対応付けて記憶し、記憶した前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能に構成され、
所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する情報である画像情報を生成し、出力するアプリケーション実行部を備える制御装置を制御する制御部により実行されるプログラムであって、
前記制御部を、
前記記録装置に制御コマンドを出力して前記記録装置を制御し、
前記記録装置に、所定の前記登録画像データに基づいて画像を記録させる場合、前記アプリケーション実行部から、当該所定の前記登録画像データに対応する識別情報を含む前記画像情報が入力されると共に、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、出力することにより、前記記録装置に、当該識別情報と対応付けて記憶された当該所定の前記登録画像データに基づいて画像を記録させ、
自身の機能とは別の機能により、前記記録装置に、1の前記登録画像データと、当該1の前記登録画像データを識別するための外部識別情報とが対応付けて記憶された場合、当該外部識別情報を取得すると共に、前記アプリケーション実行部及び自身との間で使用可能な内部識別情報を割り振り、当該内部識別情報と当該外部識別情報とを対応付けて管理し、当該1の前記登録画像データに係る画像を記録させるべく、前記アプリケーション実行部から当該内部識別情報を含む前記画像情報が入力された場合、当該内部識別情報を当該外部識別情報に変換し、当該外部識別情報を含む制御コマンドを前記記録装置に出力することにより、前記記録装置に、当該外部識別情報と対応付けて記憶された当該1の前記登録画像データに基づいて画像を記録させる制御プログラム実行部、として機能させることを特徴とするプログラム。
The registered image data and identification information for identifying the registered image data are stored in association with each other, and can be connected to a recording apparatus capable of recording an image on a recording medium based on the stored registered image data. ,
A program that is executed by a control unit that controls a control device including an application execution unit that generates and outputs image information that is information about an image to be recorded on the recording medium by executing a predetermined application,
The control unit
Controlling the recording device by outputting a control command to the recording device;
When the recording device records an image based on the predetermined registered image data, the application execution unit receives the image information including identification information corresponding to the predetermined registered image data, and inputs the image information. By generating and outputting a control command including identification information included in the image information, an image is displayed on the recording device based on the predetermined registered image data stored in association with the identification information. Let me record
When the recording device stores one registered image data and external identification information for identifying the one registered image data in association with each other by a function different from its own function, Acquiring identification information, allocating internal identification information usable between the application execution unit and itself, managing the internal identification information and the external identification information in association with each other, and registering the one registered image data When the image information including the internal identification information is input from the application execution unit to record the image according to the above, the internal identification information is converted into the external identification information, and a control command including the external identification information is transmitted. Based on the one registered image data stored in the recording device in association with the external identification information, the image is output to the recording device. Program for causing a function control program executing unit for recording, as.
JP2011246201A 2011-11-10 2011-11-10 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM Expired - Fee Related JP5838742B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011246201A JP5838742B2 (en) 2011-11-10 2011-11-10 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011246201A JP5838742B2 (en) 2011-11-10 2011-11-10 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Publications (3)

Publication Number Publication Date
JP2013105181A true JP2013105181A (en) 2013-05-30
JP2013105181A5 JP2013105181A5 (en) 2014-11-27
JP5838742B2 JP5838742B2 (en) 2016-01-06

Family

ID=48624702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011246201A Expired - Fee Related JP5838742B2 (en) 2011-11-10 2011-11-10 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5838742B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003223296A (en) * 2002-01-31 2003-08-08 Star Micronics Co Ltd Printer driver
JP2006301737A (en) * 2005-04-15 2006-11-02 Seiko Epson Corp Image registration apparatus, method and program, and image preview program
JP2006346946A (en) * 2005-06-14 2006-12-28 Seiko Epson Corp Printer, printing system, and method for controlling the printer
JP2011098440A (en) * 2009-11-03 2011-05-19 Seiko Epson Corp Recorder, control method for recorder, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003223296A (en) * 2002-01-31 2003-08-08 Star Micronics Co Ltd Printer driver
JP2006301737A (en) * 2005-04-15 2006-11-02 Seiko Epson Corp Image registration apparatus, method and program, and image preview program
JP2006346946A (en) * 2005-06-14 2006-12-28 Seiko Epson Corp Printer, printing system, and method for controlling the printer
JP2011098440A (en) * 2009-11-03 2011-05-19 Seiko Epson Corp Recorder, control method for recorder, and program

Also Published As

Publication number Publication date
JP5838742B2 (en) 2016-01-06

Similar Documents

Publication Publication Date Title
US9787858B2 (en) Network system and control method of a network system
US9156279B2 (en) Printing system, printing device, and printing method
US8755081B2 (en) Devices, methods, and media for using compatible commands to control recording devices
KR101429850B1 (en) Recording device and control method of a recording device
JP2014085863A (en) Control system and control method of control system
EP2796986A1 (en) Control device, control system, and control method of a control device
JP2014215865A (en) Control device, control system, control method of control device, and program
US10089046B2 (en) Receipt printing system, control method of a receipt printing system, and control device
JP6065761B2 (en) Control device and control method of control device
JP5842335B2 (en) Image recording apparatus, image recording apparatus control method, and program
JP5838742B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP6160289B2 (en) Control device and control method of control device
JP2016081106A (en) Information processor, accounting system and recording apparatus
EP3142086B1 (en) Print data processing device, print data processing method, program, and printing system
US20110052295A1 (en) Label printing device and label printing method
JP6186846B2 (en) CONTROL DEVICE, CONTROL SYSTEM, AND CONTROL DEVICE CONTROL METHOD
JP6730498B2 (en) Transaction data processing device and transaction data processing method
JP6889235B2 (en) Electronic receipt issuance method, information processing device and program
JP6410864B2 (en) Electronic receipt issuing method, POS terminal and program
JP6127638B2 (en) Printing apparatus, printing apparatus control method, and program
JP5857656B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2011028642A (en) Scanner device, commodity sales processing apparatus, and control program and control method for the processing apparatus
JP2021121961A (en) Electronic receipt issuing method, information processing device and program
JP6578894B2 (en) Network system and control device
JP5906606B2 (en) Control device, recording device, control method of control device, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141015

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141015

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150917

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151026

R150 Certificate of patent or registration of utility model

Ref document number: 5838742

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