Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5949006B2 - CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM - Google Patents
[go: Go Back, main page]

JP5949006B2 - CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM - Google Patents

CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM Download PDF

Info

Publication number
JP5949006B2
JP5949006B2 JP2012060181A JP2012060181A JP5949006B2 JP 5949006 B2 JP5949006 B2 JP 5949006B2 JP 2012060181 A JP2012060181 A JP 2012060181A JP 2012060181 A JP2012060181 A JP 2012060181A JP 5949006 B2 JP5949006 B2 JP 5949006B2
Authority
JP
Japan
Prior art keywords
image data
recording
compression
control
compressed
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.)
Expired - Fee Related
Application number
JP2012060181A
Other languages
Japanese (ja)
Other versions
JP2013196119A5 (en
JP2013196119A (en
Inventor
俊一 若狭
俊一 若狭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2012060181A priority Critical patent/JP5949006B2/en
Publication of JP2013196119A publication Critical patent/JP2013196119A/en
Publication of JP2013196119A5 publication Critical patent/JP2013196119A5/ja
Application granted granted Critical
Publication of JP5949006B2 publication Critical patent/JP5949006B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、記録装置に接続可能な制御装置、当該制御装置及び当該記録装置を備える制御システム、当該制御装置の制御方法、及び、当該制御装置を制御するためのプログラムに関する。   The present invention relates to a control device connectable to a recording apparatus, the control apparatus and a control system including the recording apparatus, a control method for the control apparatus, and a program for controlling the control apparatus.

従来、制御装置(ホスト装置)と、記録装置(プリンター)とが通信ケーブルによって接続され、制御装置と、記録装置とが通信ケーブルを介して通信し、協働して記録媒体に記録するシステムが知られている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, there is a system in which a control device (host device) and a recording device (printer) are connected via a communication cable, and the control device and the recording device communicate via a communication cable and cooperate to record on a recording medium. It is known (see, for example, Patent Document 1).

特開2006−123318号公報JP 2006-123318 A

ここで、上述したシステムのように、制御装置と記録装置とが通信し協働して記録媒体への記録を行うものでは、制御装置が記録装置に記録媒体への記録を指示してから、当該記録が完了するまでに要する時間をできるだけ短くしたいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、制御装置と記録装置とが通信し協働して記録媒体への記録を行う特性を踏まえて、記録を指示してから完了するまでに要する時間を短縮することを目的とする。
Here, as in the above-described system, in the case where the control device and the recording device communicate and cooperate to perform recording on the recording medium, after the control device instructs the recording device to record on the recording medium, There is a need to make the time required for completing the recording as short as possible.
The present invention has been made in view of the above-described circumstances, and from the point that recording is instructed to the completion based on the characteristic that the control device and the recording device communicate and cooperate to perform recording on a recording medium. The purpose is to shorten the time required for.

上記目的を達成するために、本発明は、記録装置が解凍可能な圧縮方法を前記記録装置に問い合わせ、当該解凍可能な圧縮方法によって画像データをデータ圧縮して圧縮画像データを生成記記録装置に当該圧縮画像データを解凍させて画像データを生成させ、当該画像データに基づいて記録媒体に画像を記録させる制御コマンドを生成し、前記記録装置に送信する記録制御部を備えることを特徴とする。
ここで、上記構成では、記録媒体への画像の記録に際し、制御装置から記録装置に制御コマンドが送信されるが、この制御コマンドのサイズを小さくすることができれば、通信に要する時間を短縮化でき、記録に要する時間の短縮化を実現できる。そして、画像の記録を指示する制御コマンドにおいて、制御コマンドに含まれる画像データは、比較的サイズの大きなデータである。
以上を踏まえ、上記構成によれば、制御装置の記録制御部は、複数の圧縮方法によって、画像データをデータ圧縮可能であり、制御コマンドを送信する前に、記録装置が対応している圧縮方法を問い合わせる。ここで、記録装置側では、ファームウェア等の制御プログラムのバージョンの状態や、機能追加、削除の状況によって、解凍可能な圧縮方法が異なっている場合があるが、記録制御部は、記録装置が対応している圧縮方法を、事前に問い合わせをすることにより、記録装置が対応している圧縮方法によって画像データを圧縮可能である。また、記録制御部は、異なる複数の圧縮方法でデータ圧縮が可能であるため、記録装置が対応している圧縮方法によってデータ圧縮ができることの可能性を高めることができる。さらに、上記構成によれば、記録制御部は、制御コマンドに含まれるデータのうち、サイズの大きい画像データを、記録装置が確実に対応している圧縮方法で圧縮する。このため、効果的に制御コマンドのサイズを小さくすることができ、効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
To achieve the above object, the present invention queries the recorder compression method to be unpacked in the recording apparatus, the images data and the data to generate the compressed image data based on the relevant thawing possible compression method before recording system, thawed the compressed image data to generate image data, generates a control command to record the images on record medium on the basis of those said image data, and transmits to the recording device records A control unit is provided.
Here, in the above configuration, when the image is recorded on the recording medium, the control command is transmitted from the control device to the recording device. If the size of the control command can be reduced, the time required for communication can be shortened. The time required for recording can be shortened. In the control command for instructing image recording, the image data included in the control command is relatively large data.
Based on the above, according to the above configuration, the recording control unit of the control device can compress the image data by a plurality of compression methods, and the compression method supported by the recording device before transmitting the control command. Inquire. Here, on the recording device side, the compression method that can be decompressed may differ depending on the status of the version of the control program such as firmware, and the function addition / deletion status. By inquiring about the compression method in advance, the image data can be compressed by a compression method supported by the recording apparatus. In addition, since the recording control unit can perform data compression using a plurality of different compression methods, it is possible to increase the possibility that the data can be compressed by a compression method supported by the recording apparatus. Further, according to the above configuration, the recording control unit compresses the image data having a large size among the data included in the control command by a compression method that the recording apparatus can reliably handle. For this reason, the size of the control command can be effectively reduced, and the time required for communication can be effectively reduced and the time required for recording can be reduced accordingly.

また、本発明は、前記記録制御部は、記記録装置が解凍可能な圧縮方法が複数ある場合は、それぞれの圧縮方法で、画像データを圧縮して圧縮画像データを生成し、それぞれの圧縮画像データのサイズを比較して最もサイズの小さな圧縮画像データを特定し、特定した圧縮画像データを含む前記制御コマンドを生成して前記記録装置に送信することを特徴とする。
ここで、異なる複数の圧縮方法で画像データを圧縮した場合に、どの圧縮方法でデータ圧縮したときが最も画像データのサイズが小さくなるかは、画像データの態様によって異なる。そして、上記構成によれば、記録制御部は、記録装置が対応している圧縮方法が複数ある場合は、各圧縮方法で実際に画像データを圧縮して圧縮画像データを生成し、最もサイズが小さな圧縮画像データを制御コマンドに含める。これにより、制御コマンドのサイズを可能な限り小さくすることができ、より効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
Further, the present invention, the recording control unit, when the pre-recording system is more capable compression method decompression, for each compression method to generate compressed image data by compressing the images data, respectively The compressed image data having the smallest size is identified by comparing the sizes of the compressed image data, and the control command including the identified compressed image data is generated and transmitted to the recording apparatus.
Here, when image data is compressed by a plurality of different compression methods, the compression method used to reduce the size of the image data is different depending on the mode of the image data. According to the above configuration, when there are a plurality of compression methods supported by the recording device, the recording control unit actually compresses the image data by each compression method to generate compressed image data, and the size is the largest. Include small compressed image data in the control command. Thereby, the size of the control command can be reduced as much as possible, and the time required for communication can be shortened more effectively and the time required for recording can be shortened accordingly.

また、本発明は、前記記録制御部は、前記記録装置との間で行われる通信の方式に応じて、前記制御コマンドに含める画像データの圧縮を行うか否かを変更することを特徴とする。
ここで、通信の方式とは、シリアル通信かパラレル通信かといったビットを送るときの方式や、有線か無線かといった送受信の物理的な方式、イーサネット(登録商標)かUSBかといったより具体的なプロトコルに係る方式等、通信速度に影響を与えるような通信の方式を全て含む概念である。周知のとおり、通信の方式によって、通信速度は異なる。
そして、上記構成によれば、記録制御部は、記録装置との間で行われる通信の方式に応じて、前記制御コマンドに含める画像データの圧縮を行うか否かを変更するため、通信速度が十分に速く、画像データのデータ圧縮を行うよりも、当該圧縮を行わない方が、記録に要する時間を短縮できるといった場合に、当該圧縮を行わないようにすることが可能となる。
Further, the present invention is characterized in that the recording control unit changes whether or not to compress the image data included in the control command according to a communication method performed with the recording apparatus. .
Here, the communication method is a method for sending bits such as serial communication or parallel communication, a physical method for transmission / reception such as wired or wireless, and a more specific protocol such as Ethernet (registered trademark) or USB. This is a concept including all communication methods that affect the communication speed, such as the method according to the above. As is well known, the communication speed varies depending on the communication method.
According to the above configuration, the recording control unit changes whether or not to compress the image data included in the control command according to a communication method performed with the recording apparatus. It is possible to prevent the compression of the image data when the time required for recording can be shortened without performing the compression rather than the data compression of the image data sufficiently fast.

また、本発明は、定のアプリケーションの機能により、画像の情報を出力するアプリケーション実行部と、プリンタードライバーの機能により、前記アプリケーション実行部が出力した画像の情報に基づいて、前記制御コマンドを生成して、前記記録装置に送信するプリンタードライバー実行部と、を備え、前記記録制御部の機能は、前記プリンタードライバーに実装されることを特徴とする。
ここで、制御装置上のアプリケーションは、様々な種類のものが存在し、かつ、ユーザーが自身のニーズに応じて細かい設定をしている場合も多いため、できれば、アプリケーションに対するプログラム的な改変、設定の改変等は行いたくないとするニーズがある。そして、上記構成によれば、記録制御部の機能は、プリンタードライバーに実装されているため、アプリケーション実行部からプリンタードライバー実行部へと出力される画像の情報は、記録制御部の各機能を実装する前後で同一であり、アプリケーションに対する改変が必要ない。
The present invention, by the function of Jo Tokoro application, the application execution unit for outputting information of the images, the functions of the printer driver, based on the information of the images to the application execution unit has output the control generates a command, and a printer driver execution unit to be transmitted to the recording apparatus, the recording control unit functions, characterized in that it is mounted on the printer driver.
Here, there are various types of applications on the control device, and there are many cases where the user makes fine settings according to their own needs. There is a need not to make any modifications. According to the above configuration, since the function of the recording control unit is implemented in the printer driver, the image information output from the application execution unit to the printer driver execution unit implements each function of the recording control unit. It is the same before and after, and no modification to the application is required.

また、上記目的を達成するために、本発明は、記録媒体に画像を記録する記録装置と、前記記録装置に接続可能な制御装置とを備える制御システムであって、前記制御装置は、前記記録装置が解凍可能な圧縮方法を前記記録装置に問い合わせ、当該解凍可能な圧縮方法によって画像データをデータ圧縮して圧縮画像データを生成記記録装置に当該圧縮画像データを解凍させて画像データを生成させ、当該画像データに基づいて記録媒体に画像を記録させる制御コマンドを生成し、前記記録装置に送信する記録制御部を備え、前記記録装置は、前記問い合わせに応じて前記解凍可能な圧縮方法を応答し、受信した前記制御コマンドに含まれる圧縮画像データを解凍して画像データを生成し、当該画像データに基づいて前記記録媒体に画像を印刷させるプリンター側制御部を備えることを特徴とする。
この構成によれば、制御装置の記録制御部は、複数の圧縮方法によって、画像データをデータ圧縮可能であり、制御コマンドを送信する前に、記録装置が対応している圧縮方法を問い合わせる。ここで、記録装置側では、ファームウェア等の制御プログラムのバージョンの状態や、機能追加、削除の状況によって、解凍可能な圧縮方法が異なっている場合があるが、記録制御部は、記録装置が対応している圧縮方法を、事前に問い合わせをすることにより、記録装置が対応している圧縮方法によって画像データを圧縮可能である。また、記録制御部は、異なる複数の圧縮方法でデータ圧縮が可能であるため、記録装置が対応している圧縮方法によってデータ圧縮ができることの可能性を高めることができる。さらに、上記構成によれば、記録制御部は、制御コマンドに含まれるデータのうち、サイズの大きい画像データを、記録装置が確実に対応している圧縮方法で圧縮する。このため、効果的に制御コマンドのサイズを小さくすることができ、効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
In order to achieve the above object, the present invention provides a control system comprising a recording device that records an image on a recording medium, and a control device connectable to the recording device, wherein the control device includes the recording device. query device is thawed possible compression method to the recording device, to generate a compressed image data to image picture data to data compression by the said decompression possible compression method, before recording system, decompress the compressed image data by to generate image data, generates a control command to record the images on record medium on the basis of those said image data, a recording control unit to be transmitted to the recording apparatus, the recording apparatus, the query In response to the compression method that can be decompressed, the compressed image data included in the received control command is decompressed to generate image data, and an image is recorded on the recording medium based on the image data. Characterized in that it comprises a printer-side controller to print the.
According to this configuration, the recording control unit of the control apparatus can compress the image data by a plurality of compression methods, and inquires about the compression method supported by the recording apparatus before transmitting the control command. Here, on the recording device side, the compression method that can be decompressed may differ depending on the status of the version of the control program such as firmware, and the function addition / deletion status. By inquiring about the compression method in advance, the image data can be compressed by a compression method supported by the recording apparatus. In addition, since the recording control unit can perform data compression using a plurality of different compression methods, it is possible to increase the possibility that the data can be compressed by a compression method supported by the recording apparatus. Further, according to the above configuration, the recording control unit compresses the image data having a large size among the data included in the control command by a compression method that the recording apparatus can reliably handle. For this reason, the size of the control command can be effectively reduced, and the time required for communication can be effectively reduced and the time required for recording can be reduced accordingly.

また、上記目的を達成するために、本発明は、御装置の制御方法であって、記録装置が解凍可能な圧縮方法を前記記録装置に問い合わせ、当該解凍可能な圧縮方法によって画像データをデータ圧縮して圧縮画像データを生成記記録装置に当該圧縮画像データを解凍させて画像データを生成させ、当該画像データに基づいて記録媒体に画像を記録させる制御コマンドを生成し、前記記録装置に送信することを特徴とする。
この制御方法によれば、制御装置の記録制御部は、複数の圧縮方法によって、画像データをデータ圧縮可能であり、制御コマンドを送信する前に、記録装置が対応している圧縮方法を問い合わせる。ここで、記録装置側では、ファームウェア等の制御プログラムのバージョンの状態や、機能追加、削除の状況によって、解凍可能な圧縮方法が異なっている場合があるが、記録制御部は、記録装置が対応している圧縮方法を、事前に問い合わせをすることにより、記録装置が対応している圧縮方法によって画像データを圧縮可能である。また、記録制御部は、異なる複数の圧縮方法でデータ圧縮が可能であるため、記録装置が対応している圧縮方法によってデータ圧縮ができることの可能性を高めることができる。さらに、上記構成によれば、記録制御部は、制御コマンドに含まれるデータのうち、サイズの大きい画像データを、記録装置が確実に対応している圧縮方法で圧縮する。このため、効果的に制御コマンドのサイズを小さくすることができ、効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
In order to achieve the above object, the present invention provides control method of controlling an control device, query the recording apparatus can decompress a compression method to the recording apparatus, images depending on the thawing possible compression method the data is data to generate the compressed image data, before recording system, thawed the compressed image data to generate image data, control to record images on record medium on the basis of those said image data A command is generated and transmitted to the recording apparatus.
According to this control method, the recording control unit of the control apparatus can compress the image data by a plurality of compression methods, and inquires about the compression method supported by the recording apparatus before transmitting the control command. Here, on the recording device side, the compression method that can be decompressed may differ depending on the status of the version of the control program such as firmware, and the function addition / deletion status. By inquiring about the compression method in advance, the image data can be compressed by a compression method supported by the recording apparatus. In addition, since the recording control unit can perform data compression using a plurality of different compression methods, it is possible to increase the possibility that the data can be compressed by a compression method supported by the recording apparatus. Further, according to the above configuration, the recording control unit compresses the image data having a large size among the data included in the control command by a compression method that the recording apparatus can reliably handle. For this reason, the size of the control command can be effectively reduced, and the time required for communication can be effectively reduced and the time required for recording can be reduced accordingly.

また、上記目的を達成するために、本発明は、記録媒体に記録する記録装置に接続可能な制御装置を制御する制御部により実行されるプログラムであって、前記制御部を、記録装置が解凍可能な圧縮方法を前記記録装置に問い合わせ、当該解凍可能な圧縮方法によって当該画像の画像データをデータ圧縮して圧縮画像データを生成、前記記録装置に当該圧縮画像データを解凍させて画像データを生成させ、当該画像データに基づいて記録媒体に画像を記録させる制御コマンドを生成し、前記記録装置に送信する記録制御部として機能させることを特徴とする。
このプログラムを実行すれば、制御装置の記録制御部は、複数の圧縮方法によって、画像データをデータ圧縮可能であり、制御コマンドを送信する前に、記録装置が対応している圧縮方法を問い合わせる。ここで、記録装置側では、ファームウェア等の制御プログラムのバージョンの状態や、機能追加、削除の状況によって、解凍可能な圧縮方法が異なっている場合があるが、記録制御部は、記録装置が対応している圧縮方法を、事前に問い合わせをすることにより、記録装置が対応している圧縮方法によって画像データを圧縮可能である。また、記録制御部は、異なる複数の圧縮方法でデータ圧縮が可能であるため、記録装置が対応している圧縮方法によってデータ圧縮ができることの可能性を高めることができる。さらに、上記構成によれば、記録制御部は、制御コマンドに含まれるデータのうち、サイズの大きい画像データを、記録装置が確実に対応している圧縮方法で圧縮する。このため、効果的に制御コマンドのサイズを小さくすることができ、効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
In order to achieve the above object, the present invention provides a program executed by a control unit that controls a control device connectable to a recording device that records on a recording medium, wherein the recording device decompresses the control unit. The recording device is inquired about a possible compression method, the compressed image data is generated by compressing the image data of the image by the decompressable compression method, and the compressed image data is decompressed by the recording device. to generate, based on those said image data to generate a control command to record the images on record medium, characterized in that to function as a recording control unit that transmits to the recording device.
If this program is executed, the recording control unit of the control apparatus can compress the image data by a plurality of compression methods, and inquires about the compression method supported by the recording apparatus before transmitting the control command. Here, on the recording device side, the compression method that can be decompressed may differ depending on the status of the version of the control program such as firmware, and the function addition / deletion status. By inquiring about the compression method in advance, the image data can be compressed by a compression method supported by the recording apparatus. In addition, since the recording control unit can perform data compression using a plurality of different compression methods, it is possible to increase the possibility that the data can be compressed by a compression method supported by the recording apparatus. Further, according to the above configuration, the recording control unit compresses the image data having a large size among the data included in the control command by a compression method that the recording apparatus can reliably handle. For this reason, the size of the control command can be effectively reduced, and the time required for communication can be effectively reduced and the time required for recording can be reduced accordingly.

本発明によれば、制御装置と記録装置とが通信し協働して記録媒体への記録を行う特性を踏まえて、記録を開始してから完了するまでに要する時間を短縮する。   According to the present invention, based on the characteristic that the control device and the recording device communicate and cooperate to perform recording on the recording medium, the time required from the start to the completion of the recording is shortened.

本実施形態に係る制御システムの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the control system which concerns on this embodiment. ホストコンピューター及びプリンターの動作を示すフローチャート。The flowchart which shows operation | movement of a host computer and a printer.

以下、図面を参照して本発明の実施形態について説明する。
図1は、制御システム1の機能的構成を示すブロック図である。
制御システム1は、スーパーマーケットやコンビニエンスストア等の店舗に適用され、店舗に来店した顧客の代金の支払いに応じてレシートを発行するシステムであり、図1に示すように、ホストコンピューター10(制御装置)と、プリンター11(記録装置)とを備えている。
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 control system 1.
The control system 1 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 10 (control device) And a printer 11 (recording device).

ホストコンピューター10は、制御部15と、表示部16と、入力部17と、インターフェイス部(I/F)18と、記憶部19と、を備えている。
制御部15は、ホストコンピューター10の各部を中枢的に制御するものであり、CPUや、ROM、RAM、その他の周辺回路等を備えている。図1に示すように、制御部15は、アプリケーション実行部20と、プリンタードライバー実行部21と、を備えているが、これらについては後述する。
表示部16は、液晶表示パネル等の表示パネルを備え、制御部15の制御の下、表示パネルに各種情報を表示する。入力部17は、キーボードや、マウス等の各種入力デバイスに接続され、入力デバイスの出力信号を制御部15に出力する。インターフェイス部18は、制御部15の制御の下、プリンター11との間で通信規格に準拠した通信を行う。記憶部19は、ハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。
The host computer 10 includes a control unit 15, a display unit 16, an input unit 17, an interface unit (I / F) 18, and a storage unit 19.
The control unit 15 centrally controls each unit of the host computer 10 and includes a CPU, a ROM, a RAM, and other peripheral circuits. As shown in FIG. 1, the control unit 15 includes an application execution unit 20 and a printer driver execution unit 21, which will be described later.
The display unit 16 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 control unit 15. The input unit 17 is connected to various input devices such as a keyboard and a mouse, and outputs an output signal of the input device to the control unit 15. The interface unit 18 performs communication based on the communication standard with the printer 11 under the control of the control unit 15. The storage unit 19 includes a hard disk, a nonvolatile memory such as an EEPROM, and stores various data in a rewritable manner.

一方、プリンター11は、ロール状に巻かれた感熱ロール紙(記録媒体)を、搬送機構24より搬送し、この感熱ロール紙の記録面に、発熱素子を備えたラインサーマルヘッド25によって熱を与えることにより画像を記録した上で、カッターユニット26により所定の位置で感熱ロール紙を切断することにより、レシートを発行するサーマルヘッド式の記録装置である。
図1に示すように、プリンター11は、プリンター側制御部28と、プリンター側表示部29と、プリンター側入力部30と、メカ機構31と、プリンター側記憶部32と、インターフェイス部(I/F)33と、を備えている。
プリンター側制御部28は、プリンター11を中枢的に制御するものであり、CPUやROM、RAMその他の周辺回路等を備えている。プリンター側表示部29は、プリンター11の動作状態等の各種情報を表示する表示パネルや、LED等を備え、プリンター側制御部28の制御の下、各種情報を表示する。プリンター側入力部30は、プリンター11に設けられた操作スイッチに接続され、操作スイッチに対する操作を検出し、プリンター側制御部28に出力する。
メカ機構31は、少なくとも、搬送機構24、ラインサーマルヘッド25、及び、カッターユニット26を備えている。プリンター側制御部28は、図示せぬ用紙端センサーや用紙残量センサー等の各種センサーの検出値を監視しながら、適宜、搬送機構24により感熱ロール紙を搬送しつつ、ラインサーマルヘッド25を制御して感熱ロール紙に画像を記録し、適宜のタイミングでカッターユニット26が備えるカッターを駆動するためのカッター駆動モーターを動作させて、画像を記録した感熱ロール紙を切断することによりレシートを発行する。搬送機構24は、ラインサーマルヘッド25に対向して設けられたプラテンローラーや、他のローラー、これらローラーを駆動するためのローラー駆動モーター、その他の感熱ロール紙を搬送するための機構、装置を備えている。
インターフェイス部33は、プリンター側制御部28の制御の下、プリンター11との間で通信規格に準拠した通信を行う。プリンター側記憶部32は、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。
On the other hand, the printer 11 transports the thermal roll paper (recording medium) wound in a roll shape from the transport mechanism 24 and applies heat to the recording surface of the thermal roll paper by the line thermal head 25 provided with a heating element. This is a thermal head type recording apparatus that issues a receipt by recording an image and then cutting the thermal roll paper at a predetermined position by the cutter unit 26.
As shown in FIG. 1, the printer 11 includes a printer-side control unit 28, a printer-side display unit 29, a printer-side input unit 30, a mechanical mechanism 31, a printer-side storage unit 32, and an interface unit (I / F). 33).
The printer-side control unit 28 centrally controls the printer 11 and includes a CPU, a ROM, a RAM, and other peripheral circuits. The printer-side display unit 29 includes a display panel that displays various types of information such as the operating state of the printer 11, LEDs, and the like, and displays various types of information under the control of the printer-side control unit 28. The printer-side input unit 30 is connected to an operation switch provided in the printer 11, detects an operation on the operation switch, and outputs it to the printer-side control unit 28.
The mechanical mechanism 31 includes at least a transport mechanism 24, a line thermal head 25, and a cutter unit 26. The printer-side control unit 28 controls the line thermal head 25 while appropriately transporting the thermal roll paper by the transport mechanism 24 while monitoring the detection values of various sensors such as a paper edge sensor and a paper remaining amount sensor (not shown). Then, an image is recorded on the thermal roll paper, and a receipt is issued by operating the cutter drive motor for driving the cutter included in the cutter unit 26 at an appropriate timing to cut the thermal roll paper on which the image is recorded. . The transport mechanism 24 includes a platen roller provided opposite to the line thermal head 25, other rollers, a roller drive motor for driving these rollers, and other mechanisms and devices for transporting other thermal roll paper. ing.
The interface unit 33 performs communication based on the communication standard with the printer 11 under the control of the printer-side control unit 28. The printer-side storage unit 32 includes a nonvolatile memory such as an EEPROM and stores various data in a rewritable manner.

次に、アプリケーション実行部20、及び、プリンタードライバー実行部21の説明を通して、制御システム1がレシートを発行するときの動作について説明する。
レシートの発行に際し、まず、アプリケーション実行部20は、ホストコンピューター10に予めインストールされたアプリケーションを実行することにより、感熱ロール紙に記録すべき画像の情報を含む画像情報データを生成し、プリンタードライバー実行部21に出力する。画像情報データには、画像を示す情報のほか、感熱ロール紙において画像を記録すべき位置に関する情報や、画像に施すべき装飾に関する情報等、画像を記録するために必要な情報が不足なく含まれている。プリンタードライバー実行部21は、ホストコンピューター10に予めインストールされたプリンタードライバーを実行することにより、アプリケーション実行部20から入力された画像情報データに基づいて、プリンター11のコマンド仕様に対応した制御コマンドを生成し、プリンター11に送信する。制御コマンドとは、プリンター11にレシートの発行に係る各種動作を行わせるためのコマンド群のことであり、画像の記録を指示するコマンドや、感熱ロール紙を搬送することを指示するコマンド、感熱ロール紙を切断することを指示するコマンド等の各種コマンドが含まれている。
ホストコンピューター10からプリンター11に送信された制御コマンドは、順次、受信バッファー(不図示)に格納される。プリンター11のプリンター側制御部28は、受信バッファーに格納された制御コマンドを、順次、読み出して実行することにより、メカ機構31の各種機構を制御して、レシートの発行に係る各種動作を実行する。
Next, the operation when the control system 1 issues a receipt will be described through the description of the application execution unit 20 and the printer driver execution unit 21.
When issuing a receipt, first, the application execution unit 20 executes an application pre-installed in the host computer 10 to generate image information data including information on an image to be recorded on the thermal roll paper, and execute the printer driver. To the unit 21. In addition to information indicating an image, the image information data includes information necessary for recording an image, such as information on a position where an image should be recorded on a thermal roll paper, information on decoration to be applied to the image, and the like. ing. The printer driver execution unit 21 generates a control command corresponding to the command specification of the printer 11 based on the image information data input from the application execution unit 20 by executing a printer driver installed in the host computer 10 in advance. To the printer 11. The control command is a group of commands for causing the printer 11 to perform various operations related to the receipt issuance. The command for instructing the image recording, the command for instructing the conveyance of the thermal roll paper, and the thermal roll. Various commands such as a command for instructing cutting of paper are included.
Control commands transmitted from the host computer 10 to the printer 11 are sequentially stored in a reception buffer (not shown). The printer-side control unit 28 of the printer 11 sequentially reads and executes the control commands stored in the reception buffer, thereby controlling various mechanisms of the mechanical mechanism 31 and executing various operations related to the receipt issuance. .

ところで、制御システム1においては、ホストコンピューター10がプリンター11にレシートの発行を指示してからレシートの発行が完了するまでに要する時間をできるだけ短縮したいとするニーズがある。当該時間を短縮することにより、レシートを受け取るべき顧客の待ち時間の低減につながり顧客満足度を向上できると共に、レジに係る作業の効率化を図れるからである。そして、レシートの発行に際し、ホストコンピューター10からプリンター11へ送信される制御コマンドのサイズを小さくすれば、通信に要する時間の短縮化、これに伴うレシートの発行に要する時間(記録に要する時間)の短縮化を図ることができる。
これらのことに基づいて、本実施形態に係る制御システム1の各装置は以下の動作を実行する。
By the way, in the control system 1, there is a need to reduce as much as possible the time required from the host computer 10 instructing the printer 11 to issue a receipt until the receipt issuance is completed. This is because by shortening the time, the waiting time of the customer who should receive the receipt can be reduced, and the customer satisfaction can be improved, and the work related to the cash register can be made more efficient. If the size of the control command transmitted from the host computer 10 to the printer 11 is reduced when issuing a receipt, the time required for communication can be shortened, and the time required for issuing a receipt (time required for recording) can be reduced. Shortening can be achieved.
Based on these things, each apparatus of the control system 1 which concerns on this embodiment performs the following operation | movement.

図2は、レシートの発行に際して、感熱ロール紙に画像を記録するときのホストコンピューター10、及び、プリンター11の動作を示すフローチャートであり、(A)はホストコンピューター10の動作を、(B)はプリンター11の動作をそれぞれ示している。
図2では、特に、ホストコンピューター10からプリンター11にレシートに記録すべき画像の画像データを送信し、プリンター11が画像データに基づいて画像を記録する場合を例として各装置の動作を説明する。画像データとは、ビットマップデータ等の、画像を構成する画素ごとに、濃度を表す階調値等の各種画素に関する情報を保持するデータのことである。周知の通り、画像データは、制御コマンドを構成する命令コードや、各種パラメーターと比較して、そのサイズが非常に大きい。
また、以下の説明において、記録制御部21aは、CPUがプリンタードライバーを読み出して実行する等、ハードウェアとソフトウェアとの協働により実現される。
FIG. 2 is a flowchart showing the operation of the host computer 10 and the printer 11 when recording an image on a thermal roll paper at the time of issuing a receipt, where (A) shows the operation of the host computer 10 and (B) shows the operation. The operations of the printer 11 are shown.
In FIG. 2, the operation of each apparatus will be described by taking as an example a case where image data of an image to be recorded on a receipt is transmitted from the host computer 10 to the printer 11 and the printer 11 records an image based on the image data. Image data is data such as bitmap data that holds information relating to various pixels such as gradation values representing density for each pixel constituting the image. As is well known, the size of the image data is very large compared to the instruction code constituting the control command and various parameters.
In the following description, the recording control unit 21a is realized by cooperation of hardware and software, such as a CPU reading and executing a printer driver.

図2を参照し、まず、ホストコンピューター10のアプリケーション実行部20は、レシートに記録すべき画像の情報を含む画像情報データを生成し、プリンタードライバー実行部21に出力する(ステップSA1)。画像情報データにおける画像の情報のうち、画像自体を表す情報は、画像データであってもよく、また、画像を示すPDL(ページ記述言語)であってもよいが、本例では、画像データであるものとする。
画像情報データが入力されたプリンタードライバー実行部21の記録制御部21aは、ホストコンピューター10とプリンター11との間の通信の方式を検出する(ステップSA2)。ここで、本実施形態では、ホストコンピューター10と、プリンター11とは、RS232Cの規格に準拠した通信、USBの規格に準拠した通信、イーサネットの規格に準拠した通信、及び、Bluetooth(登録商標)の規格に準拠した通信のいずれかによって通信可能な構成となっている。そして、ステップSA2では、記録制御部21aは、通信の方式として、上記4つの規格のうち、いずれの規格に準拠した通信が行われているのかを検出する。当該検出は、OSの機能を利用して行ってもよいし、プリンタードライバーの機能を利用して、記録制御部21aがネットワークカードの所定のチップと通信して行ってもよい。すなわち、検出に際し、既存のいかなる技術を使ってもよい。
次いで、記録制御部21aは、ステップSA2で検出した通信の規格(通信の方式)が、画像データのデータ圧縮(後述)を行うべき規格として予め定められた規格に該当するか否かを判別する(ステップSA3)。後に明らかとなるとおり、本実施形態では、記録制御部21aは、制御コマンドに含める画像データをデータ圧縮することが可能な構成となっているが、画像データをデータ圧縮する場合とデータ圧縮しない場合とで通信に要する時間の差がほとんど出ない程度に通信速度が速い場合は、データ圧縮をする必要がないため、当該データ圧縮を行わない構成となっている。この観点から、本実施形態では、RS232Cの規格、及び、Bluetoothの規格が、画像データのデータ圧縮を行うべき規格として、一方、USBの規格、及び、イーサネットの規格が、画像データのデータ圧縮を行わない規格として、予め定められ、プリンタードライバーの対応するプログラム上に定義されている。
Referring to FIG. 2, first, the application execution unit 20 of the host computer 10 generates image information data including information on an image to be recorded on a receipt, and outputs the image information data to the printer driver execution unit 21 (step SA1). Of the image information in the image information data, the information representing the image itself may be image data or PDL (page description language) indicating the image. It shall be.
The recording control unit 21a of the printer driver execution unit 21 to which the image information data has been input detects the communication method between the host computer 10 and the printer 11 (step SA2). Here, in the present embodiment, the host computer 10 and the printer 11 communicate with each other according to the RS232C standard, the USB standard, the Ethernet standard, and the Bluetooth (registered trademark) standard. It is configured to be communicable by any one of communication conforming to the standard. In step SA2, the recording control unit 21a detects which of the four standards is used as the communication method. The detection may be performed using the function of the OS, or may be performed by the recording control unit 21a communicating with a predetermined chip of the network card using the function of the printer driver. That is, any existing technique may be used for detection.
Next, the recording control unit 21a determines whether or not the communication standard (communication method) detected in step SA2 corresponds to a standard predetermined as a standard for performing data compression (described later) of image data. (Step SA3). As will be apparent later, in this embodiment, the recording control unit 21a is configured to be able to compress the image data included in the control command, but the image data is compressed and the data is not compressed. When the communication speed is high enough that there is almost no difference in time required for communication, data compression is not necessary, so that the data compression is not performed. From this point of view, in the present embodiment, the RS232C standard and the Bluetooth standard are standards for performing image data data compression, while the USB standard and the Ethernet standard are for compressing image data. As a standard not to be performed, it is determined in advance and defined on a program corresponding to the printer driver.

ステップSA3において、ステップSA2で検出した通信の規格が、画像データのデータ圧縮を行うべき規格ではない場合、すなわち、USBの規格、又は、イーサネットの規格である場合(ステップSA3:NO)、記録制御部21aは、通常の手順に従って、制御コマンドを生成して、プリンター11に送信する(ステップSA4)。ステップSA4の動作の詳細は省略する。
一方、ステップSA3において、ステップSA2で検出した通信の規格が、画像データのデータ圧縮を行うべき規格である場合、すなわち、RS232Cの規格、及び、Bluetoothの規格である場合(ステップSA3:YES)、記録制御部21aは、プリンター11が解凍可能な圧縮方法の種類について、通信によってプリンター11に問い合わせる(ステップSA5)。以下、適宜、ホストコンピューター10が施すことが可能なデータ圧縮の圧縮方法の種類を、ホストコンピューター10が対応している圧縮方法の種類、と表現し、プリンター11が解凍することが可能な圧縮方法の種類を、プリンター11が対応している圧縮方法の種類、と表現する。なお、記録制御部21aは、複数の異なる種類の圧縮方法によってデータ圧縮可能な構成とされている。複数の圧縮方法によってデータ圧縮が可能なことによる効果については後述する。
ステップSA5の問い合わせに応じて、プリンター11のプリンター側制御部28は、自身が解凍可能な圧縮方法の種類を全て応答する(ステップSB1)。本実施形態に係るプリンター11のファームウェアは、基本的には、ホストコンピューター10がデータ圧縮したデータを解凍する機能が実装されている。しかしながら、ファームウェアの種類や、ファームウェアのバージョン、ファームウェアにおける機能追加、削除の状況によって、解凍可能な圧縮方法の種類がプリンター11ごとに異なっている場合があり、また、プリンター11によっては圧縮されたデータを解凍する機能を有していない場合もある。ホストコンピューター10による問い合わせ、及び、プリンター11による問い合わせに対する応答は、予め定められたプロトコルに従って行われる。
ステップSB1の応答を受けた記録制御部21aは、プリンター11が対応している圧縮方法の種類のうち、自身が対応しているものがあるか否かを判別する(ステップSA6)。換言すれば、記録制御部21aは、データ圧縮に際して施すことが可能な圧縮方法の種類のうち、プリンター11が解凍可能な圧縮方法の種類があるか否かを判別する。
プリンター11が対応している圧縮方法の種類のうち、自身が対応している圧縮方法の種類がない場合(ステップSA6:NO)、記録制御部21aは、処理手順を上述したステップSA4へ移行し、通常の手順に従って、制御コマンドを生成して、プリンター11に出力する。
一方、プリンター11が対応している圧縮方法の種類のうち、自身が対応している圧縮方法の種類がある場合(ステップSA6:YES)、記録制御部21aは、さらに、プリンター11が対応している圧縮方法の種類のうち、自身が対応している圧縮方法の種類が複数あるか否かを判別する(ステップSA7)。
複数ない場合(ステップSA7:NO)、記録制御部21aは、プリンター11と自身とが対応している1つの圧縮方法により、アプリケーション実行部20から入力された画像情報データに含まれる画像データを、データ圧縮することによって圧縮画像データを生成する(ステップSA8)。その後、記録制御部21aは、処理手順をステップSA9へ移行する。
一方、複数ある場合(ステップSA7:YES)、記録制御部21aは、プリンター11と自身とが対応している複数の圧縮方法のそれぞれによって、アプリケーション実行部20から入力された画像情報データに含まれる画像データをデータ圧縮し、圧縮方法のそれぞれに対応する圧縮画像データを生成する(ステップSA10)。次いで、記録制御部21aは、ステップSA10で生成した圧縮画像データのそれぞれについて、それぞれのデータのサイズを比較する(ステップSA11)。次いで、記録制御部21aは、ステップSA11の比較結果に基づいて、最もサイズの小さい1の圧縮画像データを特定する(ステップSA12)。その後、記録制御部21aは、処理手順をステップSA9へ移行する。
ここで、異なる複数の圧縮方法で画像データを圧縮した場合に、どの圧縮方法でデータ圧縮したときが最も画像データのサイズが小さくなるかは、画像データの態様によって異なる。例えば、画像データが白黒2値のビットマップデータであるとした場合に、白ドットがどのような態様で連続して現出しているか等に応じて、どの圧縮方法でデータを圧縮したときが最もサイズが小さくなるが異なってくる。そして本実施形態では、ステップSA10〜SA12において、記録制御部21aは、プリンター11が対応している圧縮方法が複数ある場合は、各圧縮方法で実際に画像データを圧縮して圧縮画像データを生成し、最もサイズが小さな圧縮画像データを制御コマンドに含めるデータとして特定する。これにより、制御コマンドのサイズを可能な限り小さくすることができ、より効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
In step SA3, if the communication standard detected in step SA2 is not a standard for data compression of image data, that is, if it is a USB standard or an Ethernet standard (step SA3: NO), recording control is performed. The unit 21a generates a control command and transmits it to the printer 11 according to a normal procedure (step SA4). Details of the operation in step SA4 are omitted.
On the other hand, in step SA3, when the communication standard detected in step SA2 is a standard for data compression of image data, that is, the RS232C standard and the Bluetooth standard (step SA3: YES), The recording control unit 21a inquires of the printer 11 by communication about the types of compression methods that can be decompressed by the printer 11 (step SA5). Hereinafter, the type of compression method of data compression that can be performed by the host computer 10 is appropriately expressed as the type of compression method that the host computer 10 supports, and the compression method that the printer 11 can decompress. Is expressed as the type of compression method supported by the printer 11. The recording control unit 21a is configured to be able to compress data by a plurality of different types of compression methods. The effect of data compression by a plurality of compression methods will be described later.
In response to the inquiry in step SA5, the printer-side control unit 28 of the printer 11 responds with all types of compression methods that can be decompressed by itself (step SB1). The firmware of the printer 11 according to the present embodiment basically has a function of decompressing data compressed by the host computer 10. However, depending on the type of firmware, the version of firmware, the function addition / deletion status in the firmware, the type of compression method that can be decompressed may differ depending on the printer 11, and the compressed data depends on the printer 11. It may not have a function to decompress. The inquiry by the host computer 10 and the response to the inquiry by the printer 11 are performed according to a predetermined protocol.
The recording control unit 21a that has received the response in Step SB1 determines whether or not there is a compression method supported by the printer 11 (Step SA6). In other words, the recording control unit 21a determines whether or not there is a type of compression method that can be decompressed by the printer 11 among the types of compression methods that can be applied in data compression.
If there is no compression method type that the printer 11 supports (step SA6: NO), the recording control unit 21a proceeds to step SA4 described above. In accordance with a normal procedure, a control command is generated and output to the printer 11.
On the other hand, if there is a compression method type that the printer 11 supports (step SA6: YES), the recording control unit 21a further corresponds to the printer 11 type. It is determined whether or not there are a plurality of types of compression methods supported by itself among the types of compression methods that are present (step SA7).
When there are not plural (step SA7: NO), the recording control unit 21a uses the one compression method corresponding to the printer 11 and the image data included in the image information data input from the application executing unit 20, Compressed image data is generated by data compression (step SA8). Thereafter, the recording control unit 21a moves the processing procedure to Step SA9.
On the other hand, when there are a plurality (step SA7: YES), the recording control unit 21a is included in the image information data input from the application execution unit 20 by each of a plurality of compression methods corresponding to the printer 11 and itself. The image data is compressed, and compressed image data corresponding to each compression method is generated (step SA10). Next, the recording control unit 21a compares the data sizes of the compressed image data generated in step SA10 (step SA11). Next, the recording control unit 21a identifies one compressed image data having the smallest size based on the comparison result of step SA11 (step SA12). Thereafter, the recording control unit 21a moves the processing procedure to Step SA9.
Here, when image data is compressed by a plurality of different compression methods, the compression method used to reduce the size of the image data is different depending on the mode of the image data. For example, when the image data is monochrome binary bitmap data, the compression method is most suitable when the data is compressed depending on how the white dots appear continuously. Smaller but different. In this embodiment, in steps SA10 to SA12, when there are a plurality of compression methods supported by the printer 11, the recording control unit 21a actually compresses the image data by each compression method and generates compressed image data. Then, the compressed image data having the smallest size is specified as data included in the control command. Thereby, the size of the control command can be reduced as much as possible, and the time required for communication can be shortened more effectively and the time required for recording can be shortened accordingly.

ステップSA9において、記録制御部21aは、ステップSA8で生成した圧縮画像データ、又は、ステップSA12で特定した圧縮画像データを含んだ制御コマンドを、プリンター11のコマンド体系に従って、生成する。この制御コマンドは、プリンター11において、当該圧縮画像データを解凍させて画像データを生成させ、生成させた画像データに基づいて感熱ロール紙に画像を記録させるものである。次いで、記録制御部21aは、生成した制御コマンドをプリンター11に送信する(ステップSA13)。
当該制御コマンドを受信したプリンター11のプリンター側制御部28は、受信バッファーに格納された制御コマンドを読み出して解析すると共に、制御コマンドの各種命令に従って、当該制御コマンドに含まれる圧縮画像データを抽出し、抽出した圧縮画像データを、当該圧縮画像データに係る圧縮方法に対応する解凍方法にて解凍して、画像データを生成する(ステップSB2)。次いで、プリンター側制御部28は、解凍した画像データを図示せぬ画像バッファーに展開すると共に、画像バッファーに展開した画像データに基づいてメカ機構31の各種機構を制御して、感熱ロール紙に画像を記録する。
このように、本実施形態では、記録制御部21aは、制御コマンドに含まれるデータのうち、サイズの大きい画像データを、プリンター11が確実に対応している圧縮方法で圧縮する。このため、効果的に制御コマンドのサイズを小さくすることができ、効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。また、本実施形態では、図2の記録制御部21aの機能は、プリンタードライバーに実装されている。このため、アプリケーション実行部20からプリンタードライバー実行部21へと出力される画像情報データは、記録制御部21aの各機能を実装する前後で同一であり、アプリケーションに対する改変が必要ない。ここで、ホストコンピューター10上のアプリケーションは、様々な種類のものが存在し、かつ、ユーザーが自身のニーズに応じて細かい設定をしている場合も多いため、できれば、アプリケーションに対するプログラム的な改変、設定の改変等は行いたくないとするニーズがあるが、上記構成によりこのようなニーズに適切に応えることができる。
In step SA9, the recording control unit 21a generates a control command including the compressed image data generated in step SA8 or the compressed image data specified in step SA12 according to the command system of the printer 11. This control command causes the printer 11 to decompress the compressed image data to generate image data, and to record an image on the thermal roll paper based on the generated image data. Next, the recording control unit 21a transmits the generated control command to the printer 11 (step SA13).
Upon receiving the control command, the printer-side control unit 28 of the printer 11 reads and analyzes the control command stored in the reception buffer, and extracts compressed image data included in the control command according to various commands of the control command. The extracted compressed image data is decompressed by a decompression method corresponding to the compression method related to the compressed image data to generate image data (step SB2). Next, the printer-side control unit 28 develops the decompressed image data in an image buffer (not shown), and controls various mechanisms of the mechanical mechanism 31 based on the image data developed in the image buffer so that the image is printed on the thermal roll paper. Record.
As described above, in the present embodiment, the recording control unit 21a compresses large-size image data among the data included in the control command by a compression method that the printer 11 reliably supports. For this reason, the size of the control command can be effectively reduced, and the time required for communication can be effectively reduced and the time required for recording can be reduced accordingly. In the present embodiment, the function of the recording control unit 21a in FIG. 2 is implemented in the printer driver. For this reason, the image information data output from the application execution unit 20 to the printer driver execution unit 21 is the same before and after the installation of each function of the recording control unit 21a, and there is no need to modify the application. Here, there are various types of applications on the host computer 10 and there are many cases where the user performs fine settings according to his / her needs. Although there is a need not to change the setting or the like, the above configuration can appropriately meet such a need.

以上説明したように、本実施形態によれば、ホストコンピューター10の制御部15のプリンタードライバー実行部21の記録制御部21aは、異なる複数の圧縮方法によるデータ圧縮が可能に構成されている。そして、記録制御部21aは、プリンター11によって感熱ロール紙に画像を記録させる場合、解凍可能な圧縮方法をプリンター11に問い合わせ、当該解凍可能な圧縮方法によって当該画像の画像データをデータ圧縮して圧縮画像データを生成すると共に、当該圧縮画像データを含み、プリンター11によって当該圧縮画像データを解凍させて画像データを生成させ、生成させた当該画像データに基づいて感熱ロール紙に当該画像を記録させる制御コマンドを生成し、プリンター11に送信する。
この構成によれば、記録制御部21aは、複数の圧縮方法によって、画像データをデータ圧縮可能であり、制御コマンドを送信する前に、プリンター11が対応している圧縮方法を問い合わせる。ここで、ファームウェアのバージョンの状態や、機能追加、削除の状況によって、解凍可能な圧縮方法がプリンター11によって異なっている場合があるが、記録制御部21aは、プリンター11が対応している圧縮方法を、事前に問い合わせをすることにより、プリンター11が対応している圧縮方法によって画像データを圧縮可能である。また、記録制御部21aは、異なる複数の圧縮方法でデータ圧縮が可能であるため、プリンター11が対応している圧縮方法によってデータ圧縮ができることの可能性を高めることができる。さらに、上記構成によれば、記録制御部21aは、制御コマンドに含まれるデータのうち、サイズの大きい画像データを、プリンター11が確実に対応している圧縮方法で圧縮する。このため、効果的に制御コマンドのサイズを小さくすることができ、効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
As described above, according to the present embodiment, the recording control unit 21a of the printer driver execution unit 21 of the control unit 15 of the host computer 10 is configured to be capable of data compression by a plurality of different compression methods. When recording an image on the thermal roll paper by the printer 11, the recording control unit 21a inquires the printer 11 about a compression method that can be decompressed, and compresses the image data of the image by compressing the image data using the decompressable compression method. Control for generating image data, including the compressed image data, causing the printer 11 to decompress the compressed image data to generate image data, and recording the image on a thermal roll paper based on the generated image data A command is generated and transmitted to the printer 11.
According to this configuration, the recording control unit 21a can compress the image data by a plurality of compression methods, and inquires about the compression method supported by the printer 11 before transmitting the control command. Here, the compression method that can be decompressed may differ depending on the printer 11 depending on the status of the version of the firmware or the status of addition or deletion of the function. However, the recording control unit 21a uses the compression method that the printer 11 supports. , The image data can be compressed by a compression method supported by the printer 11. Further, since the recording control unit 21a can perform data compression by using a plurality of different compression methods, the possibility that the data can be compressed by a compression method supported by the printer 11 can be increased. Further, according to the above configuration, the recording control unit 21a compresses large-size image data among the data included in the control command by a compression method that the printer 11 reliably supports. For this reason, the size of the control command can be effectively reduced, and the time required for communication can be effectively reduced and the time required for recording can be reduced accordingly.

また、本実施形態によれば、記録制御部21aは、プリンター11によって感熱ロール紙に画像を記録させる場合において、プリンター11が解凍可能な圧縮方法が複数ある場合は、それぞれの圧縮方法で、当該画像の画像データを圧縮して圧縮画像データを生成し、それぞれの圧縮画像データのサイズを比較して最もサイズの小さな圧縮画像データを特定し、特定した圧縮画像データを含む制御コマンドを生成してプリンター11に送信する。
上記構成によれば、制御コマンドのサイズを可能な限り小さくすることができ、より効果的に通信に要する時間の短縮化及びこれに伴う記録に要する時間の短縮化を実現できる。
In addition, according to the present embodiment, when the recording control unit 21a causes the printer 11 to record an image on the thermal roll paper, when the printer 11 has a plurality of compression methods that can be decompressed, the recording control unit 21a Compress the image data of the image to generate compressed image data, compare the size of each compressed image data to identify the smallest compressed image data, and generate a control command that includes the identified compressed image data Send to the printer 11.
According to the above configuration, the size of the control command can be reduced as much as possible, and the time required for communication and the time required for recording can be reduced more effectively.

また、本実施形態では、記録制御部21aは、プリンター11との間で行われる通信の規格(通信の方式)に応じて、制御コマンドに含める画像データの圧縮を行うか否かを変更する。
この構成によれば、記録制御部21aは、プリンター11との間で行われる通信の規格(通信の方式)に応じて、制御コマンドに含める画像データの圧縮を行うか否かを変更するため、通信速度が十分に速く、画像データのデータ圧縮を行うよりも、当該圧縮を行わない方が、記録に要する時間を短縮できるといった場合に、当該圧縮を行わないようにすることが可能となる。
In the present embodiment, the recording control unit 21a changes whether or not to compress the image data included in the control command according to the standard (communication method) of communication performed with the printer 11.
According to this configuration, the recording control unit 21a changes whether or not to compress the image data included in the control command according to the standard (communication method) of communication performed with the printer 11. When the communication speed is sufficiently fast and the time required for recording can be shortened without performing the data compression of the image data, the compression can be prevented from being performed.

また、本実施形態では、記録制御部21aの機能は、プリンタードライバーに実装されている。
この構成によれば、アプリケーション実行部20からプリンタードライバー実行部21へと出力される画像情報データを、記録制御部21aの各機能を実装する前後で変更する必要がないため、アプリケーションに対する改変が必要ない。
In the present embodiment, the function of the recording control unit 21a is implemented in the printer driver.
According to this configuration, since it is not necessary to change the image information data output from the application execution unit 20 to the printer driver execution unit 21 before and after the installation of each function of the recording control unit 21a, the application needs to be modified. Absent.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、通信の方式として、ことなる4つの通信の規格を例に挙げたが、通信の方式とは、シリアル通信かパラレル通信かといったビットを送るときの方式や、有線か無線かといった送受信の物理的な方式等、通信速度に影響を与えるような通信の方式を全て含む概念である。
また例えば、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。また、ホストコンピューター10の各機能ブロックの機能を、ホストコンピューター10に外部接続される別の装置に持たせるようにしてもよい。また、ホストコンピューター10は、外部接続される記憶媒体に記憶させたプログラムを実行することにより、図2のフローチャートに係る動作を含む各種動作を実行するようにしてもよい。
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, four different communication standards are given as an example of the communication method. However, the communication method is a method for sending bits such as serial communication or parallel communication, or a wired communication method. This is a concept that includes all communication methods that affect the communication speed, such as a physical transmission / reception method such as wireless communication.
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, the function of each functional block of the host computer 10 may be provided in another device externally connected to the host computer 10. Further, the host computer 10 may execute various operations including the operation according to the flowchart of FIG. 2 by executing a program stored in an externally connected storage medium.

1…制御システム、10…ホストコンピューター(制御装置)、11…プリンター(記録装置)、15…制御部、20…アプリケーション実行部、21…プリンタードライバー実行部、21a…記録制御部。   DESCRIPTION OF SYMBOLS 1 ... Control system, 10 ... Host computer (control apparatus), 11 ... Printer (recording apparatus), 15 ... Control part, 20 ... Application execution part, 21 ... Printer driver execution part, 21a ... Recording control part.

Claims (8)

記録装置に接続可能な制御装置であって、
前記記録装置との間で行われる通信の方式に応じて、画像データの圧縮を行うか否かを判別し、
前記画像データの圧縮を行うと判別した場合は、前記記録装置が解凍可能な圧縮方法について前記記録装置に問い合わせを行い
前記記録装置が解凍可能な圧縮方法が1つであるときは、前記記録装置が解凍可能な圧縮方法で前記画像データを圧縮し、圧縮した前記画像データを含む制御コマンドを前記記録装置に送信し、
前記記録装置が解凍可能な圧縮方法が複数あるときは、それぞれの圧縮方法で、前記画像データを圧縮し、それぞれの圧縮方法で圧縮した前記画像データのサイズを比較して最もサイズの小さな圧縮した前記画像データを特定し、特定した前記画像データを含む制御コマンドを前記記録装置に送信する、記録制御部を備え、
前記制御コマンドは、前記記録装置に、圧縮した前記画像データを解凍させ、解凍した前記画像データに基づいて記録媒体に画像を記録させるコマンドであることを特徴とする制御装置。
A control device connectable to the recording device,
According to the method of communication performed with the recording device, determine whether to compress image data,
If it is determined to perform the compression of the image data, queries to the recording apparatus for the recording apparatus method capable decompression compression,
When the recording device has one decompressable compression method, the recording device compresses the image data using a decompressable compression method , and sends a control command including the compressed image data to the recording device. ,
When there are a plurality of compression methods that can be decompressed by the recording device, the image data is compressed by each compression method, and the size of the image data compressed by each compression method is compared, and the compression is performed with the smallest size. A recording control unit that identifies the image data and transmits a control command including the identified image data to the recording apparatus ;
The control device is a command for causing the recording device to decompress the compressed image data and recording an image on a recording medium based on the decompressed image data .
所定のアプリケーションの機能により、画像の情報を出力するアプリケーション実行部と、
プリンタードライバーの機能により、前記アプリケーション実行部が出力した画像の情報に基づいて、前記制御コマンドを生成して、前記記録装置に送信するプリンタードライバー実行部と、を備え、
前記記録制御部の機能は、前記プリンタードライバーに実装されることを特徴とする請求項に記載の制御装置。
An application execution unit that outputs image information by a function of a predetermined application;
A printer driver execution unit that generates the control command based on the image information output by the application execution unit according to the function of the printer driver, and transmits the control command to the recording apparatus;
The function of the recording control unit, the control device according to claim 1, characterized in that it is mounted on the printer driver.
前記記録装置は、レシートを発行するレシートプリンターであることを特徴とする請求項1又は2に記載の制御装置。The control device according to claim 1, wherein the recording device is a receipt printer that issues a receipt. 前記画像データは、ビットマップデータであることを特徴とする請求項1乃至3のいずれか1項に記載の制御装置。The control apparatus according to claim 1, wherein the image data is bitmap data. 前記記録制御部は、The recording control unit
前記記録装置と、無線通信又はシリアル通信する場合に、前記画像データの圧縮を行うと判別することを特徴とする請求項1乃至4のいずれか1項に記載の制御装置。5. The control apparatus according to claim 1, wherein the image data is determined to be compressed when wireless communication or serial communication is performed with the recording apparatus.
記録媒体に画像を記録する記録装置と、前記記録装置に接続可能な制御装置とを備える制御システムであって、
前記制御装置は、
前記記録装置との間で行われる通信の方式に応じて、画像データの圧縮を行うか否かを判別し、
前記画像データの圧縮を行うと判別した場合は、前記記録装置が解凍可能な圧縮方法について前記記録装置に問い合わせを行い
前記記録装置は、
前記問い合わせに応じて前記解凍可能な圧縮方法を応答し、
前記制御装置は、
前記記録装置が解凍可能な圧縮方法が1つであるときは、前記記録装置が解凍可能な圧縮方法で前記画像データを圧縮し、圧縮した前記画像データを含む制御コマンドを前記記録装置に送信し、
前記記録装置が解凍可能な圧縮方法が複数あるときは、それぞれの圧縮方法で、前記画像データを圧縮し、それぞれの圧縮方法で圧縮した前記画像データのサイズを比較して最もサイズの小さな圧縮した前記画像データを特定し、特定した前記画像データを含む制御コマンドを前記記録装置に送信し、
前記記録装置は、
受信した前記制御コマンドに含まれる圧縮された前記画像データを解凍し、解凍後の前記画像データに基づいて前記記録媒体に画像を印刷する
ことを特徴とする制御システム。
A control system comprising a recording device for recording an image on a recording medium, and a control device connectable to the recording device,
The controller is
According to the method of communication performed with the recording device, determine whether to compress image data,
If it is determined to perform the compression of the image data, queries to the recording apparatus for the recording apparatus method capable decompression compression,
The recording device comprises:
Responding to the inquiry with the decompressable compression method,
The controller is
When the recording device has one decompressable compression method, the recording device compresses the image data using a decompressable compression method , and sends a control command including the compressed image data to the recording device. ,
When there are a plurality of compression methods that can be decompressed by the recording device, the image data is compressed by each compression method, and the size of the image data compressed by each compression method is compared, and the compression is performed with the smallest size. Identifying the image data, sending a control command including the identified image data to the recording device;
The recording device comprises:
A control system, comprising: decompressing the compressed image data included in the received control command, and printing an image on the recording medium based on the decompressed image data.
記録媒体に記録する記録装置に接続可能な制御装置の制御方法であって、
前記記録装置との間で行われる通信の方式に応じて、画像データの圧縮を行うか否かを判別し、
前記画像データの圧縮を行うと判別した場合は、前記記録装置が解凍可能な圧縮方法について前記記録装置に問い合わせを行い、
前記記録装置が解凍可能な圧縮方法が1つであるときは、前記記録装置が解凍可能な圧縮方法で前記画像データを圧縮し、圧縮した前記画像データを含み、圧縮した前記画像データを解凍させ、解凍した前記画像データに基づいて前記記録媒体に画像を記録させる制御コマンドを前記記録装置に送信し、
前記記録装置が解凍可能な圧縮方法が複数あるときは、それぞれの圧縮方法で、前記画像データを圧縮し、それぞれの圧縮方法で圧縮した前記画像データのサイズを比較して最もサイズの小さな圧縮した前記画像データを特定し、特定した前記画像データを含む前記制御コマンドを前記記録装置に送信する
ことを特徴とする制御装置の制御方法。
A control method of a control device connectable to a recording device for recording on a recording medium ,
According to the method of communication performed with the recording device, determine whether to compress image data,
If it is determined that the image data is to be compressed, the recording apparatus is inquired about a compression method that can be decompressed,
When the recording device has one compression method that can be decompressed, the recording device compresses the image data with a decompression method that can be decompressed, and includes the compressed image data, and decompresses the compressed image data. A control command for recording an image on the recording medium based on the decompressed image data is transmitted to the recording device;
When there are a plurality of compression methods that can be decompressed by the recording device, the image data is compressed by each compression method, and the size of the image data compressed by each compression method is compared, and the compression is performed with the smallest size. A control method for a control apparatus, characterized by specifying the image data and transmitting the control command including the specified image data to the recording apparatus .
記録媒体に記録する記録装置に接続可能な制御装置を制御する制御部により実行されるプログラムであって、
前記制御部を、
前記記録装置との間で行われる通信の方式に応じて、画像データの圧縮を行うか否かを判別し、
前記画像データの圧縮を行うと判別した場合は、前記記録装置が解凍可能な圧縮方法について前記記録装置に問い合わせを行い、
前記記録装置が解凍可能な圧縮方法が1つであるときは、前記記録装置が解凍可能な圧縮方法で前記画像データを圧縮し、圧縮した前記画像データを含み、圧縮した前記画像データを解凍させ、解凍した前記画像データに基づいて前記記録媒体に画像を記録させる制御コマンドを前記記録装置に送信し、
前記記録装置が解凍可能な圧縮方法が複数あるときは、それぞれの圧縮方法で、前記画像データを圧縮し、それぞれの圧縮方法で圧縮した前記画像データのサイズを比較して最もサイズの小さな圧縮した前記画像データを特定し、特定した前記画像データを含む前記制御コマンドを前記記録装置に送信する、記録制御部として機能させることを特徴とするプログラム。
A program executed by a control unit that controls a control device connectable to a recording device that records on a recording medium,
The control unit
According to the method of communication performed with the recording device, determine whether to compress image data,
If it is determined that the image data is to be compressed, the recording apparatus is inquired about a compression method that can be decompressed,
When the recording device has one compression method that can be decompressed, the recording device compresses the image data with a decompression method that can be decompressed, and includes the compressed image data, and decompresses the compressed image data. A control command for recording an image on the recording medium based on the decompressed image data is transmitted to the recording device;
When there are a plurality of compression methods that can be decompressed by the recording device, the image data is compressed by each compression method, and the size of the image data compressed by each compression method is compared, and the compression is performed with the smallest size. A program that functions as a recording control unit that specifies the image data and transmits the control command including the specified image data to the recording apparatus .
JP2012060181A 2012-03-16 2012-03-16 CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM Expired - Fee Related JP5949006B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012060181A JP5949006B2 (en) 2012-03-16 2012-03-16 CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012060181A JP5949006B2 (en) 2012-03-16 2012-03-16 CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Publications (3)

Publication Number Publication Date
JP2013196119A JP2013196119A (en) 2013-09-30
JP2013196119A5 JP2013196119A5 (en) 2015-04-16
JP5949006B2 true JP5949006B2 (en) 2016-07-06

Family

ID=49395045

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012060181A Expired - Fee Related JP5949006B2 (en) 2012-03-16 2012-03-16 CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5949006B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6822189B2 (en) * 2017-02-10 2021-01-27 ブラザー工業株式会社 Printer
JP7367459B2 (en) * 2019-10-28 2023-10-24 京セラドキュメントソリューションズ株式会社 Image forming device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3775461B2 (en) * 1998-12-03 2006-05-17 セイコーエプソン株式会社 Printing apparatus, printing method and recording medium
JP2003114778A (en) * 2001-10-03 2003-04-18 Canon Inc Printing system, print control device, printing device, compression method selection method, and storage medium
JP2005153287A (en) * 2003-11-25 2005-06-16 Kyocera Mita Corp Image forming apparatus
JP4921190B2 (en) * 2007-01-29 2012-04-25 キヤノン株式会社 Printing control apparatus and method and printing system

Also Published As

Publication number Publication date
JP2013196119A (en) 2013-09-30

Similar Documents

Publication Publication Date Title
US9195414B2 (en) Image processing apparatus functioning as a print server changing print settings of saved job on demand from an external terminal
JP5955041B2 (en) Printing system and method
JP4541773B2 (en) Information processing apparatus, data processing method, program, and storage medium
JP5728948B2 (en) RECORDING SYSTEM, RECORDING SYSTEM CONTROL METHOD, RECORDING CONTROL DEVICE, AND PROGRAM
KR101429850B1 (en) Recording device and control method of a recording device
US9928454B2 (en) Host computer, control method of a host computer, and medium
JP2015231155A (en) Communication system, information processing device and control method thereof, and program
JP5949006B2 (en) CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2012083973A (en) Printing system
JP6468869B2 (en) Print control apparatus, control method, and control program
JP7275776B2 (en) control system
JP2013054492A (en) Control device, control method of control device, and program
JP2016128215A (en) Printer and control method of the same
US10510059B2 (en) Printer device
US9936097B2 (en) Non-transitory storage medium storing printer driver to restrict available functions dependent upon communication speed with server
US20190210377A1 (en) Printer and printer system
JP2014012354A (en) Data processor, recorder, data processing method and program
JP2017061042A (en) Printer, printer system, and printer setting method
JP3202841B2 (en) Printing apparatus, printing system, and printing control method
KR101141274B1 (en) Method for processing extended preview
JP5978712B2 (en) CONTROL SYSTEM, CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2013226663A (en) Recording device, method of controlling the same, and program
JP6680118B2 (en) Printing device and control method
JPH08221224A (en) Printing device and printing system
JP6459260B2 (en) Recording system, recording control method, and recording apparatus

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150302

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160401

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160523

R150 Certificate of patent or registration of utility model

Ref document number: 5949006

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees