CN113448531A - Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment - Google Patents

Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment Download PDF

Info

Publication number
CN113448531A
CN113448531A CN202110647978.7A CN202110647978A CN113448531A CN 113448531 A CN113448531 A CN 113448531A CN 202110647978 A CN202110647978 A CN 202110647978A CN 113448531 A CN113448531 A CN 113448531A
Authority
CN
China
Prior art keywords
audio
driver
earphone
female seat
pin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110647978.7A
Other languages
Chinese (zh)
Inventor
翁志彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Xiaopai Intelligent Technology Co ltd
Original Assignee
Hangzhou Xiaopai Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Xiaopai Intelligent Technology Co ltd filed Critical Hangzhou Xiaopai Intelligent Technology Co ltd
Priority to CN202110647978.7A priority Critical patent/CN113448531A/en
Publication of CN113448531A publication Critical patent/CN113448531A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/01Head-up displays

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Optics & Photonics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application relates to a loudspeaker and earphone interface self-adaptive method, a system and virtual reality equipment, which are applied to terminal equipment, wherein the terminal equipment comprises a controller, an audio female seat, an earphone driver and a loudspeaker driver, the controller is respectively connected with the earphone driver, the loudspeaker driver and the audio female seat, the audio female seat is respectively connected with the earphone driver and the loudspeaker driver, the voltage value of a pin of the audio female seat is detected through the controller, if the voltage value is within a first preset range, the loudspeaker audio male head is judged to be inserted into the audio female seat, the connection between the earphone driver and the audio female seat is disconnected, and the loudspeaker driver is controlled to work, so that the loudspeaker can sound; if the magnitude of voltage is in the second preset range, then judge for the public head of earphone audio inserts the female seat of audio frequency, control loudspeaker driver is out of work to control earphone driver and be connected with the female seat of audio frequency, make the earphone sound production, it is many to have solved wear-type display device interface quantity, and structural design is complicated, miniaturized and lightweight problem inadequately.

Description

Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment
Technical Field
The application relates to the technical field of virtual reality, in particular to a loudspeaker and earphone interface self-adaptive method and system and virtual reality equipment.
Background
Different effects of Virtual Reality (VR), Augmented Reality (AR), and Mixed Reality (MR) can be achieved by sending optical signals to the eye through various Head Mounted Displays (HMDs). The virtual reality is a virtual world which utilizes computer simulation to generate a three-dimensional space, and provides simulation of senses of vision, hearing, touch and the like for a user, so that the user can observe objects in the three-dimensional space in time without limitation as if the user is in his own environment.
In the correlation technique, the audio output of wear-type display equipment generally has loudspeaker on the headband and puts and earphone output two kinds of modes outward, because the signal type of loudspeaker signal and earphone signal is different, needs two interfaces to come transmission signal respectively, and an interface output loudspeaker signal, an interface output earphone signal makes wear-type display equipment interface many, and structural design is complicated, is unfavorable for product miniaturization and lightweight.
At present, an effective solution is not provided aiming at the problems of large quantity of interfaces, complex structural design, insufficient miniaturization and light weight of head-mounted display equipment in the related technology.
Disclosure of Invention
The embodiment of the application provides a loudspeaker and earphone interface self-adaptive method, a system and virtual reality equipment, and aims to at least solve the problems that in the related art, the number of interfaces of a head-mounted display is large, the structural design is complex, and the size and the weight are not small enough.
In a first aspect, an embodiment of the present application provides a method for adapting a speaker and an earphone interface, where the method is applied to a terminal device, where the terminal device includes: the controller is connected with the earphone driver, the loudspeaker driver and the audio mother seat respectively, the audio mother seat is connected with the earphone driver and the loudspeaker driver respectively, and the method comprises the following steps:
detecting a voltage value of the pin of the audio female socket, and if the voltage value is within a first preset range, disconnecting the earphone driver from the audio female socket and controlling the loudspeaker driver to work;
and if the voltage value is within a second preset range, controlling the earphone driver to be connected with the audio female seat and controlling the loudspeaker driver not to work.
In some embodiments, if the voltage value is within a first preset range, disconnecting the headphone driver from the audio jack and controlling the speaker driver to operate, and if the voltage value is within a second preset range, controlling the headphone driver to connect with the audio jack and controlling the speaker driver to not operate includes:
the earphone driver is connected with the audio mother seat through an analog switch;
the controller detects a voltage value of the pin of the audio female seat, and if the voltage value is within a first preset range, the analog switch is controlled to be disconnected with the audio female seat, the earphone driver is disconnected with the audio female seat, and the loudspeaker driver is controlled to work;
if the voltage value is within a second preset range, the analog switch is controlled to be connected with the audio female seat, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled not to work.
In some embodiments, the terminal device further includes a power module, where the power module is connected between the controller and the audio female socket through a first resistor, if the voltage value is within a first preset range, the earphone driver is disconnected from the audio female socket and the speaker driver is controlled to operate, and if the voltage value is within a second preset range, the earphone driver is controlled to be connected to the audio female socket and the speaker driver is controlled to be inoperative, where the power module includes:
the left sound channel output end of the earphone driver is connected with a first pin of the audio female seat through an analog switch, the right sound channel output end of the earphone driver is connected with a second pin of the audio female seat through an analog switch, the SPK positive end of the loudspeaker driver is connected with the first pin of the audio female seat, and the SPK negative end of the loudspeaker driver is connected with the second pin of the audio female seat;
detecting a voltage value of a fourth pin of the audio female seat, if the voltage value is within a first preset range, controlling the analog switch to be disconnected through a first enabling signal, disconnecting the earphone driver from the audio female seat, and controlling the loudspeaker driver to work through a second enabling signal;
if the voltage value is within a second preset range, the analog switch is controlled to be switched on through the first enabling signal, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled to be out of work through the second enabling signal.
In some embodiments, the terminal device further comprises a speaker audio male plug connected with the audio female socket and a headset audio male plug connected with the audio female socket,
a first pin of the horn audio male head is connected with a horn anode, a second pin of the horn audio male head is connected with a horn cathode, a third pin of the horn audio male head is grounded, and a fourth pin of the horn audio male head is grounded through a first resistor;
the first pin of the earphone audio male head is connected with the anode of the left earphone, the second pin of the earphone audio male head is connected with the anode of the right earphone, and the cathode of the left earphone and the cathode of the right earphone are respectively connected with the third pin of the earphone audio male head.
In a second aspect, an embodiment of the present application provides a system for adapting a speaker and an earphone interface, where the system is applied to a terminal device, and the terminal device includes: the controller is respectively connected with the earphone driver, the loudspeaker driver and the audio female seat, and the audio female seat is respectively connected with the earphone driver and the loudspeaker driver;
the controller detects a voltage value of the pin of the audio female seat, and if the voltage value is within a first preset range, the connection between the earphone driver and the audio female seat is disconnected, and the loudspeaker driver is controlled to work;
and if the voltage value is within a second preset range, controlling the earphone driver to be connected with the audio female seat and controlling the loudspeaker driver not to work.
In some embodiments, the system further includes an analog switch, and if the voltage value is within a first preset range, the analog switch disconnects the headphone driver from the audio jack and controls the speaker driver to operate, and if the voltage value is within a second preset range, the analog switch controls the headphone driver to connect to the audio jack and controls the speaker driver to not operate includes:
the earphone driver is connected with the audio female seat through the analog switch;
the controller detects a voltage value of the pin of the audio female seat, and if the voltage value is within a first preset range, the analog switch is controlled to be disconnected with the audio female seat, the earphone driver is disconnected with the audio female seat, and the loudspeaker driver is controlled to work;
if the voltage value is within a second preset range, the analog switch is controlled to be connected with the audio female seat, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled not to work.
In some embodiments, the system further includes an analog switch, and if the voltage value is within a first preset range, the analog switch disconnects the headphone driver from the audio jack and controls the speaker driver to operate, and if the voltage value is within a second preset range, the analog switch controls the headphone driver to connect to the audio jack and controls the speaker driver to not operate includes:
the left sound channel output end of the earphone driver is connected with a first pin of the audio female seat through the analog switch, the right sound channel output end of the earphone driver is connected with a second pin of the audio female seat through the analog switch, the SPK positive end of the loudspeaker driver is connected with the first pin of the audio female seat, the SPK negative end of the loudspeaker driver is connected with the second pin of the audio female seat, a third pin of the audio female seat is grounded, and the controller is connected with a fourth pin of the audio female seat;
the controller detects a voltage value of a fourth pin of the audio female seat, if the voltage value is within a first preset range, the analog switch is controlled to be disconnected through a first enabling signal, the earphone driver is disconnected with the audio female seat, and the loudspeaker driver is controlled to work through a second enabling signal;
if the voltage value is within a second preset range, the analog switch is controlled to be switched on through the first enabling signal, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled to be out of work through the second enabling signal.
In some of these embodiments, the system further includes a loudspeaker audio male plug inserted into the audio female socket, a first pin of the loudspeaker audio male plug is connected to the loudspeaker anode, a second pin of the loudspeaker audio male plug is connected to the loudspeaker cathode, a third pin of the loudspeaker audio male plug is grounded, and a fourth pin of the loudspeaker audio male plug is grounded through a first resistor, wherein the first preset range can be adjusted by adjusting the resistance of the first resistor and the second resistor.
In some embodiments, the system further includes a male earphone audio head inserted into the female audio seat, a first pin of the male earphone audio head is connected to the positive left earphone, a second pin of the male earphone audio head is connected to the positive right earphone, and the negative left earphone and the negative right earphone are respectively connected to the third pin of the male earphone audio head.
In a third aspect, an embodiment of the present application provides a virtual reality device, where the virtual reality device includes the speaker and headphone interface adaptive system described in the second aspect.
Compared with the related art, the loudspeaker and earphone interface self-adaption method provided by the embodiment of the application is applied to terminal equipment, the terminal equipment comprises a controller, an audio female seat, an earphone driver and a loudspeaker driver, the controller is respectively connected with the earphone driver, the loudspeaker driver and the audio female seat, the audio female seat is respectively connected with the earphone driver and the loudspeaker driver, the voltage value of a pin of the audio female seat is detected through the controller, if the voltage value is within a first preset range, it is judged that a loudspeaker audio male plug is inserted into the audio female seat, the connection between the earphone driver and the audio female seat is disconnected, the loudspeaker driver is controlled to work, and loudspeaker audio signals are output outwards, so that the loudspeaker sounds; if the magnitude of voltage is in the second preset range, then judge for the public head of earphone audio inserts the female seat of audio frequency, control loudspeaker driver is out of work to control earphone driver and audio frequency female seat and be connected, earphone driver externally outputs earphone audio signal, makes the earphone sound production, it is many to have solved wear-type display equipment interface quantity, and structural design is complicated, miniaturized and lightweight problem inadequately.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flow chart of a method of speaker and headphone interface adaptation according to an embodiment of the present application;
fig. 2 is a block diagram of a system for speaker and headphone interface adaptation according to an embodiment of the present application;
fig. 3 is a block diagram of a second speaker and headphone interface adaptation system according to an embodiment of the present application;
fig. 4 is a block diagram of a third speaker and headphone interface adaptation system according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a speaker audio male circuit according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an audio male circuit of a headset according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The present embodiment provides a speaker and earphone interface adaptive system, which is used to implement the embodiments and preferred embodiments of the present application, and the description of the system that has been already made is omitted. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 1 is a block diagram of a system for adapting a speaker and a headphone interface according to an embodiment of the present application, where the system is applied to a terminal device 10, the terminal device 10 includes a controller 101, an audio mother socket 104, a headphone driver 102, and a speaker driver 103, the controller 101 is connected to the headphone driver 102, the speaker driver 103, and the audio mother socket 104 is connected to the headphone driver 102 and the speaker driver 103, respectively; the controller 101 detects a voltage value of a pin of the audio female seat 104, and if the voltage value is within a first preset range, the connection between the earphone driver 102 and the audio female seat 104 is disconnected, and the loudspeaker driver 103 is controlled to work; if the voltage value is within the second preset range, the earphone driver 102 is controlled to be connected with the audio female seat 104, and the loudspeaker driver 103 is controlled not to work.
In some embodiments, fig. 2 is a block diagram of a second speaker and headphone interface adaptive system according to an embodiment of the present application, and as shown in fig. 2, the system further includes an analog switch 201, and the headphone driver 102 is connected to the audio mother socket 104 through the analog switch 201; the controller 101 detects a voltage value of a pin of the audio female seat 104, and if the voltage value is within a first preset range, the analog switch 201 is controlled to be disconnected from the audio female seat 104, the earphone driver 102 is disconnected from the audio female seat 104, and the loudspeaker driver 103 is controlled to work; if the voltage value is within the second preset range, the analog switch 201 is controlled to be connected with the audio socket 104, and then the earphone driver 102 is connected with the audio socket 104, and the speaker driver 103 is controlled not to work. The analog switch 201 mainly completes a signal switching function in a signal link, the analog switch 201 adopts a switching mode of an MOS (metal oxide semiconductor) tube to realize the switching-off or the switching-on of the signal link, and the analog switch has the characteristics of low power consumption, high speed, no mechanical contact, small volume, long service life and the like.
In some embodiments, fig. 3 is a block diagram of a third speaker and headphone interface adaptive system according to an embodiment of the present application, as shown in fig. 3, the system also comprises a power supply module (3.3V), the power supply module is connected between the controller 101 and the audio female seat 104 through a first resistor, a left sound channel output end (R) of the earphone driver 102 is connected with a first pin (R) of the audio female seat 104 through an analog switch 201, a right sound channel output end (L) of the earphone driver 102 is connected with a second pin (R) of the audio female seat 104 through the analog switch 201, an SPK positive end (SPK +) of the loudspeaker driver 103 is connected with the first pin of the audio female seat 104, an SPK negative end (SPK-) of the loudspeaker driver 103 is connected with the second pin of the audio female seat 104, the third pin (c) of the audio mother seat 104 is grounded, and the controller 101 is connected with the fourth pin (r) of the audio mother seat 104;
the controller 101 detects a voltage value of a fourth pin of the audio female seat 104, if the voltage value is within a first preset range, the analog switch 201 is controlled to be disconnected through a first enabling signal, the earphone driver 102 is disconnected from the audio female seat 104, and the loudspeaker driver 103 is controlled to work through a second enabling signal;
if the voltage value is within the second preset range, the analog switch 201 is controlled to be turned on by the first enable signal, the earphone driver 102 is connected with the audio socket 104, and the speaker driver 103 is controlled to be not operated by the second enable signal.
In some embodiments, fig. 4 is a schematic structural diagram of a speaker audio male circuit according to an embodiment of the present application, and as shown in fig. 4, the system includes a speaker audio male 301 plugged into the audio female 104,
the first pin (r) of the horn audio male head 301 is connected with the horn anode of the horn 302, the second pin (r) of the horn audio male head 301 is connected with the horn cathode, the third pin (c) of the horn audio male head 301 is grounded, the fourth pin (r) of the horn audio male head 301 is grounded through the second resistor, and the first preset range can be adjusted by adjusting the resistance values of the first resistor and the second resistor.
In some embodiments, fig. 5 is a schematic structural diagram of a male headphone audio connector circuit according to an embodiment of the present application, and as shown in fig. 5, the system includes a male headphone audio connector 401 plugged into the female audio socket 104,
a first pin (r) of the earphone audio male head 401 is connected with a left earphone positive electrode of the left earphone 402, a second pin (r) of the earphone audio male head 401 is connected with a right earphone positive electrode of the right earphone 403, and a left earphone negative electrode and a right earphone negative electrode are respectively connected with a third pin (r) of the earphone audio male head 401.
Illustratively, when the speaker audio male plug 301 is inserted into the audio female socket 104, and the values of the first resistor and the second resistor are both 10K, the controller 101 detects a voltage value through an ADC signal connected to the fourth pin of the audio female socket 104, where the voltage value is 1.65V (divided by 2 10K resistors, and 3.3V/2K is 1.65 mV). The controller 101 judges that 1.65mV is within a first preset range, recognizes that the loudspeaker audio male plug 301 is inserted into the audio female seat 104, and the controller 101 controls the enabling signal of the analog switch 201 to be invalid, so that the analog switch 201 is switched off, controls the enabling signal of the loudspeaker driver 103 to take effect, so that the loudspeaker driver 103 works, outputs loudspeaker audio signals to the outside, and produces sound;
when the earphone audio male plug 401 is inserted into the audio female socket 104, the fourth pin and the third pin of the audio female socket 104 are connected together, the fourth pin of the audio female socket 104 is grounded through the third pin, the controller 101 detects a voltage value through an ADC signal connected to the fourth pin of the audio female socket 104, and the voltage value is 0V (grounded). The controller 101 judges that 0V is in the second preset range, recognizes that the earphone audio male plug 401 is inserted into the audio female seat 104, and the controller 101 disables the speaker driver 103 by disabling the enable signal of the speaker driver 103, so that the speaker driver 103 does not operate, and the enable signal of the analog switch 201 takes effect, so that the analog switch 201 is turned on, the earphone driver 102 outputs an earphone audio signal to the outside, and the earphone sounds.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The embodiment also provides a speaker and headphone interface adaptive method, which is applied to a terminal device, where the terminal device includes a controller, an audio female socket, a headphone driver, and a speaker driver, the controller is connected to the headphone driver, the speaker driver, and the audio female socket is connected to the headphone driver and the speaker driver, respectively, fig. 6 is a flowchart of a speaker and headphone interface adaptive method according to an embodiment of the present application, and as shown in fig. 6, the method includes the following steps:
step S601, the controller detects the voltage value of the pin of the audio female seat, if the voltage value is within a first preset range, the connection between the earphone driver and the audio female seat is disconnected, and the loudspeaker driver is controlled to work;
step S602, if the voltage value is within the second preset range, controlling the headphone driver to be connected to the audio socket, and controlling the speaker driver not to operate.
Through the steps S601 to S602, compared with the related art, the audio output of the terminal device has two modes of speaker extension and earphone output, because the signal types of the speaker signal and the earphone signal are different, two interfaces are respectively required to transmit the corresponding signal, one interface outputs the speaker signal and the other interface outputs the earphone signal, which results in a large number of interfaces on the terminal device, a complex structural design, and is not beneficial to the miniaturization and light weight of the terminal device, the system of the present application determines that the audio male plug inserted into the audio female socket is the speaker audio male plug or the earphone audio male plug by detecting the voltage value of the pin of the audio female socket, thereby controlling the corresponding speaker driver or the earphone driver to output the corresponding speaker audio signal or the earphone audio signal, thereby realizing the self-adaptation of the speaker and the earphone through one audio interface, and solving the problem of large number of interfaces of the head-mounted display device, the structural design is complicated, and the miniaturization and the light weight are not enough.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The embodiment of the present application further provides a virtual reality device, where the virtual display device includes the system described in any of the above embodiments, and therefore, the virtual reality device also has the beneficial effects of the above embodiments, and details are not repeated here.
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A speaker and earphone interface adaptive method is applied to a terminal device, and the terminal device comprises: the controller is connected with the earphone driver, the loudspeaker driver and the audio mother seat respectively, the audio mother seat is connected with the earphone driver and the loudspeaker driver respectively, and the method comprises the following steps:
the controller detects a voltage value of the pin of the audio female seat, and if the voltage value is within a first preset range, the connection between the earphone driver and the audio female seat is disconnected, and the loudspeaker driver is controlled to work;
and if the voltage value is within a second preset range, controlling the earphone driver to be connected with the audio female seat and controlling the loudspeaker driver to stop working.
2. The method of claim 1, wherein if the voltage value is within a first predetermined range, disconnecting the headphone driver from the audio jack and controlling the speaker driver to operate, and if the voltage value is within a second predetermined range, controlling the headphone driver to connect to the audio jack and controlling the speaker driver to not operate comprises:
the earphone driver is connected with the audio mother seat through an analog switch;
the controller detects a voltage value of the pin of the audio female seat, and if the voltage value is within a first preset range, the analog switch is controlled to be disconnected with the audio female seat, the earphone driver is disconnected with the audio female seat, and the loudspeaker driver is controlled to work;
if the voltage value is within a second preset range, the analog switch is controlled to be connected with the audio female seat, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled not to work.
3. The method of claim 2, wherein the terminal device further comprises a power module, the power module is connected between the controller and the audio socket through a first resistor, if the voltage value is within a first preset range, the earphone driver is disconnected from the audio socket and the speaker driver is controlled to operate, and if the voltage value is within a second preset range, the earphone driver is controlled to be connected to the audio socket and the speaker driver is controlled not to operate, the method comprises:
the left sound channel output end of the earphone driver is connected with a first pin of the audio female seat through an analog switch, the right sound channel output end of the earphone driver is connected with a second pin of the audio female seat through an analog switch, the SPK positive end of the loudspeaker driver is connected with the first pin of the audio female seat, the SPK negative end of the loudspeaker driver is connected with the second pin of the audio female seat, a third pin of the audio female seat is grounded, and the controller is connected with a fourth pin of the audio female seat;
detecting a voltage value of a fourth pin of the audio female seat, if the voltage value is within a first preset range, controlling the analog switch to be disconnected through a first enabling signal, disconnecting the earphone driver from the audio female seat, and controlling the loudspeaker driver to work through a second enabling signal;
if the voltage value is within a second preset range, the analog switch is controlled to be switched on through the first enabling signal, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled to be out of work through the second enabling signal.
4. The method of claim 3, wherein the terminal device further comprises a speaker audio male plug connected with the audio female socket and a headphone audio male plug connected with the audio female socket,
a first pin of the horn audio male head is connected with a horn anode, a second pin of the horn audio male head is connected with a horn cathode, a third pin of the horn audio male head is grounded, a fourth pin of the horn audio male head is grounded through a second resistor, and the first preset range can be adjusted by adjusting the resistance values of the first resistor and the second resistor;
the first pin of the earphone audio male head is connected with the anode of the left earphone, the second pin of the earphone audio male head is connected with the anode of the right earphone, and the cathode of the left earphone and the cathode of the right earphone are respectively connected with the third pin of the earphone audio male head.
5. A system for adapting a speaker and an earphone interface is applied to a terminal device, and the terminal device comprises: the controller is respectively connected with the earphone driver, the loudspeaker driver and the audio female seat, and the audio female seat is respectively connected with the earphone driver and the loudspeaker driver;
the controller detects a voltage value of the pin of the audio female seat, and if the voltage value is within a first preset range, the connection between the earphone driver and the audio female seat is disconnected, and the loudspeaker driver is controlled to work;
and if the voltage value is within a second preset range, controlling the earphone driver to be connected with the audio female seat and controlling the loudspeaker driver not to work.
6. The system of claim 5, further comprising an analog switch, wherein if the voltage value is within a first predetermined range, the earphone driver is disconnected from the audio jack and the speaker driver is controlled to operate, and if the voltage value is within a second predetermined range, the earphone driver is controlled to be connected to the audio jack and the speaker driver is controlled to not operate, the analog switch comprising:
the earphone driver is connected with the audio female seat through the analog switch;
the controller detects a voltage value of the pin of the audio female seat, and if the voltage value is within a first preset range, the analog switch is controlled to be disconnected with the audio female seat, the earphone driver is disconnected with the audio female seat, and the loudspeaker driver is controlled to work;
if the voltage value is within a second preset range, the analog switch is controlled to be connected with the audio female seat, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled not to work.
7. The system of claim 6, further comprising a power module, wherein the power module is connected between the controller and the audio socket through a first resistor, and if the voltage value is within a first preset range, the power module disconnects the headphone driver from the audio socket and controls the speaker driver to operate, and if the voltage value is within a second preset range, the power module controls the headphone driver to connect to the audio socket and controls the speaker driver to not operate, including:
the left sound channel output end of the earphone driver is connected with a first pin of the audio female seat through the analog switch, the right sound channel output end of the earphone driver is connected with a second pin of the audio female seat through the analog switch, the SPK positive end of the loudspeaker driver is connected with the first pin of the audio female seat, the SPK negative end of the loudspeaker driver is connected with the second pin of the audio female seat, a third pin of the audio female seat is grounded, and the controller is connected with a fourth pin of the audio female seat;
the controller detects a voltage value of a fourth pin of the audio female seat, if the voltage value is within a first preset range, the analog switch is controlled to be disconnected through a first enabling signal, the earphone driver is disconnected with the audio female seat, and the loudspeaker driver is controlled to work through a second enabling signal;
if the voltage value is within a second preset range, the analog switch is controlled to be switched on through the first enabling signal, the earphone driver is connected with the audio female seat, and the loudspeaker driver is controlled to be out of work through the second enabling signal.
8. The system of claim 7, further comprising a speaker audio male plug that plugs into the audio female socket,
the public first pin and the loudspeaker anodal of head of loudspeaker audio frequency are connected, the public second pin and the loudspeaker negative pole of head of loudspeaker audio frequency are connected, the public third pin ground connection of head of loudspeaker audio frequency, the public fourth pin of head of loudspeaker audio frequency passes through second resistance ground connection, wherein, through adjusting first resistance with the resistance of second resistance can be adjusted first predetermineeing the scope.
9. The system of claim 7, further comprising a headphone audio male plug that plugs into the audio female socket,
the first pin of the earphone audio male head is connected with the anode of the left earphone, the second pin of the earphone audio male head is connected with the anode of the right earphone, and the cathode of the left earphone and the cathode of the right earphone are respectively connected with the third pin of the earphone audio male head.
10. A virtual reality device comprising a loudspeaker and headphone interface adaptive system according to any one of claims 5 to 9.
CN202110647978.7A 2021-06-10 2021-06-10 Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment Pending CN113448531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110647978.7A CN113448531A (en) 2021-06-10 2021-06-10 Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110647978.7A CN113448531A (en) 2021-06-10 2021-06-10 Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment

Publications (1)

Publication Number Publication Date
CN113448531A true CN113448531A (en) 2021-09-28

Family

ID=77811223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110647978.7A Pending CN113448531A (en) 2021-06-10 2021-06-10 Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment

Country Status (1)

Country Link
CN (1) CN113448531A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379400A (en) * 2012-04-18 2013-10-30 鸿富锦精密工业(深圳)有限公司 Earphone detecting circuit and electronic apparatus having same
CN105142072A (en) * 2015-09-30 2015-12-09 惠州Tcl移动通信有限公司 Audio apparatus with externally connected player and audio playing method thereof
CN209105420U (en) * 2018-07-13 2019-07-12 深圳市金锐显数码科技有限公司 A kind of audio output circuit and audio frequency apparatus
CN111031435A (en) * 2019-12-25 2020-04-17 青岛小鸟看看科技有限公司 Audio circuit, head-mounted display equipment and head-mounted display system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379400A (en) * 2012-04-18 2013-10-30 鸿富锦精密工业(深圳)有限公司 Earphone detecting circuit and electronic apparatus having same
CN105142072A (en) * 2015-09-30 2015-12-09 惠州Tcl移动通信有限公司 Audio apparatus with externally connected player and audio playing method thereof
CN209105420U (en) * 2018-07-13 2019-07-12 深圳市金锐显数码科技有限公司 A kind of audio output circuit and audio frequency apparatus
CN111031435A (en) * 2019-12-25 2020-04-17 青岛小鸟看看科技有限公司 Audio circuit, head-mounted display equipment and head-mounted display system

Similar Documents

Publication Publication Date Title
CN206790671U (en) wireless headset
CN108666826B (en) Adapter, terminal equipment and adapter system
JP5328350B2 (en) Electronic interfacing of head mounted devices
ES2643037T3 (en) Method and device for sharing micro USB interface between headphones and USB
TWI626814B (en) Method, device, power adapter and mobile terminal for controlling charging
CN108696783A (en) With the wired of the earphone for facilitating charging with it is wireless between the method and apparatus that easily switch
US11736851B2 (en) Wireless playback device, and playback control method and apparatus thereof
WO2020134812A1 (en) Terminal device, adapter, and charging method
US20230082918A1 (en) Charger, data cable, and charging device
WO2022228246A1 (en) Interface circuit, electronic device and communication signal transmission method
EP4160857A1 (en) Charger, data line and charging device
CN112806023B (en) Control method of wireless earphone and related product
CN111247781A (en) Audio circuit and audio playback system based on intelligent terminal
CN111031435A (en) Audio circuit, head-mounted display equipment and head-mounted display system
CN113448531A (en) Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment
CN105811515A (en) Method and system for charging universal serial bus Bluetooth headset through mobile terminal
CN109391869A (en) A kind of earphone and ear canal judge cut-in method
CN210780912U (en) Electronic equipment and accessory with quick charging and audio transmission functions
WO2021032084A1 (en) Type-c power supply wire, head-mounted display device and virtual reality system
CN211378222U (en) Audio circuit, head-mounted display equipment and head-mounted display system
CN202435570U (en) Earphone device
CN110611852B (en) Earphone with adaptive control
WO2023020322A1 (en) Wireless earphone, earphone case and wireless earphone system
CN213938280U (en) Low-delay Bluetooth audio receiver and earphone
TWI702854B (en) Audio playing apparatus and audio transmission circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210928

RJ01 Rejection of invention patent application after publication