JP2004122596A - Printing device and function extension method for printing device - Google Patents

Printing device and function extension method for printing device Download PDF

Info

Publication number
JP2004122596A
JP2004122596A JP2002290447A JP2002290447A JP2004122596A JP 2004122596 A JP2004122596 A JP 2004122596A JP 2002290447 A JP2002290447 A JP 2002290447A JP 2002290447 A JP2002290447 A JP 2002290447A JP 2004122596 A JP2004122596 A JP 2004122596A
Authority
JP
Japan
Prior art keywords
information
storage medium
external device
usb
printing apparatus
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.)
Pending
Application number
JP2002290447A
Other languages
Japanese (ja)
Inventor
Hideki Morozumi
両角 秀樹
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 JP2002290447A priority Critical patent/JP2004122596A/en
Publication of JP2004122596A publication Critical patent/JP2004122596A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To simply extend a function even in a peripheral device not equipped with an exclusive memory slot. <P>SOLUTION: When a memory card 3 is connected via a USB cable to a USB port 21, a host controller 25 acquires a descriptor of the memory card 3 and stores the descriptor in a RAM 15. Information for the function extension stored in a memory 33 is acquired on the basis of information included in the descriptor, and is stored in the RAM 15. A CPU 13 executes a predetermined program on the basis of the information for the function extension stored in the RAM 15, thereby carrying out setting for the function extension. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、印刷装置等の機能を拡張するための技術に関し、特に簡単に機能拡張を行うための技術に関する。
【0002】
【従来の技術】
プリンタなどの周辺装置は、ユーザ自らが操作して機能拡張を行うことができる。この機能拡張を行うときは、外部から所定のデータやプログラムを供給して、設定を行う必要がある。そして、従来は、このデータやプログラムをホストコンピュータからプリンタへ送って、設定を行っている。
【0003】
また、メモリスロットを備えた周辺装置に拡張機能のデータ等が記憶されたメモリカードを装着し、ブート時に読み込んで機能拡張を実現するものがある。
【0004】
【発明が解決しようとする課題】
しかしながら、ホストコンピュータから拡張データなどを送り込む場合は、ホストコンピュータを起動して、ユーザがホストコンピュータを操作して行わなければならないので、手間がかかった。
【0005】
また、メモリスロットにメモリカードを装着してブート時に読み込む場合は、プリンタ等に専用のメモリスロットを設ける必要があった。
【0006】
本発明は、専用のメモリスロットを備えていない周辺装置であっても、簡単に機能拡張が行えるようにするための技術を提供することである。
【0007】
【課題を解決するための手段】
本発明の一つの実施形態に従う印刷装置は、記憶媒体を有する外部装置と接続するための接続部と、前記接続部に前記外部装置が接続されたことを検出する手段と、前記検出手段が前記外部装置を検出したとき、前記記憶媒体に記憶されている機能拡張のための情報を取得する手段と、前記取得した情報に基づいて機能拡張のための設定を行う手段と、を備える
好適な実施形態では、前記取得手段は、前記記憶媒体に記憶されているフォント情報を取得し、前記設定手段は、前記印刷装置が、前記取得したフォント情報に含まれているフォントを用いて印刷することができるように設定する。
【0008】
好適な実施形態では、前記取得手段は、前記記憶媒体に記憶されているオーバレイ印刷のためのオーバレイ情報を取得し、前記設定手段は、前記印刷装置が、前記取得したオーバレイ情報に含まれているオーバレイデータを用いて印刷することができるように設定する。
【0009】
好適な実施形態では、前記取得手段は、前記記憶媒体に記憶されている前記印刷装置の制御プログラムを更新するためのプログラム更新情報を取得し、前記設定手段は、前記取得したプログラム更新情報に基づいて、前記印刷装置の制御プログラムを更新する。
【0010】
本発明の一つの実施形態に従う印刷装置は、USB(Universal Sereal Bus)ポートと、USBケーブルを介して、記憶媒体を有する外部装置が前記USBポートに接続されているとき、前記外部装置のディスクリプタを取得する手段と、前記ディスクリプタに含まれている情報に基づいて、前記記憶媒体に記憶されている、機能拡張のための情報を取得する手段と、前記取得した機能拡張のための情報に基づいて、機能拡張のための設定を行う手段と、を備える。
【0011】
好適な実施形態では、前記USBポートに前記USBケーブルが接続されたとき、前記USBケーブルのIDピンおよびVbusピンの電圧レベルに基づいて、前記外部装置がUSBホストであるかUSBデバイスであるかを判定する手段をさらに備え、前記取得手段は、前記判定の結果前記印刷装置がホストである場合に前記ディスクリプタを取得する。
【0012】
本発明の一つの実施形態に従う印刷装置の機能拡張方法は、記憶媒体を有する外部装置と接続するための接続部に前記外部装置が接続されたことを検出するステップと、前記外部装置の接続を検出したとき、前記記憶媒体に記憶されている機能拡張のための情報を取得するステップと、前記取得した機能拡張のための情報に基づいて機能拡張のための設定を行うステップと、を有する。
【0013】
本発明の一つの実施形態に従うUSB(Universal Sereal Bus)ポートを有する印刷装置の機能拡張方法は、USBケーブルを介して、記憶媒体を有する外部装置が前記USBポートに接続されているとき、前記外部装置のディスクリプタを取得するステップと、前記ディスクリプタに含まれている情報に基づいて、前記記憶媒体に記憶されている、機能拡張のための情報を取得するステップと、前記取得した機能拡張のための情報に基づいて、機能拡張のための設定を行うステップと、を有する。
【0014】
【発明の実施の形態】
以下、本発明を適用した周辺装置の一例として、プリンタに係る実施形態について図面を用いて説明する。本実施形態では、外部インタフェースとしてUSB(Universal Sereal Bus)を備えるプリンタに記録媒体を有する装置を接続し、記録媒体に記録された情報をプリンタが取得する。
【0015】
本実施形態に係るプリンタ1と、記憶媒体を有する装置であるメモリカード3の構成を図1に示す。
【0016】
プリンタ1は、実際に印刷を行うための印刷機構11と、印刷機構11を制御するための印刷機構制御部12とを有する。印刷機構制御部12は、さらに、CPU13と、不揮発性の記憶媒体であるEEPROM14と、揮発性の記憶媒体であるRAM15と、インタフェース部16とを備える。CPU13、EEPROM14、RAM15、およびインタフェース部16は、それぞれ内部バス17に接続されている。EEPROM14に格納され、CPU13で実行される所定のプログラムは、ファームウェアと呼ばれることもある。
【0017】
印刷機構11は、いずれも図示しない印刷ヘッド、紙送り機構、これらを制御するための制御回路およびインクやトナーなどの画像形成媒体のカートリッジなどを有し、印刷機構制御部12から印刷データを受け付けて印刷を実行する。
【0018】
EEPROM14には、印刷機構11を制御するための所定のプログラムや、印刷制御に必要なデータが記憶されている。さらに、後述するように、メモリカード3から読み出された情報がEEPROM14に記憶される。
【0019】
CPU13は、EEPROM14に記憶されているプログラムを読み込み、そのプログラムに従って所定の処理を実行し、プリンタの動作を制御する。
【0020】
本実施形態に係るプリンタ1は、USBをインタフェースに採用する。従って、インタフェース部16は、USBの構成を有する。特に、本実施形態に係るプリンタ1は、USBホスト(以下、ホストという)およびUSBデバイス(以下、デバイスという)のどちらにもなることができるデュアル・ロール・デバイスである場合を例に説明する。そして、このインタフェース部16は、USBのOTG(On−The−Go)規格に対応している。
【0021】
すなわち、インタフェース部16は、USBポート21と、ホストトランシーバ22と、デバイストランシーバ23と、アービタ24と、ホストコントローラ25と、デバイスコントローラ26とを有する。
【0022】
USBポート21には、外部装置に接続されたUSBケーブルの端部に取り付けられたプラグが挿入される。なお、本実施形態では、プリンタ1に実装されているUSBインタフェースはデュアル・ロール・デバイスなので、USBポート21はmini−ABと呼ばれる形状のコネクタであり、mini−Aまたはmini−Bプラグが挿入可能な形状である。そして、mini−Aプラグとmini−Bプラグには、従来の標準USBコネクタが有している2本の信号線(DとD)と2本の電源線(VbusとGND)に加えて、IDピンと呼ばれる信号線が1本含まれている。
【0023】
アービタ24は、mini−Aまたはmini−BプラグがUSBポート21に接続されたことを検出する。例えば、アービタ24は、IDピンの電圧レベルの検出回路(図示しない)を備える。IDピンはアービタ24内で抵抗器によってプルアップされていて、図示しないIDピン検出回路が、この電圧レベルに基づいてプリンタ1に接続された装置がホストであるかデバイスであるかを判定する。その判定方法は以下の通りである。すなわち、プリンタ1に接続された装置がホストである場合、その装置にはmini−Aプラグが接続されている。そして、mini−Aプラグ内のIDピンがGNDに接続されているので、IDピン検出回路は、IDピンのレベルを“L”レベルと認定する。
一方、プリンタ1に接続された装置がデバイスであるときは、その装置にはmini−Bプラグが接続されている。そして、mini−Bプラグ内のIDピンが開放されているので、IDピン検出回路は、IDピンのレベルを“H”レベルと認定する。
【0024】
さらに、アービタ24は、Vbusピンの電圧レベル検出回路(図示しない)を有する。IDピンは、上述の通り通常プルアップされているので、IDピンが開放されているmini−Bプラグが挿入されてもIDピン検出回路のレベルは変化しない。そこで、IDピンが“H”レベルのときは、mini−Bプラグが接続されたことを検知するため、Vbusピン検出回路がVbusピンのレベルを調べてホストが接続されたことを判断することができる。たとえば、ホストはVbusピンに電圧を供給するため、IDピンが“H”レベルでかつVbusピンが“H”レベルのときは、ホストが接続されたと判断することができる。
【0025】
上述のIDピンおよびVbusピンの電圧レベルのH/L判定は、上述のそれぞれの検出回路が所定のしきい値を用いて行う。
【0026】
次に、アービタ24は、上記判定結果に基づいて、ホストコントローラ25およびデバイスコントローラ26のいずれか一方を動作可能な状態にする。例えば、接続された装置がホストであると判定されると、アービタ24はプリンタ1をデバイスとして動作させるために、デバイスコントローラ26を動作可能な状態にし、Vbusに電流を供給する。一方、接続された装置がデバイスであると判定されると、アービタ24はプリンタ1をホストとして動作させるためにホストコントローラ25を動作可能な状態にする。
【0027】
ポート21にホストが接続(すなわち、mini−Bプラグが挿入)され、デバイスコントローラ26が有効な状態になると、デバイストランシーバ23がD信号をHレベルにプルアップして、ホストに対して装置が接続されていることを通知する。
【0028】
デバイスコントローラ26は、ホストと共にプリンタ1がデバイスとして通信を行うために必要な処理を実行する。例えば、ホストからの指示に従ってデータ送受信などを行うための通信路の確立等を行う。
【0029】
ポート21にデバイスが接続(すなわち、mini−Aプラグが挿入)され、ホストコントローラ25が有効な状態になると、ホストトランシーバ22はD信号がHレベルであることを確認することにより、ポート21に装置が接続されていることを確認する。
【0030】
ホストコントローラ25は、プリンタ1がホストとして通信を行うために必要な処理を実行する。例えば、ホストコントローラ25は、バスの管理、転送されるフレームの管理、転送順の決定、エラー処理などを行い、ホストトランシーバ22を介して信号の入出力を行う。ホストコントローラ25は、例えば、図1に示すようにメモリカード3が接続されたとき、そのメモリカード3との通信を制御する。さらに、CPU13からの指示に基づいてメモリカード3のメモリ33へデータを書き込んだり、データを読み出すための制御を行う。ホストコントローラ25がメモリカード3から読み出したデータは、EEPROM14にコピーされるか、またはRAM15に一時的にコピーされる。さらに、読み出されたデータがRAM15に一時的にコピーされたときは、後述するようにCPU13が所定のプログラムを実行してこのデータを処理し、EEPROM14に格納する。
【0031】
例えば、プリンタ1の機能を拡張するためのデータがメモリカード3から読み出されてRAM15にコピーされたときは、CPU13がデータを利用して機能を拡張するためのプログラムをEEPROM14から読み出して、これを実行する。これにより、機能拡張のために必要な情報がEEPROM14の所定の領域に記憶され、プリンタ1の機能が拡張される。
【0032】
プリンタ1と接続されるメモリカード3は、USBデバイス(ストレージクラス)として動作する。従って、メモリカード3は、トランシーバ31と、デバイスコントローラ32と、メモリ33とを備える。メモリ33は、例えば、不揮発性の記憶媒体であるEEPROMなどで実現することができる。そして、メモリ33には、例えば、プリンタ3の機能拡張のためのデータを記憶する。機能拡張ためのデータとして、本実施形態では、EEPROM14に記憶されているプログラムのバーションアップ版、フォントを追加するためのデータ、あるいはオーバレイ印刷用のオーバレイデータなどが記憶されている。
【0033】
また、メモリカード3は、メモリカード3を製造したベンダーが設定したディスクリプタを備えることができる。このベンダーが設定した固有のディスクリプタの例を図2に示す。
【0034】
このディスクリプタ30において、dwSignatureは、ディスクリプタの種別を示し、図2の例では機能拡張データをを記憶したメモリであることを示している。デバイスタイプ(bDeviceType)は、メモリ33に記憶されているデータの種類を示す。図2の例では、EEPROM14のアップデートプログラム(Firmware)、フォントデータ(Font)、またはオーバレイデータ(Overlay)のいずれであるかを識別するための情報がセットされる。
【0035】
次に、本実施形態での処理手順について図3に示すフローチャートを用いて説明する。
【0036】
アービタ24の図示しない検出回路がUSBポート21のIDピンおよびVbusピンのレベルを検出して、USBポート21にコネクタが接続されたことを検出するとともに、接続された装置がホストであるかデバイスであるかを判定する(S11、S12)。
【0037】
そして、接続された装置がホストである場合、アービタ24はプリンタ1をデバイスとして動作させるため、デバイスコントローラ26を動作可能な状態にする(S13:No)。そして、プリンタ1はデバイスとして動作する(S20)。
【0038】
一方、接続された装置がデバイスである場合、アービタ24はプリンタ1をホストとして動作させるため、ホストコントローラ25を動作可能な状態にする(S13:Yes)。
【0039】
そして、ホストコントローラ25は、接続された装置からディスクリプタを読み出してRAM15へ格納する(S14)。ホストコントローラ25はこの読み出したディスクリプタdwSignatureから、機能拡張データを記憶したメモリであることがわかるので、ホストコントローラ25は、メモリ33から拡張データファイルを読み出して、RAM15へ格納する(S15)。
【0040】
このとき、そして、CPU13がEEPROM14に記憶されているプログラムを読み込んで、拡張データファイルを使ってプリンタの機能拡張のための処理を行う。このとき、まずCPU13は、ディスクリプタのデバイスタイプを判定する(S16)。そして、デバイスタイプがEEPROM14のプログラムの更新を示すときは、拡張データファイルに基づいてEEPROM14のプログラムをアップデートする(S17)。
【0041】
デバイスタイプがフォントの追加を示すときは、拡張データファイルに基づいてEEPROM14にフォントデータを登録する(S18)。
【0042】
デバイスタイプがオーバレイデータの登録を示すときは、拡張データファイルに基づいてEEPROM14にオーバレイデータを登録する(S19)。
【0043】
以上説明した通り、本実施形態によれば、機能拡張データを記憶したメモリカードがプリンタに挿入されると、自動的に機能拡張を行うことができる。この結果、プリンタの操作パネルやホストコンピュータで何らかの操作や設定を行うことなく、簡単に機能拡張することができる。
【0044】
上述した本発明の実施形態は、本発明の説明のための例示であり、本発明の範囲をそれらの実施形態にのみ限定する趣旨ではない。当業者は、本発明の要旨を逸脱することなしに、他の様々な態様で本発明を実施することができる。
【0045】
上述した実施形態では、プリンタとメモリカードとのインタフェースにUSBを用いたが、例えばIEEE1394など他のシリアルインタフェースや、SCSIなどのパラレルインタフェースでも実現することができる。また、機能拡張データの属性情報の持たせ方として、上述したUSBのディスクリプタのようにトランスポート層の機能を利用する方法と、それ以外の方法として、例えば、メモリカードが接続されたことを検出すると、プリンタは図4に示すような、機能拡張データのファイル名が記述されている属性ファイル40をメモリカードから読み出すようにすることもできる。そして、この属性ファイルに記述されている拡張データファイルを読み込んで、プリンタの機能を拡張する。この属性ファイルは、XML(eXtensible Markup Language)のような汎用的なデータ記述フォーマットで用いてもよい。
【0046】
また、プリンタは、メモリカードに記憶されている画像データなどを読み込んで印刷しても良い。さらに、この場合メモリカードは、記憶媒体を備えていて、USBデバイスとなり得るデジタルカメラなどの他の装置と置き換えることもできる。
【0047】
さらに、上述の実施形態ではプリンタに適用した場合について説明したが、本発明はプリンタ以外の電子機器にも適用可能である。
【0048】
【発明の効果】
本発明によれば、専用のメモリスロットを備えていない周辺装置であっても、簡単に機能拡張が行える。
【図面の簡単な説明】
【図1】本発明の一実施形態に係るプリンタおよびメモリカードの構成を示す図である。
【図2】メモリカードのディスクリプタの一例を示す図である。
【図3】機能拡張を行うときの処理手順を示すフローチャートである。
【図4】属性ファイルの一例を示す図である。
【符号の説明】
1…プリンタ
3…メモリカード
11…印刷機構
12…印刷機構制御部
13…CPU
14…EEPROM14
15…RAM
16…インタフェース部
21…ポート
22…ホストトランシーバ
23…デバイストランシーバ
24…アービタ
25…ホストコントローラ
26…デバイスコントローラ
30…ディスクリプタ
31…トランシーバ
32…デバイスコントローラ
33…メモリ
40…属性ファイル
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a technology for expanding a function of a printing apparatus or the like, and particularly to a technology for easily expanding a function.
[0002]
[Prior art]
Peripheral devices such as printers can be operated by the user to extend the functions. When performing this function extension, it is necessary to supply predetermined data or a program from the outside and make settings. Conventionally, the data and the program are sent from the host computer to the printer to perform the setting.
[0003]
In addition, there is a device in which a memory card storing data of an extension function or the like is mounted on a peripheral device having a memory slot and is read at the time of booting to realize the function extension.
[0004]
[Problems to be solved by the invention]
However, when sending extended data from the host computer, the host computer must be started and the user must operate the host computer, which is troublesome.
[0005]
Also, when a memory card is inserted into a memory slot and read at the time of booting, a dedicated memory slot must be provided in a printer or the like.
[0006]
An object of the present invention is to provide a technique for easily expanding functions even in a peripheral device not having a dedicated memory slot.
[0007]
[Means for Solving the Problems]
A printing device according to an embodiment of the present invention includes a connection unit for connecting to an external device having a storage medium, a unit configured to detect that the external device is connected to the connection unit, and the detection unit includes: A preferred embodiment comprising: means for acquiring information for a function extension stored in the storage medium when an external device is detected; and means for performing setting for a function extension based on the acquired information. In the aspect, the acquisition unit may acquire font information stored in the storage medium, and the setting unit may cause the printing apparatus to print using a font included in the acquired font information. Set to be able to.
[0008]
In a preferred embodiment, the acquisition unit acquires overlay information for overlay printing stored in the storage medium, and the setting unit includes the printing device included in the acquired overlay information. Set so that printing can be performed using the overlay data.
[0009]
In a preferred embodiment, the obtaining unit obtains program update information for updating a control program of the printing apparatus stored in the storage medium, and the setting unit performs a process based on the obtained program update information. Then, the control program of the printing apparatus is updated.
[0010]
A printing device according to an embodiment of the present invention is configured such that when an external device having a storage medium is connected to the USB port via a Universal Serial Bus (USB) port and a USB cable, the descriptor of the external device is connected to the USB port. Means for acquiring, based on information included in the descriptor, means for acquiring information for function expansion stored in the storage medium, based on the information for function acquisition obtained Means for making settings for function expansion.
[0011]
In a preferred embodiment, when the USB cable is connected to the USB port, whether the external device is a USB host or a USB device is determined based on voltage levels of an ID pin and a V bus pin of the USB cable. The acquisition unit acquires the descriptor when the result of the determination is that the printing apparatus is a host.
[0012]
A function expansion method for a printing apparatus according to one embodiment of the present invention includes a step of detecting that the external device is connected to a connection unit for connecting the external device having a storage medium, and a step of detecting the connection of the external device. The method includes a step of acquiring information for a function extension stored in the storage medium when detected, and a step of performing setting for a function extension based on the acquired information for a function extension.
[0013]
According to an embodiment of the present invention, there is provided a function expansion method for a printing apparatus having a USB (Universal Serial Bus) port, wherein an external device having a storage medium is connected to the USB port via a USB cable. Acquiring a descriptor of the device; acquiring information for a function extension stored in the storage medium based on information included in the descriptor; and Making settings for function expansion based on the information.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment of a printer as an example of a peripheral device to which the present invention is applied will be described with reference to the drawings. In the present embodiment, a device having a recording medium is connected to a printer having a USB (Universal Serial Bus) as an external interface, and the information recorded on the recording medium is acquired by the printer.
[0015]
FIG. 1 shows a configuration of a printer 1 according to the present embodiment and a memory card 3 which is a device having a storage medium.
[0016]
The printer 1 has a printing mechanism 11 for actually performing printing, and a printing mechanism control unit 12 for controlling the printing mechanism 11. The printing mechanism control unit 12 further includes a CPU 13, an EEPROM 14 as a nonvolatile storage medium, a RAM 15 as a volatile storage medium, and an interface unit 16. The CPU 13, the EEPROM 14, the RAM 15, and the interface unit 16 are connected to the internal bus 17, respectively. A predetermined program stored in the EEPROM 14 and executed by the CPU 13 may be called firmware.
[0017]
The print mechanism 11 includes a print head, a paper feed mechanism, a control circuit for controlling these, a cartridge for an image forming medium such as ink and toner, and the like. To execute printing.
[0018]
The EEPROM 14 stores a predetermined program for controlling the printing mechanism 11 and data necessary for printing control. Further, as described later, information read from the memory card 3 is stored in the EEPROM 14.
[0019]
The CPU 13 reads a program stored in the EEPROM 14, executes predetermined processing according to the program, and controls the operation of the printer.
[0020]
The printer 1 according to the present embodiment employs USB as an interface. Therefore, the interface unit 16 has a USB configuration. In particular, an example will be described in which the printer 1 according to the present embodiment is a dual role device that can be a USB host (hereinafter, referred to as a host) and a USB device (hereinafter, referred to as a device). The interface unit 16 complies with the USB OTG (On-The-Go) standard.
[0021]
That is, the interface unit 16 has a USB port 21, a host transceiver 22, a device transceiver 23, an arbiter 24, a host controller 25, and a device controller 26.
[0022]
A plug attached to an end of a USB cable connected to an external device is inserted into the USB port 21. In this embodiment, since the USB interface mounted on the printer 1 is a dual-role device, the USB port 21 is a connector having a shape called mini-AB, and a mini-A or mini-B plug can be inserted. Shape. Then, the mini-A plug and mini-B plug, two signal lines conventional standard USB connector has (D + and D -) was added to the two power supply lines (V bus and GND) In addition, one signal line called an ID pin is included.
[0023]
The arbiter 24 detects that a mini-A or mini-B plug has been connected to the USB port 21. For example, the arbiter 24 includes a detection circuit (not shown) for detecting the voltage level of the ID pin. The ID pin is pulled up by a resistor in the arbiter 24, and an ID pin detection circuit (not shown) determines whether the device connected to the printer 1 is a host or a device based on the voltage level. The determination method is as follows. That is, when the device connected to the printer 1 is a host, the mini-A plug is connected to the device. Since the ID pin in the mini-A plug is connected to GND, the ID pin detection circuit recognizes the level of the ID pin as “L” level.
On the other hand, when the device connected to the printer 1 is a device, a mini-B plug is connected to the device. Since the ID pin in the mini-B plug is open, the ID pin detection circuit recognizes the level of the ID pin as “H” level.
[0024]
Further, the arbiter 24 has a voltage level detection circuit (not shown) of the V bus pin. Since the ID pin is normally pulled up as described above, the level of the ID pin detection circuit does not change even if a mini-B plug whose ID pin is open is inserted. Therefore, when the ID pin is at the “H” level, the V bus pin detection circuit checks the level of the V bus pin to determine that the host is connected, in order to detect that the mini-B plug is connected. be able to. For example, since the host supplies a voltage to the V bus pin, when the ID pin is at the “H” level and the V bus pin is at the “H” level, it can be determined that the host is connected.
[0025]
H / L determination of the voltage levels of the ID pin and the V bus pin is performed by the respective detection circuits using a predetermined threshold value.
[0026]
Next, the arbiter 24 makes one of the host controller 25 and the device controller 26 operable based on the above determination result. For example, when it is determined that the connected device is a host, the arbiter 24 makes the device controller 26 operable to supply the current to V bus in order to operate the printer 1 as a device. On the other hand, if it is determined that the connected device is a device, the arbiter 24 sets the host controller 25 in an operable state in order to operate the printer 1 as a host.
[0027]
When the host is connected to the port 21 (that is, the mini-B plug is inserted) and the device controller 26 is enabled, the device transceiver 23 pulls up the D + signal to the H level, and the device is connected to the host. Notify that you are connected.
[0028]
The device controller 26 executes processing necessary for the printer 1 to communicate as a device with the host. For example, a communication path for data transmission / reception is established in accordance with an instruction from the host.
[0029]
When a device is connected to the port 21 (that is, a mini-A plug is inserted) and the host controller 25 is enabled, the host transceiver 22 confirms that the D + signal is at the H level, and Check that the device is connected.
[0030]
The host controller 25 executes processing necessary for the printer 1 to perform communication as a host. For example, the host controller 25 performs management of a bus, management of a frame to be transferred, determination of a transfer order, error processing, and the like, and inputs and outputs signals via the host transceiver 22. For example, when the memory card 3 is connected as shown in FIG. 1, the host controller 25 controls communication with the memory card 3. Further, it controls writing data to and reading data from the memory 33 of the memory card 3 based on an instruction from the CPU 13. Data read from the memory card 3 by the host controller 25 is copied to the EEPROM 14 or temporarily copied to the RAM 15. Further, when the read data is temporarily copied to the RAM 15, the CPU 13 executes a predetermined program to process the data and stores the data in the EEPROM 14 as described later.
[0031]
For example, when data for expanding the function of the printer 1 is read from the memory card 3 and copied to the RAM 15, the CPU 13 reads a program for expanding the function using the data from the EEPROM 14, and Execute As a result, information necessary for function expansion is stored in a predetermined area of the EEPROM 14, and the function of the printer 1 is expanded.
[0032]
The memory card 3 connected to the printer 1 operates as a USB device (storage class). Therefore, the memory card 3 includes the transceiver 31, the device controller 32, and the memory 33. The memory 33 can be realized by, for example, an EEPROM that is a nonvolatile storage medium. The memory 33 stores, for example, data for expanding the functions of the printer 3. In this embodiment, a version-up version of the program stored in the EEPROM 14, data for adding a font, overlay data for overlay printing, and the like are stored as data for function expansion.
[0033]
Further, the memory card 3 can include a descriptor set by a vendor that manufactures the memory card 3. FIG. 2 shows an example of a unique descriptor set by the vendor.
[0034]
In the descriptor 30, dwSignature indicates the type of the descriptor, and in the example of FIG. 2, indicates that the memory is a memory storing function extension data. The device type (bDeviceType) indicates the type of data stored in the memory 33. In the example of FIG. 2, information for identifying any one of the update program (Firmware), font data (Font), and overlay data (Overlay) of the EEPROM 14 is set.
[0035]
Next, a processing procedure in the present embodiment will be described with reference to a flowchart shown in FIG.
[0036]
A detection circuit (not shown) of the arbiter 24 detects the level of the ID pin and the V bus pin of the USB port 21 to detect that the connector is connected to the USB port 21, and determines whether the connected device is a host. Is determined (S11, S12).
[0037]
If the connected device is a host, the arbiter 24 sets the device controller 26 to an operable state in order to operate the printer 1 as a device (S13: No). Then, the printer 1 operates as a device (S20).
[0038]
On the other hand, if the connected device is a device, the arbiter 24 puts the host controller 25 into an operable state in order to operate the printer 1 as a host (S13: Yes).
[0039]
Then, the host controller 25 reads the descriptor from the connected device and stores it in the RAM 15 (S14). The host controller 25 knows from the read descriptor dwSignature that it is a memory storing the function extension data, so the host controller 25 reads the extension data file from the memory 33 and stores it in the RAM 15 (S15).
[0040]
At this time, the CPU 13 reads the program stored in the EEPROM 14 and performs a process for extending the functions of the printer using the extension data file. At this time, first, the CPU 13 determines the device type of the descriptor (S16). When the device type indicates that the program of the EEPROM 14 is to be updated, the program of the EEPROM 14 is updated based on the extension data file (S17).
[0041]
When the device type indicates addition of a font, the font data is registered in the EEPROM 14 based on the extension data file (S18).
[0042]
When the device type indicates registration of overlay data, the overlay data is registered in the EEPROM 14 based on the extension data file (S19).
[0043]
As described above, according to the present embodiment, when the memory card storing the function expansion data is inserted into the printer, the function can be automatically expanded. As a result, the functions can be easily extended without performing any operation or setting on the operation panel of the printer or the host computer.
[0044]
The above-described embodiments of the present invention are exemplifications for describing the present invention, and are not intended to limit the scope of the present invention only to those embodiments. Those skilled in the art can implement the present invention in various other modes without departing from the gist of the present invention.
[0045]
In the above-described embodiment, the USB is used for the interface between the printer and the memory card. However, for example, another serial interface such as IEEE1394 or a parallel interface such as SCSI can be used. The attribute information of the function extension data may be provided by using the function of the transport layer like the USB descriptor described above, or may be detected by other methods, for example, when a memory card is connected. Then, the printer can read the attribute file 40 describing the file name of the function extension data from the memory card as shown in FIG. Then, the extension data file described in the attribute file is read to extend the functions of the printer. This attribute file may be used in a general-purpose data description format such as XML (extensible Markup Language).
[0046]
In addition, the printer may read and print image data and the like stored in the memory card. Further, in this case, the memory card has a storage medium and can be replaced with another device such as a digital camera which can be a USB device.
[0047]
Further, in the above-described embodiment, the case where the present invention is applied to a printer has been described, but the present invention is also applicable to electronic devices other than the printer.
[0048]
【The invention's effect】
According to the present invention, even if the peripheral device does not have a dedicated memory slot, the function can be easily expanded.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration of a printer and a memory card according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of a descriptor of a memory card.
FIG. 3 is a flowchart showing a processing procedure when performing function expansion.
FIG. 4 is a diagram showing an example of an attribute file.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Printer 3 ... Memory card 11 ... Printing mechanism 12 ... Printing mechanism control part 13 ... CPU
14… EEPROM14
15 RAM
16 Interface unit 21 Port 22 Host transceiver 23 Device transceiver 24 Arbiter 25 Host controller 26 Device controller 30 Descriptor 31 Transceiver 32 Device controller 33 Memory 40 Attribute file

Claims (8)

記憶媒体を有する外部装置と接続するための接続部と、
前記接続部に前記外部装置が接続されたことを検出する手段と、
前記検出手段が前記外部装置を検出したとき、前記記憶媒体に記憶されている機能拡張のための情報を取得する手段と、
前記取得した情報に基づいて機能拡張のための設定を行う手段と、を備える印刷装置。
A connection unit for connecting to an external device having a storage medium,
Means for detecting that the external device is connected to the connection unit,
Means for acquiring information for function expansion stored in the storage medium when the detection means detects the external device,
Means for making settings for function expansion based on the acquired information.
前記取得手段は、前記記憶媒体に記憶されているフォント情報を取得し、
前記設定手段は、前記印刷装置が、前記取得したフォント情報に含まれているフォントを用いて印刷することができるように設定する請求項1記載の印刷装置。
The obtaining means obtains font information stored in the storage medium,
The printing apparatus according to claim 1, wherein the setting unit sets the printing apparatus so that printing can be performed using a font included in the acquired font information.
前記取得手段は、前記記憶媒体に記憶されているオーバレイ印刷のためのオーバレイ情報を取得し、
前記設定手段は、前記印刷装置が、前記取得したオーバレイ情報に含まれているオーバレイデータを用いて印刷することができるように設定する請求項1記載の印刷装置。
The acquisition unit acquires overlay information for overlay printing stored in the storage medium,
The printing apparatus according to claim 1, wherein the setting unit sets the printing apparatus so that the printing apparatus can perform printing using overlay data included in the acquired overlay information.
前記取得手段は、前記記憶媒体に記憶されている前記印刷装置の制御プログラムを更新するためのプログラム更新情報を取得し、
前記設定手段は、前記取得したプログラム更新情報に基づいて、前記印刷装置の制御プログラムを更新する請求項1記載の印刷装置。
The acquisition unit acquires program update information for updating a control program of the printing apparatus stored in the storage medium,
The printing apparatus according to claim 1, wherein the setting unit updates a control program of the printing apparatus based on the acquired program update information.
USB(Universal Sereal Bus)ポートと、
USBケーブルを介して、記憶媒体を有する外部装置が前記USBポートに接続されているとき、前記外部装置のディスクリプタを取得する手段と、
前記ディスクリプタに含まれている情報に基づいて、前記記憶媒体に記憶されている、機能拡張のための情報を取得する手段と、
前記取得した機能拡張のための情報に基づいて、機能拡張のための設定を行う手段と、を備える印刷装置。
A USB (Universal Serial Bus) port,
Means for acquiring a descriptor of the external device when an external device having a storage medium is connected to the USB port via a USB cable;
Based on the information contained in the descriptor, stored in the storage medium, means for acquiring information for function expansion,
Means for making settings for function expansion based on the acquired information for function expansion.
前記USBポートに前記USBケーブルが接続されたとき、前記USBケーブルのIDピンおよびVbusピンの電圧レベルに基づいて、前記外部装置がUSBホストであるかUSBデバイスであるかを判定する手段をさらに備え、
前記取得手段は、前記判定の結果前記印刷装置がホストである場合に前記ディスクリプタを取得する請求項5記載の印刷装置。
Means for determining whether the external device is a USB host or a USB device based on voltage levels of an ID pin and a V bus pin of the USB cable when the USB cable is connected to the USB port. Prepare,
The printing apparatus according to claim 5, wherein the obtaining unit obtains the descriptor when the printing apparatus is a host as a result of the determination.
印刷装置の機能拡張のための方法であって、
記憶媒体を有する外部装置と接続するための接続部に前記外部装置が接続されたことを検出するステップと、
前記外部装置の接続を検出したとき、前記記憶媒体に記憶されている機能拡張のための情報を取得するステップと、
前記取得した機能拡張のための情報に基づいて機能拡張のための設定を行うステップと、を有する機能拡張方法。
A method for extending the capabilities of a printing device, comprising:
Detecting that the external device is connected to a connection unit for connecting to an external device having a storage medium;
When detecting the connection of the external device, a step of acquiring information for function expansion stored in the storage medium,
Performing a setting for function expansion based on the acquired information for function expansion.
USB(Universal Sereal Bus)ポートを有する印刷装置の機能拡張のための方法であって、
USBケーブルを介して、記憶媒体を有する外部装置が前記USBポートに接続されているとき、前記外部装置のディスクリプタを取得するステップと、
前記ディスクリプタに含まれている情報に基づいて、前記記憶媒体に記憶されている、機能拡張のための情報を取得するステップと、
前記取得した機能拡張のための情報に基づいて、機能拡張のための設定を行うステップと、を有する機能拡張方法。
A method for extending a function of a printing apparatus having a USB (Universal Serial Bus) port,
Via a USB cable, when an external device having a storage medium is connected to the USB port, obtaining a descriptor of the external device;
Based on the information included in the descriptor, stored in the storage medium, obtaining information for function expansion,
Performing a setting for function expansion based on the acquired information for function expansion.
JP2002290447A 2002-10-02 2002-10-02 Printing device and function extension method for printing device Pending JP2004122596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002290447A JP2004122596A (en) 2002-10-02 2002-10-02 Printing device and function extension method for printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002290447A JP2004122596A (en) 2002-10-02 2002-10-02 Printing device and function extension method for printing device

Publications (1)

Publication Number Publication Date
JP2004122596A true JP2004122596A (en) 2004-04-22

Family

ID=32282333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002290447A Pending JP2004122596A (en) 2002-10-02 2002-10-02 Printing device and function extension method for printing device

Country Status (1)

Country Link
JP (1) JP2004122596A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100610326B1 (en) 2004-12-04 2006-08-09 삼성전자주식회사 Image forming apparatus for printing of many files recording to portable recording device and printing of many files method thereof
KR100662609B1 (en) 2004-12-30 2007-01-02 삼성전자주식회사 Controlling system and method for operating of printer by outer memory
JP2008118587A (en) * 2006-11-08 2008-05-22 Fuji Xerox Co Ltd Electronic apparatus and image processor
JP2010224790A (en) * 2009-03-23 2010-10-07 Kayaba Ind Co Ltd Drive recorder

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100610326B1 (en) 2004-12-04 2006-08-09 삼성전자주식회사 Image forming apparatus for printing of many files recording to portable recording device and printing of many files method thereof
KR100662609B1 (en) 2004-12-30 2007-01-02 삼성전자주식회사 Controlling system and method for operating of printer by outer memory
JP2008118587A (en) * 2006-11-08 2008-05-22 Fuji Xerox Co Ltd Electronic apparatus and image processor
JP4626769B2 (en) * 2006-11-08 2011-02-09 富士ゼロックス株式会社 Electronic apparatus and image processing apparatus
JP2010224790A (en) * 2009-03-23 2010-10-07 Kayaba Ind Co Ltd Drive recorder

Similar Documents

Publication Publication Date Title
US7068386B2 (en) Image processing system, image data processing method, and storage medium
US20040090652A1 (en) Printer, and control method thereof, having extended communication interface functions
US7337312B2 (en) Processor and firmware download method for same
US8161213B2 (en) Storage medium
US9971558B2 (en) Information processing apparatus
JP4513849B2 (en) printer
JP2004122596A (en) Printing device and function extension method for printing device
US7395357B2 (en) Information processing apparatus and computer readable medium
US8521831B2 (en) Data processing apparatus, data input control method thereof, information processing device, and program for implementing the method
US20170315799A1 (en) Electronic device for updating device firmware
JP2004032403A (en) Image processing apparatus and function limit releasing method therefor
JP2005028878A (en) Printing device having introducible data conversion function
JP7367432B2 (en) program
JP2005335390A (en) Lengthening of life span of printer
JP2008162054A (en) Printer
JP2006293638A (en) Information processor and peripheral equipment
JP2012063851A (en) Peripheral device control circuit and information processor including the same
US20070244580A1 (en) Printing System and Interface Device Therefor
US11968469B2 (en) Computing apparatus, image capturing apparatus, control method, and storage medium
JP2009123134A (en) Usb host device and method for manufacturing usb host device
US10684802B2 (en) Information processing apparatus, printer driver, and non-transitory computer-readable storage medium
JP2006181735A (en) Data outputting apparatus and information processing apparatus
JP2004302870A (en) Write-protect method for media reader/writer
JP5050946B2 (en) Image forming system and auxiliary storage device
JP2007140835A (en) Information security prescript setting program and information security prescript setting method