Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7587137B2 - Electronics - Google Patents
[go: Go Back, main page]

JP7587137B2 - Electronics - Google Patents

Electronics Download PDF

Info

Publication number
JP7587137B2
JP7587137B2 JP2021013910A JP2021013910A JP7587137B2 JP 7587137 B2 JP7587137 B2 JP 7587137B2 JP 2021013910 A JP2021013910 A JP 2021013910A JP 2021013910 A JP2021013910 A JP 2021013910A JP 7587137 B2 JP7587137 B2 JP 7587137B2
Authority
JP
Japan
Prior art keywords
voltage
battery
unit
update
control unit
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.)
Active
Application number
JP2021013910A
Other languages
Japanese (ja)
Other versions
JP2022117296A (en
Inventor
諒太 河野
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.)
Icom Inc
Original Assignee
Icom 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 Icom Inc filed Critical Icom Inc
Priority to JP2021013910A priority Critical patent/JP7587137B2/en
Publication of JP2022117296A publication Critical patent/JP2022117296A/en
Application granted granted Critical
Publication of JP7587137B2 publication Critical patent/JP7587137B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Secondary Cells (AREA)
  • Stored Programmes (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Description

本発明は、電子機器に関する。 The present invention relates to electronic devices.

近年の多数の電子機器は、プロセッサなどによって制御されるため、ソフトウェアが不可欠となっている。また、このような電子機器においては、ソフトウェアの改訂に伴って、ソフトウェアを更新することも一般に行われている。 In recent years, many electronic devices are controlled by processors, making software indispensable. In addition, in such electronic devices, it is common to update the software when it is revised.

例えば、特許文献1には、電池の現在の電圧値が電池残量閾値よりも大きい場合にソフトウェアの更新を実行することが記載されている。電池残量閾値は、更新用のソフトウェアの容量の大小や、当該ソフトウェアの容量などの情報を記憶する不揮発メモリの種別に応じて設定される。 For example, Patent Document 1 describes a method of executing a software update when the current battery voltage value is greater than a battery remaining capacity threshold. The battery remaining capacity threshold is set according to the size of the software to be updated and the type of non-volatile memory that stores information such as the capacity of the software.

特開2006-85534号公報JP 2006-85534 A

しかしながら、特許文献1に記載された技術では、電池残量閾値を設定する必要がある。また、電池の残量が尽きる直前まで電圧がほぼ一定で、その後に電圧が急激に低下するという特性を有する電池では、電池残量閾値の設定が困難であり、電池の電圧値が電池残量閾値よりも大きい場合でも、電圧が急激に低下する状況になると、ソフトウェアの更新中に電源が断たれてしまう。このため、ソフトウェアの更新に失敗するという問題が生じる。 However, the technology described in Patent Document 1 requires the setting of a battery remaining capacity threshold. In addition, for batteries that have the characteristic that the voltage remains almost constant until just before the battery runs out and then the voltage drops suddenly, it is difficult to set the battery remaining capacity threshold. Even if the battery voltage value is greater than the battery remaining capacity threshold, if the voltage drops suddenly, the power will be cut off during the software update. This causes the problem of software update failure.

本発明の一態様は、より確実にソフトウェアを更新することを目的とする。 One aspect of the present invention aims to update software more reliably.

上記の課題を解決するために、本発明の一態様に係る電子機器は、ソフトウェアにしたがって電池の電力によって動作する動作部と、前記ソフトウェアを記憶するメモリと、前記動作部に前記電池の電力が供給されていない状態での前記電池の第1端子電圧と、前記動作部に前記電池の電力が供給されている状態での前記電池の第2端子電圧との差電圧が所定電圧以下である場合、前記メモリにおける前記ソフトウェアを更新する一方、前記差電圧が前記所定電圧を超える場合、前記メモリにおける前記ソフトウェアを更新しない更新制御部と、を備えている。 In order to solve the above problems, an electronic device according to one aspect of the present invention includes an operating unit that operates on battery power according to software, a memory that stores the software, and an update control unit that updates the software in the memory when the difference in voltage between the first terminal voltage of the battery when the battery power is not supplied to the operating unit and the second terminal voltage of the battery when the battery power is supplied to the operating unit is equal to or less than a predetermined voltage, but does not update the software in the memory when the difference in voltage exceeds the predetermined voltage.

本発明の一態様によれば、より確実にソフトウェアを更新することができる。 According to one aspect of the present invention, software can be updated more reliably.

本発明の一実施形態に係る無線通信機を示すブロック図である。1 is a block diagram showing a wireless communication device according to an embodiment of the present invention; 無線通信機の制御部を示すブロック図である。2 is a block diagram showing a control unit of the wireless communication device; 無線通信機によるファームアップの実行可否を判定する処理手順を示すフローチャートである。10 is a flowchart showing a process for determining whether firmware update can be performed by the wireless communication device. 電池の端子電圧と電池の使用時間との関係を示す特性図、および当該特性図に対応する、差電圧と電池の使用時間との関係を示す特性図である。1 is a characteristic diagram showing the relationship between the terminal voltage of a battery and the usage time of the battery, and a characteristic diagram showing the relationship between the differential voltage and the usage time of the battery corresponding to the characteristic diagram.

〔実施形態〕
以下、本発明の一実施形態について、図1~図4を参照して説明する。
[Embodiment]
Hereinafter, one embodiment of the present invention will be described with reference to FIGS.

(無線通信機の構成)
図1は、本実施形態に係る無線通信機1を示すブロック図である。
(Configuration of wireless communication device)
FIG. 1 is a block diagram showing a wireless communication device 1 according to the present embodiment.

図1に示すように、無線通信機1(電子機器)は、送信部2と、受信部3と、送受信切替回路4と、アンテナ5と、表示部6と、操作部7と、インターフェース8と、プログラムメモリ9(メモリ)と、電池10と、電圧検出部11と、スイッチ12と、制御部13とを備えている。図1において、インターフェース8はI/Fと示される。 As shown in FIG. 1, the wireless communication device 1 (electronic device) includes a transmitter 2, a receiver 3, a transmission/reception switching circuit 4, an antenna 5, a display 6, an operation unit 7, an interface 8, a program memory 9 (memory), a battery 10, a voltage detection unit 11, a switch 12, and a control unit 13. In FIG. 1, the interface 8 is indicated as I/F.

送信部2は、入力された音声を送信信号に変換する送信処理を行う。送信部2は、送信処理を行うために、マイク21と、A/D変換器22と、変調部23と、D/A変換器24と、BPF(Band Pass Filter)25と、ALC(Automatic Level Control)回路26と、電力増幅器27とを有している。図1において、マイク21はMICと示され、A/D変換器22はA/Dと示され、D/A変換器24はD/Aと示され、ALC回路26はALCと示され、電力増幅器27はPAと示される。 The transmitting unit 2 performs a transmission process that converts the input voice into a transmission signal. To perform the transmission process, the transmitting unit 2 has a microphone 21, an A/D converter 22, a modulation unit 23, a D/A converter 24, a BPF (Band Pass Filter) 25, an ALC (Automatic Level Control) circuit 26, and a power amplifier 27. In FIG. 1, the microphone 21 is indicated as MIC, the A/D converter 22 is indicated as A/D, the D/A converter 24 is indicated as D/A, the ALC circuit 26 is indicated as ALC, and the power amplifier 27 is indicated as PA.

送信部2において、マイク21から出力される音声信号は、A/D変換器22によってデジタル信号に変換された後、変調部23によって所定の変調方式で変調信号に変調される。変調信号は、D/A変換器24によってアナログ信号に変換された後、BPF25によって所定の帯域のみが通過する。BPF25を経た変調信号は、ALC回路26によって、電力増幅器27への入力レベルが制限される。ALC回路26を経た変調信号の電力は、電力増幅器27によって通信に必要な大きさの電力に増幅される。 In the transmission unit 2, the audio signal output from the microphone 21 is converted to a digital signal by the A/D converter 22, and then modulated into a modulated signal by the modulation unit 23 using a predetermined modulation method. The modulated signal is converted to an analog signal by the D/A converter 24, and then only a predetermined band is passed by the BPF 25. The input level of the modulated signal that has passed through the BPF 25 to the power amplifier 27 is limited by the ALC circuit 26. The power of the modulated signal that has passed through the ALC circuit 26 is amplified by the power amplifier 27 to the level of power required for communication.

送信部2から出力された送信信号は、送受信切替回路4を介してアンテナ5に出力される。アンテナ5は、入力された送信信号を電波として放射する。一方、アンテナ5は、電波として受信した受信信号を送受信切替回路4に出力する。この受信信号は、送受信切替回路4を介して受信部3に入力される。 The transmission signal output from the transmitter 2 is output to the antenna 5 via the transmission/reception switching circuit 4. The antenna 5 radiates the input transmission signal as radio waves. On the other hand, the antenna 5 outputs the reception signal received as radio waves to the transmission/reception switching circuit 4. This reception signal is input to the receiver 3 via the transmission/reception switching circuit 4.

送受信切替回路4は、送信部2およびアンテナ5の接続と、受信部3およびアンテナ5との接続を切り替える回路である。送受信切替回路4は、半導体スイッチ、リレー(特にラッチングリレー)などを含んで構成されている。 The transmission/reception switching circuit 4 is a circuit that switches between the connection between the transmission unit 2 and the antenna 5 and the connection between the reception unit 3 and the antenna 5. The transmission/reception switching circuit 4 is configured to include a semiconductor switch, a relay (particularly a latching relay), etc.

受信部3は、受信された受信信号を音声に変換する受信処理を行う。受信部3は、受信処理を行うために、BPF(Band Pass Filter)31と、A/D変換器32と、復調部33と、D/A変換器34と、スピーカ35とを有している。図1において、A/D変換器32はA/Dと示され、D/A変換器34はD/Aと示され、スピーカ35はSPと示される。 The receiving unit 3 performs a receiving process to convert the received signal into sound. To perform the receiving process, the receiving unit 3 has a BPF (Band Pass Filter) 31, an A/D converter 32, a demodulation unit 33, a D/A converter 34, and a speaker 35. In FIG. 1, the A/D converter 32 is indicated as A/D, the D/A converter 34 is indicated as D/A, and the speaker 35 is indicated as SP.

受信部3において、入力された受信信号は、BPF31によって帯域が制限されて、A/D変換器32によってデジタル信号に変換された後、復調部33によって所定の復調方式で音声信号に復調される。復調部33からの音声信号は、D/A変換器34によってアナログ信号に変換され、スピーカ35に入力される。スピーカ35からは、入力信号に応じた音声が出力される。 In the receiver 3, the band of the input received signal is limited by the BPF 31, converted to a digital signal by the A/D converter 32, and then demodulated to an audio signal by the demodulator 33 using a predetermined demodulation method. The audio signal from the demodulator 33 is converted to an analog signal by the D/A converter 34 and input to the speaker 35. The speaker 35 outputs audio corresponding to the input signal.

表示部6は、制御部13によって作成された各種の情報を可視化するために表示する。操作部7は、PTTスイッチや各種の操作ボタンを有しており、PTTスイッチや操作ボタンによる操作を受け付け、操作に応じた操作信号を制御部13に出力する。 The display unit 6 displays various information created by the control unit 13 to make it visible. The operation unit 7 has a PTT switch and various operation buttons, accepts operations using the PTT switch and operation buttons, and outputs an operation signal corresponding to the operation to the control unit 13.

無線通信機1において、送信部2、受信部3、送受信切替回路4、アンテナ5、表示部6および操作部7は、後述するファームウェアにしたがって電池10の電力によって動作する動作部101を構成している。 In the wireless communication device 1, the transmitter 2, receiver 3, transmission/reception switching circuit 4, antenna 5, display 6, and operation unit 7 constitute an operating unit 101 that operates using power from a battery 10 in accordance with firmware described below.

インターフェース8は、外部から供給されるファームウェア(ソフトウェア)を受け入れるために設けられている。ファームウェアは、制御部13が動作部101の制御を行うためのソフトウェアである。 The interface 8 is provided to accept firmware (software) supplied from the outside. The firmware is software that allows the control unit 13 to control the operating unit 101.

インターフェース8は、ファームウェアがメモリカードに格納される場合、メモリカードを接続するためのインターフェースである。あるいは、インターフェース8は、ファームウェアが他の装置(例えばパーソナルコンピュータ)から通信ケーブルを介して伝送される場合、通信ケーブルを接続するためのインターフェースである。 Interface 8 is an interface for connecting a memory card when the firmware is stored in a memory card. Alternatively, interface 8 is an interface for connecting a communication cable when the firmware is transmitted from another device (e.g., a personal computer) via a communication cable.

プログラムメモリ9は、ファームウェアを記憶するための不揮発メモリである。プログラムメモリ9は、例えば、フラッシュROM、EEPROM(登録商標)(Electronically Erasable and Programmable Read Only Memory)などによって構成される。 The program memory 9 is a non-volatile memory for storing firmware. The program memory 9 is composed of, for example, a flash ROM, an EEPROM (registered trademark) (Electronically Erasable and Programmable Read Only Memory), etc.

電池10は、乾電池などの一次電池、あるいはリチウムイオン電池などの二次電池によって構成される。電池10からの電力は、プログラムメモリ9および制御部13に常時供給される。 The battery 10 is composed of a primary battery such as a dry cell, or a secondary battery such as a lithium ion battery. Power from the battery 10 is constantly supplied to the program memory 9 and the control unit 13.

電圧検出部11は、電池10の端子電圧を検出する。電圧検出部11は、例えば、後述する制御部13の電圧読取部131(図2参照)を構成するA/D変換器に、検出した端子電圧を入力するために、端子電圧をA/D変換器の変換電圧範囲の電圧に変換するレベル変換回路(分圧抵抗のみから成る回路、分圧抵抗およびアンプを含む回路など)を含んでいる。 The voltage detection unit 11 detects the terminal voltage of the battery 10. The voltage detection unit 11 includes a level conversion circuit (such as a circuit consisting of only voltage-dividing resistors, or a circuit including voltage-dividing resistors and an amplifier) that converts the terminal voltage into a voltage within the conversion voltage range of the A/D converter in order to input the detected terminal voltage to an A/D converter that constitutes a voltage reading unit 131 (see FIG. 2) of the control unit 13, which will be described later.

スイッチ12は、電池10からの電力の電力を動作部101に供給するための給電路102に設けられている。スイッチ12は、ノーマリオフ型のスイッチである。 The switch 12 is provided in the power supply path 102 for supplying power from the battery 10 to the operating unit 101. The switch 12 is a normally-off switch.

制御部13は、動作部101を制御する。具体的には、制御部13は、操作部7からの操作信号に基づいて、送受信切替回路4の切り替え動作を制御したり、無線通信機1の現在の動作状態に応じた情報を作成して表示部6に供給したりする。また、制御部13は、プログラムメモリ9に格納されたファームウェアの更新を行う。 The control unit 13 controls the operation unit 101. Specifically, the control unit 13 controls the switching operation of the transmission/reception switching circuit 4 based on an operation signal from the operation unit 7, creates information corresponding to the current operating state of the wireless communication device 1, and supplies the information to the display unit 6. The control unit 13 also updates the firmware stored in the program memory 9.

(制御部の構成)
次に、制御部13がファームウェアの更新するための構成について説明する。図2は、制御部13を示すブロック図である。
(Configuration of the control unit)
Next, a configuration for updating firmware by the control unit 13 will be described.

図2に示すように、制御部13は、ファームウェアの更新を行うために、電圧読取部131と、記憶部132と、判定部133と、更新制御部134とを有している。制御部13は、例えば、CPU(Central Processing Unit)、RAM(Random Access Memory)、ROM(Read Only Memory)、A/D変換器、タイマなどを含むマイクロコントローラによって構成される。上述したプログラムメモリ9は、制御部13に組み込まれ、ROMによって構成されていてもよい。この場合、ROMは、上述したフラッシュROM、EEPROM(登録商標)などで構成される。 As shown in FIG. 2, the control unit 13 has a voltage reading unit 131, a memory unit 132, a determination unit 133, and an update control unit 134 to perform firmware updates. The control unit 13 is configured, for example, by a microcontroller including a CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), an A/D converter, a timer, etc. The above-mentioned program memory 9 may be incorporated in the control unit 13 and configured by a ROM. In this case, the ROM is configured by the above-mentioned flash ROM, EEPROM (registered trademark), etc.

電圧読取部131は、電圧検出部11によって検出された電池10の端子電圧を読み取る。電圧読取部131は、例えば、上述したマイクロコントローラのA/D変換器によって構成され、入力されるアナログの端子電圧をデジタルの端子電圧に変換することによって、端子電圧を読み取る。 The voltage reading unit 131 reads the terminal voltage of the battery 10 detected by the voltage detection unit 11. The voltage reading unit 131 is configured, for example, by an A/D converter of the microcontroller described above, and reads the terminal voltage by converting the input analog terminal voltage into a digital terminal voltage.

記憶部132は、電圧読取部131によって読み取られた端子電圧を、更新制御部134の指示を受けて一時的に記憶する。このため、記憶部132は、上述したRAMによって構成される。記憶部132には、動作部101に電池10の電力が供給されていない状態での端子電圧(第1端子電圧)と、動作部101に電池10の電力が供給されている状態での端子電圧(第2端子電圧)とが記憶される。 The memory unit 132 temporarily stores the terminal voltage read by the voltage reading unit 131 in response to an instruction from the update control unit 134. For this reason, the memory unit 132 is configured with the above-mentioned RAM. The memory unit 132 stores the terminal voltage (first terminal voltage) when power from the battery 10 is not being supplied to the operation unit 101, and the terminal voltage (second terminal voltage) when power from the battery 10 is being supplied to the operation unit 101.

判定部133は、記憶部132に記憶されている第1端子電圧と第2端子電圧との差電圧と、所定の閾値電圧とを比較する。判定部133は、差電圧が所定電圧以下である場合、ファームウェアの更新が可能であると判定し、差電圧が所定電圧を超える場合、ファームウェアの更新が不可能であると判定する。 The determination unit 133 compares the difference voltage between the first terminal voltage and the second terminal voltage stored in the memory unit 132 with a predetermined threshold voltage. If the difference voltage is equal to or less than the predetermined voltage, the determination unit 133 determines that the firmware can be updated, and if the difference voltage exceeds the predetermined voltage, the determination unit 133 determines that the firmware cannot be updated.

更新制御部134は、ファームウェアの更新を制御するために、上記のCPUの機能の一部として設けられている。更新制御部134は、ユーザによる操作部7への操作に応じてファームウェアの更新に関する一連の処理を開始する。更新制御部134は、ファームウェアの更新処理期間中にファームウェアを更新していることを表示部6に表示させる。更新制御部134は、スイッチ12のON・OFF(開閉)動作の制御、および記憶部132の書込動作の制御を行う。更新制御部134は、判定部133によってファームウェアの更新が可能であると判定された場合、ファームウェアの更新処理を実行する一方、判定部133によってファームウェアの更新が不可能であると判定された場合、ファームウェアの更新処理を実行しない。 The update control unit 134 is provided as part of the functions of the CPU described above in order to control firmware updates. The update control unit 134 starts a series of processes related to firmware updates in response to user operations on the operation unit 7. The update control unit 134 causes the display unit 6 to display that the firmware is being updated during the firmware update process. The update control unit 134 controls the ON/OFF (opening and closing) operation of the switch 12, and controls the writing operation of the memory unit 132. If the determination unit 133 determines that the firmware can be updated, the update control unit 134 executes the firmware update process, whereas if the determination unit 133 determines that the firmware cannot be updated, the update control unit 134 does not execute the firmware update process.

(ファームウェア更新処理)
続いて、制御部13によるファームウェアの更新処理について説明する。図3は、無線通信機1によるファームアップの実行可否を判定する処理手順を示すフローチャートである。図4は、電池10の端子電圧と電池10の使用時間との関係を示す特性図、および当該特性図に対応する、差電圧と電池10の使用時間との関係を示す特性図である。
(Firmware update process)
Next, a description will be given of a firmware update process by the control unit 13. Fig. 3 is a flowchart showing a process procedure for determining whether or not a firmware update can be executed by the wireless communication device 1. Fig. 4 is a characteristic diagram showing the relationship between the terminal voltage of the battery 10 and the usage time of the battery 10, and a characteristic diagram showing the relationship between the differential voltage and the usage time of the battery 10 corresponding to the characteristic diagram.

図3に示すように、まず、更新制御部134は、ユーザによる操作部7の操作に応じて操作部7からファームアップ(ファームウェアの更新)を開始するための開始指示があったか否かを判定する(ステップS1)。更新制御部134は、開始指示がなければ(ステップS1のNO)、開始指示があるまで(ステップS1のYES)、待機する。この状態では、スイッチ12はOFFしている。この状態では、プログラムメモリ9、制御部13動作部などの無線通信機1の一部に微小な電流が流れる。 As shown in FIG. 3, first, the update control unit 134 determines whether or not a start instruction to start a firmware update has been received from the operation unit 7 in response to a user's operation of the operation unit 7 (step S1). If there is no start instruction (NO in step S1), the update control unit 134 waits until a start instruction is received (YES in step S1). In this state, the switch 12 is OFF. In this state, a small current flows through parts of the wireless communication device 1, such as the program memory 9 and the operation unit of the control unit 13.

更新制御部134は、開始指示時を受けると、電圧読取部131によって読み取られた第1端子電圧V1を記憶部132に記憶させる(ステップS2)。次いで、更新制御部134は、スイッチ12をONさせて(ステップS3)、所定時間経過したか否かを判定する(ステップS4)。制御部13における計時は、例えば、上述したタイマによって行われる。この状態では、プログラムメモリ9、制御部13動作部などに加えて動作部101にも電流が流れるため、無線通信機1においては大きな電流が流れる。 When the update control unit 134 receives the start instruction, it stores the first terminal voltage V1 read by the voltage reading unit 131 in the memory unit 132 (step S2). Next, the update control unit 134 turns on the switch 12 (step S3) and determines whether a predetermined time has elapsed (step S4). The timing in the control unit 13 is performed, for example, by the timer described above. In this state, current flows through the program memory 9, the control unit 13 operating unit, and also through the operating unit 101, so a large current flows in the wireless communication device 1.

更新制御部134は、所定時間経過していなければ(ステップS4のNO)、所定時間経過するまで(ステップS4のYES)、待機する。所定時間は、例えば、スイッチ12がOFF状態からON状態に変化してから電池10の端子電圧が安定するまでの時間よりもやや長い時間に設定される。 If the predetermined time has not elapsed (NO in step S4), the update control unit 134 waits until the predetermined time has elapsed (YES in step S4). The predetermined time is set, for example, to a time slightly longer than the time it takes for the terminal voltage of the battery 10 to stabilize after the switch 12 changes from the OFF state to the ON state.

更新制御部134は、スイッチ12のONから所定時間が経過すると、電圧読取部131によって読み取られた第2端子電圧V2を記憶部132に記憶させ(ステップS5)、スイッチ12をOFFさせる。 When a predetermined time has elapsed since the switch 12 was turned ON, the update control unit 134 stores the second terminal voltage V2 read by the voltage reading unit 131 in the memory unit 132 (step S5) and turns off the switch 12.

判定部133は、更新制御部134からスイッチ12をOFFさせたという通知を受けると、第1端子電圧V1と第2端子電圧V2との差電圧ΔVが所定電圧Vth以下であるか否かを判定する(ステップS7)。 When the determination unit 133 receives a notification from the update control unit 134 that the switch 12 has been turned OFF, it determines whether the differential voltage ΔV between the first terminal voltage V1 and the second terminal voltage V2 is equal to or less than the predetermined voltage Vth (step S7).

更新制御部134は、ステップS7において、差電圧ΔVが所定電圧以下であると判定された場合、すなわち、ファームアップ実行可能であると判定された場合、ファームアップを実行して(ステップS8)、処理を終える。更新制御部134は、インターフェース8を介して取り込んだ更新用のファームウェアをプログラムメモリ9に記憶されたファームウェアに上書きすることで更新を実行する。更新制御部134は、ファームアップの実行中に、表示部6にファームアップが実行されていることを表示させる。 If the update control unit 134 determines in step S7 that the differential voltage ΔV is equal to or less than the predetermined voltage, i.e., if it determines that a firmware update can be performed, it executes the firmware update (step S8) and ends the process. The update control unit 134 executes the update by overwriting the firmware stored in the program memory 9 with the firmware for update imported via the interface 8. While the firmware update is being performed, the update control unit 134 causes the display unit 6 to display that a firmware update is being performed.

また、ファームアップの実行中は、スイッチ12がOFF状態となっている。ファームアップの実行中は、動作部101を動作させないので、動作部101による無駄な電力消費を削減することができる。 In addition, while the firmware update is being performed, the switch 12 is in the OFF state. Since the operating unit 101 is not operated while the firmware update is being performed, unnecessary power consumption by the operating unit 101 can be reduced.

更新制御部134は、ステップS7において、差電圧ΔVが所定電圧を超えると判定された場合、すなわち、ファームアップ実行不可能であると判定された場合、ファームアップを中止して(ステップS9)、処理を終える。この場合、更新制御部134は、電池10の残量が不足しており、ファームアップが実行できなかったことを表示部6に表示させる。 If the update control unit 134 determines in step S7 that the differential voltage ΔV exceeds the predetermined voltage, i.e., if it determines that the firmware update cannot be performed, it stops the firmware update (step S9) and ends the process. In this case, the update control unit 134 causes the display unit 6 to display that the remaining charge of the battery 10 is insufficient and that the firmware update could not be performed.

(効果)
一般に、電池は、残量がまだ十分ある状態では、負荷を重くしても、端子電圧がわずかに低下するが、残量が少なくなった状態では、内部抵抗が大きくなるので、負荷を重くすると、端子電圧が大きく低下する。このため、電池10の残量がまだ十分ある状態の差電圧ΔVは小さく、電池10の残量が少なくなった状態の差電圧ΔVは大きくなる。
(effect)
Generally, when the battery has a sufficient remaining charge, the terminal voltage drops slightly even if the load is increased, but when the remaining charge is low, the internal resistance increases, so increasing the load causes a large drop in the terminal voltage. Therefore, when the battery 10 still has a sufficient remaining charge, the voltage difference ΔV is small, and when the battery 10 has a low remaining charge, the voltage difference ΔV is large.

そこで、判定部133は、動作部101に電力が供給されていない軽負荷状態における第1端子電圧と、動作部101に電力が供給されている重負荷状態における第2端子電圧との差電圧ΔVに基づいて、ファームアップの実行可否を判定する。具体的には、上述したように、判定部133は、差電圧ΔVが所定電圧Vth以下である場合、ファームアップの更新が可能であると判定し、差電圧ΔVが所定電圧Vthを超える場合、ファームアップの更新が不可能であると判定する。 The determination unit 133 determines whether or not a firmware update can be performed based on the differential voltage ΔV between the first terminal voltage in a light load state where no power is supplied to the operating unit 101 and the second terminal voltage in a heavy load state where power is supplied to the operating unit 101. Specifically, as described above, the determination unit 133 determines that a firmware update can be performed if the differential voltage ΔV is equal to or less than the predetermined voltage Vth, and determines that a firmware update cannot be performed if the differential voltage ΔV exceeds the predetermined voltage Vth.

そして、更新制御部134は、判定部133によるファームアップ更新可能の判定に基づいてファームアップを実行する。また、更新制御部134は、判定部133によるファームアップ更新不可能の判定に基づいてファームアップを中止する(実行しない)。 Then, the update control unit 134 executes the firmware update based on the determination by the determination unit 133 that the firmware update is possible. Also, the update control unit 134 cancels (does not execute) the firmware update based on the determination by the determination unit 133 that the firmware update is not possible.

特に、図4に示すように、ある種の電池10(例えばニッケル水素電池)の端子電圧Vtは、使用時間Tが経過しても、ほぼ一定値を維持しているが、電池10の残量がなくなる直前では急激に低下する。そのため、端子電圧Vtによる電池残量閾値の設定が困難であり、ソフトウェアの更新に失敗するという問題が生じる。 In particular, as shown in FIG. 4, the terminal voltage Vt of a certain type of battery 10 (e.g., a nickel-metal hydride battery) remains at a nearly constant value even after the usage time T has elapsed, but drops sharply just before the battery 10 runs out of power. This makes it difficult to set the battery power threshold based on the terminal voltage Vt, which can lead to problems such as software update failures.

ここで、差電圧ΔVに着目すると、電池10の残量がまだ十分ある状態の使用時間T1の時点では、差電圧ΔVが小さく所定電圧Vth以下となるため、ファームアップの更新が可能であると正しく判定される。一方、電池10の残量が少なくなる使用時間T2の時点では、差電圧ΔVが所定電圧Vthを超えるので、ファームアップの更新が不可能であると正しく判定される。 Here, looking at the voltage difference ΔV, at usage time T1 when the battery 10 still has sufficient remaining power, the voltage difference ΔV is small and below the predetermined voltage Vth, so it is correctly determined that the firmware can be updated. On the other hand, at usage time T2 when the battery 10 has little remaining power, the voltage difference ΔV exceeds the predetermined voltage Vth, so it is correctly determined that the firmware cannot be updated.

したがって、ファームアップを実行する前に、電池10の残量がファームアップに十分足りるか否かを判定することができる。そして、電池10の残量が少なくなった状態でファームアップを実行しないことにより、ファームアップの実行中に電池10の残量がなくなり、ファームアップが中断されてしまうという不都合を回避することができる。 Therefore, before executing a firmware update, it is possible to determine whether the remaining charge of the battery 10 is sufficient for the firmware update. By not executing a firmware update when the remaining charge of the battery 10 is low, it is possible to avoid the inconvenience of the battery 10 running out of charge while the firmware update is being executed, causing the firmware update to be interrupted.

上記のように、第2端子電圧V2の変化特性によって電池10の残量をある程度予測できる。このため、所定電圧Vthは、上記の重負荷状態における使用時間Tに対する第2端子電圧V2の変化特性と、ファームアップに要する電力とに基づいて、ある程度のマージンを含めて設定される。ファームアップに要する電力は、ファームウェアのサイズに基づいて予め算出される。これにより、電池10の残量がファームアップに十分足りるか否かの判定をより正確に行うことができる。 As described above, the remaining charge of the battery 10 can be predicted to some extent from the change characteristics of the second terminal voltage V2. Therefore, the predetermined voltage Vth is set with a certain margin based on the change characteristics of the second terminal voltage V2 with respect to the usage time T in the above-mentioned heavy load state and the power required for firmware upgrade. The power required for firmware upgrade is calculated in advance based on the size of the firmware. This makes it possible to more accurately determine whether the remaining charge of the battery 10 is sufficient for firmware upgrade.

また、送受信切替回路4をラッチングリレーによって構成する場合、ラッチングリレーにおいて、切り替え動作時にしか、可動接点を駆動するためのコイルに電流が流されない。このため、ラッチングリレーを切り替えないときにコイルに電流を流すと、動作部101に流れる電流が増大するので、第2端子電圧V2の低下幅を大きくすることができる。このように、第2端子電圧の読み取り時に、ある程度大きさの決まった電流を動作部101に流すことで、差電圧の精度を高めることができる。 Furthermore, when the transmission/reception switching circuit 4 is configured using a latching relay, current flows through the coil for driving the movable contact in the latching relay only during switching operation. For this reason, if current flows through the coil when the latching relay is not switched, the current flowing through the operating unit 101 increases, and the amount of decrease in the second terminal voltage V2 can be increased. In this way, by passing a current of a certain magnitude through the operating unit 101 when reading the second terminal voltage, the accuracy of the differential voltage can be improved.

なお、ラッチングリレーは、送受信切替回路4に用いられることに限定されない。ラッチングリレーは、例えば、図1には示されていない、複数のフィルタの切り替えを行う切替回路などに用いられてもよい。このような場合でも、送受信切替回路4にラッチングリレーを用いた上記の場合と同様、第2端子電圧V2の低下幅を大きくすることにより、差電圧の精度を高めることができる。 Note that the latching relay is not limited to being used in the transmission/reception switching circuit 4. The latching relay may be used, for example, in a switching circuit that switches between multiple filters (not shown in FIG. 1). Even in such a case, the accuracy of the differential voltage can be improved by increasing the amount of drop in the second terminal voltage V2, as in the above case where a latching relay is used in the transmission/reception switching circuit 4.

〔ソフトウェアによる実現例〕
無線通信機1(以下、「装置」と呼ぶ)の機能は、当該装置としてコンピュータを機能させるためのプログラムであって、当該装置の各制御ブロック(特に制御部13に含まれる各部)としてコンピュータを機能させるためのプログラムにより実現することができる。
[Software implementation example]
The functions of the wireless communication device 1 (hereinafter referred to as the "device") can be realized by a program for causing a computer to function as the device, and a program for causing a computer to function as each control block of the device (particularly each part included in the control unit 13).

