CN104601204B - trigger condition detection method and device - Google Patents

trigger condition detection method and device Download PDF

Info

Publication number
CN104601204B
CN104601204B CN201410826007.9A CN201410826007A CN104601204B CN 104601204 B CN104601204 B CN 104601204B CN 201410826007 A CN201410826007 A CN 201410826007A CN 104601204 B CN104601204 B CN 104601204B
Authority
CN
China
Prior art keywords
wireless signal
terminal
receiving
power
transmission power
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
CN201410826007.9A
Other languages
Chinese (zh)
Other versions
CN104601204A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410826007.9A priority Critical patent/CN104601204B/en
Publication of CN104601204A publication Critical patent/CN104601204A/en
Application granted granted Critical
Publication of CN104601204B publication Critical patent/CN104601204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure discloses a kind of trigger condition detection method and device, belongs to short-distance wireless communication field.Methods described includes:Receive the wireless signal that second terminal is sent;Obtain the transmission power of the wireless signal;Obtain the receiving power of the wireless signal;Detect the transmission power and whether the receiving power meets the trigger condition of assigned operation;If testing result is the trigger condition that the transmission power and the receiving power meet the assigned operation, the assigned operation is performed.The transmission power and receiving power for the wireless signal that the disclosure is sent by obtaining second terminal, and the trigger condition for detecting whether to meet assigned operation according to the transmission power and receiving power of the wireless signal, if, then perform the assigned operation, reach the application scenarios of abundant short-distance wireless communication technology, improve the effect of Consumer's Experience.

Description

Trigger condition detection method and device
Technical field
This disclosure relates to short-distance wireless communication field, more particularly to a kind of trigger condition detection method and device.
Background technology
With the continuous development of the mobile terminals such as smart mobile phone, radio communication plays increasingly heavier in the life of people The role wanted, as an important branch of wireless communication technology, short-distance wireless communication technology is also by more and more extensive Concern.
In the related art, short-distance wireless communication technology is generally used for entering the direct of row information between terminal and terminal Transmit.For example using first terminal as signal receiving end, second terminal is exemplified by signal sending end, second terminal is according to predetermined Modulates information to be sent after wireless signal, the wireless signal, second terminal is broadcasted by transmitting antenna by communication protocol After receiving the wireless signal, the information of carrying can be demodulated from wireless signal according to same agreement.
The content of the invention
Present disclose provides a kind of trigger condition detection method and device.The technical scheme is as follows:
First aspect, there is provided a kind of trigger condition detection method, in first terminal, methods described to include:
Receive the wireless signal that second terminal is sent;
The transmission power of the wireless signal is obtained, the transmission power is that the second terminal sends the wireless signal Power;
The receiving power of the wireless signal is obtained, the receiving power is the work(when wireless signal is received Rate;
Detect the transmission power and whether the receiving power meets the trigger condition of assigned operation;
If testing result is the trigger condition that the transmission power and the receiving power meet the assigned operation, hold The row assigned operation;
Wherein, before the execution assigned operation, methods described also includes:
When receiving the wireless signal, whether the first terminal is collided for detection;
If testing result is when receiving the wireless signal, the first terminal is collided, then performs the finger Fixed operation.
Optionally, whether the detection transmission power and the receiving power meet the trigger condition of assigned operation, Including:
The hair that the wireless signal is sent in the second terminal is calculated according to the transmission power and the receiving power Antenna is penetrated with receiving the distance between reception antenna of the wireless signal in the first terminal;
Detect whether the distance is less than or equal to default distance threshold;
If the distance is less than or equal to the distance threshold, it is determined that the transmission power and receiving power symbol Close the trigger condition.
Optionally, the receiving power for obtaining the wireless signal, including:
Measure the received signal strength indicator RSSI of wireless signal numerical value;
The receiving power of wireless signal described in the RSSI obtained according to measurement numerical computations.
Optionally, the transmission power for obtaining the wireless signal, including:
Obtain the transmission power carried in the wireless signal.
Optionally, when receiving the wireless signal, whether the first terminal is collided for the detection, including:
When acquisition receives the wireless signal, the sensor number of the acceleration transducer included in the first terminal According to;
According to sensing data detection when receiving the wireless signal, whether the first terminal is touched Hit.
Optionally, the wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra wide band UWB signal or low coverage From radio communication NFC signals.
Second aspect, there is provided a kind of trigger condition detection means, in first terminal, described device to include:
Signal receiving module, for receiving the wireless signal of second terminal transmission;
Transmission power acquisition module, for obtaining the transmission power of the wireless signal, the transmission power is described the Two terminals send the power of the wireless signal;
Receiving power acquisition module, for obtaining the receiving power of the wireless signal, the receiving power is the nothing Power when line signal is received;
First detection module, for detecting whether the transmission power and the receiving power meet the triggering of assigned operation Condition;
Execution module, if the testing result for the first detection module is the transmission power and the receiving power Meet the trigger condition of the assigned operation, then perform the assigned operation;
Wherein, described device also includes:
Second detection module, for before the execution module performs the assigned operation, detect receive it is described During wireless signal, whether the first terminal is collided;
The execution module, if the testing result for second detection module is to receive the wireless signal When, the first terminal is collided, then performs the assigned operation.
Optionally, the first detection module, including:
Apart from calculating sub module, sent out for being calculated according to the transmission power and the receiving power in the second terminal The transmitting antenna of the wireless signal is sent with receiving the distance between reception antenna of the wireless signal in the first terminal;
First detection sub-module, for detecting whether the distance is less than or equal to default distance threshold;
Determination sub-module, if being less than or equal to the distance threshold for the distance, it is determined that the transmission power Meet the trigger condition with the receiving power.
Optionally, the receiving power acquisition module, including:
Measure submodule, the numerical value of the received signal strength indicator RSSI for measuring the wireless signal;
Calculating sub module, the reception work(for wireless signal described in the RSSI obtained according to measurement numerical computations Rate.
Optionally, the transmission power acquisition module, for obtaining the transmission power carried in the wireless signal.
Optionally, second detection module, including:
Data acquisition submodule, the acceleration included when receiving the wireless signal for obtaining, in the first terminal Spend the sensing data of sensor;
Second detection sub-module, it is described for being detected according to the sensing data when receiving the wireless signal Whether first terminal is collided.
Optionally, the wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra wide band UWB signal or low coverage From radio communication NFC signals.
The third aspect, there is provided a kind of trigger condition detection means, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Receive the wireless signal that second terminal is sent;
The transmission power of the wireless signal is obtained, the transmission power is that the second terminal sends the wireless signal Power;
The receiving power of the wireless signal is obtained, the receiving power is the work(when wireless signal is received Rate;
Detect the transmission power and whether the receiving power meets the trigger condition of assigned operation;
If testing result is the trigger condition that the transmission power and the receiving power meet the assigned operation, hold The row assigned operation;
Wherein, before the execution assigned operation, methods described also includes:
When receiving the wireless signal, whether the first terminal is collided for detection;
If testing result is when receiving the wireless signal, the first terminal is collided, then performs the finger Fixed operation.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The transmission power and receiving power of the wireless signal sent by obtaining second terminal, and according to the wireless signal Transmission power and receiving power detect whether the trigger condition for meeting assigned operation, if it is, performing the assigned operation, not only The transmission of data, transmission power that can also be by wireless signal and reception can be carried out by means of short-distance wireless communication technology The trigger condition of power detection assigned operation, reach the application scenarios of abundant short-distance wireless communication technology, improve Consumer's Experience Effect.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and in specification together for explaining principle of the invention.
Fig. 1 is a kind of flow chart of trigger condition detection method according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of trigger condition detection method according to another exemplary embodiment;
Fig. 3 is a kind of flow chart of trigger condition detection method according to further example embodiment;
Fig. 4 is a kind of block diagram of trigger condition detection means according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of trigger condition detection means according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of trigger condition detection means according to an exemplary embodiment.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of trigger condition detection method according to an exemplary embodiment.The trigger condition Detection method is used in first terminal, and the first terminal can be the intelligence such as smart mobile phone, tablet personal computer and E-book reader Can terminal.As shown in figure 1, the trigger condition detection method may comprise steps of.
In a step 102, the wireless signal that second terminal is sent is received.
At step 104, the transmission power of the wireless signal is obtained, the transmission power is that second terminal sends the wireless communication Number power.
In step 106, the receiving power of the wireless signal is obtained, when the receiving power is that the wireless signal is received Power.
In step 108, detect the transmission power and whether receiving power meets the trigger condition of assigned operation.
In step 110, if testing result is the triggering bar that the transmission power and the receiving power meet the assigned operation Part, then perform the assigned operation.
Optionally, whether the detection transmission power and the receiving power meet the trigger condition of assigned operation, including:
Calculated according to the transmission power and the receiving power sent in the second terminal transmitting antenna of the wireless signal with The distance between reception antenna of the wireless signal is received in the first terminal;
Detect whether the distance is less than or equal to default distance threshold;
If the distance is less than or equal to the distance threshold, it is determined that the transmission power and the receiving power meet the triggering Condition.
Optionally, the receiving power of the acquisition wireless signal, including:
Measure the received signal strength indicator RSSI of wireless signal numerical value;
According to the receiving power of the numerical computations of the RSSI of the measurement acquisition wireless signal.
Optionally, the transmission power of the acquisition wireless signal, including:
Obtain the transmission power carried in the wireless signal.
Optionally, before the execution assigned operation, this method also includes:
When receiving the wireless signal, whether the first terminal is collided for detection;
If testing result is when receiving the wireless signal, the first terminal is collided, then performs the assigned operation.
Optionally, when receiving the wireless signal, whether the first terminal is collided for the detection, including:
When acquisition receives the wireless signal, the sensing data of the acceleration transducer included in the first terminal;
According to sensing data detection when receiving the wireless signal, whether the first terminal is collided.
Optionally, the wireless signal is the short-distance wireless communication signal that can carry information, such as Bluetooth signal, Wi- Fi (Wireless Fidelity, Wireless Fidelity) signal, UWB (Ultra Wideband, ultra wide band) signals or NFC (Near Field Communication, wireless near field communication) signal etc..
In summary, the trigger condition detection method provided in the embodiment of the present disclosure, by obtaining second terminal transmission The transmission power and receiving power of wireless signal, and detect whether to meet according to the transmission power and receiving power of the wireless signal The trigger condition of assigned operation, if it is, performing the assigned operation, it can not only be entered by means of short-distance wireless communication technology The transmission of row data, the trigger condition of assigned operation can also be detected by the transmission power and receiving power of wireless signal, is reached To the application scenarios of abundant short-distance wireless communication technology, the effect of Consumer's Experience is improved.
Fig. 2 is a kind of flow chart of trigger condition detection method according to another exemplary embodiment.The triggering bar Part detection method is used in first terminal, and the first terminal can be smart mobile phone, tablet personal computer and E-book reader etc. Intelligent terminal.As shown in Fig. 2 the trigger condition detection method may comprise steps of.
In step 202, the wireless signal that second terminal is sent is received.
The wireless signal is the short-distance wireless communication signal that can carry information, such as Bluetooth signal, Wi-Fi (Wireless Fidelity, Wireless Fidelity) signal, UWB (Ultra Wideband, ultra wide band) signals or NFC (Near Field Communication, wireless near field communication) signal etc..
In step 204, the transmission power of the wireless signal is obtained, the transmission power is that second terminal sends the wireless communication Number power.
Wherein, the method that first terminal obtains the transmission power of the wireless signal has a lot, such as, second terminal can incite somebody to action The transmission power of the wireless signal is modulated in the wireless signal, and first terminal is demodulated acquisition to the wireless signal, and this is wireless The transmission power of signal;Or second terminal can beforehand through inform first terminal its launch the wireless signal when transmitting Power;Or can also be pre-set in first terminal and store the transmission power when first terminal launches the wireless signal, When receiving the wireless signal, the transmission power is directly obtained.
In step 206, the received signal strength indicator RSSI of wireless signal numerical value is measured, is obtained according to measurement The receiving power of the numerical computations of the RSSI wireless signal.
Wherein, the receiving power is the power when wireless signal is received.
So that the wireless signal is Bluetooth signal as an example, a characteristic in the application of Bluetooth Low Energy technology is:Receiving terminal When receiving Bluetooth signal, RSSI (the Received Signal Strength of the signal received can be obtained Indication, received signal strength indicator) value, work(when Bluetooth signal is received can be calculated by the RSSI value Rate.
In a step 208, calculated according to the transmission power and the receiving power and the wireless signal is sent in the second terminal Transmitting antenna and the first terminal in receive the distance between reception antenna of the wireless signal.
In communication process, its power can decay wireless signal with the increase of propagation distance, and wireless signal Power attenuation in addition to relevant with propagation distance, also with the factor such as the wavelength, propagation medium and ambient noise of wireless signal It is relevant.In the disclosed embodiments, the wavelength of wireless signal can directly be known according to frequency, and propagation medium and ambient noise A most common scene can be redefined for by developer, i.e. the wavelength of wireless signal, propagation medium and background is made an uproar Sound can be quantified as the constant in special algorithm, and first terminal only needs the value of the transmission power of second terminal and itself obtained To the value of receiving power bring specific algorithm into, you can to calculate the transmitting antenna that the wireless signal is sent in second terminal The distance between reception antenna with receiving the wireless signal in the first terminal.
In step 210, detect whether the distance is less than or equal to default distance threshold, if the distance be less than or Equal to the distance threshold, it is determined that the transmission power and the receiving power meet the trigger condition.
So that the method shown in the embodiment of the present disclosure is used to trigger assigned operation as an example, for a user, the assigned operation can To be triggered by the touching between two terminals, when the user of first terminal and second terminal wants triggering first terminal When performing assigned operation, first terminal and second terminal can be touched, first terminal can be obtained by detecting step 208 Whether the numerical value of the distance obtained is less than or equal to default distance threshold to determine whether user wants to trigger the assigned operation, If the numerical value of the distance is less than or equal to default distance threshold, it is determined that user wants to trigger the assigned operation.
Wherein, the distance threshold can be set in advance in first terminal by developer according to the use demand of reality. For the numerical value of the distance threshold, the embodiment of the present disclosure does not limit.
It should be noted that in the scheme that the embodiment of the present disclosure provides, transmission power that first terminal passes through wireless signal The transmitting antenna that the wireless signal is sent in the second terminal is calculated with receiving power with receiving the wireless communication in the first terminal Number the distance between reception antenna, and detect whether the distance is less than or equal to default distance threshold to determine whether to accord with Close trigger condition.In actual applications, other transmission powers and receiving power according to wireless signal can also detect whether Meet trigger condition method, such as, detect whether to accord with by the difference between the transmission power and receiving power of wireless signal Trigger condition is closed, or, detect whether to meet by the proportional numerical value between the transmission power and receiving power of wireless signal Trigger condition.Detect whether to meet trigger condition method, the disclosure for the transmission power according to wireless signal and receiving power Embodiment does not limit.
In the step 212, detect when receiving the wireless signal, whether the first terminal is collided.
First terminal is sending the transmitting antenna of the wireless signal with being received in the first terminal in detecting second terminal When the distance between reception antenna of the wireless signal is less than or equal to default distance threshold, it can also detect and receive During the wireless signal, whether first terminal receives collision, if so, then illustrating that the user of first terminal and second terminal is whole by first End and second terminal are touched, and so as to further determine that the intention of user, reach the effect for the degree of accuracy for improving detection.
In step 214, if testing result is when receiving the wireless signal, the first terminal is collided, then holds Row assigned operation.
Wherein, the assigned operation can have many kinds, such as, the pairing established between the first terminal and the second terminal Connection, or, data exchange is carried out with the second terminal, or, interaction is carried out with second terminal, or, pass through the 3rd Square server and second terminal such as carry out game interactive, transferred accounts at the various network activitys.The embodiment of the present disclosure is for the assigned operation Do not limit.
In summary, the trigger condition detection method provided in the embodiment of the present disclosure, by obtaining second terminal transmission The transmission power and receiving power of wireless signal, and detect whether to meet according to the transmission power and receiving power of the wireless signal The trigger condition of assigned operation, if it is, performing the assigned operation, it can not only be entered by means of short-distance wireless communication technology The transmission of row data, the trigger condition of assigned operation can also be detected by the transmission power and receiving power of wireless signal, is reached To the application scenarios of abundant short-distance wireless communication technology, the effect of Consumer's Experience is improved.
Fig. 3 is a kind of flow chart of trigger condition detection method according to further example embodiment.The triggering bar Part detection method is used in first terminal, and the first terminal can be smart mobile phone, tablet personal computer and E-book reader etc. Intelligent terminal.As shown in figure 3, the trigger condition detection method may comprise steps of.
In step 302, the wireless signal that second terminal is sent is received.
The wireless signal is the short-distance wireless communication signal that can carry information, such as Bluetooth signal, Wi-Fi (Wireless Fidelity, Wireless Fidelity) signal, UWB (Ultra Wideband, ultra wide band) signals or NFC (Near Field Communication, wireless near field communication) signal etc..
In step 304, the transmission power carried in the wireless signal is obtained, the transmission power is that second terminal transmission should The power of wireless signal.
Wherein, the transmission power of the wireless signal can be modulated in the wireless signal by second terminal, first terminal pair The wireless signal is demodulated the transmission power for obtaining the wireless signal.
It should be noted that the embodiment of the present disclosure is subject to so that second terminal carries transmission power in wireless signal as an example Illustrate, in actual applications, first terminal can also obtain the transmission power of the wireless signal by other methods.Such as the Two terminals can beforehand through inform first terminal its launch the wireless signal when transmission power;Or in first terminal It can pre-set and store the transmission power when first terminal launches the wireless signal, when receiving the wireless signal, Directly obtain the transmission power.
Within step 306, the received signal strength indicator RSSI of wireless signal numerical value is measured, is obtained according to measurement The receiving power of the numerical computations of the RSSI wireless signal.
Wherein, the receiving power is the power when wireless signal is received.
So that the wireless signal is Bluetooth signal as an example, a characteristic in the application of Bluetooth Low Energy technology is:Receiving terminal When receiving Bluetooth signal, RSSI (the Received Signal Strength of the signal received can be obtained Indication, received signal strength indicator) value, work(when Bluetooth signal is received can be calculated by the RSSI value Rate.
In step 308, calculated according to the transmission power and the receiving power and the wireless signal is sent in the second terminal Transmitting antenna and the first terminal in receive the distance between reception antenna of the wireless signal.
In communication process, its power can decay wireless signal with the increase of propagation distance, and wireless signal Power attenuation in addition to relevant with propagation distance, also with the factor such as the wavelength, propagation medium and ambient noise of wireless signal It is relevant.In the disclosed embodiments, the wavelength of wireless signal can directly be known according to frequency, and propagation medium and ambient noise A most common scene can be redefined for by developer, i.e. the wavelength of wireless signal, propagation medium and background is made an uproar Sound can be quantified as the constant in special algorithm, and first terminal only needs the value of the transmission power of second terminal and itself obtained To the value of receiving power bring specific algorithm into, you can to calculate the transmitting antenna that the wireless signal is sent in second terminal The distance between reception antenna with receiving the wireless signal in the first terminal.
In the step 310, detect whether the distance is less than or equal to default distance threshold, if the distance be less than or Equal to the distance threshold, it is determined that the transmission power and the receiving power meet the trigger condition.
So that the method shown in the embodiment of the present disclosure is used to trigger assigned operation as an example, for a user, the assigned operation can To be triggered by the touching between two terminals, when the user of first terminal and second terminal wants triggering first terminal When performing assigned operation, first terminal and second terminal can be touched, first terminal can be obtained by detecting step 308 Whether the numerical value of the distance obtained is less than or equal to default distance threshold to determine whether user wants to trigger the assigned operation, If the numerical value of the distance is less than or equal to default distance threshold, it is determined that user wants to trigger the assigned operation.
Wherein, the distance threshold can be set in advance in first terminal by developer according to the use demand of reality. For the numerical value of the distance threshold, the embodiment of the present disclosure does not limit.
It should be noted that in the scheme that the embodiment of the present disclosure provides, transmission power that first terminal passes through wireless signal The transmitting antenna that the wireless signal is sent in the second terminal is calculated with receiving power with receiving the wireless communication in the first terminal Number the distance between reception antenna, and detect whether the distance is less than or equal to default distance threshold to determine whether to accord with Close trigger condition.In actual applications, other transmission powers and receiving power according to wireless signal can also detect whether Meet trigger condition method, such as, detect whether to accord with by the difference between the transmission power and receiving power of wireless signal Trigger condition is closed, or, detect whether to meet by the proportional numerical value between the transmission power and receiving power of wireless signal Trigger condition.Detect whether to meet trigger condition method, the disclosure for the transmission power according to wireless signal and receiving power Embodiment does not limit.
In step 312, when acquisition receives the wireless signal, the biography of the acceleration transducer included in the first terminal Sensor data, according to sensing data detection when receiving the wireless signal, whether the first terminal is collided.
First terminal is sending the transmitting antenna of the wireless signal with being received in the first terminal in detecting second terminal When the distance between reception antenna of the wireless signal is less than or equal to default distance threshold, it can also detect and receive During the wireless signal, whether first terminal is collided, if so, then illustrating that the user of first terminal and second terminal is whole by first End and second terminal are touched, and so as to further determine that the intention of user, reach the effect for the degree of accuracy for improving detection.
Wherein, when being collided, its acceleration must change first terminal, and the change of the acceleration also accords with Close specific condition.In the disclosed embodiments, first terminal can be obtained when receiving the wireless signal, built-in acceleration The sensing data of sensor is spent, detects whether the sensing data meets the condition being collided, if so, can then determine the One terminal is collided when just receiving the wireless signal.
In a step 314, if testing result is when receiving the wireless signal, the first terminal is collided, then holds Row assigned operation.
Wherein, the assigned operation can have many kinds, such as, the pairing established between the first terminal and the second terminal Connection, or, data exchange is carried out with the second terminal, or, interaction is carried out with second terminal, or, pass through the 3rd Square server and second terminal such as carry out game interactive, transferred accounts at the various network activitys.The embodiment of the present disclosure is for the assigned operation Do not limit.
In summary, the trigger condition detection method provided in the embodiment of the present disclosure, by obtaining second terminal transmission The transmission power and receiving power of wireless signal, and detect whether to meet according to the transmission power and receiving power of the wireless signal The trigger condition of assigned operation, if it is, performing the assigned operation, it can not only be entered by means of short-distance wireless communication technology The transmission of row data, the trigger condition of assigned operation can also be detected by the transmission power and receiving power of wireless signal, is reached To the application scenarios of abundant short-distance wireless communication technology, the effect of Consumer's Experience is improved.
Fig. 4 is a kind of block diagram of trigger condition detection means according to an exemplary embodiment.The trigger condition is examined Survey device to can be used in first terminal, perform the method as shown in Fig. 1 to Fig. 3 is any.The first terminal can be intelligence The intelligent terminals such as mobile phone, tablet personal computer and E-book reader.As shown in figure 4, the trigger condition detection means can include: Signal receiving module 401, transmission power acquisition module 402, receiving power acquisition module 403, first detection module 404 and hold Row module 405;
Signal receiving module 401 is arranged to be used for receiving the wireless signal that second terminal is sent;
Transmission power acquisition module 402 is arranged to be used for obtaining the transmission power of the wireless signal, the transmitting work( Rate is the power that the second terminal sends the wireless signal;
Receiving power acquisition module 403 is arranged to be used for obtaining the receiving power of the wireless signal, the reception work( Rate is the power when wireless signal is received;
First detection module 404 is arranged to be used for detecting the transmission power and the receiving power whether meet it is specified The trigger condition of operation;
If the testing result that execution module 405 is arranged to be used for the first detection module 404 is the transmission power Meet the trigger condition of the assigned operation with the receiving power, then perform the assigned operation.
In summary, the trigger condition detection means provided in the embodiment of the present disclosure, by obtaining second terminal transmission The transmission power and receiving power of wireless signal, and detect whether to meet according to the transmission power and receiving power of the wireless signal The trigger condition of assigned operation, if it is, performing the assigned operation, it can not only be entered by means of short-distance wireless communication technology The transmission of row data, the trigger condition of assigned operation can also be detected by the transmission power and receiving power of wireless signal, is reached To the application scenarios of abundant short-distance wireless communication technology, the effect of Consumer's Experience is improved.
Fig. 5 is a kind of block diagram of trigger condition detection means according to another exemplary embodiment.The trigger condition Detection means can be used in first terminal, perform the method as shown in Fig. 1 to Fig. 3 is any.The first terminal can be intelligence The intelligent terminals such as energy mobile phone, tablet personal computer and E-book reader.As shown in figure 5, the trigger condition detection means can wrap Include:Signal receiving module 401, transmission power acquisition module 402, receiving power acquisition module 403, first detection module 404 with And execution module 405;
The signal receiving module 401 is arranged to be used for receiving the wireless signal that second terminal is sent;
The transmission power acquisition module 402 is arranged to be used for obtaining the transmission power of the wireless signal, the hair Penetrate the power that power sends the wireless signal for the second terminal;
The receiving power acquisition module 403 is arranged to be used for obtaining the receiving power of the wireless signal, described to connect It is the power when wireless signal is received to receive power;
The first detection module 404 is arranged to be used for detecting the transmission power and whether the receiving power meets The trigger condition of assigned operation;
If the testing result that the execution module 405 is arranged to be used for the first detection module 404 is the transmitting Power and the receiving power meet the trigger condition of the assigned operation, then perform the assigned operation.
Optionally, the first detection module 404, including:Apart from calculating sub module 404a, the first detection sub-module 404b And determination sub-module 404c;
It is described to be arranged to be used for apart from calculating sub module 404a according to the transmission power and receiving power calculating The transmitting antenna of the wireless signal is sent in the second terminal with receiving connecing for the wireless signal in the first terminal Receive the distance between antenna;
Whether the first detection sub-module 404b is arranged to be used for detecting the distance less than or equal to default Distance threshold;
If the determination sub-module 404c, which is arranged to be used for the distance, is less than or equal to the distance threshold, really The fixed transmission power and the receiving power meet the trigger condition.
Optionally, the receiving power acquisition module 403, including:Measure submodule 403a and calculating sub module 403b;
The measurement submodule 403a is arranged to be used for measuring the received signal strength indicator RSSI of the wireless signal Numerical value;
The calculating sub module 403b is arranged to be used for nothing described in the RSSI obtained according to measurement numerical computations The receiving power of line signal.
Optionally, the transmission power acquisition module 402 is arranged to be used for obtaining the institute carried in the wireless signal State transmission power.
Optionally, described device also includes:Second detection module 406;
Second detection module 406 is arranged in use in before the execution module 405 performs the assigned operation, When receiving the wireless signal, whether the first terminal is collided for detection;
If the testing result that the execution module 405 is arranged to be used for second detection module 406 is to receive During the wireless signal, the first terminal is collided, then performs the assigned operation.
Optionally, second detection module 406, including:Data acquisition submodule 406a and the second detection sub-module 406b;
When the data acquisition submodule 406a is arranged to be used for acquisition and receives the wireless signal, described first eventually The sensing data of the acceleration transducer included in end;
The second detection sub-module 406b is arranged to be used for according to receiving sensing data detection During wireless signal, whether the first terminal is collided.
Optionally, the wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra wide band UWB signal or low coverage From radio communication NFC signals.
In summary, the trigger condition detection means provided in the embodiment of the present disclosure, by obtaining second terminal transmission The transmission power and receiving power of wireless signal, and detect whether to meet according to the transmission power and receiving power of the wireless signal The trigger condition of assigned operation, if it is, performing the assigned operation, it can not only be entered by means of short-distance wireless communication technology The transmission of row data, the trigger condition of assigned operation can also be detected by the transmission power and receiving power of wireless signal, is reached To the application scenarios of abundant short-distance wireless communication technology, the effect of Consumer's Experience is improved.
Fig. 6 is a kind of block diagram of trigger condition detection means 600 according to an exemplary embodiment.For example, device 600 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, and medical treatment is set It is standby, body-building equipment, personal digital assistant etc..
Reference picture 6, device 600 can include following one or more assemblies:Processing component 602, memory 604, power supply Component 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of input/output (I/O), sensor cluster 614, and Communication component 616.
The integrated operation of the usual control device 600 of processing component 602, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 602 can refer to including one or more processors 618 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 602 can include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 can include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown Example includes the instruction of any application program or method for being operated on device 600, contact data, telephone book data, disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.One or more modules are also stored with memory 604, one or more modules are configured to by this One or more processors 620 perform, to complete all or part of step of any shown methods of above-mentioned Fig. 1 to 3.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 600.
Multimedia groupware 608 is included in the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When device 600 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 610 is configured as output and/or input audio signal.For example, audio-frequency assembly 610 includes a Mike Wind (MIC), when device 600 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 604 or via communication set Part 616 is sent.In certain embodiments, audio-frequency assembly 610 also includes a loudspeaker, for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor cluster 614 can detect opening/closed mode of device 600, and the relative positioning of component, for example, it is described Component is the display and keypad of device 600, and sensor cluster 614 can be with 600 1 components of detection means 600 or device Position change, the existence or non-existence that user contacts with device 600, the orientation of device 600 or acceleration/deceleration and device 600 Temperature change.Sensor cluster 614 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 614 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 614 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other-end element are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 604 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 618 of device 600.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in perform detailed description, explanation will be not set forth in detail herein.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (11)

1. a kind of trigger condition detection method, it is characterised in that in first terminal, methods described to include:
Receive the wireless signal that second terminal is sent;
The transmission power of the wireless signal is obtained, the transmission power is the work(that the second terminal sends the wireless signal Rate;
The receiving power of the wireless signal is obtained, the receiving power is the power when wireless signal is received;
Detect the transmission power and whether the receiving power meets the trigger condition of assigned operation;
If testing result is the trigger condition that the transmission power and the receiving power meet the assigned operation, detection exists When receiving the wireless signal, whether the first terminal is collided;
If testing result is when receiving the wireless signal, the first terminal is collided, then performs the specified behaviour Make;
Wherein, whether the detection transmission power and the receiving power meet the trigger condition of assigned operation, including:
The transmitting day that the wireless signal is sent in the second terminal is calculated according to the transmission power and the receiving power Line in the first terminal with receiving the distance between reception antenna of the wireless signal;
Detect whether the distance is less than or equal to default distance threshold;
If the distance is less than or equal to the distance threshold, it is determined that the transmission power and the receiving power meet institute State trigger condition.
2. according to the method for claim 1, it is characterised in that the receiving power for obtaining the wireless signal, including:
Measure the received signal strength indicator RSSI of wireless signal numerical value;
The receiving power of wireless signal described in the RSSI obtained according to measurement numerical computations.
3. according to the method for claim 1, it is characterised in that the transmission power for obtaining the wireless signal, including:
Obtain the transmission power carried in the wireless signal.
4. according to the method for claim 1, it is characterised in that the detection is described when receiving the wireless signal Whether first terminal is collided, including:
When acquisition receives the wireless signal, the sensing data of the acceleration transducer included in the first terminal;
According to sensing data detection when receiving the wireless signal, whether the first terminal is collided.
5. method according to any one of claims 1 to 4, it is characterised in that the wireless signal is Bluetooth signal, wireless guarantor True Wi-Fi signal, ultra wide band UWB signal or wireless near field communication NFC signals.
6. a kind of trigger condition detection means, it is characterised in that in first terminal, described device to include:
Signal receiving module, for receiving the wireless signal of second terminal transmission;
Transmission power acquisition module, for obtaining the transmission power of the wireless signal, the transmission power is described second whole End sends the power of the wireless signal;
Receiving power acquisition module, for obtaining the receiving power of the wireless signal, the receiving power is the wireless communication Power when number being received;
First detection module, for detecting whether the transmission power and the receiving power meet the triggering bar of assigned operation Part;
Execution module, if the testing result for the first detection module meets for the transmission power and the receiving power The trigger condition of the assigned operation, then perform the assigned operation;
Wherein, the first detection module, including:
Apart from calculating sub module, institute is sent for being calculated according to the transmission power and the receiving power in the second terminal The transmitting antenna of wireless signal is stated with receiving the distance between reception antenna of the wireless signal in the first terminal;
First detection sub-module, for detecting whether the distance is less than or equal to default distance threshold;
Determination sub-module, if being less than or equal to the distance threshold for the distance, it is determined that the transmission power and institute State receiving power and meet the trigger condition;
Second detection module, including:
Data acquisition submodule, when receiving the wireless signal for obtaining, the acceleration included in the first terminal passes The sensing data of sensor;
Second detection sub-module, for being detected according to the sensing data when receiving the wireless signal, described first Whether terminal is collided.
7. device according to claim 6, it is characterised in that the receiving power acquisition module, including:
Measure submodule, the numerical value of the received signal strength indicator RSSI for measuring the wireless signal;
Calculating sub module, the receiving power for wireless signal described in the RSSI obtained according to measurement numerical computations.
8. device according to claim 6, it is characterised in that the transmission power acquisition module, for obtaining the nothing The transmission power carried in line signal.
9. device according to claim 6, it is characterised in that
Second detection module, for before the execution module performs the assigned operation, detect receive it is described During wireless signal, whether the first terminal is collided;
The execution module, if the testing result for second detection module is the institute when receiving the wireless signal State first terminal to be collided, then perform the assigned operation.
10. according to any described device of claim 6 to 9, it is characterised in that the wireless signal is Bluetooth signal, wirelessly Fidelity Wi-Fi signal, ultra wide band UWB signal or wireless near field communication NFC signals.
11. a kind of trigger condition detection means, it is characterised in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Receive the wireless signal that second terminal is sent;
The transmission power of the wireless signal is obtained, the transmission power is the work(that the second terminal sends the wireless signal Rate;
The receiving power of the wireless signal is obtained, the receiving power is the power when wireless signal is received;
Detect the transmission power and whether the receiving power meets the trigger condition of assigned operation;
If testing result is the trigger condition that the transmission power and the receiving power meet the assigned operation, detection exists When receiving the wireless signal, whether first terminal is collided;
If testing result is when receiving the wireless signal, the first terminal is collided, then performs the specified behaviour Make;
Wherein, whether the detection transmission power and the receiving power meet the trigger condition of assigned operation, including:
The transmitting day that the wireless signal is sent in the second terminal is calculated according to the transmission power and the receiving power Line in the first terminal with receiving the distance between reception antenna of the wireless signal;
Detect whether the distance is less than or equal to default distance threshold;
If the distance is less than or equal to the distance threshold, it is determined that the transmission power and the receiving power meet institute State trigger condition.
CN201410826007.9A 2014-12-25 2014-12-25 trigger condition detection method and device Active CN104601204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410826007.9A CN104601204B (en) 2014-12-25 2014-12-25 trigger condition detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410826007.9A CN104601204B (en) 2014-12-25 2014-12-25 trigger condition detection method and device

Publications (2)

Publication Number Publication Date
CN104601204A CN104601204A (en) 2015-05-06
CN104601204B true CN104601204B (en) 2017-12-12

Family

ID=53126757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410826007.9A Active CN104601204B (en) 2014-12-25 2014-12-25 trigger condition detection method and device

Country Status (1)

Country Link
CN (1) CN104601204B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105182761B (en) 2015-07-31 2018-10-12 小米科技有限责任公司 specified operation triggering method and device
CN105246024B (en) * 2015-09-02 2019-05-24 深圳市文鼎创数据科技有限公司 The method and system of terminal device pairing connection
CN105306818B (en) * 2015-10-12 2019-03-19 北京奇虎科技有限公司 The state activation system and method for terminal
CN106028262B (en) * 2016-05-12 2020-04-07 腾讯科技(深圳)有限公司 Near field service acquisition method and device for application
CN107450067B (en) * 2017-07-28 2019-10-18 维沃移动通信有限公司 A kind of distance detection device, method and mobile terminal
CN107911870A (en) * 2017-10-27 2018-04-13 上海京颐科技股份有限公司 Mobile terminal connection method and device, storage medium, mobile terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388348A (en) * 2008-12-01 2012-03-21 埃利亚胡·拉德 Method and system for monitoring and locating items

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080056227A1 (en) * 2006-08-31 2008-03-06 Motorola, Inc. Adaptive broadcast multicast systems in wireless communication networks
CN103037493B (en) * 2012-12-14 2016-08-03 中兴通讯股份有限公司 Dynamically adjust and launch the method and device of power, intelligent terminal
CN104244239A (en) * 2013-06-06 2014-12-24 中兴通讯股份有限公司 Mobile hotspot starting device, method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388348A (en) * 2008-12-01 2012-03-21 埃利亚胡·拉德 Method and system for monitoring and locating items

Also Published As

Publication number Publication date
CN104601204A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN104601204B (en) trigger condition detection method and device
CN104158946B (en) A kind of method and device controlling terminal
CN104318741B (en) Bluetooth equipment control method and device
CN104105064B (en) The method and device of location equipment
CN104615920A (en) Notification message display method and device
CN104639745B (en) Phonetic prompt method and device
CN104298547A (en) Terminal setting method and device
CN106028276A (en) Information recommendation method and system
CN104918325A (en) Positioning guide and parking guide methods and device
CN105488348A (en) Method, device and system for providing health data
CN105100197B (en) The method and device of application is installed
CN107948926A (en) The method and apparatus that smart machine is shared
CN106790043A (en) The method and device of message is sent in live application
CN105049219B (en) Flow booking method and system, mobile terminal and server
CN106792448A (en) Bluetooth connecting method and device, system
CN107820684A (en) Channel Detection, method for sending information, device and communication equipment
CN104581615B (en) service providing method and device
CN107343087A (en) Smart machine control method and device
CN104159283B (en) The control method and device that information is sent
CN107071862A (en) Account binding method and device and smart machine
CN104936039A (en) Image processing method and device
CN104881342B (en) terminal test method and device
CN106532367A (en) Power consumption warning method and device of smart socket
CN106572268A (en) Information display method and device
CN104166814A (en) Method and device for prompting WIFI network password and equipment

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