CN105072253B - A kind of method and terminal of terminal data interaction - Google Patents

A kind of method and terminal of terminal data interaction Download PDF

Info

Publication number
CN105072253B
CN105072253B CN201510402007.0A CN201510402007A CN105072253B CN 105072253 B CN105072253 B CN 105072253B CN 201510402007 A CN201510402007 A CN 201510402007A CN 105072253 B CN105072253 B CN 105072253B
Authority
CN
China
Prior art keywords
terminal
gesture
swing
mobile phone
swings
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
Application number
CN201510402007.0A
Other languages
Chinese (zh)
Other versions
CN105072253A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510402007.0A priority Critical patent/CN105072253B/en
Publication of CN105072253A publication Critical patent/CN105072253A/en
Application granted granted Critical
Publication of CN105072253B publication Critical patent/CN105072253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of methods of terminal data interaction, including:Obtain first terminal first swings gesture, and the second of second terminal swings gesture, described first swings gesture or the second swing gesture as any combinations of at least one of swaying direction, amplitude of fluctuation, swing speed and the oscillating acceleration of the terminal multinomial data of wobble data;Gesture is swung by described first and the second swing gesture is compared, and judges whether the first swing gesture matches with the second swing gesture;If the first swing gesture matches with the second swing gesture, the connection of the first terminal and the second terminal is established, and carries out the data interaction of first terminal and second terminal according to default send instructions.The embodiment of the invention also discloses a kind of terminals.Using the present invention, the advantages of having and efficiency and interest that terminal establishes communication connection can be improved, improve the efficiency of terminal data interaction, enhance the user experience of terminal.

Description

A kind of method and terminal of terminal data interaction
Technical field
The present invention relates to methods and terminal that field of communication technology more particularly to a kind of terminal data interact.
Background technology
Currently becoming increasingly popular with terminals such as mobile phones, mobile phone have become inseparable in mobile phone user's life one Point.Mobile phone can by mobile phone chats, take pictures, recorded video, draw a picture, read or browse webpage etc., mobile phone user can be by oneself The information such as picture, video, works or article on mobile phone send other users to, can also carry out the behaviour such as transfer accounts by mobile phone Make.
In the prior art, it when carrying out the data transmission of mobile phone between mobile phone user and mobile phone user, needs each by nothing Either mobile phone cellular mobile network logs in the application account that the instant messagings such as QQ or wechat are applied to gauze network, and then by wireless Network or mobile phone cellular mobile network carry out data transmission.At this point, mobile phone user, which needs network, could carry out data transmission, And the application account for being manually entered instant messaging application is needed, and it is troublesome in poeration, it is poor for applicability.Mobile phone user can also pass through bluetooth Etc. modes be transmitted, need at this time open mobile phone bluetooth module carry out equipment search, receiving the mobile phone of data must also beat Bluetooth module is opened, search obtains that connection could be established, and cumbersome, joint efficiency is low, poor user experience.
Invention content
The embodiment of the present invention provides a kind of method and terminal of terminal data interaction, and terminal can be improved and establish communication connection Efficiency and interest improve the efficiency of terminal data interaction, enhance the user experience of terminal.
An embodiment of the present invention provides a kind of methods of terminal data interaction, may include:
The first of first terminal the second swing gesture for swinging gesture and second terminal is obtained, described first swings hand In gesture or swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration that the second swing gesture is terminal extremely A kind of few any combinations of the multinomial data of wobble data;
Gesture is swung by described first and the second swing gesture is compared, and judges whether described first swing gesture Match with the second swing gesture;
Match if the first swing gesture swings gesture with described second, establishes the first terminal and described the The connection of two terminals, and carry out according to default send instructions the data interaction of the first terminal and the second terminal.
Wherein, the first swing gesture for obtaining first terminal, including:
The wobble data of the first terminal is obtained by gravity sensor or gyroscope built in the first terminal, and Determine the first terminal according to the wobble data first swings gesture;
Wherein, the wobble data includes:In swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration extremely Few one kind.
Wherein, the second swing gesture for obtaining second terminal, including:
The wobble data of the second terminal is obtained by gravity sensor or gyroscope built in the second terminal, and Determine the second terminal according to the wobble data second swings gesture;
Wherein, the wobble data includes:In swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration extremely Few one kind.
Wherein, described that the first swing gesture and the second swing gesture are compared, judge first pendulum Gesture of starting whether with it is described second swing gesture match including:
Gesture is swung by described first to be compared with the second swing gesture, judges whether described first swing gesture It is identical as the second swing gesture, if the determination result is YES, then judge that described first swings gesture and the second swing hand Gesture matches;Or
Gesture is swung by described first to be compared with the second swing gesture, judges that described first swings gesture and institute Whether the gesture combination for stating the second swing gesture composition combines identical with preset target gesture, if the determination result is YES, then sentences The fixed first swing gesture and the second swing gesture match.
Wherein, the default send instructions include:Preset data transmits password, preset data transmits password, and default At least one of figure gesture of data transmission.
The embodiment of the present invention additionally provides a kind of terminal, may include:
Acquisition module, for obtaining the first of first terminal the second swing gesture for swinging gesture and second terminal, institute State swaying direction, amplitude of fluctuation, swing speed and the swing of the first swing gesture or the second swing gesture for terminal Any combinations of the multinomial data of at least one of acceleration wobble data;
Judgment module, for by the acquisition module obtain it is described first swing gesture and it is described second swing gesture into Row compares, and judges whether the first swing gesture matches with the second swing gesture;
Transmission module swings gesture phase for swinging gesture in judgment module judgement described first with described second Timing establishes the connection of the first terminal and the second terminal, and carries out the first terminal according to default send instructions With the data interaction of the second terminal.
Wherein, the acquisition module is specifically used for:
The wobble data of the first terminal is obtained by gravity sensor or gyroscope built in the first terminal, and Determine the first terminal according to the wobble data first swings gesture;
Wherein, the wobble data includes:In swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration extremely Few one kind.
Wherein, the acquisition module is specifically used for:
The wobble data of the second terminal is obtained by gravity sensor or gyroscope built in the second terminal, and Determine the second terminal according to the wobble data second swings gesture;
Wherein, the wobble data includes:In swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration extremely Few one kind.
Wherein, the judgment module is specifically used for:
Gesture is swung by described first to be compared with the second swing gesture, judges whether described first swing gesture It is identical as the second swing gesture, if the determination result is YES, then judge that described first swings gesture and the second swing hand Gesture matches;Or
Gesture is swung by described first to be compared with the second swing gesture, judges that described first swings gesture and institute Whether the gesture combination for stating the second swing gesture composition combines identical with preset target gesture, if the determination result is YES, then sentences The fixed first swing gesture and the second swing gesture match.
The wherein described default send instructions include:Preset data transmits password, preset data transmission password and present count According at least one of the figure gesture of transmission.
Implement the embodiment of the present invention, has the advantages that:
The embodiment of the present invention can obtain the first of first terminal the second swing gesture for swinging gesture and second terminal, Wherein, above-mentioned first gesture or the second swing gesture are swung as swaying direction, amplitude of fluctuation, swing speed and the pendulum of terminal Any combinations of the multinomial data of a plurality of types of wobble datas such as dynamic acceleration.The embodiment of the present invention can swing gesture by first It is compared with the second swing gesture, judges whether the first swing gesture matches with the second swing gesture, and then can be first The communication connection for establishing first terminal and second terminal when gesture matches with the second swing gesture is swung, terminal foundation can be improved The efficiency and interest of communication connection.First terminal and second terminal are established after connection, then can according to default send instructions into The data interaction of row first terminal and second terminal can be improved the efficiency of terminal data interaction, enhance the user experience of terminal.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the 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 first embodiment flow diagram of the method for terminal data interaction provided in an embodiment of the present invention;
Fig. 2 is the second embodiment flow diagram of the method for terminal data interaction provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the embodiment of terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
In the specific implementation, terminal described in the embodiment of the present invention may include:Mobile phone, tablet computer, laptop Or personal computer assistant etc., above-mentioned terminal are only citings, and it is non exhaustive, including but not limited to above-mentioned terminal, do not do herein Limitation.The method that terminal data provided in an embodiment of the present invention will be interacted in conjunction with Fig. 1 to Fig. 3 by taking mobile phone as an example below and end End is specifically described.
It is the first embodiment flow diagram of the method for terminal data interaction provided in an embodiment of the present invention referring to Fig. 1. The method of terminal data interaction described in the embodiment of the present invention, including step:
S101 obtains the first of first terminal the second swing gesture for swinging gesture and second terminal, first pendulum In gesture of starting or swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration that the second swing gesture is terminal At least one wobble data multinomial data any combinations.
In some feasible embodiments, the execution of the method for terminal data interaction described in the embodiment of the present invention Main body can be first terminal described in the embodiment of the present invention, concretely some function module in first terminal, Can be second terminal described in the embodiment of the present invention, concretely some function module in second terminal or the Third terminal except one terminal and second terminal, third terminal can carry out data interaction with first terminal and second terminal.On Executive agent is stated to illustrate, and it is non exhaustive, including but not limited to above-mentioned form.It (will be called in the following text first-hand with first terminal below Machine) for, it is specifically described.
In some feasible embodiments, the first mobile phone can obtain the wobble data of its own first, and be obtained according to it The wobble data got determines the current swing gesture of the first mobile phone.In the specific implementation, the wobble data that the first mobile phone is got It may include:Swaying direction, amplitude of fluctuation, swing speed or oscillating acceleration of mobile phone etc..Specifically, the first mobile phone can obtain The wobble datas such as swaying direction, swing speed, oscillating acceleration or the amplitude of fluctuation of mobile phone, and then can be according to the swing of mobile phone Direction and amplitude of fluctuation determine the wobbling action of mobile phone, for example, when mobile phone is swung to the direction on the mobile phone screen left side, and swing When amplitude is more than predetermined amplitude threshold value, it may be determined that the wobbling action of mobile phone is at this time:It swings to the left.Further, mobile phone determines Its swaying direction is that after swinging to the left, can also determine the pendulum such as swing speed and oscillating acceleration according to the wobble data of detection Dynamic data, and then the swing gesture of mobile phone can be determined according to above-mentioned wobble data.
In the specific implementation, the hand-holdable mobile phone of mobile phone user does several continuous wobbling actions, that is, an action is first swung, And second action is swung after prefixed time interval, swings third action again after next prefixed time interval.The One mobile phone obtains each wobbling action that mobile phone is swung, and records the acquisition time each acted, and then can put above-mentioned mobile phone Dynamic each wobbling action is combined into the swing gesture of the first mobile phone.Specifically, the swing gesture of above-mentioned first mobile phone can be by The wobble datas of types such as swaying direction, amplitude of fluctuation, swing speed and the oscillating acceleration of above-mentioned first mobile phone it is multinomial The combination of data, that is, the first swing gesture of the first mobile phone can be made of one or more wobbling action, each wobbling action Swing speed or oscillating acceleration can be identical, also can be different.Mobile phone user, which can preset, establishes the first mobile phone and second The wobbling action for the swing gesture made needed for the first mobile phone when the connection of mobile phone combines, for example, swing+swing to the right to the left+ Swing to the right+swing to the left etc., mobile phone user can also preset the composite component of each wobbling action, for example, swaying direction With swing speed, swaying direction and oscillating acceleration or swaying direction and amplitude of fluctuation etc..
In some feasible embodiments, the first mobile phone can also obtain the second swing gesture of the second mobile phone, specifically, When the distance of the first mobile phone and the second mobile phone is in preset distance threshold, the first mobile phone can pass through the light sensor built in it Or the sensor of the types such as gas flow transducer obtains the swing gesture of the second mobile phone.Wherein, the second pendulum of above-mentioned second mobile phone The building form for gesture of starting is identical as the first swing building form of gesture of above-mentioned first mobile phone, and details are not described herein.
S102 swings gesture by described first and the second swing gesture is compared, judges that described first swings hand Whether gesture matches with the second swing gesture.
In some feasible embodiments, the first mobile phone acquires the first swing gesture and the second-hand of the first mobile phone After the second of machine swings gesture, then it can swing the second of gesture and the second mobile phone by the first of the first mobile phone and swing gesture progress Matching judges whether the first swing gesture of the first mobile phone is identical with the second swing gesture of the second mobile phone.In the specific implementation, the One mobile phone can according to user like or the connection of the first mobile phone and the second mobile phone is established in the setting of the demand of concrete application scene Required matching condition, wherein concretely the first mobile phone first swings the of gesture and the second mobile phone to above-mentioned matching condition Two swing gestures are identical.When the first mobile phone judges to learn the first of the first mobile phone the second swing hand for swinging gesture and the second mobile phone When gesture is identical, then the second swing gesture of the first swing gesture and the second mobile phone that can determine the first mobile phone matches, Jin Erke Establish the connection of the first mobile phone and the second mobile phone.
S103, if it is described first swing gesture with it is described second swing gesture match, establish the first terminal with The connection of the second terminal, and carry out data friendship of the first terminal with the second terminal according to default send instructions Mutually.
In some feasible embodiments, the first mobile phone determines that the first of the first mobile phone swings gesture and the second mobile phone Second swing gesture match, then can establish the connection of the first mobile phone and the second mobile phone.In the specific implementation, the embodiment of the present invention Described in the first mobile phone and the second mobile phone connection concretely wireless communication modules such as bluetooth of mobile phone connection, also may be used For the communication connection using account of the specified application built in mobile phone.Wherein, above-mentioned specified application may include:It is micro- Letter, microblogging or QQ etc., are not limited herein.That is, the first mobile phone can first swing gesture with second swing gesture it is identical when, Start the wireless communication modules such as the bluetooth of the first mobile phone and the second mobile phone, and establishes the company of the bluetooth of the first mobile phone and the second mobile phone It connects.Further, the first mobile phone also can start the honeycomb of the first mobile phone when the first swing gesture is identical with the second swing gesture Mobile network or wifi module, and establish the network communication connection of the first mobile phone and the second mobile phone.Above-mentioned first mobile phone and The connection type of two mobile phones is only citing, exhaustive instead, including but not limited to above-mentioned connection type, is not limited herein.
In some feasible embodiments, the first mobile phone is established after the connection with the second mobile phone, then can be according to default Send instructions carry out the data interaction of the first mobile phone and the second mobile phone.Specifically, above-mentioned default send instructions may include:Present count According to the figure gesture etc. of transmission password, preset data transmission password and preset data transmission, it is not limited herein.That is, first When mobile phone can be preset with other mobile phones (such as second mobile phone) progress data interaction, the data transmission mouth of required input It enables or the data movement instructions such as the figure gesture of data transmission password or data transmission, and by above-mentioned data movement instruction It stores to the designated memory space of the first mobile phone.First mobile phone is established after the connection with the second mobile phone, then can be according to above-mentioned pre- If data movement instruction prompting mobile telephone set user input corresponding information, when information input by user and preset send instructions phase When matching, then the data transmission of the first mobile phone and the second mobile phone can be carried out, the safety of data transmission is improved.Specific implementation In, the data transmitted between above-mentioned first mobile phone and the second mobile phone may include:Picture, video, works or article etc., or Mobile-phone payment or the data such as transfer accounts, are not limited herein.
In embodiments of the present invention, the first mobile phone can obtain that its own first swings gesture and the second mobile phone the Two swing gesture, wherein first, which swings gesture or the second swing gesture, is the swaying direction of terminal, amplitude of fluctuation, swings speed Any combinations of the multinomial data of a plurality of types of wobble datas such as degree and oscillating acceleration.First mobile phone can be swung first Gesture and the second swing gesture are compared, and judge whether the first swing gesture swings gesture with second and match, and then can be First swing gesture establishes the communication connection of the first mobile phone and the second mobile phone when matching with the second swing gesture, mobile phone can be improved Establish the efficiency and interest of communication connection.First mobile phone and the second mobile phone are established after connection, then can be referred to according to default transmission It enables and carries out data interaction, the efficiency of data in mobile phone interaction can be improved, enhance the user experience of mobile phone.
It is the second embodiment flow diagram of the method for terminal data interaction provided in an embodiment of the present invention referring to Fig. 2. The method of terminal data interaction described in the embodiment of the present invention, including step:
S201 obtains the swing number of the first terminal by gravity sensor or gyroscope built in the first terminal According to, and determine that the first of the first terminal swings gesture according to the wobble data.
In some feasible embodiments, the first mobile phone can obtain the wobble data of its own first, and be obtained according to it The wobble data got determines the current swing gesture of the first mobile phone.In the specific implementation, the wobble data that the first mobile phone is got It may include:Swaying direction, amplitude of fluctuation, swing speed or oscillating acceleration of mobile phone etc..In the specific implementation, the first mobile phone can The wobble data of the first mobile phone is obtained by sensors such as gravity sensor built in it or gyroscopes, and then can be according to acquisition To wobble data determine the first mobile phone first swing gesture.Specifically, the first mobile phone can pass through its built-in gravity sensor Either the sensors such as gyroscope obtain swaying direction, swing speed, oscillating acceleration or amplitude of fluctuation of mobile phone etc. and swing number According to, and then the wobbling action of mobile phone can be determined according to the swaying direction and amplitude of fluctuation of mobile phone, for example, working as mobile phone to mobile phone screen The direction on the left side is swung, and when amplitude of fluctuation is more than predetermined amplitude threshold value, it may be determined that the wobbling action of mobile phone is at this time:To the left It swings.It further, can also be according to gravity sensor or gyroscope after mobile phone determines its swaying direction to swing to the left The wobble data of detection determines the wobble datas such as swing speed and oscillating acceleration, and then can determine hand according to above-mentioned wobble data The swing gesture of machine.
In the specific implementation, the hand-holdable mobile phone of mobile phone user does several continuous wobbling actions, that is, an action is first swung, And second action is swung after prefixed time interval, swings third action again after next prefixed time interval.The One mobile phone obtains each wobbling action that mobile phone is swung by sensors such as gravity sensor built in it or gyroscopes, and remembers The acquisition time each acted is recorded, and then each wobbling action that can swing above-mentioned mobile phone is combined into the swing of the first mobile phone Gesture.Specifically, the swing gesture of above-mentioned first mobile phone can be by the swaying direction of above-mentioned first mobile phone, amplitude of fluctuation, swing speed The combination of the multinomial data of the wobble data of types such as degree and oscillating acceleration, that is, the first of the first mobile phone swings gesture can It is made of one or more wobbling action, the swing speed or oscillating acceleration of each wobbling action can be identical, also may not be used Together.The swing gesture made needed for the first mobile phone when mobile phone user can preset the connection for establishing the first mobile phone and the second mobile phone Wobbling action combination, swing to the right+swing to the left etc. for example, swinging+to the right swing+to the left, mobile phone user can also set in advance The composite component of fixed each wobbling action, for example, swaying direction and swing speed, swaying direction and oscillating acceleration or swing Direction and amplitude of fluctuation etc..The wobbling action combination of above-mentioned swing gesture is only citing, and non exhaustive, including but not limited to above-mentioned Form is not limited herein.
S202 obtains the swing number of the second terminal by gravity sensor or gyroscope built in the second terminal According to, and determine that the second of the second terminal swings gesture according to the wobble data.
In some feasible embodiments, the first mobile phone can also obtain the second swing gesture of the second mobile phone, specifically, When the distance of the first mobile phone and the second mobile phone is in preset distance threshold, the first mobile phone can pass through the light sensor built in it Or the sensor of the types such as gas flow transducer obtains the swing gesture of the second mobile phone.In the specific implementation, the first mobile phone can also lead to The wobble data that the sensors such as gravity sensor or the gyroscope built in the second mobile phone obtain the second mobile phone is crossed, and according to second The wobble data of mobile phone determines the swing gesture of the second mobile phone.First mobile phone can be by obtaining with the specified sensor of the second mobile phone The data that the sensors such as the gravity sensor or gyroscope of the second mobile phone are got, and then can be determined according to the data got The second of second mobile phone swings gesture.Wherein, above-mentioned second mobile phone second swing gesture building form with it is above-mentioned first-hand The building form that the first of machine swings gesture is identical, and details are not described herein.
S203 swings gesture by described first and is compared with the second swing gesture.
S204, it is described first swing gesture and it is described second swing gesture composition gesture combination whether with preset target Gesture combination is identical, if judging result is, thens follow the steps S205.
In some feasible embodiments, the first mobile phone acquires the first swing gesture and the second-hand of the first mobile phone After the second of machine swings gesture, then it can swing the second of gesture and the second mobile phone by the first of the first mobile phone and swing gesture progress Matching judges whether the first swing gesture of the first mobile phone is identical with the second swing gesture of the second mobile phone.In the specific implementation, the One mobile phone can according to user like or the connection of the first mobile phone and the second mobile phone is established in the setting of the demand of concrete application scene Required matching condition, wherein concretely the first mobile phone first swings the of gesture and the second mobile phone to above-mentioned matching condition Two swing gestures are identical.When the first mobile phone judges to learn the first of the first mobile phone the second swing hand for swinging gesture and the second mobile phone When gesture is identical, then the second swing gesture of the first swing gesture and the second mobile phone that can determine the first mobile phone matches, Jin Erke Establish the connection of the first mobile phone and the second mobile phone.
Further, the first mobile phone acquires the first of the first mobile phone the second swing hand for swinging gesture and the second mobile phone After gesture, then the second swing gesture that gesture and the second mobile phone can be swung the first of the first mobile phone matches, and judges first It is identical whether the gesture combination of swing gesture and the second swing gesture composition combines with preset target gesture.In the specific implementation, First mobile phone can according to user like or the company of the first mobile phone and the second mobile phone is established in the setting of the demand of concrete application scene Connect required matching condition, wherein concretely the first mobile phone first swings gesture and the second mobile phone to above-mentioned matching condition The gesture combination that second swing gesture is combined into is combined identical with preset target gesture.Specifically, mobile phone can preset One mobile phone and the second mobile phone establish the target gesture combination needed for connection, and specific combination can be sequential concatenation, or hand over Fork splicing, is not limited herein.For example, when the swing gesture of the first mobile phone is XX, when the second swing gesture is YY, first swings The gesture combination of gesture and the second swing gesture can be XXYY or YYXX either XYXY or YXYX etc..When first-hand Machine judges gesture combination and the target for the second swing gesture composition for learning that the first of the first mobile phone swings gesture and the second mobile phone When gesture combination is identical, then the second swing gesture of the first swing gesture and the second mobile phone that can determine the first mobile phone matches, And then the connection of the first mobile phone and the second mobile phone can be established.
S205 establishes the connection of the first terminal and the second terminal, and according to described in the progress of default send instructions The data interaction of first terminal and the second terminal.
In the specific implementation, the connection of the first mobile phone described in the embodiment of the present invention and the second mobile phone concretely mobile phone The connection of wireless communication modules or the communication connection using account of the specified application built in mobile phone such as bluetooth. Wherein, above-mentioned specified application may include:Wechat, microblogging or QQ etc., are not limited herein.That is, the first mobile phone can be When the gesture combination of one swing gesture and the second swing gesture composition combines identical with target gesture, start the first mobile phone and second The wireless communication modules such as the bluetooth of mobile phone, and establish the connection of the bluetooth of the first mobile phone and the second mobile phone.Further, first-hand Machine also can start first when the gesture combination of the first swing gesture and the second swing gesture composition combines identical with target gesture The cellular mobile network or wifi module of mobile phone, and establish the network communication connection of the first mobile phone and the second mobile phone.Above-mentioned The connection type of one mobile phone and the second mobile phone is only citing, exhaustive instead, including but not limited to above-mentioned connection type, is not done herein Limitation.
In some feasible embodiments, the first mobile phone is established after the connection with the second mobile phone, then can be according to default Send instructions carry out the data interaction of the first mobile phone and the second mobile phone.Specifically, above-mentioned default send instructions may include:Present count According to the figure gesture etc. of transmission password, preset data transmission password and preset data transmission, it is not limited herein.That is, first When mobile phone can be preset with other mobile phones (such as second mobile phone) progress data interaction, the data transmission mouth of required input It enables or the data movement instructions such as the figure gesture of data transmission password or data transmission, and by above-mentioned data movement instruction It stores to the designated memory space of the first mobile phone.First mobile phone is established after the connection with the second mobile phone, then can be according to above-mentioned pre- If data movement instruction prompting mobile telephone set user input corresponding information, when information input by user and preset send instructions phase When matching, then the data transmission of the first mobile phone and the second mobile phone can be carried out, the safety of data transmission is improved.Specific implementation In, the data transmitted between above-mentioned first mobile phone and the second mobile phone may include:Picture, video, works or article etc., or Mobile-phone payment or the data such as transfer accounts, are not limited herein.
In embodiments of the present invention, the first mobile phone can obtain that its own first swings gesture and the second mobile phone the Two swing gesture, wherein first, which swings gesture or the second swing gesture, is the swaying direction of terminal, amplitude of fluctuation, swings speed Any combinations of the multinomial data of a plurality of types of wobble datas such as degree and oscillating acceleration.First mobile phone can be swung first Gesture and the second swing gesture are compared, and judging whether the first swing gesture combines with the gesture of the second swing gesture composition is It is no to be combined with target gesture identical, and then it can be combined and target hand with the gesture of the second swing gesture composition in the first swing gesture Efficiency and interest that mobile phone establishes communication connection can be improved in the communication connection that the first mobile phone and the second mobile phone are established when gesture combines identical Taste.First mobile phone and the second mobile phone are established after connection, then can carry out data interaction according to default send instructions, hand can be improved The efficiency of machine data interaction enhances the user experience of mobile phone.
It is the example structure schematic diagram of terminal provided in an embodiment of the present invention referring to Fig. 3.It is retouched in the embodiment of the present invention The terminal stated, including:
Acquisition module 10, for obtaining the first of first terminal the second swing gesture for swinging gesture and second terminal, Described first swings gesture or the second swing gesture as swaying direction, amplitude of fluctuation, swing speed and the pendulum of terminal Any combinations of at least one of the dynamic acceleration multinomial data of wobble data.
Judgment module 20, described first for obtaining the acquisition module, which swings gesture and described second, swings gesture It is compared, judges whether the first swing gesture matches with the second swing gesture.
Transmission module 30 swings gesture phase for swinging gesture in judgment module judgement described first with described second When matching, the connection of the first terminal and the second terminal is established, and described first is carried out eventually according to default send instructions The data interaction at end and the second terminal.
In some feasible embodiments, above-mentioned acquisition module 10 is specifically used for:
The wobble data of the first terminal is obtained by gravity sensor or gyroscope built in the first terminal, and Determine the first terminal according to the wobble data first swings gesture;
Wherein, the wobble data includes:In swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration extremely Few one kind.
In some feasible embodiments, above-mentioned acquisition module 10 is specifically used for:
The wobble data of the second terminal is obtained by gravity sensor or gyroscope built in the second terminal, and Determine the second terminal according to the wobble data second swings gesture;
Wherein, the wobble data includes:In swaying direction, amplitude of fluctuation, swing speed and oscillating acceleration extremely Few one kind.
In some feasible embodiments, above-mentioned judgment module 20 is specifically used for:
Gesture is swung by described first to be compared with the second swing gesture, judges whether described first swing gesture It is identical as the second swing gesture, if the determination result is YES, then judge that described first swings gesture and the second swing hand Gesture matches;Or
Gesture is swung by described first to be compared with the second swing gesture, judges that described first swings gesture and institute Whether the gesture combination for stating the second swing gesture composition combines identical with preset target gesture, if the determination result is YES, then sentences The fixed first swing gesture and the second swing gesture match.
In some feasible embodiments, terminal described in the embodiment of the present invention can be in the embodiment of the present invention Described first terminal, concretely described in some function module or the embodiment of the present invention in first terminal Second terminal, concretely except some function module in second terminal or first terminal and second terminal Three terminals, third terminal can carry out data interaction with first terminal and second terminal.Above-mentioned executive agent is illustrated, rather than poor It lifts, including but not limited to above-mentioned form.It will be specifically described by taking first terminal (calling the first mobile phone in the following text) as an example below.
In some feasible embodiments, the first mobile phone can obtain the swing number of its own by acquisition module 10 first According to, and the current swing gesture of the first mobile phone is determined according to the wobble data that it gets.In the specific implementation, acquisition module 10 obtains The wobble data got may include:Swaying direction, amplitude of fluctuation, swing speed or oscillating acceleration of mobile phone etc..It is specific real In existing, acquisition module 10 can obtain the swing number of the first mobile phone by sensors such as gravity sensor built in it or gyroscopes According to, and then can determine that the first of the first mobile phone swings gesture according to the wobble data got.Specifically, acquisition module 10 can lead to Cross the sensors such as its built-in gravity sensor or gyroscope obtain the swaying direction of mobile phone, swing speed, oscillating acceleration or The wobble datas such as person's amplitude of fluctuation, and then the wobbling action of mobile phone, example can be determined according to the swaying direction and amplitude of fluctuation of mobile phone Such as, when the data that acquisition module 10 acquires are that mobile phone is swung to the direction on the mobile phone screen left side, and amplitude of fluctuation is more than When predetermined amplitude threshold value, it may be determined that the wobbling action of mobile phone is at this time:It swings to the left.Further, acquisition module 10 determines Its swaying direction is that can also be determined according to the wobble data that gravity sensor or gyroscope detect after swinging to the left and swing speed The wobble datas such as degree and oscillating acceleration, and then the swing gesture of mobile phone can be determined according to above-mentioned wobble data.
In the specific implementation, the hand-holdable mobile phone of mobile phone user does several continuous wobbling actions, that is, an action is first swung, And second action is swung after prefixed time interval, swings third action again after next prefixed time interval.It obtains Modulus block 10 obtains each wobbling action that mobile phone is swung by sensors such as gravity sensor built in it or gyroscopes, and The acquisition time each acted is recorded, and then each wobbling action that can swing above-mentioned mobile phone is combined into the pendulum of the first mobile phone It starts gesture.Specifically, the swing gesture of above-mentioned first mobile phone can be by the swaying direction of above-mentioned first mobile phone, amplitude of fluctuation, swing The combination of the multinomial data of the wobble data of the types such as speed and oscillating acceleration, that is, the first of the first mobile phone swings gesture It can be made of one or more wobbling action, the swing speed or oscillating acceleration of each wobbling action can be identical, also may be used It is different.The swing hand made needed for the first mobile phone when mobile phone user can preset the connection for establishing the first mobile phone and the second mobile phone The wobbling action of gesture combines, and+is swung to the right+for example, swinging to the left and swings to the right+swing to the left etc., mobile phone user can also be advance The composite component of each wobbling action is set, for example, swaying direction and swing speed, swaying direction and oscillating acceleration or pendulum Dynamic direction and amplitude of fluctuation etc..The wobbling action combination of above-mentioned swing gesture is only citing, and non exhaustive, including but not limited to upper Form is stated, is not limited herein.
In some feasible embodiments, acquisition module 10 can also obtain the second swing gesture of the second mobile phone, specifically , when the distance of the first mobile phone and the second mobile phone is in preset distance threshold, acquisition module 10 can be by built in the first mobile phone Light sensor or the sensors of the types such as gas flow transducer obtain the swing gesture of the second mobile phone.In the specific implementation, obtaining Modulus block 10 can also obtain the swing of the second mobile phone by sensors such as gravity sensor built in the second mobile phone or gyroscopes Data, and determine according to the wobble data of the second mobile phone the swing gesture of the second mobile phone.Acquisition module 10 can by with second-hand The specified sensor of machine obtains the data that the sensors such as gravity sensor or the gyroscope of the second mobile phone are got, and then can root Determine the second mobile phone according to the data got second swings gesture.Wherein, the second of above-mentioned second mobile phone swings the group of gesture Identical as the first swing building form of gesture of above-mentioned first mobile phone at mode, details are not described herein.
In some feasible embodiments, acquisition module 10 acquires the first swing gesture and second of the first mobile phone After the second of mobile phone swings gesture, judgment module 20 can then swing the second of gesture and the second mobile phone by the first of the first mobile phone It swings gesture to be matched, judges whether the first swing gesture of the first mobile phone is identical with the second swing gesture of the second mobile phone. In the specific implementation, judgment module 20 can according to user like or the demand of concrete application scene setting establish the first mobile phone and Matching condition needed for the connection of second mobile phone, wherein above-mentioned matching condition concretely the first mobile phone first swing gesture It is identical that gesture is swung with the second of the second mobile phone.When judgment module 20 judges to learn that the first of the first mobile phone swings gesture and second When second swing gesture of mobile phone is identical, then the first of the first mobile phone the second swing hand for swinging gesture and the second mobile phone is can determine Gesture matches, and then the connection of the first mobile phone and the second mobile phone can be established by transmission module 30.
Further, acquisition module 10 acquires the first of the first mobile phone the second swing for swinging gesture and the second mobile phone After gesture, judgment module 20 then can swing the second of gesture and the second mobile phone by the first of the first mobile phone and swing gesture progress Match, judge first swing gesture and second swing gesture composition gesture combination whether combined with preset target gesture it is identical. In the specific implementation, judgment module 20 can according to user like or the demand of concrete application scene setting establish the first mobile phone and Matching condition needed for the connection of second mobile phone, wherein above-mentioned matching condition concretely the first mobile phone first swing gesture Combined with the gesture that the second of the second mobile phone the swing gesture is combined into combined with preset target gesture it is identical.Specifically, judging Module 20 can preset the target gesture that the first mobile phone and the second mobile phone are established needed for connection and combine, and specific combination can be Sequential concatenation, or intersect splicing, it is not limited herein.For example, when the swing gesture of the first mobile phone is XX, second swings hand When gesture is YY, the first gesture combination for swinging gesture and the second swing gesture can be XXYY or YYXX or XYXY, or Person YXYX etc..When judgment module 20 judges to learn that the first of the first mobile phone swings gesture and the second swing gesture group of the second mobile phone At gesture combination combine identical with target gesture when, then can determine the first mobile phone the first swing gesture and the second mobile phone the Two swing gestures match, and then the connection of the first mobile phone and the second mobile phone can be established by transmission module 30.
In some feasible embodiments, judgment module 20 determines that the first of the first mobile phone swings gesture and second-hand Second swing gesture of machine matches, and transmission module 30 can then establish the connection of the first mobile phone and the second mobile phone.In the specific implementation, The connection of the first mobile phone and the second mobile phone that transmission module 30 described in the embodiment of the present invention is established concretely mobile phone The connection of the wireless communication modules such as bluetooth or the communication connection using account of the specified application built in mobile phone.Its In, above-mentioned specified application may include:Wechat, microblogging or QQ etc., are not limited herein.That is, transmission module 30 can be When the gesture combination of one swing gesture and the second swing gesture composition combines identical with target gesture, start the first mobile phone and second The wireless communication modules such as the bluetooth of mobile phone, and establish the connection of the bluetooth of the first mobile phone and the second mobile phone.Further, mould is transmitted Block 30 also can be when the gesture combination of the first swing gesture and the second swing gesture composition combines identical with target gesture, startup the The cellular mobile network or wifi module of one mobile phone, and establish the network communication connection of the first mobile phone and the second mobile phone.It is above-mentioned The connection type of first mobile phone and the second mobile phone is only citing, exhaustive instead, including but not limited to above-mentioned connection type, herein not It is limited.
In some feasible embodiments, transmission module 30 is established after the connection with the second mobile phone, then can be according to pre- If send instructions carry out the data interaction of the first mobile phone and the second mobile phone.Specifically, above-mentioned default send instructions may include:It is default The figure gesture etc. of data transmission password, preset data transmission password and preset data transmission, is not limited herein.That is, passing When defeated module 30 can be preset with other mobile phones (such as second mobile phone) progress data interaction, the data transmission of required input The data movement instructions such as the figure gesture of password or data transmission password or data transmission, and above-mentioned data transmission is referred to Order is stored to the designated memory space of the first mobile phone.Transmission module 30 is established after the connection with the second mobile phone, then can be according to upper It states preset data movement instruction prompting mobile telephone set user and inputs corresponding information, when information input by user and preset transmission refer to When order matches, then the data transmission of the first mobile phone and the second mobile phone can be carried out, the safety of data transmission is improved.It is specific real In existing, the data transmitted between above-mentioned first mobile phone and the second mobile phone may include:Picture, video, works or article etc., also may be used For mobile-phone payment or the data such as transfer accounts, it is not limited herein.
In embodiments of the present invention, the first mobile phone can obtain that its own first swings gesture and the second mobile phone the Two swing gesture, wherein first, which swings gesture or the second swing gesture, is the swaying direction of terminal, amplitude of fluctuation, swings speed Any combinations of the multinomial data of a plurality of types of wobble datas such as degree and oscillating acceleration.First mobile phone can be swung first Gesture and the second swing gesture are compared, and judging whether the first swing gesture combines with the gesture of the second swing gesture composition is It is no to be combined with target gesture identical, and then it can be combined and target hand with the gesture of the second swing gesture composition in the first swing gesture Efficiency and interest that mobile phone establishes communication connection can be improved in the communication connection that the first mobile phone and the second mobile phone are established when gesture combines identical Taste.First mobile phone and the second mobile phone are established after connection, then can carry out data interaction according to default send instructions, hand can be improved The efficiency of machine data interaction enhances the user experience of mobile phone.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (8)

1. a kind of method of terminal data interaction, which is characterized in that the method is suitable for first terminal, the method includes:
The first terminal obtains the multiple wobbling actions of its own and records the acquisition time of each wobbling action, will be described more A wobbling action swings gesture according to first that the sequencing for obtaining the time is combined into the first terminal;
When second terminal is less than or equal to pre-determined distance threshold value at a distance from the first terminal, the first terminal passes through Light sensor or gas flow transducer built in it obtain multiple wobbling actions of the second terminal and record each swing The multiple wobbling action of the second terminal is combined into institute by the acquisition time of action according to the sequencing for obtaining the time State second terminal second swings gesture, wherein the first terminal and/or the wobbling action of the second terminal are by terminal Swaying direction and amplitude of fluctuation determine;
The first terminal swings gesture by described first and is compared with the second swing gesture, judges that described first swings It is identical whether the gesture combination of gesture and the second swing gesture composition combines with preset target gesture, if judging result is It is then to judge that the first swing gesture and the second swing gesture match;
If the first swing gesture matches with the second swing gesture, the first terminal establishes the first terminal With the connection of the second terminal, and the data for carrying out according to default send instructions the first terminal and the second terminal are handed over Mutually.
2. the method as described in claim 1, which is characterized in that the first terminal obtains the multiple wobbling actions of its own, Including:
The first terminal obtains the wobble data of the first terminal by its built-in gravity sensor or gyroscope, In, the wobble data includes:It is each swung in the multiple swaying directions and the multiple swaying direction of the first terminal Amplitude of fluctuation on direction;
Multiple wobbling actions of the first terminal are determined according to the wobble data.
3. method as claimed in claim 1 or 2, which is characterized in that the method further includes:
The first terminal swings gesture by described first and is compared with the second swing gesture, judges that described first swings It is identical whether gesture with described second swings gesture, if the determination result is YES, then judges that described first swings gesture and described the Two swing gestures match.
4. method as claimed in claim 3, which is characterized in that the default send instructions include:Preset data transmission password, Preset data transmits at least one of the figure gesture of password and preset data transmission.
5. a kind of terminal, which is characterized in that the terminal is the first terminal for executing data interaction, the first terminal packet It includes:
Acquisition module, multiple wobbling actions for obtaining the first terminal and the acquisition time for recording each wobbling action, The multiple wobbling action of the first terminal is combined into the of the first terminal according to the sequencing for obtaining the time One swings gesture;
The acquisition module is additionally operable to be less than or equal to pre-determined distance threshold value at a distance from the first terminal when second terminal When, multiple swings that the second terminal is obtained by light sensor built in the first terminal or gas flow transducer are dynamic The acquisition time for making and recording each wobbling action, by the multiple wobbling action of the second terminal according to the acquisition time What sequencing was combined into the second terminal second swings gesture, wherein the first terminal and/or the second terminal Wobbling action is determined by the swaying direction and amplitude of fluctuation of terminal;
Judgment module is compared with the second swing gesture for swinging gesture by described first, judges first pendulum It is identical whether the gesture combination of gesture of starting and the second swing gesture composition combines with preset target gesture, if judging result It is yes, then judges that the first swing gesture and the second swing gesture match;
Transmission module, for matching with the second swing gesture in the judgment module judgement first swing gesture When, establish the connection of the first terminal and the second terminal, and according to default send instructions carry out the first terminal with The data interaction of the second terminal.
6. terminal as claimed in claim 5, which is characterized in that the acquisition module is specifically used for:
The wobble data of the first terminal is obtained by gravity sensor or gyroscope built in the first terminal, wherein The wobble data includes:Each swing side in the multiple swaying directions and the multiple swaying direction of the first terminal Upward amplitude of fluctuation;
Multiple wobbling actions of the first terminal are determined according to the wobble data.
7. such as terminal described in claim 5 or 6, which is characterized in that the judgment module is additionally operable to:
By it is described first swing gesture with it is described second swing gesture be compared, judge it is described first swing gesture whether with institute It is identical to state the second swing gesture, if the determination result is YES, then judges that described first swings gesture and the second swing gesture phase Matching.
8. terminal as claimed in claim 7, which is characterized in that the default send instructions include:Preset data transmission password, Preset data transmits at least one of the figure gesture of password and preset data transmission.
CN201510402007.0A 2015-07-08 2015-07-08 A kind of method and terminal of terminal data interaction Active CN105072253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510402007.0A CN105072253B (en) 2015-07-08 2015-07-08 A kind of method and terminal of terminal data interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510402007.0A CN105072253B (en) 2015-07-08 2015-07-08 A kind of method and terminal of terminal data interaction

