JP4973763B2 - Interface device, control method therefor, and information recording medium - Google Patents

Interface device, control method therefor, and information recording medium Download PDF

Info

Publication number
JP4973763B2
JP4973763B2 JP2010127645A JP2010127645A JP4973763B2 JP 4973763 B2 JP4973763 B2 JP 4973763B2 JP 2010127645 A JP2010127645 A JP 2010127645A JP 2010127645 A JP2010127645 A JP 2010127645A JP 4973763 B2 JP4973763 B2 JP 4973763B2
Authority
JP
Japan
Prior art keywords
information
host
unit
printing apparatus
host device
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
JP2010127645A
Other languages
Japanese (ja)
Other versions
JP2010228458A (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 JP2010127645A priority Critical patent/JP4973763B2/en
Publication of JP2010228458A publication Critical patent/JP2010228458A/en
Application granted granted Critical
Publication of JP4973763B2 publication Critical patent/JP4973763B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、印刷装置、インターフェース装置、これらの制御方法、ならびに、情報記録媒体に関する。   The present invention relates to a printing apparatus, an interface apparatus, a control method thereof, and an information recording medium.

特に、ホスト装置から送信された情報取得指令に指定されたパラメータに対応付けられた機器情報が印刷装置にない場合であっても、適切にエラー情報をホスト装置に返すことができる印刷装置、インターフェース装置、これらの制御方法、ならびに、これらを実現するプログラムを記録したコンピュータ読取可能な情報記録媒体に関する。   In particular, a printing apparatus and interface capable of appropriately returning error information to the host apparatus even when the printing apparatus does not have device information associated with the parameter specified in the information acquisition command transmitted from the host apparatus. The present invention relates to an apparatus, a control method thereof, and a computer-readable information recording medium in which a program for realizing these is recorded.

従来から、ホスト装置からの情報取得指令に応じて、機器情報(機種識別番号、バージョン番号、メーカー名、機種名、ファームウェアバージョン番号など)をホスト装置へ送信する印刷装置が提供されている。   2. Description of the Related Art Conventionally, there has been provided a printing apparatus that transmits device information (model identification number, version number, manufacturer name, model name, firmware version number, etc.) to a host apparatus in response to an information acquisition command from the host apparatus.

また、印刷装置がフラッシュEEPROM(Electrically Erasable Programmable Read Only Memory)等の不揮発性メモリを備え、ホスト装置から当該不揮発性メモリに各種の情報を書き込んだり、情報取得指令により不揮発に記憶された機器情報を読み出したりすることのできる印刷装置が提供されている。   Also, the printing device has a nonvolatile memory such as a flash EEPROM (Electrically Erasable Programmable Read Only Memory), and various information is written from the host device to the nonvolatile memory, or the device information stored in a nonvolatile manner by an information acquisition command is stored. There is provided a printing apparatus capable of reading.

一般に、ホスト装置は、印刷装置の機器情報を読み出す場合情報取得指令が備えるパラメータによりどの機器情報が必要であるかを指定し、印刷装置は、当該パラメータで指定された機器情報をホスト装置へ送信している。   In general, when reading the device information of the printing device, the host device specifies which device information is required by a parameter included in the information acquisition command, and the printing device transmits the device information specified by the parameter to the host device. is doing.

しかしながら、従来の印刷装置においては、情報取得指令で指定されたパラメータに対応していない場合、ホスト装置に対して何も情報を返送していなかった。   However, in the conventional printing apparatus, no information is returned to the host apparatus when it does not correspond to the parameter specified by the information acquisition command.

このため、ホスト装置は、印刷装置からの情報受信待ち状態となってしまい、通信タイムアウトが発生するまで、印刷装置が当該パラメータに未対応であることがわからなかった。   For this reason, the host apparatus is in a state of waiting for information reception from the printing apparatus, and it has not been understood that the printing apparatus does not support the parameter until a communication timeout occurs.

これにより、処理を迅速に行うことができない場合が発生するほか、ホスト装置においてタイムアウト処理が必要になってしまうという問題が生じていた。   As a result, there are cases where the processing cannot be performed quickly, and there is a problem that a timeout process is required in the host device.

したがって、このような場合であっても、タイムアウト処理によらず、印刷装置が未対応であることを速やかに知得できるようにしたいという要望は大きい。   Therefore, even in such a case, there is a great demand for promptly knowing that the printing apparatus is not compatible with the time-out process.

本発明は、上記課題を解決するためになされたものであり、ホスト装置が要求する機器情報を有しない場合であっても、迅速にエラー情報をホスト装置に返すことのできる印刷装置、インターフェース装置、これらの制御方法、ならびに、これらを実現するプログラムを記録したコンピュータ読取可能な情報記録媒体を提供することを目的とする。   SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem. A printing apparatus and an interface apparatus that can quickly return error information to the host apparatus even when the host apparatus does not have the requested apparatus information. It is an object of the present invention to provide a computer-readable information recording medium in which these control methods and programs for realizing them are recorded.

以上の目的を達成するため、本発明の原理にしたがって、下記の発明を開示する。   In order to achieve the above object, the following invention is disclosed in accordance with the principle of the present invention.

本発明の第1の観点に係る印刷装置は、ホスト装置と接続され、通信部と、受信部と、印刷部と、取得部と、機器情報送信部と、エラー情報送信部とを備えるように構成する。   A printing apparatus according to a first aspect of the present invention is connected to a host device, and includes a communication unit, a reception unit, a printing unit, an acquisition unit, a device information transmission unit, and an error information transmission unit. Constitute.

ここで、通信部は、ホスト装置と通信する。   Here, the communication unit communicates with the host device.

一方、受信部は、通信部を介してホスト装置から送信される指令データを受信する。   On the other hand, the receiving unit receives command data transmitted from the host device via the communication unit.

さらに、印刷部は、受信された指令データが印刷指令である場合、当該印刷指令にて指定された文字または図形を印刷する。   Further, when the received command data is a print command, the printing unit prints a character or a graphic designated by the print command.

そして、取得部は、受信された指令データが情報取得指令である場合、当該情報取得指令に指定されたパラメータを取得する。   Then, when the received command data is an information acquisition command, the acquisition unit acquires a parameter specified in the information acquisition command.

一方、機器情報送信部は、取得されたパラメータにあらかじめ対応付けられた印刷装置の機器情報が存在する場合、当該機器情報を、通信部を介してホスト装置へ送信する。   On the other hand, when there is device information of a printing apparatus associated in advance with the acquired parameter, the device information transmission unit transmits the device information to the host device via the communication unit.

さらに、エラー情報送信部は、パラメータにあらかじめ対応付けられた印刷装置の情報が存在しない場合、あらかじめ定めたエラー情報を、通信部を介してホスト装置へ送信する。   Further, the error information transmission unit transmits predetermined error information to the host device via the communication unit when there is no information about the printing device associated with the parameter in advance.

また、本発明の印刷装置において、エラー情報送信部により送信されうるエラー情報は、いずれも、機器情報送信部により送信されうる機器情報のいずれとも一致しないように構成することができる。   In the printing apparatus of the present invention, any error information that can be transmitted by the error information transmission unit can be configured so as not to match any of the device information that can be transmitted by the device information transmission unit.

また、本発明の印刷装置は、不揮発記憶部をさらに備え、以下のように構成することができる。   In addition, the printing apparatus of the present invention further includes a nonvolatile storage unit and can be configured as follows.

すなわち、不揮発記憶部は、情報を不揮発に記憶する。   That is, the non-volatile storage unit stores information in a non-volatile manner.

一方、不揮発に記憶された情報の一部または全部は、取得されたパラメータにあらかじめ対応付けられた印刷装置の機器情報である。   On the other hand, part or all of the information stored in a nonvolatile manner is device information of the printing apparatus associated in advance with the acquired parameter.

また、本発明の印刷装置は、更新部をさらに備えるように構成することができる。   The printing apparatus of the present invention can be configured to further include an update unit.

ここで、更新部は、受信された指令データが情報記憶指令である場合、当該情報記憶指令に指定された情報を、不揮発記憶部に記憶して更新する。   Here, when the received command data is an information storage command, the update unit stores and updates the information specified in the information storage command in the nonvolatile storage unit.

また、本発明の印刷装置は、分割部と、分割済情報送信部とをさらに備えるように構成することができる。   In addition, the printing apparatus of the present invention can be configured to further include a dividing unit and a divided information transmission unit.

ここで、分割部は、取得されたパラメータにあらかじめ対応付けられた印刷装置の機器情報が存在し、当該機器情報のサイズが所定のサイズを超える場合、当該機器情報を当該所定のサイズ以下の複数の分割済情報に分割する。   Here, when the device information of the printing apparatus previously associated with the acquired parameter exists and the size of the device information exceeds a predetermined size, the dividing unit sets the device information to a plurality of the predetermined size or less. Is divided into divided information.

一方、分割済情報送信は、機器情報送信部による当該機器情報の送信にかえて、分割部により分割された複数の分割済情報を、通信部を介してホスト装置へ順に送信する。   On the other hand, in the divided information transmission, a plurality of pieces of divided information divided by the dividing unit are sequentially transmitted to the host device via the communication unit instead of the transmission of the device information by the device information transmitting unit.

また、本発明の印刷装置において、分割済情報送信部により順に送信されうる分割済情報のそれぞれは、いずれも、機器情報送信部により送信される機器情報のいずれとも一致しないように構成することができる。   Further, in the printing apparatus of the present invention, each of the pieces of divided information that can be sequentially transmitted by the divided information transmission unit is configured not to match any of the device information transmitted by the device information transmission unit. it can.

本発明の第2の観点に係るインターフェース装置は、印刷装置と、ホスト装置と、に接続され、ホスト側インターフェース部と、印刷装置側インターフェース部と、ホスト側受信部と、エラー情報報告部と、印刷装置側送信部と、印刷装置側受信部と、ホスト装置側送信部とを備えるように構成する。   An interface device according to a second aspect of the present invention is connected to a printing device and a host device, and includes a host-side interface unit, a printing device-side interface unit, a host-side receiving unit, an error information reporting unit, The printing apparatus side transmission unit, the printing apparatus side reception unit, and the host apparatus side transmission unit are configured.

ここで、ホスト側インターフェース部は、ホスト装置と通信する。   Here, the host-side interface unit communicates with the host device.

一方、印刷装置側インターフェース部は、印刷装置と通信する。   On the other hand, the printing apparatus side interface unit communicates with the printing apparatus.

さらに、ホスト側受信部は、ホスト装置から送信される指令データを、ホスト側インターフェース部を介して受信する。   Further, the host side receiving unit receives command data transmitted from the host device via the host side interface unit.

そして、エラー情報報告部は、受信された指令データが、情報取得指令であって、あらかじめ定めたパラメータを指定するものである場合、あらかじめ定めたエラー情報を、ホスト側インターフェース部を介してホスト装置へ送信する。   When the received command data is an information acquisition command and designates a predetermined parameter, the error information reporting unit sends the predetermined error information to the host device via the host side interface unit. Send to.

一方、印刷装置側送信部は、そうでない場合、受信された指令データを印刷装置側インターフェース部を介して印刷装置へ送信する。   On the other hand, if not, the printing apparatus side transmission unit transmits the received command data to the printing apparatus via the printing apparatus side interface unit.

さらに、印刷装置側受信部は、印刷装置から送信される情報を印刷装置側インターフェース部を介して受信する。   Further, the printing device side receiving unit receives information transmitted from the printing device via the printing device side interface unit.

そして、ホスト装置側送信部は、受信された情報を、ホスト装置側インターフェース部を介してホスト装置へ送信する。   Then, the host device side transmission unit transmits the received information to the host device via the host device side interface unit.

また、本発明のインターフェース装置は、パラメータ記憶部をさらに備え、以下のように構成することができる。   Moreover, the interface apparatus of this invention is further provided with the parameter memory | storage part, and can be comprised as follows.

すなわち、パラメータ記憶部は、パラメータを記憶する。   That is, the parameter storage unit stores parameters.

一方、エラー情報報告部は、パラメータ記憶部に記憶されるパラメータである場合、あらかじめ定めたパラメータを指定するものであると判断する。   On the other hand, the error information reporting unit determines that a predetermined parameter is designated when the parameter is stored in the parameter storage unit.

本発明の第3の観点に係る印刷装置の制御方法は、ホスト装置と接続される印刷装置を制御し、受信工程と、印刷工程と、取得工程と、機器情報送信工程と、エラー情報送信工程とを備えるように構成する。   A printing apparatus control method according to a third aspect of the present invention controls a printing apparatus connected to a host apparatus, and includes a reception process, a printing process, an acquisition process, an apparatus information transmission process, and an error information transmission process. It comprises so that.

ここで、受信工程では、ホスト装置から送信される指令データを受信する。   Here, in the receiving step, command data transmitted from the host device is received.

一方、印刷工程では、受信された指令データが印刷指令である場合、当該印刷指令にて指定された文字または図形を印刷する。   On the other hand, in the printing process, when the received command data is a print command, a character or a graphic designated by the print command is printed.

さらに、取得工程では、受信された指令データが情報取得指令である場合、当該情報取得指令に指定されたパラメータを取得する。   Furthermore, in the acquisition step, when the received command data is an information acquisition command, the parameter specified in the information acquisition command is acquired.

そして、機器情報送信工程では、取得されたパラメータにあらかじめ対応付けられた印刷装置の機器情報が存在する場合、当該機器情報を、ホスト装置へ送信する。   Then, in the device information transmission step, when there is device information of the printing apparatus associated with the acquired parameter in advance, the device information is transmitted to the host device.

一方、エラー情報送信工程では、パラメータにあらかじめ対応付けられた印刷装置の情報が存在しない場合、あらかじめ定めたエラー情報を、ホスト装置へ送信する。   On the other hand, in the error information transmission step, when there is no information about the printing apparatus associated with the parameter in advance, predetermined error information is transmitted to the host apparatus.

また、本発明の制御方法において、エラー情報送信工程にて送信されうるエラー情報は、いずれも、機器情報送信工程にて送信されうる機器情報のいずれとも一致しないように構成することができる。   In the control method of the present invention, any error information that can be transmitted in the error information transmission step can be configured not to match any of the device information that can be transmitted in the device information transmission step.

また、本発明の制御方法は、情報を不揮発に記憶する不揮発記憶部をさらに備える印刷装置をさらに制御し、不揮発に記憶された情報の一部または全部は、取得されたパラメータにあらかじめ対応付けられた印刷装置の機器情報であるように構成することができる。   In addition, the control method of the present invention further controls a printing apparatus that further includes a nonvolatile storage unit that stores information in a nonvolatile manner, and part or all of the information stored in the nonvolatile manner is associated with the acquired parameters in advance. It can be configured to be device information of a printing apparatus.

また、本発明の制御方法は、更新工程をさらに備えるように構成することができる。   In addition, the control method of the present invention can be configured to further include an update process.

ここで、更新工程では、受信された指令データが情報記憶指令である場合、当該情報記憶指令に指定された情報を、不揮発記憶部に記憶して更新する。   Here, in the update step, when the received command data is an information storage command, the information specified in the information storage command is stored in the nonvolatile storage unit and updated.

また、本発明の制御方法は、分割工程と、分割済情報送信工程とをさらに備えるように構成することができる。   In addition, the control method of the present invention can be configured to further include a division step and a divided information transmission step.

ここで、分割工程では、取得されたパラメータにあらかじめ対応付けられた印刷装置の機器情報が存在し、当該機器情報のサイズが所定のサイズを超える場合、当該機器情報を当該所定のサイズ以下の複数の分割済情報に分割する。   Here, in the dividing step, when there is device information of the printing apparatus associated in advance with the acquired parameter and the size of the device information exceeds a predetermined size, the device information is a plurality of the predetermined size or less. Is divided into divided information.

一方、分割済情報送信工程では、機器情報送信工程による当該機器情報の送信にかえて、分割工程にて分割された複数の分割済情報を、ホスト装置へ順に送信する。   On the other hand, in the divided information transmission step, instead of transmitting the device information in the device information transmission step, a plurality of pieces of divided information divided in the division step are sequentially transmitted to the host device.

また、本発明の制御方法において、分割済情報送信工程にて順に送信されうる分割済情報のそれぞれは、いずれも、機器情報送信工程にて送信される機器情報のいずれとも一致しないように構成することができる。   In the control method of the present invention, each of the pieces of divided information that can be sequentially transmitted in the divided information transmission step is configured not to match any of the device information transmitted in the device information transmission step. be able to.

本発明の第4の観点に係るインターフェース装置の制御方法は、印刷装置と、ホスト装置と、に接続されるインターフェース装置を制御し、ホスト側受信工程と、エラー情報報告工程と、印刷装置側送信工程と、印刷装置側受信工程と、ホスト装置側送信工程とを備えるように構成する。   An interface device control method according to a fourth aspect of the present invention controls an interface device connected to a printing device and a host device, and receives a host side reception step, an error information reporting step, and a printing device side transmission. A process, a printing apparatus side reception process, and a host apparatus side transmission process.

ここで、ホスト側受信工程では、ホスト装置から送信される指令データを受信する。   Here, in the host-side receiving step, command data transmitted from the host device is received.

一方、エラー情報報告工程では、ホスト側受信工程にて受信された指令データが、情報取得指令であって、あらかじめ定めたパラメータを指定するものである場合、あらかじめ定めたエラー情報を、ホスト装置へ送信する。   On the other hand, in the error information reporting step, when the command data received in the host-side receiving step is an information acquisition command and designates a predetermined parameter, the predetermined error information is sent to the host device. Send.

さらに、印刷装置側送信工程では、そうでない場合、受信された指令データを印刷装置へ送信する。
印刷装置側受信工程と、印刷装置から送信される情報を受信する。
Furthermore, in the printing apparatus side transmission step, if not, the received command data is transmitted to the printing apparatus.
The printing apparatus side receiving process and information transmitted from the printing apparatus are received.

そして、ホスト装置側送信工程では、印刷装置側受信工程にて受信された情報を、ホスト装置へ送信する。   In the host device side transmission step, the information received in the printing device side reception step is transmitted to the host device.

また、本発明のインターフェース装置の制御方法において、エラー情報報告工程では、当該情報取得指令に指定されるパラメータが、インターフェース装置が備えるパラメータ記憶部であってパラメータを記憶するものに記憶されるパラメータである場合、あらかじめ定めたパラメータを指定するものであると判断するように構成することができる。   In the interface device control method of the present invention, in the error information reporting step, the parameter specified in the information acquisition command is a parameter stored in the parameter storage unit included in the interface device and storing the parameter. In some cases, it can be configured to determine that a predetermined parameter is designated.

本発明の第5の観点に係るコンピュータ読取可能な情報記録媒体は、コンピュータを上記印刷装置、もしくは、インターフェース装置として機能させ、もしくは、コンピュータに上記印刷装置、もしくは、インターフェース装置の制御方法を実行させるプログラムを記録するように構成する。   A computer-readable information recording medium according to a fifth aspect of the present invention causes a computer to function as the printing apparatus or the interface apparatus, or causes the computer to execute a control method for the printing apparatus or the interface apparatus. Configure to record the program.

また、本発明の情報記録媒体は、コンパクトディスク、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、ディジタルビデオディスク、磁気テープ、または、半導体メモリであるように構成することができる。   The information recording medium of the present invention can be configured to be a compact disk, a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a digital video disk, a magnetic tape, or a semiconductor memory.

また、本発明の情報記録媒体をWWW(World Wide Web)のサーバコンピュータに装着して、ここから適宜プログラムをダウンロードし、上記コンピュータに記憶させてプログラムを更新し、更新されたプログラムをコンピュータ(典型的には、印刷装置、もしくは、インターフェース装置が有するCPU(Central Processing Unit))に実行させることにより、本発明の印刷装置を実現することができる。   In addition, the information recording medium of the present invention is mounted on a WWW (World Wide Web) server computer, the program is downloaded as appropriate from this, stored in the computer, the program is updated, and the updated program is stored in the computer (typically Specifically, the printing apparatus of the present invention can be realized by causing a printing apparatus or a CPU (Central Processing Unit) included in the interface apparatus to execute.

本発明の第1の実施形態に係る印刷装置の概要構成を示す模式図。1 is a schematic diagram showing a schematic configuration of a printing apparatus according to a first embodiment of the present invention. 本発明の第1の実施形態に係る印刷装置において実行される通常処理の流れを示すフローチャート。3 is a flowchart showing a flow of normal processing executed in the printing apparatus according to the first embodiment of the present invention. 本発明の第2の実施形態に係るインターフェース装置の概要構成を示す模式図。The schematic diagram which shows schematic structure of the interface apparatus which concerns on the 2nd Embodiment of this invention.

以下に本発明の一実施形態を説明する。なお、以下に説明する実施形態は説明のためのものであり、本発明の範囲を制限するものではない。したがって、当業者であればこれらの各要素もしくは全要素をこれと均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本発明の範囲に含まれる。   An embodiment of the present invention will be described below. In addition, embodiment described below is for description and does not limit the scope of the present invention. Therefore, those skilled in the art can employ embodiments in which each or all of these elements are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention.

(第1の実施形態:印刷装置)
図1は、本発明の実施形態に係る印刷装置の概要構成を示す模式図である。以下、本図を参照して説明する。
(First embodiment: printing apparatus)
FIG. 1 is a schematic diagram illustrating a schematic configuration of a printing apparatus according to an embodiment of the present invention. Hereinafter, a description will be given with reference to FIG.

印刷装置101は、CPU102によって制御される。ホスト装置から送信される指令データは、インターフェース109にて受信され、RAM104に用意された受信バッファ111に記憶される。これらの処理は、CPU102に対する受信割り込み処理で行われる。   The printing apparatus 101 is controlled by the CPU 102. Command data transmitted from the host device is received by the interface 109 and stored in the reception buffer 111 prepared in the RAM 104. These processes are performed as a reception interrupt process for the CPU 102.

一方、CPU102は、受信バッファ111に記憶された指令データを順次読み出し解釈して、必要があれば文字フォント121が記憶されたROM(Read Only Memory)103などを参照し、印刷イメージをRAM104に用意されたラインバッファ112に展開する。   On the other hand, the CPU 102 sequentially reads and interprets the command data stored in the reception buffer 111, and if necessary, refers to a ROM (Read Only Memory) 103 in which the character font 121 is stored and prepares a print image in the RAM 104. The line buffer 112 is expanded.

さらに、CPU102は、適当なタイミング(たとえば改行指令を受信した場合や、1行分の印刷イメージの展開が終わった場合)で、ラインバッファ112に記憶された印刷イメージにしたがって、印刷ヘッド105を駆動して、用紙に文字や図形を印刷する。   Further, the CPU 102 drives the print head 105 according to the print image stored in the line buffer 112 at an appropriate timing (for example, when a line feed command is received or when the development of the print image for one line is completed). Then, print characters and figures on the paper.

また、指令データが情報取得指令である場合には、ROM103に記憶された印刷装置101の識別番号、製造番号、ファームウェアのバージョン番号などの情報やフラッシュEEPROM106に記憶された各種の情報等を、インターフェース109を介してホスト装置へ送信する。   If the command data is an information acquisition command, information such as the identification number, manufacturing number, and firmware version number of the printing apparatus 101 stored in the ROM 103, various information stored in the flash EEPROM 106, etc. 109 to the host device.

ここで、
・インターフェース109は、通信部として、
・CPU 102は、インターフェース109およびRAM 104の受信バッファ111と共働して、受信部として、
・印刷ヘッド105は、印刷部として、
・CPU 102は、取得部として、
・CPU 102と、インターフェース109およびROM 103、フラッシュEEPROM 106、もしくは、ディップスイッチ等の不揮発に機器情報を記憶する機構(図示せず。)とは、共働して、機器情報送信部として、
・CPU 102は、インターフェース109と共働して、エラー情報送信部として、
・ROM 103、フラッシュEEPROM 106、もしくは、ディップスイッチ等の不揮発に機器情報を記憶する機構は、記憶部として、
・CPU 102は、更新部として、
それぞれ機能する。
here,
The interface 109 serves as a communication unit
The CPU 102 cooperates with the interface 109 and the reception buffer 111 of the RAM 104 as a reception unit.
The print head 105 is a printing unit
CPU 102 as an acquisition unit
The CPU 102 and the interface 109 and the ROM 103, the flash EEPROM 106, or a mechanism (not shown) for storing device information in a nonvolatile manner such as a dip switch cooperates as a device information transmission unit.
The CPU 102 cooperates with the interface 109 as an error information transmission unit.
A mechanism for storing device information in a nonvolatile manner such as ROM 103, flash EEPROM 106, or DIP switch is a storage unit.
CPU 102 as an update unit
Each functions.

上記の受信割り込み処理に対し、これらの過程を通常処理と呼ぶ。この通常処理のフローチャートを図2に示す。   These processes are called normal processes for the above reception interrupt process. A flowchart of this normal processing is shown in FIG.

CPU102は、受信バッファ111に指令データが記憶されているか否かを調べる(ステップS201)。   The CPU 102 checks whether command data is stored in the reception buffer 111 (step S201).

受信バッファ111に指令データが記憶されていない場合(ステップS201;No)、待機して(ステップS202)、ステップS201に戻る。ステップS202の待機中には、ほかの処理を実行することができる。また、待機中に上述の受信割り込み処理が起動されて、受信バッファ111に指令データが追加されることがある。   If command data is not stored in the reception buffer 111 (step S201; No), the process waits (step S202) and returns to step S201. While waiting in step S202, other processing can be executed. In addition, the reception interrupt process described above may be activated during standby, and command data may be added to the reception buffer 111.

一方、受信バッファ111に指令データが記憶されている場合(ステップS201;Yes)、先頭の指令データを取得し(ステップS203)、当該指令データの種類を調べる(ステップS204)。受信バッファ111は、いわゆるFIFO(First In First Out)のバッファ、あるいはキューとして働き、受信割り込み処理によって指令データが追加され、ステップS203において指令データが取り出される。   On the other hand, when the command data is stored in the reception buffer 111 (step S201; Yes), the top command data is acquired (step S203), and the type of the command data is examined (step S204). The reception buffer 111 functions as a so-called FIFO (First In First Out) buffer or queue, command data is added by reception interrupt processing, and command data is extracted in step S203.

指令データが文字や図形を指定する印刷指令であった場合(ステップS204;印刷)、指定された文字や図形のフォント定義をROM103から読み出して(ステップS205)、当該フォント定義をラインバッファ112に展開する(ステップS206)。   When the command data is a print command for designating a character or graphic (step S204; printing), the font definition of the designated character or graphic is read from the ROM 103 (step S205), and the font definition is expanded in the line buffer 112. (Step S206).

さらに、ラインバッファ112がいっぱいになったか否かを調べ(ステップS207)、いっぱいになっている場合(ステップS207;Yes)、当該ラインバッファ112に展開された印刷イメージにしたがって印刷ヘッド105を駆動して、文字や図形を用紙に印刷し(ステップS208)、ラインバッファをクリアして(ステップS209)、ステップS201に戻る。   Further, it is checked whether or not the line buffer 112 is full (step S207). If the line buffer 112 is full (step S207; Yes), the print head 105 is driven according to the print image developed in the line buffer 112. Then, characters and figures are printed on paper (step S208), the line buffer is cleared (step S209), and the process returns to step S201.

いっぱいになっていない場合(ステップS207;No)、ステップS201に戻る。   If it is not full (step S207; No), the process returns to step S201.

一方、指令データが改行指令であった場合(ステップS204;改行)、ステップS208に進み、現在までにラインバッファ112に展開された印刷イメージを用紙に印刷する。   On the other hand, if the command data is a line feed command (step S204; line feed), the process proceeds to step S208, and the print image developed in the line buffer 112 so far is printed on paper.

一方、指令データが情報取得指令であった場合(ステップS204;情報取得)、当該情報取得指令が備えるパラメータを取得して(ステップS210)、当該パラメータが指定する機器情報を印刷装置101から取得できるか否かを調べる(ステップS211)。   On the other hand, when the command data is an information acquisition command (step S204; information acquisition), the parameter included in the information acquisition command is acquired (step S210), and the device information specified by the parameter can be acquired from the printing apparatus 101. Whether or not (step S211).

情報取得指令のパラメータに対応する機器情報が印刷装置101から取得できる場合(ステップS211;Yes)、パラメータに対応付けられた機器情報をROM103やフラッシュEEPROM106から取得し(ステップS212)、インターフェース109を介してホスト装置に送信し(ステップS213)、ステップS201に戻る。   If the device information corresponding to the parameter of the information acquisition command can be acquired from the printing apparatus 101 (step S211; Yes), the device information associated with the parameter is acquired from the ROM 103 or the flash EEPROM 106 (step S212), and the interface 109 is used. To the host device (step S213), and the process returns to step S201.

一方、情報取得指令のパラメータに対応する機器情報が印刷装置101から取得できない場合(ステップS211;No)、エラー情報をホスト装置に送信し(ステップS214)、ステップS201に戻る。   On the other hand, when the device information corresponding to the parameter of the information acquisition command cannot be acquired from the printing apparatus 101 (step S211; No), error information is transmitted to the host apparatus (step S214), and the process returns to step S201.

一方、指令データがフラッシュEEPROM106の更新指令であった場合(ステップS204;更新)、当該指令で指定されたデータ列を、当該指令で指定された、もしくは、予め当該指令に対応付けられたフラッシュEEPROM106のアドレスに、記憶して更新し(ステップS215)、ステップS201に戻る。   On the other hand, if the command data is an update command for the flash EEPROM 106 (step S204; update), the data string designated by the command is designated by the command or the flash EEPROM 106 previously associated with the command. The address is stored and updated (step S215), and the process returns to step S201.

一方、指令データがその他の指令であった場合(ステップS204;その他)、当該指令データに対応する処理を実行して(ステップS216)、ステップS201に戻る。   On the other hand, when the command data is another command (step S204; other), processing corresponding to the command data is executed (step S216), and the process returns to step S201.

(情報取得指令)
次に、情報取得指令の実施形態について説明する。なお、以下の説明においては、十六進数を表す接頭辞として0xを用いる。また、適宜、十六進数に対応するASCII(American Standard Code for Information Interchange)コードを用いて説明する。また、文字のASCIIコードを表現するため文字を単一引用符で囲む。
(Information acquisition command)
Next, an embodiment of the information acquisition command will be described. In the following description, 0x is used as a prefix representing a hexadecimal number. In addition, description will be made using an ASCII (American Standard Code for Information Interchange) code corresponding to a hexadecimal number as appropriate. In order to express the ASCII code of the character, the character is enclosed in single quotation marks.

なお、ASCIIコードの0x20〜0x7eは文字や図形の印刷指令に相当し、ASCIIコードの0x0aもしくは0x0dは改行指令に相当する。   The ASCII code 0x20 to 0x7e corresponds to a character or figure print command, and the ASCII code 0x0a or 0x0d corresponds to a line feed command.

本実施形態では、情報取得指令として、以下に示す3バイトのデータを用いる。   In the present embodiment, the following 3-byte data is used as the information acquisition command.

GS 'I' n
0x1d 0x49 n
上段に示したものはASCIIコードによる表記であり、下段に示したものは十六進数による表記である。なおnは指定されるパラメータを意味し、0x00〜0xffの256通りを指定することができる。
GS 'I' n
0x1d 0x49 n
What is shown at the top is ASCII code notation, and what is at the bottom is hexadecimal notation. Note that n means a designated parameter, and 256 patterns from 0x00 to 0xff can be designated.

nの値を適宜指定することにより、印刷装置101の各種の機器情報を得ることができる。以下に、パラメータnの値とこれに対応する機器情報の種類、印刷装置101からホスト装置へ機器情報を送信する際のフォーマットを示す。   Various device information of the printing apparatus 101 can be obtained by appropriately specifying the value of n. The value of parameter n, the type of device information corresponding to the parameter n, and the format for transmitting device information from the printing apparatus 101 to the host device are shown below.

(1)n=0x01またはn=0x31の場合、印刷装置101の機種の識別子を返送する。機種の識別子として、0x01〜0xffのいずれかの1バイト長のデータを用いている。このデータを、機器情報としてホスト装置へ返送する。この情報取得指令に対しては、既存のプリンタのすべてが対応している。   (1) When n = 0x01 or n = 0x31, the identifier of the model of the printing apparatus 101 is returned. As the model identifier, one-byte data of 0x01 to 0xff is used. This data is returned to the host device as device information. All existing printers support this information acquisition command.

(2)n=0x41〜0x45またはn=0x70〜0x71の場合、それぞれに対応するプリンタ情報を返送する。これに対して、以下のようなフォーマットで機器情報(プリンタ情報)をホスト装置へ返送する。   (2) When n = 0x41 to 0x45 or n = 0x70 to 0x71, printer information corresponding to each is returned. On the other hand, device information (printer information) is returned to the host device in the following format.

0x5f プリンタ情報のバイト列 0x00なお、プリンタ情報のバイト列には0x00は含まれない。この情報取得指令に対しては、既存のプリンタに対応していないものがある。     0x5f Byte string of printer information 0x00 Note that 0x00 is not included in the byte string of printer information. Some of these information acquisition commands are not compatible with existing printers.

ここでいうプリンタ情報には、以下のような情報があり、そのそれぞれがパラメータnの上記の範囲のいずれかに割り当てられている。   The printer information here includes the following information, each of which is assigned to one of the above ranges of the parameter n.

・バージョン番号
・メーカー名
・機種名
一方、上記のnの値以外の値が指定された場合や、指定されたnの値に対応する機器情報がない場合(すなわち、印刷装置101がその情報取得指令に対応していない場合)、印刷装置101は、エラー情報をホスト装置に送信する。エラー情報のフォーマットは以下の通りである。
・ Version number ・ Manufacturer name ・ Model name On the other hand, when a value other than the above value of n is specified, or when there is no device information corresponding to the specified value of n (that is, the printing apparatus 101 acquires the information) When the command does not correspond to the command), the printing apparatus 101 transmits error information to the host apparatus. The format of error information is as follows.

(1)n=0x01または0x31が指定された場合、既存のプリンタはすべてこの指令に対応しているためエラー情報を返信することはないが、何らかの障害が発生した場合などには1バイト長の0x00をエラー情報として返信してもよい。   (1) If n = 0x01 or 0x31 is specified, all existing printers will respond to this command and will not send error information. 0x00 may be returned as error information.

(2)上記以外のnが指定された場合であって、当該情報取得指令に印刷装置が未対応の場合、以下のフォーマットで未対応である旨を通知する。   (2) When n other than the above is designated, and the printing apparatus is not compatible with the information acquisition command, it is notified that the information is not supported in the following format.

0x3d n 0x00
このようにすれば、ホスト装置では、機器情報とエラー情報とを区別することができる。
0x3d n 0x00
In this way, the host device can distinguish between device information and error information.

(サイズの大きい機器情報の取扱い)
上記実施形態では、印刷装置101からホスト装置へ返信される機器情報やエラー情報は、いずれも80バイト以下であった。一般的には、このサイズは、ホスト装置の受信バッファ内に完全におさまるため、ホスト装置において受信が失敗するおそれはない。
(Handling large equipment information)
In the above embodiment, the device information and error information returned from the printing apparatus 101 to the host apparatus are both 80 bytes or less. In general, this size is completely within the reception buffer of the host device, so that there is no possibility of reception failure in the host device.

しかしながら、印刷装置101が備えるフラッシュEEPROM106に記憶された情報を得る際には、80バイトを超えるデータを印刷装置101からホスト装置へ返送しなければならない場合がある。   However, when obtaining information stored in the flash EEPROM 106 provided in the printing apparatus 101, data exceeding 80 bytes may have to be returned from the printing apparatus 101 to the host apparatus.

このように長いデータを返送する際には、長いデータを分割し、これを順に送信すればよい。その際に、分割済のデータは、上記のような80バイト以下のデータを返送する際のデータと区別がつくようにしなければならない。以下に、長いデータを分割する際の分割フォーマットの実施例を述べる。   When returning such long data, the long data may be divided and transmitted in order. At that time, the divided data must be distinguished from the data when returning the data of 80 bytes or less as described above. An example of a division format when dividing long data will be described below.

印刷装置101が備えるフラッシュEEPROM106が記憶するデータを機器情報としてホスト装置で取得したい場合、以下のような指令データを情報取得指令として送信する。   When data stored in the flash EEPROM 106 included in the printing apparatus 101 is to be acquired as device information by the host device, the following command data is transmitted as an information acquisition command.

GS '(' 'C' a nl nh
これは、フラッシュEEPROM106のアドレス範囲a〜a+(nl+nh×256)-1に記憶されたnl+nh×256バイトの情報を機器情報として取得することを指定するものである。
GS '(''C' a nl nh
This specifies that information of nl + nh × 256 bytes stored in the address range a to a + (nl + nh × 256) −1 of the flash EEPROM 106 is acquired as device information.

これに対して、印刷装置101は、フラッシュEEPROM106の中から情報取得指令のパラメータに指定された場所のデータのバイト列を読み出す。このバイト列が、以下のようなものであったとする。   In response to this, the printing apparatus 101 reads out the byte string of the data at the location specified by the parameter of the information acquisition command from the flash EEPROM 106. Assume that this byte sequence is as follows.

c[1] c[2] … c[nl+nh×256]
nl+nh×256が80バイト以下の場合は、以下のようなフォーマットを用いて返送を行う。
c [1] c [2]… c [nl + nh × 256]
When nl + nh × 256 is 80 bytes or less, it is returned using the following format.

0x3d 0x20 nl c[1] c[2] … c[nl+nh×256] 0x00
ここで、0x3d 0x20は、このデータ列が一括送信されたものであることを意味する。
0x3d 0x20 nl c [1] c [2]… c [nl + nh × 256] 0x00
Here, 0x3d 0x20 means that this data string is sent in a batch.

これの全体の長さは、最大でも84バイトであるので、ホスト装置の受信バッファにおさまる。また、nh=0が成立するので、確認のため、データのバイト列の長さを送信しておく際には、nlのみを送信すればよい。   Since the total length of this is at most 84 bytes, it fits in the reception buffer of the host device. Since nh = 0 holds, when transmitting the length of the data byte string, only nl needs to be transmitted for confirmation.

一方、nl+nh×256が80バイトを超える場合は、印刷装置は、上記バイト列を、80バイトごとに分割し、そのそれぞれにヘッダ情報とフッタ情報とを付加する。分割済データ列は、本実施形態では、以下のようなフォーマットを有する。   On the other hand, if nl + nh × 256 exceeds 80 bytes, the printing apparatus divides the byte string into 80 bytes and adds header information and footer information to each of them. The divided data string has the following format in the present embodiment.

0x3d 0x70 m p 分割されたデータ列 0x00
ここで、0x3d 0x70は、このデータ列が分割されたものであることを意味する。
0x3d 0x70 mp Divided data string 0x00
Here, 0x3d 0x70 means that this data string is divided.

mは、このデータ列が、全体のデータ列の何番目のものであるかを意味する。例えば全データを6つに分割した場合、m=5が最初の分割済データ列であり、m=4がその次の分割済データ列であり、m=0が最後の分割済データ列である。   m means the order number of the entire data string. For example, when all data is divided into 6, m = 5 is the first divided data string, m = 4 is the next divided data string, and m = 0 is the last divided data string. .

pは、このデータ列の長さを表す。本実施形態では、一般にはp = 80であるが、最後に送信するデータ列では、p = 1〜80である。   p represents the length of this data string. In this embodiment, in general, p = 80, but p = 1-80 in the last data string to be transmitted.

印刷装置は、まず先頭の分割済データ列をホスト装置に送信する。   The printing apparatus first transmits the first divided data string to the host apparatus.

ホスト装置は、データ列を受信した後にACK/NAK/CANを送信して印刷装置に次の動作を指令する。   After receiving the data string, the host device transmits ACK / NAK / CAN to instruct the printing device to perform the next operation.

ACK:次の分割済データ列の送信を指令
NAK:今の分割済データ列の再送信を指令
CAN:未送信の分割済データ列の破棄およびデータ送信の中止を指令
印刷装置は、ホスト装置からのACK/NAK/CANの指令に従って分割済データ列を順次ホスト装置に送信する。
ACK: Command to send the next divided data string
NAK: Re-send the current divided data string
CAN: Command to discard unsent divided data string and stop data transmission The printing apparatus sequentially transmits the divided data string to the host apparatus in accordance with an ACK / NAK / CAN command from the host apparatus.

本実施形態では、
・CPU 102は、分割部として、
・CPU 102は、RAM 104およびインターフェース109と共働して、分割済情報送信部として、
それぞれ、さらに機能する。
In this embodiment,
CPU 102 is a dividing unit
The CPU 102 cooperates with the RAM 104 and the interface 109 as a divided information transmission unit.
Each functions further.

これらの分割済データ列のそれぞれは、上記の分割を必要としない機器情報を表すデータ列のいずれとも異なるため、ホスト装置では、印刷装置101から送信されたデータ列が、単独のデータ列で機器情報を表すのか、それともそれが分割済データ列であって、複数集まって機器情報を表すのかを容易に知ることができる。   Since each of these divided data strings is different from any of the data strings representing the device information that does not need to be divided, the data string transmitted from the printing apparatus 101 is a single data string in the host device. It is easy to know whether it represents information or whether it is a divided data string and a plurality of pieces represent device information.

(第2の実施形態:インターフェース装置)
上記実施形態では、未対応のパラメータを指定するGS Iコマンドを受信した場合、印刷装置101がエラー情報をホスト装置に送信していた。しかしながら、既存の印刷装置の中には、未対応のパラメータを指定するGS Iコマンドを受信すると、何も情報を返送しないものが多数ある。
(Second Embodiment: Interface Device)
In the above embodiment, when a GSI command specifying an unsupported parameter is received, the printing apparatus 101 transmits error information to the host apparatus. However, there are many existing printing apparatuses that do not return any information when receiving GSI commands that specify unsupported parameters.

このような場合、印刷装置101がGS Iコマンドで指定されたパラメータに未対応である旨をホスト装置が知るためには、受信タイムアウトが発生するまで待つしかなかった。   In such a case, in order for the host device to know that the printing apparatus 101 does not support the parameter specified by the GSI command, it has to wait until a reception timeout occurs.

本実施形態では、既存の印刷装置とインターフェース装置とを接続し、これらが全体として、第1の実施形態に係る印刷装置101と同様の機能を果たすようにインターフェース装置を構成する。   In this embodiment, an existing printing apparatus and an interface apparatus are connected, and the interface apparatus is configured such that these perform the same function as the printing apparatus 101 according to the first embodiment as a whole.

図3は、本実施形態に係るインターフェース装置の概要構成を示す模式図である。以下、本図を参照して説明する。   FIG. 3 is a schematic diagram showing a schematic configuration of the interface apparatus according to the present embodiment. Hereinafter, a description will be given with reference to FIG.

インターフェース装置301は、ホスト側IF(Inter Face)302と、印刷装置側IF303と、ホスト側受信部304と、エラー情報報告部305と、印刷装置側送信部306と、印刷装置側受信部307と、ホスト側送信部308と、パラメータ記憶部309とを備える。   The interface device 301 includes a host-side IF (Inter Face) 302, a printing device-side IF 303, a host-side receiving unit 304, an error information reporting unit 305, a printing device-side transmitting unit 306, and a printing device-side receiving unit 307. A host-side transmission unit 308 and a parameter storage unit 309.

ホスト側IF302は、インターフェース装置301とホスト装置とを接続して、インターフェース装置301とホスト装置との通信を行う。たとえばRS−232規格やUSB(Universal Serial Bus)規格等のコネクタが用いられる。   The host IF 302 connects the interface device 301 and the host device, and performs communication between the interface device 301 and the host device. For example, a connector such as RS-232 standard or USB (Universal Serial Bus) standard is used.

印刷装置側IF303は、インターフェース装置301と印刷装置とを接続して、インターフェース装置301と印刷装置との通信を行う。   The printing apparatus side IF 303 connects the interface apparatus 301 and the printing apparatus, and performs communication between the interface apparatus 301 and the printing apparatus.

インターフェース装置301の全体は、既存の印刷装置の拡張スロットにおさまる大きさに構成することが望ましい。この場合、既存の印刷装置の拡張スロットのコネクタと接続するためのコネクタが、印刷装置側IF303として機能する。このコネクタには、RS−232規格のものを用いることができる。   The entire interface device 301 is preferably configured to fit in an expansion slot of an existing printing device. In this case, the connector for connecting with the connector of the expansion slot of the existing printing apparatus functions as the printing apparatus side IF 303. An RS-232 standard connector can be used for this connector.

ホスト側受信部304は、ホスト側IF302を介してホスト装置から送信される指令データを受信する。   The host side receiving unit 304 receives command data transmitted from the host device via the host side IF 302.

次に、インターフェース装置301は、これが備えるCPUなどを用いて以下の条件を満たすか否かを調べる。
・受信された指令データが情報取得指令であり、かつ、
・当該情報取得指令に指定されたパラメータが、パラメータ記憶部309に記憶されているパラメータである。
パラメータ記憶部309には、印刷装置が未対応のパラメータを記憶しておく。
パラメータ記憶部309として、たとえば、ROMなどの不揮発性メモリを用いることができる。このほか、フラッシュEEPROM、ディップスイッチ、ジャンパを用いることもでき、この場合、未対応パラメータの種類を変更することも可能である。
Next, the interface device 301 checks whether or not the following condition is satisfied using a CPU or the like provided therein.
・ The received command data is an information acquisition command, and
The parameter specified in the information acquisition command is a parameter stored in the parameter storage unit 309.
The parameter storage unit 309 stores parameters not supported by the printing apparatus.
As the parameter storage unit 309, for example, a nonvolatile memory such as a ROM can be used. In addition, a flash EEPROM, a DIP switch, and a jumper can be used. In this case, the type of the unsupported parameter can be changed.

上記の条件が満たされる場合、当該情報取得指令を印刷装置に送信したとしても、印刷装置はこれに対して何ら機器情報を返送しないことになる。したがって、インターフェース装置301は、エラー情報報告部305により、ホスト側IF302を介してエラー情報をホスト装置へ送信する。この際のエラー情報は、第1の実施形態と同様のものを用いることができる。   When the above conditions are satisfied, even if the information acquisition command is transmitted to the printing apparatus, the printing apparatus does not return any device information in response thereto. Therefore, the interface device 301 causes the error information report unit 305 to transmit error information to the host device via the host-side IF 302. In this case, the same error information as that in the first embodiment can be used.

一方、上記条件が満たされない場合、印刷装置側送信部306は、受信された指令データを印刷装置側IF303を介して印刷装置へ送信する。これにより、印刷装置に、印刷指令、改行指令、印刷指令対応済の情報取得指令などの各種の指令データが送信される。   On the other hand, when the above condition is not satisfied, the printing apparatus side transmission unit 306 transmits the received command data to the printing apparatus via the printing apparatus side IF 303. As a result, various command data such as a print command, a line feed command, and an information acquisition command corresponding to the print command are transmitted to the printing apparatus.

また、印刷装置に情報取得指令が送信された場合は、印刷装置からは、機器情報が返送されてくる。印刷装置側受信部307は、印刷装置側IF303を介して印刷装置から送信される情報(機器情報を含む。)を受信する。   Further, when an information acquisition command is transmitted to the printing apparatus, device information is returned from the printing apparatus. The printing apparatus side receiving unit 307 receives information (including device information) transmitted from the printing apparatus via the printing apparatus side IF 303.

そして、ホスト装置側送信部308は、印刷装置側受信部307により受信された情報を、ホスト側IF302を介してホスト装置へ送信する。   Then, the host device side transmission unit 308 transmits the information received by the printing device side reception unit 307 to the host device via the host side IF 302.

このように、インターフェース装置301は、既存の印刷装置に与える指令データを中継し、既存の印刷装置が対応していない指令データを受信した場合には、直ちにエラー指令をホスト装置に返送するフィルタとして働く。したがって、ホスト装置では、受信タイムアウトを待たずに、印刷装置が当該情報取得指令に未対応であることを知ることができる。   As described above, the interface device 301 relays the command data given to the existing printing device, and when command data not supported by the existing printing device is received, the interface device 301 immediately returns an error command to the host device. work. Therefore, the host device can know that the printing device does not support the information acquisition command without waiting for a reception timeout.

インターフェース装置301は、既存の印刷装置と組み合わせることにより、全体として、第1の実施形態の印刷装置101と同様の機能を果たすことができる。また、既存の印刷装置そのものを修理改造する必要はなく、印刷装置が備える拡張スロットを用いるだけでよい。   The interface device 301 can perform the same function as the printing device 101 of the first embodiment as a whole by combining with the existing printing device. Further, it is not necessary to repair and modify the existing printing apparatus itself, and it is only necessary to use an expansion slot provided in the printing apparatus.

(発明の効果)
以上説明したように、本発明によれば、ホスト装置から送信された情報取得指令に指定されたパラメータに対応付けられた機器情報が印刷装置にない場合であっても、適切にエラー情報をホスト装置に返すことができる印刷装置、インターフェース装置、これらの制御方法、ならびに、これらを実現するプログラムを記録したコンピュータ読取可能な情報記録媒体を提供することができる。
(The invention's effect)
As described above, according to the present invention, even when the printing apparatus does not have the device information associated with the parameter specified in the information acquisition command transmitted from the host device, the error information is appropriately hosted. It is possible to provide a printing apparatus that can be returned to the apparatus, an interface apparatus, a control method thereof, and a computer-readable information recording medium in which a program that realizes these is recorded.

101 印刷装置、102 CPU、103 ROM、104 RAM、105 印刷ヘッド、106 フラッシュEEPROM、109 インターフェース、111 受信バッファ、112 ラインバッファ、301 インターフェース装置、302 ホスト側IF、303 印刷装置側IF、304 ホスト側受信部、305 エラー情報報告部、306 印刷装置側送信部、307 印刷装置側受信部、308 ホスト側送信部、309 パラメータ記憶部。   101 printing device, 102 CPU, 103 ROM, 104 RAM, 105 print head, 106 flash EEPROM, 109 interface, 111 reception buffer, 112 line buffer, 301 interface device, 302 host side IF, 303 printing device side IF, 304 host side Receiving unit, 305 error information reporting unit, 306 printing apparatus side transmitting unit, 307 printing apparatus side receiving unit, 308 host side transmitting unit, 309 parameter storage unit.

Claims (7)

印刷装置と、ホスト装置と、に接続されるインターフェース装置であって、
前記ホスト装置と通信するホスト側インターフェース部と、
前記印刷装置と通信する印刷装置側インターフェース部と、
前記ホスト装置から送信される指令データを、ホスト側インターフェース部を介して受信するホスト側受信部と、
パラメータを記憶するパラメータ記憶部と、
前記受信された指令データが、情報取得指令であって、前記情報取得指令に指定されるパラメータが、前記パラメータ記憶部に記憶されるパラメータである場合、あらかじめ定めたエラー情報を、前記ホスト側インターフェース部を介して前記ホスト装置へ送信するエラー情報報告部と、
そうでない場合、前記受信された指令データを前記印刷装置側インターフェース部を介して前記印刷装置へ送信する印刷装置側送信部と、
前記印刷装置から送信される情報を前記印刷装置側インターフェース部を介して受信する印刷装置側受信部と、
前記受信された情報を、前記ホスト装置側インターフェース部を介して前記ホスト装置へ送信するホスト装置側送信部と、を備えることを特徴とするインターフェース装置。
An interface device connected to a printing device and a host device,
A host-side interface unit that communicates with the host device;
A printing apparatus side interface unit communicating with the printing apparatus;
A host-side receiving unit that receives command data transmitted from the host device via a host-side interface unit;
A parameter storage unit for storing parameters;
When the received command data is an information acquisition command, and the parameter specified in the information acquisition command is a parameter stored in the parameter storage unit , predetermined error information is stored in the host side interface. An error information report part to be sent to the host device via a part;
Otherwise, a printing apparatus side transmission unit that transmits the received command data to the printing apparatus via the printing apparatus side interface unit;
A printing device-side receiving unit that receives information transmitted from the printing device via the printing device-side interface unit;
An interface device comprising: a host device-side transmission unit that transmits the received information to the host device via the host device-side interface unit.
前記印刷装置側受信部で受信された情報が所定のサイズを超える場合、当該情報を当該所定のサイズ以下の複数の分割済情報に分割する分割部を備え、
前記ホスト装置側送信部は、前記分割部により分割された複数の分割済情報を、前記ホスト装置側インターフェース部を介して前記ホスト装置へ順に送信することを特徴とする請求項1記載のインターフェース装置。
When the information received by the printing apparatus side receiving unit exceeds a predetermined size, the information processing unit includes a dividing unit that divides the information into a plurality of pieces of divided information having the predetermined size or less,
The host device sending unit interface of claim 1, wherein a plurality of split completion information divided by the dividing unit, and transmits through the host device interface part in order to the host device apparatus.
印刷装置と、ホスト装置と、に接続されるインターフェース装置を制御する御方法であって、
前記ホスト装置から送信される指令データを受信するホスト側受信工程と、
前記ホスト側受信工程にて受信された指令データが、情報取得指令であって、前記情報取得指令に指定されるパラメータが、前記インターフェース装置が備えるパラメータ記憶部に記憶されるパラメータである場合、あらかじめ定めたエラー情報を、前記ホスト装置へ送信するエラー情報報告工程と、
そうでない場合、前記受信された指令データを前記印刷装置へ送信する印刷装置側送信工程と、
前記印刷装置から送信される情報を受信する印刷装置側受信工程と、
前記印刷装置側受信工程にて受信された情報を、前記ホスト装置へ送信するホスト装置側送信工程とを備えることを特徴とする制御方法。
A printing apparatus, a control method of controlling an interface device connected to the host device, in,
A host-side receiving process for receiving command data transmitted from the host device;
When the command data received in the host-side receiving step is an information acquisition command, and the parameter specified in the information acquisition command is a parameter stored in a parameter storage unit included in the interface device , Error information reporting step for transmitting the determined error information to the host device;
Otherwise, a printing device side transmission step of transmitting the received command data to the printing device,
A printing device side receiving step for receiving information transmitted from the printing device;
Control method characterized by comprising the information received by the printing apparatus side receiving step, and a host device transmitting step of transmitting to the host device.
前記印刷装置側受信工程で受信された情報が所定のサイズを超える場合、当該情報を当該所定のサイズ以下の複数の分割済情報に分割する分割工程を備え、
前記ホスト装置側送信工程は、前記分割工程により分割された複数の分割済情報を、前記ホスト装置へ順に送信することを特徴とする請求項に記載の制御方法。
When the information received in the printing device side receiving step exceeds a predetermined size, the information processing method includes a dividing step of dividing the information into a plurality of pieces of divided information having the predetermined size or less,
The control method according to claim 3 , wherein the host device side transmission step sequentially transmits a plurality of pieces of divided information divided by the division step to the host device.
コンピュータを、請求項1または2項に記載のインターフェース装置として機能させることを特徴とするプログラムを記録したコンピュータ読取可能な情報記録媒体。 A computer-readable information recording medium on which a program is recorded, which causes a computer to function as the interface device according to claim 1 . コンピュータに、請求項3または4に記載のインターフェース装置の制御方法を実行させることを特徴とするプログラムを記録したコンピュータ読取可能な情報記録媒体。 A computer-readable information recording medium having a program recorded thereon, which causes a computer to execute the control method for an interface device according to claim 3 or 4 . 前記情報記録媒体は、コンパクトディスク、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、ディジタルビデオディスク、磁気テープ、または、半導体メモリであることを特徴とする請求項5または6に記載の情報記録媒体。 The information recording medium according to claim 5 or 6 , wherein the information recording medium is a compact disk, a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a digital video disk, a magnetic tape, or a semiconductor memory. Medium.
JP2010127645A 2010-06-03 2010-06-03 Interface device, control method therefor, and information recording medium Expired - Fee Related JP4973763B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010127645A JP4973763B2 (en) 2010-06-03 2010-06-03 Interface device, control method therefor, and information recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010127645A JP4973763B2 (en) 2010-06-03 2010-06-03 Interface device, control method therefor, and information recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000310775A Division JP4552307B2 (en) 2000-10-11 2000-10-11 Printing apparatus, control method therefor, and information recording medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2011241975A Division JP4973806B2 (en) 2011-11-04 2011-11-04 Printing apparatus, control method therefor, and information recording medium

Publications (2)

Publication Number Publication Date
JP2010228458A JP2010228458A (en) 2010-10-14
JP4973763B2 true JP4973763B2 (en) 2012-07-11

Family

ID=43044730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010127645A Expired - Fee Related JP4973763B2 (en) 2010-06-03 2010-06-03 Interface device, control method therefor, and information recording medium

Country Status (1)

Country Link
JP (1) JP4973763B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5729344B2 (en) * 2012-03-29 2015-06-03 ブラザー工業株式会社 Image processing apparatus and image processing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1055222A (en) * 1996-08-12 1998-02-24 Ricoh Co Ltd Charging management device for printing network and interface device
JP3846089B2 (en) * 1999-02-08 2006-11-15 セイコーエプソン株式会社 Interface device, control method thereof, and information recording medium

Also Published As

Publication number Publication date
JP2010228458A (en) 2010-10-14

Similar Documents

Publication Publication Date Title
US8255894B2 (en) Update data transmission method, computer program for practicing the method, host device and firmware writing system
JP4194532B2 (en) Information processing apparatus and job transfer control method
US9223524B2 (en) Information processing apparatus, information processing method, and recording medium
EP1128256B1 (en) Printer having function of administrating print job and method for administrating print job
US20120033244A1 (en) Data relay apparatus, print control method, and computer program product
JP4973763B2 (en) Interface device, control method therefor, and information recording medium
US20150092232A1 (en) Image processing system
JP4973806B2 (en) Printing apparatus, control method therefor, and information recording medium
JP2016118983A (en) Information processor, print control method and program
JP3711433B2 (en) Printing control method and system, and recording medium
JP4552307B2 (en) Printing apparatus, control method therefor, and information recording medium
JP4086770B2 (en) Information processing apparatus and transfer control method thereof
JP4673542B2 (en) Document transfer device, document transfer system, and document transfer method
JP2005122377A (en) Control device, control indicator, control program, and control indication program
JP4967881B2 (en) Update data transmission method, firmware rewriting system, and update data transmission program
JP7006301B2 (en) Control program and program group
US8610925B2 (en) Image forming apparatus and method of distinguishing XPS file
US20120236352A1 (en) Devices and methods for acquiring model information of a peripheral device by a computer
JP2003011445A (en) Printer controller, printer, printing control method, printing control program and storage medium
JP3807472B2 (en) Interface device, control method thereof, and information recording medium
JP2002091716A (en) Device and method for controlling printing
JPH11296317A (en) Data processor and control method for the same
JP4765814B2 (en) Method and computer for transmitting software update data
JP4635831B2 (en) Printer and printer control method
JPH1097395A (en) Print controller, print control method for printer device, and storage medium stored with computer-readable program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110831

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110906

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111104

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120326

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150420

Year of fee payment: 3

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