Movatterモバイル変換


[0]ホーム

URL:


CN108471476B - Mobile terminal reverse charging management method and mobile terminal - Google Patents

Mobile terminal reverse charging management method and mobile terminal
Download PDF

Info

Publication number
CN108471476B
CN108471476BCN201810686163.8ACN201810686163ACN108471476BCN 108471476 BCN108471476 BCN 108471476BCN 201810686163 ACN201810686163 ACN 201810686163ACN 108471476 BCN108471476 BCN 108471476B
Authority
CN
China
Prior art keywords
mobile terminal
charging
power
time
battery
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.)
Active
Application number
CN201810686163.8A
Other languages
Chinese (zh)
Other versions
CN108471476A (en
Inventor
赵友军
王蓓蓓
李显洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co LtdfiledCriticalChina United Network Communications Group Co Ltd
Priority to CN201810686163.8ApriorityCriticalpatent/CN108471476B/en
Publication of CN108471476ApublicationCriticalpatent/CN108471476A/en
Application grantedgrantedCritical
Publication of CN108471476BpublicationCriticalpatent/CN108471476B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供一种移动终端反向充电管理方法及移动终端,通过获取移动终端的当前位置,并判断当前位置是否属于预存充电位置;若当前位置不属于预存充电位置,则获取移动终端电池的电量分享能力;然后根据电量分享能力对与移动终端连接的设备进行反向充电,从而在当前位置不具备充电条件时根据电量分享能力适时结束反向充电,有效的避免移动终端一直向外供电直至电池电量耗尽而影响自身使用的问题,提高了移动终端用户的使用体验。

Figure 201810686163

The present invention provides a reverse charging management method for a mobile terminal and a mobile terminal. By acquiring the current position of the mobile terminal, it is judged whether the current position belongs to a pre-stored charging position; if the current position does not belong to the pre-stored charging position, the power of the battery of the mobile terminal is obtained. Sharing ability; then reversely charge the device connected to the mobile terminal according to the power sharing ability, so that when the current location does not have the charging conditions, the reverse charging can be ended in time according to the power sharing ability, effectively preventing the mobile terminal from supplying power until the battery The problem that the battery is exhausted and affects its own use improves the user experience of the mobile terminal.

Figure 201810686163

Description

Translated fromChinese
移动终端反向充电管理方法及移动终端Mobile terminal reverse charging management method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种移动终端反向充电管理方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to a reverse charging management method for a mobile terminal and a mobile terminal.

背景技术Background technique

随着人们生活水平的提高和通信产业的飞速发展,移动终端尤其是智能移动终端迅速普及,成为人们日常学习、工作和生活中的辅助中心。而不少人同时具有多台移动终端,以实现保护自身隐私、工作与生活的分离,甚至满足人们全天候、全方位的通信、娱乐等需求。由于移动终端配置的持续增强、屏幕的不断加大以及用户使用终端模式的改变和时长的增加,电池续航力已成为影响用户使用移动终端的主要问题。虽然各终端厂商、电池厂商及元器件厂商都在努力研发各种电池新技术,但进展和效果都不太明显。With the improvement of people's living standards and the rapid development of the communication industry, mobile terminals, especially intelligent mobile terminals, are rapidly popularized and become auxiliary centers in people's daily study, work and life. Many people have multiple mobile terminals at the same time to protect their privacy, separate work and life, and even meet people's all-weather, all-round communication and entertainment needs. Due to the continuous enhancement of the configuration of the mobile terminal, the continuous enlargement of the screen, and the change of the user's mode of using the terminal and the increase of the duration, the battery life has become a major problem affecting the user's use of the mobile terminal. Although various terminal manufacturers, battery manufacturers and component manufacturers are working hard to develop various new battery technologies, the progress and effects are not obvious.

基于USB Implementers Forum(USB标准化组织)于2001年12月18日公布的OTG(On-The-Go)技术,移动终端可实现对另一设备进行充电。目前,若没有用户中途干预,移动终端在向外供电即反向充电时,会一直向外供电直至自身电池电量的耗尽,导致影响自身的正常使用。Based on the OTG (On-The-Go) technology announced by the USB Implementers Forum (USB Standardization Organization) on December 18, 2001, the mobile terminal can charge another device. At present, if there is no user intervention midway, when the mobile terminal supplies power to the outside, that is, reverse charging, it will continue to supply power to the outside until its own battery power is exhausted, which affects its normal use.

发明内容SUMMARY OF THE INVENTION

本发明提供一种移动终端反向充电管理方法及移动终端,以在不具备充电条件时适时结束反向充电,避免移动终端一直向外供电直至电池电量耗尽而影响自身使用的问题,提高移动终端用户的使用体验。The present invention provides a reverse charging management method for a mobile terminal and a mobile terminal, so as to end reverse charging in a timely manner when no charging conditions are met, avoid the problem that the mobile terminal continues to supply power to the outside until the battery is exhausted and affect its own use, and improves mobile end user experience.

本发明的一个方面是提供一种移动终端反向充电管理方法,包括:One aspect of the present invention is to provide a method for reverse charging management of a mobile terminal, including:

获取移动终端的当前位置,并判断所述当前位置是否属于预存充电位置;Obtain the current position of the mobile terminal, and determine whether the current position belongs to a pre-stored charging position;

若所述当前位置不属于预存充电位置,则获取所述移动终端电池的电量分享能力;If the current position does not belong to the pre-stored charging position, acquiring the power sharing capability of the battery of the mobile terminal;

根据所述电量分享能力对与所述移动终端连接的设备进行反向充电。The device connected to the mobile terminal is reversely charged according to the power sharing capability.

进一步的,所述获取所述移动终端电池的电量分享能力,包括:Further, the obtaining the power sharing capability of the battery of the mobile terminal includes:

根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻;According to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal user, predict the time when the mobile terminal has the charging conditions;

获取当前时刻与所述移动终端具备充电条件的时刻之间的时间差;obtaining the time difference between the current moment and the moment when the mobile terminal has the charging condition;

根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力。According to the time difference, the current power consumption of the mobile terminal and the remaining power of the battery, the power sharing capability of the battery of the mobile terminal is acquired.

进一步的,所述根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力,具体包括:Further, according to the time difference, the current power consumption of the mobile terminal and the remaining power of the battery, acquiring the power sharing capability of the battery of the mobile terminal specifically includes:

根据所述移动终端当前电量消耗情况预测所述移动终端在所述时间差时长内的第一预计消耗电量,并获取所述电池剩余电量与所述第一预计消耗电量的第一电量差值;Predict the first estimated power consumption of the mobile terminal within the time difference according to the current power consumption of the mobile terminal, and obtain a first power difference between the remaining battery power and the first estimated power consumption;

若所述第一电量差值大于或等于预设电量阈值时,将所述第一电量差值作为所述移动终端电池的电量分享能力;If the first power difference is greater than or equal to a preset power threshold, use the first power difference as the power sharing capability of the mobile terminal battery;

若所述第一电量差值小于所述预设电量阈值时,获取所述移动终端在第二电量消耗情况下时在所述时间差时长内的第二预计消耗电量,并获取所述电池剩余电量与所述第二预计消耗电量的第二电量差值;If the first power difference is less than the preset power threshold, obtain the second estimated power consumption of the mobile terminal within the time difference in the second power consumption condition, and obtain the remaining power of the battery a second power difference from the second estimated power consumption;

若所述第二电量差值大于或等于所述预设电量阈值时,自动切换或提示所述移动终端用户切换所述移动终端到所述第二电量消耗情况对应的工作模式,并将所述第二电量差值作为所述移动终端电池的电量分享能力。If the second power difference is greater than or equal to the preset power threshold, automatically switch or prompt the mobile terminal user to switch the mobile terminal to the working mode corresponding to the second power consumption The second power difference is used as the power sharing capability of the mobile terminal battery.

进一步的,所述方法还包括:Further, the method also includes:

当检测到所述移动终端处于充电状态时,获取所述移动终端的充电位置及充电起止时刻,将所述充电位置作为预存充电位置,将所述充电位置及所述充电起止时刻关联存储作为所述历史充电记录。When it is detected that the mobile terminal is in a charging state, the charging position and the charging start and end time of the mobile terminal are acquired, the charging position is used as a pre-stored charging position, and the charging position and the charging start and end time are stored in association as the The historical charging records are described.

进一步的,所述根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻,具体包括:Further, predicting the time when the mobile terminal has charging conditions according to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal user specifically includes:

根据所述历史充电记录以及所述历史活动记录,获取所述移动终端用户在各所述预存充电位置的停留起始时刻;According to the historical charging record and the historical activity record, obtain the start time of the mobile terminal user staying at each of the pre-stored charging positions;

将距当前时刻最近的所述停留起始时刻作为所述移动终端具备充电条件的时刻,或者将距离所述当前位置最近所述预存充电位置对应的所述停留起始时刻作为所述移动终端具备充电条件的时刻。Taking the stay starting time closest to the current time as the time when the mobile terminal has the charging condition, or using the stay starting time corresponding to the pre-stored charging position closest to the current position as the time when the mobile terminal has the charging condition. moment of charging conditions.

进一步的,所述方法还包括:Further, the method also includes:

若所述当前位置属于预存充电位置,则直接对与所述移动终端连接的设备进行反向充电。If the current position belongs to the pre-stored charging position, the device connected to the mobile terminal is directly reversely charged.

本发明的另一个方面是提供一种移动终端,包括:Another aspect of the present invention is to provide a mobile terminal, comprising:

定位模块,用于获取移动终端的当前位置;a positioning module, used to obtain the current position of the mobile terminal;

处理模块,用于判断所述当前位置是否属于预存充电位置;若所述当前位置不属于预存充电位置,则获取所述移动终端电池的电量分享能力;a processing module, configured to determine whether the current position belongs to a pre-stored charging position; if the current position does not belong to a pre-stored charging position, obtain the power sharing capability of the mobile terminal battery;

反向充电模块,用于根据所述电量分享能力对与所述移动终端连接的设备进行反向充电。A reverse charging module, configured to reversely charge the device connected to the mobile terminal according to the power sharing capability.

进一步的,所述处理模块具体用于:Further, the processing module is specifically used for:

根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻;According to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal user, predict the time when the mobile terminal has the charging conditions;

获取当前时刻与所述移动终端具备充电条件的时刻之间的时间差;obtaining the time difference between the current moment and the moment when the mobile terminal has the charging condition;

根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力。According to the time difference, the current power consumption of the mobile terminal and the remaining power of the battery, the power sharing capability of the battery of the mobile terminal is acquired.

进一步的,所述处理模块具体包括:Further, the processing module specifically includes:

根据所述移动终端当前电量消耗情况预测所述移动终端在所述时间差时长内的第一预计消耗电量,并获取所述电池剩余电量与所述第一预计消耗电量的第一电量差值;Predict the first estimated power consumption of the mobile terminal within the time difference according to the current power consumption of the mobile terminal, and obtain a first power difference between the remaining battery power and the first estimated power consumption;

若所述第一电量差值大于或等于预设电量阈值时,将所述第一电量差值作为所述移动终端电池的电量分享能力;If the first power difference is greater than or equal to a preset power threshold, use the first power difference as the power sharing capability of the mobile terminal battery;

若所述第一电量差值小于所述预设电量阈值时,获取所述移动终端在第二电量消耗情况下时在所述时间差时长内的第二预计消耗电量,并获取所述电池剩余电量与所述第二预计消耗电量的第二电量差值;If the first power difference is less than the preset power threshold, obtain the second estimated power consumption of the mobile terminal within the time difference in the second power consumption condition, and obtain the remaining power of the battery a second power difference from the second estimated power consumption;

若所述第二电量差值大于或等于所述预设电量阈值时,自动切换或提示所述移动终端用户切换所述移动终端到所述第二电量消耗情况对应的工作模式,并将所述第二电量差值作为所述移动终端电池的电量分享能力。If the second power difference is greater than or equal to the preset power threshold, automatically switch or prompt the mobile terminal user to switch the mobile terminal to the working mode corresponding to the second power consumption The second power difference is used as the power sharing capability of the mobile terminal battery.

进一步的,所述移动终端还包括:Further, the mobile terminal also includes:

获取模块,用于当检测到所述移动终端处于充电状态时,获取所述移动终端的充电位置及充电起止时刻,将所述充电位置作为预存充电位置,将所述充电位置及所述充电起止时刻关联存储作为所述历史充电记录。an acquisition module, configured to acquire the charging position and charging start and end time of the mobile terminal when it is detected that the mobile terminal is in a charging state, use the charging position as a pre-stored charging position, and use the charging position and the charging start and end time The time is associated and stored as the historical charging record.

进一步的,所述处理模块具体包括:Further, the processing module specifically includes:

根据所述历史充电记录以及所述历史活动记录,获取所述移动终端用户在各所述预存充电位置的停留起始时刻;According to the historical charging record and the historical activity record, obtain the start time of the mobile terminal user staying at each of the pre-stored charging positions;

将距当前时刻最近的所述停留起始时刻作为所述移动终端具备充电条件的时刻,或者将距离所述当前位置最近所述预存充电位置对应的所述停留起始时刻作为所述移动终端具备充电条件的时刻。Taking the stay starting time closest to the current time as the time when the mobile terminal has the charging condition, or using the stay starting time corresponding to the pre-stored charging position closest to the current position as the time when the mobile terminal has the charging condition. moment of charging conditions.

进一步的,反向充电模块还用于,若所述当前位置属于预存充电位置,则直接对与所述移动终端连接的设备进行反向充电。Further, the reverse charging module is further configured to directly reversely charge the device connected to the mobile terminal if the current location belongs to a pre-stored charging location.

本发明提供的移动终端反向充电管理方法及移动终端,通过获取移动终端的当前位置,并判断当前位置是否属于预存充电位置;若当前位置不属于预存充电位置,则获取移动终端电池的电量分享能力;然后根据电量分享能力对与移动终端连接的设备进行反向充电,从而在当前位置不具备充电条件时根据电量分享能力适时结束反向充电,有效的避免移动终端一直向外供电直至电池电量耗尽而影响自身使用的问题,提高了移动终端用户的使用体验。The mobile terminal reverse charging management method and mobile terminal provided by the present invention obtain the current position of the mobile terminal and determine whether the current position belongs to the pre-stored charging position; if the current position does not belong to the pre-stored charging position, the power sharing of the battery of the mobile terminal is obtained. Then reverse charging the device connected to the mobile terminal according to the power sharing ability, so that when the current location does not have the charging conditions, the reverse charging can be ended in time according to the power sharing ability, effectively preventing the mobile terminal from supplying power to the battery until the battery is fully charged. The problem of affecting their own use due to exhaustion improves the use experience of mobile terminal users.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明实施例提供的移动终端反向充电管理方法流程图;FIG. 1 is a flowchart of a method for reverse charging management of a mobile terminal provided by an embodiment of the present invention;

图2为本发明另一实施例提供的移动终端反向充电管理方法流程图;FIG. 2 is a flowchart of a method for reverse charging management of a mobile terminal provided by another embodiment of the present invention;

图3为本发明实施例提供的移动终端的结构图。FIG. 3 is a structural diagram of a mobile terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

图1为本发明实施例提供的移动终端反向充电管理方法流程图。如图1 所示,本实施例提供了一种移动终端反向充电管理方法,其中移动终端可以为手机、平板电脑、PDA或笔记本电脑等,该方法具体步骤如下:FIG. 1 is a flowchart of a method for reverse charging management of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 1 , this embodiment provides a method for reverse charging management of a mobile terminal, wherein the mobile terminal may be a mobile phone, a tablet computer, a PDA or a notebook computer, etc. The specific steps of the method are as follows:

S101、获取移动终端的当前位置,并判断所述当前位置是否属于预存充电位置。S101. Acquire a current location of a mobile terminal, and determine whether the current location belongs to a pre-stored charging location.

在本实施例中,获取移动终端的当前位置可采用现有技术中的定位方法,例如使用GPS(Global Positioning System,全球定位系统)进行定位,或者获取移动终端接入的基站和小区信息进行定位等等。预存充电位置可以为历史充电位置,也即移动终端在每次充电时获取充电位置并进行保存,当然也可由用户自行设置,例如可以包括住所或工作单位位置等等。判断所述当前位置是否属于预存充电位置具体可通过获取当前位置与预存充电位置的距离,若存在距离小于或等于预设距离阈值的预存充电位置时,确定当前位置属于预存充电位置,若不存在距离小于或等于预设距离阈值的预存充电位置时,确定当前位置不属于预存充电位置。In this embodiment, the current location of the mobile terminal may be obtained by using a positioning method in the prior art, for example, GPS (Global Positioning System, global positioning system) is used for positioning, or the base station and cell information accessed by the mobile terminal are obtained for positioning and many more. The pre-stored charging position may be a historical charging position, that is, the mobile terminal obtains and saves the charging position each time it is charged, and of course can also be set by the user, for example, may include the location of a residence or work unit, and so on. Determining whether the current position belongs to the pre-stored charging position can specifically be obtained by obtaining the distance between the current position and the pre-stored charging position. If there is a pre-stored charging position whose distance is less than or equal to the preset distance threshold, it is determined that the current position belongs to the pre-stored charging position. If there is no pre-stored charging position When the distance is less than or equal to the pre-stored charging position of the preset distance threshold, it is determined that the current position does not belong to the pre-stored charging position.

若所述当前位置属于预存充电位置,说明当前移动终端具备充电条件,则可直接对与所述移动终端连接的设备进行反向充电,移动终端能够一直向外供电直至电池电量耗尽或用户中止反向充电,用户在电池电量耗尽后可对移动终端进行充电;若所述当前位置不属于预存充电位置,说明当前移动终端可能不具备充电条件,则执行S102。If the current position belongs to the pre-stored charging position, it means that the current mobile terminal has the charging conditions, and the device connected to the mobile terminal can be directly reversely charged, and the mobile terminal can continue to supply power until the battery is exhausted or the user stops In reverse charging, the user can charge the mobile terminal after the battery is exhausted; if the current position does not belong to the pre-stored charging position, indicating that the current mobile terminal may not have the charging conditions, then execute S102.

S102、若所述当前位置不属于预存充电位置,则获取所述移动终端电池的电量分享能力。S102. If the current location does not belong to a pre-stored charging location, acquire the power sharing capability of the battery of the mobile terminal.

在本实施例中,通过判断当前位置是否属于预存充电位置,若当前位置不属于预存充电位置,则说明当前移动终端可能不具备充电条件,因此不能毫无保留的将移动终端电池剩余电量分享给与移动终端连接的设备,否则移动终端将电池剩余电量全部反向充给该设备后,移动终端则可能因为电池电量耗尽而关机,而在当前位置又不能及时进行充电,给移动终端用户带来不便。因此本实施例中在当前位置不属于预存充电位置时,获取移动终端电池的电量分享能力,以根据电量分享能力与所述移动终端连接的设备进行反向充电,对反向充电的电量进行限制。具体的,可根据历史数据预测移动终端具备充电条件的时刻,再根据在根据当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力,其中电量分析能力为在预留了维持移动终端正常工作到具备充电条件的时刻所需的电量后所剩的电量。In this embodiment, by judging whether the current position belongs to the pre-stored charging position, if the current position does not belong to the pre-stored charging position, it means that the current mobile terminal may not have the charging conditions, so the remaining battery power of the mobile terminal cannot be shared with the mobile terminal without reservation. A device connected to the mobile terminal, otherwise, after the mobile terminal charges all the remaining battery power to the device in reverse, the mobile terminal may be shut down due to the exhaustion of the battery power, and cannot be charged in time at the current location. inconvenience. Therefore, in this embodiment, when the current position does not belong to the pre-stored charging position, the power sharing capability of the battery of the mobile terminal is obtained, so as to perform reverse charging with the device connected to the mobile terminal according to the power sharing capability, and limit the power of reverse charging . Specifically, the time when the mobile terminal has charging conditions can be predicted according to historical data, and then according to the current power consumption and remaining battery power, the power sharing capability of the mobile terminal battery can be obtained, wherein the power analysis capability is reserved. The power remaining after the power required to maintain the normal operation of the mobile terminal until the time when the charging conditions are met.

S103、根据所述电量分享能力对与所述移动终端连接的设备进行反向充电。S103. Perform reverse charging on the device connected to the mobile terminal according to the power sharing capability.

在本实施例中,根据电量分享能力管理反向充电,当反向充电电量达到所述电量分享能力所限定的电量值时,停止反向充电。本实施例中待充电设备可通过OTG(On-The-Go)数据线与移动终端连接,当然也可采用其他能够实现反向充电的连接线。In this embodiment, reverse charging is managed according to the power sharing capability, and when the reverse charging power reaches the power value defined by the power sharing capability, the reverse charging is stopped. In this embodiment, the device to be charged can be connected to the mobile terminal through an OTG (On-The-Go) data line, and of course other connecting lines capable of reverse charging can also be used.

本实施例提供的移动终端反向充电管理方法,通过获取移动终端的当前位置,并判断当前位置是否属于预存充电位置;若当前位置不属于预存充电位置,则获取移动终端电池的电量分享能力;然后根据电量分享能力对与移动终端连接的设备进行反向充电,从而在当前位置不具备充电条件时根据电量分享能力适时结束反向充电,有效的避免移动终端一直向外供电直至电池电量耗尽而影响自身使用的问题,提高了移动终端用户的使用体验。In the method for reverse charging management of a mobile terminal provided by this embodiment, the current position of the mobile terminal is obtained, and it is judged whether the current position belongs to the pre-stored charging position; if the current position does not belong to the pre-stored charging position, the power sharing capability of the battery of the mobile terminal is obtained; Then, the device connected to the mobile terminal is reversely charged according to the power sharing capability, so that when the current location does not have the charging conditions, the reverse charging is terminated according to the power sharing capability in a timely manner, which effectively prevents the mobile terminal from supplying power until the battery is exhausted. And the problems affecting their own use improve the use experience of mobile terminal users.

在上述实施例的基础上,如图2所示,S102所述的获取所述移动终端电池的电量分享能力,可包括:On the basis of the foregoing embodiment, as shown in FIG. 2 , the obtaining of the power sharing capability of the mobile terminal battery described in S102 may include:

S201、根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻。S201. Predict the time when the mobile terminal has charging conditions according to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal user.

在本实施例中,预存的移动终端用户的历史充电记录可以由移动终端在每次充电时进行记录,可包括移动终端的充电位置及充电起止时刻,也即当检测到所述移动终端处于充电状态时,获取所述移动终端的充电位置及充电起止时刻,将所述充电位置作为上述的预存充电位置,将所述充电位置及所述充电起止时刻关联存储作为所述历史充电记录。历史活动记录则可由移动终端记录用户在各预存充电位置的活动数据,例如用户在各预存充电位置的停留开始时间和结束时间。In this embodiment, the pre-stored historical charging records of mobile terminal users may be recorded by the mobile terminal during each charging, and may include the charging position of the mobile terminal and the starting and ending times of charging, that is, when it is detected that the mobile terminal is charging In the state, the charging position and charging start and end time of the mobile terminal are acquired, the charging position is used as the above-mentioned pre-stored charging position, and the charging position and the charging start and end time are associated and stored as the historical charging record. For the historical activity record, the mobile terminal can record the activity data of the user at each pre-stored charging location, such as the start time and end time of the user's stay at each pre-stored charging location.

则具体的,所述的根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻,具体包括:Specifically, according to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal users, predicting the time when the mobile terminal has the charging conditions specifically includes:

S2011、根据所述历史充电记录以及所述历史活动记录,获取所述移动终端用户在各所述预存充电位置的停留起始时刻;S2011. Acquire, according to the historical charging record and the historical activity record, the start time of the mobile terminal user staying at each of the pre-stored charging positions;

S2012、将距当前时刻最近的所述停留起始时刻作为所述移动终端具备充电条件的时刻,或者将距离所述当前位置最近所述预存充电位置对应的所述停留起始时刻作为所述移动终端具备充电条件的时刻。S2012. Use the stay start time closest to the current time as the time when the mobile terminal has charging conditions, or use the stay start time corresponding to the pre-stored charging location closest to the current location as the movement The time when the terminal is ready for charging.

本实施例中,对于活动很规律的用户,例如每天16:00-18:00时间段处于预存充电位置A处,每天19:00-24:00时间段处于预存充电位置B处,可将 16:00和19:00作为两个候选的具备充电条件的时刻,可将距当前时刻最近的所述停留起始时刻作为所述移动终端具备充电条件的时刻,例如当前时刻为 15:00,则可预测到用户会在16:00左右到达预存充电位置A处,可将16:00 作为所述移动终端具备充电条件的时刻。当然用户并不可能都是如上述情况,可以通过统计用户过去多天内在每一预存充电位置的停留起始时刻,例如在预存充电位置A处的停留起始时刻有9:00、16:00、18:00三个时刻,并且统计出9:00存在1次,16:00存在8次,18:00存在1次,计算出用户在预存充电位置A处停留起始时刻9:00占比10%,16:00占比80%,18:00占比10%,停留起始时刻为16:00的占比大于预设比例阈值60%,则将预存充电位置A 停留起始时刻为16:00作为候选的具备充电条件的时刻;同样获取预存充电位置B停留起始时刻为19:00占比大于预设比例阈值60%,作为另一候选的具备充电条件的时刻。在获取候选时刻时可自动忽略较当前时刻早的时刻。In this embodiment, for a user whose activities are very regular, for example, at the pre-stored charging position A from 16:00 to 18:00 every day, and at the pre-stored charging position B from 19:00 to 24:00 every day, 16 :00 and 19:00 are the two candidate times when charging conditions are met, and the stay start time closest to the current time can be used as the time when the mobile terminal is charging conditions. For example, when the current time is 15:00, then It can be predicted that the user will arrive at the pre-stored charging position A around 16:00, and 16:00 can be taken as the time when the mobile terminal has the charging conditions. Of course, it is not always possible for the user to be in the above situation. It is possible to count the starting time of the user's stay at each pre-stored charging location in the past few days. For example, the starting time of stay at the pre-stored charging location A is 9:00 and 16:00. , 18:00 three times, and it is counted that 9:00 exists 1 time, 16:00 exists 8 times, and 18:00 exists 1 time, calculate the proportion of the user staying at the pre-stored charging position A at the starting time of 9:00 10%, 80% at 16:00, 10% at 18:00, and if the stop start time at 16:00 is greater than the preset ratio threshold of 60%, the pre-stored charging position A will be set as the stop start time at 16:00. :00 is used as a candidate for the time with the charging condition; also the pre-stored charging position B stays at the starting time of 19:00, which accounts for more than 60% of the preset ratio threshold, as another candidate for the time with the charging condition. The time earlier than the current time can be automatically ignored when acquiring the candidate time.

此外,本实施例中也可将距离当前位置最近预存充电位置对应的留起始时刻作为移动终端具备充电条件的时刻,例如上述示例中,若预存充电位置 B与当前位置距离较预存充电位置A与当前位置距离更近,则将预存充电位置B停留起始时刻19:00作为移动终端具备充电条件的时刻。具体可应用在用户出差、旅行等情况下,例如预存充电位置A处于用户常住城市,而预存充电位置B处于用户当前出差所在城市,则以预存充电位置B对应的停留起始时刻19:00作为移动终端具备充电条件的时刻,其中可通过获取移动终端最近的几次充电位置,与其他预存充电位置进行比较,如果距离超出阈值则确定用户处于出差或旅行情况。当然,如果用户在出差或旅行情况下也存在多个候选的具备充电条件的时刻,可以结合与当前位置的距离以及与当前时刻的时间差综合判断,选出最优的具备充电条件的时刻。In addition, in this embodiment, the start time corresponding to the pre-stored charging position closest to the current position can also be used as the time when the mobile terminal has charging conditions. For example, in the above example, if the distance between the pre-stored charging position B and the current position is longer than the pre-stored charging position A If the distance to the current location is closer, the pre-stored charging location B stays at 19:00 as the time when the mobile terminal has the charging conditions. Specifically, it can be applied to situations such as the user's business trip, travel, etc. For example, the pre-stored charging location A is in the user's resident city, and the pre-stored charging location B is in the city where the user is currently traveling for business, then the pre-stored charging location B corresponds to the stop start time at 19:00 as the When the mobile terminal has charging conditions, the most recent charging positions of the mobile terminal can be obtained and compared with other pre-stored charging positions. If the distance exceeds the threshold, it is determined that the user is in a business trip or travel situation. Of course, if the user is on a business trip or traveling, there are multiple candidate times with charging conditions, he can make a comprehensive judgment based on the distance from the current location and the time difference from the current time to select the optimal time with charging conditions.

需要说明的是,本发明中获取移动终端具备充电条件的时刻的方法并不仅限于上述所列的方式,也可通过机器学习算法对历史充电记录以及历史活动记录进行分析后获取,当然也可由用户自行设置具备充电条件的时刻,可通过询问用户并接收用户输入的时刻作为具备充电条件的时刻。It should be noted that the method for obtaining the time when the mobile terminal has the charging conditions in the present invention is not limited to the methods listed above, and can also be obtained after analyzing the historical charging records and historical activity records through a machine learning algorithm. You can set the time when the charging conditions are satisfied by yourself, and the time when the charging conditions are satisfied can be regarded as the time when you ask the user and receive the user's input.

S202、获取当前时刻与所述移动终端具备充电条件的时刻之间的时间差。S202. Obtain the time difference between the current time and the time when the mobile terminal has the charging condition.

S203、根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力。S203. Obtain the power sharing capability of the mobile terminal battery according to the time difference, the current power consumption of the mobile terminal, and the remaining power of the battery.

本实施例中,根据上述时间差和移动终端当前电量消耗情况可获取移动终端在到达具备充电条件的时刻前还需要消耗的电量,并进行预留,从电池剩余电量中扣除预留的电量后即可得到移动终端电池的电量分享能力,从而既能保证移动终端的正常工作,同时也能实现反向充电。其中当前电量消耗情况可根据预定时间段内移动终端消耗的电量获取单位时间内的电量消耗,当然可以采用其他方法评估当前电量消耗,例如分析电流、电压等数据等。In this embodiment, according to the above-mentioned time difference and the current power consumption of the mobile terminal, the power that the mobile terminal needs to consume before reaching the time when the charging conditions are met can be obtained, and reserved, and the reserved power is deducted from the remaining power of the battery. The power sharing capability of the battery of the mobile terminal can be obtained, thereby not only ensuring the normal operation of the mobile terminal, but also realizing reverse charging. The current power consumption can be obtained from the power consumed by the mobile terminal within a predetermined period of time to obtain the power consumption per unit time. Of course, other methods can be used to evaluate the current power consumption, such as analyzing data such as current and voltage.

更具体的,S203所述的根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力,具体可包括:More specifically, according to the time difference, the current power consumption of the mobile terminal, and the remaining battery power of the mobile terminal in S203, the power sharing capability of the battery of the mobile terminal is acquired, which may specifically include:

S2031、根据所述移动终端当前电量消耗情况预测所述移动终端在所述时间差时长内的第一预计消耗电量,并获取所述电池剩余电量与所述第一预计消耗电量的第一电量差值;S2031. Predict the first estimated power consumption of the mobile terminal within the time difference according to the current power consumption of the mobile terminal, and obtain a first power difference between the remaining power of the battery and the first estimated power consumption ;

S2032、若所述第一电量差值大于或等于预设电量阈值时,将所述第一电量差值作为所述移动终端电池的电量分享能力。S2032. If the first power difference is greater than or equal to a preset power threshold, use the first power difference as the power sharing capability of the mobile terminal battery.

在本实施例中,若第一电量差值大于或等于预设电量阈值,则说明移动终端电池剩余电量充足,可以保证移动终端在当前工作模式下的正常工作,能够对其他设备进行反向充电。In this embodiment, if the first power difference is greater than or equal to the preset power threshold, it means that the remaining power of the mobile terminal battery is sufficient, which can ensure the normal operation of the mobile terminal in the current working mode, and can reversely charge other devices .

S2033、若所述第一电量差值小于所述预设电量阈值时,获取所述移动终端在第二电量消耗情况下时在所述时间差时长内的第二预计消耗电量,并获取所述电池剩余电量与所述第二预计消耗电量的第二电量差值;S2033. If the first power difference is less than the preset power threshold, obtain the second estimated power consumption of the mobile terminal within the time difference in the second power consumption condition, and obtain the battery a second power difference between the remaining power and the second estimated power consumption;

S2034、若所述第二电量差值大于或等于所述预设电量阈值时,自动切换或提示所述移动终端用户切换所述移动终端到所述第二电量消耗情况对应的工作模式,并将所述第二电量差值作为所述移动终端电池的电量分享能力。S2034. If the second power difference is greater than or equal to the preset power threshold, automatically switch or prompt the mobile terminal user to switch the mobile terminal to the working mode corresponding to the second power consumption, and set the The second power difference value is used as the power sharing capability of the mobile terminal battery.

在本实施例中,若第一电量差值小于预设电量阈值时,说明以当前工作模式工作移动终端的电量分享能力不足,无法输出足够多的电量,此时可计算若移动终端以第二电量消耗情况(如省电模式)进行工作时能反向输出的电量,也即第二电量差值,如果此时第二电量差值大于或等于所述预设电量阈值,则说明移动终端在省电模式下能够对其他设备进行反向充电,可自动切换或提示用户切换移动终端的工作模式。当然如果第二电量差值也小于所述预设电量阈值,则可中止反向充电。In this embodiment, if the first power difference is smaller than the preset power threshold, it means that the mobile terminal operating in the current working mode has insufficient power sharing capability and cannot output enough power. The amount of power that can be output in reverse when working in power consumption (such as power saving mode), that is, the second power difference. If the second power difference is greater than or equal to the preset power threshold at this time, it means that the mobile terminal is in In the power saving mode, other devices can be reversely charged, and the user can be automatically switched or prompted to switch the working mode of the mobile terminal. Of course, if the second power difference is also smaller than the preset power threshold, reverse charging can be terminated.

为了更加直观具体地说明上述实施例中提供的移动终端反向充电管理方法,体现本发明的优势和给用户带来的便利,下面结合一个具体的实施例来详细描述。假设用户拥有一部三星手机,具有上述实施例中提供的功能,用户于12:00使用该三星手机欲为另一部华为手机进行反向充电。假设三星手机已预存有历史充电记录以及历史活动记录,其中历史充电记录中包含预存充电位置及充电起止时刻,历史活动记录包含用户在各预存充电位置的停留起止时刻。In order to more intuitively and specifically describe the reverse charging management method of the mobile terminal provided in the above embodiment, and to reflect the advantages of the present invention and the convenience brought to the user, the following detailed description is combined with a specific embodiment. It is assumed that the user owns a Samsung mobile phone with the functions provided in the above embodiments, and the user uses the Samsung mobile phone at 12:00 to reversely charge another Huawei mobile phone. It is assumed that the Samsung mobile phone has pre-stored historical charging records and historical activity records. The historical charging records include the pre-stored charging locations and charging start and end times, and the historical activity records include the user's stay start and end times at each pre-stored charging location.

三星手机首先通过自身GPS模块获取当前位置为“北京市海淀区农大南路1号”,然后与各预存充电位置进行比较,可通过比较当前位置与预存充电位置的距离,若存在距离小于或等于预设距离阈值的预存充电位置时,确定当前位置属于预存充电位置,若不存在距离小于或等于预设距离阈值的预存充电位置时,确定当前位置不属于预存充电位置。通过比较,确定“北京市海淀区农大南路1号”不属于任何预存充电位置,也即当前位置不具有充电条件。The Samsung mobile phone first obtains the current location as "No. 1 Nongda South Road, Haidian District, Beijing" through its own GPS module, and then compares it with each pre-stored charging location. The distance between the current location and the pre-stored charging location can be compared. When setting the pre-stored charging position of the distance threshold, it is determined that the current position belongs to the pre-stored charging position. If there is no pre-stored charging position with a distance less than or equal to the preset distance threshold, it is determined that the current position does not belong to the pre-stored charging position. Through comparison, it is determined that "No. 1 Nongda South Road, Haidian District, Beijing" does not belong to any pre-stored charging location, that is, the current location does not have charging conditions.

然后预测三星手机具备充电条件的时刻。可通过统计分析历史充电记录以及历史活动记录,可得到下表,其中占比用于反映用户位于该位置的频率。Then predict the moment when the Samsung phone is ready for charging. The following table can be obtained by statistical analysis of historical charging records and historical activity records, in which the proportion is used to reflect the frequency of the user at this location.

Figure BDA0001711681840000091
Figure BDA0001711681840000091

本实施例中当前时刻为12:00,预设比例阈值为60%,首先将早于当前时刻的记录排除,然后统计晚于当前时刻的记录,获取各预存充电位置的各停留起始时刻的占比,并与预设比例阈值进行比较,得到:地点1停留起始时刻“13:35”的占比为80%>60%,地点2停留起始时刻“20:45”20:45的占比为83%>60%,作为候选的具备充电条件的时刻。三星手机根据上述两个候选时刻选择距当前时刻最近的13:35作为实际可使用的具备充电条件的时刻,然后获取当前时刻到具备充电条件的时刻之间的时间差为1.58小时。In this embodiment, the current time is 12:00, and the preset ratio threshold is 60%. First, records that are earlier than the current time are excluded, and then records that are later than the current time are counted to obtain the data of each pre-stored charging position at the start time of each stay. The ratio is compared with the preset ratio threshold, and it is obtained that: the proportion of the starting time of stay at "13:35" in place 1 is 80% > 60%, and the starting time of stay in place 2 is "20:45" at 20:45. The proportion is 83%>60%, which is a candidate for the time when the charging conditions are met. According to the above two candidate times, the Samsung mobile phone selects the closest 13:35 to the current time as the time when the charging conditions are actually available, and then the time difference between the current time and the time when the charging conditions are obtained is 1.58 hours.

根据三星手机当前工作模式的电量消耗情况,获取从当前时刻工作到 13:35时的电量需求,可通过统计预定时间段内三星手机的电量消耗情况,例如在同样的工作模式下从6:00工作到12:00,电池电量从95%下降到50%,据此可估算出单位时间内Note 8的电量消耗:(95%-50%)/6=7.5%,然后计算三星手机工作到13:35时的第一预计消耗电量为7.5%×1.58=11.85%。结合获取的电池剩余电量50%,获取三星手机电池的电量分享能力。具体来说,获取电池剩余电量与第一预计消耗电量的第一电量差值50%-11.85%=38.15%,第一电量差值大于预设电量阈值10%,从而确定三星手机电池的电量分享能力还可向外提供38.15%的电量。According to the power consumption of the Samsung mobile phone in the current working mode, the power demand from the current time to 13:35 can be obtained, and the power consumption of the Samsung mobile phone in a predetermined period of time can be counted, for example, in the same working mode from 6:00 Work until 12:00, the battery power drops from 95% to 50%, according to which the power consumption of Note 8 per unit time can be estimated: (95%-50%)/6=7.5%, and then calculate the Samsung mobile phone to work until 13 : The first estimated power consumption at 35 is 7.5%×1.58=11.85%. Combined with the obtained 50% remaining battery power, obtain the power sharing ability of Samsung mobile phone battery. Specifically, the first power difference between the remaining battery power and the first estimated power consumption is 50%-11.85%=38.15%, and the first power difference is greater than the preset power threshold by 10%, so as to determine the power sharing of the Samsung mobile phone battery The ability also provides 38.15% of the charge outwards.

最后三星手机根据电量分享能力对与三星手机连接的华为手机进行反向充电。充电过程中实时监测三星手机电池的电量和向外供电的电量,在达到电池分享能力的上限值38.15%时,结束向外供电,并可以提醒终端用户。Finally, the Samsung mobile phone reversely charges the Huawei mobile phone connected to the Samsung mobile phone according to the power sharing capability. During the charging process, the power of the Samsung mobile phone battery and the power of the external power supply are monitored in real time. When the upper limit of the battery sharing capacity of 38.15% is reached, the external power supply is terminated, and the end user can be reminded.

本实施例提供的移动终端反向充电管理方法,通过获取移动终端的当前位置,并判断当前位置是否属于预存充电位置;若当前位置不属于预存充电位置,则获取移动终端电池的电量分享能力;然后根据电量分享能力对与移动终端连接的设备进行反向充电,从而在当前位置不具备充电条件时根据电量分享能力适时结束反向充电,有效的避免移动终端一直向外供电直至电池电量耗尽而影响自身使用的问题,提高了移动终端用户的使用体验。In the method for reverse charging management of a mobile terminal provided by this embodiment, the current position of the mobile terminal is obtained, and it is judged whether the current position belongs to the pre-stored charging position; if the current position does not belong to the pre-stored charging position, the power sharing capability of the battery of the mobile terminal is obtained; Then, the device connected to the mobile terminal is reversely charged according to the power sharing capability, so that when the current location does not have the charging conditions, the reverse charging is terminated according to the power sharing capability in a timely manner, which effectively prevents the mobile terminal from supplying power until the battery is exhausted. And the problems affecting their own use improve the use experience of mobile terminal users.

图3为本发明实施例提供的移动终端的结构图。本实施例提供一种移动终端,可以执行移动终端反向充电管理方法实施例提供的处理流程,如图3 所示,本实施例提供的移动终端包括定位模块301、处理模块302以及反向充电模块303。FIG. 3 is a structural diagram of a mobile terminal according to an embodiment of the present invention. This embodiment provides a mobile terminal that can execute the processing flow provided by the mobile terminal reverse charging management method embodiment. As shown in FIG. 3 , the mobile terminal provided by this embodiment includes apositioning module 301 , aprocessing module 302 and areverse charging Module 303.

定位模块301,用于获取移动终端的当前位置;Thepositioning module 301 is used to obtain the current position of the mobile terminal;

处理模块302,用于判断所述当前位置是否属于预存充电位置;若所述当前位置不属于预存充电位置,则获取所述移动终端电池的电量分享能力;Theprocessing module 302 is configured to determine whether the current position belongs to a pre-stored charging position; if the current position does not belong to a pre-stored charging position, obtain the power sharing capability of the mobile terminal battery;

反向充电模块303,用于根据所述电量分享能力对与所述移动终端连接的设备进行反向充电。Thereverse charging module 303 is configured to reversely charge the device connected to the mobile terminal according to the power sharing capability.

进一步的,所述处理模块302具体用于:Further, theprocessing module 302 is specifically used for:

根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻;According to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal user, predict the time when the mobile terminal has the charging conditions;

获取当前时刻与所述移动终端具备充电条件的时刻之间的时间差;obtaining the time difference between the current moment and the moment when the mobile terminal has the charging condition;

根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力。According to the time difference, the current power consumption of the mobile terminal and the remaining power of the battery, the power sharing capability of the battery of the mobile terminal is acquired.

进一步的,所述处理模块302具体包括:Further, theprocessing module 302 specifically includes:

根据所述移动终端当前电量消耗情况预测所述移动终端在所述时间差时长内的第一预计消耗电量,并获取所述电池剩余电量与所述第一预计消耗电量的第一电量差值;Predict the first estimated power consumption of the mobile terminal within the time difference according to the current power consumption of the mobile terminal, and obtain a first power difference between the remaining battery power and the first estimated power consumption;

若所述第一电量差值大于或等于预设电量阈值时,将所述第一电量差值作为所述移动终端电池的电量分享能力;If the first power difference is greater than or equal to a preset power threshold, use the first power difference as the power sharing capability of the mobile terminal battery;

若所述第一电量差值小于所述预设电量阈值时,获取所述移动终端在第二电量消耗情况下时在所述时间差时长内的第二预计消耗电量,并获取所述电池剩余电量与所述第二预计消耗电量的第二电量差值;If the first power difference is less than the preset power threshold, obtain the second estimated power consumption of the mobile terminal within the time difference in the second power consumption condition, and obtain the remaining power of the battery a second power difference from the second estimated power consumption;

若所述第二电量差值大于或等于所述预设电量阈值时,自动切换或提示所述移动终端用户切换所述移动终端到所述第二电量消耗情况对应的工作模式,并将所述第二电量差值作为所述移动终端电池的电量分享能力。If the second power difference is greater than or equal to the preset power threshold, automatically switch or prompt the mobile terminal user to switch the mobile terminal to the working mode corresponding to the second power consumption The second power difference is used as the power sharing capability of the mobile terminal battery.

进一步的,所述移动终端还包括:Further, the mobile terminal also includes:

获取模块304,用于当检测到所述移动终端处于充电状态时,获取所述移动终端的充电位置及充电起止时刻,将所述充电位置作为预存充电位置,将所述充电位置及所述充电起止时刻关联存储作为所述历史充电记录。The acquiringmodule 304 is configured to acquire the charging position and charging start and end time of the mobile terminal when it is detected that the mobile terminal is in a charging state, use the charging position as a pre-stored charging position, and use the charging position and the charging The start and end times are associated and stored as the historical charging record.

进一步的,所述处理模块302具体包括:Further, theprocessing module 302 specifically includes:

根据所述历史充电记录以及所述历史活动记录,获取所述移动终端用户在各所述预存充电位置的停留起始时刻;According to the historical charging record and the historical activity record, obtain the start time of the mobile terminal user staying at each of the pre-stored charging positions;

将距当前时刻最近的所述停留起始时刻作为所述移动终端具备充电条件的时刻,或者将距离所述当前位置最近所述预存充电位置对应的所述停留起始时刻作为所述移动终端具备充电条件的时刻。The stay starting time closest to the current time is used as the time when the mobile terminal has the charging condition, or the stay start time corresponding to the pre-stored charging position closest to the current position is used as the mobile terminal has moment of charging conditions.

进一步的,反向充电模块303还用于,若所述当前位置属于预存充电位置,则直接对与所述移动终端连接的设备进行反向充电。Further, thereverse charging module 303 is further configured to directly reversely charge the device connected to the mobile terminal if the current location belongs to a pre-stored charging location.

本实施例提供的移动终端可以具体用于执行上述图1和图2所提供的方法实施例,具体功能此处不再赘述。The mobile terminal provided in this embodiment may be specifically used to execute the method embodiments provided in the foregoing FIG. 1 and FIG. 2 , and the specific functions will not be repeated here.

本实施例提供的移动终端,通过获取移动终端的当前位置,并判断当前位置是否属于预存充电位置;若当前位置不属于预存充电位置,则获取移动终端电池的电量分享能力;然后根据电量分享能力对与移动终端连接的设备进行反向充电,从而在当前位置不具备充电条件时根据电量分享能力适时结束反向充电,有效的避免移动终端一直向外供电直至电池电量耗尽而影响自身使用的问题,提高了移动终端用户的使用体验。The mobile terminal provided by this embodiment obtains the current position of the mobile terminal and determines whether the current position belongs to the pre-stored charging position; if the current position does not belong to the pre-stored charging position, the power sharing capability of the battery of the mobile terminal is obtained; and then according to the power sharing capability Reverse charging the device connected to the mobile terminal, so that when the current location does not have the charging conditions, the reverse charging can be ended in a timely manner according to the power sharing ability, which effectively avoids the mobile terminal supplying power to the outside until the battery is exhausted and affecting its own use. problem, which improves the user experience of mobile terminal users.

在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等) 或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software function unit is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute the methods described in the various embodiments of the present invention. some steps. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional modules is used for illustration. The internal structure is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the apparatus described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (8)

Translated fromChinese
1.一种移动终端反向充电管理方法,其特征在于,包括:1. a mobile terminal reverse charging management method, is characterized in that, comprises:获取移动终端的当前位置,并判断所述当前位置是否属于预存充电位置;Obtain the current position of the mobile terminal, and determine whether the current position belongs to a pre-stored charging position;若所述当前位置不属于预存充电位置,则获取所述移动终端电池的电量分享能力;If the current position does not belong to the pre-stored charging position, acquiring the power sharing capability of the battery of the mobile terminal;根据所述电量分享能力对与所述移动终端连接的设备进行反向充电;performing reverse charging on the device connected to the mobile terminal according to the power sharing capability;所述获取所述移动终端电池的电量分享能力,包括:The acquiring the power sharing capability of the battery of the mobile terminal includes:根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻;According to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal user, predict the time when the mobile terminal has the charging conditions;获取当前时刻与所述移动终端具备充电条件的时刻之间的时间差;obtaining the time difference between the current moment and the moment when the mobile terminal has the charging condition;根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力;According to the time difference, the current power consumption of the mobile terminal and the remaining power of the battery, obtain the power sharing capability of the battery of the mobile terminal;所述根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力,具体包括:The obtaining the power sharing capability of the mobile terminal battery according to the time difference, the current power consumption of the mobile terminal and the remaining power of the battery, specifically includes:根据所述移动终端当前电量消耗情况预测所述移动终端在所述时间差时长内的第一预计消耗电量,并获取所述电池剩余电量与所述第一预计消耗电量的第一电量差值;Predict the first estimated power consumption of the mobile terminal within the time difference according to the current power consumption of the mobile terminal, and obtain a first power difference between the remaining battery power and the first estimated power consumption;若所述第一电量差值大于或等于预设电量阈值时,将所述第一电量差值作为所述移动终端电池的电量分享能力;If the first power difference is greater than or equal to a preset power threshold, use the first power difference as the power sharing capability of the mobile terminal battery;若所述第一电量差值小于所述预设电量阈值时,获取所述移动终端在第二电量消耗情况下时在所述时间差时长内的第二预计消耗电量,并获取所述电池剩余电量与所述第二预计消耗电量的第二电量差值;If the first power difference is less than the preset power threshold, obtain the second estimated power consumption of the mobile terminal within the time difference in the second power consumption condition, and obtain the remaining power of the battery a second power difference from the second estimated power consumption;若所述第二电量差值大于或等于所述预设电量阈值时,自动切换或提示所述移动终端用户切换所述移动终端到所述第二电量消耗情况对应的工作模式,并将所述第二电量差值作为所述移动终端电池的电量分享能力。If the second power difference is greater than or equal to the preset power threshold, automatically switch or prompt the mobile terminal user to switch the mobile terminal to the working mode corresponding to the second power consumption The second power difference is used as the power sharing capability of the mobile terminal battery.2.根据权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising:当检测到所述移动终端处于充电状态时,获取所述移动终端的充电位置及充电起止时刻,将所述充电位置作为所述预存充电位置,将所述充电位置及所述充电起止时刻关联存储作为所述历史充电记录。When it is detected that the mobile terminal is in a charging state, the charging position and the charging start and end time of the mobile terminal are acquired, the charging position is used as the pre-stored charging position, and the charging position and the charging start and end time are stored in association with each other. as the historical charging record.3.根据权利要求2所述的方法,其特征在于,所述根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻,具体包括:3 . The method according to claim 2 , wherein, predicting the moment when the mobile terminal has charging conditions according to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal users, specifically comprising: 4 . :根据所述历史充电记录以及所述历史活动记录,获取所述移动终端用户在各所述预存充电位置的停留起始时刻;According to the historical charging record and the historical activity record, obtain the start time of the mobile terminal user staying at each of the pre-stored charging positions;将距当前时刻最近的所述停留起始时刻作为所述移动终端具备充电条件的时刻,或者将距离所述当前位置最近所述预存充电位置对应的所述停留起始时刻作为所述移动终端具备充电条件的时刻。Taking the stay starting time closest to the current time as the time when the mobile terminal has the charging condition, or using the stay starting time corresponding to the pre-stored charging position closest to the current position as the time when the mobile terminal has the charging condition. moment of charging conditions.4.根据权利要求1-3任一项所述的方法,其特征在于,还包括:4. The method according to any one of claims 1-3, further comprising:若所述当前位置属于预存充电位置,则直接对与所述移动终端连接的设备进行反向充电。If the current position belongs to the pre-stored charging position, the device connected to the mobile terminal is directly reversely charged.5.一种移动终端,其特征在于,包括:5. A mobile terminal, characterized in that, comprising:定位模块,用于获取移动终端的当前位置;a positioning module, used to obtain the current position of the mobile terminal;处理模块,用于判断所述当前位置是否属于预存充电位置;若所述当前位置不属于预存充电位置,则获取所述移动终端电池的电量分享能力;a processing module, configured to determine whether the current position belongs to a pre-stored charging position; if the current position does not belong to a pre-stored charging position, obtain the power sharing capability of the mobile terminal battery;反向充电模块,用于根据所述电量分享能力对与所述移动终端连接的设备进行反向充电;所述处理模块具体用于:A reverse charging module, configured to reversely charge the device connected to the mobile terminal according to the power sharing capability; the processing module is specifically used for:根据所述当前位置、预存的移动终端用户的历史充电记录以及历史活动记录,预测所述移动终端具备充电条件的时刻;According to the current location, the pre-stored historical charging records and historical activity records of the mobile terminal user, predict the time when the mobile terminal has the charging conditions;获取当前时刻与所述移动终端具备充电条件的时刻之间的时间差;obtaining the time difference between the current moment and the moment when the mobile terminal has the charging condition;根据所述时间差、所述移动终端当前电量消耗情况以及电池剩余电量,则获取所述移动终端电池的电量分享能力;According to the time difference, the current power consumption of the mobile terminal and the remaining power of the battery, obtain the power sharing capability of the battery of the mobile terminal;所述处理模块具体包括:The processing module specifically includes:根据所述移动终端当前电量消耗情况预测所述移动终端在所述时间差时长内的第一预计消耗电量,并获取所述电池剩余电量与所述第一预计消耗电量的第一电量差值;Predict the first estimated power consumption of the mobile terminal within the time difference according to the current power consumption of the mobile terminal, and obtain a first power difference between the remaining battery power and the first estimated power consumption;若所述第一电量差值大于或等于预设电量阈值时,将所述第一电量差值作为所述移动终端电池的电量分享能力;If the first power difference is greater than or equal to a preset power threshold, use the first power difference as the power sharing capability of the mobile terminal battery;若所述第一电量差值小于所述预设电量阈值时,获取所述移动终端在第二电量消耗情况下时在所述时间差时长内的第二预计消耗电量,并获取所述电池剩余电量与所述第二预计消耗电量的第二电量差值;If the first power difference is less than the preset power threshold, obtain the second estimated power consumption of the mobile terminal within the time difference in the second power consumption condition, and obtain the remaining power of the battery a second power difference from the second estimated power consumption;若所述第二电量差值大于或等于所述预设电量阈值时,自动切换或提示所述移动终端用户切换所述移动终端到所述第二电量消耗情况对应的工作模式,并将所述第二电量差值作为所述移动终端电池的电量分享能力。If the second power difference is greater than or equal to the preset power threshold, automatically switch or prompt the mobile terminal user to switch the mobile terminal to the working mode corresponding to the second power consumption The second power difference is used as the power sharing capability of the mobile terminal battery.6.根据权利要求5所述的移动终端,其特征在于,还包括:6. The mobile terminal according to claim 5, further comprising:获取模块,用于当检测到所述移动终端处于充电状态时,获取所述移动终端的充电位置及充电起止时刻,将所述充电位置作为所述预存充电位置,将所述充电位置及所述充电起止时刻关联存储作为所述历史充电记录。an acquisition module, configured to acquire the charging position and charging start and end time of the mobile terminal when it is detected that the mobile terminal is in a charging state, take the charging position as the pre-stored charging position, and use the charging position and the charging position as the pre-stored charging position. The charging start and end times are associated and stored as the historical charging record.7.根据权利要求6所述的移动终端,其特征在于,所述处理模块具体包括:7. The mobile terminal according to claim 6, wherein the processing module specifically comprises:根据所述历史充电记录以及所述历史活动记录,获取所述移动终端用户在各所述预存充电位置的停留起始时刻;According to the historical charging record and the historical activity record, obtain the start time of the mobile terminal user staying at each of the pre-stored charging positions;将距当前时刻最近的所述停留起始时刻作为所述移动终端具备充电条件的时刻,或者将距离所述当前位置最近所述预存充电位置对应的所述停留起始时刻作为所述移动终端具备充电条件的时刻。Taking the stay starting time closest to the current time as the time when the mobile terminal has the charging condition, or using the stay starting time corresponding to the pre-stored charging position closest to the current position as the time when the mobile terminal has the charging condition. moment of charging conditions.8.根据权利要求5-7任一项所述的移动终端,其特征在于,8. The mobile terminal according to any one of claims 5-7, wherein,反向充电模块还用于,若所述当前位置属于预存充电位置,则直接对与所述移动终端连接的设备进行反向充电。The reverse charging module is further configured to, if the current location belongs to a pre-stored charging location, directly reversely charge the device connected to the mobile terminal.
CN201810686163.8A2018-06-282018-06-28 Mobile terminal reverse charging management method and mobile terminalActiveCN108471476B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810686163.8ACN108471476B (en)2018-06-282018-06-28 Mobile terminal reverse charging management method and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810686163.8ACN108471476B (en)2018-06-282018-06-28 Mobile terminal reverse charging management method and mobile terminal

Publications (2)

Publication NumberPublication Date
CN108471476A CN108471476A (en)2018-08-31
CN108471476Btrue CN108471476B (en)2020-08-25

Family

ID=63259808

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810686163.8AActiveCN108471476B (en)2018-06-282018-06-28 Mobile terminal reverse charging management method and mobile terminal

Country Status (1)

CountryLink
CN (1)CN108471476B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109890072B (en)*2019-03-282023-08-15努比亚技术有限公司Terminal power saving control method and device, mobile terminal and readable storage medium
CN110545499B (en)*2019-05-162021-07-06珠海市杰理科技股份有限公司 Communication method, device and chip, device to be charged, and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2014233111A (en)*2013-05-282014-12-11日立マクセル株式会社Non-contact power transmission device, non-contact power transmission system, and non-contact power transmission method
CN107248767A (en)*2017-07-272017-10-13珠海市魅族科技有限公司Method, terminal and the storage medium of terminal room charging
CN108076218A (en)*2017-11-242018-05-25维沃移动通信有限公司A kind of charging reminding method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2014233111A (en)*2013-05-282014-12-11日立マクセル株式会社Non-contact power transmission device, non-contact power transmission system, and non-contact power transmission method
CN107248767A (en)*2017-07-272017-10-13珠海市魅族科技有限公司Method, terminal and the storage medium of terminal room charging
CN108076218A (en)*2017-11-242018-05-25维沃移动通信有限公司A kind of charging reminding method and mobile terminal

Also Published As

Publication numberPublication date
CN108471476A (en)2018-08-31

Similar Documents

PublicationPublication DateTitle
US20150123595A1 (en)Intelligent context based battery charging
CN111106635B (en)Method and device for determining charging mode
CN104866069A (en)Method and device for automatically cleaning background application program
JP2017515452A (en) Load scheduling in multiple battery devices
CN104659881B (en)Charging method and device for mobile terminal
CN107241513B (en)Charging reminding method and device, storage medium and electronic equipment
CN112153216A (en) Power early warning method and device, terminal device, and storage medium
CN104866058A (en)Method and apparatus for determining battery endurance of electronic device
CN104503276A (en)Intelligent power utilization method, device and terminal
CN106487071A (en)A kind of charging management method and terminal
CN108804294A (en)Method, apparatus, equipment and the computer readable storage medium that electricity is reminded
CN115912360B (en)Power supply control method, device, computer equipment and storage medium
CN109656349A (en)Electricity saving method, terminal and the computer readable storage medium of terminal
CN107506017A (en)Charging reminding method and device, electronic equipment and computer-readable recording medium
CN108471476B (en) Mobile terminal reverse charging management method and mobile terminal
CN113602127B (en)Charging pile energy management method and device
CN107222612B (en)Background application program closing method and device of mobile terminal
CN108736084A (en)Charging method and terminal
CN102447273A (en)Terminal and power supply method thereof
CN103837835A (en)Method and device for detecting capacity decreasing degree of mobile device battery
CN106055404A (en) A method and device for cleaning background applications
CN118838746B (en) A method, device, equipment and medium for managing electric energy of electric energy meter
CN107436410A (en)A kind of electric quantity controlling method, device, equipment and storage medium
US8438412B1 (en)System, method, and computer program for enabling an amount of multitasking for use by an operating system
CN104202478A (en)Method for automatically synchronizing data of smart phone

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp