CN114646876A - Battery connection detection method and device - Google Patents

Battery connection detection method and device Download PDF

Info

Publication number
CN114646876A
CN114646876A CN202011511833.6A CN202011511833A CN114646876A CN 114646876 A CN114646876 A CN 114646876A CN 202011511833 A CN202011511833 A CN 202011511833A CN 114646876 A CN114646876 A CN 114646876A
Authority
CN
China
Prior art keywords
battery
preset
battery connector
connector
temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011511833.6A
Other languages
Chinese (zh)
Inventor
李鹏
宁红扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011511833.6A priority Critical patent/CN114646876A/en
Publication of CN114646876A publication Critical patent/CN114646876A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/364Battery terminal connectors with integrated measuring arrangements

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The application provides a method and a device for detecting battery connection, wherein the method can be applied to electronic equipment, the electronic equipment comprises at least two battery connectors, and the method comprises the following steps: acquiring values of one or more preset parameters of the first battery connector, wherein the preset parameters comprise endpoint voltage and/or battery temperature of the first battery connector connected with the battery; if the values of the one or more preset parameters are determined to respectively meet the preset detection conditions of the one or more preset parameters, determining that the buckling of the main board and the battery is normal; if the fact that the value of any one of the one or more preset parameters does not meet the preset detection condition corresponding to any one preset parameter is determined, it is determined that the battery and the mainboard are abnormally buckled, the first BTB is any one of the at least two BTBs, the buckling state detection of the battery and the mainboard is achieved through the method, and the electronic equipment is prevented from being damaged greatly when the electronic equipment runs for a long time under the condition that the battery and the mainboard are buckled badly.

Description

Battery connection detection method and device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for detecting battery connection.
Background
In the charging process of electronic equipment such as a mobile phone, one important factor influencing the charging speed is the magnitude of the charging current, and a higher charging current can bring a higher charging speed.
An implementation manner may increase the charging current by adopting a multi-tab charging manner to improve the charging efficiency, where the tabs include a positive tab and a negative tab led out from the battery cell, for example, the battery may include two positive tabs and one negative tab, and each of the two positive tabs may form a charging loop with the negative tab, so that the two charging loops may increase the charging current.
Specifically, each charging loop of the battery may be connected to the motherboard via a board-to-board connector (BTB), where the BTB for connecting the battery and the motherboard may also be referred to as a battery connector, and the battery connector may be used for transmitting current or signals.
If the battery connector is not fastened well, the battery and the mainboard cannot be connected normally, which may affect the normal operation of the electronic equipment and even cause safety problems, therefore, the fastening reliability of the battery connector plays a crucial role in the normal operation of the electronic equipment, and at present, there is no fastening state detection scheme for a plurality of battery connectors connected by a charging loop formed by a multi-tab charging mode.
Disclosure of Invention
The application provides a method and a device for detecting battery connection, which are used for providing a method for detecting the reliability of connection of a multi-tab battery and a mainboard through a plurality of battery connectors.
In a first aspect, an embodiment of the present application provides a method for detecting battery connection, which is applied to an electronic device having at least two battery connectors, where a battery of the electronic device is connected to a motherboard of the electronic device through the at least two battery connectors, and the method includes: for a first battery connector, obtaining values of one or more preset parameters of the first battery connector, wherein the preset parameters comprise endpoint voltage and/or battery temperature of connection between the first battery connector and a battery; when the values of one or more preset parameters are determined to respectively meet the preset detection conditions of one or more preset parameters, the battery and the mainboard are determined to be normally buckled; when the condition that the value of any one of the one or more preset parameters does not meet the preset detection condition corresponding to any one preset parameter is determined, determining that the buckling of the battery and the mainboard is abnormal; wherein the first battery connector is any one of at least two battery connectors; when the preset parameters comprise the battery temperature, the preset detection conditions corresponding to the battery temperature comprise: whether a temperature difference between a battery temperature of the first battery connector and a battery temperature of the second battery connector is smaller than a first preset value or not, wherein the second battery connector is any one of the at least two battery connectors except the first battery connector.
By adopting the method, aiming at the electronic equipment with a plurality of battery connectors, the value of the preset parameter of each battery connector is respectively obtained, whether the battery connectors are normally buckled or not is judged according to the value of the preset parameter and the normal threshold range corresponding to the preset parameter, the preset parameter can be temperature and/or voltage, so that the buckled state of the battery connectors can be detected from multiple dimensions, the detection reliability is improved, whether the battery connectors with abnormal buckled states exist in the battery connectors or not can be detected under the condition that the electronic equipment normally works, and the component damage of the electronic equipment under the abnormal state of long-time work is reduced.
In one possible design, the preset parameter includes an endpoint voltage at which the first battery connector is connected to the battery; the preset detection condition corresponding to the terminal voltage of the first battery connector connected with the battery comprises the following steps: whether the voltage of an endpoint of the connection between the first battery connector and the battery is within a first preset threshold range or not; and/or whether the voltage difference between the voltage of the terminal point of the first battery connector connected with the battery and the voltage of the terminal point of the second battery connector connected with the battery is smaller than a first preset value or not, wherein the second battery connector is any one of the at least two battery connectors except the first battery connector.
By adopting the method, the terminal voltage value of each battery connector is obtained, whether the terminal voltage of a single battery connector is in a normal threshold range is detected, and whether the battery connector with a larger voltage difference exists can be detected by comparing the terminal voltage values of any two battery connectors when the terminal voltage of the single battery connector is normal.
In one possible design, the method further includes: acquiring output voltage of a USB interface of electronic equipment;
the preset detection condition corresponding to the endpoint voltage of the first battery connector and the battery connection further comprises: whether the output voltage of the USB interface is within a second preset threshold range or not; and/or whether the voltage difference value between the voltage of the endpoint connected with the battery by the first battery connector and the output voltage of the USB interface is smaller than a second preset value.
By adopting the method, whether the USB interface is abnormal or not can be further detected, whether the endpoint voltage of the battery connector is abnormal or not is judged according to the output voltage of the USB interface, the buckling state of the battery connector can be detected from multiple dimensions, the omission is avoided, and the detection reliability is improved.
In one possible design, the preset parameter includes a battery temperature at a connection of the first battery connector with the battery; the preset detection condition corresponding to the battery temperature at the connection position of the first battery connector and the battery comprises the following steps: whether the battery temperature at the connection of the first battery connector and the battery is within a third preset threshold range.
In one possible design, the method further includes: acquiring the temperature of a USB interface of the electronic equipment;
the preset detection condition corresponding to the battery temperature at the connection position of the first battery connector and the battery further comprises: whether the temperature of the USB interface is within a fourth preset threshold range or not; and/or whether the temperature difference between the temperature of the battery at the connection part of the first battery connector and the battery and the temperature of the USB interface is smaller than a fourth preset value.
By adopting the method, whether the USB interface is abnormal or not can be further detected, whether the battery temperature of the battery connector is abnormal or not is judged according to the temperature of the USB interface, the buckling state of the battery connector can be detected from multiple dimensions, and the detection reliability is improved.
In one possible design, the predetermined detection condition for one or more predetermined parameters is obtained by: acquiring a battery specification identifier of the electronic equipment; in the preset corresponding relation, searching for a preset detection condition of one or more preset parameters corresponding to the battery specification identification; the corresponding relation comprises different battery specification identifications and preset detection conditions of different preset parameters.
By adopting the method, different battery specifications can have different preset detection conditions of preset parameters, the detection granularity is smaller, and the detection mode is more flexible and more accurate.
In one possible design, before obtaining the values of the one or more preset parameters of the first battery connector, the method further includes: a trigger condition is detected, the trigger condition including the electronic device starting to run, or the electronic device being charged.
In a second aspect, an embodiment of the present application further provides an electronic device, where the electronic device may include: a battery; a main board; at least two battery connectors; one or more processors; one or more memories; wherein the battery is connected to the motherboard via the at least two battery connectors and the one or more memories store one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform any of the design possibilities of the first aspect and its first aspect.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a module/unit that performs the method of the first aspect or any one of the possible designs of the first aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a fourth aspect, an embodiment of the present application further provides a chip, where the chip is coupled with a memory in an electronic device, and implements a technical solution of any one of the first aspect and the possible design of the first aspect of the embodiment of the present application; "coupled" in the context of this application means that two elements are joined to each other either directly or indirectly.
In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on an electronic device, the electronic device is enabled to execute a technical solution of any one of the first aspect of the embodiment of the present application and the first aspect of the present application.
In a sixth aspect, an embodiment of the present application further provides a computer program product, which when run on an electronic device, enables the electronic device to execute the technical solution of the first aspect of the embodiment of the present application and any one of possible designs of the first aspect of the embodiment of the present application.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a battery connector;
fig. 4 is a schematic flowchart of a method for detecting battery connection according to an embodiment of the present disclosure;
fig. 5a is a schematic flow chart according to a first embodiment of the present application;
fig. 5b is another schematic flow chart of the first embodiment of the present application;
fig. 6a is a schematic flow chart of a second embodiment provided in the present application;
fig. 6b is another schematic flow chart of the second embodiment provided in the present application;
FIG. 7 is a schematic view of an interface provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the application.
Detailed Description
First, some terms referred to in the present application will be explained.
(1) The electronic device in the embodiment of the present application refers to an electronic device with a rechargeable battery, for example, a mobile phone, a tablet computer, and the like. The rechargeable battery may provide power for power consuming components of the electronic device, such as a processor, a memory, various chips, and the like. In addition, the rechargeable battery can be charged through an external charging device, so that the rechargeable battery can be ensured to have continuous electric energy.
(2) The battery in the embodiment of the application comprises a battery core and a protection circuit board. The protection circuit board is used for protecting the battery core. The battery cell is a storage portion in a rechargeable battery, and can be charged and discharged. The protection circuit is generally used for preventing risks such as overcharge, overdischarge and short circuit of the battery, and the shell is mainly used for protecting the battery core and the protection circuit.
(3) The tab in the embodiment of the application refers to the metal conductor that the battery core extends outwards, and specifically, the tab includes positive tab and negative tab, the positive tab is the metal conductor that the positive pole was drawn out in the battery core, the negative tab is the metal conductor that the negative pole was drawn out in the battery core, and positive tab and negative tab are the contact point that rechargeable battery charges, discharges the process.
(4) The main board in the embodiment of the present application refers to a circuit carrier of an electronic device, and is generally a circuit board, and a processor, a memory, one or more sensors, a USB interface, and other devices or circuits in fig. 1 may be integrated on the main board.
(5) The board to board connector (BTB) connection in the embodiments of the present application is used to connect bridges of two independent devices. In the embodiment of the present application, the main board and the battery may be connected through a BTB, which may also be referred to as a battery connector, for transmitting current and signals.
The following embodiments are described by taking the electronic device as a mobile phone. Fig. 1 shows a schematic structural diagram of a mobile phone 100.
As shown in fig. 1, 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 IC180, 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, an earphone interface 164, a sensor module 150, a touch sensor 150A, a pressure sensor 150B, a camera 130, a display screen 140, a Subscriber Identification Module (SIM) card interface 171, and the like.
Processor 110 may include one or more processing units, among others. For example, the processor 110 may include an Application Processor (AP), a modem, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processor (NPU), among others. In particular implementations, the different processing units may be separate devices or may be integrated in one or more processors.
In some embodiments, a buffer may also be provided in the processor 110 for storing programs and data. As an example, the cache in the processor 110 may be a cache memory. The buffer may be used to hold programs or data that have just been used, generated, or recycled by processor 110, such as, for example, cutoff voltage, cutoff current, etc. If the processor 110 needs to use the program or data, it can be called directly from the buffer. Which helps to reduce the time that the processor 110 takes to acquire programs or data, thereby helping to improve the efficiency of the system.
The internal memory 121 may 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 storage program area may be used to store an operating system (e.g., an operating system such as Android and IOS), a computer program required by at least one function (e.g., a charging function, a sound playing function), and the like. The data storage area may be used to store data (e.g., voltages) created and/or collected during use of the electronic device, etc. For example, the processor 110 may implement one or more functions by calling programs and/or data stored in the internal memory 121 to cause the electronic device to execute a corresponding method. For example, the processor 110 calls some programs and/or data in the internal memory to make the electronic device execute the charging method provided in the embodiment of the present application, so as to charge the battery in the electronic device. The internal memory 121 may be a high-speed random access memory, a nonvolatile memory, or the like. For example, the non-volatile memory may include at least one of one or more magnetic disk storage devices, flash memory devices, and/or universal flash memory (UFS), among others.
The external memory interface 122 may be used to connect an external memory card (e.g., a Micro SD card) to extend the storage capability of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 122 to implement a data storage function. For example, the electronic device may save files such as images, music, videos, and the like in the external memory card through the external memory interface 122.
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 miniature, a Micro-o led, a quantum dot light-emitting diode (QLED), or the like. For example, the electronic device may implement display functionality via the GPU, the display screen 140, the application processor, and/or the like. It should be noted that one or more display screens 140 may be included in the embodiments of the present application.
The sensor module 150 may include one or more sensors. For example, a touch sensor 150A, a pressure sensor 150B, etc. In other embodiments, the sensor module 150 may also include a gyroscope, an acceleration sensor, a fingerprint sensor, an ambient light sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, a temperature sensor, and the like. Here, the touch sensor 150A may also be referred to as a "touch panel". The touch sensor 150A may be provided to the display screen 140. The touch sensor 150A and the display screen 140 form a touch screen, which is also called a "touch screen". The touch sensor 150A is used to detect a touch operation applied thereto or nearby. The touch sensor 150A can communicate the detected touch operation to the application processor to determine the touch event type. The electronic device may provide visual output related to touch operations, etc. through the display screen 140. In other embodiments, the touch sensor 150A can be disposed on a surface of the electronic device at a different location than the display screen 140.
The pressure sensor 150B is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. For example, the pressure sensor 150B may be disposed on the display screen 140. The touch operations which act on the same touch position but have different touch operation intensities can correspond to different operation instructions.
The electronic device may implement audio functions through the audio module 160, the speaker 161, the receiver 162, the microphone 163, the headphone interface 164, and the application processor, etc. Such as an audio play function, a recording function, a voice wake-up function, etc.
The USB interface 172 is an interface conforming to a USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 172 may be used to connect a charger to charge the electronic device, and may also be used to transmit data between the electronic device and a peripheral device. And the earphone can also be used for connecting an earphone and playing sound through the earphone. For example, the USB interface 172 may be used to connect other electronic devices, such as AR devices, computers, and the like, in addition to the headset interface 164.
The charging IC180, which may also be referred to as a charging management module, receives charging input from an external charger. The external charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging IC180 may receive a charging input of a wired charger through the USB interface 170. In some wireless charging embodiments, charging IC180 may receive a wireless charging input through a wireless charging coil of an electronic device. While charging IC180 charges battery 182, power may also be supplied to the electronic device via power management module 180.
The power management module 181 is used to connect the battery 182, the charging IC block 180, and the processor 110. The power management module 181 receives input from the battery 182 and/or the charging IC180 to power the processor 110, the internal memory 121, the camera 130, the display screen 140, and the like. The power management module 181 may also be used to monitor parameters such as battery level, battery cycle count, battery state of health (leakage, impedance), etc. For example, the power management module 181 includes a fuel gauge, and the battery capacity is monitored by the fuel gauge. In some other embodiments, the power management module 181 may also be disposed in the processor 110. In other embodiments, the power management module 181 and the charging management module 180 may be disposed in the same device, or disposed in different devices.
The battery 182 includes a cell and a protection circuit board. The protection circuit board is used for protecting the battery core. In some embodiments, the battery 182 may be connected to the charging IC180 and the power management module 181 of the electronic device via a battery connector to enable charging and powering. It should be noted that, through the battery connector, the user can detach the battery in the electronic device as required, thereby facilitating the replacement of the battery.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown, or some components may be combined, some components may be separated, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Referring to fig. 2, fig. 2 is another schematic structural diagram of the mobile phone 100, where the mobile phone 100 includes a motherboard and a battery, where most of power consuming components on the mobile phone 100 shown in fig. 1 are integrated on the motherboard, and a USB interface is further integrated on the motherboard, specifically, the USB interface is a charging input interface, and the input electric energy can supply power to the motherboard. The battery is connected to the motherboard through one or more battery connectors (fig. 2 shows two battery connectors, a first battery connector and a second battery connector as an example, but the number of the battery connectors is not limited in this embodiment), and when the battery connectors between the battery and the motherboard are engaged, the battery can be charged by the electric energy input at the USB interface. In addition, the battery can also provide power for each power consuming component on the motherboard.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a conventional battery connector. In fig. 3, the structure of the battery connector will be described by taking one battery connector in fig. 2 as an example.
The battery connector includes a first plug assembly (also referred to as a male connector) and a second plug assembly (also referred to as a female connector) that are snap-fitted to each other. The first plug-in component is provided with a protruded pin, the second plug-in component is provided with a hole-shaped pin, and the protruded pin on the first plug-in component is inserted into the hole-shaped pin on the second plug-in component, so that the first plug-in component and the second plug-in component are buckled. Certainly, the protruded pins on the first plug-in component and the hole pins on the second plug-in component may be in one-to-one correspondence, and the corresponding protruded pins and the hole pins need to be plugged together when being buckled. The first plug-in component is connected with the first device, and the second plug-in component is connected with the second device. The first plug-in component and the second plug-in component are buckled together, so that the battery connector is buckled, and the first device and the second device are connected.
In this embodiment, the first device may be a battery, the second device may be a motherboard, the first plug-in component is connected to the battery, the second plug-in component is connected to the motherboard, and the battery and the motherboard are connected by being fastened by the battery connector. Illustratively, the first plug assembly may include 3 protruding pins, and the 3 protruding pins may be respectively connected to the pair of positive and negative electrode tabs of the battery and the temperature sensor through extension lines, for example, the 3 protruding pins are pin 1, pin 2 and pin 3. Wherein, pin 1 is connected with the positive lug, pin 2 is connected with the negative lug, and pin 3 is connected with the temperature sensor. Correspondingly, the second plug-in component is provided with hole-shaped pins which are in one-to-one correspondence with the 3 protruding pins of the first plug-in component. 3 protruding pins of the first plug assembly are plugged with 3 hole-shaped pins of the second plug assembly, so that the battery connector is buckled, and meanwhile, the connection between the battery and the mainboard is realized.
Pin 1 and pin 3 are used to transmit current between the interconnected battery and the motherboard, and current flows from the battery to the motherboard when the motherboard is powered by the battery, for example. When an external charger (such as a power adapter) charges a battery, the power adapter is plugged into a USB interface, the USB interface is integrated on a mainboard, and current flows into the battery from the power adapter through the USB interface and the mainboard to charge the battery. Pin 2 is used to transmit a temperature signal to a processor on the motherboard.
It should be noted that the pins shown in fig. 3 are only examples, and the pins of the battery connector in the embodiment of the present application may include more or fewer pins, for example, there may be no pin for connecting a temperature sensor, or an identification pin of a battery may also be included.
At present, an efficient charging scheme for electronic devices is a multi-tab charging manner, that is, a battery cell has multiple pairs of tabs (fig. 2 illustrates 2 pairs of tabs, but the number of pairs of tabs is not limited in the embodiment of the present application), where the multiple pairs of tabs may be one or more positive tabs sharing one negative tab, or may be mutually independent (not shown in fig. 2) pairs of tabs.
In practical applications, in order to disperse current and improve thermal balance, as shown in fig. 2, each pair of tabs is connected to the main board through an independent battery connector, and the charging current is increased by charging a plurality of pairs of tabs, thereby improving charging efficiency.
Although the charging efficiency is improved by the multi-lug charging mode, more battery connectors are introduced, and the buckling state of the battery connectors plays a crucial role in normal charging and discharging operations of the mobile phone. For the rechargeable battery of many battery connectors, the structure of the rechargeable battery of monocell connector is simple relatively, when single battery connector lock is bad, for example, external force striking etc. lead to battery connector lock not hard up, lead to the power supply line contact between mainboard and the battery not good, the cell-phone battery can't be for the mainboard power supply under this condition, the cell-phone can't be started, the user can't continue to use, this kind of condition just needs in time to overhaul, avoid the battery to use for a long time under battery connector lock abnormal state, cause the damage of battery or mainboard. Different from a single battery connector, the rechargeable battery with multiple battery connectors can still start the mobile phone to operate even if a certain battery connector is not well buckled, but a certain battery connector is not well contacted for a long time, so that a large potential safety hazard is caused. At present, a method for detecting poor buckling of each battery connector in a multi-tab charging mode does not exist.
In view of this, the present application provides a method for detecting a multi-battery connector buckling state, which may be applied to an electronic device, where a plurality of battery connectors are connected between a battery of the electronic device and a motherboard, and for each battery connector of the plurality of battery connectors, a value of one or more preset parameters related to the battery connector is respectively obtained, and if it is determined that the value of the one or more preset parameters respectively satisfies a preset detection condition corresponding to the one or more preset parameters, it is determined that the battery connector is normally buckled; and if the value of any one of the one or more preset parameters is determined not to meet the preset detection condition corresponding to any one preset parameter, determining that the battery connector is abnormally buckled, so as to detect the buckling state of the battery connector. Furthermore, the voltage and/or the temperature of the USB interface related to the battery connector can be detected in the charging process of the electronic equipment, so that the problem that the battery connector is not well buckled to cause larger loss is avoided.
The method for detecting a snap-fit state of a multi-cell connector according to the embodiments of the present application will be described in detail with reference to the following embodiments and accompanying drawings.
Fig. 4 is a flowchart illustrating a method for detecting a snap-fit state of a multi-battery connector according to an embodiment of the present disclosure. The method can be applied to the electronic device shown in fig. 1 and the structure shown in fig. 2, and mainly comprises the following steps:
for each battery connector (battery connector) in the electronic device, a processor in the electronic device obtains values of one or more preset parameters of the battery connector, step 401.
First, the structure of the electronic device shown in fig. 2 is taken as an example to describe parameters that may be applied in the present application.
1) A battery temperature;
in this embodiment, a temperature sensor is installed near the connection position of each battery connector and the battery, and the temperature sensor may be, for example, an ntc thermistor, or other temperature sensors. For convenience of description, ntc is exemplified below.
As shown in fig. 2, ntc1 is mounted near the first battery connector, ntc2 is mounted near the second battery connector, ntc1 is used to acquire the temperature near the first battery connector on the battery, ntc2 is used to acquire the temperature near the second battery connector on the battery, and the temperature acquired by ntc1 for the first battery connector and the temperature acquired by ntc2 for the second BTB are denoted Tbtb1 and Tbtb2, respectively. Ntc is actually mounted near the connection of the battery connector to the battery, so the temperature of the battery connector referred to herein is actually the temperature near the battery connector connected to 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, i.e., the temperature of the battery.
2) A battery voltage;
the battery voltage refers to the voltage between the positive electrode tab and the negative electrode tab of the battery. As will be understood from fig. 2, the voltages between the positive tab and the negative tab measured at the upper and lower ends of the battery connector with respect to the battery are both battery voltages, and may also be referred to as terminal voltages at which the battery connector is connected to the battery.
With continued reference to fig. 2, the battery voltage measured by the first battery connector is the voltage across the positive tab 1 and the negative tab, and the battery voltage measured by the second battery connector is the voltage across the positive tab 2 and the negative tab. The battery voltage measured by the first battery connector will be denoted Vbtb1 and the battery voltage measured by the first battery connector will be denoted Vbtb2 as follows.
3) USB interface voltage
The USB interface voltage refers to an input voltage of the USB interface, for example, after one end of the power adapter is connected to a power supply, for example, 220V commercial power, and the other end of the power adapter is plugged into the USB interface, the voltage of the USB interface is denoted as Vusb.
4) Temperature of USB interface
Referring to fig. 2, an ntc thermistor, labeled ntc3, is mounted at the USB interface, and the collected temperature is labeled Tusb at ntc 3. In fact, since some parts of the USB interface can be exposed outdoors, the temperature collected at ntc3 is also close to room temperature.
5) Battery specification mark
The battery specification identification is used for uniquely identifying one battery specification, each battery specification corresponds to one group of charging parameters, and the charging parameters mainly comprise: battery capacity, rated charging voltage, rated charging current, rated electric power, and the like. These parameters are typically battery factory parameters. As shown in fig. 2, the pins of the battery connector may further include a battery specification identification pin, and when the battery connector is fastened, the processor may obtain the battery specification identification through the battery specification identification pin.
As follows, the structure shown in fig. 2 is taken as an example for description, and the preset parameters of the embodiment exemplarily include but are not limited to some or all of the following: tbtb1, Tbtb2, Vbtb1, Vbtb2, Vusb, Tusb, or battery specification identification.
The first possible implementation manner of the processor obtaining the preset parameters is as follows: the processor synchronously acquires a plurality of preset parameters in a parallel manner; it should be understood that the detection methods are different, the preset parameters may be different, and the synchronous acquisition of multiple preset parameters refers to preset parameters agreed in a specific detection method, for example, a detection method only detects Tbtb1, Tbtb2, Vbtb1, Vbtb2, and a processor in the electronic device may synchronously acquire Tbtb1, Tbtb2, Vbtb1, Vbtb2, and synchronously detect whether each acquired preset parameter is a normal value or not according to the acquired parameters respectively and using corresponding judgment conditions.
Specifically, in the software level, the parallel mode may be implemented by a plurality of threads of one process, and each thread is used to collect one preset parameter. Or for the multi-core electronic device, the method can also be implemented by a plurality of processes, that is, each core executes one process, and one process is used for collecting one preset parameter, so that the parallel collection of a plurality of preset parameters is realized. Through the design, the electronic equipment can synchronously detect a plurality of preset parameters, and the detection efficiency can be improved.
A second implementable way for the processor to obtain the preset parameters is: in a serial acquisition mode, the processor acquires one preset parameter at a time according to a preset detection process, or acquires the current preset parameter to be detected, detects the next preset parameter to be detected after determining that the parameter is a normal value until all the preset parameters to be detected are detected, and exits the detection process if the current acquired preset parameter does not accord with preset detection conditions, for example, the value of the parameter is not within a normal threshold range, so that the next preset parameter does not need to be acquired.
For example, an exemplary predetermined detection procedure is: first detecting whether Tbtb1 is a normal value, followed by detecting whether Tbtb2 is a normal value, then detecting whether Vbtb1 is a normal value, and finally detecting whether Vbtb2 is a normal value, i.e., the detection order is Tbtb1 → Tbtb2 → Vbtb1 → Vbtb 2. Correspondingly, during detection, the electronic device may first collect Tbtb1, obtain Tbtb2 after determining Tbtb1 as a normal value, obtain Vbtb1 after determining Tbtb2 as a normal value, and so on until Vbtb2 is detected as a normal value. If the Tbtb1 is collected, it is determined that Tbtb1 is not within the normal range, the detection process can be exited, and Tbtb2, Vbtb1 and Vbtb2 do not need to be acquired, thereby reducing the resource overhead of collecting parameters.
A third implementable way for the processor to obtain the preset parameters is: for example, for some preset parameters that must be acquired, the preset parameters may be acquired in a parallel acquisition manner, and other parameters may be acquired in a serial acquisition manner. For example, Tbtb1 and Tbtb2 may be collected synchronously, and subsequently, when Tbtb1 and Ttbt2 are determined to be normal values respectively, a next parameter to be detected, for example, the voltage Vusb of the USB interface, is collected sequentially and then detected subsequently. Through the design, the detection time can be saved, the detection efficiency is improved, the waste of detection resources can be avoided, and the detection flexibility is higher.
It should be understood that if the acquisition mode is a serial acquisition mode, step 401 needs to be repeated, but the preset parameters for each acquisition are different.
Step 402, the processor respectively judges whether the values of the one or more preset parameters respectively meet preset detection conditions of the one or more preset parameters according to the acquired values of the one or more preset parameters for each battery connector; if the battery connector and the battery connector are all met, determining that the battery connector is normally buckled; otherwise, determining that the battery connector is abnormally buckled.
The method for detecting the snap-fit state of a multi-battery connector provided by the present application is described below with reference to specific embodiments. The detection method provided by this embodiment may start the detection process when the processor detects that the electronic device is powered on, or each time the processor detects that the electronic device is charged.
Example one
Referring to fig. 5a, fig. 5a is a flow chart illustrating a first method for detecting a snap-fit state of a multi-battery connector according to the present embodiment. The method comprises the following steps:
step 501 a: the processor obtains a voltage value Vbtb1 for the first battery connector.
Step 502 a: the processor determines whether Vbtb1 is within a normal voltage threshold range (denoted as a first preset threshold range), if so, performs step 503, otherwise, determines that the first battery connector is abnormally buckled.
It should be noted that the normal voltage threshold ranges corresponding to different battery connectors may be different or the same. For convenience of description, the threshold value or the threshold value range of each parameter corresponding to each battery connector is described as an example. For example, the normal voltage threshold range corresponding to the first battery connector and the normal voltage threshold range corresponding to the second battery connector may both be the first preset threshold range, and the similar points will not be described again.
Optionally, if the voltage value of the battery connector is not within the first preset threshold range, it indicates that the battery connector is abnormally buckled. Furthermore, if the voltage value of the battery connector is not within the first predetermined threshold range, and the first predetermined threshold range does not include 0V, it can be further determined whether the voltage value of the battery connector approaches 0V, for example, if Vbtb1 is less than or equal to 0, it indicates that the conductive loop formed by the positive tab 1 and the negative tab in the first battery connector is in an open circuit state.
Step 501 b: the processor obtains the voltage value Vbtb2 for the second battery connector.
Step 502 b: the processor determines whether Vbtb2 is within a first preset threshold range (as described above, it is assumed that the normal voltage threshold range corresponding to the second battery connector is the first preset threshold range), if so, step 503 is executed, otherwise, it is determined that the second battery connector is abnormally buckled.
When the electronic device includes a plurality of battery connectors, the voltage detection process of each battery connector can refer to the specific implementation steps of steps 501a to 502a, in this embodiment, the voltage detection method of the second battery connector is the same as that of the first battery connector, and the description of steps 501a to 502a refers to steps 501b to 502b, and the description is not repeated here.
Step 501 c: the processor obtains the voltage Vusb of the USB interface.
Step 502 c: the processor determines whether Vusb is within a normal voltage threshold range (denoted as a second preset threshold range) corresponding to the USB, if yes, step 503 is executed, otherwise, it is determined that the USB interface is abnormal.
Similarly, the voltage detection method of the USB interface is similar to the voltage detection method of the battery connector, and is not described herein again.
Step 503: the processor determines whether a voltage difference between the first battery connector and the second battery connector (marked as a first voltage difference) is smaller than a first preset threshold, and if so, executes step 504; otherwise, determining that the first battery connector is abnormally buckled or the second battery connector is abnormally buckled.
Specifically, the first voltage difference value is | Vbtb1-Vbtb2|, where | | | represents an absolute value, and if | Vbtb1-Vbtb2| ≧ a first preset threshold, it is determined that the first battery connector is in engagement abnormality or the second battery connector is in engagement abnormality, and the processor may also stop the detection of the plurality of battery connectors.
It should be understood that, in theory, during the charging process of the battery, the voltage values and the temperature values of the first battery connector and the second battery connector are the same, but due to process differences, such as different lengths of wires, different welding processes, unstable fastening states, etc., there may be a difference between the voltages of the first battery connector and the second battery connector, but the difference is generally small, and if the difference is large, such as the first voltage difference is greater than a first preset threshold, it indicates that the fastening of at least one of the two battery connectors is abnormal.
Step 504: the processor determines whether a voltage difference (marked as a second voltage difference) between the first battery connector and the USB interface is smaller than a second preset threshold, and if so, executes step 505; otherwise, determining that the first battery connector is buckled abnormally.
Specifically, the second voltage difference is | Vusb-Vbtb1|, and if | Vusb-Vbtb1| > or equal to the second preset threshold, it indicates that the first battery connector is abnormal, and the processor may exit the detection process of the plurality of battery connectors.
As will be appreciated by those skilled in the art, the input voltage of the USB interface needs to be dropped to supply power to the battery, and therefore, during the charging process, there is a certain voltage difference between Vusb and Vbtb1 and Vusb and Vbtb 2. For example, if the input voltage is 10V and the voltage drop coefficient is 0.5, the voltage of the battery connector is 10V × 0.5V — 5V. Theoretically, the voltage difference is a theoretical voltage drop value calculated from the voltage drop coefficient and the input voltage of the USB interface, and actually, the voltage difference may also include a voltage drop value caused by line loss between the USB interface and the battery connector. The second preset threshold provided by this embodiment may be determined according to a theoretical voltage drop value between the input voltage of the USB interface and the voltage of the battery connector, or determined according to both the theoretical voltage drop value and a voltage drop value caused by line loss.
Step 505: the processor judges whether a voltage difference value (recorded as a third voltage difference value) between the second battery connector and the USB interface is smaller than a second preset threshold value, if so, the first battery connector and the second battery connector are normally buckled; otherwise, determining that the second battery connector is buckled abnormally.
Specifically, the third voltage difference value is | Vusb-Vbtb2|, and if | Vusb-Vbtb2| > or equal to a second preset threshold, it indicates that the second battery connector is abnormally buckled.
When the electronic device includes a plurality of battery connectors, the voltage detection process of each battery connector can be referred to the above description of step 504, in the first embodiment, the voltage detection method of the second battery connector is the same as that of the first battery connector, and the execution process of step 505 refers to the detailed description of step 504, and the description is not repeated here.
It should be noted that (1) there is no strict time sequence limitation between step 501a to step 502a, step 501b to step 502b, and step 501c to step 502c, the voltage detection may be performed in parallel or in series, which is taken as an example of parallel execution, but the present application is not limited thereto, for example, referring to fig. 5b, which is a flow chart of a method for serially detecting a voltage, the specific implementation manner of each step in fig. 5b can be referred to as the specific description in fig. 5a, and is not described herein again, in addition, fig. 5b is only an example, and there are various ways of serially detecting the voltage in the embodiment of the present application, for example, step 503 may be executed after step 502b, or after the step 503, the step 501c is executed, after the step 501c, the step 502c is executed, after the step 502c, the step 504 is executed, and the like, which are not limited in the embodiment of the present application. (2) The method for detecting the engaging state of the battery connector by voltage is only an example, wherein the steps 501c, 502c, 504 and 505 are optional steps, and the method for detecting the engaging state of the battery connector by voltage is not limited in this embodiment.
In addition, the preset values corresponding to the parameters involved in the above determination steps may be uniform, or may be configured according to different battery specifications. For example, a mapping relationship between the battery specification identifier and a normal value range of each parameter is preset in the electronic device, the electronic device may obtain the battery specification identifier through a pin of the battery connector, and query a threshold or a threshold range corresponding to each parameter corresponding to the battery specification identifier through the mapping relationship, where the values may be agreed by a protocol or determined according to an empirical value, an experimental value, and the like, which is not limited in this embodiment. See table 1 below for a specific example of a mapping relationship provided in the present embodiment.
TABLE 1
Figure BDA0002846607510000111
For example, after detecting a trigger condition (the trigger condition refers to the foregoing description, and may be when the processor detects that the electronic device where the processor is located is powered on, or when the processor detects that the electronic device where the processor is located is charged every time), the processor in the electronic device obtains the battery specification identifier, and determines, according to table 1, each parameter value corresponding to the battery specification identifier and the corresponding different preset threshold value ranges. And subsequently, judging the buckling state of the battery connector according to the parameter values.
In the above mode, the lock state of the battery connector can be detected through the voltage of the battery connector and the voltage of the USB interface, if the voltage is not accordant with the preset detection condition, the lock state of the battery connector is determined to be abnormal, further, a user can be timely informed that the lock state of the battery connector is abnormal, the influence on electronic equipment is reduced, and the safety accident caused by small hidden danger is avoided.
Example two
Referring to fig. 6a, fig. 6a is a flow chart illustrating a second method for detecting a snap-fit state of a multi-battery connector according to the present embodiment. The method comprises the following steps:
step 601 a: the processor obtains the temperature Tbtb1 of the first battery connector.
Step 602 a: the processor determines whether Tbtb1 is within a normal temperature threshold range (denoted as a third preset threshold range) corresponding to the first battery connector, if yes, step 603 is executed, otherwise, it determines that the first battery connector is abnormally buckled.
The normal temperature threshold ranges for different battery connectors may be different or the same. For convenience of description, the threshold value or the threshold value range of each parameter corresponding to each battery connector is described as an example. For example, the normal temperature threshold range corresponding to the first battery connector and the normal temperature threshold range corresponding to the second battery connector are both the third preset threshold range, and the similar points will not be described repeatedly below.
Optionally, if the temperature of the battery connector is not within the third preset threshold range, it indicates that the battery connector is abnormally fastened. Furthermore, if the temperature value of the battery connector is not within the third preset threshold range, it may be determined whether the temperature value of the battery connector is an open-circuit value and/or a short-circuit value. It should be understood that the measurement range of the temperature sensor is fixed, and the measurement value of the temperature sensor exceeds the measurement specification whether open or short, for example, the value of the temperature sensor is particularly low when short and high when open.
Step 601 b: the processor obtains the temperature Vbtb2 of the second battery connector.
Step 602 b: the processor determines whether Vbtb2 is within the normal threshold range corresponding to the second battery connector (as described above, it is assumed that the normal threshold range corresponding to the second battery connector is the third preset threshold range), if so, step 603 is executed, otherwise, it is determined that the fastening of the second battery connector is abnormal.
Step 601 c: the processor obtains the temperature Tusb of the USB interface.
Step 602 c: the processor determines whether the temperature Tusb of the USB interface is within a normal temperature threshold range (recorded as a fourth preset threshold range), if so, performs step 603, otherwise, determines that the USB interface is abnormal.
Here, the temperature of the USB interface is close to the room temperature, and therefore, the fourth preset threshold range may be determined according to the threshold range of the ambient temperature.
Step 603: the processor determines whether the temperature difference (recorded as the first temperature difference) between the first battery connector and the second battery connector does not exceed a third preset threshold, and if so, executes step 604; otherwise, determining the fastening abnormality of the first battery connector or the fastening abnormality of the second battery connector.
Specifically, the first temperature difference value is | Tbtb1-Tbtb2|, and if | Tbtb1-Tbtb2| ≧ a third preset threshold, it is determined that the first battery connector is in an abnormal engagement state or the second battery connector is in an abnormal engagement state, and the processor may also stop the detection of the plurality of battery connectors.
Step 604: the processor determines whether the temperature difference (recorded as a second temperature difference) between the first battery connector and the USB interface does not exceed a fourth preset threshold, and if so, executes step 604; otherwise, determining that the first battery connector is abnormally fastened.
Specifically, the second temperature difference is | Tbtb1-Tusb |, and if | Tbtb1-Tusb | ≧ the fourth preset threshold, it is determined that the first battery connector is abnormally fastened, and the processor may exit the detection procedure for the plurality of battery connectors.
Step 605: the processor judges whether a temperature difference (recorded as a third temperature difference) between the second battery connector and the USB interface does not exceed a fourth preset threshold value, and if so, the first battery connector and the second battery connector are normally buckled; otherwise, determining that the second battery connector is abnormally buckled.
Specifically, the third temperature difference is | Tbtb2-Tusb |, and if | Tbtb2-Tusb | ≧ a fourth preset threshold, it is determined that the second battery connector is abnormally engaged.
It should be noted that (1) there is no strict timing limitation between step 601a to step 602a, step 601b to step 602b, and step 601c to step 602c, the temperature detection may be performed in parallel or in series, which is taken as an example, but the present application is not limited thereto, for example, referring to fig. 6b, which is a flow chart of a method for serially detecting temperature, the specific implementation manner of each step in fig. 6b can be referred to as the specific description in fig. 6a, which is not described herein again, in addition, fig. 6b is only an example, and there are various ways of serially detecting the temperature in the embodiment of the present application, for example, step 603 may be executed after step 602b, or step 601c is executed after step 603, step 602c is executed after step 601c, step 604 is executed after step 602c, and the like, which is not limited in the embodiment of the present application. (2) The method for detecting the engaging state of the battery connector by temperature is only an example, wherein the steps 601c, 602c, 604 and 605 are optional steps, and the method for detecting the engaging state of the battery connector by temperature is not limited in this embodiment.
Similarly, the preset values corresponding to the parameters involved in the determining steps in the second embodiment may be uniform, or may be configured according to different battery specifications. Exemplarily, see the following table 2, which is a specific example of another mapping relationship provided in the present embodiment.
TABLE 2
Figure BDA0002846607510000131
For example, after detecting a trigger condition (the trigger condition refers to the foregoing, and may be when the processor detects that the electronic device is powered on, or when the processor detects that the electronic device is charged each time), the processor in the electronic device obtains the battery specification identifier, and determines, according to table 2, each parameter value corresponding to the battery specification identifier and the corresponding different preset threshold ranges. And subsequently, judging the buckling state of the battery connector according to the parameter values.
According to the mode, the buckling state of the battery connector can be detected through the temperature of the battery connector and the temperature of the USB interface, if the temperature is not accordant with the preset detection condition, the buckling state of the battery connector is determined to be abnormal, further, a user is timely informed that the buckling state of the battery connector is abnormal, the influence on electronic equipment is reduced, and the safety accident is avoided.
EXAMPLE III
In the embodiment of the present application, the engagement state of the battery connectors can be detected by combining the solutions of the first embodiment and the second embodiment, that is, the electronic device detects the engagement state of each battery connector from the voltage and the temperature, in a practical manner, the electronic device synchronously executes the first embodiment and the second embodiment, for example, the electronic device executes the steps of fig. 5a and fig. 6a simultaneously. Another way to implement this is that the electronic device performs the first embodiment and the second embodiment serially, for example, the electronic device performs the steps of fig. 5b first, and then performs the steps of fig. 6 b. For another example, the electronic device performs the steps of fig. 6b first and then performs the steps of fig. 5 b. For another example, the electronic device performs the steps of fig. 5a, then performs the steps of fig. 6a or fig. 6b, and so on. For a specific process, refer to the specific execution steps described in the above first and second embodiments, which are not described herein again.
Similarly, the preset values corresponding to the parameters involved in the determination steps in the third embodiment may be uniform, or may be configured according to different battery specifications. Exemplarily, see the following table 3, which is a specific example of another mapping relationship provided in the present embodiment.
TABLE 3
Figure BDA0002846607510000132
It should be noted that, the above lists are only examples, and the preset threshold ranges or the preset thresholds corresponding to different parameters may be completely the same, may also be partially the same (or not completely the same), or completely different, for example, a 1-a 2 may be 4 to 10, a 3-a 4 may also be 4 to 10, a 1-a 2 may be 4 to 10, a 3-a 4 may be 4 to 8, a 1-a 2 may be 4 to 7, and a 3-a 4 may be 8 to 10, which is not limited in this application embodiment, and of course, the specific values listed are also only examples, and are not limited in this application embodiment.
According to the mode, the buckling state of the battery connector can be synchronously detected by combining parameters such as temperature and pressure, and if the temperature or the pressure do not accord with the preset detection condition, the buckling state of the battery connector is determined to be abnormal, the influence on the electronic equipment is reduced, and the safety accident is avoided.
As an optimization mode, after the detection is finished, if the buckling state of one or more battery connectors is detected to be abnormal, the detection result is displayed on the electronic equipment so as to prompt a user to overhaul as soon as possible. Exemplarily, as shown in fig. 7, an interface schematic diagram for displaying the detection result for the electronic device is shown.
As another optimization, after the detection is completed, the electronic device may further record a detection result, where the detection result may include, but is not limited to, part or all of the following: detecting time, whether a fault exists, fault codes, and the fault codes are used for representing the reason of the fault. The electronic device can send the detection result to the cloud server, and specifically, the electronic device can bind the detection result and the device identifier of the electronic device and send the detection result and the device identifier of the electronic device to the cloud server together. The maintainer can obtain the fault code of electronic equipment through high in the clouds server, realizes carrying out quick maintenance.
In other embodiments of the present application, there is also disclosed an electronic device, as shown in fig. 8, which may include: a battery 801, a motherboard 802, at least two battery connectors 803, wherein the battery 801 is connected with the motherboard 802 through 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, which may be connected by one or more communication buses 807. Wherein 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 comprising instructions which may be used to perform the steps in the respective embodiments as illustrated in fig. 4, 5a, 5b, 6a, 6 b.
The embodiment of the present application further provides a computer storage medium, where a computer instruction is stored in the computer storage medium, and when the computer instruction runs on an electronic device, the electronic device is enabled to execute the above related method steps to implement the display method in the above embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the display method in the above embodiment.
In addition, an apparatus, which may be specifically a chip, a component or a module, may include a processor and a memory connected to each other; when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the display method of the touch screen in the above method embodiments.
In addition, the electronic device, the computer storage medium, the computer program product, or the chip provided in the embodiments of the present application are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is only one type of logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described in detail with reference to the accompanying drawings. The particular methods of operation in the method embodiments may also be applied to apparatus embodiments or system embodiments. In the description of the present application, the term "plurality" means two or more unless otherwise specified.
Optionally, the computer-executable instructions in this embodiment may also be referred to as application program codes, which is not specifically limited in this embodiment.
Those of ordinary skill in the art will understand that: the various numbers of the first, second, etc. mentioned in this application are only used for the convenience of description and are not used to limit the scope of the embodiments of this application, but also to indicate the sequence. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one" means one or more. At least two means two or more. "at least one," "any," or similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one (one ) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. "plurality" means two or more, and the other terms are analogous. Furthermore, for elements (elements) that appear in the singular form "a," an, "and" the, "they are not intended to mean" one or only one "unless the context clearly dictates otherwise, but rather" one or more than one. For example, "a device" means for one or more such devices.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, 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.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may 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)), among others.
The various illustrative logical units and circuits described in this application may be implemented or operated upon by design of a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in the embodiments herein may be embodied directly in hardware, in a software element executed by a processor, or in a combination of the two. The software cells may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations may be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include such modifications and variations.

Claims (11)

1. A battery connection detection method is applied to electronic equipment, and is characterized in that the electronic equipment comprises at least two battery connectors, a battery of the electronic equipment is connected to a mainboard of the electronic equipment through the at least two battery connectors, and the method comprises the following steps:
aiming at a first battery connector, obtaining values of one or more preset parameters of the first battery connector, wherein the preset parameters comprise endpoint voltage and/or battery temperature of connection between the first battery connector and a battery;
when the values of the one or more preset parameters are determined to respectively meet the preset detection conditions of the one or more preset parameters, determining that the battery and the mainboard are normally buckled;
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 the any one preset parameter, determining that the battery and the mainboard are abnormally buckled;
wherein the first battery connector is any one of the at least two battery connectors; when the preset parameter comprises the battery temperature, the preset detection condition corresponding to the battery temperature comprises: whether a temperature difference between the battery temperature of the first battery connector and the battery temperature of the second battery connector is smaller than a first preset value or not, wherein the second battery connector is any one of the at least two battery connectors except the first battery connector.
2. The method of claim 1, wherein the preset parameters include a terminal voltage at a connection of the first battery connector to a battery;
the preset detection condition corresponding to the endpoint voltage of the first battery connector connected with the battery comprises the following steps:
whether the voltage of an end point of the first battery connector connected with the battery is within a first preset threshold range or not; and/or
Whether a voltage difference between an end point voltage of the first battery connector connected with the battery and an end point voltage of the second battery connector connected with the battery is smaller than a first preset value or not, wherein the second battery connector is any one of the at least two battery connectors except the first battery connector.
3. The method of claim 2, wherein the method further comprises:
the output voltage of a USB interface of the electronic equipment is obtained;
the preset detection condition corresponding to the endpoint voltage of the first battery connector and the battery connection further comprises:
whether the output voltage of the USB interface is within a second preset threshold range or not; and/or
And whether the voltage difference value between the end point voltage of the first battery connector connected with the battery and the output voltage of the USB interface is smaller than a second preset value or not.
4. The method of claim 1, wherein the preset parameters include a battery temperature at a connection of the first battery connector with a battery;
the preset detection condition corresponding to the battery temperature at the connection position of the first battery connector and the battery comprises the following steps:
whether the battery temperature at the connection part of the first battery connector and the battery is within a third preset threshold range.
5. The method of claim 4, wherein the method further comprises:
acquiring the temperature of a USB interface of the electronic equipment;
the preset detection condition that the battery temperature of the first battery connector and the battery connection part corresponds to further comprises:
whether the temperature of the USB interface is within a fourth preset threshold range or not; and/or
And whether the temperature difference between the temperature of the battery at the joint of the first battery connector and the battery and the temperature of the USB interface is smaller than a fourth preset value or not.
6. The method according to any of claims 1 to 5, wherein the preset detection conditions for the one or more preset parameters are obtained by:
acquiring a battery specification identifier of the electronic equipment;
finding the preset detection conditions of the one or more preset parameters corresponding to the battery specification identification in a preset corresponding relation;
the corresponding relation comprises different battery specification identifications and different preset detection conditions of preset parameters.
7. The method of any of claims 1-6, wherein said obtaining values for one or more preset parameters of said first battery connector further comprises:
detecting a trigger condition, wherein the trigger condition comprises that the electronic equipment starts running or the electronic equipment is charged.
8. An electronic device comprising 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 for storing an executable program;
the processor to execute a computer executable program in a memory to cause the method of any of claims 1-7 to be performed.
9. An electronic device, wherein the device comprises a battery, a motherboard, at least two battery connectors, a processor and a communication interface, wherein the battery is connected with the motherboard through the at least two battery connectors;
the communication interface is used for inputting and/or outputting information;
the processor to execute a computer executable program to cause the method of any one of claims 1-7 to be performed.
10. A computer-readable storage medium, characterized in that it stores a computer-executable program which, when invoked by a computer, causes the computer to perform the method according to any one of claims 1 to 7.
11. A chip system, comprising:
the communication interface is used for inputting and/or outputting information;
a processor for executing a computer executable program for causing a device on which the system-on-chip is installed to perform the method according to any one of claims 1 to 7.
CN202011511833.6A 2020-12-18 2020-12-18 Battery connection detection method and device Pending CN114646876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511833.6A CN114646876A (en) 2020-12-18 2020-12-18 Battery connection detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511833.6A CN114646876A (en) 2020-12-18 2020-12-18 Battery connection detection method and device

Publications (1)

Publication Number Publication Date
CN114646876A true CN114646876A (en) 2022-06-21

Family

ID=81989623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511833.6A Pending CN114646876A (en) 2020-12-18 2020-12-18 Battery connection detection method and device

Country Status (1)

Country Link
CN (1) CN114646876A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604643A (en) * 2022-12-12 2023-01-13 杭州兆华电子股份有限公司(Cn) Automatic detection and positioning method for poor production of mobile phone charger

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604643A (en) * 2022-12-12 2023-01-13 杭州兆华电子股份有限公司(Cn) Automatic detection and positioning method for poor production of mobile phone charger

Similar Documents

Publication Publication Date Title
KR102439078B1 (en) Electronic device and method for controlling a charging thereof
JP5388484B2 (en) Apparatus and method for detecting power supply
CN106340932B (en) Connection detection method and system of mobile terminal based on USB interface charger
CN106356918B (en) A kind of quick charge recognition methods and terminal device
KR20210031172A (en) Method for diagnosing status of battery, the electronic device and storage medium therefor
WO2018124721A1 (en) Method and electronic device for detecting internal short circuit in battery
CN106796262A (en) USB data pin impedance detection
US10305301B2 (en) Battery and electronic device thereof
CN109494822B (en) Terminal equipment, charger, charging system and charging method
CN107658916A (en) Cue circuit and electronic equipment
CN117110913B (en) Battery detection circuit, electronic device, and battery detection method
TW202009508A (en) Battery control apparatus and method for detecting internal short of battery
CN116054301B (en) Battery protection device, battery protection method and electronic equipment
CN114646876A (en) Battery connection detection method and device
US9172269B2 (en) Device and method using a keyboard controller and voltage detection circuitry for battery charging
TWI452798B (en) Universal charging detection device and universal charging detection method
CN106972558B (en) Charging control method and electronic equipment
WO2016074388A1 (en) Charging method and apparatus
CN112378331B (en) Electronic device, battery deformation detection method, and readable storage medium
CN106772092B (en) Charging current setting system and method for obtaining battery voltage based on mobile terminal
CN116315185A (en) Electronic device and battery management method
CN102298435A (en) Battery module and management method for the same
US10154154B2 (en) Centralized theft-proof device
CN115904851B (en) Terminal equipment and external equipment access detection system
US20240178464A1 (en) Battery device and battery management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination