Summary of the invention
In order to solve operation more complicated and the poor problem of Consumer's Experience, embodiments provide a kind of determination method and apparatus of initiative equipment.Described technical scheme is as follows:
First aspect, present embodiments provide a kind of defining method of initiative equipment, be applied between the first electronic equipment and the second electronic equipment, wherein said first electronic equipment comprises the first sensing unit, described second electronic equipment comprises the second sensing unit, and described method comprises:
Obtain the first kinematic parameter of described first electronic equipment, wherein said first kinematic parameter obtains according to described first sensing unit;
Obtain the second kinematic parameter of described second electronic equipment, wherein said second kinematic parameter obtains according to described second sensing unit, and be transferred to described first electronic equipment;
More described first kinematic parameter and described second kinematic parameter;
When described first kinematic parameter is greater than described second kinematic parameter, determine that described first electronic equipment is initiative equipment.
In the first execution mode of first aspect, described method also comprises:
When described first kinematic parameter is less than described second kinematic parameter, determine that described second electronic equipment is initiative equipment.
In the second execution mode of first aspect, the first kinematic parameter of described acquisition first electronic equipment, wherein said first kinematic parameter obtains according to described first sensing unit; Obtain the second kinematic parameter of the second electronic equipment, comprising:
Detect the distance between described first electronic equipment and described second electronic equipment;
When distance between described first electronic equipment and described second electronic equipment is less than preset distance, obtain the first kinematic parameter of described first electronic equipment, wherein said first kinematic parameter obtains according to described first sensing unit; Obtain the second kinematic parameter of described second electronic equipment.
In conjunction with the second execution mode of first aspect and first aspect, in the 3rd execution mode of first aspect, the second kinematic parameter of the first kinematic parameter of described first electronic equipment of acquisition and described second electronic equipment of acquisition respectively,
Described first electronic equipment and described second electronic equipment respectively centered by respective position, and with described preset distance for radius broadcasts out.
In the 4th execution mode of first aspect, described first kinematic parameter comprises: the difference of the absolute value of the absolute value of speed that described first sensing unit detects for the last time and the initial velocity of detection;
Described second kinematic parameter comprises: the difference of the absolute value of the absolute value of speed that described second sensing unit detects for the last time and the initial velocity of detection.
In the 5th execution mode of first aspect, described method also comprises:
Obtain the present speed direction of described first electronic equipment and described second electronic equipment respectively, the present speed direction of described first electronic equipment obtains according to described first sensing unit, and the present speed direction of described second electronic equipment obtains according to described second sensing unit.
In conjunction with the 5th execution mode of first aspect and first aspect, in the 6th execution mode of first aspect, described when described first kinematic parameter is greater than described second kinematic parameter, determine that described first electronic equipment is initiative equipment, comprising:
When the present speed direction of described first electronic equipment is contrary with the present speed direction of described second electronic equipment and described first kinematic parameter is greater than described second kinematic parameter, determine that described first electronic equipment is initiative equipment.
Second aspect, provides a kind of determining device of initiative equipment, is arranged in the first electronic equipment, and wherein said first electronic equipment comprises the first sensing unit, and described device comprises:
First acquisition module, for obtaining the first kinematic parameter of described first electronic equipment, wherein said first kinematic parameter obtains according to described first sensing unit; Obtain the second kinematic parameter of the second electronic equipment, wherein said second kinematic parameter obtains according to the second sensing unit of described second electronic equipment, and be transferred to described first electronic equipment;
Comparison module, for more described first kinematic parameter and described second kinematic parameter;
Determination module, for when described first kinematic parameter is greater than described second kinematic parameter, determines that described first electronic equipment is initiative equipment.
In the first execution mode of second aspect, described determination module also for,
When described first kinematic parameter is less than described second kinematic parameter, determine that described second electronic equipment is initiative equipment.
In the second execution mode of second aspect, described first acquisition module is used for,
Detect the distance between described first electronic equipment and described second electronic equipment;
When distance between described first electronic equipment and described second electronic equipment is less than preset distance, obtain the first kinematic parameter of described first electronic equipment, wherein said first kinematic parameter obtains according to described first sensing unit; Obtain the second kinematic parameter of the second electronic equipment, wherein said second kinematic parameter obtains according to the second sensing unit of described second electronic equipment, and be transferred to described first electronic equipment.
In conjunction with the second execution mode of second aspect and second aspect, in the 3rd execution mode of second aspect, second kinematic parameter of the first kinematic parameter of described first electronic equipment that described first acquisition module obtains and described second electronic equipment of acquisition is respectively
Described first electronic equipment and described second electronic equipment respectively centered by respective position, and with described preset distance for radius broadcasts out.
In the 4th execution mode of second aspect, described first kinematic parameter comprises: the difference of the absolute value of the absolute value of speed that described first sensing unit detects for the last time and the initial velocity of detection;
Described second kinematic parameter comprises: the difference of the absolute value of the absolute value of speed that described second sensing unit detects for the last time and the initial velocity of detection.
In the 5th execution mode of second aspect, described device also comprises the second acquisition module,
Described second acquisition module is used for, obtain the present speed direction of described first electronic equipment and described second electronic equipment respectively, the present speed direction of described first electronic equipment obtains according to described first sensing unit, and the present speed direction of described second electronic equipment obtains according to described second sensing unit.
In conjunction with the 5th execution mode of second aspect and second aspect, in the 6th execution mode of second aspect, described determination module is used for,
When the present speed direction of described first electronic equipment is contrary with the present speed direction of described second electronic equipment and described first kinematic parameter is greater than described second kinematic parameter, determine that described first electronic equipment is initiative equipment.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: by the second kinematic parameter of the first kinematic parameter and the second electronic equipment that compare the first electronic equipment, when the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment, as initiative equipment, first electronic equipment will initiatively carry out alternately with the second electronic equipment, user is not needed to select as initiative equipment, the fairly simple convenience of the method, and add interest, be beneficial to lifting Consumer's Experience.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
For the ease of the understanding of technical scheme provided the embodiment of the present invention, first initiative equipment is introduced.Initiative equipment can be in two electronic equipments, after mutual between trigger electronics, initiatively carries out mutual electronic equipment with another electronic equipment.Relatively, another electronic equipment is passivity equipment.In addition, in the present embodiment, electronic equipment comprises mobile terminal, such as smart mobile phone, notebook computer and panel computer.Sensing unit can be carry out analyzing the transducer judged to the motion state of equipment itself, comprises gravity sensor, accelerometer and gyroscope.
Embodiment one
Embodiments provide a kind of defining method of initiative equipment, be applied between the first electronic equipment and the second electronic equipment.Wherein the first electronic equipment comprises the first sensing unit, and the second electronic equipment comprises the second sensing unit.The method is performed by the first electronic equipment.See Fig. 1, the method comprises:
Step 101, obtains the first kinematic parameter of the first electronic equipment.
Wherein, the first kinematic parameter obtains according to the first sensing unit.
First kinematic parameter can be the acceleration of the first electronic equipment.
Step 102, obtains the second kinematic parameter of the second electronic equipment.
Wherein, the second kinematic parameter obtains according to the second sensing unit, and be transferred to first electronic equipment.
Second kinematic parameter can be the acceleration of the second electronic equipment.
Step 103, compares the first kinematic parameter and the second kinematic parameter.
When the first kinematic parameter is greater than the second kinematic parameter, perform step 104, when the first kinematic parameter is less than the second kinematic parameter, perform step 105.
Step 104, determines that the first electronic equipment is initiative equipment.
Step 105, determines that the second electronic equipment is initiative equipment.
The embodiment of the present invention is by the second kinematic parameter of the first kinematic parameter and the second electronic equipment that compare the first electronic equipment, when the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment, as initiative equipment, first electronic equipment, by initiatively carrying out alternately with the second electronic equipment, does not need user to select as initiative equipment, the fairly simple convenience of the method, and add interest, be beneficial to lifting Consumer's Experience.
Embodiment two
Embodiments provide a kind of defining method of initiative equipment, be applied between the first electronic equipment and the second electronic equipment.Wherein the first electronic equipment comprises the first sensing unit, and the second electronic equipment comprises the second sensing unit.The method is performed by the first electronic equipment.See Fig. 2, the method comprises:
Step 201, obtains the first kinematic parameter of the first electronic equipment, and centered by position, is that radius broadcasts the first kinematic parameter with preset distance.
Wherein, electronic equipment is provided with certain interactive application.Suppose that user starts this interactive application on the first electronic equipment.After interactive application receives and starts instruction, by startup first sensing unit Real-time Collection first operational factor, this first kinematic parameter can describe the motion state of the first electronic equipment.
This first kinematic parameter can be the difference of the absolute value of the absolute value of the speed that the first sensing unit detects for the last time and the initial velocity of detection.The initial velocity that first sensing unit detects can be, after interactive application starts the first sensing unit, and the speed of the first electronic equipment that the first sensing unit detects first.The speed that first sensing unit detects for the last time can be, the speed of the first electronic equipment that the first sensing unit current detection arrives.Can find out, the first kinematic parameter can describe the degree of the first electronic equipment speedup.
Meanwhile, the first electronic equipment, centered by oneself position, is that radius broadcasts this first kinematic parameter with preset distance.Broadcast mode can adopt near-field communication (NearFieldCommunication is called for short NFC) or bluetooth approach.Suppose that this preset distance is N rice.
Step 202, detects the distance between the first electronic equipment and the second electronic equipment.
As optional execution mode, the first electronic equipment can adopt by the distance between the detection of NFC chip, bluetooth module or camera with the second electronic equipment.
Suppose that the first electronic equipment adopts the distance between NFC chip detection with the second electronic equipment, the covering radius of this NFC chip is N rice.When distance then between the first electronic equipment and the second electronic equipment is not more than N rice, the first electronic equipment will detect the second electronic equipment, and determine that the distance between the second electronic equipment is not more than N rice.
Step 203, when the distance between the first electronic equipment and the second electronic equipment is less than preset distance, obtains the second kinematic parameter of the second electronic equipment.
Wherein, the second kinematic parameter of the second electronic equipment is centered by the second electronic equipment position, is that radius broadcasts out with preset distance.Wherein, the second kinematic parameter obtains according to the second sensing unit, and be transferred to first electronic equipment.Second kinematic parameter can be the difference of the absolute value of the absolute value of the speed that the second sensing unit detects for the last time and the initial velocity of detection.
Such as, when the first electronic equipment detects the second electronic equipment by NFC chip, the first electronic equipment is positioned at the broadcast area of the second electronic equipment.At this moment, the first electronic equipment starts receiving function, starts the second kinematic parameter receiving the second electronic equipment broadcast.
What deserves to be explained is, step 202 is optional step, and in other embodiments, the first electronic equipment when interactive application starts, just can open receiving function.As long as the distance between the first electronic equipment and the second electronic equipment is less than preset distance, the first electronic equipment just initiatively can obtain the second kinematic parameter of the second electronic equipment.In the present embodiment, the distance between the first electronic equipment and the second electronic equipment is less than preset distance, is as mutual trigger condition occurs between electronic equipment.
Achieved by above-mentioned steps 201-step 203, obtain the first kinematic parameter of the first electronic equipment and obtain the second kinematic parameter of the second electronic equipment.
Step 204, compares the first kinematic parameter and the second kinematic parameter.
When the first kinematic parameter is greater than the second kinematic parameter, perform step 205, when the first kinematic parameter is less than the second kinematic parameter, perform step 206.
Because kinematic parameter can describe the degree of electronic equipment speedup, therefore, if the first kinematic parameter is greater than the second kinematic parameter, then show that the first electronic equipment is faster than the second electronic equipment speedup; Otherwise, if the first kinematic parameter is less than the second kinematic parameter, then show that the second electronic equipment is faster than the first electronic equipment speedup.
Step 205, determines that the first electronic equipment is initiative equipment.
When the first electronic equipment is initiative equipment, the first electronic equipment will initiatively send information to the second electronic equipment, and the second electronic equipment initiatively receives this information.This information comprises picture and file.
Step 206, determines that the second electronic equipment is initiative equipment.
When the second electronic equipment is initiative equipment, the second electronic equipment will initiatively send information to the first electronic equipment, and the first electronic equipment will initiatively receive this information.
Simply introduce the application scenarios of the present embodiment below.First electronic equipment and the second electronic equipment have all been installed and have been thrown screen application, and user X and user Y starts the throwing screen application on the first electronic equipment and the second electronic equipment respectively.Throw screen application to start upon actuation to call sensing unit collection kinematic parameter.Meanwhile, after throwing screen application start, user X can send picture to user Y, or user Y can send picture to user X, but user X and user Y does not know whether oneself is active transmit leg.When the first electronic equipment and the second electronic equipment is close to each other and distance between the two is less than preset distance time, the first electronic equipment and the second electronic equipment obtain the kinematic parameter of opposite end respectively, and compare.The electronic equipment that the speedup that comparison goes out is fast, just think initiatively transmit leg, another electronic equipment is passive recipient.Initiatively transmit leg will send picture to passive recipient, and passive recipient receives this picture and shows on a display screen.In other application scenarioss, initiatively transmit leg can also send file to passive recipient.
The embodiment of the present invention is by the second kinematic parameter of the first kinematic parameter and the second electronic equipment that compare the first electronic equipment, when the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment, as initiative equipment, first electronic equipment, by initiatively carrying out alternately with the second electronic equipment, does not need user to select as initiative equipment, the fairly simple convenience of the method, and add interest, be beneficial to lifting Consumer's Experience.
Embodiment three
Embodiments provide a kind of defining method of initiative equipment, be applied between the first electronic equipment and the second electronic equipment.Wherein the first electronic equipment comprises the first sensing unit, and the second electronic equipment comprises the second sensing unit.The method is performed by the first electronic equipment.
The difference of the present embodiment and embodiment two is, when determining initiative equipment, except the second kinematic parameter of the first kinematic parameter and the second electronic equipment of considering the first electronic equipment, the present speed direction of the first electronic equipment and the second electronic equipment also to be considered.See Fig. 3, the method comprises:
Step 301, obtains the first kinematic parameter and the present speed direction of the first electronic equipment, and centered by position, is that radius broadcasts the first kinematic parameter and present speed direction with preset distance.
Wherein, the acquisition pattern of the first kinematic parameter, see step 201 in embodiment two, does not repeat them here.
Wherein, the present speed direction of the first electronic equipment can be obtained by the first sensing unit.
Step 302, when the distance between the first electronic equipment and the second electronic equipment is less than preset distance, obtains the second kinematic parameter and the present speed direction of the second electronic equipment.
Wherein, the second kinematic parameter and the present speed direction of the second electronic equipment are that the second electronic equipment, centered by the second electronic equipment position, is that radius broadcasts out with preset distance.
Achieved by above-mentioned steps 301-step 302, obtain the first kinematic parameter of the first electronic equipment and present speed direction and obtain the second kinematic parameter and the present speed direction of the second electronic equipment.
Step 303, compares the present speed direction of the first electronic equipment with the present speed direction of the second electronic equipment and compare the first kinematic parameter and the second kinematic parameter.
When the present speed direction of the first electronic equipment is identical with the present speed direction of the second electronic equipment, exit this flow process, perform step 301; When the present speed direction of the first electronic equipment is contrary with the present speed direction of the second electronic equipment and the first kinematic parameter is greater than the second kinematic parameter, perform step 304, when the present speed direction of the first electronic equipment is contrary with the present speed direction of the second electronic equipment and the first kinematic parameter is less than the second kinematic parameter, perform step 305.
Step 304, determines that the first electronic equipment is initiative equipment.
When the first electronic equipment is initiative equipment, the first electronic equipment will initiatively send a message to the second electronic equipment, and the second electronic equipment initiatively receives this message.
Step 305, determines that the second electronic equipment is initiative equipment.
When the second electronic equipment is initiative equipment, the second electronic equipment will initiatively send a message to the first electronic equipment, and the first electronic equipment will initiatively receive this message.
The embodiment of the present invention is by the second kinematic parameter of the first kinematic parameter and the second electronic equipment that compare the first electronic equipment, and compare the present speed direction of the first electronic equipment and the present speed direction of the second electronic equipment, when the present speed direction of the first electronic equipment is contrary with the present speed direction of the second electronic equipment and the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment, as initiative equipment, first electronic equipment will initiatively carry out alternately with the second electronic equipment, user is not needed to select as initiative equipment, the fairly simple convenience of the method, and, initiative equipment is determined when the present speed direction of the first electronic equipment is contrary with the present speed direction of the second electronic equipment, that is, only have when the first electronic equipment and the second electronic equipment have trend close to each other, just determine initiative equipment, which further increases the interest that user uses.
Embodiment four
Embodiments provide a kind of determining device of initiative equipment.This device can be arranged in the first electronic equipment, and wherein the first electronic equipment comprises the first sensing unit.See Fig. 4, this device comprises:
First acquisition module 401, for obtaining the first kinematic parameter of the first electronic equipment, wherein the first kinematic parameter obtains according to the first sensing unit; Obtain the second kinematic parameter of the second electronic equipment, wherein the second kinematic parameter obtains according to the second sensing unit of the second electronic equipment, and be transferred to the first electronic equipment.
Comparison module 402, for comparing the first kinematic parameter and the second kinematic parameter.
Determination module 403, for when the first kinematic parameter is greater than the second kinematic parameter, determines that the first electronic equipment is initiative equipment.
The embodiment of the present invention is by the second kinematic parameter of the first kinematic parameter and the second electronic equipment that compare the first electronic equipment, when the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment, as initiative equipment, first electronic equipment, by initiatively carrying out alternately with the second electronic equipment, does not need user to select as initiative equipment, the fairly simple convenience of the method, and add interest, be beneficial to lifting Consumer's Experience.
Embodiment five
Embodiments provide a kind of determining device of initiative equipment.This device can be arranged in the first electronic equipment, and wherein the first electronic equipment comprises the first sensing unit.See Fig. 5, this device comprises the first acquisition module 501, comparison module 502 and determination module 503.
First acquisition module 501, for obtaining the first kinematic parameter of the first electronic equipment, wherein the first kinematic parameter obtains according to the first sensing unit; Obtain the second kinematic parameter of the second electronic equipment, wherein the second kinematic parameter obtains according to the second sensing unit of the second electronic equipment, and be transferred to the first electronic equipment.
As the first execution mode, the first acquisition module 501 for, detect the distance between the first electronic equipment and the second electronic equipment; When distance between the first electronic equipment and the second electronic equipment is less than preset distance, obtain the first kinematic parameter of the first electronic equipment, wherein the first kinematic parameter obtains according to the first sensing unit; Obtain the second kinematic parameter of the second electronic equipment, wherein the second kinematic parameter obtains according to the second sensing unit of the second electronic equipment, and be transferred to the first electronic equipment.
As the second execution mode, second kinematic parameter of the first kinematic parameter of the first electronic equipment that the first acquisition module 501 obtains and the second electronic equipment of acquisition is respectively, first electronic equipment and the second electronic equipment respectively centered by respective position, and are that radius broadcasts out with preset distance.
As the 3rd execution mode, the first kinematic parameter comprises: the difference of the absolute value of the absolute value of the speed that the first sensing unit detects for the last time and the initial velocity of detection; Second kinematic parameter comprises: the difference of the absolute value of the absolute value of the speed that the second sensing unit detects for the last time and the initial velocity of detection.
Comparison module 502, for comparing the first kinematic parameter and the second kinematic parameter.
Determination module 503, for when the first kinematic parameter is greater than the second kinematic parameter, determines that the first electronic equipment is initiative equipment.
As the 4th execution mode, determination module 503 also for, when the first kinematic parameter is less than the second kinematic parameter, determine that the second electronic equipment is initiative equipment.
The embodiment of the present invention is by the second kinematic parameter of the first kinematic parameter and the second electronic equipment that compare the first electronic equipment, when the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment, as initiative equipment, first electronic equipment, by initiatively carrying out alternately with the second electronic equipment, does not need user to select as initiative equipment, the fairly simple convenience of the method, and add interest, be beneficial to lifting Consumer's Experience.
Embodiment six
Embodiments provide a kind of determining device of initiative equipment.This device can be arranged in the first electronic equipment, and wherein the first electronic equipment comprises the first sensing unit.See Fig. 6, this device comprises the first acquisition module 601, comparison module 602 and determination module 603.
First acquisition module 601, for obtaining the first kinematic parameter of the first electronic equipment, wherein the first kinematic parameter obtains according to the first sensing unit; Obtain the second kinematic parameter of the second electronic equipment, wherein the second kinematic parameter obtains according to the second sensing unit of the second electronic equipment, and be transferred to the first electronic equipment.
Comparison module 602, for comparing the first kinematic parameter and the second kinematic parameter.
Determination module 603, for when the first kinematic parameter is greater than the second kinematic parameter, determines that the first electronic equipment is initiative equipment.
As the first execution mode, this device also comprises the second acquisition module 604.
Second acquisition module 604 for, obtain the present speed direction of the first electronic equipment and the second electronic equipment respectively, the present speed direction of the first electronic equipment obtains according to the first sensing unit, and the present speed direction of the second electronic equipment obtains according to the second sensing unit.
As the second execution mode, determination module 603 for, when the present speed direction of the first electronic equipment is contrary with the present speed direction of the second electronic equipment and the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment.
The embodiment of the present invention is by the second kinematic parameter of the first kinematic parameter and the second electronic equipment that compare the first electronic equipment, and compare the present speed direction of the first electronic equipment and the present speed direction of the second electronic equipment, when the present speed direction of the first electronic equipment is contrary with the present speed direction of the second electronic equipment and the first kinematic parameter is greater than the second kinematic parameter, determine that the first electronic equipment is initiative equipment, as initiative equipment, first electronic equipment will initiatively carry out alternately with the second electronic equipment, user is not needed to select as initiative equipment, the fairly simple convenience of the method, and, initiative equipment is determined when the present speed direction of the first electronic equipment is contrary with the present speed direction of the second electronic equipment, that is, only have when the first electronic equipment and the second electronic equipment have trend close to each other, just determine initiative equipment, which further increases the interest that user uses.
It should be noted that: the determining device of the initiative equipment that above-described embodiment provides is when determining initiative equipment, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the determining device of the initiative equipment that above-described embodiment provides and the determination embodiment of the method for initiative equipment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.