JP2002149354A - Printing device - Google Patents

Printing device

Info

Publication number
JP2002149354A
JP2002149354A JP2000337584A JP2000337584A JP2002149354A JP 2002149354 A JP2002149354 A JP 2002149354A JP 2000337584 A JP2000337584 A JP 2000337584A JP 2000337584 A JP2000337584 A JP 2000337584A JP 2002149354 A JP2002149354 A JP 2002149354A
Authority
JP
Japan
Prior art keywords
recording medium
external device
file
printing
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
JP2000337584A
Other languages
Japanese (ja)
Inventor
Mitsunobu Yoshinaga
光伸 吉永
Yasuo Maeda
泰雄 前田
Tomoyuki Takeshita
智幸 武下
Atsuko Hirano
敦子 平野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2000337584A priority Critical patent/JP2002149354A/en
Publication of JP2002149354A publication Critical patent/JP2002149354A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a printing device having the interface of a recording media, which reads a file and data in a recording media into an outer device such as a personal computer and changes it by the outer device without connecting the reader of the recording media. SOLUTION: When an instruction (file reading instruction and the like) on the operation of a recording content in the recording media mounted on the printing device 100a is given from the outer device such as the personal computer through a communication interface part 4, an operation (file reading operation and the like) corresponding to the instruction is performed on the recording media through a recording media control part 9. The result of the operation is transmitted to the outer device through the communication interface part 4.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、例えばPCカー
ド(JEIDA(社団法人日本電子工業振興協会)およ
び米国PCMCIA(Personal Computer Memory Card
International Association)により規格化されたIC
カード)等の着脱可能な記録メディアのインターフェー
スを有する印刷装置に関し、特にデジタルカメラ等の撮
像装置にて記録メディアに記録された画像データを扱う
のに好適な印刷装置に関する。
The present invention relates to, for example, a PC card (JEIDA (Japan Electronic Industry Development Association)) and a US PCMCIA (Personal Computer Memory Card).
IC standardized by International Association)
The present invention relates to a printing apparatus having an interface of a detachable recording medium such as a card, and more particularly to a printing apparatus suitable for handling image data recorded on a recording medium by an imaging apparatus such as a digital camera.

【0002】[0002]

【従来の技術】記録メディアのインターフェースを有す
る印刷装置の従来例としては、例えば特開平11−33
4157号公報に記載された技術がある。
2. Description of the Related Art A conventional example of a printing apparatus having a recording medium interface is disclosed in, for example, JP-A-11-33.
There is a technique described in Japanese Patent No. 4157.

【0003】図11は、上記公報に記載された印刷装置
の構成を示すブロック図である。図11において、符号
100bはPCカード用インターフェースを持つ印刷装
置を示しており、印刷装置100bは、CPU部1、プ
ログラムメモリ部2、画像メモリ部3、通信インターフ
ェース部4、操作パネル部5、印刷部6、スイッチ7、
システムバス8、およびPCカード部11から構成され
る。
FIG. 11 is a block diagram showing a configuration of a printing apparatus described in the above publication. In FIG. 11, reference numeral 100b denotes a printing device having a PC card interface. The printing device 100b includes a CPU unit 1, a program memory unit 2, an image memory unit 3, a communication interface unit 4, an operation panel unit 5, and a printing unit. Part 6, switch 7,
It comprises a system bus 8 and a PC card unit 11.

【0004】パーソナルコンピュータ等の外部装置から
印刷データが転送されて印刷が行われる場合は、この印
刷装置100bは、通信インターフェース部4により外
部装置と直接あるいはネットワークを介して接続され、
外部装置より転送された印刷データをCPU部1の制御
により画像メモリ部3に転送し、さらに画像メモリ部4
から印刷データを印刷部6にCPU部1の制御により転
送して印刷を行う。
When printing is performed by transferring print data from an external device such as a personal computer, the printing device 100b is connected to the external device by the communication interface unit 4 directly or via a network.
The print data transferred from the external device is transferred to the image memory unit 3 under the control of the CPU unit 1,
And print data is transferred to the printing unit 6 under the control of the CPU unit 1 to perform printing.

【0005】また、例えばPCカード等の記録メディア
のインターフェースを有する撮像装置(デジタルカメラ
等)にて撮像された画像データを印刷する場合は、画像
データファイルの記録されたPCカードがPCカード部
11に含まれるPCカードスロットに挿入されることに
より、印刷装置100bが、そのPCカードより画像デ
ータファイルを読み込んで画像メモリ部3に転送し、さ
らに画像データファイルが圧縮されている場合にはCP
U部1にて画像データ伸張処理を施して、所望の印刷デ
ータに変換して印刷を行う。
When printing image data taken by an image pickup device (such as a digital camera) having an interface of a recording medium such as a PC card, the PC card on which the image data file is recorded is printed on the PC card unit 11. The printing device 100b reads the image data file from the PC card and transfers it to the image memory unit 3 when the image data file is compressed.
The image data is decompressed by the U unit 1 and converted into desired print data for printing.

【0006】[0006]

【発明が解決しようとする課題】上記の従来の印刷装置
100bは、パーソナルコンピュータ等の外部装置から
印刷データを転送された場合にはその印刷を行い、記録
メディアが挿入された場合には記録された画像データフ
ァイルを伸張処理して印刷を行うよう構成されているだ
けであった。よって、印刷装置100bは、記録メディ
アより読み込んだ画像データファイルをパーソナルコン
ピュータ等の外部装置に転送するなど、記録メディアと
外部装置との間でデータの連携を行う手段を有していな
かった。
The conventional printing apparatus 100b performs printing when print data is transferred from an external device such as a personal computer, and prints data when a recording medium is inserted. It is only configured to print the image data file that has been decompressed. Therefore, the printing apparatus 100b has no means for cooperating data between the recording medium and the external device, such as transferring an image data file read from the recording medium to an external device such as a personal computer.

【0007】すなわち、例えば、記録メディアに記録さ
れた画像ファイルを一旦、外部装置に取り込んで、画像
編集した後に印刷したい場合などのように、記録メディ
ア内のファイルの内容を外部装置において変更したい場
合などには、印刷装置100bに備えられた記録メディ
アのインターフェースを有効に利用することができず、
外部装置側において所望の記録メディアに応じたインタ
ーフェースを有する読み書き装置を別途、接続する必要
があり、コストがかかるという問題があった。
That is, for example, when an image file recorded on a recording medium is once taken into an external device, and the contents of the file in the recording medium are to be changed by the external device, such as when the user wants to print after editing the image. For example, the interface of the recording medium provided in the printing apparatus 100b cannot be effectively used,
On the external device side, it is necessary to separately connect a read / write device having an interface corresponding to a desired recording medium.

【0008】この発明は、上記の課題を解決するために
なされたものであり、記録メディアのインターフェース
を有する印刷装置であって、パーソナルコンピュータ等
の外部装置に記録メディアの読み書き装置を別途、接続
することなく、記録メディア内のファイルやデータの読
み出しや変更を外部装置から行うことが可能な印刷装置
を得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and is a printing apparatus having a recording medium interface, in which a recording medium read / write apparatus is separately connected to an external device such as a personal computer. It is an object of the present invention to provide a printing apparatus that can read and change files and data in a recording medium from an external device without any need.

【0009】[0009]

【課題を解決するための手段】請求項1に記載の発明
は、記録メディアを着脱可能であって、前記記録メディ
アとの通信インターフェースを提供する記録メディア制
御手段と、外部装置を接続可能であって、前記外部装置
との通信インターフェースを提供する通信インターフェ
ース手段と、前記外部装置が前記通信インターフェース
手段および前記記録メディア制御手段を介して前記記録
メディアにアクセスすることを制御する制御手段とを備
える印刷装置である。
According to the first aspect of the present invention, a recording medium is detachable, and recording medium control means for providing a communication interface with the recording medium can be connected to an external device. A communication interface unit that provides a communication interface with the external device; and a control unit that controls the external device to access the recording medium via the communication interface unit and the recording medium control unit. Device.

【0010】請求項2に記載の発明は、請求項1に記載
の印刷装置であって、前記外部装置からの前記記録メデ
ィアへのアクセスは、ファイルの全部もしくは一部の単
位で、または所定のデータ単位で、行う印刷装置であ
る。
According to a second aspect of the present invention, there is provided the printing apparatus according to the first aspect, wherein the access to the recording medium from the external device is performed in units of all or a part of a file, or in a predetermined manner. This is a printing device that performs data units.

【0011】請求項3に記載の発明は、請求項1に記載
の印刷装置であって、前記制御手段は、前記外部装置か
らの前記記録メディアへのアクセスの制御を行った後、
前記制御が成功したか失敗したかを前記外部装置に通知
する印刷装置である。
According to a third aspect of the present invention, in the printing apparatus according to the first aspect, the control unit controls access to the recording medium from the external device.
The printing device notifies the external device whether the control has succeeded or failed.

【0012】請求項4に記載の発明は、請求項1に記載
の印刷装置であって、前記制御手段は、前記外部装置か
らの前記記録メディア内の記録内容への操作と、前記印
刷装置からの前記記録メディア内の記録内容への操作と
の間で排他制御を行う印刷装置である。
According to a fourth aspect of the present invention, there is provided the printing apparatus according to the first aspect, wherein the control unit is configured to perform an operation on the recording content in the recording medium from the external device, and an operation from the printing apparatus. And a printing apparatus for performing exclusive control with the operation on the recorded content in the recording medium.

【0013】請求項5に記載の発明は、請求項1に記載
の印刷装置であって、前記制御手段は、前記記録メディ
アの前記記録メディア制御手段への装着を検知し、前記
外部装置の前記通信インターフェース手段への接続を検
知し、前記記録メディアが前記記録メディア制御手段へ
装着され、かつ、前記外部装置が前記通信インターフェ
ース手段へ接続されたときには、前記外部装置に前記記
録メディアの装着を通知する印刷装置である。
According to a fifth aspect of the present invention, in the printing apparatus according to the first aspect, the control unit detects the mounting of the recording medium on the recording medium control unit, and the control unit controls the external device. A connection to the communication interface is detected, and when the recording medium is mounted on the recording medium control and the external device is connected to the communication interface, the external device is notified of the mounting of the recording medium. Printing device.

【0014】請求項6に記載の発明は、請求項5に記載
の印刷装置であって、前記通信インターフェース手段と
前記外部装置とは電圧供給線を含むバスにより接続さ
れ、前記印刷装置には前記電圧供給線を介して前記外部
装置より電圧が供給され、前記制御手段は、前記電圧供
給線の電圧値を監視することにより前記外部装置の接続
の検知を行う印刷装置である。
The invention according to claim 6 is the printing apparatus according to claim 5, wherein the communication interface means and the external device are connected by a bus including a voltage supply line, and A voltage is supplied from the external device via a voltage supply line, and the control unit monitors the voltage value of the voltage supply line to detect connection of the external device.

【0015】請求項7に記載の発明は、請求項1に記載
の印刷装置であって、前記外部装置には、前記通信イン
ターフェース手段および前記記録メディア制御手段を介
して前記記録メディアにアクセスするために前記印刷装
置との間で相互に行われるやり取りの手順が記憶された
印刷装置である。
According to a seventh aspect of the present invention, in the printing apparatus according to the first aspect, the external device accesses the recording medium via the communication interface unit and the recording medium control unit. Is a printing device in which a procedure of an exchange performed between the printing device and the printing device is stored.

【0016】[0016]

【発明の実施の形態】<実施の形態1>本実施の形態
は、PCカード等の記録メディア用インターフェースを
備えた印刷装置であって、印刷装置に装着された記録メ
ディア内の記録内容の操作に関する指示がパーソナルコ
ンピュータ等の外部装置から与えられたときに、記録メ
ディアに対してその指示に対応する動作を行うことによ
り、外部装置に記録メディアの読み書き装置を別途、接
続することなく、記録メディア内のファイルやデータの
読み出しや変更を行うことが可能な印刷装置である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS <First Embodiment> This embodiment relates to a printing apparatus provided with an interface for a recording medium such as a PC card, and the operation of recorded contents in a recording medium mounted on the printing apparatus. When an instruction relating to the recording medium is given from an external device such as a personal computer, an operation corresponding to the instruction is performed on the recording medium, so that a recording medium read / write device is not separately connected to the external device. It is a printing device capable of reading and changing files and data in the printer.

【0017】図1は、本実施の形態に係る印刷装置の構
成を示すブロック図である。なお、本実施の形態にかか
る印刷装置の説明にあたり、図11に示した印刷装置1
00bと同一構成部分には同一符号を付している。
FIG. 1 is a block diagram showing a configuration of a printing apparatus according to the present embodiment. In the description of the printing apparatus according to the present embodiment, the printing apparatus 1 shown in FIG.
The same components as those of 00b are denoted by the same reference numerals.

【0018】図1において、符号100aは例えばスマ
ートメディアやPCカード等の着脱可能な記録メディア
に対応したインターフェースを有する印刷装置であり、
印刷装置100aは、印刷装置の全体の制御を司るCP
U部1と、印刷装置の制御プログラムが格納されている
プログラムメモリ部2と、パーソナルコンピュータ等の
外部装置あるいは記録メディアからの印刷に関するデー
タが格納される画像メモリ部3と、外部装置との通信イ
ンターフェースを提供する通信インターフェース部4
と、記録メディアとの通信インターフェースを提供する
記録メディア制御部9と、操作者が印刷装置に各種指示
を入力するスイッチ7と、ファイル名等を表示する表示
パネルからなる操作パネル部5と、画像メモリ部3の印
刷データを印刷する印刷部6と、各部をつなぐシステム
バス8とから構成される。
In FIG. 1, reference numeral 100a denotes a printing apparatus having an interface corresponding to a removable recording medium such as a smart media or a PC card.
The printing apparatus 100a includes a CP that controls the entire printing apparatus.
U unit 1, a program memory unit 2 storing a control program of the printing apparatus, an image memory unit 3 storing data relating to printing from an external device such as a personal computer or a recording medium, and communication with the external device Communication interface unit 4 that provides an interface
A recording medium control unit 9 for providing a communication interface with a recording medium; a switch 7 for an operator to input various instructions to the printing apparatus; an operation panel unit 5 including a display panel for displaying a file name and the like; It comprises a printing section 6 for printing print data in the memory section 3 and a system bus 8 connecting the respective sections.

【0019】CPU部1は、マイクロコンピュータ等に
より構成され、ROM(Read OnlyMemory)に格納され
ているマイクロプログラムに従ってRAM(Random Acc
essMemory)との間でデータの授受を行いながら各種動
作に必要な値を演算処理し、処理したデータに基づいて
画像メモリ部3、通信インターフェース部4、記録メデ
ィア制御部9、操作パネル部5、印刷部6等を制御す
る。また、CPU部1は、外部装置が通信インターフェ
ース部4および記録メディア制御部9を介して記録メデ
ィアにアクセスすることを制御する。
The CPU section 1 is composed of a microcomputer or the like, and has a RAM (Random Accumulator) according to a microprogram stored in a ROM (Read Only Memory).
essMemory), while performing data processing while performing data exchange with the essMemory), based on the processed data, the image memory unit 3, the communication interface unit 4, the recording media control unit 9, the operation panel unit 5, It controls the printing unit 6 and the like. Further, the CPU 1 controls the external device to access the recording medium via the communication interface 4 and the recording medium controller 9.

【0020】通信インターフェース部4は、外部装置と
の通信インターフェースを提供するものであり、本実施
例では例えばUSB(Universal Serial Bus)インター
フェースを用いる。なお、USBインターフェースにお
いて用いられるUSBバスのケーブルの構造を図2に示
す。図2において、符号VBUSは電圧供給線を示してお
り、外部装置から印刷装置100aに対して電圧が供給
される。また、符号GNDは接地電位の供給線であり、
符号D+,D-は二値信号を送るデータ線である。
The communication interface unit 4 provides a communication interface with an external device. In this embodiment, for example, a USB (Universal Serial Bus) interface is used. FIG. 2 shows the structure of a USB bus cable used in the USB interface. In FIG. 2, reference numeral VBUS represents a voltage supply line, and a voltage is supplied from an external device to the printing apparatus 100a. Reference numeral GND is a ground potential supply line.
Symbols D + and D - are data lines for sending binary signals.

【0021】記録メディア制御部9は、記録メディアと
の通信インターフェースを提供するもので、記録メディ
アの装着スロットを備え、記録メディアに記録されてい
るデータを読み込むとともにデータの書き込みをも行
う。
The recording medium controller 9 provides a communication interface with the recording medium, has a mounting slot for the recording medium, and reads data recorded on the recording medium and also writes data.

【0022】なお、記録メディア制御部9に装着される
記録メディアとしては、例えばディスク状のものであっ
てもよいが、その場合、ディスクを回転させてその記録
内容を読み取ることがある。そのような場合、ディスク
回転等の駆動制御も記録メディア制御部9により行われ
る。
The recording medium mounted on the recording medium control unit 9 may be, for example, a disk, but in this case, the recorded contents may be read by rotating the disk. In such a case, drive control such as disk rotation is also performed by the recording media control unit 9.

【0023】以下、上述のように構成された印刷装置1
00aの動作を説明する。
Hereinafter, the printing apparatus 1 configured as described above will be described.
The operation of 00a will be described.

【0024】この印刷装置100aは、プログラムメモ
リ部2に格納された制御プログラムに従って動作するC
PU部1によって各部の動作が制御される。
The printing apparatus 100a operates according to a control program stored in the program memory unit 2.
The operation of each unit is controlled by the PU unit 1.

【0025】パーソナルコンピュータ等の外部装置から
転送された印刷データに基づき印刷が行われる場合、印
刷装置100aは、従来の印刷装置100bと同様に、
通信インターフェース部4により外部装置と直接あるい
はネットワークを介して接続され、外部装置より転送さ
れた印刷データを画像メモリ部3に転送し、さらに画像
メモリ部4から印刷データを印刷部6に転送して印刷す
る。
When printing is performed based on print data transferred from an external device such as a personal computer, the printing device 100a is, like the conventional printing device 100b,
It is connected to an external device directly or via a network by the communication interface unit 4, transfers the print data transferred from the external device to the image memory unit 3, and further transfers the print data from the image memory unit 4 to the printing unit 6. Print.

【0026】次に、例えばデジタルカメラのようにPC
カード等の記録メディアをインターフェースとした撮像
装置にて撮像された画像データを印刷する場合につい
て、図3を参照して具体的に説明する。
Next, for example, a PC such as a digital camera
A case in which image data captured by an imaging device using a recording medium such as a card as an interface is printed will be specifically described with reference to FIG.

【0027】まず、記録メディアが記録メディア制御部
9に含まれる装着スロットに装着された時の、印刷装置
100aの動作について説明する。図3は記録メディア
装着時の印刷装置100aの処理を示すフローチャート
であり、図中ST1〜ST5はフローの各ステップを示
す。
First, the operation of the printing apparatus 100a when a recording medium is mounted in a mounting slot included in the recording medium control unit 9 will be described. FIG. 3 is a flowchart showing the processing of the printing apparatus 100a when a recording medium is mounted. In the drawing, ST1 to ST5 show steps of the flow.

【0028】まず、図3に示す処理が開始されると、ス
テップST1でポーリング処理あるいは割込み処理によ
りCPU部1が記録メディア制御部9を介して、記録メ
ディアが装着スロットへ装着されたことを検知する。そ
して、記録メディアが印刷装置に装着されたことを検知
した場合には、ステップST2で装着された記録メディ
アが動作可能か否かを判定する。
First, when the processing shown in FIG. 3 is started, in step ST1, the CPU section 1 detects that the recording medium has been mounted in the mounting slot through the recording medium control section 9 by polling processing or interrupt processing. I do. Then, when it is detected that the recording medium is mounted on the printing apparatus, it is determined in step ST2 whether the mounted recording medium is operable.

【0029】なお、動作可能か否かの判定は、記録メデ
ィアの動作電圧や記録容量、カードの種類等の判定を行
って記録メディアが物理的に対応可能かどうかを調べる
ことと、記録メディアの記録フォーマットが印刷装置の
フォーマットに適合しているかどうかの判定を行って記
録メディアが論理的に対応可能かどうかを調べることと
により行う。
It is to be noted that whether or not the recording medium can be operated is determined by checking the operating voltage, the recording capacity, the type of the card, and the like of the recording medium to check whether or not the recording medium is physically compatible. This is performed by determining whether the recording format conforms to the format of the printing apparatus and checking whether the recording medium is logically compatible.

【0030】ステップST2で動作可能と判定された場
合には、ステップST3でポーリング処理あるいは割込
み処理により、CPU部1が通信インターフェース部4
を介して、印刷装置100aと外部装置とが接続されて
いるか否かを判定する。
If it is determined in step ST2 that the operation is possible, the CPU 1 performs the polling process or the interrupt process in step ST3, and
It is determined whether or not the printing apparatus 100a is connected to an external apparatus via the printer.

【0031】なお外部装置が接続されているか否かの判
定は、図2に示したUSBバスの電圧供給線VBUSの電
圧値を監視することにより行えばよい。そうすれば、容
易に外部装置の接続の検知を行うことができる。
The determination as to whether an external device is connected may be made by monitoring the voltage value of the voltage supply line VBUS of the USB bus shown in FIG. Then, the connection of the external device can be easily detected.

【0032】ステップST3で外部装置が接続されてい
ないことを検知した場合には、ステップST5で印刷装
置100aが記録メディアの記録内容にアクセスして、
例えば、記録メディアに記録された全ディレクトリ項目
を読み取り、記録メディアに記録されたデータのファイ
ルのファイル名、ファイルサイズ等のファイル情報を取
得して、操作パネル部5の表示パネルにファイル情報を
表示する。この後、スイッチ7を操作者が適当に操作す
ることにより、記録メディア内の任意のファイルを印刷
することができる。
If it is detected in step ST3 that an external device is not connected, in step ST5, the printing apparatus 100a accesses the contents recorded on the recording medium, and
For example, all directory items recorded on the recording medium are read, file information such as a file name and a file size of the data file recorded on the recording medium is obtained, and the file information is displayed on the display panel of the operation panel unit 5. I do. Thereafter, by operating the switch 7 appropriately, an arbitrary file in the recording medium can be printed.

【0033】一方、ステップST3で外部装置が接続さ
れていることを検知した場合には、ステップST4で印
刷装置100aが記録メディアのファイル情報を取得す
るとともに、USBインターフェースを介して外部装置
へ記録メディアの装着を通知する。この後、スイッチ7
を操作者が適当に操作することにより、記録メディア内
の任意のファイルを印刷することができる。
On the other hand, if it is detected in step ST3 that an external device is connected, the printing apparatus 100a acquires the file information of the recording medium in step ST4, and transmits the recording medium to the external device via the USB interface. Notify the installation of. After this, switch 7
An operator can print an arbitrary file in the recording medium by appropriately operating.

【0034】そして、印刷装置100aは、記録メディ
ア制御部9を介して記録メディアより画像データファイ
ルを読み込んで画像メモリ部3に転送し、さらに画像デ
ータファイルが圧縮されている場合にはCPU部1にて
画像データ伸張処理を施して、所望の印刷データに変換
して印刷を行う。
Then, the printing apparatus 100a reads the image data file from the recording medium via the recording medium control unit 9 and transfers it to the image memory unit 3, and further, if the image data file is compressed, the CPU unit 1 Performs image data decompression processing, converts the image data into desired print data, and performs printing.

【0035】印刷装置100aが外部装置へ記録メディ
アの装着を通知することにより、外部装置は、後述する
外部装置からの記録メディアへのファイル操作を印刷装
置に与えるべきか否か判断することができる。そして、
印刷装置100aは、取得した記録メディアのファイル
情報を外部装置へと送信して、ファイル情報を受信した
外部装置は自身の備えるモニタにファイル情報を表示す
る。
By the printing apparatus 100a notifying the external apparatus of the mounting of the recording medium, the external apparatus can determine whether or not to give a file operation to the recording medium from the external apparatus described later to the printing apparatus. . And
The printing device 100a transmits the obtained file information of the recording medium to the external device, and the external device that has received the file information displays the file information on its own monitor.

【0036】なお、図4に印刷装置100aにおけるフ
ァイル情報の操作パネル部5の表示例を、図5に外部装
置200におけるファイル情報のモニタ表示例をそれぞ
れ示す。図4では各種ファイルのファイル名F1〜F5
が表示されており、図5でも、ファイル名F1〜F5に
対応する各ファイルFa〜Feのファイル名とファイル
の種類とが表示されている。
FIG. 4 shows a display example of the file information on the operation panel unit 5 in the printing apparatus 100a, and FIG. 5 shows a monitor display example of the file information in the external apparatus 200. In FIG. 4, file names F1 to F5 of various files
Are displayed, and also in FIG. 5, the file names and file types of the files Fa to Fe corresponding to the file names F1 to F5 are displayed.

【0037】なお、記録メディアには画像データのファ
イルだけではなく、例えばテキスト文書等のデータが保
存されていてもよい。図4中のファイル名F4および図
5中のファイルFdはこのことを示している。そうすれ
ば、後述する外部装置からの記録メディアへのファイル
操作の対象を、画像データのファイルだけでなく全ての
種類のファイルとすることができる。
The recording medium may store not only a file of image data but also data such as a text document. The file name F4 in FIG. 4 and the file Fd in FIG. 5 indicate this. Then, a file operation on a recording medium from an external device, which will be described later, can be performed not only for image data files but also for all types of files.

【0038】さて次に、ファイル名などのファイル情報
を外部装置に転送した後の、外部装置から通信インター
フェース部4を介して、印刷装置100aに装着された
記録メディアのファイルにアクセスする場合の動作につ
いて説明する。
Next, an operation for accessing a file on a recording medium mounted on the printing apparatus 100a from the external device via the communication interface unit 4 after transferring file information such as a file name to the external device. Will be described.

【0039】図6は、操作者がファイル操作指示を外部
装置に与えた場合の外部装置の処理を示すフローチャー
トである。また、図7は外部装置からファイル操作コマ
ンドを受信した場合の印刷装置100aの処理を示すフ
ローチャートである。
FIG. 6 is a flowchart showing the processing of the external device when the operator gives a file operation instruction to the external device. FIG. 7 is a flowchart illustrating processing of the printing apparatus 100a when a file operation command is received from an external device.

【0040】なお、外部装置には、通信インターフェー
ス部4および記録メディア制御部9を介して記録メディ
アにアクセスするための、印刷装置100aとの相互の
やり取りの手順のプログラムが予め、ドライバとして記
憶されている。これにより、外部装置から印刷装置10
0aを介して自在に記録メディアにアクセスすることが
可能となる。
In the external device, a program of a procedure of mutual exchange with the printing apparatus 100a for accessing the recording medium via the communication interface unit 4 and the recording medium control unit 9 is stored in advance as a driver. ing. As a result, the printing apparatus 10
It is possible to freely access the recording medium via the storage medium 0a.

【0041】まず、外部装置において例えば図5のよう
なファイル名を表示した画面から所望のファイルを開く
場合のように、記録メディアに記録されたファイルを外
部装置に読み込む場合について説明する。
First, a case will be described in which a file recorded on a recording medium is read into an external device, such as when a desired file is opened from a screen displaying a file name as shown in FIG. 5 in the external device.

【0042】まず、ステップST11でファイル操作の
指示を判定する。そして、指示がファイル読み込みの場
合には、ステップST12で印刷装置100aに対して
USBインターフェースを介して“ファイル読み込みコ
マンド”を送信する。
First, a file operation instruction is determined in step ST11. If the instruction is to read a file, a “file read command” is transmitted to the printing apparatus 100a via the USB interface in step ST12.

【0043】印刷装置100aはUSBインターフェー
スからのデータ受信をポーリング処理または割込み処理
により監視している。そして、ステップST21で印刷
装置100aは外部装置から受信した操作コマンドの判
別を行い、“ファイル読み込みコマンド”を受信した場
合には、指定されたファイルをステップST22で記録
メディアより読み込む。
The printing apparatus 100a monitors data reception from the USB interface by polling processing or interrupt processing. Then, in step ST21, the printing device 100a determines the operation command received from the external device, and when receiving the "file read command", reads the specified file from the recording medium in step ST22.

【0044】そして、ファイルの読み込みが成功したか
どうかステップST23で判別し、成功した場合には、
印刷装置100aは読み込んだファイルのデータをステ
ップST25で外部装置へと送信する。外部装置におい
ては、印刷装置100aからのファイルの読み込みの成
功または失敗の情報を受信し、ステップST13で“フ
ァイル読み込み失敗”を受信しなかった場合には、ステ
ップST14でファイルを受信して、ファイル読み込み
成功となる。
Then, it is determined in step ST23 whether or not the file has been successfully read.
The printing device 100a transmits the read file data to the external device in step ST25. In the external device, information on the success or failure of reading the file from the printing device 100a is received. If “file read failure” is not received in step ST13, the file is received in step ST14, and the file is received. Reading is successful.

【0045】一方、ステップST23でファイルの読み
込みが失敗した場合には、ステップST24で印刷装置
100aは“ファイル読み込み失敗”を外部装置へと送
信する。そして、外部装置においてステップST13で
“ファイル読み込み失敗”が受信され、ファイル読み込
み失敗となる。
On the other hand, if the reading of the file has failed in step ST23, the printing apparatus 100a transmits "file reading failed" to the external device in step ST24. Then, the external device receives “File read failure” in step ST13, and the file read fails.

【0046】ファイル読み込み失敗の場合は、外部装置
は再度、ファイル読み込みの指示を発すべきか否かを判
断する。例えば失敗の場合は常に指示を再送するように
してもよいし、また、操作者に指示の再送を行うかどう
かの判断を求めてもよい。
If the reading of the file fails, the external device determines again whether or not to issue a file reading instruction. For example, in the case of failure, the instruction may always be retransmitted, or the operator may be asked to determine whether to retransmit the instruction.

【0047】次に、例えば、開いたファイルを修正、変
更して保存する場合や、記録メディアに新規に作成した
ファイルを保存する場合等、外部装置から記録メディア
のファイルを書き込む場合について説明する。
Next, a case of writing a file on a recording medium from an external device, such as a case where an opened file is modified, changed, and saved, or a case where a newly created file is saved on a recording medium, will be described.

【0048】まず、外部装置においてステップST11
でファイル操作の指示を判定する。そして、指示がファ
イル書き込みの場合には、ステップST15で印刷装置
100aに対してUSBインターフェースを介して“フ
ァイル書き込みコマンド”を送信し、次いでステップS
T16で書き込むファイルのデータを送信する。
First, in the external device, step ST11
To determine a file operation instruction. If the instruction is to write a file, a “file write command” is transmitted to the printing apparatus 100a via the USB interface in step ST15.
At T16, the data of the file to be written is transmitted.

【0049】ステップST21で印刷装置100aは外
部装置から受信した操作コマンドの判別を行い、外部装
置から“ファイル書き込みコマンド”を受信した場合
は、外部装置から送られてくるファイルデータをステッ
プST26で受信する。そしてステップST27で、指
定されたファイルが存在しない場合には記録メディアに
新規ファイルとして書き込みを行い、既に存在する場合
にはファイルを書き換える。
In step ST21, the printing device 100a determines the operation command received from the external device, and when receiving the "file write command" from the external device, receives the file data sent from the external device in step ST26. I do. Then, in step ST27, if the specified file does not exist, writing is performed as a new file on the recording medium, and if it already exists, the file is rewritten.

【0050】そして、ファイルの書き込みが成功したか
どうかステップST28で判別し、成功した場合には、
印刷装置100aはステップST29で“ファイル書き
込み成功”を外部装置に送信する。外部装置において
は、印刷装置100aからのファイルの書き込みの成功
または失敗の情報を受信し、ステップST17で外部装
置が“ファイル書き込み成功”を受信した場合には、フ
ァイル書き込み成功となる。
Then, it is determined in step ST28 whether or not the writing of the file has succeeded.
In step ST29, the printing device 100a transmits "file writing success" to the external device. The external device receives the information on the success or failure of writing the file from the printing device 100a, and if the external device receives “successful file writing” in step ST17, the file writing is successful.

【0051】一方、ステップST28でファイルの書き
込みが失敗した場合には、ステップST30で印刷装置
100aは“ファイル書き込み失敗”を外部装置へと送
信する。そして、外部装置においてステップST17で
“ファイル書き込み失敗”が受信され、ファイル書き込
み失敗となる。
On the other hand, if the writing of the file has failed in step ST28, the printing apparatus 100a transmits "file writing failed" to the external device in step ST30. Then, in the external device, “file write failure” is received in step ST17, and the file write fails.

【0052】ファイル書き込み失敗の場合は、外部装置
は再度、ファイル書き込みの指示を発すべきか否かを判
断する。例えば失敗の場合は常に指示を再送するように
してもよいし、また、操作者に指示の再送を行うかどう
かの判断を求めてもよい。
If the file writing has failed, the external device determines again whether or not to issue a file writing instruction. For example, in the case of failure, the instruction may always be retransmitted, or the operator may be asked to determine whether to retransmit the instruction.

【0053】最後に、外部装置において例えば図5のよ
うなファイル名を表示した画面から所望のファイルを削
除する等、記録メディアに記録されたファイルを外部装
置からの指示で削除する場合について説明する。
Finally, a case in which a file recorded on a recording medium is deleted by an instruction from the external device, such as deleting a desired file from a screen displaying a file name as shown in FIG. .

【0054】まず、ステップST11でファイル操作の
指示を判定する。そして、指示がファイル削除の場合に
は、ステップST18で印刷装置100aに対してUS
Bインターフェースを介して“ファイル削除コマンド”
を送信する。
First, in step ST11, a file operation instruction is determined. If the instruction is to delete the file, the printer 100a is sent to the printing apparatus 100a in step ST18.
"File delete command" via B interface
Send

【0055】ステップST21で印刷装置100aは外
部装置から受信した操作コマンドの判別を行い、外部装
置から“ファイル削除コマンド”を受信した場合は、記
録メディア内の指定されたファイルをステップST31
で削除する。
In step ST21, the printing apparatus 100a determines the operation command received from the external device, and when receiving the "file delete command" from the external device, copies the designated file in the recording medium to step ST31.
To delete.

【0056】そして、ファイルの削除が成功したかどう
かステップST32で判別し、ファイルの削除が成功し
た場合には、印刷装置100aはステップST33で
“ファイル削除成功”を外部装置へと送信する。外部装
置においては、印刷装置100aからのファイルの削除
の成功または失敗の情報を受信し、ステップST19で
“ファイル削除成功”を受信した場合には、ファイル削
除成功となる。
Then, it is determined in step ST32 whether or not the file has been successfully deleted. If the file has been successfully deleted, the printing apparatus 100a transmits "Successfully deleted file" to the external device in step ST33. In the external device, the information of the success or failure of the file deletion from the printing device 100a is received, and if "file deletion success" is received in step ST19, the file deletion is successful.

【0057】一方、ステップST32でファイルの削除
が失敗した場合には、ステップST34で印刷装置10
0aは“ファイル削除失敗”を外部装置へと送信する。
そして、外部装置においてステップST19で“ファイ
ル削除失敗”が受信され、ファイル削除失敗となる。
On the other hand, if the deletion of the file has failed in step ST32, the printing apparatus 10 is deleted in step ST34.
0a transmits "file deletion failure" to the external device.
Then, the external device receives “File deletion failure” in step ST19, and the file deletion fails.

【0058】ファイル削除失敗の場合は、外部装置は再
度、ファイル削除の指示を発すべきか否かを判断する。
例えば失敗の場合は常に指示を再送するようにしてもよ
いし、また、操作者に指示の再送を行うかどうかの判断
を求めてもよい。
If the file deletion has failed, the external device determines again whether or not to issue a file deletion instruction.
For example, in the case of failure, the instruction may always be retransmitted, or the operator may be asked to determine whether to retransmit the instruction.

【0059】なお、上記のような、ファイルの読み込
み、ファイルの書き込み、およびファイルの削除の組み
合わせを適当に行うことにより、記録メディア内でのフ
ァイル複製、記録メディアから外部装置へのファイル複
製、外部装置から記録メディアへのファイル複製等、記
録メディアの読み書き装置で可能な全ての動作を行うこ
とが可能となる。
By appropriately performing the combination of reading, writing, and deleting a file as described above, file duplication in a recording medium, file duplication from a recording medium to an external device, It is possible to perform all operations that can be performed by the recording medium read / write device, such as copying a file from the device to the recording medium.

【0060】また、外部装置においては、図5に表示し
たモニタ表示例中の一つのファイル名を例えばダブルク
リックするとそのファイルが開くよう、ユーザーインタ
ーフェースを設定しておけばよい。
In the external device, the user interface may be set so that, for example, double-clicking one file name in the monitor display example shown in FIG. 5 opens the file.

【0061】このように、本実施の形態に係る印刷装置
を用いれば、外部装置が通信インターフェース部4およ
び記録メディア制御部9を介して記録メディアにアクセ
スすることをCPU部1が制御するので、外部装置に記
録メディアの読み書き装置を別途、接続することなく、
記録メディア内のファイルの読み出しや変更を外部装置
から行うことができ、利便性に富む印刷装置を得ること
ができる。
As described above, if the printing apparatus according to the present embodiment is used, the CPU 1 controls access to a recording medium via the communication interface unit 4 and the recording medium control unit 9 by the external device. Without separately connecting a read / write device for recording media to an external device,
A file in the recording medium can be read or changed from an external device, so that a highly convenient printing device can be obtained.

【0062】また、外部装置からの記録メディアへのア
クセスの制御を行った後、動作が成功したか失敗したか
をCPU部1は外部装置に通知するので、外部装置は再
度、指示を発すべきか否かを判断することができる。さ
らに、記録メディアの装着が検知され、かつ、外部装置
の接続が検知されたときには、CPU部1は外部装置に
記録メディアの装着を通知するので、外部装置は記録メ
ディア内に記録されたファイルの操作に関する指示を印
刷装置に与えるべきか否か判断することができる。
After controlling access to the recording medium from the external device, the CPU unit 1 notifies the external device whether the operation has succeeded or failed, so that the external device should issue an instruction again. Can be determined. Further, when the mounting of the recording medium is detected and the connection of the external device is detected, the CPU unit 1 notifies the external device of the mounting of the recording medium. It can be determined whether or not an instruction regarding the operation should be given to the printing apparatus.

【0063】また、USBバス等の電圧供給線を含むバ
スで印刷装置と外部装置とが接続され、印刷装置は、外
部装置の接続の検知を電圧供給線の電圧値を監視するこ
とにより行うので、容易に外部装置の接続の検知を行う
ことができる。
Further, the printing device and the external device are connected by a bus including a voltage supply line such as a USB bus, and the printing device detects the connection of the external device by monitoring the voltage value of the voltage supply line. The connection of the external device can be easily detected.

【0064】さて次に、外部装置からファイル読み込み
やファイル削除を行う際の記録メディアへのファイル操
作と、印刷装置100aが記録メディア内のファイルの
印刷を行う際の記録メディアへのファイル操作との間で
排他制御をする場合の動作について説明する。ここでい
う排他制御とは、外部装置から記録メディアのファイル
操作を行う場合と、印刷装置100aから記録メディア
のファイル操作を行う場合とが競合しないように調整す
る制御のことを指す。
Next, the file operation on the recording medium when reading or deleting a file from an external device and the file operation on the recording medium when the printing apparatus 100a prints a file in the recording medium are described. The operation when exclusive control is performed between the two will be described. Here, the exclusive control refers to control for adjusting the case where the file operation of the recording medium is performed from the external device and the case where the file operation of the recording medium is performed from the printing apparatus 100a so as not to conflict.

【0065】図8はファイル操作の要求開始からファイ
ル操作処理終了までの印刷装置100aにおける排他制
御の動作を示すフローチャートである。
FIG. 8 is a flowchart showing the exclusive control operation in the printing apparatus 100a from the start of the file operation request to the end of the file operation processing.

【0066】外部装置または印刷装置100aよりファ
イル操作の要求を受けた場合、CPU部1は、そのマイ
クロコンピュータ内のレジスタ等に予め設定されたファ
イル操作フラグのON/OFFをステップST41でチ
ェックする。そして、ファイル操作フラグがONである
場合には、ステップST45でファイル操作フラグがO
FFになるまでファイル操作の要求を待機させる。
When a file operation request is received from the external device or the printing device 100a, the CPU 1 checks ON / OFF of a file operation flag preset in a register or the like in the microcomputer in step ST41. If the file operation flag is ON, the file operation flag is set to O in step ST45.
Wait for a file operation request until it becomes FF.

【0067】ステップST45でファイル操作フラグが
OFFになった場合、またはステップST41でファイ
ル操作フラグがOFFである場合には、これからファイ
ル操作を行うことを明示するためにステップST42で
ファイル操作フラグをONにする。
If the file operation flag is turned off in step ST45, or if the file operation flag is turned off in step ST41, the file operation flag is turned on in step ST42 to clearly indicate that the file operation is to be performed. To

【0068】そして、ステップST43でファイル読み
込みやファイル書き込み等のファイル操作処理を行い、
ファイル操作終了後、ステップST44でファイル操作
フラグをOFFにする。
Then, in step ST43, file operation processing such as file reading and file writing is performed.
After the file operation is completed, the file operation flag is turned off in step ST44.

【0069】このように、外部装置からの記録メディア
へのファイル操作と、印刷装置100aからの記録メデ
ィアへのファイル操作との間で排他制御を行えば、外部
装置および印刷装置100aのいずれか一方が記録メデ
ィアへのファイル操作を行っているときには、他方は記
録メディアへのファイル操作を待機することになり、両
者の操作が衝突することがない。
As described above, if exclusive control is performed between the file operation on the recording medium from the external device and the file operation on the recording medium from the printing device 100a, one of the external device and the printing device 100a is performed. Is performing a file operation on the recording medium, the other waits for a file operation on the recording medium, so that the operations do not collide with each other.

【0070】なお、本実施の形態に係る印刷装置は、各
種の記録メディアが着脱可能な印刷装置に適用すること
ができるが、各種記録メディアインターフェースを有し
た印刷装置であれば、どのような印刷装置にも適用でき
ることは言うまでもない。記録メディアとしては上記の
スマートメディアやPCカードのほかにも、例えばマル
チメディアカードや、コンパクトフラッシュ(登録商
標)、メモリスティック等があるが、それらの場合も、
印刷装置にこれらの記録メディアに対応するインターフ
ェースを設け、各規格に対応させればよい。
Although the printing apparatus according to the present embodiment can be applied to a printing apparatus to which various recording media can be attached and detached, any printing apparatus having various recording media interfaces can be used. It goes without saying that the present invention can be applied to an apparatus. As the recording media, in addition to the above-described smart media and PC card, for example, there are a multimedia card, a compact flash (registered trademark), a memory stick, and the like.
An interface corresponding to these recording media may be provided in the printing apparatus to comply with each standard.

【0071】また、本実施の形態に係る印刷装置におい
てはファイル単位で操作する構成としたが、ファイルオ
ープン、ファイルリード、ファイルライト、ファイルシ
ーク、ファイルクローズのコマンドと処理にて構成する
ことにより、ファイルを部分的に操作できる印刷装置と
することも可能である。
In the printing apparatus according to the present embodiment, the operation is performed on a file-by-file basis. However, by configuring the command and processing of file open, file read, file write, file seek, and file close, It is also possible to use a printing device that can partially operate the file.

【0072】すなわち、ファイル単位で操作する構成の
場合は、例えば外部装置でファイルの内容を変更すると
き、まず、通信インタフェースを介して印刷装置から記
録メディア内のファイルを受信して、それを外部装置上
で変更した後、変更後のファイルを印刷装置に送信し、
記録メディア内のファイルを更新する。
That is, in the case of a configuration in which operation is performed on a file basis, for example, when the content of a file is changed by an external device, first, a file in a recording medium is received from a printing device via a communication interface, and the received file is externally transmitted. After making changes on the device, send the changed file to the printing device,
Update the file on the recording media.

【0073】一方、ファイルを部分的に操作する構成の
場合は、同じく例えば外部装置でファイルの内容を変更
するとき、まず、印刷装置に対して記録メディア内の指
定のファイルをオープンするコマンド(ファイルオープ
ンコマンド)を外部装置から送付して、印刷装置のプロ
グラムでそのファイルを検索し、読み書き可能な状態に
する。次に、変更したいアドレスにシークするコマンド
(ファイルシークコマンド)を送付して、ファイル内の
現行ポインタの位置を移動させる。そして、ファイルを
ライトするコマンド(ファイルライトコマンド)で書き
込むべきデータを外部装置から送信し、送信されたデー
タを印刷装置側で書き込む。そして最後に、指定したフ
ァイルの読み書き可能な状態を終了させるために、ファ
イルをクローズするコマンド(ファイルクローズコマン
ド)を外部装置から送付して、印刷装置の記録メディア
へのアクセスを終了させる。
On the other hand, in the case of a configuration in which a file is partially manipulated, similarly, for example, when the content of a file is changed by an external device, first, a command (file Open command) is sent from the external device, and the file is searched by the program of the printing device to make it readable and writable. Next, a command (file seek command) for seeking to the address to be changed is sent, and the position of the current pointer in the file is moved. Then, data to be written is transmitted from the external device by a file write command (file write command), and the transmitted data is written on the printing device side. Finally, a command to close the file (file close command) is sent from the external device to end the read / write state of the specified file, and the access to the recording medium of the printing device is ended.

【0074】このようにファイルの全部または一部の単
位で、外部装置から記録メディアにアクセス可能なよう
にしておけば、簡便にアクセスが行える。
As described above, if the recording medium can be accessed from the external device in all or a part of the file, the access can be easily performed.

【0075】なお、ファイル単位で操作する場合および
ファイルを部分的に操作する場合のいずれであっても、
図3のフローチャートに示したステップST4またはS
T5においてファイル情報が印刷装置に読み込まれてい
るので、記録メディア内の任意のファイルにアクセスす
ることは可能である。
In both the case of operating on a file basis and the case of partially operating a file,
Step ST4 or S shown in the flowchart of FIG.
Since the file information has been read into the printing device at T5, it is possible to access an arbitrary file in the recording medium.

【0076】また、本実施の形態に係る印刷装置におい
ては、通信インターフェースにUSBインターフェース
を採用する場合を示したが、もちろん、これに限るもの
ではなく、例えばパラレルインターフェースなどを用い
てもよい。その場合も、インタフェースに電圧供給線が
あれば、その電圧供給線の電圧値を監視することで同様
の効果が得られることは言うまでもない。
Further, in the printing apparatus according to the present embodiment, the case where the USB interface is employed as the communication interface has been described. However, the present invention is not limited to this, and a parallel interface may be used. In this case, if the interface has a voltage supply line, it goes without saying that the same effect can be obtained by monitoring the voltage value of the voltage supply line.

【0077】また、上記印刷装置を構成する、例えば印
刷部6、記録メディア制御部9、画像メモリ部3等の種
類、数、接続状態等も任意に設定すればよい。
Further, the types, numbers, connection states, etc. of the printing unit, for example, the printing unit 6, the recording medium control unit 9, the image memory unit 3, etc. may be arbitrarily set.

【0078】<実施の形態2>本実施の形態は、実施の
形態1に係る印刷装置の変形例である。本実施の形態に
おいては、外部装置からの記録メディアの操作を、ファ
イル単位で操作したりファイルを部分的に操作するので
はなく、記録メディアの例えばセクタやクラスタなどの
単位でデータの入出力操作を行う。
<Second Embodiment> This embodiment is a modification of the printing apparatus according to the first embodiment. In the present embodiment, the operation of the recording medium from the external device is not performed on a file basis or on a partial basis of the file. I do.

【0079】なお、本実施の形態に係る印刷装置の構成
は、実施の形態1に係る印刷装置の構成と同様である。
The configuration of the printing apparatus according to the present embodiment is the same as the configuration of the printing apparatus according to the first embodiment.

【0080】図9は、操作者がデータ入出力の指示を外
部装置に与えた場合の外部装置の処理を示すフローチャ
ートである。また、図10は外部装置からデータ入出力
コマンドを受信した場合の印刷装置100aの処理を示
すフローチャートである。
FIG. 9 is a flowchart showing the processing of the external device when the operator gives an instruction for data input / output to the external device. FIG. 10 is a flowchart showing processing of the printing apparatus 100a when a data input / output command is received from an external device.

【0081】まず、例えばファイルをリードする場合
等、外部装置から記録メディア内のデータを読み込む場
合について説明する。
First, a case where data in a recording medium is read from an external device, for example, when reading a file will be described.

【0082】まず、ステップST51でデータ入出力の
指示を判定する。そして、指示がデータ読み込みの場合
には、ステップST52で印刷装置100aに対して通
信インターフェース部4を介して“データ読み込みコマ
ンド”を送信する。
First, a data input / output instruction is determined in step ST51. If the instruction is to read data, a “data read command” is transmitted to the printing apparatus 100a via the communication interface unit 4 in step ST52.

【0083】印刷装置100aは通信インターフェース
部4からのデータ受信をポーリングまたは割込みにより
監視している。そして、ステップST61で印刷装置1
00aは外部装置から受信したデータ入出力コマンドの
判別を行い、“データ読み込みコマンド”を受信した場
合には、ステップST62で記録メディアの指定された
アドレスよりデータを読み込む。
The printing apparatus 100a monitors data reception from the communication interface unit 4 by polling or interruption. Then, in step ST61, the printing apparatus 1
00a determines the data input / output command received from the external device, and if a "data read command" is received, reads data from the specified address of the recording medium in step ST62.

【0084】そして、データの読み込みが成功したかど
うかステップST63で判別し、成功した場合には、印
刷装置100aは読み込んだデータをステップST65
で外部装置へと送信する。外部装置においては、印刷装
置100aからのデータの読み込みの成功または失敗の
情報を受信し、ステップST53で外部装置が“データ
読み込み失敗”を受信しなかった場合には、ステップS
T54でデータを受信して、データ読み込み成功とな
る。
Then, in step ST63, it is determined whether or not the reading of the data has succeeded. If the reading has succeeded, the printing apparatus 100a stores the read data in step ST65.
To send to an external device. In the external device, information on the success or failure of data reading from the printing device 100a is received. If the external device does not receive “data reading failure” in step ST53, the process proceeds to step S53.
At T54, the data is received, and the data reading is successful.

【0085】一方、ステップST63でデータの読み込
みが失敗した場合には、ステップST64で印刷装置1
00aは“データ読み込み失敗”を外部装置へと送信す
る。そして、外部装置においてステップST53で“デ
ータ読み込み失敗”が受信され、データ読み込み失敗と
なる。
On the other hand, if the data reading has failed in step ST63, the printing apparatus 1 is determined in step ST64.
00a transmits “data read failure” to the external device. Then, the external device receives “data read failure” in step ST53, and the data read fails.

【0086】データ読み込み失敗の場合は、外部装置は
再度、データ読み込みの指示を発すべきか否かを判断す
る。例えば失敗の場合は常に指示を再送するようにして
もよいし、また、操作者に指示の再送を行うかどうかの
判断を求めてもよい。
In the case of data reading failure, the external device determines again whether or not to issue a data reading instruction. For example, in the case of failure, the instruction may always be retransmitted, or the operator may be asked to determine whether to retransmit the instruction.

【0087】次に、例えば、ファイルをライトする場合
等、外部装置から記録メディアへデータを書き込む場合
について説明する。
Next, a case of writing data from an external device to a recording medium, such as a case of writing a file, will be described.

【0088】まず、外部装置においてステップST51
でデータ入出力の指示を判定する。そして、指示がデー
タ書き込みの場合には、ステップST55で印刷装置1
00aに対して通信インターフェース部4を介して“デ
ータ書き込みコマンド”を送信し、次いでステップST
56で書き込むデータを送信する。
First, the external device performs step ST51.
To determine the data input / output instruction. If the instruction is to write data, the printing device 1 is determined in step ST55.
A “data write command” is transmitted to the communication device 00a via the communication interface unit 4, and then the step ST
The data to be written is transmitted at 56.

【0089】ステップST61で印刷装置100aは外
部装置から受信した操作コマンドの判別を行い、外部装
置から“データ書き込みコマンド”を受信した場合は、
外部装置から送られてくるデータをステップST66で
受信する。そして、ステップST67で記録メディアの
指定されたアドレスへデータを書き込む。
In step ST61, the printing device 100a determines the operation command received from the external device, and when receiving the “data write command” from the external device,
The data sent from the external device is received in step ST66. Then, in step ST67, data is written to the specified address of the recording medium.

【0090】そして、ファイルの書き込みが成功したか
どうかステップST68で判別し、成功した場合には、
印刷装置100aはステップST69で“データ書き込
み成功”を外部装置に送信する。外部装置においては、
印刷装置100aからのデータの書き込みの成功または
失敗の情報を受信し、ステップST57で外部装置が
“データ書き込み成功”を受信した場合には、データ書
き込み成功となる。
Then, it is determined in step ST68 whether or not the writing of the file has succeeded.
The printing device 100a transmits "data writing success" to the external device in step ST69. For external devices,
If the information of the success or failure of the data writing from the printing apparatus 100a is received, and the external apparatus receives “data writing success” in step ST57, the data writing is successful.

【0091】一方、ステップST68でデータの書き込
みが失敗した場合には、ステップST70で印刷装置1
00aは“データ書き込み失敗”を外部装置へと送信す
る。そして、外部装置においてステップST57で“デ
ータ書き込み失敗”が受信され、データ書き込み失敗と
なる。
On the other hand, if the data writing has failed in step ST68, the printing device 1
00a transmits "data write failure" to the external device. Then, the external device receives “data write failure” in step ST57, and the data write fails.

【0092】データ書き込み失敗の場合は、外部装置は
再度、データ書き込みの指示を発すべきか否かを判断す
る。例えば失敗の場合は常に指示を再送するようにして
もよいし、また、操作者に指示の再送を行うかどうかの
判断を求めてもよい。
If the data write has failed, the external device determines again whether or not to issue a data write instruction. For example, in the case of a failure, the instruction may be retransmitted at all times, or the operator may be asked to determine whether to retransmit the instruction.

【0093】なお、実施の形態1におけるファイル削除
の場合に相当するのは、データをクリアの状態にするこ
とであるので、データ書き込み処理を用いて、例えばク
リア状態を意味する0x00(xは任意の16進値)の
データを書き込むようにすればよい。
Since the case of deleting a file in the first embodiment corresponds to clearing the data, the data writing process is used to set, for example, 0x00 (x is an arbitrary value) indicating a clear state. Hex value).

【0094】なお、上記のような、データの読み込みお
よびデータの書き込みの組み合わせを適当に行うことに
より、記録メディアからのファイルの読み込み、記録メ
ディアへのファイルの書き込み、記録メディアと外部装
置との間でのファイルの複製、ディレクトリ情報の読み
書き、FAT(File Allocation Table)情報の読み書
き等、記録メディアの読み書き装置で可能な全ての動作
を行うことが可能となる。
By appropriately combining the data reading and the data writing as described above, the file reading from the recording medium, the file writing to the recording medium, and the communication between the recording medium and the external device are performed. It is possible to perform all the operations that can be performed by a recording medium read / write device, such as copying a file, reading / writing directory information, reading / writing FAT (File Allocation Table) information, and the like.

【0095】このように、本実施の形態に係る印刷装置
を用いれば、実施の形態1にかかる印刷装置と同様、外
部装置から記録メディア内に記録されたデータの入出力
操作に関する指示が与えられたときに、印刷装置が記録
メディアに対して外部装置からの指示に対応する動作を
行うので、外部装置に記録メディアの読み書き装置を別
途、接続することなく、記録メディア内のデータの読み
出しや変更を外部装置から行うことができ、利便性に富
む印刷装置を得ることができる。
As described above, when the printing apparatus according to the present embodiment is used, similarly to the printing apparatus according to the first embodiment, an instruction regarding an input / output operation of data recorded in a recording medium is given from an external device. When the printing device performs the operation corresponding to the instruction from the external device with respect to the recording medium, the reading and changing of the data in the recording medium can be performed without separately connecting the reading / writing device of the recording medium to the external device. Can be performed from an external device, and a printing device with high convenience can be obtained.

【0096】また、所定のデータ単位で外部装置から記
録メディアにアクセスするので、ファイル単位でアクセ
スする場合に比べより細かな処理が可能となる。
Further, since the recording medium is accessed from the external device in predetermined data units, more detailed processing can be performed as compared with the case of accessing in file units.

【0097】[0097]

【発明の効果】請求項1に記載の発明によれば、外部装
置が通信インターフェース手段および記録メディア制御
手段を介して記録メディアにアクセスすることを制御す
る制御手段を備えるので、外部装置に記録メディアの読
み書き装置を別途、接続することなく、記録メディア内
のファイルやデータの読み出しや変更を外部装置から行
うことが可能な、利便性に富む印刷装置を得ることがで
きる。
According to the first aspect of the present invention, since the external device is provided with control means for controlling access to the recording medium via the communication interface means and the recording medium control means, the external device is provided with the recording medium. It is possible to obtain a highly convenient printing apparatus capable of reading and changing files and data in a recording medium from an external apparatus without separately connecting a reading / writing apparatus.

【0098】請求項2に記載の発明によれば、ファイル
の全部または一部の単位で外部装置から記録メディアに
アクセスする場合、簡便にアクセスが行える。また、所
定のデータ単位で外部装置から記録メディアにアクセス
する場合、ファイル単位でアクセスする場合に比べより
細かな処理が可能となる。
According to the second aspect of the invention, when an external device accesses a recording medium in whole or a part of a file, the access can be easily performed. Further, when accessing the recording medium from the external device in a predetermined data unit, more detailed processing can be performed as compared with the case of accessing in a file unit.

【0099】請求項3に記載の発明によれば、制御手段
は、外部装置からの記録メディアへのアクセスの制御を
行った後、制御が成功したか失敗したかを外部装置に通
知するので、外部装置は再度、指示を発すべきか否かを
判断することができる。
According to the third aspect of the present invention, the control means, after controlling the access to the recording medium from the external device, notifies the external device whether the control has succeeded or failed. The external device can again determine whether to issue the instruction.

【0100】請求項4に記載の発明によれば、制御手段
は、外部装置からの記録メディア内の記録内容への操作
と、印刷装置からの記録メディア内の記録内容への操作
との間で排他制御を行うので、外部装置および印刷装置
のいずれか一方が記録メディア内の記録内容の操作を行
っているときには、他方は記録メディア内の記録内容へ
の操作を待機することになり、両者の操作が衝突するこ
とがない。
According to the fourth aspect of the present invention, the control means controls the operation between the operation of the content recorded on the recording medium from the external device and the operation of the content recorded on the recording medium from the printing device. Since exclusive control is performed, when one of the external device and the printing device is operating the recorded content in the recording medium, the other is waiting for the operation on the recorded content in the recording medium. Operation does not conflict.

【0101】請求項5に記載の発明によれば、制御手段
は、記録メディアの記録メディア制御手段への装着を検
知し、外部装置の通信インターフェース手段への接続を
検知し、記録メディアが記録メディア制御手段へ装着さ
れ、かつ、外部装置が通信インターフェース手段へ接続
されたときには、外部装置に記録メディアの装着を通知
するので、外部装置は記録メディア内の記録内容の操作
に関する指示を印刷装置に与えるべきか否か判断するこ
とができる。
According to the fifth aspect of the present invention, the control means detects attachment of the recording medium to the recording medium control means, detects connection of the external device to the communication interface means, and sets the recording medium to the recording medium. When attached to the control means and the external device is connected to the communication interface means, the external device notifies the external device of the attachment of the recording medium, so that the external device gives an instruction on the operation of the recorded contents in the recording medium to the printing device. It can be determined whether or not it should be.

【0102】請求項6に記載の発明によれば、通信イン
ターフェース手段と外部装置とは電圧供給線を含むバス
により接続され、制御手段は、電圧供給線の電圧値を監
視することにより外部装置の接続の検知を行うので、容
易に外部装置の接続の検知を行うことができる。
According to the invention described in claim 6, the communication interface means and the external device are connected by a bus including a voltage supply line, and the control means monitors the voltage value of the voltage supply line to control the external device. Since the connection is detected, the connection of the external device can be easily detected.

【0103】請求項7に記載の発明によれば、外部装置
には、通信インターフェース手段および記録メディア制
御手段を介して記録メディアにアクセスするために印刷
装置との間で相互に行われるやり取りの手順が記憶され
ているので、外部装置から印刷装置を介して自在に記録
メディアにアクセスすることが可能となる。
According to the seventh aspect of the present invention, the exchange procedure between the printing apparatus and the external apparatus for accessing the recording medium via the communication interface means and the recording medium control means is provided to the external apparatus. Is stored, the external device can freely access the recording medium via the printing device.

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

【図1】 実施の形態1に係る印刷装置の構成を示すブ
ロック図である。
FIG. 1 is a block diagram illustrating a configuration of a printing apparatus according to a first embodiment.

【図2】 USBバスのケーブルを示す図である。FIG. 2 is a diagram illustrating a USB bus cable.

【図3】 実施の形態1に係る印刷装置の記録メディア
装着時の処理を示すフローチャートである。
FIG. 3 is a flowchart showing processing when a recording medium is mounted in the printing apparatus according to the first embodiment.

【図4】 実施の形態1に係る印刷装置におけるファイ
ル情報の操作パネル部5の表示例を示す図である。
FIG. 4 is a diagram showing a display example of an operation panel unit 5 of file information in the printing apparatus according to the first embodiment.

【図5】 実施の形態1に係る印刷装置に接続される外
部装置におけるファイル情報のモニタ表示例を示す図で
ある。
FIG. 5 is a diagram showing a monitor display example of file information in an external device connected to the printing device according to the first embodiment.

【図6】 ファイル操作指示を外部装置に与えた場合の
外部装置の処理を示すフローチャートである。
FIG. 6 is a flowchart illustrating a process of the external device when a file operation instruction is given to the external device.

【図7】 外部装置からファイル操作コマンドを受信し
た場合の実施の形態1に係る印刷装置の処理を示すフロ
ーチャートである。
FIG. 7 is a flowchart illustrating processing of the printing apparatus according to the first embodiment when a file operation command is received from an external apparatus.

【図8】 ファイル操作の要求開始からファイル操作処
理終了までの実施の形態1に係る印刷装置における排他
制御の動作を示すフローチャートである。
FIG. 8 is a flowchart showing an exclusive control operation in the printing apparatus according to the first embodiment from the start of a file operation request to the end of the file operation process.

【図9】 データ入出力の指示を外部装置に与えた場合
の外部装置の処理を示すフローチャートである。
FIG. 9 is a flowchart showing processing of the external device when an instruction for data input / output is given to the external device.

【図10】 外部装置からデータ入出力コマンドを受信
した場合の実施の形態2に係る印刷装置の処理を示すフ
ローチャートである。
FIG. 10 is a flowchart illustrating processing of the printing apparatus according to the second embodiment when a data input / output command is received from an external apparatus.

【図11】 従来の印刷装置の構成を示すブロック図で
ある。
FIG. 11 is a block diagram illustrating a configuration of a conventional printing apparatus.

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

1 CPU部、2 プログラムメモリ部、3 画像メモ
リ部、4 通信インターフェース部、5 操作パネル
部、6 印刷部、7 スイッチ、8 システムバス、9
記録メディア制御部、100a 印刷装置。
1 CPU section, 2 program memory section, 3 image memory section, 4 communication interface section, 5 operation panel section, 6 printing section, 7 switch, 8 system bus, 9
Recording media control unit, 100a printing device.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 武下 智幸 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 (72)発明者 平野 敦子 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 Fターム(参考) 2C061 AP01 HJ08 HN05 HN15 HP01 HQ20 HV35 5B021 AA01 BB01 BB04 CC05 DD19 EE01 5C052 AA11 AA17 AB04 CC01 DD02 DD04 GA02 GA05 GA09 GB01 GB09 GE08 GF04 5C053 FA04 FA08 FA27 GB08 HA30 HA33 JA16 KA01 KA24 LA01 LA03 LA11  ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Tomoyuki Takeshita 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Mitsui Electric Co., Ltd. (72) Atsuko Hirano 2-3-2 Marunouchi, Chiyoda-ku, Tokyo F term in Mitsubishi Electric Corporation (reference) 2C061 AP01 HJ08 HN05 HN15 HP01 HQ20 HV35 5B021 AA01 BB01 BB04 CC05 DD19 EE01 5C052 AA11 AA17 AB04 CC01 DD02 DD04 GA02 GA05 GA09 GB01 GB09 GE08 GF04 5C053 FA04 FA08 FA08 FA08 LA01 LA03 LA11

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 記録メディアを着脱可能であって、前記
記録メディアとの通信インターフェースを提供する記録
メディア制御手段と、 外部装置を接続可能であって、前記外部装置との通信イ
ンターフェースを提供する通信インターフェース手段
と、 前記外部装置が前記通信インターフェース手段および前
記記録メディア制御手段を介して前記記録メディアにア
クセスすることを制御する制御手段とを備える印刷装
置。
1. A recording medium control means for detachably attaching a recording medium and providing a communication interface with the recording medium, and a communication capable of connecting an external device and providing a communication interface with the external device. A printing apparatus comprising: an interface unit; and a control unit that controls the external device to access the recording medium via the communication interface unit and the recording medium control unit.
【請求項2】 請求項1に記載の印刷装置であって、 前記外部装置からの前記記録メディアへのアクセスは、
ファイルの全部もしくは一部の単位で、または所定のデ
ータ単位で、行う印刷装置。
2. The printing apparatus according to claim 1, wherein the external device accesses the recording medium.
A printing device that performs the whole or part of a file or a predetermined data unit.
【請求項3】 請求項1に記載の印刷装置であって、 前記制御手段は、前記外部装置からの前記記録メディア
へのアクセスの制御を行った後、前記制御が成功したか
失敗したかを前記外部装置に通知する印刷装置。
3. The printing apparatus according to claim 1, wherein the control unit controls access to the recording medium from the external device, and then determines whether the control has succeeded or failed. A printing device that notifies the external device.
【請求項4】 請求項1に記載の印刷装置であって、 前記制御手段は、前記外部装置からの前記記録メディア
内の記録内容への操作と、前記印刷装置からの前記記録
メディア内の記録内容への操作との間で排他制御を行う
印刷装置。
4. The printing apparatus according to claim 1, wherein the control unit performs an operation on the content recorded on the recording medium from the external device and a recording on the recording medium from the printing device. A printing device that performs exclusive control between operations on contents.
【請求項5】 請求項1に記載の印刷装置であって、 前記制御手段は、前記記録メディアの前記記録メディア
制御手段への装着を検知し、前記外部装置の前記通信イ
ンターフェース手段への接続を検知し、前記記録メディ
アが前記記録メディア制御手段へ装着され、かつ、前記
外部装置が前記通信インターフェース手段へ接続された
ときには、前記外部装置に前記記録メディアの装着を通
知する印刷装置。
5. The printing apparatus according to claim 1, wherein the control unit detects attachment of the recording medium to the recording medium control unit, and connects the external device to the communication interface unit. A printing device that detects, when the recording medium is mounted on the recording medium control means, and when the external device is connected to the communication interface means, notifies the external device of the mounting of the recording medium.
【請求項6】 請求項5に記載の印刷装置であって、 前記通信インターフェース手段と前記外部装置とは電圧
供給線を含むバスにより接続され、 前記印刷装置には前記電圧供給線を介して前記外部装置
より電圧が供給され、 前記制御手段は、前記電圧供給線の電圧値を監視するこ
とにより前記外部装置の接続の検知を行う印刷装置。
6. The printing device according to claim 5, wherein the communication interface unit and the external device are connected by a bus including a voltage supply line, and the printing device is connected to the printing device via the voltage supply line. A printing apparatus, wherein a voltage is supplied from an external device, and wherein the control unit detects connection of the external device by monitoring a voltage value of the voltage supply line.
【請求項7】 請求項1に記載の印刷装置であって、 前記外部装置には、前記通信インターフェース手段およ
び前記記録メディア制御手段を介して前記記録メディア
にアクセスするために前記印刷装置との間で相互に行わ
れるやり取りの手順が記憶された印刷装置。
7. The printing device according to claim 1, wherein the external device is connected to the printing device to access the recording medium via the communication interface unit and the recording medium control unit. A printing device in which a procedure of an exchange performed mutually is stored.
JP2000337584A 2000-11-06 2000-11-06 Printing device Pending JP2002149354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000337584A JP2002149354A (en) 2000-11-06 2000-11-06 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000337584A JP2002149354A (en) 2000-11-06 2000-11-06 Printing device

Publications (1)

Publication Number Publication Date
JP2002149354A true JP2002149354A (en) 2002-05-24

Family

ID=18812945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000337584A Pending JP2002149354A (en) 2000-11-06 2000-11-06 Printing device

Country Status (1)

Country Link
JP (1) JP2002149354A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008003865A (en) * 2006-06-22 2008-01-10 Seiko Epson Corp Printing device
US8139262B2 (en) 2003-09-25 2012-03-20 Dai Nippon Printing Co., Ltd. Image output apparatus and image output method for printing out the photographed image which is captured by a digital camera

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8139262B2 (en) 2003-09-25 2012-03-20 Dai Nippon Printing Co., Ltd. Image output apparatus and image output method for printing out the photographed image which is captured by a digital camera
JP2008003865A (en) * 2006-06-22 2008-01-10 Seiko Epson Corp Printing device

Similar Documents

Publication Publication Date Title
TW386207B (en) Memory card interface apparatus
US20040057702A1 (en) Portable data transfer and mass storage device for removable memory modules
US20020001100A1 (en) Image processing system, image data processing method, and storage medium
JP2003132305A (en) Device and method for controlling memory card
JP2001503216A (en) Method and system for displaying images at a digital camera interface
JP2000242597A (en) Processor and method for information processing for setting output to devices and storage medium stored with program
US6128670A (en) Image input device employing a personal computercard/interface or generic interface
JP2010511923A (en) Memory card reader for recovering a memory card
JP2002149354A (en) Printing device
US20100082965A1 (en) Information processing apparatus and method of controlling information processing apparatus
JP2003196613A (en) Device and method for controlling memory card
JP3471988B2 (en) Facsimile machine
JP3537838B2 (en) Memory card control method and system
JPH1042231A (en) Digital camera and digital camera system
JP4207930B2 (en) Electronic device expansion system
JPH07129079A (en) Method for installing programming loader
JP2918036B2 (en) Portable storage devices
JP2839920B2 (en) Image data input device
JP2006181735A (en) Data outputting apparatus and information processing apparatus
JP2000062294A (en) Printer
JP3531438B2 (en) Data management device, data management method, data management system, and external storage device
JP2001331328A (en) Information processor and its method
JPH11134283A (en) Information processor
JPH11266354A (en) Facsimile equipment, space addition method for the same and storage medium
JP2001331280A (en) Information processor and information processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070308

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090630

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091104