[go: up one dir, main page]

JP2001290753A - Electronics - Google Patents

Electronics

Info

Publication number
JP2001290753A
JP2001290753A JP2000104324A JP2000104324A JP2001290753A JP 2001290753 A JP2001290753 A JP 2001290753A JP 2000104324 A JP2000104324 A JP 2000104324A JP 2000104324 A JP2000104324 A JP 2000104324A JP 2001290753 A JP2001290753 A JP 2001290753A
Authority
JP
Japan
Prior art keywords
function
electronic device
unit
device information
usb
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
JP2000104324A
Other languages
Japanese (ja)
Inventor
Jun Hosoda
潤 細田
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2000104324A priority Critical patent/JP2001290753A/en
Publication of JP2001290753A publication Critical patent/JP2001290753A/en
Pending legal-status Critical Current

Links

Landscapes

  • Camera Bodies And Camera Details Or Accessories (AREA)
  • Studio Devices (AREA)
  • Cameras In General (AREA)

Abstract

(57)【要約】 【課題】 ホスト側に負担をかけることなく、利用可能
な複数のデータ転送機能を容易に実現する。 【解決手段】 CPUコア1は、USBケーブルが接続
されると、キーブロック5のファンクションスイッチが
PLAYモードのときには、記憶デバイス(MassStorag
e Class)として動作すべくUSBポート13のデバイ
ス構成を行う。一方、ファンクションスイッチがREC
モードのときには、ビデオ画像入力デバイス(Video Im
aging Class)として動作すべくUSBポート13のデ
バイス構成を行う。また、CPUコア1は、USBケー
ブルが接続された状態で、ファンクションスイッチが操
作されると、一旦、USBケーブルを電気的に切断した
後、再度接続し、その後、ファンクションスイッチの状
態に応じて、USBポート13のデバイス構成を行う。
(57) [Summary] [PROBLEMS] To easily realize a plurality of available data transfer functions without burdening a host. SOLUTION: When a USB cable is connected, a CPU core 1 stores a storage device (MassStorag) when a function switch of a key block 5 is in a PLAY mode.
e Class), the device configuration of the USB port 13 is performed. On the other hand, if the function switch is REC
In the mode, the video image input device (Video Im
aging Class), the device configuration of the USB port 13 is performed. Further, when the function switch is operated in a state where the USB cable is connected, the CPU core 1 once disconnects the USB cable once and then reconnects it, and then, according to the state of the function switch, The device configuration of the USB port 13 is performed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の機能を有す
る電子機器に関し、接続相手電子機器にこの複数機能に
対応するデバイスとして認識させることができる電子機
器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device having a plurality of functions, and more particularly to an electronic device which can be connected to an electronic device as a device corresponding to the plurality of functions.

【0002】[0002]

【従来の技術】近年、PC(パーソナルコンピュータ)
には、様々な機能を有する電子機器(プリンタ、カメ
ラ、スキャナー等)が接続される。例えば、映像を撮像
して記憶媒体に記憶するいわゆるデジタルカメラがUS
B(Universal Serial Bus)を使用してPCに接続され
ると、デジタルカメラはPCにより記憶デバイス(Mass
Storage Class:記憶機能を有するデバイス)として認
識される。これは、PCにとってハードディスクが接続
されたことと同じ効果となるため、様々なアプリケーシ
ョンから使用できる利点がある。一方、PCのモニタカ
メラとして機能し、映像を撮像する撮像部のみを有する
いわゆるPCカメラがPCに接続されると、PCカメラ
はPCにビデオ画像入力デバイス(Video Imaging Devi
ce:ビデオ画像取得機能を有するデバイス)として認識
される。これは、主に、PCにPCカメラで撮影した画
像を順次入力する、すなわち動画を入力するために用い
られ、TV会議などのアプリケーションで使用される。
2. Description of the Related Art In recent years, personal computers (PCs)
Is connected to electronic devices (such as printers, cameras, and scanners) having various functions. For example, a so-called digital camera that captures an image and stores it in a storage medium is a US camera.
When the digital camera is connected to a PC using the Universal Serial Bus (B), the digital camera is connected to the storage device (Mass) by the PC.
Storage Class: a device having a storage function). This has the same effect as connecting a hard disk to the PC, and has the advantage that it can be used from various applications. On the other hand, when a so-called PC camera that functions as a monitor camera of the PC and has only an imaging unit that captures an image is connected to the PC, the PC camera sends a video image input device (Video Imaging Device)
ce: device having a video image acquisition function). This is mainly used for sequentially inputting images captured by a PC camera to a PC, that is, for inputting a moving image, and is used in an application such as a TV conference.

【0003】このように、PCは、接続される電子機器
により、その電子機器を所定の機能を有するデバイスと
して認識する。これは、電子機器が自端末の機能に関す
るデバイス情報を有しており、PCに接続されたときに
PCがそのデバイス情報を読み込んで認識することによ
り実現される。
As described above, the PC recognizes the electronic device as a device having a predetermined function by the connected electronic device. This is realized when the electronic device has device information relating to the function of its own terminal, and the PC reads and recognizes the device information when connected to the PC.

【0004】[0004]

【発明が解決しようとする課題】ところで、従来の電子
機器は、PCに接続されると予め設定されているデバイ
ス情報をPCからの要求に基づき送信する。これにより
PCは、接続されている電子機器がそのデバイス情報に
対応するデバイスとして認識することができるが、その
電子機器が複数の機能を有していても予め決められたデ
バイス情報しか有さないので、PCに対してそのデバイ
ス情報に対応するデバイスとしてしか認識されないとい
う不具合がある。例えば、上記デジタルカメラは、映像
を撮像して記憶媒体に記憶保存する機能(記憶デバイス
に対応する)を有すると共に映像を撮影するためにスル
ー画像を出力する機能(画像入力デバイスに対応する)
を有する。従来、このようなデジタルカメラは、複数の
機能を有しているにも係わらず、デバイス情報として記
憶デバイス情報のみを記憶しているので、PCに接続さ
れると記憶デバイスとしてのみ認識される。
When a conventional electronic device is connected to a PC, it transmits preset device information based on a request from the PC. Thereby, the PC can recognize the connected electronic device as a device corresponding to the device information, but has only predetermined device information even if the electronic device has a plurality of functions. Therefore, there is a problem that the PC is recognized only as a device corresponding to the device information. For example, the digital camera has a function (corresponding to a storage device) of capturing an image and storing it in a storage medium, and a function of outputting a through image to capture the image (corresponding to an image input device).
Having. Conventionally, such a digital camera has only a plurality of functions, but stores only storage device information as device information, and thus is recognized only as a storage device when connected to a PC.

【0005】そこで本発明は、複数の機能を有する電子
機器において、接続相手電子機器にこの複数の機能に対
応するデバイス情報を容易に認識させることができる電
子機器を提供することを目的とする。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide an electronic device having a plurality of functions that allows a partner electronic device to easily recognize device information corresponding to the plurality of functions.

【0006】[0006]

【課題を解決するための手段】上記目的達成のため、請
求項1記載の発明による電子機器は、他の電子機器と接
続され、該他の電子機器からの要求に基づきデバイス情
報を送信する電子機器において、複数の機能に対応する
デバイス情報を記憶する記憶手段と、前記複数の機能う
ち所定の機能に機能を切り替える機能切替手段と、前記
機能切替手段により切り替えられた機能に対応するデバ
イス情報を前記記憶手段から読み出して設定するデバイ
ス設定手段と、前記他の電子機器から要求があると前記
デバイス設定手段により設定されているデバイス情報を
送信する送信手段とを具備したことを特徴とする。
To achieve the above object, an electronic device according to the present invention is connected to another electronic device and transmits device information based on a request from the other electronic device. In the device, storage means for storing device information corresponding to a plurality of functions, function switching means for switching a function to a predetermined function among the plurality of functions, and device information corresponding to a function switched by the function switching means A device setting means for reading and setting from the storage means, and a transmitting means for transmitting device information set by the device setting means when requested by the other electronic device.

【0007】また、好ましい態様として、例えば請求項
2記載のように、請求項1記載の電子機器において、前
記デバイス設定手段は、前記他の電子機器への接続を検
出する検出手段を有し、この検出手段により接続が検出
された時の機能に対応するデバイス情報を設定するよう
にしてもよい。
In a preferred embodiment, in the electronic device according to the first aspect, for example, the device setting unit includes a detecting unit configured to detect a connection to the another electronic device. Device information corresponding to the function when the connection is detected by the detection means may be set.

【0008】また、好ましい態様として、例えば請求項
3記載のように、請求項1記載の電子機器において、電
子機器の電源をオンする電源手段を有し、前記デバイス
設定手段は、前記電源手段により電源がオンされた時の
機能に対応するデバイス情報を設定するようにしてもよ
い。
In a preferred embodiment, the electronic device according to the first aspect includes a power supply unit for turning on the power of the electronic device, and the device setting unit includes a power supply unit. Device information corresponding to a function when the power is turned on may be set.

【0009】また、好ましい態様として、例えば請求項
4記載のように、請求項1記載の電子機器において、前
記デバイス設定手段は、前記他の電子機器との接続中に
前記機能切替手段により機能が切り替えられたとき、他
の電子機器との接続を一旦切断した後に、切り替えられ
た機能に対応するデバイス情報を設定するようにしても
よい。
In a preferred aspect, in the electronic device according to the first aspect, for example, the function of the device setting unit is controlled by the function switching unit during connection with the other electronic device. When switched, the device information corresponding to the switched function may be set after temporarily disconnecting the connection with another electronic device.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照して説明する。 A.実施形態の構成 本発明の複数の機能を有する電子機器の実施形態として
デジタルカメラを一例として説明をする。図1は、本発
明の実施形態によるデジタルカメラの構成を示すブロッ
ク図である。図において、CCDユニット1は、固体撮
像素子であるCCDを駆動して光学系により結像された
被写体像を撮像し、撮像信号として出力する。画像プロ
セッサ2は、CCDユニット1から取り込んだ原色また
は補色の画像情報に対して、ガンマ補正、エッジ強調等
の画像処理を実施するとともに、オートホワイトバラン
ス、自動露出等の制御を行う。ワークメモリ3は、画像
プロセッサ2により各種の画像処理が施された画像デー
タを、一時的に記憶する。JPEGモジュール4は、各
種の操作キーからなるキーブロック5に設けられたシャ
ッターキーの操作や、外部機器(パーソナルコンピュー
タなど)からの撮影要求に応じて、ワークメモリ3に記
憶されている画像データを圧縮する。キーブロック5
は、どのような動作を行わせるかを指示するための各種
の操作キーを備え、特に、本実施形態では、少なくと
も、RECモードとPLAYモードとを切り替えるため
のファンクションスイッチを備える。RECモードと
は、CCDユニット1により撮影した画像データをスル
ーでUSBポート13から順次送出する動作モード(ビ
デオ画像取得機能)である(ビデオ画像入力デバイス:
Video Imaging Device)。また、PLAYモードは、後
述する外部メモリ6とPCとの間で、USBポート13
を介して画像データを転送する動作モード(記憶画像再
生機能)である(記憶デバイス:Mass Storage Clas
s)。
Embodiments of the present invention will be described below with reference to the drawings. A. Configuration of Embodiment A digital camera will be described as an example of an electronic apparatus having a plurality of functions according to an embodiment of the invention. FIG. 1 is a block diagram showing a configuration of a digital camera according to an embodiment of the present invention. In the figure, a CCD unit 1 drives a CCD, which is a solid-state imaging device, to capture a subject image formed by an optical system, and outputs the captured image as an imaging signal. The image processor 2 performs image processing such as gamma correction and edge enhancement on image information of primary colors or complementary colors fetched from the CCD unit 1 and performs control such as automatic white balance and automatic exposure. The work memory 3 temporarily stores image data on which various image processes have been performed by the image processor 2. The JPEG module 4 converts the image data stored in the work memory 3 in response to the operation of a shutter key provided in a key block 5 composed of various operation keys and a shooting request from an external device (such as a personal computer). Compress. Key block 5
Is provided with various operation keys for instructing what kind of operation is to be performed. In particular, in the present embodiment, at least a function switch for switching between the REC mode and the PLAY mode is provided. The REC mode is an operation mode (video image acquisition function) for sequentially transmitting image data captured by the CCD unit 1 through the USB port 13 (video image input device:
Video Imaging Device). In the PLAY mode, a USB port 13 is provided between an external memory 6 described later and a PC.
Operating mode (storage image playback function) for transferring image data via the storage device (storage device: Mass Storage Clas)
s).

【0011】また、外部メモリ6は、着脱自在なコンパ
クトフラッシュカードやスマートメディア等の記憶媒体
であり、上記圧縮画像データを記録する。エンコーダ7
は、ワークメモリ3に記憶されているスルー画像や、外
部メモリ6に記録された撮影画像をビデオ信号に変換す
る。LCD9は、ドライバ8により駆動され、エンコー
ダ7により変換されたビデオ信号や、設定モード時にお
ける設定項目や設定内容を表示する。メモリコントロー
ラ10は、上述したワークメモリ3、外部メモリ6にお
ける画像データの入出力を制御する。CPUコア11
は、CPUと、その動作プログラム、各機能に対応した
デバイス情報(記憶デバイス情報、ビデオ画像入力デバ
イス情報)等が格納されたROMとからなり、メモリコ
ントローラ10を含む各部の動作を制御する。特に、本
実施形態では、キーブロック5に設けられたファンクシ
ョンスイッチの操作に応じて、RECモードとPLAY
モードとの切り替え制御を行う。該切り替え制御では、
単に、データの流れを制御するだけでなく、RECモー
ドでは、ビデオ画像入力デバイス(Video Imaging Devi
ce)として動作するようにデバイス情報の設定を行い、
また、PLAYモードでは、記憶デバイス(Mass Stora
ge Class)として動作するようにデバイス情報の設定を
行う。これにより、CPUコア11は、USBポートを
介して接続された機器からデバイス情報の要求がある
と、上記設定されているデバイス情報を要求された機器
に送信する。RS232Cポート12は、比較的通信速
度が低速な、データの入出力用のI/Oポートである。
また、USBポート13は、通信速度が高速な、データ
の入出力用のI/Oポートであり、ホスト(パーソナル
コンピュータ)にRECスルー画像を転送したり(ビデ
オ画像入力デバイスとして認識されたとき)、ホストと
外部メモリ6との間で、画像ファイルを転送したりする
(記憶デバイスとして認識されたとき)。
The external memory 6 is a removable storage medium such as a compact flash card or smart media, and records the compressed image data. Encoder 7
Converts a through image stored in the work memory 3 or a captured image recorded in the external memory 6 into a video signal. The LCD 9 is driven by the driver 8 and displays a video signal converted by the encoder 7 and setting items and settings in the setting mode. The memory controller 10 controls input and output of image data in the work memory 3 and the external memory 6 described above. CPU core 11
Is composed of a CPU, a ROM in which an operation program thereof, device information (storage device information, video image input device information) corresponding to each function, and the like are stored, and controls the operation of each unit including the memory controller 10. Particularly, in the present embodiment, the REC mode and the PLAY mode are operated in accordance with the operation of the function switch provided on the key block 5.
Controls switching between modes. In the switching control,
In addition to simply controlling the flow of data, in the REC mode, a video image input device (Video Imaging Device) is used.
ce) Set the device information to operate as
In the PLAY mode, a storage device (Mass Stora
ge Class) to set device information. Thereby, when there is a request for device information from a device connected via the USB port, the CPU core 11 transmits the set device information to the requested device. The RS232C port 12 is a data input / output I / O port having a relatively low communication speed.
The USB port 13 is an I / O port for inputting and outputting data at a high communication speed, and transfers a REC through image to a host (personal computer) (when recognized as a video image input device). Transfer an image file between the host and the external memory 6 (when the image file is recognized as a storage device).

【0012】次に、図2は、上述したUSBポート13
の詳細な構成を示す回路図である。図において、CPU
コア1側のVBUSCNT端子は、USBコネクタ15
にUSBケーブルが接続されたか否かを検出する入力ポ
ートである。USBケーブルが接続されると、USBコ
ネクタ15のVCC端子が5Vになるので、VBUSC
NT端子(入力ポート)の状態を調べることにより、ケ
ーブルの有無を知ることができる。ケーブルが接続さ
れ、USB接続用アプリケーションの準備が終わると、
出力端子USBCNT端子(出力ポート)を制御して、
D+線を抵抗R3によりプルアップすることにより、ホ
スト側に接続が通知される。
FIG. 2 shows the USB port 13 described above.
FIG. 3 is a circuit diagram showing a detailed configuration of FIG. In the figure, CPU
The VBUSCNT terminal on the core 1 side is connected to the USB connector 15
This is an input port for detecting whether a USB cable is connected to the input port. When the USB cable is connected, the VCC terminal of the USB connector 15 becomes 5 V.
By checking the state of the NT terminal (input port), the presence or absence of a cable can be known. When the cable is connected and the USB connection application is ready,
By controlling the output terminal USBCNT terminal (output port)
The connection is notified to the host by pulling up the D + line by the resistor R3.

【0013】次に、図3は、ホストのPCにUSBデバ
イスが接続された後の処理手順(Bus enumeration)
(デバイス認識方法)を説明するための概念図である。
デバイスであるデジタルカメラは、まず、自身のアドレ
スを「0」として待機しておく。ホストは、USBデバ
イスとして新しいデバイス(この場合、デジタルカメ
ラ)の接続が通知されると(S1)、ダミーのデバイス
・ディスクリプタを取得する(S2)。次に、デバイス
であるデジタルカメラにアドレスを振り(Set Addres
s)(S3)、デバイスであるデジタルカメラは、指定
されたアドレスのデバイスとして構成する。次に、ホス
トは、アドレスを決定したデバイスに対してディスクリ
プタ取得コマンド(Get Descriptor)を発行し、様々な
デバイス情報を取得する(S4)。ディスクリプタに
は、デバイス・ディスクリプタ(デバイス・クラスコー
ドやプロダクトIDなど)、コンフィグレーション・デ
ィスクリプタ(インターフェースの数や電源設定な
ど)、インターフェース・ディスクリプタ(エンドポイ
ント数やインターフェースクラス)、エンドポインタ・
ディスクリプタ(バルクやアイソクロナスの転送タイプ
指定)の情報がある。最後に、ホストは、デバイスであ
るデジタルカメラのデバイス・クラスの認識が完了する
と、構成セットコマンド(Set Configuration)を発行
し(S5)、接続されたUSBデバイスに適合したホス
ト側のデバイスドライバをロードして作業を終了し、U
SBによる運用を開始する(S6)。
Next, FIG. 3 shows a processing procedure (Bus enumeration) after the USB device is connected to the host PC.
It is a conceptual diagram for explaining (device recognition method).
First, the digital camera which is a device waits with its address set to “0”. When notified of connection of a new device (digital camera in this case) as a USB device (S1), the host acquires a dummy device descriptor (S2). Next, assign an address to the digital camera that is a device (Set Addres
s) (S3), the digital camera as a device is configured as a device having a designated address. Next, the host issues a descriptor acquisition command (Get Descriptor) to the device whose address has been determined, and acquires various device information (S4). Descriptors include device descriptors (device class code and product ID, etc.), configuration descriptors (number of interfaces and power settings, etc.), interface descriptors (endpoint number and interface class), end pointers,
There is information on the descriptor (designation of bulk or isochronous transfer type). Lastly, upon completion of the recognition of the device class of the digital camera, which is the device, the host issues a configuration set command (Set Configuration) (S5), and loads a host-side device driver suitable for the connected USB device. And finish the work.
The operation by SB is started (S6).

【0014】次に、図4は、記憶デバイスとして動作さ
せる際のデバイス構成を説明するための概念図である。
Mass Storage Classは、USB経由でファイルシステム
を実現するクラスであり、ハードディスクやフロッピー
(登録商標)ディスクのように、デバイスであるデジタ
ルカメラを記憶媒体として取り扱うことが可能である。
コントロール転送(End Point(0))は、デバイスに対す
るSCSIコマンドを送る。バルク転送(End Point
(1),(2))は、ファイルのデータの送受信に使用され、
遅延が問題にならない大量のデータを転送する。また、
End Point(3)のインタラプト転送は、書込み(Write)
コマンド実行後のメディアのチェックに利用される。
Next, FIG. 4 is a conceptual diagram for explaining a device configuration when operating as a storage device.
The Mass Storage Class is a class that implements a file system via USB, and can handle a digital camera that is a device as a storage medium, such as a hard disk or a floppy (registered trademark) disk.
The control transfer (End Point (0)) sends a SCSI command to the device. Bulk transfer (End Point
(1), (2)) are used to send and receive file data,
Transfer large amounts of data where delay is not an issue. Also,
End Point (3) interrupt transfer is Write
Used for checking media after command execution.

【0015】次に、図5は、ビデオ画像入力デバイスと
して動作させる際のデバイス構成を説明するための概念
図である。Video Imaging Classでは、End Point (4)に
おいてアイソクロナス転送を行う。これは、連続的で周
期的なデータの送信に用いられ、RECスルー画像のデ
ータを順次送信するのに用いられる。
Next, FIG. 5 is a conceptual diagram for explaining a device configuration when operating as a video image input device. In the Video Imaging Class, isochronous transfer is performed at End Point (4). This is used for continuous and periodic data transmission, and is used for sequentially transmitting REC through image data.

【0016】B.実施形態の動作 次に、上述した実施形態の動作について説明する。図6
は、電源起動後もしくは起動前にUSBケーブルを接続
した場合の動作を説明するためのフローチャートであ
る。電源をオンにし(ステップS10)、その後、US
Bケーブルを接続した場合(ステップS12)、あるい
はUSBケーブルを接続した状態で(ステップS1
4)、電源をオンにした場合(ステップS16)のいず
れにおいても、USBモードに移行する。USBケーブ
ルが接続されたか否かは、VBUSCNT端子の状態を
調べることにより分かる。
B. Next, an operation of the above-described embodiment will be described. FIG.
5 is a flowchart for explaining an operation when a USB cable is connected after or before power-on. Turn on the power (step S10), and then
When the B cable is connected (step S12), or with the USB cable connected (step S1)
4) In any case where the power is turned on (step S16), the mode shifts to the USB mode. Whether or not the USB cable is connected can be determined by checking the state of the VBUSCNT terminal.

【0017】次に、キーブロック5のファンクションス
イッチがPLAYモードであるか、RECモードである
かを判断する(ステップS18)。そして、ファンクシ
ョンスイッチがPLAYモードのときには、デジタルカ
メラを記憶デバイス(Mass Storage Class)として動作
すべくデバイス構成(デバイス情報の設定)を行う(ス
テップS20)。ホストでは、ディスクリプタを取得す
ることにより、上記デバイス構成に対応するデバイスド
ライバをロードする。エナミュレーション終了後、デジ
タルカメラは、記憶デバイス(Mass Storage Class)と
して動作可能となる。
Next, it is determined whether the function switch of the key block 5 is in the PLAY mode or the REC mode (step S18). When the function switch is in the PLAY mode, a device configuration (device information setting) is performed to operate the digital camera as a storage device (Mass Storage Class) (step S20). The host loads the device driver corresponding to the device configuration by acquiring the descriptor. After the end of the enumeration, the digital camera can operate as a storage device (Mass Storage Class).

【0018】一方、ファンクションスイッチがRECモ
ードのときには、デジタルカメラをビデオ画像入力デバ
イス(Video Imaging Class)として動作すべくデバイ
ス構成(デバイス情報の設定)を行う(ステップS2
2)。ホストでは、ディスクリプタを取得することによ
り、上記デバイス構成に対応するデバイスドライバをロ
ードする。その後、デジタルカメラは、CCDユニット
1により撮像した画像を順次USBポート13を介して
ホストに送信することが可能になる。
On the other hand, when the function switch is in the REC mode, a device configuration (device information setting) is performed to operate the digital camera as a video image input device (Video Imaging Class) (step S2).
2). The host loads the device driver corresponding to the device configuration by acquiring the descriptor. Thereafter, the digital camera can sequentially transmit images captured by the CCD unit 1 to the host via the USB port 13.

【0019】次に、図7は、USBを接続中にファンク
ションスイッチを切り替えた場合の動作を説明するため
のフローチャートである。USB接続中にファンクショ
ンスイッチの切り替えを検知すると(ステップS3
0)、アプリケーションソフトとして必要となるUSB
終了処理を行う(ステップS32)。次に、USBCN
T信号を制御することにより、D+線のプルアップを一
旦解除し、一度、USBコネクタ15をバスから切り離
した後、再度、D+線をプルアップすることにより、新
たにUSBケーブルを接続しなおした状態とする(ステ
ップS34)。
Next, FIG. 7 is a flowchart for explaining the operation when the function switch is switched while the USB is connected. When the switch of the function switch is detected during the USB connection (step S3
0), USB required as application software
End processing is performed (step S32). Next, USBCN
By controlling the T signal, the pull-up of the D + line was once released, the USB connector 15 was once disconnected from the bus, and then the D + line was pulled up again to reconnect the USB cable. The state is set (step S34).

【0020】次に、キーブロック5のファンクションス
イッチがPLAYモードであるか、RECモードである
かを判断する(ステップS36)。そして、ファンク所
スイッチがPLAYモードのときには、デジタルカメラ
を記憶デバイス(Mass Storage Class)として動作すべ
くデバイス構成(デバイス情報の設定)を行う(ステッ
プS38)。ホストでは、ディスクリプタを取得するこ
とにより、上記デバイス構成に対応するデバイスドライ
バをロードする。エナミュレーション終了後、デジタル
カメラは、記憶デバイス(Mass Storage Class)として
動作可能である。
Next, it is determined whether the function switch of the key block 5 is in the PLAY mode or the REC mode (step S36). When the funk place switch is in the PLAY mode, a device configuration (device information setting) is performed to operate the digital camera as a storage device (Mass Storage Class) (step S38). The host loads the device driver corresponding to the device configuration by acquiring the descriptor. After the end of the enumeration, the digital camera can operate as a storage device (Mass Storage Class).

【0021】一方、ファンクションスイッチがRECモ
ードのときには、デジタルカメラをビデオ画像入力デバ
イス(Video Imaging Class)として動作すべくデバイ
ス構成(デバイス情報の設定)を行う(ステップS4
0)。ホストでは、ディスクリプタを取得することによ
り、上記デバイス構成に対応するデバイスドライバをロ
ードする。その後、デジタルカメラは、CCDユニット
1により撮像した画像を順次USBポート13を介して
ホストに送信することが可能になる。
On the other hand, when the function switch is in the REC mode, a device configuration (device information setting) is performed to operate the digital camera as a video image input device (Video Imaging Class) (step S4).
0). The host loads the device driver corresponding to the device configuration by acquiring the descriptor. Thereafter, the digital camera can sequentially transmit images captured by the CCD unit 1 to the host via the USB port 13.

【0022】本実施形態では、ホスト上のデバイスドラ
イバとして汎用のものを使用することができ、さらに、
大容量のメモリを使用することもなく、USBデバイス
側のUSB機能開発も、機能毎に別個に行うことができ
る。
In this embodiment, a general-purpose device driver can be used as a device driver on the host.
Without using a large-capacity memory, USB function development on the USB device side can be performed separately for each function.

【0023】上記実施形態では、接続手段としてUSB
を適用したデジタルカメラに関して説明したが、接続手
段はこれに限定されること無く、例えば無線接続でもよ
い。また、他の電子機器に接続され、複数のデバイス機
能を有する電子機器であればデジタルカメラに限らずい
かなる電子機器でもよいことは勿論である。
In the above embodiment, the connection means is USB
The connection means is not limited to this, but may be, for example, a wireless connection. In addition, as long as the electronic device is connected to another electronic device and has a plurality of device functions, the electronic device is not limited to a digital camera and may be any electronic device.

【0024】[0024]

【発明の効果】請求項1記載の発明によれば、機能切替
手段により、記憶手段に記憶されている複数の機能う
ち、所定の機能に機能を切り替え、デバイス設定手段に
より、切り替えられた機能に対応するデバイス情報を前
記記憶手段から読み出して設定し、他の電子機器から要
求があると、送信手段により、前記デバイス設定手段に
より設定されているデバイス情報を他の電子機器へ送信
するようにしたので、複数の機能を有する電子機器にお
いて、接続相手電子機器にこの複数の機能に対応するデ
バイス情報を容易に認識させることができるという利点
が得られる。
According to the first aspect of the present invention, the function switching means switches the function to a predetermined function among the plurality of functions stored in the storage means, and the function setting means switches the function to the switched function by the device setting means. The corresponding device information is read from the storage unit and set, and when requested by another electronic device, the transmission unit transmits the device information set by the device setting unit to the other electronic device. Therefore, in an electronic device having a plurality of functions, there is an advantage that a connection partner electronic device can easily recognize device information corresponding to the plurality of functions.

【0025】また、請求項2記載の発明によれば、前記
デバイス設定手段は、検出手段により、前記他の電子機
器への接続が検出された時の機能に対応するデバイス情
報を設定するようにしたので、複数の機能を有する電子
機器において、接続相手電子機器にこの複数の機能に対
応するデバイス情報を容易に認識させることができると
いう利点が得られる。
According to the second aspect of the present invention, the device setting means sets the device information corresponding to the function when the connection to the another electronic device is detected by the detecting means. Therefore, in an electronic device having a plurality of functions, there is obtained an advantage that a connection partner electronic device can easily recognize device information corresponding to the plurality of functions.

【0026】また、請求項3記載の発明によれば、前記
デバイス設定手段は、電源手段により電源がオンされた
時の機能に対応するデバイス情報を設定するようにした
ので、複数の機能を有する電子機器において、接続相手
電子機器にこの複数の機能に対応するデバイス情報を容
易に認識させることができるという利点が得られる。
According to the third aspect of the invention, the device setting means sets device information corresponding to a function when the power is turned on by the power supply means, and thus has a plurality of functions. In the electronic device, there is an advantage that the connection partner electronic device can easily recognize the device information corresponding to the plurality of functions.

【0027】また、請求項4記載の発明によれば、前記
デバイス設定手段は、前記他の電子機器との接続中に前
記機能切替手段により機能が切り替えられたとき、他の
電子機器との接続を一旦切断した後に、切り替えられた
機能に対応するデバイス情報を設定するようにしたの
で、複数の機能を有する電子機器において、接続相手電
子機器にこの複数の機能に対応するデバイス情報を容易
に認識させることができるという利点が得られる。
According to the fourth aspect of the present invention, when the function is switched by the function switching unit during connection with the another electronic device, the device setting unit connects to the other electronic device. Once the device information has been disconnected, device information corresponding to the switched function is set, so that in an electronic device having a plurality of functions, the device information corresponding to the plurality of functions can be easily recognized by a connection partner electronic device. This has the advantage of being able to

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

【図1】本発明の実施形態によるデジタルカメラの構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a digital camera according to an embodiment of the present invention.

【図2】上述したUSBポート13の詳細な構成を示す
回路図である。
FIG. 2 is a circuit diagram showing a detailed configuration of the USB port 13 described above.

【図3】ホストにUSBデバイスが接続された後の処理
手順を説明するための概念図である。
FIG. 3 is a conceptual diagram illustrating a processing procedure after a USB device is connected to a host.

【図4】Mass Storage Classによるデバイス構成を説明
するための概念図である。
FIG. 4 is a conceptual diagram illustrating a device configuration based on a Mass Storage Class.

【図5】Video Imaging Classによるデバイス構成を説
明するための概念図である。
FIG. 5 is a conceptual diagram for describing a device configuration based on a Video Imaging Class.

【図6】電源起動後もしくは起動前にUSBケーブルを
接続した場合の動作を説明するためのフローチャートで
ある。
FIG. 6 is a flowchart for explaining an operation when a USB cable is connected after power-on or before power-on.

【図7】USBを接続中にファンクションスイッチを切
り替えた場合の動作を説明するためのフローチャートで
ある。
FIG. 7 is a flowchart illustrating an operation when a function switch is switched while a USB is connected.

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

1 CCDユニット 2 画像プロセッサ 3 ワークメモリ 4 JPEGモジュール 5 キーブロック(機能切替手段、電源手段) 6 外部メモリ 7 エンコーダ 8 ドライバ 9 LCD 10 メモリコントローラ 11 CPUコア(記憶手段、デバイス設定手段) 12 RS232Cポート 13 USBポート(送信手段、検出手段) DESCRIPTION OF SYMBOLS 1 CCD unit 2 Image processor 3 Work memory 4 JPEG module 5 Key block (function switching means, power supply means) 6 External memory 7 Encoder 8 Driver 9 LCD 10 Memory controller 11 CPU core (storage means, device setting means) 12 RS232C port 13 USB port (transmission means, detection means)

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 5/232 H04N 5/232 Z 5/765 101:00 5/781 5/781 510C // H04N 101:00 Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat II (Reference) H04N 5/232 H04N 5/232 Z 5/765 101: 00 5/781 5/781 510C // H04N 101: 00

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 他の電子機器と接続され、該他の電子機
器からの要求に基づきデバイス情報を送信する電子機器
において、 複数の機能に対応するデバイス情報を記憶する記憶手段
と、 前記複数の機能うち所定の機能に機能を切り替える機能
切替手段と、 前記機能切替手段により切り替えられた機能に対応する
デバイス情報を前記記憶手段から読み出して設定するデ
バイス設定手段と、 前記他の電子機器から要求があると前記デバイス設定手
段により設定されているデバイス情報を送信する送信手
段とを具備したことを特徴とする電子機器。
1. An electronic device connected to another electronic device and transmitting device information based on a request from the other electronic device, wherein: a storage unit for storing device information corresponding to a plurality of functions; A function switching unit for switching a function to a predetermined function among the functions; a device setting unit for reading and setting device information corresponding to the function switched by the function switching unit from the storage unit; and a request from the another electronic device. An electronic apparatus, comprising: a transmitting unit that transmits device information set by the device setting unit.
【請求項2】 前記デバイス設定手段は、前記他の電子
機器への接続を検出する検出手段を有し、 この検出手段により接続が検出された時の機能に対応す
るデバイス情報を設定することを特徴とする請求項1記
載の電子機器。
2. The device setting means includes a detecting means for detecting a connection to the another electronic device, and setting device information corresponding to a function when the connection is detected by the detecting means. The electronic device according to claim 1, wherein:
【請求項3】 電子機器の電源をオンする電源手段を有
し、 前記デバイス設定手段は、前記電源手段により電源がオ
ンされた時の機能に対応するデバイス情報を設定するこ
とを特徴とする請求項1記載の電子機器。
3. A power supply unit for turning on a power supply of an electronic apparatus, wherein the device setting unit sets device information corresponding to a function when the power supply unit is turned on. Item 6. The electronic device according to Item 1.
【請求項4】 前記デバイス設定手段は、前記他の電子
機器との接続中に前記機能切替手段により機能が切り替
えられたとき、他の電子機器との接続を一旦切断した後
に、切り替えられた機能に対応するデバイス情報を設定
することを特徴とする請求項1記載の電子機器。
4. When the function is switched by the function switching unit during connection with the another electronic device, the device setting unit disconnects the connection with the other electronic device and then switches the function. 2. The electronic apparatus according to claim 1, wherein device information corresponding to the electronic device is set.
JP2000104324A 2000-04-06 2000-04-06 Electronics Pending JP2001290753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000104324A JP2001290753A (en) 2000-04-06 2000-04-06 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000104324A JP2001290753A (en) 2000-04-06 2000-04-06 Electronics

Publications (1)

Publication Number Publication Date
JP2001290753A true JP2001290753A (en) 2001-10-19

Family

ID=18617884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000104324A Pending JP2001290753A (en) 2000-04-06 2000-04-06 Electronics

Country Status (1)

Country Link
JP (1) JP2001290753A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002084999A1 (en) * 2001-04-06 2002-10-24 Sony Corporation Digital camera and data transfer method
US6880054B2 (en) 2000-02-21 2005-04-12 Trek Technology (Singapore) Pte. Ltd. Portable data storage device having a secure mode of operation
US7082483B2 (en) 2002-05-13 2006-07-25 Trek Technology (Singapore) Pte. Ltd. System and apparatus for compressing and decompressing data stored to a portable data storage device
JPWO2005001701A1 (en) * 2003-06-27 2006-08-10 松下電器産業株式会社 Slave device, communication setting method
KR100750117B1 (en) 2005-01-19 2007-08-21 삼성전자주식회사 Method and device for setting class of USB device
CN100379263C (en) * 2001-04-06 2008-04-02 索尼公司 digital camera
JP2009015865A (en) * 2008-09-19 2009-01-22 Seiko Epson Corp Image input / output system
US7549161B2 (en) 2001-06-28 2009-06-16 Trek 2000 International Ltd. Portable device having biometrics-based authentication capabilities
US7650470B2 (en) 2001-06-28 2010-01-19 Trek 2000 International, Ltd. Method and devices for data transfer
JP2013045163A (en) * 2011-08-22 2013-03-04 Nec Corp Computer system, information processing system, virtual media method, and program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03135628A (en) * 1989-10-20 1991-06-10 Toshiba Corp Terminal equipment
JPH04335362A (en) * 1991-05-10 1992-11-24 Konica Corp Color image forming device
JPH10126426A (en) * 1996-08-27 1998-05-15 Canon Inc Interface control device, electronic device, and communication system
JPH11161444A (en) * 1997-09-29 1999-06-18 Canon Inc Network system, multifunction device, multifunction device control method, and storage medium
JPH11212554A (en) * 1998-01-28 1999-08-06 Roland Corp Playing information input device and playing information output device
JPH11266383A (en) * 1998-03-18 1999-09-28 Minolta Co Ltd Digital camera system
JPH11308508A (en) * 1998-04-17 1999-11-05 Minolta Co Ltd Digital camera system
JPH11317921A (en) * 1998-05-07 1999-11-16 Minolta Co Ltd Digital camera system and digital camera

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03135628A (en) * 1989-10-20 1991-06-10 Toshiba Corp Terminal equipment
JPH04335362A (en) * 1991-05-10 1992-11-24 Konica Corp Color image forming device
JPH10126426A (en) * 1996-08-27 1998-05-15 Canon Inc Interface control device, electronic device, and communication system
JPH11161444A (en) * 1997-09-29 1999-06-18 Canon Inc Network system, multifunction device, multifunction device control method, and storage medium
JPH11212554A (en) * 1998-01-28 1999-08-06 Roland Corp Playing information input device and playing information output device
JPH11266383A (en) * 1998-03-18 1999-09-28 Minolta Co Ltd Digital camera system
JPH11308508A (en) * 1998-04-17 1999-11-05 Minolta Co Ltd Digital camera system
JPH11317921A (en) * 1998-05-07 1999-11-16 Minolta Co Ltd Digital camera system and digital camera

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6880054B2 (en) 2000-02-21 2005-04-12 Trek Technology (Singapore) Pte. Ltd. Portable data storage device having a secure mode of operation
US7039759B2 (en) 2000-02-21 2006-05-02 Trek Technology (Singapore) Pte. Ltd. Portable data storage device
US8209462B2 (en) 2000-02-21 2012-06-26 Trek 2000 International Ltd. Portable data storage device
WO2002084999A1 (en) * 2001-04-06 2002-10-24 Sony Corporation Digital camera and data transfer method
CN100379263C (en) * 2001-04-06 2008-04-02 索尼公司 digital camera
US7656426B2 (en) 2001-04-06 2010-02-02 Sony Corporation Digital camera and data transfer method from a record medium
US7650470B2 (en) 2001-06-28 2010-01-19 Trek 2000 International, Ltd. Method and devices for data transfer
US7549161B2 (en) 2001-06-28 2009-06-16 Trek 2000 International Ltd. Portable device having biometrics-based authentication capabilities
US7082483B2 (en) 2002-05-13 2006-07-25 Trek Technology (Singapore) Pte. Ltd. System and apparatus for compressing and decompressing data stored to a portable data storage device
US7631121B2 (en) 2002-05-13 2009-12-08 Trek 2000 International Ltd. System and apparatus for compressing and decompressing data stored to a portable data storage device
JPWO2005001701A1 (en) * 2003-06-27 2006-08-10 松下電器産業株式会社 Slave device, communication setting method
US7760232B2 (en) 2003-06-27 2010-07-20 Panasonic Corporation Slave device and communication setting method
US7711860B2 (en) 2005-01-19 2010-05-04 Samsung Electronics Co., Ltd. Method and apparatus to establish class of USB device
KR100750117B1 (en) 2005-01-19 2007-08-21 삼성전자주식회사 Method and device for setting class of USB device
JP2009015865A (en) * 2008-09-19 2009-01-22 Seiko Epson Corp Image input / output system
JP2013045163A (en) * 2011-08-22 2013-03-04 Nec Corp Computer system, information processing system, virtual media method, and program

Similar Documents

Publication Publication Date Title
US8026958B2 (en) Image capture device
CN1992775B (en) Information processing apparatus and method
US20070264983A1 (en) Systems and methods for selectively activating functions provided by a mobile phone
JPH10187583A (en) Data communication device and method
JP2002209175A (en) External storage device of imaging device and control method thereof, imaging device and control method thereof
US20120120261A1 (en) Camera-enabled remote control apparatus for consumer electronic appliances
JP2004310672A (en) Data input device and image output system
KR20100002943A (en) Usb device and method to recognize usb mode of the same
JP2004310772A (en) Compact radio storage device
JP2001290753A (en) Electronics
JP2004297801A (en) Digital imaging apparatus and data transmission mode selection method
JP2001067156A (en) Computer peripheral device, control method therefor, imaging apparatus, and storage medium
WO2008016113A1 (en) External storage device and camera
US7616839B2 (en) Image data transfer system, method of generating image data file, and computer program
JP2002271721A (en) Imaging device
KR20030057250A (en) USB Camera System with Host Function
JP4262534B2 (en) Digital equipment
CN101064889A (en) Apparatus, system and method for selectively activating functions of a portable device
US8154603B2 (en) Imaging device transferring data to external device
CN100583954C (en) Control apparatus and control method
JP2002049520A (en) Electronics
JPH11145993A (en) Communication system, apparatus and method
KR101446940B1 (en) Digital image processing apparatus comprising the function of determining the class of USB host and the communicating method of the same
KR100246582B1 (en) System of photographing actual object picture
JP2001268424A (en) Digital camera and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070326

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100419

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100518