CN104346065B - A kind of data processing method and device - Google Patents
A kind of data processing method and device Download PDFInfo
- Publication number
- CN104346065B CN104346065B CN201310347418.5A CN201310347418A CN104346065B CN 104346065 B CN104346065 B CN 104346065B CN 201310347418 A CN201310347418 A CN 201310347418A CN 104346065 B CN104346065 B CN 104346065B
- Authority
- CN
- China
- Prior art keywords
- state
- instruction
- electronic equipment
- input
- control
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention discloses a kind of data processing method and device, wherein, methods described is applied to an electronic equipment, the electronic equipment has first state and the second state, the first state is different from second state, the electronic equipment is connected with an at least input equipment, and the first input equipment has the first function in the first state of the electronic equipment, and methods described includes:When the detection electronic equipment enters the second state, the first input instruction that first input equipment distributes according to electronic equipment switches to the second function.Using the present invention, the data processing operation that control voice data plays can be at least realized to the electronic equipment for closing screen.
Description
Technical field
The present invention relates to audio play-back technology, more particularly to a kind of data processing method and device.
Background technology
Present many electronic equipments, particularly popular portable user, such as tablet personal computer, smart mobile phone, individual
Digital assistants(PDA)Deng, all support notebook silent a period of time without operation, i.e., in a dormant state when do not interrupt voice data
The function of broadcasting.By taking notebook as an example, above-mentioned voice data can be supported to play work(in the state that notebook screens do not close
Can, if but user is there is still a need for broadcasting music data, is nothing in the case where screen closes after notebook screens are closed
What method was completed, reason is:After notebook screens are closed, all buttons, touch control device are all capped to be led to not realize control sound
The data processing operation of frequency data playback.
Present inventor at least has found exist in the prior art during the embodiment of the present application technical scheme is realized
Following technical problem:
Currently existing scheme is:Screen need to be opened and perform user command.
Using above-mentioned existing scheme, it is also desirable to open screen, also need to opening afterwards and set software to perform the user command
The data processing operation that control voice data plays could be realized.
The content of the invention
In view of this, at least can be to closing it is a primary object of the present invention to provide a kind of data processing method and device
The electronic equipment of screen realizes the data processing operation that control voice data plays.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
A kind of data processing method, methods described are applied to an electronic equipment, the electronic equipment have first state and
Second state, the first state is different from second state, and the electronic equipment is connected with an at least input equipment, and first
Input equipment has the first function in the first state of the electronic equipment, and methods described includes:
When detecting the electronic equipment and entering the second state, first input equipment distributed according to electronic equipment the
One input instruction switches to the second function.
Wherein, methods described also includes:The state change of the electronic equipment is detected.
Wherein, described when the detection electronic equipment enters the second state, first input equipment is set according to electronics
The first input instruction that back-up is matched somebody with somebody switches to the second function, specifically includes:
When the electronic equipment takes wireless connection with first input equipment, detect that electronic equipment generating state becomes
Change and enter the second state, the electronic equipment sends first input instruction being wirelessly transferred;
First input equipment receives first input instruction, and described the is switched to according to first input instruction
Two functions.
Wherein, described when the detection electronic equipment enters the second state, first input equipment is set according to electronics
The first input instruction that back-up is matched somebody with somebody switches to the second function, specifically includes:
When the electronic equipment takes wired connection with first input equipment, detect that electronic equipment generating state becomes
Change and enter the second state, the electronic equipment sends first input instruction of wire transmission;
First input equipment receives first input instruction, and described the is switched to according to first input instruction
Two functions.
Wherein, first input equipment receives first input instruction, is switched to according to first input instruction
After second function, methods described also includes:The control instruction sent according to first input equipment is performed at data
Reason;
The control instruction sent according to first input equipment performs data processing, specifically includes:
When the control instruction is the first instruction, the first data processing is performed;
When the control instruction is the second instruction, the second data processing is performed;
When the control instruction is the 3rd instruction, the 3rd data processing is performed;
When the control instruction is the 4th instruction, the 4th data processing is performed.
Wherein, the control instruction, is specifically included:Single keyboard and keyboard combination input instruction, mouse roller and mouse
Key combination input instruction, handwriting input terminal handwriting input instruction, the instruction of mobile terminal gesture input, mobile terminal roller are defeated
Enter any one in instruction, the hand-written touch-control input instruction of mobile terminal display screen.
Wherein, second state, is specifically included:The lid of detection acts and without the state of dormancy.
A kind of data processing equipment, described device are applied to an electronic equipment, the electronic equipment have first state and
Second state, the first state is different from second state, and the electronic equipment is connected with an at least input equipment, and first
Input equipment has the first function in the first state of the electronic equipment, and described device includes:
Detection unit, for detecting the current state of the electronic equipment;
Switch unit, for when the current state for detecting the electronic equipment enters the second state, according to electronic equipment
First input instruction of distribution switches to the second function.
Wherein, the detection unit, it is further used for detecting the state change of the electronic equipment.
Wherein, the detection unit, it is further used for detecting the change of electronic equipment generating state and enters the second state;
The switch unit, specifically includes transmission sub-unit and receiving subelement;
The transmission sub-unit, for changing in electronic equipment generating state and entering the second state, transmission is wirelessly transferred
First input instruction;
The receiving subelement, for receiving first input instruction, institute is switched to according to first input instruction
State the second function.
Wherein, the detection unit, it is further used for detecting the change of electronic equipment generating state and enters the second state;
The switch unit, specifically includes transmission sub-unit and receiving subelement;
The transmission sub-unit, for changing in electronic equipment generating state and entering the second state, send wire transmission
First input instruction;
The receiving subelement, for receiving first input instruction, institute is switched to according to first input instruction
State the second function.
Wherein, described device also includes:Processing unit, for performing data processing according to control instruction.
Wherein, the processing unit, be further used for the control instruction for first instruction when, perform the first data at
Reason;When the control instruction is the second instruction, the second data processing is performed;When the control instruction is the 3rd instruction, the is performed
Three data processings;When the control instruction is the 4th instruction, the 4th data processing is performed.
Wherein, the control instruction, is specifically included:Single keyboard and keyboard combination input instruction, mouse roller and mouse
Key combination input instruction, handwriting input terminal handwriting input instruction, the instruction of mobile terminal gesture input, mobile terminal roller are defeated
Enter any one in instruction, the hand-written touch-control input instruction of mobile terminal display screen.
Wherein, second state, is specifically included:The lid of detection acts and without the state of dormancy.
The method of the present invention is applied to an electronic equipment, and the electronic equipment has first state and the second state, described
First state is different from second state, and the electronic equipment is connected with an at least input equipment, and the first input equipment is in institute
There is the first function when stating the first state of electronic equipment, methods described includes:
When detecting the electronic equipment and entering the second state, first input equipment distributed according to electronic equipment the
One input instruction switches to the second function.Using the present invention, due to state change can be detected, switched according to the input instruction of distribution
Function, so as to can at least realize the data processing operation of control voice data broadcasting to the electronic equipment for closing screen.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram of the inventive method embodiment two;
Fig. 2 is the implementation process schematic diagram of the inventive method embodiment three;
Fig. 3 is the implementation process schematic diagram of the inventive method example IV;
Fig. 4 is the implementation process schematic diagram of the inventive method embodiment five;
Fig. 5 is the implementation process schematic diagram of the inventive method embodiment six;
Fig. 6 realizes schematic diagram for application example of the present invention;
Fig. 7 is the composition structural representation of apparatus of the present invention embodiment one;
Fig. 8 is the composition structural representation of apparatus of the present invention embodiment two, three.
Embodiment
The implementation to technical scheme is described in further detail below in conjunction with the accompanying drawings.
Embodiment of the method one:
A kind of data processing method of the embodiment of the present invention, methods described are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function in the first state of the electronic equipment, and methods described includes:
When detecting the electronic equipment and entering the second state, first input equipment distributed according to electronic equipment the
One input instruction switches to the second function.
Here, the first input instruction may be embodied in instruction set.
Here, at least one input equipment includes but is not limited to:Mouse, keyboard, and handwriting pad, tablet personal computer, intelligence
Energy mobile terminal such as smart mobile phone etc. possesses the input equipment of hand-write input function.Described possess hand-write input function and be not limited to hand
Write pen input or touch screen interface handwriting input and gesture input.
Here, the electronic equipment includes but is not limited to:Portable notebook etc..
Here, first state includes but is not limited to:Electronic equipment in a dormant state etc., as electronic equipment is not closing screen
Etc. during curtain in a dormant state.
Here, the second state includes but is not limited to:Detect the lid action of electronic equipment and without the state of dormancy
Such as detecting that electronic equipment closes screen Deng the action of, lid, electronic equipment rotates/turn down screen.
Here, the first function includes but is not limited to:Equipment runs the control function of normality, as mouse operation and control chooses function.
So that mouse operation and control chooses function as an example, there is the control that need to further realize, include but is not limited to:The selected control of left button, right button
Selected control of quick functional key etc..
Here, the second function includes but is not limited to:Multimedia control function, as voice data plays control function.
So that voice data plays control function as an example, corresponding audio, which plays control interface, several function keys, and voice data plays control
Function just has several controls that need to further realize, includes but is not limited to:What control, the stopping commenced play out played controls, temporarily
Break the control put, the control of F.F., rewind control, jump to the control of a song, jump to next song
Control, the control of volume adjusting, exit audio and play the control that control interface backs within initial first state such as resting state
System etc..Wherein, these controls that need to further realize are realized by control instruction, are subsequently had and are specifically described, this
Place does not repeat.
Using the present embodiment, due to that can detect state change, at least one input equipment refers to according to being included in for distribution
The input instruction that order is concentrated switches between function, therefore, for first input equipment, with this first input
Equipment, difference in functionality can be realized according to the difference of input instruction, input equipment is redesigned without corresponding difference in functionality, so as to
Unnecessary hardware modification upgrading need not be carried out, so as to save manufacturing cost.
Embodiment of the method two:
A kind of data processing method of the embodiment of the present invention, methods described are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function in the first state of the electronic equipment, as shown in figure 1, described
Method includes:
Step 101, the state change to the electronic equipment detect.
Step 102, when detecting the electronic equipment and entering the second state, first input equipment is according to electronic equipment
First input instruction of distribution switches to the second function.
Here, the first input instruction may be embodied in instruction set.
Here, at least one input equipment includes but is not limited to:Mouse, keyboard, and handwriting pad, tablet personal computer, intelligence
Energy mobile terminal such as smart mobile phone etc. possesses the input equipment of hand-write input function.Described possess hand-write input function and be not limited to hand
Write pen input or touch screen interface handwriting input and gesture input.
Here, the electronic equipment includes but is not limited to:Portable notebook etc..
Here, first state includes but is not limited to:Electronic equipment in a dormant state etc., as electronic equipment is not closing screen
Etc. during curtain in a dormant state.
Here, the second state includes but is not limited to:Detect the lid action of electronic equipment and without the state of dormancy
Such as detecting that electronic equipment closes screen Deng the action of, lid, electronic equipment rotates/turn down screen.
Here, the first function includes but is not limited to:Equipment runs the control function of normality, as mouse operation and control chooses function.
So that mouse operation and control chooses function as an example, there is the control that need to further realize, include but is not limited to:The selected control of left button, right button
Selected control of quick functional key etc..
Here, the second function includes but is not limited to:Multimedia control function, as voice data plays control function.
So that voice data plays control function as an example, corresponding audio, which plays control interface, several function keys, and voice data plays control
Function just has several controls that need to further realize, includes but is not limited to:What control, the stopping commenced play out played controls, temporarily
Break the control put, the control of F.F., rewind control, jump to the control of a song, jump to next song
Control, the control of volume adjusting, exit audio and play the control that control interface backs within initial first state such as resting state
System etc..Wherein, these controls that need to further realize are realized by control instruction, are subsequently had and are specifically described, this
Place does not repeat.
Here, step 101, can also be in step 102 as initialization operation except can be performed before step 102
Perform afterwards, i.e., as terminate judge operation, terminate when reaching some state current function switch except;Or step
101 are all carried out from beginning to end, from initially to terminate the state change of the electronic equipment is detected always.
Using the present embodiment, due to energy multi-angle, the state change of the electronic equipment is detected in all directions, energy
The state of electronic equipment is grasped at any time, to carry out function switch according to demand.Moreover, at least one input equipment is according to distribution
Be included in instruction set in input instruction switched between function, therefore, for first input equipment, use this
Individual first input equipment, difference in functionality can be realized according to the difference of input instruction, be redesigned without corresponding difference in functionality defeated
Enter equipment, without carrying out unnecessary hardware modification upgrading, so as to save manufacturing cost.
Embodiment of the method three:
A kind of data processing method of the embodiment of the present invention, methods described are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function in the first state of the electronic equipment, as shown in Fig. 2 described
Method includes:
Step 201, the state change to the electronic equipment detect.
When step 202, the electronic equipment take wireless connection with first input equipment, detect that electronic equipment is sent out
Raw state change and first input instruction being wirelessly transferred into the second state, the electronic equipment transmission.
Step 203, first input equipment receive first input instruction, are switched according to first input instruction
To second function.
Here, the first input instruction may be embodied in instruction set.
Here, at least one input equipment includes but is not limited to:Mouse, keyboard, and handwriting pad, tablet personal computer, intelligence
Energy mobile terminal such as smart mobile phone etc. possesses the input equipment of hand-write input function.Described possess hand-write input function and be not limited to hand
Write pen input or touch screen interface handwriting input and gesture input.
Here, the electronic equipment includes but is not limited to:Portable notebook etc..
Here, first state includes but is not limited to:Electronic equipment in a dormant state etc., as electronic equipment is not closing screen
Etc. during curtain in a dormant state.
Here, the second state includes but is not limited to:Detect the lid action of electronic equipment and without the state of dormancy
Such as detecting that electronic equipment closes screen Deng the action of, lid, electronic equipment rotates/turn down screen.
Here, the first function includes but is not limited to:Equipment runs the control function of normality, as mouse operation and control chooses function.
So that mouse operation and control chooses function as an example, there is the control that need to further realize, include but is not limited to:The selected control of left button, right button
Selected control of quick functional key etc..
Here, the second function includes but is not limited to:Multimedia control function, as voice data plays control function.
So that voice data plays control function as an example, corresponding audio, which plays control interface, several function keys, and voice data plays control
Function just has several controls that need to further realize, includes but is not limited to:What control, the stopping commenced play out played controls, temporarily
Break the control put, the control of F.F., rewind control, jump to the control of a song, jump to next song
Control, the control of volume adjusting, exit audio and play the control that control interface backs within initial first state such as resting state
System etc..Wherein, these controls that need to further realize are realized by control instruction, are subsequently had and are specifically described, this
Place does not repeat.
Here, step 201, can also be in step 203 as initialization operation except can be performed before step 202
Perform afterwards, i.e., as terminating to judge to operate, terminate current function switch processing when reaching some state;Or step
201 are all carried out from beginning to end, from initially to terminate the state change of the electronic equipment is detected always.
Using the present embodiment, due to energy multi-angle, the state change of the electronic equipment is detected in all directions, energy
The state of electronic equipment is grasped at any time, to carry out function switch according to demand.Electronic equipment is adopted with first input equipment
Wireless connection is taken, instruction transmission means therebetween is flexible, is not limited by the position of wired connection and space, without considering cloth
Line designs, and causes the control mode of user more flexible, as long as user's can in wireless coverage realizes instruction transmission
And control.
Moreover, at least one input equipment is cut according to the input instruction being included in instruction set of distribution between function
Change, therefore,, can be according to the different real of input instruction with this first input equipment for first input equipment
Existing difference in functionality, input equipment is redesigned without corresponding difference in functionality, without carrying out unnecessary hardware modification upgrading,
So as to save manufacturing cost.
Embodiment of the method four:
A kind of data processing method of the embodiment of the present invention, methods described are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function in the first state of the electronic equipment, as shown in figure 3, described
Method includes:
Step 301, the state change to the electronic equipment detect.
When step 302, the electronic equipment take wired connection with first input equipment, detect that electronic equipment is sent out
Give birth to state change and enter the second state, the electronic equipment sends first input instruction of wire transmission.
Step 303, first input equipment receive first input instruction, are switched according to first input instruction
To second function.
Here, the first input instruction may be embodied in instruction set.
Here, at least one input equipment includes but is not limited to:Mouse, keyboard, and handwriting pad, tablet personal computer, intelligence
Energy mobile terminal such as smart mobile phone etc. possesses the input equipment of hand-write input function.Described possess hand-write input function and be not limited to hand
Write pen input or touch screen interface handwriting input and gesture input.
Here, the electronic equipment includes but is not limited to:Portable notebook etc..
Here, first state includes but is not limited to:Electronic equipment in a dormant state etc., as electronic equipment is not closing screen
Etc. during curtain in a dormant state.
Here, the second state includes but is not limited to:Detect the lid action of electronic equipment and without the state of dormancy
Such as detecting that electronic equipment closes screen Deng the action of, lid, electronic equipment rotates/turn down screen.
Here, the first function includes but is not limited to:Equipment runs the control function of normality, as mouse operation and control chooses function.
So that mouse operation and control chooses function as an example, there is the control that need to further realize, include but is not limited to:The selected control of left button, right button
Selected control of quick functional key etc..
Here, the second function includes but is not limited to:Multimedia control function, as voice data plays control function.
So that voice data plays control function as an example, corresponding audio, which plays control interface, several function keys, and voice data plays control
Function just has several controls that need to further realize, includes but is not limited to:What control, the stopping commenced play out played controls, temporarily
Break the control put, the control of F.F., rewind control, jump to the control of a song, jump to next song
Control, the control of volume adjusting, exit audio and play the control that control interface backs within initial first state such as resting state
System etc..Wherein, these controls that need to further realize are realized by control instruction, are subsequently had and are specifically described, this
Place does not repeat.
Here, step 301, can also be in step 303 as initialization operation except can be performed before step 302
Perform afterwards, i.e., as terminating to judge to operate, terminate current function switch processing when reaching some state;Or step
301 are all carried out from beginning to end, from initially to terminate the state change of the electronic equipment is detected always.
Using the present embodiment, due to energy multi-angle, the state change of the electronic equipment is detected in all directions, energy
The state of electronic equipment is grasped at any time, to carry out function switch according to demand.Electronic equipment is adopted with first input equipment
Wired connection is taken, although instruction transmission means underaction therebetween, instruction transmission is not unstable by wireless coverage
Influence, ensure the validity of instruction transmission because it sometimes appear that the situation of Network Abnormal during wireless connection, now can not and
When transmission instruction, control effect can be influenceed, and use wired connection, can guarantee that the validity of instruction transmission and improve control and imitate
Fruit.
Moreover, at least one input equipment is cut according to the input instruction being included in instruction set of distribution between function
Change, therefore,, can be according to the different real of input instruction with this first input equipment for first input equipment
Existing difference in functionality, input equipment is redesigned without corresponding difference in functionality, without carrying out unnecessary hardware modification upgrading,
So as to save manufacturing cost.
Embodiment of the method five:
A kind of data processing method of the embodiment of the present invention, methods described are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function in the first state of the electronic equipment, as shown in figure 4, described
Method includes:
Step 401, the state change to the electronic equipment detect.
When step 402, the electronic equipment take wireless connection with first input equipment, detect that electronic equipment is sent out
Raw state change and first input instruction being wirelessly transferred into the second state, the electronic equipment transmission.
Step 403, first input equipment receive first input instruction, are switched according to first input instruction
To second function.
Step 404, the control instruction sent according to first input equipment perform data processing.
Here, the first input instruction may be embodied in instruction set.
Here, at least one input equipment includes but is not limited to:Mouse, keyboard, and handwriting pad, tablet personal computer, intelligence
Energy mobile terminal such as smart mobile phone etc. possesses the input equipment of hand-write input function.Described possess hand-write input function and be not limited to hand
Write pen input or touch screen interface handwriting input and gesture input.
Here, the electronic equipment includes but is not limited to:Portable notebook etc..
Here, first state includes but is not limited to:Electronic equipment in a dormant state etc., as electronic equipment is not closing screen
Etc. during curtain in a dormant state.
Here, the second state includes but is not limited to:Detect the lid action of electronic equipment and without the state of dormancy
Such as detecting that electronic equipment closes screen Deng the action of, lid, electronic equipment rotates/turn down screen.
Here, the first function includes but is not limited to:Equipment runs the control function of normality, as mouse operation and control chooses function.
So that mouse operation and control chooses function as an example, there is the control that need to further realize, include but is not limited to:The selected control of left button, right button
Selected control of quick functional key etc..
Here, the second function includes but is not limited to:Multimedia control function, as voice data plays control function.
So that voice data plays control function as an example, corresponding audio, which plays control interface, several function keys, and voice data plays control
Function just has several controls that need to further realize, includes but is not limited to:What control, the stopping commenced play out played controls, temporarily
Break the control put, the control of F.F., rewind control, jump to the control of a song, jump to next song
Control, the control of volume adjusting, exit audio and play the control that control interface backs within initial first state such as resting state
System etc..Wherein, these controls that need to further realize are realized by control instruction.
Here, step 401, can also be in step 403 as initialization operation except can be performed before step 402
Perform afterwards, i.e., as terminating to judge to operate, terminate current function switch processing when reaching some state;Or step
401 are all carried out from beginning to end, from initially to terminate the state change of the electronic equipment is detected always.
Using the present embodiment, due to energy multi-angle, the state change of the electronic equipment is detected in all directions, energy
The state of electronic equipment is grasped at any time, to carry out function switch according to demand.Electronic equipment is adopted with first input equipment
Wireless connection is taken, instruction transmission means therebetween is flexible, is not limited by the position of wired connection and space, without considering cloth
Line designs, and causes the control mode of user more flexible, as long as user's can in wireless coverage realizes instruction transmission
And control.
Moreover, at least one input equipment is cut according to the input instruction being included in instruction set of distribution between function
Change, therefore,, can be according to the different real of input instruction with this first input equipment for first input equipment
Existing difference in functionality, input equipment is redesigned without corresponding difference in functionality, without carrying out unnecessary hardware modification upgrading,
So as to save manufacturing cost.
Further, after the present embodiment can also switch between function, at least one input being connected with electronic equipment is passed through
Equipment, the control instruction that such as the first input equipment is sent perform data processing.Wherein, the control instruction, is specifically included but not
It is limited to:Single keyboard and keyboard combination input instruction, mouse roller and mousebutton combination input instruction, handwriting input terminal hand
It is defeated to write input instruction, the instruction of mobile terminal gesture input, mobile terminal roller input instruction, the hand-written touch-control of mobile terminal display screen
Enter any one in instruction.
The control instruction sent according to first input equipment performs data processing, specifically includes:The control instruction
When being instructed for first, the first data processing is performed;When the control instruction is the second instruction, the second data processing is performed;It is described
When control instruction is the 3rd instruction, the 3rd data processing is performed;When the control instruction is the 4th instruction, perform at the 4th data
Reason.
Here, the refinement of control instruction, such as the first instruction, the second instruction etc., and its corresponding operation, such as the first data
Processing, second data processing etc., it is for the control refinement for currently realizing function, realizes that multimedia is broadcast as described above
Exemplified by putting control function, corresponding audio, which plays control interface, several function keys, just there is the refinement of several corresponding control instructions,
Then the first instruction, the second instruction etc. includes but is not limited to:The control commenced play out, the control, the pause that stop playing play
Control, the control of F.F., rewind control, jump to the control of a song, jump to the control of next song, volume
The control of regulation, exit audio broadcasting control interface and back within control of initial first state such as resting state etc..
Embodiment of the method six:
A kind of data processing method of the embodiment of the present invention, methods described are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function in the first state of the electronic equipment, as shown in figure 5, described
Method includes:
Step 501, the state change to the electronic equipment detect.
When step 502, the electronic equipment take wired connection with first input equipment, detect that electronic equipment is sent out
Give birth to state change and enter the second state, the electronic equipment sends first input instruction of wire transmission.
Step 503, first input equipment receive first input instruction, are switched according to first input instruction
To second function.
Step 504, the control instruction sent according to first input equipment perform data processing.
Here, the first input instruction may be embodied in instruction set.
Here, at least one input equipment includes but is not limited to:Mouse, keyboard, and handwriting pad, tablet personal computer, intelligence
Energy mobile terminal such as smart mobile phone etc. possesses the input equipment of hand-write input function.Described possess hand-write input function and be not limited to hand
Write pen input or touch screen interface handwriting input and gesture input.
Here, the electronic equipment includes but is not limited to:Portable notebook etc..
Here, first state includes but is not limited to:Electronic equipment in a dormant state etc., as electronic equipment is not closing screen
Etc. during curtain in a dormant state.
Here, the second state includes but is not limited to:Detect the lid action of electronic equipment and without the state of dormancy
Such as detecting that electronic equipment closes screen Deng the action of, lid, electronic equipment rotates/turn down screen.
Here, the first function includes but is not limited to:Equipment runs the control function of normality, as mouse operation and control chooses function.
So that mouse operation and control chooses function as an example, there is the control that need to further realize, include but is not limited to:The selected control of left button, right button
Selected control of quick functional key etc..
Here, the second function includes but is not limited to:Multimedia control function, as voice data plays control function.
So that voice data plays control function as an example, corresponding audio, which plays control interface, several function keys, and voice data plays control
Function just has several controls that need to further realize, includes but is not limited to:What control, the stopping commenced play out played controls, temporarily
Break the control put, the control of F.F., rewind control, jump to the control of a song, jump to next song
Control, the control of volume adjusting, exit audio and play the control that control interface backs within initial first state such as resting state
System etc..Wherein, these controls that need to further realize are realized by control instruction.
Here, step 501, can also be in step 503 as initialization operation except can be performed before step 502
Perform afterwards, i.e., as terminating to judge to operate, terminate current function switch processing when reaching some state;Or step
501 are all carried out from beginning to end, from initially to terminate the state change of the electronic equipment is detected always.
Using the present embodiment, due to energy multi-angle, the state change of the electronic equipment is detected in all directions, energy
The state of electronic equipment is grasped at any time, to carry out function switch according to demand.Electronic equipment is adopted with first input equipment
Wired connection is taken, although instruction transmission means underaction therebetween, instruction transmission is not unstable by wireless coverage
Influence, ensure the validity of instruction transmission because it sometimes appear that the situation of Network Abnormal during wireless connection, now can not and
When transmission instruction, control effect can be influenceed, and use wired connection, can guarantee that the validity of instruction transmission and improve control and imitate
Fruit.
Moreover, at least one input equipment is cut according to the input instruction being included in instruction set of distribution between function
Change, therefore,, can be according to the different real of input instruction with this first input equipment for first input equipment
Existing difference in functionality, input equipment is redesigned without corresponding difference in functionality, without carrying out unnecessary hardware modification upgrading,
So as to save manufacturing cost.
Further, after the present embodiment can also switch between function, at least one input being connected with electronic equipment is passed through
Equipment, the control instruction that such as the first input equipment is sent perform data processing.Wherein, the control instruction, is specifically included but not
It is limited to:Single keyboard and keyboard combination input instruction, mouse roller and mousebutton combination input instruction, handwriting input terminal hand
It is defeated to write input instruction, the instruction of mobile terminal gesture input, mobile terminal roller input instruction, the hand-written touch-control of mobile terminal display screen
Enter any one in instruction.
The control instruction sent according to first input equipment performs data processing, specifically includes:The control instruction
When being instructed for first, the first data processing is performed;When the control instruction is the second instruction, the second data processing is performed;It is described
When control instruction is the 3rd instruction, the 3rd data processing is performed;When the control instruction is the 4th instruction, perform at the 4th data
Reason.
Here, the refinement of control instruction, such as the first instruction, the second instruction etc., and its corresponding operation, such as the first data
Processing, second data processing etc., it is for the control refinement for currently realizing function, realizes that multimedia is broadcast as described above
Exemplified by putting control function, corresponding audio, which plays control interface, several function keys, just there is the refinement of several corresponding control instructions,
Then the first instruction, the second instruction etc. includes but is not limited to:The control commenced play out, the control, the pause that stop playing play
Control, the control of F.F., rewind control, jump to the control of a song, jump to the control of next song, volume
The control of regulation, exit audio broadcasting control interface and back within control of initial first state such as resting state etc..
It is illustrated by taking a practical application scene as an example as follows:
Application scenarios are:In an electronic equipment such as notebook, after its screen closes if desired user plays music, is shielding
Curtain can not be completed in the case of closing, and thus, after the input instruction based on electronic equipment carries out function switch, take down notes
An input equipment is used after this conjunction screen, is controlled as mouse performs a series of control instructions to be played to audio.
Control instruction includes:
1. corresponding audio plays control to adjust the data processing of volume, the control instruction of use is rolled by roll mouse
Take turns to realize;
2. corresponding audio plays control to open the data processing of music, the control instruction of use passes through by left mouse button
To realize;
3. corresponding audio plays control to play the data processing of next song, the control instruction of use passes through by mouse
Right button is marked to realize;
4. corresponding audio plays control to perform the data processing of sleep operation, the control instruction of use is left by mouse
Right button is simultaneously by realizing.
Accordingly, the operating process of upper layer application includes:Rock mouse and wake up machine;By left mouse button, music is opened;Rolling
Dynamic mouse roller, adjusts volume;By right mouse button, next song;Mouse right and left key is pressed simultaneously, makes system sleep.
Accordingly, bottom layer realization as shown in fig. 6, including:The three user's usage scenario situations of change distinguished with dotted line, 1)
Initial situation is notebook or PC lids sleep scene, and the notebook of user is in first state under the initial situation, tool
Body is resting state;2)The initial situation that continues is:Rock mouse triggering USB events, in the case of wake-up, wake up notebook or
Claim PC, into the second state, specially dormancy awakening state, be referred to as not resting state, detection procedure monitors entrance
Second state, into broadcasting state of a control;3)The wake-up situation that continues is:Detection procedure is monitored into the second state, is entered
Play state of a control triggering electronic equipment input instruction send, mouse receive input instruction by normality the first function switch to
Second function, the second function is to be controlled to playing state of a control, specifically, detection procedure is from detection from left mouse button event
A series of control instructions started, until a series of mouse events of all settings terminate, control circle is played in the audio of opening
Face, voice data is handled according to corresponding to performing control instruction.
The beneficial effect after this application example is used in the application scenarios of above-mentioned actual life is:1st, screen need not be opened
Control can be achieved;2nd, it is swift to operate.
It need to be noted that be:The description of following device item, it is similar when being described with the above method, with the beneficial of method
Effect describes, and does not repeat.For the ins and outs not disclosed in apparatus of the present invention embodiment, the inventive method implementation refer to
The description of example.
Device embodiment one:
A kind of data processing equipment of the embodiment of the present invention, described device are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function, described device such as Fig. 7 institutes in the first state of the electronic equipment
Show, including:
Detection unit 11, for detecting the current state of the electronic equipment;
Switch unit 12, for when the current state for detecting the electronic equipment enters the second state, being set according to electronics
The first input instruction that back-up is matched somebody with somebody switches to the second function.
Device embodiment two:
A kind of data processing equipment of the embodiment of the present invention, described device are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function, described device such as Fig. 8 institutes in the first state of the electronic equipment
Show, including:
Detection unit 11, for detecting the current state of the electronic equipment, the state change of the electronic equipment is entered
Row detection, detect the change of electronic equipment generating state and enter the second state;
Switch unit 12, including:Transmission sub-unit 121 and receiving subelement 122;
Transmission sub-unit 121, when taking wireless connection for the electronic equipment and first input equipment, work as detection
The current state of the electronic equipment enters the second state, and the second work(is switched to according to the first input instruction that electronic equipment distributes
Energy;
Receiving subelement 122, for receiving first input instruction, according to switching to first input instruction
Second function.
Further, described device also includes:Processing unit 13, for performing data processing according to control instruction.
Here, when processing unit 13 instructs for the control instruction for first, the first data processing is performed;The control
Instruct for second instruction when, perform the second data processing;When the control instruction is the 3rd instruction, the 3rd data processing is performed;
When the control instruction is the 4th instruction, the 4th data processing is performed.
Here, the control instruction, is specifically included:Single keyboard and keyboard combination input instruction, mouse roller and mouse
Key combination input instruction, handwriting input terminal handwriting input instruction, the instruction of mobile terminal gesture input, mobile terminal roller are defeated
Enter any one in instruction, the hand-written touch-control input instruction of mobile terminal display screen.
Here, second state, is specifically included:The lid of detection acts and without the state of dormancy.
Device embodiment three:
A kind of data processing equipment of the embodiment of the present invention, described device are applied to an electronic equipment, the electronic equipment
With first state and the second state, the first state is different from second state, the electronic equipment and at least one defeated
Enter equipment connection, the first input equipment has the first function, described device such as Fig. 8 institutes in the first state of the electronic equipment
Show, including:
Detection unit 11, for detecting the current state of the electronic equipment, the state change of the electronic equipment is entered
Row detection, detect the change of electronic equipment generating state and enter the second state;
Switch unit 12, including:Transmission sub-unit 121 and receiving subelement 122;
Transmission sub-unit 121, when taking wired connection for the electronic equipment and first input equipment, work as detection
The current state of the electronic equipment enters the second state, and the second work(is switched to according to the first input instruction that electronic equipment distributes
Energy;
Receiving subelement 122, for receiving first input instruction, according to switching to first input instruction
Second function.
Further, described device also includes:Processing unit 13, for performing data processing according to control instruction.
Here, when processing unit 13 instructs for the control instruction for first, the first data processing is performed;The control
Instruct for second instruction when, perform the second data processing;When the control instruction is the 3rd instruction, the 3rd data processing is performed;
When the control instruction is the 4th instruction, the 4th data processing is performed.
Here, the control instruction, is specifically included:Single keyboard and keyboard combination input instruction, mouse roller and mouse
Key combination input instruction, handwriting input terminal handwriting input instruction, the instruction of mobile terminal gesture input, mobile terminal roller are defeated
Enter any one in instruction, the hand-written touch-control input instruction of mobile terminal display screen.
Here, second state, is specifically included:The lid of detection acts and without the state of dormancy.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only
A kind of division of logic function, there can be other dividing mode when actually realizing, such as:Multiple units or component can combine, or
Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion
Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can positioned at a place, can also be distributed to multiple network lists
In member;Partly or entirely unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
To be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned
Integrated unit can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:It is movable storage device, read-only
Memory(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Or if the above-mentioned integrated unit of the present invention is realized in the form of software function module and is used as independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on such understanding, the present invention is implemented
The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product,
The computer software product is stored in a storage medium, including some instructions are causing a computer equipment(Can be with
It is personal computer, server or network equipment etc.)Perform all or part of each embodiment methods described of the present invention.
And foregoing storage medium includes:Movable storage device, read-only storage(ROM, Read-Only Memory), arbitrary access deposits
Reservoir(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (13)
1. a kind of data processing method, it is characterised in that methods described is applied to an electronic equipment, and the electronic equipment has the
One state and the second state, the first state is different from second state, the electronic equipment and an at least input equipment
Connection, the first input equipment have the first function in the first state of the electronic equipment, and methods described includes:
The state change of the electronic equipment is detected;
When detecting the electronic equipment and entering the second state, first input equipment distributes first defeated according to electronic equipment
Enter instruction and switch to the second function;
For electronic equipment in a dormant state, second state different from the first state is electronic equipment to the first state
In dormancy awakening state.
2. according to the method for claim 1, it is characterised in that described when the detection electronic equipment enters the second state
When, the first input instruction that first input equipment distributes according to electronic equipment switches to the second function, specifically includes:
When the electronic equipment and first input equipment take wireless connection, detect the change of electronic equipment generating state and
Into the second state, the electronic equipment sends first input instruction being wirelessly transferred;
First input equipment receives first input instruction, and second work(is switched to according to first input instruction
Energy.
3. according to the method for claim 1, it is characterised in that described when the detection electronic equipment enters the second state
When, the first input instruction that first input equipment distributes according to electronic equipment switches to the second function, specifically includes:
When the electronic equipment and first input equipment take wired connection, detect the change of electronic equipment generating state and
Into the second state, the electronic equipment sends first input instruction of wire transmission;
First input equipment receives first input instruction, and second work(is switched to according to first input instruction
Energy.
4. according to the method in claim 2 or 3, it is characterised in that first input equipment receives first input
Instruction, after switching to second function according to first input instruction, methods described also includes:It is defeated according to described first
Enter the control instruction that equipment is sent and perform data processing;
The control instruction sent according to first input equipment performs data processing, specifically includes:
When the control instruction is the first instruction, the first data processing is performed;
When the control instruction is the second instruction, the second data processing is performed;
When the control instruction is the 3rd instruction, the 3rd data processing is performed;
When the control instruction is the 4th instruction, the 4th data processing is performed.
5. according to the method for claim 4, it is characterised in that the control instruction, specifically include:Single keyboard and keyboard
Combine input instruction, mouse roller and mousebutton combination input instruction, handwriting input terminal handwriting input instruction, mobile terminal
Any one in gesture input instruction, mobile terminal roller input instruction, the hand-written touch-control input instruction of mobile terminal display screen.
6. according to the method for claim 1, it is characterised in that second state, in addition to:Detection lid action and
Without the state of dormancy.
7. a kind of data processing equipment, it is characterised in that described device is applied to an electronic equipment, and the electronic equipment has the
One state and the second state, the first state is different from second state, the electronic equipment and an at least input equipment
Connection, the first input equipment have the first function in the first state of the electronic equipment, and described device includes:
Detection unit, for being detected to the state change of the electronic equipment;
Switch unit, for when the current state for detecting the electronic equipment enters the second state, being distributed according to electronic equipment
The first input instruction switch to the second function;
For electronic equipment in a dormant state, second state different from the first state is electronic equipment to the first state
In dormancy awakening state.
8. device according to claim 7, it is characterised in that the detection unit, be further used for detecting that electronics is set
Preparation gives birth to state change and enters the second state;
The switch unit, specifically includes transmission sub-unit and receiving subelement;
The transmission sub-unit, for changing in electronic equipment generating state and entering the second state, send the institute being wirelessly transferred
State the first input instruction;
The receiving subelement, for receiving first input instruction, described is switched to according to first input instruction
Two functions.
9. device according to claim 8, it is characterised in that the detection unit, be further used for detecting that electronics is set
Preparation gives birth to state change and enters the second state;
The switch unit, specifically includes transmission sub-unit and receiving subelement;
The transmission sub-unit, for changing in electronic equipment generating state and entering the second state, send the institute of wire transmission
State the first input instruction;
The receiving subelement, for receiving first input instruction, described is switched to according to first input instruction
Two functions.
10. device according to claim 9, it is characterised in that described device also includes:Processing unit, for according to control
System instruction performs data processing.
11. device according to claim 10, it is characterised in that the processing unit, be further used for the control and refer to
Make for first instruction when, perform the first data processing;When the control instruction is the second instruction, the second data processing is performed;Institute
State control instruction for the 3rd instruction when, perform the 3rd data processing;When the control instruction is the 4th instruction, the 4th data are performed
Processing.
12. device according to claim 11, it is characterised in that the control instruction, specifically include:Single keyboard and key
Disk combination input instruction, mouse roller and mousebutton combination input instruction, handwriting input terminal handwriting input instruction, movement are eventually
Hold any one in gesture input instruction, mobile terminal roller input instruction, the hand-written touch-control input instruction of mobile terminal display screen
Kind.
13. device according to claim 7, it is characterised in that second state, in addition to:The lid action of detection
And without the state of dormancy.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310347418.5A CN104346065B (en) | 2013-08-09 | 2013-08-09 | A kind of data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310347418.5A CN104346065B (en) | 2013-08-09 | 2013-08-09 | A kind of data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104346065A CN104346065A (en) | 2015-02-11 |
CN104346065B true CN104346065B (en) | 2017-12-29 |
Family
ID=52501802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310347418.5A Active CN104346065B (en) | 2013-08-09 | 2013-08-09 | A kind of data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104346065B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109712621B (en) * | 2018-12-27 | 2021-03-16 | 维沃移动通信有限公司 | Voice interaction control method and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1609778A (en) * | 2004-11-25 | 2005-04-27 | 李晔 | Keyboard and mouse combined computer inputting equipment |
CN2874937Y (en) * | 2005-09-30 | 2007-02-28 | 乐金电子(中国)研究开发中心有限公司 | Cell phone with mouse function |
CN101063926A (en) * | 2006-04-24 | 2007-10-31 | 致伸科技股份有限公司 | Rolling wheel function conversion method |
CN102760025A (en) * | 2011-04-26 | 2012-10-31 | 富泰华工业(深圳)有限公司 | Image browsing system, and image zooming method and image switching method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100785071B1 (en) * | 2007-02-08 | 2007-12-12 | 삼성전자주식회사 | Method for displaying information in response to touch input in mobile device with touchscreen |
-
2013
- 2013-08-09 CN CN201310347418.5A patent/CN104346065B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1609778A (en) * | 2004-11-25 | 2005-04-27 | 李晔 | Keyboard and mouse combined computer inputting equipment |
CN2874937Y (en) * | 2005-09-30 | 2007-02-28 | 乐金电子(中国)研究开发中心有限公司 | Cell phone with mouse function |
CN101063926A (en) * | 2006-04-24 | 2007-10-31 | 致伸科技股份有限公司 | Rolling wheel function conversion method |
CN102760025A (en) * | 2011-04-26 | 2012-10-31 | 富泰华工业(深圳)有限公司 | Image browsing system, and image zooming method and image switching method |
Also Published As
Publication number | Publication date |
---|---|
CN104346065A (en) | 2015-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455275B (en) | The method and apparatus of mobile object in the terminal with touch screen | |
CN104660801B (en) | Mobile terminal and its control method | |
TWI436264B (en) | Dynamic interpretation of user input in a portable electronic device | |
US9529492B2 (en) | Reproduction of file series | |
EP2524369B1 (en) | Processing of voice inputs | |
CN104795080B (en) | A kind of music control method and device | |
US8471686B2 (en) | Remote control apparatus with dialing scheme providing haptic sensations | |
CN103034406A (en) | Method and apparatus for operating function in touch device | |
CN102830898A (en) | Apparatus and method for scrolling in device with touch screen | |
CN102937920B (en) | A kind of fool proof method, device and electronic equipment | |
CN106383642A (en) | Display method and related device for control of media playing interface | |
CN102667666A (en) | Method and apparatus for performing energy management via sub-system | |
CN106873869A (en) | Music playing control method and device | |
CN105895126A (en) | Method and apparatus for indicating and controlling playing audio/audio and video data | |
CN104486657A (en) | Control method of player and system | |
CN109144391A (en) | The control method and electronic equipment of electronic equipment | |
CN110515462A (en) | It is a kind of intelligence wearable device in apply control method, device | |
CN104346065B (en) | A kind of data processing method and device | |
CN107734121A (en) | Method for controlling volume, device, storage medium and electronic equipment | |
CN104049724B (en) | The sound generation method and device of touch event | |
CN104281249B (en) | A kind of state switching method and electronic equipment of multimedia file | |
CN106534913A (en) | Resource synchronization processing method and communication terminal | |
CN202171950U (en) | Audio playing system supplied for blind person to use | |
CN103577060A (en) | Data processing method and electronic equipment | |
CN105552654B (en) | A kind of headset plug, earphone socket and control method for playing back and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |