CN113016192A - Plug detection device, audio processing equipment, audio processing system and plug detection method - Google Patents

Plug detection device, audio processing equipment, audio processing system and plug detection method Download PDF

Info

Publication number
CN113016192A
CN113016192A CN202080006074.XA CN202080006074A CN113016192A CN 113016192 A CN113016192 A CN 113016192A CN 202080006074 A CN202080006074 A CN 202080006074A CN 113016192 A CN113016192 A CN 113016192A
Authority
CN
China
Prior art keywords
plug
contact terminal
audio
microphone
contact
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
CN202080006074.XA
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.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI Technology 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 SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Publication of CN113016192A publication Critical patent/CN113016192A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/08Mouthpieces; Microphones; Attachments therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints
    • G01R31/68Testing of releasable connections, e.g. of terminals mounted on a printed circuit board
    • G01R31/69Testing of releasable connections, e.g. of terminals mounted on a printed circuit board of terminals at the end of a cable or a wire harness; of plugs; of sockets, e.g. wall sockets or power sockets in appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • General Physics & Mathematics (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

A plug detection device (10), an audio processing apparatus (100), an audio processing system (1000), and a plug detection method. The plug detection device (10) comprises a detection module (12) and a plurality of contact terminals (11). The detection module (12) applies detection voltage to the contact terminal (11) and detects the electrical parameter of the contact terminal; acquiring audio signal parameters of an audio signal; the signal type of the plug portion (211) is determined based on the electrical parameter and the audio signal parameter.

Description

Plug detection device, audio processing equipment, audio processing system and plug detection method
Technical Field
The present application relates to the field of audio device technologies, and in particular, to a plug detection device, an audio processing system, and a plug detection method.
Background
The plug of audio equipment such as earphone, microphone and the interface of the equipment (like cell-phone, computer, cloud platform, movable platform etc.) that utilizes audio equipment to broadcast and record generally are the adaptation, for example syllogic plug adaptation syllogic interface, four-segment plug adaptation four-segment interface, at present, the equipment of broadcast and recording is the type of unable discernment and adaptation headphone plug, insert the syllogic interface with the syllogic plug, the plug type of general audio equipment can't be discerned and detected and the adaptation, lead to the unable normal work of audio equipment, the adaptation of four-segment plug and syllogic interface just can be realized to the suitable adapter of people selection this moment.
Disclosure of Invention
The embodiment of the application provides a plug detection device, an audio processing system and a plug detection method.
The embodiment of the application provides a plug detection device, and the plug detection device includes: a detection module and a plurality of contact terminals; the plurality of contact terminals are arranged in the interface, the interface is used for accommodating a plug of the audio equipment, and when the plug is plugged into the interface, the plurality of contact terminals are respectively contacted with different plug parts which are arranged along the axial direction of the plug; the detection module is used for applying detection voltage to the contact terminal and detecting the electrical parameter of the contact terminal; acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal, and acquiring an audio signal parameter of the audio signal; and determining the signal type of the plug part according to the electrical parameter and the audio signal parameter.
The embodiment of the application provides audio processing equipment which comprises a bearing device and a plug detection device. The bearing device is provided with an interface which is used for accommodating a plug of the audio equipment; a plurality of contact terminals of the plug detection device are disposed within the interface. The plug detection device includes: a detection module and a plurality of contact terminals; the plurality of contact terminals are arranged in the interface, the interface is used for accommodating a plug of the audio equipment, and when the plug is plugged into the interface, the plurality of contact terminals are respectively contacted with different plug parts which are arranged along the axial direction of the plug; the detection module is used for applying detection voltage to the contact terminal and detecting the electrical parameter of the contact terminal; acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal, and acquiring an audio signal parameter of the audio signal; and determining the signal type of the plug part according to the electrical parameter and the audio signal parameter.
The embodiment of the application also provides an audio processing system, audio processing system audio equipment and audio processing equipment, wherein the audio processing equipment comprises a bearing device and a plug detection device. The bearing device is provided with an interface which is used for accommodating a plug of the audio equipment; a plurality of contact terminals of the plug detection device are disposed within the interface. The plug detection device includes: a detection module and a plurality of contact terminals; the plurality of contact terminals are arranged in the interface, the interface is used for accommodating a plug of the audio equipment, and when the plug is plugged into the interface, the plurality of contact terminals are respectively contacted with different plug parts which are arranged along the axial direction of the plug; the detection module is used for applying detection voltage to the contact terminal and detecting the electrical parameter of the contact terminal; acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal, and acquiring an audio signal parameter of the audio signal; and determining the signal type of the plug part according to the electrical parameter and the audio signal parameter.
The embodiment of the application also provides a plug detection method, which is used for a plug detection device, wherein the plug detection device comprises a plurality of contact terminals, the contact terminals are arranged in an interface, the interface is used for accommodating a plug of audio equipment, and when the plug is plugged into the interface, the contact terminals are respectively contacted with different plug parts which are arranged along the axial direction of the plug; the plug detection method comprises the following steps: applying a detection voltage to the contact terminal and detecting an electrical parameter of the contact terminal; acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal, and acquiring an audio signal parameter of the audio signal; and determining the signal type of the plug part according to the electrical parameter and the audio signal parameter. In addition, because the plug detection device is provided with a plurality of contact terminals which are respectively contacted with different plug parts arranged along the axial direction of the plug, the on-off of the connection between the corresponding contact terminals and the plug parts is selectively controlled, and the multiple audio equipment with different types of plugs can be adapted to one interface without using an adapter.
In the plug detection device, the audio processing system and the plug detection method according to the embodiments of the present application, according to the difference of impedance characteristics of different plug portions of a plug of an audio device contacted by a contact terminal, electrical parameters of the contact terminal are also different, and an audio signal parameter capable of representing whether the plug portion is a normal audio device or not is used to determine a signal type together, and the signal type can represent a functional type of the plug portion, thereby determining the type of the audio device. In addition, because the plug detection device is provided with a plurality of contact terminals which are respectively contacted with different plug parts arranged along the axial direction of the plug, the on-off of the connection between the corresponding contact terminals and the plug parts is selectively controlled, and the multiple audio equipment with different types of plugs can be adapted to one interface without using an adapter.
Additional aspects and advantages of embodiments of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of embodiments of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a block diagram of an audio processing system according to some embodiments of the present application.
Fig. 2 is a schematic structural diagram of a plug detection device according to some embodiments of the present application.
Fig. 3 is a schematic diagram of a combination of a plug and an interface according to some embodiments of the present application.
Fig. 4-18 are schematic flow charts of plug detection methods according to some embodiments of the present disclosure.
Fig. 19 is a schematic structural diagram of a plug detection device according to some embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
The specifications of plugs of audio devices (such as earphones, microphones and the like) are different, firstly, the sizes (generally, the lengths of the plugs) of the audio devices are different, at present, the plugs of the audio devices (such as earphones, microphones and the like) commonly on the market are generally 3.5 millimeters (mm), however, on some audio devices with older models or audio devices used on devices in some unconventional fields, plugs with types of 2.5mm, 6.35mm and the like are still possible; secondly, the number of segments of the plug of the audio device is also different, and there are two, three or four segments of plugs, the audio device of the common monaural is a two-segment plug, the audio device of the stereo (including the left and right channels) is a three-segment plug, further, the audio device of the stereo with the microphone function is a four-segment structure, and the difference of the number of segments also causes the difference of the size of the above-mentioned plugs.
And can play the audio processing equipment (such as cell-phone, computer, cloud platform, movable platform etc. but this application embodiment uses the cloud platform as an example) such as recording and generally only be provided with an interface, and the interface only adapts the plug of a type (two segmentations, syllogic, four segmentations etc.), like the syllogic plug of cloud platform adaptation 3.5mm, if insert the audio equipment that has 2.5 mm's two-segmentations plug or 6.35 mm's four segmentations plug on these cloud platforms, the cloud platform can't accurately discern and adapt these audio equipment, but need the artificial adapter of selecting two segmentations plug to syllogic plug, or the adapter of four segmentations plug to syllogic plug, just can realize the adaptation of two segmentations plug and four segmentations plug and cloud platform.
Referring to fig. 1, the present application provides an audio processing system 1000, the audio processing system 1000 includes an audio device 200 and an audio processing device 100, and a plug 210 of the audio device 200 is detachably plugged into an interface 21 of the audio processing device 100.
Referring to fig. 1 and fig. 2, the present application provides an audio processing apparatus 100, where the audio processing apparatus 100 includes a carrier device 20 and a plug detection device 10. The carrier 20 is formed with an interface 21, the interface 21 being for receiving a plug 210 of the audio device 200; the plurality of contact terminals 11 of the plug detection device 10 are provided in the interface 21. The audio processing device 100 includes any one of an imaging device, a pan-tilt head, and a movable platform (e.g., a drone).
In the embodiment of the present application, the audio processing apparatus 100 is a pan/tilt head. The cradle head is used for installing a terminal (such as a mobile phone), the mobile phone can be connected with the cradle head, the mobile phone can play audio and transmit audio signals to the cradle head, and the cradle head transmits the audio signals to audio equipment (such as an earphone) through a plug 210 inserted in the interface 21, so that audio playing is realized; alternatively, the audio device 200 may record, and the recording signal is transmitted to the cradle head through the connection between the plug 210 and the interface 21, and then transmitted to the mobile phone by the cradle head. Of course, the cradle head can also have an audio playing function and a recording function, and audio playing and recording are achieved without the help of a mobile phone.
Referring to fig. 1 to 4, the present application provides a plug detection method for a plug detection device 10, where the plug detection device 10 includes a plurality of contact terminals 11, the contact terminals 11 are disposed in an interface 21, the interface 21 is used for accommodating a plug 210 of an audio device 200, and when the plug 210 is plugged into the interface 21, the contact terminals 11 are respectively contacted with different plug portions 211 arranged along an axial direction of the plug 210; the plug detection method comprises the following steps:
011: applying a detection voltage to the contact terminal 11 and detecting an electrical parameter of the contact terminal 11;
the electrical parameter comprises an electrical parameter of the contact terminal, for example one or more of voltage, current, resistance. The plug portion 211 with different impedance characteristics is in contact with the contact terminal 11, and the electrical parameters of the contact terminal 11 are different. That is, the value of the electrical parameter can be obtained from the detection voltage and the impedance characteristic of the plug portion 211 that is in contact with the contact terminal.
012: acquiring an audio signal of the plug portion 211 in contact with the contact terminal 11 through the contact terminal 11, and acquiring an audio signal parameter of the audio signal;
013: the signal type of the plug portion 211 is determined based on the electrical parameter and the audio signal parameter.
The present application provides a plug detection device 10, the plug detection device 10 includes a detection module 12 and a plurality of contact terminals 11. The plurality of contact terminals 11 are arranged in the interface 21, the interface 21 is used for accommodating the plug 210 of the audio device 200, when the plug 210 is plugged into the interface 21, the plurality of contact terminals 11 are respectively contacted with different plug parts 211 arranged along the axial direction of the plug 210; the detection module 12 is configured to perform step 011, step 012, and step 013. Namely, the detection module 12 is used for applying a detection voltage to the contact terminal 11 and detecting an electrical parameter of the contact terminal 11, wherein the plug portion 211 with different impedance characteristics is in contact with the contact terminal 11, and the electrical parameters of the contact terminal 11 are different; acquiring an audio signal of the plug portion 211 in contact with the contact terminal 11 through the contact terminal 11, and acquiring an audio signal parameter of the audio signal; the signal type of the plug portion 211 is determined based on the electrical parameter and the audio signal parameter.
Specifically, the plug detection device 10 of the present application includes a plurality of contact terminals 11, for example, the plug detection device 10 includes two contact terminals 11, three contact terminals 11, four contact terminals 11, and the like, in the embodiment of the present application, the plug detection device 10 includes four contact terminals 11, which can be used to respectively detect four different plug locations 211 of the four-segment plug 210, and when the plug 210 is plugged into the interface 21 for accommodating the plug 210 (as shown in fig. 3), the four contact terminals 11 respectively contact with different plug locations 211 arranged along the axial direction of the plug 210. The four contact terminals 11 are respectively a first contact terminal 111, a second contact terminal 112, a third contact terminal 113 and a fourth contact terminal 114, the insertion direction (e.g. X direction in fig. 3) of the plug 210 is the arrangement direction of the first contact terminal 111 to the fourth contact terminal 114, and when the four-segment plug 210 is inserted, the first contact terminal 111 to the fourth contact terminal 114 are respectively contacted with four different plug portions 211 of the four-segment plug 210; when the three-piece plug 210 is inserted, the first contact terminal 111 to the third contact terminal 113 are respectively in contact with three different plug portions 211 of the three-piece plug 210; when the two-stage plug 210 is inserted, the first contact terminal 111 to the second contact terminal 112 are respectively in contact with two different plug portions 211 of the three-stage plug 210.
The detection module 12 includes a power supply unit 121 and a parameter reading unit 122. In the power supply unit 121, by applying a detection voltage to the contact terminal 11 (for example, the power supply unit 121 applies a bias voltage to the contact terminal 11, the power supply unit 121 may be a dc output power such as an internal output power of a Codec (Codec), a low dropout regulator (LDO) power, and the like), at this time, the parameter reading unit 122 may obtain an electrical parameter of the contact terminal 11 to which the bias voltage is applied, and the electrical parameter may include a voltage and a current, and it is understood that, after applying the bias voltage to the contact terminal 11, the voltage of the contact terminal 11 may be obtained, and the voltage of the contact terminal 11 is only related to the contact plug portion 211 due to the existence of an insulation ring interval between different plug portions 211. Each plug portion 211 has different types of functions (e.g., as a playback device, an active microphone, a passive microphone, a ground, etc.), and different impedance characteristics, which result in different voltages at the contact terminals 11 of the plug portion 211. Therefore, the detection module 12 can preliminarily determine the function type of the plug portion 211 contacted therewith according to the voltage of the contact terminal 11, such as the function type being a playing device, a microphone, a ground, and the like. After determining the functional type of each plug portion 211, the type of the plug 210 may be initially determined. Of course, when the number of the plugs 210 of the playing device (microphone) is 2, the playing device (microphone) includes a left channel and a right channel, the impedance characteristics of the plug portions 211 corresponding to the left and right channels may also be the same, the detecting module 12 may determine whether the plug portions 211 are the left channel or the right channel according to the axial arrangement positions of the left and right channels, for example, generally, the left channel and the right channel are generally arranged in sequence along the opposite direction of the plug 210 insertion direction (i.e., the opposite direction of the X direction in fig. 3), after the plug 210 is inserted, the left channel is further away from the outlet of the interface 21, and the detecting module 12 may determine whether the plug portions 211 are the left channel or the right channel according to the electrical parameters and the axial arrangement positions of the left channel and the right channel; alternatively, when there are two plug parts 211 with both function types of playback devices, the detection module 12 may use any plug part 211 as the left channel and the other plug part 211 as the right channel.
Since the plug 210 of the audio device 200 may be erroneously recognized as the plug 210 of the normal audio device 200 if the inserted plug 210 is the plug 210 of the non-audio device 200 or the damaged plug 210 of the audio device 200 has the same impedance characteristic as the plug 210 of the audio device 200, the audio signal of the plug portion 211 contacting the contact terminal 11 may be simultaneously acquired when the voltage of the contact terminal 11 is acquired, and the audio signal may be a signal obtained from the contact terminal 11 after the plug portion 211 is driven according to the function type of the plug portion 211. For example, when the plug portion 211 is a microphone, and the plug portion 211 is driven by the microphone, a microphone audio signal can be obtained; for another example, when the plug portion 211 is a playing device, and the plug portion 211 is driven by the playing device at this time, a playing audio signal can be obtained; when the inserted plug 210 is a plug 210 of a non-audio device 200 or a damaged plug 210 of an audio device 200, a microphone audio signal (playing audio signal) may not be obtained, or the obtained microphone audio signal (playing audio signal) may be greatly different from the microphone audio signal (playing audio signal) obtained when the audio device 200 is normally driven, for example, there is a large difference in audio signal parameters of the audio signal, and the audio signal parameters may include an amplitude, a frequency spectrum, and the like. Accordingly, it is possible to accurately determine whether the plug 210 is the plug 210 of the normal audio device 200 through the electrical parameter and the audio signal parameter, and determine the functional type of the plug portion 211, thereby accurately identifying the type of the audio device 200.
Further, the detection module 12 determines the function type of the corresponding plug portion 211 according to the audio signal parameter, for example, the function type of the plug portion 211 is determined as a microphone according to the electrical parameter of the contact terminal 11, and if the audio signal parameter corresponding to the contact terminal 11 represents that the function type of the plug portion 211 is a microphone, the function type of the plug portion 211 can be accurately determined as a microphone, so that the detection accuracy can be improved; if the audio signal parameter corresponding to the contact terminal 11 represents that the function type of the plug portion 211 is a playback device, it indicates that there may be an error in the function type of the plug portion 211 determined by the electrical parameter of the contact terminal 11, and the function type of the plug portion 211 represented by the audio signal parameter may be the final function type of the plug portion 211, or the electrical parameter and the audio signal parameter corresponding to the plug portion 211 are obtained again, and the function type of the plug portion 211 is determined again, so that the accuracy of detecting the function type of the plug portion 211 is improved.
The detection module may determine a signal type of the plug portion according to the electrical parameter and the audio signal parameter, where the signal type may represent a function type of the plug portion 211, for example, the signal type is a signal corresponding to the contact terminal 11 and a function type of the contact terminal 11, and the signal type is represented by a 5-bit binary system, for example, the first 2 bits of the 5-bit binary system are used for representing the first contact terminal 111 to the fourth contact terminal 114, the first contact terminal 111 corresponds to "00", the second contact terminal 112 corresponds to "01", the third contact terminal 113 corresponds to "10", and the fourth contact terminal 114 corresponds to "11"; the function type is represented by the last 3 bits in a 5-bit binary system, the left channel playing device corresponds to '001', the right channel playing device corresponds to '010', the ground corresponds to '011', the passive microphone corresponds to '100', and the active microphone corresponds to '101'.
For example, the signal type of the three-segment stereo headphone is "00001" (indicating that the function type of the first contact terminal 111 is the left channel playback device), "01010" (indicating that the function type of the second contact terminal 112 is the right channel playback device), "10011" (indicating that the function type of the third contact terminal 111 is the ground). In this manner, the function type of the plug portion 211 corresponding to each contact terminal 11 can be obtained quickly according to the signal type.
The type of audio device 200 may then be determined based on the functional type of the plug portion 211. For example, if the functional types of the corresponding plug portions 211 identified by the four contact terminals 11 are a left channel playing device, a right channel playing device, a ground connection, and a passive microphone, respectively, the type of the audio device 200 is a four-segment stereo headphone with a passive microphone; for another example, if the function types of the corresponding plug portion 211 identified by the three contact terminals 11 are a left channel, a right channel, and a ground, respectively, it indicates that the type of the audio device 200 is a three-segment stereo headphone.
In the plug detection method, the plug detection device 10, the audio processing device 100 and the audio processing system 1000, according to the difference of impedance characteristics of different plug parts 211 of the plug 210 of the audio device 200 contacted by the contact terminal 11, the electrical parameters of the contact terminal 11 are different, and the audio signal parameters capable of representing whether the plug parts 211 are normal audio devices 200 can jointly determine the signal type, which can represent the function type of the plug parts 211, thereby determining the type of the audio device 200. In addition, since the plug detection device 10 is provided with a plurality of contact terminals 11 which are respectively contacted with different plug portions 211 arranged along the axial direction of the plug 210, by selectively controlling the connection of the corresponding contact terminals 11 and the plug portions 211 to be connected to each other, it is possible to realize that one interface 21 is adapted to a plurality of audio devices 200 having different types of plugs 210 without using an adapter.
Referring to fig. 2 and 5, in some embodiments, the plug detection method further includes:
014: determining the number of plug portions 211 for transmitting signals according to the signal type; and
015: the first information of the audio apparatus 200 is determined according to the number of the plug portions 211 for transmitting the signal.
In certain embodiments, detection module 12 is further configured to perform steps 014 and 015. That is, the detection module 12 is also used to determine the number of plug portions 211 for transmitting signals according to the signal type; and determines the first information of the audio apparatus 200 according to the number of the plug portions 211 for transmitting the signal.
Specifically, the functional types of the plug portion 211 for transmitting signals generally include a playing device, an active microphone, a passive microphone, a ground, and the like, that is, the plug portion 211 capable of recognizing the functional types by the detection module 12 is generally capable of transmitting signals. After the detection module 12 determines the signal type according to the electrical parameter of the plug portion 211 and the audio signal parameter, the detection module 12 may determine the number of the plug portions 211 for transmitting the signal according to the number of the signal types for identifying the function type, thereby determining the first information of the audio device 200 according to the number of the plug portions 211 for transmitting the signal, the first information may include the number of segments of the audio device 200, and it may be understood that the number of segments of the audio device 200 may be equal to the number of the plug portions 211 for transmitting the signal. Of course, the number of stages of the audio device 200 may be larger than the number of plug portions 211 for transmitting signals, and since the maximum number of stages detected by the plug detection means 10 is equal to the number of contact terminals 11, when the number of stages of the audio device 200 is larger than the number of contact terminals 11, such as a five-stage plug, the number of stages detected by the number of stages of the audio device 200 at this time is 4, but the actual number of stages is 5.
Referring to fig. 2 and 6, in some embodiments, the plug detection method further includes:
016: determining the number of plug portions 211 for transmitting the microphone signal according to the signal type; and
017: the second information of the audio apparatus 200 is determined according to the number of the plug portions 211 for transmitting the microphone signal.
In certain embodiments, the detection module 12 is further configured to perform steps 016 and 017. That is, the detection module 12 is further configured to determine the number of plug portions 211 for transmitting the microphone signal according to the signal type; and determining second information of the audio device 200 according to the number of the plug portions 211 for transmitting the microphone signal.
Specifically, when the detection module 12 determines the signal type according to the electrical parameter and the audio signal parameter of the plug portion 211, the functional type of the plug portion 211 is determined, wherein the plug portion 211 with the functional type of the microphone is the plug portion 211 for transmitting the microphone signal. It is understood that the microphones may be divided into a left channel microphone and a right channel microphone, which may have a small difference from a simple impedance characteristic, when the number of the plug portions 211 of the microphone with the function type is two, the current microphone may be determined to be a two-channel microphone (i.e., including a left channel microphone and a right channel microphone), and when the number of the plug portions 211 of the microphone with the function type is three, the current microphone may be determined to be a three-channel microphone, etc.; thereby determining second information of the audio device 200 according to the number of plug portions 211 for transmitting the microphone signal, the second information may include whether the audio device 200 has a microphone function, such as when the number of plug portions 211 for transmitting the microphone signal is greater than or equal to 1, that the audio device 200 is considered to have the microphone function; the second information may also include a microphone type of the audio device 200, such as a mono microphone, a two-channel microphone, a three-channel microphone, and so on.
Referring to fig. 2 and 7, in some embodiments, the plug detection method further includes:
018: if there is a plug portion 211 for transmitting a microphone signal, it is determined that the audio device 200 has a microphone function;
019: determining whether the plug portion 211 for transmitting the microphone signal applies a current to the contact terminal 11 according to the signal type; and
020: according to the judgment result, the third information of the audio device 200 is determined.
In certain embodiments, the detection module 12 is further configured to perform step 018, step 019, and step 020. That is, the detection module 12 is further configured to determine that the audio device 200 has a microphone function when the plug portion 211 for transmitting a microphone signal is present; determining whether the plug portion 211 for transmitting the microphone signal applies a current to the contact terminal 11 according to the signal type; and determining third information of the audio device 200 according to the judgment result.
Specifically, after the audio apparatus 200 is determined to have the microphone function according to the number of the plug portions 211 for transmitting the microphone signal, it is possible to further judge the microphone type of the audio apparatus 200, and it is understood that, in addition to the number of the channels of the microphone determined according to the number of the plug portions 211 for transmitting the microphone signal, the microphone has a distinction between an active microphone, that is, the audio apparatus 200 is provided with a power supply for supplying power to the audio apparatus 200, and a passive microphone, that supplies power using the interface 21 of the pan/tilt head, and that the function type of the plug portion 211 in the audio apparatus 200 includes an active microphone and a passive microphone, which have different impedance characteristics of the plug portions 211 corresponding to the active microphone and the passive microphone, and it is judged whether the plug portion 211 is the active microphone or the passive microphone according to the voltage of the contact terminal 11, and further since the active microphone is supplied with power from the audio apparatus 200, when the voltage of the contact terminal 11 corresponding to the active microphone is obtained, the current at the contact terminal 11 may be obtained at the same time, whether the current input from the external power source is received or not may be determined, and according to the determination result, the third information of the audio device 200 may be determined, where the third information may include whether the microphone of the audio device 200 is active or not, for example, if the plug portion 211 for transmitting the microphone signal applies the current to the contact terminal 11, the function type of the plug portion 211 is an active microphone, and if the plug portion 211 for transmitting the microphone signal does not apply the current to the contact terminal 11, the function type of the plug portion 211 is a passive microphone, so that whether the plug portion 211 for transmitting the microphone signal is active or not may be determined according to the determination result, so as to further improve the function type of the microphone, and improve the detection accuracy.
Referring to fig. 2 and 8, in some embodiments, step 011 includes:
0111: a detection voltage is applied to a portion of the plurality of contact terminals 11, and an electrical parameter of the contact terminal 11 to which the detection voltage is applied is detected.
In certain embodiments, the detection module 12 is further configured to perform step 0111. That is, the detection module 12 is also configured to apply a detection voltage to a portion of the plurality of contact terminals 11, and detect an electrical parameter of the contact terminal 11 to which the detection voltage is applied.
Specifically, the power supply unit 121 is configured to apply the detection voltage to the contact terminals 11, for example, the power supply unit 121 is configured to apply the detection voltage to a portion of the plurality of contact terminals 11, the number of the portion being smaller than or equal to the number of the contact terminals 11, such as the power supply unit 121 is configured to apply the detection voltage to one of the plurality of contact terminals 11, and the parameter reading unit 122 is configured to read the electrical parameter of the contact terminal 11 to which the detection voltage is applied, and thus, the power supply unit 121 may sequentially apply the detection voltage to the plurality of contact terminals 11, so that the parameter reading unit 122 sequentially acquires the electrical parameter of the contact terminal 11 to which the detection voltage is applied; alternatively, the power supply unit 121 is configured to apply the detection voltage to two or three of the plurality of contact terminals 11, and the parameter reading unit 122 is configured to read the electrical parameter of the contact terminal 11 to which the detection voltage is applied; in this way, only the detection voltage needs to be applied to a part of the contact terminals 11 each time, and only the electrical parameters of the part of the contact terminals 11 need to be acquired, so that the circuit design is simple.
In other embodiments, the power supply unit 121 applies the detection voltage to all the contact terminals 11, and the parameter reading unit 122 is configured to read the electrical parameter of the contact terminal 11 to which the detection voltage is applied, so as to substantially complete the acquisition of the electrical parameters of all the contact terminals 11 at the same time, which is beneficial to improving the detection efficiency.
Referring to fig. 2 and 9, in some embodiments, the contact terminal 11 includes a target contact terminal 11, and the plug detection method further includes:
021: the audio device 200 is driven through the target contact terminal 11 depending on the signal type.
In some embodiments, the plug detection apparatus 10 further includes a driving module 13, and the driving module 13 is configured to execute the step 021. That is, the driving module 13 is used to drive the audio device 200 through the target contact terminal 11 depending on the signal type.
Specifically, according to the function type of the plug portion 211 of the plug 210 of the audio device 200, a target contact terminal 11 for implementing the function of the audio device 200 may be determined, the target contact terminal 11 is a contact terminal 11 for implementing the function of the corresponding plug portion 211, and the driving module 13 may selectively control the connection between the corresponding target contact terminal 11 and the plug portion 211 to be switched on and off, so that one interface 21 is adapted to a plurality of audio devices 200 with different types of plugs 210 without using an adapter, that is, the contact terminal 11 may not only recognize the corresponding plug portion 211, but also be used to implement the function of the plug portion 211, for example, the function type of the plug portion 211 corresponding to the first contact terminal 111 is a microphone, if the microphone function is to be implemented, the target contact terminal is the first contact terminal 111, and a microphone audio signal acquired by the audio device 200 may be transmitted to the pan-tilt head through the first contact terminal 111 corresponding to the plug portion 211, for another example, the plug portion 211 corresponding to the second contact terminal 112 is a playing device, if an audio playing function is to be implemented, the target contact terminal is the second contact terminal 112, and if a microphone function and an audio playing function are to be implemented simultaneously, the target contact terminals are the first contact terminal 111 and the second contact terminal 112, taking the implementation of the audio playing function as an example, the cradle head transmits a playing audio signal to the corresponding plug portion 211 through the second contact terminal 112, so as to play audio through the audio device 200. Thus, by selectively controlling the connection of the corresponding target contact terminal 11 and the plug portion 211, it is possible to realize that one interface 21 is adapted to a plurality of audio devices 200 having different types of plugs 210 without using an adapter.
Referring to fig. 2 and 10, in some embodiments, the contact terminal 11 includes a plug-in contact terminal 115, and the plug detection method further includes:
022: it is detected whether a plug 210 is plugged into the interface 21 or not, depending on the electrical parameters of the plug-in contact terminals 115.
In certain embodiments, contact terminals 11 include insertion contact terminals 115, and detection module 12 is further configured to perform step 022. That is, the detection module 12 is further configured to detect whether the plug 210 is plugged into the interface 21 according to the electrical parameter of the plugged contact terminal 115.
Specifically, referring to fig. 2, it can be understood that even the shortest two-step plug 210 can push the third contact terminal 113 and the fourth contact terminal 114 open after the plug 210 is inserted into the interface 21, so that the plug contact terminal 115 can be in contact with the third contact terminal 113 or the fourth contact terminal 114 in the initial state (the state where the plug 210 is not inserted), thereby ensuring that any type of plug 21 can be detected after being inserted. In the present embodiment, the contact between the inserted contact terminal 115 and the third contact terminal 113 is taken as an example for explanation, and the detection principle when the inserted contact terminal 115 contacts the fourth contact terminal 114 is basically similar, and is not described herein again.
Referring to fig. 3, after the plug 210 is inserted into the interface 21, the contact between the third contact terminal 113 and the inserting contact terminal 115 is broken, and the parameter reading unit 122 receives different electrical parameters from the inserting contact terminal 115 when the third contact terminal 113 is in contact with and broken from the inserting contact terminal 115, so that whether the plug 210 is inserted into the interface 21 can be accurately determined according to the electrical parameters at the inserting contact terminal 115. For example, the electrical parameter includes a voltage, the voltage is a voltage of the power supply unit 121 when the third contact terminal 113 is in contact with the inserting contact terminal 115, and the voltage is 0 when the third contact terminal 113 is disconnected from the inserting contact terminal 115, so as to determine whether the plug 210 is inserted into the interface 21 according to the voltage of the inserting contact terminal 115.
In other embodiments, any one of the plurality of contact terminals 11 (e.g., the third contact terminal 113 or the fourth contact terminal 114) is used as the inserting contact terminal 115, and the inserting contact terminal 115 can identify the functional type of the corresponding plug portion 211, and can perform insertion detection, so that any plug 210 inserted into the interface 21 will contact the inserting contact terminal 115, and thus whether the plug 210 is inserted into the interface 21 can be detected according to the electrical parameter of the inserting contact terminal 115.
Referring to fig. 2 and 11, in some embodiments, step 012 includes:
0121: determining function type information of the plug portion 211 in contact with the contact terminal 11 based on the electrical parameter;
0122: according to the function type information, the audio signal of the plug portion 211 contacted with the contact terminal 11 is acquired through the contact terminal 11.
In certain embodiments, the detection module 12 is further configured to perform step 0121 and step 0122. That is, the detection module 12 is also used to determine the functional type information of the plug portion 211 in contact with the contact terminal 11 based on the electrical parameter; according to the function type information, the audio signal of the plug portion 211 contacted with the contact terminal 11 is acquired through the contact terminal 11.
Specifically, when acquiring an audio signal, determining function type information of the plug portion 211 based on an electrical parameter of the contact terminal 11 corresponding to the plug portion 211, where the function type information includes a playing device, a microphone, a ground, and the like, and the function type information is used to represent a function of the corresponding plug portion 211, and if the function type information is the playing device, the function of the plug portion 211 is to play audio; if the function type information is a microphone, the plug portion 211 functions as a sound recording function. Then, the driving module 13 drives the plug part 211 to implement a corresponding function according to the function type of the plug part 211, for example, when the function type of the plug part 211 is a microphone, and at this time, when the plug part 211 is driven by the microphone, a microphone audio signal can be obtained; for another example, when the plug portion 211 is a playing device, and the plug portion 211 is driven by the playing device at this time, a playing audio signal can be obtained;
the parameter reading unit 121 may acquire the audio signal of the plug portion 211 in contact with the contact terminal 11 through the contact terminal 11 according to the function type of the plug portion 211. For example, the parameter reading unit 122 includes processing units for different audio signals, such as a playing processing unit for playing an audio signal, and a microphone processing unit for a microphone audio signal. The parameter reading unit 122 can call the processing unit corresponding to the function type to process by determining the function type of the plug portion 211, so as to further determine whether the function type is determined to be incorrect according to the processing result of the processing unit, for example, when the playing processing unit processes the audio signal parameter of the microphone audio signal, because the playing processing unit is only adapted to the playing audio signal, a normal processing result cannot be generated and an error is reported, thereby determining whether the function type determined according to the corresponding electrical parameter of the plug portion 211 is incorrect, and improving the detection accuracy.
In addition, when the inserted plug 210 is the non-audio device 200 or the plug 210 of the damaged audio device 200, a microphone audio signal (playing audio signal) may not be obtained, or the obtained microphone audio signal (playing audio signal) and the microphone audio signal (playing audio signal) obtained when the audio device 200 is normally driven are greatly different, the processing unit may obtain a determination result by extracting an audio signal parameter of the audio signal, where the determination result includes that the function type is the playing device or the microphone, or the function type cannot be obtained, and the determination result that the function type cannot be obtained indicates that the inserted plug 210 is the non-audio device 200 or the plug 210 of the damaged audio device 200.
Referring to fig. 2, in a specific example, the number of the contact terminals 11 is four, and the contact terminals are respectively the first contact terminal 111 to the fourth contact terminal 114, so as to detect the type of the audio device 200 of the currently largest four-segment interface 21 on the market, the parameter reading unit 122 can provide one parameter reading interface 123 for each contact terminal 11, in this embodiment, taking the plug 210 of the audio device 200 of the non-international standard as an example, since the plug 211 with the function type of grounding necessarily exists in the audio device 200 of the non-international standard, for example, the grounded plug 211 in the three-segment or four-segment headphone plug 210 is generally in contact with the second contact terminal 112, and the voltage of the grounded plug 211 is generally 0V, it is not necessary to provide the parameter reading interface 123 corresponding to the second contact terminal 112 to read the voltage of the second contact terminal 112, and only the second contact terminal 112 is grounded, the voltage of the second contact terminal 112 is 0V by default. Therefore, the parameter reading unit 122 is provided with a first parameter reading interface 1231, a second parameter reading interface 1232, and a third parameter reading interface 1233, which read the electrical parameter and the audio signal of the first contact terminal 111, the electrical parameter and the audio signal of the second contact terminal 112, and the electrical parameter and the audio signal of the third contact terminal 113, respectively. The impedance of the plug portion 211 is related to the type of audio device to which it corresponds as shown in table 1.
Figure BDA0003054348710000161
Figure BDA0003054348710000171
TABLE 1
As can be seen from table 1, when the impedance is 0 ohm (Ω), indicating that the contact terminal 11 is not in contact with the plug portion 211 or the contact terminal 11 is in contact with the plug portion 211 whose function type is ground, when the impedance is 16 Ω to 100 Ω, indicating that the contact terminal 11 is in contact with the plug part 211 and the function type of the plug part 211 is a playback device, when the impedance is in the range of 500 omega to 2000 omega, indicating that the contact terminal 11 is in contact with the plug portion 211 and the plug portion 211 is a passive microphone, when the impedance is above 10000 omega, indicating that the contact terminal 11 is in contact with the plug portion 211 and that the plug portion 211 is of the active microphone type, when the impedance approaches infinity, this contact terminal 11 is shown to be in contact with the plug portion 211, but the plug portion 211 does not have any function, and only functions to increase the length of the plug 210 (hereinafter referred to as an insulating plug portion 211).
It is understood that different impedances, electrical parameters (for example, voltages) read by the parameter reading interface 123 are different, for example, when the impedance is 0 Ω, the voltage range corresponding to the contact terminal 11 is [0, V1], that is, the plug portion 211 corresponding to the contact terminal 11 is not present or grounded; when the impedance is between 16 Ω and 100 Ω, the voltage range corresponding to the contact terminal 11 is [ V2, V3], that is, the plug portion 211 corresponding to the contact terminal 11 is a playing device; when the impedance is between 500 Ω and 2000 Ω, the voltage range corresponding to the contact terminal 11 is [ V4, V5], that is, the plug portion 211 corresponding to the contact terminal 11 is a passive microphone; when the impedance is above 10000 Ω, the voltage range corresponding to the contact terminal 11 is [ V6, V7], that is, the plug portion 211 corresponding to the contact terminal 11 is an active microphone; when the impedance approaches infinity, the voltage range corresponding to the contact terminal 11 is equal to the bias voltage V8 of the power supply unit 121, i.e. the plug portion 211 corresponding to the contact terminal 11 is the insulated plug portion 211; wherein, the larger the voltage distributed to the contact terminal 11 due to the increase of the resistance range, V1 to V8 are sequentially increased and can be determined according to the bias voltage of the output of the power supply unit 121, and [0, V1], [ V2, V3], [ V4, V5], and [ V6, V7] do not intersect.
Referring to fig. 2, the detection module 12 includes a plurality of first control switches 124 and second control switches 125, where the control switches may be control switches in software logic or control switches in physical circuits.
The plurality of first control switches 124 respectively control the on/off of the parameter reading interface 123 and the corresponding contact terminals 11, and when the first control switches 124 are controlled to be closed, the parameter reading interface 123 is used for reading the electrical parameters and the audio parameters from the contact terminals 11 corresponding to the first control switches 124. In addition, since the second contact terminal 112 may contact only the plug portion 211 that is grounded or not contact any of the plug portions 211, neither the electrical parameter nor the audio parameter of the second contact terminal 112 needs to be acquired.
The plurality of second control switches 125 control the on/off of the power supply unit 121 and the driving module 13 and the corresponding contact terminals 11, respectively, and when the second control switches 125 are controlled to be closed, the power supply unit 121 outputs the bias voltage V8 to the contact terminals 11 corresponding to the control switches, and the driving module 13 can drive the corresponding contact terminals 11 and the plug portion 211 at this time, thereby realizing the function of the plug portion 211.
The number of the second control switches 125 is 3, and SW1, SW2 and SW3 are respectively used for controlling whether to acquire the electrical parameter and the audio parameter of the first contact terminal 111, the third contact terminal 113 and the fourth contact terminal 114.
The number of the second control switches 125 is 5, which are respectively S4, S5, S6, S7 and S8, wherein 2 of the second control switches are used for controlling the on/off of the power unit 121 and the fourth contact terminal 114 (e.g., SW4 and SW7 in fig. 2), it can be ensured that when one of the second control switches 125 is damaged, the on/off control of the power unit 121 and the fourth contact terminal 114 can be realized through the other second control switch 125, and the remaining 3 control switches are used for controlling the on/off of the power unit 121 and the first contact terminal 111, the second contact terminal 112 and the third contact terminal 113 respectively, as shown in fig. 2, the SW5 controls the on/off of the power unit 121 and the first contact terminal 111, the SW6 controls the on/off of the power unit 121 and the third contact terminal 113, and the SW4 and SW7 can independently control the on/off of the power unit 121 and the fourth contact terminal 114.
Referring to fig. 3, when the plug 210 of the audio device 200 is inserted into the interface 21 of the cradle head, the third contact terminal 113 is jacked up by the plug 210, so that the third contact terminal 113 is disconnected from the plug-in contact terminal 115, the parameter reading unit 122 is provided with a plug-in detection interface 1234, and the electrical parameter of the plug-in contact terminal 115 is acquired through the plug-in detection interface 1234, and since the electrical parameters acquired when the contact terminal 113 is connected and disconnected with the plug-in contact terminal 115 are different, it is determined whether the plug 210 is inserted into the interface 21 according to the electrical parameter of the plug-in contact terminal 115.
Referring to fig. 12, after determining that the plug 210 is inserted into the interface 21, the type of the audio device 200 starts to be detected, at this time, the plug detection apparatus 10 first controls SW1 and SW5 to be turned on, the power unit 121 applies a bias voltage to the corresponding contact terminal 11 to detect whether the first contact terminal 111 contacts the plug portion 211 and determine the type of the plug portion 211, and for the plug 210 of the audio device 200 of the non-international standard, the plug portion 211 corresponding to the first contact terminal 111 may only be absent or a microphone.
When the voltage U1 of the first contact terminal 111 is at [0, V1], it is determined that the plug portion 211 corresponding to the first contact terminal 111 does not exist, and the plug 210 of the current audio device 200 is a two-stage or three-stage plug 210. The detection module 12 turns off the SW1 and the SW5 for the next detection, and controls the SW3 and the SW4 to be turned on to detect the type of the plug portion 211 contacted by the fourth contact terminal 114.
When the voltage U4 of the fourth contact terminal 114 is at [ V2, V3], it is determined that the function type of the plug portion 211 corresponding to the fourth contact terminal 114 is the playback device, and further, the type of the plug portion 211 contacted by the third contact terminal 113 is detected, at which time SW3 and SW4 are turned off, SW2 and SW6 are turned on, and when the voltage U3 of the third contact terminal 113 is at [0, V1], it is determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is ground, and the ground of the three-segment plug 210 is generally contacted with the second contact terminal 112, and thus, it is basically determined that the type of the audio device 200 is a mono two-segment headphone; when the voltage U3 of the third contact terminal 113 is at [ V2, V3], it is determined that the functional type of the plug portion 211 corresponding to the third contact terminal 113 is a playback device, and the ground of the three-stage plug 210 is generally in contact with the second contact terminal 112, and thus, it is basically determined that the type of the audio device 200 is a three-stage stereo headphone; when the voltage U3 of the third contact terminal 113 is equal to V8 (the voltage U3 of the third contact terminal 113 is equal to V8 means that the difference between the values of the voltages U3 and V8 of the third contact terminal 113 is less than a predetermined difference), it is determined that the functional type of the plug portion 211 corresponding to the third contact terminal 113 is the insulating plug portion 211, and the ground of the three-stage plug 210 is generally in contact with the second contact terminal 112, and thus, it is basically determined that the type of the audio device 200 is the three-stage mono headset.
Referring to fig. 13, when the voltage U4 of the fourth contact terminal 114 is at [ V4, V5], it may be determined that the function type of the plug portion 211 corresponding to the fourth contact terminal 114 is a passive microphone, and at this time, if the voltage U3 of the third contact terminal 113 is at [0, V1], it may be determined that the type of the audio device 200 is a two-segment mono passive microphone; at this time, if the voltage U3 of the third contact terminal 113 is at [ V4, V5], it is determined that the functional type of the plug portion 211 corresponding to the third contact terminal 113 is a passive microphone, and it is determined that the type of the audio device 200 is a three-segment two-channel passive microphone; at this time, if the voltage U3 of the third contact terminal 113 is at [ V6, V7], it is determined that the functional type of the plug portion 211 corresponding to the third contact terminal 113 is an active microphone, it is determined that the type of the audio device 200 is a three-stage two-channel active microphone, generally, the fourth contact terminal 114 corresponds to a left channel, the third contact terminal 113 corresponds to a right channel, and therefore, the left channel and the right channel are a passive microphone and an active microphone, respectively; at this time, if the voltage U3 of the third contact terminal 113 is equal to V8, it is determined that the plug portion 211 corresponding to the third contact terminal 113 is the insulated plug portion 211, and it is determined that the type of the audio device 200 is the three-stage mono passive microphone.
Referring to fig. 14, when the voltage U4 of the fourth contact terminal 114 is at [ V6, V7], it may be determined that the functional type of the plug portion 211 corresponding to the fourth contact terminal 114 is an active microphone, and at this time, if the voltage U3 of the third contact terminal 113 is at [0, V1], it may be determined that the type of the audio device 200 is a two-segment mono active microphone; at this time, if the voltage U3 of the third contact terminal 113 is at [ V4, V5], it is determined that the functional type of the plug portion 211 corresponding to the third contact terminal 113 is a passive microphone, it is determined that the audio device 200 is a three-stage two-channel microphone, and the left and right channels are an active microphone and a passive microphone, respectively; at this time, if the voltage U3 of the third contact terminal 113 is at [ V6, V7], it is determined that the functional type of the plug portion 211 corresponding to the third contact terminal 113 is an active microphone, and it is determined that the type of the audio device 200 is a three-segment two-channel active microphone; at this time, if the voltage U3 of the third contact terminal 113 is equal to V8, it is determined that the plug portion 211 corresponding to the third contact terminal 113 is the insulated plug portion 211, and it is determined that the type of the audio device 200 is the three-stage mono active microphone.
Referring to fig. 15, when the voltage U1 of the first contact terminal 111 is at [ V4, V5], it is determined that the plug portion 211 contacted by the first contact terminal 111 is a passive microphone and the plug 210 of the current audio device 200 is a four-segment plug 210. The detection module 12 disconnects the SW1 and the SW5 for the next detection, controls the SW3 and the SW4 to be turned on, and the power unit 121 applies a bias voltage to the corresponding contact terminal 11 to detect the type of the plug portion 211 contacted by the fourth contact terminal 114, it can be understood that in the four-segment plug 210 of the non-international standard plug 210, the type of the plug 210 corresponding to the second contact terminal 112 is grounded, and since the first contact terminal 111 is already a passive microphone, it is only necessary to determine that the plug portion 211 corresponding to the fourth contact terminal 114 is a playing device or an insulated plug portion 211.
When the voltage U4 of the fourth contact terminal 114 is at [ V2, V3], it is determined that the function type of the plug portion 211 corresponding to the fourth contact terminal 114 is the playback device, and further the type of the plug portion 211 contacted by the third contact terminal 113 is detected, at this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on, and similarly, it is only necessary to determine that the plug portion 211 corresponding to the third contact terminal 113 is the playback device or the insulation plug portion 211. At this time, if the voltage U3 of the third contact terminal 113 is at [ V2, V3], it is determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is a playback device, and thus it is basically determined that the type of the audio device 200 is a four-segment stereo-band passive microphone earphone; when the voltage U3 of the third contact terminal 113 is equal to V8, it may be determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is the insulation plug portion 211, and thus, it may be basically determined that the type of the audio device 200 is the four-segment type mono band passive microphone earphone.
Referring to fig. 16, when the voltage U4 of the fourth contact terminal 114 is equal to V8 (the voltage U4 of the fourth contact terminal 114 is equal to V8 means that the difference between the values of the voltage U4 and the voltage V8 of the fourth contact terminal 114 is smaller than a predetermined difference), it is determined that the function type of the plug portion 211 corresponding to the fourth contact terminal 114 is the insulating plug portion 211, and further the type of the plug portion 211 contacted by the third contact terminal 113 is detected, at this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on, and similarly, it is only necessary to determine that the plug portion 211 corresponding to the third contact terminal 113 is the playback device or the insulating plug portion 211. At this time, if the voltage U3 of the third contact terminal 113 is at [ V2, V3], it is determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is a playback device, and thus it is basically determined that the type of the audio device 200 is a four-segment type mono-channel passive microphone earphone; when the voltage U3 of the third contact terminal 113 is equal to V8, it may be determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is the insulated plug portion 211, and thus, it may be basically determined that the type of the audio device 200 is the four-segment type passive microphone.
Referring to fig. 17, when the voltage U1 of the first contact terminal 111 is at [ V6, V7], it is determined that the plug portion 211 contacted by the first contact terminal 111 is an active microphone and the plug 210 of the current audio device 200 is a four-segment plug 210. The detection module 12 turns off the SW1 and the SW5 for the next detection, and controls the SW3 and the SW4 to be turned on to detect the type of the plug portion 211 contacted by the fourth contact terminal 114.
When the voltage U4 of the fourth contact terminal 114 is at [ V2, V3], it is determined that the function type of the plug portion 211 corresponding to the fourth contact terminal 114 is the playback device, and further the type of the plug portion 211 contacted by the third contact terminal 113 is detected, at this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on, and similarly, it is only necessary to determine that the plug portion 211 corresponding to the third contact terminal 113 is the playback device or the insulation plug portion 211. At this time, if the voltage U3 of the third contact terminal 113 is at [ V2, V3], it is determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is a playback device, and thus it is basically determined that the type of the audio device 200 is a four-segment stereo headphone with an active microphone; when the voltage U3 of the third contact terminal 113 is equal to V8, it may be determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is the insulation plug portion 211, and thus, it may be basically determined that the type of the audio device 200 is the four-segment type mono-channel with active microphone earphone.
Referring to fig. 18, when the voltage U4 of the fourth contact terminal 114 is equal to V8, it is determined that the function type of the plug portion 211 corresponding to the fourth contact terminal 114 is the insulated plug portion 211, and further the type of the plug portion 211 contacted by the third contact terminal 113 is detected, at this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on, and similarly, it is only necessary to determine that the plug portion 211 corresponding to the third contact terminal 113 is the playback device or the insulated plug portion 211. At this time, if the voltage U3 of the third contact terminal 113 is at [ V2, V3], it is determined that the function type of the plug portion 211 corresponding to the third contact terminal 113 is a playback device, and thus it is basically determined that the type of the audio device 200 is a four-segment type mono-channel earphone with an active microphone; when the voltage U3 of the third contact terminal 113 is equal to V8, it may be determined that the functional type of the plug portion 211 corresponding to the third contact terminal 113 is the insulated plug portion 211, and thus, it may be basically determined that the type of the audio device 200 is the four-segment active microphone.
Thus, through the above-mentioned process, the type of the non-international standard audio device 200 can be detected quickly, and in combination with the characteristics of the non-international standard audio device 200, a detection-unnecessary portion (such as the type of the plug portion 211 corresponding to the second contact terminal 112) is omitted, the segment number interval of the plug 210 is determined according to the electrical parameter of the first contact terminal 111, and then the detection is performed through the detection process corresponding to the segment number interval, so that the detection of all the segments of the audio device 200 is unnecessary, and the detection efficiency can be improved.
After the type of the audio device 200 is preliminarily determined according to the electrical parameter of the contact terminal 11, the driving module 13 controls the on/off of the corresponding control switch to drive the audio device 200, and obtains the audio signal obtained from the contact terminal 11 after the audio device 200 is driven, so as to obtain an audio signal parameter, to determine whether the function type of the plug portion 211 corresponding to the contact terminal 11 determined according to the electrical parameter matches the function type of the plug portion 211 corresponding to the audio signal parameter, thereby further ensuring the detection accuracy of the function type of the plug portion 211. And the audio signal parameter may also be used to determine whether the plug portion 211 corresponding to the contact terminal 11 is a plug portion 211 of a non-audio device 200 or an audio device 200 that has been damaged.
For example, referring to fig. 3 and fig. 19, if the detecting module 12 preliminarily determines that the type of the audio device 200 to be detected is a two-segment mono headset according to the electrical parameter of the contact terminal 11, the driving module 13 controls the SW3 and the SW7 to be turned on to drive the plug portion 211 contacted by the fourth contact terminal 114 to transmit the audio signal to the audio device 200 for playing, and the third parameter reading interface 1233 reads the audio signal at the fourth contact terminal 114 and transmits the audio signal to the playing processing unit for processing, so as to determine whether the audio signal is received or not or determine whether the audio signal is a playing audio signal according to the audio signal parameter of the audio signal. For example, if the audio signal is a playing audio signal, the plug portion 211 corresponding to the fourth contact terminal 114 may be further determined as a playing device, and the audio device 200 to be detected is a two-segment mono headset; if the audio signal is not the broadcast audio signal, the type of the audio device 200 preliminarily determined according to the electrical parameter of the contact terminal 11 may have an error, and the electrical parameter needs to be detected again; if the audio signal cannot be acquired, the audio device 200 to be detected is a non-audio device 200 or a damaged two-segment single-channel earphone.
Thus, the type of the audio device 200 to be detected can be more accurately judged according to the signal type of the plug portion 211 determined by the electrical parameter and the audio signal parameter, and the interference of the non-audio device 200 and the damaged audio device 200 on the detection result can be avoided.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor 22-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
The audio processing system mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (25)

1. A plug detection device, comprising: a detection module and a plurality of contact terminals;
the contact terminals are arranged in an interface, the interface is used for accommodating a plug of audio equipment, and when the plug is inserted into the interface, the contact terminals are respectively contacted with different plug parts arranged along the axial direction of the plug;
the detection module is used for:
applying a detection voltage to the contact terminal and detecting an electrical parameter of the contact terminal;
acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal, and acquiring an audio signal parameter of the audio signal;
and determining the signal type of the plug part according to the electrical parameter and the audio signal parameter.
2. The plug detection device of claim 1, wherein the detection module is further configured to:
determining the number of plug parts for transmitting signals according to the signal types; and
determining first information of the audio device according to the number of plug parts for transmitting signals.
3. The plug detection apparatus according to claim 2, wherein the first information includes a number of sections of a plug of the audio device.
4. The plug detection device of claim 1, wherein the detection module is further configured to:
determining the number of plug positions for transmitting microphone signals according to the signal types; and
determining second information of the audio device depending on the number of plug parts for transmitting a microphone signal.
5. The plug detection apparatus according to claim 4, wherein the second information includes whether or not the audio device has a microphone function.
6. The plug detection device of claim 4, wherein the detection module is further configured to:
determining that the audio device has a microphone function if a plug part for transmitting a microphone signal exists;
judging whether a plug part for transmitting a microphone signal applies current to the contact terminal or not according to the signal type; and
and determining third information of the audio equipment according to the judgment result.
7. The plug detection apparatus of claim 6, wherein the third information comprises whether a microphone of the audio device is active.
8. The plug detection device according to claim 1, wherein when a detection voltage is applied to the contact terminal and an electrical parameter of the contact terminal is detected, the detection module is configured to:
a detection voltage is applied to a portion of the plurality of contact terminals, and an electrical parameter of the contact terminal to which the detection voltage is applied is detected.
9. The plug detection device of claim 1, further comprising a drive module configured to:
driving the audio device through the target contact terminal depending on the signal type.
10. The plug detection device of claim 1, wherein the contact terminal comprises an insertion contact terminal, the detection module further configured to:
and detecting whether the plug is plugged into the interface or not according to the electrical parameter of the plug-in contact terminal.
11. The plug detection device according to claim 1, wherein when the audio signal of the plug portion in contact with the contact terminal is acquired through the contact terminal, the detection module is configured to:
determining functional type information of a plug portion in contact with the contact terminal based on the electrical parameter;
and acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal according to the function type information.
12. An audio processing device, characterized in that the audio processing device comprises:
a carrier formed with an interface for receiving a plug of an audio device; and
the plug detection device of any one of claims 1 to 11, a plurality of said contact terminals of said plug detection device being disposed within said interface.
13. The audio processing device according to claim 12, wherein the audio processing device comprises any one of an imaging device, a pan-tilt head, and a movable platform.
14. An audio processing system, characterized in that the audio processing system comprises:
an audio device; and
the audio processing device of claim 12 or 13, the plug of the audio device being removably plugged into the interface of the audio processing device.
15. A plug detection method is characterized in that the plug detection method is used for a plug detection device, the plug detection device comprises a plurality of contact terminals, the contact terminals are arranged in an interface, the interface is used for accommodating a plug of audio equipment, and when the plug is plugged into the interface, the contact terminals are respectively contacted with different plug parts which are arranged along the axial direction of the plug; the plug detection method comprises the following steps:
applying a detection voltage to the contact terminal and detecting an electrical parameter of the contact terminal;
acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal, and acquiring an audio signal parameter of the audio signal;
and determining the signal type of the plug part according to the electrical parameter and the audio signal parameter.
16. The plug detection method of claim 15, further comprising:
determining the number of plug parts for transmitting signals according to the signal types; and
determining first information of the audio device according to the number of plug parts for transmitting signals.
17. The plug detection method of claim 16, wherein the first information comprises a number of segments of a plug of the audio device.
18. The plug detection method of claim 15, further comprising:
determining the number of plug positions for transmitting microphone signals according to the signal types; and
determining second information of the audio device depending on the number of plug parts for transmitting a microphone signal.
19. The plug detection method according to claim 18, wherein the second information includes whether the audio device has a microphone function.
20. The plug detection method of claim 19, wherein determining the second information of the audio device according to the number of plug sites for transmitting the microphone signal comprises: determining that the audio device has a microphone function if a plug part for transmitting a microphone signal exists;
the plug detection method further comprises the following steps:
judging whether a plug part for transmitting a microphone signal applies current to the contact terminal or not according to the signal type; and
and determining third information of the audio equipment according to the judgment result.
21. The plug detection method of claim 20, wherein the third information includes whether a microphone of the audio device is active.
22. The plug detection method according to claim 15, wherein the applying a detection voltage to the contact terminal and detecting an electrical parameter of the contact terminal comprises:
a detection voltage is applied to a portion of the plurality of contact terminals, and an electrical parameter of the contact terminal to which the detection voltage is applied is detected.
23. The plug detection method according to claim 15, wherein the contact terminal includes a target contact terminal, the plug detection method further comprising:
driving the audio device through the target contact terminal depending on the signal type.
24. The plug detection method according to claim 15, wherein the contact terminal comprises an insertion contact terminal, the plug detection method further comprising:
and detecting whether the plug is plugged into the interface or not according to the electrical parameter of the plug-in contact terminal.
25. The plug detection method according to claim 15, wherein the acquiring, by the contact terminal, an audio signal of a plug portion in contact with the contact terminal includes:
determining functional type information of a plug portion in contact with the contact terminal based on the electrical parameter;
and acquiring an audio signal of a plug part contacted with the contact terminal through the contact terminal according to the function type information.
CN202080006074.XA 2020-09-24 2020-09-24 Plug detection device, audio processing equipment, audio processing system and plug detection method Pending CN113016192A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/117456 WO2022061653A1 (en) 2020-09-24 2020-09-24 Jack-plug detection apparatus, audio processing device, audio processing system, and jack-plug detection method

Publications (1)

Publication Number Publication Date
CN113016192A true CN113016192A (en) 2021-06-22

Family

ID=76384167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080006074.XA Pending CN113016192A (en) 2020-09-24 2020-09-24 Plug detection device, audio processing equipment, audio processing system and plug detection method

Country Status (2)

Country Link
CN (1) CN113016192A (en)
WO (1) WO2022061653A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596699A (en) * 2021-07-30 2021-11-02 浙江大华技术股份有限公司 Audio input detection circuit and method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710583A (en) * 2022-04-08 2022-07-05 维沃移动通信有限公司 Microphone calling method and device, electronic equipment and readable storage medium
CN116261081B (en) * 2023-05-16 2023-08-01 合肥联宝信息技术有限公司 Earphone circuit and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790832A (en) * 2004-12-13 2006-06-21 Lg电子株式会社 Earphone jack for portable terminal
CN201197258Y (en) * 2007-01-05 2009-02-18 苹果公司 Electronic apparatus
CN102053932A (en) * 2009-10-29 2011-05-11 宏达国际电子股份有限公司 Electronic device and method for identifying electronic accessory therein
CN102448006A (en) * 2010-10-14 2012-05-09 鸿富锦精密工业(深圳)有限公司 Detection circuit of audio equipment
CN203445303U (en) * 2013-09-03 2014-02-19 国家电网公司 Audio frequency device plug capable of being conveniently marked
CN208522979U (en) * 2018-04-19 2019-02-19 北京字节跳动网络技术有限公司 A kind of audio frequency apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106338937B (en) * 2015-07-08 2020-09-11 马维尔亚洲私人有限公司 Apparatus and method for generating an output signal based on a detected load resistance value
CN210377436U (en) * 2019-07-31 2020-04-21 深圳市时商创展科技有限公司 Detection circuit and switching terminal
CN110430503A (en) * 2019-08-06 2019-11-08 合肥联宝信息技术有限公司 A kind of audio socket

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790832A (en) * 2004-12-13 2006-06-21 Lg电子株式会社 Earphone jack for portable terminal
CN201197258Y (en) * 2007-01-05 2009-02-18 苹果公司 Electronic apparatus
CN102053932A (en) * 2009-10-29 2011-05-11 宏达国际电子股份有限公司 Electronic device and method for identifying electronic accessory therein
CN102448006A (en) * 2010-10-14 2012-05-09 鸿富锦精密工业(深圳)有限公司 Detection circuit of audio equipment
CN203445303U (en) * 2013-09-03 2014-02-19 国家电网公司 Audio frequency device plug capable of being conveniently marked
CN208522979U (en) * 2018-04-19 2019-02-19 北京字节跳动网络技术有限公司 A kind of audio frequency apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596699A (en) * 2021-07-30 2021-11-02 浙江大华技术股份有限公司 Audio input detection circuit and method
CN113596699B (en) * 2021-07-30 2023-03-17 浙江大华技术股份有限公司 Audio input detection circuit and method

Also Published As

Publication number Publication date
WO2022061653A1 (en) 2022-03-31

Similar Documents

Publication Publication Date Title
CN113016192A (en) Plug detection device, audio processing equipment, audio processing system and plug detection method
US8412268B2 (en) Detection, identification and operation of pheripherals connected via an audio/video-plug to an electronic device
US10659874B2 (en) Audio I O headset plug and plug detection circuitry
CN102638743B (en) Audio accessory type detection and connector pin signal assignment
KR102105315B1 (en) Detection circuit
CN101179871B (en) Earphone and audio play device
US6069960A (en) Connector device for information-handling apparatus and connector device for stereophonic audio/video apparatus
EP2451188A2 (en) Using accelerometers for left right detection of headset earpieces
KR101941509B1 (en) Apparatus and method for preventing error recognition in earjack
CN113038321A (en) Earphone system and communication method of charging box and earphone
KR20160052405A (en) Audio crosstalk calibration switch
KR102081336B1 (en) Audio System, Audio Device and Method for Channel Mapping Thereof
US7574011B2 (en) Detection device
EP2797346B1 (en) Detection circuit
CN106465005A (en) Earphone type identification method, apparatus and terminal device
US9998815B2 (en) Portable device and method for entering power-saving mode
US6934396B1 (en) Speaker embedded with oral setup tutorial
JPH09148861A (en) Acoustic equipment
KR20150107518A (en) Electronic device having function for removing noise
US7502478B2 (en) Stereo audio headset interface and method that is compatible with mono headsets
CN100483865C (en) Universal audio jack and plug
EP1700463A1 (en) Accessory functions
CN109218914B (en) Audio playing device and audio transmission circuit
CN108646852A (en) Identify equipment, method and the mobile terminal of self-timer
KR101134773B1 (en) Apparatus and method for Outputing Audio

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210622

WD01 Invention patent application deemed withdrawn after publication