Summary of the invention
The embodiment of the present invention provides a kind of method of testing and device of bluetooth equipment, in order to improve testing efficiency, shortens the pairing time, reduces testing cost.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
A method of testing for bluetooth equipment, comprises the steps:
Bluetooth equipment to be measured obtains the test configurations information preset;
Bluetooth equipment to be measured reads the identification information of bluetooth testing equipment from the test configurations information obtained, and adopts back the mode of company and corresponding bluetooth testing equipment to connect based on identification information;
Bluetooth equipment trigger Bluetooth testing equipment to be measured carries out Bluetooth function test to bluetooth equipment to be measured self.
Preferably, bluetooth equipment to be tested obtains the test configurations information preset, and comprising:
When testing external storage medium, from storage medium, read default test code and test script; Wherein, test code is for resolving test script, and perform test program, test script is for describing in testing procedure and test process all kinds of test parameters needing to use.
Preferably, bluetooth equipment to be measured detects external storage medium, obtains the test code according to the latest edition of practical application request real-time update and test script.
Carry out configuration testing content by test script, do not need manual intervention, improve testing efficiency.When needs refresh test step or test event, only need refresh test script, thus save O&M cost to the full extent, realize configurableization to content measurement, go for different bluetooth equipments to be measured.
Preferably, bluetooth equipment to be measured reads the identification information of bluetooth testing equipment from the test configurations information obtained, and adopts back the mode of company and corresponding bluetooth testing equipment to connect based on identification information, comprising:
The one in the device number of the address of bluetooth testing equipment, the device name of bluetooth testing equipment and bluetooth testing equipment or combination in any is read from the test configurations information obtained;
The bluetooth testing equipment corresponding according to the information scanning read, and adopt back the mode of company to set up bluetooth with bluetooth testing equipment and be connected.
Preferably, bluetooth equipment trigger Bluetooth testing equipment to be measured carries out Bluetooth function test to bluetooth equipment to be measured self, comprising:
Bluetooth testing equipment is bluetooth transmitter, and bluetooth equipment trigger Bluetooth transmitter to be measured carries out Bluetooth pairing connecting test and/or application function test to this equipment;
In addition, after bluetooth equipment to be tested obtains the test configurations information preset, before reading identification information, or, after completing Bluetooth function test, comprising:
Bluetooth equipment to be measured carries out radio-frequency (RF) index test according to test configurations information trigger Bluetooth comprehensive test instrument to bluetooth equipment to be measured;
After bluetooth equipment to be tested obtains the test configurations information preset, before reading identification information, or, after completing Bluetooth function test, also comprise:
Bluetooth equipment to be measured carries out non-Bluetooth function test according to test configurations information, specifically comprise: universal input/output interface GPIO tests, general-purpose serial bus USB interface testing, secure digital card/multimedia card SD/MMC interface testing, microphone path MICchannel test, voice-frequency channel LINEINchannel tests, one or more combinations during radio module path FMchannel tests.
Except basic bluetooth test function, the present invention also adds radio-frequency (RF) index test and the test of non-Bluetooth function, makes test more comprehensive, meets the test needs to difference bluetooth equipment to be measured.
Bluetooth equipment to be measured, by reading the test configurations information preset, obtains the identification information of bluetooth testing equipment, and carries out active Hui Lian based on the identification information obtained and bluetooth testing equipment.Because the bluetooth testing equipment of Hui Lian is determined, therefore connection procedure is also determined, thus shortens the pairing time, improves testing efficiency, and then facilitates the management and control to product test.On the other hand, man-to-man time company's mode can realize multiple station and test simultaneously, drastically increases degree of parallelism and the efficiency of test.And only need to store Bluetooth identification information due to the company of returning, therefore means of testing is simple, and the information that preserve is also less, can not increase testing cost and test execution complexity.
A device for bluetooth equipment test, specifically comprises:
Acquiring unit, for obtaining default test configurations information;
Processing unit, for reading the identification information of bluetooth testing equipment from the test configurations information obtained, and adopts back the mode of company and corresponding bluetooth testing equipment to connect based on identification information;
Test cell, carries out Bluetooth function test for trigger Bluetooth testing equipment to bluetooth equipment to be measured.
Preferably, acquiring unit obtains the test configurations information preset, and comprising:
When testing external storage medium, from storage medium, read default test code and test script; Wherein, test code is used for calling test script, and test script is for describing in testing procedure and test process all kinds of test parameters needing to use.
Preferably, acquiring unit specifically for:
Detect external storage medium, obtain the test code according to the latest edition of practical application request real-time update and test script.
Carry out configuration testing content by test script, do not need manual intervention, improve testing efficiency.When needs refresh test step or test event, only need refresh test script, thus save O&M cost to the full extent, realize configurableization to content measurement, go for different bluetooth equipments to be measured.
Preferably, processing unit reads the identification information of bluetooth testing equipment from the test configurations information obtained, and adopts back the mode of company and corresponding bluetooth testing equipment to connect based on identification information, comprising:
The one in the device number of the address of bluetooth testing equipment, the device name of bluetooth testing equipment and bluetooth testing equipment or combination in any is read from the test configurations information obtained;
The bluetooth testing equipment corresponding according to the information scanning read, and adopt back the mode of company to set up bluetooth with bluetooth testing equipment and be connected.
Preferably, test cell trigger Bluetooth testing equipment carries out Bluetooth function test to bluetooth equipment to be measured, comprising:
Bluetooth testing equipment is bluetooth transmitter, and bluetooth equipment trigger Bluetooth transmitter to be measured carries out Bluetooth pairing connecting test and (or) application testing to this equipment.
Because the bluetooth testing equipment of Hui Lian is determined, therefore connection procedure is also determined, thus shortens the pairing time, improves testing efficiency, and then facilitates the management and control to product test.On the other hand, man-to-man time company's mode can realize multiple station and test simultaneously, drastically increases degree of parallelism and the efficiency of test.And due to the company's of returning only storage Bluetooth identification information, therefore means of testing is simple, and the information that preserve is also less, can not increase testing cost and test execution complexity.
In addition, after acquiring unit obtains the test configurations information preset, before processing unit reads identification information, or after test cell completes Bluetooth function test, test cell is further used for:
Radio-frequency (RF) index test is carried out according to test configurations information trigger Bluetooth comprehensive test instrument.
After acquiring unit obtains the test configurations information preset, before processing unit reads identification information, or after test cell completes Bluetooth function test, test cell is further used for:
Non-Bluetooth function test is carried out according to test configurations information, specifically comprise: universal input/output interface GPIO tests, general-purpose serial bus USB interface testing, secure digital card/multimedia card SD/MMC interface testing, microphone path MICchannel test, voice-frequency channel LINEINchannel tests, one or more combinations during radio module path FMchannel tests.
Except basic bluetooth test function, the present invention also adds radio-frequency (RF) index test and the test of non-Bluetooth function, makes test more comprehensive, meets the test needs to difference bluetooth equipment to be measured.
A system for bluetooth equipment test, comprises at least one group of bluetooth equipment to be measured and bluetooth testing equipment, wherein,
Bluetooth equipment to be measured, for obtaining default test configurations information, and reads the identification information of bluetooth testing equipment from the test configurations information obtained, and adopts back the mode of company and corresponding bluetooth testing equipment to connect based on identification information;
Bluetooth testing equipment, for the triggering based on bluetooth equipment to be measured, carries out Bluetooth function test to bluetooth equipment to be measured.
Preferably, native system, comprises further:
Storage medium, for storing test configurations information, test configurations packets of information is containing test code and test script.
Preferably, native system, comprises further:
Bluetooth comprehensive test instrument, for the triggering based on bluetooth equipment to be measured, carries out radio-frequency enabled test to bluetooth equipment to be measured.
Preferably, native system, comprises further:
Display device, comprises LED light and/or PC equipment, for feeding back detailed test result.
Embodiment
For the testing efficiency solving bluetooth test in prior art is low, the problem that the pairing time is long, in the embodiment of the present invention, bluetooth equipment to be measured is by reading the test configurations information preset, obtain the identification information of bluetooth testing equipment, and based on the identification information obtained, active Hui Lian is carried out to bluetooth testing equipment, namely bluetooth equipment to be measured initiatively connects bluetooth testing apparatus, request bluetooth testing equipment completes tests the bluetooth of this equipment, but not waits under prior art that bluetooth transmitter scanning connects bluetooth equipment to be measured.
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Consult shown in Fig. 1, in the embodiment of the present invention, the idiographic flow tested bluetooth equipment to be measured is as follows:
Step 100: bluetooth equipment to be measured obtains the test configurations information preset.
In the embodiment of the present invention, test configurations information is pre-configured and exist in the memory devices such as SD card, USB flash disk or Key equipment by administrative staff, when testing, the storage medium preserving test configurations information is inserted bluetooth equipment to be measured by administrative staff, after bluetooth equipment to be measured detects the storage medium of insertion, therefrom read the test configurations information obtaining and preset.
Concrete, test configurations information can comprise test code and test script, wherein, test code for resolving test script, test script then for describing testing procedure, i.e. test operation flow process, and in test process, need all kinds of test parameters that use, as address, the test event that needed of, bluetooth testing apparatus, execution sequence of every test etc.Why adopt and configuration information to be measured is set in this way, be because, when needs refresh test step or test event, only need refresh test script, thus save O&M cost to the full extent, namely not revising on the basis of test code, configurableization to content measurement can be realized, thus go for different bluetooth equipments to be measured.
Step 110: bluetooth equipment to be measured reads the identification information of bluetooth testing equipment from the test configurations information obtained, and adopt back the mode of company to be connected with corresponding bluetooth testing equipment based on this identification information.
Concrete, the identification information read from the test configurations information obtained can be the address of bluetooth testing equipment, the device name of bluetooth testing equipment;
The bluetooth testing equipment that bluetooth equipment to be measured is corresponding according to the information scanning read, and adopt back the mode of company to set up bluetooth with bluetooth testing equipment and be connected.
The process that bluetooth testing equipment and bluetooth equipment to be measured connect comprises:
Bluetooth testing equipment (main equipment) to be measured is carried out the saltus step of carrier frequency with frequency hop sequences and send paging request in transmitting time groove, bluetooth testing equipment (from equipment) with the fixing cycle one regular time groove to monitor the paging request of main equipment with certain Hopping frequencies.
Bluetooth testing equipment listens to request and just sends immediately at next time slot and respond from equipment paging, bluetooth equipment to be measured sends main equipment page response receiving the next time slot from equipment paging response, contains by main equipment address arithmetic hopping sequence information out and clock phase in this response.
Bluetooth testing equipment receive these information just enter connection status and automatically become pico-network from equipment, and again return from equipment paging response, main equipment enters connection status and automatically becomes the main equipment of pico-network after receiving this response.
Compared with conventional test methodologies, adopt the test mode of Hui Lian to eliminate query script, directly carry out paging operation, therefore can save the pairing time.
Step 120: bluetooth equipment trigger Bluetooth testing equipment to be measured carries out Bluetooth function test to bluetooth equipment to be measured self.
If bluetooth testing equipment is bluetooth transmitter, bluetooth equipment trigger Bluetooth transmitter to be measured carries out Bluetooth pairing connecting test and/or application function test to this equipment.
Wherein, application (profile) functional test comprises again simulation speaking test (Hands-freeProfile, HFP), song test (AdvancedAudioDistributionProfile is broadcast in simulation, and the protocol test such as audio/video Long-distance Control specification (Audio/VideoRemoteControlProfile, AVRCP) A2DP).
Such as, to simulate speaking test, after bluetooth transmitter and bluetooth equipment to be measured connect, bluetooth equipment to be measured sends one section of speech data by microphone, the compressed coding of speech data by blue teeth wireless tunnel to bluetooth transmitter, and export this voice data via the speaker of transmitter, detect the connection of bluetooth equipment to be measured with this, miaow head quality and speech quality etc.
Again such as, broadcast song test to simulate, a section audio is sent to bluetooth equipment to be measured by bluetooth transmitter, can play this section audio after bluetooth equipment to be measured receives data, detects connection and the audio playback quality of bluetooth equipment to be measured with this.
On the basis of carrying out Bluetooth function test, bluetooth equipment to be measured can also carry out radio-frequency enabled test according to the default test configurations information trigger Bluetooth comprehensive test instrument obtained, can select to test two different opportunitys, the first is after acquisition test configurations information, before the identification information reading bluetooth testing equipment, bluetooth module to be measured carries out radio-frequency enabled test according to test configurations information trigger Bluetooth comprehensive test instrument to himself; Its two be complete Bluetooth function test after, bluetooth equipment to be measured carries out radio-frequency enabled test according to test configurations information trigger Bluetooth comprehensive test instrument to himself.
In addition, on the basis of carrying out Bluetooth function test, bluetooth equipment to be tested can also carry out non-Bluetooth function test according to obtaining the test configurations information preset, can select to test two different opportunitys, the first is after acquisition test configurations information, before the identification information reading bluetooth testing equipment, bluetooth module to be measured according to test configurations information to himself carrying out non-Bluetooth function test; Its two be complete Bluetooth function test after, bluetooth equipment to be measured according to test configurations information to himself carrying out non-Bluetooth function test.
Bluetooth equipment to be measured carries out radio-frequency (RF) index test according to test configurations information trigger Bluetooth comprehensive test instrument to this equipment, such as: frequency deviation test, sensitivity test etc.
In bluetooth course of normal operation, frequency deviation and sensitivity are all the radio-frequency (RF) index comparing concern, and frequency deviation can affect Bluetooth data reception, if frequency deviation is excessive, then may there is the bluetooth connect hours long, broadcast song speech quality under degradation problem.Sensitivity characterizes bluetooth under the condition ensureing the error rate, receives the minimum power input needed for data.If insufficient sensitivity, then may there is the effective detection range of equipment and reduce, broadcast degradation problem under song speech quality.Therefore when carrying out radio-frequency (RF) index test, by making Devices to test enter test pattern, frequency deviation test has been carried out, sensitivity test etc.
Bluetooth equipment to be measured carries out non-Bluetooth function test according to test configurations information, universal input/output (GeneralPurposeInputOutput can be comprised, GPIO) test, USB (UniversalSerialBus, USB) interface testing, secure digital card (Securedigital, SD)/multimedia card (MultimediaCard, MMC) interface testing, microphone (MICchannel) path testing, voice-frequency channel (LINEINchannel) is tested, one or more combinations in radio module path (FMchannel) test.
Such as: bluetooth equipment to be measured is by judging whether that the driving of normal load SD card judges that whether SD card feed path is normal.
Again such as: bluetooth equipment to be measured is loading in USB flash disk driving process by judging whether drive load normally confirms that whether USB path is normal.
Again such as: bluetooth equipment to be measured is by loading test script, and employing exclusion method completes the test to bluetooth equipment GPIO to be measured, and content comprises the situation whether test GPIO exists short circuit and short circuit.If test is not passed through, provide the GPIO numbering of failure.
Again such as: bluetooth equipment to be measured is by loading test script, and the energy value of statistics MIC/LINEIN/FM passage, determines that whether corresponding channels operation is normal.
These tests above-mentioned are all carry out configuration testing content by test script, and by what automatically complete after testing results code call test script, therefore do not need manual intervention, improve testing efficiency.
The application scenarios that employing one is concrete below makes further description to above-described embodiment.Specifically consult shown in Fig. 2, in the embodiment of the present invention, the measuring executing process of bluetooth equipment to be measured is specific as follows:
Step 201: bluetooth equipment to be measured loads test configurations information, the test program recorded according to it and test script determination content measurement.
Step 202: bluetooth equipment to be measured carries out non-Bluetooth function test according to the test configurations information loaded, comprises the non-Bluetooth function test such as GPIO, MIC, LINEIN, FM.
Step 203: bluetooth equipment to be measured feeds back the test result of non-Bluetooth function test by local test output unit, if test is by performing step 204, if test is not by performing step 209.
Here local test output unit comprises LED light and/or PC equipment, can feed back detailed test result, is convenient to the management and control to product yield and quality in actual production process.
Step 204: bluetooth equipment to be measured reads the identification information of bluetooth transmitter from the test configurations information obtained, and carry out bluetooth based on this identification information and corresponding bluetooth transmitter and be connected.
Step 205: bluetooth equipment trigger Bluetooth transmitter to be measured carries out bluetooth linkage function and profile test to bluetooth equipment to be measured self.
Step 206: the test output unit feedback bluetooth linkage function of bluetooth transmitter by its this locality and the result of profile test, if test is by performing step 207, if test is not by performing step 209.
Concrete, bluetooth transmitter can pass through transmitter display device feedback test result;
Step 207: bluetooth equipment to be measured, according to the test configurations information loaded, judges whether to need to carry out radio-frequency enabled test, if needed, performs step 208, if do not needed, perform step 209.
Step 208: bluetooth equipment to be measured carries out Bluetooth RF functional test.
Concrete, Bluetooth RF functional test has been come by bluetooth comprehensive test instrument and fed back radio frequency testing result by connected PC equipment.
Step 209: bluetooth equipment to be measured determines that test terminates.
It is pointed out that in above embody rule scene, the test of non-Bluetooth function completed before Bluetooth function test, and in fact, non-Bluetooth function test also can be carried out after Bluetooth function test terminates.The opportunity the need of carrying out radio-frequency enabled test and radio-frequency enabled test can be selected in addition.
Based on above-described embodiment, consult shown in Fig. 3, in the embodiment of the present invention, a kind of device of bluetooth equipment test, specifically comprises:
Acquiring unit 30, for obtaining default test configurations information;
Processing unit 31, for reading the identification information of bluetooth testing equipment from the test configurations information obtained, and adopts back the mode of company and corresponding bluetooth testing equipment to connect based on identification information;
Test cell 32, carries out Bluetooth function test for trigger Bluetooth testing equipment to bluetooth equipment to be measured.
Preferably, acquiring unit 30 obtains the test configurations information preset, and comprising:
When testing external storage medium, from storage medium, read default test code and test script; Wherein, external storage medium is SD card, USB flash disk and/or Key equipment, and test code is used for calling test script, and test script is for describing in testing procedure and test process all kinds of test parameters needing to use.
Preferably, acquiring unit 30 specifically for:
Detect external storage medium, obtain the test code according to the latest edition of practical application request real-time update and test script.
Preferably, processing unit 31 specifically for:
The information such as the address of bluetooth testing equipment, the device name of bluetooth testing equipment is read from the test configurations information obtained;
The bluetooth testing equipment corresponding according to the information scanning read, and adopt back the mode of company to set up bluetooth with bluetooth testing equipment and be connected.
Preferably, test cell 32 specifically for:
Bluetooth testing equipment is bluetooth transmitter, then bluetooth equipment trigger Bluetooth transmitter to be measured carries out Bluetooth pairing connecting test and (or) application testing to this equipment;
In addition, after acquiring unit 30 obtains the test configurations information preset, can select to carry out non-Bluetooth function test two different opportunitys, namely before processing unit 31 reads identification information, or, after test cell 32 completes Bluetooth function test.
Test cell 32 is further used for:
Radio-frequency (RF) index test is carried out according to test configurations information trigger Bluetooth comprehensive test instrument.
After acquiring unit 30 obtains the test configurations information preset, can select to carry out non-Bluetooth function test two different opportunitys, namely before processing unit 31 reads identification information, or, after test cell 32 completes Bluetooth function test.
Test cell 32 is further used for:
Non-Bluetooth function test is carried out according to test configurations information, specifically comprise: universal input/output interface GPIO tests, general-purpose serial bus USB interface testing, secure digital card/multimedia card SD/MMC interface testing, microphone path MICchannel test, voice-frequency channel LINEINchannel tests, one or more combinations during radio module path FMchannel tests.
Based on above-described embodiment, consult shown in Fig. 4, in the embodiment of the present invention, a kind of system of bluetooth equipment test, comprises at least one group of bluetooth equipment to be measured and bluetooth testing equipment, wherein,
Bluetooth equipment to be measured, for obtaining default test configurations information, and reads the identification information of bluetooth testing equipment from the test configurations information obtained, and adopts back the mode of company and corresponding bluetooth testing equipment to connect based on identification information;
Bluetooth testing equipment, for the triggering based on bluetooth equipment to be measured, carries out Bluetooth function test to bluetooth equipment to be measured.
Preferably, native system, comprises further
Storage medium, for storing test configurations information, test configurations packets of information is containing test code and test script.
Preferably, native system, comprises further:
Bluetooth comprehensive test instrument, for the triggering based on bluetooth equipment to be measured, carries out radio-frequency enabled test to bluetooth equipment to be measured.
Preferably, native system, comprises further:
Display device, comprises LED light and/or PC equipment, for feeding back detailed test result.
In sum, bluetooth equipment to be measured is by reading the test configurations information preset, here test configurations information can upgrade as required, achieves configurableization to content measurement, dramatically saves on O&M cost and goes for different bluetooth equipments to be measured.Bluetooth equipment to be measured obtains the identification information of bluetooth testing equipment, and carries out active Hui Lian based on the identification information obtained to bluetooth testing equipment.Because the bluetooth testing equipment of Hui Lian is determined, therefore connection procedure is also determined, thus shortens the pairing time, improves testing efficiency, and then facilitates the management and control to product test.On the other hand, man-to-man time company's mode can realize multiple station and test simultaneously, drastically increases degree of parallelism and the efficiency of test.And due to the company's of returning only storage Bluetooth identification information, therefore means of testing is simple, and the information that preserve is also less, can not increase testing cost and test execution complexity.In addition, the present invention also adds radio-frequency (RF) index test and the test of non-Bluetooth function, makes test more comprehensive, meets the test needs to difference bluetooth equipment to be measured.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not depart from the spirit and scope of the embodiment of the present invention.Like this, if these amendments of the embodiment of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.