CN109495870A - The method and apparatus of bluetooth test - Google Patents

The method and apparatus of bluetooth test Download PDF

Info

Publication number
CN109495870A
CN109495870A CN201811460540.2A CN201811460540A CN109495870A CN 109495870 A CN109495870 A CN 109495870A CN 201811460540 A CN201811460540 A CN 201811460540A CN 109495870 A CN109495870 A CN 109495870A
Authority
CN
China
Prior art keywords
bluetooth
test
measurement equipment
main measurement
configuration parameter
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201811460540.2A
Other languages
Chinese (zh)
Other versions
CN109495870B (en
Inventor
时晓文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Machine Co Ltd
Original Assignee
Huawei Machine Co Ltd
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 Huawei Machine Co Ltd filed Critical Huawei Machine Co Ltd
Publication of CN109495870A publication Critical patent/CN109495870A/en
Application granted granted Critical
Publication of CN109495870B publication Critical patent/CN109495870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a kind of method and apparatus of bluetooth test.In the embodiment of the present application, main measurement equipment generates the test case of data message, and the configuration parameter of each layer in the test case is that the configuration parameter of each layer of Bluetooth protocol according to the pre-stored data determines.Since the configuration parameter of each layer of Bluetooth protocol pre-stored in the embodiment of the present application can be with flexible configuration, therefore main measurement equipment can simulate various types of data messages in the embodiment of the present application, generate different test cases, various bluetooth entity devices can be substituted based on this main measurement equipment and equipment under test is attached pairing and data interaction, realize and the function of equipment under test, performance and compatibility are tested comprehensively.Since measurement equipment main in the embodiment of the present application can substitute various bluetooth entity devices, it can thus carry out tearing the operation such as machine fly line open to avoid multiple bluetooth entity devices and equipment under test, it realizes and shortens test time, and then improve automation coverage rate, promote bluetooth testing efficiency.

Description

The method and apparatus of bluetooth test
Technical field
This application involves the communications fields, and more particularly to the method and apparatus that the bluetooth in the communications field is tested.
Background technique
Low-power consumption bluetooth is as a kind of wireless near field communication solution, the increasingly attention by market.Current Intelligent terminal largely uses low-power consumption bluetooth communication module, and the performance of bluetooth communication is an important indicator of terminal. In the research and development of products stage, it usually needs carry out bluetooth test to equipment model machine, for example select all kinds of bluetooths available on the market real Body equipment, all kinds of performances of access research and development prototyping testing prototype equipment.
Currently, carrying out bluetooth test using intrusive test equipment model machine.When all kinds of bluetooth entity devices of selection carry out When intrusive mood test, needs respectively to carry out each bluetooth entity device to tear the operation such as machine fly line open, cause time long, automatically Change coverage rate is low, so that the efficiency of bluetooth test is very low.
Summary of the invention
The application provides a kind of method and apparatus of bluetooth test, can be improved automation coverage rate, promotes bluetooth test Efficiency.
In a first aspect, providing a kind of method of bluetooth test, comprising:
The bluetooth module of main measurement equipment and equipment under test is attached pairing by Bluetooth protocol;
The configuration parameter of the protocal layers of the main measurement equipment Bluetooth protocol according to the pre-stored data generates datagram The test case of text;
The main measurement equipment sends the test case to the equipment under test.
Therefore, the embodiment of the present application is by the way that after main measurement equipment and equipment under test are attached pairing, main measurement equipment is raw At the test case of data message, the configuration parameter of each layer in the test case is each of Bluetooth protocol according to the pre-stored data What the configuration parameter of layer determined.Since the configuration parameter of each layer of Bluetooth protocol pre-stored in the embodiment of the present application can spirit Configuration living, therefore main measurement equipment can simulate various types of data messages in the embodiment of the present application, generate different tests and use Example, can substitute various bluetooth entity devices based on this main measurement equipment and equipment under test is attached pairing and data interaction, It realizes and the function of equipment under test, performance and compatibility is tested comprehensively.Since measurement equipment main in the embodiment of the present application can be with Various bluetooth entity devices are substituted, thus can carry out tearing the behaviour such as machine fly line open to avoid multiple bluetooth entity devices and equipment under test Make, realize and shorten test time, and then improve automation coverage rate, promotes bluetooth testing efficiency.
With reference to first aspect, in certain implementations of first aspect, the main measurement equipment institute according to the pre-stored data The configuration parameter for stating the protocal layers of Bluetooth protocol, before the test case for generating data message, further includes:
The main measurement equipment obtains blank-interface text, wherein the blank-interface text is configured based on the Bluetooth protocol;
The main measurement equipment parses the configuration parameter of the protocal layers in the blank-interface text, to obtain the Bluetooth protocol Protocal layers configuration parameter;
The main measurement equipment saves the configuration parameter of the protocal layers of the Bluetooth protocol.
Specifically, the embodiment of the present application can grab mobile phone and bracelet in the true environment of simulation by packet capturing module The blank-interface text of transmission when message interaction is carried out, packet capturing module is only used as listener use in current network environment, not It will affect the equipment in former network environment, therefore the embodiment of the present application can guarantee that the message that packet capturing module grabs is really to survey Message sent in test ring border, the embodiment of the present application in turn can be to the protocal layers of the Bluetooth protocol in the true environment Configuration parameter is tested.
With reference to first aspect, in certain implementations of first aspect, the Bluetooth protocol is low-power consumption bluetooth BLE association View.
With reference to first aspect, in certain implementations of first aspect, the protocal layers parameter of the BLE agreement includes At least one of link layer parameter, logical link control and adaptation protocol L2CAP layer parameter and attribute agreement ATT layer parameter.
Link layer configuration: data message header includes that 4 fields are configurable, which is respectively Logical link ID Accord with (LLID), next expected sequence number (NESN), sequence number (SN), more data (MD).
L2CAP layers: being mainly responsible for and data packet is split and is assembled, message length depends on maximum transmitted list here The maximum transfer size of member, and message length is configurable.
ATT layers: attribute handle, attribute type and net load value this layer configure, define equipment how to find, read and The attribute of another equipment is written.
Second aspect provides a kind of device of bluetooth test, and described device is for executing above-mentioned first aspect or first party Method in any possible implementation in face.Specifically, the apparatus may include for executing first aspect or first The module of method in any possible implementation of aspect.
The third aspect provides a kind of device of bluetooth test, and described device includes memory and processor, the memory For storing instruction, the processor is used to execute the instruction of memory storage, and to storing in the memory The execution of instruction is so that the processor executes the method in any possible implementation of first aspect or first aspect.
Fourth aspect provides a kind of computer readable storage medium, finger is stored in the computer readable storage medium It enables, when described instruction is run on computers, so that computer executes any possible reality of first aspect or first aspect Method in existing mode.
5th aspect, provides a kind of computer program product comprising instruction, when the computer program product is in computer When upper operation, so that computer executes the method in any possible implementation of first aspect or first aspect.
Therefore, the embodiment of the present application is by the way that after main measurement equipment and equipment under test are attached pairing, main measurement equipment is raw At the test case of data message, the configuration parameter of each layer in the test case is each of Bluetooth protocol according to the pre-stored data What the configuration parameter of layer determined.Since the configuration parameter of each layer of Bluetooth protocol pre-stored in the embodiment of the present application can spirit Configuration living, therefore main measurement equipment can simulate various types of data messages in the embodiment of the present application, generate different tests and use Example, can substitute various bluetooth entity devices based on this main measurement equipment and equipment under test is attached pairing and data interaction, It realizes and the function of equipment under test, performance and compatibility is tested comprehensively.Since measurement equipment main in the embodiment of the present application can be with Various bluetooth entity devices are substituted, thus can carry out tearing the behaviour such as machine fly line open to avoid multiple bluetooth entity devices and equipment under test Make, realize and shorten test time, and then improve automation coverage rate, promotes bluetooth testing efficiency.
Detailed description of the invention
Fig. 1 is the schematic diagram of a Bluetooth test system of the embodiment of the present application.
Fig. 2 is the schematic diagram of the system of one provided by the embodiments of the present application specific bluetooth test.
Fig. 3 is the schematic diagram of the process of bluetooth test provided by the embodiments of the present application.
Fig. 4 is a kind of schematic diagram of data message based on BLE agreement.
Fig. 5 is the schematic block diagram of the device of bluetooth test provided by the embodiments of the present application.
Fig. 6 is the schematic block diagram of the process of another bluetooth test provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with attached drawing, the technical solution in the application is described.(Host Control Interface, HCI)
Fig. 1 is the schematic diagram of a Bluetooth test system 100 of the embodiment of the present application.The Bluetooth test system 100 includes Equipment under test 10, main measurement equipment 20 and server 30.Wherein, equipment under test 10 can be connected with server 3 by USB interface, Main measurement equipment 20 can also be connected with server 30 by USB interface.It here may include being tested for bluetooth in server 30 Test board or test macro.Specifically, server 30 can be carried out by USB interface and main measurement equipment and/or equipment under test Test instruction issue and the crawl of log log, and carry out the analysis and preservation of log log, master wherein recorded in log log The content interacted between measurement equipment 20 and equipment under test 10.
Specifically, main measurement equipment 20, which can be based on Bluetooth protocol with equipment under test 10, carries out pairing connection.In main measurement equipment After 20 match successful connection with equipment under test 10, main measurement equipment 20 can be instructed according to the test that server 30 is sent to tested The test case that equipment 10 sends datagram, equipment under test 10 are sent out after receiving the test case to main measurement equipment 20 Feedback information is sent, then the feedback information is sent to server 30 by main measurement equipment 20, and server 30 is by analyzing the feedback letter Breath and desired test result and log log, determine test result.
Here, Bluetooth protocol can be low-power consumption bluetooth (Bluetooth Low Energy, BLE) agreement, or be it His Bluetooth protocol, the embodiment of the present application are not construed as limiting this.
In the embodiment of the present application, equipment under test 10 can have bluetooth for mobile phone, computer, tablet computer, handheld device etc. The electronic equipment of function, the embodiment of the present application are not construed as limiting this.
In the embodiment of the present application, main measurement equipment 20 is the bluetooth simulator of parameter flexibly configurable.Specifically, main survey Equipment 20 can be configured flexibly the test case of the combined data message with different parameters, the combination of parameter here Range can substitute various entity devices based on this main measurement equipment 20 and set with tested beyond the range of the parameter of actual product Standby 10 are attached pairing and data interaction, realize and are surveyed comprehensively to the function of equipment under test 10, performance and compatibility Examination.Here, which can be not construed as limiting this for the configuration parameter of each protocol layer of Bluetooth protocol, the embodiment of the present application.
Fig. 2 shows the schematic diagrames of the system 100 of one provided by the embodiments of the present application specific bluetooth test.Specifically , include bluetooth module 101 in equipment under test 10, includes packet capturing module 201, agreement extraction module 202, association in main measurement equipment 20 View realizes module 203 and message generation module 204.
It should be understood that the module or unit of the system tested Fig. 2 shows bluetooth, but these modules or unit are only examples, The embodiment of the present application can also include other modules, and it is possible to not really want to include whole modules in Fig. 2.In Fig. 2 with Fig. 1 In identical appended drawing reference indicate the same or similar meaning, for sake of simplicity, details are not described herein again.In addition, for convenience, hereafter It will be described so that Bluetooth protocol is BLE agreement as an example, but this does not constitute the embodiment of the present application and limits.
Packet capturing module 201 is for obtaining blank-interface text.
Specifically, as shown in figure 3, tester can pass through the packet capturing mould of main measurement equipment 20 based on current true environment Block 201 grabs the blank-interface text of interaction between main measurement equipment (such as bracelet) and equipment under test (such as mobile phone) in true environment. It should be noted that here the true environment itself include true main measurement equipment (such as bracelet) and equipment under test (such as Mobile phone).For example, the mobile phone and bracelet in the true environment are found at this time may be used there are some wrong (bug) in bluetooth connection To simulate the scene that mobile phone and bracelet in the true environment carry out message interaction, and the main measurement equipment 20 in the embodiment of the present application can The blank-interface text of interaction between mobile phone and bracelet is grabbed to be merely possible to the role of listener, and is not involved in real scene The interaction of mobile phone and bracelet.
In the embodiment of the present application, blank-interface text measurement equipment and equipment under test can transmitted when data communication based on Data message.As a specific example, need to transmit including the BLE equipment that main measurement equipment is simulated in the blank-interface text User information, the user information include required information when BLE equipment carries out data transmission with equipment under test, such as user's fortune Dynamic step number, heartbeat, weight etc. data).
Therefore, the embodiment of the present application can grab mobile phone and hand in the true environment of simulation by message packet capturing module 201 Ring carries out the blank-interface text of transmission when message interaction, and then can matching to the protocal layers of the Bluetooth protocol in the true environment Parameter is set to be tested.
As an optional embodiment, each layer parameter of BLE agreement includes link layer parameter, logic link control and fits With at least one of agreement L2CAP layer parameter and attribute agreement ATT layer parameter.
Link layer configuration: data message header includes that 4 fields are configurable, which is respectively Logical link ID Accord with (LLID), next expected sequence number (NESN), sequence number (SN), more data (MD).
L2CAP layers: being mainly responsible for and data packet is split and is assembled, message length depends on maximum transmitted list here The maximum transfer size of member, and message length is configurable.
ATT layers: attribute handle, attribute type and net load value this layer configure, define equipment how to find, read and The attribute of another equipment is written.
Fig. 4 shows a kind of schematic diagram of data message based on BLE agreement, which includes leading (preamble), access address (access address), header, message length (PDU length), data and circulation are superfluous Remaining verification (CRC).It further, include logical link identifier (LLID), next expected sequence number (NESN), sequence in header Row number (SN), more data (MD) and reserved field.
It should be noted that tester can be according to test needs, the configuration parameter of each layer of the blank-interface text of setting. For example, the test value that logical link identifier can be set is (start and continue), the test value of next expected sequence number is (0 or 1), the test value of sequence number are (value replaces between 1 and 0), and more multidata test value is that (0 and 1,0 indicates without under One data), message length is (all length that BLE agreement is supported, the physical length for the payload data that BLE is supported is most More 27 bytes) etc., the embodiment of the present application is not construed as limiting this.
At this point, the packet capturing module 201 in main measurement equipment 20 obtains the blank-interface text, which corresponds to the message in Fig. 3 Capture 310.In one possible implementation, since bluetooth has frequency hopping function, blank-interface text has already passed through modulator solution It adjusts, therefore demodulation function can be completed using fpga chip, and other processing are carried out by arm processor.
It should be noted that packet capturing module 201 is only used as listener use in current network environment, will not influence Equipment in former network environment, therefore the embodiment of the present application can guarantee that the message that packet capturing module 201 grabs is authentic testing Message sent in environment.
Then, the message that packet capturing module 201 grabs is buffered to be sent to next stage protocol-analysis model (i.e. parsing extraction mould Block 202) in carry out message structure parsing.Parsing extraction module 202 is for obtaining and saving the Bluetooth protocol in blank-interface text The configuration parameter of each layer.Parsing extraction module 202 can be handled by CPU.The process corresponds to the protocal analysis in Fig. 3 320。
Specifically, the report for the blank-interface text that parsing extraction module 202 obtains packet capturing module 201 according to BLE protocol architecture Literary frame structure is parsed by layer, and the key parameter of each protocol layer according to parsing result extraction blank-interface text.Then, it solves It analyses extraction module 202 and saves the configuration parameter.As an example, which can be stored in slow by parsing extraction module 202 In depositing.Specifically, configuration parameter may refer to described above, to avoid repeating, which is not described herein again.
Protocol realization module 203 is used to realize Bluetooth protocol with the bluetooth module 101 of equipment under test 10.As an example, it assists View realizes module 203 for realizing each layer function of BLE agreement.The process corresponds to the protocol realization 330 in Fig. 3.
Specifically, main functionality of the protocol realization module 203 for realizing Bluetooth protocol, broadcast including main measurement equipment, Connection disconnects, with reciprocity complete procedure.Pairing process needs to establish proprietary protocol, is encrypted after pairing, to improve number According to interactive safety.As an example, Encryption Algorithm can be AES-128 algorithm, main at least one realized in following functions Kind: encrypted payload data calculate message integrity check value, data signature and generate private address.
Main measurement equipment 20 and equipment under test 10 establish connection and the process steps of pairing and binding are as follows:
(1) it is in broadcast state after the completion of main measurement equipment initialization, and starts to continue to send broadcasting packet;
(2) it is in scanning mode after the completion of equipment under test initialization, and starts scanning device;
(3) equipment under test scanning discovery, which is in, to initiate to scan to main measurement equipment immediately after the main measurement equipment of connection status Request;
(4) main measurement equipment receives and is scanned reply response to equipment under test after scan request;
(5) equipment under test, which receives, initiates the connection request after scanning is replied, and enters connection status, serves as host role;
(6) main measurement equipment enters connection status after receiving connection request, serves as slave role;
(7) main measurement equipment can initiate pairing request, for generating encryption and authentication key, to reinforce the safety of connection.
After completing above-mentioned steps, simulator and equipment under test can carry out data communication, i.e. data message transmission, pending data It can be disconnected after the completion of communication.
Also, the functions such as transmission frame-form and device address classification may be implemented in protocol realization module 203, define various wide Types of events, scan event are broadcast, various broadcast frame types, data frame type etc. are defined.
Message generation module 204 is used for after main measurement equipment and equipment under test successful connection, generates the survey of data message Example is tried out, the configuration parameter of each layer based on Bluetooth protocol in the test case of the data message is indigo plant according to the pre-stored data What the configuration parameter of each layer of tooth agreement determined.
As an optional embodiment, the mistake of protocol realization of the message generation module 204 based on protocol realization module 203 Journey will parse the extracted blank-interface text of extraction module 202 according to the message structure of service definition each in agreement in layers The key parameter of each layer is backfilled, and the test case for being backfilling into data message to be generated corresponds to the specific bit of hierarchical structure It sets, generates test case.
As another optional embodiment, protocol realization of the message generation module 204 based on protocol realization module 203 Process inserts the key parameter of each layer of preconfigured BLE agreement in the message structure according to each service definition.The application In embodiment, the test scope of the configuration parameter of each layer in the message structure of each service definition can be stored in advance, it is raw in message At the stage, the test case that each test data in test scope is filled into data message to be generated is corresponded into hierarchical structure Designated position, generate test case.
In the embodiment of the present application, the configuration parameter that test case to be inserted corresponds to hierarchical structure mainly includes in following parameter At least one:
1) link layer parameter: logical link identifier (LLID), next expected sequence number (NESN), sequence number (SN), More data (MD) etc.;
2) L2CAP layer parameter: message length, maximum transfer size of maximum transmission unit etc.;
3) attribute handle, Attribute class that how equipment was found, read and write another equipment ATT layer parameter: are defined The parameters such as type and net load value.
Based on this, by the combination of various parameters in the embodiment of the present application, various types of messages, i.e. data can be generated The test case of message.Then, main measurement equipment sends the test case to equipment under test, and carries out indigo plant according to the test case Tooth test.
Therefore, the embodiment of the present application is by the way that after main measurement equipment and equipment under test are attached pairing, main measurement equipment is raw At the test case of data message, the configuration parameter of each layer in the test case is each of Bluetooth protocol according to the pre-stored data What the configuration parameter of layer determined.Since the configuration parameter of each layer of Bluetooth protocol pre-stored in the embodiment of the present application can spirit Configuration living, therefore main measurement equipment can simulate various types of data messages in the embodiment of the present application, generate different tests and use Example, can substitute various bluetooth entity devices based on this main measurement equipment and equipment under test is attached pairing and data interaction, It realizes and the function of equipment under test, performance and compatibility is tested comprehensively.Since measurement equipment main in the embodiment of the present application can be with Various bluetooth entity devices are substituted, thus can carry out tearing the behaviour such as machine fly line open to avoid multiple bluetooth entity devices and equipment under test Make, realize and shorten test time, and then improve automation coverage rate, promotes bluetooth testing efficiency.
Fig. 5 shows a kind of schematic block diagram of the device 500 of bluetooth test provided by the embodiments of the present application.The bluetooth is surveyed The device 500 of examination includes connection pairing unit 510, generation unit 520 and transmission unit 530.Wherein, the device of bluetooth test 500 for example can be main measurement equipment 20 above, and connection pairing unit 510 can correspond to the reality of the agreement in main measurement equipment 20 Existing module 203, generation unit 520 can correspond to the message generation module 204 in main measurement equipment 20.
Connection pairing single 510, is attached pairing by Bluetooth protocol for the bluetooth module with equipment under test.
Generation unit 520, the configuration parameter of the protocal layers for the Bluetooth protocol according to the pre-stored data generate number According to the test case of message.
Transmission unit 530, for sending the test case to the equipment under test.
Therefore, the embodiment of the present application is by the way that after main measurement equipment and equipment under test are attached pairing, main measurement equipment is raw At the test case of data message, the configuration parameter of each layer in the test case is each of Bluetooth protocol according to the pre-stored data What the configuration parameter of layer determined.Since the configuration parameter of each layer of Bluetooth protocol pre-stored in the embodiment of the present application can spirit Configuration living, therefore main measurement equipment can simulate various types of data messages in the embodiment of the present application, generate different tests and use Example, can substitute various bluetooth entity devices based on this main measurement equipment and equipment under test is attached pairing and data interaction, It realizes and the function of equipment under test, performance and compatibility is tested comprehensively.Since measurement equipment main in the embodiment of the present application can be with Various bluetooth entity devices are substituted, thus can carry out tearing the behaviour such as machine fly line open to avoid multiple bluetooth entity devices and equipment under test Make, realize and shorten test time, and then improve automation coverage rate, promotes bluetooth testing efficiency.
Optionally, the device 500 of bluetooth test further include:
Acquiring unit, for obtaining blank-interface text, wherein the blank-interface text is configured based on the Bluetooth protocol;
Resolution unit, for parsing the configuration parameter of the protocal layers in the blank-interface text, to obtain the bluetooth association The configuration parameter of the protocal layers of view;
Storage unit, the configuration parameter of the protocal layers for saving the Bluetooth protocol.
Wherein, acquiring unit can correspond to the packet capturing module in main measurement equipment 20, and resolution unit can correspond to main survey Parsing extraction module 202 in equipment 20.
Optionally, the Bluetooth protocol is low-power consumption bluetooth BLE agreement.
Optionally, the protocal layers parameter of the BLE agreement includes link layer parameter, logical link control and adaptation protocol At least one of L2CAP layer parameter and attribute agreement ATT layer parameter.
It should be noted that connection pairing unit 510, generation unit 520 can be realized by processor in the embodiment of the present application, send out Send unit 530 that can be realized by transceiver.As shown in fig. 6, the device 600 of bluetooth test may include processor 610, memory 620 and transceiver 630.Wherein, memory 620 can be used for the code etc. of the execution of storage processor 610, and processor 610 can be with For handling data or program.
During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor 610 Or the instruction of software form is completed.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware Reason device executes completion, or in processor hardware and software module combine and execute completion.Software module can be located at random Memory, flash memory, read-only memory, the abilities such as programmable read only memory or electrically erasable programmable memory, register In the storage medium of domain maturation.The storage medium is located at memory 620, and processor 610 reads the information in memory 620, knot Close the step of its hardware completes the above method.To avoid repeating, it is not detailed herein.
Device 500 or device shown in fig. 6 600 shown in fig. 5 can be realized the corresponding main survey of preceding method embodiment and set Standby 20 each process, specifically, the device 500 or device 600 may refer to it is described above, to avoid repeating, here It repeats no more.
The embodiment of the present application also provides a kind of computer-readable mediums, for storing computer program, the computer journey Sequence includes the instruction for executing corresponding method in above method embodiment.
The embodiment of the present application also provides a kind of computer program product, the computer program product includes: computer Program code, when the operation of the processor for the device that the computer program is tested for bluetooth, so that this is avoided message fragment Device executes corresponding method in above-mentioned embodiment of the method.
Each embodiment in the application independent can use, and can also be used in combination, here without limitation.
It should be understood that the first, second equal description occurred in the embodiment of the present application, only make signal with distinguish description object it With, without order point, do not indicate to be particularly limited to equipment number in the embodiment of the present application yet, cannot constitute to the application reality Apply any restrictions of example.
It should also be understood that magnitude of the sequence numbers of the above procedures are not meant to execute in the various embodiments of the application Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the reality without coping with the embodiment of the present application It applies process and constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), arbitrary access are deposited The various media that can store program code such as reservoir (random access memory, RAM), magnetic or disk.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (11)

1. a kind of method of bluetooth test characterized by comprising
The bluetooth module of main measurement equipment and equipment under test is attached pairing by Bluetooth protocol;
The configuration parameter of the protocal layers of the main measurement equipment Bluetooth protocol according to the pre-stored data, generates data message Test case;
The main measurement equipment sends the test case to the equipment under test.
2. the method according to claim 1, wherein the main measurement equipment bluetooth association according to the pre-stored data The configuration parameter of the protocal layers of view, before the test case for generating data message, further includes:
The main measurement equipment obtains blank-interface text, wherein the blank-interface text is configured based on the Bluetooth protocol;
The main measurement equipment parses the configuration parameter of the protocal layers in the blank-interface text, to obtain each of the Bluetooth protocol The configuration parameter of protocol layer;
The main measurement equipment saves the configuration parameter of the protocal layers of the Bluetooth protocol.
3. method according to claim 1 or 2, which is characterized in that the Bluetooth protocol is low-power consumption bluetooth BLE agreement.
4. according to the method described in claim 3, it is characterized in that, the protocal layers parameter of the BLE agreement includes link layer At least one of parameter, logical link control and adaptation protocol L2CAP layer parameter and attribute agreement ATT layer parameter.
5. a kind of device of bluetooth test characterized by comprising
Pairing unit is connected, pairing is attached by Bluetooth protocol for the bluetooth module with equipment under test;
Generation unit, the configuration parameter of the protocal layers for the Bluetooth protocol according to the pre-stored data generate data message Test case;
Transmission unit, for sending the test case to the equipment under test.
6. device according to claim 5, which is characterized in that further include:
Acquiring unit, for obtaining blank-interface text, wherein the blank-interface text is configured based on the Bluetooth protocol;
Resolution unit, for parsing the configuration parameter of the protocal layers in the blank-interface text, to obtain the Bluetooth protocol The configuration parameter of protocal layers;
Storage unit, the configuration parameter of the protocal layers for saving the Bluetooth protocol.
7. device according to claim 5 or 6, which is characterized in that the Bluetooth protocol is low-power consumption bluetooth BLE agreement.
8. device according to claim 7, which is characterized in that the protocal layers parameter of the BLE agreement includes link layer At least one of parameter, logical link control and adaptation protocol L2CAP layer parameter and attribute agreement ATT layer parameter.
9. a kind of device of bluetooth test, which is characterized in that described device includes:
Memory, for storing instruction;
Processor for executing the instruction of the memory storage, and makes the execution of the instruction stored in the memory It obtains the processor perform claim and requires method described in any one of 1-4.
10. a kind of computer readable storage medium, it is stored with instruction in the computer readable storage medium, when described instruction exists When being run on computer, so that computer perform claim requires method described in any one of 1-4.
11. a kind of computer program product comprising instruction makes to succeed in one's scheme when the computer program product is run on computers Calculation machine perform claim requires method described in any one of 1-4.
CN201811460540.2A 2018-07-24 2018-12-01 Bluetooth test method and device Active CN109495870B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018108207520 2018-07-24
CN201810820752 2018-07-24

Publications (2)

Publication Number Publication Date
CN109495870A true CN109495870A (en) 2019-03-19
CN109495870B CN109495870B (en) 2022-02-01

Family

ID=65698961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811460540.2A Active CN109495870B (en) 2018-07-24 2018-12-01 Bluetooth test method and device

Country Status (1)

Country Link
CN (1) CN109495870B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545265A (en) * 2019-08-19 2019-12-06 重庆大学 data communication system and method for carrying out adaptation depending on ATT and indication
CN111328056A (en) * 2020-01-20 2020-06-23 钟代笛 Communication method and system for carrying out protocol adaptation based on ATT and read-write instruction
CN111726795A (en) * 2020-06-30 2020-09-29 展讯通信(上海)有限公司 Method and equipment for testing intelligent terminal
CN111800767A (en) * 2020-06-15 2020-10-20 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrade of terminal product based on BNEP (Bluetooth technology attachment)
CN111818493A (en) * 2020-05-21 2020-10-23 上海橙群微电子有限公司 Data transmission method, wireless network system, node and readable storage medium
CN112383911A (en) * 2020-12-24 2021-02-19 福建新大陆支付技术有限公司 POS Bluetooth automatic test method, system and storage medium
CN112911565A (en) * 2021-02-01 2021-06-04 中汽数据(天津)有限公司 Bluetooth packet sending method and system, equipment and storage medium
CN113228717A (en) * 2021-03-31 2021-08-06 华为技术有限公司 Communication method and device
CN114222320A (en) * 2021-12-16 2022-03-22 展讯通信(上海)有限公司 Method, device, apparatus, storage medium, and program for testing communication device
CN114928482A (en) * 2022-05-13 2022-08-19 北京百度网讯科技有限公司 Method and device for testing network communication function of software

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996899A (en) * 2005-12-29 2007-07-11 中兴通讯股份有限公司 Testing method of the mobile terminal protocol and its system
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof
US20090175177A1 (en) * 2006-03-06 2009-07-09 Nxp B.V. Method for testing a wireless network device
US20090257379A1 (en) * 2008-04-11 2009-10-15 Robinson Michael A Methods and apparatus for network capacity enhancement for wireless device coexistence
CN102420891A (en) * 2011-09-23 2012-04-18 展讯通信(上海)有限公司 Mobile terminal and test method, equipment and system thereof
CN102438055A (en) * 2011-12-06 2012-05-02 广东欧珀移动通信有限公司 Mobile phone automated testing method based on bluetooth communication
CN102523052A (en) * 2011-12-01 2012-06-27 无锡中星微电子有限公司 Testing method and testing device
US20130158934A1 (en) * 2011-12-16 2013-06-20 Universal Scientific Industrial (Shanghai) Co., Ltd. Method for automatically testing communication functionality of device under test and computer-readable media thereof
CN104202454A (en) * 2014-09-24 2014-12-10 福建联迪商用设备有限公司 Method and system for automatically executing mobile phone compatibility testing cases
CN104219689A (en) * 2014-09-16 2014-12-17 京信通信系统(中国)有限公司 LTE wireless communication air interface protocol software self testing device and method
CN104734911A (en) * 2015-02-10 2015-06-24 重庆邮电大学 CAN bus network management test system and method
EP2913689A2 (en) * 2014-02-25 2015-09-02 Sony Corporation Proximity detection of candidate companion display device in same room as primary display using WI-FI or bluetooth signal strength
CN105024873A (en) * 2014-04-29 2015-11-04 中国科学院沈阳自动化研究所 Protocol conformance testing system and method based on equipment and scene simulation
CN105262551A (en) * 2015-11-25 2016-01-20 上海市计量测试技术研究院 Wireless signal tester calibration device and method, and automatic testing system and method
CN105577461A (en) * 2014-10-10 2016-05-11 北京风行在线技术有限公司 Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system
CN105636080A (en) * 2015-12-30 2016-06-01 福建联迪商用设备有限公司 Bluetooth test method and system
WO2016203373A1 (en) * 2015-06-16 2016-12-22 Telefonaktiebolaget Lm Ericsson (Publ) Automation testing apparatus
CN106502886A (en) * 2016-10-13 2017-03-15 上海华虹集成电路有限责任公司 Low-power consumption bluetooth test system based on TCL
CN107769865A (en) * 2017-08-24 2018-03-06 江阴市创新气门嘴有限公司 The Auto-Test System and method of bluetooth module radio frequency parameter
US20180227675A1 (en) * 2008-09-03 2018-08-09 Starkey Laboratories, Inc. Hearing aid using wireless test modes as diagnostic tool

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996899A (en) * 2005-12-29 2007-07-11 中兴通讯股份有限公司 Testing method of the mobile terminal protocol and its system
US20090175177A1 (en) * 2006-03-06 2009-07-09 Nxp B.V. Method for testing a wireless network device
US20090257379A1 (en) * 2008-04-11 2009-10-15 Robinson Michael A Methods and apparatus for network capacity enhancement for wireless device coexistence
US20180227675A1 (en) * 2008-09-03 2018-08-09 Starkey Laboratories, Inc. Hearing aid using wireless test modes as diagnostic tool
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof
CN102420891A (en) * 2011-09-23 2012-04-18 展讯通信(上海)有限公司 Mobile terminal and test method, equipment and system thereof
CN102523052A (en) * 2011-12-01 2012-06-27 无锡中星微电子有限公司 Testing method and testing device
CN102438055A (en) * 2011-12-06 2012-05-02 广东欧珀移动通信有限公司 Mobile phone automated testing method based on bluetooth communication
US20130158934A1 (en) * 2011-12-16 2013-06-20 Universal Scientific Industrial (Shanghai) Co., Ltd. Method for automatically testing communication functionality of device under test and computer-readable media thereof
EP2913689A2 (en) * 2014-02-25 2015-09-02 Sony Corporation Proximity detection of candidate companion display device in same room as primary display using WI-FI or bluetooth signal strength
CN105024873A (en) * 2014-04-29 2015-11-04 中国科学院沈阳自动化研究所 Protocol conformance testing system and method based on equipment and scene simulation
CN104219689A (en) * 2014-09-16 2014-12-17 京信通信系统(中国)有限公司 LTE wireless communication air interface protocol software self testing device and method
CN104202454A (en) * 2014-09-24 2014-12-10 福建联迪商用设备有限公司 Method and system for automatically executing mobile phone compatibility testing cases
CN105577461A (en) * 2014-10-10 2016-05-11 北京风行在线技术有限公司 Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system
CN104734911A (en) * 2015-02-10 2015-06-24 重庆邮电大学 CAN bus network management test system and method
WO2016203373A1 (en) * 2015-06-16 2016-12-22 Telefonaktiebolaget Lm Ericsson (Publ) Automation testing apparatus
CN105262551A (en) * 2015-11-25 2016-01-20 上海市计量测试技术研究院 Wireless signal tester calibration device and method, and automatic testing system and method
CN105636080A (en) * 2015-12-30 2016-06-01 福建联迪商用设备有限公司 Bluetooth test method and system
CN106502886A (en) * 2016-10-13 2017-03-15 上海华虹集成电路有限责任公司 Low-power consumption bluetooth test system based on TCL
CN107769865A (en) * 2017-08-24 2018-03-06 江阴市创新气门嘴有限公司 The Auto-Test System and method of bluetooth module radio frequency parameter

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
沈亮: "蓝牙设备的测试方案探析", 《现代信息科技》 *
郑之光: "蓝牙设备的测试方案", 《数据通信》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545265B (en) * 2019-08-19 2021-12-31 重庆大学 Data communication system and method for carrying out adaptation depending on ATT and indication
CN110545265A (en) * 2019-08-19 2019-12-06 重庆大学 data communication system and method for carrying out adaptation depending on ATT and indication
CN111328056B (en) * 2020-01-20 2023-03-24 钟代笛 Communication method and system for carrying out protocol adaptation based on ATT (advanced technology transfer) and read-write command
CN111328056A (en) * 2020-01-20 2020-06-23 钟代笛 Communication method and system for carrying out protocol adaptation based on ATT and read-write instruction
CN111818493A (en) * 2020-05-21 2020-10-23 上海橙群微电子有限公司 Data transmission method, wireless network system, node and readable storage medium
CN111818493B (en) * 2020-05-21 2023-11-07 上海橙群微电子有限公司 Data transmission method, wireless network system, node, and readable storage medium
CN111800767A (en) * 2020-06-15 2020-10-20 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrade of terminal product based on BNEP (Bluetooth technology attachment)
CN111800767B (en) * 2020-06-15 2024-04-05 易兆微电子(杭州)股份有限公司 System and method for realizing OTA upgrading of terminal product based on BNEP Bluetooth
CN111726795A (en) * 2020-06-30 2020-09-29 展讯通信(上海)有限公司 Method and equipment for testing intelligent terminal
CN112383911A (en) * 2020-12-24 2021-02-19 福建新大陆支付技术有限公司 POS Bluetooth automatic test method, system and storage medium
CN112383911B (en) * 2020-12-24 2023-09-29 福建新大陆支付技术有限公司 POS Bluetooth automatic test method, system and storage medium
CN112911565A (en) * 2021-02-01 2021-06-04 中汽数据(天津)有限公司 Bluetooth packet sending method and system, equipment and storage medium
CN113228717B (en) * 2021-03-31 2022-10-04 华为技术有限公司 Communication method and device
CN113228717A (en) * 2021-03-31 2021-08-06 华为技术有限公司 Communication method and device
CN114222320A (en) * 2021-12-16 2022-03-22 展讯通信(上海)有限公司 Method, device, apparatus, storage medium, and program for testing communication device
CN114928482A (en) * 2022-05-13 2022-08-19 北京百度网讯科技有限公司 Method and device for testing network communication function of software

