WO2023000857A1 - Status detection method for battery connector, and controller, terminal device and storage medium - Google Patents

Status detection method for battery connector, and controller, terminal device and storage medium Download PDF

Info

Publication number
WO2023000857A1
WO2023000857A1 PCT/CN2022/097696 CN2022097696W WO2023000857A1 WO 2023000857 A1 WO2023000857 A1 WO 2023000857A1 CN 2022097696 W CN2022097696 W CN 2022097696W WO 2023000857 A1 WO2023000857 A1 WO 2023000857A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
pin
state
battery connector
preset
Prior art date
Application number
PCT/CN2022/097696
Other languages
French (fr)
Chinese (zh)
Inventor
张庆立
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023000857A1 publication Critical patent/WO2023000857A1/en

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
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Definitions

  • the embodiments of the present application relate to but are not limited to the technical field of charging, and in particular, relate to a method for detecting the state of a battery connector, a controller, a terminal device, and a computer-readable storage medium.
  • the battery is connected to the main board of the smart terminal through the battery connector.
  • the output current of the charging chip enters the battery through the battery connector.
  • the battery outputs current through the battery connector to supply power to the entire system.
  • the conventional detection method is to detect whether the charging and discharging pins of the battery are normal. If it is within the normal range, it is considered that the battery is connected normally, otherwise it is considered that the battery is not connected properly.
  • Embodiments of the present application provide a battery connector state detection method, a controller, a terminal device, and a computer-readable storage medium.
  • an embodiment of the present application provides a method for detecting the state of a battery connector, which is applied to a controller, and the controller is connected to a charging and discharging assembly, and the charging and discharging assembly includes a battery and a plurality of battery connectors, each The battery connectors are all provided with pins, and the controller is connected to the battery through the pins, and the method includes: for each of the battery connectors, obtaining the charging and discharging information through the pins A current state parameter of the component; comparing the current state parameter with a preset state parameter, and determining the installation state of each of the battery connectors according to the comparison result.
  • the embodiment of the present application also provides a controller, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor executes the computer program.
  • the program implements the method for detecting the state of the battery connector as described in the first aspect above.
  • an embodiment of the present application further provides a terminal device, including the controller as described in the second aspect above.
  • the embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, the computer-executable instructions being used to execute the battery connector state detection method as described in the above-mentioned first aspect.
  • FIG. 1 is a schematic diagram of a controller for performing a battery connector state detection method provided by an embodiment of the present application
  • Fig. 2 is a schematic diagram of the connection relationship between the host, the battery connector and the battery provided by an embodiment of the present application;
  • Fig. 3 is a schematic diagram of the pins of each battery connector provided by an embodiment of the present application when two battery connectors are used;
  • Fig. 4 is a schematic diagram of the pins of each battery connector provided by an embodiment of the present application when three battery connectors are used;
  • FIG. 5 is a flowchart of a battery connector state detection method provided by an embodiment of the present application.
  • Fig. 6 is a flow chart of detecting the charging and discharging pins provided by an embodiment of the present application when an external power supply is connected;
  • Fig. 7 is a flow chart of detecting the installation state of the battery connector according to the cell voltage provided by an embodiment of the present application.
  • Fig. 8 is a flow chart of detecting the installation state of the battery connector according to the cell voltage provided by another embodiment of the present application.
  • FIG. 9 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by an embodiment of the present application.
  • Fig. 10 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by another embodiment of the present application.
  • Fig. 11 is a flow chart of detecting the installation state of the battery connector according to the battery temperature provided by an embodiment of the present application.
  • Fig. 12 is a flow chart of detecting the installation state of the battery connector according to the battery temperature provided by another embodiment of the present application.
  • Fig. 13 is a flow chart of detecting the installation state of the battery connector according to the fuel gauge information provided by one embodiment of the present application;
  • Fig. 14 is a flow chart of detecting the installation state of the battery connector according to the fuel gauge information provided by another embodiment of the present application.
  • Fig. 15 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by one embodiment of the present application;
  • Fig. 16 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by another embodiment of the present application.
  • Fig. 17 is a flow chart of generating prompt information provided by an embodiment of the present application.
  • Fig. 18 is a flow chart of generating prompt information provided by another embodiment of the present application.
  • the current smart terminal usually uses a built-in battery.
  • the battery is connected to the main board of the smart terminal through the battery connector.
  • the output current of the charging chip enters the battery through the battery connector, and the battery outputs current through the battery connector when discharging. power the entire system.
  • the conventional detection method is to detect whether the charging and discharging pins of the battery are normal. If it is within the normal range, it is considered that the battery is connected normally, otherwise it is considered that the battery is not connected properly.
  • an embodiment of the present application provides a battery connector state detection method, a controller, a terminal device and a computer-readable storage medium, wherein the battery connector state detection method is applied to the controller, and the controller is connected to the charging and discharging Components, charging and discharging components include a battery and a plurality of battery connectors, each battery connector is provided with pins, and the controller is connected to the battery through the pins;
  • the above battery connector state detection method includes but is not limited to the following Steps: For each battery connector, obtain the current state parameters of the charging and discharging components through pins; compare the current state parameters with the preset state parameters, and determine the installation state of each battery connector according to the comparison results.
  • the embodiment of the present application can reasonably define the pins of each battery connector in advance to obtain the preset state parameters corresponding to the pins, and then obtain the charging and discharging components through the pins of each battery connector Then compare the current state parameters with the preset state parameters, and judge whether the current state parameters meet the expectations according to the comparison results to judge whether the pins of each battery connector are connected well, so as to further confirm whether each battery connector is installed. reign. Therefore, the embodiment of the present application can solve the problem of detecting the installation status of each battery connector in the case of using multiple battery connectors at the same time, so as to ensure that all the multiple battery connectors are fastened.
  • FIG. 1 is a schematic diagram of a controller 110 provided by an embodiment of the present application for performing a method for detecting a state of a battery connector.
  • the controller 110 is provided with a processor 111 and a memory 112 , wherein the processor 111 and the memory 112 may be connected via a bus or in other ways.
  • connection via a bus is taken as an example.
  • the memory 112 can be used to store non-transitory software programs and non-transitory computer-executable programs.
  • the memory 112 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the memory 112 may include a memory 112 remotely located relative to the processor 111 , and these remote memories may be connected to the controller 110 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • controller 110 can be applied to 3G communication network systems, LTE communication network systems, 5G communication network systems and subsequent evolved mobile communication network systems, etc., which is not specifically limited in this embodiment.
  • controller 110 shown in FIG. 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine certain components, or have different Part placement.
  • the processor 111 can call the battery connector state detection program stored in the memory 112 to execute the battery connector state detection method.
  • FIG. 2 is a schematic diagram of a connection relationship among a host, a battery connector, and a battery in a terminal device provided by an embodiment of the present application.
  • the terminal device includes a host 100, a battery 200 and a plurality of battery connectors 300, wherein the battery 200 is connected to the host 100 of the terminal device through the battery connector 300, and the battery 200 is connected to the host 100.
  • the battery 200 can supply power to the host 100 through the battery connector 300 , and the host 100 can also check the status of the battery 200 through the battery connector 300 .
  • the host 100 shown in FIG. 2 may include but not limited to the controller 110 shown in FIG. 1 .
  • the battery 200 shown in FIG. 2 may be a built-in battery or a detachable battery.
  • FIG. 3 is a schematic diagram of pins of each battery connector provided by an embodiment of the present application when two battery connectors are used.
  • the first battery connector in Figure 3 includes VABTT PIN pins, VSNS PIN pins, ID PIN pins, and GND PIN pins.
  • VABTT PIN pins VABTT PIN pins
  • VSNS PIN pins VSNS PIN pins
  • ID PIN pins ID PIN pins
  • GND PIN pins GND PIN pins
  • VABTT PIN pin The battery can supply power to the host through this PIN pin, and the host can charge the battery through this PIN pin.
  • VSNS PIN pin This PIN pin is connected to the inside of the battery cell, and the real voltage of the battery cell can be obtained through this PIN pin.
  • ID PIN pin It is actually a resistor, which is the unique identification of the battery.
  • the same terminal device can use different types of batteries, and different types of batteries use different battery IDs, so the battery ID can be used to distinguish different batteries, but the battery The resistance value of the ID can be fixed within a certain range. When the actually read battery ID is too large or too small, it can be considered that the battery is abnormal.
  • GND PIN pin This PIN pin is grounded, which is used to cooperate with the detection voltage and resistance.
  • the second battery connector in Figure 3 includes VABTT PIN pins, I2C PIN pins, THERM PIN pins, and GND PIN pins.
  • VABTT PIN pins I2C PIN pins
  • THERM PIN pins THERM PIN pins
  • GND PIN pins The definitions and uses of each PIN pin in the second battery connector are as follows:
  • VBATT PIN pin The battery can supply power to the host through this PIN pin, and the host can charge the battery through this PIN pin. It can be understood that the VBATT PIN in the second battery connector has the same function as the VBATT PIN in the first battery connector.
  • I2C PIN pin This PIN pin is the PIN pin for communication between the host and the battery fuel gauge when the battery gauge is used, and the battery information can be read through this PIN pin.
  • THERM PIN pin The thermistor used to detect the battery temperature, its resistance will change at different temperatures. Since the temperature under normal conditions is within a certain range, when the resistance of the thermistor exceeds this range, it can be considered that the battery is abnormal.
  • GND PIN pin This PIN pin is grounded, which is used to cooperate with the detection voltage and resistance. Understandably, the GND PIN in the second battery connector has the same function as the GND PIN in the first battery connector.
  • FIG. 4 is a schematic diagram of pins of each battery connector provided by an embodiment of the present application when three battery connectors are used.
  • the first battery connector in Figure 4 includes VABTT PIN, VSNS PIN, ID PIN and GND PIN. It should be noted that the definitions and uses of each PIN in the first battery connector in Figure 4 You can refer to the definition and usage of the corresponding PIN in the first battery connector in Figure 3.
  • the second battery connector in Figure 4 includes VABTT PIN pins, THERM PIN pins and GND PIN pins. It should be noted that the definition and use of each PIN pin in the second battery connector in Figure 4 can be referred to The definition and purpose of the corresponding PIN pin in the second battery connector in Figure 3.
  • the third battery connector in Figure 4 includes VABTT PIN pins, I2C PIN pins and GND PIN pins. It should be noted that the definition and use of each PIN pin in the third battery connector in Figure 4 can be referred to The definition and purpose of the corresponding PIN pin in the second battery connector in Figure 3.
  • the pins of each battery connector include the first pin that is set to charge and discharge the battery, that is, the VABTT PIN pin; in addition, the pins of each battery connector The pins all include the second pin set to obtain the battery parameters, that is, the VSNS PIN pin, the ID PIN pin, the THERM PIN pin and the I2C PIN pin, and the battery parameters obtained by the second pins of different battery connectors
  • the types are different, that is, any one of the VSNS PIN, ID PIN, THERM PIN and I2C PIN is only set on a certain battery connector.
  • FIG. 5 is a flow chart of a battery connector state detection method provided by an embodiment of the present application; the battery connector state detection method is applied to a controller, the controller is connected to the charging and discharging assembly, and the charging and discharging assembly includes A battery and a plurality of battery connectors, each battery connector is provided with pins, and the controller is connected to the battery through the pins.
  • the battery connector state detection method includes but not limited to step S100 and step S200.
  • Step S100 for each battery connector, obtain the current state parameters of the charging and discharging components through pins;
  • Step S200 comparing the current state parameter with the preset state parameter, and determining the installation state of each battery connector according to the comparison result.
  • the controller will obtain the current state parameters of the charging and discharging components through the pins, and then the controller will compare the current state parameters with the preset state parameters to obtain the comparison result, and determine each battery according to the comparison result.
  • the installation state of the connector According to the technical solution of the embodiment of the present application, the embodiment of the present application can reasonably define the pins of each battery connector in advance to obtain the preset state parameters corresponding to the pins, and then obtain the charging and discharging components through the pins of each battery connector Then compare the current state parameters with the preset state parameters, and judge whether the current state parameters meet the expectations according to the comparison results to judge whether the pins of each battery connector are connected well, so as to further confirm whether each battery connector is installed. reign. Therefore, the embodiment of the present application can solve the problem of detecting the installation status of each battery connector in the case of using multiple battery connectors at the same time, so as to ensure that all the multiple battery connectors are fastened.
  • FIG. 6 is a flow chart of detecting the charging and discharging pins provided by an embodiment of the present application when an external power supply is connected.
  • the pins of each battery connector include the first pin set to charge and discharge the battery, that is, the VABTT PIN pin in Figure 3 and Figure 4, and correspondingly, the current
  • the state parameter may be the pin voltage of the first pin when an external power supply is connected; for this, the above step S200 includes but is not limited to step S300.
  • Step S300 when the pin voltages of the first pins of all battery connectors are at the preset voltage, it is determined that all the battery connectors are in the installation and dislocation state, wherein the preset voltage is zero.
  • the host will lack battery power, that is, the first battery connector is connected to the second battery
  • the pin voltage on the VABTT PIN pin on the device is zero, and the terminal device itself cannot be turned on without external power input; when the charger is plugged in, the host will receive power, and then the host will connect through each battery.
  • the controller will control the terminal device to prompt, so as to remind the user to check whether the battery connector is installed correctly or detect whether a battery is installed, and suspend the charging function.
  • Figure 7 is a flow chart for detecting the installation state of the battery connector according to the cell voltage provided by one embodiment of the present application
  • Figure 8 is a flow chart provided by another embodiment of the present application. Flowchart for detection of cell voltage to the installation state of the battery connector.
  • the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the cell voltage of the battery, that is, when The second pin is the VSNS PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the cell voltage of the battery; for this, regarding the above-mentioned step S200, including but not limited to: Step S410.
  • Step S410 when the cell voltage is within the preset voltage range, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
  • the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the cell voltage of the battery, that is, when The second pin is the VSNS PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the cell voltage of the battery; for this, regarding the above-mentioned step S200, including but not limited to: Step S420.
  • Step S420 when the voltage of the battery cell is outside the preset voltage range, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
  • two battery connectors are used in Figure 3 as an example, since the VSNS PIN pin is set on the first battery connector, when the controller obtains the battery through the VSNS PIN pin When the cell voltage of the battery is within the preset voltage range, it indicates that the first battery connector is installed in place; when the cell voltage obtained by the controller through the VSNS PIN pin is outside the preset voltage range, it indicates that the first battery The connector is dislocated, that is, the installation is not in place.
  • Figure 9 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by one embodiment of the present application
  • Figure 10 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by another embodiment of the present application. Flowchart for detecting the installation state of the battery connector by a resistor.
  • the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the battery resistance of the battery, that is, when the The second pin is the ID PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery resistance of the battery; for this, about the above-mentioned step S200, including but not limited to step S510 .
  • Step S510 when the battery resistance is within the preset resistance range, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
  • the pins of each battery connector include a second pin configured to obtain battery parameters, when the second pin is a pin configured to obtain the battery resistance of the battery, that is, when the The second pin is the ID PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery resistance of the battery; for this, about the above-mentioned step S200, including but not limited to step S520 .
  • Step S520 when the battery resistance is outside the preset resistance range, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
  • two battery connectors are used in Fig. 3 as an example, since the ID PIN pin is set on the first battery connector, when the controller obtains the When the battery resistance of the battery is within the preset resistance range, it indicates that the first battery connector is installed in place; when the battery resistance obtained by the controller through the ID PIN pin is outside the preset resistance range, it indicates that the first battery connector The installation is dislocated, that is, the installation is not in place.
  • Figure 11 is a flow chart of detecting the installation state of the battery connector according to the battery temperature provided by one embodiment of the present application
  • Figure 12 is a flow chart of detecting the installation state of the battery connector according to another embodiment of the present application. Flowchart for temperature detection of battery connector installation status.
  • the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the battery temperature of the battery, that is, when the The second pin is the THERM PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery temperature of the battery; for this, about the above-mentioned step S200, including but not limited to step S610 .
  • Step S610 when the battery temperature is within the preset temperature range, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
  • the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the battery temperature of the battery, that is, when the The second pin is the THERM PIN pin among Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery temperature of the battery; for this, about the above step S200, including but not limited to step S620 .
  • Step S620 when the temperature of the battery is outside the preset temperature range, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
  • two battery connectors are used in Figure 3 as an example, since the THERM PIN pin is set on the second battery connector, when the controller obtains When the battery temperature of the battery is within the preset temperature range, it indicates that the second battery connector is installed in place; when the battery temperature obtained by the controller through the THERM PIN pin is outside the preset temperature range, it indicates that the second battery connector The installation is dislocated, that is, the installation is not in place.
  • Figure 13 is a flow chart of detecting the installation state of the battery connector according to the fuel gauge information provided by one embodiment of the present application
  • Figure 14 is a flow chart provided by another embodiment of the present application. Flowchart for detection of battery connector installation status by fuel gauge information.
  • the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the fuel gauge information of the battery, that is, when The second pin is the I2C PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the fuel gauge information of the battery; for this, about the above step S200, including but not limited to: Step S710.
  • Step S710 when the fuel gauge information of the battery is obtained, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
  • the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the fuel gauge information of the battery, that is, when The second pin is the I2C PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the fuel gauge information of the battery; for this, about the above step S200, including but not limited to: Step S720.
  • Step S720 when the fuel gauge information of the battery is not obtained, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
  • two battery connectors are used in Figure 3 as an example, since the I2C PIN pin is set on the second battery connector, when the controller obtains the battery through the I2C PIN pin When the fuel gauge information is displayed, it indicates that the second battery connector is installed in place; when the controller does not obtain the fuel gauge information through the I2C PIN pin, it indicates that the second battery connector is dislocated, that is, the installation is not in place.
  • the host will lack battery power, that is, the pin voltage on the VABTT PIN on the first battery connector and the second battery connector. are all zero, the terminal device itself cannot be turned on without external power input; when plugged into the charger, the host will get power, and then the host will get the first pin through the first pin of each battery connector When the pin voltage of the first pin of all battery connectors is zero, it proves that all battery connectors are not installed in place.
  • the controller will control the terminal device to prompt, so as to remind the user to check whether the battery connector is installed correctly or detect whether a battery is installed, and suspend the charging function.
  • the embodiment of the present application can also detect through the detection methods of the above-mentioned VSNS PIN pin, ID PIN pin, THERM PIN pin and I2C PIN pin.
  • the embodiment of the present application can detect that the voltage VSNS of the battery cell is 0, and the resistance value of the battery ID is infinite (equivalent to an open circuit), and the temperature corresponding to the resistance value of the THERM thermistor is within the normal range, through I2C If you can read the relevant information of the fuel gauge (such as Chip ID), then you can judge that the first battery connector is not fastened. In this case, you can suspend charging or only allow low-power charging.
  • the embodiment of the present application can detect that the voltage VSNS of the cell is within the normal voltage range (such as between 2.8V and 4.5V), and the resistance value of the ID of the battery is within a preset range (such as 10K ⁇ to 1000K ⁇ ), and The resistance of the THERM thermistor is infinite (the corresponding temperature is an abnormal value, such as lower than -100° or higher than 100°), and there is no feedback through I2C communication with the fuel gauge in the battery, then it can be judged that it is the first The two battery connectors are not fastened. In this case, the charging can be suspended or only allowed to charge at a low power.
  • the battery can normally supply power to the host, and it can also be detected that the voltage VSNS of the battery cell is within the normal voltage range (such as between 2.8V and 4.5V).
  • the resistance of the battery ID is within a preset range (such as 10K ⁇ to 1000K ⁇ )
  • the temperature corresponding to the resistance of the THERM thermistor is within the normal range (such as -20° to 60°)
  • the fuel gauge can be read through I2C Relevant information (such as Chip ID), that is to say, all the information read by the PIN pins are in line with expectations, so it can be judged that the two battery connectors are fastened.
  • the output voltage on VBATT is 0, and the host cannot be powered in this case.
  • the voltage VSNS of the battery cell is within the normal voltage range (such as 2.8V to 4.5V)
  • the resistance of the battery ID is within a preset range (such as 10K ⁇ to 1000K ⁇ )
  • the temperature corresponding to the resistance of the THERM thermistor is within the normal range (such as -20° to 60°)
  • the relevant information of the fuel gauge (such as Chip ID) can be read through I2C, that is to say, all PIN pins can be read If the received information is in line with expectations, it can be judged that the two battery connectors are fastened and charging is allowed.
  • Figure 15 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by one embodiment of the present application
  • Figure 16 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by another embodiment of the present application. Flowchart for current detection of the installation state of the battery connector.
  • the charging and discharging component also includes a plurality of sampling resistors, the sampling resistors correspond to the battery connectors one by one, and the sampling resistors are connected in series with the pins.
  • the obtained current state parameters of the charging and discharging components are Sampling the current; for this, the above step S200 includes but not limited to step S810.
  • Step S810 when the sampling current is greater than or equal to the preset current, it is determined that the battery connector corresponding to the sampling resistor is installed in position.
  • the charging and discharging component also includes a plurality of sampling resistors, the sampling resistors correspond to the battery connectors one by one, and the sampling resistors are connected in series with the pins.
  • the obtained current state parameters of the charging and discharging components are Sampling the current; for this, the above step S200 includes but not limited to step S820.
  • Step S820 when the sampling current is less than the preset current, it is determined that the battery connector corresponding to the sampling resistor is in a state of installation and dislocation.
  • the embodiment of the present application can also detect potential looseness of the battery connector in advance by detecting the current difference between the two battery connectors during charging.
  • the buckle of a battery connector is not fully fastened, the VBATT contact impedance of the unfastened battery connector will increase, and the current allocated to this battery connector will decrease, so that the two batteries are connected to maintain the same differential pressure.
  • this situation will cause the advantages of multiple battery connectors to become smaller.
  • the detected difference exceeds our preset range, it is considered that the battery connector with a relatively small current is potentially loose, which can be Prompt the user in advance to deal with it in a timely manner.
  • a hardware circuit can be added, and sampling resistors are connected in series on the paths of multiple battery connectors, so that the current actually transmitted by each battery connector can be sampled. If the current value on a certain path is obviously small, that is If it is less than the preset current, it can be considered that the battery connector is not fastened.
  • FIG. 17 is a flowchart of generating prompt information provided by one embodiment of the present application
  • FIG. 18 is a flowchart of generating prompt information provided by another embodiment of the present application.
  • the controller also communicates with the display screen, and the method for detecting the state of the battery connector in the embodiment of the present application also includes but is not limited to step S910 .
  • Step S910 when the battery connector is in the state of installation and dislocation, sending a first prompt message to the display screen.
  • the controller also communicates with the speaker, and the method for detecting the state of the battery connector in the embodiment of the present application also includes but is not limited to step S920 .
  • Step S920 when the battery connector is in the state of installation and dislocation, sending a second prompt message to the speaker.
  • the embodiment of the present application can prompt the user by displaying on the screen or sounding from the speaker.
  • the host can prompt the user for the state of the battery in a suitable The connector is not fastened, please contact the after-sales service.
  • an embodiment of the present application provides a controller, which includes: a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • a controller which includes: a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • processor and the memory can be connected through a bus or in other ways.
  • controller in this embodiment can correspond to the controller in the embodiment shown in Figure 1, both of which belong to the same inventive concept, so they have the same realization principle and beneficial effect, here No more details.
  • the non-transitory software programs and instructions required to realize the detection method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the battery connector state detection method of the above-mentioned embodiment is executed, for example, executing the above-described Fig. 5 to Method steps in Figure 18.
  • an embodiment of the present application provides a terminal device, where the terminal device includes but is not limited to the above-mentioned controller.
  • the terminal device in the embodiment of the present application includes the above-mentioned controller, and the above-mentioned controller can execute the above-mentioned method for detecting the state of the battery connector, therefore, the specific implementation manner of the terminal device in the embodiment of the present application and For technical effects, reference may be made to the specific implementation manners and technical effects of the above battery connector state detection method.
  • an embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, when the computer-executable instructions are used to execute the above battery connector state detection method, for example , execute the method steps in FIG. 5 to FIG. 18 described above.
  • the embodiment of the present application includes: the battery connector state detection method of the embodiment of the present application is applied to the controller, wherein the controller is connected to the charging and discharging assembly, and the charging and discharging assembly includes a battery and a plurality of battery connectors, each The battery connectors are all provided with pins, and the controller is connected to the battery through the pins;
  • the above-mentioned battery connector state detection method includes the following steps: for each of the battery connectors, the controller passes The pins obtain the current state parameters of the charging and discharging components, and then the controller compares the current state parameters with preset state parameters, and determines the installation state of each of the battery connectors according to the comparison result.
  • the embodiment of the present application can reasonably define the pins of each battery connector in advance to obtain the preset state parameters corresponding to the pins, and then obtain the charging and discharging components through the pins of each battery connector Then compare the current state parameters with the preset state parameters, and judge whether the current state parameters meet the expectations according to the comparison results to judge whether the pins of each battery connector are connected well, so as to further confirm whether each battery connector is installed. reign. Therefore, the embodiment of the present application can solve the problem of detecting the installation status of each battery connector in the case of using multiple battery connectors at the same time, so as to ensure that all the multiple battery connectors are fastened.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embody computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

Provided are a status detection method for a battery connector (300), and a controller (110), a terminal device and a storage medium. The method is applied to the controller (110), and the controller (110) is connected to a charge/discharge assembly. The charge/discharge assembly comprises a battery (200) and a plurality of battery connectors (300). Each of the battery connectors (300) is provided with a pin, and the controller (110) is connected to the battery (200) by means of the pin. The detection method comprises: for each battery connector (300), acquiring a current status parameter of a charge/discharge assembly by means of a pin (S100); and comparing the current status parameter with a preset status parameter, and then determining an installation status of each battery connector (300) according to a comparison result (S200).

Description

电池连接器状态检测方法、控制器、终端设备和存储介质Battery connector state detection method, controller, terminal equipment and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110816950.1、申请日为2021年07月20日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110816950.1 and a filing date of July 20, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请实施例涉及但不限于充电技术领域,尤其涉及一种电池连接器状态检测方法、控制器、终端设备和计算机可读存储介质。The embodiments of the present application relate to but are not limited to the technical field of charging, and in particular, relate to a method for detecting the state of a battery connector, a controller, a terminal device, and a computer-readable storage medium.
背景技术Background technique
目前的智能终端通常使用内置电池,电池通过电池连接器与智能终端的主板相连,在充电时充电芯片输出电流通过电池连接器进入电池,在放电时电池通过电池连接器输出电流给整个系统供电。目前常见的是使用一个电池连接器将电池与智能终端的主板相连,如果电池连接器没有扣好,则会造成无法给电池充电以及电池无法给系统供电的情况,而目前对于单个电池连接器的常规检测方法是检测电池的充放电引脚是否是正常的,如果在正常范围内,则认为电池连接正常,否则认为电池没有接好。Current smart terminals usually use a built-in battery. The battery is connected to the main board of the smart terminal through the battery connector. When charging, the output current of the charging chip enters the battery through the battery connector. When discharging, the battery outputs current through the battery connector to supply power to the entire system. At present, it is common to use a battery connector to connect the battery to the main board of the smart terminal. If the battery connector is not fastened, it will cause the situation that the battery cannot be charged and the battery cannot supply power to the system. Currently, for a single battery connector The conventional detection method is to detect whether the charging and discharging pins of the battery are normal. If it is within the normal range, it is considered that the battery is connected normally, otherwise it is considered that the battery is not connected properly.
但是,为了提高智能终端的充电功率和充电速度,市面上推出了同时使用多个电池连接器的情况。在使用多个电池连接器的情况下,即使当不是所有电池连接器都扣好时,都可能实现充电和放电,但是会对实际充电和放电效果造成影响。因此,若采用单个电池连接器的常规检测方法来检测多个电池连接器的安装状态,则无法保证多个电池连接器是全部扣好的。However, in order to increase the charging power and charging speed of smart terminals, the market has introduced the use of multiple battery connectors at the same time. In cases where multiple battery connectors are used, charging and discharging may be possible even when not all battery connectors are snapped in place, but there will be an impact on the actual charging and discharging effect. Therefore, if the conventional detection method of a single battery connector is used to detect the installation status of multiple battery connectors, it cannot be guaranteed that all the multiple battery connectors are fastened.
发明内容Contents of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics described in detail in this article. This summary is not intended to limit the scope of the claims.
本申请实施例提供了一种电池连接器状态检测方法、控制器、终端设备和计算机可读存储介质。Embodiments of the present application provide a battery connector state detection method, a controller, a terminal device, and a computer-readable storage medium.
第一方面,本申请实施例提供了一种电池连接器状态检测方法,应用于控制器,所述控制器连接至充放电组件,所述充放电组件包括电池和多个电池连接器,每个所述电池连接器均设置有引脚,所述控制器通过所述引脚连接至所述电池,所述方法包括:对于每个所述电池连接器,通过所述引脚获取所述充放电组件的当前状态参数;比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态。In the first aspect, an embodiment of the present application provides a method for detecting the state of a battery connector, which is applied to a controller, and the controller is connected to a charging and discharging assembly, and the charging and discharging assembly includes a battery and a plurality of battery connectors, each The battery connectors are all provided with pins, and the controller is connected to the battery through the pins, and the method includes: for each of the battery connectors, obtaining the charging and discharging information through the pins A current state parameter of the component; comparing the current state parameter with a preset state parameter, and determining the installation state of each of the battery connectors according to the comparison result.
第二方面,本申请实施例还提供了一种控制器,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的电池连接器状态检测方法。In the second aspect, the embodiment of the present application also provides a controller, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor executes the computer program. The program implements the method for detecting the state of the battery connector as described in the first aspect above.
第三方面,本申请实施例还提供了一种终端设备,包括如上述第二方面所述的控制器。In a third aspect, an embodiment of the present application further provides a terminal device, including the controller as described in the second aspect above.
第四方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上述第一方面所述的电池连接器状态检测方法。In a fourth aspect, the embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, the computer-executable instructions being used to execute the battery connector state detection method as described in the above-mentioned first aspect.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the application will be set forth in the description which follows, and, in part, will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.
图1是本申请一个实施例提供的用于执行电池连接器状态检测方法的控制器的示意图;FIG. 1 is a schematic diagram of a controller for performing a battery connector state detection method provided by an embodiment of the present application;
图2是本申请一个实施例提供的主机、电池连接器和电池之间的连接关系示意图;Fig. 2 is a schematic diagram of the connection relationship between the host, the battery connector and the battery provided by an embodiment of the present application;
图3是本申请一个实施例提供的当采用两个电池连接器时各个电池连接器的引脚示意图;Fig. 3 is a schematic diagram of the pins of each battery connector provided by an embodiment of the present application when two battery connectors are used;
图4是本申请一个实施例提供的当采用三个电池连接器时各个电池连接器的引脚示意图;Fig. 4 is a schematic diagram of the pins of each battery connector provided by an embodiment of the present application when three battery connectors are used;
图5是本申请一个实施例提供的电池连接器状态检测方法的流程图;FIG. 5 is a flowchart of a battery connector state detection method provided by an embodiment of the present application;
图6是本申请一个实施例提供的在连接外部电源的情况下对充放电引脚进行检测的流程图;Fig. 6 is a flow chart of detecting the charging and discharging pins provided by an embodiment of the present application when an external power supply is connected;
图7是本申请一个实施例提供的根据电芯电压对电池连接器的安装状态进行检测的流程图;Fig. 7 is a flow chart of detecting the installation state of the battery connector according to the cell voltage provided by an embodiment of the present application;
图8是本申请另一个实施例提供的根据电芯电压对电池连接器的安装状态进行检测的流程图;Fig. 8 is a flow chart of detecting the installation state of the battery connector according to the cell voltage provided by another embodiment of the present application;
图9是本申请一个实施例提供的根据电池电阻对电池连接器的安装状态进行检测的流程图;FIG. 9 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by an embodiment of the present application;
图10是本申请另一个实施例提供的根据电池电阻对电池连接器的安装状态进行检测的流程图;Fig. 10 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by another embodiment of the present application;
图11是本申请一个实施例提供的根据电池温度对电池连接器的安装状态进行检测的流程图;Fig. 11 is a flow chart of detecting the installation state of the battery connector according to the battery temperature provided by an embodiment of the present application;
图12是本申请另一个实施例提供的根据电池温度对电池连接器的安装状态进行检测的流程图;Fig. 12 is a flow chart of detecting the installation state of the battery connector according to the battery temperature provided by another embodiment of the present application;
图13是本申请一个实施例提供的根据电量计信息对电池连接器的安装状态进行检测的流程图;Fig. 13 is a flow chart of detecting the installation state of the battery connector according to the fuel gauge information provided by one embodiment of the present application;
图14是本申请另一个实施例提供的根据电量计信息对电池连接器的安装状态进行检测的流程图;Fig. 14 is a flow chart of detecting the installation state of the battery connector according to the fuel gauge information provided by another embodiment of the present application;
图15是本申请一个实施例提供的根据采样电流对电池连接器的安装状态进行检测的流程图;Fig. 15 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by one embodiment of the present application;
图16是本申请另一个实施例提供的根据采样电流对电池连接器的安装状态进行检测的流程图;Fig. 16 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by another embodiment of the present application;
图17是本申请一个实施例提供的生成提示信息的流程图;Fig. 17 is a flow chart of generating prompt information provided by an embodiment of the present application;
图18是本申请另一个实施例提供的生成提示信息的流程图。Fig. 18 is a flow chart of generating prompt information provided by another embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申 请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书、权利要求书或上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it can be executed in a different order than the module division in the device or the flowchart in the flowchart. steps shown or described. The terms "first", "second" and the like in the specification, claims or the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence.
在一些情形下,目前的智能终端通常使用内置电池,电池通过电池连接器与智能终端的主板相连,在充电时充电芯片输出电流通过电池连接器进入电池,在放电时电池通过电池连接器输出电流给整个系统供电。目前常见的是使用一个电池连接器将电池与智能终端的主板相连,如果电池连接器没有扣好,则会造成无法给电池充电以及电池无法给系统供电的情况,而目前对于单个电池连接器的常规检测方法是检测电池的充放电引脚是否是正常的,如果在正常范围内,则认为电池连接正常,否则认为电池没有接好。In some cases, the current smart terminal usually uses a built-in battery. The battery is connected to the main board of the smart terminal through the battery connector. When charging, the output current of the charging chip enters the battery through the battery connector, and the battery outputs current through the battery connector when discharging. power the entire system. At present, it is common to use a battery connector to connect the battery to the main board of the smart terminal. If the battery connector is not fastened, it will cause the situation that the battery cannot be charged and the battery cannot supply power to the system. Currently, for a single battery connector The conventional detection method is to detect whether the charging and discharging pins of the battery are normal. If it is within the normal range, it is considered that the battery is connected normally, otherwise it is considered that the battery is not connected properly.
但是,为了提高智能终端的充电功率和充电速度,市面上推出了同时使用多个电池连接器的情况。在使用多个电池连接器的情况下,即使当不是所有电池连接器都扣好时,都可能实现充电和放电,但是会对实际充电和放电效果造成影响。因此,若采用单个电池连接器的常规检测方法来检测多个电池连接器的安装状态,则无法保证多个电池连接器是全部扣好的。However, in order to increase the charging power and charging speed of smart terminals, the market has introduced the use of multiple battery connectors at the same time. In cases where multiple battery connectors are used, charging and discharging may be possible even when not all battery connectors are snapped in place, but there will be an impact on the actual charging and discharging effect. Therefore, if the conventional detection method of a single battery connector is used to detect the installation status of multiple battery connectors, it cannot be guaranteed that all the multiple battery connectors are fastened.
基于上述情况,本申请实施例提供了一种电池连接器状态检测方法、控制器、终端设备和计算机可读存储介质,其中,电池连接器状态检测方法应用于控制器,控制器连接至充放电组件,充放电组件包括电池和多个电池连接器,每个电池连接器均设置有引脚,控制器通过引脚连接至电池;基于上述结构,上述电池连接器状态检测方法包括但不限于如下步骤:对于每个电池连接器,通过引脚获取充放电组件的当前状态参数;比较当前状态参数和预设状态参数,根据比较结果确定每个电池连接器的安装状态。根据本申请实施例的技术方案,本申请实施例可以预先对各个电池连接器的引脚进行合理定义得到该引脚对应的预设状态参数,接着通过各个电池连接器的引脚获取充放电组件的当前状态参数,然后将当前状态参数和预设状态参数进行比较,根据比较结果判断当前状态参数是否满足预期以判断各个电池连接器的引脚是否接好,从而进一步确认各个电池连接器是否安装在位。因此,本申请实施例能够解决在同时使用多个电池连接器的情况下,对每个电池连接器的安装状态进行检测,以保证多个电池连接器均是全部扣好的。Based on the above situation, an embodiment of the present application provides a battery connector state detection method, a controller, a terminal device and a computer-readable storage medium, wherein the battery connector state detection method is applied to the controller, and the controller is connected to the charging and discharging Components, charging and discharging components include a battery and a plurality of battery connectors, each battery connector is provided with pins, and the controller is connected to the battery through the pins; based on the above structure, the above battery connector state detection method includes but is not limited to the following Steps: For each battery connector, obtain the current state parameters of the charging and discharging components through pins; compare the current state parameters with the preset state parameters, and determine the installation state of each battery connector according to the comparison results. According to the technical solution of the embodiment of the present application, the embodiment of the present application can reasonably define the pins of each battery connector in advance to obtain the preset state parameters corresponding to the pins, and then obtain the charging and discharging components through the pins of each battery connector Then compare the current state parameters with the preset state parameters, and judge whether the current state parameters meet the expectations according to the comparison results to judge whether the pins of each battery connector are connected well, so as to further confirm whether each battery connector is installed. reign. Therefore, the embodiment of the present application can solve the problem of detecting the installation status of each battery connector in the case of using multiple battery connectors at the same time, so as to ensure that all the multiple battery connectors are fastened.
下面结合附图,对本申请实施例作进一步阐述。The embodiments of the present application will be further described below in conjunction with the accompanying drawings.
如图1所示,图1是本申请一个实施例提供的用于执行电池连接器状态检测方法的控制器110的示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a controller 110 provided by an embodiment of the present application for performing a method for detecting a state of a battery connector.
在图1的示例中,该控制器110设置有处理器111和存储器112,其中,处理器111和存储器112可以通过总线或者其他方式连接,图1中以通过总线连接为例。In the example shown in FIG. 1 , the controller 110 is provided with a processor 111 and a memory 112 , wherein the processor 111 and the memory 112 may be connected via a bus or in other ways. In FIG. 1 , connection via a bus is taken as an example.
存储器112作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器112可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器112可包括相对于处理器111远程设置的存储器112,这些远程存储器可以通过网络连接至该控制器110。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, the memory 112 can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory 112 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some implementations, the memory 112 may include a memory 112 remotely located relative to the processor 111 , and these remote memories may be connected to the controller 110 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
本领域技术人员可以理解的是,该控制器110可以应用于3G通信网络系统、LTE通信网络系统、5G通信网络系统以及后续演进的移动通信网络系统等,本实施例对此并不作具体限定。Those skilled in the art can understand that the controller 110 can be applied to 3G communication network systems, LTE communication network systems, 5G communication network systems and subsequent evolved mobile communication network systems, etc., which is not specifically limited in this embodiment.
本领域技术人员可以理解的是,图1中示出的控制器110并不构成对本申请实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the controller 110 shown in FIG. 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine certain components, or have different Part placement.
在图1所示的控制器110中,处理器111可以调用储存在存储器112中的电池连接器状态检测程序,从而执行电池连接器状态检测方法。In the controller 110 shown in FIG. 1 , the processor 111 can call the battery connector state detection program stored in the memory 112 to execute the battery connector state detection method.
基于上述控制器110,下面提出本申请的终端设备的各个实施例。Based on the above controller 110, various embodiments of the terminal device of the present application are proposed below.
如图2所示,图2是本申请一个实施例提供的终端设备中主机、电池连接器和电池之间的连接关系示意图。As shown in FIG. 2 , FIG. 2 is a schematic diagram of a connection relationship among a host, a battery connector, and a battery in a terminal device provided by an embodiment of the present application.
在图2的示例中,终端设备包括有主机100、电池200和多个电池连接器300,其中,电池200通过电池连接器300与终端设备的主机100相连接,并且电池200与主机100相连的电池连接器300的数量为多个。具体地,电池200可以通过电池连接器300给主机100供电,主机100也可以通过电池连接器300检查电池200的状态。In the example of FIG. 2 , the terminal device includes a host 100, a battery 200 and a plurality of battery connectors 300, wherein the battery 200 is connected to the host 100 of the terminal device through the battery connector 300, and the battery 200 is connected to the host 100. There are multiple battery connectors 300 . Specifically, the battery 200 can supply power to the host 100 through the battery connector 300 , and the host 100 can also check the status of the battery 200 through the battery connector 300 .
可以理解的是,图2中所示的主机100可以包括但不限于图1中所示的控制器110。It can be understood that the host 100 shown in FIG. 2 may include but not limited to the controller 110 shown in FIG. 1 .
另外,可以理解的是,关于图2中所示的电池200,可以为内置式电池,也可以为可拆卸式电池。In addition, it can be understood that the battery 200 shown in FIG. 2 may be a built-in battery or a detachable battery.
基于上述图2中的主机、电池连接器和电池之间的连接关系,下面提出本申请的在不同数量电池连接器的情况下各个电池连接器的引脚分布的各个实施例。Based on the connection relationship between the host, the battery connector and the battery in FIG. 2 above, various embodiments of the pin distribution of each battery connector in the case of different numbers of battery connectors of the present application are proposed below.
如图3所示,图3是本申请一个实施例提供的当采用两个电池连接器时各个电池连接器的引脚示意图。具体地,图3中的第一个电池连接器包括有VABTT PIN脚、VSNS PIN脚、ID PIN脚和GND PIN脚,其中,第一个电池连接器中各个PIN脚的定义和用途分别如下:As shown in FIG. 3 , FIG. 3 is a schematic diagram of pins of each battery connector provided by an embodiment of the present application when two battery connectors are used. Specifically, the first battery connector in Figure 3 includes VABTT PIN pins, VSNS PIN pins, ID PIN pins, and GND PIN pins. The definitions and uses of each PIN pin in the first battery connector are as follows:
VABTT PIN脚:电池可以通过该PIN脚给主机供电,以及主机可以通过该PIN脚给电池充电。VABTT PIN pin: The battery can supply power to the host through this PIN pin, and the host can charge the battery through this PIN pin.
VSNS PIN脚:该PIN脚接入至电池的电芯内部,通过该PIN脚可以获取电池的电芯的真实电压。VSNS PIN pin: This PIN pin is connected to the inside of the battery cell, and the real voltage of the battery cell can be obtained through this PIN pin.
ID PIN脚:实际上是一个电阻,是电池的唯一标识,同一个终端设备可以使用不同型号的电池,不同型号的电池使用不同的电池ID,因此电池ID可以用于区分不同的电池,但是电池ID的阻值可以固定在一定的范围内,当实际读取的电池ID过大或者过小,则可以认为电池异常。ID PIN pin: It is actually a resistor, which is the unique identification of the battery. The same terminal device can use different types of batteries, and different types of batteries use different battery IDs, so the battery ID can be used to distinguish different batteries, but the battery The resistance value of the ID can be fixed within a certain range. When the actually read battery ID is too large or too small, it can be considered that the battery is abnormal.
GND PIN脚:该PIN脚接地,用于配合检测电压以及电阻等。GND PIN pin: This PIN pin is grounded, which is used to cooperate with the detection voltage and resistance.
另外,图3中的第二个电池连接器包括有VABTT PIN脚、I2C PIN脚、THERM PIN脚和GND PIN脚,其中,第二个电池连接器中各个PIN脚的定义和用途分别如下:In addition, the second battery connector in Figure 3 includes VABTT PIN pins, I2C PIN pins, THERM PIN pins, and GND PIN pins. The definitions and uses of each PIN pin in the second battery connector are as follows:
VBATT PIN脚:电池可以通过该PIN脚给主机供电,以及主机可以通过该PIN脚给电池充电。可以理解的是,第二个电池连接器中的VBATT PIN脚和第一个电池连接器中的VBATT PIN脚的功能一致。VBATT PIN pin: The battery can supply power to the host through this PIN pin, and the host can charge the battery through this PIN pin. It can be understood that the VBATT PIN in the second battery connector has the same function as the VBATT PIN in the first battery connector.
I2C PIN脚:该PIN脚是对于使用了电池电量计时,主机与电池电量计通讯的PIN脚,通过该PIN脚可以实现电池信息的读取。I2C PIN pin: This PIN pin is the PIN pin for communication between the host and the battery fuel gauge when the battery gauge is used, and the battery information can be read through this PIN pin.
THERM PIN脚:用于检测电池温度的热敏电阻,在不同的温度下,其阻值会有变化。由 于正常情况下的温度是在一定的范围内的,因此当热敏电阻的阻值超出这个范围时,则可以认为电池异常。THERM PIN pin: The thermistor used to detect the battery temperature, its resistance will change at different temperatures. Since the temperature under normal conditions is within a certain range, when the resistance of the thermistor exceeds this range, it can be considered that the battery is abnormal.
GND PIN脚:该PIN脚接地,用于配合检测电压以及电阻等。可以理解的是,第二个电池连接器中的GND PIN脚和第一个电池连接器中的GND PIN脚的功能一致。GND PIN pin: This PIN pin is grounded, which is used to cooperate with the detection voltage and resistance. Understandably, the GND PIN in the second battery connector has the same function as the GND PIN in the first battery connector.
如图4所示,图4是本申请一个实施例提供的当采用三个电池连接器时各个电池连接器的引脚示意图。As shown in FIG. 4 , FIG. 4 is a schematic diagram of pins of each battery connector provided by an embodiment of the present application when three battery connectors are used.
图4中的第一个电池连接器包括有VABTT PIN脚、VSNS PIN脚、ID PIN脚和GND PIN脚,需要说明的是,图4中第一个电池连接器中各个PIN脚的定义和用途可以参照图3中第一个电池连接器中对应PIN脚的定义和用途。The first battery connector in Figure 4 includes VABTT PIN, VSNS PIN, ID PIN and GND PIN. It should be noted that the definitions and uses of each PIN in the first battery connector in Figure 4 You can refer to the definition and usage of the corresponding PIN in the first battery connector in Figure 3.
另外,图4中的第二个电池连接器包括有VABTT PIN脚、THERM PIN脚和GND PIN脚,需要说明的是,图4中第二个电池连接器中各个PIN脚的定义和用途可以参照图3中第二个电池连接器中对应PIN脚的定义和用途。In addition, the second battery connector in Figure 4 includes VABTT PIN pins, THERM PIN pins and GND PIN pins. It should be noted that the definition and use of each PIN pin in the second battery connector in Figure 4 can be referred to The definition and purpose of the corresponding PIN pin in the second battery connector in Figure 3.
另外,图4中的第三个电池连接器包括有VABTT PIN脚、I2C PIN脚和GND PIN脚,需要说明的是,图4中第三个电池连接器中各个PIN脚的定义和用途可以参照图3中第二个电池连接器中对应PIN脚的定义和用途。In addition, the third battery connector in Figure 4 includes VABTT PIN pins, I2C PIN pins and GND PIN pins. It should be noted that the definition and use of each PIN pin in the third battery connector in Figure 4 can be referred to The definition and purpose of the corresponding PIN pin in the second battery connector in Figure 3.
值得注意的是,由图3和图4可知,每个电池连接器的引脚均包括被设置为对电池进行充放电的第一引脚,即VABTT PIN脚;另外,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,即VSNS PIN脚、ID PIN脚、THERM PIN脚和I2C PIN脚,并且不同的电池连接器的第二引脚所获取的电池参数的类型不同,即VSNS PIN脚、ID PIN脚、THERM PIN脚和I2C PIN脚中的任意一个引脚只设置在某一个电池连接器上。It is worth noting that, as can be seen from Figure 3 and Figure 4, the pins of each battery connector include the first pin that is set to charge and discharge the battery, that is, the VABTT PIN pin; in addition, the pins of each battery connector The pins all include the second pin set to obtain the battery parameters, that is, the VSNS PIN pin, the ID PIN pin, the THERM PIN pin and the I2C PIN pin, and the battery parameters obtained by the second pins of different battery connectors The types are different, that is, any one of the VSNS PIN, ID PIN, THERM PIN and I2C PIN is only set on a certain battery connector.
需要说明的是,对于支持大功率充电的终端设备来说,配置多个电池连接器可以对进入电池的电流进行分流,相当于增大了导线的横截面积。但是如果有一个电池连接器没有扣好,电池仍然是可以充电和放电的,只是这种情况会影响实际的快充效果,造成不好的用户体验,所以本申请实施例需要检测到这种异常,并对用户进行提醒。本申请实施例通过对多个电池连接器上不同功能的PIN脚的合理配置,就可以通过检测PIN脚的状态是否符合预期来判断当前PIN脚所在的电池连接器是否扣好。It should be noted that, for a terminal device that supports high-power charging, configuring multiple battery connectors can shunt the current entering the battery, which is equivalent to increasing the cross-sectional area of the wire. However, if a battery connector is not fastened, the battery can still be charged and discharged, but this situation will affect the actual fast charging effect and cause a bad user experience, so this embodiment of the application needs to detect this abnormality , and remind the user. In the embodiment of the present application, by rationally configuring PIN pins with different functions on multiple battery connectors, it is possible to determine whether the battery connector where the current PIN pin is located is fastened by detecting whether the state of the PIN pin meets expectations.
基于上述图1至图4,下面提出本申请的电池连接器状态检测方法的各个实施例。Based on the above-mentioned FIGS. 1 to 4 , various embodiments of the method for detecting the state of the battery connector of the present application are proposed below.
如图5所示,图5是本申请一个实施例提供的电池连接器状态检测方法的流程图;该电池连接器状态检测方法应用于控制器,控制器连接至充放电组件,充放电组件包括电池和多个电池连接器,每个电池连接器均设置有引脚,控制器通过引脚连接至电池,该电池连接器状态检测方法包括但不限于有步骤S100和步骤S200。As shown in Figure 5, Figure 5 is a flow chart of a battery connector state detection method provided by an embodiment of the present application; the battery connector state detection method is applied to a controller, the controller is connected to the charging and discharging assembly, and the charging and discharging assembly includes A battery and a plurality of battery connectors, each battery connector is provided with pins, and the controller is connected to the battery through the pins. The battery connector state detection method includes but not limited to step S100 and step S200.
步骤S100、对于每个电池连接器,通过引脚获取充放电组件的当前状态参数;Step S100, for each battery connector, obtain the current state parameters of the charging and discharging components through pins;
步骤S200、比较当前状态参数和预设状态参数,根据比较结果确定每个电池连接器的安装状态。Step S200, comparing the current state parameter with the preset state parameter, and determining the installation state of each battery connector according to the comparison result.
对于每个电池连接器,控制器会通过引脚获取充放电组件的当前状态参数,接着控制器会对当前状态参数和预设状态参数进行比较,得到比较结果,并根据比较结果确定每个电池连接器的安装状态。根据本申请实施例的技术方案,本申请实施例可以预先对各个电池连接器的引脚进行合理定义得到该引脚对应的预设状态参数,接着通过各个电池连接器的引脚获取充放电组件的当前状态参数,然后将当前状态参数和预设状态参数进行比较,根据比较结 果判断当前状态参数是否满足预期以判断各个电池连接器的引脚是否接好,从而进一步确认各个电池连接器是否安装在位。因此,本申请实施例能够解决在同时使用多个电池连接器的情况下,对每个电池连接器的安装状态进行检测,以保证多个电池连接器均是全部扣好的。For each battery connector, the controller will obtain the current state parameters of the charging and discharging components through the pins, and then the controller will compare the current state parameters with the preset state parameters to obtain the comparison result, and determine each battery according to the comparison result. The installation state of the connector. According to the technical solution of the embodiment of the present application, the embodiment of the present application can reasonably define the pins of each battery connector in advance to obtain the preset state parameters corresponding to the pins, and then obtain the charging and discharging components through the pins of each battery connector Then compare the current state parameters with the preset state parameters, and judge whether the current state parameters meet the expectations according to the comparison results to judge whether the pins of each battery connector are connected well, so as to further confirm whether each battery connector is installed. reign. Therefore, the embodiment of the present application can solve the problem of detecting the installation status of each battery connector in the case of using multiple battery connectors at the same time, so as to ensure that all the multiple battery connectors are fastened.
另外,如图6所示,图6是本申请一个实施例提供的在连接外部电源的情况下对充放电引脚进行检测的流程图。具体地,每个电池连接器的引脚均包括被设置为对电池进行充放电的第一引脚,即图3和图4中的VABTT PIN脚,对应地,所获取的充放电组件的当前状态参数可以为在连接外部电源的情况下第一引脚的引脚电压;对此,关于上述步骤S200,包括但不限于有步骤S300。In addition, as shown in FIG. 6 , FIG. 6 is a flow chart of detecting the charging and discharging pins provided by an embodiment of the present application when an external power supply is connected. Specifically, the pins of each battery connector include the first pin set to charge and discharge the battery, that is, the VABTT PIN pin in Figure 3 and Figure 4, and correspondingly, the current The state parameter may be the pin voltage of the first pin when an external power supply is connected; for this, the above step S200 includes but is not limited to step S300.
步骤S300、当所有电池连接器的第一引脚的引脚电压均为预设电压,确定所有电池连接器均处于安装脱位状态,其中,预设电压为零。Step S300 , when the pin voltages of the first pins of all battery connectors are at the preset voltage, it is determined that all the battery connectors are in the installation and dislocation state, wherein the preset voltage is zero.
示例性地,以图3采用两个电池连接器为例,如果两个电池连接器都没有扣好,那么主机就会缺少电池的供电,也就是第一个电池连接器和第二个电池连接器上的VABTT PIN脚上的引脚电压均为零,在没有外部电源输入的情况下终端设备本身就无法开机;当插入充电器的时候,主机会得到电能,接着主机会通过每个电池连接器的第一引脚获取第一引脚的引脚电压,当所有电池连接器的第一引脚的引脚电压均为零时,证明所有电池连接器均没有安装到位。最后,控制器会控制终端设备进行提示,以提醒用户检查电池连接器是否安装正确或者检测是否安装有电池,并暂停充电功能。Exemplarily, take two battery connectors in Figure 3 as an example. If the two battery connectors are not fastened, the host will lack battery power, that is, the first battery connector is connected to the second battery The pin voltage on the VABTT PIN pin on the device is zero, and the terminal device itself cannot be turned on without external power input; when the charger is plugged in, the host will receive power, and then the host will connect through each battery. When the voltage of the first pins of all battery connectors is zero, it proves that all battery connectors are not installed in place. Finally, the controller will control the terminal device to prompt, so as to remind the user to check whether the battery connector is installed correctly or detect whether a battery is installed, and suspend the charging function.
另外,如图7和图8所示,图7是本申请一个实施例提供的根据电芯电压对电池连接器的安装状态进行检测的流程图,图8是本申请另一个实施例提供的根据电芯电压对电池连接器的安装状态进行检测的流程图。In addition, as shown in Figure 7 and Figure 8, Figure 7 is a flow chart for detecting the installation state of the battery connector according to the cell voltage provided by one embodiment of the present application, and Figure 8 is a flow chart provided by another embodiment of the present application. Flowchart for detection of cell voltage to the installation state of the battery connector.
如图7所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第二引脚为被设置为获取电池的电芯电压的引脚,即当该第二引脚为图3和图4中的VSNS PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电芯电压;对此,关于上述步骤S200,包括但不限于有步骤S410。As shown in FIG. 7 , the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the cell voltage of the battery, that is, when The second pin is the VSNS PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the cell voltage of the battery; for this, regarding the above-mentioned step S200, including but not limited to: Step S410.
步骤S410、当电芯电压位于预设电压范围内,确定与第二引脚对应的电池连接器处于安装在位状态。Step S410, when the cell voltage is within the preset voltage range, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
如图8所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第二引脚为被设置为获取电池的电芯电压的引脚,即当该第二引脚为图3和图4中的VSNS PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电芯电压;对此,关于上述步骤S200,包括但不限于有步骤S420。As shown in FIG. 8 , the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the cell voltage of the battery, that is, when The second pin is the VSNS PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the cell voltage of the battery; for this, regarding the above-mentioned step S200, including but not limited to: Step S420.
步骤S420、当电芯电压位于预设电压范围外,确定与第二引脚对应的电池连接器处于安装脱位状态。Step S420, when the voltage of the battery cell is outside the preset voltage range, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
基于上述图7和图8中的方法步骤,示例性地,以图3采用两个电池连接器为例,由于VSNS PIN脚设置在第一个电池连接器,当控制器通过VSNS PIN脚获取到的电芯电压位于预设电压范围内时,则表明第一个电池连接器安装到位;当控制器通过VSNS PIN脚获取到的电芯电压位于预设电压范围外时,则表明第一个电池连接器安装脱位,即安装没有到位。Based on the method steps in the above-mentioned Figures 7 and 8, as an example, two battery connectors are used in Figure 3 as an example, since the VSNS PIN pin is set on the first battery connector, when the controller obtains the battery through the VSNS PIN pin When the cell voltage of the battery is within the preset voltage range, it indicates that the first battery connector is installed in place; when the cell voltage obtained by the controller through the VSNS PIN pin is outside the preset voltage range, it indicates that the first battery The connector is dislocated, that is, the installation is not in place.
另外,如图9和图10所示,图9是本申请一个实施例提供的根据电池电阻对电池连接器的安装状态进行检测的流程图,图10是本申请另一个实施例提供的根据电池电阻对电池连接器的安装状态进行检测的流程图。In addition, as shown in Figure 9 and Figure 10, Figure 9 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by one embodiment of the present application, and Figure 10 is a flow chart of detecting the installation state of the battery connector according to the battery resistance provided by another embodiment of the present application. Flowchart for detecting the installation state of the battery connector by a resistor.
如图9所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第二引脚为被设置为获取电池的电池电阻的引脚,即当该第二引脚为图3和图4中的ID PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电池电阻;对此,关于上述步骤S200,包括但不限于有步骤S510。As shown in FIG. 9 , the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the battery resistance of the battery, that is, when the The second pin is the ID PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery resistance of the battery; for this, about the above-mentioned step S200, including but not limited to step S510 .
步骤S510、当电池电阻位于预设电阻范围内,确定与第二引脚对应的电池连接器处于安装在位状态。Step S510 , when the battery resistance is within the preset resistance range, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
如图10所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第二引脚为被设置为获取电池的电池电阻的引脚,即当该第二引脚为图3和图4中的ID PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电池电阻;对此,关于上述步骤S200,包括但不限于有步骤S520。As shown in FIG. 10 , the pins of each battery connector include a second pin configured to obtain battery parameters, when the second pin is a pin configured to obtain the battery resistance of the battery, that is, when the The second pin is the ID PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery resistance of the battery; for this, about the above-mentioned step S200, including but not limited to step S520 .
步骤S520、当电池电阻位于预设电阻范围外,确定与第二引脚对应的电池连接器处于安装脱位状态。Step S520, when the battery resistance is outside the preset resistance range, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
基于上述图9和图10中的方法步骤,示例性地,以图3采用两个电池连接器为例,由于ID PIN脚设置在第一个电池连接器,当控制器通过ID PIN脚获取到的电池电阻位于预设电阻范围内时,则表明第一个电池连接器安装到位;当控制器通过ID PIN脚获取到的电池电阻位于预设电阻范围外时,则表明第一个电池连接器安装脱位,即安装没有到位。Based on the method steps in the above-mentioned Fig. 9 and Fig. 10, for example, two battery connectors are used in Fig. 3 as an example, since the ID PIN pin is set on the first battery connector, when the controller obtains the When the battery resistance of the battery is within the preset resistance range, it indicates that the first battery connector is installed in place; when the battery resistance obtained by the controller through the ID PIN pin is outside the preset resistance range, it indicates that the first battery connector The installation is dislocated, that is, the installation is not in place.
另外,如图11和图12所示,图11是本申请一个实施例提供的根据电池温度对电池连接器的安装状态进行检测的流程图,图12是本申请另一个实施例提供的根据电池温度对电池连接器的安装状态进行检测的流程图。In addition, as shown in Figure 11 and Figure 12, Figure 11 is a flow chart of detecting the installation state of the battery connector according to the battery temperature provided by one embodiment of the present application, and Figure 12 is a flow chart of detecting the installation state of the battery connector according to another embodiment of the present application. Flowchart for temperature detection of battery connector installation status.
如图11所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第二引脚为被设置为获取电池的电池温度的引脚,即当该第二引脚为图3和图4中的THERM PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电池温度;对此,关于上述步骤S200,包括但不限于有步骤S610。As shown in FIG. 11 , the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the battery temperature of the battery, that is, when the The second pin is the THERM PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery temperature of the battery; for this, about the above-mentioned step S200, including but not limited to step S610 .
步骤S610、当电池温度位于预设温度范围内,确定与第二引脚对应的电池连接器处于安装在位状态。Step S610 , when the battery temperature is within the preset temperature range, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
如图12所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第二引脚为被设置为获取电池的电池温度的引脚,即当该第二引脚为图3和图4中的THERM PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电池温度;对此,关于上述步骤S200,包括但不限于有步骤S620。As shown in FIG. 12 , the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the battery temperature of the battery, that is, when the The second pin is the THERM PIN pin among Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the battery temperature of the battery; for this, about the above step S200, including but not limited to step S620 .
步骤S620、当电池温度位于预设温度范围外,确定与第二引脚对应的电池连接器处于安装脱位状态。Step S620, when the temperature of the battery is outside the preset temperature range, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
基于上述图11和图12中的方法步骤,示例性地,以图3采用两个电池连接器为例,由于THERM PIN脚设置在第二个电池连接器,当控制器通过THERM PIN脚获取到的电池温度位于预设温度范围内时,则表明第二个电池连接器安装到位;当控制器通过THERM PIN脚获取到的电池温度位于预设温度范围外时,则表明第二个电池连接器安装脱位,即安装没有到位。Based on the above method steps in Figure 11 and Figure 12, for example, two battery connectors are used in Figure 3 as an example, since the THERM PIN pin is set on the second battery connector, when the controller obtains When the battery temperature of the battery is within the preset temperature range, it indicates that the second battery connector is installed in place; when the battery temperature obtained by the controller through the THERM PIN pin is outside the preset temperature range, it indicates that the second battery connector The installation is dislocated, that is, the installation is not in place.
另外,如图13和图14所示,图13是本申请一个实施例提供的根据电量计信息对电池连接器的安装状态进行检测的流程图,图14是本申请另一个实施例提供的根据电量计信息对电池连接器的安装状态进行检测的流程图。In addition, as shown in Figure 13 and Figure 14, Figure 13 is a flow chart of detecting the installation state of the battery connector according to the fuel gauge information provided by one embodiment of the present application, and Figure 14 is a flow chart provided by another embodiment of the present application. Flowchart for detection of battery connector installation status by fuel gauge information.
如图13所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第 二引脚为被设置为获取电池的电量计信息的引脚,即当该第二引脚为图3和图4中的I2C PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电量计信息;对此,关于上述步骤S200,包括但不限于有步骤S710。As shown in FIG. 13 , the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the fuel gauge information of the battery, that is, when The second pin is the I2C PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the fuel gauge information of the battery; for this, about the above step S200, including but not limited to: Step S710.
步骤S710、当获取到电池的电量计信息,确定与第二引脚对应的电池连接器处于安装在位状态。Step S710 , when the fuel gauge information of the battery is obtained, it is determined that the battery connector corresponding to the second pin is in a state of being installed.
如图14所示,每个电池连接器的引脚均包括被设置为获取电池参数的第二引脚,当该第二引脚为被设置为获取电池的电量计信息的引脚,即当该第二引脚为图3和图4中的I2C PIN脚,对应地,所获取的充放电组件的当前状态参数为电池的电量计信息;对此,关于上述步骤S200,包括但不限于有步骤S720。As shown in FIG. 14 , the pins of each battery connector include a second pin set to obtain battery parameters, when the second pin is set to obtain the fuel gauge information of the battery, that is, when The second pin is the I2C PIN pin in Fig. 3 and Fig. 4, and correspondingly, the current state parameter of the charging and discharging assembly obtained is the fuel gauge information of the battery; for this, about the above step S200, including but not limited to: Step S720.
步骤S720、当没有获取到电池的电量计信息,确定与第二引脚对应的电池连接器处于安装脱位状态。Step S720, when the fuel gauge information of the battery is not obtained, it is determined that the battery connector corresponding to the second pin is in a state of installation and dislocation.
基于上述图13和图14中的方法步骤,示例性地,以图3采用两个电池连接器为例,由于I2C PIN脚设置在第二个电池连接器,当控制器通过I2C PIN脚获取到的电量计信息时,则表明第二个电池连接器安装到位;当控制器通过I2C PIN脚没有获取到的电量计信息时,则表明第二个电池连接器安装脱位,即安装没有到位。Based on the above method steps in Figure 13 and Figure 14, for example, two battery connectors are used in Figure 3 as an example, since the I2C PIN pin is set on the second battery connector, when the controller obtains the battery through the I2C PIN pin When the fuel gauge information is displayed, it indicates that the second battery connector is installed in place; when the controller does not obtain the fuel gauge information through the I2C PIN pin, it indicates that the second battery connector is dislocated, that is, the installation is not in place.
基于上述图6至图14中的方法步骤,下面提出本申请的电池连接器状态检测方法的总体实施例。示例性地,以图3采用两个电池连接器为例,包括但不限于如下几种情况:Based on the above method steps in FIG. 6 to FIG. 14 , an overall embodiment of the method for detecting the state of the battery connector of the present application is proposed below. Exemplarily, two battery connectors are used in Figure 3 as an example, including but not limited to the following situations:
第一种情况,如果两个电池连接器都没有扣好,那么主机就会缺少电池的供电,也就是第一个电池连接器和第二个电池连接器上的VABTT PIN脚上的引脚电压均为零,在没有外部电源输入的情况下终端设备本身就无法开机;当插入充电器的时候,主机会得到电能,接着主机会通过每个电池连接器的第一引脚获取第一引脚的引脚电压,当所有电池连接器的第一引脚的引脚电压均为零时,证明所有电池连接器均没有安装到位。最后,控制器会控制终端设备进行提示,以提醒用户检查电池连接器是否安装正确或者检测是否安装有电池,并暂停充电功能。当然,对于第一种情况,本申请实施例也可以通过上述VSNS PIN脚、ID PIN脚、THERM PIN脚和I2C PIN脚的检测方法来进行检测。In the first case, if the two battery connectors are not fastened, the host will lack battery power, that is, the pin voltage on the VABTT PIN on the first battery connector and the second battery connector. are all zero, the terminal device itself cannot be turned on without external power input; when plugged into the charger, the host will get power, and then the host will get the first pin through the first pin of each battery connector When the pin voltage of the first pin of all battery connectors is zero, it proves that all battery connectors are not installed in place. Finally, the controller will control the terminal device to prompt, so as to remind the user to check whether the battery connector is installed correctly or detect whether a battery is installed, and suspend the charging function. Of course, for the first case, the embodiment of the present application can also detect through the detection methods of the above-mentioned VSNS PIN pin, ID PIN pin, THERM PIN pin and I2C PIN pin.
第二种情况,如果第一个电池连接器没有扣好,第二个电池连接器是扣好的,那么电池可以给主机供电,单纯从这个无法判断电池未扣好以及哪个电池连接器没有扣好。对此,本申请实施例可以检测到电芯的电压VSNS为0,并且电池ID的阻值为无穷大(相当于开路),而THERM热敏电阻的阻值对应的温度在正常范围内,通过I2C可以读取电量计的相关信息(例如Chip ID),那么就可以判断出是第一个电池连接器未扣好,对此,在这种情况下可以暂停充电或者只允许小功率充电。In the second case, if the first battery connector is not fastened and the second battery connector is fastened, then the battery can supply power to the host. It is impossible to judge whether the battery is not fastened or which battery connector is not fastened simply from this. it is good. In this regard, the embodiment of the present application can detect that the voltage VSNS of the battery cell is 0, and the resistance value of the battery ID is infinite (equivalent to an open circuit), and the temperature corresponding to the resistance value of the THERM thermistor is within the normal range, through I2C If you can read the relevant information of the fuel gauge (such as Chip ID), then you can judge that the first battery connector is not fastened. In this case, you can suspend charging or only allow low-power charging.
第三种情况,如果第一个电池连接器是扣好的,第二个电池连接器没有扣好,那么电池也是可以给主机供电,单纯从这个无法判断电池未扣好以及哪个电池连接器没有扣好。对此,本申请实施例可以检测到电芯的电压VSNS在正常电压范围内(如2.8V至4.5V之间),电池的ID的阻值为预设的范围(如10KΩ至1000KΩ),而THERM热敏电阻的阻值为无穷大(对应的温度是一个非正常值,如低于-100°或者高于100°),通过I2C与电池内电量计通讯无反馈,那么就可以判断出是第二个电池连接器未扣好,对此,在这种情况下可以暂停充电或者只允许小功率充电。In the third case, if the first battery connector is fastened and the second battery connector is not fastened, then the battery can also supply power to the host. It is impossible to judge whether the battery is not fastened or which battery connector is not. Buckle up. In this regard, the embodiment of the present application can detect that the voltage VSNS of the cell is within the normal voltage range (such as between 2.8V and 4.5V), and the resistance value of the ID of the battery is within a preset range (such as 10KΩ to 1000KΩ), and The resistance of the THERM thermistor is infinite (the corresponding temperature is an abnormal value, such as lower than -100° or higher than 100°), and there is no feedback through I2C communication with the fuel gauge in the battery, then it can be judged that it is the first The two battery connectors are not fastened. In this case, the charging can be suspended or only allowed to charge at a low power.
第四种情况,如果两个电池连接器都是扣好的,那么电池可以正常给主机供电,也可以 检测到电芯的电压VSNS在正常电压范围内(如2.8V至4.5V之间),电池的ID的阻值为预设的范围(如10KΩ至1000KΩ),THERM热敏电阻的阻值对应的温度在正常范围内(如-20°至60°),通过I2C可以读取电量计的相关信息(如Chip ID),也就是说所有的PIN脚读取到的信息均符合预期,对此就可以判断两个电池连接器是扣好的。In the fourth case, if the two battery connectors are fastened, the battery can normally supply power to the host, and it can also be detected that the voltage VSNS of the battery cell is within the normal voltage range (such as between 2.8V and 4.5V). The resistance of the battery ID is within a preset range (such as 10KΩ to 1000KΩ), the temperature corresponding to the resistance of the THERM thermistor is within the normal range (such as -20° to 60°), and the fuel gauge can be read through I2C Relevant information (such as Chip ID), that is to say, all the information read by the PIN pins are in line with expectations, so it can be judged that the two battery connectors are fastened.
第五种情况,电池在过放没有电的情况下,VBATT上的输出电压为0,这种情况下无法给主机供电。但是在插入外部电源的情况下,可以检测到电芯的电压VSNS在正常电压范围内(如2.8V至4.5V之间),电池的ID的阻值为预设的范围(如10KΩ至1000KΩ),THERM热敏电阻的阻值对应的温度在正常范围内(如-20°至60°),通过I2C可以读取电量计的相关信息(如Chip ID),也就是说所有的PIN脚读取到的信息均符合预期,对此就可以判断两个电池连接器是扣好的并允许充电。In the fifth case, when the battery is over-discharged and has no power, the output voltage on VBATT is 0, and the host cannot be powered in this case. But in the case of plugging in an external power supply, it can be detected that the voltage VSNS of the battery cell is within the normal voltage range (such as 2.8V to 4.5V), and the resistance of the battery ID is within a preset range (such as 10KΩ to 1000KΩ) , the temperature corresponding to the resistance of the THERM thermistor is within the normal range (such as -20° to 60°), and the relevant information of the fuel gauge (such as Chip ID) can be read through I2C, that is to say, all PIN pins can be read If the received information is in line with expectations, it can be judged that the two battery connectors are fastened and charging is allowed.
另外,如图15和图16所示,图15是本申请一个实施例提供的根据采样电流对电池连接器的安装状态进行检测的流程图,图16是本申请另一个实施例提供的根据采样电流对电池连接器的安装状态进行检测的流程图。In addition, as shown in Figure 15 and Figure 16, Figure 15 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by one embodiment of the present application, and Figure 16 is a flow chart of detecting the installation state of the battery connector according to the sampling current provided by another embodiment of the present application. Flowchart for current detection of the installation state of the battery connector.
如图15所示,充放电组件还包括多个采样电阻,采样电阻和电池连接器一一对应,采样电阻与引脚串联,对应地,所获取的充放电组件的当前状态参数为采样电阻的采样电流;对此,关于上述步骤S200,包括但不限于有步骤S810。As shown in Figure 15, the charging and discharging component also includes a plurality of sampling resistors, the sampling resistors correspond to the battery connectors one by one, and the sampling resistors are connected in series with the pins. Correspondingly, the obtained current state parameters of the charging and discharging components are Sampling the current; for this, the above step S200 includes but not limited to step S810.
步骤S810、当采样电流大于或等于预设电流,确定与采样电阻对应的电池连接器处于安装在位状态。Step S810 , when the sampling current is greater than or equal to the preset current, it is determined that the battery connector corresponding to the sampling resistor is installed in position.
如图16所示,充放电组件还包括多个采样电阻,采样电阻和电池连接器一一对应,采样电阻与引脚串联,对应地,所获取的充放电组件的当前状态参数为采样电阻的采样电流;对此,关于上述步骤S200,包括但不限于有步骤S820。As shown in Figure 16, the charging and discharging component also includes a plurality of sampling resistors, the sampling resistors correspond to the battery connectors one by one, and the sampling resistors are connected in series with the pins. Correspondingly, the obtained current state parameters of the charging and discharging components are Sampling the current; for this, the above step S200 includes but not limited to step S820.
步骤S820、当采样电流小于预设电流,确定与采样电阻对应的电池连接器处于安装脱位状态。Step S820, when the sampling current is less than the preset current, it is determined that the battery connector corresponding to the sampling resistor is in a state of installation and dislocation.
本申请实施例还可以通过检测充电时两个电池连接器上的电流差异来提前侦测电池连接器可能存在的潜在松动。当某个电池连接器的卡扣没有完全扣紧的情况下,未扣紧的电池连接器的VBATT接触阻抗会增大,那么分配给这个电池连接器的电流会减小,这样两个电池连接器才能维持相同的压差。当大电流充电时,这种情况就会造成多个电池连接器的优势变小,当所检测到这个差异超过我们预设的范围时,则认为电流偏小的电池连接器存在潜在的松动,可以提前提示用户及时处理。The embodiment of the present application can also detect potential looseness of the battery connector in advance by detecting the current difference between the two battery connectors during charging. When the buckle of a battery connector is not fully fastened, the VBATT contact impedance of the unfastened battery connector will increase, and the current allocated to this battery connector will decrease, so that the two batteries are connected to maintain the same differential pressure. When charging with a large current, this situation will cause the advantages of multiple battery connectors to become smaller. When the detected difference exceeds our preset range, it is considered that the battery connector with a relatively small current is potentially loose, which can be Prompt the user in advance to deal with it in a timely manner.
在这种情况下,在负载较大的时候,会由于虚连时接触阻抗较大,电压跌落比较严重的情况,进而造成充电缓慢或者是低电量时容易自动关机等异常情况,对此,本申请实施例可以增加硬件电路,在多个电池连接器的通路上串联采样电阻,这样就可以采样到每个电池连接器上实际传输的电流,如果某个通路上的电流值明显偏小,即小于预设电流,则可以认为这个电池连接器存在没有扣好的情况。In this case, when the load is heavy, the contact impedance will be large and the voltage drop will be serious due to the virtual connection, which will cause abnormal situations such as slow charging or automatic shutdown when the battery is low. In the embodiment of the application, a hardware circuit can be added, and sampling resistors are connected in series on the paths of multiple battery connectors, so that the current actually transmitted by each battery connector can be sampled. If the current value on a certain path is obviously small, that is If it is less than the preset current, it can be considered that the battery connector is not fastened.
另外,如图17和图18所示,图17是本申请一个实施例提供的生成提示信息的流程图,图18是本申请另一个实施例提供的生成提示信息的流程图。In addition, as shown in FIG. 17 and FIG. 18 , FIG. 17 is a flowchart of generating prompt information provided by one embodiment of the present application, and FIG. 18 is a flowchart of generating prompt information provided by another embodiment of the present application.
如图17所示,控制器还与显示屏幕通信,本申请实施例的电池连接器状态检测方法还包括但不限于有步骤S910。As shown in FIG. 17 , the controller also communicates with the display screen, and the method for detecting the state of the battery connector in the embodiment of the present application also includes but is not limited to step S910 .
步骤S910、当电池连接器处于安装脱位状态,向显示屏幕发送第一提示信息。Step S910, when the battery connector is in the state of installation and dislocation, sending a first prompt message to the display screen.
如图18所示,控制器还与扬声器通信,本申请实施例的电池连接器状态检测方法还包括但不限于有步骤S920。As shown in FIG. 18 , the controller also communicates with the speaker, and the method for detecting the state of the battery connector in the embodiment of the present application also includes but is not limited to step S920 .
步骤S920、当电池连接器处于安装脱位状态,向扬声器发送第二提示信息。Step S920, when the battery connector is in the state of installation and dislocation, sending a second prompt message to the speaker.
基于上述图17和图18中的方法步骤,本申请实施例可以通过显示屏幕显示的方式或者扬声器发声的方式来提示用户,示例性地,主机可以以合适的方式提示用户电池的状态,例如电池连接器未扣好,请联系售后。Based on the above method steps in Figure 17 and Figure 18, the embodiment of the present application can prompt the user by displaying on the screen or sounding from the speaker. For example, the host can prompt the user for the state of the battery in a suitable The connector is not fastened, please contact the after-sales service.
基于上述的电池连接器状态检测方法,下面提出本申请的控制器、终端设备和计算机可读存储介质的各个实施例。Based on the above battery connector state detection method, various embodiments of the controller, the terminal device and the computer-readable storage medium of the present application are proposed below.
另外,本申请的一个实施例提供了一种控制器,该控制器包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上述的检测方法。In addition, an embodiment of the present application provides a controller, which includes: a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the above-mentioned Detection method.
可以理解的是,处理器和存储器可以通过总线或者其他方式连接。It can be understood that the processor and the memory can be connected through a bus or in other ways.
需要说明的是,本实施例中的控制器,可以对应为如图1所示实施例中的控制器,两者属于相同的发明构思,因此两者具有相同的实现原理以及有益效果,此处不再详述。It should be noted that the controller in this embodiment can correspond to the controller in the embodiment shown in Figure 1, both of which belong to the same inventive concept, so they have the same realization principle and beneficial effect, here No more details.
实现上述实施例的检测方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例的电池连接器状态检测方法,例如,执行以上描述的图5至图18中的方法步骤。The non-transitory software programs and instructions required to realize the detection method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the battery connector state detection method of the above-mentioned embodiment is executed, for example, executing the above-described Fig. 5 to Method steps in Figure 18.
值得注意的是,本申请实施例的控制器的具体实施方式和技术效果,可对应参照上述电池连接器状态检测方法的具体实施方式和技术效果。It should be noted that, for the specific implementation manners and technical effects of the controller in the embodiment of the present application, reference may be made to the specific implementation manners and technical effects of the above battery connector state detection method.
另外,本申请的一个实施例提供了一种终端设备,该终端设备包括但不限于有上述的控制器。In addition, an embodiment of the present application provides a terminal device, where the terminal device includes but is not limited to the above-mentioned controller.
值得注意的是,由于本申请实施例的终端设备包括有上述的控制器,而上述的控制器能够执行上述的电池连接器状态检测方法,因此,本申请实施例的终端设备的具体实施方式和技术效果,可对应参照上述电池连接器状态检测方法的具体实施方式和技术效果。It is worth noting that since the terminal device in the embodiment of the present application includes the above-mentioned controller, and the above-mentioned controller can execute the above-mentioned method for detecting the state of the battery connector, therefore, the specific implementation manner of the terminal device in the embodiment of the present application and For technical effects, reference may be made to the specific implementation manners and technical effects of the above battery connector state detection method.
此外,本申请的一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,当计算机可执行指令用于执行上述的电池连接器状态检测方法,例如,执行以上描述的图5至图18中的方法步骤。In addition, an embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, when the computer-executable instructions are used to execute the above battery connector state detection method, for example , execute the method steps in FIG. 5 to FIG. 18 described above.
本申请实施例包括:本申请实施例的电池连接器状态检测方法应用于控制器,其中,所述控制器连接至充放电组件,所述充放电组件包括电池和多个电池连接器,每个所述电池连接器均设置有引脚,所述控制器通过所述引脚连接至所述电池;上述的电池连接器状态检测方法包括如下步骤:对于每个所述电池连接器,控制器通过所述引脚获取所述充放电组件的当前状态参数,接着控制器会对所述当前状态参数和预设状态参数进行比较,并根据比较结果确定每个所述电池连接器的安装状态。根据本申请实施例的技术方案,本申请实施例可以预先对各个电池连接器的引脚进行合理定义得到该引脚对应的预设状态参数,接着通过各个电池连接器的引脚获取充放电组件的当前状态参数,然后将当前状态参数和预设状态参数进行比较,根据比较结果判断当前状态参数是否满足预期以判断各个电池连接器的引脚是否接好,从而进一步确认各个电池连接器是否安装在位。因此,本申请实施例能够解决在同时使用多个电池连接器的情况下,对每个电池连接器的安装状态进行检测,以保证多个电池连接器均是全部扣好的。The embodiment of the present application includes: the battery connector state detection method of the embodiment of the present application is applied to the controller, wherein the controller is connected to the charging and discharging assembly, and the charging and discharging assembly includes a battery and a plurality of battery connectors, each The battery connectors are all provided with pins, and the controller is connected to the battery through the pins; the above-mentioned battery connector state detection method includes the following steps: for each of the battery connectors, the controller passes The pins obtain the current state parameters of the charging and discharging components, and then the controller compares the current state parameters with preset state parameters, and determines the installation state of each of the battery connectors according to the comparison result. According to the technical solution of the embodiment of the present application, the embodiment of the present application can reasonably define the pins of each battery connector in advance to obtain the preset state parameters corresponding to the pins, and then obtain the charging and discharging components through the pins of each battery connector Then compare the current state parameters with the preset state parameters, and judge whether the current state parameters meet the expectations according to the comparison results to judge whether the pins of each battery connector are connected well, so as to further confirm whether each battery connector is installed. reign. Therefore, the embodiment of the present application can solve the problem of detecting the installation status of each battery connector in the case of using multiple battery connectors at the same time, so as to ensure that all the multiple battery connectors are fastened.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包括计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those skilled in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware and an appropriate combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embody computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
以上是对本申请的若干实施方式进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请范围的共享条件下还可作出种种等同的变形或替换,这些等同的变形或替换均包括在本申请权利要求所限定的范围内。The above is a specific description of several embodiments of the present application, but the application is not limited to the above-mentioned embodiments, and those skilled in the art can also make various equivalent deformations or replacements without violating the sharing conditions of the scope of the application. These equivalent modifications or replacements are all within the scope defined by the claims of the present application.

Claims (13)

  1. 一种电池连接器状态检测方法,应用于控制器,所述控制器连接至充放电组件,所述充放电组件包括电池和多个电池连接器,每个所述电池连接器均设置有引脚,所述控制器通过所述引脚连接至所述电池,所述方法包括:A battery connector state detection method, applied to a controller, the controller is connected to a charge and discharge assembly, the charge and discharge assembly includes a battery and a plurality of battery connectors, and each of the battery connectors is provided with a pin , the controller is connected to the battery through the pin, the method includes:
    对于每个所述电池连接器,通过所述引脚获取所述充放电组件的当前状态参数;For each of the battery connectors, obtain the current state parameters of the charging and discharging components through the pins;
    比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态。Comparing the current state parameter with a preset state parameter, and determining the installation state of each of the battery connectors according to the comparison result.
  2. 根据权利要求1所述的方法,其中,每个所述电池连接器的所述引脚均包括被设置为对所述电池进行充放电的第一引脚,所述充放电组件的所述当前状态参数包括在连接外部电源的情况下所述第一引脚的引脚电压;对应地,所述比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态,包括:The method according to claim 1, wherein the pins of each of the battery connectors include a first pin configured to charge and discharge the battery, the current of the charge and discharge assembly The state parameter includes the pin voltage of the first pin when an external power supply is connected; correspondingly, the comparison of the current state parameter and the preset state parameter determines the voltage of each battery connector according to the comparison result. Installation status, including:
    当所有所述电池连接器的所述第一引脚的所述引脚电压均为预设电压,确定所有所述电池连接器均处于安装脱位状态,其中,所述预设电压为零。When the pin voltages of the first pins of all the battery connectors are at a preset voltage, it is determined that all the battery connectors are in an installation and dislocation state, wherein the preset voltage is zero.
  3. 根据权利要求1所述的方法,其中,每个所述电池连接器的所述引脚均包括被设置为获取电池参数的第二引脚,不同的所述电池连接器的所述第二引脚所获取的所述电池参数的类型不同。The method according to claim 1, wherein said pins of each of said battery connectors include a second pin configured to acquire battery parameters, said second pins of different said battery connectors The types of the battery parameters acquired by the feet are different.
  4. 根据权利要求3所述的方法,其中,当所述第二引脚被设置为获取所述电池的电芯电压,所述充放电组件的所述当前状态参数为所述电池的电芯电压;对应地,所述比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态,包括如下之一:The method according to claim 3, wherein, when the second pin is set to obtain the cell voltage of the battery, the current state parameter of the charging and discharging component is the cell voltage of the battery; Correspondingly, the comparison of the current state parameter and the preset state parameter, and determining the installation state of each of the battery connectors according to the comparison result include one of the following:
    当所述电芯电压位于预设电压范围内,确定与所述第二引脚对应的所述电池连接器处于安装在位状态;或When the cell voltage is within a preset voltage range, determining that the battery connector corresponding to the second pin is in a state of being installed; or
    当所述电芯电压位于预设电压范围外,确定与所述第二引脚对应的所述电池连接器处于安装脱位状态。When the voltage of the battery cell is outside the preset voltage range, it is determined that the battery connector corresponding to the second pin is in an installation and dislocation state.
  5. 根据权利要求3所述的方法,其中,当所述第二引脚被设置为获取所述电池的电池电阻,所述充放电组件的所述当前状态参数为所述电池的电池电阻;对应地,所述比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态,包括如下之一:The method according to claim 3, wherein when the second pin is set to obtain the battery resistance of the battery, the current state parameter of the charging and discharging component is the battery resistance of the battery; correspondingly , comparing the current state parameter with a preset state parameter, and determining the installation state of each battery connector according to the comparison result, including one of the following:
    当所述电池电阻位于预设电阻范围内,确定与所述第二引脚对应的所述电池连接器处于安装在位状态;或When the battery resistance is within a preset resistance range, determining that the battery connector corresponding to the second pin is in an installed state; or
    当所述电池电阻位于预设电阻范围外,确定与所述第二引脚对应的所述电池连接器处于安装脱位状态。When the battery resistance is outside the preset resistance range, it is determined that the battery connector corresponding to the second pin is in a dismounted state.
  6. 根据权利要求3所述的方法,其中,当所述第二引脚被设置为获取所述电池的电池温度,所述充放电组件的所述当前状态参数为所述电池的电池温度;对应地,所述比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态,包括如下之一:The method according to claim 3, wherein, when the second pin is set to obtain the battery temperature of the battery, the current state parameter of the charging and discharging component is the battery temperature of the battery; correspondingly , comparing the current state parameter with a preset state parameter, and determining the installation state of each battery connector according to the comparison result, including one of the following:
    当所述电池温度位于预设温度范围内,确定与所述第二引脚对应的所述电池连接器处于安装在位状态;或When the battery temperature is within a preset temperature range, determining that the battery connector corresponding to the second pin is in an installed state; or
    当所述电池温度位于预设温度范围外,确定与所述第二引脚对应的所述电池连接器处于安装脱位状态。When the temperature of the battery is outside the preset temperature range, it is determined that the battery connector corresponding to the second pin is in an installation and dislocation state.
  7. 根据权利要求3所述的方法,其中,当所述第二引脚被设置为获取所述电池的电量计信息,所述充放电组件的所述当前状态参数为所述电池的电量计信息;对应地,所述比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态,包括如下之一:The method according to claim 3, wherein, when the second pin is set to obtain fuel gauge information of the battery, the current state parameter of the charging and discharging component is the fuel gauge information of the battery; Correspondingly, the comparison of the current state parameter and the preset state parameter, and determining the installation state of each of the battery connectors according to the comparison result include one of the following:
    当获取到所述电池的所述电量计信息,确定与所述第二引脚对应的所述电池连接器处于安装在位状态;或When the fuel gauge information of the battery is obtained, it is determined that the battery connector corresponding to the second pin is installed in position; or
    当没有获取到所述电池的所述电量计信息,确定与所述第二引脚对应的所述电池连接器处于安装脱位状态。When the fuel gauge information of the battery is not acquired, it is determined that the battery connector corresponding to the second pin is in an installation and dislocation state.
  8. 根据权利要求1所述的方法,其中,所述充放电组件还包括多个采样电阻,所述采样电阻和所述电池连接器一一对应,所述采样电阻与所述引脚串联,所述充放电组件的所述当前状态参数包括流经所述采样电阻的采样电流;对应地,所述比较所述当前状态参数和预设状态参数,根据比较结果确定每个所述电池连接器的安装状态,包括如下之一:The method according to claim 1, wherein the charge and discharge assembly further includes a plurality of sampling resistors, the sampling resistors correspond to the battery connectors one by one, the sampling resistors are connected in series with the pins, the The current state parameters of the charging and discharging components include the sampling current flowing through the sampling resistor; correspondingly, comparing the current state parameters with preset state parameters, and determining the installation of each battery connector according to the comparison result status, including one of the following:
    当所述采样电流大于或等于预设电流,确定与所述采样电阻对应的所述电池连接器处于安装在位状态;或When the sampling current is greater than or equal to a preset current, it is determined that the battery connector corresponding to the sampling resistor is installed; or
    当所述采样电流小于预设电流,确定与所述采样电阻对应的所述电池连接器处于安装脱位状态。When the sampling current is less than the preset current, it is determined that the battery connector corresponding to the sampling resistor is in a dismounted state.
  9. 根据权利要求1至8中任意一项所述的方法,还包括如下至少之一:The method according to any one of claims 1 to 8, further comprising at least one of the following:
    所述控制器还与显示屏幕通信,当所述电池连接器处于安装脱位状态,向所述显示屏幕发送第一提示信息;或The controller also communicates with the display screen, and sends a first prompt message to the display screen when the battery connector is in a state of installation and dislocation; or
    所述控制器还与扬声器通信,当所述电池连接器处于安装脱位状态,向所述扬声器发送第二提示信息。The controller also communicates with the speaker, and sends a second prompt message to the speaker when the battery connector is in a state of installation and dislocation.
  10. 一种控制器,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至9中任意一项所述的电池连接器状态检测方法。A controller, comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, any of claims 1 to 9 can be realized. A method for detecting the state of a battery connector.
  11. 一种终端设备,包括如权利要求10所述的控制器。A terminal device, comprising the controller according to claim 10.
  12. 根据权利要求11所述的终端设备,还包括充放电组件,所述充放电组件包括电池和多个电池连接器,每个所述电池连接器均设置有引脚,所述控制器通过所述引脚连接至所述电池。The terminal device according to claim 11, further comprising a charge and discharge assembly, the charge and discharge assembly includes a battery and a plurality of battery connectors, each of the battery connectors is provided with a pin, and the controller passes the pin connected to the battery.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求1至9中任意一项所述的电池连接器状态检测方法。A computer-readable storage medium storing computer-executable instructions for executing the battery connector state detection method according to any one of claims 1-9.
PCT/CN2022/097696 2021-07-20 2022-06-08 Status detection method for battery connector, and controller, terminal device and storage medium WO2023000857A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110816950.1A CN115642659A (en) 2021-07-20 2021-07-20 Battery connector state detection method, controller, terminal device, and storage medium
CN202110816950.1 2021-07-20

Publications (1)

Publication Number Publication Date
WO2023000857A1 true WO2023000857A1 (en) 2023-01-26

Family

ID=84939846

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/097696 WO2023000857A1 (en) 2021-07-20 2022-06-08 Status detection method for battery connector, and controller, terminal device and storage medium

Country Status (2)

Country Link
CN (1) CN115642659A (en)
WO (1) WO2023000857A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117388728B (en) * 2023-12-12 2024-06-07 荣耀终端有限公司 Battery detection circuit, method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169783A (en) * 2015-05-14 2016-11-30 联发科技股份有限公司 The detection method of the adapter of electronic equipment, charger, integrated circuit and electronic equipment
CN109856498A (en) * 2019-03-22 2019-06-07 杭州协能科技股份有限公司 Battery harness detection circuit and detection method
KR20190069775A (en) * 2017-12-12 2019-06-20 한국해양대학교 산학협력단 A control power module of hybrid inverter system for driving electric propulsion ship
CN110832335A (en) * 2018-10-30 2020-02-21 深圳市大疆创新科技有限公司 Battery connector health state detection system and method and unmanned aerial vehicle
CN111308396A (en) * 2018-12-12 2020-06-19 宁德时代新能源科技股份有限公司 Insufficient solder joint detection circuit and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169783A (en) * 2015-05-14 2016-11-30 联发科技股份有限公司 The detection method of the adapter of electronic equipment, charger, integrated circuit and electronic equipment
KR20190069775A (en) * 2017-12-12 2019-06-20 한국해양대학교 산학협력단 A control power module of hybrid inverter system for driving electric propulsion ship
CN110832335A (en) * 2018-10-30 2020-02-21 深圳市大疆创新科技有限公司 Battery connector health state detection system and method and unmanned aerial vehicle
CN111308396A (en) * 2018-12-12 2020-06-19 宁德时代新能源科技股份有限公司 Insufficient solder joint detection circuit and method
CN109856498A (en) * 2019-03-22 2019-06-07 杭州协能科技股份有限公司 Battery harness detection circuit and detection method

Also Published As

Publication number Publication date
CN115642659A (en) 2023-01-24

Similar Documents

Publication Publication Date Title
US11125824B2 (en) Master battery management unit using power from battery module
WO2020244588A1 (en) Battery management system, battery management method, power source module, and unmanned aerial vehicle
US10622802B2 (en) Power receiving apparatus and control circuit thereof
US20190165588A1 (en) Charging protection method and apparatus
US20190356143A1 (en) Battery management unit and battery pack including same
EP3093945B1 (en) Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device
US10298031B2 (en) Battery device and battery protection method
KR20190000690A (en) Electronic device and method for controlling a charging thereof
KR20160105167A (en) Electronic device and method for charging controlling of the electronic device
US11462930B2 (en) Method and device for controlling charging on basis of state of battery
WO2023000857A1 (en) Status detection method for battery connector, and controller, terminal device and storage medium
WO2018086143A1 (en) Battery, battery management system, mobile platform, and electricity consumption device
CN117110913B (en) Battery detection circuit, electronic device, and battery detection method
KR20190075609A (en) Apparatus and method for diagnosing fault of current sensor
KR20150104669A (en) Battery testing apparatus and method for controlling the same
CN212114809U (en) Battery charging and discharging protection circuit and charging and discharging protection device
CN110875610A (en) Electronic equipment power supply method and device, electronic equipment and storage medium
EP3629428B1 (en) Method and apparatus for changing impedance of terminal included in connector
WO2021102901A1 (en) Battery detection circuit and method, battery, electronic device, and storage medium
CN211629891U (en) Battery charging and discharging protection circuit and charging and discharging protection device
CN113922459A (en) Charging protection method and device, electronic equipment and storage medium
US20210083329A1 (en) Monitoring battery packs within a battery energy storage system
CN111337841A (en) Mobile terminal and battery state detection system thereof
US20130221904A1 (en) Terminal and method for charging battery of sub terminal connected to main terminal
US9496737B2 (en) Charge devices and charge systems

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22845024

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE