Electronic device
By using detection modules and switch tubes in electronic devices, detecting current and disconnecting the battery from the motherboard, the problem of continuous power consumption in the battery in shipping mode is solved, reducing battery bulge and improving the safety of the equipment.
Patent Information
- Application Number
- CN202410839266.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-12
AI Technical Summary
In the shipping mode of electronic devices, the battery will continue to consume power, resulting in low battery power when not in use for a long time, increasing bulge and reducing equipment safety.
Design an electronic device, including a motherboard, a battery and an integrated circuit, detect the current through the detection module. If the current is less than or equal to the preset value, the control switch tube will be disconnected, the battery will be disconnected from the connection between the battery and the motherboard, and the battery will be stopped.
Reduce the number of battery-powered equipment, reduce power consumption, reduce battery bloat, and improve the safety of electronic equipment use.
Smart Images

Figure CN118944218A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of battery technology, and specifically relates to an electronic device. Background Art
[0002] Typically, a ship mode is configured in an electronic device, so that when the electronic device is not in use, the electronic device can be controlled to enter the ship mode so that the battery of the electronic device can stop supplying power to some components of the electronic device, thereby reducing battery power consumption, reducing the situation where the battery has low power for a long time, and further reducing battery swelling and the like, thereby improving the safety of electronic equipment.
[0003] However, since the battery power of the electronic device will continue to be consumed in the shipping mode, if the electronic device is not used for a long time, the battery power will still be low for a long time, resulting in battery swelling and other phenomena, thus resulting in low safety of use of the electronic device. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an electronic device that can solve the problem of low safety in the use of electronic devices.
[0005] In the first aspect, an embodiment of the present application provides an electronic device, which includes: a mainboard; a battery, wherein the first pole of the battery is connected to the first end of the mainboard, and the second pole of the battery is connected to the second end of the mainboard through a first switch tube, and a first resistor is also provided on the path connecting the battery and the mainboard; a first integrated circuit, wherein the first integrated circuit includes a detection module, and the detection module is used to detect a first current passing through the first resistor. The first integrated circuit is used to control the first switch tube to disconnect when the current value of the first current is less than or equal to a preset current value, so as to disconnect the path connecting the battery and the mainboard.
[0006] In a second aspect, an embodiment of the present application provides a control method, which is applied to an electronic device as described in the first aspect, the method comprising: when a path connecting a battery of the electronic device and a mainboard of the electronic device is turned on, detecting a first current passing through a first resistor by a detection module of a first integrated circuit of the electronic device; when a current value of the first current is less than or equal to a preset current value, controlling a first switch tube of the first integrated circuit to be disconnected by the first integrated circuit to disconnect the path connecting the battery and the mainboard.
[0007] In a third aspect, an embodiment of the present application provides a control device, comprising: a control module, for detecting a first current passing through a first resistor through a detection module of a first integrated circuit of the control device when a path connecting a battery of the control device and a mainboard of the control device is turned on; and for controlling a first switch tube of the first integrated circuit to be disconnected through the first integrated circuit when the current value of the first current is less than or equal to a preset current value, so as to disconnect the path connecting the battery and the mainboard.
[0008] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the second aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
[0010] In a sixth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the method described in the second aspect.
[0011] In a seventh aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the second aspect.
[0012] In an embodiment of the present application, an electronic device includes a mainboard, a battery having a first electrode connected to a first end of the mainboard, and a first integrated circuit, wherein the first integrated circuit includes a detection module, wherein a second electrode of the battery is connected to a second end of the mainboard through a first switch tube, and the detection module is used to detect a first current passing through a first resistor; wherein the first integrated circuit is used to control the first switch tube to disconnect when the current value of the first current is less than or equal to a preset current value, so as to disconnect the path connecting the battery to the mainboard. Since the first integrated circuit is provided in the electronic device, and the first integrated circuit includes 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 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, it is determined that the user does not use the electronic device, and the first switch tube is directly controlled to disconnect to disconnect the path connecting the battery to the mainboard, so that the battery can stop supplying power to all devices of the electronic device, instead of stopping supplying power to some devices of the electronic device, and therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery, so that the situation where the battery has a low power for a long time when the electronic device is not used for a long time can be reduced, and the phenomenon of battery bulging can be reduced, so that the use safety of the electronic device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is one of the circuit structure diagrams of the battery and the mainboard of the electronic device in the related art;
[0014] Figure 2 This is one of the circuit structure diagrams of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0015] Figure 3 This is the second circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0016] Figure 4 This is the third circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0017] Figure 5 This is the fourth circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0018] Figure 6 This is the fifth circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0019] Figure 7 This is the sixth circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0020] Figure 8 This is the seventh circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0021] Fig. 9 This is the eighth circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0022] Fig.10 This is a ninth circuit structure diagram of a battery and a mainboard of an electronic device provided in an embodiment of the present application;
[0023] Fig.11 This is the tenth circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0024] Fig.12 This is the eleventh circuit structure diagram of the battery and mainboard of the electronic device provided in the embodiment of the present application;
[0025] Fig.13 It is one of the schematic diagrams of an electronic device exiting a shipping mode provided in an embodiment of the present application;
[0026] Fig.14 This is the second schematic diagram of an electronic device exiting a shipping mode provided in an embodiment of the present application;
[0027] Fig.15 It is a flow chart of the control method provided in the embodiment of the present application;
[0028] Fig.16 is a schematic diagram of the structure of a control device provided in an embodiment of the present application;
[0029] Fig.17 This is one of the hardware structure diagrams of the electronic device provided in the embodiment of the present application;
[0030] Fig.18 This is the second schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0032] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0033] The electronic device provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0034] The electronic device provided in the embodiments of the present application may be applied to a scenario where the electronic device enters a transport mode, or may be applied to a scenario where the electronic device is shut down.
[0035] Scenarios for transport modes
[0036] In related technologies, such as Figure 1As shown, a battery is provided in a battery pack 01 of an electronic device, the positive electrode of the battery is connected to the p+ end of the battery pack 01, the negative electrode of the battery is connected to the p- end of the battery pack 01, the p+ end of the battery pack 01 is connected to the VBAT pin of a power management integrated circuit (Power Management Integrated Circuit, PMIC) 03 of a mainboard 02, the VBAT pin can be connected to a switch tube QBAT in the PMIC 03, the switch tube QBAT is also connected to a VPH_PWR pin of the PMIC 03, the VPH_PWR pin can be connected to multiple devices of the electronic device, the multiple devices may include a central processing unit CPU, memory, screen driver, screen, speaker driver, speaker, RF power management, RF module and other load modules, and the VBAT pin of the PMIC 03 can also be connected to the VBAT load of the electronic device, and the p- end of the battery pack 01 is connected to the GND pin of the PMIC03. In this way, when the electronic device is not in use, the switch tube QBAT in the above-mentioned PMIC 03 can be controlled to be disconnected to control the electronic device to enter the ship mode (Ship Mode), so that the battery pack 01 of the electronic device can stop supplying power to multiple devices connected to the VPH_PWR pin of the mainboard 02 of the electronic device, thereby reducing the power consumption of the batteries in the battery pack 01, reducing the situation where the battery power is low for a long time, and then reducing the phenomenon of battery bulging, etc., and improving the safety of the electronic device. However, since the batteries in the battery pack 01 will still supply power to the VBAT load connected to the VBAT pin in the ship mode, the power of the battery of the electronic device will continue to be consumed, so that when the electronic device is not used for a long time, the battery power will still be low for a long time, and then the battery bulging and other phenomena will occur, thus resulting in low safety of the electronic device.
[0037] Scenarios for shutting down electronic devices
[0038] It should be noted that for the description of the scenario of shutting down an electronic device, reference can be made to the specific description above, and the embodiments of the present application will not be repeated here.
[0039] In order to solve the above technical problems, an embodiment of the present application provides an electronic device. Figure 2 FIG. 1 is a schematic diagram showing a circuit structure of an electronic device provided in an embodiment of the present application. Figure 2As shown, the electronic device provided in the embodiment of the present application may include: a mainboard 10; a battery 11, a first pole of the battery 11 is connected to a first end of the mainboard 10, a second pole of the battery 11 is connected to a second end of the mainboard 10 via a first switch tube 12, and a first resistor 13 is also provided on the path connecting the battery 11 and the mainboard 10; a first integrated circuit 14, the first integrated circuit 14 includes a detection module 15, the detection module 15 is used to detect a first current passing through the first resistor 13; wherein the first integrated circuit 14 is used to control the first switch tube 12 to disconnect when the current value of the first current is less than or equal to a preset current value, so as to disconnect the path connecting the battery 11 and the mainboard 10.
[0040] In some embodiments of the present application, a power management integrated circuit (PMIC) may also be provided on the mainboard 10. The PMIC may be connected to at least one device of the electronic device, so that power may be supplied to the at least one device through the PMIC.
[0041] The PMIC may be connected to at least one device via a VPH_PWR pin.
[0042] In some embodiments of the present application, the battery 11 may be any of the following: a lithium battery, a silicon negative electrode battery, a steel shell battery. Of course, the battery 11 may also be other batteries, which are not limited in the embodiments of the present application.
[0043] In some embodiments of the present application, the first electrode of the battery 11 can be a positive electrode or a negative electrode. The second electrode of the battery 11 can be a negative electrode or a positive electrode. It should be noted that: Figure 2 In the figure, the first pole of the battery 11 is a positive pole, and the second pole of the battery 11 is a negative pole.
[0044] In some embodiments of the present application, the first integrated circuit 14 may be a protection integrated circuit. Of course, the first integrated circuit 14 may also be other circuits, which are not limited in the embodiments of the present application.
[0045] In some embodiments of the present application, the first switch tube 12 may be a MOS tube. Of course, the first switch tube 12 may also be other switch tubes, which is not limited in the embodiments of the present application.
[0046] In some embodiments of the present application, the first integrated circuit 14 may include at least one pin, wherein the at least one pin may include at least one of the following: a VDD pin, a VSS pin, a CS pin, a DOUT pin, a COUT pin, a VM pin, and a PS pin.
[0047] Optionally, combined Figure 2 The VDD pin can be connected to the first electrode (e.g., the positive electrode) of the battery 11, the VSS pin can be connected to the second electrode (e.g., the negative electrode) of the battery 11, the CS pin can be connected to the second electrode 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, the first end of the fifth switch tube 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 electrode of the battery 11, and 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.
[0048] Optionally, when the first electrode of the battery 11 is a negative electrode and the second electrode of the battery 11 is a positive electrode, as Figure 3 As shown, the VDD pin can be connected to the second electrode (i.e., the positive electrode) of the battery 11, the VSS pin can be connected to the first electrode (i.e., the negative electrode) of the battery 11, the CS pin can be connected to the second electrode 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 electrode 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, and the second end of the first switch tube 12 can be connected to the second end (i.e., Figure 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.
[0049] In some embodiments of the present application, the detection module 15 may include at least one of the following: a current sensor, a voltage sensor, etc.
[0050] 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 different positions.
[0051] The specific connection method of the detection module 15 is described below by way of example.
[0052] In some embodiments of the present application, the first resistor 13 may be disposed on a path connecting the first pole of the battery 11 and the first end of the mainboard 10 , or on a path connecting the second pole of the battery 11 and the second end of the mainboard 10 .
[0053] In the embodiment of the present application, the first end of the above-mentioned 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.
[0054] The first pin may be a VDD pin or a VSS pin. The second pin may be a CS pin. Of course, the first pin and the second pin may also be other pins, which are not limited in the present embodiment.
[0055] Optionally, in the case where the first electrode of the battery 11 is a positive electrode and the second electrode of the battery 11 is a negative electrode, Figure 2 ,like Figure 4 As shown, the first resistor 13 can be arranged on a path connecting the second pole of the battery 11 and the second end (e.g., GND pin) of the mainboard 10. The first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin (e.g., 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 (e.g., CS pin) of the first integrated circuit 14.
[0056] Optionally, in the case where the first electrode of the battery 11 is a positive electrode and the second electrode of the battery 11 is a negative electrode, Figure 2 ,like Figure 5 As shown, the first resistor 13 is disposed on a path connecting the first electrode (e.g., positive electrode) of the battery 11 and the first end (e.g., VBAT pin) of the mainboard 10. The first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin (e.g., 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 (e.g., CS pin) of the first integrated circuit 14.
[0057] Optionally, in the case where the first electrode of the battery 11 is a negative electrode and the second electrode of the battery 11 is a positive electrode, Figure 3 ,like Figure 6 As shown, the first resistor 13 is disposed on a path connecting the second electrode (e.g., positive electrode) of the battery 11 and the second end (e.g., VBAT pin) of the motherboard 10. The first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin (e.g., 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 (e.g., CS pin) of the first integrated circuit 14.
[0058] Optionally, in the case where the first electrode of the battery 11 is a negative electrode and the second electrode of the battery 11 is a positive electrode, Figure 3 ,like Figure 7As shown, the first resistor 13 is disposed on a path connecting the first electrode (e.g., negative electrode) of the battery 11 and the first end (e.g., GND pin) of the mainboard 10. The first end of the detection module 15 is connected to the first end of the first resistor 13 through the first pin (e.g., 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 (e.g., CS pin) of the first integrated circuit 14.
[0059] In some embodiments of the present application, the resistance of the first resistor 13 is greater than or equal to a preset resistance.
[0060] In some embodiments of the present application, the preset resistance value may be 1000 ohms (Ω). Of course, the preset resistance value may also be other resistance values, which are not limited in the embodiments of the present application.
[0061] Thus, it can be seen that 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 larger, therefore, when the path connecting the battery and the motherboard is disconnected, the leakage current between the battery and the motherboard can be further reduced, thereby further reducing the battery power consumption when the path connecting the battery and the motherboard is disconnected.
[0062] In the embodiment of the present application, the detection module 15 is specifically used to detect the current passing through the first resistor 13 and determine 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 motherboard 10.
[0063] Optionally, when 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.
[0064] Thus, it can be known that, since a first resistor is also provided 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 (i.e., 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 in other complex ways. Therefore, the amount of calculation required for the detection module to detect the current between the battery and the mainboard can be reduced, thereby reducing the power consumption of the detection module.
[0065] In an embodiment 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 is not using the electronic device at this time, for example, the electronic device is in a turned-off state. Therefore, the first integrated circuit 14 can control the first switch tube 12 to disconnect to disconnect the path connecting the battery 11 and the mainboard 10, so that the electronic device can enter the ship mode (Ship Mode).
[0066] In some embodiments of the present application, Figure 8 As shown, the electronic device also includes: a first counter 28, which is connected to the first integrated circuit 14; wherein the first integrated circuit 14 is specifically used to control the count value of the first counter 28 to increase by 1 when the current value of the first current is less than or equal to the preset current value, and to control the first switch tube 12 to disconnect when the count value after the increase of the first counter 28 is greater than or equal to the pre-designed value.
[0067] Thus, it can be seen that since the first counter can be set, the first integrated circuit can control the first switch tube to be disconnected only when the current value of the first current is less than or equal to the preset current value occurs multiple times, rather than controlling the first switch tube to be disconnected only when the current value of the first current is less than or equal to the preset current value occurs once. Therefore, it can avoid the situation where the path connecting the battery and the motherboard is disconnected due to the inaccurate current value of the measured first current.
[0068] The embodiment of the present application provides an electronic device, the electronic device includes a mainboard, a battery whose first pole is connected to the first end of the mainboard, and a first integrated circuit, the first integrated circuit includes a detection module, the second pole of the battery is connected to the second end of the mainboard through a first switch tube, the detection module is used to detect a first current passing through a first resistor; wherein the first integrated circuit is used to control the first switch tube to disconnect when the current value of the first current is less than or equal to a preset current value, so as to disconnect the path connecting the battery to the mainboard. Since the first integrated circuit is provided in the electronic device, and the first integrated circuit includes the detection module, the first integrated circuit can detect the first current passing through the first resistor, that is, the current between the battery and the mainboard, through the detection module, and when the current value of the first current is less than or equal to the preset current value, that is, when the current value of the current between the battery and the mainboard is small, it is determined that the user does not use the electronic device, and directly controls the first switch tube to disconnect to disconnect the path connecting the battery to the mainboard, so that the battery can stop supplying power to all devices of the electronic device, instead of stopping supplying power to some devices of the electronic device, therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery, thus reducing the situation that the battery has a low power for a long time when the electronic device is not used for a long time, and further reducing the phenomenon of battery bulging, etc., thus, the use safety of the electronic device can be improved.
[0069] In some embodiments of the present application, Figure 2 ,like Fig. 9 As shown, the main board 10 is also provided with a second switch tube 16, a first end of the second switch tube 16 is connected to the third pin 17 of the first integrated circuit 14, a second end of the second switch tube 16 is connected to the battery 11 through the first integrated circuit 14, or the second end of the second switch tube 16 is connected to the battery 11; wherein, the voltage of the third pin 17 when the second switch tube 16 is disconnected is different from the voltage when the second switch tube 16 is turned on; the second switch tube 16 is used to turn on when pressed to adjust the voltage of the third pin 17, thereby generating a first signal on the third pin 17; the first integrated circuit 14 is also used to control the first switch tube 12 to turn on when the first signal is detected on the third pin 17, so as to turn on the path connecting the battery 11 and the main board 10.
[0070] In some embodiments of the present application, the second switch tube 16 may be a push-type switch tube, which may be turned on when pressed and turned off when the pressing stops.
[0071] In some embodiments of the present application, the third pin 17 may specifically be a PS pin.
[0072] In some embodiments of the present application, the second switch tube 16 may be connected to a physical button (eg, a power button) of the electronic device, so that pressing the power button by the user may be regarded as pressing the second switch tube 16 .
[0073] In some embodiments of the present application, Fig. 9 The first integrated circuit 14 further includes: a power supply device 19, which is connected to the third pin 17, and is used to provide voltage to the third pin 17 when the path connecting the battery 11 and the mainboard 10 is disconnected.
[0074] In some embodiments of the present application, the second end of the second switch tube 16 can be connected to the second pole of the battery 11 through a resistor (for example, the third resistor 18 in the following embodiment) and the first integrated circuit 14; or, the second end of the second switch tube 16 can be directly connected to the first pole of the battery 11.
[0075] Optionally, in the case where the first electrode of the battery 11 is a positive electrode and the second electrode of the battery 11 is a negative electrode, Fig. 9 , the first end of the second switch tube 16 is connected to the third pin 17 of the first integrated circuit 14, and the second end of the second switch tube 16 is connected to the VM pin (for example, the fourth pin in the following embodiment) of the first integrated circuit 14 through the third resistor 18, and the VM pin can be connected to the VSS pin (for example, the fifth pin in the following embodiment), and the VSS pin is connected to the second electrode of the battery 11. That is, the second end of the second switch tube 16 can be connected to the second electrode of the battery 11 through the third resistor 18 and the VM pin and the VSS pin of the first integrated circuit 14.
[0076] Among them, combined Fig. 9 When the second switch tube 16 is not pressed, the second switch tube 16 is disconnected, 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 turned 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 on the current loop increases (that is, the third resistor 18 is added), the voltage of the third pin 17 will decrease. It can be understood that when the second switch tube 16 is turned on, the voltage of the third pin 17 will decrease. Therefore, it can be understood that the voltage of the third pin 17 can be adjusted when the second switch tube 16 is squeezed.
[0077] Optionally, when the first electrode of the battery 11 is a negative electrode and the second electrode of the battery 11 is a positive electrode, as Fig. 9 As shown, the second end of the second switching tube 16 can be directly connected to the first pole of the battery 11 .
[0078] Among them, Fig.10 As shown, when the second switch tube 16 is not pressed, the second switch tube 16 is disconnected, 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 turned 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 short-circuited to the first pole of the battery 11, the voltage of the third pin 17 will decrease. It can be understood that when the second switch tube 16 is turned on, the voltage of the third pin 17 will decrease. Therefore, it can be understood that the voltage of the third pin 17 can be adjusted when the second switch tube 17 is squeezed.
[0079] It can be seen that since a power supply device can be provided in the first integrated circuit, when the path connecting the battery and the mainboard is disconnected, a voltage can be provided to the third pin through the power supply device, so that when the second switch tube is turned on, the voltage of the third pin can be adjusted, and therefore, the first signal can be accurately generated on the third pin.
[0080] In some embodiments of the present application, Fig.11 As shown, the power supply device 19 includes: a power supply unit 24, which is used to provide a voltage to the third pin 17; a first voltage divider unit 25, a first end of the first voltage divider unit 25 is connected to the power supply unit 24, a second end of the first voltage divider unit 25 is connected to the third pin 17, and the first voltage divider unit 25 is used to adjust the voltage provided by the power supply unit 24 to the third pin 17.
[0081] In some embodiments of the present application, the first voltage dividing unit 25 may specifically be a resistor.
[0082] It can be seen that since the power supply device can be provided with a power supply unit and a first voltage divider unit, the voltage provided by the power supply unit to the third pin can be adjusted by the first voltage divider unit so that the power supply unit provides a suitable voltage to the third pin. Therefore, it can be avoided that the third pin and the device connected to the third pin are damaged due to the large voltage provided by the power supply unit to the third pin.
[0083] In some embodiments of the present application, the second end of the second switch tube 16 is connected to the second electrode of the battery 11 through the first integrated circuit 14; optionally, in combination with Fig.11 The above-mentioned first integrated circuit 14 also includes: a second resistor 20, a first end of the second resistor 20 is connected to the fourth pin 21 of the first integrated circuit 14; a third switch tube 22, a first end of the third switch tube 22 is connected to the second end of the second resistor 20, and a second end of the third switch tube 22 is connected to the fifth pin 23 of the first integrated circuit 14.
[0084] In some embodiments of the present application, the third switch tube 22 may be a MOS tube. Of course, the third switch tube 22 may also be other switch tubes, which is not limited in the embodiments of the present application.
[0085] In some embodiments of the present application, the fourth pin 21 may be a VM pin. Of course, the fourth pin 21 may also be other pins, which is not limited in the embodiments of the present application.
[0086] In some embodiments of the present application, the fifth pin 23 may be a VSS pin. Of course, the fifth pin 23 may also be other pins, which is not limited in the embodiments of the present application.
[0087] In the embodiment 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.
[0088] It can be understood that the second end of the second switch tube 16 is connected to the second electrode 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 .
[0089] As can be seen, since the second resistor, the third resistor and the third switch tube can be provided in the first integrated circuit, and the third switch tube is turned on only when the path connecting the battery and the mainboard is disconnected, 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, so that the leakage current in the current loop can be reduced when the path connecting the battery and the mainboard is disconnected, thereby reducing the power consumption of the battery when the path connecting the battery and the mainboard is disconnected; on the other hand, the third switch tube is turned on only when the path connecting the battery and the mainboard is disconnected, so that when the path connecting the battery and the mainboard is connected, the first integrated circuit can be prevented from being affected because the mainboard provides a voltage to the fourth pin. In this way, the power consumption of the battery can be reduced when the path connecting the battery and the mainboard is disconnected, while ensuring that the first integrated circuit is not affected.
[0090] In some implementations of the present application, Fig.10 ,like Fig.12As shown, the power supply device 19 includes: a power supply unit 24, the power supply unit 24 is used to provide a voltage to the third pin 17; a fourth switch tube 26, the first end of which is connected to the power supply unit 24; a second voltage dividing unit 27, the first end of which is connected to the second end of the fourth switch tube 26, the second end of which is connected to the third pin 17, and the second voltage dividing unit 27 is used to adjust the voltage provided by the power supply unit 24 to the third pin 17. In the case where the path connecting the battery 11 and the mainboard 10 is disconnected, the fourth switch tube 26 is turned on.
[0091] It can be understood that the second end of the second switch tube 16 is directly connected to the first electrode of the battery 11 .
[0092] In some embodiments of the present application, the fourth switch tube 26 may be a MOS tube. Of course, the fourth switch tube 26 may also be other switch tubes, which is not limited in the embodiments of the present application.
[0093] In some embodiments of the present application, the second voltage dividing unit 27 may specifically be a resistor.
[0094] Thus, it can be known that, since the power supply device can be provided with a power supply unit, a fourth switch tube and a second voltage divider unit, on the one hand, the voltage provided by the power supply unit to the third pin can be adjusted by the second voltage divider unit so that the power supply unit can provide a suitable voltage to the third pin, thus avoiding the situation that the third pin and the device connected to the third pin are damaged due to the power supply unit providing a large voltage to the third pin; on the other hand, since the fourth switch tube is turned on only when the path connecting the battery and the mainboard is disconnected, it can avoid the situation that the mainboard is affected due to the power supply unit providing a voltage to the third pin when the path connecting the battery and the mainboard is turned on. In this way, the situation that the device of the electronic device is damaged can be reduced under the premise of ensuring that the mainboard is not affected.
[0095] In the embodiment of the present application, the first integrated circuit 14 is further used to control the first switch tube 12 to be turned on according to the first signal, so as to conduct the path connecting the battery 11 and the mainboard.
[0096] 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 the first signal is received; or, the first integrated circuit 14 can first determine whether the first signal satisfies a condition (such as the first condition in the following embodiment) when the first signal is received, and control the first switch tube 12 to be turned on only when the condition is met.
[0097] 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 turn on the second switch tube 16, thereby generating a first signal. Therefore, 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 turn on, so that the path connecting the battery 11 and the mainboard 10 is turned on, so that the user can use the electronic device.
[0098] It can be seen that when it is necessary to control the conduction of the path connecting the battery and the motherboard, the first signal can be generated by controlling the conduction of the second switch tube, so that the first integrated circuit can conduct the path connecting the battery and the motherboard according to the first signal, and the first integrated circuit will not be unable to conduct the path connecting the battery and the motherboard. Therefore, it can be avoided that the user cannot use the electronic device.
[0099] In some embodiments of the present application, when the second switch tube 16 is pressed within a first time period, a first signal satisfying a first condition is generated on the third pin 17; the first integrated circuit 14 is specifically used to control the first switch tube 12 to be turned on when the first signal satisfies the first condition; the first condition includes: the voltage corresponding to the first signal changes once, and the voltage corresponding to the first signal does not change within the first time period.
[0100] In the embodiment of the present application, the voltage of the third pin 17 when the second switch tube 16 is disconnected is different from the voltage when the second switch tube 16 is turned on; the second switch tube 16 is specifically used to be turned on when pressed to adjust the voltage of the third pin 17, thereby generating a first signal on the third pin 17 that satisfies the first condition.
[0101] In some embodiments of the present application, Fig.11, before the second switch tube 16 is pressed, the second switch tube 16 is disconnected, and 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, such as Vpu. When the second switch tube 16 is pressed within the first time length, the second switch tube 16 is turned on within the first time length, and at this time a current loop can be formed by the power supply unit 24, the first voltage divider 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 (e.g., the negative pole) of the battery 11. Since the resistance value on the current loop increases (i.e., compared with the case where the second switch tube 16 is disconnected, the third resistor 18 and the second resistor 20 are added), the voltage of the third pin 17 will drop. The lowest is Vpu*[(Rvm+R2) / (R1+Rvm+R2)], wherein R1 is the resistance of the first voltage divider unit 25, Rvm is the resistance of the third resistor 18, and R2 is the resistance of the second resistor 20, and the voltage of the third pin 17 will be maintained at Vpu*[(Rvm+R2) / (R1+Rvm+R2)] during the first time period, 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 during the first time period, that is, the first signal satisfying the first condition is generated on the third pin 17.
[0102] In some embodiments of the present application, Fig.12 , before the second switch tube 16 is pressed, the second switch tube 16 is disconnected, and 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, such as Vpu. When the second switch tube 16 is pressed within the first time length, the second switch tube 16 is turned on within the first time length, and a current loop can be formed by the power supply unit 24, the fourth switch tube 26, the second voltage divider unit 27, the third pin 17, the second switch tube 16 and the first pole (such as 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 volts v, and the voltage of the third pin 17 will be maintained at 0v within 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 within the first time length, that is, the first signal that meets the first condition is generated on the third pin 17.
[0103] In some embodiments of the present application, when the first integrated circuit 14 controls the first switch tube 12 to be turned on, the electronic device can exit the ship mode.
[0104] Two specific examples are used below to illustrate specific solutions of the first integrated circuit 14 controlling the first switch tube 12 to turn on.
[0105] Combination Fig.11 The circuit structure, such as Fig.13 As shown, the electronic device is in the Ship Mode, at which time the third switch tube 22 is turned on, and the power supply unit 24 provides a voltage Vpu to the third pin 17. When the user wants to use the electronic device, the user can press the second switch tube 16 for a first duration, so that the second switch tube 16 can be turned on within the first 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)] within the first duration, where R1 is the resistance of the first voltage divider unit 25, Rvm is the resistance of the third resistor 18, and R2 is the resistance of the second resistor 20, so as to generate The first integrated circuit 14 can control the first switch tube 12 to conduct when the first signal satisfies the first condition, that is, the voltage corresponding to the first signal changes once (that is, it decreases from Vpu to Vpu*[(Rvm+R2) / (R1+Rvm+R2)]), and the voltage corresponding to the first signal does not change within a first time period (for example, T4) (that is, it is maintained at Vpu*[(Rvm+R2) / (R1+Rvm+R2)]), so that the electronic device can exit the shipping mode. After the electronic device exits the shipping mode, the third switch tube 22 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 increased, for example, increased to Vpu, and maintained at Vpu.
[0106] Combination Fig.12 The circuit structure, such as Fig.14As shown, the electronic device is in the Ship Mode, at which time the fourth switch tube 26 is turned on, and the power supply unit 24 provides a voltage Vpu to the third pin 17. When the user wants to use the electronic device, the user can press the second switch tube 16 for a first duration, so that the second switch tube 16 can be turned on within the first duration (e.g., T4), that is, the voltage of the third pin 17 will be reduced from Vpu to 0v, and maintained at 0v within the first duration (e.g., T4) to generate a first signal (e.g., PS signal), so that the first integrated circuit 14 can control the first switch tube 12 to be turned on when the first signal meets the first condition, that is, the voltage corresponding to the first signal changes once (i.e., decreases from Vpu to 0v), and the voltage corresponding to the first signal does not change (i.e., maintains at 0v) within the first duration (e.g., T4), so that the electronic device can exit the Ship Mode. After the electronic device exits the shipping mode, the fourth switch tube 26 can be turned off, and the mainboard 10 can provide a voltage to the third pin 17 so that the voltage of the third pin 17 can be increased, for example, increased to Vpu and maintained at Vpu.
[0107] It can be seen that when it is necessary to control the conduction of the path connecting the battery and the mainboard, the first signal satisfying the first condition can be generated by controlling the second switch tube to be turned on within the first time period. In this way, the first integrated circuit can control the conduction of the path connecting the battery and the mainboard according to the first signal satisfying the first condition, rather than controlling the conduction of the path connecting the battery and the mainboard according to an arbitrary signal. Therefore, it can avoid the situation where the battery continues to supply power to the mainboard due to interference.
[0108] Fig.15 FIG. 1 is a flow chart of a control method provided in an embodiment of the present application, which is applied to the electronic device in the above embodiment. Fig.15 As shown, the control method provided in the embodiment of the present application may include the following steps 101 and 102.
[0109] Step 101: When a path connecting a battery of an electronic device and a mainboard of the electronic device is turned on, the electronic device detects a first current passing through a first resistor of the electronic device through a detection module of a first integrated circuit of the electronic device.
[0110] In some embodiments of the present application, when the electronic device is in a powered-on state, the channel connecting the battery and the mainboard is turned on, so that the battery can supply power to at least one device connected to the PMIC of the mainboard through the mainboard, so that the user can use the electronic device. In this way, when the electronic device is in a powered-on state, the electronic device can detect the first current passing through the first resistor once through the detection module every second time period, and then the electronic device can obtain the first current through a single detection by the detection module.
[0111] It should be noted that, for 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, reference may be made to the specific description in the above embodiment, and the embodiments of the present application will not be repeated here.
[0112] The second duration may be 1 second. Of course, the second duration may also be other durations, which are not limited in the present embodiment.
[0113] 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 disconnect through the first integrated circuit to disconnect the path connecting the battery and the mainboard.
[0114] In the embodiment of the present application, since the user may not use the electronic device, and when the electronic device is not in use, that is, when the electronic device is in a turned-off 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 a turned-off state by whether the current value of the first current is less than or equal to the preset current value, thereby determining whether to control the first switch tube to disconnect.
[0115] In some embodiments of the present application, the preset current value may be 0.5 milliamperes (mA). Of course, the preset current value may also be other current values, such as 0.3mA-0.7mA, which is not limited in the embodiments of the present application.
[0116] In some embodiments of the present application, the electronic device may directly control the first switch tube to disconnect 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 may make further judgment to determine whether to control the first switch tube to disconnect 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.
[0117] It should be noted that, for the description of the electronic device controlling the first switch tube of the first integrated circuit to be disconnected through the first integrated circuit, reference may be made to the specific description in the above embodiment, and the embodiments of the present application will not be repeated here.
[0118] In some embodiments of the present application, before "the electronic device controls the first switch tube of the first integrated circuit to be disconnected through the first integrated circuit" in the above step 102, the control method provided by the embodiment of the present application may also include the following step 201, and the above step 102 can be specifically implemented through the following step 102a.
[0119] Step 201: When 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.
[0120] In the embodiment of the present 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 a preset current value.
[0121] In the embodiment of the present application, the count value of the first counter indicates the number of times that the current of the first current is less than or equal to the preset current value.
[0122] Step 102a: When the count value of the first counter after increment is greater than or equal to a preset value, the electronic device controls the first switch tube to be disconnected through the first integrated circuit.
[0123] In the embodiment of the present application, since the electronic device may be interfered with, resulting in the measured current passing through the first resistor being less than or equal to the preset current value, if the first switch tube is directly controlled to be disconnected at this time, the electronic device may be shut down while the user is using the electronic device. Therefore, the electronic device may first control the count value of the first counter to increase by 1 when the current value of the first current is less than or equal to the preset current value, and then control the first switch tube to be disconnected when the count value of the first counter after the increase is greater than or equal to the pre-designed value, that is, when 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 shut down while the user is using the electronic device.
[0124] Thus, it can be known that, since when the current value of the first current is less than or equal to the preset current value, the electronic device may not control the first switch tube to be disconnected, but control the count value of the first counter to increase by 1, and determine whether the count value after the increase of the first counter is greater than or equal to the pre-designed 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, that is, to determine whether the electronic device has not been used for a long time. Therefore, when it is determined that the count value after the increase of the first counter is greater than or equal to the pre-designed value, that is, when it is determined that the electronic device has not been used for a long time, the electronic device controls the first switch tube to be disconnected. Therefore, the power consumption of the battery of the electronic device can be reduced under the premise of avoiding the situation that the electronic device is turned off while the user is using the electronic device.
[0125] The embodiment of the present application provides a control method, in which 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 of the electronic device when the path connecting the battery of the electronic device and the mainboard of the electronic device is conductive; and when the current value of the first current is less than or equal to the preset current value, the first switch tube of the first integrated circuit is controlled to be disconnected through the first integrated circuit to disconnect the path connecting the battery and the mainboard. 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, through the detection module, and then when the current value of the first current is less than or equal to the preset current value, that is, when the current value of the current between the battery and the mainboard is small, it is determined that the user does not use the electronic device, and the first switch tube is directly controlled 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 some devices of the electronic device, therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery, thus reducing the situation that the battery has a low power for a long time when the electronic device is not used for a long time, and further reducing the phenomenon of battery bulging, etc., thus, the use safety of the electronic device can be improved.
[0126] In some embodiments of the present application, after the above step 102, the control method provided by the embodiment of the present application may further include the following steps 301 and 302.
[0127] Step 301: When receiving a pressing input from a user on a second switch tube of a mainboard, the electronic device adjusts the voltage of a third pin of a first integrated circuit through the second switch tube to generate a first signal on the third pin.
[0128] It should be noted that, for 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 a first signal on the third pin, reference can be made to the specific description in the above embodiment, and the embodiment of the present application is not limited thereto.
[0129] Step 302: The electronic device controls the first switch tube to turn on through the first integrated circuit according to the first signal, so as to open the path connecting the battery and the mainboard.
[0130] It can be seen that when it is necessary to turn on the path connecting the battery and the motherboard, the first signal can be generated by controlling the second switch tube to turn on, so that the first integrated circuit can turn on the path connecting the battery and the motherboard according to the first signal, and there will be no situation where the first integrated circuit cannot turn on the path connecting the battery and the motherboard. Therefore, it can be avoided that the user cannot use the electronic device.
[0131] In some embodiments of the present application, when the second switch tube is pressed within the first time period, the third pin generates a first signal that satisfies the first condition. Optionally, the step 302 can be implemented by the following step 302a.
[0132] Step 302a: When the first signal satisfies the first condition, the electronic device controls the first switch tube to turn on through the first integrated circuit.
[0133] In the embodiment of the present application, the first condition includes: the voltage corresponding to the first signal changes once, and the voltage corresponding to the first signal does not change within the first time period.
[0134] It can be seen that when it is necessary to turn on the path connecting the battery and the mainboard, the first signal satisfying the first condition can be generated by controlling the second switch tube to be turned on within the first time period. In this way, the first integrated circuit can turn on the path connecting the battery and the mainboard according to the first signal satisfying the first condition, rather than turning on the path connecting the battery and the mainboard according to an arbitrary signal. Therefore, it can be avoided that the battery continues to supply power to the mainboard due to interference.
[0135] The control method provided in the embodiment of the present application can be executed by a control device. In the embodiment of the present application, the control method executed by a control device is taken as an example to illustrate the control device provided in the embodiment of the present application.
[0136] Fig.16 FIG. 1 is a schematic diagram showing the structure of a control device provided in an embodiment of the present application. Fig.16 As shown, the control device 50 provided in the embodiment of the present application may include: a control module 51, which is used to detect a first current passing through a first resistor of the control device 50 through a detection module of a first integrated circuit of the control device 50 when a path connecting a battery of the control device 50 and a mainboard of the control device 50 is turned on; and when a 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 disconnected through the first integrated circuit to disconnect the power supply of the path connecting the battery and the mainboard.
[0137] The embodiment of the present application provides a control device. Since the control device can first detect a first current passing through a first resistor, that is, a current between a battery and a mainboard, through a detection module, and then, when the current value of the first current is less than or equal to a preset current value, that is, when the current value of the current between the battery and the mainboard is small, it is determined that the user is not using the control device, and the first switch tube is directly controlled 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 control device instead of stopping supplying power to some devices of the control device. Therefore, the number of battery-powered equipment can be reduced to reduce battery power consumption, which can reduce the situation where the battery has a low power for a long time when the control device is not used for a long time, and further reduce the occurrence of battery bulging and the like. In this way, the safety of use of the control device can be improved.
[0138] In a possible implementation, the control module 51 is further used to control the count value of the first counter to increase by 1 before the first switch tube of the first integrated circuit is controlled to be disconnected through the first integrated circuit, and the count value of the first counter indicates the number of times the first current is less than or equal to the preset current value. The control module 51 is specifically used to control the first switch tube to be disconnected through the first integrated circuit when the count value of the first counter after the increase is greater than or equal to the pre-designed value.
[0139] In a possible implementation, the control module 51 is further used to control the first switch tube of the first integrated circuit to be disconnected through the first integrated circuit to disconnect the path connecting the battery and the mainboard when the current value of the first current is less than or equal to a preset current value, and then, upon receiving a user's pressing input to the second switch tube of the mainboard, adjust the voltage of the third pin of the first integrated circuit through the second switch tube to generate a first signal on the third pin; and control the first switch tube to be turned on through the first integrated circuit according to the first signal to turn on the path connecting the battery and the mainboard.
[0140] In a possible implementation, when the second switch tube is pressed within the first time length, the third pin generates a first signal that satisfies the first condition; the control module 51 is specifically used to control the first switch tube to conduct through the first integrated circuit when the first signal satisfies the first condition. The first condition includes: 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.
[0141] The control device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile internet device (mobile internet device, MID), an augmented reality (augmentedreality, AR) / virtual reality (virtualreality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (network attached storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0142] The control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0143] The control device provided in the embodiment of the present application can achieve Fig.15 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0144] In some embodiments of the present application, Fig.17 As shown, an embodiment of the present application further provides an electronic device 60, including a processor 61 and a memory 62, wherein the memory 62 stores programs or instructions that can be executed on the processor 61, and when the program or instructions are executed by the processor 61, the various process steps of the above-mentioned control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0145] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0146] Fig.18 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0147] The electronic device 100 includes but is not limited to components such as 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.
[0148] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.18 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0149] Among them, the processor 110 is used to detect the first current passing through the first resistor through the detection module of the first integrated circuit of the electronic device when the path connecting the battery of the electronic device and the mainboard of the electronic device is turned on; and when 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 disconnect through the first integrated circuit to disconnect the path connecting the battery and the mainboard.
[0150] An embodiment of the present application provides an electronic device. Since the electronic device can first detect a first current passing through a first resistor, that is, a current between a battery and a mainboard, through a detection module, and then, when the current value of the first current is less than or equal to a preset current value, that is, when the current value of the current between the battery and the mainboard is small, it is determined that the user is not using the electronic device, and the first switch tube is directly controlled 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 some devices of the electronic device. Therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery. In this way, the situation where the battery has a low power for a long time when the electronic device is not used for a long time can be reduced, and the phenomenon of battery bulging can be reduced. In this way, the safety of the use of the electronic device can be improved.
[0151] In some embodiments of the present application, the processor 110 is also used to control the count value of the first counter to increase by 1 before controlling the first switch tube of the first integrated circuit to disconnect through the first integrated circuit, and the count value of the first counter indicates the number of times the first current is less than or equal to a preset current value.
[0152] The processor 110 is specifically configured to control the first switch tube to be disconnected through the first integrated circuit when the count value of the first counter after increment is greater than or equal to a pre-designed value.
[0153] In some embodiments of the present application, the processor 110 is also used to control the first switch tube of the first integrated circuit to be disconnected through the first integrated circuit to disconnect the path connecting the battery and the mainboard when the current value of the first current is less than or equal to the preset current value, and then, upon receiving a user's pressing input to the second switch tube of the mainboard, adjust the voltage of the third pin of the first integrated circuit through the second switch tube to generate a first signal on the first pin; and control the first switch tube to be turned on through the first integrated circuit according to the first signal to turn on the path connecting the battery and the mainboard for power supply.
[0154] In some embodiments of the present application, when the second switch tube is pressed within a first time period, a first signal satisfying a first condition is generated on the third pin.
[0155] The processor 110 is specifically configured to control the first switch tube to be turned on through the first integrated circuit when the first signal satisfies the first condition.
[0156] The first condition includes: the voltage corresponding to the first signal changes once, and the voltage corresponding to the first signal does not change within a first time period.
[0157] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or 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 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0158] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memories.
[0159] The processor 110 may 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 application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
[0160] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0161] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0162] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0163] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0164] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0165] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0167] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An electronic device, It is characterized in that include: Motherboard; A battery, wherein a first electrode of the battery is connected to a first end of the mainboard, a second electrode of the battery is connected to a second end of the mainboard via a first switch tube, and a first resistor is further provided on a path connecting the battery and the mainboard; a first integrated circuit, the first integrated circuit comprising a detection module, the detection module being configured to detect a first current passing through the first resistor; The first integrated circuit is used to control the first switch tube to be disconnected when the current value of the first current is less than or equal to a preset current value, so as to disconnect the path connecting the battery and the mainboard.
2. The electronic device according to claim 1, It is characterized in that The first resistor is arranged on a path connecting the first pole of the battery and the first end of the main board, or on a path connecting the second pole of the battery and the second end of the main board; The first end of the detection module is connected to the first end of the first resistor through the first pin of the first integrated circuit, and the second end of the detection module is connected to the second end of the first resistor through the second pin of the first integrated circuit.
3. The electronic device according to claim 1, It is characterized in that The mainboard is also provided with a second switch tube, a first end of the second switch tube is connected to the third pin of the first integrated circuit, a second end of the second switch tube is connected to the battery through the first integrated circuit, or a second end of the second switch tube is connected to the battery; The voltage of the third pin when the second switch tube is turned off is different from the voltage of the third pin when the second switch tube is turned on; The second switch tube is used to be turned on when pressed to adjust the voltage of the third pin, thereby generating a first signal on the third pin; The first integrated circuit is further used for controlling the first switch tube to be turned on when the first signal is detected on the third pin, so as to open a path connecting the battery and the mainboard.
4. The electronic device according to claim 3, It is characterized in that The first integrated circuit further comprises: A power supply device is connected to the third pin, and is used for providing voltage to the third pin when the path connecting the battery and the mainboard is disconnected.
5. The electronic device according to claim 4, It is characterized in that 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, wherein a first end of the first voltage dividing unit is connected to the power supply unit, a second end of the first voltage dividing unit is connected to the third pin, and the first voltage dividing unit is used to adjust a voltage provided by the power supply unit to the third pin.
6. The electronic device according to claim 4, It is characterized in that 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, wherein a first end of the fourth switch tube is connected to the power supply unit; a second voltage dividing unit, wherein a first end of the second voltage dividing unit is connected to a second end of the fourth switch tube, a second end of the second voltage dividing unit is connected to the third pin, and the second voltage dividing unit is used to adjust a voltage provided by the power supply unit to the third pin; Wherein, when the path connecting the battery and the mainboard is disconnected, the fourth switch tube is turned on.
7. The electronic device according to claim 3, It is characterized in that The second end of the second switch tube is connected to the second electrode of the battery through the first integrated circuit; The first integrated circuit further comprises: a second resistor, wherein a first end of the second resistor is connected to a fourth pin of the first integrated circuit; a third switch tube, wherein a first end of the third switch tube is connected to the second end of the second resistor, and a second end of the third switch tube is connected to the fifth pin of the first integrated circuit; Wherein, when the path connecting the battery and the mainboard is disconnected, the third switch tube is turned on; The second end of the second switch tube is connected to the fourth pin through a third resistor and a third pin, and the fifth pin is connected to the second electrode of the battery.
8. The electronic device according to claim 3, It is characterized in that When the second switch tube is pressed within a first time period, the first signal satisfying a first condition is generated on the third pin; The first integrated circuit is specifically configured to control the first switch tube to turn on when the first signal satisfying the first condition is detected on the third pin; The first condition includes: a voltage corresponding to the first signal changes once, and the voltage corresponding to the first signal does not change within the first time period.
9. The electronic device according to claim 1, It is characterized in that The electronic device further comprises: a first counter connected to the first integrated circuit; Among them, the first integrated circuit is specifically used to control the count value of the first counter to increase by 1 when the current value of the first current is less than or equal to the preset current value, and to control the first switch tube to be disconnected when the count value after the increase of the first counter is greater than or equal to the pre-designed value.
10. The electronic device according to claim 1, It is characterized in that The resistance of the first resistor is greater than or equal to a preset resistance.
Citation Information
Cited By
Electronic device
WO2026002148A1
