CN113766406B - Earphone testing method, system and device - Google Patents

Earphone testing method, system and device Download PDF

Info

Publication number
CN113766406B
CN113766406B CN202110886864.8A CN202110886864A CN113766406B CN 113766406 B CN113766406 B CN 113766406B CN 202110886864 A CN202110886864 A CN 202110886864A CN 113766406 B CN113766406 B CN 113766406B
Authority
CN
China
Prior art keywords
bluetooth address
earphone
bluetooth
address
radio frequency
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
CN202110886864.8A
Other languages
Chinese (zh)
Other versions
CN113766406A (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.)
Shenzhen Grandsun Electronics Co Ltd
Original Assignee
Shenzhen Grandsun 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 Shenzhen Grandsun Electronics Co Ltd filed Critical Shenzhen Grandsun Electronics Co Ltd
Priority to CN202110886864.8A priority Critical patent/CN113766406B/en
Publication of CN113766406A publication Critical patent/CN113766406A/en
Application granted granted Critical
Publication of CN113766406B publication Critical patent/CN113766406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/004Monitoring arrangements; Testing arrangements for microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's

Abstract

The application is suitable for the technical field of earphones, and provides a method, a system and a device for earphone testing. When a radio frequency test instruction is received, the embodiment of the application reads the first Bluetooth address of the first earphone unit and the second Bluetooth address of the second earphone unit; when the first Bluetooth address and the second Bluetooth address are the same, updating the first Bluetooth address to obtain a third Bluetooth address; transmitting a radio frequency test instruction to the first earphone unit based on the third Bluetooth address; and the earphone tester can automatically complete the steps of Bluetooth address identification, bluetooth connection and radio frequency test, so that the manual intervention is reduced, the accuracy of radio frequency test is improved, the degree of automation of radio frequency test is improved, and the radio frequency test efficiency is improved.

Description

Earphone testing method, system and device
Technical Field
The application belongs to the technical field of earphones, and particularly relates to a method, a system and a device for earphone testing.
Background
With the rapid development of the Bluetooth technology, the transmission stability, the transmission delay and other performance performances of the Bluetooth headset are greatly improved, the audience range is gradually expanded, and the output requirement and the audio quality requirement of the market on the Bluetooth headset are also continuously improved. At present, a bluetooth headset generally comprises two headset units, and the two headset units adopt the same bluetooth address (Bluetooth Address), so that a terminal device of a user can be connected with the two headset units at the same time, and the left and right dual-channel audio transmission is realized, thereby achieving a stereo effect to improve the audio quality.
The bluetooth earphone needs to perform Radio Frequency (RF) test before leaving the factory, so that two earphone units can be stably connected with terminal equipment of a user, and as the two earphone units adopt the same bluetooth address, when being connected with one earphone unit and performing Radio Frequency test, the bluetooth earphone is easy to perform misrecognition, is connected with the other earphone unit and performs Radio Frequency test synchronously, so that acquired Radio Frequency test data is inaccurate, and Radio Frequency test accuracy and Radio Frequency test efficiency are affected.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method, a system, and a device for testing an earphone, so as to solve the problem that when two existing earphone units adopt the same bluetooth address and are connected to one earphone unit and perform radio frequency test, it is easy to perform radio frequency test in synchronization with connection of another earphone unit by misrecognition, resulting in inaccurate acquired radio frequency test data, and affecting radio frequency test accuracy and radio frequency test efficiency.
A first aspect of an embodiment of the present application provides a method for testing an earphone, which is applied to an earphone tester, and the method includes:
when a radio frequency test instruction is received, reading a first Bluetooth address of the first earphone unit and a second Bluetooth address of the second earphone unit;
when the first Bluetooth address and the second Bluetooth address are the same, updating the first Bluetooth address to obtain a third Bluetooth address;
transmitting a radio frequency test instruction to the first earphone unit based on the third Bluetooth address;
and transmitting a radio frequency test instruction to the second earphone unit based on the second Bluetooth address.
According to the method for testing the earphone, after the earphone tester receives the radio frequency test instruction, the first earphone unit and the second earphone unit can be identified and respectively connected, and the earphone tester can automatically complete the steps of Bluetooth address identification, bluetooth connection and radio frequency test, so that manual intervention is reduced, accuracy of radio frequency test is improved, degree of automation of radio frequency test is improved, and radio frequency test efficiency is improved.
A second aspect of an embodiment of the present application provides a method for testing an earphone, which is applied to a bluetooth earphone, and the method includes:
when the Bluetooth address of the first earphone unit is the first Bluetooth address and the third Bluetooth address is received, updating the first Bluetooth address of the first earphone unit to the third Bluetooth address;
when the Bluetooth address of the first earphone unit is the third Bluetooth address and the first Bluetooth address is received, the third Bluetooth address of the first earphone unit is updated to the first Bluetooth address.
According to the second aspect of the embodiment of the application, a Bluetooth address updating mechanism is arranged, so that the first earphone unit can timely respond to and update the Bluetooth address sent by the earphone tester, the interaction stability between the earphone tester and the tested Bluetooth earphone is improved, and the stability of the radio frequency test is improved.
A third aspect of the embodiment of the present application provides a system for testing headphones, including a headphone tester and a bluetooth headset, where the bluetooth headset includes a first headphone unit and a second headphone unit, and the first headphone unit and the second headphone unit are respectively connected with the headphone tester;
the earphone tester is used for executing the steps of the earphone testing method provided by the first aspect of the embodiment of the application;
the first and second earphone units are used for executing the steps of the earphone testing method provided in the second aspect of the embodiment of the present application.
The third aspect of the embodiment of the application provides a system for testing an earphone, wherein after receiving a radio frequency test instruction, an earphone tester can automatically complete steps of Bluetooth address identification, bluetooth connection and radio frequency test, and a Bluetooth address updating mechanism is arranged on a Bluetooth earphone, so that a first earphone unit can timely respond and update a Bluetooth address sent by the earphone tester, human intervention is reduced, interaction stability of the earphone tester and the Bluetooth earphone is ensured, and radio frequency test efficiency and stability are improved.
A fourth aspect of an embodiment of the present application provides an apparatus for testing headphones, including:
the reading module is used for reading the first Bluetooth address of the first earphone unit and the second Bluetooth address of the second earphone unit when the radio frequency test instruction is received;
the updating module is used for updating the first Bluetooth address to obtain a third Bluetooth address when the first Bluetooth address is the same as the second Bluetooth address;
the first test module is used for sending a radio frequency test instruction to the first earphone unit based on the third Bluetooth address;
and the second test module is used for sending a radio frequency test instruction to the second earphone unit based on the second Bluetooth address.
It will be appreciated that the advantages of the fourth aspect may be found in the related description of the first aspect, and will not be described in detail herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a scenario in which an earphone tester provided by an embodiment of the present application communicates with a bluetooth earphone through a wired or wireless connection;
fig. 2 is a schematic structural diagram of an earphone tester according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a method for testing headphones according to an embodiment of the present application;
fig. 4 is a schematic diagram of a scenario of earphone testing provided by an embodiment of the present application;
FIG. 5 is a timing diagram illustrating interactions between a headset tester and a Bluetooth headset according to an embodiment of the present application;
fig. 6 is another flow chart of a method for testing headphones according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another timing sequence of interaction between a headset tester and a Bluetooth headset provided by an embodiment of the present application;
fig. 8 is another flow chart of a method for testing headphones according to an embodiment of the present application;
fig. 9 is a schematic diagram of a scenario of a system for testing headphones provided by an embodiment of the present application;
fig. 10 is a schematic structural diagram of an apparatus for testing headphones according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In application, the electronic device cannot distinguish two earphone units with the same Bluetooth address, so that when the electronic device performs radio frequency test on one earphone unit, the other earphone unit is easy to be identified by mistake and the radio frequency test is performed synchronously, the obtained radio frequency test data is inaccurate, and the accuracy and the efficiency of the radio frequency test are affected.
In view of the above technical problems, an embodiment of the present application provides a method for testing headphones, where when an electronic device detects that bluetooth addresses of two headphone units are the same, the bluetooth address of one of the headphone units is updated, so that the electronic device can identify and connect the two headphone units respectively, and obtain radio frequency test data of the two headphone units respectively, thereby improving radio frequency test accuracy.
The earphone testing method provided by the embodiment of the application can be applied to any electronic equipment capable of driving and controlling the Bluetooth earphone, such as an earphone tester or terminal equipment with data processing and control functions connected with the earphone tester in a wired or wireless communication manner. The terminal device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or the like, and the embodiment of the present application does not limit the specific type of the electronic device.
In application, a bluetooth headset suitable for the method for testing a headset provided by the embodiment of the application includes at least two bluetooth chips (bluetooth chips), and when the bluetooth headset includes two bluetooth chips, the first headset unit and the second headset unit of the bluetooth headset may be respectively provided with one bluetooth Chip. The Bluetooth Headset can be a Headset (Headset-Bluetooth) or an in-ear Headset (earpieces-Bluetooth) according to the wearing type, and the specific type of the Bluetooth Headset is not limited in the embodiment of the application.
Fig. 1 illustrates a schematic diagram of communication between the headset tester 100 and the bluetooth headset 200 through a wired or wireless connection when the electronic device is the headset tester 100 and the bluetooth headset 200 is a headset, where the headset tester and the bluetooth headset may form a wired connection through a Serial Interface (Serial Interface), and the Serial Interface may be specifically a USB (Universal Serial Bus ) Type-a Interface, a USB Type-C Interface, a UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiver Transmitter) Interface, an HCI (Host Controller Interface, a host control Interface), or a Lightning Interface, which are different types of Serial interfaces. The earphone tester and the Bluetooth earphone can form Wireless connection through Wireless communication modes such as Bluetooth, a ZigBee protocol (ZigBee), an Optical Wireless communication (Optical Wireless), a Wireless local area network (Wireless Local Area Network, WLAN), near field communication (Near Field Communication, NFC) and the like, wherein Bluetooth standards supported by the earphone tester can comprise different versions of 1.1, 1.2, 2.0, 2.1, 3.0, 4.0, 5.0, 5.1, 5.2 and the like, and Bluetooth frequency bands supported by the earphone tester can comprise ISM (Industrial-Scientific-Medical) frequency bands ranging from 2.4Ghz to 2.485 Ghz.
Fig. 2 schematically shows a structural diagram of the earphone tester 100. Earphone tester 100 may include a processor 110, a wired communication module 120, a memory 130, a wireless communication module 140, a power module 150, a radio frequency test module 160, an audio test module 170, keys 180, and a display screen 190. The wired communication module 120 includes a USB Type-a interface 121, a USB Type-C interface 122, a UART interface 123, an HCI interface 124, a Lightning interface 125, and the like, the wireless communication module 140 includes wireless communication units such as bluetooth, optical wireless communication, zigBee, wlan, and NFC, and the radio frequency test module 160 includes an output power test unit 161, a sensitivity test unit 162, a frequency offset test unit 163, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the earphone tester 200. In other embodiments of the application, headset tester 200 may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input and output devices, network access devices, and the like. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In application, the processor may be a central processing unit (Central Processing Unit, CPU), which may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In applications, the memory may in some embodiments be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory may in other embodiments also be an external storage device of the terminal device, such as a plug-in hard disk provided on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store an operating system, application programs, boot loader (BootLoader), data, and other programs, etc., such as program code for a computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.
As shown in fig. 3, the method for testing the earphone provided by the embodiment of the application is applied to an earphone tester, and includes the following steps S301 to S304:
step S301, when a radio frequency test instruction is received, a first bluetooth address of the first earphone unit and a second bluetooth address of the second earphone unit are read.
In an application, the first earphone unit and the second earphone unit may be left and right earphone units of a bluetooth earphone, respectively. When the first earphone unit is a left earphone unit of the Bluetooth earphone, the second earphone unit is a right earphone unit of the Bluetooth earphone; similarly, when the first earphone unit is a right earphone unit of the bluetooth earphone, the second earphone unit is a left earphone unit of the bluetooth earphone. The first earphone unit and the second earphone unit can respectively receive the radio frequency test instruction and conduct radio frequency test.
In application, a tester can send a radio frequency test instruction to the earphone tester through any terminal equipment, and also can call the radio frequency test instruction on the earphone tester, and the radio frequency test instruction is sent to the Bluetooth earphone through the earphone tester and is subjected to radio frequency test. Before the earphone tester sends the radio frequency test instruction to the Bluetooth earphone, the earphone tester can read the first Bluetooth address of the first earphone unit and the second Bluetooth address of the second earphone unit through wired connection or wireless connection with the Bluetooth earphone, so that Bluetooth address identification of the first earphone unit and the second earphone unit is realized.
In application, the earphone tester can also read the Bluetooth Address by scanning the Address Code (Address Code) of the Bluetooth earphone. Specifically, the earphone tester can be connected with a code scanning gun (Barcode Scanner), and the Bluetooth earphone can print a first address code corresponding to a first Bluetooth address and a second address code corresponding to a second Bluetooth address on a machine body before leaving a factory; the code scanning gun can acquire a first Bluetooth address by scanning a first address code, and can acquire a second Bluetooth address by scanning a second address code; the address code may be a string of numbers representing the bluetooth address, a bar code representing the bluetooth address, or a two-dimensional code representing the bluetooth address.
Step S302, when the first Bluetooth address and the second Bluetooth address are the same, updating the first Bluetooth address to obtain a third Bluetooth address.
In application, when the earphone tester detects that the acquired first bluetooth address and the acquired second bluetooth address are the same, the risk that another bluetooth earphone unit is erroneously identified and the radio frequency test is erroneously performed exists when the radio frequency test is performed on one bluetooth earphone unit. The earphone tester may update the first bluetooth address to obtain a third bluetooth address, where the third bluetooth address is used to change the first bluetooth address of the first earphone unit. The third bluetooth address is different from the first bluetooth address, and the third bluetooth address can be set or generated according to actual needs.
In one embodiment, step S302 includes:
when the first Bluetooth address is the same as the second Bluetooth address, updating the first Bluetooth address to obtain a third Bluetooth address, and sending the third Bluetooth address to the first earphone unit.
In the application, after the earphone tester updates the first Bluetooth address to obtain the third Bluetooth address, the third Bluetooth address can be sent to the first earphone unit, so that the first earphone unit updates the first Bluetooth address to the third Bluetooth address, and the earphone tester can establish Bluetooth connection with the first earphone unit based on the third Bluetooth address.
As shown in the schematic diagram of the scenario in fig. 4, the headset tester 100 reads the first bluetooth address of the first headset unit 201 and the second bluetooth address of the second headset unit 202, and transmits the third bluetooth address to the first headset unit 201.
In one embodiment, step S302 includes:
when the first Bluetooth address is the same as the second Bluetooth address, updating the high address of the first Bluetooth address to a preset high address, or updating the low address of the first Bluetooth address to a preset low address, obtaining a third Bluetooth address, and sending the third Bluetooth address to the first earphone unit.
In application, an update method of the first bluetooth address is illustrated below. The first bluetooth address includes a high address (Organizationally Unique Identifier, OUI) and a low address (Lower Address Part, LAP), each of which includes 6 digits. When the earphone tester detects that the acquired first Bluetooth address and the second Bluetooth address are the same, the high address of the first Bluetooth address can be updated to be a preset high address, and the low address of the first Bluetooth address is unchanged; the low address of the first Bluetooth address can be updated to be a preset low address, and the high address of the first Bluetooth address is unchanged; the high address of the first bluetooth address may be updated to a preset high address, and the low address of the first bluetooth address may be updated to a preset low address.
In the application, the preset high address and the preset low address can be preset according to actual needs; or after the first bluetooth address is obtained, a preset high address is obtained according to the high address of the first bluetooth address, or a preset low address is obtained according to the low address of the first bluetooth address, wherein the preset high address is different from the high address of the first bluetooth address, and the preset low address is different from the low address of the first bluetooth address. After the earphone tester updates the first Bluetooth address to obtain a third Bluetooth address, the third Bluetooth address can be sent to the first earphone unit, so that the first earphone unit updates the first Bluetooth address to the third Bluetooth address, and the earphone tester can establish Bluetooth connection with the first earphone unit based on the third Bluetooth address.
Step S303, a radio frequency test command is sent to the first earphone unit based on the third bluetooth address.
In application, the earphone tester can establish Bluetooth connection with the first earphone unit based on the third Bluetooth address, and can also send a radio frequency test instruction through the third Bluetooth address, and the first earphone unit adopting the third Bluetooth address can receive the radio frequency test instruction and perform radio frequency test.
In one embodiment, step S303 includes:
and establishing connection with the first earphone unit based on the third Bluetooth address, and sending a radio frequency test instruction to the first earphone unit to enable the first earphone unit to enter a signaling mode (Device Under Test) so as to carry out radio frequency test on the first earphone unit.
In the application, when the first earphone unit receives the radio frequency test instruction, the first earphone unit can be controlled to enter a signaling mode to perform radio frequency test. Specifically, when the first earphone unit is in the signaling mode, the first earphone unit can receive and respond to the compensation signal and the audio signal for driving the first earphone unit to work, wherein the earphone tester can send the compensation signal and the audio signal after sending the radio frequency test instruction, and can integrate the compensation signal and the audio signal into the radio frequency test instruction; the earphone tester can also acquire data in the working process of the first earphone unit, and generates radio frequency test data by processing the data, wherein the processing operation can be specifically calculating an average value according to the data, acquiring a peak value or calculating an error according to a reference value and other mathematical operations, and the earphone tester can compare the radio frequency test data with preset standard data so as to judge whether the first earphone unit works normally.
In applications, the radio frequency test data may include multiple data such as Output Power (Output Power), carrier frequency offset (Carrier Frequency Offset), single-slot sensitivity (Single Slot PacketsSensitivity), multislot sensitivity (Multiply Slot PacketsSensitivity), modulation factor (Modulation Characteristics), frequency tolerance (Frequency Tolerance), etc.; each item of data corresponds to preset standard data, and the preset standard data is used for standardizing each item of data of the first earphone unit when the first earphone unit works. Each preset standard data can be a specific value or a range of values, and the preset standard data is obtained according to actual experimental tests of the first earphone unit. The embodiment of the application does not limit the data types and the data sizes of the radio frequency test data and the preset standard data.
In the application, when each item of data in the radio frequency test data does not exceed the corresponding preset standard data, judging that the first earphone unit works normally; when any item of data in the radio frequency test data exceeds the corresponding preset standard data, judging that the first earphone unit does not work normally.
The comparison of the radio frequency test data with the preset standard data is illustrated below:
assuming that the radio frequency test data of the first earphone unit comprises output power and carrier frequency offset, the corresponding numerical range of the preset standard output power is-4 dBm (decibel milliwatt) to 4dBm, the numerical range of the preset standard carrier frequency offset is-40 KHz (kilohertz) to 40KHz, when the output power of the first earphone unit is 2dBm and the carrier frequency offset is 20KHz, two data in the radio frequency test data do not exceed the corresponding preset standard data, and judging that the first earphone unit works normally; when the output power of the first earphone unit is 5dBm and the carrier frequency offset is 20KHz, the output power in the radio frequency test data exceeds the corresponding preset standard data power, and the first earphone unit is judged to work abnormally.
Step S304, a radio frequency test instruction is sent to the second earphone unit based on the second Bluetooth address.
In one embodiment, step S304 includes:
and establishing connection with the second earphone unit based on the second Bluetooth address, and sending a radio frequency test instruction to the second earphone unit to enable the second earphone unit to enter a signaling mode, and performing radio frequency test on the second earphone unit.
In application, the test method in step S304 is identical to the radio frequency test method in step S303, and will not be described herein.
In one embodiment, step S302 further includes:
when the first Bluetooth address and the second Bluetooth address are different, a radio frequency test instruction is sent to the first earphone unit based on the first Bluetooth address;
and transmitting a radio frequency test instruction to the second earphone unit based on the second Bluetooth address.
In application, when the earphone tester detects that the acquired first bluetooth address and second bluetooth address are different, there is no risk of performing radio frequency identification on one bluetooth earphone unit by mistake on the other bluetooth earphone unit, and the earphone tester may send a radio frequency test instruction to the first earphone unit based on the first bluetooth address and send a radio frequency test instruction to the second earphone unit based on the second bluetooth address, so as to perform radio frequency test on the first earphone unit and the second earphone unit, where the radio frequency test method is consistent with the step S303 and the step S304, and will not be repeated herein.
In application, the earphone tester can identify and respectively connect the first earphone unit and the second earphone unit, and the earphone tester can automatically complete the steps of Bluetooth address identification, bluetooth connection and radio frequency test after receiving the radio frequency test instruction, thereby reducing human intervention, realizing the improvement of the accuracy of the radio frequency test and the degree of automation of the radio frequency test, and further improving the radio frequency test efficiency.
Fig. 5 schematically shows a timing diagram of the interaction between the headset tester 100 and the bluetooth headset 200 according to the method of fig. 3.
As shown in fig. 6, in one embodiment, based on the embodiment corresponding to fig. 3, steps S601 to S605 are included:
step S601, when a radio frequency test instruction is received, a first Bluetooth address of a first earphone unit and a second Bluetooth address of a second earphone unit are read;
step S602, when the first Bluetooth address and the second Bluetooth address are the same, updating the first Bluetooth address to obtain a third Bluetooth address;
step S603, transmitting a radio frequency test instruction to the first earphone unit based on the third bluetooth address;
step S604, a radio frequency test instruction is sent to a second earphone unit based on a second Bluetooth address;
step S605 resets the third bluetooth address of the first earphone unit to the first bluetooth address after the radio frequency test of the first earphone unit and the radio frequency test of the second earphone unit are completed.
In application, the steps S601 to S604 are consistent with the methods for testing the earphone provided in the steps S301 to S304, and are not described herein. The difference is that step S604 is followed by step S605, and step S605 is described below.
In application, after the radio frequency test of the first earphone unit and the radio frequency test of the second earphone unit are completed and the first earphone unit and the second earphone unit are judged to work normally, the earphone tester can reset the third Bluetooth address of the first earphone unit to the first Bluetooth address, so that the Bluetooth addresses of the first earphone unit and the second earphone unit are the same, a user can be ensured to connect the first earphone unit and the second earphone unit simultaneously based on the first Bluetooth address after the Bluetooth earphone leaves a factory, automatic reset of the Bluetooth address after the radio frequency test is completed is realized, and the integration level of the radio frequency test is improved.
In one embodiment, step S605 includes:
after the radio frequency test of the first earphone unit and the radio frequency test of the second earphone unit are completed, the first Bluetooth address is sent to the first earphone unit, and the third Bluetooth address of the first earphone unit is reset to the first Bluetooth address.
In application, the earphone tester is further used for sending the first Bluetooth address to the first earphone unit after the radio frequency test of the first earphone unit and the radio frequency test of the second earphone unit are completed, so that the first earphone unit updates the third Bluetooth address to the first Bluetooth address.
Fig. 7 schematically shows a timing diagram of the interaction between the headset tester 100 and the bluetooth headset 200 according to the method of fig. 6.
In application, the earphone testing method provided by the embodiment of the application reads the first Bluetooth address of the first earphone unit and the second Bluetooth address of the second earphone unit when the radio frequency testing instruction is received; when the first Bluetooth address and the second Bluetooth address are the same, updating the first Bluetooth address to obtain a third Bluetooth address; transmitting a radio frequency test instruction to the first earphone unit based on the third Bluetooth address; and the earphone tester can automatically complete the steps of Bluetooth address identification, bluetooth connection and radio frequency test, so that the manual intervention is reduced, the accuracy of radio frequency test is improved, the degree of automation of radio frequency test is improved, and the radio frequency test efficiency is improved.
As shown in fig. 8, the method for testing an earphone provided by the embodiment of the application is applied to a bluetooth earphone, and includes the following steps S801 and S802:
step S801, when the Bluetooth address of the first earphone unit is the first Bluetooth address and the third Bluetooth address is received, updating the first Bluetooth address of the first earphone unit to the third Bluetooth address;
step S802, when the Bluetooth address of the first earphone unit is the third Bluetooth address and the first Bluetooth address is received, updating the third Bluetooth address of the first earphone unit to the first Bluetooth address.
In the application, the first earphone unit may update the current bluetooth address when receiving the bluetooth address, specifically, update the first bluetooth address to a third bluetooth address when the current bluetooth address is the first bluetooth address and the third bluetooth address is received; and when the current Bluetooth address is the third Bluetooth address and the first Bluetooth address is received, updating the third Bluetooth address to the first Bluetooth address. By setting the Bluetooth address updating mechanism, the first earphone unit can timely respond to and update the Bluetooth address sent by the earphone tester, so that the interaction stability between the earphone tester and the tested Bluetooth earphone is improved, and the stability of radio frequency test is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
As shown in fig. 9, a system for testing headphones provided in an embodiment of the present application includes a headphone tester 100 and a bluetooth headset 200, where the bluetooth headset 200 includes a first headphone unit 201 and a second headphone unit 202, and the first headphone unit 201 and the second headphone unit 202 are respectively connected to the headphone tester 100.
In an application, the headset tester is configured to perform the steps of the method embodiment of headset testing applied to the headset tester, and the first headset unit and the second headset unit are configured to perform the steps of the method embodiment of headset testing applied to the bluetooth headset.
In application, the earphone tester can automatically complete the steps of Bluetooth address identification, bluetooth connection and radio frequency test after receiving a radio frequency test instruction, and the Bluetooth earphone is provided with a Bluetooth address updating mechanism, so that the first earphone unit can timely respond and update the Bluetooth address sent by the earphone tester, human intervention is reduced, the interaction stability of the earphone tester and the Bluetooth earphone is ensured, and the radio frequency test efficiency and stability are improved.
As shown in fig. 10, the embodiment of the present application further provides an apparatus for testing headphones, which is configured to perform the steps in the method embodiment of testing headphones applied to the headphone tester. The means for earphone testing may be virtual means (virtual appliance) in the terminal device, executed by a processor of the terminal device, or the terminal device itself.
As shown in fig. 10, an apparatus 10 for testing headphones according to an embodiment of the present application includes:
a reading module 11, configured to read, when receiving a radio frequency test instruction, a first bluetooth address of the first earphone unit and a second bluetooth address of the second earphone unit;
an updating module 12, configured to update the first bluetooth address to obtain a third bluetooth address when the first bluetooth address and the second bluetooth address are the same;
a first test module 13, configured to send a radio frequency test instruction to the first earphone unit based on the third bluetooth address;
the second testing module 14 is configured to send a radio frequency testing instruction to the second earphone unit based on the second bluetooth address.
In one embodiment, the update module 12 includes:
and the first sub-updating module is used for updating the first Bluetooth address to obtain a third Bluetooth address when the first Bluetooth address is the same as the second Bluetooth address, and sending the third Bluetooth address to the first earphone unit.
And the second sub-updating module is used for updating the high address of the first Bluetooth address to a preset high address or updating the low address of the first Bluetooth address to a preset low address when the first Bluetooth address and the second Bluetooth address are the same, obtaining a third Bluetooth address and sending the third Bluetooth address to the first earphone unit.
In one embodiment, the first test module 13 includes:
the first subtest module is used for establishing connection with the first earphone unit based on the third Bluetooth address, sending a radio frequency test instruction to the first earphone unit, enabling the first earphone unit to enter a signaling mode, and carrying out radio frequency test on the first earphone unit.
In one embodiment, the second test module 14 includes:
and the second sub-test module is used for establishing connection with the second earphone unit based on the second Bluetooth address, sending a radio frequency test instruction to the second earphone unit, enabling the second earphone unit to enter a signaling mode, and carrying out radio frequency test on the second earphone unit.
In one embodiment, the device 10 for earphone testing further comprises:
and the resetting module is used for resetting the third Bluetooth address of the first earphone unit to the first Bluetooth address after the radio frequency test of the first earphone unit and the radio frequency test of the second earphone unit are completed.
In application, each module in the earphone testing device can be a software program module, can be realized by different logic circuits integrated in a processor, and can also be realized by a plurality of distributed processors.
It should be noted that, because the content of information interaction and execution process between the modules and the embodiment of the method of the present application are based on the same concept, specific functions and technical effects thereof may be referred to in the method embodiment section, and details thereof are not repeated herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The functional modules in the embodiment may be integrated in one processing module, or each module may exist alone physically, or two or more modules may be integrated in one module, where the integrated modules may be implemented in a form of hardware or a form of software functional modules. In addition, the specific names of the functional modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photo terminal equipment, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed terminal device and method may be implemented in other manners. For example, the above-described embodiments of the terminal device are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division in actual implementation, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or modules, which may be in electrical, mechanical or other forms.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method of earphone testing, characterized by being applied to an earphone tester, the earphone tester being connected to a bluetooth earphone, the bluetooth earphone comprising a first earphone unit and a second earphone unit, the method comprising:
when a radio frequency test instruction is received, reading a first Bluetooth address of the first earphone unit and a second Bluetooth address of the second earphone unit;
when the first Bluetooth address and the second Bluetooth address are the same, updating the first Bluetooth address to obtain a third Bluetooth address;
transmitting a radio frequency test instruction to the first earphone unit based on the third Bluetooth address;
and transmitting a radio frequency test instruction to the second earphone unit based on the second Bluetooth address.
2. The method of claim 1, wherein updating the first bluetooth address to obtain a third bluetooth address when the first bluetooth address and the second bluetooth address are the same, comprises:
and when the first Bluetooth address is the same as the second Bluetooth address, updating the first Bluetooth address to obtain a third Bluetooth address, and sending the third Bluetooth address to the first earphone unit.
3. The method of claim 1, wherein the first bluetooth address comprises a high address and a low address;
when the first bluetooth address is the same as the second bluetooth address, updating the first bluetooth address to obtain a third bluetooth address, including:
and when the first Bluetooth address is the same as the second Bluetooth address, updating the high address of the first Bluetooth address to a preset high address, or updating the low address of the first Bluetooth address to a preset low address to obtain a third Bluetooth address, and sending the third Bluetooth address to the first earphone unit.
4. The method of claim 1, wherein the sending the radio frequency test instruction to the first earpiece unit based on the third bluetooth address comprises:
and establishing connection with the first earphone unit based on the third Bluetooth address, and sending a radio frequency test instruction to the first earphone unit, so that the first earphone unit enters a signaling mode, and performing radio frequency test on the first earphone unit.
5. The method of claim 1, wherein the sending the radio frequency test instruction to the second earpiece unit based on the second bluetooth address comprises:
and establishing connection with the second earphone unit based on the second Bluetooth address, and sending a radio frequency test instruction to the second earphone unit, so that the second earphone unit enters a signaling mode, and performing radio frequency test on the second earphone unit.
6. The method of claim 1, wherein the method further comprises:
and resetting the third Bluetooth address of the first earphone unit to the first Bluetooth address after the radio frequency test of the first earphone unit and the radio frequency test of the second earphone unit are completed.
7. The method of any one of claims 1 to 6, further comprising:
after the radio frequency test of the first earphone unit and the radio frequency test of the second earphone unit are completed, the first Bluetooth address is sent to the first earphone unit, and the third Bluetooth address of the first earphone unit is reset to the first Bluetooth address.
8. A method for testing a headset, the method being applied to a bluetooth headset, the bluetooth headset comprising a first headset unit and a second headset unit, the first headset unit and the second headset unit being connected to a headset tester, respectively, the method comprising:
when the Bluetooth address of the first earphone unit is the first Bluetooth address and the third Bluetooth address is received, updating the first Bluetooth address of the first earphone unit to the third Bluetooth address;
and when the Bluetooth address of the first earphone unit is the third Bluetooth address and the first Bluetooth address is received, resetting the third Bluetooth address of the first earphone unit to the first Bluetooth address.
9. The system for testing the earphone is characterized by comprising an earphone tester and a Bluetooth earphone, wherein the Bluetooth earphone comprises a first earphone unit and a second earphone unit, and the first earphone unit and the second earphone unit are respectively connected with the earphone tester;
the earphone tester is used for executing the steps of the method according to any one of claims 1 to 7;
the first and second earphone units are adapted to perform the steps of the method of claim 8.
10. An apparatus for testing headphones, comprising:
the reading module is used for reading the first Bluetooth address of the first earphone unit and the second Bluetooth address of the second earphone unit when the radio frequency test instruction is received;
the updating module is used for updating the first Bluetooth address to obtain a third Bluetooth address when the first Bluetooth address is the same as the second Bluetooth address;
the first test module is used for sending a radio frequency test instruction to the first earphone unit based on the third Bluetooth address;
and the second test module is used for sending a radio frequency test instruction to the second earphone unit based on the second Bluetooth address.
CN202110886864.8A 2021-08-03 2021-08-03 Earphone testing method, system and device Active CN113766406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110886864.8A CN113766406B (en) 2021-08-03 2021-08-03 Earphone testing method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110886864.8A CN113766406B (en) 2021-08-03 2021-08-03 Earphone testing method, system and device

Publications (2)

Publication Number Publication Date
CN113766406A CN113766406A (en) 2021-12-07
CN113766406B true CN113766406B (en) 2023-10-20

Family

ID=78788437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110886864.8A Active CN113766406B (en) 2021-08-03 2021-08-03 Earphone testing method, system and device

Country Status (1)

Country Link
CN (1) CN113766406B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338460A (en) * 2021-12-27 2022-04-12 广州由我科技股份有限公司 Pairing test system and method for Bluetooth equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291668A (en) * 2011-07-12 2011-12-21 广州市立伟电子有限公司 Method and system for testing Bluetooth earphones in batches
CN103826182A (en) * 2014-03-11 2014-05-28 宁波翼动通讯科技有限公司 Method for carrying out talkback by Bluetooth headsets
CN107566050A (en) * 2017-07-27 2018-01-09 歌尔股份有限公司 The method of testing and system of bluetooth equipment
CN109327592A (en) * 2018-11-07 2019-02-12 Oppo广东移动通信有限公司 A kind of call control method, device and computer storage medium
CN210405663U (en) * 2019-11-01 2020-04-24 深圳市小牛测控技术有限公司 Bluetooth testing arrangement
CN112367602A (en) * 2020-11-06 2021-02-12 歌尔科技有限公司 Bluetooth headset testing method, system, testing terminal and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI517614B (en) * 2013-05-24 2016-01-11 凌通科技股份有限公司 Bluetooth data/control message transmission module, interaction system and method thereof
CN105531941B (en) * 2014-07-28 2018-10-30 华为技术有限公司 A kind of Bluetooth communication method and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291668A (en) * 2011-07-12 2011-12-21 广州市立伟电子有限公司 Method and system for testing Bluetooth earphones in batches
CN103826182A (en) * 2014-03-11 2014-05-28 宁波翼动通讯科技有限公司 Method for carrying out talkback by Bluetooth headsets
CN107566050A (en) * 2017-07-27 2018-01-09 歌尔股份有限公司 The method of testing and system of bluetooth equipment
CN109327592A (en) * 2018-11-07 2019-02-12 Oppo广东移动通信有限公司 A kind of call control method, device and computer storage medium
CN210405663U (en) * 2019-11-01 2020-04-24 深圳市小牛测控技术有限公司 Bluetooth testing arrangement
CN112367602A (en) * 2020-11-06 2021-02-12 歌尔科技有限公司 Bluetooth headset testing method, system, testing terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN113766406A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
US8055197B2 (en) Apparatus and method for bluetooth connection in portable terminal
US11659626B2 (en) Apparatus and method for communicating by using Bluetooth low energy
CA2851379C (en) Methods and apparatus to control accessories
EP2355563A1 (en) Method for automatic pairing to a wireless network
US20060135064A1 (en) Method and apparatus for bonding process in bluetooth device
US10575199B2 (en) System and method for performing over-the-air testing of device under test
KR20120009616A (en) Display system, display device and control method thereof
CN108650671B (en) Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection
US20210165441A1 (en) Electronic device for controlling clock frequency and operating method therefor
US20220418025A1 (en) Electronic device using plurality of communication methods, and method for controlling same
CN108347719B (en) Bluetooth device connection method, device, storage medium, mobile terminal and server
CN105451222A (en) Terminal connection establishing method, device and system
CN114598401B (en) Radio frequency test method, Bluetooth device, electronic device and radio frequency test system
CN105636161A (en) Wireless network access method and device, communication terminal and wireless network access point
CN113766406B (en) Earphone testing method, system and device
US20130023231A1 (en) Sim card expander, communication system, and method for using sim cards
EP3863366B1 (en) Electronic device connected to external electronic device through wireless communication channel by using tdls session defined by ieee 802.11 standard
CN113498045A (en) Communication equipment pairing connection method, communication terminal and device with storage function
KR101766248B1 (en) Display system, display device and control method thereof
KR20210049585A (en) Electronic device for providing communication service and method thereof
CN112543121B (en) Multi-device group control method, electronic device and computer readable storage medium
CN114501286A (en) Bluetooth connection testing method and device
KR102639249B1 (en) Method for sharing channel information and electronic device therefor
CN110769396B (en) Method, system and terminal equipment for robot to connect network
CN105573926A (en) Information processing method and electronic devices

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
GR01 Patent grant
GR01 Patent grant