Smart machine and task scheduling perform control method and device
Technical field
The present invention relates to communication technical field, control method and device are performed more particularly, to a kind of task scheduling.
Background technology
Modern society's work dog-eat-dog, in order to meet the productivity of society, it has to operating efficiency is improved, wherein formulating
Task scheduling table is so that a kind of well-regulated effective measures of thing.But after the completion of preferable task scheduling table is formulated, due to
Cannot Supervised Control assigned tasks planning chart execution, once task scheduling table cannot be smoothly completed, user often selects to shelve
The execution of the task scheduling table, forms the huge wasting of resources.
, there is human factor and machine factor in the execution of task scheduling, its essence is shown in machine factor.One side machine
Device needs rational task scheduling plan to process the work in every load of itself, and on the other hand, machine is by rational task
Dispatch to guide artificial operation.
Prior art can only set time alarm of the realization to task scheduling according to user, but cannot scheduler task plan
Executive process.
The content of the invention
In view of the above problems, primary and foremost purpose of the invention is to provide a kind of task scheduling to perform control method and corresponding
Device.
Another object of the present invention is to provide a kind of smart machine for performing the method for above-mentioned primary and foremost purpose.
To achieve the above object, the present invention is adopted the following technical scheme that:
In a first aspect, the invention provides a kind of method that task scheduling performs control, comprising the following steps:
Task scheduling table is received, the task scheduling table includes at least one TU task unit, and the TU task unit includes task
Information, the mission bit stream corresponding execution time and task priority;
All TU task units are converted into one or more total length of time identical tasks by its execution time span to refer to
Order bag, each assignment instructions bag is respectively provided with identical structure, comprising the first task time period being associated with the mission bit stream, the
Two task times section and the audio mode of the task priority determination according to the TU task unit;
Start timer, when the task time section in system time information and certain assignment instructions bag matches, send with
The corresponding task start instruction of task time section, and play the audio text determined according to the audio mode of the assignment instructions bag
Part.
With reference in a first aspect, the present invention also comprises the following steps in the first implementation of first aspect:In response to
The instruction of the total length of time of extension current task instruction bag, the first task time period of extension current task instruction bag
And/or the second task time section, and between accordingly postponing on startup on startup time of remaining assignment instructions bag for leaning backward.Just
The execution time of TU task unit is adjusted the need for according to task, the flexibility of task execution time is improved.
With reference in a first aspect, the present invention also comprises the following steps in second implementation of first aspect:In response to
The instruction of the task time segment length of regulation current task instruction bag, in the total length of time for keeping the assignment instructions bag not
In the case of change, first task time period and the time span of the second task time section that adjustment current task instruction is wrapped.
With reference in a first aspect, the present invention also comprises the following steps in the third implementation of first aspect:In response to
Shorten the instruction of the total length of time of current task instruction bag, reduce the first task time period of current task instruction bag
And/or the second task time section, and between accordingly adjusting on startup on startup time of remaining assignment instructions bag for leaning backward make
It is performed in advance.
With reference in a first aspect, the present invention is in the 4th kind of implementation of first aspect, also including a previous step:
The user interface for editing the plan target table is shown in terminal, the editor for carrying out the plan target table.Increase
The acquiring way of task scheduling table, improves the flexibility of task scheduling table acquisition.
With reference in a first aspect, the present invention also comprises the following steps in the 5th kind of implementation of first aspect:Continuous
After performing several assignment instructions bags of predetermined quantity, after performing rest task to scheduled time length, restart follow-up appointing
Business instruction bag.Avoid machine to operate for a long time, reduce the execution load of machine.
With reference in a first aspect, the present invention also includes in the 6th kind of implementation of first aspect:At least one is obtained to pass
User's sign data of sensor collection, user psychology Status Type is judged according to the sign data, according to user psychology state class
Type, accordingly adjusts the play parameter of the audio.Realize the automation that audio plays regulation.
With reference to the 6th kind of implementation of first aspect, the present invention is described in the 7th kind of implementation of first aspect
User's sign packet includes the one kind or any several in heart rate, pulse, body temperature, blood pressure data.
With reference to the 6th kind of implementation of first aspect, the present invention is described in the 8th kind of implementation of first aspect
Judge that user psychology Status Type includes, whether user psychology state is judged in passive states, when the user psychology state
When type list requisition family is in passive states, with the broadcast state of the play parameter combination regulation audio.Improve man-machine friendship
Mutual property, is conducive to lifting tasks carrying efficiency.
With reference to the 8th kind of implementation of first aspect, the present invention is described in the 9th kind of implementation of first aspect
Parameter combination includes any one or more combination in volume, velocity of sound, tone, tone color play parameter.
With reference in a first aspect, the present invention is in the tenth kind of implementation of first aspect, the appointing according to TU task unit
The audio mode that business priority determines includes, is that different audio modes pre-sets corresponding audio file type, every kind of
Audio file type includes at least one audio file, during broadcasting, the corresponding audio file of random/sequential broadcasting.Increased
Audio plays the flexibility of control.
With reference in a first aspect, the present invention is in a kind of the tenth implementation of first aspect, the task scheduling table is carried
Hand over to server and perform described conversion, to obtain the assignment instructions bag after conversion.
With reference in a first aspect, the present invention is in the 12nd kind of implementation of first aspect, the task start instruction bag
Include and performing terminal display startup prompting interface.
Second aspect, the invention provides the device that a kind of task scheduling performs control, comprises the following steps:
Receiver module, for receiving task scheduling table, the task scheduling table includes at least one TU task unit, the task
Unit includes mission bit stream, the mission bit stream corresponding execution time and task priority;
Modular converter, one or more total length of times are converted to for all TU task units to be performed into time span by it
Identical assignment instructions bag, each assignment instructions bag is respectively provided with identical structure, comprising first be associated with the mission bit stream
The audio mode that task time section, second time period and the task priority according to the TU task unit determine;
Starting module, for starting timer, when the task time section phase in system time information with certain assignment instructions bag
During matching, the task start instruction corresponding with task time section is sent, and play according to the audio mould of the assignment instructions bag
The audio file that formula determines.
With reference to second aspect, the present invention also includes in the first implementation of second aspect:
Extension module, the extension module is used for the finger of the total length of time in response to extension current task instruction bag
Order, the first task time period of extension current task instruction bag and/or the second task time section, and accordingly postpone on startup
Between on startup time of remaining assignment instructions bag for leaning backward.
With reference to second aspect, the present invention also includes in second implementation of second aspect:
Adjustment module, the adjustment module is used for the task time segment length in response to regulation current task instruction bag
Instruction, keep the assignment instructions bag total length of time it is constant in the case of, adjustment current task instruction bag it is first
Business time period and the time span of the second task time section.
With reference to second aspect, the present invention also includes in the third implementation of second aspect:
Shorten module, the shortening module is used for the finger of the total length of time in response to shortening current task instruction bag
Order, reduces first task time period and/or the second task time section of current task instruction bag, and accordingly adjusts on startup
Between on startup time of remaining assignment instructions bag for leaning backward it is performed in advance.
It is of the invention in the 4th kind of implementation of second aspect with reference to second aspect, also including a previous step:
Show that the user interface for editing the plan target table is used to carry out the editor of the plan target table in terminal.
With reference to second aspect, the present invention also comprises the following steps in the 5th kind of implementation of second aspect:Continuous
After performing several assignment instructions bags of predetermined quantity, after performing rest task to scheduled time length, restart follow-up appointing
Business instruction bag.
With reference to second aspect, the present invention also includes in the 6th kind of implementation of second aspect:
User's sign data of at least one sensor collection is obtained, user psychology state class is judged according to the sign data
Type, according to user psychology Status Type, accordingly adjusts the play parameter of the audio.
With reference to the 6th kind of implementation of second aspect, the present invention is described in the 7th kind of implementation of second aspect
User's sign packet includes the one kind or any several in heart rate, pulse, body temperature, blood pressure data.
With reference to the 6th kind of implementation of second aspect, the present invention is described in the 8th kind of implementation of second aspect
Judge that user psychology Status Type includes, whether user psychology state is judged in passive states, when the user psychology state
When type list requisition family is in passive states, with the broadcast state of the play parameter combination regulation audio.
With reference to the 8th kind of implementation of second aspect, the present invention is described in the 9th kind of implementation of second aspect
Parameter combination includes any one or more combination in volume, velocity of sound, tone, tone color play parameter.
It is of the invention in the tenth kind of implementation of second aspect with reference to second aspect, the appointing according to TU task unit
The audio mode that business priority determines includes, is that different audio modes pre-sets corresponding audio file type, every kind of
Audio file type includes at least one audio file, during broadcasting, the corresponding audio file of random/sequential broadcasting.
With reference to second aspect, the present invention is described by task scheduling table hair in a kind of the tenth implementation of second aspect
Deliver to cloud server and perform described conversion, to obtain the assignment instructions bag after conversion.
With reference to second aspect, the present invention in the 12nd kind of implementation of second aspect, wrap by the task start instruction
Include and performing terminal display startup prompting interface.
The third aspect, is server or terminal computer the invention provides a kind of smart machine, including processor, should
The first task scheduling described in the 12nd kind of implementation that processor is used to perform first aspect performs control method
Step.
Relative to prior art, the technical scheme that the present invention is provided at least has advantages below:
All TU task units are performed time span and are converted to one or more assignment instructions bags, each task by the present invention by it
Instruction bag is respectively provided with identical structure, comprising the first task time period, the second task time that are associated with the mission bit stream
Section and the audio mode that determines of task priority according to the TU task unit so that TU task unit more specificization in time,
TU task unit is divided into the balanced service load for performing equipment of method that different time periods perform.
The present invention plays the audio text determined according to the audio mode of the assignment instructions bag while TU task unit is started
Part, realizes the automatic broadcasting of audio file, increased interest of the user in task implementation procedure.
In task scheduling implementation procedure, the instruction in response to regulation current task instruction bag adjusts task time to the present invention
Section, increased the controllability of tasks carrying process.
The present invention judges user psychology Status Type in task scheduling implementation procedure according to sign data, according to user
Psychological condition type accordingly adjusts the play parameter of audio, the automation that audio plays regulation is realized, while improve man-machine
Interactivity, improves the execution efficiency of task.
The aspects of the invention or other aspects can more straightforwards in the following description.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those skilled in the art, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings
Figure.
Fig. 1 shows the method flow diagram that control is performed for task scheduling of one embodiment of the invention.
Fig. 2 shows the terminal block diagram that control is performed for task scheduling of one embodiment of the invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention.
In some flows of description in description and claims of this specification and above-mentioned accompanying drawing, contain according to
Multiple operations of particular order appearance, but it should be clearly understood that these operations can not be according to the suitable of its appearance herein
Sequence is performed or executed in parallel, the sequence number such as 101,102 etc. of operation, is only used for distinguishing each different operation, sequence number
Any execution sequence is not represented for itself.In addition, these flows can include more or less operation, and these operations can
To perform in order or executed in parallel.It should be noted that " first ", " second " herein etc. describes, it is for distinguishing not
Same message, equipment, module etc., does not represent sequencing, and it is different types also not limit " first " and " second ".
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Mission bit stream is the event content to be performed such as to preplan.Mission bit stream can be on the terminal device user behaviour
Make to be edited on the webpage of interface or cloud server.
Assignment instructions bag is the set of some operational orders.Each assignment instructions bag all have identical structure and it is fixed when
Between total length, by the first task time period, the second task time section and according to task priority determine audio mode constitute,
For example:Enabled instruction, when system time is matched with the temporal information of task time section, sends enabled instruction to terminal device.
TU task unit is the event for planning to be performed in certain time period, including task execution content, perform the time, artificial draw
The task priority divided.One TU task unit can be divided into one or more assignment instructions bags according to the execution time span of task.
The transfer process that TU task unit is converted to assignment instructions bag can complete be performed in server end in terminal device.
The list that task scheduling table is made up of one or more task scheduling units.
Embodiment one
The task scheduling of the present embodiment performs the main realization in terminal computer of control method, and detailed implementation please join
Read Fig. 1.The method comprises the following steps:
S10, receives task scheduling table, and the task scheduling table includes at least one TU task unit, and the TU task unit is included
Mission bit stream, the mission bit stream corresponding execution time and task priority;
Specifically, the user interface for editing task scheduling table is shown on terminal interface, the task scheduling table is included
At least one TU task unit, the structure of each TU task unit is identical, comprising mission bit stream, the execution time of the mission bit stream and appoint
Business priority, will edit the task scheduling table for completing and stores in terminal device.
Table 1 is a kind of example of task scheduling table, and Details as Follows:
Sequence number |
Mission bit stream |
The execution time |
Task priority |
1 |
Preview mathematics chapter 1 |
8:30~9:30 |
2 |
2 |
Do English operation |
9:30~11:00 |
1 |
3 |
… |
… |
… |
All TU task units are performed time span and are converted to one or more total length of time identicals times by S11 by it
Business instruction bag, each assignment instructions bag is respectively provided with identical structure, comprising the first task time being associated with the mission bit stream
The audio mode that section, the second task time section and the task priority according to the TU task unit determine;
Specifically, the TU task unit in task scheduling table is converted into assignment instructions bag sequentially in time, each task
Instruction bag is respectively provided with identical structure, comprising the first task time period, the second task time that are associated with the mission bit stream
Section and the audio mode of the priority determination according to the TU task unit, the first task time period in each assignment instructions bag add
The total length of time of upper second task time section is identical.For example:The total length of time for setting two sections of task time sections is 30 minutes
Or 1 hour.
Preferably, the priority of the TU task unit is divided according to difficulty of implementation set in advance, is different priorities
TU task unit adds different audio modes, there are one or more different audio types, Yi Zhongyin under an audio mode
Frequency type comprises at least an audio file.
Table 2 is a kind of example of audio mode, and Details as Follows:
After the execute instruction of certain TU task unit is received, according to the play rules for pre-setting, random or played in order is deposited
The audio file stored in storage unit.
The corresponding execution time span of each TU task unit is different, and whether according to it TU task unit is performed into time span
The assignment instructions bag described in one or more is converted to more than predetermined total length of time.
Specifically, if the execution time span of TU task unit is not less than the total length of time for setting, by the task
Cell translation is an assignment instructions bag;If the execution time span of TU task unit exceedes the total length of time of setting,
The TU task unit is converted into multiple tasks unit.
For example:When the total length of time of each assignment instructions bag is set to 30 minutes, the first task time period is set to
The time period of task is performed, the second task time section is to perform time period of rest task, if TU task unit is held
The row time is 20 minutes, and the TU task unit is converted into 1 assignment instructions bag, if an execution time for TU task unit is 1
Hour, the TU task unit is converted into 2 assignment instructions bags.
Table 3 is a kind of example of TU task unit, and Details as Follows:
S12, starts timer, when the task time section in system time information and certain assignment instructions bag matches, hair
Send the task start corresponding with task time section to instruct, and play the sound determined according to the audio mode of the assignment instructions bag
Frequency file.
Wherein, timer is the monitoring module being monitored to the time, when system time and the temporal information phase of setting
Timing, triggers default operational order.
When the task time section in system time information and certain assignment instructions bag matches, terminal display task start
Information alert, after receiving confirmation, in response to the corresponding enabled instruction of task time section, and in memory cell really
The fixed audio mode corresponding with the priority, according to the play rules for pre-setting, at random or the played in order audio mode
Under audio file.
Described enabled instruction, in one embodiment, in can be contained in described mission bit stream, for example, in table 2
When " previewing mathematics chapter 1 ", the corresponding instruction for starting mathematical studying software can be sent, similarly, can start and make English work
Industry software part or the instruction of web page interlinkage, thus, this step can both serve artificial operation, can also serve machinery operation.
Specifically, in task implementation procedure, if certain TU task unit is not completed within the execution time of plan, terminal shows
Whether the prompt message of the total length of time of current task instruction bag is extended, after receiving confirmation, in response to extension
Current task instruction bag the total length of time instruction, extension current task instruction bag the first task time period or/and
Second task time section, the startup time of remaining assignment instructions bag that the startup time of correspondingly postponing leans backward.
In task implementation procedure, if certain TU task unit is fulfiled ahead of schedule within the execution time of plan, terminal is displayed whether
Shorten the prompt message of the total length of time of current task instruction bag, it is current in response to shortening after receiving confirmation
The instruction of the total length of time of assignment instructions bag, reduces the first task time period or/and second of current task instruction bag
Task time section, correspondingly startup time of remaining assignment instructions bag that the pre-cooling time leans backward.
In task implementation procedure, if the task time section of certain TU task unit needs regulation, terminal displays whether that regulation is worked as
The prompt message of the task time section of preceding assignment instructions bag, after receiving confirmation, refers in response to regulation current task
The instruction of the task time segment length of bag is made, in the case where keeping the total length of time constant, current task is adjusted
The time span of first task time period and the second task time section of bag is instructed, influence is had no on other TU task units.
Three kinds of above-mentioned situations, be strain practical application in be likely to occur the need for adjust TU task unit the execution time
Situation, embodies the elasticity during task scheduling, improve TU task unit execution flexibility, while so that man-machine interaction more
Plus it is convenient, improve the intelligence degree of task scheduling.
After the assignment instructions bag for being continuously finished predetermined amount, rest task is performed, the task includes the execution time
Length or/and corresponding incentive measure, restart follow-up assignment instructions bag after the completion of the task.For example:Continuously perform 4
After assignment instructions bag, set and stop task process 20 minutes, correspondingly, the startup time of follow-up work instruction bag is postponed 20 points
Clock.
Preferably, in task implementation procedure, terminal gathers user's sign data by built-in at least one sensor,
The one kind or any several of the sign data including heart rate, pulse, body temperature, blood pressure, blood sugar etc. in data, examines according to sensor
The sign data of survey judges the current psychological condition of user, and the psychological condition includes positive, passive.
In the present embodiment method, can be analyzed with default normal data by the data that will be collected and obtained
The current psychological condition of user, default normal data can be a numerical value, or one section of number range.
Specifically, when the heart rate pulse data that active user is gathered by method for reflecting infrared light, the heart rate that will be collected
Data are contrasted with default heart rate normal data, are obtained the current mood states of user and are:It is excited, low or normal.It is default
Heart rate data when heart rate normal data can be tranquil user, judges that the current psychological condition of user is product less than the preset data
Pole, judges the current psychological condition of user for passive less than the preset data.
Specifically, using the pressure sensor test current blood pressure data of user, by the blood pressure data that will collect with
Default normal arterial pressure data are contrasted, and it is positive or passiveness to obtain the current psychological condition of user.
Specifically, test the current temperature data of user using temperature sensor, by the temperature data that will collect with it is pre-
Put normal body temperature data to be contrasted, obtaining the current psychological condition of user is:It is actively or passive.
Specifically, when the current psychological condition of user is for passiveness, with the first parameter combination regulation current audio file
Broadcast state;When the current psychological condition of user is positive, the broadcasting shape of current audio file is adjusted with the second parameter combination
State.
Preferably, any one or many of the parameter combination including volume, velocity of sound, tone, tone color etc. in play parameter
Item combination.
For example:It is changed into passive states when psychological condition of the user in task process is performed is detected, sends increase and broadcast
Playback amount, accelerate velocity of sound, the combined command such as raise the tone and adjust the broadcast state of current audio file, so as to reach excitation user
The purpose of state.
Embodiment two
In order to illustrate that task scheduling of the invention performs the detailed implementation of the method for control, this method also exists another
Implementation method is planted, the task scheduling of the present embodiment performs control method and mainly realizes that specific implementation procedure is as follows in the server:
S10, receives task scheduling table, and the task scheduling table includes at least one TU task unit, and the TU task unit is included
Mission bit stream, the mission bit stream corresponding execution time and task priority;
The task scheduling table that the editor that received server-side terminal device is uploaded completes.
Table 4 is a kind of example of task scheduling table, and Details as Follows:
Sequence number |
Mission bit stream |
The execution time |
Task priority |
1 |
Preview mathematics chapter 1 |
8:30~9:30 |
2 |
2 |
Do English operation |
9:30~11:00 |
1 |
3 |
… |
… |
… |
All TU task units are performed time span and are converted to one or more total length of time identicals times by S11 by it
Business instruction bag, each assignment instructions bag is respectively provided with identical structure, comprising the first task time period related to the mission bit stream,
Second task time section and the audio mode of the task priority determination according to the TU task unit;
Specifically, the TU task unit in task scheduling table is converted to assignment instructions bag by server sequentially in time, often
Individual assignment instructions bag is respectively provided with identical structure, comprising the first task time period being associated with the mission bit stream, second
Business time period and the audio mode determined according to the priority of the TU task unit.
Preferably, the difficulty of implementation for being set according to user divides the priority of the TU task unit, is different priorities
Task adds different audio modes, there may be one or more different audio types, a kind of audio under an audio mode
An audio file is comprised at least in type, when the TU task unit of the priority is performed, server end pushes corresponding type
Audio file to terminal.
Table 5 is the example of audio mode, and Details as Follows:
The first task time period in each assignment instructions bag is identical plus the total length of time of the second task time section, example
Such as:The total length of time for setting two sections of task time sections is 30 minutes, and the total length of time of each assignment instructions bag is 30 points
Clock, the length for setting the first task time period is 25 minutes, and the length of the second task time section is 5 minutes.
The corresponding execution time span of each TU task unit is different, and it is pre- whether the execution time according to TU task unit exceedes
Fixed total length of time, one or more assignment instructions bags are decomposed into by TU task unit.
Specifically, if the execution time span of TU task unit is not less than the total length of time for setting, by the task
Cell translation is an assignment instructions bag;If the execution time span of TU task unit exceedes the total length of time of setting,
The TU task unit is converted into multiple tasks unit.
For example:When the total length of time of each assignment instructions bag is set to 30 minutes, during the execution of TU task unit
Between be 20 minutes, the TU task unit is converted into 1 assignment instructions bag, if execution time for TU task unit is 1 hour,
The TU task unit is converted into 2 assignment instructions bags.
Table 6 is a kind of example of TU task unit, and Details as Follows:
S12, starts timer, when the task time section in system time information and certain assignment instructions bag matches, hair
Send the task start corresponding with task time section to instruct, and play the sound determined according to the audio mode of the assignment instructions bag
Frequency file.
Wherein, timer is the monitoring module being monitored to the time, when the time letter for detecting system time and setting
When manner of breathing is matched, default operational order is triggered.
Specifically, when the task time section in system time information and certain assignment instructions bag matches, server end hair
Give the enabled instruction of task time section to terminal, the simultaneous selection audio file corresponding with task time section is simultaneously pushed to
Terminal plays.
Specifically, in task implementation procedure, if certain TU task unit is not completed within the execution time of plan, server end
Send the instruction of the total length of time of extension current task instruction bag, the first task time of extension current task instruction bag
Section or/and the second task time section, the startup time of the assignment instructions bag that the startup time of correspondingly postponing leans backward.
In task implementation procedure, if certain TU task unit is fulfiled ahead of schedule within the execution time of plan, server end sends
Shorten the instruction of the total length of time of current task instruction bag, reduce the first task time period of current task instruction bag
Or/and the second task time section, correspondingly startup time of remaining assignment instructions bag that the pre-cooling time leans backward.
In task implementation procedure, if the task time section of certain TU task unit needs regulation, server end sends regulation and works as
The instruction of the task time segment length of preceding assignment instructions bag, in the case where keeping the total length of time constant, adjustment
Other TU task units are had no influence by the first time period of current task instruction bag and the time span of the second task time section.
Three kinds of above-mentioned situations, be strain actual application in be likely to occur the need for adjust TU task unit execution
The situation of time, embodies the elasticity during task scheduling, the flexibility of TU task unit execution is improved, while so that man-machine
Interaction is more facilitated, and improves the intelligence degree of task scheduling.
Detect after terminal has been continuously finished the assignment instructions bag of predetermined amount, send rest instruction to terminal, should
Instruction includes performing time span or/and other incentive measures.For example:Detect terminal device and be continuously finished 4 tasks and refer to
Order bag, sends halt instruction to terminal, and the instruction can allow task process to suspend 20 minutes, correspondingly, follow-up work be instructed
The startup time of bag postpones 20 minutes.
Detect the information of instruction completion, the instruction that transmission startup follow-up work instruction is wrapped to terminal.
Preferably, in task implementation procedure, the user's sign gathered by sensor that received server-side terminal is uploaded
Data, the one kind or any several of the sign data including heart rate, pulse, body temperature, blood pressure, blood sugar etc. in data, according to body
Levy data and judge the current psychological condition of user, the psychological condition includes positive, passive.
In the present embodiment, can be analyzed with default normal data by the data that will be received and obtain user
Current psychological condition, default normal data can be a numerical value, or one section of number range.
Specifically, when the heart rate pulse data that active user is gathered by method for reflecting infrared light, server end will be received
The heart rate data for arriving is contrasted with default heart rate normal data, is obtained the current mood states of user and is:It is excited, low or just
Often.Heart rate data when default heart rate normal data can be tranquil user, judges that user works as front center less than the preset data
Reason state is positive, judges the current psychological condition of user for passive less than the preset data.
Specifically, using the pressure sensor test current blood pressure data of user, by the blood pressure data that will receive with
Default normal arterial pressure data are contrasted, and it is positive or passiveness to obtain the current psychological condition of user.
Specifically, test the current temperature data of user using temperature sensor, by the temperature data that will collect with it is pre-
Put normal body temperature data to be contrasted, obtaining the current psychological condition of user is:It is actively or passive.
Specifically, when the current psychological condition of user is for passiveness, the first parameter combination instruction regulation present video is sent
The broadcast state of file;When the current psychological condition of user is positive, the second parameter combination instruction regulation present video is sent
The broadcast state of file.
Preferably, any one or many of the parameter combination including volume, velocity of sound, tone, tone color etc. in play parameter
Item combination.
For example:When user is detected when the psychological condition in performing task process is passive states, send increase and play
Volume, accelerate velocity of sound, the combined command such as raise the tone and adjust the broadcast state of current audio file, so as to reach excitation user's shape
The purpose of state.
Embodiment three
Foregoing embodiments are adapted to, based on computer modularized thinking, the present invention further provides one kind and foregoing implementation
The corresponding task scheduling of example performs control device.In order to illustrate that task scheduling of the present invention performs the group of the detailed module of device of control
Into, Fig. 2 is referred to, comprised at least with lower module in the present embodiment:
Receiver module 10, modular converter 11, starting module 12, extension module 13, shorten module 14, adjustment module 15, adopt
Collection module 16.Concrete function below for each module is described further:
Receiver module 10, for receiving task scheduling table, the task scheduling table includes at least one TU task unit, described
Business unit includes mission bit stream, the mission bit stream corresponding execution time and task priority;
Preferably, the user interface for editing task scheduling table is shown on terminal interface, the task scheduling table is included
At least one TU task unit, the structure of each TU task unit is identical, comprising mission bit stream, the execution time of the mission bit stream and appoint
Business priority, will edit the task scheduling table for completing and stores in terminal device.
Table 7 is a kind of example of task scheduling table, and Details as Follows:
Sequence number |
Mission bit stream |
The execution time |
Task priority |
1 |
Preview mathematics chapter 1 |
8:30~9:30 |
2 |
2 |
Do English operation |
9:30~11:00 |
1 |
3 |
… |
… |
… |
Modular converter 11, one or more time overall lengths are converted to for all TU task units to be performed into time span by it
Degree identical assignment instructions bag, each assignment instructions bag is respectively provided with identical structure, comprising the be associated with the mission bit stream
The audio mode that one task time section, second time period and the task priority according to the TU task unit determine;
Specifically, the TU task unit in task scheduling table is converted into task sequentially in time in modular converter 11 to refer to
Order bag, each assignment instructions bag is respectively provided with identical structure, comprising the first task time period being associated with the mission bit stream,
Second task time section and the audio mode of the priority determination according to the TU task unit.
Preferably, the TU task unit is divided into different priority according to the difficulty of implementation for pre-setting, is different
The TU task unit of priority adds different audio modes, there are one or more different audio class under a kind of audio mode
A kind of type, audio types comprise at least an audio file.
Table 8 is a kind of example of audio mode, and Details as Follows:
After the execute instruction of certain TU task unit is received, according to the play rules for pre-setting, random or played in order exists
The audio file stored in terminal device.
The first task time period in each assignment instructions bag is identical plus the total length of time of the second task time section, example
Such as:The total length of time for setting two sections of task time sections is 30 minutes or 1 hour.
The corresponding execution time span of each TU task unit is different, and whether according to it TU task unit is performed into time span
The assignment instructions bag described in one or more is converted to more than predetermined total length of time.
Specifically, if the execution time span of TU task unit is not less than the total length of time for setting, by the task
Cell translation is an assignment instructions bag;If the execution time span of TU task unit exceedes the total length of time of setting,
The TU task unit is converted into multiple tasks unit.
For example:When the total length of time of each assignment instructions bag is set to 30 minutes, the first task time period is set to
Make the time period of associated process or thread continuous service, the second task time section for make associated process or thread it is out of service when
Between section, execution time for TU task unit is 20 minutes, and the TU task unit is converted into 1 assignment instructions bag, if one is appointed
The execution time of business unit is 1 hour, and the TU task unit is converted into 2 assignment instructions bags.
Table 9 is a kind of example of TU task unit, and Details as Follows:
Starting module 12, for starting timer, when the task time section in system time information and certain assignment instructions bag
When matching, the task start instruction corresponding with task time section is sent, and play the audio according to the assignment instructions bag
The audio file that pattern determines.
Wherein, timer is the monitoring module being monitored to the time, when system time and the temporal information phase of setting
Timing, triggers default operational order.
When the task time section in detecting system time information and certain assignment instructions bag matches, terminal display task
The information alert of startup, after receiving the confirmation of user's click, in response to the corresponding enabled instruction of task time section,
It is determined that with the task time corresponding audio file of section, according to the play rules for pre-setting, the random or played in order sound
Frequency file.
Extension module 13, in task implementation procedure, if certain TU task unit is not completed within the execution time of plan,
Terminal displays whether the prompt message of the total length of time for extending current task instruction bag, receives the confirmation of user's click
After information, the instruction of the total length of time in response to extending current task instruction catalogue, it is first that extension current task instruction is wrapped
Business time period or/and the second task time section, the startup time of the assignment instructions bag for correspondingly postponing follow-up.
Shorten module 14, in task implementation procedure, if certain TU task unit is complete in advance within the execution time of plan
Into terminal displays whether the prompt message of the total length of time for shortening current task instruction bag, receives user's click
After confirmation, the instruction of the total length of time in response to shortening current task instruction bag reduces current task instruction bag
The first task time period or/and the second task time section, remaining assignment instructions bag that correspondingly the pre-cooling time leans backward
The startup time.
Adjustment module 15, in task implementation procedure, if the task time section of certain TU task unit needs regulation, terminal
Display whether to adjust the prompt message that current task instructs the task time section wrapped, receive the confirmation of user's click
Afterwards, the instruction of the task time segment length wrapped in response to regulation current task instruction, is keeping the total length of time not
In the case of change, first task time period and the time span of the second task time section that adjustment current task instruction is wrapped, to it
His TU task unit has no influence.
Above three module, be strain actual application in be likely to occur the need for adjust TU task unit execution when
Between situation, embody the elasticity during task scheduling, improve TU task unit execution flexibility, while so that man-machine friendship
Mutually more facilitate, improve the intelligence degree of task scheduling.
After the assignment instructions bag for being continuously finished predetermined number, rest task is performed, the task includes performing time span
Or/and corresponding incentive measure, follow-up assignment instructions bag is restarted after the completion of the task.
For example:After 4 assignment instructions bags are continuously finished, set and stop task process 20 minutes, correspondingly, will be follow-up
The startup time of assignment instructions bag postpones 20 minutes.
Acquisition module 16, in task implementation procedure, user being gathered by least one sensor of terminal built-in
Sign data, one kind including heart rate, pulse, body temperature, blood pressure, blood sugar etc. in data of the sign data or any several,
The current psychological condition of user is judged according to the sign data, the psychological condition includes positive, passive.
In the present embodiment method, can be analyzed with default normal data by the data that will be collected and obtained
The current psychological condition of user, default normal data can be a numerical value, or one section of number range.
Specifically, when the heart rate pulse data that active user is gathered by method for reflecting infrared light, the heart rate that will be collected
Data are contrasted with default heart rate normal data, are obtained the current mood states of user and are:It is excited, low or normal.It is default
Heart rate data when heart rate normal data can be tranquil user, judges that the current psychological condition of user is product less than the preset data
Pole, judges the current psychological condition of user for passive less than the preset data.
Specifically, using the pressure sensor test current blood pressure data of user, by the blood pressure data that will collect with
Default normal arterial pressure data are contrasted, and it is positive or passiveness to obtain the current psychological condition of user.
Specifically, test the current temperature data of user using temperature sensor, by the temperature data that will collect with it is pre-
Put normal body temperature data to be contrasted, obtaining the current psychological condition of user is:It is actively or passive.
Specifically, when the current psychological condition of user is for passiveness, with the first parameter combination regulation current audio file
Broadcast state;When the current psychological condition of user is positive, the broadcasting shape of current audio file is adjusted with the second parameter combination
State.
Preferably, any one or many of the parameter combination including volume, velocity of sound, tone, tone color etc. in play parameter
Item combination.
For example:It is changed into passive states when psychological condition of the user in task process is performed is detected, sends increase and broadcast
Playback amount, accelerate velocity of sound, the combined command such as raise the tone and adjust the broadcast state of current audio file, so as to reach excitation user
The purpose of state.
Example IV
The embodiment of the present invention additionally provides terminal device, for convenience of description, only describes related to the embodiment of the present invention
Part, particular technique details is not disclosed, and refer to present invention method part.
The terminal can be to include mobile phone, panel computer, PDA (Personal Digital Assistant, individual digital
Assistant) etc. any terminal device, following explanation is carried out so that terminal is as mobile phone as an example:
Mobile phone includes:Radio frequency (Radio Frequency, RF) circuit, memory, input block, display unit, sensing
The parts such as device, voicefrequency circuit, Wireless Fidelity (wireless fidelity, WiFi) module, processor and power supply.This area
Technical staff is appreciated that above-mentioned handset structure does not constitute the restriction to mobile phone, can include more more than the above or more
Few part, or some parts are combined, or different part arrangements.
Each component parts to mobile phone is specifically introduced below:
RF circuits can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by the descending of base station
After information is received, processor treatment is given;In addition, up data is activation will be designed to base station.Generally, RF circuits include but do not limit
In antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA),
Duplexer etc..Additionally, RF circuits can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can make
With any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is many
Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division
Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service
(Short Messaging Service, SMS) etc..
Memory can be used to store software program and module, and processor is by running software program of the storage in memory
And module, so as to perform various function application and the data processing of mobile phone.Memory can mainly include storing program area and
Storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Playing function, image player function etc.) etc.;Storage data field can be stored and use created data (such as sound according to mobile phone
Frequency evidence, phone directory etc.) etc..Additionally, memory can include high-speed random access memory, non-volatile depositing can also be included
Reservoir, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Input block can be used to receive the numeral or character information of input, and generation is set and work(with the user of mobile phone
Can the relevant key signals input of control.Specifically, input block may include contact panel and other input equipments.Touch surface
Plate, also referred to as touch-screen, user can be collected thereon or neighbouring touch operation (such as user uses finger, stylus etc. any
Operation of the suitable object or annex on contact panel or near contact panel), and driven according to formula set in advance
Corresponding attachment means.Optionally, contact panel may include two parts of touch detecting apparatus and touch controller.Wherein, touch
Touch detection means and detect the touch orientation of user, and detect the signal that touch operation brings, transmit a signal to touch controller;
Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor, and energy
Order that receiving processor is sent simultaneously is performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface acoustic wave
Contact panel is realized Deng polytype.Except contact panel, input block can also include other input equipments.Specifically, its
His input equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), track
One or more in ball, mouse, action bars etc..
Display unit can be used for display by the information of user input or be supplied to the information of user and respectively planting vegetables for mobile phone
It is single.Display unit may include display panel, optionally, can using liquid crystal display (Liquid Crystal Display,
LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) configures display panel.Enter
One step, contact panel can cover display panel, when contact panel is detected thereon or after neighbouring touch operation, send to
Processor is provided accordingly on a display panel with preprocessor with determining the type of touch event according to the type of touch event
Visual output.In some embodiments it is possible to contact panel and display panel is integrated and realize the input of mobile phone and output work
Energy.
Mobile phone may also include at least one sensor, such as optical sensor, motion sensor and other sensors.Specifically
Ground, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to the bright of ambient light
The brightness of display panel secretly is adjusted, proximity transducer can close display panel and/or backlight when mobile phone is moved in one's ear.
Used as one kind of motion sensor, the size of (generally three axles) acceleration, quiet in the detectable all directions of accelerometer sensor
Size and the direction of gravity are can detect that when only, can be used to recognize application (the such as horizontal/vertical screen switching, related trip of mobile phone attitude
Play, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for the gyro that mobile phone can also configure
The other sensors such as instrument, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit, loudspeaker, microphone can provide the COBBAIF between user and mobile phone.Voicefrequency circuit will can be received
Electric signal after the voice data conversion arrived, is transferred to loudspeaker, and being converted to voice signal by loudspeaker exports;On the other hand,
The voice signal of collection is converted to electric signal by microphone, and voice data is converted to after being received by voicefrequency circuit, then by audio number
After being processed according to output processor, through RF circuits being sent to such as another mobile phone, or by voice data export to memory with
Just further treatment.
WiFi belongs to short range wireless transmission technology, mobile phone can help user to send and receive e-mail by WiFi module,
Browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although above-mentioned WiFi moulds
Block, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change the sheet of invention as needed completely
Omitted in the range of matter.
Processor is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is passed through
Operation performs software program and/or module of the storage in memory, and calls data of the storage in memory, performs
The various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor may include one or more
Processing unit;Preferably, processor can integrated application processor and modem processor, wherein, application processor is mainly located
Reason operating system, user interface and application program etc., modem processor mainly processes radio communication.It is understood that
Above-mentioned modem processor can not also be integrated into processor.
Mobile phone also includes the power supply (such as battery) powered to all parts, it is preferred that power supply can be by power management
System is logically contiguous with processor, so as to realize the work(such as management charging, electric discharge and power managed by power-supply management system
Energy.
Although not shown, mobile phone can also will not be repeated here including camera, bluetooth module etc..
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component
Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or
The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
One of ordinary skill in the art will appreciate that all or part of step in realizing above-described embodiment method can be
The hardware of correlation is instructed to complete by program, described program can be stored in a kind of computer-readable recording medium, deposit
Storage media can include:Read-only storage, disk or CD etc..
The method and apparatus that a kind of task scheduling provided by the present invention performs control are described in detail above, it is right
In those of ordinary skill in the art, according to the thought of the embodiment of the present invention, can in specific embodiments and applications
There is change part, in sum, this specification content should not be construed as limiting the invention.
Generally, the technical scheme that the present invention is provided is summarized as follows:
A1. a kind of task scheduling performs control method, comprises the following steps:
Task scheduling table is received, the task scheduling table includes at least one TU task unit, and the TU task unit includes task
Information, the mission bit stream corresponding execution time and task priority;
All TU task units are converted into one or more total length of time identical assignment instructions bags by its execution time,
Each assignment instructions bag is respectively provided with identical structure, comprising the first task time period being associated with the mission bit stream, second
Business time period and the audio mode of the task priority determination according to the TU task unit;
Start timer, when the task time section in system time information and certain assignment instructions bag matches, send with
The corresponding task start instruction of task time section, and play the audio text determined according to the audio mode of the assignment instructions bag
Part.
A2. the task scheduling according to A1 performs control method, also comprises the following steps:In response to extension current task
Instruct the instruction of the total length of time of bag, the first task time period of extension current task instruction bag and/or the second task
Time period, and between accordingly postponing on startup on startup time of remaining assignment instructions bag for leaning backward.
A3. the task scheduling according to A1 performs control method, also comprises the following steps:In response to regulation current task
Instruct bag the task time segment length instruction, keep the assignment instructions bag total length of time it is constant in the case of,
The first task time period of adjustment current task instruction bag and the time span of the second task time section.
A4. the task scheduling according to A1 performs control method, also comprises the following steps:In response to shortening current task
The instruction of the total length of time of bag is instructed, first task time period and/or second task of current task instruction bag is reduced
Time period, and between accordingly adjusting on startup on startup time of remaining assignment instructions bag for leaning backward it is held in advance
OK.
A5. the task scheduling according to A1 performs control method, also including a previous step:Use displayed on the terminals
In the user interface for editing the plan target table, the editor for carrying out the plan target table.
A6. the task scheduling according to A1 performs control method, also comprises the following steps:Continuously performing predetermined quantity
Several assignment instructions bags after, perform rest task to scheduled time length after, restart follow-up assignment instructions bag.
A7. the task scheduling according to A1 performs control method, also includes:Obtain the use of at least one sensor collection
Family sign data, user psychology Status Type is judged according to the sign data, according to user psychology Status Type, accordingly adjusts institute
State the play parameter of audio.
A8. the acquisition user's sign data method according to A7, user's sign packet includes heart rate, pulse, body
One kind or any several in temperature, blood pressure data.
A9. the acquisition user's sign data method according to A7, the judgement user psychology Status Type includes, judges
Whether user psychology state is in passive states, when the user psychology Status Type characterizes user is in passive states, with
The broadcast state of the play parameter combination regulation audio.
A10. the judgement user psychology Status Type method according to A9, the parameter combination includes volume, velocity of sound, sound
Any one or more combination in tune, tone color play parameter.
A11. the task scheduling according to A1 performs control method, and the task priority according to TU task unit determines
Audio mode include, be that different audio modes pre-sets corresponding audio file type, every kind of audio file type
Comprising at least one audio file, during broadcasting, the corresponding audio file of random/sequential broadcasting.
A12. the task scheduling according to A1 performs control method, and the task scheduling table is submitted to cloud server
Described conversion is performed, to obtain the assignment instructions bag after conversion.
A13. the method that the task scheduling according to A1 performs control, the task start instruction is included in execution terminal
Display starts prompting interface.
B14. a kind of task scheduling performs control terminal, comprises the following steps:
Receiver module, for receiving task scheduling table, the task scheduling table includes at least one TU task unit, the task
Unit includes mission bit stream, the mission bit stream corresponding execution time and task priority;
Modular converter, one or more total length of times are converted to for all TU task units to be performed into time span by it
Identical assignment instructions bag, each assignment instructions bag is respectively provided with identical structure, comprising first be associated with the mission bit stream
The audio mode that task time section, second time period and the task priority according to the TU task unit determine;
Starting module, for starting timer, when the task time section phase in system time information with certain assignment instructions bag
During matching, the task start instruction corresponding with task time section is sent, and play according to the audio mould of the assignment instructions bag
The audio file that formula determines.
B15. the task scheduling according to B14 performs control terminal, also includes:
Extension module, the extension module is used for the finger of the total length of time in response to extension current task instruction bag
Order, the first task time period of extension current task instruction bag and/or the second task time section, and accordingly postpone on startup
Between on startup time of remaining assignment instructions bag for leaning backward.
B16. the task scheduling according to B14 performs control terminal, also includes:
Adjustment module, the adjustment module is used for the task time segment length in response to regulation current task instruction bag
Instruction, keep the assignment instructions bag total length of time it is constant in the case of, adjustment current task instruction bag it is first
Business time period and the time span of the second task time section.
B17. the task scheduling according to B14 performs control terminal, also includes:
Shorten module, the shortening module is used for the finger of the total length of time in response to shortening current task instruction bag
Order, reduces first task time period and/or the second task time section of current task instruction bag, and accordingly adjusts on startup
Between on startup time of remaining assignment instructions bag for leaning backward it is performed in advance.
B18. the task scheduling according to B14 performs control terminal, also including a previous step:It is displayed on the terminals
User interface for editing the plan target table, the editor for carrying out the plan target table.
B19. the task scheduling according to B14 performs control terminal, also comprises the following steps:Continuously performing predetermined number
After several assignment instructions bags of amount, after performing rest task to scheduled time length, restart follow-up assignment instructions bag.
B20. the task scheduling according to B14 performs control terminal, also includes:
User's sign data of at least one sensor collection is obtained, user psychology state class is judged according to the sign data
Type, according to user psychology Status Type, accordingly adjusts the play parameter of the audio.
B21. the acquisition user's sign data terminal according to B20, user's sign packet include heart rate, pulse,
One kind or any several in body temperature, blood pressure data.
B22. the acquisition user's sign data terminal according to B20, the judgement user psychology Status Type includes, sentences
Whether disconnected user psychology state is in passive states, when the user psychology Status Type characterizes user is in passive states,
With the broadcast state of the play parameter combination regulation audio.
B23. the judgement user psychology Status Type terminal according to B22, the parameter combination include volume, velocity of sound,
Any one or more combination in tone, tone color play parameter.
B24. the task scheduling according to B14 performs control terminal, and the task priority according to TU task unit is true
Fixed audio mode includes, is that different audio modes pre-sets corresponding audio file type, every kind of audio file class
Type includes at least one audio file, during broadcasting, the corresponding audio file of random/sequential broadcasting.
B25. the task scheduling according to B14 performs control terminal, described to send to cloud service task scheduling table
Device performs described conversion, to obtain the assignment instructions bag after conversion.
B26. the task scheduling according to B14 performs control terminal, and the task start instruction is included in execution terminal
Display starts prompting interface.
C27. a kind of smart machine, is server or terminal computer, and it includes processor, and the processor is used to perform A1
The step of task scheduling described in A13 any one performs control method.