JP2006185288A - Data communication apparatus, and logical connection disconnection method for its communication path - Google Patents

Data communication apparatus, and logical connection disconnection method for its communication path Download PDF

Info

Publication number
JP2006185288A
JP2006185288A JP2004379681A JP2004379681A JP2006185288A JP 2006185288 A JP2006185288 A JP 2006185288A JP 2004379681 A JP2004379681 A JP 2004379681A JP 2004379681 A JP2004379681 A JP 2004379681A JP 2006185288 A JP2006185288 A JP 2006185288A
Authority
JP
Japan
Prior art keywords
command
communication path
disconnection
file
logical connection
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
JP2004379681A
Other languages
Japanese (ja)
Inventor
Natsuo Ito
夏男 伊藤
Shigeki Matsumoto
茂樹 松本
Fon Su
フォン ス
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2004379681A priority Critical patent/JP2006185288A/en
Publication of JP2006185288A publication Critical patent/JP2006185288A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data transfer device for improving user's operability by inputting a disconnection instruction when the user desires to disconnect logical connection of a communication path even during file access and preventing a file from being destructively deleted, damaged and the like by suspending a disconnection operation during file access, and to provide a logical connection disconnection method for its communication path. <P>SOLUTION: When a disconnection instruction is inputted by a touch panel 46 during data transfer based on a file access instruction, a system control microcomputer 51 suspends the disconnection instruction, and when the data transfer based on the file access instruction is finished while the disconnection instruction is suspended, the suspension of the disconnection instruction is released to disconnect the logical connection of the communication path. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、通信路の論理接続が確立されたホスト装置により記憶媒体に記憶されたデータがアクセスされるデータ通信装置及びその通信路の論理接続の切断方法に関する。   The present invention relates to a data communication apparatus in which data stored in a storage medium is accessed by a host apparatus in which a logical connection of a communication path is established, and a method of disconnecting the logical connection of the communication path.

近年、パーソナルコンピュータ(以下、PCという)とPC周辺装置とを接続するインタフェースとして、USBインタフェースが普及している。USBインタフェースは、当初、キーボードやマウス等の低速デバイスに使用されていたが、USB仕様2.0にバージョンアップされ、HDD(Hard Disk Drive)や光ディスク装置等の大容量記憶装置やプリンタ、スキャナ等の入出力装置、デジタルカメラ等のAV(Audio-Visual)機器に広く使用されている。   In recent years, a USB interface has become widespread as an interface for connecting a personal computer (hereinafter referred to as a PC) and a PC peripheral device. The USB interface was originally used for low-speed devices such as keyboards and mice, but was upgraded to USB specification 2.0 and mass storage devices such as HDD (Hard Disk Drive) and optical disk devices, printers, scanners, etc. Are widely used in audio-visual (AV) devices such as digital input / output devices and digital cameras.

USB周辺装置には、USBホスト装置によりUSBケーブルを安全に取り外すための操作を行うものと、USB周辺装置によりUSBケーブルを安全に取り外すための操作を行うものとがある。この操作は、USBインタフェースの論理接続の切断を意味する。周辺装置側でUSBインタフェースの論理接続の切断するUSB周辺装置としては、例えばデジタルカメラがある。従来のUSB対応のデジタルカメラでは、カメラ本体の操作ボタンや液晶パネルと一体的に構成されたタッチパネル等により切断命令を入力してUSBインタフェースの論理接続が切断され、その後、USBケーブルがカメラから安全に取り外されていた。   Some USB peripheral devices perform an operation for safely removing a USB cable by a USB host device, and others perform an operation for safely removing a USB cable by a USB peripheral device. This operation means disconnection of the logical connection of the USB interface. An example of a USB peripheral device that disconnects the logical connection of the USB interface on the peripheral device side is a digital camera. In a conventional USB-compatible digital camera, the USB interface is logically disconnected by inputting a disconnection command using the operation button of the camera body or a touch panel integrally formed with the liquid crystal panel, and then the USB cable is secured from the camera. Had been removed.

しかしながら、従来のUSB対応のデジタルカメラでは、前記切断命令が入力されると、USBホスト装置からのファイルアクセスに関係なく直ちにUSBインタフェースの論理接続が切断されるため、転送中のデータが破壊される場合があった。
そこで、USBホスト装置からのファイルアクセスを監視する従来のUSB対応のデジタルカメラでは、ファイルアクセス中に切断操作が禁止され、ファイルアクセスの終了後に切断操作の禁止が解除されていた。
However, in the conventional USB-compatible digital camera, when the disconnection command is input, the logical connection of the USB interface is immediately disconnected regardless of the file access from the USB host device, so that the data being transferred is destroyed. There was a case.
Therefore, in a conventional USB-compatible digital camera that monitors file access from a USB host device, the disconnect operation is prohibited during file access, and the prohibition of the disconnect operation is canceled after the file access is completed.

図9は、従来のUSB対応のデジタルカメラの通信路の切断方法の一例を示す図である。
図9に示すように、このデジタルカメラでは、USBホスト装置からのファイル書込みコマンド(W1)が受信されると、切断操作が禁止されるとともに、タイマーがリセットされ、カウントダウンが開始される。タイマーのカウント値が「0」になる前に、ファイル書込みコマンド(W2)が受信されると、タイマーが再度リセットされ、これにより切断操作の禁止が延長される。そして、カウント値が「0」になると、一連のデータのファイル書込みコマンドの実行が終了したと判定され、これにより切断操作の禁止が解除される。
このようにファイル書込みコマンドが受信されたときには、切断操作が禁止されるので、上記のようなデータの欠落、破壊等が防止される。
FIG. 9 is a diagram illustrating an example of a method for disconnecting a communication path of a conventional USB-compatible digital camera.
As shown in FIG. 9, in this digital camera, when the file write command (W1) from the USB host device is received, the disconnection operation is prohibited, the timer is reset, and the countdown is started. If the file write command (W2) is received before the count value of the timer becomes “0”, the timer is reset again, thereby extending the prohibition of the cutting operation. When the count value becomes “0”, it is determined that the execution of a series of data file write commands is completed, and the prohibition of the cutting operation is released.
When the file write command is received in this way, the disconnection operation is prohibited, so that data loss, destruction, etc. as described above are prevented.

このように周辺装置側からPCとの間の論理接続を切断するものとしては、特許文献1のファイルサーバ装置が開示されている。
このファイルサーバ装置では、PCによりアクセスされる期間に自動スイッチ20による電源制御のためのバイパス経路が設定される。そして、バイパス経路の設定後、手動スイッチ21により電源の切断が入力されたときには、自動スイッチ20により電源の切断が保留され、ファイル操作が終了すると、自動スイッチ20により電源が切断される。
特開平1−25117号公報
As described above, a file server device disclosed in Patent Document 1 is disclosed as a device that disconnects a logical connection between a peripheral device and a PC.
In this file server apparatus, a bypass path for power control by the automatic switch 20 is set during a period accessed by the PC. After the bypass path is set, when the power switch is input by the manual switch 21, the power switch is suspended by the automatic switch 20, and when the file operation is completed, the power is turned off by the automatic switch 20.
Japanese Patent Laid-Open No. 1-25117

しかしながら、上記特許文献1のファイルサーバ装置は、電源を切断するものであるが、論理接続の切断に関する記載はない。
また、上記のように切断操作が禁止される従来のUSB対応のデジタルカメラでは、使用者は、液晶パネルに表示されるメッセージ等によりファイルアクセスの終了後を確認した後、切断操作をしなければならず、切断したいときに切断操作ができないという操作の煩わしさを感じていた。
However, although the file server apparatus of the above-mentioned patent document 1 cuts off the power supply, there is no description about the disconnection of the logical connection.
In addition, in the conventional USB-compatible digital camera in which the disconnection operation is prohibited as described above, the user must perform the disconnection operation after confirming the end of the file access by a message displayed on the liquid crystal panel or the like. In other words, the operator felt that the operation was difficult when the user wanted to cut.

本発明は、このような事情に鑑みなされたものであり、その目的は、ファイルアクセス中であっても使用者が通信路の論理接続を切断したいときに切断命令を入力して使用者の操作性を向上させるとともに、ファイルアクセス中には切断動作を保留してファイルの破壊欠落、破壊等を防止するデータ転送装置及びその通信路の論理接続の切断方法を提供するにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to input a disconnection instruction when the user wants to disconnect the logical connection of the communication path even during file access, and to operate the user. Another object of the present invention is to provide a data transfer apparatus and a method for disconnecting a logical connection of a communication path of the data transfer apparatus, which prevent the file from being lost and destroyed by holding the disconnection operation during file access.

上記目的を達成するため、本発明のデータ通信装置は、データを記憶する記憶手段と、ホスト装置との間に通信路の論理接続を確立した後、前記ホスト装置からのファイル読み出し命令に従って前記記憶手段に記憶されたデータを読み出し、読み出されたデータを前記通信路を通して前記ホスト装置に転送するとともに、前記ホスト装置からのファイル書き込み命令に従って前記ホスト装置から前記通信路を通して転送されたデータを前記記憶手段に書き込む制御手段と、前記制御手段により確立された前記通信路の論理接続を切断する切断命令を入力する入力手段とを備え、前記制御手段は、前記入力手段により入力された前記切断命令に従って前記通信路の論理接続を切断するデータ転送装置であって、前記制御手段は、前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送中に前記入力手段により前記切断命令が入力されたとき、前記切断命令を保留し、前記切断命令の保留中に前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送が終了したとき、前記切断命令の保留を解除して前記通信路の論理接続を切断することを特徴とする。
また、本発明のデータ転送装置の通信路の論理接続の切断方法は、ホスト装置からのファイル読み出し命令に従って記憶手段に記憶されたデータを読み出して前記ホスト装置に転送するとともに、前記ホスト装置からのファイル書き込み命令に従って前記ホスト装置から転送されたデータを前記記憶手段に書き込むように前記ホスト装置との間に確立された通信路の論理接続を切断するデータ転送装置の論理接続の切断方法であって、前記通信路の論理接続を切断する切断命令を入力する入力ステップと、前記入力ステップで入力された前記切断命令に従って前記通信路の論理接続を切断する切断ステップとを含み、前記切断ステップは、前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送中に前記入力ステップで前記切断命令が入力されたとき、前記切断命令を保留し、前記切断命令の保留中に前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送が終了したとき、前記切断命令の保留を解除して前記通信路の論理接続を切断することを特徴とする。
In order to achieve the above object, the data communication apparatus of the present invention establishes a logical connection of a communication path between a storage means for storing data and a host apparatus, and then stores the storage in accordance with a file read command from the host apparatus. Reading data stored in the means, transferring the read data to the host device through the communication path, and transferring the data transferred from the host device through the communication path in accordance with a file write command from the host device. Control means for writing to the storage means; and input means for inputting a disconnection command for disconnecting the logical connection of the communication path established by the control means, wherein the control means includes the disconnection command input by the input means According to the data transfer device for disconnecting the logical connection of the communication path according to the control unit, the control means When the disconnection command is input by the input means during the transfer of data based on the output command or the file write command, the disconnect command is suspended, and the file read command or the file write command is suspended while the disconnect command is pending When the data transfer based on the above is completed, the disconnection of the disconnection command is canceled and the logical connection of the communication path is disconnected.
Further, according to the data transfer device logical connection disconnection method of the present invention, the data stored in the storage means is read and transferred to the host device in accordance with the file read command from the host device, and from the host device. A method of disconnecting a logical connection of a data transfer device, which disconnects a logical connection of a communication path established with the host device so as to write data transferred from the host device to the storage means in accordance with a file write command. An input step of inputting a disconnection command for disconnecting the logical connection of the communication path; and a disconnection step of disconnecting the logical connection of the communication path according to the disconnection command input in the input step, the disconnection step comprising: The input step is performed during data transfer based on the file read command or the file write command. When the disconnect command is input, the disconnect command is suspended, and when the transfer of data based on the file read command or the file write command is completed while the disconnect command is pending, the disconnect command is released. Then, the logical connection of the communication path is disconnected.

本発明によれば、前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送中に前記入力ステップで前記切断命令が入力されたとき、前記切断命令を保留し、前記切断命令の保留中に前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送が終了したとき、前記切断命令の保留を解除して前記通信路の論理接続を切断する。
したがって、ファイルアクセス中であっても使用者が切断したいときに切断命令を入力することができるので、使用者の操作性を向上させることができる。また、ファイルアクセス中に切断動作が保留されるので、データの欠落、破壊を防止することができる。
According to the present invention, when the disconnect command is input in the input step during the transfer of data based on the file read command or the file write command, the disconnect command is suspended and the disconnect command is suspended. When the data transfer based on the file read command or the file write command is completed, the disconnection command is released and the logical connection of the communication path is disconnected.
Therefore, even when the file is being accessed, the disconnection command can be input when the user wants to disconnect, so that the operability for the user can be improved. In addition, since the disconnection operation is suspended during file access, data loss and destruction can be prevented.

上記目的を達成するため、データ転送装置は、記憶手段、入力手段および制御手段を備える。
記憶手段は、データを記憶する。入力手段は、ホスト装置との間の通信路の論理接続を切断する切断命令を入力する。
制御手段は、ホスト装置との間に通信路の論理接続を確立した後、ホスト装置からのファイル読み出し命令に従って記憶手段に記憶されたデータを読み出し、読み出されたデータを通信路を通してホスト装置に転送するとともに、ホスト装置からのファイル書き込み命令に従って前記ホスト装置から前記通信路を通して転送されたデータを記憶手段に書き込む。
また、制御手段は、ファイル読み出し命令またはファイル書き込み命令に基づくデータの転送中に入力手段により切断命令が入力されたとき、切断命令を保留し、切断命令の保留中に前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送が終了したとき、前記切断命令の保留を解除して前記通信路の論理接続を切断する。さらに、制御手段は、前記切断命令の保留の解除を開始した後、前記ホスト装置からの前記ファイル読み出し命令または前記ファイル書き込み命令を無視して受け付けない。
In order to achieve the above object, the data transfer apparatus includes storage means, input means, and control means.
The storage means stores data. The input means inputs a disconnection command for disconnecting the logical connection of the communication path with the host device.
The control means establishes the logical connection of the communication path with the host device, and then reads the data stored in the storage means in accordance with the file read command from the host device, and reads the read data to the host device through the communication path. In addition to the transfer, the data transferred from the host device through the communication path is written to the storage means in accordance with a file write command from the host device.
The control unit holds the disconnection command when the disconnection command is input by the input unit during data transfer based on the file read command or the file write command, and the file read command or the file while the disconnection command is held. When the data transfer based on the write command is completed, the suspension of the disconnect command is released and the logical connection of the communication path is disconnected. Further, the control unit ignores the file read command or the file write command from the host device after starting to release the suspension of the disconnect command and does not accept it.

以下、本発明のデータ転送装置及びその通信路の論理接続の切断方法について図面を参照して説明する。
実施例1では、本発明のデータ転送装置を適用したデジタルカメラを例に説明する。
図1は、実施例1のデジタルカメラの接続状態を示す図である。
図1に示すように、デジタルカメラ20は、ホストPC10にUSBケーブル30を介して接続されている。ホストPC10は、USBホスト装置であり、デジタルカメラ20は、USB周辺装置である。デジタルカメラ20は、例えばマスストレージクラスおよびイメージングクラス(PictBridge)の2種類のデバイスクラスを選択的に切り替え、ホストPCとの間で通信を行う。イメージングクラスのときのホスト装置は、PC10ではなく、プリンタである。
Hereinafter, a data transfer apparatus and a method for disconnecting a logical connection of a communication path according to the present invention will be described with reference to the drawings.
In the first embodiment, a digital camera to which the data transfer apparatus of the present invention is applied will be described as an example.
FIG. 1 is a diagram illustrating a connection state of the digital camera according to the first embodiment.
As shown in FIG. 1, the digital camera 20 is connected to the host PC 10 via a USB cable 30. The host PC 10 is a USB host device, and the digital camera 20 is a USB peripheral device. The digital camera 20 selectively switches between two types of device classes, for example, a mass storage class and an imaging class (PictBridge), and performs communication with the host PC. The host device in the imaging class is not a PC 10 but a printer.

図2は、図1に示されるUSBケーブル30の構成を示す図である。
図2に示すように、USBケーブル30は、ホストPC10に接続されるAプラグ31と、デジタルカメラ20に接続されるBプラグ32とを備える。USBケーブル30は、4本の信号線、すなわちVBUS信号線30A、D+信号線30B、D−信号線30CおよびGND信号線から構成される。
FIG. 2 is a diagram showing the configuration of the USB cable 30 shown in FIG.
As shown in FIG. 2, the USB cable 30 includes an A plug 31 connected to the host PC 10 and a B plug 32 connected to the digital camera 20. The USB cable 30 includes four signal lines, that is, a VBUS signal line 30A, a D + signal line 30B, a D- signal line 30C, and a GND signal line.

図3は、通信路の確立方法を示す図である。
ホストPC10およびデジタルカメラ20がUSBケーブル30を介して物理的に接続されると、時刻T1でホストPC10により5VのVBUS信号が供給され、デジタルカメラ20によりホストPC10が検出される。次に、時刻T2でデジタルカメラ20によりD+信号が3Vにプルアップされ、ホストPC10によりデジタルカメラ20が検出される。次に、時刻T3でホストPC10によりD+信号が0Vに戻され、リセットが行われる。次に、時刻T4でホストPC10によりD+信号のリセットが解除され、これによりホストPC10およびデジタルカメラ20の間の通信路の論理接続が確立される。
一方、通信路の論理接続の切断のときには、デジタルカメラ20によりD+信号のプルアップが解除され、0VのD+信号のタイムアウトにより通信路の論理接続の切断がホストPC10により検出される。
FIG. 3 is a diagram illustrating a method for establishing a communication path.
When the host PC 10 and the digital camera 20 are physically connected via the USB cable 30, a 5V VBUS signal is supplied by the host PC 10 at time T1, and the host PC 10 is detected by the digital camera 20. Next, at time T2, the D + signal is pulled up to 3V by the digital camera 20, and the digital camera 20 is detected by the host PC 10. Next, at time T3, the host PC 10 returns the D + signal to 0 V, and resetting is performed. Next, at time T4, the reset of the D + signal is released by the host PC 10, thereby establishing a logical connection of the communication path between the host PC 10 and the digital camera 20.
On the other hand, when the logical connection of the communication path is disconnected, the pull-up of the D + signal is canceled by the digital camera 20, and the disconnection of the logical connection of the communication path is detected by the host PC 10 due to the timeout of the 0V D + signal.

図4は、図1に示されるデジタルカメラ20の構成を示す図である。
図4に示すように、デジタルカメラ20は、カメラブロック41、メモリーカード42、メモリーカードコントローラ43、LCDパネル44、LCDパネルコントローラ45、タッチパネル46、キー47、システム制御マイコン51、RAM52、ROM53およびUSBコントローラ54を備える。
FIG. 4 is a diagram showing the configuration of the digital camera 20 shown in FIG.
As shown in FIG. 4, the digital camera 20 includes a camera block 41, a memory card 42, a memory card controller 43, an LCD panel 44, an LCD panel controller 45, a touch panel 46, keys 47, a system control microcomputer 51, a RAM 52, a ROM 53, and a USB. A controller 54 is provided.

カメラブロック41は、図示しないレンズ、CCDセンサ、信号処理回路、Codec回路等を有し、CCDにより撮影された画像(動画および静止画)信号に種々の画像処理を行い、この画像信号をキー47(後述)により入力された入力情報に基づいて選択されたフォーマットの画像データに変換する。
メモリーカード42は、カメラブロック41のCCDセンサにより撮影された画像を記憶する。メモリーカードコントローラ43は、メモリーカード42の動作を制御する。
LCDパネル44は、CCDセンサにより撮影された画像やメモリーカード42に記憶された画像を表示するとともに、このデジタルカメラの状態情報や設定情報を表示する。LCDパネルコントローラ45は、LCDパネル44の動作を制御する。
タッチパネル46は、LCDパネル44と一体的に構成され、LCDパネル44により表示された操作画面に基づく使用者の操作情報を入力する。キー47は、操作キー、操作レバー等からなり使用者の操作情報を入力する。
The camera block 41 includes a lens, a CCD sensor, a signal processing circuit, a Codec circuit, and the like (not shown), performs various image processing on image (moving image and still image) signals photographed by the CCD, and uses the image signal as a key 47. The image data is converted into image data of a format selected based on the input information input by (described later).
The memory card 42 stores an image taken by the CCD sensor of the camera block 41. The memory card controller 43 controls the operation of the memory card 42.
The LCD panel 44 displays an image taken by the CCD sensor and an image stored in the memory card 42, and also displays status information and setting information of the digital camera. The LCD panel controller 45 controls the operation of the LCD panel 44.
The touch panel 46 is configured integrally with the LCD panel 44 and inputs user operation information based on an operation screen displayed by the LCD panel 44. The key 47 is composed of operation keys, operation levers, and the like, and inputs user operation information.

システム制御マイコン51は、LCDパネル44およびキー47により入力された操作情報に基づいてデジタルカメラ20の各部を制御する。RAM52は、システム制御マイコン51の作業用メモリである。ROM53は、システム制御マイコン51により実行されるプログラムを記憶する。
USBコントローラ54は、通信ケーブル20を介して接続されたホストPC10との間の通信制御をシステム制御マイコン51と協力して行う。
The system control microcomputer 51 controls each part of the digital camera 20 based on the operation information input from the LCD panel 44 and the key 47. The RAM 52 is a working memory for the system control microcomputer 51. The ROM 53 stores a program executed by the system control microcomputer 51.
The USB controller 54 performs communication control with the host PC 10 connected via the communication cable 20 in cooperation with the system control microcomputer 51.

このようなデジタルカメラ20では、ホストPC10によりメモリーカード42がアクセスされる。ホストPC10によりファイル読み出し命令が発行されたときには、システム制御マイコン51によりメモリーカード42からデータが読み出され、読み出されたデータがUSBコントローラ54によりホストPC10に送信される。一方、ホストPC10によりファイル書き込み命令が発行されたときには、ホストPC10により送信されたデータがUSBコントローラ54により受信され、受信されたデータがシステム制御マイコン51によりメモリーカード42に書き込まれる。   In such a digital camera 20, the memory card 42 is accessed by the host PC 10. When a file read command is issued by the host PC 10, data is read from the memory card 42 by the system control microcomputer 51, and the read data is transmitted to the host PC 10 by the USB controller 54. On the other hand, when a file write command is issued by the host PC 10, data transmitted by the host PC 10 is received by the USB controller 54, and the received data is written to the memory card 42 by the system control microcomputer 51.

図5は、ファイルアクセスがないときの通信路の切断方法を示す図である。
図5に示すように、ホストPC10およびデジタルカメラ20がUSBケーブル30を介して物理的に接続されると、液晶パネル44の初期画面60がUSB接続画面61に切り替えられ、その中央部に「マスストレージ接続中」と表示され、その右上部に通信路を切断するための終了ボタン62が表示される。
ホストPC10からのファイルアクセスがないときにタッチパネル46により終了ボタン62が使用者によりタッチされ、これにより切断命令が入力されると、システム制御マイコン51により直ちに通信路が切断され、液晶パネル44が初期画面60に切り替えられる。
FIG. 5 is a diagram illustrating a communication path disconnection method when there is no file access.
As shown in FIG. 5, when the host PC 10 and the digital camera 20 are physically connected via the USB cable 30, the initial screen 60 of the liquid crystal panel 44 is switched to the USB connection screen 61. “Storage connected” is displayed, and an end button 62 for disconnecting the communication path is displayed in the upper right part thereof.
When the user touches the end button 62 on the touch panel 46 when there is no file access from the host PC 10 and a disconnect command is input thereby, the communication path is immediately disconnected by the system control microcomputer 51, and the liquid crystal panel 44 is initialized. The screen is switched to the screen 60.

図6は、ファイルアクセス中の通信路の切断方法を示す図である。
図6に示すように、ホストPC10およびデジタルカメラ20がUSBケーブル30を介して物理的に接続されると、液晶パネル44の初期画面60がUSB接続画面61に切り替えられ、その中央部に「マスストレージ接続中」と表示され、その右上部に通信路を切断するための終了ボタン62が表示される。
ホストPC10からのファイルアクセス中にタッチパネル46により終了ボタン62が使用者によりタッチされ、これにより切断命令が入力されると、システム制御マイコン51により通信路の切断動作が保留され、USB接続画面61の上に重ねて待機メッセージ画面63が表示される。待機メッセージ画面63は例えば「パソコンからアクセス中です。しばらくお待ちください。」といったメッセージを表示する。これにより、使用者によりデジタルカメラ20の動作状態が認識される。
そして、ホストPC10からのファイルアクセスが終了すると、システム制御マイコン51により通信路の切断動作の保留が解除され、通信路の切断が行われ、同時に液晶パネル44のUSB接続画面61および待機メッセージ画面63が初期画面に切り替えられる。
FIG. 6 is a diagram illustrating a method for disconnecting a communication path during file access.
As shown in FIG. 6, when the host PC 10 and the digital camera 20 are physically connected via the USB cable 30, the initial screen 60 of the liquid crystal panel 44 is switched to the USB connection screen 61. “Storage connected” is displayed, and an end button 62 for disconnecting the communication path is displayed in the upper right part thereof.
When the end button 62 is touched by the user through the touch panel 46 during file access from the host PC 10 and a disconnection command is input, the disconnection operation of the communication path is suspended by the system control microcomputer 51, and the USB connection screen 61 is displayed. A standby message screen 63 is displayed over the top. The standby message screen 63 displays a message such as “Accessing from a personal computer. Please wait for a while”. Thereby, the operation state of the digital camera 20 is recognized by the user.
When the file access from the host PC 10 ends, the system control microcomputer 51 cancels the suspension of the communication path disconnection operation, the communication path is disconnected, and at the same time, the USB connection screen 61 and the standby message screen 63 of the liquid crystal panel 44. Is switched to the initial screen.

図7は、通信路の切断シーケンスを示す図である。
図7に示すように、システム制御マイコン51は、ホストPC10からのファイル書き込み命令(またはファイル読み出し命令)が受信される毎にタイマーのカウント値をリセットし、ホストPC10により一連のデータをファイル書き込み命令によりアクセスするのに必要な時間を超える計時時間(以下、切断禁止時間という)カウントする。
切断禁止時間は、前後のファイル書き込み命令の時間であるが、この時間は、可変であり、またUSBホスト装置の機種により異なるので、実験により最適な時間を求められる。
FIG. 7 is a diagram illustrating a communication path disconnection sequence.
As shown in FIG. 7, the system control microcomputer 51 resets the count value of the timer every time a file write command (or file read command) is received from the host PC 10, and the host PC 10 sends a series of data to the file write command. Counts the time that exceeds the time required for access (hereinafter referred to as disconnection prohibition time).
The disconnection prohibition time is the time of the file write command before and after, but this time is variable and varies depending on the model of the USB host device, so that an optimal time can be obtained by experiment.

まず、ホストPC10からのファイル書き込み命令(W1)が受信されると、システム制御マイコン51によりタイマーがリセットされ、カウント値のダウンカウントが開始される。
ホストPC10からの書き込みデータの受信中、すなわちファイルアクセス中にタッチパネル46により通信路の切断命令が入力されると、システム制御マイコン51によりタイマーのカウント値が検出される。この検出は、タイマーのカウント値が「0」になるまで切断禁止時間より短い検出時間毎に繰り返される。検出時間も実験により最適な時間が求められる。
検出されたタイマーのカウント値が「0」でないときには、ファイルアクセス中と判定され、システム制御マイコン51により通信路の切断命令の実行が保留される。
First, when a file write command (W1) is received from the host PC 10, the timer is reset by the system control microcomputer 51, and the count value starts down-counting.
When a communication path disconnection command is input from the touch panel 46 during reception of write data from the host PC 10, that is, during file access, the count value of the timer is detected by the system control microcomputer 51. This detection is repeated for each detection time shorter than the disconnection prohibition time until the count value of the timer becomes “0”. The optimum detection time is also determined by experiment.
When the count value of the detected timer is not “0”, it is determined that the file is being accessed, and the system control microcomputer 51 suspends execution of the communication path disconnection command.

次に、ホストPC10からのファイル書き込み命令(W2)が受信されると、システム制御マイコン51によりタイマーがリセットされ、カウント値のダウンカウントが開始される。これにより、切断命令の保留が延長される。
そして、システム制御マイコン51により検出時間が経過する毎にタイマーのカウント値が検出され、タイマーのカウント値が「0」のときには、ファイルアクセス終了と判定され、システム制御マイコン51により切断命令の保留が解除され、通信路の切断が行われる。
Next, when a file write command (W2) is received from the host PC 10, the system control microcomputer 51 resets the timer and starts the count down of the count value. Thereby, the suspension of the disconnection command is extended.
The count value of the timer is detected every time the detection time elapses by the system control microcomputer 51. When the count value of the timer is “0”, it is determined that the file access is completed, and the disconnection command is suspended by the system control microcomputer 51. The communication path is disconnected.

図8は、ファイルアクセスの命令拒否シーケンスを示す図である。
図8に示すように、システム制御マイコン51は、通信路の切断命令を解除して切断動作を開始するとき、ホストPC10からのファイル書き込み命令(またはファイル読み出し命令)が受信されても、受信されたファイル書き込み命令を無視して受け付けない。これにより、切断動作中のわずかな時間におけるファイル書き込み命令の受信を防止し、ファイルの欠落、破壊等を防止する。
FIG. 8 is a diagram showing a file access instruction rejection sequence.
As shown in FIG. 8, when the system control microcomputer 51 releases the communication path disconnection command and starts the disconnection operation, the system control microcomputer 51 receives the file write command (or file read command) from the host PC 10. Ignore the file write command and do not accept it. As a result, the reception of the file write command in a short time during the cutting operation is prevented, and the loss or destruction of the file is prevented.

このように実施例1によれば、ファイルアクセス命令に基づくデータの転送中にタッチパネル46により切断命令が入力されたときには、切断命令を保留し、切断命令の保留中にファイルアクセス命令に基づくデータの転送が終了したとき、切断命令の保留を解除して通信路の論理接続を切断する。
したがって、使用者が切断したいときに切断命令を入力することができるので、使用者の操作性を向上させることができる。また、ファイルアクセス中に切断動作が保留されるので、データの欠落、破壊等を防止することができる。
As described above, according to the first embodiment, when a disconnection command is input from the touch panel 46 during the transfer of data based on the file access command, the disconnect command is suspended, and the data based on the file access command is suspended while the disconnect command is pending. When the transfer ends, the disconnection command is released and the logical connection of the communication path is disconnected.
Therefore, when the user wants to cut, a cutting command can be input, so that the operability for the user can be improved. In addition, since the disconnection operation is suspended during file access, data loss, destruction, and the like can be prevented.

また、ファイルアクセス命令が検出される毎にタイマーのカウント値をリセットし、切断禁止時間をタイマーによりカウントし、切断禁止時間が経過したとき、切断命令の保留を解除して前記通信路の論理接続を切断する。
したがって、タイマーを使用した簡単な構成により切断命令の保留を実現することができる。
Also, the count value of the timer is reset each time a file access command is detected, the disconnection prohibition time is counted by the timer, and when the disconnection prohibition time has elapsed, the disconnection command is released and the logical connection of the communication path Disconnect.
Therefore, it is possible to implement the hold of the disconnection command with a simple configuration using a timer.

また、切断命令が保留されたとき、切断命令が保留された旨を表す情報を液晶パネル44に表示する。
したがって、使用者にデジタルカメラ20の動作状態を報知して従来のようにタッチパネル46の操作を繰り返すのを防止し、操作の煩わしさを解消することができる。
Further, when the disconnection command is suspended, information indicating that the disconnection command is suspended is displayed on the liquid crystal panel 44.
Accordingly, it is possible to notify the user of the operation state of the digital camera 20 and prevent the operation of the touch panel 46 from being repeated as in the past, thereby eliminating the troublesome operation.

また、切断命令の保留の解除が開始された後、ホストPC10からのファイルアクセス命令を無視して受け付けないので、データの欠落、破壊等を防止することができる。   Further, since the file access command from the host PC 10 is ignored and not accepted after the release of the hold of the disconnect command is started, it is possible to prevent data loss, destruction, and the like.

なお、実施例1では、USB対応のデジタルカメラ20を例に説明したが、本発明のデータ通信装置は、USB対応のデータ通信装置に限るものではなく、例えば携帯型のオーディオプレーヤや、携帯電話等の様々な機器が適用される。また、本発明のデータ通信装置が接続されるホスト装置もPCに限るものではなく、プリンタ、光ディスク記録再生装置、ハードディスク記録再生装置、テレビ受像機等の様々な機器が適用される。   In the first embodiment, the USB-compatible digital camera 20 has been described as an example. However, the data communication device of the present invention is not limited to a USB-compatible data communication device, and for example, a portable audio player or a mobile phone. Various devices such as are applied. The host device to which the data communication device of the present invention is connected is not limited to a PC, and various devices such as a printer, an optical disc recording / reproducing device, a hard disk recording / reproducing device, and a television receiver can be applied.

実施例1のデジタルカメラの接続状態を示す図である。FIG. 3 is a diagram illustrating a connection state of the digital camera according to the first embodiment. 図1に示されるUSBケーブル30の構成を示す図である。It is a figure which shows the structure of the USB cable 30 shown by FIG. 通信路の確立方法を示す図である。It is a figure which shows the establishment method of a communication path. 図1に示されるデジタルカメラ20の構成を示す図である。It is a figure which shows the structure of the digital camera 20 shown by FIG. ファイルアクセスがないときの通信路の切断方法を示す図である。It is a figure which shows the cutting method of a communication path when there is no file access. ファイルアクセス中の通信路の切断方法を示す図である。It is a figure which shows the cutting method of the communication path in case of file access. 通信路の切断シーケンスを示す図である。It is a figure which shows the cutting sequence of a communication path. ファイルアクセスの命令拒否シーケンスを示す図である。It is a figure which shows the command rejection sequence of a file access. 従来のUSB対応のデジタルカメラの通信路の切断方法の一例を示す図である。It is a figure which shows an example of the cutting method of the communication path of the conventional digital camera corresponding to USB.

符号の説明Explanation of symbols

10……PC、20……デジタルカメラ、30……USBケーブル、41……カメラブロック、42……メモリーカード、44……LCDパネル、47……USBコントローラ、51……システム制御マイコン。   10 ... PC, 20 ... digital camera, 30 ... USB cable, 41 ... camera block, 42 ... memory card, 44 ... LCD panel, 47 ... USB controller, 51 ... system control microcomputer.

Claims (8)

データを記憶する記憶手段と、
ホスト装置との間に通信路の論理接続を確立した後、前記ホスト装置からのファイル読み出し命令に従って前記記憶手段に記憶されたデータを読み出し、読み出されたデータを前記通信路を通して前記ホスト装置に転送するとともに、前記ホスト装置からのファイル書き込み命令に従って前記ホスト装置から前記通信路を通して転送されたデータを前記記憶手段に書き込む制御手段と、
前記制御手段により確立された前記通信路の論理接続を切断する切断命令を入力する入力手段とを備え、
前記制御手段は、前記入力手段により入力された前記切断命令に従って前記通信路の論理接続を切断するデータ転送装置であって、
前記制御手段は、前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送中に前記入力手段により前記切断命令が入力されたとき、前記切断命令を保留し、前記切断命令の保留中に前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送が終了したとき、前記切断命令の保留を解除して前記通信路の論理接続を切断する、
ことを特徴とするデータ転送装置。
Storage means for storing data;
After establishing the logical connection of the communication path with the host device, the data stored in the storage means is read in accordance with a file read command from the host device, and the read data is transferred to the host device through the communication path. Control means for writing data transferred from the host device through the communication path to the storage means in accordance with a file write command from the host device,
Input means for inputting a disconnection command for disconnecting the logical connection of the communication path established by the control means;
The control means is a data transfer device that disconnects the logical connection of the communication path in accordance with the disconnection instruction input by the input means,
The control unit holds the disconnection command when the input command is input by the input unit during data transfer based on the file read command or the file write command, and the file is stored while the disconnect command is held. When the transfer of data based on the read command or the file write command is completed, the suspension of the disconnect command is released and the logical connection of the communication path is disconnected.
A data transfer device.
前記制御手段は、
前記ホスト装置からの前記ファイル読み出し命令または前記ファイル書き込み命令が検出される毎にカウント値がリセットされ、前記ホスト装置により一連のデータを前記ファイル読み出し命令または前記ファイル書き込み命令によりアクセスするのに必要な時間を超える計時時間をカウントするタイマーを有し、
前記タイマーにより前記計時時間がカウントされたとき、前記前記切断命令の保留を解除して前記通信路の論理接続を切断することを特徴とする請求項1記載のデータ転送装置。
The control means includes
Each time the file read command or the file write command from the host device is detected, the count value is reset, and it is necessary for the host device to access a series of data by the file read command or the file write command. Has a timer that counts time exceeding the time,
2. The data transfer apparatus according to claim 1, wherein when the time counted by the timer is counted, the disconnection of the disconnection instruction is canceled and the logical connection of the communication path is disconnected.
装置の情報を表示する表示手段を有し、
前記制御手段は、前記切断命令が保留されたとき、前記切断命令が保留された旨を表す情報を前記表示手段に表示させることを特徴とする請求項1記載のデータ転送装置。
Having display means for displaying device information;
2. The data transfer apparatus according to claim 1, wherein when the disconnection command is suspended, the control unit causes the display unit to display information indicating that the disconnection command is suspended.
前記制御手段は、前記切断命令の保留の解除を開始した後、前記ホスト装置からの前記ファイル読み出し命令または前記ファイル書き込み命令を無視して受け付けないことを特徴とする請求項1記載のデータ転送装置。   2. The data transfer device according to claim 1, wherein the control unit ignores the file read command or the file write command from the host device after starting to release the hold of the disconnection command, and does not accept the file read command. . ホスト装置からのファイル読み出し命令に従って記憶手段に記憶されたデータを読み出して前記ホスト装置に転送するとともに、前記ホスト装置からのファイル書き込み命令に従って前記ホスト装置から転送されたデータを前記記憶手段に書き込むように前記ホスト装置との間に確立された通信路の論理接続を切断するデータ転送装置の論理接続の切断方法であって、
前記通信路の論理接続を切断する切断命令を入力する入力ステップと、
前記入力ステップで入力された前記切断命令に従って前記通信路の論理接続を切断する切断ステップとを含み、
前記切断ステップは、
前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送中に前記入力ステップで前記切断命令が入力されたとき、前記切断命令を保留し、前記切断命令の保留中に前記ファイル読み出し命令または前記ファイル書き込み命令に基づくデータの転送が終了したとき、前記切断命令の保留を解除して前記通信路の論理接続を切断する、
ことを特徴とするデータ転送装置の通信路の論理接続の切断方法。
According to a file read command from the host device, the data stored in the storage unit is read and transferred to the host device, and the data transferred from the host device is written to the storage unit according to the file write command from the host device. A method of disconnecting the logical connection of the data transfer device for disconnecting the logical connection of the communication path established with the host device,
An input step of inputting a disconnection command for disconnecting the logical connection of the communication path;
Disconnecting the logical connection of the communication path according to the disconnection command input in the input step,
The cutting step includes
When the disconnect command is input in the input step during data transfer based on the file read command or the file write command, the disconnect command is suspended, and the file read command or the file is suspended while the disconnect command is pending When the transfer of data based on the write command is completed, the suspension of the disconnect command is released and the logical connection of the communication path is disconnected.
A method for disconnecting a logical connection of a communication path of a data transfer apparatus.
前記切断ステップは、
前記ホスト装置からの前記ファイル読み出し命令または前記ファイル書き込み命令が検出される毎にタイマーのカウント値をリセットし、前記ホスト装置により一連のデータを前記ファイル読み出し命令または前記ファイル書き込み命令によりアクセスするのに必要な時間を超える計時時間を前記タイマーによりカウントする計時ステップを含み、
前記計時ステップが終了したとき、前記切断命令の保留を解除して前記通信路の論理接続を切断することを特徴とする請求項5記載のデータ転送装置の通信路の論理接続の切断方法。
The cutting step includes
Each time the file read command or the file write command from the host device is detected, the timer count value is reset, and the host device accesses a series of data by the file read command or the file write command. Including a time measuring step of counting a time exceeding a required time by the timer,
6. The method for disconnecting a logical connection of a communication path in a data transfer apparatus according to claim 5, wherein when the timing step is completed, the disconnection of the disconnection command is canceled and the logical connection of the communication path is disconnected.
前記切断ステップで前記切断命令が保留されたとき、前記切断命令が保留された旨を表す情報を表示手段に表示する表示ステップを含むことを特徴とする請求項5記載のデータ転送装置の通信路の論理接続の切断方法。   6. The communication path of the data transfer apparatus according to claim 5, further comprising a display step of displaying information indicating that the disconnection instruction is held when the disconnection instruction is held in the disconnection step. To disconnect the logical connection. 前記切断ステップで前記切断命令の保留の解除が開始された後、前記ホスト装置からの前記ファイル読み出し命令または前記ファイル書き込み命令を無視して受け付けない命令無視ステップを含むことを特徴とする請求項5記載のデータ転送装置の通信路の論理接続の切断方法。   6. A command ignoring step of ignoring and not accepting the file read command or the file write command from the host device after release of the hold of the cut command is started in the disconnecting step. A method for disconnecting a logical connection of a communication path of the data transfer apparatus described.
JP2004379681A 2004-12-28 2004-12-28 Data communication apparatus, and logical connection disconnection method for its communication path Pending JP2006185288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004379681A JP2006185288A (en) 2004-12-28 2004-12-28 Data communication apparatus, and logical connection disconnection method for its communication path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004379681A JP2006185288A (en) 2004-12-28 2004-12-28 Data communication apparatus, and logical connection disconnection method for its communication path

