CN108882289A - A kind of method and device for bluetooth throughput performance production line test - Google Patents
A kind of method and device for bluetooth throughput performance production line test Download PDFInfo
- Publication number
- CN108882289A CN108882289A CN201810687927.5A CN201810687927A CN108882289A CN 108882289 A CN108882289 A CN 108882289A CN 201810687927 A CN201810687927 A CN 201810687927A CN 108882289 A CN108882289 A CN 108882289A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- test
- measured
- adapter
- equipment
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0888—Throughput
Abstract
The present invention relates to a kind of method and devices for bluetooth throughput performance production line test, it is suitable for but is not limited to that Bluetooth adapter is used to establish connection data transmission test as subtest equipment and Devices to test, test equipment that need not be professional can be in the test of the indexs such as throughput, the packet loss of plant produced stage completion bluetooth equipment, statistical method is utilized after test, obtain the assessment to blue tooth products performance quality, it is characterized in that test platform is conveniently built, test process need not be participated in manually, improve production efficiency.
Description
Technical field
The present invention relates to performance test fields, and in particular to a kind of method and dress for bluetooth throughput performance production line test
It sets.
Background technique
Bluetooth technology has been widely used in consumer electronics product at present, with pushing away for bluetooth technology with low power consumption
Into Bluetooth technology will be applied in wider field.Bluetooth audio frequency applies a most important field as Bluetooth technology, with
People's promotion that audio sound quality is pursued, also higher and higher, Android8.0 is required to the transmission bandwidth of wireless audio devices
System is up to 990kbps to the rate of Bluetooth data transfer, improves 3 times compared to Android7.0 system bluetooth transmission speed.
At present for the production test of blue tooth products, it is divided into semi-finished product test and finished product test.The general collection of semi-finished product test
In in terms of RF test, need test equipment (such as comprehensive test instrument) the connection equipment of profession to be tested, but there are test equipments
Expensive, testing procedure complexity problem;Finished product test is generally concentrated at bluetooth connection test, distance test etc., this survey
Examination cannot antenna performance to bluetooth, antenna power, bluetooth controller process performance test, and then can not confirm these
Whether factor impacts bluetooth performance in bluetooth finished product assembling process.Bluetooth handles up test and loss packet test can be indirectly fast
Speed obtains the influence of Bluetooth antenna performance, bluetooth controller performance to actual product, is that one in bluetooth finished product test is important
Step.
In existing program, the throughput performance appraisal procedure applied in bluetooth factory testing, segmentation scheme are not proposed also
It proposes the output power and the sensitivity that obtain Bluetooth antenna using bluetooth signal intensity RSSI value, but lacks and handle up bluetooth and lose
The method of packet Performance Evaluation.
Summary of the invention
The present invention provides it is a kind of can in plant produced rapid evaluation bluetooth end properties quality method, improve and give birth to
Efficiency is produced, production cost is reduced.
In order to realize the above technical effect, the invention discloses a kind of method for bluetooth throughput performance production line test, institutes
It states test method and is divided into two stages, which is characterized in that including:
The test of TX throughput performance is carried out to bluetooth equipment to be measured in the first phase, is included the following steps:
Step S11:Start the end Server program, reads the Bluetooth MAC address of Bluetooth adapter;
Step S12:Start the end Client program, obtains the Bluetooth MAC address of the Bluetooth adapter;
Step S13:The bluetooth equipment to be measured establishes connection according to the Bluetooth MAC address with the Bluetooth adapter;
Step S14:The bluetooth equipment to be measured sends the data packet for test to the Bluetooth adapter;
The test of RX throughput performance is carried out to the bluetooth equipment to be measured in second stage, is included the following steps:
Step S21:The Bluetooth adapter is converted to the end Client, and the bluetooth equipment to be measured is converted to the end Server,
The Bluetooth adapter sends the data packet for test to the bluetooth equipment to be measured;
Step S22:After test, TX and RX throughput test result is exported.
The invention also provides another method for being used for bluetooth throughput performance production line test, the test method is divided into two
A stage, which is characterized in that including:
The test of RX throughput performance is carried out to bluetooth equipment to be measured in the first phase, is included the following steps:
Step S11:Start the end Client program, reads the Bluetooth MAC address of Bluetooth adapter;
Step S12:Start the end Server program, obtains the Bluetooth MAC address of the Bluetooth adapter;
Step S13:The bluetooth equipment to be measured establishes connection according to the Bluetooth MAC address with the Bluetooth adapter;
Step S14:The Bluetooth adapter sends the data packet for test to the bluetooth equipment to be measured;
The test of TX throughput performance is carried out to the bluetooth equipment to be measured in second stage, is included the following steps:
Step S21:The Bluetooth adapter is converted to the end Server, and the bluetooth equipment to be measured is converted to the end Client,
The bluetooth equipment to be measured sends the data packet for test to the Bluetooth adapter;
Step S22:After test, RX and TX throughput test result is exported.
Preferably, the above method further includes:
Before the starting end Server program or the end Client program, it may also include following setting operations:Survey on host
Training this read test use-case parses testing data Packet type, and setting statistics number.
Preferably, the step S11 further includes:
After the end Server program or the end Client program in control unit 1 start execution, first reads out and be connected to control
The local mac address of Bluetooth adapter on unit 1, the test script being then transferred to by ADB order on host;
Described control unit 1 is located at the Bluetooth adapter side.
Preferably, the step S12 includes:
By the bluetooth MAC of the Bluetooth adapter obtained in the step S11 by the test script on host
Location sends control unit 2 to;
Described control unit 2 is located at the bluetooth equipment side to be measured.
Preferably, the step S13 includes:
After the end Client program or the end Server the program starting of the bluetooth equipment side to be measured, it is transmitted across according to host
The Bluetooth MAC address come directly establishes bluetooth connection with the Bluetooth adapter by HCI instruction.
Preferably, the method also includes:
The bluetooth equipment to be measured and the Bluetooth adapter are established after connection, are tested before throughput performance, are passed through control
The packet between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter is arranged in unit 1 processed and control unit 2
Mask attribute.
Preferably, the method also includes:
The bluetooth equipment to be measured and the Bluetooth adapter are established after connection, are tested before throughput performance, are passed through control
The auto- between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter is arranged in unit 1 processed and control unit 2
Flush mechanism.
Preferably, the method also includes:
It is set to fix duration as preset measurement period to calculate the bluetooth to be measured in the preset measurement period
Standby handle up variance yields and average throughput rate.
Preferably, the method also includes:
It before testing begins, is addition CRC check information in every packet test data at the end Client and the letter that sends sequence number
Breath;
The end Server judges to receive the integrality of data according to CRC check information.
Correspondingly, the device can be simultaneously the invention also provides a kind of device for bluetooth throughput performance production line test
Realize the test of TX throughput performance and the test of RX throughput performance, which is characterized in that including:
The end Server Bluetooth MAC address obtains module and reads the bluetooth of Bluetooth adapter for starting the end Server program
MAC Address;
The end Client Bluetooth MAC address obtains module and obtains the Bluetooth adapter for starting the end Client program
Bluetooth MAC address;
Creation module is connected, for controlling the bluetooth equipment to be measured and the Bluetooth adapter according to the bluetooth MAC
Connection is established in address;
Data interaction module sends the number for being used for testing to the Bluetooth adapter for controlling the bluetooth equipment to be measured
The end Client is converted to according to packet, and the control Bluetooth adapter, the bluetooth equipment to be measured is converted to the end Server, makes institute
It states Bluetooth adapter and sends the data packet for being used for test to the bluetooth equipment to be measured;
Test result output module, for exporting TX and RX throughput test result after test.
The invention also provides another device for being used for bluetooth throughput performance production line test, which can be achieved at the same time RX
Throughput performance test and the test of TX throughput performance, which is characterized in that including:
The end Client Bluetooth MAC address obtains module and reads the bluetooth of Bluetooth adapter for starting the end Client program
MAC Address;
The end Server Bluetooth MAC address obtains module and obtains the Bluetooth adapter for starting the end Server program
Bluetooth MAC address;
Creation module is connected, for controlling the bluetooth equipment to be measured and the Bluetooth adapter according to the bluetooth MAC
Connection is established in address;
Data interaction module sends the number for being used for testing to the bluetooth equipment to be measured for controlling the Bluetooth adapter
The end Server is converted to according to packet, and the control Bluetooth adapter, the bluetooth equipment to be measured is converted to the end Client, makes institute
It states bluetooth equipment to be measured and sends the data packet for being used for test to the Bluetooth adapter;
Test result output module, for exporting RX and TX throughput test result after test.
Preferably, described device further includes:
Configuration module, for controlling the test foot on host before the starting end Server program or the end Client program
This read test use-case parses testing data Packet type, and setting statistics number.
Preferably, described device further includes:
The end Server Bluetooth MAC address in control unit 1 obtains module or the end Client Bluetooth MAC address obtains module
After starting execution, the local mac address for the Bluetooth adapter being connected in control unit 1 is first read out, then passes through ADB order
The test script being transferred on host;
Described control unit 1 is located at the Bluetooth adapter side.
Preferably, the connection creation module further includes:
The Bluetooth MAC address for the Bluetooth adapter that test script on control host will acquire sends control unit to
2;
Described control unit 2 is located at the bluetooth equipment side to be measured.
Preferably, the connection creation module further includes:
The Bluetooth MAC address transmitted according to host, by HCI instruction control the Bluetooth adapter with it is described
Bluetooth equipment to be measured establishes connection.
Preferably, described control unit 1 and 2 further includes:
It after the bluetooth equipment to be measured and the Bluetooth adapter establish connection, tests before throughput performance, setting
Packet mask attribute between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter.
Preferably, described control unit 1 and 2 further includes:
After the bluetooth equipment to be measured and the Bluetooth adapter establish connection, tests before throughput performance, pass through
The auto- between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter is arranged in control unit 1 and control unit 2
Flush mechanism.
Preferably, described control unit 1 and 2 further includes:
It is set to fix duration as preset measurement period to calculate the bluetooth to be measured in the preset measurement period
Standby handle up variance yields and average throughput rate.
Preferably, described control unit 1 and 2 further includes:
It before testing begins, is addition CRC check information in every packet test data at the end Client and the letter that sends sequence number
Breath;
The end Server judges to receive the integrality of data according to CRC check information.
The invention discloses a kind of method and device for bluetooth throughput performance production line test, it is suitable for but is not limited to make
It uses Bluetooth adapter to establish connection data transmission test as subtest equipment and Devices to test, is belonged to using packet mask
Property and auto-flush mechanism, the accurate Packet type for controlling bluetooth physical layer transmission and using, design a set of applies in plant produced
In throughput, packet loss test method using statistical method obtain the assessment to blue tooth products performance quality, feature exists
It is conveniently built in test platform, test process need not be participated in manually, improve production efficiency.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a kind of system framework figure for carrying out bluetooth throughput performance test method in the embodiment of the present invention one;
Fig. 2 is a kind of method flow diagram for bluetooth TX throughput performance production line test in the embodiment of the present invention two;
Fig. 3 is a kind of detail flowchart for bluetooth TX throughput performance production line test in the embodiment of the present invention two;
Fig. 4 is a kind of software implementation process figure for bluetooth throughput performance production line test in the embodiment of the present invention four;
Fig. 5 is a kind of method flow diagram for bluetooth RX throughput performance production line test in the embodiment of the present invention three;
Fig. 6 is a kind of method flow diagram for bluetooth throughput performance production line test in the embodiment of the present invention four;
Fig. 7 is a kind of apparatus module figure for bluetooth throughput performance production line test in the embodiment of the present invention five~seven.
Specific embodiment
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to
Limit the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
Embodiment one
Fig. 1, which is shown, implements a kind of system framework figure for carrying out bluetooth throughput performance test method in the present invention, entire to be
System structure is divided into five submodules:Bluetooth adapter, bluetooth equipment to be measured, control unit, host, air interference source.Wherein, it controls
Unit processed is the test equipment of integrated processing chip and display, it is desirable that has USB and UART expansion interface, including control unit
1 and control unit 2, host is connected with control unit 1 and control unit 2 respectively by two USB data lines, control unit 1 and
Control unit 2 is connected with the Bluetooth adapter and the bluetooth equipment to be measured by USB or UART interface respectively.
To simulate true use environment as far as possible, passed between bluetooth equipment and Bluetooth adapter to be measured using wireless in test
It is defeated, air interference environment is artificially manufactured by the arrangement of WIFI router, it is specific to arrange quantity and status requirement according to practical survey
Examination demand is specified.
In order to shield influence of the wireless interference signal artificially manufactured to Bluetooth adapter signal-to-noise ratio, by Bluetooth adapter and
Control unit 1 is placed in shielded box, and shielded box can be fixed in producing line tooling in the specific implementation.
Host is connect by USB data line with control unit 1 and control unit 2 using the host computer commonly seen.For executing
The program of bluetooth throughput performance test method operates in control unit 1 and control unit 2 in the present invention, and host is ordered by ADB
Program operation and test result crawl, entire test process in control control unit is enabled to execute by automatized script, it is intermediate
It need not manually participate in.
Control unit 1 is connect by USB interface with Bluetooth adapter, control unit 2 pass through UART or USB interface with it is to be measured
Bluetooth equipment connection, the test program run on the control unit are adapted to by HCI Interface Controller bluetooth equipment to be measured with bluetooth
Device establishes connection and data transmission.HCI interface is a kind of logical abstraction interface as defined in Bluetooth protocol, is all bluetooth controllers
The protocol interface that must all support.
Embodiment two
Based on the system framework figure in embodiment one, the present embodiment proposes a kind of bluetooth TX (transmit) throughput performance
Test method, program used to perform the method are divided into the end Client and the end Server to run, and the end Client is as data
The role for sending and controlling, role of the end Server as data receiver and processing.Assess bluetooth equipment TX throughput performance to be measured
When, the end Client program operates in control unit 2, and the end Server program operates in control unit 1.Wherein, institute is being executed
Before stating test method, the end Client program and the end Server program are all copied in control unit 1 and control unit 2, transported
Row automatically selects suitable role in control unit 1 and control unit 2 according to test case demand in the test script of host
Program (Client program or Server program) is executed, and process flow diagram flow chart is as shown in Fig. 2, detail flowchart such as Fig. 3
Shown, the test method includes the following steps:
Step 1:Start the end Server program, reads the Bluetooth MAC address of Bluetooth adapter.
Specifically, the end the Server program operated in control unit 1 is than the end the Client journey that operates in control unit 2
Sequence first carries out.
Specifically, it after the end the Server program in control unit 1 starts execution, first reads out and is connected in control unit 1
Bluetooth adapter local mac address, the test script being then transferred to by ADB on host.
Specifically, before starting the end Server program, it may also include following setting operations:Test script on host is read
Test case is taken, testing data Packet type, and setting statistics number are parsed.
Step 2:Start the end Client program, obtains the Bluetooth MAC address of the Bluetooth adapter.
Specifically, by the test script on host by the bluetooth of the Bluetooth adapter obtained in the step 1
MAC Address sends control unit 2 to.
Step 3:Bluetooth equipment to be measured establishes connection according to the Bluetooth MAC address with the Bluetooth adapter.
Specifically, after the starting of the end Client program, the Bluetooth MAC address transmitted according to host is referred to by HCI
Order directly establishes bluetooth connection with the Bluetooth adapter.Bluetooth equipment scanning to be measured can be saved by this connection type to look into
It askes the time of the Bluetooth adapter, the time of bluetooth equipment is established in Bluetooth connection process around practical bluetooth scan for inquiries
Most time-consuming process, because of the influence of on-air radio interference etc., it is sometimes desirable to which scan for inquiries could repeatedly succeed, and greatly reduce
Production test efficiency.The end Server program in this method obtains Bluetooth adapter by HCI_Read_BD_ADDR HCI instruction
MAC Address, give bluetooth equipment to be measured by host transfer transmission, bluetooth equipment to be measured is straight according to Bluetooth adapter MAC Address
It connects and establishes connection with Bluetooth adapter.
Step 4:The bluetooth equipment to be measured sends the data packet for test to the Bluetooth adapter.
Specifically, the bluetooth equipment to be measured and the Bluetooth adapter are established after wireless connection, pass through the control
Unit 1 and described control unit 2 are arranged between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter
Packet mask attribute, the packet mask accurately can use certain type of data packet by bluetooth physical link.Right
When bluetooth is tested, the type of data packet that the effect length Bluetooth link physical layer transmission of data packet uses, and different type
Data packet noiseproof feature it is again different, therefore when implementing specific test operation, the data packet class to test as needed
Type generates the data packet of corresponding length range, the data packet of the corresponding length range by the software program in control unit 2 with
Machine generates, and ensures that the data packet length of transmission test every time is all inconsistent in this way, but all can be controlled in corresponding data packet
Within the length of type transfers.The following table shows the corresponding relationships for the type of data packet that data packet length and physical layer use.
It is worth noting that, packet mask attribute determines that physical link carries out data transmission used Packet type, by
It in the coding mode of bluetooth difference Packet type, anti-interference, data volume can be carried all is different, so packet mask is straight
Connecing influences transmitted data amount total size, and under default situations, it is that dynamic becomes that physical link, which carries out data transmission used Packet type,
Change, by the data length and air environment interference decision carried, this is impacted to different Packet type transmission performances are assessed, and
The present invention passes through the Packet type that packet mask property control is transmitted, preferential selection and the long immediate number of data to be transmitted packet
Carry out data transmission according to packet, so that the test of bluetooth throughput is more accurate.
Specifically, the setting of packet mask parameter instructs Change ConnectionPacket by standard HCI
Type Command is realized.
Packet mask mechanism is illustrated to the influence of bluetooth throughput, in bluetooth performance with specific example below
In test, a length of 350Bytes is wrapped in setting, if the data packet of 2-DH3 type is supported in packet mask setting, then due to 2-
DH3 packet load section (339,367) just meets 350Byte load, and therefore, test equipment can be selected preferentially closest to setting packet
Long 2-DH3 data packet transmits data;If the data packet for not supporting 2-DH3 type, test equipment is arranged in packet mask
Other kinds of data packet can be selected according to packet mask limitation, transmitting data can generate fragment in this way or other expenses are made
Throughput is caused to reduce at efficiency of transmission reduction.
Specifically, an important factor for influencing packet loss performance is external wireless interference and data packet length, for mould as far as possible
Intend true usage scenario, arranges WIFI router in test platform environment to increase air interference.
Specifically, the bluetooth equipment to be measured and the Bluetooth adapter are established after wireless connection, pass through the control
The auto- between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter is arranged in unit 1 and described control unit 2
Flush mechanism.The auto-flush mechanism is a kind of mechanism of software and hardware combining, is generally all propped up on present bluetooth equipment hardware
Standard auto-flush interface is held, the auto-flush mechanism can be avoided effectively because data packetloss causes data packet in base band
Unlimited re-transmission, and then influence bluetooth applications data blockings the problem of can not in time sending data, use auto-
Flush mechanism needs to cooperate suitable data packet time-out time, if data packet is not successfully transmitted away at the appointed time,
Hardware then removes currently transmitted data packet automatically and sends next data packet to be sent, passes through suitable software side in this way
Method can judge packet loss in receiving end, and this packet loss performance is for that need to guarantee the real-time of data transmission, and to the complete of data
The scene that whole property compensates by other means is extremely important, such as Bluetooth audio frequency application.Preferably, by link auto-flush's
Time is set as 1 second, specific Software Implementation be starting one 1 second timer thread, by call back function calculate 1 second at
The byte number of function transmission data.
Specifically, auto-flush mechanism specifies Devices to test packet to transmit time-out time, due to auto-flush mechanism
In the presence of, it will not block in poor transmission environment application layer, corresponding transmitted data amount can improve, and throughput is opposite to be improved, but
There are certain packet loss.
Specifically, the end Client program controls the bluetooth equipment to be measured with theoretical maximum throughput rate and fits to the bluetooth
Orchestration sends test data, and the theoretical maximum throughput rate is specified by test script according to test case, in practical survey
During examination, due to hardware scheduling performance, the influence of air interference packet loss, true Devices to test TX throughput rate is unable to reach
Theoretical TX throughput rate, so the throughput rate being successfully received when calculating Devices to test TX throughput rate with the end Server
Subject to.
Specifically, the end Server program and the end Client program use dual-thread implementation method, are with the end clilent program
Example, one of thread are responsible for sending blue-teeth data to be measured, another thread is responsible for calculating the throughput rate that data are sent, and pass through
The implementation method of dual-thread improves the accuracy of the reliability of program and packet loss performance test of handling up.
Step 5:After test, TX throughput test result is exported.
Specifically, the TX throughput rate for calculating bluetooth equipment to be measured is with 1 second for measurement period, updates this time within every 1 second
Instantaneous throughput rate in section can calculate Devices to test in the testing time using statistical method according to these instantaneous throughput rates
Handle up variance yields and average throughput rate.Handling up variance yields and average throughput rate will be as assessing bluetooth equipment performance to be measured
Important indicator, variance yields of handling up reflects the stability that bluetooth equipment to be measured is handled up, and numerical value is smaller to represent bluetooth equipment number to be measured
It is more stable according to transmitting;Average throughput rate reflects that bluetooth equipment to be measured is handled up maximum rate, and numerical value is bigger to represent bluetooth to be measured
The data volume that can be transmitted in the equipment unit time is bigger.
Specifically, the circular of throughput is:Throughput (kbps)=single performance test transmitted data amount is total
With/the unit time.
Specifically, test maximum throughput rate is being carried out simultaneously, for the integrality for guaranteeing data, the end Client is tested in every packet
CRC check information and the information tx_count that sends sequence number are added in data, the end Server judges to receive number according to CRC check information
According to integrality, only reception data CRC check information with transmission the CRC check information of data it is consistent when, just think data
It is successfully received, tx_count can understand in statistics reflects which bag data is lost.
Specifically, after test, output records the bluetooth equipment TX to be measured and handles up variance yields and average throughput
The test report of rate value.
Embodiment three
Based on the system framework figure in embodiment one, the present embodiment proposes a kind of side for testing bluetooth equipment RX throughput performance
Method, when testing bluetooth equipment RX throughput performance, serves as data receiver by bluetooth equipment to be measured unlike embodiment two
End, serves as data sending terminal by Bluetooth adapter, is implementing to enable the end Client program operate in control unit 1 when specific operation
In, the end Server program operates in control unit 2.
Since RX throughput performance testing process is similar to the TX throughput performance testing process in embodiment two, therefore in this implementation
Only the difference of the two is illustrated in example, something in common then repeats no more, and test flow chart is as shown in Figure 5.
In the test preparation stage, first start the end the Client program of described Bluetooth adapter one end, reads the control of the end Client
The MAC Address for the Bluetooth adapter that unit 1 processed connects;Then start the end the Server program of described bluetooth equipment one end to be measured,
The MAC Address for transmitting the Bluetooth adapter at the end Client gives the end Server program;To make the bluetooth equipment to be measured with
Connection is established between the Bluetooth adapter.
During the test and the statistics stage after the completion of test, Bluetooth adapter are run with the end Client program, to
The bluetooth equipment to be measured sends test data with theoretical maximum throughput rate, and the bluetooth equipment to be measured is with the end Server program
Operation, the RX throughput that the end Server calculates are the true RX throughput performance of bluetooth equipment to be measured.
After test, output records the bluetooth equipment RX to be measured and handles up variance yields and average throughput rate value
Test report.
Example IV
Based on the system framework figure in embodiment one, the test method in the present embodiment will be in embodiment two and embodiment three
Test method merged, thus propose it is a kind of test bluetooth equipment throughput method, including TX throughput performance survey
Examination and the test of RX throughput performance.
Since the throughput performance testing process in the test method and TX, RX throughput performance in embodiment two, three are tested
Process is similar, therefore is only illustrated in the present embodiment to difference, and something in common then repeats no more, and test flow chart is such as
Shown in Fig. 6, software implementation process figure is as shown in Figure 4.
Wherein test is divided into two stages, and the first stage is to carry out the test of TX throughput performance to the bluetooth equipment to be measured,
In the test preparation stage, first start the end the Server program of described Bluetooth adapter one end, reads the end Server control unit 1 and connect
The MAC Address of the Bluetooth adapter connect;Then start the Client program of described bluetooth equipment one end to be measured, transmit the end Server
The MAC Address of the Bluetooth adapter give the end Client program;To make the bluetooth equipment to be measured be adapted to the bluetooth
Connection is established between device;Test number is sent from the bluetooth equipment to be measured to the Bluetooth adapter after establishing connection
According to using the TX throughput that the Bluetooth adapter is an actually-received as the TX throughput being actually calculated.
Second stage is to carry out the test of RX throughput performance to the bluetooth equipment to be measured, due to having built up in the first stage
Connection relationship between the bluetooth equipment to be measured and the Bluetooth adapter, therefore be not necessarily in second stage test
Connection relationship between the two is established again;To the test in the test method of RX throughput and embodiment three in this stage
Method is identical.
After the test for completing two stages, generates and export the throughput test report for recording TX the and RX performance
It accuses.
Embodiment five
Referring to Fig. 7, a kind of device for bluetooth TX throughput performance production line test of the application is shown, is specifically included as follows
Module:
The end Server Bluetooth MAC address obtains module, for controlling:Operate in the end the Server program in control unit 1
The end Client program than operating in control unit 2 first carries out;After the end Server program in control unit 1 starts execution,
The local mac address for first reading out the Bluetooth adapter being connected in control unit 1, is then transferred on host by ADB
Test script;Before starting the end Server program, which may also include following setting operations:Test script on host is read
Test case is taken, testing data Packet type, and setting statistics number are parsed.
The end Client Bluetooth MAC address obtains module, for controlling:It will be described by the test script on host
The Bluetooth MAC address that the end Server Bluetooth MAC address obtains the Bluetooth adapter that module obtains sends control unit 2 to.
Creation module is connected, for controlling the bluetooth equipment to be measured and the Bluetooth adapter according to getting
Bluetooth MAC address establishes connection;Specifically, after the starting of the end Client program, the bluetooth MAC that is transmitted according to host
Bluetooth connection is directly established with the Bluetooth adapter by HCI instruction in location.Indigo plant to be measured can be saved by this connection type
The time of Bluetooth adapter described in tooth equipment scan for inquiries, around practical bluetooth scan for inquiries the time of bluetooth equipment be establish it is blue
Most time-consuming process in tooth connection procedure, because of the influence of on-air radio interference etc., it is sometimes desirable to which scan for inquiries repeatedly could be at
Function greatly reduces production test efficiency.The end Server program in this method is instructed by HCI_Read_BD_ADDR HCI
The MAC Address for obtaining Bluetooth adapter gives bluetooth equipment to be measured by host transfer transmission, and bluetooth equipment to be measured is suitable according to bluetooth
Orchestration MAC Address directly establishes connection with Bluetooth adapter.
Data interaction module sends the data packet for being used for testing to Bluetooth adapter for controlling bluetooth equipment to be measured;Tool
Body, the bluetooth equipment to be measured and the Bluetooth adapter are established be wirelessly connected after, by described control unit 1 and described
The packet mask attribute between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter is arranged in control unit 2,
The packet mask accurately can use certain type of data packet by bluetooth physical link.When testing bluetooth, number
According to the type of data packet that the effect length Bluetooth link physical layer transmission of packet uses, and different types of data packet noiseproof feature
It is again different, therefore when implementing specific test operation, the type of data packet to test as needed generates corresponding length range
Data packet, the data packet of the corresponding length range generates at random by the software program in control unit 2, ensured that in this way
The data packet length of transmission test is all inconsistent every time, but all can be controlled within the length of corresponding data Packet type transmission.
The following table shows the corresponding relationships for the type of data packet that data packet length and physical layer use.
Test result output module, for after test, input TX handles up test result.Calculate bluetooth equipment to be measured
TX throughput rate be with 1 second for measurement period, the every 1 second instantaneous throughput rate updated in this period is instantaneous according to these
Throughput rate can calculate handle up variance yields and the average throughput rate of Devices to test in the testing time using statistical method.It handles up
By as the important indicator for assessing bluetooth equipment performance to be measured, variance yields of handling up reflects indigo plant to be measured for variance yields and average throughput rate
The stability that tooth equipment is handled up, numerical value is smaller, and to represent bluetooth equipment data transmission to be measured more stable;Average throughput rate reflection to
It surveys bluetooth equipment to handle up maximum rate, numerical value is bigger to represent the data volume that can be transmitted in the bluetooth equipment unit time to be measured more
Greatly;Carrying out test maximum throughput rate simultaneously, for the integrality for guaranteeing data, the end Client is added in every packet test data
CRC check information and the information tx_count that sends sequence number, the end Server judge to receive the complete of data according to CRC check information
Property, when only the CRC check information of reception data is consistent with the CRC check information of data is sent, just think that data are successfully connect
It receives, tx_count can understand in statistics reflects which bag data is lost;After test, output records described to be measured
Bluetooth equipment TX handles up the test report of variance yields and average throughput rate value.
Embodiment six
Referring to Fig. 7, a kind of device for bluetooth RX throughput performance production line test of the application is shown, in embodiment five
Unlike, when testing bluetooth equipment RX throughput performance, data receiver is served as by bluetooth equipment to be measured, by Bluetooth adapter
Data sending terminal is served as, is implementing to enable the end Client program operate in control unit 1, the end Server program when specific operation
It operates in control unit 2.The device specifically includes following module:
The end Client Bluetooth MAC address obtains module, for obtaining the Bluetooth MAC address of the Bluetooth adapter.
The end Server Bluetooth MAC address obtains module, for what is sent by host reception from the end Client
The Bluetooth MAC address of the Bluetooth adapter.
Connect creation module, data interaction module and test result output module and similar, similarity in embodiment five
Details are not described herein, and difference is to make using the RX throughput that the end Server program is successfully received on the bluetooth equipment to be measured
For the RX throughput being actually calculated.
Embodiment seven
Based on the system framework figure in embodiment one, the test method in the present embodiment will be in embodiment five and embodiment six
Test method merged, to propose a kind of device for bluetooth equipment performance production line test, which can be real simultaneously
Existing TX throughput performance test and the test of RX throughput performance.
Since TX, RX throughput performance in the throughput performance test device and embodiment five, six in the test device are tested
Device is similar, therefore is only illustrated in the present embodiment to difference, and something in common then repeats no more, and test device is as schemed
Shown in 7, the process for carrying out the test of TX and RX throughput using the test device is shown in Figure 4.
The invention discloses a kind of method, apparatus and system for bluetooth TX throughput performance production line test, be suitable for but
It is not limited to that Bluetooth adapter is used to establish connection data transmission test as subtest equipment and Devices to test, utilizes packet
Mask attribute and auto-flush mechanism, the accurate Packet type for controlling bluetooth physical layer transmission and using, design a set of apply in work
Throughput, packet loss test method in factory's production obtain the assessment to blue tooth products performance quality using statistical method,
Feature is that test platform is conveniently built, and test process need not be participated in manually, improves production efficiency.
In several embodiments provided by the present invention, it should be understood that disclosed method and terminal can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
Only a kind of logical function partition, there may be another division manner in actual implementation.
In addition, the technical solution in above-mentioned several embodiments can be combined with each other and replace in the case where not conflicting
It changes.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
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.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention 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.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the present invention.Any attached associated diagram label in claim should not be considered as right involved in limitation to want
It asks.Furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for plural number.It is stated in system claims
Multiple modules or device can also be implemented through software or hardware by a module or device.The first, the second equal words
It is used to indicate names, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference
Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention
Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
1. a kind of method for bluetooth throughput performance production line test, the test method is divided into two stages, which is characterized in that
Including:
The test of TX throughput performance is carried out to bluetooth equipment to be measured in the first phase, is included the following steps:
Step S11:Start the end Server program, reads the Bluetooth MAC address of Bluetooth adapter;
Step S12:Start the end Client program, obtains the Bluetooth MAC address of the Bluetooth adapter;
Step S13:The bluetooth equipment to be measured establishes connection according to the Bluetooth MAC address with the Bluetooth adapter;
Step S14:The bluetooth equipment to be measured sends the data packet for test to the Bluetooth adapter;
The test of RX throughput performance is carried out to the bluetooth equipment to be measured in second stage, is included the following steps:
Step S21:The Bluetooth adapter is converted to the end Client, and the bluetooth equipment to be measured is converted to the end Server, described
Bluetooth adapter sends the data packet for test to the bluetooth equipment to be measured;
Step S22:After test, TX and RX throughput test result is exported.
2. a kind of method for bluetooth throughput performance production line test, the test method is divided into two stages, which is characterized in that
Including:
The test of RX throughput performance is carried out to bluetooth equipment to be measured in the first phase, is included the following steps:
Step S11:Start the end Client program, reads the Bluetooth MAC address of Bluetooth adapter;
Step S12:Start the end Server program, obtains the Bluetooth MAC address of the Bluetooth adapter;
Step S13:The bluetooth equipment to be measured establishes connection according to the Bluetooth MAC address with the Bluetooth adapter;
Step S14:The Bluetooth adapter sends the data packet for test to the bluetooth equipment to be measured;
The test of TX throughput performance is carried out to the bluetooth equipment to be measured in second stage, is included the following steps:
Step S21:The Bluetooth adapter is converted to the end Server, and the bluetooth equipment to be measured is converted to the end Client, described
Bluetooth equipment to be measured sends the data packet for test to the Bluetooth adapter;
Step S22:After test, RX and TX throughput test result is exported.
3. a kind of method for bluetooth throughput performance production line test as claimed in claim 1 or 2, which is characterized in that also wrap
It includes:
Before the starting end Server program or the end Client program, it may also include following setting operations:Test foot on host
This read test use-case parses testing data Packet type, and setting statistics number.
4. a kind of method for bluetooth throughput performance production line test as claimed in claim 1 or 2, which is characterized in that described
Step S11 further includes:
After the end Server program or the end Client program in control unit 1 start execution, first reads out and be connected to control unit 1
On Bluetooth adapter local mac address, the test script being then transferred to by ADB order on host;
Described control unit 1 is located at the Bluetooth adapter side.
5. a kind of method for bluetooth throughput performance production line test as claimed in claim 1 or 2, which is characterized in that described
Step S12 includes:
The Bluetooth MAC address of the Bluetooth adapter obtained in the step S11 is passed by the test script on host
Give control unit 2;
Described control unit 2 is located at the bluetooth equipment side to be measured.
6. a kind of method for bluetooth throughput performance production line test as claimed in claim 1 or 2, which is characterized in that described
Step S13 includes:
After the end Client program or the end Server the program starting of the bluetooth equipment side to be measured, transmitted according to host
The Bluetooth MAC address directly establishes bluetooth connection with the Bluetooth adapter by HCI instruction.
7. a kind of method for bluetooth throughput performance production line test as claimed in claim 1 or 2, which is characterized in that also wrap
It includes:
The bluetooth equipment to be measured and the Bluetooth adapter are established after connection, are tested before throughput performance, single by control
The packet mask between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter is arranged in member 1 and control unit 2
Attribute.
8. a kind of method for bluetooth throughput performance production line test as claimed in claim 1 or 2, which is characterized in that also wrap
It includes:
The bluetooth equipment to be measured and the Bluetooth adapter are established after connection, are tested before throughput performance, single by control
The auto-flush between the bluetooth equipment to be measured and the connecting link of the Bluetooth adapter is arranged in member 1 and control unit 2
Mechanism.
9. a kind of device for bluetooth throughput performance production line test, which can be achieved at the same time the test of TX throughput performance and RX is gulped down
Spit performance test, which is characterized in that including:
The end Server Bluetooth MAC address obtains module and reads the bluetooth MAC of Bluetooth adapter for starting the end Server program
Address;
The end Client Bluetooth MAC address obtains module and obtains the bluetooth of the Bluetooth adapter for starting the end Client program
MAC Address;
Creation module is connected, for controlling the bluetooth equipment to be measured and the Bluetooth adapter according to the Bluetooth MAC address
Establish connection;
Data interaction module sends the data for being used for testing to the Bluetooth adapter for controlling the bluetooth equipment to be measured
Packet, and the control Bluetooth adapter are converted to the end Client, and the bluetooth equipment to be measured is converted to the end Server, make described
Bluetooth adapter sends the data packet for test to the bluetooth equipment to be measured;
Test result output module, for exporting TX and RX throughput test result after test.
10. a kind of device for bluetooth throughput performance production line test, which can be achieved at the same time the test of RX throughput performance and TX
Throughput performance test, which is characterized in that including:
The end Client Bluetooth MAC address obtains module and reads the bluetooth MAC of Bluetooth adapter for starting the end Client program
Address;
The end Server Bluetooth MAC address obtains module and obtains the bluetooth of the Bluetooth adapter for starting the end Server program
MAC Address;
Creation module is connected, for controlling the bluetooth equipment to be measured and the Bluetooth adapter according to the Bluetooth MAC address
Establish connection;
Data interaction module sends the data for being used for testing to the bluetooth equipment to be measured for controlling the Bluetooth adapter
Packet, and the control Bluetooth adapter are converted to the end Server, and the bluetooth equipment to be measured is converted to the end Client, make described
Bluetooth equipment to be measured sends the data packet for test to the Bluetooth adapter;
Test result output module, for exporting RX and TX throughput test result after test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810687927.5A CN108882289A (en) | 2018-06-28 | 2018-06-28 | A kind of method and device for bluetooth throughput performance production line test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810687927.5A CN108882289A (en) | 2018-06-28 | 2018-06-28 | A kind of method and device for bluetooth throughput performance production line test |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108882289A true CN108882289A (en) | 2018-11-23 |
Family
ID=64296359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810687927.5A Pending CN108882289A (en) | 2018-06-28 | 2018-06-28 | A kind of method and device for bluetooth throughput performance production line test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108882289A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111432426A (en) * | 2020-06-11 | 2020-07-17 | 深圳市千分一智能技术有限公司 | Method, device, equipment and storage medium for testing Bluetooth transmission speed |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080294383A1 (en) * | 2007-05-21 | 2008-11-27 | Ramesh Parmar | Mobile device throughput testing |
CN203761408U (en) * | 2013-12-31 | 2014-08-06 | 青岛歌尔声学科技有限公司 | Performance test system of bluetooth finished product |
CN105577293A (en) * | 2014-10-13 | 2016-05-11 | 炬芯(珠海)科技有限公司 | Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system |
CN106165472A (en) * | 2014-04-14 | 2016-11-23 | 高通股份有限公司 | WLAN is utilized to receive chain to capture PSS and SSS |
US20170094540A1 (en) * | 2015-09-30 | 2017-03-30 | Rohde & Schwarz Gmbh & Co. Kg | Test system and method for testing multiple devices under test simultaneously |
CN106646053A (en) * | 2016-12-28 | 2017-05-10 | 深圳市磊科实业有限公司 | Antenna testing device and method for batch production WiFi/Bluetooth products |
CN106792827A (en) * | 2017-01-04 | 2017-05-31 | 惠州Tcl移动通信有限公司 | A kind of mobile terminal throughput testing approach and system |
WO2018005149A1 (en) * | 2016-07-01 | 2018-01-04 | Intel Corporation | Systems and methods for wireless device testing |
CN107846701A (en) * | 2017-12-14 | 2018-03-27 | 上海斐讯数据通信技术有限公司 | A kind of method and system of test equipment WiFi module handling capacity |
-
2018
- 2018-06-28 CN CN201810687927.5A patent/CN108882289A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080294383A1 (en) * | 2007-05-21 | 2008-11-27 | Ramesh Parmar | Mobile device throughput testing |
CN203761408U (en) * | 2013-12-31 | 2014-08-06 | 青岛歌尔声学科技有限公司 | Performance test system of bluetooth finished product |
CN106165472A (en) * | 2014-04-14 | 2016-11-23 | 高通股份有限公司 | WLAN is utilized to receive chain to capture PSS and SSS |
CN105577293A (en) * | 2014-10-13 | 2016-05-11 | 炬芯(珠海)科技有限公司 | Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system |
US20170094540A1 (en) * | 2015-09-30 | 2017-03-30 | Rohde & Schwarz Gmbh & Co. Kg | Test system and method for testing multiple devices under test simultaneously |
WO2018005149A1 (en) * | 2016-07-01 | 2018-01-04 | Intel Corporation | Systems and methods for wireless device testing |
CN106646053A (en) * | 2016-12-28 | 2017-05-10 | 深圳市磊科实业有限公司 | Antenna testing device and method for batch production WiFi/Bluetooth products |
CN106792827A (en) * | 2017-01-04 | 2017-05-31 | 惠州Tcl移动通信有限公司 | A kind of mobile terminal throughput testing approach and system |
CN107846701A (en) * | 2017-12-14 | 2018-03-27 | 上海斐讯数据通信技术有限公司 | A kind of method and system of test equipment WiFi module handling capacity |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111432426A (en) * | 2020-06-11 | 2020-07-17 | 深圳市千分一智能技术有限公司 | Method, device, equipment and storage medium for testing Bluetooth transmission speed |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108738062A (en) | A kind of method and device for bluetooth TX and RX throughput performance production line test | |
CN108738063A (en) | A kind of bluetooth equipment Performance Test System | |
JP5714117B2 (en) | Achieving improved test efficiency using acknowledgment signal suppression | |
CN108650033B (en) | Test method, test terminal, test system and storage medium of radio frequency device | |
US20130294255A1 (en) | Method for efficient parallel testing of time division duplex (tdd) communications systems | |
US20140273877A1 (en) | Method and system for simplifying wifi setup for best performance | |
CN110690929A (en) | Testing device, cloud server and testing method of communication equipment | |
CN107453934A (en) | A kind of method of testing, apparatus and system | |
CN104754093A (en) | Test device, system and method | |
TW201413255A (en) | Signal test system of handheld device and signal test method thereof | |
CN111432425A (en) | Test system and test method for network mode optimization of 3G/4G router | |
CN104468288A (en) | Terminal network data testing method and device | |
CN111934788A (en) | Radio frequency index testing method and system of head-mounted equipment and related components | |
CN108337125A (en) | Intelligent hardware devices test method, cloud platform and background controller | |
CN108882289A (en) | A kind of method and device for bluetooth throughput performance production line test | |
CN206481311U (en) | A kind of adaptive Bluetooth test system | |
CN108900261A (en) | A kind of 1800M RF consistency reception intermodulation testing method and device | |
CN108260144A (en) | The automatic test device and method of a kind of wireless radio frequency index | |
CN111343559A (en) | Automatic testing system and method for Bluetooth audio product | |
CN102740109B (en) | Method, system and device for determining receiving sensitivity of terminal | |
CN111277303A (en) | Production testing method and system based on universal asynchronous receiving and transmitting transmitter to Bluetooth | |
JP4603442B2 (en) | Data collection method and communication base station | |
CN115065426A (en) | Production measurement and control system and method for wireless router product | |
CN113472458A (en) | Method, device, equipment, storage medium and system for testing performance of wireless equipment | |
CN111163486B (en) | D2D communication simulation and performance test system and 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 | ||
CB02 | Change of applicant information |
Address after: 518000 13 / F, union building, No. 1069, Shekou Nanhai Avenue, merchants street, Nanshan District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Quanzhi online Co.,Ltd. Address before: 518000 5th floor, union building, No. 1069, Shekou Nanhai Avenue, merchants street, Nanshan District, Shenzhen, Guangdong Province Applicant before: XRADIOTECH TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |
|
RJ01 | Rejection of invention patent application after publication |