CN108521497A - A kind of terminal control method, control device, terminal and readable storage medium storing program for executing - Google Patents

A kind of terminal control method, control device, terminal and readable storage medium storing program for executing Download PDF

Info

Publication number
CN108521497A
CN108521497A CN201810195937.7A CN201810195937A CN108521497A CN 108521497 A CN108521497 A CN 108521497A CN 201810195937 A CN201810195937 A CN 201810195937A CN 108521497 A CN108521497 A CN 108521497A
Authority
CN
China
Prior art keywords
terminal
data
information
displacement distance
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.)
Pending
Application number
CN201810195937.7A
Other languages
Chinese (zh)
Inventor
曹自强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201810195937.7A priority Critical patent/CN108521497A/en
Publication of CN108521497A publication Critical patent/CN108521497A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The present invention provides a kind of terminal control method, control device, terminal, readable storage medium storing program for executing.By obtaining first terminal acceleration transducer data and touch screen operation data, displacement distance and directional information is calculated according at least to acceleration transducer data, operation information is determined according at least to touch screen operation data, and positioning instruction and control are carried out to the operation in second terminal based on displacement distance and directional information and control information.First terminal displacement distance and directional information are detected by acceleration transducer, and it corresponds to operation in second terminal using the displacement distance and directional information and carries out positioning instruction, the operation in second terminal is controlled using touch screen operation data simultaneously, can positioning instruction and control efficiently and accurately be carried out to the operation in second terminal using first terminal.

Description

