JP2018005572A - Electronic instrument - Google Patents

Electronic instrument Download PDF

Info

Publication number
JP2018005572A
JP2018005572A JP2016131949A JP2016131949A JP2018005572A JP 2018005572 A JP2018005572 A JP 2018005572A JP 2016131949 A JP2016131949 A JP 2016131949A JP 2016131949 A JP2016131949 A JP 2016131949A JP 2018005572 A JP2018005572 A JP 2018005572A
Authority
JP
Japan
Prior art keywords
time
power supply
circuit
power source
main power
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
JP2016131949A
Other languages
Japanese (ja)
Inventor
哲哉 上藤
Tetsuya Kamifuji
哲哉 上藤
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.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2016131949A priority Critical patent/JP2018005572A/en
Publication of JP2018005572A publication Critical patent/JP2018005572A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Power Sources (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent a function attached with a time limit from being unusable.SOLUTION: An electronic instrument 100 equipped with a function attached with a time limit comprises: a main power source 11; an auxiliary power source 15 to be charged by a power supply from the main power source 11; a voltage monitor unit 18 that measures a voltage value of the auxiliary power source 15; a clock circuit 17 that creates time information, is operative by a power supply from the main power source 11 upon turning on the main power source 11, and is operative by a power supply from the auxiliary power source 15 upon turning off the main power source 11; a storage unit 20 that stores the time information and the voltage value; and a control unit that determines whether the function attached with the time limit is valid by a second time based on time information on a first time, a first voltage value at the first time, and a second voltage value after the first time and measured prior to a start of charging from the main power source 11 to the auxiliary power source 15 when the main power source 11 is switched from ON to OFF.SELECTED DRAWING: Figure 1

Description

本発明は期限付き機能が有効か否かを判定する制御部を備える電子機器に関する。   The present invention relates to an electronic device including a control unit that determines whether or not a function with a time limit is valid.

近年の電子機器は通信機能やネットワーク接続機能を備えることから、セキュリティ技術に関心が高まっている。例えば、業務用無線通信機は不正使用を防止することを目的として期限付き機能(期限付きの暗号鍵)を搭載する。このような機器は、予め期限を設定することにより、これを経過するとその機器は使用することができなくなる。   Since recent electronic devices have a communication function and a network connection function, there is an increasing interest in security technology. For example, a commercial wireless communication device is equipped with a function with a time limit (encryption key with a time limit) for the purpose of preventing unauthorized use. By setting a time limit in advance for such a device, the device cannot be used after the expiration.

しかし、その機器の内部の時計機能が電源電圧低下により動作不能になると、時刻情報を消失してしまう場合がある。その場合はたとえ期限内であってもその機器は使用できなくなる。そのような問題を解決する手段として、不揮発性メモリに時刻情報を記憶させ電源復帰後に自動的に時刻を再設定するという技術が特許文献1で提案されている。   However, if the clock function inside the device becomes inoperable due to a power supply voltage drop, time information may be lost. In that case, the device cannot be used even within the time limit. As means for solving such a problem, Patent Document 1 proposes a technique of storing time information in a non-volatile memory and automatically resetting the time after power is restored.

また期限付き機能を備える電子機器には、主電源がオフになった後も期限管理を行うことができるように時計回路及びバックアップ用の補助電源を備えるものがある。そのような機器では主電源がオフになった後も、補助電源が時計回路の動作を維持させ期限管理を継続する。   Some electronic devices having a time limit function include a clock circuit and a backup auxiliary power source so that time limit management can be performed even after the main power is turned off. In such a device, even after the main power supply is turned off, the auxiliary power supply maintains the operation of the clock circuit and continues the time limit management.

特開2006−52962号公報JP 2006-52962 A

しかし補助電源の容量は放電により低下し、それに伴い出力電圧は徐々に低下する。そして補助電源の出力電圧が時計回路の動作電圧を下回ると、時計回路は動作を停止し時刻情報は消失する。時刻情報が消失すると、たとえ期限内であったとしても期限付き機能は使用不可能になる。   However, the capacity of the auxiliary power supply decreases due to discharge, and the output voltage gradually decreases accordingly. When the output voltage of the auxiliary power source falls below the operating voltage of the timepiece circuit, the timepiece circuit stops operating and time information disappears. When the time information is lost, the function with a time limit becomes unusable even if it is within the time limit.

本発明は、このような課題を解決するためになされたものであり、期限付き機能が使用不能となることを防ぐことを目的とする。   The present invention has been made to solve such a problem, and an object of the present invention is to prevent the time-limited function from being disabled.

本発明に係る期限付き機能を備える電子機器は、主電源と、前記主電源からの電力供給によって充電される補助電源と、前記補助電源の電圧値を測定する電圧監視部と、
時刻情報を生成し、前記主電源のオン時には主電源からの電力供給により動作し、前記主電源のオフ時には前記補助電源からの電力供給により動作する時計回路と、
前記時刻情報と前記電圧値を記憶する記憶部と、
第1の時刻の時刻情報と前記第1の時刻における第1の電圧値と、前記第1の時刻の後であって前記主電源がオフからオンに切り替わったとき、前記主電源から前記補助電源への充電を開始するに先立って測定した第2の電圧値とに基づいた第2の時刻により前記期限付き機能が有効であるか否かを判定する制御部と、
を備える。
An electronic device having a time-limited function according to the present invention includes a main power source, an auxiliary power source charged by power supply from the main power source, a voltage monitoring unit that measures a voltage value of the auxiliary power source,
A timepiece circuit that generates time information and operates by power supply from a main power supply when the main power supply is on, and operates by power supply from the auxiliary power supply when the main power supply is off;
A storage unit for storing the time information and the voltage value;
The time information of the first time, the first voltage value at the first time, and when the main power source is switched from off to on after the first time, the main power source to the auxiliary power source A controller that determines whether or not the time-limited function is valid at a second time based on a second voltage value measured prior to starting charging to
Is provided.

本発明により、期限付き機能が使用不能となることを防ぐことができる。   By this invention, it can prevent that a function with a time limit becomes unusable.

実施の形態1に係るブロック図である。2 is a block diagram according to Embodiment 1. FIG. 実施の形態1に係る補助電源の放電特性図である。3 is a discharge characteristic diagram of an auxiliary power supply according to Embodiment 1. FIG. 実施の形態1に係るフローチャートである。3 is a flowchart according to the first embodiment. 実施の形態1に係るフローチャートである。3 is a flowchart according to the first embodiment. 実施の形態1に係るフローチャートである。3 is a flowchart according to the first embodiment. 実施の形態2及び実施の形態3に係るブロック図である。It is a block diagram concerning Embodiment 2 and Embodiment 3. 実施の形態2に係るフローチャートである。6 is a flowchart according to the second embodiment. 実施の形態2に係るフローチャートである。6 is a flowchart according to the second embodiment. 実施の形態3に係るフローチャートである。10 is a flowchart according to the third embodiment.

実施の形態1
まず、図面を参照して本発明の実施の形態について説明する。図1は実施の形態1に係る電子機器100のブロック図である。電子機器100は主電源11、電源スイッチ12、電源回路13、切替回路14、補助電源15、電源混合回路16、時計回路17、電圧監視部18、制御回路21、及び電子回路部23を備える。制御回路21は制御部19、記憶部20を備え、切替回路14、時計回路17、電圧監視部18、制御部19、記憶部20はそれぞれ通信バス22に接続されている。電子機器100は期限付き暗号鍵を備えており、ユーザーは予め期限を設定することができる。電子機器100は設定された期限を過ぎると所定の機能が制限される。例えば、電子機器100は無線通信機であり、電子回路部23は無線通信手段であるとすると、電子機器100は無線通信手段を通信不能とする。以下、各ブロックの詳細を説明する。
Embodiment 1
First, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an electronic device 100 according to the first embodiment. The electronic device 100 includes a main power supply 11, a power switch 12, a power supply circuit 13, a switching circuit 14, an auxiliary power supply 15, a power supply mixing circuit 16, a clock circuit 17, a voltage monitoring unit 18, a control circuit 21, and an electronic circuit unit 23. The control circuit 21 includes a control unit 19 and a storage unit 20, and the switching circuit 14, the clock circuit 17, the voltage monitoring unit 18, the control unit 19, and the storage unit 20 are connected to the communication bus 22. The electronic device 100 includes a time-limited encryption key, and the user can set a time limit in advance. The electronic device 100 is limited in its predetermined functions after a set time limit. For example, if the electronic device 100 is a wireless communication device and the electronic circuit unit 23 is a wireless communication unit, the electronic device 100 disables the wireless communication unit. Details of each block will be described below.

主電源11は電子機器100を動作させるため電源スイッチ12を閉じて電力を供給する。主電源11は商用電源を電源元とする直流安定化電源又は充電式二次電池である。充電式二次電池の例としてはリチウムイオン電池や自動車用バッテリーを挙げることができる。電源スイッチ12は主電源11から受けた電力を電源回路13に供給するか否かをユーザーが切り替える。電源回路13は電源スイッチ12経由で受けた主電源からの電圧を安定させ、切替回路14、電源混合回路16、制御回路21、電子回路部23へ電力を供給する。   The main power supply 11 supplies power by closing the power switch 12 to operate the electronic device 100. The main power source 11 is a DC stabilized power source or a rechargeable secondary battery that uses a commercial power source as a power source. Examples of rechargeable secondary batteries include lithium ion batteries and automobile batteries. The user switches whether the power switch 12 supplies the power received from the main power supply 11 to the power supply circuit 13 or not. The power supply circuit 13 stabilizes the voltage from the main power received via the power switch 12 and supplies power to the switching circuit 14, the power supply mixing circuit 16, the control circuit 21, and the electronic circuit unit 23.

切替回路14は制御回路21からの指示を受け、電源回路13から供給された電力を補助電源15に供給するか否かを切り替える。切替回路14は電源回路13、補助電源15、通信バス22にそれぞれ接続している。   The switching circuit 14 receives an instruction from the control circuit 21 and switches whether to supply the power supplied from the power supply circuit 13 to the auxiliary power supply 15. The switching circuit 14 is connected to the power supply circuit 13, the auxiliary power supply 15, and the communication bus 22, respectively.

補助電源15は充電式二次電池であり、例えばリチウムイオン電池やニッケル水素電池などである。主電源11が充電式二次電池の場合、補助電源15の電池容量は主電源11よりも小さい。補助電源15は切替回路14から電力の供給を受けている場合は主電源11から電力の供給によって充電される。切替回路14からの電力の供給がストップした場合、補助電源15は電源混合回路16を介して制御回路21及び時計回路17へ電力を供給する。補助電源15は電圧監視部18に接続しており、電圧監視部18により電圧を監視されている。   The auxiliary power supply 15 is a rechargeable secondary battery, such as a lithium ion battery or a nickel metal hydride battery. When the main power supply 11 is a rechargeable secondary battery, the battery capacity of the auxiliary power supply 15 is smaller than that of the main power supply 11. The auxiliary power supply 15 is charged by supplying power from the main power supply 11 when receiving power from the switching circuit 14. When the supply of power from the switching circuit 14 is stopped, the auxiliary power supply 15 supplies power to the control circuit 21 and the clock circuit 17 via the power supply mixing circuit 16. The auxiliary power supply 15 is connected to the voltage monitoring unit 18, and the voltage is monitored by the voltage monitoring unit 18.

電源混合回路16は例えば電圧コンパレータ及びスイッチング回路などによって構成されている。電源回路13から電力の供給を受けている場合、電源混合回路16はこの電力を時計回路17へ供給する。また、電源回路13から電力の供給を受けていない場合、電源混合回路16は補助電源15から受ける電力を時計回路17へ供給する。   The power supply mixing circuit 16 is configured by, for example, a voltage comparator and a switching circuit. When power is supplied from the power supply circuit 13, the power supply mixing circuit 16 supplies this power to the clock circuit 17. When power is not supplied from the power supply circuit 13, the power supply mixing circuit 16 supplies power received from the auxiliary power supply 15 to the timepiece circuit 17.

時計回路17は電源混合回路16から電力の供給を受け、時刻情報を生成する回路である。時計回路17は一般にRTC(Real Time Clock)と呼ばれる。時計回路17はエラー履歴を記録する機能を備えており、電力の供給が断たれた場合に継続的な時刻情報の生成が不能となったことを記録する。例えば、時計回路17はエラー履歴をフラグとして記憶する。エラーフラグは初期値が「0」で、エラーが発生した場合は「1」となる。時計回路17は通信バス22に接続しており、必要に応じて時刻情報及びエラー履歴を制御回路21に出力する。   The clock circuit 17 is a circuit that receives power supplied from the power supply mixing circuit 16 and generates time information. The clock circuit 17 is generally called RTC (Real Time Clock). The clock circuit 17 has a function of recording an error history, and records that it is impossible to generate time information continuously when power supply is cut off. For example, the clock circuit 17 stores the error history as a flag. The initial value of the error flag is “0”, and “1” when an error occurs. The clock circuit 17 is connected to the communication bus 22 and outputs time information and error history to the control circuit 21 as necessary.

電圧監視部18は補助電源15の電圧値を測定する。電圧監視部18はA/Dコンバータ(Analog to Digital コンバータ)を備え、測定した電圧値を通信バス22に出力する。電圧監視部18は補助電源15、通信バス22にそれぞれ接続している。尚、電圧値は補助電源15の電池残容量に相当する。   The voltage monitoring unit 18 measures the voltage value of the auxiliary power supply 15. The voltage monitoring unit 18 includes an A / D converter (Analog to Digital converter), and outputs the measured voltage value to the communication bus 22. The voltage monitoring unit 18 is connected to the auxiliary power supply 15 and the communication bus 22, respectively. The voltage value corresponds to the remaining battery capacity of the auxiliary power supply 15.

制御回路21は制御部19及び記憶部20を備える。制御回路21は電源回路13から電力の供給を受ける。   The control circuit 21 includes a control unit 19 and a storage unit 20. The control circuit 21 is supplied with power from the power supply circuit 13.

制御部19は時計回路17が生成する時刻情報及びエラー履歴を読み取り、さらに電圧監視部18が測定する電圧値を読み取る。そして、制御部19は記憶部20にアクセスし、読み取った時刻情報及び電圧値を書き込み、また書き込んだ情報を読み取る。さらに、制御部19はこれら読み取った情報に応じて期限付き暗号鍵が有効であるか否かを判定する。具体的には、制御部19は図2において示す原理に基づき各データから経過時間を算出し、期限付き暗号鍵が有効であるか否かを判定する。   The control unit 19 reads time information and error history generated by the clock circuit 17, and further reads a voltage value measured by the voltage monitoring unit 18. Then, the control unit 19 accesses the storage unit 20, writes the read time information and voltage value, and reads the written information. Further, the control unit 19 determines whether or not the time-limited encryption key is valid according to the read information. Specifically, the control unit 19 calculates elapsed time from each data based on the principle shown in FIG. 2, and determines whether or not the time-limited encryption key is valid.

記憶部20は時刻情報及び電圧値を記憶し、電力の供給が断たれた後もこれを保持する。記憶部20は不揮発性の記憶装置であり、例えばEEPROM(Electrically Erasable Programmable Read-Only Memory)、フラッシュメモリ、FeRAM(Ferroelectric Random Access Memory)などである。記憶部20は通信バス22に接続している。   The memory | storage part 20 memorize | stores time information and a voltage value, and keeps this, even after supply of electric power is cut off. The storage unit 20 is a nonvolatile storage device such as an EEPROM (Electrically Erasable Programmable Read-Only Memory), a flash memory, or a FeRAM (Ferroelectric Random Access Memory). The storage unit 20 is connected to the communication bus 22.

通信バス22は切替回路14、時計回路17、電圧監視部18、制御回路21をそれぞれ接続する。通信バス22は例えばI2C(Inter-Integrated Circuit)、UART(Universal Asynchronous Receiver Transmitter)などの機内通信プロトコルである。   The communication bus 22 connects the switching circuit 14, the clock circuit 17, the voltage monitoring unit 18, and the control circuit 21. The communication bus 22 is an in-machine communication protocol such as I2C (Inter-Integrated Circuit) or UART (Universal Asynchronous Receiver Transmitter).

次に、本実施の形態1に係る補助電源15の電圧と時間との関係について図2を使って説明する。   Next, the relationship between the voltage and time of the auxiliary power supply 15 according to the first embodiment will be described with reference to FIG.

図2の縦軸は電圧を示し、横軸は時間を示す。曲線30は一般的なバックアップ用補助電源として使用されるリチウムイオン二次電池を採用した場合の放電特性を表している。電子機器100は主電源11から電力の供給を受けて動作している。補助電源15はその間充電され続け、ほぼ一定の電圧V1を維持している。   The vertical axis in FIG. 2 indicates voltage, and the horizontal axis indicates time. A curve 30 represents discharge characteristics when a lithium ion secondary battery used as a general backup auxiliary power source is employed. The electronic device 100 operates by receiving power from the main power supply 11. The auxiliary power supply 15 continues to be charged during that time and maintains a substantially constant voltage V1.

ここで、時間t1において電源スイッチ12がオフになり、補助電源15への充電が止まる。すると電子機器100は補助電源15を使用して、例えば時計回路17などの予め設定された回路へ電力の供給を継続するよう切り替える。時計回路17は補助電源15から供給される電力により動作を継続する。補助電源15は蓄えられているエネルギーを消費し、電圧は徐々に低下する。補助電源15はエネルギーが消費されると電池自体の内部抵抗が増加する。そして変曲点31に達すると、電圧は急激に降下する。   Here, at time t1, the power switch 12 is turned off, and charging of the auxiliary power supply 15 is stopped. Then, the electronic device 100 uses the auxiliary power supply 15 to switch the power supply to a preset circuit such as the clock circuit 17 for example. The clock circuit 17 continues to operate with power supplied from the auxiliary power supply 15. The auxiliary power supply 15 consumes the stored energy, and the voltage gradually decreases. When the auxiliary power supply 15 consumes energy, the internal resistance of the battery itself increases. When the inflection point 31 is reached, the voltage drops rapidly.

時計回路17の動作保障電圧はV2であり、V2を下回ると時計回路17は動作しなくなる。補助電源15は徐々に電圧を下げ、t2の時点で電圧V2に達する。やがて補助電源の電圧は電圧V2を下回り、時計回路17の動作は停止する。   The operation guarantee voltage of the clock circuit 17 is V2, and when it falls below V2, the clock circuit 17 does not operate. The auxiliary power supply 15 gradually decreases the voltage and reaches the voltage V2 at time t2. Eventually, the voltage of the auxiliary power supply falls below the voltage V2, and the operation of the clock circuit 17 stops.

時計回路17が動作停止した後は時計回路17のインピーダンスが増加し、補助電源15の放電電流は少なくなるので、電圧の降下は緩やかになる(変曲点32)。その後、動作を停止した時計回路17に流れる暗電流により徐々に補助電源15の電圧は低下していく。   After the clock circuit 17 stops operating, the impedance of the clock circuit 17 increases and the discharge current of the auxiliary power supply 15 decreases, so that the voltage drop becomes gentle (inflection point 32). Thereafter, the voltage of the auxiliary power source 15 gradually decreases due to the dark current flowing through the clock circuit 17 that has stopped operating.

曲線30によって表される放電時間と電圧との関係は、補助電源15の仕様及び電子機器100の回路構成により決定される。従って実際の測定等により曲線30を予め把握しておき、時計回路17の動作保障電圧V2を下回る前の時間tx及び電圧Vxを記憶しておけば、電圧Vyを測定することにより時間tyを予測することが可能となる。本実施の形態1ではこの原理を利用し、かかる課題を解決している。尚、図2に示すグラフは、実際の電子機器100で測定しても良いし、同じタイプの回路構成を有する装置を使って測定しても良い。   The relationship between the discharge time and the voltage represented by the curve 30 is determined by the specifications of the auxiliary power supply 15 and the circuit configuration of the electronic device 100. Therefore, if the curve 30 is grasped in advance by actual measurement or the like and the time tx and the voltage Vx before the operation guarantee voltage V2 of the clock circuit 17 are stored are stored, the time ty is predicted by measuring the voltage Vy. It becomes possible to do. The first embodiment uses this principle to solve this problem. Note that the graph shown in FIG. 2 may be measured by the actual electronic device 100 or may be measured by using an apparatus having the same type of circuit configuration.

次に、図3から図5に示すフローチャートを参照しながら本発明の実施の形態1に係る電子機器100の処理について説明する。図3は主電源11がオフになる前までの割り込み動作を示すフローチャートである。図4は電子機器100の主電源11がオフになった後、主電源11が再びオンになる前までの処理を示すフローチャートである。図5は主電源11が再びオンになった後の処理を示すフローチャートである。   Next, processing of electronic device 100 according to Embodiment 1 of the present invention will be described with reference to the flowcharts shown in FIGS. FIG. 3 is a flowchart showing an interrupt operation before the main power supply 11 is turned off. FIG. 4 is a flowchart showing processing after the main power supply 11 of the electronic device 100 is turned off and before the main power supply 11 is turned on again. FIG. 5 is a flowchart showing processing after the main power supply 11 is turned on again.

制御回路21は、主電源11がオンからオフに切り替わったタイミングに基づいて定まる時刻に、時計回路17が生成する時刻情報と、その時刻において電圧監視部18が測定する電圧値とを記憶する。ここでは、制御回路21は、電子機器100の主電源11がオフになる前に、割り込み処理として時計回路17が生成する時刻情報と、その時刻において電圧監視部18が測定する電圧値とを記憶する(S100)。制御回路21はこの割り込み処理を定期的に繰り返し行い、時刻情報と電圧値を上書きすることができる。ここで本実施の形態1においては、主電源11がオフになる前であって、最後に記憶した時刻をTxaとし、時刻Txaの電圧値をVxaとする。   The control circuit 21 stores the time information generated by the clock circuit 17 and the voltage value measured by the voltage monitoring unit 18 at the time determined based on the timing when the main power supply 11 is switched from on to off. Here, the control circuit 21 stores the time information generated by the clock circuit 17 as an interrupt process and the voltage value measured by the voltage monitoring unit 18 at that time before the main power supply 11 of the electronic device 100 is turned off. (S100). The control circuit 21 can periodically repeat this interrupt process to overwrite the time information and the voltage value. Here, in the first embodiment, the last stored time is Txa and the voltage value at time Txa is Vxa before the main power supply 11 is turned off.

次に、ユーザーが電源スイッチ12をオフにする(S101)。すると、主電源11からの電力の供給が止まり、制御回路21は停止する(S102)。続いて電源混合回路16は出力する電圧を補助電源15に切り替える(S103)。   Next, the user turns off the power switch 12 (S101). Then, the supply of power from the main power supply 11 is stopped, and the control circuit 21 is stopped (S102). Subsequently, the power supply mixing circuit 16 switches the output voltage to the auxiliary power supply 15 (S103).

ステップS103以降、時計回路17は補助電源15から電力の供給を受けて動作を継続する。補助電源15は徐々に容量を下げながら時計回路17を駆動する。補助電源15の出力電圧は時間の経過に伴い低下する。そして、時計回路17が受ける電圧が時計回路17の動作保障電圧を下回ると、やがて時計回路17は動作を停止する(S104)。   After step S103, the clock circuit 17 continues to operate by receiving power from the auxiliary power supply 15. The auxiliary power supply 15 drives the clock circuit 17 while gradually reducing the capacity. The output voltage of the auxiliary power supply 15 decreases with time. When the voltage received by the timepiece circuit 17 falls below the operation guarantee voltage of the timepiece circuit 17, the timepiece circuit 17 eventually stops operating (S104).

時計回路17が動作を停止した後も、補助電源15は放電を継続する(S105)。   Even after the clock circuit 17 stops operating, the auxiliary power supply 15 continues to discharge (S105).

続いて、ユーザーが電源スイッチ12を再びオンにした後の処理について図5を参照しながら説明する。ユーザーが電源スイッチ12を再びオンにする(S201)。すると、制御回路21に電圧が供給される。これにより制御回路21は再び動作を開始する(S202)。   Next, processing after the user turns on the power switch 12 again will be described with reference to FIG. The user turns on the power switch 12 again (S201). Then, a voltage is supplied to the control circuit 21. Thereby, the control circuit 21 starts operation again (S202).

続いて、電源混合回路16は時計回路17へ供給する電源を補助電源15から主電源11に切り替える(S203)。このとき、時計回路17は補助電源15から電力供給を受けている間に動作が停止したか否かをエラー履歴として記録する。具体的には例えば、時計回路17はエラーフラグを0から1に切り替える。   Subsequently, the power supply mixing circuit 16 switches the power supplied to the clock circuit 17 from the auxiliary power supply 15 to the main power supply 11 (S203). At this time, the clock circuit 17 records as an error history whether or not the operation has stopped while receiving power from the auxiliary power supply 15. Specifically, for example, the clock circuit 17 switches the error flag from 0 to 1.

次に、制御回路21は電圧監視部18が測定した補助電源15の電圧値を読み取る(S204)。本実施の形態1においては、この電圧値をVyaとする。   Next, the control circuit 21 reads the voltage value of the auxiliary power supply 15 measured by the voltage monitoring unit 18 (S204). In the first embodiment, this voltage value is Vya.

続いて、制御回路21は切替回路14に対して補助電源15へ充電を開始するよう指示を送る(S205)。つまり、制御回路21は、補助電源15への充電を開始するに先立って補助電源15の電圧値を読み取ることとなる。   Subsequently, the control circuit 21 sends an instruction to the switching circuit 14 to start charging to the auxiliary power supply 15 (S205). That is, the control circuit 21 reads the voltage value of the auxiliary power supply 15 before starting charging of the auxiliary power supply 15.

次に、制御回路21は時計回路17のエラー履歴を読み取り、時計回路17の生成する時刻情報が有効か否かを判定する(S206)。具体的には、制御回路21は時計回路17のエラーフラグの値を読み出す。エラーフラグが0の場合、制御回路21は時刻情報を有効と判定する(S206:Yes)。この場合、制御回路21は期限付き暗号鍵の期限が有効か否かを判定するステップ(S207)へ進む。エラーフラグが1の場合、制御回路21は時刻情報を有効と判定しない(S206:No)。この場合、制御回路21は経過時間が算出可能か否かを判定するステップ(S210)へ進む。   Next, the control circuit 21 reads the error history of the clock circuit 17 and determines whether or not the time information generated by the clock circuit 17 is valid (S206). Specifically, the control circuit 21 reads the value of the error flag of the clock circuit 17. When the error flag is 0, the control circuit 21 determines that the time information is valid (S206: Yes). In this case, the control circuit 21 proceeds to a step (S207) for determining whether or not the time limit of the time-limited encryption key is valid. When the error flag is 1, the control circuit 21 does not determine that the time information is valid (S206: No). In this case, the control circuit 21 proceeds to a step (S210) for determining whether or not the elapsed time can be calculated.

制御回路21は経過時間が算出可能か否かを判定する(S210)。まず、制御回路21は、ステップS100において電源スイッチ12がオフする前に記憶した時計回路17の時刻情報及びその時点における補助電源15の電圧値を読み出す。すなわち本実施の形態1においては、制御回路21は時刻情報Txaと電圧値Vxaを読み出す。次に、ステップS204において測定した補助電源15の電圧値Vyaを読み出す。電圧値Vyaが所定の範囲の場合は、図2を参照しながら説明した原理に基づいて、制御回路21は経過時間を算出することが可能である。例えば本実施の形態1においては、図2に示すグラフを参照すると、ty−txが経過時間となる。従って、時刻情報Txaに経過時間ty−txを加算し、現在の時刻情報を得ることができる。尚、経過時間の算出方法は、記憶部20に格納しておいた所定の計算式に基づく方法でもよいし、記憶部20に所定の表を格納しておき近似値を当てはめる方法でもよい。制御回路21が経過時間を算出した後(S210:Yes)は、制御回路21は時刻情報を更新し(S211)、ステップS207へ進む。一方、ステップS204において所定の範囲内で電圧値が測定されなかった場合は、制御回路21は経過時間を算出することができない(S210:No)。その場合、制御回路21は時計回路の時刻情報を初期化する。そして、制御回路21はユーザーに時刻情報を入力させるステップ(S212)へ進む。例えば、図示しない表示部が時刻情報の入力を促すメッセージを表示する。図示しない表示部及び入力部を介して、ユーザーが時刻情報を入力すると、制御回路21はステップS207へ進む。   The control circuit 21 determines whether or not the elapsed time can be calculated (S210). First, the control circuit 21 reads the time information of the clock circuit 17 stored before the power switch 12 is turned off in step S100 and the voltage value of the auxiliary power supply 15 at that time. That is, in the first embodiment, the control circuit 21 reads the time information Txa and the voltage value Vxa. Next, the voltage value Vya of the auxiliary power supply 15 measured in step S204 is read. When the voltage value Vya is within a predetermined range, the control circuit 21 can calculate the elapsed time based on the principle described with reference to FIG. For example, in the first embodiment, referring to the graph shown in FIG. 2, ty-tx is the elapsed time. Therefore, the current time information can be obtained by adding the elapsed time ty-tx to the time information Txa. The elapsed time calculation method may be a method based on a predetermined calculation formula stored in the storage unit 20 or a method of storing a predetermined table in the storage unit 20 and applying an approximate value. After the control circuit 21 calculates the elapsed time (S210: Yes), the control circuit 21 updates the time information (S211), and proceeds to step S207. On the other hand, if the voltage value is not measured within the predetermined range in step S204, the control circuit 21 cannot calculate the elapsed time (S210: No). In that case, the control circuit 21 initializes time information of the clock circuit. Then, the control circuit 21 proceeds to a step (S212) in which the user inputs time information. For example, a display unit (not shown) displays a message that prompts input of time information. When the user inputs time information via a display unit and an input unit (not shown), the control circuit 21 proceeds to step S207.

続いて、制御回路21は時刻情報が予め設定された暗号鍵の有効期限内か否かを判定する(S207)。制御回路21が時刻情報を暗号鍵の有効期限内であると判定した場合(S207:Yes)、制御回路21は無線通信手段である電子回路部23の機能を有効化する(S208)。すなわち、電子機器100は暗号鍵を用いた通信が可能な状態となり、制御回路21はユーザーによる操作を受け付ける。一方、制御回路21が時刻情報を暗号鍵の有効期限内であると判定しなかった場合(S207:No)、制御回路21は無線通信手段である電子回路部23の機能を無効化する(S209)。すなわち、電子機器100は暗号鍵を用いた通信が無効となり、制御回路21はユーザーによる操作を受け付けない。   Subsequently, the control circuit 21 determines whether the time information is within the expiration date of the preset encryption key (S207). When the control circuit 21 determines that the time information is within the validity period of the encryption key (S207: Yes), the control circuit 21 validates the function of the electronic circuit unit 23 that is a wireless communication unit (S208). That is, the electronic device 100 is in a state where communication using the encryption key is possible, and the control circuit 21 accepts an operation by the user. On the other hand, when the control circuit 21 does not determine that the time information is within the validity period of the encryption key (S207: No), the control circuit 21 invalidates the function of the electronic circuit unit 23 that is a wireless communication unit (S209). ). That is, communication using the encryption key is invalid in the electronic device 100, and the control circuit 21 does not accept an operation by the user.

以上のように、本実施の形態によれば、主電源がオフになっている状態での消費電力を抑えつつ、期限付き機能が使用不能となることを防ぐことができる。   As described above, according to the present embodiment, it is possible to prevent the time-limited function from being disabled while suppressing power consumption in a state where the main power source is turned off.

実施の形態2
次に本発明に係る実施の形態2について説明する。図6は本発明に係る実施の形態2のブロック図である。重複した説明を避けるために、実施の形態1と同じブロックについては同じ番号を付している。
Embodiment 2
Next, a second embodiment according to the present invention will be described. FIG. 6 is a block diagram of Embodiment 2 according to the present invention. In order to avoid redundant description, the same blocks as those in the first embodiment are given the same numbers.

電子機器200と電子機器100との差異は、電源回路40、電源混合回路41、制御回路44である。以下に差異点について説明する。   Differences between the electronic device 200 and the electronic device 100 are a power supply circuit 40, a power supply mixing circuit 41, and a control circuit 44. The differences will be described below.

電源回路40は、電源スイッチ12経由で受けた主電源からの電圧を安定させ、切替回路14及び電源混合回路41へ電力を供給する。   The power circuit 40 stabilizes the voltage from the main power received via the power switch 12 and supplies power to the switching circuit 14 and the power mixing circuit 41.

電源混合回路41は、電源回路40から電力の供給を受けているときはこれを制御回路44及び時計回路17へ供給する。電源混合回路41は、例えば電圧コンパレータ及びスイッチング回路などによって構成される。また電源混合回路41は、電源回路40から電力の供給を受けていないときは補助電源15から受ける電力を制御回路44及び時計回路17へ供給する。   When receiving power from the power supply circuit 40, the power supply mixing circuit 41 supplies this to the control circuit 44 and the clock circuit 17. The power supply mixing circuit 41 is configured by, for example, a voltage comparator and a switching circuit. The power supply mixing circuit 41 supplies the power received from the auxiliary power supply 15 to the control circuit 44 and the timepiece circuit 17 when no power is supplied from the power supply circuit 40.

制御回路44は、制御部42及び記憶部43を備える。制御回路44は、電源混合回路41から電力の供給を受ける。   The control circuit 44 includes a control unit 42 and a storage unit 43. The control circuit 44 receives power from the power supply mixing circuit 41.

制御部42は時計回路17が生成する時刻情報及びエラー履歴を読み取り、さらに電圧監視部18が測定する電圧値を読み取る。そして、制御部42は記憶部43にアクセスし、読み取った時刻情報及び電圧値を書き込み、また書き込んだ情報を読み取る。さらに、制御部42はこれら読み取った情報に応じて期限付き暗号鍵が有効であるか否かを判定する。具体的には、制御部42は図2において示す原理に基づき各データから経過時間を算出し、期限付き暗号鍵が有効であるか否かを判定する。   The control unit 42 reads the time information and error history generated by the clock circuit 17 and further reads the voltage value measured by the voltage monitoring unit 18. And the control part 42 accesses the memory | storage part 43, writes the read time information and voltage value, and reads the written information. Further, the control unit 42 determines whether or not the time-limited encryption key is valid according to the read information. Specifically, the control unit 42 calculates the elapsed time from each data based on the principle shown in FIG. 2, and determines whether or not the time-limited encryption key is valid.

以上に説明した差異点によって、電子機器200は、電源スイッチ12がオフになった場合、補助電源15の電力を制御回路44及び時計回路17に供給する。   Due to the differences described above, the electronic device 200 supplies the power of the auxiliary power supply 15 to the control circuit 44 and the timepiece circuit 17 when the power switch 12 is turned off.

次に、図7及び図8に示すフローチャートを参照しながら本発明の実施の形態2に係る電子機器200の処理について説明する。図7は主電源がオフになった後主電源が再びオンになる前までの処理を示すフローチャートである。図8は主電源が再びオンになった後の処理を示すフローチャートである。   Next, processing of the electronic device 200 according to Embodiment 2 of the present invention will be described with reference to the flowcharts shown in FIGS. FIG. 7 is a flowchart showing processing after the main power is turned off and before the main power is turned on again. FIG. 8 is a flowchart showing processing after the main power supply is turned on again.

まず図7のフローチャートについて詳細を説明する。ユーザーが電源スイッチ12をオフにする(S301)。すると、主電源11から電源回路40以降への電力の供給が停止する。それに伴い、電源混合回路41は制御回路44及び時計回路17に出力する電源を主電源11から補助電源15に切り替える(S302)。   First, the details of the flowchart of FIG. 7 will be described. The user turns off the power switch 12 (S301). Then, the supply of power from the main power supply 11 to the power supply circuit 40 and later stops. Accordingly, the power supply mixing circuit 41 switches the power supply output to the control circuit 44 and the clock circuit 17 from the main power supply 11 to the auxiliary power supply 15 (S302).

次に、制御回路44は、主電源がオンからオフに切り替わったタイミングに基づいて定まる時刻に、時計回路17が生成する時刻情報と、その時刻において電圧監視部18が測定する電圧値とを記憶する。ここでは、制御回路44は、時計回路17が生成する時刻情報を読み込み、予め設定された所定の時間が経過するか否かを判定する(S303)。ここで、予め設定された所定の時間とは、補助電源15によって時計回路17が動作をすることができる時間をいう。かかる時間は回路設計や実験データ等に基づき決定される。所定時間を経過していない場合(S303:No)、制御回路44は更に時刻情報を読み込む。所定時間を経過している場合(S303:Yes)、制御回路44は、時刻情報とその時点における補助電池の電圧値を読み込み、これらを記憶部43に記憶させる(S304)。ここで本実施の形態2においては、記憶部43に記憶させた時刻をTxbとし、時刻Txbの電圧値をVxbとする。   Next, the control circuit 44 stores the time information generated by the clock circuit 17 and the voltage value measured by the voltage monitoring unit 18 at the time determined based on the timing when the main power supply is switched from on to off. To do. Here, the control circuit 44 reads the time information generated by the clock circuit 17 and determines whether or not a predetermined time set in advance elapses (S303). Here, the predetermined time set in advance refers to a time during which the clock circuit 17 can operate by the auxiliary power supply 15. Such time is determined based on circuit design, experimental data, and the like. If the predetermined time has not elapsed (S303: No), the control circuit 44 further reads time information. When the predetermined time has passed (S303: Yes), the control circuit 44 reads the time information and the voltage value of the auxiliary battery at that time, and stores them in the storage unit 43 (S304). Here, in the second embodiment, the time stored in the storage unit 43 is Txb, and the voltage value at the time Txb is Vxb.

この後、補助電源15は制御回路44及び時計回路17に電圧を供給し続ける。そして、時計回路17の動作保障電圧を下回った後は、やがて時計回路は動作を停止する(S305)。   Thereafter, the auxiliary power supply 15 continues to supply voltage to the control circuit 44 and the clock circuit 17. Then, after falling below the operation guarantee voltage of the timepiece circuit 17, the timepiece circuit eventually stops operating (S305).

時計回路が動作を停止した後も、補助電源15は放電を継続する(S306)。   Even after the clock circuit stops operating, the auxiliary power supply 15 continues to discharge (S306).

続いて、ユーザーが電源スイッチ12を再びオンにした後の処理について図8を参照しながら説明する。まず、ユーザーが電源スイッチ12を再びオンにする(S401)。すると、主電源11から電源回路40への電力の供給が再開する。それに伴い、電源混合回路41は、制御回路44及び時計回路17に出力する電源を補助電源15から主電源11に切り替える(S402)。   Next, processing after the user turns on the power switch 12 again will be described with reference to FIG. First, the user turns on the power switch 12 again (S401). Then, the supply of power from the main power supply 11 to the power supply circuit 40 is resumed. Accordingly, the power supply mixing circuit 41 switches the power supply output to the control circuit 44 and the clock circuit 17 from the auxiliary power supply 15 to the main power supply 11 (S402).

次に、制御回路44は、電圧監視部18が測定する電圧値を読み取る(S403)。本実施の形態2においては、この電圧値をVybとする。   Next, the control circuit 44 reads the voltage value measured by the voltage monitoring unit 18 (S403). In the second embodiment, this voltage value is Vyb.

続いて、制御回路44は切替回路14を切り替える指示を出し、補助電源15に対して充電を開始する(S404)。   Subsequently, the control circuit 44 issues an instruction to switch the switching circuit 14 and starts charging the auxiliary power supply 15 (S404).

次に、制御回路44は、時計回路17のエラー履歴を読み取り、時計回路17の生成する時刻情報が有効か否かを判定する(S405)。具体的には、制御回路44は時計回路17のエラーフラグの値を読み出す。制御回路44が時刻情報を有効と判定した場合(S405:Yes)、制御回路44は期限付き暗号鍵の期限が有効か否かを判定する(S406)。制御回路44が時刻情報を有効と判定しなかった場合(S405:No)、制御回路44は経過時間が算出可能か否かを判定する(S408)。   Next, the control circuit 44 reads the error history of the clock circuit 17 and determines whether or not the time information generated by the clock circuit 17 is valid (S405). Specifically, the control circuit 44 reads the value of the error flag of the clock circuit 17. When the control circuit 44 determines that the time information is valid (S405: Yes), the control circuit 44 determines whether or not the time limit of the time-limited encryption key is valid (S406). When the control circuit 44 does not determine that the time information is valid (S405: No), the control circuit 44 determines whether or not the elapsed time can be calculated (S408).

経過時間が算出可能か否かの判定において、制御回路44は、ステップS304において記憶した時刻情報Txb及びその時点における電圧値Vxb、そしてステップS403において測定した電圧値Vybを参照する。電圧値Vybが所定の範囲内であった場合は、図2を参照しながら説明した原理に基づいて、制御回路44は経過時間を算出することが可能である。制御回路44が経過時間を算出できた場合(S408:Yes)、制御回路44は時刻情報を更新し(S409)、ステップS406へ進む。一方、ステップS403において電圧監視部18が所定の範囲内の電圧値を測定することができなかった場合は、制御回路44は経過時間を算出することができない(S408:No)。その場合、制御回路44は、時計回路17の時刻情報を初期化する。そして、制御回路44はユーザーに時刻情報を入力させるステップ(S410)へ進む。例えば、図示しない表示部が時刻情報の入力を促すメッセージを表示する。図示しない表示部及び入力部を介して、ユーザーが時刻情報を入力すると、制御回路44はステップS406へ進む。   In determining whether the elapsed time can be calculated, the control circuit 44 refers to the time information Txb stored in step S304, the voltage value Vxb at that time, and the voltage value Vyb measured in step S403. When the voltage value Vyb is within the predetermined range, the control circuit 44 can calculate the elapsed time based on the principle described with reference to FIG. When the control circuit 44 can calculate the elapsed time (S408: Yes), the control circuit 44 updates the time information (S409), and proceeds to step S406. On the other hand, when the voltage monitoring unit 18 cannot measure the voltage value within the predetermined range in step S403, the control circuit 44 cannot calculate the elapsed time (S408: No). In that case, the control circuit 44 initializes the time information of the clock circuit 17. Then, the control circuit 44 proceeds to a step (S410) for allowing the user to input time information. For example, a display unit (not shown) displays a message that prompts input of time information. When the user inputs time information via a display unit and an input unit (not shown), the control circuit 44 proceeds to step S406.

続いて、制御回路44は時刻情報が予め設定された暗号鍵の有効期限内か否かを判定する(S406)。制御回路44が時刻情報を暗号鍵の有効期限内であると判定した場合(S406:Yes)、制御回路21は無線通信手段である電子回路部23の機能を有効化する(S407)。すなわち、電子機器200は暗号鍵を用いた通信が可能な状態となり、制御回路44はユーザーによる操作を受け付ける。一方、制御回路44が時刻情報を暗号鍵の有効期限内であると判定しなかった場合(S406:No)、制御回路21は無線通信手段である電子回路部23の機能を無効化する(S411)。すなわち、電子機器200は暗号鍵を用いた通信が無効となり、制御回路44はユーザーによる操作を受け付けない。   Subsequently, the control circuit 44 determines whether or not the time information is within the expiration date of the preset encryption key (S406). When the control circuit 44 determines that the time information is within the validity period of the encryption key (S406: Yes), the control circuit 21 validates the function of the electronic circuit unit 23, which is a wireless communication means (S407). That is, the electronic device 200 is in a state where communication using the encryption key is possible, and the control circuit 44 accepts an operation by the user. On the other hand, when the control circuit 44 does not determine that the time information is within the validity period of the encryption key (S406: No), the control circuit 21 invalidates the function of the electronic circuit unit 23 that is a wireless communication unit (S411). ). That is, communication using the encryption key is invalid in the electronic device 200, and the control circuit 44 does not accept an operation by the user.

尚、図7のステップS304は1度でも構わないし、時計回路17の動作が停止するまでに複数回行ってもよく、その都度、記憶部のデータを上書きしても構わない。   Note that step S304 in FIG. 7 may be performed once, or may be performed a plurality of times before the operation of the clock circuit 17 is stopped, and the data in the storage unit may be overwritten each time.

以上のように、本実施の形態によれば、主電源がオフになった後も補助電源の電圧を監視することにより、精度よく経過時間を算出し、期限付き機能が使用不能となることを防ぐことができる。   As described above, according to the present embodiment, by monitoring the voltage of the auxiliary power supply even after the main power supply is turned off, the elapsed time can be accurately calculated, and the time limit function can be disabled. Can be prevented.

実施の形態3
次に本発明に係る実施の形態3について説明する。実施の形態3のブロック構成は、実施の形態2と同じ(図6)である。実施の形態2と実施の形態3との差異点は主電源がオフになった後主電源が再びオンになる前までの処理にある。したがって、ここではブロック図の説明を省略する。
Embodiment 3
Next, a third embodiment according to the present invention will be described. The block configuration of the third embodiment is the same as that of the second embodiment (FIG. 6). The difference between the second embodiment and the third embodiment lies in the processing from when the main power source is turned off to before the main power source is turned on again. Therefore, description of the block diagram is omitted here.

次に、図9に示すフローチャートを参照しながら本発明の実施の形態3に係る電子機器200の処理について説明する。図9は主電源がオフになった後主電源が再びオンになる前までの処理を示すフローチャートである。ステップS301及びステップS302は実施の形態2と同じであるためここでの説明は省略する。   Next, processing of electronic device 200 according to Embodiment 3 of the present invention will be described with reference to the flowchart shown in FIG. FIG. 9 is a flowchart showing processing after the main power is turned off and before the main power is turned on again. Steps S301 and S302 are the same as those in the second embodiment, and a description thereof is omitted here.

次に制御回路44は電圧監視部18が測定する電圧値を読み込み、予め設定された所定の電圧を下回るか否かを判定する(S503)。ここで、予め設定された所定の電圧とは、補助電源15によって時計回路17が動作をすることができる電圧をいう。言い換えれば、予め設定された所定の電圧とは動作保障電圧を下回らない電圧であり、図2のV2よりも高い電圧である。所定電圧を下回っていない場合(S503:No)、制御回路44は更に電圧値を読み込む。そして所定電圧を下回った場合(S503:Yes)、制御回路44は、時刻情報とその時点における補助電池の電圧値を読み込み、これらを記憶部43に記憶させる(S504)。ここで本実施の形態3においては、記憶部43に記憶させた時刻をTxcとし、時刻Txcの電圧値をVxcとする。   Next, the control circuit 44 reads the voltage value measured by the voltage monitoring unit 18 and determines whether or not it falls below a predetermined voltage set in advance (S503). Here, the predetermined voltage set in advance refers to a voltage at which the timepiece circuit 17 can operate by the auxiliary power supply 15. In other words, the predetermined voltage set in advance is a voltage that does not fall below the operation guarantee voltage, and is a voltage higher than V2 in FIG. When the voltage is not lower than the predetermined voltage (S503: No), the control circuit 44 further reads the voltage value. When the voltage falls below the predetermined voltage (S503: Yes), the control circuit 44 reads the time information and the voltage value of the auxiliary battery at that time, and stores them in the storage unit 43 (S504). Here, in the third embodiment, the time stored in the storage unit 43 is Txc, and the voltage value at the time Txc is Vxc.

この後の処理は実施の形態2と同じであるために、ここから放電継続まで(S306)の図9についての説明は省略する。   Since the subsequent processing is the same as that of the second embodiment, the description of FIG. 9 from here to the continuation of discharge (S306) will be omitted.

また、この後実施の形態3に係る電子機器200において、ユーザーが電源スイッチ12を再びオンにした後の処理については、図8と同様である。ただし、本実施の形態3においては、ステップS403において、制御回路44が読み取る電圧値をVycとする。また、経過時間が算出可能か否かの判定において、制御回路44は、ステップS304において記憶した時刻情報Txb及びその時点における電圧値Vxb、そしてステップS403において測定した電圧値Vybを参照する。本実施の形態3におけるその他の処理は、本実施の形態2において図8を参照して説明した内容と同様であるため、ここでは省略する。   Further, in the electronic device 200 according to the third embodiment, the processing after the user turns on the power switch 12 again is the same as in FIG. However, in the third embodiment, the voltage value read by the control circuit 44 in step S403 is Vyc. In determining whether the elapsed time can be calculated, the control circuit 44 refers to the time information Txb stored in step S304, the voltage value Vxb at that time, and the voltage value Vyb measured in step S403. The other processes in the third embodiment are the same as the contents described in the second embodiment with reference to FIG.

尚、ステップS504は1度でも構わないし、時計回路17の動作が停止するまでに複数回行ってもよく、その都度、記憶部43のデータを上書きしてもよい。   Note that step S504 may be performed once, or may be performed a plurality of times before the operation of the clock circuit 17 is stopped, and the data in the storage unit 43 may be overwritten each time.

実施の形態3において主電源11が再びオンになった場合の処理については、実施の形態2と同じであるためここでの説明は省略する。   Since the processing when the main power supply 11 is turned on again in the third embodiment is the same as that in the second embodiment, the description thereof is omitted here.

以上のように、本実施の形態3によれば、主電源11がオフになった後も補助電源15の電圧を監視することにより、精度よく経過時間を算出し、期限付き機能が使用不能となることを防ぐことができる。   As described above, according to the third embodiment, the elapsed time can be accurately calculated by monitoring the voltage of the auxiliary power supply 15 even after the main power supply 11 is turned off, and the time-limited function cannot be used. Can be prevented.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。例えば、主電源11からの電力の供給は、電源スイッチ12を全て経由せず、主電源11の一部を直接、切替回路14へ供給することもできる。また補助電源15からの電圧を使って動作する場合の消費電力を抑制するため、制御回路44は主演算処理部に加えて補助演算処理部を備えていても良い。その場合、電源スイッチ12がオフになると、制御部42は動作を停止し、電源混合回路41から供給される電圧により、図示しない補助演算処理部が動作して、通信バス22を介して各演算を行ってもよい。電子回路部23は、有効期限が設定された暗号鍵により動作もしくは操作が制限される電子機器であれば無線通信手段には限定されない。   Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention. For example, the supply of power from the main power supply 11 can be directly supplied to the switching circuit 14 without passing through all the power switches 12. In addition, in order to reduce power consumption when operating using the voltage from the auxiliary power supply 15, the control circuit 44 may include an auxiliary arithmetic processing unit in addition to the main arithmetic processing unit. In that case, when the power switch 12 is turned off, the control unit 42 stops its operation, and an auxiliary calculation processing unit (not shown) is operated by the voltage supplied from the power supply mixing circuit 41, and each calculation is performed via the communication bus 22. May be performed. The electronic circuit unit 23 is not limited to a wireless communication unit as long as it is an electronic device whose operation or operation is restricted by an encryption key with an expiration date set.

100,200 電子機器
11 主電源
12 電源スイッチ
13,40 電源回路
14 切替回路
15 補助電源
16,41 電源混合回路
17 時計回路
18 電圧監視部
19,42 制御部
20,43 記憶部
21,44 制御回路
22 通信バス
23 電子回路部
100, 200 Electronic device 11 Main power supply 12 Power switch 13, 40 Power supply circuit 14 Switching circuit 15 Auxiliary power supply 16, 41 Power supply mixing circuit 17 Clock circuit 18 Voltage monitoring unit 19, 42 Control unit 20, 43 Storage unit 21, 44 Control circuit 22 Communication bus 23 Electronic circuit section

Claims (5)

期限付き機能を備える電子機器であって、
主電源と、
前記主電源からの電力供給によって充電される補助電源と、
前記補助電源の電圧値を測定する電圧監視部と、
時刻情報を生成し、前記主電源のオン時には主電源からの電力供給により動作し、前記主電源のオフ時には前記補助電源からの電力供給により動作する時計回路と、
前記時刻情報と前記電圧値を記憶する記憶部と、
第1の時刻の時刻情報と前記第1の時刻における第1の電圧値と、前記第1の時刻の後であって前記主電源がオフからオンに切り替わったとき、前記主電源から前記補助電源への充電を開始するに先立って測定した第2の電圧値とに基づいた第2の時刻により前記期限付き機能が有効であるか否かを判定する制御部と、
を備える、
電子機器。
An electronic device having a time-limited function,
A main power supply,
An auxiliary power source charged by power supply from the main power source;
A voltage monitoring unit for measuring a voltage value of the auxiliary power source;
A timepiece circuit that generates time information and operates by power supply from a main power supply when the main power supply is on, and operates by power supply from the auxiliary power supply when the main power supply is off;
A storage unit for storing the time information and the voltage value;
The time information of the first time, the first voltage value at the first time, and when the main power source is switched from off to on after the first time, the main power source to the auxiliary power source A controller that determines whether or not the time-limited function is valid at a second time based on a second voltage value measured prior to starting charging to
Comprising
Electronics.
前記制御部は、
第1の時刻における時刻情報と、前記第1の時刻における前記補助電源の第1の電圧値と、第2の時刻における前記補助電源の第2の電圧値とに基づき、前記第1の時刻から前記第2の時刻までの経過時間を算出する、
請求項1に記載の電子機器。
The controller is
Based on the time information at the first time, the first voltage value of the auxiliary power source at the first time, and the second voltage value of the auxiliary power source at the second time, from the first time Calculating an elapsed time until the second time;
The electronic device according to claim 1.
前記第1の時刻は、
前記主電源がオンからオフに切り替わったタイミングに基づいて定まる時刻である、
請求項1又は2に記載の電子機器。
The first time is
It is a time determined based on the timing at which the main power source is switched from on to off.
The electronic device according to claim 1 or 2.
前記第1の時刻は、
前記主電源がオンからオフに切り替わった後、前記電圧値が所定の値を下回った時である、
請求項1又は2に記載の電子機器。
The first time is
After the main power is switched from on to off, the voltage value falls below a predetermined value.
The electronic device according to claim 1 or 2.
前記第1の時刻に対して、算出した前記経過時間を加算して、当該加算した時刻情報を表示する、
請求項2に記載の電子機器。
Adding the calculated elapsed time to the first time and displaying the added time information;
The electronic device according to claim 2.
JP2016131949A 2016-07-01 2016-07-01 Electronic instrument Pending JP2018005572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016131949A JP2018005572A (en) 2016-07-01 2016-07-01 Electronic instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016131949A JP2018005572A (en) 2016-07-01 2016-07-01 Electronic instrument

Publications (1)

Publication Number Publication Date
JP2018005572A true JP2018005572A (en) 2018-01-11

Family

ID=60947971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016131949A Pending JP2018005572A (en) 2016-07-01 2016-07-01 Electronic instrument

Country Status (1)

Country Link
JP (1) JP2018005572A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020153970A (en) * 2019-03-20 2020-09-24 レナタ・アーゲー Wristwatch with battery integrated in clasp

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020153970A (en) * 2019-03-20 2020-09-24 レナタ・アーゲー Wristwatch with battery integrated in clasp
US11460815B2 (en) 2019-03-20 2022-10-04 Renata Ag Wristwatch with battery integrated in the clasp

Similar Documents

Publication Publication Date Title
KR100987606B1 (en) Apparatus and method for correcting measurements of remaining capacity of battery pack
US8400116B2 (en) Method and apparatus for calculating power-off duration time and state of charging of battery
US10557890B2 (en) Battery capacity monitor
KR100354243B1 (en) Method for generating data for monitoring and controlling states of charge and discharge of secondary battery
US6956488B2 (en) Method of and apparatus for setting battery alarm voltage in battery management server
CN104037835B (en) The method for charging batteries of information processor and information processor
JP2009017775A (en) Charging management method and device of battery for portable terminal
JP2004304940A (en) Battery pack, electronic apparatus, battery remaining capacity prediction system, and semiconductor device
JP5035800B2 (en) Mobile device
JP2018005572A (en) Electronic instrument
CN107436410A (en) A kind of electric quantity controlling method, device, equipment and storage medium
JP2008226758A (en) Charge management device, control method for the same, and control program
KR20190031653A (en) Battery status based charging control method and appratus thereof
JP2011062028A (en) Chargeable device and method of charging the same
WO2017020592A1 (en) Discharging method, terminal equipment, and computer storage medium
JP2003009407A (en) Information terminal equipment
EP2672562B1 (en) Systems and methods for predicting battery power-delivery performance
JP6376860B2 (en) Mobile terminal device
JP2010206706A (en) Terminal device, battery residual quantity display method, and program
CN110138038A (en) A kind of charging reminding method, device, wearable device and storage medium
JP6261970B2 (en) Battery deterioration determination device, battery deterioration determination method, and battery deterioration determination program
JP2809661B2 (en) Battery driven information processing device, battery power supply system, and battery management device
JP3921492B2 (en) Electronic equipment
KR100512165B1 (en) A method for calibrating a capacity of battery
KR102405088B1 (en) Information processing apparatus and charging method therefor