Electronic equipment
The electronic device uses differential voltage monitoring to ensure sufficient battery power for software updates, addressing the issue of sudden voltage drops and ensuring reliable software updates.
Patent Information
- Application Number
- JP2021013910
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2024-11-20
- Estimated Expiration
- 2041-01-29
AI Technical Summary
Existing software updating methods struggle with batteries that maintain a constant voltage until near depletion, leading to sudden voltage drops during updates, causing power cutoffs and software update failures.
An electronic device with a voltage detection system that compares the difference in battery voltage before and during software updates, determining if the differential voltage is within a predetermined threshold to ensure sufficient battery power for the update process.
This approach reliably ensures software updates are completed without battery power loss, accurately predicting battery capacity based on voltage changes, thereby preventing interruptions.
Smart Images

Figure 0007587137000001 
Figure 0007587137000002 
Figure 0007587137000003
Abstract
Description
[Technical field]
[0001] The present invention relates to electronic devices. [Background technology]
[0002] Software is essential for many electronic devices today because they are controlled by processors, etc. In addition, in such electronic devices, it is common to update the software as the software is revised.
[0003] For example, Patent Document 1 describes a method of executing a software update when the current voltage value of the battery 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. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2006-85534 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, the technology described in Patent Document 1 requires the setting of a battery remaining capacity threshold. In addition, it is difficult to set the battery remaining capacity threshold for a battery that has the characteristic that the voltage remains almost constant until the battery runs out and then the voltage drops suddenly. 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.
[0006] An aspect of the present invention aims to update software more reliably. [Means for solving the problem]
[0007] In order to solve the above problems, an electronic device according to one embodiment of the present invention includes 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 a 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, and does not update the software in the memory when the differential voltage exceeds the predetermined voltage. Effect of the Invention
[0008] According to one aspect of the present invention, software can be updated more reliably. [Brief description of the drawings]
[0009] [Figure 1] 1 is a block diagram showing a wireless communication device according to an embodiment of the present invention; [Diagram 2] 2 is a block diagram showing a control unit of the wireless communication device; [Diagram 3] 10 is a flowchart showing a process for determining whether firmware update can be performed by the wireless communication device. [Figure 4] 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. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] [Embodiment] Hereinafter, one embodiment of the present invention will be described with reference to FIGS.
[0011] (Configuration of wireless communication device) FIG. 1 is a block diagram showing a wireless communication device 1 according to the present embodiment.
[0012] 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.
[0013] The transmitting unit 2 performs a transmission process of converting 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.
[0014] In the transmitting unit 2, an audio signal output from a microphone 21 is converted into a digital signal by an A / D converter 22, and then modulated into a modulated signal by a modulation unit 23 using a predetermined modulation method. The modulated signal is converted into an analog signal by a D / A converter 24, and then only a predetermined band is passed by a BPF 25. The input level of the modulated signal that has passed through the BPF 25 to a power amplifier 27 is limited by an 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 a level of power required for communication.
[0015] 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 a 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.
[0016] The transmission / reception switching circuit 4 is a circuit that switches 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 includes a semiconductor switch, a relay (particularly a latching relay), and the like.
[0017] The receiving unit 3 performs a receiving process to convert the received signal into sound. In order 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.
[0018] In the receiver 3, the band of the input received signal is limited by the BPF 31, and the signal is converted into a digital signal by the A / D converter 32, and then demodulated into an audio signal by a predetermined demodulation method by the demodulator 33. The audio signal from the demodulator 33 is converted into 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.
[0019] The display unit 6 displays various information created by the control unit 13 for visualization. The operation unit 7 has a PTT switch and various operation buttons, accepts operations by the PTT switch and the operation buttons, and outputs an operation signal according to the operation to the control unit 13.
[0020] 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.
[0021] The interface 8 is provided for receiving firmware (software) supplied from an external source. The firmware is software that enables the control unit 13 to control the operation unit 101.
[0022] The interface 8 is an interface for connecting a memory card when the firmware is stored in a memory card, or an interface for connecting a communication cable when the firmware is transmitted from another device (e.g., a personal computer) via a communication cable.
[0023] The program memory 9 is a non-volatile memory for storing firmware, and is configured by, for example, a flash ROM, an EEPROM (registered trademark) (Electronically Erasable and Programmable Read Only Memory), or the like.
[0024] 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.
[0025] Voltage detection unit 11 detects the terminal voltage of battery 10. 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 control unit 13, which will be described later.
[0026] The switch 12 is provided in a power supply path 102 for supplying power from the battery 10 to an operating unit 101. The switch 12 is a normally-off switch.
[0027] 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 according to the current operation state of the wireless communication device 1, and supplies the information to the display unit 6. In addition, the control unit 13 updates the firmware stored in the program memory 9.
[0028] (Control Unit Configuration) Next, a description will be given of a configuration for updating firmware by the control unit 13. FIG.
[0029] 2, the control unit 13 has a voltage reading unit 131, a storage unit 132, a determination unit 133, and an update control unit 134 in order to update the firmware. The control unit 13 is configured by a microcontroller including, for example, a CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), an A / D converter, a timer, and the like. 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), and the like.
[0030] 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.
[0031] The storage 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 storage unit 132 is configured with the above-mentioned RAM. The storage unit 132 stores the terminal voltage (first terminal voltage) when power from the battery 10 is not supplied to the operation unit 101, and the terminal voltage (second terminal voltage) when power from the battery 10 is supplied to the operation unit 101.
[0032] The determination unit 133 compares the difference voltage between the first terminal voltage and the second terminal voltage stored in the storage 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.
[0033] The update control unit 134 is provided as a part of the functions of the CPU in order to control firmware updates. The update control unit 134 starts a series of processes related to firmware updates in response to a user's operation 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 / closing) operation of the switch 12 and the writing operation of the storage 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.
[0034] (Firmware update process) Next, a firmware update process by the control unit 13 will be described. Fig. 3 is a flowchart showing a process procedure for determining whether firmware update can be performed 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.
[0035] 3, first, the update control unit 134 judges whether or not a start instruction for starting 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 there is a start instruction (YES in step S1). In this state, the switch 12 is OFF. In this state, a small current flows in parts of the wireless communication device 1, such as the program memory 9 and the operation unit of the control unit 13.
[0036] 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 storage 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 by, for example, the above-mentioned timer. In this state, a current flows not only in the program memory 9, the control unit 13 operating unit, etc. but also in the operating unit 101, so that a large current flows in the wireless communication device 1.
[0037] 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.
[0038] 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 storage unit 132 (step S5), and turns the switch 12 OFF.
[0039] When the determination unit 133 receives a notification from the update control unit 134 that the switch 12 has been turned OFF, the determination unit 133 determines whether or not the differential voltage ΔV between the first terminal voltage V1 and the second terminal voltage V2 is equal to or lower than a predetermined voltage Vth (step S7).
[0040] If it is determined in step S7 that the differential voltage ΔV is equal to or less than the predetermined voltage, that is, if it is determined that a firmware update is executable, the update control unit 134 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. During the execution of the firmware update, the update control unit 134 causes the display unit 6 to display that a firmware update is being executed.
[0041] During the execution of the firmware update, the switch 12 is in the OFF state. Since the operation unit 101 is not operated during the execution of the firmware update, unnecessary power consumption by the operation unit 101 can be reduced.
[0042] If it is determined in step S7 that the differential voltage ΔV exceeds the predetermined voltage, that is, if it is determined that the firmware update cannot be executed, the update control unit 134 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 executed.
[0043] (effect) Generally, when a battery still has sufficient remaining power, the terminal voltage drops slightly even if the load is increased, but when the remaining power is low, the internal resistance increases, so increasing the load causes a large drop in the terminal voltage. For this reason, the voltage difference ΔV is small when the battery 10 still has sufficient remaining power, and the voltage difference ΔV is large when the battery 10 has little remaining power.
[0044] Therefore, the determination unit 133 determines whether or not the firmware can be updated based on the differential voltage ΔV between the first terminal voltage in a light load state where power is not supplied to the operation unit 101 and the second terminal voltage in a heavy load state where power is supplied to the operation unit 101. Specifically, as described above, when the differential voltage ΔV is equal to or less than the predetermined voltage Vth, the determination unit 133 determines that the firmware can be updated, and when the differential voltage ΔV exceeds the predetermined voltage Vth, determines that the firmware cannot be updated.
[0045] 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 impossible.
[0046] 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 substantially constant value even after the usage time T has elapsed, but drops suddenly 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.
[0047] Here, focusing on the voltage difference ΔV, at the time of usage time T1 when the remaining charge of the battery 10 is still sufficient, the voltage difference ΔV is small and equal to or less than the predetermined voltage Vth, so it is correctly determined that the firmware can be updated. On the other hand, at the time of usage time T2 when the remaining charge of the battery 10 is low, the voltage difference ΔV exceeds the predetermined voltage Vth, so it is correctly determined that the firmware cannot be updated.
[0048] Therefore, before executing the firmware update, it is possible to determine whether the remaining charge of the battery 10 is sufficient for the firmware update. Also, by not executing the 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 during the firmware update and the firmware update being interrupted.
[0049] As described above, the remaining charge of the battery 10 can be predicted to some extent by the change characteristic of the second terminal voltage V2. Therefore, the predetermined voltage Vth is set with a certain margin based on the change characteristic 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.
[0050] Furthermore, when the transmission / reception switching circuit 4 is configured with a latching relay, in the latching relay, current flows through the coil for driving the movable contact only during switching operation. For this reason, if a 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.
[0051] It should be noted 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 a plurality of filters, not shown in Fig. 1. Even in such a case, as in the above case where a latching relay is used in the transmission / reception switching circuit 4, the accuracy of the differential voltage can be improved by increasing the amount of drop in the second terminal voltage V2.
[0052] [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).
[0053] 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 to realize each function described in each of the above embodiments.
[0054] The program may be non-transitory and may be recorded in one or more computer-readable recording media. 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.
[0055] In addition, some or all of the functions of each of the control blocks can be realized by a logic circuit. For example, an integrated circuit in which a logic circuit that functions as each of the control blocks is formed is also included in the scope of the present invention.
[0056] 〔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 a 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.
[0057] According to 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 updating the software 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 and the software update being interrupted.
[0058] In the electronic device, it is preferable that the predetermined voltage is set based on a change characteristic of the second terminal voltage.
[0059] 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 update.
[0060] In the electronic device, it is preferable that the operation portion has a latching relay.
[0061] 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, so 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.
[0062] The electronic device is preferably a wireless communication device.
[0063] According to the above configuration, software in the wireless communication device can be updated more reliably.
[0064] [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. [Explanation of symbols]
[0065] 1 Radio communication equipment (electronic equipment) 9 Program Memory (Memory) 10 batteries 101 Operating part 134 Update control section V1 First terminal voltage V2 Terminal 2 voltage ΔV Differential voltage Vth specified voltage
Claims
1. 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. 2. The electronic device according to claim 1, wherein the predetermined voltage is set based on a change characteristic of the second terminal voltage.
3. 3. The electronic device according to claim 1, wherein the electronic device is a wireless communication device.
Citation Information
Patent Citations
Method for detecting battery residual capacity
JP1998153647A
Information processor, software update method of information processor, and program
JP2006085534A
On-vehicle communication device
JP2013084143A
Latching relay drive circuit for vehicle
JP2013134848A
Information processing device, update method, and update program
JP2013218623A