Publications (2)

Publication Number Publication Date
CN105072253A CN105072253A (en) 2015-11-18
CN105072253B true CN105072253B (en) 2018-09-04

Family

ID=54501528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510402007.0A Active CN105072253B (en) 2015-07-08 2015-07-08 A kind of method and terminal of terminal data interaction

Country Status (1)

Country Link
CN (1) CN105072253B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241488B (en) * 2017-05-08 2020-03-17 宇龙计算机通信科技(深圳)有限公司 Data interaction method and mobile terminal
CN107465997A (en) 2017-07-28 2017-12-12 广东欧珀移动通信有限公司 Bluetooth connecting method, device, terminal and computer-readable recording medium
CN108024223A (en) * 2017-12-07 2018-05-11 北京小米移动软件有限公司 Data sharing method and device
CN109597552A (en) * 2018-11-27 2019-04-09 维沃移动通信有限公司 A kind of device management method and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118330A (en) * 2013-02-19 2013-05-22 华为终端有限公司 Positioning method and device
CN103313347A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method for establishing connection for mobile terminals, mobile terminals and server
WO2014114162A1 (en) * 2013-01-26 2014-07-31 广州市沃希信息科技有限公司 Electronic device communication method and electronic device communication system
WO2014180293A1 (en) * 2013-05-07 2014-11-13 Li Dongge Method and device for matching signatures on the basis of motion signature information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313347A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method for establishing connection for mobile terminals, mobile terminals and server
WO2014114162A1 (en) * 2013-01-26 2014-07-31 广州市沃希信息科技有限公司 Electronic device communication method and electronic device communication system
CN103118330A (en) * 2013-02-19 2013-05-22 华为终端有限公司 Positioning method and device
WO2014180293A1 (en) * 2013-05-07 2014-11-13 Li Dongge Method and device for matching signatures on the basis of motion signature information

Also Published As

Publication number Publication date
CN105072253A (en) 2015-11-18

Similar Documents

Publication Publication Date Title
TWI502472B (en) Mirrored interface navigation of multiple user interfaces
CN105072253B (en) A kind of method and terminal of terminal data interaction
US11877093B2 (en) User interfaces to facilitate electronic communication
KR101954468B1 (en) Multi-data type communications system
US10913004B1 (en) Games in chat
JP2013009073A (en) Information processing apparatus, information processing method, program, and server
CN107483320B (en) Group creation method and server
CN105594255B (en) Roaming network access method and device
CN103823801B (en) A kind of method, apparatus and system realized webpage in the terminal and shared
CN107276875A (en) Location-based red packet distribution method, system and mobile terminal
CN106569910B (en) Data backup and transmission method and mobile terminal
US11103795B1 (en) Game drawer
CN103905595A (en) Contact person information displaying method and mobile terminal
CN106383574A (en) Screen unlocking method and device and mobile terminal
WO2017070831A1 (en) User management method and terminal
CN106375934A (en) A wireless communication method and terminal based on bluetooth low-power consumption techniques and user equipment
CN104391628B (en) process switching method and device
CN108605373A (en) Method for providing network share service and electronic device
CN106980482A (en) A kind of information displaying method and the first electronic equipment
CN110096375A (en) A kind of Application sharing data method, device and computer readable storage medium
CN106462373A (en) Dynamic display of video communication data
CN107347195A (en) Focus sharing method and mobile terminal
KR20230096019A (en) Context surface in collections
CN106775289A (en) Information sharing apparatus and method
CN106803854A (en) Method, device and wearable device that information is received, sent

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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CP01 Change in the name or title of a patent holder