A method and apparatus for detecting a wearable device battery
By combining a three-pin battery detection circuit with NTC sampling and current ADC sampling, the problem of increased motherboard space caused by multiple connections of battery detection pins in wearable devices is solved, enabling accurate calculation of NTC resistor voltage and reduction of device size.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2026-03-27
AI Technical Summary
Currently, the NTC detection and current detection of wearable device batteries need to be connected separately to the ground pin of the motherboard, which increases the motherboard space.
By using a three-pin battery detection circuit, combined with motherboard NTC sampling and current ADC sampling, the voltage of the NTC resistor is determined, the resistance value of the NTC resistor is calculated, reducing pin connections and saving motherboard wiring space.
It achieves accurate calculation of NTC resistor voltage, avoids deviations caused by current detection, saves motherboard wiring space, and reduces the size of wearable devices.
Smart Images

Figure CN116540110B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of intelligent devices, and in particular to a method and device for detecting a battery of a wearable device. BACKGROUND
[0002] In recent years, wearable devices have been very popular. A wearable device is a portable device that is directly worn on the body or integrated into a user's clothes or accessories. A wearable device is not only a hardware device, but also has powerful functions through software support and data interaction and cloud interaction. Wearable devices will greatly change our lives and perception.
[0003] Currently, the batteries of wearable devices on the market usually have four pins. NTC detection and current detection are separated, and NTC and current detection need to be separately connected to the ground pin of the mainboard. This will connect an additional pin, thereby increasing the space of the mainboard of the wearable device. SUMMARY
[0004] Embodiments of the present application provide a method and device for detecting a battery of a wearable device, which can realize protection detection of the battery through a three-pin battery and save the wiring space of the mainboard.
[0005] In a first aspect, a method for detecting a battery of a wearable device is provided, which includes:
[0006] controlling a battery detection circuit of the wearable device to collect mainboard NTC sampling and current ADC sampling;
[0007] determining a voltage of an NTC resistor according to the mainboard NTC sampling and the current ADC sampling;
[0008] determining a resistance value of the NTC resistor of the battery of the wearable device according to the voltage of the NTC resistor.
[0009] Optionally, the battery detection circuit includes a first resistor, a second resistor, a third resistor, a first protection diode, and a jumper point.
[0010] The battery includes a first pin, a second pin, and a third pin.
[0011] The first pin of the battery is connected to a power supply pin of the mainboard of the wearable device, the second pin of the battery is connected to a first end of the first resistor, a second end of the first resistor is connected to an ADC pin of the NTC of the mainboard, a first end of the second resistor is connected to a ground pin of the mainboard, a second end of the second resistor is connected to the second end of the first resistor, a first end of the first protection diode is connected to the ground pin of the mainboard, and a second end of the first protection diode is connected to the first end of the first resistor.
[0012] The third pin of the battery is connected with the first end of the jumper point, and the second end of the jumper point is connected with the current sampling ADC pin of the mainboard; the first end of the third resistor is connected with the ground pin of the mainboard, and the second end of the third resistor is connected with the first end of the jumper point.
[0013] Optionally, the battery detection circuit further comprises a first capacitor, a second capacitor and a second diode.
[0014] The first end of the first capacitor is connected with the first pin of the battery, and the second end of the first capacitor is connected with the ground pin of the mainboard.
[0015] The first end of the second capacitor is connected with the first pin of the battery, and the second end of the second capacitor is connected with the ground pin of the mainboard.
[0016] The first end of the second protection diode is connected with the first pin of the battery, and the second end of the second protection diode is connected with the ground pin of the mainboard.
[0017] Optionally, the resistance value of the NTC resistor of the battery of the wearable device is determined according to the voltage of the NTC resistor.
[0018] The resistance value of the NTC resistor of the battery of the wearable device is obtained by subtracting the resistance value of the first resistor from the ratio of the voltage of the NTC resistor to the mainboard NTC sampling current.
[0019] Optionally, the battery is a welding battery.
[0020] Optionally, the voltage of the NTC resistor is determined according to the mainboard NTC sampling and the current ADC sampling.
[0021] The difference between the mainboard NTC sampling and the current ADC sampling is determined as the voltage of the NTC resistor.
[0022] In a second aspect, the embodiment of the present application further provides a device for detecting a battery of a wearable device, comprising:
[0023] A collection unit is configured to control a battery detection circuit of the wearable device to collect mainboard NTC sampling and current ADC sampling.
[0024] A processing unit is configured to determine the voltage of the NTC resistor according to the mainboard NTC sampling and the current ADC sampling, and determine the resistance value of the NTC resistor of the battery of the wearable device according to the voltage of the NTC resistor.
[0025] Optionally, the battery detection circuit comprises a first resistor, a second resistor, a third resistor, a first protection diode and a jumper point.
[0026] The battery comprises a first pin, a second pin and a third pin.
[0027] The first pin of the battery is connected to a mainboard power supply pin of the wearable device, the second pin of the battery is connected to a first end of the first resistor, and a second end of the first resistor is connected to an ADC pin of an NTC of the mainboard; a first end of the second resistor is connected to a ground pin of the mainboard, and a second end of the second resistor is connected to the second end of the first resistor; a first end of the first protection diode is connected to the ground pin of the mainboard, and a second end of the first protection diode is connected to the first end of the first resistor.
[0028] The third pin of the battery is connected to a first end of the jumper point, and a second end of the jumper point is connected to a current sampling ADC pin of the mainboard; a first end of the third resistor is connected to a ground pin of the mainboard, and a second end of the third resistor is connected to the first end of the jumper point.
[0029] Optionally, the battery detection circuit further comprises a first capacitor, a second capacitor and a second protection diode.
[0030] A first end of the first capacitor is connected to the first pin of the battery, and a second end of the first capacitor is connected to a ground pin of the mainboard.
[0031] A first end of the second capacitor is connected to the first pin of the battery, and a second end of the second capacitor is connected to the ground pin of the mainboard.
[0032] A first end of the second protection diode is connected to the first pin of the battery, and a second end of the second protection diode is connected to the ground pin of the mainboard.
[0033] Optionally, the processing unit is specifically configured to:
[0034] According to a ratio of a voltage of the NTC resistor to a mainboard NTC sampling current, minus a resistance value of the first resistor, to obtain a resistance value of the NTC resistor of the battery of the wearable device.
[0035] Optionally, the battery is a welding battery.
[0036] Optionally, the processing unit is specifically configured to:
[0037] Determine a difference between the mainboard NTC sampling and the current ADC sampling as the voltage of the NTC resistor.
[0038] In a third aspect, an embodiment of the present application further provides a computing device, comprising:
[0039] a memory for storing program instructions;
[0040] a processor for invoking the program instructions stored in the memory to implement the method for detecting the battery of the wearable device.
[0041] In a fourth aspect, the embodiment of the present application further provides a computer readable nonvolatile storage medium, which comprises computer readable instructions, and when the computer reads and executes the computer readable instructions, the computer executes the method for detecting the battery of the wearable device.
[0042] In the embodiment of the present application, the battery detection circuit of the wearable device collects the mainboard NTC sampling and the current ADC sampling, determines the voltage of the NTC resistor according to the mainboard NTC sampling and the current ADC sampling, and determines the resistance value of the NTC resistor of the battery of the wearable device according to the voltage of the NTC resistor. By comparing the mainboard NTC sampling and the current ADC sampling, the problem of deviation in calculating the NTC resistance value caused by the voltage of the NTC resistor being affected by the voltage of the current detection can be prevented, and the wiring space of the mainboard can be saved, and the volume of the wearable device can be reduced. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0044] Figure 1 A schematic diagram of a system architecture provided by the embodiment of the present application;
[0045] Figure 2 A flowchart of a method for detecting the battery of a wearable device provided by the embodiment of the present application;
[0046] Figure 3 A schematic diagram of a battery detection circuit provided by the embodiment of the present application;
[0047] Figure 4 A structural schematic diagram of a device for detecting the battery of a wearable device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the objects, technical solutions and advantages of the present application clearer, the following further describes the present application with reference to the accompanying drawings. Obviously, the described embodiments are only a part instead of all of the embodiments of the present application. Based upon the embodiments in the present application, all other embodiments obtained by those ordinarily skilled in the art without creative effort belong to the scope of the present application.
[0049] First, the wearable device to which the embodiments of the present application are applied is introduced with reference to the structure shown in FIG. 1. Figure 1 In the embodiments of the present application, the wearable device 100 can include, but is not limited to, a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a WiFi module 170, a display unit 140, a sensor 150, an audio circuit 160, a processor 180, and a motor 190, etc.
[0050] Among them, those skilled in the art can understand that the wearable device 100 shown in FIG. 1 is only an example and is not limited, and the wearable device 100 can include more or less components than the diagram, or combine some components, or different component arrangement. Figure 1 Among them, those skilled in the art can understand that the wearable device 100 shown in FIG. 1 is only an example and is not limited, and the wearable device 100 can include more or less components than the diagram, or combine some components, or different component arrangement.
[0051] The RF circuit 110 can be used for receiving and sending signals in the process of transmitting information or calling, and in particular, receiving the downlink information of the base station to the processor 180 for processing, and in addition, sending the uplink data of the wearable device 100 to the base station. Generally, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 110 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0052] The memory 120 can be used to store software programs and modules, and the processor 180 executes various function applications and data processing of the wearable device 100 by running the software programs and modules stored in the memory 120. The memory 120 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required for a function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data (such as audio data, a phone book, etc.) created according to the use of the wearable device 100, and the like. In addition, the memory 120 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.
[0053] The input unit 130 can be used to receive inputted digital or character information, and to generate key signals related to the user settings and function control of the wearable device 100. Specifically, the input unit 130 can include a touch panel 131, a camera device 132, and other input devices 133. The camera device 132 can take a picture of an image to be acquired, and transmit the image to the processor 180 for processing, and finally present the image to the user through the display panel 141. The touch panel 131, also known as a touch screen, can collect a user's touch operation (such as the user's operation on or near the touch panel 131 using a finger, a stylus, or any suitable object or accessory) and drive the corresponding connection device according to the pre-set program. Optionally, the touch panel 131 can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch coordinates, and sends it to the processor 180, and can also receive the command from the processor 180 and execute it. In addition, the touch panel 131 can be implemented in various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. In addition to the touch panel 131 and the camera device 132, the input unit 130 can further include other input devices 133. Specifically, the other input devices 132 can include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control button, an on-off button, etc.), a trackball, a joystick, and the like.
[0054] The display unit 140 can be used to display information input by a user or information provided to the user and various menus of the wearable device 100. The display unit 140 can include a display panel 141, which can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, a touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation thereon or in the vicinity thereof, the touch panel 131 transmits the touch event to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event.
[0055] The display panel 141 can be used as a display device in an embodiment of the present application to display text information or image information, which can be recognized by the human eye. Although the display panel 141 is described as being used to display text information or image information in the above embodiment, the display panel 141 can be used to display other information in other embodiments. Figure 1 In the above embodiment, the touch panel 131 and the display panel 141 are implemented as two independent components to perform input and output functions of the wearable device 100, but in some embodiments, the touch panel 131 and the display panel 141 can be integrated to perform the input and output functions of the wearable device 100.
[0056] In addition, the wearable device 100 can further include at least one sensor 150, such as a posture sensor, a distance sensor, a light sensor, and other sensors.
[0057] Specifically, the posture sensor can also be referred to as a motion sensor, and as one type of the motion sensor, an angular velocity sensor (also referred to as a gyroscope) can be listed, which, when configured in the wearable device 100, is used to measure the angular velocity of the wearable device 100 when it is deflected or tilted in a motion state, so that the gyroscope can accurately analyze and determine the actual motion of a user using the wearable device 100, and then perform corresponding operations on the wearable device 100. For example, motion sensing, shaking (shaking the wearable device 100 to implement some functions), implementing inertial navigation according to the motion state of an object when there is no signal of a global positioning system (GPS) (such as in a tunnel).
[0058] The sensor can also list a light sensor, which is mainly used to collect information such as the wavelength and intensity of various light rays of light, to adjust the backlight intensity of the display panel 141, and the like.
[0059] In addition, in an embodiment of the present application, as the sensor 150, a barometer, a hygrometer, a thermometer, an infrared sensor, and other sensors can also be configured, which will not be described here.
[0060] The optical sensor can also include a proximity sensor that can turn off the display panel 141 and / or the back light when the wearable device 100 is brought close to the ear.
[0061] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the wearable device 100. The audio circuit 160 can convert received audio data into an electrical signal, which is output to the speaker 161 to be converted into a sound signal. On the other hand, the microphone 162 can convert a sound signal collected into an electrical signal, which is received by the audio circuit 160 to be converted into audio data. The audio data can be output to the processor 180 for processing, and then transmitted to another wearable device 100 via the RF circuit 110 or stored in the memory 120 for further processing.
[0062] The WiFi belongs to a short-range wireless transmission technology. The wearable device 100 can help the user to send and receive e-mails, browse web pages, and access streaming media, etc. via the WiFi module 170, which provides the user with wireless broadband Internet access. Although Figure 1 The WiFi module 170 is shown, but it can be understood that it does not belong to the essential components of the wearable device 100, and can be omitted as needed without changing the essence of the application.
[0063] The processor 180 is the control center of the wearable device 100, which connects all parts of the wearable device 100 via various interfaces and lines, executes various functions of the wearable device 100 and processes data by running or executing software programs and / or modules stored in the memory 120 and calling data stored in the memory 120, and thus monitors the wearable device 100 as a whole. Optionally, the processor 180 can include one or more processing units. Preferably, the processor 180 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication.
[0064] It can be understood that the above-mentioned modem processor can also not be integrated into the processor 180.
[0065] The wearable device 100 can further include at least one motor 190. Since the wearable device 100 is a power-consuming device, the motor 190 can be a small motor. Meanwhile, multiple motors can be configured for the wearable device 100 according to the power provided by the motor.
[0066] The wearable device 100 further includes a power supply (not shown in the figure) for supplying power to each component.
[0067] Preferably, the power supply can be logically connected with the processor 180 through a power management system, so that the power management system can realize the functions of managing charging, discharging and power consumption management. Although not shown, the wearable device 100 can also include a Bluetooth module and the like, which will not be described here.
[0068] It should be noted that the above Figure 1 The structure shown is only an example, and the embodiments of the present application are not limited thereto.
[0069] Figure 2 An exemplary flow of the battery detection of the wearable device provided by the embodiments of the present application is shown, which can be executed by the device for battery detection of the wearable device. As shown in Figure 2 The flow specifically includes:
[0070] In step 201, the battery detection circuit of the wearable device is controlled to collect the mainboard NTC sampling and the current ADC sampling.
[0071] In the embodiments of the present application, the battery detection circuit includes a first resistor R1, a second resistor R2, a third resistor R3, a first protection diode VD1 and a jumper point AG. The battery includes a first pin 3011, a second pin 3012 and a third pin 3013.
[0072] The first pin 3011 of the battery is connected to the mainboard power supply pin of the wearable device, the second pin 3012 of the battery is connected to the first end 3021 of the first resistor R1, and the second end 3022 of the first resistor R1 is connected to the ADC pin of the NTC of the mainboard. The first end 3031 of the second resistor R2 is connected to the ground pin of the mainboard, and the second end 3032 of the second resistor R2 is connected to the second end 3022 of the first resistor R1. The first end 3051 of the first protection diode VD1 is connected to the ground pin of the mainboard, and the second end 3052 of the first protection diode VD1 is connected to the first end 3021 of the first resistor R1. 3021 .
[0073] The third pin 3013 of the battery is connected to the first end 3091 of the jumper point AG, the second end 3092 of the jumper point AG is connected to the current sampling ADC pin of the mainboard, the first end 3041 of the third resistor R3 is connected to the ground pin of the mainboard, and the second end 3042 of the third resistor R3 is connected to the first end 3091 of the jumper point AG.
[0074] The battery detection circuit further comprises a first capacitor C1, a second capacitor C2 and a second protection diode VD2. The first end 3061 of the first capacitor C1 is connected to the first pin 3011 of the battery, and the second end 3062 of the first capacitor C1 is connected to the ground pin of the mainboard. The first end 3071 of the second capacitor C2 is connected to the first pin 3011 of the battery, and the second end 3072 of the second capacitor C2 is connected to the ground pin of the mainboard. The first end 3081 of the second protection diode VD2 is connected to the first pin 3011 of the battery, and the second end 3082 of the second protection diode VD2 is connected to the ground pin of the mainboard.
[0075] After the battery detection circuit is connected to the ADC pin of the NTC of the mainboard, the mainboard NTC sampling can be realized, and after the battery detection circuit is connected to the current sampling ADC pin of the mainboard, the current ADC sampling can be realized. In the battery, the NTC resistor is connected between the second pin 3012 and the third pin 3013 of the battery. In step 202, the voltage of the NTC resistor is determined according to the mainboard NTC sampling and the current ADC sampling.
[0076] Specifically, the difference between the mainboard NTC sampling and the current ADC sampling can be determined as the voltage of the NTC resistor.
[0077] In step 203, the resistance value of the NTC resistor of the battery of the wearable device is determined according to the voltage of the NTC resistor.
[0078] According to the voltage of the NTC resistor, the resistance value of the NTC resistor of the battery of the wearable device is obtained. Compared with the prior art, when the current is too large, the voltage value of the current detection resistor is large and changes in real time, and when the NTC resistance value is small in a low-temperature environment, the voltage across the NTC resistor is greatly affected by the voltage of the current detection resistor, and the calculated NTC resistance value is easily deviated from the actual component. The resistance value of the NTC resistor obtained by the embodiment of the present application is more accurate.
[0079] Specifically, the resistance value of the NTC resistor of the battery can be obtained by subtracting the resistance value of the first resistor R1 from the ratio of the voltage of the NTC resistor to the mainboard NTC sampling current. The mainboard NTC sampling current can also be referred to as the NTC sampling current of the NTC sampling chip or the power management chip.
[0080] The above embodiment shows that the battery detection circuit of the wearable device collects the mainboard NTC sampling and the current ADC sampling, determines the voltage of the NTC resistor according to the mainboard NTC sampling and the current ADC sampling, and determines the resistance value of the mainboard NTC resistor according to the voltage of the NTC resistor. By comparing the mainboard NTC sampling and the current ADC sampling, the problem of deviation in calculating the NTC resistance value caused by the voltage of the NTC resistor being affected by the voltage of the current detection can be prevented, and the wiring space of the mainboard can be saved, and the volume of the wearable device can be reduced.
[0081] Based on the same technical concept, Figure 4 An exemplary structure of a device for battery detection of a wearable device provided by the embodiment of the application is shown, and the device can perform the flow of battery detection of the wearable device.
[0082] As Figure 4 shown, the device can include:
[0083] The acquisition unit 401 is configured to control the battery detection circuit of the wearable device to collect mainboard NTC sampling and current ADC sampling.
[0084] The processing unit 402 is configured to determine the voltage of the NTC resistor according to the mainboard NTC sampling and the current ADC sampling, and determine the resistance value of the NTC resistor of the battery of the wearable device according to the voltage of the NTC resistor.
[0085] Optionally, the battery detection circuit includes a first resistor, a second resistor, a third resistor, a first protection diode, and a jumper point.
[0086] The battery includes a first pin, a second pin, and a third pin.
[0087] The first pin of the battery is connected to the mainboard power supply pin of the wearable device, the second pin of the battery is connected to the first end of the first resistor, and the second end of the first resistor is connected to the ADC pin of the NTC of the mainboard; the first end of the second resistor is connected to the ground pin of the mainboard, and the second end of the second resistor is connected to the second end of the first resistor; the first end of the first protection diode is connected to the ground pin of the mainboard, and the second end of the first protection diode is connected to the first end of the first resistor.
[0088] The third pin of the battery is connected to the first end of the jumper point, and the second end of the jumper point is connected to the current sampling ADC pin of the mainboard; the first end of the third resistor is connected to the ground pin of the mainboard, and the second end of the third resistor is connected to the first end of the jumper point.
[0089] Optionally, the battery detection circuit further comprises a first capacitor, a second capacitor and a second protection diode.
[0090] A first end of the first capacitor is connected to a first pin of the battery, and a second end of the first capacitor is connected to a ground pin of the mainboard.
[0091] A first end of the second capacitor is connected to the first pin of the battery, and a second end of the second capacitor is connected to the ground pin of the mainboard.
[0092] A first end of the second protection diode is connected to the first pin of the battery, and a second end of the second protection diode is connected to the ground pin of the mainboard.
[0093] Optionally, the processing unit 402 is specifically configured to:
[0094] According to a ratio of a voltage of the NTC resistor to a mainboard NTC sampling current, subtracting a resistance value of the first resistor, to obtain a resistance value of an NTC resistor of the battery of the wearable device.
[0095] Optionally, the battery is a welding battery.
[0096] Optionally, the processing unit 402 is specifically configured to:
[0097] Determine a difference between the mainboard NTC sampling and the current ADC sampling as the voltage of the NTC resistor.
[0098] Based on the same technical concept, the embodiments of the present application further provide a computing device, comprising:
[0099] a memory for storing program instructions;
[0100] a processor for invoking the program instructions stored in the memory, and executing the above-mentioned wearable device battery detection method according to the obtained program.
[0101] Based on the same technical concept, the embodiments of the present application further provide a computer readable non-volatile storage medium, comprising computer readable instructions, when the computer reads and executes the computer readable instructions, the computer executes the above-mentioned wearable device battery detection method.
[0102] The embodiments of methods, devices (systems), and computer program products of the application can be described in reference to flowchart illustrations and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products. Figure 1 one or more functions specified in the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products. Figure 1 one or more functions specified in the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products.
[0103] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products. Figure 1 one or more functions specified in the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products. Figure 1 one or more functions specified in the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products.
[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products. Figure 1 one or more functions specified in the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products. Figure 1 one or more functions specified in the flowchart and / or block diagrams of the flowchart and / or block diagrams of the methods, devices (systems), and computer program products.
[0105] While the preferred embodiments of the application have been described, additional variations and modifications can be made to the embodiments by those of skill in the art once they have the benefit of the present disclosure. Therefore, the appended claims are intended to encompass within their scope all such variations and modifications as are within the scope of the application. It should be understood that all the terms used herein are descriptive rather than limiting, and that many changes can be made to the preferred embodiments, while still obtaining the intended results.
[0106] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A method for testing the battery of a wearable device, characterized in that, The method comprises the following steps: controlling a battery detection circuit of a wearable device to collect mainboard NTC sampling and current ADC sampling; determining the voltage of the NTC resistor according to the mainboard NTC sampling and the current ADC sampling; determining the resistance value of the NTC resistor of the battery of the wearable device according to the voltage of the NTC resistor; the battery detection circuit comprises a first resistor, a second resistor, a third resistor, a first protection diode and a jumper point; the battery comprises a first pin, a second pin and a third pin; the first pin of the battery is connected to the mainboard power supply pin of the wearable device, the second pin of the battery is connected to the first end of the first resistor, and the second end of the first resistor is connected to the ADC pin of the NTC of the mainboard; the first end of the second resistor is connected to the ground pin of the mainboard, and the second end of the second resistor is connected to the second end of the first resistor; the first end of the first protection diode is connected to the ground pin of the mainboard, and the second end of the first protection diode is connected to the first end of the first resistor; the third pin of the battery is connected to the first end of the jumper point, and the second end of the jumper point is connected to the current sampling ADC pin of the mainboard; the first end of the third resistor is connected to the ground pin of the mainboard, and the second end of the third resistor is connected to the first end of the jumper point.
2. The method of claim 1, wherein, The battery detection circuit further comprises a first capacitor, a second capacitor and a second protection diode; the first end of the first capacitor is connected to the first pin of the battery, and the second end of the first capacitor is connected to the ground pin of the mainboard; the first end of the second capacitor is connected to the first pin of the battery, and the second end of the second capacitor is connected to the ground pin of the mainboard; the first end of the second protection diode is connected to the first pin of the battery, and the second end of the second protection diode is connected to the ground pin of the mainboard.
3. The method of claim 1, wherein, The method further comprises the following steps: determining the resistance value of the NTC resistor of the battery of the wearable device according to the voltage of the NTC resistor.
4. The method of claim 1, wherein, The battery is a welding battery.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises the following steps: determining the voltage of the NTC resistor by subtracting the resistance value of the first resistor from the ratio of the voltage of the NTC resistor to the mainboard NTC sampling current.
6. An apparatus for detecting a wearable device battery, the apparatus comprising: The method further comprises the following steps: controlling a battery detection circuit of a wearable device to collect mainboard NTC sampling and current ADC sampling; determining the voltage of the NTC resistor according to the mainboard NTC sampling and the current ADC sampling; determining the resistance value of the NTC resistor of the battery of the wearable device according to the voltage of the NTC resistor; the battery detection circuit comprises a first resistor, a second resistor, a third resistor, a first protection diode and a jumper point; the battery comprises a first pin, a second pin and a third pin; The first pin of the battery is connected to the mainboard power supply pin of the wearable device, the second pin of the battery is connected to the first end of the first resistor, and the second end of the first resistor is connected to the ADC pin of the NTC of the mainboard; the first end of the second resistor is connected to the ground pin of the mainboard, and the second end of the second resistor is connected to the second end of the first resistor; The first end of the first protection diode is connected to the ground pin of the mainboard, and the second end of the first protection diode is connected to the first end of the first resistor; The third pin of the battery is connected to the first end of the jumper point, the second end of the jumper point is connected to the current sampling ADC pin of the mainboard, the first end of the third resistor is connected to the ground pin of the mainboard, and the second end of the third resistor is connected to the first end of the jumper point.
7. A computing device, comprising: Comprise: A memory for storing program instructions; A processor for invoking the program instructions stored in the memory to perform the method of any one of claims 1 to 5 according to the obtained program execution right.
8. A computer-readable non-transitory storage medium, characterized in that, Computer readable instructions, when the computer reads and executes the computer readable instructions, make the computer execute the method as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for detecting temperature and ID of battery
CN105676145A
Lithium battery pack charge-discharge controller
CN110445222A