CN104053230A - Distance measurement method based on Bluetooth protocol - Google Patents

Distance measurement method based on Bluetooth protocol Download PDF

Info

Publication number
CN104053230A
CN104053230A CN201410244131.4A CN201410244131A CN104053230A CN 104053230 A CN104053230 A CN 104053230A CN 201410244131 A CN201410244131 A CN 201410244131A CN 104053230 A CN104053230 A CN 104053230A
Authority
CN
China
Prior art keywords
bluetooth module
mobile phone
rssi
distance
smart mobile
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.)
Pending
Application number
CN201410244131.4A
Other languages
Chinese (zh)
Inventor
仇悦
席今
沈海斌
朱超越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201410244131.4A priority Critical patent/CN104053230A/en
Publication of CN104053230A publication Critical patent/CN104053230A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a distance measurement method based on a Bluetooth protocol. An RSSI(Received Signal Strength Indication) value during interaction of master Bluetooth equipment and slave Bluetooth equipment is obtained, after data mining, a final RSSI value is substituted into a decline model of RSSI and a distance, and the distance d is obtained. According to the distance measurement method based on the Bluetooth protocol, a data mining technology is adopted to eliminate interference of multipath effects in the RSSI value, and distance measurement precision is improved greatly; the distance measurement method based on the Bluetooth protocol makes up for the deficiency of a short range distance measurement function of an existing distance measurement device, and the precision in short range distance measurement can be controlled within 8 cm.

Description

A kind of distance-finding method based on Bluetooth protocol
Technical field
The present invention relates to a kind of distance-finding method based on Bluetooth protocol.
Background technology
As everyone knows, the device of using rfid technology measuring distance has a variety of.As the GPS navigation system that everybody is familiar with, the inside has just been applied to ranging technology; Certainly, the range unit of application Bluetooth protocol exists equally.Their general principle is the RSSI value while utilizing bluetooth equipment slave mutual, and the decline model of application RSSI value and distance draws distance thereby convert.But GPS localization method is not suitable for indoor range finding, range accuracy is very poor; And part bluetooth range unit application is the bluetooth protocol version (bluetooth 3.0 versions and following) before 2010, no longer applicable, and they have common shortcoming: positioning precision is poor, closely distance measurement function disappearance.
Summary of the invention
The object of the invention is for the deficiencies in the prior art, a kind of distance-finding method based on Bluetooth protocol is provided.
The object of the invention is to be achieved through the following technical solutions: a kind of distance-finding method based on Bluetooth protocol, the method realizes in the ranging system based on Bluetooth protocol, described ranging system comprises single-chip microcomputer, the first bluetooth module and Android system smart mobile phone, described Android system smart mobile phone has the second bluetooth module, and the method comprises the following steps:
(1) the first bluetooth module is set is visible state to single-chip microcomputer, and the first bluetooth module transmits;
(2) Android system smart mobile phone receives by the second bluetooth module on mobile phone the signal that the first bluetooth module sends;
(3) the signal receiving from the second bluetooth module, extract RSSI value;
(4) the RSSI value of extraction is made as to initial set, then applies K-means clustering algorithm and eliminate the interference of multipath effect to RSSI value, the RSSI value being eliminated after disturbing;
(5) in the middle of RSSI value substitution RSSI step (4) being obtained and the decline model of distance, thereby try to achieve apart from d, the decline model of described RSSI and distance is:
Described decline model in A be the distance of the first bluetooth module and the Android system smart mobile phone signal receiving strength while being 1 meter, for the signal parameter factor, A with obtain in the following manner:
(5.1) single-chip microcomputer and the first bluetooth module are placed in apart from Android system smart mobile phone 1m, 2m, 3m, 4m, 5m, 6m, 7m place; It is visible state that single-chip microcomputer arranges the first bluetooth module, and the first bluetooth module transmits at the 1m apart from Android system smart mobile phone, 2m, 3m, 4m, 5m, 6m, 7m place;
(5.2) repeating step (1)-(4), corresponding different distance obtains different RSSI values;
(5.3) corresponding 7 known distances in 7 RSSI values that obtain according to step (5.2) and step (1), by least square method, obtain, A with .
The invention has the beneficial effects as follows, maintenance data digging technology, can eliminate the interference that multipath effect causes RSSI value effectively, thereby improves range accuracy.
Brief description of the drawings
Fig. 1 is the main modular of software;
Fig. 2 is experimental results figure.
Embodiment
A kind of distance-finding method based on Bluetooth protocol, the method realizes in the ranging system based on Bluetooth protocol, described ranging system comprises single-chip microcomputer, the first bluetooth module and Android system smart mobile phone, and described Android system smart mobile phone has the second bluetooth module, and the method comprises the following steps:
(1) ask for the decline model of RSSI and distance in parameter factors A with :
(1.1) single-chip microcomputer and the first bluetooth module are placed in to the place apart from Android system smart mobile phone 1m;
(1.2) the first bluetooth module is set is visible state to single-chip microcomputer, and the first bluetooth module is transmitting apart from Android system smart mobile phone 1m place;
(1.3) Android system smart mobile phone receives by the second bluetooth module on mobile phone the signal that the first bluetooth module sends;
(1.4) the signal receiving from the second bluetooth module, extract RSSI value;
(1.5) multiple RSSI values of extracting are made as to initial set, then apply K-means clustering algorithm and eliminate the interference of multipath effect to RSSI value, while obtaining distance for 1m, the RSSI value of eliminating after disturbing is-53.3dBm;
(1.6) single-chip microcomputer and the first bluetooth module are placed in apart from Android system smart mobile phone 2m, 3m, 4m, 5m, 6m, 7m place, repeating step (1.1)-(1.5), corresponding different distance obtains different RSSI values: the be followed successively by-60.4dBm of RSSI value when distance is 2m, 3m, 4m, 5m, 6m, 7m,-62.8dBm,-65.4dBm,-69.4dBm ,-72.6dBm ,-75.1dBm;
(1.7) corresponding 7 known distances in 7 RSSI values that obtain according to step (1.6) and step (1.1), by least square method, obtain, A=-52.4007 with =2.4901.
(2) the first bluetooth module is placed in to testing distance place, it is visible state that single-chip microcomputer arranges the first bluetooth module, and the first bluetooth module transmits;
(3) Android system smart mobile phone receives by the second bluetooth module on mobile phone the signal that the first bluetooth module sends;
(4) in the signal that the second bluetooth module receives from step (3), extract RSSI value;
(5) the RSSI value of step (4) being extracted is made as initial set, then applies K-means clustering algorithm and eliminates the interference of multipath effect to RSSI value, the RSSI value being eliminated after disturbing;
(6) in the middle of RSSI value substitution RSSI step (5) being obtained and the decline model of distance, thereby try to achieve apart from d, the decline model of described RSSI and distance is:
In formula, A=-52.4007, =2.4901.
As shown in Figure 2, the error between the method records distance d and actual range is in 8cm.

Claims (1)

1. the distance-finding method based on Bluetooth protocol, the method realizes in the ranging system based on Bluetooth protocol, described ranging system comprises single-chip microcomputer, the first bluetooth module and Android system smart mobile phone etc., described Android system smart mobile phone has the second bluetooth module, it is characterized in that, the method comprises the following steps:
(1) the first bluetooth module is set is visible state to single-chip microcomputer, and the first bluetooth module transmits;
(2) Android system smart mobile phone receives by the second bluetooth module on mobile phone the signal that the first bluetooth module sends;
(3) the signal receiving from the second bluetooth module, extract RSSI value;
(4) the RSSI value of extraction is made as to initial set, then applies K-means clustering algorithm and eliminate the interference of multipath effect to RSSI value, the RSSI value being eliminated after disturbing;
(5) in the middle of RSSI value substitution RSSI step (4) being obtained and the decline model of distance, thereby try to achieve apart from d;
The decline model of described RSSI and distance is ;
In formula, A is the signal receiving strength of the distance of the first bluetooth module and Android system smart mobile phone while being 1 meter, for the signal parameter factor, A with obtain in the following manner:
(5.1) single-chip microcomputer and the first bluetooth module are placed in apart from Android system smart mobile phone 1m, 2m, 3m, 4m, 5m, 6m, 7m place; It is visible state that single-chip microcomputer arranges the first bluetooth module, and the first bluetooth module transmits at the 1m apart from Android system smart mobile phone, 2m, 3m, 4m, 5m, 6m, 7m place;
(5.2) repeating step (1)-(4), corresponding different distance obtains different RSSI values;
(5.3) corresponding 7 known distances in 7 RSSI values that obtain according to step (5.2) and step (1), by least square method, obtain A with .
CN201410244131.4A 2014-06-04 2014-06-04 Distance measurement method based on Bluetooth protocol Pending CN104053230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410244131.4A CN104053230A (en) 2014-06-04 2014-06-04 Distance measurement method based on Bluetooth protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410244131.4A CN104053230A (en) 2014-06-04 2014-06-04 Distance measurement method based on Bluetooth protocol

Publications (1)

Publication Number Publication Date
CN104053230A true CN104053230A (en) 2014-09-17

Family

ID=51505488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410244131.4A Pending CN104053230A (en) 2014-06-04 2014-06-04 Distance measurement method based on Bluetooth protocol

Country Status (1)

Country Link
CN (1) CN104053230A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407343A (en) * 2014-12-01 2015-03-11 福建联迪商用设备有限公司 Method and system for distance measurement by bluetooth
CN105425229A (en) * 2015-11-02 2016-03-23 上海中船船舶设计技术国家工程研究中心有限公司 Anti-collision monitoring device for lighter aboard ship
CN106443648A (en) * 2015-08-13 2017-02-22 株式会社理光 Method for judging approaching of electronic device and device thereof
CN106685543A (en) * 2016-12-09 2017-05-17 广州视源电子科技股份有限公司 Wireless signal detection method and device
CN106941692A (en) * 2017-04-27 2017-07-11 北京爱康泰科技有限责任公司 Test method, device and the storage medium of wireless device
CN107140549A (en) * 2017-06-29 2017-09-08 上海海事大学 Two-electron atom bridge crane pivot angle and rope length detection means and its measuring method
CN110231595A (en) * 2019-05-28 2019-09-13 武汉盛硕电子有限公司 A kind of method of bluetooth ranging, the test method of bluetooth equipment and system
CN111325880A (en) * 2020-02-26 2020-06-23 广州市艾森斯软件研发有限公司 Bluetooth-based positioning door opening method and device, intelligent terminal and storage medium
CN112433201A (en) * 2020-11-27 2021-03-02 歌尔科技有限公司 Distance measurement method and device and terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188023A (en) * 2013-03-19 2013-07-03 天脉聚源(北京)传媒科技有限公司 Distance measuring method and system, and application method
CN103809153A (en) * 2012-11-12 2014-05-21 塔塔咨询服务有限公司 Method and system for accurate straight line distance estimation between two communication devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809153A (en) * 2012-11-12 2014-05-21 塔塔咨询服务有限公司 Method and system for accurate straight line distance estimation between two communication devices
CN103188023A (en) * 2013-03-19 2013-07-03 天脉聚源(北京)传媒科技有限公司 Distance measuring method and system, and application method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴东金: "基于无线传感器网络的局域定位研究", 《万方数据库》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407343A (en) * 2014-12-01 2015-03-11 福建联迪商用设备有限公司 Method and system for distance measurement by bluetooth
CN106443648A (en) * 2015-08-13 2017-02-22 株式会社理光 Method for judging approaching of electronic device and device thereof
CN106443648B (en) * 2015-08-13 2019-06-21 株式会社理光 Judge the close method and apparatus of electronic 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
CN106685543A (en) * 2016-12-09 2017-05-17 广州视源电子科技股份有限公司 Wireless signal detection method and device
CN106941692A (en) * 2017-04-27 2017-07-11 北京爱康泰科技有限责任公司 Test method, device and the storage medium of wireless device
CN107140549A (en) * 2017-06-29 2017-09-08 上海海事大学 Two-electron atom bridge crane pivot angle and rope length detection means and its measuring method
CN110231595A (en) * 2019-05-28 2019-09-13 武汉盛硕电子有限公司 A kind of method of bluetooth ranging, the test method of bluetooth equipment and system
CN111325880A (en) * 2020-02-26 2020-06-23 广州市艾森斯软件研发有限公司 Bluetooth-based positioning door opening method and device, intelligent terminal and storage medium
CN112433201A (en) * 2020-11-27 2021-03-02 歌尔科技有限公司 Distance measurement method and device and terminal equipment

Similar Documents

Publication Publication Date Title
CN104053230A (en) Distance measurement method based on Bluetooth protocol
WO2016032293A3 (en) Method for receiving reference signal in wireless communication system and device for same
WO2014155321A3 (en) System and method for processing received data in a wireless network
WO2013153513A3 (en) Methods and apparatus for enhancing network positioning measurement performance by managing uncertain measurement occasions
WO2014007754A3 (en) Methods nodes and computer program for positioning of a device
WO2014060777A3 (en) Apparatus and method for determining the location of a mobile device using multiple wireless access points
GB201302022D0 (en) Access point location identification methods and apparatus based on absolute and relative harvesting
WO2014092996A3 (en) Location determination using fingerprint data
US20160094951A1 (en) Wi-fi fingerprint location database creation and update from crowd sourced data
WO2015023224A3 (en) Positioning in a shared cell
WO2012006090A3 (en) Methods, systems, and computer readable media for registering in a merchant sponsored program using a near field communication (nfc) device
WO2012008727A3 (en) Method of determining a position in a wireless communication system and apparatus thereof
WO2012060613A3 (en) Method for performing limited measurement in wireless communication system and apparatus supporting same
JP2014524023A5 (en)
CN105813194A (en) Indoor positioning method based on fingerprint database secondary correction
CN107431995A (en) Realize the checking to the estimated location of mobile device
CN103957503A (en) Method improving robustness of WiFi fingerprint location by utilizing sensor to count steps
CN206741554U (en) The house type 3D modeling system of indoor 3D scanning devices based on depth camera
WO2014006386A3 (en) Method and system for identifying a security document
TW201615049A (en) Method, apparatus, and mobile terminal for collecting location information
RU2016132131A (en) METHODS AND DEVICES FOR ENSURING A WIRELESS DEVICE POSSIBILITIES OF CONNECTING WITH A NETWORK RADIO NODE IN AN UNLICENSED SPECTRUM
WO2016198093A9 (en) Determining of model parameters for positioning purposes
CN104019814A (en) Indoor wireless positioning method and system based on accessible point correction
CN103776405A (en) Displacement detection method and device
CN105303796A (en) Wireless measuring tool and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140917