CN111725864A - Electric quantity transfer method, electronic equipment and readable storage medium - Google Patents

Electric quantity transfer method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111725864A
CN111725864A CN202010491271.7A CN202010491271A CN111725864A CN 111725864 A CN111725864 A CN 111725864A CN 202010491271 A CN202010491271 A CN 202010491271A CN 111725864 A CN111725864 A CN 111725864A
Authority
CN
China
Prior art keywords
electric quantity
sub
equipment
information
transfer
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.)
Granted
Application number
CN202010491271.7A
Other languages
Chinese (zh)
Other versions
CN111725864B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010491271.7A priority Critical patent/CN111725864B/en
Publication of CN111725864A publication Critical patent/CN111725864A/en
Application granted granted Critical
Publication of CN111725864B publication Critical patent/CN111725864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • H02J7/0014Circuits for equalisation of charge between batteries
    • H02J7/0016Circuits for equalisation of charge between batteries using shunting, discharge or bypass circuits
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/01Head-up displays
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/01Head-up displays
    • G02B27/017Head mounted
    • G02B2027/0178Eyeglass type

Abstract

The utility model discloses an electric quantity transfer method, electronic equipment, terminal equipment and readable storage medium, which are applied to the electronic equipment, wherein the electronic equipment comprises a first sub-equipment and a second sub-equipment, and the method comprises the following steps: acquiring first electric quantity information of the first sub-equipment; acquiring second electric quantity information of the second sub-equipment; and under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition, controlling the first sub-equipment and the second sub-equipment to carry out electric quantity transfer processing, wherein the first sub-equipment is electrically connected with the second sub-equipment. The method can prolong the working time of the electronic equipment and improve the user experience.

Description

Electric quantity transfer method, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of charging technologies, and in particular, to a method and an apparatus for transferring electric quantity, an electronic device, and a computer-readable storage medium.
Background
With the continuous development of computer technology, electronic devices with various functions are widely applied to various fields of life of people, and great convenience is brought to people.
At present, when the remaining power of a sub-device in an electronic device is insufficient, the sub-device generally needs to suspend its operation and be charged by connecting a charging wire or putting it into a corresponding charging device, so that the sub-device can resume its operation. For example, for the smart glasses, independent batteries can be respectively set up on the left and right glasses legs of the smart glasses, so that the left ocular and the right ocular can be respectively provided with electric quantity support. However, in actual use, due to the difference of the use frequency of the left eyepiece and the right eyepiece of the smart glasses, or the difference of the battery power on the left temple and the right temple, the battery power on one temple is usually insufficient and the corresponding eyepiece cannot work normally, and even if the battery power on the other temple is sufficient, the smart glasses also need to be taken down and connected with a charging line or put into a corresponding charging bin for charging, so that the smart glasses can recover to work normally.
Therefore, when the current electronic equipment, especially the electronic equipment composed of two or more sub-equipment is used, there is a problem that the electric quantity can not be flexibly transferred between the sub-equipment to prolong the working time.
Disclosure of Invention
The embodiment of the disclosure provides an electric quantity transfer method, which is used for solving the problem that electric quantity transfer cannot be flexibly performed among sub-devices of electronic equipment so as to prolong the working time of the electronic equipment.
In order to solve the technical problem, the present disclosure is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides an electric quantity transferring method, which is applied to an electronic device, where the electronic device includes a first sub-device and a second sub-device, and includes: acquiring first electric quantity information of the first sub-equipment; acquiring second electric quantity information of the second sub-equipment; controlling the first sub-equipment and the second sub-equipment to perform electric quantity transfer processing under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition; wherein the first sub-device is electrically connected with the second sub-device.
In a second aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes a first sub-device and a second sub-device, and the electronic device includes: a first electric quantity information acquisition unit, configured to acquire first electric quantity information of the first sub-device; a second electric quantity information obtaining unit, configured to obtain second electric quantity information of the second sub-device; the electric quantity transfer control unit is used for controlling the first sub-equipment and the second sub-equipment to carry out electric quantity transfer processing under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition; wherein the first sub-device is electrically connected with the second sub-device.
In a third aspect, an embodiment of the present disclosure further provides a terminal device, including a processor, a memory, and a program stored on the memory and executable on the processor, where the program, when executed by the processor, implements the steps of the power transfer method in the first aspect.
In a fourth aspect, this disclosed embodiment also provides a readable storage medium, on which a program is stored, where the program, when executed by a processor, implements the steps of the power transfer method as in the first aspect.
In the embodiment of the disclosure, after the first electric quantity information of the first sub-device and the second electric quantity information of the second sub-device are respectively obtained, a user does not need to perform manual operation, and the first sub-device and the second sub-device can be automatically controlled to perform electric quantity transfer processing only under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition, so that the working duration of the sub-devices in the electronic device can be conveniently prolonged.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of an electric quantity transferring method provided in an embodiment of the present disclosure.
Fig. 2 is a schematic structural diagram of smart glasses provided in an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of another smart glasses provided in the embodiments of the present disclosure.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of another electronic device provided in the embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The embodiment provides an electric quantity transfer method which can be applied to electronic equipment comprising a first sub-device and a second sub-device. Referring to the flowchart shown in fig. 1, the method includes the following steps S1100-S1300.
Step S1100, acquiring first electric quantity information of the first sub-device.
Step S1200, obtaining second electric quantity information of the second sub-device.
In this embodiment, the first sub-device and the second sub-device are both rechargeable electronic devices, and are electrically connected to each other to implement power transfer processing, where the rechargeable electronic devices may be electronic devices that are wired and charged through a charging wire, or electronic devices that are wirelessly charged through a wireless charging manner, and are not particularly limited herein; of course, the first sub-device and the second sub-device may be electrically connected in a direct or indirect manner, for example, the first sub-device and the second sub-device may be electrically connected through a connector, and the connector may specifically be a connector including a charging network such as VBUS and GND; in addition, in order to enable the electronic devices to conveniently and directly acquire the residual electric quantity of the other party, the connection piece may further include a network for serial port communication, such as I2C (Inter-Integrated Circuit), a network for identification and authentication, such as Identity Document (Identity Document) identification, and other networks for direct communication between the electronic devices; of course, as the technology continues to advance, networks of other functions may also be integrated into the connectors, and will not be described in detail here.
Please refer to fig. 2, which is a schematic structural diagram of a pair of smart glasses according to an embodiment of the present disclosure. As shown in fig. 2, the first sub-device and the second sub-device may be a left eyepiece and a right eyepiece of the smart glasses, respectively, where the left eyepiece and the right eyepiece may provide the same function for a user, or may independently provide different functions for the user; the left eyepiece and the right eyepiece are electrically connected by a connector, that is, a nose pad of the smart glasses is fixedly connected, and the nose pad includes a functional network for performing power transfer and communication processing, such as VBUS, GND, a serial communication I2C network, and an ID identification network.
In this embodiment, the electronic device is taken as the smart glasses, the first sub-device and the second sub-device are respectively a left eyepiece and a right eyepiece of the smart glasses, and the connecting piece is a nose pad of the smart glasses, which is taken as an example to illustrate the power transfer method provided by this embodiment; of course, in specific implementation, the method may also be applied to other electronic devices, for example, the method may also be applied to electronic devices such as an earphone device or a sound box device connected through a connecting component, and details are not described here.
The first electric quantity information and the second electric quantity information are respectively used for representing the remaining electric quantity of the first sub-device and the remaining electric quantity of the second sub-device, and both the first electric quantity information and the second electric quantity information are numerical values with numerical content not greater than 1, for example, the electric quantity information may be 30%, that is, the remaining electric quantity of the sub-device may be represented in a percentage form; of course, in specific implementation, the remaining power of the sub-device may also be represented in other forms, which is not described herein again.
It should be noted that the method for transferring power provided by this embodiment may be applied to the first sub-device, the second sub-device, or another sub-device that can perform communication processing with the first sub-device and the second sub-device, for example, the method may be applied to a left eyepiece or a right eyepiece of smart glasses, or may be applied to a nose pad of the smart glasses, or may be applied to a charging chamber of the smart glasses. In addition, the method may also be applied to an electronic device including at least two sub-devices, that is, the "first" and the "second" in this embodiment are relative descriptions, and do not refer to a certain sub-device in the electronic device. In specific implementation, the electronic device applying the method determines whether the power transfer condition between the first sub-device and the second sub-device is satisfied by respectively obtaining the power information of the first sub-device and the second sub-device, and details are not repeated herein because of detailed descriptions on how to obtain the power information of the electronic device in the prior art.
Step 1300, controlling the first sub-device and the second sub-device to perform power transfer processing when the first power information and the second power information satisfy a first preset power transfer condition.
After the first electric quantity information of the first sub-device and the second electric quantity information of the second sub-device are respectively obtained in steps S1100 and S1200, whether electric quantity transfer processing is satisfied between the first sub-device and the second sub-device can be judged according to the first electric quantity information and the second electric quantity information.
In this embodiment, two ways of triggering the power transfer process between the sub-devices of the electronic device are provided, the first way is to manually trigger the power transfer process between the sub-devices by a user, and the second way is to automatically trigger the power transfer process between the sub-devices. Corresponding to the above two manners, the present embodiment further provides four electric quantity transfer conditions for determining whether the sub-devices meet the requirement of starting or stopping the electric quantity transfer process, which are a first preset electric quantity transfer condition corresponding to the first manner and used for representing that the sub-devices can start to perform the electric quantity transfer process, a second preset electric quantity transfer condition corresponding to the first preset electric quantity transfer condition and used for representing that the sub-devices can stop to perform the electric quantity transfer process, a third preset electric quantity transfer condition corresponding to the second manner and used for representing that the sub-devices can start to perform the electric quantity transfer process, and a fourth preset electric quantity transfer condition corresponding to the third preset electric quantity transfer condition and used for representing that the sub-devices can stop to perform the electric quantity transfer process, and will be described in detail below.
In particular, in order to enhance the user experience, the power transfer process between the sub-devices of the electronic device may be manually triggered by the user, specifically, a prompt message for indicating that the device is low power may be sent to the user from the sub-device, or the user actively triggers the remaining power information of the sub-device display or play device, or the user sends power transfer indication information to the sub-device of the electronic device according to actual needs after the user checks the remaining power information of the sub-device through a display device connected with the sub-device, after the sub-device of the electronic device receives the power transfer instruction information sent by the user, it needs to first judge whether the sub-device and other sub-devices meet a first preset power transfer condition, and under the condition that the first preset electric quantity transfer condition is met, electric quantity transfer processing can be carried out among the sub-devices of the electronic equipment.
Corresponding to the first manner, in the case that the first electric quantity information and the second electric quantity information satisfy a first preset electric quantity transfer condition, the controlling the first sub-device and the second sub-device to perform electric quantity transfer processing may specifically include: determining a target charging device and a target power supply device according to the first electric quantity information and the second electric quantity information under the condition that the absolute value of the difference value of the first electric quantity information and the second electric quantity information is larger than or equal to a first threshold value; and controlling the target power supply equipment to charge the target charging equipment. Before controlling the target power supply device to charge the target charging device, the method further includes: receiving electric quantity transfer indicating information, wherein the electric quantity transfer indicating information comprises target transfer electric quantity.
That is, the absolute value of the difference between the first electric quantity information and the second electric quantity information may be obtained first; and determining a target charging device and a target power supply device in the sub-devices of the electronic device according to the absolute value of the difference, wherein the target power supply device may generally be the sub-device with a relatively high remaining capacity represented by the capacity information thereof, and the target charging device may generally be the sub-device with a relatively low remaining capacity represented by the capacity information thereof. After the target charging equipment and the target power supply equipment are determined, after electric quantity transfer indication information sent by the triggering operation of the user is received, the target power supply equipment can be controlled to charge the target charging equipment, so that the working time of the target charging equipment is automatically supplemented, the user operation is reduced, and the user experience is improved.
Using intelligent glasses as an example, in practice, the user can acquire the residual capacity of left eyepiece and right eyepiece through the electric quantity information that sound or left eyepiece and right eyepiece show, perhaps can be after receiving the low-power prompt message that left eyepiece or right eyepiece sent, carry out the electric quantity transfer processing between manual trigger left eyepiece and the right eyepiece.
For example, the first threshold is set to be 20%, when the first electric quantity information acquired to the left eyepiece is 20% and the second electric quantity information acquired to the right eyepiece is 60%, the absolute value of the difference between the acquired first electric quantity information and the acquired second electric quantity information is | 20% -60% | which is 40%, and the absolute value of the difference is greater than the first threshold 20%, it may be determined that the first sub-device and the second sub-device satisfy the first preset electric quantity transfer condition, and the left eyepiece may be determined as the target charging device, and the right eyepiece is determined as the target charging device, at this time, after the electric quantity transfer indication information is received, the target power supply device may be controlled, that is, the right eyepiece charges the target charging device, that is, the left eyepiece charges, so as to prolong the working time of the left eyepiece. It should be noted that, in this embodiment, the first threshold is 20%, and in specific implementation, the threshold may also be set to other values, which is not described herein again.
In addition, in specific implementation, in order to ensure the electric quantity of the target power supply device, so as to ensure that the target power supply device can still continuously operate after charging the target charging device, it may be further configured to determine whether the electric quantity information of the target power supply device is greater than or equal to a second threshold value when the first sub-device and the second sub-device meet the first preset electric quantity transfer condition, and control the target power supply device to charge the target charging device when the electric quantity information of the target power supply device is greater than or equal to the second threshold value, where the second threshold value may be a numerical value used to represent that the remaining electric quantity of the sub-device is a low electric quantity.
Here, still taking the smart glasses as an example, for example, the first threshold is set to be 20%, the second threshold is set to be 15%, when the first electric quantity information obtained from the left eyepiece is 20% and the second electric quantity information obtained from the right eyepiece is 60%, at this time, when the absolute value of the difference between the first electric quantity information and the second electric quantity information obtained is greater than 20%, it may be determined that the first sub-device and the second sub-device satisfy the first preset electric quantity transfer condition, and the left eyepiece is determined as the target charging device, and the right eyepiece is determined as the target power supply device; meanwhile, the electric quantity information of the right ocular is also larger than a second threshold value, and at the moment, the right ocular can be controlled to charge the left ocular. In this embodiment, the second threshold corresponding to the sub-device is 15%, and in specific implementation, the threshold may also be set to other values, or second thresholds with different values may also be set for the sub-devices in the electronic device, which is not described herein again.
Of course, in order to ensure the electric quantity of the target power supply device, the electric quantity transfer instruction information may further include a target transfer electric quantity, that is, the electric quantity to be transferred to the target charging device, where the target transfer electric quantity may be set or be a default value when the user sends the electric quantity transfer instruction information, and details are not described here.
In addition, in order to avoid the occurrence of the overcharge condition, the target power supply device may be stopped from charging the target charging device when the first sub-device and the second sub-device meet the second preset power transfer condition; wherein the second preset electric quantity transfer condition includes at least one of: the residual capacity of the target power supply equipment is less than or equal to a second threshold value; the remaining capacity of the target charging device is greater than or equal to a third threshold. In this embodiment, the third threshold may be a threshold for characterizing that the remaining power of the sub-device is a high power, corresponding to the second threshold, that is, the third threshold is generally larger than the second threshold.
Here, still taking the smart glasses as an example for explanation, in practice, when the left eyepiece or the right eyepiece of the smart glasses receives the electric quantity transfer instruction information sent by the user trigger operation, and the left eyepiece and the right eyepiece meet the first preset electric quantity transfer condition, the eyepiece determined to be the target power supply device may transfer at least a part of the electric quantity to the eyepiece determined to be the target charging device; in the process of carrying out electric quantity transfer processing on the left ocular and the right ocular, when the electric quantity transfer stopping indication information is received, or the residual electric quantity of the target power supply equipment is smaller than or equal to a second threshold value, or the residual electric quantity of the target charging equipment is larger than or equal to a third threshold value, the electric quantity transfer processing can be stopped between the left ocular and the right ocular.
For example, setting the second threshold value of the left eyepiece and the second threshold value of the right eyepiece to be 15%, setting the third threshold value to be 80%, when the first electric quantity information of the left eyepiece is 20% and the second electric quantity information of the right eyepiece is 96%, judging to obtain that the left eyepiece is a target charging electronic device and the right eyepiece is a target power supply device, and meeting a first preset electric quantity transfer condition between the left eyepiece and the right eyepiece, so as to prolong the working time of the intelligent glasses and avoid the problem that the intelligent glasses need to pause to work for charging due to low electric quantity of the left eyepiece, and after receiving electric quantity transfer indication information sent by a user, the right eyepiece can transfer at least a part of electric quantity to the left eyepiece; and at the in-process of electric quantity transfer, be not more than 15% when the residual capacity of right eyepiece, or after receiving the stop electric quantity transfer instruction information that the user sent, perhaps the residual capacity of left eyepiece is more than or equal to 80% again, just can stop right eyepiece and charge to the eyepiece left. Of course, in specific implementation, the third threshold may also be set according to needs, and is not particularly limited herein.
It should be noted that, in this embodiment, only the three determination conditions for stopping the power transfer process are provided for the first trigger mode, and in a specific implementation, other determination conditions for stopping the power transfer process may be set, which is not described herein again.
In the above, how to control the first sub-device and the second sub-device to perform the power transfer processing in the first trigger mode is described in detail, and in the following, how to control the first sub-device and the second sub-device to perform the power transfer processing in the second trigger mode is described in detail.
In order to reduce user operations and balance the power among the electronic devices, the power transfer process may be automatically performed between the sub-devices of the electronic devices, and specifically, in this embodiment, when the first sub-device and the second sub-device satisfy a third preset power transfer condition, the sub-device determined as the target power supply device may be controlled to charge the sub-device determined as the target charging device, specifically, the sub-device may be: determining a target power supply device and a target charging device according to first electric quantity information and second electric quantity information under the condition that the absolute value of the difference value between the first electric quantity information and the second electric quantity information is greater than or equal to a first threshold value and the residual electric quantities of the first sub-device and the first sub-device are both greater than or equal to a fourth threshold value; and controlling the target power supply equipment to charge the target charging equipment, wherein the fourth threshold is a threshold used for representing that the residual electric quantity of the sub-equipment is the medium electric quantity.
It should be noted that, in this embodiment, the first threshold is greater than the second threshold and smaller than the fourth threshold, and the fourth threshold is smaller than the third threshold.
Here, still taking the smart glasses as an example, in practice, the sub-device of the electronic device may obtain the power information of the sub-device through a built-in power meter function, and send the power information to the sub-device, which has an association relationship with the sub-device and is used for implementing the power transfer method provided in this embodiment, in order to avoid reducing user operations, power transfer may be automatically performed between the electronic devices to balance remaining power among each other, so as to prolong a working time of the electronic devices and improve user experience.
For example, the first threshold value of the left eyepiece and the right eyepiece is set to be 30%, the second threshold value is set to be 15%, the fourth threshold value is set to be 40%, when the first electric quantity information obtained from the left eyepiece is 50%, and the second electric quantity information obtained from the right eyepiece is 81%, the absolute value of the difference between the first electric quantity information and the second electric quantity information is used, that is, | 50% -81% | 31% can be greater than the first threshold value by 30%, and meanwhile, the remaining electric quantity of the left eyepiece and the right eyepiece is not less than the fourth threshold value by 40%, so that it can be determined that a third preset electric quantity transfer condition for performing automatic electric quantity transfer processing is satisfied between the left eyepiece and the right eyepiece, and it can be determined that the left eyepiece is a target charging device and the right eyepiece is a target power supply device, at this time, the right eyepiece can be controlled to automatically charge the left eyepiece, so as to prolong the. It should be noted that, in this embodiment, the first threshold of the first sub-device and the first threshold of the second sub-device are 30%, and the fourth threshold is 40%, and in specific implementation, it is needless to say that the first threshold and the fourth threshold may be set to other values, or different fourth thresholds may be set for the first sub-device and the second sub-device according to needs, and details are not described here.
In specific implementation, in order to avoid the situation of excessive power transfer, in the second triggering manner, the target power supply device may stop charging the target charging device when the first sub-device and the second sub-device meet a fourth preset power transfer condition; wherein the fourth preset electric quantity transfer condition includes at least one of: the residual capacity of the target power supply equipment is less than or equal to the fourth threshold; the remaining capacity of the target charging device is less than or equal to the fourth threshold; the remaining capacity of the target power supply device is equal to the remaining capacity of the target charging device.
Here, still taking the smart glasses as an example for explanation, in practice, due to the difference in the use frequency of the left eyepiece and the right eyepiece or the difference in the battery capacity corresponding to the left eyepiece and the right eyepiece, there may be a situation where one of the two eyepieces consumes more electric power and the other consumes less electric power, in order to equalize the electric power between the left eyepiece and the right eyepiece, so as to integrally extend the working time of the smart glasses and improve the user experience, and in the case where the third preset electric power transfer condition is satisfied between the left eyepiece and the right eyepiece, the eyepiece determined as the target power supply device transfers at least a part of the electric power to the eyepiece determined as the target charging device; in the process of carrying out the electric quantity transfer processing at left eyepiece and right eyepiece, when the residual capacity of high-power quantity eyepiece is less than or equal to the fourth threshold value, or the residual capacity of low-power quantity eyepiece is less than or equal to the fourth threshold value, or, the residual capacity of high-power quantity eyepiece and the residual capacity of low-power quantity eyepiece are equal, just can stop carrying out the electric quantity transfer processing between left eyepiece and the right eyepiece.
For example, setting a first threshold value of the left ocular and the right ocular to be 30%, a second threshold value of the left ocular and the right ocular to be 15%, a fourth threshold value of the right ocular to be 40%, first electric quantity information of the left ocular to be 50%, and second electric quantity information of the right ocular to be 81%, wherein the left ocular is a target charging device, the right ocular is a target power supply device, and the third preset electric quantity transfer condition is met between the left ocular and the right ocular; at this moment, the right eyepiece can charge for the left eyepiece automatically to in-process that charges carries out, when the residual capacity of left eyepiece or right eyepiece is less than or equal to 40%, perhaps, the residual capacity of left eyepiece and the residual capacity of right eyepiece are equal, just can stop right eyepiece and charge to the left eyepiece.
In the above, how to control the first sub-device and the second sub-device to perform the power transfer processing in different triggering manners is described in detail, it should be noted that, in the specific implementation, the power transfer processing between the sub-devices may also be performed by using other methods according to specific needs, and details are not described here.
As can be seen from the above description, the power transfer method provided in this embodiment can balance the remaining power between the first sub-device and the second sub-device, or can transfer the power of the sub-device with a large remaining power to the low-power sub-device with a high user frequency according to the user requirement, so as to prolong the operating time of the electronic device and improve the user experience.
It should be noted that, in fig. 2, the above-mentioned power transfer method is described by taking an example that the left eyepiece and the right eyepiece are fixedly connected, that is, the first electronic device and the second electronic device are fixedly connected, and in a specific implementation, in order to further extend the operating time of the electronic device, the power transfer method provided in this embodiment may also be applied to sub devices electrically connected in a detachable connection manner.
Please refer to fig. 3, which is a schematic structural diagram of another smart glasses according to an embodiment of the present disclosure. As shown in fig. 3, the left eyepiece and the right eyepiece of the smart glasses can be detachably connected with the nose pad of the smart glasses at the connection position shown in fig. 3, for example, connected in a manner of plugging, magnetic attraction, etc., that is, the first sub-device and the second sub-device are electrically connected in a detachable connection manner, when the power transfer method provided by this embodiment is applied to the electronic device electrically connected in a detachable manner shown in fig. 3, a user can control the power of the sub-device with more remaining power to be transferred to the sub-device with higher usage frequency or with lower remaining power that needs to be used currently, and after the power transfer process is completed, the high-power sub-device with the transferred power is detached to be connected to a charging line or put into a charging bin for charging, so as to prolong the working duration of the electronic device, that at least one sub-device can continue to provide services for the user, the effect of further improving the user experience is achieved.
Here, the smart glasses shown in fig. 3 are taken as an example for explanation, for example, the low power thresholds of the left eyepiece and the right eyepiece are both set to be 15%, the first power information of the left eyepiece is 20%, and the second power information of the right eyepiece is 60%, and according to the above description, the first preset power transfer condition is satisfied between the left eyepiece and the right eyepiece, and when the user needs to use the function provided by the left eyepiece, the user can control to transfer the power of the right eyepiece to the left eyepiece, so that the left eyepiece can continue to provide services; simultaneously, after accomplishing the electric quantity transfer and handling, the user can take off the right eyepiece that does not need to use for a while to connect the charging wire or put into the storehouse that charges, thereby can prolong intelligent glasses's operating time length, when avoiding taking off whole intelligent glasses and charging, intelligent glasses that bring can not continue to provide service for the user, influence user experience's problem.
It should be further noted that, in the above description, the manner of triggering the electric quantity transfer processing between the two electronic devices provided in this embodiment is separately described, and in specific implementation, the two manners may also be used in combination, that is, the electric quantity transfer processing between the electronic devices may be triggered manually by a user, or may also be performed automatically according to needs, and details are not described here again.
According to the above description, after the first electric quantity information of the first sub-device and the second electric quantity information of the second sub-device are respectively obtained, the electric quantity transfer method provided by the application does not need manual operation by a user, and can automatically control the first sub-device and the second sub-device to perform electric quantity transfer processing only under the condition that the first electric quantity information and the second electric quantity information meet the first preset electric quantity transfer condition, so that the working time of the sub-devices in the electronic device can be conveniently prolonged; especially, when the first sub-device and the second sub-device are connected in a detachable connection mode, the working time of the sub-device with high use frequency can be further prolonged, and the effect of increasing user experience is achieved.
Corresponding to the foregoing method embodiment, this embodiment further provides an electronic device, where the electronic device includes a first sub-device and a second sub-device, and the electronic device includes:
and the first electric quantity information acquisition unit is used for acquiring the first electric quantity information of the first sub-equipment.
And the second electric quantity information acquisition unit is used for acquiring the second electric quantity information of the second sub-equipment.
The electric quantity transfer control unit is used for controlling the first sub-equipment and the second sub-equipment to carry out electric quantity transfer processing under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition;
wherein the first sub-device is electrically connected with the second sub-device.
Optionally, the power transfer control unit includes:
the device determination subunit is configured to determine, when an absolute value of a difference between the first power amount information and the second power amount information is greater than or equal to a first threshold, a target charging device and a target power supply device according to the first power amount information and the second power amount information;
and the electric quantity transferring subunit is used for controlling the target power supply equipment to charge the target charging equipment.
Optionally, the electronic device further includes:
the device comprises an indication information receiving unit, a power transfer unit and a power transfer unit, wherein the indication information receiving unit is used for receiving power transfer indication information which comprises target transfer power;
the power transfer control unit is specifically configured to control the target power supply device to charge the target charging device according to the power transfer instruction information.
Optionally, the electronic device further includes:
the electric quantity transfer stopping unit is used for stopping the target power supply equipment from charging the target charging equipment when a second preset electric quantity transfer condition is met;
wherein the second preset electric quantity transfer condition includes at least one of:
the residual capacity of the target power supply equipment is less than or equal to a second threshold value;
the residual capacity of the target charging equipment is greater than or equal to a third threshold value;
and receiving indication information for stopping electric quantity transfer.
The electronic device provided by the embodiment of the disclosure can implement each process of the power transfer method in the above method embodiments, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present disclosure:
the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiments of the present disclosure, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, and the like.
The processor 110 is configured to obtain first power information of the first sub-device; acquiring second electric quantity information of second sub-equipment; controlling the first sub-equipment and the second sub-equipment to perform electric quantity transfer processing under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition; wherein the first sub-device is electrically connected with the second sub-device.
It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 101 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. 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 (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 4, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
The embodiment of the present disclosure further provides a terminal device, as shown in fig. 5, which includes a processor 110, a memory 109, and a program stored on the memory 109 and executable on the processor 110, and when the program is executed by the processor 110, the method of transferring power according to any one of the above method embodiments is implemented.
The embodiments of the present disclosure further provide a readable storage medium, where a program is stored on the computer readable storage medium, and when the program is executed by a processor, the method implements the steps of the power transfer method in any of the above embodiments of the method, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.

Claims (10)

1. An electric quantity transfer method is applied to electronic equipment, the electronic equipment comprises a first sub-device and a second sub-device, and the method is characterized by comprising the following steps:
acquiring first electric quantity information of the first sub-equipment;
acquiring second electric quantity information of the second sub-equipment;
controlling the first sub-equipment and the second sub-equipment to perform electric quantity transfer processing under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition;
wherein the first sub-device is electrically connected with the second sub-device.
2. The method according to claim 1, wherein the controlling the first sub-device and the second sub-device to perform the power transfer process when the first power information and the second power information satisfy a first preset power transfer condition includes:
determining a target charging device and a target power supply device according to the first electric quantity information and the second electric quantity information under the condition that the absolute value of the difference value of the first electric quantity information and the second electric quantity information is larger than or equal to a first threshold value;
and controlling the target power supply equipment to charge the target charging equipment.
3. The method of claim 2, wherein prior to the step of controlling the target power supply device to charge the target charging device, the method further comprises:
receiving electric quantity transfer indicating information, wherein the electric quantity transfer indicating information comprises target transfer electric quantity;
the controlling the target power supply device to charge the target charging device includes:
and controlling the target power supply equipment to charge the target charging equipment according to the electric quantity transfer indication information.
4. The method of claim 3, further comprising: when a second preset electric quantity transfer condition is met, stopping charging the target charging equipment by the target power supply equipment;
wherein the second preset electric quantity transfer condition includes at least one of:
the residual capacity of the target power supply equipment is less than or equal to a second threshold value;
the residual capacity of the target charging equipment is greater than or equal to a third threshold value;
and receiving indication information for stopping electric quantity transfer.
5. The method of claim 1, wherein the electronic device is smart glasses, and the first and second sub-devices are left and right eyepieces of the smart glasses, respectively;
the left ocular and the right ocular are detachably connected; alternatively, the first and second electrodes may be,
the intelligent glasses further comprise a connecting piece, the connecting piece is the nose support of the intelligent glasses, the nose support is respectively connected with the left ocular and the right ocular in a detachable mode, and the left ocular and the right ocular are connected through the nose support in an electric mode.
6. An electronic device comprising a first sub-device and a second sub-device, the electronic device comprising:
a first electric quantity information acquisition unit, configured to acquire first electric quantity information of the first sub-device;
a second electric quantity information obtaining unit, configured to obtain second electric quantity information of the second sub-device;
the electric quantity transfer control unit is used for controlling the first sub-equipment and the second sub-equipment to carry out electric quantity transfer processing under the condition that the first electric quantity information and the second electric quantity information meet a first preset electric quantity transfer condition;
wherein the first sub-device is electrically connected with the second sub-device.
7. The electronic device of claim 6, wherein the power transfer control unit comprises:
the device determination subunit is configured to determine, when an absolute value of a difference between the first power amount information and the second power amount information is greater than or equal to a first threshold, a target charging device and a target power supply device according to the first power amount information and the second power amount information;
and the electric quantity transferring subunit is used for controlling the target power supply equipment to charge the target charging equipment.
8. The electronic device of claim 7, further comprising:
the electric quantity transfer stopping unit is used for stopping the target power supply equipment from charging the target charging equipment when a second preset electric quantity transfer condition is met;
wherein the second preset electric quantity transfer condition includes at least one of:
the residual capacity of the target power supply equipment is less than or equal to a second threshold value;
the residual capacity of the target charging equipment is greater than or equal to a third threshold value;
and receiving indication information for stopping electric quantity transfer.
9. A terminal device comprising a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the power transfer method according to any one of claims 1 to 5.
10. A readable storage medium, on which a program is stored, which when executed by a processor implements the steps of the power transfer method according to any one of claims 1 to 5.
CN202010491271.7A 2020-06-02 2020-06-02 Electric quantity transfer method, electronic equipment and readable storage medium Active CN111725864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010491271.7A CN111725864B (en) 2020-06-02 2020-06-02 Electric quantity transfer method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010491271.7A CN111725864B (en) 2020-06-02 2020-06-02 Electric quantity transfer method, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111725864A true CN111725864A (en) 2020-09-29
CN111725864B CN111725864B (en) 2022-06-24

Family

ID=72565554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010491271.7A Active CN111725864B (en) 2020-06-02 2020-06-02 Electric quantity transfer method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111725864B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023071197A1 (en) * 2021-10-29 2023-05-04 宁德时代新能源科技股份有限公司 Battery pack charging control method and apparatus, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106125878A (en) * 2016-06-13 2016-11-16 联想(北京)有限公司 A kind of charging method and electronic equipment
US20190103899A1 (en) * 2017-09-29 2019-04-04 Samsung Electronics Co., Ltd. Method and device for communication between electronic devices
CN109688502A (en) * 2018-12-29 2019-04-26 联想(北京)有限公司 Control method, device and equipment
CN110060680A (en) * 2019-04-25 2019-07-26 Oppo广东移动通信有限公司 Electronic equipment exchange method, device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106125878A (en) * 2016-06-13 2016-11-16 联想(北京)有限公司 A kind of charging method and electronic equipment
US20190103899A1 (en) * 2017-09-29 2019-04-04 Samsung Electronics Co., Ltd. Method and device for communication between electronic devices
CN109688502A (en) * 2018-12-29 2019-04-26 联想(北京)有限公司 Control method, device and equipment
CN110060680A (en) * 2019-04-25 2019-07-26 Oppo广东移动通信有限公司 Electronic equipment exchange method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023071197A1 (en) * 2021-10-29 2023-05-04 宁德时代新能源科技股份有限公司 Battery pack charging control method and apparatus, electronic device and storage medium

Also Published As

Publication number Publication date
CN111725864B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN107734614B (en) Wi-Fi antenna control method, mobile terminal and computer readable storage medium
CN107546808B (en) Charging identification circuit, identification method and terminal equipment
CN107979138B (en) Wireless charging control method and device
CN107767839B (en) Brightness adjusting method and related product
CN108135033B (en) Bluetooth connection method and mobile terminal
EP3930138B1 (en) Charging control circuit, terminal device and control method
CN108362304B (en) Data processing method and mobile terminal
CN109962514B (en) Charging method and mobile terminal
CN109995110B (en) Connector, electronic equipment, data transmission method and device
CN107834640B (en) Charging method and terminal
CN107785961B (en) Series battery charging method, mobile terminal and computer readable medium
CN108600557B (en) Screen on-off control method and mobile terminal
CN110891217B (en) Earphone, earphone control method and electronic equipment
EP3934056A1 (en) Terminal and wireless charging control method
CN109739394B (en) SAR value processing method and mobile terminal
CN108282000A (en) Wireless charging method, wireless transmitter, wireless charging receiving terminal and adapter
CN111106821A (en) Touch control method and wearable device
CN108448177B (en) Charging method and terminal
CN111725864B (en) Electric quantity transfer method, electronic equipment and readable storage medium
CN111182215B (en) Power supply device of separable camera module
CN111293744B (en) Charging method, charging device, electronic device, and medium
CN112803523A (en) Charging power regulation and control method, device and computer readable storage medium
CN108595352B (en) Protection method and device for mobile terminal
CN107769324B (en) Charging method, charger, mobile terminal and server

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
GR01 Patent grant
GR01 Patent grant