CN118739492A - Electronic device and control method - Google Patents
Electronic device and control method Download PDFInfo
- Publication number
- CN118739492A CN118739492A CN202410849437.6A CN202410849437A CN118739492A CN 118739492 A CN118739492 A CN 118739492A CN 202410849437 A CN202410849437 A CN 202410849437A CN 118739492 A CN118739492 A CN 118739492A
- Authority
- CN
- China
- Prior art keywords
- mainboard
- state
- battery
- pin
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 58
- 230000015654 memory Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 229910044991 metal oxide Inorganic materials 0.000 description 2
- 150000004706 metal oxides Chemical class 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 229910000831 Steel Inorganic materials 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910052744 lithium Inorganic materials 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 230000008961 swelling Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/0031—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0063—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请公开了一种电子设备及控制方法,属于电池技术领域。其中,该电子设备包括:主板,该主板上设置有第一控制器、第一开关组和第一电源;电池,该电池的第一极与主板的第一端连接;第一集成电路,该第一集成电路包括第一引脚和第一开关管;其中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下第一电源向第一引脚提供电压;在第二状态下第一引脚接地;上述第一控制器,用于在电池与主板之间的通路导通的情况下,控制第一开关组在第一状态和第二状态间切换,以在第一引脚产生第一电压信号;上述第一集成电路,用于根据第一电压信号控制第一开关管断开,以断开电池与主板之间的通路供电。
The present application discloses an electronic device and a control method, belonging to the field of battery technology. The electronic device includes: a mainboard, on which a first controller, a first switch group and a first power supply are arranged; a battery, the first pole of the battery is connected to the first end of the mainboard; a first integrated circuit, the first integrated circuit includes a first pin and a first switch tube; wherein the state of the first switch group includes a first state and a second state, in which the first power supply provides a voltage to the first pin; in the second state, the first pin is grounded; the first controller is used to control the first switch group to switch between the first state and the second state when the path between the battery and the mainboard is connected, so as to generate a first voltage signal at the first pin; the first integrated circuit is used to control the first switch tube to disconnect according to the first voltage signal, so as to disconnect the path between the battery and the mainboard from supplying power.
Description
技术领域Technical Field
本申请属于电池技术领域,具体涉及一种电子设备及控制方法。The present application belongs to the field of battery technology, and specifically relates to an electronic device and a control method.
背景技术Background Art
通常,在电子设备中配置有船运模式(Ship Mode),这样在不使用电子设备的情况下,可以控制电子设备进入船运模式,以断开电子设备的电池与电子设备的部分器件之间的通路,以使得电池可以停止向该部分器件供电,从而可以减少电池的电量的消耗,以减少出现电池长时间电量较低的情况,进而可以减少电池出现鼓包等现象,提高电子设备的使用安全性。Typically, a ship mode is configured in an electronic device, so that when the electronic device is not in use, the electronic device can be controlled to enter the ship mode to disconnect the path between the battery of the electronic device and some components of the electronic device, so that the battery can stop supplying power to the some components, thereby reducing the consumption of battery power, reducing the situation where the battery has low power for a long time, and further reducing the phenomenon of battery bulging, etc., thereby improving the safety of electronic equipment.
但是,由于在船运模式下,电子设备的电池的电量仍会持续消耗,这样在长时间不使用电子设备的情况下,还是会出现电池长时间电量较低的情况,从而会出现电池鼓包等现象,因此,导致电子设备的使用安全性较低。However, since the battery power of the electronic device will continue to be consumed in the shipping mode, if the electronic device is not used for a long time, the battery power will still be low for a long time, resulting in battery swelling and other phenomena, thus reducing the safety of the electronic device.
发明内容Summary of the invention
本申请实施例的目的是提供一种电子设备及控制方法,能够解决电子设备的使用安全性较低的问题。The purpose of the embodiments of the present application is to provide an electronic device and a control method, which can solve the problem of low safety in the use of electronic devices.
第一方面,本申请实施例提供了一种电子设备,该电子设备包括:主板,该主板上设置有第一控制器、第一开关组和第一电源,该第一开关组的第一端与第一控制器连接,该第一开关组的第二端与第一电源连接,该第一开关组的第三端接地;电池,该电池的第一极与主板的第一端连接;第一集成电路,该第一集成电路包括第一引脚和第一开关管,该第一引脚与第一开关组的第四端连接,该电池的第二极通过第一开关管与主板的第二端连接;其中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下,第一开关组的第二端与第一开关组的第四端导通,以使得第一电源向第一引脚提供电压;在第二状态下第一开关组的第三端与第一开关组的第四端导通,以使得第一引脚接地;上述第一控制器,用于在电池与主板之间的通路导通的情况下,控制第一开关组在第一状态和第二状态间切换,以在第一引脚产生第一电压信号;上述第一集成电路,用于根据第一电压信号控制第一开关管断开,以断开电池与主板之间的通路。In a first aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a mainboard, a first controller, a first switch group and a first power supply are arranged on the mainboard, a first end of the first switch group is connected to the first controller, a second end of the first switch group is connected to the first power supply, and a third end of the first switch group is grounded; a battery, a first electrode of the battery is connected to the first end of the mainboard; a first integrated circuit, the first integrated circuit comprises a first pin and a first switch tube, the first pin is connected to the fourth end of the first switch group, and the second electrode of the battery is connected to the second end of the mainboard through the first switch tube; wherein the state of the above-mentioned first switch group comprises a first state and a second state, in the first state, the second end of the first switch group is connected to the fourth end of the first switch group, so that the first power supply provides a voltage to the first pin; in the second state, the third end of the first switch group is connected to the fourth end of the first switch group, so that the first pin is grounded; the above-mentioned first controller is used to control the first switch group to switch between the first state and the second state when the path between the battery and the mainboard is connected, so as to generate a first voltage signal at the first pin; the above-mentioned first integrated circuit is used to control the first switch tube to be disconnected according to the first voltage signal, so as to disconnect the path between the battery and the mainboard.
第二方面,本申请实施例提供了一种控制方法,应用于如第一方面所述的电子设备,该方法包括:在电子设备的电池与电子设备的主板之间的通路导通的情况下,通过主板的第一控制器控制电子设备的主板的第一开关组在第一状态和第二状态间切换,以在电子设备的第一集成电路的第一引脚产生第一电压信号;通过第一集成电路根据第一电压信号,控制第一集成电路的第一开关管断开,以断开电池与主板之间的通路;其中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下,主板的第一电源向第一引脚提供电压;在第二状态下,第一引脚接地。In a second aspect, an embodiment of the present application provides a control method, which is applied to an electronic device as described in the first aspect, the method comprising: when a path between a battery of the electronic device and a mainboard of the electronic device is turned on, controlling a first switch group of the mainboard of the electronic device to switch between a first state and a second state through a first controller of the mainboard to generate a first voltage signal at a first pin of a first integrated circuit of the electronic device; controlling a first switch tube of the first integrated circuit to be disconnected through the first integrated circuit according to the first voltage signal to disconnect the path between the battery and the mainboard; wherein the state of the above-mentioned first switch group includes a first state and a second state, wherein in the first state, the first power supply of the mainboard provides a voltage to the first pin; and in the second state, the first pin is grounded.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第二方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the second aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第二方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第二方面所述的方法的步骤。In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the method described in the second aspect.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第二方面所述的方法的步骤。In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the second aspect.
在本申请实施例中,电子设备包括设置有第一控制器、第一开关组和第一电源的主板,第一极与主板的第一端连接的电池,以及包括第一引脚和第一开关管的第一集成电路,该第一开关组的第一端与第一控制器连接,该第一开关组的第二端与第一电源连接,该第一开关组的第三端接地,该第一引脚与第一开关组的第四端连接,该电池的第二极通过第一开关管与主板的第二端连接;其中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下,第一开关组的第二端与第一开关组的第四端导通,以使得第一电源向第一引脚提供电压;在第二状态下第一开关组的第三端与第一开关组的第四端导通,以使得第一引脚接地;上述第一控制器,用于在电池与主板之间的通路导通的情况下,控制第一开关组在第一状态和第二状态间切换,以在第一引脚产生第一电压信号;上述第一集成电路,用于根据第一电压信号控制第一开关管断开,以断开电池与主板之间的通路。由于电池中设置有第一开关管和第一集成电路,且主板上设置有第一控制器、第一开关组和第一电源,这样第一控制器可以在电池与主板之间的通路导通的情况下,即在电池向主板供电的情况下,通过调整控制第一开关组在不同状态间切换的方式,来使得第一引脚在与第一电源导通和接地间切换,这样可以在第一引脚上产生第一电压信号,以通过第一电压信号触发第一集成电路控制第一开关管断开,以断开电池与主板之间的通路,以使得电池停止向主板供电,从而停止向电子设备的所有器件供电,而不是停止向电子设备的部分器件供电,因此,可以减少电池供电的器件的数量,以减少电池的电量消耗,这样可以减少出现在长时间不使用电子设备的情况下,电池长时间电量较低的情况,进而可以减少出现电池鼓包等现象,如此,可以提高电子设备的使用安全性。In an embodiment of the present application, an electronic device includes a mainboard provided with a first controller, a first switch group and a first power source, a battery having a first pole connected to a first end of the mainboard, and a first integrated circuit including a first pin and a first switch tube, wherein the first end of the first switch group is connected to the first controller, the second end of the first switch group is connected to the first power source, the third end of the first switch group is grounded, the first pin is connected to a fourth end of the first switch group, and the second pole of the battery is connected to the second end of the mainboard through the first switch tube; wherein the state of the first switch group includes a first state and a second state, wherein in the first state, the second end of the first switch group is connected to the fourth end of the first switch group so that the first power source provides a voltage to the first pin; in the second state, the third end of the first switch group is connected to the fourth end of the first switch group so that the first pin is grounded; the first controller is used to control the first switch group to switch between the first state and the second state when the path between the battery and the mainboard is connected, so as to generate a first voltage signal at the first pin; the first integrated circuit is used to control the first switch tube to be disconnected according to the first voltage signal so as to disconnect the path between the battery and the mainboard. Since the battery is provided with a first switch tube and a first integrated circuit, and the mainboard is provided with a first controller, a first switch group and a first power supply, the first controller can make the first pin switch between being connected to the first power supply and being grounded by adjusting the way of controlling the first switch group to switch between different states when the path between the battery and the mainboard is connected, that is, when the battery supplies power to the mainboard. In this way, a first voltage signal can be generated on the first pin to trigger the first integrated circuit to control the first switch tube to disconnect through the first voltage signal, so as to disconnect the path between the battery and the mainboard, so that the battery stops supplying power to the mainboard, thereby stopping supplying power to all devices of the electronic device, rather than stopping supplying power to some devices of the electronic device. Therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery, so as to reduce the situation where the battery has a low power for a long time when the electronic device is not used for a long time, and further reduce the phenomenon of battery bulging, etc., so that the safety of the use of the electronic device can be improved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1A是相关技术中的电子设备的电池和主板的电路结构示意图之一;FIG1A is a schematic diagram of a circuit structure of a battery and a mainboard of an electronic device in the related art;
图1B是相关技术中的电子设备的电池和主板的电路结构示意图之二;FIG. 1B is a second schematic diagram of the circuit structure of a battery and a mainboard of an electronic device in the related art;
图2是本申请实施例提供的电子设备的电池和主板的电路结构示意图之一;FIG2 is a schematic diagram of a circuit structure of a battery and a mainboard of an electronic device provided in an embodiment of the present application;
图3是本申请实施例提供的电子设备的电池和主板的电路结构示意图之二;FIG3 is a second schematic diagram of the circuit structure of the battery and the mainboard of the electronic device provided in an embodiment of the present application;
图4是本申请实施例提供的电子设备的电池和主板的电路结构示意图之三;FIG4 is a third schematic diagram of the circuit structure of the battery and the mainboard of the electronic device provided in an embodiment of the present application;
图5是本申请实施例提供的电子设备的电池和主板的电路结构示意图之四;FIG5 is a fourth schematic diagram of the circuit structure of the battery and the mainboard of the electronic device provided in an embodiment of the present application;
图6是本申请实施例提供的电子设备在进入船运模式的过程中第一引脚上产生的电压信号的示意图;6 is a schematic diagram of a voltage signal generated on a first pin of an electronic device during a process of entering a shipping mode provided by an embodiment of the present application;
图7是本申请实施例提供的电子设备的电池和主板的电路结构示意图之五;FIG7 is a fifth schematic diagram of the circuit structure of the battery and the mainboard of the electronic device provided in an embodiment of the present application;
图8是本申请实施例提供的电子设备的电池和主板的电路结构示意图之六;FIG8 is a sixth schematic diagram of the circuit structure of the battery and the mainboard of the electronic device provided in an embodiment of the present application;
图9是本申请实施例提供的电子设备在退出船运模式的过程中第二引脚上产生的电压信号的示意图;9 is a schematic diagram of a voltage signal generated on a second pin of an electronic device in a process of exiting a shipping mode according to an embodiment of the present application;
图10是本申请实施例提供的控制方法的流程示意图;FIG10 is a schematic flow chart of a control method provided in an embodiment of the present application;
图11是本申请实施例提供的电子设备的硬件结构示意图之一;FIG11 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
图12是本申请实施例提供的电子设备的硬件结构示意图之二。FIG. 12 is a second schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的电子设备及控制方法进行详细地说明。The electronic device and control method provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
本申请实施例提供的电子设备及控制方法可以应用于电子设备进入运输模式的场景中,或应用于电子设备关机的场景中。The electronic device and control method provided in the embodiments of the present application can be applied to a scenario where the electronic device enters a transport mode, or to a scenario where the electronic device is shut down.
针对运输模式的场景Scenarios for transport modes
在相关技术中,如图1A所示,电子设备的电池01的一端可以与主板02的主电源管理集成电路(Power Management Integrated Circuit,PMIC)上的开关管QBAT连接,以向主板02的主PMIC提供电压VBAT,并且该开关管QBAT的一端连接多个从PMIC,例如PMIC1、PMIC2等等,每个从PMIC可以连接有至少一个器件,以向该PMIC1、PMIC2等等提供电压VPH。具体地,如图1B所示,电子设备的电池01可以通过保护集成电路03与主板02连接,图1B中的p+节点可以理解为电池01的与主板02的主PMIC上的开关管QBAT连接的一端,即电池可以通过p+节点向主板02的主PMIC提供电压VBAT,上述电池01的一端连接的开关管QBAT设置在主板02的主PMIC中,开关管QBAT的连接多个从PMIC的一端可以为图1B中的VPH_PWR引脚,可以理解,该VPH_PWR引脚连接上述多个从PMIC(图1B中未示出该多个从PMIC)。这样在长时间不使用电子设备时,可以控制电子设备进入运输模式(Ship Mode),以使得电子设备的主板02可以控制开关管QBAT断开,来停止通过VPH_PWR引脚向连接的多个从PMIC所连接的器件供电,从而可以减少电池01的电量的消耗,以减少出现电池01长时间电量较低的情况,进而可以减少电池01出现鼓包等现象,提高电子设备的使用安全性。但是,结合图1A,由于可能会出现电池01的一端(例如p+节点)直接连接有其他器件(例如快充集成电路、近场通信(NearField Communication,NFC)模块等),以向该其他器件提供电压VBAT的情况,此时即使主板02的主PMIC中的开关管QBAT已经关闭,电池01还是会向上述其他器件(即快充集成电路、NFC模块等)供电,这样导致在船运模式下,电子设备的电池01的电量仍会持续消耗,这样在长时间不使用电子设备的情况下,还是会出现电池01长时间电量较低的情况,从而会出现电池01鼓包等现象,因此,导致电子设备的使用安全性较低。In the related art, as shown in FIG. 1A , one end of a battery 01 of an electronic device may be connected to a switch tube QBAT on a main power management integrated circuit (PMIC) of a mainboard 02 to provide a voltage VBAT to the main PMIC of the mainboard 02, and one end of the switch tube QBAT may be connected to a plurality of slave PMICs, such as PMIC1, PMIC2, etc., and each slave PMIC may be connected to at least one device to provide a voltage VPH to the PMIC1, PMIC2, etc. Specifically, as shown in FIG1B , the battery 01 of the electronic device can be connected to the mainboard 02 through the protection integrated circuit 03 , and the p+ node in FIG1B can be understood as one end of the battery 01 connected to the switch tube QBAT on the main PMIC of the mainboard 02 , that is, the battery can provide the voltage VBAT to the main PMIC of the mainboard 02 through the p+ node, and the switch tube QBAT connected to one end of the battery 01 is set in the main PMIC of the mainboard 02 , and one end of the switch tube QBAT connected to multiple slave PMICs can be the VPH_PWR pin in FIG1B , and it can be understood that the VPH_PWR pin is connected to the multiple slave PMICs (the multiple slave PMICs are not shown in FIG1B ). In this way, when the electronic device is not used for a long time, the electronic device can be controlled to enter the shipping mode (Ship Mode) so that the mainboard 02 of the electronic device can control the switch tube QBAT to be disconnected to stop supplying power to the devices connected to the multiple slave PMICs through the VPH_PWR pin, thereby reducing the power consumption of the battery 01, so as to reduce the situation where the battery 01 has a low power for a long time, and then reduce the phenomenon of bulging of the battery 01, thereby improving the safety of the electronic device. However, in conjunction with Figure 1A, since one end of the battery 01 (for example, the p+ node) may be directly connected to other devices (for example, a fast charging integrated circuit, a near-field communication (NFC) module, etc.) to provide a voltage VBAT to the other devices, even if the switch tube QBAT in the main PMIC of the motherboard 02 is turned off, the battery 01 will still supply power to the above-mentioned other devices (i.e., the fast charging integrated circuit, the NFC module, etc.). As a result, the power of the battery 01 of the electronic device will continue to be consumed in the shipping mode. In this way, if the electronic device is not used for a long time, the battery 01 will still have a low power for a long time, which will cause the battery 01 to bulge, etc., thereby resulting in low safety of use of the electronic device.
针对电子设备关机的场景Scenarios for shutting down electronic devices
需要说明的是,针对电子设备关机的场景的说明,可以参考上文中的具体描述,本申请实施例在此不再赘述。It should be noted that for the description of the scenario of shutting down the electronic device, reference can be made to the specific description above, and the embodiments of the present application will not be repeated here.
为了解决上述技术问题,本申请实施例提供了一种电子设备。图2示出了本申请实施例提供的一种电子设备的电路结构示意图。如图2所示,本申请实施例提供的电子设备可以包括:主板10,该主板10上设置有第一控制器101、第一开关组102和第一电源103,该第一开关组102的第一端与第一控制器101连接,该第一开关组102的第二端与第一电源103连接,该第一开关组102的第三端接地;电池11,该电池11的第一极与主板10的第一端连接;第一集成电路12,该第一集成电路12包括第一引脚121和第一开关管122,该第一引脚121与第一开关组102的第四端连接,该电池11的第二极通过第一开关管122与主板10的第二端连接。In order to solve the above technical problems, an embodiment of the present application provides an electronic device. FIG2 shows a schematic diagram of the circuit structure of an electronic device provided by an embodiment of the present application. As shown in FIG2, the electronic device provided by an embodiment of the present application may include: a mainboard 10, on which a first controller 101, a first switch group 102 and a first power supply 103 are arranged, the first end of the first switch group 102 is connected to the first controller 101, the second end of the first switch group 102 is connected to the first power supply 103, and the third end of the first switch group 102 is grounded; a battery 11, the first pole of the battery 11 is connected to the first end of the mainboard 10; a first integrated circuit 12, the first integrated circuit 12 includes a first pin 121 and a first switch tube 122, the first pin 121 is connected to the fourth end of the first switch group 102, and the second pole of the battery 11 is connected to the second end of the mainboard 10 through the first switch tube 122.
在本申请的一些实施例中,结合图2,如图3所示,上述主板10上还可以设置有主电源管理集成电路(PowerManagement Integrated Circuit,PMIC)104,该主PMIC104可以包括第三引脚1041、VPH_PWR引脚1042、GND引脚1043以及VBUS引脚1044,其中,该第三引脚1041和GND引脚1043用于与电池11连接,该VPH_PWR引脚1042可以与电子设备的多个从PMIC(图3中未示出多个从PMIC)连接,该多个从PMIC中的每个从PMIC可以连接至少一个器件连接,从而可以通过主PMIC104向每个从PMIC连接的至少一个器件供电,该VBUS引脚1044用于与外接电源(例如下述实施例中的第二电源)连接,以通过外接电源向主板10供电,从而对电池11进行充电。其中,上述第三引脚1041具体可以为主板10的第一端或主板10的第二端,上述GND引脚1043具体可以为主板10的第二端或主板10的第一端。In some embodiments of the present application, in combination with FIG. 2 , as shown in FIG. 3 , a main power management integrated circuit (PMIC) 104 may also be provided on the mainboard 10. The main PMIC 104 may include a third pin 1041, a VPH_PWR pin 1042, a GND pin 1043 and a VBUS pin 1044, wherein the third pin 1041 and the GND pin 1043 are used to connect to the battery 11, the VPH_PWR pin 1042 may be connected to a plurality of slave PMICs (the plurality of slave PMICs are not shown in FIG. 3 ) of the electronic device, each of the plurality of slave PMICs may be connected to at least one device, so that power may be supplied to at least one device connected to each slave PMIC through the main PMIC 104, and the VBUS pin 1044 is used to connect to an external power supply (such as the second power supply in the following embodiments) to supply power to the mainboard 10 through the external power supply, thereby charging the battery 11. The third pin 1041 may be specifically the first end of the mainboard 10 or the second end of the mainboard 10 , and the GND pin 1043 may be specifically the second end of the mainboard 10 or the first end of the mainboard 10 .
其中,在电池11的第一极为正极,电池11的第二极为负极的情况下,主板10的第二端可以为GND引脚1043;在电池11的第一极为负极,电池11的第二极为正极的情况下,主板10的第二端可以为第三引脚1041。Among them, when the first pole of the battery 11 is the positive pole and the second pole of the battery 11 is the negative pole, the second end of the mainboard 10 can be the GND pin 1043; when the first pole of the battery 11 is the negative pole and the second pole of the battery 11 is the positive pole, the second end of the mainboard 10 can be the third pin 1041.
在本申请的一些实施例中,上述第一电源103具体可以为长供电源。其中,该第一电源103可以提供预定的电压,例如1.8伏特v。In some embodiments of the present application, the first power source 103 may be a long-duration power source, wherein the first power source 103 may provide a predetermined voltage, such as 1.8 volts v.
本申请实施例中,上述第一开关组102的状态包括第一状态和第二状态,在第一状态下,第一开关组102的第二端与第一开关组103的第四端导通,以使得第一电源103向第一引脚121提供电压;在第二状态下第一开关组102的第三端与第一开关组103的第四端导通,以使得第一引脚121接地。In the embodiment of the present application, the state of the above-mentioned first switch group 102 includes a first state and a second state. In the first state, the second end of the first switch group 102 is connected to the fourth end of the first switch group 103, so that the first power supply 103 provides a voltage to the first pin 121; in the second state, the third end of the first switch group 102 is connected to the fourth end of the first switch group 103, so that the first pin 121 is grounded.
在本申请的一些实施例中,上述第一开关组102可以包括至少一个开关管,该至少一个开关管中的至少部分开关管的型号不同。其中,在第一状态下,至少一个开关管中的一部分开关管导通、且另一部分开关管断开,以使得第一电源103和第一引脚121连接,从而第一电源103可以向第一引脚121提供电压;在第二状态下该一部分开关管断开、且另一部分开关管断开,以使得第一引脚121接地。In some embodiments of the present application, the first switch group 102 may include at least one switch tube, and at least some of the switch tubes in the at least one switch tube are of different models. In the first state, some of the switch tubes in the at least one switch tube are turned on, and the other switch tubes are turned off, so that the first power supply 103 and the first pin 121 are connected, so that the first power supply 103 can provide a voltage to the first pin 121; in the second state, some of the switch tubes are turned off, and the other switch tubes are turned off, so that the first pin 121 is grounded.
下面将以第一开关组102包括两个开关管举例说明。The following is an example in which the first switch group 102 includes two switch tubes.
在本申请的一些实施例中,结合图2,如图4所示,上述第一开关组102包括:第二开关管1021,该第二开关管1021的第一端与第一控制器101连接,该第二开关管1021的第二端与第一电源103连接,该第二开关管1021的第三端与第一引脚121连接;第三开关管1022,该第三开关管1022的第一端与第一控制器101连接,该第三开关管1022的第二端接地,该第三开关管1022的第三端与第一引脚121连接。In some embodiments of the present application, in combination with Figure 2, as shown in Figure 4, the above-mentioned first switch group 102 includes: a second switch tube 1021, a first end of the second switch tube 1021 is connected to the first controller 101, a second end of the second switch tube 1021 is connected to the first power supply 103, and a third end of the second switch tube 1021 is connected to the first pin 121; a third switch tube 1022, a first end of the third switch tube 1022 is connected to the first controller 101, a second end of the third switch tube 1022 is grounded, and a third end of the third switch tube 1022 is connected to the first pin 121.
可以理解,上述第二开关管1021的第一端为第一开关组102的第一端,上述第二开关管1021的第二端为第一开关组102的第二端,上述第二开关管1021的第三端为第一开关组102的第四端。It can be understood that the first end of the second switch tube 1021 is the first end of the first switch group 102 , the second end of the second switch tube 1021 is the second end of the first switch group 102 , and the third end of the second switch tube 1021 is the fourth end of the first switch group 102 .
在本申请的一些实施例中,上述第二开关管1021可以为P型沟道金属氧化物半导体(P-Channel Metal Oxide Semiconductor,PMOS)管。In some embodiments of the present application, the second switch tube 1021 may be a P-channel Metal Oxide Semiconductor (PMOS) tube.
在本申请的一些实施例中,上述第二开关管1021的第一端具体可以为栅端,该第二开关管1021的第二端具体可以为源端,该第二开关管1021的第三端具体可以为漏端。In some embodiments of the present application, the first end of the second switch tube 1021 may be a gate end, the second end of the second switch tube 1021 may be a source end, and the third end of the second switch tube 1021 may be a drain end.
可以理解,上述第三开关管1022的第一端为第一开关组102的第一端,上述第三开关管1022的第二端为第一开关组102的第三端,上述第三开关管1022的第三端为第一开关组102的第四端。It can be understood that the first end of the third switch tube 1022 is the first end of the first switch group 102 , the second end of the third switch tube 1022 is the third end of the first switch group 102 , and the third end of the third switch tube 1022 is the fourth end of the first switch group 102 .
在本申请的一些实施例中,上述第三开关管1022的第三端还与第二开关管1021的第三端连接。In some embodiments of the present application, the third end of the third switch tube 1022 is also connected to the third end of the second switch tube 1021 .
在本申请的一些实施例中,上述第三开关管1022可以为N型金属氧化物半导体(N-Channel Metal Oxide Semiconductor,NMOS)管,即第三开关管1022与第二开关管1021的型号不同。In some embodiments of the present application, the third switch tube 1022 may be an N-Channel Metal Oxide Semiconductor (NMOS) tube, that is, the third switch tube 1022 is of a different model from the second switch tube 1021 .
在本申请的一些实施例中,上述第三开关管1022的第一端具体可以为栅端,该第三开关管1022的第二端具体可以为漏端,该第三开关管1022的第三端具体可以为源端。In some embodiments of the present application, the first end of the third switch tube 1022 may be a gate end, the second end of the third switch tube 1022 may be a drain end, and the third end of the third switch tube 1022 may be a source end.
本申请实施例中,在第一状态下,第二开关管1021导通、且第三开关管1022断开;在第二状态下,第二开关管1021断开、且第三开关管1022导通。In the embodiment of the present application, in the first state, the second switch tube 1021 is turned on and the third switch tube 1022 is turned off; in the second state, the second switch tube 1021 is turned off and the third switch tube 1022 is turned on.
在本申请的一些实施例中,在第一控制器101输出低电平的情况下,第二开关管1021导通、且第三开关管1022断开,第一开关组102的状态为第一状态,此时第二开关管1021的第二端和第二开关管1021的第三端导通,即第一电源103与第一引脚121之间的通路导通,因此,第一电源103可以向第一引脚121提供电压,例如提供上述预定的电压1.8v,以使得第一引脚121的电压与该预定的电压相同,例如,第一引脚121的电压也为1.8v。In some embodiments of the present application, when the first controller 101 outputs a low level, the second switch tube 1021 is turned on and the third switch tube 1022 is turned off, and the state of the first switch group 102 is the first state. At this time, the second end of the second switch tube 1021 and the third end of the second switch tube 1021 are turned on, that is, the path between the first power supply 103 and the first pin 121 is turned on. Therefore, the first power supply 103 can provide a voltage to the first pin 121, for example, the above-mentioned predetermined voltage 1.8v, so that the voltage of the first pin 121 is the same as the predetermined voltage, for example, the voltage of the first pin 121 is also 1.8v.
在本申请的一些实施例中,在第一控制器101输出高电平的情况下,第二开关管1021断开、且第三开关管1022导通,第一开关组102的状态为第二状态,此时第三开关管1022的第二端和第三开关管1022的第三端导通,即第一引脚121与地端之间的通路导通,因此,第一引脚121接地,该第一引脚121电压变为0v。In some embodiments of the present application, when the first controller 101 outputs a high level, the second switch tube 1021 is disconnected and the third switch tube 1022 is turned on, and the state of the first switch group 102 is the second state. At this time, the second end of the third switch tube 1022 and the third end of the third switch tube 1022 are turned on, that is, the path between the first pin 121 and the ground end is turned on, therefore, the first pin 121 is grounded, and the voltage of the first pin 121 becomes 0v.
可以理解,在第一状态下,第一引脚121的电压与在第二状态下第一引脚121的电压不同。It can be understood that in the first state, the voltage of the first pin 121 is different from the voltage of the first pin 121 in the second state.
如此可知,由于第一开关组可以设置第二开关管和第三开关管,这样第一控制器可以同时控制第二开关管导通或断开,且控制第三开关管断开或导通,便可以使得第一开关组的状态为第一状态或第二状态,即仅需设置第二开关管和第三开关管,第一控制器便可以实现控制第一开关组在第一状态和第二状态间切换,而无需设置较多的开关管,因此,可以在减少主板的电路复杂度的同时,减少主板的成本,从而可以减少电子设备的电路复杂度的同时,减少电子设备的成本。Thus, it can be known that since the first switch group can be provided with the second switch tube and the third switch tube, the first controller can simultaneously control the second switch tube to be turned on or off, and control the third switch tube to be turned off or on, so that the state of the first switch group can be the first state or the second state. That is, only the second switch tube and the third switch tube need to be provided, and the first controller can control the first switch group to switch between the first state and the second state without providing more switch tubes. Therefore, the circuit complexity of the mainboard can be reduced while the cost of the mainboard can be reduced, thereby reducing the circuit complexity of the electronic device while reducing the cost of the electronic device.
在本申请的一些实施例中,上述第一控制器101可以为以下任一项、应用处理器(Application Processor,AP)、微控制单元(Micro Controller Unit,MCU)。当然,第一控制器101还可以为其他处理器,本申请实施例在此不作限定。In some embodiments of the present application, the first controller 101 may be any one of the following: an application processor (AP), a microcontroller unit (MCU). Of course, the first controller 101 may also be other processors, which are not limited in the embodiments of the present application.
本申请实施例中,上述第一控制器101,用于在电池11与主板10之间的通路导通的情况下,控制第一开关组102在第一状态和第二状态间切换,以在第一引脚121产生第一电压信号。In the embodiment of the present application, the first controller 101 is used to control the first switch group 102 to switch between the first state and the second state when the path between the battery 11 and the mainboard 10 is conductive, so as to generate a first voltage signal at the first pin 121.
可以理解,第一控制器101,用于在电池11向主板10供电的情况下,控制第一开关组102在第一状态和第二状态间切换,以在第一引脚121产生第一电压信号。It can be understood that the first controller 101 is used to control the first switch group 102 to switch between the first state and the second state when the battery 11 supplies power to the mainboard 10 , so as to generate a first voltage signal at the first pin 121 .
在本申请的一些实施例中,第一控制器101可以在电池11与主板10之间的通路导通的情况下,若确定需要进入船运模式(Ship Mode),则控制第一开关组102在第一状态和第二状态间切换。In some embodiments of the present application, when the path between the battery 11 and the mainboard 10 is conductive, the first controller 101 may control the first switch group 102 to switch between the first state and the second state if it is determined that the ship mode needs to be entered.
其中,第一控制器101可以在电池11与主板10之间的通路导通的情况下,且接收到用户对电子设备的预定操作的情况下,确定需要进入船运模式(Ship Mode);或者,可以在电池11与主板10之间的通路导通的情况下,且电池11的电压小于或等于某个门限(例如下述实施例中的低压保护门限)的情况下,确定需要进入船运模式(Ship Mode)。Among them, the first controller 101 can determine that it is necessary to enter the Ship Mode when the path between the battery 11 and the main board 10 is connected and a predetermined operation of the user on the electronic device is received; or, it can determine that it is necessary to enter the Ship Mode when the path between the battery 11 and the main board 10 is connected and the voltage of the battery 11 is less than or equal to a certain threshold (for example, the low voltage protection threshold in the following embodiment).
这里,上述预定操作可以为以下任一项:用户在电子设备的显示屏上的操作、用户对电子设备的物理按键的操作等。当然,预定操作还可以为其他操作,本申请实施例对此不作限定。Here, the predetermined operation may be any of the following: an operation performed by a user on a display screen of an electronic device, an operation performed by a user on a physical key of an electronic device, etc. Of course, the predetermined operation may also be other operations, which are not limited in the present embodiment.
这里,第一控制器101可以在电池11与主板10之间的通路导通、且电子设备处于开机状态(或关机状态)的情况下,若电池11的电压小于或等于某个门限,则确定需要进入船运模式(Ship Mode)。Here, the first controller 101 may determine that it is necessary to enter the ship mode when the voltage of the battery 11 is less than or equal to a certain threshold when the path between the battery 11 and the mainboard 10 is conductive and the electronic device is in the power-on state (or power-off state).
在本申请的一些实施例中,在电池11与主板10之间的通路导通的情况下,第一控制器101可以先控制第一开关组102的状态为第一状态,此时第一电源103可以向第一引脚121提供电压,从而在确定需要进入船运模式(Ship Mode)的情况下,第一控制器101可以先控制第一开关组102的状态为第二状态,再控制第一开关组102的状态为第一状态,以此类推,以控制第一开关组102在第一状态和第二状态间往复切换,以在第一引脚121产生第一电压信号。In some embodiments of the present application, when the path between the battery 11 and the mainboard 10 is turned on, the first controller 101 may first control the state of the first switch group 102 to be the first state, at which time the first power supply 103 may provide a voltage to the first pin 121, so that when it is determined that the ship mode needs to be entered, the first controller 101 may first control the state of the first switch group 102 to be the second state, and then control the state of the first switch group 102 to be the first state, and so on, to control the first switch group 102 to switch back and forth between the first state and the second state, so as to generate a first voltage signal at the first pin 121.
可以理解,由于在第一状态下,第一电源103可以向第一引脚121提供上述预定的电压,此时第一引脚121的电压可以为上述预定的电压,而在第二状态下,第一引脚121接地,此时第一引脚121的电压可以由上述预定的电压变化为0v,因此,第一开关组102在第一状态和第二状态间往复切换,可以在第一引脚121产生脉冲电压信号,即第一电压信号。It can be understood that, since in the first state, the first power supply 103 can provide the above-mentioned predetermined voltage to the first pin 121, the voltage of the first pin 121 can be the above-mentioned predetermined voltage at this time, and in the second state, the first pin 121 is grounded, at this time the voltage of the first pin 121 can be changed from the above-mentioned predetermined voltage to 0v, therefore, the first switch group 102 switches back and forth between the first state and the second state, and can generate a pulse voltage signal, i.e., a first voltage signal, at the first pin 121.
在本申请的一些实施例中,上述电池11可以为以下任一项:锂电池、硅负极电池、钢壳电池。当然,上述电池11还可以为其他电池,本申请实施例在此不作限定。In some embodiments of the present application, the battery 11 may be any of the following: a lithium battery, a silicon negative electrode battery, a steel shell battery. Of course, the battery 11 may also be other batteries, which are not limited in the embodiments of the present application.
在本申请的一些实施例中,上述电池11的第一极可以正极或负极。上述电池11的第二极可以为负极或正极。需要说明的是,图2中是以电池11的第一极为正极,电池11的第二极为负极进行示意的。In some embodiments of the present application, the first electrode of the battery 11 may be a positive electrode or a negative electrode. The second electrode of the battery 11 may be a negative electrode or a positive electrode. It should be noted that FIG. 2 illustrates that the first electrode of the battery 11 is a positive electrode and the second electrode of the battery 11 is a negative electrode.
本申请实施例中,上述第一集成电路12,用于根据第一电压信号控制第一开关管122断开,以断开电池11与主板10之间的通路。In the embodiment of the present application, the first integrated circuit 12 is used to control the first switch tube 122 to be disconnected according to the first voltage signal, so as to disconnect the path between the battery 11 and the mainboard 10.
可以理解,第一集成电路12,用于根据第一电压信号控制第一开关管122断开,以使得电池11停止向主板10供电。It can be understood that the first integrated circuit 12 is used to control the first switch tube 122 to be disconnected according to the first voltage signal, so that the battery 11 stops supplying power to the mainboard 10 .
可以理解,若第一集成电路12接收到第一电压信号,则可以认为可能需求进入船运模式,因此,第一集成电路12可以直接控制第一开关管122断开,以断开电池11与主板10之间的通路。It can be understood that if the first integrated circuit 12 receives the first voltage signal, it can be considered that it may be necessary to enter the shipping mode. Therefore, the first integrated circuit 12 can directly control the first switch tube 122 to disconnect to disconnect the path between the battery 11 and the mainboard 10.
在本申请的一些实施例中,上述第一集成电路12具体可以为保护集成电路。其中,该第一集成电路12可以包括多个引脚,例如VDD引脚、VSS引脚、VS引脚、DOUT引脚、COUT引脚、VM引脚以及第一引脚121等。该VDD引脚与电池11的正极连接,该VSS引脚与电池11的负极连接,DOUT引脚与第一开关管122连接,该第一引脚121具体可以为CTL引脚。In some embodiments of the present application, the first integrated circuit 12 may be a protection integrated circuit. The first integrated circuit 12 may include a plurality of pins, such as a VDD pin, a VSS pin, a VS pin, a DOUT pin, a COUT pin, a VM pin, and a first pin 121. The VDD pin is connected to the positive electrode of the battery 11, the VSS pin is connected to the negative electrode of the battery 11, the DOUT pin is connected to the first switch tube 122, and the first pin 121 may be a CTL pin.
需要说明的是,针对VDD引脚、VSS引脚、VS引脚、DOUT引脚、COUT引脚以及VM引脚的作用的说明,可以参考相关技术中的具体描述,本申请实施例在此不予赘述。It should be noted that for the description of the functions of the VDD pin, VSS pin, VS pin, DOUT pin, COUT pin and VM pin, reference can be made to the specific description in the relevant technology, and the embodiments of the present application will not be repeated here.
示例性地,假设电池11的第一极为正极,电池11的第二极为负极,结合图2、图3和图4,电池11的第一极(即正极)与主板10的第一端(例如第三引脚1041)连接,VDD引脚可以通过电阻R1与电池11的第一极连接,VSS引脚可以与电池11的第二极(即负极)连接,CS引脚可以通过电阻RSNS与电池11的第二极连接,DOUT引脚可以与第一开关管122的栅极连接,第一开关管122的源极可以与电阻RSNS连接,COUT引脚可以与第四开关管Q1的栅极连接,第四开关管Q1的源极可以与第一开关管122的漏极连接,第四开关管Q1的漏极可以与主板10的第二端(例如GND引脚1043)连接,可以理解在图2、图3和图4中,电池11的第二极通过电阻RSNS、第一开关管122以及第四开关管Q1与主板10的第二端(例如GND引脚1043)连接,VM引脚可以通过电阻R2与第四开关管Q1的漏极和主板10的第二端(例如GND引脚1043)连接。Exemplarily, assuming that the first pole of the battery 11 is a positive pole and the second pole of the battery 11 is a negative pole, in combination with FIG. 2, FIG. 3 and FIG. 4, the first pole (i.e., the positive pole) of the battery 11 is connected to the first end (e.g., the third pin 1041) of the mainboard 10, the VDD pin can be connected to the first pole of the battery 11 through the resistor R1, the VSS pin can be connected to the second pole (i.e., the negative pole) of the battery 11, the CS pin can be connected to the second pole of the battery 11 through the resistor RSNS, the DOUT pin can be connected to the gate of the first switch tube 122, the source of the first switch tube 122 can be connected to the resistor RSNS, and COUT The pin can be connected to the gate of the fourth switch tube Q1, the source of the fourth switch tube Q1 can be connected to the drain of the first switch tube 122, and the drain of the fourth switch tube Q1 can be connected to the second end of the mainboard 10 (for example, the GND pin 1043). It can be understood that in Figures 2, 3 and 4, the second electrode of the battery 11 is connected to the second end of the mainboard 10 (for example, the GND pin 1043) through the resistor RSNS, the first switch tube 122 and the fourth switch tube Q1, and the VM pin can be connected to the drain of the fourth switch tube Q1 and the second end of the mainboard 10 (for example, the GND pin 1043) through the resistor R2.
又示例性地,假设电池11的第一极为负极,电池11的第二极为正极,如图5所示,电池11的第一极(即负极)与主板10的第一端(例如GND引脚1043)连接,VDD引脚可以与电池11的第二极(即正极)连接,VSS引脚可以通过电阻R1与电池11的第一极(即负极)连接,CS引脚可以通过电阻RSNS与电池11的第二极(即正极)连接,DOUT引脚可以与第一开关管122的栅极连接,第一开关管122的源极可以与第四开关管Q1的漏极连接,第一开关管122的漏极可以与主板10的第二端(例如第三引脚1041)连接,COUT引脚可以与第四开关管Q1的栅极连接,第四开关管Q1的源极与电阻RSNS和CS引脚连接,可以理解在图5中,电池11的第二极(即正极)通过电阻RSNS、第四开关管Q1以及第一开关管122与主板10的第二端(例如第三引脚1041)连接,VM引脚可以通过电阻R2与第一开关管122的漏极和主板10的第二端(例如第三引脚1041)连接。As another example, assuming that the first electrode of the battery 11 is a negative electrode and the second electrode of the battery 11 is a positive electrode, as shown in FIG5 , the first electrode (i.e., the negative electrode) of the battery 11 is connected to the first end (e.g., the GND pin 1043) of the mainboard 10, the VDD pin can be connected to the second electrode (i.e., the positive electrode) of the battery 11, the VSS pin can be connected to the first electrode (i.e., the negative electrode) of the battery 11 through the resistor R1, the CS pin can be connected to the second electrode (i.e., the positive electrode) of the battery 11 through the resistor RSNS, the DOUT pin can be connected to the gate of the first switch tube 122, and the source of the first switch tube 122 can be connected to the drain of the fourth switch tube Q1. The drain of the first switch tube 122 can be connected to the second end of the mainboard 10 (for example, the third pin 1041), the COUT pin can be connected to the gate of the fourth switch tube Q1, and the source of the fourth switch tube Q1 is connected to the resistor RSNS and the CS pin. It can be understood that in Figure 5, the second pole (i.e., the positive pole) of the battery 11 is connected to the second end of the mainboard 10 (for example, the third pin 1041) through the resistor RSNS, the fourth switch tube Q1 and the first switch tube 122, and the VM pin can be connected to the drain of the first switch tube 122 and the second end of the mainboard 10 (for example, the third pin 1041) through the resistor R2.
在本申请的一些实施例中,第一集成电路12可以在接收到第一电压信号的情况下,直接控制第一开关管122断开,或者,可以在接收到第一电压信号的情况下,先判断该第一电压信号是否满足某个条件(例如下述实施例中的第一条件),再在该第一电压信号满足该某个条件的情况下,控制第一开关管122断开。In some embodiments of the present application, the first integrated circuit 12 can directly control the first switch tube 122 to disconnect when receiving the first voltage signal, or, when receiving the first voltage signal, it can first determine whether the first voltage signal satisfies a certain condition (such as the first condition in the following embodiment), and then control the first switch tube 122 to disconnect when the first voltage signal satisfies the certain condition.
其中,第一集成电路12可以在接收到第一电压信号的情况下,延迟第四时长再控制第一开关管122断开,或者,可以在接收到第一电压信号、且第一电压信号满足该某个条件的情况下,延迟第四时长再控制第一开关管122断开。Among them, the first integrated circuit 12 can delay the fourth time period before controlling the first switch tube 122 to disconnect when receiving the first voltage signal, or can delay the fourth time period before controlling the first switch tube 122 to disconnect when receiving the first voltage signal and the first voltage signal meets the certain condition.
以下将以第一集成电路12需要判断第一电压信号是否满足某个条件,来确定是否控制第一开关管122断开为例,举例说明。The following will take the case where the first integrated circuit 12 needs to determine whether the first voltage signal satisfies a certain condition to determine whether to control the first switch tube 122 to be turned off as an example for explanation.
本申请实施例中,上述第一控制器101,具体用于在第一时长内按照第一数量控制第一开关组102在第一状态和第二状态间往复切换,且相邻的两次切换的切换时间之间的时间间隔大于或等于第二时长,以在第一引脚121产生第一电压信号。In the embodiment of the present application, the above-mentioned first controller 101 is specifically used to control the first switch group 102 to switch back and forth between the first state and the second state according to the first quantity within a first time period, and the time interval between the switching times of two adjacent switches is greater than or equal to the second time period, so as to generate a first voltage signal at the first pin 121.
在本申请的一些实施例中,上述第一数量可以为5。当然,第一数量还可以为其他数量,本申请实施例在此不作限定。In some embodiments of the present application, the first number may be 5. Of course, the first number may also be other numbers, which is not limited in the embodiments of the present application.
示例性地,假设第一数量为5,则第一控制器101可以在第一时长内,先将第一开关组102的状态从第一状态切换至第二状态,然后再在从切换至第二状态的时刻起的第二时长后,将第一开关组102的状态从第二状态切换至第一状态,以完成第一开关组102在第一状态和第二状态间往复切换一次,下来第一控制器101可以重复上述步骤四次,以完成第一开关组102在第一状态和第二状态间往复切换四次,从而可以在第一引脚121产生第一电压信号。Exemplarily, assuming that the first number is 5, the first controller 101 can first switch the state of the first switch group 102 from the first state to the second state within a first time period, and then switch the state of the first switch group 102 from the second state to the first state after a second time period from the moment of switching to the second state, so as to complete the reciprocating switching of the first switch group 102 between the first state and the second state once. Next, the first controller 101 can repeat the above steps four times to complete the reciprocating switching of the first switch group 102 between the first state and the second state four times, so as to generate a first voltage signal at the first pin 121.
本申请实施例中,上述第一集成电路12,具体用于在第一电压信号满足第一条件的情况下,控制第一开关管122断开;该第一条件包括:第一电压信号在第一时长内的脉冲的个数为第一数量、且每个脉冲的脉冲时长大于或等于第二时长。In the embodiment of the present application, the above-mentioned first integrated circuit 12 is specifically used to control the first switch tube 122 to disconnect when the first voltage signal meets the first condition; the first condition includes: the number of pulses of the first voltage signal within the first time length is a first number, and the pulse duration of each pulse is greater than or equal to the second time length.
本申请实施例中,由于可能会出现第一控制器101或PMIC104因受到干扰,而导致第一引脚122的电压发生改变的情况,这样可能会导致第一集成电路12直接控制第一开关管122断开,因此,为了避免上述情况,第一控制器101可以按照上述方法来控制第一开关管122通断,以生成特定序列的脉冲电压信号(即第一电压信号),且第一集成电路12会在第一电压信号满足第一条件的情况下,才控制第一开关管122断开。In the embodiment of the present application, since the first controller 101 or PMIC 104 may be interfered with, causing the voltage of the first pin 122 to change, this may cause the first integrated circuit 12 to directly control the first switch tube 122 to be disconnected. Therefore, in order to avoid the above situation, the first controller 101 can control the on and off of the first switch tube 122 according to the above method to generate a specific sequence of pulse voltage signals (i.e., the first voltage signal), and the first integrated circuit 12 will control the first switch tube 122 to be disconnected only when the first voltage signal meets the first condition.
可以理解,在第一集成电路12控制第一开关管122断开之后,电子设备可以进入船运模式。It can be understood that after the first integrated circuit 12 controls the first switch tube 122 to be turned off, the electronic device can enter the shipping mode.
下面将以具体的示例,举例说明电子设备进入船运模式的流程。The following is a specific example to illustrate the process of electronic equipment entering shipping mode.
结合图2、图3和图4,如图6所示,电子设备处于正常状态(例如电池11与主板10之间的通路导通,且电子设备处于开机状态或关机状态),第一控制器101可以先控制第一开关组102的状态为第一状态,此时第一电源103可以向第一引脚121提供上述预定的电压1.8v,从而第一引脚121的电压维持在1.8v,即第一引脚121的电压信号(例如CTL信号)维持在1.8v,在确定需要进入船运模式(Ship Mode)的情况下,第一控制器101可以在第一时长(例如T2)内,先控制第一开关组102的状态从第一状态切换至第二状态,此时第一引脚121接地,从而第一引脚121的电压由1.8v变为0v,然后再在从切换至第二状态的时刻起的第二时长(例如T1)之后,将第一开关组102的状态从第二状态切换至第一状态,此时第一电源103可以向第一引脚121提供上述预定的电压1.8v,从而第一引脚121的电压可以由0v变为1.8v,以完成第一开关组102在第一状态和第二状态间往复切换一次,下来第一控制器101可以重复上述步骤四次,以完成第一开关组102在第一状态和第二状态间往复切换四次,从而可以在第一引脚121产生如图6中所示的第一电压信号,进而第一集成电路12可以在确定第一电压信号在第一时长内的脉冲的个数为第一数量(即5个)、且每个脉冲的脉冲时长大于或等于第二时长(即T2)的情况下,延时第四时长(例如T3)后,控制第一开关管122断开,即电子设备进入船运模式。In combination with FIG. 2 , FIG. 3 and FIG. 4 , as shown in FIG. 6 , the electronic device is in a normal state (for example, the path between the battery 11 and the mainboard 10 is connected, and the electronic device is in a power-on state or a power-off state), the first controller 101 can first control the state of the first switch group 102 to be the first state, at which time the first power supply 103 can provide the above-mentioned predetermined voltage 1.8v to the first pin 121, so that the voltage of the first pin 121 is maintained at 1.8v, that is, the voltage signal (for example, CTL signal) of the first pin 121 is maintained at 1.8v, and when it is determined that the Ship mode needs to be entered, the first power supply 103 can provide the first pin 121 with the predetermined voltage 1.8v. In the case of a first switching mode, the first controller 101 can first control the state of the first switch group 102 to switch from the first state to the second state within a first time length (for example, T2), at which time the first pin 121 is grounded, so that the voltage of the first pin 121 changes from 1.8v to 0v, and then after a second time length (for example, T1) from the moment of switching to the second state, the state of the first switch group 102 is switched from the second state to the first state, at which time the first power supply 103 can provide the first pin 121 with the above-mentioned predetermined voltage 1.8v, so that the voltage of the first pin 121 can change from 0v to 1.8v, so as to complete the first switching mode. The switch group 102 switches back and forth between the first state and the second state once, and then the first controller 101 can repeat the above steps four times to complete the switching of the first switch group 102 between the first state and the second state four times, so that the first voltage signal as shown in Figure 6 can be generated at the first pin 121, and then the first integrated circuit 12 can control the first switch tube 122 to disconnect after delaying for a fourth time period (for example, T3) when it is determined that the number of pulses of the first voltage signal within the first time period is the first number (i.e., 5) and the pulse duration of each pulse is greater than or equal to the second time period (i.e., T2), that is, the electronic device enters the shipping mode.
如此可知,由于在需要断开电池与主板之间的通路时,第一控制器可以在第一时长内按照第一数量控制第一开关组在第一状态和第二状态且往复切换,且相邻的两次切换的切换时间之间的时间间隔大于或等于第二时长,以生成满足第一条件的第一电压信号,这样第一集成电路可以根据满足第一条件的第一电压信号来断开电池与主板之间的通路,而不是根据任意的信号来断开电池与主板之间的通路供电,因此,可以避免因受到干扰,而断开电池与主板之间的通路的情况,如此,可以避免因受到干扰,而导致电池向主板供电的情况。Thus, it can be known that, when it is necessary to disconnect the passage between the battery and the mainboard, the first controller can control the first switch group to switch back and forth between the first state and the second state according to the first quantity within a first time period, and the time interval between the switching times of two adjacent switches is greater than or equal to the second time period to generate a first voltage signal that satisfies the first condition. In this way, the first integrated circuit can disconnect the passage between the battery and the mainboard according to the first voltage signal that satisfies the first condition, rather than disconnecting the passage between the battery and the mainboard according to an arbitrary signal. Therefore, it is possible to avoid the situation where the passage between the battery and the mainboard is disconnected due to interference. In this way, it is possible to avoid the situation where the battery supplies power to the mainboard due to interference.
需要说明的是,第一控制器101还可以按照其他方式来控制第一开关组102在第一状态和第二状态间往复切换,以在第一引脚121产生满足其他条件的第一电压信号,本申请实施例对此不作限定。It should be noted that the first controller 101 can also control the first switch group 102 to switch back and forth between the first state and the second state in other ways to generate a first voltage signal that meets other conditions at the first pin 121, which is not limited in this embodiment of the present application.
在相关技术中,在需要断开电池11与主板10之间的通路时,仅会断开主PMIC104中的开关管QBAT,以使得主PMIC104的VPH_PWR引脚1042连接的器件下电,然而与电池11的p+节点直接连接的器件却仍处于工作状态,即电池11仍然会向该器件供电,因此,会导致电池11的电量持续消耗。然而,在本申请实施例中,在需要断开电池11与主板10之间的通路时,可以断开第一开关管122,这样电池11与主板10之间的通路断开,此时主PMIC104的VPH_PWR1042引脚和与电池11的p+节点直接连接的器件均会下电,因此,可以减少电池的电量的消耗。In the related art, when it is necessary to disconnect the path between the battery 11 and the mainboard 10, only the switch tube QBAT in the main PMIC 104 is disconnected, so that the device connected to the VPH_PWR pin 1042 of the main PMIC 104 is powered off, but the device directly connected to the p+ node of the battery 11 is still in a working state, that is, the battery 11 still supplies power to the device, thus causing the battery 11 to continue to consume power. However, in the embodiment of the present application, when it is necessary to disconnect the path between the battery 11 and the mainboard 10, the first switch tube 122 can be disconnected, so that the path between the battery 11 and the mainboard 10 is disconnected, and at this time, the VPH_PWR1042 pin of the main PMIC 104 and the device directly connected to the p+ node of the battery 11 are powered off, thus reducing the battery power consumption.
本申请实施例提供一种电子设备,该电子设备包括设置有第一控制器、第一开关组和第一电源的主板,第一极与主板的第一端连接的电池,以及包括第一引脚和第一开关管的第一集成电路,该第一开关组的第一端与第一控制器连接,该第一开关组的第二端与第一电源连接,该第一开关组的第三端接地,该第一引脚与第一开关组的第四端连接,该电池的第二极通过第一开关管与主板的第二端连接;其中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下,第一开关组的第二端与第一开关组的第四端导通,以使得第一电源向第一引脚提供电压;在第二状态下第一开关组的第三端与第一开关组的第四端导通,以使得第一引脚接地;上述第一控制器,用于在电池与主板之间的通路导通的情况下,控制第一开关组在第一状态和第二状态间切换,以在第一引脚产生第一电压信号;上述第一集成电路,用于根据第一电压信号控制第一开关管断开,以断开电池与主板之间的通路。由于电池中设置有第一开关管和第一集成电路,且主板上设置有第一控制器、第一开关组和第一电源,这样第一控制器可以在电池与主板之间的通路导通的情况下,即在电池向主板供电的情况下,通过调整控制第一开关组在不同状态间切换的方式,来使得第一引脚在与第一电源导通和接地间切换,这样可以在第一引脚上产生第一电压信号,以通过第一电压信号触发第一集成电路控制第一开关管断开,以断开电池与主板之间的通路,以使得电池停止向主板供电,从而停止向电子设备的所有器件供电,而不是停止向电子设备的部分器件供电,因此,可以减少电池供电的器件的数量,以减少电池的电量消耗,这样可以减少出现在长时间不使用电子设备的情况下,电池长时间电量较低的情况,进而可以减少出现电池鼓包等现象,如此,可以提高电子设备的使用安全性。An embodiment of the present application provides an electronic device, which includes a mainboard provided with a first controller, a first switch group and a first power source, a battery having a first pole connected to a first end of the mainboard, and a first integrated circuit including a first pin and a first switch tube, wherein the first end of the first switch group is connected to the first controller, the second end of the first switch group is connected to the first power source, the third end of the first switch group is grounded, the first pin is connected to the fourth end of the first switch group, and the second pole of the battery is connected to the second end of the mainboard through the first switch tube; wherein the state of the first switch group includes a first state and a second state, wherein in the first state, the second end of the first switch group is connected to the fourth end of the first switch group, so that the first power source provides a voltage to the first pin; and in the second state, the third end of the first switch group is connected to the fourth end of the first switch group, so that the first pin is grounded; the first controller is used to control the first switch group to switch between the first state and the second state when the path between the battery and the mainboard is connected, so as to generate a first voltage signal at the first pin; and the first integrated circuit is used to control the first switch tube to be disconnected according to the first voltage signal, so as to disconnect the path between the battery and the mainboard. Since the battery is provided with a first switch tube and a first integrated circuit, and the mainboard is provided with a first controller, a first switch group and a first power supply, the first controller can make the first pin switch between being connected to the first power supply and being grounded by adjusting the way of controlling the first switch group to switch between different states when the path between the battery and the mainboard is connected, that is, when the battery supplies power to the mainboard. In this way, a first voltage signal can be generated on the first pin to trigger the first integrated circuit to control the first switch tube to disconnect through the first voltage signal, so as to disconnect the path between the battery and the mainboard, so that the battery stops supplying power to the mainboard, thereby stopping supplying power to all devices of the electronic device, rather than stopping supplying power to some devices of the electronic device. Therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery, so as to reduce the situation where the battery has a low power for a long time when the electronic device is not used for a long time, and further reduce the phenomenon of battery bulging, etc., so that the safety of the use of the electronic device can be improved.
当然,在断开电池11与主板10之间的通路之后,第一集成电路12还可以在确定用户需要使用电子设备的情况下,导通电池11与主板10之间的通路。可选地,结合图2,如图7所示,上述第一集成电路12还包括第二引脚123,该第二引脚123与主板10的第二端连接;上述第一集成电路12,还用于在电池11与主板10之间的通路断开的情况下,将第二引脚123的电压调整为预设电压。Of course, after disconnecting the path between the battery 11 and the mainboard 10, the first integrated circuit 12 can also conduct the path between the battery 11 and the mainboard 10 when it is determined that the user needs to use the electronic device. Optionally, in combination with FIG. 2, as shown in FIG. 7, the first integrated circuit 12 further includes a second pin 123, and the second pin 123 is connected to the second end of the mainboard 10; the first integrated circuit 12 is also used to adjust the voltage of the second pin 123 to a preset voltage when the path between the battery 11 and the mainboard 10 is disconnected.
在本申请的一些实施例中,上述第二引脚123具体可以为VM引脚。其中,在图7中,电池11的第一极为正极,电池11的第二极为负极,该第二引脚123可以与主板10的第二端(例如GND引脚1043)连接。在图8中,电池11的第一极为负极,电池11的第二极为正极,第二引脚123可以与主板10的第二端(例如第三引脚1041)连接。In some embodiments of the present application, the second pin 123 may be a VM pin. In FIG7 , the first pole of the battery 11 is a positive pole, the second pole of the battery 11 is a negative pole, and the second pin 123 may be connected to the second end of the motherboard 10 (e.g., the GND pin 1043). In FIG8 , the first pole of the battery 11 is a negative pole, the second pole of the battery 11 is a positive pole, and the second pin 123 may be connected to the second end of the motherboard 10 (e.g., the third pin 1041).
在本申请的一些实施例中,上述预设电压可以与上述预定的电压相同或不同,例如,预设电压可以为1.8v,即预设电压可以与上述预定的电压相同。In some embodiments of the present application, the preset voltage may be the same as or different from the predetermined voltage. For example, the preset voltage may be 1.8V, that is, the preset voltage may be the same as the predetermined voltage.
在本申请的一些实施例中,在第一集成电路12中还可以设置有第五开关管,该第二引脚123可以通过第五开关管与第一集成电路12的VDD引脚连接,从而第一集成电路12可以在电池11与主板10之间的通路断开的情况下,控制第五开关管导通,以使得VDD引脚可以向第二引脚123提供电压,可以理解,预设电压此时可以为VDD引脚可以向第二引脚123提供电压。或者,第一集成电路12中设置有第六开关管,该第二引脚123可以通过第六开关管接地,从而第一集成电路12可以在电池11与主板10之间的通路断开的情况下,控制第六开关管导通,以使得第二引脚123接地,可以理解,预设电压此时可以为0v。In some embodiments of the present application, a fifth switch tube may be further provided in the first integrated circuit 12, and the second pin 123 may be connected to the VDD pin of the first integrated circuit 12 through the fifth switch tube, so that the first integrated circuit 12 may control the fifth switch tube to be turned on when the path between the battery 11 and the mainboard 10 is disconnected, so that the VDD pin may provide a voltage to the second pin 123. It can be understood that the preset voltage may be that the VDD pin may provide a voltage to the second pin 123. Alternatively, a sixth switch tube may be provided in the first integrated circuit 12, and the second pin 123 may be grounded through the sixth switch tube, so that the first integrated circuit 12 may control the sixth switch tube to be turned on when the path between the battery 11 and the mainboard 10 is disconnected, so that the second pin 123 may be grounded. It can be understood that the preset voltage may be 0v at this time.
其中,在第一集成电路12可以在电池11与主板10之间的通路导通、且电子设备处于开机状态或关机状态的情况下,控制第五开关管断开,以使得第二引脚123的电压可以为低电平。在第一集成电路12可以在电池11与主板10之间的通路导通、且电子设备处于开机状态或关机状态的情况下,控制第六开关管断开,以使得第二引脚123的电压可以为低电平。Wherein, when the first integrated circuit 12 can conduct the path between the battery 11 and the mainboard 10, and the electronic device is in the power-on state or the power-off state, the fifth switch tube is controlled to be disconnected, so that the voltage of the second pin 123 can be at a low level. When the first integrated circuit 12 can conduct the path between the battery 11 and the mainboard 10, and the electronic device is in the power-on state or the power-off state, the sixth switch tube is controlled to be disconnected, so that the voltage of the second pin 123 can be at a low level.
本申请实施例中,在第二电源与主板10之间的通路导通的情况下,主板10的第二端用于调整第二引脚123的电压,以在第二引脚123产生第二电压信号。In the embodiment of the present application, when the path between the second power source and the mainboard 10 is connected, the second end of the mainboard 10 is used to adjust the voltage of the second pin 123 to generate a second voltage signal at the second pin 123 .
在本申请的一些实施例中,上述第二电源具体可以为外接电源,在用户需要使用电子设备的情况下,用户可以将第二电源的插头插入电子设备的充电接口中,以使得第二电源与主板10之间的通路导通,从而主板10的第二端可以调整第二引脚123的电压。In some embodiments of the present application, the second power supply may specifically be an external power supply. When a user needs to use an electronic device, the user may insert a plug of the second power supply into a charging port of the electronic device to enable a path between the second power supply and the mainboard 10 to be connected, so that the second end of the mainboard 10 may adjust the voltage of the second pin 123.
在本申请的一些实施例中,在第二电源与主板10之间的通路断开的情况下,主板10下电,此时第二引脚123可以视为悬空,因此,第二引脚123的电压维持在上述预设电压。In some embodiments of the present application, when the path between the second power supply and the mainboard 10 is disconnected, the mainboard 10 is powered off, and the second pin 123 can be considered to be suspended. Therefore, the voltage of the second pin 123 is maintained at the above-mentioned preset voltage.
假设电池11的第一极为正极,电池11的第二极为负极,主板10的第二端为上述GND引脚1043,结合图7,在第二电源与主板10之间的通路导通、且电子设备处于开机状态(或关机状态)的情况下,第一集成电路12可以控制第五开关管断开,以使得第二引脚123(即VM引脚)的电压可以为0v,并在电池11与主板10之间的通路断开的情况下,第一集成电路12可以控制第五开关管导通,以使得VDD引脚可以向第二引脚123提供上述预设电压,此时用户可以控制第二电源与主板10之间的通路导通,以使得主板10上电,这样电流可以由第二电源经过VBUS引脚1044(即第二电源与主板10连接的引脚)、VPH_PWR引脚1042、开关管QBAT、P+节点、电池11的第一极(即正极)、电池11的第二极(即负极)、电阻RSNS、第一开关管122、第四开关管Q1以及p-节点流动至GND引脚1043,此时第二引脚123可以视为接地,因此,第二引脚123的电压由上述预设电压变为0v。Assuming that the first pole of the battery 11 is the positive pole, the second pole of the battery 11 is the negative pole, and the second end of the mainboard 10 is the above-mentioned GND pin 1043, in conjunction with FIG7, when the path between the second power supply and the mainboard 10 is connected and the electronic device is in the power-on state (or the power-off state), the first integrated circuit 12 can control the fifth switch tube to be disconnected so that the voltage of the second pin 123 (i.e., the VM pin) can be 0v, and when the path between the battery 11 and the mainboard 10 is disconnected, the first integrated circuit 12 can control the fifth switch tube to be turned on so that the VDD pin can provide the above-mentioned preset voltage to the second pin 123. The user can control the conduction of the path between the second power supply and the mainboard 10 so that the mainboard 10 is powered on, so that the current can flow from the second power supply through the VBUS pin 1044 (i.e., the pin connecting the second power supply to the mainboard 10), the VPH_PWR pin 1042, the switch tube QBAT, the P+ node, the first pole (i.e., the positive pole) of the battery 11, the second pole (i.e., the negative pole) of the battery 11, the resistor RSNS, the first switch tube 122, the fourth switch tube Q1 and the p-node to the GND pin 1043. At this time, the second pin 123 can be regarded as grounded, so the voltage of the second pin 123 changes from the above-mentioned preset voltage to 0v.
需要说明的是,由于第一开关管122的与电池11的第二极连接的一端还可以通过二极管与第一开关管122与GND引脚1043的另一端连接,该二极管的正极与第一开关管122的一端连接,该二极管的负极与第一开关管122的另一端连接,因此,在第一开关管122断开的情况下,电流还是可以通过第一开关管122的一端、二极管以及第一开关管122的另一端流动至第四开关管Q1的。It should be noted that, since one end of the first switch tube 122 connected to the second pole of the battery 11 can also be connected to the other end of the first switch tube 122 and the GND pin 1043 through a diode, the positive pole of the diode is connected to one end of the first switch tube 122, and the negative pole of the diode is connected to the other end of the first switch tube 122. Therefore, when the first switch tube 122 is disconnected, the current can still flow to the fourth switch tube Q1 through one end of the first switch tube 122, the diode and the other end of the first switch tube 122.
假设电池11的第一极为负极,电池11的第二极为正极,主板10的第二端为上述第三引脚1041,结合图8,在第二电源与主板10之间的通路导通、且电子设备处于开机状态(或关机状态)的情况下,第一集成电路12可以控制第六开关管断开,并在电池11与主板10之间的通路断开的情况下,第一集成电路12可以控制第六开关管导通,以使得第二引脚123(例如VM引脚)接地,第二引脚123为上述预设电压(即0v),此时用户可以控制第二电源与主板10之间的通路导通,以使得主板10上电,这样电流可以由第二电源经过VBUS引脚1044(即第二电源与主板10连接的引脚)、VPH_PWR引脚1042、开关管QBAT、以及P+节点流动至第二引脚123,此时第二引脚123可以视为由第二电源提供电压,因此,第二引脚123的电源由上述预设电源(例如0V)变为第二电源提供的电压(例如1.8v)。Assuming that the first pole of the battery 11 is a negative pole, the second pole of the battery 11 is a positive pole, and the second end of the mainboard 10 is the third pin 1041 mentioned above, in conjunction with Figure 8, when the path between the second power supply and the mainboard 10 is connected and the electronic device is in the power-on state (or the power-off state), the first integrated circuit 12 can control the sixth switch tube to be disconnected, and when the path between the battery 11 and the mainboard 10 is disconnected, the first integrated circuit 12 can control the sixth switch tube to be turned on, so that the second pin 123 (for example, the VM pin) is grounded, and the second pin 123 is the above-mentioned preset voltage (that is, 0v). At this time, the user can control the path between the second power supply and the mainboard 10 to be connected, so that the mainboard 10 is powered on, so that the current can flow from the second power supply through the VBUS pin 1044 (that is, the pin connecting the second power supply to the mainboard 10), the VPH_PWR pin 1042, the switch tube QBAT, and the P+ node to the second pin 123. At this time, the second pin 123 can be regarded as provided with voltage by the second power supply. Therefore, the power supply of the second pin 123 is changed from the above-mentioned preset power supply (for example, 0V) to the voltage provided by the second power supply (for example, 1.8v).
本申请实施例中,上述第一集成电路12,还用于根据第二电压信号控制第一开关管122导通,以导通电池11与主板10之间的通路。In the embodiment of the present application, the first integrated circuit 12 is further used to control the first switch tube 122 to be turned on according to the second voltage signal, so as to conduct the path between the battery 11 and the mainboard 10 .
在本申请的一些实施例中,第一集成电路12可以在接收到第二电压信号的情况下,直接控制第一开关管122导通,或者,可以在接收到第二电压信号的情况下,先判断该第二电压信号是否满足某个条件(例如下述实施例中的第二条件),再在该第二电压信号满足该某个条件的情况下,控制第一开关管122导通。In some embodiments of the present application, the first integrated circuit 12 can directly control the first switch tube 122 to be turned on when receiving the second voltage signal, or, when receiving the second voltage signal, it can first determine whether the second voltage signal satisfies a certain condition (such as the second condition in the following embodiment), and then control the first switch tube 122 to be turned on when the second voltage signal satisfies the certain condition.
如此可知,由于在需要导通电池与主板之间的通路时,即需要电池向主板供电时,可以使用第二电源向主板供电的方式,来使得主板的第二端调整第二引脚的电压,以在第二引脚产生第二电压信号,因此,第一集成电路可以通过该第二电压信号,准确地控制第一开关管导通,以准确地导通电池与主板之间的通路。Thus, it can be known that when the path between the battery and the mainboard needs to be opened, that is, when the battery needs to supply power to the mainboard, the second power supply can be used to supply power to the mainboard, so that the second end of the mainboard adjusts the voltage of the second pin to generate a second voltage signal at the second pin. Therefore, the first integrated circuit can accurately control the conduction of the first switch tube through the second voltage signal to accurately open the path between the battery and the mainboard.
以下将以第一集成电路12需要判断第二电压信号是否满足某个条件,来确定是否控制第一开关管122导通为例,举例说明。The following will take the case where the first integrated circuit 12 needs to determine whether the second voltage signal satisfies a certain condition to determine whether to control the first switch tube 122 to be turned on as an example for explanation.
在本申请的一些实施例中,上述第一集成电路12,具体用于在第二电压信号满足第二条件的情况下,控制第一开关管122导通;该第二条件包括:第二电压信号对应的电压发生一次变化,且在第三时长内第二电压信号对应的电压未发生变化。In some embodiments of the present application, the above-mentioned first integrated circuit 12 is specifically used to control the first switch tube 122 to be turned on when the second voltage signal satisfies a second condition; the second condition includes: the voltage corresponding to the second voltage signal changes once, and the voltage corresponding to the second voltage signal does not change within a third time period.
本申请实施例中,由于可能会出现第一控制器101或PMIC104因受到干扰,而导致第二引脚123的电压发生改变的情况,这样可能会导致第一集成电路12直接控制第一开关管122导通,因此,为了避免上述情况,在用户可以使用上述方法来第二电源向主板10供电,以生成特定序列的脉冲电压信号(即第二电压信号),且第一集成电路12会在第二电压信号满足第二条件的情况下,才控制第一开关管122导通。In the embodiment of the present application, since the voltage of the second pin 123 may change due to interference with the first controller 101 or PMIC 104, the first integrated circuit 12 may directly control the first switch tube 122 to be turned on. Therefore, in order to avoid the above situation, the user can use the above method to supply power to the mainboard 10 with the second power supply to generate a specific sequence of pulse voltage signals (i.e., the second voltage signal), and the first integrated circuit 12 will control the first switch tube 122 to be turned on only when the second voltage signal satisfies the second condition.
可以理解,在第一集成电路12控制第一开关管122导通之后,电子设备可以退出船运模式。It can be understood that after the first integrated circuit 12 controls the first switch tube 122 to be turned on, the electronic device can exit the shipping mode.
下面将以具体的示例,举例说明电子设备退出船运模式的流程。The following will use a specific example to illustrate the process of an electronic device exiting shipping mode.
结合图7,如图9所示,电子设备处于开机状态或关机状态,且电池11与主板10之间的通路导通,第一集成电路12可以控制第五开关管断开,以使得第二引脚123接地,此时第二引脚123的电压为0v。在电池11与主板10之间的通路断开的情况下,即电子设备进入船运模式的情况下,第一集成电路12可以控制第五开关管导通,以使得VDD引脚可以向第二引脚123(例如VM引脚)提供上述预设电压,例如1.8v,此时第二引脚123的电压由0v变为1.8v。从而,在用户需要使用电子设备时,用户可以控制第二电源与主板10之间的通路导通第三时长,以使得主板10上电,这样第二引脚123可以视为接地,第二引脚123的电压由1.8v变为0v,并在第三时长内第二引脚123的电压未发生变化,以在第二引脚123上产生满足第二条件的第二电压信号(例如VM信号),此时第一集成电路12可以导通电池11与主板10之间的通路导通,以使得电子设备退出船运模式(Ship Mode)。In combination with FIG. 7 , as shown in FIG. 9 , the electronic device is in the power-on state or the power-off state, and the path between the battery 11 and the mainboard 10 is connected, the first integrated circuit 12 can control the fifth switch tube to be disconnected, so that the second pin 123 is grounded, and the voltage of the second pin 123 is 0v. When the path between the battery 11 and the mainboard 10 is disconnected, that is, when the electronic device enters the shipping mode, the first integrated circuit 12 can control the fifth switch tube to be turned on, so that the VDD pin can provide the above-mentioned preset voltage, such as 1.8v, to the second pin 123 (such as the VM pin), and the voltage of the second pin 123 changes from 0v to 1.8v. Thus, when the user needs to use the electronic device, the user can control the path between the second power supply and the mainboard 10 to be turned on for a third time period so that the mainboard 10 is powered on, so that the second pin 123 can be regarded as grounded, and the voltage of the second pin 123 changes from 1.8v to 0v, and the voltage of the second pin 123 does not change within the third time period, so as to generate a second voltage signal (such as a VM signal) that meets the second condition on the second pin 123. At this time, the first integrated circuit 12 can turn on the path between the battery 11 and the mainboard 10, so that the electronic device exits the ship mode.
如此可知,由于在需要导通电池与主板之间的通路时,即在需要控制电池继续向主板供电时,可以控制第二电源按照第三时长向主板供电,以生成满足第二条件的第二电压信号,这样第一集成电路可以根据满足第二条件的第二电压信号来导通电池与主板之间的通路,而不是根据任意的信号来导通电池与主板之间的通路,因此,可以避免因受到干扰,而导通电池与主板之间的通路的情况,如此,可以避免因受到干扰,而导致电池向主板供电的情况。It can be seen that when it is necessary to conduct the path between the battery and the mainboard, that is, when it is necessary to control the battery to continue to supply power to the mainboard, the second power supply can be controlled to supply power to the mainboard according to the third duration to generate a second voltage signal that satisfies the second condition. In this way, the first integrated circuit can conduct the path between the battery and the mainboard according to the second voltage signal that satisfies the second condition, rather than conducting the path between the battery and the mainboard according to an arbitrary signal. Therefore, it can be avoided that the path between the battery and the mainboard is conducted due to interference. In this way, it can be avoided that the battery supplies power to the mainboard due to interference.
当然,为了进一步避免出现电池11长时间电量较低的情况,电子设备可以在电池11的电压小于或等于一个门限(例如下述实施例中的低压保护门限)的情况下,控制第一开关组102在第一状态和第二状态间切换,以断开电池11与主板10之间的通路。可选地,上述第一控制器101,具体用于在电池11与主板10之间的通路导通、且电池11的电压小于或等于低压保护门限的情况下,控制第一开关组102在第一状态和第二状态间切换。Of course, in order to further avoid the situation where the battery 11 has a low power for a long time, the electronic device can control the first switch group 102 to switch between the first state and the second state when the voltage of the battery 11 is less than or equal to a threshold (for example, the low voltage protection threshold in the following embodiment) to disconnect the path between the battery 11 and the mainboard 10. Optionally, the first controller 101 is specifically used to control the first switch group 102 to switch between the first state and the second state when the path between the battery 11 and the mainboard 10 is connected and the voltage of the battery 11 is less than or equal to the low voltage protection threshold.
在本申请的一些实施例中,上述低压保护门限可以为预配置的门限,或用户设置的门限。In some embodiments of the present application, the low voltage protection threshold may be a preconfigured threshold or a threshold set by a user.
需要说明的是,针对第一控制器101控制第一开关组102在第一状态和第二状态间切换的说明,可以参考上述实施例中的具体描述,本申请实施例在此不再赘述。It should be noted that, for the description of the first controller 101 controlling the first switch group 102 to switch between the first state and the second state, reference may be made to the specific description in the above embodiment, which will not be repeated herein in the embodiment of the present application.
如此可知,由于第一控制器可以在电池与主板之间的通路导通、且电池的电压小于或等于低压保护门限的情况下,控制第一开关组在第一状态和第二状态间切换,从而可以触发第一集成电路控制第一开关管断开,进而可以断开电池与主板之间的通路,因此,可以减少出现电池长时间电量较低的情况,从而可以减少出现电池鼓包等现象,如此,可以提高电子设备的使用安全性。It can be seen that since the first controller can control the first switch group to switch between the first state and the second state when the path between the battery and the mainboard is turned on and the battery voltage is less than or equal to the low voltage protection threshold, it can trigger the first integrated circuit to control the first switch tube to disconnect, and then disconnect the path between the battery and the mainboard. Therefore, the situation where the battery has low power for a long time can be reduced, thereby reducing the occurrence of battery bulging and other phenomena. In this way, the safety of electronic equipment can be improved.
在本申请的一些实施例中,上述第一集成电路12,还用于在电池11与主板10之间的通路导通、且电子设备处于开机状态的情况下,将低压保护门限的门限值从初始门限值调整为第一门限值;或者,还用于在电池11与主板10之间的通路导通、且电子设备处于关机状态的情况下,将低压保护门限的门限值从初始门限值调整为第二门限值。In some embodiments of the present application, the above-mentioned first integrated circuit 12 is also used to adjust the threshold value of the low voltage protection threshold from the initial threshold value to the first threshold value when the path between the battery 11 and the main board 10 is connected and the electronic device is in the power-on state; or, it is also used to adjust the threshold value of the low voltage protection threshold from the initial threshold value to the second threshold value when the path between the battery 11 and the main board 10 is connected and the electronic device is in the power-off state.
本申请实施例中,上述第一门限值小于初始门限值,上述第二门限值大于初始门限值。In the embodiment of the present application, the first threshold value is smaller than the initial threshold value, and the second threshold value is larger than the initial threshold value.
在本申请的一些实施例中,上述第一门限值可以为预配置的门限值,或用户设置的门限值。该第一门限值具体可以为2.3v。当然,第一门限值还可以为其他门限值,本申请实施例在此不作限定。In some embodiments of the present application, the first threshold value may be a preconfigured threshold value or a threshold value set by a user. The first threshold value may specifically be 2.3 V. Of course, the first threshold value may also be other threshold values, which are not limited in the embodiments of the present application.
本申请实施例中,由于在电子设备处于开机状态、且电池11的电量较低的情况下,若电子设备在执行高负载任务,则可能会出现电池11的电压低于上述初始门限值的情况,此时可能会出现电子设备直接关机的情况,因此,为了避免上述情况,第一集成电路12可以在电池11与主板10之间的通路导通、且电子设备处于开机状态的情况下,调低低压保护门限的门限值,从而减少出现在执行高负载任务的过程中电池11的电压低于第一门限值的情况。In the embodiment of the present application, when the electronic device is in the power-on state and the battery 11 has a low power level, if the electronic device is performing a high-load task, the voltage of the battery 11 may be lower than the above-mentioned initial threshold value. At this time, the electronic device may be directly shut down. Therefore, in order to avoid the above-mentioned situation, the first integrated circuit 12 can lower the threshold value of the low-voltage protection threshold when the path between the battery 11 and the mainboard 10 is conductive and the electronic device is in the power-on state, thereby reducing the situation where the voltage of the battery 11 is lower than the first threshold value during the execution of high-load tasks.
在本申请的一些实施例中,上述第二门限值可以为预配置的门限值,或用户设置的门限值。该第二门限值具体可以为2.6v。当然,第二门限值还可以为其他门限值,本申请实施例在此不作限定。In some embodiments of the present application, the second threshold value may be a preconfigured threshold value or a threshold value set by a user. The second threshold value may specifically be 2.6 V. Of course, the second threshold value may also be other threshold values, which are not limited in the embodiments of the present application.
本申请实施例中,由于在电子设备处于关机状态的情况下,可以认为用户不需求使用电子设备,因此,为了节省电池的电量,第一集成电路12可以在电池11与主板10之间的通路导通、且电子设备处于关机状态的情况下,调高低压保护门限的门限值,以进一步减少电池的电量消耗,从而减少出现电池长时间电量较低的情况。In the embodiment of the present application, since it can be considered that the user does not need to use the electronic device when the electronic device is in the off state, in order to save battery power, the first integrated circuit 12 can increase the threshold value of the low-voltage protection threshold when the path between the battery 11 and the mainboard 10 is connected and the electronic device is in the off state, so as to further reduce the battery power consumption, thereby reducing the situation where the battery is low in power for a long time.
如此可知,由于第一集成电路可以在电池与主板之间的通路导通、且电子设备处于开机状态的情况下,即第一集成电路可以在用户需求使用电子设备的情况下,调低低压保护门限的门限值,因此,可以减少出现在执行高负载任务的过程中,因电池的电压低于第一门限值而导致电子设备关机的情况,从而可以减少出现用户在需求使用电子设备时,无法正常使用电子设备的情况。或者,第一集成电路可以在电池与主板之间的通路导通、且电子设备处于关机状态的情况下,即第一集成电路可以在用户不需求使用电子设备的情况下,调高低压保护门限的门限值,因此,可以进一步减少电池的电量消耗,从而减少出现电池长时间电量较低的情况。Thus, it can be known that, since the first integrated circuit can lower the threshold value of the low voltage protection threshold when the path between the battery and the mainboard is conductive and the electronic device is in the power-on state, that is, the first integrated circuit can lower the threshold value of the low voltage protection threshold when the user needs to use the electronic device, it can reduce the situation that the electronic device is shut down due to the battery voltage being lower than the first threshold value during the execution of high-load tasks, thereby reducing the situation that the user cannot use the electronic device normally when the user needs to use the electronic device. Alternatively, the first integrated circuit can raise the threshold value of the low voltage protection threshold when the path between the battery and the mainboard is conductive and the electronic device is in the power-off state, that is, the first integrated circuit can raise the threshold value of the low voltage protection threshold when the user does not need to use the electronic device, thereby further reducing the power consumption of the battery, thereby reducing the situation that the battery power is low for a long time.
图10示出了本申请实施例提供的一种控制方法的流程示意图,应用于上述实施例中的电子设备。如图10所示,本申请实施例提供的控制方法可以包括下述的步骤101和步骤102。Fig. 10 shows a flow chart of a control method provided in an embodiment of the present application, which is applied to the electronic device in the above embodiment. As shown in Fig. 10, the control method provided in an embodiment of the present application may include the following steps 101 and 102.
步骤101、在电子设备的电池与电子设备的主板之间的通路导通的情况下,电子设备通过主板的第一控制器控制电子设备的主板的第一开关组在第一状态和第二状态间切换,以在电子设备的第一集成电路的第一引脚产生第一电压信号。Step 101: When a path between a battery of an electronic device and a mainboard of the electronic device is connected, the electronic device controls a first switch group of the mainboard of the electronic device to switch between a first state and a second state through a first controller of the mainboard, so as to generate a first voltage signal at a first pin of a first integrated circuit of the electronic device.
本申请实施例中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下,主板的第一电源向第一引脚提供电压;在第二状态下,第一引脚接地。In the embodiment of the present application, the state of the above-mentioned first switch group includes a first state and a second state. In the first state, the first power supply of the mainboard provides voltage to the first pin; in the second state, the first pin is grounded.
在本申请的一些实施例中,在电子设备处于开机状态或关机状态的情况下,电子设备可以导通电子设备的电池与电子设备的主板之间的通路,且电子设备可以实时判断是否进入船运模式(Ship Mode),从而在电子设备判断进入船运模式的情况下,电子设备可以通过第一控制器控制第一开关组在第一状态和第二状态间切换,以在第一引脚产生第一电压信号。In some embodiments of the present application, when the electronic device is in the power-on state or the power-off state, the electronic device can conduct the path between the battery of the electronic device and the motherboard of the electronic device, and the electronic device can determine in real time whether to enter the ship mode (Ship Mode), so that when the electronic device determines that it has entered the ship mode, the electronic device can control the first switch group to switch between the first state and the second state through the first controller to generate a first voltage signal at the first pin.
需要说明的是,针对电子设备通过第一控制器控制第一开关组在第一状态和第二状态间切换,以在第一引脚产生第一电压信号的说明,可以参考上述实施例中的具体描述,本申请实施例在此不再赘述。It should be noted that for the description of the electronic device controlling the first switch group to switch between the first state and the second state through the first controller to generate a first voltage signal on the first pin, reference can be made to the specific description in the above embodiment, and the embodiments of the present application will not be repeated here.
步骤102、电子设备通过第一集成电路根据第一电压信号,控制第一集成电路的第一开关管断开,以断开电池与主板之间的通路。Step 102: The electronic device controls the first switch tube of the first integrated circuit to disconnect according to the first voltage signal through the first integrated circuit, so as to disconnect the path between the battery and the mainboard.
在本申请的一些实施例中,上述步骤101具体可以通过下述的步骤101a实现。In some embodiments of the present application, the above step 101 can be specifically implemented through the following step 101a.
步骤101a、在电子设备的电池与电子设备的主板之间的通路导通的情况下,电子设备通过第一控制器在第一时长内按照第一数量控制第一开关组在第一状态和第二状态间往复切换,相邻的两次切换的切换时间之间的时间间隔大于或等于第二时长,以在电子设备的第一集成电路的第一引脚产生第一电压信号。Step 101a, when the path between the battery of the electronic device and the mainboard of the electronic device is turned on, the electronic device controls the first switch group to switch back and forth between the first state and the second state according to the first quantity within a first time period through the first controller, and the time interval between the switching times of two adjacent switches is greater than or equal to the second time period, so as to generate a first voltage signal at the first pin of the first integrated circuit of the electronic device.
步骤102a、电子设备在第一电压信号满足第一条件的情况下,通过第一集成电路根据第一电压信号,控制第一开关管断开。Step 102a: When the first voltage signal satisfies the first condition, the electronic device controls the first switch tube to be turned off according to the first voltage signal through the first integrated circuit.
本申请实施例中,上述第一条件包括:第一电压信号在第一时长内的脉冲的个数为第一数量、且每个脉冲的脉冲时长大于或等于第二时长。In the embodiment of the present application, the first condition includes: the number of pulses of the first voltage signal within the first duration is a first number, and the pulse duration of each pulse is greater than or equal to the second duration.
本申请实施例中,由于可能会出现第一控制器或PMIC因受到干扰,而导致第一引脚的电压发生改变的情况,这样可能会导致第一集成电路直接控制第一开关管断开,因此,为了避免上述情况,第一控制器可以按照上述方法来控制第一开关管通断,以生成特定序列的脉冲电压信号(即第一电压信号),且第一集成电路会在第一电压信号满足第一条件的情况下,才控制第一开关管断开。In an embodiment of the present application, since the voltage of the first pin may change due to interference with the first controller or PMIC, this may cause the first integrated circuit to directly control the first switch tube to be disconnected. Therefore, in order to avoid the above situation, the first controller can control the on and off of the first switch tube according to the above method to generate a specific sequence of pulse voltage signals (i.e., the first voltage signal), and the first integrated circuit will control the first switch tube to be disconnected only when the first voltage signal meets the first condition.
可以理解,在第一集成电路控制第一开关管断开之后,电子设备可以进入船运模式。It can be understood that after the first integrated circuit controls the first switch tube to turn off, the electronic device can enter the shipping mode.
如此可知,由于在需要断开电池与主板之间的通路时,第一控制器可以在第一时长内按照第一数量控制第一开关组在第一状态和第二状态且往复切换,且相邻的两次切换的切换时间之间的时间间隔大于或等于第二时长,以生成满足第一条件的第一电压信号,这样第一集成电路可以根据满足第一条件的第一电压信号来断开电池与主板之间的通路,而不是根据任意的信号来断开电池与主板之间的通路,因此,可以避免因受到干扰,而断开电池与主板之间的通路的情况,如此,可以避免因受到干扰,而导致电池向主板供电的情况。Thus, it can be known that, when it is necessary to disconnect the path between the battery and the mainboard, the first controller can control the first switch group to switch back and forth between the first state and the second state according to the first quantity within a first time period, and the time interval between the switching times of two adjacent switches is greater than or equal to the second time period to generate a first voltage signal that satisfies the first condition. In this way, the first integrated circuit can disconnect the path between the battery and the mainboard according to the first voltage signal that satisfies the first condition, rather than disconnecting the path between the battery and the mainboard according to an arbitrary signal. Therefore, it is possible to avoid the situation where the path between the battery and the mainboard is disconnected due to interference. In this way, it is possible to avoid the situation where the battery supplies power to the mainboard due to interference.
在相关技术中,在需要控制电池停止向主板供电时,仅会断开主PMIC中的开关管QBAT,以使得主PMIC的VPH_PWR引脚连接的器件下电,然而与电池的p+节点直接连接的器件却仍处于工作状态,即电池仍然会向该器件供电,因此,会导致电池的电量持续消耗。然而,在本申请实施例中,在需要断开电池与主板之间的通路时,即在需要停止电池向主板供电时,可以断开第一开关管,这样可以断开电池与主板之间的通路,即电池会停止向主板供电,此时主PMIC的VPH_PWR引脚和与电池的p+节点直接连接的器件均会下电,因此,可以减少电池的电量的消耗。In the related art, when it is necessary to control the battery to stop supplying power to the mainboard, only the switch tube QBAT in the main PMIC will be disconnected, so that the device connected to the VPH_PWR pin of the main PMIC is powered off, but the device directly connected to the p+ node of the battery is still in working state, that is, the battery will still supply power to the device, thus causing the battery power to continue to be consumed. However, in the embodiment of the present application, when it is necessary to disconnect the path between the battery and the mainboard, that is, when it is necessary to stop the battery from supplying power to the mainboard, the first switch tube can be disconnected, so that the path between the battery and the mainboard can be disconnected, that is, the battery will stop supplying power to the mainboard, at this time, the VPH_PWR pin of the main PMIC and the device directly connected to the p+ node of the battery will be powered off, thus reducing the battery power consumption.
本申请实施例提供一种控制方法,在电子设备的电池与电子设备的主板之间的通路导通的情况下,电子设备可以通过主板的第一控制器控制电子设备的主板的第一开关组在第一状态和第二状态间切换,以在电子设备的第一集成电路的第一引脚产生第一电压信号,从而电子设备可以通过第一集成电路根据第一电压信号,控制第一集成电路的第一开关管断开,以断开电池与主板之间的通路;其中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下,主板的第一电源向第一引脚提供电压;在第二状态下,第一引脚接地。由于在电池与主板之间的通路导通的情况下,即在电池向主板供电的情况下,电子设备可以通过调整控制第一开关组在不同状态间切换的方式,来使得第一引脚上产生第一电压信号,以通过第一电压信号触发第一集成电路控制第一开关管断开,以断开电池与主板之间的通路,以使得电池停止向主板供电,从而停止向电子设备的所有器件供电,而不是停止向电子设备的部分器件供电,因此,可以减少电池供电的器件的数量,以减少电池的电量消耗,这样可以减少出现在长时间不使用电子设备的情况下,电池长时间电量较低的情况,进而可以减少出现电池鼓包等现象,如此,可以提高电子设备的使用安全性。An embodiment of the present application provides a control method, in which, when a path between a battery of an electronic device and a mainboard of the electronic device is connected, the electronic device can control a first switch group of the mainboard of the electronic device to switch between a first state and a second state through a first controller of the mainboard, so as to generate a first voltage signal at a first pin of a first integrated circuit of the electronic device, so that the electronic device can control the first switch tube of the first integrated circuit to disconnect according to the first voltage signal through the first integrated circuit, so as to disconnect the path between the battery and the mainboard; wherein, the state of the above-mentioned first switch group includes a first state and a second state, in the first state, the first power supply of the mainboard provides voltage to the first pin; in the second state, the first pin is grounded. Since when the path between the battery and the mainboard is connected, that is, when the battery supplies power to the mainboard, the electronic device can adjust the way in which the first switch group switches between different states to generate a first voltage signal on the first pin, so as to trigger the first integrated circuit to control the first switch tube to disconnect through the first voltage signal, so as to disconnect the path between the battery and the mainboard, so that the battery stops supplying power to the mainboard, thereby stopping supplying power to all devices of the electronic device, rather than stopping supplying power to some devices of the electronic device. Therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery, which can reduce the situation where the battery has a low power for a long time when the electronic device is not used for a long time, and further reduce the occurrence of battery bulging and the like, so that the safety of electronic equipment can be improved.
在本申请的一些实施例中,在上述步骤102之后,本申请实施例提供的控制方法还可以包括下述的步骤201和步骤202。In some embodiments of the present application, after the above step 102, the control method provided by the embodiment of the present application may further include the following steps 201 and 202.
步骤201、在第二电源与主板之间的通路导通的情况下,电子设备通过主板的第二端调整第二引脚的电压,以在第二引脚产生第二电压信号。Step 201: When the path between the second power source and the mainboard is connected, the electronic device adjusts the voltage of the second pin through the second end of the mainboard to generate a second voltage signal at the second pin.
需要说明的是,针对电子设备通过主板的第二端调整第二引脚的电压,以在第二引脚产生第二电压信号的说明,可以参考上述实施例中的具体描述,本申请实施例在此不再赘述。It should be noted that, for the description of the electronic device adjusting the voltage of the second pin through the second end of the motherboard to generate a second voltage signal at the second pin, reference can be made to the specific description in the above embodiment, and the embodiments of the present application will not be repeated here.
步骤202、电子设备通过第一集成电路根据第二电压信号控制第一开关管导通,以导通电池与主板之间的通路。Step 202: The electronic device controls the first switch tube to conduct according to the second voltage signal through the first integrated circuit to conduct the path between the battery and the mainboard.
如此可知,由于在需要导通电池与主板之间的通路时,即在需要控制电池向主板供电时,可以使用第二电源向主板供电的方式,来使得主板的第二端调整第二引脚的电压,以在第二引脚产生第二电压信号,因此,第一集成电路可以通过该第二电压信号,准确地控制第一开关管导通,以准确地导通电池与主板之间的通路。Thus, it can be known that when it is necessary to conduct the path between the battery and the mainboard, that is, when it is necessary to control the battery to supply power to the mainboard, the second power supply can be used to supply power to the mainboard, so that the second end of the mainboard adjusts the voltage of the second pin to generate a second voltage signal at the second pin. Therefore, the first integrated circuit can accurately control the conduction of the first switch tube through the second voltage signal to accurately conduct the path between the battery and the mainboard.
在本申请的一些实施例中,上述第二电源与主板之间的通路导通的时长为第三时长。可选地,上述步骤202具体可以通过下述的步骤202a实现。In some embodiments of the present application, the duration of the conduction between the second power supply and the mainboard is a third duration. Optionally, the step 202 can be implemented by the following step 202a.
步骤202a、电子设备在第二电压信号满足第二条件的情况下,通过第一集成电路根据第二电压信号,控制第一集成电路的第一开关管导通。Step 202a: When the second voltage signal satisfies the second condition, the electronic device controls the first switch tube of the first integrated circuit to turn on according to the second voltage signal through the first integrated circuit.
本申请实施例中,上述第二条件包括:第二电压信号对应的电压发生一次变化,且在第三时长内第二电压信号对应的电压未发生变化。In the embodiment of the present application, the second condition includes: the voltage corresponding to the second voltage signal changes once, and the voltage corresponding to the second voltage signal does not change within the third time period.
本申请实施例中,由于可能会出现第一控制器或PMIC因受到干扰,而导致第二引脚的电压发生改变的情况,这样可能会导致第一集成电路直接控制第一开关管导通,因此,为了避免上述情况,在用户可以使用上述方法来第二电源向主板供电,以生成特定序列的脉冲电压信号(即第二电压信号),且第一集成电路会在第二电压信号满足第二条件的情况下,才控制第一开关管导通。In the embodiment of the present application, since the voltage of the second pin may change due to interference with the first controller or PMIC, this may cause the first integrated circuit to directly control the first switch tube to be turned on. Therefore, in order to avoid the above situation, the user can use the above method to supply power to the mainboard with the second power supply to generate a specific sequence of pulse voltage signals (i.e., the second voltage signal), and the first integrated circuit will control the first switch tube to be turned on only when the second voltage signal meets the second condition.
如此可知,由于在需要导通电池与主板之间的通路时,即在需要控制电池继续向主板供电时,可以控制第二电源按照第三时长向主板供电,以生成满足第二条件的第二电压信号,这样第一集成电路可以根据满足第二条件的第二电压信号来导通电池与主板之间的通路,而不是根据任意的信号来导通电池与主板之间的通路,因此,可以避免因受到干扰,而导通电池与主板之间的通路的情况,如此,可以避免因受到干扰,而导致电池向主板供电的情况。It can be seen that when it is necessary to conduct the path between the battery and the mainboard, that is, when it is necessary to control the battery to continue to supply power to the mainboard, the second power supply can be controlled to supply power to the mainboard according to the third duration to generate a second voltage signal that satisfies the second condition. In this way, the first integrated circuit can conduct the path between the battery and the mainboard according to the second voltage signal that satisfies the second condition, rather than conducting the path between the battery and the mainboard according to an arbitrary signal. Therefore, it can be avoided that the path between the battery and the mainboard is conducted due to interference. In this way, it can be avoided that the battery supplies power to the mainboard due to interference.
在本申请的一些实施例中,上述步骤101具体可以通过下述的步骤101b实现。In some embodiments of the present application, the above step 101 can be specifically implemented through the following step 101b.
步骤101b、在电子设备的电池与电子设备的主板之间的通路导通的情况下,在电池的电压小于或等于低压保护门限的情况下,电子设备通过第一控制器控制第一开关组在第一状态和第二状态间切换。Step 101b: When the path between the battery of the electronic device and the mainboard of the electronic device is connected and the voltage of the battery is less than or equal to the low voltage protection threshold, the electronic device controls the first switch group to switch between the first state and the second state through the first controller.
如此可知,由于第一控制器可以在电池与主板之间的通路导通、且电池的电压小于或等于低压保护门限的情况下,控制第一开关组在第一状态和第二状态间切换,从而可以触发第一集成电路控制第一开关管断开,进而可以断开电池与主板之间的通路,以使得电池停止向主板供电,因此,可以减少出现电池长时间电量较低的情况,从而可以减少出现电池鼓包等现象,如此,可以提高电子设备的使用安全性。In this way, it can be seen that since the first controller can control the first switch group to switch between the first state and the second state when the path between the battery and the mainboard is turned on and the battery voltage is less than or equal to the low voltage protection threshold, it can trigger the first integrated circuit to control the first switch tube to disconnect, and then the path between the battery and the mainboard can be disconnected, so that the battery stops supplying power to the mainboard. Therefore, the situation where the battery has a low power for a long time can be reduced, thereby reducing the occurrence of battery bulging and the like. In this way, the safety of electronic equipment can be improved.
在本申请的一些实施例中,在上述步骤101b之前,本申请实施例提供的控制方法还可以包括下述的步骤301或步骤302。In some embodiments of the present application, before the above step 101b, the control method provided by the embodiment of the present application may further include the following step 301 or step 302.
步骤301、在电池与主板之间的通路导通、且电子设备处于开机状态的情况下,电子设备通过第一集成电路将低压保护门限的门限值从初始门限值调整为第一门限值。Step 301: When the path between the battery and the mainboard is connected and the electronic device is in the power-on state, the electronic device adjusts the threshold value of the low voltage protection threshold from the initial threshold value to the first threshold value through the first integrated circuit.
本申请实施例中,上述第一门限值小于初始门限值。In the embodiment of the present application, the first threshold value is smaller than the initial threshold value.
可以理解,在电池向主板供电、且电子设备处于开机状态的情况下,电子设备可以通过第一集成电路调低低压保护门限的门限值。It can be understood that when the battery supplies power to the mainboard and the electronic device is in a powered-on state, the electronic device can lower the threshold value of the low voltage protection threshold through the first integrated circuit.
步骤302、在电池与主板之间的通路导通、且电子设备处于关机状态的情况下,电子设备通过第一集成电路将低压保护门限的门限值从初始门限值调整为第二门限值。Step 302: When the path between the battery and the mainboard is connected and the electronic device is in a shutdown state, the electronic device adjusts the threshold value of the low voltage protection threshold from the initial threshold value to the second threshold value through the first integrated circuit.
本申请实施例中,上述第二门限值大于初始门限值。In the embodiment of the present application, the second threshold value is greater than the initial threshold value.
可以理解,在电池与主板之间的通路导通、且电子设备处于关机状态的情况下,电子设备可以通过第一集成电路调高低压保护门限的门限值。It can be understood that when the path between the battery and the mainboard is connected and the electronic device is in a shutdown state, the electronic device can increase the threshold value of the low voltage protection threshold through the first integrated circuit.
如此可知,由于第一集成电路可以在电池与主板之间的通路导通、且电子设备处于开机状态的情况下,即第一集成电路可以在用户需求使用电子设备的情况下,调低低压保护门限的门限值,因此,可以减少出现在执行高负载任务的过程中,因电池的电压低于第一门限值而导致电子设备关机的情况,从而可以减少出现用户在需求使用电子设备时,无法正常使用电子设备的情况。或者,第一集成电路可以在电池与主板之间的通路导通、且电子设备处于关机状态的情况下,即第一集成电路可以在用户不需求使用电子设备的情况下,调高低压保护门限的门限值,因此,可以进一步减少电池的电量消耗,从而减少出现电池长时间电量较低的情况。Thus, it can be known that, since the first integrated circuit can lower the threshold value of the low voltage protection threshold when the path between the battery and the mainboard is conductive and the electronic device is in the power-on state, that is, the first integrated circuit can lower the threshold value of the low voltage protection threshold when the user needs to use the electronic device, it can reduce the situation that the electronic device is shut down due to the battery voltage being lower than the first threshold value during the execution of high-load tasks, thereby reducing the situation that the user cannot use the electronic device normally when the user needs to use the electronic device. Alternatively, the first integrated circuit can raise the threshold value of the low voltage protection threshold when the path between the battery and the mainboard is conductive and the electronic device is in the power-off state, that is, the first integrated circuit can raise the threshold value of the low voltage protection threshold when the user does not need to use the electronic device, thereby further reducing the power consumption of the battery, thereby reducing the situation that the battery has a low power for a long time.
在本申请的一些实施例中,如图11所示,本申请实施例还提供一种电子设备50,包括处理器51和存储器52,存储器52上存储有可在所述处理器51上运行的程序或指令,该程序或指令被处理器51执行时实现上述控制方法实施例的各个过程步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。In some embodiments of the present application, as shown in Figure 11, the embodiments of the present application also provide an electronic device 50, including a processor 51 and a memory 52, and the memory 52 stores a program or instruction that can be executed on the processor 51. When the program or instruction is executed by the processor 51, the various process steps of the above-mentioned control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图12为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 12 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 110 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The electronic device structure shown in FIG12 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.
其中,处理器110,用于在电子设备的电池与电子设备的主板之间的通路导通的情况下,通过主板的第一控制器控制电子设备的主板的第一开关组在第一状态和第二状态间切换,以在电子设备的第一集成电路的第一引脚产生第一电压信号;并通过第一集成电路根据第一电压信号,控制第一集成电路的第一开关管断开,以断开电池与主板之间的通路。Among them, the processor 110 is used to control the first switch group of the mainboard of the electronic device to switch between the first state and the second state through the first controller of the mainboard when the path between the battery of the electronic device and the mainboard of the electronic device is turned on, so as to generate a first voltage signal at the first pin of the first integrated circuit of the electronic device; and control the first switch tube of the first integrated circuit to be disconnected according to the first voltage signal through the first integrated circuit to disconnect the path between the battery and the mainboard.
其中,上述第一开关组的状态包括第一状态和第二状态,在第一状态下,主板的第一电源向第一引脚提供电压;在第二状态下,第一引脚接地。The state of the first switch group includes a first state and a second state. In the first state, the first power supply of the mainboard provides voltage to the first pin; in the second state, the first pin is grounded.
本申请实施例提供一种电子设备,由于在电池与主板之间的通路导通的情况下,即在电池向主板供电的情况下,电子设备可以通过调整控制第一开关组在不同状态间切换的方式,来使得第一引脚上产生第一电压信号,以通过第一电压信号触发第一集成电路控制第一开关管断开,以断开电池与主板之间的通路,以使得电池停止向主板供电,从而停止向电子设备的所有器件供电,而不是停止向电子设备的部分器件供电,因此,可以减少电池供电的器件的数量,以减少电池的电量消耗,这样可以减少出现在长时间不使用电子设备的情况下,电池长时间电量较低的情况,进而可以减少出现电池鼓包等现象,如此,可以提高电子设备的使用安全性。An embodiment of the present application provides an electronic device. When the path between the battery and the mainboard is connected, that is, when the battery supplies power to the mainboard, the electronic device can generate a first voltage signal on the first pin by adjusting the way in which the first switch group is switched between different states, so as to trigger the first integrated circuit to control the first switch tube to disconnect through the first voltage signal, so as to disconnect the path between the battery and the mainboard, so that the battery stops supplying power to the mainboard, thereby stopping supplying power to all devices of the electronic device, rather than stopping supplying power to some devices of the electronic device. Therefore, the number of battery-powered devices can be reduced to reduce the power consumption of the battery, which can reduce the situation where the battery has a low power for a long time when the electronic device is not used for a long time, and further reduce the occurrence of battery bulging and the like. In this way, the safety of the electronic device can be improved.
在本申请的一些实施例中,处理器110,具体用于通过第一控制器在第一时长内按照第一数量控制第一开关组在第一状态和第二状态间往复切换,相邻的两次切换的切换时间之间的时间间隔大于或等于第二时长。In some embodiments of the present application, the processor 110 is specifically used to control the first switch group to switch back and forth between a first state and a second state according to a first quantity within a first time period through a first controller, and the time interval between the switching times of two adjacent switches is greater than or equal to the second time period.
处理器110,具体用于在第一电压信号满足第一条件的情况下,通过第一集成电路根据第一电压信号,控制第一开关管断开。The processor 110 is specifically configured to control the first switch tube to be turned off according to the first voltage signal through the first integrated circuit when the first voltage signal satisfies the first condition.
其中,上述第一条件包括:第一电压信号在第一时长内的脉冲的个数为第一数量、且每个脉冲的脉冲时长大于或等于第二时长。The first condition includes: the number of pulses of the first voltage signal within the first duration is a first number, and the pulse duration of each pulse is greater than or equal to the second duration.
在本申请的一些实施例中,处理器110,还用于在通过第一集成电路根据第一电压信号,控制第一集成电路的第一开关管断开,以断开电池与主板之间的通路之后,在第二电源与主板之间的通路导通的情况下,通过主板的第二端调整第二引脚的电压,以在第二引脚产生第二电压信号;并通过第一集成电路根据第二电压信号控制第一开关管导通,以导通电池与主板之间的通路。In some embodiments of the present application, the processor 110 is further used to control the first switch tube of the first integrated circuit to disconnect according to the first voltage signal through the first integrated circuit to disconnect the path between the battery and the mainboard, and when the path between the second power supply and the mainboard is turned on, adjust the voltage of the second pin through the second end of the mainboard to generate a second voltage signal at the second pin; and control the first switch tube to turn on according to the second voltage signal through the first integrated circuit to turn on the path between the battery and the mainboard.
在本申请的一些实施例中,上述第二电源与主板之间的通路导通的时长为第三时长。In some embodiments of the present application, the duration of the conduction of the path between the second power source and the mainboard is a third duration.
处理器110,具体用于在第二电压信号满足第二条件的情况下,通过第一集成电路根据第二电压信号,控制第一集成电路的第一开关管导通。The processor 110 is specifically configured to control the first switch tube of the first integrated circuit to turn on according to the second voltage signal through the first integrated circuit when the second voltage signal satisfies the second condition.
其中,上述第二条件包括:第二电压信号对应的电压发生一次变化,且在第三时长内第二电压信号对应的电压未发生变化。The second condition includes: the voltage corresponding to the second voltage signal changes once, and the voltage corresponding to the second voltage signal does not change within a third time period.
在本申请的一些实施例中,处理器110,具体用于在电池的电压小于或等于低压保护门限的情况下,通过第一控制器控制第一开关组在第一状态和第二状态间切换。In some embodiments of the present application, the processor 110 is specifically configured to control the first switch group to switch between the first state and the second state through the first controller when the voltage of the battery is less than or equal to the low voltage protection threshold.
在本申请的一些实施例中,处理器110,还用于在电池的电压小于或等于低压保护门限的情况下,通过第一控制器控制第一开关组在第一状态和第二状态间切换之前,执行以下任一项:在电池与主板之间的通路导通、且电子设备处于开机状态的情况下,通过第一集成电路将低压保护门限的门限值从初始门限值调整为第一门限值;在电池与主板之间的通路导通、且电子设备处于关机状态的情况下,通过第一集成电路将低压保护门限的门限值从初始门限值调整为第二门限值。In some embodiments of the present application, the processor 110 is also used to perform any of the following items before controlling the first switch group to switch between the first state and the second state through the first controller when the voltage of the battery is less than or equal to the low voltage protection threshold: when the path between the battery and the mainboard is connected and the electronic device is in the power-on state, adjusting the threshold value of the low voltage protection threshold from the initial threshold value to the first threshold value through the first integrated circuit; when the path between the battery and the mainboard is connected and the electronic device is in the power-off state, adjusting the threshold value of the low voltage protection threshold from the initial threshold value to the second threshold value through the first integrated circuit.
其中,上述第一门限值小于初始门限值,上述第二门限值大于初始门限值。The first threshold value is smaller than the initial threshold value, and the second threshold value is larger than the initial threshold value.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(graphicsprocessing unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(doubledata rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch linkDRAM,SLDRAM)和直接内存总线随机存取存储器(directrambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器110可包括一个或多个处理单元;可选地,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present application and the claims, all of which are within the protection of the present application.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410849437.6A CN118739492A (en) | 2024-06-27 | 2024-06-27 | Electronic device and control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410849437.6A CN118739492A (en) | 2024-06-27 | 2024-06-27 | Electronic device and control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118739492A true CN118739492A (en) | 2024-10-01 |
Family
ID=92845099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410849437.6A Pending CN118739492A (en) | 2024-06-27 | 2024-06-27 | Electronic device and control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118739492A (en) |
-
2024
- 2024-06-27 CN CN202410849437.6A patent/CN118739492A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7639056B2 (en) | Ultra low area overhead retention flip-flop for power-down applications | |
EP2877994B1 (en) | Ultra-deep power-down mode for memory devices | |
US7365596B2 (en) | State retention within a data processing system | |
US10536139B2 (en) | Charge-saving power-gate apparatus and method | |
US9471140B2 (en) | Valid context status retention in processor power mode management | |
US7617407B2 (en) | Method and system for power consumption management, and corresponding computer program product | |
US20070260794A1 (en) | Method of transitioning between active mode and power-down mode in processor based system | |
US20080071972A1 (en) | Data Processing Apparatus And Data Control Circuit For Use Therein | |
JP2007535031A (en) | State retention in data processing systems | |
US9876486B2 (en) | Clock gated flip-flop | |
US9880610B2 (en) | Power supplying method, power supplying system, and electronic device | |
CN102147652A (en) | Shut-down energy-saving system and shut-down energy-saving method | |
JP5285643B2 (en) | Semiconductor integrated circuit and electronic information equipment | |
WO2021190506A1 (en) | Wireless earphones, wireless earphone system and method for shutting down wireless earphones | |
US20080263396A1 (en) | Data Processing Device And Data Control Circuit For Use Therein | |
WO2023202524A1 (en) | Charging circuit, control method and apparatus for charging circuit, and mobile terminal | |
WO2024169833A1 (en) | Power supply circuit and method, and electronic device | |
CN118739492A (en) | Electronic device and control method | |
TWI783163B (en) | Power control device, computer system and related power control method | |
CN102237037B (en) | Control module and method for controlling electrophoretic display integrated circuit | |
CN118889602A (en) | Electronic device and control method | |
CN118739493A (en) | Electronic devices | |
CN118739491A (en) | Electronic devices | |
CN212364813U (en) | Machine brushing system and electronic equipment | |
CN118868314A (en) | Electronic device and device control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |