CN116709389A - Test method, system, device and storage medium - Google Patents

Test method, system, device and storage medium Download PDF

Info

Publication number
CN116709389A
CN116709389A CN202310913784.6A CN202310913784A CN116709389A CN 116709389 A CN116709389 A CN 116709389A CN 202310913784 A CN202310913784 A CN 202310913784A CN 116709389 A CN116709389 A CN 116709389A
Authority
CN
China
Prior art keywords
test
equipment
tested
accompanying
testing
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
Application number
CN202310913784.6A
Other languages
Chinese (zh)
Inventor
陈同少
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202310913784.6A priority Critical patent/CN116709389A/en
Publication of CN116709389A publication Critical patent/CN116709389A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a testing method, a testing system, a testing device and a storage medium, and belongs to the technical field of terminal equipment testing. The method comprises the following steps: the method comprises the steps of sending a first control instruction to tested equipment and sending a second control instruction to accompanying equipment, wherein the first control instruction is used for indicating the tested equipment to communicate with the accompanying equipment under a target test scene and communication content corresponding to the target test scene through Bluetooth; the second control instruction is used for indicating the accompanying and testing equipment to communicate with the tested equipment through Bluetooth; receiving first audio data output by the accompanying device based on the communication content; and testing the Bluetooth function of the tested equipment based on the first audio data, and generating a test result of the Bluetooth function of the tested equipment. According to the technical scheme provided by the embodiment of the application, the open loop test and the closed loop test of the Bluetooth function can be realized without using special Bluetooth detection equipment, and the test coverage rate is improved.

Description

Test method, system, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminal equipment testing, in particular to a testing method, a system, a device and a storage medium for Bluetooth functions.
Background
Bluetooth communication has become a very important ring in the wireless communication industry. Through testing the Bluetooth module, the connection and compatibility between the Bluetooth module and other Bluetooth devices can be checked, so that the device can stably operate under various using conditions and cannot be interfered by the outside. The Bluetooth function test can detect the performance of the product and improve the quality of the product. In the related art, a special bluetooth detection device is generally required for bluetooth function test, and the detection mode is single and cannot be expanded to detection of more types of bluetooth devices.
Disclosure of Invention
The embodiment of the application provides a testing method, a testing system, a testing device and a storage medium, which can improve the testing coverage rate.
The embodiment of the application provides a testing method which is applied to testing equipment, wherein the testing equipment respectively establishes communication connection with tested equipment and accompanying testing equipment in advance, and the method comprises the following steps:
the method comprises the steps of sending a first control instruction to tested equipment and sending a second control instruction to accompanying equipment, wherein the first control instruction is used for indicating the tested equipment to communicate with the accompanying equipment under a target test scene and communication content corresponding to the target test scene through Bluetooth; the second control instruction is used for indicating the accompanying and testing equipment to communicate with the tested equipment through Bluetooth;
Receiving first audio data output by the accompanying device based on the communication content;
and testing the Bluetooth function of the tested equipment based on the first audio data, and generating a test result of the Bluetooth function of the tested equipment.
The embodiment of the application provides a test system, which comprises: test equipment, accompanying test equipment and tested equipment; the test equipment is respectively pre-connected with the tested equipment and the accompanying test equipment in a communication way; wherein,
the test equipment is used for sending a first control instruction to the tested equipment and sending a second control instruction to the accompanying equipment, wherein the first control instruction is used for indicating the tested equipment to communicate with the accompanying equipment under the target test scene through Bluetooth and the communication content corresponding to the target test scene; the second control instruction is used for indicating the accompanying and testing equipment to communicate with the tested equipment through Bluetooth;
the tested equipment is used for receiving a first control instruction from the testing equipment, carrying out communication under the target testing scene with the accompanying testing equipment through Bluetooth according to the first control instruction, and sending communication content corresponding to the target testing scene to the accompanying testing equipment;
the accompanying test equipment is used for receiving a second control instruction from the test equipment, communicating with the tested equipment through Bluetooth according to the second control instruction, and outputting first audio data based on communication content;
The test equipment is also used for receiving the first audio data output by the accompanying test equipment; and testing the Bluetooth function of the tested equipment based on the first audio data, and generating a test result of the Bluetooth function of the tested equipment.
The embodiment of the application provides a testing device, which is applied to testing equipment, wherein the testing equipment respectively establishes communication connection with tested equipment and accompanying testing equipment in advance, and the device comprises:
the device comprises a sending unit, a target testing device and a target testing device, wherein the sending unit is used for sending a first control instruction to the tested device and a second control instruction to the target testing device, and the first control instruction is used for indicating the tested device to communicate with the target testing device through Bluetooth and communication content corresponding to the target testing scene; the second control instruction is used for indicating the accompanying and testing equipment to communicate with the tested equipment through Bluetooth;
a receiving unit for receiving first audio data output by the partner device based on the communication content;
and the test unit is used for testing the Bluetooth function of the tested equipment based on the first audio data and generating a test result of the Bluetooth function of the tested equipment.
An embodiment of the present application provides an electronic device, including: a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory so as to enable the electronic device to execute the testing method in the embodiment of the application.
The embodiment of the application provides a chip for realizing the test method.
Specifically, the chip includes: and the processor is used for calling and running the computer program from the memory, so that the device provided with the chip executes the test method in the embodiment of the application.
An embodiment of the present application provides a computer-readable storage medium storing a computer program which, when executed by a device, causes the device to perform the test method in the embodiment of the present application.
Embodiments of the present application provide a computer program product comprising computer program instructions for causing a computer to perform the test method of the embodiments of the present application.
The embodiment of the application provides a computer program which, when run on a computer, causes the computer to execute the test method in the embodiment of the application.
According to the embodiment of the application, the test equipment controls the tested equipment and the accompanying equipment by sending the first control instruction to the tested equipment and sending the second control instruction to the accompanying equipment; the test equipment controls the tested equipment to communicate with the accompanying equipment under the target test scene and the communication content corresponding to the target test scene through Bluetooth, and the test equipment receives first audio data output by the accompanying equipment based on the communication content; the Bluetooth function of the tested device is tested by the test device based on the first audio data, so that the control and detection of the tested device are separated, the device control is performed through the test device and the tested device, the audio detection is performed at the test device end, the issuing of the test task and the audio detection are performed at the test device end, the expansion and the background processing are convenient, the open loop test and the closed loop test of the Bluetooth function can be realized without using special Bluetooth detection devices, and the test coverage rate is greatly improved.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein:
FIG. 1 is a schematic flow chart of a test method provided by an embodiment of the application;
FIG. 2 is a schematic flow chart II of a test method provided by an embodiment of the application;
fig. 3 is a schematic diagram of a test architecture for bluetooth function according to an embodiment of the present application;
fig. 4 is a schematic diagram of a second test architecture for bluetooth function according to an embodiment of the present application;
fig. 5 is a schematic diagram III of a test architecture for bluetooth function according to an embodiment of the present application;
fig. 6 is a schematic diagram of a test architecture for bluetooth function according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a test system 700 according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a testing device 800 according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device 900 according to an embodiment of the present application;
fig. 10 is a schematic block diagram of a chip 1000 according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
The technical scheme of the embodiment of the application can be applied to various electronic equipment. The electronic device may be a terminal device or a server.
It should be understood that the term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that the "indication" mentioned in the embodiments of the present application may be a direct indication, an indirect indication, or an indication having an association relationship. For example, a indicates B, which may mean that a indicates B directly, e.g., B may be obtained by a; it may also indicate that a indicates B indirectly, e.g. a indicates C, B may be obtained by C; it may also be indicated that there is an association between a and B.
In the description of the embodiments of the present application, the term "corresponding" may indicate that there is a direct correspondence or an indirect correspondence between the two, or may indicate that there is an association between the two, or may indicate a relationship between the two and the indicated, configured, etc.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the following description describes related technologies of the embodiments of the present application, and the following related technologies may be optionally combined with the technical solutions of the embodiments of the present application as alternatives, which all belong to the protection scope of the embodiments of the present application.
An embodiment of the present application provides a testing method, and fig. 1 is a schematic flow diagram of a testing method according to an embodiment of the present application, where the testing method may be applied to a testing apparatus, for example, the testing apparatus may be deployed on a testing device, where the testing device, a tested device and a partner device form a testing system, and the testing device respectively establishes communication connection with the tested device and the partner device in advance. In some possible implementations, the method may also be implemented by way of a processor invoking computer readable instructions stored in a memory. In some possible implementations, the test method may be applied to a test device, which may be a personal computer (Personal Computer, PC), a tablet, a notebook, a television, or the like, having a wired or wireless connection function. As shown in fig. 1, the test method includes:
s101: the method comprises the steps of sending a first control instruction to tested equipment and sending a second control instruction to accompanying equipment, wherein the first control instruction is used for indicating the tested equipment to communicate with the accompanying equipment under a target test scene and communication content corresponding to the target test scene through Bluetooth; the second control instruction is used for indicating the accompanying and testing equipment to communicate with the tested equipment through Bluetooth;
S102: receiving first audio data output by the accompanying device based on the communication content;
s103: and testing the Bluetooth function of the tested equipment based on the first audio data, and generating a test result of the Bluetooth function of the tested equipment.
Here, the device under test refers to a device under test. For example, the tested device may be an electronic product returned to a factory or to be shipped, and may specifically be a device supporting a bluetooth function, such as a mobile phone, a tablet computer, a notebook computer, a finished earphone, a sound box, a vehicle-mounted terminal, and the like.
Here, the test device refers to a device that performs a test on a device under test. For example, the test device may be an electronic product used by a tester, and specifically may be a PC, a tablet computer, a notebook computer, a television, a mobile phone, and other devices.
Here, the partner device refers to a device that plays an auxiliary role in testing the device under test by the test device. The accompanying equipment is used for communicating with the tested equipment according to the second control instruction sent by the testing equipment and outputting the first audio data. For example, the accompanying device may be a common electronic product, and specifically may be a device supporting bluetooth communication such as a mobile phone, a finished earphone, a sound box, a bluetooth device, and the like.
Here, the test device communicates with the device under test in a Wireless communication manner including, but not limited to, bluetooth communication, mobile communication, wireless local area network (Wireless LocalAreaNetwork, WLAN) communication. The present application does not impose a limitation on the wireless communication scheme.
Here, the test device communicates with the accompanying device in a wireless communication manner including, but not limited to, bluetooth communication, mobile communication, WLAN communication. The present application does not impose a limitation on the wireless communication scheme.
In an embodiment of the present disclosure, the target test scenario includes at least one of: media audio playing test; testing call audio; and (5) file transfer testing.
Here, the media audio playing test is used for testing the media audio playing function of bluetooth of the tested device.
Here, the call audio test is used to test the call function of bluetooth of the device under test.
Here, the file transfer test is used to test the file transfer function of bluetooth of the device under test.
In the embodiment of the disclosure, the communication content indicated in the first control instruction is adapted to the indicated target test scenario. For example, if the target test scenario is file transfer, the communication content is file data. Also by way of example, if the target test scenario is a call, then the communication content is call data, how it is today. Still further exemplary, if the target test scene is a media audio play, the communication content is audio play data, such as song 1.
Here, the communication content corresponding to the target test scene may be obtained based on the test case editing.
In an embodiment of the present disclosure, testing a bluetooth function of a device under test based on the first audio data includes: based on the first audio data, a test result of the Bluetooth function of the tested device is generated.
For example, the test result of the bluetooth function of the tested device includes: the running condition of the file transmission function; the running condition of the call function; the operation of the media audio play function.
It should be noted that, the bluetooth function operation standard of each target test scenario may be set or adjusted according to the test requirement.
According to the technical scheme, the test equipment sends the first control instruction to the tested equipment and sends the second control instruction to the accompanying test equipment, so that the test equipment can control the tested equipment and the accompanying test equipment; the test equipment controls the tested equipment to communicate with the accompanying equipment under the target test scene and the communication content corresponding to the target test scene through Bluetooth, and the test equipment receives first audio data output by the accompanying equipment based on the communication content; the Bluetooth function of the tested device is tested by the test device based on the first audio data, so that the control and detection of the tested device are separated, the device control is performed through the test device and the tested device, the audio detection is performed at the test device end, the issuing of the test task and the audio detection are performed at the test device end, the expansion and the background processing are convenient, the open loop test and the closed loop test of the Bluetooth function can be realized without using special Bluetooth detection devices, and the test coverage rate for different types of Bluetooth devices is greatly improved.
In order to further improve the reliability of the test result, as shown in fig. 2, the test method may further include:
s201: comparing the test result with a reference result, wherein the reference result is a Bluetooth function reference result determined according to a reference standard;
s202: and determining whether the Bluetooth function of the tested device meets the reference standard in the target test scene according to the comparison result.
In some examples, S201 and S202 described above may be performed after S103.
In some embodiments, if the difference between the comparison result characterization test result and the reference result is smaller than a preset threshold, determining that the bluetooth function of the tested device meets the reference standard in the target test scene; if the difference between the comparison result characterization test result and the reference result is not smaller than the preset threshold value, determining that the Bluetooth function of the tested device does not meet the reference standard in the target test scene.
Here, the preset threshold may be set according to a reference standard.
The reference standard may be determined according to the test requirement, the industry standard of the tested device, or the industry standard of the bluetooth device.
Therefore, the test result is compared with the reference result, whether the Bluetooth function of the tested device meets the reference standard in the target test scene is determined according to the comparison result, and the reliability of the test result can be improved.
In an embodiment of the present application, a receiving partner device outputs first audio data based on communication content, including: in response to the audio input aperture (also referred to as an earphone headset aperture) of the test device being connected to the speaker (also referred to as a horn) and microphone (also referred to as a microphone) of the companion device through a first audio line, first audio data output by the companion device is received through the first audio line. Here, the accompanying test equipment does not need a controller, can directly issue instructions to perform bluetooth interaction with the tested equipment, and the audio input and output can be directly connected with the test equipment (such as a computer) through a first audio line.
Fig. 3 shows a schematic diagram of a test architecture for bluetooth function provided in an embodiment of the present application, as shown in fig. 3, a test device (such as a computer) sends a first control instruction to a device under test (such as a mobile phone), and sends a second control instruction to a partner test device 1 (such as a bluetooth device); the first control instruction is used for indicating a target test scene of the tested device to be media audio playing, and indicating the tested device to send audio data about song 1 to the accompanying device 1; the accompanying test equipment 1 is connected with the test equipment through an adapter, an audio input hole of the test equipment is connected with a loudspeaker and a microphone of the accompanying test equipment 1 through a first audio line, and first audio data output by the accompanying test equipment 1 are received through the first audio line.
The accompanying test device 1 may be a bluetooth device with an audio hole, the accompanying test device 1 is mainly a device including a programmable control firmware and an audio output module, the test device does not need a controller, the accompanying test device 1 can directly issue instructions to enable bluetooth interaction with a tested device, the audio input and output of the accompanying test device 1 can be directly connected with the test device through a first audio line, interference of environmental noise is avoided, and the accompanying test device 1 can be applied to testing of performance, protocol and functions.
Therefore, the test equipment (such as a PC) is used as a control center, the control of the tested equipment (such as a mobile phone) and the accompanying test equipment is realized, the audio input and output of the accompanying test equipment can be directly collected by the audio input hole of the tested equipment, and the environment deployment is simple and can be expanded; because the tested equipment and the accompanying equipment only control, the detection and control of the tested equipment are isolated, and the expandability of the tested equipment is increased.
In an embodiment of the present application, a receiving partner device outputs first audio data based on communication content, including: and receiving first audio data output by the accompanying test equipment collected by the microphone of the test equipment through a second audio line connected with the microphone of the test equipment inside the test equipment in response to the audio input hole of the test equipment not being connected with the speaker and the microphone of the accompanying test equipment through the first audio line. Further, through the third audio line connected with the speaker inside the test equipment, the second audio data is sent to the speaker of the test equipment, so that the microphone of the accompanying test equipment can collect the second audio data played by the speaker of the test equipment, and the accompanying test equipment can send the second audio data to the tested equipment through Bluetooth.
Here, the control of the partner measuring device requires a special control unit, which mainly uses a voltage signal to control the fly line control of the keys of the partner measuring device, or uses a mechanical arm to perform click control, etc.
Fig. 4 shows a second schematic diagram of a test architecture for bluetooth function according to an embodiment of the present application, where, as shown in fig. 4, a test device (such as a computer) sends a first control instruction to a device under test (such as a mobile phone), and sends a second control instruction to a partner device 2 (such as a finished bluetooth device or a sound box); the first control instruction is used for indicating a target test scene of the tested equipment to be a call and indicating the tested equipment to send audio data about the call to the accompanying equipment 1; the audio input and output of the accompanying and testing equipment 2 are a microphone and a loudspeaker, corresponding sounding and receiving equipment is needed to be in butt joint with the microphone and the loudspeaker, and the testing equipment receives first audio data output by the accompanying and testing equipment acquired by the microphone of the testing equipment through a second audio line connected with the internal microphone; the test equipment sends second audio data to the loudspeaker of the test equipment through a third audio line connected with the internal loudspeaker, further the microphone of the accompanying test equipment collects the second audio data played by the loudspeaker of the test equipment, and the accompanying test equipment sends the second audio data to the tested equipment through Bluetooth.
The accompanying and testing equipment 2 is controlled to carry out Bluetooth communication with the tested equipment, an external microphone of the testing equipment is in butt joint with a loudspeaker of the accompanying and testing equipment 2, an external loudspeaker of the testing equipment is in butt joint with a microphone of the accompanying and testing equipment 2, an external camera of the testing equipment is in butt joint with an interface of the accompanying and testing equipment 2, the artificial ear and artificial mouth simulation conversation process is achieved, and sound control and detection are achieved.
Therefore, when the tested equipment (such as a mobile phone) and the accompanying equipment 2 are controlled by the test equipment (such as a PC) serving as a control center, the audio input and output of the accompanying equipment 2 are a microphone and a loudspeaker, and the corresponding sounding and receiving equipment is required to be in butt joint with the microphone and the loudspeaker, so that functions similar to those of an artificial mouth and an artificial ear are realized. Because the tested equipment and the accompanying equipment only control, the detection and control of the tested equipment are isolated, and the expandability of the tested equipment is increased.
In an embodiment of the present application, a receiving partner device outputs first audio data based on communication content, including: and controlling the accompanying and testing equipment and the tested equipment to carry out Bluetooth conversation, receiving first audio data output by the accompanying and testing equipment based on communication content, wherein the accompanying and testing equipment and the tested equipment can carry out Bluetooth conversation and file transmission.
Illustratively, the partner device 3 and the device under test are controlled to make bluetooth calls, and the first audio data output by the partner device 3 based on the communication content is received.
Fig. 5 shows a third schematic diagram of a test architecture for bluetooth function according to an embodiment of the present application, where, as shown in fig. 5, a test device (such as a computer) sends a first control instruction to a device under test (such as a mobile phone), and sends a second control instruction to a partner device 3 (such as a mobile phone); the first control instruction is used for indicating a target test scene of the tested device to be file transmission and indicating the tested device to send file data about file transmission to the accompanying device 3; the test device receives the file data returned by the accompanying device 3.
Fig. 6 shows a fourth schematic diagram of a test architecture for bluetooth functions according to an embodiment of the present application. As shown in fig. 6, the test device (such as a computer) sends a first control instruction to the device under test (such as a mobile phone), and sends a second control instruction to the accompanying test device 3 (such as a mobile phone); the first control instruction is used for indicating a target test scene of the tested equipment to be a call, and indicating the accompanying equipment 3 to send audio data about the call to the tested equipment; and receiving first audio data sent by the tested equipment to the accompanying equipment 2 through Bluetooth, and acquiring the first audio data from the accompanying equipment 2 by the testing equipment to realize the function similar to an artificial ear. The second control instruction is used for instructing the accompanying and testing equipment 3 to send second audio data related to conversation to the testing equipment, and the testing equipment sends the second audio data to the accompanying and testing equipment 2 to realize the function similar to a manual mouth. As shown in fig. 6, the test device (such as a computer) sends a first control instruction to the device under test (such as a mobile phone), and sends a second control instruction to the accompanying test device 3 (such as a mobile phone); the second control instruction is used for instructing the accompanying test equipment 3 to send second audio data about conversation to the test equipment; the first control instruction is used for indicating a target test scene of the tested equipment to be a call and indicating the tested equipment to send audio data about the call to the accompanying equipment 3; and receiving first audio data sent by the tested equipment to the accompanying equipment 1 through Bluetooth, and acquiring the first audio data from the accompanying equipment 1 by the testing equipment to realize the function similar to an artificial ear.
Therefore, the open loop test of the media audio detection can be realized, and the closed loop test of the call audio can also be realized. Because the current tested equipment can be used as the accompanying equipment in the next round of test; the current accompanying and testing equipment can be used as the tested equipment of the next round, so that the bidirectional automatic control and detection of the tested equipment and the accompanying and testing equipment can be realized. The tested equipment and the accompanying testing equipment only control, so that the detection and control of the tested equipment are isolated, the expandability of the tested equipment is improved, and the testing equipment (such as a computer) can realize the testing of Bluetooth equipment in different forms.
It should be understood that the application schematics shown in fig. 3-6 are merely illustrative and that various obvious variations and/or substitutions may be made by one skilled in the art based on the examples of fig. 3-6.
Fig. 7 is a schematic structural diagram of a test system 700 according to an embodiment of the present application, and as shown in fig. 7, the test system 700 includes: the test device 701, the tested device 702 and the accompanying test device 703, wherein the test device 701 is in communication connection with the tested device 702 and the accompanying test device 703 in advance; wherein,
the test device 701 is configured to send a first control instruction to the device under test and send a second control instruction to the device under test, where the first control instruction is used to instruct the device under test to communicate with the device under test and the communication content corresponding to the target test through bluetooth; the second control instruction is used for indicating the accompanying and testing equipment to communicate with the tested equipment through Bluetooth;
The tested device 702 is configured to receive a first control instruction from the testing device, perform communication under the target test scene with the accompanying testing device through bluetooth according to the first control instruction, and send communication content corresponding to the target test scene to the accompanying testing device;
the accompanying device 703 is configured to receive a second control instruction from the testing device, communicate with the tested device through bluetooth according to the second control instruction, and output first audio data based on communication content;
the test device 701 is further configured to receive the first audio data output by the accompanying device; and testing the Bluetooth function of the tested equipment based on the first audio data, and generating a test result of the Bluetooth function of the tested equipment.
In the embodiment of the present application, the test device 701 is further configured to: comparing the test result with a reference result, wherein the reference result is a Bluetooth function reference result determined according to a reference standard; and determining whether the Bluetooth function of the tested device meets the reference standard in the target test scene according to the comparison result.
In an embodiment of the present application, the companion device 703 at least includes one of the following:
a programmable control companion test device;
a companion device controlled by a control unit (also called a controller) is required.
In practical applications, the number of the accompanying test devices 703 in the test system 700 may be one or more.
In the test system, the current tested equipment can be used as accompanying test equipment in the next round of test; the current accompanying and testing equipment can be used as the tested equipment of the next round, and the bidirectional automatic control and detection of the tested equipment and the accompanying and testing equipment can be realized.
Taking the test equipment 701 as a PC, the tested equipment 702 as a mobile phone and the accompanying test equipment 703 as Bluetooth equipment as examples, the control of the mobile phone and the Bluetooth equipment is realized by taking the PC as a control center, and meanwhile, the collection and the playing of the audio can be realized by only using simple audio collection and playing peripherals, so that the cost for purchasing special Bluetooth detection equipment can be saved. Not only can carry out audio acquisition aiming at finished earphone, sound box, vehicle-mounted equipment and the like, but also can realize audio acquisition and output of 3.5mm audio output and a PC acquisition hole directly; the method is matched with software to select the sound channel, can realize the audio detection of various Bluetooth devices, is suitable for the compatibility test, the function test, the performance test and the protocol test of batch Bluetooth devices, has simple environment deployment and can be expanded.
According to the test system provided by the embodiment of the application, the test equipment is separated from the tested equipment, and all the detection is carried out at the test equipment end, so that the test system is not only suitable for being used as the tested equipment by a mobile phone, but also can be used as the tested equipment by a Bluetooth earphone or other Bluetooth equipment, and more tests can be realized by only changing the corresponding control and acquisition modes. For example, the Bluetooth low energy audio (BLEAudio) test can be performed, the vehicle-mounted equipment test can be performed, and the control technology can be extended to the fields of Bluetooth mice, keyboard detection and the like.
Fig. 8 is a schematic structural diagram of a test apparatus 800 according to an embodiment of the present application, where the test apparatus 800 is applied to a test device, and the test device pre-establishes communication connection with a device under test and a partner test device, respectively, and the test apparatus 800 includes:
a sending unit 801, configured to send a first control instruction to a device under test, and send a second control instruction to a device under test, where the first control instruction is used to instruct the device under test to perform communication under a target test scenario and communication content corresponding to the target test scenario with the device under test through bluetooth; the second control instruction is used for indicating the accompanying and testing equipment to communicate with the tested equipment through Bluetooth;
a receiving unit 802 for receiving first audio data output by the partner device based on the communication content;
and the testing unit 803 is configured to test the bluetooth function of the device under test based on the first audio data, and generate a test result of the bluetooth function of the device under test.
In an embodiment of the present application, the testing device 800 further includes: a comparison unit (not shown in fig. 8) for comparing the test result with a reference result, which is a reference result of the bluetooth function determined according to the reference standard; a determining unit (not shown in fig. 8) for determining whether the bluetooth function of the tested device meets the reference standard in the target test scenario according to the comparison result.
The test device 800 of the embodiment of the present application can implement the corresponding functions of the test device in the foregoing method embodiment. The flow, function, implementation and beneficial effects corresponding to each module (sub-module, unit or assembly, etc.) in the testing apparatus 800 can be referred to the corresponding description in the above method embodiments, and will not be repeated here. It should be noted that, the functions described in each module (sub-module, unit, or component, etc.) in the test apparatus 800 of the application embodiment may be implemented by different modules (sub-module, unit, or component, etc.), or may be implemented by the same module (sub-module, unit, or component, etc.).
In the embodiment of the present application, each unit of the test device may be implemented in software, or hardware, or a combination of software and hardware. In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The testing device provided by the embodiment of the application can realize open loop testing and closed loop testing, can cover the detection of different types of Bluetooth equipment, and greatly increases the coverage rate of tested equipment. Specifically, the bidirectional automatic control and detection of the tested equipment and the accompanying equipment can be realized; the test equipment end realizes the audio playing and collecting of equipment in different forms, and the accompanying equipment only controls, detects and controls and isolates, thereby increasing the expandability.
Fig. 9 is a schematic structural diagram of an electronic device 900 according to an embodiment of the present application. The electronic device 900 comprises a processor 910 and a memory 920, from which memory 920 the processor 910 may call and run a computer program for causing the electronic device 900 to implement the method according to the embodiments of the application.
Wherein the memory 920 may be a separate device from the processor 910 or may be integrated in the processor 910.
In one embodiment, the electronic device 900 may further include a transceiver 930, and the processor 910 may control the transceiver 930 to communicate with other devices, and in particular, may send information or data to other devices, or receive information or data sent by other devices.
Wherein transceiver 930 may include a transmitter and a receiver. Transceiver 930 may further include antennas, the number of which may be one or more.
In an implementation manner, the electronic device 900 may be an electronic device of an embodiment of the present application, and the electronic device 900 may implement a corresponding flow implemented by the electronic device in each method of the embodiment of the present application, which is not described herein for brevity.
Fig. 10 is a schematic block diagram of a chip 1000 according to an embodiment of the present application. The chip 1000 includes a processor 1010, and the processor 1010 may call and run a computer program from a memory to implement the method in the embodiment of the present application.
In one embodiment, the chip 1000 may also include a memory 1020. Wherein the processor 1010 may call and run a computer program from the memory 1020 to implement the methods performed by the electronic device in embodiments of the present application.
The memory 1020 may be a separate device from the processor 1010 or may be integrated into the processor 1010.
In one embodiment, the chip 1000 may also include an input interface 1030. The processor 1010 may control the input interface 1030 to communicate with other devices or chips, and in particular, may obtain information or data sent by the other devices or chips.
In one embodiment, the chip 1000 may also include an output interface 1040. Wherein the processor 1010 may control the output interface 1040 to communicate with other devices or chips, and in particular, may output information or data to other devices or chips.
In an implementation manner, the chip may be applied to the electronic device in the embodiment of the present application, and the chip may implement a corresponding flow implemented by the electronic device in each method in the embodiment of the present application, which is not described herein for brevity.
The chips applied to the electronic device may be the same chip or different chips.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, or the like.
The processors mentioned above may be general purpose processors, digital signal processors (digital signal processor, DSP), off-the-shelf programmable gate arrays (fieldprogrammable gate array, FPGA), application specific integrated circuits (application specific integrated circuit, ASIC) or other programmable logic devices, transistor logic devices, discrete hardware components, etc. The general-purpose processor mentioned above may be a microprocessor or any conventional processor.
The memory mentioned above may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM).
It should be understood that the above memory is illustrative but not restrictive, and for example, the memory in the embodiments of the present application may be Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), direct RAM (DR RAM), and the like. That is, the memory in embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), or the like.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A test method applied to a test device, wherein the test device establishes communication connection with a tested device and a partner device in advance, respectively, the method comprising:
transmitting a first control instruction to the tested equipment and transmitting a second control instruction to the accompanying equipment, wherein the first control instruction is used for indicating the tested equipment to communicate with the accompanying equipment in a target test scene and the communication content corresponding to the target test scene through Bluetooth; the second control instruction is used for indicating the accompany device to communicate with the tested device through Bluetooth;
Receiving first audio data output by the accompanying device based on the communication content;
and testing the Bluetooth function of the tested equipment based on the first audio data, and generating a test result of the Bluetooth function of the tested equipment.
2. The method according to claim 1, wherein the method further comprises:
comparing the test result with a reference result, wherein the reference result is the reference result of the Bluetooth function determined according to a reference standard;
and determining whether the Bluetooth function of the tested equipment meets the reference standard in the target test scene according to the comparison result.
3. The method of claim 1, wherein the receiving the first audio data output by the companion device based on the communication content comprises:
and responding to the connection of the audio input hole of the test equipment with the loudspeaker and the microphone of the accompanying equipment through a first audio line, and receiving the first audio data output by the accompanying equipment through the first audio line.
4. The method of claim 1, wherein the receiving the first audio data output by the companion device based on the communication content comprises:
And receiving the first audio data output by the accompanying test equipment, which is acquired by the microphone of the test equipment, through a second audio line connected with the microphone of the test equipment in response to the audio input hole of the test equipment not being connected with the speaker and the microphone of the accompanying test equipment through the first audio line.
5. The method as recited in claim 4, further comprising:
and sending second audio data to the loudspeaker of the test equipment through a third audio line connected with the loudspeaker of the test equipment, so that a microphone of the accompanying test equipment collects the second audio data played by the loudspeaker of the test equipment, and sending the second audio data to the tested equipment through Bluetooth by the accompanying test equipment.
6. The method according to any one of claims 1 to 5, wherein the target test scenario comprises at least one of:
media audio playing test;
and (5) testing call audio.
7. A test system, the system comprising: the test equipment is in communication connection with the tested equipment and the accompanying test equipment in advance respectively; wherein,
The test equipment is used for sending a first control instruction to the tested equipment and sending a second control instruction to the accompanying equipment, wherein the first control instruction is used for indicating the tested equipment to communicate with the accompanying equipment under a target test scene through Bluetooth and communication content corresponding to the target test scene; the second control instruction is used for indicating the accompany device to communicate with the tested device through Bluetooth;
the tested equipment is used for receiving the first control instruction from the testing equipment, carrying out communication under a target testing scene with the accompanying equipment through Bluetooth according to the first control instruction, and sending the communication content corresponding to the target testing scene to the accompanying equipment;
the accompanying test equipment is used for receiving the second control instruction from the test equipment, communicating with the tested equipment through Bluetooth according to the second control instruction, and outputting first audio data based on the communication content;
the test equipment is also used for receiving the first audio data output by the accompanying test equipment; and testing the Bluetooth function of the tested equipment based on the first audio data, and generating a test result of the Bluetooth function of the tested equipment.
8. The system of claim 7, wherein the test device is further configured to:
comparing the test result with a reference result, wherein the reference result is the reference result of the Bluetooth function determined according to a reference standard;
and determining whether the Bluetooth function of the tested equipment meets the reference standard in the target test scene according to the comparison result.
9. The system of claim 7, wherein the companion device comprises at least one of:
a programmable control companion test device;
a companion test device controlled by the control unit is required.
10. A test apparatus for use with a test device that establishes a communication connection in advance with a device under test and a partner device, respectively, the apparatus comprising:
the device comprises a sending unit, a target testing device and a partner testing device, wherein the sending unit is used for sending a first control instruction to the tested device and sending a second control instruction to the partner testing device, and the first control instruction is used for indicating the tested device to communicate with the partner testing device under a target testing scene and communication content corresponding to the target testing scene through Bluetooth; the second control instruction is used for indicating the accompany device to communicate with the tested device through Bluetooth;
A receiving unit configured to receive first audio data output by the partner device based on the communication content;
and the testing unit is used for testing the Bluetooth function of the tested equipment based on the first audio data and generating a testing result of the Bluetooth function of the tested equipment.
11. The apparatus of claim 10, wherein the apparatus further comprises:
the comparison unit is used for comparing the test result with a reference result, wherein the reference result is the reference result of the Bluetooth function determined according to a reference standard;
and the determining unit is used for determining whether the Bluetooth function of the tested equipment meets the reference standard under the target test scene according to the comparison result.
12. An electronic device, comprising: a processor and a memory for storing a computer program, the processor for invoking and running the computer program stored in the memory to cause the electronic device to perform the method of any of claims 1 to 6.
13. A chip, comprising: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method of any one of claims 1 to 6.
14. A computer readable storage medium storing a computer program which, when executed by a device, causes the device to perform the method of any one of claims 1 to 6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
CN202310913784.6A 2023-07-24 2023-07-24 Test method, system, device and storage medium Pending CN116709389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310913784.6A CN116709389A (en) 2023-07-24 2023-07-24 Test method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310913784.6A CN116709389A (en) 2023-07-24 2023-07-24 Test method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN116709389A true CN116709389A (en) 2023-09-05

Family

ID=87845392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310913784.6A Pending CN116709389A (en) 2023-07-24 2023-07-24 Test method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN116709389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098106A (en) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098106A (en) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium
CN117098106B (en) * 2023-10-18 2023-12-29 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11985464B2 (en) Wireless audio output devices
US9378723B2 (en) Apparatus and method for acquiring configuration data
CN108184201A (en) audio testing method, audio test system
CN109348504B (en) Power detection method, mobile terminal and power detection circuit
CN104320520A (en) Terminal commissioning method and device
CN116709389A (en) Test method, system, device and storage medium
CN106302997A (en) A kind of output control method, electronic equipment and system
CN103260124A (en) Audio testing method and system of mobile terminal
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN112243182B (en) Pickup circuit, method and device
CN105895133A (en) Audio playing method and device and terminal device
CN105430642A (en) File transmission method and apparatus
CN114501286A (en) Bluetooth connection testing method and device
CN108337715A (en) Wireless network connecting method, device, terminal device and storage medium
JP6262910B1 (en) Call recording system and call recording adapter
US20180254056A1 (en) Sounding device, audio transmission system, and audio analysis method thereof
CN113168302A (en) Audio mode correction method and device and electronic equipment
CN116156390B (en) Audio processing method and electronic equipment
CN112019281B (en) Audio breakthrough performance testing method, device, equipment and storage medium
CN110475175B (en) Method and device for charging wireless earphone
CN113571032A (en) Audio data transmission method and device, computer equipment and storage medium
CN116036591A (en) Sound effect optimization method, device, equipment and storage medium
CN113204390A (en) Configuration management method and device
CN115002637A (en) Earphone testing method and device, electronic equipment and computer readable storage medium
CN111816201A (en) Electronic equipment and voice signal processing 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