Multi-Bluetooth module testing method

By establishing a communication connection between two Bluetooth units in a multi-Bluetooth module and performing performance testing, the problem of long, complex and inefficient testing in the prior art is solved, and a more efficient test process and more accurate communication is achieved. simulation.

CN119155708BActive Publication Date: 2025-02-25SHENZHEN FEASYCOM TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411630847.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-02-25
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

The existing multi-Bluetooth module testing method requires separate testing of each Bluetooth unit, resulting in a long test time, complexity and inefficiency, and the inability to fully simulate the actual communication between multiple Bluetooth units.

Method used

By establishing a connection between the upper computer and the two Bluetooth units in the multi-Bluetooth module, the communication connection between the two Bluetooth units is controlled to conduct performance testing, and the test data is fed back to the upper computer.

Benefits of technology

This method reduces the test workload, shortens the test time of multi-Bluetooth modules, improves testing efficiency, and can simulate the actual communication between multiple Bluetooth units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present invention relates to a method for testing multiple Bluetooth modules. The multiple Bluetooth modules include a first Bluetooth unit and a second Bluetooth unit; the method includes the following steps: S1, establishing a connection between a host computer and the first Bluetooth unit and the second Bluetooth unit; S2, the host computer controls the first Bluetooth unit to establish a first communication connection with the second Bluetooth unit; S3, performing a performance test between the first Bluetooth unit and the second Bluetooth unit, and feeding back the test data to the host computer. The present invention can reduce the test workload, shorten the test time of multiple Bluetooth modules, and improve the test efficiency by performing a performance test between the first Bluetooth unit and the second Bluetooth unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Multi-Bluetooth module products need to be tested before leaving the factory to ensure product performance. In the existing testing method for multi-Bluetooth modules, each Bluetooth unit in the multi-Bluetooth module needs to be tested separately. However, this testing method has the following shortcomings: First, testing each Bluetooth unit separately will consume more time, the testing process is complicated, the workload is large, and the testing efficiency is low. Second, it is impossible to simulate the communication between multiple Bluetooth units in actual working scenarios, and their mutual communication and data exchange have not been fully tested. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a multi-Bluetooth module testing method.

[0004] The technical solution adopted by the present invention to solve the technical problem is: a method for testing multiple Bluetooth modules, wherein the multiple Bluetooth modules include a first Bluetooth unit and a second Bluetooth unit; the method includes the following steps:

[0005] S1. Establishing a connection between the host computer and the first Bluetooth unit and the second Bluetooth unit;

[0006] S2, the host computer controls the first Bluetooth unit to establish a first communication connection with the second Bluetooth unit;

[0007] S3. Perform a performance test between the first Bluetooth unit and the second Bluetooth unit, and feed back the test data to the host computer.

[0008] Further, the test data includes a wireless signal strength value, and step S3 includes:

[0009] The first Bluetooth unit and the second Bluetooth unit simultaneously detect the wireless signal strength value of the other party received through the first communication connection, and respectively feed back the obtained wireless signal strength value to the host computer; or,

[0010] The first Bluetooth unit and the second Bluetooth unit sequentially perform or one of them performs the following steps: detecting the wireless signal strength value of the other party received through the first communication connection, and feeding back the obtained wireless signal strength value to the host computer.

[0011] Furthermore, the step S3 of feeding back the obtained wireless signal strength value to the host computer includes:

[0012] directly sending the wireless signal strength value to the host computer, and the host computer analyzing the wireless signal strength value; or,

[0013] Analyze the wireless signal strength value and send the analysis result to the host computer;

[0014] The analyzing the wireless signal strength value includes:

[0015] Determine whether the wireless signal strength value is within a first preset range; if so, determine that the wireless signal strength value is qualified; if not, determine that the wireless signal strength value is unqualified.

[0016] Furthermore, the first Bluetooth unit and the second Bluetooth unit also establish a second communication connection;

[0017] The test data includes a test information return value, and step S3 includes:

[0018] The first Bluetooth unit and the second Bluetooth unit simultaneously send test information to each other through one of the first communication connection and the second communication connection, and then receive the test information sent back by the other party as the test information return value through the other of the first communication connection and the second communication connection, and feed back the test information return value to the host computer; or

[0019] The first Bluetooth unit and the second Bluetooth unit execute the following steps in sequence or one of them executes the following steps: sending test information to the other party through one of the first communication connection and the second communication connection, and then receiving the test information sent back by the other party as the test information return value through the other of the first communication connection and the second communication connection, and feeding back the test information return value to the host computer.

[0020] Furthermore, the first communication connection is a wireless connection based on a software call protocol, and the second communication connection is a pre-established wired connection based on a hardware audio protocol.

[0021] Furthermore, in step S3, feeding back the test information return value to the host computer includes:

[0022] directly sending the test information return value to the host computer, and the host computer analyzing the test information return value; or,

[0023] Analyze the test information return value and send the analysis result to the host computer;

[0024] The analyzing of the test information return value includes:

[0025] The test information return value is compared with the sent test information. If the error between the two is within a second preset range, the test information return value is determined to be qualified; if the error between the two is not within the second preset range, the test information return value is determined to be unqualified.

[0026] Further, the comparing the test information return value with the sent test information includes:

[0027] Respectively detecting the sampling points of the test information sent and the test information return value, if the number of sampling points of the test information return value exceeds the number of sampling points of the test information sent, it is determined that the error between the two is not within the second preset range; and / or,

[0028] Calculating the sum of the positive value and the negative value of the test information sent and the test information return value respectively, if the error between the sum of the positive value and the negative value of the test information sent and the test information return value exceeds a preset error range, determining that the error between the two is not within the second preset range; and / or,

[0029] The zero crossing points of the test information sent and the test information return value are detected respectively. If the number of zero crossing points of the test information return value exceeds the preset zero crossing number range compared with the number of zero crossing points of the test information sent, it is determined that the error between the two is not within the second preset range.

[0030] Further, the host computer controls the first Bluetooth unit to establish a first communication connection with the second Bluetooth unit, including:

[0031] The host computer obtains the address information of the second Bluetooth unit, and sends the address information to the first Bluetooth unit, and the first Bluetooth unit establishes the first communication connection with the second Bluetooth unit according to the address information.

[0032] Further, in step S1,

[0033] The host computer is connected to the first Bluetooth unit and the second Bluetooth unit respectively through a serial port; or,

[0034] The host computer is connected to the first Bluetooth unit and the second Bluetooth unit via a control unit, wherein the control unit is pre-connected to the first Bluetooth unit and the second Bluetooth unit respectively via a serial port.

[0035] Further, when the host computer connects the first Bluetooth unit and the second Bluetooth unit through the control unit;

[0036] After the first Bluetooth unit or the second Bluetooth unit adds identification information to the test data, the identification information is fed back to the host computer through the control unit;

[0037] The host computer determines the Bluetooth unit corresponding to the test data according to the identification information.

[0038] The implementation of the multi-Bluetooth module testing method of the present invention has the following beneficial effects: after a first communication connection is established between the first Bluetooth unit and the second Bluetooth unit, a performance test is performed between the first Bluetooth unit and the second Bluetooth unit, which can reduce the testing workload, shorten the testing time of multiple Bluetooth modules, and improve the testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0040] Figure 1 It is a flowchart of an embodiment of a method for testing multiple Bluetooth modules of the present invention;

[0041] Figure 2 This is a schematic diagram of the connection between multiple Bluetooth modules and a host computer according to an embodiment of the present invention;

[0042] Figure 3 It is a schematic diagram of the connection between multiple Bluetooth modules and a host computer according to another embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

[0044] The multi-Bluetooth module testing method provided by the present invention is used to test the performance of the multi-Bluetooth module to check whether it is a qualified product. The multi-Bluetooth module is a circuit board including more than two Bluetooth units. In other embodiments, it can also be a Bluetooth device including more than two Bluetooth units. The Bluetooth unit includes a Bluetooth chip. A wired connection is provided between the two Bluetooth units, and a wireless connection can also be established to achieve mutual communication and data exchange. Furthermore, the multi-Bluetooth module also includes a control unit, which communicates with the two Bluetooth units respectively through a serial port to exchange data.

[0045] like Figure 1 As shown, in an embodiment of a method for testing multiple Bluetooth modules of the present invention, the method comprises the following steps:

[0046] S1. Establish connections between the host computer and the first Bluetooth unit and the second Bluetooth unit.

[0047] S2. The host computer controls the first Bluetooth unit to establish a first communication connection with the second Bluetooth unit.

[0048] S3: Perform a performance test between the first Bluetooth unit and the second Bluetooth unit, and feed back the test data to the host computer.

[0049] In this embodiment, the host computer is a computer, a mobile phone or other dedicated test equipment. One of the two Bluetooth units is used as a first Bluetooth unit, and the other is used as a second Bluetooth unit. When testing, communication connections are established between the host computer and the two Bluetooth units to achieve data interaction. After the establishment is completed, under the control of the host computer, a first communication connection is established between the first Bluetooth unit and the second Bluetooth unit to achieve wireless communication between the two Bluetooth units.

[0050] In this embodiment, the first Bluetooth unit and the second Bluetooth unit are pre-stored with performance test related programs, so after the two establish a first communication connection, the performance test between the two Bluetooth units can be automatically performed based on the first communication connection, and the test data can be fed back to the host computer. In other embodiments, the host computer can also distribute the performance test related programs to the first Bluetooth unit and the second Bluetooth unit after step S1, and automatically perform the performance test between the two Bluetooth units after the first communication connection is established.

[0051] In the prior art, two Bluetooth units need to be tested separately. In the multi-Bluetooth module testing method of this embodiment, after a first communication connection is established between the first Bluetooth unit and the second Bluetooth unit, a performance test is performed between the first Bluetooth unit and the second Bluetooth unit, which can reduce the testing workload, shorten the testing time of multiple Bluetooth modules, and improve the testing efficiency.

[0052] In an optional embodiment, in step S1, Figure 2 As shown, the host computer is connected to the first Bluetooth unit and the second Bluetooth unit respectively through the serial port. The host computer directly communicates with the first Bluetooth unit through the serial port to realize data interaction, and the data interaction efficiency is high and the communication process is simple; the host computer directly communicates with the second Bluetooth unit through the serial port to realize data interaction, and the interaction process is more convenient.

[0053] In another optional embodiment, in step S1, Figure 3 As shown, the host computer is connected to the first Bluetooth unit and the second Bluetooth unit through the control unit, wherein the control unit is pre-connected to the first Bluetooth unit and the second Bluetooth unit through the serial port. The host computer can be connected to the control unit through the CAN bus or the serial port, and then indirectly communicate with the two Bluetooth units through the control unit. The control unit can be an MCU.

[0054] In this embodiment, since the host computer is connected to the first Bluetooth unit and the second Bluetooth unit through the control unit, the host computer and the Bluetooth unit cannot communicate directly, so the correct transmission of data or instructions can be ensured by the following methods:

[0055] After the first Bluetooth unit or the second Bluetooth unit adds identification information to the test data, the information is fed back to the host computer through the control unit, and the host computer determines the Bluetooth unit corresponding to the test data according to the identification information.

[0056] Specifically, when the Bluetooth unit directly sends the test data to the host computer, the Bluetooth unit adds its own identification information at a specific position of the test data, and then sends the test data to the control unit, which sends the test data to the host computer. The host computer parses the identification information in the test data to determine the Bluetooth unit to which the test data belongs. In other embodiments, when the Bluetooth unit sends the test result of the test data to the host computer, the Bluetooth unit adds its own identification information at a specific position of the test result, and then sends the test result to the control unit, which sends the test result directly to the host computer. The host computer parses the identification information in the test result to determine the Bluetooth unit to which the test result belongs, so as to facilitate the determination of the abnormal Bluetooth unit when the test fails.

[0057] In an optional embodiment, step S2 includes: the host computer obtains address information of the second Bluetooth unit, sends the address information to the first Bluetooth unit, and the first Bluetooth unit establishes a first communication connection with the second Bluetooth unit according to the address information.

[0058] The process of establishing the first communication connection is as follows: after the host computer sends a test instruction to the second Bluetooth unit, the host computer obtains relevant information of the second Bluetooth unit, including MAC address information. The host computer sends the MAC address information of the second Bluetooth unit to the first Bluetooth unit. The first Bluetooth unit establishes a first communication connection with the second Bluetooth unit according to the MAC address information. The first communication connection is a wireless connection based on a software call protocol, for example, a wireless connection using the HFP protocol, the HSP protocol, or other Bluetooth audio transmission protocols.

[0059] In this embodiment, the test instruction sent by the host computer to the second Bluetooth unit is: AT+ADDR, and the host computer sends the instruction to the first Bluetooth unit: AT#FOCUS=XXXXXXXXXX (the MAC address of the second Bluetooth unit is entered here).

[0060] In an alternative embodiment, if Figure 3 As shown, when the host computer connects the first Bluetooth unit and the second Bluetooth unit through the control unit, the host computer adds the identification information of the second Bluetooth unit in the test instruction and sends it to the control unit. The control unit parses the identification information and sends the test instruction to the second Bluetooth unit.

[0061] Specifically, the identification information is used to mark the Bluetooth unit, and the identification information corresponds to the Bluetooth unit one by one. When the host computer sends a test instruction to the second Bluetooth unit to obtain its address information, the host computer adds the identification information of the second Bluetooth unit at a specific position of the test instruction, and then sends the test instruction to the control unit. The control unit parses the identification information from the specific position, determines that the test instruction belongs to the second Bluetooth unit, and then sends the test instruction to the second Bluetooth unit. In addition, for other instructions sent by the host computer to the Bluetooth unit, corresponding identification information also needs to be added, such as a stop instruction for stopping the test. In an optional embodiment, the test data includes a wireless signal strength value. Step S3 includes:

[0062] The first Bluetooth unit and the second Bluetooth unit simultaneously detect the wireless signal strength value of the other party received through the first communication connection, and respectively feed back the obtained wireless signal strength value to the host computer. Alternatively, the first Bluetooth unit and the second Bluetooth unit sequentially perform or one of them performs the following steps: detect the wireless signal strength value of the other party received through the first communication connection, and feed back the obtained wireless signal strength value to the host computer.

[0063] Specifically, in one scenario, after the first communication connection is established, the two Bluetooth units can simultaneously detect the strength values ​​of the wireless signals received by themselves. In another scenario, according to the detection needs, the two Bluetooth units detect the strength values ​​of the wireless signals received by themselves in turn. In another scenario, according to the detection needs, only one of the Bluetooth units needs to detect the strength value of the wireless signals received by itself.

[0064] Feedback of the obtained wireless signal strength value to the host computer in step S3 includes: directly sending the wireless signal strength value to the host computer, and the host computer analyzes the wireless signal strength value; or analyzing the wireless signal strength value and sending the analysis result to the host computer. Analyzing the wireless signal strength value includes: determining whether the wireless signal strength value is within a first preset range; if so, determining that the wireless signal strength value is qualified; if not, determining that the wireless signal strength value is unqualified.

[0065] Specifically, the first Bluetooth unit and the second Bluetooth unit are both connected to an antenna unit, and wireless signals are respectively sent and received through the corresponding antenna units to establish a first communication connection. The detection and judgment process of the first Bluetooth unit is described below:

[0066] In one embodiment, the first Bluetooth unit detects its own RSSI value as the wireless signal strength value received by the corresponding antenna unit through the first communication connection and sent by the second Bluetooth unit. The first Bluetooth unit determines whether the RSSI value is within a preset normal RSSI range. For example, the normal RSSI range is greater than -50dBm. If the test result is -60dBm, the RSSI value is unqualified, indicating that the Bluetooth radio frequency function of the multi-Bluetooth module is abnormal and the multi-Bluetooth module is an unqualified product. If the test result is -40dBm, the RSSI value is qualified, indicating that the Bluetooth radio frequency function of the antenna unit of the first Bluetooth unit is normal. The first Bluetooth unit sends the judgment result to the host computer. In addition, when the RSSI value is unqualified, the first Bluetooth unit can also choose to stop the test or continue the test.

[0067] In another optional embodiment, the first Bluetooth unit detects its own RSSI value and sends its own RSSI value to the host computer: the first Bluetooth unit feedback + RSSI = x (where x represents the current wireless signal strength value). The host computer makes a judgment, for example, the normal RSSI range is greater than -50dBm. If the test result is -60dBm, the RSSI value is unqualified, indicating that the Bluetooth radio frequency function of the multi-Bluetooth module is abnormal, and the multi-Bluetooth module is an unqualified product. If the test result is -40dBm, the RSSI value is qualified, indicating that the Bluetooth radio frequency function of the antenna unit of the first Bluetooth unit is normal. In addition, when the RSSI value is unqualified, the host computer can send a corresponding instruction to the first Bluetooth unit to stop the test, or continue the test.

[0068] It is understandable that the detection and analysis process of the second Bluetooth unit is similar to that of the first Bluetooth unit, and will not be described in detail here, and reference can be made to the first Bluetooth unit. It should be noted that if the wireless signal strength value of any Bluetooth unit is unqualified, it means that the multi-Bluetooth module is an unqualified product.

[0069] This solution can simulate the actual communication link between the first and second Bluetooth units, and detect whether the Bluetooth radio frequency function of the antenna unit is normal according to the wireless signal strength value received by the Bluetooth unit. In the prior art, the test equipment needs to establish communication connections with the two Bluetooth units respectively, test the Bluetooth radio frequency functions of the corresponding antenna units one by one, and need to redefine the first preset range (normal RSSI range) according to the distance between the test equipment and the antenna unit. This solution only needs to establish the first communication connection once during the test process to complete the test of the antenna units of the two Bluetooth units, reducing the test workload. Since the distance between the antenna units in the multi-Bluetooth module is relatively fixed, the pre-set first preset range can be used without redetermining, and the test process is simpler.

[0070] In an optional embodiment, the test data includes a test information return value. Step S3 includes:

[0071] The first Bluetooth unit and the second Bluetooth unit simultaneously send test information to each other through one of the first communication connection and the second communication connection, and then receive the test information sent back by the other party as the test information return value through the other of the first communication connection and the second communication connection, and feed the test information return value back to the host computer. Or,

[0072] The first Bluetooth unit and the second Bluetooth unit execute the following steps in sequence or one of them executes the following steps: sending test information to the other party through one of the first communication connection and the second communication connection, and then receiving the test information sent back by the other party as a test information return value through the other of the first communication connection and the second communication connection, and feeding back the test information return value to the host computer.

[0073] Specifically, in addition to the first communication connection established during the test, the two Bluetooth units also have a second communication connection pre-established between the two. The second communication connection is a pre-established wired connection based on a hardware audio protocol, such as an analog audio connection, or a digital audio connection established using the I2S protocol. The test information is pre-stored in the Bluetooth unit, such as audio data or test waveforms with a specific duration of 5 seconds or 10 seconds, which can be set according to needs. The test information used by the two Bluetooth units may be the same or different. In other embodiments, the multi-Bluetooth module also includes a storage unit connected to the two Bluetooth units, the test information is pre-stored in the storage unit, and the Bluetooth unit reads the test information from the storage unit during the test. In other embodiments, the test information may also be pre-stored in the control unit.

[0074] In one scenario, after the first communication connection is established, the two Bluetooth units can send out test information at the same time, and then receive the test information sent back as the test information return value. For example: the two Bluetooth units simultaneously send test information to each other through the first communication connection, and then the two Bluetooth units respectively send the received test information back to each other, and the two Bluetooth units receive the test information return value through the second communication connection in sequence or at the same time. Alternatively, the first Bluetooth unit sends test information to the other party through the first communication connection, and the second Bluetooth unit sends test information to the other party through the second communication connection; the first Bluetooth unit receives the test information return value through the second communication connection, and the second Bluetooth unit receives the test information return value through the first communication connection, wherein both can be received at the same time, or can be received in sequence at a certain interval.

[0075] In another scenario, according to the detection needs, the two Bluetooth units can send and receive in sequence. For example: the first Bluetooth unit sends test information through the first communication connection, the second Bluetooth unit sends the received test information back through the second communication connection, and the first Bluetooth unit receives the test information return value. Then, the second Bluetooth unit sends test information through the first communication connection, the first Bluetooth unit sends the received test information back through the second communication connection, and the second Bluetooth unit receives the test information return value through the second communication connection. In another scenario, according to the detection needs, only one of the Bluetooth units needs to send and receive.

[0076] Feeding back the test information return value to the host computer in step S3 includes: sending the test information return value directly to the host computer, and the host computer analyzing the test information return value; or analyzing the test information return value and sending the analysis result to the host computer. Among them, analyzing the test information return value includes: comparing the test information return value with the sent test information, if the error between the two is within the second preset range, then judging that the test information return value is qualified; if the error between the two is not within the second preset range, then judging that the test information return value is unqualified.

[0077] The following is a specific description taking the first Bluetooth unit as an example:

[0078] In one embodiment, the first Bluetooth unit compares the test information sent to the second Bluetooth unit with the test information sent back by the second Bluetooth unit to determine whether the error between the two is within a second preset range. If so, the test information return value is qualified, indicating that the first communication connection and the second communication connection are normal. If not, the test information return value is unqualified, indicating that there is an abnormality in the first communication connection or the second communication connection, and the multi-Bluetooth module is an unqualified product. In addition, when the test information return value is unqualified, the first Bluetooth unit can also choose to stop the test or continue the test.

[0079] In another embodiment, after receiving the test information return value, the first Bluetooth unit sends it to the host computer, and the host computer compares the test information sent by the first Bluetooth unit and the test information return value to determine whether the error between the two is within the second preset range. If so, the test information return value is qualified, indicating that the first communication connection and the second communication connection are normal. If not, the test information return value is unqualified, indicating that there is an abnormality in the first communication connection or the second communication connection, and the multi-Bluetooth module is an unqualified product. In addition, when the test information return value is unqualified, the host computer can send a corresponding instruction to the first Bluetooth unit to stop the test, or continue the test.

[0080] It is understandable that the analysis process of the second Bluetooth unit is similar to that of the first Bluetooth unit, and will not be described in detail here, and reference can be made to the first Bluetooth unit. It should be noted that if the test information return value of any Bluetooth unit is unqualified, it means that the multi-Bluetooth module is a substandard product.

[0081] This solution simulates the actual communication link of the first and second Bluetooth units, and can test the first communication connection and the second communication connection at the same time, that is, complete multiple tests at one time, reduce the test workload, and improve the test efficiency. For example, when the first Bluetooth unit is based on the HFP protocol and the second Bluetooth unit is based on the I2S protocol, this solution can complete the test of the call performance based on HFP and the data transmission performance based on I2S of multiple Bluetooth modules at one time.

[0082] Furthermore, comparing the test information return value with the sent test information includes:

[0083] The sampling points of the test information sent and the test information return value are detected respectively. If the number of sampling points of the test information return value exceeds the number of sampling points of the test information sent, it is determined that the error between the two is not within a second preset range. And / or,

[0084] The sum of the positive value and the negative value of the test information sent and the test information return value are calculated respectively. If the error of the sum of the positive value and the negative value of the test information sent and the test information return value exceeds the preset error range, it is determined that the error between the two is not within the second preset range. And / or,

[0085] The zero crossing points of the sent test information and the test information return value are detected respectively. If the number of zero crossing points of the test information return value exceeds the preset zero crossing number range compared with the number of zero crossing points of the sent test information, it is determined that the error between the two is not within a second preset range.

[0086] Specifically, by comparing the waveform of the test information return value with the waveform of the test information sent, the error between the two can be obtained. The following takes the waveform of the test information as a 5-second 300 Hz sine wave as an example to illustrate three comparison methods.

[0087] The first type: The first Bluetooth unit sends it to the second Bluetooth unit at a transmission rate of 16,000 data points per second, and the first Bluetooth unit sends a total of 80,000 data points. The sampling point number range is preset to be greater than or equal to half of the total number of data points sent, and other values ​​can also be taken according to detection needs. When the number of sampling points of the test information return value sent back by the second Bluetooth unit is less than 40,000, it is determined that the error between the two is not within the second preset range, and it is considered that the sampling points are insufficient and the test information return value is unqualified. When the number of sampling points is greater than or equal to 40,000, the sampling points are considered normal. Please refer to the first Bluetooth unit for the comparison process of the test information of the second Bluetooth unit.

[0088] The second type: the test information sent by the first Bluetooth unit is a sinusoidal waveform. Preferably, a sinusoidal wave whose sum of positive and negative values ​​is 0 is used as the test information, and the sum of the positive and negative values ​​of the test information should be 0. The normal error range is within 2 positive or negative values, and other values ​​can also be taken according to the detection needs. Calculate the sum of the positive and negative values ​​of the test information return value. When the test information return value is one more positive or negative value than the error of the test information, the sum of the positive and negative values ​​is considered normal. When the error between the two is greater than 2 positive or negative values, the sum of the positive and negative values ​​is considered abnormal, and it is determined that the error between the two is not within the second preset range, and the test information return value is unqualified. Please refer to the first Bluetooth unit for the comparison process of the test information of the second Bluetooth unit.

[0089] The third type: The test information sent by the first Bluetooth unit has 100 zero crossings. The normal number of zero crossings ranges from 98 to 102, and other values ​​can be taken according to the detection needs. When the test information return value has 98 zero crossings, the number of zero crossing detections is considered normal. When the test information return value has 97 zero crossings, the number of zero crossing detections is considered abnormal, and it is determined that the error between the two is not within the second preset range, and the test information return value is unqualified. Please refer to the first Bluetooth unit for the comparison process of the test information of the second Bluetooth unit.

[0090] The present invention provides the above three comparison methods, and one or more of them can be selected according to actual needs. It should be noted that when only one comparison method is used, if the comparison result is normal, the test information return value can be determined to be qualified. When multiple comparison methods are used, all comparison results are normal, and the test information return value can be determined to be qualified.

[0091] In this embodiment, when the test data is compared by the Bluetooth unit, the Bluetooth unit reports the analysis result to the host computer in the following manner.

[0092] 1. The first Bluetooth unit reports the analysis results:

[0093] +MPSTAT=0 / / Test successful, report after all test results are normal

[0094] +MPSTAT=1 / / Test starts, report after receiving AT#FOCUS=MAC address

[0095] +MPSTAT=2 / / Test failed, error code 2: Insufficient sampling points

[0096] +MPSTAT=3 / / Test failed, error code 3: The sum of positive and negative values ​​is abnormal

[0097] +MPSTAT=4 / / Test failed, error code 4: Abnormal zero-crossing detection number

[0098] 2. The second Bluetooth unit reports the analysis results:

[0099] -MPSTAT=0 / / Test successful, report after all test results are normal

[0100] -MPSTAT=2 / / Test failed, error code 2: Insufficient sampling points

[0101] -MPSTAT=3 / / Test failed, error code 3: The sum of positive and negative values ​​is abnormal

[0102] -MPSTAT=4 / / Test failed, error code 4: Abnormal number of zero-crossing detections

[0103] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.

Claims

1. A method for testing multiple Bluetooth modules, characterized in that: The multi-Bluetooth module includes a first Bluetooth unit and a second Bluetooth unit; the method includes the following steps: S1. Establishing a connection between the host computer and the first Bluetooth unit and the second Bluetooth unit; S2, the host computer controls the first Bluetooth unit to establish a first communication connection with the second Bluetooth unit; S3, performing a performance test between the first Bluetooth unit and the second Bluetooth unit, and feeding back the test data to the host computer; The first Bluetooth unit and the second Bluetooth unit also establish a second communication connection; the test data includes a test information return value, and step S3 includes: The first Bluetooth unit and / or the second Bluetooth unit sends test information to the other party through one of the first communication connection and the second communication connection, and then receives the test information sent back by the other party as the test information return value through the other of the first communication connection and the second communication connection, and feeds back the test information return value to the host computer.

2. The multi-Bluetooth module testing method according to claim 1, characterized in that: The test data includes a wireless signal strength value, and step S3 includes: The first Bluetooth unit and the second Bluetooth unit simultaneously detect the wireless signal strength value of the other party received through the first communication connection, and respectively feed back the obtained wireless signal strength value to the host computer; or, The first Bluetooth unit and the second Bluetooth unit sequentially perform or one of them performs the following steps: detecting the wireless signal strength value of the other party received through the first communication connection, and feeding back the obtained wireless signal strength value to the host computer.

3. The multi-Bluetooth module testing method according to claim 2, characterized in that: Feedback of the obtained wireless signal strength value to the host computer in step S3 includes: directly sending the wireless signal strength value to the host computer, and the host computer analyzing the wireless signal strength value; or, Analyze the wireless signal strength value and send the analysis result to the host computer; The analyzing the wireless signal strength value includes: Determine whether the wireless signal strength value is within a first preset range; if so, determine that the wireless signal strength value is qualified; if not, determine that the wireless signal strength value is unqualified.

4. The multi-Bluetooth module testing method according to claim 1, characterized in that: The first Bluetooth unit and the second Bluetooth unit simultaneously send test information to each other through one of the first communication connection and the second communication connection, and then receive the test information sent back by the other party as the test information return value through the other of the first communication connection and the second communication connection, and feed back the test information return value to the host computer; or The first Bluetooth unit and the second Bluetooth unit execute the following steps in sequence or one of them executes the following steps: sending test information to the other party through one of the first communication connection and the second communication connection, and then receiving the test information sent back by the other party as the test information return value through the other of the first communication connection and the second communication connection, and feeding back the test information return value to the host computer.

5. The method for testing multiple Bluetooth modules according to claim 4, characterized in that: The first communication connection is a wireless connection based on a software call protocol, and the second communication connection is a pre-established wired connection based on a hardware audio protocol.

6. The method for testing multiple Bluetooth modules according to claim 4, characterized in that: Feedback of the test information return value to the host computer in step S3 includes: directly sending the test information return value to the host computer, and the host computer analyzing the test information return value; or, Analyze the test information return value and send the analysis result to the host computer; The analysis of the test information return value includes: The test information return value is compared with the test information sent. If the error between the two is within a second preset range, the test information return value is determined to be qualified; if the error between the two is not within the second preset range, the test information return value is determined to be unqualified.

7. The method for testing multiple Bluetooth modules according to claim 6, characterized in that: The comparing the test information return value with the sent test information includes: Respectively detecting the sampling points of the test information sent and the test information return value, if the number of sampling points of the test information return value exceeds the preset sampling point number range compared with the number of sampling points of the test information sent, determining that the error between the two is not within the second preset range; and / or, Calculating the sum of the positive value and the negative value of the test information sent and the test information return value respectively, if the error between the sum of the positive value and the negative value of the test information sent and the test information return value exceeds a preset error range, determining that the error between the two is not within the second preset range; and / or, The zero crossing points of the test information sent and the test information return value are detected respectively. If the number of zero crossing points of the test information return value exceeds the preset zero crossing number range compared with the number of zero crossing points of the test information sent, it is determined that the error between the two is not within the second preset range.

8. The method for testing multiple Bluetooth modules according to claim 1, characterized in that: The host computer controls the first Bluetooth unit and the second Bluetooth unit to establish a first communication connection, including: The host computer obtains the address information of the second Bluetooth unit, and sends the address information to the first Bluetooth unit, and the first Bluetooth unit establishes the first communication connection with the second Bluetooth unit according to the address information.

9. The method for testing multiple Bluetooth modules according to claim 1, characterized in that: In step S1, The host computer is connected to the first Bluetooth unit and the second Bluetooth unit respectively through a serial port; or, The host computer is connected to the first Bluetooth unit and the second Bluetooth unit via a control unit, wherein the control unit is preliminarily connected to the first Bluetooth unit and the second Bluetooth unit respectively via a serial port.

10. The method for testing multiple Bluetooth modules according to claim 9, characterized in that: When the host computer connects the first Bluetooth unit and the second Bluetooth unit through the control unit; After the first Bluetooth unit or the second Bluetooth unit adds identification information to the test data, the identification information is fed back to the host computer through the control unit; The host computer determines the Bluetooth unit corresponding to the test data according to the identification information.

Citation Information

Patent Citations

  • Method of Bluetooth low energy communication, Bluetooth devices and system

    CN104135741A

  • parallel test method and system of multiple Bluetooth communications

    CN107135124A

  • Communication module testing device

    CN209017053U