This application claims the priority benefit of Chinese application serial no. 202110281518.7, filed on Mar. 16, 2021. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a power detection technology, and in particular to an Internet of Things device and a battery power detection method.
Internet of Things (IoT) devices have the ability to transmit data over a network and can be used in areas such as transportation and logistics, industrial manufacturing, or smart environments. In some application contexts, Internet of Things devices may only be powered by batteries. For example, trackers of logistics routes, door and window opening and closing alarms, etc. It should be noted that while batteries can enhance mobility, Internet of Things devices will inevitably suffer from power depletion.
The disclosure is directed to an Internet of Things device and a battery power detection method, which detects a power state based on power characteristics of a battery, and detects a low battery state accordingly.
According to an embodiment of the disclosure, the Internet of Things device includes (but is not limited to) a battery, an antenna, a radio frequency module, and a processor. The radio frequency module is coupled to the battery and the antenna. The radio frequency module is configured to transmit or receive signals through the antenna, and the radio frequency module has a first power state and a second power state. The processor is coupled to the battery and the radio frequency module. The processor is configured to detect a first voltage of the battery corresponding to the radio frequency module operating in the first power state, detect a second voltage of the battery corresponding to the radio frequency module operating in the second power state, compare a voltage difference and a difference threshold between the first voltage and the second voltage, and determine that the battery is in a low battery state according to a comparison result. The first power state is power saving, standby, sleep, or off. The second power state is wake-up, operational, or normal.
According to an embodiment of the disclosure, the battery power detection method includes (but is not limited to) the following steps. A first voltage of a battery corresponding to a radio frequency module operating in a first power state is detected. A second voltage of the battery corresponding to the radio frequency module operating in a second power state is detected. A voltage difference and a difference threshold between the first voltage and the second voltage are compared, and that the battery is in a low battery state according to a comparison result is determined. The battery provides power to the radio frequency module. The first power state is power saving, standby, sleep, or off. The second power state is wake-up, operational, or normal.
Based on the above, in the Internet of Things device and the battery power detection method according to the embodiment of the disclosure, the first voltage (e.g., a highest voltage) and the second voltage (e.g., a lowest voltage) of the Internet of Things device are observed during a complete report event cycle (from hibernate to wake-up to report event to hibernate, which occurs periodically), and a battery state is inferred based on the voltage difference between the two. Thus, a battery voltage is monitored for a short period of time to determine the battery state.
To make the aforementioned more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
The battery 110 is, for example, a carbon-zinc battery, an alkaline manganese battery, a lithium battery, other disposable batteries (primary batteries), a lithium ion battery, a nickel-hydrogen battery, a nickel-cadmium battery, or other rechargeable batteries (also known as secondary batteries). The battery 110 is configured to provide power to all or part of the components of the Internet of Things device 100.
The radio frequency module 120 is coupled to the battery 110 and the antenna 125 to receive power from the battery 110. The radio frequency module 120 supports, for example, a low-power wide-area network (LPWAN), fourth-generation or fifth-generation mobile communication, Z-Wave, Wi-Fi, Bluetooth mesh network, or other wireless communication technology. The radio frequency module 120 is configured to transmit or receive signals through the antenna 125. It should be noted that, without being limited to the antenna 125, the radio frequency module 120 also includes, for example, a digital-to-analog converter, an analog-to-digital converter, and a communication protocol processor, depending on actual requirements.
The processor 130 is coupled to the battery 110 to receive power from the battery 110. In addition, the processor 130 is coupled to the radio frequency module 120. The processor 130 may be implemented, for example, by a programmable unit such as a central processing unit (CPU), a microprocessor, a microcontroller, a digital signal processing (DSP) chip, a field programmable logic gate array (FPGA), or a standalone electronic device or integrated circuit (IC).
According to an embodiment, the Internet of Things device 100 further includes a satellite locator 140, such as one that supports the Global Positioning System (GPS), BeiDou satellite navigation system, Galileo positioning system, or other satellite-based positioning system.
According to an embodiment, the Internet of Things device 100 further includes a sensor 150. The sensor 150 may be a detection device for light, heat, gas, force, magnetism, humidity, liquid, sound, or other sensory characteristics.
When the radio frequency module 120 is in the first power state, the processor 130 may measure a power voltage Vdd (assuming that the battery 110 is connected to ground GND) to know a current voltage of the battery 110 (as the first voltage). According to some embodiments, the processor 130 monitors the power voltage Vdd, and takes a highest value, a lowest value, an average value, or other representative value measured by the processor 130 during a period when the radio frequency module 120 operates at the first power state as the first voltage. It should be noted that the processor 130 may provide a pin to connect to the battery 110 (i.e., measure a voltage directly with a built-in analog-to-digital converter), or may detect the voltage of the battery 100 through an external voltage detection circuit (not shown).
The processor 130 may detect a second voltage of the battery corresponding to the radio frequency module 120 operating in the second power state (step S230). Specifically, the processor 130 may control the radio frequency module 120 switching from the first power state to the second power state. For example, the processor 130 starts the power of the radio frequency module 120 to switch from the off state to the normal state, or to wake up the frequency module 120 from the power saving/sleep state.
When the radio frequency module 120 is in the second power state, the processor 130 may measure the power voltage Vdd to know the current voltage of the battery 110 (as the second voltage). In other words, the first voltage and the second voltage are the battery voltages detected by the processor 130 while the radio frequency module 120 operating in different power states. According to some embodiments, the processor 130 monitors the power voltage Vdd, and takes a highest voltage, a lowest voltage, an average voltage, or other representative voltage measured by the processor 130 during a period when the radio frequency module 120 operates at the second power state as the second voltage.
According to some embodiments, when the radio frequency module 120 is in the second power state, the radio frequency module 120 may report status or events through the antenna 125. The status or events may originate from the processor 130, the satellite locator 140, or the sensor 150, for example, based on abnormalities or states of the device detected by the processor 130, location information provided by the satellite locator 140, or sensing results detected by the sensor 150.
The processor 130 may compare a voltage difference and a difference threshold between the first voltage and the second voltage, and determine that the battery is in a low battery state according to a comparison result (step S250).
The processor 130 may set a difference threshold to be used as a baseline for determining the low battery state. In response to the voltage difference between the first voltage and the second voltage being less than the difference threshold, the processor 130 may determine that the battery 110 is not yet in a low battery state. In response to the voltage difference being greater than or equal to the difference threshold, the processor 130 may determine that the battery 110 is in a low battery state. The voltage difference is, for example, a value obtained by subtracting the second voltage from the first voltage.
According to an embodiment, in response to detecting that the battery 110 is in a low battery state, the processor 130 may report events related to the low battery state through the radio frequency module 120.
According to an embodiment, the processor 130 may accumulate a number of times the battery 110 is judged to be in a low battery state. For example, in response to detecting that the battery 110 is in a low battery state, the number of times recorded by a counter plus one. The processor 130 may determine that the battery 110 is in a low battery state according to the number of times. In order to avoid misjudgment of the low battery state caused by sudden abnormal power consumption, the processor 130 may accumulate a specific number of times before determining the battery 110 as low battery state. For example, in response to an accumulated number of times greater than a count threshold, the processor 130 then determines that the battery 110 is in a low battery state. In response to the accumulated number of times not being greater than the count threshold, the processor 130 determines that the battery 110 is still not in a low battery state. According to some embodiments, the number of times needs to be accumulated continuously, otherwise the processor 130 will recount.
The processor 130 determines whether the battery 110 has been detected as low battery state (step S445). In response to not yet detecting the low battery state, the processor 130 calculates the voltage difference between the first voltage and the second voltage (step S450), and determines whether the voltage difference is greater than or equal to the difference threshold (step S455).
In response to the voltage difference greater than or equal to the difference threshold, the processor 130 accumulates the number of times (step S460). The processor 130 determines whether the accumulated number of times is greater than or equal to the count threshold (step S465). In response to the accumulated number of times greater than or equal to the count threshold, the processor 130 determines that the battery 110 is in a low battery state (step S470).
In response to the voltage difference being less than the difference threshold or the accumulated number of times being less than the count threshold, the processor 130 resets the counter (i.e., the number of times is zeroed) (step S480). In addition, in response to having detected that the battery 110 is in a low battery state, the accumulated number of times is less than the count threshold, or the counter is reset, the processor 130 enters hibernation mode and waits for a next event or a next cycle time to expire (step S485).
In summary, the Internet of Things device and the battery power detection method according to the embodiments of the disclosure may monitor the battery voltage of the radio frequency module in two power states, and determine the low battery state based on the voltage difference between the two voltages. According to the embodiments of the disclosure, the first voltage and the second voltage are detected by reading the battery voltage directly from the processor, without the need for additional hardware circuitry, and a software algorithm is provided to determine whether the battery is in a low battery state. The first voltage and the second voltage are determined by observing the highest voltage and the lowest voltage of the Internet of Things device during a complete report event cycle (e.g., from hibernate to wake-up to report event to hibernate, which occurs periodically). For example, the highest voltage is the first voltage, and the lowest voltage is the second voltage, and the low battery state is determined by the difference between the two voltages according to this embodiment. In this way, the low battery state may be quickly determined during an operation of the Internet of Things device, so that the personnel concerned may replace the battery earlier or at the right time.
It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure covers modifications and variations provided that they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
202110281518.7 | Mar 2021 | CN | national |