A kind of data interactive method, device and equipment
Technical field
This specification is related to a kind of field of computer technology more particularly to data interactive method, device and equipment.
Background technology
Currently, the scene of data interaction is very more, the data exchange between equipment can be completed by data interaction, so as to
Subsequent processing is completed, such as during mobile payment, the data interaction etc. between equipment.
Currently, in mobile payment field, graphic code (such as bar code or Quick Response Code) scanning, the anti-scheme of sweeping occupy big portion
Branch scape, but the experience effect of above-mentioned scene is dependent on the camera quality of terminal device and the quality of communication network.Example
Such as, when taking subway, user needs the Quick Response Code by being shown in terminal device to ride.If user rides at the stations A, stand in B
Scan the two-dimensional code it is outbound, then due to take subway when, the wireless signal of terminal device is generally poor, in this way, terminal device very may be used
It can be constantly in off-line state, moreover, target terminal is not real-time online yet, to so that know which is currently
The gate of one subway station scans the Quick Response Code of the terminal device of the user, to cannot achieve fare calculation, therefore, it is necessary to
A kind of simpler scheme accurate, data interaction is more efficient is provided.
Invention content
The purpose of this specification embodiment is to provide a kind of data interactive method, device and equipment, a kind of simpler to provide
Single scheme accurate, data interaction is more efficient.
To realize that above-mentioned technical proposal, this specification embodiment are realized in:
A kind of data interactive method that this specification embodiment provides, including:
Obtain the distance between target terminal;
When the distance reaches second distance threshold value, and the wireless connection between the target terminal has been established, base
In the wireless connection of foundation, data interaction is carried out with the target terminal, the wireless connection is reached in the distance
It is begun setting up before second distance threshold value.
Optionally, before the distance reaches second distance threshold value, the method further includes:
Obtain the wireless signal strength of the target terminal transmitting;
When the distance reaches the first distance threshold, and the wireless signal strength is more than predetermined signal strength threshold value,
The wireless connection between the target terminal is begun setting up, first distance threshold is more than the second distance threshold value.
Optionally, described when the distance reaches second distance threshold value, and the nothing between the target terminal has been established
When line connects, the wireless connection based on foundation carries out data interaction with the target terminal, including:
When the distance reaches second distance threshold value, by detecting the target terminal close to detection module;
If detecting the target terminal, and the wireless connection between the target terminal has been established, is then based on building
The vertical wireless connection carries out data interaction with the target terminal.
Optionally, described that the target terminal is detected by close detection module, including:
By detecting the magnetic field that the target terminal generates close to detection module, the magnetic field includes periodically variable field
By force;
If detecting the magnetic field, and the field strength in the magnetic field is more than predetermined field strength threshold value, then detects the target
Otherwise terminal does not detect the target terminal;
Alternatively,
By the periodically variable predetermined light for detecting the target terminal transmitting close to detection module;
If detecting the periodically variable predetermined light, the target terminal is detected, otherwise, is not detected
The target terminal.
Optionally, the wireless connection between the foundation and the target terminal, including:
Establish the bluetooth connection between the target terminal;Alternatively,
Establish the ultra wide band UWB connections between the target terminal;Alternatively,
Establish the Wireless Fidelity Wi-Fi connection between the target terminal;Alternatively,
Establish the domestic electromagnetic frequency HomeRF connections between the target terminal.
Optionally, the wireless connection between the target terminal has been established, but the distance is not up to second distance threshold
When value, the method further includes:
When the distance be more than first distance threshold, alternatively, the distance reaches first distance threshold, and institute
When stating wireless signal strength less than predetermined signal strength threshold value, the wireless connection between the target terminal is disconnected.
Optionally, the distance reaches first distance threshold, and the wireless signal strength is strong less than prearranged signals
When spending threshold value, the wireless connection between the target terminal is disconnected, including:
When the distance reaches first distance threshold, with predetermined period, continuous several times obtain target terminal transmitting
Wireless signal strength;
When the wireless signal strength that continuous several times detect is less than predetermined signal strength threshold value, disconnect whole with the target
Wireless connection between end.
A kind of data interactive method that this specification embodiment provides, the method includes:
The distance between detect the wireless signal strength of target terminal transmitting, and detect the target terminal;
During at a distance from the wireless signal strength of detection target terminal transmitting and between the target terminal, when
The distance reaches the first distance threshold, and when the wireless signal strength is more than predetermined signal strength threshold value, begin setting up with
Wireless connection between the target terminal;
During at a distance from detection is between the target terminal, when the distance reaches second distance threshold value, and
When the wireless connection between the target terminal has been established, the wireless connection based on foundation, with the target terminal into
Row data interaction, first distance threshold are more than the second distance threshold value.
A kind of data interaction device that this specification embodiment provides, including:
Apart from acquisition module, for obtaining the distance between target terminal;
Data interaction module reaches second distance threshold value for working as the distance, and have been established with the target terminal it
Between wireless connection when, the wireless connection based on foundation, with the target terminal carry out data interaction, the wireless connection
It is to be begun setting up before the distance reaches second distance threshold value.
Optionally, described device further includes:
Signal strength acquisition module, the wireless signal strength for obtaining the target terminal transmitting;
Wireless connection establishes module, reaches the first distance threshold for working as the distance, and the wireless signal strength is big
When predetermined signal strength threshold value, the wireless connection between the target terminal is begun setting up, first distance threshold is big
In the second distance threshold value.
Optionally, the data interaction module, including:
Probe unit, for when the distance reaches second distance threshold value, the mesh to be detected by close detection module
Mark terminal;
Data interaction unit, if for detecting the target terminal, and have been established between the target terminal
It is wirelessly connected, then the wireless connection based on foundation, data interaction is carried out with the target terminal.
Optionally, the probe unit, for by detecting the magnetic field that the target terminal generates, institute close to detection module
It includes periodically variable field strength to state magnetic field;If detecting the magnetic field, and the field strength in the magnetic field is more than predetermined field strength threshold
Value, then detect the target terminal, otherwise, do not detect the target terminal;
Alternatively,
By the periodically variable predetermined light for detecting the target terminal transmitting close to detection module;If detected
The periodically variable predetermined light, then detect the target terminal, otherwise, does not detect the target terminal.
Optionally, the data interaction module, for establishing the bluetooth connection between the target terminal;Alternatively, building
The vertical ultra wide band UWB between the target terminal is connect;Alternatively, establishing the Wireless Fidelity Wi- between the target terminal
Fi connections;Alternatively, establishing the domestic electromagnetic frequency HomeRF connections between the target terminal.
Optionally, described device further includes:
It is wirelessly connected and disconnects module, for being more than first distance threshold when the distance, alternatively, the distance reaches
First distance threshold, and the wireless signal strength be less than predetermined signal strength threshold value when, disconnect with the target terminal
Between wireless connection.
Optionally, the wireless connection disconnects module, including:
Signal strength acquiring unit, for when the distance reaches first distance threshold, with predetermined period, continuously
Repeatedly obtain the wireless signal strength of target terminal transmitting;
Switching units are connected, the wireless signal strength for being detected when continuous several times is less than predetermined signal strength threshold value
When, disconnect the wireless connection between the target terminal.
A kind of data interaction device that this specification embodiment provides, including:
Detection module, the wireless signal strength for detecting target terminal transmitting, and detect between the target terminal
Distance;
Connection establishment module is used in the wireless signal strength of detection target terminal transmitting and between the target terminal
Distance during, when the distance reaches the first distance threshold, and the wireless signal strength is more than predetermined signal strength
When threshold value, the wireless connection between the target terminal is begun setting up;
Data interaction module, during being used at a distance from detection is between the target terminal, when the distance reaches
To second distance threshold value, and when the wireless connection between the target terminal has been established, the wireless connection based on foundation,
Data interaction is carried out with the target terminal, first distance threshold is more than the second distance threshold value.
A kind of data interaction equipment that this specification embodiment provides, the data interaction equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
Manage device:
Obtain the distance between target terminal;
When the distance reaches second distance threshold value, and the wireless connection between the target terminal has been established, base
In the wireless connection of foundation, data interaction is carried out with the target terminal, the wireless connection is reached in the distance
It is begun setting up before second distance threshold value.
A kind of data interaction equipment that this specification embodiment provides, the data interaction equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
Manage device:
The distance between detect the wireless signal strength of target terminal transmitting, and detect the target terminal;
During at a distance from the wireless signal strength of detection target terminal transmitting and between the target terminal, when
The distance reaches the first distance threshold, and when the wireless signal strength is more than predetermined signal strength threshold value, begin setting up with
Wireless connection between the target terminal;
During at a distance from detection is between the target terminal, when the distance reaches second distance threshold value, and
When the wireless connection between the target terminal has been established, the wireless connection based on foundation, with the target terminal into
Row data interaction, first distance threshold are more than the second distance threshold value.
The technical solution provided by above this specification embodiment is as it can be seen that this specification embodiment is whole with target by obtaining
The distance between end, when the distance reaches second distance threshold value, and the wireless connection between target terminal has been established, is based on
The wireless connection of foundation carries out data interaction with target terminal, and the wireless connection is to reach second distance in the distance of acquisition
Begin setting up before threshold value, in this way, can between target terminal at a distance from when being not up to second distance threshold value, begin setting up
Wireless connection between target terminal, at the same can also continue to judge with the distance between target terminal whether reach second away from
From threshold value, and determining that the distance reaches second distance threshold value, while when above-mentioned wireless connection also establishes completion, based on foundation
It being wirelessly connected, data interaction is carried out with target terminal, user can need not rely on camera to carry out data interaction, moreover,
It begins to establish before carrying out data interaction and be wirelessly connected, and be quickly based on wirelessly connecting when determination can carry out data interaction
Row data interaction is tapped into, to improve data interaction efficiency, improves user experience.
Description of the drawings
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or
Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only
Some embodiments described in this specification, for those of ordinary skill in the art, in not making the creative labor property
Under the premise of, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of data interactive method embodiment of this specification;
Fig. 2 is a kind of structural schematic diagram of data interaction system of this specification;
Fig. 3 is this specification another kind data interactive method embodiment;
Fig. 4 is the structural schematic diagram of this specification another kind data interaction system;
Fig. 5 is another data interactive method embodiment of this specification;
Fig. 6 is another data interactive method embodiment of this specification;
Fig. 7 is another data interactive method embodiment of this specification;
Fig. 8 is a kind of data interaction device embodiment of this specification;
Fig. 9 is this specification another kind data interaction device embodiment;
Figure 10 is a kind of data interaction apparatus embodiments of this specification.
Specific implementation mode
A kind of data interactive method of this specification embodiment offer, device and equipment.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,
The every other embodiment that those of ordinary skill in the art are obtained without creative efforts, should all belong to
The range of this specification protection.
Embodiment one
As shown in Figure 1, this specification embodiment provides a kind of data interactive method, the executive agent of this method can be eventually
End equipment, wherein the terminal device can such as personal computer equipment, can also such as mobile phone, tablet computer mobile terminal
Equipment, the terminal device can be the terminal device that user uses.This method can be used for establishing terminal device and target terminal
Between wireless connection, and when terminal device is close to target terminal, the wireless connection based on foundation carries out data interaction etc.
In reason.This method can specifically include following steps:
In step s 102, the distance between target terminal is obtained.
Wherein, target terminal can be the terminal for needing to carry out data interaction with the terminal device of user, be handed over by data
Scheduled processing or operation mutually may be implemented, for example, as shown in Fig. 2, target terminal can be the lock in subway or bus stop
Machine, alternatively, can also be the POS on mass transportation facilities, alternatively, can also be building, library, enterprise campus or small
Channel management equipment or traction equipment etc. in the access control systems such as area or ticketing system.
In force, currently, the scene of data interaction is very more, especially in current mobile payment field, graphic code
(such as bar code or Quick Response Code) scanning, the anti-scheme of sweeping occupy most of scene, but the experience effect of above-mentioned scene depends on
The camera quality of terminal device.In addition, under above-mentioned scene, a scanned side can not know the position being presently in.Example
Such as, barcode scanning equipment (i.e. target terminal) cost on mass transportation facilities is not high, if the camera of the terminal device of user
Recognition effect is bad, then is frequently necessary to the direction that user adjusts terminal device repeatedly, so that target terminal can correctly identify end
The graphic code that end equipment is shown.In another example when taking subway, user needs the Quick Response Code by being shown in terminal device to ride,
The Quick Response Code that can then show terminal device is placed on the two-dimensional code scanning window of gate (i.e. target terminal) offer, so that mesh
Mark terminal opens channel, and user, which can enter in subway station, to ride.If user rides at the stations A, stands in B and scan two dimension
Code it is outbound, then due to take subway when, the wireless signal of terminal device is generally poor, in this way, terminal device is likely to always
In off-line state, in addition, target terminal is not real-time online, in this way, which subway can know is currently
The gate stood scans the Quick Response Code of the terminal device of the user, to cannot achieve fare calculation.
In addition, further including the data interaction scene of other manner, such as carried out by the function of the NFC module of terminal device close
Distance touching payment, since NFC (Near Field Communication, close range wireless communication) module is that near-field communication is special
With component, therefore, the user experience that data interaction is carried out by NFC module is relatively stablized.But the terminal for having NFC function is set
Standby quantity is simultaneously few, and the popularity rate of NFC is not high in terminal device, currently, only about 30% terminal device has NFC
Module, and the permission of the not yet open NFC module of some terminal device, in addition, carrying out data interaction by NFC module
There is also one-way communications, and the problem of can not write back.
In addition, in practical applications, further including the data interaction scene of other manner, such as passing through the bluetooth mould of terminal device
The function of block carries out the data interaction of short distance, and still, distance of the bluetooth module between detecting distinct device and foundation are wireless
There are problem in the speed of connection, that is, the range accuracy detected is relatively low, and it is slower to be wirelessly connected speed.
In practical applications, can according to signal strength (Received Signal Strength Indication,
RSSI) judge the distance between the terminal device of target terminal and user, RSSI intensity is bigger illustrates target terminal and user
The distance between terminal device it is closer, when RSSI intensity is more than preset intensity threshold, illustrates target terminal and use
The distance between the terminal device at family is close enough, at this point, beginning setting up between target terminal and the terminal device of user
Bluetooth connection simultaneously transmits the data for needing interaction.But the numerical value of RSSI intensity obtained above and inaccurate, in practical application
In, user is likely located at the position of distance objective terminal 20cm, and the RSSI intensity at the position is whole more than target is close to instead
RSSI intensity at the position at end.In another example taking mass transportation facilities, when close to swiping card equipment, for the 2 of front and back queuing
A user can not judge that the bluetooth signal intensity of the terminal device of which user is stronger, if there are one user is complete in 2 users
It at swiping the card, then can not judge which user completes the above-mentioned data exchange process swiped the card, or even can cause and mistake
Terminal device has carried out data interaction, therefore, not can determine that RSSI intensity is just centainly sentenced more than preset intensity threshold
User is determined close to target terminal.Moreover, the bluetooth of terminal device and the bluetooth of swiping card equipment establish connection and are also required to certain time,
To reduce data interaction efficiency.
In addition, can also include the data interactive mode that bluetooth is combined with magnetic field, specifically, mesh in practical applications
Bluetooth holotype can be in integrated electromagnets and bluetooth module, the bluetooth module of the terminal device of user by marking terminal, and target is whole
End uses bluetooth subordinate mode, and broadcasts Bluetooth signal outward, meanwhile, the electromagnetic module in target terminal generates the progress of its field strength
Periodically variable magnetic field.When user opens a terminal the related application of equipment, the magnetometer of terminal device does not stop to detect
External magnetic field changes, and until having detected periodically variable magnetic field, then illustrates user close to target terminal, at this point, terminal
Equipment begins setting up bluetooth connection with target terminal, and then, the bluetooth connection based on foundation carries out data interaction.But pass through
During aforesaid way carries out data interaction, the bluetooth of terminal device and the bluetooth of target terminal are established connection and are also required to centainly
Time, to reduce data interaction efficiency.
In addition, can also include the data interactive mode that Quick Response Code is combined with bluetooth in practical applications, specifically,
The terminal device two-dimensional code display of user, wherein the Bluetooth information containing present terminal equipment, the Quick Response Code quilt in terminal device
After gate (i.e. target terminal) scanning, gate obtains the Bluetooth address of terminal device from Quick Response Code, is set with terminal to establish
Bluetooth connection between standby, then, the bluetooth connection based on foundation carry out data interaction.Likewise, carrying out through the above way
During data interaction, the bluetooth of terminal device and the bluetooth of target terminal establish connection and are also required to certain time, to meeting
Reduce data interaction efficiency.
In order to solve the problems, such as exist during carrying out data interaction above by aforesaid way, this specification embodiment
A kind of scheme that data interaction is more efficient is provided, the following contents is can specifically include:
As shown in Fig. 2, wireless communication module (i.e. bluetooth module), the wireless communication module can be provided in target terminal
It can be used for broadcasting or emit wireless signal, and transmission data etc..According to the difference of the wireless signal of broadcast or transmitting, channel radio
Interrogating module can be different, for example, wireless communication module can be bluetooth module, infrared-ray communication module, Wi-Fi module or UWB
(Ultra-Wideband, ultra wide band) module etc., this specification embodiment does not limit this.In order to better illustrate this programme
Specific implementation process, and the communication module in view of being generally configured in terminal device, with wireless communication module in the present embodiment
For bluetooth module, the case where for other wireless communication modules, it is referred to following related contents and executes, it is no longer superfluous herein
It states.In addition, the wireless communication module of target terminal could be provided as subordinate mode.
Wireless communication module (i.e. bluetooth module) can also be provided in terminal device, and the wireless communication module can be with
It is set as holotype, at this point, the wireless communication module in terminal device may search for the wireless signal of surrounding, and and target terminal
Establish connection etc..In addition, can be provided with apart from detection module, such as range sensor in terminal device.
When user needs to carry out data interaction with target terminal (when specifically needing the gate by subway station such as user,
Or user need swipe the card take mass transportation facilities when etc.), target terminal can outward be emitted wirelessly by wireless communication module
Signal, wherein with the propagation of wireless signal, the intensity of wireless signal can be more and more weaker.Meanwhile target terminal can also start
Range sensor, the distance between the terminal device of detection and user.The terminal device of user can also open wireless telecommunications mould
Block, and the wireless signal of surrounding is searched for, furthermore, it is also possible to start apart from the distance between detection module detection and target terminal
Deng.
When user moves closer to target terminal, the terminal device of user can enter the wireless signal of target terminal transmitting
Coverage area in, at this point, the wireless communication module of terminal device can search the wireless signal of target terminal transmitting, and can be with
Determine that (wireless signal strength can be the intensity of preset wireless signal, preset nothing for the intensity of the wireless signal
Line signal may include a variety of, specifically may be set according to actual conditions, specific such as Bluetooth signal, infrared signal or Wi-Fi
Signal etc.).In addition, terminal device after searching the wireless signal of target terminal, can be examined at a distance from the target terminal
It surveys module to be communicated, determines the distance between terminal device and target terminal.For example, moving closer to target terminal in user
When, the terminal device of user can search the Bluetooth signal of target terminal transmitting, and terminal device can measure the bluetooth received
The intensity of signal, and the distance between target terminal is determined by range sensor.
As shown in Fig. 2, by above-mentioned processing, the distance between target terminal can be obtained, it can be by the distance of acquisition
It is compared with preset first distance threshold (may be set according to actual conditions, such as 1 meter or 5 meters specific), if
The distance between terminal device and target terminal reach the first distance threshold, then show user close to target terminal.Meanwhile
If by above-mentioned processing, determine that the wireless signal strength that the terminal device of user receives (can more than predetermined signal strength threshold value
To be set according to actual conditions, different signal strength thresholds can be arranged, in this specification in different wireless communication modules
In another embodiment, different wireless communication modules can also be arranged identical signal strength threshold, this specification is implemented
Example does not limit this), then show user close to target terminal, it is contemplated that terminal device wirelessly connects with target terminal foundation
It connects and needs the regular hour, therefore, can begin setting up user's when wireless signal strength is more than predetermined signal strength threshold value
Wireless connection between terminal device and target terminal, meanwhile, the processing of following step S104 can also be performed in terminal device, i.e.,
Establishing the process being wirelessly connected can be performed simultaneously with the processing of following step S104, in another embodiment of this specification
In, the process for establishing wireless connection can also be to be executed before the processing of following step S104, that is, set up wireless connection
Later, the processing etc. of following step S104 is executed, this specification embodiment does not limit this.
In step S104, when above-mentioned distance reaches second distance threshold value, and have been established wireless between target terminal
When connection, the wireless connection based on foundation carries out data interaction with target terminal, which is to reach the in above-mentioned distance
It is begun setting up before two distance thresholds.
Wherein, second distance threshold value may be set according to actual conditions, such as 0.2 meter or 0.5 meter specific.Above-mentioned first away from
Second distance threshold value can be more than from threshold value, for example, the first distance threshold can be 1 meter, second distance threshold value can be 0.2 meter
Deng.Data interaction can be the data interaction under the data exchange process under several scenes, such as payment scene mentioned above,
Or data interaction under authentication scene or the data interaction etc. between terminal device under data exchange scene.
In force, as shown in Fig. 2, when user continues close to target terminal, the terminal that range sensor detects is set
It is standby smaller and smaller with the distance between target terminal, when the distance between terminal device and target terminal reach second distance threshold value
When, at this point, the wireless connection established between terminal device and target terminal should have been completed, then, terminal device can be with base
Data interaction is carried out with target terminal in the wireless connection of foundation, for example, terminal device sends user's to the gate of subway station
Account information after gate verifies account information, can record website or the outbound website by bus of user, and can open gate and permit
Family allowable passes through, and can subsequently carry out the processing such as account settlement.
This specification embodiment provides a kind of data interactive method, by obtaining the distance between target terminal, when this
Distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation, with
Target terminal carries out data interaction, and the wireless connection is begun setting up before the distance of acquisition reaches second distance threshold value,
In this way, can between target terminal at a distance from when being not up to second distance threshold value, begin setting up between target terminal
It is wirelessly connected, while can also continue to judge whether the distance between target terminal reaches second distance threshold value, and in determination
The distance reaches second distance threshold value, while above-mentioned wireless connection is also established when completing, the wireless connection based on foundation, with target
Terminal carries out data interaction, and user can need not rely on camera to carry out data interaction, moreover, carry out data interaction it
Before begin to establish be wirelessly connected, and when determination can carry out data interaction quickly be based on be wirelessly connected carry out data interaction,
To improve data interaction efficiency, user experience is improved.
Embodiment two
As shown in figure 3, this specification embodiment provides a kind of data interactive method, the executive agent of this method can be eventually
End equipment, wherein the terminal device can such as personal computer equipment, can also such as mobile phone, tablet computer mobile terminal
Equipment, the terminal device can be the terminal device that user uses.This method can be used for establishing terminal device and target terminal
Between wireless connection, and when terminal device is close to target terminal, the wireless connection based on foundation carries out data interaction etc.
In reason.This method can be a kind of realization method of above-described embodiment one, can specifically include following steps:
In step s 302, obtain target terminal transmitting wireless signal strength, and obtain and target terminal between away from
From.
The specific processing of above-mentioned steps S302 may refer to the related content of step S102 in above-described embodiment one, herein not
It repeats again.
In step s 304, when above-mentioned distance reaches the first distance threshold, and above-mentioned wireless signal strength is more than predetermined letter
When number intensity threshold, the wireless connection between target terminal is begun setting up.
Wherein, the wireless connection established between target terminal may include opening wireless communication module, wireless by this
The wireless communication module progress communication handshake of wireless communication module and the target terminal searched around communication module search,
It attempts to establish the data transmission channel between the wireless communication module of target terminal, establish the processing procedures such as data transmission channel,
By above-mentioned processing procedure, established wireless connection can be just finally obtained.Begin setting up wirelessly connecting between target terminal
The initial procedure in the processing procedure that can be wireless connection between foundation and target terminal is connect, wireless telecommunications mould is such as opened
Block, and pass through the wireless communication module etc. around wireless communication module search.
The step content of above-mentioned steps S304 is identical as the step content of step S104 in above-described embodiment one, above-mentioned steps
The specific processing of S304 may refer to the related content of step S104 in above-described embodiment one, and details are not described herein.
It should be noted that the above-mentioned processing for beginning setting up the wireless connection between target terminal may include it is a variety of not
Same processing mode, the processing mode of plurality of optional presented below can specifically include the following contents:It begins setting up and target end
Bluetooth connection between end;Alternatively, the ultra wide band UWB begun setting up between target terminal is connect;Alternatively, beginning setting up and mesh
Mark the Wireless Fidelity Wi-Fi connection between terminal;Alternatively, beginning setting up the domestic electromagnetic frequency HomeRF between target terminal
Connection etc..
In practical applications, the distance between terminal device and target terminal typically pass through the distance in terminal device
Range sensor in sensor and/or target device detects to obtain, and range sensor is typically to pass through ultrasonic wave or light arteries and veins
The mode of punching is into the measurement of row distance, and specifically, ultrasonic wave or light pulse, ultrasonic wave occur for the transmitter unit in range sensor
Or encounter barrier during light pulse propagation and can be reflected, if the receiving unit of range sensor receives the super of reflection
Sound wave or light pulse can then estimate the distance between terminal device and target terminal according to the above process, and by above-mentioned
Distance that mode obtains is simultaneously inaccurate, in tandem, and for two close users, may still can not determine
Which user is closer to target terminal, for this purpose, can also increase auxiliary judgement mechanism, that is, is beginning setting up between target terminal
Wireless connection during, the processing of following step S306 and step S308 can be executed.
It is whole by detecting target close to detection module when above-mentioned distance reaches second distance threshold value in step S306
End.
Wherein, it can be used for judging whether distance objective terminal reaches for the terminal device of user or user close to detection module
Whether apart from close etc., the close testing mechanism used close to detection module can be by a variety of sides for certain distance, or both
Formula is realized, such as by realizations such as light, sound wave or ultrasonic waves, can be provided in target terminal close to detection module, target
Close detection module in terminal can emit preset light, sound wave or ultrasonic wave etc., and the terminal device of user is true
When determining the distance between target terminal and reach second distance threshold value, and the wireless connection between target terminal has been established, eventually
End equipment can start it close to detection module, and by detecting preset light, sound wave or ultrasound close to detection module
Wave can be determined that end if the preset light, sound wave or the ultrasonic wave that detect meet preset goal condition
End equipment detects target terminal, at this point it is possible to the processing of following step S308 be executed, if the preset light detected
Line, sound wave or ultrasonic wave are unsatisfactory for preset goal condition, then can be determined that terminal device no target detected terminal, this
When, terminal device can continue to execute the processing of above-mentioned steps S306.
In practical applications, the close testing mechanism used close to detection module can be accomplished in several ways, below
Two kinds of optional processing modes are being provided, then the processing of above-mentioned steps S306 may include the place of following manner one or mode two
Reason.
Mode one, by detecting the magnetic field that target terminal generates close to detection module, which includes periodically variable
Field strength;If detecting the magnetic field, and the field strength in the magnetic field is more than predetermined field strength threshold value, then detects target terminal, otherwise, not
Detect target terminal.
Wherein, predetermined field strength threshold value may be set according to actual conditions, and different fields can be arranged in different magnetic field
By force.
In force, in order to simplify the detection process between terminal device and target terminal, and in order to improve scheme
Close detection module in target terminal can be configured to generate the substance in magnetic field, such as electromagnet etc. by exploitativeness.
Can use target terminal in close detection module generate field strength can periodically variable magnetic field, determination and target terminal
The distance between reach second distance threshold value, and when the wireless connection between target terminal has been established, terminal device can open
It is moved close to detection module, and magnetic field whether there is around detection module detection by this.If terminal device detects
Magnetic field, then can obtain the field strength in the magnetic field, and judge whether the field strength in the magnetic field carries out cyclically-varying, if it is, can
To continue to judge whether the field strength in the magnetic field is more than predetermined field strength threshold value, if it is, can determine that terminal device detects mesh
Mark terminal, otherwise, terminal device no target detected terminal.
Mode two, by the periodically variable predetermined light for detecting target terminal transmitting close to detection module;If visited
Above-mentioned periodically variable predetermined light is measured, then detects target terminal, otherwise, no target detected terminal.
Wherein, predetermined light can be arbitrary light, such as infrared ray or arbitrary luminous ray etc..It can close to detection module
To be the light sensor etc. in terminal device.
In force, in order to do not change as far as possible user terminal device hardware configuration, and improve scheme can be real
Close detection module in target terminal can be configured to the substance of transmitting light, such as light emitting diode etc. by Shi Xing.
Can use target terminal close detection module generate field strength can periodically variable magnetic field, determine and target terminal it
Between distance reach second distance threshold value, and when the wireless connection between target terminal has been established, terminal device can start
It whether there is periodically variable light close to detection module, and by this around detection module detection.If terminal
Equipment detects periodically variable light, then can determine that terminal device detects target terminal, otherwise, terminal device is not visited
Measure target terminal.
Concrete processing procedure can be as, as shown in figure 4, can be arranged in target terminal there are one slot, which can be with
Allow the terminal device of user to be inserted into, one or more light emitting diodes (i.e. LED, referring to Fig. 4 is provided on the inner wall of the slot
In 2 dotted circles).Target terminal reaches second distance threshold value at a distance from determination is between terminal device, and has been established
When wireless connection between terminal device, target terminal can open light emitting diode, and pass through light emitting diode transmitting week
The predetermined light of phase property variation.Meanwhile terminal device reaches second distance threshold value at a distance from determination is between target terminal, and
When the wireless connection between target terminal has been established, the light sensor in terminal device can be started, if light level
Device detects periodically variable predetermined light, then can determine that terminal device detects target terminal, and otherwise, terminal device is not
Detect target terminal.
In step S308, if detecting target terminal, and the wireless connection between target terminal has been established, then base
In the above-mentioned wireless connection of foundation, data interaction is carried out with target terminal.
The specific processing of above-mentioned steps S308 may refer to the related content of step S106 in above-described embodiment one, herein not
It repeats again.
In addition, for the abnormal conditions occurred in above-mentioned processing procedure, can by way of following steps S310 into
Row processing, specifically may refer to following the description.
In step S310, when above-mentioned distance is more than the first distance threshold, alternatively, the distance reaches the first distance threshold,
And above-mentioned wireless signal strength be less than predetermined signal strength threshold value when, disconnect and target terminal between wireless connection.
In force, (at this point, terminal device and target after terminal device establishes the wireless connection between target terminal
The distance between terminal is also not up to second distance threshold value), if the distance between target terminal currently obtained is more than the
One distance threshold that is to say terminal device far from target terminal, then can determine the not close target terminal of user, this
When, terminal device can disconnect the wireless connection between target terminal, be set so that the terminal device of user can connect terminal
Standby current close other target terminals.For example, when user is entered in subway station, the gate of user thereto leans on
Closely, at this point, if terminal device determines that distance between the two reaches the first distance threshold, and the wireless communication of target terminal transmitting
Number intensity is more than predetermined signal strength threshold value, then terminal device can be established with target terminal and is wirelessly connected.If at this point, user
The gate in another direction is turned to suddenly, and is gradually distance from current gate, until distance between the two is more than first apart from threshold
Value, terminal device can determine that user abandons entering the station or close to other gates, terminal device can disconnect with target terminal it
Between wireless connection.
In addition, can also include following situations in addition to the foregoing:It is established between target terminal in terminal device
After wireless connection, if the wireless signal strength of the target terminal transmitting currently obtained is less than predetermined signal strength threshold value, namely
It is terminal device far from target terminal, then can determines user there is no close to target terminal, at this point, terminal device can be with
The wireless connection between target terminal is disconnected, so that can to connect terminal device currently close for the terminal device of user
Other target terminals.For example, when user is entered in subway station, the gate of user thereto is close, at this point, if terminal is set
The standby distance determined between the two reaches the first distance threshold, and the wireless signal strength of target terminal transmitting is more than prearranged signals
Intensity threshold (at this point, the distance between terminal device and target terminal are also not up to second distance threshold value), then terminal device can
It is wirelessly connected with being established with current gate.If user wants to enter from another gate, user is moved to separately from current gate
During one gate (the distance between adjacent gate relatively close, about 0.6 meter~1.2 meters), terminal device can disconnect with
Then wireless connection between current gate, then is established with another gate and is wirelessly connected, in this way, normally being gone to for user
The case where adjacent gate, the difference that do not experience.
It should be noted that the above-mentioned distance reaches the first distance threshold, and above-mentioned wireless signal strength is less than predetermined letter
When number intensity threshold, the processing for disconnecting the wireless connection between target terminal can be varied, and one kind presented below is optional
Processing procedure, can specifically include following steps one and step 2.
Step 1, when above-mentioned distance reaches the first distance threshold, with predetermined period, continuous several times obtain target terminal hair
The wireless signal strength penetrated.
Wherein, predetermined period may be set according to actual conditions, such as 3 seconds or 5 seconds specific.
It in force, can be with if terminal device is determined reaches the first distance threshold with the distance between target terminal
The wireless signal strength for obtaining current target terminal transmitting, stores the wireless signal strength, and start timing, predetermined all when reaching
When the phase, terminal device can obtain the wireless signal strength of current target terminal transmitting again, store the wireless signal strength, and
Start timing, when reaching predetermined period, terminal device can obtain the wireless signal strength of current target terminal transmitting again,
Until obtaining and storing the wireless signal strength of specified quantity.
Step 2, when the wireless signal strength that continuous several times detect is less than predetermined signal strength threshold value, disconnection and mesh
Mark the wireless connection between terminal.
By above-mentioned processing procedure, terminal device can reach first apart from threshold at a distance from determination is between target terminal
Value, and target terminal transmitting wireless signal strength be more than predetermined signal strength threshold value when, begin setting up between target terminal
Wireless connection, and during wireless connection between foundation and target terminal, if it is determined that between target terminal
Distance reaches second distance threshold value, and the wireless connection between target terminal has been established at this time, then wirelessly connecting based on foundation
It connects, data interaction is carried out with target terminal.
This specification embodiment provides a kind of data interactive method, by obtaining the distance between target terminal, when this
Distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation, with
Target terminal carries out data interaction, and the wireless connection is begun setting up before the distance of acquisition reaches second distance threshold value,
In this way, can between target terminal at a distance from when being not up to second distance threshold value, begin setting up between target terminal
It is wirelessly connected, while can also continue to judge whether the distance between target terminal reaches second distance threshold value, and in determination
The distance reaches second distance threshold value, while above-mentioned wireless connection is also established when completing, the wireless connection based on foundation, with target
Terminal carries out data interaction, and user can need not rely on camera to carry out data interaction, moreover, carry out data interaction it
Before begin to establish be wirelessly connected, and when determination can carry out data interaction quickly be based on be wirelessly connected carry out data interaction,
To improve data interaction efficiency, user experience is improved.
Embodiment three
As shown in figure 5, this specification embodiment provides a kind of data interactive method, the executive agent of this method can be eventually
End equipment, wherein the terminal device can such as personal computer equipment, can also such as mobile phone, tablet computer mobile terminal
Equipment, the terminal device can be the terminal device that user uses.This method can be used for establishing terminal device and target terminal
Between wireless connection, and when terminal device is close to target terminal, the wireless connection based on foundation carries out data interaction etc.
In reason.This method can be another realization method of above-described embodiment one, can specifically include following steps:
In step S502, obtain target terminal transmitting wireless signal strength, and obtain and target terminal between away from
From.
The step content of above-mentioned steps S502 is identical as the step content of step S102 in above-described embodiment one, above-mentioned steps
The specific processing of S502 may refer to the related content of step S102 in above-described embodiment one, and details are not described herein.
In step S504, when above-mentioned distance reaches the first distance threshold, and above-mentioned wireless signal strength is more than predetermined letter
When number intensity threshold, the wireless connection between target terminal is established.
Wherein, the wireless connection established between target terminal may include opening wireless communication module, wireless by this
The wireless communication module progress communication handshake of wireless communication module and the target terminal searched around communication module search,
It attempts to establish the data transmission channel between the wireless communication module of target terminal, establish the processing procedures such as data transmission channel,
By above-mentioned processing procedure, established wireless connection can be just finally obtained.Begin setting up wirelessly connecting between target terminal
The initial procedure in the processing procedure that can be wireless connection between foundation and target terminal is connect, wireless telecommunications mould is such as opened
Block, and pass through the wireless communication module etc. around wireless communication module search.
After having built up the wireless connection between target terminal, it can execute following step S506's and step S508
Processing.
It is whole by detecting target close to detection module when above-mentioned distance reaches second distance threshold value in step S506
End.
In practical applications, the close testing mechanism used close to detection module can be accomplished in several ways, below
Two kinds of optional processing modes are being provided, then the processing of above-mentioned steps S506 may include the place of following manner one or mode two
Reason.
Mode one, by detecting the magnetic field that target terminal generates close to detection module, which includes periodically variable
Field strength;If detecting the magnetic field, and the field strength in the magnetic field is more than predetermined field strength threshold value, then detects target terminal, otherwise, not
Detect target terminal.
Mode two, by the periodically variable predetermined light for detecting target terminal transmitting close to detection module;If visited
Above-mentioned periodically variable predetermined light is measured, then detects target terminal, otherwise, no target detected terminal.
In step S508, if detecting target terminal, the above-mentioned wireless connection based on foundation, with target terminal into
Row data interaction.
The specific processing of above-mentioned steps S508 may refer to the related content of step S106 in above-described embodiment one, herein not
It repeats again.
In addition, for the abnormal conditions occurred in above-mentioned processing procedure, can by way of following steps S510 into
Row processing, specifically may refer to following the description.
In step S510, when above-mentioned distance is more than the first distance threshold, alternatively, the distance reaches the first distance threshold,
And above-mentioned wireless signal strength be less than predetermined signal strength threshold value when, disconnect and target terminal between wireless connection.
It should be noted that the above-mentioned distance reaches the first distance threshold, and above-mentioned wireless signal strength is less than predetermined letter
When number intensity threshold, the processing for disconnecting the wireless connection between target terminal can be varied, and one kind presented below is optional
Processing procedure, can specifically include following steps one and step 2.
Step 1, when above-mentioned distance reaches the first distance threshold, with predetermined period, continuous several times obtain target terminal hair
The wireless signal strength penetrated.
Step 2, when the wireless signal strength that continuous several times detect is less than predetermined signal strength threshold value, disconnection and mesh
Mark the wireless connection between terminal.
By above-mentioned processing procedure, terminal device can reach first apart from threshold at a distance from determination is between target terminal
Value, and target terminal transmitting wireless signal strength be more than predetermined signal strength threshold value when, begin setting up between target terminal
Wireless connection, and after having built up the wireless connection between target terminal, then the distance between determine target terminal
Whether second distance threshold value is reached, if it is, the wireless connection based on foundation, data interaction is carried out with target terminal.
This specification embodiment provides a kind of data interactive method, by obtaining the distance between target terminal, when this
Distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation, with
Target terminal carries out data interaction, and the wireless connection is begun setting up before the distance of acquisition reaches second distance threshold value,
In this way, can between target terminal at a distance from when being not up to second distance threshold value, begin setting up between target terminal
It is wirelessly connected, while can also continue to judge whether the distance between target terminal reaches second distance threshold value, and in determination
The distance reaches second distance threshold value, while above-mentioned wireless connection is also established when completing, the wireless connection based on foundation, with target
Terminal carries out data interaction, and user can need not rely on camera to carry out data interaction, moreover, carry out data interaction it
Before begin to establish be wirelessly connected, and when determination can carry out data interaction quickly be based on be wirelessly connected carry out data interaction,
To improve data interaction efficiency, user experience is improved.
Example IV
As shown in fig. 6, this specification embodiment provides a kind of data interactive method, the executive agent of this method can be eventually
End equipment, wherein the terminal device can such as personal computer equipment, can also such as mobile phone, tablet computer mobile terminal
Equipment, the terminal device can be the terminal device that user uses.This method can be used for establishing terminal device and target terminal
Between wireless connection, and when terminal device is close to target terminal, the wireless connection based on foundation carries out data interaction etc.
In reason.This method can specifically include following steps:
In step S602, detection target terminal transmitting wireless signal strength, and detect and target terminal between away from
From.
The step content of above-mentioned steps S602 is identical as the step content of step S302 in above-described embodiment one, above-mentioned steps
The specific processing of S602 may refer to the related content of step S302 in above-described embodiment one, and details are not described herein.
In step s 604, at a distance from the wireless signal strength of detection target terminal transmitting and between target terminal
In the process, it when above-mentioned distance reaches the first distance threshold, and above-mentioned wireless signal strength is more than predetermined signal strength threshold value, opens
It establishes the vertical wireless connection between target terminal.
In force, terminal device can detect the wireless signal strength of target terminal transmitting in real time, wherein detection in real time
Can be detected every scheduled duration or period (such as 1 second or 3 seconds), or as the time is continuously detected
Deng.Terminal device can detect the distance between target terminal in real time.During being detected, if detected and mesh
Mark the distance between terminal reaches the first distance threshold, meanwhile, above-mentioned wireless signal strength also greater than predetermined signal strength threshold value,
It can then determine that terminal device can start wireless communication module, begin setting up wireless connection, meanwhile, in detection and target terminal
The distance between during the processing of following step S606 can also be performed.
In step S606, during at a distance from detection is between target terminal, when above-mentioned distance reach second away from
From threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation, with target terminal into line number
According to interaction, the first distance threshold is more than second distance threshold value.
In force, at a distance from detection is between target terminal during, if detected between target terminal
Distance reach second distance threshold value, simultaneously as therefore the first distance threshold has started at this time more than second distance threshold value
The wireless connection established between target terminal can determine if the currently-established wireless connection between target terminal
Terminal device can carry out data interaction based on the wireless connection of foundation with target terminal, in this way, establishing between target terminal
Wireless connection processing with detection the distance between with target terminal, and judge that above-mentioned distance reaches the place of second distance threshold value
Reason can be two parallel processing procedures, to improve the efficiency of data interaction to a certain extent.
This specification embodiment provides a kind of data interactive method, strong by the wireless signal for detecting target terminal transmitting
Degree, and the distance between detect with target terminal, detection target terminal transmitting wireless signal strength and with target terminal it
Between distance during, when the distance reaches the first distance threshold, and above-mentioned wireless signal strength is more than predetermined signal strength
When threshold value, the wireless connection between target terminal is begun setting up, during at a distance from detection is between target terminal, when
The distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation,
Data interaction is carried out with target terminal, the first distance threshold is more than second distance threshold value, in this way, can be between target terminal
Distance when being not up to second distance threshold value, begin setting up the wireless connection between target terminal, while can also continue to sentence
It is disconnected whether to reach second distance threshold value the distance between with target terminal, and determining that the distance reaches second distance threshold value, together
Shi Shangshu, which is wirelessly connected, also to be established when completing, and the wireless connection based on foundation carries out data interaction with target terminal, and user can be with
Camera is needed not rely on to carry out data interaction, is wirelessly connected moreover, beginning to establish before carrying out data interaction, and
Wireless connection progress data interaction is quickly based on when determination can carry out data interaction to carry to improve data interaction efficiency
High user experience.
Embodiment five
As shown in fig. 7, this specification embodiment provides a kind of data interactive method, the executive agent of this method can be eventually
End equipment, wherein the terminal device can such as personal computer equipment, can also such as mobile phone, tablet computer mobile terminal
Equipment, the terminal device can be the terminal device that user uses.This method can be used for establishing terminal device and target terminal
Between wireless connection, and when terminal device is close to target terminal, the wireless connection based on foundation carries out data interaction etc.
In reason.This method can specifically include following steps:
In step S702, detection target terminal transmitting wireless signal strength, and detect and target terminal between away from
From.
The specific processing of above-mentioned steps S702 may refer to the related content of step S602 in above-described embodiment one, herein not
It repeats again.
In step S704, detection target terminal transmitting wireless signal strength and between target terminal at a distance from
In the process, it when above-mentioned distance reaches the first distance threshold, and above-mentioned wireless signal strength is more than predetermined signal strength threshold value, opens
It establishes the vertical wireless connection between target terminal.
Wherein, the wireless connection established between target terminal may include opening wireless communication module, wireless by this
The wireless communication module progress communication handshake of wireless communication module and the target terminal searched around communication module search,
It attempts to establish the data transmission channel between the wireless communication module of target terminal, establish the processing procedures such as data transmission channel,
By above-mentioned processing procedure, established wireless connection can be just finally obtained.Begin setting up wirelessly connecting between target terminal
The initial procedure in the processing procedure that can be wireless connection between foundation and target terminal is connect, wireless telecommunications mould is such as opened
Block, and pass through the wireless communication module etc. around wireless communication module search.
In step S706, during at a distance from detection is between target terminal, when above-mentioned distance reach second away from
From threshold value, by detecting target terminal close to detection module.
In practical applications, the close testing mechanism used close to detection module can be accomplished in several ways, below
Two kinds of optional processing modes are being provided, then the processing of above-mentioned steps S706 may include the place of following manner one or mode two
Reason.
Mode one, by detecting the magnetic field that target terminal generates close to detection module, which includes periodically variable
Field strength;If detecting the magnetic field, and the field strength in the magnetic field is more than predetermined field strength threshold value, then detects target terminal, otherwise, not
Detect target terminal.
Mode two, by the periodically variable predetermined light for detecting target terminal transmitting close to detection module;If visited
Above-mentioned periodically variable predetermined light is measured, then detects target terminal, otherwise, no target detected terminal.
In step S708, if detecting target terminal, and the wireless connection between target terminal has been established, then base
In the above-mentioned wireless connection of foundation, data interaction is carried out with target terminal.
The specific processing of above-mentioned steps S708 may refer to the related content of step S106 in above-described embodiment one, herein not
It repeats again.
In addition, for the abnormal conditions occurred in above-mentioned processing procedure, can by way of following steps S710 into
Row processing, specifically may refer to following the description.
In step S710, when above-mentioned distance is more than the first distance threshold, alternatively, the distance reaches the first distance threshold,
And above-mentioned wireless signal strength be less than predetermined signal strength threshold value when, disconnect and target terminal between wireless connection.
It should be noted that the above-mentioned distance reaches the first distance threshold, and above-mentioned wireless signal strength is less than predetermined letter
When number intensity threshold, the processing for disconnecting the wireless connection between target terminal can be varied, and one kind presented below is optional
Processing procedure, can specifically include following steps one and step 2.
Step 1, when above-mentioned distance reaches the first distance threshold, with predetermined period, continuous several times obtain target terminal hair
The wireless signal strength penetrated.
Step 2, when the wireless signal strength that continuous several times detect is less than predetermined signal strength threshold value, disconnection and mesh
Mark the wireless connection between terminal.
By above-mentioned processing procedure, terminal device can reach first apart from threshold at a distance from determination is between target terminal
Value, and target terminal transmitting wireless signal strength be more than predetermined signal strength threshold value when, begin setting up between target terminal
Wireless connection, and after having built up the wireless connection between target terminal, then the distance between determine target terminal
Whether second distance threshold value is reached, if it is, the wireless connection based on foundation, data interaction is carried out with target terminal.
This specification embodiment provides a kind of data interactive method, strong by the wireless signal for detecting target terminal transmitting
Degree, and the distance between detect with target terminal, detection target terminal transmitting wireless signal strength and with target terminal it
Between distance during, when the distance reaches the first distance threshold, and above-mentioned wireless signal strength is more than predetermined signal strength
When threshold value, the wireless connection between target terminal is begun setting up, during at a distance from detection is between target terminal, when
The distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation,
Data interaction is carried out with target terminal, the first distance threshold is more than second distance threshold value, in this way, can be between target terminal
Distance when being not up to second distance threshold value, begin setting up the wireless connection between target terminal, while can also continue to sentence
It is disconnected whether to reach second distance threshold value the distance between with target terminal, and determining that the distance reaches second distance threshold value, together
Shi Shangshu, which is wirelessly connected, also to be established when completing, and the wireless connection based on foundation carries out data interaction with target terminal, and user can be with
Camera is needed not rely on to carry out data interaction, is wirelessly connected moreover, beginning to establish before carrying out data interaction, and
Wireless connection progress data interaction is quickly based on when determination can carry out data interaction to carry to improve data interaction efficiency
High user experience.
Embodiment six
It is the data interactive method that this specification embodiment provides above, is based on same thinking, this specification embodiment
A kind of data interaction device is also provided, as shown in Figure 8.
The data interaction device includes:Apart from acquisition module 801 and data interaction module 802, wherein:
Apart from acquisition module 801, for obtaining the distance between target terminal;
Data interaction module 802 reaches second distance threshold value for working as the distance, and has been established and the target terminal
Between wireless connection when, the wireless connection based on foundation, with the target terminal carry out data interaction, it is described wirelessly to connect
Connect is begun setting up before the distance reaches second distance threshold value.
In this specification embodiment, described device further includes:
Signal strength acquisition module, the wireless signal strength for obtaining the target terminal transmitting;
Wireless connection establishes module, reaches the first distance threshold for working as the distance, and the wireless signal strength is big
When predetermined signal strength threshold value, the wireless connection between the target terminal is begun setting up, first distance threshold is big
In the second distance threshold value.
In this specification embodiment, the data interaction module 802, including:
Probe unit, for when the distance reaches second distance threshold value, the mesh to be detected by close detection module
Mark terminal;
Data interaction unit, if for detecting the target terminal, and have been established between the target terminal
It is wirelessly connected, then the wireless connection based on foundation, data interaction is carried out with the target terminal.
In this specification embodiment, the probe unit, for by detecting the target terminal production close to detection module
Raw magnetic field, the magnetic field include periodically variable field strength;If detecting the magnetic field, and the field strength in the magnetic field is more than
Predetermined field strength threshold value then detects the target terminal, otherwise, does not detect the target terminal;
Alternatively,
By the periodically variable predetermined light for detecting the target terminal transmitting close to detection module;If detected
The periodically variable predetermined light, then detect the target terminal, otherwise, does not detect the target terminal.
In this specification embodiment, the data interaction module 802, for establishing the bluetooth between the target terminal
Connection;Alternatively, establishing the ultra wide band UWB connections between the target terminal;Alternatively, establishing between the target terminal
Wireless Fidelity Wi-Fi connection;Alternatively, establishing the domestic electromagnetic frequency HomeRF connections between the target terminal.
In this specification embodiment, described device further includes:
It is wirelessly connected and disconnects module, for being more than first distance threshold when the distance, alternatively, the distance reaches
First distance threshold, and the wireless signal strength be less than predetermined signal strength threshold value when, disconnect with the target terminal
Between wireless connection.
In this specification embodiment, the wireless connection disconnects module, including:
Signal strength acquiring unit, for when the distance reaches first distance threshold, with predetermined period, continuously
Repeatedly obtain the wireless signal strength of target terminal transmitting;
Switching units are connected, the wireless signal strength for being detected when continuous several times is less than predetermined signal strength threshold value
When, disconnect the wireless connection between the target terminal.
This specification embodiment provides a kind of data interaction device, by obtaining the distance between target terminal, when this
Distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation, with
Target terminal carries out data interaction, and the wireless connection is begun setting up before the distance of acquisition reaches second distance threshold value,
In this way, can between target terminal at a distance from when being not up to second distance threshold value, begin setting up between target terminal
It is wirelessly connected, while can also continue to judge whether the distance between target terminal reaches second distance threshold value, and in determination
The distance reaches second distance threshold value, while above-mentioned wireless connection is also established when completing, the wireless connection based on foundation, with target
Terminal carries out data interaction, and user can need not rely on camera to carry out data interaction, moreover, carry out data interaction it
Before begin to establish be wirelessly connected, and when determination can carry out data interaction quickly be based on be wirelessly connected carry out data interaction,
To improve data interaction efficiency, user experience is improved.
Embodiment seven
Based on same thinking, this specification embodiment also provides a kind of data interaction device, as shown in Figure 9.
The data interaction device includes:Detection module 901, connection establishment module 902 and data interaction module 903, wherein:
Detection module 901, for detect target terminal transmitting wireless signal strength, and detect with the target terminal it
Between distance;
Connection establishment module 902, for detection target terminal transmitting wireless signal strength and with the target terminal
The distance between during, when the distance reaches the first distance threshold, and the wireless signal strength is more than prearranged signals
When intensity threshold, the wireless connection between the target terminal is begun setting up;
Data interaction module 903, during being used at a distance from detection is between the target terminal, when the distance
When reaching second distance threshold value, and the wireless connection between the target terminal has been established, described based on foundation wirelessly connects
It connects, carries out data interaction with the target terminal, first distance threshold is more than the second distance threshold value.
This specification embodiment provides a kind of data interaction device, strong by the wireless signal for detecting target terminal transmitting
Degree, and the distance between detect with target terminal, detection target terminal transmitting wireless signal strength and with target terminal it
Between distance during, when the distance reaches the first distance threshold, and above-mentioned wireless signal strength is more than predetermined signal strength
When threshold value, the wireless connection between target terminal is begun setting up, during at a distance from detection is between target terminal, when
The distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation,
Data interaction is carried out with target terminal, the first distance threshold is more than second distance threshold value, in this way, can be between target terminal
Distance when being not up to second distance threshold value, begin setting up the wireless connection between target terminal, while can also continue to sentence
It is disconnected whether to reach second distance threshold value the distance between with target terminal, and determining that the distance reaches second distance threshold value, together
Shi Shangshu, which is wirelessly connected, also to be established when completing, and the wireless connection based on foundation carries out data interaction with target terminal, and user can be with
Camera is needed not rely on to carry out data interaction, is wirelessly connected moreover, beginning to establish before carrying out data interaction, and
Wireless connection progress data interaction is quickly based on when determination can carry out data interaction to carry to improve data interaction efficiency
High user experience.
Embodiment eight
It is the data interaction device that this specification embodiment provides above, is based on same thinking, this specification embodiment
A kind of data interaction equipment is also provided, as shown in Figure 10.
The data interaction equipment can be the terminal device that above-described embodiment provides.
Data interaction equipment can generate bigger difference because configuration or performance are different, may include one or one with
On processor 1001 and memory 1002, can be stored in memory 1002 one or more storage application programs or
Data.Wherein, memory 1002 can be of short duration storage or persistent storage.Being stored in the application program of memory 1002 can wrap
One or more modules (diagram is not shown) are included, each module may include to the series of computation in data interactive device
Machine executable instruction.Further, processor 1001 could be provided as communicating with memory 1002, in data interaction equipment
Execute the series of computation machine executable instruction in memory 1002.Data interaction equipment can also include one or more
Power supply 1003, one or more wired or wireless network interfaces 1004, one or more input/output interfaces 1005,
One or more keyboards 1006.
Specifically in the present embodiment, data interaction equipment includes memory and one or more program,
In one either more than one program is stored in memory and one or more than one program may include one or one
With upper module, and each module may include and being configured to the series of computation machine executable instruction in data interactive device
With by one either more than one processor execute this or more than one program include can for carrying out following computer
It executes instruction:
Obtain the distance between target terminal;
When the distance reaches second distance threshold value, and the wireless connection between the target terminal has been established, base
In the wireless connection of foundation, data interaction is carried out with the target terminal, the wireless connection is reached in the distance
It is begun setting up before second distance threshold value.
Optionally, before the distance reaches second distance threshold value, further include:
Obtain the wireless signal strength of the target terminal transmitting;
When the distance reaches the first distance threshold, and the wireless signal strength is more than predetermined signal strength threshold value,
The wireless connection between the target terminal is begun setting up, first distance threshold is more than the second distance threshold value.
Optionally, described when the distance reaches second distance threshold value, and the nothing between the target terminal has been established
When line connects, the wireless connection based on foundation carries out data interaction with the target terminal, including:
When the distance reaches second distance threshold value, by detecting the target terminal close to detection module;
If detecting the target terminal, and the wireless connection between the target terminal has been established, is then based on building
The vertical wireless connection carries out data interaction with the target terminal.
Optionally, described that the target terminal is detected by close detection module, including:
By detecting the magnetic field that the target terminal generates close to detection module, the magnetic field includes periodically variable field
By force;
If detecting the magnetic field, and the field strength in the magnetic field is more than predetermined field strength threshold value, then detects the target
Otherwise terminal does not detect the target terminal;
Alternatively,
By the periodically variable predetermined light for detecting the target terminal transmitting close to detection module;
If detecting the periodically variable predetermined light, the target terminal is detected, otherwise, is not detected
The target terminal.
Optionally, the wireless connection between the foundation and the target terminal, including:
Establish the bluetooth connection between the target terminal;Alternatively,
Establish the ultra wide band UWB connections between the target terminal;Alternatively,
Establish the Wireless Fidelity Wi-Fi connection between the target terminal;Alternatively,
Establish the domestic electromagnetic frequency HomeRF connections between the target terminal.
Optionally, the wireless connection between the target terminal has been established, but the distance is not up to second distance threshold
When value, further include:
When the distance be more than first distance threshold, alternatively, the distance reaches first distance threshold, and institute
When stating wireless signal strength less than predetermined signal strength threshold value, the wireless connection between the target terminal is disconnected.
Optionally, the distance reaches first distance threshold, and the wireless signal strength is strong less than prearranged signals
When spending threshold value, the wireless connection between the target terminal is disconnected, including:
When the distance reaches first distance threshold, with predetermined period, continuous several times obtain target terminal transmitting
Wireless signal strength;
When the wireless signal strength that continuous several times detect is less than predetermined signal strength threshold value, disconnect whole with the target
Wireless connection between end.
Specifically in the present embodiment, data interaction equipment includes memory and one or more program,
In one either more than one program is stored in memory and one or more than one program may include one or one
With upper module, and each module may include and being configured to the series of computation machine executable instruction in data interactive device
With by one either more than one processor execute this or more than one program include can for carrying out following computer
It executes instruction:
The distance between detect the wireless signal strength of target terminal transmitting, and detect the target terminal;
During at a distance from the wireless signal strength of detection target terminal transmitting and between the target terminal, when
The distance reaches the first distance threshold, and when the wireless signal strength is more than predetermined signal strength threshold value, begin setting up with
Wireless connection between the target terminal;
During at a distance from detection is between the target terminal, when the distance reaches second distance threshold value, and
When the wireless connection between the target terminal has been established, the wireless connection based on foundation, with the target terminal into
Row data interaction, first distance threshold are more than the second distance threshold value.
This specification embodiment provides a kind of data interaction equipment, by obtaining the distance between target terminal, when this
Distance reaches second distance threshold value, and when the wireless connection between target terminal has been established, the wireless connection based on foundation, with
Target terminal carries out data interaction, and the wireless connection is begun setting up before the distance of acquisition reaches second distance threshold value,
In this way, can between target terminal at a distance from when being not up to second distance threshold value, begin setting up between target terminal
It is wirelessly connected, while can also continue to judge whether the distance between target terminal reaches second distance threshold value, and in determination
The distance reaches second distance threshold value, while above-mentioned wireless connection is also established when completing, the wireless connection based on foundation, with target
Terminal carries out data interaction, and user can need not rely on camera to carry out data interaction, moreover, carry out data interaction it
Before begin to establish be wirelessly connected, and when determination can carry out data interaction quickly be based on be wirelessly connected carry out data interaction,
To improve data interaction efficiency, user experience is improved.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment
It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can
With or it may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, MicrochipPIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, the embodiment of this specification can be provided as method, system or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or knot can be used in this specification one or more embodiment
The form of embodiment in terms of conjunction software and hardware.Moreover, this specification one or more embodiment can be used at one or more
A wherein includes computer-usable storage medium (including but not limited to magnetic disk storage, the CD- of computer usable program code
ROM, optical memory etc.) on the form of computer program product implemented.
The embodiment of this specification is with reference to the method, equipment (system) and computer journey according to this specification embodiment
The flowchart and/or the block diagram of sequence product describes.It should be understood that flow chart and/or box can be realized by computer program instructions
The combination of the flow and/or box in each flow and/or block and flowchart and/or the block diagram in figure.This can be provided
A little computer program instructions are to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
Processor to generate a machine so that pass through the finger that computer or the processor of other programmable data processing devices execute
It enables and generates to specify in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device of function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can be provided as method, system or computer program production
Product.Therefore, this specification one or more embodiment can be used complete hardware embodiment, complete software embodiment or combine software
With the form of the embodiment of hardware aspect.Moreover, this specification one or more embodiment can be used it is one or more wherein
The computer-usable storage medium for including computer usable program code (includes but not limited to magnetic disk storage, CD-ROM, light
Learn memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on
Described in hereafter, such as program module.Usually, program module includes executing particular task or realization particular abstract data type
Routine, program, object, component, data structure etc..Can also put into practice in a distributed computing environment this specification one or
Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network
Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage device is deposited
In storage media.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology
For personnel, this specification can have various modifications and variations.It is all this specification spirit and principle within made by it is any
Modification, equivalent replacement, improvement etc., should be included within the right of this specification.