CN110231595B - Bluetooth ranging method, bluetooth equipment testing method and system - Google Patents

Bluetooth ranging method, bluetooth equipment testing method and system Download PDF

Info

Publication number
CN110231595B
CN110231595B CN201910448352.6A CN201910448352A CN110231595B CN 110231595 B CN110231595 B CN 110231595B CN 201910448352 A CN201910448352 A CN 201910448352A CN 110231595 B CN110231595 B CN 110231595B
Authority
CN
China
Prior art keywords
equipment
tested
bluetooth
rssi
marker post
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910448352.6A
Other languages
Chinese (zh)
Other versions
CN110231595A (en
Inventor
张威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Sensor Electronics Co ltd
Original Assignee
Wuhan Sensor Electronics Co ltd
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 Wuhan Sensor Electronics Co ltd filed Critical Wuhan Sensor Electronics Co ltd
Priority to CN201910448352.6A priority Critical patent/CN110231595B/en
Publication of CN110231595A publication Critical patent/CN110231595A/en
Application granted granted Critical
Publication of CN110231595B publication Critical patent/CN110231595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/10Position of receiver fixed by co-ordinating a plurality of position lines defined by path-difference measurements, e.g. omega or decca systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The testing method of the Bluetooth equipment comprises the steps of obtaining RSSIs of a first marker post and a second marker post, wherein the distances between the first marker post and the second marker post and the testing terminal are different and known; and fitting a formula according to the RSSIs of the first and second targets and the known distance, wherein the formula is used for calculating the unknown distance. And acquiring the RSSI of the equipment to be tested according to the scanning of the user, substituting the RSSI of the equipment to be tested into the formula, and calculating the distance between the equipment to be tested and the test terminal. And judging whether the equipment to be tested has a problem according to whether the calculated distance is in a reasonable range. Only if the device to be tested is within a reasonable distance, bluetooth connection is carried out on the device to be tested, and the device to be tested enters a test. Further, whether the device actually connected with Bluetooth is the device in scanning is judged by comparing whether the device is in a reasonable range with the RSSI in scanning after the Bluetooth is connected. And a tester can confirm whether the equipment to be tested is qualified or not by observing the condition of the indicator lamp of the equipment to be tested, so that the equipment with problems is detected.

Description

Bluetooth ranging method, bluetooth equipment testing method and system
Technical Field
The invention relates to the field of product testing, in particular to a Bluetooth ranging method, a Bluetooth equipment testing method and a Bluetooth equipment testing system.
Background
There are many devices that scan two-dimensional codes and establish bluetooth connection to control, the two-dimensional codes are used for managing the uniqueness of the device identity, and bluetooth is used for establishing short-distance communication. Such techniques may be employed, for example, with a mole-for-bike, a sales counter, a charger, a charging cord, etc. In the production process of the equipment, the two-dimensional code is not matched with the equipment or other problems are unavoidable due to various reasons. For example: the two-dimensional code between the same kind of equipment is opposite, the two-dimensional code between different kinds of equipment is mixed, the two-dimensional code is heavy, and a plurality of equipment paste the same two-dimensional code. Therefore, testing and quality inspection are required before the device is shipped.
Disclosure of Invention
The present application has been made in order to improve the reliability of bluetooth device detection and alleviate one of the above problems.
In a first aspect, the present invention provides a method of bluetooth ranging.
A method for bluetooth ranging based on a test terminal and at least two targets, the targets being bluetooth-broadcast, comprising:
Acquiring RSSIs of the at least two targets, wherein the distances between the RSSIs of the at least two targets and the test terminal are different and known;
Fitting a formula according to the RSSI and the known distance, wherein the formula is used for calculating the unknown distance;
and acquiring the RSSI of the equipment to be tested, substituting the RSSI of the equipment to be tested into the formula, and calculating the distance between the equipment to be tested and the test terminal.
In a second aspect, a method for testing a bluetooth device is provided.
A testing method of Bluetooth equipment, which tests the Bluetooth equipment by using a testing terminal, wherein the Bluetooth equipment is equipment to be tested, comprises the following steps:
acquiring RSSIs of a first marker post and a second marker post, wherein the distances between the first marker post and the second marker post and the test terminal are different and known;
According to RSSIs of the first and second targets, fitting a formula to the distances between the first and second targets and the test terminal, wherein the formula is used for calculating an unknown distance;
acquiring the RSSI of the equipment to be tested according to the scanning of the user, substituting the RSSI of the equipment to be tested into the formula, and calculating the distance between the equipment to be tested and the test terminal;
determining whether the calculated distance is within a first threshold?
If yes, bluetooth connection is carried out on the device to be tested.
And if not, judging that the equipment to be tested is unqualified.
In the scheme, whether the equipment to be tested has a problem is judged by calculating whether the distance is in a reasonable range or not. Only if the device to be tested is within a reasonable distance, bluetooth connection is carried out on the device to be tested, and the device to be tested enters a test.
Further, the RSSI of the connection device is obtained, the connection device is connected with the Bluetooth device of the test terminal,
According to the comparison of the RSSI of the connected device and the RSSI of the device under test, determining whether the error therebetween is within a second threshold?
And if yes, testing the connecting equipment.
And if not, judging that the equipment to be tested is unqualified.
In a further scheme, whether the device actually connected with Bluetooth is the device in scanning is judged by comparing whether the device is in a reasonable range with the RSSI in scanning after the Bluetooth is connected. And a tester can confirm whether the equipment to be tested is qualified or not by observing the condition of the indicator lamp of the equipment to be tested, so that the equipment with problems is detected.
In a third aspect, a test system for a bluetooth device is provided.
A test system of Bluetooth equipment comprises a first marker post, a second marker post and a test terminal. The first and second targets are fixed in position relative to the test station, the test terminal is movable in the test station, and the distances between the first and second targets relative to the test station are different, and the test terminal is configured to perform the method according to the second aspect.
Drawings
Fig. 1, provides a preferred embodiment according to the first aspect of the invention.
Fig. 2 provides a preferred embodiment according to the second aspect of the invention.
Fig. 3 provides an embodiment according to a third aspect of the invention.
Fig. 4 provides another embodiment according to a third aspect of the invention.
Detailed Description
For the purpose of making the implementation, technical solutions and advantages of the present specification clearer, the technical solutions will be clearly and completely described by examples with reference to the accompanying drawings. It will be apparent that the embodiments described are some or all of the preferred embodiments of the present specification. It should be noted that the test terminal in the present invention includes, but is not limited to, a smart phone, a tablet computer, a smart wearable device, or other displayable terminals with bluetooth function. The RSSI in the present invention is a signal strength Indication received by RECEIVED SIGNAL STRENGTH Indication, and the larger the value is, the shorter the distance is. Various specific values are set forth herein for purposes of understanding and are not intended to be limiting. The terms first, second, etc. in the present invention are only used for distinguishing between objects.
As shown in fig. 1, a preferred embodiment is provided according to the first aspect of the present invention.
The Bluetooth ranging method is based on a test terminal and two targets, wherein the targets can carry out Bluetooth broadcasting, the positions of a first target and a second target are fixed, and the distances between the first target and the second target and the test terminal are different and known;
The client of the test terminal acquires RSSIs of two targets, and a logarithmic formula capable of calculating the distance is fitted according to the acquired RSSIs and the known distance between the targets and the test terminal.
The test terminal obtains the RSSI of the equipment to be tested, substitutes the RSSI of the equipment to be tested into the formula, and calculates the distance between the equipment to be tested and the test terminal.
By the method, distance measurement can be performed, and the distance between the equipment to be tested and the test terminal can be judged. In practical application, the device of the same kind as the device to be measured is selected as the marker post, so that the effect is better, and the measurement error can be reduced.
As shown in fig. 2, a preferred embodiment is provided according to the second aspect of the invention.
A testing method of Bluetooth equipment, which tests the Bluetooth equipment by using a testing terminal, wherein the Bluetooth equipment is equipment to be tested, comprises the following steps:
the RSSI of the first marker post and the RSSI of the second marker post are obtained, the positions of the first marker post and the second marker post are fixed, the distance between the first marker post and the test terminal is 1 meter, and the distance between the second marker post and the test terminal is 3 meters.
According to RSSIs of the first and second targets, fitting a formula to the distances between the first and second targets and the test terminal, wherein the formula is used for calculating an unknown distance;
acquiring the RSSI of the equipment to be tested according to the scanning of the user, substituting the RSSI of the equipment to be tested into the formula, and calculating the distance between the equipment to be tested and the test terminal;
Determining whether the calculated distance is within 2 meters?
If yes, bluetooth connection is carried out on the device to be tested.
And if not, judging that the equipment to be tested is unqualified.
In the process, a tester scans the two-dimensional code of the device to be tested through the APP, obtains the RSSI of the device to be tested, and obtains a formula. If the formula is not acquired, the formula needs to be obtained through initialization. If the formula is obtained, the equipment is scanned within 8 seconds, and if the scanning equipment is overtime, the equipment to be detected is judged to be unqualified. If the equipment is scanned, the distance calculation is carried out on the equipment, and whether the equipment to be detected has a problem is judged according to whether the calculated distance is within 2 meters.
In order to ensure the accuracy of the test, a tester should control the device to be tested to be placed in the range of2 meters of the test device, and if the device to be tested is calculated to be not in the range of2 meters by the method, the device to be tested is considered to be an unqualified product. For example: the bluetooth of the device to be tested is damaged and the bluetooth broadcast of the device cannot be scanned. Also for example: the two-dimensional code of the current equipment is scanned, and because the two-dimensional code is not matched with the equipment, the RSSI of the other equipment is actually obtained, and the other equipment is outside 2 meters, and the equipment to be detected can be judged to be unqualified. In addition, only the device to be tested is in 2 meters, bluetooth connection is carried out on the device to be tested, and manual testing is carried out.
Further, the RSSI of a connection device, which is a device connected with Bluetooth of the test terminal,
According to the comparison of the RSSI of the connected device and the RSSI of the device under test, determining whether the error between them is within 5?
And if yes, testing the connecting equipment.
And if not, judging that the equipment to be tested is unqualified.
In the further process, whether the device actually connected with Bluetooth is the device in scanning can be judged by comparing whether the RSSI in scanning is in a reasonable range or not after the Bluetooth is connected. And a tester can confirm whether the equipment to be tested is qualified or not by observing the condition of the indicator lamp of the equipment to be tested, so that the problem of the equipment is detected. For example: 2 bluetooth charging wires A and B have on the quality inspector's hand, and the two-dimensional code subsides of these 2 charging wires are all in 2 meters within range through range finding judgement charging wire, and after the quality inspector scanned charging wire A, test terminal has actually connected charging wire B, and charging wire A's pilot lamp can not light up this moment, and charging wire B's pilot lamp lights up, consequently further through the condition that await measuring equipment pilot lamp state also can judge charging wire A, B two-dimensional code mismatch.
Further, the detection result is unqualified, and the unqualified reason is prompted.
For example: the scan does not result in a broadcast of the device under test, which may be a loss of bluetooth functionality of the device under test.
The Bluetooth can not be connected, and the Bluetooth can be the fact that the equipment is not matched with the two-dimensional code, or the Bluetooth function of the equipment to be tested is abnormal, or the equipment to be tested is connected by other test terminals.
As shown in fig. 3, an embodiment is provided according to a third aspect of the present invention.
A test system of Bluetooth equipment comprises two targets and a test terminal. In order to save test space and tooling cost, two stations can be tested simultaneously, and the position relationship is shown in figure 3. The two benchmarks are fixed relative to the position of the testing station, the testing terminal moves in the testing station, the distance between the two benchmarks and the testing station is 1 meter and 3 meters respectively, and the testing terminal is used for testing whether the Bluetooth equipment to be tested is qualified or not.
As shown in fig. 4, another embodiment is provided according to a third aspect of the present invention.
A Bluetooth device test system has a positional relationship shown in FIG. 4.
It will be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope of the invention. The scope of the invention is defined by the appended claims.

Claims (4)

1. A testing method of Bluetooth equipment, which tests the Bluetooth equipment by using a testing terminal, wherein the Bluetooth equipment is equipment to be tested, is characterized by comprising the following steps: acquiring RSSIs of a first marker post and a second marker post, wherein the distances between the first marker post and the second marker post and the test terminal are different and known;
According to RSSIs of the first and second targets, fitting a formula to the distances between the first and second targets and the test terminal, wherein the formula is used for calculating an unknown distance;
acquiring the RSSI of the equipment to be tested according to the scanning of the user, substituting the RSSI of the equipment to be tested into the formula, and calculating the distance between the equipment to be tested and the test terminal;
determining whether the calculated distance is within a first threshold,
If yes, bluetooth connection is carried out on the equipment to be tested; if not, judging that the equipment to be tested is unqualified;
Acquiring RSSI of a connection device, which is a device connected with Bluetooth of a test terminal,
Judging whether the error between the RSSI of the connecting equipment and the RSSI of the equipment to be tested is within a second threshold value or not according to the comparison of the RSSI of the connecting equipment and the RSSI of the equipment to be tested;
if yes, testing the connecting equipment; and if not, judging that the equipment to be tested is unqualified.
2. The method for testing a bluetooth device according to claim 1, wherein: and prompting unqualified reasons of the unqualified equipment.
3. The method for testing a bluetooth device according to claim 1, wherein: the first threshold is 2 meters and the second threshold is 5.
4. A test system of Bluetooth equipment is characterized in that:
The test system comprises a first marker post, a second marker post and a test terminal, wherein the first marker post and the second marker post are fixed relative to the test station, the test terminal is movably positioned at the test station, the distances between the first marker post and the second marker post relative to the test station are different, and the test terminal is configured to execute the method as claimed in any one of claims 1 to 3.
CN201910448352.6A 2019-05-28 2019-05-28 Bluetooth ranging method, bluetooth equipment testing method and system Active CN110231595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910448352.6A CN110231595B (en) 2019-05-28 2019-05-28 Bluetooth ranging method, bluetooth equipment testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910448352.6A CN110231595B (en) 2019-05-28 2019-05-28 Bluetooth ranging method, bluetooth equipment testing method and system

Publications (2)

Publication Number Publication Date
CN110231595A CN110231595A (en) 2019-09-13
CN110231595B true CN110231595B (en) 2024-05-14

Family

ID=67858474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910448352.6A Active CN110231595B (en) 2019-05-28 2019-05-28 Bluetooth ranging method, bluetooth equipment testing method and system

Country Status (1)

Country Link
CN (1) CN110231595B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433201B (en) * 2020-11-27 2023-02-24 歌尔科技有限公司 Distance measurement method and device and terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060001024A (en) * 2004-06-30 2006-01-06 주식회사 팬택 System and method for testing bluetooth
CN104053230A (en) * 2014-06-04 2014-09-17 浙江大学 Distance measurement method based on Bluetooth protocol
CN104407343A (en) * 2014-12-01 2015-03-11 福建联迪商用设备有限公司 Method and system for distance measurement by bluetooth
CN104702320A (en) * 2014-04-11 2015-06-10 上海智向信息科技有限公司 Method and system for judging near-field payment on basis of Bluetooth
CN105513296A (en) * 2015-12-02 2016-04-20 深圳市亿通科技有限公司 Intelligent anti-lost system and method
CN105636080A (en) * 2015-12-30 2016-06-01 福建联迪商用设备有限公司 Bluetooth test method and system
CN107561521A (en) * 2016-06-30 2018-01-09 大唐半导体设计有限公司 A kind of method and apparatus of wireless distance finding

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060001024A (en) * 2004-06-30 2006-01-06 주식회사 팬택 System and method for testing bluetooth
CN104702320A (en) * 2014-04-11 2015-06-10 上海智向信息科技有限公司 Method and system for judging near-field payment on basis of Bluetooth
CN104053230A (en) * 2014-06-04 2014-09-17 浙江大学 Distance measurement method based on Bluetooth protocol
CN104407343A (en) * 2014-12-01 2015-03-11 福建联迪商用设备有限公司 Method and system for distance measurement by bluetooth
CN105513296A (en) * 2015-12-02 2016-04-20 深圳市亿通科技有限公司 Intelligent anti-lost system and method
CN105636080A (en) * 2015-12-30 2016-06-01 福建联迪商用设备有限公司 Bluetooth test method and system
CN107561521A (en) * 2016-06-30 2018-01-09 大唐半导体设计有限公司 A kind of method and apparatus of wireless distance finding

Also Published As

Publication number Publication date
CN110231595A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN107860358B (en) Floor positioning method and system, readable storage medium and intelligent terminal
US8208875B2 (en) Systems and methods for automatically calibrating output power of a communication device
CN103906091A (en) Detecting method and system for wireless AP performance in WIFI
US9392479B2 (en) Pocket-size PIM inspector
CN110231595B (en) Bluetooth ranging method, bluetooth equipment testing method and system
US20130033270A1 (en) Electromagnetic interference test sytem with self-checking function and self-checking method
CN112566173A (en) Signal measurement method based on Mesh network, wireless access point and storage medium
CN106358291A (en) Trilateration positioning method based on signal strength
CN103888885B (en) Miniature microphone capacitance test method
CN106199237A (en) System for testing equipment antenna
CN110771064A (en) Estimation method, monitoring equipment and computer readable storage medium
US9577770B2 (en) Method for analyzing the RF performance of a probe card, detector assembly and system for analyzing the RF performance of a probe card
CN116840072B (en) Automatic checking system for electronic connector
KR20190006823A (en) System and method for vehicle inspection
CN108469546B (en) Wire impedance testing method and system
CN110572221A (en) automatic test system and test method for wireless network card signals
KR20110068609A (en) System and method for measuring radio wave receiving environment
CN108243475B (en) Positioning method based on wireless network and wireless equipment
CN113098633B (en) Intelligent coupling test method and device and computer readable storage medium
CN203489858U (en) Terminal crimping quality detection device and terminal crimping system
CN110672264A (en) Detection system and detection method for pressure sensor of micro-electro-mechanical system
CN219761038U (en) Radio station testing and calibrating device
CN113092878B (en) Test method and detection device for electromagnetic radiation of W-band environment
CN116346251A (en) Special detection device for radio frequency communication of power body area network module
US11271607B2 (en) Test system and method for testing a transmission path of a cable connection between a first and a second position

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 430000 floor 3, Fenglong building, building 19, Huifeng enterprise Tiandi, Gutian Second Road, Qiaokou District, Wuhan City, Hubei Province

Applicant after: WUHAN SENSOR ELECTRONICS Co.,Ltd.

Address before: 430065 building 52, Baishazhou Silver Lake SME Town, Hongshan District, Wuhan City, Hubei Province

Applicant before: WUHAN SENSOR ELECTRONICS Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant