CN104702317B - A kind of method and electronic equipment for setting up connection - Google Patents

A kind of method and electronic equipment for setting up connection Download PDF

Info

Publication number
CN104702317B
CN104702317B CN201310646476.8A CN201310646476A CN104702317B CN 104702317 B CN104702317 B CN 104702317B CN 201310646476 A CN201310646476 A CN 201310646476A CN 104702317 B CN104702317 B CN 104702317B
Authority
CN
China
Prior art keywords
electronic equipment
time
reception
parameter information
delivery time
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
CN201310646476.8A
Other languages
Chinese (zh)
Other versions
CN104702317A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310646476.8A priority Critical patent/CN104702317B/en
Publication of CN104702317A publication Critical patent/CN104702317A/en
Application granted granted Critical
Publication of CN104702317B publication Critical patent/CN104702317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to areas of information technology, disclose a kind of method and electronic equipment for setting up connection, to solve in the prior art when two electronic equipments set up data cube computation, the data cube computation that cannot be set up between two electronic equipments or the technical problem that data cube computation is set up with the electronic equipment of mistake, the method is applied to the first electronic equipment, and method includes:When it is determined that the first electronic equipment sets up data cube computation with other electronic equipments, the M parameter information within a time period between the first electronic equipment and M electronic equipment is obtained, M parameter information is for the relative displacement between each electronic equipment in the first electronic equipment of sign and M electronic equipment;Corresponding at least one parameter information of at least one highest relative displacement is determined from M parameter information;Set up the data cube computation of at least one of the first electronic equipment M electronic equipment corresponding with least one highest parameter information the second electronic equipment.

Description

A kind of method and electronic equipment for setting up connection
Technical field
The present invention relates to areas of information technology, more particularly to a kind of method and electronic equipment for setting up connection.
Background technology
With continuing to develop for science and technology, electronic technology has also obtained development at full speed, and the species of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology brings.Present people can be produced by various types of electronics Product, the comfortable life that enjoyment brings with development in science and technology.
In this case, many people's equipment interaction/File Sharing Techniques are generated, as the term suggests, that is, multiple electronics Can be interacted or shared data between equipment, for example:Number can be transmitted by Bluetooth protocol between two electronic equipments Remote control can be carried out to another electronic equipment, in this case, it is necessary first to set up two according to a, electronic equipment The data cube computation of electronic equipment, refer to Fig. 1, specifically can in the following manner set up data cube computation:
User selects in passing through the electronic equipment that the first electronic equipment can be matched from multiple to be needed to carry out data cube computation The second electronic equipment;
User is sent to the second electronic equipment by the first electronic equipment and sets up data connection request;
Second electronic equipment is after pairing request is received, if agreeing to set up data cube computation, sends one and agrees to letter Breath;
First electronic equipment is received after the approval information that the second electronic equipment agrees to pairing, then set up the first electronics and set The standby and data cube computation between the second electronic equipment.
Present inventor has found at least there is following technical problem in the prior art:
Due in the prior art, when two electronic equipments set up data cube computation, it is necessary first to user selection need into Second electronic equipment of row data cube computation, and selecting the second electronic equipment to generally require the implementor name by the second electronic equipment Selected, but in many cases, user is not aware that the implementor name of the second electronic equipment, so lead to not set up two Data cube computation between electronic equipment sets up data cube computation with the electronic equipment of mistake.
The content of the invention
The embodiment of the present invention provides a kind of method and electronic equipment for setting up connection, to solve in the prior art in two electricity When sub- equipment sets up data cube computation, two electricity cannot be set up caused by user does not know the implementor name of another electronic equipment Data cube computation between sub- equipment sets up the technical problem of data cube computation with the electronic equipment of mistake.
In a first aspect, the embodiment of the present application provides a kind of method for setting up connection, the first electronic equipment, the side are applied to Method includes:When it is determined that first electronic equipment sets up data cube computation with other electronic equipments, the institute within a time period is obtained M parameter information between the first electronic equipment and M electronic equipment is stated, the M parameter information is used to characterize described first Relative displacement in electronic equipment and the M electronic equipment between each electronic equipment, M is positive integer;From described M ginseng Corresponding at least one parameter information of at least one highest relative displacement is determined in number information;First electronics is set up to set The number of at least one of the standby M electronic equipment corresponding with least one highest parameter information the second electronic equipment According to connection.
With reference in a first aspect, in the first possible implementation, the acquisition first electricity within a time period M parameter information between sub- equipment and M electronic equipment, specifically includes:Connect it is determined that setting up data with other electronic equipments When connecing, the first voice signal is produced, and record the first delivery time for producing first voice signal;Receive the M electricity The M electronic equipment that sub- equipment is fed back receives M first time of reception corresponding to first voice signal; After first delivery time, second sound signal is produced, and when recording the second transmission for producing the second sound signal Carve;Receive the M electronic equipment that the M electronic equipment fed back and receive M corresponding to the second sound signal Individual second time of reception;Based on the first delivery time, M first times of reception, second delivery time, described M second time of reception determines the M parameter information.
It is described to be based in second possible implementation with reference to the first possible implementation of first aspect First delivery time, the M first time of reception, second delivery time, the M second time of reception determine The M parameter information, specifically includes:Determine the M based on first delivery time and the M first time of reception Electronic equipment receives M the first duration spent by first voice signal;It is individual based on second delivery time and the M Second time of reception determined that the M electronic equipment received M the second duration spent by the second sound signal;Take successively I is the integer of 1 to M, and i-th second in M the second duration are subtracted with i-th first durations in the M the first duration Duration can obtain for the i-th time period, and then obtain M time period, and the M time period is used to characterize M relative displacement.
It is described to be based in the third possible implementation with reference to the first possible implementation of first aspect First delivery time, the M first time of reception, second delivery time, the M second time of reception, tool Body includes:The M electronic equipment reception described the is determined based on first delivery time and the M first time of reception M the first duration spent by one voice signal;Institute is determined based on second delivery time and the M second time of reception State M the second duration spent by the M electronic equipment reception second sound signal;The integer that i is 1 to M is taken successively, uses institute When stating i-th second durations that i-th first durations in M the first durations are subtracted in M the second duration and can obtain i-th Between section, and then obtain M time period;The M time period is scaled M relative displacement.
With reference to any one the possible implementation in the first to three kind of possible implementation of first aspect, It is described after first delivery time in four kinds of possible implementations, second sound signal is produced, specifically include:Connect Receive the trigger action of user;The trigger action is responded, and then produces the second sound signal;Or it is described in the described first hair Send after the moment, produce second sound signal, specially:In preset time period after first delivery time, actively Produce the second sound signal.
Second aspect, the embodiment of the present application provides a kind of electronic equipment, including:Acquisition module, for it is determined that the electricity When sub- equipment sets up data cube computation with other electronic equipments, the electronic equipment and the M electronics within a time period are obtained M parameter information between equipment, the M parameter information is used to characterizing in the electronic equipment and the M electronic equipment Relative displacement between each electronic equipment, M is positive integer;Determining module, for being determined from the M parameter information Corresponding at least one parameter information of at least one highest relative displacement;Set up module, for set up the electronic equipment with The data of at least one of the corresponding M electronic equipment of at least one highest parameter information the second electronic equipment connect Connect.
With reference to second aspect, in the first possible implementation, the acquisition module is specifically included:First produces Unit, for when it is determined that setting up data cube computation with other electronic equipments, produces the first voice signal, and records generation described the First delivery time of one voice signal;First receiving unit, for receiving the M that the M electronic equipment is fed back Electronic equipment receives M first time of reception corresponding to first voice signal;Second generation unit, for described After first delivery time, second sound signal is produced, and record the second delivery time for producing the second sound signal;The Two receiving units, the rising tone message is received for receiving the M electronic equipment that the M electronic equipment is fed back M second time of reception corresponding to number;Determining unit, during for being received based on first delivery time, the M first Quarter, second delivery time, the M second time of reception determine the M parameter information.
With reference to the first possible implementation of second aspect, in second possible implementation, the determination Unit, specifically includes:First determination subelement, for true based on first delivery time and the M first time of reception The fixed M electronic equipment receives M the first duration spent by first voice signal;Second determination subelement, is used for Determine that the M electronic equipment receives the second sound based on second delivery time and the M second time of reception M the second duration spent by signal;First subtraction subunit, for taking the integer that i is 1 to M successively, with the M first I-th second durations that i-th first durations in duration are subtracted in M the second duration can obtain for the i-th time period, and then M time period is obtained, the M time period is used to characterize M relative displacement.
With reference to the first possible implementation of second aspect, in the third possible implementation, the determination Unit, specifically includes:3rd determination subelement, for true based on first delivery time and the M first time of reception The fixed M electronic equipment receives M the first duration spent by first voice signal;4th determination subelement, is used for Determine that the M electronic equipment receives the second sound based on second delivery time and the M second time of reception M the second duration spent by signal;Second subtraction subunit, for taking the integer that i is 1 to M successively, with the M first I-th second durations that i-th first durations in duration are subtracted in M the second duration can obtain for the i-th time period, and then Obtain M time period;Conversion subelement, for the M time period to be scaled into M relative displacement.
With reference to any one the possible implementation in the first to three kind of possible implementation of second aspect, In four kinds of possible implementations, second generation unit is specifically included:Receiving subelement, the triggering for receiving user Operation;Generating subunit, for responding the trigger action, and then produces the second sound signal;Or second generation Subelement, specifically for:In preset time period after first delivery time, first electronic equipment is actively produced The second sound signal.
The present invention has the beneficial effect that:
Due in embodiments of the present invention, when it is determined that the first electronic equipment sets up data cube computation with other electronic equipments, The M parameter information within a time period between the first electronic equipment and M electronic equipment is obtained, and M parameter information is used for Characterize the relative displacement between each electronic equipment in the first electronic equipment and M electronic equipment, and then from M parameter information In determine corresponding at least one parameter information of at least one highest relative displacement, finally set up the first electronic equipment with extremely The data cube computation of corresponding at least one second electronic equipment of a few parameter information, that is to say, that setting up the first electronic equipment During with the data cube computation of at least one second electronic equipments, it is not necessary to which user manually selects at least one electronic equipment, Jin Erfang Stopped because user do not know caused by the implementor name of at least one second electronic equipments cannot set up the first electronic equipment with The electronic equipment of data cube computation or the first electronic equipment between at least one second electronic equipments sets up the skill of data cube computation Art problem, having reached the first electronic equipment can accurately set up the technology effect of data cube computation with least one second electronic equipments Really.
Brief description of the drawings
Fig. 1 be the embodiment of the present invention in set up connection method flow chart;
Fig. 2 is that the embodiment of the present invention sets up the M flow chart of parameter information of acquisition in the method for connecting;
Fig. 3 is that the embodiment of the present invention sets up the M flow chart of time period of determination in the method for connecting;
Fig. 4 is that the embodiment of the present invention sets up the M flow chart of relative displacement of determination in the method for connecting;
Fig. 5 is the position relationship schematic diagram that the embodiment of the present invention sets up electronic equipment A, B, C in the method for connecting;
Fig. 6 is the structure chart of electronic equipment in the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention provides a kind of method and electronic equipment for setting up connection, to solve in the prior art in two electricity When sub- equipment sets up data cube computation, two electricity cannot be set up caused by user does not know the implementor name of another electronic equipment Data cube computation between sub- equipment sets up the technical problem of data cube computation with the electronic equipment of mistake.
Technical scheme in the embodiment of the present invention is to solve above-mentioned technical problem, and general thought is as follows:
When it is determined that the first electronic equipment sets up data cube computation with other electronic equipments, the first electricity within a time period is obtained M parameter information between sub- equipment and M electronic equipment, M parameter information is used to characterize the first electronic equipment and M electronics Relative displacement in equipment between each electronic equipment, M is positive integer;At least one is determined from M parameter information most Corresponding at least one parameter information of relative displacement high;Set up the first electronic equipment corresponding with least one highest parameter information The second electronic equipment of at least one of M electronic equipment data cube computation.
Due in such scheme, it is not necessary to which user manually selects at least one electronic equipment, and then prevents because using Family not known and cannot set up the first electronic equipment and at least one caused by the implementor name of at least one second electronic equipments The electronic equipment of data cube computation or the first electronic equipment between two electronic equipments sets up the technical problem of data cube computation, reaches First electronic equipment can accurately set up the technique effect of data cube computation with least one second electronic equipments.
In order to be better understood from above-mentioned technical proposal, below by accompanying drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to the detailed of technical solution of the present invention Thin explanation, rather than the restriction to technical solution of the present invention, in the case where not conflicting, the embodiment of the present invention and embodiment In technical characteristic can be mutually combined.
On the one hand, the embodiment of the present application provides a kind of method for setting up connection, is applied to the first electronic equipment, the first electronics Equipment is, for example,:Mobile phone, panel computer etc..
Fig. 1 is refer to, the method specifically includes following steps:
Step S101:When it is determined that the first electronic equipment sets up data cube computation with other electronic equipments, obtain in the time M parameter information in section between the first electronic equipment and M electronic equipment, M parameter information is used for the first electronics of sign and sets It is standby with the relative displacement between each electronic equipment in M electronic equipment, M is positive integer;
Step S102:Corresponding at least one ginseng of at least one highest relative displacement is determined from M parameter information Number information;
Step S103:Set up in the first electronic equipment M electronic equipment corresponding with least one highest parameter information The data cube computation of at least one second electronic equipments.
In specific implementation process, in step S101, M parameter information is obtained, refer to Fig. 2, it is specific again including following Step:
Step S201:It is determined that setting up data cube computation with other electronic equipments(For example:Set up bluetooth connection, set up infrared Connection etc.)When, the first voice signal is produced, and record the first delivery time for producing the first voice signal;Wherein it is determined that with Other electronic equipments are set up data cube computation and can be triggered in several ways, for example:User clicks on a pre-set button, user and produces One default gesture, electronic equipment are in mobile status etc., wherein being determined at other electronic equipments in user's triggering sets up data During connection, it is possible to produce the first voice signal, first voice signal can be to set up silent when being connected with other electronic equipments Any voice signal recognized, the embodiment of the present invention is not restricted.When the first electronic equipment produces the first voice signal, it is possible to The clock information of the first electronic equipment is read, and then records the time that the first electronic equipment produces the first voice signal, it is assumed that be: TA1;
Step S202:The M electronic equipment that M electronic equipment of reception is fed back is received corresponding to the first voice signal M first time of reception;In specific implementation process, it is assumed that there are two electronic equipments to receive the first voice signal, respectively The time that electronic equipment B and electronic equipment C, wherein electronic equipment B receive the first voice signal is TB1, and electronic equipment C is received To the first voice signal time be TC1, and electronic equipment B and electronic equipment C record its receive the first voice signal when Between after, just its corresponding network identity and the first reception time are broadcasted, and then the first electronic equipment is connect Receive the M network identity of electronic equipment corresponding first reception time.
Step S203:After the first delivery time, second sound signal is produced, and record generation second sound signal Second delivery time;Same first electronic equipment when second sound signal is produced, can read the clock of the second electronic equipment, And then record the second delivery time, it is assumed that it is TA2;
In specific implementation process, second sound signal can be produced on various opportunitys, be set forth below two kinds therein and enter Row is introduced, and certainly, in specific implementation process, is not limited to following two situations.
The first, after the time period after the first delivery time, produces second sound signal, specifically includes:Receive The trigger action of user;Response trigger action, and then produce second sound signal.The trigger action can be any operation, example Such as:Click on a pre-set button, produce default gesture, electronic equipment to stop movement etc., triggering behaviour is detected in electronic equipment After work, it is possible to determine that user wishes to produce second sound signal, and then electronic equipment response trigger action, produce correspondence Voice signal, in this case, when different, produce second sound signal with produce the first voice signal time It is spaced and differs.
Second, after the first delivery time, second sound signal is produced, specially:After the first delivery time Preset time period in, actively produce second sound signal.Preset time period can be random time section, for example:5s, 10s etc. Deng, in such a case it is not necessary to the triggering of user can produce second sound signal, thus it is more convenient with operating Technique effect, and prevent because user forgets to produce caused by secondary signal can not set up the first electronic equipment and at least one Data cube computation between individual second electronic equipment.
Step S204:The M electronic equipment that M electronic equipment of reception is fed back is received corresponding to second sound signal M second time of reception;Assuming that electronic equipment B corresponding second times of reception are TB2, electronic equipment C corresponding second is received Moment is TC2, after electronic equipment B and electronic equipment C determined for second time of reception, just by its network identity and corresponding Second time of reception was broadcasted, and then the first electronic equipment is obtained network identity and corresponding second time of reception.
Step S205:During based on the first delivery time, M first time of reception, the second delivery time, M second reception Carve and determine M parameter information.
In specific implementation process, in step S205, based on the M difference of parameter information, the M side of parameter information is determined Formula is also different, is set forth below two kinds therein and is introduced, and certainly, in specific implementation process, is not limited to following two situations.
The first, refer to Fig. 3, specifically include following steps:
Step S301:Determine that M electronic equipment receives the first sound based on the first delivery time and M first time of reception M the first duration spent by signal;
Or by M electronic equipment including as a example by electronic equipment B and electronic equipment C, then following two the can be obtained One duration:
First duration of electronic equipment B:TB1-TA1
First duration of electronic equipment C:TC1-TA1
Step S302:Determine that M electronic equipment receives second sound based on the second delivery time and M second time of reception M the second duration spent by signal;
Or by M electronic equipment including as a example by electronic equipment B and electronic equipment C, then following two the can be obtained One duration:
Second duration of electronic equipment B:TB2-TA2
Second duration of electronic equipment C:TC2-TA2
Step S303:The integer that i is 1 to M is taken successively, and M the is subtracted with i-th first durations in M the first durations I-th second durations in two durations can obtain for the i-th time period, and then obtain M time period, and M time period is used for table Levy M relative displacement.
Or by taking electronic equipment B above and electronic equipment C as an example, then following two time periods can be obtained:
The electronic equipment B corresponding time periods:(TB2-TA2)-(TB1-TA1)
The electronic equipment C corresponding time periods:(TC2-TA2)-(TC1-TA1)
Wherein, when being propagated in atmosphere due to sound, propagation distance is proportional with the propagation time, wherein the first duration can be with Substantially it is characterized in TA1 moment, the spacing between the first electronic equipment and electronic equipment B or electronic equipment C;And the second duration then may be used To be substantially characterized in the TA2 moment, the spacing between the first electronic equipment and electronic equipment B or electronic equipment C, so electronic equipment The time period of B can be then characterized in TA1 to the TA2 times, the relative displacement between the first electronic equipment and electronic equipment B;And The time period of electronic equipment C can be then characterized in TA1 to the TA2 times, the relative position between the first electronic equipment and electronic equipment C Shifting value.Due in such scheme, relative displacement can be characterized by the time period, without being calculated by the time period Relative displacement, so reached the technique effect for reducing electronic equipment processing load.
Second, Fig. 4 is refer to, specifically include following steps:
Step S401:Determine that M electronic equipment receives the first sound based on the first delivery time and M first time of reception M the first duration spent by signal, the step is similar with S301, will not be repeated here;
Step S402:Determine that M electronic equipment receives second sound based on the second delivery time and M second time of reception M the second duration spent by signal, the step is similar with S302, will not be repeated here;
Step S403:The integer that i is 1 to M is taken successively, and M the is subtracted with i-th first durations in M the first durations I-th second durations in two durations can obtain for the i-th time period, and then obtain M time period, the step and S303, This is repeated no more;
Step S404:M time period is scaled M relative displacement.
In specific implementation process, this M time period is multiplied by the speed that sound is propagated in atmosphere respectively, you can to obtain M relative displacement is obtained, for example:The aerial propagation rate of sound is 340m/s, then used(TB2-TA2)-(TB1- TA1)* 340 relative displacements that can be determined between the first electronic equipment and electronic equipment B;With(TC2-TA2)-(TC1- TA1)* 340 relative displacements that can be determined between the first electronic equipment and electronic equipment C.
In step S102, due to parameter information and relative displacement proportional, so will directly can determine M parameter information be ranked up according to size order, and then determine be located above N parameter information as at least one join Number information, and at least one parameter information can also correspond at least one highest relative displacement.
For example:Assuming that relative displacement is as shown in table 1 respectively between the first electronic equipment and 4 electronic equipments:
Table 1
Assuming that needing therefrom to determine two highest relative displacements, then electronic equipment can be determined 2. and electronic equipment 4. corresponding relative displacement is highest relative displacement;And if only needing to therefrom determine a highest relative displacement, Electronic equipment 2. corresponding relative displacement etc. so can be then determined, for which kind of mode to determine highest relative displacement using Value, and determine several highest relative displacements, the embodiment of the present invention is not restricted.
In step S103, in specific implementation process, corresponding most senior staff officer between the first electronic equipment and the second electronic equipment During number information, for example:Highest displacement changing value, maximum duration section, often characterize the first electronic equipment towards the second electronics Device orientation is moved, and so also can show that user wishes to set up data cube computation with the second electronic equipment, so in this feelings Can ensure that the first electronic equipment accurately can set up data cube computation with least one second electronic equipments under condition.
For example:Assuming that M parameter information is M relative displacement, Fig. 5 is refer to, it is assumed that the first electronic equipment is electronics Device A, M electronic equipment includes electronic equipment B and electronic equipment C;
At the TA1 moment, electronic equipment A is located at position A, and electronic equipment B is located at position B, and electronic equipment is located at position C; TA2 moment, electronic equipment A is located at position A ', and electronic equipment B is located at position B ', and electronic equipment C is located at position C, can be with by Fig. 5 Find out, the relative displacement between electronic equipment A and electronic equipment B is:AA '+BB ', and between electronic equipment A and electronic equipment C Relative displacement be:AC-A ' C+BC-B ' C, according to triangle inequality, the difference on both sides is less than the 3rd side:That is AC-A ' C<AA ', BC- B’C<BB ', so AC-A ' C+BC-B ' C<AA '+BB ', it can be seen that in the first electronic equipment towards a certain electronic equipment direction During operation, the relative displacement of the first electronic equipment and the electronic equipment is highest, so set up the first electronic equipment with extremely Data cube computation between corresponding second electronic equipment of a few highest relative displacement.
The method that the foundation connection in the present invention is introduced below by way of several specific embodiments, the following examples master Describe the possibility implementation process of the method for foundation connection.It should be noted that the embodiment in the present invention is served only for solution The present invention is released, and cannot be used for the limitation present invention.All meet the embodiment of inventive concept in protection scope of the present invention Within, those skilled in the art know naturally should how thought of the invention be deformed.
Embodiment one
In the present embodiment, with electronic equipment as mobile phone A, M electronic equipment include mobile phone B and mobile phone C respectively as a example by enter Row is introduced.
At the T1 moment, the user A of mobile phone A clicks on pre-set button, and mobile phone A detects the operation that user A clicks on pre-set button Afterwards, the first voice signal is produced, and records current time for T1;
0.03S after the T1 moment, mobile phone C hear the first voice signal, and then the time that record is answered is T1+ 0.03, and broadcast network identity and the first reception time of mobile phone C;
0.04S after the T1 moment, mobile phone B hears the first voice signal, and then the time that record is answered is T1+ 0.04, and broadcast network identity and the first reception time of mobile phone B;
5S after the T1 moment, mobile phone A produces second sound signal, and records current time for T1+5;
0.02S after T1+5, mobile phone B hears second sound signal, and then it is T1+5.02 to record listening time, And broadcast network identity and the second reception time of mobile phone B;
0.04S after T1+5, mobile phone C hear second sound signal, and then it is T1+5.04 to record listening time, And broadcast network identity and the second reception time of mobile phone C;
Mobile phone A receives the network identity of mobile phone B and after the first reception time and the second reception time, determines mobile phone The B corresponding time periods are:(T1+0.03-T1)-(T1+5.02-T1-5)=0.01s;
Mobile phone A receives the network identity of mobile phone C and after the first reception time and the second reception time, determines mobile phone The C corresponding time periods are:(T1+0.04-T1)-(T1+5.04-T1-5)=0s;
Because the mobile phone B corresponding time period is longer than the mobile phone C corresponding time periods, so determine that mobile phone A is relative with mobile phone B Shift value is more than the relative displacement of mobile phone A and mobile phone C, so the data cube computation set up between mobile phone A and mobile phone B.
Embodiment two
In the present embodiment, panel computer B and flat board are included respectively by panel computer A, M electronic equipment of electronic equipment It is introduced as a example by computer C.
At the T2 moment, the user A of panel computer A opens movement, and the acceleration transducer of panel computer A detects flat board electricity Brain A starts after movement, produces the first voice signal, and record current time for T2;
0.05S after the T2 moment, panel computer B hear the first voice signal, and then the time that record is answered is T2+0.05, and broadcast network identity and the first reception time of panel computer B;
0.06S after the T2 moment, panel computer C hear the first voice signal, and then the time that record is answered is T2+0.06, and broadcast network identity and the first reception time of panel computer C;
At the T3 moment, user A stops movement, and the acceleration transducer of panel computer A detects panel computer A and no longer moves Afterwards, panel computer A produces second sound signal, and records current time for T3;
0.03S after the T3 moment, panel computer B hear second sound signal, and then it is T3+ to record listening time 0.02, and broadcast network identity and the second reception time of panel computer B;
0.05S after t 3, panel computer C hear second sound signal, and then it is T3+ to record listening time 0.05, and broadcast network identity and the second reception time of panel computer C;
Panel computer A receives the network identity of panel computer B and after the first reception time and the second reception time, Determine that the panel computer B corresponding time periods are:(T2+0.06-T2)-(T3+0.03-T3)=0.03s;
Panel computer A receives the network identity of panel computer C and after the first reception time and the second reception time, Determine that the panel computer C corresponding time periods are:(T2+0.06-T2)-(T3+0.05-T3)=0.1s;
Then panel computer A will respectively be converted into relative displacement the time period, and then determine panel computer A with flat board electricity Relative displacement between brain B is:0.03S*340m/s=10.2m;Relative displacement between panel computer A and panel computer C It is 0.01s*340m/s=3.4m;
Due to panel computer A and the relative position of the relative displacement more than panel computer A and panel computer C of panel computer B Shifting value, so the data cube computation set up between panel computer A and panel computer B.
On the other hand, based on same inventive concept, the embodiment of the present application provides a kind of electronic equipment, refer to Fig. 6, the electricity Sub- equipment specifically includes following structure:
Acquisition module 60, for when it is determined that electronic equipment sets up data cube computation with other electronic equipments, obtaining for the moment Between M parameter information between section inner electronic equipment and M electronic equipment, M parameter information be used for characterization of electronic equipment with M Relative displacement in electronic equipment between each electronic equipment, M is positive integer;
Determining module 61, it is corresponding at least for determining at least one highest relative displacement from M parameter information One parameter information;
Module 62 is set up, for setting up in electronic equipment M electronic equipment corresponding with least one highest parameter information At least one second electronic equipments data cube computation.
Optionally, acquisition module 60, specifically include:
First generation unit, for when it is determined that setting up data cube computation with other electronic equipments, producing the first voice signal, And record the first delivery time for producing the first voice signal;
First receiving unit, the first voice signal is received for receiving the M electronic equipment that M electronic equipment is fed back M corresponding first time of reception;
Second generation unit, for after the first delivery time, producing second sound signal, and record the generation rising tone Second delivery time of message number;
Second receiving unit, second sound signal is received for receiving the M electronic equipment that M electronic equipment is fed back M corresponding second time of reception;
Determining unit, for being connect based on the first delivery time, M first time of reception, the second delivery time, M individual second Time receiving carves and determines M parameter information.
Optionally, determining unit, specifically includes:
First determination subelement, for determining that M electronic equipment connects based on the first delivery time and M first time of reception Receive M the first duration spent by the first voice signal;
Second determination subelement, for determining that M electronic equipment connects based on the second delivery time and M second time of reception Receive M the second duration spent by second sound signal;
First subtraction subunit, for taking the integer that i is 1 to M successively, with i-th first durations in M the first duration Subtracting i-th second durations in M the second duration can obtain for the i-th time period, and then obtain M time period, M time Section is for characterizing M relative displacement.
Optionally, determining unit, specifically includes:
3rd determination subelement, for determining that M electronic equipment connects based on the first delivery time and M first time of reception Receive M the first duration spent by the first voice signal;
4th determination subelement, for determining that M electronic equipment connects based on the second delivery time and M second time of reception Receive M the second duration spent by second sound signal;
Second subtraction subunit, for taking the integer that i is 1 to M successively, with i-th first durations in M the first duration Subtracting i-th second durations in M the second duration can obtain for the i-th time period, and then obtain M time period;
Conversion subelement, for M time period to be scaled into M relative displacement.
Optionally, the second generation unit, specifically includes:
Receiving subelement, the trigger action for receiving user;
Generating subunit, for responding trigger action, and then produces second sound signal;Or
Second generating subunit, specifically for:
In preset time period after the first delivery time, the first electronic equipment actively produces second sound signal.
One or more technical schemes that the application is provided, at least have the following technical effect that or advantage:
Due in embodiments of the present invention, when it is determined that the first electronic equipment sets up data cube computation with other electronic equipments, The M parameter information within a time period between the first electronic equipment and M electronic equipment is obtained, and M parameter information is used for Characterize the relative displacement between each electronic equipment in the first electronic equipment and M electronic equipment, and then from M parameter information In determine corresponding at least one parameter information of at least one highest relative displacement, finally set up the first electronic equipment with extremely The data cube computation of corresponding at least one second electronic equipment of a few parameter information, that is to say, that setting up the first electronic equipment During with the data cube computation of at least one second electronic equipments, it is not necessary to which user manually selects at least one electronic equipment, Jin Erfang Stopped because user do not know caused by the implementor name of at least one second electronic equipments cannot set up the first electronic equipment with The electronic equipment of data cube computation or the first electronic equipment between at least one second electronic equipments sets up the skill of data cube computation Art problem, having reached the first electronic equipment can accurately set up the technology effect of data cube computation with least one second electronic equipments Really.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program of upper implementation is produced The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.So, if these modifications of the embodiment of the present invention and modification belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. a kind of method for setting up connection, is applied to the first electronic equipment, it is characterised in that methods described includes:
When it is determined that first electronic equipment and other electronic equipments set up data cube computation, obtain described the within a time period M parameter information between one electronic equipment and M electronic equipment, the M parameter information is used to characterize first electronics Relative displacement in equipment and the M electronic equipment between each electronic equipment, M is positive integer;
Corresponding at least one parameter information of at least one highest relative displacement is determined from the M parameter information;
Set up in the first electronic equipment M electronic equipment corresponding with least one highest parameter information extremely A few data cube computation for second electronic equipment.
2. method as claimed in claim 1, it is characterised in that the acquisition first electronic equipment and M within a time period M parameter information between individual electronic equipment, specifically includes:
When it is determined that setting up data cube computation with other electronic equipments, the first voice signal is produced, and record generation first sound First delivery time of message number;
Receive the M electronic equipment that the M electronic equipment fed back and receive M corresponding to first voice signal Individual first time of reception;
After first delivery time, second sound signal is produced, and record the second of the generation second sound signal Delivery time;
Receive the M electronic equipment that the M electronic equipment fed back and receive M corresponding to the second sound signal Individual second time of reception;
Based on first delivery time, the M first time of reception, second delivery time, the M second reception Moment determines the M parameter information.
3. method as claimed in claim 2, it is characterised in that described to be connect based on first delivery time, the M first Quarter in time receiving, second delivery time, the M second time of reception determine the M parameter information, specifically include:
Determine that the M electronic equipment receives described first based on first delivery time and the M first time of reception M the first duration spent by voice signal;
Determine that the M electronic equipment receives described second based on second delivery time and the M second time of reception M the second duration spent by voice signal;
The integer that i is 1 to M is taken successively, in subtracting M the second duration with i-th first durations in the M the first durations I-th second durations can obtain for the i-th time period, and then obtain M time period, and the M time period is used to characterize M phase To shift value.
4. method as claimed in claim 2, it is characterised in that described to be connect based on first delivery time, the M first Quarter in time receiving, second delivery time, the M second time of reception, specifically include:
Determine that the M electronic equipment receives described first based on first delivery time and the M first time of reception M the first duration spent by voice signal;
Determine that the M electronic equipment receives described second based on second delivery time and the M second time of reception M the second duration spent by voice signal;
The integer that i is 1 to M is taken successively, in subtracting M the second duration with i-th first durations in the M the first durations I-th second durations can obtain for the i-th time period, and then obtain M time period;
The M time period is scaled M relative displacement.
5. the method as described in claim 2-4 is any, it is characterised in that described after first delivery time, produces Second sound signal, specifically includes:
Receive the trigger action of user;
The trigger action is responded, and then produces the second sound signal;Or
It is described after first delivery time, produce second sound signal, specially:
In preset time period after first delivery time, the second sound signal is actively produced.
6. a kind of electronic equipment, it is characterised in that including:
Acquisition module, for when it is determined that the electronic equipment sets up data cube computation with other electronic equipments, obtaining in the time M parameter information in section between the electronic equipment and M electronic equipment, the M parameter information is used to characterize the electricity Relative displacement in sub- equipment and the M electronic equipment between each electronic equipment, M is positive integer;
Determining module, for determining at least one highest relative displacement corresponding at least from the M parameter information Individual parameter information;
Module is set up, for setting up the electronic equipment M electronics corresponding with least one highest parameter information The data cube computation of the electronic equipment of at least one of equipment second.
7. electronic equipment as claimed in claim 6, it is characterised in that the acquisition module, specifically includes:
First generation unit, for when it is determined that setting up data cube computation with other electronic equipments, producing the first voice signal, and remember Record produces the first delivery time of first voice signal;
First receiving unit, described first is received for receiving the M electronic equipment that the M electronic equipment is fed back M first time of reception corresponding to voice signal;
Second generation unit, for after first delivery time, produces second sound signal, and records generation described the Second delivery time of two voice signals;
Second receiving unit, described second is received for receiving the M electronic equipment that the M electronic equipment is fed back M second time of reception corresponding to voice signal;
Determining unit, for based on first delivery time, the M first time of reception, second delivery time, institute Stating M second times of reception determines the M parameter information.
8. electronic equipment as claimed in claim 7, it is characterised in that the determining unit, specifically includes:
First determination subelement, for determining the M electricity based on first delivery time and the M first time of reception Sub- equipment receives M the first duration spent by first voice signal;
Second determination subelement, for determining the M electricity based on second delivery time and the M second time of reception Sub- equipment receives M the second duration spent by the second sound signal;
First subtraction subunit, for taking the integer that i is 1 to M successively, with i-th first durations in the M the first duration Subtracting i-th second durations in M the second duration can obtain for the i-th time period, and then obtain M time period, the M Time period is used to characterize M relative displacement.
9. electronic equipment as claimed in claim 7, it is characterised in that the determining unit, specifically includes:
3rd determination subelement, for determining the M electricity based on first delivery time and the M first time of reception Sub- equipment receives M the first duration spent by first voice signal;
4th determination subelement, for determining the M electricity based on second delivery time and the M second time of reception Sub- equipment receives M the second duration spent by the second sound signal;
Second subtraction subunit, for taking the integer that i is 1 to M successively, with i-th first durations in the M the first duration Subtracting i-th second durations in M the second duration can obtain for the i-th time period, and then obtain M time period;
Conversion subelement, for the M time period to be scaled into M relative displacement.
10. the electronic equipment as described in claim 7-9 is any, it is characterised in that second generation unit, specifically includes:
Receiving subelement, the trigger action for receiving user;
Generating subunit, for responding the trigger action, and then produces the second sound signal;Or
Also including the second generating subunit, second generating subunit, specifically for:
In preset time period after first delivery time, the second sound signal is actively produced.
CN201310646476.8A 2013-12-04 2013-12-04 A kind of method and electronic equipment for setting up connection Active CN104702317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310646476.8A CN104702317B (en) 2013-12-04 2013-12-04 A kind of method and electronic equipment for setting up connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310646476.8A CN104702317B (en) 2013-12-04 2013-12-04 A kind of method and electronic equipment for setting up connection

Publications (2)

Publication Number Publication Date
CN104702317A CN104702317A (en) 2015-06-10
CN104702317B true CN104702317B (en) 2017-06-27

Family

ID=53349126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310646476.8A Active CN104702317B (en) 2013-12-04 2013-12-04 A kind of method and electronic equipment for setting up connection

Country Status (1)

Country Link
CN (1) CN104702317B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102150107A (en) * 2008-09-15 2011-08-10 索尼爱立信移动通讯有限公司 Wireless connection for data devices
CN102224741A (en) * 2008-11-20 2011-10-19 索尼公司 Wireless communication apparatus and wireless communication method
CN103178876A (en) * 2011-12-23 2013-06-26 成都有尔创意品牌管理有限公司 Method for establishing connection with electronic terminal, and electronic terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961541B2 (en) * 2002-05-24 2005-11-01 Aeroscout, Inc. Method and apparatus for enhancing security in a wireless network using distance measurement techniques
KR101494631B1 (en) * 2007-11-05 2015-02-23 삼성전자주식회사 mobile terminal for local wireless communication and method of connecting local wireless communication terminal thereof
KR101706978B1 (en) * 2009-08-26 2017-02-17 삼성전자주식회사 Method for bluetooth communication and terminal applying the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102150107A (en) * 2008-09-15 2011-08-10 索尼爱立信移动通讯有限公司 Wireless connection for data devices
CN102224741A (en) * 2008-11-20 2011-10-19 索尼公司 Wireless communication apparatus and wireless communication method
CN103178876A (en) * 2011-12-23 2013-06-26 成都有尔创意品牌管理有限公司 Method for establishing connection with electronic terminal, and electronic terminal

Also Published As

Publication number Publication date
CN104702317A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
US11375560B2 (en) Point-to-point ad hoc voice communication
CN107018496B (en) Paging method and device
CN104703036B (en) A kind of method, apparatus and system of synchronized multimedia file playback progress
CN113825241B (en) Time slot format indication method, device, equipment, system and storage medium
AU2020329461B2 (en) Sidelink Resource Mapping Method, Sidelink Resource Transmission Method, Network Device, and Terminal Device
CN106171011A (en) system information transmission method and device
CN108521521A (en) volume adjusting method, mobile terminal and computer readable storage medium
JP7285972B2 (en) PDCCH monitoring method and terminal
WO2020151703A1 (en) Random access method and apparatus, and communication device
CN108810860B (en) Audio transmission method, terminal equipment and main earphone
EP3740005A1 (en) Spatial relationship determination method, terminal and base station
JP2022528338A (en) Transmission method, terminal equipment and network side equipment
KR20160026177A (en) Earphone module
JP2023523636A (en) Downlink reception trigger method, terminal and network side equipment
CN104052801B (en) A kind of information processing method and electronic equipment
WO2021057896A1 (en) Uplink transmission method and terminal
CN104702317B (en) A kind of method and electronic equipment for setting up connection
CN105847951B (en) Control method for playing back and device in audio-video frequency playing system
CN105528175B (en) A kind of method and user terminal for adding wireless sound box
CN105005479B (en) A kind of alarm clock method for closing and smartwatch
WO2021031907A1 (en) Method and terminal for sending random access message in unlicensed frequency band
CN106558326B (en) Method, playback equipment and the mobile terminal that multimedia file plays
CN106385611A (en) Media data playing method, device and system
CN106802801A (en) Application integration control method and device
CN106028221B (en) A kind of method and intelligent sound box controlling time synchronization

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