Bluetooth test method and device, electronic equipment and readable storage medium
The device identification and signal quality parameters of the Bluetooth device are received through the control panel, and the Bluetooth function status is automatically determined, which solves the problem of low Bluetooth function test efficiency of the Internet of Vehicles smart antenna module and achieves faster and more accurate test results.
Patent Information
- Application Number
- CN202410760211.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
AI Technical Summary
The Bluetooth function test efficiency of the Internet of Vehicles smart antenna module is low, resulting in a long test time.
Through the electrical connection between the control panel and the user terminal, the control panel receives the device identification of the Bluetooth device, and sends test results to indicate the functional status of the Bluetooth device based on the signal quality parameters of the target broadcast message in the received broadcast message, reducing the need for manual testing by testers. time.
It improves the efficiency of Bluetooth function testing, reduces test time, and enhances the accuracy and efficiency of test results.
Smart Images

Figure CN118631357A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a Bluetooth testing method, device, electronic device and readable storage medium. Background Art
[0002] Usually, when the tester is testing the Bluetooth function of the Internet of Vehicles smart antenna module, the tester can manually test each Internet of Vehicles smart antenna module passing through the assembly line to determine whether the Bluetooth of each Internet of Vehicles smart antenna module is normal. However, since it takes a long time for the tester to manually test each Internet of Vehicles smart antenna module, it takes a long time to test the Bluetooth function of the Internet of Vehicles smart antenna module, which results in low efficiency in testing the Bluetooth function of the Internet of Vehicles smart antenna module. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a Bluetooth testing method, device, electronic device and readable storage medium, which can solve the problem of low efficiency in testing the Bluetooth function of the smart antenna module of the Internet of Vehicles.
[0004] In the first aspect, an embodiment of the present application provides a Bluetooth testing method, which is applied to a control panel, wherein the control panel is electrically connected to a user terminal, the control panel is connected to a Bluetooth device via a control line, and the Bluetooth device is connected to the control panel via Bluetooth, the method comprising: the control panel receives a device identifier of the Bluetooth device from the Bluetooth device via the control line, and the device identifier is sent by the Bluetooth device under the instruction of the user terminal; the control panel determines a target broadcast message from multiple received broadcast messages according to the device identifier, and the target broadcast message is broadcast by the Bluetooth device via Bluetooth; the control panel sends a first test result or a second test result to the user terminal according to a signal quality parameter corresponding to the target broadcast message, the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal.
[0005] In the second aspect, an embodiment of the present application provides a Bluetooth testing device, which includes: a receiving module, used to receive a device identification of a Bluetooth device from a Bluetooth device, where the device identification is sent by the Bluetooth device under the instruction of a user terminal; a determining module, used to determine a target broadcast message from multiple received broadcast messages based on the device identification received by the receiving module, where the target broadcast message is broadcast by the Bluetooth device via Bluetooth; a sending module, used to send a first test result or a second test result to the user terminal based on a signal quality parameter corresponding to the target broadcast message determined by the determining module, where the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0007] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0008] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the method described in the first aspect.
[0009] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect.
[0010] In an embodiment of the present application, the control panel can receive a device identification of the Bluetooth device from the Bluetooth device through a control line, and the device identification is sent by the Bluetooth device under the instruction of the user terminal; and determine the target broadcast message from the received multiple broadcast messages according to the device identification, and the target broadcast message is broadcast by the Bluetooth device through Bluetooth; and send a first test result or a second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message, and the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal. Since the tester can control the user terminal to instruct the Bluetooth device to send the device identification to the control panel through the control line, and instruct the Bluetooth device to start sending the target broadcast message, the control panel can determine the target broadcast message sent by the Bluetooth device from multiple broadcast messages according to the device representation, and send the first test result and the second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message, so as to indicate to the user terminal whether the Bluetooth function of the Bluetooth device is normal, so that the tester can determine whether the Bluetooth function of the Bluetooth device is normal without the need for the tester to manually test, so that the time-consuming test of whether the Bluetooth function of the Bluetooth device is normal can be reduced, so that the efficiency of testing the Bluetooth function of the Bluetooth device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is one of the flowcharts of the Bluetooth testing method provided by some embodiments of the present application;
[0012] Figure 2This is a second flowchart of a Bluetooth testing method provided by some embodiments of the present application;
[0013] Figure 3 This is a third flowchart of a Bluetooth testing method provided by some embodiments of the present application;
[0014] Figure 4 This is a fourth flowchart of a Bluetooth testing method provided by some embodiments of the present application;
[0015] Figure 5 It is a schematic diagram of the structure of a Bluetooth testing device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0017] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first interface element can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0018] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".
[0019] The Bluetooth test method, device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0020] Usually, when the tester is testing the Bluetooth function of the Internet of Vehicles smart antenna module, the tester can manually test each Internet of Vehicles smart antenna module passing through the assembly line to determine whether the Bluetooth of each Internet of Vehicles smart antenna module is normal. However, since it takes a long time for the tester to manually test each Internet of Vehicles smart antenna module, it takes a long time to test the Bluetooth function of the Internet of Vehicles smart antenna module, which results in low efficiency in testing the Bluetooth function of the Internet of Vehicles smart antenna module.
[0021] However, in the embodiment of the present application, the control panel can receive the device identification of the Bluetooth device from the Bluetooth device through the control line, and the device identification is sent by the Bluetooth device under the instruction of the user terminal; and determine the target broadcast message from the received multiple broadcast messages according to the device identification, and the target broadcast message is broadcast by the Bluetooth device through Bluetooth; and send the first test result or the second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message, and the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal. Since the tester can control the user terminal to instruct the Bluetooth device to send the device identification to the control panel through the control line, and instruct the Bluetooth device to start sending the target broadcast message, the control panel can determine the target broadcast message sent by the Bluetooth device from multiple broadcast messages according to the device representation, and send the first test result and the second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message, so as to indicate to the user terminal whether the Bluetooth function of the Bluetooth device is normal, so that the tester can determine whether the Bluetooth function of the Bluetooth device is normal without the need for the tester to manually test, so that the time-consuming test of whether the Bluetooth function of the Bluetooth device is normal can be reduced, so that the efficiency of testing the Bluetooth function of the Bluetooth device can be improved.
[0022] The Bluetooth test method provided in the embodiment of the present application can be executed by a Bluetooth test device, a control panel, or a functional module or entity in the control panel. The Bluetooth test method provided in the embodiment of the present application is described by taking the control panel executing the Bluetooth test method as an example.
[0023] Figure 1 The flowchart of a Bluetooth test method provided by an embodiment of the present application is shown, which is applied to a control panel, the control panel is electrically connected to a user terminal, the control panel is connected to a Bluetooth device via a control line, and the Bluetooth device is connected to the control panel via Bluetooth. Figure 1 As shown, a Bluetooth testing method provided in an embodiment of the present application may include the following steps 101 and 102.
[0024] Step 101: The control panel receives a device identification of a Bluetooth device from the Bluetooth device via a control line.
[0025] In some embodiments of the present application, the control panel may be a bench board. The user terminal may be a computer. The Bluetooth device may be a Bluetooth antenna module. Of course, the Bluetooth device may also be other components with Bluetooth functions, which is not limited in the present application.
[0026] In some embodiments of the present application, the above-mentioned Bluetooth device can be fixed on a functional fixture, and the functional fixture is connected to the control panel via a control line, so that the Bluetooth device can be connected to the control panel via the functional fixture and the control line.
[0027] In one example, if Figure 2 As shown, the control panel is electrically connected to the user terminal to communicate with the user terminal via a serial port, and the control panel is electrically connected to the functional fixture via a control line to communicate with the functional fixture via an IO harness / CAN. In addition, the control panel can be connected to a programmable power supply so that the programmable power supply can supply power to the control panel, for example, provide a 12V power supply.
[0028] In another example, Figure 3 As shown, the user terminal PC is electrically connected to the function fixture DUT to perform UART communication with the function fixture DUT, and the function fixture is electrically connected to the control panel (Bench Board) to perform CAN communication with the control panel, and the function fixture is also connected to the control panel via Bluetooth (ble). In addition, the function fixture and the control panel are both connected to a programmable power supply so that the programmable power supply can supply power to the function fixture and the control panel respectively.
[0029] In some embodiments of the present application, the control panel may communicate with the functional fixture using CANFD communication, and the communication protocol between the two parties may be as follows:
[0030] The CAN ID definition is shown in Table 1:
[0031] Table 1
[0032] Tx Rx CANID DUT BenchBoard 0x310 BenchBoard DUT 0x660
[0033] In the embodiment of the present application, the above-mentioned device identification is sent by the Bluetooth device under the instruction of the user terminal.
[0034] In some embodiments of the present application, the above-mentioned device identifier may specifically be a fixed MAC identifier.
[0035] In some embodiments of the present application, when a tester needs to test the Bluetooth function of a Bluetooth device, the tester can first fix the Bluetooth device on a functional fixture, and then perform operations on the user terminal, so that the user terminal can instruct the Bluetooth device to obtain its own device identification and send the device identification to the control panel through a control line, so that the control panel can receive the device identification of the Bluetooth device from the Bluetooth device through the control line.
[0036] Step 102: The control panel determines a target broadcast message from multiple received broadcast messages according to the device identification.
[0037] In the embodiment of the present application, the above-mentioned target broadcast message is broadcast by a Bluetooth device via Bluetooth.
[0038] In some embodiments of the present application, a tester may operate on a user terminal so that the Bluetooth device can enable the Bluetooth broadcast function and start sending a target broadcast message.
[0039] In some embodiments of the present application, the target broadcast message may carry a device identifier, so that the control panel can determine the target broadcast message from the received multiple broadcast messages based on the received device identifier and whether the message carries the device identifier.
[0040] In some embodiments of the present application, each broadcast message carries a first device identifier of a device sending the broadcast message, and the multiple first device identifiers include a device identifier of a Bluetooth device. Figure 1 ,like Figure 4 As shown, the above step 102 can be specifically implemented through the following steps 102a and 102b.
[0041] Step 102a: The control panel determines a first device identifier that matches the device identifier of the Bluetooth device from among the multiple first device identifiers.
[0042] In some embodiments of the present application, each first device identifier is a fixed MAC address of a device received by the control panel.
[0043] In some embodiments of the present application, the control panel may determine a first device identification that matches (eg, is the same as) the above device identification from a plurality of first device identifications.
[0044] Step 102b: The control panel determines a broadcast message corresponding to a first device identifier as a target broadcast message.
[0045] It can be understood that the control panel can determine the broadcast message carrying the first device identifier (ie, the first device identifier that matches the device identifier) as the target broadcast message.
[0046] In an embodiment of the present application, since there may be multiple other Bluetooth devices in the environment where the Bluetooth function of the Bluetooth device is tested, the control panel may also receive broadcast messages sent by these multiple other Bluetooth devices. Therefore, in order to accurately test the Bluetooth function of the Bluetooth device, the control panel can determine the target broadcast message sent by the Bluetooth device from the received broadcast messages through the received device identifier.
[0047] It can be seen that since the embodiment of the present application specifies that the broadcast message sent by each device carries its own first device identification, when the control panel tests the Bluetooth device, it can accurately determine the target broadcast message sent by the Bluetooth device from the multiple broadcast messages received. Therefore, in the subsequent steps, the control panel can accurately determine whether the Bluetooth function of the Bluetooth device is abnormal, so as to avoid the situation where the Bluetooth function of the Bluetooth device is misjudged as abnormal due to the reception of broadcast messages from other devices. In this way, the accuracy of the test results obtained by testing the Bluetooth device can be improved.
[0048] In some embodiments of the present application, the Bluetooth testing method provided in the embodiments of the present application may further include the following step 201.
[0049] Step 201: When the control panel fails to determine a target broadcast message from multiple broadcast messages, the control panel sends a second test result to a user equipment.
[0050] In some embodiments of the present application, when the control panel fails to determine the target broadcast message from multiple broadcast messages, the control panel can also trigger the user terminal to indicate to the Bluetooth device again, so that the Bluetooth device can send the device identification to the control panel again through the control line, and the Bluetooth device sends the target broadcast message again. It can be understood that when the control panel fails to determine the target broadcast message from multiple broadcast messages, the control panel can also perform the above steps 101 and 102 again.
[0051] In an embodiment of the present application, since the Bluetooth device may be abnormal and unable to send the target broadcast message, the control panel can directly determine that the Bluetooth function of the Bluetooth device is abnormal without determining the target broadcast message from multiple broadcast messages, and indicate the Bluetooth function of the Bluetooth device to the user device.
[0052] It can be seen that since the control panel can directly determine and indicate to the user device that the Bluetooth function of the Bluetooth device is abnormal when the Bluetooth device does not send the target broadcast message, it can avoid the situation where it is impossible to determine whether the Bluetooth function of the Bluetooth device is abnormal due to not receiving the target broadcast message sent by the Bluetooth device.
[0053] Step 103: The control panel sends the first test result or the second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message.
[0054] In some embodiments of the present application, the above-mentioned signal quality parameter may specifically be at least one of RSSI, RSRQ, and SINR.
[0055] In the embodiment of the present application, the above-mentioned first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the above-mentioned second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal.
[0056] In some embodiments of the present application, the control panel may determine whether to send the first test result or the second test result to the user terminal according to whether the signal quality parameter corresponding to the target broadcast message is greater than or equal to a preset quality parameter.
[0057] The preset quality parameter may be at least one of RSSI, RSRQ, and SINR. When the signal quality parameter includes RSSI, the preset quality parameter may also include RSSI; when the signal quality parameter includes RSRQ, the preset quality parameter may also include RSRQ; when the signal quality parameter includes SINR, the preset quality parameter may also include SINR.
[0058] In some embodiments of the present application, the above step 103 can be specifically implemented by the following step 103a or step 103b.
[0059] Step 103a: When the signal quality parameter is greater than or equal to the preset quality parameter, the control panel sends a first test result to the user equipment.
[0060] In an embodiment of the present application, if the signal quality parameter is greater than or equal to the preset quality parameter, it can be considered that the control panel can normally receive the Bluetooth broadcast message sent by the Bluetooth device, that is, the control panel can communicate with the Bluetooth device normally. Therefore, the control panel can determine that the Bluetooth function of the Bluetooth device is normal, and the control panel can send the first test result to the user device.
[0061] Step 103b: When the signal quality parameter is less than the preset quality parameter, the control panel sends a second test result to the user equipment.
[0062] In an embodiment of the present application, if the signal quality parameter is less than a preset quality parameter, it can be considered that the control panel cannot normally receive the Bluetooth broadcast message sent by the Bluetooth device, that is, the control panel cannot communicate normally with the Bluetooth device. Therefore, the control panel can determine that the Bluetooth function of the Bluetooth device is abnormal, and the control panel can send a second test result to the user device.
[0063] It can be seen that since the control panel can quickly and accurately determine whether the Bluetooth function of the Bluetooth device is normal based on the size relationship between the signal quality parameter and the preset quality parameter without collecting other parameters, the time spent in determining whether the Bluetooth function of the Bluetooth device is normal can be reduced, and the amount of calculation required in the process of determining whether the Bluetooth function of the Bluetooth device is normal can be reduced.
[0064] An embodiment of the present application provides a Bluetooth testing method, wherein a control panel can receive a device identification of a Bluetooth device from the Bluetooth device through a control line, wherein the device identification is sent by the Bluetooth device under the instruction of a user terminal; and determine a target broadcast message from multiple received broadcast messages according to the device identification, wherein the target broadcast message is broadcast by the Bluetooth device through Bluetooth; and, according to a signal quality parameter corresponding to the target broadcast message, send a first test result or a second test result to the user terminal, wherein the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal. Since the tester can control the user terminal to instruct the Bluetooth device to send a device identification to the control panel through the control line, and instruct the Bluetooth device to start sending a target broadcast message, the control panel can determine the target broadcast message sent by the Bluetooth device from multiple broadcast messages based on the device representation, and send the first test result and the second test result to the user terminal based on the signal quality parameters corresponding to the target broadcast message to indicate to the user terminal whether the Bluetooth function of the Bluetooth device is normal, so that the tester can determine whether the Bluetooth function of the Bluetooth device is normal without the need for the tester to manually test it. Therefore, the time spent on testing whether the Bluetooth function of the Bluetooth device is normal can be reduced, thereby improving the efficiency of testing the Bluetooth function of the Bluetooth device.
[0065] The Bluetooth test method provided in the embodiment of the present application can be executed by a Bluetooth test device. In the embodiment of the present application, the Bluetooth test device executing the Bluetooth test method is taken as an example to illustrate the Bluetooth test device provided in the embodiment of the present application.
[0066] Figure 5 FIG. 1 shows a possible structural diagram of a Bluetooth test device involved in an embodiment of the present application. Figure 5As shown, the Bluetooth testing device 50 provided in the embodiment of the present application may include: a receiving module 51, which is used to receive a device identification of a Bluetooth device from a Bluetooth device, and the device identification is sent by the Bluetooth device under the instruction of a user terminal. A determining module 52, which is used to determine a target broadcast message from multiple received broadcast messages according to the device identification received by the receiving module 51, and the target broadcast message is broadcast by the Bluetooth device via Bluetooth. A sending module 53, which is used to send a first test result or a second test result to the user terminal according to a signal quality parameter corresponding to the target broadcast message determined by the determining module 52, and the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal.
[0067] An embodiment of the present application provides a Bluetooth testing device. Since a tester can control a user terminal to instruct the Bluetooth device to send a device identification to the Bluetooth testing device through a control line, and instruct the Bluetooth device to start sending a target broadcast message, the Bluetooth testing device can determine the target broadcast message sent by the Bluetooth device from multiple broadcast messages based on the device representation, and send a first test result and a second test result to the user terminal based on the signal quality parameter corresponding to the target broadcast message, so as to indicate to the user terminal whether the Bluetooth function of the Bluetooth device is normal, so that the tester can determine whether the Bluetooth function of the Bluetooth device is normal without the need for the tester to manually test it. Therefore, the time spent on testing whether the Bluetooth function of the Bluetooth device is normal can be reduced, thereby improving the efficiency of testing the Bluetooth function of the Bluetooth device.
[0068] In a possible implementation, each broadcast message carries a first device identifier of a device sending the broadcast message, and the multiple first device identifiers include a device identifier of a Bluetooth device. The above-mentioned determination module 52 is specifically used to determine a first device identifier that matches the device identifier of the Bluetooth device from the multiple first device identifiers; and determine a broadcast message corresponding to a first device identifier as a target broadcast message.
[0069] It can be seen that since the embodiment of the present application specifies that the broadcast message sent by each device carries its own first device identification, when the Bluetooth testing device tests the Bluetooth device, it can accurately determine the target broadcast message sent by the Bluetooth device from the multiple broadcast messages received. Therefore, in the subsequent steps, the Bluetooth testing device can accurately determine whether the Bluetooth function of the Bluetooth device is abnormal, so as to avoid the situation where the Bluetooth function of the Bluetooth device is misjudged as abnormal due to the reception of broadcast messages from other devices. In this way, the accuracy of the test results obtained by testing the Bluetooth device can be improved.
[0070] In a possible implementation, the sending module 53 is specifically used for any of the following: when the signal quality parameter is greater than or equal to the preset quality parameter, sending a first test result to the user equipment; when the signal quality parameter is less than the preset quality parameter, sending a second test result to the user equipment.
[0071] It can be seen that since the Bluetooth testing device can quickly and accurately determine whether the Bluetooth function of the Bluetooth device is normal based on the size relationship between the signal quality parameter and the preset quality parameter without collecting other parameters, the time spent in determining whether the Bluetooth function of the Bluetooth device is normal can be reduced, and the amount of calculation required in the process of determining whether the Bluetooth function of the Bluetooth device is normal can be reduced.
[0072] In a possible implementation, the sending module 53 is further configured to send a second test result to the user equipment when the target broadcast message is not determined from the multiple broadcast messages.
[0073] It can be seen that since the Bluetooth testing device can directly determine and indicate to the user device that the Bluetooth function of the Bluetooth device is abnormal when the Bluetooth device does not send the target broadcast message, it can avoid the situation where it is impossible to determine whether the Bluetooth function of the Bluetooth device is abnormal due to not receiving the target broadcast message sent by the Bluetooth device.
[0074] The Bluetooth test device in the embodiment of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (mobile internet device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (network attached storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0075] The Bluetooth test device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0076] The Bluetooth testing device provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0077] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned Bluetooth test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0078] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0079] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned Bluetooth testing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0080] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0081] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned Bluetooth test method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0082] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0084] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A Bluetooth testing method, applied to a control panel, characterized in that: The control panel is electrically connected to the user terminal, the control panel is connected to the Bluetooth device via a control line, the Bluetooth device is connected to the control panel via Bluetooth, and the method includes: The control panel receives a device identification of the Bluetooth device from the Bluetooth device through the control line, where the device identification is sent by the Bluetooth device under the instruction of the user terminal; The control panel determines a target broadcast message from the received multiple broadcast messages according to the device identifier, wherein the target broadcast message is broadcast by the Bluetooth device via Bluetooth; The control panel sends a first test result or a second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message, the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal.
2. The method according to claim 1, characterized in that Each of the broadcast messages carries a first device identifier of a device that sends the broadcast message, and the plurality of first device identifiers include the device identifier of the Bluetooth device; The control panel determines a target broadcast message from a plurality of received broadcast messages according to the device identifier, including: The control panel determines, from the plurality of first device identifiers, a first device identifier that matches the device identifier of the Bluetooth device; The control panel determines one of the broadcast messages corresponding to one of the first device identifiers as the target broadcast message.
3. The method according to claim 1, characterized in that The control panel sending the first test result or the second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message includes any one of the following: When the signal quality parameter is greater than or equal to a preset quality parameter, the control panel sends the first test result to the user equipment; When the signal quality parameter is less than a preset quality parameter, the control panel sends the second test result to the user equipment.
4. The method according to claim 1, characterized in that The method further comprises: In a case where the control panel fails to determine the target broadcast message from the plurality of broadcast messages, the control panel sends the second test result to the user equipment.
5. A Bluetooth testing device, characterized in that: The Bluetooth test device comprises: A receiving module, configured to receive a device identification of the Bluetooth device from the Bluetooth device, where the device identification is sent by the Bluetooth device under the instruction of the user terminal; a determination module, configured to determine a target broadcast message from the multiple received broadcast messages according to the device identification received by the receiving module, wherein the target broadcast message is broadcast by the Bluetooth device via Bluetooth; A sending module is used to send a first test result or a second test result to the user terminal according to the signal quality parameter corresponding to the target broadcast message determined by the determination module, wherein the first test result is used to indicate that the Bluetooth function of the Bluetooth device is normal, and the second test result is used to indicate that the Bluetooth function of the Bluetooth device is abnormal.
6. The Bluetooth test device according to claim 5, characterized in that: Each of the broadcast messages carries a first device identifier of a device that sends the broadcast message, and the plurality of first device identifiers include the device identifier of the Bluetooth device; The determination module is specifically configured to determine a first device identifier that matches the device identifier of the Bluetooth device from among the multiple first device identifiers; and determine a broadcast message corresponding to the first device identifier as the target broadcast message.
7. The Bluetooth test device according to claim 5, characterized in that: The sending module is specifically used for any of the following: When the signal quality parameter is greater than or equal to a preset quality parameter, sending the first test result to the user equipment; When the signal quality parameter is less than a preset quality parameter, the second test result is sent to the user equipment.
8. The Bluetooth testing device according to claim 5, characterized in that: The sending module is further configured to send the second test result to the user equipment when the target broadcast message is not determined from the multiple broadcast messages.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the Bluetooth testing method according to any one of claims 1 to 4 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the Bluetooth testing method according to any one of claims 1 to 4 are implemented.
