CN104407343A - Method and system for distance measurement by bluetooth - Google Patents
Method and system for distance measurement by bluetooth Download PDFInfo
- Publication number
- CN104407343A CN104407343A CN201410718126.2A CN201410718126A CN104407343A CN 104407343 A CN104407343 A CN 104407343A CN 201410718126 A CN201410718126 A CN 201410718126A CN 104407343 A CN104407343 A CN 104407343A
- Authority
- CN
- China
- Prior art keywords
- bluetooth equipment
- time
- signal strength
- distance
- strength values
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S11/00—Systems for determining distance or velocity not using reflection or reradiation
- G01S11/02—Systems for determining distance or velocity not using reflection or reradiation using radio waves
- G01S11/06—Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
Abstract
The invention relates to the field of bluetooth communication, particularly to a method and system for distance measurement by bluetooth. Signal strength values of a bluetooth device B are collected through a bluetooth device A, a distance is obtained according to the signal strength values and a model of the distance between the bluetooth device A and the bluetooth device B, and the sum of the obtained distance and the step length is the actual distance, so that the distance measurement between the bluetooth devices is realized. According to the technical scheme, the Bluetooth device A is used for sampling the signal strength values of the bluetooth device B within a preset time, and the greatest signal strength value in the sampled signal strength values is selected as the optimal signal strength value. Because environmental interference is unpredictable, the interference can be stronger within one period, and no interference exists within one period basically, so that the signal fluctuation caused by the environmental interference can be eliminated; by adopting the technical scheme, the fluctuation of the signal values caused by various interference is corrected through the step length, so that the distance measurement is more accurate.
Description
Technical field
The present invention relates to bluetooth communication field, particularly relate to the method and system of a kind of bluetooth range finding.
Background technology
Ultrasonic ranging is had, laser ranging or GPS etc. in existing ranging technology.Usually these distance measuring methods all need relatively harsh environmental requirement, and the directive property of ultrasound wave and laser ranging is very strong, and all needs special equipment to realize, and and testee between other object any can not be had to intercept, GPS can only in outdoor utility.
In present indoor ranging scheme, wifi range finding is wherein a kind of.But although wifi can realize indoor range finding, it is easily interfered or goes here and there frequently.Signal stabilization is bad, and the sample rate of signal is also very slow, again cannot self-powered, and data security also has problems.
The shortcoming of existing indoor ranging technology has:
1, ultrasound wave and laser ranging need special equipment to realize, and implement quite loaded down with trivial details, and signal directive property is too strong, can only find range for a direction.
2, wifi distance measuring signal stability is bad, and cannot deployment be caused to have some limitations by self-powered.
Summary of the invention
Technical matters to be solved by this invention is: provide the method and system that a kind of bluetooth is found range, and realizes the distance accurately measured between bluetooth equipment.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is:
A method for bluetooth range finding, comprises first time range finding and second time range finding;
Described first time range finding comprises:
S101, bluetooth equipment A search for the bluetooth equipment B in preset range, and described bluetooth equipment A carries out sampling and tracer signal intensity level to the signal strength values of described bluetooth equipment B in preset duration;
S102, from the signal strength values of all records of step S101, select a maximum signal strength values be best signal strength values, described signal strength values is substituted in the middle of distance and the model of signal strength values, try to achieve distance, described distance with the model of signal strength values is:
A in described model is bluetooth equipment A and bluetooth equipment B distance when being 1 meter, and bluetooth equipment A receives the signal strength values of bluetooth equipment B, and n is the signal attenuation factor, and d is the distance between bluetooth equipment A and bluetooth equipment B, and RSSI is signal strength values;
S103, first time best signal strength values can be obtained by step S101 and S102, calculate first time distance according to the model in step S102;
S104, step S103 gained first time distance added first time step-length obtains first time actual range between bluetooth equipment A and bluetooth equipment B; Described first time, step-length was 0;
Described second time range finding comprises:
S105, repetition step S101 and S102 can obtain the best signal strength values of second time, calculate second time distance according to the model in step S102;
S106, the first time actual range that step S105 gained second time distance deducts step S104 gained is obtained difference, by the difference of gained divided by 3 second time step-length;
S107, the first time actual range of step S104 gained added the second time step-length of step S106 gained obtains second time actual range between bluetooth equipment A and bluetooth equipment B, described second time actual range is the actual range between bluetooth equipment A and bluetooth equipment B.
Another technical scheme that the present invention adopts is:
A system for bluetooth range finding, comprise search module, sampling module, choose module, the first computing module, the second computing module, the 3rd computing module, the 4th computing module, the 5th computing module and the 6th computing module;
Described search module, searches for the bluetooth equipment B in preset range for bluetooth equipment A;
Described sampling module, carries out sampling and tracer signal intensity level to the signal strength values of described bluetooth equipment B for described bluetooth equipment A in preset duration;
Describedly choosing module, is best signal strength values for selecting a maximum signal strength values in the signal strength values from all records of sampling module;
Described first computing module, for being substituted in the middle of distance and the model of signal strength values by the signal strength values of described the best, tries to achieve distance;
Described second computing module, for by sampling module with choose module and can obtain first time best signal strength values, calculates first time distance according to the first computing module;
By the second computing module gained first time distance, described 3rd computing module, for adding that step-length obtains the first time actual range between bluetooth equipment A and bluetooth equipment B for the first time; Described first time, step-length was 0;
Described 4th computing module, for repeated sampling module with choose module and can obtain the best signal strength values of second time, calculates second time distance according to the first computing module;
Described 5th computing module, obtains difference for the first time actual range the 4th computing module gained second time distance being deducted the 3rd computing module gained, the difference of gained is obtained second time step-length divided by 3;
Described 6th computing module, for the first time actual range of the 3rd computing module gained being added the second time step-length of the 5th computing module gained obtains second time actual range between bluetooth equipment A and bluetooth equipment B, described second time actual range is the actual range between bluetooth equipment A and bluetooth equipment B.
Beneficial effect of the present invention is: the signal strength values being gathered bluetooth equipment B by bluetooth equipment A, and according to the model of signal strength values and the distance between bluetooth equipment A and bluetooth equipment B, try to achieve distance, gained distance is added that step-length obtains actual range, thus realizes the range finding between bluetooth equipment; Technical solution of the present invention adopts bluetooth equipment A to sample to the signal strength values of described bluetooth equipment B in preset duration and to choose in the signal strength values of all samplings a maximum signal strength values is best signal strength values, this is because the interference of environment is uncertain, may be very strong in the interference of certain a period of time, and certain a period of time is not disturbed substantially, the signal fluctuation that environmental interference causes can be rejected like this; Technical solution of the present invention is used for by step-length correcting the signal value fluctuation caused due to various interference, realizes range finding more accurate.
Accompanying drawing explanation
Fig. 1 is the block diagram of the method for the bluetooth range finding of the specific embodiment of the invention;
Fig. 2 is the structural representation of the system of the bluetooth range finding of the specific embodiment of the invention;
Fig. 3 is the mobile phone of the specific embodiment of the invention and POS distance curve synoptic diagram when being fixed as 1M between each parameter;
Fig. 4 is the mobile phone of the specific embodiment of the invention and POS distance curve synoptic diagram when increasing progressively between each parameter;
Label declaration:
10, search module; 11, sampling module; 12, module is chosen; 13, the first computing module; 14, the second computing module; 15, the 3rd computing module; 16, the 4th computing module; 17, the 5th computing module; 18, the 6th computing module.
Embodiment
By describing technology contents of the present invention in detail, realized object and effect, accompanying drawing is coordinated to be explained below in conjunction with embodiment.
The design of most critical of the present invention is: the signal strength values being gathered bluetooth equipment B by bluetooth equipment A, and according to the model of signal strength values and the distance between bluetooth equipment A and bluetooth equipment B, try to achieve distance, gained distance is added that step-length obtains actual range, thus realizes the range finding between bluetooth equipment.
Please refer to Fig. 1, the block diagram of the method that the bluetooth for the specific embodiment of the invention is found range, specific as follows:
A method for bluetooth range finding, comprises first time range finding and second time range finding;
Described first time range finding comprises:
S101, bluetooth equipment A search for the bluetooth equipment B in preset range, and described bluetooth equipment A carries out sampling and tracer signal intensity level to the signal strength values of described bluetooth equipment B in preset duration;
S102, from the signal strength values of all records of step S101, select a maximum signal strength values be best signal strength values, described signal strength values is substituted in the middle of distance and the model of signal strength values, try to achieve distance, described distance with the model of signal strength values is:
A in described model is bluetooth equipment A and bluetooth equipment B distance when being 1 meter, and bluetooth equipment A receives the signal strength values of bluetooth equipment B, and n is the signal attenuation factor, and d is the distance between bluetooth equipment A and bluetooth equipment B, and RSSI is signal strength values;
S103, first time best signal strength values can be obtained by step S101 and S102, calculate first time distance according to the model in step S102;
S104, step S103 gained first time distance added first time step-length obtains first time actual range between bluetooth equipment A and bluetooth equipment B; Described first time, step-length was 0;
Described second time range finding comprises:
S105, repetition step S101 and S102 can obtain the best signal strength values of second time, calculate second time distance according to the model in step S102;
S106, the first time actual range that step S105 gained second time distance deducts step S104 gained is obtained difference, by the difference of gained divided by 3 second time step-length;
S107, the first time actual range of step S104 gained added the second time step-length of step S106 gained obtains second time actual range between bluetooth equipment A and bluetooth equipment B, described second time actual range is the actual range between bluetooth equipment A and bluetooth equipment B.
From foregoing description, beneficial effect of the present invention is: the signal strength values being gathered bluetooth equipment B by bluetooth equipment A, and according to the model of signal strength values and the distance between bluetooth equipment A and bluetooth equipment B, try to achieve distance, gained distance is added that step-length obtains actual range, thus realizes the range finding between bluetooth equipment; Technical solution of the present invention adopts bluetooth equipment A to sample to the signal strength values of described bluetooth equipment B in preset duration and to choose in the signal strength values of all samplings a maximum signal strength values is best signal strength values, this is because the interference of environment is uncertain, may be very strong in the interference of certain a period of time, and certain a period of time is not disturbed substantially, the signal fluctuation that environmental interference causes can be rejected like this; Technical solution of the present invention is used for by step-length correcting the signal value fluctuation caused due to various interference, realizes range finding more accurate.
Further, the preset duration of described step S101 is 1 second.
Seen from the above description, preset duration is the time of sampling, the time of described sampling is 1 second is because the lazy weight of the time too short signal value likely got, cause error larger, time oversizely can affect the ageing of range finding again in addition, through test of many times, preset duration is 1 second, the most rationally.
Further, the distance of described step S102 and Model Parameter A and the n of signal strength values obtain in the following manner:
The mode that obtains of parameter A is:
Bluetooth equipment A is placed in 1 meter of of distance bluetooth equipment B, described bluetooth equipment A carries out sampling and tracer signal intensity level to the signal strength values of bluetooth equipment B in preset duration, and from the signal strength values of all records, select a maximum signal strength values is parameter A;
The mode that obtains of parameter n is:
1) bluetooth equipment A is placed in distance bluetooth equipment B and is respectively 1 meter, 2 meters, 3 meters, 4 meters, 5 meters, 6 meters, 7 meters, 8 meters;
2) the signal value RSSI that step S101 to step S102 tries to achieve corresponding different distance position is repeated;
3) 8 different distance corresponding in 8 the signal value RSSI obtained according to step 2 and step 1, by least square method, obtain A and n.
Further, described step S101 specifically comprises: bluetooth equipment A searches for plural bluetooth equipment B, described bluetooth equipment A in preset range and carry out sampling and tracer signal intensity level to the signal strength values of plural bluetooth equipment B in preset duration.
Seen from the above description, bluetooth equipment A can sample to the signal strength values of plural bluetooth equipment B simultaneously, improves sampling efficiency.Described bluetooth equipment A is the bluetooth equipment had on the mobile terminal of blue tooth communication function, and such as mobile terminal is mobile phone, and described bluetooth equipment B is POS; When there being multiple POS in trade company, multiple cashiers in such as supermarket, can be found range to multiple POS by mobile phone simultaneously, and judge from which POS nearest, thus choose nearest cashier and pay.
Further, described bluetooth equipment A is the bluetooth equipment had on the mobile terminal of blue tooth communication function; Described bluetooth equipment B is the bluetooth equipment had in the POS terminal of blue tooth communication function; Described mobile terminal is mobile phone;
Described step S105 also comprises: when the distance between current Bluetooth device A and bluetooth equipment B is within the scope of pre-set threshold value, and the bluetooth equipment of described mobile terminal, to the bluetooth equipment transmission connection request of described POS terminal, carries out transaction flow after having connected.
Seen from the above description, described POS terminal is placed on trade company, the trade company of POS terminal can be searched by carrying the client had on the mobile terminal of blue tooth communication function, found range by bluetooth, when client enters within the scope of pre-set threshold value, connected by bluetooth and conclude the business, realize the convenience of transaction with quick.
Refer to Fig. 2, the structural representation of the system that the bluetooth for the specific embodiment of the invention is found range, specific as follows:
A system for bluetooth range finding, comprises search module 10, sampling module 11, chooses module 12, first computing module 13, second computing module 14, the 3rd computing module 15, the 4th computing module 16, the 5th computing module 17 and the 6th computing module 18;
Described search module 10, searches for the bluetooth equipment B in preset range for bluetooth equipment A;
Described sampling module 11, carries out sampling and tracer signal intensity level to the signal strength values of described bluetooth equipment B for described bluetooth equipment A in preset duration;
Describedly choosing module 12, is best signal strength values for selecting a maximum signal strength values in the signal strength values from all records of sampling module 11;
Described first computing module 13, for being substituted in the middle of distance and the model of signal strength values by the signal strength values of described the best, tries to achieve distance;
Described second computing module 14, for by sampling module 11 with choose module 12 and can obtain first time best signal strength values, calculates first time distance according to the first computing module 13;
By the second computing module 14 gained first time distance, described 3rd computing module 15, for adding that step-length obtains the first time actual range between bluetooth equipment A and bluetooth equipment B for the first time; Described first time, step-length was 0;
Described 4th computing module 16, for repeated sampling module 11 with choose module 12 and can obtain the best signal strength values of second time, calculates second time distance according to the first computing module 13;
Described 5th computing module 17, obtains difference for the first time actual range the 4th computing module 16 gained second time distance being deducted the 3rd computing module 15 gained, the difference of gained is obtained second time step-length divided by 3;
Described 6th computing module 18, for the first time actual range of the 3rd computing module 15 gained being added the second time step-length of the 5th computing module 17 gained obtains second time actual range between bluetooth equipment A and bluetooth equipment B, described second time actual range is the actual range between bluetooth equipment A and bluetooth equipment B.
From foregoing description, beneficial effect of the present invention is: the signal strength values being gathered bluetooth equipment B by bluetooth equipment A, and according to the model of signal strength values and the distance between bluetooth equipment A and bluetooth equipment B, try to achieve distance, gained distance is added that step-length obtains actual range, thus realizes the range finding between bluetooth equipment; Technical solution of the present invention adopts bluetooth equipment A to sample to the signal strength values of described bluetooth equipment B in preset duration and to choose in the signal strength values of all samplings a maximum signal strength values is best signal strength values, this is because the interference of environment is uncertain, may be very strong in the interference of certain a period of time, and certain a period of time is not disturbed substantially, the signal fluctuation that environmental interference causes can be rejected like this; Technical solution of the present invention is used for by step-length correcting the signal value fluctuation caused due to various interference, realizes range finding more accurate.
Further, described sampling module 11 comprises setting unit, is 1 second for arranging described preset duration.
Seen from the above description, preset duration is the time of sampling, the time of described sampling is 1 second is because the lazy weight of the time too short signal value likely got, cause error larger, time oversizely can affect the ageing of range finding again in addition, through test of many times, preset duration is 1 second, the most rationally.
Further, described bluetooth equipment A is the bluetooth equipment had on the mobile terminal of blue tooth communication function; Described bluetooth equipment B is the bluetooth equipment had in the POS terminal of blue tooth communication function; Described mobile terminal is mobile phone;
This system also comprises judge module, link block and transaction modules;
Described judge module, for judging distance between described current Bluetooth device A and bluetooth equipment B whether within the scope of pre-set threshold value;
Described link block, during for the distance between current Bluetooth device A and bluetooth equipment B within the scope of pre-set threshold value, the bluetooth equipment of described mobile terminal sends connection request to the bluetooth equipment of described POS terminal;
Described transaction modules, carries out transaction flow after having connected.
Seen from the above description, described POS terminal is placed on trade company, the trade company of POS terminal can be searched by carrying the bluetooth equipment had on the mobile terminal of blue tooth communication function, found range by bluetooth, when client enters within the scope of pre-set threshold value, connected by bluetooth and conclude the business, realize the convenience of transaction with quick.
Embodiments of the invention one are:
The bluetooth equipment of mobile terminal is as bluetooth equipment A, and the bluetooth equipment of financial POS terminal is as bluetooth equipment B.Described bluetooth equipment A is bluetooth main side, described bluetooth equipment B be bluetooth from end, job step is as follows:
Step 1) bluetooth main side initiate scanning bluetooth from end, and constantly record the signal strength values of each bluetooth from end real-time change respectively, in order to obtain bluetooth main side and bluetooth from more high-precision distance between holding, get a period of time in (as one second) that each is from the maximum signal strength values the signal strength values of end record to calculate distance, remaining signal strength values is abandoned new record of laying equal stress on;
Step 2) the maximum signal strength values that step 1 obtained substitutes into following formula, extrapolates each bluetooth from the distance value between end with bluetooth main side;
Wherein d is bluetooth from the distance value between end with bluetooth main side, and unit is rice, and A is the signal strength values that bluetooth records when end is 1 meter with bluetooth main side distance, and n is the signal attenuation factor, and it is current signal strength value that scope is generally 2 ~ 4, RSSI.In order to the equipment that adaptation is different, to reach more high precision, for the actual value of A and n, software provides an interface revise according to actual conditions.Parameter A be calibrated to when bluetooth main side and bluetooth from hold be apart 1 meter time, constantly survey now bluetooth and, from the signal strength values of end, get maximum signal strength values.The calibration of parameter n can be tested according to varying environment, the environment that numerical value less expression signal attenuation is less, otherwise then represents signal attenuation environment faster.
Step 3) in order to eliminate the fluctuation of the signal strength values caused due to various interference etc. to greatest extent, need to do further process: suppose that certain bluetooth gone out according to formula to calculating is D1 from end distance value, this bluetooth of last record is D2 from end distance value; Calculate step-length S=(D1-D2)/3 according to two distance values, then this slave end distance value is D3=D2+S.
As shown in Figure 3 to Figure 4, Fig. 3 is mobile phone and POS distance curve synoptic diagram when being fixed as 1M between each parameter, Fig. 4 is mobile phone and POS distance curve synoptic diagram when increasing progressively between each parameter, curve 1 is theoretical, curve 2 for parameter value be 2, curve 3 for parameter value be 3, curve 4 for parameter value be 4, curve 5 for parameter value be 10, curve 6 is actual range;
From Fig. 3 and Fig. 4:
When 1, not calculating step value, the distance value drawn and actual actual distance have relatively large deviation;
2, when distance is fixing, this value is larger, and measured distance is more stable more realistic;
3, when distance constantly changes, the delay that the larger distance of this value upgrades is larger, more cannot find range accurately.Synthesizing map 3 and Fig. 4 can obtain, and when stepsize formula parameter value is 3, error amount is less, and therefore parameter value is 3.If when only considering the fixing situation of mobile phone and POS, parameter value is 10 better, but in consideration actual application, POS is fixed position, and mobile phone is then change location, if parameter value is larger, this step value obtained is less, inapplicable in real life; This value is larger more inaccurate during more accurate still distance change when distance is fixing, but this value is less more inaccurate more little more accurate late apart from varying time delay when distance is fixing.Consider that the spacing of mobile phone and POS is comparatively fixing or apart from changing slowly, therefore parameter value is 3.
Described step-length is strengthen on the occasion of representing the distance between bluetooth equipment A and bluetooth equipment B, and described step-length is that the distance that negative value represents between bluetooth equipment A and bluetooth equipment B shortens.
Step-length is calculated according to this theoretical calculated of final Distance geometry that the last time calculates.When being fixed as 1M for mobile phone and POS distance, because there is no last range data when finding range first, so step-length is 0, add that step-length is come as final distance by theoretical value.Final distance during second time range finding is 1+ (1.2-1)/3=1.06m.Final distance during third time range finding is 1.06+ (0.69-1.06)/3=0.937m.Cycle calculations like this is gone down.The benefit of which is that user mobile phone and POS can obtain a distance value more accurately apart from when comparatively fixing, harm is that mobile phone and POS have certain delay apart from the renewal of distance when changing very fast, but because the spacing of mobile phone and POS is fixing in most cases or changes unhappy, so be worth adopting the method.This is the way of sacrificing certain ageing trade accuracy.
Step 4) when within bluetooth main side and bluetooth arrive pre-set threshold value from the distance value between holding time (within 0.3m), initiatively connect bluetooth from end by bluetooth main side, after connection, exchange transaction data each other, and initiate to pay action, complete payment.
In sum, the method and system of a kind of bluetooth range finding provided by the invention, the signal strength values of bluetooth equipment B is gathered by bluetooth equipment A, and according to the model of signal strength values and the distance between bluetooth equipment A and bluetooth equipment B, try to achieve distance, gained distance is added that step-length obtains actual range, thus realizes the range finding between bluetooth equipment; Technical solution of the present invention adopts bluetooth equipment A to sample to the signal strength values of described bluetooth equipment B in preset duration and to choose in the signal strength values of all samplings a maximum signal strength values is best signal strength values, this is because the interference of environment is uncertain, may be very strong in the interference of certain a period of time, and certain a period of time is not disturbed substantially, the signal fluctuation that environmental interference causes can be rejected like this; Technical solution of the present invention is used for by step-length correcting the signal value fluctuation caused due to various interference, realizes range finding more accurate.Preset duration is the time of sampling, and the time of described sampling is 1 second is because the lazy weight of the time too short signal value likely got, and causes error larger, time oversizely can affect the ageing of range finding again in addition, through test of many times, preset duration is 1 second, the most rationally.Bluetooth equipment A can sample to the signal strength values of plural bluetooth equipment B simultaneously, improves sampling efficiency.Described bluetooth equipment A is the bluetooth equipment had on the mobile terminal of blue tooth communication function, and such as mobile terminal is mobile phone, and described bluetooth equipment B is POS; When there being multiple POS in trade company, multiple cashiers in such as supermarket, can be found range to multiple POS by mobile phone simultaneously, and judge from which POS nearest, thus choose nearest cashier and pay.Described POS terminal is placed on trade company, the trade company of POS terminal can be searched by carrying the bluetooth equipment had on the mobile terminal of blue tooth communication function, being found range by bluetooth, when client enters within the scope of pre-set threshold value, connected by bluetooth and conclude the business, realize the convenience of transaction with quick.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalents utilizing instructions of the present invention and accompanying drawing content to do, or be directly or indirectly used in relevant technical field, be all in like manner included in scope of patent protection of the present invention.
Claims (8)
1. a method for bluetooth range finding, is characterized in that, comprises first time range finding and second time range finding;
Described first time range finding comprises:
S101, bluetooth equipment A search for the bluetooth equipment B in preset range, and described bluetooth equipment A carries out sampling and tracer signal intensity level to the signal strength values of described bluetooth equipment B in preset duration;
S102, from the signal strength values of all records of step S101, select a maximum signal strength values be best signal strength values, described signal strength values is substituted in the middle of distance and the model of signal strength values, try to achieve distance, described distance with the model of signal strength values is:
A in described model is bluetooth equipment A and bluetooth equipment B distance when being 1 meter, and bluetooth equipment A receives the signal strength values of bluetooth equipment B, and n is the signal attenuation factor, and d is the distance between bluetooth equipment A and bluetooth equipment B, and RSSI is signal strength values;
S103, first time best signal strength values can be obtained by step S101 and S102, calculate first time distance according to the model in step S102;
S104, step S103 gained first time distance added first time step-length obtains first time actual range between bluetooth equipment A and bluetooth equipment B; Described first time, step-length was 0;
Described second time range finding comprises:
S105, repetition step S101 and S102 can obtain the best signal strength values of second time, calculate second time distance according to the model in step S102;
S106, the first time actual range that step S105 gained second time distance deducts step S104 gained is obtained difference, by the difference of gained divided by 3 second time step-length;
S107, the first time actual range of step S104 gained added the second time step-length of step S106 gained obtains second time actual range between bluetooth equipment A and bluetooth equipment B, described second time actual range is the actual range between bluetooth equipment A and bluetooth equipment B.
2. the method for bluetooth range finding according to claim 1, it is characterized in that, the preset duration of described step S101 is 1 second.
3. the method for bluetooth range finding according to claim 1, it is characterized in that, the distance of described step S102 and Model Parameter A and the n of signal strength values obtain in the following manner:
The mode that obtains of parameter A is:
Bluetooth equipment A is placed in 1 meter of of distance bluetooth equipment B, described bluetooth equipment A carries out sampling and tracer signal intensity level to the signal strength values of bluetooth equipment B in preset duration, and from the signal strength values of all records, select a maximum signal strength values is parameter A;
The mode that obtains of parameter n is:
1) bluetooth equipment A is placed in distance bluetooth equipment B and is respectively 1 meter, 2 meters, 3 meters, 4 meters, 5 meters, 6 meters, 7 meters, 8 meters;
2) the signal value RSSI that step S101 to step S102 tries to achieve corresponding different distance position is repeated;
3) 8 different distance corresponding in 8 the signal value RSSI obtained according to step 2 and step 1, by least square method, obtain n.
4. the method for bluetooth range finding according to claim 1, it is characterized in that, described step S101 specifically comprises: bluetooth equipment A searches for plural bluetooth equipment B, described bluetooth equipment A in preset range and carry out sampling and tracer signal intensity level to the signal strength values of plural bluetooth equipment B in preset duration.
5. the method for bluetooth range finding according to claim 1, it is characterized in that, described bluetooth equipment A is the bluetooth equipment had in the POS terminal of blue tooth communication function; Described bluetooth equipment B is the bluetooth equipment had on the mobile terminal of blue tooth communication function; Described mobile terminal is mobile phone;
Described step S105 also comprises: when the distance between current Bluetooth device A and bluetooth equipment B is within the scope of pre-set threshold value, and the bluetooth equipment of described POS terminal, to the bluetooth equipment transmission connection request of described mobile terminal, carries out transaction flow after having connected.
6. a system for bluetooth range finding, it is characterized in that, comprise search module, sampling module, choose module, the first computing module, the second computing module, the 3rd computing module, the 4th computing module, the 5th computing module and the 6th computing module;
Described search module, searches for the bluetooth equipment B in preset range for bluetooth equipment A;
Described sampling module, carries out sampling and tracer signal intensity level to the signal strength values of described bluetooth equipment B for described bluetooth equipment A in preset duration;
Describedly choosing module, is best signal strength values for selecting a maximum signal strength values in the signal strength values from all records of sampling module;
Described first computing module, for being substituted in the middle of distance and the model of signal strength values by the signal strength values of described the best, tries to achieve distance;
Described second computing module, for by sampling module with choose module and can obtain first time best signal strength values, calculates first time distance according to the first computing module;
By the second computing module gained first time distance, described 3rd computing module, for adding that step-length obtains the first time actual range between bluetooth equipment A and bluetooth equipment B for the first time; Described first time, step-length was 0;
Described 4th computing module, for repeated sampling module with choose module and can obtain the best signal strength values of second time, calculates second time distance according to the first computing module;
Described 5th computing module, obtains difference for the first time actual range the 4th computing module gained second time distance being deducted the 3rd computing module gained, the difference of gained is obtained second time step-length divided by 3;
Described 6th computing module, for the first time actual range of the 3rd computing module gained being added the second time step-length of the 5th computing module gained obtains second time actual range between bluetooth equipment A and bluetooth equipment B, described second time actual range is the actual range between bluetooth equipment A and bluetooth equipment B.
7. the system of bluetooth range finding according to claim 6, it is characterized in that, described sampling module comprises setting unit, is 1 second for arranging described preset duration.
8. the system of bluetooth range finding according to claim 6, it is characterized in that, described bluetooth equipment A is the bluetooth equipment had on the mobile terminal of blue tooth communication function; Described bluetooth equipment B is the bluetooth equipment had in the POS terminal of blue tooth communication function; Described mobile terminal is mobile phone;
This system also comprises judge module, link block and transaction modules;
Described judge module, for judging distance between described current Bluetooth device A and bluetooth equipment B whether within the scope of pre-set threshold value;
Described link block, during for the distance between current Bluetooth device A and bluetooth equipment B within the scope of pre-set threshold value, the bluetooth equipment of described POS terminal sends connection request to the bluetooth equipment of described mobile terminal;
Described transaction modules, carries out transaction flow after having connected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410718126.2A CN104407343B (en) | 2014-12-01 | 2014-12-01 | A kind of method and system of bluetooth range finding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410718126.2A CN104407343B (en) | 2014-12-01 | 2014-12-01 | A kind of method and system of bluetooth range finding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104407343A true CN104407343A (en) | 2015-03-11 |
CN104407343B CN104407343B (en) | 2017-03-08 |
Family
ID=52644988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410718126.2A Active CN104407343B (en) | 2014-12-01 | 2014-12-01 | A kind of method and system of bluetooth range finding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104407343B (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104918109A (en) * | 2015-06-08 | 2015-09-16 | 小米科技有限责任公司 | Intelligent playing method and device |
CN105425229A (en) * | 2015-11-02 | 2016-03-23 | 上海中船船舶设计技术国家工程研究中心有限公司 | Anti-collision monitoring device for lighter aboard ship |
CN105911540A (en) * | 2016-06-01 | 2016-08-31 | 北京京东方多媒体科技有限公司 | Wireless positioning system and exercise training system |
CN106331451A (en) * | 2016-08-23 | 2017-01-11 | 安徽联合安全科技有限公司 | VIN (Vehicle Identification Number) code encryption and rubbing device based on double positioning of Bluetooth and ultrasound waves |
CN107422298A (en) * | 2017-09-19 | 2017-12-01 | 深圳市深层互联科技有限公司 | Bluetooth ranging parameters optimization method, system, storage medium and mobile terminal |
CN107509175A (en) * | 2017-09-19 | 2017-12-22 | 深圳市深层互联科技有限公司 | Bluetooth indoor orientation method, system, storage medium and terminal |
CN107911792A (en) * | 2017-11-24 | 2018-04-13 | 深圳市舜宝科技有限公司 | A kind of anti-lost method and device of electronic cigarette equipment |
CN108133521A (en) * | 2016-12-01 | 2018-06-08 | Xid系统公司 | Simple university for the aged turns out for work device |
CN108169735A (en) * | 2017-02-24 | 2018-06-15 | 杭州米越科技有限公司 | A kind of range-measurement system of correlation |
CN109215415A (en) * | 2018-10-22 | 2019-01-15 | 天津天创数字科技有限公司 | The exchange method of showpiece explanation content based on bluetooth positioning |
CN109752708A (en) * | 2019-02-28 | 2019-05-14 | 杭州羿腾科技有限公司 | It is a kind of that method and system are lost based on seeking for low-power consumption bluetooth signal ranging |
CN110231595A (en) * | 2019-05-28 | 2019-09-13 | 武汉盛硕电子有限公司 | A kind of method of bluetooth ranging, the test method of bluetooth equipment and system |
CN110611876A (en) * | 2018-06-15 | 2019-12-24 | 深圳市微能信息科技有限公司 | Indoor asset management method, device and system |
CN111060901A (en) * | 2019-11-05 | 2020-04-24 | 安徽工程大学 | AGV (automatic guided vehicle) distance measuring system based on low-power consumption |
CN112153211A (en) * | 2019-06-28 | 2020-12-29 | 北京智明星通科技股份有限公司 | Game APP downloading method and system |
CN113466841A (en) * | 2021-07-16 | 2021-10-01 | Oppo广东移动通信有限公司 | Distance measuring method, distance measuring device, electronic device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140134948A1 (en) * | 2012-11-12 | 2014-05-15 | Tata Consultancy Services Limited | Method and System for Accurate Straight Line Distance Estimation Between Two Communication Devices |
CN104022802A (en) * | 2014-06-24 | 2014-09-03 | 北京网秦天下科技有限公司 | Mobile terminal and method for positioning other mobile terminal on mobile terminal |
CN104053230A (en) * | 2014-06-04 | 2014-09-17 | 浙江大学 | Distance measurement method based on Bluetooth protocol |
-
2014
- 2014-12-01 CN CN201410718126.2A patent/CN104407343B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140134948A1 (en) * | 2012-11-12 | 2014-05-15 | Tata Consultancy Services Limited | Method and System for Accurate Straight Line Distance Estimation Between Two Communication Devices |
CN104053230A (en) * | 2014-06-04 | 2014-09-17 | 浙江大学 | Distance measurement method based on Bluetooth protocol |
CN104022802A (en) * | 2014-06-24 | 2014-09-03 | 北京网秦天下科技有限公司 | Mobile terminal and method for positioning other mobile terminal on mobile terminal |
Non-Patent Citations (1)
Title |
---|
唐小明等: "基于接收信号强度指示的蓝牙信号源定位", 《计算机测量与控制》 * |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104918109A (en) * | 2015-06-08 | 2015-09-16 | 小米科技有限责任公司 | Intelligent playing method and device |
CN105425229A (en) * | 2015-11-02 | 2016-03-23 | 上海中船船舶设计技术国家工程研究中心有限公司 | Anti-collision monitoring device for lighter aboard ship |
CN105425229B (en) * | 2015-11-02 | 2017-11-24 | 上海中船船舶设计技术国家工程研究中心有限公司 | A kind of lighter aboard ship anti-collision monitoring device |
CN105911540A (en) * | 2016-06-01 | 2016-08-31 | 北京京东方多媒体科技有限公司 | Wireless positioning system and exercise training system |
CN105911540B (en) * | 2016-06-01 | 2021-04-16 | 北京京东方多媒体科技有限公司 | Wireless positioning system and exercise training system |
CN106331451A (en) * | 2016-08-23 | 2017-01-11 | 安徽联合安全科技有限公司 | VIN (Vehicle Identification Number) code encryption and rubbing device based on double positioning of Bluetooth and ultrasound waves |
CN108133521B (en) * | 2016-12-01 | 2020-10-23 | Xid系统公司 | Simple and easy old university device of attendance |
CN108133521A (en) * | 2016-12-01 | 2018-06-08 | Xid系统公司 | Simple university for the aged turns out for work device |
CN108169735A (en) * | 2017-02-24 | 2018-06-15 | 杭州米越科技有限公司 | A kind of range-measurement system of correlation |
CN107422298A (en) * | 2017-09-19 | 2017-12-01 | 深圳市深层互联科技有限公司 | Bluetooth ranging parameters optimization method, system, storage medium and mobile terminal |
CN107509175A (en) * | 2017-09-19 | 2017-12-22 | 深圳市深层互联科技有限公司 | Bluetooth indoor orientation method, system, storage medium and terminal |
CN107911792A (en) * | 2017-11-24 | 2018-04-13 | 深圳市舜宝科技有限公司 | A kind of anti-lost method and device of electronic cigarette equipment |
CN110611876A (en) * | 2018-06-15 | 2019-12-24 | 深圳市微能信息科技有限公司 | Indoor asset management method, device and system |
CN110611876B (en) * | 2018-06-15 | 2021-05-18 | 深圳市微能信息科技有限公司 | Indoor asset management method, device and system |
CN109215415A (en) * | 2018-10-22 | 2019-01-15 | 天津天创数字科技有限公司 | The exchange method of showpiece explanation content based on bluetooth positioning |
CN109752708A (en) * | 2019-02-28 | 2019-05-14 | 杭州羿腾科技有限公司 | It is a kind of that method and system are lost based on seeking for low-power consumption bluetooth signal ranging |
CN110231595A (en) * | 2019-05-28 | 2019-09-13 | 武汉盛硕电子有限公司 | A kind of method of bluetooth ranging, the test method of bluetooth equipment and system |
CN112153211A (en) * | 2019-06-28 | 2020-12-29 | 北京智明星通科技股份有限公司 | Game APP downloading method and system |
CN111060901A (en) * | 2019-11-05 | 2020-04-24 | 安徽工程大学 | AGV (automatic guided vehicle) distance measuring system based on low-power consumption |
CN113466841A (en) * | 2021-07-16 | 2021-10-01 | Oppo广东移动通信有限公司 | Distance measuring method, distance measuring device, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104407343B (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104407343A (en) | Method and system for distance measurement by bluetooth | |
CN105181200A (en) | Accurate algorithm for measuring cable force by using frequency method | |
CN102798850B (en) | Rayleigh-Doppler laser radar ground calibration system | |
CN102680728B (en) | Motor rotation speed measuring method used in precise electromechanical equipment | |
CN104344945A (en) | Frequency code optical fiber time domain reflectometer and working method thereof | |
CN103680152A (en) | Vehicle detecting method and system | |
CN112965048B (en) | Laser ranging error correction method, device, electronic equipment and storage medium | |
CN102589504A (en) | Online measuring device for diameter of tree in growth | |
CN105572617A (en) | Calibration system and method of pulse power standard | |
CN103760426B (en) | A kind of complex electromagnetic environment measure based on vector | |
CN105004402A (en) | Dynamic liquid level wireless monitoring method and system | |
CN103063141A (en) | Part height measuring method based on laser ranging | |
CN109405740A (en) | A kind of cereal calculation method of physical volume and device based on harvester elevator | |
CN102221631B (en) | Laser speed measuring instrument and laser speed measuring method | |
CN103530288A (en) | Interest point distribution range measuring method and device | |
CN102193029B (en) | Method for measuring short-term frequency stability of unconventional sampling time | |
CN105204002A (en) | Sound source positioning method and system | |
CN101710023B (en) | Method and device for testing polarization maintaining fiber beat length | |
EP3370074B1 (en) | Method for detecting background noise of sensor, and device thereof | |
CN105547632A (en) | Novel method for calibrating or calibrating impact velocity by using impact velocity measuring device | |
CN103297154B (en) | Method and device for detecting standing-wave ratio | |
CN101598540B (en) | Three-dimensional positioning method and three-dimensional positioning system | |
CN104181397A (en) | Groundmeter with distance measuring function and method for measuring ground resistance through groundmeter | |
CN102346029B (en) | Device for detecting observing angle of overhead line sag and control method thereof | |
CN103528739A (en) | Impulse testing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |