CN104601204A - Method and device for detecting triggering condition - Google Patents
Method and device for detecting triggering condition Download PDFInfo
- Publication number
- CN104601204A CN104601204A CN201410826007.9A CN201410826007A CN104601204A CN 104601204 A CN104601204 A CN 104601204A CN 201410826007 A CN201410826007 A CN 201410826007A CN 104601204 A CN104601204 A CN 104601204A
- Authority
- CN
- China
- Prior art keywords
- wireless signal
- terminal
- power
- transmitting power
- signal
- 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.)
- Granted
Links
Landscapes
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and a device for detecting a triggering condition and belongs to the field of short-distance wireless communication. The method comprises the steps of receiving a wireless signal sent by a second terminal, obtaining the transmitting power of the wireless signal, obtaining the receiving power of the wireless signal, detecting whether the transmitting power and the receiving power conform to the trigger condition of a specified operation, and if the detection indicate that the transmitting power and the receiving power conform to the trigger condition of the specified operation, performing the specified operation. According to the method, namely obtaining the transmitting power and the receiving power of the wireless signal sent by the second terminal, detecting whether the transmitting power and the receiving power conform to the trigger condition of the specified operation, and if so, performing the specified operation, the effects of enriching the application scenes of the short-distance wireless communication technology and enhancing the experience of the user are achieved.
Description
Technical field
The disclosure relates to short-distance wireless communication field, particularly a kind of trigger condition detection method and device.
Background technology
Along with the development of the mobile terminals such as smart mobile phone, radio communication plays more and more important role in the life of people, and as an important branch of wireless communication technology, short-distance wireless communication technology is also subject to paying close attention to more and more widely.
In the related, short-distance wireless communication technology is often used in the direct transmission of information of carrying out between terminal and terminal.Such as, take first terminal as signal receiving end, second terminal is signal sending end is example, second terminal according to predetermined communication protocol by modulates information to be sent after wireless signal, this wireless signal is broadcasted by transmitting antenna, after second terminal receives this wireless signal, the information of carrying can be demodulated according to same agreement from wireless signal.
Summary of the invention
Present disclose provides a kind of trigger condition detection method and device.Described technical scheme is as follows:
First aspect, provides a kind of trigger condition detection method, and in first terminal, described method comprises:
Receive the wireless signal that the second terminal sends;
Obtain the transmitting power of described wireless signal, described transmitting power is the power that described second terminal sends described wireless signal;
Obtain the received power of described wireless signal, described received power is the power of described wireless signal when being received;
Detect the trigger condition whether described transmitting power and described received power meet assigned operation;
If testing result is the trigger condition that described transmitting power and described received power meet described assigned operation, then perform described assigned operation.
Optionally, whether the described transmitting power of described detection and described received power meet the trigger condition of assigned operation, comprising:
The distance between the reception antenna receiving described wireless signal in the transmitting antenna and described first terminal sending described wireless signal in described second terminal is calculated according to described transmitting power and described received power;
Detect described distance and whether be less than or equal to default distance threshold;
If described distance is less than or equal to described distance threshold, then determine that described transmitting power and described received power meet described trigger condition.
Optionally, the received power of the described wireless signal of described acquisition, comprising:
Measure the numerical value of the received signal strength indicator RSSI of described wireless signal;
The received power of wireless signal according to the numerical computations of the described RSSI of measurement acquisition.
Optionally, the transmitting power of the described wireless signal of described acquisition, comprising:
Obtain in described wireless signal the described transmitting power of carrying.
Optionally, before the described assigned operation of described execution, described method also comprises:
Detect when receiving described wireless signal, whether described first terminal is collided;
If testing result is for when receiving described wireless signal, described first terminal is collided, then perform described assigned operation.
Optionally, described detection is when receiving described wireless signal, and whether described first terminal is collided, and comprising:
When acquisition receives described wireless signal, the sensing data of the acceleration transducer comprised in described first terminal;
Detect when receiving described wireless signal according to described sensing data, whether described first terminal is collided.
Optionally, described wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra broadband UWB signal or wireless near field communication NFC signal.
Second aspect, provides a kind of trigger condition checkout gear, and in first terminal, described device comprises:
Signal receiving module, for receiving the wireless signal that the second terminal sends;
Transmitting power acquisition module, for obtaining the transmitting power of described wireless signal, described transmitting power is the power that described second terminal sends described wireless signal;
Received power acquisition module, for obtaining the received power of described wireless signal, described received power is the power of described wireless signal when being received;
Whether first detection module, meet the trigger condition of assigned operation for detecting described transmitting power and described received power;
Executive Module, if be the trigger condition that described transmitting power and described received power meet described assigned operation for the testing result of described first detection module, then performs described assigned operation.
Optionally, described first detection module, comprising:
Distance calculating sub module, for calculate according to described transmitting power and described received power send described wireless signal in described second terminal transmitting antenna and described first terminal in receive described wireless signal reception antenna between distance;
Whether the first detection sub-module, be less than or equal to default distance threshold for detecting described distance;
Determine submodule, if be less than or equal to described distance threshold for described distance, then determine that described transmitting power and described received power meet described trigger condition.
Optionally, described received power acquisition module, comprising:
Measure submodule, for measuring the numerical value of the received signal strength indicator RSSI of described wireless signal;
Calculating sub module, for the received power of wireless signal according to the numerical computations measuring the described RSSI obtained.
Optionally, described transmitting power acquisition module, for obtaining in described wireless signal the described transmitting power of carrying.
Optionally, described device also comprises:
Second detection module, before performing described assigned operation at described Executive Module, detect when receiving described wireless signal, whether described first terminal is collided;
Described Executive Module, if be that described first terminal is collided, then perform described assigned operation when receiving described wireless signal for the testing result of described second detection module.
Optionally, described second detection module, comprising:
Data acquisition submodule, when receiving described wireless signal for obtaining, the sensing data of the acceleration transducer comprised in described first terminal;
Second detection sub-module, for detecting when receiving described wireless signal according to described sensing data, whether described first terminal is collided.
Optionally, described wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra broadband UWB signal or wireless near field communication NFC signal.
The third aspect, provide a kind of trigger condition checkout gear, described device comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the wireless signal that the second terminal sends;
Obtain the transmitting power of described wireless signal, described transmitting power is the power that described second terminal sends described wireless signal;
Obtain the received power of described wireless signal, described received power is the power of described wireless signal when being received;
Detect the trigger condition whether described transmitting power and described received power meet assigned operation;
If testing result is the trigger condition that described transmitting power and described received power meet described assigned operation, then perform described assigned operation.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By obtaining transmitting power and the received power of the wireless signal that the second terminal sends, and detect according to the transmitting power of this wireless signal and received power the trigger condition whether meeting assigned operation, if, then perform this assigned operation, the transmission of data not only can be carried out by means of short-distance wireless communication technology, the trigger condition of assigned operation can also be detected by the transmitting power of wireless signal and received power, reach the application scenarios enriching short-distance wireless communication technology, improve the effect of Consumer's Experience.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of a kind of trigger condition detection method according to an exemplary embodiment;
Fig. 2 is the flow chart of a kind of trigger condition detection method according to another exemplary embodiment;
Fig. 3 is the flow chart of a kind of trigger condition detection method according to another exemplary embodiment;
Fig. 4 is the block diagram of a kind of trigger condition checkout gear according to an exemplary embodiment;
Fig. 5 is the block diagram of a kind of trigger condition checkout gear according to another exemplary embodiment;
Fig. 6 is the block diagram of a kind of trigger condition checkout gear according to an exemplary embodiment.
Embodiment
Here will perform explanation to exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the flow chart of a kind of trigger condition detection method according to an exemplary embodiment.This trigger condition detection method is used in first terminal, and this first terminal can be the intelligent terminals such as smart mobile phone, panel computer and E-book reader.As shown in Figure 1, this trigger condition detection method can comprise the following steps.
In a step 102, the wireless signal that the second terminal sends is received.
At step 104, obtain the transmitting power of this wireless signal, this transmitting power is the power that the second terminal sends this wireless signal.
In step 106, obtain the received power of this wireless signal, this received power is the power of this wireless signal when being received.
In step 108, the trigger condition whether this transmitting power and received power meet assigned operation is detected.
In step 110, if testing result is the trigger condition that this transmitting power and this received power meet this assigned operation, then this assigned operation is performed.
Optionally, whether this transmitting power of this detection and this received power meet the trigger condition of assigned operation, comprising:
The distance between the reception antenna receiving this wireless signal in the transmitting antenna and this first terminal sending this wireless signal in this second terminal is calculated according to this transmitting power and this received power;
Detect this distance and whether be less than or equal to default distance threshold;
If this distance is less than or equal to this distance threshold, then determine that this transmitting power and this received power meet this trigger condition.
Optionally, the received power of this this wireless signal of acquisition, comprising:
Measure the numerical value of the received signal strength indicator RSSI of this wireless signal;
According to the received power of this wireless signal of numerical computations of this RSSI of measurement acquisition.
Optionally, the transmitting power of this this wireless signal of acquisition, comprising:
Obtain this transmitting power of carrying in this wireless signal.
Optionally, before this assigned operation of this execution, the method also comprises:
Detect when receiving this wireless signal, whether this first terminal is collided;
If testing result is for when receiving this wireless signal, this first terminal is collided, then perform this assigned operation.
Optionally, this detection is when receiving this wireless signal, and whether this first terminal is collided, and comprising:
When acquisition receives this wireless signal, the sensing data of the acceleration transducer comprised in this first terminal;
Detect when receiving this wireless signal according to this sensing data, whether this first terminal is collided.
Optionally, this wireless signal is can the short-distance wireless communication signal of carry information, such as Bluetooth signal, Wi-Fi (Wireless Fidelity, Wireless Fidelity) signal, UWB (Ultra Wideband, ultra broadband) signal or NFC (Near Field Communication, wireless near field communication) signal etc.
In sum, in the trigger condition detection method that disclosure embodiment provides, by obtaining transmitting power and the received power of the wireless signal that the second terminal sends, and detect according to the transmitting power of this wireless signal and received power the trigger condition whether meeting assigned operation, if, then perform this assigned operation, the transmission of data not only can be carried out by means of short-distance wireless communication technology, the trigger condition of assigned operation can also be detected by the transmitting power of wireless signal and received power, reach the application scenarios enriching short-distance wireless communication technology, improve the effect of Consumer's Experience.
Fig. 2 is the flow chart of a kind of trigger condition detection method according to another exemplary embodiment.This trigger condition detection method is used in first terminal, and this first terminal can be the intelligent terminals such as smart mobile phone, panel computer and E-book reader.As shown in Figure 2, this trigger condition detection method can comprise the following steps.
In step 202., the wireless signal that the second terminal sends is received.
This wireless signal is can the short-distance wireless communication signal of carry information, such as Bluetooth signal, Wi-Fi (Wireless Fidelity, Wireless Fidelity) signal, UWB (Ultra Wideband, ultra broadband) signal or NFC (Near Field Communication, wireless near field communication) signal etc.
In step 204, obtain the transmitting power of this wireless signal, this transmitting power is the power that the second terminal sends this wireless signal.
Wherein, the method that first terminal obtains the transmitting power of this wireless signal has a lot, such as, the transmitting power of this wireless signal can be modulated in this wireless signal by the second terminal, and first terminal carries out to this wireless signal the transmitting power that demodulation obtains this wireless signal; Or, the second terminal can in advance by inform first terminal its launch this wireless signal time transmitting power; Or, also can pre-setting in first terminal and store transmitting power when this first terminal launches this wireless signal, when receiving this wireless signal, directly obtaining this transmitting power.
In step 206, measure the numerical value of the received signal strength indicator RSSI of this wireless signal, according to the received power of this wireless signal of numerical computations of this RSSI of measurement acquisition.
Wherein, this received power is the power of this wireless signal when being received.
For this wireless signal for Bluetooth signal, a characteristic in the application of Bluetooth Low Energy technology is: when receiving terminal receives Bluetooth signal, RSSI (the Received Signal StrengthIndication of the signal received can be obtained, received signal strength indicator) value, namely can calculate power when Bluetooth signal is received by this RSSI value.
In a step 208, the distance between the reception antenna receiving this wireless signal in the transmitting antenna and this first terminal sending this wireless signal in this second terminal is calculated according to this transmitting power and this received power.
Wireless signal is in communication process, and its power can be decayed along with the increase of propagation distance, and the power attenuation of wireless signal is except relevant with propagation distance, also relevant with the wavelength of wireless signal, the factor such as propagation medium and background noise.In the disclosed embodiments, the wavelength of wireless signal directly can be known according to frequency, and propagation medium and background noise can be redefined for a modal scene by developer, the i.e. wavelength of wireless signal, propagation medium and background noise all can be quantified as the constant in special algorithm, first terminal only needs to bring the value of the transmitting power of the second terminal and the value of the received power self obtained into specific algorithm, namely the distance between the reception antenna receiving this wireless signal in the transmitting antenna sending this wireless signal in the second terminal and this first terminal can be calculated.
In step 210, detect this distance and whether be less than or equal to default distance threshold, if this distance is less than or equal to this distance threshold, then determine that this transmitting power and this received power meet this trigger condition.
For the method shown in disclosure embodiment for triggering assigned operation, for user, this assigned operation can be triggered by the touching between two terminals, when the user of first terminal and the second terminal want to trigger first terminal perform assigned operation time, first terminal and the second terminal can be touched, whether the numerical value of the distance that first terminal can be obtained by detecting step 208 is less than or equal to default distance threshold is determined whether user wants to trigger this assigned operation, if the numerical value of this distance is less than or equal to default distance threshold, then determine that user wants to trigger this assigned operation.
Wherein, this distance threshold can be set in advance in first terminal according to the user demand of reality by developer.For the numerical value of this distance threshold, disclosure embodiment does not limit.
It should be noted that, in the scheme that disclosure embodiment provides, first terminal calculates the distance between the reception antenna receiving this wireless signal in the transmitting antenna and this first terminal sending this wireless signal in this second terminal by the transmitting power of wireless signal and received power, and detects this distance and whether be less than or equal to default distance threshold to determine whether and meet trigger condition.In actual applications, other can also be had to detect whether meet trigger condition method according to the transmitting power of wireless signal and received power, such as, detect whether meet trigger condition by the difference between the transmitting power of wireless signal and received power, or, detect whether meet trigger condition by the proportional numerical value between the transmitting power of wireless signal and received power.Detect whether meet trigger condition method for according to the transmitting power of wireless signal and received power, disclosure embodiment does not limit.
In the step 212, detect when receiving this wireless signal, whether this first terminal is collided.
First terminal is when detecting that the distance between the reception antenna receiving this wireless signal in the transmitting antenna and this first terminal sending this wireless signal in the second terminal is less than or equal to default distance threshold, can also detect when receiving this wireless signal, whether first terminal receives collision, if, then illustrate that first terminal and the second terminal are touched by the user of first terminal and the second terminal, thus determine the intention of user further, reach the effect improving the accuracy detected.
In step 214, if testing result is for when receiving this wireless signal, this first terminal is collided, then perform assigned operation.
Wherein, this assigned operation can have a variety of, such as, the pairing of setting up between this first terminal with this second terminal is connected, or, exchanges data is carried out with this second terminal, or, or, carry out interaction with the second terminal, or, the various network activity such as carry out game interactive by third-party server and the second terminal, transfer accounts.Disclosure embodiment does not limit for this assigned operation.
In sum, in the trigger condition detection method that disclosure embodiment provides, by obtaining transmitting power and the received power of the wireless signal that the second terminal sends, and detect according to the transmitting power of this wireless signal and received power the trigger condition whether meeting assigned operation, if, then perform this assigned operation, the transmission of data not only can be carried out by means of short-distance wireless communication technology, the trigger condition of assigned operation can also be detected by the transmitting power of wireless signal and received power, reach the application scenarios enriching short-distance wireless communication technology, improve the effect of Consumer's Experience.
Fig. 3 is the flow chart of a kind of trigger condition detection method according to another exemplary embodiment.This trigger condition detection method is used in first terminal, and this first terminal can be the intelligent terminals such as smart mobile phone, panel computer and E-book reader.As shown in Figure 3, this trigger condition detection method can comprise the following steps.
In step 302, the wireless signal that the second terminal sends is received.
This wireless signal is can the short-distance wireless communication signal of carry information, such as Bluetooth signal, Wi-Fi (Wireless Fidelity, Wireless Fidelity) signal, UWB (Ultra Wideband, ultra broadband) signal or NFC (Near Field Communication, wireless near field communication) signal etc.
In step 304, obtain the transmitting power of carrying in this wireless signal, this transmitting power is the power that the second terminal sends this wireless signal.
Wherein, the transmitting power of this wireless signal can be modulated in this wireless signal by the second terminal, and first terminal carries out to this wireless signal the transmitting power that demodulation obtains this wireless signal.
It should be noted that, transmitting power to be carried in wireless signal for the second terminal and to be illustrated by disclosure embodiment, and in actual applications, first terminal can also obtain the transmitting power of this wireless signal by other method.Such as, the second terminal can in advance by inform first terminal its launch this wireless signal time transmitting power; Or, also can pre-setting in first terminal and store transmitting power when this first terminal launches this wireless signal, when receiving this wireless signal, directly obtaining this transmitting power.
Within step 306, measure the numerical value of the received signal strength indicator RSSI of this wireless signal, according to the received power of this wireless signal of numerical computations of this RSSI of measurement acquisition.
Wherein, this received power is the power of this wireless signal when being received.
For this wireless signal for Bluetooth signal, a characteristic in the application of Bluetooth Low Energy technology is: when receiving terminal receives Bluetooth signal, RSSI (the Received Signal StrengthIndication of the signal received can be obtained, received signal strength indicator) value, namely can calculate power when Bluetooth signal is received by this RSSI value.
In step 308, the distance between the reception antenna receiving this wireless signal in the transmitting antenna and this first terminal sending this wireless signal in this second terminal is calculated according to this transmitting power and this received power.
Wireless signal is in communication process, and its power can be decayed along with the increase of propagation distance, and the power attenuation of wireless signal is except relevant with propagation distance, also relevant with the wavelength of wireless signal, the factor such as propagation medium and background noise.In the disclosed embodiments, the wavelength of wireless signal directly can be known according to frequency, and propagation medium and background noise can be redefined for a modal scene by developer, the i.e. wavelength of wireless signal, propagation medium and background noise all can be quantified as the constant in special algorithm, first terminal only needs to bring the value of the transmitting power of the second terminal and the value of the received power self obtained into specific algorithm, namely the distance between the reception antenna receiving this wireless signal in the transmitting antenna sending this wireless signal in the second terminal and this first terminal can be calculated.
In the step 310, detect this distance and whether be less than or equal to default distance threshold, if this distance is less than or equal to this distance threshold, then determine that this transmitting power and this received power meet this trigger condition.
For the method shown in disclosure embodiment for triggering assigned operation, for user, this assigned operation can be triggered by the touching between two terminals, when the user of first terminal and the second terminal want to trigger first terminal perform assigned operation time, first terminal and the second terminal can be touched, whether the numerical value of the distance that first terminal can be obtained by detecting step 308 is less than or equal to default distance threshold is determined whether user wants to trigger this assigned operation, if the numerical value of this distance is less than or equal to default distance threshold, then determine that user wants to trigger this assigned operation.
Wherein, this distance threshold can be set in advance in first terminal according to the user demand of reality by developer.For the numerical value of this distance threshold, disclosure embodiment does not limit.
It should be noted that, in the scheme that disclosure embodiment provides, first terminal calculates the distance between the reception antenna receiving this wireless signal in the transmitting antenna and this first terminal sending this wireless signal in this second terminal by the transmitting power of wireless signal and received power, and detects this distance and whether be less than or equal to default distance threshold to determine whether and meet trigger condition.In actual applications, other can also be had to detect whether meet trigger condition method according to the transmitting power of wireless signal and received power, such as, detect whether meet trigger condition by the difference between the transmitting power of wireless signal and received power, or, detect whether meet trigger condition by the proportional numerical value between the transmitting power of wireless signal and received power.Detect whether meet trigger condition method for according to the transmitting power of wireless signal and received power, disclosure embodiment does not limit.
In step 312, when acquisition receives this wireless signal, the sensing data of the acceleration transducer comprised in this first terminal, detect when receiving this wireless signal according to this sensing data, whether this first terminal is collided.
First terminal is when detecting that the distance between the reception antenna receiving this wireless signal in the transmitting antenna and this first terminal sending this wireless signal in the second terminal is less than or equal to default distance threshold, can also detect when receiving this wireless signal, whether first terminal is collided, if, then illustrate that first terminal and the second terminal are touched by the user of first terminal and the second terminal, thus determine the intention of user further, reach the effect improving the accuracy detected.
Wherein, first terminal is when being collided, and its acceleration must change, and the change of this acceleration also meets specific condition.In the disclosed embodiments, first terminal can obtain when receiving this wireless signal, the sensing data of built-in acceleration transducer, detects this sensing data and whether meets the condition be collided, be collided when if so, then can determine that first terminal is just receiving this wireless signal.
In a step 314, if testing result is for when receiving this wireless signal, this first terminal is collided, then perform assigned operation.
Wherein, this assigned operation can have a variety of, such as, the pairing of setting up between this first terminal with this second terminal is connected, or, exchanges data is carried out with this second terminal, or, or, carry out interaction with the second terminal, or, the various network activity such as carry out game interactive by third-party server and the second terminal, transfer accounts.Disclosure embodiment does not limit for this assigned operation.
In sum, in the trigger condition detection method that disclosure embodiment provides, by obtaining transmitting power and the received power of the wireless signal that the second terminal sends, and detect according to the transmitting power of this wireless signal and received power the trigger condition whether meeting assigned operation, if, then perform this assigned operation, the transmission of data not only can be carried out by means of short-distance wireless communication technology, the trigger condition of assigned operation can also be detected by the transmitting power of wireless signal and received power, reach the application scenarios enriching short-distance wireless communication technology, improve the effect of Consumer's Experience.
Fig. 4 is the block diagram of a kind of trigger condition checkout gear according to an exemplary embodiment.This trigger condition checkout gear may be used in first terminal, performs shown method as arbitrary in Fig. 1 to Fig. 3.This first terminal can be the intelligent terminals such as smart mobile phone, panel computer and E-book reader.As shown in Figure 4, this trigger condition checkout gear can comprise: signal receiving module 401, transmitting power acquisition module 402, received power acquisition module 403, first detection module 404 and Executive Module 405;
Signal receiving module 401 is set to the wireless signal sent for receiving the second terminal;
Transmitting power acquisition module 402 is set to the transmitting power for obtaining described wireless signal, and described transmitting power is the power that described second terminal sends described wireless signal;
Received power acquisition module 403 is set to the received power for obtaining described wireless signal, and described received power is the power of described wireless signal when being received;
First detection module 404 is set to the trigger condition whether meeting assigned operation for detecting described transmitting power and described received power;
If it is the trigger condition that described transmitting power and described received power meet described assigned operation that Executive Module 405 is set to for the testing result of described first detection module 404, then perform described assigned operation.
In sum, at the trigger condition checkout gear that disclosure embodiment provides, by obtaining transmitting power and the received power of the wireless signal that the second terminal sends, and detect according to the transmitting power of this wireless signal and received power the trigger condition whether meeting assigned operation, if, then perform this assigned operation, the transmission of data not only can be carried out by means of short-distance wireless communication technology, the trigger condition of assigned operation can also be detected by the transmitting power of wireless signal and received power, reach the application scenarios enriching short-distance wireless communication technology, improve the effect of Consumer's Experience.
Fig. 5 is the block diagram of a kind of trigger condition checkout gear according to another exemplary embodiment.This trigger condition checkout gear may be used in first terminal, performs shown method as arbitrary in Fig. 1 to Fig. 3.This first terminal can be the intelligent terminals such as smart mobile phone, panel computer and E-book reader.As shown in Figure 5, this trigger condition checkout gear can comprise: signal receiving module 401, transmitting power acquisition module 402, received power acquisition module 403, first detection module 404 and Executive Module 405;
Described signal receiving module 401 is set to the wireless signal sent for receiving the second terminal;
Described transmitting power acquisition module 402 is set to the transmitting power for obtaining described wireless signal, and described transmitting power is the power that described second terminal sends described wireless signal;
Described received power acquisition module 403 is set to the received power for obtaining described wireless signal, and described received power is the power of described wireless signal when being received;
Described first detection module 404 is set to the trigger condition whether meeting assigned operation for detecting described transmitting power and described received power;
If it is the trigger condition that described transmitting power and described received power meet described assigned operation that described Executive Module 405 is set to for the testing result of described first detection module 404, then perform described assigned operation.
Optionally, described first detection module 404, comprising: distance calculating sub module 404a, the first detection sub-module 404b and determine submodule 404c;
Described distance calculating sub module 404a be set to for calculate according to described transmitting power and described received power send described wireless signal in described second terminal transmitting antenna and described first terminal in receive described wireless signal reception antenna between distance;
Described first detection sub-module 404b is set to whether be less than or equal to default distance threshold for detecting described distance;
Determine that described if submodule 404c is set to be less than or equal to described distance threshold for described distance, then determine that described transmitting power and described received power meet described trigger condition.
Optionally, described received power acquisition module 403, comprising: measure submodule 403a and calculating sub module 403b;
Described measurement submodule 403a is set to the numerical value of the received signal strength indicator RSSI for measuring described wireless signal;
Described calculating sub module 403b is set to the received power of wireless signal described in the numerical computations for the described RSSI according to measurement acquisition.
Optionally, described transmitting power acquisition module 402 is set to for obtaining in described wireless signal the described transmitting power of carrying.
Optionally, described device also comprises: the second detection module 406;
Described second detection module 406 is arranged in use in before described Executive Module 405 performs described assigned operation, and detect when receiving described wireless signal, whether described first terminal is collided;
If it is that described first terminal is collided, then perform described assigned operation when receiving described wireless signal that described Executive Module 405 is set to for the testing result of described second detection module 406.
Optionally, described second detection module 406, comprising: data acquisition submodule 406a and the second detection sub-module 406b;
When described data acquisition submodule 406a is set to receive described wireless signal for acquisition, the sensing data of the acceleration transducer comprised in described first terminal;
Described second detection sub-module 406b is set to for detecting when receiving described wireless signal according to described sensing data, and whether described first terminal is collided.
Optionally, described wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra broadband UWB signal or wireless near field communication NFC signal.
In sum, at the trigger condition checkout gear that disclosure embodiment provides, by obtaining transmitting power and the received power of the wireless signal that the second terminal sends, and detect according to the transmitting power of this wireless signal and received power the trigger condition whether meeting assigned operation, if, then perform this assigned operation, the transmission of data not only can be carried out by means of short-distance wireless communication technology, the trigger condition of assigned operation can also be detected by the transmitting power of wireless signal and received power, reach the application scenarios enriching short-distance wireless communication technology, improve the effect of Consumer's Experience.
Fig. 6 is the block diagram of a kind of trigger condition checkout gear 600 according to an exemplary embodiment.Such as, device 600 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 6, device 600 can comprise following one or more assembly: processing components 602, memory 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of I/O (I/O), sensor cluster 614, and communications component 616.
The integrated operation of the usual control device 600 of processing components 602, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 602 can comprise one or more processor 618 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 602 can comprise one or more module, and what be convenient between processing components 602 and other assemblies is mutual.Such as, processing components 602 can comprise multi-media module, mutual with what facilitate between multimedia groupware 608 and processing components 602.
Memory 604 is configured to store various types of data to be supported in the operation of device 600.The example of these data comprises for any application program of operation on device 600 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 604 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.Also store one or more module in memory 604, this one or more module is configured to be performed by this one or more processor 620, to complete all or part of step of the arbitrary shown method of above-mentioned Fig. 1 to 3.
The various assemblies that power supply module 606 is device 600 provide electric power.Power supply module 606 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 600 and be associated.
Multimedia groupware 608 is included in the screen providing an output interface between described device 600 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 608 comprises a front-facing camera and/or post-positioned pick-up head.When device 600 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 610 is configured to export and/or input audio signal.Such as, audio-frequency assembly 610 comprises a microphone (MIC), and when device 600 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 604 further or be sent via communications component 616.In certain embodiments, audio-frequency assembly 610 also comprises a loud speaker, for output audio signal.
I/O interface 612 is for providing interface between processing components 602 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 614 comprises one or more transducer, for providing the state estimation of various aspects for device 600.Such as, sensor cluster 614 can detect the opening/closing state of device 600, the relative positioning of assembly, such as described assembly is display and the keypad of device 600, the position of all right checkout gear 600 of sensor cluster 614 or device 600 1 assemblies changes, the presence or absence that user contacts with device 600, the variations in temperature of device 600 orientation or acceleration/deceleration and device 600.Sensor cluster 614 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 614 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 614 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 616 is configured to the communication being convenient to wired or wireless mode between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 616 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 616 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 600 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other-end element.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 604 of instruction, above-mentioned instruction can perform said method by the processor 618 of device 600.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations performs detailed description in about the embodiment of the method, will not elaborate explanation herein.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can perform various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.
Claims (15)
1. a trigger condition detection method, is characterized in that, in first terminal, described method comprises:
Receive the wireless signal that the second terminal sends;
Obtain the transmitting power of described wireless signal, described transmitting power is the power that described second terminal sends described wireless signal;
Obtain the received power of described wireless signal, described received power is the power of described wireless signal when being received;
Detect the trigger condition whether described transmitting power and described received power meet assigned operation;
If testing result is the trigger condition that described transmitting power and described received power meet described assigned operation, then perform described assigned operation.
2. method according to claim 1, is characterized in that, whether the described transmitting power of described detection and described received power meet the trigger condition of assigned operation, comprising:
The distance between the reception antenna receiving described wireless signal in the transmitting antenna and described first terminal sending described wireless signal in described second terminal is calculated according to described transmitting power and described received power;
Detect described distance and whether be less than or equal to default distance threshold;
If described distance is less than or equal to described distance threshold, then determine that described transmitting power and described received power meet described trigger condition.
3. method according to claim 1, is characterized in that, the received power of the described wireless signal of described acquisition, comprising:
Measure the numerical value of the received signal strength indicator RSSI of described wireless signal;
The received power of wireless signal according to the numerical computations of the described RSSI of measurement acquisition.
4. method according to claim 1, is characterized in that, the transmitting power of the described wireless signal of described acquisition, comprising:
Obtain in described wireless signal the described transmitting power of carrying.
5. method according to claim 1, is characterized in that, before the described assigned operation of described execution, described method also comprises:
Detect when receiving described wireless signal, whether described first terminal is collided;
If testing result is for when receiving described wireless signal, described first terminal is collided, then perform described assigned operation.
6. method according to claim 5, is characterized in that, described detection is when receiving described wireless signal, and whether described first terminal is collided, and comprising:
When acquisition receives described wireless signal, the sensing data of the acceleration transducer comprised in described first terminal;
Detect when receiving described wireless signal according to described sensing data, whether described first terminal is collided.
7., according to the arbitrary described method of claim 1 to 6, it is characterized in that, described wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra broadband UWB signal or wireless near field communication NFC signal.
8. a trigger condition checkout gear, is characterized in that, in first terminal, described device comprises:
Signal receiving module, for receiving the wireless signal that the second terminal sends;
Transmitting power acquisition module, for obtaining the transmitting power of described wireless signal, described transmitting power is the power that described second terminal sends described wireless signal;
Received power acquisition module, for obtaining the received power of described wireless signal, described received power is the power of described wireless signal when being received;
Whether first detection module, meet the trigger condition of assigned operation for detecting described transmitting power and described received power;
Executive Module, if be the trigger condition that described transmitting power and described received power meet described assigned operation for the testing result of described first detection module, then performs described assigned operation.
9. device according to claim 8, is characterized in that, described first detection module, comprising:
Distance calculating sub module, for calculate according to described transmitting power and described received power send described wireless signal in described second terminal transmitting antenna and described first terminal in receive described wireless signal reception antenna between distance;
Whether the first detection sub-module, be less than or equal to default distance threshold for detecting described distance;
Determine submodule, if be less than or equal to described distance threshold for described distance, then determine that described transmitting power and described received power meet described trigger condition.
10. device according to claim 8, is characterized in that, described received power acquisition module, comprising:
Measure submodule, for measuring the numerical value of the received signal strength indicator RSSI of described wireless signal;
Calculating sub module, for the received power of wireless signal according to the numerical computations measuring the described RSSI obtained.
11. devices according to claim 8, is characterized in that, described transmitting power acquisition module, for obtaining in described wireless signal the described transmitting power of carrying.
12. devices according to claim 8, is characterized in that, described device also comprises:
Second detection module, before performing described assigned operation at described Executive Module, detect when receiving described wireless signal, whether described first terminal is collided;
Described Executive Module, if be that described first terminal is collided, then perform described assigned operation when receiving described wireless signal for the testing result of described second detection module.
13. devices according to claim 12, is characterized in that, described second detection module, comprising:
Data acquisition submodule, when receiving described wireless signal for obtaining, the sensing data of the acceleration transducer comprised in described first terminal;
Second detection sub-module, for detecting when receiving described wireless signal according to described sensing data, whether described first terminal is collided.
Device described in 14. according to Claim 8 to 13 are arbitrary, it is characterized in that, described wireless signal is Bluetooth signal, Wireless Fidelity Wi-Fi signal, ultra broadband UWB signal or wireless near field communication NFC signal.
15. 1 kinds of trigger condition checkout gears, is characterized in that, described device comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the wireless signal that the second terminal sends;
Obtain the transmitting power of described wireless signal, described transmitting power is the power that described second terminal sends described wireless signal;
Obtain the received power of described wireless signal, described received power is the power of described wireless signal when being received;
Detect the trigger condition whether described transmitting power and described received power meet assigned operation;
If testing result is the trigger condition that described transmitting power and described received power meet described assigned operation, then perform described assigned operation.
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 true CN104601204A (en) | 2015-05-06 |
CN104601204B 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) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105182761A (en) * | 2015-07-31 | 2015-12-23 | 小米科技有限责任公司 | Specified operation triggering method and device |
CN105246024A (en) * | 2015-09-02 | 2016-01-13 | 深圳市文鼎创数据科技有限公司 | Terminal equipment matching connection method and system |
CN105306818A (en) * | 2015-10-12 | 2016-02-03 | 北京奇虎科技有限公司 | Terminal state activation system and method |
CN106028262A (en) * | 2016-05-12 | 2016-10-12 | 腾讯科技(深圳)有限公司 | Near-field service acquisition method and device for application |
CN107450067A (en) * | 2017-07-28 | 2017-12-08 | 维沃移动通信有限公司 | 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 (4)
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 |
CN102388348A (en) * | 2008-12-01 | 2012-03-21 | 埃利亚胡·拉德 | Method and system for monitoring and locating items |
CN103037493A (en) * | 2012-12-14 | 2013-04-10 | 中兴通讯股份有限公司 | Method and device and intelligent terminal capable of dynamically regulating transmitting power |
CN104244239A (en) * | 2013-06-06 | 2014-12-24 | 中兴通讯股份有限公司 | Mobile hotspot starting device, method and system |
-
2014
- 2014-12-25 CN CN201410826007.9A patent/CN104601204B/en active Active
Patent Citations (4)
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 |
CN102388348A (en) * | 2008-12-01 | 2012-03-21 | 埃利亚胡·拉德 | Method and system for monitoring and locating items |
CN103037493A (en) * | 2012-12-14 | 2013-04-10 | 中兴通讯股份有限公司 | Method and device and intelligent terminal capable of dynamically regulating transmitting power |
CN104244239A (en) * | 2013-06-06 | 2014-12-24 | 中兴通讯股份有限公司 | Mobile hotspot starting device, method and system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105182761A (en) * | 2015-07-31 | 2015-12-23 | 小米科技有限责任公司 | Specified operation triggering method and device |
EP3125433A1 (en) * | 2015-07-31 | 2017-02-01 | Xiaomi Inc. | Method and device for triggering predetermined operation |
US9991975B2 (en) | 2015-07-31 | 2018-06-05 | Xiaomi Inc. | Method and device for triggering specified operation |
CN105246024A (en) * | 2015-09-02 | 2016-01-13 | 深圳市文鼎创数据科技有限公司 | Terminal equipment matching connection method and system |
WO2017035978A1 (en) * | 2015-09-02 | 2017-03-09 | 深圳市文鼎创数据科技有限公司 | Pairing connection method and system for terminal devices |
CN105246024B (en) * | 2015-09-02 | 2019-05-24 | 深圳市文鼎创数据科技有限公司 | The method and system of terminal device pairing connection |
CN105306818A (en) * | 2015-10-12 | 2016-02-03 | 北京奇虎科技有限公司 | Terminal state activation system and method |
CN106028262A (en) * | 2016-05-12 | 2016-10-12 | 腾讯科技(深圳)有限公司 | Near-field service acquisition method and device for application |
CN106028262B (en) * | 2016-05-12 | 2020-04-07 | 腾讯科技(深圳)有限公司 | Near field service acquisition method and device for application |
CN107450067A (en) * | 2017-07-28 | 2017-12-08 | 维沃移动通信有限公司 | A kind of distance detection device, method and mobile terminal |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104601204B (en) | 2017-12-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101814161B1 (en) | Method and apparatus for controlling electronic device | |
CN104318741B (en) | Bluetooth equipment control method and device | |
CN104158946B (en) | A kind of method and device controlling terminal | |
CN104703295A (en) | Network access method and network access device | |
CN106714081B (en) | Network connection method and intelligent device | |
CN104601204B (en) | trigger condition detection method and device | |
CN105228147A (en) | Method for connecting network, Apparatus and system | |
CN105468152A (en) | Terminal operation control method and device based on wearable equipment, and equipment | |
CN105101330A (en) | Connection switching method and device | |
CN105828281A (en) | Device connection method and device | |
CN104853336A (en) | Method for discovering intelligent equipment, method for accessing to internet and devices thereof | |
CN104298547A (en) | Terminal setting method and device | |
CN104468971A (en) | Method and device for connecting playing source | |
CN104486451A (en) | Application program recommendation method and device | |
CN104506443A (en) | Router setting interface display method and device | |
CN105388453A (en) | Method and device for positioning intelligent device | |
CN104185304A (en) | Method and device for accessing WI-FI network | |
CN106532367B (en) | The method and apparatus of intelligent socket electricity consumption warning | |
CN104618575A (en) | Method and device for approaching detected objects | |
CN104243829A (en) | Self-shooting method and self-shooting device | |
CN105224171A (en) | icon display method, device and terminal | |
CN104010072A (en) | Electric quantity prompt method and device | |
CN105282446A (en) | Camera management method and device | |
CN104581615A (en) | Service delivery method and device | |
CN105376144A (en) | Information processing method and device |
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 |