JP2019017225A - Electronic device, control method and program - Google Patents

Electronic device, control method and program Download PDF

Info

Publication number
JP2019017225A
JP2019017225A JP2017134951A JP2017134951A JP2019017225A JP 2019017225 A JP2019017225 A JP 2019017225A JP 2017134951 A JP2017134951 A JP 2017134951A JP 2017134951 A JP2017134951 A JP 2017134951A JP 2019017225 A JP2019017225 A JP 2019017225A
Authority
JP
Japan
Prior art keywords
battery
battery usage
electronic device
operation mode
battery pack
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
JP2017134951A
Other languages
Japanese (ja)
Inventor
雄資 白川
Yusuke Shirakawa
雄資 白川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2017134951A priority Critical patent/JP2019017225A/en
Publication of JP2019017225A publication Critical patent/JP2019017225A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Details Of Cameras Including Film Mechanisms (AREA)
  • Camera Bodies And Camera Details Or Accessories (AREA)
  • Studio Devices (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

To make possible to calculate a battery use amount during a period in which an electronic device stays in its autopower OFF state, and to notify a user of appropriate battery information.SOLUTION: An electronic device comprises: acquisition means for acquiring battery use amount information stored in memorizing means of a battery pack from the battery pack in response to switching from a first operation mode to a second operation mode in which power is saved further than in the first operation mode; calculation means for calculating a battery use amount in the second operation mode; updating means for using the battery use amount calculated by the calculation means to update the battery use amount information; and processing means for performing a process to cause the memorizing means of the battery pack to store the battery use amount information updated by the updating means in response to detection of a predetermined state.SELECTED DRAWING: Figure 2

Description

本発明は、電池を電源とする電子機器、その制御方法およびプログラムに関するものである。   The present invention relates to an electronic device using a battery as a power source, a control method thereof, and a program.

一般に、デジタルカメラ等の電子機器は、接続された電池を電源として動作する。そのような電子機器では、電池の残量をユーザに通知することが行われている。   In general, an electronic device such as a digital camera operates using a connected battery as a power source. In such an electronic device, the user is notified of the remaining battery level.

特許文献1には、2種類のバッテリーチェック方法を切り替えることにより、電池の残量を表示する方法が記載されている。特許文献2には、電池の残量から使用可能時間を計算し、計算された使用可能時間を表示する方法が記載されている。   Patent Document 1 describes a method of displaying the remaining battery level by switching between two battery check methods. Patent Document 2 describes a method of calculating a usable time from a remaining battery level and displaying the calculated usable time.

特開2002−112076号公報JP 2002-112076 A 特開2012−182849号公報JP 2012-182849 A

電池の残量は、例えば、電池容量と電池使用量との差分から計算される。電池使用量は、電池から流出する電流を電池パックが有する回路(例:クーロンカウンタ)で積算する方法で計算される。しかしながら、電子機器がオートパワーオフ状態である場合に電池から流出する電流が微小であるときは、電池から流出する電流を検出できず、クーロンカウンタが作動しないことがある。そして、その結果、電子機器がオートパワーオフ状態である期間の電池使用量を計算できず、電池容量と電池使用量との差分から計算される残量が実際の残量と異なってしまうという問題がある。さらに、電池容量と電池使用量との差分から計算される残量が実際の残量と異なってしまうために、適切な電池情報(電池の残量、使用可能時間など)をユーザに通知することができないという問題もある。   The remaining battery level is calculated from, for example, the difference between the battery capacity and the battery usage. The battery usage is calculated by a method of integrating the current flowing out from the battery with a circuit (eg, coulomb counter) included in the battery pack. However, if the current flowing out of the battery is very small when the electronic device is in the auto power off state, the current flowing out of the battery cannot be detected, and the coulomb counter may not operate. As a result, the battery usage during the period when the electronic device is in the auto power-off state cannot be calculated, and the remaining amount calculated from the difference between the battery capacity and the battery usage differs from the actual remaining amount. There is. Furthermore, since the remaining amount calculated from the difference between the battery capacity and the battery usage amount differs from the actual remaining amount, appropriate battery information (battery remaining amount, usable time, etc.) is notified to the user. There is also a problem that cannot be done.

そこで、本発明は、電子機器がオートパワーオフ状態である期間の電池使用量を計算できるようにし、適切な電池情報(電池の残量、使用可能時間など)をユーザに通知できるようにすることを目的とする。   Therefore, the present invention enables calculation of battery usage during a period in which the electronic device is in an auto power off state, and allows notification of appropriate battery information (remaining battery capacity, usable time, etc.) to the user. With the goal.

本発明に係る電子機器は、第1の動作モードから前記第1の動作モードよりも省電力な第2の動作モードへの切り替えに応じて、電池パックの記憶手段に記憶されている電池使用量情報を前記電池パックから取得する取得手段と、前記第2の動作モードにおける電池使用量を計算する計算手段と、前記計算手段により計算された電池使用量を用いて、前記電池使用量情報を更新する更新手段と、所定の状態の検出に応じて、前記更新手段により更新された前記電池使用量情報を前記電池パックの前記記憶手段に記憶させる処理を行う処理手段とを有する。   The electronic device according to the present invention uses the battery usage amount stored in the storage means of the battery pack in accordance with the switching from the first operation mode to the second operation mode, which is more power saving than the first operation mode. An acquisition unit that acquires information from the battery pack, a calculation unit that calculates a battery usage amount in the second operation mode, and updates the battery usage amount information by using the battery usage amount calculated by the calculation unit. Updating means for performing, and processing means for performing processing for storing the battery usage information updated by the updating means in the storage means of the battery pack in response to detection of a predetermined state.

本発明に係る制御方法は、電子機器の制御方法であって、第1の動作モードから前記第1の動作モードよりも省電力な第2の動作モードへの切り替えに応じて、電池パックの記憶手段に記憶されている電池使用量情報を前記電池パックから取得する取得ステップと、前記第2の動作モードにおける電池使用量を計算する計算ステップと、前記第1の計算ステップで計算された電池使用量を用いて、前記電池使用量情報を更新する更新ステップと、所定の状態の検出に応じて、前記更新ステップで更新された前記電池使用量情報を前記電池パックの前記記憶手段に記憶させる処理を行う処理ステップとを有する。   A control method according to the present invention is a control method for an electronic device, and stores a battery pack in response to switching from a first operation mode to a second operation mode that saves power compared to the first operation mode. An acquisition step of acquiring battery usage information stored in the means from the battery pack, a calculation step of calculating a battery usage amount in the second operation mode, and a battery usage calculated in the first calculation step An update step for updating the battery usage information using the amount, and a process for storing the battery usage information updated in the updating step in the storage means of the battery pack in response to detection of a predetermined state Processing steps.

本発明に係るプログラムは、コンピュータを、第1の動作モードから前記第1の動作モードよりも省電力な第2の動作モードへの切り替えに応じて、電池パックの記憶手段に記憶されている電池使用量情報を前記電池パックから取得する取得手段と、前記第2の動作モードにおける電池使用量を計算する計算手段と、前記計算手段により計算された電池使用量を用いて、前記電池使用量情報を更新する更新手段と、所定の状態の検出に応じて、前記更新手段により更新された前記電池使用量情報を前記電池パックの前記記憶手段に記憶させる処理を行う処理手段として機能させるためのプログラムである。   A program according to the present invention stores a battery stored in a storage unit of a battery pack in response to switching of a computer from a first operation mode to a second operation mode that saves more power than the first operation mode. Using the acquisition means for acquiring the usage amount information from the battery pack, the calculation means for calculating the battery usage amount in the second operation mode, and the battery usage amount calculated by the calculation means, the battery usage amount information And a program for functioning as processing means for performing processing for storing the battery usage information updated by the updating means in the storage means in response to detection of a predetermined state It is.

本発明によれば、電子機器がオートパワーオフ状態である期間の電池使用量を計算できるようにし、適切な電池情報(電池の残量、使用可能時間など)をユーザに通知することができる。   According to the present invention, it is possible to calculate the battery usage amount during a period in which the electronic device is in the auto power off state, and to notify the user of appropriate battery information (remaining battery capacity, usable time, etc.).

実施形態1および他の実施形態における通信システムの構成要素を説明するための図である。It is a figure for demonstrating the component of the communication system in Embodiment 1 and other embodiment. 電子機器100の構成要素と電池パック101の構成要素とを説明するためのブロック図である。3 is a block diagram for explaining components of the electronic device 100 and components of the battery pack 101. FIG. 電池211から電子機器100に流れる電流の例を示す図である。FIG. 4 is a diagram illustrating an example of current flowing from the battery 211 to the electronic device 100. 電流積算値の計算方法の例を説明するための図である。It is a figure for demonstrating the example of the calculation method of an electric current integrated value. 通信パケットの構造の一例を示す図である。It is a figure which shows an example of the structure of a communication packet. 実施形態1における電子機器100の動作例を説明するためのフローチャートである。4 is a flowchart for explaining an operation example of the electronic device 100 according to the first embodiment. 実施形態2における電子機器100の動作例を説明するためのフローチャートである。12 is a flowchart for explaining an operation example of the electronic device 100 according to the second embodiment. 第2の計算部225によって計算される電池使用量の差分の例を説明するための図である。It is a figure for demonstrating the example of the difference of the battery usage-amount calculated by the 2nd calculation part 225. 実施形態3における電子機器100の動作例を説明するためのフローチャートである。14 is a flowchart for explaining an operation example of the electronic device 100 according to the third embodiment.

以下、図面を参照して本発明の実施形態を説明する。ただし、本発明は以下の実施形態に限定されるものではない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the present invention is not limited to the following embodiments.

[実施形態1]
図1は、実施形態1および他の実施形態における通信システムの構成要素を説明するための図である。
[Embodiment 1]
FIG. 1 is a diagram for explaining components of a communication system according to the first embodiment and other embodiments.

図1に示すように、実施形態1および他の実施形態における通信システムは、電子機器100および外部機器104を有する。電子機器100は、例えば、撮像装置(例:デジタルカメラ)として動作する。外部機器104は、例えば、携帯機器(例:スマートフォン)として動作する。実施形態1および他の実施形態では、電子機器100および外部機器104が、アンテナ215を介して、BLE(Bluetooth Low Energy(登録商標))に準拠した無線通信を行うことができる例を説明する。ただし、電子機器100と外部機器104との間の無線通信は、BLEに限るものではなく、BLEの代わりに他の無線通信規格(例:Wi−Fi、Zigbee)を使用してもよい。   As illustrated in FIG. 1, the communication system according to the first embodiment and other embodiments includes an electronic device 100 and an external device 104. The electronic device 100 operates as, for example, an imaging device (for example, a digital camera). The external device 104 operates as a mobile device (eg, a smartphone), for example. In the first embodiment and other embodiments, an example in which the electronic device 100 and the external device 104 can perform wireless communication based on BLE (Bluetooth Low Energy (registered trademark)) via the antenna 215 will be described. However, the wireless communication between the electronic device 100 and the external device 104 is not limited to BLE, and other wireless communication standards (eg, Wi-Fi, Zigbee) may be used instead of BLE.

電子機器100は、電池パック101内の電池を電源として動作する。電池パック101は、電子機器100に設けられた電池ボックス103に収容されることにより、電子機器100に接続される。電池ボックス103の開口部には、電池蓋207が設けられている。電池蓋207が開状態である場合、ユーザは電池パック101を電池ボックス103に収容することができる。電池蓋207が閉状態である場合、ユーザは電子機器100を使用することができる。   The electronic device 100 operates using the battery in the battery pack 101 as a power source. The battery pack 101 is connected to the electronic device 100 by being housed in a battery box 103 provided in the electronic device 100. A battery lid 207 is provided at the opening of the battery box 103. When the battery cover 207 is in the open state, the user can store the battery pack 101 in the battery box 103. When the battery cover 207 is in the closed state, the user can use the electronic device 100.

次に、図2を参照して、電子機器100の構成要素と電池パック101の構成要素とを説明する。   Next, the components of the electronic device 100 and the components of the battery pack 101 will be described with reference to FIG.

メモリ219は、電子機器100の各構成要素を制御するためのプログラムを記憶したメモリである。カメラ制御部201は、メモリ219に記憶されているプログラムを実行することにより電子機器100の各構成要素を制御するプロセッサを有する。カメラ制御部201のプロセッサは、例えばハードウェアプロセッサである。カメラ制御部201はさらに、カウント部222、予測部223、第1の計算部224、第2の計算部225および通信部226を有する。カウント部222、予測部223、第1の計算部224、第2の計算部225および通信部226は、カメラ制御部201のプロセッサに組み込まれている。   The memory 219 is a memory that stores a program for controlling each component of the electronic device 100. The camera control unit 201 includes a processor that controls each component of the electronic device 100 by executing a program stored in the memory 219. The processor of the camera control unit 201 is, for example, a hardware processor. The camera control unit 201 further includes a count unit 222, a prediction unit 223, a first calculation unit 224, a second calculation unit 225, and a communication unit 226. The count unit 222, the prediction unit 223, the first calculation unit 224, the second calculation unit 225, and the communication unit 226 are incorporated in the processor of the camera control unit 201.

カウント部222は、無線通信部214が実行した無線通信動作の回数をカウントする。無線通信動作とは、接続中の無線通信において信号を実際に送受信する動作である。たとえば、BLEでは、このような無線通信動作は間欠的に実行されるので、その回数をカウントすることができる。通信部226は、電池パック101の通信部231と通信可能である。第1の計算部224は、電池211の電池使用量を計算する。電池使用量の計算方法については後述する。   The count unit 222 counts the number of wireless communication operations performed by the wireless communication unit 214. The wireless communication operation is an operation of actually transmitting / receiving a signal in the connected wireless communication. For example, in BLE, such a wireless communication operation is executed intermittently, so that the number of times can be counted. The communication unit 226 can communicate with the communication unit 231 of the battery pack 101. The first calculation unit 224 calculates the battery usage amount of the battery 211. A method for calculating the battery usage will be described later.

予測部223は、電子機器100がオートパワーオフモードである期間に電池パック101が計算する電池使用量を予測する。第2の計算部225は、第1の計算部224が計算した電池使用量と予測部223が予測した電池使用量との差分を計算する。なお、予測部223および第2の計算部225は、実施形態2で用いられる構成要素であり、実施形態1では省略可能である。   The prediction unit 223 predicts the battery usage amount calculated by the battery pack 101 during the period when the electronic device 100 is in the auto power off mode. The second calculation unit 225 calculates the difference between the battery usage calculated by the first calculation unit 224 and the battery usage predicted by the prediction unit 223. Note that the prediction unit 223 and the second calculation unit 225 are components used in the second embodiment, and can be omitted in the first embodiment.

レンズユニット102は、フォーカス機構、ズーム機構、絞り機構などを有する。カメラ制御部201は、レンズユニット102内の制御部と通信することで、これらの機構を制御する。撮像部204は、撮像センサ、画像処理部などを有する。撮像部204は、レンズユニット102を介して得られた光学像を撮像センサで撮像し、その光学像に対応する画像データ(静止画像データまたは動画像データ)を画像処理部で生成する。撮像部204で生成された画像データは、記憶媒体218に記憶される。記憶媒体218は、電子機器100から取り外し可能な記憶媒体(例:メモリカード)である。表示部217は、撮像部204で生成された画像データまたは記憶媒体218から再生された画像データを表示する。表示部217はさらに、カメラ制御部201の制御下で、電子機器100および電池パック101に関する様々な情報を表示する。有線通信インターフェース213は、例えばUSB規格に準拠したものであり、外部装置と通信可能に接続される。電源回路209は、電池パック101からの電力を電子機器100の各構成要素に供給する。電池蓋スイッチ208は、電池蓋207が開状態であるか閉状態であるかをカメラ制御部201に通知するためのスイッチである。   The lens unit 102 includes a focus mechanism, a zoom mechanism, a diaphragm mechanism, and the like. The camera control unit 201 controls these mechanisms by communicating with the control unit in the lens unit 102. The imaging unit 204 includes an imaging sensor, an image processing unit, and the like. The imaging unit 204 captures an optical image obtained through the lens unit 102 with an imaging sensor, and generates image data (still image data or moving image data) corresponding to the optical image with the image processing unit. The image data generated by the imaging unit 204 is stored in the storage medium 218. The storage medium 218 is a storage medium (eg, memory card) that is removable from the electronic device 100. The display unit 217 displays image data generated by the imaging unit 204 or image data reproduced from the storage medium 218. The display unit 217 further displays various information regarding the electronic device 100 and the battery pack 101 under the control of the camera control unit 201. The wired communication interface 213 is compliant with, for example, the USB standard, and is communicably connected to an external device. The power supply circuit 209 supplies power from the battery pack 101 to each component of the electronic device 100. The battery lid switch 208 is a switch for notifying the camera control unit 201 whether the battery lid 207 is in an open state or a closed state.

電池パック101は、電池211および電池制御部212を有する。電池211は、充電可能な電池(例:リチウムイオン電池)であり、電源回路209および電池パック101の各構成要素に電力を供給する。   The battery pack 101 includes a battery 211 and a battery control unit 212. The battery 211 is a rechargeable battery (for example, a lithium ion battery), and supplies power to each component of the power supply circuit 209 and the battery pack 101.

電池制御部212は、電池パック101の各構成要素を制御するためのプログラムを記憶したメモリと、そのメモリに記憶されているプログラムを実行することにより電池パック101の各構成要素を制御するプロセッサとを有する。電池制御部212のプロセッサは、例えばハードウェアプロセッサである。電池制御部212はさらに、電流検出回路230、通信部231、クーロンカウンタ232および記憶部233を有する。電流検出回路230および通信部231は、電池制御部212のプロセッサに組み込まれている。   The battery control unit 212 includes a memory that stores a program for controlling each component of the battery pack 101, and a processor that controls each component of the battery pack 101 by executing the program stored in the memory. Have The processor of the battery control unit 212 is, for example, a hardware processor. The battery control unit 212 further includes a current detection circuit 230, a communication unit 231, a coulomb counter 232, and a storage unit 233. The current detection circuit 230 and the communication unit 231 are incorporated in the processor of the battery control unit 212.

通信部231は、カメラ制御部201の通信部226と通信可能である。電流検出回路230は、電池211から流出する電流を検出し、検出した電流の値をクーロンカウンタ232に通知する。クーロンカウンタ232は、電流検出回路230が電池211から流出する電流を検出している期間、電池211から流出する電流を積算する。クーロンカウンタ232で積算された電流は電流積算値としてクーロンカウンタ232から出力される。この電流積算値は、電池パック101の電池使用量に相当する。記憶部233は、電池パック101に関する様々な情報(電池使用量情報を含む)を記憶している。電池使用量情報は、電池パック101の電池使用量を示す情報である。電池パック101の電流検出回路230とクーロンカウンタ232は、電池使用量を計算して電池使用量情報として記憶部233に記憶する計算機能を実現する。   The communication unit 231 can communicate with the communication unit 226 of the camera control unit 201. The current detection circuit 230 detects the current flowing out of the battery 211 and notifies the coulomb counter 232 of the detected current value. The coulomb counter 232 integrates the current flowing out from the battery 211 while the current detection circuit 230 detects the current flowing out from the battery 211. The current accumulated by the coulomb counter 232 is output from the coulomb counter 232 as a current accumulated value. This integrated current value corresponds to the battery usage of the battery pack 101. The storage unit 233 stores various information (including battery usage amount information) regarding the battery pack 101. The battery usage information is information indicating the battery usage of the battery pack 101. The current detection circuit 230 and the coulomb counter 232 of the battery pack 101 realize a calculation function of calculating a battery usage amount and storing it in the storage unit 233 as battery usage amount information.

電源スイッチ221がオンにされると、電子機器100は、撮像/再生モード(第1の動作モードに相当)での動作を開始する。撮像/再生モードは、静止画像または動画像の撮像と、記憶媒体218が記憶している画像データの再生とが可能な動作モードである。電子機器100が撮像/再生モードである場合、カメラ制御部201は、メモリ219が記憶しているユーザ設定に従って無線通信部214を制御することにより、外部機器104との無線接続を確立する。実施形態1では、外部機器104との無線接続と無線通信とがBLEを用いて行われる例を説明する。BLEによる通信により、無線通信部214は、間欠的な無線通信動作と低消費電力とで外部機器104との無線接続を低電力で維持することができる。電子機器100が撮像/再生モードである場合、カメラ制御部201は、外部機器104が要求する画像データを記憶媒体218から読み出し、その画像データを無線通信部214を介して外部機器104に無線で送信することができる。電子機器100が撮像/再生モードである場合、カメラ制御部201は、外部機器104から無線で送信されたリモートレリーズ要求を無線通信部214を介して受信し、そのリモートレリーズ要求に応答して静止画像または動画像の撮像を開始することもできる。   When the power switch 221 is turned on, the electronic device 100 starts an operation in the imaging / playback mode (corresponding to the first operation mode). The imaging / reproduction mode is an operation mode in which a still image or a moving image can be captured and the image data stored in the storage medium 218 can be reproduced. When the electronic device 100 is in the imaging / playback mode, the camera control unit 201 establishes a wireless connection with the external device 104 by controlling the wireless communication unit 214 according to the user settings stored in the memory 219. In the first embodiment, an example will be described in which wireless connection and wireless communication with the external device 104 are performed using BLE. Through communication by BLE, the wireless communication unit 214 can maintain wireless connection with the external device 104 with low power by intermittent wireless communication operation and low power consumption. When the electronic device 100 is in the imaging / playback mode, the camera control unit 201 reads image data requested by the external device 104 from the storage medium 218 and wirelessly transmits the image data to the external device 104 via the wireless communication unit 214. Can be sent. When the electronic device 100 is in the imaging / playback mode, the camera control unit 201 receives the remote release request transmitted from the external device 104 wirelessly via the wireless communication unit 214, and stops in response to the remote release request. Imaging of images or moving images can also be started.

電子機器100が撮像/再生モードである場合、カメラ制御部201は、電子機器100に対するユーザ操作がない状態が所定時間以上継続したか否かを判定する。電子機器100に対するユーザ操作がない状態が所定時以上継続した場合、カメラ制御部201は、節電のために、電子機器100の動作モードを撮像/再生モードからオートパワーオフモード(第2の動作モードに相当)に変更する。オートパワーオフモードは、撮像/再生モードよりも低い消費電力で動作可能な省電力の動作モードである。オードパワーオフモードでは、少なくとも撮像部204と表示部217は電源オフの状態となる。電子機器100の動作モードが撮像/再生モードからオートパワーオフモードに移行した場合であっても、カメラ制御部201は、外部機器104との無線接続を維持するように無線通信部214を制御する。また、カメラ制御部201のカウント部222、第1の計算部224など、電池使用量の計算に必要な機能部が動作状態となる。電子機器100がオートパワーオフモードである場合に電子機器100に対するユーザ操作が検出されると、カメラ制御部201は、電子機器100の動作モードをオートパワーオフモードから撮像/再生モードに変更する。電子機器100の動作モードがオートパワーオフモードから撮像/再生モードに復帰した場合であっても、無線通信部214は、外部機器104との無線接続を維持するように無線通信部214を制御する。これにより、電子機器100の動作モードがオートパワーオフモードと撮像/再生モードとの間で遷移する期間、無線通信部214は、外部機器104との無線接続を維持する。なお、上述の所定時間は、ユーザ操作によって変更することが可能であってもよい。   When the electronic device 100 is in the imaging / playback mode, the camera control unit 201 determines whether or not a state in which there is no user operation on the electronic device 100 has continued for a predetermined time or more. When a state in which there is no user operation on the electronic device 100 continues for a predetermined time or longer, the camera control unit 201 changes the operation mode of the electronic device 100 from the imaging / playback mode to the auto power-off mode (second operation mode) in order to save power. To the equivalent). The auto power-off mode is a power-saving operation mode that can operate with lower power consumption than the imaging / playback mode. In the auto power-off mode, at least the imaging unit 204 and the display unit 217 are in a power-off state. Even when the operation mode of the electronic device 100 shifts from the image capture / playback mode to the auto power off mode, the camera control unit 201 controls the wireless communication unit 214 so as to maintain wireless connection with the external device 104. . In addition, functional units necessary for calculating the battery usage, such as the count unit 222 and the first calculation unit 224 of the camera control unit 201, are in an operating state. When a user operation on the electronic device 100 is detected when the electronic device 100 is in the auto power off mode, the camera control unit 201 changes the operation mode of the electronic device 100 from the auto power off mode to the imaging / playback mode. Even when the operation mode of the electronic device 100 returns from the auto power-off mode to the imaging / playback mode, the wireless communication unit 214 controls the wireless communication unit 214 to maintain wireless connection with the external device 104. . Thereby, the wireless communication unit 214 maintains a wireless connection with the external device 104 during a period in which the operation mode of the electronic device 100 transitions between the auto power off mode and the imaging / playback mode. Note that the predetermined time described above may be changed by a user operation.

次に、図3(a)、図3(b)および図3(c)を参照して、電池211から電子機器100に流れる電流の例を説明する。   Next, an example of current flowing from the battery 211 to the electronic device 100 will be described with reference to FIGS. 3 (a), 3 (b), and 3 (c).

図3(a)は、電子機器100が撮像/再生モード(第1の動作モードに相当)である場合に電池211から電子機器100に流れる電流の例を示す図である。電子機器100が撮像/再生モードである場合、電子機器100はユーザから見ると電源オン状態であり、いつでもユーザ操作により撮像または再生ができる状態である。そのため、カメラ制御部201、電源回路209および他の構成要素は動作状態であり、ある程度の電流が電池211から電子機器100に流れている。電子機器100が撮像/再生モードである場合、電源回路209は、高い電力効率が得られる方法で駆動される。図3(a)に示すように、動画像の撮像中に電池211から電子機器100に流れる電流のピークは、静止画像の撮像中に電池211から電子機器100に流れる電流のピークよりも高く、長い。   FIG. 3A is a diagram illustrating an example of a current that flows from the battery 211 to the electronic device 100 when the electronic device 100 is in the imaging / playback mode (corresponding to the first operation mode). When the electronic device 100 is in the imaging / playback mode, the electronic device 100 is in a power-on state when viewed from the user, and is in a state where imaging or playback can be performed by user operation at any time. Therefore, the camera control unit 201, the power supply circuit 209, and other components are in an operating state, and a certain amount of current flows from the battery 211 to the electronic device 100. When the electronic device 100 is in the imaging / playback mode, the power supply circuit 209 is driven by a method that can obtain high power efficiency. As shown in FIG. 3A, the peak of the current flowing from the battery 211 to the electronic device 100 during the moving image capturing is higher than the peak of the current flowing from the battery 211 to the electronic device 100 during the still image capturing. long.

電子機器100が撮像/再生モードである場合は、継続して比較的大きな電流が電池211から電子機器100に流れる。そのため、電流検出回路230は、電池211から流出する電流の検出が可能である。電流検出回路230は、電池211から流出する電流を検出し、検出した電流の値をクーロンカウンタ232に通知する。クーロンカウンタ232は、電流検出回路230が電池211から流出する電流を検出している期間、電池211から流出する電流を積算する。クーロンカウンタ232で積算された電流は電流積算値(電池使用量)としてクーロンカウンタ232から出力される。クーロンカウンタ232から出力された電流積算値を示す情報は、電池使用量情報の一つとして記憶部233に記憶される。   When the electronic device 100 is in the imaging / playback mode, a relatively large current continuously flows from the battery 211 to the electronic device 100. Therefore, the current detection circuit 230 can detect the current flowing out from the battery 211. The current detection circuit 230 detects the current flowing out of the battery 211 and notifies the coulomb counter 232 of the detected current value. The coulomb counter 232 integrates the current flowing out from the battery 211 while the current detection circuit 230 detects the current flowing out from the battery 211. The current accumulated by the coulomb counter 232 is output from the coulomb counter 232 as an integrated current value (battery usage). Information indicating the integrated current value output from the coulomb counter 232 is stored in the storage unit 233 as one piece of battery usage information.

クーロンカウンタ232は電流を測定する方式のため、電池211から流出する電流が微小だと誤差が多くなってしまうという課題がある。   Since the coulomb counter 232 measures current, there is a problem that an error increases if the current flowing out of the battery 211 is very small.

カメラ制御部201は、以上のようにして計算した電池使用量から電池211の残量を計算し、計算した残量を表示部217に表示する。例えば、電池211が満充電状態であれば電池211の残量は"100%"と表示され、電池容量の半分を使用した状態であれば電池211の残量は"50%"と表示される。電池211が空状態であれば電池211の残量は"0%"と表示され、電池211の充電をユーザに促す警告情報を表示される。このような表示により、ユーザは、あとどのくらい電子機器100が使用できるのかの目安を把握することができる。電池パック101内の記憶部233には、電池211が満充電状態であるときの電流積算量を示す情報と、電池211が空状態であるときの電流積算量を示す情報とが記憶されている。カメラ制御部201は、これらの電流積算量と電池211の電池使用量とを用いて、パーセント形式で電池211の残量を計算する。   The camera control unit 201 calculates the remaining amount of the battery 211 from the battery usage calculated as described above, and displays the calculated remaining amount on the display unit 217. For example, if the battery 211 is in a fully charged state, the remaining amount of the battery 211 is displayed as “100%”, and if the half of the battery capacity is used, the remaining amount of the battery 211 is displayed as “50%”. . If the battery 211 is empty, the remaining amount of the battery 211 is displayed as “0%”, and warning information for prompting the user to charge the battery 211 is displayed. With such a display, the user can grasp how long the electronic device 100 can be used. The storage unit 233 in the battery pack 101 stores information indicating an accumulated current amount when the battery 211 is fully charged and information indicating an accumulated current amount when the battery 211 is empty. . The camera control unit 201 calculates the remaining amount of the battery 211 in a percentage format using the integrated current amount and the battery usage amount of the battery 211.

なお、電池211の残量を示す情報を表示することが目的であるため、電池パック101の記憶部233に記憶する電池使用量は、電流積算値以外であってもよい。   Since the purpose is to display information indicating the remaining amount of the battery 211, the battery usage stored in the storage unit 233 of the battery pack 101 may be other than the current integrated value.

図3(b)および図3(c)は、電子機器100がオートパワーオフモード(第2の動作モードに相当)である場合に電池211から電子機器100に流れる電流の例を示す図である。図3(b)は、電子機器100が外部機器104と無線通信を行っていない場合を示す図である。図3(c)は、電子機器100が外部機器104と無線通信を行っている場合を示す図である。   FIGS. 3B and 3C are diagrams illustrating examples of current flowing from the battery 211 to the electronic device 100 when the electronic device 100 is in the auto power off mode (corresponding to the second operation mode). . FIG. 3B is a diagram illustrating a case where the electronic device 100 is not performing wireless communication with the external device 104. FIG. 3C is a diagram illustrating a case where the electronic device 100 is performing wireless communication with the external device 104.

図3(b)において、ユーザの最後の操作から所定時間が経過すると、電子機器100はオートパワーオフモードへ移行し、電源回路209は、カメラ制御部201や、その他周辺回路への電力供給を停止または抑制させる。また、電源回路209は、DCDCコンバータ駆動からレギュレータ駆動に切り替え、電池211から極力電流が流れない状態に維持する。この状態では、電池211から電子機器100に流れる電流が少ないため、電流検出回路230では、正確に電流検出をすることができない。そのため、第1の計算部224が、あらかじめ計算しておいたオートパワーオフモード時の電流値を継続時間で積算することによって電流積算値を計算することで、正確な電池使用量を計算する。実施形態1では、このようにして計算した電池使用量が、撮像/再生モードのときと同様に、電池パック101の記憶部233に記憶されるようにする。   In FIG. 3B, when a predetermined time has elapsed since the user's last operation, the electronic device 100 shifts to the auto power off mode, and the power supply circuit 209 supplies power to the camera control unit 201 and other peripheral circuits. Stop or suppress. In addition, the power supply circuit 209 switches from DCDC converter driving to regulator driving, and maintains a state where current does not flow from the battery 211 as much as possible. In this state, since the current flowing from the battery 211 to the electronic device 100 is small, the current detection circuit 230 cannot accurately detect the current. Therefore, the first calculation unit 224 calculates the current integrated value by calculating the current value in the auto power off mode, which is calculated in advance, by the duration time, thereby calculating an accurate battery usage amount. In the first embodiment, the battery usage calculated in this way is stored in the storage unit 233 of the battery pack 101 in the same manner as in the imaging / playback mode.

電子機器100が外部機器104と無線通信する設定にされている場合には、無線通信部214に対しては通常の電力が供給される。電池211から電子機器100に流れる電流は、無線通信部214が間欠的に無線通信動作を行うことにより、図3(c)のように推移する。   When the electronic device 100 is set to wirelessly communicate with the external device 104, normal power is supplied to the wireless communication unit 214. The current flowing from the battery 211 to the electronic device 100 changes as shown in FIG. 3C when the wireless communication unit 214 intermittently performs a wireless communication operation.

次に、図4(a)、図4(b)および図4(c)を参照して、電流積算値の計算方法の例を説明する。   Next, an example of a method for calculating the current integrated value will be described with reference to FIGS. 4 (a), 4 (b), and 4 (c).

