CN108829513A - Wireless headset distributes the method and device thereof of task automatically - Google Patents

Wireless headset distributes the method and device thereof of task automatically Download PDF

Info

Publication number
CN108829513A
CN108829513A CN201810489723.0A CN201810489723A CN108829513A CN 108829513 A CN108829513 A CN 108829513A CN 201810489723 A CN201810489723 A CN 201810489723A CN 108829513 A CN108829513 A CN 108829513A
Authority
CN
China
Prior art keywords
earphone
task
current
operating load
residual quantity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810489723.0A
Other languages
Chinese (zh)
Inventor
王刚明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Water World Co Ltd
Original Assignee
Shenzhen Water World Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN201810489723.0A priority Critical patent/CN108829513A/en
Publication of CN108829513A publication Critical patent/CN108829513A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The step of present invention discloses the method and device thereof that a kind of wireless headset distributes task automatically, the second earphone including the first earphone and with first earphone communication connection, the wireless headset distributes the method for task automatically, including:First earphone receives assignment instructions;Judge whether the operating load of the corresponding task of the assignment instructions is greater than default operating load;If so, distributing the assignment instructions corresponding task according to the current operating parameter of the current operating parameter of first earphone got and second earphone;It can be run for a long time in discrete cell to avoid the task of power consumption in this way, extend the time of system work, reduce consumption rate;It can be with optimization system to the response speed of each task.

Description

Wireless headset distributes the method and device thereof of task automatically
Technical field
The present invention relates to the technical fields of information processing, especially relate to the method that wireless headset distributes task automatically And its device.
Background technique
Existing wireless headset, usually set multiple functions, such as music, step counting are played, and in the ear of wireless connection In machine, the task of each earphone is not exactly the same, for example has the local wireless stereo ear for playing and (being detached from bluetooth host use) Machine, one of earphone need to complete the decoding of Mp3 file, and a unit carries out Mp3 broadcasting;For another example with the ear of pedometer Machine, it is only necessary to which an earphone job can carry out step counting.The common processing mode of existing this earphone is task respectively solid Determine earphone completion, such as local broadcasting and pedometer are all completed in fixed earphone respectively.But for ear specific in this way Machine can compare power consumption, while in high load capacity task, relatively poor to the action response of other tasks, response speed compared with Slowly.
Summary of the invention
The main object of the present invention is to provide a kind of wireless headset for saving electricity to distribute the method and its dress of task automatically It sets.
The present invention proposes a kind of method that wireless headset distributes task automatically, wireless headset include the first earphone and with institute State the first earphone communication connection the second earphone, the method that the wireless headset distributes task automatically, including:
First earphone receives assignment instructions;
Judge whether the operating load of the corresponding task of the assignment instructions is greater than default operating load;
If so, according to the current operation of the current operating parameter of first earphone got and second earphone The corresponding task of assignment instructions described in parametric distribution.
Further, the current operating parameter of first earphone and working as second earphone that the basis is got Preceding operating parameter is distributed the step of assignment instructions corresponding task, including:
Judge the first residual quantity of the current residual electricity of first earphone and the current residual electricity of second earphone Whether within the first preset range;
If first residual quantity not within first preset range, judges the current residual electricity of first earphone Whether amount is greater than the current residual electricity of second earphone;
If so, the corresponding task of the assignment instructions is distributed to first earphone, otherwise, by the assignment instructions Corresponding task distributes to second earphone.
Further, the current residual electricity of the current residual electricity of judgement first earphone and second earphone After the step of whether the first residual quantity of amount is within the first preset range, including:
If first residual quantity within first preset range, judges operating load and the institute of first earphone The second residual quantity of the operating load of the second earphone is stated whether within the second preset range;
If second residual quantity divides the corresponding task of the assignment instructions within second preset range at random First earphone described in dispensing or second earphone.
Further, the second of the operating load of the operating load and second earphone of judgement first earphone After the step of whether residual quantity is within the second preset range, including:
If second residual quantity not within second preset range, judges that the operating load of first earphone is The no operating load greater than second earphone;
If so, the corresponding task of the assignment instructions is distributed to first earphone, otherwise, by the assignment instructions Corresponding task distributes to second earphone.
Further, the operation object for currently executing the corresponding task of the assignment instructions is first earphone, described Appoint according to the distribution of the current operating parameter of the current operating parameter of first earphone got and second earphone is described After business instructs the step of corresponding task, including:
Monitor the variable condition of first residual quantity and the second residual quantity;
Judge whether the variable condition meets the preset condition of exchange operation object;
If so, operation object is switched to second earphone from first earphone.
The present invention also provides the device that a kind of wireless headset distributes task automatically, including the first earphone and with described first Second earphone of earphone communication connection, first earphone include:
Receiving module, for receiving assignment instructions;
First judgment module, for judging whether the operating load of the corresponding task of the assignment instructions is greater than default operation Load;
Distribution module, when for determining that the operating load of the corresponding task of the assignment instructions is greater than default operating load, Appoint according to the distribution of the current operating parameter of the current operating parameter of first earphone got and second earphone is described Business instructs corresponding task.
Further, the distribution module includes:
First judging submodule, for judging the current of the current residual electricity of first earphone and second earphone Whether the first residual quantity of remaining capacity is within the first preset range;
Second judgment submodule judges institute when for determining first residual quantity not within first preset range Whether the current residual electricity for stating the first earphone is greater than the current residual electricity of second earphone;
First distribution sub module, for determining that the current residual electricity of first earphone is greater than working as second earphone When preceding remaining capacity, the corresponding task of the assignment instructions is distributed into first earphone, otherwise, by the assignment instructions pair Answering for task distributes to second earphone.
Further, the distribution module further includes:
Third judging submodule, when for determining that first residual quantity is within first preset range, described in judgement Whether the second residual quantity of the operating load of the operating load of the first earphone and second earphone is within the second preset range;
Second distribution sub module when for determining that second residual quantity is within second preset range, described will appoint Business instructs corresponding task to be randomly assigned to first earphone or second earphone.
Further, the distribution module further includes:
4th judging submodule judges institute when for determining second residual quantity not within second preset range Whether the operating load for stating the first earphone is greater than the operating load of second earphone;
Third distribution sub module, the operating load for determining first earphone are negative greater than the operation of second earphone When lotus, the corresponding task of the assignment instructions is distributed into first earphone, otherwise, by the corresponding task of the assignment instructions Distribute to second earphone.
Further, the operation object for currently executing the corresponding task of the assignment instructions is first earphone, described Wireless headset distribute the device of task automatically and further include:
Module is monitored, for monitoring the variable condition of first residual quantity and the second residual quantity;
Second judgment module, for judging whether the variable condition meets the preset condition of exchange operation object;
Switching module will run object when for determining that the variable condition meets the preset condition of exchange operation object Second earphone is switched to from first earphone.
Wireless headset provided by the invention distributes the method and device thereof of task automatically, and identical two using function Earphone, determines a certain earphone by mutual communication to execute task, in this way can to avoid power consumption task for a long time in spy Determine earphone operation, extend the time of earphone work, reduces consumption rate;Earphone can also be optimized to the response speed of each task.
Detailed description of the invention
Fig. 1 is the method schematic diagram for the method that one embodiment of the invention wireless headset distributes task automatically;
Fig. 2 is the structural schematic diagram for the device that one embodiment of the invention wireless headset distributes task automatically;
Fig. 3 is the structural schematic diagram of one embodiment of the invention distribution module.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.Obviously, described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its His embodiment, shall fall within the protection scope of the present invention.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present invention In explaining in relative positional relationship, the motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if should When particular pose changes, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and should not be understood as referring to Show or imply its relative importance or implicitly indicates the quantity of indicated technical characteristic." first ", " are defined as a result, Two " feature can explicitly or implicitly include at least one of the features.In addition, the technical solution between each embodiment can It to be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when the combination of technical solution occurs Conflicting or cannot achieve when, will be understood that the combination of this technical solution is not present, also not the present invention claims protection model Within enclosing.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, the wireless headset method of distributing task automatically that one embodiment of the invention provides, wireless headset include the The step of one earphone and the second earphone communicated to connect with the first earphone, wireless headset distributes the method for task automatically, including
S1:First earphone receives assignment instructions.
Above-mentioned first earphone and the second earphone are identical two wireless headsets of function, are carried out by the battery of same model It powers, in this step, the first earphone receives assignment instructions, and specific embodiment can pass through key and click or click APP The assignment instructions are sent, are then received by the first earphone, above-mentioned task includes playing music, step counting, adjusting volume etc..It is above-mentioned Assignment instructions carry task names, task definition etc..
S2:Judge whether the operating load of the corresponding task of the assignment instructions is greater than default operating load.
In this step, judge the operating load of the corresponding task of above-mentioned assignment instructions whether be greater than default operating load it Before, it needs to obtain the operating load information of the corresponding task of above-mentioned assignment instructions, specifically, can be identified according to assignment instructions Then the task names of the corresponding task of above-mentioned assignment instructions are believed according to the operating load that above-mentioned task names inquire the task Breath, the task names of each need to being performed for task and corresponding operating load information are set in advance in preset task table In, the operating load information of the corresponding task of the assignment instructions is then searched according to task names in preset task table. When the first earphone receives assignment instructions, since assignment instructions carry task names, it can according to above-mentioned task names pre- If searching out corresponding operating load information in task table.It then can be by the operating load searched and default operating load It compares, when the operating load of task is smaller, it is smaller to execute memory and power consumption shared when the task, can neglect Slightly, so task need not be distributed to the earphone more than remaining capacity, and when the operating load of task greatly to a certain degree when, hold Memory shared by row task and power consumption are bigger, which can be allocated by preset rules, to save electricity Amount, so need whether the operating load for judging above-mentioned task is greater than default operating load before distribution task, it is above-mentioned default Operating load is memory to be accounted for when executing and power consumption is larger and the critical operation that needs to be allocated task by preset rules Load.Further, when the operating load for judging the corresponding task of above-mentioned assignment instructions is less than default operating load, which can To be randomly assigned to the first earphone or the second earphone, preferred allocation gives the first earphone.
S3:If so, according to the current of the current operating parameter of first earphone got and second earphone Operating parameter distributes the assignment instructions corresponding task.
In this step, the current operating parameter of the first earphone includes the current residual electricity and current operation of the first earphone Load, similarly, the current operating parameter of the second earphone include the second earphone current residual electricity and current operating load, When one earphone determines the operating load of the corresponding task of above-mentioned assignment instructions greater than default operating load according to step S2, Ke Yigen Above-mentioned task is allocated according to the current operating parameter of the first earphone and the current operating parameter of the second earphone.It is above-mentioned current Remaining capacity is the available remaining capacity of present battery in wireless headset, and operating load is that earphone can be in energization The capacity of operation task.
Specifically, in above-mentioned steps S3, the current operating parameter for first earphone that the basis is got and institute The current operating parameter for stating the second earphone distributes the assignment instructions corresponding task, including:
S30:Judge the first of the current residual electricity of first earphone and the current residual electricity of second earphone Whether residual quantity is within the first preset range;
S31:If first residual quantity not within first preset range, judges the current surplus of first earphone Whether remaining electricity is greater than the current residual electricity of second earphone;
S32:If so, the corresponding task of the assignment instructions is distributed to first earphone, otherwise, by the task Corresponding task is instructed to distribute to second earphone.
Above-mentioned first residual quantity is between the current residual electricity of the first earphone and the current residual electricity of second earphone Difference, i.e., the current residual electricity of the current residual electricity of the first earphone and second earphone is subtracted each other into the difference obtained, Wherein the first preset range can be arranged in advance, can be specifically arranged according to the actual conditions of the first earphone and the second earphone. Citing ground, above-mentioned first preset range can be set to the 5% of battery capacity, and in step S30, the first earphone judges the first earphone Current residual electricity and the second earphone current residual electricity difference whether within the 5% of battery capacity, such as the first ear Both machine current residual electricity is the 86% of battery capacity, and the current residual electricity of the second earphone is the 72% of battery capacity, then Difference be battery capacity 14%, the difference be greater than 5%, that is, can determine whether the first residual quantity not within the first preset range, by Above-mentioned steps S31 is it is found that at this moment the first earphone can then judge whether the current residual electricity of the first earphone is greater than the second ear The current residual electricity of machine, in the present embodiment, the 86% of battery capacity is greater than the 72% of battery capacity, i.e. the first earphone currently remains Remaining electricity is greater than the current residual electricity of the second earphone, the corresponding task of above-mentioned task type can be distributed to the first ear at this time Machine;Otherwise, if at this moment the first earphone current residual electricity less than the second earphone current residual electricity, by above-mentioned task type Corresponding task distributes to the second earphone, is executed by the second earphone, thus is avoided that the high operating load task of power consumption for a long time in spy Fixed earphone operation, can extend the time of the work of earphone in this way, reduce consumption rate.
Further, after step S30, further include:
S31':If first residual quantity within first preset range, judges that the operation of first earphone is negative Whether the second residual quantity of the operating load of lotus and second earphone is within the second preset range;
S32':If second residual quantity is within second preset range, by the corresponding task of the assignment instructions It is randomly assigned to first earphone or second earphone.
Above-mentioned second residual quantity is the difference between the operating load of the first earphone and the operating load of the second earphone, and second is pre- If range can be equally arranged in advance, can be specifically arranged according to the actual conditions of the first earphone and the second earphone;In step In S31 '-S32 ', when the first earphone judges the first residual quantity within the first preset range, citing ground, the second preset range can be with It is set as the 5% of operating load, the first preset range is the 5% of battery capacity, and the first earphone current residual electricity is battery electricity The 86% of amount, the current residual electricity of the second earphone are the 84% of battery capacity, and the difference of the two is the 2% of battery capacity, i.e., The first residual quantity be can determine whether within the first preset range, then the first earphone can then judge the operating load and of the first earphone Whether the second residual quantity of two earphone operating loads is within the 5% of operating load, if the first earphone judges that the second residual quantity is being transported Within the 5% of row load, then the corresponding task of above-mentioned assignment instructions is randomly assigned to the first earphone or the second ear by the first earphone Machine.
Further, after step S31 ', including:
S33':If second residual quantity judges the operation of first earphone not within second preset range Whether load is greater than the operating load of second earphone;
S34':If so, the corresponding task of the assignment instructions is distributed to first earphone, otherwise, described will appoint Business instructs corresponding task to distribute to second earphone.
When the first earphone judges the second residual quantity not within second preset range, at this moment the first earphone can be then Judge whether the operating load of the first earphone is greater than the operating load of the second earphone, thus by the corresponding task of above-mentioned assignment instructions The big earphone of operating load is distributed to, in step S34 ', when the operation that the operating load of the first earphone is greater than the second earphone is negative Lotus, then the corresponding task of assignment instructions is distributed to the first earphone by the first earphone, is executed by the first earphone;If the fortune of the first earphone Row load is less than the operating load of the second earphone, then the corresponding task of assignment instructions is distributed to the second earphone by the first earphone, by Second earphone executes.
In the present embodiment, the method that above-mentioned wireless headset distributes task automatically further includes having the first earphone of monitoring and the Two earphone current operating parameters, and can be switched according to above-mentioned current operating parameter and currently execute above-mentioned assignment instructions corresponding The operation object of business, wherein the operation object for currently executing the corresponding task of above-mentioned assignment instructions can be the first earphone or second Earphone, it is specifically, referring to Fig.1, above-mentioned when the operation object for currently executing the corresponding task of above-mentioned assignment instructions is the first earphone The method that wireless headset distributes task automatically further includes:
S4:Monitor the variable condition of first residual quantity and the second residual quantity.
Since the first earphone is carrying out the corresponding task of above-mentioned assignment instructions, execution task needs power consumption to be also required to run Load, so, the first residual quantity and the second residual quantity are all changing, and specifically, the first earphone can be when default at interval of one Between monitor the variable condition of first residual quantity and the second residual quantity, above-mentioned preset time customized can be arranged, and such as be set as 10 Second, then primary at interval of 10 seconds the first headphone monitors, this preset time can be arranged according to battery capacity, the battery of earphone When electricity is more, time interval can be arranged relatively long.
S5:Judge whether the variable condition meets the preset condition of exchange operation object.
S6:If so, operation object is switched to second earphone from first earphone.
In above-mentioned steps, the first earphone then monitors first residual quantity and the second residual quantity every a preset time Variable condition, it follows which variation the first residual quantity and the second residual quantity have occurred, thus obtain the first current residual quantity with And the second current residual quantity, according to above-mentioned steps, whether the first earphone may determine that current the first residual quantity and the second residual quantity Whether the preset condition for meeting exchange operation object, i.e., need currently performed task being transferred to the second earphone.Specifically, if The first current residual quantity is in the first preset range, then whether the second current residual quantity of the first earphone judgement is in the second default model It encloses, if the second current residual quantity is in the second preset range, at this moment the first earphone continues to execute above-mentioned task.If the first earphone judges The second current residual quantity then judges whether the operating load of the first earphone is greater than the operation of the second earphone not in the second preset range Load, if so, illustrate that the first current residual quantity and the second current residual quantity do not meet the preset condition of operation object, this When the first earphone continue to execute above-mentioned task, if it is not, illustrating that the first current residual quantity and the second current residual quantity meet fortune The preset condition of row object, at this moment above-mentioned task is transferred to the second earphone by the first earphone, i.e., will run object from the first earphone Switch to the second earphone.If the first current residual quantity is not in the first preset range, the first earphone judges that the first earphone is current Whether remaining capacity is greater than the remaining capacity of the second earphone, if so, being that the first current residual quantity of explanation and current second are poor The preset condition without meeting operation object is measured, at this moment the first earphone continues to execute above-mentioned task, if the first earphone judges first Earphone current residual electricity whether less than the second earphone remaining capacity, that is, illustrate current the first residual quantity and current second Residual quantity meets the preset condition of operation object, and at this moment above-mentioned task is transferred to the second earphone by the first earphone, i.e., will run object It is switched to the second earphone from the first earphone, specifically, above-mentioned task data is transferred to second by radio channel by the first earphone Earphone, the second earphone execute the task after receiving, and thus are avoided that the task power consumption of the first earphone long-time execution high load capacity is excessive, And also improve the response speed of other tasks.
The data of above-mentioned task can be transmitted by low-consumption wireless channel, such as be passed by low-power consumption bluetooth It is defeated.
In another embodiment, the present invention also provides the devices that a kind of wireless headset distributes task automatically, including first Earphone and the second earphone communicated to connect with the first earphone, referring to Fig. 2, the first earphone includes:
Receiving module 100, for receiving assignment instructions.
Above-mentioned first earphone and the second earphone are identical two wireless headsets of function, are carried out by the battery of same model Power supply.The receiving module 100 of first earphone receives assignment instructions, and specific embodiment can be clicked or be clicked by key APP sends the assignment instructions, is then received by the first earphone, and above-mentioned task includes playing music, step counting, adjusting volume etc.. Above-mentioned assignment instructions carry task names, task definition etc..
First judgment module 200, for judging it is default whether the operating load of the corresponding task of the assignment instructions is greater than Operating load.
Before judging whether the operating load of the corresponding task of above-mentioned assignment instructions is greater than default operating load, need to obtain The operating load information of the corresponding task of above-mentioned assignment instructions is taken, specifically, can identify above-mentioned task according to assignment instructions The task names of corresponding task are instructed, the operating load information of the task, Mei Gexu are then inquired according to above-mentioned task names The task names of being performed for task and corresponding operating load information are set in advance in preset task table, are then existed The operating load information of the corresponding task of the assignment instructions is searched in preset task table according to task names.When the first earphone Assignment instructions are received, since assignment instructions carry task names, it can according to above-mentioned task names in preset task table In search out corresponding operating load information.Then the operating load searched and default operating load are compared, when appoint When the operating load of business is smaller, it is smaller to execute memory and power consumption shared when the task, can ignore, so need not Task is distributed to the earphone more than remaining capacity, and when the operating load of task greatly to a certain degree when, shared by execution task Memory and power consumption are bigger, which can be allocated by preset rules, to save electricity, so distributing First judgment module 200 is needed before task, judges whether the operating load of above-mentioned task is greater than default operating load, it is above-mentioned pre- If operating load is to account for memory when executing and power consumption is larger and the critical fortune that needs to be allocated task by preset rules Row load.Further, when the operating load for judging the corresponding task of above-mentioned assignment instructions is less than default operating load, the task It can be randomly assigned to the first earphone or the second earphone, preferred allocation gives the first earphone.
Distribution module 300, for determining that the operating load of the corresponding task of the assignment instructions is greater than default operating load When, according to the distribution of the current operating parameter of the current operating parameter of first earphone got and second earphone The corresponding task of assignment instructions.
The current operating parameter of first earphone include the first earphone current residual electricity and current operating load, together Reason, the current operating parameter of the second earphone include the second earphone current residual electricity and current operating load, sentence when first When disconnected module 200 determines that the operating load of the corresponding task of above-mentioned assignment instructions is greater than default operating load, distribution module 300 can To be allocated above-mentioned task according to the current operating parameter of the current operating parameter of the first earphone and the second earphone.It is above-mentioned Current residual electricity is the available remaining capacity of present battery in wireless headset, and operating load is earphone in energization The capacity of task can be run.
In the present embodiment, referring to Fig. 3, above-mentioned distribution module 300 includes:
First judging submodule 310, for judge first earphone current residual electricity and second earphone Whether the first residual quantity of current residual electricity is within the first preset range;
Second judgment submodule 320 is then sentenced when for determining first residual quantity not within first preset range Whether the current residual electricity of first earphone of breaking is greater than the current residual electricity of second earphone;
First distribution sub module 330, for determining that the current residual electricity of first earphone is greater than second earphone Current residual electricity when, the corresponding task of the assignment instructions is distributed into first earphone, otherwise, the task is referred to Corresponding task is enabled to distribute to second earphone.
Above-mentioned first residual quantity is between the current residual electricity of the first earphone and the current residual electricity of second earphone Difference, i.e., the current residual electricity of the current residual electricity of the first earphone and second earphone is subtracted each other into the difference obtained, Wherein the first preset range can be arranged in advance, can be specifically arranged according to the actual conditions of the first earphone and the second earphone. Citing ground, above-mentioned first preset range can be set to the 5% of battery capacity, when the first judging submodule 310 judges the first ear Whether the difference of the current residual electricity of machine and the current residual electricity of the second earphone is within the 5% of battery capacity, and such as first Earphone current residual electricity is the 86% of battery capacity, and the current residual electricity of the second earphone is the 72% of battery capacity, then two The difference of person be battery capacity 14%, the difference be greater than 5%, that is, can determine whether the first residual quantity not within the first preset range, At this moment second judgment submodule 320 can then judge whether the current residual electricity of the first earphone is greater than the current of the second earphone Remaining capacity, in the present embodiment, the 86% of battery capacity is greater than the 72% of battery capacity, i.e. the first earphone current residual electricity is big In the current residual electricity of the second earphone, the first distribution sub module 330 can be by the corresponding task point of above-mentioned task type at this time The first earphone of dispensing;Otherwise, if at this moment the first earphone current residual electricity less than the second earphone current residual electricity, first The corresponding task of above-mentioned task type is distributed to the second earphone by distribution sub module 330, is executed by the second earphone, thus is avoided that consumption The high operating load task of electricity is run in specific earphone for a long time, can extend the time of the work of earphone in this way, reduces power consumption Rate.
Further, above-mentioned distribution module 300 further includes:
Third judging submodule 321 then judges when for determining that first residual quantity is within first preset range Second residual quantity of the operating load of the operating load of first earphone and second earphone whether the second preset range it It is interior;
Second distribution sub module 322 will be described when for determining that second residual quantity is within second preset range The corresponding task of assignment instructions is randomly assigned to first earphone or second earphone.
Above-mentioned second residual quantity is the difference between the operating load of the first earphone and the operating load of the second earphone, and second is pre- If range can be equally arranged in advance, can be specifically arranged according to the actual conditions of the first earphone and the second earphone;When first When judging submodule 310 judges that the first residual quantity is within the first preset range, citing ground, the second preset range can be set to transport The 5% of row load, the first preset range are the 5% of battery capacity, and the first earphone current residual electricity is the 86% of battery capacity, The current residual electricity of second earphone is the 84% of battery capacity, and the difference of the two is the 2% of battery capacity, and first judges submodule Block 310 can determine whether the first residual quantity within the first preset range, then third judging submodule 321 can then judge the first ear Whether the second residual quantity of the operating load of machine and the second earphone operating load is within the 5% of operating load, if third judges Submodule 321 judges the second residual quantity within the 5% of operating load, then the second distribution sub module 322 is by above-mentioned assignment instructions pair Answering for task is randomly assigned to the first earphone or the second earphone.
Further, referring to Fig. 3, above-mentioned distribution module 300 further includes:
4th judging submodule 323, when for determining second residual quantity not within second preset range, judgement Whether the operating load of first earphone is greater than the operating load of second earphone;
Third distribution sub module 324, for determining that the operating load of first earphone is greater than the fortune of second earphone When row load, the corresponding task of the assignment instructions is distributed into first earphone, it is otherwise, the assignment instructions are corresponding Task distributes to second earphone.
When third judging submodule 321 judges the second residual quantity not within second preset range, at this moment the 4th sentences Disconnected submodule 323 can then judge whether the operating load of the first earphone is greater than the operating load of the second earphone, third distribution The corresponding task of above-mentioned assignment instructions is distributed to the big earphone of operating load by submodule 324, such as when the operation of the first earphone is negative Lotus is greater than the operating load of the second earphone, then the corresponding task of assignment instructions is distributed to the first ear by third distribution sub module 324 Machine is executed by the first earphone;If the operating load of the first earphone is less than the operating load of the second earphone, third distribution sub module The corresponding task of assignment instructions is distributed to the second earphone by 324, is executed by the second earphone.
In the present embodiment, the method that above-mentioned wireless headset distributes task automatically further includes having the first earphone of monitoring and the Two earphone current operating parameters, and can be switched according to above-mentioned current operating parameter and currently execute above-mentioned assignment instructions corresponding The operation object of business, wherein the operation object for currently executing the corresponding task of above-mentioned assignment instructions can be the first earphone or second Earphone, it is specifically, above-mentioned referring to Fig. 2 when the operation object for currently executing the corresponding task of above-mentioned assignment instructions is the first earphone The device that wireless headset distributes task automatically further includes:
Module 400 is monitored, for monitoring the variable condition of first residual quantity and the second residual quantity.
Since the first earphone is carrying out the corresponding task of above-mentioned assignment instructions, execution task needs power consumption to be also required to run Load, so, the first residual quantity and the second residual quantity are all changing, and specifically, monitoring module 400 can be default at interval of one Time monitors the variable condition of first residual quantity and the second residual quantity, and above-mentioned preset time customized can be arranged, such as be set as It 10 seconds, is then monitored once at interval of 10 seconds monitoring modules 400, this preset time can be arranged according to battery capacity, earphone Battery capacity it is more when, time interval can be arranged to relatively long point.
Second judgment module 500, judges whether the variable condition meets the preset condition of exchange operation object.
Switching module 600, when for determining that the variable condition meets the preset condition of exchange operation object, by operation pair As being switched to second earphone from first earphone.
Above-mentioned monitoring module 400 then monitors the variation of first residual quantity and the second residual quantity every a preset time State, it follows which variation the first residual quantity and the second residual quantity have occurred, to obtain the first current residual quantity and work as The second preceding residual quantity, according to above-mentioned preset rules, the second judgment module 500 may determine that current the first residual quantity and second poor Whether whether amount meets the preset condition of exchange operation object, i.e., need currently performed task being transferred to the second earphone.Tool Body, if the first judging submodule 310 judge current the first residual quantity in the first preset range, third judging submodule The second current residual quantity of 321 judgements whether in the second preset range, if the second current residual quantity in the second preset range, at this moment the One earphone continues to execute above-mentioned task.If third judging submodule 321 judge the second current residual quantity not in the second preset range, Then the 4th judging submodule 323 judges whether the operating load of the first earphone is greater than the operating load of the second earphone, if so, That is the second judgment module 500 judges that the first current residual quantity and the second current residual quantity do not meet the default item of operation object Part, at this moment the first earphone continues to execute above-mentioned task, if it is not, i.e. the second judgment module 500 judge current the first residual quantity and The second current residual quantity meets the preset condition of operation object, and at this moment above-mentioned task is transferred to the second earphone by the first earphone, is cut Mold changing block 600 will run object and be switched to the second earphone from the first earphone.If the first judging submodule 310 judges current first Residual quantity is not in the first preset range, then second judgment submodule 320 judges whether the first earphone current residual electricity is greater than The remaining capacity of two earphones, if so, the second judgment module 500 judges that the first current residual quantity and the second current residual quantity do not have There is the preset condition for meeting operation object, at this moment the first earphone continues to execute above-mentioned task, if second judgment submodule 320 judges First earphone current residual electricity whether less than the second earphone remaining capacity, then the second judgment module 500 judges current One residual quantity and the second current residual quantity meet the preset condition of operation object, and at this moment above-mentioned task is transferred to the by the first earphone Two earphones, switching module 600 will run object and be switched to the second earphone from the first earphone, and specifically, switching module 600 will be above-mentioned Task data is transferred to the second earphone by radio channel, and the second earphone executes the task after receiving, thus is avoided that the first earphone The task power consumption for executing high load capacity for a long time is excessive, and also improves the response speed of other tasks.
The data of above-mentioned task can be transmitted by low-consumption wireless channel, such as be passed by low-power consumption bluetooth It is defeated.
In conclusion wireless headset provided by the invention distributes the method and device thereof of task automatically, it is complete using function Identical earphone, determines a certain earphone by mutual communication to execute task, when not only can be long to avoid same earphone Between execute the task of the same high load capacity, cause that the speed for responding other tasks is slow, effect is poor, and reduce consumption rate.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of method that wireless headset distributes task automatically, which is characterized in that wireless headset include the first earphone and with institute State the first earphone communication connection the second earphone, the method that the wireless headset distributes task automatically, including:
First earphone receives assignment instructions;
Judge whether the operating load of the corresponding task of the assignment instructions is greater than default operating load;
If so, according to the current operating parameter of the current operating parameter of first earphone got and second earphone Distribute the assignment instructions corresponding task.
2. the method that wireless headset as described in claim 1 distributes task automatically, which is characterized in that the institute that the basis is got State described assignment instructions corresponding of the current operating parameter distribution of the current operating parameter and second earphone of the first earphone The step of business, including:
Judge the current residual electricity of first earphone and the current residual electricity of second earphone the first residual quantity whether Within the first preset range;
If first residual quantity not within first preset range, judges that the current residual electricity of first earphone is The no current residual electricity greater than second earphone;
If so, the corresponding task of the assignment instructions is distributed into first earphone, it is otherwise, the assignment instructions are corresponding Task distribute to second earphone.
3. the method that wireless headset as claimed in claim 2 distributes task automatically, which is characterized in that judgement first ear Whether the first residual quantity of the current residual electricity of machine and the current residual electricity of second earphone is within the first preset range The step of after, including:
If first residual quantity within first preset range, judges the operating load and described the of first earphone Whether the second residual quantity of the operating load of two earphones is within the second preset range;
If the corresponding task of the assignment instructions is randomly assigned to by second residual quantity within second preset range First earphone or second earphone.
4. the method that wireless headset as claimed in claim 3 distributes task automatically, which is characterized in that judgement first ear The step of whether the second residual quantity of the operating load of the operating load of machine and second earphone within the second preset range it Afterwards, including:
If second residual quantity not within second preset range, judges whether the operating load of first earphone is big In the operating load of second earphone;
If so, the corresponding task of the assignment instructions is distributed into first earphone, it is otherwise, the assignment instructions are corresponding Task distribute to second earphone.
5. the method that wireless headset distributes task automatically as described in claim 3 or 4, which is characterized in that current to execute described appoint It is first earphone, the current fortune for first earphone that the basis is got that business, which instructs the operation object of corresponding task, The current operating parameter of row parameter and second earphone distributed after the step of assignment instructions corresponding task, including:
Monitor the variable condition of first residual quantity and the second residual quantity;
Judge whether the variable condition meets the preset condition of exchange operation object;
If so, operation object is switched to second earphone from first earphone.
6. the device that a kind of wireless headset distributes task automatically, which is characterized in that including the first earphone and with first ear Second earphone of machine communication connection, first earphone include:
Receiving module, for receiving assignment instructions;
Judgment module, for judging whether the operating load of the corresponding task of the assignment instructions is greater than default operating load;
Distribution module, when for determining that the operating load of the corresponding task of the assignment instructions is greater than default operating load, according to The current operating parameter of first earphone got and the current operating parameter of second earphone distribute the task and refer to Enable corresponding task.
7. the device that wireless headset as claimed in claim 6 distributes task automatically, which is characterized in that the distribution module packet It includes:
First judging submodule, for judging the current residual electricity of first earphone and the current residual of second earphone Whether the first residual quantity of electricity is within the first preset range;
Second judgment submodule when for determining first residual quantity not within first preset range, judges described Whether the current residual electricity of one earphone is greater than the current residual electricity of second earphone;
First distribution sub module, for determining that the current residual electricity of first earphone is greater than the current surplus of second earphone When remaining electricity, the corresponding task of the assignment instructions is distributed into first earphone, it is otherwise, the assignment instructions are corresponding Task distributes to second earphone.
8. the device that wireless headset as claimed in claim 7 distributes task automatically, which is characterized in that the distribution module, also Including:
Third judging submodule judges described first when for determining that first residual quantity is within first preset range Whether the second residual quantity of the operating load of the operating load of earphone and second earphone is within the second preset range;
Second distribution sub module refers to the task when for determining that second residual quantity is within second preset range Corresponding task is enabled to be randomly assigned to first earphone or second earphone.
9. the device that wireless headset as claimed in claim 8 distributes task automatically, which is characterized in that the distribution module, also Including:
4th judging submodule when for determining second residual quantity not within second preset range, judges described Whether the operating load of one earphone is greater than the operating load of second earphone;
Third distribution sub module, for determining that the operating load of first earphone is greater than the operating load of second earphone When, the corresponding task of the assignment instructions is distributed into first earphone, otherwise, by the corresponding task point of the assignment instructions Second earphone described in dispensing.
10. the device that wireless headset as claimed in claim 8 or 9 distributes task automatically, which is characterized in that described in current execution The operation object of the corresponding task of assignment instructions is first earphone, and the wireless headset distributes the device of task also automatically Including:
Module is monitored, for monitoring the variable condition of first residual quantity and the second residual quantity;
Judgment module, for judging whether the variable condition meets the preset condition of exchange operation object;
Switching module when for determining that the variable condition meets the preset condition of exchange operation object, will run object from institute It states the first earphone and is switched to second earphone.
CN201810489723.0A 2018-05-21 2018-05-21 Wireless headset distributes the method and device thereof of task automatically Pending CN108829513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810489723.0A CN108829513A (en) 2018-05-21 2018-05-21 Wireless headset distributes the method and device thereof of task automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810489723.0A CN108829513A (en) 2018-05-21 2018-05-21 Wireless headset distributes the method and device thereof of task automatically

Publications (1)

Publication Number Publication Date
CN108829513A true CN108829513A (en) 2018-11-16

Family

ID=64148015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810489723.0A Pending CN108829513A (en) 2018-05-21 2018-05-21 Wireless headset distributes the method and device thereof of task automatically

Country Status (1)

Country Link
CN (1) CN108829513A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819576A (en) * 2005-02-11 2006-08-16 国际商业机器公司 Client / server application task allocation method and application serving system
US20110022203A1 (en) * 2009-07-24 2011-01-27 Sungmin Woo Method for executing menu in mobile terminal and mobile terminal thereof
CN105630457A (en) * 2015-10-16 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Earphone based control method and system
CN107590002A (en) * 2017-09-15 2018-01-16 东软集团股份有限公司 Method for allocating tasks, device, storage medium, equipment and distributed task scheduling system
CN107708014A (en) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone
CN107820155A (en) * 2017-11-08 2018-03-20 深圳市沃特沃德股份有限公司 Control method, device and the wireless headset of wireless headset

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819576A (en) * 2005-02-11 2006-08-16 国际商业机器公司 Client / server application task allocation method and application serving system
US20110022203A1 (en) * 2009-07-24 2011-01-27 Sungmin Woo Method for executing menu in mobile terminal and mobile terminal thereof
CN105630457A (en) * 2015-10-16 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Earphone based control method and system
CN107590002A (en) * 2017-09-15 2018-01-16 东软集团股份有限公司 Method for allocating tasks, device, storage medium, equipment and distributed task scheduling system
CN107708014A (en) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone
CN107820155A (en) * 2017-11-08 2018-03-20 深圳市沃特沃德股份有限公司 Control method, device and the wireless headset of wireless headset

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘琨: "《云计算的负载均衡机制研究》", 30 April 2018 *
屠梅曾: "《项目管理》", 31 January 2008, 格致出版社 *

Similar Documents

Publication Publication Date Title
CN110198275B (en) Flow control method, system, server and storage medium
TWI708521B (en) Method for adjusting terminal capability, network side equipment and terminal
CN106658366A (en) Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment
TW200539722A (en) Method and apparatus optimizing receipt of call/broadcast paging messages by self-powered wireless communications devices
CN107801222A (en) Bluetooth and WiFi switching method and system, client and wireless access point equipment
MX2010011906A (en) System and method for heartbeat signal generation.
US20150223252A1 (en) Resource Allocation Method and Device
CN112821963B (en) Method and device for reducing interference to loudspeaker and electronic equipment
CN104333879B (en) A kind of load share method and device
CN104778055A (en) Method and device for displaying progress bar
CN104469860A (en) Resource distributing method and device
WO2020117854A1 (en) Low-power network node for a low-power, wide area (lpwa) internet of things (iot) system
US20230309020A1 (en) Communication method, terminal device, and storage medium
CN111988771A (en) Wireless connection control method and device and electronic equipment
KR20060012900A (en) Method for saving mobile terminal
CN108513196A (en) A kind of wireless headset and its matching method
CN111343541A (en) Control method and device of wireless earphone, mobile terminal and storage medium
CN108829513A (en) Wireless headset distributes the method and device thereof of task automatically
CN107623929A (en) Communicator, network equipment and keep out of the way control method
CN113965981B (en) Power consumption control method and device
CN103702320A (en) Method and device for allocating C-RNTIs (cell radio network temporary identifiers)
CN106412625A (en) Multimedia synchronous playing method, device and system and terminal
CN106465454A (en) Wireless communication system and communication method
CN104796973B (en) Radio reception device control method and radio reception device
CN103809727B (en) The power-saving processing method of a kind of mobile terminal, system and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication