CN106231460A - The multiplexing method of earphone interface and device - Google Patents
The multiplexing method of earphone interface and device Download PDFInfo
- Publication number
- CN106231460A CN106231460A CN201610629942.5A CN201610629942A CN106231460A CN 106231460 A CN106231460 A CN 106231460A CN 201610629942 A CN201610629942 A CN 201610629942A CN 106231460 A CN106231460 A CN 106231460A
- Authority
- CN
- China
- Prior art keywords
- earphone
- interface
- audio
- detection signal
- insertion detection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000001514 detection method Methods 0.000 claims abstract description 91
- 238000003780 insertion Methods 0.000 claims description 83
- 230000037431 insertion Effects 0.000 claims description 83
- 230000002045 lasting effect Effects 0.000 claims description 13
- 238000010586 diagram Methods 0.000 description 12
- 230000005236 sound signal Effects 0.000 description 8
- 239000003990 capacitor Substances 0.000 description 2
- 240000002853 Nelumbo nucifera Species 0.000 description 1
- 235000006508 Nelumbo nucifera Nutrition 0.000 description 1
- 235000006510 Nelumbo pentapetala Nutrition 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
- Stereophonic Arrangements (AREA)
- Headphones And Earphones (AREA)
Abstract
The invention discloses the multiplexing method of a kind of earphone interface, method includes: the earphone in detection audio-frequence player device earphone interface inserts whether detection signal changes;If described earphone inserts detection, signal changes, it is determined that described earphone interface has ear speaker device to access, and the speaker of described audio-frequence player device is set to mute state;If described earphone inserts detection signal and keeps constant, it is determined that described earphone interface accesses without equipment or has audio frequency adaptor to access, and puts state outside being remained by the speaker of described audio-frequence player device.The invention also discloses the multiplexer of a kind of earphone interface.The multiplexing method of earphone interface disclosed in this invention and device, the earphone interface achieving audio-frequence player device not only can access earphone but also can access RCA-type analogue audio frequency output interface, earphone interface i.e. can be utilized to replace RCA-type analogue audio frequency output interface, achieve reduction production cost, the purpose that improving product is attractive in appearance.
Description
Technical Field
The invention relates to the technical field of audio playing equipment, in particular to a multiplexing method and a multiplexing device for an earphone interface.
Background
At present, besides a speaker or a sound box, most of sound output of audio playing devices also include an earphone and an external earphone and audio playing device accessed by an RCA (lotus plug) type analog audio output interface. With the extreme requirements of consumers on ultra-thin, good-looking, good-use and the like of the product appearance, the RCA type analog audio output interface adopts a side-out or back-out mode and the like in audio playing equipment such as a television and the like at present, so that the equipment panel space is occupied, the production cost is increased, and the product appearance is influenced. Meanwhile, the frequency of the user using the earphone interface and the RCA type analog audio output interface is not high, and the probability of using both interfaces at the same time is much smaller.
Disclosure of Invention
The invention mainly aims to provide a method and a device for multiplexing an earphone interface, aims to multiplex the earphone interface into an RCA analog audio output interface, and solves the problems that the RCA analog audio output interface in the prior art is high in production cost and affects the product attractiveness.
In order to achieve the above object, the present invention provides a method for multiplexing headphone interfaces, the method comprising:
detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state;
and if the earphone insertion detection signal is kept unchanged, determining that no equipment is accessed to the earphone interface or an audio adapter is accessed to the earphone interface, and keeping the loudspeaker of the audio playing equipment in an external playing state.
Preferably, the determining that the headset interface has the headset device access if the headset insertion detection signal changes specifically includes:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, it is determined that the earphone interface has the earphone equipment access.
Preferably, after determining that the headset interface has the headset device connected thereto, the method further includes:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state.
Preferably, the audio adapter comprises two ports, one end of the port is an earphone connector, and the other end of the port is an RCA analog audio output interface.
Preferably, the method further comprises:
if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume;
and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
In addition, to achieve the above object, the present invention further provides a multiplexing device for headphone interfaces, the device including:
the detection module is used for detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
the first setting module is used for determining that the earphone interface has earphone equipment access if the earphone insertion detection signal changes and setting a loudspeaker of the audio playing equipment to be in a mute state;
and the second setting module is used for determining that no equipment is accessed or an audio adapter is accessed to the earphone interface and keeping the loudspeaker of the audio playing equipment in an external playing state if the earphone insertion detection signal is kept unchanged.
Preferably, the first setting module includes:
the determining module is configured to determine that the headset interface has a headset device access if the headset insertion detection signal changes from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold.
Preferably, the first setting module further includes:
and the third setting module is configured to, after it is determined that the earphone interface has an earphone device access, set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after continuing for a second time period, and the second time period is greater than or equal to the preset time threshold.
Preferably, the audio adapter comprises two ports, one end of the port is an earphone connector, and the other end of the port is an RCA analog audio output interface.
Preferably, the apparatus further comprises:
the fourth setting module is used for setting the volume gain output by the audio output interface to be controlled by the master volume if the loudspeaker of the audio playing device is in a mute state;
and the fifth setting module is used for setting the volume gain output by the audio output interface to be a preset gain if the loudspeaker of the audio playing device is in an outward playing state.
The invention provides a multiplexing method and a device of an earphone interface, comprising the following steps: detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes; if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state; and if the earphone insertion detection signal is kept unchanged, determining that no equipment is accessed to the earphone interface or an audio adapter is accessed to the earphone interface, and keeping the loudspeaker of the audio playing equipment in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Drawings
Fig. 1 is a schematic flow chart of a multiplexing method of an earphone interface according to a first embodiment of the present invention;
FIG. 2 is a circuit schematic of the headphone interface of the present invention;
fig. 3 is a schematic circuit diagram of the headset connector of the present invention;
FIG. 4 is a schematic diagram of an audio adapter according to the present invention;
fig. 5 is a flow chart of a second embodiment of the multiplexing method of the headphone interface of the present invention;
fig. 6 is a functional block diagram of a first embodiment of the multiplexing device of the headphone interface of the present invention;
fig. 7 is a functional block diagram of a multiplexing device of a headphone interface according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a multiplexing method for an earphone interface according to a first embodiment of the present invention. The multiplexing method of the earphone interface comprises the following steps:
step S10, detecting whether the earphone insertion detection signal in the earphone interface of the audio playing device changes.
Referring to fig. 2, fig. 2 is a circuit schematic diagram of the earphone interface of the present invention. Wherein, earphone interface includes 5 pins, and these 5 pins correspond 5 function signal respectively, specifically are: the "1" pin corresponds to the earphone insertion detection signal "HP _ DET", "2" pin corresponds to the right channel signal "AUDIO _ R", "3" pin corresponds to the ground signal "GND", "4" and "5" pin corresponds to the left channel signal "AUDIO _ L". In addition, the earphone interface further includes two built-in resistors R1, R2 and a built-in capacitor C1, and a power terminal "VDD" and a ground terminal "GND".
In this embodiment, when the earphone interface is not accessed by a device, the earphone insertion detection signal "HP _ DET" is kept at a high level, and after the device is inserted, the earphone insertion detection signal may be changed or kept unchanged according to the type of the access device.
Step S20, if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a speaker of the audio playing device to a mute state.
In this embodiment, if the earphone interface has a three-section type earphone connector access, the earphone insertion detection signal changes from a high level to a low level, and at this time, it is determined that the earphone interface has an earphone device access, and a speaker of the audio playing device is set to a mute state.
If the earphone interface has four-section type earphone connector access, the earphone insertion detection signal is still high level. When the answering key of the four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal is detected to change, the earphone interface can be determined to have earphone equipment connected, and a loudspeaker of the audio playing equipment is set to be in a mute state.
And when the loudspeaker of the audio playing device is set to be in a mute state, if the audio playing device has an audio signal, the audio signal is output to an earphone for playing.
Further, in order to better understand the multiplexing method of the earphone interface provided in this embodiment, referring to fig. 3, fig. 3 is a schematic structural diagram of the earphone connector of the present invention. Wherein, the pin of three-section earphone connector '1 & 3' corresponds to the grounding signal 'END ground', '2' pin corresponds to the right channel signal 'R sound channel' and '4 & 5' pin corresponds to the left channel signal 'L sound channel'.
After the three-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the "1" pin and the "3" pin of the three-segment type earphone connector are connected together, the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level after the three-segment type earphone connector is connected, that is, the "1" pin is grounded, so that the earphone insertion detection signal "HP _ DET" changes from high level to low level.
Further, a pin "1" of the four-segment type earphone connector shown in fig. 3 is connected to a pin "3" through an "answer key", the pin "3" corresponds to the ground signal "END", the pin "2" corresponds to the right channel signal "AUDIO _ R", and the pins "4 & 5" correspond to the left channel signal "AUDIO _ L". In addition, the "1" pin also corresponds to the "MIC" signal to which the headset is connected.
After the four-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the pins "1" and "3" of the four-segment type earphone connector are connected together by the "answer key", when the "answer key" is not pressed, the pins "1" and "3" are disconnected, and the earphone insertion detection signal "HP _ DET" corresponding to the pin "1" shown in fig. 2 remains at a high level. When the "answer key" is pressed, the "1" pin and the "3" pin are connected, so the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level before the earphone connector is connected, i.e., the "1" pin is grounded, and the earphone insertion detection signal "HP _ DET" changes from high level to low level.
Step S30, if the earphone insertion detection signal remains unchanged, determining that the earphone interface has no device access or has an audio adapter access, and keeping the speaker of the audio playing device in a play-out state.
In this embodiment, if the earphone insertion detection signal remains unchanged, it is determined that the earphone interface has no device access or an audio adapter access, and at this time, the speaker of the audio playing device remains in an external playing state. For example, when no device is connected to the earphone interface of the audio playing device, the audio signal of the audio playing device may be externally played through a speaker provided by the audio playing device, after the audio adapter is connected to the earphone interface, the earphone insertion detection signal may remain unchanged, the speaker of the audio playing device may still be in an externally played state, and the audio signal of the audio playing device may be simultaneously output to an external speaker device through the audio adapter.
Further, in order to better understand the multiplexing method of the earphone interface provided in this embodiment, referring to fig. 4, fig. 4 is a schematic structural diagram of the audio adapter of the present invention. The audio adapter comprises two ports, one end of the audio adapter is a four-section type standard earphone plug, and the other end of the audio adapter is a standard RCA seat sub-interface, namely an RCA type analog audio output interface. The four-section type standard earphone plug is the four-section type earphone plug shown in fig. 3, a pin "1" is an idle pin, a pin "3" corresponds to the ground signal "END", a pin "2" corresponds to the right channel signal "AUDIO _ R", and a pin "4" corresponds to the left channel signal "AUDIO _ L". The standard RCA seat sub-interface comprises two ports, wherein one port is connected with a right channel signal 'AUDIO _ R' corresponding to a pin '2' of the earphone connector, and the other port is connected with a left channel signal 'AUDIO _ L' corresponding to a pin '4' of the earphone connector.
The embodiment detects whether the earphone insertion detection signal in the earphone interface of the audio playing device changes; if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state; and if the earphone insertion detection signal is kept unchanged, determining that no equipment is accessed to the earphone interface or an audio adapter is accessed to the earphone interface, and keeping the loudspeaker of the audio playing equipment in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Referring to fig. 5, fig. 5 is a flowchart illustrating a multiplexing method for an earphone interface according to a second embodiment of the present invention. The method comprises the following steps:
step S10, detecting whether the earphone insertion detection signal in the earphone interface of the audio playing device changes.
Step S20, if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a speaker of the audio playing device to a mute state.
In this embodiment, if the four-segment type earphone connector is connected to the earphone interface, the earphone insertion detection signal is still at a high level. When an answer key of a four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, the equipment accessed by the earphone interface is determined to be the earphone. For example: and setting the time threshold to be 3 seconds, and if the earphone insertion detection signal is changed from high level to low level and the duration time of the low level is less than 3 seconds and then is restored to the high level, determining that the earphone interface has earphone equipment access.
Step S40, if the earphone insertion detection signal changes from high level to low level, the low level returns to high level after continuing for a second time period, and the second time period is greater than or equal to the preset time threshold, the speaker of the audio playing device is set to be in an external playing state.
After the earphone interface is determined to have the earphone device connected, if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state. For example, after the user accesses the earphone, the audio playing device is in a mute state, and when the user needs to pull out the earphone, the user needs to set the audio playing device to the play-out state, and only needs to press the answer key of the earphone for more than 3 seconds, the audio player cancels the mute state and sets the audio playing device to the play-out state.
Further, if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume; and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
The embodiment detects whether the earphone insertion detection signal in the earphone interface of the audio playing device changes; if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state; and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Referring to fig. 6, fig. 6 is a functional block diagram of a multiplexing device of an earphone interface according to a first embodiment of the present invention. The multiplexing apparatus 300 of the headphone interface includes: a detection module 310, a first setup module 320, and a second setup module 330. Wherein:
the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes.
Referring to fig. 2, fig. 2 is a circuit schematic diagram of the earphone interface of the present invention. Wherein, earphone interface includes 5 pins, and these 5 pins correspond 5 function signal respectively, specifically are: the "1" pin corresponds to the earphone insertion detection signal "HP _ DET", "2" pin corresponds to the right channel signal "AUDIO _ R", "3" pin corresponds to the ground signal "GND", "4" and "5" pin corresponds to the left channel signal "AUDIO _ L". In addition, the earphone interface further includes two built-in resistors R1, R2 and a built-in capacitor C1, and a power terminal "VDD" and a ground terminal "GND".
In this embodiment, when the earphone interface is not accessed by a device, the earphone insertion detection signal "HP _ DET" is kept at a high level, and after the device is inserted, the earphone insertion detection signal may be changed or kept unchanged according to the type of the access device.
The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes.
In this embodiment, if the earphone interface has a three-section type earphone connector access, the earphone insertion detection signal changes from a high level to a low level, and at this time, it is determined that the earphone interface has an earphone device access, and a speaker of the audio playing device is set to a mute state.
If the earphone interface has four-section type earphone connector access, the earphone insertion detection signal is still high level. When the answering key of the four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal is detected to change, the earphone interface can be determined to have earphone equipment connected, and a loudspeaker of the audio playing equipment is set to be in a mute state.
And when the loudspeaker of the audio playing device is set to be in a mute state, if the audio playing device has an audio signal, the audio signal is output to an earphone for playing.
Further, in order to better understand the multiplexing device of the earphone interface provided in this embodiment, referring to fig. 3, fig. 3 is a schematic structural diagram of the earphone connector of the present invention. Wherein, the pin of three-section earphone connector '1 & 3' corresponds to the grounding signal 'END ground', '2' pin corresponds to the right channel signal 'R sound channel' and '4 & 5' pin corresponds to the left channel signal 'L sound channel'.
After the three-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the "1" pin and the "3" pin of the three-segment type earphone connector are connected together, the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level after the three-segment type earphone connector is connected, that is, the "1" pin is grounded, so that the earphone insertion detection signal "HP _ DET" changes from high level to low level.
Further, a pin "1" of the four-segment type earphone connector shown in fig. 3 is connected to a pin "3" through an "answer key", the pin "3" corresponds to the ground signal "END", the pin "2" corresponds to the right channel signal "AUDIO _ R", and the pins "4 & 5" correspond to the left channel signal "AUDIO _ L". In addition, the "1" pin also corresponds to the "MIC" signal to which the headset is connected.
After the four-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the pins "1" and "3" of the four-segment type earphone connector are connected together by the "answer key", when the "answer key" is not pressed, the pins "1" and "3" are disconnected, and the earphone insertion detection signal "HP _ DET" corresponding to the pin "1" shown in fig. 2 remains at a high level. When the "answer key" is pressed, the "1" pin and the "3" pin are connected, so the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level before the earphone connector is connected, i.e., the "1" pin is grounded, and the earphone insertion detection signal "HP _ DET" changes from high level to low level.
A second setting module 330, configured to determine that the earphone interface has no device access or an audio adapter access if the earphone insertion detection signal remains unchanged, and keep a speaker of the audio playing device in an external playing state.
In this embodiment, if the earphone insertion detection signal remains unchanged, it is determined that the earphone interface has no device access or an audio adapter access, and at this time, the speaker of the audio playing device remains in an external playing state. For example, when no device is connected to the earphone interface of the audio playing device, the audio signal of the audio playing device may be externally played through a speaker provided by the audio playing device, after the audio adapter is connected to the earphone interface, the earphone insertion detection signal may remain unchanged, the speaker of the audio playing device may still be in an externally played state, and the audio signal of the audio playing device may be simultaneously output to an external speaker device through the audio adapter.
Further, in order to better understand the multiplexing device of the earphone interface provided in this embodiment, referring to fig. 4, fig. 4 is a schematic structural diagram of the audio adapter of the present invention. The audio adapter comprises two ports, one end of the audio adapter is a four-section type standard earphone plug, and the other end of the audio adapter is a standard RCA seat sub-interface, namely an RCA type analog audio output interface. The four-section type standard earphone plug is the four-section type earphone plug shown in fig. 3, a pin "1" is an idle pin, a pin "3" corresponds to the ground signal "END", a pin "2" corresponds to the right channel signal "AUDIO _ R", and a pin "4" corresponds to the left channel signal "AUDIO _ L". The standard RCA seat sub-interface comprises two ports, wherein one port is connected with a right channel signal 'AUDIO _ R' corresponding to a pin '2' of the earphone connector, and the other port is connected with a left channel signal 'AUDIO _ L' corresponding to a pin '4' of the earphone connector.
The multiplexing apparatus 300 of the earphone interface according to the above embodiment includes: the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes. The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes. A second setting module 330, configured to determine that the earphone interface has no device access or an audio adapter access if the earphone insertion detection signal remains unchanged, and keep a speaker of the audio playing device in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Referring to fig. 7, fig. 7 is a functional block diagram of a multiplexing device of an earphone interface according to a second embodiment of the present invention. The multiplexing apparatus 300 of the headphone interface includes: a detection module 310, a first setup module 320, and a third setup module 340. Wherein,
the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes.
The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes.
In this embodiment, if the four-segment type earphone connector is connected to the earphone interface, the earphone insertion detection signal is still at a high level. When an answer key of a four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, the equipment accessed by the earphone interface is determined to be the earphone. For example: and setting the time threshold to be 3 seconds, and if the earphone insertion detection signal is changed from high level to low level and the duration time of the low level is less than 3 seconds and then is restored to the high level, determining that the earphone interface has earphone equipment access.
A third setting module 340, configured to set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold.
After the earphone interface is determined to have the earphone device connected, if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state. For example, after the user accesses the earphone, the audio playing device is in a mute state, and when the user needs to pull out the earphone, the user needs to set the audio playing device to the play-out state, and only needs to press the answer key of the earphone for more than 3 seconds, the audio player cancels the mute state and sets the audio playing device to the play-out state.
Further, if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume; and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
The multiplexing apparatus 300 of the earphone interface according to the above embodiment includes: the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes. The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes. A third setting module 340, configured to set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A method for multiplexing headphone interfaces, the method comprising:
detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state;
and if the earphone insertion detection signal is kept unchanged, determining that no equipment is accessed to the earphone interface or an audio adapter is accessed to the earphone interface, and keeping the loudspeaker of the audio playing equipment in an external playing state.
2. The method of claim 1, wherein the determining that the headset device is connected to the headset interface if the headset insertion detection signal changes specifically comprises:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, it is determined that the earphone interface has the earphone equipment access.
3. The method of claim 2, wherein the determining that the headset interface has a headset device access further comprises:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state.
4. The method of claim 1, wherein the audio adapter comprises two ports, one end being an earphone jack and the other end being an RCA type analog audio output interface.
5. The method according to any one of claims 1-4, further comprising:
if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume;
and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
6. A multiplexing device for a headphone interface, the device comprising:
the detection module is used for detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
the first setting module is used for determining that the earphone interface has earphone equipment access if the earphone insertion detection signal changes and setting a loudspeaker of the audio playing equipment to be in a mute state;
and the second setting module is used for determining that no equipment is accessed or an audio adapter is accessed to the earphone interface and keeping the loudspeaker of the audio playing equipment in an external playing state if the earphone insertion detection signal is kept unchanged.
7. The apparatus of claim 6, wherein the first setup module comprises:
the determining module is configured to determine that the headset interface has a headset device access if the headset insertion detection signal changes from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold.
8. The apparatus of claim 7, wherein the first setup module further comprises:
and the third setting module is configured to, after it is determined that the earphone interface has an earphone device access, set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after continuing for a second time period, and the second time period is greater than or equal to the preset time threshold.
9. The apparatus of claim 6, wherein the audio adapter comprises two ports, one end being an earphone connector and the other end being an RCA type analog audio output interface.
10. The apparatus of any one of claims 6-9, further comprising:
the fourth setting module is used for setting the volume gain output by the audio output interface to be controlled by the master volume if the loudspeaker of the audio playing device is in a mute state;
and the fifth setting module is used for setting the volume gain output by the audio output interface to be a preset gain if the loudspeaker of the audio playing device is in an outward playing state.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610629942.5A CN106231460B (en) | 2016-08-03 | 2016-08-03 | The multiplexing method and device of earphone interface |
PCT/CN2016/112316 WO2018023927A1 (en) | 2016-08-03 | 2016-12-27 | Earphone interface reusing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610629942.5A CN106231460B (en) | 2016-08-03 | 2016-08-03 | The multiplexing method and device of earphone interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106231460A true CN106231460A (en) | 2016-12-14 |
CN106231460B CN106231460B (en) | 2019-05-31 |
Family
ID=57536512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610629942.5A Active CN106231460B (en) | 2016-08-03 | 2016-08-03 | The multiplexing method and device of earphone interface |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106231460B (en) |
WO (1) | WO2018023927A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107371078A (en) * | 2017-06-28 | 2017-11-21 | 维沃移动通信有限公司 | A kind of mobile terminal and earphone |
WO2018023927A1 (en) * | 2016-08-03 | 2018-02-08 | 深圳Tcl数字技术有限公司 | Earphone interface reusing method and apparatus |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871196B (en) * | 2019-03-15 | 2022-08-02 | 维沃移动通信有限公司 | Mobile terminal and control method of mobile terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201869241U (en) * | 2010-10-22 | 2011-06-15 | 蒲业臣 | Audio interface of communication equipment |
CN202197393U (en) * | 2011-08-03 | 2012-04-18 | 深圳市金康特通讯技术有限公司 | Earphone interface and mobile terminal shared by sensor and earphone |
CN103260108A (en) * | 2012-02-20 | 2013-08-21 | 深圳富泰宏精密工业有限公司 | Electronic device and method for achieving earphone compatibility |
CN204836549U (en) * | 2015-07-31 | 2015-12-02 | 南京信息工程大学 | Multi -functional audio frequency patch cord |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7780478B2 (en) * | 2007-06-28 | 2010-08-24 | Apple Inc. | Apparatus and methods for connecting two electrical devices together |
CN101610439B (en) * | 2008-06-19 | 2013-02-27 | 鸿富锦精密工业(深圳)有限公司 | Electronic device |
CN202310062U (en) * | 2011-09-02 | 2012-07-04 | 广东欧珀移动通信有限公司 | Compatible three-section earphone insertion detection circuit |
CN106231460B (en) * | 2016-08-03 | 2019-05-31 | 深圳Tcl数字技术有限公司 | The multiplexing method and device of earphone interface |
-
2016
- 2016-08-03 CN CN201610629942.5A patent/CN106231460B/en active Active
- 2016-12-27 WO PCT/CN2016/112316 patent/WO2018023927A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201869241U (en) * | 2010-10-22 | 2011-06-15 | 蒲业臣 | Audio interface of communication equipment |
CN202197393U (en) * | 2011-08-03 | 2012-04-18 | 深圳市金康特通讯技术有限公司 | Earphone interface and mobile terminal shared by sensor and earphone |
CN103260108A (en) * | 2012-02-20 | 2013-08-21 | 深圳富泰宏精密工业有限公司 | Electronic device and method for achieving earphone compatibility |
CN204836549U (en) * | 2015-07-31 | 2015-12-02 | 南京信息工程大学 | Multi -functional audio frequency patch cord |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018023927A1 (en) * | 2016-08-03 | 2018-02-08 | 深圳Tcl数字技术有限公司 | Earphone interface reusing method and apparatus |
CN107371078A (en) * | 2017-06-28 | 2017-11-21 | 维沃移动通信有限公司 | A kind of mobile terminal and earphone |
CN107371078B (en) * | 2017-06-28 | 2019-10-15 | 维沃移动通信有限公司 | A kind of mobile terminal and earphone |
Also Published As
Publication number | Publication date |
---|---|
WO2018023927A1 (en) | 2018-02-08 |
CN106231460B (en) | 2019-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105578353B (en) | By the method for the circuit and reduction crosstalk of usb audio receiver and electronic equipment coupling | |
US8260380B2 (en) | Headset with remote control | |
US9264823B2 (en) | Audio headset with automatic equalization | |
US20150098579A1 (en) | Method and apparatus for an integrated headset switch with reduced crosstalk noise | |
US10015578B2 (en) | Remote ground sensing for reduced crosstalk of headset and microphone audio signals | |
CN101841588B (en) | Audio interface device and electronic device using same | |
CN106231460B (en) | The multiplexing method and device of earphone interface | |
US20130101131A1 (en) | Headphone with speaker function | |
US9571916B2 (en) | Audio codec with audio jack detection function and audio jack detection method | |
DE102007052625A1 (en) | Stereo Bluetooth headset | |
CN107635171B (en) | Circuit for improving earphone compatibility | |
TW201439895A (en) | Electronic device and method for sensing headset | |
KR20150045638A (en) | Earjack and electronic device having the same | |
CN105120390B (en) | Headphone socket, headphone plug and electronic device | |
CN111031435A (en) | Audio circuit, head-mounted display equipment and head-mounted display system | |
WO2012031468A1 (en) | Earphone pulling and plugging detection circuit | |
TWI522904B (en) | Electronic device and headset for calibrating electronic device | |
CN105142072A (en) | Audio apparatus with externally connected player and audio playing method thereof | |
CN107205191A (en) | A kind of interior recording device extended by ear microphone jack and method | |
US8660273B2 (en) | Interface circuit and electronic device using the same | |
CN206650845U (en) | Headset detection device and intelligent electronic device | |
CN108196818B (en) | Earphone recognition device | |
US20130114816A1 (en) | Audio Coupling System | |
CN103037282A (en) | Wireless speaker box system | |
CN209313968U (en) | A kind of arc signal detection circuit, device and electronic product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |