Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The charging power adjustment method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The following description will be made of the term "power delivery management (PD) adapter" appearing in the embodiments of the present application:
the PD adapter is a power adapter with PD protocol. The PD charging protocol is a Power transmission protocol published by a USB-IF organization, and a USB Power transmission (USB-Power Delivery) can increase the Power value output by a type-c interface to 100W.
USB-Power Delivery is one of the mainstream fast charging protocols, is a fast charging specification established by the USB-IF organization, and the USB PD adapter increases Power transmission through a USB cable and a connector to expand the Power supply capacity of a cable bus in USB application. The rapid charging specification can realize higher voltage and current, the transmitted power can reach 100W at most, and the transmission direction of the power can be freely changed.
From the function definition point of view, the core function of the PD adapter is PD quick charging.
The charging power adjusting method provided by the embodiment of the application can be applied to a scene that a power adapter charges a plurality of electronic devices at the same time.
For a scenario in which a power adapter charges a plurality of electronic devices simultaneously, it is assumed that the power adapter including 5 charging ports charges 3 electronic devices (electronic device 1, electronic device 2, and electronic device 3, respectively) simultaneously, and in the related art, a power value output by each port of the power adapter is preset in advance, so that the power adapter charges each electronic device according to the preset output power, for example, the output power preset by port 1 is a, and the power adapter charges electronic device 2 and electronic device 3 with power value a as electronic device 1 of port 1, and similarly, the power adapter charges electronic device 2 and electronic device 3 according to the output power preset by corresponding ports of electronic device 2 and electronic device 3 in advance. In the above process, the actual outputable power value of the power adapter is usually much larger than the sum of the powers preset in advance for the 3 ports, but since the output power value of the power adapter is preset in advance, the process of outputting the power is limited, which in turn wastes a large amount of available output power of the adapter, and reduces the efficiency of the electronic device in performing the charging task.
In this embodiment of the present application, when a power adapter is connected to 3 electronic devices, the power adapter receives 3 power request messages of the 3 electronic devices (one power request message is sent to the power adapter by one electronic device connected to the power adapter), and then, the power adapter determines a charging power allocation policy of the 3 electronic devices according to a sum of powers indicated by the 3 power request messages and a rated power value of the power adapter, and finally, the power adapter allocates charging power to the 3 electronic devices according to the charging power allocation policy. Therefore, the power adapter can determine the final power value distributed to each electronic device according to the sum of the actual powers of all the electronic devices, so that the output power of the power adapter can be utilized to the maximum extent on the premise of ensuring the reliability of the power adapter, and the efficiency of the electronic devices for executing charging tasks is improved.
The present embodiment provides a charging power adjustment method, as shown in fig. 1, the charging power adjustment method includes the following steps 301 to 303:
step 301: when M electronic devices are connected to a power adapter, the power adapter receives M pieces of power request information transmitted from the M electronic devices.
Wherein M is a positive integer.
In the embodiment of the present application, an electronic device to which power request information is connected is transmitted to the power adapter.
In this embodiment of the application, after the electronic device is connected to the port of the electronic device adapter, the electronic device sends power request information to the electronic device to request the power adapter to allocate power to the electronic device, so as to execute a charging task.
In the embodiment of the present application, the power value of the power requested by different power request information for power adapter allocation may be the same or different.
In this embodiment, the power adapter may include N ports, where N is greater than or equal to M.
In this embodiment, the power adapter may be a PD adapter, and the power adapter port may be a USB interface.
Step 302: and the power adapter determines a charging power distribution strategy according to the sum of the powers indicated by the M pieces of power request information and the rated power value of the power adapter.
In this embodiment of the application, after receiving M powers indicated by M power request messages, the power adapter may calculate a sum of the M powers, and determine a charging power allocation policy according to a magnitude relationship between the sum and a rated power value of the power adapter.
It is to be understood that when the sum is greater than the rated power value of the power adapter, the power adapter needs to appropriately reduce the amount of power value of the power allocated to each electronic device, and when the sum is less than or equal to the rated power value of the power adapter, the power adapter needs to allocate power to each electronic device in accordance with the power value requested in the power request information.
In one example, the power adapter may set a plurality of different charging power allocation policies in advance, and after receiving the power request information of the electronic device, determine the charging power allocation policy to be finally used when allocating power to the electronic device according to a size relationship between a power value of the power request information and a rated power value.
In another example, the power adapter may preset a determination condition of the charging power allocation policy, and after receiving the power request information of the electronic device, determine the charging power allocation policy to be finally used when allocating power to the electronic device according to the size relationship between the power value of the power request information and the rated power value and the determination condition
Step 303: and the power adapter distributes charging power to the M pieces of electronic equipment according to the charging power distribution strategy.
It is understood that the charging power allocated to the M electronic devices may be the same or different.
In the charging power adjustment method provided in the embodiment of the present application, when M electronic devices are connected to a power adapter, M power request information sent by the M electronic devices is received, then, the power adapter determines a charging power allocation policy of the M electronic devices according to a sum of powers indicated by the M power request information and a rated power value of the power adapter, and finally, the power adapter allocates charging power to the M electronic devices according to the charging power allocation policy, where M is a positive integer. Therefore, the power adapter can determine the final power value distributed to each electronic device according to the sum of the actual powers of all the electronic devices, so that the output power of the power adapter can be utilized to the maximum extent on the premise of ensuring the reliability of the power adapter, and the efficiency of the electronic devices for executing charging tasks is improved.
Optionally, in this embodiment of the present application, in the step 302, the method for adjusting charging power provided in this embodiment of the present application may further include the following steps 302a and 302 b:
step 302 a: and the power adapter determines the charging power allocation strategy to be a first charging strategy when the sum of the powers indicated by the M power request messages is less than or equal to the rated power value of the power adapter.
Illustratively, the first charging strategy is as follows: and distributing charging power to the M pieces of electronic equipment according to the power values corresponding to the M pieces of power request information.
It can be understood that, when the sum of the powers indicated by the M power request messages is less than or equal to the rated power value of the power adapter, the power adapter allocates power to each of the M electronic devices according to the power request message sent by the electronic device to the power adapter, that is, the power value of the allocated power is the power value requested in the power request message sent by the electronic device.
Illustratively, assuming that there are 3 electronic devices (i.e. M is 3) that need to be connected to the power adapter, namely, the electronic device 1, the electronic device 2, and the electronic device 3, respectively, and the power rating of the power adapter is 200W, the power adapter receives 3 power request information sent by the 3 electronic devices, the sum of the 3 power request information requests is 50W, 60W, 40W, the sum of the 3 power values is 150W, and is smaller than the power rating of the power adapter by 200W (i.e. the sum of the powers indicated by the M power request information is smaller than or equal to the power rating of the power adapter), the electronic device determines that the power is allocated according to the power value in the power request information of each electronic device, namely, the electronic device will allocate 50W to the electronic device 1, the electronic device will allocate 60W to the electronic device 2, the electronic device will allocate 40W of power to the electronic device 3.
Step 302 b: and the power adapter determines the charging power allocation policy to be a second charging policy when the sum of the powers indicated by the M power request messages is greater than the rated power value of the power adapter.
Illustratively, the second charging strategy is as follows: and distributing charging power to the M pieces of electronic equipment according to the proportional relation between the power values corresponding to the M pieces of power request information and the rated power value.
It can be understood that, when the sum of the powers indicated by the M power request information is greater than the rated power value of the power adapter, the power adapter compares the proportional relationship between the power values corresponding to the M power request information, divides the rated power value according to the proportional relationship, obtains the power value of the charging power corresponding to each electronic device, and allocates the charging power to the M electronic devices.
Exemplarily, assuming that there are 3 electronic devices (i.e. M is 3) that need to be connected to the power adapter, namely, electronic device 1, electronic device 2, and electronic device 3, respectively, and the rated power value of the power adapter is 200W, the power adapter receives 3 power request information sent by the 3 electronic devices, the sum of the 3 power request information requests is 100W, 60W, 80W, and the sum of the 3 power values is 240W, and is greater than the rated power value of the power adapter, which is 200W (i.e. the sum of the powers indicated by the M power request information is greater than the rated power value of the power adapter), the power adapter will calculate the proportional relationship between the power values requested by the 3 power request information, which are 42%, 25%, and 33%, respectively, the power adapter will divide the rated power value according to the proportional relationship, divide the rated power value into 84W, 50W and 66W, and allocates the above-mentioned divided 3 power values as power values of the charging power to 3 electronic devices, that is, the electronic device will allocate power 84W to the electronic device 1, the electronic device will allocate power 50W to the electronic device 2, and the electronic device will allocate power 66W to the electronic device 3.
Therefore, after the power adapter receives the power request information sent by the electronic equipment, the power adapter can compare the sum of the power values requested by the power request information with the rated power value which can be actually allocated by the power adapter, and allocate the maximum power of the quota to each electronic equipment according to the actually allocable upper limit, so that the power which can be allocated by the power adapter is utilized to the maximum extent on the premise of ensuring the reliability.
Optionally, in this embodiment of the present application, after the step 303, the method for adjusting charging power provided in this embodiment of the present application may further include the following steps 304 to 306:
step 304: the power adapter receives first request information sent by a target electronic device in the M electronic devices.
For example, the first request information is used to request the power adapter to adjust the charging power value allocated to the target electronic device to a target power value.
Illustratively, the first request message is a message sent to any electronic device (i.e., target electronic device) that has already been connected to the power adapter, and when the power of the currently received power adapter needs to be changed (for example, the charging power needs to be increased), the message is sent to the power adapter.
Step 305: the power adapter transmits negotiation information to the other electronic devices except the target electronic device among the M electronic devices.
Illustratively, the negotiation information is used to determine whether to allow adjustment of the charging power of the other electronic device.
For example, the negotiation information is information that the power adapter sends to the other electronic device after receiving the first request information, and queries whether the other electronic device agrees to change its charging power.
It can be understood that, if the negotiation information is respectively sent to each of the other electronic devices, the determining whether the charging power of the other electronic devices is allowed to be adjusted or not, which is indicated in the negotiation information, refers to: it is determined whether adjustment of the charging power of the one other electronic device is allowed.
Step 306: and the power adapter adjusts the charging power of the first electronic equipment under the condition of receiving the first electronic equipment determination information.
Illustratively, the other electronic devices include the first electronic device.
For example, the determination information indicates that the first electronic device allows the power adapter to adjust its charging power.
It can be understood that the charging power corresponding to different first electronic devices is different, and further, the charging power corresponding to different first electronic devices may be different whether before or after adjustment.
In one example, after receiving the first request message, the power adapter recalculates the charging power allocated to each electronic device according to the power value requested by the first request message, and informs the other electronic devices of the recalculated charging power that can be allocated to the other electronic devices in the form of negotiation message.
Firstly, the method comprises the following steps: in general, the first request message requests the power adapter to increase the charging power allocated to the electronic device, and accordingly, after increasing the allocated charging power for the electronic device, the first electronic device needs to correspondingly decrease the allocated charging power, so as to reserve the target electronic device with the portion of the charging power that needs to be increased.
Second, the specific information of the first electronic device may be some electronic devices other than the target electronic device, or may be specific information transmitted by all electronic devices other than the target electronic device.
Third, in the case where the determination information of the first electronic device is the determination information transmitted by the part of the electronic devices other than the target electronic device, in subsequent step 307 and step 308, the power adapter newly determines only the charging powers of the target electronic device and the part of the electronic devices (first electronic devices).
For example, after receiving the determination information of the first electronic device, the power adapter adjusts the charging power of the first electronic device, and specifically, the electronic device re-determines the charging power allocation policy and then allocates the charging power to the first electronic device, where the process of re-determining the charging power allocation policy may be performed with reference to the processes of step 302 to step 303.
It should be noted that, after the charging power allocation policy is re-determined, the power adapter may increase or decrease the charging power for the target electronic device, but after the charging power is increased or decreased, the adjusted charging power of the target electronic device is not necessarily the target power value. The method for determining that the target electronic device can increase or decrease the charging power by the power adapter is as follows: and comparing the size relationship between the target power value and the original power value of the target electronic equipment, if the target power value is larger than the original power value of the target electronic equipment, increasing the charging power, and if the target power value is larger than the original power value of the target electronic equipment, reducing the charging power.
Therefore, when the power adapter receives the condition that the electronic equipment needs to adjust the charging power of the power adapter, the power adapter can negotiate with other electronic equipment and flexibly adjust the charging power of all electronic equipment or part of electronic equipment, so that the power of the power adapter is flexibly and fully applied.
Optionally, in this embodiment of the present application, after the step 305, the method for adjusting charging power provided in this embodiment of the present application may further include the following step 307:
step 307: under the condition that the power adapter does not receive the determination information sent by the second electronic equipment within a preset time period, keeping the charging power of the second electronic equipment unchanged;
for example, the second electronic device is an electronic device that does not transmit the determination information to the power adapter among the other electronic devices.
For example, the predetermined time period may be preset by the electronic device or may be customized by the user, which is not limited in the embodiment of the present application.
For example, after the predetermined time period is reached, the power adapter adjusts only the charging power of the electronic device to which the determination information is transmitted, that is, adjusts only the charging power of the first electronic device.
Illustratively, as described in the above example, assuming that the electronic device 1 sends the first request message to the power adapter to request the power adapter to increase its power to 80W, at this time, the power adapter will send negotiation information to the electronic device 2 and the electronic device 3 (i.e. the other electronic devices) to inquire whether the electronic device 2 and the electronic device 3 allow to adjust the power value of the electronic device 2 and the power value of the electronic device 3 (i.e. the charging power of the other electronic devices), within 5 seconds (i.e. within the predetermined time period), the power adapter only receives the determination information of the electronic device 2 (i.e. the first electronic device) and does not receive the determination information of the electronic device 3 (i.e. the second electronic device), then the power adapter keeps the charging power of the electronic device 3 unchanged, and simultaneously adjusts the charging power of the electronic device 2 from 60W to 20W, meanwhile, the power value of the electronic device 1 is adjusted from 50W to 80W, that is, the power value of the electronic device 1 is 80W, the power value of the electronic device 1 is 20W, and the power value of the electronic device 1 is 40W.
Therefore, when the power adapter needs to adjust the power value of each electronic device according to the request of the target electronic device, each power value can be flexibly adjusted according to different requirements of different electronic devices, and the actual power requirement of each electronic device is guaranteed to the maximum extent.
Optionally, in this embodiment of the application, the adjusting the charging power of the first electronic device in the step 306 includes the following steps 306a and 306 b:
step 306 a: the power adapter calculates a first difference between a current power value of the target electronic device and the target power value.
Step 306 b: the power adapter adjusts the charging power of the first electronic device to a first charging power according to the first difference.
It is to be understood that the second difference between the first charging power and the charging power before the adjustment of the first electronic device is the same as the first difference.
The above target power value and the first electronic device may refer to the foregoing description, and are not described herein again.
For example, the second difference may be a sum of differences between all the first electronic devices and the corresponding first charging powers.
For example, 3 electronic devices, that is, the electronic device 1, the electronic device 2, and the electronic device 3 are connected to the power adapter, and the sum of the power values of the 3 electronic devices is equal to the rated power value of the power adapter. Assuming that the electronic device 1 is a target electronic device and the current power value thereof is 50W, the power adapter sends the first request message to the power adapter to request to increase the power value thereof to 70W (i.e., the target power value), the power adapter sends negotiation information to the electronic device 2 and the electronic device 3, and after receiving the determination information of the electronic device 2 and the electronic device 3 (i.e., the first electronic device), the power adapter adjusts the power values of the electronic device 2 and the electronic device 3 according to a difference value of 20W between the current power value of the target electronic device and the target power value (i.e., the first difference value), wherein the sum of the difference values between the adjusted power value of the electronic device 2 and the current power value and between the adjusted power value of the electronic device 3 and the current power value is 20W (i.e., the second difference value). For example, the charging power of the electronic device 2 may be reduced by 10W, and the charging power of the electronic device 3 may also be reduced by 10W.
It can be understood that, in the case that the target power value is greater than the current power value of the target electronic device, that is, in the case that the target electronic device needs to increase the charging power, the power adapter reduces the charging power of the first electronic device; when the target power value is smaller than the current power value of the target electronic device, that is, when the target electronic device needs to reduce the charging power, the power adapter increases the charging power of the first electronic device.
Optionally, in this embodiment of the present application, after the step 303, the method for adjusting charging power provided in this embodiment of the present application may further include the following step 308:
step 308: and the power adapter determines the charging power distribution strategy of the (M-X) electronic devices again according to the magnitude relation between the sum value of the powers indicated by the (M-X) power request information and the rated power value of the power adapter when the X electronic devices are separated from the power adapter, wherein X is a positive integer less than M.
For example, when X electronic devices are detached from the power adapter, the power adapter recovers power of the X electronic devices and manages the recovered power again.
In one example, the power adapter will recalculate the power that can be allocated to the remaining (M-X) electronic devices, i.e., the power adapter will reallocate power to the (M-X) electronic devices according to the power value requested in the power request information for the (M-X) electronic devices.
In one example, the power adapter will allocate the power of the X electronic devices to the remaining (M-X) electronic devices in a ratio of the previous power allocations of the remaining (M-X) electronic devices.
For example, the process of the power adapter re-determining the charging power distribution policy of the (M-X) electronic devices may be performed with reference to the processes of step 302 to step 303.
Therefore, when the electronic equipment is separated from the power adapter, the power adapter can timely use the power which is idle after the separation for other electronic equipment which is still charged on the power adapter, and the power which can be distributed by the power adapter can be fully utilized.
Optionally, in this embodiment of the present application, after the step 303, the method for adjusting charging power provided in this embodiment of the present application may further include the following step 309:
step 309: the power adapter transmits inquiry information to the (M-X) electronic devices when the X electronic devices are disconnected from the power adapter.
Illustratively, the query information is used to query whether the (M-X) remaining power adapters connected to the power adapter need to be increased.
Step 310: and after the power adapter receives the information which is sent by the third electronic equipment and confirms that the charging power is increased, re-determining the charging power distribution strategy of the third electronic equipment.
Illustratively, the third electronic device is an electronic device that transmits information confirming that the charging power is increased to the power adapter among the (M-X) electronic devices.
For example, the process of the power adapter re-determining the charging power distribution policy of the third electronic device may be performed with reference to the processes of step 302 to step 303.
Optionally, after the power adapter re-determines the charging power distribution policy of the third electronic device, the charging completion time length of each electronic device in the third electronic device may be determined according to the charging power distribution policy, and the completion time length information is sent to the corresponding electronic device.
It is understood that the above-described charge completion time period is a time period that it takes for each of the third electronic devices to be charged to 100%.
The present embodiment provides a charging power adjustment method, as shown in fig. 2, applied to an electronic device, the charging power adjustment method includes the following steps 401 and 402:
step 401: the electronic device transmits power request information to a power adapter connected to the electronic device.
Step 402: and the electronic equipment is charged according to the charging power distribution strategy indicated by the power adapter.
In the embodiment of the present application, the power request information and the charging power allocation policy may refer to the foregoing description, and are not described herein again.
According to the charging power adjustment method provided in the embodiment of the application, after the electronic device sends the power request information to the power adapter connected with the electronic device, the electronic device is charged according to the charging power distribution strategy indicated by the power adapter, so that the electronic device can receive different charging powers according to different charging powers required by the electronic device, and the charging efficiency of the electronic device is improved.
Optionally, in this embodiment, after the step 402, the method for adjusting charging power provided in this embodiment may further include the step 403:
step 403: the electronic equipment sends first request information to the power adapter.
For example, the first request information is used to request the power adapter to adjust the charging power value of the electronic device to a target power value.
In the embodiment of the present application, the first request information may refer to the foregoing description, and is not described herein again.
In the charging power adjustment method provided by the embodiment of the application, the power adapter can send the first request message when the electronic device needs to increase or decrease the charging power of the electronic device, so that the charging power of the power adapter is fully and flexibly utilized, and the charging efficiency is improved.
Optionally, in this embodiment, after the step 402, the method for adjusting charging power provided in this embodiment may further include the step 404 of:
step 404: and the electronic equipment executes the target operation under the condition of receiving the negotiation information sent by the power adapter.
Illustratively, the negotiation information is used to determine whether to allow adjustment of the charging power of the other electronic device, and the target operation includes: and sending determination information to the power adapter, or ignoring the negotiation information, wherein the determination information is used for determining that the power adapter is allowed to adjust the power value of the electronic equipment according to the negotiation information.
In the embodiment of the present application, the above determination information may refer to the foregoing description, and is not described herein again.
In the charging power adjustment method provided in the embodiment of the present application, when the electronic device agrees to change its own charging power for another electronic device, the determination information may be sent to the power adapter, and when the electronic device does not mean that another electronic device changes its own charging power, the negotiation information sent by the power adapter may be ignored, so that the charging power of the power adapter is fully and flexibly utilized, and the charging efficiency is improved.
Optionally, in this embodiment, before the step 404, the method for adjusting charging power provided in this embodiment may further include the following steps 405 and 406:
step 405: and the electronic equipment calculates the charging time of the electronic equipment according to the battery information.
Step 406: and the electronic equipment displays prompt information corresponding to the charging time.
On the basis of the above steps 405 and 406, in the above step 404, the charging power adjustment method provided in the embodiment of the present application may further include the following step 407:
step 407: and transmitting determination information to the power adapter when a first input of the prompt information by the user is received, or ignoring the negotiation information when a second input of the prompt information by the user is received.
Wherein the first input is different from the second input.
For example, the first input may be an input from the user to an area in the prompt message where the information confirming that the user agrees to change the self charging power is located, for example, an input from the user to a "confirm" control in the prompt message. Conversely, the second input may be a user input to the area in which the information confirming the omission of the first requested information is located, for example, a user input to an "ignore" control in the prompt.
For example, the first input may be a touch input, for example, a click input, a voice input, or an input of a special gesture, which is not limited in this application.
Illustratively, the prompt information is information for prompting the charging time.
For example, the prompt message may be one prompt message or may be a plurality of prompt messages.
It can be understood that the electronic device that needs to change its charging power may provide a plurality of changed charging powers, so that the user of the electronic device can select a charging power suitable for himself according to his charging requirement, that is, some users of the electronic device can accept a smaller change in charging power, some users of the electronic device can accept a larger change in charging power, and the user can select a change mode suitable for his charging power according to his charging requirement.
In one example, each electronic device obtains the capacity Q (in mAh) of its own battery, and after the electronic device displays the changed charging power on the display interface, each electronic device calculates the charging power, for example, I ═ Qn/T, using the duration information T of the full charge usage of the charging power, and transmits the charging power to the power adapter.
According to the charging power adjustment method provided by the embodiment of the application, after the information of the charging power distribution strategy which needs to be readjusted by the power adapter is acquired, the electronic equipment can prompt the extension duration information or the latest charging time in the display screen of the electronic equipment, so that a user of the electronic equipment can clearly know the charging duration.
Optionally, in this embodiment of the present application, before the step 403 and the step 404, the method for adjusting charging power provided in this embodiment of the present application may further include the following steps 408 to 410:
step 408: and the electronic equipment calculates P charging durations of the electronic equipment respectively corresponding to the P target power values according to the battery information and the P target power values, wherein P is a positive integer.
Step 409: and the electronic equipment respectively displays the first prompt messages corresponding to the P charging durations on a display interface.
Step 410: and the electronic equipment receives a third input of the target prompt message in the first prompt message from the user.
The above-mentioned step 403 can also be performed by a step 411,
step 411: in response to the third input, the electronic device sends first request information to the power adapter.
In this embodiment, the first request message corresponds to a target power value corresponding to the target prompt message.
It is understood that the plurality of first prompt messages correspond to corresponding different charging time length messages, that is, to a plurality of different charging power messages.
It is understood that the third input may refer to the first input and the second input, and will not be described herein.
Therefore, the electronic equipment can prompt a plurality of time saving times or charging times in a display screen of the electronic equipment according to different target power values, so that a user of the electronic equipment can clearly know the adjusted charging time length, and the target power value required to be adjusted is determined.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be noted that, in the charging power adjustment method provided in the embodiment of the present application, the execution main body may be a charging power adjustment device, or a control module in the charging power adjustment device for executing the charging power adjustment method. In the embodiment of the present application, a charging power adjustment method executed by a charging power adjustment device is taken as an example to describe the charging power adjustment device provided in the embodiment of the present application.
Fig. 3 is a schematic structural diagram of a possible charging power adjustment apparatus for implementing the charging power adjustment apparatus according to an embodiment of the present disclosure. As shown in fig. 3, the apparatus 600 includes a receiving module 601, a determining module 602, and an allocating module 603; the receiving module 601 is configured to receive M pieces of power request information sent by M pieces of electronic equipment when the M pieces of electronic equipment are connected to the power adapter; the determining module 602 is configured to determine a charging power allocation policy according to a sum of powers indicated by the M pieces of power request information received by the receiving module 601 and a rated power value of the power adapter; the allocating module 603 is configured to allocate charging power to M electronic devices according to the charging power allocation policy, where M is a positive integer.
In the charging power adjustment apparatus provided in this embodiment of the present application, when M electronic devices are connected to a power adapter, the charging power adjustment apparatus receives M power request information sent by the M electronic devices, and then determines a charging power allocation policy for the M electronic devices according to a sum of powers indicated by the M power request information and a rated power value of the power adapter, and finally allocates charging power to the M electronic devices according to the charging power allocation policy, where M is a positive integer. Therefore, the charging power adjusting device can determine the final power value distributed to each electronic device according to the sum of the actual powers of all the electronic devices, so that the output power of the power adapter can be utilized to the maximum extent on the premise of ensuring the reliability of the power adapter, and the efficiency of the electronic devices for executing charging tasks is improved.
Optionally, in an embodiment of the application, the determining module 602 is specifically configured to determine that the charging power allocation policy is a first charging policy when a sum of powers indicated by the M pieces of power request information is less than or equal to a rated power value of the power adapter, where the first charging policy is: distributing charging power to the M pieces of electronic equipment according to power values corresponding to the M pieces of power request information; the determining module 602 is specifically configured to determine that the charging power allocation policy is a second charging policy when a sum of powers indicated by the M pieces of power request information is greater than a rated power value of the power adapter, where the second charging policy is: and distributing charging power to the M pieces of electronic equipment according to the proportional relation between the power values corresponding to the M pieces of power request information and the rated power value.
Optionally, in this embodiment of the present application, the apparatus 600 further includes a sending module 604 and an adjusting module 605; the sending module 604 receives first request information sent by a target electronic device of the M electronic devices, where the first request information is used to request the power adapter to adjust a power value allocated to the target electronic device to a target power value; the sending module 604 is further configured to send negotiation information to other electronic devices, except the target electronic device, of the M electronic devices, where the negotiation information is used to determine whether to allow adjustment of charging power of the other electronic devices; the adjusting module 605 is configured to adjust the charging power of the first electronic device when receiving the determination information sent by the other electronic device; wherein, the other electronic devices include the first electronic device.
Optionally, in this embodiment of the present application, the apparatus 600 includes an executing module 606; the executing module 606 is configured to, when the determining information sent by the second electronic device is not received within the predetermined time period, keep the charging power of the second electronic device unchanged; wherein the second electronic device is an electronic device that does not send the specific information to the power adapter among the other electronic devices
Optionally, in this embodiment of the present application, the apparatus 600 further includes a calculating module 607; the calculating module 607 is configured to calculate a first difference between the current power value of the target electronic device and the target power value; the adjusting module 605 is specifically configured to adjust the charging power of the first electronic device to a first charging power according to the first difference calculated by the calculating module 607; wherein a second difference between the first charging power and the charging power before the first electronic device is adjusted is the same as the first difference.
Fig. 4 is a schematic structural diagram of a possible charging power adjustment apparatus for implementing the charging power adjustment apparatus provided in the embodiment of the present application. As shown in fig. 4, the apparatus 700 includes: a sending module 701 and an execution module 702; the sending module 701 is configured to send power request information to a power adapter connected to the electronic device; the executing module 702 is configured to perform charging according to the charging power allocation policy indicated by the power adapter.
The charging power adjusting device provided by the embodiment of the application can send target information by the power adapter under the condition that the charging power adjusting device needs to agree to change the charging power of other electronic equipment, so that the charging power of the power adapter is fully and flexibly utilized, and the charging efficiency is improved.
Optionally, in this embodiment of the application, the sending module 701 is further configured to send first request information to the power adapter, where the first request information is used to request the power adapter to adjust the charging power value of the electronic device to the target power value.
Optionally, in this embodiment of the application, the executing module 702 is configured to execute the target operation when receiving the negotiation information sent by the power adapter; wherein the negotiation information is used to determine whether to allow adjustment of the charging power of the other electronic device, and the target operation includes: and sending determination information to the power adapter, or ignoring the negotiation information, wherein the determination information is used for determining that the power adapter is allowed to adjust the power value of the electronic equipment according to the negotiation information.
Optionally, in this embodiment of the application, the apparatus 700 includes a calculating module 703 and a display module 704, and the apparatus 700 further includes the calculating module 703 and the display module 704; the calculating module 703 is configured to calculate a charging duration of the electronic device according to the battery information; the display module 704 is configured to display a prompt message corresponding to the charging duration calculated by the calculation module 703; the sending module 701 is configured to send determination information to the power adapter when receiving a first input of the prompt information by the user, or ignore the negotiation information when receiving a second input of the prompt information by the user; wherein the first input is different from the second input.
The charging power adjustment device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The charging power adjustment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The charging power adjustment device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 2, and is not described here again to avoid repetition.
As shown in fig. 3, the modules that are necessarily included in the charging power adjustment apparatus 600 are illustrated by solid line boxes, such as a receiving module 601; the modules that may or may not be included in the charging power adjustment apparatus 600 are illustrated by a dashed box, such as the transmission module 604. As shown in fig. 4, the modules that are necessarily included in the charging power adjustment apparatus 700 are illustrated by solid line boxes, such as a transmission module 701; the modules that may or may not be included in the charging power adjustment apparatus 700 are illustrated by the dashed boxes, such as the calculation module 703
Optionally, as shown in fig. 5, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the above charging power adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110. Wherein the user input unit 107 includes: touch panel 1071 and other input devices 1072, display unit 106 including display panel 1061, input unit 104 including image processor 1041 and microphone 1042, memory 109 may be used to store software programs (e.g., an operating system, application programs needed for at least one function), and various data.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source 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. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
When the electronic device 100 is a power adapter, the radio frequency unit 101 is configured to receive M power request messages sent by M electronic devices when the M electronic devices are connected to the power adapter, where one power request message is sent to the power adapter by one electronic device connected to the power adapter; a processor 110, configured to determine a charging power allocation policy according to a sum of powers indicated by the M power request messages received by the radio frequency unit 101 and a rated power value of the power adapter; the processor 110 is configured to allocate charging power to M electronic devices according to the charging power allocation policy allocated by the processor 110, where M is a positive integer.
In the power adapter provided in this embodiment of the present application, when M electronic devices are connected to the power adapter, the power adapter receives M power request messages sent by the M electronic devices, and then, the power adapter determines a charging power allocation policy for the M electronic devices according to a sum of powers indicated by the M power request messages and a rated power value of the power adapter, and finally, the power adapter allocates charging power to the M electronic devices according to the charging power allocation policy, where M is a positive integer. Therefore, the power adapter can determine the final power value distributed to each electronic device according to the sum of the actual powers of all the electronic devices, so that the output power of the power adapter can be utilized to the maximum extent on the premise of ensuring the reliability of the power adapter, and the efficiency of the electronic devices for executing charging tasks is improved.
Optionally, the processor 110 is specifically configured to determine that the charging power allocation policy is a first charging policy when a sum of powers indicated by the M pieces of power request information is less than or equal to a rated power value of the power adapter, where the first charging policy is: distributing charging power to the M pieces of electronic equipment according to power values corresponding to the M pieces of power request information; the processor 110 is specifically configured to determine, when the sum of the powers indicated by the M pieces of power request information is greater than the rated power value of the power adapter, that the charging power allocation policy is a second charging policy, where the second charging policy is: and distributing charging power to the M pieces of electronic equipment according to the proportional relation between the power values corresponding to the M pieces of power request information and the rated power value.
Optionally, the radio frequency unit 101 is further configured to receive first request information sent by a target electronic device of the M electronic devices, where the first request information is used to request the power adapter to adjust a power value allocated to the target electronic device to a target power value; the radio frequency unit 101 is further configured to send negotiation information to other electronic devices, except the target electronic device, of the M electronic devices, where the negotiation information is used to determine whether to allow adjustment of charging power of the other electronic devices; the processor 110 is further configured to adjust charging power of the first electronic device when receiving the determination information sent by the first electronic device; wherein, the other electronic devices include the first electronic device.
Optionally, the processor 110 is further configured to keep the charging power of the second electronic device unchanged when the power adapter does not receive the determination information sent by the second electronic device within the predetermined time period; the second electronic device is an electronic device that does not send the specific information to the power adapter among the other electronic devices.
Optionally, the processor 110 is specifically configured to calculate a first difference between the current power value of the target electronic device and the target power value; the processor is further specifically configured to adjust the charging power of the first electronic device to a first charging power according to the first difference; wherein a second difference between the first charging power and the charging power before the first electronic device is adjusted is the same as the first difference.
When the electronic device 100 is an electronic device, the radio frequency unit 101 is configured to send power request information to a power adapter connected to the electronic device; the processor 110 is configured to perform charging according to the charging power allocation policy indicated by the power adapter.
According to the electronic equipment provided by the embodiment of the application, after the electronic equipment sends the power request information to the power adapter connected with the electronic equipment, the electronic equipment is charged according to the charging power distribution strategy indicated by the power adapter, so that the equipment can receive different charging powers according to different charging powers required by the electronic equipment, and the charging efficiency of the electronic equipment is improved
Optionally, the radio frequency unit 101 is further configured to send first request information to the power adapter, where the first request information is used to request the power adapter to adjust the charging power value of the electronic device to the target power value.
Optionally, the processor 110 is further configured to execute a target operation when receiving the negotiation information sent by the power adapter; wherein the negotiation information is used to determine whether to allow adjustment of the charging power of the other electronic device, and the target operation includes: and sending determination information to the power adapter, or ignoring the negotiation information, wherein the determination information is used for determining that the power adapter is allowed to adjust the power value of the electronic equipment according to the negotiation information.
Optionally, the processor 110 is configured to calculate a charging duration of the electronic device according to the battery information; the display unit 106 is configured to display a prompt message corresponding to the charging duration; the radio frequency unit 101 is specifically configured to send determination information to the power adapter when receiving a first input of the prompt information by a user, or ignore the negotiation information when receiving a second input of the prompt information by the user; wherein the first input is different from the second input.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. 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. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above charging power adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the charging power adjustment method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.