A kind of terminal control method, control device, terminal and readable storage medium storing program for executing
Technical field
The present invention relates to terminal control field more particularly to a kind of terminal control method, control device, terminal and readable deposit Storage media.
Background technology
This part intends to provides background for the embodiments of the present invention stated in claims and specific implementation mode Or context.Description herein recognizes it is the prior art not because not being included in this part.
Current mobile Internet universal epoch, people’s lives increasingly be unable to do without mobile phone, hand not from body also by Gradually become the present situation of more and more people.Simultaneously under more office scenes, the effect of computer terminal be but still it is irreplaceable, More and more mobile phones start that the expanded function of computer is supported to also illustrate this point.But for computer terminal, portability one It is directly its insoluble problem, although dimensionally developing towards frivolous angle, for some accessories, especially mouse For mark there is still a need for individually carrying, it is very inconvenient to be caused to user.Mobile phone and computer are connected to making for mouse at present With, be essentially all the CS connections based on wifi, this operation delay is big, and be easy maloperation;In addition there are one fatal The disadvantage is that needing to download the software for installing computer end, this is collapsed very much for the PC of mouse damage;Furthermore it is this kind of Using needing screen to be always on when in use, very power consumption, with for a long time, cell-phone heating is serious, and experience is very poor.
Invention content
In consideration of it, a kind of terminal control method of present invention offer, control device, terminal and readable storage medium storing program for executing.
First aspect of the embodiment of the present invention provides a kind of terminal control method, which is characterized in that
First terminal acceleration transducer data and touch screen operation data are obtained,
Displacement distance and directional information is calculated according at least to acceleration transducer data;
Operation information is determined according at least to touch screen operation data;
Positioning instruction and control are carried out to the operation in second terminal based on displacement distance and directional information and control information System.
In a kind of possible realization method, the method further includes:
Obtain gyro data and geomagnetic sensor data;
It is described that displacement distance and directional information is calculated according at least to acceleration transducer data, it specifically includes:
Displacement distance and direction is calculated according to acceleration transducer data, gyro data and geomagnetic sensor data Information.
In a kind of possible realization method, it is described based on displacement distance and directional information and operation information to second terminal On operation carry out positioning instruction and control, specifically include:Based on displacement distance and directional information to the operation in second terminal Realize mouse picking instruction;Mouse control operation is realized to the operation in second terminal based on the control information.
It is described to determine operation information according at least to touch screen operation data in a kind of possible realization method, it specifically includes: Operation information is determined according to the touch gestures touched when holding one's breath screen state.
In a kind of possible realization method, it is described based on displacement distance and directional information and operation information to second terminal On operation carry out positioning instruction and control, specifically include:The displacement distance and directional information and the operation information are turned It is changed to control information format and is packaged and is sent to second terminal, the operation in second terminal is determined according to the control information Position instruction and control.
In a kind of possible realization method, the encapsulation is sent to by second terminal by bluetooth approach.
Second aspect of the present invention provides a kind of terminal control mechanism, which is characterized in that including:
First acquisition unit obtains first terminal acceleration transducer data and touch screen operation data;
Displacement distance and directional information is calculated according at least to acceleration transducer data in computing unit;
Determination unit determines operation information according at least to touch screen operation data;
Control unit positions the operation in second terminal based on displacement distance and directional information and control information Instruction and control.
In a kind of possible realization method, terminal control mechanism further includes:
Second acquisition unit obtains gyro data and geomagnetic sensor data;
The computing unit is specifically used for, according to acceleration transducer data, gyro data and geomagnetic sensor data Displacement distance and directional information is calculated.
In a kind of possible realization method, described control unit is specifically used for:Based on displacement distance and directional information pair Mouse picking instruction is realized in operation in two terminals;Mouse control is realized to the operation in second terminal based on the control information Operation;
In a kind of possible realization method, determination unit is specifically used for:According to the touch gestures touched when holding one's breath screen state Determine operation information.
Further include transmission unit in a kind of possible realization method, for by the displacement distance and directional information and Information format is packaged and is sent to second terminal in order to control for the operation information conversion, according to the control information to second terminal On operation carry out positioning instruction and control.
In a kind of possible realization method, the transmission unit is specifically used for:The encapsulation is sent by bluetooth approach To second terminal.
Third aspect present invention provides a kind of terminal, which is characterized in that the terminal includes processor, and the processor is used The terminal control side described in above-mentioned terminal control method any one is realized when executing the computer program stored in memory The step of method.
Third aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer program, feature In the computer program realizes above-mentioned any one terminal control method when being executed by processor the step of.
The present invention provides a kind of terminal control method, control device, terminal, readable storage medium storing program for executing.By obtaining first Displacement distance is calculated according at least to acceleration transducer data in terminal acceleration transducer data and touch screen operation data And directional information, operation information is determined according at least to touch screen operation data, based on displacement distance and directional information and control Information carries out positioning instruction and control to the operation in second terminal.First terminal displacement distance is detected by acceleration transducer And directional information, and correspond to operation in second terminal using the displacement distance and directional information and carry out positioning instruction, make simultaneously The operation in second terminal is controlled with touch screen operation data, can efficiently and accurately use first terminal pair the Operation in two terminals carries out positioning instruction and control.
Description of the drawings
It is required in being described below to embodiment in order to illustrate more clearly of the technical solution of embodiment of the present invention The attached drawing used is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the flow diagram of the terminal control method of first embodiment of the invention.
Fig. 2 is that first terminal acceleration transducer data are closed with first terminal physical location in first embodiment of the invention It is schematic diagram.
Fig. 3 is the flow diagram of the terminal control method of second embodiment of the invention.
Fig. 4 is the structural schematic diagram of the terminal control mechanism of an embodiment of the present invention.
Fig. 5 is the structural schematic diagram of embodiment of the present invention terminal.
Main element symbol description
Following specific implementation mode will be further illustrated the present invention in conjunction with above-mentioned attached drawing.
Specific implementation mode
To better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention will be described in detail.It should be noted that in the absence of conflict, presently filed embodiment and reality The feature applied in mode can be combined with each other.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, described embodiment Only some embodiments of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this field The every other embodiment that those of ordinary skill is obtained without making creative work, belongs to guarantor of the present invention The range of shield.
Unless otherwise defined, all of technologies and scientific terms used here by the article and belong to the technical field of the present invention The normally understood meaning of technical staff is identical.Used term is intended merely to description tool in the description of the invention herein The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 is the flow chart for the terminal control method that an embodiment of the present invention provides, and the terminal control method can be with Applied to terminal.The terminal can be the meter with GPS functions such as smart mobile phone, tablet computer, personal digital assistant Calculate machine equipment.It should be noted that the terminal control method of embodiment of the present invention is not limited in flow chart shown in FIG. 1 The step of and sequence.According to different requirements, the step in shown flow chart can increase, remove or change sequence.
In embodiment of the present invention one, terminal control method according to figure 1 includes obtaining first terminal acceleration Sensing data and touch screen operation data,
Displacement distance and directional information is calculated according at least to acceleration transducer data;
Operation information is determined according at least to touch screen operation data;
Positioning instruction and control are carried out to the operation in second terminal based on displacement distance and directional information and control information System.
According to the movement of first terminal and operation in embodiment of the present invention, positioning is carried out to the operation in second terminal and is referred to Show and control, and then realize the prompt operation in second terminal, for example can realize using first terminal as the Mouse in two terminals is operated.By obtaining first terminal acceleration transducer data, the shifting of first terminal is calculated Dynamic distance and directional information, and the displacement distance based on first terminal and directional information position the operation in second terminal Instruction.Specifically, mobile phone acceleration sensor can characterize translational acceleration of the mobile phone on three directions of x, y, z.It is obtaining In first terminal acceleration transducer data procedures, illustrate acceleration transducer data by taking the placement of mobile phone screen horizontal direction as an example With the relationship of the physical location of first terminal, on the basis of the plane that first terminal is horizontally arranged, the plane that x, y are represented, with flat Row is x-axis in mobile phone width direction, and it is y-axis to be parallel to mobile phone short transverse, and it is origin to stand point.With reference to attached drawing 2, mobile phone is once Mobile, we can be obtained by the acceleration value on x, the directions y, according to the relationship of acceleration and displacementWherein V0 is initial velocity, and when standing is 0, show that the relationship of displacement and acceleration isThis In t refer to the time, a is x, the acceleration value in y-axis, it is known that a and t, so that it may to calculate separately out x, the displacement distance Sx in y-axis And Sy, then according to Pythagorean theorem Sx0+Sy0=S0And deviation angleObtain actual displacement distance and direction.
By the above-mentioned means, user can be calculated to first terminal according to the acceleration transducer data of first terminal Displacement distance and directional information, then by the displacement distance of the first terminal and directional information by way of wireless transmission It is transmitted to second terminal, and is mapped with the display area in second terminal, by the displacement distance of above-mentioned first terminal and side To information MAP positioning instruction is carried out for the operation on second terminal display area.
By the displacement distance of first terminal and directional information and the display area in second terminal in the embodiment of the present invention one Mapped, be by the displacement distance of first terminal and directional information be mapped as in second terminal operation cursor movement away from From and direction, and then realize second terminal on operate positioning instruction.Selectable mapping mode is to be used using daily computer Middle mouse is mobile and display onscreen cursor correspondence, and aobvious in the region of easy to operate in user and mobile first terminal Valid pixel carries out reasonable distribution correspondence in display area on display screen curtain, and then realizes the displacement distance of first terminal and direction Information MAP is displacement distance and the direction of the operation cursor in second terminal.
In the embodiment of the present invention one, operation information is determined according to touch screen operation data, and based on operation information pair the Operation in two terminals is controlled.It, can be based on the operation information to the operation in second terminal as preferred mode Realize that left mouse button is clicked, clicked by mouse right button, middle key rolls control, the control of middle key pressing.It should be noted that above-mentioned click It may include clicking, double-click, the corresponding operation of the mouses such as long-press.
The current mobile terminal as mobile phone is in use, an important factor for control of power consumption is influence usage experience, therefore, In the acquisition of above-mentioned first terminal touch screen operation data, power consumption and the present invention for how reducing first terminal as possible are real Emphasis in mode is applied one of to consider the problems of.Preferably, embodiment of the present invention uses tactile when holding one's breath screen state according to touching It touches gesture and determines operation information.Enter control model by the way that first terminal is arranged, the control model can be selected in the present invention It is selected as mouse mode, and in control model, the display screen of first terminal is into deposit interest screen state, and touch screen can identify user Touch operation.
The touch gestures preferably may include, by screen according to user's use habit, being divided into the left and right sides, respectively Corresponding second terminal operates the left button and right button of mouse, and the click (including clicking, double-click, long-press) on the left of screen therein is corresponding The click of left mouse button, the click of click (including clicking, double-click, long-press) corresponding right mouse button on the right side of screen, while screen The sliding of upper any position can correspond to upper cunning and the downslide of middle button of mouse.
In addition to existing mouse function, it is preferable that any two scaling referred in first terminal screen can correspond to second eventually Hold the scaling of display interface, horizontally slipping for any mostly finger that can correspond to the switching of multiple background applications in second terminal, The condensation more referred to can correspond to the operation for returning to desktop in second terminal or other similar operation readiness.
The present invention provides a kind of terminal control method, control device, terminal, readable storage medium storing program for executing.By obtaining first Displacement distance is calculated according at least to acceleration transducer data in terminal acceleration transducer data and touch screen operation data And directional information, operation information is determined according at least to touch screen operation data, based on displacement distance and directional information and control Information carries out positioning instruction and control to the operation in second terminal.First terminal displacement distance is detected by acceleration transducer And directional information, and correspond to operation in second terminal using the displacement distance and directional information and carry out positioning instruction, make simultaneously The operation in second terminal is controlled with touch screen operation data, can efficiently and accurately use first terminal pair the Operation in two terminals carries out positioning instruction and control.
Fig. 3 shows the flow diagram of the terminal control method of second embodiment of the invention.
In embodiment of the present invention two, the terminal control method includes according to fig. 3:
It obtains first terminal acceleration transducer data, gyro data, geomagnetic sensor and implements data and touch screen behaviour Make data;
Displacement distance and direction is calculated according to acceleration transducer data, gyro data and geomagnetic sensor data Information;
Operation information is determined according at least to touch screen operation data;
By the displacement distance and the conversion of directional information and operation information, information format is packaged in order to control;
The encapsulation is sent to second terminal.
Realization details in embodiment two involved by the step identical in embodiment one has had in detail in embodiment one kind Thin description, to save space, is just no longer described in detail in the present embodiment;
In order to preferably obtain accurately first terminal displacement distance and directional information, acquired in embodiment of the present invention two The data of geomagnetic sensor and gyroscope, to be carried out to obtaining orientation angle numerical value by a kind of mathematical computations of embodiment It corrects.Earth magnetism and the collected numerical value of gyro sensor are also classified into x, y, z, respectively represent the magnetic field size on these three directions With angular momentum size.Mobile phone, due to artificial factor, can cause the direction of mobile phone to change in the moving process of plane, Direction corresponding to the x of acceleration transducer, y-axis may be different, therefore, using the rotational angle of earth magnetism and gyroscope to this A direction is modified, to ensure the accuracy of moving direction.
In embodiment of the present invention two, the step of determining operation information according at least to touch screen operation data same embodiment Implementation detail in one is consistent, and and will not be described here in detail.
For the operation for ensureing first terminal and the corresponding accuracy and promptness operated in second terminal, the present invention is implemented In mode two preferably, by the displacement distance and the conversion of directional information and operation information, information format is sealed in order to control Dress.The foundation of encapsulation can be selected as the data format according to conventional mouse.In general, the data format of conventional mouse is 4 A byte BYTE1BYTE2BYTE3BYTE4
Defining is respectively:
BYTE1--
|--bit7:1 indicates that the variable quantity of Y coordinate exceeds -256~255 range, and 0 indicates not overflow
|--bit6:1 indicates that the variable quantity of X-coordinate exceeds -256~255 range, and 0 indicates not overflow
|--bit5:The sign bit of Y coordinate variation, 1 indicates that negative, i.e. mouse move down
|--bit4:The sign bit of X-coordinate variation, 1 indicates that negative, i.e. mouse are moved to the left
|--bit3:Perseverance is 1
|--bit2:Key pressing in 1 expression
|--bit1:1 expression right button is pressed
|--bit0:1 expression left button is pressed
BYTE2--X changes in coordinates amounts form 9 bit sign numbers with the bit4 of BYTE1, and for negative number representation to moving to left, positive number table is right It moves.With complement representation variable quantity
BYTE3--Y changes in coordinates amounts form 9 bit sign numbers with the bit5 of BYTE1, and negative number representation is to moving down, on positive number table It moves, with complement representation variable quantity.
BYTE4-- idler wheels change.
The strategy of encapsulation can select to be set as, if the displacement Sx detected in displacement detecting unit>0,Sy>0, then It indicates to move to upper right side, if Sx>0,Sy<0 represents mobile phone and is moved towards lower right, if Sx<0,Sy>0, then represent mobile phone It is moved towards upper left side, if Sx<0Sy<0 represents mobile phone and is moved towards lower left, if Sx>0, Sy=0, then it represents that move to the right It is dynamic, if Sx<0, Sy=0, then it represents that move to the left, if Sx=0, Sy>0, then it represents that it is moved upward, if Sx=0, Sy<0, then it represents that move downwards, displacement distance is characterized respectively by the numerical value of Sx and Sy.
For the operation for ensureing first terminal and the corresponding accuracy and promptness operated in second terminal, the present invention is implemented In mode two preferably, the encapsulation will be sent to second terminal by bluetooth.
It should be noted that after second terminal receives the encapsulation, is corresponded to after unsealing the data received Control information in the displacement distance and directional information and second terminal of operation cursor in two terminals, and then realize second The positioning instruction and control operated in terminal.
It should be noted that selectable mapping mode is, using mouse movement in daily computer use and display screen Upper cursor correspondence in the region of easy to operate in user and mobile first terminal, and has on display screen in display area It imitates pixel and carries out reasonable distribution correspondence, and then realize and the displacement distance of first terminal and directional information are mapped as in second terminal Operation cursor displacement distance and direction.
In embodiment of the present invention two, operation information is determined according to touch screen operation data, and based on operation information pair the Operation in two terminals is controlled.It, can be based on the operation information to the operation in second terminal as preferred mode Realize that left mouse button is clicked, clicked by mouse right button, middle key rolls control, the control of middle key pressing.It should be noted that above-mentioned click It may include clicking, double-click, the corresponding operation of the mouses such as long-press.
The current mobile terminal as mobile phone is in use, an important factor for control of power consumption is influence usage experience, therefore, In the acquisition of above-mentioned first terminal touch screen operation data, power consumption and the present invention for how reducing first terminal as possible are real Emphasis in mode is applied one of to consider the problems of.Preferably, embodiment of the present invention uses tactile when holding one's breath screen state according to touching It touches gesture and determines operation information.Enter control model by the way that first terminal is arranged, the control model can be selected in the present invention It is selected as mouse mode, and in control model, the display screen of first terminal is into deposit interest screen state, and touch screen can identify user Touch operation.
The touch gestures preferably may include, by screen according to user's use habit, being divided into the left and right sides, respectively Corresponding second terminal operates the left button and right button of mouse, and the click (including clicking, double-click, long-press) on the left of screen therein is corresponding The click of left mouse button, the click of click (including clicking, double-click, long-press) corresponding right mouse button on the right side of screen, while screen The sliding of upper any position can correspond to upper cunning and the downslide of middle button of mouse.
In addition to existing mouse function, it is preferable that any two scaling referred in first terminal screen can correspond to second eventually Hold the scaling of display interface, horizontally slipping for any mostly finger that can correspond to the switching of multiple background applications in second terminal, The condensation more referred to can correspond to the operation for returning to desktop in second terminal or other similar operation readiness.
The terminal control method of the embodiment of the present application is illustrated above, the control of the embodiment of the present application is filled below It sets and illustrates, referring to Fig. 4, Fig. 4 is one embodiment figure of the control device of the application embodiment, in present embodiment Control device may include:
First acquisition unit 301 obtains first terminal acceleration transducer data and touch screen operation data;
Displacement distance and directional information is calculated according at least to acceleration transducer data in computing unit 303;
Determination unit 304 determines operation information according at least to touch screen operation data;
Control unit 306 carries out the operation in second terminal based on displacement distance and directional information and control information Positioning instruction and control.
Preferably, three terminal control mechanism of embodiment of the present invention further includes:
Second acquisition unit 302 obtains gyro data and geomagnetic sensor data;
The computing unit is specifically used for, according to acceleration transducer data, gyro data and geomagnetic sensor data Displacement distance and directional information is calculated.
Preferably, three kinds of described control units of embodiment of the present invention are specifically used for:Based on displacement distance and directional information Mouse picking instruction is realized to the operation in second terminal;Mouse is realized to the operation in second terminal based on the control information Left button is clicked, is clicked by mouse right button, middle key rolls control, the control of middle key pressing;
Preferably, in three control device of embodiment of the present invention, determination unit is specifically used for:It is held one's breath screen state according to touch When touch gestures determine operation information.
Preferably, three kinds of control devices of embodiment of the present invention further include transmission unit 305, are used for the displacement distance Information format is packaged and is sent to second terminal in order to control with directional information and operation information conversion, according to control Information carries out positioning instruction and control to the operation in second terminal.
Preferably, three kinds of embodiment of the present invention, the transmission unit are specifically used for:By bluetooth approach by the encapsulation It is sent to second terminal.
It should be noted that each embodiment of corresponding above-mentioned terminal control method, control device may include institute in Fig. 4 Part or all in each functional unit shown, the function of each module will introduced in detail below.The above terminal control method Each embodiment in specific explanation in identical noun related terms and method and preferred embodiment can also be applied In below to the function introduction of each module.For the sake of saving space and avoiding repetition, details are not described herein again.
It should be noted that the form that hardware had both may be used in above-mentioned integrated unit is realized, software work(can also be used The form of energy unit is realized.
Fig. 5 is the schematic diagram for the terminal that an embodiment of the present invention provides.As shown in figure 4, terminal 1 includes at least:Processing Device 20, memory 30, be stored in the memory 30 and can be run on the processor 20 computer program 40 (such as The control program of data processing method).
Wherein, the terminal 1 can be the meter that smart mobile phone, tablet computer, personal digital assistant etc. have shooting function Calculate machine equipment.It will be understood by those skilled in the art that the schematic diagram 3 is only the example of terminal 1, not structure paired terminal 1 Restriction, may include either combining certain components or different components, such as institute than illustrating more or fewer components It can also includes input-output equipment, network access equipment, bus etc. to state terminal 1.
The processor 20 is realized when executing the computer program 40 in the control method embodiment of above-mentioned terminal Step, such as terminal control method shown in FIG. 1, control method shown in Fig. 3.The processor 20 executes the computer journey Realize each module/unit in above-mentioned each device embodiments when sequence 40, for example, in attached drawing 4 each unit function.
Illustratively, the computer program 40 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 30, and are executed by the processor 20, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, and described instruction section is used In describing implementation procedure of the computer program 40 in the terminal 1.For example, the computer program 40 can be divided At the binding unit in Fig. 5, recognition unit, switch unit, monitoring unit, the concrete function of each unit refers to the specific of front It introduces, for the sake of saving space and avoiding repetition, details are not described herein again.
Alleged processor 20 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor 20 can also be any conventional processing Device etc., the processor 20 are the control centres of the control device/terminal 1, utilize various interfaces and connection control The various pieces of device/terminal 1 processed.
For the memory 30 for storing the computer program 40 and/or module/unit, the processor 20 passes through fortune Row executes the computer program and/or module/unit being stored in the memory 30, and calls and be stored in the storage Data in device 30 realize the various functions of the control device/terminal 1.The memory 30 can include mainly storage program Area and storage data field, wherein storing program area can storage program area, needed at least one function application program (such as Sound-playing function, image player function etc.) etc.;Storage data field can be stored uses created data (ratio according to terminal 1 Such as audio data, phone directory, the data etc. for being arranged, obtaining using the control method of above-mentioned camera) etc..In addition, described deposit Reservoir 30 may include high-speed random access memory, can also include nonvolatile memory, such as hard disk, memory, grafting Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the meter The step of terminal control method described in the above embodiment is realized when calculation machine program is executed by processor.
If the integrated module/unit of 1/ computer installation of data processing equipment/terminal is with SFU software functional unit Form is realized and when sold or used as an independent product, can be stored in a computer read/write memory medium.Base In such understanding, the present invention realizes all or part of flow in the above embodiment method, can also pass through computer journey Sequence is completed to instruct relevant hardware, and the computer program can be stored in a computer readable storage medium, described Computer program is when being executed by processor, it can be achieved that the step of above-mentioned each method embodiment.Wherein, the computer journey Sequence includes computer program code, and the computer program code can be source code form, object identification code form, executable text Part or certain intermediate forms etc..The computer readable storage medium may include:The computer program code can be carried Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications letter Number and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be managed according to the administration of justice Local legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent Practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
In several specific implementation modes provided by the present invention, it should be understood that disclosed terminal and method, it can be with It realizes by another way.For example, termini embodiment described above is only schematical, for example, the module Division, only a kind of division of logic function, formula that in actual implementation, there may be another division manner.
In addition, each function module in each embodiment of the present invention can be integrated in same treatment module, it can also That modules physically exist alone, can also two or more modules be integrated in equal modules.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of hardware adds software function module.
It is obvious to a person skilled in the art that the embodiment of the present invention is not limited to the details of above-mentioned exemplary embodiment, And without departing substantially from the spirit or essential attributes of the embodiment of the present invention, this hair can be realized in other specific forms Bright embodiment.Therefore, in all respects, the present embodiments are to be considered as illustrative and not restrictive, this The range of inventive embodiments is indicated by the appended claims rather than the foregoing description, it is intended that being equal in claim will be fallen All changes in the meaning and scope of important document are included in the embodiment of the present invention.It should not be by any attached drawing mark in claim Note, which is considered as, to be limited the claims involved.Furthermore, it is to be understood that one word of " comprising " is not excluded for other units or step, odd number is not excluded for Plural number.Multiple units, module or the device stated in system, device or terminal claim can also be by the same unit, moulds Block or device are realized by software or hardware.The first, the second equal words are used to indicate names, and are not offered as any specific Sequence.
Finally it should be noted that embodiment of above is only to illustrate the technical solution of the embodiment of the present invention and it is unrestricted, Although the embodiment of the present invention is described in detail with reference to the above better embodiment, those skilled in the art should Understand, can modify to the technical solution of the embodiment of the present invention or equivalent replacement should not all be detached from the skill of the embodiment of the present invention The spirit and scope of art scheme.

Claims (10)

1. a kind of terminal control method, which is characterized in that
First terminal acceleration transducer data and touch screen operation data are obtained,
Displacement distance and directional information is calculated according at least to acceleration transducer data;
Operation information is determined according at least to touch screen operation data;
Positioning instruction and control are carried out to the operation in second terminal based on displacement distance and directional information and operation information.
2. terminal control method as described in claim 1, which is characterized in that the method further includes:
Obtain gyro data and geomagnetic sensor data;
It is described that displacement distance and directional information is calculated according at least to acceleration transducer data, including:
Displacement distance and direction letter is calculated according to acceleration transducer data, gyro data and geomagnetic sensor data Breath.
3. such as claims 1 or 2 any one of them terminal control method, which is characterized in that described to be based on displacement distance and side Positioning instruction and control are carried out to the operation in second terminal to information and operation information, including:Based on displacement distance and side Mouse picking instruction is realized to the operation in second terminal to information;It is real to the operation in second terminal based on the operation information Existing mouse control operation.
4. terminal control method as described in claim 1, which is characterized in that described to be determined according at least to touch screen operation data Operation information specifically includes:Operation information is determined according to the touch gestures touched when holding one's breath screen state.
5. terminal control method as described in claim 1, which is characterized in that it is described based on displacement distance and directional information and Operation information carries out positioning instruction and control to the operation in second terminal, specifically includes:The displacement distance and direction are believed Information format is packaged and is sent to second terminal in order to control for breath and operation information conversion, according to the control information to second Operation in terminal carries out positioning instruction and control.
6. terminal control method as claimed in claim 5, which is characterized in that the encapsulation is sent to the by bluetooth approach Two terminals.
7. a kind of terminal control mechanism, which is characterized in that including:
First acquisition unit obtains first terminal acceleration transducer data and touch screen operation data;Computing unit, at least root Displacement distance and directional information is calculated according to acceleration transducer data;
Determination unit determines operation information according at least to touch screen operation data;
Control unit carries out positioning instruction based on displacement distance and directional information and operation information to the operation in second terminal And control.
8. terminal control mechanism as claimed in claim 7, which is characterized in that further include:
Second acquisition unit obtains gyro data and geomagnetic sensor data;The computing unit is specifically used for, according to acceleration Displacement distance and directional information is calculated in degree sensing data, gyro data and geomagnetic sensor data.
9. a kind of terminal, which is characterized in that the terminal includes processor, and the processor is used to execute to store in memory The step of terminal control method as described in any one of claim 1-6 is realized when computer program.
10. a kind of computer readable storage medium is stored thereon with computer program, feature exists, the computer program quilt It is realized when processor executes such as the step of any one of claim 1-6 terminal control method.
CN201810195937.7A 2018-03-09 2018-03-09 A kind of terminal control method, control device, terminal and readable storage medium storing program for executing Pending CN108521497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810195937.7A CN108521497A (en) 2018-03-09 2018-03-09 A kind of terminal control method, control device, terminal and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810195937.7A CN108521497A (en) 2018-03-09 2018-03-09 A kind of terminal control method, control device, terminal and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN108521497A true CN108521497A (en) 2018-09-11

Family

ID=63432754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810195937.7A Pending CN108521497A (en) 2018-03-09 2018-03-09 A kind of terminal control method, control device, terminal and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN108521497A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109282775A (en) * 2018-09-19 2019-01-29 青萍科技(北京)有限公司 A kind of article space displacement monitoring method and its device
CN109558045A (en) * 2018-11-27 2019-04-02 Oppo(重庆)智能科技有限公司 With method, apparatus, terminal and the storage medium of mobile terminal control cursor
CN113076053A (en) * 2021-05-07 2021-07-06 北京字节跳动网络技术有限公司 Cursor remote control method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159456A (en) * 2015-08-31 2015-12-16 武汉云通英飞科技有限公司 Control system of mobile terminal
CN106774994A (en) * 2016-11-28 2017-05-31 杭州联络互动信息科技股份有限公司 The method and apparatus that a kind of utilization wearable device realizes mouse function
CN107102754A (en) * 2017-04-28 2017-08-29 北京小米移动软件有限公司 Terminal control method and device, storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159456A (en) * 2015-08-31 2015-12-16 武汉云通英飞科技有限公司 Control system of mobile terminal
CN106774994A (en) * 2016-11-28 2017-05-31 杭州联络互动信息科技股份有限公司 The method and apparatus that a kind of utilization wearable device realizes mouse function
CN107102754A (en) * 2017-04-28 2017-08-29 北京小米移动软件有限公司 Terminal control method and device, storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109282775A (en) * 2018-09-19 2019-01-29 青萍科技(北京)有限公司 A kind of article space displacement monitoring method and its device
CN109558045A (en) * 2018-11-27 2019-04-02 Oppo(重庆)智能科技有限公司 With method, apparatus, terminal and the storage medium of mobile terminal control cursor
CN113076053A (en) * 2021-05-07 2021-07-06 北京字节跳动网络技术有限公司 Cursor remote control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20220129060A1 (en) Three-dimensional object tracking to augment display area
CN106843739B (en) A kind of display control method and mobile terminal of mobile terminal
ES2873034T3 (en) Method and apparatus for displaying the application interface, and the electronic device
WO2017054623A1 (en) Method and device for starting application program, and electronic device
US20140243092A1 (en) Input control device, input control method, and input control program
US20130198678A1 (en) Method and apparatus for displaying page in terminal
CN115220838A (en) Widget processing method and related device
EP2823387A1 (en) Systems and methods for modifying virtual keyboards on a user interface
CN104272246A (en) Method and apparatus for turning pages in terminal
JP5856313B2 (en) Method and apparatus for load sensing gesture recognition
CN102112948A (en) User interface apparatus and method using pattern recognition in handy terminal
EP3721327B1 (en) Dynamic interaction adaptation of a digital inking device
JP2012221160A (en) Electronic device, display method, and display program
CN108521497A (en) A kind of terminal control method, control device, terminal and readable storage medium storing program for executing
CN114374751A (en) Electronic device including flexible display and method of operating screen of electronic device
US20150067615A1 (en) Method, apparatus, and recording medium for scrapping content
WO2019118034A1 (en) Disambiguating gesture input types using multiple heatmaps
US20190138083A1 (en) Hand and Finger Line Grid for Hand Based Interactions
KR102130361B1 (en) Method and portable electronic device for changing graphics processing resolution according to scenario
TW201619801A (en) Method and system for displaying files
WO2017161808A1 (en) Method for processing desktop icon and terminal
CN111433832B (en) Entity globe with touch function, display terminal and map display method
CN103729119A (en) Method and device used for simulating sliding operation on touch screen of electronic product
CN106020471A (en) Operation method of mobile terminal and mobile terminal
CN117032485A (en) Touch pen-based use method and device

Legal Events

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

Application publication date: 20180911