CN110690742A - Charging interface multiplexing method, charging box, earphone and computer readable storage medium - Google Patents

Charging interface multiplexing method, charging box, earphone and computer readable storage medium Download PDF

Info

Publication number
CN110690742A
CN110690742A CN201910901635.1A CN201910901635A CN110690742A CN 110690742 A CN110690742 A CN 110690742A CN 201910901635 A CN201910901635 A CN 201910901635A CN 110690742 A CN110690742 A CN 110690742A
Authority
CN
China
Prior art keywords
charging
earphone
box
interface
mode
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
CN201910901635.1A
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.)
Hunan National Sound Pal Acoustics Technology Ltd
Hunan Guosheng Acoustics Technology Co Ltd Shenzhen Branch
Original Assignee
Hunan National Sound Pal Acoustics Technology Ltd
Hunan Guosheng Acoustics Technology Co Ltd Shenzhen Branch
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 Hunan National Sound Pal Acoustics Technology Ltd, Hunan Guosheng Acoustics Technology Co Ltd Shenzhen Branch filed Critical Hunan National Sound Pal Acoustics Technology Ltd
Priority to CN201910901635.1A priority Critical patent/CN110690742A/en
Publication of CN110690742A publication Critical patent/CN110690742A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention discloses a charging interface multiplexing method, a charging box, an earphone and a computer readable storage medium, and relates to the technical field of TWS earphones. According to the embodiment of the invention, the charging interface multiplexing circuit structure which simultaneously meets the charging and communication requirements is constructed at the charging box and the earphone end through discrete devices such as the load switch, the resistor and the switch tube, and then the on/off states of the load switch and the switch tube in the charging interface multiplexing circuit are controlled through the charging box and the processor in the earphone, so that the charging interface can be switched between the charging mode and the communication mode, the multiplexing of the charging interface can be realized, the contact points in the charging box and the earphone are reduced, and a special communication chip is not required to be added in the charging box and the earphone, thereby simplifying the structure of the earphone and the charging box, saving the cost of the charging box and the earphone, and being beneficial to realizing the precise layout of the earphone end.

Description

Charging interface multiplexing method, charging box, earphone and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of real Wireless Stereo (TWS) earphones, in particular to a charging interface multiplexing method, a charging box, an earphone and a computer readable storage medium.
Background
The TWS headset system can be largely divided into two parts, a charging box and a TWS headset. The charging box needs to communicate with the headset in both directions in addition to charging the headset. At present, in order to realize charging and communication of the charging box to the earphone, common methods in the related art include two types:
one is that two groups of interfaces, namely a charging interface and a communication interface, are respectively arranged in a charging box and an earphone, the charging interface is used for charging the earphone, and the communication interface is used for realizing communication between the charging box and the earphone, so that the charging box and the earphone have more contact points and complex structures;
another kind, only set up a set of interface that charges in earphone and the box that charges, increase the special communication chip in earphone and the box that charges in addition, establish single line connection between box and earphone based on the contact point Pogopin the interface that charges through this special communication chip for can carry out the information interaction through this single line connection between box and the earphone charges, this kind of mode need adopt the special communication chip, and the cost is higher, and leads to the earphone bulky, is unfavorable for the accurate overall arrangement of earphone end.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a charging interface multiplexing method, a charging box, an earphone and a computer-readable storage medium, so as to solve the problems in the prior art that the method adopted to charge and communicate the earphone by the charging box has more contact points in the charging box and the earphone and a complex structure; or, a special communication chip is needed, the cost is high, and the volume of the earphone is too large, which is not beneficial to the precise layout of the earphone end.
The technical scheme adopted by the embodiment of the invention for solving the technical problems is as follows:
according to a first aspect of the embodiments of the present invention, there is provided a charging interface multiplexing method applied to a charging box, where the charging box includes a charging interface, a processor, a load switch, a pull-down resistor, and a switch tube; the charging interface comprises a first power supply contact and a second power supply contact which are respectively connected with two charging contacts in the charging interface of the earphone; the processor comprises a first IO port, a second IO port and a signal receiving port; the first IO port is connected to the first power supply contact through the load switch, the signal receiving port is connected to the second power supply contact, the second IO port is connected to the control end of the switch tube, the input end of the switch tube and the first end of the pull-down resistor are connected to the second power supply contact after being connected in common, and the output end of the switch tube and the second end of the pull-down resistor are connected to the ground after being connected in common; the charging interface multiplexing method comprises the following steps of executing by the processor:
when the charging interface of the charging box is in a charging mode, judging whether the charging box needs to communicate with an earphone or not; when the charging interface is in a charging mode, the load switch and the switch tube are both in a conducting state;
if the communication with the earphone is needed, controlling the charging interface to be switched to the communication mode from the charging mode, including:
switching on/off of the load switch in a preset coding mode through the first IO port to generate a corresponding first communication signal, transmitting the communication signal to the earphone through a first power supply contact, and controlling the switch tube to be cut off through the second IO port; and/or the presence of a gas in the gas,
and receiving a second communication signal returned by the earphone through the second power supply contact and the signal receiving port, and decoding the second communication signal according to a preset decoding mode to acquire corresponding communication information.
Wherein, when the interface that charges of box is in the mode of charging, judge whether the box that charges needs to carry out the communication with the earphone and include:
when a charging interface of the charging box is in a charging mode, detecting whether an earphone is in the charging box or not and whether user operation occurs to the charging box or not, and if the earphone is in the charging box and the user operation occurs to the charging box, indicating that the charging box needs to communicate with the earphone; wherein the user operation at least comprises a key operation and an on/off box operation; and/or the presence of a gas in the gas,
when the charging interface of the charging box is in a charging mode, whether the earphone is in the box or not and whether the charging box is provided with a timing communication instruction in advance or not are detected, and if the earphone is in the box and the charging box is provided with the timing communication instruction, whether the charging box needs to be communicated with the earphone or not is judged according to the timing time in the timing communication instruction and the monitoring time counted by the charging box.
Wherein, if need communicate with the earphone, then control the interface that charges still include after switching into the communication mode from the mode of charging:
and controlling the charging interface to be switched from the communication mode to the charging mode when the process of identifying the communication information returned by the earphone is overtime every time or the process of identifying the communication information returned by the earphone every time is overtime.
According to a second aspect of the embodiments of the present invention, there is provided a charging interface multiplexing method, which is applied to an earphone, where the earphone includes a charging interface, a charging chip, a processor, a load resistor, and a switching tube; the charging interface comprises a first charging contact and a second charging contact which are respectively connected with two power supply contacts in the charging interface of the charging box; the processor comprises a third IO port, a signal sending port and a grounding end; the first charging contact is connected to the third IO port through the charging chip, the first charging contact is further connected to the first end of the switch tube through the load resistor, the second end of the switch tube is connected to the second charging contact, the control end of the switch tube is connected to the signal sending end, and the second charging contact is grounded after being connected with the grounding end of the processor in common; the charging interface method comprises the following steps of executing by the processor:
when the charging interface of the earphone is in a charging mode, detecting whether the charging interface of the charging box is in a communication mode; when the charging interface is in a charging mode, the charging chip is in an open state, and the switching tube is in a cut-off state;
if the interface that charges of box is in communication mode, then control the interface that charges of earphone switches into communication mode by the mode of charging, include:
receiving a first communication signal sent by the charging box through the first charging contact and the charging chip, and decoding the first communication signal according to a preset decoding mode to acquire corresponding communication information; and/or the presence of a gas in the gas,
when the code of the charging box needs to be returned, the charging chip is closed, the on/off of the switch tube is switched in a preset coding mode through the signal sending port so as to generate a corresponding second communication signal, and the second communication signal is returned to the charging box through the second charging contact.
Wherein, whether the detection the interface that charges of box is in communication mode includes:
and detecting whether the voltage signal output by the charging interface of the charging box comprises a pulse signal or not, and if so, indicating that the charging interface is in a communication mode.
Wherein, if the interface that charges of box is in communication mode, then control the interface that charges of earphone still include after the communication mode is switched into by the mode of charging:
and if the charging interface of the charging box is detected to be switched to a charging mode, controlling the charging interface of the earphone to be switched to the charging mode from a communication mode.
According to a third aspect of the embodiments of the present invention, there is provided a charging box, including a charging interface, a processor, a load switch, a pull-down resistor, and a switch tube; the charging interface comprises a first power supply contact and a second power supply contact which are respectively connected with two charging contacts in the charging interface of the earphone; the processor comprises a first IO port, a second IO port and a signal receiving port; the first IO port is connected to the first power supply contact through the load switch, the signal receiving port is connected to the second power supply contact, the second IO port is connected to the control end of the switch tube, the input end of the switch tube and the first end of the pull-down resistor are connected to the second power supply contact after being connected in common, and the output end of the switch tube and the second end of the pull-down resistor are connected to the ground after being connected in common;
the charging box further comprises a memory connected to the processor and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the charging interface multiplexing method according to any one of the first aspect.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the charging interface multiplexing method according to any one of the first aspect.
According to a fifth aspect of the embodiments of the present invention, there is provided an earphone, including a charging interface, a charging chip, a processor, a load resistor, and a switching tube; the charging interface comprises a first charging contact and a second charging contact which are respectively connected with two power supply contacts in the charging interface of the charging box; the processor comprises a third IO port, a signal sending port and a grounding end; the first charging contact is connected to the third IO port through the charging chip, the first charging contact is further connected to the first end of the switch tube through the load resistor, the second end of the switch tube is connected to the second charging contact, the control end of the switch tube is connected to the signal sending end, and the second charging contact is grounded after being connected with the grounding end of the processor in common;
the headset further comprises a memory connected to the processor and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the charging interface multiplexing method according to any one of the second aspects.
According to a sixth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the charge interface multiplexing method according to any one of the second aspects.
Compared with the method adopted by the charging box for charging and communicating the earphone in the prior art, the method has the advantages that the number of contact points in the charging box and the earphone is large, and the structure is complex; and, need to adopt the specialized communication chip, the cost is higher, and cause the earphone to be too large, unfavorable to the question of the accurate overall arrangement of the earphone end, the interface multiplexing method of charging, charging box, earphone and computer readable storage medium that the embodiment of the invention provides, because through constructing the interface multiplexing circuit of charging that meets the requirement of charging and communicating at the same time through discrete devices such as load switch, resistance and switch tube in charging box and earphone end, then control the on/off state of load switch and switch tube in the interface multiplexing of charging through the processor in charging box and earphone, make the interface of charging can switch over under charging mode and communication mode, thus can realize the multiplexing of the interface of charging, reduce the contact point in charging box and earphone, and does not need to increase the specialized communication chip in charging box and earphone, have already simplified the structure of earphone and charging box, the cost of the charging box and the earphone is saved, and the precise layout of the earphone end is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic structural diagram of a TWS headset system provided by an embodiment of the invention;
fig. 2 is a schematic flowchart of a specific implementation of a charging interface multiplexing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a specific implementation of a charging interface multiplexing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a charging box provided in a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an earphone according to a fifth embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic structural diagram of a TWS headset system according to an embodiment of the present invention. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 1, the TWS headset system provided in the present embodiment includes a charging box 100 and a headset 200, in which:
the charging box 100 comprises a charging interface, a processor 101, a load switch 102, a pull-down resistor R1 and a switch tube 103; the charging interface comprises a first power supply contact Boxpogopin + and a second power supply contact Boxpogopin-; the processor 101 comprises a first IO port IO1, a second IO port IO2 and a signal receiving port RX; the first IO port IO1 is connected to the first power supply contact Boxpogopin + through the load switch 102, the signal receiving port RX is connected to the second power supply contact Boxpogopin-, the second IO port IO2 is connected to the control end of the switch tube 103, the input end of the switch tube 103 and the first end of the pull-down resistor R1 are connected in common and then connected to the second power supply contact Boxpogopin-, the output end of the switch tube 103 and the second end of the pull-down resistor R1 are connected in common and then connected to ground;
the earphone 200 comprises a charging interface, a charging chip 202, a processor 201, a load resistor R2 and a switch tube 203; the charging interface comprises a first charging contact Eathopin + and a second charging contact Eathopin-; the processor 201 includes a third IO port IO3, a signal transmission port TX, and a ground end GND; the first charging contact earpogon + is connected to the third IO port IO3 after passing through the charging chip 202, the first charging contact earpogon + is further connected to the first end of the switching tube 203 through the load resistor R2, the second end of the switching tube 203 is connected to the second charging contact earpogon-, the control end of the switching tube 203 is connected to the signal transmitting end TX, and the second charging contact earpogon-is further connected to the ground after being commonly connected with the ground end GND of the processor 201;
when the earphone 200 is placed in the charging box 100, the first power supply contact Boxpogopin + is electrically connected with the first charging contact Earpogopin +, and the second power supply contact Boxpogopin-is electrically connected with the second charging contact Earpogopin-.
Preferably, the switching tube 103 in the charging box 100 is a MOS1 tube, the drain of the MOS1 tube is the input end of the switching tube 103 and the first end of the pull-down resistor R1 are connected to the second power supply contact Boxpogopin-, the source of the MOS1 tube is the output end of the switching tube 103 and the second end of the pull-down resistor R1 are connected to the ground, and the gate of the MOS1 tube is the control end of the switching tube 103 and is connected to the second IO port IO 2.
Preferably, the switching tube 203 in the earphone 200 is a MOS2 tube, the drain of the MOS2 tube is the first end of the switching tube 203 connected to one end of the pull-down resistor R1, the source of the MOS2 tube is the second end of the switching tube 203 connected to the second charging contact earpogpin-, and the gate of the MOS2 tube is the control end of the switching tube 203 connected to the signal transmission port TX.
Preferably, in this embodiment, the TWS headset system includes a left headset 200 and a right headset 200, a left charging interface circuit and a right charging interface circuit of the charging box 100 shown in fig. 1 are disposed in the charging box 100, and a charging interface circuit of the headset 200 shown in fig. 1 is disposed on each headset 200.
Based on the above system configuration, the following embodiments of the present invention are proposed.
Example one
Fig. 2 is a schematic diagram of a specific implementation flow of the charging interface multiplexing method according to the embodiment of the present invention. The main execution body of the method is the charging box 100 in the system shown in fig. 1, and referring to fig. 2, the charging interface multiplexing method provided by the embodiment of the invention includes the following steps executed by the processor 101:
step S201, when the charging interface of the charging box 100 is in a charging mode, judging whether the charging box 100 needs to communicate with the earphone 200; when the charging interface is in the charging mode, the load switch 102 and the switch tube 103 are both in the conducting state.
In this embodiment, after the earphone 200 is plugged into the box, if the user operation is not detected within a preset time, the charging box 100 automatically enters a charging mode, and in the charging mode, the load switch 102 of the charging box 100 is in a conducting state, so that the first power supply contact Boxpogopin + outputs a charging voltage to the first charging contact Earpogopin + of the earphone 200, and meanwhile, the switch tube of the charging box 100 is in a conducting state, so that the pull-down resistor R1 is in a short-circuit state, and energy consumption of the pull-down resistor R1 in the charging state is saved. Preferably, in a preferred implementation example, the charging voltage is 5V.
In this embodiment, when the charging interface of the charging box 100 is in the charging mode, the determining whether the charging box 100 needs to communicate with the earphone 200 includes:
when the charging interface of the charging box 100 is in a charging mode, detecting whether the earphone 200 is in the box and whether the charging box 100 is operated by a user, and if the earphone 200 is in the box and the user is operated, indicating that the charging box 100 needs to communicate with the earphone 200; wherein the user operation at least comprises a key operation and an on/off box operation; and/or the presence of a gas in the gas,
when the charging interface of the charging box 100 is in a charging mode, whether the earphone 200 is in the box or not and whether the charging box 100 is provided with a timing communication instruction in advance or not are detected, and if the earphone 200 is in the box and the charging box 100 is provided with the timing communication instruction, whether the charging box 100 needs to communicate with the earphone 200 or not is judged according to the timing time in the timing communication instruction and the monitoring time counted by the charging box 100.
When the earphone 200 is in the charging box 100, if the charging box 100 detects an open box operation, a close box operation or a key operation, it indicates that communication with the earphone 200 in the box is required. In addition, in some cases, when the charging box 100 is in a charging state, the user further needs to query the power amount of the earphone 200 at regular time to adjust the charging time in real time, so that a fixed time is set for regularly triggering the charging box 100 to communicate with the earphone 200 to obtain the real-time power amount of the earphone 200, and in this case, the charging box 100 sends a triggering signal that needs to communicate with the earphone 200 at regular time according to the fixed time to trigger the charging box 100 to switch the working mode of the charging interface.
Step S202, if communication with the headset 200 is required, controlling the charging interface to switch from the charging mode to the communication mode, including:
the on/off of the load switch 102 is switched in a preset coding mode through the first IO port IO1 to generate a corresponding first communication signal, the communication signal is transmitted to the earphone 200 through the first power supply contact Boxpogopin +, and the switching tube is controlled to be turned off through the second IO port IO 2; and/or the presence of a gas in the gas,
and receiving a second communication signal returned by the earphone 200 through the second power supply contact Boxpogopin-and the signal receiving port RX, and decoding the second communication signal according to a preset decoding mode to acquire corresponding communication information.
In the communication mode, when the charging box 100 sends a code to the earphone 200, the processor of the charging box 100 controls the on/off of the load switch 102 through the first IO port IO1 according to a preset coding mode, so that a pulse signal containing communication information is output to the earphone 200 from the first power supply contact point Boxpogopin +, and the switching tube 103 is controlled to be turned off through the second IO port IO 2.
In the communication mode, a pull-down resistor R1 with a larger resistance is connected in series to the second power supply contact Boxpogopin-of the charging box 100, and a D, S pin of a MOS1 transistor is connected in parallel to both ends of the pull-down resistor R1, and a G pole of the MOS1 transistor can control the second power supply contact Boxpogopin-to-ground impedance, so as to realize reliable charging and communication state impedance transformation of the earphone 200, and enable a signal on the second power supply contact Boxpogopin-to be connected to a signal receiving port RX of a processor of the charging box 100 through a certain protection circuit. When the earphone 200 returns a code to the charging box 100, the processor of the charging box 100 receives the pulse signal containing the communication information returned by the earphone 200 through the second power supply contact Boxpogopin-and the signal receiving port RX, and decodes the received pulse signal according to a preset decoding mode to obtain the corresponding communication information.
Preferably, in this embodiment, after step S202, the method may further include:
and controlling the charging interface to be switched from the communication mode to the charging mode when the process of identifying the communication information returned by the earphone 200 or the process of identifying the communication information returned by the earphone 200 is overtime each time.
In this embodiment, when the charging box 100 is in the idle state of non-communication, the load switch 102 and the switch tube 103 are controlled to switch to the charging state, so as to ensure real-time charging, and actually, the charging box 100 is controlled to switch to the charging state through impedance transformation at the end of the charging box 100 every time the communication information returned by the headset 200 is identified or every time the process of identifying the communication information returned by the headset 200 times out.
As can be seen from the above, in the method for multiplexing a charging interface provided in this embodiment, a circuit structure that simultaneously meets the charging and communication requirements is constructed at the end of the charging box 100 through discrete devices such as the load switch 102, the resistor, and the switch tube, and then the on/off states of the load switch 102 and the switch tube 103 in the circuit structure are controlled by the processor in the charging box 100, so that the charging interface of the charging box 100 can be switched between the charging mode and the communication mode, thereby realizing multiplexing of the charging interface, reducing contact points in the charging box 100, and eliminating the need to add a dedicated communication chip in the charging box 100, which not only simplifies the structure of the charging box 100, but also saves the cost of the charging box 100.
Example two
Fig. 3 is a schematic diagram of a specific implementation flow of the charging interface multiplexing method according to the second embodiment of the present invention. The main execution body of the method is the earphone 200 in the system shown in fig. 1, and referring to fig. 3, the charging interface multiplexing method provided by the embodiment of the invention includes the following steps executed by the processor 201:
step S301, when the charging interface of the earphone 200 is in the charging mode, detecting whether the charging interface of the charging box 100 is in the communication mode; when the charging interface is in the charging mode, the charging chip 202 is in an on state, and the switch tube 203 is in an off state.
In this embodiment, the earphone 200 controls the switch tube 203 to be in the off state in the charging mode, so that the power consumption generated by the load resistor R2 can be saved.
In this embodiment, the detecting whether the charging interface of the charging box 100 is in the communication mode includes:
detecting whether the voltage signal output by the charging interface of the charging box 100 includes a pulse signal, and if the voltage signal includes the pulse signal, indicating that the charging interface is in a communication mode.
In this embodiment, a voltage signal output by the charging interface of the charging box 100 is transmitted to the first charging contact Earpogopin + of the earphone 200 through the first power supply contact Boxpogopin +, and then transmitted to the processor 201 of the earphone 200 through the charging chip 202 connected to the first charging contact Earpogopin +, the processor 201 of the earphone 200 detects a voltage signal output by the charging chip 202 through the third IO port IO3 to determine the working mode of the charging interface of the charging box 100, and when the voltage signal output by the charging chip 202 is a charging voltage, it indicates that the charging interface of the charging box 100 is in a charging state; if the voltage signal output by the charging chip 202 is the communication voltage, it indicates that the charging interface of the charging box 100 is in the communication state. The charging voltage is a fixed value, and in a preferred embodiment, the charging voltage is 5V, that is, if the earphone 200 detects that the voltage output by the charging interface of the charging box 100 is 5V and the fixed value is not changed, it indicates that the charging interface of the charging box 100 is in a charging state; the communication voltage is a pulse signal, that is, when the earphone 200 detects that the voltage signal output by the charging interface of the charging box 100 is the pulse signal, it indicates that the charging interface of the charging box 100 is in a communication state.
Step S302, if the charging interface of the charging box 100 is in the communication mode, controlling the charging interface of the earphone 200 to be switched from the charging mode to the communication mode, including:
receiving a first communication signal sent by the charging box 100 through the first charging contact Earbopin + and the charging chip 202, and decoding the first communication signal according to a preset decoding mode to acquire corresponding communication information; and/or the presence of a gas in the gas,
when code returning is required to be performed on the charging box 100, the charging chip 202 is turned off, the on/off of the switching tube is switched in a preset coding mode through the signal sending port TX to generate a corresponding second communication signal, and the second communication signal is returned to the charging box 100 through the second charging contact earpogpin-.
In this embodiment, when detecting the varying voltage signal sent by the charging box 100, the third IO port IO3 of the processor 201 in the earphone 200 decodes the varying voltage signal according to a preset decoding manner, so as to obtain the communication information sent by the charging box 100 to the earphone 200. Further, when the earphone 200 decodes and the charging box 100 needs to be coded back, the processor 201 in the earphone 200 controls the charging chip 202 to be turned off to save energy consumption, and controls the switching of the switch tube 203 to be turned on/off according to a preset coding mode through the signal transmission port TX, so that the second charging contact earpogpin of the processor 201 outputs a pulse signal containing communication information to the charging box 100.
Preferably, in this embodiment, after step S302, the method may further include:
and if the charging interface of the charging box is detected to be switched to a charging mode, controlling the charging interface of the earphone to be switched to the charging mode from a communication mode.
In this embodiment, when the headset 200 completes the communication operation and is in the idle state of non-communication, the processor 201 in the headset 200 outputs the control signal through the signal transmission port TX to control the switch tube 203 to be turned off, so that the charging interface of the headset 200 is switched to the charging state, thereby ensuring the real-time performance of charging.
As can be seen from the above, in the method for multiplexing charging interfaces provided in this embodiment, since the circuit structure satisfying the requirements of charging and communication is constructed at the end of the earphone 200 through discrete devices such as the resistor and the switch tube, and then the on/off state of the switch tube in the circuit structure is controlled by the processor in the earphone 200, the charging interface of the earphone 200 can be switched between the charging mode and the communication mode, thereby multiplexing the charging interface of the earphone 200 can be realized, the number of contact points in the earphone 200 is reduced, and no special communication chip needs to be added in the earphone 200, which simplifies the structure of the earphone 200, saves the cost of the earphone 200, and is beneficial to realizing precise layout at the end of the earphone 200.
EXAMPLE III
Fig. 4 is a schematic structural diagram of the charging box 100 according to the third embodiment of the present invention. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 4, the charging box 100 provided in this embodiment includes a charging interface, a processor 101, a load switch 102, a pull-down resistor R1, and a switch tube 103; the charging interface comprises a first power supply contact Boxpogopin + and a second power supply contact Boxpogopin which are respectively connected with two charging contacts in the charging interface of the earphone 200; the processor comprises a first IO port 1, a second IO port IO2 and a signal receiving port RX; the first IO port IO1 is connected to the first power supply contact Boxpogopin + through the load switch 102, the signal receiving port RX is connected to the second power supply contact Boxpogopin-, the second IO port IO2 is connected to the control end of the switch tube 103, the input end of the switch tube 103 and the first end of the pull-down resistor R1 are connected in common and then connected to the second power supply contact Boxpogopin-, the output end of the switch tube 103 and the second end of the pull-down resistor R1 are connected in common and then connected to ground;
the charging box 100 further includes a memory 104 connected to the processor 101, and a computer program 105 stored in the memory 104 and executable on the processor 101, wherein when the computer program 105 is executed by the processor 101, the steps of the charging interface multiplexing method according to the first embodiment are implemented.
The charging box 100 of the embodiment of the present invention and the charging interface multiplexing method of the first embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in this embodiment, which is not described herein again.
Example four
A fourth embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the charging interface multiplexing method described in the first embodiment of the present invention are implemented.
The computer-readable storage medium of the embodiment of the present invention and the charging interface multiplexing method of the first embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are all correspondingly applicable in this embodiment, which is not described herein again.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an earphone 200 according to a fifth embodiment of the present invention, and only the parts related to this embodiment are shown for convenience of description.
Referring to fig. 5, the earphone 200 provided in this embodiment includes a charging interface, a charging chip 202, a processor 201, a load resistor R2, and a switch tube 203; the charging interface comprises a first charging contact Eathopin + and a second charging contact Eathopin which are respectively connected with two power supply contacts in the charging interface of the charging box 100; the processor comprises a third IO port IO3, a signal sending port TX and a ground end GND; the first charging contact Eathomin + is connected to the third IO port IO3 after passing through the charging chip 202, the first charging contact Eathomin + is further connected to the first end of the switching tube 203 through the load resistor R2, the second end of the switching tube 203 is connected to the second charging contact Eathomin-, the control end of the switching tube 203 is connected to the signal transmitting port TX, and the second charging contact Eathomin-is also connected to the ground after being connected to the ground end GND of the processor;
the headset 200 further comprises a memory 204 connected to the processor 201 and a computer program 205 stored in the memory 204 and executable on the processor 201, wherein the computer program 205, when executed by the processor 201, implements the steps of the charging interface multiplexing method according to the second embodiment.
The earphone 200 of the embodiment of the present invention and the charging interface multiplexing method of the second embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in this embodiment, which is not described herein again.
EXAMPLE six
A sixth embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the charging interface multiplexing method according to the second embodiment are implemented.
The computer-readable storage medium of the embodiment of the present invention and the charging interface multiplexing method of the second embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are all correspondingly applicable in this embodiment, which is not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (10)

1. A charging interface multiplexing method is applied to a charging box and is characterized in that the charging box comprises a charging interface, a processor, a load switch, a pull-down resistor and a switch tube; the charging interface comprises a first power supply contact and a second power supply contact which are respectively connected with two charging contacts in the charging interface of the earphone; the processor comprises a first IO port, a second IO port and a signal receiving port; the first IO port is connected to the first power supply contact through the load switch, the signal receiving port is connected to the second power supply contact, the second IO port is connected to the control end of the switch tube, the input end of the switch tube and the first end of the pull-down resistor are connected to the second power supply contact after being connected in common, and the output end of the switch tube and the second end of the pull-down resistor are connected to the ground after being connected in common; the charging interface multiplexing method comprises the following steps of executing by the processor:
when the charging interface of the charging box is in a charging mode, judging whether the charging box needs to communicate with an earphone or not; when the charging interface is in a charging mode, the load switch and the switch tube are both in a conducting state;
if the communication with the earphone is needed, controlling the charging interface to be switched to the communication mode from the charging mode, including:
switching on/off of the load switch in a preset coding mode through the first IO port to generate a corresponding first communication signal, transmitting the communication signal to the earphone through a first power supply contact, and controlling the switch tube to be cut off through the second IO port; and/or the presence of a gas in the gas,
and receiving a second communication signal returned by the earphone through the second power supply contact and the signal receiving port, and decoding the second communication signal according to a preset decoding mode to acquire corresponding communication information.
2. The charging interface multiplexing method of claim 1, wherein when the charging interface of the charging box is in a charging mode, the determining whether the charging box needs to communicate with an earphone comprises:
when a charging interface of the charging box is in a charging mode, detecting whether an earphone is in the charging box or not and whether user operation occurs to the charging box or not, and if the earphone is in the charging box and the user operation occurs to the charging box, indicating that the charging box needs to communicate with the earphone; wherein the user operation at least comprises a key operation and an on/off box operation; and/or the presence of a gas in the gas,
when the charging interface of the charging box is in a charging mode, whether the earphone is in the box or not and whether the charging box is provided with a timing communication instruction in advance or not are detected, and if the earphone is in the box and the charging box is provided with the timing communication instruction, whether the charging box needs to be communicated with the earphone or not is judged according to the timing time in the timing communication instruction and the monitoring time counted by the charging box.
3. The charging interface multiplexing method of claim 1, wherein if communication with an earphone is required, controlling the charging interface to switch from the charging mode to the communication mode further comprises:
and controlling the charging interface to be switched from the communication mode to the charging mode when the process of identifying the communication information returned by the earphone is overtime every time or the process of identifying the communication information returned by the earphone every time is overtime.
4. A charging interface multiplexing method is applied to an earphone and is characterized in that the earphone comprises a charging interface, a charging chip, a processor, a load resistor and a switch tube; the charging interface comprises a first charging contact and a second charging contact which are respectively connected with two power supply contacts in the charging interface of the charging box; the processor comprises a third IO port, a signal sending port and a grounding end; the first charging contact is connected to the third IO port through the charging chip, the first charging contact is further connected to the first end of the switch tube through the load resistor, the second end of the switch tube is connected to the second charging contact, the control end of the switch tube is connected to the signal sending end, and the second charging contact is grounded after being connected with the grounding end of the processor in common; the charging interface method comprises the following steps of executing by the processor:
when the charging interface of the earphone is in a charging mode, detecting whether the charging interface of the charging box is in a communication mode; when the charging interface is in a charging mode, the charging chip is in an open state, and the switching tube is in a cut-off state;
if the interface that charges of box is in communication mode, then control the interface that charges of earphone switches into communication mode by the mode of charging, include:
receiving a first communication signal sent by the charging box through the first charging contact and the charging chip, and decoding the first communication signal according to a preset decoding mode to acquire corresponding communication information; and/or the presence of a gas in the gas,
when the code of the charging box needs to be returned, the charging chip is closed, the on/off of the switch tube is switched in a preset coding mode through the signal sending port so as to generate a corresponding second communication signal, and the second communication signal is returned to the charging box through the second charging contact.
5. The charging interface multiplexing method of claim 4, wherein the detecting whether the charging interface of the charging box is in the communication mode comprises:
and detecting whether the voltage signal output by the charging interface of the charging box comprises a pulse signal or not, and if so, indicating that the charging interface is in a communication mode.
6. The charging interface multiplexing method of claim 4, wherein if the charging interface of the charging box is in the communication mode, controlling the charging interface of the earphone to switch from the charging mode to the communication mode further comprises:
and if the charging interface of the charging box is detected to be switched to a charging mode, controlling the charging interface of the earphone to be switched to the charging mode from a communication mode.
7. The charging box is characterized by comprising a charging interface, a processor, a load switch, a pull-down resistor and a switch tube; the charging interface comprises a first power supply contact and a second power supply contact which are respectively connected with two charging contacts in the charging interface of the earphone; the processor comprises a first IO port, a second IO port and a signal receiving port; the first IO port is connected to the first power supply contact through the load switch, the signal receiving port is connected to the second power supply contact, the second IO port is connected to the control end of the switch tube, the input end of the switch tube and the first end of the pull-down resistor are connected to the second power supply contact after being connected in common, and the output end of the switch tube and the second end of the pull-down resistor are connected to the ground after being connected in common;
the charging box further comprises a memory connected with the processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the charging interface multiplexing method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the steps of the charge interface multiplexing method according to any one of claims 1 to 3.
9. The earphone is characterized by comprising a charging interface, a charging chip, a processor, a load resistor and a switching tube; the charging interface comprises a first charging contact and a second charging contact which are respectively connected with two power supply contacts in the charging interface of the charging box; the processor comprises a third IO port, a signal sending port and a grounding end; the first charging contact is connected to the third IO port through the charging chip, the first charging contact is further connected to the first end of the switch tube through the load resistor, the second end of the switch tube is connected to the second charging contact, the control end of the switch tube is connected to the signal sending end, and the second charging contact is grounded after being connected with the grounding end of the processor in common;
the headset further comprises a memory connected to the processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, performs the steps of the charge interface multiplexing method according to any of claims 4 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the steps of the charge interface multiplexing method according to any one of claims 4 to 6.
CN201910901635.1A 2019-09-23 2019-09-23 Charging interface multiplexing method, charging box, earphone and computer readable storage medium Pending CN110690742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910901635.1A CN110690742A (en) 2019-09-23 2019-09-23 Charging interface multiplexing method, charging box, earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910901635.1A CN110690742A (en) 2019-09-23 2019-09-23 Charging interface multiplexing method, charging box, earphone and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110690742A true CN110690742A (en) 2020-01-14

Family

ID=69109901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910901635.1A Pending CN110690742A (en) 2019-09-23 2019-09-23 Charging interface multiplexing method, charging box, earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110690742A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224453A (en) * 2020-04-16 2020-06-02 锐迪科微电子(上海)有限公司 Communication method based on charging wire, charging device, intelligent device and storage medium
CN112186842A (en) * 2020-09-21 2021-01-05 苏州浩创信息科技有限公司 Charging and communication circuit and electronic device
CN112260334A (en) * 2020-09-17 2021-01-22 苏州复鹄电子科技有限公司 Bluetooth headset supporting communication with charging bin and communication mode
CN112351361A (en) * 2020-10-30 2021-02-09 歌尔科技有限公司 Earphone in-out box detection method and earphone box
CN112865248A (en) * 2021-02-09 2021-05-28 深圳市冠旭电子股份有限公司 Box-entering detection method and device of wireless earphone, charging box and readable storage medium
CN112954534A (en) * 2021-03-16 2021-06-11 上海物骐微电子有限公司 Fully-integrated multifunctional charging pin control circuit and wireless earphone
WO2021218011A1 (en) * 2020-04-30 2021-11-04 炬芯科技股份有限公司 Tws earphone control method, tws earphone, and related devices
EP4158732A4 (en) * 2020-06-01 2024-04-10 Harman Int Ind 2 pogo pin design for tws headphone

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107802958A (en) * 2017-11-28 2018-03-16 苏州景昱医疗器械有限公司 Open circuit detection module and open circuit detection method for nerve stimulator
CN109638911A (en) * 2018-12-14 2019-04-16 珠海市杰理科技股份有限公司 Charge telecommunication circuit, system, method, intelligent terminal and its accessory
CN109660898A (en) * 2018-12-21 2019-04-19 成都必盛科技有限公司 Charging box, earphone and its control method
CN110139183A (en) * 2019-06-03 2019-08-16 广州由我科技股份有限公司 A kind of charging cabin, bluetooth headset and charging bluetooth earphone system
CN209314011U (en) * 2019-01-17 2019-08-27 歌尔科技有限公司 A kind of Bluetooth system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107802958A (en) * 2017-11-28 2018-03-16 苏州景昱医疗器械有限公司 Open circuit detection module and open circuit detection method for nerve stimulator
CN109638911A (en) * 2018-12-14 2019-04-16 珠海市杰理科技股份有限公司 Charge telecommunication circuit, system, method, intelligent terminal and its accessory
CN109660898A (en) * 2018-12-21 2019-04-19 成都必盛科技有限公司 Charging box, earphone and its control method
CN209314011U (en) * 2019-01-17 2019-08-27 歌尔科技有限公司 A kind of Bluetooth system
CN110139183A (en) * 2019-06-03 2019-08-16 广州由我科技股份有限公司 A kind of charging cabin, bluetooth headset and charging bluetooth earphone system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224453A (en) * 2020-04-16 2020-06-02 锐迪科微电子(上海)有限公司 Communication method based on charging wire, charging device, intelligent device and storage medium
WO2021218011A1 (en) * 2020-04-30 2021-11-04 炬芯科技股份有限公司 Tws earphone control method, tws earphone, and related devices
EP4158732A4 (en) * 2020-06-01 2024-04-10 Harman Int Ind 2 pogo pin design for tws headphone
CN112260334A (en) * 2020-09-17 2021-01-22 苏州复鹄电子科技有限公司 Bluetooth headset supporting communication with charging bin and communication mode
CN112260334B (en) * 2020-09-17 2023-01-06 苏州复鹄电子科技有限公司 Bluetooth headset supporting communication with charging bin and communication mode
CN112186842A (en) * 2020-09-21 2021-01-05 苏州浩创信息科技有限公司 Charging and communication circuit and electronic device
CN112186842B (en) * 2020-09-21 2023-02-17 苏州浩创信息科技有限公司 Charging and communication circuit and electronic device
CN112351361A (en) * 2020-10-30 2021-02-09 歌尔科技有限公司 Earphone in-out box detection method and earphone box
CN112865248A (en) * 2021-02-09 2021-05-28 深圳市冠旭电子股份有限公司 Box-entering detection method and device of wireless earphone, charging box and readable storage medium
CN112865248B (en) * 2021-02-09 2023-07-07 深圳市冠旭电子股份有限公司 Method and device for detecting box entering of wireless earphone, charging box and readable storage medium
CN112954534A (en) * 2021-03-16 2021-06-11 上海物骐微电子有限公司 Fully-integrated multifunctional charging pin control circuit and wireless earphone

Similar Documents

Publication Publication Date Title
CN110690742A (en) Charging interface multiplexing method, charging box, earphone and computer readable storage medium
CN110611348A (en) Charging interface multiplexing method, charging box, earphone and computer readable storage medium
JP5791007B2 (en) Power supply apparatus and method, and user apparatus
US11812214B2 (en) Communication control method, apparatus and system, charging case and wireless earphone
KR100750197B1 (en) Apparatus and method for controlling of power supply in a portable terminal
US10833518B2 (en) Charge control method and device, and electronic device
CN107508354B (en) A kind of charging method and mobile terminal
CN100382403C (en) A polarity protection implemented with a MOSFET
US11860243B2 (en) Plug status detection circuit, controller, and vehicle
US11166103B2 (en) Playing device and playing method based on playing device
CN113179032B (en) Synchronous rectification controller, control method and adapter
CN210579146U (en) Low-power consumption circuit and TWS bluetooth headset
KR20230013076A (en) Radio frequency front-end component control method and user equipment
CN112866861A (en) Wireless earphone, charging box and charging system
CN111615029A (en) Wireless earphone reset circuit, wireless earphone and reset method
CN109742938B (en) Anti-interference delay start control circuit and system
CN104536314A (en) NFC-based startup control circuit, method and electronic device
CN212013016U (en) Wireless earphone reset circuit and wireless earphone
CN101044732B (en) Driver circuit for reducing the effects of disturbances on the duty cycle of a digital signal on a bus conductor
CN105430727A (en) Communication terminal and carrier aggregation mode setting method thereof
CN108495220B (en) Bluetooth headset circuit and Bluetooth headset
CN218603477U (en) Lithium battery wireless communication circuit and lithium battery communication device
CN217240582U (en) Direct dry contact input and voltage input circuit and signal circuit
CN217240379U (en) Self-adaptive slow start circuit applied to lithium battery management system
CN211152198U (en) Microphone host control 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: 20200114

RJ01 Rejection of invention patent application after publication