Electronic device

By incorporating an integrated circuit that detects current in the electronic device and disconnecting the battery from the motherboard when the current falls below a preset value, the problem of continuous battery consumption during shipping mode is solved, thus improving the safety of the device.

WO2026002148A1PCT designated stage Publication Date: 2026-01-02VIVO MOBILE COMM CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/104002
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-26
Filing Date
2025-06-26
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

In the shipping mode of electronic devices, the battery will continue to consume power, resulting in low power for a long time, increasing the risk of battery swelling and reducing the safety of device use.

Method used

An integrated circuit is installed in the electronic device, including a detection module, which is used to detect the current between the battery and the motherboard. When the current is less than or equal to a preset current value, the first switching transistor is controlled to turn off, disconnecting the connection between the battery and the motherboard and stopping the power supply to all devices.

Benefits of technology

By disconnecting the battery from the motherboard, power consumption is reduced, the battery is prevented from being at a low charge level for extended periods, the risk of battery swelling is lowered, and the safety of the device is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025104002_02012026_PF_FP_ABST
    Figure CN2025104002_02012026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of batteries, and discloses an electronic device. The electronic device comprises: a main board; a battery, wherein a first electrode of the battery is connected to a first end of the main board, a second electrode of the battery is connected to a second end of the main board by means of a first switch transistor, and a first resistor is further provided on a path where the battery is connected to the main board; and a first integrated circuit, wherein the first integrated circuit comprises a detection module, the detection module is used for measuring a first current passing through the first resistor, and the first integrated circuit is used for controlling, when the current value of the first current is less than or equal to a preset current value, the first switch transistor to be turned off, so as to disconnect the path where the battery is connected to the main board.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic device

[0001] Cross Reference to Related Applications

[0002] The present application claims priority to the Chinese patent application No. 202410839266.9, filed on June 26, 2024, and entitled "Electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present application belongs to the technical field of batteries, and specifically relates to an electronic device. BACKGROUND

[0004] Generally, a ship mode is configured in an electronic device, so that the electronic device can be controlled to enter the ship mode in a case where the electronic device is not used, so that the battery of the electronic device can stop supplying power to part of devices of the electronic device, thereby reducing consumption of the power of the battery, reducing the case where the battery is low for a long time, and further reducing the phenomenon that the battery is bulging, and improving the use safety of the electronic device.

[0005] However, since the power of the battery of the electronic device is still consumed in the ship mode, the case where the battery is low for a long time still occurs in a case where the electronic device is not used for a long time, so that the phenomenon that the battery is bulging occurs, and thus the use safety of the electronic device is low. SUMMARY

[0006] An embodiment of the present application aims to provide an electronic device, which can solve the problem that the use safety of the electronic device is low.

[0007] In a first aspect, an embodiment of the present application provides an electronic device, which comprises a mainboard, a battery, a first integrated circuit, and a detection module. The first pole of the battery is connected with a first end of the mainboard, the second pole of the battery is connected with a second end of the mainboard through a first switch tube, and a first resistor is further arranged on a path connected with the mainboard. The first integrated circuit comprises the detection module, and the detection module is used for detecting a first current passing through the first resistor. The first integrated circuit is used for controlling the first switch tube to be disconnected in a case where the current value of the first current is less than or equal to a preset current value, so as to disconnect the path connected with the mainboard.

[0008] In a second aspect, the embodiments of the present application provide a control method applied to the electronic device of the first aspect, the method comprising: detecting, by a detection module of a first integrated circuit of the electronic device, a first current passing through a first resistor when a path connecting a battery of the electronic device and a mainboard of the electronic device is conducted; and controlling, by the first integrated circuit, a first switch tube of the first integrated circuit to be turned off to disconnect the path connecting the battery and the mainboard when a current value of the first current is less than or equal to a preset current value.

[0009] In a third aspect, the embodiments of the present application provide a control device, the control device comprising: a control module configured to: detect, by a detection module of a first integrated circuit of the control device, a first current passing through a first resistor when a path connecting a battery of the control device and a mainboard of the control device is conducted; and control, by the first integrated circuit, a first switch tube of the first integrated circuit to be turned off to disconnect the path connecting the battery and the mainboard when a current value of the first current is less than or equal to a preset current value.

[0010] In a fourth aspect, the embodiments of the present application provide an electronic device, the electronic device comprising a processor and a memory, the memory storing programs or instructions executable on the processor, and the programs or instructions being executed by the processor to implement the steps of the method of the second aspect.

[0011] In a fifth aspect, the embodiments of the present application provide a readable storage medium, the readable storage medium storing programs or instructions, and the programs or instructions being executed by a processor to implement the steps of the method of the second aspect.

[0012] In a sixth aspect, the embodiments of the present application provide a chip, the chip comprising a processor and a communication interface, the communication interface being coupled to the processor, and the processor being configured to run programs or instructions to implement the steps of the method of the second aspect.

[0013] In a seventh aspect, the embodiments of the present application provide a computer program product stored in a storage medium, the program product being executed by at least one processor to implement the steps of the method of the second aspect.

[0014] In the embodiment of the present application, the electronic device includes a mainboard, a battery having a first pole connected to a first end of the mainboard, and a first integrated circuit including a detection module, a second pole of the battery is connected to a second end of the mainboard through a first switch tube, and the detection module is configured to detect a first current passing through a first resistor. The first integrated circuit is configured to control the first switch tube to be disconnected to disconnect a path connecting the battery and the mainboard, when a current value of the first current is less than or equal to a preset current value. Since the electronic device is provided with the first integrated circuit including the detection module, the first integrated circuit can detect the first current passing through the first resistor, i.e., the current between the battery and the mainboard, and determine that the user does not use the electronic device when the current value of the first current is less than or equal to the preset current value, i.e., when the current value of the current between the battery and the mainboard is small, and directly control the first switch tube to be disconnected to disconnect the path connecting the battery and the mainboard, so that the battery can stop supplying power to all devices of the electronic device instead of stopping supplying power to part of the devices of the electronic device, thereby reducing the number of devices powered by the battery to reduce the power consumption of the battery, which can reduce the situation that the battery has low power for a long time when the electronic device is not used for a long time, and further reduce the phenomenon of battery bulging, thereby improving the use safety of the electronic device. BRIEF DESCRIPTION OF DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0016] FIG. 1 is a circuit structure schematic diagram of a battery and a mainboard of an electronic device in the related art;

[0017] FIG. 2 is a circuit structure schematic diagram of a battery and a mainboard of an electronic device provided by the present application;

[0018] FIG. 3 is a circuit structure schematic diagram of a battery and a mainboard of an electronic device provided by the present application;

[0019] FIG. 4 is a circuit structure schematic diagram of a battery and a mainboard of an electronic device provided by the present application;

[0020] FIG. 5 is a circuit structure schematic diagram of a battery and a mainboard of an electronic device provided by the present application;

[0021] FIG. 6 is a circuit structure schematic diagram of a battery and a mainboard of an electronic device provided by the present application;

[0022] Fig. 7 is a schematic diagram of the circuit structure of the battery and the mainboard of the electronic device according to an embodiment of the present application;

[0023] Fig. 8 is a schematic diagram of the circuit structure of the battery and the mainboard of the electronic device according to an embodiment of the present application;

[0024] Fig. 9 is a schematic diagram of the circuit structure of the battery and the mainboard of the electronic device according to an embodiment of the present application;

[0025] Fig. 10 is a schematic diagram of the circuit structure of the battery and the mainboard of the electronic device according to an embodiment of the present application;

[0026] Fig. 11 is a schematic diagram of the circuit structure of the battery and the mainboard of the electronic device according to an embodiment of the present application;

[0027] Fig. 12 is a schematic diagram of the circuit structure of the battery and the mainboard of the electronic device according to an embodiment of the present application;

[0028] Fig. 13 is a schematic diagram of the electronic device exiting the shipping mode according to an embodiment of the present application;

[0029] Fig. 14 is a schematic diagram of the electronic device exiting the shipping mode according to an embodiment of the present application;

[0030] Fig. 15 is a flowchart of the control method according to an embodiment of the present application;

[0031] Fig. 16 is a schematic diagram of the structure of the control device according to an embodiment of the present application;

[0032] Fig. 17 is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application;

[0033] Fig. 18 is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.

[0035] The terms "first", "second" in the description and claims of the present application can explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally means that the front and rear associated objects are in an "or" relationship.

[0036] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.

[0037] In the description of the present application, it should be noted that unless otherwise specified and limited, the terms "mounting", "connecting", "connecting" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0038] The electronic device provided by the embodiments of the present application can be applied to the scene of the electronic device entering the transportation mode, or the scene of the electronic device being powered off.

[0039] For the scene of the transportation mode

[0040] In the related art, as shown in FIG. 1, a battery is arranged in a battery pack 01 of an electronic device, a positive electrode of the battery is connected with a p+ terminal of the battery pack 01, a negative electrode of the battery is connected with a p- terminal of the battery pack 01, the p+ terminal of the battery pack 01 is connected with a VBAT pin of a Power Management Integrated Circuit (PMIC) 03 of a mainboard 02, the VBAT pin can be connected with a switch tube QBAT in the PMIC 03, the switch tube QBAT is also connected with a VPH_PWR pin of the PMIC 03, the VPH_PWR pin can be connected with a plurality of devices of the electronic device, the plurality of devices can include a central processing unit CPU, a memory, a screen driver, a screen, a speaker driver, a speaker, a radio frequency power management, a radio frequency module and other load modules, and the VBAT pin of the PMIC 03 can also be connected with a VBAT load of the electronic device, and the p- terminal of the battery pack 01 is connected with a GND pin of the PMIC 03. In this way, without using the electronic device, the switch tube QBAT in the PMIC 03 can be controlled to be turned off to control the electronic device to enter a Ship Mode, so that the battery pack 01 of the electronic device can stop supplying power to the plurality of devices connected with the VPH_PWR pin of the mainboard 02 of the electronic device, thereby reducing the consumption of the power of the battery in the battery pack 01, reducing the situation that the battery has a low power for a long time, and further reducing the phenomenon that the battery bulges, thereby improving the use safety of the electronic device. However, since in the Ship Mode, the battery in the battery pack 01 still supplies power to the VBAT load connected with the VBAT pin, the power of the battery of the electronic device is still consumed, so that in the case that the electronic device is not used for a long time, the situation that the battery has a low power for a long time still occurs, and further the phenomenon that the battery bulges occurs, thereby reducing the use safety of the electronic device.

[0041] Scenario of shutting down the electronic device

[0042] It should be noted that the description of the scenario of shutting down the electronic device can refer to the specific description in the foregoing, and the present embodiment will not be repeated here.

[0043] To solve the above technical problems, an electronic device is provided in the embodiments of the present application. FIG. 2 shows a schematic diagram of a circuit structure of an electronic device provided in the embodiments of the present application. As shown in FIG. 2, the electronic device provided in the embodiments of the present application can include a mainboard 10, a battery 11, a first terminal of the battery 11 being connected with a first end of the mainboard 10, a second terminal of the battery 11 being connected with a second end of the mainboard 10 through a first switch tube 12, and a first resistor 13 being further arranged on a path connecting the battery 11 and the mainboard 10, a first integrated circuit 14 including a detection module 15, the detection module 15 being configured to detect a first current passing through the first resistor 13, and the first integrated circuit 14 being configured to control the first switch tube 12 to be disconnected to disconnect the path connecting the battery 11 and the mainboard 10 in a case that a current value of the first current is less than or equal to a preset current value.

[0044] In some embodiments of the present application, a power management integrated circuit (PMIC) can be further arranged on the mainboard 10, the PMIC being connectable with at least one device of the electronic device, so that the PMIC can supply power to the at least one device.

[0045] In some embodiments of the present application, the PMIC can be connected with the at least one device through a VPH_PWR pin.

[0046] In some embodiments of the present application, the battery 11 can be any one of a lithium battery, a silicon negative electrode battery and a steel shell battery. Of course, the battery 11 can also be other batteries, which are not limited in the embodiments of the present application.

[0047] In some embodiments of the present application, the first terminal of the battery 11 can be a positive electrode or a negative electrode, and the second terminal of the battery 11 can be a negative electrode or a positive electrode. It should be noted that the first terminal of the battery 11 is a positive electrode and the second terminal of the battery 11 is a negative electrode in FIG. 2.

[0048] In some embodiments of the present application, the first integrated circuit 14 can be a protection integrated circuit. Of course, the first integrated circuit 14 can also be other circuits, which are not limited in the embodiments of the present application.

[0049] In some embodiments of the present application, the first switch tube 12 can be a MOS tube. Of course, the first switch tube 12 can also be other switch tubes, which are not limited in the embodiments of the present application.

[0050] In some embodiments of the present application, the first integrated circuit 14 can include at least one pin. The at least one pin can include at least one of a VDD pin, a VSS pin, a CS pin, a DOUT pin, a COUT pin, a VM pin, and a PS pin.

[0051] Optionally, in combination with FIG. 2, the VDD pin can be connected to the first pole (e.g., the positive pole) of the battery 11, the VSS pin can be connected to the second pole (e.g., the negative pole) of the battery 11, the CS pin can be connected to the second pole of the battery 11 and the first end of the first switch tube 12, the DOUT pin can be connected to the third end of the first switch tube 12, the COUT pin can be connected to the third end of the fifth switch tube Q1, the first end of the fifth switch tube Q1 can be connected to the first end of the first switch tube 12, the second end of the first switch tube 12 can be connected to the second pole of the battery 11, the second end of the fifth switch tube Q1 can be connected to the second end of the mainboard 10. It can be understood that the first end of the first switch tube 12 can be connected to the second end of the mainboard 10 (i.e., the GND pin of the PMIC of the mainboard 10 in the figure) through the fifth switch tube Q1; the VM pin can be connected to the second end of the fifth switch tube Q1; and the PS pin can be connected to the mainboard 10.

[0052] Optionally, in the case where the first pole of the battery 11 is the negative pole and the second pole of the battery 11 is the positive pole, as shown in FIG. 3, the VDD pin can be connected to the second pole (i.e., the positive pole) of the battery 11, the VSS pin can be connected to the first pole (i.e., the negative pole) of the battery 11, the CS pin can be connected to the second pole of the battery 11 and the first end of the fifth switch tube Q1, the COUT pin can be connected to the third end of the fifth switch tube Q1, the first end of the fifth switch tube Q1 can be connected to the second pole of the battery 11, the second end of the fifth switch tube Q1 can be connected to the first end of the first switch tube 12, the second end of the first switch tube 12 can be connected to the second end of the mainboard 10 (i.e., the VBAT pin of the PMIC of the mainboard 10 in FIG. 3); the VM pin can be connected to the second end of the first switch tube 12; and the PS pin can be connected to the mainboard 10.

[0053] In some embodiments of the present application, the detection module 15 can include at least one of a current sensor, a voltage sensor, etc.

[0054] In the case where the detection module 15 includes a voltage sensor, the detection module 15 can obtain the voltages at different positions on the path between the battery 11 and the mainboard 10, and calculate the first current according to the voltages at the different positions.

[0055] The specific connection mode of the detection module 15 will be illustrated below.

[0056] In some embodiments of the present application, the first resistor 13 can be arranged on a path connecting the first pole of the battery 11 and the first end of the main board 10, or on a path connecting the second pole of the battery 11 and the second end of the main board 10.

[0057] In the embodiments of the present application, the first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin of the first integrated circuit 14, and the second end of the detection module 15 is connected to the second end of the first resistor 13 through the second pin of the first integrated circuit 14.

[0058] The first pin can be a VDD pin or a VSS pin, and the second pin can be a CS pin. Of course, the first pin and the second pin can also be other pins, which are not limited in the embodiments of the present application.

[0059] Optionally, in the case that the first pole of the battery 11 is a positive pole and the second pole of the battery 11 is a negative pole, in combination with FIG. 2, as shown in FIG. 4, the first resistor 13 can be arranged on a path connecting the second pole of the battery 11 and the second end (for example, a GND pin) of the main board 10. The first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin (for example, a VSS pin) of the first integrated circuit 14, and the second end of the detection module 15 is connected to the second end of the first resistor 13 through the second pin (for example, a CS pin) of the first integrated circuit 14.

[0060] Optionally, in the case that the first pole of the battery 11 is a positive pole and the second pole of the battery 11 is a negative pole, in combination with FIG. 2, as shown in FIG. 5, the first resistor 13 is arranged on a path connecting the first pole (for example, a positive pole) of the battery 11 and the first end (for example, a VBAT pin) of the main board 10. The first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin (for example, a VDD pin) of the first integrated circuit 14, and the second end of the detection module 15 is connected to the second end of the first resistor 13 through the second pin (for example, a CS pin) of the first integrated circuit 14.

[0061] Optionally, in the case that the first pole of the battery 11 is a negative pole and the second pole of the battery 11 is a positive pole, in combination with FIG. 3, as shown in FIG. 6, the first resistor 13 is arranged on a path connecting the second pole (for example, a positive pole) of the battery 11 and the second end (for example, a VBAT pin) of the main board 10. The first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin (for example, a VDD pin) of the first integrated circuit 14, and the second end of the detection module 15 is connected to the second end of the first resistor 13 through the second pin (for example, a CS pin) of the first integrated circuit 14.

[0062] Optionally, in the case that the first pole of the battery 11 is a negative pole and the second pole of the battery 11 is a positive pole, as shown in FIG. 7, in combination with FIG. 3, the first resistor 13 is arranged on a path connecting the first pole (for example, the negative pole) of the battery 11 and the first end (for example, the GND pin) of the mainboard 10. The first end of the detection module 15 is connected with the first end of the first resistor 13 through the first pin (for example, the VSS pin) of the first integrated circuit 14, and the second end of the detection module 15 is connected with the second end of the first resistor 13 through the second pin (for example, the CS pin) of the first integrated circuit 14.

[0063] In some embodiments of the present application, the resistance value of the first resistor 13 is greater than or equal to the preset resistance value.

[0064] In some embodiments of the present application, the preset resistance value can be 1000 ohms (Ω). Of course, the preset resistance value can also be other resistance values, which are not limited in the embodiments of the present application.

[0065] As can be seen, since the resistance value of the first resistor can be set to a value greater than or equal to the preset resistance value, that is, the resistance value of the first resistor can be set to be relatively large, in the case that the path connecting the battery and the mainboard is disconnected, the leakage current existing between the battery and the mainboard can be further reduced, so that the consumption of the battery in the case that the path connecting the battery and the mainboard is disconnected can be further reduced.

[0066] In the embodiments of the present application, the detection module 15 is specifically used for detecting the current passing through the first resistor 13, and determining the current passing through the first resistor 13 as the first current. The current passing through the first resistor 13 can be understood as the current between the battery 11 and the mainboard 10.

[0067] Optionally, in the case that the detection module 15 includes a voltage sensor, the detection module 15 can obtain the voltage of the first end of the first resistor 13 through the first pin, and obtain the voltage of the second end of the first resistor 13 through the second pin, so that the detection module 15 can calculate the voltage difference between the voltage of the first end of the first resistor 13 and the voltage of the second end of the first resistor 13, and determine the ratio of the absolute value of the voltage difference to the resistance value of the first resistor 13 as the first current.

[0068] As can be seen, since the first resistor is further arranged on the path connecting the battery and the mainboard, the detection module of the first integrated circuit can accurately calculate the current passing through the first resistor, and accurately determine the current as the first current (that is, the current between the battery and the mainboard), without the need for the detection module to calculate the current between the battery and the mainboard through other complex ways, so that the calculation amount required for the detection module to detect the current between the battery and the mainboard can be reduced, and thus the power consumption of the detection module can be reduced.

[0069] In the embodiments of the present application, if the current value of the first current is less than or equal to the preset current value, it can be considered that the user does not use the electronic device at this time, for example, the electronic device is in a shutdown state, therefore, the first integrated circuit 14 can control the first switch tube 12 to be disconnected to disconnect the path connecting the battery 11 and the mainboard 10, so that the electronic device can enter a ship mode.

[0070] In some embodiments of the present application, as shown in FIG. 8, the above-mentioned electronic device further comprises a first counter 28 connected with the first integrated circuit 14; wherein the first integrated circuit 14 is specifically configured to control the count value of the first counter 28 to increase by 1 in the case that the current value of the first current is less than or equal to the preset current value, and control the first switch tube 12 to be disconnected in the case that the increased count value of the first counter 28 is greater than or equal to the preset count value.

[0071] As can be seen, since the first counter can be set, the first integrated circuit can control the first switch tube to be disconnected only in the case that the current value of the first current is less than or equal to the preset current value occurs multiple times, instead of in the case that the current value of the first current is less than or equal to the preset current value occurs once, therefore, the case that the path connecting the battery and the mainboard is disconnected due to the inaccurate measured current value of the first current can be avoided.

[0072] The embodiments of the present application provide an electronic device, which comprises a mainboard, a battery with a first pole connected with a first end of the mainboard, and a first integrated circuit comprising a detection module, a second pole of the battery is connected with a second end of the mainboard through a first switch tube, and the detection module is configured to detect a first current passing through a first resistor; wherein the first integrated circuit is configured to control the first switch tube to be disconnected to disconnect the path connecting the battery and the mainboard in the case that the current value of the first current is less than or equal to a preset current value. Since the first integrated circuit is arranged in the electronic device, and the first integrated circuit comprises the detection module, the first integrated circuit can detect the first current passing through the first resistor, i.e. the current between the battery and the mainboard, through the detection module, and determine that the user does not use the electronic device in the case that the current value of the first current is less than or equal to the preset current value, i.e. in the case that the current value of the current between the battery and the mainboard is small, and directly control the first switch tube to be disconnected to disconnect the path connecting the battery and the mainboard, so that the battery can stop supplying power to all devices of the electronic device, instead of stopping supplying power to part of the devices of the electronic device, therefore, the number of devices supplied by the battery can be reduced to reduce the power consumption of the battery, so that the case that the power of the battery is low for a long time in the case that the electronic device is not used for a long time can be reduced, and the phenomenon that the battery is bulged can be reduced, so that the use safety of the electronic device can be improved.

[0073] In some embodiments of the present application, as shown in FIG. 9, the main board 10 is further provided with a second switch tube 16, a first end of the second switch tube 16 is connected with a third pin 17 of the first integrated circuit 14, a second end of the second switch tube 16 is connected with the battery 11 through the first integrated circuit 14, or the second end of the second switch tube 16 is connected with the battery 11; wherein, the voltage of the third pin 17 in the case that the second switch tube 16 is off is different from the voltage of the third pin 17 in the case that the second switch tube 16 is on; the second switch tube 16 is used for being turned on when being pressed to adjust the voltage of the third pin 17, so as to generate a first signal on the third pin 17; the first integrated circuit 14 is further used for controlling the first switch tube 12 to be turned on to turn on the path connecting the battery 11 and the main board 10 in the case that the first signal is detected on the third pin 17.

[0074] In some embodiments of the present application, the second switch tube 16 can be a press switch tube, which can be turned on when being pressed and turned off when the pressing is finished.

[0075] In some embodiments of the present application, the third pin 17 can be a PS pin.

[0076] In some embodiments of the present application, the second switch tube 16 can be connected with a physical key (for example, a power key) of the electronic device, so that the pressing of the power key by the user can be regarded as the pressing of the second switch tube 16.

[0077] In some embodiments of the present application, as shown in FIG. 9, the first integrated circuit 14 further includes a power supply device 19, the power supply device 19 is connected with the third pin 17, and the power supply device 19 is used for providing the voltage to the third pin 17 in the case that the path connecting the battery 11 and the main board 10 is off.

[0078] In some embodiments of the present application, the second end of the second switch tube 16 can be connected with the second pole of the battery 11 through a resistor (for example, a third resistor 18 in the following embodiments) and the first integrated circuit 14; or, the second end of the second switch tube 16 can be directly connected with the first pole of the battery 11.

[0079] Optionally, in the case that the first pole of the battery 11 is the positive pole and the second pole of the battery 11 is the negative pole, in combination with Fig. 9, the first end of the second switch tube 16 is connected with the third pin 17 of the first integrated circuit 14, the second end of the second switch tube 16 is connected with the VM pin (for example, the fourth pin in the following embodiment) of the first integrated circuit 14 through the third resistor 18, the VM pin can be connected with the VSS pin (for example, the fifth pin in the following embodiment), and the VSS pin is connected with the second pole of the battery 11. That is, the second end of the second switch tube 16 can be connected with the second pole of the battery 11 through the third resistor 18, the VM pin and the VSS pin of the first integrated circuit 14.

[0080] In combination with Fig. 9, when the second switch tube 16 is not pressed, the second switch tube 16 is off, and the voltage of the third pin 17 can be the voltage provided by the power supply device 19. When the second switch tube 16 is pressed, the second switch tube 16 is on, and at this time, a current loop can be formed by the power supply device 19, the third pin 17, the third resistor 18, the VM pin, the VSS pin and the second pole of the battery 11. Since the resistance value of the current loop is increased (that is, the third resistor 18 is added), the voltage of the third pin 17 will be reduced. It can be understood that when the second switch tube 16 is on, the voltage of the third pin 17 will be reduced, and therefore, it can be understood that the second switch tube 16 can adjust the voltage of the third pin 17 when it is pressed.

[0081] Optionally, in the case that the first pole of the battery 11 is the negative pole and the second pole of the battery 11 is the positive pole, as shown in Fig. 9, the second end of the second switch tube 16 can be directly connected with the first pole of the battery 11.

[0082] In combination with Fig. 10, when the second switch tube 16 is not pressed, the second switch tube 16 is off, and the voltage of the third pin 17 can be the voltage provided by the power supply device 19. When the second switch tube 16 is pressed, the second switch tube 16 is on, and at this time, a current loop can be formed by the power supply device 19, the third pin 17 and the first pole of the battery 11. Since the third pin 17 can be directly shorted to the first pole of the battery 11, the voltage of the third pin 17 will be reduced. It can be understood that when the second switch tube 16 is on, the voltage of the third pin 17 will be reduced, and therefore, it can be understood that the second switch tube 16 can adjust the voltage of the third pin 17 when it is pressed.

[0083] Therefore, it can be known that since the power supply device can be arranged in the first integrated circuit, the voltage can be provided to the third pin by the power supply device in the case that the path connected the battery and the mainboard is disconnected, so that the second switch tube can adjust the voltage of the third pin when it is on, and therefore, the first signal can be accurately generated on the third pin.

[0084] In some embodiments of the present application, as shown in FIG. 11, the power supply device 19 comprises: a power supply unit 24 configured to provide a voltage to the third pin 17; and a first voltage dividing unit 25, a first end of which is connected to the power supply unit 24, and a second end of which is connected to the third pin 17, and the first voltage dividing unit 25 is configured to adjust the voltage provided by the power supply unit 24 to the third pin 17.

[0085] In some embodiments of the present application, the first voltage dividing unit 25 can be a resistor.

[0086] Therefore, by providing the power supply unit and the first voltage dividing unit in the power supply device, the voltage provided by the power supply unit to the third pin can be adjusted by the first voltage dividing unit, so that the power supply unit can provide appropriate voltage to the third pin, and the third pin and the device connected to the third pin can be prevented from being damaged due to the large voltage provided by the power supply unit to the third pin.

[0087] In some embodiments of the present application, the second end of the second switch tube 16 is connected to the second pole of the battery 11 through the first integrated circuit 14; and optionally, as shown in FIG. 11, the first integrated circuit 14 further comprises: a second resistor 20, a first end of which is connected to the fourth pin 21 of the first integrated circuit 14; and a third switch tube 22, a first end of which is connected to the second end of the second resistor 20, and a second end of which is connected to the fifth pin 23 of the first integrated circuit 14.

[0088] In some embodiments of the present application, the third switch tube 22 can be a MOS tube. Of course, the third switch tube 22 can also be other switch tubes, which are not limited in the embodiments of the present application.

[0089] In some embodiments of the present application, the fourth pin 21 can be a VM pin. Of course, the fourth pin 21 can also be other pins, which are not limited in the embodiments of the present application.

[0090] In some embodiments of the present application, the fifth pin 23 can be a VSS pin. Of course, the fifth pin 23 can also be other pins, which are not limited in the embodiments of the present application.

[0091] In the embodiments of the present application, when the path connecting the battery 11 and the mainboard 10 is disconnected, the third switch tube 22 is turned on; the second end of the second switch tube 16 is connected to the fourth pin 21 through the third resistor 18 and the third pin 17, and the fifth pin 23 is connected to the second pole of the battery 11.

[0092] It can be understood that the second end of the second switch tube 16 is connected with the second pole of the battery 11 through the third resistor 18, the third pin 17, the fourth pin 21, the second resistor 20, the third switch tube 22 and the fifth pin 23.

[0093] Therefore, on the one hand, the resistance of the current loop formed by the third pin, the second switch tube, the second resistor, the fourth pin, the third resistor, the third switch tube, the fifth pin and the second pole of the battery can be increased, and thus the leakage current in the current loop in the case that the path connecting the battery and the mainboard is disconnected can be reduced, and the consumption of the battery in the case that the path connecting the battery and the mainboard is disconnected can be reduced; on the other hand, the third switch tube is turned on only in the case that the path connecting the battery and the mainboard is disconnected, and thus the first integrated circuit can be prevented from being affected due to the fact that the mainboard provides the voltage to the fourth pin in the case that the path connecting the battery and the mainboard is connected. Therefore, the consumption of the battery in the case that the path connecting the battery and the mainboard is disconnected can be reduced while the first integrated circuit is not affected.

[0094] In some implementations of the present application, as shown in FIG. 12, the power supply device 19 includes a power supply unit 24 configured to provide a voltage to the third pin 17, a fourth switch tube 26 having a first end connected with the power supply unit 24, and a second voltage dividing unit 27 having a first end connected with a second end of the fourth switch tube 26 and a second end connected with the third pin 17, and configured to adjust the voltage provided by the power supply unit 24 to the third pin 17. In the case that the path connecting the battery 11 and the mainboard 10 is disconnected, the fourth switch tube 26 is turned on.

[0095] It can be understood that the second end of the second switch tube 16 is directly connected with the first pole of the battery 11.

[0096] In some embodiments of the present application, the fourth switch tube 26 can be a MOS tube. Of course, the fourth switch tube 26 can also be other switch tubes, which are not limited in the embodiments of the present application.

[0097] In some embodiments of the present application, the second voltage dividing unit 27 can be a resistor.

[0098] Therefore, the power supply unit can provide appropriate voltage to the third pin, and the third pin and the device connected to the third pin can be prevented from being damaged due to the power supply unit providing large voltage to the third pin. In addition, the fourth switch tube is turned on only when the path connected between the battery and the mainboard is disconnected, and the mainboard can be prevented from being affected due to the power supply unit providing voltage to the third pin when the path connected between the battery and the mainboard is connected. Therefore, the device of the electronic device can be prevented from being damaged while ensuring that the mainboard is not affected.

[0099] In the embodiment of the present application, the first integrated circuit 14 is further configured to control the first switch tube 12 to be turned on according to the first signal, so as to turn on the path connected between the battery 11 and the mainboard.

[0100] In some embodiments of the present application, the first integrated circuit 14 can directly control the first switch tube 12 to be turned on when receiving the first signal, or the first integrated circuit 14 can first determine whether the first signal meets a condition (for example, the first condition in the following embodiments) when receiving the first signal, and then control the first switch tube 12 to be turned on when the condition is met.

[0101] In the embodiment of the present application, if the user needs to use the electronic device, the user can press the second switch tube 16 to generate the first signal, so that the first integrated circuit 14 can determine that the user needs to use the electronic device according to the first signal, and control the first switch tube 12 to be turned on, so that the path connected between the battery 11 and the mainboard 10 is turned on, and the user can use the electronic device.

[0102] Therefore, when the path connected between the battery and the mainboard needs to be turned on, the first signal can be generated by controlling the second switch tube to be turned on, so that the first integrated circuit can turn on the path connected between the battery and the mainboard according to the first signal, and the first integrated circuit cannot turn on the path connected between the battery and the mainboard, and the user cannot use the electronic device.

[0103] In some embodiments of the present application, when the second switch tube 16 is pressed for a first time length, the first signal meeting the first condition is generated on the third pin 17; the first integrated circuit 14 is specifically configured to control the first switch tube 12 to be turned on when the first signal meets the first condition; and the first condition includes that the voltage corresponding to the first signal changes once and the voltage corresponding to the first signal does not change within the first time length.

[0104] In the embodiments of the present application, the voltage of the third pin 17 when the second switch tube 16 is off is different from the voltage of the third pin 17 when the second switch tube 16 is on; the second switch tube 16 is specifically used to be turned on when being pressed to adjust the voltage of the third pin 17, so as to generate the first signal meeting the first condition on the third pin 17.

[0105] In some embodiments of the present application, as shown in FIG. 11, before the second switch tube 16 is pressed, the second switch tube 16 is off, at this time, the voltage of the third pin 17 can be the voltage provided by the power supply unit 24 to the third pin 17, for example, Vpu. When the second switch tube 16 is pressed for a first time length, the second switch tube 16 is turned on for the first time length, at this time, a current loop can be formed by the power supply unit 24, the first voltage dividing unit 25, the third pin 17, the second switch tube 16, the third resistor 18, the fourth pin 21, the second resistor 20, the third switch tube 22, the fifth pin 23 and the second pole (for example, the negative pole) of the battery 11, because the resistance value of the current loop is increased (that is, the third resistor 18 and the second resistor 20 are added compared with the case that the second switch tube 16 is off), therefore, the voltage of the third pin 17 will be reduced to Vpu*[(Rvm+R2) / (R1+Rvm+R2)], wherein R1 is the resistance value of the first voltage dividing unit 25, Rvm is the resistance value of the third resistor 18, and R2 is the resistance value of the second resistor 20, and the voltage of the third pin 17 will be maintained at Vpu*[(Rvm+R2) / (R1+Rvm+R2)] for the first time length, that is, the voltage corresponding to the first signal generated on the third pin 17 changes once, and the voltage corresponding to the first signal does not change for the first time length, that is, the first signal meeting the first condition is generated on the third pin 17.

[0106] In some embodiments of the present application, as shown in FIG. 12, before the second switch tube 16 is pressed, the second switch tube 16 is off, at this time, the voltage of the third pin 17 can be the voltage provided by the power supply unit 24 to the third pin 17 through the fourth switch tube 26, for example, Vpu. When the second switch tube 16 is pressed for a first time length, the second switch tube 16 is turned on for the first time length, at this time, a current loop can be formed by the power supply unit 24, the fourth switch tube 26, the second voltage dividing unit 27, the third pin 17, the second switch tube 16 and the first pole (for example, the negative pole) of the battery 11, which is equivalent to shorting the third pin 17 to the first pole of the battery 11, therefore, the voltage of the third pin 17 will be reduced to 0 volt v, and the voltage of the third pin 17 will be maintained at 0v for the first time length, that is, the voltage corresponding to the first signal generated on the third pin 17 changes once, and the voltage corresponding to the first signal does not change for the first time length, that is, the first signal meeting the first condition is generated on the third pin 17.

[0107] In some embodiments of the present application, the electronic device can exit the ship mode when the first integrated circuit 14 controls the first switch 12 to be turned on.

[0108] The following will illustrate the specific scheme of the first integrated circuit 14 controlling the first switch 12 to be turned on by taking two specific examples.

[0109] In combination with the circuit structure of FIG. 11, as shown in FIG. 13, the electronic device is in the ship mode, at this time, the third switch 22 is turned on, and the power supply unit 24 provides the voltage Vpu to the third pin 17. When the user wants to use the electronic device, the user can perform a press input on the second switch 16 for a first time duration, so that the second switch 16 can be turned on for the first time duration, that is, the voltage of the third pin 17 will be reduced from Vpu to Vpu*[(Rvm+R2) / (R1+Rvm+R2)] and maintained at Vpu*[(Rvm+R2) / (R1+Rvm+R2)] for the first time duration, where R1 is the resistance of the first voltage dividing unit 25, Rvm is the resistance of the third resistor 18, and R2 is the resistance of the second resistor 20, to generate a first signal (for example, a PS signal), so that the first integrated circuit 14 can control the first switch 12 to be turned on when the first signal satisfies a first condition, that is, the voltage corresponding to the first signal changes once (that is, reduced from Vpu to Vpu*[(Rvm+R2) / (R1+Rvm+R2)]), and the voltage corresponding to the first signal does not change (that is, maintained at Vpu*[(Rvm+R2) / (R1+Rvm+R2)]) for the first time duration (for example, T4), so that the electronic device can exit the ship mode. After the electronic device exits the ship mode, the third switch 22 can be disconnected, at this time, the mainboard 10 can provide a voltage to the third pin 17, so that the voltage of the third pin 17 can be raised, for example, raised to Vpu and maintained at Vpu.

[0110] In combination with the circuit structure of FIG. 12, as shown in FIG. 14, the electronic device is in the ship mode, and at this time, the fourth switch tube 26 is turned on, and the power supply unit 24 provides the voltage Vpu to the third pin 17. When the user wants to use the electronic device, the user can perform a press input on the second switch tube 16 for a first time duration, so that the second switch tube 16 can be turned on for the first time duration (for example, T4), that is, the voltage of the third pin 17 is reduced from Vpu to 0v and maintained at 0v for the first time duration (for example, T4) to generate a first signal (for example, a PS signal), so that the first integrated circuit 14 can control the first switch tube 12 to be turned on in a case where the first signal satisfies a first condition, that is, the voltage corresponding to the first signal changes once (that is, from Vpu to 0v), and the voltage corresponding to the first signal does not change (that is, is maintained at 0v) for the first time duration (for example, T4), so that the electronic device can exit the ship mode. After the electronic device exits the ship mode, the fourth switch tube 26 can be disconnected, and at this time, the mainboard 10 can provide a voltage to the third pin 17, so that the voltage of the third pin 17 can be raised, for example, raised to Vpu and maintained at Vpu.

[0111] As can be seen, since the second switch tube is controlled to be turned on for the first time duration when it is necessary to control the path connecting the battery and the mainboard to be turned on, the first signal satisfying the first condition can be generated by controlling the second switch tube to be turned on for the first time duration, so that the first integrated circuit can control the path connecting the battery and the mainboard to be turned on according to the first signal satisfying the first condition, instead of controlling the path connecting the battery and the mainboard to be turned on according to an arbitrary signal, and thus, the situation that the battery continues to supply power to the mainboard due to interference can be avoided.

[0112] FIG. 15 shows a flow diagram of a control method provided in an embodiment of the present application, applied to the electronic device in the above-described embodiments. As shown in FIG. 15, the control method provided in the embodiment of the present application can include the following steps 101 and 102.

[0113] In step 101, in a case where a path connecting a battery and a mainboard of an electronic device is turned on, the electronic device detects a first current passing through a first resistor of the electronic device by a detection module of a first integrated circuit of the electronic device.

[0114] In some embodiments of the present application, in a case where the electronic device is in a powered-on state, the path connecting the battery and the mainboard is turned on, so that the battery can supply power to at least one device connected to a PMIC of the mainboard through the mainboard, and thus, the user can use the electronic device. In this way, in a case where the electronic device is in the powered-on state, the electronic device can detect the first current passing through the first resistor once every second time duration through the detection module, and thus, the electronic device can obtain the first current through one detection of the detection module.

[0115] It should be noted that the description of the electronic device detecting the first current passing through the first resistor through the detection module of the first integrated circuit of the electronic device can refer to the specific description in the above embodiments, and the embodiments of the present application will not be repeated here.

[0116] The second duration can be 1 second. Of course, the second duration can also be other durations, which are not limited in the embodiments of the present application.

[0117] In step 102, when the current value of the first current is less than or equal to the preset current value, the electronic device controls the first switch tube of the first integrated circuit to be turned off through the first integrated circuit, so as to disconnect the path connecting the battery and the mainboard.

[0118] In the embodiments of the present application, the user may not use the electronic device, and in the case that the electronic device is not used, that is, in the case that the electronic device is in the shutdown state, the current value of the current between the battery and the mainboard of the electronic device will be less than or equal to the preset current value. Therefore, the electronic device can determine whether the electronic device is in the shutdown state by determining whether the current value of the first current is less than or equal to the preset current value, so as to determine whether to control the first switch tube to be turned off.

[0119] In some embodiments of the present application, the preset current value can be 0.5 milliampere (mA). Of course, the preset current value can also be other current values, such as 0.3 mA-0.7 mA, which are not limited in the embodiments of the present application.

[0120] In some embodiments of the present application, the electronic device can directly control the first switch tube to be turned off through the first integrated circuit when it is determined that the current value of the first current is less than or equal to the preset current value; or the electronic device can further determine whether to control the first switch tube to be turned off through the first integrated circuit when it is determined that the current value of the first current is less than or equal to the preset current value.

[0121] It should be noted that the description of the electronic device controlling the first switch tube of the first integrated circuit to be turned off through the first integrated circuit can refer to the specific description in the above embodiments, and the embodiments of the present application will not be repeated here.

[0122] In some embodiments of the present application, before the "electronic device controls the first switch tube of the first integrated circuit to be turned off through the first integrated circuit" in the above step 102, the control method provided by the embodiments of the present application can further include the following step 201, and the above step 102 can be implemented through the following step 102a.

[0123] In a case where the current value of the first current is less than or equal to the preset current value, the electronic device controls the count value of the first counter to increase by 1.

[0124] In the embodiment of the application, the first counter is used to record the number of times that the first current passing through the first resistor is less than or equal to the preset current value.

[0125] In the embodiment of the application, the count value of the first counter indicates the number of times that the first current is less than or equal to the preset current value.

[0126] In a case where the increased count value of the first counter is greater than or equal to the preset count value, the electronic device controls the first switch tube to be turned off by the first integrated circuit.

[0127] In the embodiment of the application, since the measured current passing through the first resistor can be less than or equal to the preset current value due to the interference on the electronic device, if the first switch tube is directly controlled to be turned off, the electronic device can be turned off during use by the user. Therefore, in a case where the current value of the first current is less than or equal to the preset current value, the electronic device can first control the count value of the first counter to increase by 1, and then control the first switch tube to be turned off in a case where the increased count value of the first counter is greater than or equal to the preset count value, i.e., in a case where the first current passing through the first resistor is less than or equal to the preset current value for multiple times, so as to avoid the electronic device being turned off during use by the user.

[0128] As can be seen, in a case where the current value of the first current is less than or equal to the preset current value, the electronic device can not control the first switch tube to be turned off, but control the count value of the first counter to increase by 1, and determine whether the increased count value of the first counter is greater than or equal to the preset count value, so as to determine whether the current between the battery and the mainboard is less than or equal to the preset current value for multiple times, i.e., determine whether the electronic device has not been used for a long time. Therefore, in a case where the increased count value of the first counter is greater than or equal to the preset count value, i.e., in a case where the electronic device has not been used for a long time, the electronic device controls the first switch tube to be turned off, so that the power consumption of the battery of the electronic device can be reduced while avoiding the electronic device being turned off during use by the user.

[0129] The embodiment of the present application provides a control method, the electronic device can detect the first current passing through the first resistor of the electronic device through the detection module of the first integrated circuit in the case that the path connecting the battery and the mainboard of the electronic device is conducted, and control the first switch tube of the first integrated circuit to be disconnected to disconnect the path connecting the battery and the mainboard in the case that the current value of the first current is less than or equal to the preset current value. Since the electronic device can first detect the first current passing through the first resistor, that is, the current between the battery and the mainboard, and then determine that the user does not use the electronic device in the case that the current value of the first current is less than or equal to the preset current value, that is, in the case that the current value of the current between the battery and the mainboard is small, and directly control the first switch tube to be disconnected to disconnect the path connecting the battery and the mainboard, so that the battery can stop supplying power to all devices of the electronic device instead of stopping supplying power to part of the devices of the electronic device, the number of devices supplied by the battery can be reduced to reduce the power consumption of the battery, so that the case that the battery has a low power for a long time in the case that the electronic device is not used for a long time can be reduced, and the phenomenon that the battery is swollen can be reduced, so that the use safety of the electronic device can be improved.

[0130] In some embodiments of the present application, after the step 102, the control method provided by the embodiment of the present application can further include the following steps 301 and 302.

[0131] In step 301, the electronic device generates a first signal on the third pin by adjusting the voltage of the third pin of the first integrated circuit through the second switch tube in the case that the electronic device receives the pressing input of the user on the second switch tube of the mainboard.

[0132] It should be noted that the description of the electronic device adjusting the voltage of the third pin of the first integrated circuit through the second switch tube to generate the first signal on the third pin can refer to the specific description in the above embodiment, and the embodiment of the present application is not limited herein.

[0133] In step 302, the electronic device controls the first switch tube to be conducted through the first integrated circuit according to the first signal to conduct the path connecting the battery and the mainboard.

[0134] Therefore, since the first signal can be generated by controlling the second switch tube to be conducted when the path connecting the battery and the mainboard needs to be conducted, the first integrated circuit can conduct the path connecting the battery and the mainboard according to the first signal, and the case that the first integrated circuit cannot conduct the path connecting the battery and the mainboard does not occur, so that the case that the user cannot use the electronic device can be avoided.

[0135] In some embodiments of the present application, the third pin generates the first signal satisfying the first condition when the second switch is pressed for the first time length. Optionally, the step 302 can be implemented by the following step 302a.

[0136] The step 302a includes: when the first signal satisfies the first condition, the electronic device controls the first switch to be turned on by the first integrated circuit.

[0137] In the embodiments of the present application, the first condition includes that the voltage corresponding to the first signal changes once and the voltage corresponding to the first signal does not change in the first time length.

[0138] Therefore, when the path connecting the battery and the mainboard needs to be turned on, the first signal satisfying the first condition can be generated by controlling the second switch to be turned on for the first time length. Thus, the first integrated circuit can turn on the path connecting the battery and the mainboard according to the first signal satisfying the first condition, instead of turning on the path according to any signal. Therefore, the situation that the battery continues to supply power to the mainboard due to interference can be avoided.

[0139] The control method provided in the embodiments of the present application can be executed by the control device. In the embodiments of the present application, the control method is executed by the control device to illustrate the control device provided in the embodiments of the present application.

[0140] FIG. 16 shows a structural schematic diagram of the control device provided in the embodiments of the present application. As shown in FIG. 16, the control device 50 provided in the embodiments of the present application can include a control module 51. The control module 51 is configured to: when a path connecting a battery of the control device 50 and a mainboard of the control device 50 is turned on, detect a first current passing through a first resistor of the control device 50 by a detection module of a first integrated circuit of the control device 50; and when a current value of the first current is less than or equal to a preset current value, control a first switch of the first integrated circuit to be turned off by the first integrated circuit, so as to cut off power supply of the path connecting the battery and the mainboard.

[0141] The embodiment of the present application provides a control device, since the control device can detect the first current passing through the first resistor, i.e. the current between the battery and the mainboard, first, and then determine that the user does not use the control device and directly control the first switch tube to be turned off to disconnect the path connected between the battery and the mainboard when the current value of the first current is less than or equal to a preset current value, i.e. when the current value of the current between the battery and the mainboard is small, so that the battery can stop supplying power to all devices of the control device instead of stopping supplying power to part of the devices of the control device, therefore, the number of devices supplied by the battery can be reduced to reduce the power consumption of the battery, so that the situation that the battery has low power for a long time can be reduced when the control device is not used for a long time, and the phenomenon that the battery is swollen can be reduced, and therefore, the use safety of the control device can be improved.

[0142] In a possible implementation, the control module 51 is further configured to increase a count value of the first counter by 1 before controlling the first switch tube of the first integrated circuit to be turned off by the first integrated circuit, where the count value of the first counter indicates a number of times that the first current is less than or equal to the preset current value. The control module 51 is specifically configured to control the first switch tube to be turned off by the first integrated circuit when the count value of the first counter after the increase is greater than or equal to a preset count value.

[0143] In a possible implementation, the control module 51 is further configured to, after controlling the first switch tube of the first integrated circuit to be turned off by the first integrated circuit to disconnect the path connected between the battery and the mainboard when the current value of the first current is less than or equal to the preset current value, control the second switch tube to adjust the voltage of the third pin of the first integrated circuit to generate a first signal on the third pin when receiving a pressing input of the second switch tube of the mainboard by a user, and control the first switch tube to be turned on by the first integrated circuit according to the first signal to connect the path connected between the battery and the mainboard.

[0144] In a possible implementation, the first signal satisfying a first condition is generated on the third pin when the second switch tube is pressed for a first time length, and the control module 51 is specifically configured to control the first switch tube to be turned on by the first integrated circuit when the first signal satisfies the first condition. The first condition includes that the voltage corresponding to the first signal changes once and the voltage corresponding to the first signal does not change in the first time length.

[0145] The control device in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application are not limited thereto.

[0146] The control device in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiments of the present application are not limited thereto.

[0147] The control device provided in the embodiments of the present application can implement each process implemented by the method embodiment of FIG. 15, and thus the details are not described herein again.

[0148] In some embodiments of the present application, as shown in FIG. 17, the embodiments of the present application further provide an electronic device 60, which includes a processor 61 and a memory 62, and the memory 62 has a program or instructions stored thereon, which can be run on the processor 61, and when the program or instructions are executed by the processor 61, each process step of the above control method embodiment is implemented, and the same technical effects are achieved, and thus the details are not described herein again.

[0149] It should be noted that the electronic device in the embodiments of the present application includes the above mobile electronic device and non-mobile electronic device.

[0150] FIG. 18 is a schematic diagram of a hardware structure of an electronic device for implementing the embodiments of the present application.

[0151] The electronic device 100 includes, but is not limited to, a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.

[0152] Those skilled in the art can understand that the electronic device 100 can further include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 110 through a power management system, so that the power management system can realize functions such as management of charging, discharging, and power consumption management. The electronic device structure shown in FIG. 18 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which will not be described here.

[0153] The processor 110 is configured to, in a case where a path connected between the battery and the mainboard of the electronic device is conducted, detect, by a detection module of a first integrated circuit of the electronic device, a first current passing through a first resistor; and in a case where a current value of the first current is less than or equal to a preset current value, control, by the first integrated circuit, a first switch tube of the first integrated circuit to be turned off, so as to disconnect the path connected between the battery and the mainboard.

[0154] The electronic device provided in the embodiments of the present application can first detect, by the detection module, the first current passing through the first resistor, i.e., the current between the battery and the mainboard, and then determine that the user does not use the electronic device in a case where the current value of the first current is less than or equal to the preset current value, i.e., in a case where the current value of the current between the battery and the mainboard is small, and directly control the first switch tube to be turned off, so as to disconnect the path connected between the battery and the mainboard, so that the battery can stop supplying power to all devices of the electronic device, instead of stopping supplying power to part of the devices of the electronic device, thereby reducing the number of devices powered by the battery, reducing the power consumption of the battery, reducing the situation that the battery has a low power for a long time in the case of not using the electronic device for a long time, and further reducing the phenomenon of battery bulging, so as to improve the use safety of the electronic device.

[0155] In some embodiments of the present application, the processor 110 is further configured to, before controlling, by the first integrated circuit, the first switch tube of the first integrated circuit to be turned off, control a count value of a first counter to be increased by 1, the count value of the first counter indicating a number of times that the first current is less than or equal to the preset current value.

[0156] The processor 110 is specifically configured to, in a case where the increased count value of the first counter is greater than or equal to a preset count value, control, by the first integrated circuit, the first switch tube to be turned off.

[0157] In some embodiments of the present application, the processor 110 is further configured to, in a case where the current value of the first current is less than or equal to the preset current value, control the first switch tube of the first integrated circuit to be turned off by the first integrated circuit, so as to disconnect the power supply path between the battery and the mainboard, and then, in a case where the user presses the second switch tube of the mainboard, adjust the voltage of the third pin of the first integrated circuit through the second switch tube, so as to generate a first signal on the first pin; and control the first switch tube to be turned on by the first integrated circuit according to the first signal, so as to turn on the power supply path between the battery and the mainboard.

[0158] In some embodiments of the present application, in a case where the second switch tube is pressed for a first time length, the first signal on the third pin satisfies a first condition.

[0159] The processor 110 is specifically configured to, in a case where the first signal satisfies the first condition, control the first switch tube to be turned on by the first integrated circuit.

[0160] The first condition includes that the voltage corresponding to the first signal changes once and the voltage corresponding to the first signal does not change within the first time length.

[0161] It should be understood that, in the embodiments of the present application, the input unit 104 can include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processing unit 1041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 can include a display panel 1061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 can include a touch detection device and a touch controller. The other input devices 1072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0162] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 109 can include a volatile memory or a non-volatile memory, or the memory 109 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static RAM (SRAM), a dynamic RAM (DRAM), a synchronous DRAM (SDRAM), a double data rate SDRAM (DDR SDRAM), an enhanced SDRAM (ESDRAM), a synch link DRAM (SLDRAM), and a direct rambus RAM (DRRAM). The memory 109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0163] The processor 110 can include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 110.

