WO2019090454A1 - 蓝牙测试系统及方法 - Google Patents

蓝牙测试系统及方法 Download PDF

Info

Publication number
WO2019090454A1
WO2019090454A1 PCT/CN2017/109624 CN2017109624W WO2019090454A1 WO 2019090454 A1 WO2019090454 A1 WO 2019090454A1 CN 2017109624 W CN2017109624 W CN 2017109624W WO 2019090454 A1 WO2019090454 A1 WO 2019090454A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
bluetooth
test control
peer
tested
Prior art date
Application number
PCT/CN2017/109624
Other languages
English (en)
French (fr)
Inventor
罗朝洪
Original Assignee
深圳市汇顶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2017/109624 priority Critical patent/WO2019090454A1/zh
Priority to CN201780001992.1A priority patent/CN110024362B/zh
Publication of WO2019090454A1 publication Critical patent/WO2019090454A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements

Definitions

  • Embodiments of the present invention relate to the field of testing technologies, and in particular, to a Bluetooth test system and method.
  • Bluetooth is a communication technology that supports short-range communication of devices. It can exchange wireless information between many devices including mobile terminals, wireless headsets, and related peripherals. With the development of technology, Bluetooth has evolved from classic Bluetooth to high-speed Bluetooth and low-power Bluetooth, and is widely used in various related devices. As a result, Bluetooth testing has become one of the important tasks of technology developers.
  • the current Bluetooth test mainly includes basic function test and compatibility test.
  • the basic function test is used to test the basic functions of Bluetooth, including the function points realized by various application specifications of Bluetooth, the inspection of human-machine interface, interface test, and interactive test. , performance testing, stress testing, etc.; compatibility testing is used to test compatibility between different types of Bluetooth devices, especially whether Bluetooth devices from different manufacturers are compatible and working properly.
  • Most of the existing Bluetooth test solutions are customized test platforms based on actual test requirements. They can only be used for set application scenario testing.
  • the utility model is narrow and has a single function, resulting in inefficient Bluetooth test, versatility and scalability of the test platform. Both are poor.
  • the embodiment of the invention provides a Bluetooth test system and method, which solves the problem that the existing Bluetooth test is inefficient, and the test platform has poor versatility and scalability.
  • a Bluetooth test system including: a test control device, a first Bluetooth device to be tested, and a peer device corresponding to the first Bluetooth device to be tested, a second Bluetooth device is disposed in the peer device, where the test control device is configured to send a test control instruction to the first Bluetooth device to be tested and the peer device; the peer device is configured to: Performing test interaction with the first Bluetooth device by using the second Bluetooth device according to the test control command and the pre-stored test case; the first Bluetooth device to be tested is used according to the test control command and the The test case is tested and interacted with the second Bluetooth device.
  • a Bluetooth test method including: the test control device sends a test control command to the peer device, and instructs the peer device to use the pre-stored test.
  • the test instance performs a test interaction with the first Bluetooth device to be tested by using the second Bluetooth device in the peer device; the test control device determines the Bluetooth test result of the first Bluetooth device according to the information of the test interaction. .
  • the Bluetooth test of the Bluetooth device to be tested is implemented by using the test control device, the Bluetooth device to be tested, and the peer device corresponding to the Bluetooth device to be tested, wherein the test control device controls the Bluetooth device to be tested.
  • the peer device stores a test case in the peer device. After receiving the test control command of the test control device, the peer device performs a test interaction with the Bluetooth device to be tested, thereby implementing a Bluetooth test of the Bluetooth device to be tested.
  • test control devices they can generate and send test control commands based on actual test requirements.
  • test case is stored in the peer device, on the one hand, the data storage and processing burden of the test control device is alleviated; on the other hand, the implementation of the test case is more flexible and convenient.
  • the Bluetooth test solution provided by the embodiment of the present invention provides a flexible Bluetooth test platform, which can be applied to different Bluetooth test scenarios, and has high versatility and strong scalability, and improves Bluetooth. Test efficiency.
  • FIG. 1 is a block diagram showing the structure of a Bluetooth test system according to a first embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a Bluetooth test system according to Embodiment 2 of the present invention.
  • FIG. 3 is a flow chart showing the steps of a Bluetooth test method according to Embodiment 3 of the present invention.
  • FIG. 4 is a flow chart showing the steps of a Bluetooth test method according to Embodiment 4 of the present invention.
  • FIG. 1 a block diagram of a Bluetooth test system according to a first embodiment of the present invention is shown.
  • the Bluetooth test system of this embodiment includes: a test control device 102, a first Bluetooth device 104 to be tested, and a peer device 106 corresponding to the first Bluetooth device 104 to be tested, wherein the peer device 106 is provided with a second Bluetooth device 1062.
  • the test control device 102 is configured to send test control instructions to the first Bluetooth device 104 and the peer device 106 to be tested.
  • the Bluetooth test system provided by the embodiment of the invention can perform the basic function test of the Bluetooth, the compatibility test of the Bluetooth, and the test of both.
  • the test control instructions can include test control instructions for basic functional testing and/or test control instructions for compatibility testing.
  • Test control device 102 can be any suitable device with control and data processing functionality, including but not limited to a PC or the like.
  • the peer device 106 is configured to perform test interaction with the first Bluetooth device 104 via the second Bluetooth device 1062 according to the test control command of the test control device 102 and the test case locally pre-stored by the peer device 106.
  • the peer device 106 is a device that cooperates with the first Bluetooth device to be tested to implement Bluetooth testing, including but not limited to a smart mobile terminal device.
  • the first Bluetooth device 104 to be tested is used for testing interaction with the second Bluetooth device 1062 according to the test control command of the test control device 102 and the test case of the peer device 106.
  • the first Bluetooth device 104 and the second Bluetooth device 1062 may be the same type of Bluetooth device or different types of Bluetooth devices.
  • test interaction includes but is not limited to: data and instruction interaction during test case execution, and interaction of test data and instructions related to Bluetooth test except test cases.
  • the Bluetooth test of the Bluetooth device to be tested is implemented by using the test control device, the Bluetooth device to be tested, and the peer device corresponding to the Bluetooth device to be tested, wherein the test control device controls the Bluetooth device to be tested and
  • the peer device stores a test case in the peer device.
  • the peer device After receiving the test control command of the test control device, the peer device performs a test interaction with the Bluetooth device to be tested, thereby implementing a Bluetooth test of the Bluetooth device to be tested.
  • it can Generate and send test control commands based on actual test requirements.
  • test case is stored in the peer device, on the one hand, the data storage and processing burden of the test control device is alleviated; on the other hand, the implementation of the test case is more flexible and convenient.
  • the Bluetooth test system provided by the embodiment provides a flexible Bluetooth test platform, which can be applied to different Bluetooth test scenarios, and has high versatility and strong scalability, and improves the Bluetooth test. effectiveness.
  • the Bluetooth test system includes: a test control device, a first Bluetooth device to be tested, and a peer device corresponding to the first Bluetooth device to be tested, wherein the second device is set in the peer device.
  • test control device In this embodiment, a PC is used as the test control device, but those skilled in the art should understand that other suitable devices with control and data processing functions can also be used as test control devices, such as industrial computer or mobile notebook. and many more.
  • the mobile terminal is used as the peer device.
  • the current mobile terminal basically has a corresponding Bluetooth device, and can store the test case, control the execution of the test case, and the Bluetooth in the mobile terminal.
  • the device and the Bluetooth device to be tested may be of the same type or different types.
  • the Bluetooth devices in different mobile terminals may be of the same type or different types. Therefore, the basic function test of Bluetooth or the compatibility test of Bluetooth may be performed. The test is convenient and the test cost is low.
  • using the mobile terminal and the test control device and the Bluetooth device to be tested to construct the test platform the environment and the venue are not required to be considered, and the mobile terminal and the Bluetooth device to be tested are both easy to set up. It can be added or deleted as needed, or it can test multiple Bluetooth devices to be tested at the same time, which has high flexibility and scalability.
  • BLE Bluetooth Low Energy
  • the Bluetooth test system of the embodiment of the present invention is also applicable to other types of Bluetooth.
  • Devices such as Classic Bluetooth or High Speed Bluetooth.
  • the current BLE test mainly uses manual test methods, and different test scenarios (such as basic function tests, Compatibility testing, etc.) often requires different test systems; in addition, when doing compatibility testing, you need to stop the current test and manually access the Bluetooth device to be tested. These reasons lead to inefficient testing of BLE, poor versatility of test systems, and poor scalability.
  • the Bluetooth test system provided by the embodiment of the present invention can be applied to testing various Bluetooth devices including BLE, and effectively solves the problems in the above existing BLE test.
  • the first Bluetooth device to be tested can be set on an FPGA (Field-Programmable Gate Array) development board, and the first Bluetooth device to be tested passes the Bluetooth port of the FPGA development board. Test interaction with the second Bluetooth device in the peer device. Setting the first Bluetooth device to be tested on the FPGA development board not only facilitates the testing of the Bluetooth device, but also facilitates the search and location of abnormal problems when the test is abnormal due to the characteristics of the FPGA development board itself.
  • the FPGA development board can use a general-purpose FPGA board, and the debug port of the FPGA board can be further set as needed to enable accurate problem finding and positioning.
  • the test control device is further configured to burn the protocol stack application of the Bluetooth protocol to the FPGA development board before sending the test control instruction to the first Bluetooth device.
  • the Bluetooth protocol specification follows the open system interconnection reference model, defines the various layers of the Bluetooth protocol stack from low to high, and burns the protocol stack application of the Bluetooth protocol to the FPGA development board, so that the FPGA development board can communicate according to the Bluetooth protocol. And interact.
  • the present invention is not limited thereto. In practical applications, those skilled in the art may follow other Bluetooth Bluetooth protocols for communication and testing according to actual needs.
  • the test control device also burns debugging tools or debugging code to the FPGA development board to improve Bluetooth testing and adjustment efficiency.
  • the debugging tool may be appropriately set by a person skilled in the art according to actual needs, and the embodiment of the present invention does not limit this.
  • the FPGA development board can be a BLE FPGA development board; when the first Bluetooth device to be tested is non-BLE, such as classic Bluetooth or high speed Bluetooth, FPGA The development board can be used for other FPGA development boards, such as general purpose FPGA development boards.
  • the peer device may include one or more (two or more), and each peer device is provided with a Bluetooth device, that is, a second Bluetooth device, and the Bluetooth device in each peer device may be of a type
  • the same or different types may be used, and the Bluetooth device in the peer device may be of the same type or different type as the first Bluetooth device to be tested.
  • the compatibility test in the Bluetooth test usually needs to be performed between different types of Bluetooth devices, for example, Bluetooth test in the case of different types of peer devices, The Bluetooth test under the condition that the device under test and the peer device are different types of devices, the Bluetooth test under the condition that the device under test and the peer device have different operating systems, the device under test and the peer device are different.
  • Bluetooth test in case of Bluetooth adapter or different types of Bluetooth devices, Bluetooth test with different types of chips for the device under test and the peer device, Bluetooth test with different protocol stack versions for the device under test and the peer device, etc. Wait. To meet the compatibility test, multiple peer devices can be selected or set to implement compatibility testing of Bluetooth devices.
  • the peer device includes a plurality of mobile terminals, and the plurality of mobile terminals include at least two mobile terminals configured with different types of second Bluetooth devices. This greatly facilitates the compatibility test of Bluetooth devices.
  • the test control device is further configured to detect an update of the peer device, and update the peer device information in the test control device according to the updated information.
  • the test control device stores the information of the peer device.
  • the peer device may be updated as needed, such as adding the peer device or deleting the peer device.
  • the test control device updates the information of the peer device saved by itself according to the update status of the peer device, so as to select the appropriate peer device for Bluetooth test.
  • test log records the interaction data and information during the test, and the test control device can separately receive the test sent by the peer device and the FPGA development board. Log and output test results based on the test log. After the test control device analyzes the interaction data and information in the test log, the Bluetooth test result can be determined and then output.
  • a continuous integration tool can be set up in the test control device, wherein the continuous integration tool is used to detect updates to the protocol stack application and to compile the protocol stack application.
  • the software development cycle requires some automated tools that can help developers speed up. The most important purpose is to promote continuous integration and delivery of software projects. Continuous integration tools are the tools to achieve this. Through continuous integration tools, you can detect and download the latest software versions, compile the software, and implement automatic regression testing of the source code of the software. In practical applications, those skilled in the art can select any suitable continuous integration tools according to actual needs, such as Jenkins tools, Atlassian Bamboo tools, CircleCI tools, Eclipse Hudson tools, and the like.
  • FIG. 2 An example of a Bluetooth test system based on the above settings is shown in FIG. 2.
  • the Bluetooth test system in FIG. 2 uses the PC 202 as a test control device and the mobile terminal 204 as a peer device.
  • the BLE FPGA development board 206 set on the FPGA development board is used as the Bluetooth device to be tested, wherein the mobile terminal 204 is also provided with a Bluetooth device (which may be BLE or other types of Bluetooth devices).
  • the PC 202 of Figure 2 is the control center of the Bluetooth test system, and both the mobile terminal 204 and the BLE FPGA development board 206 accept its control by commands.
  • the PC 202 stores the code to be tested, for example, the protocol stack code of the Bluetooth protocol, and the form may be source code or a compiled BIN file or other executable file.
  • the PC 202 burns the BIN file or other executable file onto the BLE FPGA development board 206 prior to the Bluetooth test.
  • the PC 202 collects the test logs sent by the mobile terminal 204 and the BLE FPGA development board 206, analyzes the test logs, and outputs the test results in an appropriate form, such as outputting a test report.
  • the Bluetooth test system can also perform automatic regression testing of the source code. At this time, the PC 202 also assumes the role of checking whether the source code is updated and downloading the latest source code.
  • the peer device is a type of programmable device capable of supporting both WIFI and Bluetooth interfaces, such as a smartphone or tablet, and is represented as mobile terminal 204 in FIG. All test cases are stored in the mobile terminal 204.
  • the test case is initiated when the mobile terminal 204 receives a test command from the PC 202.
  • the mobile terminal 204 performs the Bluetooth test by command and data exchange with the BLE on the BLE FPGA development board 206.
  • the number of mobile terminals 204 may be one or more depending on the test scenario.
  • the BLE FPGA development board 206 is used to place the BLE to be tested, which accepts commands from the mobile terminal 204 and the PC 202, and performs Bluetooth testing based on the test cases.
  • the PC 202 and the mobile terminal 204 perform test command transmission and reception through the WIFI interface, and the PC 202 also receives the test log from the mobile terminal 204; the PC 202 develops the board to the BLE FPGA through the JTAG interface or the SPI interface. 206 burns a BIN file or other executable file, the BLE FPGA development board 206 performs test command transceiving between the serial port and the PC 202, and sends a test log to the PC 202; between the mobile terminal 204 and the BLE FPGA development board 206 Bluetooth test interaction via Bluetooth interface, such as sending and receiving test commands and data streams.
  • the PC 202 also sends instructions directly to the BLE FPGA development board 206, such as the PC 202 sends a soft reset command, a reburn command to the BLE FPGA development board 206, and, at the mobile terminal 204 and BLE.
  • the FPGA development board 206 cannot communicate directly, such as non-connectable broadcast measurement
  • test instructions or parameters are sent to the BLE FPGA development board 206.
  • the PC 202 performs corresponding test preparation and operation according to the set task flow and the trigger condition, and performs test result feedback according to the received test log. For example, according to the set task flow and the trigger condition, the PC 202 first burns the BIN file or other executable file to the BLE FPGA development board 206 through the JTAG interface or the SPI interface; after the burning is completed, the PC 202 passes the WIFI interface.
  • Some or some of the mobile terminals 204 send test control instructions; the mobile terminal 204 tests the use cases between the Bluetooth interface and the BLE FPGA development board 206 according to the test control instructions and the pre-stored test cases, and interactively tests the instructions and data streams; The 204 and BLE FPGA development board 206 sends a test log to the PC 202; the PC 202 performs test result feedback and output based on the test log.
  • the Bluetooth test of the Bluetooth device to be tested is implemented by using the test control device, the Bluetooth device to be tested, and the peer device corresponding to the Bluetooth device to be tested, wherein the test control device controls the Bluetooth device to be tested and the peer device, A test case is stored in the end device.
  • the peer device After receiving the test control command of the test control device, the peer device performs a test interaction with the Bluetooth device to be tested, thereby implementing a Bluetooth test of the Bluetooth device to be tested.
  • test control devices they can generate and send test control commands based on actual test requirements.
  • test case is stored in the peer device, on the one hand, the data storage and processing burden of the test control device is alleviated; on the other hand, the implementation of the test case is more flexible and convenient.
  • the Bluetooth test system provided by the embodiment provides a flexible Bluetooth test platform, which can be applied to different Bluetooth test scenarios, and has high versatility and strong scalability, and improves the Bluetooth test. effectiveness.
  • FIG. 3 a flow chart of steps of a Bluetooth test method according to Embodiment 3 of the present invention is shown.
  • the Bluetooth test method in this embodiment is used to perform a Bluetooth test using the Bluetooth test system in the first or second embodiment.
  • the Bluetooth test method in this embodiment includes the following steps:
  • Step S302 The test control device sends a test control command to the peer device, instructing the peer device to use the pre-stored test case to perform test interaction with the second Bluetooth device to be tested by the second Bluetooth device in the peer device.
  • the peer device is a device that cooperates with the first Bluetooth device to be tested to implement the Bluetooth test of the first Bluetooth device, and pre-stores a test case, and uses the test case to perform Bluetooth test interaction.
  • the test of the first Bluetooth device may be a basic function test, a compatibility test, or both.
  • the first Bluetooth device may be BLE to implement effective testing of the BLE, but other types of Bluetooth devices are also applicable to the solution of the embodiment of the present invention.
  • the first Bluetooth device can also be set on the FPGA development board; in this case, before the test control device sends a test control command to the peer device, the protocol stack application of the Bluetooth protocol can be programmed into the FPGA development board.
  • a debugging tool or debugging code for debugging the first Bluetooth device can be burned.
  • a continuous integration tool such as Jenkins et al. can be set in the test control device, and the update of the protocol stack application and/or the debug tool can be detected through the continuous integration tool. If the test control device detects that the protocol stack application has been updated, the updated protocol stack application can be re-burned to the FPGA development board.
  • the peer device may include multiple, for example, the peer device includes multiple mobile terminals, and the plurality of mobile terminals include at least two mobile terminals configured with different types of second Bluetooth devices,
  • the compatibility test of the first Bluetooth device is implemented quickly and conveniently.
  • the test control device transmitting the test control command to the peer device includes: the test control device selects one of the plurality of mobile terminals, and sends a test control command to the selected mobile terminal.
  • the peer device may be updated. For example, if the peer device is added or the peer device is deleted, the test control device detects whether the peer device has updated. If an update occurs, according to the Updated information to update peer device information in the test control device.
  • Step S304 The test control device determines the Bluetooth test result of the first Bluetooth device according to the information of the test interaction.
  • the peer device and the FPGA development board can send to the test control device.
  • the test log carries the test interaction information in the test log
  • the test control device respectively receives the test log sent by the peer device and the FPGA development board, determines the Bluetooth test result of the first Bluetooth device according to the test log, and outputs the Bluetooth test result.
  • it is not limited to the form of the test log, and any other suitable way of obtaining the information of the test interaction can be applied.
  • the Bluetooth test of the Bluetooth device to be tested is implemented by using the test control device, the Bluetooth device to be tested, and the peer device corresponding to the Bluetooth device to be tested, wherein the test control device controls the Bluetooth device to be tested and the peer device, A test case is stored in the end device.
  • the peer device After receiving the test control command of the test control device, the peer device performs a test interaction with the Bluetooth device to be tested, thereby implementing a Bluetooth test of the Bluetooth device to be tested.
  • test control devices they can generate and send test control commands based on actual test requirements.
  • test case is stored in the peer device, on the one hand, the data storage and processing burden of the test control device is alleviated; on the other hand, the implementation of the test case is more flexible and convenient.
  • the Bluetooth test method provided in this embodiment can be applied to different Bluetooth test scenarios, and has high versatility and strong scalability, and improves Bluetooth test efficiency.
  • FIG. 4 a flow chart of steps of a Bluetooth test method according to Embodiment 4 of the present invention is shown.
  • This embodiment uses a specific example as an example to describe a Bluetooth test method provided by an embodiment of the present invention.
  • a PC is used as a test control device
  • a plurality of mobile terminals are used as a peer device
  • a BLE BLE FPGA development board set on an FPGA development board is used as a Bluetooth device to be tested.
  • Step S402 The PC detects the source code update for the Bluetooth test and downloads the source code to compile the source code.
  • the PC sets the task flow and trigger conditions of the system test through a program or a script (for example, The Bluetooth test is triggered once a day. After the trigger condition is met, the PC downloads the latest source code for the Bluetooth test and compiles it. For example, the PC downloads the source code and compiles it through its continuous integration tool (such as Jenkins). In addition, the PC detects the update of the source code through its continuous integration tool to confirm and download the latest version of the source code.
  • a program or a script for example, The Bluetooth test is triggered once a day.
  • the PC downloads the latest source code for the Bluetooth test and compiles it. For example, the PC downloads the source code and compiles it through its continuous integration tool (such as Jenkins).
  • the PC detects the update of the source code through its continuous integration tool to confirm and download the latest version of the source code.
  • this step is an optional step and can be omitted according to different test requirements.
  • Step S404 The PC burns the source code to the BLE FPGA development board.
  • the PC burns the source code in the form of a BIN file or other executable file to the BLE FPGA development board. After successful programming, the BLE FPGA development board sends the ready signal to the PC through the serial port.
  • Step S406 The PC selects one mobile terminal from the plurality of mobile terminals, and instructs the selected mobile terminal to perform test interaction with the BLE FPGA development board.
  • a second Bluetooth device is disposed in the mobile terminal, and the first Bluetooth device to be tested is placed on the BLE FPGA development board, and the PC sends a test control command to the mobile terminal, and after receiving the test control command, the mobile terminal receives the test control command.
  • the PC selects one mobile terminal from a plurality of mobile terminals, and sends an activation command to make it in a test state; after receiving the activation command, the selected mobile terminal sends a test command to the BLE FPGA development board to test the test case.
  • the PC may select the mobile terminal by using any suitable manner, for example, by setting a priority for the mobile terminal, or selecting an appropriate mobile terminal according to a corresponding electromagnetic environment and a specific function to be tested, and the like. This example does not limit this.
  • Step S408 The mobile terminal and the BLE FPGA development board send a test log to the PC.
  • the mobile terminal and the BLE FPGA development board transmit the test log to the PC in real time during the execution of the test case, and the PC receives the test log and stores it.
  • Step S410 After the selected mobile terminal executes all the test cases, the test completion signal is sent to the PC.
  • Step S412 It is judged whether all the mobile terminals have completed the test, and if so, step S414 is performed; if not, the process returns to step S406.
  • Steps S406-S410 are repeated until all mobile terminals have completed the test.
  • Step S414 When all the mobile terminals have completed the test, the PC analyzes the test log and outputs the test. Try the report and end this Bluetooth test.
  • the test report may include test information and test result information of the first Bluetooth device to be tested.
  • a heartbeat connection needs to be maintained between the peer terminal (such as the mobile terminal in this embodiment) and the test control device (such as the PC in this embodiment) being tested.
  • the test control device does not receive the heartbeat signal for a certain period of time, indicating that the test system has failed, the test control device skips the remaining test cases and restarts a new test by selecting a peer terminal from the list of the peer terminal.
  • the peer device can access the Bluetooth test system for testing at any time during the compatibility test, and the test control device starts after the Bluetooth test system test is started.
  • the socket server service when the peer device establishes a connection with the test control device through the IP address, the test control device automatically adds the peer device to the peer device list.
  • the Bluetooth test system provided by the present embodiment is flexible and convenient to construct, can greatly save manpower input, improve the efficiency of Bluetooth test, and has strong versatility.
  • a system can support multiple Bluetooth test scenarios; good scalability and compatibility. Any number of peer devices and Bluetooth devices to be tested can be automatically accessed at any time during the test.
  • a machine-readable medium includes read only memory (ROM), random access memory (RAM), magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (eg, carrier waves) , an infrared signal, a digital signal, etc., etc., the computer software product comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the various embodiments or portions of the embodiments described Methods.
  • ROM read only memory
  • RAM random access memory
  • magnetic disk storage media e.g., magnetic disks, magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (eg, carrier waves) , an infrared signal, a digital signal, etc., etc.
  • the computer software product comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the various embodiments or portions of the embodiment

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供了一种蓝牙测试系统及方法,其中,蓝牙测试系统包括:测试控制设备、待测的第一蓝牙设备、与所述待测的第一蓝牙设备对应的对端设备,所述对端设备中设置有第二蓝牙设备;其中,所述测试控制设备,用于向所述待测的第一蓝牙设备和所述对端设备发送测试控制指令;所述对端设备,用于根据所述测试控制指令和预存的测试用例,通过所述第二蓝牙设备与所述第一蓝牙设备进行测试交互;所述待测的第一蓝牙设备,用于根据所述测试控制指令和所述测试用例,与所述第二蓝牙设备进行测试交互。通过本发明实施例,提供了一种灵活的蓝牙测试平台,可应用于不同的蓝牙测试场景,且具有较高的通用性和较强的可扩展性,提高了蓝牙测试效率。

Description

蓝牙测试系统及方法 技术领域
本发明实施例涉及测试技术领域,尤其涉及一种蓝牙测试系统及方法。
背景技术
蓝牙是一种支持设备短距离通信的通信技术,能在包括移动终端、无线耳机、相关外设等等众多设备之间进行无线信息交换。随着技术的发展,蓝牙已经从经典蓝牙发展到了高速蓝牙和低功耗蓝牙,广泛应用于各种相关设备中。由此,蓝牙测试也成为技术开发人员的重要工作之一。
目前的蓝牙测试主要包括基本功能测试和兼容性测试,其中,基本功能测试用于测试蓝牙的基本功能,包括蓝牙的各个应用规范所实现的功能点、人机界面的检验、接口测试、交互测试、性能测试、压力测试等等;兼容性测试用于测试不同类型的蓝牙设备之间是否兼容,尤其是不同生产厂商的蓝牙设备之间是否兼容且工作正常。现有的蓝牙测试方案大多都是根据实际测试需求定制测试平台,仅能用于设定的应用场景测试,实用面狭窄,功能单一,导致蓝牙测试效率低下、测试平台的通用性和可扩展性都较差。
发明内容
本发明实施例提供一种蓝牙测试系统及方法,以解决现有蓝牙测试效率低下、测试平台的通用性和可扩展性都较差的问题。
根据本发明实施例的第一方面,提供了一种蓝牙测试系统,包括:测试控制设备、待测的第一蓝牙设备、与所述待测的第一蓝牙设备对应的对端设备,所述对端设备中设置有第二蓝牙设备;其中,所述测试控制设备,用于向所述待测的第一蓝牙设备和所述对端设备发送测试控制指令;所述对端设备,用于根据所述测试控制指令和预存的测试用例,通过所述第二蓝牙设备与所述第一蓝牙设备进行测试交互;所述待测的第一蓝牙设备,用于根据所述测试控制指令和所述测试用例,与所述第二蓝牙设备进行测试交互。
根据本发明实施例的第二方面,还提供了一种蓝牙测试方法,包括:测试控制设备向对端设备发送测试控制指令,指示所述对端设备使用预存的测 试用例通过所述对端设备中的第二蓝牙设备与待测的第一蓝牙设备进行测试交互;所述测试控制设备根据所述测试交互的信息,确定所述第一蓝牙设备的蓝牙测试结果。
根据本发明实施例提供的蓝牙测试方案,使用测试控制设备、待测蓝牙设备和与待测蓝牙设备对应的对端设备实现待测蓝牙设备的蓝牙测试,其中,测试控制设备控制待测蓝牙设备和对端设备,对端设备中存储有测试用例,在接收到测试控制设备的测试控制指令后,对端设备与待测蓝牙设备进行测试交互,从而实现待测蓝牙设备的蓝牙测试。对于测试控制设备来说,其可以根据实际的测试需求生成并发送测试控制指令。对端设备可以有一个或多个,每个对端设备中都存储有一个或多个测试用例,不同对端设备存储的测试用例可以相同,也可以不同,测试时,可以根据实际需要选择适当的对端设备和测试用例,以及,对测试用例进行修改和增删。并且,测试用例存储在对端设备中,一方面,减轻了测试控制设备的数据存储和处理负担;另一方面,也使得测试用例的实现更为灵活方便。
可见,通过本发明实施例提供的蓝牙测试方案,提供了一种灵活的蓝牙测试平台,可应用于不同的蓝牙测试场景,且具有较高的通用性和较强的可扩展性,提高了蓝牙测试效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为根据本发明实施例一的一种蓝牙测试系统的结构框图;
图2为根据本发明实施例二的一种蓝牙测试系统的结构示意图;
图3为根据本发明实施例三的一种蓝牙测试方法的步骤流程图;
图4为根据本发明实施例四的一种蓝牙测试方法的步骤流程图。
具体实施方式
为使得本发明实施例的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而 非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。
实施例一
参照图1,示出了根据本发明实施例一的一种蓝牙测试系统的结构框图。
本实施例的蓝牙测试系统包括:测试控制设备102、待测的第一蓝牙设备104、与待测的第一蓝牙设备104对应的对端设备106,其中,对端设备106中设置有第二蓝牙设备1062。
测试控制设备102用于向待测的第一蓝牙设备104和对端设备106发送测试控制指令。本发明实施例提供的蓝牙测试系统既可以进行蓝牙的基本功能测试,也可以进行蓝牙的兼容性测试,还可以两者兼测。因此,测试控制指令可以包括用于基本功能测试的测试控制指令和/或用于兼容性测试的测试控制指令。测试控制设备102可以是任意适当的具有控制和数据处理功能的设备,包括但不限于PC机等。
对端设备106用于根据测试控制设备102的测试控制指令和对端设备106本地预存的测试用例,通过第二蓝牙设备1062与第一蓝牙设备104进行测试交互。对端设备106是与待测的第一蓝牙设备相配合实现蓝牙测试的设备,包括但不限于智能移动终端设备。
待测的第一蓝牙设备104用于根据测试控制设备102的测试控制指令和对端设备106的测试用例,与第二蓝牙设备1062进行测试交互。第一蓝牙设备104和第二蓝牙设备1062可以是相同类型的蓝牙设备也可以是不同类型的蓝牙设备。
其中,测试交互包括但不限于:测试用例执行过程中的数据和指令交互,以及,测试用例之外的、与蓝牙测试有关的测试数据和指令的交互等等。
通过本实施例提供的蓝牙测试系统,使用测试控制设备、待测蓝牙设备和与待测蓝牙设备对应的对端设备实现待测蓝牙设备的蓝牙测试,其中,测试控制设备控制待测蓝牙设备和对端设备,对端设备中存储有测试用例,在接收到测试控制设备的测试控制指令后,对端设备与待测蓝牙设备进行测试交互,从而实现待测蓝牙设备的蓝牙测试。对于测试控制设备来说,其可以 根据实际的测试需求生成并发送测试控制指令。对端设备可以有一个或多个,每个对端设备中都存储有一个或多个测试用例,不同对端设备存储的测试用例可以相同,也可以不同,测试时,可以根据实际需要选择适当的对端设备和测试用例,以及,对测试用例进行修改和增删。并且,测试用例存储在对端设备中,一方面,减轻了测试控制设备的数据存储和处理负担;另一方面,也使得测试用例的实现更为灵活方便。
可见,通过本实施例提供的蓝牙测试系统,提供了一种灵活的蓝牙测试平台,可应用于不同的蓝牙测试场景,且具有较高的通用性和较强的可扩展性,提高了蓝牙测试效率。
实施例二
本实施例中,蓝牙测试系统包括:测试控制设备、待测的第一蓝牙设备、与待测的第一蓝牙设备对应的对端设备,其中,对端设备中设置有第二蓝牙设备。
本实施例中,使用PC机作为测试控制设备,但本领域技术人员应当明了,其它适当的具有控制和数据处理功能的设备也同样可以作为测试控制设备,如,工控电脑或者可移动的笔记本电脑等等。
此外,本实施例中,使用移动终端作为对端设备,一方面,目前的移动终端中基本上都设置有相应的蓝牙设备,且可存储测试用例,控制测试用例的执行,移动终端中的蓝牙设备与待测蓝牙设备可以类型相同也可以类型不同,不同的移动终端中的蓝牙设备可能类型相同也可能类型不同,因此,既可进行蓝牙的基本功能测试,也可进行蓝牙的兼容性测试,测试方便,测试成本低;另一方面,使用移动终端与测试控制设备及待测蓝牙设备构建测试平台,无需过多考虑环境、场地等影响,便于搭建,且移动终端和待测的蓝牙设备均可以根据需要增加或删除,也可以同时对多个待测的蓝牙设备进行测试,具有较高的灵活性和可扩展性。
本实施例中,使用BLE(Bluetooth Low Energy,低功耗蓝牙设备)作为待测的第一蓝牙设备,但本领域技术人员应当明了,本发明实施例的蓝牙测试系统同样适用于其它类型的蓝牙设备,如经典蓝牙或高速蓝牙等。目前的BLE测试主要采用手动测试方式,并且不同的测试场景(如基本功能测试、 兼容性测试等)往往需要搭建不同的测试系统;另外,在做兼容性测试时需要停止当前测试,手动接入待测蓝牙设备。这些原因导致BLE的测试效率低下、测试系统通用性差、可扩展性差。本发明实施例提供的蓝牙测试系统可适用于包括BLE在内的多种蓝牙设备的测试,有效解决了上述现有BLE测试中的问题。
在一种可选方式中,待测的第一蓝牙设备可设置于FPGA(Field-Programmable Gate Array,现场可编程门阵列)开发板上,待测的第一蓝牙设备通过FPGA开发板的蓝牙端口与对端设备中的第二蓝牙设备进行测试交互。将待测的第一蓝牙设备设置于FPGA开发板上,不仅方便蓝牙设备的测试,而且因FPGA开发板自身的特性,当测试出现异常时,便于异常问题的查找和定位。其中,FPGA开发板可以采用通用的FPGA板,也可以根据需要对FPGA板的调试端口进行进一步设置,以使其可以准确进行问题查找和定位。
当待测的第一蓝牙设备设置于FPGA开发板上时,测试控制设备还用于在向第一蓝牙设备发送测试控制指令之前,向FPGA开发板中烧录蓝牙协议的协议栈应用程序。蓝牙协议规范遵循开放系统互连参考模型,从低到高地定义了蓝牙协议堆栈的各个层次,将蓝牙协议的协议栈应用程序烧录至FPGA开发板中,使FPGA开发板可以遵循蓝牙协议进行通信和交互。但不限于此,在实际应用中,本领域技术人员也可以根据实际需要,采用其它适当方式遵循蓝牙协议进行通信和测试。可选地,测试控制设备还向FPGA开发板中烧录调试工具或调试代码,以提高蓝牙测试和调整效率。其中,调试工具可以由本领域技术人员根据实际需求适当设置,本发明实施例对此不作限制。
需要说明的是,当待测的第一蓝牙设备为BLE时,FPGA开发板可以为BLE FPGA开发板;当待测的第一蓝牙设备为非BLE时,如为经典蓝牙或者高速蓝牙时,FPGA开发板可以为适配的其它FPGA开发板,如通用FPGA开发板。
可选地,对端设备可以包括一个或多个(两个或两个以上),每个对端设备中都设置有蓝牙设备,即第二蓝牙设备,各个对端设备中的蓝牙设备可以类型相同也可以类型不同,对端设备中的蓝牙设备可以与待测的第一蓝牙设备可以类型相同也可以类型不同。蓝牙测试中的兼容性测试通常需要在不同类型的蓝牙设备间进行,例如,不同类型的对端设备情况下的蓝牙测试、待 测蓝牙设备所在的待测设备与对端设备为不同类型的设备情况下的蓝牙测试、待测设备与对端设备具有不同的操作系统情况下的蓝牙测试、待测设备与对端设备具有不同蓝牙适配器或者不同类型的蓝牙设备情况下的蓝牙测试、待测设备与对端设备具有不同类型芯片情况下的蓝牙测试、待测设备与对端设备具有不同协议栈版本情况下的蓝牙测试,等等。为满足兼容性测试,可对多个对端设备进行选择或设置,以实现蓝牙设备的兼容性测试。
在一种可行方案中,对端设备包括多个移动终端,多个移动终端中包括至少两个设置有不同类型的第二蓝牙设备的移动终端。由此,极大方便了蓝牙设备的兼容性测试。
在对端设备包括多个情况下,测试控制设备还用于检测对端设备的更新,并根据所述更新的信息来更新测试控制设备中的对端设备信息。测试控制设备中存储有对端设备的信息,当对端设备包括多个时,可以根据需要对该多个对端设备进行更新,如增加对端设备或删除对端设备,在此情况下,测试控制设备会根据对端设备的更新情况,更新自身保存的对端设备的信息,以便于后续选择适当的对端设备进行蓝牙测试。
对端设备和FPGA开发板测试交互过程中,会产生相应的测试日志,该测试日志中记录了测试过程中的交互数据和信息,测试控制设备可以分别接收对端设备和FPGA开发板发送的测试日志,并根据测试日志输出测试结果。测试控制设备对测试日志中的交互数据和信息进行分析后,即可确定蓝牙测试结果进而进行输出。
可选地,可以在测试控制设备中设置持续集成工具,其中,持续集成工具用于检测协议栈应用程序的更新,以及编译协议栈应用程序。软件开发周期中需要一些可以帮助开发者提升速度的自动化工具,其最重要的目的是促进软件项目的持续集成与交付,持续集成工具即为实现该目的的工具。通过持续集成工具,可以检测和下载最新的软件版本、对软件进行编译,还可以实现软件对应的源代码的自动回归测试。在实际应用中,本领域技术人员可以根据实际需要选择任意适当的持续集成工具,如,Jenkins工具、Atlassian Bamboo工具、CircleCI工具、Eclipse Hudson工具等等。
一种基于上述设置的蓝牙测试系统的实例如图2所示,图2中的蓝牙测试系统使用PC机202作为测试控制设备、使用移动终端204作为对端设备、 使用设置于FPGA开发板上的BLE即BLE FPGA开发板206作为待测蓝牙设备,其中,移动终端204中也设置有蓝牙设备(可以是BLE,也可以是其它类型的蓝牙设备)。
图2中的PC机202是蓝牙测试系统的控制中心,移动终端204和BLEFPGA开发板206都通过命令接受它的控制。PC机202中存储有待测试的代码,如,蓝牙协议的协议栈代码,形式可以是源代码或者是已经编译好的BIN文件或其它可执行文件。在进行蓝牙测试前,PC机202将BIN文件或其它可执行文件烧录到BLE FPGA开发板206上。并且,PC机202收集移动终端204和BLE FPGA开发板206发送过来的测试日志,对测试日志进行分析处理后以适当形式输出测试结果,如输出测试报告。
如果PC机202上预装有持续集成工具(例如Jenkins等),这个蓝牙测试系统还能完成对源代码的自动回归测试。此时,PC机202还承担检查源代码是否有更新和下载最新源代码的作用。
对端设备是一类能同时支持WIFI和蓝牙接口的可编程设备,比如像智能手机或平板电脑等,图2中表示为移动终端204。所有测试用例都存储在移动终端204中。当移动终端204收到来自PC机202的测试指令后启动测试用例。移动终端204通过与BLE FPGA开发板206上的BLE的命令和数据交换,完成蓝牙测试。移动终端204的数量根据测试场景的不同,可能有一个或多个。
BLE FPGA开发板206用于放置待测试的BLE,它接受移动终端204和PC机202的命令,根据测试用例进行蓝牙测试。
如图2中所示,PC机202和移动终端204之间通过WIFI接口进行测试指令收发,PC机202还从移动终端204接收测试日志;PC机202通过JTAG接口或者SPI接口向BLE FPGA开发板206烧录BIN文件或其它可执行文件,BLE FPGA开发板206通过其串口与PC机202之间进行测试指令收发,以及向PC机202发送测试日志;移动终端204和BLE FPGA开发板206之间通过蓝牙接口进行蓝牙测试交互,如收发测试指令和数据流。在某些情况下,PC机202还会直接向BLE FPGA开发板206发送指令,如,PC机202向BLE FPGA开发板206发送软复位指令、重烧录指令,以及,在移动终端204和BLE FPGA开发板206之间无法直接通信时,如进行不可连接广播测 试时,向BLE FPGA开发板206发送测试指令或参数等等。
在测试过程中,PC机202根据设定的任务流和触发条件进行相应的测试准备和操作,并根据接收的测试日志进行测试结果反馈。如,根据设定的任务流和触发条件,PC机202先通过JTAG接口或者SPI接口向BLE FPGA开发板206烧录BIN文件或其它可执行文件;烧录完成后,PC机202通过WIFI接口向某个或某些移动终端204发送测试控制指令;移动终端204根据测试控制指令和预存的测试用例,通过蓝牙接口与BLE FPGA开发板206之间的用例测试,交互测试指令和数据流;移动终端204和BLE FPGA开发板206向PC机202发送测试日志;PC机202根据测试日志进行测试结果反馈和输出。
通过本实施例,使用测试控制设备、待测蓝牙设备和与待测蓝牙设备对应的对端设备实现待测蓝牙设备的蓝牙测试,其中,测试控制设备控制待测蓝牙设备和对端设备,对端设备中存储有测试用例,在接收到测试控制设备的测试控制指令后,对端设备与待测蓝牙设备进行测试交互,从而实现待测蓝牙设备的蓝牙测试。对于测试控制设备来说,其可以根据实际的测试需求生成并发送测试控制指令。对端设备可以有一个或多个,每个对端设备中都存储有一个或多个测试用例,不同对端设备存储的测试用例可以相同,也可以不同,测试时,可以根据实际需要选择适当的对端设备和测试用例,以及,对测试用例进行修改和增删。并且,测试用例存储在对端设备中,一方面,减轻了测试控制设备的数据存储和处理负担;另一方面,也使得测试用例的实现更为灵活方便。
可见,通过本实施例提供的蓝牙测试系统,提供了一种灵活的蓝牙测试平台,可应用于不同的蓝牙测试场景,且具有较高的通用性和较强的可扩展性,提高了蓝牙测试效率。
实施例三
参照图3,示出了根据本发明实施例三的一种蓝牙测试方法的步骤流程图。
本实施例的蓝牙测试方法用于使用实施例一或二中的蓝牙测试系统进行蓝牙测试,本实施例的蓝牙测试方法包括以下步骤:
步骤S302:测试控制设备向对端设备发送测试控制指令,指示对端设备使用预存的测试用例通过对端设备中的第二蓝牙设备与待测的第一蓝牙设备进行测试交互。
本实施例中,对端设备是与待测的第一蓝牙设备相配合,实现第一蓝牙设备的蓝牙测试的设备,其预存有测试用例,使用该测试用例进行蓝牙测试交互。其中,对第一蓝牙设备的测试既可以是基本功能测试,也可以是兼容性测试,还可以两者兼有。
在一种可行方式中,第一蓝牙设备可以为BLE,以实现BLE的有效测试,但其它类型的蓝牙设备也同样适用于本发明实施例的方案。第一蓝牙设备还可以设置于FPGA开发板上;此种情况下,在测试控制设备向对端设备发送测试控制指令之前,还可以向FPGA开发板中烧录蓝牙协议的协议栈应用程序。可选地,除协议栈应用程序外,还可以烧录用于调试第一蓝牙设备的调试工具或调试代码。通过将第一蓝牙设备设置于FPGA开发板上,可以实现快速、准确的蓝牙测试过程中的异常问题查找和定位。
进一步可选地,还可以在测试控制设备中设置持续集成工具,如Jenkins等,通过持续集成工具可以检测协议栈应用程序和/或调试工具的更新。若测试控制设备检测到协议栈应用程序发生了更新,则可以将更新后的协议栈应用程序重新烧录至FPGA开发板。
在另一种可行方式中,对端设备可以包括多个,如,对端设备包括多个移动终端,多个移动终端中包括至少两个设置有不同类型的第二蓝牙设备的移动终端,以快速便捷地实现第一蓝牙设备的兼容性测试。在此情况下,在每一次测试时,测试控制设备向对端设备发送测试控制指令包括:测试控制设备从多个移动终端中选择一个移动终端,并向选择的移动终端发送测试控制指令。
当对端设备包括多个时,对端设备可能进行更新,如增加对端设备或删除对端设备,则测试控制设备会检测对端设备是否发生了更新,若发生了更新,则根据所述更新的信息来更新测试控制设备中的对端设备信息。
步骤S304:测试控制设备根据所述测试交互的信息,确定第一蓝牙设备的蓝牙测试结果。
在一种可行方案中,对端设备和FPGA开发板可以向测试控制设备发送 测试日志,在测试日志中携带测试交互的信息,测试控制设备分别接收对端设备和FPGA开发板发送的测试日志,根据测试日志确定第一蓝牙设备的蓝牙测试结果并输出蓝牙测试结果。但不限于测试日志的形式,其它任意适当的获取测试交互的信息的方式均可适用。
通过本实施例,使用测试控制设备、待测蓝牙设备和与待测蓝牙设备对应的对端设备实现待测蓝牙设备的蓝牙测试,其中,测试控制设备控制待测蓝牙设备和对端设备,对端设备中存储有测试用例,在接收到测试控制设备的测试控制指令后,对端设备与待测蓝牙设备进行测试交互,从而实现待测蓝牙设备的蓝牙测试。对于测试控制设备来说,其可以根据实际的测试需求生成并发送测试控制指令。对端设备可以有一个或多个,每个对端设备中都存储有一个或多个测试用例,不同对端设备存储的测试用例可以相同,也可以不同,测试时,可以根据实际需要选择适当的对端设备和测试用例,以及,对测试用例进行修改和增删。并且,测试用例存储在对端设备中,一方面,减轻了测试控制设备的数据存储和处理负担;另一方面,也使得测试用例的实现更为灵活方便。
可见,本实施例提供的蓝牙测试方法可应用于不同的蓝牙测试场景,且具有较高的通用性和较强的可扩展性,提高了蓝牙测试效率。
实施例四
参照图4,示出了根据本发明实施例四的一种蓝牙测试方法的步骤流程图。
本实施例以一个具体实例为例,对本发明实施例提供的蓝牙测试方法进行说明。本实施例中,使用PC机作为测试控制设备、使用多个移动终端作为对端设备、使用设置于FPGA开发板上的BLE即BLE FPGA开发板作为待测蓝牙设备。
本实施例的蓝牙测试方法包括以下步骤:
步骤S402:PC机检测用于蓝牙测试的源代码更新并下载源代码,对源代码进行编译。
初始时,所有移动终端安装对应的测试程序和测试用例,并被设定处于睡眠状态。PC机通过程序或脚本设定系统测试的任务流和触发条件(例如, 每天定时触发一次蓝牙测试),在满足触发条件后,PC机下载最新的用于蓝牙测试的源代码并进行编译,如PC机通过其持续集成工具(如Jenkins)下载源代码并进行编译。此外,PC机还通过其持续集成工具检测源代码的更新情况,以便确认和下载最新版本的源代码。
需要说明的是,本步骤为可选步骤,根据测试需求的不同,可以省略。
步骤S404:PC机将所述源代码烧录至BLE FPGA开发板。
PC机将BIN文件形式的源代码或其它可执行文件形式的源代码烧录到BLE FPGA开发板,成功烧录后,BLE FPGA开发板通过串口发送已就绪信号给PC机。
步骤S406:PC机从多个移动终端中选择一个移动终端,指示选择的移动终端与BLE FPGA开发板进行测试交互。
本实施例中,移动终端中设置有第二蓝牙设备,BLE FPGA开发板上放置有待测的第一蓝牙设备,PC机向移动终端发送测试控制指令,移动终端在接收到测试控制指令后,通过其第二蓝牙设备以及BLE FPGA开发板的相应蓝牙端口与第一蓝牙设备进行蓝牙测试交互。
例如,PC机从多个移动终端中选择一个移动终端,并发送激活命令让其处于测试状态;选择的移动终端收到激活命令后,向BLE FPGA开发板下发测试命令进行测试用例的测试。
其中,PC机可以采用任意适当方式选择移动终端,如,通过为移动终端设置优先级的方式,或者,根据相应的电磁环境和具体的待测功能选择适当的移动终端,等等,本发明实施例对此不作限制。
步骤S408:移动终端和BLE FPGA开发板向PC机发送测试日志。
移动终端和BLE FPGA开发板在执行测试用例的过程中,实时向PC机传送测试日志,PC机收到测试日志后进行存储。
步骤S410:选择的移动终端执行完所有测试用例后,向PC机发送测试完成的信号。
步骤S412:判断是否所有移动终端都完成了测试,若是,执行步骤S414;若否,则返回步骤S406执行。
重复步骤S406-S410,直到所有移动终端都完成测试。
步骤S414:当所有移动终端都完成了测试,PC机分析测试日志后输出测 试报告,并结束本次蓝牙测试。
其中,测试报告中可以包括待测的第一蓝牙设备的测试信息和测试结果信息。
需要说明的是,为防止测试过程中出现故障,正在测试的对端终端(如本实施例中的移动终端)和测试控制设备(如本实施例中的PC机)之间需要保持心跳连接。当超过一定的时间测试控制设备没有收到心跳信号,表明测试系统出现故障,测试控制设备跳过剩余测试用例重新从对端终端的列表中选定一个对端终端开始新的测试。
另外,为增加本发明实施例提供的蓝牙测试方案的可扩展性,方便做兼容性测试时对端设备能随时接入蓝牙测试系统开展测试,蓝牙测试系统测试启动后,测试控制设备会开启一个socket server的服务,当对端设备通过IP地址与测试控制设备建立连接后,测试控制设备会自动把该对端设备加入到对端设备列表中。
通过本实施例可见,其提供的蓝牙测试系统构建灵活、方便,可以大幅节省人力投入,提高蓝牙测试效率;通用性强,一套系统可以支持多种蓝牙测试场景;扩展性好,做兼容性测试时能随时自动接入任意数目的对端设备和待测蓝牙设备。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,所述计算机可读记录介质包括用于以计算机(例如计算机)可读的形式存储或传送信息的任何机制。例如,机器可读介质包括只读存储器(ROM)、随机存取存储器(RAM)、磁盘存储介质、光存储介质、闪速存储介质、电、光、声或其他形式的传播信号(例如,载波、红外信号、数字信号等)等,该计算机软件产品包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本发明实施例的技术方案,而 非对其限制;尽管参照前述实施例对本发明实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (15)

  1. 一种蓝牙测试系统,包括:测试控制设备、待测的第一蓝牙设备、与所述待测的第一蓝牙设备对应的对端设备,所述对端设备中设置有第二蓝牙设备;
    其中,
    所述测试控制设备,用于向所述待测的第一蓝牙设备和所述对端设备发送测试控制指令;
    所述对端设备,用于根据所述测试控制指令和预存的测试用例,通过所述第二蓝牙设备与所述第一蓝牙设备进行测试交互;
    所述待测的第一蓝牙设备,用于根据所述测试控制指令和所述测试用例,与所述第二蓝牙设备进行测试交互。
  2. 根据权利要求1所述的系统,其中,所述第一蓝牙设备设置于FPGA开发板上,所述第一蓝牙设备通过所述FPGA开发板的蓝牙端口与所述第二蓝牙设备进行测试交互。
  3. 根据权利要求2所述的系统,其中,所述测试控制设备,还用于在向所述第一蓝牙设备发送所述测试控制指令之前,向所述FPGA开发板中烧录蓝牙协议的协议栈应用程序。
  4. 根据权利要求3所述的系统,其中,所述测试控制设备中还设置有持续集成工具,所述持续集成工具用于检测所述协议栈应用程序的更新,以及编译所述协议栈应用程序。
  5. 根据权利要求2-4任一项所述的系统,其中,所述测试控制设备,还用于分别接收所述对端设备和所述FPGA开发板发送的测试日志,并根据所述测试日志输出测试结果。
  6. 根据权利要求1-5任一项所述的系统,其中,所述对端设备包括多个移动终端,所述多个移动终端中包括至少两个设置有不同类型的第二蓝牙设备的移动终端。
  7. 根据权利要求6所述的系统,其中,所述测试控制设备,还用于检测所述对端设备的更新,并根据所述更新的信息来更新所述测试控制设备中的对端设备信息。
  8. 根据权利要求1-6任一项所述的系统,其中,所述第一蓝牙设备为低 功耗蓝牙设备BLE。
  9. 一种蓝牙测试方法,包括:
    测试控制设备向对端设备发送测试控制指令,指示所述对端设备使用预存的测试用例通过所述对端设备中的第二蓝牙设备与待测的第一蓝牙设备进行测试交互;
    所述测试控制设备根据所述测试交互的信息,确定所述第一蓝牙设备的蓝牙测试结果。
  10. 根据权利要求9所述的方法,其中,所述第一蓝牙设备设置于FPGA开发板上;
    在所述测试控制设备向对端设备发送测试控制指令之前,所述方法还包括:
    向所述FPGA开发板中烧录蓝牙协议的协议栈应用程序。
  11. 根据权利要求10所述的方法,其中,所述方法还包括:
    若检测到所述协议栈应用程序发生了更新,则将更新后的所述协议栈应用程序重新烧录至所述FPGA开发板。
  12. 根据权利要求9或10所述的方法,其中,所述对端设备包括多个移动终端,所述多个移动终端中包括至少两个设置有不同类型的第二蓝牙设备的移动终端;
    所述测试控制设备向对端设备发送测试控制指令,包括:
    所述测试控制设备从多个移动终端中选择一个移动终端,并向选择的移动终端发送所述测试控制指令。
  13. 根据权利要求12所述的方法,其中,所述方法还包括:
    所述测试控制设备检测所述对端设备是否发生了更新,若发生了更新,则根据所述更新的信息来更新所述测试控制设备中的对端设备信息。
  14. 根据权利要求9或10所述的方法,其中,所述测试控制设备根据所述测试交互的信息,确定所述第一蓝牙设备的蓝牙测试结果,包括:
    所述测试控制设备分别接收所述对端设备和所述FPGA开发板发送的测试日志,根据所述测试日志确定所述第一蓝牙设备的蓝牙测试结果并输出所述蓝牙测试结果。
  15. 根据权利要求9-14任一项所述的方法,其中,所述第一蓝牙设备为低功耗蓝牙设备BLE。
PCT/CN2017/109624 2017-11-07 2017-11-07 蓝牙测试系统及方法 WO2019090454A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/109624 WO2019090454A1 (zh) 2017-11-07 2017-11-07 蓝牙测试系统及方法
CN201780001992.1A CN110024362B (zh) 2017-11-07 2017-11-07 蓝牙测试系统及方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/109624 WO2019090454A1 (zh) 2017-11-07 2017-11-07 蓝牙测试系统及方法

Publications (1)

Publication Number Publication Date
WO2019090454A1 true WO2019090454A1 (zh) 2019-05-16

Family

ID=66437512

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109624 WO2019090454A1 (zh) 2017-11-07 2017-11-07 蓝牙测试系统及方法

Country Status (2)

Country Link
CN (1) CN110024362B (zh)
WO (1) WO2019090454A1 (zh)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943791A (zh) * 2019-11-26 2020-03-31 北京中电华大电子设计有限责任公司 一种对于ble射频收发机系统的测试平台及iq失配测试方法
CN112911565A (zh) * 2021-02-01 2021-06-04 中汽数据(天津)有限公司 蓝牙发包方法及系统、设备及存储介质
CN113194448A (zh) * 2021-04-20 2021-07-30 歌尔股份有限公司 蓝牙设备的测试方法、测试终端及可读存储介质
CN113252373A (zh) * 2021-04-07 2021-08-13 深圳市飞易通科技有限公司 一种蓝牙打印机测试方法及系统
CN114040196A (zh) * 2021-12-10 2022-02-11 国科海芯(上海)微电子有限公司 蓝牙设备的测试方法、测试控制主机与蓝牙测试系统
CN114173315A (zh) * 2022-02-14 2022-03-11 荣耀终端有限公司 蓝牙回连方法及终端设备
CN114286363A (zh) * 2021-11-16 2022-04-05 宁波小匠物联网科技有限公司 一种基于蓝牙串口的离线产测方法
CN114490228A (zh) * 2021-07-21 2022-05-13 荣耀终端有限公司 一种蓝牙自动化测试方法及相关装置
CN115334485A (zh) * 2022-09-15 2022-11-11 北京华创互联科技股份有限公司 蓝牙设备的测试装置和蓝牙测试系统
CN116261091A (zh) * 2023-05-16 2023-06-13 深圳市百泰实业股份有限公司 一种可定制测试流程的蓝牙测试系统及方法
CN117098106A (zh) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 一种蓝牙测试方法、装置、电子设备及存储介质
CN117915376A (zh) * 2024-03-18 2024-04-19 欧智通科技股份有限公司 一种WiFi信号测试方法
CN117915376B (zh) * 2024-03-18 2024-06-04 欧智通科技股份有限公司 一种WiFi信号测试方法

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383911B (zh) * 2020-12-24 2023-09-29 福建新大陆支付技术有限公司 一种pos蓝牙自动化测试方法、系统和存储介质
CN113162702A (zh) * 2021-05-24 2021-07-23 展讯半导体(成都)有限公司 多场景下蓝牙拉锯测试的测试系统及测试方法
CN114499700B (zh) * 2022-01-25 2023-06-02 上海市共进通信技术有限公司 Ap智能终端通过串口通信实现蓝牙模块产测校验的方法、装置、处理器及其存储介质
CN115052451B (zh) * 2022-08-15 2022-11-04 河北嘉豪中尧信息科技股份有限公司 一种具有边缘计算功能的物联网数据采集设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101128007A (zh) * 2007-09-21 2008-02-20 中兴通讯股份有限公司 移动通讯终端测试方法
US20100130195A1 (en) * 2008-11-24 2010-05-27 Delphi Technologies, Inc. Test apparatus and method for testing interoperability of wireless communication devices
CN104853020A (zh) * 2015-03-19 2015-08-19 惠州Tcl移动通信有限公司 一种交互测试方法及其终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635599A (zh) * 2008-07-21 2010-01-27 深圳富泰宏精密工业有限公司 蓝牙测试系统及方法
CN102523052B (zh) * 2011-12-01 2014-07-09 无锡中星微电子有限公司 测试方法和装置
CN102833021B (zh) * 2012-09-11 2015-08-19 Tcl通力电子(惠州)有限公司 一种测试中的蓝牙配对方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101128007A (zh) * 2007-09-21 2008-02-20 中兴通讯股份有限公司 移动通讯终端测试方法
US20100130195A1 (en) * 2008-11-24 2010-05-27 Delphi Technologies, Inc. Test apparatus and method for testing interoperability of wireless communication devices
CN104853020A (zh) * 2015-03-19 2015-08-19 惠州Tcl移动通信有限公司 一种交互测试方法及其终端

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943791A (zh) * 2019-11-26 2020-03-31 北京中电华大电子设计有限责任公司 一种对于ble射频收发机系统的测试平台及iq失配测试方法
CN110943791B (zh) * 2019-11-26 2022-10-14 北京中电华大电子设计有限责任公司 一种对于ble射频收发机系统的测试平台及iq失配测试方法
CN112911565A (zh) * 2021-02-01 2021-06-04 中汽数据(天津)有限公司 蓝牙发包方法及系统、设备及存储介质
CN112911565B (zh) * 2021-02-01 2022-12-13 中汽数据(天津)有限公司 蓝牙发包方法及系统、设备及存储介质
CN113252373A (zh) * 2021-04-07 2021-08-13 深圳市飞易通科技有限公司 一种蓝牙打印机测试方法及系统
CN113194448A (zh) * 2021-04-20 2021-07-30 歌尔股份有限公司 蓝牙设备的测试方法、测试终端及可读存储介质
CN113194448B (zh) * 2021-04-20 2023-04-25 歌尔股份有限公司 蓝牙设备的测试方法、测试终端及可读存储介质
CN114490228B (zh) * 2021-07-21 2022-11-29 荣耀终端有限公司 一种蓝牙自动化测试方法及相关装置
CN114490228A (zh) * 2021-07-21 2022-05-13 荣耀终端有限公司 一种蓝牙自动化测试方法及相关装置
CN114286363A (zh) * 2021-11-16 2022-04-05 宁波小匠物联网科技有限公司 一种基于蓝牙串口的离线产测方法
CN114040196B (zh) * 2021-12-10 2023-11-07 国科海芯(上海)微电子有限公司 蓝牙设备的测试方法、测试控制主机与蓝牙测试系统
CN114040196A (zh) * 2021-12-10 2022-02-11 国科海芯(上海)微电子有限公司 蓝牙设备的测试方法、测试控制主机与蓝牙测试系统
CN114173315A (zh) * 2022-02-14 2022-03-11 荣耀终端有限公司 蓝牙回连方法及终端设备
CN115334485A (zh) * 2022-09-15 2022-11-11 北京华创互联科技股份有限公司 蓝牙设备的测试装置和蓝牙测试系统
CN115334485B (zh) * 2022-09-15 2024-01-30 北京华创互联科技股份有限公司 蓝牙设备的测试装置和蓝牙测试系统
CN116261091A (zh) * 2023-05-16 2023-06-13 深圳市百泰实业股份有限公司 一种可定制测试流程的蓝牙测试系统及方法
CN116261091B (zh) * 2023-05-16 2023-08-04 深圳市百泰实业股份有限公司 一种可定制测试流程的蓝牙测试系统及方法
CN117098106A (zh) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 一种蓝牙测试方法、装置、电子设备及存储介质
CN117098106B (zh) * 2023-10-18 2023-12-29 合肥联宝信息技术有限公司 一种蓝牙测试方法、装置、电子设备及存储介质
CN117915376A (zh) * 2024-03-18 2024-04-19 欧智通科技股份有限公司 一种WiFi信号测试方法
CN117915376B (zh) * 2024-03-18 2024-06-04 欧智通科技股份有限公司 一种WiFi信号测试方法

Also Published As

Publication number Publication date
CN110024362A (zh) 2019-07-16
CN110024362B (zh) 2021-12-10

Similar Documents

Publication Publication Date Title
WO2019090454A1 (zh) 蓝牙测试系统及方法
KR101093460B1 (ko) 디바이스의 임베디드 무선 기술을 이용하는 디바이스 제조방법
US9984244B2 (en) Controller, information processing apparatus, and recording medium
CN103580942B (zh) 一种模拟串口测试方法和装置
CN104978263A (zh) 一种移动端应用程序测试方法及系统
CN106681924A (zh) 一种软件测试方法及系统
CN102917095A (zh) 一种基于Android系统的终端测试的方法及装置
US20170046238A1 (en) Automatic determination of device specific interoperability
CN110781085A (zh) 一种游戏自动化测试方法、装置、终端和计算机存储介质
CN111309636B (zh) 机器人自动化测试系统、方法、构建服务器及存储介质
CN105302722A (zh) Cts自动测试方法及装置
CN106648762B (zh) 一种搭建开发环境的方法及装置
CN111651232A (zh) 一机多控方法、装置、系统及电子设备
CN111324365A (zh) 一种超融合系统升级的方法和设备
CN108306781B (zh) 一种LoRaWAN节点的在线式下载与自动化测试系统
CN110673862A (zh) 兼用多模式的嵌入式设备固件无线升级方法、设备、介质
CN111984529A (zh) App软件兼容性自动化测试方法
CN100426248C (zh) 网络附加存储设备测试系统及方法
CN103544099A (zh) 对移动设备上的程序进行测试的方法和装置
CN107168756B (zh) 射频驱动编译调试的方法、客户端、服务端和存储装置
US20130165099A1 (en) Enhanced System and Method for Custom Programming of Large Groups of Phones Without Requiring Additional Equipment
CN111581081B (zh) 一种自动化测试系统及方法
CN104461629B (zh) Pc终端及其安装手机应用程序的方法
CN111611148B (zh) iOS系统应用软件的兼容性并发测试方法及系统
CN113220569A (zh) 一种基于多进程的iOS兼容性自动化测试方法与装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17931256

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17931256

Country of ref document: EP

Kind code of ref document: A1