JP2004106553A - Communication terminal - Google Patents
Communication terminal Download PDFInfo
- Publication number
- JP2004106553A JP2004106553A JP2003328363A JP2003328363A JP2004106553A JP 2004106553 A JP2004106553 A JP 2004106553A JP 2003328363 A JP2003328363 A JP 2003328363A JP 2003328363 A JP2003328363 A JP 2003328363A JP 2004106553 A JP2004106553 A JP 2004106553A
- Authority
- JP
- Japan
- Prior art keywords
- host
- busy
- data
- printer
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
Description
本発明は、POSシステムに用いられるターミナルプリンタやプロッタなどの通信端末に関するものである。 << The present invention relates to a communication terminal such as a terminal printer or a plotter used in a POS system.
近年、ハードウェアおよびソフトウェアの処理速度および汎用性が増大している。このため、特定の目的を持った情報処理システムをその処理目的に合わせて開発された専用のハードウェアやソフトウェアを組み合わせて構築する代わりに、汎用性のあるハードウェアやソフトウェアを組み合わせることにが多くなっている。汎用性のあるハードウェアやソフトウェアを用いることにより、情報処理システムを安価に構築でき、さらに、その情報処理システムを多目的に用いることができる。また、市販されている多種多用のハードウェアやソフトウェアを組み合わせることにより、ユーザの目的や環境に合致した情報処理システムをフレキシブルに構築することができる。 In recent years, the processing speed and versatility of hardware and software have been increasing. For this reason, information processing systems with specific purposes are often combined with versatile hardware and software, instead of combining dedicated hardware and software developed for the processing purpose. Has become. By using general-purpose hardware and software, an information processing system can be constructed at low cost, and the information processing system can be used for multiple purposes. Further, by combining various types of hardware and software that are commercially available, it is possible to flexibly construct an information processing system that matches the purpose and environment of the user.
POSシステムもその1例であり、従来のプリンタやキーボードなどが一体化されたPOS専用機から、パソコンを中心にプリンタ、ディスプレイあるいはドロワなどを接続したPOSシステムが開発され、ユーザに利用されている。 A POS system is also one example, and a POS system in which a printer, a display, a drawer, or the like is connected mainly to a personal computer has been developed from a conventional POS dedicated machine in which a printer, a keyboard, and the like are integrated, and used by users. .
このようなパソコンを中心とした情報処理システムにおいては、カスタマーディスプレイ、ドロワ、プリンタ、プロッタ、モデム、バーコードリーダなどの多種多用なデータ処理端末が用いられる。これらのデータ処理端末の多くは、シリアル通信ポート(RS−232C)を介してパソコンに接続され、パソコンをホスト側としてデータ端末との間で処理用のデータあるいはコマンドデータが転送される。従って、転送されるデータやコマンドの互換性を保ち、これらを保護するためにインタフェースの仕様や制御方式は規格化されており、例えば、ホスト側からデータ端末に送られるデータやコマンドが転送途中で欠落するのを防止するためにデータ端末レディ(DTR)信号が用意されている。このDTR信号によって端末側がデータあるいはコマンドを受信可能な状態であるか否かをホスト側に指示できるようになっており、ホスト側は、DTR信号を受けるとデータセットレディ(DSR)信号を返し、双方が動作可能な状態であることを確認した後にデータやコマンドを送信することによりデータやコマンドが欠落するのを防止している。 情報 処理 In such an information processing system centered on a personal computer, various types of data processing terminals such as a customer display, a drawer, a printer, a plotter, a modem, and a barcode reader are used. Many of these data processing terminals are connected to a personal computer via a serial communication port (RS-232C), and processing data or command data is transferred between the personal computer and the data terminal using the personal computer as a host. Therefore, in order to maintain the compatibility of data and commands to be transferred and to protect them, the specifications and control method of the interface are standardized.For example, data and commands sent from the host to the data terminal are transferred during the transfer. A data terminal ready (DTR) signal is provided to prevent loss. The DTR signal allows the terminal to instruct the host whether the terminal is ready to receive data or a command, and upon receiving the DTR signal, the host returns a data set ready (DSR) signal, Data and commands are transmitted after confirming that both are operable, thereby preventing data and commands from being lost.
POSシステムに多用されている通信端末であるターミナルプリンタにおいては、受信バッファが満杯状態、カバーオープンなどの原因によって受信バッファからのデータの取り出しが一時的に停止してしまうホールド状態、または、紙ジャムなどのエラー状態の要因によってDTR信号がビジィーになる。この信号を受けて、ホスト側のプリンタドライバはデータまたはコマンドの送信を一次停止してデータを保護すると共にディスプレイなどにエラーの発生を表示する。そして、プリンタ側におけるこれらの要因がオペレータなどによって解決され、プリンタの機能が正常な状態にリセットされると、オペレータがホスト側およびプリンタ側を操作してデータ通信が再開されて印刷が行われる。 2. Description of the Related Art In a terminal printer, which is a communication terminal frequently used in a POS system, a reception buffer is full, a hold state in which data extraction from the reception buffer is temporarily stopped due to a cover open, or a paper jam. The DTR signal becomes busy due to an error state factor such as the above. In response to this signal, the host-side printer driver temporarily stops transmission of data or commands to protect the data, and displays an error occurrence on a display or the like. When these factors on the printer side are resolved by an operator or the like, and the functions of the printer are reset to a normal state, the operator operates the host side and the printer side to resume data communication and perform printing.
近年のPOSシステム用のターミナルプリンタとして、ロール紙を用いたレシート印字を行う機能に加えて、単票用紙を用いたスリップ印字を行う機能や磁気インク文字を読む機能などの複数の機能を備えたプリンタが登場している。このような複合的な機能を備えたプリンタにおいては、スリップ印字を行うために単票用紙待ちのホールド状態となってDTR信号がビジィーとなり、その後、レシート印字のデータがホスト側で用意できているにもかかわらず印刷処理が進行しないといった事態が発生する。また、プリンタ側で紙ジャムなどのエラーが起こるとDTR信号がビジィーとなりデータ転送を中止する。その後、オペレータがエラーを解決してプリンタをリセットとプリンタに送信されまま印刷されてないデータが欠落したり、データの2重に印刷されるなどに事態が発生する。 As a terminal printer for recent POS systems, in addition to the function of printing receipts using roll paper, it has multiple functions such as the function of slip printing using cut-sheet paper and the function of reading magnetic ink characters. Printers have appeared. In the printer having such a complex function, the slip-printing is performed, the cut-sheet paper wait state is held, the DTR signal becomes busy, and then the receipt printing data can be prepared on the host side. Nevertheless, a situation occurs in which the printing process does not proceed. If an error such as a paper jam occurs on the printer side, the DTR signal becomes busy and the data transfer is stopped. After that, when the operator resolves the error and resets the printer, data that has not been printed while being transmitted to the printer is lost, or data is printed twice.
これらの事態は、例えばソフトウェアによってプリンタが用紙待ち状態であることを検出したり、プリンタに発生したエラーの種類を検出し、それに対応してデータを再送したり、あるいは、バッファ内のデータを消去するなどの処理を行うことにより解決することができる。しかしながら、汎用的なシルアルポートドライバやプリンタドライバにおいては、DTR信号がビジィーになるとコマンドを転送することができないので、ホスト側のソフトウェアでは対処できない。ホスト側のソフトウェアで対処するためには、DTR信号を無視してシリアル端末にアクセスできる特殊なドライバを作成する必要があり、汎用的なオペレーティングシステムを用いた情報処理システムが構築できなくなってしまう。さらに、ホスト側とシリアル端末との間でDTR信号などの規格化あるいは標準化されたインタフェース信号と異なる信号によって通信を制御するシステムでは、汎用性のあるハードウェアやソフトウェアを使用できないので、システムの拡張性が失われてしまう。また、DTR信号を単に無視してコマンドやデータを送るのでは、転送中にデータが欠落する危険があり、システムの信頼性が低下してしまうのでPOSシステムなどのデータの信頼性が必要とされるシステムは構築できない。 For example, the software detects that the printer is waiting for paper, detects the type of error that occurred in the printer, and resends the data accordingly, or erases the data in the buffer. The problem can be solved by performing a process such as performing. However, a general-purpose serial port driver or printer driver cannot transfer a command when the DTR signal becomes busy, and cannot be dealt with by software on the host side. In order to cope with the host software, it is necessary to create a special driver that can access the serial terminal ignoring the DTR signal, which makes it impossible to construct an information processing system using a general-purpose operating system. Furthermore, in a system in which communication between the host and the serial terminal is controlled by a signal different from a standardized or standardized interface signal such as a DTR signal, general-purpose hardware and software cannot be used, so the system is expanded. Sex is lost. Further, if commands and data are sent simply by ignoring the DTR signal, there is a risk that data will be lost during transfer and the reliability of the system will be reduced. Therefore, data reliability of a POS system or the like is required. System cannot be built.
そこで、本発明においては、ホスト側と通信端末側との間のシリアル転送における規格化あるいは標準化された仕様を変更することなく、ホスト側のソフトウェアによってホールド状態やエラー状態に対処することが可能な通信端末を提供することを目的としている。また、通信端末の汎用性を犠牲にすることなく、ホスト側からホールド状態やエラー状態への関与を可能にした通信端末を提供することを目的としている。さらに、ホールド状態やエラー状態にホスト側が対処できると共に、ホスト側から端末へ転送されるデータの欠落を防止し、信頼性の高い情報処理システムを構築できる通信端末を提供することを目的としている。 Therefore, in the present invention, it is possible to deal with a hold state or an error state by software on the host side without changing the standardized or standardized specification in serial transfer between the host side and the communication terminal side. It aims to provide a communication terminal. It is another object of the present invention to provide a communication terminal that allows the host to participate in a hold state or an error state without sacrificing the versatility of the communication terminal. It is another object of the present invention to provide a communication terminal capable of coping with a hold state or an error state by a host, preventing a loss of data transferred from the host to a terminal, and constructing a highly reliable information processing system.
このため、本発明の通信端末においては、
(1)ホストから送られてきたデータを受信するインタフェースと、
該インタフェースを介して受信したデータを一時的に格納する受信バッファと、
前記受信バッファに格納されたデータを取り出して処理する処理部と、
前記ホストに対し、前記ホストから前記インタフェースを介してのデータ受信が可能かビジィーかを通知する通信許可手段と、
を有する通信端末において、
エラー状態またはホールド状態のとき、前記通信許可手段により前記ビジィーを前記ホストに通知する第1のモードと、前記エラー状態または前記ホールド状態のときでも前記通信許可手段によるビジィーを前記ホストに通知しない第2のモードと、を選択するスイッチ手段を設けたことを特徴とする。
(2)ホストから送られてきたデータを受信するインタフェースと、
該インタフェースを介して受信したデータを一時的に格納する受信バッファと、
前記受信バッファに格納されたデータを取り出して処理する処理部と、
前記ホストに対し、前記ホストから前記インタフェースを介してのデータ受信が可能かビジィーかを通知する通信許可手段と、
を有する通信端末において、
エラー状態またはホールド状態のとき前記ホストに対し前記ビジィーを前記ホストに通知する第1のモードと、前記エラー状態またはホールド状態のときでも前記ビジィーを前記ホストに通知しない第2のモードと、を選択的にセットされるビジィー要因選択部を有し、
前記ビジィー要因選択部が第2のモードがセットされたときは、前記ホストから前記状態に対処するリアルタイムコマンドを受信可能であることを特徴とする。
(3)ホストから送られてきたデータを受信するインタフェースと、
該インタフェースを介して受信したデータを一時的に格納する受信バッファと、
前記受信バッファに格納されたデータを取り出して処理する処理部と、
前記ホストに対し、前記ホストから前記インタフェースを介してのデータ受信が可能かビジィーかを通知する通信許可手段と、
を有する通信端末において、
前記ビジィー通知の出力要因を選択するビジィー要因選択部を備えたことを特徴とする。
(4)前記ビジィー要因選択部は、エラー状態またはホールド状態のときでも、前記通信許可手段が前記ビジィーを前記ホストに出力しないモードを選択可能なことを特徴とする。
(5)前記受信バッファに格納された前記データから順番にコマンドを解析する第1の解析手段と、
前記インタフェースから前記受信バッファに渡される前記データからコマンドを解析可能な第2の解析手段と、
を備えることを特徴とする。
Therefore, in the communication terminal of the present invention,
(1) an interface for receiving data sent from the host;
A reception buffer for temporarily storing data received via the interface,
A processing unit that retrieves and processes the data stored in the reception buffer;
Communication permission means for notifying the host whether data reception from the host via the interface is possible or busy,
In a communication terminal having
A first mode in which the communication permission means notifies the host of the busy state in the error state or the hold state; and a first mode in which the communication permission means does not notify the host of the busy state in the error state or the hold state. A switch means for selecting between the second mode and the second mode is provided.
(2) an interface for receiving data sent from the host;
A reception buffer for temporarily storing data received via the interface,
A processing unit that retrieves and processes the data stored in the reception buffer;
Communication permission means for notifying the host whether data reception from the host via the interface is possible or busy,
In a communication terminal having
A first mode for notifying the host of the busy to the host when in the error state or the hold state, and a second mode for not notifying the host to the busy even in the error state or the hold state are selected. It has a busy factor selection section that is set
When the second mode is set by the busy factor selection unit, a real-time command corresponding to the state can be received from the host.
(3) an interface for receiving data sent from the host;
A reception buffer for temporarily storing data received via the interface,
A processing unit that retrieves and processes the data stored in the reception buffer;
Communication permission means for notifying the host whether data reception from the host via the interface is possible or busy,
In a communication terminal having
A busy factor selection unit for selecting an output factor of the busy notification is provided.
(4) The busy factor selection unit can select a mode in which the communication permission unit does not output the busy to the host even in an error state or a hold state.
(5) first analysis means for sequentially analyzing commands from the data stored in the reception buffer;
Second analysis means capable of analyzing a command from the data passed from the interface to the reception buffer;
It is characterized by having.
以上説明したように、本発明の通信端末は、ビジィー通知の出力要因を選択するビジィー要因選択部を備えたため、受信バッファフル以外のビジィー要因に応じて、リアルタイムコマンドを実行するホスト・実行しないホストのそれぞれに対応することができるという効果を奏する。 As described above, since the communication terminal of the present invention includes the busy factor selection unit that selects the output factor of the busy notification, the host that executes the real-time command and the host that does not execute the real-time command according to the busy factor other than the reception buffer full Is achieved.
以下に図面を参照して本発明の実施の形態を説明する。図1に、本発明に係る通信端末の例として、POSシステムを構築するのに好適なターミナルプリンタを示してある。本例のターミナルプリンタ10は、スリップ紙19、ジャーナル紙18およびレシート紙17を記録紙として印刷できるプリンタである。スリップ紙19は不定型の伝票用紙などの単票用紙であり、プリンタ10の手前のスリップ紙挿入口21から矢印19Aの方向に挿入すると、不図示の紙検出器がスリップ用紙を検出し、ケース15内の紙経路を通って印刷ヘッド1に導かれる。そして、印刷ヘッド1が左右の方向1Aに動いて印刷が行われ、さらに矢印19Bの方向に動いて排出される。本例のプリンタ10は、ワイヤドットタイプの印刷ヘッド1が採用されており、インクリボン3を介してスリップ紙19や、後述するジャーナル紙18およびレシート紙17に印刷を行う。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a terminal printer suitable for constructing a POS system as an example of a communication terminal according to the present invention. The
ジャーナル紙18およびレシート紙17は共に連続用紙であり、本例のプリンタ10ではロール紙の状態で供給されており、印刷ヘッド1に対してスリップ用紙19と反対の方向からケース15内を通って印刷ヘッド1に導かれる。レシート用紙17は領収書としての情報が印刷された後、カッターユニット14に導かれてカットされ客先に渡さるようになっている。ジャーナル紙18は、記録用紙としての情報が印刷され、不図示の巻き取り装置に巻き取られ保管される。それぞれのロール紙17および18には、ロール紙の終わりを検出するニアエンド検出器20が装着されている。ニアエンド検出器20は、ロール紙の外径により矢印20Aの方向に揺動する検出レバー20aと、この検出レバー20aによりオンオフするスイッチ20bを備えている。ロール紙が終わりに近づいて外径が小さくなると検出レバー20aが内側に揺動し、その結果、スイッチ20bがオフとなってロール紙の終わりが近いことを検出できる。
The
プリンタ10のケース15には、図示されていないがカバーが装着されており、ロール紙17あるいは18、またはインクリボン3を交換するなどの場合を除きカバーをケース15に被せた状態で印刷が行われるようになっている。このため、カバーの開閉を検出するためのカバー検出器22がケース15に装着されており、カバーが開けられると自動的にホールド状態となって印刷機能を一時停止するなどの処理が取れるようになっている。
A cover (not shown) is attached to the
図2に、パソコン30をホスト側とし、本例のターミナルプリンタ10を通信端末として用いて構成したPOSシステムの一例を示してある。このPOSシステムにおいては、パソコン30のシリアル通信ポート(RS−232C)ドライバ31を介してカスタマディスプレイ40、ターミナルプリンタ10およびキャッシュドロワ45がシリアルに接続されており、RS−232Cを介してこれら3つのデータ端末にデータを送信して処理できるようになっている。このため、本例のパソコン30のオペレーティングシステム32は、シリアル通信ポートドライバ31に加え、POS用のオペレーティングシステム(OS)33と、キーボードやディスプレイなどのパソコン30を一般に構成する機器およびそれらを制御するアプリケーションソフトウェアを制御する基本OS34とを備えている。POS用のOS33は、プリンタ10、カスタマディスプレイ40およびキャッシュドロワ45の制御用のOS35と、プリンタ10をレシートあるいはジャーナル用紙といった連続用紙に印刷するレシート印刷用のドライバ36と、プリンタ10をスリップ用紙を用いて印刷するスリップ印刷用のドライバ37と、カスタマディスプレイ40を制御するためのドライバ38と、さらに、キャッシュドロワ45を制御するためのドライバ39を備えている。
FIG. 2 shows an example of a POS system in which the
パソコン30のPOS用アプリケーションソフトウェア5および表計算などのその他のアプリケーションソフト6は基本OS34およびPOS用OS33の制御の下で動作する。また、カスタマディスプレイ40、ターミナルプリンタ10およびキャッシュドロワ45との間のデータの送受信は、ドライバ36〜39、ポートドライバ31およびその他の汎用OS33を介して行われる。
RS−232Cポートドライバ31には、カスタマディスプレイ40のインタフェース41、ターミナルプリンタ10のインタフェース51およびキャッシュドロワ45のインタフェース46がこの順番に接続されている。ポートドライバ31から出力されたそれぞれの端末に対するデータあるいはコマンドは、これらのインタフェースによって選別される。カスタマディスプレイ40に対するデータおよびコマンドはディスプレイ処理部42によって処理され、ドロワ45に対するコマンドはドロワ処理部47によって処理される。
The
The
ターミナルプリンタ10においては、インタフェース51に受信されたデータがプリンタ10に対するデータであると割り込みが発生してデータ受信部52がインタフェースからデータを取り出す。インタフェース51から取り出されたデータは同様の割り込み処理の中でリアルタイムコマンド解析部53を通ってリアルタイムコマンドが解析された後、受信バッファに格納される。リアルタイムコマンド解析部53は、データ受信部52から送られたデータの中に含まれたリアルタイムコマンドを認識すると、そのコマンドに基づき予め設定された処理を行う。リアルタイムコマンド解析部53を通って受信バッファ54に格納されたデータは、コマンド解析部55によって1データずつ取り出され、データコードが解析された後、コマンドデータであれば制御部57によってそのコマンドに従った処理が行われ、印刷データであればプリンタバッファ56に収納される。次に、制御部57は、コマンドに従って印刷処理部60の制御を行うと共に、プリンタバッファ56に記憶された印刷データを印刷処理部60に送って印刷を行う。
In the
制御部57は、印刷処理部60の設定および制御、さらに印刷データの管理などの他に、プリンタ10の各部の状況を監視する機能も備えており、その結果がコモンステータス検出部59に出力される。例えば、受信バッファ54が満杯に近い状態であったり、単票用紙待ちの状態であるとその状況(ステータス)がコモンステータス検出部59に与えられる。また、印刷処理部60においても、プリンタ機構61の状態、例えば、カバーが開放されてデータ処理が一時的に中止されたホールド状態、紙ジャムなどのエラー状態、あるいはロール紙のニアエンド検出などのステータスがステータス検出部62に与えられるようになっている。
The
コモンステータス検出部59およびプリンタ機構のステータス検出部62において検出されたステータスはステータス送信部70のステータスデータ生成部72に供給される。ステータス送信部70は、ステータスデータ生成部72に集められたプリンタ機構61のステータスおよび受信バッファの状況などのプリンタ10に係わるその他のステータスを自動ステータス送信部71によってホスト側に発信する機能を備えている。自動ステータス送信部71は、制御部57の制御の下に所定のステータスの状態が変化したときにそのステータスデータを送信するようになっており、状態が変化してステータスデータを送信するトリガとなるステータスは選択できるようになっている。自動ステータス送信部71から出力されたステータスデータはデータ送信部58を介してインタフェース51に供給され、ホスト側のRS−232Cポートドライバ31に送られる。そして、プリンタドライバなどを備えたPOS用OS33を介してアプリケーションソフト5に伝達され、アプリケーションソフト5がプリンタ10に発生した状況にマッチした処理を選択してプリンタ10に指示できるようになっている。
The statuses detected by the common
このようなステータス送信部70を設けておくことにより、プリンタ機構やターミナルプリンタ10の状況が変化するとステータスデータがアプリケーション5側に伝達されるのでアプリケーション側でターミナルプリンタ10の全体の状況を把握することができる。また、状況が変化したときにだけステータスデータを送信するようにできるので、ステータスデータの送受信に関わるホスト側およびターミナルプリンタ側における処理負荷が軽減され、シリアル転送におけるスループットを向上できる。
By providing such a
コモンステータス検出部59における受信バッファが満杯であることを示すステータス(以降においてバッファフルステータス)59a、プリンタ機構61のステータス検出部62におけるエラー要因(エラーステータス)62aおよびホールド要因(ホールドステータス)62bは通信許可部80のビジィー要因選択部82にも供給される。そして、バッファフル59a、エラー62aあるいはホールド62bのいずれかの要因が検出されると、ビジィー設定部83がインタフェース51に対しビジィー信号を出力してホスト30の側にデータ送信の禁止を指示し、送信されたデータがデータ端末側、すなわちターミナルプリンタ10の側で処理されずに欠落するのを防止している。RS−232Cを介してデータをシリアル転送する場合は、DTR(データ端末レディー)信号がビジィー信号の機能を果たすために用意されており、ホスト側のRS−232Cポートドライバ31、あるいはプリンタドライバ36および37は、DTR信号が高レベルのときのみデータ送信を行い、ターミナルプリンタ10がビジィーになってDTR信号が低レベルになるとデータ送信を停止するようになっている。
The status (hereinafter, buffer full status) 59a indicating that the reception buffer is full in the common
ニアエンド検出などの所定のステータスが変化してステータスデータが送信されると、アプリケーション5からターミナルプリンタ10にステータスを確認するコマンドや、送られたステータス以外のプリンタの状況を把握するために全てのステータスデータの送信を指示するコマンドを出力するようにできる。従来のターミナルプリンタにおいては、このコマンドは受信バッファ54に印刷データと共に蓄えられ、データ処理が進んでコマンドを解析する順番になるとそのコマンドに従った処理が行われる。このため、受信バッファ54にデータが蓄積されているとコマンドの処理に非常に時間がかかる。さらに、受信バッファ54がフルのときにコマンドを送信しても受信バッファ54に受け入れられないのでコマンドは実施されない。
When status data is transmitted due to a change in a predetermined status such as near-end detection, a command for confirming the status from the
そこで、本例のターミナルプリンタ10においては、リアルタイムコマンド解析部53を設けてあり、リアルタイムコマンドが送信された場合は、受信バッファ54に転送される前に解析してリアルタイムコマンドに従った処理が行えるようにしている。リアルタイムコマンドは、例えば、「GS」+「R」の2バイトの受信データによって判別され、この2バイトに続く1バイトの値nによりプリンタにおいて実行される処理内容が指示される。nにより指示される処理内容は、例えば次の表1に示されるようなものがある。
Therefore, the
さらに、リアルタイムコマンドはターミナルプリンタ10において受信バッファ54に起因する時間遅れなしに処理されるので、エラー要因を解除したり、あるいは、スリップ用紙がセットされていないためにホールド状態となっているときにスリップ印刷を解除してレシート印字を開始するなどといったフレキシブルな処理をアプリケーション5の側でコントロールすることが可能になる。
Further, since the real-time command is processed in the
しかしながら、ターミナルプリンタ10でエラーが発生したり、ホールド状態となると、通信許可部80のビジィー要因選択部82においてビジィーと判断される。このため、通信許可部80においては、ビジィー信号設定部83においてDTR信号が低レベルとなる。従って、ホスト側のOS33はターミナルプリンタ10に対するデータ転送を中止するので、ホストのアプリケーション5がリアルタイムコマンドをターミナルプリンタ10に送信しようとしてもホスト30からターミナルプリンタ10に送信されず、ターミナルプリンタ10のリアルタイムコマンド解析部53にコマンドが到達しない。従って、アプリケーション5がリアルタイムコマンドを使用する機能を備えており、ターミナルプリンタ10がリアルタイムコマンドを解析する機能を備えていても、上記のようにビジィー要因と重なるとリアルタイムコマンドを用いた処理が行えず、リアルタイムコマンドの実質的な機能が制限される。
However, if an error occurs in the
ホスト側のOS32を用いずに、アプリケーション5で直にシリアルポートを制御したり、あるいはリアルタイムコマンドを使用するアプリケーション5のために専用のOS(プリンタドライバなど)を作成してパソコンに導入することも可能である。しかしながら、OS32を用いずにアプリケーション5を作成するのは非常に手間と時間のかかる作業であり、特に、OS32の機能を利用しない場合は各メーカのパソコン用に独自のプログラムを開発する必要がある。また、ドライバなどの機能を取り込むとアプリケーション5自体が非常に大きく高価なものになる。従って、OS32を用いずに各メーカのパソコンでそれぞれ動くリアルタイムコマンド用対応のPOSアプリケーションソフトを作成することは現実的に無理である。また、特殊のOSを導入すると、表計算などの他のアプリケーションソフトが使用できないので、システムの拡張性がなくなり、ユーザの環境や目的に合わせてカスタマイズすることも難しくなってしまう。
The serial port can be directly controlled by the
また、ターミナルプリンタ10からDTR信号のビジィー機能を削除して、ステータス送信部70から送信されたステータスデータのみでターミナルプリンタに対するデータの信頼性を確保することも可能である。しかしながら、そのようなターミナルプリンタでは、ステータスデータを解析できないアプリケーションプログラムに対しては使用できず、汎用性がなくなってしまう。さらに、リアルタイムコマンドを用いないアプリケーションプログラムに対してはDTR信号の機能を削除するメリットは認められず、シリアル転送されるデータを保護するという点ではDTR信号の機能を保持しておく必要がある。
(4) It is also possible to eliminate the busy function of the DTR signal from the
そこで、本例のターミナルプリンタ10においては、通信許可部80のビジィー要因選択部82でビジィー信号を出力する要因を選択できるようにしており、エラー62a、ホールド62bおよびバッファフル59aのいずれかが発生するとビジィーと判断するモード1と、エラー62aおよびホールド62bはビジィーと判断せずに、バッファフル59aのみをビジィー要因とするモード2のいずれかを選択できるようにしてある。バッファフルの場合は、その後に送信されたデータが欠落する恐れがあるのでビジィー要因に残してあるが、自動ステータス送信部71によってバッファフルがホストのアプリケーション側に伝達され、リアルタイムコマンドなどを用いてデータの欠落を防止できるにすれば、モード2においてはビジィー信号を出力しないようにすることも可能である。
Therefore, in the
本例のターミナルプリンタ10は、このようなモード1およびモード2をディップスイッチを用いたスイッチ部81で設定できるようになっている。さらに、本例のターミナルプリンタ10においては、ディップスイッチ81によってモード2を選択すると自動的に、自動ステータス送信部71の制御をホールド要因が発生したときにステータスデータを送信するように設定している。これにより、ホールド要因が発生してDTR信号が低レベルに変化、すなわちビジィーにならなくとも、ホストのアプリケーション5がステータスデータによってホールド状態であることを把握できるので、データの欠落などを防止する処理を取ることができる。従って、DTR信号の機能からホールド要因を削除してもデータ転送の信頼性を確保することができる。もちろん、エラー要因が発生した場合に自動ステータス送信部71からステータスをアプリケーション5に送り、エラー要因に応じた対処をリアルタイムコマンドによってプリンタに指示してデータの信頼性を高めた処置をとることも可能である。
このように、本例のターミナルプリンタ10は、リアルタイムコマンドに対応したアプリケーションの下では、ディップスイッチ81によってビジィー要因選択部82をモード2にセットし、ホールドやエラーではビジィー信号設定部83においてDTR信号が低レベルにならないようにすることが可能である。このため、ホールド中やエラー中にリアルタイムコマンドを有効に活用してアプリケーション5にいっそうフレキシブルな処理機能を持たせることができる。一方、リアルタイムコマンドに対応していないアプリケーションの下では、ディップスイッチ81によってビジィー要因選択部82をモード1にセットし、ホールド、エラーおよびバッファフルといった通常の要因でDTR信号を低レベルにし、転送データの保護を図ることができる。なお、モード1およびモード2の切替えは、ソフトスイッチによって行うことももちろん可能であり、ターミナルプリンタ10を用いるアプリケーションの種類によって、ホスト側からビジィー要因選択部82の設定を随時変えることも可能である。
In the
As described above, the
図3に本例のターミナルプリンタ10の通信許可部80を用いてビジィー信号を出力する処理を示してある。通信許可部80においては、ステップ91、92および93でエラー要因、ホールド要因およびバッファフルを検出する。そして、ステップ91および92でエラー要因およびホールド要因を検出すると、ステップ94においてモード選択部81に設定されたモードを判断する。モード設定部81においてモード2がセットされていると、ステップ96において自動ステータス送信部71を用いてエラー要因あるいはホールド要因をホスト側に送る。
FIG. 3 shows a process of outputting a busy signal using the
しかしながら、ビジィー信号は発生させない。一方、ステップ94においてモード1がセットされているか、あるいはステップ93においてバッファフルが検出されると、ステップ95に移行し、ビジィー信号を発生させてホスト側に送信し、ホスト側からのデータの転送を停止させる。
。 However, no busy signal is generated. On the other hand, if
このように、本例のターミナルプリンタ10は、RS−232Cを介して送信されたデータが印刷処理部60で処理できなくなった場合に、ビジィー信号であるDTR信号を低レベルにするモード(モード1)と、DTR信号を低レベルにしないモード(モード2)を切換できるようになっている。従って、ホスト側のアプリケーションソフトがリアルタイムコマンドなどの機能を有し、ターミナルプリンタ10でデータ処理ができない時に対処するコマンドを送信可能なソフトウェアであるときは、ターミナルプリンタをモード2に設定する。これによって、エラー要因やホールド要因が発生してもアプリケーションソフトによってターミナルプリンタを操作できるようになるので、アプリケーションソフトウェアによってエラー要因やホールド要因に対応した処置が安全に、そして確実に行うことができる。従って、オペレータの労力を軽減し、POSで管理される売上データなどの諸データの安全性を確保することができる。一方、リアルタイムコマンドなどの制御機能を持たないアプリケーションソフトによってターミナルプリンタを用いるときは、モード1に設定することによりDTR信号を用いてホスト側との通信を管理できデータの安全性を従来と同様に確保することができる。
As described above, the
さらに、DTR信号の要因をターミナルプリンタ側で設定できるようにすることにより、DTR信号に関連するホスト側のOSの仕様を変更しなくとも上記のようにリアルタイムコマンドの機能を十分に活用することができる。従って、POSシステムなどのシステムを構築する際にアプリケーションソフトの汎用性およびプリンタの汎用性を減じることなく、アプリケーションソフト側からエラーやホールドの状態となったターミナルプリンタに関与し処理できるシステムを構築することができる。 Further, by allowing the terminal printer to set the cause of the DTR signal, the function of the real-time command can be fully utilized as described above without changing the specification of the host OS related to the DTR signal. it can. Therefore, when constructing a system such as a POS system, a system is constructed in which the application software can participate in and process an error or hold state terminal printer without reducing the versatility of the application software and the versatility of the printer. be able to.
なお、上記においては、POSシステムを構築する際に好適なターミナルプリンタ10を通信端末の例として本発明を説明してあるが、通信端末はターミナルプリンタに限定されることはなく、プロッタ、スキャナーさらにはモデムなどのシリアルインタフェースに接続可能な通信端末、また、パラレルインタフェースに接続されるプリンタなどに対し本発明を適用できることは勿論である。そして、これらの通信端末に対し本発明を適用することにより、送信されたデータの処理ができない状態になった場合でも、ホスト側のアプリケーションプログラムを通信端末の問題解決に関与させることが可能になる。従って、通信端末側にエラー要因などが発生した場合にオペレータに処理を一任するのではなく、アプリケーション側で対処することができる。そして、オペレータの労力を軽減すると共にミスオペレーションの危険をなくし、より安全で信頼性の高いシステムを、パソコンや汎用OSといった汎用性が高く、カスタマイズが容易で安価なハードウェアやソフトウェアを用いて構築することが可能になる。
In the above description, the present invention has been described with the
1・・印刷ヘッド
5、6・・アプリケーションプログラム
3・・リボンカセット
10・・ターミナルプリンタ
17・・レシート用紙
18・・ジャーナル用紙
19・・スリップ用紙
20・・ニアエンド検出器
22・・カバー検出器
30・・パソコン(ホスト)
31・・シリアルポートドライバ
32・・オペレーティングシステム
33・・POS用OS
34・・基本OS
36〜39・・ドライバ
40・・カスタマディスプレイ
41、46・・インタフェース
42、47・・処理部
45・・キャッシュドロワ
51・・プリンタインタフェース
52・・データ受信部
53・・リアルタイムコマンド解析部
54・・受信バッファ
55・・コマンド解析部
56・・プリンタバッファ
57・・制御部
58・・データ送信部
59・・コモンステータス検出部
59a・・バッファフル要因
60・・印刷処理部
61・・プリンタ機構
62・・ステータス検出部
62a・・エラー要因
62b・・ホールド要因
70・・ステータス送信部
71・・自動ステータス送信部
72・・ステータスデータ生成部
80・・通信許可部
81・・モード選択部(スイッチ部)
82・・ビジィー要因選択部
83・・ビジィー信号設定部
1. Print heads 5, 6,
31,
34 Basic OS
36 to 39,
82 busy
Claims (5)
該インタフェースを介して受信したデータを一時的に格納する受信バッファと、
前記受信バッファに格納されたデータを取り出して処理する処理部と、
前記ホストに対し、前記ホストから前記インタフェースを介してのデータ受信が可能かビジィーかを通知する通信許可手段と、
を有する通信端末において、
エラー状態またはホールド状態のとき、前記通信許可手段により前記ビジィーを前記ホストに通知する第1のモードと、前記エラー状態または前記ホールド状態のときでも前記通信許可手段によるビジィーを前記ホストに通知しない第2のモードと、を選択するスイッチ手段を設けたことを特徴とする通信端末。 An interface for receiving data sent from the host,
A reception buffer for temporarily storing data received via the interface,
A processing unit that retrieves and processes the data stored in the reception buffer;
Communication permission means for notifying the host whether data reception from the host via the interface is possible or busy,
In a communication terminal having
A first mode in which the communication permission means notifies the host of the busy state in the error state or the hold state; and a first mode in which the communication permission means does not notify the host of the busy state in the error state or the hold state. 2. A communication terminal, comprising: switch means for selecting one of two modes.
該インタフェースを介して受信したデータを一時的に格納する受信バッファと、
前記受信バッファに格納されたデータを取り出して処理する処理部と、
前記ホストに対し、前記ホストから前記インタフェースを介してのデータ受信が可能かビジィーかを通知する通信許可手段と、
を有する通信端末において、
エラー状態またはホールド状態のとき前記ホストに対し前記ビジィーを前記ホストに通知する第1のモードと、前記エラー状態またはホールド状態のときでも前記ビジィーを前記ホストに通知しない第2のモードと、を選択的にセットされるビジィー要因選択部を有し、
前記ビジィー要因選択部が第2のモードがセットされたときは、前記ホストから前記状態に対処するリアルタイムコマンドを受信可能であることを特徴とする通信端末。 An interface for receiving data sent from the host,
A reception buffer for temporarily storing data received via the interface,
A processing unit that retrieves and processes the data stored in the reception buffer;
Communication permission means for notifying the host whether data reception from the host via the interface is possible or busy,
In a communication terminal having
A first mode for notifying the host of the busy to the host when in the error state or the hold state, and a second mode for not notifying the host to the busy even in the error state or the hold state are selected. It has a busy factor selection section that is set
The communication terminal according to claim 1, wherein when the second mode is set by the busy factor selection unit, a real-time command corresponding to the state can be received from the host.
該インタフェースを介して受信したデータを一時的に格納する受信バッファと、
前記受信バッファに格納されたデータを取り出して処理する処理部と、
前記ホストに対し、前記ホストから前記インタフェースを介してのデータ受信が可能かビジィーかを通知する通信許可手段と、
を有する通信端末において、
前記ビジィー通知の出力要因を選択するビジィー要因選択部を備えたことを特徴とする通信端末。 An interface for receiving data sent from the host,
A reception buffer for temporarily storing data received via the interface,
A processing unit that retrieves and processes the data stored in the reception buffer;
Communication permission means for notifying the host whether data reception from the host via the interface is possible or busy,
In a communication terminal having
A communication terminal comprising a busy factor selection unit for selecting an output factor of the busy notification.
前記インタフェースから前記受信バッファに渡される前記データからコマンドを解析可能な第2の解析手段と、
を備えることを特徴とする請求項1乃至4記載の内1に通信端末。
First analysis means for sequentially analyzing commands from the data stored in the reception buffer;
Second analysis means capable of analyzing a command from the data passed from the interface to the reception buffer;
The communication terminal according to any one of claims 1 to 4, further comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003328363A JP3938123B2 (en) | 2003-09-19 | 2003-09-19 | Data processing terminal and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003328363A JP3938123B2 (en) | 2003-09-19 | 2003-09-19 | Data processing terminal and control method thereof |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP14335296A Division JPH09323463A (en) | 1996-06-05 | 1996-06-05 | Communication terminal and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004106553A true JP2004106553A (en) | 2004-04-08 |
JP3938123B2 JP3938123B2 (en) | 2007-06-27 |
Family
ID=32290763
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003328363A Expired - Lifetime JP3938123B2 (en) | 2003-09-19 | 2003-09-19 | Data processing terminal and control method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3938123B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011180648A (en) * | 2010-02-26 | 2011-09-15 | Seiko Epson Corp | Printer, control method for the same and printer system |
-
2003
- 2003-09-19 JP JP2003328363A patent/JP3938123B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011180648A (en) * | 2010-02-26 | 2011-09-15 | Seiko Epson Corp | Printer, control method for the same and printer system |
Also Published As
Publication number | Publication date |
---|---|
JP3938123B2 (en) | 2007-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH09323463A (en) | Communication terminal and control method thereof | |
US7869063B2 (en) | Printing apparatus, printer control method, printer control program, and printing system | |
US5594653A (en) | Printing apparatus, a control method therefor, and a data processing apparatus using said printing apparatus | |
US6362896B1 (en) | Printing apparatus with a cash drawer control function, and a control method therefor | |
CN101638009B (en) | Printing device, control method for a printing device | |
US20080212125A1 (en) | Printer control apparatus and method | |
JP4924748B2 (en) | Printer and received data processing method | |
KR100535442B1 (en) | Printing appratus, method of the printing appratus, and data processing apparatus using the printing apparatus | |
US6886050B2 (en) | Method for controlling a communication terminal device and rewritable storage medium having initialization setting data | |
JPH10333856A (en) | Communication terminal and its control method, and computer readable recording medium recorded with control program | |
JP2004106553A (en) | Communication terminal | |
JP3992022B2 (en) | Printer control method | |
JP4865140B2 (en) | Printer, received data processing method and program | |
JP3856341B2 (en) | Interface control method | |
US8279475B2 (en) | Printing apparatus and method for processing real-time command using the printing apparatus | |
JP3985135B2 (en) | Device initialization method in control system, control system, program for causing computer to execute device initialization method, and recording medium recording this program | |
JP2001282394A (en) | Communication terminal equipment, its control method and its recording medium | |
US7966434B2 (en) | Detailed description of the preferred embodiments | |
JP4380219B2 (en) | Printing apparatus, printing apparatus control method, and printing apparatus control program | |
JPH10161826A (en) | Printer controller | |
JP2010105230A (en) | Printing apparatus and method for controlling the same | |
JP2002200804A (en) | Printing apparatus, controlling method therefor, and information processing system, using the printing apparatus | |
JPH04142956A (en) | Printer controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050831 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050906 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051104 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060808 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061006 |
|
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: 20070306 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070319 |
|
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: 20110406 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110406 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120406 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130406 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130406 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140406 Year of fee payment: 7 |
|
EXPY | Cancellation because of completion of term |