Bluetooth equipment testing device, method and equipment and computer readable storage medium

By designing a Bluetooth device testing device containing input, control and output modules, the problems of low testing efficiency, poor accuracy and poor compatibility in the prior art are solved, and more efficient and more accurate Bluetooth device testing is achieved.

CN120185731APending Publication Date: 2025-06-20SHENZHEN SDMC TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510418482.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

Existing Bluetooth device testing technologies have problems such as low testing efficiency, poor testing accuracy and poor compatibility in the test process.

Method used

A Bluetooth device testing device is provided, including an input module, a control module and an output module, to generate a target test signal by analyzing the target test instructions, and to transmit the signal to the target device to control it to perform the target action. The control module includes a conversion unit, a matching unit, analytical module, an isolation unit and a control unit to improve the quality and compatibility of the test signal.

Benefits of technology

Improves the efficiency, accuracy and compatibility of Bluetooth device testing, and enables more accurate verification of device performance and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120185731A_ABST
    Figure CN120185731A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a Bluetooth equipment testing device and method, equipment and a computer readable storage medium. The device comprises an input module used for receiving a target test instruction; the control module is used for analyzing the target test instruction to generate a target test signal; the output module is used for transmitting the target test signal to target equipment so as to control the target equipment to execute a target action; wherein the Bluetooth equipment testing device is provided with a target interface, and the target interface is used for transmitting a target testing signal and supplying power to the Bluetooth equipment testing device. The test efficiency, the test precision and the compatibility in the test process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the technical field of intelligent device testing, and particularly to a Bluetooth device testing apparatus, method, device, and computer-readable storage medium. Background Art

[0002] Bluetooth device testing is mainly used to ensure device performance and stability, and mainly involves comprehensive verification of hardware, software, protocols, and actual application scenarios.

[0003] For Bluetooth device testing, related technologies mainly include: physical button simulation testing, infrared remote control testing, and software Bluetooth testing. The above methods have problems such as low testing efficiency, poor testing accuracy, and poor compatibility during the testing process. Summary of the Invention

[0004] According to the embodiments of the present application, there is provided a Bluetooth device testing apparatus, method, device, and computer-readable storage medium, which can improve testing efficiency, testing accuracy, and compatibility during the testing process.

[0005] In the first aspect of the present application, there is provided a Bluetooth device testing apparatus, including: An input module, configured to receive a target test instruction; A control module, configured to parse the target test instruction to generate a target test signal; An output module, configured to transmit the target test signal to a target device to control the target device to perform a target action; Wherein, the Bluetooth device testing apparatus is provided with a target interface, and the target interface is used to transmit the target test signal and supply power to the Bluetooth device testing apparatus.

[0006] In some feasible embodiments, the above control module includes: A conversion unit, configured to perform a target conversion operation on the target test instruction to generate a target test signal.

[0007] In some feasible embodiments, the above control module further includes: A matching unit, configured to match a target Bluetooth protocol stack according to a target AT instruction set and a target test instruction.

[0008] In some feasible embodiments, the above control module further includes: An analysis module, configured to determine a target test signal according to a target report descriptor and a target test instruction.

[0009] In some feasible embodiments, the above analysis module includes: A generating element, configured to generate a corresponding target report descriptor according to a target test instruction.

[0010] In some feasible embodiments, the above control module further includes: An isolation unit for isolating a plurality of target test signals.

[0011] In some feasible embodiments, the above control module further includes: A determination unit for determining a target baud rate according to the quality of the target test signal; A regulation unit for regulating the actual baud rate in real time so that the absolute value of the target difference is less than or equal to a preset threshold, where the target difference corresponds to the difference between the actual baud rate and the target baud rate.

[0012] In a second aspect of the present application, a method for testing a Bluetooth device is provided, including: Receiving a target test instruction; Generating a target test signal according to the target test instruction; Controlling a target device to perform a target action according to the target test signal to test the target device.

[0013] In a third aspect of the present application, an electronic device is provided, including a memory and a processor. A computer program is stored on the memory, and when the processor executes the computer program, the above method is implemented.

[0014] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above method for testing a Bluetooth device is implemented.

[0015] The Bluetooth device testing device, method, device and computer-readable storage medium provided by the embodiments of the present application. The device includes: an input module for receiving a target test instruction; a control module for parsing the target test instruction to generate a target test signal; an output module for delivering the target test signal to a target device to control the target device to perform a target action. The Bluetooth device testing device is provided with a target interface, and the target interface is used for transmitting the target test signal and powering the Bluetooth device testing device. The present application can improve the test efficiency, test accuracy and compatibility during the test process.

[0016] It should be understood that the content described in the Summary of the Invention section is not intended to limit the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In combination with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages, and aspects of the embodiments of the present application will become more apparent. In the drawings, the same or similar reference numerals denote the same or similar elements, where: Figure 1 This is a structural schematic diagram of a Bluetooth device testing apparatus provided for an embodiment of the present application; Figure 2 This is a schematic diagram of AT command parsing provided for an embodiment of the present application; Figure 3 This is a timing schematic diagram of a baud rate adaptive algorithm provided for an embodiment of the present application; Figure 4 This is a schematic diagram of main board wiring provided for an embodiment of the present application.

[0018] Figure 5 This is a flowchart schematic diagram of a Bluetooth device testing method provided for an embodiment of the present application; Figure 6 This is a structural schematic diagram of an electronic device provided for an embodiment of the present application. Detailed implementation manners

[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the scope of protection of the present disclosure.

[0020] In addition, the term "and / or" in this document is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after.

[0021] Bluetooth device testing is mainly used for key aspects to ensure device performance, compatibility, stability, and user experience, mainly involving comprehensive verification of hardware, software, protocols, and actual application scenarios.

[0022] For Bluetooth device testing, the related technologies mainly include: physical button simulation testing, infrared remote control testing, and software Bluetooth testing. Among them, for physical button simulation testing, due to mechanical aging, such as rubber contact aging, the test response speed is mostly greater than 200 ms, resulting in low test efficiency. Among them, for infrared remote control testing, it mainly relies on an infrared signal transmitter. On the one hand, there is a problem of poor compatibility. On the other hand, due to being easily interfered by ambient light, the test accuracy is poor. Among them, for software Bluetooth testing, on the one hand, there is a problem of poor compatibility. On the other hand, since different manufacturers apply different Bluetooth protocols, the test response speed is mostly greater than 50 ms, resulting in high test latency and low test efficiency.

[0023] Based on this, according to the embodiments of the present application, a Bluetooth device testing apparatus, method, device, and computer-readable storage medium are provided, which can improve test efficiency, test accuracy, and compatibility during the test process.

[0024] In the first aspect of the present application, a Bluetooth device testing apparatus is provided. Figure 1 It is a structural schematic diagram of a Bluetooth device testing apparatus 100 provided by an embodiment of the present application, as Figure 1 shown, the apparatus 100 includes: an input module 110, a control module 120, and an output module 130.

[0025] Among them, the input module is used to receive a target test instruction.

[0026] In some feasible implementation manners, the above input module is provided with a target driver for receiving target test instructions corresponding to multiple protocols.

[0027] Exemplarily, the above target driver may include: a virtual serial port driver, such as: VCP Driver, FTDI driver, etc. The above multiple protocols may include: USB protocol.

[0028] Exemplarily, the target test instruction sent by the above preset PC control end can be input into the above Bluetooth device testing apparatus via the USB interface configured by the input module. Specifically, the above preset PC control end may include: Windows, Linux, and / or macOS.

[0029] Specifically, the Windows control end can input the above target test instruction based on a virtual COM port. The Linux control end can input the above target test instruction based on the sysfs interface and the ttyUSB device.

[0030] Specifically, the above target test instruction can also be written into the above input module through a J-Link programmer, where the above input module can be developed and generated based on the Nordic nRF52840 SDK.

[0031] It should be noted that the above input module can also be provided with an LED indicator for determining whether the above target test instruction is successfully received. For example, when the above LED indicator flashes three times, it can be determined that the above target test instruction is successfully received.

[0032] Thus, by configuring the above input module, the present application can achieve cross-platform input of various target test instructions, which is beneficial to expanding the applicable range of the Bluetooth device test device of the present application.

[0033] Among them, the control module is used to parse the target test instruction to generate a target test signal.

[0034] In some feasible embodiments, the above control module includes: a conversion unit for performing a target conversion operation on the target test instruction to generate a target test signal.

[0035] Among them, the above target test signal may include: a TTL level signal, and / or a serial port signal.

[0036] Exemplarily, the above conversion unit can be used to perform a target conversion operation on the target test instruction input through the USB interface configured by the input module, flowing through the input module, and entering the control module to generate a target test signal.

[0037] Thus, by configuring the conversion unit in the control module, the present application can improve the compatibility of the Bluetooth device test device of the present application.

[0038] In some feasible embodiments, the above control module includes: a matching unit for matching the target Bluetooth protocol stack according to the target AT instruction set and the target test instruction.

[0039] Exemplarily, the above target AT instruction set may include: a key value trigger instruction, for example: AT+KEY=<HEX_CODE>; a status query instruction, for example: AT+STATUS; a firmware version instruction, for example: AT+VER.

[0040] Specifically, Figure 2 is a schematic diagram of AT instruction parsing provided for an embodiment of the present application, as Figure 2As shown, the target AT instruction set can be detected by first detecting through the serial port buffer, extracting the complete AT instruction, verifying the format of the AT instruction. In the case where the format is determined to be incorrect, ERROR_CODE is directly returned and the process ends; in the case where the format is determined to be correct, the AT instruction is parsed to determine the AT instruction type, and corresponding operations are performed according to the AT instruction type, including: writing the key value trigger instruction AT+KEY=<HEX_CODE> into the HID register, generating a corresponding response data frame according to the LED feedback signal; sending the parsed status query instruction AT+STATUS to the read status register to generate a corresponding response data frame; parsing the firmware version instruction AT+VER to read the firmware version number, and generating a corresponding response data frame according to the firmware version number; performing a CRC32 check operation on the response data frame, and returning the verified data through the serial port as a response.

[0041] Thus, by configuring a matching unit in the control module in this application, the compatibility and flexibility of the Bluetooth device testing device in this application can be further improved, and accurate mapping of instructions and key actions can be achieved, thereby improving the testing accuracy.

[0042] In some feasible embodiments, the above control module further includes: a parsing module for determining a target test signal according to the target report descriptor and the target test instruction.

[0043] Among them, the above target report descriptor may include: a Bluetooth HID report descriptor.

[0044] It should be noted that the above parsing module may include: a mapping element for supporting the modification of the Bluetooth protocol stack, such as the Bluetooth HID report descriptor in the BlueKitchen protocol stack, to implement example key code definitions.

[0045] Thus, by configuring a parsing module in the control module in this application, the compatibility and flexibility of the Bluetooth device testing device in this application can be further improved, and the maintainability of the Bluetooth device testing device in this application can be improved.

[0046] In some feasible embodiments, the above parsing module further includes: a generating element for generating a corresponding target report descriptor according to the target test instruction.

[0047] Among them, the above generating element is used to dynamically rewrite and generate a target report descriptor, such as a Bluetooth HID report descriptor, according to the target test instruction, such as a serial port instruction.

[0048] Thus, by configuring a generating element in the parsing module in this application, the iteration speed of the target report descriptor can be increased, thereby the response efficiency of the Bluetooth device testing device in this application can be improved, and the testing efficiency can be improved. In some feasible embodiments, the above control module further includes: an isolation unit for isolating a plurality of target test signals.

[0049] Exemplarily, the above isolation unit may be configured with an opto-isolation circuit, such as: a PC817 tuple, to prevent the isolation of a plurality of target test signals, prevent mutual interference between the plurality of target test signals, and reduce signal noise.

[0050] Thus, by configuring the above isolation unit in the control module, on the one hand, it is possible to improve the signal quality of each target test signal based on electrical isolation, thereby improving the test accuracy. On the other hand, it is possible to achieve fault isolation to further improve the reliability and stability of the operation of the Bluetooth device test apparatus of the present application.

[0051] In some feasible embodiments, the above control module further includes: a determination unit for determining a target baud rate according to the quality of the target test signal; a regulation unit for regulating the actual baud rate so that the absolute value of the target difference is less than or equal to a preset threshold, where the target difference corresponds to the difference between the actual baud rate and the target baud rate.

[0052] Exemplarily, the above determination unit may determine the above target baud rate based on a baud rate adaptive algorithm. Specifically, Figure 3 FIG. is a timing diagram of a baud rate adaptive algorithm provided by an embodiment of the present application. As Figure 3 shown, it is possible to detect the falling edge of the start bit of the target test instruction corresponding to the instruction code 0X4E01 sent by the PC side, and then determine the actual baud rate according to the following formula:

[0053] where is the actual baud rate, is the actual baud rate corresponding to the first time point, is the actual baud rate corresponding to the second time point. According to the calculated actual baud rate, adjust the local frequency divider to match and determine the target baud rate; after the above regulation operation is completed by the regulation unit, the Bluetooth device test apparatus sends a confirmation signal and receives the confirmation response (ACK) from the PC side, with a value of 0xAA. Then, the Bluetooth device test apparatus receives subsequent data according to the target baud rate calibrated based on the actual baud rate.

[0054] Specifically, the above target baud rate may be 115200 bps, and the above preset threshold may be 10%.

[0055] Specifically, the above regulation unit may be used to regulate the actual baud rate in real time so that the absolute value of the difference between the actual baud rate and the target baud rate is less than or equal to 10%.

[0056] Thus, through the configuration determination unit, the control module of the present application can accurately determine the target baud rate according to the quality of the target test signal; through the configuration regulation unit, the actual baud rate can be regulated in real time so that the absolute value of the difference between the actual baud rate and the target baud rate is less than or equal to a preset threshold, thereby achieving compatibility with various timing differences and further improving the compatibility and stability of the Bluetooth device testing apparatus of the present application.

[0057] It should be noted that during the automated testing process, the target test signal and the response signal of the target device can be synchronously captured through hardware signal layer hijacking and protocol stack two-way communication to improve the timing synchronization of the wired control channel and the wireless protocol stack.

[0058] Among them, the output module is used to deliver the target test signal to the target device to control the target device to perform the target action.

[0059] It should be noted that during the process of the Bluetooth testing apparatus testing the target device, the signal flow process can be specifically as follows: The PC control end inputs the serial port signal corresponding to the target test instruction to the Bluetooth testing apparatus based on the USB interface. The serial port signal is subjected to isolation processing to generate a corresponding optocoupler isolation signal, and the corresponding optocoupler isolation signal is input to the target device through the Bluetooth HID protocol to implement the testing of the target device.

[0060] Exemplarily, the above-mentioned target device may include: a set-top box.

[0061] Specifically, the target test signal can be delivered to the set-top box to control the set-top box to perform the target action to achieve the automated testing of the set-top box.

[0062] Among them, the Bluetooth device testing apparatus is provided with a target interface. The target interface is used to transmit the target test signal and supply power to the Bluetooth device testing apparatus. The above-mentioned target interface includes: a serial port communication interface, such as: an RX interface, a TX interface, and / or a GND interface. Among them, the Bluetooth device testing apparatus described in the present application can achieve continuous testing for the set-top box for 7 days.

[0063] Exemplarily, the above-mentioned target interface can be set at the connection end between the output module and the target device.

[0064] Thus, by providing the target interface, the Bluetooth device testing apparatus of the present application can improve the flexibility, expandability, and compatibility of the Bluetooth device testing apparatus of the present application, realize the reuse of the communication interface, synchronously transmit the target test signal and supply power to the Bluetooth device testing apparatus based on the above-mentioned target interface, and save hardware costs.

[0065] Based on this, the Bluetooth device testing apparatus provided in this application includes: an input module for receiving a target test instruction; a control module for parsing the target test instruction to generate a target test signal; an output module for delivering the target test signal to a target device to control the target device to perform a target action; wherein, the Bluetooth device testing apparatus is provided with a target interface, and the target interface is used for transmitting the target test signal and powering the Bluetooth device testing apparatus. Based on this, on the one hand, this application can achieve improvements in test efficiency, test accuracy, and compatibility during the test process. On the other hand, it can achieve power supply for the Bluetooth device testing apparatus without the need for additional configuration of power supply components, which is beneficial to avoiding unstable power supply signals caused by battery power supply voltage attenuation, improving the stability of the power supply signal of the Bluetooth device testing apparatus, and thus improving the stability of the test process.

[0066] It should be noted that the Bluetooth testing apparatus of this application is integrally arranged on the main control chip of the Bluetooth remote control to get rid of the limitation that the traditional Bluetooth remote control cannot directly communicate with the target device.

[0067] Among them, the Bluetooth testing apparatus of this application can also be used to transform existing remote controls, and the transformation success rate is greater than 93.6%.

[0068] Specifically, when the above-mentioned main control chip is an STM32F103C8T6 chip, the PA9 (TX) interface and the PA10 (RX) interface can be soldered on the serial port small board of the STM32F103C8T6 chip. Among them, the above-mentioned PA9 interface and the above-mentioned PA10 interface can be soldered to the common ground (GND) pin of the main control chip using 0.1mm enameled wire.

[0069] Specifically, Figure 4 This is a schematic diagram of the main board wiring provided for the embodiments of this application. As Figure 4 shown, the signal can be transmitted from the TX pin (transmission end) of the CH340G chip to the PC817 optocoupler; the PC817 optocoupler receives the signal from CH340G_TX, converts it into an optical signal, and then transmits it to the output end through the optical coupler; the output end of the optocoupler is connected to the PA10 pin (receiving end) of the STM32F103C8T6 main control chip; the STM32F103C8T6 main control chip receives the signal from the PC817 optocoupler through the PA10 pin and sends the signal to another PC817 optocoupler through the PA9 pin (transmission end); the PC817 optocoupler receives the signal from PA9, converts it into an optical signal, and then transmits it to the output end through the optical coupler; the output end of the optocoupler is connected to the RX pin (receiving end) of the CH340G chip to complete the signal transmission; among them, the ground wire (GND) of the entire system is connected in common through CH340G_GND to ensure the stability of signal transmission.

[0070] Among them, experimental data shows that for the above remote control, the response time of button commands can be shortened to within 8 ms, the accuracy error of button triggering is less than <0.1 ms, and the fidelity of simulating user behavior is greater than 98%. Among them, the above simulation of user behavior may include: simulating rapid consecutive pressing behavior, simulating long pressing of combination keys, etc.

[0071] Specifically, the target test command initiated by the computer is sent to the set-top box to be tested through the Bluetooth test device in the remote control. Among them, the binding operation and unbinding operation between the above set-top box and the remote control can be implemented based on Bluetooth signals.

[0072] The above is the introduction of the device embodiment. The following further illustrates the solution of the present application through method embodiments.

[0073] In the second aspect of the present application, a method for testing a Bluetooth device is provided. Figure 5 A flowchart of a method for testing a Bluetooth device is provided for the embodiments of the present application, as Figure 5 shown. The method 200 includes: Step S210: Receive a target test command; Step S220: Generate a target test signal according to the target test command; Step S230: Control the target device to perform a target action according to the target test signal to test the target device.

[0074] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the described modules can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0075] In the third aspect of the present application, an electronic device is provided, including a memory and a processor. A computer program is stored on the above memory, and when the above processor executes the above computer program, the method described above is implemented.

[0076] Figure 6 A structural diagram of an electronic device is provided for the embodiments of the present application.

[0077] As Figure 6As shown, the terminal device or server includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage section 308 into the random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the terminal device or server are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. The input / output (I / O) interface 305 is also connected to the bus 304.

[0078] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as required. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as required so that a computer program read from it can be installed into the storage section 308 as required.

[0079] In particular, according to an embodiment of the present application, the above method flow steps can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program contains program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 309, and / or installed from the removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, the above functions defined in the system of the present application are executed.

[0080] In the fourth aspect of the present application, a computer-readable storage medium is provided. It should be noted that the computer-readable medium shown in the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the computer-readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0081] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the foregoing module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order from that marked in the accompanying drawings. For example, two consecutive blocks shown can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0082] The units or modules involved in the embodiments described in this application can be implemented in software or in hardware. The described units or modules can also be provided in a processor. Among them, the names of these units or modules do not, in some cases, constitute a limitation on the units or modules themselves.

[0083] As another aspect, this application also provides a computer-readable storage medium. The computer-readable storage medium can be included in the electronic device described in the foregoing embodiments; it can also exist alone without being assembled into the electronic device. The foregoing computer-readable storage medium stores one or more programs, and when the foregoing programs are executed by one or more processors, they implement the methods described in this application.

[0084] The above description is only a preferred embodiment of this application and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of the application involved in this application is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the foregoing application concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions described in this application.

Claims

1. A Bluetooth device testing device, characterized in that: include: An input module, used for receiving target test instructions; A control module, used for parsing the target test instruction to generate a target test signal; An output module, used for transmitting the target test signal to a target device to control the target device to perform a target action; The Bluetooth device testing apparatus is provided with a target interface, and the target interface is used to transmit the target test signal and to supply power to the Bluetooth device testing apparatus.

2. The Bluetooth device testing device according to claim 1, characterized in that: The control module comprises: The conversion unit is used to perform a target conversion operation on the target test instruction to generate the target test signal.

3. The Bluetooth device testing device according to claim 1, characterized in that: The control module further includes: The matching unit is used to match the target Bluetooth protocol stack according to the target AT instruction set and the target test instruction.

4. The Bluetooth device testing device according to claim 3, characterized in that: The control module further includes: The parsing module is used to determine the target test signal according to the target report descriptor and the target test instruction.

5. The Bluetooth device testing device according to claim 4, characterized in that: The parsing module comprises: The generating component is used to generate a corresponding target report descriptor according to the target test instruction.

6. The Bluetooth device testing device according to claim 5, characterized in that: The control module further includes: The isolation unit is used to isolate the plurality of target test signals.

7. The Bluetooth device testing device according to claim 6, characterized in that: The control module further includes: A determination unit, configured to determine a target baud rate according to the quality of the target test signal; The control unit is used to control the actual baud rate in real time so that the absolute value of the target difference is less than or equal to a preset threshold, wherein the target difference corresponds to the difference between the actual baud rate and the target baud rate.

8. A method for testing a Bluetooth device, characterized in that: include: receiving target test instructions; According to the target test instruction, generating a target test signal; According to the target test signal, the target device is controlled to execute a target action to test the target device.

9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the method according to claim 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to claim 9 is implemented.

Citation Information

Cited By

  • Bluetooth wireless communication receiver and control method thereof

    CN122340454A