Battery-in-place detection device, chargeable terminal and control method, equipment and medium
Patent Information
- Application Number
- CN202311322414.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-10-11
AI Technical Summary
[0004]本申请的主要目的在于提供一种电池在位检测装置、可充电终端及控制方法、设备及介质,旨在解决现有电池在位检测方法的系统开销较大的技术问题
[0032] In a sixth aspect, embodiments of this application provide a computer program including instructions for executing the control method of the rechargeable terminal in the first aspect and any possible implementation thereof.
Smart Images

Figure CN117411122B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of rechargeable terminal technology, and in particular to a battery in-situ detection device, a rechargeable terminal and control method, equipment and medium. Background Technology
[0002] With the development of battery technology, the use of various rechargeable terminals such as MIFI (Mobile WIFI, portable broadband wireless device) and mobile phones is becoming more and more common.
[0003] Due to varying device usage requirements, some rechargeable terminals need to support hot-swapping of batteries. These terminals need to correctly identify battery insertion or removal during hot-swapping. Current battery presence detection solutions typically use the I2C (Inter-Integrated Circuit) bus to check battery presence. Even when the battery is not present, the system still periodically accesses the battery's internal fuel gauge chip via the I2C bus to check its presence, increasing system overhead for battery presence detection. In other words, existing battery presence detection methods have significant system overhead. Summary of the Invention
[0004] The main objective of this application is to provide a battery in-situ detection device, a rechargeable terminal, and a control method, equipment, and medium, aiming to solve the technical problem of high system overhead in existing battery in-situ detection methods.
[0005] To achieve the above objectives, in a first aspect, this application provides a battery presence detection device for use in a rechargeable terminal, the battery presence detection device comprising: a motherboard connector;
[0006] The motherboard connector includes a GPIO circuit, a first connector, and a central processing unit.
[0007] The first end of the GPIO circuit is connected to the first GPIO interface of the first connector, and the second end of the GPIO circuit is connected to the second GPIO interface of the central processing unit.
[0008] The central processing unit is used to confirm the battery status based on the voltage signal of the second GPIO interface.
[0009] According to the first aspect, the GPIO circuit includes: a pull-up resistor;
[0010] The GPIO circuit is connected in series with the IO power supply voltage of the motherboard connector through the pull-up resistor.
[0011] According to the first aspect, or any implementation of the first aspect above, the first connector and the central processing unit are connected via an I2C bus, the I2C bus including a clock line and a serial data line;
[0012] The first connector includes a first clock line interface and a first serial data line interface;
[0013] The central processing unit includes a second clock line interface and a second serial data line interface.
[0014] The first clock line interface is connected to the second clock line interface via the clock line, and the first serial data line is connected to the second serial data line interface via the serial data line.
[0015] According to the first aspect, or any implementation of the first aspect above, the battery in-situ detection device further includes: a battery end connector and a fuel gauge;
[0016] The battery connector includes a second connector for connecting to the first connector;
[0017] The fuel gauge is connected to the second connector of the battery terminal connector via an I2C circuit.
[0018] According to the first aspect, or any implementation of the first aspect above, the central processing unit is configured to, after the battery state is in the in-situ state, interact with the fuel gauge through the I2C circuit based on the I2C bus to obtain the battery information of the target battery.
[0019] Secondly, this application also provides a rechargeable terminal, which includes a battery presence detection device as described in any of the preceding claims.
[0020] Thirdly, this application provides a control method for a rechargeable terminal, applied to the rechargeable terminal described above, the control method for the rechargeable terminal comprising:
[0021] Obtain the voltage signal from the second GPIO interface and confirm the battery status based on the voltage signal;
[0022] After the battery status is in the off state, the I2C interface of the central processing unit is configured as a GPIO circuit in input pull-down mode.
[0023] According to the third aspect, the step of confirming the battery status based on the voltage signal includes:
[0024] After detecting that the voltage signal is high, the battery is determined to be in an off-state.
[0025] After detecting that the voltage signal is low, the battery is determined to be in the present state.
[0026] According to the third aspect, or any implementation of the third aspect above, the first connector and the central processing unit are connected via an I2C bus;
[0027] After the step of acquiring the voltage signal of the second GPIO interface and confirming the battery status based on the voltage signal, the following steps are included:
[0028] After the battery status is in place, the I2C interface is configured as an I2C bus;
[0029] The battery information of the target battery is obtained by interacting with the fuel gauge of the target battery via the I2C bus.
[0030] Fourthly, this application provides a control device for a rechargeable terminal, the control device for the rechargeable terminal comprising: a memory and a processor, wherein the memory stores a computer program executable on the processor, the computer program being configured to implement the steps of the control method for the rechargeable terminal as described above.
[0031] Fifthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform a control method for a rechargeable terminal as described in any one of the first aspects or possible implementations thereof.
[0032] In a sixth aspect, embodiments of this application provide a computer program including instructions for executing the control method of the rechargeable terminal in the first aspect and any possible implementation thereof.
[0033] This application discloses a battery presence detection device, a rechargeable terminal, and a control method, apparatus, and medium. The battery presence detection device includes a motherboard connector; the motherboard connector includes a GPIO circuit, a first connector, and a central processing unit; a first end of the GPIO circuit is connected to a first GPIO interface of the first connector, and a second end of the GPIO circuit is connected to a second GPIO interface of the central processing unit. Thus, the central processing unit can determine the battery status of the target battery of the rechargeable terminal based on the voltage signal of the second GPIO interface. By setting a GPIO circuit between the first connector of the motherboard connector and the central processing unit, this application allows the battery status to be determined through the GPIO circuit, avoiding the need for the system to periodically access the battery's internal fuel gauge chip via the I2C bus to detect battery presence even when the battery is not present, effectively reducing the system overhead for battery presence detection. Attached Figure Description
[0034] Figure 1 This is a schematic diagram of the electrical signal connections for a rechargeable terminal.
[0035] Figure 2 Signal circuit diagram for the battery connector and motherboard connector of a rechargeable terminal;
[0036] Figure 3 This is a circuit diagram of one embodiment of the motherboard connector of this application;
[0037] Figure 4 This is a circuit diagram of an embodiment of the battery terminal connector of this application;
[0038] Figure 5 This is a flowchart illustrating an embodiment of the control method for a rechargeable terminal according to this application.
[0039] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.
[0040] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0041] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0042] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0043] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.
[0044] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0045] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0046] See Figure 1 , Figure 1 This is a schematic diagram of the electrical signal connections of a rechargeable terminal. The mainboard of the rechargeable terminal has a motherboard connector, and the target battery of the rechargeable terminal is connected to a battery connector. Generally, the pins of the battery connector and the motherboard connector have a one-to-one correspondence; that is, pin B1 of the battery connector is connected to pin M1 of the motherboard connector, pin B2 of the battery connector is connected to pin M2 of the motherboard connector, and so on.
[0047] By engaging the motherboard connector and the battery connector, an electrical signal connection can be established between the target battery and the motherboard of the rechargeable terminal.
[0048] Rechargeable terminal batteries typically have the following two interface signals:
[0049] (1)VBAT, GND, BAT_NTC, BAT_ID
[0050] Among them, VBAT is the positive terminal of the battery, GND is the negative terminal of the battery, BAT_NTC is the battery temperature detection pin, and BAT_ID is the battery type determination pin.
[0051] (2)VBAT, GND, I2C_SCL, I2C_SDA
[0052] Among them, VBAT is the positive terminal of the battery, GND is the negative terminal of the battery, I2C_SCL is the I2C bus clock signal, and I2C_SDA is the I2C bus data signal.
[0053] Batteries using the second interface signal typically have an internal fuel gauge and an I2C interface for communication with the CPU. This allows the CPU to obtain information such as battery voltage, current, and temperature. See also... Figure 2 , Figure 2 This is a signal circuit diagram for the battery connector and motherboard connector of a rechargeable terminal. (Example:) Figure 2 As shown, the battery connector includes a male connector, and the motherboard connector includes a female connector and a CPU. The male connector connects to the target battery and the motherboard connector via an I2C circuit. The target battery can connect to the motherboard connector or spring contacts on the motherboard via the battery connector or contacts. This application will now describe the connection between the battery connector and the motherboard connector in a board-to-board configuration as an example. It is understood that a connection via contacts on the target battery and spring contacts on the motherboard can also be used.
[0054] The existing technology that uses the second type of interface signal has the following main drawbacks:
[0055] When the battery is not in place and the system is only connected to the charger, it needs to periodically access the battery's internal fuel gauge chip via the I2C bus to detect whether the battery is present, which incurs additional system overhead. Furthermore, it will increase power consumption, heat generation, or heat accumulation.
[0056] Please refer to Figure 3 , Figure 3 This is a circuit diagram of one embodiment of the motherboard connector of this application. A first embodiment of this application provides a battery presence detection device for a rechargeable terminal, the battery presence detection device including: a motherboard connector;
[0057] The motherboard connector includes a GPIO circuit, a first connector, and a central processing unit.
[0058] The first end of the GPIO circuit is connected to the first GPIO interface of the first connector, and the second end of the GPIO circuit is connected to the second GPIO interface of the central processing unit.
[0059] The central processing unit is used to confirm the battery status based on the voltage signal of the second GPIO interface.
[0060] In this embodiment, it should be noted that the GPIO (General-Purpose Input / Output) circuit is a circuit that connects the first GPIO interface of the first connector to the second GPIO interface of the central processing unit. In this embodiment, the power consumption is low (operating current is about 1μA) when monitoring using the GPIO interface, and the GPIO interface can continue to perform monitoring work even when the power is extremely low.
[0061] In this embodiment, it should also be noted that the first connector can be a male connector or a female connector. Alternatively, the first connector can be a spring or a contact.
[0062] like Figure 3 As shown, this embodiment adds a GPIO circuit to the motherboard connector on the motherboard of the rechargeable terminal. The first end of the GPIO circuit is connected to the first GPIO interface of the first connector (i.e., Figure 3 The pin 8 of the motherboard connector is connected, and the second end of the GPIO circuit is connected to the second GPIO interface of the central processing unit (i.e., Figure 3 The internal central processing unit (CPU) is connected to the AC1 port. Thus, the CPU can determine the battery status based on the voltage signal from the second GPIO interface. The battery status includes an in-place state (i.e., the motherboard connector is connected to the target battery) and an out-of-place state (i.e., the motherboard connector is disconnected from the target battery).
[0063] The GPIO circuit includes: pull-up resistors;
[0064] The GPIO circuit is connected in series with the IO power supply voltage of the motherboard connector through the pull-up resistor.
[0065] In this embodiment, it should be noted that if the GPIO circuit can be configured as an internal pull-up (i.e., the first GPIO interface can be configured to clamp uncertain signals to a high level), then the external pull-up resistor is not required.
[0066] For reference Figure 3 If the GPIO circuit does not have an internal pull-up function, then the GPIO circuit can use the pull-up resistor (i.e. Figure 3 R4 in the circuit is connected in series with the IO power supply voltage (VDD_IO) of the motherboard connector, so that the GPIO circuit can be pulled up to the IO power supply voltage of the motherboard connector.
[0067] The central processing unit is configured to: determine that the battery is in an off-state after detecting that the voltage signal is high; and determine that the battery is in a present state after detecting that the voltage signal is low.
[0068] In this embodiment, it should be noted that the GPIO circuit can be configured as an interrupt input. That is, the central processing unit uses the high-level voltage signal detected by the second GPIO interface as an interrupt request signal, causing the central processing unit to temporarily suspend the execution of the current program and instead execute a preset program when the battery is in an off-state. After executing the preset program, the execution of the current program is resumed, thereby improving system efficiency. Of course, a method of periodically checking the battery status can also be used.
[0069] In this embodiment, when the battery connector is disconnected from the motherboard connector, the GPIO circuit level is pulled up, resulting in a high-level voltage signal at the second GPIO interface. Therefore, when the central processing unit detects a high-level voltage signal, it indicates that the battery connector is disconnected from the motherboard connector, and thus determines that the battery is in an absent state. Since the battery connector has two or more GND pins connected together on the battery connector, forming a continuous GND network, when the battery connector is connected to the motherboard connector, the grounding effect of this GND network pulls down the GPIO circuit level, resulting in a low-level voltage signal at the second GPIO interface. Therefore, when the low-level voltage signal is detected, it indicates that the battery connector is connected to the motherboard connector, and thus the battery is in a present state.
[0070] The first connector and the central processing unit are connected via an I2C bus; the first connector and the central processing unit are connected via an I2C bus, and the I2C bus includes a clock line and a serial data line;
[0071] The first connector includes a first clock line interface and a first serial data line interface, namely Figure 3 The I2C_SCL interface at pin 9 and the I2C_SDA interface at pin 10 of the first connector;
[0072] The central processing unit includes a second clock line interface and a second serial data line interface, namely Figure 3 The I2C_SCL interface and I2C_SDA interface on the central processing unit described herein;
[0073] The first clock line interface is connected to the second clock line interface via the clock line, and the first serial data line is connected to the second serial data line interface via the serial data line.
[0074] See Figure 3 In this embodiment, the I2C bus on the rechargeable terminal motherboard is connected to the central processing unit via the first connector. Since the GPIO circuit can only simply determine whether the target battery of the rechargeable terminal is present, in this embodiment, after the battery is in a present state, the I2C interface of the central processing unit (i.e., the second clock line interface and the second serial data line interface) can be configured as the I2C bus. This allows the central processing unit to interact with the target battery's fuel gauge via the I2C bus to obtain battery information such as voltage, current, and temperature. Furthermore, before the battery is connected, the I2C circuit of the battery's internal fuel gauge is at a low level. Upon insertion, a low-impedance charging channel exists, which can generate a large inrush current, potentially lowering the level of the I2C bus on the rechargeable terminal motherboard and affecting its normal operation. Therefore, after the battery is in an off-state, the central processing unit can first configure the GPIO circuit to output pull-down mode, and then configure the I2C interface of the central processing unit to input pull-down mode for the GPIO circuit, thereby pulling the GPIO circuit down to a low level. Since the battery's internal I2C circuit is also at a low level before the battery is connected, inserting the battery at this time will not introduce surge current into the I2C interface because both ends are at a low level, ensuring the normal operation of the I2C bus on the motherboard of the rechargeable terminal.
[0075] Therefore, in this embodiment, the I2C interface is configured as the I2C bus only when the battery is in a present state, for interacting with the fuel gauge and obtaining battery information. This avoids the situation in the prior art where the fuel gauge is accessed via the I2C bus at fixed intervals, reducing unnecessary system overhead and energy consumption.
[0076] The battery in-situ detection device further includes: a battery end connector;
[0077] The battery connector includes a second connector for connecting to the first connector;
[0078] The second connector is connected to the fuel gauge of the target battery via an I2C circuit.
[0079] In this embodiment, it should be noted that the second connector is the corresponding connector of the first connector; that is, if the first connector is a male connector, then the second connector is a female connector; if the first connector is a female connector, then the second connector is a male connector. If the first connector is a contact, then the second connector is a spring; if the first connector is a spring, then the second connector is a contact.
[0080] In this embodiment, it should also be noted that the fuel gauge can be installed inside the target battery and connected to the battery cell to collect battery information.
[0081] See Figure 4 , Figure 4 This is a circuit diagram of one embodiment of the battery connector of this application. In this embodiment, the battery connector includes a second connector for connecting to the first connector; furthermore, the second connector is also connected to the target battery of the rechargeable terminal, for supplying power to the motherboard of the rechargeable terminal after the second connector is connected to the first connector. The second connector is connected to the fuel gauge of the target battery via an I2C circuit.
[0082] The central processing unit is used to obtain battery information of the target battery by interacting with the fuel gauge through the I2C circuit based on the I2C bus after the battery status is in the in-situ state.
[0083] In this embodiment, the battery status is "in-place," indicating that the target battery is present. The second connector is connected to the first connector, and at this time, the I2C bus on the motherboard is connected to the I2C circuit of the battery connector. Since the I2C circuit is connected to the fuel gauge of the target battery, the central processing unit can, after the battery status is "in-place," interact with the fuel gauge via the I2C bus and the I2C circuit to obtain the battery information of the target battery.
[0084] One embodiment of this application discloses a battery presence detection device, which includes: a motherboard connector; the motherboard connector includes a GPIO circuit, a first connector, and a central processing unit; a first end of the GPIO circuit is connected to a first GPIO interface of the first connector, and a second end of the GPIO circuit is connected to a second GPIO interface of the central processing unit. Thus, the central processing unit can determine the battery status of the target battery of the rechargeable terminal based on the voltage signal of the second GPIO interface. This embodiment, by setting a GPIO circuit between the first connector of the motherboard connector and the central processing unit, allows the battery status to be determined through the GPIO circuit, avoiding the system periodically accessing the battery's internal fuel gauge chip via the I2C bus to detect whether the battery is present even when it is not present, effectively reducing the system overhead for battery presence detection.
[0085] This application also proposes a rechargeable terminal, which includes the battery presence detection device as described in the above embodiments. The rechargeable terminal can be a device such as a MIFI (Mobile Wi-Fi), a mobile phone, a tablet computer, or a portable computer.
[0086] See Figure 5 , Figure 5 This is a flowchart illustrating an embodiment of the control method for a rechargeable terminal according to this application.
[0087] One embodiment of this application proposes a control method for a rechargeable terminal, applied to the rechargeable terminal described above. The control method includes:
[0088] Step S100: Obtain the voltage signal of the second GPIO interface, and confirm the battery status based on the voltage signal;
[0089] Step S200: After the battery state is in the off state, the I2C interface of the central processing unit is configured as a GPIO circuit in input pull-down mode.
[0090] In this embodiment, it should be noted that the battery presence detection device of the rechargeable terminal includes: a motherboard connector; the motherboard connector includes a GPIO circuit, a first connector, and a central processing unit; the first end of the GPIO circuit is connected to the first GPIO interface of the first connector, and the second end of the GPIO circuit is connected to the second GPIO interface of the central processing unit.
[0091] In this embodiment, it should also be noted that the battery status includes an in-place status (i.e., the motherboard connector is connected to the target battery) and an out-of-place status (i.e., the motherboard connector is disconnected from the target battery).
[0092] This embodiment can monitor the voltage signal of the second GPIO interface through the central processing unit. Therefore, after obtaining the voltage signal of the second GPIO interface, the battery status can be confirmed based on the voltage signal. If the battery status is not present, the GPIO circuit is first configured to output pull-down mode, and then the I2C interface of the central processing unit is configured as an input pull-down mode GPIO circuit, thereby pulling the GPIO circuit down to a low level. Since the I2C circuit inside the battery is also at a low level before the battery is connected, inserting the battery at this time, with both ends at a low level, will not introduce surge current into the I2C interface, ensuring the normal operation of the I2C bus on the motherboard of the rechargeable terminal.
[0093] The step of confirming the battery status based on the voltage signal in step S100 includes:
[0094] Step S110: After detecting that the voltage signal is high, determine that the battery is in an off-state.
[0095] Step S120: After detecting that the voltage signal is low, determine that the battery is in a present state.
[0096] In this embodiment, when the battery connector is disconnected from the motherboard connector, the GPIO circuit level is pulled up, resulting in a high voltage signal at the second GPIO interface. Therefore, when the central processing unit detects this high voltage signal, it indicates that the battery connector is disconnected from the motherboard connector, and thus determines that the battery is in an absent state. Since the battery connector has a grounded GND network, when the battery connector is connected to the motherboard connector, the grounding effect of this GND network pulls down the GPIO circuit level, resulting in a low voltage signal at the second GPIO interface. Therefore, when the low voltage signal is detected, it indicates that the battery connector is connected to the motherboard connector, and thus the battery is in a present state.
[0097] The first connector and the central processing unit are connected via an I2C bus; after the step S100 of acquiring the voltage signal of the second GPIO interface and confirming the battery status based on the voltage signal, the process includes:
[0098] Step S300: After the battery status is in place, configure the I2C interface as an I2C bus;
[0099] Step S310: Interact with the fuel gauge of the target battery via the I2C bus to obtain the battery information of the target battery.
[0100] In this embodiment, it should be noted that the first connector and the central processing unit are connected via an I2C bus. The battery presence detection device further includes a battery connector; the battery connector includes a second connector for connecting to the first connector; the second connector is connected to the fuel gauge of the target battery via an I2C circuit. After the second connector is connected to the first connector (i.e., the battery is in a present state), the I2C bus is connected to the I2C circuit on the battery connector.
[0101] Since the GPIO circuit can only simply determine whether the target battery of the rechargeable terminal is present, this embodiment configures the I2C interface of the central processing unit as the I2C bus after the battery status is confirmed to be present. Because the I2C circuit is connected to the fuel gauge of the target battery, the fuel gauge can be interacted with via the I2C bus to obtain battery information such as voltage, current, and temperature. Therefore, this embodiment configures the I2C interface as the I2C bus only when the battery status is confirmed to be present, and then interacts with the fuel gauge of the target battery to obtain its information. This avoids the fixed, periodic access to the fuel gauge via the I2C bus found in existing technologies, reducing unnecessary system overhead and energy consumption.
[0102] like Figure 6 As shown, Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application. This application also proposes a control device for a rechargeable terminal to implement the aforementioned control method for the rechargeable terminal.
[0103] For example, the control device of the rechargeable terminal can be the rechargeable terminal itself, or it can be a PDA (Personal Digital Assistant), PC (Personal Computer), server, or other devices.
[0104] like Figure 6As shown, the control device of the rechargeable terminal may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0105] Those skilled in the art will understand that Figure 6 The device structure shown does not constitute a limitation on the control device of the rechargeable terminal, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0106] like Figure 6 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a control application program for a rechargeable terminal.
[0107] exist Figure 6 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client and communicate data with the client; and the processor 1001 can be used to call the control program of the rechargeable terminal stored in the memory 1005 to implement the operation in the control method of the rechargeable terminal provided in the above embodiment.
[0108] Furthermore, this application also proposes a computer storage medium storing a computer program. When the computer program is executed by a processor, it implements the operations in the control method of the rechargeable terminal provided in the above embodiments. The specific steps will not be described in detail here.
[0109] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity / operation / object from another, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects; the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0110] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and relevant details can be found in the description of the method embodiments. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of this application. Those skilled in the art can understand and implement this without creative effort.
[0111] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0112] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0113] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A control method for a rechargeable terminal, applied to a rechargeable terminal, the rechargeable terminal including a battery presence detection device, the battery presence detection device including a motherboard connector; the motherboard connector including a GPIO circuit, a first connector and a central processing unit; a first terminal of the GPIO circuit connected to a first GPIO interface of the first connector, and a second terminal of the GPIO circuit connected to a second GPIO interface of the central processing unit; the central processing unit is used to confirm the battery status based on the voltage signal of the second GPIO interface; The control method includes: Obtain the voltage signal from the second GPIO interface and confirm the battery status based on the voltage signal; After the battery is in an off state, the GPIO circuit is configured as an output pull-down mode, and the I2C interface of the central processing unit is configured as an input pull-down mode GPIO circuit.
2. The control method for a rechargeable terminal as described in claim 1, characterized in that, The GPIO circuit includes: a pull-up resistor; The GPIO circuit is connected in series with the IO power supply voltage of the motherboard connector through the pull-up resistor.
3. The control method for a rechargeable terminal as described in claim 1, characterized in that, The first connector and the central processing unit are connected via an I2C bus, which includes a clock line and a serial data line. The first connector includes a first clock line interface and a first serial data line interface; The central processing unit includes a second clock line interface and a second serial data line interface. The first clock line interface is connected to the second clock line interface via the clock line, and the first serial data line is connected to the second serial data line interface via the serial data line.
4. The control method for a rechargeable terminal as described in claim 3, characterized in that, The battery in-situ detection device further includes: a battery end connector; The battery connector includes a second connector for connecting to the first connector; The second connector is connected to the fuel gauge of the target battery via an I2C circuit.
5. The control method as described in claim 1, characterized in that, The step of confirming the battery status based on the voltage signal includes: After detecting that the voltage signal is high, the battery is determined to be in an off-state. After detecting that the voltage signal is low, the battery status is determined to be in place.
6. The control method as described in claim 5, characterized in that, The first connector and the central processing unit are connected via an I2C bus; After the step of acquiring the voltage signal of the second GPIO interface and confirming the battery status based on the voltage signal, the following steps are included: After the battery status is in place, the I2C interface is configured as an I2C bus; The battery information of the target battery is obtained by interacting with the fuel gauge of the target battery via the I2C bus.
7. A control device for a rechargeable terminal, characterized in that, The control device of the rechargeable terminal includes: a memory and a processor. The memory stores a computer program that can run on the processor. When the computer program is executed by the processor, it implements the steps of the control method of the rechargeable terminal as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a control program for a rechargeable terminal, which, when executed by a processor, implements the steps of the control method for a rechargeable terminal as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Battery device, control circuit, powered device, and electronic apparatus
CN113169411A
Battery system for detecting in-place state and mobile terminal
CN209282342U