CN107197069B - Detection device for ultrasonic transmitter and receiver - Google Patents

Detection device for ultrasonic transmitter and receiver Download PDF

Info

Publication number
CN107197069B
CN107197069B CN201710296128.0A CN201710296128A CN107197069B CN 107197069 B CN107197069 B CN 107197069B CN 201710296128 A CN201710296128 A CN 201710296128A CN 107197069 B CN107197069 B CN 107197069B
Authority
CN
China
Prior art keywords
ultrasonic
sound card
processor
ultrasonic transmitter
electrically connected
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.)
Active
Application number
CN201710296128.0A
Other languages
Chinese (zh)
Other versions
CN107197069A (en
Inventor
王吉同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710296128.0A priority Critical patent/CN107197069B/en
Publication of CN107197069A publication Critical patent/CN107197069A/en
Application granted granted Critical
Publication of CN107197069B publication Critical patent/CN107197069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The present disclosure provides a detection device of an ultrasonic transmitter and a receiver, wherein the detection device of the ultrasonic transmitter includes: the system comprises a processor, a sound card and a first ultrasonic receiver; the processor is electrically connected with the sound card, and the output end of the first ultrasonic receiver is electrically connected with the input end of the sound card; the first ultrasonic receiver receives ultrasonic waves transmitted by an ultrasonic transmitter of the terminal equipment, the sound card performs signal conversion, and the processor judges whether the ultrasonic transmitter of the terminal equipment is qualified or not. The detection of the ultrasonic transmitter of the terminal equipment does not need manual operation, and the signal conversion is also completely realized by the detection device of the ultrasonic transmitter and the detection device of the ultrasonic receiver, so that the detection efficiency is improved.

Description

Detection device for ultrasonic transmitter and receiver
Technical Field
The present disclosure relates to the field of electronic technology, and more particularly, to a detection apparatus for an ultrasonic transmitter and receiver.
Background
With the development of electronic technology, the quality and experience of terminal equipment become more and more important. Before each terminal device leaves a factory, strict testing and inspection are required to ensure the product quality and improve the user experience. In the related art, the terminal device has ultrasonic wave transmitting and receiving functions, and can control the screen to be turned off and on by utilizing the ultrasonic wave transmitting and receiving, and can also realize other functions. However, since the directivity and the frequency of the ultrasonic broadcast are strong, the common audio test scheme cannot test the ultrasonic function of the terminal device.
Disclosure of Invention
The embodiment of the disclosure provides a detection device of an ultrasonic transmitter and an ultrasonic receiver. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a detection apparatus for an ultrasonic transmitter, the apparatus comprising: the system comprises a processor, a sound card and a first ultrasonic receiver;
the processor is electrically connected with the sound card, and the output end of the first ultrasonic receiver is electrically connected with the input end of the sound card;
the first ultrasonic receiver is used for receiving ultrasonic waves transmitted by the ultrasonic transmitter in the transmitting direction of the ultrasonic transmitter of the terminal equipment, converting the received ultrasonic waves into a first electric signal and transmitting the converted first electric signal to the sound card;
the sound card is used for carrying out analog-to-digital conversion on the first electric signal transmitted by the first ultrasonic receiver to generate a first digital signal and transmitting the first digital signal to the processor;
and the processor is used for determining whether the ultrasonic transmitter of the terminal equipment is qualified or not according to the first digital signal transmitted by the sound card.
The first ultrasonic receiver can receive the ultrasonic waves transmitted by the ultrasonic transmitter of the terminal equipment, and then the ultrasonic waves transmitted by the terminal equipment are detected to determine whether the ultrasonic transmitter is qualified or not, manual operation is not needed, signal conversion of the ultrasonic receiver is completely realized by the inside of the detection device of the ultrasonic transmitter, and the detection efficiency is improved.
In one embodiment, the device further comprises a second ultrasonic receiver, an output end of the second ultrasonic receiver is electrically connected with an input end of the sound card;
the second ultrasonic receiver is used for receiving the ultrasonic wave transmitted by the ultrasonic transmitter in the opposite direction of the transmitting direction of the ultrasonic transmitter, converting the received ultrasonic wave into a second electric signal and transmitting the converted second electric signal to the sound card;
the sound card is used for carrying out analog-to-digital conversion on the second electric signal transmitted by the second ultrasonic receiver to generate a second digital signal and transmitting the second digital signal to the processor;
and the processor is used for carrying out difference test on the first digital signal and the second digital signal transmitted by the sound card.
When the ultrasonic transmitter of the terminal equipment transmits ultrasonic waves, some ultrasonic waves may be leaked on the back surface of the ultrasonic transmitter, and normal use can be influenced, so that the transmitting direction of the ultrasonic transmitter and the opposite direction of the transmitting direction are detected, the difference of the ultrasonic waves in the two directions is compared, whether the terminal equipment is qualified or not is determined, the ultrasonic function of the terminal equipment is further detected, and more excellent product quality is ensured.
In one embodiment, the apparatus further comprises: the first output port is electrically connected with the processor;
and the processor is used for sending a control instruction to the terminal equipment through the first output port, and the control instruction is used for instructing the terminal equipment to drive the ultrasonic transmitter of the terminal equipment to transmit ultrasonic waves.
The terminal equipment can store detection data for transmitting ultrasonic waves, and after the detection device of the ultrasonic transmitter sends a control instruction to the terminal equipment, the terminal equipment transmits the ultrasonic waves for detection, so that the detection data does not need to be transmitted between the detection device of the ultrasonic transmitter and the terminal equipment, and the detection efficiency is improved.
In one embodiment, the apparatus further comprises: the second output port is electrically connected with the output end of the sound card;
the processor is used for transmitting the pre-stored detection data to the sound card;
and the sound card is used for carrying out digital-to-analog conversion on the detection data transmitted by the processor and transmitting the converted detection data to the terminal equipment through the second output port so that the terminal equipment can send the detection data through the ultrasonic transmitter.
The detection device of the ultrasonic transmitter transmits detection data to the terminal equipment so that the terminal equipment can transmit ultrasonic waves, the terminal equipment is not required to store the detection data, and the detection data is only used when the ultrasonic function is detected, so that the occupation of the storage space of the terminal equipment can be reduced.
In one embodiment, the apparatus further comprises a bias circuit;
and the bias circuit is used for providing bias voltage when the second output port transmits the detection data to the terminal equipment.
When the ultrasonic transmitter transmits detection data to the terminal equipment, because some terminal equipment interfaces are different, a bias voltage is needed to be added to ensure that the detection data is normally transmitted, and the detection device of the ultrasonic transmitter can detect the terminal equipment with various interface types.
In one embodiment, the device further comprises a power amplifier, wherein the input end of the power amplifier is electrically connected with the output end of the sound card, and the output end of the power amplifier is electrically connected with the second output port;
and the power amplifier is used for carrying out power amplification on the detection data transmitted by the sound card and transmitting the detection data to the terminal equipment through the second output port.
The power amplification is carried out on the detection data, the influence of other sound waves on the detection result can be reduced, and the detection precision is improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a detection apparatus of an ultrasonic receiver, the apparatus including: a processor, a sound card and an input port;
the input port is electrically connected with the input end of the sound card, and the processor is electrically connected with the sound card;
the sound card is used for receiving the electric signals transmitted by the terminal equipment through the input port, performing analog-to-digital conversion on the electric signals to generate digital signals, and transmitting the digital signals to the processor, wherein the electric signals are generated by ultrasonic conversion received by the ultrasonic receiver of the terminal equipment;
and the processor is used for determining whether the ultrasonic receiver of the terminal equipment is qualified or not according to the digital signal transmitted by the sound card.
The detection to ultrasonic receiver, after ultrasonic receiver received the ultrasonic wave, through input port with the detection device of ultrasonic receiver of signal transmission to receiving, guaranteed that the signal does not have the loss in the transmission course, and then confirm whether ultrasonic receiver is qualified, do not need manual operation, improved detection efficiency.
In one embodiment, the apparatus further comprises: the input end of the ultrasonic transmitter is electrically connected with the output end of the sound card;
the processor is used for transmitting the pre-stored detection data to the sound card;
the sound card is used for carrying out analog-to-digital conversion on the detection data transmitted by the processor and then transmitting the detection data to the ultrasonic transmitter;
and the ultrasonic transmitter is used for converting the detection data transmitted by the sound card into ultrasonic waves and then transmitting the ultrasonic waves to the terminal equipment.
The ultrasonic wave received by the ultrasonic receiver can be sent by a detection device of the ultrasonic receiver, so that the ultrasonic wave received by each terminal device is ensured to be the same.
In one embodiment, the device further comprises a power amplifier, wherein the input end of the power amplifier is electrically connected with the output end of the sound card, and the output end of the power amplifier is electrically connected with the input end of the ultrasonic transmitter;
and the power amplifier is used for amplifying the power of the detection data transmitted by the sound card and transmitting the detection data after power amplification to the ultrasonic transmitter.
The power amplification is carried out on the ultrasonic waves sent by the detection device of the ultrasonic receiver before the ultrasonic waves are sent, so that the influence of other sound waves on a detection result is reduced, and the detection precision is improved.
In one embodiment, the device further comprises a filter, an input end of the filter is electrically connected with the input port, and an output end of the filter is electrically connected with an input end of the sound card;
and the filter is used for filtering the electric signal transmitted by the input port and transmitting the filtered electric signal to the sound card.
The electric signal transmitted by the input port is filtered, so that some clutter can be filtered, only the electric signal of ultrasonic conversion transmitted by the terminal equipment is reserved, the influence of the clutter is reduced, and the detection precision is improved.
In one embodiment, the processor is configured to obtain model information of the terminal device, and adjust a parameter of the filter according to a model of the terminal device indicated by the model information, where the model information is used to indicate the model of the terminal device.
For terminal devices of different models, the ultrasonic function may be provided, or only the function of ordinary audio transmission may be provided, and parameters such as the frequency of sound waves are different, so that the parameters of the filter need to be adjusted when detecting terminal devices of different models, so as to meet the requirements of different terminal devices for detecting different sound waves.
According to a third aspect of the embodiments of the present disclosure, there is provided an ultrasonic function detection apparatus,
the ultrasonic function detection device comprises the elements included in the detection device of the ultrasonic transmitter described in the first aspect or any one of the embodiments of the first aspect; meanwhile, the ultrasonic detection device further includes the elements included in the detection device of the ultrasonic receiver described in the second aspect or any one of the embodiments of the second aspect.
The ultrasonic function detection device can detect the ultrasonic transmitter and the ultrasonic receiver because the ultrasonic function detection device comprises the detection device of the ultrasonic transmitter and the detection device of the ultrasonic receiver, and the function is more comprehensive.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a block diagram illustrating an exemplary embodiment of an ultrasonic transmitter detection apparatus;
FIG. 2 is a schematic diagram illustrating operational effects of a test ultrasonic transmitter according to an exemplary embodiment;
FIG. 3 is a block diagram illustrating an exemplary embodiment of an ultrasonic transmitter detection apparatus;
FIG. 4 is a schematic diagram illustrating operational effects of a test ultrasonic transmitter according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating an exemplary embodiment of an ultrasonic transmitter detection apparatus;
FIG. 6 is a block diagram illustrating an exemplary embodiment of an ultrasonic transmitter detection device;
FIG. 7 is a block diagram illustrating an exemplary embodiment of an ultrasonic transmitter detection device;
FIG. 8 is a block diagram illustrating a bias circuit in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating an exemplary embodiment of an ultrasonic transmitter detection device;
FIG. 10 is a block diagram illustrating the structure of a detection device of an ultrasonic receiver according to an exemplary embodiment;
FIG. 11 is a block diagram illustrating the structure of a detection device of an ultrasonic receiver in accordance with an exemplary embodiment;
FIG. 12 is a block diagram illustrating the structure of a detection device of an ultrasonic receiver according to an exemplary embodiment;
FIG. 13 is a block diagram illustrating the structure of a detection device of an ultrasonic receiver in accordance with an exemplary embodiment;
fig. 14 is a block diagram illustrating a structure of an ultrasonic function detection apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure is used for realizing automatic detection of the ultrasonic function of the terminal equipment, and comprises an ultrasonic transmitter and an ultrasonic receiver for detecting the terminal equipment. Detection device of an ultrasonic transmitter, comprising: the system comprises a processor, a sound card and a first ultrasonic receiver; the processor is electrically connected with the sound card, and the output end of the first ultrasonic receiver is electrically connected with the input end of the sound card; the first ultrasonic receiver receives ultrasonic waves transmitted by an ultrasonic transmitter of the terminal equipment, the sound card performs signal conversion, and the processor judges whether the ultrasonic transmitter of the terminal equipment is qualified or not. The detection device of the ultrasonic receiver comprises: a processor, a sound card and an input port; the input port is electrically connected with the input end of the sound card, and the processor is electrically connected with the sound card; the sound card receives the electric signal transmitted by the terminal equipment through the input port, and the processor determines whether the ultrasonic receiver of the terminal equipment is qualified or not after the electric signal is subjected to signal conversion. The detection of the ultrasonic transmitter and the ultrasonic receiver of the terminal equipment does not need manual operation, and the signal conversion is also completely realized by the detection device of the ultrasonic transmitter and the detection device of the ultrasonic receiver, so that the detection efficiency is improved.
Fig. 1 is a block diagram illustrating a structure of a detecting apparatus of an ultrasonic transmitter according to an exemplary embodiment, and as shown in fig. 1, the detecting apparatus 10 of the ultrasonic transmitter includes: a processor 101, a sound card 102, a first ultrasonic receiver 103; the processor 101 is electrically connected with the sound card 102, and the output end of the first ultrasonic receiver 103 is electrically connected with the input end of the sound card 102;
the first ultrasonic receiver 103 is configured to receive an ultrasonic wave transmitted by an ultrasonic transmitter of the terminal device in a transmission direction of the ultrasonic transmitter, convert the received ultrasonic wave into a first electrical signal, and transmit the converted first electrical signal to the sound card 102;
the sound card 102 is configured to perform analog-to-digital conversion on the first electrical signal transmitted by the first ultrasonic receiver 103 to generate a first digital signal, and transmit the first digital signal to the processor 101;
and the processor 101 is used for determining whether the ultrasonic transmitter of the terminal equipment is qualified according to the first digital signal transmitted by the sound card 102.
As shown in fig. 2, fig. 2 is a schematic diagram illustrating an operation effect of an ultrasonic transmitter for detection according to an exemplary embodiment, in fig. 2, taking a terminal device as a smart phone as an example, the terminal device in the present disclosure represents a device to be detected or detected, the ultrasonic transmitter may be a receiver on the top of the smart phone, or the ultrasonic transmitter may be below a front cover of the smart phone, and does not need to be provided with a hole, and the ultrasonic transmitter may also transmit ultrasonic waves through the front cover. The first ultrasonic receiver 103 may receive an ultrasonic wave transmitted by an ultrasonic transmitter of the terminal device, convert the ultrasonic wave into a first electrical signal, where the first electrical signal is an analog signal, the sound card 102 performs analog-to-digital conversion on the first electrical signal to generate a first digital signal, and the processor 101 determines whether the ultrasonic transmitter is qualified according to the first digital signal. Optionally, the processor 101 may detect at least one of a frequency response and a harmonic distortion of the first digital signal to determine whether the ultrasonic transmitter of the terminal device is qualified. The signal conversion is completely realized by the inside of the detection device 10 of the ultrasonic transmitter without manual operation, thereby improving the detection efficiency.
In one embodiment, as shown in fig. 3, fig. 3 is a block diagram illustrating a structure of a detection apparatus 10 of an ultrasonic transmitter according to an exemplary embodiment, the apparatus 10 further includes a second ultrasonic receiver 104, an output terminal of the second ultrasonic receiver 104 is electrically connected to an input terminal of the sound card 102;
a second ultrasonic receiver 104, configured to receive the ultrasonic wave transmitted by the ultrasonic transmitter in a direction opposite to the transmitting direction of the ultrasonic transmitter, convert the received ultrasonic wave into a second electrical signal, and transmit the converted second electrical signal to the sound card 102;
the sound card 102 is configured to perform analog-to-digital conversion on the second electrical signal transmitted by the second ultrasonic receiver 104 to generate a second digital signal, and transmit the second digital signal to the processor 101;
and the processor 101 is configured to perform a difference test on the first digital signal and the second digital signal transmitted by the sound card 102.
Because the ultrasonic transmitter of the terminal device may leak from the housing of the terminal device when transmitting ultrasonic waves, and normal use may be affected, it is necessary to detect the transmitting direction of the ultrasonic transmitter of the terminal device and the opposite directions of the transmitting direction, and the difference between the ultrasonic waves in the two directions, compare the difference between the ultrasonic waves in the two directions, and determine whether the terminal device is qualified. As shown in fig. 4, fig. 4 is a schematic diagram illustrating the operational effect of a detecting ultrasonic transmitter according to an exemplary embodiment. Fig. 4 illustrates an example in which the terminal device is a smart phone, the outward direction of the front of the smart phone is the transmitting direction of the ultrasonic transmitter, the outward direction of the back of the smart phone is the opposite direction of the transmitting direction of the ultrasonic transmitter, ultrasonic waves emitted from the two directions are transmitted to the detecting device 10 of the ultrasonic transmitter through the first ultrasonic receiver 103 and the second ultrasonic receiver 104, and after analog-to-digital conversion by the sound card 102, the first digital signal and the second digital signal are transmitted to the processor 101, and the processor 101 performs difference test. Optionally, if a difference between Sound Pressure Levels (SPLs) of the first digital signal and the second digital signal is greater than or equal to a preset threshold, it may be determined that the terminal device is qualified. The preset threshold may be set according to specific situations, for example, the preset threshold may be 20 decibels (dB), and if the requirement for the product quality is higher, a higher threshold may also be set, for example, 30 dB, and the like, which is not limited by the present disclosure. The ultrasonic waves are respectively received on the upper surface and the lower surface of the terminal equipment, the ultrasonic function of the terminal equipment is further detected, and the better product quality is ensured.
In one embodiment, as shown in fig. 5, fig. 5 is a block diagram illustrating a structure of a detection apparatus 10 of an ultrasonic transmitter according to an exemplary embodiment, the apparatus 10 further includes: a first output port 105, the first output port 105 being electrically connected to the processor 101;
and the processor 101 is used for sending a control instruction to the terminal equipment through the first output port 105, wherein the control instruction is used for instructing the terminal equipment to drive the ultrasonic transmitter of the terminal equipment to transmit ultrasonic waves.
The first output port 105 may be a Universal Serial Bus (USB) interface, the terminal device may store detection data for transmitting ultrasonic waves, and after the detection device 10 of the ultrasonic transmitter sends a control instruction to the terminal device, the terminal device transmits the ultrasonic waves for detection, which does not require transmission of the detection data between the detection device 10 of the ultrasonic transmitter and the terminal device, thereby improving detection efficiency.
In one embodiment, as shown in fig. 6, fig. 6 is a block diagram illustrating a structure of a detection apparatus 10 of an ultrasonic transmitter according to an exemplary embodiment, the apparatus 10 further includes: a second output port 106, the second output port 106 being electrically connected to an output terminal of the sound card 102;
a processor 101 for transmitting pre-stored detection data to the sound card 102;
and the sound card 102 is configured to perform digital-to-analog conversion on the detection data transmitted by the processor 101, and transmit the converted detection data to the terminal device through the second output port 106, so that the terminal device sends the detection data through the ultrasonic transmitter.
The second output port 106 may be an audio interface, and the detecting device 10 of the ultrasonic transmitter transmits the detection data to the terminal device so that the terminal device transmits the ultrasonic waves, and the terminal device does not need to store the detection data, but the detection data is only used when the ultrasonic function is detected, so that the occupation of the storage space of the terminal device can be reduced.
It should be noted that the first output port 105 and the second output port 106 may be one port or two separate ports in hardware implementation, which is not limited in this disclosure.
In one embodiment, as shown in fig. 7, fig. 7 is a block diagram illustrating a structure of a detection apparatus 10 of an ultrasonic transmitter according to an exemplary embodiment, the apparatus 10 further includes a bias circuit 107;
a bias circuit 107 for providing a bias voltage when the second output port 106 transmits the detection data to the terminal device.
The structure of the bias circuit 107 can be as shown in fig. 8, the left side of the bias circuit 107 is connected to the output end of the sound card 102, and the right side is connected to the second output port 106, the capacitor in fig. 8 can be a non-polar capacitor, and the capacitance value can be 10 uF; the resistance of the resistor in fig. 8 may be 2.2 KHz. When the ultrasonic transmitter transmits detection data to the terminal equipment, because some terminal equipment interfaces are different, a bias voltage is needed to ensure normal transmission of the detection data, and the detection device 10 of the ultrasonic transmitter can detect the terminal equipment with various interface types.
In one embodiment, as shown in fig. 9, fig. 9 is a block diagram of a detection apparatus 10 of an ultrasonic transmitter according to an exemplary embodiment, the apparatus 10 further includes a power amplifier 108, an input terminal of the power amplifier 108 is electrically connected to an output terminal of the sound card 102, and an output terminal of the power amplifier 108 is electrically connected to the second output port 106;
and the power amplifier 108 is used for performing power amplification on the detection data transmitted by the sound card 102 and transmitting the detection data to the terminal equipment through the second output port 106.
The power amplification is carried out on the detection data, the influence of other sound waves on the detection result can be reduced, and the detection precision is improved.
The embodiments of fig. 1-9 illustrate how to test the ultrasonic transmitter of the terminal device, and the following embodiments illustrate how to test the ultrasonic receiver of the terminal device.
Fig. 10 is a block diagram illustrating a structure of a detecting apparatus of an ultrasonic receiver according to an exemplary embodiment, and as shown in fig. 10, the apparatus 20 includes: a processor 201, a sound card 202 and an input port 203;
the input port 203 is electrically connected with the input end of the sound card 202, and the processor 201 is electrically connected with the sound card 202;
a sound card 202, configured to receive an electrical signal transmitted by the terminal device through an input port 203, perform analog-to-digital conversion on the electrical signal to generate a digital signal, and transmit the digital signal to the processor 201, where the electrical signal is generated by ultrasonic conversion received by an ultrasonic receiver of the terminal device;
and the processor 201 is used for determining whether the ultrasonic receiver of the terminal equipment is qualified according to the digital signal transmitted by the sound card 202.
For the detection of the ultrasonic receiver, after the ultrasonic receiver receives the ultrasonic wave, the received signal is transmitted to the detection device 20 of the ultrasonic receiver through the input port 203, so that no loss of the signal is ensured in the transmission process, and further whether the ultrasonic receiver is qualified is determined, no manual operation is needed, and the detection efficiency is improved.
In one embodiment, as shown in fig. 11, fig. 11 is a block diagram illustrating a structure of a detection apparatus 20 of an ultrasonic receiver according to an exemplary embodiment, where the apparatus 20 further includes: the input end of the ultrasonic transmitter 204 is electrically connected with the output end of the sound card 202;
a processor 201 for transmitting pre-stored detection data to the sound card 202;
the sound card 202 is used for performing analog-to-digital conversion on the detection data transmitted by the processor 201 and then transmitting the detection data to the ultrasonic transmitter 204;
and an ultrasonic transmitter 204, configured to convert the detection data transmitted by the sound card 202 into ultrasonic waves and send the ultrasonic waves to the terminal device.
The ultrasonic wave received by the ultrasonic receiver can be sent by the detection device 20 of the ultrasonic receiver, and it is ensured that the ultrasonic wave received by each terminal device is the same.
In one embodiment, as shown in fig. 12, fig. 12 is a block diagram illustrating a structure of a detection apparatus 20 of an ultrasonic receiver according to an exemplary embodiment, the apparatus 20 further includes a power amplifier 205, an input terminal of the power amplifier 205 is electrically connected to an output terminal of the sound card 202, and an output terminal of the power amplifier 205 is electrically connected to an input terminal of the ultrasonic transmitter 204;
and the power amplifier 205 is configured to power-amplify the detection data transmitted by the sound card 202 and transmit the power-amplified detection data to the ultrasonic transmitter 204.
The ultrasonic waves emitted by the detection device 20 of the ultrasonic receiver are amplified in power before being emitted, so that the influence of other sound waves on a detection result is reduced, and the detection precision is improved.
In one embodiment, as shown in fig. 13, fig. 13 is a block diagram illustrating a structure of a detection apparatus 20 of an ultrasonic receiver according to an exemplary embodiment, the apparatus 20 further includes a filter 206, an input terminal of the filter 206 is electrically connected to the input port 203, and an output terminal of the filter 206 is electrically connected to an input terminal of the sound card 202;
and a filter 206 for filtering the electric signal transmitted from the input port 203 and transmitting the filtered electric signal to the sound card 202.
The electric signals transmitted by the input port 203 are filtered, so that some clutter can be filtered, only the electric signals converted by the ultrasonic waves transmitted by the terminal equipment are reserved, the influence of the clutter is reduced, and the detection precision is improved.
In one embodiment, the processor 201 is configured to obtain model information of the terminal device, and adjust the parameter of the filter 206 according to the model of the terminal device indicated by the model information, where the model information is used to indicate the model of the terminal device.
For terminal devices of different models, the device may have an ultrasonic function or may only have a function of ordinary audio transmission, and parameters such as the frequency of sound waves are different, so that the parameters of the filter 206 need to be adjusted when detecting terminal devices of different models, so as to meet the requirements of different terminal devices for detecting different sound waves. In an embodiment, taking the terminal device as a smart phone as an example, the model of the smart phone may be determined according to at least one of an Identity of the Central Processing Unit 201 (CPU-ID), a Serial Number (Serial Number), an International Mobile Equipment Identity (IMEI), and a Mobile Equipment Identity (MEID) of the smart phone. The CPU ID may contain information about the central processing unit 201(CPU) of the smartphone, such as model, family, cache size, clock, manufacturer, etc.
Based on the embodiments corresponding to fig. 1 to 13, the embodiment of the present disclosure provides an ultrasonic function detection apparatus 30, where the apparatus 30 can implement the detection functions of the detection apparatus of the ultrasonic transmitter and the detection apparatus of the ultrasonic receiver described in the embodiments corresponding to fig. 1 to 13. The ultrasonic testing device comprises the elements included in the testing device of the ultrasonic transmitter described in any one of the embodiments corresponding to fig. 1-9; meanwhile, the ultrasonic testing device further includes the components included in the testing device of the ultrasonic receiver described in any one of the embodiments corresponding to fig. 10 to 14.
Fig. 14 is a block diagram illustrating a structure of an ultrasonic function detection apparatus 30 according to an exemplary embodiment. As shown in fig. 14, the ultrasonic function detecting device 30 may include: a processor 301, a sound card 302, a first ultrasonic receiver 303, a second ultrasonic receiver 304, a first output port 305, a second output port 306, a bias circuit 307, a power amplifier 308, an input port 309, an ultrasonic transmitter 310, a filter 311.
As shown in fig. 14, the processor 301 is electrically connected to the input terminal of the sound card 302 and the first output port 305; the output end of the sound card 302 is electrically connected with the processor 301, the power amplifier 308, the first ultrasonic receiver 303 and the second ultrasonic receiver 304; the output end of the power amplifier 308 is electrically connected with the input ends of the ultrasonic transmitter 310 and the bias circuit 307 respectively; the output terminal of the bias circuit 307 is electrically connected to the second output port 306.
Wherein, the functions implemented by each element described in the embodiment corresponding to fig. 14 are the same as those implemented by each element corresponding to fig. 1 to fig. 13:
specifically, the processor 301 is configured to implement the functions implemented by the processor 101 and the processor 201;
the sound card 302 is used for implementing the functions implemented by the sound card 102 and the sound card 202;
the first ultrasonic receiver 303 is used to implement the function implemented by the first ultrasonic receiver 103;
the second ultrasonic receiver 304 is used for realizing the functions realized by the second ultrasonic receiver 104;
the first output port 305 is used to implement the function implemented by the first output port 105;
the second output port 306 is used to implement the function implemented by the second output port 106;
the bias circuit 307 is used for realizing the function realized by the bias circuit 107;
the power amplifier 308 is used for realizing the functions realized by the power amplifier 108 and the power amplifier 205;
input port 309 is used to implement the functionality implemented by input port 203;
the ultrasonic transmitter 310 is used to implement the functions implemented by the ultrasonic transmitter 204;
the filter 311 is used to implement the functions implemented by the filter 206.
The ultrasonic function detection device provided by the embodiment of the disclosure can detect the ultrasonic transmitter and the ultrasonic receiver of the terminal device without manual operation, and the signal conversion is also completely realized by the detection device of the ultrasonic transmitter and the detection device of the ultrasonic receiver, so that the detection efficiency is improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. An ultrasonic transmitter testing apparatus, comprising: the device comprises a processor, a sound card, a first ultrasonic receiver and a second ultrasonic receiver;
the processor is electrically connected with the sound card, the output end of the first ultrasonic receiver is electrically connected with the input end of the sound card, and the output end of the second ultrasonic receiver is electrically connected with the input end of the sound card;
the first ultrasonic receiver is used for receiving the ultrasonic wave transmitted by the ultrasonic transmitter in the transmitting direction of the ultrasonic transmitter of the terminal equipment, converting the received ultrasonic wave into a first electric signal and transmitting the converted first electric signal to the sound card;
the sound card is used for performing analog-to-digital conversion on the first electric signal transmitted by the first ultrasonic receiver to generate a first digital signal and transmitting the first digital signal to the processor;
the second ultrasonic receiver is used for receiving the ultrasonic wave transmitted by the ultrasonic transmitter in the reverse direction of the transmitting direction of the ultrasonic transmitter, converting the received ultrasonic wave into a second electric signal and transmitting the converted second electric signal to the sound card;
the sound card is used for performing analog-to-digital conversion on the second electric signal transmitted by the second ultrasonic receiver to generate a second digital signal and transmitting the second digital signal to the processor;
the processor is used for determining whether an ultrasonic transmitter of the terminal equipment is qualified or not according to the first digital signal transmitted by the sound card;
the processor is configured to perform a difference test on the first digital signal and the second digital signal transmitted by the sound card.
2. The apparatus of claim 1, further comprising: a first output port electrically connected to the processor;
the processor is configured to send a control instruction to the terminal device through the first output port, where the control instruction is used to instruct the terminal device to drive an ultrasonic transmitter of the terminal device to transmit ultrasonic waves.
3. The apparatus of claim 1, further comprising: the second output port is electrically connected with the output end of the sound card;
the processor is used for transmitting the pre-stored detection data to the sound card;
the sound card is configured to perform digital-to-analog conversion on the detection data transmitted by the processor, and transmit the converted detection data to the terminal device through the second output port, so that the terminal device sends the detection data through the ultrasonic transmitter.
4. The apparatus of claim 3, further comprising a bias circuit connected between the sound card and the second output port;
the bias circuit is used for providing bias voltage when the second output port transmits the detection data to the terminal equipment.
5. The apparatus of claim 3, further comprising a power amplifier, an input of the power amplifier being electrically connected to an output of the sound card, an output of the power amplifier being electrically connected to the second output port;
and the power amplifier is used for performing power amplification on the detection data transmitted by the sound card and transmitting the detection data to the terminal equipment through the second output port.
6. An apparatus for testing an ultrasonic receiver, the apparatus comprising: the device comprises a processor, a sound card, an input port, an ultrasonic transmitter and a power amplifier;
the input port is electrically connected with the input end of the sound card, the processor is electrically connected with the sound card, the input end of the power amplifier is electrically connected with the output end of the sound card, the output end of the power amplifier is electrically connected with the input end of the ultrasonic transmitter, and the input end of the ultrasonic transmitter is electrically connected with the output end of the sound card;
the processor is used for transmitting pre-stored detection data to the sound card;
the sound card is used for performing analog-to-digital conversion on the detection data transmitted by the processor and then transmitting the detection data to the power amplifier;
the power amplifier is used for amplifying the power of the detection data transmitted by the sound card and transmitting the detection data after power amplification to the ultrasonic transmitter;
the ultrasonic transmitter is used for converting the detection data transmitted by the power amplifier into ultrasonic waves and then transmitting the ultrasonic waves to the terminal equipment;
the sound card is used for receiving an electric signal transmitted by the terminal equipment through the input port, performing analog-to-digital conversion on the electric signal to generate a digital signal, and transmitting the digital signal to the processor, wherein the electric signal is generated by ultrasonic conversion received by an ultrasonic receiver of the terminal equipment;
and the processor is used for determining whether the ultrasonic receiver of the terminal equipment is qualified or not according to the digital signal transmitted by the sound card.
7. The apparatus of claim 6, further comprising a filter, an input of the filter being electrically connected to the input port, an output of the filter being electrically connected to an input of the sound card;
the filter is configured to filter the electrical signal transmitted by the input port, and transmit the filtered electrical signal to the sound card.
8. The apparatus of claim 7,
the processor is configured to acquire model information of the terminal device, and adjust a parameter of the filter according to the model of the terminal device indicated by the model information, where the model information is used to indicate the model of the terminal device.
9. An ultrasonic function detection device is characterized in that,
the ultrasonic function testing device comprises the elements contained in the testing device of the ultrasonic transmitter of any one of claims 1-5; meanwhile, the ultrasonic testing device further comprises the elements included in the testing device of the ultrasonic receiver according to any one of claims 6 to 8.
CN201710296128.0A 2017-04-28 2017-04-28 Detection device for ultrasonic transmitter and receiver Active CN107197069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710296128.0A CN107197069B (en) 2017-04-28 2017-04-28 Detection device for ultrasonic transmitter and receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710296128.0A CN107197069B (en) 2017-04-28 2017-04-28 Detection device for ultrasonic transmitter and receiver

Publications (2)

Publication Number Publication Date
CN107197069A CN107197069A (en) 2017-09-22
CN107197069B true CN107197069B (en) 2020-06-02

Family

ID=59873403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710296128.0A Active CN107197069B (en) 2017-04-28 2017-04-28 Detection device for ultrasonic transmitter and receiver

Country Status (1)

Country Link
CN (1) CN107197069B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092726A (en) * 2017-11-30 2018-05-29 努比亚技术有限公司 Instrument test method, mobile terminal and computer readable storage medium
CN111398970B (en) * 2018-12-28 2022-04-22 北京小米移动软件有限公司 Event detection method, distance sensor and terminal
CN111769885B (en) * 2020-06-29 2022-02-11 北京小米移动软件有限公司 Ultrasonic data transmission method, device, system, terminal equipment and medium
CN112530154B (en) 2020-11-13 2022-07-01 北京小米移动软件有限公司 Information transmission method, information transmission device, and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202798867U (en) * 2012-08-24 2013-03-13 武汉易思达科技有限公司 Automatic detection device of mobile communication terminal
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140112102A1 (en) * 2012-10-18 2014-04-24 Symbol Technologies, Inc. Intentional aliasing of ultrasound to downconvert to audio tones

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202798867U (en) * 2012-08-24 2013-03-13 武汉易思达科技有限公司 Automatic detection device of mobile communication terminal
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN107197069A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107197069B (en) Detection device for ultrasonic transmitter and receiver
US9100757B2 (en) Headset impedance detection
KR101646964B1 (en) Circuit apparatus and method for recognition earphone in electronic device
CN108184201A (en) audio testing method, audio test system
CN109348504B (en) Power detection method, mobile terminal and power detection circuit
US20170223449A1 (en) Electronic device, earphone, and electronic device system
US9549248B2 (en) Method and apparatus for reducing crosstalk in an integrated headset
CN105721980A (en) Audio differential signal implementation method
KR20190046184A (en) Electronic device including a plurality of antennas and method of operating the same
CN104243652A (en) Audio self-test method of communication terminals
CN105338448A (en) Sound control method and device
US10014842B2 (en) Method and apparatus for identifying audio accessory through two pin connection in a two way radio
US9848270B2 (en) Electronic device, earphone, and electronic device system
KR101568301B1 (en) Method and apparatus for improving audio channel cross talk in portable terminal
US10084554B2 (en) System and method for testing a radio frequency transceiver by controlling test flow via an induced interrupt
EP3664469B1 (en) Microphone, electronic apparatus including microphone and method for controlling electronic apparatus
KR20190045506A (en) Method for processing audio signal and electronic device for supporting the same
KR20200044569A (en) Electronic device for preventing communication deterioration and method for controlling thereof
CN105635925A (en) Mobile terminal audio test method, system and audio test interface adapter
US20200319843A1 (en) Reconfigurable microphone assembly
EP3690633B1 (en) Signal transmission circuit, signal transmission method and intelligent terminal
KR20190043053A (en) Method for detecting error of microphone based on audio signal loudness acquired through microphone and electronic device thereof
KR20190063659A (en) Method for processing a audio signal based on a resolution set up according to a volume of the audio signal and electronic device thereof
US20150215697A1 (en) Device for transmitting audio signals and electronic signature token
US20150208164A1 (en) Downlink transmission device for audio signals and electronic signature token

Legal Events

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