この場合、上記装置は、上記プログラムを実行するためのハードウェアとして、少なくとも1つの制御装置(例えばプロセッサ)と少なくとも1つの記憶装置(例えばメモリ)を有するコンピュータを備えている。この制御装置と記憶装置により上記プログラムを実行することにより、上記各実施形態で説明した各機能が実現される。 In this case, the device includes a computer having at least one control device (e.g., a processor) and at least one storage device (e.g., a memory) as hardware for executing the program. The control device and storage device execute the program, thereby realizing each of the functions described in each of the above embodiments.

上記プログラムは、一時的ではなく、コンピュータ読み取り可能な、1または複数の記録媒体に記録されていてもよい。この記録媒体は、上記装置が備えていてもよいし、備えていなくてもよい。後者の場合、上記プログラムは、有線または無線の任意の伝送媒体を介して上記装置に供給されてもよい。 The program may be recorded on one or more computer-readable recording media, not on a temporary basis. The recording media may or may not be included in the device. In the latter case, the program may be provided to the device via any wired or wireless transmission medium.

また、上記各制御ブロックの機能の一部または全部は、論理回路により実現することも可能である。例えば、上記各制御ブロックとして機能する論理回路が形成された集積回路も本発明の範疇に含まれる。 In addition, some or all of the functions of each of the above control blocks can be realized by logic circuits. For example, an integrated circuit in which a logic circuit that functions as each of the above control blocks is formed is also included in the scope of the present invention.

〔まとめ〕
本実施形態に係る電子機器は、ソフトウェアにしたがって電池の電力によって動作する動作部と、前記ソフトウェアを記憶するメモリと、前記動作部に前記電池の電力が供給されていない状態での前記電池の第1端子電圧と、前記動作部に前記電池の電力が供給されている状態での前記電池の第2端子電圧との差電圧が所定電圧以下である場合、前記メモリにおける前記ソフトウェアを更新する一方、前記差電圧が前記所定電圧を超える場合、前記メモリにおける前記ソフトウェアを更新しない更新制御部と、を備えている。
〔summary〕
The electronic device of this embodiment comprises an operating unit that operates using battery power in accordance with software, a memory that stores the software, and an update control unit that updates the software in the memory when the differential voltage between a first terminal voltage of the battery when battery power is not supplied to the operating unit and a second terminal voltage of the battery when battery power is supplied to the operating unit is equal to or less than a predetermined voltage, but does not update the software in the memory when the differential voltage exceeds the predetermined voltage.

上記の構成によれば、ソフトウェアを更新する前に、電池の残量がソフトウェアの更新に十分足りるか否かを判定することができる。そして、電池の残量が少なくなった状態でソフトウェアの更新を実行しないことにより、ソフトウェアの更新の実行中に電池の残量がなくなり、ソフトウェアの更新が中断されてしまうという不都合を回避することができる。 With the above configuration, it is possible to determine whether the remaining battery power is sufficient for the software update before updating the software. By not performing the software update when the remaining battery power is low, it is possible to avoid the inconvenience of the battery running out of power during the software update, causing the software update to be interrupted.

前記電子機器において、前記所定電圧は、前記第2端子電圧の変化特性に基づいて設定されていることが好ましい。 In the electronic device, it is preferable that the predetermined voltage is set based on the change characteristics of the second terminal voltage.

上記の構成によれば、第2端子電圧の変化特性によって電池の残量をある程度予測できる。このため、所定電圧が第2端子電圧の特性に基づいて設定されることにより、電池の残量がソフトウェアの更新に十分足りるか否かの判定をより正確に行うことができる。 According to the above configuration, the remaining battery charge can be predicted to some extent based on the change characteristics of the second terminal voltage. Therefore, by setting the predetermined voltage based on the characteristics of the second terminal voltage, it is possible to more accurately determine whether the remaining battery charge is sufficient for software updates.

前記電子機器において、前記動作部は、ラッチングリレーを有していることが好ましい。 In the electronic device, it is preferable that the operating unit has a latching relay.

上記の構成によれば、ラッチングリレーを切り替えないときにコイルに電流を流すと、動作部に流れる電流が増大するので、第2端子電圧の低下幅を大きくすることができる。このように、第2端子電圧の読み取り時に、ある程度大きさの決まった電流を動作部に流すことで、差電圧の精度を高めることができる。 According to the above configuration, when a current is passed through the coil when the latching relay is not switched, the current flowing through the operating unit increases, and the amount of drop in the second terminal voltage can be increased. In this way, by passing a current of a certain magnitude through the operating unit when reading the second terminal voltage, the accuracy of the differential voltage can be improved.

前記電子機器は無線通信機であることが好ましい。 The electronic device is preferably a wireless communication device.

上記の構成によれば、無線通信機におけるソフトウェアの更新をより確実に行うことができる。 The above configuration allows software updates in wireless communication devices to be performed more reliably.

〔付記事項〕
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
[Additional Notes]
The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention.

1 無線通信機(電子機器)
9 プログラムメモリ(メモリ)
10 電池
101 動作部
134 更新制御部
V1 第1端子電圧
V2 第2端子電圧
ΔV 差電圧
Vth 所定電圧
1 Radio communication equipment (electronic equipment)
9 Program Memory (Memory)
10 Battery 101 Operation unit 134 Update control unit V1 First terminal voltage V2 Second terminal voltage ΔV Differential voltage Vth Predetermined voltage

Claims (3)

ソフトウェアにしたがって電池の電力によって動作する動作部と、
前記ソフトウェアを記憶するメモリと、
前記動作部に前記電池の電力が供給されていない状態での前記電池の第1端子電圧と、前記動作部に前記電池の電力が供給されている状態での前記電池の第2端子電圧との差電圧が所定電圧以下である場合、前記メモリにおける前記ソフトウェアを更新する一方、前記差電圧が前記所定電圧を超える場合、前記メモリにおける前記ソフトウェアを更新しない更新制御部と、を備え、
前記動作部は、ラッチングリレーを有し、
前記更新制御部は、前記第2端子電圧の取得時に、前記ラッチングリレーを切り替えさせないように、前記ラッチングリレーのコイルに電流を流すことを特徴とする電子機器。
an operating unit that operates on battery power in accordance with software;
A memory for storing the software;
an update control unit that updates the software in the memory when a difference in voltage between a first terminal voltage of the battery in a state in which power from the battery is not supplied to the operating unit and a second terminal voltage of the battery in a state in which power from the battery is supplied to the operating unit is equal to or less than a predetermined voltage, and does not update the software in the memory when the difference in voltage exceeds the predetermined voltage;
The operating unit has a latching relay,
the update control unit, when acquiring the second terminal voltage, causes a current to flow through a coil of the latching relay so as not to switch the latching relay .
前記所定電圧は、前記第2端子電圧の変化特性に基づいて設定されていることを特徴とする請求項1に記載の電子機器。 The electronic device according to claim 1, characterized in that the predetermined voltage is set based on the change characteristics of the second terminal voltage. 前記電子機器は無線通信機であることを特徴とする請求項1または2に記載の電子機器。 3. The electronic device according to claim 1, wherein the electronic device is a wireless communication device.
JP2021013910A 2021-01-29 2021-01-29 Electronics Active JP7587137B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021013910A JP7587137B2 (en) 2021-01-29 2021-01-29 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021013910A JP7587137B2 (en) 2021-01-29 2021-01-29 Electronics

Publications (2)

Publication Number Publication Date
JP2022117296A JP2022117296A (en) 2022-08-10
JP7587137B2 true JP7587137B2 (en) 2024-11-20

Family

ID=82749617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021013910A Active JP7587137B2 (en) 2021-01-29 2021-01-29 Electronics

Country Status (1)

Country Link
JP (1) JP7587137B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006085534A (en) 2004-09-17 2006-03-30 Fujitsu Ltd Information processing apparatus, software update method for information processing apparatus, and program
JP2013084143A (en) 2011-10-11 2013-05-09 Denso Corp On-vehicle communication device
JP2013134848A (en) 2011-12-26 2013-07-08 Yazaki Corp Latching relay drive circuit for vehicle
JP2013218623A (en) 2012-04-12 2013-10-24 Sharp Corp Information processing device, update method, and update program
JP2020016582A (en) 2018-07-26 2020-01-30 ラピスセミコンダクタ株式会社 Semiconductor device and method for detecting remaining amount of battery

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10153647A (en) * 1996-11-26 1998-06-09 Casio Comput Co Ltd Battery level detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006085534A (en) 2004-09-17 2006-03-30 Fujitsu Ltd Information processing apparatus, software update method for information processing apparatus, and program
JP2013084143A (en) 2011-10-11 2013-05-09 Denso Corp On-vehicle communication device
JP2013134848A (en) 2011-12-26 2013-07-08 Yazaki Corp Latching relay drive circuit for vehicle
JP2013218623A (en) 2012-04-12 2013-10-24 Sharp Corp Information processing device, update method, and update program
JP2020016582A (en) 2018-07-26 2020-01-30 ラピスセミコンダクタ株式会社 Semiconductor device and method for detecting remaining amount of battery

Also Published As

Publication number Publication date
JP2022117296A (en) 2022-08-10

Similar Documents

Publication Publication Date Title
EP0940963A2 (en) Power supply apparatus and method for mobile communication terminal
US5438248A (en) Method and apparatus for recognizing different types of batteries
EP0776116A2 (en) Mobile terminal with an improved power key lock function
US11438687B2 (en) Speaker device and assignment method
US7068013B2 (en) Battery circuit with non-volitable memory and thermistor on a single line
JP7587137B2 (en) Electronics
JP2017046228A (en) Portable wireless terminal and antenna switching method
JPH11318027A (en) Power break protection circuit for electronic device
WO2019202718A1 (en) Electric musical instrument system
JP3869683B2 (en) Rechargeable telephone terminal power supply control device
US5371800A (en) Speech detection circuit
JP4274706B2 (en) Pack battery
JP2001211480A (en) Mobile communication terminal device and method of reporting state of charge thereof
JPH11284560A (en) Mobile phone device charging method
JP2012222914A (en) Battery remaining capacity control device, battery remaining capacity control method, and program
CN110769488A (en) Method and device for transmitting signal and computer readable storage medium
JP7368981B2 (en) Battery packs and electronic equipment
KR20020068576A (en) Method for displaying of battery residue or receive sensitivity in portable terminal
JP5147108B2 (en) Mobile device
KR20040105137A (en) Device and the Method for controlling the user data of mobile phone
KR20050094171A (en) Method for protecting user data in personal digital assistant with phone
JP7502640B2 (en) Electronic device and control method thereof
JP2003018076A (en) Radio terminal unit
KR101147746B1 (en) Apparatus and Method for Providing Emergency Call Using Mobile Phone
JP4332792B2 (en) Wireless equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20231012

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240612

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240618

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240819

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20241008

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241021

R150 Certificate of patent or registration of utility model

Ref document number: 7587137

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150