A method and apparatus for detecting a battery connection
Patent Information
- Application Number
- CN202011511833.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2040-12-18
AI Technical Summary
[0005]如果电池连接器扣合不良,则电池和主板无法正常连接,可能影响电子设备的正常运行,甚至产生安全问题,因此,而电池连接器的扣合可靠性对于电子设备的正常运行起到至关重要的作用,目前,还没有针对多极耳充电方式构成的充电回路连接的多个电池连接器的扣合状态检测方案
[0008] Using the above method, for electronic devices with multiple battery connectors, the value of the preset parameter for each battery connector is obtained, and the normal threshold range corresponding to the preset parameter is used to determine whether the battery connector is properly engaged. The preset parameter can be temperature and/or voltage, thereby detecting the engagement status of the battery connector from multiple dimensions, improving the reliability of the detection. Under normal operation of the electronic device, it can detect whether there are battery connectors with abnormal engagement status among multiple battery connectors, reducing the damage to components of electronic devices that operate in abnormal conditions for a long time.
Smart Images

Figure CN114646876B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a method and apparatus for detecting battery connection. Background Technology
[0002] During the charging process of mobile phones and other electronic devices, a very important factor affecting the charging speed is the magnitude of the charging current; a higher charging current can result in a faster charging speed.
[0003] One approach is to increase the charging current and improve charging efficiency by using a multi-tab charging method. The tabs include positive and negative tabs drawn from the battery cell. For example, the battery may contain two positive tabs and one negative tab. Each of the two positive tabs can form a charging circuit with the negative tab, thereby increasing the charging current through the two charging circuits.
[0004] Specifically, each charging circuit of the battery can be connected to the motherboard through a board-to-board (BTB) connector. The BTB used to connect the battery and the motherboard can also be called a battery connector. The battery connector can be used to transmit current or signals.
[0005] If the battery connector fails to engage properly, the battery and motherboard cannot connect correctly, which may affect the normal operation of electronic devices and even cause safety issues. Therefore, the engagement reliability of the battery connector plays a crucial role in the normal operation of electronic devices. Currently, there is no solution for detecting the engagement status of multiple battery connectors connected in a charging circuit composed of multi-tab charging methods. Summary of the Invention
[0006] This application provides a battery connection detection method and apparatus, which is used to provide a reliability detection method for multi-tab batteries connected to a motherboard through multiple battery connectors.
[0007] In a first aspect, embodiments of this application provide a battery connection detection method, applied to an electronic device having at least two battery connectors, wherein the battery of the electronic device is connected to the motherboard of the electronic device through at least two battery connectors. The method includes: for a first battery connector, obtaining the values of one or more preset parameters of the first battery connector, the preset parameters including the terminal voltage of the first battery connector connected to the battery and / or the battery temperature; determining that the battery and the motherboard are properly connected when the values of one or more preset parameters respectively meet the preset detection conditions of one or more preset parameters; determining that the battery and the motherboard are improperly connected when the value of any one of the one or more preset parameters does not meet the preset detection conditions corresponding to the preset parameters; wherein the first battery connector is any one of the at least two battery connectors; when the preset parameter includes the battery temperature, the preset detection conditions corresponding to the battery temperature include: whether the temperature difference between the battery temperature of the first battery connector and the battery temperature of the second battery connector is less than a first preset value, and the second battery connector is any one of the at least two battery connectors other than the first battery connector.
[0008] Using the above method, for electronic devices with multiple battery connectors, the value of the preset parameter for each battery connector is obtained, and the normal threshold range corresponding to the preset parameter is used to determine whether the battery connector is properly engaged. The preset parameter can be temperature and / or voltage, thereby detecting the engagement status of the battery connector from multiple dimensions, improving the reliability of the detection. Under normal operation of the electronic device, it can detect whether there are battery connectors with abnormal engagement status among multiple battery connectors, reducing the damage to components of electronic devices that operate in abnormal conditions for a long time.
[0009] In one possible design, the preset parameters include the terminal voltage at the connection between the first battery connector and the battery; the preset detection conditions corresponding to the terminal voltage at the connection between the first battery connector and the battery include: whether the terminal voltage at the connection between the first battery connector and the battery is within a first preset threshold range; and / or whether the voltage difference between the terminal voltage at the connection between the first battery connector and the battery and the terminal voltage at the connection between the second battery connector and the battery is less than a first preset value, wherein the second battery connector is any one of at least two battery connectors other than the first battery connector.
[0010] Using the above method, the terminal voltage value of each battery connector is obtained, and it is detected whether the terminal voltage of a single battery connector is within the normal threshold range. Furthermore, when the terminal voltage of a single battery connector is normal, the terminal voltage values of any two battery connectors can be compared to detect whether there is a battery connector with a large voltage difference. Under normal circumstances, the terminal voltage values of battery connectors in the same electronic device are approximately the same. Therefore, if the voltage difference is large, it can also reflect that the engagement state of the battery connector is abnormal. The engagement state of the battery connector can be detected from multiple dimensions, avoiding missed detections and improving the reliability of detection.
[0011] In one possible design, the method further includes: acquiring the output voltage of the USB interface of the electronic device;
[0012] The preset detection conditions corresponding to the terminal voltage of the first battery connector connected to the battery also include: whether the output voltage of the USB interface is within the range of the second preset threshold; and / or whether the voltage difference between the terminal voltage of the first battery connector connected to the battery and the output voltage of the USB interface is less than the second preset value.
[0013] Using the above method, it is possible to further detect whether there is any abnormality in the USB interface, and to determine whether the terminal voltage of the battery connector is abnormal based on the output voltage of the USB interface. The engagement status of the battery connector can be detected from multiple dimensions, avoiding missed detections and improving the reliability of the detection.
[0014] In one possible design, the preset parameters include the battery temperature at the connection between the first battery connector and the battery; the preset detection conditions corresponding to the battery temperature at the connection between the first battery connector and the battery include whether the battery temperature at the connection between the first battery connector and the battery is within a third preset threshold range.
[0015] In one possible design, the method further includes: acquiring the temperature of the USB interface of the electronic device;
[0016] The preset detection conditions corresponding to the battery temperature at the connection point between the first battery connector and the battery also include: whether the temperature of the USB interface is within the fourth preset threshold range; and / or whether the temperature difference between the battery temperature at the connection point between the first battery connector and the battery and the temperature of the USB interface is less than the fourth preset value.
[0017] Using the above method, it is possible to further detect whether there is any abnormality in the USB interface, and to determine whether the battery temperature of the battery connector is abnormal based on the temperature of the USB interface. This allows for multi-dimensional detection of the battery connector's engagement status, improving detection reliability.
[0018] In one possible design, the preset detection conditions for one or more preset parameters are obtained by: acquiring the battery specification identifier of the electronic device; finding the preset detection conditions for one or more preset parameters corresponding to the battery specification identifier in a preset correspondence; the correspondence includes different battery specification identifiers and preset detection conditions for different preset parameters.
[0019] Using the above method, different battery specifications can have different preset detection conditions with preset parameters, resulting in smaller detection granularity, more flexible detection methods, and greater accuracy.
[0020] In one possible design, before obtaining the values of one or more preset parameters of the first battery connector, the method further includes detecting a trigger condition, which may include the electronic device starting up or the electronic device being charged.
[0021] Secondly, embodiments of this application also provide an electronic device, which may include: a battery; a motherboard; at least two battery connectors; one or more processors; one or more memory; wherein the battery is connected to the motherboard through the at least two battery connectors; the one or more memory stores one or more computer programs, the one or more computer programs including instructions, which, when executed by the one or more processors, cause the electronic device to perform the above-mentioned first aspect and any possible design of the first aspect.
[0022] Thirdly, embodiments of this application also provide an electronic device, which includes modules / units for performing the first aspect or any possible design method of the first aspect; these modules / units can be implemented in hardware or by hardware executing corresponding software.
[0023] Fourthly, embodiments of this application also provide a chip, which is coupled to a memory in an electronic device to execute the technical solutions of the first aspect of this application and any possible design of the first aspect; in the embodiments of this application, "coupling" means that two components are directly or indirectly combined with each other.
[0024] Fifthly, embodiments of this application also provide a computer-readable storage medium, the computer-readable storage medium including a computer program, which, when run on an electronic device, causes the electronic device to execute the first aspect of the embodiments of this application and any possible design of the first aspect.
[0025] In a sixth aspect, embodiments of this application also provide a computer program product that, when run on an electronic device, causes the electronic device to execute the first aspect of the embodiments of this application and any possible design of the first aspect. Attached Figure Description
[0026] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0027] Figure 2 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application;
[0028] Figure 3 This is a schematic diagram of the structure of a battery connector;
[0029] Figure 4 A flowchart illustrating a battery connection detection method provided in an embodiment of this application;
[0030] Figure 5a A flowchart illustrating Embodiment 1 provided for the purposes of this application;
[0031] Figure 5b Another flowchart of Embodiment 1 provided for the present application;
[0032] Figure 6a A flowchart illustrating Embodiment Two provided for the purposes of this application;
[0033] Figure 6b Another flowchart of Embodiment 2 provided for the present application;
[0034] Figure 7 A schematic diagram of an interface provided for an embodiment of this application;
[0035] Figure 8 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation
[0036] First, some of the terms used in this application will be explained.
[0037] (1) The electronic device in this application refers to an electronic device with a rechargeable battery, such as a mobile phone or tablet computer. The rechargeable battery provides power to the power-consuming components of the electronic device, such as processors, memory, and various chips. Furthermore, the rechargeable battery can be charged by an external charging device to ensure a continuous supply of power.
[0038] (2) The battery in this embodiment includes a battery cell and a protection circuit board. The protection circuit board is used to protect the battery cell. The battery cell is the energy storage part of the rechargeable battery, capable of being charged and discharged. The protection circuit is generally used to prevent risks such as overcharging, over-discharging, and short circuits of the battery, and the casing is mainly used to protect the battery cell and the protection circuit.
[0039] (3) In the embodiments of this application, the tab refers to the metal conductor extending outward from the battery cell. Specifically, the tab includes a positive tab and a negative tab. The positive tab is the metal conductor led out from the positive electrode in the battery cell, and the negative tab is the metal conductor led out from the negative electrode in the battery cell. The positive tab and the negative tab are the contact points for the charging and discharging process of the rechargeable battery.
[0040] (4) In the embodiments of this application, the motherboard refers to the circuit carrier of an electronic device, which is generally a circuit board. The motherboard may integrate the following: Figure 1 The processor, memory, one or more sensors, USB interface and other devices or circuits in it.
[0041] (5) The board-to-board (BTB) connector in this embodiment is used as a bridge to connect two independent devices. In this embodiment, the motherboard and the battery can be connected via the BTB, which can also be called a battery connector, and is used to transmit current and signals.
[0042] The following embodiments use a mobile phone as an example. Exemplarily, Figure 1 A schematic diagram of the structure of a mobile phone 100 is shown.
[0043] like Figure 1 As shown, the mobile phone 100 may include a processor 110, an external memory interface 122, an internal memory 121, a universal serial bus (USB) interface 172, a charging IC 180, a power management module 181, a battery 182, an antenna 1, an antenna 2, a mobile communication module 191, a wireless communication module 192, an audio module 160, a speaker 161, a receiver 162, a microphone 163, a headphone jack 164, a sensor module 150, a touch sensor 150A, a pressure sensor 150B, a camera 130, a display screen 140, and a subscriber identification module (SIM) card interface 171, etc.
[0044] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). In specific implementations, different processing units may be independent devices or integrated into one or more processors.
[0045] In some embodiments, the processor 110 may also include a cache for storing programs and data. For example, the cache in the processor 110 may be a cache memory. This cache can be used to store programs or data that the processor 110 has just used, generated, or is recurring, such as cutoff voltage, cutoff current, etc. If the processor 110 needs to use the program or data, it can directly retrieve it from the cache. This helps reduce the time the processor 110 takes to retrieve programs or data, thereby improving system efficiency.
[0046] The internal memory 121 can be used to store programs and / or data. In some embodiments, the internal memory 121 includes a program storage area and a data storage area. The program storage area can be used to store the operating system (such as Android, iOS, etc.), computer programs required for at least one function (such as charging function, sound playback function, etc.). The data storage area can be used to store data created and / or collected during the use of the electronic device (such as voltage, etc.). For example, the processor 110 can call programs and / or data stored in the internal memory 121 to cause the electronic device to execute corresponding methods, thereby realizing one or more functions. For example, the processor 110 can call certain programs and / or data in the internal memory to cause the electronic device to execute the charging method provided in the embodiments of this application, thereby charging the battery in the electronic device. The internal memory 121 can be a high-speed random access memory, and / or non-volatile memory, etc. For example, non-volatile memory can include at least one of one or more disk storage devices, flash memory devices, and / or universal flash storage (UFS), etc.
[0047] The external storage interface 122 can be used to connect an external memory card (e.g., a Micro SD card) to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 122 to perform data storage functions. For example, the electronic device can save images, music, videos, and other files to the external memory card through the external storage interface 122.
[0048] The display screen 140 may include a display panel for displaying a user interface. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. For example, the electronic device may implement display functions through a GPU, the display screen 140, an application processor, etc. It should be noted that embodiments of this application may include one or more display screens 140.
[0049] Sensor module 150 may include one or more sensors. For example, touch sensor 150A, pressure sensor 150B, etc. In other embodiments, sensor module 150 may also include a gyroscope, accelerometer, fingerprint sensor, ambient light sensor, distance sensor, proximity sensor, bone conduction sensor, temperature sensor, etc. Touch sensor 150A may also be referred to as a "touch panel." Touch sensor 150A may be disposed on display screen 140. Touch sensor 150A and display screen 140 constitute a touchscreen, also called a "touch screen." Touch sensor 150A is used to detect touch operations applied to or near it. Touch sensor 150A can transmit the detected touch operation to the application processor to determine the type of touch event. The electronic device can provide visual output related to the touch operation through display screen 140. In other embodiments, touch sensor 150A may also be disposed on the surface of the electronic device, in a different location than display screen 140.
[0050] Pressure sensor 150B is used to sense pressure signals and convert them into electrical signals. For example, pressure sensor 150B can be located on display screen 140. Touch operations applied to the same touch location but with different touch intensity can correspond to different operation commands.
[0051] Electronic devices can implement audio functions through audio modules 160, speakers 161, receivers 162, microphones 163, headphone jacks 164, and application processors. Examples include audio playback, recording, and voice wake-up functions.
[0052] USB port 172 is an interface that conforms to the USB standard specification, specifically including Mini USB, Micro USB, and USB Type-C interfaces. USB port 172 can be used to connect a charger to charge electronic devices, and also for data transfer between electronic devices and peripherals. It can also be used to connect headphones for sound playback. For example, besides being a headphone jack 164, USB port 172 can also be used to connect other electronic devices, such as AR devices and computers.
[0053] The charging IC 180, also known as a charging management module, is used to receive charging input from an external charger. This external charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging IC 180 receives charging input from the wired charger via the USB interface 170. In some wireless charging embodiments, the charging IC 180 receives wireless charging input via the wireless charging coil of the electronic device. While charging the battery 182, the charging IC 180 can also supply power to the electronic device via the power management module 181.
[0054] The power management module 181 connects the battery 182, the charging IC 180, and the processor 110. The power management module 181 receives input from the battery 182 and / or the charging IC 180, supplying power to the processor 110, internal memory 121, camera 130, display screen 140, etc. The power management module 181 can also monitor parameters such as battery level, battery cycle count, and battery health status (leakage current, impedance). For example, the power management module 181 includes a fuel gauge to monitor battery level. In some other embodiments, the power management module 181 may also be located within the processor 110. In other embodiments, the power management module 181 and the charging IC 180 may be located in the same device or in different devices.
[0055] The battery 182 includes a battery cell and a protection circuit board. The protection circuit board protects the battery cell. In some embodiments, the battery 182 can be connected to a charging IC 180 and a power management module 181 on an electronic device via a battery connector to enable charging and power supply. It should be noted that the battery connector allows users to remove the battery from the electronic device as needed, facilitating battery replacement.
[0056] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone 100. In other embodiments of this application, the mobile phone 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0057] Please see Figure 2 , Figure 2 This is another structural diagram of mobile phone 100, which includes a motherboard and a battery, wherein... Figure 1 Most of the power-consuming components on the mobile phone 100 shown are integrated on the motherboard, which also integrates a USB interface. Specifically, the USB interface is a charging input interface, and the input power can power the motherboard. The battery connects to one or more battery connectors (…). Figure 2 This example uses two battery connectors (a first battery connector and a second battery connector, but the number of battery connectors is not limited in this embodiment) to connect to the motherboard. When the battery connector between the battery and the motherboard is engaged, the power input at the USB interface can also charge the battery. Additionally, the battery can also provide power to various power-consuming components on the motherboard.
[0058] Please see Figure 3 , Figure 3 This is a schematic diagram of a current battery connector. Figure 3 Lieutenant General Figure 2 Taking a battery connector as an example, the structure of the battery connector will be introduced.
[0059] The battery connector includes a first connector assembly (also called a male connector) and a second connector assembly (also called a female connector) that interlock with each other. The first connector assembly has protruding pins, and the second connector assembly has pins with holes. The protruding pins of the first connector assembly are inserted into the pins with holes in the second connector assembly, thus engaging the two connectors. Alternatively, the protruding pins on the first connector assembly and the pins with holes on the second connector assembly can correspond one-to-one; during engagement, the corresponding protruding pins and pins must be inserted together. The first connector assembly connects to a first device, and the second connector assembly connects to a second device. By engaging the first and second connector assemblies together, the battery connector is engaged, thus connecting the first and second devices.
[0060] In this embodiment, the first device can be a battery, and the second device can be a motherboard. The first connector assembly is connected to the battery, and the second connector assembly is connected to the motherboard. The battery and the motherboard are connected by the engagement of the battery connector. For example, the first connector assembly may include three protruding pins. These three protruding pins can be connected to a pair of positive and negative terminals of the battery and a temperature sensor, respectively, via extension cables. For instance, the three protruding pins are designated as pin 1, pin 2, and pin 3. Pin 1 is connected to the positive terminal, pin 2 to the negative terminal, and pin 3 to the temperature sensor. Correspondingly, the second connector assembly has hole-shaped pins that correspond one-to-one with the three protruding pins of the first connector assembly. The three protruding pins of the first connector assembly and the three hole-shaped pins of the second connector assembly are inserted together, thereby engaging the battery connector and simultaneously connecting the battery and the motherboard.
[0061] Pins 1 and 3 are used to transmit current between the interconnected battery and motherboard. For example, when the battery powers the motherboard, current flows from the battery into the motherboard. When an external charger (e.g., a power adapter) charges the battery, the power adapter is plugged into a USB interface integrated on the motherboard, and current flows from the power adapter through the USB interface and the motherboard into the battery to charge it. Pin 2 is used to transmit a temperature signal to the processor on the motherboard.
[0062] It should be noted that, Figure 3 The pins shown are merely examples. In this embodiment, the battery connector may have more or fewer pins. For example, there may be no pin for connecting the temperature sensor, or it may include a battery identification pin, etc. This embodiment does not limit this, and will be described in detail below.
[0063] Currently, a highly efficient charging solution for electronic devices is the multi-tab charging method, where the battery cell has multiple pairs of tabs (…). Figure 2This example illustrates two pairs of electrodes, but the number of electrodes is not limited in this embodiment. Multiple pairs of electrodes can be one or more positive electrodes sharing a single negative electrode, or they can be independent of each other. Figure 2 (Not shown in the image) Pair of electrodes.
[0064] In practical applications, to disperse the current and improve thermal balance, such as Figure 2 As shown, each pair of electrodes is connected to the motherboard through an independent battery connector. Charging current is increased by charging multiple pairs of electrodes, thereby improving charging efficiency.
[0065] While multi-tab charging improves charging efficiency, it also introduces more battery connectors. The engagement of these connectors plays a crucial role in the normal charging and discharging operation of the phone. Compared to batteries with multiple connectors, batteries with single connectors have a simpler structure. When a single connector malfunctions, for example, due to an external impact causing it to loosen, poor contact occurs in the power supply lines between the motherboard and the battery. In this case, the phone cannot supply power to the motherboard, potentially preventing the phone from starting and rendering it unusable. Prompt inspection is necessary to prevent prolonged use of the battery with an abnormal connector engagement, which could damage the battery or motherboard. Unlike single-connector batteries, with multi-connector batteries, even if one connector malfunctions, the phone can still power on and operate. However, prolonged poor contact in one connector poses a significant safety hazard. Currently, there is no method to detect malfunctions in the engagement of each individual battery connector in a multi-tab charging system.
[0066] In view of this, this application provides a method for detecting the engagement status of multiple battery connectors. This method can be applied to an electronic device where multiple battery connectors connect the battery and the motherboard. For each battery connector, the method acquires the value of one or more preset parameters. If the value of each preset parameter satisfies a corresponding preset detection condition, the battery connector is determined to be properly engaged. If any one of the preset parameters fails to meet the corresponding preset detection condition, the battery connector is determined to be improperly engaged. This method detects the engagement status of the battery connectors. Furthermore, the method can also incorporate the detection of voltage and / or temperature of the USB interface related to the battery connectors during the charging process of the electronic device, thereby preventing further damage caused by poor battery connector engagement.
[0067] The method for detecting the engagement state of a multi-battery connector provided in this application will be described in detail below with reference to specific embodiments and accompanying drawings.
[0068] Please see Figure 4 This is a flowchart illustrating a method for detecting the engagement state of a multi-battery connector provided in an embodiment of this application. This method can be applied to... Figure 1 The electronic devices shown and Figure 2 In the structure shown, the method mainly includes the following steps:
[0069] Step 401: For each battery connector in the electronic device, the processor in the electronic device obtains the value of one or more preset parameters of that battery connector.
[0070] Firstly Figure 2 Using the structure of the electronic device shown as an example, the parameters that may be used in this application will be introduced.
[0071] 1) Battery temperature;
[0072] In this embodiment, a temperature sensor is installed near the connection point between each battery connector and the battery. For example, this temperature sensor can be an NTC thermistor or other temperature sensors. For ease of description, NTC will be used as an example below.
[0073] like Figure 2 As shown, NTC1 is installed near the first battery connector, and NTC2 is installed near the second battery connector. NTC1 is used to collect the temperature near the first battery connector on the battery, and NTC2 is used to collect the temperature near the second battery connector on the battery. The temperature of the first battery connector collected by NTC1 is denoted as Tbtb1, and the temperature of the second battery connector collected by NTC2 is denoted as Tbtb2. In reality, the NTCs are installed near the connection point between the battery connector and the battery. Therefore, the so-called battery connector temperature here is actually the temperature near the battery connector on the battery, i.e., Tbtb1 is the temperature near the first battery connector on the battery, and Tbtb2 is the temperature near the second battery connector on the battery, which is also the battery temperature.
[0074] 2) Battery voltage;
[0075] Battery voltage refers to the voltage between the positive and negative terminals of the battery. Please refer to... Figure 2 It is understood that the voltage measured between the positive and negative tabs of the battery connector relative to the upper and lower ends of the battery is the battery voltage, which can also be called the terminal voltage at which the battery connector is connected to the battery.
[0076] Continue reading Figure 2The battery voltage measured through the first battery connector is the voltage across the positive tab 1 and the negative tab, and the battery voltage measured through the second battery connector is the voltage across the positive tab 2 and the negative tab. The battery voltage measured through the first battery connector will be denoted as Vbtb1, and the battery voltage measured through the second battery connector will be denoted as Vbtb2.
[0077] 3) USB interface voltage
[0078] USB interface voltage refers to the input voltage of the USB interface. For example, when one end of a power adapter is connected to a power source, such as 220V AC, and the other end is inserted into a USB interface, the voltage of that USB interface is denoted as Vusb.
[0079] 4) Temperature of the USB interface
[0080] Combination Figure 2 For example, an NTC thermistor, denoted as NTC3, is also installed at the USB interface, and the temperature measured by NTC3 is denoted as Tusb. In fact, since part of the USB interface can be exposed to the outdoors, the temperature measured by NTC3 is also close to room temperature.
[0081] 5) Battery specification markings
[0082] Battery specification identifiers are used to uniquely identify a battery specification. Each battery specification corresponds to a set of charging parameters. For example, these charging parameters mainly include: battery capacity, rated charging voltage, rated charging current, and rated power. These parameters are generally the battery's factory specifications. Figure 2 As shown, the battery connector pins may also include a battery specification identification pin. When the battery connector is engaged, the processor can obtain the battery specification identification through the battery specification identification pin.
[0083] The following is Figure 2 The structure shown is described using an example. For instance, the preset parameters in this embodiment include, but are not limited to, some or all of the following: Tbtb1, Tbtb2, Vbtb1, Vbtb2, Vusb, Tusb, or battery specification identifier.
[0084] The first possible implementation method for the processor to acquire preset parameters is: parallel acquisition method, in which the processor synchronously acquires multiple preset parameters in parallel. It should be understood that the preset parameters may be different depending on the detection method. The synchronous acquisition of multiple preset parameters here refers to the preset parameters agreed upon in a specific detection method. For example, if a detection method only detects Tbtb1, Tbtb2, Vbtb1, and Vbtb2, then the processor in the electronic device can synchronously acquire Tbtb1, Tbtb2, Vbtb1, and Vbtb2, and based on the acquired parameters, synchronously use the corresponding judgment conditions to detect whether each acquired preset parameter is a normal value.
[0085] Specifically, at the software level, parallel processing can be implemented using multiple threads within a single process, with each thread dedicated to acquiring one preset parameter. Alternatively, for multi-core electronic devices, it can be achieved through multiple processes, with each core executing one process, each process acquiring one preset parameter, thus enabling parallel acquisition of multiple preset parameters. This design allows the electronic device to simultaneously detect multiple preset parameters, improving detection efficiency.
[0086] The second feasible way for the processor to obtain preset parameters is as follows: serial acquisition method. The processor acquires one preset parameter at a time according to the preset detection process. In other words, it acquires the current preset parameter to be detected. When the parameter is determined to be a normal value, the next preset parameter to be detected is detected. This process continues until all preset parameters to be detected have been detected. If the currently acquired preset parameter does not meet the preset detection conditions, such as the value of the parameter being outside the normal threshold range, the detection process is exited and there is no need to acquire the next preset parameter.
[0087] For example, a pre-defined detection process is as follows: first, it checks whether Tbtb1 is within the normal range; then, it checks whether Tbtb2 is within the normal range; next, it checks whether Vbtb1 is within the normal range; and finally, it checks whether Vbtb2 is within the normal range. The detection order is Tbtb1 → Tbtb2 → Vbtb1 → Vbtb2. Correspondingly, during detection, the electronic device can first collect Tbtb1. After determining that Tbtb1 is within the normal range, it then collects Tbtb2. After determining that Tbtb2 is within the normal range, it then collects Vbtb1, and so on, until Vbtb2 is found to be within the normal range. If, after collecting Tbtb1, it is determined that Tbtb1 is not within the normal range, the detection process can be exited, and it is no longer necessary to collect Tbtb2, Vbtb1, and Vbtb2, thereby reducing the resource overhead of collecting parameters.
[0088] A third feasible method for the processor to acquire preset parameters is a combination of serial and parallel acquisition. For example, certain preset parameters that must be acquired can be obtained using parallel acquisition, while other parameters can be acquired serially. For instance, Tbtb1 and Tbtb2 can be acquired synchronously. Subsequently, once both Tbtb1 and Tbtb2 are confirmed to be within normal values, the next parameter to be detected, such as the USB interface voltage Vusb, is acquired sequentially and then further detected. This design saves detection time, improves detection efficiency, avoids wasting detection resources, and offers high detection flexibility.
[0089] It should be understood that if it is a serial acquisition method, step 401 needs to be executed repeatedly, but the preset parameters are different each time.
[0090] Step 402: For each battery connector, the processor determines whether the values of one or more preset parameters meet the preset detection conditions of the one or more preset parameters based on the acquired values. If they all meet the conditions, the battery connector is determined to be properly engaged; otherwise, the battery connector is determined to be improperly engaged.
[0091] The following describes the method for detecting the engagement state of a multi-battery connector provided in this application with specific embodiments. The detection method provided in this embodiment can be initiated when the processor detects that the electronic device is powered on, or each time the processor detects that the electronic device is being charged.
[0092] Example 1
[0093] Please see Figure 5a , Figure 5a This embodiment provides a flowchart illustrating the first method for detecting the engagement state of a multi-battery connector. The method includes the following steps:
[0094] Step 501a: The processor obtains the voltage value Vbtb1 of the first battery connector.
[0095] Step 502a: The processor determines whether Vbtb1 is within the normal voltage threshold range (denoted as the first preset threshold range). If it is, step 503 is executed; otherwise, the first battery connector is determined to be faulty.
[0096] It should be noted that the normal voltage threshold ranges for different battery connectors can be different or the same. For ease of description, the following description will use the example where the thresholds or threshold ranges for each parameter corresponding to each battery connector are the same. For example, the normal voltage threshold range for the first battery connector and the normal voltage threshold range for the second battery connector can both be the first preset threshold range, and similar situations will not be repeated below.
[0097] Optionally, if the voltage value of the battery connector is not within the first preset threshold range, it indicates that the battery connector is not properly engaged. Furthermore, if the voltage value of the battery connector is not within the first preset threshold range, and the first preset threshold range does not include 0V, it can also be determined whether the voltage value of the battery connector is close to 0V. For example, if Vbtb1≤0, it indicates that the conductive circuit formed by the positive tab 1 and the negative tab in the first battery connector is open.
[0098] Step 501b: The processor obtains the voltage value Vbtb2 of the second battery connector.
[0099] Step 502b: The processor determines whether Vbtb2 is within the first preset threshold range (as mentioned above, assuming that the normal voltage threshold range corresponding to the second battery connector is the first preset threshold range). If it is, step 503 is executed; otherwise, the second battery connector is determined to be abnormally engaged.
[0100] When an electronic device includes multiple battery connectors, the voltage detection process for each battery connector can refer to the specific execution steps of steps 501a to 502a above. In this embodiment, the voltage detection methods for the second battery connector and the first battery connector are the same. For steps 501b to 502b, please refer to the description of steps 501a to 502a, which will not be repeated here.
[0101] Step 501c: The processor obtains the voltage Vusb of the USB interface.
[0102] Step 502c: The processor determines whether Vusb is within the normal voltage threshold range corresponding to USB (denoted as the second preset threshold range). If it is, proceed to step 503; otherwise, determine that the USB interface is abnormal.
[0103] Similarly, the voltage detection method of the USB interface is similar to that of the battery connector, and will not be elaborated here.
[0104] Step 503: The processor determines whether the voltage difference between the first battery connector and the second battery connector (denoted as the first voltage difference) is less than the first preset threshold. If it is, then step 504 is executed; otherwise, it is determined that the first battery connector is not properly engaged or the second battery connector is not properly engaged.
[0105] Specifically, the first voltage difference is |Vbtb1-Vbtb2|, where || represents the absolute value. If |Vbtb1-Vbtb2| ≥ the first preset threshold, it is determined that either the first battery connector or the second battery connector is not properly fastened, and the processor can also stop detecting multiple battery connectors.
[0106] It should be understood that, theoretically, during battery charging, the voltage and temperature values of the first and second battery connectors are the same. However, due to differences in manufacturing processes, such as different wire lengths, different welding processes, and unstable fastening states, there may be differences in their voltages. However, these differences are generally small. If the difference is large, for example, if the first voltage difference is greater than the first preset threshold, it indicates that the fastening of at least one of the battery connectors is abnormal.
[0107] Step 504: The processor determines whether the voltage difference between the first battery connector and the USB interface (denoted as the second voltage difference) is less than the second preset threshold. If it is, then proceed to step 505; otherwise, determine that the first battery connector is not properly engaged.
[0108] Specifically, the second voltage difference is |Vusb-Vbtb1|. If |Vusb-Vbtb1| ≥ the second preset threshold, it indicates that the first battery connector is abnormal, and the processor can exit the detection process for multiple battery connectors.
[0109] Those skilled in the art will understand that the input voltage of the USB interface needs to undergo voltage drop processing before it can power the battery. Therefore, during charging, there is a certain voltage difference between Vusb and Vbtb1, and between Vusb and Vbtb2. For example, if the input voltage is 10V and the voltage drop factor is 0.5, then the voltage of the battery connector is 10V * 0.5 = 5V. Theoretically, this voltage difference is the theoretical voltage drop value calculated based on the voltage drop factor and the input voltage of the USB interface. In reality, this voltage difference may also include the voltage drop value caused by line loss between the USB interface and the battery connector. The second preset threshold provided in this embodiment can be determined based on the theoretical voltage drop value between the input voltage of the USB interface and the voltage of the battery connector, or it can be determined jointly based on the theoretical voltage drop value and the voltage drop value caused by line loss.
[0110] Step 505: The processor determines whether the voltage difference between the second battery connector and the USB interface (referred to as the third voltage difference) is less than the second preset threshold. If it is, it determines that both the first battery connector and the second battery connector are properly engaged; otherwise, it determines that the second battery connector is improperly engaged.
[0111] Specifically, the third voltage difference is |Vusb-Vbtb2|. If |Vusb-Vbtb2| ≥ the second preset threshold, it indicates that the second battery connector is not properly engaged.
[0112] When an electronic device includes multiple battery connectors, the voltage detection process for each battery connector can be referred to the description of step 504 above. In Embodiment 1, the voltage detection methods for the second battery connector and the first battery connector are the same. The execution process of step 505 can be referred to the specific description of step 504, and will not be repeated here.
[0113] It should be noted that (1) there is no strict timing restriction between steps 501a to 502a, steps 501b to 502b, and steps 501c to 502c. They can be executed in parallel or in sequence. Here, we take parallel execution as an example, but the embodiments of this application do not limit this. For example, see Figure 5b This is a schematic diagram of a serial voltage detection method. Figure 5b For details on how to perform each step, please refer to [link / reference]. Figure 5a The specific details are omitted here. Additionally, Figure 5b This is just one example. There are many ways to detect voltage serially in this application embodiment. For example, step 503 can be executed after step 502b, or step 501c can be executed after step 503, step 502c can be executed after step 501c, step 504 can be executed after step 502c, etc. This application embodiment does not limit this. (2) The above method of detecting the engagement state of the battery connector by voltage is just an example. Steps 501c, 502c, 504, and 505 are optional steps. This embodiment does not limit the method of detecting the engagement state of the battery connector by voltage.
[0114] Furthermore, the preset values corresponding to the parameters involved in the above judgment steps can be uniform or configured according to different battery specifications. For example, the electronic device has a preset mapping relationship between battery specification identifiers and the normal value ranges of each parameter. The electronic device can obtain the battery specification identifier through the pins of the battery connector and query the threshold or threshold range corresponding to each parameter of its battery specification identifier through this mapping relationship. These values can be agreed upon by protocol or determined based on empirical values, experimental values, etc. This embodiment does not limit this. See Table 1 below for a specific example of a mapping relationship provided in this embodiment.
[0115] Table 1
[0116]
[0117] For example, when a processor in an electronic device detects a trigger condition (as described above, this could be when the processor detects that the electronic device is powered on, or each time the processor detects that the electronic device is being charged), it obtains the battery specification identifier. Based on Table 1 above, it determines the parameter values corresponding to this battery specification identifier and the corresponding preset threshold ranges. Subsequently, it determines the engagement status of the battery connector based on these parameter values.
[0118] The above method can detect the battery connector's engagement status by checking the voltage of the battery connector and the USB interface. If the voltage does not meet the preset detection conditions, it indicates that the battery connector's engagement status is abnormal. Furthermore, the user can be notified in a timely manner of the abnormal battery connector engagement status, reducing the impact on electronic devices and preventing minor hidden dangers from causing safety accidents.
[0119] Example 2
[0120] Please see Figure 6a , Figure 6a This embodiment provides a flowchart illustrating the second method for detecting the engagement state of a multi-battery connector. The method includes the following steps:
[0121] Step 601a: The processor obtains the temperature Tbtb1 of the first battery connector.
[0122] Step 602a: The processor determines whether Tbtb1 is within the normal temperature threshold range (denoted as the third preset threshold range) corresponding to the first battery connector. If it is, step 603 is executed; otherwise, the engagement of the first battery connector is determined to be abnormal.
[0123] Different battery connectors may have different or the same normal temperature threshold ranges. For ease of description, the following description will use the example where the thresholds or threshold ranges for each parameter are the same for all battery connectors. For example, the normal temperature threshold range for the first battery connector and the normal temperature threshold range for the second battery connector are both the third preset threshold range. Similar situations will not be repeated below.
[0124] Optionally, if the temperature of the battery connector is outside the third preset threshold range, it indicates an abnormality in the battery connector's engagement. Furthermore, if the temperature value of the battery connector is outside the third preset threshold range, it can also be determined whether the temperature value of the battery connector is an open circuit and / or a short circuit. It should be understood that the temperature sensor's measurement range is fixed; regardless of whether it is an open circuit or a short circuit, the temperature sensor's measurement value will exceed the measurement range. For example, when there is a short circuit, the temperature sensor value will be particularly low, and when there is an open circuit, the temperature sensor value will be particularly high.
[0125] Step 601b: The processor obtains the temperature Vbtb2 of the second battery connector.
[0126] Step 602b: The processor determines whether Vbtb2 is within the normal threshold range corresponding to the second battery connector (as mentioned above, assuming the normal threshold range corresponding to the second battery connector is the third preset threshold range). If it is, step 603 is executed; otherwise, the engagement of the second battery connector is determined to be abnormal.
[0127] Step 601c: The processor obtains the temperature Tusb of the USB interface.
[0128] Step 602c: The processor determines whether the temperature Tusb of the USB interface is within the normal temperature threshold range (denoted as the fourth preset threshold range). If it is, proceed to step 603; otherwise, determine that the USB interface is abnormal.
[0129] The temperature of the USB interface here is close to room temperature; therefore, the fourth preset threshold range can be determined based on the threshold range of the ambient temperature.
[0130] Step 603: The processor determines whether the temperature difference between the first battery connector and the second battery connector (denoted as the first temperature difference) does not exceed the third preset threshold. If it does, then proceed to step 604; otherwise, determine that the first battery connector or the second battery connector is not properly engaged.
[0131] Specifically, the first temperature difference is |Tbtb1-Tbtb2|. If |Tbtb1-Tbtb2| ≥ the third preset threshold, it is determined that either the first battery connector or the second battery connector is not properly fastened. The processor can also stop detecting multiple battery connectors.
[0132] Step 604: The processor determines whether the temperature difference between the first battery connector and the USB interface (denoted as the second temperature difference) does not exceed the fourth preset threshold. If it does, step 604 is executed; otherwise, the engagement of the first battery connector is determined to be abnormal.
[0133] Specifically, the second temperature difference is |Tbtb1-Tusb|. If |Tbtb1-Tusb| ≥ the fourth preset threshold, it is determined that the first battery connector is not properly engaged, and the processor can exit the detection process for multiple battery connectors.
[0134] Step 605: The processor determines whether the temperature difference between the second battery connector and the USB interface (referred to as the third temperature difference) does not exceed the fourth preset threshold. If it does, it determines that both the first battery connector and the second battery connector are properly engaged; otherwise, it determines that the engagement of the second battery connector is abnormal.
[0135] Specifically, the third temperature difference is |Tbtb2-Tusb|. If |Tbtb2-Tusb| ≥ the fourth preset threshold, then it is determined that the second battery connector is not properly engaged.
[0136] It should be noted that (1) there is no strict timing restriction between steps 601a to 602a, 601b to 602b, and 601c to 602c. They can be executed in parallel or sequentially. Here, we take parallel execution as an example, but the embodiments of this application do not limit this. For example, see Figure 6b This is a schematic diagram of a serial temperature detection method. Figure 6b For details on how to perform each step, please refer to [link / reference]. Figure 6a The specific details are omitted here. Figure 6b This is just one example. There are many ways to detect temperature serially in this application embodiment. For example, step 603 can be executed after step 602b, or step 601c can be executed after step 603, step 602c can be executed after step 601c, step 604 can be executed after step 602c, etc. This application embodiment does not limit this. (2) The above method of detecting the engagement state of the battery connector by temperature is just an example. Steps 601c, 602c, 604, and 605 are optional steps. This embodiment does not limit the method of detecting the engagement state of the battery connector by temperature.
[0137] Similarly, the preset values corresponding to the parameters involved in each judgment step in Embodiment 2 can be uniform or configured according to different battery specifications. For example, see Table 2 below, which provides another specific example of a mapping relationship provided in this embodiment.
[0138] Table 2
[0139]
[0140] For example, when the processor in an electronic device detects a trigger condition (as described above, this could be when the processor detects that the electronic device is powered on, or each time the processor detects that the electronic device is being charged), it obtains the battery specification identifier. Based on Table 2 above, it determines the parameter values corresponding to this battery specification identifier and the corresponding preset threshold ranges. Subsequently, it determines the engagement status of the battery connector based on these parameter values.
[0141] The above method can detect the engagement status of the battery connector by measuring the temperature of the battery connector and the USB interface. If the temperature does not meet the preset detection conditions, it is determined that the engagement status of the battery connector is abnormal. Furthermore, the user is notified in a timely manner that the battery connector engagement status is abnormal, thereby reducing the impact on electronic devices and avoiding safety accidents.
[0142] Example 3
[0143] This application embodiment can combine the solutions of Embodiment 1 and Embodiment 2 to detect the engagement state of the battery connectors. That is, the electronic device detects the engagement state of each battery connector based on voltage and temperature. One implementable method is that the electronic device simultaneously executes Embodiment 1 and Embodiment 2. For example, the electronic device simultaneously executes... Figure 5a and Figure 6a The steps. Another possible implementation is that the electronic device executes Embodiment 1 and Embodiment 2 sequentially, for example, the electronic device first executes... Figure 5b After the steps, then execute Figure 6b The steps. For example, the electronic device first performs... Figure 6b Then execute the steps. Figure 5b The steps. For example, the electronic device first performs... Figure 5a After the steps, then execute Figure 6a or Figure 6b The steps are the same. For specific procedures, please refer to the detailed execution steps described in Embodiments 1 and 2 above, which will not be repeated here.
[0144] Similarly, the preset values corresponding to the parameters involved in each judgment step in Embodiment 3 can be uniform or configured according to different battery specifications. For example, see Table 3 below, which provides a specific example of another mapping relationship provided in this embodiment.
[0145] Table 3
[0146]
[0147] It should be noted that the above lists are merely examples. The preset threshold ranges or preset thresholds corresponding to different parameters can be completely the same, partially the same (or not completely the same), or completely different. For example, a1 to a2 can be 4 to 10, and a3 to a4 can also be 4 to 10. Another example is that a1 to a2 can be 4 to 10, and a3 to a4 can be 4 to 8. Yet another example is that a1 to a2 can be 4 to 7, and a3 to a4 can be 8 to 10. This application embodiment does not limit this, and of course, the specific values listed are only examples. This application embodiment does not limit this either.
[0148] The above method can simultaneously detect the engagement status of the battery connector by combining parameters such as temperature and pressure. If the temperature or pressure does not meet the preset detection conditions, it is determined that the engagement status of the battery connector is abnormal, thereby reducing the impact on electronic equipment and avoiding safety accidents.
[0149] As an optimization method, after the test is completed, if the engagement of one or more battery connectors is found to be abnormal, the test result will be displayed on the electronic device to prompt the user to have it repaired as soon as possible. For example, such as... Figure 7 The image shown is a schematic diagram of the interface used by the electronic device to display the test results.
[0150] As another optimization method, after the test is completed, the electronic device can also record the test results. These results may include, but are not limited to, some or all of the following: test time, presence of a fault, fault code, and the fault code used to characterize the cause of the fault. The electronic device can send the test results to a cloud server. Specifically, the electronic device can bind the test results to its device identifier and send them together to the cloud server. Maintenance personnel can then obtain the fault codes from the electronic device through the cloud server, enabling rapid repair.
[0151] In other embodiments of this application, an electronic device is also disclosed, such as Figure 8 As shown, the electronic device may include: a battery 801, a motherboard 802, at least two battery connectors 803, wherein the battery 801 is connected to the motherboard 802 via the at least two battery connectors 803; one or more processors 804; a memory 805; one or more application programs (not shown); and one or more computer programs 806. The aforementioned devices may be connected via one or more communication buses 807. The one or more computer programs 806 are stored in the memory 805 and configured to be executed by the one or more processors 804. The one or more computer programs 806 include instructions that can be used to perform actions such as... Figure 4 , Figure 5a , Figure 5b , Figure 6a , Figure 6b The figure shows the steps in the corresponding embodiment.
[0152] This application also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the display method in the above embodiments.
[0153] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the display method described in the above embodiments.
[0154] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the touch screen display method in the above method embodiments.
[0155] In this application, the electronic devices, computer storage media, computer program products or chips provided in the embodiments are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0156] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0157] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of apparatus or units may be electrical, mechanical, or other forms.
[0158] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0159] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0160] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0161] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The specific operating methods in the method embodiments can also be applied to the device embodiments or system embodiments. In the description of this application, unless otherwise stated, "multiple" means two or more.
[0162] Optionally, the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.
[0163] Those skilled in the art will understand that the various numerical designations, such as "first," "second," etc., used in this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application, nor do they indicate a sequential order. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one" refers to one or more. "At least two" refers to two or more. "At least one," "any one," or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. "Multiple" refers to two or more, and other quantifiers are similar. Furthermore, for elements appearing in the singular forms "a," "an," and "the," unless the context explicitly specifies otherwise, they do not imply "one or only one," but rather "one or more." For example, "a device" implies one or more such devices.
[0164] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0165] The various illustrative logic units and circuits described in the embodiments of this application can be implemented or operate the described functions using a general-purpose processor, digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. The general-purpose processor can be a microprocessor; alternatively, it can also be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented using a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0166] The steps of the methods or algorithms described in the embodiments of this application can be directly embedded in hardware, software units executed by a processor, or a combination of both. The software units can be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from and write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and storage medium can be housed in an ASIC.
[0167] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0168] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely illustrative descriptions of the application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from its scope. Thus, if such modifications and modifications fall within the scope of the claims and their equivalents, this application is also intended to include such modifications and modifications.
Claims
1. A method for detecting battery connection, applied to electronic devices, characterized in that, The electronic device includes at least two battery connectors, and the battery of the electronic device is connected to the motherboard of the electronic device through the at least two battery connectors. The method includes: For the first battery connector, obtain the values of one or more preset parameters of the first battery connector, the preset parameters including at least one of the terminal voltage of the first battery connector connected to the battery and the battery temperature; When the values of one or more preset parameters respectively meet the preset detection conditions of one or more preset parameters, it is determined that the battery and the motherboard are properly connected. When it is determined that the value of any one of the one or more preset parameters does not meet the preset detection condition corresponding to any one of the preset parameters, it is determined that the battery and the motherboard are abnormally fastened. Wherein, the first battery connector is any one of the at least two battery connectors; The preset parameters include the battery temperature, and the preset detection conditions corresponding to the battery temperature include: whether the temperature difference between the temperature at the connection point between the first battery connector and the battery and the temperature at the connection point between the second battery connector and the battery is less than a first preset value, wherein the second battery connector is any one of the at least two battery connectors other than the first battery connector; or, The preset parameters include the terminal voltage at the connection point between the first battery connector and the battery. The preset detection conditions corresponding to the terminal voltage include: whether the voltage difference between the terminal voltage at the connection point of the first battery connector and the battery and the terminal voltage at the connection point of the second battery connector and the battery is less than a first preset value; or, the preset detection conditions corresponding to the terminal voltage include: whether the terminal voltage at the connection point of the first battery connector and the battery is within a first preset threshold range; and whether the voltage difference between the terminal voltage at the connection point of the first battery connector and the terminal voltage at the connection point of the second battery connector and the battery is less than a first preset value; the second battery connector is any one of the at least two battery connectors other than the first battery connector; or... The preset parameters include the terminal voltage at the connection point between the first battery connector and the battery and the battery temperature. The preset detection conditions corresponding to the terminal voltage include: whether the terminal voltage at the connection point between the first battery connector and the battery is within a first preset threshold range; and / or whether the voltage difference between the terminal voltage at the connection point between the first battery connector and the battery and the terminal voltage at the connection point between the second battery connector and the battery is less than a first preset value; the second battery connector is any one of the at least two battery connectors other than the first battery connector. The preset detection conditions corresponding to the battery temperature include: whether the temperature difference between the temperature at the connection point between the first battery connector and the battery and the temperature at the connection point between the second battery connector and the battery is less than a first preset value; the second battery connector is any one of the at least two battery connectors other than the first battery connector.
2. The method as described in claim 1, characterized in that, The method further includes: The output voltage of the USB interface of the electronic device is obtained; The preset detection conditions corresponding to the terminal voltage of the first battery connector connected to the battery also include: Whether the output voltage of the USB interface is within the second preset threshold range; and / or Whether the voltage difference between the terminal voltage of the first battery connector connected to the battery and the output voltage of the USB interface is less than a second preset value.
3. The method as described in claim 1, characterized in that, The preset detection conditions corresponding to the battery temperature at the connection point between the first battery connector and the battery also include: Whether the battery temperature at the connection point between the first battery connector and the battery is within the range of a third preset threshold.
4. The method as described in claim 3, characterized in that, The method further includes: Obtain the temperature of the USB interface of the electronic device; The preset detection conditions corresponding to the battery temperature at the connection point between the first battery connector and the battery also include: Whether the temperature of the USB interface is within the fourth preset threshold range; and / or Whether the temperature difference between the battery temperature at the connection point between the first battery connector and the battery and the temperature of the USB interface is less than a fourth preset value.
5. The method according to any one of claims 1-4, characterized in that, The preset detection conditions for the one or more preset parameters are obtained in the following manner: Obtain the battery specification identifier of the electronic device; In the preset correspondence, find the preset detection conditions of one or more preset parameters corresponding to the battery specification identifier; The correspondence includes different battery specification identifiers and preset detection conditions with different preset parameters.
6. The method according to any one of claims 1-4, characterized in that, Before obtaining the values of one or more preset parameters of the first battery connector, the method further includes: A trigger condition is detected, including the electronic device starting up or the electronic device being charged.
7. The method as described in claim 5, characterized in that, Before obtaining the values of one or more preset parameters of the first battery connector, the method further includes: A trigger condition is detected, including the electronic device starting up or the electronic device being charged.
8. An electronic device, characterized in that, The device includes a battery, a motherboard, at least two battery connectors, a processor, and a memory, wherein the battery is connected to the motherboard via the at least two battery connectors. The memory is used to store executable programs; The processor is configured to execute a computer-executable program in memory, such that the method of any one of claims 1-7 is performed.
9. An electronic device, characterized in that, The electronic device includes a battery, a motherboard, at least two battery connectors, a processor, and a communication interface, wherein the battery is connected to the motherboard via the at least two battery connectors. The communication interface is used for inputting and / or outputting information; The processor is configured to execute a computer-executable program, causing the method of any one of claims 1-7 to be performed.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer-executable program, which, when invoked by a computer, causes the computer to perform the method as described in any one of claims 1 to 7.
11. A chip system, characterized in that, include: A communication interface used for inputting and / or outputting information; A processor for executing a computer-executable program, causing a device having the chip system mounted to perform the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Method for controlling operation of battery on basis of state thereof, and electronic device for supporting same
US20180342886A1