The present application provides a processing method and an electronic device, which includes: monitoring whether the second mode is used to provide electricity to the outside world in the process of obtaining electricity by the first mode; determining whether the second mode is used to provide electricity to the outside world and obtaining the power consumption parameters under the first mode; and if the power consumption parameters are greater than the first threshold, the first mode of the current work of the second mode is determined. In the second mode, the maximum allowable power consumption in the second mode is less than the maximum allowable power consumption in the first mode. In this application, in the process of obtaining electric energy by the first mode and supplying electric energy by the second mode, if the power consumption parameter in the first mode is determined to be greater than the first threshold, the maximum allowable power consumption in the second mode will be reduced directly. Allowable power consumption, so as to ensure that the power requirements under the first mode can be met, without replacing the first mode module for electronic equipment to increase power consumption, improve the flexibility of control.
【技术实现步骤摘要】
一种处理方法和电子设备
本专利技术涉及信息处理
,更具体的说是涉及一种处理方法和电子设备。
技术介绍
目前,电子设备均能够通过特定方式为自身提供电能,如通过适配器充电方式为自身提供电能。而不同电子设备在特定方式下所允许的最高功耗不同,相应的,搭载的模组也不同。有些电子设备在通过特定方式为自身提供电能的同时,还可以为其他电子设备提供电能,如笔记本电脑可以为手机提供电能。而如果这两种情景同时发生,就需要增加特定方式下搭载的模组的功耗。而现有技术中则需要通过更换模组的方式来增加其功耗,显然需要增加成本,不便于灵活控制。
技术实现思路
有鉴于此,本专利技术提供一种处理方法和电子设备,以解决上述技术问题。为实现上述目的,本专利技术提供如下技术方案:一种处理方法,包括:在通过第一方式获取电能过程中,监测是否采用第二方式对外提供电能;确定采用所述第二方式对外提供电能,获取所述第一方式下的功耗参数;若所述功耗参数大于第一阈值,将所述第二方式当前工作的第一模式切换为第二模式,其中,所述第二模式下的最高允许功耗小于所述第一模式下的最高允许功耗。优选的,还包括:在所述第二方式工作在所 ...
【技术保护点】
1.一种处理方法,其中,包括:在通过第一方式获取电能过程中,监测是否采用第二方式对外提供电能;确定采用所述第二方式对外提供电能,获取所述第一方式下的功耗参数;若所述功耗参数大于第一阈值,将所述第二方式当前工作的第一模式切换为第二模式,其中,所述第二模式下的最高允许功耗小于所述第一模式下的最高允许功耗。
【技术特征摘要】
1.一种处理方法,其中,包括:在通过第一方式获取电能过程中,监测是否采用第二方式对外提供电能;确定采用所述第二方式对外提供电能,获取所述第一方式下的功耗参数;若所述功耗参数大于第一阈值,将所述第二方式当前工作的第一模式切换为第二模式,其中,所述第二模式下的最高允许功耗小于所述第一模式下的最高允许功耗。2.根据权利要求1所述的方法,其中,还包括:在所述第二方式工作在所述第二模式下,监测所述功耗参数是否降低到第二阈值以下;所述第二阈值小于所述第一阈值;确定所述功耗参数降低到所述第二阈值以下,将所述第二方式当前工作的所述第二模式切换到所述第一模式。3.根据权利要求2所述的方法,其中,还包括:在第一时间内监测所述功耗参数是否一直处于所述第二阈值以下,若是,触发所述将所述第二方式当前工作的所述第二模式切换到所述第一模式。4.根据权利要求1所述的方法,其中,所述获取所述第一方式下的功耗参数,包括:通过串联设置在所述第一方式对应的第一模组和充电接口之间的传感器获取所述第一方式下的功耗参数。5.根据权利要求2所述的方法,其中,还包括:确定所述第一模式下的最高允许功耗与所述第二模式下的最高允许功耗的差值;在所述第一阈值的基础上减去所述差值得到所述第二阈值。6.一种电子设备,其中,包括:第一模组,用于通过第一方式获取电能;第二模组,用于通过第二方式对外提供电能;处理器,用于在通过所述第一模组获取电能过程中,监...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。