JP2004110622A - Storage medium writer and control method for storage medium writer - Google Patents

Storage medium writer and control method for storage medium writer Download PDF

Info

Publication number
JP2004110622A
JP2004110622A JP2002274566A JP2002274566A JP2004110622A JP 2004110622 A JP2004110622 A JP 2004110622A JP 2002274566 A JP2002274566 A JP 2002274566A JP 2002274566 A JP2002274566 A JP 2002274566A JP 2004110622 A JP2004110622 A JP 2004110622A
Authority
JP
Japan
Prior art keywords
storage medium
writing
power
memory card
power supply
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
JP2002274566A
Other languages
Japanese (ja)
Inventor
Reiji Hasegawa
長谷川 玲治
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2002274566A priority Critical patent/JP2004110622A/en
Publication of JP2004110622A publication Critical patent/JP2004110622A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a storage medium writer and a control method of the storage medium writer by which a user can extract a memory card by a natural and comprehensive operation and safely extract the memory card when he/she desires to extract the memory card. <P>SOLUTION: The storage medium writer has a power switch means by which the user performs on/off control of power of the entire storage medium writer and a power feed control means which continues power feed to a storage medium and a storage medium reading/writing means until data writing is terminated from an external information processing terminal to the storage medium when the power switch means receives an instruction of power interruption. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、記憶媒体書込装置および記憶媒体書込装置の制御方法に関する。
【0002】
【従来の技術】
近年、デジタルカメラ等の記憶媒体として、半導体メモリカードが注目を浴びている。また、PC(パーソナルコンピュータ)で、メモリカードを読み書きすることが求められている。そこで、メモリカードをPCで読み書きするためのメモリカードリーダ・ライタが開発されている。また、プリンタ、コピー、ファクシミリ等において、デジカメの画像を出力する要求があり、メモリカードリーダを持つプリンタ、コピー、ファクシミリ等が増えている。
【0003】
メモリカードリーダを用いて、PCからメモリカードに、データを書き込む場合、PCの処理速度に比べると、メモリカードに内蔵される不揮発性のメモリの処理速度が低速であるので、最近のOS(オペレーティングシステム)では、メモリカードへの書き込みをアプリケーションに代行し、時間が経ってから書き込みを実行する。したがって、メモリカードへの実際の書き込みが終了する前にメモリカードへの書き込みが終了したと、OSがアプリケーションに通知する。
【0004】
これによって、アプリケーションは、処理速度が低速である記憶媒体の処理速度に足を引っ張られることなく、高速で動作することができる。この反面、ユーザからは書き込みが終了したように見えるにも拘らず、OSが記憶媒体にまだ書き込んでいない状態がある。この状態で、メモリカードを抜いたり、カードリーダの電源を切ると、書き込みを完了することができない。必要なデータがメモリカードに書き込まれていないだけならまだしも、書き込み途中で記憶媒体を抜くと、書き込み内容とファイルアロケーションテーブルとが矛盾し、データがソフトウェア的に破壊され、また、給電中に抜くと、最悪の場合に、メモリカードが物理的に破壊されることがある。
【0005】
そこで、従来の製品において、PC上のOSでメモリカードを安全に抜く手順を、添付説明書等に記載し、つまり、OSでの遅延書き込みが完了してから、メモリカードへの給電を中止し、その後に、メモリカードを抜くことを義務づけている。
【0006】
【発明が解決しようとする課題】
しかし、上記PC上のOSでメモリカードを安全に抜く手順が、そもそもあまり知られていないので、理解し難い操作である。また、メモリカードを抜くため、メモリカードリーダに注意が行ったところで、わざわざPCを操作するのは直感的でない。
【0007】
また、初心者が起こしやすい問題であるにもかかわらず、メモリカードがソフトウェア的、またはハードウェア的に壊れ、記憶内容を読み出すことができず、初心者に解決できない状態になるという問題がある。
【0008】
本発明は、ユーザがメモリカードを抜きたいと思ったときに、自然で分かりやすい操作によって、メモリカードを抜くことができ、しかも、安全にメモリカードを抜くことができる記憶媒体書込装置および記憶媒体書込装置の制御方法を提供することを目的とするものである。
【0009】
【課題を解決するための手段】
本発明は、画像情報を制御する画像情報制御部と、外部情報処理端末と上記画像情報制御部とを接続する第1インタフェース手段と、記憶媒体の読み書きを行う記憶媒体読み書き手段と、上記画像情報制御部と上記記憶媒体読み書き手段とを接続する第2インタフェース手段と、上記記憶媒体書込装置の全体の電源を、利用者がオン、オフ制御する電源スイッチ手段と、上記電源スイッチ手段が電源断の命令を受けたときに、外部情報処理端末から上記記憶媒体へデータ書き込みが終了するまで、上記記憶媒体と上記記憶媒体読み書き手段とへの給電を持続する給電制御手段とを有する記憶媒体書込装置である。
【0010】
【発明の実施の形態および実施例】
図1は、本発明の一実施例である記憶媒体書込装置100の概略構成を、電源、記録部、カードリーダ部とともに示すブロック図である。
【0011】
記憶媒体書込装置100は、CPU101と、ROM102と、RAM103と、電源制御部104と、電源スイッチ105と、表示部106と、USBホスト制御部107と、USBファンクション制御部108とを有する。
【0012】
CPU101は、システム制御部であり、記憶媒体書込装置100の全体を制御する。
【0013】
ROM102は、CPU101が実行する制御プログラムや組み込みオペレーティングシステム(OS)プログラム等を格納する。上記実施例では、ROM102に格納されている各制御プログラムは、ROM102に格納されている組み込みOSの管理下で、スケジューリングやタスクスイッチ等のソフトウェア制御を行う。
【0014】
RAM103は、DRAM(dynamic RAM)等で構成され、プログラム制御変数等を格納し、また、設定値や記憶媒体書込装置100の管理データ等を格納し、各種ワーク用バッファ領域を有する。
【0015】
電源制御部104は、後述する電源109が各部に電力を供給するのを制御する。
【0016】
電源スイッチ105は、単純なスイッチであり、ユーザにスイッチが押されたことを、電源制御部に通知する。記憶媒体書込装置100の全体の電源を切る場合も、電源制御部104が判断した上で、電源109を制御し、電源を切る。この電源スイッチ105単体で、電源109を切ることはできない。
【0017】
表示部106は、LED(発光ダイオード)とLCD(液晶ディスプレイ)等によって構成され、記憶媒体書込装置100の動作状況、ステータス状況の表示、カードリーダの状態を表示する表示部である。
【0018】
USBホスト制御部107は、USB通信規格で定められたプロトコルで通信を行うの制御部である。USB通信規格は、双方向のデータ通信を高速に行うことができる規格であり、1台のホスト(マスター)に対し、複数のハブまたはファンクション(スレーブ)を接続することができる。USBホスト制御部107は、USB通信におけるホストの機能を有する。
【0019】
USBファンクション制御部108は、USBインタフェースI/F1の通信制御を行い、USB通信規格に従って、プロトコル制御を行い、CPU101が実行するUSB制御タスクからのデータを、パケットに変換し、外部処理装置200に、USBパケット送信を行い、逆に、外部処理装置200からのUSBパケットを、データに変換し、CPU101に送信する。
【0020】
電源109は、家庭用電源等の入力を、このシステム内各機器に合わせた電圧に変換し、各部分に個別に電力を供給し、また、供給停止する。上記構成要素102〜108は、CPU101が管理するCPUバス110を介して、相互に接続されている。
【0021】
記録部120は、レーザビームプリンタやインクジェットプリンタ等によって構成されている印刷装置であり、カラー画像データ、またはモノクロ画像データに基づいて、印刷部材に印刷する。USBホスト制御部107とは、USB通信規格で定められたプロトコルで通信を行い、特に記録部120は、ファンクションの機能を有する。
【0022】
カードリーダ部130は、各種メモリカードのインタフェースをもち、メモリカードを読み書きする。USBホスト制御部107とは、USB通信規格で定められているプロトコルで通信を行い、特に記録部120は、ファンクションの機能を有する。
【0023】
本実施例においては、記録機能のUSB通信は1対1の接続形態を用いる。
【0024】
上記構成要素101〜108は、CPU101が管理するCPUバス110を介して、相互に接続されている。
【0025】
なお、外部処理装置200は、外部情報処理端末の例であり、USBホスト制御部107とUSBファンクション制御部108とは、画像情報制御部の例であり、カードリーダ部130は、記憶媒体読み書き手段の例であり、USBインタフェースI/F1は、外部情報処理端末と画像情報制御部とを接続する第1インタフェース手段の例であり、USBインタフェースI/F2は、画像情報制御部と記憶媒体読み書き手段とを接続する第2インタフェース手段の例である。
【0026】
また、CPU101は、画像情報を制御する画像情報制御部の例であり、電源スイッチ105は、記憶媒体書込装置の全体の電源を、利用者がオン、オフ制御する電源スイッチ手段の例であり、電源制御部104は、電源スイッチ手段が電源断の命令を受けたときに、外部情報処理端末から上記記憶媒体へデータ書き込みが終了するまで、上記記憶媒体と上記記憶媒体読み書き手段とへの給電を持続する給電制御手段の例である。
【0027】
次に、記憶媒体書込システムを構成する外部処理装置200の概要について説明する。
【0028】
図2は、外部処理装置200の概略構成を示すブロック図である。
【0029】
外部処理装置200は、CPU201と、ROM202と、RAM203と、内部記憶装置204と、外部記憶装置205と、外部記憶ディスク206と、操作部207と、表示部208と、通信部209と、USBホスト制御部210とを有する。
【0030】
CPU201は、ROM202、RAM203、または、内部記憶装置204、外部記憶装置205に記憶されているプログラムから読み出されたプログラムに従って、システムバスを介して、外部処理装置200の全体の動作を制御するものである。
【0031】
ROM202は、CPU201の制御プログラム等を格納している。
【0032】
RAM203は、一時的にプログラムや画像データを記憶し、外部処理装置200の処理を高速に動作させるものである。
【0033】
内部記憶装置204は、オペレーティングシステム、各種アプリケーションプログラムや画像データ等が格納されている。つまり、内部記憶装置204には、本実施例における文字データ処理工程を含む記憶媒体書込装置100に対する各種制御命令、データの送受信を行うアプリケーションソフト、プリンタドライバソフト、スキャナドライバソフト、ファクシミリドライバソフト、各機能毎のUSBクラスドライバソフト、USBバスドライバソフト等がインストールされている。
【0034】
通常、上記アプリケーションソフト、ドライバソフトが記憶されている他のコンピュータ可読媒体、つまり、外部記憶ディスク(フロッピー(登録商標)ディスク、CD−ROMメディア)206からデータを受け取り、外部記憶装置205を制御することによって、上記アプリケーションソフト、ドライバソフトをインストールする。または、通信回線によって通信部(ネットワークやモデム)209が、アプリケーションソフト、ドライバソフトを受け取り、内部記憶装置204にインストールするようにしてもよい。
【0035】
操作部207は、オペレータからの指示入力手段としてのキーボード、マウス(不図示)を制御するものである。印刷を実行起動する場合、通常、操作部207のキーボード、マウスが使用される。
【0036】
表示部208は、オペレータに各種表示を行うものである。外部処理端末200で印刷の実行起動をかける場合は、確認ダイヤログ等を、表示部208に表示し、オペレータに入力を促す。また、印刷動作を実行している途中では、印刷状況を示す情報を、オペレータに提供する。
【0037】
通信部209は、図示しないネットワークに接続し、通信回線を介して、インターネットプロバイダへ接続し、相手通信装置との間でデータ、画像情報等を通信する。ネットワーク、通信回線へ接続する場合、公知の方法を使用し、本明細書では詳述しない。
【0038】
USBホスト制御部210は、USBインタフェースの通信制御を行うものであり、USB通信規格に従って、CPU201からのデータを、パケットに変換し、記憶媒体書込装置100に、USBパケットを送信し、逆に、記憶媒体書込装置100からのUSBパケットを、データに変換し、CPU201に送信する。通信制御方法に関しては、公知の方法を使用し、本明細書では詳述しない。
【0039】
次に、記憶媒体書込装置100におけるデータ処理の動作について、詳細に説明する。
【0040】
図3は、上記実施例において、CPU101が実行する記憶媒体書込装置100における電源断の処理動作を示すフローチャートである。
【0041】
ステップ301では、ユーザがメモリカードを抜くために、記憶媒体書込装置100の電源スイッチ105が押されたことを検知する。
【0042】
ステップ302では、電源スイッチ105のレスポンスとして、メモリカードの読み書きに関係ない部分への給電を、電源制御部104、電源109が停止する。表示部のうちで、メモリカードの使用中を表すLED等の表示が点灯中であれば、点灯し続けるが、それ以外の表示も停止し、電源が落とされたことを、ユーザに示す。
【0043】
ステップ303では、メモリカードへの書き込み最中であるか否かを、PCが判断する。書き込み中であれば、ステップ303の処理を繰り返し、書き込みが終了することを待つ。
【0044】
ステップ304では、メモリカードを抜くことを事前にPCから禁止されているか否かを判断する。禁止されていれば、禁止解除命令が来るまで待つ。
【0045】
ステップ305では、PCがメモリカードへ最後に書き込んだセクタが、先頭のFAT(ファイルアロケーションテーブル)を保存するエリアであるか否かを判断する。上記FATへの書き込みが終了していなければ、ステップ305の処理を繰り返し、PCから書き込みされるのを待つ。FATを最後に書き込みするOSでは有効であるが、FATを最後に書き込みするOSでない場合には、ステップ305の処理を省略するようにしてもよい。
【0046】
ステップ306では、メモリカードへの給電を停止し、メモリカードを安全に抜き取れるようにする。
【0047】
ステップ307では、全ての書き込みが終了したと判断し、メモリカードの使用中を表す表示を停止し、カードを抜き取ってもよいことを、ユーザに示す。
【0048】
ステップ308では、ステップ302で給電停止しなかった部分への給電を停止し、記憶媒体書込装置100の全体を停止する。
【0049】
上記実施例において、上記第1インタフェース手段、第2インタフェース手段のうちの少なくとも一方は、ユニバーサルシリアルバス(Universal Serial Bus、USB)通信規格に対応している。
【0050】
また、上記実施例において、上記画像情報制御部は、上記外部情報処理端末から上記記憶媒体への書き込み内容を解析する手段であり、上記給電制御手段は、上記記憶媒体の記憶エリアのうちで最後に書き込まれる場所へ書き込みが終わるまでは、上記記憶媒体と上記記憶媒体読み書き手段とへの給電を持続する手段である。
【0051】
つまり、上記実施例において、メモリカードを抜く操作を実行する場合、ユーザがメモリカードを抜くことを、カードリーダ部130を通して、このシステムに通知する。そこで、カードリーダにメモリカードを抜くことを通知するスイッチを新たに設ける方法も考えられるが、スイッチが多くなるのは、他の操作を妨げるおそれがある。上記実施例では、カードリーダ部130の電源を切ることによって、ユーザがこれからメモリカードを抜くことをシステムに通知する。
【0052】
そして、電源スイッチ105が押されてから、PCからのメモリカードの書き込みが終わるまでは、メモリカードと、メモリカードを制御する部分と、PCとの通信を行う部分とに電源を供給し続ける。このメモリカードの書き込み中は、カードリーダの電源が落とされたように見えても、メモリカードに対して書き込み中であることを表示する。たとえばメモリカードスロットの隣にアクセスランプを設け、メイン電源が落とされても、遅延書き込み中は、そのアクセスランプを点灯させる。
【0053】
上記処理を実現するために、書き込みが終了したこと正確に知る必要がある。ところが、OSによってはかなり時間をかけて書き込みを行い、書き込み途中で中断、しばらくしてから書き込みを再開するものもあり、したがって、書き込み後時間があいたから書き込みが終了されたと安易に判断することができない。
【0054】
そこで、1つ目の場合は、PCから書き込み中にメモリカードを抜くことが禁止される場合がある。この場合は、メモリカードを抜く許可が出たときに、書き込みが終了したと認識する。2つ目の場合は、OSによっては書き込みすべきデータを先に書き込み、それが全て終了してから、最後にファイルアロケーションテーブル(FAT)に書き込むものがある。この場合、FATを書き込んだ時点で書き込みが終了したと見なす。
【0055】
上記のようにして、ユーザはメモリカードを抜きたいときは、電源スイッチを押し、アクセスランプが消えてから、メモリカードを抜く、という自然でわかりやすい動作で、安全にメモリカードを抜くことができる。
【0056】
すなわち、上記実施例によれば、ユーザがメモリカードを抜きたいと思ったときに、電源スイッチ105を押し、使用中ランプが消えてからメモリカードを抜けばよいので、自然で分かりやすい操作によって、メモリカードを抜くことができ、しかも、安全にメモリカードを抜くことができる。
【0057】
このときに、PCからの書き込みが完全に終了しているので、書き込み中にメモリカードを抜き取ることによってデータを破壊する可能性を排除することができる。また、メモリカードへの給電を停止しているので、電気的に破壊する可能性もない。
【0058】
上記実施例において、遅延書き込みが安全に行われるので、デフォルトが、遅延書き込みでないOSにおいても、遅延書き込みを利用することによって、PCのパフォーマンスが向上する。
【0059】
【発明の効果】
本発明によれば、ユーザがメモリカードを抜きたいと思ったときに、電源スイッチを押し、使用中ランプが消えてからメモリカードを抜けばよいので、自然で分かりやすい操作によって、メモリカードを抜くことができ、しかも、安全にメモリカードを抜くことができるという効果を奏する。
【図面の簡単な説明】
【図1】本発明の一実施例である記憶媒体書込装置100の概略構成を、電源、記録部、カードリーダ部とともに示すブロック図である。
【図2】外部処理装置200の概略構成を示すブロック図である。
【図3】上記実施例において、CPU101が実行する記憶媒体書込装置100における電源断の処理動作を示すフローチャートである。
【符号の説明】
100…記憶媒体書込装置、
101…CPU、
104…電源制御部、
105…電源スイッチ、
106…表示部、
107…USBホスト制御部、
108…USBファンクション制御部、
109…電源、
120…記録部、
130…カードリーダ部、
200…外部処理装置、
I/F1、I/F2…USBインタフェース。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a storage medium writing device and a control method of the storage medium writing device.
[0002]
[Prior art]
In recent years, semiconductor memory cards have attracted attention as storage media for digital cameras and the like. In addition, it is required that a PC (personal computer) reads and writes a memory card. Therefore, a memory card reader / writer for reading and writing a memory card on a PC has been developed. Further, there is a demand for outputting a digital camera image in a printer, a copy, a facsimile, and the like, and printers, a copy, a facsimile, and the like having a memory card reader are increasing.
[0003]
When writing data from a PC to a memory card using a memory card reader, the processing speed of a nonvolatile memory built into the memory card is lower than the processing speed of the PC. System), the writing to the memory card is performed on behalf of the application, and the writing is executed after a lapse of time. Therefore, the OS notifies the application that the writing to the memory card is completed before the actual writing to the memory card is completed.
[0004]
As a result, the application can operate at high speed without being dragged by the processing speed of the storage medium whose processing speed is low. On the other hand, there is a state in which the OS has not yet written to the storage medium despite the fact that the writing appears to be completed to the user. In this state, if the memory card is removed or the power of the card reader is turned off, writing cannot be completed. If the necessary data has not yet been written to the memory card, if the storage medium is removed during the writing, the written contents and the file allocation table will be inconsistent, the data will be destroyed by software, and if the data is removed during power supply. In the worst case, the memory card may be physically destroyed.
[0005]
Therefore, in the conventional product, the procedure for safely removing the memory card with the OS on the PC is described in the attached manual, etc. That is, after the delayed writing in the OS is completed, the power supply to the memory card is stopped. Then, it is obliged to remove the memory card.
[0006]
[Problems to be solved by the invention]
However, since the procedure for safely removing the memory card by the OS on the PC is not well known in the first place, the operation is difficult to understand. Further, it is not intuitive to operate the PC when the attention is paid to the memory card reader to remove the memory card.
[0007]
In addition, although the problem is likely to occur for beginners, there is a problem that the memory card is broken by software or hardware, so that the stored contents cannot be read out and cannot be solved by beginners.
[0008]
The present invention is directed to a storage medium writing device and a storage medium that allow a user to remove a memory card by a natural and easy-to-understand operation when the user wants to remove the memory card, and that can safely remove the memory card. It is an object of the present invention to provide a method for controlling a medium writing device.
[0009]
[Means for Solving the Problems]
The present invention provides an image information control unit for controlling image information, a first interface unit for connecting an external information processing terminal and the image information control unit, a storage medium read / write unit for reading / writing a storage medium, Second interface means for connecting a control unit to the storage medium read / write means, power supply switch means for turning on / off the entire power supply of the storage medium writing apparatus, and power supply switch means for turning off the power supply; Storage medium writing means having power supply control means for continuing to supply power to the storage medium and the storage medium read / write means until data writing from the external information processing terminal to the storage medium is completed when the instruction is received. Device.
[0010]
Embodiments and Examples of the Invention
FIG. 1 is a block diagram showing a schematic configuration of a storage medium writing device 100 according to an embodiment of the present invention, together with a power supply, a recording unit, and a card reader unit.
[0011]
The storage medium writing device 100 includes a CPU 101, a ROM 102, a RAM 103, a power control unit 104, a power switch 105, a display unit 106, a USB host control unit 107, and a USB function control unit 108.
[0012]
The CPU 101 is a system control unit, and controls the entire storage medium writing device 100.
[0013]
The ROM 102 stores a control program executed by the CPU 101, an embedded operating system (OS) program, and the like. In the above embodiment, each control program stored in the ROM 102 performs software control such as scheduling and a task switch under the management of the embedded OS stored in the ROM 102.
[0014]
The RAM 103 is configured by a DRAM (dynamic RAM) or the like, stores program control variables and the like, stores set values, management data of the storage medium writing device 100, and the like, and has various work buffer areas.
[0015]
The power control unit 104 controls a power supply 109 described later to supply power to each unit.
[0016]
The power switch 105 is a simple switch, and notifies the power control unit that the user has pressed the switch. When the entire power supply of the storage medium writing device 100 is turned off, the power supply control unit 104 also controls the power supply 109 based on the judgment, and turns off the power supply. This power switch 105 alone cannot turn off the power supply 109.
[0017]
The display unit 106 includes an LED (light emitting diode), an LCD (liquid crystal display), and the like, and is a display unit that displays an operation status, a status status, and a card reader status of the storage medium writing device 100.
[0018]
The USB host control unit 107 is a control unit that performs communication using a protocol defined by the USB communication standard. The USB communication standard is a standard capable of performing bidirectional data communication at high speed, and a plurality of hubs or functions (slaves) can be connected to one host (master). The USB host control unit 107 has a host function in USB communication.
[0019]
The USB function control unit 108 performs communication control of the USB interface I / F1, performs protocol control according to the USB communication standard, converts data from a USB control task executed by the CPU 101 into a packet, and transmits the packet to the external processing device 200. , A USB packet is transmitted, and conversely, a USB packet from the external processing device 200 is converted into data and transmitted to the CPU 101.
[0020]
The power supply 109 converts an input of a home power supply or the like into a voltage suitable for each device in the system, individually supplies power to each part, and stops supply. The components 102 to 108 are interconnected via a CPU bus 110 managed by the CPU 101.
[0021]
The recording unit 120 is a printing device configured by a laser beam printer, an inkjet printer, or the like, and prints on a printing member based on color image data or monochrome image data. The communication with the USB host control unit 107 is performed according to a protocol defined by the USB communication standard. In particular, the recording unit 120 has a function function.
[0022]
The card reader unit 130 has various memory card interfaces, and reads and writes the memory card. The communication with the USB host control unit 107 is performed according to a protocol defined by the USB communication standard. In particular, the recording unit 120 has a function function.
[0023]
In this embodiment, the USB communication of the recording function uses a one-to-one connection mode.
[0024]
The components 101 to 108 are mutually connected via a CPU bus 110 managed by the CPU 101.
[0025]
Note that the external processing device 200 is an example of an external information processing terminal, the USB host control unit 107 and the USB function control unit 108 are examples of an image information control unit, and the card reader unit 130 is a storage medium read / write unit. USB interface I / F1 is an example of first interface means for connecting an external information processing terminal and an image information control unit, and USB interface I / F2 is an image information control unit and a storage medium reading / writing means. 5 is an example of a second interface unit for connecting to the second interface.
[0026]
The CPU 101 is an example of an image information control unit that controls image information, and the power switch 105 is an example of a power switch unit that controls a user to turn on and off the entire power of the storage medium writing device. The power control unit 104 supplies power to the storage medium and the storage medium read / write unit until data writing from the external information processing terminal to the storage medium is completed when the power switch unit receives a power-off command. This is an example of the power supply control means for maintaining the power supply.
[0027]
Next, an outline of the external processing device 200 constituting the storage medium writing system will be described.
[0028]
FIG. 2 is a block diagram illustrating a schematic configuration of the external processing device 200.
[0029]
The external processing device 200 includes a CPU 201, a ROM 202, a RAM 203, an internal storage device 204, an external storage device 205, an external storage disk 206, an operation unit 207, a display unit 208, a communication unit 209, and a USB host. And a control unit 210.
[0030]
The CPU 201 controls the overall operation of the external processing device 200 via the system bus according to a program read from the programs stored in the ROM 202, the RAM 203, or the internal storage device 204 and the external storage device 205. It is.
[0031]
The ROM 202 stores a control program for the CPU 201 and the like.
[0032]
The RAM 203 temporarily stores programs and image data and operates the external processing device 200 at high speed.
[0033]
The internal storage device 204 stores an operating system, various application programs, image data, and the like. That is, in the internal storage device 204, various control commands for the storage medium writing device 100 including the character data processing step in this embodiment, application software for transmitting and receiving data, printer driver software, scanner driver software, facsimile driver software, USB class driver software and USB bus driver software for each function are installed.
[0034]
Normally, it receives data from another computer-readable medium storing the application software and the driver software, that is, an external storage disk (floppy (registered trademark) disk, CD-ROM medium) 206, and controls the external storage device 205. Thereby, the application software and the driver software are installed. Alternatively, the communication unit (network or modem) 209 may receive application software and driver software via a communication line, and install the application software and the driver software in the internal storage device 204.
[0035]
The operation unit 207 controls a keyboard and a mouse (not shown) as means for inputting instructions from the operator. When printing is started, the keyboard and mouse of the operation unit 207 are usually used.
[0036]
The display unit 208 performs various displays for the operator. If the external processing terminal 200 starts printing, a confirmation dialog or the like is displayed on the display unit 208 to prompt the operator to input. Further, during the execution of the printing operation, information indicating the printing status is provided to the operator.
[0037]
The communication unit 209 connects to a network (not shown), connects to an Internet provider via a communication line, and communicates data, image information, and the like with a partner communication device. When connecting to a network or a communication line, a known method is used and will not be described in detail in this specification.
[0038]
The USB host control unit 210 performs communication control of the USB interface, converts data from the CPU 201 into a packet according to the USB communication standard, transmits a USB packet to the storage medium writing device 100, and conversely. The USB packet from the storage medium writing device 100 is converted into data and transmitted to the CPU 201. As for the communication control method, a known method is used and will not be described in detail in this specification.
[0039]
Next, the operation of data processing in the storage medium writing device 100 will be described in detail.
[0040]
FIG. 3 is a flowchart showing a power-off processing operation in the storage medium writing device 100 executed by the CPU 101 in the above embodiment.
[0041]
In step 301, it is detected that the user has pressed the power switch 105 of the storage medium writing device 100 to remove the memory card.
[0042]
In step 302, as a response of the power switch 105, the power supply control unit 104 and the power supply 109 stop supplying power to a portion not related to reading and writing of the memory card. If a display such as an LED indicating that the memory card is being used is lit on the display unit, the display continues to be lit, but other displays are also stopped to indicate to the user that the power has been turned off.
[0043]
In step 303, the PC determines whether writing to the memory card is in progress. If the writing is being performed, the process of step 303 is repeated, and the end of the writing is awaited.
[0044]
In step 304, it is determined in advance whether removal of the memory card is prohibited from the PC. If it is prohibited, wait until the prohibition release command comes.
[0045]
In step 305, it is determined whether or not the last sector written by the PC to the memory card is an area for storing the first FAT (file allocation table). If the writing to the FAT has not been completed, the process of step 305 is repeated, and the process waits for writing from the PC. This is effective for the OS that writes the FAT last, but may be omitted when the OS is not the OS that writes the FAT last.
[0046]
In step 306, power supply to the memory card is stopped so that the memory card can be safely removed.
[0047]
In step 307, it is determined that all writing has been completed, the display indicating that the memory card is being used is stopped, and the user is notified that the card may be removed.
[0048]
In step 308, the power supply to the portion where the power supply was not stopped in step 302 is stopped, and the entire storage medium writing device 100 is stopped.
[0049]
In the embodiment, at least one of the first interface means and the second interface means conforms to a Universal Serial Bus (USB) communication standard.
[0050]
In the above embodiment, the image information control unit is means for analyzing the contents written from the external information processing terminal to the storage medium, and the power supply control means is the last of the storage areas of the storage medium. This is a means for continuing to supply power to the storage medium and the storage medium read / write means until the writing to the location where the data is written to is completed.
[0051]
That is, in the above embodiment, when the operation of removing the memory card is performed, the system notifies the user of the removal of the memory card through the card reader unit 130 to the system. Therefore, a method of newly providing a switch for notifying the card reader that the memory card is to be removed is conceivable, but an increase in the number of switches may hinder other operations. In the above embodiment, by turning off the power of the card reader unit 130, the user is notified that the memory card will be removed from the system.
[0052]
Then, from when the power switch 105 is pressed until the writing of the memory card from the PC is completed, the power is continuously supplied to the memory card, the part that controls the memory card, and the part that communicates with the PC. During the writing of the memory card, the fact that the power of the card reader is turned off is displayed to indicate that the writing is being performed on the memory card. For example, an access lamp is provided next to the memory card slot, and the access lamp is turned on during delayed writing even if the main power is turned off.
[0053]
In order to realize the above processing, it is necessary to know exactly that the writing has been completed. However, depending on the OS, writing may take a considerable amount of time, and may be interrupted in the middle of writing, and restarted after a while. Therefore, it may be easy to judge that writing has been completed after a while after writing. Can not.
[0054]
Therefore, in the first case, it may be prohibited to remove the memory card during writing from the PC. In this case, when permission to remove the memory card is given, it is recognized that the writing has been completed. In the second case, depending on the OS, the data to be written is written first, and after all the data is finished, finally, the data is written to the file allocation table (FAT). In this case, it is considered that the writing is completed when the FAT is written.
[0055]
As described above, when the user wants to remove the memory card, the user can press the power switch, turn off the access lamp, and then remove the memory card.
[0056]
That is, according to the above embodiment, when the user wants to remove the memory card, the power switch 105 should be pressed, and the memory card should be removed after the busy lamp goes off. The memory card can be removed, and the memory card can be safely removed.
[0057]
At this time, since writing from the PC has been completed, the possibility of destroying data by removing the memory card during writing can be eliminated. Further, since the power supply to the memory card is stopped, there is no possibility of electrical breakdown.
[0058]
In the above embodiment, since the delayed writing is performed safely, the performance of the PC is improved by using the delayed writing even in the OS that is not the delayed writing by default.
[0059]
【The invention's effect】
According to the present invention, when the user wants to remove the memory card, the user can press the power switch, remove the memory card after the busy lamp goes out, and remove the memory card by a natural and easy-to-understand operation. And the memory card can be safely removed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of a storage medium writing device 100 according to an embodiment of the present invention, together with a power supply, a recording unit, and a card reader unit.
FIG. 2 is a block diagram illustrating a schematic configuration of an external processing device 200.
FIG. 3 is a flowchart showing a power-off processing operation in the storage medium writing device 100 executed by the CPU 101 in the embodiment.
[Explanation of symbols]
100 ... storage medium writing device
101 ... CPU,
104 power supply control unit,
105 ... power switch,
106 ... display unit,
107 ... USB host control unit,
108: USB function control unit,
109 ... power supply,
120: recording unit,
130 ... Card reader part,
200: external processing device,
I / F1, I / F2... USB interface.

Claims (5)

記憶媒体書込装置において、
画像情報を制御する画像情報制御部と;
外部情報処理端末と上記画像情報制御部とを接続する第1インタフェース手段と;
記憶媒体の読み書きを行う記憶媒体読み書き手段と;
上記画像情報制御部と上記記憶媒体読み書き手段とを接続する第2インタフェース手段と;
上記記憶媒体書込装置の全体の電源を、利用者がオン、オフ制御する電源スイッチ手段と;
上記電源スイッチ手段が電源断の命令を受けたときに、外部情報処理端末から上記記憶媒体へデータ書き込みが終了するまで、上記記憶媒体と上記記憶媒体読み書き手段とへの給電を持続する給電制御手段と;
を有することを特徴とする記憶媒体書込装置。
In a storage medium writing device,
An image information control unit for controlling image information;
First interface means for connecting the external information processing terminal and the image information control unit;
Storage medium reading / writing means for reading / writing the storage medium;
Second interface means for connecting the image information control unit and the storage medium read / write means;
Power switch means for a user to turn on and off the entire power supply of the storage medium writing device;
Power supply control means for continuing power supply to the storage medium and the storage medium read / write means until data writing from the external information processing terminal to the storage medium is completed when the power switch means receives a power-off command; When;
A storage medium writing device, comprising:
請求項1において、
上記第1インタフェース手段、第2インタフェース手段のうちの少なくとも一方は、ユニバーサルシリアルバス通信規格に対応していることを特徴とする記憶媒体書込装置。
In claim 1,
A storage medium writing device, wherein at least one of the first interface means and the second interface means conforms to a universal serial bus communication standard.
請求項1または請求項2において、
上記画像情報制御部は、上記外部情報処理端末から上記記憶媒体への書き込み内容を解析する手段であり、
上記給電制御手段は、上記記憶媒体の記憶エリアのうちで最後に書き込まれる場所へ書き込みが終わるまでは、上記記憶媒体と上記記憶媒体読み書き手段とへの給電を持続する手段であることを特徴とする記憶媒体書込装置。
In claim 1 or claim 2,
The image information control unit is means for analyzing the content written from the external information processing terminal to the storage medium,
The power supply control unit is a unit that continues to supply power to the storage medium and the storage medium read / write unit until writing to a location to be written last in a storage area of the storage medium is completed. Storage medium writing device.
請求項1〜請求項3のいずれか1項において、
上記外部情報処理端末から上記記憶媒体への書き込み中であって、上記記憶媒体と上記記憶媒体読み書き手段とに給電が行われている間は、その旨を表示する表示手段を有することを特徴とする記憶媒体書込装置。
In any one of claims 1 to 3,
While writing to the storage medium from the external information processing terminal, and while power is supplied to the storage medium and the storage medium read / write means, the display apparatus has a display means for displaying the fact. Storage medium writing device.
記憶媒体書込装置の制御方法において、
画像情報を制御する画像情報制御段階と;
記憶媒体の読み書きを行う記憶媒体読み書き手段が上記記憶媒体の読み書きを行う記憶媒体読み書き段階と;
上記記憶媒体書込装置の全体の電源を、利用者がオン、オフ制御する電源スイッチ手段が電源断の命令を受けたときに、外部情報処理端末から上記記憶媒体へデータ書き込みが終了するまで、上記記憶媒体と上記記憶媒体読み書き手段とへの給電を持続する給電制御段階と;
を有することを特徴とする記憶媒体書込装置の制御方法。
In a control method of a storage medium writing device,
An image information control step of controlling image information;
A storage medium reading / writing step for reading / writing the storage medium, the storage medium reading / writing means for reading / writing the storage medium;
The power of the entire storage medium writing device is turned on and off by a user. When a power switch unit that receives a power-off command receives a power-off command, data writing from the external information processing terminal to the storage medium is completed. A power supply control step of maintaining power supply to the storage medium and the storage medium read / write means;
A method for controlling a storage medium writing device, comprising:
JP2002274566A 2002-09-20 2002-09-20 Storage medium writer and control method for storage medium writer Pending JP2004110622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002274566A JP2004110622A (en) 2002-09-20 2002-09-20 Storage medium writer and control method for storage medium writer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002274566A JP2004110622A (en) 2002-09-20 2002-09-20 Storage medium writer and control method for storage medium writer

Publications (1)

Publication Number Publication Date
JP2004110622A true JP2004110622A (en) 2004-04-08

Family

ID=32271000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002274566A Pending JP2004110622A (en) 2002-09-20 2002-09-20 Storage medium writer and control method for storage medium writer

Country Status (1)

Country Link
JP (1) JP2004110622A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016202203A (en) * 2015-04-15 2016-12-08 オリンパス株式会社 Power source management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016202203A (en) * 2015-04-15 2016-12-08 オリンパス株式会社 Power source management system

Similar Documents

Publication Publication Date Title
JP4564554B2 (en) Image forming apparatus
JP5235768B2 (en) Control device, control method thereof, and program
US8166290B2 (en) Information processing apparatus and information processing method
JP6141240B2 (en) Printing apparatus, storage control apparatus connected to printing apparatus, printing apparatus control method and program
JP2014232366A (en) Image forming apparatus, control method thereof, and program
JP2007296796A (en) Image forming apparatus, image forming method, and image forming program
JP2009271413A (en) Image forming apparatus
JP2009101608A (en) Printer
JP2012045816A (en) Image forming apparatus, preview image processing method, program, and recording medium
US8958084B2 (en) Image processing apparatus having a selectable power-saving mode, and image processing method using the selectable power-saving mode
JP2004110622A (en) Storage medium writer and control method for storage medium writer
JP2011191939A (en) Peripheral device
JP2006293638A (en) Information processor and peripheral equipment
JP2007076187A (en) Print control device, and print control method
JP2004094493A (en) Storage medium processor and its control method
JP2010277257A (en) Program for starting printer
JP2004152140A (en) Image forming apparatus, information processor, power source control method, computer-readable recording medium, and program
JP2004110623A (en) Storage medium writer and control method of storage medium writer
JP2004094494A (en) Storage medium processor and its control method
JP2003177907A (en) Unit and system for information processing, print control method, storage medium, and program
JP5071744B2 (en) Printing apparatus, printing system, and printer driver
JP2006119957A (en) Information processor and correspondence information addition program
JP2004102864A (en) Storage medium writing device and control method for the writing device
JP2013129092A (en) Image forming apparatus
JP2004272457A (en) Image processing device and method for controlling image processing device, and program therefor