Also Published As

Publication number Publication date
CN109495870B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN109495870A (en) The method and apparatus of bluetooth test
CN105959177B (en) A kind of generation method and device of game server pressure test script
CN104796385B (en) Terminal binding method, apparatus and system
CN111224839B (en) Verification method and device for in-band network remote control function, storage medium and electronic equipment
CN103178996B (en) Distributed packet-switching chip model verification system and method
CN105450463B (en) Adjustment method, the device and system of hardware device
CN109726128A (en) A kind of method for generating test case, device and server
CN109815110A (en) A kind of network port management method, device, terminal device and storage medium
CN109726984A (en) A kind of processing result generation method and its equipment, storage medium, electronic equipment
WO2016015511A1 (en) Method, apparatus and computer storage medium for simulating data packet in network management test event
CN109783340A (en) Test code programming method, IP test method and the device of SoC
CN108205477A (en) Server stress test method
CN105991700B (en) Handle method, cloud server system and the terminal device of voice data
CN105049280B (en) The interface Behavior modeling test macro and method of Business Management Platform
CN108874612A (en) A kind of method of acquisition of information, relevant device and system
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN110278092A (en) Router long-range control method and system based on MQTT agreement
CN103714277B (en) Electronic equipment and application example management method thereof
CN113965904A (en) Device registration method, device and storage medium
CN107231275B (en) Method for connection configuration of user equipment and household equipment
CN114253823A (en) Distributed test method and related equipment
WO2017092391A1 (en) Middle-tier database virtual control and testing method and system utilizing same
CN110876155B (en) Simulation system and method for wireless mesh network
CN106789449A (en) A kind of CAN exploitation and method of testing and system
CN106346481A (en) Intelligent robot system for achieving configuration information transplanting and information transplant method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant