WO2022061653A1 - Jack-plug detection apparatus, audio processing device, audio processing system, and jack-plug detection method - Google Patents

Jack-plug detection apparatus, audio processing device, audio processing system, and jack-plug detection method Download PDF

Info

Publication number
WO2022061653A1
WO2022061653A1 PCT/CN2020/117456 CN2020117456W WO2022061653A1 WO 2022061653 A1 WO2022061653 A1 WO 2022061653A1 CN 2020117456 W CN2020117456 W CN 2020117456W WO 2022061653 A1 WO2022061653 A1 WO 2022061653A1
Authority
WO
WIPO (PCT)
Prior art keywords
plug
contact terminal
audio
contact
detection
Prior art date
Application number
PCT/CN2020/117456
Other languages
French (fr)
Chinese (zh)
Inventor
林浩
周事成
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202080006074.XA priority Critical patent/CN113016192A/en
Priority to PCT/CN2020/117456 priority patent/WO2022061653A1/en
Publication of WO2022061653A1 publication Critical patent/WO2022061653A1/en

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

Abstract

A jack-plug detection apparatus (10), an audio processing device (100), an audio processing system (1000) and a jack-plug detection method. The jack-plug detection apparatus (10) comprises a detection module (12) and a plurality of contact terminals (11), wherein the detection module (12) applies detection voltages to the contact terminals (11) to detect electrical parameters of the contact terminals, acquires an audio signal parameter of an audio signal, and determines a signal type of a jack-plug part (211) according to the electrical parameters and the audio signal parameter.

Description

插头检测装置、音频处理设备、音频处理系统和插头检测方法Plug detection device, audio processing device, audio processing system and plug detection method 技术领域technical field
本申请涉及音频设备技术领域,特别涉及插头检测装置、音频处理设备、音频处理系统和插头检测方法。The present application relates to the technical field of audio equipment, and in particular, to a plug detection device, an audio processing device, an audio processing system and a plug detection method.
背景技术Background technique
耳机、麦克风等音频设备的插头和利用音频设备进行播放和录音的设备(如手机、电脑、云台、可移动平台等)的接口一般是适配的,例如三段式插头适配三段式接口,四段式插头适配四段式接口,目前,播放和录音的设备是无法识别和适配耳机插头的类型的,在将四段式插头插入三段式接口中,一般音频设备的插头类型是无法被识别检测且适配的,导致音频设备无法正常工作,此时需要人为选择合适的转接头才能够实现四段式插头与三段式接口的适配。The plugs of audio equipment such as headphones and microphones and the interfaces of equipment that use audio equipment for playback and recording (such as mobile phones, computers, PTZs, mobile platforms, etc.) are generally compatible. For example, three-stage plugs are suitable for three-stage Interface, the four-segment plug is adapted to the four-segment interface. At present, the playback and recording equipment cannot recognize and adapt to the type of headphone plug. When the four-segment plug is inserted into the three-segment interface, the general audio The type cannot be recognized, detected and adapted, resulting in the audio device not working properly. At this time, it is necessary to manually select the appropriate adapter to realize the adaptation of the four-segment plug and the three-segment interface.
发明内容SUMMARY OF THE INVENTION
本申请的实施方式提供一种插头检测装置、音频处理设备、音频处理系统和插头检测方法。Embodiments of the present application provide a plug detection apparatus, an audio processing device, an audio processing system, and a plug detection method.
本申请实施方式提供一种插头检测装置,插头检测装置包括:检测模块和多个接触端子;多个接触端子设置在接口内,接口用于容纳音频设备的插头,当插头插接至接口,多个接触端子分别与沿插头的轴向排列的不同插头部位接触;检测模块用于向接触端子施加检测电压,并检测接触端子的电参数;通过接触端子获取与接触端子接触的插头部位的音频信号,并获取音频信号的音频信号参数;根据电参数和音频信号参数确定插头部位的信号类型。Embodiments of the present application provide a plug detection device. The plug detection device includes: a detection module and a plurality of contact terminals; the plurality of contact terminals are arranged in an interface, and the interface is used for accommodating a plug of an audio device. Each contact terminal is in contact with different plug parts arranged along the axial direction of the plug respectively; the detection module is used to apply a detection voltage to the contact terminal and detect the electrical parameters of the contact terminal; obtain the audio signal of the plug part in contact with the contact terminal through the contact terminal , and obtain the audio signal parameters of the audio signal; determine the signal type of the plug part according to the electrical parameters and the audio signal parameters.
本申请实施方式提供一种音频处理设备,音频处理设备包括承载装置和插头检测装置。承载装置形成有接口,接口用于容纳音频设备的插头;插头检测装置的多个接触端子设置在接口内。插头检测装置包括:检测模块和多个接触端子;多个接触端子设置在接口内,接口用于容纳音频设备的插头,当插头插接至接口,多个接触端子分别与沿插头的轴向排列的不同插头部位接触;检测模块用于向接触端子施加检测电压,并检测接触端子的电参数;通过接触端子获取与接触端子接触的插头部位的音频信号,并获取音频信号的音频信号参数;根据电参数和音频信号参数确定插头部位的信号类型。Embodiments of the present application provide an audio processing device, where the audio processing device includes a bearing device and a plug detection device. The carrying device is formed with an interface for accommodating a plug of the audio equipment; a plurality of contact terminals of the plug detection device are arranged in 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, and the interface is used for accommodating the plug of the audio equipment. When the plug is inserted into the interface, the plurality of contact terminals are respectively arranged along the axial direction of the plug. The different plug parts are in contact with each other; the detection module is used to apply a detection voltage to the contact terminal and detect the electrical parameters of the contact terminal; obtain the audio signal of the plug part in contact with the contact terminal through the contact terminal, and obtain the audio signal parameters of the audio signal; Electrical parameters and audio signal parameters determine the signal type at the plug site.
本申请实施方式还提供一种音频处理系统,音频处理系统音频设备和音频处理设备,音频处理设备包括承载装置和插头检测装置。承载装置形成有接口,接口用于容纳音频设 备的插头;插头检测装置的多个接触端子设置在接口内。插头检测装置包括:检测模块和多个接触端子;多个接触端子设置在接口内,接口用于容纳音频设备的插头,当插头插接至接口,多个接触端子分别与沿插头的轴向排列的不同插头部位接触;检测模块用于向接触端子施加检测电压,并检测接触端子的电参数;通过接触端子获取与接触端子接触的插头部位的音频信号,并获取音频信号的音频信号参数;根据电参数和音频信号参数确定插头部位的信号类型。Embodiments of the present application further provide an audio processing system, an audio processing system audio device, and an audio processing device, where the audio processing device includes a bearing device and a plug detection device. The carrier device is formed with an interface for accommodating a plug of the audio equipment; a plurality of contact terminals of the plug detection device are arranged in 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, and the interface is used for accommodating the plug of the audio equipment. When the plug is inserted into the interface, the plurality of contact terminals are respectively arranged along the axial direction of the plug. The different plug parts are in contact with each other; the detection module is used to apply a detection voltage to the contact terminal and detect the electrical parameters of the contact terminal; obtain the audio signal of the plug part in contact with the contact terminal through the contact terminal, and obtain the audio signal parameters of the audio signal; Electrical parameters and audio signal parameters determine the signal type at the plug site.
本申请实施方式还提供一种插头检测方法,用于插头检测装置,插头检测装置包括多个接触端子,多个接触端子设置在接口内,接口用于容纳音频设备的插头,当插头插接至接口,多个接触端子分别与沿插头的轴向排列的不同插头部位接触;插头检测方法包括:向接触端子施加检测电压,并检测接触端子的电参数;通过接触端子获取与接触端子接触的插头部位的音频信号,并获取音频信号的音频信号参数;根据电参数和音频信号参数确定插头部位的信号类型。另外,由于插头检测装置设置有多个分别与沿插头的轴向排列的不同插头部位接触的接触端子,通过选择性的控制对应的接触端子和插头部位的连接的通断,无需使用转接头,即可实现一个接口适配具有不同类型的插头的多种音频设备。Embodiments of the present application further provide a plug detection method for a plug detection device, where the plug detection device includes a plurality of contact terminals, and the plurality of contact terminals are arranged in an interface, and the interface is used for accommodating a plug of an audio device. The interface, a plurality of contact terminals are respectively in contact with different plug parts arranged along the axial direction of the plug; the plug detection method includes: applying a detection voltage to the contact terminal, and detecting the electrical parameters of the contact terminal; obtaining the plug contacting the contact terminal through the contact terminal The audio signal of the part is obtained, and the audio signal parameters of the audio signal are obtained; the signal type of the plug part is determined according to the electrical parameters and the audio signal parameters. In addition, since the plug detection device is provided with a plurality of contact terminals which are respectively in contact with different plug parts arranged along the axial direction of the plug, by selectively controlling the on-off of the connection between the corresponding contact terminal and the plug part, there is no need to use an adapter, One interface can be adapted to a variety of audio devices with different types of plugs.
本申请实施方式的插头检测装置、音频处理设备、音频处理系统和插头检测方法中,根据接触端子接触的音频设备的插头的不同插头部位的阻抗特性的不同,接触端子的电参数也不同的特性,及能够表征插头部位是否为正常音频设备的音频信号参数共同确定信号类型,信号类型可表征插头部位的功能类型,从而确定音频设备的类型。另外,由于插头检测装置设置有多个分别与沿插头的轴向排列的不同插头部位接触的接触端子,通过选择性的控制对应的接触端子和插头部位的连接的通断,无需使用转接头,即可实现一个接口适配具有不同类型的插头的多种音频设备。In the plug detection device, audio processing device, audio processing system, and plug detection method according to the embodiments of the present application, according to the difference in impedance characteristics of different plug parts of the plug of the audio device contacted by the contact terminal, the characteristics of the electrical parameters of the contact terminal are also different. , and the audio signal parameters that can characterize whether the plug part is a normal audio device jointly determine the signal type, and the signal type can represent the functional type of the plug part, thereby determining the type of audio device. In addition, since the plug detection device is provided with a plurality of contact terminals which are respectively in contact with different plug parts arranged along the axial direction of the plug, by selectively controlling the on-off of the connection between the corresponding contact terminal and the plug part, there is no need to use an adapter, One interface can be adapted to a variety of audio devices with different types of plugs.
本申请的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实施方式的实践了解到。Additional aspects and advantages of embodiments of the present application will be set forth, in part, in the following description, and in part will be apparent from the following description, or learned by practice of embodiments of the present application.
附图说明Description of drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1是本申请某些实施方式的音频处理系统的结构示意图。FIG. 1 is a schematic structural diagram of an audio processing system according to some embodiments of the present application.
图2是本申请某些实施方式的插头检测装置的结构示意图。FIG. 2 is a schematic structural diagram of a plug detection device according to some embodiments of the present application.
图3是本申请某些实施方式的插头和接口的结合示意图。FIG. 3 is a schematic diagram of the combination of a plug and an interface according to some embodiments of the present application.
图4至图18是本申请某些实施方式的插头检测方法的流程示意图。4 to 18 are schematic flowcharts of plug detection methods according to some embodiments of the present application.
图19是本申请某些实施方式的插头检测装置的结构示意图。FIG. 19 is a schematic structural diagram of a plug detection device according to some embodiments of the present application.
具体实施方式detailed description
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present application, and should not be construed as a limitation on the present application.
在本申请的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present application, it should be understood that the terms "first" and "second" are only used for description purposes, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined as "first", "second" may expressly or implicitly include one or more features. In the description of the present application, "plurality" means two or more, unless otherwise expressly and specifically defined.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通信;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection Connection, or integral connection; it can be a mechanical connection, an electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal communication of two elements or the interaction of two elements relation. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations.
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present application, and should not be construed as a limitation on the present application.
音频设备(如耳机、麦克风等)的插头的规格是不同的,首先,音频设备的尺寸(一般指插头的长度)存在差异,目前,市面上常见的音频设备(如耳机、麦克风等)的插头一般是3.5毫米(mm)的,然而在一些款式较老的音频设备,或者一些非常规领域的设备上使用的音频设备上,仍可能有2.5mm、6.35mm等类型的插头;其次,音频设备的插头的段数也是不同的,有两段、三段或四段的插头,一般的单声道的音频设备为两段式插头,立体声(包含左右声道)的音频设备一般为三段式插头,更进一步的,具有麦克风功能的立体声的音频设备一般为四段式结构,段数的不同也导致了上述提到的插头的尺寸的不同。The specifications of the plugs of audio equipment (such as headphones, microphones, etc.) are different. First, the size of the audio equipment (generally refers to the length of the plug) is different. At present, the plugs of common audio equipment (such as headphones, microphones, etc.) on the market Generally, it is 3.5mm (mm). However, there may still be 2.5mm, 6.35mm and other types of plugs on some older audio equipment, or some audio equipment used in unconventional fields; secondly, audio equipment The number of segments of the plugs is also different. There are two-segment, three-segment or four-segment plugs. The general mono audio equipment is a two-segment plug, and the stereo (including left and right channels) audio equipment is generally a three-segment plug. , Further, stereo audio equipment with microphone function is generally a four-segment structure, and the difference in the number of segments also leads to the difference in the size of the above-mentioned plug.
而可进行播放和录音等功能的音频处理设备(如手机、电脑、云台、可移动平台等,本申请实施方式以云台为例)一般仅设置有一个接口,且接口仅适配一种类型(两段式、三段式、四段式等)的插头,如云台适配3.5mm的三段式插头,若在这些云台上插入具有2.5mm的二段式插头或6.35mm的四段式插头的音频设备时,云台是无法准确地识别和适配这些音频设备的,而是需要人为选择二段式插头转三段式插头的转接头,或者四段式插头转三段式插头的转接头,才能够实现二段式插头和的四段式插头与云台的适配。However, audio processing devices that can perform functions such as playback and recording (such as mobile phones, computers, PTZs, movable platforms, etc., the embodiments of this application take PTZs as an example) generally only have one interface, and the interface is only suitable for one type of interface. Type (two-stage, three-stage, four-stage, etc.) plugs, such as the 3.5mm three-stage plug for the gimbal, if a two-stage plug with 2.5mm or a 6.35mm plug is inserted on these heads When using audio devices with four-segment plugs, the gimbal cannot accurately identify and adapt to these audio devices. Instead, it is necessary to manually select a two-segment plug to three-segment plug adapter, or a four-segment plug to three-segment plug. The adapter of the type plug can realize the adaptation of the two-section plug and the four-section plug to the gimbal.
请参阅图1,本申请提供一种音频处理系统1000,音频处理系统1000包括音频设备200和音频处理设备100,音频设备200的插头210可拆卸地插接在音频处理设备100的接 口21内。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. A plug 210 of the audio device 200 is detachably plugged into the interface 21 of the audio processing device 100.
请参阅图1和图2,本申请提供一种音频处理设备100,音频处理设备100包括承载装置20和插头检测装置10。承载装置20形成有接口21,接口21用于容纳音频设备200的插头210;插头检测装置10的多个接触端子11设置在接口21内。音频处理设备100包括成像设备、云台、可移动平台(如无人机)中的任意一种。Referring to FIG. 1 and FIG. 2 , the present application provides an audio processing apparatus 100 . The audio processing apparatus 100 includes a carrying apparatus 20 and a plug detection apparatus 10 . The carrier device 20 is formed with an interface 21 for accommodating the plug 210 of the audio device 200 ; the plurality of contact terminals 11 of the plug detection device 10 are arranged in the interface 21 . The audio processing device 100 includes any one of an imaging device, a pan/tilt, and a movable platform (such as a drone).
本申请实施方式中,音频处理设备100为云台。云台用于安装终端(如手机),手机可与云台连接,手机可进行音频播放并将音频信号传输给云台,云台通过接口21内插接的插头210传输音频信号给音频设备(如耳机),从而实现音频的播放;或者,音频设备200可进行录音,录音信号通过插头210和接口21的连接,传输给云台,然后由云台传输给手机。当然,云台本身也可具有音频播放功能和录音功能,而无需借助手机实现音频播放和录音。In the embodiment of the present application, the audio processing device 100 is a pan/tilt. The PTZ is used to install a terminal (such as a mobile phone), the mobile phone can be connected to the PTZ, the mobile phone can play audio and transmit the audio signal to the PTZ, and the PTZ transmits the audio signal to the audio equipment through the plug 210 inserted in the interface 21 ( For example, headphones) to realize audio playback; or, the audio device 200 can record, and the recording signal is transmitted to the PTZ through the connection between the plug 210 and the interface 21, and then transmitted from the PTZ to the mobile phone. Of course, the PTZ itself can also have audio playback and recording functions, without the need for a mobile phone to achieve audio playback and recording.
请参阅图1至图4,本申请提供一种插头检测方法,用于插头检测装置10,插头检测装置10包括多个接触端子11,多个接触端子11设置在接口21内,接口21用于容纳音频设备200的插头210,当插头210插接至接口21,多个接触端子11分别与沿插头210的轴向排列的不同插头部位211接触;插头检测方法包括:Referring to FIGS. 1 to 4 , the present application provides a plug detection method for the plug detection device 10 . The plug detection device 10 includes a plurality of contact terminals 11 , and the plurality of contact terminals 11 are arranged in the interface 21 , and the interface 21 is used for When the plug 210 of the audio device 200 is accommodated, when the plug 210 is inserted into the interface 21, the plurality of contact terminals 11 respectively contact with different plug parts 211 arranged along the axial direction of the plug 210; the plug detection method includes:
011:向接触端子11施加检测电压,并检测接触端子11的电参数;011: Apply a detection voltage to the contact terminal 11, and detect the electrical parameter of the contact terminal 11;
所述电参数包括所述接触端子的电性参数,例如,电压,电流,电阻中的一种或者多种参数。其中,不同阻抗特性的插头部位211与接触端子11接触,接触端子11的电参数不同。也就是说,所述电参数的取值,可以根据所述检测电压和与所述接触端子接触的插头部位211的阻抗特性得到的。The electrical parameters include electrical parameters of the contact terminal, for example, one or more parameters of voltage, current, and resistance. The plug parts 211 with different impedance characteristics are in contact with the contact terminals 11 , and the electrical parameters of the contact terminals 11 are different. That is to say, the value of the electrical parameter can be obtained according to the detection voltage and the impedance characteristic of the plug portion 211 in contact with the contact terminal.
012:通过接触端子11获取与接触端子11接触的插头部位211的音频信号,并获取音频信号的音频信号参数;012: Obtain the audio signal of the plug part 211 in contact with the contact terminal 11 through the contact terminal 11, and obtain the audio signal parameters of the audio signal;
013:根据电参数和音频信号参数确定插头部位211的信号类型。013: Determine the signal type of the plug part 211 according to the electrical parameter and the audio signal parameter.
本申请提供一种插头检测装置10,插头检测装置10包括检测模块12和多个接触端子11。多个接触端子11设置在接口21内,接口21用于容纳音频设备200的插头210,当插头210插接至接口21,多个接触端子11分别与沿插头210的轴向排列的不同插头部位211接触;检测模块12用于执行步骤011、步骤012和步骤013。即检测模块12用于向接触端子11施加检测电压,并检测接触端子11的电参数,其中,不同阻抗特性的插头部位211与接触端子11接触,接触端子11的电参数不同;通过接触端子11获取与接触端子11接触的插头部位211的音频信号,并获取音频信号的音频信号参数;根据电参数和音频信号参数确定插头部位211的信号类型。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 . A plurality of contact terminals 11 are arranged in the interface 21 , and the interface 21 is used to accommodate the plug 210 of the audio device 200 . When the plug 210 is inserted into the interface 21 , the plurality of contact terminals 11 are respectively connected with different plug parts arranged along the axial direction of the plug 210 . 211 contact; the detection module 12 is used to execute step 011, step 012 and step 013. That is, the detection module 12 is used to apply a detection voltage to the contact terminal 11 and detect the electrical parameters of the contact terminal 11, wherein the plug parts 211 with different impedance characteristics are in contact with the contact terminal 11, and the electrical parameters of the contact terminal 11 are different; Acquire the audio signal of the plug part 211 in contact with the contact terminal 11, and acquire the audio signal parameters of the audio signal; determine the signal type of the plug part 211 according to the electrical parameters and the audio signal parameters.
具体的,本申请的插头检测装置10包括多个接触端子11,例如插头检测装置10包括两个接触端子11、三个接触端子11、四个接触端子11等,本申请实施方式中,插头检测 装置10包括四个接触端子11,可用于分别检测四段式插头210的四个不同的插头部位211,当插头210插接至用于容纳插头210的接口21时(如图3所示),四个接触端子11分别与沿插头210的轴向排列的不同插头部位211接触。四个接触端子11分别为第一接触端子111、第二接触端子112、第三接触端子113和第四接触端子114,插头210插入的方向(如图3中的X方向)即为第一接触端子111至第四接触端子114的排列方向,当插入四段式插头210,第一接触端子111至第四接触端子114分别与四段式插头210的四个不同的插头部位211接触;当插入三段式插头210时,第一接触端子111至第三接触端子113分别与三段式插头210的三个不同的插头部位211接触;当插入二段式插头210时,第一接触端子111至第二接触端子112分别与三段式插头210的二段不同的插头部位211接触。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 , etc. In the embodiment of the present application, the plug detection The device 10 includes four contact terminals 11, which can be used to detect four different plug parts 211 of the four-section plug 210 respectively. When the plug 210 is inserted into the interface 21 for accommodating the plug 210 (as shown in FIG. 3 ), The four contact terminals 11 are respectively in contact with different plug parts 211 arranged along the axial direction of the plug 210 . The four contact terminals 11 are the first contact terminal 111 , the second contact terminal 112 , the third contact terminal 113 and the fourth contact terminal 114 respectively, and the direction in which the plug 210 is inserted (X direction in FIG. 3 ) is the first contact The arrangement direction of the terminal 111 to the fourth contact terminal 114, when the four-section plug 210 is inserted, the first contact terminal 111 to the fourth contact terminal 114 are in contact with four different plug parts 211 of the four-section plug 210 respectively; When the three-section plug 210 is inserted, the first contact terminal 111 to the third contact terminal 113 are in contact with three different plug parts 211 of the three-section plug 210 respectively; when the two-section plug 210 is inserted, the first contact terminal 111 to The second contact terminals 112 are respectively in contact with two different plug parts 211 of the three-segment plug 210 .
检测模块12包括电源单元121和参数读取单元122。电源单元121通过给接触端子11施加检测电压(如电源单元121向接触端子11施加偏置电压,电源单元121可以是编译编码器(Codec)的内部输出电源、低压差线性稳压器(low dropout regulator,LDO)电源等直流输出电源),此时,参数读取单元122可获取到被施加了偏置电压的接触端子11的电参数,电参数可包括电压和电流,可以理解,当给接触端子11施加偏置电压后,即可获取到接触端子11的电压,由于不同的插头部位211中间是存在绝缘环间隔的,接触端子11的电压仅与接触的插头部位211有关。每个插头部位211的功能类型(如作为播放设备、有源麦克风、无源麦克风、接地等)不同,其阻抗特性也是不同的,而阻抗特性的不同,会导致与插头部位211的接触端子11的电压也不同。因此,检测模块12根据接触端子11的电压可初步判断与其接触的插头部位211的功能类型,如功能类型为播放设备、麦克风、接地等。在确定每个插头部位211的功能类型后,即可初步确定插头210的类型。当然,当功能类型为播放设备(麦克风)的插头210的数量为2时,播放设备(麦克风)包含左声道和右声道,左右声道对应的插头部位211的阻抗特性也可能是相同的,检测模块12可根据两者的轴向排列位置确定插头部位211为左声道还是右声道,例如,一般的,左声道和右声道一般沿着插头210插入方向的反方向(即,图3中的X方向的反方向)依次排列,在插头210插入后,左声道更为远离接口21的出口处,检测模块12根据电参数和两者的轴向排列位置可确定插头部位211为左声道还是右声道;或者,在存在两个功能类型均为播放设备的插头部位211时,检测模块12可以其中任一插头部位211作为左声道,而另一插头部位211作为右声道。The detection module 12 includes a power supply unit 121 and a parameter reading unit 122 . The power supply unit 121 applies 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 can be an internal output power supply of a codec (Codec), a low dropout linear regulator (low dropout regulator, LDO) power supply and other DC output power supplies), at this time, the parameter reading unit 122 can obtain the electrical parameters of the contact terminal 11 to which the bias voltage is applied, and the electrical parameters can include voltage and current. After the bias voltage is applied to the terminal 11, the voltage of the contact terminal 11 can be obtained. Since there are insulating rings between different plug parts 211, the voltage of the contact terminal 11 is only related to the contact plug part 211. The function type of each plug part 211 (such as playing equipment, active microphone, passive microphone, grounding, etc.) is different, and its impedance characteristics are also different. voltage is also different. Therefore, the detection module 12 can preliminarily determine the functional type of the plug part 211 in contact with the contact terminal 11 according to the voltage, for example, the functional type is playback device, microphone, grounding, and the like. After the function type of each plug part 211 is determined, the type of the plug 210 can be preliminarily determined. Of course, when the number of plugs 210 whose function type is a playback device (microphone) is 2, the playback device (microphone) includes a left channel and a right channel, and the impedance characteristics of the plug parts 211 corresponding to the left and right channels may also be the same. , the detection module 12 can determine whether the plug part 211 is the left channel or the right channel according to the axial arrangement position of the two. , the opposite direction of the X direction in FIG. 3 ) are arranged in sequence, after the plug 210 is inserted, the left channel is farther away from the outlet of the interface 21, the detection module 12 can determine the position of the plug according to the electrical parameters and the axial arrangement position of the two 211 is the left channel or the right channel; or, when there are two plug parts 211 whose function types are both playback devices, the detection module 12 can use any one of the plug parts 211 as the left channel, and the other plug part 211 as the left channel. right channel.
由于有时候插入的插头210为非音频设备200、或者已经损坏的音频设备200的插头210时,若阻抗特性与音频设备200的插头210相同,也可能会被误识别为正常音频设备200的插头210,因此,在获取接触端子11的电压时,可同时获取与接触端子11接触的插头部位211的音频信号,音频信号为根据插头部位211的功能类型驱动插头部位211后, 从接触端子11处得到的信号。例如,插头部位211的功能类型为麦克风时,此时以麦克风驱动该插头部位211时,能够得到麦克风音频信号;再例如,插头部位211为播放设备时,此时以播放设备驱动该插头部位211时,能够得到播放音频信号;在插入的插头210为非音频设备200、或者已经损坏的音频设备200的插头210,可能导致麦克风音频信号(播放音频信号)无法得到,或者得到的麦克风音频信号(播放音频信号)与音频设备200正常驱动时得到的麦克风音频信号(播放音频信号)存在较大差异的,例如音频信号的音频信号参数存在较大差异,音频信号参数可包括幅值、频谱等。因此,通过电参数和音频信号参数可准确地确定插头210是否为正常音频设备200的插头210,并确定插头部位211的功能类型,从而准确识别音频设备200的类型。Because sometimes the plug 210 inserted is a plug 210 of a non-audio device 200 or a damaged audio device 200, if the impedance characteristic is the same as that of the plug 210 of the audio device 200, it may be mistakenly identified as a normal plug of the audio device 200 210, therefore, when acquiring the voltage of the contact terminal 11, the audio signal of the plug part 211 in contact with the contact terminal 11 can be acquired at the same time. obtained signal. For example, when the functional type of the plug part 211 is a microphone, the microphone audio signal can be obtained when the plug part 211 is driven by the microphone; for another example, when the plug part 211 is a playback device, the plug part 211 is driven by the playback device at this time. When the audio signal is played; when the inserted plug 210 is the plug 210 of the non-audio device 200 or the audio device 200 that has been damaged, it may cause that the microphone audio signal (playing audio signal) cannot be obtained, or the obtained microphone audio signal ( Playing audio signal) is quite different from the microphone audio signal (playing audio signal) obtained when the audio device 200 is normally driven, for example, the audio signal parameters of the audio signal are quite different, and the audio signal parameters may include amplitude, frequency spectrum, etc. Therefore, whether the plug 210 is the normal plug 210 of the audio device 200 can be accurately determined through the electrical parameters and audio signal parameters, and the functional type of the plug part 211 can be determined, thereby accurately identifying the type of the audio device 200 .
进一步的,检测模块12根据音频信号参数判断对应的插头部位211的功能类型,例如根据接触端子11的电参数确定插头部位211的功能类型为麦克风,若该接触端子11对应的音频信号参数表征插头部位211的功能类型为麦克风,则可准确地确定该插头部位211的功能类型为麦克风,可提高检测准确性;若该接触端子11对应的音频信号参数表征插头部位211的功能类型为播放设备,则说明以该接触端子11的电参数确定的插头部位211的功能类型可能存在错误,可以音频信号参数表征的插头部位211的功能类型为插头部位211的最终功能类型,或者重新获取插头部位211对应的电参数和音频信号参数,再次判断插头部位211的功能类型,提高插头部位211的功能类型检测准确性。Further, the detection module 12 determines the functional type of the corresponding plug part 211 according to the audio signal parameters, for example, according to the electrical parameters of the contact terminal 11 to determine that the functional type of the plug part 211 is a microphone, if the audio signal parameter corresponding to the contact terminal 11 represents the plug If the functional type of the part 211 is a microphone, it can be accurately determined that the functional type of the plug part 211 is a microphone, which can improve the detection accuracy; if the audio signal parameter corresponding to the contact terminal 11 indicates that the functional type of the plug part 211 is a playback device, Then it means that the functional type of the plug part 211 determined by the electrical parameters of the contact terminal 11 may be wrong. The electrical parameters and audio signal parameters are determined, the function type of the plug part 211 is judged again, and the detection accuracy of the function type of the plug part 211 is improved.
检测模块根据电参数和音频信号参数可确定插头部位的信号类型,信号类型可表征插头部位211的功能类型,例如,信号类型为与接触端子11及该接触端子11的功能类型对应的信号,使用5位二进制表示,如第一接触端子111至第四接触端子114使用5位二进制中的前2位进行表示,第一接触端子111对应“00”,第二接触端子112对应“01”,第三接触端子113对应“10”,第四接触端子114对应“11”;功能类型与5位二进制中的后3位进行表示,左声道播放设备对应“001”,右声道播放设备对应“010”,接地对应“011”,无源麦克风对应“100”,有源麦克风对应“101”。The detection module can determine the signal type of the plug part according to the electrical parameters and audio signal parameters, and the signal type can represent the function type of the plug part 211. For example, the signal type is the signal corresponding to the contact terminal 11 and the function type of the contact terminal 11, using 5-bit binary representation, for example, the first contact terminal 111 to the fourth contact terminal 114 are represented by the first 2 bits in the 5-bit binary, the first contact terminal 111 corresponds to "00", the second contact terminal 112 corresponds to "01", the first 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 three bits in the 5-bit binary, the left channel playback device corresponds to "001", and the right channel playback device corresponds to "11". 010", ground corresponds to "011", passive microphone corresponds to "100", and active microphone corresponds to "101".
如三段式立体声耳机,则其信号类型为“00001”(表示第一接触端子111的功能类型为左声道播放设备),“01010”(表示第二接触端子112的功能类型为右声道播放设备),“10011”(表示第三接触端子111的功能类型为接地)。如此,根据信号类型能够快速得到每个接触端子11对应的插头部位211的功能类型。For example, a three-stage stereo headset, its signal type 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" (indicates that the functional type of the third contact terminal 111 is ground). In this way, the function type of the plug portion 211 corresponding to each contact terminal 11 can be quickly obtained according to the signal type.
然后根据插头部位211的功能类型即可确定音频设备200的类型。例如,四个接触端子11识别到的对应的插头部位211的功能类型分别为左声道播放设备、右声道播放设备、接地和无源麦克风,则音频设备200的类型为四段式立体声带无源麦克风的耳机;再例如,三个接触端子11识别到的对应的插头部位211的功能类型分别为左声道、右声道和接地, 则表示音频设备200的类型为三段式立体声耳机。Then, the type of the audio device 200 can be determined according to the function type of the plug part 211 . For example, if the functional types of the corresponding plug parts 211 identified by the four contact terminals 11 are the left channel playback device, the right channel playback device, the grounding and the passive microphone, the type of the audio device 200 is a four-segment stereo band. Headphones for passive microphones; for another example, if the functional types of the corresponding plug parts 211 identified by the three contact terminals 11 are respectively left channel, right channel and ground, it means that the type of the audio device 200 is a three-stage stereo earphone .
本申请插头检测方法、插头检测装置10、音频处理设备100和音频处理系统1000中,根据接触端子11接触的音频设备200的插头210的不同插头部位211的阻抗特性的不同,接触端子11的电参数也不同的特性,及能够表征插头部位211是否为正常音频设备200的音频信号参数共同确定信号类型,信号类型可表征插头部位211的功能类型,从而确定音频设备200的类型。另外,由于插头检测装置10设置有多个分别与沿插头210的轴向排列的不同插头部位211接触的接触端子11,通过选择性的控制对应的接触端子11和插头部位211的连接的通断,无需使用转接头,即可实现一个接口21适配具有不同类型的插头210的多种音频设备200。In the plug detection method, plug detection device 10 , audio processing device 100 and audio processing system 1000 of the present application, according to the difference in impedance characteristics of different plug parts 211 of the plug 210 of the audio device 200 contacted by the contact terminal 11 , the electrical power of the contact terminal 11 The characteristics of the parameters are also different, and the audio signal parameters that can characterize whether the plug part 211 is a normal audio device 200 together determine the signal type. In addition, since the plug detection device 10 is provided with a plurality of contact terminals 11 respectively in contact with different plug parts 211 arranged along the axial direction of the plug 210, the connection between the corresponding contact terminals 11 and the plug parts 211 can be selectively controlled on and off. , without using adapters, one interface 21 can be adapted to a variety of audio devices 200 with different types of plugs 210 .
请参阅图2和图5,在某些实施方式中,插头检测方法还包括:Referring to FIG. 2 and FIG. 5, in some embodiments, the plug detection method further includes:
014:依据信号类型,确定用于传输信号的插头部位211的数量;及014: Determine the number of plug parts 211 for transmitting the signal according to the signal type; and
015:依据用于传输信号的插头部位211的数量确定音频设备200的第一信息。015: Determine the first information of the audio device 200 according to the number of plug parts 211 for transmitting signals.
在某些实施方式中,检测模块12还用于执行步骤014和步骤015。即,检测模块12还用于依据信号类型,确定用于传输信号的插头部位211的数量;及依据用于传输信号的插头部位211的数量确定音频设备200的第一信息。In some embodiments, the detection module 12 is further configured to perform steps 014 and 015 . That is, the detection module 12 is further configured to determine the number of plug parts 211 for transmitting signals according to the signal type; and determine the first information of the audio device 200 according to the number of plug parts 211 for transmitting signals.
具体地,用于传输信号的插头部位211的功能类型一般包括播放设备、有源麦克风、无源麦克风、接地等,也即是说,能被检测模块12识别出功能类型的插头部位211一般是能够传输信号的。在检测模块12根据插头部位211的电参数和音频信号参数确定信号类型后,检测模块12可根据识别出功能类型的信号类型的数量,确定用于传输信号的插头部位211的数量,从而根据用于传输信号的插头部位211的数量确定音频设备200的第一信息,第一信息可包括音频设备200的段数,可以理解,音频设备200的段数可等于用于传输信号的插头部位211的数量。当然,音频设备200的段数还可大于用于传输信号的插头部位211的数量,由于插头检测装置10检测出的最大段数等于接触端子11的数量,当音频设备200的段数大于接触端子11的数量时,如为五段式插头,此时音频设备200的段数被检测的段数为4,但实际段数为5。Specifically, the functional types of the plug parts 211 used for transmitting signals generally include playback devices, active microphones, passive microphones, grounding, etc., that is to say, the plug parts 211 whose functional types can be identified by the detection module 12 are generally capable of transmitting signals. After the detection module 12 determines the signal type according to the electrical parameters and audio signal parameters of the plug part 211, the detection module 12 can determine the number of the plug parts 211 for transmitting the signal according to the number of signal types of the identified functional type, so as to determine the number of the plug parts 211 for transmitting the signal according to the use The number of plug parts 211 for transmitting signals determines the first information of the audio device 200, and the first information may include the number of segments of the audio device 200. It is understood that the number of segments of the audio device 200 may be equal to the number of plug parts 211 for transmitting signals. Of course, the number of segments of the audio device 200 can also be greater than the number of plug parts 211 for transmitting signals. Since the maximum number of segments detected by the plug detection device 10 is equal to the number of contact terminals 11 , when the number of segments of the audio device 200 is greater than the number of contact terminals 11 If it is a five-segment plug, the detected segment number of the audio device 200 is 4, but the actual segment number is 5.
请参阅图2和图6,在某些实施方式中,插头检测方法还包括:Referring to FIG. 2 and FIG. 6, in some embodiments, the plug detection method further includes:
016:依据信号类型,确定用于传输麦克风信号的插头部位211的数量;及016: Determine the number of plug parts 211 for transmitting microphone signals according to the signal type; and
017:依据用于传输麦克风信号的插头部位211的数量,确定音频设备200的第二信息。017: Determine the second information of the audio device 200 according to the number of the plug parts 211 for transmitting the microphone signal.
在某些实施方式中,检测模块12还用于执行步骤016和步骤017。即,检测模块12还用于依据信号类型,确定用于传输麦克风信号的插头部位211的数量;及依据用于传输麦克风信号的插头部位211的数量,确定音频设备200的第二信息。In some 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 parts 211 for transmitting microphone signals according to the signal type; and determine the second information of the audio device 200 according to the number of plug parts 211 for transmitting microphone signals.
具体地,当检测模块12根据插头部位211的电参数和音频信号参数确定信号类型后, 插头部位211的功能类型就确定了,其中,功能类型为麦克风的插头部位211即为用于传输麦克风信号的插头部位211。可以理解,麦克风也可以分为左声道麦克风和右声道麦克风,从单纯的阻抗特性来看,两者可能差异较小,当功能类型为麦克风的插头部位211的数量为两个时,即可确定当前的麦克风为双声道麦克风(即,包括左声道麦克风和右声道麦克风),当根据功能类型为麦克风的插头部位211的数量为三个时,即可确定当前的麦克风为三声道麦克风等;从而根据用于传输麦克风信号的插头部位211的数量确定音频设备200的第二信息,第二信息可包括音频设备200是否具有麦克风功能,如当用于传输麦克风信号的插头部位211的数量大于或等于1时,即认为音频设备200是具有麦克风功能;第二信息还可包括音频设备200的麦克风类型,如单声道麦克风、双声道麦克风、三声道麦克风等。Specifically, after the detection module 12 determines the signal type according to the electrical parameters and audio signal parameters of the plug part 211, the function type of the plug part 211 is determined, wherein the plug part 211 whose function type is a microphone is used for transmitting microphone signals 211 of the plug portion. It can be understood that microphones can also be divided into left channel microphones and right channel microphones. From the perspective of pure impedance characteristics, the difference between the two may be small. It can be determined that the current microphone is a two-channel microphone (that is, including a left-channel microphone and a right-channel microphone), and when the number of plug parts 211 for microphones according to the functional type is three, it can be determined that the current microphone is three. The second information of the audio device 200 is determined according to the number of the plug parts 211 for transmitting microphone signals, and the second information may include whether the audio device 200 has a microphone function, such as when the plug parts used for transmitting microphone signals When the number of 211 is greater than or equal to 1, it is considered that the audio device 200 has a microphone function; the second information may also include the microphone type of the audio device 200, such as a mono microphone, a two-channel microphone, a three-channel microphone, and the like.
请参阅图2和图7,在某些实施方式中,插头检测方法还包括:Referring to FIG. 2 and FIG. 7, in some embodiments, the plug detection method further includes:
018:若存在用于传输麦克风信号的插头部位211,则确定音频设备200具有麦克风功能;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:依据信号类型,判断用于传输麦克风信号的插头部位211是否向接触端子11施加电流;及019: According to the signal type, determine whether the plug portion 211 for transmitting the microphone signal applies current to the contact terminal 11; and
020:依据判断结果,确定音频设备200的第三信息。020: Determine the third information of the audio device 200 according to the judgment result.
在某些实施方式中,检测模块12还用于执行步骤018、步骤019和步骤020。即,检测模块12还用于在存在用于传输麦克风信号的插头部位211时,则确定音频设备200具有麦克风功能;依据信号类型,判断用于传输麦克风信号的插头部位211是否向接触端子11施加电流;及依据判断结果,确定音频设备200的第三信息。In some embodiments, the detection module 12 is further configured to perform steps 018 , 019 and 020 . That is, the detection module 12 is also used to determine that the audio device 200 has a microphone function when there is a plug portion 211 for transmitting microphone signals; according to the signal type, determine whether the plug portion 211 for transmitting microphone signals is applied to the contact terminal 11 . and the third information of the audio device 200 is determined according to the judgment result.
具体地,在根据用于传输麦克风信号的插头部位211的数量确定音频设备200具有麦克风功能后,可进一步判断音频设备200的麦克风类型,可以理解,除了根据用于传输麦克风信号的插头部位211的数量确定的麦克风的声道数量外,麦克风还存在有源麦克风和无源麦克风的区别,有源麦克风即为音频设备200设置有电源为该音频设备200供电,而无源麦克风则使用云台的接口21进行供电,音频设备200中插头部位211的功能类型还包括有源麦克风和无源麦克风,有源麦克风和无源麦克风对应的插头部位211阻抗特性不同,根据接触端子11的电压可判断插头部位211为有源麦克风还是无源麦克风,另外由于有源麦克风由音频设备200供电,在获取有源麦克风对应的接触端子11的电压时,可同时获取该接触端子11处的电流,判断是否接收外部电源输入的电流,依据判断结果,可确定音频设备200的第三信息,第三信息可包括音频设备200的麦克风是否有源,例如若用于传输麦克风信号的插头部位211向接触端子11施加了电流,则该插头部位211的功能类型为有源麦克风,若用于传输麦克风信号的插头部位211未向接触端子11施加了电流,则插头部 位211的功能类型为无源麦克风,从而根据判断结果确定用于传输麦克风信号的插头部位211是否有源,以进一步麦克风的功能类型,提高检测准确性。Specifically, after it is determined that the audio device 200 has a microphone function according to the number of plug parts 211 for transmitting microphone signals, the microphone type of the audio device 200 can be further determined. In addition to the number of channels of the microphones determined by the number, there are differences between active microphones and passive microphones. The interface 21 supplies power. The functional types of the plug part 211 in the audio device 200 also include active microphones and passive microphones. The impedance characteristics of the plug parts 211 corresponding to the active microphone and the passive microphone are different, and the plug can be determined according to the voltage of the contact terminal 11. The part 211 is an active microphone or a passive microphone. In addition, since the active microphone is powered by the audio device 200, when the voltage of the contact terminal 11 corresponding to the active microphone is obtained, the current at the contact terminal 11 can be obtained at the same time to determine whether to receive or not. The current input by the external power supply, according to the judgment result, can determine the third information of the audio device 200, and the third information can include whether the microphone of the audio device 200 is active, for example, if the plug part 211 for transmitting the microphone signal is applied to the contact terminal 11 If the plug part 211 for transmitting the microphone signal does not apply current to the contact terminal 11, the function type of the plug part 211 is a passive microphone, so according to the judgment As a result, it is determined whether the plug portion 211 for transmitting the microphone signal is active, so as to further improve the detection accuracy by further improving the function type of the microphone.
请参阅图2和图8,在某些实施方式中,步骤011包括:Referring to Figures 2 and 8, in some embodiments, step 011 includes:
0111:向多个接触端子11中的部分施加检测电压,并检测施加检测电压的接触端子11的电参数。0111: Apply a detection voltage to a portion of the plurality of contact terminals 11, and detect the electrical parameter of the contact terminal 11 to which the detection voltage is applied.
在某些实施方式中,检测模块12还用于执行步骤0111。即,检测模块12还用于向多个接触端子11中的部分施加检测电压,并检测施加检测电压的接触端子11的电参数。In some embodiments, the detection module 12 is further configured to perform step 0111. That is, the detection module 12 is also used to apply a detection voltage to some of the plurality of contact terminals 11 , and to detect electrical parameters of the contact terminals 11 to which the detection voltage is applied.
具体地,电源单元121单元用于向接触端子11施加检测电压,例如,电源单元121用于向多个接触端子11中的部分施加检测电压,该部分的数量小于或接触端子11的数量,如电源单元121用于向多个接触端子11中的一个施加检测电压,参数读取单元122用于读取施加了检测电压的接触端子11的电参数,如此,电源单元121可依次向多个接触端子11施加检测电压,从而使得参数读取单元122依次获取施加了检测电压的接触端子11的电参数;或者,电源单元121用于向多个接触端子11中的两个或三个施加检测电压,参数读取单元122用于读取施加了检测电压的接触端子11的电参数;如此,每次只需向部分接触端子11施加检测电压,且只需获取该部分接触端子11的电参数,电路设计较为简单。Specifically, the power supply unit 121 is used to apply the detection voltage to the contact terminals 11, for example, the power supply unit 121 is used to apply the detection voltage to a portion of the plurality of contact terminals 11, the number of which is smaller than or the number of the contact terminals 11, such as The power supply unit 121 is used to apply a detection voltage to one of the plurality of contact terminals 11, and the parameter reading unit 122 is used to read the electrical parameters of the contact terminal 11 to which the detection voltage has been applied. The detection voltage is applied to the terminal 11, so that the parameter reading unit 122 sequentially acquires the electrical parameters of the contact terminal 11 to which the detection voltage is applied; alternatively, the power supply unit 121 is used to apply the detection voltage to two or three of the plurality of contact terminals 11 , the parameter reading unit 122 is used to read the electrical parameters of the contact terminals 11 to which the detection voltage is applied; in this way, only a 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, The circuit design is relatively simple.
在其他实施方式中,电源单元121向所有接触端子11均施加检测电压,参数读取单元122用于读取施加了检测电压的接触端子11的电参数,从而基本同时完成所有接触端子11的电参数的获取,有利于提高检测效率。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 used to read the electrical parameters of the contact terminals 11 to which the detection voltage is applied, so as to complete the electrical parameters of all the contact terminals 11 at the same time. The acquisition of parameters is beneficial to improve the detection efficiency.
请参阅图2和图9,在某些实施方式中,接触端子11包括目标接触端子11,插头检测方法还包括:Referring to FIG. 2 and FIG. 9, in some embodiments, the contact terminal 11 includes the target contact terminal 11, and the plug detection method further includes:
021:依据信号类型,通过目标接触端子11驱动音频设备200。021: Drive the audio device 200 through the target contact terminal 11 according to the signal type.
在某些实施方式中,插头检测装置10还包括驱动模块13,驱动模块13用于执行步骤021。即,驱动模块13用于依据信号类型,通过目标接触端子11驱动音频设备200。In some embodiments, the plug detection device 10 further includes a driving module 13 , and the driving module 13 is configured to perform step 021 . That is, the driving module 13 is used to drive the audio device 200 through the target contact terminal 11 according to the signal type.
具体地,根据音频设备200的插头210的插头部位211的功能类型,可确定用于实现音频设备200功能的目标接触端子11,目标接触端子11为用于实现对应的插头部位211的功能的接触端子11,驱动模块13可选择性的控制对应的目标接触端子11和插头部位211的连接的通断,从而无需使用转接头,实现一个接口21适配多种具有不同类型插头210的音频设备200,也即是说,接触端子11不仅可实现对应的插头部位211的识别,还能够用于实现插头部位211的功能,例如第一接触端子111对应的插头部位211的功能类型为麦克风,若要实现麦克风功能,则目标接触端子为第一接触端子111,音频设备200获取的麦克风音频信号可通过插头部位211对应的第一接触端子111传输给云台,再例如,第二接触端子112对应的插头部位211的功能类型为播放设备,若要实现音频播放功能,则目标 接触端子为第二接触端子112,若要同时实现麦克风功能和音频播放功能,则目标接触端子为第一接触端子111和第二接触端子112,以实现音频播放功能为例,云台将播放音频信号通过第二接触端子112传输给对应的插头部位211,从而通过音频设备200播放音频。如此,通过选择性的控制对应的目标接触端子11和插头部位211的连接的通断,无需使用转接头,即可实现一个接口21适配具有不同类型的插头210的多种音频设备200。Specifically, according to the function type of the plug part 211 of the plug 210 of the audio device 200 , the target contact terminal 11 for realizing the function of the audio device 200 can be determined, and the target contact terminal 11 is the contact for realizing the function of the corresponding plug part 211 . For the terminal 11, the drive module 13 can selectively control the on-off of the connection between the corresponding target contact terminal 11 and the plug part 211, so that there is no need to use an adapter, so that one interface 21 can be adapted to a variety of audio devices 200 with different types of plugs 210. , that is to say, the contact terminal 11 can not only realize the identification of the corresponding plug part 211, but also can be used to realize the function of the plug part 211. For example, the function type of the plug part 211 corresponding to the first contact terminal 111 is a microphone. To achieve the microphone function, the target contact terminal is the first contact terminal 111 , and the microphone audio signal obtained by the audio device 200 can be transmitted to the pan/tilt through the first contact terminal 111 corresponding to the plug part 211 . For example, the second contact terminal 112 corresponds to The function type of the plug part 211 is a playback device. If the audio playback function is to be realized, the target contact terminal is the second contact terminal 112. If the microphone function and the audio playback function are to be realized at the same time, the target contact terminal is the first contact terminal 111 and the audio playback function. Taking the second contact terminal 112 as an example to realize the audio playback function, the PTZ transmits the playback audio signal to the corresponding plug part 211 through the second contact terminal 112 , so as to play the audio through the audio device 200 . In this way, by selectively controlling the connection between the corresponding target contact terminal 11 and the plug part 211 , one interface 21 can be adapted to a variety of audio devices 200 with different types of plugs 210 without using an adapter.
请参阅图2和图10,在某些实施方式中,接触端子11包括插入接触端子115,插头检测方法还包括:Referring to FIG. 2 and FIG. 10 , in some embodiments, the contact terminal 11 includes an insertion contact terminal 115 , and the plug detection method further includes:
022:依据插入接触端子115的电参数,检测是否有插头210插接至接口21。022 : Detect whether a plug 210 is inserted into the interface 21 according to the electrical parameters of the inserted contact terminal 115 .
在某些实施方式中,接触端子11包括插入接触端子115,检测模块12还用于执行步骤022。即,检测模块12还用于依据插入接触端子115的电参数,检测是否有插头210插接至接口21。In some embodiments, the contact terminal 11 includes the plug-in contact terminal 115 , and the 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 inserted into the interface 21 according to the electrical parameters of the inserted contact terminal 115 .
具体地,请参阅图2,可以理解,在插头210插入接口21后,即使最短的两段式插头210也能够顶开第三接触端子113和第四接触端子114,因此,在初始状态(未插入插头210的状态)时,插入接触端子115可与第三接触端子113或第四接触端子114接触的,从而保证任意类型的插头21插入后均可以被检测到。本实施方式以插入接触端子115与第三接触端子113接触为例进行说明,插入接触端子115与第四接触端子114接触时的检测原理基本类似,在此不再赘述。Specifically, referring to FIG. 2 , it can be understood that after the plug 210 is inserted into the interface 21 , even the shortest two-section plug 210 can push the third contact terminal 113 and the fourth contact terminal 114 away. When the plug 210 is inserted), the inserted contact terminal 115 can be in contact with the third contact terminal 113 or the fourth contact terminal 114, so as to ensure that any type of plug 21 can be detected after being inserted. In this embodiment, the insertion contact terminal 115 is in contact with the third contact terminal 113 as an example for description. The detection principle when the insertion contact terminal 115 is in contact with the fourth contact terminal 114 is basically similar, and will not be repeated here.
请参阅图3,在插头210插入接口21后,第三接触端子113与插入接触端子115的接触断开,参数读取单元122在第三接触端子113与插入接触端子115接触和断开时,从插入接触端子115处接收的电参数是不同的,因此,根据插入接触端子115处的电参数可准确地判断是否有插头210插接至接口21。例如,电参数包括电压,第三接触端子113与插入接触端子115接触时,电压为电源单元121的电压,而第三接触端子113与插入接触端子115断开时,电压为0,从而根据插入接触端子115的电压判断是否有插头210插接至接口21。Referring to FIG. 3 , after the plug 210 is inserted into the interface 21 , the contact between the third contact terminal 113 and the inserted contact terminal 115 is disconnected, and when the parameter reading unit 122 contacts and disconnects the third contact terminal 113 and the inserted contact terminal 115 , The electrical parameters received from the plug-in contact terminals 115 are different. Therefore, whether the plug 210 is plugged into the interface 21 can be accurately determined according to the electrical parameters at the plug-in contact terminals 115 . For example, the electrical parameters include voltage, when the third contact terminal 113 is in contact with the insertion contact terminal 115, the voltage is the voltage of the power supply unit 121, and when the third contact terminal 113 is disconnected from the insertion contact terminal 115, the voltage is 0, so that according to the insertion The voltage of the contact terminal 115 determines whether a plug 210 is plugged into the interface 21 .
在其他实施方式中,多个接触端子11中的任一个(如第三接触端子113或第四接触端子114)作为插入接触端子115,插入接触端子115除了可识别对应的插头部位211的功能类型外,还可以进行插入检测,只要任一插头210插入接口21内,就会与该插入接触端子115接触,从而可根据插入接触端子115的电参数检测是否有插头210插入接口21。In other embodiments, any one of the plurality of contact terminals 11 (such as the third contact terminal 113 or the fourth contact terminal 114 ) is used as the plug-in contact terminal 115 , except that the plug-in contact terminal 115 can identify the function type of the corresponding plug part 211 In addition, insertion detection can also be performed. As long as any plug 210 is inserted into the interface 21 , it will contact the insertion contact terminal 115 , so that whether a plug 210 is inserted into the interface 21 can be detected according to the electrical parameters of the inserted contact terminal 115 .
请参阅图2和图11,在某些实施方式中,步骤012包括:2 and 11, in some embodiments, step 012 includes:
0121:基于电参数确定与接触端子11接触的插头部位211的功能类型信息;0121: Determine the function type information of the plug part 211 in contact with the contact terminal 11 based on the electrical parameter;
0122:根据功能类型信息,通过接触端子11获取与接触端子11接触的插头部位211的音频信号。0122: Acquire the audio signal of the plug part 211 in contact with the contact terminal 11 through the contact terminal 11 according to the function type information.
在某些实施方式中,检测模块12还用于执行步骤0121和步骤0122。即,检测模块12还用于基于电参数确定与接触端子11接触的插头部位211的功能类型信息;根据功能类型信息,通过接触端子11获取与接触端子11接触的插头部位211的音频信号。In some embodiments, the detection module 12 is further configured to perform steps 0121 and 0122. That is, the detection module 12 is also used to determine the function type information of the plug part 211 in contact with the contact terminal 11 based on the electrical parameters;
具体地,在获取音频信号时,先基于插头部位211对应的接触端子11的电参数确定该插头部位211的功能类型信息,功能类型信息包括播放设备、麦克风、接地等,功能类型信息用于表征对应的插头部位211的功能,如功能类型信息为播放设备,则插头部位211的功能为播放音频;功能类型信息为麦克风,则插头部位211的功能为录音功能。然后驱动模块13根据插头部位211的功能类型驱动插头部位211实现对应的功能,例如,插头部位211的功能类型为麦克风时,此时以麦克风驱动该插头部位211时,能够得到麦克风音频信号;再例如,插头部位211为播放设备时,此时以播放设备驱动该插头部位211时,能够得到播放音频信号;Specifically, when acquiring the audio signal, first determine the function type information of the plug part 211 based on the electrical parameters of the contact terminal 11 corresponding to the plug part 211 , and the function type information includes playback equipment, microphone, grounding, etc. The function type information is used to represent For the corresponding function of the plug part 211, if the function type information is a playback device, then the function of the plug part 211 is to play audio; if the function type information is a microphone, then the function of the plug part 211 is a recording function. Then the driving module 13 drives the plug part 211 to realize the 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, when the plug part 211 is driven by the microphone, the microphone audio signal can be obtained; For example, when the plug part 211 is a playback device, when the plug part 211 is driven by the playback device, a playback audio signal can be obtained;
参数读取单元121可根据插头部位211的功能类型,通过接触端子11获取与接触端子11接触的插头部位211的音频信号。例如,参数读取单元122包括针对不同音频信号的处理单元,如针对播放音频信号的播放处理单元,针对麦克风音频信号的麦克风处理单元。参数读取单元122通过确定插头部位211的功能类型,即可调用与功能类型对应的处理单元进行处理,从而根据处理单元的处理结果进一步判断功能类型是否判断有误,例如,当播放处理单元处理麦克风音频信号的音频信号参数时,由于播放处理单元仅与播放音频信号适配,会无法产生正常的处理结果并报错,从而确定根据插头部位211的对应的电参数确定的功能类型是否有误,提高检测准确性。The parameter reading unit 121 can acquire the audio signal of the plug part 211 in contact with the contact terminal 11 through the contact terminal 11 according to the function type of the plug part 211 . For example, the parameter reading unit 122 includes processing units for different audio signals, such as a playback processing unit for playback audio signals, and a microphone processing unit for microphone audio signals. By determining the function type of the plug part 211, the parameter reading unit 122 can call the processing unit corresponding to the function type for processing, so as to further judge whether the function type is judged incorrectly according to the processing result of the processing unit. When the audio signal parameter of the microphone audio signal is used, since the playback processing unit is only adapted to the playback audio signal, it will not be able to generate a normal processing result and report an error, so as to determine whether the function type determined according to the corresponding electrical parameter of the plug part 211 is wrong, Improve detection accuracy.
另外,在插入的插头210为非音频设备200、或者已经损坏的音频设备200的插头210,可能导致麦克风音频信号(播放音频信号)无法得到,或者得到的麦克风音频信号(播放音频信号)与音频设备200正常驱动时得到的麦克风音频信号(播放音频信号)是存在较大差异的,处理单元通过对音频信号的音频信号参数的提取即可获取判断结果,判断结果包括功能类型为播放设备或麦克风,或者无法获取功能类型等,其中,无法获取功能类型的判断结果即表示插入的插头210为非音频设备200、或者已经损坏的音频设备200的插头210。In addition, when the inserted plug 210 is a plug 210 of a non-audio device 200 or a damaged audio device 200, it may cause that the microphone audio signal (playing audio signal) cannot be obtained, or the obtained microphone audio signal (playing audio signal) may be different from the audio signal. The microphone audio signal (playing audio signal) obtained when the device 200 is normally driven is quite different. The processing unit can obtain the judgment result by extracting the audio signal parameters of the audio signal, and the judgment result includes that the function type is a playback device or a microphone. , or the function type cannot be obtained, wherein the judgment result that the function type cannot be obtained means that the inserted plug 210 is a plug 210 of a non-audio device 200 or a damaged audio device 200 .
请参阅图2,在一个具体的例子中,接触端子11的数量为四,分别为第一接触端子111至第四接触端子114,可检测目前市面上最大的四段式接口21的音频设备200的类型,参数读取单元122可为每个接触端子11设置一个参数读取接口123,本实施方式以非国际标准的音频设备200的插头210为例,由于非国际标准的音频设备200必然存在功能类型为接地的插头部位211,例如三段式或四段式耳机插头210中接地的插头部位211一般与第二接触端子112接触,接地的插头部位211的电压一般为0V,故无需设置与第二接触端子112 对应的参数读取接口123去读取第二接触端子112的电压,只需使得第二接触端子112接地即可,默认第二接触端子112的电压为0V。因此,参数读取单元122设置有第一参数读取接口1231、第二参数读取接口1232和第三参数读取接口1233,分别读取第一接触端子111的电参数和音频信号、第二接触端子112的电参数和音频信号、及第三接触端子113的电参数和音频信号。插头部位211的阻抗和对应的音频设备的类型的关系如表1。Referring to FIG. 2 , in a specific example, the number of contact terminals 11 is four, which are the first contact terminal 111 to the fourth contact terminal 114 , which can detect the audio equipment 200 with the largest four-segment interface 21 currently on the market. The parameter reading unit 122 can set a parameter reading interface 123 for each contact terminal 11. This embodiment takes the plug 210 of the non-international standard audio device 200 as an example, because the non-international standard audio device 200 must exist The plug part 211 whose function type is grounded, for example, in the three-stage or four-stage headphone plug 210, the grounded plug part 211 is generally in contact with the second contact terminal 112, and the voltage of the grounded plug part 211 is generally 0V, so there is no need to set the The parameter reading interface 123 corresponding to the second contact terminal 112 is used to read the voltage of the second contact terminal 112, and the second contact terminal 112 only needs to be grounded, and the default voltage of the second contact terminal 112 is 0V. 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 respectively read the electrical parameters and audio signals of the first contact terminal 111, the second parameter reading interface 1232 and the second parameter reading interface 1233. Electrical parameters and audio signals of the contact terminal 112 , and electrical parameters and audio signals of the third contact terminal 113 . Table 1 shows the relationship between the impedance of the plug part 211 and the type of the corresponding audio equipment.
Figure PCTCN2020117456-appb-000001
Figure PCTCN2020117456-appb-000001
表1Table 1
从表1中可以看出,当阻抗为0欧姆(Ω),表示该接触端子11未与插头部位211接触或者接触端子11与功能类型为接地的插头部位211接触、当阻抗位于16Ω到100Ω时,表示该接触端子11与插头部位211接触且插头部位211的功能类型为播放设备、当阻抗位于500Ω到2000Ω时,表示该接触端子11与插头部位211接触且插头部位211的功能类型为无源麦克风、当阻抗位于10000Ω以上时,表示该接触端子11与插头部位211接触且插头部位211的功能类型为有源麦克风、当阻抗接近无穷大时,表示该接触端子11与插头部位211接触但插头部位211无任何功能,仅起到增加插头210长度的作用(下称绝缘插头部位211)。As can be seen from Table 1, when the impedance is 0 ohms (Ω), it means that the contact terminal 11 is not in contact with the plug part 211 or the contact terminal 11 is in contact with the plug part 211 whose function type is ground. When the impedance is between 16Ω and 100Ω , it means that the contact terminal 11 is in contact with the plug part 211 and the functional type of the plug part 211 is a playback device. When the impedance is between 500Ω and 2000Ω, it means that the contact terminal 11 is in contact with the plug part 211 and the functional type of the plug part 211 is passive. Microphone, when the impedance is above 10000Ω, it means that the contact terminal 11 is in contact with the plug part 211 and the functional type of the plug part 211 is an active microphone. When the impedance is close to infinity, it means that the contact terminal 11 is in contact with the plug part 211 but the plug part 211 does not have any function, and only serves to increase the length of the plug 210 (hereinafter referred to as the insulating plug part 211).
可以理解,不同的阻抗,参数读取接口123读取的电参数(以电压为例)是不同的,例如当阻抗为0Ω时,该接触端子11对应的电压范围为[0,V1],即此时接触端子11对应的插头部位211不存在或者接地;当阻抗位于16Ω到100Ω时,该接触端子11对应的电压范围为[V2,V3],即此时接触端子11对应的插头部位211为播放设备;当阻抗位于500Ω到2000Ω时,该接触端子11对应的电压范围为[V4,V5],即此时接触端子11对应的插头 部位211为无源麦克风;当阻抗位于10000Ω以上时,该接触端子11对应的电压范围为[V6,V7],即此时接触端子11对应的插头部位211为有源麦克风;当阻抗接近无穷大时,该接触端子11对应的电压范围等于电源单元121的偏置电压V8,即此时接触端子11对应的插头部位211为绝缘插头部位211;其中,由于电阻范围的增加,接触端子11被分配的电压就越大,V1至V8依次增大并可根据电源单元121的输出的偏置电压确定,且[0,V1]、[V2,V3]、[V4,V5]、和[V6,V7]没有交集。It can be understood that the electrical parameters (take voltage as an example) read by the parameter reading interface 123 are different for different impedances. For example, when the impedance is 0Ω, the voltage range corresponding to the contact terminal 11 is [0, V1], that is, At this time, the plug part 211 corresponding to the contact terminal 11 does not exist or is 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 part 211 corresponding to the contact terminal 11 is: Playing equipment; when the impedance is between 500Ω and 2000Ω, the voltage range corresponding to the contact terminal 11 is [V4, V5], that is, the plug part 211 corresponding to the contact terminal 11 is a passive microphone; when the impedance is above 10000Ω, the The voltage range corresponding to the contact terminal 11 is [V6, V7], that is, the plug part 211 corresponding to the contact terminal 11 is an active microphone; when the impedance is close to infinity, the voltage range corresponding to the contact terminal 11 is equal to the bias of the power supply unit 121. Set the voltage V8, that is, the plug part 211 corresponding to the contact terminal 11 is the insulating plug part 211; among them, due to the increase of the resistance range, the voltage allocated to the contact terminal 11 is larger, and V1 to V8 increase in turn and can be adjusted according to the power supply. The bias voltage of the output of the unit 121 is determined, and [0, V1], [V2, V3], [V4, V5], and [V6, V7] do not intersect.
请参阅图2,检测模块12包括多个第一控制开关124和第二控制开关125,控制开关可以是软件逻辑上的控制开关,也可以是实体电路的控制开关。Referring to FIG. 2 , the detection module 12 includes a plurality of first control switches 124 and second control switches 125 , and the control switches may be software logic control switches or physical circuit control switches.
多个第一控制开关124分别控制参数读取接口123与对应的接触端子11的通断,在控制第一控制开关124闭合时,参数读取接口123用于从第一控制开关124对应的接触端子11处读取电参数及音频参数。另外,由于第二接触端子112仅可能接触接地的插头部位211或者不与任一插头部位211接触,第二接触端子112的电参数和音频参数均无需获取。The plurality of first control switches 124 respectively control the on-off of the parameter reading interface 123 and the corresponding contact terminal 11 . When the first control switch 124 is controlled to be closed, the parameter reading interface 123 is used to read the contact from the corresponding contact terminal 124 of the first control switch 124 . Terminal 11 reads electrical parameters and audio parameters. In addition, since the second contact terminal 112 may only contact the grounded plug part 211 or not contact any plug part 211, neither the electrical parameters nor the audio parameters of the second contact terminal 112 need to be acquired.
多个第二控制开关125分别控制电源单元121及驱动模块13、与对应的接触端子11的通断,在控制第二控制开关125闭合时,电源单元121向控制开关对应的接触端子11输出偏置电压V8,驱动模块13此时也可驱动对应的接触端子11和插头部位211,从而实现该插头部位211的功能。The plurality of second control switches 125 respectively control the power supply unit 121 and the driving module 13, and the on-off of the corresponding contact terminals 11. When the second control switches 125 are controlled to be closed, the power supply unit 121 outputs the bias to the contact terminals 11 corresponding to the control switches. When the voltage V8 is set, the driving module 13 can also drive the corresponding contact terminal 11 and the plug part 211 at this time, so as to realize the function of the plug part 211 .
第二控制开关125的数量为3个,分别为SW1、SW2和SW3,分别用于控制是否获取第一接触端子111、第三接触端子113和第四接触端子114的电参数和音频参数。The number of the second control switches 125 is three, namely SW1 , SW2 and SW3 , which are respectively used to control whether to acquire electrical parameters and audio parameters of the first contact terminal 111 , the third contact terminal 113 and the fourth contact terminal 114 .
第二控制开关125的数量为5个,分别为S4、S5、S6、S7和S8,其中2个用于控制电源单元121与第四接触端子114的通断(如图2中的SW4和SW7),可保证其中一个第二控制开关125损坏时,通过另一个第二控制开关125也能够实现电源单元121与第四接触端子114的通断控制,剩余3个分别用于控制电源单元121与第一接触端子111、第二接触端子112和第三接触端子113的通断,如图2所示,SW5控制电源单元121与第一接触端子111的通断、SW6控制电源单元121与第三接触端子113的通断、SW4和SW7均可单独控制电源单元121与第四接触端子114的通断。The number of the second control switches 125 is five, which are S4, S5, S6, S7 and S8 respectively, two of which are used to control the on-off between the power supply unit 121 and the fourth contact terminal 114 (SW4 and SW7 in FIG. 2 ). ), which can ensure that when one of the second control switches 125 is damaged, the on-off control of the power supply unit 121 and the fourth contact terminal 114 can also be realized through the other second control switch 125, and the remaining three are used to control the power supply unit 121 and the fourth contact terminal 114 respectively. The on-off of the first contact terminal 111, the second contact terminal 112 and the third contact terminal 113, as shown in FIG. 2, SW5 controls the on-off of the power supply unit 121 and the first contact terminal 111, and SW6 controls the power supply unit 121 and the third contact terminal 111. The on-off of the contact terminal 113 , SW4 and SW7 can all independently control the on-off of the power supply unit 121 and the fourth contact terminal 114 .
请参阅图3,在音频设备200的插头210插入云台的接口21时,第三接触端子113被插头210顶起,以使得第三接触端子113与插入接触端子115的连接断开,参数读取单元122设置有插入检测接口1234,通过插入检测接口1234获取插入接触端子115的电参数,由于接触端子113与插入接触端子115的连接和断开时获取的电参数是不同的,从而根据插入接触端子115的电参数判断是否有插头210插入接口21。Please refer to FIG. 3 , when the plug 210 of the audio device 200 is inserted into the interface 21 of the pan/tilt head, the third contact terminal 113 is pushed up by the plug 210, so that the connection between the third contact terminal 113 and the inserted contact terminal 115 is disconnected, and the parameter read The extraction unit 122 is provided with an insertion detection interface 1234, and the electrical parameters of the inserted contact terminal 115 are obtained through the insertion detection interface 1234. Since the electrical parameters obtained when the contact terminal 113 and the inserted contact terminal 115 are connected and disconnected are different, according to the insertion The electrical parameter of the contact terminal 115 determines whether a plug 210 is inserted into the interface 21 .
请参阅图12,在确定有插头210插入接口21后,开始检测音频设备200的类型,此时插头检测装置10先控制SW1和SW5导通,电源单元121向对应的接触端子11施加偏 置电压,以检测第一接触端子111是否接触插头部位211并确定插头部位211的类型,对于非国际标准的音频设备200的插头210,第一接触端子111对应的插头部位211仅可能为不存在或者为麦克风。Referring to FIG. 12 , after it is determined that the plug 210 is inserted into the interface 21 , it starts to detect the type of the audio device 200 . At this time, the plug detection device 10 first controls the SW1 and SW5 to be turned on, and the power supply unit 121 applies a bias voltage to the corresponding contact terminal 11 , to detect whether the first contact terminal 111 contacts the plug part 211 and determine the type of the plug part 211. For the plug 210 of the non-international standard audio equipment 200, the plug part 211 corresponding to the first contact terminal 111 may only be absent or microphone.
当第一接触端子111的电压U1位于[0,V1]时,可确定第一接触端子111对应的插头部位211不存在,当前音频设备200的插头210为两段式或者三段式插头210。检测模块12将SW1和SW5断开以进行下一步检测,控制SW3和SW4导通,以检测第四接触端子114接触的插头部位211的类型。When the voltage U1 of the first contact terminal 111 is at [0, V1], it can be 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 SW1 and SW5 for the next detection, and controls SW3 and SW4 to be turned on to detect the type of the plug portion 211 that the fourth contact terminal 114 contacts.
当第四接触端子114的电压U4位于[V2,V3]时,可确定第四接触端子114对应的插头部位211的功能类型为播放设备,进一步检测第三接触端子113接触的插头部位211的类型,此时断开SW3和SW4,导通SW2和SW6,当第三接触端子113的电压U3位于[0,V1]时,可确定第三接触端子113对应的插头部位211的功能类型为接地,而三段式插头210的接地一般与第二接触端子112接触,因此,基本可确定音频设备200的类型为两段式单声道耳机;当第三接触端子113的电压U3位于[V2,V3]时,可确定第三接触端子113对应的插头部位211的功能类型为播放设备,而三段式插头210的接地一般与第二接触端子112接触,因此,基本可确定音频设备200的类型为三段式立体声耳机;当第三接触端子113的电压U3等于V8时(第三接触端子113的电压U3等于V8指的是第三接触端子113的电压U3与V8的值的差值小于预定差值),可确定第三接触端子113对应的插头部位211的功能类型为绝缘插头部位211,而三段式插头210的接地一般与第二接触端子112接触,因此,基本可确定音频设备200的类型为三段式单声道耳机。When the voltage U4 of the fourth contact terminal 114 is at [V2, V3], it can be determined that the functional type of the plug part 211 corresponding to the fourth contact terminal 114 is a playback device, and the type of the plug part 211 contacted by the third contact terminal 113 can be further detected. , at this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on. When the voltage U3 of the third contact terminal 113 is at [0, V1], it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is grounding, The ground of the three-stage plug 210 is generally in contact with the second contact terminal 112. Therefore, it can be basically determined that the type of the audio device 200 is a two-stage mono headset; when the voltage U3 of the third contact terminal 113 is between [V2, V3 ], it can be determined that the functional type of the plug part 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. Therefore, it can be basically determined that the type of the audio device 200 is Three-stage stereo earphone; 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 voltage U3 of the third contact terminal 113 and the value of V8 is less than a predetermined difference value), it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is the insulating plug part 211, and the ground of the three-section plug 210 is generally in contact with the second contact terminal 112. The type is a three-stage monaural headphone.
请参阅图13,当第四接触端子114的电压U4位于[V4,V5]时,可确定第四接触端子114对应的插头部位211的功能类型为无源麦克风,此时若第三接触端子113的电压U3位于[0,V1],则可确定音频设备200的类型为两段式单声道无源麦克风;此时若第三接触端子113的电压U3位于[V4,V5],可确定第三接触端子113对应的插头部位211的功能类型为无源麦克风,则可确定音频设备200的类型为三段式双声道无源麦克风;此时若第三接触端子113的电压U3位于[V6,V7],可确定第三接触端子113对应的插头部位211的功能类型为有源麦克风,则可确定音频设备200的类型为三段式双声道有源麦克风,一般的,第四接触端子114对应左声道,第三接触端子113对应右声道,故左声道和右声道分别为无源麦克风和有源麦克风;此时若第三接触端子113的电压U3等于V8,可确定第三接触端子113对应的插头部位211为绝缘插头部位211,则可确定音频设备200的类型为三段式单声道无源麦克风。Referring to FIG. 13 , when the voltage U4 of the fourth contact terminal 114 is at [V4, V5], it can be determined that the functional type of the plug portion 211 corresponding to the fourth contact terminal 114 is a passive microphone. At this time, if the third contact terminal 113 If the voltage U3 of the third contact terminal 113 is located at [0, V1], it can be determined that the type of the audio device 200 is a two-stage mono passive microphone; at this time, if the voltage U3 of the third contact terminal 113 is located at [V4, V5], it can be determined that the first The functional type of the plug part 211 corresponding to the three-contact terminal 113 is a passive microphone, then it can be determined that the type of the audio device 200 is a three-stage dual-channel passive microphone; at this time, if the voltage U3 of the third contact terminal 113 is at [V6 , V7], it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is an active microphone, then it can be determined that the type of the audio device 200 is a three-stage dual-channel active microphone, generally, the fourth contact terminal 114 corresponds to the left channel, and the third contact terminal 113 corresponds to the right channel, so the left channel and the right channel are respectively a passive microphone and an active microphone; at this time, if the voltage U3 of the third contact terminal 113 is equal to V8, it can be determined that The plug portion 211 corresponding to the third contact terminal 113 is an insulating plug portion 211 , so it can be determined that the type of the audio device 200 is a three-stage mono passive microphone.
请参阅图14,当第四接触端子114的电压U4位于[V6,V7]时,可确定第四接触端子114对应的插头部位211的功能类型为有源麦克风,此时若第三接触端子113的电压U3位 于[0,V1],则可确定音频设备200的类型为两段式单声道有源麦克风;此时若第三接触端子113的电压U3位于[V4,V5],可确定第三接触端子113对应的插头部位211的功能类型为无源麦克风,则可确定音频设备200的类型为三段式双声道麦克风,左声道和右声道分别为有源麦克风和无源麦克风;此时若第三接触端子113的电压U3位于[V6,V7],可确定第三接触端子113对应的插头部位211的功能类型为有源麦克风,则可确定音频设备200的类型为三段式双声道有源麦克风;此时若第三接触端子113的电压U3等于V8,可确定第三接触端子113对应的插头部位211为绝缘插头部位211,则可确定音频设备200的类型为三段式单声道有源麦克风。Referring to FIG. 14 , when the voltage U4 of the fourth contact terminal 114 is at [V6, V7], it can be determined that the functional type of the plug portion 211 corresponding to the fourth contact terminal 114 is an active microphone. At this time, if the third contact terminal 113 If the voltage U3 of the third contact terminal 113 is located at [0, V1], it can be determined that the type of the audio device 200 is a two-stage mono active microphone; at this time, if the voltage U3 of the third contact terminal 113 is located at [V4, V5], it can be determined that the first The functional type of the plug part 211 corresponding to the three-contact terminal 113 is a passive microphone, then it can be determined that the type of 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 located at [V6, V7], it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is an active microphone, then the type of the audio device 200 can be determined to be three-stage At this time, if the voltage U3 of the third contact terminal 113 is equal to V8, it can be determined that the plug part 211 corresponding to the third contact terminal 113 is the insulating plug part 211, and the type of the audio device 200 can be determined to be three Segmented mono active microphone.
请参阅图15,当第一接触端子111的电压U1位于[V4,V5]时,可确定第一接触端子111接触的插头部位211为无源麦克风,当前音频设备200的插头210为四段式插头210。检测模块12将SW1和SW5断开以进行下一步检测,控制SW3和SW4导通,电源单元121向对应的接触端子11施加偏置电压,以检测第四接触端子114接触的插头部位211的类型,可以理解,非国际标准插头210的四段式插头210中,第二接触端子112对应的插头210类型为接地,由于第一接触端子111已经是无源麦克风,因此,只需判断第四接触端子114对应的插头部位211为播放设备或绝缘插头部位211即可。Referring to FIG. 15 , when the voltage U1 of the first contact terminal 111 is at [V4, V5], it can be determined that the plug part 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-stage type Plug 210. The detection module 12 disconnects SW1 and SW5 for the next detection, controls SW3 and SW4 to be turned on, and the power supply unit 121 applies a bias voltage to the corresponding contact terminal 11 to detect the type of the plug part 211 contacted by the fourth contact terminal 114 , it can be understood that in the four-section plug 210 of the non-international standard plug 210, the type of the plug 210 corresponding to the second contact terminal 112 is ground. Since the first contact terminal 111 is already a passive microphone, it is only necessary to judge the fourth contact The plug part 211 corresponding to the terminal 114 may be a playback device or an insulating plug part 211 .
当第四接触端子114的电压U4位于[V2,V3]时,可确定第四接触端子114对应的插头部位211的功能类型为播放设备,进一步检测第三接触端子113接触的插头部位211的类型,此时断开SW3和SW4,导通SW2和SW6,同样的,只需判断第三接触端子113对应的插头部位211为播放设备或绝缘插头部位211即可。此时若第三接触端子113的电压U3位于[V2,V3]时,可确定第三接触端子113对应的插头部位211的功能类型为播放设备,因此,基本可确定音频设备200的类型为四段式立体声带无源麦克风耳机;当第三接触端子113的电压U3等于V8时,可确定第三接触端子113对应的插头部位211的功能类型为绝缘插头部位211,因此,基本可确定音频设备200的类型为四段式单声道带无源麦克风耳机。When the voltage U4 of the fourth contact terminal 114 is at [V2, V3], it can be determined that the functional type of the plug part 211 corresponding to the fourth contact terminal 114 is a playback device, and the type of the plug part 211 contacted by the third contact terminal 113 can be further detected. At this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on. Similarly, it is only necessary to determine that the plug part 211 corresponding to the third contact terminal 113 is a playback device or an insulating plug part 211 . At this time, if the voltage U3 of the third contact terminal 113 is at [V2, V3], it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is a playback device. Therefore, it can be basically determined that the type of the audio device 200 is four. Segment stereo headphone with passive microphone; when the voltage U3 of the third contact terminal 113 is equal to V8, it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is the insulating plug part 211, so it can basically be determined that the audio equipment The 200 is a four-segment mono headset with a passive microphone.
请参阅图16,当第四接触端子114的电压U4等于V8(第四接触端子114的电压U4等于V8指的是第四接触端子114的电压U4与V8的值的差值小于预定差值)时,可确定第四接触端子114对应的插头部位211的功能类型为绝缘插头部位211,进一步检测第三接触端子113接触的插头部位211的类型,此时断开SW3和SW4,导通SW2和SW6,同样的,只需判断第三接触端子113对应的插头部位211为播放设备或绝缘插头部位211即可。此时若第三接触端子113的电压U3位于[V2,V3]时,可确定第三接触端子113对应的插头部位211的功能类型为播放设备,因此,基本可确定音频设备200的类型为四段式单声道带无源麦克风耳机;当第三接触端子113的电压U3等于V8时,可确定第三接触端子113 对应的插头部位211的功能类型为绝缘插头部位211,因此,基本可确定音频设备200的类型为四段式无源麦克风。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 being equal to V8 means that the difference between the values of the voltage U4 of the fourth contact terminal 114 and the value of V8 is less than the predetermined difference) When the function type of the plug part 211 corresponding to the fourth contact terminal 114 is determined to be the insulating plug part 211, the type of the plug part 211 contacted by the third contact terminal 113 can be further detected. At this time, the SW3 and SW4 are turned off, and the SW2 and SW6, similarly, only needs to determine that the plug part 211 corresponding to the third contact terminal 113 is the playback device or the insulating plug part 211. At this time, if the voltage U3 of the third contact terminal 113 is at [V2, V3], it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is a playback device. Therefore, it can be basically determined that the type of the audio device 200 is four. Segment mono headset with passive microphone; when the voltage U3 of the third contact terminal 113 is equal to V8, it can be determined that the function type of the plug part 211 corresponding to the third contact terminal 113 is the insulating plug part 211, so it can be basically determined The type of audio device 200 is a four-segment passive microphone.
请参阅图17,当第一接触端子111的电压U1位于[V6,V7]时,可确定第一接触端子111接触的插头部位211为有源麦克风,当前音频设备200的插头210为四段式插头210。检测模块12将SW1和SW5断开以进行下一步检测,控制SW3和SW4导通,以检测第四接触端子114接触的插头部位211的类型。Referring to FIG. 17 , when the voltage U1 of the first contact terminal 111 is at [V6, V7], it can be determined that the plug part 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-stage type Plug 210. The detection module 12 turns off SW1 and SW5 for the next detection, and controls SW3 and SW4 to be turned on to detect the type of the plug portion 211 that the fourth contact terminal 114 contacts.
当第四接触端子114的电压U4位于[V2,V3]时,可确定第四接触端子114对应的插头部位211的功能类型为播放设备,进一步检测第三接触端子113接触的插头部位211的类型,此时断开SW3和SW4,导通SW2和SW6,同样的,只需判断第三接触端子113对应的插头部位211为播放设备或绝缘插头部位211即可。此时若第三接触端子113的电压U3位于[V2,V3]时,可确定第三接触端子113对应的插头部位211的功能类型为播放设备,因此,基本可确定音频设备200的类型为四段式立体声带有源麦克风耳机;当第三接触端子113的电压U3等于V8时,可确定第三接触端子113对应的插头部位211的功能类型为绝缘插头部位211,因此,基本可确定音频设备200的类型为四段式单声道带有源麦克风耳机。When the voltage U4 of the fourth contact terminal 114 is at [V2, V3], it can be determined that the functional type of the plug part 211 corresponding to the fourth contact terminal 114 is a playback device, and the type of the plug part 211 contacted by the third contact terminal 113 can be further detected. At this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on. Similarly, it is only necessary to determine that the plug part 211 corresponding to the third contact terminal 113 is a playback device or an insulating plug part 211 . At this time, if the voltage U3 of the third contact terminal 113 is at [V2, V3], it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is a playback device. Therefore, it can be basically determined that the type of the audio device 200 is four. Segment stereo with active microphone earphones; when the voltage U3 of the third contact terminal 113 is equal to V8, it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is the insulating plug part 211, so it can basically be determined that the audio equipment The Type 200 is a four-segment mono headset with an active microphone.
请参阅图18,当第四接触端子114的电压U4等于V8时,可确定第四接触端子114对应的插头部位211的功能类型为绝缘插头部位211,进一步检测第三接触端子113接触的插头部位211的类型,此时断开SW3和SW4,导通SW2和SW6,同样的,只需判断第三接触端子113对应的插头部位211为播放设备或绝缘插头部位211即可。此时若第三接触端子113的电压U3位于[V2,V3]时,可确定第三接触端子113对应的插头部位211的功能类型为播放设备,因此,基本可确定音频设备200的类型为四段式单声道带有源麦克风耳机;当第三接触端子113的电压U3等于V8时,可确定第三接触端子113对应的插头部位211的功能类型为绝缘插头部位211,因此,基本可确定音频设备200的类型为四段式有源麦克风。Referring to FIG. 18 , when the voltage U4 of the fourth contact terminal 114 is equal to V8 , it can be determined that the functional type of the plug part 211 corresponding to the fourth contact terminal 114 is the insulating plug part 211 , and the plug part contacted by the third contact terminal 113 can be further detected. 211 type, at this time, SW3 and SW4 are turned off, and SW2 and SW6 are turned on. Similarly, it is only necessary to determine that the plug part 211 corresponding to the third contact terminal 113 is a playback device or an insulating plug part 211. At this time, if the voltage U3 of the third contact terminal 113 is at [V2, V3], it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is a playback device. Therefore, it can be basically determined that the type of the audio device 200 is four. Segment monophonic headphone with active microphone; when the voltage U3 of the third contact terminal 113 is equal to V8, it can be determined that the functional type of the plug part 211 corresponding to the third contact terminal 113 is the insulating plug part 211, so it can basically be determined The type of audio device 200 is a four-segment active microphone.
如此,通过上述流程,可快速检测非国际标准的音频设备200的类型,结合非国际标准的音频设备200的特点,省去了无需进行检测部分(如第二接触端子112对应的插头部位211的类型等),并通过第一接触端子111的电参数确定插头210的段数区间,然后通过段数区间对应的检测流程进行检测,从而无需对所有段数的音频设备200均进行检测,可提高检测效率。In this way, through the above process, the type of the non-international standard audio device 200 can be quickly detected, and combined with the characteristics of the non-international standard audio device 200, the part that does not need to be detected (such as the plug part 211 corresponding to the second contact terminal 112) is omitted. Type, etc.), and determine the segment number interval of the plug 210 through the electrical parameters of the first contact terminal 111, and then perform detection through the detection process corresponding to the segment number interval, so that it is not necessary to perform detection on all segments of the audio equipment 200, which can improve detection efficiency.
在根据接触端子11的电参数初步确定了音频设备200的类型后,驱动模块13控制对应的控制开关的通断以驱动音频设备200,并获取驱动音频设备200后从接触端子11处获取的音频信号,从而得到音频信号参数,以判断根据电参数确定的接触端子11对应的插头 部位211的功能类型与音频信号参数确定的对应的插头部位211的功能类型是否匹配,进一步保证插头部位211的功能类型的检测准确性。且音频信号参数还可用于判断接触端子11对应的插头部位211是否为非音频设备200或者已经损坏的音频设备200的插头部位211。After preliminarily determining the type of the audio device 200 according to the electrical parameters 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 acquires the audio frequency obtained from the contact terminal 11 after driving the audio device 200 signal to obtain audio signal parameters to determine whether the function type of the plug part 211 corresponding to the contact terminal 11 determined according to the electrical parameters matches the function type of the corresponding plug part 211 determined by the audio signal parameters, and further ensure the function of the plug part 211. Type of detection accuracy. And the audio signal parameter can also be used to determine whether the plug part 211 corresponding to the contact terminal 11 is the plug part 211 of the non-audio device 200 or the damaged audio device 200 .
例如,请参阅图3和图19,检测模块12根据接触端子11的电参数初步确定了待检测音频设备200的类型为两段式单声道耳机,则驱动模块13控制SW3和SW7导通,以驱动第四接触端子114接触的插头部位211将音频信号传输到音频设备200进行播放,第三参数读取接口1233读取第四接触端子114处的音频信号,并传输给播放处理单元处理,从而确定是否接收到音频信号或根据音频信号的音频信号参数确定该音频信号是否为播放音频信号。例如,若音频信号为播放音频信号,则可进一步确定第四接触端子114对应的插头部位211为播放设备,待检测音频设备200为两段式单声道耳机;若音频信号不是播放音频信号,则可能根据接触端子11的电参数初步确定的音频设备200的类型存在错误,需再次进行电参数的检测;若无法获取到该音频信号,则待检测音频设备200为非音频设备200或损坏的两段式单声道耳机。For example, referring to FIG. 3 and FIG. 19 , the detection module 12 preliminarily determines that the type of the audio device 200 to be detected is a two-stage mono headset according to the electrical parameters of the contact terminal 11, and the driving module 13 controls SW3 and SW7 to be turned on, The audio signal is transmitted to the audio device 200 for playing by driving the plug part 211 contacted by the fourth contact terminal 114, and the third parameter reading interface 1233 reads the audio signal at the fourth contact terminal 114, and transmits it to the playback processing unit for processing, Thereby, it is determined whether an audio signal is received or whether the audio signal is a playback audio signal according to the audio signal parameters of the audio signal. For example, if the audio signal is a playback audio signal, it can be further determined that the plug portion 211 corresponding to the fourth contact terminal 114 is a playback device, and the audio device 200 to be detected is a two-stage mono headset; if the audio signal is not a playback audio signal, Then there may be an error in the type of the audio device 200 preliminarily determined according to the electrical parameters of the contact terminal 11, and the electrical parameter detection needs to be performed again; if the audio signal cannot be obtained, the audio device 200 to be detected is not the audio device 200 or damaged. Two-stage mono headset.
如此,通过电参数和音频信号参数确定的插头部位211的信号类型,可更为准确地判断待检测音频设备200的类型,并避免非音频设备200和损坏的音频设备200对检测结果的干扰。In this way, the signal type of the plug part 211 determined by the electrical parameter and the audio signal parameter can more accurately determine the type of the audio device 200 to be detected, and avoid the interference of the non-audio device 200 and the damaged audio device 200 on the detection result.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”、或“一些示例”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "exemplary embodiment," "example," "specific example," or "some examples", etc., is meant to incorporate the embodiments A particular feature, structure, material, or characteristic described or exemplified 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 description of a process or method in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for performing a specified logical function or step of the process , and the scope of the preferred embodiments of the present application includes additional implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending on the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于执行逻辑功能的可执行指令的定序列表,可以具体执行在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器22的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用 的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得程序,然后将其存储在计算机存储器中。Logic and/or steps represented in flowcharts or otherwise described herein, for example, may be considered an ordered listing of executable instructions for performing logical functions, may be embodied in any computer-readable medium, for use with, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor 22, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device), device or equipment. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as may be done, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable means as necessary process to obtain the program electronically and then store it in computer memory.
上述提到的音频处理系统可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The audio processing system mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations to the present application. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (25)

  1. 一种插头检测装置,其特征在于,所述插头检测装置包括:检测模块和多个接触端子;A plug detection device, characterized in that the plug detection device comprises: a detection module and a plurality of contact terminals;
    多个所述接触端子设置在接口内,所述接口用于容纳音频设备的插头,当所述插头插接至所述接口,多个所述接触端子分别与沿所述插头的轴向排列的不同插头部位接触;A plurality of the contact terminals are arranged in the interface, and the interface is used for accommodating the plug of the audio equipment. When the plug is inserted into the interface, the plurality of the contact terminals are respectively connected with the ones arranged along the axial direction of the plug. Contact between different plug parts;
    所述检测模块用于:The detection module is used for:
    向所述接触端子施加检测电压,并检测所述接触端子的电参数;applying a detection voltage to the contact terminal, and detecting the electrical parameter of the contact terminal;
    通过所述接触端子获取与所述接触端子接触的插头部位的音频信号,并获取所述音频信号的音频信号参数;Acquire the audio signal of the plug part in contact with the contact terminal through the contact terminal, and acquire the audio signal parameter of the audio signal;
    根据所述电参数和所述音频信号参数确定所述插头部位的信号类型。The signal type of the plug part is determined according to the electrical parameter and the audio signal parameter.
  2. 根据权利要求1所述的插头检测装置,其特征在于,所述检测模块还用于:The plug detection device according to claim 1, wherein the detection module is further used for:
    依据所述信号类型,确定用于传输信号的插头部位的数量;及determining the number of plug locations used to transmit the signal based on the signal type; and
    依据用于传输信号的插头部位的数量确定所述音频设备的第一信息。The first information of the audio device is determined according to the number of plug parts for transmitting signals.
  3. 根据权利要求2所述的插头检测装置,其特征在于,所述第一信息包括所述音频设备的插头的段数。The plug detection apparatus according to claim 2, wherein the first information includes the segment number of the plug of the audio device.
  4. 根据权利要求1所述的插头检测装置,其特征在于,所述检测模块还用于:The plug detection device according to claim 1, wherein the detection module is further used for:
    依据所述信号类型,确定用于传输麦克风信号的插头部位的数量;及determining the number of plug locations for transmitting microphone signals based on the signal type; and
    依据用于传输麦克风信号的插头部位的数量,确定所述音频设备的第二信息。The second information of the audio device is determined depending on the number of plug parts for transmitting microphone signals.
  5. 根据权利要求4所述的插头检测装置,其特征在于,所述第二信息包括所述音频设备是否具有麦克风功能。The plug detection apparatus according to claim 4, wherein the second information includes whether the audio device has a microphone function.
  6. 根据权利要求4所述的插头检测装置,其特征在于,所述检测模块还用于:The plug detection device according to claim 4, wherein the detection module is further used for:
    若存在用于传输麦克风信号的插头部位,则确定所述音频设备具有麦克风功能;If there is a plug portion for transmitting a microphone signal, determine that the audio device has a microphone function;
    依据所述信号类型,判断用于传输麦克风信号的插头部位是否向所述接触端子施加电流;及According to the signal type, determine whether the plug portion used for transmitting the microphone signal applies current to the contact terminal; and
    依据判断结果,确定所述音频设备的第三信息。According to the judgment result, the third information of the audio device is determined.
  7. 根据权利要求6所述的插头检测装置,其特征在于,所述第三信息包括所述音频设备的麦克风是否有源。The plug detection apparatus according to claim 6, wherein the third information includes whether a microphone of the audio device is active.
  8. 根据权利要求1所述的插头检测装置,其特征在于,在向所述接触端子施加检测电压,并检测所述接触端子的电参数时,所述检测模块用于: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 used for:
    向多个所述接触端子中的部分施加检测电压,并检测施加检测电压的所述接触端子的电参数。A detection voltage is applied to a portion of the plurality of contact terminals, and electrical parameters of the contact terminals to which the detection voltage is applied are detected.
  9. 根据权利要求1所述的插头检测装置,其特征在于,所述插头检测装置还包括驱动模块,所述驱动模块用于:The plug detection device according to claim 1, wherein the plug detection device further comprises a driving module, and the driving module is used for:
    依据所述信号类型,通过所述目标接触端子驱动所述音频设备。Depending on the signal type, the audio device is driven through the target contact terminal.
  10. 根据权利要求1所述的插头检测装置,其特征在于,所述接触端子包括插入接触端子,所述检测模块还用于:The plug detection device according to claim 1, wherein the contact terminal comprises an insertion contact terminal, and the detection module is further used for:
    依据所述插入接触端子的电参数,检测是否有所述插头插接至所述接口。According to the electrical parameters of the inserted contact terminal, it is detected whether the plug is inserted into the interface.
  11. 根据权利要求1所述的插头检测装置,其特征在于,在通过所述接触端子获取与所述接触端子接触的插头部位的音频信号时,所述检测模块用于:The plug detection device according to claim 1, wherein when the audio signal of the plug part in contact with the contact terminal is acquired through the contact terminal, the detection module is used for:
    基于所述电参数确定与所述接触端子接触的插头部位的功能类型信息;determining, based on the electrical parameter, function type information of the plug portion in contact with the contact terminal;
    根据所述功能类型信息,通过所述接触端子获取与所述接触端子接触的插头部位的音频信号。According to the function type information, the audio signal of the plug part in contact with the contact terminal is acquired through the contact terminal.
  12. 一种音频处理设备,其特征在于,所述音频处理设备包括:An audio processing device, characterized in that the audio processing device comprises:
    承载装置,所述承载装置形成有接口,所述接口用于容纳音频设备的插头;及a carrier device formed with an interface for accommodating a plug of an audio device; and
    权利要求1至11任意一项所述插头检测装置,所述插头检测装置的多个所述接触端子设置在所述接口内。The plug detection device according to any one of claims 1 to 11, wherein a plurality of the contact terminals of the plug detection device are provided in the interface.
  13. 根据权利要求12所述的音频处理设备,其特征在于,所述音频处理设备包括成像设备、云台、可移动平台中的任意一种。The audio processing device according to claim 12, wherein the audio processing device comprises any one of an imaging device, a pan/tilt, and a movable platform.
  14. 一种音频处理系统,其特征在于,所述音频处理系统包括:An audio processing system, characterized in that the audio processing system comprises:
    音频设备;及audio equipment; and
    权利要求12或13所述的音频处理设备,所述音频设备的插头可拆卸地插接在所述音频处理设备的接口内。The audio processing device according to claim 12 or 13, wherein the plug of the audio device is detachably inserted into the interface of the audio processing device.
  15. 一种插头检测方法,其特征在于,用于插头检测装置,所述插头检测装置包括多个接触端子,多个所述接触端子设置在接口内,所述接口用于容纳音频设备的插头,当所述插头插接至所述接口,多个所述接触端子分别与沿所述插头的轴向排列的不同插头部位接触;所述插头检测方法包括:A plug detection method, which is characterized in that it is used in a plug detection device, the plug detection device includes a plurality of contact terminals, and the plurality of contact terminals are arranged in an interface, and the interface is used for accommodating a plug of an audio device. The plug is plugged into the interface, and a plurality of the contact terminals are respectively in contact with different plug parts arranged along the axial direction of the plug; the plug detection method includes:
    向所述接触端子施加检测电压,并检测所述接触端子的电参数;applying a detection voltage to the contact terminal, and detecting electrical parameters of the contact terminal;
    通过所述接触端子获取与所述接触端子接触的插头部位的音频信号,并获取所述音频信号的音频信号参数;Acquire the audio signal of the plug part in contact with the contact terminal through the contact terminal, and acquire the audio signal parameter of the audio signal;
    根据所述电参数和所述音频信号参数确定所述插头部位的信号类型。The signal type of the plug part is determined according to the electrical parameter and the audio signal parameter.
  16. 根据权利要求15所述的插头检测方法,其特征在于,所述插头检测方法还包括:The plug detection method according to claim 15, wherein the plug detection method further comprises:
    依据所述信号类型,确定用于传输信号的插头部位的数量;及determining the number of plug locations used to transmit the signal based on the signal type; and
    依据用于传输信号的插头部位的数量确定所述音频设备的第一信息。The first information of the audio device is determined according to the number of plug parts for transmitting signals.
  17. 根据权利要求16所述的插头检测方法,其特征在于,所述第一信息包括所述音频设备的插头的段数。The plug detection method according to claim 16, wherein the first information includes the segment number of the plug of the audio device.
  18. 根据权利要求15所述的插头检测方法,其特征在于,所述插头检测方法还包括:The plug detection method according to claim 15, wherein the plug detection method further comprises:
    依据所述信号类型,确定用于传输麦克风信号的插头部位的数量;及determining the number of plug locations for transmitting microphone signals based on the signal type; and
    依据用于传输麦克风信号的插头部位的数量,确定所述音频设备的第二信息。The second information of the audio device is determined depending on the number of plug parts for transmitting microphone signals.
  19. 根据权利要求18所述的插头检测方法,其特征在于,所述第二信息包括所述音频设备是否具有麦克风功能。The plug detection method according to claim 18, wherein the second information includes whether the audio device has a microphone function.
  20. 根据权利要求19所述的插头检测方法,其特征在于,所述依据用于传输麦克风信号的插头部位的数量,确定所述音频设备的第二信息,包括:若存在用于传输麦克风信号的插头部位,则确定所述音频设备具有麦克风功能;The plug detection method according to claim 19, wherein the determining the second information of the audio device according to the number of plug parts for transmitting microphone signals comprises: if there is a plug for transmitting microphone signals position, it is determined that the audio device has a microphone function;
    所述插头检测方法还包括:The plug detection method further includes:
    依据所述信号类型,判断用于传输麦克风信号的插头部位是否向所述接触端子施加电流;及According to the signal type, determine whether the plug portion used for transmitting the microphone signal applies current to the contact terminal; and
    依据判断结果,确定所述音频设备的第三信息。According to the judgment result, the third information of the audio device is determined.
  21. 根据权利要求20所述的插头检测方法,其特征在于,所述第三信息包括所述音频设备的麦克风是否有源。The plug detection method according to claim 20, wherein the third information includes whether a microphone of the audio device is active.
  22. 根据权利要求15所述的插头检测方法,其特征在于,所述向所述接触端子施加检测电压,并检测所述接触端子的电参数,包括:The plug detection method according to claim 15, wherein the applying a detection voltage to the contact terminal and detecting the electrical parameter of the contact terminal comprises:
    向多个所述接触端子中的部分施加检测电压,并检测施加检测电压的所述接触端子的电参数。A detection voltage is applied to a portion of the plurality of contact terminals, and electrical parameters of the contact terminals to which the detection voltage is applied are detected.
  23. 根据权利要求15所述的插头检测方法,其特征在于,所述接触端子包括目标接触端子,所述插头检测方法还包括:The plug detection method according to claim 15, wherein the contact terminal comprises a target contact terminal, and the plug detection method further comprises:
    依据所述信号类型,通过所述目标接触端子驱动所述音频设备。Depending on the signal type, the audio device is driven through the target contact terminal.
  24. 根据权利要求15所述的插头检测方法,其特征在于,所述接触端子包括插入接触端子,所述插头检测方法还包括:The plug detection method according to claim 15, wherein the contact terminal comprises an insertion contact terminal, and the plug detection method further comprises:
    依据所述插入接触端子的电参数,检测是否有所述插头插接至所述接口。According to the electrical parameters of the inserted contact terminal, it is detected whether the plug is inserted into the interface.
  25. 根据权利要求15所述的插头检测方法,其特征在于,所述通过所述接触端子获取与所述接触端子接触的插头部位的音频信号,包括:The plug detection method according to claim 15, wherein the acquiring, through the contact terminal, the audio signal of the plug part in contact with the contact terminal comprises:
    基于所述电参数确定与所述接触端子接触的插头部位的功能类型信息;determining, based on the electrical parameter, function type information of the plug portion in contact with the contact terminal;
    根据所述功能类型信息,通过所述接触端子获取与所述接触端子接触的插头部位的音频信号。According to the function type information, the audio signal of the plug part in contact with the contact terminal is acquired through the contact terminal.
PCT/CN2020/117456 2020-09-24 2020-09-24 Jack-plug detection apparatus, audio processing device, audio processing system, and jack-plug detection method WO2022061653A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080006074.XA CN113016192A (en) 2020-09-24 2020-09-24 Plug detection device, audio processing equipment, audio processing system and plug detection method
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

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
WO2022061653A1 true WO2022061653A1 (en) 2022-03-31

Family

ID=76384167

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Cited By (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
CN116261081A (en) * 2023-05-16 2023-06-13 合肥联宝信息技术有限公司 Earphone circuit and control method thereof

Families Citing this family (1)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060183368A1 (en) * 2004-12-13 2006-08-17 Lg Electronics Inc. Ear-jack of portable terminal
CN201204638Y (en) * 2007-01-05 2009-03-04 苹果公司 System and single-pin plug
CN102053932A (en) * 2009-10-29 2011-05-11 宏达国际电子股份有限公司 Electronic device and method for identifying electronic accessory therein
CN106338937A (en) * 2015-07-08 2017-01-18 马维尔国际贸易有限公司 Device and method for generating output signal based on detected load resistance value
CN110430503A (en) * 2019-08-06 2019-11-08 合肥联宝信息技术有限公司 A kind of audio socket
CN210377436U (en) * 2019-07-31 2020-04-21 深圳市时商创展科技有限公司 Detection circuit and switching terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102448006B (en) * 2010-10-14 2015-09-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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060183368A1 (en) * 2004-12-13 2006-08-17 Lg Electronics Inc. Ear-jack of portable terminal
CN201204638Y (en) * 2007-01-05 2009-03-04 苹果公司 System and single-pin plug
CN102053932A (en) * 2009-10-29 2011-05-11 宏达国际电子股份有限公司 Electronic device and method for identifying electronic accessory therein
CN106338937A (en) * 2015-07-08 2017-01-18 马维尔国际贸易有限公司 Device and method for generating output signal based on 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

Cited By (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
CN116261081A (en) * 2023-05-16 2023-06-13 合肥联宝信息技术有限公司 Earphone circuit and control method thereof

Also Published As

Publication number Publication date
CN113016192A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
WO2022061653A1 (en) Jack-plug detection apparatus, audio processing device, audio processing system, and jack-plug detection method
US11768787B2 (en) Connectors for audio data transfer
EP2605498B1 (en) Earphone connection detecting system and mobile device for supporting the system
KR100694158B1 (en) Portable speaker device used for portable multimedia device
US20080008324A1 (en) Audio enhancement module for portable media player
US7187775B2 (en) Audio signal recording apparatus
BRPI1010444A2 (en) audio system with portable audio enhancement device
KR0129758B1 (en) Tape recording and/or reproducing apparatus
US10187719B2 (en) Methods and devices for operating an audio processing integrated circuit to record an audio signal via a headphone port
US8666098B2 (en) Single earphone for stereo and monaural audio devices
US20030023329A1 (en) Method and apparatus to provide digital or analog audio signals to multiple computer system outputs
WO2015155963A1 (en) Peripheral device, host device, and processing method
EP1921770A1 (en) Pc adaptor apparatus, pc signal reproducing system, pc signal reproducing method, pc signal reproducing program, output apparatus control program, pc adaptor apparatus control program, pc control program, power line communication connector, cradle apparatus using the same, and power line communication reproducing system
US9998815B2 (en) Portable device and method for entering power-saving mode
US9305594B2 (en) Cable having audio recording and play back
JP2007294208A (en) Cable connection system between electronic equipment
US20050147255A1 (en) Self-identifying microphone
JP2008171261A (en) Connection detection device and connection detection method
JP2006310981A (en) Music playback unit for portable equipment
JP2004056309A (en) Recording and reproducing apparatus
CN114189797B (en) Earphone detection circuit, chip and audio equipment
KR101134773B1 (en) Apparatus and method for Outputing Audio
KR20150113552A (en) Balanced audio cable for potable auido apparatus
JP2000278782A (en) Audio signal output device
JP2000032339A (en) Signal switching circuit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20954505

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20954505

Country of ref document: EP

Kind code of ref document: A1