JP2014194613A - Electronic apparatus - Google Patents
Electronic apparatus Download PDFInfo
- Publication number
- JP2014194613A JP2014194613A JP2013070291A JP2013070291A JP2014194613A JP 2014194613 A JP2014194613 A JP 2014194613A JP 2013070291 A JP2013070291 A JP 2013070291A JP 2013070291 A JP2013070291 A JP 2013070291A JP 2014194613 A JP2014194613 A JP 2014194613A
- Authority
- JP
- Japan
- Prior art keywords
- mode
- cable
- electronic device
- connection
- main program
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、メインプログラムを実行することによりシステム全体の制御を行う電子装置に関する。 The present invention relates to an electronic apparatus that controls the entire system by executing a main program.
製品の機能や性能を店頭にてデモンストレーションするためのデモモードが種々の電子装置に搭載されている。この種のデモモードで動作可能な電子装置の具体的一例が特許文献1に記載されている。 Various electronic devices are equipped with demonstration modes for demonstrating the functions and performance of products at stores. A specific example of an electronic device that can operate in this type of demo mode is described in Patent Document 1.
ところで、デモモード中における電子装置の電池切れを防止するため、店頭に置かれた電子装置には、例えばUSB(Universal Serial Bus)ケーブル等の通信ケーブルが接続されており、通信ケーブルを介して電源の供給が行われる。電子装置は、通信ケーブルが接続されている状態で電源が投入されると、外部機器との通信を行う通信モードでメインプログラムによるシステムの起動を行う。メインプログラムは、システムを通信モードで起動した後にはじめてデモモードへの遷移が可能となる。メインプログラムは、デモモードへ遷移する際、システムを直接デモモードで起動する場合であれば初期プログラムローダが実行することになる処理を、初期プログラムローダに代えて実行しなければならない。そのため、電子装置に通信ケーブルを接続した状態で電子装置の電源を投入すると、システムがデモモードで稼働するまでに時間を要する。 By the way, in order to prevent the battery of the electronic device from running out in the demonstration mode, a communication cable such as a USB (Universal Serial Bus) cable is connected to the electronic device placed in the store, and power is supplied via the communication cable. Is supplied. When the electronic device is turned on while the communication cable is connected, the electronic device starts up the system by the main program in a communication mode for communicating with an external device. The main program can transition to the demo mode only after the system is started in the communication mode. When the main program transitions to the demo mode, the process that the initial program loader executes if the system is directly started in the demo mode must be executed instead of the initial program loader. Therefore, if the electronic device is turned on with the communication cable connected to the electronic device, it takes time until the system operates in the demo mode.
本発明は上記の事情に鑑みてなされたものであり、その目的とするところは、通信ケーブル接続時であってもシステムをデモモードで速やかに稼働させることが可能な電子装置を提供することである。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an electronic device capable of quickly operating the system in the demo mode even when the communication cable is connected. is there.
本発明の一形態に係る電子装置は、メインプログラムを実行することによりシステム全体の制御を行うものであり、所定の複数の動作モードのうち1つの動作モードを設定するモード設定手段と、通信及び給電の少なくとも一方のためのケーブルを接続可能な接続手段と、接続手段に対するケーブルの接続の有無を検知する接続検知手段と、メインプログラムによるシステムの起動時に、接続検知手段によってケーブルの接続が検知されると、システムの起動処理を、前回のシステムの終了時に設定されていた動作モードに応じて変更する処理変更手段とを備える。 An electronic apparatus according to an aspect of the present invention controls a whole system by executing a main program, and includes mode setting means for setting one operation mode among a plurality of predetermined operation modes, communication, Connection means that can connect a cable for at least one of the power feeding, connection detection means that detects whether or not the cable is connected to the connection means, and connection detection means detects the connection of the cable when the system is started by the main program. Then, a process changing means is provided for changing the system startup process in accordance with the operation mode set at the end of the previous system.
また、本発明の別の形態に係る電子装置は、初期プログラムローダによってメモリにロードされたメインプログラムを実行することによりシステム全体の制御を行うものであり、所定の複数の動作モードのうち1つの動作モードを設定するモード設定手段と、通信及び給電の少なくとも一方のためのケーブルを接続可能な接続手段と、接続手段に対するケーブルの接続の有無を検知する接続検知手段と、初期プログラムローダによってメインプログラムをメモリにロードする際に接続検知手段によってケーブルの接続が検知されると、初期プログラムローダによる処理を、前回のシステムの終了時に設定されていた動作モードに応じて変更する処理変更手段とを備える。 An electronic device according to another aspect of the present invention controls the entire system by executing a main program loaded into a memory by an initial program loader, and includes one of a plurality of predetermined operation modes. Mode setting means for setting an operation mode, connection means for connecting a cable for at least one of communication and power feeding, connection detection means for detecting whether or not a cable is connected to the connection means, and an initial program loader for main program When a connection of the cable is detected by the connection detection means when loading the memory into the memory, a process changing means for changing the processing by the initial program loader according to the operation mode set at the end of the previous system is provided. .
本発明によれば、ケーブルが接続されている状態で電子装置の電源が投入された場合であっても、メインプログラムは、前回のシステムの終了時に設定されていた動作モードがデモモードであれば、システムをデモモードで直接起動させることができる。例えば店頭に置かれたデモ機を考える。この種のデモ機は、原則、デモモードに設定されている。そのため、メインプログラムは、システムを通信モードで起動させず前回に引き続きデモモードで起動させる。従って、デモモードでのシステムの起動・稼働が速やかに行われる。ここで、本明細書中、「システムが起動(又は稼働)する」とは、電子装置に備えられるシステム(ソフトウェアとハードウェアとの集合)が所定の処理(例えばデジタルスチルカメラであればデジタル画像の撮影等)を実行可能な状態に遷移することを意味する。 According to the present invention, even when the power of the electronic device is turned on while the cable is connected, the main program is in the demo mode if the operation mode set at the end of the previous system is The system can be started directly in demo mode. For example, consider a demonstration machine placed in a store. In principle, this type of demo machine is set to demo mode. Therefore, the main program does not start the system in the communication mode, but starts it in the demo mode following the previous time. Therefore, the system can be quickly started and operated in the demo mode. In this specification, “system starts (or operates)” means that a system (a set of software and hardware) provided in an electronic apparatus is a predetermined process (for example, a digital image if it is a digital still camera). ) And the like can be executed.
複数の動作モードは、例えば、ケーブルと接続された外部機器と通信する通信モード、及び所定のデモンストレーション用のデモモードを含む。 The plurality of operation modes include, for example, a communication mode for communicating with an external device connected to a cable, and a demonstration mode for predetermined demonstration.
電子装置は、電源を供給するバッテリ及び電子データを保存可能なメモリカードが着脱可能に構成されたものであってもよい。この場合において、処理変更手段は、例えば、バッテリ又はメモリカードの少なくとも一方が取り外されている状態で接続検知手段によってケーブルの接続が検知されると、前回のシステムの終了時に設定されていた動作モードに拘わらず、メインプログラムに、システムをデモモードで起動させる。 The electronic device may be configured such that a battery for supplying power and a memory card capable of storing electronic data are detachable. In this case, for example, when the connection detection unit detects the connection of the cable with at least one of the battery and the memory card being removed, the operation mode that was set at the end of the previous system is used. Regardless, the main program starts the system in demo mode.
また、処理変更手段は、例えば、バッテリ又はメモリカードの少なくとも一方が取り外されている状態で接続検知手段によってケーブルの接続が検知されると、前回のシステムの終了時に設定されていた動作モードに拘わらず、メインプログラムがシステムをデモモードで起動するための準備を、初期プログラムローダに実行させる。 In addition, the process changing means is connected to the operation mode set at the end of the previous system when the connection detection means detects the connection of the cable with at least one of the battery and the memory card removed. First, the main program causes the initial program loader to prepare for starting the system in demo mode.
また、処理変更手段は、デモモードでのシステムの起動が予定される場合に、メインプログラムの実行に先立ち、初期プログラムローダに、一部のハードウェアを駆動制御させてもよい。 Further, the process changing means may cause the initial program loader to drive and control a part of hardware prior to execution of the main program when the system is scheduled to start in the demo mode.
また、電子装置は、メインプログラムが参照する設定値が保存される第一の記憶媒体と、前回のシステムの終了時に設定されていたモードを示す情報が保存される、第一の記憶媒体と異なる第二の記録媒体とを備えた構成としてもよい。 The electronic device is different from the first storage medium in which the setting value referred to by the main program is stored, and the first storage medium in which information indicating the mode set at the end of the previous system is stored. It is good also as a structure provided with the 2nd recording medium.
本発明によれば、通信ケーブル接続時であってもシステムをデモモードで速やかに稼働させることが可能な電子装置が提供される。 According to the present invention, there is provided an electronic device capable of quickly operating a system in a demo mode even when a communication cable is connected.
以下、図面を参照して、本発明の実施形態に係る電子装置について説明する。 Hereinafter, an electronic device according to an embodiment of the present invention will be described with reference to the drawings.
[電子装置1の構成]
図1は、本実施形態の電子装置1の構成を示すブロック図である。本実施形態の電子装置1は、例えばデジタル画像を撮影することが可能な装置であり、具体的には、撮影レンズを交換可能なデジタル一眼レフカメラ(クイックリターンミラー付)である。なお、電子装置1は、ミラーレス一眼カメラ、コンパクトデジタルカメラ、カムコーダ、携帯情報端末、PHS(Personal Handy phone System)、スマートフォン、フィーチャフォン、携帯ゲーム機等に置き換えてもよい。
[Configuration of Electronic Device 1]
FIG. 1 is a block diagram illustrating a configuration of an electronic device 1 according to the present embodiment. The electronic apparatus 1 according to the present embodiment is an apparatus capable of taking a digital image, for example, and specifically, a digital single-lens reflex camera (with a quick return mirror) in which a taking lens can be replaced. The electronic device 1 may be replaced with a mirrorless single-lens camera, a compact digital camera, a camcorder, a portable information terminal, a PHS (Personal Handy phone System), a smartphone, a feature phone, a portable game machine, or the like.
図1に示されるように、電子装置1は、CPU(Central Processing Unit)102、フラッシュメモリ104、SDRAM(Synchronous Dynamic Random Access Memory)106、RTC(Real Time Clock)108、電源制御部110、レンズ鏡胴制御部112、CCD(Charge Coupled Device)撮像部114、UI(User Interface)116、LCD(Liquid Crystal Display)表示部118、オーディオ再生部120、USB通信部122、SDカードアダプタ124、LED(Light Emitting Diode)126及びバッテリ128を備えている。
As shown in FIG. 1, an electronic device 1 includes a CPU (Central Processing Unit) 102, a
UI116は、ユーザが電子装置1を操作するためのUIである。UI116には、例えば、電子装置1のボディに設けられたハードウェアキー並びにLCD表示部118に表示されるGUI(Graphical User Interface)及びソフトウェアキーが含まれる。UI116は、電源スイッチを備えている。電源スイッチがオンされると、電源制御部110は、バッテリ128又は商用電源より入力される電力を変換して電子装置1の各ハードウェアに供給する。
The
フラッシュメモリ104には、初期プログラムローダ200やメインプログラム300等の各種プログラム、及び初期プログラムローダ200、メインプログラム300の各プログラムによって参照される電子装置1の設定値(ユーザ操作により変更可)等の各種データが格納されている。CPU102は、電源投入(起動)直後、フラッシュメモリ104に格納された初期プログラムローダ200を実行して各ハードウェアを初期化する。CPU102は次いで、フラッシュメモリ104に格納されたメインプログラム300を所定のワークエリア(例えばSDRAM106の所定領域)にロードし、ロードされたメインプログラム300を実行することにより、電子装置1全体の制御を行う。
The
RTC108は小容量の不揮発性メモリを備えており、現在時刻を設定・保存することができる。RTC108(不揮発性メモリ)はまた、時刻データ以外の任意のデータを保存する領域も有している。RTC108(不揮発性メモリ)には、電子装置1の電源がオフされた後も、前回のシステム終了時点での各種設定値等のデータが保持される。 The RTC 108 has a small-capacity nonvolatile memory, and can set and save the current time. The RTC 108 (nonvolatile memory) also has an area for storing arbitrary data other than time data. The RTC 108 (nonvolatile memory) retains data such as various setting values at the time of the previous system end even after the electronic device 1 is turned off.
電子装置1には、図示省略されたレンズ鏡胴及び撮影レンズが備えられている。レンズ鏡胴制御部112は、ユーザによるUI116の操作やAF(Autofocus)制御結果に従ってレンズ鏡胴の繰り出し量を制御して撮影レンズを駆動することにより、ズーミング及びフォーカシングを行う。
The electronic apparatus 1 includes a lens barrel and a photographing lens that are not shown. The lens
CCD撮像部114は、撮影レンズを介して被写体像を撮像面にて受光し、撮像面上の各画素で結像した光学像を光量に応じた電荷として蓄積して、電気信号に変換する。CPU102は、CCD撮像部114より入力される電気信号(撮影データ)に対して色補間、マトリクス演算、Y/C分離等の所定の信号処理を施して輝度信号Y、色差信号Cb、Crを生成し、JPEG(Joint Photographic
Experts Group)等の所定のフォーマットで圧縮する。圧縮画像信号(撮影画像データ)は、SDカードアダプタ124に差し込まれたSDカードに保存される。また、CPU102は、Y/C分離後の信号をSDRAM106にキャッシュし、キャッシュされた信号をモニタ表示可能に処理して所定のフレームレートでLCD表示部118に出力する。これにより、ユーザは、リアルタイムのスルー画をLCD表示部118を通じて視認することができる。スルー画再生中、オーディオ再生部120からは、図示省略されたマイクにより拾われた周囲の音が再生される。
The
Compress in a predetermined format such as Experts Group. The compressed image signal (photographed image data) is stored in an SD card inserted into the
USB通信部122にはUSBケーブルが接続される。電子装置1は、USB通信部122に接続されたUSBケーブルを介して外部機器と通信することができる。電子装置1はまた、USB通信部122に接続されたUSBケーブルを介して商用電源やPC等から電力供給を受けることができる。
A USB cable is connected to the
[電源投入時の初期プログラムローダ200による処理]
図2は、電子装置1の電源投入時に初期プログラムローダ200により実行される処理のフローチャートを示す。
[Processing by
FIG. 2 shows a flowchart of processing executed by the
[図2のS11(ハードウェアの初期化)]
初期プログラムローダ200は、電子装置1の電源が投入されると、各ハードウェアを初期化する。
[S11 in FIG. 2 (Hardware initialization)]
The
[図2のS12(USBケーブルの接続判定)]
初期プログラムローダ200は、USB通信部122のポートをチェックすることにより、USB通信部122にUSBケーブルが接続されているか否かを判定する。初期プログラムローダ200は、USB通信部122にUSBケーブルが接続されていると判定した場合(図2のS12:YES)、本フローチャートの処理を図2の処理ステップS15(デモモードフラグの読み込み)に進める。初期プログラムローダ200は、USB通信部122にUSBケーブルが接続されていないと判定した場合(図2のS12:NO)、本フローチャートの処理を図2の処理ステップS13(レンズ鏡胴の繰り出し)に進める。
[S12 in FIG. 2 (USB cable connection determination)]
The
[図2のS13(レンズ鏡胴の繰り出し)]
初期プログラムローダ200は、USB通信部122にUSBケーブルが接続されていない場合、システムを通常モードで速やかに起動させるための準備を行う。具体的には、初期プログラムローダ200は、レンズ鏡胴制御部112によるレンズ鏡胴の繰り出しを開始する。レンズ鏡胴の繰り出しなど、時間の掛かる処理をメインプログラム300の実行に先立って開始することにより、メインプログラム300によるシステムの起動完了までに掛かる時間を短縮することができる。ここで、通常モードは、例えば電子装置1の全ての機能(製造工程にて使用される検査機能等を除く。)を使用可能な標準的なモードである。
[S13 in FIG. 2 (lens barrel extension)]
When the USB cable is not connected to the
[図2のS14(メインプログラム300の起動)]
初期プログラムローダ200は、メインプログラム300を所定のワークエリアにロードする。これにより、メインプログラム300が起動する。USB通信部122にUSBケーブルが接続されていない場合、メインプログラム300は、システムを通常モードで起動させる。
[S14 in FIG. 2 (Activation of Main Program 300)]
The
[図2のS15(デモモードフラグの読み込み)]
RTC108(不揮発性メモリ)には、デモモードのフラグの値(「1」又は「0」)が保存されている。デモモードは、電子装置1の機能や性能を店頭にてデモンストレーションするためのモードである。デモモードには、例えば、通常モードに対して電子装置1の一部の機能を制限するもの(例えばレリーズ釦を押してシャッタを切っても撮影画像が記録されない等)、ユーザ操作用のメニュー構成が通常モード時と異なるもの、電子装置1の操作をガイド画面を交えて体験させるもの、電子装置1の機能や性能を紹介するデモ画面を再生するもの等がある。なお、デモモードフラグは、メインプログラム300によるシステム起動後であれば、ユーザによるUI116の操作を介して「1」又は「0」に切替可能である。「1」は、USB通信部122にUSBケーブルが接続されている状態であれば、設定すべき動作モードがデモモードであることを示し、「0」は、USB通信部122にUSBケーブルが接続されている状態であれば、設定すべき動作モードが通信モードであることを示す。初期プログラムローダ200は、USB通信部122にUSBケーブルが接続されている場合、RTC108(不揮発性メモリ)に保存されているデモモードフラグを読み込む。
[S15 in FIG. 2 (Read Demo Mode Flag)]
The RTC 108 (nonvolatile memory) stores a flag value (“1” or “0”) of the demo mode. The demonstration mode is a mode for demonstrating the functions and performance of the electronic device 1 at a store. The demo mode includes, for example, a function that restricts some functions of the electronic device 1 with respect to the normal mode (for example, a photographed image is not recorded even when the shutter button is pressed to release a shutter), and a menu configuration for user operation. There are things that are different from those in the normal mode, things that let you experience the operation of the electronic device 1 with a guide screen, and things that reproduce a demonstration screen that introduces the functions and performance of the electronic device 1. Note that the demo mode flag can be switched to “1” or “0” through the operation of the
[図2のS16(デモモードフラグの判定)]
初期プログラムローダ200は、RTC108(不揮発性メモリ)内のデモモードフラグが「0」に設定されている場合(図2のS16:NO)、USBケーブルを介して外部機器と通信するため、図2の処理ステップS13(レンズ鏡胴の繰り出し)を実行することなく、図2の処理ステップS14(メインプログラム300の起動)にてメインプログラム300を所定のワークエリアにロードして起動させる。この場合、メインプログラム300は、システムを通信モードで起動させる。
[S16 in FIG. 2 (Demo Mode Flag Determination)]
The
初期プログラムローダ200は、RTC108(不揮発性メモリ)内のデモモードフラグが「1」に設定されている場合(図2のS16:YES)、システムをデモモードで速やかに起動させるため、図2の処理ステップS13(レンズ鏡胴の繰り出し)にてレンズ鏡胴制御部112によるレンズ鏡胴の繰り出しを開始した後、図2の処理ステップS14(メインプログラム300の起動)にてメインプログラム300を所定のワークエリアにロードして起動させる。この場合、メインプログラム300は、システムをデモモードで起動させる。
When the demo mode flag in the RTC 108 (nonvolatile memory) is set to “1” (S16: YES in FIG. 2), the
このように、本実施形態では、USBケーブルが接続されている状態で電子装置1の電源が投入された場合であっても、メインプログラム300は、システムを通信モードで起動させずに直接デモモードで起動させることができる。そのため、USBケーブル接続時であってもシステムがデモモードで迅速に稼働される。デモモード中の電子装置1への電力は、USBケーブルを介して供給される。
As described above, in this embodiment, even when the power of the electronic apparatus 1 is turned on with the USB cable connected, the
[電源投入時のメインプログラム300による処理]
図3は、図2の処理ステップS14(メインプログラム300の起動)にて起動されたメインプログラム300により実行される処理のフローチャートを示す。以下においては、便宜上、最初に、図3の処理ステップS21(USBケーブルの接続判定)から処理ステップS25(システム起動音の再生)までの各処理ステップについて説明する。
[Processing by
FIG. 3 shows a flowchart of processing executed by the
[図3のS21(USBケーブルの接続判定)]
メインプログラム300は、USB通信部122のポートをチェックすることにより、USB通信部122にUSBケーブルが接続されているか否かを判定する。
[S21 in FIG. 3 (USB cable connection determination)]
The
[図3のS22(LED(Light Emitting Diode)126の点灯)]
メインプログラム300は、LED126を点灯させる。なお、LED126は、例えば電源投入状態を表示するランプである。
[S22 in FIG. 3 (Lighting of LED (Light Emitting Diode) 126)]
The
[図3のS23(CCD撮像部114の電源投入)]
メインプログラム300は、CCD撮像部114の電源を投入する。
[S23 in FIG. 3 (Power-on of the CCD imaging unit 114)]
The
[図3のS24(LCD表示部118の点灯)]
メインプログラム300は、LCD表示部118の表示を点灯させる。
[S24 in FIG. 3 (Lighting of LCD Display 118)]
The
[図3のS25(システム起動音の再生)]
メインプログラム300は、オーディオ再生部120を制御して、ユーザにシステムの起動を報知するシステム起動音を再生させる。
[S25 in FIG. 3 (Reproduction of System Startup Sound)]
The
〈メインプログラム300によるシステムの起動例〉
次に、図3を参照して、メインプログラム300によるシステムの起動例を3例説明する。
<Example of system startup by
Next, with reference to FIG. 3, three examples of system activation by the
−システム起動例1−
USB通信部122にUSBケーブルが接続されていない場合を考える。この場合、メインプログラム300は、図3の処理ステップS21(USBケーブルの接続判定)にてUSB通信部122にUSBケーブルが接続されていないと判定し(図3のS21:NO)、図3の処理ステップS22(LED126の点灯)、処理ステップS23(CCD撮像部114の電源投入)、処理ステップS24(LCD表示部118の点灯)、処理ステップS25(システム起動音の再生)を実行する。メインプログラム300は次いで、図3の処理ステップ26にて通常モードに遷移する。これにより、通常モードでのシステムの起動が完了する。
-System startup example 1-
Consider a case where a USB cable is not connected to the
−システム起動例2−
USB通信部122にUSBケーブルが接続されている場合を考える。この場合、メインプログラム300は、図3の処理ステップS21(USBケーブルの接続判定)にてUSB通信部122にUSBケーブルが接続されていると判定し(図3のS21:YES)、図3の処理ステップ27にて、RTC108(不揮発性メモリ)に保存されているデモモードフラグを読み込む。メインプログラム300は、RTC108(不揮発性メモリ)内のデモモードフラグが「0」に設定されている場合(図3のS28:NO)、USBケーブルを介して外部機器と通信するため、図3の処理ステップS21(USBケーブルの接続判定)から処理ステップS25(システム起動音の再生)を実行することなく、図3の処理ステップS29にて通信モードに遷移する。これにより、通信モードでのシステムの起動が完了する。
-System startup example 2-
Consider a case where a USB cable is connected to the
−システム起動例3−
USB通信部122にUSBケーブルが接続されている場合を考える。この場合、メインプログラム300は、図3の処理ステップS21(USBケーブルの接続判定)にてUSB通信部122にUSBケーブルが接続されていると判定し(図3のS21:YES)、図3の処理ステップ27にて、RTC108(不揮発性メモリ)に保存されているデモモードフラグを読み込む。メインプログラム300は、RTC108(不揮発性メモリ)内のデモモードフラグが「1」に設定されている場合(図3のS28:YES)、図3の処理ステップS22(LED126の点灯)、処理ステップS23(CCD撮像部114の電源投入)、処理ステップS24(LCD表示部118の点灯)、処理ステップS25(システム起動音の再生)を実行する。メインプログラム300は次いで、図3の処理ステップ26にてデモモードに遷移する。これにより、デモモードでのシステムの起動が完了する。
-System startup example 3-
Consider a case where a USB cable is connected to the
このように、システム起動例3では、USBケーブルが接続されている状態で電子装置1の電源が投入された場合であっても、メインプログラム300は、システムを通信モードで起動させずに直接デモモードで起動させることができる。そのため、USBケーブル接続時であってもシステムがデモモードで迅速に稼働される。デモモード中の電子装置1への電力は、USBケーブルを介して供給される。
As described above, in the system startup example 3, even when the power of the electronic apparatus 1 is turned on with the USB cable connected, the
[ユーザによる電子装置1に対する設定変更時の処理]
図4は、ユーザがUI116を操作することによって電子装置1の設定が変更された際に実行される処理のフローチャートを示す。
[Processing when User Changes Settings for Electronic Device 1]
FIG. 4 shows a flowchart of processing executed when the setting of the electronic apparatus 1 is changed by the user operating the
[図4のS31(フラッシュメモリ104への設定値の書き込み)]
メインプログラム300は、ユーザによるUI116の操作に従って変更された設定値をフラッシュメモリ104に書き込む(又は更新する)。
[S31 in FIG. 4 (setting value writing to flash memory 104)]
The
[図4のS32(デモモードフラグの変更判定)]
メインプログラム300は、変更された設定値がデモモードフラグの値であるか否かを判定する。メインプログラム300は、変更された設定値がデモモードフラグの値でないと判定した場合(図4のS32:NO)、本フローチャートの処理を終了させる。メインプログラム300は、変更された設定値がデモモードフラグの値であると判定した場合(図4のS32:YES)、本フローチャートの処理を図4の処理ステップS33(RTC108内のデモモードフラグの更新)に進める。
[S32 in FIG. 4 (Demo Mode Flag Change Determination)]
The
[図4のS33(RTC108内のデモモードフラグの更新)]
メインプログラム300は、フラッシュメモリ104内のデモモードフラグの値が変更された場合、RTC108(不揮発性メモリ)内に保存されているデモモードフラグの値を変更後の値に更新する。
[S33 in FIG. 4 (Update of Demo Mode Flag in RTC 108)]
When the value of the demo mode flag in the
ここで、デモモードフラグの値をRTC108に保存する理由について説明する。メインプログラム300は、初期プログラムローダ200よりも高級言語で組まれている。そのため、メインプログラム300は、設定値管理機構が初期プログラムローダ200よりも高機能である。従って、メインプログラム300と初期プログラムローダ200とで共通のデータ管理方法を採用することは難しい。また、フラッシュメモリ104は多様なデータを保存するため、データの書き換えが頻繁に行われる。そのため、フラッシュメモリ104では、書き換えエラーによりデータに不整合が生じる確率が電子装置1内の他の記憶媒体に比べて高いと考えられる。初期プログラムローダ200がデータ不整合の発生が懸念されるフラッシュメモリ104を参照する構成とした場合、システムが起動不可となるリスクが上昇する。そのため、本実施形態では、デモモードフラグを、メインプログラム300や初期プログラムローダ200が参照する他の設定値の保存場所(フラッシュメモリ104)とは異なる記憶媒体(RTC108)に保存している。
Here, the reason why the value of the demo mode flag is stored in the
以上が本発明の例示的な実施形態の説明である。本発明の実施形態は、上記に説明したものに限定されず、本発明の技術的思想の範囲において様々な変形が可能である。例えば明細書中に例示的に明示される実施形態等又は自明な実施形態等を適宜組み合わせた内容も本願の実施形態に含まれる。 The above is the description of the exemplary embodiments of the present invention. Embodiments of the present invention are not limited to those described above, and various modifications are possible within the scope of the technical idea of the present invention. For example, the embodiment of the present application also includes an embodiment that is exemplarily specified in the specification or a combination of obvious embodiments and the like as appropriate.
例えば、店頭に置かれたデモ機は盗難防止のため、バッテリやSDカードが取り外されていることが多い。そこで、別の実施形態では、USB通信部122にUSBケーブルが接続されている状態でかつバッテリ128又はSDカードの少なくとも一方が取り外されている場合には店頭に置かれているとみなし、デモモードフラグの値に拘わらず、システムをデモモードで起動させるようにしてもよい。
For example, a demo machine placed at a store often has a battery or SD card removed to prevent theft. Therefore, in another embodiment, when the USB cable is connected to the
1 電子装置
102 CPU
104 フラッシュメモリ
106 SDRAM
108 RTC
110 電源制御部
112 レンズ鏡胴制御部
114 CCD撮像部
116 UI
118 LCD表示部
120 オーディオ再生部
122 USB通信部
124 SDカードアダプタ
126 LED
128 バッテリ
200 初期プログラムローダ
300 メインプログラム
1
104
108 RTC
110 Power
118
Claims (7)
所定の複数の動作モードのうち1つの動作モードを設定するモード設定手段と、
通信及び給電の少なくとも一方のためのケーブルを接続可能な接続手段と、
前記接続手段に対する前記ケーブルの接続の有無を検知する接続検知手段と、
前記メインプログラムによる前記システムの起動時に、前記接続検知手段によって前記ケーブルの接続が検知されると、該システムの起動処理を、前回の該システムの終了時に設定されていた動作モードに応じて変更する処理変更手段と、
を備えること
を特徴とする、電子装置。 In an electronic device that controls the entire system by executing a main program,
Mode setting means for setting one operation mode among a plurality of predetermined operation modes;
Connection means capable of connecting a cable for at least one of communication and power supply;
Connection detecting means for detecting whether or not the cable is connected to the connecting means;
When the connection detection unit detects the connection of the cable at the time of activation of the system by the main program, the activation process of the system is changed according to the operation mode set at the time of the last termination of the system. Processing change means;
An electronic device comprising:
所定の複数の動作モードのうち1つの動作モードを設定するモード設定手段と、
通信及び給電の少なくとも一方のためのケーブルを接続可能な接続手段と、
前記接続手段に対する前記ケーブルの接続の有無を検知する接続検知手段と、
前記初期プログラムローダによって前記メインプログラムを前記メモリにロードする際に前記接続検知手段によって前記ケーブルの接続が検知されると、該初期プログラムローダによる処理を、前回の前記システムの終了時に設定されていた動作モードに応じて変更する処理変更手段と、
を備えること
を特徴とする、電子装置。 In an electronic device that controls the entire system by executing a main program loaded into memory by an initial program loader,
Mode setting means for setting one operation mode among a plurality of predetermined operation modes;
Connection means capable of connecting a cable for at least one of communication and power supply;
Connection detecting means for detecting whether or not the cable is connected to the connecting means;
When the connection detection unit detects the connection of the cable when the main program is loaded into the memory by the initial program loader, the processing by the initial program loader was set at the time of the previous end of the system. Process changing means for changing according to the operation mode;
An electronic device comprising:
前記ケーブルと接続された外部機器と通信する通信モード、及び
所定のデモンストレーション用のデモモード
を含む
請求項1又は請求項2に記載の電子装置。 The plurality of operation modes are:
The electronic device according to claim 1, comprising a communication mode for communicating with an external device connected to the cable, and a demonstration mode for predetermined demonstration.
前記処理変更手段は、
前記バッテリ又は前記メモリカードの少なくとも一方が取り外されている状態で前記接続検知手段によって前記ケーブルの接続が検知されると、前回の前記システムの終了時に設定されていた動作モードに拘わらず、前記メインプログラムに、該システムを前記デモモードで起動させること
を特徴とする、請求項1を引用する請求項3に記載の電子装置。 A battery that supplies power and a memory card that can store electronic data are removable.
The process changing means is
If connection of the cable is detected by the connection detection means in a state where at least one of the battery or the memory card is removed, the main mode is set regardless of the operation mode that was set when the system was terminated last time. The electronic device according to claim 3, wherein the program causes the system to start in the demo mode.
前記処理変更手段は、
前記バッテリ又は前記メモリカードの少なくとも一方が取り外されている状態で前記接続検知手段によって前記ケーブルの接続が検知されると、前回の前記システムの終了時に設定されていた動作モードに拘わらず、前記メインプログラムが該システムを前記デモモードで起動するための準備を、前記初期プログラムローダに実行させること
を特徴とする、請求項2を引用する請求項3に記載の電子装置。 A battery that supplies power and a memory card that can store electronic data are removable.
The process changing means is
If connection of the cable is detected by the connection detection means in a state where at least one of the battery or the memory card is removed, the main mode is set regardless of the operation mode that was set when the system was terminated last time. 4. An electronic device as claimed in claim 3, characterized in that a program causes the initial program loader to perform preparations for starting the system in the demo mode.
前記デモモードでの前記システムの起動が予定される場合に、前記メインプログラムの実行に先立ち、前記初期プログラムローダに、一部のハードウェアを駆動制御させること
を特徴とする、請求項2を引用する請求項3又は請求項5に記載の電子装置。 The process changing means is
3. The system according to claim 2, wherein when the system is scheduled to be started in the demo mode, the initial program loader is driven and controlled before the main program is executed. The electronic device according to claim 3 or 5.
前回の前記システムの終了時に設定されていたモードを示す情報が保存される、前記第一の記憶媒体と異なる第二の記録媒体と、
を備えること
を特徴とする、請求項1から請求項6の何れか一項に記載の電子装置。 A first storage medium in which a setting value referred to by the main program is stored;
A second recording medium different from the first storage medium in which information indicating a mode set at the end of the previous system is stored;
The electronic device according to claim 1, further comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013070291A JP6168469B2 (en) | 2013-03-28 | 2013-03-28 | Electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013070291A JP6168469B2 (en) | 2013-03-28 | 2013-03-28 | Electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014194613A true JP2014194613A (en) | 2014-10-09 |
JP6168469B2 JP6168469B2 (en) | 2017-07-26 |
Family
ID=51839841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013070291A Expired - Fee Related JP6168469B2 (en) | 2013-03-28 | 2013-03-28 | Electronic equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6168469B2 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001352479A (en) * | 2000-06-07 | 2001-12-21 | Olympus Optical Co Ltd | Electronic camera system |
JP2002118782A (en) * | 2000-10-05 | 2002-04-19 | Olympus Optical Co Ltd | Electronic camera |
JP2004096756A (en) * | 2002-08-29 | 2004-03-25 | Eastman Kodak Co | Demonstration on display of camera that includes power jack |
JP2005286731A (en) * | 2004-03-30 | 2005-10-13 | Konica Minolta Photo Imaging Inc | Imaging device |
JP2008065641A (en) * | 2006-09-07 | 2008-03-21 | Ricoh Co Ltd | Electronic appliance, digital camera, and starting method of electronic appliance |
-
2013
- 2013-03-28 JP JP2013070291A patent/JP6168469B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001352479A (en) * | 2000-06-07 | 2001-12-21 | Olympus Optical Co Ltd | Electronic camera system |
JP2002118782A (en) * | 2000-10-05 | 2002-04-19 | Olympus Optical Co Ltd | Electronic camera |
JP2004096756A (en) * | 2002-08-29 | 2004-03-25 | Eastman Kodak Co | Demonstration on display of camera that includes power jack |
JP2005286731A (en) * | 2004-03-30 | 2005-10-13 | Konica Minolta Photo Imaging Inc | Imaging device |
JP2008065641A (en) * | 2006-09-07 | 2008-03-21 | Ricoh Co Ltd | Electronic appliance, digital camera, and starting method of electronic appliance |
Also Published As
Publication number | Publication date |
---|---|
JP6168469B2 (en) | 2017-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7819530B2 (en) | Auxiliary device equipped with projector for use with an electronic device, and electronic camera system incorporating the auxiliary device | |
US7667758B2 (en) | Image pickup apparatus for displaying images and information of states and method for controlling the same | |
JP6786937B2 (en) | Information processing system, client terminal and program | |
JPWO2011132757A1 (en) | Imaging apparatus, imaging method, and program | |
JP2013135347A (en) | Recording device | |
KR20100069497A (en) | Photographing control method and appratus for capturing a moment | |
JP2010204430A (en) | Camera system | |
JP2006352255A (en) | Image input system and its power supply alteration method and program | |
JP2011041233A (en) | Image processing apparatus and method | |
JP4308681B2 (en) | Imaging device | |
JP2004007319A (en) | Photographing equipment | |
JP2021118399A (en) | Imaging control device, imaging control method, program and recording medium | |
JP6168469B2 (en) | Electronic equipment | |
JP5293255B2 (en) | Information recording / reproducing apparatus and digital camera | |
JP2016208648A (en) | Electronic apparatus, control method, and program | |
JP4525834B2 (en) | Image output device | |
JP2005221771A (en) | Imaging device and function display method | |
JP2021082878A (en) | Imaging device | |
US20070285532A1 (en) | Image-capturing apparatus | |
JP4477214B2 (en) | Electronic camera | |
US8514324B2 (en) | Image input apparatus, a method of controlling thereof and a computer-readable storage medium | |
JP2007143065A (en) | Imaging device and activation control method | |
JP2007214683A (en) | Imaging apparatus and charging method thereof | |
JP6288601B2 (en) | Imaging device | |
JP2005115505A (en) | Electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160115 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20161109 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161116 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170111 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20170605 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6168469 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170618 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20170717 |
|
LAPS | Cancellation because of no payment of annual fees |