A method for testing bluetooth function

By storing the Mac address of the Bluetooth headset in the DHCP server and automatically turning on Bluetooth pairing, the cumbersome problem of the Bluetooth function testing process is solved, and the testing efficiency and production efficiency are improved.

CN114205798BActive Publication Date: 2024-12-17HANLONG TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111513739.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2024-12-17
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

In the prior art, the Bluetooth function testing process is cumbersome and time-consuming, and requires manual activation of Bluetooth function and scanning connection, resulting in inefficiency.

Method used

By adding a custom Option field to the DHCP server of the production environment LAN, storing the Mac address of the Bluetooth headset, and automatically turning on Bluetooth and pairing it with the Bluetooth headset when the Bluetooth carrier device to be tested is obtained, simplifying the test process.

Benefits of technology

It realizes automation of Bluetooth testing, improves testing efficiency and production efficiency, and reduces the need for manual operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114205798B_ABST
    Figure CN114205798B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for testing a Bluetooth function, comprising: adding a custom Option field to a DHCP server of a production environment local area network, the custom Option field being used to store a Mac address of a Bluetooth headset; connecting a Bluetooth carrier device to be tested to the production environment local area network; when the Bluetooth carrier device to be tested obtains an IP address from the DHCP server, the DHCP server sends information stored in the custom Option field to the Bluetooth carrier device to be tested; the Bluetooth carrier device to be tested turns on Bluetooth according to the received information stored in the custom Option field, and pairs and connects with the Bluetooth headset. The present invention no longer requires manual scanning of Bluetooth terminals and connections for each Bluetooth carrier device, thereby greatly improving the production efficiency of Bluetooth carrier devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of function testing, and in particular to a method for testing a Bluetooth function. Background Art

[0002] When testing Bluetooth-enabled devices on most production lines, workers often need to manually turn on the Bluetooth function for each device, then start scanning and connect to the required Bluetooth terminal before they can proceed with the test. The entire process is cumbersome and time-consuming. Summary of the invention

[0003] The purpose of the present invention is to provide a method for testing a Bluetooth function, thereby improving the testing efficiency.

[0004] To achieve the above object, the present invention provides the following solutions:

[0005] A method for testing a Bluetooth function, comprising:

[0006] Add a custom Option field to the DHCP server of the production environment LAN, where the custom Option field is used to store the Mac address of the Bluetooth headset;

[0007] Connecting the Bluetooth carrier device to be tested to the production environment local area network;

[0008] When the Bluetooth bearer device to be tested obtains an IP address from the DHCP server, the DHCP server sends the information stored in the custom Option field to the Bluetooth bearer device to be tested;

[0009] The Bluetooth carrier device to be tested turns on Bluetooth according to the received information stored in the custom Option field, and pairs with the Bluetooth headset.

[0010] Optionally, the custom Option field is also used to store an identifier of whether to perform a Bluetooth test.

[0011] Optionally, the Bluetooth carrier device to be tested turns on Bluetooth according to the received information stored in the custom Option field, and pairs with a Bluetooth headset, specifically including:

[0012] Determine whether to perform a Bluetooth test according to an indication of whether to perform a Bluetooth test in the received custom Option field;

[0013] If a Bluetooth test is performed, the Bluetooth carrier device to be tested automatically turns on Bluetooth, and pairs and connects with the Bluetooth headset according to the Mac address of the Bluetooth headset in the received custom Option field;

[0014] If the Bluetooth test is not performed, the Bluetooth carrier device to be tested does not turn on Bluetooth.

[0015] Optionally, when the Bluetooth bearer device to be tested obtains an IP address from the DHCP server, the DHCP server sends the information stored in the custom Option field to the Bluetooth bearer device to be tested, specifically including:

[0016] The Bluetooth carrier device to be tested sends a DHCP Discover packet to the DHCP server;

[0017] The DHCP server responds to the DHCP Discover packet through a DHCP Offer packet, and the DHCP Offer packet includes information stored in a custom Option field.

[0018] Optionally, the Bluetooth carrier device to be tested supports a self-loop tone test function.

[0019] Optionally, after the Bluetooth carrier device to be tested turns on Bluetooth according to the information stored in the received custom Option field and pairs with the Bluetooth headset, the method further includes:

[0020] The Bluetooth carrier device to be tested triggers a self-loop sound test, and a tester tests the Bluetooth function of the Bluetooth carrier device to be tested through a Bluetooth headset paired with the Bluetooth carrier device to be tested.

[0021] Optionally, the Bluetooth carrier device to be tested is an Internet phone.

[0022] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0023] The present invention stores the IP address of the Bluetooth headset through a DHCP server. When the Bluetooth carrier device to be tested obtains the IP address from the DHCP server, the IP address of the Bluetooth headset is obtained, the Bluetooth is automatically turned on and paired with the Bluetooth headset, and the Bluetooth test can be performed. It is no longer necessary to manually scan the Bluetooth and connect each Bluetooth carrier device to be tested, thereby improving the Bluetooth test efficiency and thus improving the production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0025] Figure 1The present invention is a flow chart of a method for testing Bluetooth function. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] The purpose of the present invention is to provide a method for testing a Bluetooth function, thereby improving the testing efficiency.

[0028] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0029] Figure 1 FIG. 1 is a flow chart of a method for testing a Bluetooth function according to the present invention. Figure 1 As shown, a method for testing a Bluetooth function includes:

[0030] Step 101: Add a custom Option field to the DHCP server of the production environment LAN. The custom Option field is used to store the Mac address of the Bluetooth headset.

[0031] The production environment is an environment for producing Bluetooth carrier devices to be tested.

[0032] Step 102: Connect the Bluetooth carrier device to be tested to the local area network of the production environment.

[0033] Step 103: When the Bluetooth bearer device to be tested obtains an IP address from the DHCP server, the DHCP server sends the information stored in the custom Option field to the Bluetooth bearer device to be tested.

[0034] Step 104: The Bluetooth carrier device to be tested turns on Bluetooth according to the information stored in the received custom Option field, and pairs with the Bluetooth headset.

[0035] The custom Option field is also used to store an identifier of whether to perform a Bluetooth test.

[0036] Wherein, step 104 specifically includes:

[0037] Whether to perform the Bluetooth test is determined according to an indication of whether to perform the Bluetooth test in the received custom Option field.

[0038] If a Bluetooth test is performed, the Bluetooth carrier device to be tested automatically turns on Bluetooth and pairs with the Bluetooth headset according to the Mac address of the Bluetooth headset in the received custom Option field.

[0039] If the Bluetooth test is not performed, the Bluetooth of the Bluetooth carrier device to be tested is not turned on.

[0040] Wherein, step 103 specifically includes:

[0041] The Bluetooth carrier device to be tested sends a DHCP Discover packet to the DHCP server.

[0042] The DHCP server responds to the DHCP Discover packet with a DHCP Offer packet, which includes the information stored in the custom Option field.

[0043] The Bluetooth carrier device to be tested supports the self-loop tone test function.

[0044] Wherein, in step 104, a method for testing a Bluetooth function further includes:

[0045] The Bluetooth carrier device to be tested triggers a self-loop sound test, and the tester tests the Bluetooth function of the Bluetooth carrier device to be tested through a Bluetooth headset paired with the Bluetooth carrier device to be tested.

[0046] The Bluetooth carrier device to be tested is an Internet phone.

[0047] The following is a specific example in which the Bluetooth carrier device to be tested is an Internet phone to illustrate a method for testing Bluetooth functions of the present invention.

[0048] 1. Prepare a Bluetooth headset that is turned on and ready to be connected in the production environment.

[0049] 2. The tested Internet phone (Voice Phone) has been adapted to the current production method and supports the self-loop test function. Self-loop test: After the audio is collected by a microphone or other sound receiving device, the audio information stream is directly transmitted to a sound playback device such as a headset for playback. The self-loop test can simply and quickly test whether the voice input and output functions of the communication device are normal.

[0050] 3. Configure the LAN DHCP server of the production environment and add a custom Option field. Generally, Option 224 to 254 are customizable. Set one of the Options, which contains the Mac address of the Bluetooth headset and the flag of whether to perform a Bluetooth test, for example: [GLOBAL_OPTIONS] 226 = BTProductTest_F065DD87D4BD, where "BTProductTest" is the flag of whether to perform a Bluetooth test, and "F065DD87D4BD" is the Mac address of the Bluetooth headset.

[0051] 4. Power on the network phone and connect it to the configured production environment LAN. When the network phone obtains an IP address from the DHCP server, it first sends a DHCP Discover packet. When the server responds to the phone's DHCP Discover, it will bring the previously set Option content in the DHCP Offer packet it replies to the phone.

[0052] 5. When parsing the content in the DHCP Offer, the network phone will specifically parse whether it contains the Option field of Bluetooth test information, such as "226=BTProductTest". If not, there will be no other performance. If so, it will obtain the Mac address of the Bluetooth headset according to the rules set by the program, immediately turn on Bluetooth, and automatically pair with the Bluetooth headset.

[0053] 6. After the Internet phone is successfully connected to the Bluetooth headset, the Internet phone triggers the self-loop test. The tester can use the Bluetooth headset to speak and listen to determine whether the Bluetooth function of the phone is normal.

[0054] The present invention uses a method combining DHCP Option with self-loop test, so that the phone can automatically connect to Bluetooth in time after parsing the packet in the DHCP offer phase to perform an audio loopback test. After the environment is configured, the tester only needs to connect each device to be tested to the configured local area network to perform the Bluetooth test, and no longer needs to manually scan the Bluetooth terminal and connect each Bluetooth carrier device, which greatly improves the production efficiency of the Bluetooth carrier device to be tested.

[0055] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0056] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for testing Bluetooth function. It is characterized in that include: Add a custom Option field to the DHCP server of the production environment LAN, where the custom Option field is used to store the Mac address of the Bluetooth headset; Connecting the Bluetooth carrier device to be tested to the production environment local area network; When the Bluetooth bearer device to be tested obtains an IP address from the DHCP server, the DHCP server sends the information stored in the custom Option field to the Bluetooth bearer device to be tested; The Bluetooth carrier device to be tested turns on Bluetooth according to the received information stored in the custom Option field, and pairs with the Bluetooth headset; When the Bluetooth bearer device to be tested obtains an IP address from the DHCP server, the DHCP server sends the information stored in the custom Option field to the Bluetooth bearer device to be tested, specifically including: The Bluetooth carrier device to be tested sends a DHCP Discover packet to the DHCP server; The DHCP server responds to the DHCP Discover packet with a DHCP Offer packet, where the DHCP Offer packet includes information stored in a custom Option field; The Bluetooth carrier device to be tested supports a self-loop sound test function; The custom Option field is also used to store an identifier of whether to perform a Bluetooth test; The Bluetooth carrier device to be tested turns on Bluetooth according to the received information stored in the custom Option field, and pairs with the Bluetooth headset, specifically including: Determine whether to perform a Bluetooth test according to an indication of whether to perform a Bluetooth test in the received custom Option field; If a Bluetooth test is performed, the Bluetooth carrier device to be tested automatically turns on Bluetooth, and pairs and connects with the Bluetooth headset according to the Mac address of the Bluetooth headset in the received custom Option field; If the Bluetooth test is not performed, the Bluetooth carrier device to be tested does not turn on Bluetooth.

2. The method for testing the Bluetooth function according to claim 1, It is characterized in that The Bluetooth carrier device to be tested is an Internet phone; When parsing the content in the DHCP Offer, the Internet phone will parse whether it contains the Option field of Bluetooth test information. If so, it will obtain the Mac address of the Bluetooth headset according to the rules set by the program, turn on Bluetooth itself, and automatically pair and connect with the Bluetooth headset; after the Internet phone is successfully connected to the Bluetooth headset, the Internet phone triggers the self-loop test.

3. The method for testing the Bluetooth function according to claim 1, It is characterized in that After the Bluetooth carrier device to be tested turns on Bluetooth according to the received information stored in the custom Option field and pairs with the Bluetooth headset, the method further includes: The Bluetooth carrier device to be tested triggers a self-loop sound test, and a tester tests the Bluetooth function of the Bluetooth carrier device to be tested through a Bluetooth headset paired with the Bluetooth carrier device to be tested.

Citation Information

Patent Citations

  • Wireless bridge and method for realizing DHCP address application

    CN103685592A

  • Testing method, device and system of Bluetooth performance, and PC server

    CN107786996A

  • Method and device for assigning IP address

    CN108418907A

  • Batch test method, medium and system for printer Bluetooth modules

    CN111918259A

  • Bluetooth test method and device, electronic equipment and computer readable storage medium

    CN112261635A