BLEでは、アドバタイズ、コネクション、スキャンといった複数種類の無線通信動作が定義されている。図4(a)に示すように、各無線通信動作での電流のパターンは異なる。図4(a)では最初の3回の無線通信動作がアドバタイズであり、これにより、外部機器104に対して、BLEによる無線通信接続が可能な旨を送信する。図示のようにアドバタイズは間欠通信であり、その間隔は、電子機器100側で決められた所定の間隔である。外部機器104は接続可能な機器が存在するかどうかを、アドバタイズで出力された信号をスキャンすることによって検出し、接続要求を行う。これによって、電子機器100と外部機器104の双方が接続状態となる、コネクションに移行する。コネクションに関わる無線通信動作も間欠通信であり、その間隔は、接続する際にお互いに確認した間隔となる。   In BLE, a plurality of types of wireless communication operations such as advertisement, connection, and scan are defined. As shown in FIG. 4A, the current pattern in each wireless communication operation is different. In FIG. 4A, the first three wireless communication operations are advertisements, thereby transmitting to the external device 104 that wireless communication connection by BLE is possible. As illustrated, the advertisement is intermittent communication, and the interval is a predetermined interval determined on the electronic device 100 side. The external device 104 detects whether there is a connectable device by scanning a signal output by the advertisement, and makes a connection request. As a result, both the electronic device 100 and the external device 104 enter a connection state and shift to a connection. The wireless communication operation related to the connection is also intermittent communication, and the interval is an interval confirmed with each other when connecting.

図4(b)および図4(c)は、電流積算値の例を示す図である。無線通信動作が行われていないときには、オートパワーオフモード時は微小な電流が一定の大きさで流れ続ける。そのため、電流積算値は、図4(b)のように、あらかじめ用意しておいた電流値を積算することにより得られる。結果、無線通信動作が行われていないときの電池211から電子機器100に流れる電流の電流積算値は時間とともに単調増加する。対して、無線通信動作が行われる場合には、この方法では正確な電流積算値を計算できない。   FIG. 4B and FIG. 4C are diagrams showing examples of current integrated values. When the wireless communication operation is not performed, a small current continues to flow at a constant magnitude in the auto power off mode. Therefore, the current integrated value can be obtained by integrating current values prepared in advance as shown in FIG. As a result, the current integrated value of the current flowing from the battery 211 to the electronic device 100 when the wireless communication operation is not performed monotonously increases with time. On the other hand, when a wireless communication operation is performed, an accurate current integrated value cannot be calculated by this method.

なお、図4(a)に示されるように、アドバタイズとコネクションとでは、1回の間欠通信の通信時間が異なり、実行される間欠通信の回数も異なる。このように、無線通信動作の種類によって消費する電流のパターンが異なるが、間欠的に動作しているときの1回の動作を見ると、無線通信動作の種類毎にほぼ決まった電流パターンとなる。したがって、あらかじめ無線通信動作の種類毎に積算する電流値を用意しておけば、それらを図4(b)の電流積算値に加算していくことで、電池使用量としての正確な電流積算値を計算することができる。図4(c)はこの方法で計算した電流積算値(電池使用量)である。あらかじめアドバタイズとコネクションそれぞれの無線通信動作にかかる電流値を保持しておき、無線通信動作をするたびに、その種類に応じた電流値を積算していくことで、図4(c)のような正確な電流積算値を計算することができる。なお、図4(c)では、短い間隔(1回の無線通信に相当する間隔)で使用電流が積算される例を示しているが、これに限るものではない。例えば、カウント部222が無線通信部214の動作回数をカウントし、そのカウント回数に所定の電流値を積算するようにしても、正確な電流積算値を計算することができる。なお、カウント回数による電流値の積算は、所定の時間間隔、あるいは所定のカウント数ごとに実行されればよい。ただし、上述のアドバタイズとコネクションのように1回の無線通信で使用される電流量が異なる場合、カウント部222はアドバタイズとコネクションを別々にカウントして保持しておく必要がある。そして、第1の計算部224は、それぞれのカウント値にそれぞれの1回あたりの電流使用量を積算し、得られた積算結果を合計することで正確な電流積算値を計算する。   As shown in FIG. 4A, the communication time for one intermittent communication is different between the advertisement and the connection, and the number of intermittent communications to be executed is also different. As described above, the pattern of current consumed varies depending on the type of wireless communication operation. However, when one operation is performed during intermittent operation, the current pattern is almost determined for each type of wireless communication operation. . Therefore, if a current value to be integrated for each type of wireless communication operation is prepared in advance, an accurate current integrated value as a battery usage amount can be obtained by adding them to the current integrated value in FIG. Can be calculated. FIG. 4C shows the current integrated value (battery usage) calculated by this method. As shown in FIG. 4C, current values for the wireless communication operations of the advertisement and the connection are stored in advance, and the current values corresponding to the types are accumulated each time the wireless communication operation is performed. Accurate current integrated value can be calculated. FIG. 4C shows an example in which the use current is integrated at a short interval (interval corresponding to one wireless communication), but the present invention is not limited to this. For example, even if the counting unit 222 counts the number of operations of the wireless communication unit 214 and adds a predetermined current value to the number of counts, an accurate current integrated value can be calculated. The integration of the current value based on the number of counts may be executed at a predetermined time interval or every predetermined count number. However, when the amount of current used in one wireless communication is different as in the above advertisement and connection, the count unit 222 needs to count and hold the advertisement and the connection separately. Then, the first calculation unit 224 calculates an accurate current integrated value by adding the current usage per time to each count value and totaling the obtained integration results.

図4(a)、図4(b)および図4(c)においては、あらかじめ用意しておいた電流値を用いて電流積算値を計算する例を示した。しかしながら、無線通信動作に用いられるパケットのパケットサイズが変わった場合には、あらかじめ用意した電流値を用いるのみでは実際の電流値と計算された電流値との間に若干のずれが生じる可能性がある。図5は、BLEで使用される通信パケットの構造の一例を示す図である。プリアンブル、アドレス、チェックサムのサイズは固定長となっているが、データの部分は、例えば2〜39バイト程度で可変のサイズとなっている。そのため、パケット全体ではサイズ可変となっている。通信スピードが変わらない場合には、送信するパケットサイズが変化すると、送信時間が伸びるため、1回の送信にかかる電池使用量は変化する。したがって、あらかじめパケットサイズと電流値との対応を用意しておき、第1の計算部224がパケットサイズに応じた電流値を用いて電流積算値を計算することで、より正確に電池使用量を計算するようにしてもよい。   In FIG. 4A, FIG. 4B, and FIG. 4C, an example is shown in which the integrated current value is calculated using a current value prepared in advance. However, when the packet size of the packet used for the wireless communication operation changes, there is a possibility that a slight deviation may occur between the actual current value and the calculated current value only by using the current value prepared in advance. is there. FIG. 5 is a diagram illustrating an example of a structure of a communication packet used in BLE. The size of the preamble, address, and checksum is a fixed length, but the data portion has a variable size of about 2 to 39 bytes, for example. Therefore, the size of the entire packet is variable. When the communication speed does not change, if the packet size to be transmitted changes, the transmission time increases, so the battery usage amount for one transmission changes. Therefore, the correspondence between the packet size and the current value is prepared in advance, and the first calculation unit 224 calculates the current integrated value using the current value corresponding to the packet size, so that the battery usage can be more accurately determined. You may make it calculate.

以上述べたように、撮像/再生モードであっても、オートパワーオフモードであっても、正確に電池使用量を計算することができる。しかしながら、一般にカメラ制御部201で計算された電池使用量を電池パック101の記憶部に記憶させるようなことは行われていない。特に、オートパワーオフモードのときには、カメラ制御部201への電力供給は停止状態または抑制状態に移行しており、一般にはカメラ制御部201は電池パック101との通信を行っていない。したがって、上記のようにカメラ制御部201が正確に電流積算値を計算しても、その計算結果が記憶部233には記憶されず、ユーザが電池パック101を取り外してしまった場合には、正確な電池使用量を維持できなくなる。したがって、電子機器100から取り外された電池パック101を再び電子機器100に接続したとしても、電池使用量が不正確になる可能性がある。そして、このように電池使用量が不正確である状態は、電池211の残量を使い切るか、電池211が満充電状態になるまで充電されるまで継続してしまう。このため、正確な電池使用量を適切なタイミングで記憶部233に記憶させることが課題であった。   As described above, the battery usage amount can be accurately calculated regardless of whether it is in the imaging / playback mode or the auto power off mode. However, generally, the battery usage calculated by the camera control unit 201 is not stored in the storage unit of the battery pack 101. In particular, in the auto power off mode, the power supply to the camera control unit 201 is shifted to a stopped state or a suppressed state, and the camera control unit 201 generally does not communicate with the battery pack 101. Therefore, even if the camera control unit 201 accurately calculates the integrated current value as described above, the calculation result is not stored in the storage unit 233, and if the user removes the battery pack 101, the calculation is accurate. Can not maintain the correct battery usage. Therefore, even if the battery pack 101 removed from the electronic device 100 is connected to the electronic device 100 again, the battery usage may be inaccurate. The state where the battery usage is inaccurate as described above continues until the remaining amount of the battery 211 is used up or until the battery 211 is fully charged. For this reason, it was a problem to store the accurate battery usage amount in the storage unit 233 at an appropriate timing.

以下、図6を参照して、電子機器100の動作例を説明する。電子機器100では、第2の動作モード(例えばオートパワーオフモード)から第1の動作モード(例えば撮像/再生モード)に復帰するときに、記憶部233に記憶されている電池使用量が更新される。図6は、実施形態1における電子機器100の動作例を説明するためのフローチャートである。ユーザが電源スイッチ221をオンにすると(ステップS101でYES)、カメラ制御部201は、第1の動作モード(例えば撮像/再生モード)による動作を開始する(ステップS102)。ユーザ操作により、外部機器104と接続する設定となっている場合、無線通信部214およびアンテナ215を介して、外部機器104と無線通信により接続する(ステップS103)。以降、ユーザ操作により切断されたり、電波状況が悪化したり、電池211の残量がなくなったりしない限り、外部機器104との無線通信接続が維持される。また、実施形態1では、無線通信としてBLEが用いられる。   Hereinafter, an operation example of the electronic device 100 will be described with reference to FIG. In the electronic device 100, when returning from the second operation mode (for example, auto power-off mode) to the first operation mode (for example, imaging / playback mode), the battery usage amount stored in the storage unit 233 is updated. The FIG. 6 is a flowchart for explaining an operation example of the electronic device 100 according to the first embodiment. When the user turns on the power switch 221 (YES in step S101), the camera control unit 201 starts an operation in the first operation mode (for example, the imaging / reproduction mode) (step S102). When it is set to connect to the external device 104 by a user operation, the external device 104 is connected by wireless communication via the wireless communication unit 214 and the antenna 215 (step S103). Thereafter, the wireless communication connection with the external device 104 is maintained unless the user is disconnected, the radio wave condition is deteriorated, or the remaining battery 211 is exhausted. In the first embodiment, BLE is used for wireless communication.

クーロンカウンタ232は、電流検出回路230で検出された電流を定期的に積算し、積算結果である電流積算値を出力する。クーロンカウンタ232から出力された電流積算値は、最新の電池使用量として記憶部233に記憶される。撮像/再生モードにおいて、カメラ制御部201は、記憶部233に記憶されている電池使用量を定期的に電池パック101から取得する。そして、カメラ制御部201は、電池パック101から受信した電池使用量に基づいて電池211の残量を計算し、計算された残量を示す情報を表示部217に表示する(ステップS104)。ユーザは、この情報を見ることで、電池211にあと何パーセントの残量が残っているか、残りの使用可能時間、残りの撮像可能枚数を推定することができる。さらにユーザは、電池211を他の電池に交換するタイミングを把握することができる。   The coulomb counter 232 periodically integrates the current detected by the current detection circuit 230 and outputs a current integrated value that is an integration result. The integrated current value output from the coulomb counter 232 is stored in the storage unit 233 as the latest battery usage. In the imaging / playback mode, the camera control unit 201 periodically acquires the battery usage amount stored in the storage unit 233 from the battery pack 101. Then, the camera control unit 201 calculates the remaining amount of the battery 211 based on the battery usage received from the battery pack 101, and displays information indicating the calculated remaining amount on the display unit 217 (step S104). By viewing this information, the user can estimate what percentage of the battery 211 is remaining, the remaining usable time, and the remaining number of images that can be captured. Furthermore, the user can grasp the timing of replacing the battery 211 with another battery.

カメラ制御部201は、所定時間にわたりユーザ操作がなかったことを検出した場合には(ステップS105でYES)、電子機器100を第2の動作モードであるオートパワーオフモードに移行させる(ステップS106)。一方、所定時間内にユーザ操作があれば(ステップS105でNO)、カメラ制御部201はそのユーザ操作が電源スイッチ221をオフにする操作であるかを判定する(ステップS107)。ユーザ操作が電源スイッチ221をオフにする操作であった場合(ステップS107でYES)、カメラ制御部201は、外部機器104との無線通信を切断し、電子機器100を電源オフ状態にする(ステップS108)。   When the camera control unit 201 detects that there is no user operation for a predetermined time (YES in step S105), the camera control unit 201 shifts the electronic device 100 to the auto power-off mode that is the second operation mode (step S106). . On the other hand, if there is a user operation within a predetermined time (NO in step S105), the camera control unit 201 determines whether the user operation is an operation for turning off the power switch 221 (step S107). If the user operation is an operation to turn off the power switch 221 (YES in Step S107), the camera control unit 201 disconnects the wireless communication with the external device 104 and puts the electronic device 100 in a power-off state (Step S107). S108).

ステップS106でオートパワーオフモードへ移行すると、カメラ制御部201は、まず通信部226を用いて、電池パック101の記憶部233に記憶されている電池使用量を読み込み、メモリ220に記憶する(ステップS109)。オートパワーオフモードの間、第1の計算部224は、この電池使用量の値を基準として、電池使用量の計算を開始する。上述したように、オートパワーオフモードにおいては、クーロンカウンタ232では正確に電池使用量を計算できない。実施形態1では、カメラ制御部201と電池制御部212とでお互いに通信することにより、クーロンカウンタ232の動作を停止する。なお、クーロンカウンタ232の動作の停止は必須ではないが、クーロンカウンタ232の動作を停止させることで電池211の電力消費をより低減させることができる。   When shifting to the auto power-off mode in step S106, the camera control unit 201 first reads the battery usage amount stored in the storage unit 233 of the battery pack 101 using the communication unit 226, and stores it in the memory 220 (step 220). S109). During the auto power off mode, the first calculation unit 224 starts calculating the battery usage based on the value of the battery usage. As described above, in the auto power off mode, the coulomb counter 232 cannot accurately calculate the battery usage. In the first embodiment, the camera controller 201 and the battery controller 212 communicate with each other to stop the operation of the coulomb counter 232. Although the operation of the coulomb counter 232 is not necessarily stopped, the power consumption of the battery 211 can be further reduced by stopping the operation of the coulomb counter 232.

次に、カメラ制御部201のカウント部222は、無線通信部214が行った無線通信動作の回数(動作回数)をカウントする(ステップS110)。上述したように、カウント部222は、アドバタイズの無線通信(間欠通信)の動作回数とコネクションの無線通信(間欠通信)の動作回数を別々にカウントし記憶する。第1の計算部224は、オフセット電流値とオートパワーオフモードの継続時間との乗算結果と、1回の無線通信動作にかかる電流値とカウント部222でカウントした動作回数との乗算結果とを加算する。ここで、第1の計算部224は、アドバタイズの無線通信の動作回数とアドバタイズの1回の無線通信動作にかかる電流値を積算し、コネクションの無線通信の動作回数とコネクションの1回の無線通信動作にかかる電流値を積算する。そして、それらの積算結果の合計を上記の乗算結果として用いる。オフセット電流値と、各種無線通信(例えばアドバタイズとコネクション)の1回の無線通信動作にかかる電流値とは、あらかじめメモリ219に用意されている。第1の計算部224は、この計算により得られた電流積算値(電池使用量)を、ステップS109で取得した電池使用量に累積し、メモリ220に記憶されている電池使用量を更新する(ステップS111)。なお、ここでは、第1の計算部224は無線通信部214の動作回数をカウントすることにより電池使用量を計算したがこれに限るものではない。例えば、前述の無線通信のパケットサイズを用いて電流積算値を計算するようにしてもよい。また、S111(電池使用量の算出)の実行のタイミングは、所定の時間間隔ごとでもよいし、S110で1回の無線通信がカウントされるごとでもよいし、S110でカウント部222によるカウント値が所定のカウント数に達するごとでもよい。   Next, the count unit 222 of the camera control unit 201 counts the number of times of wireless communication operations (number of operations) performed by the wireless communication unit 214 (step S110). As described above, the count unit 222 separately counts and stores the number of operations of advertisement wireless communication (intermittent communication) and the number of operations of connection wireless communication (intermittent communication). The first calculation unit 224 calculates the multiplication result of the offset current value and the duration of the auto power off mode, the multiplication result of the current value for one wireless communication operation and the number of operations counted by the counting unit 222. to add. Here, the first calculation unit 224 integrates the number of times of advertising wireless communication operation and the current value required for one advertising wireless communication operation, and the number of times of wireless communication operation of the connection and one time of wireless communication of the connection. Accumulate current values for operation. Then, the sum of the integration results is used as the multiplication result. The offset current value and the current value for one wireless communication operation of various wireless communications (for example, advertisement and connection) are prepared in the memory 219 in advance. The first calculation unit 224 accumulates the current integrated value (battery usage amount) obtained by this calculation in the battery usage amount acquired in step S109, and updates the battery usage amount stored in the memory 220 ( Step S111). Here, the first calculation unit 224 calculates the battery usage amount by counting the number of operations of the wireless communication unit 214, but is not limited thereto. For example, the current integrated value may be calculated using the packet size of the wireless communication described above. In addition, the execution timing of S111 (calculation of battery usage) may be every predetermined time interval, every time one wireless communication is counted in S110, or the count value by the counting unit 222 in S110. It may be every time the predetermined count is reached.

電子機器100がオートパワーオフモードから撮像/再生モードに復帰するには、ユーザがレリーズスイッチ216等を介して電子機器100を操作する方法と、ユーザが外部機器104を介して電子機器100を操作する方法がある。ユーザがレリーズスイッチ216等または外部機器104を介して電子機器100を操作したか否かは、カメラ制御部201によって検出される。オートパワーオフモードにおいても外部機器104との無線通信接続が維持されているため、電子機器100の電池の消費量を極力抑えた状態で、ユーザは外部機器104を介して電子機器100をいつでも操作できるため、快適な操作性が実現される。   In order for the electronic device 100 to return from the auto power off mode to the imaging / playback mode, the user operates the electronic device 100 via the release switch 216 or the like, and the user operates the electronic device 100 via the external device 104. There is a way to do it. Whether the user operates the electronic device 100 via the release switch 216 or the like or the external device 104 is detected by the camera control unit 201. Since the wireless communication connection with the external device 104 is maintained even in the auto power off mode, the user can operate the electronic device 100 via the external device 104 at any time with the battery consumption of the electronic device 100 minimized. Therefore, comfortable operability is realized.

ユーザがレリーズスイッチ216等または外部機器104を介して電子機器100を操作するまでの間(ステップS112でNOの間)は、上述した第1の計算部224で電池使用量の計算が行われる(ステップS110、S111)。ユーザがレリーズスイッチ216等または外部機器104を介して電子機器100を操作したことを検出すると(ステップS112でYES)、カメラ制御部201は、電子機器100の動作モードをオートパワーオフモードから撮像/再生モードに移行させる(ステップS113)。   Until the user operates the electronic device 100 via the release switch 216 or the like or the external device 104 (NO in step S112), the above-described first calculation unit 224 calculates the battery usage ( Steps S110 and S111). When it is detected that the user has operated electronic device 100 via release switch 216 or the like or external device 104 (YES in step S112), camera control unit 201 changes the operation mode of electronic device 100 from the auto power off mode. The playback mode is entered (step S113).

オートパワーオフモードから撮像/再生モードへの移行に応じて、カメラ制御部201は、オートパワーオフモード中に第1の計算部224が計算した電池使用量の情報をメモリ、通信部226を介して電池パック101に送信する(ステップS114)。電池パック101は、通信部231を介して受信されたカメラ制御部201からの電池使用量を記憶部233に記憶する(ステップS115)。また、オートパワーオフモードへの移行に応じてクーロンカウンタ232を停止させた場合、カメラ制御部201はクーロンカウンタ232の動作の再開を指示する。   In response to the transition from the auto power off mode to the imaging / playback mode, the camera control unit 201 uses the memory and the communication unit 226 to store information on the battery usage calculated by the first calculation unit 224 during the auto power off mode. To the battery pack 101 (step S114). The battery pack 101 stores the battery usage amount from the camera control unit 201 received via the communication unit 231 in the storage unit 233 (step S115). Further, when the coulomb counter 232 is stopped in accordance with the transition to the auto power off mode, the camera control unit 201 instructs the operation of the coulomb counter 232 to be resumed.

オートパワーオフモードから撮像/再生モードへの移行後、クーロンカウンタ232は、電池211から電子機器100に流れる電流を定期的に積算していくことによって、電池使用量を計算する。このとき、ステップS115において、オートパワーオフモード中に第1の計算部224で計算された電池使用量が記憶部233に記憶されている。クーロンカウンタ232はこの値を基準に電池使用量を計算していくため、オートパワーオフモードから撮像/再生モードに移行した後も、継続して電池使用量を計算することができる。このため、電池211の正確な残量を示す情報を表示することができる。また、このタイミングで電池パック101が電子機器100から取り外されて再び電子機器100に接続されたとしても、電池パック101内の記憶部233に正確な電池使用量が記憶されているため、電池211の正確な残量をユーザに通知することができる。   After the transition from the auto power-off mode to the imaging / playback mode, the coulomb counter 232 calculates the amount of battery usage by periodically integrating the current flowing from the battery 211 to the electronic device 100. At this time, in step S <b> 115, the battery usage calculated by the first calculation unit 224 during the auto power off mode is stored in the storage unit 233. Since the coulomb counter 232 calculates the battery usage based on this value, the battery usage can be continuously calculated even after shifting from the auto power off mode to the imaging / playback mode. For this reason, the information which shows the exact remaining amount of the battery 211 can be displayed. Even when the battery pack 101 is removed from the electronic device 100 and reconnected to the electronic device 100 at this timing, the accurate battery usage is stored in the storage unit 233 in the battery pack 101, so the battery 211 It is possible to notify the user of the exact remaining amount.

[実施形態2]
実施形態1では、オートパワーオフモード(第2の動作モード)から撮像/再生モード(第1の動作モード)に移行した際に、第1の計算部224による電池使用量の計算結果を電池パック101の記憶部233に記憶した。この場合、オートパワーオフモードの間に電池パック101が電子機器100から取り外されると、それまでにカメラ制御部201の第1の計算部224が計算した電池使用量が電池パック101の記憶部233に記憶されず、電池使用量が不正確になってしまう。実施形態2では、このような課題を解決することができる例を説明する。
[Embodiment 2]
In the first embodiment, when the auto power-off mode (second operation mode) is shifted to the imaging / playback mode (first operation mode), the battery usage amount calculation result by the first calculation unit 224 is stored in the battery pack. The data is stored in the storage unit 233 of 101. In this case, when the battery pack 101 is removed from the electronic device 100 during the auto power off mode, the battery usage calculated by the first calculation unit 224 of the camera control unit 201 until then is the storage unit 233 of the battery pack 101. Battery usage is inaccurate. In the second embodiment, an example in which such a problem can be solved will be described.

図7は、実施形態2における電子機器100の動作例を説明するためのフローチャートである。図7において、実施形態1で説明した処理と同様の処理については、図6と同一のステップ番号を付す。以下では、実施形態1と異なる部分を説明し、実施形態1と同様の部分についてはそれらの説明を省略する。   FIG. 7 is a flowchart for explaining an operation example of the electronic device 100 according to the second embodiment. In FIG. 7, processes similar to those described in the first embodiment are denoted by the same step numbers as in FIG. 6. Below, a different part from Embodiment 1 is demonstrated and those description is abbreviate | omitted about the part similar to Embodiment 1. FIG.

カメラ制御部201は、オートパワーオフモードへの移行(ステップS106)に応じて電池パック101の記憶部233から電池使用量情報を読み込み、メモリ220に記憶する(S109)。また、実施形態2では、オートパワーオフモードにおいても、電池パック101での電池使用量の計算を継続させる。そのため、カメラ制御部201は、電池パック101の電池制御部212に対してオートパワーオフモードへの移行を通知することにより、電池使用量の積算の継続を指示する(ステップS210)。   The camera control unit 201 reads the battery usage amount information from the storage unit 233 of the battery pack 101 in response to the transition to the auto power off mode (step S106), and stores it in the memory 220 (S109). In the second embodiment, calculation of the battery usage in the battery pack 101 is continued even in the auto power off mode. Therefore, the camera control unit 201 notifies the battery control unit 212 of the battery pack 101 of the transition to the auto power-off mode, thereby instructing the continuation of the battery usage amount (step S210).

実施形態1で説明したように、オートパワーオフモードにおいては、撮像/再生モードと異なり、電池211へ流れる電流が微小なため、クーロンカウンタ232による電流積算によって得られる電池使用量は不正確になる場合がある。また、無線通信部214が無線通信動作をするときにはある程度大きな電流が流れるが、電流が流れるのはごく短い期間であるため、この場合もクーロンカウンタによる電流積算は不正確となる恐れがある。そこで、実施形態2では、オートパワーオフモードにおいて、電池制御部212はクーロンカウンタ232によって直接電流を検出して積算する方法を用いない。電池制御部212は、オートパワーオフモードにおいては、あらかじめ用意したオートパワーオフモード時の時間当たりの電流値(以下、オフセット電流値)を積算することによって、電池パック101内において電池使用量を計算する。このように電池パック101が計算した電池使用量は、定期的に記憶部233に記憶される。   As described in the first embodiment, in the auto power-off mode, unlike the imaging / reproduction mode, the current flowing to the battery 211 is very small, so the battery usage obtained by the current integration by the coulomb counter 232 becomes inaccurate. There is a case. Further, when the wireless communication unit 214 performs a wireless communication operation, a certain amount of current flows. However, since the current flows for a very short period, current accumulation by the coulomb counter may be inaccurate. Therefore, in the second embodiment, in the auto power off mode, the battery control unit 212 does not use a method of directly detecting and integrating current using the coulomb counter 232. In the auto power off mode, the battery control unit 212 calculates a battery usage amount in the battery pack 101 by accumulating current values per hour (hereinafter referred to as offset current values) in the auto power off mode. To do. The battery usage calculated by the battery pack 101 is periodically stored in the storage unit 233.

オートパワーオフモードにおいて、第1の計算部224は、無線通信部214の動作回数を示すカウント値と、あらかじめ計算しておいたオートパワーオフモード時のオフセット電流値とを用いて、実施形態1と同様に電池使用量を計算する(ステップS110、S111)。また、この計算と並行して、予測部223は、電池パック101での電池使用量の計算と同様に、オフセット電流値を積算することによって電池使用量を計算する(ステップS211)。これは、電池パック101内で計算される電池使用量を予測するものである。さらに、カメラ制御部201では、第2の計算部225が、異なる方法で計算した電池使用量の値、つまり、ステップS111で計算された電池使用量と、ステップS211で計算された電池使用量との差分を計算する。   In the auto power off mode, the first calculation unit 224 uses the count value indicating the number of operations of the wireless communication unit 214 and the offset current value in the auto power off mode that has been calculated in advance. Similarly, the battery usage is calculated (steps S110 and S111). In parallel with this calculation, the prediction unit 223 calculates the battery usage amount by integrating the offset current value, similarly to the calculation of the battery usage amount in the battery pack 101 (step S211). This is to predict the battery usage calculated in the battery pack 101. Furthermore, in the camera control unit 201, the second calculation unit 225 uses the battery usage value calculated by a different method, that is, the battery usage amount calculated in step S111 and the battery usage amount calculated in step S211. Calculate the difference between

次に、図8(a)、図8(b)および図8(c)を参照して、第2の計算部225によって計算される電池使用量の差分の例を説明する。   Next, an example of the difference in battery usage calculated by the second calculator 225 will be described with reference to FIGS. 8A, 8B, and 8C.

図8(a)は、ステップS111で計算される電池使用量を表しており、無線通信部214の無線通信動作により消費される電流量が反映されている。なお、図8では電池使用量を電流積算値で表している。無線通信動作は間欠的に行われるため、電流積算値は階段状に増えていく形状を示している。図8(b)は、ステップS211で計算される、オフセット電流値を用いた電流積算値である。オフセット電流値を時間で積算していくため、電流積算値は1次関数の形態となる。電池パック101でも同様の積算が行われているため、図8(b)に示す電流積算値は、電池パック101内の記憶部233に記憶されている電池使用量とみなすことができる。   FIG. 8A shows the battery usage calculated in step S <b> 111 and reflects the amount of current consumed by the wireless communication operation of the wireless communication unit 214. In FIG. 8, the battery usage is represented by an integrated current value. Since the wireless communication operation is performed intermittently, the integrated current value shows a shape that increases stepwise. FIG. 8B shows the current integrated value using the offset current value calculated in step S211. Since the offset current value is integrated over time, the current integrated value takes the form of a linear function. Since the same integration is performed in the battery pack 101, the current integration value shown in FIG. 8B can be regarded as the battery usage amount stored in the storage unit 233 in the battery pack 101.

図8(c)は、図8(a)に示す電流積算値と図8(b)に示す電流積算値との差分を示す図である。図8(c)に示す差分は、第2の計算部225によって計算される。この差分が大きくなればなるほど、電池パック101の記憶部233に記憶されている電池使用量は実際とはかけ離れていくことになる。   FIG.8 (c) is a figure which shows the difference of the electric current integrated value shown to Fig.8 (a), and the electric current integrated value shown in FIG.8 (b). The difference shown in FIG. 8C is calculated by the second calculator 225. The larger the difference, the farther the battery usage stored in the storage unit 233 of the battery pack 101 is from the actual amount.

カメラ制御部201は、第2の計算部225により計算された差分の値が、所定の閾値を超えたかどうかを判定する(ステップS213)。差分の値が所定の閾値を超えたと判定された場合(ステップS213でYES)、カメラ制御部201は通信部226を用いて電池パック101との通信を行い、ステップS111で計算した電池使用量を電池パック101へ送信する(ステップS214)。   The camera control unit 201 determines whether or not the difference value calculated by the second calculation unit 225 exceeds a predetermined threshold (step S213). If it is determined that the difference value exceeds the predetermined threshold (YES in step S213), the camera control unit 201 communicates with the battery pack 101 using the communication unit 226, and the battery usage calculated in step S111 is obtained. It transmits to the battery pack 101 (step S214).

電池パック101では、カメラ制御部201から送信された電池使用量を記憶部233に記憶する(ステップS215)。このとき、記憶部233には、それまでに電池パック101で計算した電池使用量が記憶されている状態であるが、電池制御部212はカメラ制御部201から受信した電池使用量でこれを上書きする。こうして、記憶部233に記憶されている、不正確になった電池使用量が、カメラ制御部201から受信した正確な電池使用量で上書きされる。すなわち、記憶部233に記憶される電池使用量と正確な電池使用量との差分は常に所定の閾値以下に保たれたものとなる。   In the battery pack 101, the battery usage amount transmitted from the camera control unit 201 is stored in the storage unit 233 (step S215). At this time, the storage unit 233 is in a state where the battery usage calculated by the battery pack 101 is stored so far, but the battery control unit 212 overwrites this with the battery usage received from the camera control unit 201. To do. Thus, the inaccurate battery usage stored in the storage unit 233 is overwritten with the accurate battery usage received from the camera control unit 201. That is, the difference between the battery usage amount stored in the storage unit 233 and the accurate battery usage amount is always kept below a predetermined threshold value.

ステップS112〜ステップS115の処理は、電子機器100のスイッチ操作または外部機器104の操作に応じて、オートパワーオフモードから撮像/再生モードに復帰する処理であり、実施形態1で説明したとおりである。なお、実施形態1では撮像/再生モードへの復帰時に電池パック101の記憶部233の電池使用量を更新することが必須であるが、実施形態2ではこれを省略することも可能である。上述したように、記憶部233に記憶される電池使用量と正確な電池使用量との差分は常に所定の閾値以下に保たれたものとなるからである。   The processing from step S112 to step S115 is processing for returning from the auto power-off mode to the imaging / playback mode in accordance with the switch operation of the electronic device 100 or the operation of the external device 104, and is as described in the first embodiment. . In the first embodiment, it is essential to update the battery usage amount of the storage unit 233 of the battery pack 101 when returning to the imaging / playback mode. However, in the second embodiment, this may be omitted. As described above, the difference between the battery usage amount stored in the storage unit 233 and the accurate battery usage amount is always kept below a predetermined threshold value.

以上説明したように、実施形態2によれば、オートパワーオフモードの間は電池パック101においてオフセット電流値を積算することにより電池使用量が計算される。そのため、オートパワーオフモードにおける電池使用量の計算精度がクーロンカウンタ232を用いた場合よりも向上する。また、記憶部233に記憶される電池使用量は、適切なタイミング(例えば、電池パック101で計算された電池使用量の誤差が所定の閾値を超えると予測されるタイミング)で、カメラ制御部201で計算された正確な電池使用量で上書きされる。このため、正確な電池使用量が記憶部233に記憶されることとなる。その結果、オートパワーオフモードの間に電池パック101が電子機器100から取り外されて再び電子機器100に接続されたとしても、電池211の正確な残量がユーザに通知される。   As described above, according to the second embodiment, the battery usage amount is calculated by integrating the offset current value in the battery pack 101 during the auto power-off mode. Therefore, the calculation accuracy of the battery usage amount in the auto power off mode is improved as compared with the case where the coulomb counter 232 is used. In addition, the battery usage stored in the storage unit 233 is an appropriate timing (for example, a timing at which an error in the battery usage calculated by the battery pack 101 is predicted to exceed a predetermined threshold), and the camera control unit 201. Overwritten with the exact battery usage calculated in. For this reason, an accurate battery usage amount is stored in the storage unit 233. As a result, even when the battery pack 101 is removed from the electronic device 100 and connected to the electronic device 100 again during the auto power off mode, the user is notified of the accurate remaining amount of the battery 211.

なお、実施形態2では、予測部223が電池パック101内で計算される電池使用量を予測したがこれに限るものではない。例えば、第2の計算部225が記憶部233に記憶されている電池使用量を定期的に読みに行って、差分を計算するようにしてもよい。その場合、予測部223は省略可能である。また、この場合、電池パック101では、オートパワーオフモードにおいてもクーロンカウンタ232による電池使用量の計算が行われてもよい。予測部223による電池使用量の計算方法と電池制御部212による電池使用量の計算方法とを整合させる必要がなくなるからである。   In the second embodiment, the prediction unit 223 predicts the battery usage calculated in the battery pack 101, but the present invention is not limited to this. For example, the second calculation unit 225 may periodically read the battery usage amount stored in the storage unit 233 and calculate the difference. In that case, the prediction unit 223 can be omitted. In this case, in the battery pack 101, the battery usage amount may be calculated by the coulomb counter 232 even in the auto power off mode. This is because it is not necessary to match the battery usage calculation method by the prediction unit 223 and the battery usage calculation method by the battery control unit 212.

また、実施形態2では、電池パック101で計算される電池使用量(またはその予測値)とカメラ制御部201が計算した電池使用量との差分値に基づいて記憶部233への電池使用量の上書きを行うタイミングを決定したが、これに限られない。例えば、カウント部222がカウントした無線通信部214の動作回数が所定値を超えた場合に記憶部233への電池使用量の上書きを行うようにしてもよい。また、この場合においても、電池パック101では、オートパワーオフモードにおいてもクーロンカウンタ232による電池使用量の計算が行われるようにしてもよい。   In the second embodiment, the battery usage amount to the storage unit 233 is calculated based on the difference value between the battery usage amount calculated by the battery pack 101 (or its predicted value) and the battery usage amount calculated by the camera control unit 201. Although the timing for overwriting is determined, it is not limited to this. For example, the battery usage amount may be overwritten in the storage unit 233 when the number of operations of the wireless communication unit 214 counted by the counting unit 222 exceeds a predetermined value. Also in this case, the battery pack 101 may calculate the battery usage amount by the coulomb counter 232 even in the auto power off mode.

[実施形態3]
実施形態1では、オートパワーオフモード(第2の動作モード)から撮像/再生モード(第1の動作モード)への移行を条件として、第1の計算部224が計算した電池使用量を電池パック101の記憶部233に記憶させる例を説明した。実施形態2では、オートパワーオフモードの間に、電池パック101で計算される電池使用量の誤差の予測値が所定の閾値を超えたことを条件として、第1の計算部224が計算した電池使用量を電池パック101の記憶部233に記憶させる例を説明した。実施形態2によれば、オートパワーオフモード中に電池パック101が電子機器100から取り外されたとしても、正確な電池使用量が電池パック101に記憶されている。実施形態3では、電池蓋207が開状態になったことの検出を条件として、第1の計算部224が計算した電池使用量を電池パック101の記憶部233に記憶させる例を説明する。実施形態3によっても、オートパワーオフモード中に電池パック101が抜かれた場合に正確な電池使用量が電池パック101の記憶部233に記憶された状態とすることができる。以下、図9を参照して、電池ボックス103の電池蓋207を開けた場合について説明する。
[Embodiment 3]
In the first embodiment, the battery usage calculated by the first calculation unit 224 is determined on the condition that the auto power-off mode (second operation mode) is switched to the imaging / playback mode (first operation mode). The example of storing in the storage unit 233 of 101 has been described. In the second embodiment, the battery calculated by the first calculation unit 224 is provided on the condition that the predicted value of the error in battery usage calculated by the battery pack 101 exceeds a predetermined threshold during the auto power off mode. The example which memorize | stores the usage-amount in the memory | storage part 233 of the battery pack 101 was demonstrated. According to the second embodiment, even when the battery pack 101 is removed from the electronic device 100 during the auto power-off mode, the accurate battery usage is stored in the battery pack 101. In the third embodiment, an example will be described in which the battery usage calculated by the first calculation unit 224 is stored in the storage unit 233 of the battery pack 101 on condition that the battery lid 207 is opened. Also in the third embodiment, when the battery pack 101 is removed during the auto power-off mode, an accurate battery usage amount can be stored in the storage unit 233 of the battery pack 101. Hereinafter, the case where the battery cover 207 of the battery box 103 is opened will be described with reference to FIG.

図9は、実施形態3における電子機器100の動作例を説明するためのフローチャートである。図9において、実施形態1と同様の処理については、図6と同一のステップ番号を付す。以下では、実施形態1および2と異なる部分を説明し、実施形態1および2と同様の部分についてはそれらの説明を省略する。なお、実施形態3では、オートパワーオフモードの継続中(ステップS112でNOの間)に、ステップS301〜S304の動作が実行される例を説明する。   FIG. 9 is a flowchart for explaining an operation example of the electronic device 100 according to the third embodiment. In FIG. 9, the same steps as those in FIG. Below, a different part from Embodiment 1 and 2 is demonstrated, and those description is abbreviate | omitted about the part similar to Embodiment 1 and 2. FIG. In the third embodiment, an example will be described in which the operations of steps S301 to S304 are performed while the auto power off mode is continued (during NO in step S112).

カメラ制御部201は、ユーザが電子機器100に有する電池ボックス103の電池蓋207を開けたかどうかを判定する(ステップS301)。電池ボックス103は電池蓋スイッチ208を有し、電池蓋207が開けられることによって電池蓋スイッチ208が例えば閉状態から開状態に変化する。カメラ制御部201は、電池蓋スイッチ208の状態を検出することで電池蓋207が開状態になったか否かを判定することができる。電池蓋207が開状態でなければ(ステップS301でNO)、ステップS110に戻る。   The camera control unit 201 determines whether the user has opened the battery cover 207 of the battery box 103 included in the electronic device 100 (step S301). The battery box 103 has a battery lid switch 208. When the battery lid 207 is opened, the battery lid switch 208 changes from a closed state to an open state, for example. The camera control unit 201 can determine whether or not the battery lid 207 has been opened by detecting the state of the battery lid switch 208. If battery cover 207 is not open (NO in step S301), the process returns to step S110.

電子機器100は、電池蓋207が開けられ、その後に電池パック101が電子機器100から取り外されてから電池211から電子機器100への電力供給が遮断される構成になっている。このため、ユーザが電池パック101を電子機器100から取り外す際には、電池蓋207が開けられてから電子機器100への電力供給が遮断されるまでにはわずかな時間(例えば、数100ミリ秒程度)がある。そこで、電池蓋207が開状態になったと判定された場合(ステップS301でYES)、カメラ制御部201は、このわずかな時間を利用してステップS302〜S304の処理を行う。   The electronic device 100 is configured such that the power supply from the battery 211 to the electronic device 100 is cut off after the battery lid 207 is opened and then the battery pack 101 is removed from the electronic device 100. For this reason, when the user removes the battery pack 101 from the electronic device 100, a short time (for example, several hundred milliseconds) from when the battery cover 207 is opened until the power supply to the electronic device 100 is interrupted. Degree). Therefore, when it is determined that the battery lid 207 is in the open state (YES in step S301), the camera control unit 201 performs the processes in steps S302 to S304 using this slight time.

電池蓋207の開状態が検出されると、カメラ制御部201は、電池パック101と通信して、ステップS111で第1の計算部224が計算した電池使用量を電池パック101に送信する(ステップS302)。電池パック101では、カメラ制御部201から送信された電池使用量を記憶部233に記憶する(ステップS303)。カメラ制御部201は、外部機器104との間で行われている無線通信による接続を解除、切断する(ステップS304)。   When the open state of the battery cover 207 is detected, the camera control unit 201 communicates with the battery pack 101 and transmits the battery usage calculated by the first calculation unit 224 in step S111 to the battery pack 101 (step S111). S302). In the battery pack 101, the battery usage amount transmitted from the camera control unit 201 is stored in the storage unit 233 (step S303). The camera control unit 201 releases and disconnects the wireless communication connection with the external device 104 (step S304).

以上説明したように、実施形態3によれば、電池パック101内で電池使用量を計算し、電池蓋207が開けられたタイミングで正確な電池使用量を電池パック101に提供する。したがって、オートパワーオフモードの間に電池パック101が電子機器100から取り外されたとしても、ある程度正確な電池使用量を記憶部233に記憶させることができる。その結果、オートパワーオフモードの間に電池パック101が電子機器100から取り外されて再び電子機器100に接続されたとしても、電池211の正確な残量がユーザに通知される。   As described above, according to the third embodiment, the battery usage amount is calculated in the battery pack 101, and the accurate battery usage amount is provided to the battery pack 101 at the timing when the battery cover 207 is opened. Therefore, even if the battery pack 101 is removed from the electronic device 100 during the auto power off mode, the battery usage amount accurate to some extent can be stored in the storage unit 233. As a result, even when the battery pack 101 is removed from the electronic device 100 and connected to the electronic device 100 again during the auto power off mode, the user is notified of the accurate remaining amount of the battery 211.

[実施形態4]
実施形態1〜3で説明した様々な機能、処理または方法は、パーソナルコンピュータ、マイクロコンピュータ、CPU(central processing unit)、プロセッサなどがプログラムを用いて実現することもできる。以下、実施形態4では、パーソナルコンピュータ、マイクロコンピュータ、CPU(central processing unit)、プロセッサなどを「コンピュータX」と呼ぶ。また、実施形態4では、コンピュータXを制御するためのプログラムであって、実施形態1〜3で説明した様々な機能、処理または方法を実現するためのプログラムを「プログラムY」と呼ぶ。
[Embodiment 4]
The various functions, processes, or methods described in the first to third embodiments can be realized by a personal computer, a microcomputer, a CPU (central processing unit), a processor, and the like using a program. Hereinafter, in the fourth embodiment, a personal computer, a microcomputer, a CPU (central processing unit), a processor, and the like are referred to as “computer X”. In the fourth embodiment, a program for controlling the computer X and for realizing the various functions, processes, or methods described in the first to third embodiments is referred to as “program Y”.

実施形態1〜3で説明した様々な機能、処理または方法は、コンピュータXがプログラムYを実行することによって実現される。この場合において、プログラムYは、コンピュータ読み取り可能な記憶媒体を介してコンピュータXに供給される。実施形態4におけるコンピュータ読み取り可能な記憶媒体は、ハードディスク装置、磁気記憶装置、光記憶装置、光磁気記憶装置、メモリカード、揮発性メモリ、不揮発性メモリなどの少なくとも1つを含む。実施形態4におけるコンピュータ読み取り可能な記憶媒体は、non−transitoryな記憶媒体である。   Various functions, processes, or methods described in the first to third embodiments are realized by the computer X executing the program Y. In this case, the program Y is supplied to the computer X via a computer-readable storage medium. The computer-readable storage medium according to the fourth embodiment includes at least one of a hard disk device, a magnetic storage device, an optical storage device, a magneto-optical storage device, a memory card, a volatile memory, and a nonvolatile memory. The computer-readable storage medium in the fourth embodiment is a non-transitory storage medium.

なお、本発明の実施形態は上述の実施形態1、2、3または4に限定されるものではない。発明の要旨を逸脱しない範囲で変更または修正された実施形態1、2、3または4も本発明の実施形態に含まれる。   The embodiment of the present invention is not limited to the above-described Embodiment 1, 2, 3 or 4. Embodiments 1, 2, 3, or 4 that are changed or modified without departing from the gist of the invention are also included in the embodiments of the present invention.

100:電子機器、101:電池パック、104:外部機器 100: Electronic device, 101: Battery pack, 104: External device

Claims (12)

第1の動作モードから前記第1の動作モードよりも省電力な第2の動作モードへの切り替えに応じて、電池パックの記憶手段に記憶されている電池使用量情報を前記電池パックから取得する取得手段と、
前記第2の動作モードにおける電池使用量を計算する計算手段と、
前記計算手段により計算された電池使用量を用いて、前記電池使用量情報を更新する更新手段と、
所定の状態の検出に応じて、前記更新手段により更新された前記電池使用量情報を前記電池パックの前記記憶手段に記憶させる処理を行う処理手段と
を有することを特徴とする電子機器。
The battery usage information stored in the storage means of the battery pack is acquired from the battery pack in response to switching from the first operation mode to the second operation mode that is more power-saving than the first operation mode. Acquisition means;
Calculating means for calculating a battery usage amount in the second operation mode;
Update means for updating the battery usage information using the battery usage calculated by the calculation means;
An electronic apparatus comprising: processing means for performing processing for storing the battery usage information updated by the updating means in the storage means of the battery pack in response to detection of a predetermined state.
前記処理手段は、前記第2の動作モードから前記第1の動作モードへの切り替えに応じて前記更新された電池使用量情報を前記記憶手段に記憶させることを特徴とする請求項1に記載の電子機器。   2. The storage unit according to claim 1, wherein the processing unit stores the updated battery usage information in the storage unit in response to switching from the second operation mode to the first operation mode. Electronics. 前記電池パックは、電池使用量を計算して電池使用量情報として前記記憶手段に記憶する計算機能を有し、
前記処理手段は、前記第2の動作モードの間、前記電池パックの前記計算機能により計算され、前記記憶手段に記憶された電池使用量情報と、前記更新手段により更新された電池使用量情報との差分が閾値を超えた場合に、前記更新された電池使用量情報を前記記憶手段に記憶させることを特徴とする請求項1に記載の電子機器。
The battery pack has a calculation function for calculating battery usage and storing it in the storage means as battery usage information,
The processing means is calculated by the calculation function of the battery pack and stored in the storage means during the second operation mode, and battery usage information updated by the updating means. The electronic device according to claim 1, wherein the updated battery usage information is stored in the storage unit when a difference between the two exceeds a threshold value.
前記第2の動作モードの間に前記電池パックの前記計算機能によって計算される電池使用量情報を予測する予測手段をさらに有し、
前記処理手段は、前記差分として、前記予測手段により予測された電池使用量情報と前記更新された電池使用量情報との差分を使用することを特徴とする請求項3に記載の電子機器。
Predicting means for predicting battery usage information calculated by the calculation function of the battery pack during the second operation mode;
The electronic device according to claim 3, wherein the processing unit uses a difference between the battery usage information predicted by the prediction unit and the updated battery usage information as the difference.
前記処理手段は、前記第2の動作モードの間、閾値を超える回数の無線通信動作が実行されるごとに前記更新された電池使用量情報を前記記憶手段に記憶させることを特徴とする請求項1に記載の電子機器。   The processing means causes the storage means to store the updated battery usage information each time a wireless communication operation is performed a number of times exceeding a threshold during the second operation mode. 1. The electronic device according to 1. 前記処理手段は、前記電池パックを収容する部分に設けられた電池蓋が開けられたことの検出に応じて、前記更新された電池使用量情報を前記記憶手段に記憶させることを特徴とする請求項1から5のいずれか1項に記載の電子機器。   The processing means causes the storage means to store the updated battery usage information in response to detection that a battery cover provided in a portion that houses the battery pack is opened. Item 6. The electronic device according to any one of Items 1 to 5. 前記処理手段は、前記更新された電池使用量情報で前記記憶手段に記憶されている電池使用量情報を上書きさせることを特徴とする請求項1から6のいずれか1項に記載の電子機器。   The electronic device according to claim 1, wherein the processing unit overwrites the battery usage amount information stored in the storage unit with the updated battery usage amount information. 前記計算手段は、前記第2の動作モードにおける時間当たり電流値を用いて前記第2の動作モードの間の電池使用量を計算することを特徴とする請求項1から7のいずれか1項に記載の電子機器。   The said calculation means calculates the battery usage-amount during the said 2nd operation mode using the electric current value per time in the said 2nd operation mode, The any one of Claim 1 to 7 characterized by the above-mentioned. The electronic device described. 前記計算手段は、さらに、1回の無線通信動作に対応する電流値と、無線通信動作の回数を用いて、前記第2の動作モードの間の電池使用量を計算することを特徴とする請求項8に記載の電子機器。   The calculation means further calculates a battery usage amount during the second operation mode using a current value corresponding to one wireless communication operation and the number of wireless communication operations. Item 9. The electronic device according to Item 8. 前記1回の無線通信動作に対応する電流値は、無線通信動作の種類により異なることを特徴とする請求項9に記載の電子機器。   The electronic device according to claim 9, wherein a current value corresponding to the single wireless communication operation varies depending on a type of the wireless communication operation. 電子機器の制御方法であって、
第1の動作モードから前記第1の動作モードよりも省電力な第2の動作モードへの切り替えに応じて、電池パックの記憶手段に記憶されている電池使用量情報を前記電池パックから取得する取得ステップと、
前記第2の動作モードにおける電池使用量を計算する計算ステップと、
前記計算ステップで計算された電池使用量を用いて、前記電池使用量情報を更新する更新ステップと、
所定の状態の検出に応じて、前記更新ステップで更新された前記電池使用量情報を前記電池パックの前記記憶手段に記憶させる処理を行う処理ステップと
を有することを特徴とする制御方法。
An electronic device control method comprising:
The battery usage information stored in the storage means of the battery pack is acquired from the battery pack in response to switching from the first operation mode to the second operation mode that is more power-saving than the first operation mode. An acquisition step;
A calculation step of calculating a battery usage amount in the second operation mode;
An update step of updating the battery usage information using the battery usage calculated in the calculation step;
And a processing step of performing a process of storing the battery usage information updated in the updating step in the storage unit of the battery pack in response to detection of a predetermined state.
コンピュータを、
第1の動作モードから前記第1の動作モードよりも省電力な第2の動作モードへの切り替えに応じて、電池パックの記憶手段に記憶されている電池使用量情報を前記電池パックから取得する取得手段と、
前記第2の動作モードにおける電池使用量を計算する計算手段と、
前記計算手段により計算された電池使用量を用いて、前記電池使用量情報を更新する更新手段と、
所定の状態の検出に応じて、前記更新手段により更新された前記電池使用量情報を前記電池パックの前記記憶手段に記憶させる処理を行う処理手段
として機能させるためのプログラム。
Computer
The battery usage information stored in the storage means of the battery pack is acquired from the battery pack in response to switching from the first operation mode to the second operation mode that is more power-saving than the first operation mode. Acquisition means;
Calculating means for calculating a battery usage amount in the second operation mode;
Update means for updating the battery usage information using the battery usage calculated by the calculation means;
A program for functioning as processing means for performing processing for storing the battery usage information updated by the updating means in the storage means of the battery pack in response to detection of a predetermined state.
JP2017134951A 2017-07-10 2017-07-10 Electronic device, control method and program Pending JP2019017225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017134951A JP2019017225A (en) 2017-07-10 2017-07-10 Electronic device, control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017134951A JP2019017225A (en) 2017-07-10 2017-07-10 Electronic device, control method and program

Publications (1)

Publication Number Publication Date
JP2019017225A true JP2019017225A (en) 2019-01-31

Family

ID=65357050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017134951A Pending JP2019017225A (en) 2017-07-10 2017-07-10 Electronic device, control method and program

Country Status (1)

Country Link
JP (1) JP2019017225A (en)

Similar Documents

Publication Publication Date Title
US7133703B2 (en) Small electronic device having battery level detection unit
JP4900871B2 (en) Mobile device and program thereof
JP4419097B2 (en) Electronic device, display control method, recording medium, and program
US20110292278A1 (en) Electronic equipment, accessory and camera system
JP2013115670A (en) Imaging apparatus, control method thereof, and program
WO2013099079A1 (en) Drive control device, drive control method and drive control program
CN108184069B (en) Operating system, power consumption control method, and operating device
US20140287735A1 (en) Portable terminal, method for managing data in portable terminal, and storage medium storing data management processing program
WO2015194231A1 (en) Battery management system, endoscope system, and battery charging method
EP2017943A2 (en) Battery operated device having power saving mode
CN105446858A (en) Replacement prompt method and apparatus for battery
CN108965606B (en) Method and device for determining ambient temperature
JP2011035966A (en) Electronic equipment system
JP2019017225A (en) Electronic device, control method and program
US8823805B2 (en) Imaging apparatus, control method thereof, and storage medium
JP6764280B2 (en) Electronics, control methods, programs and storage media
JP2007336619A (en) Discharge device
JP2006115561A (en) Portable terminal and power supply
JP2010038775A (en) Electronic device
JP6560482B2 (en) Electronics
JP2014039445A (en) Battery device, imaging apparatus, and charger
CN113075551A (en) Battery-based processing method and device, electronic equipment and storage medium
JP2007329557A (en) Information terminal with display apparatus, display method, and program
JP2019037086A (en) Electronic equipment, control method and program
JP2017092865A (en) Communication device