JP2010258626A - Image reading apparatus, method of controlling the same, and program - Google Patents

Image reading apparatus, method of controlling the same, and program Download PDF

Info

Publication number
JP2010258626A
JP2010258626A JP2009104490A JP2009104490A JP2010258626A JP 2010258626 A JP2010258626 A JP 2010258626A JP 2009104490 A JP2009104490 A JP 2009104490A JP 2009104490 A JP2009104490 A JP 2009104490A JP 2010258626 A JP2010258626 A JP 2010258626A
Authority
JP
Japan
Prior art keywords
image data
image
external device
connection
image reading
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.)
Withdrawn
Application number
JP2009104490A
Other languages
Japanese (ja)
Inventor
Yu Maruo
優 丸尾
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 Electronics Inc
Original Assignee
Canon Electronics 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 Electronics Inc filed Critical Canon Electronics Inc
Priority to JP2009104490A priority Critical patent/JP2010258626A/en
Publication of JP2010258626A publication Critical patent/JP2010258626A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image reading apparatus capable of storing read image data even when communication between power supply and another device is disconnected when reading an original, and to provide a method of controlling the image reading apparatus. <P>SOLUTION: The image reading apparatus establishes a connection with an external device, and receives power supply from the external device through the connection. When the connection is disconnected when reading the image of the original, the image reading apparatus temporarily feeds the power by a backup power supply provided inside. Further, the image reading apparatus stores an untransferred image data, which is image data read from the original and has not been transferred to an external device, into a nonvolatile memory when the connection is disconnected while the power is temporarily fed. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、スキャナ等における画像読取装置、その制御方法、及びプログラムに関するものである。   The present invention relates to an image reading apparatus in a scanner or the like, a control method thereof, and a program.

パーソナルコンピュータに接続して使用する周辺デバイス機器には、外部から電力供給されて動作する装置と、接続されたパーソナルコンピュータから電力供給を受けて動作する装置がある。パーソナルコンピュータから電力供給を受けて動作する周辺デバイス機器は、例えば、USB(Universal Serial Bus)という汎用インターフェース規格を用いる。このUSBという規格は、パーソナルコンピュータから、接続した周辺デバイス機器に対して、ある程度電力を供給することが可能である。   Peripheral device devices used by connecting to a personal computer include a device that operates with power supplied from the outside and a device that operates with power supplied from the connected personal computer. Peripheral device devices that operate by receiving power supply from a personal computer use, for example, a general-purpose interface standard called USB (Universal Serial Bus). This USB standard can supply a certain amount of power from a personal computer to a connected peripheral device.

近年では周辺デバイス機器の省エネルギー化が進み、USBによって供給される電力のみで稼動する機器が増えてきている。スキャナなどの画像読取装置においても、USBによって供給される電力で稼動するものがある。USBで電力供給を行うと、ACアダプタ等を持ち運ぶ必要が無いために携帯性に優れた製品を提供することが可能である。しかしながら、USBでの電源供給では接続しているパーソナルコンピュータの状態や同じくパーソナルコンピュータに接続されている他の周辺デバイスの影響によって不安定な電力供給状態になってしまうことがある。また、パーソナルコンピュータとの通信と電力供給を兼ねているためUSBケーブルが抜かれると電力供給も切断されてしまう。そこで、特許文献1には、電源が切断されたときに、無停電(バックアップ)電源装置を用いて、搬送路にある読み取り中又は搬送中の原稿を排出するADF(自動原稿給送装置)を有するスキャナが提案されている。   In recent years, energy saving of peripheral device devices has progressed, and the number of devices that operate only with the power supplied by USB has increased. Some image reading apparatuses, such as scanners, operate with the power supplied by the USB. When power is supplied by USB, it is not necessary to carry an AC adapter or the like, so that a product with excellent portability can be provided. However, power supply by USB may result in an unstable power supply state due to the state of the connected personal computer and the influence of other peripheral devices connected to the personal computer. In addition, since the communication with the personal computer and the power supply are combined, the power supply is cut off when the USB cable is disconnected. Therefore, Patent Document 1 discloses an ADF (automatic document feeder) that discharges a document being read or being conveyed on a conveyance path by using an uninterruptible (backup) power supply device when the power is cut off. A scanner is proposed.

特開平05−72844号公報Japanese Patent Laid-Open No. 05-72844

しかしながら、上記従来技術には以下に記載する問題がある。例えば、スキャナが原稿を読み取っている最中に電力供給と通信が断たれると、パーソナルコンピュータ側で続きのデータを受信することができないため、画像データが途切れてしまう。ADFを有するスキャナの場合には、原稿読取速度を向上させるために原稿データの転送が完了する前に、次の原稿の読み取りを開始するものがある。この方法で原稿を読み取っている場合、電力供給が断たれたときに読み取り中であった原稿の画像データに加えて既に読み取って未送信であった画像データも消失してしまう。   However, the above prior art has the following problems. For example, if the power supply and communication are interrupted while the scanner is reading a document, the data cannot be received on the personal computer side, and the image data is interrupted. Some scanners having an ADF start reading the next document before the transfer of document data is completed in order to improve the document reading speed. When a document is read by this method, image data that has already been read and not transmitted is lost in addition to the image data of the document that was being read when the power supply was cut off.

本発明は、上述の問題に鑑みて成されたものであり、原稿の読み取り中に、電源供給と、他の装置との通信とが絶たれた場合であっても、読み取った画像データの保持を可能とする画像読取装置及びその制御方法を提供することを目的とする。   The present invention has been made in view of the above-described problems, and retains read image data even when power supply and communication with other devices are interrupted during reading of a document. An object of the present invention is to provide an image reading apparatus and a control method thereof.

上記の目的を達成するために本発明は、画像読取装置であって、外部装置との接続を確立するとともに、外部装置から電源供給を受ける接続手段と、原稿から画像を読み取る読取手段と、原稿から読み取られた画像データを外部装置に転送する転送手段と、外部装置との接続が切断されたか否かを検知する検知手段と、外部装置との接続が切断された場合に、画像読取装置に電源を一時的に供給する電源供給手段と、原稿から読み取られた画像データであって、かつ、外部装置に転送されていない画像データである未転送画像データを、電源供給手段によって電源が供給されている間に、不揮発性記憶手段に格納する格納手段とを備えることを特徴とする特徴とする。   In order to achieve the above object, the present invention provides an image reading apparatus that establishes a connection with an external apparatus, receives a power supply from the external apparatus, a reading means for reading an image from an original, and an original When the connection between the transfer means for transferring the image data read from the external device, the detection means for detecting whether or not the connection with the external device is disconnected, and the connection with the external device is disconnected, the image reading device The power supply means supplies power to the power supply means that temporarily supplies power and untransferred image data that is image data read from the document and that has not been transferred to the external device. Storage means for storing in the non-volatile storage means.

また、上記の目的を達成するために本発明は、外部装置との接続を確立するとともに、外部装置から電源供給を受ける接続手段と、外部装置からの電力供給が切断された際に、電源を一時的に供給する電源供給手段とを有する画像読取装置の制御方法であって、原稿から画像を読み取る読取ステップと、原稿から読み取られた画像データを外部装置に転送する転送ステップと、外部装置との接続が切断されたか否かを検知する検知ステップと、原稿から読み取られた画像データであって、かつ、外部装置に転送されていない画像データである未転送画像データを、電源供給手段によって電源が供給されている間に、不揮発性記憶手段に格納する格納ステップとを実行することを特徴とする。   In order to achieve the above object, the present invention establishes a connection with an external device, and connects the power supply when the power supply from the external device is disconnected from the connection means that receives the power supply from the external device. A control method for an image reading apparatus having a power supply means for temporarily supplying, a reading step for reading an image from a document, a transfer step for transferring image data read from the document to an external device, and an external device; A detection step for detecting whether or not the connection is disconnected, and untransferred image data that is image data read from a document and not transferred to an external device by a power supply means The storage step of storing in the non-volatile storage means is performed during the supply.

本発明によれば、例えば、原稿の読み取り中に、電源供給と、他の装置との通信とが絶たれた場合であっても、読み取った画像データの保持を可能とする画像読取装置及びその制御方法を提供できる。   According to the present invention, for example, an image reading apparatus capable of holding read image data even when power supply and communication with another apparatus are interrupted during reading of an original, and its A control method can be provided.

本実施形態に係る画像読取装置101とパーソナルコンピュータ201とを示すブロック図である。1 is a block diagram showing an image reading apparatus 101 and a personal computer 201 according to the present embodiment. 本実施形態に係るパーソナルコンピュータ201の表示部に表示されるユーザインタフェースを示す図である。It is a figure which shows the user interface displayed on the display part of the personal computer 201 which concerns on this embodiment. 本実施形態に係る画像読取装置101の原稿読取動作の処理手順を示すフローチャートである。6 is a flowchart illustrating a processing procedure of a document reading operation of the image reading apparatus 101 according to the present embodiment. 本実施形態に係る画像読取装置101のハードウェア構成の一例を示す断面図である。2 is a cross-sectional view illustrating an example of a hardware configuration of an image reading apparatus 101 according to the present embodiment. FIG. 本実施形態に係る画像読取装置101の割り込み動作の処理手順を示すフローチャートである。6 is a flowchart illustrating a processing procedure of an interrupt operation of the image reading apparatus 101 according to the present embodiment. 本実施形態に係る画像読取装置101の待機動作の処理手順を示すフローチャートである。6 is a flowchart illustrating a processing procedure of a standby operation of the image reading apparatus 101 according to the present embodiment. 本実施形態に係る画像読取装置101の転送動作の処理手順を示すフローチャートである。6 is a flowchart illustrating a processing procedure of a transfer operation of the image reading apparatus 101 according to the present embodiment. 本実施形態に係るパーソナルコンピュータ201の画像読取動作の処理手順を示すフローチャートである。6 is a flowchart illustrating a processing procedure of an image reading operation of the personal computer 201 according to the present embodiment. 本実施形態に係る画像読取装置101からパーソナルコンピュータ201に転送された画像データの一例を示す図である。4 is a diagram illustrating an example of image data transferred from the image reading apparatus 101 according to the present embodiment to the personal computer 201. FIG. 本実施形態に係るパーソナルコンピュータ201における再接続後の画像読取動作の処理手順を示すフローチャートである。6 is a flowchart illustrating a processing procedure of an image reading operation after reconnection in the personal computer 201 according to the present embodiment.

以下に本発明の一実施形態を示す。以下で説明される個別の実施形態は、本発明の上位概念、中位概念及び下位概念など種々の概念を理解するために役立つであろう。また、本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されるわけではない。   An embodiment of the present invention is shown below. The individual embodiments described below will help to understand various concepts, such as superordinate concepts, intermediate concepts and subordinate concepts of the present invention. Further, the technical scope of the present invention is determined by the scope of the claims, and is not limited by the following individual embodiments.

以下では、図1乃至図10を参照して、本発明の実施形態について説明する。まず、図1を参照して、本実施形態における画像読取装置101及びパーソナルコンピュータ201について説明する。図1は、本実施形態に係る画像読取装置101とパーソナルコンピュータ201との制御構成を示すブロック図である。   Hereinafter, embodiments of the present invention will be described with reference to FIGS. 1 to 10. First, the image reading apparatus 101 and the personal computer 201 in this embodiment will be described with reference to FIG. FIG. 1 is a block diagram illustrating a control configuration of the image reading apparatus 101 and the personal computer 201 according to the present embodiment.

画像読取装置101は、制御部111、画像読取部112、接続部113、バックアップ電源装置114、データ保存部115及びバッファ116を備える。パーソナルコンピュータ201は、外部制御部211を備える。また、図1に示すように、画像読取装置101とパーソナルコンピュータ201とは、USBケーブル120を介して接続される。USBケーブル120は、画像読取装置101に対して、パーソナルコンピュータ201との通信と、パーソナルコンピュータ201からの電源供給を提供する。   The image reading apparatus 101 includes a control unit 111, an image reading unit 112, a connection unit 113, a backup power supply device 114, a data storage unit 115, and a buffer 116. The personal computer 201 includes an external control unit 211. Further, as shown in FIG. 1, the image reading apparatus 101 and the personal computer 201 are connected via a USB cable 120. The USB cable 120 provides communication with the personal computer 201 and power supply from the personal computer 201 to the image reading apparatus 101.

画像読取部112は、画像読取装置101において光源とイメージセンサとを備え、搬送された原稿を画像データとして読み取る。USBケーブル120から電源を供給されて動作を開始した接続部113は、USBケーブル120を介して、パーソナルコンピュータ201と通信するための接続を確立する。また、接続部113は、パーソナルコンピュータ201との通信が切断されたことを検知するとともに、電源との接続が切断されたことを検知する。バックアップ電源装置114は、外部からの電力供給が断たれた場合に、画像読取装置101に対して電力をしばらく供給する。データ保存部115は、不揮発性メモリで構成される。また、バッファ116は、DRAMやSRAM等のメモリで構成される。   The image reading unit 112 includes a light source and an image sensor in the image reading apparatus 101, and reads the conveyed document as image data. The connection unit 113 that has started operation by being supplied with power from the USB cable 120 establishes a connection for communicating with the personal computer 201 via the USB cable 120. The connection unit 113 detects that communication with the personal computer 201 has been disconnected and also detects that connection with the power source has been disconnected. The backup power supply device 114 supplies power to the image reading apparatus 101 for a while when the external power supply is cut off. The data storage unit 115 is configured by a nonvolatile memory. The buffer 116 is configured by a memory such as a DRAM or an SRAM.

パーソナルコンピュータ210において、外部制御部211は、図2に示すようなユーザインタフェースを、例えば表示部に表示し、マウス等の操作により「Scan」ボタンが押下されると、画像読取装置101に対して原稿の読み取りの開始を命令し、「Continue」ボタンが押下されると、画像読取装置101に対して続きからの画像データの転送と引き続いて搬送される後続原稿の読み取りを命令する。   In the personal computer 210, the external control unit 211 displays a user interface as shown in FIG. 2 on the display unit, for example, and when the “Scan” button is pressed by operating the mouse or the like, When the start of document reading is instructed and the “Continue” button is pressed, the image reading apparatus 101 is instructed to transfer the subsequent image data and subsequently read the subsequent document conveyed.

接続部113は、パーソナルコンピュータ201からUSBケーブル120を通して供給される電源の電圧が閾値以下になったことを検知すると、USBケーブル120が切断されていると判断する。一方、外部制御部211は、画像読取装置101に命令を出したときに一定時間応答が返ってこない場合に、USBケーブル120の切断を検知する。   When the connection unit 113 detects that the voltage of the power supplied from the personal computer 201 through the USB cable 120 is equal to or lower than the threshold value, the connection unit 113 determines that the USB cable 120 is disconnected. On the other hand, the external control unit 211 detects disconnection of the USB cable 120 when a response is not returned for a certain time when a command is issued to the image reading apparatus 101.

バッファ116には、原稿の読み取りを行っているかどうかを示す読取フラグが保存される。読取フラグには、原稿の読み取りを行っているときにON(例えば、1)が設定される。また、データ保存部115には、原稿の読み取りを行っている間に切断されたかどうかを示す切断情報及び未転送画像データが保存される。以下では、この切断情報を未転送フラグと称する。未転送フラグには、原稿の読み取りの途中で切断されたときにON(例えば、1)が設定される。なお、原稿の読み取り途中でUSBによる通信と電源とが切断された場合、画像読取装置101に読み取られて記憶される画像データであって、パーソナルコンピュータ201に未転送の画像データを未転送画像データと称する。また、データ保存部115には、USBインタフェースの接続状況を示す接続フラグが保存され、切断されているときにはOFF(例えば、0)が設定され、接続されているときはON(例えば、1)が設定される。   The buffer 116 stores a reading flag indicating whether or not a document is being read. The reading flag is set to ON (for example, 1) when a document is being read. The data storage unit 115 stores cutting information indicating whether or not the document has been cut while reading the original and untransferred image data. Hereinafter, this disconnection information is referred to as an untransferred flag. The untransfer flag is set to ON (for example, 1) when the document is cut in the middle of reading. Note that when the USB communication and power supply are cut off during the reading of the document, the image data is read and stored in the image reading apparatus 101, and the untransferred image data is transferred to the personal computer 201. Called. The data storage unit 115 stores a connection flag indicating the connection status of the USB interface, and is set to OFF (for example, 0) when disconnected, and set to ON (for example, 1) when connected. Is set.

次に、図3を参照して、画像読取装置101の正常時の原稿読取動作について説明する。図3は、本実施形態に係る画像読取装置101の原稿読取動作の処理手順を示すフローチャートである。以下で説明する処理は、画像読取装置101の制御部111によって統括的に制御される。なお、以下に示すSに続く番号は、フローチャートにおける各ステップ番号を示す。   Next, with reference to FIG. 3, a normal document reading operation of the image reading apparatus 101 will be described. FIG. 3 is a flowchart showing the processing procedure of the document reading operation of the image reading apparatus 101 according to the present embodiment. The processing described below is comprehensively controlled by the control unit 111 of the image reading apparatus 101. In addition, the number following S shown below shows each step number in a flowchart.

S101において、制御部111は、パーソナルコンピュータ201との接続が確立すると、接続フラグをONに設定する。次に、S102において、制御部111は、パーソナルコンピュータ201からの画像読取命令を受信するまで待機する。このS102における待機動作については図6を用いて後述する。   In S101, when the connection with the personal computer 201 is established, the control unit 111 sets the connection flag to ON. In step S <b> 102, the control unit 111 stands by until an image reading command from the personal computer 201 is received. The standby operation in S102 will be described later with reference to FIG.

画像読取命令を受信すると、S103において、制御部111は、バッファ116の読取フラグをONに設定する。続いて、S104において、制御部111は、画像読取部112に原稿を1主走査ラインごとに所定のライン数又はバッファ116の空き容量に応じて定めるライン数だけ読み取らせる。その後、S105において、制御部111は、読み取った画像データをバッファ116に保存し、S106においてパーソナルコンピュータ201に読み取った画像データを転送する。転送動作の詳細については、図7を用いて後述する。所定のライン数は1ラインでもよい。また1主走査ライン単位での読取と転送が好適であるが、1主走査ライン単位でない読取と転送を行う場合も本発明に含まれる。S107において、制御部111は、搬送中の原稿を読み終えたか否かを判定する。ここで、読み終えた場合はS108に進み、読み終えていない場合はS104に戻り、S104〜S106の処理を、原稿を読み終えるまで繰り返す。   When the image reading command is received, in step S103, the control unit 111 sets the reading flag of the buffer 116 to ON. In step S <b> 104, the control unit 111 causes the image reading unit 112 to read the document by a predetermined number of lines for each main scanning line or the number of lines determined according to the free capacity of the buffer 116. Thereafter, in S105, the control unit 111 stores the read image data in the buffer 116, and transfers the read image data to the personal computer 201 in S106. Details of the transfer operation will be described later with reference to FIG. The predetermined number of lines may be one line. Further, reading and transfer in units of one main scanning line are preferable, but cases where reading and transfer in units of one main scanning line are performed are also included in the present invention. In step S <b> 107, the control unit 111 determines whether the reading of the document being conveyed has been completed. If the reading has been completed, the process proceeds to S108. If the reading has not been completed, the process returns to S104, and the processes of S104 to S106 are repeated until the reading of the document is completed.

原稿の末端まで読み終えると、S108において、制御部111は、読取フラグをOFFに設定する。続いて、S109において、制御部111は、接続フラグを確認し、接続フラグにONが設定されているか否かを判定する。ここで、接続フラグにONが設定されていれば、S111に進み、OFFが設定されていればS110に進む。なお、接続がOFFになった際にUSBからの電源供給が停止していてもバックアップ電源装置114から電源が供給されるものとする。例えば、USBケーブルが抜かれても電源はしばらく供給可能となっている。S110において、制御部111は、バックアップ電源装置114からの電力供給をOFFにして、処理を終了する。   When reading to the end of the document is completed, the control unit 111 sets the reading flag to OFF in S108. Subsequently, in S109, the control unit 111 checks the connection flag and determines whether or not the connection flag is set to ON. If the connection flag is set to ON, the process proceeds to S111. If OFF is set, the process proceeds to S110. It is assumed that the power is supplied from the backup power supply device 114 even if the power supply from the USB is stopped when the connection is turned off. For example, even if the USB cable is disconnected, the power can be supplied for a while. In S110, the control unit 111 turns off the power supply from the backup power supply device 114 and ends the process.

接続フラグにONが設定されていれば、S111において、次の原稿が画像読取装置101の原稿台に載置されているか否かを判定する。ここで、原稿が載置されていれば、S103に戻り、制御部111は、読取フラグをONに設定し、S104以降の処理を継続する。一方、原稿が載置されていない場合、S112に進み、制御部111は、パーソナルコンピュータ201に読取が終了したことを伝えるシグナルを転送し、S102に戻り待機状態に遷移する。   If the connection flag is set to ON, in S111, it is determined whether or not the next document is placed on the document table of the image reading apparatus 101. Here, if the document is placed, the process returns to S103, and the control unit 111 sets the reading flag to ON, and continues the processes after S104. On the other hand, when the document is not placed, the process proceeds to S112, and the control unit 111 transfers a signal informing the personal computer 201 that the reading is completed, returns to S102, and shifts to a standby state.

また、原稿の読み取り速度を上げるために、バッファ116に次の原稿のための空き領域があれば、バッファ116からパーソナルコンピュータ201への転送が終わる前に、画像読取部112が次の読み取りを開始することもある。この場合、次の原稿を読み取るときは、未転送フラグをONに設定してから読み取りを実行する。一方、パーソナルコンピュータ201へ画像データを転送すると、当該画像データを順次削除し、転送済みの画像データがバッファ116から全て削除されると、未転送フラグをOFFにする。   If the buffer 116 has a free area for the next original in order to increase the reading speed of the original, the image reading unit 112 starts the next reading before the transfer from the buffer 116 to the personal computer 201 is completed. Sometimes. In this case, when the next original is read, the non-transfer flag is set to ON before reading. On the other hand, when image data is transferred to the personal computer 201, the image data is sequentially deleted, and when all the transferred image data is deleted from the buffer 116, the untransfer flag is turned OFF.

次に、図4を参照して、画像読取装置101のハードウェア構成と、図3のS106の動作について説明する。図4は、本実施形態に係る画像読取装置101のハードウェア構成の一例を示す断面図である。画像読取装置101は、原稿台3、給紙口2、給紙ローラ4、5、搬送ローラ6、搬送フレーム7、イメージセンサ8、コンタクトガラス9、プラテンローラ10、排出ローラ11、及び排出口12を備える。Pは、原稿を示す。原稿Pは、図4に示すように、給紙口2に挿入されるべく、原稿台3に載置される。   Next, the hardware configuration of the image reading apparatus 101 and the operation of S106 in FIG. 3 will be described with reference to FIG. FIG. 4 is a cross-sectional view illustrating an example of a hardware configuration of the image reading apparatus 101 according to the present embodiment. The image reading apparatus 101 includes a document table 3, a paper feed port 2, paper feed rollers 4 and 5, a transport roller 6, a transport frame 7, an image sensor 8, a contact glass 9, a platen roller 10, a discharge roller 11, and a discharge port 12. Is provided. P indicates a document. As shown in FIG. 4, the document P is placed on the document table 3 so as to be inserted into the paper feed slot 2.

まず、制御部111は、外部制御部211より原稿読取命令を受信すると、給紙ローラ4,5を回転させて原稿台3に載置された原稿Pを1枚ずつ機内に給紙する。次に、搬送ローラ6を回転させ、原稿Pをイメージセンサ8上の画像読取位置へ搬送する。ここで、原稿Pは、搬送フレーム7に沿って搬送される。続いて、画像読取部112は、イメージセンサ8を駆動し、搬送されてくる原稿Pの画像読取位置の箇所を読み取る。このイメージセンサ8による読み取りは、原稿Pがプラテンローラ10によって搬送され、後端が画像読取位置を通過するまで行われる。また、イメージセンサ8によって読み取られたデータは制御部111に転送される。そして画像読取位置を通過した原稿は、排出ローラ11によって排出口12から排出される。   First, when receiving a document reading command from the external control unit 211, the control unit 111 rotates the paper supply rollers 4 and 5 to feed the documents P placed on the document table 3 one by one into the apparatus. Next, the conveyance roller 6 is rotated to convey the document P to the image reading position on the image sensor 8. Here, the document P is transported along the transport frame 7. Subsequently, the image reading unit 112 drives the image sensor 8 to read the position of the image reading position of the conveyed document P. The reading by the image sensor 8 is performed until the document P is conveyed by the platen roller 10 and the trailing edge passes the image reading position. The data read by the image sensor 8 is transferred to the control unit 111. The document that has passed the image reading position is discharged from the discharge port 12 by the discharge roller 11.

次に、図5を参照して、USBケーブル120による接続が切断されたことを検知したときの割り込み処理について説明する。図5は、本実施形態に係る画像読取装置101の割り込み動作の処理手順を示すフローチャートである。以下で説明する処理は、制御部111によって統括的に制御される。ここで説明する割り込み動作は、USBケーブル120による接続が切断された場合の割り込み処理である。   Next, with reference to FIG. 5, an interrupt process when it is detected that the connection with the USB cable 120 has been disconnected will be described. FIG. 5 is a flowchart illustrating the processing procedure of the interrupt operation of the image reading apparatus 101 according to the present embodiment. The processing described below is comprehensively controlled by the control unit 111. The interrupt operation described here is an interrupt process when the connection via the USB cable 120 is disconnected.

接続部113によってUSBケーブル120による通信又は電源供給の切断が検知されると、S201において、まずバックアップ電源装置114による電力供給を開始する。なお、電源の瞬断を避けるためハードウェアによるバックアップ電源装置114への切替を行うことがより望ましい。続いて、S202において、制御部111は、接続フラグをOFFに設定する。この割り込み処理は、図3のフローチャートや、後述する図6、図7のフローチャートにおいて発生する。画像読取装置101には、USBケーブル120が切断された場合に発生する割り込み処理以外にも割り込み処理が存在する。したがって、複数の割り込み処理が同時に発生した場合、又は、割り込み処理中に別の割り込み処理が発生した場合は、割り込み処理の発生順に処理されることとなる。   When communication by the USB cable 120 or disconnection of power supply is detected by the connection unit 113, power supply by the backup power supply device 114 is first started in S201. Note that it is more desirable to switch to the backup power supply device 114 by hardware in order to avoid instantaneous power interruption. Subsequently, in S202, the control unit 111 sets the connection flag to OFF. This interrupt process occurs in the flowchart of FIG. 3 and the flowcharts of FIGS. The image reading apparatus 101 has interrupt processing in addition to the interrupt processing that occurs when the USB cable 120 is disconnected. Therefore, when a plurality of interrupt processes occur simultaneously, or when another interrupt process occurs during the interrupt process, the interrupt processes are processed in the order of occurrence.

次に、図6を参照して、図3の待機動作(S102)、即ち、パーソナルコンピュータ201からの命令を待機するときの画像読取装置101の動作について説明する。図6は、本実施形態に係る画像読取装置101の待機動作の処理手順を示すフローチャートである。以下で説明する処理は、制御部111によって統括的に制御される。   Next, the standby operation (S102) in FIG. 3, that is, the operation of the image reading apparatus 101 when waiting for a command from the personal computer 201 will be described with reference to FIG. FIG. 6 is a flowchart illustrating a processing procedure of a standby operation of the image reading apparatus 101 according to the present embodiment. The processing described below is comprehensively controlled by the control unit 111.

まず、S301において、制御部111は、未転送フラグがONに設定されているか否かを判定する。ここで、未転送フラグがONに設定されている場合は、S302に進み、OFFが設定されていればS304に進む。S302において、制御部111は、パーソナルコンピュータ201から未転送画像データを要求されたか否かを判定する。ここで、要求されていればS306に進み、要求されていなければS303に進む。S303において、制御部111は、パーソナルコンピュータ201から未転送画像データを削除するように要求されたか否かを判定する。ここで、要求されていればS307に進み、要求されていなければS304に進む。   First, in S301, the control unit 111 determines whether or not the untransfer flag is set to ON. If the untransfer flag is set to ON, the process proceeds to S302. If OFF is set, the process proceeds to S304. In step S <b> 302, the control unit 111 determines whether untransferred image data is requested from the personal computer 201. If requested, the process proceeds to S306, and if not requested, the process proceeds to S303. In step S <b> 303, the control unit 111 determines whether the personal computer 201 has requested to delete untransferred image data. If requested, the process proceeds to S307, and if not requested, the process proceeds to S304.

パーソナルコンピュータ201から未転送画像データを要求されると、S306において、制御部111は、データ保存部115から未転送画像データを取得し、パーソナルコンピュータ201に転送し、S307に進む。S303で未転送画像データの削除が要求されたと判定すると、又は、S306で未転送画像データを転送すると、S307において、制御部111は、データ保存部115から未転送画像データを削除する。続いて、S308において、制御部111は、未転送フラグをOFFに設定する。   When untransferred image data is requested from the personal computer 201, in step S306, the control unit 111 acquires the untransferred image data from the data storage unit 115, transfers it to the personal computer 201, and proceeds to step S307. If it is determined in S303 that deletion of untransferred image data is requested, or if untransferred image data is transferred in S306, the control unit 111 deletes the untransferred image data from the data storage unit 115 in S307. Subsequently, in S308, the control unit 111 sets the untransferred flag to OFF.

S304において、制御部111は、接続フラグがONに設定されているか否かを判定する。ここで、ONに設定されてればS305に進み、制御部111は、画像読取命令がパーソナルコンピュータ201から要求されたか否かを判定する。要求されていれば待機動作を終了して図3のS103に進み、要求されていなければS301に戻る。一方、S304で接続フラグがOFFに設定されていればS309に進み、制御部111は、バックアップ電源装置114による電力供給を停止させることで処理を終了する。   In S304, the control unit 111 determines whether or not the connection flag is set to ON. If it is set to ON, the process advances to step S <b> 305, and the control unit 111 determines whether an image reading command is requested from the personal computer 201. If requested, the standby operation is terminated and the process proceeds to S103 of FIG. 3, and if not requested, the process returns to S301. On the other hand, if the connection flag is set to OFF in S304, the process proceeds to S309, and the control unit 111 ends the process by stopping the power supply by the backup power supply device 114.

次に、図7を参照して、図3の転送動作(S106)、即ち、画像データをバッファ116からパーソナルコンピュータ201へ転送するか、データ保存部115に保存するときの画像読取装置101の動作について説明する。図7は、本実施形態に係る画像読取装置101の転送動作の処理手順を示すフローチャートである。以下で説明する処理は、制御部111によって統括的に制御される。   Next, referring to FIG. 7, the transfer operation (S <b> 106) of FIG. 3, that is, the operation of the image reading apparatus 101 when image data is transferred from the buffer 116 to the personal computer 201 or stored in the data storage unit 115. Will be described. FIG. 7 is a flowchart illustrating a processing procedure of a transfer operation of the image reading apparatus 101 according to the present embodiment. The processing described below is comprehensively controlled by the control unit 111.

S401において、制御部111は、接続フラグがONに設定されているか否かを判定する。ここで、ONが設定されていればS402に進み、制御部111は、画像データを外部制御部211が転送を要求するデータブロックごとにバッファ116からパーソナルコンピュータ201に転送する。バッファ116のデータを転送すると、S403において、制御部111は、接続フラグがONに設定されているか否かを判定する。ONに設定されていれば、S404に進み、制御部111は、バッファ116のデータを削除し、処理を終了する。なお、S106においてパーソナルコンピュータ201の各種処理の集中等の原因で画像データの転送ができない場合は、バッファ116に格納したまま、次の主走査ラインの読み取りに移るものとする。また、画像データ転送ルーチンS106は図示の位置以外でも非同期で実行可能とする。   In S401, the control unit 111 determines whether or not the connection flag is set to ON. If ON is set, the process advances to step S <b> 402, and the control unit 111 transfers image data from the buffer 116 to the personal computer 201 for each data block that the external control unit 211 requests to transfer. When the data in the buffer 116 is transferred, in step S403, the control unit 111 determines whether the connection flag is set to ON. If it is set to ON, the process proceeds to S404, and the control unit 111 deletes the data in the buffer 116 and ends the process. If image data cannot be transferred due to the concentration of various processes of the personal computer 201 in S106, the process proceeds to reading the next main scanning line while being stored in the buffer 116. Further, the image data transfer routine S106 can be executed asynchronously at positions other than those shown in the figure.

一方、S401又はS403で接続フラグがOFFに設定されていた場合、S405に進み、制御部111は、未転送フラグをONに設定する。続いて、S406において、制御部111は、読み取られた画像データをバッファ116からデータ保存部115に保存する。なお、最後に転送したデータブロックは転送が不完全の可能性が高いため保存することが望ましい。次に、S407において、制御部111は、S406画像データを保存した順番をデータ保存部115に保存する。その後、バッファ116の画像データを全てデータ保存部115に保存すると、S408に進み、制御部111は、バッファ116に保存されている画像データを削除し、処理を終了する。   On the other hand, when the connection flag is set to OFF in S401 or S403, the process proceeds to S405, and the control unit 111 sets the untransferred flag to ON. In step S <b> 406, the control unit 111 stores the read image data from the buffer 116 in the data storage unit 115. Note that it is desirable to save the last transferred data block because the transfer is highly likely to be incomplete. Next, in S407, the control unit 111 stores the order in which the S406 image data is stored in the data storage unit 115. After that, when all the image data in the buffer 116 is stored in the data storage unit 115, the process proceeds to S408, where the control unit 111 deletes the image data stored in the buffer 116 and ends the processing.

上述したように、画像読取装置101は、USBケーブル120によるUSB接続が切断されると、揮発性メモリであるバッファ116に一時保存された未転送画像データを、不揮発性メモリであるデータ保存部115に保存することにより、電源供給が停止した場合であっても、未転送画像データを保持することができる。したがって、画像読取装置101は、電源供給が再開されると、上述した図6のフローチャートにおいて、データ保存部115を確認して、USB接続が切断される前に実行していた処理を継続して実行することができる。   As described above, when the USB connection via the USB cable 120 is disconnected, the image reading apparatus 101 stores the untransferred image data temporarily stored in the buffer 116 that is a volatile memory and the data storage unit 115 that is a nonvolatile memory. Thus, even if the power supply is stopped, untransferred image data can be retained. Therefore, when the power supply is resumed, the image reading apparatus 101 checks the data storage unit 115 in the flowchart of FIG. 6 described above, and continues the processing that was executed before the USB connection was disconnected. Can be executed.

次に、図8を参照して、パーソナルコンピュータ201上での画像読取動作について説明する。図8は、本実施形態に係るパーソナルコンピュータ201の画像読取動作の処理手順を示すフローチャートである。以下で説明する処理は、パーソナルコンピュータ201の外部制御部211によって統括的に制御される。   Next, an image reading operation on the personal computer 201 will be described with reference to FIG. FIG. 8 is a flowchart showing the processing procedure of the image reading operation of the personal computer 201 according to this embodiment. The processing described below is comprehensively controlled by the external control unit 211 of the personal computer 201.

S501において、外部制御部211は、ユーザから原稿の読み取りを開始するように指示されると、画像読取装置101に対して原稿読取命令を送信する。続いて、S502において、外部制御部211は、画像読取装置101に原稿から読み取られた画像データを要求する。その後、S503において、外部制御部211は、画像データを要求してから一定時間が経過すると、要求したサイズの画像データが画像読取装置101から転送されたか否かを判定する。   In step S <b> 501, the external control unit 211 transmits a document reading command to the image reading apparatus 101 when instructed by the user to start reading a document. In step S <b> 502, the external control unit 211 requests the image reading apparatus 101 for image data read from a document. In step S <b> 503, the external control unit 211 determines whether image data having the requested size has been transferred from the image reading apparatus 101 when a predetermined time has elapsed since the image data was requested.

ここで、要求したサイズの画像データブロックの転送が完了している場合は、S504に進み、外部制御部211は、画像読取装置101から原稿台3の原稿が全て読み取られたことを表す読取終了シグナルが送信されたか否かを判定する。送信されていれば処理を終了し、送信されていなければ送信されるまでS502乃至S504の処理を繰り返す。一方、S503で要求したサイズの画像データブロックの転送が完了していないと判定されると、S505に進み、外部制御部211は、USBケーブル120によるUSB接続が切断されたと判断し、これまでに転送された画像データを図9に示すような不完全データとして保存し、処理を終了する。ただし、外部制御部211は、要求したサイズの画像データが1主走査ラインの途中で転送を中断された場合は、当該ラインの画像データについては削除する。   If the transfer of the requested image data block of the requested size has been completed, the process advances to step S504, and the external control unit 211 completes reading indicating that all the documents on the document table 3 have been read from the image reading apparatus 101. Determine whether a signal has been sent. If it has been transmitted, the process is terminated. If it has not been transmitted, the processes of S502 to S504 are repeated until it is transmitted. On the other hand, if it is determined that the transfer of the image data block of the size requested in S503 is not completed, the process proceeds to S505, where the external control unit 211 determines that the USB connection via the USB cable 120 has been disconnected, and so far. The transferred image data is stored as incomplete data as shown in FIG. 9, and the process is terminated. However, when the transfer of image data of the requested size is interrupted in the middle of one main scanning line, the external control unit 211 deletes the image data of that line.

図9において、901は、原稿を読み取った場合の完全な画像データを示す。また、902は、原稿から読み取られたデータのうち、パーソナルコンピュータ201に転送が完了した画像データを示す。903は、原稿から読み取られたデータのうち、パーソナルコンピュータ201に未転送の画像データを示す。したがって、画像読取動作中にUSBケーブル120の接続が切断されると、画像データ902はパーソナルコンピュータ201に保存され、画像データ903は画像読取装置101のデータ保存部115に保存される。   In FIG. 9, reference numeral 901 denotes complete image data when a document is read. Reference numeral 902 denotes image data that has been transferred to the personal computer 201 among data read from the document. Reference numeral 903 denotes image data that has not been transferred to the personal computer 201 among the data read from the document. Therefore, when the USB cable 120 is disconnected during the image reading operation, the image data 902 is stored in the personal computer 201 and the image data 903 is stored in the data storage unit 115 of the image reading apparatus 101.

次に、図10を参照して、パーソナルコンピュータ201での処理において、USBケーブル120による接続が再接続された場合に、切断前に取得した画像データに続く画像データを取得する動作について説明する。図10は、本実施形態に係るパーソナルコンピュータ201における再接続後の画像読取動作の処理手順を示すフローチャートである。以下で説明する処理は、パーソナルコンピュータ201の外部制御部211によって統括的に制御される。   Next, with reference to FIG. 10, an operation of acquiring image data following image data acquired before disconnection when the connection by the USB cable 120 is reconnected in the processing of the personal computer 201 will be described. FIG. 10 is a flowchart showing the processing procedure of the image reading operation after reconnection in the personal computer 201 according to the present embodiment. The processing described below is comprehensively controlled by the external control unit 211 of the personal computer 201.

USBケーブル120を介して画像読取装置101と接続されると、S601において、外部制御部211は、画像読取装置101に未転送画像データが保存されているか否かを判定する。具体的には、外部制御部211は、画像読取装置101のデータ保存部115に保存されている未転送フラグがONか否かを判定することにより、S601の判定を行う。ここで、未転送フラグがOFFである場合は処理を終了し、ONである場合はS602に進む。   When connected to the image reading apparatus 101 via the USB cable 120, in step S601, the external control unit 211 determines whether untransferred image data is stored in the image reading apparatus 101. Specifically, the external control unit 211 performs the determination in S601 by determining whether or not the untransfer flag stored in the data storage unit 115 of the image reading apparatus 101 is ON. Here, if the untransferred flag is OFF, the process ends. If it is ON, the process proceeds to S602.

S602において、外部制御部211は、未転送画像データを画像読取装置101に対して要求する。続いて、S603において、外部制御部211は、パーソナルコンピュータ201内に記憶されている不完全データと今回転送された画像データから画像データを作成する。その後、S604において、外部制御部211は、不要になった不完全データを削除し、作成した画像データを保存して、処理を終了する。   In step S <b> 602, the external control unit 211 requests the image reading apparatus 101 for untransferred image data. In step S <b> 603, the external control unit 211 creates image data from the incomplete data stored in the personal computer 201 and the image data transferred this time. Thereafter, in S604, the external control unit 211 deletes the incomplete data that is no longer necessary, saves the created image data, and ends the process.

以上説明したように、本実施形態に係る画像読取装置101は、パーソナルコンピュータ201等の外部装置との接続を確立するとともに、当該接続を介して外部装置から電源供給を受ける。また、画像読取装置101は、原稿の画像読み取り中に上記接続が切断されると、内部に設けられたバックアップ電源により一時的に電源を供給する。さらに、本画像読取装置は、上記接続が切断された時点で、原稿から読み取り済みの画像データであって、外部装置に転送されていない画像データである未転送画像データを一時的に電源が供給されている間に不揮発性メモリに格納する。これにより、本画像読取装置101は、上記接続が切断されたことにより電源供給が停止された場合であっても、上記未転送画像データを紛失することなく、不揮発性メモリに退避させているため、上記接続が再度接続された場合に、外部装置に対して転送することができる。このように、本画像読取装置101は、原稿の読み取り中に外部装置からの電源供給が絶たれた場合であっても、上記未転送画像データを有効に活用することができる。   As described above, the image reading apparatus 101 according to the present embodiment establishes a connection with an external apparatus such as the personal computer 201 and receives power supply from the external apparatus via the connection. In addition, when the connection is disconnected during image reading of a document, the image reading apparatus 101 temporarily supplies power from a backup power source provided therein. Further, the image reading apparatus temporarily supplies power to untransferred image data that has been read from the original and has not been transferred to the external apparatus when the connection is disconnected. While it is being stored in the non-volatile memory. As a result, the image reading apparatus 101 saves the untransferred image data in the non-volatile memory without losing the untransferred image data even when the power supply is stopped due to the disconnection. When the connection is reconnected, it can be transferred to an external device. As described above, the image reading apparatus 101 can effectively utilize the untransferred image data even when the power supply from the external apparatus is cut off during the reading of the document.

また、本発明は、上記実施形態に限らず様々な変形が可能である。例えば、上記実施形態ではバッファ116内の画像データをパーソナルコンピュータ201への転送が終了した時点で削除していたが、特に削除するタイミングは転送が終わってからならばいつでもよい。具体的には、次の画像データの要求があったときに、前の画像データを削除してもよい。この場合、画像データを転送している最中に通信が切断された場合であっても、転送するはずのデータが残っているため、データ保存部115に残しておけば、転送失敗が検知できなくとも再度転送することができる。また、前の画像データを削除せず、新しい画像データを上書きしてもよい。   Further, the present invention is not limited to the above embodiment, and various modifications can be made. For example, in the above-described embodiment, the image data in the buffer 116 is deleted when the transfer to the personal computer 201 is completed. However, the timing for deleting may be any time after the transfer is completed. Specifically, the previous image data may be deleted when the next image data is requested. In this case, even if the communication is cut off during the transfer of the image data, the data that should be transferred remains, so if it is left in the data storage unit 115, a transfer failure can be detected. You can transfer again without it. Also, new image data may be overwritten without deleting previous image data.

また、本実施形態では、USBケーブル120の接続が切断された場合の割り込み処理中にバックアップ電源装置114から電力供給を常に行っていたが、読取フラグの有無でバックアップ電源装置114の駆動の可否を決めてもよい。また、本実施形態での読取装置では、画像読取部112が原稿を読み取る方法として、原稿を搬送して固定されたイメージセンサで読み取る方式であったが、原稿を固定した状態でイメージセンサを動かして読み取る方式を用いてもよい。   In this embodiment, power is always supplied from the backup power supply device 114 during interrupt processing when the USB cable 120 is disconnected. However, whether or not the backup power supply device 114 can be driven is determined by the presence or absence of a read flag. You may decide. Further, in the reading apparatus according to the present embodiment, the image reading unit 112 reads the original using the image sensor that is transported and fixed, but the image sensor is moved while the original is fixed. A reading method may be used.

また、本実施形態ではデータ保存部115の例として不揮発性のメモリを用いたが、データが保存、消去でき、かつ電力供給が無くてもデータが消えない記録媒体ならばどのようなものでもよい。例えば、SDメモリカードのような不揮発性のメモリの他に、ハードディスク、CD−RW、DVD−RW、DVD−RAM、或いは画像読取装置101にUSBメモリを接続してもよい。また、バックアップ電源装置114としては、外部からの電力供給が断たれたときに電力を供給することができるならばどのようなものでもよい。例えば、一次電池や二次電池、太陽電池、燃料電池、電気二重層キャパシタ等でもよく、これらの何れかを含む電源装置でもよい。   In this embodiment, a non-volatile memory is used as an example of the data storage unit 115. However, any recording medium can be used as long as the data can be stored and erased and the data is not lost even if power is not supplied. . For example, in addition to a non-volatile memory such as an SD memory card, a USB memory may be connected to a hard disk, a CD-RW, a DVD-RW, a DVD-RAM, or the image reading apparatus 101. The backup power supply device 114 may be any device as long as power can be supplied when the external power supply is cut off. For example, a primary battery, a secondary battery, a solar battery, a fuel cell, an electric double layer capacitor, or the like may be used, or a power supply device including any of these may be used.

また、本実施形態では、パーソナルコンピュータ201と画像読取装置101との接続にUSBケーブル120を用いているが、パーソナルコンピュータ201と画像読取装置101との間でデータ転送と電力の供給が行うことができるのであればどのような接続方法でもよい。また、接続部113が有するパーソナルコンピュータと画像読取装置101との接続検知方法も、検知できるのならばどのような方法でもよい。例えば、本実施形態にある電圧を調べる方法や、一定時間パーソナルコンピュータからの命令が無ければ切断されていると認識する検知方法でもよい。また、外部制御部211が有するパーソナルコンピュータ201と画像読取装置101との接続検知方法も、検知できるのならばどのような方法でもよい。例えば、本実施形態にある画像読取装置101に命令を送ったときに応答が一定時間返ってこなかったときに切断されていると判断する方法でもよいし、接続されていれば消費されるはずの電力消費が閾値以下になったときに切断されたと判断する方法でもよい。   In this embodiment, the USB cable 120 is used to connect the personal computer 201 and the image reading apparatus 101. However, data transfer and power supply can be performed between the personal computer 201 and the image reading apparatus 101. Any connection method is possible as long as it is possible. The connection detection method between the personal computer included in the connection unit 113 and the image reading apparatus 101 may be any method as long as it can be detected. For example, a method of checking the voltage in the present embodiment or a detection method of recognizing that the terminal is disconnected if there is no instruction from the personal computer for a certain period of time may be used. Also, any method for detecting the connection between the personal computer 201 and the image reading apparatus 101 in the external control unit 211 may be used as long as it can be detected. For example, when a command is sent to the image reading apparatus 101 according to the present embodiment, it may be determined that the connection is disconnected when the response is not returned for a certain period of time. A method of determining that the power has been disconnected when the power consumption is equal to or less than the threshold may be used.

また、本実施形態では、外部制御部211が不完全データの存在を確認したら自動でデータの補完を行うようにしていたが、ユーザが行う設定により、通常の原稿読取動作を行うか、画像データの補完を行うか判断するようにしてもよく、また不完全データの存在を認識したらユーザに補完の実行を選択させてもよい。また、未転送フラグがONに設定され、かつ、新規の原稿読取命令がパーソナルコンピュータ201から送信されると、未転送画像データ及び未転送フラグとを削除してもよい。この場合、その後にデータ保存部115に未転送画像データを保存するときにはファイルが必ず削除されているため、ファイルの管理を効率的に行うことができる。   In this embodiment, the external control unit 211 automatically complements the data when the presence of the incomplete data is confirmed. However, depending on the setting made by the user, the normal document reading operation is performed or the image data is set. It may be determined whether or not to perform complementation, and if the presence of incomplete data is recognized, the user may select execution of complementation. Further, when the untransfer flag is set to ON and a new document reading command is transmitted from the personal computer 201, the untransferred image data and the untransfer flag may be deleted. In this case, when the untransferred image data is subsequently stored in the data storage unit 115, the file is always deleted, so that the file can be managed efficiently.

また、本実施形態では再接続されたパーソナルコンピュータ201からの情報により、切断の前に画像読取装置101と実際に接続していたパーソナルコンピュータか否かを判定していない。しかし、画像読取装置101は、原稿の読み取り中に切断されたパーソナルコンピュータ201を特定し、再びそのパーソナルコンピュータ201が接続された場合にのみ未転送画像データの転送を行ってもよい。具体的には、画像読取装置101は、再び接続が確立されると、パーソナルコンピュータ201のMACアドレスに代表されるハードウェアの固有の識別情報を取得して、切断されたときのパーソナルコンピュータ201が再び接続されたのか否かを判定してもよい。また、外部制御部211が乱数を発行して画像読取装置101に原稿読取命令とともに送信し、再接続時に外部制御部211が画像読取装置101に、中断した処理の開始時に送信していた乱数を再度送信するようにしておいて、画像処理装置101側で乱数が一致するか否かを確認してもよい。このような場合、画像データを保存する場合には、切断情報に固有の識別情報や受信した乱数を付加して保存する。これにより、未転送画像データが保存されていた場合に、他のユーザの操作によって読み出されたり消去されてしまうことを防ぐことができ、画像データの紛失や情報漏洩の恐れを低減することができる。   In the present embodiment, it is not determined whether the personal computer is actually connected to the image reading apparatus 101 before disconnection based on information from the reconnected personal computer 201. However, the image reading apparatus 101 may identify the personal computer 201 that has been cut while reading a document, and transfer untransferred image data only when the personal computer 201 is connected again. Specifically, when the connection is established again, the image reading apparatus 101 acquires hardware-specific identification information represented by the MAC address of the personal computer 201, and the personal computer 201 when disconnected is You may determine whether it was connected again. Further, the external control unit 211 issues a random number and transmits the random number to the image reading apparatus 101 together with the original reading command, and the random number that the external control unit 211 transmits to the image reading apparatus 101 at the start of the interrupted process at the time of reconnection. The image processing apparatus 101 may confirm whether or not the random numbers coincide with each other. In such a case, when storing the image data, the identification information unique to the cutting information and the received random number are added and stored. As a result, when untransferred image data is stored, it can be prevented from being read or deleted by another user's operation, and the risk of image data loss or information leakage can be reduced. it can.

<他の実施形態>
以上のように、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム又は装置に供給し、それらのコンピュータ(CPUやMPU等)が格納されたプログラムコードを読出し実行しても本発明の目的は達成される。
<Other embodiments>
As described above, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and the program codes stored in those computers (CPU, MPU, etc.) are read and executed. Even so, the object of the present invention is achieved.

この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.

従って、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OS(オペレーティングシステム)に供給するスクリプトデータ等、プログラムの形態を問わない。   Therefore, as long as it has the function of a program, the form of the program is not limited, such as an object code, a program executed by an interpreter, script data supplied to an OS (operating system).

プログラムを供給するための記憶媒体としては、例えばフレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW等がある。また、磁気テープ、不揮発性のメモリカード、ROM、DVD等がある。   Examples of the storage medium for supplying the program include a flexible disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, and CD-RW. Further, there are magnetic tape, nonvolatile memory card, ROM, DVD, and the like.

この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

他に、プログラムの供給方法として、クライアントコンピュータのブラウザを用いてインターネットのホームページや画像処理装置100から本発明のコンピュータプログラムをハードディスク装置等の記録媒体にダウンロードすることもできる。もしくは、圧縮され自動インストール機能を含むファイルをハードディスク装置等の記録媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数の操作者に対してダウンロードさせるWWWサーバやftpサーバ等も本発明の請求項に含まれるものである。   As another program supply method, the computer program of the present invention can be downloaded from a homepage on the Internet or the image processing apparatus 100 to a recording medium such as a hard disk device using a browser of a client computer. Alternatively, it can be supplied by downloading a compressed file including an automatic installation function to a recording medium such as a hard disk device. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server, an ftp server, and the like that allow a plurality of operators to download program files for realizing the functional processing of the present invention on a computer are also included in the claims of the present invention.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納して操作者に配布することも可能である。その場合、所定の条件をクリアした操作者に対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせることができる。そして、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現する。   It is also possible to encrypt the program of the present invention, store it in a storage medium such as a CD-ROM, and distribute it to the operator. In that case, an operator who has cleared a predetermined condition can download key information for decryption from a homepage via the Internet. Then, by using the key information, the encrypted program is executed and installed in the computer.

また、コンピュータが読み出したプログラムコードを実行するだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働するOS等が実際の処理の一部又は全部を行うことでも実現される。   Further, not only the program code read by the computer is executed but also an OS or the like running on the computer performs part or all of the actual processing based on an instruction of the program code.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込む方法も可能である。その場合、プログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行うことでも実現される。   Furthermore, it is possible to write the program code read from the storage medium into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. In that case, it is also realized by the CPU or the like provided in the function expansion board or function expansion unit performing part or all of the actual processing based on the instruction of the program code.

また、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。また、本発明は、システムあるいは装置にプログラムを供給することによって達成される場合にも適応できることは言うまでもない。この場合、本発明を達成するためのソフトウェアによって表されるプログラムを格納した記憶媒体を該システムあるいは装置に読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。   Further, the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or apparatus. In this case, by reading a storage medium storing a program represented by software for achieving the present invention into the system or apparatus, the system or apparatus can enjoy the effects of the present invention.

101:画像読取装置
2:給紙口
3:原稿台
4、5:給紙ローラ
6:搬送ローラ
7:搬送フレーム
8:イメージセンサ
9:コンタクトガラス
10:プラテンローラ
11:排出ローラ
12:排出口
P:原稿
101: Image reading device 2: Paper feed port 3: Document table 4, 5: Paper feed roller 6: Carrying roller 7: Carrying frame 8: Image sensor 9: Contact glass 10: Platen roller 11: Ejection roller 12: Ejection port P : Manuscript

Claims (9)

画像読取装置であって、
外部装置との接続を確立するとともに、該外部装置から電源供給を受ける接続手段と、
原稿から画像を読み取る読取手段と、
原稿から読み取られた画像データを前記外部装置に転送する転送手段と、
前記外部装置との接続が切断されたか否かを検知する検知手段と、
前記外部装置との接続が切断された場合に、前記画像読取装置に電源を一時的に供給する電源供給手段と、
原稿から読み取られた画像データであって、かつ、前記外部装置に転送されていない画像データである未転送画像データを、前記電源供給手段によって電源が供給されている間に、不揮発性記憶手段に格納する格納手段と
を備えることを特徴とする画像読取装置。
An image reading device,
A connection means for establishing a connection with an external device and receiving a power supply from the external device;
Reading means for reading an image from a document;
Transfer means for transferring image data read from a document to the external device;
Detecting means for detecting whether or not the connection with the external device is disconnected;
Power supply means for temporarily supplying power to the image reading device when the connection with the external device is disconnected;
Non-transferred image data that is image data read from a document and that has not been transferred to the external device is stored in the non-volatile storage means while power is supplied by the power supply means. An image reading apparatus comprising storage means for storing.
前記格納手段は、前記不揮発性記憶手段に対して、前記未転送画像データとともに、原稿の読み取り中に前記接続手段が切断されたことを示す切断情報を格納することを特徴とする請求項1に記載の画像読取装置。   2. The storage unit stores, in the nonvolatile storage unit, cutting information indicating that the connection unit has been disconnected during reading of an original document together with the untransferred image data. The image reading apparatus described. 前記接続手段によって前記外部装置との接続が確立されると、前記不揮発性記憶手段に前記切断情報が格納されているか否かを判定する判定手段をさらに備え、
前記転送手段は、
前記判定手段によって前記切断情報が格納されていると判定されると、前記外部装置に対して、前記未転送画像データを転送することを特徴とする請求項2に記載の画像読取装置。
When a connection with the external device is established by the connection means, further comprising a determination means for determining whether or not the disconnection information is stored in the nonvolatile storage means,
The transfer means includes
3. The image reading apparatus according to claim 2, wherein if the determination unit determines that the cutting information is stored, the image transfer apparatus transfers the untransferred image data to the external apparatus.
前記切断情報には、さらに、前記接続手段によって接続されていた前記外部装置の識別情報が含まれ、
前記転送手段は、
前記判定手段によって前記切断情報が格納されていると判定された場合であって、前記接続手段によって接続された前記外部装置が前記切断情報に含まれる前記識別情報に対応する前記外部装置である場合に、前記外部装置に対して、前記未転送画像データを転送することを特徴とする請求項3に記載の画像読取装置。
The disconnection information further includes identification information of the external device connected by the connection means,
The transfer means includes
When the determination unit determines that the disconnection information is stored, and the external device connected by the connection unit is the external device corresponding to the identification information included in the disconnection information The image reading apparatus according to claim 3, wherein the untransferred image data is transferred to the external apparatus.
前記転送手段は、前記未転送画像データを前記外部装置に転送すると、前記不揮発性記憶手段から当該未転送画像データを削除することを特徴とする請求項3又は4に記載の画像読取装置。   5. The image reading apparatus according to claim 3, wherein when the untransferred image data is transferred to the external device, the transfer unit deletes the untransferred image data from the non-volatile storage unit. 前記読取手段は、主走査ラインごとに原稿を読み取り、
前記転送手段は、読み取られた画像データを前記主走査ラインの1ライン又は複数ラインごとに転送し、
前記格納手段は、前記検知手段によって前記外部装置との接続が切断されたと検知された時点で、読み取りが完了し、かつ、転送されていない画像データを前記主走査ラインごとに前記未転送画像データとして格納することを特徴とする請求項1乃至5の何れか1項に記載の画像読取装置。
The reading unit reads a document for each main scanning line,
The transfer means transfers the read image data for each line or a plurality of lines of the main scanning line,
The storage means detects the untransferred image data for each main scanning line when the detection means detects that the connection with the external device has been disconnected, and completes the reading for each main scanning line. The image reading apparatus according to claim 1, wherein the image reading apparatus stores the image as an image reading apparatus.
前記接続手段は、USBケーブルであることを特徴とする請求項1乃至6の何れか1項に記載の画像読取装置。   The image reading apparatus according to claim 1, wherein the connection unit is a USB cable. 外部装置との接続を確立するとともに、該外部装置から電源供給を受ける接続手段と、該外部装置からの電力供給が切断された際に、電源を一時的に供給する電源供給手段とを有する画像読取装置の制御方法であって、
原稿から画像を読み取る読取ステップと、
原稿から読み取られた画像データを前記外部装置に転送する転送ステップと、
前記外部装置との接続が切断されたか否かを検知する検知ステップと、
原稿から読み取られた画像データであって、かつ、前記外部装置に転送されていない画像データである未転送画像データを、前記電源供給手段によって電源が供給されている間に、不揮発性記憶手段に格納する格納ステップと
を実行することを特徴とする画像読取装置の制御方法。
An image having connection means for establishing connection with an external device and receiving power supply from the external device, and power supply means for temporarily supplying power when the power supply from the external device is cut off A method for controlling a reader,
A reading step for reading an image from a document;
A transfer step of transferring image data read from the document to the external device;
A detection step of detecting whether or not the connection with the external device is disconnected;
Non-transferred image data that is image data read from a document and that has not been transferred to the external device is stored in the non-volatile storage means while power is supplied by the power supply means. And a storage step for storing the image reading apparatus.
請求項8に記載の画像読取装置の制御方法をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the control method of the image reading apparatus according to claim 8.
JP2009104490A 2009-04-22 2009-04-22 Image reading apparatus, method of controlling the same, and program Withdrawn JP2010258626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009104490A JP2010258626A (en) 2009-04-22 2009-04-22 Image reading apparatus, method of controlling the same, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009104490A JP2010258626A (en) 2009-04-22 2009-04-22 Image reading apparatus, method of controlling the same, and program

Publications (1)

Publication Number Publication Date
JP2010258626A true JP2010258626A (en) 2010-11-11

Family

ID=43319072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009104490A Withdrawn JP2010258626A (en) 2009-04-22 2009-04-22 Image reading apparatus, method of controlling the same, and program

Country Status (1)

Country Link
JP (1) JP2010258626A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017033145A (en) * 2015-07-30 2017-02-09 キヤノン株式会社 Recording control device, recording control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017033145A (en) * 2015-07-30 2017-02-09 キヤノン株式会社 Recording control device, recording control method, and program

Similar Documents

Publication Publication Date Title
CN101866301A (en) The control method of signal conditioning package and signal conditioning package
US20140019496A1 (en) Data transfer method
US10162649B2 (en) Information processing system, information processing apparatus and start up control method
CN102843485B (en) Image processing system and the startup control method for image processing system
CN103581479A (en) Image processing apparatus
KR101684229B1 (en) Image forming apparatus, method for controlling the same, recording medium, and image forming system
US9898239B2 (en) Print control device and control method for print control device for communicating with host devices by multiple communication standards
US20100201700A1 (en) Display apparatus, computer-readable recording medium in which display data deletion program is recorded, and display data deletion method
US9313355B2 (en) Activation processing of information processing apparatus, method of controlling the same, and storage medium
US20150062613A1 (en) Image forming apparatus capable of preventing data leakage and control method therefor, and storage medium
CN103870564B (en) A kind of data-updating method and electronic equipment
JP2008211327A (en) Information processing apparatus
JP2010258626A (en) Image reading apparatus, method of controlling the same, and program
US20150304516A1 (en) Image forming apparatus and control method therefor
US8429733B2 (en) Authentication system, terminal and information processing device, having function of performing stable authentication
JP2016157332A (en) Information processor, and method for controlling information processor
JP2010010942A (en) Image formation system and image formation method
CN113946530A (en) Control method and device of expansion card and nonvolatile storage medium
JP2001117745A (en) Multifunctional device
JP2010099873A (en) Information processing system, information processing program, and recording medium for recording the information processing program
JP5582651B2 (en) Image forming apparatus
JP5623992B2 (en) Information processing apparatus, information processing method, recording medium, and program
JP2002314772A (en) Composite machine
US7589859B2 (en) Print apparatus, print control method, storage medium storing computer-readable program, and program
JP2005074644A (en) Image forming apparatus, information processing system and method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20120703