Electronic device
By introducing protection integrated circuits and switches and controllers on the motherboard into electronic devices, the switching on and off of the switches is controlled to generate voltage signals to disconnect the battery from the motherboard, thus solving the problem of battery power consumption in transport mode or when the device is off, and extending the battery's lifespan.
Patent Information
- Application Number
- PCT/CN2025/104008
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-27
- Filing Date
- 2025-06-26
- Publication Date
- 2026-01-02
AI Technical Summary
Even when electronic devices are in transport mode or powered off, the battery continues to consume power, leading to a shorter battery life and reduced battery durability.
By introducing protection integrated circuits and switches and controllers on the motherboard into electronic devices, the switching on and off of the switches is controlled, generating different voltage signals to trigger the protection integrated circuits to disconnect the path between the battery and the motherboard, ensuring that the components on the motherboard are in a non-working state and reducing power consumption.
It effectively reduces battery power consumption in transport mode or when the device is off, extends battery life, and improves battery durability.
Smart Images

Figure CN2025104008_02012026_PF_FP_ABST
Abstract
Description
Electronic device
[0001] Cross Reference to Related Applications
[0002] This application claims priority to the Chinese Patent Application No. 202410849332.0, filed on June 27, 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 energy saving, and particularly relates to an electronic device. BACKGROUND
[0004] Generally, when a user does not use an electronic device for a long time, the user can turn off the electronic device and control the electronic device to enter a ship mode, so that in the ship mode, the battery of the electronic device can stop supplying power to the components of the electronic device, so as to reduce the consumption of the battery power, so as to reduce the case that the service life of the battery is affected due to the low battery power for a long time.
[0005] However, since the battery power of the electronic device is still consumed in the ship mode, if the battery power is low when the electronic device enters the ship mode, the case that the battery power is low for a long time still occurs, and thus the service life of the battery can be affected, so that the durability of the battery of the electronic device is poor. SUMMARY
[0006] The purpose of the embodiments of the present application is to provide an electronic device, which can further reduce the consumption of the battery power when the electronic device is in an off state, so as to reduce the case that the service life of the battery is affected due to the low battery power for a long time when the battery power is low when the electronic device is in the off state, so as to improve the durability of the battery of the electronic device.
[0007] In a first aspect, an electronic device is provided. The electronic device includes a battery, a protection integrated circuit connected with the battery, the protection integrated circuit including a first pin, and a mainboard connected with the battery, the mainboard being provided with a first switch and a first controller, a first end of the first switch being connected with the first pin, a second end of the first switch being connected with the first controller, and the first controller being configured to switch the first end and the second end of the first switch between being turned on and being turned off to generate a first signal on the first pin in a case where a path between the battery and the mainboard is turned on. The voltage of the first pin is different when the first end and the second end of the first switch are turned off and when the first end and the second end of the first switch are turned on. The protection integrated circuit is configured to disconnect the path between the battery and the mainboard according to the first signal in a case where the path between the battery and the mainboard is turned on and the first signal is detected on the first pin.
[0008] In a second aspect, a control method is provided. The control method is applied to the electronic device of the first aspect. The method includes determining whether to enter a transportation mode in a case where a path between a battery of the electronic device and a mainboard of the electronic device is turned on, and switching a first end and a second end of a first switch of the mainboard by a first controller of the mainboard to generate a first signal on a first pin in a case where it is determined to enter the transportation mode, so as to trigger a protection integrated circuit of the electronic device to disconnect the path between the battery and the mainboard. The voltage of the first pin is different when the first end and the second end of the first switch are turned off and when the first end and the second end of the first switch are turned on.
[0009] In a third aspect, a control device is provided. The control device includes a determination module configured to determine whether to enter a transportation mode in a case where a path between a battery of the control device and a mainboard of the control device is turned on, and a control module configured to switch a first end and a second end of a first switch of the mainboard by a first controller of the mainboard to generate a first signal on a first pin in a case where the determination module determines to enter the transportation mode, so as to trigger a protection integrated circuit of the control device to disconnect the path between the battery and the mainboard. The voltage of the first pin is different when the first end and the second end of the first switch are turned off and when the first end and the second end of the first switch are turned on.
[0010] In a fourth aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are executed by the processor to implement the steps of the method of the second aspect.
[0011] In a fifth aspect, an embodiment of the present application provides a readable storage medium, the readable storage medium storing a program or instructions, the program or instructions being executed by a processor to implement the steps of the method in the second aspect.
[0012] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to run a program or instructions to implement the method in the second aspect.
[0013] In a seventh aspect, an embodiment of the present application provides a computer program product, the program product being stored in a storage medium, the program product being executed by at least one processor to implement the method in the second aspect.
[0014] In the embodiment of the present application, the electronic device includes a battery, a protection integrated circuit connected with the battery, and a mainboard connected with the battery, the protection integrated circuit includes a first pin, the mainboard is provided with a first switch and a first controller, a first end of the first switch is connected with the first pin, a second end of the first switch is connected with the first controller, the first controller is configured to switch the first end and the second end of the first switch between being turned on and being turned off in the case that a path between the battery and the mainboard is turned on, the voltage of the first pin when the first end and the second end of the first switch are turned off is different from the voltage of the first pin when the first end and the second end of the first switch are turned on, and the protection integrated circuit is configured to disconnect the path between the battery and the mainboard according to the first signal in the case that the path between the battery and the mainboard is turned on and the first signal is detected on the first pin. Since the protection integrated circuit of the electronic device can be provided with the first pin, and the mainboard can be provided with the first switch and the first controller, the first controller can generate the first signal on the first pin by switching the first end and the second end of the first switch between being turned on and being turned off in the case that the path between the battery and the mainboard is turned on, so as to trigger the protection integrated circuit to disconnect the path between the battery and the mainboard, so that the battery can stop supplying power to the mainboard, and thus all components on the mainboard can be in a non-working state, and therefore, the consumption of the battery in the transportation mode of the electronic device can be reduced, so as to reduce the case that the service life of the battery is affected due to the low battery for a long time in the case that the battery is low when the electronic device enters the transportation mode, and thus the durability of the battery of the electronic device can be improved. 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 for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0016] FIG. 1A is a schematic diagram of a circuit connection relationship of an electronic device in the related art;
[0017] FIG. 1B is a schematic diagram of a circuit structure of an electronic device in the related art;
[0018] FIG. 2 is a schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present application;
[0019] FIG. 3 is a schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present application;
[0020] FIG. 4 is a schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present application;
[0021] FIG. 5 is a schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present application;
[0022] FIG. 6 is a schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present application;
[0023] FIG. 7 is a schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present application;
[0024] FIG. 8 is a schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present application;
[0025] FIG. 9 is a flow diagram of a control method provided by an embodiment of the present application;
[0026] FIG. 10 is a timing control diagram of a control method provided by an embodiment of the present application;
[0027] FIG. 11 is a schematic diagram of a structure of a control device provided by an embodiment of the present application;
[0028] FIG. 12 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application;
[0029] FIG. 13 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, 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 but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0031] The terms "first", "second" in the description and claims of the present application can explicitly or implicitly include one or more features. In the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise specified. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship.
[0032] 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 purpose of facilitating the description of 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.
[0033] 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 a person of ordinary skill in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0034] 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 applied to the scene of the electronic device being powered off.
[0035] For the scene of the transportation mode
[0036] In the related art, as shown in FIG. 1A, the VBAT end of the battery 01 of the electronic device can be connected with a switch tube QBAT on a power management integrated circuit (PMIC) of the mainboard 02, and a plurality of PMICs, such as PMIC1, PMIC2, and the like, are connected through the VPH end corresponding to the switch tube QBAT. Each PMIC can be connected with at least one component. Specifically, as shown in FIG. 1B, the battery 01 of the electronic device can be connected with the mainboard 02 through a protection integrated circuit 03. The p+ node in FIG. 1B can be understood as the VBAT end of the battery 01. The switch tube QBAT connected with the VBAT end of the battery 01 is arranged in the PMIC of the mainboard 02. The VPH end corresponding to the switch tube QBAT is a VPH_PWR pin (i.e., the VPH end) on the PMIC of the mainboard 02. The VPH_PWR pin is connected with the plurality of PMICs. In this way, when the user does not use the electronic device for a long time, the user can shut down the electronic device and control the electronic device to enter a transportation mode, so that the mainboard 02 of the electronic device can control the switch tube QBAT to be turned off, to stop supplying power to the components connected with the PMIC through the VPH_PWR pin, thereby reducing the consumption of the power of the battery 01, to reduce the case that the service life of the battery 01 is affected due to the low power of the battery 01 for a long time. However, since there can be a case that the VBAT end of the battery 01 is directly connected with a component (such as a radio frequency component, an audio component, and the like), at this time, even if the switch tube QBAT has been turned off, the VBAT end of the battery 01 is still connected with the radio frequency component, the audio component, and the like, that is, the battery 01 still supplies power to the radio frequency component, the audio component, and the like. This causes the power of the battery 01 of the electronic device to continue to be consumed in the transportation mode. If the power of the battery 01 is low when the electronic device enters the transportation mode, the case that the power of the battery 01 is low for a long time still occurs, and thus the service life of the battery 01 can be affected. As a result, the durability of the battery 01 of the electronic device is poor.
[0037] Scenario of shutting down the electronic device
[0038] 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, which will not be described herein again.
[0039] 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 battery 10; a protection integrated circuit 11 connected with the battery 10, the protection integrated circuit including a first pin 12; a mainboard 13 connected with the battery 10, the mainboard 13 being provided with a first switch 14 and a first controller 15, a first end of the first switch 14 being connected with the first pin 12, a second end of the first switch 14 being connected with the first controller 15, the first controller 15 being configured to switch the first end and the second end of the first switch 14 between being turned on and being turned off in a case that a passage between the battery 10 and the mainboard 13 is turned on, so as to generate a first signal on the first pin 12.
[0040] In some embodiments of the present application, the battery 10 can be any one of the following: a silicon negative electrode battery, a steel shell battery. Of course, the battery 10 can also be other batteries, which are not limited in the embodiments of the present application.
[0041] It should be noted that FIG. 2 is a schematic diagram taking the battery 10 as a silicon negative electrode battery. In some embodiments of the present application, the protection integrated circuit 11 can be integrally arranged with the battery 10, that is, the two can be referred to as a battery pack; or the protection integrated circuit 11 can be arranged separately from the battery 10. The embodiments of the present application do not limit this.
[0042] In some embodiments of the present application, in a case that the battery 10 is a silicon negative electrode battery, in combination with FIG. 2, the positive electrode of the battery 10 is connected with the mainboard 13, the VDD pin and the VSS pin of the protection integrated circuit 11 can be connected with the positive electrode and the negative electrode of the battery 10 respectively, the DOUT pin of the protection integrated circuit 11 can be connected with the negative electrode of the battery 10 and the mainboard 13 through a DOUT MOS tube, and the COUT pin of the protection integrated circuit 11 can be connected with the negative electrode of the battery 10 and the mainboard 13 through a COUT MOS tube, that is, the negative electrode of the battery 10 can be connected with the mainboard 13 through the DOUT MOS tube and the COUT MOS tube.
[0043] In some embodiments of the present application, in a case that the battery 10 is a steel shell battery, as shown in FIG. 3, the positive electrode of the battery 10 is connected with the mainboard 13, the VDD pin and the VSS pin of the protection integrated circuit 11 can be connected with the positive electrode and the negative electrode of the battery 10 respectively, the DOUT pin of the protection integrated circuit 11 can be connected with the negative electrode of the battery 10 and the mainboard 13 through a DOUT MOS tube, and the COUT pin of the protection integrated circuit 11 can be connected with the negative electrode of the battery 10 and the mainboard 13 through a COUT MOS tube.
[0044] In some embodiments of the present application, the first pin 12 can be referred to as a power ship (PS) pin. The PS pin is used to protect the integrated circuit 11 to identify whether the path between the battery 10 and the motherboard 13 needs to be disconnected. In combination with FIGS. 2 and 3, the protection integrated circuit 11 can turn on the path between the battery 10 and the motherboard 13 by controlling the DOUT MOS tube and the COUT MOS tube to be both turned on, or can turn off the path between the battery 10 and the motherboard 13 by controlling at least one of the DOUT MOS tube and the COUT MOS tube to be turned off, for example, the DOUT MOS tube is turned off. In which, the protection integrated circuit 11 can identify whether the path between the battery 10 and the motherboard 13 needs to be disconnected according to whether the first signal is detected on the first pin 12.
[0045] In some embodiments of the present application, the first switch 14 can be a single-pole double-throw switch. Of course, the first switch 14 can also be other switches, which are not limited in the embodiments of the present application. The first end of the first switch 14 can be a fixed end, and the second end of the first switch 14 can be a movable end. In some embodiments of the present application, the first controller 15 can be an application processor (AP). Of course, the first controller 15 can also be other processors, which are not limited in the embodiments of the present application. In some embodiments of the present application, the first controller 15 can control the first end and the second end of the first switch to reciprocally switch between being turned on and being turned off at a preset frequency (for example, the first frequency and the second frequency in the following embodiments); or the first controller 15 can control the first end and the second end of the first switch to switch from being turned on to being turned off, or from being turned off to being turned on.
[0046] In the embodiments of the present application, the voltage of the first pin 12 when the first end and the second end of the first switch 14 are turned off is different from the voltage of the first pin 12 when the first end and the second end of the first switch 14 are turned on. In some embodiments of the present application, the protection integrated circuit 11 can provide a voltage to the first pin 12 in real time, and the first controller 15 can provide a different another voltage to the first pin 12 when the first end and the second end of the first switch 14 are turned on, so that the voltage of the first pin 12 when the first end and the second end of the first switch 14 are turned off can be the one voltage, and the voltage of the first pin 12 when the first end and the second end of the first switch 14 are turned on can be the another voltage.
[0047] In the embodiments of the present application, the protection integrated circuit 11 is configured to disconnect the path between the battery 10 and the mainboard 13 according to the first signal when the path between the battery 10 and the mainboard 13 is turned on and the first signal is detected on the first pin 12. In some embodiments of the present application, when the path between the battery 10 and the mainboard 13 is turned on, if the first signal is detected on the first pin 12, it can be considered that the mainboard 13 determines to disconnect the path between the battery 10 and the mainboard 13, and thus the protection integrated circuit 11 can disconnect the path between the battery 10 and the mainboard 13. In some embodiments of the present application, the protection integrated circuit 11 comprises a first switch tube (for example, the DOUT MOS tube described above), and thus the protection integrated circuit 11 can disconnect the first switch tube to disconnect the path between the battery 10 and the mainboard 13.
[0048] It should be noted that in the related art, the first switch tube is not closed, so that part of the components on the mainboard 13 and part of the components connected with the mainboard 13 can still be in a working state, and in the embodiments of the present application, the protection integrated circuit 11 can disconnect the first switch tube, so that all the components on the mainboard 13 and all the components connected with the mainboard 13 are in a non-working state, and thus the power consumption of the battery 10 can be further reduced.
[0049] The embodiment of the present application provides an electronic device, which comprises a battery, a protection integrated circuit connected with the battery and a mainboard connected with the battery, wherein the protection integrated circuit comprises a first pin, the mainboard is provided with a first switch and a first controller, a first end of the first switch is connected with the first pin, a second end of the first switch is connected with the first controller, and the first controller is used for switching the first end and the second end of the first switch between being turned on and being turned off in the case that a path between the battery and the mainboard is turned on; wherein the voltage of the first pin when the first end and the second end of the first switch are turned off is different from the voltage of the first pin when the first end and the second end of the first switch are turned on; and the protection integrated circuit is used for disconnecting the path between the battery and the mainboard according to the first signal in the case that the path between the battery and the mainboard is turned on and the first signal is detected on the first pin. Since the protection integrated circuit of the electronic device can be provided with the first pin, and the mainboard can be provided with the first switch and the first controller, the first controller can generate the first signal on the first pin by switching the first end and the second end of the first switch between being turned on and being turned off in the case that the path between the battery and the mainboard is turned on, so as to trigger the protection integrated circuit to disconnect the path between the battery and the mainboard, so that the battery can stop supplying power to the mainboard, and thus all components on the mainboard can be in a non-working state, thereby reducing the power consumption of the battery in the electronic device in the transportation mode, so as to reduce the case that the service life of the battery is affected due to the long time of low battery power in the case that the power of the battery is low when the electronic device enters the transportation mode, and thus the durability of the battery of the electronic device can be improved.
[0050] In some embodiments of the present application, as shown in Figure 4 in combination with Figure 2, the above-mentioned protection integrated circuit 11 further comprises a power supply device 16 connected with the first pin 12, the power supply device 16 is used for providing the first pin 12 with a first voltage in the case that the first end and the second end of the first switch 14 are turned off; wherein the first controller 15 is specifically used for providing the first pin 12 with a second voltage in the case that the first end and the second end of the first switch 14 are turned on, and controlling the first end and the second end of the first switch 14 to reciprocally switch between being turned on and being turned off for a first number of times within a first time duration in the case that the path between the battery 10 and the mainboard 13 is turned on, so as to generate the first signal meeting the first condition on the first pin; the protection integrated circuit 11 is specifically used for disconnecting the path between the battery 10 and the mainboard 13 in the case that the path between the battery 10 and the mainboard 13 is turned on and the first signal meeting the first condition is detected on the first pin 12; and the first condition is that the number of times that the voltage corresponding to the first signal reciprocally changes between the first voltage and the second voltage within the first time duration is the first number of times.
[0051] In some embodiments of the present application, the first voltage can be 1.2 volts (v) specifically. Of course, the first voltage can also be other voltages, which are not limited herein in the embodiments of the present application. In some embodiments of the present application, as shown in FIG. 5 in combination with FIG. 4, the power supply device 16 includes: a power supply unit 17, configured to provide a voltage to the first pin 12 when the first end and the second end of the first switch 14 are disconnected; a voltage dividing module 18, a first end of the voltage dividing module 18 is connected with the power supply unit 17, a second end of the voltage dividing module 18 is grounded, and a third end of the voltage dividing module 18 is connected with the first pin 12; wherein the voltage dividing module 18 is configured to adjust the voltage provided by the power supply unit 17 to the first pin 12, so that the power supply unit 17 provides the first voltage to the first pin 12.
[0052] In some embodiments of the present application, the voltage provided by the power supply unit 17 can be higher than the first voltage.
[0053] In some embodiments of the present application, as shown in FIG. 6 in combination with FIG. 5, the voltage dividing module 18 can include a first resistor 181 and a second resistor 182, a first end of the first resistor 181 can be the first end of the voltage dividing module 18, i.e. the first end of the first resistor 181 is connected with the power supply unit 17, a second end of the first resistor 181 can be the third end of the voltage dividing module 18, i.e. the second end of the first resistor 181 can be connected with the first pin 12, a first end of the second resistor 182 is connected with the second end of the first resistor 181, and a second end of the second resistor 182 is grounded.
[0054] As can be seen, since the power supply device can include a power supply unit and a voltage dividing module, the voltage provided by the power supply unit to the first pin can be divided by the voltage dividing module to the first voltage, so that the problem that the first pin or the components connected with the first pin are damaged due to the high voltage provided by the power supply unit can be avoided.
[0055] In the embodiments of the present application, the second voltage can be greater than the first voltage. Specifically, the second voltage can be 1.8v. Of course, the second voltage can also be other values, which are not limited herein in the embodiments of the present application.
[0056] In some embodiments of the present application, the first controller 15 is specifically configured to, when it is determined that the power consumption of the battery needs to be reduced, control the first end and the second end of the first switch 14 to reciprocally switch between being turned on and being turned off for a first number of times within a first time length, so as to generate a first signal on the first pin 12 that satisfies a first condition. The need to reduce the power consumption of the battery can include at least one of the following: entering a transportation mode, being in a shutdown state.
[0057] Therefore, the first controller can accurately generate the first signal meeting the first condition on the first pin by controlling the first switch to switch between the first end and the second end of the first switch, so as to accurately trigger the protection integrated circuit to disconnect the path between the battery and the mainboard, so that all components on the mainboard are in a non-working state, thereby reducing the power consumption of the battery when the electronic device is in the shutdown state. In addition, since the protection integrated circuit disconnects the path between the battery and the mainboard only when the first signal meets the first condition, the situation that the battery stops supplying power to the mainboard due to the false recognition of the voltage of the first pin can be avoided.
[0058] In some embodiments of the present application, as shown in FIG. 7, the mainboard 13 further comprises a second switch 19, a first end of the second switch 19 is connected with a third end of the first switch 14, a second end of the second switch 19 is grounded, and the second switch 19 is used to be conductive when being pressed. In some embodiments of the present application, the second switch 19 can be a press switch, which can be conductive when receiving a press and be disconnected when the press is over. Of course, the second switch 19 can also be other switches, which are not limited in the embodiments of the present application.
[0059] It can be understood that the second switch 19 can be conductive when receiving a press, at this time the third end of the first switch 14 is grounded, and the second switch can be disconnected when the press is over, at this time the third end of the first switch 14 is no longer grounded.
[0060] In some embodiments of the present application, the second switch 19 can be a power key.
[0061] In the embodiments of the present application, the first end and the third end of the first switch 14 are conductive when the path between the battery 10 and the mainboard 13 is disconnected. The third end of the first switch 14 can be another moving end of the first switch 14.
[0062] It can be understood that, in the case that the path between the battery 10 and the mainboard 13 is disconnected, the first controller 15 is in a power-off state, that is, the first controller 15 cannot control the first switch 14, and cannot provide the second voltage to the first pin 12 when the first ends and the second ends of the first switch 14 are connected, so the first end of the first switch 14 is automatically switched to be conductive with the third end in the case that the path between the battery 10 and the mainboard 13 is disconnected, so that the voltage of the first pin 12 can be changed through the second switch 19.
[0063] In the embodiments of the present application, in the case that the first end and the third end of the first switch 14 are conductive, the voltage of the first pin 12 when the second switch 19 is disconnected is different from the voltage when the second switch 14 is conductive.
[0064] In some embodiments of the present application, in the case that the first end and the third end of the first switch 14 are conductive, if the second switch 19 is disconnected, the voltage of the first pin 12 is the first voltage; if the second switch is conductive, it can be considered that the first pin 12 is grounded, that is, the voltage of the first pin 12 is 0. In the embodiments of the present application, the protection integrated circuit 11 is also used to conduct the path between the battery 10 and the mainboard 13 according to the second signal in the case that the path between the battery 10 and the mainboard 13 is disconnected and the second signal is detected on the first pin 12.
[0065] In some embodiments of the present application, in the case that the path between the battery 10 and the mainboard 13 is disconnected, if the second signal is detected on the first pin 12, it can be considered that the mainboard 13 determines that the path between the battery 10 and the mainboard 13 needs to be conductive, so the protection integrated circuit 11 can conduct the path between the battery 10 and the mainboard 13. In some embodiments of the present application, the protection integrated circuit 11 includes a first switch tube (for example, the above-mentioned DOUT MOS tube), so that the protection integrated circuit 11 can conduct the first switch tube to conduct the path between the battery 10 and the mainboard 13.
[0066] As can be seen, since the second switch can also be provided on the mainboard, after the path between the battery and the mainboard is disconnected, the second switch tube can also be conducted by pressing the second switch to generate the second signal on the first pin to trigger the protection integrated circuit to conduct the path between the battery and the mainboard, so that the case that the electronic device cannot conduct the path between the battery and the mainboard due to the non-working state of all components on the mainboard in the case that the path between the battery and the mainboard is disconnected can be avoided, and thus the case that the electronic device cannot be used can be avoided.
[0067] In some embodiments of the present application, the voltage of the first pin 12 when the second switch 19 is off is the first voltage, and the voltage of the first pin 12 when the second switch 19 is on is the third voltage, in the case that the first end and the third end of the first switch 14 are on. The above-mentioned protection integrated circuit 11 is specifically used for turning on the path between the battery 10 and the mainboard 13 according to the second signal in the case that the path between the battery 10 and the mainboard 13 is off, and the second signal meeting the second condition is detected on the first pin 12; the second condition is that the voltage corresponding to the second signal changes from the first voltage to the third voltage and is maintained at the third voltage within the second time length. In some embodiments of the present application, the third voltage can be 0.
[0068] In some embodiments of the present application, the second switch 19 can be turned on in the case of receiving pressing, at this time, the voltage of the first pin 12 changes from the first voltage to the third voltage, at this time, in the case that the pressing lasts for the second time length, the voltage of the first pin 12 can change from the first voltage to the third voltage and be maintained at the third voltage within the second time length, that is, the first signal meeting the second condition can be generated on the first pin 12, so as to trigger the protection integrated circuit 11 to turn on the path between the battery 10 and the mainboard 13.
[0069] As can be seen, since the voltage of the first pin when the second switch is off is the first voltage, and the voltage of the first pin when the second switch is on is the third voltage, in the case that the first end and the third end of the first switch are on, when the user needs to use the electronic device, the path between the battery and the mainboard can be accurately triggered to be turned on by pressing the second switch for the second time length, so that the case that the electronic device cannot turn on the path between the battery and the mainboard due to the path between the battery and the mainboard being off and all components on the mainboard being in a non-working state can be avoided, and the case that the electronic device cannot be used can be avoided. Of course, the first controller 15 can also realize other functions by controlling the first switch, which will be illustrated below.
[0070] In some embodiments of the present application, the first controller 15 is further configured to control the first end of the first switch 14 to be alternatively conductive with the second end and the third end when the electronic device is in the powered-on state; the voltage of the first pin 12 is different when the first end of the first switch 14 is conductive with the second end and when the first end of the first switch 14 is conductive with the third end when the electronic device is in the powered-on state; the protection integrated circuit 11 is further configured to set the low-voltage protection threshold to the first voltage threshold when the electronic device is in the powered-on state and the third signal is detected on the first pin 12; or, the first end of the first switch 14 is conductive with the third end when the electronic device is in the powered-off state, and the electronic device can provide a voltage to the first pin 12; the voltage of the first pin 12 is different when the electronic device provides the voltage to the first pin 12 and when the electronic device does not provide the voltage to the first pin 12 when the first end of the first switch 14 is conductive with the third end when the electronic device is in the powered-off state. The protection integrated circuit 11 is further configured to set the low-voltage protection threshold to the second voltage threshold when the electronic device is in the powered-off state and the fourth signal is detected on the first pin 12; the second voltage threshold is higher than the first voltage threshold.
[0071] The first end of the first switch 14 being alternatively conductive with the second end and the third end can be understood as follows: the first end of the first switch 14 is first conductive with the second end, then the first end of the first switch 14 is disconnected with the second end, and the first end of the first switch 14 is conductive with the third end, and then the above steps are repeated.
[0072] In some embodiments of the present application, the voltage of the first pin 12 when the first end of the first switch 14 is conductive with the second end can be the second voltage, and the voltage of the first pin 12 when the first end of the first switch 14 is conductive with the third end can be the first voltage when the electronic device is in the powered-on state.
[0073] In some embodiments of the present application, the low-voltage protection threshold can be understood as a threshold preset in the protection integrated circuit 11, and the electronic device will be powered off when the voltage of the battery 10 is less than the threshold.
[0074] In some embodiments of the present application, the first voltage threshold can be specifically 2.3v. Of course, the first voltage threshold can also be other values, which are not limited in the embodiments of the present application.
[0075] In the embodiments of the present application, since the battery 10 may have a low power level when the electronic device is in the powered-on state, if the electronic device needs to perform a task with a high load, the electronic device may be powered off. Therefore, in order to avoid the above situation, the first controller 15 can also control the first end of the first switch 14 to be alternately conductive with the second end and the third end when the electronic device is in the powered-on state, so as to generate a third signal on the first pin 12, thereby triggering the protection integrated circuit 11 to set the low-voltage protection threshold to a first voltage threshold with a lower threshold value. In this way, the situation that the electronic device is powered off during the process of performing a task with a high load can be avoided. The first controller 15 can first control the first end and the second end of the first switch 14 to be conductive, and then control the first end and the third end of the first switch to be conductive, and then repeat the above steps to control the first end of the first switch 14 to be alternately conductive with the second end and the third end.
[0076] In some embodiments of the present application, when the first end and the third end of the first switch 14 are conductive when the electronic device is in the powered-off state, if the electronic device provides a voltage to the first pin 12 through the third end of the first switch 14, the voltage of the first pin 12 can be the voltage provided by the electronic device, and if the electronic device does not provide a voltage to the first pin 12 through the third end of the first switch 14, the voltage of the first pin 12 can be the first voltage. The third end of the first switch 14 can also be connected to other devices of the electronic device, so that the electronic device can provide a voltage to the first pin 12 through the other devices when the electronic device is in the powered-off state. The above-mentioned other devices can be any of the following: other power supply devices (i.e. power supply devices other than the power supply device in the above embodiments), other controllers (i.e. controllers other than the first controller in the above embodiments). In some embodiments of the present application, the above-mentioned second voltage threshold can be 2.6v. Of course, the second voltage threshold can also be other values, which are not limited in the embodiments of the present application.
[0077] In the embodiments of the present application, since the battery 10 may have a low power in the case that the electronic device is in the shutdown state, the service life of the battery may be affected and the battery may be bulged in the case that the electronic device is in the shutdown state for a long time. Therefore, in order to avoid the above problems, the first end and the third end of the first switch are turned on in the case that the electronic device is in the shutdown state, and the electronic device can provide a voltage to the first pin 12 to generate a fourth signal on the first pin 12, so as to trigger the protection integrated circuit 11 to set the low-voltage protection threshold to a second voltage threshold with a higher threshold value. Then, the electronic device can enter the transportation mode in the case that the electronic device is in the shutdown state and the voltage of the battery reaches the second voltage threshold, for example, the path between the battery 10 and the mainboard 13 is disconnected, so as to further reduce the energy consumption of the electronic device in the shutdown state.
[0078] As can be seen, since the protection integrated circuit can set the low-voltage protection threshold to the first voltage threshold with a lower threshold value in the case that the electronic device is in the startup state and the third signal is detected on the first pin, the electronic device can avoid shutdown in the process of executing a task with a high load. Alternatively, the protection integrated circuit can set the low-voltage protection threshold to the second voltage threshold with a higher threshold value in the case that the electronic device is in the shutdown state and the fourth signal is detected on the first pin. In this way, the electronic device can enter the transportation mode in the case that the electronic device is in the shutdown state and the voltage of the battery reaches the second voltage threshold, so as to further reduce the energy consumption of the electronic device in the shutdown state, reduce the case that the voltage of the battery is low for a long time, and avoid the influence of low voltage on the service life of the battery and the bulging of the battery.
[0079] In some embodiments of the present application, the voltage of the first pin 12 is the first voltage in the case that the first end and the third end of the first switch 14 are turned on. The first controller 15 is specifically configured to provide the first pin 12 with the second voltage in the case that the first end and the second end of the first switch 14 are turned on, and control the first end of the first switch 14 to be alternately turned on with the second end and the third end for a second number of times within a third time length in the case that the electronic device is in the startup state, so as to generate a third signal satisfying a third condition on the first pin 12. The protection integrated circuit 11 is specifically configured to set the low-voltage protection threshold to the first voltage threshold in the case that the electronic device is in the startup state and the third signal satisfying the third condition is detected on the first pin 12. The third condition is that the number of times that the voltage corresponding to the third signal reciprocates between the first voltage and the second voltage within the third time length is the second number of times.
[0080] In the embodiments of the present application, if the third signal meeting the third condition is detected on the first pin 12 when the electronic device is in the powered-on state, it can be considered that the low-voltage protection threshold of the protection integrated circuit 11 needs to be adjusted lower, and therefore, the protection integrated circuit 11 can adjust the low-voltage protection threshold to the first voltage threshold when the third signal meeting the third condition is detected on the first pin 12.
[0081] It can be known in this way that, since the first controller can control the first end of the first switch to be alternately conductive with the second end and the third end for the second time within the third time period to generate the third signal meeting the third condition on the first pin when the electronic device is in the powered-on state, the low-voltage protection threshold of the protection integrated circuit can be quickly adjusted, and therefore, the phenomenon that the electronic device is powered off during the execution of a task with a high load when the battery has a low power can be avoided.
[0082] In some embodiments of the present application, when the electronic device is in the powered-on state, the voltage of the first pin 12 when the first end and the second end of the first switch 14 are conductive is the first voltage. Optionally, as shown in FIG. 8, the mainboard 13 further includes a power management integrated circuit 20 connected with the third end of the first switch 14, and the power management integrated circuit 20 is configured to provide a fourth voltage to the first pin 12 when the electronic device is in the powered-off state and the first end and the third end of the first switch 14 are conductive. The protection integrated circuit 11 is specifically configured to set the low-voltage protection threshold to the second voltage threshold when the electronic device is in the powered-off state and a fourth signal meeting a fourth condition is detected on the first pin 12. The fourth condition is that the voltage corresponding to the fourth signal changes from the first voltage to the fourth voltage and is maintained at the fourth voltage within a fourth time period. It can be understood that the voltage of the first pin 12 can change to the fourth voltage after the fourth voltage is provided to the first pin 12.
[0083] It should be noted that the structure of the power management integrated circuit 20 can be described in the related art, and the embodiments of the present application will not be described here. In some embodiments of the present application, the fourth voltage can be specifically 1.8v. Of course, the fourth voltage can also be other values, which are not limited in the embodiments of the present application.
[0084] In the embodiments of the present application, if the fourth signal meeting the fourth condition is detected on the first pin 12 when the electronic device is in the powered-off state, it can be considered that the low-voltage protection threshold of the protection integrated circuit 11 needs to be adjusted higher, and therefore, the protection integrated circuit 11 can adjust the low-voltage protection threshold to the second voltage threshold when the fourth signal meeting the fourth condition is detected on the first pin 12.
[0085] Thus, it is known that, since the power management integrated circuit is further arranged on the mainboard, in the case that the electronic device is in the shutdown state and the first end and the third end of the first switch are conductive, the fourth signal meeting the fourth condition can be generated on the first pin by the power management integrated circuit, so that the protection integrated circuit can be accurately triggered to increase the low-voltage protection threshold, and thus the influence on the service life of the battery due to the low battery level for a long time can be avoided.
[0086] In some embodiments of the present application, in combination with FIG. 8, the third end of the first switch 14 is connected to the power management integrated circuit 20 through a diode 21; wherein the third end of the first switch 14 is connected to the negative electrode of the diode 21, and the power management integrated circuit 20 is connected to the positive electrode of the diode 21.
[0087] Thus, it is known that, since the third end of the first switch is connected to the power management integrated circuit through the diode, instead of being directly connected to the power management integrated circuit, the influence of the voltage of the first pin on the power management integrated circuit can be avoided in the case that the first end and the third end of the first switch are connected.
[0088] FIG. 9 shows a flowchart of a control method provided by an embodiment of the present application, applied to the electronic device in the above embodiments. As shown in FIG. 9, the control method provided by an embodiment of the present application can include the following steps 101 and 102.
[0089] Step 101: In the case that the path between the battery of the electronic device and the mainboard of the electronic device is conductive, the electronic device determines whether to enter the transportation mode.
[0090] In some embodiments of the present application, in the case that the electronic device is completed, a predetermined configuration can be performed in the electronic device first, so that after the configuration is completed, the electronic device can determine whether to enter the transportation mode.
[0091] It should be noted that the description of the transportation mode can refer to the specific description in the related art, and the embodiments of the present application will not be described here. In some embodiments of the present application, the electronic device can determine whether to enter the transportation mode according to whether a predetermined operation in the electronic device is received. The predetermined operation can be an operation on the screen of the electronic device or an operation on the physical button of the electronic device.
[0092] Step 102: In the case that it is determined to enter the transportation mode, the electronic device controls the first end and the second end of the first switch of the mainboard to switch between conductive and non-conductive by the first controller of the mainboard, so as to generate the first signal on the first pin, thereby triggering the protection integrated circuit of the electronic device to disconnect the path between the battery and the mainboard.
[0093] In the embodiments of the present application, the voltage of the first pin when the first end and the second end of the first switch are disconnected is different from the voltage when the first end and the second end of the first switch are connected.
[0094] In some embodiments of the present application, the voltage of the first pin when the first end and the second end of the first switch are disconnected is a first voltage, and the voltage when the first end and the second end of the first switch are connected is a second voltage. Optionally, the step 102 can be implemented by the following step 102a.
[0095] In the step 102a, when it is determined that the transportation mode is entered, the first end and the second end of the first switch are switched between being connected and being disconnected for a first number of times within a first time period by the first controller, so as to generate a first signal on the first pin that satisfies a first condition, thereby triggering the protection integrated circuit of the electronic device to disconnect the path between the battery and the mainboard.
[0096] In the embodiments of the present application, the first condition is that the number of times that the voltage corresponding to the first signal is switched between the first voltage and the second voltage within the first time period is the first number of times. As can be seen, since the first controller needs to control the first end and the second end of the first switch to be switched between being connected and being disconnected for the first number of times within the first time period, the protection integrated circuit of the electronic device can be triggered to disconnect the path between the battery and the mainboard, so that the situation that the electronic device is triggered to disconnect the path between the battery and the mainboard due to misoperation or interference can be avoided.
[0097] The embodiments of the present application provide a control method, in which, when the path between the battery and the mainboard of the electronic device is connected, it is determined whether the transportation mode is entered; and when it is determined that the transportation mode is entered, the first end and the second end of the first switch of the mainboard are switched between being connected and being disconnected by the first controller of the mainboard, so as to generate a first signal on the first pin, thereby triggering the protection integrated circuit of the electronic device to disconnect the path between the battery and the mainboard; wherein the voltage of the first pin when the first end and the second end of the first switch are disconnected is different from the voltage when the first end and the second end of the first switch are connected. Since the electronic device can control the first end and the second end of the first switch to be switched between being connected and being disconnected by the first controller when it is determined that the transportation mode is entered, so as to generate a first signal on the first pin to trigger the protection integrated circuit to disconnect the path between the battery and the mainboard, so that the battery can stop supplying power to the mainboard, thereby making all components connected to the mainboard be in a non-working state, the consumption of the battery of the electronic device in the transportation mode can be reduced, which can reduce the situation that the service life of the battery is affected due to the long time of low battery power when the battery is low when the electronic device enters the transportation mode, so that the durability of the battery of the electronic device can be improved.
[0098] In some embodiments of the present application, the first end and the third end of the first switch are turned on in the case that the path between the battery and the mainboard is disconnected. Optionally, after the step 102, the method provided by the embodiments of the present application can further include the following steps 201 and 202.
[0099] The step 201, the electronic device receives a press input of the second switch of the mainboard by a user.
[0100] In some embodiments of the present application, the user can press the second switch in the case that the user needs the electronic device to exit the shipping mode.
[0101] The step 202, the electronic device triggers the protection integrated circuit to turn on the path between the battery and the mainboard and exits the shipping mode in response to the press input.
[0102] In the embodiments of the present application, the voltage of the first pin when the second switch is turned off is different from the voltage when the second switch is turned on in the case that the first end and the third end of the first switch are turned on.
[0103] Therefore, when the user needs the electronic device to exit the shipping mode and use the electronic device, the user can directly press the electronic device to make the electronic device directly exit the shipping mode and trigger the protection integrated circuit to turn on the path between the battery and the mainboard, without the electronic device being unable to respond to the user input due to the path between the battery and the mainboard being disconnected, and thus being unable to exit the shipping mode.
[0104] In some embodiments of the present application, the voltage of the first pin when the second switch is turned off is the first voltage, and the voltage when the second switch is turned on is the third voltage in the case that the first end and the third end of the first switch are turned on. Optionally, the step 201 can be implemented by the following step 201a.
[0105] The step 201a, the electronic device receives a press input of the second switch by a user for a second duration to generate a second signal satisfying a second condition on the first pin.
[0106] In some embodiments of the present application, the user can press the electronic device for the second duration to make the electronic device control the second switch to be turned on for the second duration by the first controller to generate the second signal satisfying the second condition on the first pin. In the embodiments of the present application, the second condition is that the voltage corresponding to the second signal changes from the first voltage to the third voltage and is maintained at the third voltage for the second duration.
[0107] Therefore, the user can trigger the protection integrated circuit to turn on the path between the battery and the mainboard by pressing the electronic device for a second time length, so as to reduce the situation of triggering the protection integrated circuit to control the battery to continue to supply power to the mainboard by mistake, thereby reducing the energy consumption of the electronic device.
[0108] In some embodiments of the present application, after step 102, the control method provided by the embodiments of the present application can further include step 301 or step 302.
[0109] In step 301, when the electronic device is in a booting state, the electronic device controls the first end of the first switch to be alternately turned on with the second end and the third end by the first controller, so as to generate a third signal on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to the first voltage threshold.
[0110] In the embodiments of the present application, when the electronic device is in a booting state, the voltage of the first pin when the first end of the first switch is turned on with the second end is different from the voltage when the first end of the first switch is turned on with the third end.
[0111] In the embodiments of the present application, when the electronic device is in a booting state, the battery may have a low power, and if the electronic device needs to perform a task with a high load, the electronic device may be shut down. Therefore, in order to avoid the above situation, the first controller can control the first end of the first switch to be alternately turned on with the second end and the third end when the electronic device is in a booting state, so as to generate a third signal on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to the first voltage threshold with a lower threshold. In this way, the electronic device can avoid being shut down during the process of performing a task with a high load.
[0112] Therefore, the electronic device can trigger the protection integrated circuit to set the low-voltage protection threshold to the first voltage threshold with a lower threshold when the electronic device is in a booting state and the third signal is detected on the first pin, thereby avoiding the electronic device being shut down during the process of performing a task with a high load.
[0113] In some embodiments of the present application, when the electronic device is in a booting state, the voltage of the first pin when the first end of the first switch is disconnected with the second end is the first voltage, and the voltage when the first end of the first switch is turned on with the second end is the second voltage. Alternatively, step 301 can be implemented by step 301a.
[0114] Step 301a, in a case where the electronic device is in the powered-on state, the first controller controls the first end of the first switch to be alternately conductive with the second end and the third end for a second number of times within a third time length, so as to generate a third signal meeting a third condition on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to a first voltage threshold.
[0115] In the embodiments of the present application, the third condition is that the number of times that the voltage corresponding to the third signal reciprocates between the first voltage and the second voltage within the third time length is the second number of times. As can be seen, since the electronic device can control the first end of the first switch to be alternately conductive with the second end and the third end for a second number of times within a third time length by the first controller in a case where the electronic device is in the powered-on state, so as to generate a third signal meeting a third condition on the first pin, which can trigger the protection integrated circuit to quickly lower the low-voltage protection threshold, thus, the phenomenon that the electronic device is powered off during the execution of a task with a high load when the battery has a low power can be avoided.
[0116] Step 302, in a case where the electronic device is in the powered-off state, the electronic device provides a voltage to the first pin, so as to generate a fourth signal on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to a second voltage threshold.
[0117] In the embodiments of the present application, in a case where the electronic device is in the powered-off state, the first end and the third end of the first switch are conductive; in a case where the electronic device is in the powered-off state and the first end and the third end of the first switch are conductive, the voltage of the first pin when the electronic device provides a voltage to the first pin is different from the voltage of the first pin when the electronic device does not provide a voltage to the first pin; the second voltage threshold is higher than the first voltage threshold. In some embodiments of the present application, the third end of the first switch can also be connected to other devices, so that in a case where the electronic device is in the powered-off state, the other devices can provide a voltage to the first pin through the first end and the third end of the first switch, so as to generate a fourth signal on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to the second voltage threshold.
[0118] The other devices can be any of the following: other power supply devices (i.e., power supply devices other than the power supply device in the above embodiments), other controllers (i.e., controllers other than the first controller in the above embodiments).
[0119] Therefore, the electronic device can further reduce the energy consumption of the electronic device in the shutdown state when the voltage of the battery reaches the second voltage threshold, so as to reduce the case that the voltage of the battery is low for a long time, thereby avoiding the influence on the service life of the battery due to the low voltage, and avoiding the phenomenon of battery bulging.
[0120] In some embodiments of the present application, when the electronic device is in the shutdown state and the first end and the third end of the first switch are turned on, the voltage of the first pin when the electronic device provides a voltage to the first pin is the fourth voltage, and the voltage when the electronic device does not provide a voltage to the first pin is the first voltage. Optionally, the above step 302 can be implemented by the following step 302a.
[0121] Step 302a, when the electronic device is in the shutdown state, the electronic device provides the fourth voltage to the first pin through the power management integrated circuit of the mainboard within the fourth time length.
[0122] In the embodiments of the present application, the fourth condition is that the voltage corresponding to the fourth signal changes from the first voltage to the fourth voltage and maintains at the fourth voltage within the fourth time length.
[0123] Therefore, the electronic device can generate the fourth signal satisfying the fourth condition on the first pin through the power management integrated circuit when the electronic device is in the shutdown state and the first end and the third end of the first switch are turned on, so as to accurately trigger the protection integrated circuit to increase the low-voltage protection threshold, thereby avoiding the influence on the service life of the battery due to the low battery for a long time.
[0124] In the following, various control methods in the above embodiments will be combined to illustrate the specific scheme of the electronic device entering the transportation mode and exiting the transportation mode.
[0125] Specific example: as shown in FIG. 10, assuming that the electronic device is in a boot state (for example, a normal boot state), the first end and the second end of the first switch are connected, and the first controller can provide the first pin with a second voltage (for example, 1.8v), so that the voltage of the first pin is pulled high to 1.8v. At this time, if the user presses the power key (for example, the second switch), the second switch is turned on at this time, and the first controller can control the first end and the third end of the first switch to be turned on, so that the first pin can be grounded through the second switch, that is, the voltage of the first pin will become 0. When the electronic device determines to enter the shipping mode, the electronic device can control the first end of the first switch to be alternately turned on with the second end and the third end through the first controller, that is, the first controller can control the first end and the second end of the first switch to be switched between being turned on and being turned off, that is, the first controller can first control the first end and the second end of the first switch to be turned off (that is, the first end and the third end of the first switch are turned on), at this time, the power supply device of the protection integrated circuit can provide the first pin with a first voltage (for example, 1.2v), and then the first controller can first control the first end and the second end of the first switch to be turned on (that is, the first end and the third end of the first switch are turned off), at this time, the first controller can provide the first pin with 1.8v. In this way, the first controller can control the first end and the second end of the first switch to be reciprocally switched between being turned on and being turned off for a first number of times within a first time period, so as to generate a first signal meeting a first condition on the first pin. Thus, the protection integrated circuit can enter the shipping mode (Ship Mode) after a delay of 15s. During the delay of 15s, the first controller can turn on the first end and the third end of the first switch.
[0126] In the shipping mode, since the first controller has been powered off, only the power supply device provides the first pin with 1.2v, so the voltage of the first pin is maintained at 1.2v. When the user needs to use the electronic device, the user can press the second switch for a second time period (for example, 2s), at this time, the second switch is turned on, and the first pin can be grounded through the second switch, so as to generate a second signal meeting a second condition on the first pin, so that the protection integrated circuit can directly exit the shipping mode, and the first controller can control the first end and the second end of the first switch to be turned on and provide the first pin with 1.8v, so that the voltage of the first pin is maintained at 1.8v.
[0127] It should be noted that the description of the electronic device triggering the protection integrated circuit to adjust the low-voltage protection threshold can refer to the description in the above specific example, and the embodiments of the present application will not be repeated here.
[0128] The control method provided by the embodiments of the present application can be executed by the control device. In the embodiments of the present application, the control device is taken as an example to illustrate the control device provided by the embodiments of the present application.
[0129] FIG. 11 shows a structural schematic diagram of the control device provided in the embodiments of the present application. As shown in FIG. 11, the control device 50 provided in the embodiments of the present application can comprise: a determination module 51 configured to determine whether to enter a transportation mode in a case where a battery of the control device 50 supplies power to a mainboard of the control device 50. A control module 52 configured to control, by a first controller of the mainboard, a first end and a second end of a first switch of the mainboard to switch between being turned on and being turned off, to generate a first signal on a first pin, so as to trigger a protection integrated circuit of the control device 50 to disconnect a path between the battery and the mainboard, in a case where the determination module 51 determines to enter the transportation mode. Wherein, a voltage of the first pin when the first end and the second end of the first switch are turned off is different from a voltage of the first pin when the first end and the second end of the first switch are turned on.
[0130] The embodiments of the present application provide a control device. Since the control device can determine to enter a transportation mode, the first controller can control the first end and the second end of the first switch to switch between being turned on and being turned off, to generate a first signal on the first pin, so as to trigger the protection integrated circuit to disconnect the path between the battery and the mainboard, so that the battery can stop supplying power to the mainboard, thereby making all components connected to the mainboard in a non-working state. Therefore, the power consumption of the battery in the transportation mode of the control device can be reduced, so as to reduce the case that the service life of the battery is affected due to the low power of the battery for a long time when the control device enters the transportation mode with low power of the battery. Thus, the durability of the battery of the control device can be improved.
[0131] In some embodiments of the present application, the voltage of the first pin when the first end and the second end of the first switch are turned off is a first voltage, and the voltage of the first pin when the first end and the second end of the first switch are turned on is a second voltage. The control module 52 is specifically configured to control, by the first controller, the first end and the second end of the first switch to reciprocally switch between being turned on and being turned off for a first number of times within a first time length, to generate a first signal on the first pin that satisfies a first condition, so as to trigger the protection integrated circuit of the electronic device to disconnect the path between the battery and the mainboard. The first condition is that the number of times that the voltage corresponding to the first signal reciprocally changes between the first voltage and the second voltage within the first time length is the first number of times.
[0132] In some embodiments of the present application, the first end and the third end of the first switch are turned on when the battery stops supplying power to the mainboard. The control device 50 provided by the embodiments of the present application can further include a receiving module configured to: receive, after the control module 52 controls the first end and the second end of the first switch of the mainboard to switch between being turned on and being turned off by the first controller of the mainboard to generate the first signal meeting the first condition on the first pin, thereby triggering the protection integrated circuit of the control device 50 to turn off the path between the battery and the mainboard, a pressing input of a user on the second switch of the mainboard, the pressing input being configured to turn on the second switch to generate the second signal on the first pin. The control module 52 is further configured to: in response to the pressing input received by the receiving module, trigger the protection integrated circuit to turn on the path between the battery and the mainboard, and exit the transportation mode. In the case where the first end and the third end of the first switch are turned on, the voltage of the first pin when the second switch is turned off is different from the voltage of the first pin when the second switch is turned on.
[0133] In some embodiments of the present application, in the case where the first end and the third end of the first switch are turned on, the voltage of the first pin when the second switch is turned off is the first voltage, and the voltage of the first pin when the second switch is turned on is the third voltage. The receiving module is specifically configured to receive a pressing input of a user on the second switch for a second time length to generate the second signal meeting the second condition on the first pin. In the second condition, the voltage corresponding to the second signal changes from the first voltage to the third voltage and is maintained at the third voltage within the second time length.
[0134] In some embodiments of the present application, the control module 52 is further configured to: in the case where the path between the battery of the control device 50 and the mainboard of the control device 50 is turned on, after determining whether to enter the transportation mode, in the case where the control device 50 is in a powered-on state, control the first end of the first switch to be turned on with the second end and the third end alternately, to generate the third signal on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to the first voltage threshold; in the case where the control device 50 is in a powered-off state, provide a voltage to the first pin to generate the fourth signal on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to the second voltage threshold. In the case where the control device 50 is in the powered-on state, the voltage of the first pin when the first end and the second end of the first switch are turned on is different from the voltage of the first pin when the first end and the third end of the first switch are turned on; in the case where the control device 50 is in the powered-off state, the first end and the third end of the first switch are turned on; in the case where the control device 50 is in the powered-off state and the first end and the third end of the first switch are turned on, the voltage of the first pin when the control device 50 provides the voltage to the first pin is different from the voltage of the first pin when the control device 50 does not provide the voltage to the first pin; and the second voltage threshold is higher than the first voltage threshold.
[0135] In some embodiments of the present application, when the control device 50 is in the power-on state, the voltage of the first pin when the first end of the first switch is disconnected from the second end is a first voltage, and the voltage of the first pin when the first end of the first switch is connected to the second end is a second voltage. The control module 52 is specifically configured to control the first end of the first switch to be connected to the second end and the third end alternately for a second number of times within a third time period by the first controller, so as to generate a third signal on the first pin that satisfies a third condition. The third condition is that the voltage corresponding to the third signal reciprocates between the first voltage and the second voltage for the second number of times within the third time period.
[0136] In some embodiments of the present application, when the control device 50 is in the power-off state and the first end and the third end of the first switch are connected, the voltage of the first pin when the control device 50 provides a voltage to the first pin is a fourth voltage, and the voltage of the first pin when the control device 50 does not provide a voltage to the first pin is the first voltage. The control module 52 is specifically configured to provide the fourth voltage to the first pin by the power management integrated circuit of the mainboard within a fourth time period, so as to generate a fourth signal on the first pin, thereby triggering the protection integrated circuit to set the low-voltage protection threshold to the second voltage threshold. The fourth condition is that the voltage corresponding to the fourth signal changes from the first voltage to the fourth voltage and maintains at the fourth voltage within the fourth time period.
[0137] 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 the like. The electronic device 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 in this regard.
[0138] 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, which are not limited in the embodiments of the present application.
[0139] The control device provided in the embodiments of the present application can realize each process realized by the method embodiments of FIGS. 2 to 10, and thus details are not repeated here.
[0140] In some embodiments of the present application, as shown in FIG. 12, the embodiments of the present application further provide an electronic device 60, which includes a processor 61 and a memory 62. The memory 62 has a program or instructions stored thereon, which can be run on the processor 61. The program or instructions are executed by the processor 61 to realize each process step of the above control method embodiments and achieve the same technical effects. Details are not repeated here to avoid repetition. 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.
[0141] FIG. 13 is a schematic diagram of a hardware structure of an electronic device for implementing the embodiments of the present application. 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.
[0142] 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 each component. The power supply can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The electronic device structure shown in FIG. 13 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than those shown, or combine certain components, or have a different arrangement of components, which are not repeated here.
[0143] The processor 110 is configured to, in a case where a path between a battery of the electronic device and a mainboard of the electronic device is conducted, determine whether to enter a transportation mode; and in a case where it is determined to enter the transportation mode, control a first controller of the mainboard to control a first end and a second end of a first switch of the mainboard to switch between conduction and disconnection, so as to generate a first signal on a first pin, thereby triggering a protection integrated circuit of the electronic device to disconnect the path between the battery and the mainboard.
[0144] The first pin has different voltages in a case where the first end and the second end of the first switch are disconnected and in a case where the first end and the second end of the first switch are conducted.
[0145] The electronic device provided in the embodiments of the present application can generate a first signal on a first pin by switching the first end and the second end of the first switch on and off to trigger the protection integrated circuit to disconnect the path between the battery and the mainboard to stop the battery from supplying power to the mainboard, so that all components connected to the mainboard are in a non-working state, thereby reducing the power consumption of the battery in the transportation mode of the electronic device, and reducing the situation that the service life of the battery is affected due to the low battery power for a long time when the battery power is low when the electronic device enters the transportation mode, so that the durability of the battery of the electronic device is improved.
[0146] In some embodiments of the present application, the voltage of the first pin when the first end and the second end of the first switch are disconnected is a first voltage, and the voltage when the first end and the second end of the first switch are connected is a second voltage.
[0147] The processor 110 is specifically configured to control the first end and the second end of the first switch to reciprocally switch between being connected and disconnected for a first number of times within a first time length by the first controller to generate the first signal satisfying a first condition on the first pin, so as to trigger the protection integrated circuit of the electronic device to disconnect the path between the battery and the mainboard.
[0148] The first condition is that the number of times that the voltage corresponding to the first signal reciprocally changes between the first voltage and the second voltage within the first time length is the first number of times.
[0149] In some embodiments of the present application, the first end and the third end of the first switch are connected in the case that the path between the battery and the mainboard is disconnected.
[0150] The user input unit 107 is configured to receive a pressing input of a user on the second switch of the mainboard, and the pressing input is used to connect the second switch, so that the voltage of the first pin changes over time according to a second change rule.
[0151] The processor 110 is further configured to trigger the protection integrated circuit to connect the path between the battery and the mainboard and exit the transportation mode in response to the pressing input. In the case that the first end and the third end of the first switch are connected, the voltage of the first pin when the second switch is disconnected is different from the voltage when the second switch is connected.
[0152] In some embodiments of the present application, in the case that the first end and the third end of the first switch are connected, the voltage of the first pin when the second switch is disconnected is a first voltage, and the voltage when the second switch is connected is a third voltage.
[0153] The user input unit 107 is specifically configured to receive a user's pressing input on a second duration of the second switch to generate a second signal meeting a second condition on the first pin. The second condition is that the voltage corresponding to the second signal changes from the first voltage to the third voltage and is maintained at the third voltage within the second duration.
[0154] In some embodiments of the present application, the processor 110 is further configured to, in a case where the electronic device is in a powered-on state, control the first switch by the first controller to alternately conduct the first end with the second end and the third end to generate a third signal on the first pin, so as to trigger the protection integrated circuit to set the low-voltage protection threshold to the first voltage threshold; or, in a case where the electronic device is in a powered-off state, provide a voltage to the first pin to generate a fourth signal on the first pin, so as to trigger the protection integrated circuit to set the low-voltage protection threshold to the second voltage threshold.
[0155] In the case where the electronic device is in the powered-on state, the voltage of the first pin when the first end and the second end of the first switch are conducted is different from the voltage when the first end and the third end of the first switch are conducted; in the case where the electronic device is in the powered-off state, the first end and the third end of the first switch are conducted; in the case where the electronic device is in the powered-off state and the first end and the third end of the first switch are conducted, the voltage of the first pin when the electronic device provides the voltage to the first pin is different from the voltage when the electronic device does not provide the voltage to the first pin; and the second voltage threshold is higher than the first voltage threshold.
[0156] In some embodiments of the present application, in the case where the electronic device is in the powered-on state, the voltage of the first pin when the first end and the second end of the first switch are disconnected is the first voltage, and the voltage when the first end and the second end of the first switch are conducted is the second voltage.
[0157] The processor 110 is specifically configured to control the first end of the first switch to alternately conduct the second end and the third end for a second number of times within a third duration by the first controller to generate a third signal meeting a third condition on the first pin, so as to trigger the protection integrated circuit to set the low-voltage protection threshold to the first voltage threshold. The third condition is that the voltage corresponding to the third signal reciprocates between the first voltage and the second voltage for the second number of times within the third duration.
[0158] In some embodiments of the present application, in the case where the electronic device is in the powered-off state and the first end and the third end of the first switch are conducted, the voltage of the first pin when the electronic device provides the voltage to the first pin is the fourth voltage, and the voltage when the electronic device does not provide the voltage to the first pin is the first voltage.
[0159] The processor 110 is specifically configured to provide a fourth voltage to the first pin in a fourth time length through a power management integrated circuit of the mainboard. The fourth condition is that the voltage corresponding to the fourth signal is changed from the first voltage to the fourth voltage and maintained at the fourth voltage in the fourth time length.
[0160] 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 two parts of 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, an operation lever, and the like, which will not be described here.
[0161] 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.
[0162] 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.
[0163] The embodiment of the present application further provides a readable storage medium, which stores a program or instructions, and the program or instructions are executed by a processor to realize the processes of the control method embodiment and achieve the same technical effects. To avoid repetition, details are not described herein. The processor is the processor in the electronic device in the above embodiment. 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 disk or an optical disk, and the like.
[0164] The embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run a program or instructions to realize the processes of the control method embodiment and achieve the same technical effects. To avoid repetition, details are not described herein. 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 on chip (SoC), a chip system or a system on chip (SoC), and the like.
[0165] The embodiment of the present application further provides a computer program product, which is stored in a storage medium and is executed by at least one processor to realize the processes of the control method embodiment and achieve the same technical effects. To avoid repetition, details are not described herein.
[0166] The apparatus embodiment described above is only schematic and the units illustrated as separate components can or can not be physically separate, and the components illustrated as separate components can or can not be physical components, that is, can be located in one place or distributed on a plurality of network components. 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.
[0167] As used in this document, "an embodiment," "one embodiment," or "an implementation" 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 this specification are not necessarily all referring to the same embodiment.
[0168] 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 described in detail in order not to obscure the understanding of this specification.
[0169] 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.
[0170] 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: Battery; A protection integrated circuit, the protection integrated circuit being connected to the battery, the protection integrated circuit including a first pin; A motherboard is connected to the battery. The motherboard is provided with a first switch and a first controller. A first end of the first switch is connected to a first pin, and a second end of the first switch is connected to the first controller. The first controller is used to control the first end and the second end of the first switch to switch between on and off when the path between the battery and the motherboard is open, so as to generate a first signal on the first pin. The voltage of the first pin when the first terminal and the second terminal of the first switch are disconnected is different from the voltage when the first terminal and the second terminal of the first switch are connected. The protection integrated circuit is used to disconnect the path between the battery and the motherboard according to the first signal when the path between the battery and the motherboard is open and the first signal is detected on the first pin.
2. The electronic device according to claim 1, wherein, The protection integrated circuit also includes: A power supply device connected to the first pin, the power supply device being used to provide a first voltage to the first pin when the first and second terminals of the first switch are disconnected; Specifically, the first controller is used to provide a second voltage to the first pin when the first and second ends of the first switch are turned on, and to control the first and second ends of the first switch to switch back and forth between on and off for a first number of times within a first duration when the path between the battery and the motherboard is turned on, so as to generate the first signal that satisfies the first condition on the first pin. The protection integrated circuit is specifically used to disconnect the path between the battery and the motherboard when the path between the battery and the motherboard is open and a first signal satisfying the first condition is detected on the first pin; The first condition is: the number of times the voltage corresponding to the first signal changes back and forth between the first voltage and the second voltage within the first time period is the first number of times.
3. The electronic device according to claim 2, wherein, The power supply device includes: A power supply unit is provided to supply voltage to the first pin when the first and second terminals of the first switch are disconnected. A voltage divider module, wherein the first terminal of the voltage divider module is connected to the power supply unit, the second terminal of the voltage divider module is grounded, and the third terminal of the voltage divider module is connected to the first pin; The voltage divider module is used to adjust the voltage supplied by the power supply unit to the first pin, so that the power supply unit supplies the first voltage to the first pin.
4. The electronic device according to claim 3, wherein, The voltage divider module includes: A first resistor, the first end of which is connected to the power supply unit through the first end of the voltage divider module, and the second end of which is connected to the first pin through the third end of the voltage divider module; The second resistor has its first end connected to the third end of the voltage divider module and the first pin. The first end of the second resistor is also connected to the second end of the first resistor. The second end of the second resistor is grounded through the second end of the voltage divider module.
5. The electronic device according to claim 1, wherein, The motherboard is also equipped with: A second switch, the first end of which is connected to the third end of the first switch, and the second end of which is grounded, is used to conduct when pressed; Wherein, when the passage between the battery and the motherboard is disconnected, the first and third terminals of the first switch are connected; When the first and third terminals of the first switch are connected, the voltage of the first pin when the second switch is off is different from the voltage when the second switch is on. The protection integrated circuit is also used to, in the event that the path between the battery and the motherboard is broken and a second signal is detected on the first pin, reconnect the path between the battery and the motherboard according to the second signal.
6. The electronic device according to claim 5, wherein, When the first and third terminals of the first switch are connected, the voltage of the first pin when the second switch is open is the first voltage, and the voltage when the second switch is on is the third voltage. Specifically, the protection integrated circuit is used to reconnect the connection between the battery and the motherboard when the path between the battery and the motherboard is disconnected and a second signal satisfying a second condition is detected on the first pin; The second condition is that the voltage corresponding to the second signal changes from the first voltage to the third voltage and remains at the third voltage for a second duration.
7. The electronic device according to claim 1, wherein, The first controller is further configured to, when the electronic device is powered on, control the first terminal of the first switch to alternately conduct with the second terminal and the third terminal; when the electronic device is powered on, the voltage of the first pin when the first terminal and the second terminal of the first switch are conducting is different from the voltage when the first terminal and the third terminal of the first switch are conducting; the protection integrated circuit is further configured to, when the electronic device is powered on and a third signal is detected on the first pin, set the low-voltage protection threshold to a first voltage threshold; or, When the electronic device is powered off, the first and third terminals of the first switch are connected, and the electronic device can provide voltage to the first pin; when the electronic device is powered off and the first and third terminals of the first switch are connected, the voltage at the first pin when the electronic device provides voltage to the first pin is different from the voltage when the electronic device does not provide voltage to the first pin; the protection integrated circuit is further configured to set the low-voltage protection threshold to a second voltage threshold when the electronic device is powered off and a fourth signal is detected on the first pin; Wherein, the second voltage threshold is higher than the first voltage threshold.
8. The electronic device according to claim 7, wherein, When the first and third terminals of the first switch are connected, the voltage of the first pin is the first voltage; The first controller is specifically configured to provide a second voltage to the first pin when the first and second terminals of the first switch are connected, and when the electronic device is powered on, control the first terminal of the first switch to alternately connect the second and third terminals to the third terminal for a second number of times within a third duration, so as to generate the third signal on the first pin that satisfies the third condition. Specifically, the protection integrated circuit is used to set the low voltage protection threshold to a first voltage threshold when the electronic device is powered on and a third signal satisfying the third condition is detected on the first pin. The third condition is that the number of times the voltage corresponding to the third signal changes back and forth between the first voltage and the second voltage within the third time period is the second number of times.
9. The electronic device according to claim 7, wherein, When the electronic device is powered on, the voltage of the first pin when the first terminal and the second terminal of the first switch are connected is the first voltage. The motherboard is also equipped with: A power management integrated circuit is connected to the third terminal of the first switch. The power management integrated circuit is used to provide a fourth voltage to the first pin when the electronic device is in a power-off state and the first and third terminals of the first switch are turned on. Specifically, the protection integrated circuit is used to set the low voltage protection threshold to a second voltage threshold when the electronic device is in a powered-off state and a fourth signal satisfying the fourth condition is detected on the first pin. The fourth condition is that the voltage corresponding to the fourth signal changes from the first voltage to the fourth voltage and remains at the fourth voltage for a fourth duration.
10. The electronic device according to claim 9, wherein, The third terminal of the first switch is connected to the power management integrated circuit via a diode; The third terminal of the first switch is connected to the negative terminal of the diode, and the power management integrated circuit is connected to the positive terminal of the diode.
11. A control method applied to an electronic device according to any one of claims 1 to 10, the method comprising: Determine whether to enter transport mode if the connection between the battery and the motherboard of the electronic device is established. When the transport mode is determined, the first controller on the motherboard controls the first and second terminals of the first switch on the motherboard to switch between on and off, so as to generate a first signal on the first pin, thereby triggering the protection integrated circuit of the electronic device to disconnect the circuit between the battery and the motherboard. The voltage at the first pin when the first and second terminals of the first switch are disconnected is different from the voltage when the first and second terminals of the first switch are connected.
12. A control device comprising: The determination module is used to determine whether to enter the transport mode when the path between the battery of the control device and the motherboard of the control device is open; The control module is used to control the first and second terminals of the first switch of the motherboard to switch between on and off when the determination module determines that the transport mode has been entered, so as to generate a first signal on the first pin, thereby triggering the protection integrated circuit of the control device to disconnect the power supply between the battery and the motherboard. The voltage at the first pin when the first and second terminals of the first switch are disconnected is different from the voltage when the first and second terminals of the first switch are connected.
13. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of claim 11.
14. A readable storage medium on which a program or instructions are stored, wherein the program or instructions, when executed by a processor, 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 being configured to run a program or instructions to implement the method as described in the second aspect.
16. A computer program product stored in a storage medium, the program product being executed by at least one processor to implement the method of claim 11.
Citation Information
Patent Citations
Electronic equipment, control method thereof and storage medium
CN111782028A
Cigarette rod and electronic cigarette
CN113303508A
Electronic device
CN115459403A
Electronic device
CN115514061A
Electronic device
CN118739491A