CN102833021B - Bluetooth pairing method and system in test - Google Patents

Bluetooth pairing method and system in test Download PDF

Info

Publication number
CN102833021B
CN102833021B CN201210335410.2A CN201210335410A CN102833021B CN 102833021 B CN102833021 B CN 102833021B CN 201210335410 A CN201210335410 A CN 201210335410A CN 102833021 B CN102833021 B CN 102833021B
Authority
CN
China
Prior art keywords
bluetooth
module
address
test
acquisition module
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
CN201210335410.2A
Other languages
Chinese (zh)
Other versions
CN102833021A (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.)
Tonly Electronics Holdings Ltd
Original Assignee
Tonly Electronics Holdings 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 Tonly Electronics Holdings Ltd filed Critical Tonly Electronics Holdings Ltd
Priority to CN201210335410.2A priority Critical patent/CN102833021B/en
Publication of CN102833021A publication Critical patent/CN102833021A/en
Application granted granted Critical
Publication of CN102833021B publication Critical patent/CN102833021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a Bluetooth pairing method in a test, which comprises the following steps: the test module sends a Bluetooth test command to an address acquisition module in wired connection with the test module; the address acquisition module acquires a Bluetooth address of a Bluetooth module and sends the Bluetooth address to the test module; and the test module is matched with the Bluetooth module according to the Bluetooth address. The invention omits the steps of searching, selecting and connecting, realizes one-to-one pairing through wired connection, simplifies the pairing process, and has the advantage of high testing efficiency in mass production testing.

Description

Bluetooth pairing methods in a kind of test and system
Technical field
The present invention relates to bluetooth technical field of measurement and test, be related specifically to the Bluetooth pairing methods in a kind of test and system.
Background technology
Bluetooth technology, as a kind of wireless access way, is the open communication standard realizing voice-and-data wireless transmission.Bluetooth technology makes low bandwidth radio connect and becomes simple, thus can easily be dissolved in our daily life.Current bluetooth is quite extensive in the application of audio area, and such as user can be sent to the song on mobile phone or PC in the power amplifier of band Bluetooth function by bluetooth and play, thus enjoys the audio more shaken.
When testing bluetooth equipment, first correct pairing must be carried out.The method adopted in prior art is that first carrying out search by test module searches Devices to test, then in the result of search, select the name of Devices to test, rearmost point connection is matched, for large batch of production test, there is the low problem of testing efficiency in above-mentioned this mode of being undertaken matching by search.
Summary of the invention
Main purpose of the present invention there is provided the Bluetooth pairing methods in a kind of test, is intended to improve testing efficiency.
The embodiment of the invention discloses the Bluetooth pairing methods in a kind of test, comprise the following steps:
Test module sends bluetooth test command to the address acquisition module with its wired connection;
Described address acquisition module obtains the Bluetooth address of bluetooth module, and described Bluetooth address is sent to described test module;
Described test module, according to described Bluetooth address, matches with described bluetooth module.
Preferably, described test module is according to described Bluetooth address, and the step of carrying out matching with described bluetooth module specifically comprises:
When described test module receives described Bluetooth address, send answer signal;
Judge whether described address acquisition module receives described answer signal, in this way, then described test module is set up bluetooth with described bluetooth module and is connected; As no, then described address acquisition module retransmits described Bluetooth address to described test module after Preset Time, until the number of times receiving described answer signal or retransmit described Bluetooth address exceedes preset times.
Preferably, when described test module receives described Bluetooth address, the step sending answer signal specifically comprises:
When described test module receives described Bluetooth address, judge current whether pairing with another bluetooth module, if so, then disconnect current bluetooth and connect, and send answer signal to the described address acquisition module of current connection; If not, then answer signal is sent directly to the described address acquisition module of current connection.
The embodiment of the invention also discloses the Bluetooth pairing system in a kind of test, comprise the test module of wired connection successively, address acquisition module and bluetooth module, wherein:
Described address acquisition module, for obtaining the Bluetooth address of described bluetooth module, and is sent to described test module by described Bluetooth address;
Described test module, for sending bluetooth test command; Also for according to described Bluetooth address, match with described bluetooth module.
Preferably, described address acquisition module is the address acquisition chip independent of described bluetooth module.
Preferably, described test module, also for when receiving described Bluetooth address, sends answer signal;
Described address acquisition module, also receives described answer signal for judging whether, in this way, then described test module is set up bluetooth with described bluetooth module and is connected; As no, then described address acquisition module retransmits described Bluetooth address to described test module after Preset Time, until the number of times receiving described answer signal or retransmit described Bluetooth address exceedes preset times.
Preferably, described test module, also for when receiving described Bluetooth address, judges current whether pairing with another bluetooth module, if so, then disconnects current bluetooth and connects, and sends answer signal to the described address acquisition module of current connection; If not, then answer signal is sent directly to the described address acquisition module of current connection.
Bluetooth pairing methods in test disclosed in this invention, by by test module, address acquisition module and bluetooth module wired connection, after test module sends bluetooth test command to address acquisition module, address acquisition module obtains the Bluetooth address of bluetooth module, and send it to test module, test module matches according to Bluetooth address and bluetooth module, bluetooth module is searched by the advanced line search of test module in hinge structure, then in the result of search, select the name of bluetooth module to be measured, last technical scheme of mutually carrying out matching, present invention eliminates search, select and the step be connected, man-to-man pairing is realized by wired connection, simplify pairing process, there is the advantage that testing efficiency is high when large batch of production test.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of an execution mode of Bluetooth pairing methods during the present invention tests;
Fig. 2 is the idiographic flow schematic diagram of step S13 in Fig. 1;
Fig. 3 is the idiographic flow schematic diagram of step S21 in Fig. 2;
Fig. 4 is the structural representation of an execution mode of Bluetooth pairing system during the present invention tests.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention discloses the Bluetooth pairing methods in a kind of test, when needs carry out bluetooth test, first by Test Host and bluetooth equipment to be measured start, Test Host is connected by UART with bluetooth equipment to be measured, wherein, Test Host comprises test module, and bluetooth equipment to be measured comprises bluetooth module and obtains the address acquisition module of bluetooth module address.Certainly in other variant embodiment, address acquisition module is not limited to be arranged in bluetooth equipment to be measured, address acquisition module can also be the address acquisition chip independent of bluetooth equipment to be measured, and address acquisition chip is connected with test module and bluetooth module respectively by UART.
Be the schematic flow sheet of an execution mode of Bluetooth pairing methods during the present invention tests with reference to Fig. 1, Fig. 1, the Bluetooth pairing methods in the present embodiment in test comprises the following steps:
Step S11, test module send bluetooth test command to the address acquisition module with its wired connection.
In embodiments of the present invention, test module and address acquisition module obtain the Bluetooth address of bluetooth module by wired connection, and the pairing of test module and bluetooth module is carried out by wireless connections, so before matching, test module need be connected with address acquisition module.Now, test module can detect whether there is connected address acquisition module automatically, and sends bluetooth test command to connected address acquisition module, requires the Bluetooth address obtaining bluetooth module.Also can when test module be connected with bluetooth equipment to be measured, press test button to send bluetooth test command to the address acquisition module in connected bluetooth equipment to be measured by tester, require the Bluetooth address of the bluetooth module obtained in connected bluetooth equipment to be measured.
Step S12, address acquisition module obtains the Bluetooth address of bluetooth module, and this Bluetooth address is sent to test module.
After address acquisition module receives bluetooth test command, perform the operation of the Bluetooth address obtaining bluetooth module, address acquisition module can be the MCU or other microprocessors that are connected with bluetooth module in prior art, the relative program obtaining bluetooth module address is write in the MCU that only need be connected with bluetooth module in the prior art or other microprocessors, without the need to increasing other hardware device, i.e. relatively existing bluetooth equipment to be measured, bluetooth equipment to be measured of the present invention does not have hardware to increase cost.
Step S13, test module, according to Bluetooth address, matches with bluetooth module.
This Bluetooth address is sent to test module after obtaining Bluetooth address by address acquisition module, and test module receives this Bluetooth address, and according to this Bluetooth address, matches with bluetooth module.
Bluetooth pairing methods in test disclosed in this invention, by by test module, address acquisition module and bluetooth module wired connection, after test module sends bluetooth test command to address acquisition module, address acquisition module obtains the Bluetooth address of bluetooth module, and send it to test module, test module matches according to Bluetooth address and bluetooth module, bluetooth module is searched by the advanced line search of test module in hinge structure, then in the result of search, select the name of bluetooth module to be measured, last technical scheme of mutually carrying out matching, present invention eliminates search, select and the step be connected, man-to-man pairing is realized by wired connection, simplify pairing process, there is the advantage that testing efficiency is high when large batch of production test.
With reference to the idiographic flow schematic diagram that Fig. 2, Fig. 2 are step S13 in Fig. 1.In the present embodiment, " step S13, test module, according to Bluetooth address, matches with bluetooth module " specifically comprises the following steps:
Step S21, when test module receives Bluetooth address, sends answer signal.
This Bluetooth address is sent to test module after obtaining Bluetooth address by address acquisition module, and test module receives the Bluetooth address from address acquisition module.In a particular application, Test Host may due to the reason of self performance, make test module cannot receive the Bluetooth address of address acquisition module transmission, now can restart Test Host or to Test Host initialization, to overcome the situation causing because of Test Host self and cannot receive the Bluetooth address that address acquisition module sends.Certainly may be also other reasons, now can guarantee that test module receives the Bluetooth address sent by address acquisition module by other means, if test module is in the present embodiment after receiving Bluetooth address, arrived the answer signal of Bluetooth address to address acquisition module transmission and reception, it receives Bluetooth address to inform address acquisition module.
Step S22, judges whether address acquisition module receives answer signal;
If address acquisition module receives this answer signal, then address acquisition module no longer sends Bluetooth address to test module, and performs step S23; If address acquisition module does not receive this answer signal, then perform step S24.
Step S23, bluetooth module and test module are set up bluetooth and are connected.
Step S24, retransmits Bluetooth address in Preset Time back testing module, until the number of times receiving answer signal or repeating transmission Bluetooth address exceedes preset times.Otherwise repeat the step retransmitting Bluetooth address in Preset Time back testing module.
When address acquisition module receives answer signal, show that test module and bluetooth module can match, perform step S23; When the number of times that address acquisition module retransmits Bluetooth address exceedes preset times, then terminate the pairing of test module and bluetooth module in advance.Above-mentioned Preset Time is 5s ~ 10s, and preferably, Preset Time is 5s; The value of preset times is 2 ~ 5, and preferably, the value of preset times is 3.
With reference to the idiographic flow schematic diagram that Fig. 3, Fig. 3 are step S21 in Fig. 2.In the present embodiment, " step S21, test module receives Bluetooth address, sends answer signal " specifically comprises the following steps:
Step S31, when test module receives Bluetooth address, judges current whether bluetooth module to be measured matches with another.
In the process of test, test module is after matching with bluetooth module, and test module and bluetooth module carry out dependence test operation by the mode of wireless access.When address acquisition module is arranged in bluetooth equipment to be measured, in order to carry out the test of next time, the wired connection between test module and address acquisition module can be extracted, and separately connects other address acquisition module.When address acquisition module is the address acquisition chip independent of bluetooth equipment to be measured, the wired connection between address acquisition module and bluetooth module can be extracted, and separately connects other bluetooth modules.So when test module receives Bluetooth address, may carry out bluetooth with the bluetooth module during another bluetooth equipment to be measured is joined and be connected and it is tested, need to judge whether to match with another bluetooth module.If test module matches with another bluetooth module, then perform step S32, do not match with another bluetooth module if test module is current, then perform step S33.
Step S32, disconnects current bluetooth and connects, and sends answer signal to the address acquisition module of current connection.
Step S33, the address acquisition module to current connection sends answer signal.
The invention also discloses the Bluetooth pairing system in a kind of test, with reference to Fig. 4, Fig. 4 is the structural representation of an execution mode of Bluetooth pairing system during the present invention tests, and the Bluetooth pairing system in the present embodiment in test comprises the test module 1 be arranged in Test Host, the address acquisition module 2 be connected by UART with test module 1 and the bluetooth module 3 be connected by UART with address acquisition module 2.In a particular embodiment, address acquisition module 2 and bluetooth module 3 can all be arranged in bluetooth equipment to be measured; Certainly such setting is also not limited to, the address acquisition chip that can also to be address acquisition module 2 be independent of bluetooth equipment to be measured.Wherein, address acquisition module 2, for obtaining the Bluetooth address of bluetooth module 3, and is sent to test module 1 by Bluetooth address; Test module 1, for sending bluetooth test command; Also for according to Bluetooth address, match with bluetooth module 3.
In a particular embodiment, test module 1, also for when receiving Bluetooth address, sends answer signal; Address acquisition module 2, also receives answer signal for judging whether, in this way, then test module 1 is set up bluetooth with bluetooth module 3 and is connected; As no, then retransmit Bluetooth address in Preset Time back testing module 1, until the number of times receiving answer signal or repeating transmission Bluetooth address exceedes preset times.
In a particular embodiment, test module 1, also for when receiving Bluetooth address, judges current whether pairing with another bluetooth module, if so, then disconnects current bluetooth and connects, and send answer signal to the address acquisition module 2 of current connection; If not, then answer signal is sent directly to the address acquisition module 2 of current connection.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (5)

1. the Bluetooth pairing methods in test, is characterized in that, comprise the following steps:
Test module detects whether there is connected address acquisition module, and sends bluetooth test command to the address acquisition module with its wired connection;
Described address acquisition module obtains the Bluetooth address of bluetooth module, and described Bluetooth address is sent to described test module;
When described test module receives described Bluetooth address, send answer signal, judge whether described address acquisition module receives described answer signal;
As no, then described address acquisition module retransmits described Bluetooth address to described test module after Preset Time, until the number of times receiving described answer signal or retransmit described Bluetooth address exceedes preset times;
In this way, then described test module is according to described Bluetooth address, matches with described bluetooth module.
2. the Bluetooth pairing methods in test according to claim 1, is characterized in that, when described test module receives described Bluetooth address, the step sending answer signal specifically comprises:
When described test module receives described Bluetooth address, judge current whether pairing with another bluetooth module, if so, then disconnect current bluetooth and connect, and send answer signal to the described address acquisition module of current connection; If not, then answer signal is sent directly to the described address acquisition module of current connection.
3. the Bluetooth pairing system in test, is characterized in that, comprise the test module of wired connection successively, address acquisition module and bluetooth module, wherein:
Described address acquisition module, for obtaining the Bluetooth address of described bluetooth module, and is sent to described test module by described Bluetooth address;
Described test module, for detecting whether there is connected address acquisition module, and sends bluetooth test command to the address acquisition module with its wired connection; Time also for receiving described Bluetooth address, send answer signal, judge whether described address acquisition module receives described answer signal, as no, then described address acquisition module retransmits described Bluetooth address to described test module after Preset Time, until the number of times receiving described answer signal or retransmit described Bluetooth address exceedes preset times; In this way, then described test module is according to described Bluetooth address, matches with described bluetooth module.
4. system according to claim 3, is characterized in that, described address acquisition module is the address acquisition chip independent of described bluetooth module.
5. system according to claim 3, is characterized in that,
Described test module, also for when receiving described Bluetooth address, judges current whether pairing with another bluetooth module, if so, then disconnects current bluetooth and connects, and sends answer signal to the described address acquisition module of current connection; If not, then answer signal is sent directly to the described address acquisition module of current connection.
CN201210335410.2A 2012-09-11 2012-09-11 Bluetooth pairing method and system in test Active CN102833021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210335410.2A CN102833021B (en) 2012-09-11 2012-09-11 Bluetooth pairing method and system in test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210335410.2A CN102833021B (en) 2012-09-11 2012-09-11 Bluetooth pairing method and system in test

Publications (2)

Publication Number Publication Date
CN102833021A CN102833021A (en) 2012-12-19
CN102833021B true CN102833021B (en) 2015-08-19

Family

ID=47336006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210335410.2A Active CN102833021B (en) 2012-09-11 2012-09-11 Bluetooth pairing method and system in test

Country Status (1)

Country Link
CN (1) CN102833021B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103323767B (en) * 2013-06-25 2015-11-18 福州瑞芯微电子股份有限公司 A kind of method and system thereof of testing bluetooth module on embedded PCB A
CN103561478A (en) * 2013-10-10 2014-02-05 华为终端有限公司 Method and device for automatically achieving wireless connection between devices
CN104639213A (en) * 2013-11-11 2015-05-20 上海山景集成电路股份有限公司 Method and system for Bluetooth matching on basis of USB (universal serial bus) cable
CN108834123B (en) * 2014-04-15 2021-02-09 瑞昱半导体股份有限公司 Wireless communication system and related wireless device
CN105790801B (en) * 2016-03-11 2019-08-09 青岛海信电器股份有限公司 The pairing test method and test device of a kind of electronic equipment and bluetooth equipment
CN105872882A (en) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 Method and terminal for matched connection of Bluetooth earphones and Bluetooth earphones
CN108337738A (en) * 2016-12-30 2018-07-27 乐视汽车(北京)有限公司 Bluetooth connection method for building up, device and vehicle
WO2018161370A1 (en) * 2017-03-06 2018-09-13 深圳大趋智能科技有限公司 Automatic testing method, device, and system for bluetooth pos terminal
CN107980233A (en) * 2017-03-06 2018-05-01 深圳大趋智能科技有限公司 Automatic test approach, the apparatus and system of Bluetooth POS terminal
WO2019090454A1 (en) * 2017-11-07 2019-05-16 深圳市汇顶科技股份有限公司 Bluetooth test system and method
CN109462842B (en) * 2018-09-14 2022-03-22 北京中电华大电子设计有限责任公司 Automatic control method for downloading and testing Bluetooth SIM card
CN110418358A (en) * 2019-07-10 2019-11-05 珠海荣邦智能科技有限公司 The bluetooth test method and device of circuit board
CN111106883A (en) * 2019-12-09 2020-05-05 惠州拓邦电气技术有限公司 Test method and Bluetooth equipment, control method and test device, and test system
CN111343559A (en) * 2020-03-10 2020-06-26 深圳市众智高新电子科技有限公司 Automatic testing system and method for Bluetooth audio product
CN112615683B (en) * 2020-12-17 2023-04-07 四川虹美智能科技有限公司 Communication module function detection system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662530A (en) * 2008-08-25 2010-03-03 深圳富泰宏精密工业有限公司 Mobile phone with Bluetooth function and test method thereof
CN102291668A (en) * 2011-07-12 2011-12-21 广州市立伟电子有限公司 Method and system for testing Bluetooth earphones in batches

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706749B2 (en) * 2005-11-07 2010-04-27 Nokia Corporation Supporting a setup of a wireless connection
CN101252376B (en) * 2008-03-27 2013-06-12 宇龙计算机通信科技(深圳)有限公司 System and method for connecting blue tooth equipment and mobile communication terminal thereof
CN102243281B (en) * 2011-07-12 2013-09-04 广州市立伟电子有限公司 Batch test method and system for PCBA (Printed Circuit Board Assembly) of Bluetooth headset

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662530A (en) * 2008-08-25 2010-03-03 深圳富泰宏精密工业有限公司 Mobile phone with Bluetooth function and test method thereof
CN102291668A (en) * 2011-07-12 2011-12-21 广州市立伟电子有限公司 Method and system for testing Bluetooth earphones in batches

Also Published As

Publication number Publication date
CN102833021A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102833021B (en) Bluetooth pairing method and system in test
CN105577293B (en) A kind of test method of bluetooth equipment, apparatus and system
CN112020048B (en) Bluetooth device pairing method, device and storage medium
CN111107528B (en) Bluetooth testing method and testing machine
JP5952808B2 (en) System and method for using multiple network addresses to establish synchronization between a device under test and a test equipment that controls the test
CN102421132B (en) Test system, test equipment and test method for mobile terminal
US20150256018A1 (en) Mobile terminal, master data communication device and mobile terminal charging system and method
RU2008141296A (en) DEVICE AND FAST ACCESS METHOD IN A WIRELESS COMMUNICATION SYSTEM
WO2014114268A1 (en) Locating method and device for connection between base station antenna feed port and antenna port
CN109120358B (en) Wireless radio frequency signal testing method, mobile terminal, surveying equipment and system
CN103079286A (en) Method and device for intelligently disconnecting wifi (wireless fidelity) hot points
CN101291506A (en) TDSCDMA terminal testing system and testing method for transmitter and receiver
CN102934313A (en) Method for battery removal detection
US20210376644A1 (en) Battery Charging Method, Device, and Readable Storage Medium
WO2010075753A8 (en) Method and system for testing receiving sensitivity performance
US20130148519A1 (en) System and method for testing wireless network device
CN105656595A (en) Ingenious type examination room anti-cheating system and realization method thereof
CN111541502A (en) System and method for testing WiFi module
JP6574781B2 (en) System and method for testing a radio frequency transceiver by controlling a test flow via an induced interrupt
RU2016152243A (en) METHOD AND DEVICE FOR PROCESSING THE TOUCH REPORTING OF THE TOUCH SCREEN
CN101873185B (en) Sensitivity testing method, device and detection equipment of GSM (Global System for Mobile Communications) communication terminal
CN108391259B (en) Bluetooth rapid pairing method
CN109168153B (en) Bluetooth audio equipment testing method based on double Bluetooth adapters and single channel
CN105208574A (en) Method and device for detecting performance of wireless module of terminal
CN204305282U (en) A kind of blue teeth wireless microphone

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
CP03 Change of name, title or address

Address after: 516006 community 37, Zhongkai high tech Zone, Huizhou, Guangdong

Patentee after: Tongli Technology Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. 19 district

Patentee before: TONLY ELECTRONICS HOLDINGS Ltd.

CP03 Change of name, title or address