[0164] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned control method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.

[0165] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disc or an optical disc, and the like.

[0166] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the above control method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0167] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system chip, a system chip, a chip system or a system on chip, etc.

[0168] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to realize the processes of the above control method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0169] The apparatus embodiments described above are only schematic, wherein the units illustrated as separate components can or can not be physically separate, and the components illustrated as units can or can not be physical units, i.e., can be located in one place or distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment. Those skilled in the art can understand and implement without creative labor.

[0170] As used herein, the term "one embodiment", "an embodiment", or "one or more embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase "in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.

[0171] In the specification provided herein, a large number of specific details are described. However, it can be understood that the embodiments of the present application can be practiced without these specific details. In some examples, well-known methods, structures and techniques are not shown in detail in order not to obscure the understanding of the specification.

[0172] In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word comprising does not exclude the presence of elements or steps other than those listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of both hardware and software, and any combination thereof. In a unitary claim, several devices, apparatuses or means can be listed, comprising means for carrying out a certain task. The use of the term "means" does not limit the scope of the claim to only a device or apparatus. The word "comprising" does not exclude other elements or steps than those listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of both hardware and software, and any combination thereof. In a unitary claim, several devices, apparatuses or means can be listed, comprising means for carrying out a certain task. The use of the term "means" does not limit the scope of the claim to only a device or apparatus. The word "first", "second", "third", etc. does not necessarily indicate any order or precedence. The use of such terms is solely for the purpose of naming different elements.

[0173] Finally, it should be noted that the above-mentioned embodiments are merely intended for describing and illustrating, not limiting the technical solutions of the present application; even if the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An electronic device comprising: a mainboard; a battery, a first pole of the battery being connected with a first end of the mainboard, a second pole of the battery being connected with a second end of the mainboard through a first switch tube, and a first resistor being further arranged on a path connecting the battery and the mainboard; a first integrated circuit, the first integrated circuit comprising a detection module for detecting a first current passing through the first resistor; wherein the first integrated circuit is configured to control the first switch tube to be turned off in a case that a current value of the first current is less than or equal to a preset current value, so as to turn off the path connecting the battery and the mainboard. 2.The electronic device of claim 1, wherein, The first resistor is arranged on a path connecting the first pole of the battery and the first end of the mainboard, or on a path connecting the second pole of the battery and the second end of the mainboard. wherein a first end of the detection module is connected with a first end of the first resistor through a first pin of the first integrated circuit, and a second end of the detection module is connected with a second end of the first resistor through a second pin of the first integrated circuit. 3.The electronic device of claim 1, wherein, The mainboard is further provided with a second switch tube, a first end of the second switch tube being connected with a third pin of the first integrated circuit, and a second end of the second switch tube being connected with the battery through the first integrated circuit, or being connected with the battery; wherein a voltage of the third pin in a case that the second switch tube is turned off is different from a voltage of the third pin in a case that the second switch tube is turned on; the second switch tube is configured to be turned on when being pressed, so as to adjust the voltage of the third pin, thereby generating a first signal on the third pin; the first integrated circuit is further configured to control the first switch tube to be turned on in a case that the first signal is detected on the third pin, so as to turn on the path connecting the battery and the mainboard.

4. The electronic device of claim 3, wherein, The first integrated circuit further comprises: a power supply device, the power supply device being connected with the third pin, and the power supply device being configured to provide a voltage to the third pin in a case that the path connecting the battery and the mainboard is turned off.

5. The electronic device of claim 4, wherein, The power supply device comprises: a power supply unit, the power supply unit being configured to provide a voltage to the third pin; a first voltage dividing unit, a first end of the first voltage dividing unit being connected with the power supply unit, and a second end of the first voltage dividing unit being connected with the third pin, and the first voltage dividing unit being configured to adjust the voltage provided by the power supply unit to the third pin.

6. The electronic device of claim 4, wherein, The power supply device comprises: a power supply unit, the power supply unit being configured to provide a voltage to the third pin; a fourth switch tube, a first end of the fourth switch tube being connected with the power supply unit; a second voltage dividing unit, a first end of the second voltage dividing unit being connected with a second end of the fourth switch tube, and a second end of the second voltage dividing unit being connected with the third pin, and the second voltage dividing unit being configured to adjust the voltage provided by the power supply unit to the third pin; wherein the fourth switch tube is turned on in a case that the path connecting the battery and the mainboard is turned off.

7. The electronic device of claim 3, wherein, The second end of the second switch tube is connected with the second pole of the battery through the first integrated circuit; The first integrated circuit further comprises: a second resistor, a first end of the second resistor being connected with a fourth pin of the first integrated circuit; a third switch tube, a first end of the third switch tube being connected with a second end of the second resistor, and a second end of the third switch tube being connected with a fifth pin of the first integrated circuit; wherein, in the case that the path through which the battery is connected with the mainboard is disconnected, the third switch tube is turned on; the second end of the second switch tube is connected with the fourth pin through a third resistor and a third pin, and the fifth pin is connected with the second pole of the battery.

8. The electronic device of claim 3, wherein, in the case that the second switch tube is pressed for a first time length, the first signal meeting a first condition is generated on the third pin; the first integrated circuit is specifically configured to control the first switch tube to be turned on in the case that the first signal meeting the first condition is detected on the third pin; the first condition comprises that the voltage corresponding to the first signal changes once and the voltage corresponding to the first signal does not change in the first time length. 9.The electronic device of claim 1, wherein, The electronic device further comprises: a first counter, the first counter being connected with the first integrated circuit; wherein, the first integrated circuit is specifically configured to control the count value of the first counter to increase by 1 in the case that the current value of the first current is less than or equal to the preset current value, and control the first switch tube to be turned off in the case that the increased count value of the first counter is greater than or equal to the preset count value. 10.The electronic device of claim 1, wherein, The resistance value of the first resistor is greater than or equal to a preset resistance value.

11. A control method applied to the electronic device according to any one of claims 1 to 10, the method comprising: In the case that the path through which the battery of the electronic device is connected with the mainboard of the electronic device is conducted, the first current passing through the first resistor is detected by the detection module of the first integrated circuit of the electronic device; and in the case that the current value of the first current is less than or equal to a preset current value, the first switch tube of the first integrated circuit is controlled to be turned off by the first integrated circuit, so as to disconnect the path through which the battery is connected with the mainboard.

12. A control device, the control device comprising: The control module is configured to, in the case that the path through which the battery of the control device is connected with the mainboard of the control device is conducted, detect the first current passing through the first resistor by the detection module of the first integrated circuit of the control device; and in the case that the current value of the first current is less than or equal to a preset current value, control the first switch tube of the first integrated circuit to be turned off by the first integrated circuit, so as to disconnect the path through which the battery is connected with the mainboard.

13. An electronic device comprising a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement the steps of the method of claim 11.

14. A readable storage medium, the readable storage medium storing programs or instructions, the programs or instructions being executed by a processor to implement the steps of the method of claim 11.

15. A chip, comprising a processor and a communication interface coupled to the processor, the processor configured to execute program or instructions to implement steps of the method of claim 11.

16. A computer program product, stored in a storage medium, the program product being executed by at least one processor to implement steps of the method of claim 11.

Citation Information

Patent Citations

  • Lithium cell management system

    CN102593898A

  • Electronic equipment, control method thereof and storage medium

    CN111782028A

  • System-on-chip, battery assembly and electronic device

    CN111987772A

  • Battery protection chip, battery assembly and electronic device

    CN114221420A

  • Electronic device

    CN118739491A