CN-122027962-A - 3.5Mm audio interface identification monitoring system and method based on impedance and signal detection
Abstract
The invention discloses a 3.5mm audio interface identification monitoring system and method based on impedance and signal detection. A3.5 mm audio interface identification monitoring method based on impedance and signal detection comprises the following steps of S1, equipment insertion detection, S2, equipment type identification, wherein the step of detecting that equipment is inserted into a 3.5mm audio interface, the step of measuring direct current impedance of a left channel of the interface to a public ground and the direct current impedance of a right channel of the interface to the public ground and judging the type of inserted equipment according to the numerical range of the direct current impedance, and the step of signal state monitoring, S3, sampling audio signals on the left channel and the right channel under an audio playing state and judging an audio output state according to a sampling result. The 3.5mm audio interface identification monitoring system and method based on impedance and signal detection have the beneficial effects that impedance detection and signal analysis are combined to form multi-mode monitoring, so that the type identification and real-time signal state diagnosis capability of the 3.5mm audio interface connection equipment are improved.
Inventors
- TANG YUEFEI
- LIN TAO
- MA XIGUO
Assignees
- 嘉兴林克思展示器材有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251229
Claims (10)
- 1. The 3.5mm audio interface identification monitoring method based on impedance and signal detection is characterized by comprising the following steps of: Step S1, a device insertion detection step, namely detecting that a device is inserted into a 3.5mm audio interface; S2, a device type identification step, namely measuring direct current impedance of a left channel of an interface to the public ground and a right channel of the interface to the public ground, and judging the type of the inserted device according to the numerical range of the direct current impedance; and S3, in the signal state monitoring step, in the audio playing state, the audio signals on the left and right channels are sampled, and the audio output state is judged according to the sampling result.
- 2. The method for monitoring and identifying a 3.5mm audio interface based on impedance and signal detection according to claim 1, wherein in step S2, determining the type of the insertion device comprises: when the direct current impedance is larger than a first preset threshold value, judging that the inserting equipment is a wire or fault equipment; When the direct current impedance is within the typical earphone impedance range, the inserting device is judged to be an earphone; When the direct current impedance is smaller than a second preset threshold value, the insertion equipment is judged to be a passive loudspeaker; when the DC impedance is higher than the typical earphone impedance range, the insertion device is judged to be an active sound box.
- 3. The method for monitoring and identifying a 3.5mm audio interface based on impedance and signal detection according to claim 1, wherein in step S3, determining an audio output state comprises: when the left and right sound channels detect effective audio signals, judging that the stereo playing is normal; When only the left channel or only the right channel detects a valid audio signal, determining that the right channel is abnormal or the left channel is abnormal; when no effective audio signal is detected by both the left and right channels, a silent failure is determined.
- 4. The 3.5mm audio interface identification monitoring method based on impedance and signal detection according to claim 1, wherein the 3.5mm audio interface identification monitoring method based on impedance and signal detection further comprises step S4, an operation mode management step: when the host device is in an idle state of non-audio playing, periodically executing step S2, and identifying the device type so as to monitor the connection state; When the host device starts playing the audio, the host device is switched to the working mode and performs step S3, and a signal state monitoring step.
- 5. A 3.5mm audio interface identification monitoring system based on impedance and signal detection, which is characterized in that the 3.5mm audio interface identification monitoring system based on impedance and signal detection is applied to the 3.5mm audio interface identification monitoring method based on impedance and signal detection as claimed in claim 1, and comprises: an impedance detection circuit coupled to the left and right channels of the 3.5mm audio interface for measuring the direct current impedance of the left channel to common ground and the right channel to common ground; A signal sampling detection circuit coupled to left and right channels of the 3.5mm audio interface for sampling audio signals; and the micro control unit is connected with the impedance detection circuit and the signal sampling detection circuit and is configured to execute the step S2, the equipment type identification step and the step S3, and the signal state monitoring step.
- 6. The 3.5mm audio interface identification monitoring system based on impedance and signal detection of claim 5, wherein the micro control unit is further configured to: in an idle mode, controlling an impedance detection circuit to perform periodic direct current impedance measurement; In the play mode, the control signal sampling detection circuit samples and analyzes the audio signal in real time.
- 7. The 3.5mm audio interface identification monitoring system based on impedance and signal detection of claim 5, wherein the signal sampling detection circuit comprises an analog-to-digital converter and a peak detection circuit.
- 8. The system of claim 5, wherein the micro control unit is further connected to a central processing unit of the host device through a communication interface, and is configured to report the determined device type and/or audio output status to the host device.
- 9. The 3.5mm audio interface identification monitoring system based on impedance and signal detection of claim 8, wherein the communication interface is an I2C bus or UART asynchronous serial communication interface.
- 10. An electronic device comprising a 3.5mm audio interface identification monitoring system based on impedance and signal detection as claimed in any one of claims 5 to 9.
Description
3.5Mm audio interface identification monitoring system and method based on impedance and signal detection Technical Field The invention belongs to the field of audio interface detection, and particularly relates to a 3.5mm audio interface identification monitoring system based on impedance and signal detection and a 3.5mm audio interface identification monitoring method based on impedance and signal detection. Background The invention discloses a method and a device for identifying matched headphones and an electronic device, wherein the topic name of the method and the device is CN104754461A, the IPC classification number of the method is H04R3/00, and the technical scheme of the invention discloses that the electronic device comprises an electric parameter detection circuit, when a four-section type headphone is inserted into the electronic device, the input end of the electric parameter detection circuit is connected with the MIC pin of an MIC channel of the four-section type headphone, the method comprises the steps of inputting zero potential to the left channel pin and the right channel pin of the four-section type headphone when the fact that the four-section type headphone is inserted into the electronic device is detected, driving the electric parameter detection circuit to detect electric parameter values on the MIC pin, and judging that the four-section type headphone is the matched headphone when the electric parameter values meet preset conditions, otherwise judging that the four-section type headphone is not matched headphone. Therefore, the above patent discloses one technical scheme of a method and a device for identifying the matched earphone and an electronic device. However, the technical solutions disclosed in the above patent inventions focus on earphone detection, and do not further solve the problems of significantly improving the device type recognition capability, and the like, and further improvement is required. Disclosure of Invention Aiming at the state of the art, the invention overcomes the defects and provides a 3.5mm audio interface identification monitoring system based on impedance and signal detection and a 3.5mm audio interface identification monitoring method based on impedance and signal detection. The invention adopts the following technical scheme that the 3.5mm audio interface identification monitoring method based on impedance and signal detection comprises the following steps: Step S1, a device insertion detection step, namely detecting that a device is inserted into a 3.5mm audio interface; S2, a device type identification step, namely measuring direct current impedance of a left channel of an interface to the public ground and a right channel of the interface to the public ground, and judging the type of the inserted device according to the numerical range of the direct current impedance; and S3, in the signal state monitoring step, in the audio playing state, the audio signals on the left and right channels are sampled, and the audio output state is judged according to the sampling result. As a preferable mode of the above technical mode, in step S2, determining the type of the insertion device includes: when the direct current impedance is larger than a first preset threshold value, judging that the inserting equipment is a wire or fault equipment; When the direct current impedance is within the typical earphone impedance range, the inserting device is judged to be an earphone; When the direct current impedance is smaller than a second preset threshold value, the insertion equipment is judged to be a passive loudspeaker; when the DC impedance is higher than the typical earphone impedance range, the insertion device is judged to be an active sound box. As a preferred embodiment of the foregoing embodiment, in step S3, determining the audio output state includes: when the left and right sound channels detect effective audio signals, judging that the stereo playing is normal; When only the left channel or only the right channel detects a valid audio signal, determining that the right channel is abnormal or the left channel is abnormal; when no effective audio signal is detected by both the left and right channels, a silent failure is determined. As the preferable technical scheme of the technical scheme, the 3.5mm audio interface identification monitoring method based on impedance and signal detection further comprises a step S4, and a working mode management step: when the host device is in an idle state of non-audio playing, periodically executing step S2, and identifying the device type so as to monitor the connection state; When the host device starts playing the audio, the host device is switched to the working mode and performs step S3, and a signal state monitoring step. The invention adopts the following technical scheme that the 3.5mm audio interface identification monitoring system based on impedance and signal detection is applied to any one of the abo