Publications (1)

Publication Number Publication Date
JP2006185288A true JP2006185288A (en) 2006-07-13

Family

ID=36738347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004379681A Pending JP2006185288A (en) 2004-12-28 2004-12-28 Data communication apparatus, and logical connection disconnection method for its communication path

Country Status (1)

Country Link
JP (1) JP2006185288A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009144998A1 (en) * 2008-05-29 2009-12-03 キヤノン株式会社 Display device, control method thereof, and program
JP2013257573A (en) * 2013-07-12 2013-12-26 Canon Inc Display control device, control method thereof, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009144998A1 (en) * 2008-05-29 2009-12-03 キヤノン株式会社 Display device, control method thereof, and program
JP2009288570A (en) * 2008-05-29 2009-12-10 Canon Inc Display, control method thereof, and program
CN101952880A (en) * 2008-05-29 2011-01-19 佳能株式会社 Display device, control method thereof, and program
US8078767B2 (en) 2008-05-29 2011-12-13 Canon Kabushiki Kaisha Display apparatus, control method thereof, and program
US8346986B2 (en) 2008-05-29 2013-01-01 Canon Kabushiki Kaisha Display apparatus, control method thereof, and program
CN103592812A (en) * 2008-05-29 2014-02-19 佳能株式会社 Display control apparatus and control method thereof
US8713206B2 (en) 2008-05-29 2014-04-29 Canon Kabushiki Kaisha Display apparatus, control method thereof, and program
JP2013257573A (en) * 2013-07-12 2013-12-26 Canon Inc Display control device, control method thereof, and program

Similar Documents

Publication Publication Date Title
US8046517B2 (en) Data processing method and device for inputting data to pieces of digital equipment
RU2458387C2 (en) Information processing device and method of controlling said device
WO2005001701A1 (en) Slave device and communication setting method
US8533371B2 (en) Data recording apparatus and method
JP2007288532A (en) Electronic apparatus, control method of peripheral apparatus by the electronic apparatus, program and storage medium
KR20080014649A (en) Electronic appliance and startup method
JP2010140269A (en) Terminal device, control method for the terminal device and control program
JP2005184208A (en) Image processing unit
JP2001067156A (en) Peripheral equimenht of computer, control method therefor, image pickup device, and storage medium
EP2093991A2 (en) Recording control apparatus, one-time recording medium, recording system, and recording medium control method and program
JP2006079634A (en) Usb storage device and program
JP2006185288A (en) Data communication apparatus, and logical connection disconnection method for its communication path
JP5031596B2 (en) Information storage device, information processing system, and operation state setting method of information processing device
JP2006127040A (en) Information processing system and information processor
JP3927874B2 (en) Image processing apparatus, control method therefor, program, and storage medium
EP3188064B1 (en) Electronic system and connection method
JP4001151B2 (en) Printing device
JP4406709B2 (en) USB peripheral device and method for selecting device class
JP3815182B2 (en) Printing device
JP2005235043A (en) Information processing unit and method
JP5065201B2 (en) Imaging device
JP2001337768A (en) Keyboard device
JP4262280B2 (en) Image processing apparatus, control method therefor, and program
JP4918145B2 (en) Device device and mode switching method thereof
JP2005286731A (en) Imaging device