Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a charging method, a charging device, and a wireless charging apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a charging method, which is applied to a wireless charging device, the method including:
when connection establishment with a plurality of terminals is detected, acquiring the current available electric quantity of each terminal;
acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area;
distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area;
setting a power distribution priority level according to the actual charging time of each terminal;
and allocating charging power for each terminal based on the power allocation priority level and the current unallocated power of the wireless charging device.
Optionally, the allocating an actual charging time to each terminal based on the current available power of each terminal and the time when each terminal leaves the tag area includes:
calculating a first charging time consumed by each terminal from the current available electric quantity to full electric quantity according to the current available electric quantity of each terminal;
and calculating the actual charging time of each terminal according to the first charging time, the current time and the time of each terminal leaving the marking area.
Optionally, the calculating, according to the current available power of each terminal, a first charging time consumed by each terminal to be charged from the current available power to a full power includes:
calculating a second charging time consumed by each terminal to be charged from a zero charge amount to a full charge amount when the charging power is evenly distributed;
and calculating the first charging time consumed by each terminal from the current available electric quantity to the full electric quantity according to the current available electric quantity of each terminal and the second charging time.
Optionally, the calculating an actual charging time of each terminal according to the first charging time, the current time, and the time when each terminal leaves the mark area includes:
for each terminal, calculating a time difference value between the time when the terminal leaves the marking area and the current time;
when the first charging time is less than or equal to the time difference value, determining the first charging time as the actual charging time of the terminal;
and when the first charging time is greater than the time difference value, determining the time difference value as the actual charging time of the terminal.
Optionally, before calculating a first charging time consumed by each terminal to be charged to a full charge from the current available charge according to the current available charge of each terminal, the method further includes:
determining the current geographic position of the wireless charging device;
acquiring marking information and marking range data input by a user;
and marking the geographic position according to the marking information and the marking range data to obtain the marking area.
Optionally, before the obtaining of the pre-counted time when each terminal leaves the tag area, the method further includes:
receiving a position change instruction, wherein the position change instruction at least comprises the time when any terminal leaves the marking area and the identity of any terminal;
according to the position change instruction, counting the time of each terminal leaving the marking area;
establishing a corresponding relation between the identity of the terminal and the time of leaving the marking area;
the acquiring of the pre-counted time for each terminal to leave the mark area includes:
and for each terminal, searching in the corresponding relation according to the identity of the terminal to obtain a time value matched with the identity, and determining the time value as the time when the terminal leaves the marking area.
Optionally, the receiving a position change instruction includes:
receiving a position change instruction sent by any terminal, wherein the position change instruction is sent by any terminal when the terminal is determined to leave the mark area according to the current position and the mark area; or,
and receiving the position change instruction sent by the router, wherein the position change instruction is sent after the router detects that any terminal is disconnected with the router, and the router and the wireless charging equipment keep wireless connection.
Optionally, the following formula is applied to calculate a first charging time consumed by each terminal when the current available electric quantity is charged to the full electric quantity according to the current available electric quantity of each terminal and the second charging time:
PT1=PT2*(1-AP)
where AP refers to the current available charge in percentage form, PT1 refers to the first charge time, and PT2 refers to the second charge time.
Optionally, the setting of the power distribution priority level according to the actual charging time of each terminal includes:
and setting the terminal with the minimum actual charging time as the highest priority, and setting the terminal with the maximum actual charging time as the lowest priority.
Optionally, based on the power allocation priority level and the current unallocated power of the wireless charging device, applying the following formula to allocate charging power to each terminal:
<math> <mrow> <mi>S</mi> <mi>i</mi> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mfrac> <mrow> <mi>T</mi> <mi>S</mi> <mi>i</mi> </mrow> <mrow> <mi>Σ</mi> <mi>T</mi> <mi>S</mi> <mi>n</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>*</mo> <mi>Z</mi> </mrow></math>
wherein Z refers to the wireless charging device's current unallocated power; Σ TSn ═ TS1+ TS2+ TS3+. + TSn, n denotes the total number of terminals connected to the wireless charging device and not distributing charging power, i is a positive integer, 0< i ≦ n, TSi denotes the actual charging time of the ith terminal connected to the wireless charging device and distributing charging power, the actual charging time of the ith terminal is greater than the actual charging time of the i-1 th terminal and less than the actual charging time of the i +1 th terminal, and Si denotes the charging power distributed to the ith terminal.
According to a second aspect of embodiments of the present disclosure, there is provided a charging device, the device comprising:
the system comprises an available electric quantity acquisition module, a power management module and a power management module, wherein the available electric quantity acquisition module is used for acquiring the current available electric quantity of each terminal when the connection with a plurality of terminals is detected;
the system comprises a leaving time acquisition module, a marking area and a wireless charging device, wherein the leaving time acquisition module is used for acquiring the time of each terminal leaving the marking area counted in advance, and the wireless charging device is positioned in the marking area;
the charging time distribution module is used for distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area;
the priority level setting module is used for setting a power distribution priority level according to the actual charging time of each terminal;
and the electric quantity distribution module is used for distributing charging power to each terminal based on the power distribution priority level and the current unallocated power of the wireless charging equipment.
Optionally, the charging time allocation module is configured to calculate, according to a current available power of each terminal, a first charging time consumed by each terminal when the current available power is charged to a full power; and calculating the actual charging time of each terminal according to the first charging time, the current time and the time of each terminal leaving the marking area.
Optionally, the charging time distribution module is configured to calculate a second charging time consumed by each terminal to charge from a zero charge amount to a full charge amount when the charging power is distributed evenly; and calculating the first charging time consumed by each terminal from the current available electric quantity to the full electric quantity according to the current available electric quantity of each terminal and the second charging time.
Optionally, the charging time allocation module is configured to calculate, for each terminal, a time difference between a time when the terminal leaves the mark area and a current time; when the first charging time is less than or equal to the time difference value, determining the first charging time as the actual charging time of the terminal; and when the first charging time is greater than the time difference value, determining the time difference value as the actual charging time of the terminal.
Optionally, the apparatus further comprises:
the geographic position acquisition module is used for determining the current geographic position of the wireless charging equipment;
the input data acquisition module is used for acquiring marking information and marking range data input by a user;
and the position marking module is used for marking the geographic position according to the marking information and the marking range data to obtain the marking area.
Optionally, the apparatus further comprises:
the instruction receiving module is used for receiving a position change instruction, wherein the position change instruction at least comprises the time when any terminal leaves the marking area and the identity of any terminal;
the leaving time counting module is used for counting the time of each terminal leaving the marking area according to the position change instruction;
the corresponding relation establishing module is used for establishing the corresponding relation between the identity of the terminal and the time of leaving the marking area;
the leaving time obtaining module is configured to search for each terminal in the corresponding relationship according to the identity of the terminal, obtain a time value matched with the identity, and determine the time value as the time when the terminal leaves the mark area.
Optionally, the instruction receiving module is configured to receive a position change instruction sent by any terminal, where the position change instruction is sent by the any terminal when the any terminal determines that the terminal has left the mark area according to the current position and the mark area; or receiving the position change instruction sent by the router, wherein the position change instruction is sent after the router detects that any terminal is disconnected with the router, and the router and the wireless charging equipment are in wireless connection.
Optionally, the charging time distribution module calculates a first charging time consumed by each terminal to charge from the current available electric quantity to a full electric quantity by applying the following formula:
PT1=PT2*(1-AP)
where AP refers to the current available charge in percentage form, PT1 refers to the first charge time, and PT2 refers to the second charge time.
Optionally, the priority setting module is configured to set the terminal with the minimum actual charging time as the highest priority, and set the terminal with the maximum actual charging time as the lowest priority.
Optionally, the electric quantity distribution module, based on the power distribution priority level and the current unallocated power of the wireless charging device, applies the following formula to distribute charging power to each terminal:
<math> <mrow> <mi>S</mi> <mi>i</mi> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mfrac> <mrow> <mi>T</mi> <mi>S</mi> <mi>i</mi> </mrow> <mrow> <mi>Σ</mi> <mi>T</mi> <mi>S</mi> <mi>n</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>*</mo> <mi>Z</mi> </mrow></math>
wherein Z refers to the wireless charging device's current unallocated power; Σ TSn ═ TS1+ TS2+ TS3+. + TSn, n denotes the total number of terminals connected to the wireless charging device and not distributing charging power, i is a positive integer, 0< i ≦ n, TSi denotes the actual charging time of the ith terminal connected to the wireless charging device and distributing charging power, the actual charging time of the ith terminal is greater than the actual charging time of the i-1 th terminal and less than the actual charging time of the i +1 th terminal, and Si denotes the charging power distributed to the ith terminal.
According to a third aspect of embodiments of the present disclosure, there is provided a wireless charging device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when connection establishment with a plurality of terminals is detected, acquiring the current available electric quantity of each terminal; acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area; distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area; setting a power distribution priority level according to the actual charging time of each terminal; and allocating charging power for each terminal based on the power allocation priority level and the current unallocated power of the wireless charging device.
The method and the device provided by the embodiment of the disclosure can have the following beneficial effects:
(1) when connection establishment with a plurality of terminals is detected, acquiring the current available electric quantity of each terminal when connection establishment with the plurality of terminals is detected; acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area; distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area; setting a power distribution priority level according to the actual charging time of each terminal; and allocating charging power for each terminal based on the power allocation priority level and the current unallocated power of the wireless charging device. The method and the device can calculate the actual charging time of each terminal based on the time when each terminal leaves the mark area, the current time and the first charging time, and distribute the charging power for each terminal according to the actual charging time of each terminal, so that the terminal with the smaller actual charging time obtains more charging power, the device which is urgently carried out by a user can be charged fully preferentially, the charging efficiency is effectively improved, and the intelligence is better.
(2) Calculating the actual charging time of each terminal according to the first charging time, the current time and the time when each terminal leaves the marking area, and comprising the following steps: for each terminal, calculating a time difference value between the time when the terminal leaves the marking area and the current time; when the first charging time is less than or equal to the time difference value, determining the first charging time as the actual charging time of the terminal; and when the first charging time is greater than the time difference value, determining the time difference value as the actual charging time of the terminal. According to the method and the device, the first charging time is obtained according to a plurality of data such as the current available electric quantity and the second charging time, the result is accurate, the actual charging time can be accurately determined according to the time difference value between the time when each terminal leaves the marking area and the current time and the first charging time, then a more accurate basis is provided for the follow-up distribution of the charging power for each terminal according to the actual charging time, and the charging efficiency is effectively improved.
(3) The wireless charging equipment can receive a position change instruction, wherein the position change instruction at least comprises the time when any terminal leaves a marking area and the identity of any terminal. According to the position change instruction, the wireless charging equipment can accurately count the time of each terminal leaving the marked area, so that a more accurate basis is provided for the calculation of the subsequent actual charging time, and the charging efficiency is effectively improved.
(4) The wireless charging equipment determines the current geographic position; acquiring marking information and marking range data input by a user; and marking the geographical position according to the marking information and the marking range data to obtain a marking area. Through marking the peripheral range of the wireless charging equipment, the terminal or the routing equipment can send a position change instruction to the wireless charging equipment in the first time when the terminal or the routing equipment leaves the marking area, and then the time when each terminal leaves the marking can be counted more accurately, so that a more accurate basis is provided for the calculation of the follow-up actual charging time, and the charging efficiency is effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a charging method according to an exemplary embodiment, which is used in a wireless charging device, as shown in fig. 1, and includes the following steps.
In step 101, when connection establishment with a plurality of terminals is detected, a current available power of each terminal is obtained.
In step 102, the time of each terminal leaving the mark area is obtained.
Wherein the wireless charging device is located within the marker zone.
In step 103, actual charging time is allocated to each terminal based on the current available power of each terminal and the time when each terminal leaves the tag area.
In step 104, a power distribution priority level is set according to the actual charging time of each terminal.
In step 105, charging power is allocated to each terminal based on the power allocation priority level and the current unallocated power of the wireless charging device.
According to the method provided by the embodiment of the disclosure, when connection establishment with a plurality of terminals is detected, the current available electric quantity of each terminal is obtained; acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area; distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area; setting a power distribution priority level according to the actual charging time of each terminal; the charging power is distributed to each terminal based on the power distribution priority level and the current unallocated power of the wireless charging equipment, and the charging power is distributed to each terminal based on the time when each terminal leaves the mark area, so that the equipment which is urgently carried by a user and is out of the door can be charged preferentially, the charging efficiency is effectively improved, and the intelligence is better.
Optionally, allocating an actual charging time for each terminal based on the current available power of each terminal and the time when each terminal leaves the tag area, includes:
calculating a first charging time consumed by each terminal from the current available electric quantity to the full electric quantity according to the current available electric quantity of each terminal;
and calculating the actual charging time of each terminal according to the first charging time, the current time and the time of each terminal leaving the marking area.
Optionally, calculating a first charging time consumed by each terminal to charge from the current available power to a full power according to the current available power of each terminal, including:
calculating a second charging time consumed by each terminal to be charged from a zero charge amount to a full charge amount when the charging power is evenly distributed;
and calculating the first charging time consumed by each terminal from the current available electric quantity to the full electric quantity according to the current available electric quantity and the second charging time of each terminal.
Optionally, calculating the actual charging time of each terminal according to the first charging time, the current time and the time when each terminal leaves the tag area includes:
for each terminal, calculating a time difference value between the time when the terminal leaves the marking area and the current time;
when the first charging time is less than or equal to the time difference value, determining the first charging time as the actual charging time of the terminal;
and when the first charging time is greater than the time difference value, determining the time difference value as the actual charging time of the terminal.
Optionally, before calculating a first charging time consumed by each terminal for charging from the current available power to the full power according to the current available power of each terminal, the method further includes:
determining the current geographic position of the wireless charging equipment;
acquiring marking information and marking range data input by a user;
and marking the geographical position according to the marking information and the marking range data to obtain a marking area.
Optionally, before obtaining the time counted in advance for each terminal to leave the tag area, the method further includes:
receiving a position change instruction, wherein the position change instruction at least comprises the time when any terminal leaves a marking area and the identity of any terminal;
according to the position change instruction, counting the time of each terminal leaving the marking area;
establishing a corresponding relation between the identity of the terminal and the time of leaving the marking area;
acquiring the time of each terminal leaving the mark area, which is counted in advance, and comprises the following steps:
and for each terminal, searching in the corresponding relation according to the identity of the terminal to obtain a time value matched with the identity, and determining the time value as the time when the terminal leaves the marking area.
Optionally, receiving a position change instruction includes:
receiving a position change instruction sent by any terminal, wherein the position change instruction is sent by any terminal when the terminal determines to leave a mark area according to the current position and the mark area; or,
and receiving a position change instruction sent by the router, wherein the position change instruction is sent after the router detects that any terminal is disconnected with the router, and the router and the wireless charging equipment are in wireless connection.
Optionally, the following formula is applied to calculate the first charging time consumed by each terminal when the current available electric quantity is charged to the full electric quantity according to the current available electric quantity and the second charging time of each terminal:
PT1=PT2*(1-AP)
where AP refers to the current available charge in percentage form, PT1 refers to the first charge time, and PT2 refers to the second charge time.
Optionally, setting the power distribution priority level according to the actual charging time of each terminal includes:
and setting the terminal with the minimum actual charging time as the highest priority, and setting the terminal with the maximum actual charging time as the lowest priority.
Optionally, based on the power allocation priority level and the current unallocated power of the wireless charging device, applying the following formula to allocate charging power for each terminal:
<math> <mrow> <mi>S</mi> <mi>i</mi> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mfrac> <mrow> <mi>T</mi> <mi>S</mi> <mi>i</mi> </mrow> <mrow> <mi>Σ</mi> <mi>T</mi> <mi>S</mi> <mi>n</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>*</mo> <mi>Z</mi> </mrow></math>
wherein Z refers to the wireless charging device's current unallocated power; Σ TSn ═ TS1+ TS2+ TS3+. + TSn, n denotes the total number of terminals connected to the wireless charging device and not distributing charging power, i is a positive integer, 0< i ≦ n, TSi denotes the actual charging time connected to the wireless charging device and distributing charging power for the ith terminal, the actual charging time of the ith terminal is greater than the actual charging time of the i-1 st terminal and less than the actual charging time of the i +1 st terminal, and Si denotes the charging power distributed for the ith terminal.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart illustrating a charging method according to an exemplary embodiment, which is used in the wireless charging device, as shown in fig. 2, and includes the following steps.
In step 201, the wireless charging device determines a current geographic location of the wireless charging device, obtains marking information and marking range data input by a user, and marks the geographic location according to the marking information and the marking range data to obtain a marked area.
The wireless charging technology utilizes magnetic resonance to transmit electric energy in an electric field and a magnetic field between the wireless charging device and the terminal, and the coil and the capacitor form resonance between the wireless charging device and the terminal. That is, the resonance principle used by the wireless charging device is magnetic field resonance, and electric energy is transmitted only between coils resonating at the same frequency, which is unacceptable for other terminals. The wireless charging device may be connected to a WLAN (wireless local area network) for data transmission. Various terminals of a user, such as a smart phone, a tablet computer and the like, can be connected with the wireless charging device through a wireless network. When determining the current geographic location of the wireless charging device, the wireless charging device may be implemented by a GPS (global positioning system) technology or a WLAN, which is not specifically limited in this disclosure.
The marking information input by the user may be "home", "company", "school", and the like, and is used to mark a place where the user frequently appears, and this is not specifically limited in the embodiment of the present disclosure. The marking range data is used for marking a radius of a geographic location where the wireless charging device is currently located. For example, the tag range data may be 10 meters. Taking a home as an example, the radius of the home area is about 10 meters. When any terminal of the user is 10 meters away from the current geographical position of the wireless charging device, that is, the terminal is not in the room, the user may have carried the terminal out.
After the geographical position is marked according to the marking information and the marking range data to obtain a marking area, the marking area is a circular area which takes the geographical position of the wireless charging device as the center and takes the marking range data as the radius. The wireless charging apparatus may record position information, mark radius information, and the like of the mark area.
In step 202, the wireless charging device receives the position change instruction, counts the time when each terminal leaves the mark area according to the position change instruction, and establishes a corresponding relationship between the identity of the terminal and the time when the terminal leaves the mark area.
In the embodiment of the disclosure, the network module is built in the wireless charging device, so that the wireless charging device can be connected with the router, and can also be connected with each terminal of the user. If the geographic position of the wireless charging device is unchanged within a certain period of time, the time of each terminal leaving the marking area can be counted through counting within a period of time. For example, the user of the wireless charging device is always at home, the user usually carries a mobile phone, a tablet computer, a smart watch and the like when going out to work or studying every day, and the time of the user going out to work or studying every day is usually fixed, so that the time of each terminal leaving the marked area can be summarized through continuous statistics of a period of time.
The location change instruction received by the terminal may be sent by the terminal itself or sent by the router, and the details are as follows:
in the first method, after the terminal leaves the mark area, the terminal itself sends a position change instruction.
For the first mode, since each terminal may establish a connection with the wireless charging device through the wireless network, each terminal and the wireless charging device may perform data transmission through the wireless network. For example, each terminal acquires geographical location information of the wireless charging device, tag information of a tag area, tag range data, and the like through a wireless network. When any terminal moves, a GPS module arranged in the terminal can acquire the position information of the terminal in real time; when the distance between the current position of the terminal and the geographic position of the wireless charging equipment is larger than the size of the marking radius, the terminal is proved to leave the marking area at the moment, and the terminal is triggered to send a position change instruction to the wireless charging equipment. The location change instruction at least includes a time when the terminal leaves the mark area and an identity of the terminal, which is not specifically limited in the embodiment of the present disclosure. The identity may be a media access control address of the terminal or a terminal name, and the like, which is also not specifically limited in this disclosure.
In the second method, after the terminal leaves the mark area, the router which establishes connection with the terminal sends a position change instruction.
In the second method, since each terminal is usually connected to a router located in the label area, such as a home, an office, or other public place, it is also possible to determine whether or not the terminal leaves the label area from the perspective of the router. Because the wireless network coverage of the router is limited, when the distance between the router and the terminal exceeds a certain value, the router and the terminal can be automatically disconnected. Therefore, the router can detect whether there is a terminal disconnected from the network in real time or at preset time intervals. When any terminal is disconnected from the terminal, a position change instruction about the terminal is sent. The location change instruction at least includes a time when the terminal leaves the mark area and an identity of the terminal, which is not specifically limited in the embodiment of the present disclosure.
After the wireless charging equipment receives the position change instructions, the time of each terminal leaving the marking area is counted according to the position change instructions. For any terminal, when counting the time when the terminal leaves the marked area, because the time when the terminal leaves the marked area each time may be slightly different, the time when the terminal is more prone to leave can be determined in a plurality of leaving times, and the time when the terminal leaves the marked area can be calculated according to the time. For example, if the user goes out with the terminal at about 8 am, the time when the terminal is more likely to leave the marked area is about 8 am, and if the terminal leaves at 13 pm or later, the corresponding leaving time can be discarded. But is based on a plurality of departure times around 8 points. And then, the wireless charging equipment establishes a corresponding relation between the identity of the terminal and the time of leaving the marking area. Taking the id as the mac address, a mapping table as shown in table 1 below may be established.
TABLE 1
| ID | Time of departure |
| 00-23-5A-15-99-42 | 8:00 |
| 10-4F-50-45-10-23 | 13:23 |
| …… | …… |
In step 203, when the wireless charging device detects that it establishes connection with a plurality of terminals, a second charging time consumed by each terminal to be charged from a zero charge amount to a full charge amount when the charging power is evenly distributed is calculated.
In the embodiment of the disclosure, after the terminal is connected to the wireless charging device, the wireless charging device reads the identity of the terminal. If the wireless charging device judges that only one terminal is connected with the wireless charging device according to the identifier, the step and the subsequent steps do not need to be executed, and the processing flow is ended. If the wireless charging device judges that a plurality of current terminals are connected with the wireless charging device according to the device identifier, the charging power is distributed to each terminal according to the method provided by the embodiment of the disclosure. First, it is assumed that the second charging time pt (powertime) consumed when each terminal is charged from zero to full charge is provided in the case where the charging power is equally allocated to the plurality of terminals. The calculation of the second charging time may be implemented by referring to the prior art, which is not described in detail in the embodiments of the present disclosure.
In step 204, the wireless charging device obtains the current available power of each terminal, and calculates a first charging time consumed by each terminal when the current available power of each terminal is charged to full power according to the current available power of each terminal and the second charging time.
In the embodiment of the present disclosure, after reading the identity of each terminal, the wireless charging device will also read the current available power of each terminal in sequence. In the embodiment of the present disclosure, the currently available power is characterized in percentage form, and is denoted as ap (availablepower). Of course, the currently available power may be characterized in other forms, and this is not particularly limited in the embodiments of the present disclosure. Then, the wireless charging device calculates a first charging time PT1 consumed by each terminal from the current available power amount AP to full charge according to the current available power amount AP and the second charging time PT of each terminal. Wherein,
PT1=PT*(1-AP)(1)
in step 205, the wireless charging device obtains the time that each terminal leaves the tag area, which is counted in advance, based on the correspondence between the identity of the terminal and the time that the terminal leaves the tag area.
In the embodiment of the present disclosure, when acquiring the time that each terminal leaves the mark area, which is counted in advance, the wireless charging device may implement the following steps: for each terminal, according to the identity of the terminal, searching is performed in the corresponding relationship shown in the table 1, so as to obtain a time value matched with the identity, and the time value is determined as the time when the terminal leaves the mark area.
Of course, besides the above-mentioned manner of obtaining the time when each terminal leaves the mark area, other manners may also be adopted, and this is not specifically limited in this embodiment of the disclosure.
In step 206, the wireless charging device calculates an actual charging time of each terminal according to the first charging time, the current time and the time when each terminal leaves the mark area.
When the actual charging time of each terminal is calculated according to the first charging time, the current time and the time when each terminal leaves the mark area, the following method can be adopted:
for each terminal, calculating a time difference T1 between the time T when the terminal leaves the marking area and the current time TC; when the first charging time PT1 is less than the time difference T1, the first charging time is determined as the actual charging time TS of the terminal. That is, the time consumed by the terminal from the currently available power to the full power is less than the time when the terminal leaves the tag area (for example, the time when the user goes out with the terminal), so that the terminal is fully charged within the first charging time PT 1. When the first charging time PT1 is greater than the time difference T1, the time difference T1 is determined as the actual charging time TS of the terminal. That is, the time consumed by the terminal from the currently available power to the full power is longer than the time the terminal leaves the tag area, so it is required to be fully charged as much as possible within the time T1.
In summary, when PT1< T1, TS ═ PT 1; when PT1> T1, TS ═ T1.
In step 207, the wireless charging apparatus sets a power distribution priority level according to the actual charging time of each terminal.
In the embodiment of the present disclosure, when the power distribution priority level is set according to the actual charging time of each terminal, the terminal with the minimum actual charging time is set as the highest priority, and the terminal with the maximum actual charging time is set as the lowest priority. That is, the smaller the actual charging time is, the higher the power distribution priority level corresponding to the terminal is, the charging power is preferentially distributed to the terminal in the subsequent process, and the more the charging power is distributed to the terminal; the larger the actual charging time is, the lower the power distribution priority level corresponding to the terminal is, the later charging power is distributed to the terminal in the subsequent process, and the distributed charging power is smaller.
In step 208, the wireless charging device allocates charging power to each terminal based on the power allocation priority level and the current unallocated power of the wireless charging device.
In the embodiment of the present disclosure, after the actual charging time TS of each terminal is calculated, the actual charging times of the terminals may be sequentially labeled as TS1, TS2, ts3.. TSn, etc. according to the power allocation priority level. Wherein, the smaller the index value, the shorter the actual charging time, and the higher the power distribution priority level. The symbol S (scale) represents the charging power, and the charging powers to be allocated to the terminals with the time charging times TS1, TS2, and ts3.. TSn, respectively, may be sequentially labeled as S1, S2, S3.. Sn, and the like. The S1 value is the largest, and the Sn value is the smallest. That is, if the time that a certain terminal is away from the mark area is shorter, the charging power allocated to the terminal is higher; if a certain terminal is away from the mark area for a long time or the terminal does not leave the mark area, the lower the charging power allocated to the terminal. When charging power is distributed to each terminal, the following modes can be adopted:
firstly, the charging power of the terminal with the minimum actual charging time TS value is calculated preferentially.
<math> <mrow> <mi>S</mi> <mi>i</mi> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mfrac> <mrow> <mi>T</mi> <mi>S</mi> <mi>i</mi> </mrow> <mrow> <mi>Σ</mi> <mi>T</mi> <mi>S</mi> <mi>n</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>*</mo> <mi>Z</mi> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>2</mn> <mo>)</mo> </mrow> </mrow></math>
Wherein Z refers to the wireless charging device's current unallocated power;
Σ TSn ═ TS1+ TS2+ TS3+. + TSn, n denotes the total number of terminals connected to the wireless charging device and not distributing charging power, i is a positive integer, 0< i ≦ n, TSi denotes the actual charging time connected to the wireless charging device and distributing charging power for the ith terminal, the actual charging time of the ith terminal is greater than the actual charging time of the i-1 st terminal and less than the actual charging time of the i +1 st terminal, and Si denotes the charging power distributed for the ith terminal. In the embodiment of the present disclosure, the charging power of the terminal with the minimum actual charging time may be preferentially calculated.
And step two, calculating the charging power of the terminal with the second smallest value and the third smallest value of the actual charging time TS in sequence.
Note that, at this time, TSi of the terminal that has calculated the charging power is eliminated. For example, it is assumed that the actual charging time TS1 of the terminal 1 is 20 minutes, the actual charging time TS2 of the terminal 2 is 30 minutes, and the actual charging time TS3 of the terminal 3 is 50 minutes. The TS value of terminal 1 is minimal. As can be seen from the above equation (2), the charging power S1 to be allocated to terminal 1 is 1- (20/20+30+50) × 1 is 80%. Since the wireless charging apparatus allocates the charging power to the first terminal, the unallocated power is 1. The charging power S2 ═ 1- (30/30+50) ] (1-S1) should be allocated to terminal 2 equal to 12.5%.
Where the remaining unallocated power of the wireless charging apparatus at this time is 1-S1-20%, the TS value 20 of the terminal 1 to which the charging power has been allocated is eliminated from Σ TSi.
After the charging power of each terminal is allocated according to the method shown in step 208, the analysis module in the wireless charging device sends the identity of each terminal and the corresponding charging power value S to the power allocation module in the wireless charging device. And then, the power distribution module charges each terminal according to the charging power value S of each terminal. In addition to determining the charging power allocated to each terminal according to the time when each terminal leaves the mark area historically, the actual charging time of each terminal may also be determined according to the weather conditions (for example, the user goes out when the weather is clear, and the user does not go out when the weather is cloudy or rainy) during current charging and the schedule information recorded by the user in each terminal, and then the charging power is allocated to each terminal according to the obtained actual charging time, which is not specifically limited in the embodiment of the present disclosure.
According to the method provided by the embodiment of the disclosure, when connection establishment with a plurality of terminals is detected, the current available electric quantity of each terminal is obtained; acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area; distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area; setting a power distribution priority level according to the actual charging time of each terminal; the charging power is distributed for each terminal based on the power distribution priority level and the current unallocated power of the wireless charging equipment, and the charging power is distributed for each terminal based on the time when each terminal leaves the mark area, so that the equipment which is urgently carried by a user to go out can be preferentially charged, the charging efficiency is effectively improved, the intelligence is better, and the user experience is better.
Fig. 3 is a block diagram illustrating a charging device according to an exemplary embodiment. Referring to fig. 3, the apparatus includes an available power acquisition module 301, a departure time acquisition module 302, a charging time distribution module 303, a priority level setting module 304, and a power distribution module 305.
The available power acquisition module is connected to the departure time acquisition module 302, and is configured to acquire a current available power of each terminal when connection establishment with multiple terminals is detected; the leaving time acquiring module 302 is connected with the charging time distributing module 303, and is configured to acquire a pre-counted time that each terminal leaves the tag area, where the wireless charging device is located; the charging time allocation module 303 is connected to the priority setting module 304, and is configured to allocate actual charging time to each terminal based on a current available power of each terminal and a time when each terminal leaves the tag area; the priority setting module 304 is connected to the power distribution module 305, and is configured to set a power distribution priority according to an actual charging time of each terminal; and a power allocation module 305, configured to allocate charging power to each terminal based on the power allocation priority level and the current unallocated power of the wireless charging device.
Optionally, the charging time allocation module is configured to calculate, according to the current available power of each terminal, a first charging time consumed by each terminal when the current available power is charged to a full power; and calculating the actual charging time of each terminal according to the first charging time, the current time and the time of each terminal leaving the marking area.
Optionally, the charging time distribution module is configured to calculate a second charging time consumed by each terminal to charge from a zero charge amount to a full charge amount when the charging power is distributed evenly; and calculating the first charging time consumed by each terminal from the current available electric quantity to the full electric quantity according to the current available electric quantity and the second charging time of each terminal.
Optionally, the charging time allocation module is configured to calculate, for each terminal, a time difference between a time when the terminal leaves the tag area and a current time; when the first charging time is less than or equal to the time difference value, determining the first charging time as the actual charging time of the terminal; and when the first charging time is greater than the time difference value, determining the time difference value as the actual charging time of the terminal.
Referring to fig. 4, the apparatus further comprises:
a geographic position obtaining module 306, configured to determine a current geographic position of the wireless charging device;
an input data acquiring module 307, configured to acquire tag information and tag range data input by a user;
and the position marking module 308 is configured to mark the geographic position according to the marking information and the marking range data to obtain a marked area.
Referring to fig. 5, the apparatus further comprises:
an instruction receiving module 309, configured to receive a location change instruction, where the location change instruction at least includes a time when any terminal leaves a marked area and an identity of any terminal;
a leaving time counting module 310, configured to count a time when each terminal leaves the tag area according to the location change instruction;
a corresponding relationship establishing module 311, configured to establish a corresponding relationship between the identity of the terminal and the time when the terminal leaves the mark area;
and the leaving time acquisition module is used for searching each terminal in the corresponding relation according to the identity of the terminal to obtain a time value matched with the identity, and determining the time value as the time when the terminal leaves the mark area.
Optionally, the instruction receiving module is configured to receive a position change instruction sent by any terminal, where the position change instruction is sent by any terminal when the terminal determines that the terminal has left the mark area according to the current position and the mark area; or receiving a position change instruction sent by the router, wherein the position change instruction is sent after the router detects that any terminal is disconnected with the router, and the router and the wireless charging equipment are in wireless connection.
Optionally, the charging time distribution module calculates a first charging time consumed by each terminal to charge from the current available power to the full power by applying the following formula:
PT1=PT2*(1-AP)
where AP refers to the current available charge in percentage form, PT1 refers to the first charge time, and PT2 refers to the second charge time.
Optionally, the priority setting module is configured to set the terminal with the minimum actual charging time as the highest priority, and set the terminal with the maximum actual charging time as the lowest priority.
Optionally, the electric quantity distribution module is configured to, based on the power distribution priority level and the current unallocated power of the wireless charging device, apply the following formula to distribute the charging power to each terminal:
<math> <mrow> <mi>S</mi> <mi>i</mi> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mfrac> <mrow> <mi>T</mi> <mi>S</mi> <mi>i</mi> </mrow> <mrow> <mi>Σ</mi> <mi>T</mi> <mi>S</mi> <mi>n</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>*</mo> <mi>Z</mi> </mrow></math>
wherein Z refers to the wireless charging device's current unallocated power; Σ TSn ═ TS1+ TS2+ TS3+. + TSn, n denotes the total number of terminals connected to the wireless charging device and not distributing charging power, i is a positive integer, 0< i ≦ n, TSi denotes the actual charging time connected to the wireless charging device and distributing charging power for the ith terminal, the actual charging time of the ith terminal is greater than the actual charging time of the i-1 st terminal and less than the actual charging time of the i +1 st terminal, and Si denotes the charging power distributed for the ith terminal.
According to the device provided by the embodiment of the disclosure, when connection establishment with a plurality of terminals is detected, the current available electric quantity of each terminal is obtained; acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area; distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area; setting a power distribution priority level according to the actual charging time of each terminal; the charging power is distributed for each terminal based on the power distribution priority level and the current unallocated power of the wireless charging equipment, and the charging power is distributed for each terminal based on the time when each terminal leaves the mark area, so that the equipment which is urgently carried by a user to go out can be preferentially charged, the charging efficiency is effectively improved, the intelligence is better, and the user experience is better.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an apparatus 600 for charging according to an example embodiment. For example, device 600 may be provided as a wireless charging device. Referring to fig. 6, device 600 includes a processing component 622 that further includes one or more processors and memory resources, represented by memory 632, for storing instructions, such as applications, that are executable by processing component 622. The application programs stored in memory 632 may include one or more modules that each correspond to a set of instructions. Further, the processing component 622 is configured to execute instructions to perform the above-described method embodiments.
The device 600 may also include a power component 626 configured to perform power management for the device 600, a wired or wireless network interface 650 configured to connect the device 600 to a network, and an input/output (I/O) interface 658. Device 600 may operate based on an operating system, such as a Windows Server, stored in memory 632TM,MacOSXTM,UnixTM,LinuxTM,FreeBSDTMOr the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a charging method, the method comprising:
when connection establishment with a plurality of terminals is detected, acquiring the current available electric quantity of each terminal;
acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area;
distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area;
setting a power distribution priority level according to the actual charging time of each terminal;
and allocating charging power for each terminal based on the power allocation priority level and the current unallocated power of the wireless charging device.
Optionally, the allocating an actual charging time to each terminal based on the current available power of each terminal and the time when each terminal leaves the tag area includes:
calculating a first charging time consumed by each terminal from the current available electric quantity to the full electric quantity according to the current available electric quantity of each terminal;
and calculating the actual charging time of each terminal according to the first charging time, the current time and the time of each terminal leaving the marking area.
Optionally, calculating a first charging time consumed by each terminal to charge from the current available power to a full power according to the current available power of each terminal, including:
calculating a second charging time consumed by each terminal to be charged from a zero charge amount to a full charge amount when the charging power is evenly distributed;
and calculating the first charging time consumed by each terminal from the current available electric quantity to the full electric quantity according to the current available electric quantity and the second charging time of each terminal.
Optionally, calculating the actual charging time of each terminal according to the first charging time, the current time and the time when each terminal leaves the tag area includes:
for each terminal, calculating a time difference value between the time when the terminal leaves the marking area and the current time;
when the first charging time is less than or equal to the time difference value, determining the first charging time as the actual charging time of the terminal;
and when the first charging time is greater than the time difference value, determining the time difference value as the actual charging time of the terminal.
Optionally, before calculating a first charging time consumed by each terminal for charging from the current available power to the full power according to the current available power of each terminal, the method further includes:
determining the current geographic position of the wireless charging equipment;
acquiring marking information and marking range data input by a user;
and marking the geographical position according to the marking information and the marking range data to obtain a marking area.
Optionally, before obtaining the time counted in advance for each terminal to leave the tag area, the method further includes:
receiving a position change instruction, wherein the position change instruction at least comprises the time when any terminal leaves a marking area and the identity of any terminal;
according to the position change instruction, counting the time of each terminal leaving the marking area;
establishing a corresponding relation between the identity of the terminal and the time of leaving the marking area;
acquiring the time of each terminal leaving the mark area, which is counted in advance, and comprises the following steps:
and for each terminal, searching in the corresponding relation according to the identity of the terminal to obtain a time value matched with the identity, and determining the time value as the time when the terminal leaves the marking area.
Optionally, receiving a position change instruction includes:
receiving a position change instruction sent by any terminal, wherein the position change instruction is sent by any terminal when the terminal determines to leave a mark area according to the current position and the mark area; or,
and receiving a position change instruction sent by the router, wherein the position change instruction is sent after the router detects that any terminal is disconnected with the router, and the router and the wireless charging equipment are in wireless connection.
Optionally, the following formula is applied to calculate the first charging time consumed by each terminal when the current available electric quantity is charged to the full electric quantity according to the current available electric quantity and the second charging time of each terminal:
PT1=PT2*(1-AP)
where AP refers to the current available charge in percentage form, PT1 refers to the first charge time, and PT2 refers to the second charge time.
Optionally, the setting of the power distribution priority level according to the actual charging time of each terminal includes:
and setting the terminal with the minimum actual charging time as the highest priority, and setting the terminal with the maximum actual charging time as the lowest priority.
Optionally, based on the power allocation priority level and the current unallocated power of the wireless charging device, applying the following formula to allocate charging power to each terminal:
<math> <mrow> <mi>S</mi> <mi>i</mi> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mfrac> <mrow> <mi>T</mi> <mi>S</mi> <mi>i</mi> </mrow> <mrow> <mi>Σ</mi> <mi>T</mi> <mi>S</mi> <mi>n</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>*</mo> <mi>Z</mi> </mrow></math>
wherein Z refers to the wireless charging device's current unallocated power; Σ TSn ═ TS1+ TS2+ TS3+. + TSn, n denotes the total number of terminals connected to the wireless charging device and not distributing charging power, i is a positive integer, 0< i ≦ n, TSi denotes the actual charging time connected to the wireless charging device and distributing charging power for the ith terminal, the actual charging time of the ith terminal is greater than the actual charging time of the i-1 st terminal and less than the actual charging time of the i +1 st terminal, and Si denotes the charging power distributed for the ith terminal.
The non-transitory computer-readable storage medium provided by the embodiment of the present disclosure acquires a current available power amount of each terminal when it is detected that a connection is established with a plurality of terminals; acquiring the time of each terminal leaving a mark area counted in advance, wherein the wireless charging equipment is positioned in the mark area; distributing actual charging time for each terminal based on the current available electric quantity of each terminal and the time of each terminal leaving the marking area; setting a power distribution priority level according to the actual charging time of each terminal; the charging power is distributed for each terminal based on the power distribution priority level and the current unallocated power of the wireless charging equipment, and the charging power is distributed for each terminal based on the time when each terminal leaves the mark area, so that the equipment which is urgently carried by a user to go out can be preferentially charged, the charging efficiency is effectively improved, the intelligence is better, and the user experience is better.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.