JP2002032848A - Information processing vending machine - Google Patents

Information processing vending machine

Info

Publication number
JP2002032848A
JP2002032848A JP2000213432A JP2000213432A JP2002032848A JP 2002032848 A JP2002032848 A JP 2002032848A JP 2000213432 A JP2000213432 A JP 2000213432A JP 2000213432 A JP2000213432 A JP 2000213432A JP 2002032848 A JP2002032848 A JP 2002032848A
Authority
JP
Japan
Prior art keywords
controller
printing
vending machine
communication
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000213432A
Other languages
Japanese (ja)
Other versions
JP4026303B2 (en
Inventor
Kimiyasu Mizuno
公靖 水野
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2000213432A priority Critical patent/JP4026303B2/en
Publication of JP2002032848A publication Critical patent/JP2002032848A/en
Application granted granted Critical
Publication of JP4026303B2 publication Critical patent/JP4026303B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processing vending machine for printing an image photographed by a digital camera, capable of performing proper control for printing-signified information, shortening the printing time of a vending machine printer and reducing the cost of the device by properly constructing a main controller, a printing controller, a memory, etc., for the vending machine printer provided in the vending machine. SOLUTION: The main controller 6 reads a one-picture image out of media. The read image data is transmitted to a printing controller 10. Then, a printing order is given from the main controller 6 to the printing controller 10 for printing operation. The memory 9 is connected to a slave communication controller 8. The slave communication controller 8 handles a reception divided into printing data and printing control commands.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は自動販売装置に関
し、特にユーザがディジタルカメラ等で撮影した画像を
自動販売機型のプリンタで印刷するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vending machine, and more particularly to a vending machine type printer which prints images taken by a user with a digital camera or the like.

【0002】[0002]

【従来の技術】従来より、飲料水の自動販売機等さまざ
まな自動販売機が市販されている。それらのひとつに、
自動販売機型のプリンタ(以降、自販機プリンタで示
す)がある。この装置はディジタルカメラ等で撮影した
画像を記憶したメディア(例えば、PCカード、コンパ
クトフラッシュ(登録商標)等)を、自販機プリンタに
直接挿入してもらい、その記憶メディアの印刷データを
印刷することにより、所定の印刷料金を徴収するもので
ある。
2. Description of the Related Art Conventionally, various vending machines such as vending machines for drinking water have been marketed. One of them,
There is a vending machine type printer (hereinafter, referred to as a vending machine printer). In this device, a medium (for example, a PC card, Compact Flash (registered trademark), etc.) storing an image photographed by a digital camera or the like is directly inserted into a vending machine printer, and print data of the storage medium is printed. And a predetermined printing fee.

【0003】ところで、上記自販機プリンタの内部構成
は、記録メディアの読み出しや、ユーザとのI/F制御
等の自販機プリンタ全体の制御を行うメインコントロー
ラと、プリント処理そのものを行うプリントコントロー
ラの2つに分けることができる。メインコントローラと
プリントコントローラは物理的にも距離が離れているた
め、例えばシリアル通信によって、印刷データの受け渡
しやプリント制御コマンドの送受信を行っている。
The vending machine printer has two internal configurations: a main controller that controls the entire vending machine printer, such as reading of a recording medium and I / F control with a user, and a print controller that performs print processing itself. Can be divided. Since the main controller and the print controller are physically far apart, for example, they transmit and receive print data and transmit and receive print control commands by serial communication.

【0004】また、自販機プリンタで印刷を行う場合、
先ず、メインコントローラがメディアから1画面分の画
像を読み出す。そして、読み出した画像データをプリン
トコントローラに送信する。その後、メインコントロー
ラからプリントコントローラに対して印刷命令が送ら
れ、印刷が行われる。
Further, when printing is performed by a vending machine printer,
First, the main controller reads an image for one screen from the medium. Then, the read image data is transmitted to the print controller. Thereafter, a print command is sent from the main controller to the print controller, and printing is performed.

【0005】また、1画面分の画像データはデータ容量
が大きいので、よく使われる方法にDMAコントローラ
を用いる方法がある。図5は、従来技術におけるDMA
コントローラを使う場合の構成を示す図である。メイン
コントローラ16は、自販機プリンタ全体の制御、ユー
ザI/F制御、記憶メディアの読み出しなどを行うもの
である。また、マスタ用通信コントローラ17は、メイ
ンコントローラ16の通信を担当する構成である。スレ
ーブ用通信コントローラ18は、マスタ用通信コントロ
ーラ17との間で通信を行い、メインコントローラ16
からの印刷データや印刷制御コマンドを受信し、それぞ
れに適した処理を行う構成である。
[0005] Further, since image data for one screen has a large data capacity, a method often used is a method using a DMA controller. FIG. 5 shows a conventional DMA.
FIG. 3 is a diagram illustrating a configuration when a controller is used. The main controller 16 controls the entire vending machine printer, controls user I / F, reads storage media, and the like. The master communication controller 17 is configured to take charge of communication with the main controller 16. The slave communication controller 18 communicates with the master communication controller 17 and communicates with the main controller 16.
This is a configuration in which print data and print control commands are received from the printer, and processing suitable for each is performed.

【0006】メモリ19は、メインコントローラ16か
ら送られてきた画像データを格納するために主に使用さ
れ、プリントコントローラ20はメインコントローラ1
6からの指示に従って、印刷処理の全てを行っている。
[0006] The memory 19 is mainly used for storing image data sent from the main controller 16, and the print controller 20 is used for storing the main controller 1.
In accordance with the instruction from No. 6, all the printing processes are performed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、DMA
コントローラを用いる方法では、画像データの送信途中
に、プリントコントローラ20への制御コマンドを混入
させることはできない。
SUMMARY OF THE INVENTION However, DMA
In the method using a controller, a control command to the print controller 20 cannot be mixed during transmission of image data.

【0008】プリント自販機において印刷時間を短縮す
る方法の1つとして、1画面のプリント中に、そのバッ
クグランドで次の画面のデータ転送を行うように並列処
理を行うものがある。この並列処理を行うと、次の画像
のデータ転送の途中に現在の印刷に自販機プリンタの印
刷に関する制御コマンドが混ざる場合がある。そのた
め、DMAコントローラを用いる従来手法では制御が複
雑になる。
As one of the methods for reducing the printing time in a print vending machine, there is a method in which, while printing one screen, parallel processing is performed so that data transfer of the next screen is performed in the background. When this parallel processing is performed, a control command related to printing by a vending machine printer may be mixed with current printing during data transfer of the next image. Therefore, control is complicated in the conventional method using the DMA controller.

【0009】一方、DMAコントローラを用いず、プリ
ントコントローラに通信処理を行わせようとする提案で
は、プリントコントローラの処理が重くなり、印刷時間
を短縮するためには高速なCPUをプリントコントロー
ラに挿入する必要があり、コストアップに繋がる。
On the other hand, in a proposal in which the print controller performs communication processing without using the DMA controller, the processing of the print controller becomes heavy, and a high-speed CPU is inserted into the print controller in order to shorten the printing time. Required, leading to increased costs.

【0010】また、一般的にも、通信により送られてき
た情報が印刷データなのか、プリント制御コマンドなの
かの判断ができない。この場合、その制御を行うための
専用のCPUが必要になりコストアップになる。
[0010] In general, it is not possible to determine whether information transmitted by communication is print data or a print control command. In this case, a dedicated CPU for performing the control is required, and the cost is increased.

【0011】本発明は、上記課題に鑑みてなされたもの
であり、自販機プリンタ内のメインコントローラやプリ
ントコントローラ、メモリ等を適切に構成することによ
って、情報に適した制御を行うことができ、例えば自販
機プリンタの印刷時間を短くし、また装置のコストを低
減することができる。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and by appropriately configuring a main controller, a print controller, a memory, and the like in a vending machine printer, control suitable for information can be performed. The printing time of the vending machine printer can be shortened, and the cost of the apparatus can be reduced.

【0012】[0012]

【課題を解決するための手段】上記課題は請求項1記載
の発明によれば、本機全体の制御を行う総制御手段と、
画像情報を格納する格納手段と、前記情報を印刷する印
刷手段と、前記印刷手段及び前記総制御手段の間で通信
制御する通信制御手段とを有する情報加工自動販売機に
おいて、前記格納手段は前記通信制御手段に接続してい
ることを特徴とする情報加工自動販売機を提供すること
によって達成できる。
According to the first aspect of the present invention, there is provided a total control means for controlling the entire apparatus,
An information processing vending machine having storage means for storing image information, printing means for printing the information, and communication control means for controlling communication between the printing means and the total control means, wherein the storage means is This can be achieved by providing an information processing vending machine characterized by being connected to communication control means.

【0013】このように構成することにより、プリント
コントローラのDMAコントローラ等を使わず、且つ、
プリントコントローラに通信の制御をさせることなく画
像データの通信を行うことができ、プリントコントロー
ラをプリント制御に専念させることができるので、プリ
ントコントローラの制御が簡単に作れるようになる。更
に、プリントコントローラに関係なく通信が行えるの
で、印刷中に次の印刷データの通信を行うことができる
ので、自販機プリンタの印刷時間を短くすることができ
る。
With such a configuration, a DMA controller or the like of a print controller is not used, and
Since the image data can be communicated without the print controller controlling the communication, and the print controller can be dedicated to the print control, the control of the print controller can be easily made. Further, since communication can be performed irrespective of the print controller, communication of the next print data can be performed during printing, so that the printing time of the vending machine printer can be shortened.

【0014】上記課題は請求項2記載の発明によれば、
本機全体の制御を行う総制御手段と、画像情報を格納す
る格納手段と、前記情報を印刷する印刷手段と、前記印
刷手段及び前記総制御手段の間で通信制御する通信制御
手段とを有する情報加工自動販売機において、前記通信
制御手段は前記画像情報と印刷動作を制御する印刷動作
制御情報を区別し、該各情報に適した処理ができること
を特徴とする情報加工自動販売機を提供することによっ
て達成できる。
According to the second aspect of the present invention, the above object is provided.
It has a total control unit for controlling the entire apparatus, a storage unit for storing image information, a printing unit for printing the information, and a communication control unit for performing communication control between the printing unit and the total control unit. In the information processing vending machine, there is provided an information processing vending machine characterized in that the communication control means distinguishes the image information and printing operation control information for controlling a printing operation and can perform a process suitable for the information. Can be achieved by:

【0015】このように構成することにより、スレーブ
用通信コントローラが、受信したものが印刷データなの
か、プリントコントローラ用制御コマンドなのか、もし
くはスレーブ用通信コントローラ用制御なのかを使う場
合には処理が複雑になってしまうような印刷データと制
御コマンドを混在させた通信が行えるようになるので、
自販機プリンタのメインコントローラにおいて、画像デ
ータ送信とプリント制御との関連を考えずに制作ソフト
を作ることが可能になる。つまり、画像データ送信と、
プリント制御をまったく別々のプロセスとして処理でき
ることになり、制御ソフトが非常に簡単に設計できる。
With this configuration, when the slave communication controller uses the received data as the print data, the print controller control command, or the slave communication controller control, the processing is performed. Communication that mixes print data and control commands that can be complicated can be performed.
In the main controller of the vending machine printer, production software can be created without considering the relationship between image data transmission and print control. In other words, image data transmission,
Print control can be processed as a completely separate process, and control software can be designed very easily.

【0016】上記課題は請求項3記載の発明によれば、
前記通信制御手段は前記総制御手段に接続するマスタ用
通信制御手段及び前記印刷手段に接続するスレーブ用通
信制御手段の2つの通信制御手段に別れていることを特
徴とする請求項1及び2記載の情報加工自動販売機を提
供することによって達成できる。
The above object is achieved according to the third aspect of the present invention.
3. The communication control unit according to claim 1, wherein the communication control unit is divided into two communication control units, a master communication control unit connected to the total control unit and a slave communication control unit connected to the printing unit. Can be achieved by providing an information processing vending machine.

【0017】このように構成することにより、マスタ用
通信制御手段には、スレーブ用通信制御手段から返送さ
れる情報が先にスレーブ用通信制御手段に転送した情報
と一致するか否か判断し、一致した場合次に続く所定単
位の情報を総制御手段からスレーブ用通信制御手段へ転
送する機能を担わせ、スレーブ用通信制御手段には、マ
スタ用通信制御手段から転送される画像情報と印刷動作
制御情報とを識別し、印刷動作制御情報を印刷手段へ転
送し、画像情報を格納手段の指示される領域に書き込む
機能を担わせることができ、プリントコントローラの負
担が軽くなるので、プリントコントローラのコストを削
減することができる。
With this configuration, the master communication control means determines whether or not the information returned from the slave communication control means matches the information previously transferred to the slave communication control means. If they match, a function of transferring the next predetermined unit of information from the total control means to the slave communication control means is provided. The slave communication control means includes image information transferred from the master communication control means and a printing operation. Control information, the print operation control information is transferred to the printing means, and the image information is written to the designated area of the storage means. Costs can be reduced.

【0018】上記課題は請求項4記載の発明によれば、
前記格納手段は前記通信制御手段のスレーブ用通信制
御手段に接続されていることを特徴とする請求項1及び
2記載の情報加工自動販売機を提供することによって達
成できる。
According to the fourth aspect of the present invention, the above object is provided.
3. The information processing vending machine according to claim 1, wherein the storage unit is connected to a slave communication control unit of the communication control unit.

【0019】このように構成することにより、プリント
コントローラの負担が軽くなるので、プリントコントロ
ーラのコストを削減することができる。
With such a configuration, the load on the print controller is reduced, and the cost of the print controller can be reduced.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。先ず、図1は、本発明を適用する
自販機プリンタ(情報加工自動販売機)の外観を示す。
同図において、記憶メディア挿入口1は、ユーザが印刷
したい画像を記録したメディアを挿入する箇所である。
また、ディスプレイタッチパネル2は、ユーザやオペレ
ータとのI/F(インターフェイス)であり、ユーザや
オペレータへの操作を要求する画面を表示し、又、キー
入力を受け付ける。
Embodiments of the present invention will be described below with reference to the drawings. First, FIG. 1 shows the appearance of a vending machine printer (information processing vending machine) to which the present invention is applied.
In FIG. 1, a storage medium insertion slot 1 is a place where a medium in which an image that a user wants to print is recorded is inserted.
The display touch panel 2 is an I / F (interface) with a user or an operator, displays a screen requesting an operation of the user or the operator, and receives a key input.

【0021】料金挿入・返却口3は、印刷料金の徴収や
返却、釣り銭の払い出しを行う箇所であり、又、発行し
た領収書もこの料金挿入・返却口3から排出される。返
却レバー4は、投入した料金の返却をするときに使うレ
バーである。また、写真取り出し口5は、印刷が終了し
たプリント(写真)を出力するボックスであり、ユーザ
はこの写真取り出し口5に出力される写真を取り出す。
The fee insertion / return port 3 is a place for collecting and returning a printing fee and paying out change, and the issued receipt is also discharged from the fee insertion / return port 3. The return lever 4 is a lever used when returning the inserted fee. The photo outlet 5 is a box for outputting a printed print (photo), and a user takes out a photo output to the photo outlet 5.

【0022】次に、図2は本実施形態の自販機プリンタ
の内部構成を示す図である。また、図3は、本発明を適
用した場合の通信動作を説明する図である。先ず、図2
においてメインコントローラ6は、自販機プリンタ全体
の制御、ユーザI/F制御、記憶メディアの読み出しな
どの制御を行う。また、マスタ用通信コントローラ7
は、メインコントローラ6の通信を担当する回路であ
る。スレーブ用通信コントローラ8は、マスタ用通信コ
ントローラ7との間で通信を行い、メインコントローラ
6からの印刷データや印刷制御コマンドを受信し、それ
ぞれに適した処理を行う構成である。
FIG. 2 is a diagram showing the internal configuration of the vending machine printer according to this embodiment. FIG. 3 is a diagram illustrating a communication operation when the present invention is applied. First, FIG.
In, the main controller 6 controls the entire vending machine printer, controls user I / F, reads storage media, and the like. The master communication controller 7
Is a circuit in charge of communication of the main controller 6. The slave communication controller 8 communicates with the master communication controller 7, receives print data and print control commands from the main controller 6, and performs processing suitable for each.

【0023】一方、スレーブ用通信コントローラ8は、
メモリ9のI/F(インターフェイス)の制御も行い、
プリントコントローラ10からのメモリ9へのアクセス
要求にも対応する。メモリ9は、メインコントローラ6
から送られてくる画像データを格納するために主に使用
される。
On the other hand, the slave communication controller 8
It also controls the I / F (interface) of the memory 9,
It also responds to an access request to the memory 9 from the print controller 10. The memory 9 includes a main controller 6
It is mainly used to store the image data sent from.

【0024】プリントコントローラ10はメインコント
ローラ6からの指示に従って、印刷処理の全てを行う。
また、マスタ側とスレーブ側の通信は、本例の説明では
非同期のシリアル通信(例えば、RS−422など)と
して説明する。
The print controller 10 performs all of the printing processing in accordance with an instruction from the main controller 6.
The communication between the master side and the slave side will be described as asynchronous serial communication (for example, RS-422) in the description of this example.

【0025】次に、上記構成の自販機プリンタにおける
処理動作について、図3を用いて説明する。先ず、ユー
ザが自販機プリンタの記憶メディア挿入口3に、記憶メ
ディアを挿入する。ここで、ユーザからは画像2枚分の
印刷注文であると仮定する。
Next, the processing operation in the vending machine printer having the above configuration will be described with reference to FIG. First, the user inserts a storage medium into the storage medium insertion slot 3 of the vending machine printer. Here, it is assumed that the user has issued a print order for two images.

【0026】メインコントローラ6は、記憶メディアか
ら印刷する画像データのうち先ず1枚目の画像データ
(1枚分)を読み出す。そして、メインコントローラ6
は、1枚分の画像データの読み取りが終了すると、マス
タ用通信コントローラ7を介して、スレーブ用通信コン
トローラ8に対して、所定時間以上の送信を続ける。こ
れは、通信路をHigh(Mark)に保ち続けること
により行う。
The main controller 6 first reads out the first image data (one image data) from the image data to be printed from the storage medium. And the main controller 6
When reading of one image data is completed, the transmission of the image data for a predetermined time or more to the slave communication controller 8 via the master communication controller 7 is continued. This is performed by keeping the communication path at High (Mark).

【0027】そして、スレーブ用通信コントローラ8で
は、通信路において所定時間以上High(Mark)
が続いた場合、スレーブ用通信コントローラ8に接続さ
れるプリントコントローラ10のリセットを行う命令が
マスタ用通信コントローラ7から送られてきたと判断
し、プリントコントローラ10のリセット端子(/rs
t)をLOWにしてリセットをかける。尚、上記の所定
時間とは、通信パケット1つ分の時間よりも十分に長い
時間を設定しておけばよい。本例では1パケットが20
ビット分であり、それよりも十分に長い時間、例えば、
256ビット分に設定しておけばよい。
Then, the slave communication controller 8 sets High (Mark) on the communication path for a predetermined time or more.
Continues, it is determined that a command to reset the print controller 10 connected to the slave communication controller 8 has been sent from the master communication controller 7, and the reset terminal (/ rs) of the print controller 10
t) is set to LOW and reset. Note that the predetermined time may be set to a time sufficiently longer than the time for one communication packet. In this example, one packet is 20
Bits, and much longer, for example,
It may be set to 256 bits.

【0028】さて、プリントコントローラ10のリセッ
トが完了すると、メインコントローラ6は、スレーブ用
通信コントローラ8のメモリアドレスレジスタのリセッ
トを要求する制御コマンド(例えば、0xFFFF)を
送信する。
When the reset of the print controller 10 is completed, the main controller 6 transmits a control command (for example, 0xFFFF) requesting a reset of the memory address register of the slave communication controller 8.

【0029】これを受信したスレーブ用通信コントロー
ラ8は、受信した情報が制御コマンドであることを判断
し、更にスレーブ用通信コントローラ8への直接の制御
コマンドであることを判断して、自身の内部に持つメモ
リアドレスレジスタの値をリセットする。
The slave communication controller 8 having received this determines that the received information is a control command, and further determines that the received information is a direct control command to the slave communication controller 8, and determines the internal Reset the value of the memory address register held in.

【0030】次に、リセットが完了するとマスタ用通信
コントローラ7を介してメインコントローラ6に対して
リセット完了を通知する。リセット完了通知は、スレー
ブ側コントローラ8が受信したものをそのまま送り返す
ように構成する。尚、このリセットコマンドの送受信
は、マスタ用通信コントローラ7とスレーブ用通信コン
トローラ8との間で行われ、プリントコントローラ10
は関与していない。したがって、プリントコントローラ
10が暴走し、又はプリントコントローラ10の電源が
落ちた場合でも、通信が行われるので、ENQ(問い合
わせ)として用いることもできる。
Next, when the reset is completed, the completion of the reset is notified to the main controller 6 via the master communication controller 7. The reset completion notification is configured so that the slave controller 8 returns what it has received as it is. The transmission and reception of the reset command are performed between the master communication controller 7 and the slave communication controller 8, and the print controller 10
Is not involved. Therefore, even when the print controller 10 goes out of control or the power of the print controller 10 is turned off, communication is performed, so that it can be used as an ENQ (inquiry).

【0031】さて、リセット完了通知を受けたメインコ
ントローラ6は、続いて、マスタ用通信コントローラ7
を介して、スレーブ用通信コントローラ8に読み込んだ
1枚目の画像データ(1枚分)を所定単位ごとに送信す
る。所定単位とは、例えば、2バイトである。
The main controller 6 which has received the reset completion notice then sends the master communication controller 7
, The first image data (for one image) read into the slave communication controller 8 is transmitted in predetermined units. The predetermined unit is, for example, 2 bytes.

【0032】次に、このデータを受信したスレーブ用通
信コントローラ8は、受信したデータが印刷画像データ
であることを判断する。そして、画像データであると判
断した場合、受信したデータをメモリ9へと書き込む。
また、受信したデータが画像データであると判断した場
合、書き込みと同時にマスタ側通信コントローラ7を介
してメインコントローラ6へ受信したデータをそのまま
送り返し、更に自身の内部のメモリアドレスレジスタを
インクリメントする。
Next, the slave communication controller 8 receiving this data determines that the received data is print image data. If it is determined that the data is image data, the received data is written into the memory 9.
If it is determined that the received data is image data, the received data is sent back to the main controller 6 via the master communication controller 7 at the same time as writing, and the internal memory address register is incremented.

【0033】一方、メインコントローラ6では、所定単
位の画像データを送信したら、スレーブ用通信コントロ
ーラ8から送信したデータが送り返されるのを待つ。そ
して、データが送り返された場合、送信したデータと同
じであるか否かを判断し、同じ場合には引き続き所定単
位ごとの送信処理を繰り返す。
On the other hand, after transmitting the image data in the predetermined unit, the main controller 6 waits for the data transmitted from the slave communication controller 8 to be sent back. Then, when the data is returned, it is determined whether or not the data is the same as the transmitted data.

【0034】また、送り返されたデータが同じでないと
判断する場合、通信不良の可能性があるので、スレーブ
用通信コントローラ8に対して、メモリアドレスレジス
タをディクリメントさせる制御コマンド(0xAAA
A)を送信する。
When it is determined that the returned data is not the same, there is a possibility of a communication failure. Therefore, a control command (0xAAA) for instructing the slave communication controller 8 to decrement the memory address register is provided.
Send A).

【0035】スレーブ用通信コントローラ8では、受信
したものが制御コマンドであり、更にメモリアドレスの
ディクリメント命令であると判断した場合、メモリアド
レスレジスタをディクリメントさせる。そして、スレー
ブ用通信コントローラ8は、ディクリメントが終了する
と、終了したことを示すために、制御コマンド(0xA
AAA)をそのまま送り返す。これをメインコントロー
ラ6が受信すると、直前のデータを再送するようにして
いる。
The slave communication controller 8 decrements the memory address register when it determines that the received command is a control command and further a memory address decrement command. When the decrement is completed, the slave communication controller 8 outputs a control command (0xA) to indicate that the decrement has been completed.
AAA) as it is. When the main controller 6 receives this, the immediately preceding data is retransmitted.

【0036】さて、上記処理を繰り返して行い、1枚目
の印刷データ1画面分がメインコントローラ6からメモ
リ9へ送ら、メインコントローラ6はマスタ用通信コン
トローラ7を介して、更にスレーブ用通信コントローラ
8を通してプリントコントローラ10に、印刷開始コマ
ンド(0x1111)を送信する。
By repeating the above processing, one screen of print data of the first sheet is transmitted from the main controller 6 to the memory 9, and the main controller 6 further transmits the data via the master communication controller 7 to the slave communication controller 8. , A print start command (0x1111) is transmitted to the print controller 10.

【0037】これを受信したスレーブ用通信コントロー
ラ8では、受信したものが制御コマンドであり、更にプ
リントコントローラ10へのコマンドであると判断し、
その受信したものをデコードして情報部分のみをプリン
トコントローラ10へ通知する。これを受けたプリント
コントローラ10は、印刷処理を開始する。プリントコ
ントローラ10では、先ず、メモリ9の全てのデータを
スレーブ用通信コントローラ8を介して読み出す。そし
て、全てのデータを読み終わると、メインコントローラ
6へ向けて印刷開始コマンド受信を示すACK(0x1
010)を送る。メインコントローラ6は、プリントコ
ントローラ10からこのACKを受け取ると、2枚目の
画像を読み出す。
The slave communication controller 8 having received the command determines that the received command is a control command and further a command to the print controller 10.
The received data is decoded and only the information part is notified to the print controller 10. Upon receiving this, the print controller 10 starts the printing process. The print controller 10 first reads out all data in the memory 9 via the slave communication controller 8. When all data has been read, ACK (0x1) indicating reception of a print start command is sent to the main controller 6.
010). When receiving the ACK from the print controller 10, the main controller 6 reads the second image.

【0038】そして、1枚目と同様にスレーブ用通信コ
ントローラ8に対してメモリアドレスリセットコマンド
(0xFFFF)を送信し、続いて画像データの送信を
行っていく。これが行われている間にも、プリントコン
トローラ10は、印刷処理を続けている。そのため、メ
インコントローラ6は、画像データの送信などを行って
いるその途中にも、プリントコントローラ10の印刷実
行状態を把握するために、ステータスを要求する制御コ
マンド(0x2222)をスレーブ側に対して送ったり
もする。このような場合でも、スレーブ用通信コントロ
ーラ8は、受信したものが印刷データなのか制御コマン
ドなのかを判定しているので、適切に処理できる。つま
り、受信したものがステータス要求コマンドであった場
合には、それをメモリ9へ格納するようなことはなく、
プリントコントローラ10に通知するのである。
Then, similarly to the first sheet, a memory address reset command (0xFFFF) is transmitted to the slave communication controller 8, and subsequently, image data is transmitted. While this is being performed, the print controller 10 continues the printing process. Therefore, the main controller 6 sends a control command (0x2222) for requesting a status to the slave side in order to grasp the print execution state of the print controller 10 even during transmission of image data and the like. I do. Even in such a case, since the slave communication controller 8 determines whether the received data is print data or a control command, the slave communication controller 8 can appropriately process the received data. That is, if the received command is a status request command, it is not stored in the memory 9.
The print controller 10 is notified.

【0039】また、プリントコントローラ10がステー
タス要求コマンドを受信すると、ステータス応答をスレ
ーブ用通信コントローラ8を介して、マスタ側へ送信す
る。マスタ用通信コントローラ7でも、受信したものが
印刷データをスレーブ側が送り返してきたものなのか、
それともコマンド応答なのかを判定し、その判定結果を
メインコントローラ6に通知している。メインコントロ
ーラ6では、判定結果を用いて、ステータス応答を取り
込んだり、画像データを送信したり再送信したりする。
When the print controller 10 receives the status request command, it sends a status response to the master via the slave communication controller 8. In the master communication controller 7 as well, whether the received data is print data returned by the slave side,
It determines whether the response is a command response or not, and notifies the main controller 6 of the determination result. The main controller 6 captures a status response, transmits and retransmits image data using the determination result.

【0040】一方、こうしている間に、プリントコント
ローラ10では1枚目の画像の印刷が終了し、更には、
メモリ9には、2枚目の印刷画像データが格納されるの
で、メインコントローラ6から印刷開始コマンドが送ら
れ、1枚目と同様に印刷が開始される。そして、メイン
コントローラ6は、ステータス要求コマンドを送信し、
印刷状況を監視しつつ、印刷が終了する。このようにし
て全ての印刷が完了する。ところで、上記の説明で、印
刷データと制御コマンドをスレーブ用通信コントローラ
8が判別していると述べたが、これは、通信データの中
に「コマンド明示ビット」を埋め込んでおくと、スレー
ブ用通信コントローラ8にて容易に判別できるようにな
る。
On the other hand, during this time, the print controller 10 finishes printing the first image, and furthermore,
Since the print image data of the second sheet is stored in the memory 9, a print start command is sent from the main controller 6 and printing is started in the same manner as the first sheet. Then, the main controller 6 transmits a status request command,
Printing is completed while monitoring the printing status. Thus, all printing is completed. By the way, in the above description, it has been described that the print data and the control command are determined by the slave communication controller 8. However, this is because if the “command explicit bit” is embedded in the communication data, the slave communication The controller 8 can easily determine.

【0041】更に、制御コマンドの中でも、プリントコ
ントローラ10用のコマンドと、スレーブ用通信コント
ローラ8用のコマンドが存在している。また、これらの
区別であるが、実際の運用においては、スレーブ用通信
コントローラ8に直接働きかけるコマンドは少ないとい
えるので、特に明示するためのビット等は設けずに、通
信データの値により分けるようにしている。ただし、明
示ビットを用意してもよい。
Further, among the control commands, there are a command for the print controller 10 and a command for the slave communication controller 8. Also, it can be said that there are few commands that directly act on the slave communication controller 8 in actual operation. Therefore, it is not necessary to provide a bit or the like for specifying, and to divide by the value of communication data. ing. However, an explicit bit may be prepared.

【0042】ここで、参考として、図4に本例の通信フ
ォーマットを示す。同図においては、非同期のシリアル
通信による通信を想定しており、スタートビット11を
1ビット、情報データ部分12が16ビット、コマンド
明示ビット13を1ビット、パリティビット14を1ビ
ット、ストップビット15を1ビットで構成している。
Here, for reference, FIG. 4 shows a communication format of the present embodiment. In this figure, it is assumed that communication is performed by asynchronous serial communication. The start bit 11 is 1 bit, the information data portion 12 is 16 bits, the command explicit bit 13 is 1 bit, the parity bit 14 is 1 bit, and the stop bit 15 is 15 bits. Is composed of one bit.

【0043】また、パリティビット14に関しては、1
ビットである必要はなく、一般的な誤り検出符号や誤り
訂正符号などを用いてもよい。ただし、本実施例で説明
したようにパリティビット14を1ビットにしても、本
実施例では、印刷データやスレーブ用通信コントローラ
8への制御コマンドはスレーブ側で受信したデータをそ
のままマスタ側へ戻すようにしているため通信データの
信頼性は確保される。
As for the parity bit 14, 1
There is no need to use bits, and a general error detection code or error correction code may be used. However, even if the parity bit 14 is set to one bit as described in this embodiment, in this embodiment, print data and control commands to the slave communication controller 8 return data received on the slave side to the master side as it is. This ensures the reliability of the communication data.

【0044】ところで、プリントコントローラ10への
制御コマンドに関しては、プリントコントローラ10の
各処理ステージにおいて、プリントコントローラ10が
期待する制御コマンドは限られており、その期待に添わ
ない制御コマンドが送信されてきたら、マスタ側へコマ
ンドの再送をするようにするなどしておけば、通信路で
のエラーが発生して制御コマンドが正常でなくなったと
しても問題は起こらない。
By the way, regarding the control commands to the print controller 10, the control commands expected by the print controller 10 in each processing stage of the print controller 10 are limited, and if a control command that does not meet the expectation is transmitted. If the command is retransmitted to the master side, no problem occurs even if an error occurs in the communication path and the control command becomes abnormal.

【0045】また、印刷データに関しては、チェックサ
ム等を併用すれば、更に通信の信頼性は上がる。この場
合には、スレーブ側のプリントコントローラ10からス
レーブ用通信コントローラ8のメモリアドレスレジスタ
の値を見ることができるようにしておくと、マスタ側か
ら送信された印刷データの容量(バイト数)をプリント
コントローラ10が調べることができるようになる。
For print data, if a checksum or the like is used, communication reliability is further improved. In this case, if the value of the memory address register of the slave communication controller 8 can be seen from the print controller 10 on the slave side, the capacity (number of bytes) of the print data transmitted from the master side is printed. The controller 10 can check.

【0046】また、上記のように、処理を簡単になるよ
うに工夫しているため、マスタ用通信コントローラ7と
スレーブ用通信コントローラ8を1つのパッケージに収
めてLSI化することも可能である。
Further, since the processing is devised to simplify the processing as described above, the master communication controller 7 and the slave communication controller 8 can be housed in a single package to form an LSI.

【0047】[0047]

【発明の効果】以上詳細に説明したように、本発明によ
れば情報加工自動販売機においてプリントコントローラ
10のDMAコントローラ等を使わず、且つ、プリント
コントローラ10に通信の制御をさせることなく画像デ
ータの通信を行うことができ、プリントコントローラ1
0をプリント制御に専念させることができるので、プリ
ントコントローラ10の制御が簡単に作れるようにな
る。更に、プリントコントローラ10に関係なく通信が
行えるので、印刷中に次の印刷データの通信を行うこと
ができるので、自販機プリンタの印刷時間を短くするこ
とができる。
As described above in detail, according to the present invention, the information processing vending machine does not use the DMA controller or the like of the print controller 10 and does not cause the print controller 10 to control the communication of the image data. Communication with the print controller 1
Since 0 can be dedicated to print control, control of the print controller 10 can be easily made. Further, since communication can be performed irrespective of the print controller 10, communication of the next print data can be performed during printing, so that the printing time of the vending machine printer can be shortened.

【0048】また、スレーブ用通信コントローラ8に直
接、メモリ9を接続する構成であることより、スレーブ
用通信コントローラ8に、画像データの通信に関する処
理を行わせることができ、プリントコントローラ10の
負担が軽くなるので、プリントコントローラ10のコス
トを削減できる。
Further, since the memory 9 is directly connected to the slave communication controller 8, the slave communication controller 8 can perform processing relating to communication of image data, and the load on the print controller 10 can be reduced. Since the weight is reduced, the cost of the print controller 10 can be reduced.

【0049】また、スレーブ用通信コントローラ8が、
受信したものが印刷データなのか、プリントコントロー
ラ10用制御コマンドなのか、もしくはスレーブ用通信
コントローラ8用制御なのかを使う場合には処理が複雑
になってしまうような印刷データと制御コマンドを混在
させた通信が行えるようになるので、自販機プリンタの
メインコントローラ6において、画像データ送信とプリ
ント制御との関連を考えずに制作ソフトを作ることが可
能になる。つまり、画像データ送信と、プリント制御を
まったく別々のプロセスとして処理できることになり、
制御ソフトが非常に簡単に設計できる。
Further, the slave communication controller 8
If the received data is print data, a control command for the print controller 10, or a control for the slave communication controller 8, the print data and the control command that complicate the processing are mixed. Communication can be performed, making it possible for the main controller 6 of the vending machine printer to create production software without considering the relationship between image data transmission and print control. In other words, image data transmission and print control can be processed as completely separate processes,
Control software can be designed very easily.

【0050】また、スレーブ用通信コントローラ8が処
理したもの、例えば、印刷データのメモリ9への書き込
み、メモリアドレスリセット、ディクリメント等のコマ
ンドは受信データをそのままマスタ側へ送信するように
しているので、スレーブ用通信コントローラ8が行う処
理を簡単にすることができる。つまり、スレーブ用通信
コントローラ8が処理したものに対する応答を別の通信
データとしてマスタ側に送信したりすると、スレーブ用
通信コントローラ8の処理が複雑になってしまうが、そ
のまま送り返すようにすれば処理が簡単になる。
Commands processed by the slave communication controller 8, such as writing of print data to the memory 9, memory address reset, and decrement, transmit received data to the master as it is. The processing performed by the slave communication controller 8 can be simplified. That is, if a response to the data processed by the slave communication controller 8 is transmitted to the master as another communication data, the processing of the slave communication controller 8 becomes complicated. It's easy.

【0051】また、印刷データも受信したものをそのま
まマスタ側へ送り返すようにしているので、たとえ、誤
り検出符号などを簡易なものにしても、データの信頼性
が確保できる。更に、スレーブ用通信コントローラ8の
内部処理を簡略化することができる。
Further, since the received print data is sent back to the master as it is, even if the error detection code or the like is simplified, the data reliability can be ensured. Further, the internal processing of the slave communication controller 8 can be simplified.

【0052】また、マスタ用通信コントローラ7とスレ
ーブ用通信コントローラ8を1つのパッケージに収めて
LSI化することで、マスタ側LSIとスレーブ側LS
Iとの2種類を作る必要がなくなり、量産化効果による
コストダウンが期待できる。
The master communication controller 7 and the slave communication controller 8 are contained in a single package to form an LSI.
There is no need to make the two types I and I, and cost reduction due to the effect of mass production can be expected.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施形態に係る自販機プリンタの外観を示す
図である。
FIG. 1 is a diagram illustrating an appearance of a vending machine printer according to an embodiment.

【図2】本実施形態に係る自販機プリンタ内のシステム
構成図である。
FIG. 2 is a system configuration diagram in the vending machine printer according to the embodiment.

【図3】本実施形態を説明するシーケンス図である。FIG. 3 is a sequence diagram illustrating the embodiment.

【図4】本実施形態に係る通信フォーマットの構成図で
ある。
FIG. 4 is a configuration diagram of a communication format according to the embodiment.

【図5】従来技術の自販機プリンタ内のシステム構成図
である。
FIG. 5 is a system configuration diagram in a conventional vending machine printer.

【符号の説明】[Explanation of symbols]

1 記憶メディア挿入口 2 ディスプレイタッチパネル 3 料金挿入・返却口 4 返却レバー 5 印刷写真取り出し口 6、16 メインコントローラ 7、17 マスタ用通信コントローラ 8、18 スレーブ用通信コントローラ 9、19 メモリ 10、20 プリントコントローラ 11 スタートビット 12 情報データ部分 13 コマンド明示ビット 14 パリティビット 15 ストップビット DESCRIPTION OF SYMBOLS 1 Storage-medium insertion slot 2 Display touch panel 3 Charge insertion / return slot 4 Return lever 5 Print photo take-out port 6, 16 Main controller 7, 17 Master communication controller 8, 18 Slave communication controller 9, 19 Memory 10, 20 Print controller 11 Start bit 12 Information data part 13 Command explicit bit 14 Parity bit 15 Stop bit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 本機全体の制御を行う総制御手段と、 画像情報を格納する格納手段と、 前記情報を印刷する印刷手段と、 前記印刷手段及び前記総制御手段の間で通信制御する通
信制御手段と、 を有する情報加工自動販売機において、 前記格納手段は前記通信制御手段に接続していることを
特徴とする情報加工自動販売機。
A control unit that controls the entire apparatus; a storage unit that stores image information; a printing unit that prints the information; and a communication that controls communication between the printing unit and the total control unit. An information processing vending machine comprising: a control unit; and the storage unit is connected to the communication control unit.
【請求項2】 本機全体の制御を行う総制御手段と、 画像情報を格納する格納手段と、 前記情報を印刷する印刷手段と、 前記印刷手段及び前記総制御手段の間で通信制御する通
信制御手段と、 を有する情報加工自動販売機において、 前記通信制御手段は前記画像情報と印刷動作を制御する
印刷動作制御情報を区別し、該各情報に適した処理がで
きることを特徴とする情報加工自動販売機。
2. A total control unit for controlling the entire apparatus, a storage unit for storing image information, a printing unit for printing the information, and a communication for controlling communication between the printing unit and the total control unit. An information processing vending machine comprising: an information processing vending machine comprising: an information processing vending machine, wherein the communication control means distinguishes the image information and printing operation control information for controlling a printing operation, and can perform processing suitable for the information. vending machine.
【請求項3】 前記通信制御手段は前記総制御手段に接
続するマスタ用通信制御手段及び前記印刷手段に接続す
るスレーブ用通信制御手段の2つの通信制御手段に別れ
ていることを特徴とする請求項1及び2記載の情報加工
自動販売機。
3. The communication control means is divided into two communication control means, a master communication control means connected to the total control means and a slave communication control means connected to the printing means. Item 1. An information processing vending machine according to item 1 or 2.
【請求項4】 前記格納手段は前記通信制御手段のスレ
ーブ用通信制御手段に接続されていることを特徴とする
請求項1及び2記載の情報加工自動販売機。
4. The information processing vending machine according to claim 1, wherein said storage means is connected to a slave communication control means of said communication control means.
JP2000213432A 2000-07-13 2000-07-13 Information processing vending machine Expired - Fee Related JP4026303B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000213432A JP4026303B2 (en) 2000-07-13 2000-07-13 Information processing vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000213432A JP4026303B2 (en) 2000-07-13 2000-07-13 Information processing vending machine

Publications (2)

Publication Number Publication Date
JP2002032848A true JP2002032848A (en) 2002-01-31
JP4026303B2 JP4026303B2 (en) 2007-12-26

Family

ID=18709185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000213432A Expired - Fee Related JP4026303B2 (en) 2000-07-13 2000-07-13 Information processing vending machine

Country Status (1)

Country Link
JP (1) JP4026303B2 (en)

Also Published As

Publication number Publication date
JP4026303B2 (en) 2007-12-26

Similar Documents

Publication Publication Date Title
US7200685B2 (en) Communication apparatus for communicating data between separate toplogies, and related method, storage medium, and program
JP2004157966A (en) End point memory control method and device, usb device, and storage medium
US20060017963A1 (en) Media conversion apparatus, network type direct output system, and method for output process instruction transfer
JP2006195984A (en) Confirmation method for completion of data transmission from radio identification system to replaceable unit monitor
JP2013197677A (en) Image processing device, image formation device, abnormality management processing method, and abnormality management processing program
JP4242572B2 (en) Image forming apparatus
US8429733B2 (en) Authentication system, terminal and information processing device, having function of performing stable authentication
JP4026303B2 (en) Information processing vending machine
TWI237770B (en) Communication assisting apparatus for mediating data transfer and communication system employing the communication assisting apparatus
JP4085561B2 (en) Printer
JP4589768B2 (en) Information processing device
JP2001101126A (en) Inter-device data communication method and system
JP2005074928A (en) Data processing system, data processor, and data receiving program
JP2001142670A (en) Printing system and printer
JP2003122539A (en) Network printer and network printer system
JP4554703B2 (en) Information processing apparatus, information processing method, and information processing program
JP2002324013A (en) Receiving end device for data transfer system
JPH1117877A (en) Facsimile equipment and data transmission and reception method for the same
JPH11232243A (en) Communication control equipment, its method and communication control system
JPH02132517A (en) Printer controller
JP2009059018A (en) Information processing system, information processor and data transfer method for information processing system
JP5743531B2 (en) Image processing apparatus, control method thereof, and program
JP2855367B2 (en) Facsimile machine
JPH04217275A (en) Image forming device
JP2004355041A (en) Dma transfer relay device, dma transfer method and dma transfer system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040113

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071001

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

Free format text: PAYMENT UNTIL: 20101019

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4026303

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101019

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111019

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111019

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121019

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121019

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131019

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees